query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Loads the user's social details | @Override
public SocialUserDetails loadUserByUserId(String userId) throws UsernameNotFoundException, DataAccessException {
UserDetails userDetails = userService.getUserByEmail(userId);
return (SocialUserDetails) userDetails;
} | [
"private void loadGoogleUserData() {\n try {\n JSONObject jsonObject = new JSONObject(data);\n authUser = new AuthUser();\n authUser.setSocialId(jsonObject.getString(\"id\"));\n loadGoogleName(authUser, jsonObject.getJSONObject(\"name\"));\n authUser.set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a dependency based on the given JSON Object. | public Dependency(final JSONObject json) {
this.forge = json.getString("forge");
this.product = json.getString("product");
this.constraints = Constraint.constraints(json.getJSONArray("constraints"));
} | [
"public Object createDependency();",
"DependencyRelationship createDependencyRelationship();",
"public static IArtifactRelease create(Reader json) {\n IArtifactRelease result = null;\n\n JsonContentHandler contentHandler = new JsonContentHandler();\n JSONParser parser = new JSONParser();\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new properties editing support. | public LabelEditingSupport(final TreeViewer v) {
super(v);
} | [
"private PropertyEditorImpl() {\n\t\tproperties = new HashMap<>();\n\t\tloadProperties();\n\t}",
"protected PropertyEditor createEditor (Property prop)\n {\n PropertyEditor editor = PropertyEditor.createEditor(_ctx, prop, _ancestors);\n editor.setObject(_object);\n _editors.add(editor);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
mainTitle = new javax.swing.JLabel();
fillDetailsTitle = new javax.swing.JLabel();
fillDetailsSubTitle = new javax.swing.JLabel();
... | [
"public StForm() {\n initComponents();\n }",
"public CineForm() {\n initComponents();\n }",
"public javaform() {\n initComponents();\n }",
"public EditDemographicForm() {\n initComponents();\n }",
"public FightForm() {\n initComponents();\n }",
"public For... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ TextView textView = new TextView(mActivity); textView.setText(menuDataInfo.title); textView.setGravity(Gravity.CENTER); textView.setTextSize(30); | @Override
public View initView() {
View view = View.inflate(mActivity, R.layout.newsmenupage, null);
vp_newsmenupage_content = view.findViewById(R.id.vp_newsmenupage_content);
indicator_newsmenupage_title = view.findViewById(R.id.indicator_newsmenupage_title);
return view;
} | [
"public View makeView() {\n TextView myText = new TextView(NewJoinGameActivity.this);\n myText.setGravity(Gravity.CENTER_HORIZONTAL);\n myText.setTextSize(20);\n myText.setTextColor(Color.WHITE);\n myT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds an Accessibility (e.g. section 508 compliance) Guideline to this component. The accessibility guidelines are used during tag doc generation to give the application developer hints on how to configure the component to be accessibilitycompliant. | public void addAccessibilityGuideline(
String accessibilityGuideline)
{
_accessibilityGuidelines.add(accessibilityGuideline);
} | [
"@Override\r\n\tpublic void addExamguide(Examguide examguide) {\n\t\tthis.add(examguide);\r\n\t}",
"public xapp.battle.Battle.Guide.Builder addGuideBuilder() {\n return getGuideFieldBuilder().addBuilder(\n xapp.battle.Battle.Guide.getDefaultInstance());\n }",
"void addAccessibilityView(St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / TESTS REPLACE / / | @Test
public void replaceValueInCacheStringToInteger() throws DuplicatedKeyException, NonExistentKeyException {
Storage s = new Storage();
s.store("key", "value");
s.replace("key", "3");
assertEquals(s.get("key").getClass(), Integer.class);
} | [
"@Test\n public void testRemoveSurroundedChars() {\n String test1 = \"Test\";\n String test2 = \"\";\n String test3 = \"*asdfa\";\n String test4 = \"asdf*\";\n String test5 = \"*asdf*\";\n String test6 = \"++asdf++\";\n\n assertEquals(\"es\", StringUtils.removeSur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Begs the LMS to mave mercy and ignore our past sins | public void discardFile(int recId); | [
"private void shuttleAllLeft() {\n }",
"@Override\r\n\tpublic void PossederLogement() {\n\t\t\r\n\t}",
"public void tightenOrLoosenSecurity(){\r\n\t\tcurrent_state.tightenOrLoosenSecurity(hp);\r\n\t}",
"protected void mo4791d() {\n }",
"private void luckyMarksman() {\n Gameplay.usedLuckyMarksma... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to First element using string and then click | public static void xfindElAndClick(FrameworkDriver driver, String webElString, String toBeReplaced, String replacedBy) {
WebElement el = findElementByXpath(driver, webElString, toBeReplaced, replacedBy);
if (el != null) {
xClick(driver, el);
}
} | [
"public void clickElement1()\n\t{\n\t\t//if\n\t\tdriver.findElement(ELEMENT_1).click();\n\t}",
"public void click(PageElement locator);",
"public static void clickOnFirstLink() {\n\t\tSearchResultsPage.getSearchResults().get(0).click();\n\n\t}",
"public void openSecondLesson(){\n driver.findElement(sec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Print a warning for nodes that have the same location but different tags. | private void warnIfNodesHaveDifferentTags(final Node master, final Set<Node> slaves)
{
final Node origin = master;
final Map<String, String> tags = master.getTags();
for (final Node node : slaves)
{
if (!tags.equals(node.getTags()))
{
logger.wa... | [
"private void sameTreeWarning() throws IOException {\n try (TraceTimer traceTimer = newTimer(\"sameTreeWarning\")) {\n RevWalk rw = receivePack.getRevWalk();\n RevCommit newCommit = rw.parseCommit(newCommitId);\n RevCommit priorCommit = revisions.inverse().get(priorPatchSet);\n\n if... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a treasure to the arraylist of treasure. | public void addTreasure(Treasure theTreasure) {
theTreasure.setContainer(new D20().roll());
theTreasure.chooseTreasure(new Percentile().roll());
this.myTreasure.add(theTreasure);
} | [
"public void add(int position, T item);",
"public void add(T item) {\n this.contents.addAtHead(item);\n }",
"public void add(Tayte tayte) {\n\t\t\t\n\t\t}",
"public void add(T item) {\n this.contents.addAtHead(item);\n }",
"public void add( AnyType t) {\n \n \tif ( size >= capacity )\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity. | public static Pedido createEntity(EntityManager em) {
Pedido pedido = new Pedido()
.criado(DEFAULT_CRIADO)
.status(DEFAULT_STATUS)
.precoTotal(DEFAULT_PRECO_TOTAL)
.comentarios(DEFAULT_COMENTARIOS)
.codigoPagamento(DEFAULT_CODIGO_PAGAMENTO);
re... | [
"protected abstract Entity createEntity();",
"EntityInstance createEntityInstance();",
"@Override\n protected void createEntity() {\n Company company = createCompany(1001);\n setEntity(company);\n }",
"public final Entity createEntity() {\n Entity entity = new Entity(this);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
not sure how packs will work yet... | @Override
public boolean save() {
String locationType = null;
if (itemLocation instanceof Location) {
locationType = "LOCATION";
String updateItem = "UPDATE ITEMSTATS SET EQUIPSLOT=null WHERE ITEMID=" + getId() + ";";
try {
SQLInterface.saveAction(updateItem);
} catch (SQLException e) {
... | [
"public void pack() {\n\t\n}",
"@Override\r\n\tpublic Packing packing() {\n\t\treturn pack;\r\n\t}",
"public void pack() {\n resize();\n }",
"void pack(float CENTER_ALIGNMENT) {\n //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\tpublic void packData(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the index of the first character after the operator | private int splitIntoOperatorAndValue( String value )
{
if( Str.isEmpty(value) ) return 0;
switch(value.charAt(0))
{
// Bug 40924, start
// case '=':
// Bug 40924, end
case '<':
case '>':
case '!':
break;
default:
... | [
"public static int findFirstPipeOperatorPosition(String subsequence) {\n\t\tBoolean isInSingleQuote = false;\n\t\tBoolean isInDoubleQuote = false;\n\t\tint firstPipeOpPos = -1;\n\t\tfor (int i = 0; i < subsequence.length(); i++){\n\t\t\tchar character = subsequence.charAt(i);\n\t\t\tif (character == '\\'') {\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
the characters blocking status is checked here | public void subtractHealth(double amount, String side) {
if (side.equalsIgnoreCase("right") && !fighterRight.isBlocking)
subtractRightHealth(amount);
if (side.equalsIgnoreCase("left") && !fighterLeft.isBlocking)
subtractLeftHealth(amount);
} | [
"public void proAcceptedCharReg(){\n\t}",
"public void checkWrittenCharacterLimit() {\n\t\tcommon.isElementDiplayed(essayAnswer);\n\t\twrittenLimitEssay = essayAnswer.getText();\n\t\taddedArr = writtenLimitEssay.split(\"\\\\W+\"); // addedArr[2] is showing\n\t\t\t\t\t\t\t\t\t\t\t\t\t// the number of characters\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a consultant pane with the given parameters | public ConsultantPanelOne(JFrame frame, Consultant consultant) {
// Initialize
this.consultant = consultant;
topFrame = frame;
activeUser = ( ( ExternalInvestors ) topFrame ).getAccountContainer().getActiveUser();
gameModel = ( ExternalInvestors ) topFrame;
//set panel's properties
setPreferredSize (new... | [
"public CreationPanel(PersonalDetails personalDetails) {\n initComponents();\n this.personalDetails = personalDetails;\n }",
"public void makeRetailerDetailPane() {\n\t\tretailerDetail=new JPanel(new GridLayout(2,2));\n\t\tretailerDetail_chart2a=new ChartPanel(\"Retailer: price and volume\", this... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public PushNotificationTokenNew findByUserIdAndToken(String userId, String token) {
PushNotificationTokenId id = new PushNotificationTokenId(userId, token);
PushNotificationTokenNew entity = pushNotificationTokenNewRepository.findOne(id);
return entity;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Make a List out of the array with Arrays.asList(), and call remove() on all the appropriate elements. Then call toArray() on the 'List' to make back into an array again. | public static int sumOfProduct (int[] arr1, int[] arr2, int n){
if (n == 0) {
return 0;
}
else {
return arr1[n-1] * arr2[n-1] + sumOfProduct(arr1, arr2, n-1);
}
} | [
"@SuppressWarnings(\"unchecked\")\n private static Object convertArray(List<Object> list) {\n if (!list.isEmpty() && list.get(0).equals(\"ArrayUnion\")) {\n return FieldValue.arrayUnion(\n ((List<Object>) convertArray(list.subList(1, list.size()))).toArray());\n } else if (!list.isEmpty() && li... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public Integer getId() {
return id;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Override of default stop function in actor. Prints a message to Terminal actor before shutting down. | @Override
public void postStop() {
printToTerminal( "Body Scanner " + stationNumber + " Closed" );
security.tell(new EndDay());
} | [
"public void stopActor()\n\t{\n\t\tcharger.Global.info( \"Actor stopped.\" );\n\t}",
"@Override\n public void stop() {\n // TODO: Implement functionality\n System.out.println(\"Stopping\");\n }",
"public Do stop();",
"public void stop(){\r\n\t\tthis.stop=true;\r\n\t\tSystem.out.println(\"Goodbye\");\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculate a distance measure between two bags. | public abstract double measure(Instance A, Instance B); | [
"public double calculateDistance(Object obj1, Object obj2);",
"private double calcDist(Cell cell1, Cell cell2)\r\n {\r\n int x1 = cell1.getX(); int x2 = cell2.getX();\r\n int y1 = cell1.getY(); int y2 = cell2.getY();\r\n int z1 = cell1.getZ(); int z2 = cell2.getZ();\r\n \r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
instanceLabels: instanceId > event code label targetIds: the set of instanceIds I am interested in (e.g. filtered to a subset that satisfies some requirements | public static void writeInstanceLabels(final ImmutableMap<Symbol, Symbol> instanceLabels, final File outfile) throws IOException {
final ImmutableList.Builder<String> outLines = ImmutableList.builder();
for(final Map.Entry<Symbol, Symbol> entry : instanceLabels.entrySet()) {
if(!entry.getValue().equalTo(... | [
"List<String> getTargetNamesByIds( @VelocityCheck int companyID, Set<Integer> targetIds);",
"public List<ProcessedInstance> reprocessBatchWithSourceLabels(List<ProcessedInstance> instances){\n return extractFeaturesFromBatch(instances.stream().map(i -> i.source).collect(Collectors.toList()));\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a proxy that is identical to this proxy, except for the locator cache timeout. | @Override
default DrinkMachinePrx ice_locatorCacheTimeout(int newTimeout)
{
return (DrinkMachinePrx)_ice_locatorCacheTimeout(newTimeout);
} | [
"public AbstractProxyCache createProxyCache()\n throws ConfigException\n {\n if (_proxyCache == null)\n _proxyCache = instantiateProxyCache();\n \n return _proxyCache;\n }",
"@Override\n default ChatSessionPrx ice_locatorCacheTimeout(int newTimeout)\n {\n return (ChatSessionPrx)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This signature isn't needed for this algorithm. | public void runAlgorithm() {
} | [
"public static void testSignature() {\n\t}",
"protected abstract String getSignatureAlgorithm();",
"protected void method_5557() {}",
"int getSignatureResult();",
"@Override\npublic boolean verify(String arg0, int arg1, PublicKey arg2) {\nreturn true;\n}",
"BigInteger getSignature();",
"private static v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This API is used for cleaning a document (asynchronously) | public com.squareup.okhttp.Call fileCleanGetAsync(Integer documentId, String apiKey, final ApiCallback<InlineResponse2009> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
... | [
"private void deleteDocument() throws ExecutionException, InterruptedException {\n ApiFuture<WriteResult> apiFuture = this.firestore.document(\"users/tom\").delete();\n WriteResult writeResult = apiFuture.get();\n logger.info(\"Update time: {}\", writeResult.getUpdateTime());\n }",
"void d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a short description of the servlet. | @Override
public String getServletInfo() {
return "Handles the login for the login page. ";
} | [
"public String getServletInfo()\n {\n return \"Short description\";\n }",
"public String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}",
"public String getServletInfo()\r\n {\r\n\treturn \"Short description\";\r\n }",
"@Override\n public String getServletInfo() {\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Evaluate the equality of Role class. | @Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof Role)) {
return false;
}
var that = (Role) o;
return Objects.equals(name, that.name);
} | [
"@Test\r\n\tpublic void testEqualsForDifferentClass() {\r\n\t\tassertFalse(myRole.equals(new StringBuilder()));\r\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof RoleType)) {\r\n return false;\r\n }\r\n RoleType other = (RoleType) object;\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
executes for logging out of the profile | private void registerUser() {
JsonObjectRequest jreq = new JsonObjectRequest(Request.Method.GET,
JSON_URL, null, new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
//define intent
Toast... | [
"public static void doLogout()\n {\n //TODO\n CONFIG.getConsoleOutput().printf(Config.SUCCESSFULLY_LOGGED_OUT);\n Config.setCurrentUser(null);\n }",
"public void logout(){\n\t\tkatanaService.sendPacket(new KatanaPacket(Opcode.C_LOGOUT));\n \tdoKillService();\n \tfinish();\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Method to Create ButtonGroup to toggle between RadioButtons and set checking to default | private void setupButtonGroup(){
ButtonGroup buttonGroup = new ButtonGroup();
buttonGroup.add(checkingRadio);
buttonGroup.add(savingsRadio);
checkingRadio.setSelected(true); //by setting as default this avoids null pointers
} | [
"private HBox setUpRadioButtons(){\n futureValue = new RadioButton(\"Future Value\");\n presentValue = new RadioButton(\"Present Value\");\n futureValue.setSelected(true);\n \n ToggleGroup tg = new ToggleGroup();\n futureValue.setToggleGroup(tg);\n presentValue.setTo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Whatsup with count.. may need an extra field in the schema | @SuppressWarnings("unused")
private void run() {
List<Tupel> edges = AlchemyEntitiesHandler.readAndParseTupelFile(graphFile);
List<Relation> relations = new ArrayList<Relation>();
for (Tupel t : edges) {
relations.add(new Relation(t.getNodeOne(), "", t.getNodeTwo(), "", t.getEdge(), "0.0", t.getPageTitles(),
... | [
"long countByExample(WeixinNewsitemExample example);",
"@DISPID(1610743811) //= 0x60020003. The runtime will prefer the VTID if present\r\n @VTID(10)\r\n int count();",
"int getBuidDataCount();",
"long countByExample(SmsAppChannelExample example);",
"java.lang.String getCount();",
"long countByExample(U... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
gets HashMap for creatures and their names, instance variable. | public HashMap<String, Creature> dbCreatures() {
return this.dbCreatures;
} | [
"private static void createMap() {\r\n for(Enemy e : enemies) {\r\n entityData.put(e.getName(), e);\r\n }\r\n \r\n for (Weapon w : weapons) {\r\n entityData.put(w.getName(), w);\r\n }\r\n \r\n for (Misc m : misc) {\r\n entit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Start the game clock | public void startClock(){
new Thread(clock).start();
} | [
"private void start() {\n\t\tDisplay.getDefault().syncExec(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tcurrentState.paintScreen(label);\n\t\t\t\tgameTimer.startTimer();\n\t\t\t}\n\t\t});\n\t}",
"private void startTime() {\n\t\tif((timerDisplay.running == false) && gameStarted) {\n\t\t\ttry {\n\t\t\t\ttim... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int32 reason = 2; | boolean hasReason(); | [
"public int getReason( )\r\n {\r\n return reason;\r\n }",
"int getFAILURE();",
"private AnswerReason(int aReasonCode) {\n reasonCode = aReasonCode;\n }",
"public AlarmReason get_alarm_reason()\r\n/* */ {\r\n/* 1001 */ return this.alarm_reason;\r\n/* */ }",
"int getFailOve... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests the getList() method | public void testGetList() throws Exception {
//empty database
List<SurgeryDataBean> list = dao.getList(1);
assertEquals(0, list.size());
//load one record
//gen.;
//gen.ovOphthalmologyData();
//list = dao.getList(117);
//assertEquals(1, list.size());
// should still return none when there are no... | [
"@Override\r\n public void test_list_in_list() {\n }",
"@Test\r\n public void testGetList() {\r\n System.out.println(\"getList\");\r\n ListOfOrganisme instance = new ListOfOrganisme();\r\n instance.addOrganisme(makeFood());\r\n instance.addOrganisme(makeFood());\r\n instanc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int32 subsampling_number = 5 [default = 1]; | public boolean hasSubsamplingNumber()
{
return ((bitField0_ & 0x00000010) == 0x00000010);
} | [
"public void setSampleSize(Integer size) \r\n\t{\r\n\t\t\r\n\t}",
"int getSamplingValue();",
"public abstract double getSampleSize();",
"@Override\r\n\tpublic void setSampling(boolean sampling)\r\n\t{\r\n\t\tthis.sampling = sampling;\r\n\t}",
"Parameter.SamplingState getSampling();",
"public void setReser... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the state for the native MediaSourceInterface. Maps boolean to either SourceState::kLive or SourceState::kEnded. | public void setState(boolean isLive) {
nativeSetState(nativeAndroidVideoTrackSource, isLive);
} | [
"public void setSource(boolean source) {\n isSource = source;\n if (source) {\n depotImageView.setImage(sourceSwitchImage);\n SoundManager.getInstance().setSoundEffect(SoundManager.DIALOG_SOUND);\n\n } else {\n depotImageView.setImage(originalImage);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Change the cost of devices involved in path, perform increase or decrease of cost | @Override
public void changeCost(Set<DeviceId> devices, Double rate, boolean incORdec) {
log.info("In change cost {}", rate);
CostOfLinks cl = new CostOfLinks();
long incDecCost;
Set<TopologyEdge> edges = topologyService.getGraph(
topologyService.currentTopology()).g... | [
"public void setPathCost(int cost) {\n\t\t\tthis.cost = cost;\n\t\t}",
"public void setCost(double newCost){ cost = newCost; }",
"void setCost();",
"public int getPathCost(){\n return pathCost;\n }",
"public void setCost(Double new_cost) {\r\n this.cost = new_cost;\r\n }",
"private voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public EleCase getCaseById(Integer id) {
String hql="from EleCase ec where id = "+id;
return (EleCase) this.getHibernateTemplate().find(hql).get(0);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor, constructing a new Solution based on the given values. | public Solution(boolean[] solution, double objectiveValue, double constraintValue) {
this.solution = solution;
this.objectiveValue = objectiveValue;
this.constraintValue = constraintValue;
} | [
"@Override\n public Solution newSolution()\n {\n Solution solution = new Solution(numberOfVariables, numberOfObjectives, numberOfConstraints);\n\n solution.setVariable(0, new RealVariable(0.3, 0.55)); // b\n solution.setVariable(1, new RealVariable(3, 6)); // L\n solution.setVariable(2, new RealVariab... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
determines what weapon to show based on Player's main and backup | private static Image weaponImage(Weapon wpn) {
Image weapon;
if (wpn instanceof Axe) {
weapon = new Image("/main/design/images/axe-angle.png", 300, 300, false, false);
} else if (wpn instanceof Spear) {
weapon = new Image("/main/design/images/spear-angle.png", 300, 300, f... | [
"public Weapon showWeapon()\n {\n int x;\n \n for ( x = 0; itemsHeld.get(x) != null; x++)\n {\n if(itemsHeld.get(x) instanceof Weapon)\n {\n break;\n }\n }\n \n return (Weapon) itemsHeld.get(x);\n }",
"private v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a Calendar in a GridPane | public Calendar(int month, int year, User user){
this.month = month;
this.year = year;
this.user = user;
populateCalendar(month, year);
} | [
"public GridPane addNewCalendarGrid() {\n\t\tGridPane grid = new GridPane();\n\t\tgrid.add(addDayLabels(), 7, 1);\n\t\tint year = model.getYear();\n\t\tint month = model.getMonth();\n\t\tgrid.add(changeCalBoxes(year, month), 7, 2);\n\t\tgrid.setAlignment(Pos.CENTER);\n\t\treturn grid;\n\t}",
"public void initiali... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that updates if a customer requires a replacement car. | @Override
public synchronized void setRequiresCar(String s, int i) {
requiresCar[i] = s;
updateLog();
} | [
"@Override\n\tpublic boolean updateCustomer(ICompany costomer) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean updateCustomer(Customer cus) {\n\t\treturn false;\n\t}",
"public boolean updCustomer(Customer c) {\n\t\treturn false;\r\n\t}",
"public Boolean rentCar(Car car){\r\n if (!car.isRented(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / / | void tryExpireEntries(long now) {
/* 2728 */ if (tryLock()) {
/* */ try {
/* 2730 */ expireEntries(now);
/* */ } finally {
/* 2732 */ unlock();
/* */ }
/* */ }
/* */ } | [
"private void calculatePaths() {\n\n\n }",
"public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the mob this represents. | public ResourceLocation getMob() {
return mob;
} | [
"public MOB getAuctioningMob();",
"public MOB getHighBidderMob();",
"public String getMobName(){return this.mobName;}",
"public String getMerekMobil() {\n\t\treturn merekMobil;\n\t}",
"public com.ronrytest.protobuf.lib.String.StringEntity getMobile() {\n if (mobileBuilder_ == null) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets value as the attribute value for FilledById. | public void setFilledById(String value) {
setAttributeInternal(FILLEDBYID, value);
} | [
"public void setValue(String value, String id) \n\t{\n\t\tif(isAssignablePrimitive(value)) {\n\t\t\tthis.value = value;\n\t\t} else if(isAssignableObject(value, id))\n\t\t{\n\t\t\tthis.value = value;\n\t\t}\n\t}",
"public void setFill(String value)\r\n\t{\r\n\t\tif (value == null){\r\n\t\t\tthrow new IllegalAttri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the _Fields constant that matches fieldId, or null if its not found. | public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // ERR
return ERR;
default:
return null;
}
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // COMPANY_TAG_IDS\n return COMPANY_TAG_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the points obtained with melds for the specified team. | public Integer getTeamMeldScore(int teamIndex) {
if (teamIndex < 0 || teamIndex >= teamCount) {
throw new IndexOutOfBoundsException("Invalid team index");
}
return meldScores.get(concatKey(teamIndex));
} | [
"int getTeamsPoints(Team team);",
"@Override\n public int getPointsForTeam(String TeamName){\n ArrayList<Match> games = this.calendar.getGames();\n int totalePunti = 0;\n for (int i = 0; i < games.size(); i++) {\n if(games.get(i).getPlayed() == true){\n if(TeamNa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create intent for picking a photo from the gallery | public void onPickPhoto(View view) {
Intent intent = new Intent(Intent.ACTION_PICK,
MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
// If you call startActivityForResult() using an intent that no app can handle, your app will crash.
// So as long as the result is not null, it's s... | [
"public void galleryIntent() {\n Intent intent = new Intent(Intent.ACTION_PICK,\r\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\r\n\r\n // If you call startActivityForResult() using an intent that no app can handle, your app will crash.\r\n // So as long as the result is not n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__DataSource__Group__8" $ANTLR start "rule__DataSource__Group__8__Impl" ../org.applause.lang.ui/srcgen/org/applause/lang/ui/contentassist/antlr/internal/InternalApplauseDsl.g:2644:1: rule__DataSource__Group__8__Impl : ( ( rule__DataSource__ResourceTypeAssignment_8 ) ) ; | public final void rule__DataSource__Group__8__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.applause.lang.ui/src-gen/org/applause/lang/ui/contentassist/antlr/internal/InternalApplauseDsl.g:2648:1: ( ( ( rule__DataSource__ResourceTypeAss... | [
"public final void rule__Rule__Group__8() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.webgme_mtl.ui/src-gen/org/xtext/example/webgme/ui/contentassist/antlr/internal/InternalMTL.g:1636:1: ( rule__Rule__Group__8__Impl ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Project KR. Created by masiukl on 06.08.2017. | public interface ReaderService extends IService<Reader> {
/**
* @param login login
* @return Reader matching the input
*/
Reader getByLogin(String login);
/**
* @param oldReader initial reader
* @param newReader updated info
*/
void update(Reader oldReader, Reader newRead... | [
"private static void getProjects() {\n\t\t\n\t}",
"PROJECT getPROJECT();",
"public static String getName(){ return project.getName(); }",
"@Override\n\tpublic List<Map<String, String>> project() {\n\t\tList<Map<String,String>> aa=new ArrayList<Map<String,String>>();\n\t\t\n\t\tList<String> n=caseDao.findStrin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Is this object is equal to x | @Override
public boolean equals(Object x) {
if(this == x) return true;
if(x == null) return false;
if(this.getClass() != x.getClass()) return false;
Date that = (Date) x;
return (this.year == that.year) && (this.month == that.month) && (this.day == that.day);
} | [
"public boolean equals(Object x)\n\t{\n\t\tGrid that = (Grid) x;\n\t\tfor(int i = 0; i < values.length; i++) {\n\t\t\tfor(int j = 0; j < values[0].length; j++) {\n\t\t\t\tif(that.values[i][j] != this.values[i][j]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean equal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by CodeGenerator on 2017/09/23. | public interface PhoneOfferService extends Service<PhoneOffer> {
} | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"public void mo5201a() {\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / | public void setCcName(String ccName)
/* */ {
/* 116 */ this.ccName = (ccName == null ? null : ccName.trim());
/* */ } | [
"public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\" )\\\\ (()/( ( )\\\\()) )\\\\ (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Defines a generic similarity function that could be used to determine how much similar are two instances | public interface SimilarityFunction {
public float compute(Multimap<String, String> first, Multimap<String, String> second);
public float getMaxValue();
public float getMinValue();
} | [
"abstract public double similarity(TextAnnotation ta1, TextAnnotation ta2);",
"public abstract double computeSimilarity(Node item1, Node item2);",
"IResult computeSimilarity(List<Node> list1, List<Node> list2);",
"abstract public float getSimilarity(SearchRecord record);",
"public abstract float getUnNormal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
SL 15642 return the template input value for alert_task | public String createMailMergeValueStringFromMap(
Map<String, String> templateMergeValueMap) {
StringBuilder stringBuilder = new StringBuilder("");
boolean isFirstKey = true;
if (templateMergeValueMap != null) {
Set<String> keySet = templateMergeValueMap.keySet();
for (String key : keySet) {
... | [
"public com.rightnow.ws.base.NamedID getTaskTemplate(){\r\n return localTaskTemplate;\r\n }",
"protected static String getTrigger(Task task) {\r\n\t\treturn task.getTrigger();\r\n\t}",
"private String getTask()\n {\n return \"Your task is to...\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtain the specified lock level upon the given object, implicitly checking whether the corresponding database entry still exists (throwing an OptimisticLockingFailureException if not found). | void lock(final Object entity, final LockMode lockMode) throws DataAccessException; | [
"long tryLock(String lockKey);",
"void lockAcquired(String lockName, int level, Object instance, TCObject tcobj);",
"Lock lockOrFail() throws SailLockedException;",
"LockMode getLockMode(Object id);",
"private void lockRow(OpenJPAStateManager sm, int timeout, int level) {\n // assert that the diction... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public static String usern = userName; | public Payment_Order() {
initComponents();
c = DBconnection.getConnection();
tableload();
payments();
IncrementId mf = new IncrementId();
String did = mf.setId("idpayment", "payment", "PAY");
lblPayID.setText(did);
} | [
"public String usernm() { return usernm; }",
"public String getUser_name() { return user_name; }",
"private String initUserNameValue() {\n //return GlassfishInstance.DEFAULT_ADMIN_NAME;\n return \"\";\n }",
"protected static String getUserName()\n {\n return loginUserName;\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
stop if outside the array | public int countBlob(char[][] blobs, int r, int c) {
if (r < 0 || r >= numRows || c < 0 || c >= numCols) {
return 0;
}
// stop if there's not an 'X' there
if (blobs[r][c] == ' ') {
return 0;
}
// blank out the 'X' and sum 1 (for the one just blanked out)
// and the result of the recursieve calls i... | [
"private boolean _isSubArrayLegal(int i, int j){\n return i > -1 && j < this._numberOfBoxes;\n }",
"@Override\n public boolean outOfBounds() {\n return false;\n }",
"@Override\r\n public boolean hasNext() {\r\n return ((array.length > index) && (array[index] != n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function is used to know if there is a landmine at a given position and level | private boolean positionIsLandmine(Position pos, int level){
Explosive explosive = getExplosives(level).get(pos) ;
return explosive != null && !explosive.isBomb() ;
} | [
"private final boolean islandCoord() {\n/* 866 */ this.rockLayer = Server.rockMesh;\n/* 867 */ this.topLayer = Server.surfaceMesh;\n/* */ \n/* 869 */ int minSize = Zones.worldTileSizeX / 15;\n/* 870 */ for (int i = 800; i >= minSize; i--) {\n/* */ \n/* 872 */ for (int ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Modifie le joueur courant. | public void setJoueur(Joueur jc) {
j=jc;
} | [
"public void faireCourir()\n {\n for (int i = 0; i < coureursTab.length; i++)\n {\n coureursTab[i].courir(Course.lancerDe());\n }\n }",
"public void setLeJoueur(Joueur joueur){\n Controle.joueur = joueur;\n ((FinQuizz)context).recupJ();\n }",
"public void s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert the selections parameter to a real corcode | String selectionsToCorcode( String text ) throws JSONException
{
String[] parts = selections.split(",");
STILDocument cc = new STILDocument();
int[] values = new int[parts.length];
for ( int i=0;i<parts.length;i++ )
values[i] = Integer.parseInt(parts[i]);
Arrays.s... | [
"String updatePCASelection(int[] selection);",
"void codCursoCapes();",
"public Object[] getSelectionValues()\n {\n return selectionValues_;\n }",
"public int getCor()\r\n\t{\r\n\t\tsample.fetchSample(amostraCor, 0);\r\n\t\treturn (int)amostraCor[0];\r\n\t}",
"public void setCor(String string) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This sets a text view to the current length and shows the maximum | public void onTextChanged(CharSequence s, int start, int before, int count) {
tvCharCount.setText(String.valueOf(s.length()) + " / " + MAX_TWEET_LENGTH);
} | [
"private void changeBufferSizeDisplay()\n {\n EditText bufferSizeDisplay = (EditText) findViewById(R.id.editText);\n bufferSizeDisplay.setText(String.format(\"%d\",BufferData.getSize()));\n }",
"private void updateMax(int currentLength){\r\n if (currentLength > max)\r\n max =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the TimeList association. | public void setTimeList(TimeList timeList) {
this.timeList = timeList;
} | [
"public void setListTime (java.lang.String listTime) {\n\t\tthis.listTime = listTime;\n\t}",
"public void setTripList(ArrayList<TripLockedTime> tripList) {\r\n \ttripLIST = tripList;\r\n }",
"public void setTime(LocalTime t) {\r\n\t\tfor(int i = 0; i < hands.length; i++)\r\n\t\t{\r\n\t\t\thands[i].setTime... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the given property for the given locale. If the value doesn't exist, returns null. | String getValueWithoutFallBack(String propertyName, Locale locale); | [
"public String getPropertyValue(Locale locale, String key) {\n String value = getUserProperty(locale).getProperty(key, null);\n\n if (value != null) {\n return value;\n }\n\n return getOriginalProperty(locale).getProperty(key, \"\");\n }",
"public static String getProperty(String resourceBundleN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a DTMF instance with the specified tone value. The method is private since one would only have to use predefined static instances. | private DTMFRtpTone(String value, byte code)
{
this.value = value;
this.code = code;
} | [
"private static void genTone() {\n Double samplePeriod = 2 * Math.PI / freqOfTone * sampleRate;\n int i = 0;\n while (i < numSamples) {\n sample[i] = Math.sin(((2.0 * Math.PI) * (double) (i + phaseCount) / (sampleRate / freqOfTone)));\n i++;\n }\n //the phase... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a transition to the state | public void addTransition(long input, State nextState){
inputs.add(input);
if(nextState!=this){ // increase transition count for both, this and nextState
nextState.addIngoingTransition(this);
if(transitionCount.get(nextState)==null){
transitionCount.put(nextState, 1);
}
transitionCount.put(next... | [
"public void addTransition(int from, int to, char trans) throws InvalidStateException, MissingStateException, NonDeterministicException;",
"public void addTransition (final Transition t) {\n\t\tthis.transitionList.addElement(t);\r\n\t}",
"@Override\r\n public void add(StateTransition transition) {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
a default constructor that initialize the tableSize to 10, which is the initial capacity of table(hashTableArray) | public HashTableMap() { // with default capacity = 10
this(10); //construct by calling the other constructor using 10 as tableSize
} | [
"public HashTable() {\n\n // Assign values to field members\n this.numKeys = 0;\n this.tableSize = 11;\n this.loadFactorThreshold = 0.75;\n this.loadFactor = 0;\n\n // Initialize table with bucket space for arrays.\n this.table = new Object[this.tableSize];\n }",
"public HashTable() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the bitmap of the modified image of the sheet music used by the object. | public Bitmap getImageOfMusic() { return imageOfMusic; } | [
"public Bitmap getSoundicon() \t\t\t\t{ return bitmaps[15]; }",
"public Bitmap getSoundicondisabled() \t\t{ return bitmaps[16]; }",
"@Override\n public Bitmap getBitmap() {\n return bitmap;\n }",
"Bitmap getBitmap() {\n return mBitmap;\n }",
"@Override\n public Bitm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int32 duration = 2; | public boolean hasDuration() {
return ((bitField0_ & 0x00000002) == 0x00000002);
} | [
"public void setDuration(int duration){ this.duration = duration; }",
"public abstract long getDuration();",
"int getDurationS();",
"@DISPID(4109) //= 0x100d. The runtime will prefer the VTID if present\n @VTID(15)\n int duration();",
"public void setDuration(long value) {\r\n this.duration = value... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the tutorial activity for the player. | public static TutorialActivity create(Player player) {
TutorialActivity activity = new TutorialActivity(player);
player.runEnergy = 100;
player.send(new SendSpecialAmount());
player.movement.setRunningToggled(false);
player.playerAssistant.setSidebar(true);
player.setVisi... | [
"public void tutorial(View view) {\r\n Intent tutorial = new Intent(this, TutorialActivity.class);\r\n startActivity(tutorial);\r\n }",
"public void goToTutorial(View view) {\n \tIntent intent = new Intent(this, Tutorial.class);\n \tstartActivity(intent);\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for the producer variable | public void setMessageDataProducerVariable(AeVariableDef aDef)
{
mProducerVariable = aDef;
} | [
"public void setProducer(String producer)\n {\n this.producer = producer;\n }",
"@SuppressWarnings({\"rawtypes\", \"unchecked\"})\n public void setProducer(Bean producer) {\n this.producer = producer;\n }",
"@JsonSetter(\"producer\")\r\n public void setProducer (String v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle navigation view item clicks here. | @SuppressWarnings("StatementWithEmptyBody")
@Override
@NonNull
public boolean onNavigationItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.nav_home) {
Intent intent = new Intent(Miniweb.this, MainActivity.class);
startActivity(intent);
... | [
"void onNavigationItemClick(int item);",
"public void ClickItem(View view){\n MainActivity.redirectActivity(this, item.class);\n }",
"@Override\n public void clickitem(View view, final int position) {\n\n }",
"@Override\n publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
HIDE SOFT KEYS AND ENBALE FULL SCREEN | @Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
if (hasFocus) {
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIG... | [
"public void hideHelpSreen() {\n\t\thelpScreen = false;\n\t\tremoveClickables();\n\t\thideContents();\n\t\tshowContents();\n\t\tshowEscapeScreen();\n\t\taddClickables();\n\t\tplay.stopSound(\"sounds\", \"Smooth Lovin.mp3\");\n\t}",
"public void hideKeyboard() {\n\t}",
"private void hideSoftwareKeyboard() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this "hack" is necessary so the cell properly resizes upon change in its contents Platform.runLater(filesTableView::refresh); | @Override
protected VBox computeValue() {
Label stateLabel = new Label(fileInfo.getState().toString());
if (fileInfo.getState() == FilesStateProperties.FileState.DOWNLOADING) {
Label speedLabel = new Label(Util.formatSpeed(f... | [
"private void updateSyncColSize() {\n\t\t\n\t\tif (!fIsCreated)\n\t\t\treturn;\n\t\t\n\t\tPropertyChangeEvent event = new PropertyChangeEvent(this, AbstractAsyncTableRendering.PROPERTY_COL_SIZE, null, new Integer(fColumnSize));\n\t\tfirePropertyChangedEvent(event);\n\t}",
"protected void updateSize() {\n/* 1848 *... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an instance of the surface property that refracts light like a glens. This constructor is suitable for a homogeneous glens, with infinite focal lengths. | public GlensHologram_old(
Vector3D opticalAxisDirectionPos,
Vector3D pointOnGlens,
Vector3D nodalDirection,
double fNegOverFPos,
double transmissionCoefficient,
boolean shadowThrowing
)
{
super(transmissionCoefficient, shadowThrowing);
setParameters(
opticalAxisDirectionPos,
pointOn... | [
"public SurfaceProperties() {\n this(0.0d, 1.0d);\n }",
"public DirectionalLight()\r\n {\r\n this(Color.WHITE, new Vector());\r\n }",
"void GL_CreateSurfaceLightmap(msurface_t surf)\n \t{\n \t\tint smax, tmax;\n \t\tIntBuffer base;\n \n \t\tif ( (surf.flags & (Defines.SURF_DRAWSKY | Defines.SUR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The engine is going to do a GC, let's force a Java GC so that we can reclaim more COM objects. TODO: This might increase latency... | public void ReportGC (boolean bStarting) {
if (bStarting) {
System.gc();
System.runFinalization();
}
} | [
"public void collectGarbage()\r\n {\r\n \r\n collectGarbage_0(nativeObj);\r\n \r\n return;\r\n }",
"private static void garbageCollection() {\n\t}",
"private static void releaseUGpointers() {\r\n\r\n System.out.println(\"JVMmanager.releaseUGpointers()\");\r\n// S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the hasEnabledOwnerAccount attribute of the Revenue object | public boolean getHasEnabledOwnerAccount() {
return hasEnabledOwnerAccount;
} | [
"public boolean getAccountEnabled() {\n return accountEnabled;\n }",
"public Boolean getAccountEnabled() {\n if (accountEnabled == null) {\n accountEnabled = true;\n }\n\n return accountEnabled;\n }",
"public String getOwnerAccount();",
"public Account getOwnerAccount() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A list of the scripts which constitute this library. | public ElementList<ScriptRef> getScripts() {
return new ElementList<ScriptRef>(json.get("scripts").getAsJsonArray()) {
@Override
protected ScriptRef basicGet(JsonArray array, int index) {
return new ScriptRef(array.get(index).getAsJsonObject());
}
};
} | [
"public IScriptDescriptor[] getScripts() {\r\n\t\treturn scripts.toArray(new IScriptDescriptor[0]);\r\n\t}",
"public Script[] getScripts() {\n Script[] scriptsArr = new Script[scripts.size()];\n scripts.copyInto(scriptsArr);\n\n return scriptsArr;\n }",
"public static Set<String> getEnabledScr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the directId value for this CardCreationReqBean. | public java.lang.String getDirectId() {
return directId;
} | [
"public java.lang.String getIDCardNo() {\n return IDCardNo;\n }",
"public String getIdcardNo() {\r\n\t\treturn idcardNo;\r\n\t}",
"public String getPhysicalCardId() {\r\n return (String) getAttributeInternal(PHYSICALCARDID);\r\n }",
"public Long getIdCard() {\n return idCard;\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Get the dunnes details from the firebase database and save into an array list. Used for to compare the values from the user. | public void getDunnes(){
listDunnes = new ArrayList<>();
refDunnes.orderByKey().addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
for(DataSnapshot ds : dataSnapshot.getChildren()){
... | [
"public void fetchData(){\n\n potholesDetails = new ArrayList<>();\n databaseReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot snapshot) {\n\n for (DataSnapshot dataSnapshot : snapshot.getChildren()) {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parse a scope token as memberofgroups | @Nonnull
public static MemberOfGroupsScopeToken parse(String scopeToken) {
if (!accepts(scopeToken)) {
throw new IllegalArgumentException("Not a valid member-of-groups scope token:" + scopeToken);
}
String[] groupNames = scopeToken.substring(PREFIX.length()).split(GROUP_DELIMITER... | [
"public List<AST> manageToken(Matcher matcher);",
"public final boolean isGroup() {\n return this instanceof EbnfGroupParserToken;\n }",
"public List<FormElement> getPropertyGroupForm(String token, String grpName) throws ParseException, IOException, AccessDeniedException,\n\t\t\tRepositoryException, D... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int64 time = 2; | public long getTime() {
return time_;
} | [
"public int getTime() { return t; }",
"long getAtime();",
"public float timint() { return timint; }",
"public int getTime() {\n return timeValue;\n }",
"public int getTime() {\n return (int) (value >> 32);\n }",
"public static void setTime(int time)\n {\n myTime=time;\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the sort order of the tag values. | public int[] getOrder() {
return this.order;
} | [
"protected Comparator<String> getTagNameSortOrder()\r\n\t{\r\n\t\tint sortOrder = getPreferences().getInt(\r\n\t\t\tPrefKeys.SORTORDER_TAG, TagItemAdapter.getDefaultSortOrder());\r\n\t\tComparator<String> result = null;\r\n\r\n\t\tswitch(sortOrder)\r\n\t\t{\r\n\t\t\tcase TagItemAdapter.SortOrder.BY_TITLE_ASC:\r\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the number of vertices | public int nodeCount() {
return nodeValues.length;
} | [
"public int numberOfVertices()\n {\n return vertices.size();\n }",
"public int vertexCount(){\r\n\t\treturn vertices.length;\r\n\t}",
"public int numVertices() {\n return vertices.size();\n }",
"public int getNumOfVertices()\n {\n return numOfVertices;\n }",
"public int getNumVerti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Build call for getAccountBeneficiaries | public com.squareup.okhttp.Call getAccountBeneficiariesCall(String accountId, String xFapiFinancialId, String authorization, String xFapiCustomerLastLoggedTime, String xFapiCustomerIpAddress, String xFapiInteractionId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressReque... | [
"public List<Beneficary> findBeneficaryAccountByNo(int accNo) {\n\t\treturn bankingdao.findBeneficaryAccountByNo(accNo);\n\t}",
"public LitemallBenefitExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public List<ContractsGrantsAwardInvoiceAccountInformation> getActiveAwardInvoiceAccounts... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .IM.BaseDefine.BriefUserInfo user_list = 5; | public java.util.List<im.jizhu.com.loginmodule.protobuf.IMBaseDefine.BriefUserInfo> getUserListList() {
return java.util.Collections.unmodifiableList(userList_);
} | [
"com.zhangwuji.im.protobuf.IMBaseDefine.UserInfo getUserInfo();",
"public com.mogujie.tt.protobuf.IMBaseDefine.UserInfoOrBuilder getUserListOrBuilder(\n int index) {\n if (userListBuilder_ == null) {\n return userList_.get(index); } else {\n return userListBuilder_.getMessageOrB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ JADX INFO: super call moved to the top of the method (can break code semantics) | public h(rc rcVar, k8 k8Var) {
super(true);
this.f3298j = rcVar;
this.f3297i = k8Var;
} | [
"public void method_5753() {\r\n super();\r\n }",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void parentMethod() throws Exception {\n\t\tsuper.parentMethod();\r\n\t}",
"@Override\n }",
"protected void method_5557() {}",
"protected void d()\r\n/* 49... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
class = template object = specific instance of the class | public static void main(String[] args){
int var1 = 5;
double var2 = 3.65;
//the above is similar when creating object
//we have to tell Java what TYPE (notice name same as class, because this object is instance of said class) of object we're creating
aircraft cessna172 = new a... | [
"public T caseTemplateInstance(TemplateInstance object) {\r\n\t\treturn null;\r\n\t}",
"protected Template getObjectTemplate1 (Map args)\n {\n\treturn myFullTemplate;\n }",
"<T> T instantiate(Class<T> clazz);",
"private T createObject()\n {\n T newRef = null;\n\n try\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
An overloading constructor with a special date parameter. | public Event(String description, LocalDate todoDate) {
super(description);
this.todoDate = todoDate;
} | [
"public MyDate() {\n\t\tthis(new Date());\n\t}",
"protected DateRecord(int c, int r, Date d)\r\n/* 28: */ {\r\n/* 29:103 */ this(c, r, d, defaultDateFormat, false);\r\n/* 30: */ }",
"public Date(Date date)\r\n {\r\n this.month = date.month;\r\n this.day = date.day;\r\n t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
update the view state | @Override
public void onClick(final View v) {
updateViewState(holder.baseLayout, position);
} | [
"public void updateView(){\n\t\tview.updateView();\n\t}",
"@Override\n public void updateView() {\n view.update();\n }",
"protected void update()\n {\n if (view != null)\n view.updateView();\n }",
"private void updateViewState() {\r\n final String label = updateViewer();\r\n EclipseUI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adding a comment in line number 13 | public void Divided(int a, int b){
System.out.println(a/b);
} | [
"public void addComment(String comment) throws IOException {\n/* 2403 */ if (comment.indexOf('\\n') >= 0 || comment.indexOf('\\r') >= 0)\n/* */ {\n/* 2405 */ throw new IllegalArgumentException(\"comment should not include a newline\");\n/* */ }\n/* 2407 */ this.output.write(37);\n/* ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
bytes span_id = 2 [(.gogoproto.nullable) = false, (.gogoproto.customtype) = "SpanID", (.gogoproto.customname) = "SpanID"]; | public Builder setSpanId(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setSpanId(value);
return this;
} | [
"public java.lang.String getSpanId() {\n java.lang.Object ref = spanId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sends a heartbeat to a specific member. | private CompletableFuture<Void> heartbeat(Member member, List<Member> members, CompletableFuture<Void> future) {
HeartbeatRequest request = HeartbeatRequest.builder()
.withMember(cluster.member().id())
.build();
LOGGER.debug("Sending {} to {}", request, member);
member.<HeartbeatRequest, Heartbe... | [
"@Override\n public void heartbeat(Heartbeat heartbeat) {\n \n }",
"private void sendHeartbeat(WebSocket websocket) {\n\t\tJsonPacket heartbeatPacket = new JsonPacket();\n\t\theartbeatPacket.put(\"op\", GatewayOpcode.HEARTBEAT.getOpcode());\n\t\theartbeatPacket.put... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get information about the transaction ID, including the last applied transaction ID and the most recent checkpoint's transaction ID. | String getJournalTransactionInfo(); | [
"public long getTransactionId() {\n return transactionId;\n }",
"public int getTransactionId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Does list contains x? | public boolean contains(T x)
{
return containsWithSpan(x,new int[maxLevel]);
} | [
"public boolean contains(Expression elem) {\r\n return list.contains(elem);\r\n }",
"public boolean elementIsPresentIn(Object element, List aList){\n return aList.contains(element);\n }",
"public boolean isIn(int x) {\n\t\treturn els.indexOf(x) >= 0; // could also use contains()\n\t}",
"@Overrid... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
solve puzzle by repeatedly performing algorithms | public void solvePuzzle(JMenuItem hs, JMenuItem s, JMenuItem lc, JMenuItem np) {
boolean isSolved = false;
int count = 0;
while(!isSolved) {
hs.doClick();
s.doClick();
lc.doClick();
np.doClick();
for(int i = 0; i < GRID_SIZE*3; i++) {
for(int j = 0; j < GRID_SIZE*3; j++) {
if(nineGrid[i][j... | [
"void solve(Puzzle puzzle);",
"public void solve(){\n //Find and mark all constant members of the grid\n this.setConstants();\n //Fill the possibility array corresponding to each empty slot on the grid with true values \n this.fillPMatrixTrue();\n //Fill in possibility array with respect ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when a new generation has been generated. | void newGeneration (World world); | [
"protected abstract void nextGeneration();",
"public void generate() {\n \tnew GenerationDialog();\n }",
"abstract void prepareNextGeneration();",
"public void generate() {\n btGenerate().push();\n }",
"@Override\n public int getGeneration() {\n return generation;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
// The attributes over which comparison will be made | public List<IAttribute<? extends IValue>> getAttributes() {
return attributes;
} | [
"protected boolean compareAttrs(Attributes attrs1, Attributes attrs2)\n throws NamingException {\n if (attrs1 == null || attrs2 == null\n || (attrs1.size() != attrs2.size())) {\n return false;\n }\n NamingEnumeration ne = attrs1.getAll();\n while (ne.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public Boolean visit(MathBinaryOp binaryOp, MySymbolTable d) {
return binaryOp.getFirstOperand().accept(this, d) && binaryOp.getSecondOperand().accept(this, d);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |