query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel4 = new javax.swing.JPanel();
jPanel2 = new javax.swing.JPanel();
applyCellChangesCheckBox = new javax.swing.JCheckBox();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73191524",
"0.7290383",
"0.7290383",
"0.7290383",
"0.7286656",
"0.72480965",
"0.72141695",
"0.72080517",
"0.7195647",
"0.7190378",
"0.71841127",
"0.71591616",
"0.71478844",
"0.7093131",
"0.70816",
"0.70577854",
"0.6987355",
"0.69769996",
"0.69551086",
"0.69545007",
"0.6945... | 0.0 | -1 |
End of variables declaration//GENEND:variables | public javax.swing.JCheckBox getApplyCellChangesCheckBox() {
return applyCellChangesCheckBox;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n pu... | [
"0.6359434",
"0.6280371",
"0.61868024",
"0.6094568",
"0.60925734",
"0.6071678",
"0.6052686",
"0.60522056",
"0.6003249",
"0.59887564",
"0.59705925",
"0.59680873",
"0.5967989",
"0.5965816",
"0.5962006",
"0.5942372",
"0.5909877",
"0.5896588",
"0.5891321",
"0.5882983",
"0.5881482... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
int[]w=In.readInts("https://algs4.cs.princeton.edu/11model/largeW.txt");
In.readInts(args[0]);
StaticSETofInts set=new StaticSETofInts(w);
while (!StdIn.isEmpty()) {
int key=StdIn.readInt();
if (!set.contains(key)) {
StdOut.println(key);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
user service Created by fuzq on 17/7/6. | public interface UserService extends BaseService {
ServiceResultHander getPage(int pn, String name);
ServiceResultHander insert(User user);
ServiceResultHander update(Integer id, String name, Integer age);
ServiceResultHander delete(Integer id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface UserService {\n\n //创建一个用户\n public void createUser(Sysuser sysuser);\n //修改用户信息\n public void saveUser(Sysuser sysuser);\n\n //根据传入的用户信息查询用户主要用户名和密码,返回list<map>\n public List<Map<String,Object>> signIn(Sysuser sysuser);\n\n //根据传入的用户信息查询用户主要用户名和密码,返回list<Sysuser>\n public ... | [
"0.7147196",
"0.70014113",
"0.68696004",
"0.68249965",
"0.681545",
"0.6756421",
"0.6720694",
"0.66969204",
"0.66680056",
"0.66195464",
"0.6614376",
"0.6613077",
"0.66128767",
"0.66128767",
"0.66128767",
"0.6600997",
"0.6580437",
"0.65402406",
"0.6538491",
"0.6528872",
"0.6524... | 0.0 | -1 |
We try to get the players configuration from last time | @Override
public void onEnable() {
log.info("Loading players file");
try {
players = this.load(PLAYERS_CONF_PATH);
} catch (Exception e) {
}
if (players == null) {
log.info("players == null, creating Map");
players = new HashMap<String, Pla... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public PlayerConfig getPlayerConfig(){\n outObject = \"getPlayerConfig\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n try {\n inObject = (PlayerConfig) in.readObject();\n } catch (IOException | ClassNotFound... | [
"0.61825883",
"0.61688405",
"0.59623015",
"0.58741397",
"0.57406324",
"0.5644512",
"0.5626778",
"0.55317974",
"0.5490031",
"0.54791164",
"0.54567945",
"0.54477775",
"0.5441126",
"0.54291683",
"0.54230756",
"0.5422074",
"0.541756",
"0.5414876",
"0.5406209",
"0.53869885",
"0.53... | 0.49920505 | 59 |
Get the Map(UserName, Map(configName, object)) | public static Map<String, PlayerConfig> getPlayers() {
return players;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Map<String, User> getUsers() {\n Map<String, User> users = new HashMap<String, User>();\n\n User userOne = new User(\"one\",\"1\");\n User userTwo = new User(\"two\",\"2\");\n\n users.put(userOne.getName(), userOne);\n users.put(userTwo.getName(), userTwo);\n\n ... | [
"0.6427255",
"0.6414585",
"0.63940984",
"0.6386048",
"0.6374765",
"0.6338859",
"0.6286635",
"0.622289",
"0.6215324",
"0.62104166",
"0.61712325",
"0.61484784",
"0.60990745",
"0.608458",
"0.6004767",
"0.5986441",
"0.5970495",
"0.5925035",
"0.5916905",
"0.5877257",
"0.5869219",
... | 0.0 | -1 |
/ / / / / | public ManagedHttpClientConnectionFactory(HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory) {
/* 96 */ this(requestWriterFactory, responseParserFactory, null, null);
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void divide() {\n\t\t\n\t}",
"private int parent(int i){return (i-1)/2;}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public void gored() {\n\t\t\n\t}",
"public static void bottomHalf() {\n\n ... | [
"0.5654086",
"0.5282051",
"0.5270874",
"0.5268489",
"0.5230159",
"0.5229372",
"0.5205559",
"0.51923394",
"0.51524484",
"0.50993294",
"0.50948834",
"0.5071109",
"0.5043058",
"0.5009983",
"0.5006536",
"0.49739555",
"0.49691963",
"0.4959123",
"0.49568397",
"0.49425906",
"0.49421... | 0.0 | -1 |
No promise on order < solution.size()1. Use carefully | void boxContentFill(Array99Compute computeContents, int order){
Array99 solution = computeContents.solutions.get(order);
for (int index=0;index<81;index++){
int temp = solution.getContent(index);
temp = Array99Mother.findNumber(temp);
this.setCellNumber(index,temp+1);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setSolution(ArrayList<Pair> order) {\n for (int i = 0; i < order.size(); i++) {\n currentSol.set(order.get(i).index, 1);\n }\n }",
"private void validOrderResult() {\n TreeNode currentTreeNode = treeLeaf;\n TreeNode orderTreeNode = null;\n while (!(cu... | [
"0.64073485",
"0.57313406",
"0.56960976",
"0.5690505",
"0.56681913",
"0.5640321",
"0.5637767",
"0.5602559",
"0.5585022",
"0.55776083",
"0.55650353",
"0.5527866",
"0.5484728",
"0.542512",
"0.5379713",
"0.53645116",
"0.5357779",
"0.5346574",
"0.533268",
"0.53151953",
"0.5306813... | 0.0 | -1 |
Created by taylor on 12/18/16. | public interface TodoPresenter extends BaseListPresenter<TodoView> {
Item createItem(String name);
void completeItem(Item item, int position);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n public void perish() {\n \n }",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private void m50366E() {\n }",
... | [
"0.5730765",
"0.5705413",
"0.5630205",
"0.5595633",
"0.5559497",
"0.55334586",
"0.5520913",
"0.5516857",
"0.54759717",
"0.5466684",
"0.54615885",
"0.54615885",
"0.54437083",
"0.544147",
"0.5441365",
"0.5429972",
"0.5412962",
"0.53844684",
"0.5377189",
"0.5322561",
"0.5321769"... | 0.0 | -1 |
Convert hex string to byte[] | public static byte[] hexStringToBytes(String hexString) {
if (hexString == null || hexString.equals("")) {
return null;
}
hexString = hexString.toUpperCase();
int length = hexString.length() / 2;
char[] hexChars = hexString.toCharArray();
byte[] d = new byte[l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static byte[] fromHex(String hex) {\n byte[] bytes = new byte[hex.length() / 2];\n for (int i = 0; i < bytes.length; i++) {\n bytes[i] = (byte) Integer.parseInt(hex.substring(2 * i, 2 * i + 2), 16);\n }\n return bytes;\n }",
"public static byte[] fromHex(String h... | [
"0.8038169",
"0.799736",
"0.7987502",
"0.7959192",
"0.79075354",
"0.78710693",
"0.7846612",
"0.7845528",
"0.7838391",
"0.7838175",
"0.7813091",
"0.7812218",
"0.7778942",
"0.7647208",
"0.76060516",
"0.7549759",
"0.75265247",
"0.7515443",
"0.74980223",
"0.7467007",
"0.7463343",... | 0.72075164 | 40 |
Convert char to byte | private static byte charToByte(char c) {
return (byte) "0123456789ABCDEF".indexOf(c);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static byte charToByte(char c) {\n\t\treturn (byte) \"0123456789ABCDEF\".indexOf(c);\n\t}",
"private static byte charToByte(char c) {\r\n\t\treturn (byte) \"0123456789ABCDEF\".indexOf(c);\r\n\t}",
"public byte[] charToByte(char char1, String encoding);",
"private static byte charToByte(char c) {\n ... | [
"0.78342247",
"0.78290373",
"0.7714342",
"0.75176287",
"0.71069795",
"0.6991925",
"0.65177435",
"0.63550323",
"0.6307373",
"0.6303687",
"0.62804484",
"0.62684244",
"0.62092304",
"0.6108648",
"0.6070187",
"0.59423536",
"0.59309584",
"0.59102666",
"0.59092975",
"0.5893046",
"0.... | 0.78358483 | 1 |
TODO Autogenerated method stub | @Override
public boolean createApplicant(ApplicantEntity applicantEntity) {
entityManager.persist(applicantEntity);
return false;
} | {
"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 | @SuppressWarnings("unchecked")
@Override
public List<ApplicantEntity> getApplicantList() {
List<ApplicantEntity> applicantList = new ArrayList<>();
StringBuilder builder = new StringBuilder("from ApplicantEntity");
Query statement = entityManager.createQuery(builder.toString());
applicantList = statement.getR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean updateApplicant(ApplicantEntity applicantEntity) {
entityManager.merge(applicantEntity);
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean deleteApplicant(int id) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
size of the job directory on disk | public Long getSize(Job job) {
File dir = getFileDir(job);
if (dir != null && dir.exists()) {
return FileUtils.sizeOfDirectory(dir);
} else {
return 0L;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getSize() throws FileSystemException;",
"public long size(String path);",
"Long diskSizeBytes();",
"public long getFileSize();",
"public long getFileSize();",
"public long getSize()\n\t{\n\t\treturn file.length() ;\n\t}",
"long getFileSize();",
"long getSize() throws IOException;",
"long getS... | [
"0.716032",
"0.70666945",
"0.6861767",
"0.6841801",
"0.6841801",
"0.67235273",
"0.6682264",
"0.66661555",
"0.66466707",
"0.658743",
"0.65864664",
"0.658432",
"0.6549602",
"0.65178657",
"0.6492777",
"0.6465259",
"0.64420414",
"0.64420414",
"0.64420414",
"0.64420414",
"0.643771... | 0.79629505 | 0 |
downloads results of the job to the local storage | public Boolean downloadResults(Job job) {
if (job.getUwsJob() == null || job.getUwsJob().getResults() == null) {
return false;
}
File results = new File(getFileDir(job), "results.zip");
Boolean result;
try {
result = Toolbox.downloadFile(job.getUwsJob().ge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void download(SearchResult result, String downloadPath);",
"public void download() {\n }",
"default void download(SearchResult result) {\n download(result, \".\");\n }",
"public boolean download(int jid, Job job){\r\n\t\ttry {\r\n\t\t\tbyte[] tmp =null;\r\n\t\t\ttmp = this.fileHanler.downloadFil... | [
"0.6836547",
"0.638821",
"0.6260466",
"0.62435615",
"0.6060234",
"0.60545707",
"0.60439634",
"0.60293597",
"0.6012008",
"0.5997884",
"0.59946954",
"0.5990547",
"0.59405255",
"0.5824927",
"0.5822485",
"0.5821124",
"0.5786213",
"0.57141155",
"0.56965303",
"0.56697005",
"0.56640... | 0.6511268 | 1 |
size of the total disk space used by the useraccount | public Long getSize(UserAccount user) {
Long sum = 0L;
for (Job j : userJobList(user)) {
sum += getSize(j);
}
return sum;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Long diskSizeBytes();",
"long getTotalFreeSpaceInBytes();",
"long getTotalFreeSpaceInBytes();",
"Integer diskSizeGB();",
"@ApiModelProperty(required = true, value = \"Amount of disk space used by the volume (in bytes). This information is only available for volumes created with the `\\\"local\\\"` volume d... | [
"0.7914949",
"0.7761727",
"0.7761727",
"0.76436156",
"0.7343711",
"0.7062444",
"0.7062444",
"0.69899577",
"0.69899577",
"0.69744843",
"0.6929671",
"0.6895179",
"0.68744916",
"0.685677",
"0.68077546",
"0.6755924",
"0.6672534",
"0.6671447",
"0.6661717",
"0.6626078",
"0.6618898"... | 0.6640209 | 19 |
sends results of the job to the email set in the job | public void sendResults(Job job) {
if (job.getResultsEmail() == null) {
return;
}
Message message = new MimeMessage(mailSession);
try {
message.addRecipient(Message.RecipientType.TO, new InternetAddress(job.getResultsEmail()));
message.setFrom();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void sendEmail(Job job, String email);",
"private static void mailResults(String experimentID, String content) {\r\n }",
"public void onFinish(ISuite arg0) {\n\t\tMonitoringMail mail=new MonitoringMail();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmessageBody = \"http://\"+InetAddress.getLocalHost().getHostAddress()+\":80... | [
"0.7626754",
"0.6747886",
"0.66603893",
"0.63554496",
"0.63344204",
"0.633012",
"0.6263829",
"0.61632544",
"0.6140394",
"0.6095691",
"0.6079678",
"0.5991952",
"0.59752756",
"0.59740174",
"0.5957762",
"0.58962613",
"0.58918726",
"0.5890533",
"0.5876448",
"0.5870792",
"0.586962... | 0.7753123 | 0 |
this method run asynchronously to start post process scripts for a job requires java 7 | @Asynchronous
public void postProcess(Job job) {
String jobScripts = scriptsDir+"/"+job.getJobType();
logger.log(Level.INFO, "starting post-process of job, scripts folder: {0} ", jobScripts);
File jobScriptsDir = new File(jobScripts);
if (!jobScriptsDir.exists() || !jobScriptsDir.isD... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void run() {\n\t\tUtils.executeAndWaitForCommand(this.getHMetisExec());\n\t}",
"@Override\r\n public void asyncExecute(String script)\r\n {\n\r\n }",
"protected void execute() {\n\t\t//execution handled by pid thread\n\t}",
"public void execute() {\n\t\tlaunch();\n\t}",
"@Ov... | [
"0.5883405",
"0.5712868",
"0.56945425",
"0.56260484",
"0.5612927",
"0.5592942",
"0.5592942",
"0.5590877",
"0.5590877",
"0.5590877",
"0.5590877",
"0.5590877",
"0.5590877",
"0.5590877",
"0.55804545",
"0.557874",
"0.5577259",
"0.55640835",
"0.5537286",
"0.551738",
"0.5430068",
... | 0.66247046 | 0 |
store the location name in fulltextsearch enabled table... | public long insertLocation(String locationName, String type,
String longitude, String latitude, String accuracy, String color) {
ContentValues values = new ContentValues();
values.put(LOCATION_NAMES_TABLE, locationName);
long rowId = 0;
// TODO: SB causes errors on htc...
// rowId = getDB().insert(L... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buildLocation() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CREATE TABLE IF NOT EXISTS location (location_name\"\n + \" TEXT, lat REAL, lon REAL PRIMARY KEY (location_name));\")) {\n prep.executeUpdate();\n } catch (final SQLException e)... | [
"0.60109717",
"0.5764547",
"0.55909646",
"0.5493374",
"0.5447778",
"0.54156846",
"0.5409402",
"0.5409402",
"0.5406696",
"0.5406451",
"0.5375841",
"0.5369193",
"0.5353653",
"0.5344284",
"0.5334666",
"0.53140134",
"0.52829534",
"0.52707165",
"0.52602386",
"0.52583516",
"0.52242... | 0.0 | -1 |
This class supports the registration of widgets and the commands they generate. This can then be used by a program to set values and states of 'commands', instead of 'widgets'. This is usefull because many programs have no knowledge of what widgets generate what commands, nor should they. For example: setCommandSensiti... | public interface MiiCommandManager
{
/**------------------------------------------------------
* Registers the given widget and the command it generates.
* This permits (de)sensitization of the widget by the
* setCommandSensitivity method.
* @param widget the widget that generates the command
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand())... | [
"0.66856664",
"0.6573705",
"0.64285094",
"0.6344556",
"0.6218171",
"0.6178763",
"0.6160701",
"0.605374",
"0.60045505",
"0.59994745",
"0.5963101",
"0.5936064",
"0.58887345",
"0.5849163",
"0.5843804",
"0.5833636",
"0.582343",
"0.5805027",
"0.5785961",
"0.57672876",
"0.5739513",... | 0.7960992 | 0 |
Registers the given widget and the command it generates. This permits (de)sensitization of the widget by the setCommandSensitivity method. | void registerCommandDependentWidget(MiPart widget, String command); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void registerWidget(String socketName, IWidget widget) {\n\t\tint widgetId = widgetIdCounter++;\n\t\tHeadElement head = Document.get().getHead();\n\t\tif(widget.getStylingUrls() != null) {\n\t\t\tfor(String styleUrl : widget.getStylingUrls()) {\n\t\t\t\tLinkElement cssLink = LinkElement.as(DOM.... | [
"0.608168",
"0.60567486",
"0.577141",
"0.56002086",
"0.55563325",
"0.55485195",
"0.5457418",
"0.54082274",
"0.5351477",
"0.53359634",
"0.5216381",
"0.5208745",
"0.51846534",
"0.51294875",
"0.51099515",
"0.50887394",
"0.50699574",
"0.5067813",
"0.5041133",
"0.50405914",
"0.500... | 0.74796075 | 0 |
UnRegisters the given widget and the command it generates. Either the given widget or the given command may be null. | void unRegisterWidgetGeneratedCommand(MiPart widget, String command); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void unregister(ConsoleCmd cmd) {\n cmdList.remove(cmd.name);\n }",
"void\t\tregisterCommandDependentWidget(MiPart widget, String command);",
"public abstract void removedFromWidgetTree();",
"boolean unregisterCommandBusForCommand( String commandName );",
"public void unRegisterBindi... | [
"0.58708894",
"0.5804758",
"0.5524806",
"0.55081576",
"0.541624",
"0.524075",
"0.50938374",
"0.50368357",
"0.50264287",
"0.49412584",
"0.49383184",
"0.49367872",
"0.4934302",
"0.4912136",
"0.48827532",
"0.48802748",
"0.48313072",
"0.4789334",
"0.47885758",
"0.47799125",
"0.47... | 0.8232337 | 0 |
Sets whether the given command is to be visible to the user. This method typically (hides)shows the widgets that have been associated with the command. | void setCommandVisibility(String command, boolean flag); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setVisible(boolean arg0)\n {\n \n }",
"public void setVisible(boolean val);",
"public void setVisible(Boolean visible);",
"public void setVisible(boolean visible);",
"void setVisible(boolean visible);",
"void setVisible(boolean visible);",
"public void setVisible... | [
"0.66721916",
"0.6669132",
"0.66397136",
"0.6587612",
"0.6566815",
"0.6566815",
"0.654553",
"0.6530528",
"0.64251924",
"0.6423523",
"0.6416502",
"0.6415032",
"0.6395396",
"0.6390523",
"0.63732445",
"0.6352893",
"0.6331423",
"0.63252836",
"0.6315716",
"0.6287516",
"0.6262904",... | 0.7377906 | 0 |
Sets whether the given command can be processed at this time. Otherwise, possibly based on the current state of the application, the given command cannot/should not be processed at this time. This method typically (de)sensitizes the widgets that have been associated with the command (see registerCommandDependentWidget)... | void setCommandSensitivity(String command, boolean flag); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCommand(@NonNull Command<Boolean, String> command) {\n this.command = command;\n }",
"void\t\tsetCommandVisibility(String command, boolean flag);",
"protected boolean onExecute(String command)\n {\n return false;\n }",
"public boolean setToolCommand(String command);",
... | [
"0.59256613",
"0.5856486",
"0.5741606",
"0.57047224",
"0.56686544",
"0.56548667",
"0.56483823",
"0.5617384",
"0.54626286",
"0.54362494",
"0.5352395",
"0.5351348",
"0.5351348",
"0.5341702",
"0.5340496",
"0.53352445",
"0.5309135",
"0.5284503",
"0.5281014",
"0.5277999",
"0.52723... | 0.48893756 | 62 |
Sets whether the given command can be processed at this time. Otherwise, possibly based on the current state of the application, the given command cannot/should not be processed at this time. This method typically (de)sensitizes the widgets that have been associated with the command (see registerCommandDependentWidget)... | void setCommandSensitivity(String command, boolean flag, String statusHelpMsg); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void\t\tsetCommandVisibility(String command, boolean flag);",
"private void setStyleToIndicateCommandFailure() {\n //override style and disable syntax highlighting\n commandTextField.overrideStyle(ERROR_STYLE_CLASS);\n }",
"protected boolean onExecute(String command)\n {\n return fal... | [
"0.5796815",
"0.579032",
"0.54598576",
"0.532937",
"0.528714",
"0.5272793",
"0.5241454",
"0.5217804",
"0.52020836",
"0.51990044",
"0.5197837",
"0.5193909",
"0.51466113",
"0.5128959",
"0.5074833",
"0.5069304",
"0.5038368",
"0.50266725",
"0.50266725",
"0.50222623",
"0.5010854",... | 0.5370701 | 3 |
Sets the state of the boolean widget that generates the given command. This is used for initializing toggle buttons. | void setCommandState(String command, boolean flag); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void\t\tsetCommandState(String command, String state);",
"public void setState( boolean bool ) { state = bool; }",
"void setState(boolean state);",
"public void setOn(){\n state = true;\n //System.out.println(\"Se detecto un requerimiento!\");\n\n }",
"public void setOn(boolean arg) {\n ... | [
"0.6792218",
"0.65618247",
"0.6496512",
"0.6311418",
"0.62448967",
"0.6225449",
"0.61789674",
"0.61437035",
"0.6126637",
"0.6089405",
"0.6058791",
"0.6056023",
"0.6043667",
"0.6030911",
"0.6017058",
"0.6012219",
"0.59729546",
"0.59643626",
"0.5926137",
"0.590228",
"0.5885858"... | 0.7457966 | 0 |
Sets the state of the multistate widget that generates the given command. This is used for initializing widgets like combo boxes and lists. | void setCommandState(String command, String state); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void\t\tsetCommandState(String command, boolean flag);",
"public void setSingle( final boolean single ) {\n checkWidget();\n if( this.single != single ) {\n this.single = single;\n updateItemsWithResizeEvent();\n }\n }",
"public void setCommand(String command){\r\n commandUpdate=com... | [
"0.6269015",
"0.56624496",
"0.55804986",
"0.55538976",
"0.54606557",
"0.5453571",
"0.5434283",
"0.5432821",
"0.5410695",
"0.53582275",
"0.53036255",
"0.52923656",
"0.5287571",
"0.5238544",
"0.52113736",
"0.5187625",
"0.5184749",
"0.5181822",
"0.51767755",
"0.51582986",
"0.514... | 0.65367407 | 0 |
Sets the label of the widget that generates the given command. This is used for initializing widgets like labels and menubar buttons, push button etc. | void setCommandLabel(String command, String label); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLabel( String label )\n { \n this.label = label;\n show_text();\n }",
"void setLabel(String label);",
"public void setLabelToBeShown(String label);",
"public void setMenuLabel(java.lang.String value);",
"public void setLabelText(String text);",
"public void setLabel(String rawLabel... | [
"0.69604826",
"0.6798649",
"0.668747",
"0.6664647",
"0.6639115",
"0.6537153",
"0.6503465",
"0.64960253",
"0.6476697",
"0.64588296",
"0.6432454",
"0.6387251",
"0.6369737",
"0.63573",
"0.6309901",
"0.6260544",
"0.62481266",
"0.6232814",
"0.6217026",
"0.6184029",
"0.6183405",
... | 0.78296244 | 0 |
Sets the values of the multistate widget that generates the given command. This is used for setting the possible values of widgets like combo boxes and lists. | void setCommandOptions(String command, Strings options); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void\t\tsetCommandPropertyValue(String command, String propertyName, String propertyValue);",
"void setCommandProperties(String commandID, AttributeList properties);",
"public void setCommand(String command){\r\n commandUpdate=command;\r\n }",
"void setElementValue(SetElementValue cmd);",
"public void se... | [
"0.56988853",
"0.5587609",
"0.55679893",
"0.5422957",
"0.5378522",
"0.528557",
"0.52852327",
"0.5275327",
"0.5232049",
"0.5162077",
"0.5138302",
"0.51229095",
"0.51213056",
"0.50740904",
"0.5068788",
"0.5063948",
"0.5052714",
"0.5049406",
"0.50474936",
"0.5039933",
"0.5019502... | 0.5388583 | 4 |
Sets the given property to the given value for all parts that generates the given command. This is used for, say, changing the status help message on a widget that may only be situationally and temporarily desensitized. | void setCommandPropertyValue(String command, String propertyName, String propertyValue); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setProperty(String property) {\n }",
"public SimplePropertyCommand(Value property, String newValue) {\n this.property = property;\n this.newValue = newValue;\n }",
"public void setProperty(String key, Object value) {\n commandData.put(key, value);\n }",
"public void ... | [
"0.65783054",
"0.6348128",
"0.6348044",
"0.6116828",
"0.6075641",
"0.5969275",
"0.59353673",
"0.592508",
"0.5904344",
"0.5899612",
"0.56845677",
"0.56641674",
"0.5659663",
"0.5598457",
"0.558303",
"0.55406547",
"0.55254036",
"0.5514171",
"0.5514171",
"0.55104244",
"0.54913425... | 0.6926516 | 0 |
/ Create data format | private String createDate(){
SimpleDateFormat date = new SimpleDateFormat("EEE, MMM d, yyyy");
String stringDate = date.format(new Date());
return stringDate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract D createData();",
"public DataFormat createDataFormat() {\n\t\treturn null;\n\t}",
"public String formatData() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\n\t\t\tbuilder.append(this.iataCode);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.latitude);\n\t\t\tbuilder.appe... | [
"0.64715475",
"0.621145",
"0.6207169",
"0.61936045",
"0.6192673",
"0.60371125",
"0.60288334",
"0.5982797",
"0.5961654",
"0.59481806",
"0.5932019",
"0.5882141",
"0.583328",
"0.57890123",
"0.5698654",
"0.5664991",
"0.5633819",
"0.56320995",
"0.5603717",
"0.5566707",
"0.55621743... | 0.0 | -1 |
/ Set daily values | private void setDailyValues(){
//set updateTime
SimpleDateFormat t = new SimpleDateFormat("h:mm:ss a");
updatedTime = "Last updated: " + t.format(new Date(System.currentTimeMillis()));
//set maxTemp and minTemp
maxTemp = Integer.toString(weather.getMaxTemp());
mi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setDate(Date data);",
"@Override\n\t\t\tpublic void setValue(Date value) {\n\t\t\t\tsuper.setValue(value);\n\t\t\t\tstart_cal_date = value.getTime();\n\t\t\t\tinfo_loader.load();\n\t\t\t}",
"void setDate(int index, Date value) throws SQLException;",
"void setDate(int index, Date value, Calendar cal)\n ... | [
"0.6340356",
"0.6281544",
"0.6196706",
"0.617023",
"0.60420406",
"0.60281754",
"0.59933627",
"0.59933627",
"0.59933627",
"0.59933627",
"0.59933627",
"0.59860206",
"0.59798723",
"0.59611696",
"0.5954493",
"0.5948862",
"0.58950436",
"0.58901227",
"0.58778554",
"0.5875368",
"0.5... | 0.7526623 | 0 |
Create a bit signature using d classification steps. | @Override
public void createLSH(Set<FeatureVector<? extends Number>> randomVectors) {
this.localitySensitiveHashed = new ComparableBitSetSignatureVector(
this.getId(), randomVectors.size());
// Do d number of classifications
int i = 0;
for (FeatureVector<? extends Number> weightVector : randomVectors) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buildClassSignature() {\n\t\tStringBuffer modifiers = new StringBuffer(classDoc.modifiers() + \" \");\n\t\tif (isEnum) {\n\t\t\tmodifiers.append(\"enum \");\n\t\t\tint index;\n\t\t\tif ((index = modifiers.indexOf(\"abstract\")) >= 0) {\n\t\t\t\tmodifiers.delete(index, index + (new String(\"abstract\"))... | [
"0.5371408",
"0.5368016",
"0.5353025",
"0.5280745",
"0.5263719",
"0.52024424",
"0.5157355",
"0.51202136",
"0.5076193",
"0.5047365",
"0.5041329",
"0.5006212",
"0.49906966",
"0.49815655",
"0.49482414",
"0.4933043",
"0.4923107",
"0.4907368",
"0.48805502",
"0.4878508",
"0.4844697... | 0.4601279 | 44 |
Classify an feature vector as 0 or 1. | private boolean classify(FeatureVector<? extends Number> wd) {
float sum = 0;
// Scalar Product
for (int i = 0; i < this.getDimensionality(); ++i) {
// TODO check the type of the vector
sum += wd.getValue(i).doubleValue()
* this.getValue(i).doubleValue();
}
// sign binary function
if (sum <= 0) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void normalizeClassLabels(double targetPositive, double targetNegative) {\n Vector yNew = new DenseVector(y.size());\n for(int i=0; i<y.size(); ++i) {\n yNew.setQuick(i, (y.getQuick(i) == targetPositive) ? 1 : 0 );\n }\n y = yNew;\n }",
"@Override\n public Classification<F, C> classif... | [
"0.620519",
"0.5969581",
"0.584503",
"0.56708634",
"0.5637011",
"0.5553616",
"0.55423284",
"0.54799616",
"0.5394452",
"0.5389414",
"0.532752",
"0.5294237",
"0.52658606",
"0.526234",
"0.5262118",
"0.5246722",
"0.52260953",
"0.5226025",
"0.5195844",
"0.5167238",
"0.5126291",
... | 0.6276523 | 0 |
URL url = null; | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
binding = ActivitySignUpBinding.inflate(LayoutInflater.from(this));
setContentView(binding.getRoot());
binding.login.setOnClickListener(new View.OnClickListener() {
@O... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setURL(String _url) { url = _url; }",
"public void setUrl(URL url)\n {\n this.url = url;\n }",
"public void setURL(String url);",
"public String getURL() { return url; }",
"public void setURLObject(URL url) {\n\t\tthis.url = url;\n\t}",
"public void setUrl(String url);",
"public void s... | [
"0.7451992",
"0.70683634",
"0.702801",
"0.70012504",
"0.6916626",
"0.6820959",
"0.6820959",
"0.6770706",
"0.67400354",
"0.66682774",
"0.66682774",
"0.66620046",
"0.664501",
"0.66289073",
"0.6618517",
"0.6607286",
"0.6601547",
"0.65800536",
"0.65675175",
"0.65537876",
"0.65384... | 0.0 | -1 |
It retrieves the getAxisValue class's values, deadzones, and then it calls the ramp method, which regresses it to be a cubu=ic function rather than a line | public static double [] getFinalAxis(double gyro){
return (ramp(adjustGetAxisValue(gyro)));
//return (ramp(getAxisValue()));
//three things happen in this class.
//1)you get axis values
//2)then you deadzone the values
//3) You transform the deadzoned values into a cubic equation
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n protected void calculateValues(DataContext ctx)\r\n {\r\n\t//Common MTF Inputs\r\n\tint mtfPeriod = getSettings().getInteger(MTF_MULTIPLIER);\r\n Object mtfInput = getSettings().getInput(SMI_INPUT, Enums.BarInput.CLOSE);\r\n \r\n int mtfSmooth = getSettings().getInteger(SMI_SMOOTH);\r\n ... | [
"0.53291345",
"0.5295604",
"0.5190958",
"0.5132877",
"0.5126012",
"0.5107847",
"0.5097029",
"0.5014633",
"0.5012627",
"0.5004555",
"0.49903238",
"0.49799988",
"0.49728343",
"0.496755",
"0.4967114",
"0.49482962",
"0.49313867",
"0.49204844",
"0.49199888",
"0.4918356",
"0.489994... | 0.5589869 | 0 |
transforms the array to deadzone to round values as necessary (ex. 0.02 to 0) | public static double[] deadZone(double[] axis){
for (int i = 0; i< axis.length; i++){
if ((axis[i] <= 0.05) && (axis[i] >= -0.05)) {//i will iterate to 0,1,2 since axis array size is 3
axis[i] = 0;//if the condition is satisfies, round it to zero
}
}
System.out.println(axis.length);
return axis;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int[] convertArray(double[] array) {\r\n\t\t int[] intArray = new int[array.length];\r\n\t\t for (int i=0; i<intArray.length; ++i) {\r\n\t\t intArray[i] = (int) Math.round(array[i]);\r\n\t\t }\r\n\t\t return intArray;\r\n\t }",
"private static void normalizeFromLog10(double[] array) {\n ... | [
"0.5921735",
"0.57600474",
"0.57057834",
"0.5565914",
"0.55565757",
"0.55543214",
"0.5453014",
"0.54041594",
"0.54006916",
"0.53441316",
"0.5341953",
"0.5338748",
"0.52852005",
"0.5259596",
"0.5226455",
"0.522079",
"0.5111509",
"0.5110834",
"0.50854814",
"0.5069222",
"0.50439... | 0.51656336 | 16 |
transforms the values in the array to it's coresponding cubica values, based on formulas | public static double[] ramp(double[] axis){
//if you want to graph it, it is y=0.66x^3+0.33x
for(byte x = 0; x < 3 ; x++){
axis[x] = (0.6667 * (Math.pow(axis[x], 3))+(0.333 * axis[x]));
}
return (axis);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<QuantifiedVariableCore> transform(QuantifiedVariableCore[] qv)\n {\n List<QuantifiedVariableCore> qv0 = new ArrayList<QuantifiedVariableCore>();\n for (QuantifiedVariableCore q : qv)\n qv0.add(transform(q));\n return qv0;\n }",
"public void transform(double[] src, double[] dst){\n\tf... | [
"0.5676911",
"0.56328094",
"0.5545724",
"0.55364555",
"0.54906934",
"0.54902756",
"0.5437737",
"0.5437334",
"0.54372865",
"0.54150635",
"0.5394361",
"0.5392407",
"0.5387365",
"0.5350996",
"0.53408706",
"0.5317243",
"0.5316665",
"0.5288475",
"0.526723",
"0.52286416",
"0.52232"... | 0.0 | -1 |
/ Purpose: Obtain the 5 most frequent words found Parameters: MaxFrequencyHeap h the heap containing all the word entry data Returns: Entry[] an array containing the top 5 entries (which are the word, frequency pairs with the maximum frequency values) | public static Entry[] overallMostFrequent(MaxFrequencyHeap h) {
Entry[] top5 = new Entry[CAPACITY];
int top5_counter = 0; // our temporary top5 counter
// Iterate through our maxheap until we find the top 5 words
while(top5_counter<5){
// If our heap is empty simply return the top5 array
if(h.is... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Entry[] atLeastLength(MaxFrequencyHeap h, int n) {\r\n\t\tEntry[] top5 = new Entry[CAPACITY];\r\n\r\n\t\tint counter = 0;\r\n\r\n\t\t// While our heap is not empty and we\r\n\t\t// havent found the top 5 words of the minimum length n\r\n\t\t// remove the max word from our heap\r\n\t\twhile(h.size()>0... | [
"0.7593385",
"0.6547367",
"0.640802",
"0.6313083",
"0.62966114",
"0.61863834",
"0.5815642",
"0.5784697",
"0.576604",
"0.57011175",
"0.5577706",
"0.55478364",
"0.5498042",
"0.5471779",
"0.54501563",
"0.543593",
"0.54352754",
"0.543121",
"0.54225326",
"0.542044",
"0.54165894",
... | 0.85449564 | 0 |
/ Purpose: Obtain the 5 most frequent words found that are at least n charaters long Parameters: MaxFrequencyHeap h the heap containing all the word entry data int n minimum word length to consider Returns: Entry[] an array containing the top 5 entries (which are the word, frequency pairs with the maximum frequency val... | public static Entry[] atLeastLength(MaxFrequencyHeap h, int n) {
Entry[] top5 = new Entry[CAPACITY];
int counter = 0;
// While our heap is not empty and we
// havent found the top 5 words of the minimum length n
// remove the max word from our heap
while(h.size()>0 && counter!=5){
Entry curr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Entry[] overallMostFrequent(MaxFrequencyHeap h) {\r\n\t\tEntry[] top5 = new Entry[CAPACITY];\r\n\r\n\t\tint top5_counter = 0; // our temporary top5 counter\r\n\r\n\t\t// Iterate through our maxheap until we find the top 5 words\r\n\t\twhile(top5_counter<5){\r\n\t\t\t// If our heap is empty simply ret... | [
"0.7857239",
"0.64130825",
"0.6328938",
"0.6053053",
"0.6043505",
"0.5862155",
"0.58611566",
"0.58539873",
"0.5851019",
"0.58121777",
"0.55606204",
"0.5513761",
"0.55070376",
"0.5491103",
"0.54109544",
"0.5402455",
"0.53878915",
"0.5364981",
"0.53057593",
"0.5266635",
"0.5264... | 0.8007977 | 0 |
/ Purpose: Obtain the 5 most frequent words found that begin with the given letter Parameters: MaxFrequencyHeap h the heap containing all the word entry data char letter only words that begin with given letter are considered Returns: Entry[] an array containing the top 5 entries (which are the word, frequency pairs wit... | public static Entry[] startsWith(MaxFrequencyHeap h, char letter) {
Entry[] top5 = new Entry[CAPACITY];
int counter = 0;
// While our heap is not empty and we
// havent found the top 5 words of the minimum length n
// remove the max word from our heap
while(h.size()>0 && counter!=5){
Entry c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Entry[] overallMostFrequent(MaxFrequencyHeap h) {\r\n\t\tEntry[] top5 = new Entry[CAPACITY];\r\n\r\n\t\tint top5_counter = 0; // our temporary top5 counter\r\n\r\n\t\t// Iterate through our maxheap until we find the top 5 words\r\n\t\twhile(top5_counter<5){\r\n\t\t\t// If our heap is empty simply ret... | [
"0.75906366",
"0.68707484",
"0.60411036",
"0.5975008",
"0.5922188",
"0.59093577",
"0.58696604",
"0.57681674",
"0.57032937",
"0.5600211",
"0.55802083",
"0.55413526",
"0.54298115",
"0.5324043",
"0.5308332",
"0.5305646",
"0.5292859",
"0.5197133",
"0.51967406",
"0.5188211",
"0.51... | 0.7732654 | 0 |
relativeLayout= (RelativeLayout) findViewById(R.id.relativelayout_popuwindow); linearLayout = (LinearLayout) popuView.findViewById(R.id.second_hand_blank); | @Override
public void onClick(View v) {
layouts = new ArrayList<RelativeLayout>();
layouts.add(tv_all);
layouts.add(tv_shuma);
layouts.add(tv_yinxiang);
layouts.add(tv_meirong);
layouts.add(tv_muying);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onGlobalLayout() {\n ll_width.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n WindowManager windowManager = (WindowManager) ctx.getSystemService(Context.WINDOW_SERVICE);\n int left=ll_width.getLeft()*2;\n int... | [
"0.68242913",
"0.6658859",
"0.6567228",
"0.6450218",
"0.644555",
"0.64439785",
"0.6331272",
"0.63062584",
"0.63057667",
"0.62256616",
"0.6178564",
"0.61388785",
"0.61023915",
"0.60261106",
"0.6003915",
"0.5981106",
"0.5949515",
"0.59325",
"0.59319174",
"0.59266084",
"0.586523... | 0.5798361 | 28 |
Get the category icon. | public static Image getCategoryImage() {
return ImageUtil.getImage(ApplicationPropertiesUtil
.getProperty(ApplicationPropertiesUtil.PATH_CATEGORY_ICON));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getCategoryIcon() {\n\t\treturn categoryIcon;\n\t}",
"public String getIcon() {\n\t\treturn \"icon\";\n\t}",
"java.lang.String getIcon();",
"java.lang.String getIcon();",
"String getIcon();",
"String getIcon();",
"public String getIcon() {\n return icon;\n }",
"pu... | [
"0.8591924",
"0.7187574",
"0.7184821",
"0.7184821",
"0.71527064",
"0.71527064",
"0.7141546",
"0.7141546",
"0.7141546",
"0.7141546",
"0.71133745",
"0.70700496",
"0.70019716",
"0.6984504",
"0.69723314",
"0.6950955",
"0.68531364",
"0.6845531",
"0.68348485",
"0.6812648",
"0.67999... | 0.8306919 | 1 |
Get the category noncalculation icon. | public static Image getCategoryAppropriateImage() {
return ImageUtil
.getImage(ApplicationPropertiesUtil
.getProperty(ApplicationPropertiesUtil.PATH_CATEGORY_APPROPRIATE_ICON));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getCategoryIcon() {\n\t\treturn categoryIcon;\n\t}",
"public static Image getCategoryImage() {\n return ImageUtil.getImage(ApplicationPropertiesUtil\n .getProperty(ApplicationPropertiesUtil.PATH_CATEGORY_ICON));\n }",
"public org.netbeans.modules.j2ee.dd.api.... | [
"0.74701273",
"0.6993674",
"0.697542",
"0.6877786",
"0.6877786",
"0.6845542",
"0.6845542",
"0.6685745",
"0.66824746",
"0.65856767",
"0.6578739",
"0.65590775",
"0.65590775",
"0.65590775",
"0.65590775",
"0.65376973",
"0.65163165",
"0.6443526",
"0.6409527",
"0.63953775",
"0.6395... | 0.6337346 | 24 |
Get the knowhow icon. | public static Image getKnowhowImage() {
return ImageUtil.getImage(ApplicationPropertiesUtil
.getProperty(ApplicationPropertiesUtil.PATH_KNOWHOW_ICON));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Icon getIcon();",
"String getIcon();",
"String getIcon();",
"java.lang.String getIcon();",
"java.lang.String getIcon();",
"public Icon getIcon();",
"String getIconFile();",
"public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}",
"public URL getIcon()\r\n {\r\n\treturn icon... | [
"0.7378497",
"0.7298018",
"0.7298018",
"0.72800416",
"0.72800416",
"0.71229786",
"0.7110389",
"0.7099789",
"0.7005472",
"0.6971167",
"0.69206464",
"0.69094324",
"0.6882381",
"0.6882381",
"0.6882381",
"0.6882381",
"0.6827345",
"0.68172526",
"0.67376673",
"0.67283976",
"0.67270... | 0.7811913 | 0 |
Get search information icon. | public static Image getSearchInfoImage() {
return ImageUtil.getImage(ApplicationPropertiesUtil
.getProperty(ApplicationPropertiesUtil.PATH_SEARCH_ICON));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Image getSearchInfoAppropriateImage() {\n return ImageUtil\n .getImage(ApplicationPropertiesUtil\n .getProperty(ApplicationPropertiesUtil.PATH_SEARCH_APPROPRIATE_ICON));\n }",
"java.lang.String getIcon();",
"java.lang.String getIcon();",
"String g... | [
"0.7171661",
"0.71635145",
"0.71635145",
"0.70953184",
"0.70953184",
"0.70056987",
"0.7003677",
"0.6985918",
"0.68287957",
"0.68287957",
"0.68287957",
"0.68287957",
"0.68078375",
"0.66101855",
"0.65606135",
"0.65405077",
"0.65405077",
"0.65370905",
"0.6535503",
"0.6535503",
"... | 0.846237 | 0 |
Get search information nonrecognized icon. | public static Image getSearchInfoAppropriateImage() {
return ImageUtil
.getImage(ApplicationPropertiesUtil
.getProperty(ApplicationPropertiesUtil.PATH_SEARCH_APPROPRIATE_ICON));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Image getSearchInfoImage() {\n return ImageUtil.getImage(ApplicationPropertiesUtil\n .getProperty(ApplicationPropertiesUtil.PATH_SEARCH_ICON));\n }",
"java.lang.String getIcon();",
"java.lang.String getIcon();",
"public Icon getIcon() {\n \t\treturn null;\n \t}",
"Str... | [
"0.7624475",
"0.6531301",
"0.6531301",
"0.63281566",
"0.6325629",
"0.6325629",
"0.6285848",
"0.6254329",
"0.62132645",
"0.61972183",
"0.61549103",
"0.61242014",
"0.61187786",
"0.61111724",
"0.61111724",
"0.60679185",
"0.60679185",
"0.60679185",
"0.60679185",
"0.60114473",
"0.... | 0.67999643 | 1 |
Get a check item icon. | public static Image getCheckItemImage() {
return ImageUtil.getImage(ApplicationPropertiesUtil
.getProperty(ApplicationPropertiesUtil.PATH_CHECKITEM_ICON));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"B itemIcon(ITEM item, Resource icon);",
"public Icon getIcon();",
"static Icon getCheckBoxIcon()\r\n/* 29: */ {\r\n/* 30: 73 */ if (checkBoxIcon == null) {\r\n/* 31: 74 */ checkBoxIcon = new CheckBoxIcon(null);\r\n/* 32: */ }\r\n/* 33: 76 */ return checkBoxIcon;\r\n/* 34: */ ... | [
"0.7186051",
"0.6588645",
"0.6588314",
"0.6586501",
"0.6538733",
"0.6538733",
"0.64967865",
"0.64967865",
"0.63996506",
"0.63996506",
"0.63996506",
"0.63996506",
"0.62977743",
"0.62960416",
"0.62960416",
"0.6285996",
"0.6251098",
"0.6237558",
"0.6237071",
"0.6237071",
"0.6204... | 0.841081 | 0 |
Get the image in the project. Please use this method when generating an image. | private static Image getImageInProject(String targetPath) {
try {
return new Image(null, PluginUtil.getPluginDir() + targetPath);
} catch (SWTException e) {
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getImage()\n {\n return image;\n }",
"public Image getImage() {\r\n return image;\r\n }",
"public Image getImage() {\n return image;\n }",
"public Image getImage() {\r\n\t\treturn GDAssemblerUI.getImage(GDAssemblerUI.IMAGE_GD);\r\n\t}",
"public Image getImage(... | [
"0.7214979",
"0.7187813",
"0.71873873",
"0.71842057",
"0.7183005",
"0.7159001",
"0.71549284",
"0.7150434",
"0.7137749",
"0.7129896",
"0.71296054",
"0.71248823",
"0.7116088",
"0.7116088",
"0.7116088",
"0.7116088",
"0.7107741",
"0.7107741",
"0.70723206",
"0.70723206",
"0.706696... | 0.7036822 | 24 |
Initialises a new NumberP instance. | public NumberP(String input)
{
this
(
input, new ParseConfig()
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NumberP(NumberP numberP)\n\t{\n\t\tif (numberP == null)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberP.BaseTenExponent;\n\t\t\tValue = numberP.Value;\n\t\t\tOriginalString = numberP.OriginalString;\n\t\t\tConfig = new ParseConfig(numberP.Config)... | [
"0.7293608",
"0.6750526",
"0.6445359",
"0.64414895",
"0.630535",
"0.6266385",
"0.61881167",
"0.61016834",
"0.6097963",
"0.60700476",
"0.6030234",
"0.5870242",
"0.58700705",
"0.58673435",
"0.581758",
"0.5717905",
"0.5694622",
"0.56857526",
"0.5678133",
"0.5678024",
"0.56657046... | 0.6528196 | 2 |
Initialises a new NumberP instance. | public NumberP(String input, ParseConfig config)
{
if (input == null || input.trim().length() < 1)
{
Error = ErrorTypesNumber.InvalidInput;
return;
}
OriginalString = input;
Config = new ParseConfig(config);
//NumberD is lighter than NumberP and contains all what matters here (i.e., Object-type Val... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NumberP(NumberP numberP)\n\t{\n\t\tif (numberP == null)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberP.BaseTenExponent;\n\t\t\tValue = numberP.Value;\n\t\t\tOriginalString = numberP.OriginalString;\n\t\t\tConfig = new ParseConfig(numberP.Config)... | [
"0.7293608",
"0.6750526",
"0.6528196",
"0.6445359",
"0.64414895",
"0.630535",
"0.6266385",
"0.61881167",
"0.61016834",
"0.6097963",
"0.6030234",
"0.5870242",
"0.58700705",
"0.58673435",
"0.581758",
"0.5717905",
"0.5694622",
"0.56857526",
"0.5678133",
"0.5678024",
"0.56657046"... | 0.60700476 | 10 |
Initialises a new NumberP instance. | public NumberP(NumberP numberP)
{
if (numberP == null)
{
Error = ErrorTypesNumber.InvalidInput;
}
else
{
BaseTenExponent = numberP.BaseTenExponent;
Value = numberP.Value;
OriginalString = numberP.OriginalString;
Config = new ParseConfig(numberP.Config);
Error = numberP.Error;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NumberP(Number number)\n\t{\n\t\tNumber tempVar = Constructors.ExtractDynamicToNumber(number);\n\n\t\tif (!tempVar.getError().equals(ErrorTypesNumber.None))\n\t\t{\n\t\t\tError = tempVar.getError();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = number.getBaseTenExponent();\n\t\t\tValue = number.getValue(... | [
"0.6750526",
"0.6528196",
"0.6445359",
"0.64414895",
"0.630535",
"0.6266385",
"0.61881167",
"0.61016834",
"0.6097963",
"0.60700476",
"0.6030234",
"0.5870242",
"0.58700705",
"0.58673435",
"0.581758",
"0.5717905",
"0.5694622",
"0.56857526",
"0.5678133",
"0.5678024",
"0.56657046... | 0.7293608 | 0 |
Initialises a new NumberP instance. | public NumberP(Number number)
{
Number tempVar = Constructors.ExtractDynamicToNumber(number);
if (!tempVar.getError().equals(ErrorTypesNumber.None))
{
Error = tempVar.getError();
}
else
{
BaseTenExponent = number.getBaseTenExponent();
Value = number.getValue();
Config = new ParseConfig(Numeric... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NumberP(NumberP numberP)\n\t{\n\t\tif (numberP == null)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberP.BaseTenExponent;\n\t\t\tValue = numberP.Value;\n\t\t\tOriginalString = numberP.OriginalString;\n\t\t\tConfig = new ParseConfig(numberP.Config)... | [
"0.7293141",
"0.65291005",
"0.6445573",
"0.64413863",
"0.6305699",
"0.62671256",
"0.6188676",
"0.6100653",
"0.609738",
"0.60708106",
"0.60298777",
"0.5871594",
"0.5869752",
"0.5868226",
"0.581876",
"0.57187855",
"0.56934696",
"0.5687636",
"0.5679791",
"0.56792116",
"0.5665549... | 0.6751114 | 1 |
Initialises a new NumberP instance. | public NumberP(NumberD numberD)
{
NumberD tempVar = Constructors.ExtractDynamicToNumberD(numberD);
if (!tempVar.getError().equals(ErrorTypesNumber.None))
{
Error = tempVar.getError();
}
else
{
BaseTenExponent = numberD.getBaseTenExponent();
Value = numberD.getValue();
Config = new ParseConfig(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NumberP(NumberP numberP)\n\t{\n\t\tif (numberP == null)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberP.BaseTenExponent;\n\t\t\tValue = numberP.Value;\n\t\t\tOriginalString = numberP.OriginalString;\n\t\t\tConfig = new ParseConfig(numberP.Config)... | [
"0.7293608",
"0.6750526",
"0.6528196",
"0.6445359",
"0.64414895",
"0.6266385",
"0.61881167",
"0.61016834",
"0.6097963",
"0.60700476",
"0.6030234",
"0.5870242",
"0.58700705",
"0.58673435",
"0.581758",
"0.5717905",
"0.5694622",
"0.56857526",
"0.5678133",
"0.5678024",
"0.5665704... | 0.630535 | 5 |
Initialises a new NumberP instance. | public NumberP(NumberO numberO)
{
Number tempVar = Constructors.ExtractDynamicToNumber(numberO);
if (!tempVar.getError().equals(ErrorTypesNumber.None))
{
Error = tempVar.getError();
}
else
{
BaseTenExponent = numberO.getBaseTenExponent();
Value = numberO.getValue();
Config = new ParseConfig(Nu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NumberP(NumberP numberP)\n\t{\n\t\tif (numberP == null)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberP.BaseTenExponent;\n\t\t\tValue = numberP.Value;\n\t\t\tOriginalString = numberP.OriginalString;\n\t\t\tConfig = new ParseConfig(numberP.Config)... | [
"0.7293608",
"0.6750526",
"0.6528196",
"0.6445359",
"0.630535",
"0.6266385",
"0.61881167",
"0.61016834",
"0.6097963",
"0.60700476",
"0.6030234",
"0.5870242",
"0.58700705",
"0.58673435",
"0.581758",
"0.5717905",
"0.5694622",
"0.56857526",
"0.5678133",
"0.5678024",
"0.56657046"... | 0.64414895 | 4 |
Initialises a new NumberP instance. | public NumberP(Object unitP)
{
Number tempVar = OtherPartsUnitParserMethods.GetNumberFromUnitP(unitP);
if (!tempVar.getError().equals(ErrorTypesNumber.None))
{
Error = tempVar.getError();
}
else
{
BaseTenExponent = tempVar.getBaseTenExponent();
Value = tempVar.getValue();
Config = new... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NumberP(NumberP numberP)\n\t{\n\t\tif (numberP == null)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberP.BaseTenExponent;\n\t\t\tValue = numberP.Value;\n\t\t\tOriginalString = numberP.OriginalString;\n\t\t\tConfig = new ParseConfig(numberP.Config)... | [
"0.7293608",
"0.6750526",
"0.6528196",
"0.6445359",
"0.64414895",
"0.630535",
"0.6266385",
"0.61881167",
"0.6097963",
"0.60700476",
"0.6030234",
"0.5870242",
"0.58700705",
"0.58673435",
"0.581758",
"0.5717905",
"0.5694622",
"0.56857526",
"0.5678133",
"0.5678024",
"0.56657046"... | 0.61016834 | 8 |
Private NumberP constructors. WARNING: the purpose of this constructor in the original C code was to be exclusively used internally. | public NumberP(Number number, String originalString, ParseConfig config)
{
Number tempVar = Constructors.ExtractDynamicToNumber(number);
if (!tempVar.getError().equals(ErrorTypesNumber.None))
{
Error = tempVar.getError();
}
else
{
BaseTenExponent = number.getBaseTenExponent();
Value = number.getV... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NumberP(NumberP numberP)\n\t{\n\t\tif (numberP == null)\n\t\t{\n\t\t\tError = ErrorTypesNumber.InvalidInput;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tBaseTenExponent = numberP.BaseTenExponent;\n\t\t\tValue = numberP.Value;\n\t\t\tOriginalString = numberP.OriginalString;\n\t\t\tConfig = new ParseConfig(numberP.Config)... | [
"0.7453729",
"0.7065248",
"0.6903182",
"0.6861208",
"0.6649018",
"0.65391773",
"0.6511762",
"0.6424858",
"0.6257089",
"0.61892843",
"0.61632925",
"0.61108804",
"0.60537815",
"0.5994807",
"0.596204",
"0.5946354",
"0.59305996",
"0.5910185",
"0.5896126",
"0.58018786",
"0.5756854... | 0.56413 | 26 |
WARNING: the purpose of this constructor in the original C code was to be exclusively used internally. | public NumberP(Object value, int baseTenExponent)
{
BaseTenExponent = baseTenExponent;
Value = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void constructor();",
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"public HCERTCHAINENGINE(Pointer p) {\n/* 1085 */ super(p);\n/* */ }",
"public NativePrimitiveArrayStateManagerImpl()\n {\n }",
"private void __sep__Constructors__() {}",
"pr... | [
"0.6989321",
"0.6303985",
"0.61849594",
"0.61656296",
"0.6035022",
"0.60092664",
"0.5998736",
"0.5937615",
"0.59144926",
"0.59010166",
"0.5885332",
"0.5826916",
"0.5805005",
"0.57932764",
"0.57038695",
"0.5703446",
"0.57029533",
"0.5687721",
"0.5683149",
"0.5676656",
"0.56762... | 0.0 | -1 |
WARNING: the purpose of this constructor in the original C code was to be exclusively used internally. | public NumberP(ErrorTypesNumber error) { Error = error; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public native void constructor();",
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"public HCERTCHAINENGINE(Pointer p) {\n/* 1085 */ super(p);\n/* */ }",
"public NativePrimitiveArrayStateManagerImpl()\n {\n }",
"private void __sep__Constructors__() {}",
"pr... | [
"0.69887334",
"0.6304185",
"0.6185401",
"0.6165055",
"0.60342175",
"0.6009794",
"0.5999196",
"0.5937248",
"0.59142375",
"0.5900093",
"0.5885019",
"0.5826904",
"0.5804842",
"0.5792264",
"0.57040626",
"0.5703877",
"0.57035667",
"0.5688435",
"0.5684288",
"0.567816",
"0.5676375",... | 0.0 | -1 |
Static methods of NumberP emulating all the operator overloads of the original C code. Adds two NumberP variables. | public static NumberP Addition(NumberP first, NumberP second)
{
return OperationsManaged.PerformArithmeticOperation
(
first, second, ExistingOperations.Addition
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BaseNumber add(BaseNumber operand);",
"void add(double p1, double p2){\n this.p1 += p1;\n this.p2 += p2;\n }",
"private native int nativeAdd(int x, int y);",
"public static NumberP Multiplication(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperati... | [
"0.57770944",
"0.5756344",
"0.5622916",
"0.5573401",
"0.55557716",
"0.5423466",
"0.5423271",
"0.53988206",
"0.53556436",
"0.5348043",
"0.53267515",
"0.5314419",
"0.5281863",
"0.5281208",
"0.5279456",
"0.52551425",
"0.52423924",
"0.52255285",
"0.521207",
"0.52117413",
"0.51949... | 0.6092581 | 0 |
Subtracts two NumberO variables. | public static NumberP Subtraction(NumberP first, NumberP second)
{
return OperationsManaged.PerformArithmeticOperation
(
first, second, ExistingOperations.Subtraction
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BaseNumber subtract(BaseNumber operand);",
"@Override\n\tpublic double subtract(double in1, double in2) {\n\t\treturn 0;\n\t}",
"public double subtract(double firstNumber, double secondNUmber){\n\t\treturn firstNumber - secondNUmber;\n\t}",
"public int subtract(int number1, int number2)\n\t\tthrows Calculat... | [
"0.7215895",
"0.6947961",
"0.6884485",
"0.67642534",
"0.67334443",
"0.66117436",
"0.6490848",
"0.6490402",
"0.64743215",
"0.644099",
"0.6434739",
"0.6420426",
"0.6412019",
"0.63783324",
"0.6366619",
"0.63388634",
"0.63206726",
"0.6309505",
"0.62791693",
"0.62665296",
"0.62615... | 0.666946 | 5 |
Multiplies two NumberP variables. | public static NumberP Multiplication(NumberP first, NumberP second)
{
return OperationsManaged.PerformArithmeticOperation
(
first, second, ExistingOperations.Multiplication
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static UnitP Multiplication(UnitP first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Multiplication,\n OperationsOther.GetOperationString(first, second, Operations.Multiplication) \n );\n }",... | [
"0.7009238",
"0.6926992",
"0.69019073",
"0.68723357",
"0.68442184",
"0.6825923",
"0.6821467",
"0.67988443",
"0.67938155",
"0.6658201",
"0.6646285",
"0.6637781",
"0.6538572",
"0.65180004",
"0.6496198",
"0.648712",
"0.6464195",
"0.6451515",
"0.64482665",
"0.6439221",
"0.6407562... | 0.7704585 | 0 |
Divides two NumberP variables. | public static NumberP Division(NumberP first, NumberP second)
{
return OperationsManaged.PerformArithmeticOperation
(
first, second, ExistingOperations.Division
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double divisao (double numero1, double numero2){\n\t}",
"int div(int num1, int num2) {\n\t\treturn num1/num2;\n\t}",
"public int division(int a, int b) {\n return a / b;\n }",
"public static int p_div(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"please pu... | [
"0.734023",
"0.6713601",
"0.67083526",
"0.6691943",
"0.6687731",
"0.66715103",
"0.6615202",
"0.6608906",
"0.6600549",
"0.6597882",
"0.65927625",
"0.64831936",
"0.6452217",
"0.6420667",
"0.63618016",
"0.6326452",
"0.6310407",
"0.6304683",
"0.6288781",
"0.62459594",
"0.6221721"... | 0.72399664 | 1 |
Calculates the modulo of two NumberP variables. | public static NumberP Modulo(NumberP first, NumberP second)
{
return OperationsManaged.PerformArithmeticOperation
(
first, second, ExistingOperations.Modulo
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int modulo(int a, int b) {\n return a % b;\n }",
"private static int cprModFunction(int a, int b) {\n\t\tint res = a % b;\n\t\tif (res < 0)\n\t\t\tres += b;\n\t\treturn res;\n\t}",
"static int modulo(int x, int y) {\n return (x%y);\n }",
"public static NodeValue numericMod(NodeValue n... | [
"0.7131907",
"0.70368",
"0.6817378",
"0.6692",
"0.66412854",
"0.66039646",
"0.64292884",
"0.6174099",
"0.6135934",
"0.6084721",
"0.6083627",
"0.60749465",
"0.6056302",
"0.6045344",
"0.6014557",
"0.5904119",
"0.5893389",
"0.5882849",
"0.5878524",
"0.5829523",
"0.5818321",
"0... | 0.7536648 | 0 |
Nonstatic and overloaded methods of NumberP emulating all the comparison overloads in the original C code. Determines whether the current NumberP instance is greater than other. | public boolean greaterThan(NumberP other)
{
return OperationsCompareTo.CompareDouble(this, other) == 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean greaterOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) >= 0;\n }",
"public boolean lessThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == -1;\n }",
"public AbstractBoolean greater(Interval other){\n\t\tt... | [
"0.7445686",
"0.7410369",
"0.6798637",
"0.6739371",
"0.6716198",
"0.6647755",
"0.6587632",
"0.65695614",
"0.6449358",
"0.64466256",
"0.644526",
"0.6333931",
"0.6305304",
"0.62993735",
"0.6245511",
"0.62165546",
"0.6215015",
"0.6189159",
"0.6188812",
"0.6168202",
"0.6168202",
... | 0.85232794 | 0 |
Determines whether the current NumberP instance is greater or equal than other. | public boolean greaterOrEqualThan(NumberP other)
{
return OperationsCompareTo.CompareDouble(this, other) >= 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean greaterThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == 1;\n }",
"public AbstractBoolean greater(Interval other){\n\t\ttry {\n\t\t\t// If this.max > this.min then True\n\t\t\tif ((!this.low.equals(\"-Inf\"))\n\t\t\t\t\t&& (!other.high.equals(\"+Inf\"))\... | [
"0.8408717",
"0.734034",
"0.72675246",
"0.71616966",
"0.68796545",
"0.6840936",
"0.6839622",
"0.6797933",
"0.67601234",
"0.66550225",
"0.6640026",
"0.6631815",
"0.65770847",
"0.6430373",
"0.64015865",
"0.627962",
"0.6127381",
"0.6078",
"0.6074806",
"0.6050391",
"0.6036547",
... | 0.7919163 | 1 |
Determines whether the current NumberP instance is smaller than other. | public boolean lessThan(NumberP other)
{
return OperationsCompareTo.CompareDouble(this, other) == -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean lessOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) <= 0;\n }",
"public AbstractBoolean less(Interval other){\n\t\ttry {\n\t\t\t// If this.max < this.min then True\n\t\t\tif ((!this.high.equals(\"+Inf\"))\n\t\t\t\t\t&& (!other.low.equals(\"-Inf\"))... | [
"0.71293783",
"0.67743546",
"0.6619345",
"0.65301627",
"0.6374188",
"0.63356084",
"0.6320816",
"0.6282773",
"0.62249994",
"0.6217564",
"0.6186939",
"0.61859816",
"0.61733943",
"0.6169585",
"0.6159442",
"0.6125759",
"0.6032555",
"0.5984469",
"0.59812284",
"0.59369534",
"0.5936... | 0.8174798 | 0 |
Determines whether the current NumberP instance is smaller or equal than other. | public boolean lessOrEqualThan(NumberP other)
{
return OperationsCompareTo.CompareDouble(this, other) <= 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean lessThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) == -1;\n }",
"public boolean greaterOrEqualThan(NumberP other)\n {\n \treturn OperationsCompareTo.CompareDouble(this, other) >= 0;\n }",
"public AbstractBoolean less(Interval other){\n\t\ttry ... | [
"0.79482234",
"0.6872007",
"0.67843837",
"0.6769459",
"0.6438352",
"0.63342774",
"0.6239991",
"0.6225712",
"0.61618805",
"0.6071051",
"0.5997219",
"0.59761465",
"0.5971297",
"0.597003",
"0.59470874",
"0.5912627",
"0.58917505",
"0.58799535",
"0.58734554",
"0.58065075",
"0.5799... | 0.7477531 | 1 |
Outputs an error or "Value10^BaseTenExponent" (BaseTenExponent different than zero sample). | public String toString(Locale culture)
{
if (!Error.equals(ErrorTypesNumber.None)) return "Error. " + Error.toString();
if (culture == null) culture = Locale.US;
NumberD numberD = OperationsManaged.PassBaseTenToValue
(
new NumberD(this), true
);
return OperationsOther.PrintNumberXInfo
(
number... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String getExponent();",
"public String get_exponent_part();",
"public static double exp() {\r\n System.out.println(\"What is your base?\");\r\n int b = Main.sc.nextInt();\r\n System.out.println(\"What is your power?\");\r\n int p = Main.sc.nextInt();\r\n double answer = Math.pow(... | [
"0.58413273",
"0.5730712",
"0.565923",
"0.5566377",
"0.55105364",
"0.5433183",
"0.53598785",
"0.5352692",
"0.5324436",
"0.5320119",
"0.5292726",
"0.5285603",
"0.52820456",
"0.5227619",
"0.5188177",
"0.51268053",
"0.51089835",
"0.50812095",
"0.5075594",
"0.5073601",
"0.5072657... | 0.0 | -1 |
Constructor que recibe un semaforo para soncronizar si hay empleados libres o no | public EmpleadosDisponibles(Semaphore semaforoEmpleadoLibre) {
this.semaforoEmpleadoLibre = semaforoEmpleadoLibre;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Cronometro() {\n initComponents();\n cronometro = new CronometroThread(this);\n }",
"public mbvConsolidadoPeriodoAnteriores() {\r\n }",
"public LecturaPorEvento() \r\n {\r\n }",
"public Laboratorio() {}",
"public Maestro()\r\n\t{\r\n\t\tint i;\r\n\t\tint hora = 0;\r\n\t\tin... | [
"0.5873711",
"0.5794336",
"0.56503123",
"0.5628176",
"0.5607162",
"0.5605622",
"0.55793804",
"0.5552117",
"0.55387807",
"0.55217",
"0.5511764",
"0.55024576",
"0.5484981",
"0.5467785",
"0.5464291",
"0.54613847",
"0.5449325",
"0.54411083",
"0.5439184",
"0.5437045",
"0.5426882",... | 0.5072604 | 89 |
Libera un empleado y avisa a traves del semaforo de empleados libres | public synchronized void liberarEmpleado(Empleado empleado) {
empleado.agregarmeAEmpleadosDisponibles(this);
semaforoEmpleadoLibre.release();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void atualizarTela() {\n\t\tif(this.primeiraJogada == true) {//SE FOR A PRIMEIRA JOGADA ELE MONTA O LABEL DOS NUMEROS APOS ESCOLHER A POSICAO PELA PRIMEIRA VEZ\r\n\t\t\tthis.primeiraJogada = false;\r\n\t\t\tthis.montarLabelNumeros();\r\n\t\t}\r\n\r\n\t\tthis.esconderBotao();\r\n\t\t\r\n\t\tthis.acabarJogo(... | [
"0.6241229",
"0.61308146",
"0.61064947",
"0.600858",
"0.600817",
"0.59190565",
"0.5903134",
"0.587817",
"0.58695287",
"0.58597517",
"0.58277583",
"0.5805066",
"0.5776546",
"0.57595223",
"0.57409436",
"0.5723398",
"0.5693207",
"0.5691451",
"0.56814617",
"0.56743246",
"0.566419... | 0.0 | -1 |
Agrega un supervisor a la cola de supervisores | public synchronized void agregarSupervisor(Supervisor supervisor) {
System.out.println("SE LIBERO SUPERVISOR");
getSupervisores().add(supervisor);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSupervisor(Supervisor supervisor){\r\n this.supervisor = supervisor;\r\n }",
"public Supervisor getSupervisor(){\r\n return supervisor;\r\n }",
"public Supervisor(double salario) {\r\n super(salario);\r\n }",
"public void setSupervisorStatus(String supervisorStatus) {\n\t\tthis... | [
"0.7475311",
"0.6697048",
"0.61478007",
"0.6056367",
"0.59160674",
"0.58866096",
"0.58721393",
"0.585418",
"0.5703414",
"0.5694342",
"0.5621582",
"0.56096935",
"0.5592278",
"0.55125535",
"0.546174",
"0.54465413",
"0.5445446",
"0.5426525",
"0.54259396",
"0.5420885",
"0.540022"... | 0.80768776 | 0 |
Agrega un Director a la cola de directores | public synchronized void agregarDirector(Director director) {
System.out.println("SE LIBERO DIRECTOR");
getDirectores().add(director);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Director getDirector() {\n\treturn director;\n }",
"public AgregarClientes(Directorio directorio) {\n initComponents();\n this.directorio=directorio;\n \n \n }",
"public void setORM_Director(orm.Director value) {\n\t\tthis.director = value;\n\t}",
"public static void C... | [
"0.6027218",
"0.59199685",
"0.58411676",
"0.57306165",
"0.57148784",
"0.5611813",
"0.5462865",
"0.5425187",
"0.54089403",
"0.53894067",
"0.5383058",
"0.5367667",
"0.52043563",
"0.51553667",
"0.51454324",
"0.5145132",
"0.5143941",
"0.51410747",
"0.5098786",
"0.5078208",
"0.507... | 0.68056864 | 0 |
Agrega operador a la cola de operadores | public synchronized void agregarOperador(Operador operador) {
System.out.println("SE LIBERO OPERADOR");
getOperadores().add(operador);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOper(String oper) {\n this.oper = oper;\n }",
"public String getOper() {\n return oper;\n }",
"public String getOperador() {\n\t\treturn operador;\n\t}",
"public char getOper(){\n\t\treturn oper;\n\t}",
"public void operacao();",
"private String auxOperacion(int operand... | [
"0.722679",
"0.7139963",
"0.70186174",
"0.70085126",
"0.70072645",
"0.68838656",
"0.6844224",
"0.67621344",
"0.67516476",
"0.66638625",
"0.66289026",
"0.6532726",
"0.6508393",
"0.6502406",
"0.64501995",
"0.6445528",
"0.6397544",
"0.6375065",
"0.63646674",
"0.63646674",
"0.636... | 0.71204495 | 2 |
string name = 1; | java.lang.String getName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String n){ name=n; }",
"String getVarName(String name);",
"public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }",
"String getName( String name );",
"public void makeName(String str) {\n this.name = ... | [
"0.69225943",
"0.6681452",
"0.6639315",
"0.6543791",
"0.65432924",
"0.64611226",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
... | 0.0 | -1 |
string name = 1; | com.google.protobuf.ByteString
getNameBytes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String n){ name=n; }",
"String getVarName(String name);",
"public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }",
"String getName( String name );",
"public void makeName(String str) {\n this.name = ... | [
"0.69225943",
"0.6681452",
"0.6639315",
"0.6543791",
"0.65432924",
"0.64611226",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
... | 0.0 | -1 |
int32 age = 2; | int getAge(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\tint age = 56;\n\tInteger age2 = age;\n\tboolean raining = false;\n\tBoolean raining2 = raining;\n\tint i = 10;\n\tList<Integer> ages = new ArrayList<>();\n\tages.add(34);\n\t\n\t//valueO\n\t//If Integer gets converted to int type then its Unboxing\n}",
"IntValue create... | [
"0.646022",
"0.62739176",
"0.62739176",
"0.616013",
"0.61587524",
"0.6120473",
"0.61163807",
"0.61163807",
"0.60445887",
"0.60445887",
"0.60120934",
"0.59048986",
"0.5902778",
"0.5871985",
"0.5857336",
"0.5836807",
"0.5776326",
"0.5717868",
"0.5713054",
"0.5695866",
"0.569586... | 0.59110653 | 12 |
string address = 3; | java.lang.String getAddress(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getAddress(int type);",
"String getAddress();",
"String getAddress();",
"public Address createAddress(String address);",
"@Test\n public void testAddress()\n {\n System.out.println(\"address\");\n int addr = 16893;\n System.out.println(N2TCode.address(addr));\n Syst... | [
"0.7114771",
"0.6576144",
"0.6576144",
"0.64949864",
"0.64172506",
"0.63376343",
"0.626812",
"0.624743",
"0.624743",
"0.624743",
"0.624743",
"0.6168849",
"0.61191845",
"0.61041737",
"0.605273",
"0.60441357",
"0.6009725",
"0.600879",
"0.60054934",
"0.6001662",
"0.59972316",
... | 0.64712304 | 9 |
string address = 3; | com.google.protobuf.ByteString
getAddressBytes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getAddress(int type);",
"String getAddress();",
"String getAddress();",
"public Address createAddress(String address);",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
... | [
"0.7114771",
"0.6576144",
"0.6576144",
"0.64949864",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64172506",
"0.63376343",
"0.626812",
"0.624743",
"0.624743",
"0.624743",
"0.624743",
"0.6168849",
"0.61191845",
"0.61041737",
"0.605273"... | 0.0 | -1 |
Use Student.newBuilder() to construct. | private Student(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Student(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\t\t\tsuper(builder);\n\t\t}",
"public Student() {\n \n }",
"public Student(){}",
"public Student() {\r\n }",
"public Student build() { \n\t return new Student(this); \n\t }",
"public Student() {\... | [
"0.7378562",
"0.7208338",
"0.702391",
"0.702128",
"0.6971871",
"0.6950327",
"0.6950327",
"0.6950327",
"0.6893966",
"0.68392766",
"0.679275",
"0.67563725",
"0.675613",
"0.67419195",
"0.6726489",
"0.6713104",
"0.6706905",
"0.66868985",
"0.6679656",
"0.6666276",
"0.6657017",
"... | 0.7628555 | 0 |
string name = 1; | public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String n){ name=n; }",
"String getVarName(String name);",
"public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }",
"String getName( String name );",
"public void makeName(String str) {\n this.name = ... | [
"0.69225943",
"0.6681452",
"0.6639315",
"0.6543791",
"0.65432924",
"0.64611226",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
... | 0.0 | -1 |
string name = 1; | public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String n){ name=n; }",
"String getVarName(String name);",
"public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }",
"String getName( String name );",
"public void makeName(String str) {\n this.name = ... | [
"0.69225943",
"0.6681452",
"0.6639315",
"0.6543791",
"0.65432924",
"0.64611226",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
... | 0.0 | -1 |
int32 age = 2; | public int getAge() {
return age_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\tint age = 56;\n\tInteger age2 = age;\n\tboolean raining = false;\n\tBoolean raining2 = raining;\n\tint i = 10;\n\tList<Integer> ages = new ArrayList<>();\n\tages.add(34);\n\t\n\t//valueO\n\t//If Integer gets converted to int type then its Unboxing\n}",
"IntValue create... | [
"0.645936",
"0.6273181",
"0.6273181",
"0.6162131",
"0.6160512",
"0.6120948",
"0.61150336",
"0.61150336",
"0.60463375",
"0.60463375",
"0.6009807",
"0.5914632",
"0.5914632",
"0.5914632",
"0.590593",
"0.5900165",
"0.58739513",
"0.5857353",
"0.5835184",
"0.57748294",
"0.571957",
... | 0.0 | -1 |
string address = 3; | public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getAddress(int type);",
"String getAddress();",
"String getAddress();",
"public Address createAddress(String address);",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
... | [
"0.7114771",
"0.6576144",
"0.6576144",
"0.64949864",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64172506",
"0.63376343",
"0.626812",
"0.624743",
"0.624743",
"0.624743",
"0.624743",
"0.6168849",
"0.61191845",
"0.61041737",
"0.605273"... | 0.0 | -1 |
string address = 3; | public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getAddress(int type);",
"String getAddress();",
"String getAddress();",
"public Address createAddress(String address);",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
... | [
"0.7113045",
"0.6574343",
"0.6574343",
"0.6494728",
"0.64691573",
"0.64691573",
"0.64691573",
"0.64691573",
"0.64691573",
"0.64691573",
"0.64169115",
"0.63366884",
"0.6267853",
"0.62471056",
"0.62471056",
"0.62471056",
"0.62471056",
"0.6168465",
"0.6118003",
"0.6102788",
"0.6... | 0.0 | -1 |
string name = 1; | public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String n){ name=n; }",
"String getVarName(String name);",
"public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }",
"String getName( String name );",
"public void makeName(String str) {\n this.name = ... | [
"0.69225943",
"0.6681452",
"0.6639315",
"0.6543791",
"0.65432924",
"0.64611226",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
... | 0.0 | -1 |
string name = 1; | public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String n){ name=n; }",
"String getVarName(String name);",
"public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }",
"String getName( String name );",
"public void makeName(String str) {\n this.name = ... | [
"0.69225943",
"0.6681452",
"0.6639315",
"0.6543791",
"0.65432924",
"0.64611226",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
... | 0.0 | -1 |
string name = 1; | public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String n){ name=n; }",
"String getVarName(String name);",
"public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }",
"String getName( String name );",
"public void makeName(String str) {\n this.name = ... | [
"0.69225943",
"0.6681452",
"0.6639315",
"0.6543791",
"0.65432924",
"0.64611226",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
... | 0.0 | -1 |
string name = 1; | public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String n){ name=n; }",
"String getVarName(String name);",
"public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }",
"String getName( String name );",
"public void makeName(String str) {\n this.name = ... | [
"0.69225943",
"0.6681452",
"0.6639315",
"0.6543791",
"0.65432924",
"0.64611226",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
... | 0.0 | -1 |
string name = 1; | public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String n){ name=n; }",
"String getVarName(String name);",
"public void setName(String name) {\n this.name = name; // assigning a local variable value to a global variable\r\n }",
"String getName( String name );",
"public void makeName(String str) {\n this.name = ... | [
"0.69225943",
"0.6681452",
"0.6639315",
"0.6543791",
"0.65432924",
"0.64611226",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
"0.64381003",
... | 0.0 | -1 |
int32 age = 2; | public int getAge() {
return age_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\tint age = 56;\n\tInteger age2 = age;\n\tboolean raining = false;\n\tBoolean raining2 = raining;\n\tint i = 10;\n\tList<Integer> ages = new ArrayList<>();\n\tages.add(34);\n\t\n\t//valueO\n\t//If Integer gets converted to int type then its Unboxing\n}",
"IntValue create... | [
"0.645936",
"0.6273181",
"0.6273181",
"0.6162131",
"0.6160512",
"0.6120948",
"0.61150336",
"0.61150336",
"0.60463375",
"0.60463375",
"0.6009807",
"0.5914632",
"0.5914632",
"0.5914632",
"0.590593",
"0.5900165",
"0.58739513",
"0.5857353",
"0.5835184",
"0.57748294",
"0.571957",
... | 0.0 | -1 |
int32 age = 2; | public Builder setAge(int value) {
age_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\tint age = 56;\n\tInteger age2 = age;\n\tboolean raining = false;\n\tBoolean raining2 = raining;\n\tint i = 10;\n\tList<Integer> ages = new ArrayList<>();\n\tages.add(34);\n\t\n\t//valueO\n\t//If Integer gets converted to int type then its Unboxing\n}",
"IntValue create... | [
"0.645936",
"0.6273181",
"0.6273181",
"0.6162131",
"0.6160512",
"0.6120948",
"0.61150336",
"0.61150336",
"0.60463375",
"0.60463375",
"0.6009807",
"0.5914632",
"0.5914632",
"0.5914632",
"0.590593",
"0.5900165",
"0.58739513",
"0.5857353",
"0.5835184",
"0.57748294",
"0.571957",
... | 0.0 | -1 |
int32 age = 2; | public Builder clearAge() {
age_ = 0;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\tint age = 56;\n\tInteger age2 = age;\n\tboolean raining = false;\n\tBoolean raining2 = raining;\n\tint i = 10;\n\tList<Integer> ages = new ArrayList<>();\n\tages.add(34);\n\t\n\t//valueO\n\t//If Integer gets converted to int type then its Unboxing\n}",
"IntValue create... | [
"0.646022",
"0.62739176",
"0.62739176",
"0.616013",
"0.61587524",
"0.6120473",
"0.61163807",
"0.61163807",
"0.60445887",
"0.60445887",
"0.60120934",
"0.59110653",
"0.59110653",
"0.59110653",
"0.59048986",
"0.5902778",
"0.5871985",
"0.5857336",
"0.5836807",
"0.5776326",
"0.571... | 0.0 | -1 |
string address = 3; | public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
address_ = s;
return s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getAddress(int type);",
"String getAddress();",
"String getAddress();",
"public Address createAddress(String address);",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
... | [
"0.7114771",
"0.6576144",
"0.6576144",
"0.64949864",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64172506",
"0.63376343",
"0.626812",
"0.624743",
"0.624743",
"0.624743",
"0.624743",
"0.6168849",
"0.61191845",
"0.61041737",
"0.605273"... | 0.0 | -1 |
string address = 3; | public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
address_ = b;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getAddress(int type);",
"String getAddress();",
"String getAddress();",
"public Address createAddress(String address);",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
... | [
"0.7114771",
"0.6576144",
"0.6576144",
"0.64949864",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64172506",
"0.63376343",
"0.626812",
"0.624743",
"0.624743",
"0.624743",
"0.624743",
"0.6168849",
"0.61191845",
"0.61041737",
"0.605273"... | 0.0 | -1 |
string address = 3; | public Builder setAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getAddress(int type);",
"String getAddress();",
"String getAddress();",
"public Address createAddress(String address);",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
... | [
"0.7114771",
"0.6576144",
"0.6576144",
"0.64949864",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64172506",
"0.63376343",
"0.626812",
"0.624743",
"0.624743",
"0.624743",
"0.624743",
"0.6168849",
"0.61191845",
"0.61041737",
"0.605273"... | 0.0 | -1 |
string address = 3; | public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getAddress(int type);",
"String getAddress();",
"String getAddress();",
"public Address createAddress(String address);",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
... | [
"0.7113045",
"0.6574343",
"0.6574343",
"0.6494728",
"0.64691573",
"0.64691573",
"0.64691573",
"0.64691573",
"0.64691573",
"0.64691573",
"0.64169115",
"0.63366884",
"0.6267853",
"0.62471056",
"0.62471056",
"0.62471056",
"0.62471056",
"0.6168465",
"0.6118003",
"0.6102788",
"0.6... | 0.0 | -1 |
string address = 3; | public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
address_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getAddress(int type);",
"String getAddress();",
"String getAddress();",
"public Address createAddress(String address);",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
... | [
"0.7114771",
"0.6576144",
"0.6576144",
"0.64949864",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64712304",
"0.64172506",
"0.63376343",
"0.626812",
"0.624743",
"0.624743",
"0.624743",
"0.624743",
"0.6168849",
"0.61191845",
"0.61041737",
"0.605273"... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.