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
$ANTLR end synpred1_expression $ANTLR start synpred3_expression
public final void synpred3_expression_fragment() throws RecognitionException { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:29:5: ( STRING ) // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean synpred2_ANTLRv3() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred2_ANTLRv3_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n ...
[ "0.6617614", "0.5525349", "0.5510534", "0.5425687", "0.5421465", "0.5406464", "0.52745426", "0.5267957", "0.5246731", "0.52052605", "0.5175054", "0.5103826", "0.5073342", "0.5062878", "0.50158805", "0.4972953", "0.49650663", "0.49420297", "0.4919945", "0.49180114", "0.4906295...
0.6619255
0
$ANTLR end synpred3_expression $ANTLR start synpred6_expression
public final void synpred6_expression_fragment() throws RecognitionException { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:40:14: ( nameExpression ) // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean synpred2_ANTLRv3() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred2_ANTLRv3_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re);\r\n ...
[ "0.6020024", "0.59078", "0.5906702", "0.58621806", "0.5779299", "0.5741411", "0.56099", "0.5551951", "0.5539675", "0.5357352", "0.5237152", "0.5222017", "0.52063316", "0.5172868", "0.51716346", "0.51408374", "0.51372164", "0.50923187", "0.5089827", "0.50792694", "0.50781035",...
0.5823804
4
$ANTLR end synpred6_expression $ANTLR start synpred7_expression
public final void synpred7_expression_fragment() throws RecognitionException { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:40:30: ( STRING ) // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\sr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean synpred7_QL() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred7_QL_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n boolean succ...
[ "0.6417185", "0.6335073", "0.6217068", "0.5775017", "0.57086116", "0.57056844", "0.5611603", "0.560639", "0.5594731", "0.5402298", "0.53479266", "0.5321424", "0.52654916", "0.52651614", "0.5257072", "0.52335346", "0.5149068", "0.50844026", "0.5052265", "0.5033005", "0.5018865...
0.6574329
0
$ANTLR end synpred7_expression $ANTLR start synpred8_expression
public final void synpred8_expression_fragment() throws RecognitionException { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:40:6: ( ( STRING )* ( nameExpression )+ ( STRING )* ) // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void synpred7_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:30: ( STRING )\n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f...
[ "0.61758643", "0.5981183", "0.5945085", "0.5760926", "0.55078894", "0.548581", "0.5430241", "0.54055387", "0.5394578", "0.534647", "0.5338158", "0.5313983", "0.522658", "0.5213188", "0.51800066", "0.51627415", "0.5116778", "0.51152635", "0.51127124", "0.5078295", "0.5042001",...
0.70258236
0
$ANTLR end synpred8_expression $ANTLR start synpred10_expression
public final void synpred10_expression_fragment() throws RecognitionException { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:45:35: ( EPRESSIONCHAR ) // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void synpred8_expression_fragment() throws RecognitionException { \n // C:\\\\work\\\\art\\\\latest-code\\\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\\\src\\\\art\\\\grammar\\\\expression.g:40:6: ( ( STRING )* ( nameExpression )+ ( STRING )* )\n // C:\\\\work\\\\art\\\\late...
[ "0.621927", "0.6060833", "0.5476968", "0.54108775", "0.5382181", "0.53339374", "0.53329825", "0.53274703", "0.5289433", "0.5214267", "0.5213027", "0.5181773", "0.5173307", "0.5152705", "0.5137148", "0.51150537", "0.51088697", "0.50986516", "0.50960034", "0.508756", "0.5081011...
0.55655354
2
$ANTLR end synpred10_expression $ANTLR start synpred11_expression
public final void synpred11_expression_fragment() throws RecognitionException { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:50:20: ( nameExprTerm ) // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb44...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean synpred11_expression() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred11_expression_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n ...
[ "0.6603165", "0.6019425", "0.531262", "0.529349", "0.52853954", "0.52351284", "0.5226738", "0.5201473", "0.5172838", "0.5171697", "0.5150682", "0.51014864", "0.5085581", "0.5081065", "0.5066182", "0.50661063", "0.5063313", "0.5052338", "0.50494564", "0.49981228", "0.49861598"...
0.5654269
2
$ANTLR end synpred11_expression $ANTLR start synpred13_expression
public final void synpred13_expression_fragment() throws RecognitionException { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:55:5: ( REFERENCECHAR simpleExpr ) // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd39...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean synpred11_expression() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred11_expression_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n ...
[ "0.6263018", "0.5724687", "0.5436869", "0.53742343", "0.53650206", "0.5320306", "0.5303953", "0.5236332", "0.52119964", "0.5182972", "0.5135694", "0.5078574", "0.50735015", "0.5035651", "0.50062126", "0.49973258", "0.49683705", "0.49635056", "0.492764", "0.49074522", "0.48963...
0.5627854
2
$ANTLR end synpred13_expression $ANTLR start synpred27_expression
public final void synpred27_expression_fragment() throws RecognitionException { // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f7cbb445aa\\src\\art\\grammar\\expression.g:80:11: ( ( '+' | '-' ) mult ) // C:\\work\\art\\latest-code\\vclang-code-dd0a89f0d579f02ec8c3d8cd398ea8f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean synpred11_expression() {\n state.backtracking++;\n int start = input.mark();\n try {\n synpred11_expression_fragment(); // can never throw exception\n } catch (RecognitionException re) {\n System.err.println(\"impossible: \"+re);\n }\n ...
[ "0.6209005", "0.6095873", "0.58886313", "0.5640156", "0.5610652", "0.54973984", "0.53527623", "0.53344154", "0.53017175", "0.52653974", "0.5206533", "0.51728004", "0.5164655", "0.5118792", "0.5095971", "0.5065455", "0.5056458", "0.50536454", "0.5040415", "0.50338167", "0.5033...
0.559174
5
$ANTLR end synpred27_expression Delegated rules
public final boolean synpred11_expression() { state.backtracking++; int start = input.mark(); try { synpred11_expression_fragment(); // can never throw exception } catch (RecognitionException re) { System.err.println("impossible: "+re); } boolean s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(...
[ "0.54672456", "0.53212905", "0.53168184", "0.53136677", "0.5304619", "0.5284456", "0.5276039", "0.5263587", "0.52333", "0.5232105", "0.5202607", "0.5199597", "0.5162636", "0.51422787", "0.5141337", "0.5118676", "0.51108354", "0.51045907", "0.50989", "0.50713074", "0.50682104"...
0.5135861
15
The persistence interface for the interview schedule service. Caching information and settings can be found in portal.properties
public interface InterviewSchedulePersistence extends BasePersistence<InterviewSchedule> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link InterviewScheduleUtil} to access the interview schedule persistence. Modify <code>service.xml</code> and rerun ServiceBuild...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract FHIRPersistence getPersistenceImpl() throws Exception;", "public IPersistence<T> getPersistence();", "public FakeScheduledInterviewDao() {\n data = new HashMap<Long, ScheduledInterview>();\n }", "public interface PresentationManager extends CleanupableService {\n\n public static final S...
[ "0.62203753", "0.6058898", "0.57943094", "0.57886004", "0.57736945", "0.5713602", "0.56654286", "0.5652257", "0.56057245", "0.5533603", "0.5532094", "0.5527069", "0.55216193", "0.5470612", "0.5455447", "0.545227", "0.5439788", "0.5433643", "0.54168177", "0.54103273", "0.53880...
0.6745345
0
Returns the interview schedule where vacancyCandidateId = &63; and interviewId = &63; or returns null if it could not be found. Uses the finder cache.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview( long vacancyCandidateId, long interviewId) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId, boolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t...
[ "0.76287687", "0.74884117", "0.71416074", "0.71087176", "0.70367867", "0.6875366", "0.6666186", "0.64239234", "0.6272647", "0.6269513", "0.61935", "0.60946083", "0.6016572", "0.59291965", "0.5884418", "0.58653677", "0.5856119", "0.5822136", "0.57815117", "0.5671435", "0.56617...
0.75181574
1
Returns the interview schedule where vacancyCandidateId = &63; and interviewId = &63; or returns null if it could not be found, optionally using the finder cache.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview( long vacancyCandidateId, long interviewId, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, long interviewId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndInterview(\n\t\tlong vacancyCandidateId, ...
[ "0.75136185", "0.74583435", "0.7101648", "0.707439", "0.7067182", "0.681978", "0.6693943", "0.6378041", "0.62986964", "0.62050325", "0.6118211", "0.61102223", "0.60681", "0.5893935", "0.58339345", "0.5811169", "0.5798133", "0.5692592", "0.56874865", "0.56794256", "0.56480587"...
0.7631824
0
Removes the interview schedule where vacancyCandidateId = &63; and interviewId = &63; from the database.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndInterview( long vacancyCandidateId, long interviewId) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "@Override\n...
[ "0.6985253", "0.6744329", "0.65900373", "0.63538283", "0.62152785", "0.5842636", "0.5835121", "0.5689367", "0.5629053", "0.56060934", "0.55455065", "0.55271745", "0.5504934", "0.54977554", "0.5455566", "0.5453117", "0.5430234", "0.5348627", "0.53179985", "0.53108436", "0.5277...
0.7414354
0
Returns the number of interview schedules where vacancyCandidateId = &63; and interviewId = &63;.
public int countByVacancyCandidateAndInterview(long vacancyCandidateId, long interviewId) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int countByVacancyCandidateAndInterview(long vacancyCandidateId,\n\t\tlong interviewId) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDINTERVIEW;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, interviewId };\n\n\t\tLong count = (Lo...
[ "0.7089515", "0.65976584", "0.64938635", "0.6465359", "0.6016586", "0.6009202", "0.6000021", "0.59334534", "0.5726752", "0.5717771", "0.56498486", "0.56408995", "0.559758", "0.5585806", "0.5567935", "0.548315", "0.54477555", "0.5403222", "0.53966635", "0.53864634", "0.5309527...
0.68440574
1
Returns the interview schedule where vacancyCandidateId = &63; and status = &63; or returns null if it could not be found. Uses the finder cache.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus( long vacancyCandidateId, java.lang.String status) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status,\n\t\tboolean retrieveFromCache)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatu...
[ "0.79124177", "0.75511366", "0.7335502", "0.7087598", "0.6975639", "0.69509935", "0.6644035", "0.65996885", "0.65844715", "0.6442937", "0.6404668", "0.637483", "0.6350289", "0.59202796", "0.56661975", "0.5535442", "0.5474309", "0.5463801", "0.54255146", "0.54079384", "0.52657...
0.78394246
1
Returns the interview schedule where vacancyCandidateId = &63; and status = &63; or returns null if it could not be found, optionally using the finder cache.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus( long vacancyCandidateId, java.lang.String status, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, java.lang.String status)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId,...
[ "0.7800871", "0.747946", "0.7374303", "0.7046264", "0.6933744", "0.6932836", "0.6654029", "0.6651345", "0.66355574", "0.6440149", "0.6379841", "0.63295263", "0.6316259", "0.5883465", "0.564495", "0.5589643", "0.5477427", "0.5449016", "0.53749806", "0.5336065", "0.51808304", ...
0.7917782
0
Removes the interview schedule where vacancyCandidateId = &63; and status = &63; from the database.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule removeByVacancyCandidateAndStatus( long vacancyCandidateId, java.lang.String status) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic InterviewSchedule removeByVacancyCandidateAndStatus(\n\t\tlong vacancyCandidateId, String status)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByVacancyCandidateAndStatus(vacancyCandidateId,\n\t\t\t\tstatus);\n\n\t\treturn remove...
[ "0.6898081", "0.6757044", "0.6729641", "0.66098934", "0.6056915", "0.58559424", "0.5830144", "0.57982314", "0.57495964", "0.56624013", "0.5624209", "0.5439664", "0.54099643", "0.5311038", "0.53088164", "0.52841485", "0.5274843", "0.5258046", "0.52126944", "0.51731217", "0.516...
0.7719639
0
Returns the number of interview schedules where vacancyCandidateId = &63; and status = &63;.
public int countByVacancyCandidateAndStatus(long vacancyCandidateId, java.lang.String status) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int countByVacancyCandidateAndStatus(long vacancyCandidateId,\n\t\tString status) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATEANDSTATUS;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId, status };\n\n\t\tLong count = (Long)FinderCache...
[ "0.7486811", "0.71365964", "0.6473412", "0.6408904", "0.6394331", "0.6323194", "0.62858635", "0.6268497", "0.61850727", "0.614585", "0.5959447", "0.5833506", "0.5710845", "0.56363285", "0.5563422", "0.55577046", "0.53894764", "0.5357385", "0.5340231", "0.53081703", "0.5274259...
0.6876827
2
Returns all the interview schedules where vacancyCandidateId = &63;.
public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findByVacancyCandidate( long vacancyCandidateId) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<InterviewSchedule> findByVacancyCandidate(\n\t\tlong vacancyCandidateId) throws SystemException {\n\t\treturn findByVacancyCandidate(vacancyCandidateId, QueryUtil.ALL_POS,\n\t\t\tQueryUtil.ALL_POS, null);\n\t}", "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandid...
[ "0.7619274", "0.70790726", "0.69596356", "0.67929274", "0.6738474", "0.66538316", "0.6642537", "0.6575401", "0.6346709", "0.6312229", "0.62875074", "0.61796165", "0.616327", "0.6095221", "0.6001239", "0.5953936", "0.56715924", "0.56599385", "0.5649306", "0.56318384", "0.55974...
0.8148881
0
Returns the first interview schedule in the ordered set where vacancyCandidateId = &63;.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First( long vacancyCandidateId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCand...
[ "0.7958665", "0.7160384", "0.7121103", "0.68044126", "0.66717386", "0.66236496", "0.6590156", "0.65796596", "0.65429425", "0.62986946", "0.6148976", "0.6118704", "0.6063715", "0.60443133", "0.5845807", "0.57064134", "0.5652541", "0.55974334", "0.55509436", "0.54751605", "0.54...
0.79062235
1
Returns the first interview schedule in the ordered set where vacancyCandidateId = &63;.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_First( long vacancyCandidateId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleExceptio...
[ "0.7906251", "0.7160932", "0.7119946", "0.6804046", "0.6671693", "0.6623563", "0.65913665", "0.6579305", "0.6543031", "0.62990135", "0.6148505", "0.61190516", "0.606327", "0.6043878", "0.5845548", "0.5704847", "0.5650396", "0.5596798", "0.5554668", "0.54741484", "0.54419225",...
0.7958098
0
Returns the last interview schedule in the ordered set where vacancyCandidateId = &63;.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last( long vacancyCandidateId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic InterviewSchedule fetchByVacancyCandi...
[ "0.7678633", "0.68493265", "0.66891414", "0.6389148", "0.63296235", "0.6281791", "0.61873573", "0.5964183", "0.59376067", "0.59027785", "0.58971363", "0.5883025", "0.58249336", "0.55642635", "0.5473584", "0.54561704", "0.54034036", "0.5390086", "0.538178", "0.53761035", "0.52...
0.7564985
1
Returns the last interview schedule in the ordered set where vacancyCandidateId = &63;.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByVacancyCandidate_Last( long vacancyCandidateId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_Last(\n\t\tlong vacancyCandidateId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tvn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException...
[ "0.7564985", "0.68493265", "0.66891414", "0.6389148", "0.63296235", "0.6281791", "0.61873573", "0.5964183", "0.59376067", "0.59027785", "0.58971363", "0.5883025", "0.58249336", "0.55642635", "0.5473584", "0.54561704", "0.54034036", "0.5390086", "0.538178", "0.53761035", "0.52...
0.7678633
0
Returns the interview schedules before and after the current interview schedule in the ordered set where vacancyCandidateId = &63;.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule[] findByVacancyCandidate_PrevAndNext( long interviewScheduleId, long vacancyCandidateId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterview...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic InterviewSchedule[] findByVacancyCandidate_PrevAndNext(\n\t\tlong interviewScheduleId, long vacancyCandidateId,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tInterviewSchedule interviewSchedule = findByPrimaryKey(interviewSchedule...
[ "0.6753486", "0.64163715", "0.5900779", "0.5833884", "0.56081235", "0.5601365", "0.55274785", "0.55258876", "0.5489285", "0.5369314", "0.52481484", "0.50089514", "0.5006967", "0.49924195", "0.49875802", "0.49546346", "0.49463806", "0.4922751", "0.4873255", "0.4834584", "0.482...
0.70553017
0
Removes all the interview schedules where vacancyCandidateId = &63; from the database.
public void removeByVacancyCandidate(long vacancyCandidateId) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void removeByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findByVacancyCandidate(\n\t\t\t\tvacancyCandidateId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "public vn.c...
[ "0.75364566", "0.671048", "0.66267294", "0.66085607", "0.6378943", "0.6181978", "0.61166173", "0.5892633", "0.58214575", "0.57820845", "0.5701761", "0.5557467", "0.5518892", "0.5515229", "0.5490753", "0.54705554", "0.542867", "0.542648", "0.5366215", "0.5328771", "0.52862644"...
0.5798152
9
Returns the number of interview schedules where vacancyCandidateId = &63;.
public int countByVacancyCandidate(long vacancyCandidateId) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int countByVacancyCandidate(long vacancyCandidateId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_VACANCYCANDIDATE;\n\n\t\tObject[] finderArgs = new Object[] { vacancyCandidateId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\...
[ "0.7274109", "0.70849586", "0.69701695", "0.67084026", "0.66709554", "0.62565446", "0.62470955", "0.6192026", "0.5978371", "0.5971808", "0.5861223", "0.584845", "0.5846382", "0.56449676", "0.56142694", "0.56086785", "0.5602983", "0.5582905", "0.55557746", "0.5547078", "0.5417...
0.6930361
3
Caches the interview schedule in the entity cache if it is enabled.
public void cacheResult( vn.com.ecopharma.hrm.rc.model.InterviewSchedule interviewSchedule);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void cacheResult(InterviewSchedule interviewSchedule) {\n\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tInterviewScheduleImpl.class, interviewSchedule.getPrimaryKey(),\n\t\t\tinterviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCY...
[ "0.7321507", "0.6737514", "0.6595778", "0.6208363", "0.59852105", "0.5772889", "0.5673469", "0.5520854", "0.5513611", "0.547056", "0.5415176", "0.5379786", "0.53730637", "0.5259238", "0.52528733", "0.5213475", "0.52080226", "0.5200061", "0.5168159", "0.51367235", "0.51355284"...
0.72512084
1
Caches the interview schedules in the entity cache if it is enabled.
public void cacheResult( java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> interviewSchedules);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void cacheResult(List<InterviewSchedule> interviewSchedules) {\n\t\tfor (InterviewSchedule interviewSchedule : interviewSchedules) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tInterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tInterviewScheduleImpl.class,\n\t\t\t\t\t\tintervi...
[ "0.7219619", "0.6954566", "0.69171584", "0.5943958", "0.5683461", "0.55309564", "0.5411395", "0.53449374", "0.5333082", "0.5307728", "0.52796865", "0.52730435", "0.52614313", "0.52545935", "0.5180092", "0.5172508", "0.5167776", "0.51350576", "0.51082796", "0.510602", "0.50971...
0.7096636
1
Creates a new interview schedule with the primary key. Does not add the interview schedule to the database.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule create( long interviewScheduleId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic InterviewSchedule create(long interviewScheduleId) {\n\t\tInterviewSchedule interviewSchedule = new InterviewScheduleImpl();\n\n\t\tinterviewSchedule.setNew(true);\n\t\tinterviewSchedule.setPrimaryKey(interviewScheduleId);\n\n\t\treturn interviewSchedule;\n\t}", "@Override\n public void crea...
[ "0.7785113", "0.7084555", "0.62650067", "0.5836738", "0.5703991", "0.56883353", "0.56849694", "0.5555134", "0.55147123", "0.5493157", "0.53941697", "0.5354057", "0.53057116", "0.5288248", "0.526722", "0.52387327", "0.52064246", "0.5196825", "0.51901275", "0.5170479", "0.51679...
0.8315132
0
Removes the interview schedule with the primary key from the database. Also notifies the appropriate model listeners.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule remove( long interviewScheduleId) throws com.liferay.portal.kernel.exception.SystemException, vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic InterviewSchedule remove(Serializable primaryKey)\n\t\tthrows NoSuchInterviewScheduleException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)session.get(InterviewScheduleImpl.class,\...
[ "0.73142505", "0.65290725", "0.63496315", "0.6125473", "0.60543084", "0.6052143", "0.5975684", "0.57386196", "0.5734491", "0.57236445", "0.5672639", "0.56690633", "0.5608607", "0.5538778", "0.55213267", "0.5520809", "0.5512068", "0.5504373", "0.54891557", "0.5483413", "0.5448...
0.66608953
1
Returns the interview schedule with the primary key or returns null if it could not be found.
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule fetchByPrimaryKey( long interviewScheduleId) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic InterviewSchedule fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\tInterviewSchedule interviewSchedule = (InterviewSchedule)EntityCacheUtil.getResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\tInterviewScheduleImpl.class, primaryKey);\n\n\t\tif (inter...
[ "0.6893947", "0.6748445", "0.6735467", "0.6285745", "0.6222615", "0.61782545", "0.617216", "0.60321957", "0.5991951", "0.5969679", "0.572114", "0.5703223", "0.556892", "0.547692", "0.54251385", "0.53364944", "0.5249778", "0.5228218", "0.5224761", "0.5201799", "0.51920825", ...
0.6637116
3
Returns all the interview schedules.
public java.util.List<vn.com.ecopharma.hrm.rc.model.InterviewSchedule> findAll() throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<InterviewSchedule> findAll() throws SystemException {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<ISchedule> getSchedules() throws IOException {\n\t\tfinal String sql = \"SELECT * from record\";\n\t\tList<? exte...
[ "0.7558978", "0.7035799", "0.70232934", "0.6950603", "0.6896758", "0.6354308", "0.6333895", "0.63258845", "0.62889594", "0.6281464", "0.6277163", "0.62764627", "0.62501425", "0.6226148", "0.6203887", "0.6192226", "0.6109774", "0.6092263", "0.60173595", "0.59902585", "0.598202...
0.82493734
0
Removes all the interview schedules from the database.
public void removeAll() throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findAll()) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "private void removeFromSavedScheduleList() {\n if (!yesNoQuestion(\"This will print every schedule, are you sure? \")) {\n ...
[ "0.7716571", "0.6243162", "0.6125788", "0.6028666", "0.5890876", "0.58008397", "0.57791233", "0.5764059", "0.5735248", "0.571268", "0.5692714", "0.56923676", "0.56738627", "0.56338143", "0.5630871", "0.5597316", "0.5519209", "0.5513444", "0.54949665", "0.54911804", "0.5484645...
0.0
-1
Returns the number of interview schedules.
public int countAll() throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumTimes();", "int getResumesCount();", "int getTransitFlightsCount();", "int countByExample(ScheduleCriteria example);", "public int getNumberOfPastes() \n {\n return DEFAULT_PASTES; \n }", "int getSeasonShareCount();", "int getQuestCount();", "public int getActive...
[ "0.6309429", "0.62978846", "0.61678153", "0.6137679", "0.6125422", "0.61199415", "0.6118349", "0.60755324", "0.6032555", "0.5987565", "0.59783465", "0.59625566", "0.5962381", "0.59562373", "0.59562373", "0.59562373", "0.5952348", "0.5940124", "0.59282684", "0.5925677", "0.591...
0.0
-1
/ converts a 2D Squarelotron to a 1D array
public int[] numbers();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] boardConvertto1d() {\n for (int i = 0; i < 9; i++) {\n int row = i / 3;\n int col = i % 3;\n board[i] = board2d[row][col];\n }\n return board;\n }", "private int[][] convertTo2D(char[] array1D)\n {\n int n = (int) Math.sqrt(array1D.l...
[ "0.6776569", "0.6750534", "0.6732838", "0.6551331", "0.6469128", "0.6395073", "0.63871247", "0.63842", "0.6383336", "0.6325033", "0.63080585", "0.6198138", "0.6178814", "0.61747086", "0.61617506", "0.61514354", "0.6129367", "0.61290944", "0.6127316", "0.6118867", "0.61063576"...
0.0
-1
/ flips the selected ring from top to bottom
public Squarelotron upsideDownFlip(int ring);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observable...
[ "0.6730749", "0.6730749", "0.6730749", "0.6662876", "0.6290525", "0.60939056", "0.60905457", "0.6073964", "0.60513765", "0.59262025", "0.59029233", "0.58553404", "0.58192354", "0.5769243", "0.5731391", "0.5692912", "0.5642154", "0.5624642", "0.5615487", "0.560389", "0.558774"...
0.7022648
0
/ flips the selected ring from left to right
public Squarelotron leftRightFlip(int ring);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Squarelotron upsideDownFlip(int ring);", "public Squarelotron inverseDiagonalFlip(int ring);", "public Squarelotron mainDiagonalFlip(int ring);", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n ...
[ "0.7294961", "0.6809843", "0.6787972", "0.67560804", "0.67560804", "0.67560804", "0.6602968", "0.6596508", "0.65057564", "0.64310855", "0.64179593", "0.6385201", "0.6354568", "0.63466895", "0.63352484", "0.6305882", "0.6297991", "0.62839806", "0.6259384", "0.61824083", "0.617...
0.7623902
0
/ flips the selected ring along the inverse diagonal
public Squarelotron inverseDiagonalFlip(int ring);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Squarelotron mainDiagonalFlip(int ring);", "@Override\n\tpublic Squarelotron inverseDiagonalFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarel...
[ "0.7882044", "0.7502157", "0.73108506", "0.70757735", "0.67685914", "0.65059566", "0.63516015", "0.63290066", "0.62892413", "0.6215985", "0.61648464", "0.6164683", "0.6151994", "0.6138917", "0.6112178", "0.6102054", "0.60958683", "0.6084163", "0.606293", "0.6046371", "0.60040...
0.84900296
0
/ flips the selected ring along the main diagonal
public Squarelotron mainDiagonalFlip(int ring);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Squarelotron inverseDiagonalFlip(int ring);", "public Squarelotron upsideDownFlip(int ring);", "@Override\n\tpublic Squarelotron mainDiagonalFlip(int ring) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\...
[ "0.8046064", "0.735856", "0.7201689", "0.7129303", "0.7103483", "0.64826", "0.626356", "0.6237691", "0.6008805", "0.5980713", "0.59793675", "0.59605896", "0.5960539", "0.5935375", "0.58678293", "0.5860861", "0.5853912", "0.58469456", "0.5832614", "0.5771318", "0.5751832", "...
0.80603546
0
/ flips the sidemost rows or columns with the opposite sides (2)
public Squarelotron sideFlip(String side);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void flipHorizontalAxis(int[][] matrix) {\n for(int i = matrix.length - 1; i >= matrix.length/2; i-- ){\n for(int j = 0; j < matrix[i].length; j++){\n int temp = matrix[i][j];\n matrix[i][j] = matrix[(matrix.length - 1) - i][j];\n matrix[(matrix.length - 1) ...
[ "0.7292256", "0.707873", "0.67825574", "0.6694961", "0.6607876", "0.64992714", "0.6422631", "0.6359594", "0.63073415", "0.6255062", "0.6246515", "0.6215183", "0.6154194", "0.6136281", "0.6117263", "0.6077343", "0.6053387", "0.6009957", "0.5975448", "0.5957598", "0.59545034", ...
0.6230024
11
/ rotates the /Squarelotron by of turns clockwise (+) or counterclockwise () with each turn being 90 degrees
public void rotateRight(int numberOfTurns);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void rotate() {\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\ttmp_grid[i][j] = squares[i][j];\n\t\t\t// copy back rotated 90 degrees\n\t\t\tfor(int i=0; i<4; i++)\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tsquares[j][i] = tmp_grid[i][3-j];\n \n ...
[ "0.69503856", "0.6888303", "0.6771187", "0.66489625", "0.6564968", "0.64617884", "0.64464015", "0.63917446", "0.63885593", "0.63824314", "0.63767", "0.63480157", "0.6305023", "0.6266452", "0.6249772", "0.61956835", "0.6185624", "0.6185624", "0.61803246", "0.61788315", "0.6149...
0.618628
16
/ creates new equal method to test two squarelotrons
@Override public boolean equals(Object object);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSampleEquals() {\n\n\t\tassertTrue(square.equals(squareRotate));\n\t\t\n\t\tassertTrue(pyr1.equals(pyr5));\n\t\t\n\t\tassertTrue(s.equals(sInitial));\n\t\tassertFalse(stick.equals(stickRotated));\n\t\tassertFalse(s.equals(sRotated));\n\n\n\t}", "@org.testng.annotations.Test\n public v...
[ "0.6676447", "0.6579173", "0.64118993", "0.6324121", "0.628298", "0.6229468", "0.62131387", "0.6181306", "0.61654913", "0.61413306", "0.6074751", "0.6053554", "0.5949521", "0.5921364", "0.5903207", "0.5895445", "0.5884165", "0.58755237", "0.58608496", "0.5846653", "0.5840801"...
0.0
-1
/ outputs a Squarelotron as a text
@Override public String toString();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String showText() {\n\t\tString text = \"\";\n\t\ttry {\n\t\t\tString line1 = \"\";\n\t\t\tString line2 = \"\";\n\t\t\tString line3 = \"\";\n\t\t\tfor (LakeTile lake_tile : removed_laketile) {\n\t\t\t\tint i = removed_laketile.indexOf(lake_tile);\n\t\t\t\tPosition pos = removed_position.get(i);\n\t\t\t\tQu...
[ "0.6483064", "0.6284444", "0.62828064", "0.61544484", "0.6104563", "0.60740477", "0.6055721", "0.59685904", "0.5964552", "0.5940939", "0.5927173", "0.5893749", "0.5892616", "0.5874989", "0.58713686", "0.5866197", "0.58612806", "0.585797", "0.58572304", "0.584709", "0.5838414"...
0.0
-1
reads the data from the scenario and interpolates the grid of known values to a higher resolution first with bilinear interpolation second with bicubic spline interpolation
public static void main(String[] args) { java.net.URL input100 = ClassLoader.getSystemResource(filename_data100+".txt"); java.net.URL input200 = ClassLoader.getSystemResource(filename_data200+".txt"); log.info("Reading data..."); sg100 = SpatialGrid.readFromFile(input100.getFile()); sg200 = SpatialGrid.r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testInterpolationAtEdges() {\n // Following constant is pixel size (in degrees).\n // This constant must be identical to the one defined in 'createRandomCoverage()'\n final double PIXEL_SIZE = 0.25;\n createRandomCoverage();\n coverage = coverage.view(ViewT...
[ "0.55774593", "0.5533442", "0.5532902", "0.5375295", "0.5334604", "0.5305703", "0.52391857", "0.5102393", "0.5008873", "0.49966162", "0.49635172", "0.49396372", "0.4934424", "0.4932506", "0.48809907", "0.48733193", "0.48686835", "0.4850145", "0.48350284", "0.48214394", "0.479...
0.51707715
7
Compares the differences between the interpolated SpatialGrid with resolution 200 and the original SpatialGrid with resolution 100. Sums the absolute difference and returns it.
private static double[] differenceComputation(SpatialGrid sg100, SpatialGrid sg200_interpolated){ double differenceToOriginalSG = 0; int numberOfIntpValues = 0; //sum difference at all coordinates where interpolated values are known for (double y = sg200_interpolated.getYmin(); y <= sg200_interpolated.getYma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testHorizontalDisplacementTo() {\n System.out.println(\"Testing HorizontalDisplacementTo() for a range of different GPS coordinates\");\n double distancesExpected[] = {\n 555.998,\n 555.998,\n -555.998,\n -555.998,\n\t\t\t72.266,\n\t\...
[ "0.47578216", "0.4735524", "0.46687567", "0.4628498", "0.46248472", "0.45898095", "0.45870945", "0.45640168", "0.45581526", "0.45577383", "0.45552075", "0.4554753", "0.4534706", "0.4528444", "0.45061177", "0.450396", "0.45017993", "0.4483049", "0.44767162", "0.44462794", "0.4...
0.67178255
0
Check if a remote port is taken
public static boolean remotePortTaken(String node, int port, int timeout) { Socket s = null; try { s = new Socket(); s.setReuseAddress(true); SocketAddress sa = new InetSocketAddress(node, port); s.connect(sa, timeout * 1000); } catch (IOException ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasPort();", "boolean hasPort();", "boolean hasRemoteHost();", "public boolean hasPort() {\n return !ports.isEmpty();\n }", "@SuppressWarnings(\"unused\")\n\tpublic static boolean isPortUsing(String host, int port) throws UnknownHostException {\n\t\tboolean flag = false;\n\t\tInetAddress ...
[ "0.77982527", "0.77982527", "0.7274775", "0.6893003", "0.6752766", "0.66624504", "0.6646055", "0.6598071", "0.6578943", "0.65388596", "0.65269506", "0.6504981", "0.64290017", "0.64005095", "0.6394645", "0.6267631", "0.6262639", "0.6253769", "0.62408465", "0.61947805", "0.6190...
0.69591475
3
TODO Autogenerated method stub
public static void main(String[] args) { Scanner entrada = new Scanner(System.in); int quantidade_de_mulheres_loiras_olhos_azuis_idade_entre_18_25_anos_solteiras_salario_maior_10000 = 0; double maiorSalario = 0; String nomeMaiorSalario = ""; double menorSalario = 0; String nomeMenorSalario = ""; for (i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Created by Vlad on 06.03.2017.
public interface Citizen { public abstract void sayHello(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic ...
[ "0.57230276", "0.56955546", "0.5579076", "0.5519526", "0.5460072", "0.5452398", "0.54478276", "0.54478276", "0.5431735", "0.53956383", "0.5395328", "0.5353849", "0.5351188", "0.5337698", "0.5329835", "0.5325236", "0.5316389", "0.5314518", "0.5305703", "0.52959585", "0.5293886...
0.0
-1
Returns the additional element count if buffer resize is required.
public int getResizeElementCount() { return vboSet.getResizeElementCount(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int calculateResizeThreshold() {\n\t\treturn (buffer.length >> 2) * 3;\n\t}", "int getLostedSize();", "public int size() {\n\t\t//Because we're the only consumer, we know nothing will be removed while\n\t\t//we're computing the size, so we know there are at least (rear - front)\n\t\t//elements already ...
[ "0.68517613", "0.6818745", "0.652526", "0.6460864", "0.6337177", "0.6337177", "0.6325083", "0.63064235", "0.630187", "0.6301287", "0.6286395", "0.62863773", "0.6253844", "0.6228447", "0.6209349", "0.6183025", "0.6165039", "0.61641186", "0.6159183", "0.6153982", "0.6133198", ...
0.74015784
0
Sets the additional element count if buffer resize is required, defaults to initialElementCount of factory method.
public void setResizeElementCount(int v) { vboSet.setResizeElementCount(v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getResizeElementCount() { return vboSet.getResizeElementCount(); }", "@Override\n\tpublic void setElementSize(int elementSize) {\n\t\t\n\t}", "protected int getElementSize () {\n return 1;\n }", "public void setCount(int count)\r\n\t{\r\n\t}", "public void initialize(int size);", "@Overrid...
[ "0.6289739", "0.6078612", "0.58823997", "0.5697382", "0.56843144", "0.5674393", "0.56304985", "0.5611984", "0.55850035", "0.5541753", "0.55328995", "0.55100185", "0.5496147", "0.54654807", "0.5462755", "0.5462755", "0.54498947", "0.5433158", "0.5428211", "0.54278314", "0.5419...
0.6990217
0
grow buffer by initialElementCount if there is no space for one more element in the designated buffer
protected final boolean growBuffer(int type) { if( null !=buffer && !sealed ) { if( !fitElementInBuffer(type) ) { // save olde values .. final Buffer _vertexArray=vertexArray, _colorArray=colorArray, _normalArray=normalArray, _textCoordArray=textCoordArray; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void ensureBufferSpace(int expectedAdditions) {\n final int bufferLen = (buffer == null ? 0 : buffer.length);\n if (elementsCount + expectedAdditions > bufferLen) {\n final int newSize = resizer.grow(bufferLen, elementsCount, expectedAdditions);\n assert newSize >= ele...
[ "0.6676849", "0.6410723", "0.6407066", "0.6314018", "0.623593", "0.6192705", "0.6185884", "0.6163867", "0.6162952", "0.61609083", "0.6124781", "0.60904914", "0.60850805", "0.6080618", "0.6070275", "0.603208", "0.5999945", "0.59935766", "0.5980522", "0.59769684", "0.5975538", ...
0.60212433
16
Fourth element default value for color (alpha), vertex (w) is '1', as specified w/ VertexAttributes (ES2/GL3). vec4 v = vec4(0, 0, 0, 1); vec4 c = vec4(0, 0, 0, 1);
private void countAndPadding(int type, int fill) { if ( sealed ) return; final Buffer dest; final boolean dSigned; final int e; switch (type) { case VERTEX: dest = vertexArray; dSigned = vDataTypeSigned; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getColor(Vertex v);", "public static Vector4 alpha()\n {\n return new Vector4(0,0,0,1);\n }", "public E3DVector4F getVertexColorA(){\r\n\t\treturn vertices[0].getVertexColor();\r\n\t}", "Color generateColor(Vertex v) {\n if (v.x == width - 1 && v.y == height - 1) {\n return Co...
[ "0.6705138", "0.64218813", "0.6278425", "0.60956275", "0.60646105", "0.6031709", "0.6026722", "0.5968214", "0.58836985", "0.58804435", "0.5836097", "0.58346343", "0.58292854", "0.5824714", "0.5783134", "0.5782277", "0.5760307", "0.5725326", "0.57187265", "0.56438357", "0.5615...
0.0
-1
int carry = 3; System.out.println(carry >>= 1); System.out.println(carry); System.out.println(carry >= 1);
public static void main(String[] args) { // System.out.println(carry); // System.out.println(carry <<= 1); // System.out.println(carry >>= 1); int[] digits = {1,2,3}; digits = new int[digits.length + 1]; digits[0] = 1; System.out.println(digits[0]); System.out.println(digits[1]); Sys...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\nint a=10;\nint b=13; // For right shift of b:b >> 1\n//int c = a | b; //For OR gate\n//int c= a & b;// For AND gate\nint c=b<<1;//For left shift of b is multiply of b\na >>= 2; //Assignment Operator\nSystem.out.println(c);\nSystem.out.println(a);\nSystem.out.println(a>b);...
[ "0.6622923", "0.59811634", "0.5852937", "0.5610432", "0.558473", "0.5584293", "0.55767536", "0.5547564", "0.5510307", "0.5490763", "0.5471151", "0.5460396", "0.54473364", "0.54280776", "0.54174805", "0.54073435", "0.5319624", "0.5309806", "0.52555096", "0.52530587", "0.523621...
0.5662808
3
click on fund option and verify
public String fundmethod() throws InterruptedException { fund.click(); Thread.sleep(3000); String actual =fund.getText(); System.out.println(actual); //String expected ="Funds"; //Assert.assertEquals(actual,expected); return actual; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickNoFee() {\n rbNoFee.click();\n }", "public void acceptAndProceed()\r\n {\r\n\t driver.findElement(By.id(\"PCNChecked\")).click();\r\n\t driver.findElement(By.xpath(\"/html/body/div[1]/div/div/main/div/main/div/div/div[1]/div/div/form/fieldset/div[3]/div[2]/button\")).click();\r\n }...
[ "0.7025002", "0.6514904", "0.6414608", "0.6380669", "0.6245573", "0.6215748", "0.62005025", "0.61319387", "0.6119375", "0.6117829", "0.6115417", "0.6089393", "0.6029686", "0.60175484", "0.6002634", "0.59821296", "0.59154165", "0.590376", "0.58866864", "0.58846396", "0.5858850...
0.6010499
14
Created by adelzamalutdinov on 04.04.16.
public interface CartRepository extends JpaRepository<CartInfo, Long> { List<CartInfo> findCartsInfoByOrderInfo(OrderInfo orderInfo); CartInfo findCartInfoByOrderInfoAndGoodInfo(OrderInfo orderInfo, GoodInfo goodInfo); void deleteByOrderInfo(OrderInfo orderInfo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.59559005", "0.5886349", "0.5762443", "0.5756159", "0.5737307", "0.5737307", "0.5703256", "0.56839573", "0.56817603", "0.56631374", "0.56410336", "0.5634442", "0.56214017", "0.5612367", "0.5594036", "0.55810505", "0.55662894", "0.55382586", "0.55380046", "0.5531825", "0.553...
0.0
-1
The loadLevel method. This method reads the levelText and processes it to generate the maps. The algorithm consists in two imbricate "for" loops browsing the height and width. Inside is a "switch" condition calling the creation of the right item depending on the text input.
private void loadLevel(int level) throws SQLException, IOException { String levelText = LorannDAO.chooseLevel(level); this.onTheLevel = new IElement[this.getWidth()][this.getHeight()]; String[] levelArray = levelText.split("\n"); for(int y = 0; y < height; y++) { for(int x = 0; x < width; x++) { switc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Level LoadLevel(InputStream LevelLoad)throws IOException\r\n\t{\r\n\r\n\t\tBufferedReader read = new BufferedReader(new InputStreamReader(LevelLoad));\r\n\t\tString line;\r\n\t\tint column=0;\r\n\t\tint row=0;\r\n\t\tArrayList<String> ans= new ArrayList<String>();\r\n\t\twhile((line = read.re...
[ "0.7916575", "0.7801382", "0.6643085", "0.6354464", "0.63182795", "0.631728", "0.62130284", "0.6148259", "0.6101886", "0.59733564", "0.5963754", "0.5963407", "0.5948628", "0.59036225", "0.5899361", "0.58379424", "0.5832119", "0.57935524", "0.5784151", "0.57660246", "0.5751873...
0.7464434
2
Gets the character position
public Point getCharacterPosition() { return this.characterPosition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCharPos(){\n return charPos;\n }", "public int getCharStart() {\n\t\treturn -1;\n\t}", "public static int getAtChar(){\r\n\t\treturn atChar;\r\n\t}", "int getStartCharIndex();", "public int pos() {\r\n return cbyte;\r\n }", "public int getCodePoint()\n {\n ensureGlyp...
[ "0.8266326", "0.77246577", "0.771778", "0.7409696", "0.7193138", "0.70974904", "0.7023527", "0.6984068", "0.69696045", "0.69651335", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", "0.6958465", ...
0.79902107
1
Sets the character position
private void setCharacterPosition(Point position) { this.characterPosition = position; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public final char setIndex(final int position) {\n ArgumentChecks.ensureBetween(\"position\", lower, upper, position);\n return ((index = position) != upper) ? text.charAt(position) : DONE;\n }", "public void setPosition ( TextPosition position ) throws OutOfBoundsException { _cur...
[ "0.7365272", "0.70793587", "0.6911897", "0.6695637", "0.66518843", "0.66518843", "0.6536225", "0.6522106", "0.64377505", "0.6429935", "0.6415699", "0.64001006", "0.639742", "0.6363999", "0.6333862", "0.63277113", "0.630683", "0.62710845", "0.6243242", "0.6215277", "0.619277",...
0.8263626
0
TODO Autogenerated method stub
public void dispose() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void init(IWorkbenchWindow window) { shell = window.getShell(); page = window.getActivePage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void run(IAction action) { SaveAsDialog saveAsDialog = new SaveAsDialog(shell); saveAsDialog.open(); }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
public void selectionChanged(IAction action, ISelection selection) { }
{ "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
Constructor from environment variables
public HederaClient(Dotenv env) throws Exception { if (env == null) { throw new Exception("provided environment is null"); } this.operatorId = AccountId.fromString(Objects.requireNonNull(env.get("OPERATOR_ID"))); this.operatorKey = PrivateKey.fromString(Objects.requireNonNull...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Verif() {\n\t\tenv = new Environ();\n\t}", "Environment createEnvironment();", "Environment createEnvironment();", "public SetEnvCommand() {\n }", "EnvVariablesType createEnvVariablesType();", "private void init(String... argNames) {\n\t\tfor (int i = 0; i < argNames.length; i++) {\n\t\t\tStrin...
[ "0.64366186", "0.6417384", "0.6417384", "0.6398671", "0.6312242", "0.62991303", "0.6205875", "0.6203328", "0.5985929", "0.5954193", "0.5894966", "0.58711386", "0.58709645", "0.5841044", "0.58334506", "0.5782192", "0.5777433", "0.57757646", "0.5761013", "0.5744711", "0.5700839...
0.59334916
10
Creates a client for the auction's auction account
public Client auctionClient(Auction auction, PrivateKey operatorKey) throws Exception { Client newClient = clientForNetwork(this.network); newClient.setOperator(AccountId.fromString(auction.getAuctionaccountid()), operatorKey); return newClient; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Client createNewClient(Client client);", "Client addClient(Client client) throws BaseException;", "@Override\n\tpublic void createClient() {\n\t\t\n\t}", "public Client create(Client created);", "public void createAuctionTest(){\n\t\tAuction auc = new Auction(new User(),\"Test Auction Description\",1000l);...
[ "0.6717533", "0.62968886", "0.6257784", "0.61059904", "0.6088115", "0.6076615", "0.6062632", "0.60576886", "0.6021409", "0.5980968", "0.5822017", "0.57608414", "0.57471675", "0.5709839", "0.57076776", "0.569314", "0.56607133", "0.56289524", "0.55672437", "0.55649304", "0.5532...
0.6147249
3
Sets up a client for the given network
private Client clientForNetwork(String network) throws Exception { Client client; switch (network) { case "PREVIEWNET": client = Client.forPreviewnet(); break; case "TESTNET": client = Client.forTestnet(); break; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createClient() {\n tc = new TestClient();\n }", "public void initializeNetwork(boolean isHost, String ip, int port) {\r\n if (isHost) {\r\n networkPlayer = new NetworkHost(this, ip, port);\r\n } else {\r\n networkPlayer = new NetworkClient(this, ip, port);\r\n ...
[ "0.6607788", "0.6058245", "0.6032107", "0.5992553", "0.5976614", "0.5868343", "0.5836457", "0.5812475", "0.5800292", "0.5760304", "0.5748437", "0.5729847", "0.5682894", "0.56411934", "0.5636173", "0.56203663", "0.55797535", "0.5564905", "0.5562027", "0.55444956", "0.5534646",...
0.694835
0
Find out the entity name from the sub class name
private String entityType(){ Type t = getClass().getGenericSuperclass(); ParameterizedType pt = (ParameterizedType)t; Class<T> type = (Class)pt.getActualTypeArguments()[0]; return type.getName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getEntityName();", "protected String getEntityClassName() {\n\t\treturn this.getEntityClass().getName();\n\t}", "private String getClassName(final Class<?> clazz) {\n return EntityType.getEntityType(clazz).map(e -> e.getEntityName(clazz)).orElse(clazz.getSimpleName());\n }", "public String g...
[ "0.71701276", "0.6809257", "0.6706981", "0.6612842", "0.6597382", "0.6551613", "0.64649284", "0.6374214", "0.6340286", "0.63335776", "0.62833685", "0.6204846", "0.6146266", "0.61309934", "0.6104164", "0.6101212", "0.60992354", "0.60824645", "0.60720426", "0.6024723", "0.60051...
0.5925644
27
/ access modifiers changed from: packageprivate
public boolean isEmpty() { return this.extMap.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
public LinkLogExtData putKV(@Nullable String str, @Nullable Object obj) { if (UMStringUtils.isEmpty(str)) { return this; } if (obj == null) { this.extMap.put(str, "null value"); return this; } this.extMap.put(str, obj); return this; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
public Map<String, Object> toClipExtMap() { Object obj; if (this.extMap.containsKey(EXT_DATA_MTOP_RESPONSE_STR) && (obj = this.extMap.get(EXT_DATA_MTOP_RESPONSE_STR)) != null) { String valueOf = String.valueOf(obj); if (valueOf.length() > MAX_EXT_LENGTH) { this.ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71516633", "0.66861993", "0.6557671", "0.64844686", "0.64307094", "0.63860685", "0.63849354", "0.6347811", "0.63300216", "0.62775", "0.6263697", "0.6250632", "0.623687", "0.6232753", "0.6229871", "0.61984533", "0.61984533", "0.6195501", "0.6184757", "0.6180239", "0.6157830...
0.0
-1
Constructors need to be public if you want to be able to create the object at all. There is a pattern called "Singleton" where you use a private constructor to make sure that only one object from a certain class is created, this pattern uses a private constructor. Private constructors are also used in "inner classes", ...
public Mage(String name){ this.name = name; //Set the name of the new mage to the supplied String parameter "name" this.className = "Mage"; //All mages are of the class Mage this.sex = "F"; //New mages are created as female by default ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SingleObject(){\n }", "private SingleObject()\r\n {\r\n }", "private SingletonObject() {\n\n\t}", "private SingleObject(){}", "private Singleton() { }", "private Instantiation(){}", "private Singleton() {\n\t}", "private Singleton(){\n }", "private Singleton()\n\t\t{\n\t\t}", ...
[ "0.76390386", "0.76329327", "0.76169854", "0.7280806", "0.72353965", "0.7203347", "0.7178929", "0.71434003", "0.713174", "0.7114263", "0.7049416", "0.69895715", "0.6981076", "0.6977891", "0.6960417", "0.68585074", "0.6853845", "0.67934674", "0.67683655", "0.6761129", "0.67241...
0.0
-1
Methods Methods can be private if they should only be used by the class itself, like when you want to divide a complex thing you want to do into several steps. Cast a fireball spell.
public double castFireball(){ this.mana -= fireball.manaCost; return fireball.hit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void shoot() {\n }", "private void shoot() {\n }", "public void spellLevelUp() {\n \n }", "public default int getCastingTime(){ return Spell.STANDARD_ACTION; }", "public Casts(){\n\t\t\n\t}", "private void castSpellByAI() {\n\t\tboolean spellIsNotActivated = true;\n\t\tboolean[] spellsF...
[ "0.6650055", "0.6650055", "0.6322278", "0.6275291", "0.62033904", "0.6157652", "0.615741", "0.6106945", "0.6106945", "0.6106945", "0.60637075", "0.60594845", "0.6021472", "0.6009139", "0.6009139", "0.6009139", "0.5949856", "0.58880097", "0.58865", "0.5813", "0.5795383", "0....
0.61221725
7
This method handles how the Mage takes damage. Depending on implementation you might need to add more variables as well.
public void takeDamage(double damage){ damage -= this.armor; this.health -= damage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Mage() {\r\n\thp = 75;\r\n\tstrength = 50;\r\n\tdefense = 30;\r\n\tattack = .4;\r\n\tcrit=.3;\r\n\tevade=0;\r\n }", "@Override\r\n\tpublic void damage(float amount) {\n\t\t\r\n\t}", "private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n s...
[ "0.72443634", "0.7173947", "0.7067845", "0.6853745", "0.684332", "0.6775684", "0.67269075", "0.6719451", "0.669774", "0.66765565", "0.6663179", "0.6661486", "0.665331", "0.6648944", "0.6588945", "0.64824843", "0.6480835", "0.6444721", "0.6422123", "0.6402117", "0.640179", "...
0.6925566
3
supply parameter for the amount of raw dmg dealt check for mitigation check for physical mitigation apply flat reduction Check for greater than 0 apply %age reduction check for magic mitigation apply flat reduction Check for greater than 0 apply %age reduction apply resistances check for damage type check for resistanc...
public String getSex(){ //"public" access allows other classes to retrieve the value of "sex", but since there // is no setter it cannot be changed from outside the class = Encapsulation/Inkapsling return this.sex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean takeDamage(int dmg);", "public int giveDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "@Override\n\tpublic float desireability() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tM...
[ "0.6379196", "0.6291156", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.62569064", "0.6254079", "0.6232408", "0.616934", "0.6135942", "0.6118407", "0.6111844", "0.60851914", "0.6078092", "0.6071837", "0.60708076", "0.6026802", "0.6023537", "0.6023537", "0.6023537...
0.0
-1
Returns information about the Mage as a String. Overrides the default toStringmethod of Object.
@Override public String toString() { String sexString = ""; if (this.sex == "M") { //The class can always access it's own variables sexString = "He"; } else if (this.sex == "F") { sexString = "She"; } return "It's " + this.name + " a " + this.classN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString() {\n return info();\n }", "public String toString() {\r\n\t\tString str;\r\n\t\tstr = (super.toString() + matureToString());\r\n\r\n\t\treturn str;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"\\nCard Name: \" + getName() +\n\t\t\t\t\"\\nMulti...
[ "0.7307911", "0.72756577", "0.7219411", "0.7175201", "0.71655935", "0.7147992", "0.70548534", "0.7050445", "0.7047605", "0.70382345", "0.7037541", "0.70310605", "0.7024476", "0.70100874", "0.69356185", "0.6923207", "0.69160396", "0.6912633", "0.69123423", "0.6905393", "0.6905...
0.0
-1
Create a new XML document with some crappy content
@Nonnull private static Document _createDummyPayload () { final Document aXMLDoc = XMLFactory.newDocument (); final Node aRoot = aXMLDoc.appendChild (aXMLDoc.createElement ("test")); aRoot.appendChild (aXMLDoc.createTextNode ("Text content")); return aXMLDoc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createDocument() {\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\ttry {\r\n\t\t\t//get an instance of builder\r\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\r\n\t\t\t//create an instance of DOM\r\n\t\t\tdom = db.newDocument();\r\n\r\n\t\t\t}catch(Parser...
[ "0.6707152", "0.66981876", "0.66462475", "0.6181635", "0.6158815", "0.6158815", "0.6158815", "0.6158815", "0.6128736", "0.61082727", "0.60414344", "0.60094476", "0.5999173", "0.5997792", "0.5989527", "0.5941478", "0.59238285", "0.59010565", "0.58919716", "0.58786535", "0.5857...
0.61906713
3
This method checks that the buttons currently in the app can be clicked.
public void testCheckButtons() { onView(withId(R.id.quiz_button)).perform(click()); pressBack(); onView(withId(R.id.flash_button)).perform(click()); pressBack(); onView(withId(R.id.quiz_button)).perform(click()); onView(withId(R.id.quiz_make)).perform(click()); pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n\tprivate boolean wasAnyButtonPressed() {\n\t\tfor (ArcadeButton button : buttons) {\n\t\t\tif (button.getPressCounter() > 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public int checkMenuButtons() {\n\n // computing the coordinates of the cursor\n\n...
[ "0.70371544", "0.66065055", "0.6598063", "0.65288675", "0.65288675", "0.648188", "0.64391166", "0.638222", "0.6380704", "0.6369418", "0.6359533", "0.63512677", "0.6302366", "0.629193", "0.62918663", "0.62522495", "0.62495327", "0.6226243", "0.61188513", "0.6107515", "0.610516...
0.6435946
7
Checks to see whether we can enter null value into our Quizzes
public void testEmptyQuiz(){ onView(withId(R.id.quiz_button)).perform(click()); onView(withId(R.id.quiz_make)).perform(click()); onView(withId(R.id.submit_button)).perform(click()); Activity current = getActivity(); assertNotNull(current); onView(withId(R.id.homeButton));...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canProcessNull() {\n return false;\n }", "@Test\r\n\tpublic void invalidQuizTest() {\r\n\t\tquizBean qbean = null;\r\n\t\tboolean b = false;\r\n\t\ttry {\r\n\t\t\tInstructorUI.appendQuizNodeToXML(qbean);\r\n\r\n\t\t\tquizReader reader = new quizReader();\r\n\t\t\ttry {\r\n\t\t\t\tquizzes...
[ "0.6260811", "0.5985804", "0.5978706", "0.5949712", "0.5892914", "0.587697", "0.5873415", "0.5804016", "0.5738824", "0.5725135", "0.57065576", "0.5701017", "0.5661628", "0.56586206", "0.5658096", "0.5656887", "0.5648745", "0.56413674", "0.5634979", "0.56250364", "0.56046367",...
0.54768765
37
Tests our make flashcards function
public void testMakeFlash() { onView(withId(R.id.flash_button)).perform(click()); onView(withId(R.id.make_flash_button)).perform(click()); onView(withId(R.id.flashCardsTitle)) .perform(click()) .perform(typeText("The best Flashcard")); onView(withId(R.id.f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void doAction() throws ModelException {\n CommonTestMethods.gameInitOne(game);\n String response;\n CommonTestMethods.givePlayerLeaderCards(game.getCurrentPlayer(), game.getLeaderCards().get(2), game.getLeaderCards().get(1));\n\n actionController.getGame().getCurrentPl...
[ "0.64839697", "0.64327115", "0.6404578", "0.63653105", "0.63539624", "0.628499", "0.62079304", "0.61998147", "0.618084", "0.6141818", "0.6089025", "0.604051", "0.6023163", "0.6014559", "0.5974954", "0.5955588", "0.59282815", "0.5897256", "0.58879906", "0.5861662", "0.58548516...
0.7110365
0
Tests our delete flashcard function
public void testDeleteFlash() { onView(withId(R.id.flash_button)) .perform(click()); onView(withId(R.id.all_flash_button)) .perform(click()); onData(startsWith("The best")) .inAdapterView(withId(R.id.listAll)) .onChildView(withId(R....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void deleteFlashcard(Flashcard f) {\n\t\t\n\t}", "public boolean delete(String cardid);", "@Test public void delete_card_check_status_test() throws ClientProtocolException, IOException\n\t{\t\t\n\t\tSystem.out.println(\"\\n--------------------------------------------------\");\n\t\tSystem.o...
[ "0.7592752", "0.7432099", "0.72948736", "0.68540233", "0.68223417", "0.67997473", "0.6751157", "0.66596323", "0.65624756", "0.6548071", "0.65303636", "0.65062827", "0.6447781", "0.6360632", "0.63599885", "0.635282", "0.6351001", "0.6341294", "0.6313867", "0.6297796", "0.62881...
0.67643464
6
Checks to see whether we can enter null value into our flash cards
public void testEmptyFlash() { onView(withId(R.id.flash_button)).perform(click()); onView(withId(R.id.make_flash_button)).perform(click()); onView(withId(R.id.submit_FlashCards_button)).perform(click()); pressBack(); pressBack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canProcessNull() {\n return false;\n }", "private static void checkNull(Object value, String name) throws LateDeliverablesProcessingException {\r\n if (value == null) {\r\n throw new LateDeliverablesProcessingException(\"The \" + name + \" should not be null.\");\r\n ...
[ "0.675546", "0.6486021", "0.6403187", "0.6379194", "0.6340008", "0.63186705", "0.6302581", "0.6287348", "0.62436736", "0.62385494", "0.6224342", "0.6156084", "0.6154218", "0.61503553", "0.614487", "0.6090822", "0.60712713", "0.6050501", "0.6028847", "0.6028057", "0.60182124",...
0.0
-1
TODO For sausege eyes only: Find last appearance line of i_ID, replace i_StringToReplace with i_StringToReplaceWith
public static void UpdateLineInFileByID(String i_FileName, String i_ID, StringBuilder i_StringToReplace, StringBuilder i_StringToReplaceWith) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String DoFindReplace(String line)\n {\n String newLine = line;\n\n for (String findKey : lineFindReplace.keySet())\n {\n String repValue = lineFindReplace.get(findKey).toString();\n\n Pattern findPattern = Pattern.compile(findKey);\n Matcher...
[ "0.65134263", "0.6059125", "0.59857637", "0.59440035", "0.5867424", "0.586659", "0.5715201", "0.55728453", "0.5552139", "0.5524138", "0.5511941", "0.53955233", "0.53549355", "0.53487146", "0.5337421", "0.53093785", "0.53032523", "0.52610654", "0.5232069", "0.5215547", "0.5214...
0.73303795
0
Constructs a new material with diffuse and specular properties.
private Material(float[] diffuse, float[] specular, float shininess) { this.diffuse = diffuse; this.specular = specular; this.shininess = shininess; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Material create();", "public Material() {}", "public Material copy()\r\n\t{\r\n\t\tMaterial other = new Material();\r\n\r\n\t\tother.setAmbient(ambient.x, ambient.y, ambient.z);\r\n\t\tother.setDiffuse(diffuse.x, diffuse.y, diffuse.z);\r\n\t\tother.setSpecular(specular.x, specular.y, specular.z);\r\n\r\...
[ "0.7457223", "0.713478", "0.69869536", "0.66696143", "0.6493754", "0.6382235", "0.63618886", "0.62421805", "0.6193584", "0.6138117", "0.60870147", "0.6060037", "0.60379016", "0.60137993", "0.60004157", "0.59626085", "0.59626085", "0.592764", "0.5918768", "0.58647394", "0.5850...
0.8104131
1
/ Startup stuff here.
@PostConstruct public void init() { System.out.println("\n \n \n \n \n \n \n"); System.out.println("I AM THE SERVER STARTING BE WAARE :::::::"); System.out.println("\n \n \n \n \n \n \n"); boolean updateMatches = true; if (updateMatches) { System.out.println("Upda...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void startup();", "void startup();", "public void startup(){}", "public abstract void startup();", "@Override\n public void startup() {\n }", "public void startup() {\n\t\tstart();\n }", "public void start()\n/* 354: */ {\n/* 355:434 */ onStartup();\n/* 356: */ }", "public void...
[ "0.8057985", "0.8057985", "0.79921347", "0.79692066", "0.77106047", "0.7648241", "0.73378164", "0.7054671", "0.70492816", "0.70171714", "0.6976069", "0.69599503", "0.6923899", "0.691363", "0.6887366", "0.68403804", "0.6809404", "0.67727226", "0.67542756", "0.675107", "0.67510...
0.0
-1
cant deal with null information >>>>>
public void insertTournamentMatchesToDB(String res) throws JSONException { Matches match = new Matches(); System.out.println("calling from socketServer ..."); //convert res json Array JSONArray jsonArray = new JSONArray(res); //iterate JSONobj in the array inserting the to DB.. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void flagNull() {\n\t\t\n\t}", "@Override\n\tpublic void visit(Null n) {\n\t\t\n\t}", "public boolean canProcessNull() {\n return false;\n }", "public String method_211() {\r\n return null;\r\n }", "@Override\n\tpublic void visit(NullValue arg0) {\n\t\t\n\t}", "void w...
[ "0.6618551", "0.65335256", "0.63450074", "0.6320838", "0.6245618", "0.624162", "0.6219781", "0.6211434", "0.6193198", "0.6184322", "0.61086404", "0.6074246", "0.6052251", "0.605182", "0.60211766", "0.5998598", "0.5965311", "0.59550196", "0.5953172", "0.5931801", "0.5892389", ...
0.0
-1
Mainmethode, die lediglich ein GamePanel generiert
public static void main(String[] args){ new GamePanel(790,630); //Sonst grauer Streifen an den Rändern rechts und unten }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createMainGame() {\n\t\tpanelIntro.setVisible(false);\n\t\tintroButtonPanel.setVisible(false);\n\t\t\n\t\tpanelMain = new JPanel();\n\t\t\n\t\tcon.add(panelMain);\n\t\t\n\t\tplayerPanel = new JPanel();\n\t\tplayerPanel.setBounds(50, 25, 924, 50);\n\t\tplayerPanel.setBackground(Color.DARK_GRAY);\n\t\tpl...
[ "0.74955153", "0.7169723", "0.6980497", "0.6917746", "0.6907306", "0.68376553", "0.68111306", "0.68084157", "0.680244", "0.67729217", "0.6768342", "0.6739564", "0.6737473", "0.67373896", "0.67295367", "0.6715045", "0.6707362", "0.6691983", "0.66855955", "0.6684536", "0.667603...
0.74902666
1
In der doInitializationsMethode werden grundlegende Objekte zum Spielstart instanziert Insbesondere werden die Spieler und Gegner generiert, die Karte geladen etc.
public void doInitializations(JFrame menu){ up = false; down = false; left = false; right = false; //sonst läuft Spieler nach Neustart einfach los attack = false; attack2 = false; level = 1; room = 1; last = System.nanoTime(); gameover = 0; actors = new CopyOnWriteArrayList<Sprite>(); atta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PostConstruct\n protected void init() {\n direccionRegionalList = new ArrayList<InstitucionRequerida>();\n direccionRegionalList = institucionRequeridaServicio.getDireccionRegionalList();\n gadList = new ArrayList<InstitucionRequerida>();\n gadList = institucionRequeridaServicio.get...
[ "0.6847046", "0.67422837", "0.65469885", "0.6486256", "0.6458809", "0.64559984", "0.6391482", "0.63802475", "0.63346547", "0.6319042", "0.62635386", "0.6250057", "0.62361556", "0.62361556", "0.622506", "0.6215358", "0.62098086", "0.6209628", "0.6209628", "0.6209628", "0.61850...
0.0
-1
Hier werden die multiplayerspezifischen Initialisierungen vorgenommen: zwei Spieler werden initialisiert, die entsprechende Karte geladen und das Spiel auf "gestartet" gesetzt
public void doInitializationsMulti(JFrame f){ //TODO: Hier wird nix gemalt, solange Server und Client aktiv sind -> Zwei parallel Threads? Wie implementieren? f.dispose(); chat(); System.out.println("Netzwerk-Fenster verstecken"); System.out.println("doInitializationsMulti ausführen"); up = false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PlatzVerkaufsWerkzeug()\r\n\t{\r\n\t\t_ui = new PlatzVerkaufsWerkzeugUI();\r\n\t\tregistriereUIAktionen();\r\n\t\t// Am Anfang wird keine Vorstellung angezeigt:\r\n\t\tsetVorstellung(null);\r\n//\t\t_auswahl = new Map<Platz, Boolean>; Alternative mit Map\r\n\t}", "@Before\n\tpublic void initial() {\n\t\tm...
[ "0.64580804", "0.6335596", "0.6312667", "0.63042957", "0.62449944", "0.62102664", "0.6181273", "0.61076254", "0.6072492", "0.6047848", "0.60252625", "0.6024082", "0.6023324", "0.60036206", "0.59962404", "0.59927905", "0.59716755", "0.5956694", "0.5956382", "0.59341925", "0.59...
0.0
-1
Zeichnet das NetzwerkMenue: Der Spieler kann auswaehlen, ob er Server oder Client ist und wartet auf eine eingehende Verbindung. Hier werden Server bzw. Client erzeugt, die als separate Threads fuer die Entgegennahme von Nachrichten verantwortlich sind und dementsprechend den nicht lokalen Spieler 2 bewegen usw..
private void paintNetworkMenu(){ frame3.dispose(); frame4 = new JFrame("Netzwerk"); frame4.setLocation(650,300); frame4.setSize(100, 100); JButton b1 = new JButton("Server"); JButton b2 = new JButton("Client"); JButton b3 = new JButton("Zurück"); frame4.add(BorderLayout.NORTH, b1); frame4.add(Borde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n // Methode run die bei Aufruf des Threads gestartet wird\n public void run() {\n //Endlosschleife zum abhören was der Server sedent. Neuen InputStream erzeugen und in Anzeigefenster ausgeben\n while(schleife == 1){\n \n try {\n // Methode online gibt die Nutzerna...
[ "0.6828557", "0.672033", "0.66463935", "0.6541733", "0.64677495", "0.6418732", "0.63781154", "0.63403213", "0.6313038", "0.62522423", "0.6235902", "0.62314004", "0.62104785", "0.62094486", "0.615921", "0.61493635", "0.61247045", "0.61176896", "0.61171526", "0.6109058", "0.608...
0.0
-1
Zeichnet das Hauptmenue, indem der Spielmodus (Einzelspieler bzw. Multiplayer) ausgewaehlt oder das Spiel beendet werden kann.
private void paintMenu(){ //Idee: Vllt. lieber Menü auf unsichtbar setzen und immer wieder anzeigen, wenn benötigt? Vllt. auch praktisch für Pause...Aber was mit entsprechenden Labels? if(spiel_status == 3){ //Spiel noch gar nicht gestartet frame3 = new JFrame("Spiel starten?"); frame3.setLocation(650,300...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inizializeMultiplayer() {\r\n\t\t\r\n\t\tthis.client = new Client(); //inzializzo connessione con il server\r\n\t\tmultiplayerPanel = new MultiplayerPanel(this);\r\n\t\tm.setVisible(false);\r\n\t\tgameFrame.add(multiplayerPanel);\r\n\t\tgameFrame.pack();\r\n\t\tgameFrame.setVisible(true);\r\n\t\tgameF...
[ "0.5717297", "0.5656282", "0.55852854", "0.5576322", "0.55070525", "0.5473798", "0.5444115", "0.5395511", "0.5381222", "0.52991176", "0.5292726", "0.5256886", "0.52548796", "0.5232274", "0.52126986", "0.5211534", "0.52067214", "0.5203141", "0.5194352", "0.51849943", "0.517488...
0.0
-1
Ruft den Shop auf, indem Spielobjekte (Manatrank, Leben) gekauft werden koennen.
public void shop(){ up = false; down = false; left = false; right = false; shopmode = true; shop2.setLocation(500,300); shop2.setSize(800, 600); shop2.pack(); shop2.setVisible(true); JButton b1 = new JButton("1 Manatrank für 10 Münzen"); b1.addActionListener(new ActionListener(){ public v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setShop(Shop s)\n\t{\n\t\tm_currentShop = s;\n\t}", "public void initShop(){\n addCountToStorage(actionProduct.findProductByName(\"Jemeson\"), 3);\n addCountToStorage(actionProduct.findProductByName(\"Red Label\"), 5);\n addCountToStorage(actionProduct.findProductByName(\"Burenka...
[ "0.63732046", "0.63137305", "0.62407535", "0.6069606", "0.6049356", "0.59880745", "0.593253", "0.58922046", "0.58768094", "0.5851971", "0.583374", "0.58138317", "0.57753307", "0.57695866", "0.5755805", "0.57529664", "0.57075673", "0.5696386", "0.56909037", "0.56716037", "0.56...
0.66065997
0
Spielschleife, fuehrt die Zeitberechnung fuer fluessige Darstellung, Tastenabfrage, Logik, Bewegung und Neuzeichnung aus.
public void run(){ while(game_running){ if(singleplayer){ computeDelta(); //Zeit für vorausgehenden Schleifendurchlauf wird errechnet //Erst Methoden abarbeiten, wenn Spiel gestartet ist if(isStarted()){ checkKeys(); //Tastaturabfrage doLogic(); //Ausführung der Logik moveObjects()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Feld erzeugeFeld() {\n\t\tArrayList<Schiff> schiffe = new ArrayList<Schiff>();\n\t\t\n\t\t// 1 Schlachtschiff = 5\n\t\tschiffe.add(new Schiff(5));\n\t\t// 2 Kreuzer = 4\n\t\tschiffe.add(new Schiff(4));\n\t\tschiffe.add(new Schiff(4));\n\t\t// 3 Zerstoerer = 3\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.ad...
[ "0.7006821", "0.6710857", "0.6527328", "0.6436089", "0.6426219", "0.62887293", "0.62827086", "0.62039155", "0.6180487", "0.6121524", "0.6115676", "0.6088024", "0.60134774", "0.6006942", "0.60066056", "0.60046405", "0.59979606", "0.59376705", "0.59305185", "0.5884679", "0.5863...
0.0
-1
Methode zur Initialisierung des SkillMenues, muss einmal vor Aufruf von skills() ausgefuehrt werden.
public void initSkills(){ up = false; down = false; left = false; right = false; skillmode = true; skills.setLocation(500,300); skills.setSize(400,300); t1 = new JButton("Dicker Brecher (benötigt 2 Skillpunkte)"); t1.addActionListener(new ActionListener(){ public void actionPerformed(ActionE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Skill() {\n\t\tsuper();\n\t}", "public skills(){\n\t\tname = \"tempName\";\n\t\tmanaCost =0;\n\t\tskillDmg = 0;\n\t\tcritFactor = 0;\n\t\tcritChance = 0;\n\t\tnoOfTargets = 1;\n\t\thitChance = 0;\n\t\tmyAttribute = null;\n\t\t\n\t\t//instantiates the original values, prob will have no need\n\t\torigSkillD...
[ "0.76046795", "0.7486045", "0.7285631", "0.7276342", "0.7096559", "0.70127225", "0.6851989", "0.6802223", "0.6783452", "0.65407676", "0.6473932", "0.6208135", "0.6020316", "0.5860283", "0.5821648", "0.5735973", "0.57214034", "0.5716569", "0.5713688", "0.56915134", "0.5689231"...
0.6846175
7
Methode zum Aufruf des SkillMenues (Faehigkeiten koennen gegen Erfahrung erlernt werden). Vorher muss initSkills() aufgerufen werden.
public void skills(){ up = false; down = false; left = false; right = false; skillmode = true; if(player.hasSkillHealth1()){ t1.setEnabled(false); t3.setEnabled(true); }else{ t3.setEnabled(false); } if(player.hasSkillHealth2()){ t3.setEnabled(false); } if(player.hasSkillStrength1())...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n beginnerSkills.add(SkillFactory.TACKLE);\n beginnerSkills.add(SkillFactory.LEER);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(5, new ArrayList<Integer>...
[ "0.77625084", "0.76938355", "0.76752305", "0.766685", "0.69874394", "0.6951012", "0.6821157", "0.67926913", "0.67504865", "0.6695391", "0.65356034", "0.6438732", "0.632047", "0.6291031", "0.62761825", "0.62520427", "0.6219176", "0.621419", "0.62058866", "0.61982924", "0.61928...
0.6866806
6
Laesst den Spieler das Spiel gewinnen, fragt nach Neustart bzw. Beenden.
public void wonGame(){ System.out.println("Bravo, du hast gewonnen! Möchtest du noch einmal spielen?"); stopGame(); started = false; spiel_status = 1; paintMenu(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendeSpielerWeg(String spieler);", "public Endbildschirm(Spiel s) {\r\n\t\tdasSpiel = s;\r\n\r\n\t}", "public QwirkleSpiel()\n {\n beutel=new Beutel(3); //erzeuge Beutel mit 3 Steinfamilien\n spielfeld=new List<Stein>();\n\n rote=new ArrayList<Stein>(); //Unterlisten, die zu...
[ "0.6908611", "0.6827568", "0.67760354", "0.6698229", "0.6592855", "0.65922856", "0.65907085", "0.65304685", "0.64955366", "0.6401194", "0.6370765", "0.6327149", "0.6301697", "0.62902427", "0.626313", "0.61787695", "0.615543", "0.61546814", "0.60689235", "0.6054361", "0.601397...
0.0
-1
Laesst den Spieler verlieren, fragt nach Neustart bzw. Beenden.
public void lostGame(){ System.out.println("Schade, du hast verloren. Möchtest du es noch einmal versuchen?"); if(!singleplayer){ if(player.getLifes() == 0){ System.out.println("Spieler 2 gewinnt!"); }else{ System.out.println("Spieler 1 gewinnt!"); } } stopGame(); started = false; spiel_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendeSpielerWeg(String spieler);", "public void sendeSpielfeld();", "public void sendeNeuerSpieler(String spieler);", "public Endbildschirm(Spiel s) {\r\n\t\tdasSpiel = s;\r\n\r\n\t}", "public void ende() {\r\n\t\tSystem.out.println(dasSpiel.getSieger().getName() + \" hat gewonnen\"); \r\n\t}",...
[ "0.71752065", "0.7074419", "0.70725775", "0.67204684", "0.6706271", "0.66390723", "0.6627739", "0.65544784", "0.653244", "0.65010035", "0.6493695", "0.6314617", "0.62819684", "0.6277829", "0.6228848", "0.62245244", "0.62198025", "0.6173319", "0.61371803", "0.6119923", "0.6109...
0.0
-1
Prueft auf Tastendruecke und setzt entsprechende BooleanVariablen zur Steuerrung des Spielers, Aufrufen von Menues usw.
public void keyPressed(KeyEvent e){ if(chatmode){ char key = e.getKeyChar(); if(key == KeyEvent.VK_ENTER){ if(clientMode){ client.out.println("Chat"); client.out.flush(); if(!chatPane.getText().equals("")){ client.out.println(chatarea.getText()); chatPane.setText(chatPane.getText(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTallied(java.lang.Boolean value);", "public void set(boolean bol);", "public void setT(boolean t) {\n\tthis.t = t;\n }", "public void setDescTraslado(Boolean descTraslado){\n this.descTraslado = descTraslado;\n }", "public void setS ( boolean s ) {\n\n\tthis.s = s;\n }", "p...
[ "0.7041638", "0.6837038", "0.6732909", "0.6570722", "0.6534283", "0.6479565", "0.6461042", "0.6453415", "0.64322174", "0.6425082", "0.6412848", "0.6387492", "0.6315392", "0.6302407", "0.6300184", "0.62893754", "0.625681", "0.6249307", "0.6238451", "0.62370604", "0.62304735", ...
0.0
-1
Prueft auf Tastendruecke (Loslassen) und setzt entsprechende BooleanVariablen zur Steuerrung des Spielers, Aufrufen von Menues usw.
public void keyReleased(KeyEvent e){ if (e.getKeyCode() == KeyEvent.VK_LEFT){//linke Pfeiltaste left = false; if(clientMode){ client.out.println("notleft"); client.out.flush(); } if(serverMode){ server.out.println("notleft"); server.out.flush(); } } if (e.getKeyCode() == KeyEve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTallied(java.lang.Boolean value);", "public void setT(boolean t) {\n\tthis.t = t;\n }", "public void setDescTraslado(Boolean descTraslado){\n this.descTraslado = descTraslado;\n }", "public void set(boolean bol);", "public void setS ( boolean s ) {\n\n\tthis.s = s;\n }", "p...
[ "0.7051014", "0.6685829", "0.6649942", "0.6602656", "0.64347684", "0.6315291", "0.6296534", "0.62835157", "0.62758756", "0.6233139", "0.6232086", "0.6231086", "0.62292993", "0.61878425", "0.61817276", "0.6167906", "0.6165541", "0.61576045", "0.61574376", "0.6149122", "0.61289...
0.0
-1
Gibt zurueck, ob das Spiel gestartet ist, oder nicht
public boolean isStarted(){ return started; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendeSpielStarten();", "boolean hasStart();", "protected boolean betreteSpielfeld(){\r\n\t\t\r\n\t\tint neueId;\r\n\t\t\r\n\t\tif(spiel.getBewegungsWert()==6)\r\n\t\t{\r\n\t\t\tfor(int i=0; i<4; i++){\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Startfeld){\r\n\t\t\t\t\tneueI...
[ "0.7214485", "0.7173141", "0.67495656", "0.6466961", "0.64482784", "0.6409613", "0.6374407", "0.63575363", "0.63311607", "0.63165146", "0.6289491", "0.62844586", "0.6274213", "0.6223603", "0.6220682", "0.6155925", "0.60507685", "0.6038848", "0.60134983", "0.6008372", "0.60083...
0.5942837
27
Setzt das Spiel auf den Zustand started (wichtig, ob noch das Menue oder bereits das Spielfeld gezeichnet werden soll)
public void setStarted(boolean started){ this.started = started; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendeSpielStarten();", "public void setStart(){\n\t\tthis.isStart=true;\n\t}", "public void start(){\n\t\tsuper.start();\n\t}", "public void start() {\n\n\t}", "public start() {\n\t\tsuper();\n\t}", "private void start() {\n\n\t}", "public void starting();", "public void start() {\n\t\t\n...
[ "0.7391376", "0.6718855", "0.6558987", "0.64335954", "0.6427402", "0.6427322", "0.6421839", "0.6355617", "0.6355617", "0.6336985", "0.6295252", "0.6285938", "0.6277168", "0.6268194", "0.62654173", "0.6264494", "0.6264431", "0.6253609", "0.6242102", "0.62383556", "0.6222281", ...
0.64027536
7
Setzt das aktuelle Level auf level
public void setLevel(int level){ this.level = level; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setLevel(int level){\r\n this.level = level;\r\n }", "protected void setLevel(int level)\n {\n this.level = level;\n }", "private void setLevel(int level) {\n setStat(level, currentLevel);\n }", "public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n ...
[ "0.8627079", "0.85264945", "0.8488674", "0.83787864", "0.836229", "0.83592093", "0.83124024", "0.83085555", "0.8291593", "0.8206421", "0.8178586", "0.8178586", "0.8175396", "0.81738865", "0.8070703", "0.806728", "0.80665314", "0.80665314", "0.80608124", "0.80596817", "0.80102...
0.8222834
9