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
Returns all languages from the specified project.
public List<StudyLanguage> getByDsKeyProject(String dsKey) { StringBuilder sbHql = new StringBuilder(); sbHql.append("from StudyLanguage sl"); sbHql.append(" join fetch sl.language l"); sbHql.append(" join fetch sl.project p"); sbHql.append(" where p.dsKey = :dsKey"); Query query = getSession().createQuery(sbHql.toString()); query.setParameter("dsKey", dsKey); List<StudyLanguage> languages = query.list(); return languages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Language> getAll();", "public List<Language> getAllLanguages() {\r\n\r\n\t\tStringBuilder sbHql = new StringBuilder();\r\n\t\tsbHql.append(\"from Language\");\r\n\r\n\t\tQuery query = getSession().createQuery(sbHql.toString());\r\n\r\n\t\tList<Language> languages = query.list();\r\n\r\n\t\treturn languages;...
[ "0.6838118", "0.67188317", "0.66426927", "0.6640688", "0.65287995", "0.64076376", "0.6291268", "0.6290463", "0.6241715", "0.6240499", "0.61886305", "0.61519456", "0.61322594", "0.61179215", "0.60974646", "0.60934234", "0.6059293", "0.5990136", "0.5961712", "0.5938889", "0.591...
0.5715401
30
Get all languages registered
public List<Language> getAllLanguages() { StringBuilder sbHql = new StringBuilder(); sbHql.append("from Language"); Query query = getSession().createQuery(sbHql.toString()); List<Language> languages = query.list(); return languages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Language> getAll();", "public List<Language> getLanguages() {\n return metaDao().queryLanguages();\n }", "@GetMapping(\"/languages\")\n public List<Language> getLanguages() {\n return languageFacade.getLanguages();\n }", "public List<String> getLanguages() {\n return languages;\n ...
[ "0.82856226", "0.79352266", "0.769443", "0.7598684", "0.75826585", "0.75793", "0.7502127", "0.7457778", "0.7415148", "0.7409245", "0.74051625", "0.73751324", "0.72923577", "0.7222491", "0.7206271", "0.7199561", "0.71475005", "0.7122317", "0.7049389", "0.70105493", "0.69466525...
0.77548915
2
Inserts language a project.
public void saveStudyLanguage(StudyLanguage studyLanguage) { Query query = getSession() .createSQLQuery("INSERT INTO study_language (id_project, id_language) VALUES (:valor1, :valor2)"); query.setParameter("valor1", studyLanguage.getProject().getIdProject()); query.setParameter("valor2", studyLanguage.getLanguage().getIdLanguage()); query.executeUpdate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Builder addInLanguage(Language value);", "Builder addInLanguage(Text value);", "Builder addInLanguage(String value);", "@Override\n\tpublic Integer addProject(ProjectInfo project) {\n\t\treturn sqlSession.insert(\"cn.sep.samp2.project.addProject\", project);\n\t}", "Language create(Language language);", ...
[ "0.6055631", "0.6020853", "0.5893176", "0.5797307", "0.5721132", "0.5715215", "0.57123816", "0.5614184", "0.5608163", "0.55988646", "0.5504498", "0.5483587", "0.5479205", "0.5475768", "0.54606086", "0.5443326", "0.54367405", "0.53960544", "0.538819", "0.53308755", "0.52993923...
0.54800135
12
Delete language of protocol project
public void deleteLanguage(Long idProject, Long idLanguage) { Transaction transaction = getSession().beginTransaction(); try { String hql = "delete from StudyLanguage where project.idProject= :idProject and language.idLanguage =:idLanguage"; Query query = getSession().createQuery(hql); query.setLong("idProject", idProject); query.setLong("idLanguage", idLanguage); System.out.println(query.executeUpdate()); transaction.commit(); } catch (Throwable t) { transaction.rollback(); throw t; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void delComLanguage(int id) {\n\t\t\n\t}", "public void deleteLanguages(){\n editor.remove(PRIMARY_LANGUAGE);\n editor.remove(SECONDARY_LANGUAGE);\n editor.apply();\n }", "public void removeByP_L(long groupId, java.lang.String language);", "public static void delet...
[ "0.7418321", "0.7107073", "0.69168735", "0.6495546", "0.63196725", "0.62883145", "0.6261701", "0.62572086", "0.62494797", "0.6089374", "0.6089374", "0.6089374", "0.60430455", "0.5910719", "0.5910451", "0.59023607", "0.59021986", "0.5889167", "0.58265394", "0.5791727", "0.5778...
0.67927176
3
The Factory for the model. It provides a create method for each nonabstract class of the model.
public interface ExpressionsFactory extends EFactory { /** * The singleton instance of the factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ ExpressionsFactory eINSTANCE = org.eclipse.ocl.expressions.impl.ExpressionsFactoryImpl.init(); /** * Returns a new object of class '<em>Association Class Call Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Association Class Call Exp</em>'. * @generated */ <C, P> AssociationClassCallExp<C, P> createAssociationClassCallExp(); /** * Returns a new object of class '<em>Boolean Literal Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Boolean Literal Exp</em>'. * @generated */ <C> BooleanLiteralExp<C> createBooleanLiteralExp(); /** * Returns a new object of class '<em>Collection Item</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Collection Item</em>'. * @generated */ <C> CollectionItem<C> createCollectionItem(); /** * Returns a new object of class '<em>Collection Literal Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Collection Literal Exp</em>'. * @generated */ <C> CollectionLiteralExp<C> createCollectionLiteralExp(); /** * Returns a new object of class '<em>Collection Range</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Collection Range</em>'. * @generated */ <C> CollectionRange<C> createCollectionRange(); /** * Returns a new object of class '<em>Enum Literal Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Enum Literal Exp</em>'. * @generated */ <C, EL> EnumLiteralExp<C, EL> createEnumLiteralExp(); /** * Returns a new object of class '<em>If Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>If Exp</em>'. * @generated */ <C> IfExp<C> createIfExp(); /** * Returns a new object of class '<em>Integer Literal Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Integer Literal Exp</em>'. * @generated */ <C> IntegerLiteralExp<C> createIntegerLiteralExp(); /** * Returns a new object of class '<em>Unlimited Natural Literal Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Unlimited Natural Literal Exp</em>'. * @generated */ <C> UnlimitedNaturalLiteralExp<C> createUnlimitedNaturalLiteralExp(); /** * Returns a new object of class '<em>Invalid Literal Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Invalid Literal Exp</em>'. * @generated */ <C> InvalidLiteralExp<C> createInvalidLiteralExp(); /** * Returns a new object of class '<em>Iterate Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Iterate Exp</em>'. * @generated */ <C, PM> IterateExp<C, PM> createIterateExp(); /** * Returns a new object of class '<em>Iterator Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Iterator Exp</em>'. * @generated */ <C, PM> IteratorExp<C, PM> createIteratorExp(); /** * Returns a new object of class '<em>Let Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Let Exp</em>'. * @generated */ <C, PM> LetExp<C, PM> createLetExp(); /** * Returns a new object of class '<em>Message Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Message Exp</em>'. * @generated */ <C, COA, SSA> MessageExp<C, COA, SSA> createMessageExp(); /** * Returns a new object of class '<em>Null Literal Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Null Literal Exp</em>'. * @generated */ <C> NullLiteralExp<C> createNullLiteralExp(); /** * Returns a new object of class '<em>Operation Call Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Operation Call Exp</em>'. * @generated */ <C, O> OperationCallExp<C, O> createOperationCallExp(); /** * Returns a new object of class '<em>Property Call Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Property Call Exp</em>'. * @generated */ <C, P> PropertyCallExp<C, P> createPropertyCallExp(); /** * Returns a new object of class '<em>Real Literal Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Real Literal Exp</em>'. * @generated */ <C> RealLiteralExp<C> createRealLiteralExp(); /** * Returns a new object of class '<em>State Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>State Exp</em>'. * @generated */ <C, S> StateExp<C, S> createStateExp(); /** * Returns a new object of class '<em>String Literal Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>String Literal Exp</em>'. * @generated */ <C> StringLiteralExp<C> createStringLiteralExp(); /** * Returns a new object of class '<em>Tuple Literal Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Tuple Literal Exp</em>'. * @generated */ <C, P> TupleLiteralExp<C, P> createTupleLiteralExp(); /** * Returns a new object of class '<em>Tuple Literal Part</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Tuple Literal Part</em>'. * @generated */ <C, P> TupleLiteralPart<C, P> createTupleLiteralPart(); /** * Returns a new object of class '<em>Type Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Type Exp</em>'. * @generated */ <C> TypeExp<C> createTypeExp(); /** * Returns a new object of class '<em>Unspecified Value Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Unspecified Value Exp</em>'. * @generated */ <C> UnspecifiedValueExp<C> createUnspecifiedValueExp(); /** * Returns a new object of class '<em>Variable</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Variable</em>'. * @generated */ <C, PM> Variable<C, PM> createVariable(); /** * Returns a new object of class '<em>Variable Exp</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return a new object of class '<em>Variable Exp</em>'. * @generated */ <C, PM> VariableExp<C, PM> createVariableExp(); /** * Returns the package supported by this factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the package supported by this factory. * @generated */ ExpressionsPackage getExpressionsPackage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "TestModelFactory getTestModelFactory();", "public UsermodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public SqliteModelFactoryImp...
[ "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.70742077", "0.7051943", "0.6983852", "0.69748455", "0.6965496", "0.69568366", "0.69481784", "0.6860293", "0.6811446", "0.6807123", "0.6756206", "0.6694741", "0.6656823", "0.66...
0.0
-1
Returns a new object of class 'Association Class Call Exp'.
<C, P> AssociationClassCallExp<C, P> createAssociationClassCallExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public Assoc getAssoc();", "public void testCtor() throws Exception {\n PasteAssociationAction pasteAction = new PasteAssociationAction(transferable, namespace);\n\n assertEquals(\"Should return Association instance.\", association, pasteAction.getModelElement());\n }", "OperationCall...
[ "0.5427646", "0.5295767", "0.5276471", "0.5231828", "0.52006364", "0.51944816", "0.5156657", "0.5154088", "0.5112983", "0.50771147", "0.50749695", "0.5052727", "0.5043861", "0.50288", "0.50042456", "0.4963085", "0.49594623", "0.49489692", "0.49421594", "0.49368137", "0.493681...
0.802721
0
Returns a new object of class 'Boolean Literal Exp'.
<C> BooleanLiteralExp<C> createBooleanLiteralExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BooleanLiteralExp createBooleanLiteralExp();", "BooleanExpression createBooleanExpression();", "BooleanExpression createBooleanExpression();", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "publi...
[ "0.8917271", "0.80719984", "0.80719984", "0.6836748", "0.6836748", "0.6836748", "0.6836748", "0.68239635", "0.6798101", "0.67825943", "0.66681266", "0.6621452", "0.66104984", "0.6567679", "0.65298325", "0.6514846", "0.6474522", "0.64424425", "0.64275485", "0.64151716", "0.635...
0.8598908
1
Returns a new object of class 'Collection Item'.
<C> CollectionItem<C> createCollectionItem();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CollectionItem createCollectionItem();", "protected abstract Collection createCollection();", "public HashMap<String, Item> getItemCollection(){\n \tHashMap<String, Item> result = new HashMap<String, Item>(itemCollection);\r\n \treturn result;\r\n }", "public @NotNull Item newItem();", "public Ite...
[ "0.8416673", "0.6858302", "0.672408", "0.6703515", "0.6625591", "0.65740407", "0.6561602", "0.65395737", "0.65226036", "0.64839226", "0.6440953", "0.6423754", "0.6400427", "0.6369608", "0.63183504", "0.6267142", "0.62121415", "0.6170502", "0.6170502", "0.6168569", "0.6146643"...
0.77569836
1
Returns a new object of class 'Collection Literal Exp'.
<C> CollectionLiteralExp<C> createCollectionLiteralExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CollectionLiteralExp createCollectionLiteralExp();", "public T caseCollectionLiteralExpCS(CollectionLiteralExpCS object) {\r\n return null;\r\n }", "public T caseCollectionTypeLiteralExpCS(CollectionTypeLiteralExpCS object) {\r\n return null;\r\n }", "public XbaseGrammarAccess.XCollectionLiteralEleme...
[ "0.84969586", "0.6781944", "0.66821426", "0.63383806", "0.6298185", "0.6273544", "0.6273544", "0.62021655", "0.61359936", "0.6114637", "0.61133033", "0.60675186", "0.6014194", "0.5972897", "0.5954091", "0.58266175", "0.58177567", "0.58128375", "0.577221", "0.5753558", "0.5723...
0.8459348
1
Returns a new object of class 'Collection Range'.
<C> CollectionRange<C> createCollectionRange();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CollectionRange createCollectionRange();", "Range createRange();", "private Range() {}", "abstract public Range createRange();", "Range() {}", "public SetOfRanges() {\n RangeSet = new Vector();\n }", "RangeValue createRangeValue();", "public T caseCollectionRangeCS(CollectionRangeCS object)...
[ "0.8827921", "0.7448077", "0.7430409", "0.73904186", "0.7029165", "0.66325384", "0.63539326", "0.62928176", "0.61771476", "0.6029435", "0.5974509", "0.5933793", "0.59051824", "0.5896161", "0.5889788", "0.58831394", "0.5880978", "0.5837541", "0.5833269", "0.583111", "0.5823175...
0.8560176
1
Returns a new object of class 'Enum Literal Exp'.
<C, EL> EnumLiteralExp<C, EL> createEnumLiteralExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "EnumLiteralExp createEnumLiteralExp();", "EEnumLiteral createEEnumLiteral();", "public CustomMof14EnumLiteral createCustomMof14EnumLiteral();", "EEnum createEEnum();", "EnumRef createEnumRef();", "EnumConstant createEnumConstant();", "EnumTypeDefinition createEnumTypeDefinition();", "EnumTypeRule cre...
[ "0.89540976", "0.8177491", "0.75876635", "0.7241704", "0.6923301", "0.69008666", "0.6823899", "0.65899456", "0.6462537", "0.64096636", "0.64096636", "0.64096636", "0.6361351", "0.6318211", "0.630131", "0.61850536", "0.6174399", "0.6057055", "0.60516053", "0.60429174", "0.6005...
0.8679655
1
Returns a new object of class 'If Exp'.
<C> IfExp<C> createIfExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IfExp createIfExp();", "If createIf();", "Object getIf();", "public If(Condition con, Statement exp1, Statement exp2)\n {\n this.condition = con;\n this.exp1 = exp1;\n this.exp2 = exp2;\n }", "public IfCondition() {\r\n super();\r\n }", "IfStatement createIfStatement(...
[ "0.879057", "0.7737112", "0.69414675", "0.6842301", "0.66904515", "0.66899973", "0.6666346", "0.65773356", "0.65358067", "0.6510814", "0.6428469", "0.63798463", "0.6320719", "0.62763894", "0.6232469", "0.6178132", "0.6114364", "0.60972327", "0.60230905", "0.59669507", "0.5830...
0.8303266
1
Returns a new object of class 'Integer Literal Exp'.
<C> IntegerLiteralExp<C> createIntegerLiteralExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IntegerLiteralExp createIntegerLiteralExp();", "public IntegerLiteral(Integer number)\n {\n this.literal = number; \n }", "public Exp transIntExp(int value){\r\n\t\treturn new Ex(new CONST(value));\r\n\t}", "public LlvmValue visit(IntegerLiteral n) {\n return new LlvmIntegerLiteral(n.value);\n ...
[ "0.8829362", "0.70440066", "0.66121155", "0.65393734", "0.63526374", "0.6343571", "0.6226481", "0.6149584", "0.613542", "0.613542", "0.6074064", "0.6063064", "0.6063064", "0.6021718", "0.6013141", "0.6011218", "0.5997955", "0.5927467", "0.59108067", "0.5910741", "0.5813124", ...
0.84659547
1
Returns a new object of class 'Unlimited Natural Literal Exp'.
<C> UnlimitedNaturalLiteralExp<C> createUnlimitedNaturalLiteralExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UnlimitedNaturalExp createUnlimitedNaturalExp();", "RealLiteralExp createRealLiteralExp();", "IntegerLiteralExp createIntegerLiteralExp();", "InvalidLiteralExp createInvalidLiteralExp();", "<C> RealLiteralExp<C> createRealLiteralExp();", "UndefinedLiteralExp createUndefinedLiteralExp();", "LetExp creat...
[ "0.85912305", "0.6775634", "0.65183365", "0.6342023", "0.6121845", "0.60624224", "0.60566175", "0.60184336", "0.60184336", "0.600795", "0.5888964", "0.5885799", "0.5858769", "0.58525854", "0.5846383", "0.5838445", "0.57284915", "0.56690025", "0.5621938", "0.56092846", "0.5549...
0.8467763
1
Returns a new object of class 'Invalid Literal Exp'.
<C> InvalidLiteralExp<C> createInvalidLiteralExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "InvalidLiteralExp createInvalidLiteralExp();", "UndefinedLiteralExp createUndefinedLiteralExp();", "RealLiteralExp createRealLiteralExp();", "StringLiteralExp createStringLiteralExp();", "public LiteralExpression (String str){\n _value = str;\n }", "Literal createLiteral();", "Literal createL...
[ "0.87068117", "0.6962074", "0.69394886", "0.65983576", "0.6517249", "0.6501663", "0.6501663", "0.641876", "0.63767797", "0.6304415", "0.6287691", "0.6237074", "0.6016732", "0.6015277", "0.5957618", "0.59372014", "0.5918604", "0.5798058", "0.5762326", "0.57456523", "0.5727518"...
0.81262153
1
Returns a new object of class 'Iterate Exp'.
<C, PM> IterateExp<C, PM> createIterateExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IterateExp createIterateExp();", "IteratorExp createIteratorExp();", "<C, PM> IteratorExp<C, PM> createIteratorExp();", "public Iterator<T> iterator() {\r\n \r\n return new Iteration();\r\n }", "public OpIterator iterator() {\n // some code goes here\n // throw new\n // Unsupp...
[ "0.8118038", "0.77856237", "0.7508533", "0.673997", "0.6543003", "0.64630157", "0.6365735", "0.6361995", "0.63463676", "0.63279015", "0.63046837", "0.6249063", "0.6235163", "0.6233855", "0.61369395", "0.61098367", "0.6066785", "0.6054365", "0.5992805", "0.5985418", "0.597994"...
0.8259022
0
Returns a new object of class 'Iterator Exp'.
<C, PM> IteratorExp<C, PM> createIteratorExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IteratorExp createIteratorExp();", "public abstract Iterator<E> createIterator();", "public Iterator<E> iterator(){\r\n return new IteratorHelper();\r\n }", "IterateExp createIterateExp();", "public Iterator<T> iterator() {\r\n \r\n return new Iteration();\r\n }", "<C, PM> IterateExp<C...
[ "0.8649697", "0.7328878", "0.729144", "0.7273071", "0.726348", "0.71867895", "0.7184145", "0.7139409", "0.7122784", "0.7060843", "0.70387775", "0.70068747", "0.6981915", "0.6979649", "0.6946985", "0.68592334", "0.68579304", "0.68169737", "0.6813157", "0.6783789", "0.6777402",...
0.81967384
1
Returns a new object of class 'Let Exp'.
<C, PM> LetExp<C, PM> createLetExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "LetExp createLetExp();", "public Let getLet(){\n return let;\n }", "public Element compileLet() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tString varName;\n\t\tboolean array = false;\n\t\tElement letParent = document.createElement(\"letStatement\");\n\n\t\t// let\n\t\ttokenType = j...
[ "0.852355", "0.62654275", "0.5887476", "0.57867295", "0.57552457", "0.5687197", "0.5631604", "0.55133593", "0.5460565", "0.544561", "0.53837645", "0.53580487", "0.53231275", "0.5301234", "0.5296428", "0.52864456", "0.5270197", "0.5160859", "0.5130942", "0.5123574", "0.5098926...
0.7930681
1
Returns a new object of class 'Message Exp'.
<C, COA, SSA> MessageExp<C, COA, SSA> createMessageExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Message newMessage(String message, Object p0) {\n/* 69 */ return new SimpleMessage(message);\n/* */ }", "public Message newMessage(String message, Object p0, Object p1) {\n/* 77 */ return new SimpleMessage(message);\n/* */ }", "public Message newMessage(String message, Object p0, O...
[ "0.6891279", "0.68560266", "0.68554497", "0.6808153", "0.6749733", "0.6747658", "0.672867", "0.6727283", "0.67271537", "0.6714835", "0.6700748", "0.66831917", "0.66831917", "0.66269", "0.6595792", "0.65175563", "0.64772344", "0.63893384", "0.63893384", "0.63732725", "0.632524...
0.7133076
0
Returns a new object of class 'Null Literal Exp'.
<C> NullLiteralExp<C> createNullLiteralExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ExprNull createExprNull();", "UndefinedLiteralExp createUndefinedLiteralExp();", "public T caseNullLiteralExpCS(NullLiteralExpCS object) {\r\n return null;\r\n }", "public FnNull(){\n\t}", "RealLiteralExp createRealLiteralExp();", "public static Value makeNull() {\n return theNull;\n }", ...
[ "0.7368956", "0.7350734", "0.6751136", "0.64409566", "0.63695353", "0.6242367", "0.62321585", "0.62275416", "0.6164758", "0.615992", "0.6142163", "0.6119067", "0.6072103", "0.60212123", "0.60212123", "0.59857625", "0.595354", "0.5943152", "0.59313905", "0.5863436", "0.5863296...
0.7992049
0
Returns a new object of class 'Operation Call Exp'.
<C, O> OperationCallExp<C, O> createOperationCallExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OperationCallExp createOperationCallExp();", "public static ObjectInstance getMultiplyToAddOperationCallObjectInstance()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(\n 4);\n properties...
[ "0.8484386", "0.73201853", "0.6913047", "0.6542828", "0.642407", "0.642407", "0.6368638", "0.63460076", "0.61215925", "0.60323113", "0.60027164", "0.59994704", "0.5941218", "0.5889305", "0.5866585", "0.58144224", "0.5810878", "0.58043885", "0.5795525", "0.5795074", "0.5782932...
0.734712
1
Returns a new object of class 'Property Call Exp'.
<C, P> PropertyCallExp<C, P> createPropertyCallExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PropertyCallExp createPropertyCallExp();", "Property createProperty();", "OperationCallExp createOperationCallExp();", "public static MemberExpression property(Expression expression, String name) { throw Extensions.todo(); }", "public static MemberExpression property(Expression expression, Method method) {...
[ "0.8716135", "0.6071713", "0.6064097", "0.60250753", "0.5903222", "0.58873546", "0.58529013", "0.58269316", "0.5825698", "0.5797332", "0.5632135", "0.5492968", "0.54057765", "0.54009557", "0.5383544", "0.537388", "0.53594273", "0.5340793", "0.53276986", "0.53232235", "0.52808...
0.8107605
1
Returns a new object of class 'Real Literal Exp'.
<C> RealLiteralExp<C> createRealLiteralExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RealLiteralExp createRealLiteralExp();", "Literal createLiteral();", "Literal createLiteral();", "StringLiteralExp createStringLiteralExp();", "SimpleLiteral createSimpleLiteral();", "protected RealExpression() {\r\n super();\r\n }", "LetExp createLetExp();", "InvalidLiteralExp createInvalidLiter...
[ "0.86764807", "0.6631058", "0.6631058", "0.65514696", "0.652855", "0.6504356", "0.6443567", "0.6418205", "0.6358318", "0.6284964", "0.6273068", "0.6220697", "0.62100047", "0.6196634", "0.6147924", "0.60525596", "0.60525596", "0.60367703", "0.5997478", "0.59648603", "0.5964824...
0.8023722
1
Returns a new object of class 'State Exp'.
<C, S> StateExp<C, S> createStateExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public State state();", "public State(){}", "void create( State state );", "public State () {\n\t\tthis.stateId = generateStateId();\n\t}", "public State(String state_rep) {\n\t\tthis.state_rep = state_rep;\n\t}", "Object getState();", "@Override\r\n public IObjectiveState createState(final Serializab...
[ "0.7109358", "0.70309556", "0.6696193", "0.65898675", "0.6579671", "0.64809746", "0.645415", "0.6432772", "0.63984424", "0.63605875", "0.6355344", "0.6355344", "0.63547486", "0.63547486", "0.63547486", "0.63547486", "0.6352129", "0.6350585", "0.6308928", "0.63031274", "0.6257...
0.8023302
0
Returns a new object of class 'String Literal Exp'.
<C> StringLiteralExp<C> createStringLiteralExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "StringLiteralExp createStringLiteralExp();", "StringExpression createStringExpression();", "public LiteralExpression (String str){\n _value = str;\n }", "RealLiteralExp createRealLiteralExp();", "SimpleLiteral createSimpleLiteral();", "Literal createLiteral();", "Literal createLiteral();", ...
[ "0.8403026", "0.7579944", "0.72717273", "0.70021", "0.696711", "0.6801305", "0.6801305", "0.653994", "0.6443741", "0.6403371", "0.6403371", "0.63967055", "0.633031", "0.6278689", "0.62370795", "0.62355894", "0.6165387", "0.61409247", "0.61162055", "0.6104798", "0.608653", "...
0.8103633
1
Returns a new object of class 'Tuple Literal Exp'.
<C, P> TupleLiteralExp<C, P> createTupleLiteralExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TupleLiteralExp createTupleLiteralExp();", "TupleExpr createTupleExpr();", "TupleLiteralPart createTupleLiteralPart();", "<C, P> TupleLiteralPart<C, P> createTupleLiteralPart();", "private Tuples() {}", "TupleTypeRule createTupleTypeRule();", "public final AstValidator.tuple_return tuple() throws Recog...
[ "0.8934344", "0.80159235", "0.7878818", "0.7756982", "0.68530196", "0.6698256", "0.6575443", "0.6422555", "0.6342736", "0.6316029", "0.62487376", "0.62221706", "0.6215422", "0.61527854", "0.6049118", "0.6041781", "0.6041781", "0.60180193", "0.6002699", "0.5995242", "0.5955068...
0.8676419
1
Returns a new object of class 'Tuple Literal Part'.
<C, P> TupleLiteralPart<C, P> createTupleLiteralPart();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TupleLiteralPart createTupleLiteralPart();", "TupleLiteralExp createTupleLiteralExp();", "<C, P> TupleLiteralExp<C, P> createTupleLiteralExp();", "TupleExpr createTupleExpr();", "private Tuples() {}", "public final AstValidator.tuple_return tuple() throws RecognitionException {\n AstValidator.tupl...
[ "0.8842612", "0.81300426", "0.78717005", "0.7316557", "0.6875989", "0.6530572", "0.64761156", "0.6358642", "0.6293645", "0.62504834", "0.62504834", "0.6210895", "0.61999434", "0.60682607", "0.605693", "0.60466784", "0.60414076", "0.60300523", "0.60209936", "0.6008237", "0.598...
0.86597216
1
Returns a new object of class 'Type Exp'.
<C> TypeExp<C> createTypeExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static NewExpression new_(Class type) { throw Extensions.todo(); }", "<C, PM> VariableExp<C, PM> createVariableExp();", "TypeLiteralExp createTypeLiteralExp();", "VariableExp createVariableExp();", "LetExp createLetExp();", "<C, PM> LetExp<C, PM> createLetExp();", "Exp\ngetExp2();", "Exp\ngetE...
[ "0.67137873", "0.6527346", "0.6479427", "0.61915356", "0.6167604", "0.61589795", "0.6092269", "0.60759985", "0.605313", "0.6043496", "0.59867465", "0.58562195", "0.5832002", "0.58066696", "0.5692089", "0.56672055", "0.56489325", "0.56472033", "0.56409496", "0.5602335", "0.558...
0.72512627
0
Returns a new object of class 'Unspecified Value Exp'.
<C> UnspecifiedValueExp<C> createUnspecifiedValueExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Value() {}", "public Value(){}", "public static Value makeAbsent() {\n return theAbsent;\n }", "public Value restrictToNotAbsent() {\n checkNotUnknown();\n if (isNotAbsent())\n return this;\n Value r = new Value(this);\n r.flags &= ~ABSENT;\n if ...
[ "0.6114333", "0.6059513", "0.5963115", "0.591625", "0.59048176", "0.58595186", "0.57808053", "0.5729256", "0.57107407", "0.5692739", "0.5677342", "0.5642526", "0.5639941", "0.5608162", "0.5537895", "0.5522309", "0.54818654", "0.54609114", "0.54567355", "0.5439286", "0.5421788...
0.85255975
0
Returns a new object of class 'Variable'.
<C, PM> Variable<C, PM> createVariable();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Variable createVariable();", "Variable createVariable();", "public VariableIF createVariable(VariableDecl decl);", "VariableExp createVariableExp();", "public Variable(String name){\n this.name = name;\n }", "public static Variable variable( String name )\n {\n NullArgumentException.v...
[ "0.8195601", "0.8195601", "0.7372565", "0.73587966", "0.719862", "0.71694314", "0.70412064", "0.7034903", "0.6970744", "0.6940322", "0.6857108", "0.68048865", "0.67866296", "0.67194444", "0.66995656", "0.6631252", "0.6608376", "0.6584358", "0.6583322", "0.6579213", "0.6569157...
0.7152058
6
Returns a new object of class 'Variable Exp'.
<C, PM> VariableExp<C, PM> createVariableExp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "VariableExp createVariableExp();", "Variable createVariable();", "Variable createVariable();", "public VariableIF createVariable(VariableDecl decl);", "DynamicVariable createDynamicVariable();", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "public static Expr...
[ "0.8673026", "0.739172", "0.739172", "0.73762023", "0.67135465", "0.66741234", "0.66262686", "0.6558778", "0.65377194", "0.6522472", "0.64558434", "0.63823074", "0.63427174", "0.6313478", "0.6245341", "0.62088454", "0.61604893", "0.6133455", "0.6131269", "0.6060477", "0.60561...
0.7973473
1
Returns the package supported by this factory.
ExpressionsPackage getExpressionsPackage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PackageType getRequiredPackage();", "public PackageNode getPackage();", "java.lang.String getPackage();", "public String getPackageName();", "public String getPackageName() {\n return pkg;\n }", "String getPackageName();", "public DsByteString getPackage() {\n return m_strPackage;\n }", ...
[ "0.7031596", "0.6824025", "0.6818806", "0.6752645", "0.67181015", "0.6704875", "0.6698022", "0.6678774", "0.6635858", "0.6556546", "0.65183675", "0.6501405", "0.6496429", "0.6481852", "0.6376274", "0.63505894", "0.6338929", "0.63388515", "0.6327788", "0.6314242", "0.63126606"...
0.0
-1
TODO Autogenerated method stub
@Override public void onFailure(Throwable caught) { }
{ "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 filterChange() { }
{ "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
Make a new cell with given key, value, and parent, and with null child links, and BLACK color.
TreeMap_Entry(Object key, Object value, TreeMap_Entry parent/*F=this.F*/) { this.key = key; this.value = value; this.parent = parent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Node(int key, int val, String col){\n\t\t\tid = key;\n\t\t\tcount = val;\n\t\t\tcolour = col;\n\t\t\tleft = nil;\n\t\t\tright = nil;\n\t\t\tparent = nil;\n\t\t}", "private Node createNullLeaf(Node parent) {\n Node leaf = new Node();\n leaf.color = Color.BLACK;\n leaf.isNull = true;\n ...
[ "0.61441445", "0.5764434", "0.57551676", "0.5726596", "0.56585824", "0.549897", "0.54368025", "0.5423986", "0.5392617", "0.5264289", "0.5259527", "0.52391976", "0.521909", "0.5210228", "0.51865876", "0.5175198", "0.51609915", "0.5137273", "0.5132513", "0.51256937", "0.509698"...
0.48859942
42
Returns the value associated with the key.
public Object getValue() { return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public V getValue(K key);", "public V getValue(K key);", "public Value get(Key key);", "public Value get(Key key) ;", "public V getValue(Object key) {\n\t\treturn super.get(key);\n\t}", "public V get(K key) {\n if (null == key) {\n throw new IllegalStateException(\"Null value for key is...
[ "0.82152027", "0.82152027", "0.81030625", "0.782722", "0.77959144", "0.7769611", "0.7730086", "0.7673952", "0.7663507", "0.76628727", "0.7609714", "0.7584201", "0.751399", "0.7512986", "0.7494465", "0.7487349", "0.7461043", "0.74585", "0.7455296", "0.7450913", "0.74505734", ...
0.0
-1
Replaces the value currently associated with the key with the given value.
public Object setValue(Object value) { Object oldValue = this.value; this.value = value; return oldValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void replace(K key, V value) {\r\n int hash = key.hashCode() % data.length;\r\n if (hash < 0){\r\n hash *= -1;\r\n }\r\n if (data[hash] == null) {\r\n throw new NullPointerException(\"no such key in the HashMap\" + key);\r\n } else {\r\n No...
[ "0.76091564", "0.7377536", "0.7113977", "0.6743713", "0.66536874", "0.6600562", "0.65333694", "0.643394", "0.6427608", "0.6422654", "0.64066356", "0.64010173", "0.63819605", "0.6363962", "0.6308011", "0.63007003", "0.6291867", "0.6270758", "0.6243066", "0.61994445", "0.619886...
0.0
-1
Adds a new item to the tradId list.
public SecuritiesTradeDetails137 addTradId(String tradId) { getTradId().add(tradId); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addID(int id){\n IDList.add(id);\n }", "public synchronized void addItem(IJABXAdvertisementItem item) {\n\t\tidMap.put(item.getSerialNo(), item);\n\t\titemList.add(item);\n\t}", "II addId();", "void addId(II identifier);", "void add(Item item);", "void addTire(Long orderId, Long tir...
[ "0.65049464", "0.63170695", "0.6113008", "0.6071834", "0.6040227", "0.60209817", "0.60136575", "0.59649265", "0.5944308", "0.5888684", "0.586629", "0.58617175", "0.5860557", "0.58090264", "0.5800167", "0.5786684", "0.5773792", "0.57677597", "0.5737504", "0.57191944", "0.56656...
0.5976339
7
Adds a new item to the collTxId list.
public SecuritiesTradeDetails137 addCollTxId(String collTxId) { getCollTxId().add(collTxId); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String addItem(Item item){\n EntityManager em = emf.createEntityManager();\n try{\n utx.begin();\n em.joinTransaction();\n for(Tag tag : item.getTags()) {\n tag.incrementRefCount();\n tag.getItems().add(item);\n em.m...
[ "0.6163904", "0.5852526", "0.5815534", "0.57440937", "0.56957877", "0.569567", "0.55667084", "0.55471355", "0.553571", "0.5485551", "0.54614294", "0.5449499", "0.5445032", "0.54364794", "0.5429616", "0.5417678", "0.54065466", "0.54005533", "0.5385658", "0.5375011", "0.5350653...
0.6366583
0
Adds a new item to the tradTxCond list.
public SecuritiesTradeDetails137 addTradTxCond(TradeTransactionCondition5Choice tradTxCond) { getTradTxCond().add(tradTxCond); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToPolicyTransactions(entity.AppCritPolicyTransaction element);", "@Override\n public void addItem(P_CK t) {\n \n }", "public void addCostItem(CostItem item) throws CostManagerException;", "protected /*override*/ void InsertItem(int index, Condition item)\r\n { \r\n ...
[ "0.5921843", "0.5772508", "0.5710176", "0.56951654", "0.5543576", "0.5422227", "0.54050153", "0.5330981", "0.5312903", "0.52391714", "0.5233763", "0.52088755", "0.52077925", "0.5171025", "0.5143893", "0.5139734", "0.5136381", "0.5136269", "0.5125704", "0.51237696", "0.5117066...
0.59983
0
Adds a new item to the splmtryData list.
public SecuritiesTradeDetails137 addSplmtryData(SupplementaryData1 splmtryData) { getSplmtryData().add(splmtryData); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addItem(DataRecord record);", "void add(Item item);", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}", "public void addItem(Item param) {\r\n if (localItem == null) {\r\n localItem = new Item[] { };\r\...
[ "0.7044315", "0.6951915", "0.6786257", "0.6753722", "0.67040086", "0.6646303", "0.662905", "0.65964556", "0.65942633", "0.6554172", "0.6554172", "0.6543905", "0.6542192", "0.65407443", "0.6528813", "0.648355", "0.6467716", "0.6427567", "0.64113224", "0.64003885", "0.6399825",...
0.632687
28
Loads a single plugin from the file
private void loadPlugin(File file) { JarFile jarFile; try { jarFile = new JarFile(file); } catch (IOException e) { Logger.instance.logf(Level.WARNING, Messages.PLUGIN_JARFILE_CREATE, e); return; } JarEntry pJson = jarFile.getJarEntry("plugin.json"); if (pJson == null) return; try { BufferedReader reader = new BufferedReader(new InputStreamReader(jarFile.getInputStream(pJson))); PluginInfo info = new GsonBuilder().setPrettyPrinting().create().fromJson(reader, PluginInfo.class); if (info != null) { ClassLoader classLoader = new URLClassLoader(new URL[] { file.toURI().toURL() }, this.getClass().getClassLoader()); Plugin plugin; try { plugin = (Plugin) classLoader.loadClass(info.getMain()).newInstance(); plugin.setInfo(info); plugins.add(plugin); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) { Logger.instance.logf(Level.WARNING, Messages.PLUGIN_INSTANTIATION, e); return; } Enumeration<JarEntry> entries = jarFile.entries(); while (entries.hasMoreElements()) { JarEntry e = entries.nextElement(); String name = e.getName(); if (name.endsWith(".class")) { try { Class clazz = Class.forName(name.substring(0, name.length() - 6).replace('/', '.'), true, classLoader); if (clazz != null && clazz.getSuperclass().equals(Module.class)) { try { plugin.loadModule((Module) clazz.newInstance()); } catch (InstantiationException | IllegalAccessException exception) { Logger.instance.logf(Level.WARNING, Messages.PLUGIN_CANT_CREATE_MODULE, exception); } } } catch (ClassNotFoundException exception) { Logger.instance.logf(Level.WARNING, Messages.PLUGIN_CANT_LOAD_CLASS, name); } } } } } catch (IOException e) { Logger.instance.logf(Level.WARNING, Messages.PLUGIN_CANT_CREATE_INPUTSTREAM, file.getAbsolutePath()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IPluginResource load( URI path ) throws LoaderException;", "public void load(Maussentials plugin);", "private Plugin loadPlugin(String p) {\n Plugin plugin = this.getServer().getPluginManager().getPlugin(p);\n if (plugin != null && plugin.isEnabled()) {\n getLogger().info(\" Usi...
[ "0.74288833", "0.73994714", "0.68974394", "0.6748221", "0.66309977", "0.63628876", "0.6235067", "0.62046725", "0.61642396", "0.6123711", "0.6120795", "0.6115529", "0.6023738", "0.60220724", "0.60220724", "0.59923977", "0.5958128", "0.59509444", "0.59422547", "0.5939008", "0.5...
0.75664794
0
Retrieves a new SYS Session.
public Session getSysSessionForScript(Database db) { Session session = new Session(db, db.getUserManager().getSysUser(), false, false, 0, null, 0); // some old 1.8.0 do not have SET SCHEMA PUBLIC session.setCurrentSchemaHsqlName( db.schemaManager.defaultSchemaHsqlName); session.isProcessingScript = true; return session; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "synchronized public Session newSysSession() {\n\n Session session = new Session(sysSession.database,\n sysSession.getUser(), false, false,\n sessionIdCount, null, 0);\n\n session.currentSchema =\n sysSession.database...
[ "0.8046659", "0.75667053", "0.6867777", "0.67860484", "0.67480725", "0.6705864", "0.6696343", "0.6674077", "0.6659945", "0.660206", "0.6599074", "0.658788", "0.658788", "0.6561139", "0.654073", "0.6511389", "0.64800847", "0.64157003", "0.6370157", "0.6365868", "0.63637185", ...
0.6288725
22
Retrieves the common SYS Session.
public Session getSysSession() { sysSession.currentSchema = sysSession.database.schemaManager.getDefaultSchemaHsqlName(); sysSession.isProcessingScript = false; sysSession.isProcessingLog = false; sysSession.setUser(sysSession.database.getUserManager().getSysUser()); return sysSession; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getNativeSession();", "final protected RobotSessionGlobals getSession() {\n return mSession;\n }", "SessionManager get();", "synchronized public Session newSysSession() {\n\n Session session = new Session(sysSession.database,\n sysSession.getUser()...
[ "0.69748336", "0.6884459", "0.68715596", "0.6856334", "0.6803405", "0.6753751", "0.6696838", "0.6696838", "0.6583733", "0.6565605", "0.65019387", "0.6497797", "0.6480251", "0.6444538", "0.6441467", "0.63969105", "0.6386666", "0.63815033", "0.63512564", "0.634555", "0.6294476"...
0.7599047
0
Retrieves a transient transaction session.
synchronized public Session newSysSession() { Session session = new Session(sysSession.database, sysSession.getUser(), false, false, sessionIdCount, null, 0); session.currentSchema = sysSession.database.schemaManager.getDefaultSchemaHsqlName(); sessionMap.put(sessionIdCount, session); sessionIdCount++; return session; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static CustomSession get() {\r\n\t\treturn (CustomSession) Session.get();\r\n\t}", "public static Session getSession() {\n return session;\n }", "public Session getSafeSession()\n {\n beginSession(false);\n return session;\n }", "protected Transaction getTransaction() {\n ...
[ "0.65066457", "0.64741814", "0.6468158", "0.64574945", "0.63480604", "0.6310349", "0.62511086", "0.6248309", "0.6242815", "0.623865", "0.6230411", "0.62226117", "0.62077206", "0.62009495", "0.61532265", "0.61521465", "0.6131782", "0.6131782", "0.6131782", "0.61266404", "0.612...
0.0
-1
Closes all Sessions registered with this SessionManager.
public void closeAllSessions() { // don't disconnect system user; need it to save database Session[] sessions = getAllSessions(); for (int i = 0; i < sessions.length; i++) { sessions[i].close(); } synchronized(this) { sessionMap.clear(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "synchronized void close() {\n\n closeAllSessions();\n sysSession.close();\n sysLobSession.close();\n }", "public void close() {\n\t\tif (this.session instanceof DatabaseSession) {\n\t\t\t((DatabaseSession) this.session).logout();\n\t\t}\n\t\tthis.session.release();\n\t}", "protected fin...
[ "0.76338637", "0.67828083", "0.67354286", "0.663764", "0.6630964", "0.63954306", "0.63954306", "0.63861203", "0.630896", "0.6223543", "0.61534697", "0.612155", "0.6121266", "0.61184895", "0.60707104", "0.6061668", "0.6045382", "0.6032758", "0.6032117", "0.6016703", "0.6013619...
0.83010125
0
Removes the session from management and disconnects.
synchronized void removeSession(Session session) { sessionMap.remove(session.getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void disconnect(){\n Session session = (Session)_sessionRef.get();\n if(session != null && session.isConnected()){\n session.disconnect();\n _sessionRef.set(null);\n }\n }", "public void endSession() {\n if (sqlMngr != null) {\n sqlMngr.disconnect();\n }\n if (sc !...
[ "0.7637894", "0.72518617", "0.7026846", "0.7018215", "0.68382204", "0.68153524", "0.67816085", "0.67424047", "0.6727741", "0.67237353", "0.67237353", "0.66751826", "0.66700715", "0.6668565", "0.6662937", "0.6623248", "0.6622374", "0.6582015", "0.6554589", "0.65370363", "0.650...
0.6039771
78
Closes all sessions and system
synchronized void close() { closeAllSessions(); sysSession.close(); sysLobSession.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closeAllSessions() {\n\n // don't disconnect system user; need it to save database\n Session[] sessions = getAllSessions();\n\n for (int i = 0; i < sessions.length; i++) {\n sessions[i].close();\n }\n\n synchronized(this) {\n sessionMap.clear();\...
[ "0.82363725", "0.72900003", "0.72496027", "0.72496027", "0.7092763", "0.7078581", "0.7020772", "0.69816124", "0.69608426", "0.6957251", "0.68461585", "0.68240446", "0.67687666", "0.67171085", "0.66792166", "0.6667553", "0.6617914", "0.6596409", "0.65767103", "0.6552076", "0.6...
0.87627465
0
Returns true if no session exists beyond the sys session.
synchronized boolean isEmpty() { return sessionMap.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasSession();", "public boolean inAnySession() {\n\t\treturn getSession(player).isPresent();\n\t}", "public boolean hasSession() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasSession() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "...
[ "0.75405425", "0.7357852", "0.7344585", "0.7296153", "0.6865383", "0.6820676", "0.6699715", "0.6614011", "0.6614011", "0.6614011", "0.6614011", "0.6614011", "0.6614011", "0.6460587", "0.64398605", "0.6328911", "0.6294471", "0.61425674", "0.61339444", "0.61119956", "0.6101228"...
0.6642192
7
Retrieves a list of the Sessions in this container that are visible to the specified Session, given the access rights of the Session User.
public synchronized Session[] getVisibleSessions(Session session) { return session.isAdmin() ? getAllSessions() : new Session[]{ session }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Session[] findSessions();", "List<Session> getAllSessions();", "public List<String> getSessionList(){\r\n \t\r\n \tList<String> sessionIds = new ArrayList<String>();\r\n \tfor (Entry<String, AccessDetailVO> curPage : pageAccess.entrySet()) {\r\n \t\tAccessDetailVO currLock = curPage.getValue...
[ "0.69171965", "0.67646694", "0.67346317", "0.65069425", "0.64884686", "0.64114255", "0.63611656", "0.63541496", "0.63461226", "0.6314342", "0.6303021", "0.6289923", "0.6224272", "0.61610544", "0.6153262", "0.6057152", "0.59706837", "0.5955591", "0.5944174", "0.5888947", "0.58...
0.780193
0
Retrieves the Session with the specified Session identifier or null if no such Session is registered with this SessionManager.
synchronized Session getSession(long id) { return (Session) sessionMap.get(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Session get(String sessionKey) {\n if (!validateKey(sessionKey))\n return null;\n \n if (exists(sessionKey))\n return sessions.get(sessionKey);\n return null;\n }", "InternalSession findSession(String id);", "private Session getSession (String session...
[ "0.7799547", "0.7489885", "0.720012", "0.69845295", "0.6962178", "0.69583005", "0.6711206", "0.66366446", "0.6591684", "0.65843904", "0.65504843", "0.648026", "0.6473518", "0.64368075", "0.63863766", "0.63851464", "0.63679683", "0.6364681", "0.6344557", "0.6336021", "0.633230...
0.71124464
3
Initialize a player with a unique name
public Player(String name) { this.name = name; this.badges = new LinkedList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Player(String name){\n\t\tthis.name = name;\n\t}", "public Player(String name) {\r\n this.name = name;\r\n }", "Player(String playerName) {\n this.playerName = playerName;\n }", "public Player(String name)\n { \n if (name == \"\")\n {\n setName(\"Anonymous\");...
[ "0.77695215", "0.776008", "0.7724894", "0.7694195", "0.76887494", "0.7541859", "0.7447047", "0.7354889", "0.7352517", "0.7352426", "0.7349842", "0.7302296", "0.7300875", "0.7285287", "0.72808856", "0.7270087", "0.72376096", "0.72023314", "0.71506983", "0.7109465", "0.7094153"...
0.6517065
72
Get the name of the player
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPlayerName();", "public String getName()\r\n\t{\r\n\t\treturn this.playerName;\r\n\t}", "public String getPlayerName() {\n return props.getProperty(\"name\");\n }", "public String getName(){\r\n\t\treturn playerName;\r\n\t}", "public String getPlayerName() {\n return nameLabel.ge...
[ "0.8814854", "0.87470186", "0.8683399", "0.8681049", "0.86218417", "0.85760057", "0.852983", "0.8465091", "0.84400487", "0.83729506", "0.83617824", "0.8327413", "0.83138686", "0.83138686", "0.83031374", "0.8293755", "0.8276346", "0.8247097", "0.8210698", "0.8195645", "0.81947...
0.0
-1
Create a hash code of the player based on the players name
@Override public int hashCode() { return name.hashCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getHash(String name) {\n int x = 0;\n int sum = 0;\n while (x < name.length()) {\n sum += name.charAt(x);\n x++;\n }\n int result = sum % size;\n return result;\n }", "public static long hashName(String name) {\n\t\t\tlo...
[ "0.66655654", "0.65533084", "0.6382355", "0.63593006", "0.6182447", "0.61742455", "0.6152369", "0.6126979", "0.6108051", "0.6042933", "0.60273373", "0.595924", "0.59558254", "0.5928853", "0.5928838", "0.59124315", "0.5892624", "0.5855993", "0.5840694", "0.5827194", "0.5819253...
0.5825516
20
Two players are equal if they have the same username
@Override public boolean equals(Object other) { if(this == other) return true; if(other instanceof Player) return this.hashCode() == other.hashCode(); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean equals(Object object) {\n if (this == object) return true;\n if (!(object instanceof Player)) return false;\n Player player = (Player) object;\n return getId().equals(player.getId()) &&\n username.equals(player.username);\n }", "@Test\n\...
[ "0.68311167", "0.6804733", "0.6699288", "0.65890926", "0.6557292", "0.6501373", "0.64886665", "0.64153445", "0.6399236", "0.6384528", "0.63821477", "0.6360892", "0.6360412", "0.63545394", "0.6310675", "0.630431", "0.6290351", "0.6270375", "0.6204732", "0.6196866", "0.6177596"...
0.6493667
6
Add the given badge to the players list of badges. If the player has an easy badge and the hard badge is added, then the easy badge is removed first.
public void addBadge(Badge badge) { if(badge == Badge.HARD_AI_DEFEATED) { badges.remove(Badge.EASY_AI_DEFEATED); if(!badges.contains(Badge.HARD_AI_DEFEATED)) badges.add(Badge.HARD_AI_DEFEATED); } if(badge == Badge.EASY_AI_DEFEATED && !badges.contains(Badge.HARD_AI_DEFEATED)) if(!badges.contains(Badge.EASY_AI_DEFEATED)) badges.add(badge); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addBadge(int num)\n\t{\n\t\tif(num >= 0 && num < m_badges.length)\n\t\t{\n\t\t\tm_badges[num] = 1;\n\t\t\tServerMessage message = new ServerMessage(ClientPacket.BADGES_PACKET);\n\t\t\tmessage.addInt(1);\n\t\t\tmessage.addInt(num);\n\t\t\tgetSession().Send(message);\n\t\t}\n\t}", "public abstract Boss...
[ "0.6560861", "0.57320756", "0.55005264", "0.53681326", "0.5267373", "0.5253709", "0.52518606", "0.52326065", "0.5218513", "0.5176614", "0.51678795", "0.51488173", "0.5141309", "0.51215655", "0.51211995", "0.50854015", "0.5083869", "0.5076593", "0.5055483", "0.5050263", "0.504...
0.82285285
0
If the correct answer is chosen, increases user score by 1
@Override public void onClick(View v) { if (one.isChecked()){ scoreCounter += 1 ; } buttonSubmit (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void calculateScore() {\n EditText editText1 = (EditText) findViewById(R.id.edit_text1);\n String answer1 = editText1.getText().toString().toLowerCase().trim();\n if (answer1.equals( getResources().getText(R.string.answer1))) {\n score += 3;\n } else {\n //...
[ "0.7284714", "0.72777146", "0.72539705", "0.7198921", "0.71490437", "0.71380305", "0.71251166", "0.7073961", "0.7036927", "0.69820195", "0.6952062", "0.69280976", "0.6886216", "0.6876438", "0.68711084", "0.6866169", "0.6864513", "0.6861973", "0.6839728", "0.6812846", "0.67734...
0.0
-1
calls the next question once the submit button is pressed
private void buttonSubmit (){ Intent nextActivity = new Intent(Question_One.this, Question_two.class); // Transfers the user's current score to the next intent(question) nextActivity.putExtra(EXTRA_TEXT,scoreCounter); startActivity(nextActivity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void callNextQuestion() {\n questionProgress++;\n\n if (questionProgress <= 10) {\n\n if (Utils.isKitkat()) {\n ContinuousSlide slide = new ContinuousSlide(Gravity.RIGHT);\n TransitionManager.beginDelayedTransition(llBody, slide);\n }\n\n ...
[ "0.7816375", "0.7741057", "0.7575858", "0.75220984", "0.7468572", "0.74495775", "0.73276705", "0.72127753", "0.70204145", "0.70030665", "0.69944954", "0.6954323", "0.6934181", "0.6920891", "0.69201756", "0.6912169", "0.6852289", "0.67732894", "0.6760771", "0.6744626", "0.6731...
0.6972153
11
calls the next question once the next button is pressed button is pressed
private void buttonNext (){ Intent nextActivity = new Intent(Question_One.this, Question_two.class); nextActivity.putExtra(EXTRA_TEXT,scoreCounter); startActivity(nextActivity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void callNextQuestion() {\n questionProgress++;\n\n if (questionProgress <= 10) {\n\n if (Utils.isKitkat()) {\n ContinuousSlide slide = new ContinuousSlide(Gravity.RIGHT);\n TransitionManager.beginDelayedTransition(llBody, slide);\n }\n\n ...
[ "0.851339", "0.8400371", "0.7896412", "0.78598315", "0.7823482", "0.78119195", "0.780347", "0.77432257", "0.7729947", "0.7723699", "0.7642957", "0.7506878", "0.73958933", "0.7330619", "0.73274183", "0.7283069", "0.72323716", "0.7181393", "0.7149658", "0.70905715", "0.6995132"...
0.7493296
12
repeated double file = 1;
java.util.List<java.lang.Double> getFileList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getFile(int index);", "void mo80454a(File file, long j);", "public float[] accumulateSimpleSilentPeriodFiles(ArrayList<File> files){\r\n\t\t\tfloat[] values = new float[10];\r\n\t\t\tfloat[] returnValue = new float[10];\r\n\t\t\t\r\n\t\t for(File file:files){\t\t\t\t\t\r\n\t\t BufferedReader ...
[ "0.64843285", "0.6192742", "0.5850097", "0.5670009", "0.56388485", "0.5569738", "0.5567814", "0.5529964", "0.55221784", "0.54607415", "0.53880584", "0.5384534", "0.5373062", "0.5350121", "0.5257411", "0.52378935", "0.5233628", "0.52258384", "0.52193993", "0.521704", "0.520890...
0.53907883
10
repeated double file = 1;
int getFileCount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getFile(int index);", "void mo80454a(File file, long j);", "public float[] accumulateSimpleSilentPeriodFiles(ArrayList<File> files){\r\n\t\t\tfloat[] values = new float[10];\r\n\t\t\tfloat[] returnValue = new float[10];\r\n\t\t\t\r\n\t\t for(File file:files){\t\t\t\t\t\r\n\t\t BufferedReader ...
[ "0.64843285", "0.6192742", "0.5850097", "0.5670009", "0.56388485", "0.5569738", "0.5567814", "0.5529964", "0.55221784", "0.54607415", "0.53907883", "0.53880584", "0.5384534", "0.5373062", "0.5350121", "0.5257411", "0.52378935", "0.5233628", "0.52258384", "0.52193993", "0.5217...
0.4986726
39
repeated double file = 1;
double getFile(int index);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo80454a(File file, long j);", "public float[] accumulateSimpleSilentPeriodFiles(ArrayList<File> files){\r\n\t\t\tfloat[] values = new float[10];\r\n\t\t\tfloat[] returnValue = new float[10];\r\n\t\t\t\r\n\t\t for(File file:files){\t\t\t\t\t\r\n\t\t BufferedReader reader;\r\n\t\t try{\r\n\...
[ "0.6192742", "0.5850097", "0.5670009", "0.56388485", "0.5569738", "0.5567814", "0.5529964", "0.55221784", "0.54607415", "0.53907883", "0.53880584", "0.5384534", "0.5373062", "0.5350121", "0.5257411", "0.52378935", "0.5233628", "0.52258384", "0.52193993", "0.521704", "0.520890...
0.64843285
0
/ConversationListFragment conversationsFragment = new ConversationListFragment(); activity.getSupportFragmentManager() .beginTransaction() .replace(R.id.container,conversationsFragment) .commit();
@Override public void toMyBookings() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void goAddFriends (View view){\n Fragment newFragment = new AddFriendsFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the ...
[ "0.7576492", "0.73260903", "0.7290789", "0.72778445", "0.72612816", "0.72003806", "0.7194607", "0.71579814", "0.713823", "0.71091074", "0.7040369", "0.70105696", "0.6981323", "0.6981027", "0.6922821", "0.68823457", "0.6870721", "0.6861627", "0.6841174", "0.68251127", "0.68008...
0.0
-1
/ constructor is full
public CD(int id,String name, String singer, int numberOfSongs, double price) { super(); this.id = id; this.name = name; this.singer = singer; this.numberOfSongs = numberOfSongs; this.price = price; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "private void __sep__Constructors__() {}", "public Pitonyak_09_02() {\r\n }", "protected abstract void construct();", "private TMCourse() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\...
[ "0.81921446", "0.8030725", "0.7500753", "0.7489365", "0.73994184", "0.7368678", "0.7367401", "0.7297971", "0.7295265", "0.72513", "0.72223544", "0.7170991", "0.71641374", "0.71627694", "0.7147822", "0.71386987", "0.7119616", "0.7118183", "0.71161693", "0.7107815", "0.70950335...
0.0
-1
/ constructor is empty
public CD(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Pitonyak_09_02() {\r\n }", "private Rekenhulp()\n\t{\n\t}", "public Clade() {}", "public CyanSus() {\n\n }", "private TMCourse() {\n\t}", "private Instantiation(){}", "public Pasien() {\r\n }", "public Orbiter()...
[ "0.8313995", "0.8006065", "0.77166754", "0.761747", "0.75752985", "0.7556908", "0.7477879", "0.7473331", "0.7450198", "0.74440384", "0.7418512", "0.7393965", "0.7383968", "0.73500043", "0.73476833", "0.73469985", "0.73426867", "0.73256934", "0.7292622", "0.72921115", "0.72859...
0.0
-1
/ use to print information cd output String
@Override public String toString() { // TODO Auto-generated method stub return "Id: " + this.id + "\tName: " + this.name + "\tSinger: " + this.singer + "\tNumber of songs: " + this.numberOfSongs + "\tPrice: " + this.price; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString(){\n String temp = drv.getAbsolutePath() + \"\\n\";\n temp += freeSpace + \" / \" + totalSpace + \"\\n\";\n temp += getPercentRem() +\"%\\n\";\n temp += \"Drive Setup: \" + isSetup + \"\\n\";\n for(String i: drv.list()){\n temp += i + \"\\n\";\n }\n return temp;\n ...
[ "0.6329627", "0.63036454", "0.6276214", "0.627392", "0.6223826", "0.60992384", "0.60857296", "0.6020301", "0.5976071", "0.5970779", "0.59655875", "0.5961455", "0.59535503", "0.5929946", "0.5919134", "0.59174603", "0.58997077", "0.5886722", "0.58846307", "0.58723205", "0.58622...
0.0
-1
Note: we get a byte buffer in lieu of a string; this handles converting the byte buffer into a string for storage.
@SuppressWarnings("unchecked") public void arrayAddValue(LinkedList<String> keyList, Object array, Object value) throws IOException { if (value instanceof JSONParseEngine.ByteBuffer) { value = value.toString(); } ((ArrayList) array).add(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String strBufToString() {\n return new String(strBuf, 0, strBufLen);\n }", "private String asString(ByteBuffer buffer) {\n\t\tByteBuffer copy = buffer.duplicate();\n\t\tbyte[] bytes = new byte[copy.remaining()];\n\t\tcopy.get(bytes);\n\t\treturn new String(bytes, StandardCharsets.UTF_8);\n\t}...
[ "0.7302743", "0.72454077", "0.6916419", "0.6841923", "0.6794645", "0.6788641", "0.6625988", "0.66085553", "0.65887535", "0.64180833", "0.6414958", "0.63883424", "0.62111676", "0.61849266", "0.6182348", "0.61478317", "0.6137075", "0.60270375", "0.6009653", "0.6003671", "0.6003...
0.0
-1
Note: we get a byte buffer in lieu of a string; this handles converting the byte buffer into a string for storage.
@SuppressWarnings("unchecked") public void objectAddValue(LinkedList<String> keyList, Object obj, String str, Object value) throws IOException { if (value instanceof JSONParseEngine.ByteBuffer) { value = value.toString(); } ((HashMap) obj).put(str, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String strBufToString() {\n return new String(strBuf, 0, strBufLen);\n }", "private String asString(ByteBuffer buffer) {\n\t\tByteBuffer copy = buffer.duplicate();\n\t\tbyte[] bytes = new byte[copy.remaining()];\n\t\tcopy.get(bytes);\n\t\treturn new String(bytes, StandardCharsets.UTF_8);\n\t}...
[ "0.7302743", "0.72454077", "0.6916419", "0.6841923", "0.6794645", "0.6788641", "0.6625988", "0.66085553", "0.65887535", "0.64180833", "0.6414958", "0.63883424", "0.62111676", "0.61849266", "0.6182348", "0.61478317", "0.6137075", "0.60270375", "0.6009653", "0.6003671", "0.6003...
0.0
-1
onPose() is called whenever the Myo detects that the person wearing it has changed their pose, for example, making a fist, or not making a fist anymore.
@Override public void onPose(Myo myo, long timestamp, Pose pose) { if (unlocked) { if (pose.equals(Pose.FINGERS_SPREAD) == true) { Intent i = new Intent("com.android.music.musicservicecommand"); i.putExtra("command", "togglepause"); sendBroadcast(i); extendLock(); } else if (pose.equals(Pose.WAVE_IN) == true) { Intent i = new Intent("com.android.music.musicservicecommand"); i.putExtra("command", "previous"); sendBroadcast(i); extendLock(); } else if (pose.equals(Pose.WAVE_OUT) == true) { Intent i = new Intent("com.android.music.musicservicecommand"); i.putExtra("command", "next"); sendBroadcast(i); extendLock(); } } else if (!unlocked && !unlocked1 && pose.equals(Pose.THUMB_TO_PINKY)) { unlocked1 = true; } else if (!unlocked && unlocked1) { if (pose.equals(Pose.FIST)) { unlocked = true; myo.vibrate(Myo.VibrationType.SHORT); handler.postDelayed(lockMyo, 2000); } else if(!pose.equals(Pose.REST)) { unlocked1 = false; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onPoseAvailable(TangoPoseData pose) {\n }", "public void receivedPoseFromTracker(Pose pose) {}", "private void onPoseUpdate(TangoPoseData pose) {\n StringBuilder stringBuilder = new StringBuilder();\n\n float translation[] = pose.getTranslationAsFloat...
[ "0.76332337", "0.75944674", "0.7466876", "0.70273864", "0.69203", "0.6818527", "0.667261", "0.665456", "0.62980247", "0.590667", "0.5887168", "0.58654916", "0.5798072", "0.57868475", "0.5737225", "0.5670567", "0.5630951", "0.55978286", "0.55270714", "0.54375386", "0.5396947",...
0.67605305
6
text = (TextView) findViewById(R.id.text);
public void onCreateActivity(){ list_v = (ListView) findViewById(R.id.list_v); appInst = (App) getApplicationContext(); // File dir = new File(appInst.MUSIC_PATH); // String[] files = dir.list(); String textSt = ""; // for(String file : files){ // textSt += (file+"\r\n"); // } // text.setText(textSt); // text.setText(appInst.MUSIC_PATH); // text.setText(FileUtils.walk(appInst.MUSIC_PATH)); // getContentResolver().query(appInst.MUSIC_PATH, projection, selection, selectionArgs, sortOrder) String[] proj = new String[] { MediaStore.Audio.Media._ID, MediaStore.Audio.Media.DATA, MediaStore.Audio.Media.DISPLAY_NAME, MediaStore.Audio.Media.DURATION, MediaStore.Audio.Media.ALBUM_ID }; // Log.i(">>uri",Uri.fromParts("content", appInst.MUSIC_PATH, null).toString()); // Log.i(">>uri",Uri.parse(appInst.MUSIC_PATH).toString()); // String where = MediaStore.Audio.Media.MIME_TYPE + "= 'audio/mpeg'" + " AND "+ // MediaStore.Audio.Artists._ID +" IN (" + // "SELECT "+MediaStore.Audio.Media.ARTIST_ID+" FROM AUDIO "+ // "WHERE "+MediaStore.Audio.Media.DATA +" LIKE ?" + // ")"; String where = MediaStore.Audio.Media.MIME_TYPE + "= 'audio/mpeg'" + " AND " + MediaStore.Audio.Media.DATA + " LIKE ?"; String[] whereArgs = new String[]{appInst.MUSIC_PATH + "%"}; Cursor curs = appInst.getContentResolver().query( MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, // MediaStore.Audio.Artists.EXTERNAL_CONTENT_URI, // Uri.parse(appInst.MUSIC_PATH), // Uri.fromParts("content", appInst.MUSIC_PATH, null), proj, // null, // MediaStore.Audio.Media.MIME_TYPE + "= 'audio/mpeg'", where, whereArgs, MediaStore.Audio.Media._ID); final List<Song> songs = new ArrayList<>(); if (curs == null) { Toast.makeText(getApplicationContext(), "query failed, handle error", Toast.LENGTH_LONG).show(); // Log.e("Cursor", "query failed, handle error"); } else if (!curs.moveToFirst()) { Toast.makeText(getApplicationContext(), "no media on the device", Toast.LENGTH_LONG).show(); // Log.e("Cursor", "no media on the device"); } else { do { // long id = curs.getLong(0); // String data = curs.getString(1); // String name = curs.getString(2); // String duration = curs.getString(3); // textSt += Long.toString(id)+";"+data+";"+name+";"+duration+"\r\n\r\n"; Song s = new Song(curs.getLong(0),curs.getString(1),curs.getString(2),curs.getString(3),curs.getLong(4)); songs.add(s); Log.i("song"+s.getId(),"data:"+s.getData()+";name:"+s.getName()+";duration:"+s.getDuration()); }while(curs.moveToNext()); } Log.i("info","size:"+songs.size()); // text.setText(textSt); // final AdapterPlaylistItem adapter = new AdapterPlaylistItem(this, R.layout.adapter_song, songs); final AdapterPlaylistItem adapter = new AdapterPlaylistItem(this, R.layout.adapter_song, songs); list_v.setAdapter(adapter); list_v.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, final View view, final int position, long id) { // Song s = songs.get(position); // Toast.makeText(appInst, // "Click ListItem path " + s.getData()+"; duration:"+s.getDuration(), Toast.LENGTH_LONG) // .show(); final Song item = (Song)parent.getItemAtPosition(position); view.animate() .setDuration(2000) .alpha(0) .withEndAction(new Runnable() { @Override public void run() { songs.remove(position); adapter.notifyDataSetChanged(); view.setAlpha(1); } }); Integer.parseInt("adb"); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n\n setContentView(R.layout.activity_main);\n b1 = (Button) findViewById(R.id.button);\n b1.setOnClickListener(this);\n t = (TextView) findViewById(R.id.textView);\n\n\n\n\...
[ "0.7251946", "0.7021982", "0.6717823", "0.67075706", "0.66877", "0.6678282", "0.66360766", "0.6607353", "0.6577668", "0.6468034", "0.6466622", "0.6455375", "0.64239573", "0.63834184", "0.6376837", "0.63498306", "0.6299514", "0.6293157", "0.62622213", "0.6232205", "0.6218329",...
0.0
-1
Song s = songs.get(position); Toast.makeText(appInst, "Click ListItem path " + s.getData()+"; duration:"+s.getDuration(), Toast.LENGTH_LONG) .show();
@Override public void onItemClick(AdapterView<?> parent, final View view, final int position, long id) { final Song item = (Song)parent.getItemAtPosition(position); view.animate() .setDuration(2000) .alpha(0) .withEndAction(new Runnable() { @Override public void run() { songs.remove(position); adapter.notifyDataSetChanged(); view.setAlpha(1); } }); Integer.parseInt("adb"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String data=listView.getItemAtPosition(position).toString();\n String buffer[]=data.split(\":\");\n String buffer2[]=buffer[1].split(\"\\n\");\n St...
[ "0.7334269", "0.71548617", "0.7037446", "0.7028574", "0.7022507", "0.7009855", "0.7003436", "0.69829774", "0.69224155", "0.68708146", "0.6839841", "0.68082345", "0.67803735", "0.67229444", "0.6688203", "0.66670036", "0.6662048", "0.66324747", "0.66291887", "0.6595715", "0.658...
0.63653636
42
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); TextView bauhs = null; setFont(bauhs, "fonts/handsean.ttf", R.id.textView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivit...
[ "0.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879",...
0.0
-1
/ This is the entrance of the program. It takes 3 input arguments: path to the data file path to the sample file the name of the sample file If the size of input arguments is not as predicted, it will use the default paths Then it will do the following things: packs the arguments calls the MapReader to read files calls the Comparer to generate compare results(a similarity matrix) calls the GridView to present results in the GUI
public static void main(String[] args) throws IOException { String data_path; String sample_path; String sample_name; if(args.length != 3){ data_path = "data/TestData.blf"; sample_path = "samples/SlimeTorpedo.blf"; sample_name = "SlimeTorpedo"; } else{ data_path = args[0]; sample_path = args[1]; sample_name = args[2]; } compare(data_path, sample_path, sample_name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void getInputFileData(){\n\t\t\t\n\t\t\t// editable fields\n\t\t\t\n\t\t\tString directDistanceFile = \"../data/direct_distance_1.txt\";\n\t\t\tString graphInputFile = \"../data/graph_input_1.txt\";\n\t\t\t\n\t\t\t\n\t\t\t// end of editable fields\n\t\t\t\n\t\t\t\n\t\t\tFile file1 = new File(directDi...
[ "0.67421716", "0.66614217", "0.6450099", "0.6436978", "0.6424919", "0.6422015", "0.6399726", "0.63868845", "0.63654846", "0.6276294", "0.6259914", "0.6247561", "0.6243733", "0.6235318", "0.6215965", "0.62108594", "0.620612", "0.61942816", "0.61780167", "0.6173881", "0.6171461...
0.69459206
0
This is the interface that all observers have to implement. Created by Sripadmanaban on 9/6/2015.
public interface Observer { /** * This is the function that gets ccalled when the temperature gets updated. * * @param temperature A double that contains the temperature in kelvin. * @param maxTemperature A double that contains the maximum temperature in kelvin. * @param minTemperature A double that conatins the minimum temperature in kelvin. */ void update(double temperature, double maxTemperature, double minTemperature, int humidity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void NotifyObserver() {\n\n\t}", "@Override\r\n\tpublic void notifyObservers() {\n\t\t\r\n\t}", "public interface DataObserver {\n }", "public interface Observer {\n\n void register(Listener listener);\n void unRegister(Listener listener);\n void update(String name);\n String...
[ "0.8036672", "0.78831726", "0.7629715", "0.75851697", "0.755885", "0.75130314", "0.7504584", "0.74873114", "0.74542904", "0.74335015", "0.74036646", "0.74024", "0.7384691", "0.7382417", "0.73315835", "0.73315835", "0.73315835", "0.7327904", "0.73257893", "0.7305329", "0.73049...
0.658249
96
This is the function that gets ccalled when the temperature gets updated.
void update(double temperature, double maxTemperature, double minTemperature, int humidity);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateCelcius(){\n tempInC = ( (tempInF - 32)/9 ) * 5;\n }", "@Override\n\tpublic void update(float temp, float humidity, float pressure) {\n\n\t}", "@Override\r\n\tpublic void TemperatureUpdated(Temperature temperature) {\n\t\t\r\n\t\twhile (form == null);\r\n\t\tform.UpdateTemperature(t...
[ "0.7825061", "0.7380807", "0.7172305", "0.7094377", "0.70594424", "0.68804336", "0.67784756", "0.6717219", "0.66524243", "0.6521032", "0.65170836", "0.6492919", "0.6481073", "0.6451535", "0.64489794", "0.6430882", "0.64303213", "0.6419959", "0.6397985", "0.6386298", "0.637758...
0.70462906
5
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234",...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", ...
0.0
-1
Returns sample short table model.
@NotNull public static TableModel createShortTableModel ( final boolean editable ) { return new SampleTableModel ( editable, 5 ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SerializableState getSampleModel(Long id) throws RemoteException;", "@Override\n public SampleModel getSampleModel() {\n return this.sampleModel;\n }", "public ExampleTable toExampleTable() { return new ExampleTableImpl(this); }", "public String getFullSampleName(int column);", "public jkt.hms...
[ "0.60166466", "0.5904636", "0.58478665", "0.572103", "0.5666222", "0.56022257", "0.55455947", "0.55127037", "0.547906", "0.54414314", "0.543274", "0.53408617", "0.5314017", "0.53064954", "0.5295945", "0.5262282", "0.5261426", "0.5214116", "0.5155983", "0.5125451", "0.5107119"...
0.63114446
0
Returns sample long table model.
@NotNull public static TableModel createLongTableModel ( final boolean editable ) { return new SampleTableModel ( editable, 12 ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<TargetTable> retrieveLongCadenceTargetTable(TargetTable ttable);", "SerializableState getSampleModel(Long id) throws RemoteException;", "public Table<Integer, Integer, String> getData();", "public static LearningTable createLearningTable() {\n\t\tLearningTable table = new LearningTable(null, null, null)...
[ "0.5898341", "0.57709306", "0.5546669", "0.5395561", "0.5301907", "0.52787894", "0.5243798", "0.5207164", "0.5193781", "0.5118751", "0.5112965", "0.5106111", "0.5061227", "0.50364953", "0.5019319", "0.5018169", "0.50067323", "0.49991322", "0.49921352", "0.49901444", "0.497275...
0.62107474
0
/ Enabled aggressive block sorting
amx(Parcel parcel) { int n = 1; this.a = parcel.readInt(); this.b = parcel.readInt(); if (parcel.readInt() != n) { n = 0; } this.c = n; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortBlocks(){\n\t\tCurrentSets = getCurrentSets();\n\t\tif(CurrentSets == 1){\n\t\t\treturn;\n\t\t}else{\n\t\t\tfor(i = 0; i < CurrentSets - 1; i++){\n\t\t\t\tfor(j = i + 1; j < CurrentSets; j++){\n\t\t\t\t\tif((Integer.parseInt(blocks[i].getHexTag(), 16)) > (Integer.parseInt(blocks[j].getHexTag(), 16)...
[ "0.719662", "0.6253113", "0.6209965", "0.60641325", "0.6062344", "0.60514784", "0.6039714", "0.6020895", "0.6018125", "0.6015914", "0.59652436", "0.5950544", "0.5932971", "0.5900926", "0.58313674", "0.5802383", "0.5788351", "0.57315594", "0.56716985", "0.56670487", "0.5629508...
0.0
-1
/ Enabled aggressive block sorting
public final void writeToParcel(Parcel parcel, int n) { parcel.writeInt(this.a); parcel.writeInt(this.b); int n2 = this.c ? 1 : 0; parcel.writeInt(n2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortBlocks(){\n\t\tCurrentSets = getCurrentSets();\n\t\tif(CurrentSets == 1){\n\t\t\treturn;\n\t\t}else{\n\t\t\tfor(i = 0; i < CurrentSets - 1; i++){\n\t\t\t\tfor(j = i + 1; j < CurrentSets; j++){\n\t\t\t\t\tif((Integer.parseInt(blocks[i].getHexTag(), 16)) > (Integer.parseInt(blocks[j].getHexTag(), 16)...
[ "0.719662", "0.6253113", "0.6209965", "0.60641325", "0.6062344", "0.60514784", "0.6039714", "0.6020895", "0.6018125", "0.6015914", "0.59652436", "0.5950544", "0.5932971", "0.5900926", "0.58313674", "0.5802383", "0.5788351", "0.57315594", "0.56716985", "0.56670487", "0.5629508...
0.0
-1
gets image data from an episode
public List<PageInfoDTO> getEpisode(String url, int episodeNumber, Long cartoonId) throws IOException { String urlToEpisode = url + episodeNumber + "/?all"; Document document = Jsoup.connect(urlToEpisode).get(); Elements pictures = document.select("img"); int pageNumber = 0; ArrayList<PageInfoDTO> pages = new ArrayList<>(); for(Element pictureElement : pictures){ PageInfoDTO pageInfoDTO = new PageInfoDTO(); pageInfoDTO.setCartoonId(cartoonId); pageInfoDTO.setPageNumber(pageNumber); pageInfoDTO.setPageUrl(pictureElement.attr("src")); pages.add(pageInfoDTO); pageNumber++; } return pages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getImgData(int index);", "@Override\r\n\tpublic Image getImg(int code) {\n\t\treturn seasons[myTime.getDate()[1]][code].getImage();\r\n\t}", "byte[] getRecipeImage(CharSequence query);", "java.lang.String getImage();", "private byte[] getImageData(DatagramPacket receivedPacke...
[ "0.57466596", "0.5721237", "0.5389036", "0.5344645", "0.5301289", "0.5273765", "0.52152663", "0.51991254", "0.51787215", "0.51728094", "0.5172379", "0.51616466", "0.5157368", "0.51482576", "0.5124359", "0.5115054", "0.51035726", "0.5099435", "0.5025012", "0.5017611", "0.50032...
0.4707844
81
Constructor que coloca la imagen nwn
public Mesita() { super("mesa.png"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Coloca_imagen(){\n \n \n }", "public void setImag(double imag) {this.imag = imag;}", "public Imagen(){\n \n }", "public Complex() {\r\n real = 0;\r\n imaginary = 0;\r\n }", "public Pixel() {\r\n\t\t}", "public ImageProcessor(Pic a) {\n imag...
[ "0.7033958", "0.6328331", "0.624313", "0.61703026", "0.6138054", "0.6121221", "0.6087426", "0.60832155", "0.60692126", "0.60564053", "0.6045634", "0.5997707", "0.5989967", "0.5963707", "0.5958716", "0.5958716", "0.5929694", "0.5917367", "0.5885448", "0.5876143", "0.5847483", ...
0.5952177
16
Act do whatever the Silloncito wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.
public void act() { // Add your action code here. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void act() \r\n {\r\n key();\r\n win();\r\n fall();\r\n lunch();\r\n }", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "public void act() {\n\t}", "public void act() \n {\n if (canGiveTestimony()) {\n giveTestimony();\n }\n }"...
[ "0.71661246", "0.7103851", "0.70532775", "0.7048233", "0.70320755", "0.70003146", "0.6811513", "0.6767809", "0.6750942", "0.6735825", "0.6726687", "0.6717557", "0.668208", "0.66758645", "0.6663981", "0.6663981", "0.6663981", "0.664861", "0.66188323", "0.66103977", "0.6604538"...
0.67360806
10
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View root = inflater.inflate(R.layout.fragment_event_details_view, container, false); this.ctx = root.getContext(); this.tvDate = (TextView) root.findViewById(R.id.tv_date); this.tvTitle = (TextView) root.findViewById(R.id.tv_title); this.tvCreator = (TextView) root.findViewById(R.id.tv_creator); this.tvDescription = (TextView) root.findViewById(R.id.tv_description); this.tvStartTime = (TextView) root.findViewById(R.id.tv_start_time); this.tvEndTime = (TextView) root.findViewById(R.id.tv_end_time); this.btnAlarm = (Button) root.findViewById(R.id.btn_alarm); this.btnJoinEvent = (Button)root.findViewById(R.id.btn_join_event); this.lvParticipants = (ListView) root.findViewById(R.id.lv_participants); this.adapter = new ArrayAdapter<String>(this.getContext(),android.R.layout.simple_list_item_1,new ArrayList<String>()); lvParticipants.setAdapter(this.adapter); this.btnAlarm.setOnClickListener(this); this.btnJoinEvent.setOnClickListener(this); this.presenter.start(); return root; }
{ "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
/ Constructor Bot Informasi diperoleh dari file state.json dengan menggunakan library gson Lalu dicari informasi per lane nya dengan metode getLaneInfoFromPlayer
public Bot(GameState gameState) { this.gameState = gameState; gameDetails = gameState.getGameDetails(); gameWidth = gameDetails.mapWidth; gameHeight = gameDetails.mapHeight; myself = gameState.getPlayers().stream().filter(p -> p.playerType == PlayerType.A).findFirst().get(); opponent = gameState.getPlayers().stream().filter(p -> p.playerType == PlayerType.B).findFirst().get(); buildings = gameState.getGameMap().stream() .flatMap(c -> c.getBuildings().stream()) .collect(Collectors.toList()); missiles = gameState.getGameMap().stream() .flatMap(c -> c.getMissiles().stream()) .collect(Collectors.toList()); myTotal = new ArrayList<Integer>(){{add(0);add(0);add(0);add(0);add(0);add(0);}}; enTotal = new ArrayList<Integer>(){{add(0);add(0);add(0);add(0);add(0);add(0);}}; myLaneInfo = new ArrayList<List<List<Integer>>>(); enLaneInfo = new ArrayList<List<List<Integer>>>(); for (int i = 0; i < gameHeight; i++) { myLaneInfo.add(getLaneInfoFromPlayer(PlayerType.A,i)); enLaneInfo.add(getLaneInfoFromPlayer(PlayerType.B,i)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BSState() {\n this.playerTurn=1;\n this.p1TotalHits=0;\n this.p2TotalHits=0;\n this.shipsAlive=10;\n this.shipsSunk=0;\n this.isHit=false;\n this.phaseOfGame=\"SetUp\";\n this.shotLocations=null;\n this.shipLocations=null;\n this.shipType...
[ "0.572995", "0.55549324", "0.5533404", "0.5466989", "0.5432803", "0.53070337", "0.52736235", "0.527323", "0.51591843", "0.5136367", "0.51320094", "0.5123483", "0.51116115", "0.51085955", "0.5098776", "0.5085382", "0.5060575", "0.5058007", "0.5052028", "0.5030684", "0.50069976...
0.5738347
0
/ Proses Seleksi Program
public String run() { // Check if ironCurtain is available to use and GreedyIronCurtain is available if (myself.ironCurtainAvailable && myself.energy >= 120 && checkGreedyIronCurtain()) { return buildIC(); } else if (myself.isIronCurtainActive && canBuy(ATTACK)) { return buildTurret(); } else { // Check if GreedyWinRate is available if (checkGreedyWinRate() && checkGreedyEnergy() && canBuy(ENERGY)) { return buildEnergy(); } // Check if there is an attack.. else if (myTotal.get(3) > 0 || myTotal.get(0) > 0) { // Check if GreedyDefense is available if (canBuy(DEFENSE) && checkGreedyDefense()) return defendRow(); else if (canBuy(ATTACK)) return buildTurret(); return doNothingCommand(); } // Check if GreedyEnergy is available else if (checkGreedyEnergy() && canBuy(ENERGY)) { return buildEnergy(); } // Just Attack if there is no greedy or do nothing if there is no energy else if (canBuy(ATTACK)) { return buildTurret(); } else { return doNothingCommand(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void program() throws Exception {\r\n int valg;\r\n skrivInn(\"dvdarkiv2.txt\");//leser inn fra dvd arkivet\r\n while(true) {\r\n meny();//kaller paa meny for a skrive ut menyen etter hvert fullforte valg\n System.out.println(\"Skriv inn valget ditt\");\n valg = sjekkOmTall();//kalle...
[ "0.6808282", "0.6643654", "0.66000247", "0.65489084", "0.6520344", "0.6479283", "0.6326654", "0.6305407", "0.629449", "0.6289575", "0.6284095", "0.62717915", "0.6258305", "0.6216467", "0.61895484", "0.6181712", "0.61679566", "0.6151231", "0.61512166", "0.6147944", "0.61330974...
0.0
-1
/ GreedyEnergy: get 10 energy buildings first or build energy buildings as long as enemy builds energy and my energy buildings are less than 13
private boolean checkGreedyEnergy() { return myTotal.get(2) < 10 || (myTotal.get(2) < 13 && myTotal.get(2) <= enTotal.get(2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String buildEnergy() {\r\n List<Integer> emptyCellsPos0 = new ArrayList<Integer>();\r\n List<Integer> emptyCellsPos1 = new ArrayList<Integer>();\r\n for(int i = 0; i < gameHeight; i++) {\r\n if (myLaneInfo.get(i).get(4).isEmpty()) {\r\n if (myLaneInfo.get(i).g...
[ "0.6357397", "0.5953301", "0.5892612", "0.58895636", "0.57693315", "0.5643365", "0.5633733", "0.56139505", "0.55815506", "0.55766565", "0.55723643", "0.55588484", "0.55292475", "0.552384", "0.54867864", "0.5483327", "0.5473977", "0.54609734", "0.5454374", "0.54296947", "0.541...
0.67861176
0
/ GreedyIronCurtain: either health is low enemy's turrets are more than 8 enemy activates iron curtain my turrets are less than enemy's turrets
private boolean checkGreedyIronCurtain() { return (myself.health < 30 || enTotal.get(0) >= 8 || opponent.isIronCurtainActive || this.myTotal.get(0) < this.enTotal.get(0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkIfHungry(){\r\n\t\tif (myRC.getEnergonLevel() * 2.5 < myRC.getMaxEnergonLevel()) {\r\n\t\t\tmission = Mission.HUNGRY;\r\n\t\t}\r\n\t}", "private boolean checkGreedyWinRate() {\r\n return myTotal.get(0) > enTotal.get(0)+2 && (myself.health > 50 || myself.health > opponent.health);\r\n ...
[ "0.6623285", "0.65150607", "0.64005923", "0.63322985", "0.630835", "0.62286747", "0.61730194", "0.6147181", "0.6144276", "0.6054645", "0.6022265", "0.6011654", "0.59944594", "0.5983035", "0.59772784", "0.59494483", "0.5918041", "0.5904491", "0.5904095", "0.5900756", "0.589853...
0.7991115
0
/ GreedyWinRate: my turrets are more than enemy's turrets and either my health is more than half max my health is more than enemy's health
private boolean checkGreedyWinRate() { return myTotal.get(0) > enTotal.get(0)+2 && (myself.health > 50 || myself.health > opponent.health); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float getWinLossRatio();", "int getMinigameDefenseChancesLeft();", "@Override\n\tpublic void win() {\n\t\t\n\t\tfround[fighter1]++;\n\t fplatz[fighter1]=Math.round((float)fplatz[fighter1]/2); \n\t \n\t\tnextRound();\n\t}", "private boolean checkGreedyIronCurtain() {\r\n return (myself.health <...
[ "0.65561515", "0.65103245", "0.65016496", "0.64777523", "0.64252883", "0.6424496", "0.640434", "0.6340832", "0.63081115", "0.6287974", "0.62809515", "0.6257321", "0.6201282", "0.61982924", "0.6171887", "0.6158085", "0.6157703", "0.61529714", "0.61310697", "0.61189824", "0.611...
0.8013637
0
/ GreedyDefense: my turrets are more than enemy's turrets and my energy buildings are more than enemy's energy buildings
private boolean checkGreedyDefense() { return enTotal.get(2)+1 < myTotal.get(2) && enTotal.get(0)+1 < myTotal.get(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getMinigameDefenseChancesLeft();", "@Override\n\tpublic float desireability() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tMap<String,FoodEntry> map = agentSpace.getScentMemories().getFirst();\n\t\tif (map == null || map.size() == 0) { \n\t\t\t// we don't ...
[ "0.67129457", "0.64577776", "0.6412415", "0.6412415", "0.6412415", "0.6412415", "0.6412415", "0.6412415", "0.6334524", "0.62888324", "0.62888324", "0.62888324", "0.62888324", "0.62888324", "0.62888324", "0.6269899", "0.6228765", "0.6183374", "0.61290115", "0.6103842", "0.6092...
0.69125736
0
/ Build Energy only on the last (behind) 2 columns and on a lane/row with no missiles If there is no available place, just attack or wait
private String buildEnergy() { List<Integer> emptyCellsPos0 = new ArrayList<Integer>(); List<Integer> emptyCellsPos1 = new ArrayList<Integer>(); for(int i = 0; i < gameHeight; i++) { if (myLaneInfo.get(i).get(4).isEmpty()) { if (myLaneInfo.get(i).get(3).contains(0)) { emptyCellsPos0.add(i); } if (myLaneInfo.get(i).get(3).contains(1)) { emptyCellsPos1.add(i); } } } if (!emptyCellsPos0.isEmpty()) { return ENERGY.buildCommand(0,getRandomElementOfList(emptyCellsPos0)); } else if (!emptyCellsPos1.isEmpty()) { return ENERGY.buildCommand(1,getRandomElementOfList(emptyCellsPos1)); } else if (canBuy(ATTACK)) { return buildTurret(); } else { return doNothingCommand(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void SpiritBomb()\r\n {\r\n\r\n\t \r\n\t\tLocation loc = new Location(userRow+1, userCol);\r\n\t\tLocation loc1 = new Location(userRow+1, userCol1);\r\n\t\tLocation loc2 = new Location(userRow+1, userCol2);\r\n\t\tLocation loc3 = new Location(userRow+1, userCol3);\r\n\t\t\r\n\t\tLocation loc4 = new Locati...
[ "0.58357865", "0.5811127", "0.5702922", "0.5697034", "0.56463784", "0.5558136", "0.5552624", "0.5530122", "0.54909664", "0.548597", "0.5453517", "0.5452944", "0.54341537", "0.54073006", "0.5377038", "0.53568465", "0.5353041", "0.5343741", "0.53074414", "0.5303391", "0.5301228...
0.6781615
0
/ Build Iron Curtain
private String buildIC() { List<Integer> emptyCellsPos = new ArrayList<Integer>(); for(int i = 0; i < gameHeight; i++) { if (!myLaneInfo.get(i).get(3).isEmpty()) { emptyCellsPos.add(i); } } if (emptyCellsPos.isEmpty()) { return doNothingCommand(); } int y = getRandomElementOfList(emptyCellsPos); return IRONCURTAIN.buildCommand(getRandomElementOfList(myLaneInfo.get(y).get(3)),y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IronArmour()\n {\n name = \"iron armour\";\n hitpoints = 10;\n damageBlocked = 5;\n }", "public void build()\n {\n\t\tPoint3d loc;\n\t\n\t\tcomputeFPS(0);\n\t\n\t\t// Make random number generator\n\t\tif (seed == -1) {\n\t\t seed = System.currentTimeMillis() % 10000;\n\t\t System.out.p...
[ "0.6207773", "0.60074764", "0.59807396", "0.5946659", "0.5879985", "0.5840474", "0.58039653", "0.5799071", "0.57915074", "0.5779771", "0.576227", "0.5744934", "0.5713729", "0.56924385", "0.5682228", "0.5680098", "0.56783664", "0.5658477", "0.565615", "0.56507915", "0.56465167...
0.0
-1
/ Check if I can buy building with type x
private boolean canBuy(BuildingType x) { return gameDetails.buildingsStats.get(x).price <= myself.energy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isBuyable();", "public static boolean hasBuildingsToProduce(UnitType unitType) {\n\n // Need to have every prerequisite building\n for (Integer unitTypeID : unitType.getRequiredUnits().keySet()) {\n UnitType requiredUnitType = UnitType.getByID(unitTypeID);\n \n/...
[ "0.6831638", "0.6604014", "0.65768814", "0.6565732", "0.64890563", "0.64875805", "0.6456215", "0.6440018", "0.63317156", "0.6276554", "0.62732947", "0.6235771", "0.61760056", "0.61466277", "0.6137382", "0.6131244", "0.6096523", "0.60842127", "0.60649526", "0.60590434", "0.604...
0.8236937
0
/ Put wall on a lane with turret and no wall, on the 7th row
private String defendRow() { for (int i = 0; i < gameHeight; i++) { if (!enLaneInfo.get(i).get(0).isEmpty() && myLaneInfo.get(i).get(1).isEmpty()) { return DEFENSE.buildCommand(7,i); } } return buildTurret(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void handleRightWall(){\n for(int i = 0; i < 15; i ++){\n if(i % 2 == 1 ){\n maze[18][i] = VISIBLESPACE;\n }\n }\n }", "public void buildBoundaryWall() {\n for (int i = 0; i < worldWidth; i += 1) {\n for (int j = 0; j < worldHeight; j...
[ "0.6924773", "0.64679635", "0.63557595", "0.63171625", "0.6274808", "0.61596227", "0.6158117", "0.61557835", "0.61468434", "0.61156744", "0.6047763", "0.6034618", "0.6023715", "0.6010482", "0.5989283", "0.5926015", "0.59240305", "0.5900542", "0.58812445", "0.58488107", "0.583...
0.5461457
79
Start services which the library needs
private void startServices(){ Intent intent = new Intent(mContext, BatterySaverService.class); mContext.startService(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startBootstrapServices() {\n traceBeginAndSlog(\"StartWatchdog\");\n Watchdog watchdog = Watchdog.getInstance();\n watchdog.start();\n traceEnd();\n if (MAPLE_ENABLE) {\n this.mPrimaryZygotePreload = SystemServerInitThreadPool.get().submit($$Lambda$SystemS...
[ "0.7382372", "0.72641224", "0.6916299", "0.69105077", "0.6756857", "0.6687017", "0.65771085", "0.6533889", "0.65172917", "0.6502176", "0.6482514", "0.6479377", "0.6460147", "0.6458242", "0.6440663", "0.64315987", "0.64102143", "0.6355701", "0.6351254", "0.63084626", "0.629666...
0.6971139
2
Fixture initialization (common initialization for all tests).
@Before public void setUp() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BeforeAll\n static void init() {\n }", "@Before\n public void init() {\n }", "@Before\n\tpublic void init() {\n\t}", "@BeforeClass\n public static void init() {\n InitializrMetadataBuilder initializrMetadataBuilder = InitializrMetadataBuilder.fromInitializrProperties(\n ...
[ "0.75034183", "0.7310419", "0.7300194", "0.7290766", "0.72479784", "0.72159034", "0.71773154", "0.716951", "0.7117647", "0.70500344", "0.703414", "0.70302707", "0.6992388", "0.69710135", "0.69579", "0.6936861", "0.6903842", "0.6903006", "0.6893639", "0.68809694", "0.6874737",...
0.6860498
21
/ Registers any rendering code. Does nothing serverside
public void registerRenderer() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void render() {\n\t\t// do nothing... as we should\n\t}", "protected void render(){}", "public void render()\r\n\t{\n\t}", "protected void render() {\n\t\tString accion = Thread.currentThread().getStackTrace()[2].getMethodName();\n\t\trender(accion);\n\t}", "public void render() {\n }", "public...
[ "0.7371571", "0.7160382", "0.69761026", "0.68687594", "0.6868639", "0.68588465", "0.6737682", "0.6737682", "0.6737682", "0.6737682", "0.6737682", "0.6737682", "0.6686931", "0.6657918", "0.6655326", "0.6603905", "0.65638417", "0.65456414", "0.65101767", "0.649822", "0.6491594"...
0.64067566
24
/ Ties an internal name to a visible one. Does nothing serverside
public void addNames() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLocallyAccessibleName( String name );", "public void setInternalName(String name);", "public String getInternalName();", "public void setAccessibleName(String name) {\n // Not supported\n }", "public final void setInternalName(String internalName){\n periph...
[ "0.68501574", "0.68216914", "0.6636512", "0.63285923", "0.57560104", "0.5728346", "0.56437916", "0.5618041", "0.559233", "0.55873626", "0.55778015", "0.55762875", "0.55450636", "0.55269945", "0.5506764", "0.5486562", "0.54844177", "0.5464377", "0.54572326", "0.54567474", "0.5...
0.0
-1