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 |
|---|---|---|---|---|---|---|
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.view_screen, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
create web engine and view | public BorderPane getMapView() {
final WebEngine webEngine = new WebEngine(getClass().getResource("/racesearcher/ui/map/map.html").toString());
final WebView webView = new WebView(webEngine);
// create map type buttons
final ToggleGroup mapTypeGroup = new ToggleGroup();
final ToggleButton road = new ToggleButton("Road");
road.setSelected(true);
road.setToggleGroup(mapTypeGroup);
final ToggleButton satellite = new ToggleButton("Satellite");
satellite.setToggleGroup(mapTypeGroup);
final ToggleButton hybrid = new ToggleButton("Hybrid");
hybrid.setToggleGroup(mapTypeGroup);
final ToggleButton terrain = new ToggleButton("Terrain");
terrain.setToggleGroup(mapTypeGroup);
mapTypeGroup.selectedToggleProperty().addListener(
new ChangeListener<Toggle>() {
public void changed(
ObservableValue<? extends Toggle> observableValue,
Toggle toggle, Toggle toggle1) {
if (road.isSelected()) {
webEngine.executeScript("document.setMapTypeRoad()");
} else if (satellite.isSelected()) {
webEngine.executeScript(
"document.setMapTypeSatellite()");
} else if (hybrid.isSelected()) {
webEngine.executeScript(
"document.setMapTypeHybrid()");
} else if (terrain.isSelected()) {
webEngine.executeScript(
"document.setMapTypeTerrain()");
}
}
});
Button zoomIn = new Button("Zoom In");
zoomIn.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent actionEvent) {
webEngine.executeScript("document.zoomIn()");
}
});
Button zoomOut = new Button("Zoom Out");
zoomOut.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent actionEvent) {
webEngine.executeScript("document.zoomOut()");
}
});
// create toolbar
ToolBar toolBar = new ToolBar();
toolBar.getStyleClass().add("map-toolbar");
toolBar.getItems().addAll(
road, satellite, hybrid, terrain,
createSpacer(),
new Label("Location:"), zoomIn, zoomOut);
// create root
BorderPane root = new BorderPane();
root.getStyleClass().add("map");
root.setCenter(webView);
root.setTop(toolBar);
return root;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initWebView(){ \r\n WebEngine webEngine = viewerPane.getEngine();\r\n webEngine.load(\"http://www.google.com\");\r\n }",
"private WebView createWebView() {\n WebView webView = new WebView();\n webView.setContextMenuEnabled(false);\n\n WebEngine engine = webView.... | [
"0.66213936",
"0.62855417",
"0.62558657",
"0.5995778",
"0.5963241",
"0.5909364",
"0.57426643",
"0.5670974",
"0.56332237",
"0.5603138",
"0.56022793",
"0.55726683",
"0.5550574",
"0.55364305",
"0.5518263",
"0.5508858",
"0.55015093",
"0.5483048",
"0.54489744",
"0.5446621",
"0.541... | 0.0 | -1 |
Constructs an IllegalMoveException with the specified detail message. | public IllegalMoveException(String message) {
super(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InvalidMoveException(String message) {\n super(message);\n }",
"public InvalidMoveException() {\n super(\"Invalid move!\");\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException2() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl(... | [
"0.80850995",
"0.7681344",
"0.64485025",
"0.64071596",
"0.63936543",
"0.6376573",
"0.63675874",
"0.63546854",
"0.634319",
"0.63366175",
"0.63242453",
"0.6297947",
"0.6273376",
"0.62623155",
"0.62557846",
"0.62381625",
"0.62314266",
"0.6210796",
"0.6188932",
"0.61824954",
"0.6... | 0.8321725 | 0 |
How many seconds between army spawn | public static int getArmySpawnSpeed(int city) {
switch(city) {
case 1:
return 8000;
case 2:
return 5500;
case 3:
return 4000;
case 4:
return 3000;
}
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doTimeStep() {\r\n\t\twalk(getRandomInt(8));\r\n\t\tif (getEnergy() < 6 * Params.min_reproduce_energy && getEnergy() > Params.min_reproduce_energy) {\r\n\t\t\tCritter1 child = new Critter1();\r\n\t\t\treproduce(child, getRandomInt(8));\r\n\t\t\tnumberSpawned += 1;\r\n\t\t}else if(getEnergy() < Params.m... | [
"0.6328474",
"0.5913451",
"0.5901173",
"0.58873194",
"0.581779",
"0.58176386",
"0.5806366",
"0.5784565",
"0.57760566",
"0.5761233",
"0.5752211",
"0.5732237",
"0.5731334",
"0.5731334",
"0.5706164",
"0.569315",
"0.5681711",
"0.56799775",
"0.56419474",
"0.56419474",
"0.56411815"... | 0.0 | -1 |
Constructor of the system view that take as input the bodies's system model | public NBodiesSystemView(INBodiesSystemModel bodiesModel) {
model = bodiesModel;
paintSynchSemaphore = new Semaphore(0);
initializeGUI();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public System(String systemMake, String systemModel, int processorSpeed)\n\t{\n\t\tmake = systemMake;\n\t\tmodel = systemModel;\n\t\tspeed = processorSpeed;\n\t}",
"private EntityManager initSystems() {\n CameraSystem cameraSystem = new CameraSystem(Constants.WINDOW_WIDTH, Constants.WINDOW_HEIGHT);\n ... | [
"0.6557299",
"0.65158063",
"0.64835465",
"0.62083644",
"0.6003452",
"0.593258",
"0.5917318",
"0.59081054",
"0.5867463",
"0.5864801",
"0.58539975",
"0.58426607",
"0.5838978",
"0.58297",
"0.58121294",
"0.58101505",
"0.5794316",
"0.5780417",
"0.57763666",
"0.57716936",
"0.576038... | 0.73546916 | 0 |
Method to initialize the GUI of the system's view | private void initializeGUI() {
// system's view windows dimensions
windowsDimension = new Dimension(900, 700);
// system's main frame and its properties
frameSystem = new JFrame("NBodies System Viewer");
frameSystem.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frameSystem.setResizable(false);
frameSystem.setBackground(Color.white);
// buttons and their properties
btnNextStep = new JButton("Next Step");
btnStart = new JButton("Start");
btnStart.setSize(btnNextStep.getSize());
btnPause = new JButton("Pause");
btnPause.setSize(btnNextStep.getSize());
btnReset = new JButton("Reset");
btnReset.setSize(btnNextStep.getSize());
btnRestart = new JButton("Restart Application");
btnRestart.setSize(btnNextStep.getSize());
// control console and its properties and internal buttons
controlConsole = new JPanel();
controlConsole.setBackground(new Color(180, 180, 180));
controlConsole.add(btnStart);
controlConsole.add(btnNextStep);
controlConsole.add(btnPause);
controlConsole.add(btnReset);
controlConsole.add(btnRestart);
// label related to the number of bodies involved in the system and its
// properties
lblNBodies = new JLabel("- Number of bodies: 0", JLabel.RIGHT);
controlConsole.add(lblNBodies);
// bodies's display and its properties (background color black to
// simulate the space)
bodiesDisplay = new BodiesSystemDisplay(model);
bodiesDisplay.setBackground(new Color(0, 0, 0));
// master panel and its layout's properties
masterPanel = new JPanel();
LayoutManager layout = new BorderLayout();
masterPanel.setLayout(layout);
masterPanel.add(BorderLayout.NORTH, controlConsole);
masterPanel.add(BorderLayout.CENTER, bodiesDisplay);
// view's main frame and its properties
frameSystem.setContentPane(masterPanel);
frameSystem.setSize(windowsDimension);
frameSystem.setLocationRelativeTo(null);
frameSystem.setVisible(true);
bodiesDisplay.setUpBuffer();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void initUI();",
"void initView();",
"public void init()\n {\n buildUI(getContentPane());\n }",
"private void initUI() {\n }",
"private void initializateGUI() {\n\t\t\n\t\t\n\t\tthis.menuBar = buildMenuBar();\n\t\t\n\t\tthis.toolBar = buildToolBar();\n\t\t\n\t\tthis.container = (JComponent)... | [
"0.7809708",
"0.7804583",
"0.7792427",
"0.7791874",
"0.77535313",
"0.77414167",
"0.7706454",
"0.76411366",
"0.7622341",
"0.7611098",
"0.754039",
"0.75356936",
"0.75021523",
"0.7491324",
"0.7482904",
"0.74825746",
"0.747868",
"0.7475638",
"0.7452739",
"0.7440686",
"0.74307495"... | 0.0 | -1 |
TODO load bacteria configuration from XML file | public static boolean verification(List<Bacteria> bacterias) {
double[][] centralDistancesIJ = new double[bacterias.size()][bacterias
.size()];
double[][] actualDistancesIJ = new double[bacterias.size()][bacterias
.size()];
double actualDistanceX;
double actualDistanceY;
int sum = 0;
for (int i = 0; i <= (bacterias.size() - 1); i++) {
for (int j = i + 1; j < bacterias.size(); j++) {
centralDistancesIJ[i][j] = bacterias.get(i).getDiameter() / 2
+ bacterias.get(j).getDiameter() / 2;
actualDistanceX = bacterias.get(j).getX()
- bacterias.get(j).getX()
+ bacterias.get(j).getDiameter() / 2
- bacterias.get(i).getDiameter() / 2;
actualDistanceY = bacterias.get(j).getY()
- bacterias.get(i).getY()
+ bacterias.get(j).getDiameter() / 2
- bacterias.get(i).getDiameter() / 2;
actualDistancesIJ[i][j] = Math.round(Math.sqrt(Math.pow(
actualDistanceX, 2)
+ Math.pow(actualDistanceY, 2)));
if (actualDistancesIJ[i][j] >= centralDistancesIJ[i][j]) {
sum = sum + 1;
}
}
}
System.out.println("sum: " + sum);
if (sum == bacterias.size() * (bacterias.size() - 1) / 2) {
return true;
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void procesarConfiguracion() {\n try {\n\n\n IXMLParser parser = XMLParserFactory.createDefaultXMLParser();\n IXMLReader reader = StdXMLReader.fileReader(Servidor.path_config);\n parser.setReader(reader);\n IXMLElement xml = (IXMLElement) parser.parse();\n... | [
"0.5906401",
"0.58301175",
"0.5781118",
"0.57730407",
"0.55172586",
"0.5506309",
"0.5483439",
"0.5411578",
"0.5368656",
"0.5354582",
"0.52759683",
"0.52300787",
"0.5218008",
"0.52138525",
"0.5180408",
"0.517808",
"0.51732755",
"0.51573944",
"0.5118149",
"0.5104822",
"0.510089... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
CustomizedException obj=new CustomizedException();
try {
int age=obj.getAge();
if(age<0)
throw new negativeException();
else
System.out.println(age);
}
catch(negativeException e) {
System.out.println(e);
}
} | {
"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 |
Validates if incoming entity is create Valid | void validateCreate(T entity); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void validateCreate(ClaudiaData claudiaData, EnvironmentDto environmentDto, String vdc) throws \r\n AlreadyExistEntityException, InvalidEntityException;",
"protected void validateEntity() {\n super.validateEntity();\n }",
"void validateActivoCreate(Activo activo);",
"private boolean requ... | [
"0.7510596",
"0.7188773",
"0.7083778",
"0.6740386",
"0.66734856",
"0.6573501",
"0.6466415",
"0.64661723",
"0.62855273",
"0.6202302",
"0.6174277",
"0.6170834",
"0.61363214",
"0.6119689",
"0.6073261",
"0.6058458",
"0.6036304",
"0.6028185",
"0.5969727",
"0.5960377",
"0.5924508",... | 0.81998223 | 0 |
Getters y setters para cada tabla y por nodo. De esta forma evitamos condiciones de carrera en los distintos hilos | public boolean isTimerConvergencia() {
return timerConvergencia;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void preencherTabela() {\n\t\tList<Cidade> listCidade;\n\t\tCidadeDAO cidadeDAO;\n\t\tObservableList<Cidade> oListCidade;\n\n\t\t// Determina os atributos que irão preencher as colunas\n\t\tcolCidade.setCellValueFactory(new PropertyValueFactory<>(\"nomeCidades\"));\n\t\tcolEstado.setCellValueFactory(new Pr... | [
"0.61637956",
"0.6119759",
"0.5961431",
"0.59120905",
"0.5881505",
"0.58646005",
"0.5860409",
"0.580299",
"0.5802367",
"0.5787748",
"0.5762851",
"0.5706358",
"0.5704539",
"0.57028556",
"0.5678564",
"0.5671035",
"0.5654481",
"0.5586565",
"0.5579804",
"0.55715346",
"0.5563678",... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Page<Object[]> getPaging(String type, String keyword, Pageable page) {
QBoardVO board = QBoardVO.boardVO;
QBoardReplyVO reply = QBoardReplyVO.boardReplyVO;
/** Query Make Search Table */
JPQLQuery<BoardVO> query = from(board);
/** Query Select Set */
JPQLQuery<Tuple> tuple = query.select(board.idx, board.title, board.content, board.writer, reply.count(), board.createdAt, board.updatedAt);
/** Left JOIN */
tuple.leftJoin(reply);
/** LEFT JOIN ON OPTION */
tuple.on(board.idx.eq(reply.board.idx));
tuple.where(board.idx.gt(0L));
/** Search Option Type */
if(type != null) {
switch(type.toLowerCase()) {
case "t":
tuple.where(board.title.like("%" + keyword + "%"));
break;
case "w":
tuple.where(board.writer.like("%" + keyword + "%"));
break;
case "c":
tuple.where(board.content.like("%" + keyword + "%"));
break;
}
}
/** Group By */
tuple.groupBy(board.idx);
/** ORDER DESC */
tuple.orderBy(board.idx.desc());
/** Paging */
tuple.offset(page.getOffset());
tuple.limit(page.getPageSize());
/** Get Fetch */
List<Tuple> list = tuple.fetch();
/** Return List */
List<Object[]> resultList = new ArrayList<>();
/** And Reply */
list.forEach(t->{
resultList.add(t.toArray());
});
/** Fetch Count */
long total = tuple.fetchCount();
return new PageImpl<>(resultList, page, total);
} | {
"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 |
Checks if the CTPL specification holds for the entrypoint of kripke structure k. | public static boolean check(KripkeStructure k, Specification spec) {
List formulas = spec.getSubformulaList();
log.info("======= Modelchecker Start =======");
long startTime = System.currentTimeMillis();
/* iterate all subformulas */
for (Iterator fIter = formulas.iterator(); fIter.hasNext();) {
CtplTreeNode f = (CtplTreeNode)fIter.next();
/*
* AF psi
*/
if (f.getValue().equals(CtplOperator.AF)) {
CtplTreeNode psi = f.getChild(0);
boolean changed = false;
System.out.print("Checking AF, Iterations:");
// If any state is labelled with psi
// then label this state with AF psi.
for (Iterator iter = k.getGraph().vertexSet().iterator(); iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (s.hasLabel(psi))
changed |= s.addLabel(f, (BindingSet)s.getBindingSet(psi).clone());
}
// Fixed point algorithm
int iterations = 0;
while (changed) {
System.out.print(" " + ++iterations);
changed = false;
stateIteration: for (Iterator iter = k.getGraph().vertexSet().iterator();
iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (k.getGraph().outDegreeOf(s) < 1) continue;
BindingSet join = null;
// boolean isAF = true;
for (Iterator cIter = k.getGraph().outgoingEdgesOf(s).iterator(); cIter.hasNext();) {
KripkeNode child = (KripkeNode)((DirectedEdge)(cIter.next())).getTarget();
if (!child.hasLabel(f)) continue stateIteration;
else {
if (join == null) join = child.getBindingSet(f);
else join = BindingSet.and(child.getBindingSet(f), join);
if (join.isEmpty()) continue stateIteration;
}
}
changed |= s.addLabel(f, join);
}
}
System.out.println(" Done.");
}
/*
* EF(phi)
*/
else if (f.getValue().equals(CtplOperator.EF)) {
CtplTreeNode phi = f.getChild(0);
boolean changed = false;
System.out.print("Checking EF, Iterations:");
// If any state is labelled with the formula f
// within EF, then label this state with EF(f).
for (Iterator iter = k.getGraph().vertexSet().iterator(); iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (s.hasLabel(phi))
changed |= s.addLabel(f, (BindingSet)s.getBindingSet(phi).clone());
}
// Fixed point algorithm
int iterations = 0;
while (changed) {
System.out.print(" " + ++iterations);
k.clearMarks();
changed = false;
LinkedList queue = new LinkedList();
queue.add(k.getExitNode());
while(!queue.isEmpty()) {
/* Breadth first search */
KripkeNode s = (KripkeNode)queue.removeFirst();
s.mark(); // Make sure to only access every node once.
/* Iterate parents */
// TODO: No support for procedures with multiple return statements.
for (Iterator iter = k.getGraph().incomingEdgesOf(s).iterator(); iter.hasNext();) {
KripkeNode parent = (KripkeNode)((DirectedEdge)(iter.next())).getSource();
/* parent propagation goes here */
if (s.hasLabel(f)) changed |= parent.addLabel(f, (BindingSet)s.getBindingSet(f).clone());
if (!parent.isMarked()) queue.add(parent);
}
}
}
System.out.println(" Done.");
}
/*
* E phi U psi
*/
else if (f.getValue().equals(CtplOperator.EU)) {
CtplTreeNode phi = f.getChild(0);
CtplTreeNode psi = f.getChild(1);
boolean changed = false;
System.out.print("Checking EU, Iterations:");
// If any state is labelled with the formula psi
// within E phi U psi, then label this state with E phi U psi.
for (Iterator iter = k.getGraph().vertexSet().iterator(); iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (s.hasLabel(psi))
changed |= s.addLabel(f, (BindingSet)s.getBindingSet(psi).clone());
}
// Fixed point algorithm
int iterations = 0;
while (changed) {
System.out.print(" " + ++iterations);
k.clearMarks();
changed = false;
LinkedList queue = new LinkedList();
queue.add(k.getExitNode());
while(!queue.isEmpty()) {
/* Breadth first search */
KripkeNode s = (KripkeNode)queue.removeFirst();
s.mark(); // Make sure to only access every node once.
/* Iterate parents */
// TODO: No support for procedures with multiple return statements.
for (Iterator iter = k.getGraph().incomingEdgesOf(s).iterator(); iter.hasNext();) {
KripkeNode parent = (KripkeNode)((DirectedEdge)(iter.next())).getSource();
/* parent propagation goes here */
if (s.hasLabel(f)
&& parent.hasLabel(phi)) {
BindingSet join = BindingSet.and(s.getBindingSet(f), parent.getBindingSet(phi));
if (!join.isEmpty()) changed |= parent.addLabel(f, join);
}
if (!parent.isMarked()) queue.add(parent);
}
}
}
System.out.println(" Done.");
}
/*
* EX
*/
else if (f.getValue().equals(CtplOperator.EX)) {
for (Iterator iter = k.getGraph().vertexSet().iterator();
iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (s.hasLabel(f.getChild(0)))
for (Iterator iter2 = k.getGraph().incomingEdgesOf(s).iterator(); iter2.hasNext();) {
KripkeNode parent = (KripkeNode)((DirectedEdge)(iter2.next())).getSource();
parent.addLabel(f, (BindingSet)s.getBindingSet(f.getChild(0)).clone());
}
}
}
/*
* AND
*/
else if (f.getValue().equals(CtplOperator.AND)) {
//System.out.println(f.getChild(1).toString());
for (Iterator iter = k.getGraph().vertexSet().iterator();
iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (s.hasLabel(f.getChild(0))
&& s.hasLabel(f.getChild(1))) {
BindingSet join = BindingSet.and(s.getBindingSet(f.getChild(0)),
s.getBindingSet(f.getChild(1)));
if (!join.isEmpty()) s.setLabel(f, join);
}
}
}
/*
* OR
*/
else if (f.getValue().equals(CtplOperator.OR)) {
for (Iterator iter = k.getGraph().vertexSet().iterator();
iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (s.hasLabel(f.getChild(0))) {
BindingSet c = s.getBindingSet(f.getChild(0));
if (s.hasLabel(f.getChild(1))) c = BindingSet.or(c, s.getBindingSet(f.getChild(1)));
s.setLabel(f, c);
}
else if (s.hasLabel(f.getChild(1)))
s.setLabel(f, s.getBindingSet(f.getChild(1)));
}
}
/*
* NOT
*/
else if (f.getValue().equals(CtplOperator.NOT)) {
for (Iterator iter = k.getGraph().vertexSet().iterator();
iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (!s.hasLabel(f.getChild(0))) {
BindingSet c = new BindingSet();
c.add(BindingClause.emptyClause);
s.setLabel(f, c);
}
else {
BindingSet res = BindingSet.negate(s.getBindingSet(f.getChild(0)));
if (!res.isEmpty()) s.setLabel(f, res);
}
}
}
/*
* EXISTS QUANTIFIER
*/
else if (f.getValue().equals(CtplQuantifier.EXISTS)) {
for (Iterator iter = k.getGraph().vertexSet().iterator();
iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (s.hasLabel(f.getChild(0))) {
s.setLabel(f, BindingSet.purge(
s.getBindingSet(f.getChild(0)),
((CtplQuantifier)f.getValue()).getParameter())
);
}
}
}
/*
* PREDICATE
*/
else {
/* location predicates are no instructions, but special */
boolean locOnly;
if (((CtplPredicate)f.getValue()).getBody().equals(P_LOCATION))
locOnly = true;
else locOnly = false;
for (Iterator iter = k.getGraph().vertexSet().iterator();
iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
BindingClause b;
if (locOnly)
b = s.getInstruction().getLocation().unify((CtplPredicate)f.getValue());
else
b = s.getInstruction().unify((CtplPredicate)f.getValue());
if (b != null) {
BindingSet c = new BindingSet();
c.add(b);
if (locOnly) s.addLabel(f, c);
else s.setLabel(f, c);
}
}
}
}
long stopTime = System.currentTimeMillis();
log.info("======= Modelchecker Stop =======");
log.info("Finished after " + (stopTime - startTime) + "ms.");
return k.getEntryNode().hasLabel((CtplTreeNode)formulas.get(formulas.size() - 1));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasPkpfe1000();",
"public boolean hasK() {\n return resultCase_ == 3;\n }",
"public boolean hasK() {\n return resultCase_ == 3;\n }",
"public boolean shouldRender(CodePackageTag cpt) {\n\t\treturn null == this.getKey() || this.getKey().equals(cpt.getKey());\n\t}",
"public boolean checkK... | [
"0.6223217",
"0.61192596",
"0.6102082",
"0.5852612",
"0.58524954",
"0.5740376",
"0.5729487",
"0.5729487",
"0.5717794",
"0.56338215",
"0.5594873",
"0.5591644",
"0.5518533",
"0.54890794",
"0.5470428",
"0.5458215",
"0.5443131",
"0.5435085",
"0.5435085",
"0.5434555",
"0.54306597"... | 0.5188542 | 43 |
saves a serializable data to the given file. | public static void save(Serializable data, String fileName) throws Exception {
try(ObjectOutputStream out = new ObjectOutputStream( Files.newOutputStream(Paths.get(fileName)) )) {
out.writeObject(data);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveAsSerialization() {\n try(ObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(new File(\"saves/data.dat\")))){\n os.writeObject(this);\n } catch (FileNotFoundException e){\n System.out.println(\"Could not create file: \" + e.getMessage());\n ... | [
"0.75939846",
"0.74093735",
"0.7344652",
"0.73194456",
"0.7203646",
"0.7160934",
"0.705622",
"0.70444876",
"0.69595057",
"0.69087625",
"0.6888298",
"0.68349224",
"0.67695487",
"0.67532784",
"0.66992104",
"0.66873854",
"0.6686645",
"0.6678756",
"0.6675702",
"0.66115385",
"0.65... | 0.78280574 | 0 |
loads data from a given file location | public static Object load(String fileName) throws Exception {
try (ObjectInputStream in = new ObjectInputStream( Files.newInputStream(Paths.get(fileName)) )) {
return in.readObject();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"File getLoadLocation();",
"@Override\n\tpublic void loadData() throws FileNotFoundException {\n\t\tthis.getPromoShare();\n\t}",
"public abstract void load() throws IOException;",
"public void load(File source);",
"public void load (File file) throws Exception;",
"protected abstract void loadData();",
"... | [
"0.6898884",
"0.6836684",
"0.6545876",
"0.6537166",
"0.6530574",
"0.6497009",
"0.6413116",
"0.63871706",
"0.637065",
"0.6340555",
"0.6337036",
"0.6337036",
"0.6334166",
"0.6275853",
"0.62471795",
"0.6236691",
"0.6234228",
"0.62163115",
"0.61726207",
"0.61582637",
"0.6127883",... | 0.0 | -1 |
This doesn't really need to be a dynamic method, since it doesn't use `this` | static void checkSignatures() {
Reader stringReader;
StringBuffer out;
FreecellOperations<?> model = FreecellModelCreator.create(
FreecellModelCreator.GameType.MULTIMOVE);
checkNewModel(
FreecellModelCreator.create(FreecellModelCreator.GameType
.MULTIMOVE),
FreecellModelCreator.create(FreecellModelCreator.GameType.MULTIMOVE)
.getDeck());
stringReader = new StringReader("C1 8 F1 q");
out = new StringBuffer();
checkNewController(
FreecellModelCreator.create(FreecellModelCreator.GameType.SINGLEMOVE),
FreecellModelCreator.create(FreecellModelCreator.GameType.SINGLEMOVE)
.getDeck(),
new FreecellController(stringReader, out));
checkNewController(
FreecellModelCreator.create(FreecellModelCreator.GameType.MULTIMOVE),
FreecellModelCreator.create(FreecellModelCreator.GameType.MULTIMOVE)
.getDeck(),
new FreecellController(stringReader, out));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"public static void thisMethod() {\n }",
"protected abstract T self();",
"protected abstract T self();",
"protected abstract T self();",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"@Over... | [
"0.67245024",
"0.6397118",
"0.62968636",
"0.62968636",
"0.62968636",
"0.627879",
"0.6248976",
"0.61929625",
"0.61929625",
"0.6023068",
"0.601901",
"0.5990302",
"0.59865034",
"0.59765345",
"0.5972805",
"0.59598255",
"0.59521353",
"0.5931428",
"0.59259266",
"0.5912702",
"0.5905... | 0.0 | -1 |
This doesn't really need to be a dynamic method, since it doesn't use `this` | static <K> void checkNewController(FreecellOperations<K> model, List<K> deck,
IFreecellController<K> controller) {
String input = "4 3";
try {
controller.playGame(deck, model, 7, 4, false);
} catch (IOException e) {
// No need to do anything with type checks
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"public static void thisMethod() {\n }",
"protected abstract T self();",
"protected abstract T self();",
"protected abstract T self();",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"@Over... | [
"0.6723592",
"0.6395381",
"0.62951493",
"0.62951493",
"0.62951493",
"0.62784183",
"0.62484574",
"0.6192683",
"0.6192683",
"0.6024335",
"0.60186386",
"0.59908754",
"0.59873784",
"0.5976329",
"0.5973742",
"0.5956677",
"0.595193",
"0.5930994",
"0.5925682",
"0.59125286",
"0.59052... | 0.0 | -1 |
TODO Autogenerated method stub /Intent i = new Intent(context, CallActivity.class); i.putExtras(intent.getExtras()); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(i); | @Override
public void onReceive(Context context, Intent intent) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View v) {\n Intent intent=new Intent(Intent.ACTION_CALL_BUTTON);\n //intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"public void makeCall(Context context){\n dbAdapter = new C... | [
"0.7732762",
"0.70952517",
"0.7019121",
"0.69881004",
"0.6979827",
"0.6928559",
"0.6925503",
"0.691212",
"0.69111854",
"0.6877205",
"0.6849008",
"0.68370336",
"0.6822787",
"0.6794386",
"0.67881936",
"0.6781781",
"0.67692",
"0.6738195",
"0.6734944",
"0.67095506",
"0.6671003",
... | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | private void initComponents()
{
java.awt.GridBagConstraints gridBagConstraints ;
operationPanel = new javax.swing.JPanel() ;
textScrollPanel = new javax.swing.JScrollPane() ;
operationTextPane = new javax.swing.JTextPane() ;
controlPanel = new javax.swing.JPanel() ;
runCancelButton = new javax.swing.JButton() ;
filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0),
new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 32767)) ;
closeButton = new javax.swing.JButton() ;
setPreferredSize(new java.awt.Dimension(780, 460)) ;
setLayout(new java.awt.GridBagLayout()) ;
operationPanel
.setBorder(javax.swing.BorderFactory.createTitledBorder("Operations")) ;
operationPanel.setLayout(new java.awt.GridBagLayout()) ;
operationTextPane.setEditable(false) ;
textScrollPanel.setViewportView(operationTextPane) ;
gridBagConstraints = new java.awt.GridBagConstraints() ;
gridBagConstraints.gridx = 0 ;
gridBagConstraints.gridy = 0 ;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH ;
gridBagConstraints.weightx = 1.0 ;
gridBagConstraints.weighty = 1.0 ;
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2) ;
operationPanel.add(textScrollPanel, gridBagConstraints) ;
gridBagConstraints = new java.awt.GridBagConstraints() ;
gridBagConstraints.gridx = 0 ;
gridBagConstraints.gridy = 0 ;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH ;
gridBagConstraints.weightx = 1.0 ;
gridBagConstraints.weighty = 1.0 ;
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2) ;
add(operationPanel, gridBagConstraints) ;
controlPanel.setLayout(new java.awt.GridBagLayout()) ;
runCancelButton.setText("run") ;
runCancelButton.addActionListener(new java.awt.event.ActionListener()
{
@Override
public void actionPerformed(java.awt.event.ActionEvent evt)
{
runCancelButtonActionPerformed(evt) ;
}
}) ;
gridBagConstraints = new java.awt.GridBagConstraints() ;
gridBagConstraints.gridx = 0 ;
gridBagConstraints.gridy = 0 ;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH ;
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2) ;
controlPanel.add(runCancelButton, gridBagConstraints) ;
gridBagConstraints = new java.awt.GridBagConstraints() ;
gridBagConstraints.gridx = 1 ;
gridBagConstraints.gridy = 0 ;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH ;
gridBagConstraints.weightx = 1.0 ;
gridBagConstraints.weighty = 1.0 ;
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2) ;
controlPanel.add(filler1, gridBagConstraints) ;
closeButton.setText("close") ;
closeButton.addActionListener(new java.awt.event.ActionListener()
{
@Override
public void actionPerformed(java.awt.event.ActionEvent evt)
{
closeButtonActionPerformed(evt) ;
}
}) ;
gridBagConstraints = new java.awt.GridBagConstraints() ;
gridBagConstraints.gridx = 2 ;
gridBagConstraints.gridy = 0 ;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH ;
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2) ;
controlPanel.add(closeButton, gridBagConstraints) ;
gridBagConstraints = new java.awt.GridBagConstraints() ;
gridBagConstraints.gridx = 0 ;
gridBagConstraints.gridy = 1 ;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH ;
gridBagConstraints.weightx = 0.1 ;
gridBagConstraints.weighty = 0.1 ;
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2) ;
add(controlPanel, gridBagConstraints) ;
} | {
"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.73191476",
"0.72906625",
"0.72906625",
"0.72906625",
"0.72860986",
"0.7248112",
"0.7213479",
"0.72078276",
"0.7195841",
"0.71899796",
"0.71840525",
"0.7158498",
"0.71477973",
"0.7092748",
"0.70800966",
"0.70558053",
"0.69871384",
"0.69773406",
"0.69548076",
"0.69533914",
"... | 0.0 | -1 |
End of variables declaration | @Override
protected void enableReinitControl(boolean isEnable)
{
// Nothing to do.
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }",
"protected void initVars() {}",
"private void assignment() {\n\n\t\t\t}",
"private void declareLocals() {\r\n\t\t/... | [
"0.6759361",
"0.6568837",
"0.62458223",
"0.61133546",
"0.60982347",
"0.6087512",
"0.60586846",
"0.5882926",
"0.5873854",
"0.5771458",
"0.5769804",
"0.57594293",
"0.57517105",
"0.57495594",
"0.5749265",
"0.5725298",
"0.57189494",
"0.5666249",
"0.5654246",
"0.5628506",
"0.56269... | 0.0 | -1 |
This is the public class Calculation. it is public so we can use it in the main method The parameters ensure that it has two numbers to calculate, both as doubles. / | public Calculation (double firstVariable, double secondVariable){
setFirstVariable(firstVariable);
setSecondVariable(secondVariable);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}",
"double performeOperation(double argument1, double argument2);",
"public abstract double calcular();",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n double x = s.nextDouble();\n ... | [
"0.70118093",
"0.69706565",
"0.6887056",
"0.6835117",
"0.679446",
"0.67913055",
"0.67808944",
"0.67173094",
"0.67040545",
"0.6702593",
"0.67022175",
"0.66901803",
"0.6687583",
"0.6684734",
"0.6666435",
"0.66243386",
"0.66173357",
"0.66063726",
"0.66015005",
"0.6598586",
"0.65... | 0.68889505 | 2 |
Using multiple override methods to make the scanner inputs from the main method go through the following calculations for them. Each method will return the outcome of that calculation. | @Override
public double add() {
double outcome = firstVariable + secondVariable;
return outcome;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract int calculateOutput();",
"public static void main(String[] args) {\n\t\tCalculatorScanner calculatorScanner = new CalculatorScanner();\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter 2 numbers:- \");\n\t\tint num1 = scanner.nextInt();\n\t\tint num2 = scanner.nextInt... | [
"0.6517285",
"0.6495779",
"0.64737725",
"0.6419239",
"0.63416463",
"0.63061845",
"0.6236217",
"0.6232093",
"0.62190175",
"0.6203521",
"0.61831987",
"0.61750895",
"0.61143786",
"0.6098281",
"0.6067651",
"0.60513616",
"0.60395056",
"0.6038721",
"0.6031005",
"0.6019341",
"0.6012... | 0.0 | -1 |
The Getters and Setters for our private variables. We are using this to again, ensure encapsulation of the variables. | public double getFirstVariable() {
return firstVariable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"public void setPrivate()\n {\n ensureLoaded();\n m_flags.setPrivate();\n setModified(true);\n }",
"public Variables() {\n this.numCliente = 0;\n this.tiempoSalida = 999;\n }",
"protected void initVars() {}",
"@Overri... | [
"0.66093785",
"0.6288829",
"0.5886285",
"0.5869999",
"0.5785741",
"0.5728579",
"0.56786245",
"0.5677237",
"0.56456065",
"0.5628751",
"0.5594432",
"0.5584945",
"0.55477905",
"0.5503753",
"0.54926986",
"0.5478483",
"0.5454968",
"0.5454427",
"0.54458904",
"0.5428317",
"0.5423369... | 0.0 | -1 |
Copy a file from the asset folder in the testContext to the OUTPUT_PATH in the target context. | public static Uri copyFileFromTestToTargetCtx(Context testCtx, Context targetCtx, String filename) throws IOException {
String destinationFileName = String.format("blur-test-%s.png", UUID.randomUUID().toString());
File outputDir = new File(targetCtx.getFilesDir(),OUTPUT_PATH);
File outputFile = new File(outputDir, destinationFileName);
BufferedInputStream bis = new BufferedInputStream(testCtx.getAssets().open(filename));
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(outputFile));
byte[] buf = new byte[1024];
bis.read(buf);
do {
bos.write(buf);
} while (bis.read(buf) != -1);
bis.close();
bos.close();
return Uri.fromFile(outputFile);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void copyCoverageFile(String sourceResourceName, String targetFileName, WorkflowJob job) throws Exception {\n FilePath directory = ensureWorkspaceExists(job);\n\n FilePath dest = directory.child(targetFileName);\n org.apache.commons.io.IOUtils.copy(getClass().getResourceAsStream(source... | [
"0.6739238",
"0.60265243",
"0.5975042",
"0.5879864",
"0.5800704",
"0.5749614",
"0.57472175",
"0.5730362",
"0.57059824",
"0.5569893",
"0.5538412",
"0.54854107",
"0.5485255",
"0.54716486",
"0.5424048",
"0.5393639",
"0.53897864",
"0.5389019",
"0.535634",
"0.5315142",
"0.53075033... | 0.6551155 | 1 |
Check if a file exists in the given context. | public static boolean uriFileExists(Context targetCtx, String uri ){
if (uri.isEmpty()){ return false; }
ContentResolver resolver = targetCtx.getContentResolver();
try {
BitmapFactory.decodeStream(resolver.openInputStream(Uri.parse(uri)));
} catch (FileNotFoundException e) {
e.printStackTrace();
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean fileExists(Context context, String filename)\r\n{\r\n File file = context.getFileStreamPath(filename);\r\n if(file == null || !file.exists())\r\n {\r\n return false;\r\n }\r\nreturn true;\r\n}",
"protected abstract boolean pathExists(@NonNull String path, T context);",
"privat... | [
"0.7614487",
"0.74704385",
"0.684565",
"0.6729563",
"0.6715094",
"0.67110735",
"0.6675748",
"0.6651143",
"0.6537608",
"0.6475418",
"0.64658016",
"0.64195746",
"0.6417005",
"0.6402545",
"0.6367113",
"0.63652205",
"0.63498527",
"0.63335097",
"0.6329849",
"0.63262916",
"0.630907... | 0.0 | -1 |
private static List cipherL = stringToCharArray(defaultKey); | public static String encipher(String string, String key){
key = key != null ? key : defaultKey;
String newString = "";
string = Enigma.handleStringOnInput(string);
string = string.toUpperCase();
for (int i = 0; i < string.length(); i++){
int temp = alphabetL.indexOf(string.charAt(i));
newString += key.charAt(temp);
}
return newString;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<Character> getPassKey() {\n\t\tList<Character> key = new LinkedList<Character>();\n\t\tList<Character> initial = new LinkedList<Character>();\n\n\t\tfor( char c : username.toCharArray() ) initial.add(c);\n\t\tfor( char c : password.toCharArray() ) initial.add(c);\n\n\t\tfor ( ; initial.size() > 0 ; ) ... | [
"0.64397514",
"0.6207916",
"0.6147832",
"0.6135187",
"0.60158306",
"0.59974295",
"0.59591854",
"0.59121984",
"0.589506",
"0.5870871",
"0.58691597",
"0.58631736",
"0.5846902",
"0.5817694",
"0.5799223",
"0.5792469",
"0.57484734",
"0.57470673",
"0.57431406",
"0.57205933",
"0.571... | 0.57108974 | 21 |
Creates an object and store it. Returns created object with all fields filled. | int add(T objectToCreate); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Object create(Object object) {\n EntityManager em = getEntityManager();\n em.getTransaction().begin();\n try {\n em.persist(object);\n em.getTransaction().commit();\n LOG.debug(\"Persisted \" + object);\n } catch (Exception e) {\n LO... | [
"0.6738994",
"0.64698076",
"0.6441097",
"0.6305345",
"0.6256671",
"0.62543774",
"0.6159867",
"0.61075944",
"0.6091561",
"0.60751146",
"0.59834236",
"0.5975091",
"0.59528714",
"0.59485096",
"0.5906442",
"0.5901694",
"0.58874494",
"0.5883356",
"0.5883356",
"0.58794004",
"0.5879... | 0.0 | -1 |
Updates an object. If this object not exists will throw | void update(T objectToUpdate); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean update(Object obj) throws Exception;",
"public void update(Object obj) throws HibException;",
"public abstract Object update(String oid, Object obj)\n\t\t\tthrows OIDDoesNotExistException, ObjectNotSupportedException, LockNotAvailableException;",
"public boolean update(New object);",
"public... | [
"0.81225",
"0.75004506",
"0.7430763",
"0.7420861",
"0.74185944",
"0.7403557",
"0.73186713",
"0.71040636",
"0.7080538",
"0.7027302",
"0.701972",
"0.7015781",
"0.6950519",
"0.69482356",
"0.6925524",
"0.68794644",
"0.6840303",
"0.6829617",
"0.6822131",
"0.682057",
"0.68041813",
... | 0.7127717 | 7 |
This class defines static string constants related to FIX protocol, especialy, enumerated values for some of the fix tags | public interface FixFieldConstants {
public final static String SIDE_BUY = "1";
public final static String SIDE_SELL = "2";
public final static String PUT_CALL_CALL = "1";
public final static String PUT_CALL_PUT = "0";
public final static String ORDER_TYPE_MARKET = "1";
public final static String ORDER_TYPE_LIMIT = "2";
public final static String ORDER_TYPE_STOP = "3";
public final static String ORDER_TYPE_STOPLIMIT = "4";
public final static String ORDER_TYPE_MARKETLIMIT = "K";
public final static String TIME_IN_FORCE_DAY = "0";
public final static String TIME_IN_FORCE_GTC = "1";
public final static String TIME_IN_FORCE_FAK = "3";
public final static String TIME_IN_FORCE_FOK = "4";
public final static String TIME_IN_FORCE_GTD = "6";
public final static String HANDL_INST_AUTOMATED = "1";
public final static String SECURITY_TYPE_FUTURE = "FUT";
public final static String SECURITY_TYPE_OPTION = "OPT";
public final static String SECURITY_TYPE_FX = "FOR";
public final static String CUSTOMER_OR_FIRM_CUSTOMER = "0";
public final static String CUSTOMER_OR_FIRM_FIRM = "1";
public final static String CTI_CODE_BROKER_OWN_ACCOUNT = "1";
public final static String CTI_CODE_BROKER_HOUSE_ACCOUNT = "2";
public final static String CTI_CODE_BROKER_BROKER_ACCOUNT = "3";
public final static String CTI_CODE_BROKER_CUSTOMER_ACCOUNT = "4";
public final static String FEE_BILLING_CBOE_MEMBER = "B";
public final static String FEE_BILLING_NON_MEMBER = "C";
public final static String FEE_BILLING_EQUITY_MEMBER = "E";
public final static String FEE_BILLING_106HJ_MEMBER = "H";
public final static String FEE_BILLING_LESSEE_MEMBER = "L";
public final static String CMTA_GIVEUP_CODE_GIVEUP = "GU";
public final static String CMTA_GIVEUP_CODE_SGX_OFFSET = "SX";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface MessageId {\n /* Using the same name of the identifier as the string saves space\n in the class file. */\n static final String MESSAGE_FORMAT = \"MESSAGE_FORMAT\";\n static final String PUBID_CHAR = \"PUBID_CHAR\";\n static final String ELEMENT_AFTER_DOCUMENT_ELEMENT = \"ELEMENT_AFTER_DOCUMENT_EL... | [
"0.6137257",
"0.61180687",
"0.6079186",
"0.60748225",
"0.5987046",
"0.58795017",
"0.5813557",
"0.57690614",
"0.5725371",
"0.56660706",
"0.5607733",
"0.5591482",
"0.557045",
"0.5548598",
"0.55403733",
"0.54948354",
"0.54806954",
"0.54567486",
"0.54560107",
"0.5455976",
"0.5452... | 0.62190795 | 0 |
adding uniforms to shaderProgram | public void init () {
shaderProgram.addUniform(TEXTURE_UNIFORM_KEY);
shaderProgram.addUniform(SCALING_UNIFORM_KEY);
shaderProgram.addUniform(TRANSLATION_UNIFORM_KEY);
shaderProgram.addUniform(POSITION_UNIFORM_KEY);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void glAttachShader(int program, int shader);",
"protected void updateUniforms()\n\t{\n\t\tsuper.updateUniforms();\n\t\tfor (int i = 0; i < getTexCoordCount(); i++)\n\t\t{\n\t\t\tint loc = shader.getUniformLocation(U_TEXTURE + i);\n\t\t\tif (loc != -1)\n\t\t\t\tshader.setUniformi(loc, i);\n\t\t}\n\t}",
"int gl... | [
"0.6925926",
"0.6744783",
"0.6733185",
"0.65601325",
"0.653885",
"0.64687586",
"0.64244246",
"0.63245296",
"0.6297717",
"0.62246543",
"0.60522574",
"0.6013392",
"0.60101885",
"0.5992449",
"0.5952959",
"0.5795191",
"0.5666517",
"0.5619924",
"0.56194276",
"0.5618452",
"0.560853... | 0.68244374 | 1 |
IMPORTANT for some reason | public void endRender () {
glFlush();
glfwSwapBuffers(window.window);
//System.out.println("Swapped buffers");
glfwPollEvents();
//shaderProgram.bind();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"protected boolean func_70041_e_() { return false; }",
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void tires() {\n\t\... | [
"0.66112584",
"0.6597891",
"0.6442217",
"0.6412629",
"0.63337755",
"0.6329795",
"0.622874",
"0.6214119",
"0.61945415",
"0.61945415",
"0.6187203",
"0.6162916",
"0.6159513",
"0.6159378",
"0.6120738",
"0.610574",
"0.60965925",
"0.6075013",
"0.6054755",
"0.60010594",
"0.59972775"... | 0.0 | -1 |
loads textures into the map so they can be called | public void addTexture (String path, String key) throws IOException {
Texture texture = new Texture();
texture.load(path);
textures.put(key, texture);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void loadTextures() {\n textureIdMap.keySet().forEach((i) -> {\n //for (int i = 0; i < textureFileNames.length; i++) {\n try {\n URL textureURL;\n textureURL = getClass().getClassLoader().getResource(textureIdMap.get(i));\n if (textureURL != null) {\n Buffer... | [
"0.8172064",
"0.79017717",
"0.7777077",
"0.7776676",
"0.7749244",
"0.76420194",
"0.75729275",
"0.7517063",
"0.7441131",
"0.7383604",
"0.7226507",
"0.7077897",
"0.7018838",
"0.69346434",
"0.692809",
"0.68820506",
"0.68261164",
"0.6803201",
"0.6801171",
"0.6791789",
"0.6753465"... | 0.623315 | 52 |
The size of the simulation population | public static void main(String[] argv) {
if (argv.length !=7){
System.out.println("USAGE: executable <input_filename> <num_points_in_file> <dimension> <distribution[1..100]> <num_unique_query> <num_query> <slot>\n");
return ;
}
int type,num_mbr, extra,dim,DIMENSION,distribution,num_unique_query,POINTS;
String filenm;
int q,r,times,slot;
filenm = argv[0];
POINTS = Integer.parseInt(argv[1]);
DIMENSION = Integer.parseInt(argv[2]);
distribution = Integer.parseInt(argv[3]);
num_unique_query = Integer.parseInt(argv[4]);
q= Integer.parseInt(argv[5]);
slot= Integer.parseInt(argv[6]);
double[][][] pt =new double[POINTS+10][2][10];
try {
BufferedReader in = new BufferedReader(new FileReader(filenm));
String str;
// str = in.readLine();
int i=0;
while ((str = in.readLine()) != null && i != POINTS) {
//System.out.println(str);
str = in.readLine();
String[] arr = str.split("\t");
for(int j=0;j<10;j++){
pt[i][0][j] = Double.parseDouble(arr[j]);
}
str = in.readLine();
arr = str.split("\t");
for(int j=0;j<10;j++){
pt[i][1][j] = Double.parseDouble(arr[j]);
}
i++;
}
in.close();
} catch (IOException e) {
System.out.println("File Read Error Resource.in");
}
Random rand = new Random();
for(int i2=0;i2 < slot; i2++){
int rr= rand.nextInt(17);
for(int i1=0;i1 < q;){
//while(q>0){
if(rand.nextInt(100) < distribution){
// Initialize random number generator.
r = rand.nextInt(num_unique_query)* (int)((POINTS-10000)/(num_unique_query + rr));
//cout <<"random value "<< r<< endl;
// srand(pow(q,r));
// srand(pow(q,r));
// times=1;
times =rand.nextInt(29) + 5 ;
// file>>dim;
// file>>num_mbr;
for(int k =0; k<times; k++){
System.out.println("2");
i1++;
double r_1= 0.005 + (double)rand.nextInt(500)/10000.0;
System.out.println(r_1);
for(int j=0;j<DIMENSION;j++){
// cout<< pt[0][j];
System.out.print(pt[r][0][j] + "\t");
}
System.out.println("");
}
}
else{ // nonpopular data
for(int idx =0 ; idx < 20 ; idx++){
r = rand.nextInt(POINTS);
System.out.println("2");
i1++;
double r_1= 0.005 + (double)rand.nextInt(500)/10000.0;
System.out.println(r_1);
// cout<<r<<"\n";
for(int j=0;j<DIMENSION;j++){
System.out.print(pt[r][0][j] + "\t");
}
System.out.println("");
}
}
}
}
System.out.println("-1");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getPopulationSize(){\n\t\treturn populationSize;\n\t}",
"public int getPopulationSize()\n\t{\n\t\treturn individuals.length;\n\t}",
"@Override public long getSimulatedSize() {\n return 1;\n }",
"public int size( )\r\n {\r\n int size = (int) manyNodes;// Student will replace this ret... | [
"0.80925035",
"0.8060168",
"0.7157824",
"0.71413875",
"0.7133439",
"0.705836",
"0.697883",
"0.696162",
"0.69509476",
"0.69377536",
"0.69195974",
"0.69144434",
"0.6905118",
"0.68821293",
"0.6873875",
"0.6872818",
"0.6869268",
"0.68661326",
"0.68661326",
"0.68653655",
"0.684453... | 0.0 | -1 |
Enrolls each student within each section | @Test
public void TestStudentGPA() throws PersonException{
ArrayList<Enrollment> EnrolledStudents = new ArrayList<Enrollment>();
for (int i = 0; i < Students.size(); i++){
Student student = Students.get(i);
for (int j = 0; j < Sections.size(); j++){
Section section = Sections.get(j);
Enrollment enrolled = new Enrollment(student.getStudentID(),section.getSectionID());
enrolled.setGrade((i*10)); // Assumes each student gets a consistent grade in every section! (Otherwise average GPAs would be a bit tougher)
EnrolledStudents.add(enrolled);
}
}
ArrayList<Double> StudentsGPA = new ArrayList<Double>();
for (int i = 0; i < EnrolledStudents.size(); i+=6) {
if (EnrolledStudents.get(i).getGrade() >= 90)
StudentsGPA.add(4.0);
else if (EnrolledStudents.get(i).getGrade() >= 80)
StudentsGPA.add(3.66);
else if (EnrolledStudents.get(i).getGrade() >= 70)
StudentsGPA.add(3.33);
else if (EnrolledStudents.get(i).getGrade() >= 60)
StudentsGPA.add(3.0);
else if (EnrolledStudents.get(i).getGrade() >= 50)
StudentsGPA.add(2.66);
else if (EnrolledStudents.get(i).getGrade() >= 40)
StudentsGPA.add(2.33);
else if (EnrolledStudents.get(i).getGrade() >= 30)
StudentsGPA.add(2.0);
else if (EnrolledStudents.get(i).getGrade() >= 20)
StudentsGPA.add(1.66);
else if (EnrolledStudents.get(i).getGrade() >= 10)
StudentsGPA.add(1.33);
else
StudentsGPA.add(1.0);
}
assertTrue(StudentsGPA.get(0) == 1.0);
assertTrue(StudentsGPA.get(1) == 1.33);
assertTrue(StudentsGPA.get(2) == 1.66);
assertTrue(StudentsGPA.get(3) == 2.0);
assertTrue(StudentsGPA.get(4) == 2.33);
assertTrue(StudentsGPA.get(5) == 2.66);
assertTrue(StudentsGPA.get(6) == 3.0);
assertTrue(StudentsGPA.get(7) == 3.33);
assertTrue(StudentsGPA.get(8) == 3.66);
assertTrue(StudentsGPA.get(9) == 4.0);
ArrayList<Double> CoursesGPA = new ArrayList<Double>();
double count = 0;
for (int i = 0; i < EnrolledStudents.size(); i+=6){
count += EnrolledStudents.get(i).getGrade();
}
if (count == 450){ // Again, assumes a simple case (average grade = 45 -> average GPA = 2.497)
CoursesGPA.add(2.497);
}
assertTrue(CoursesGPA.get(0) == 2.497);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void enroll_Student(CourseOffering course, String studentID){\n\n StudentModel student = findStudent(course, studentID);\n if(student == null){\n System.out.println(\"\\n>>Enrollment denied: \" + studentID + \"<<\");\n\n return;\n }\n\n\n for(StudentModel st... | [
"0.7675179",
"0.69121414",
"0.6754516",
"0.6318938",
"0.6218686",
"0.6067659",
"0.602036",
"0.60162747",
"0.60020685",
"0.59704614",
"0.595262",
"0.5944865",
"0.5943969",
"0.5934446",
"0.5889284",
"0.5860414",
"0.58346087",
"0.581631",
"0.5771743",
"0.57621646",
"0.57512045",... | 0.5058508 | 92 |
Constructor with custom config | protected StreamsApp(StreamsConfig streamsConfig) {
this.streamsConfig = streamsConfig;
this.rocksDbReporter = new RocksDbMetricsReporter(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Config() {\n }",
"public ConfigExample() {\n }",
"public Config() {\n this(System.getProperties());\n\n }",
"public Config() {\n\t\t// TODO Auto-generated constructor stub\n\t\t\n\t}",
"public MecBasicsConfig()\n {\n\n }",
"private OptimoveConfig() {\n }",
"void init(Config... | [
"0.74938416",
"0.7309233",
"0.72750497",
"0.72556525",
"0.7205039",
"0.7039311",
"0.6938106",
"0.69263124",
"0.6859843",
"0.6831294",
"0.6811283",
"0.6786518",
"0.67570573",
"0.67260647",
"0.6623761",
"0.65954375",
"0.6582403",
"0.65437984",
"0.6514592",
"0.64705825",
"0.6435... | 0.0 | -1 |
Constructor with default config | protected StreamsApp() {
this.streamsConfig = new KafkaStreamsConfig().fromConfig(config);
this.rocksDbReporter = new RocksDbMetricsReporter(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ConfigExample() {\n }",
"private Config() {\n }",
"public Config() {\n this(System.getProperties());\n\n }",
"public MecBasicsConfig()\n {\n\n }",
"public Config() {\n\t\t// TODO Auto-generated constructor stub\n\t\t\n\t}",
"protected Configuration() {\r\n }",
"private Optim... | [
"0.75721025",
"0.7559098",
"0.7438623",
"0.73796725",
"0.723741",
"0.71165705",
"0.70973897",
"0.70811886",
"0.70733505",
"0.7041823",
"0.695884",
"0.69546825",
"0.6937884",
"0.68922395",
"0.68874604",
"0.6864523",
"0.68638647",
"0.68539375",
"0.683577",
"0.6792333",
"0.67594... | 0.0 | -1 |
Add Kafka metrics to the metric registry | private void addMetrics(Map<MetricName, KafkaMetric> kafkaMetrics) {
Set<MetricName> metricKeys = kafkaMetrics.keySet();
for (MetricName key : metricKeys) {
KafkaMetric metric = kafkaMetrics.get(key);
String metricName = getMetricName(metric.metricName());
if (metrics.getNames().contains(metricName)) {
metrics.remove(metricName);
}
metrics.register(metricName, new Gauge<Double>() {
@Override
public Double getValue() {
return metric.value();
}
});
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addMetric(M wm){\r\n\t\tmetrics.add(wm);\r\n\t}",
"void registerDynamicMetricsProvider(DynamicMetricsProvider metricsProvider);",
"@Test\n @SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public void testPutMetrics() throws Exception {\n MetricsRecord record = mock(MetricsRecord.class);\n ... | [
"0.64697886",
"0.63651186",
"0.61719173",
"0.5976327",
"0.5872696",
"0.586909",
"0.5807331",
"0.5770428",
"0.5680989",
"0.5592942",
"0.5505907",
"0.54955304",
"0.5490527",
"0.54706836",
"0.5365714",
"0.531026",
"0.5306391",
"0.5236348",
"0.523099",
"0.522813",
"0.51941144",
... | 0.7727195 | 0 |
Note: this consumer is used to consume internal topics | @Override
public Consumer<byte[], byte[]> getRestoreConsumer(Map<String, Object> config) {
consumersRestored.inc();
return new KafkaConsumer<>(config, new ByteArrayDeserializer(), new ByteArrayDeserializer());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public synchronized Future<RpcResult<Void>> readTopic(ReadTopicInput input) {\n String topicId = input.getTopicId().getValue();\n // if requested TopicId has not been requested before then it is added into to register\n if (registeredTopic.contains(topicId) == false) {\n ... | [
"0.6810801",
"0.6715941",
"0.63893676",
"0.6340113",
"0.63290125",
"0.63163084",
"0.62609047",
"0.62465906",
"0.6164918",
"0.61592567",
"0.61562234",
"0.61302054",
"0.61251754",
"0.6117841",
"0.6100405",
"0.6089309",
"0.6082638",
"0.60776263",
"0.60550326",
"0.60312104",
"0.6... | 0.0 | -1 |
Get the topology that contains the logic for our streams app | TopologyBuilder getTopology() {
return topology;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Topology getTopology() {\n StreamsBuilder builder = new StreamsBuilder();\n\n KafkaStreamsRunnerDSL uot = new KafkaStreamsRunnerDSL();\n uot.buildPipeline(builder);\n\n // build the topology and start streaming\n Topology topology = builder.build();\n return ... | [
"0.7649979",
"0.6971413",
"0.6654028",
"0.6168259",
"0.5847802",
"0.53850794",
"0.53749716",
"0.53379905",
"0.53280497",
"0.5327351",
"0.5272868",
"0.5258441",
"0.5203489",
"0.51746196",
"0.51054454",
"0.49715066",
"0.49547705",
"0.49542856",
"0.49004954",
"0.4867045",
"0.485... | 0.6325736 | 3 |
Creates meters for the custom metrics, and defines the topology for the KafkaStreams app | protected void initialize() {
// Get the topology builder
KStreamBuilder builder = getBuilder();
// Build the app
kafkaStreams = new KafkaStreams(builder, streamsConfig, new ClientSupplier());
// Shutdown the entire app if an uncaught exception is encountered
kafkaStreams.setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
@Override
public void uncaughtException(Thread t, Throwable e) {
log.error("Stream terminated because of uncaught exception: {}. Shutting down app", e.getMessage());
String s = stackTraceAsString((Exception) e);
log.error("Stacktrace: {}", s);
System.out.println(e);
shutdownApp();
}
});
topology = builder;
addMetrics(PipelineMetricsReporter.metrics());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected StreamsApp() {\n this.streamsConfig = new KafkaStreamsConfig().fromConfig(config);\n this.rocksDbReporter = new RocksDbMetricsReporter(this);\n }",
"@Override\n public void construct() {\n Metric metric =\n new CPU_Utilization(1) {\n ... | [
"0.5791184",
"0.5658822",
"0.5590548",
"0.5494571",
"0.5401872",
"0.5376205",
"0.531893",
"0.5312919",
"0.51916593",
"0.5185977",
"0.51848835",
"0.5116265",
"0.50162923",
"0.50074303",
"0.4994491",
"0.49777216",
"0.49726826",
"0.49724367",
"0.49588957",
"0.4948724",
"0.493088... | 0.54755306 | 4 |
Child classes can override this if they support interactive queries | protected Optional<TBaseProcessor> getInteractiveQueryProcessor() {
return Optional.empty();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void onShowQueryResult() {\n }",
"public void Query() {\n }",
"@Override\n public boolean supportsInteractive() {\n return true;\n }",
"@Override\n\tpublic void queryData() {\n\t\t\n\t}",
"public boolean isInteractive() {\n return interactive;\n }",
... | [
"0.6442317",
"0.6365789",
"0.6345789",
"0.6175204",
"0.5961668",
"0.5862444",
"0.5817668",
"0.5797567",
"0.5778652",
"0.57253426",
"0.5721953",
"0.57187855",
"0.5709231",
"0.57066184",
"0.5687437",
"0.5633844",
"0.5625227",
"0.56169057",
"0.5599253",
"0.55975837",
"0.5588815"... | 0.5547951 | 23 |
Create an interactive query server | private InteractiveQueryServer createInteractiveQueryServer(int port, TBaseProcessor processor) {
interactiveQueryServer = Optional.of(new InteractiveQueryServer(port, processor));
return interactiveQueryServer.get();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private InteractiveQueryServer startInteractiveQueryServer(int port, TBaseProcessor processor) {\n return createInteractiveQueryServer(port, processor).start();\n }",
"public static void main(String[] args) {\n\t\trouter = new CommandRouter();\n\t\ttry {\n\t\t\t// setup our socket connection to the tv,... | [
"0.7238421",
"0.56585306",
"0.56062645",
"0.55432504",
"0.55275494",
"0.55118716",
"0.54925466",
"0.547978",
"0.5466511",
"0.54467815",
"0.5421492",
"0.53851694",
"0.5379239",
"0.5375426",
"0.5362974",
"0.53377616",
"0.5337653",
"0.53036493",
"0.5289726",
"0.52793634",
"0.527... | 0.7313355 | 0 |
Create and start and interactive query server | private InteractiveQueryServer startInteractiveQueryServer(int port, TBaseProcessor processor) {
return createInteractiveQueryServer(port, processor).start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private InteractiveQueryServer createInteractiveQueryServer(int port, TBaseProcessor processor) {\n interactiveQueryServer = Optional.of(new InteractiveQueryServer(port, processor));\n return interactiveQueryServer.get();\n }",
"public void start() {\n \t\tinit();\n\t\tif(!checkBackend()){\n\t\... | [
"0.6691639",
"0.6197419",
"0.60910684",
"0.6079552",
"0.60561633",
"0.5947255",
"0.59342194",
"0.5869145",
"0.5825309",
"0.58211666",
"0.5806443",
"0.58024466",
"0.57953185",
"0.5794281",
"0.5764239",
"0.5758852",
"0.5746316",
"0.5743328",
"0.5722533",
"0.5704024",
"0.5699212... | 0.70778847 | 0 |
Get a formatted metric name that includes the Kafka metric group | protected String getMetricName(MetricName metricName) {
return format("%s.%s", metricName.group(), metricName.name());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getMetricName();",
"com.google.protobuf.ByteString getMetricNameBytes();",
"public String getName() {\n \treturn metricMetadata.getName();\n }",
"public String metricName() {\n return this.metricName;\n }",
"public String getMetricsDbNameWithMetadataUrlPrefix() {\n S... | [
"0.7136165",
"0.65005076",
"0.62052053",
"0.6165712",
"0.6097766",
"0.60838866",
"0.6027165",
"0.59668994",
"0.594564",
"0.5728283",
"0.5697196",
"0.5675464",
"0.56566364",
"0.565376",
"0.56025666",
"0.5523772",
"0.5522664",
"0.55050796",
"0.54964346",
"0.54246753",
"0.535715... | 0.6935902 | 1 |
Get the KafkaStreams instance being used by this app | public KafkaStreams getKafkaStreamsInstance() {
return kafkaStreams;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected StreamsApp() {\n this.streamsConfig = new KafkaStreamsConfig().fromConfig(config);\n this.rocksDbReporter = new RocksDbMetricsReporter(this);\n }",
"public List<Stream> getStreams() {\n return streams;\n }",
"public static Streamer getInstance() {\r\n if (streamer ==... | [
"0.6287918",
"0.6025271",
"0.5933615",
"0.58204085",
"0.570095",
"0.5518656",
"0.5513176",
"0.5511756",
"0.5510068",
"0.5509433",
"0.5387008",
"0.53581",
"0.5351819",
"0.5211856",
"0.5192922",
"0.5177175",
"0.5157643",
"0.51493543",
"0.51138926",
"0.5101792",
"0.5100915",
"... | 0.87328935 | 0 |
Get state store names. Child classes can optionally override this | public List<String> getStateStoreNames() {
return new ArrayList<>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getStoreName() {\r\n return storeName;\r\n }",
"public String getStoreName() {\n return storeName;\n }",
"public String getStoreName() {\r\n\t\treturn storeName;\r\n\t}",
"public String getStoreName() {\n\t\treturn storeName;\n\t}",
"public String getStoreName() {\n ... | [
"0.6984133",
"0.69758934",
"0.6965713",
"0.69201565",
"0.68385726",
"0.6616983",
"0.66030264",
"0.65305626",
"0.64032364",
"0.63328266",
"0.6170036",
"0.615395",
"0.6117379",
"0.6080456",
"0.60738915",
"0.60463965",
"0.59984255",
"0.5953818",
"0.5910095",
"0.5894765",
"0.5859... | 0.829553 | 0 |
Get a copy of the streams config that was used to build this streams app | public Map<String, Object> getStreamsConfig() {
// returns a copy of the original properties
return streamsConfig.originals();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public StreamsConfigData getStreamsConfigData() {\n\t\treturn streamsConfigData;\n\t}",
"public static Properties configStream() {\r\n\t\tProperties props = new Properties();\r\n\t\tprops.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, KafkaConstants.getBootstrapServers());\r\n\t\tprops.put(ConsumerConfig.GROUP_ID_C... | [
"0.7053496",
"0.67315036",
"0.62010634",
"0.614772",
"0.60663503",
"0.6000858",
"0.5951627",
"0.5949124",
"0.58586186",
"0.5848708",
"0.58337766",
"0.573369",
"0.5725527",
"0.5707312",
"0.56872135",
"0.565466",
"0.565196",
"0.5599419",
"0.5573798",
"0.5564293",
"0.55592525",
... | 0.78420156 | 0 |
This Overridden Method is called when a new DatabaseHelper is made, and what it does is it creates a new Table with the Constants that we specified as the Table Name and its Columns | @Override
public void onCreate(SQLiteDatabase db)
{
/* For the Primary Key AUTOINCREMENT for the First Column to add 1 to the Primary Key Value
* as a Row is added. The execSQL Method simply executes this query on the Database
*/
db.execSQL(
"CREATE TABLE " + TABLE_NAME
+ "("
+ COL1 + " INTEGER PRIMARY KEY AUTOINCREMENT,"
+ COL2 + " TEXT,"
+ COL3 + " TEXT,"
+ COL4 + " TEXT,"
+ COL5 + " TEXT,"
+ COL6 + " INTEGER,"
+ COL7 + " TEXT,"
+ COL8 + " INTEGER" +
")");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onCreate(SQLiteDatabase db) {\n new Tables(db).makeContactTable();\n new Tables(db).makeTalkTable();\n new Tables(db).makeConferenceTable();\n new Tables(db).makeNotificationTable();\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase db, ConnectionSo... | [
"0.72858286",
"0.72176826",
"0.71444803",
"0.71382284",
"0.70305794",
"0.6985838",
"0.6983707",
"0.69832337",
"0.6982653",
"0.69706446",
"0.6959244",
"0.6955452",
"0.692007",
"0.6912334",
"0.68947047",
"0.6893313",
"0.6883962",
"0.68786955",
"0.68744993",
"0.6871878",
"0.6866... | 0.6692485 | 49 |
This Method is used add a Movie to the Database | public void addData(Movie movieToAdd, View view)
{
/* Creating a DatabaseHelper Instance to access the getData Method in order to get the
* Title (Index 1 in terms of Columns) of all the saved Movies in the Database and to make
* sure that the Title of the Movie to be registered isn't equals to any of the existing movies
*/
DatabaseHelper databaseHelper = new DatabaseHelper(context);
Cursor c = databaseHelper.getData();
ArrayList<String> listLabels = new ArrayList<>();
while(c.moveToNext())
{
//get the value from the database in column 1
//then add it to the ArrayList
listLabels.add(c.getString(1));
}
// Error Message if the Title of the Movie to Add Already is found
if (listLabels.contains(movieToAdd.getTitle()))
Snackbar.make(view, "Movie Already has already been Registered !!!",Snackbar.LENGTH_SHORT)
.setBackgroundTint(context.getResources().getColor(R.color.transparent_yellow))
.setTextColor(context.getResources().getColor(R.color.grey_black))
.show();
else
{
int favorite = 0;
if (movieToAdd.isFavorite())
favorite = 1;
/* the execSQL Method simply executes this query on the Database, in this Query UPDATE is
* used to specify the Table Name to Update, SET specifies the Column name to Update in this
* case COL8 contains favorites and WHERE is the condition in this case it is to make sure
* that the Movie Title Matches with the given title
*/
this.getWritableDatabase().execSQL(
"INSERT INTO " + TABLE_NAME +
" (title, year, director, actor_actress, rating, review, favorite)" +
" values('"
+ movieToAdd.getTitle() + "', '" + movieToAdd.getYear() + "', '"
+ movieToAdd.getDirector() + "', '" + movieToAdd.getActorActress() + "', "
+ movieToAdd.getRating() + ", '" + movieToAdd.getReview() + "', " + favorite
+ ")");
Snackbar.make(view, "Successfully Registered !",Snackbar.LENGTH_SHORT)
.setBackgroundTint(context.getResources().getColor(R.color.transparent_yellow))
.setTextColor(context.getResources().getColor(R.color.grey_black))
.show();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addMovieToDb() {\n ContentValues contentValues = new ContentValues();\n\n contentValues.put(MovieColumns.ADULT,mMovie.getAdult());\n contentValues.put(MovieColumns.BACKDROP_PATH,mMovie.getBackdropPath());\n contentValues.put(MovieColumns.GENRE,Utils.arrayToString(mMovie.get... | [
"0.8028772",
"0.7788978",
"0.7690892",
"0.7533309",
"0.73354906",
"0.73264563",
"0.73133165",
"0.7253486",
"0.70549405",
"0.7012417",
"0.6975957",
"0.69487786",
"0.6901448",
"0.68713355",
"0.6866305",
"0.67448825",
"0.66897297",
"0.66710037",
"0.66416365",
"0.6626085",
"0.658... | 0.65339017 | 24 |
This Method returns a Cursor containing Rows for all Columns in the Database | public Cursor getData()
{
/* We are using the rawQuery method to execute the SQLite Query we have made and return
* the Data in the form of a Cursor. As for the Query itself SELECT specifies what Columns
* we want to select in this case its everything (*)
*/
return this.getWritableDatabase().rawQuery("SELECT * FROM " + TABLE_NAME, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Cursor fetchAll() {\n\t\treturn db.query(tableName, fields, null, null, null, null, null);\n\t}",
"public Cursor getAllRows(){\n Cursor cursor = database.query(dbHelper.TABLE_USERS,allColumns,null,null,null,null,null);\n if (cursor != null){\n cursor.moveToNext();\n }\n ... | [
"0.7415791",
"0.7293933",
"0.72649574",
"0.7160263",
"0.70482004",
"0.70251054",
"0.6992307",
"0.682001",
"0.6790929",
"0.6711636",
"0.6709427",
"0.66153127",
"0.65815234",
"0.6554573",
"0.6541158",
"0.653497",
"0.6452066",
"0.6441969",
"0.6434253",
"0.64262027",
"0.6423109",... | 0.6563937 | 13 |
This Method returns a Cursor containing Rows for all Columns in the Database sorted in Alphabetical Order | public Cursor getSortedData()
{
/* We are using the rawQuery method to execute the SQLite Query we have made and return
* the Data in the form of a Cursor. As for the Query itself SELECT specifies what Columns
* we want to select in this case its everything (*) and ORDER BY sorts the Data in this case
* we require Data to be sorted in alphabetical order so we use ASC
* */
return this.getWritableDatabase().rawQuery(
"SELECT * FROM " + TABLE_NAME +
" ORDER BY " + COL2 + " ASC", null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Cursor getOrderedCursor() {\n SQLiteDatabase db = getReadableDatabase();\n return db.rawQuery(\"SELECT * FROM goals ORDER BY list_index ASC\", null); // ORDER BY list_index ASC\n }",
"private List<String> getColNames() {\r\n\t\t//\r\n\t\tDBManager dbm = new DBManager(this);\r\n\t\t\r\n\t\... | [
"0.66492707",
"0.65245426",
"0.6499028",
"0.6418566",
"0.63413817",
"0.63031614",
"0.62624574",
"0.6248283",
"0.62460864",
"0.624526",
"0.61936015",
"0.61721665",
"0.6133015",
"0.6123717",
"0.6082915",
"0.59998006",
"0.59167063",
"0.5900939",
"0.58993447",
"0.5867906",
"0.585... | 0.7286982 | 0 |
This Method returns a Cursor containing Rows for all Columns in the Database that are similar to the Data that is to be Filtered | public Cursor getSearchedData(String filterData)
{
filterData = filterData.toUpperCase();
/* We are using the rawQuery method to execute the SQLite Query we have made and return
* the Data in the form of a Cursor. As for the Query itself SELECT specifies what Columns
* we want to select in this case its everything (*), WHERE specifies the Condition
* we place in this case we First check COL2 which contains the Movie Titles and Use Upper
* to make it Upper Case and we use LIKE to see if the Movie Title from COL2 contains the
* data that we are filtering, this same condition applies for COL4 and COl5 and by
* using OR we can fulfil the WHERE Condition if any of these Conditions are met
* */
return this.getWritableDatabase().rawQuery(
"SELECT * FROM " + TABLE_NAME +
" WHERE upper(" + COL2 + ") LIKE '%" + filterData + "%'" +
" OR upper(" + COL4 + ") LIKE '%" + filterData + "%'" +
" OR upper(" + COL5 + ") LIKE '%" + filterData + "%'", null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Cursor getCursorWithRows() {\n Cursor cursor = new SimpleCursor(Query.QueryResult.newBuilder()\n .addFields(Query.Field.newBuilder().setName(\"col1\").setType(Query.Type.INT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col2\").setType(Query.Type.UINT8).build())\n ... | [
"0.6548471",
"0.64059114",
"0.6328184",
"0.6269981",
"0.6226088",
"0.6151686",
"0.6120895",
"0.61200744",
"0.6118321",
"0.60779387",
"0.6039687",
"0.6039163",
"0.60118085",
"0.59631586",
"0.59247756",
"0.5896417",
"0.58596087",
"0.5845596",
"0.58438045",
"0.5837097",
"0.57912... | 0.58690494 | 16 |
This Method replaces the Integer that is used as a Boolean of the Favorite Column for a Row based on its Title | public void makeFavorite(String title, int favorite)
{
SQLiteDatabase db = this.getWritableDatabase();
/* the execSQL Method simply executes this query on the Database, in this Query UPDATE is
* used to specify the Table Name to Update, SET specifies the Column name to Update in this
* case COL8 contains favorites and WHERE is the condition in this case it is to make sure
* that the Movie Title Matches with the given title
*/
db.execSQL(
"UPDATE " + TABLE_NAME +
" SET " + COL8 + " = " + favorite +
" WHERE " + COL2 + " = '" + title + "'");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean updateFavorite(long rowId, String title, String body) {\n ContentValues args = new ContentValues();\n args.put(KEY_TITLE, title);\n args.put(KEY_BODY, body);\n\n return mDb.update(DATABASE_TABLE_FAVORITES, args, KEY_ROWID + \"=\" + rowId, null) > 0;\n }",
"boolean isFavor... | [
"0.6162895",
"0.5781154",
"0.5658392",
"0.56361544",
"0.5484198",
"0.5466677",
"0.53733397",
"0.5338648",
"0.5333412",
"0.53178877",
"0.52867705",
"0.52808183",
"0.52605873",
"0.5252934",
"0.52272487",
"0.52063066",
"0.5202718",
"0.5169539",
"0.5164745",
"0.5153785",
"0.51442... | 0.6607473 | 0 |
This Method is used to Replace an entire Row with the Values given from a Movie Object | public void editMovie(int id, Movie movie)
{
// Since SQLite does not support Booleans, an Integer is used with 0 as false and 1 as true
int favorite = 0;
if (movie.isFavorite())
favorite = 1;
/* the execSQL Method simply executes this query on the Database, in this Query REPLACE INTO
* replaces a Row in the table based on the movieId value specified
*/
this.getWritableDatabase().execSQL(
"REPLACE INTO " + TABLE_NAME +
" (movieId, title, year, director, actor_actress, rating, review, favorite)" +
" Values(" + id + ", '" + movie.getTitle() + "', '" + movie.getYear() + "', '" + movie.getDirector() +
"', '" + movie.getActorActress() + "', " + movie.getRating() + ", '" + movie.getReview() +
"', " + favorite + ")");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void update(int index, Movie object, String value) {\n \tobject.setPlace(value);\r\n \tmovieTable.redraw();\r\n }",
"@Override\r\n public void update(int index, Movie object, String value) {\n \tobject.setDescription(value);\r... | [
"0.6132476",
"0.6064185",
"0.6059013",
"0.59835464",
"0.55513006",
"0.54545826",
"0.54023707",
"0.532688",
"0.5225284",
"0.5214448",
"0.52078265",
"0.51971716",
"0.5188864",
"0.5162884",
"0.5151707",
"0.51424605",
"0.5092137",
"0.50748515",
"0.50690174",
"0.50672626",
"0.5042... | 0.58764005 | 4 |
Called when user fills in an URL and presses 'Start Install'. The parent activity is responsible for implementing this interface and doing something with the URL. | void onURLChosen(String url); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t System.out.println(\"URL APP----------:\" + getIntent().getExtras().getString(\"urlApp\"));\r\n\t\tinstallApp(getIntent().getExtras().getString(\"urlApp\"));\r\n\t}",
"@Override\n public void o... | [
"0.638605",
"0.6362696",
"0.6109912",
"0.6085177",
"0.5902683",
"0.5851179",
"0.5833615",
"0.581777",
"0.5796328",
"0.575514",
"0.5702462",
"0.5699719",
"0.56989026",
"0.56938195",
"0.5687308",
"0.56822896",
"0.5669027",
"0.56614965",
"0.564369",
"0.56295955",
"0.561342",
"... | 0.6098768 | 3 |
Returns the chosen URL in the UI, prefixing it with http:// if not set. | private String getURL() {
String url = profileLocation.getText().toString();
if (url == null || url.length() == 0) {
return url;
}
// if it's not the last (which should be "Raw") choice, we'll use the prefix
if (!url.contains("://")) { // if there is no (http|jr):// prefix, we'll assume it's a http://bit.ly/ URL
url = "http://bit.ly/" + url;
}
return url;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String makeServerUrl(){\n\t\tURL url = null;\n\t\t\n\t\t//Make sure we have a valid url\n\t\tString complete = this.preferences.getString(\"server\", \"\");\n\t\ttry {\n\t\t\turl = new URL( complete );\n\t\t} catch( Exception e ) {\n\t\t\tonCreateDialog(DIALOG_INVALID_URL).show();\n\t\t\treturn null;\n\t\t... | [
"0.6704755",
"0.66378516",
"0.661396",
"0.6441095",
"0.6441095",
"0.6441095",
"0.6441095",
"0.6441095",
"0.6441095",
"0.64003414",
"0.6342753",
"0.62635934",
"0.6216939",
"0.62067616",
"0.6199211",
"0.6194229",
"0.61806434",
"0.61806434",
"0.61806434",
"0.61806434",
"0.618064... | 0.7235039 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
int[] arr = {17,5,6,2,4,8,9,134,156,122,11,45};
System.out.println(Arrays.toString(arr));
sort(arr, 0, arr.length-1);
System.out.println(Arrays.toString(arr));
} | {
"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 |
private constructor: not allow to instanticate. | private Log() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Instantiation(){}",
"private Rekenhulp()\n\t{\n\t}",
"private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}",
"Reproducible newInstance();",
"private ATCres() {\r\n // prevent to instantiate this class\r\n }",
"private MApi() {}",
"private Util()\... | [
"0.7618617",
"0.7509748",
"0.7367032",
"0.73143697",
"0.72194755",
"0.7201735",
"0.7162986",
"0.7146945",
"0.71370524",
"0.7106089",
"0.7087779",
"0.7040716",
"0.70231694",
"0.69809693",
"0.69607276",
"0.695764",
"0.6947668",
"0.6943018",
"0.69367725",
"0.69359463",
"0.692210... | 0.0 | -1 |
Is logging enabled for given tag / loglevel combo? | static boolean isLoggingEnabled(String tag, int logLevel) {
// this hashmap lookup might be a little expensive, and so it might make
// sense to convert this over to a CopyOnWriteArrayList
Integer logLevelForTag = enabledTags.get(tag);
return logLevel >= (logLevelForTag == null ? WARN : logLevelForTag);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isLoggable() {\n return Log.isLoggable(tag, level);\n }",
"public boolean isLogging();",
"public boolean isLoggable() {\r\n\t\tif (logger == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn logger.isLoggable(level)\r\n\t\t\t\t|| PerformanceLogger.isEnabled();\r\n\t}",
"... | [
"0.7051128",
"0.67355394",
"0.6607601",
"0.6418637",
"0.636509",
"0.63313425",
"0.6141225",
"0.6102088",
"0.6017776",
"0.6005861",
"0.59494495",
"0.59297436",
"0.5877715",
"0.5858205",
"0.58450925",
"0.5807922",
"0.57980853",
"0.57677364",
"0.5752951",
"0.57347465",
"0.571885... | 0.8523355 | 0 |
Send a VERBOSE message. | public static void v(String tag, String msg) {
if (logger != null && isLoggingEnabled(tag, VERBOSE)) {
logger.v(tag, msg);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void verbose(String message);",
"public static void v(String message, Object... args) {\n log(VERBOSE, null, null, message, args);\n }",
"public void setVerbose(Boolean v) {\r\n\t\tm_verbose = v;\r\n\t}",
"public void toggleVerbose() {\n\t\tverbose = !verbose;\n\t}",
"public void setVerbos... | [
"0.66321844",
"0.611933",
"0.5969631",
"0.5799989",
"0.5796111",
"0.5786307",
"0.5731685",
"0.5674197",
"0.5585652",
"0.5545519",
"0.5510849",
"0.5503185",
"0.54670143",
"0.54545456",
"0.54436785",
"0.54300874",
"0.5427386",
"0.5422029",
"0.5384162",
"0.5354077",
"0.5343952",... | 0.6010814 | 2 |
Send a VERBOSE message and log the exception. | public static void v(String tag, String msg, Throwable tr) {
if (logger != null && isLoggingEnabled(tag, VERBOSE)) {
logger.v(tag, msg, tr);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void v(String message, Object... args) {\n log(VERBOSE, null, null, message, args);\n }",
"public void verbose(String message);",
"public static void v(String tag, String msg) {\n if (logger != null && isLoggingEnabled(tag, VERBOSE)) {\n logger.v(tag, msg);\n }\... | [
"0.6045445",
"0.601301",
"0.59901655",
"0.5679385",
"0.5674393",
"0.56008357",
"0.5526383",
"0.54965705",
"0.54503804",
"0.5448075",
"0.5400874",
"0.5291816",
"0.5259536",
"0.52586246",
"0.52456737",
"0.5244847",
"0.52447796",
"0.52410394",
"0.5225266",
"0.5221486",
"0.519705... | 0.6302314 | 0 |
Send a VERBOSE message. | public static void v(String tag, String formatString, Object... args) {
if (logger != null && isLoggingEnabled(tag, VERBOSE)) {
try {
logger.v(tag, String.format(Locale.ENGLISH, formatString, args));
} catch (Exception e) {
logger.v(tag, String.format(Locale.ENGLISH, "Unable to format log: %s", formatString), e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void verbose(String message);",
"public static void v(String message, Object... args) {\n log(VERBOSE, null, null, message, args);\n }",
"public static void v(String tag, String msg) {\n if (logger != null && isLoggingEnabled(tag, VERBOSE)) {\n logger.v(tag, msg);\n }\... | [
"0.66321844",
"0.611933",
"0.6010814",
"0.5969631",
"0.5799989",
"0.5796111",
"0.5786307",
"0.5731685",
"0.5674197",
"0.5585652",
"0.5545519",
"0.5510849",
"0.5503185",
"0.54670143",
"0.54545456",
"0.54436785",
"0.54300874",
"0.5427386",
"0.5422029",
"0.5384162",
"0.5354077",... | 0.4667068 | 64 |
Send a VERBOSE message and log the exception. | public static void v(String tag, String formatString, Throwable tr, Object... args) {
if (logger != null && isLoggingEnabled(tag, VERBOSE)) {
try {
logger.v(tag, String.format(Locale.ENGLISH, formatString, args), tr);
} catch (Exception e) {
logger.v(tag, String.format(Locale.ENGLISH, "Unable to format log: %s", formatString), e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void v(String tag, String msg, Throwable tr) {\n if (logger != null && isLoggingEnabled(tag, VERBOSE)) {\n logger.v(tag, msg, tr);\n }\n }",
"public static void v(String message, Object... args) {\n log(VERBOSE, null, null, message, args);\n }",
"public void ... | [
"0.6302314",
"0.6045445",
"0.601301",
"0.59901655",
"0.5679385",
"0.5674393",
"0.56008357",
"0.5526383",
"0.54965705",
"0.54503804",
"0.5448075",
"0.5400874",
"0.5291816",
"0.5259536",
"0.52586246",
"0.52456737",
"0.5244847",
"0.52447796",
"0.52410394",
"0.5225266",
"0.522148... | 0.5181039 | 22 |
Send an INFO message. | public static void i(String tag, String msg) {
if (logger != null && isLoggingEnabled(tag, INFO)) {
logger.i(tag, msg);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void info(String message);",
"public void info(String message);",
"void info(String message);",
"@Override\n\tpublic void info(Object message) {\n\n\t}",
"public static void logInfo(String message)\n {\n log(IStatus.INFO, message);\n }",
"public void info(String message) {\r\n\t\treport(INFO,... | [
"0.76903015",
"0.76903015",
"0.7526268",
"0.73520607",
"0.73219085",
"0.729474",
"0.7275329",
"0.72366095",
"0.7212195",
"0.71826595",
"0.7150339",
"0.7137888",
"0.6978965",
"0.6973922",
"0.69554657",
"0.6941368",
"0.6920036",
"0.6914571",
"0.6910801",
"0.6899326",
"0.6892738... | 0.0 | -1 |
Send a INFO message and log the exception. | public static void i(String tag, String msg, Throwable tr) {
if (logger != null && isLoggingEnabled(tag, INFO)) {
logger.i(tag, msg, tr);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void info(String message, Throwable throwable);",
"protected void info(String msg, Throwable ex) {\n log.log(Level.INFO, msg, ex);\n }",
"@Override\n\tpublic void info(Object message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void info(String message, Throwable t) {\n\n\t}",
"@Override\... | [
"0.71287006",
"0.7117126",
"0.6896127",
"0.6878121",
"0.6826055",
"0.679508",
"0.6690984",
"0.66724193",
"0.654589",
"0.6537774",
"0.65236783",
"0.6508837",
"0.64558077",
"0.6442024",
"0.6438771",
"0.6432572",
"0.64210474",
"0.6418947",
"0.6402427",
"0.63780147",
"0.63739496"... | 0.5295137 | 100 |
Send an INFO message. | public static void i(String tag, String formatString, Object... args) {
if (logger != null && isLoggingEnabled(tag, INFO)) {
try {
logger.i(tag, String.format(Locale.ENGLISH, formatString, args));
} catch (Exception e) {
logger.i(tag, String.format(Locale.ENGLISH, "Unable to format log: %s", formatString), e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void info(String message);",
"public void info(String message);",
"void info(String message);",
"@Override\n\tpublic void info(Object message) {\n\n\t}",
"public static void logInfo(String message)\n {\n log(IStatus.INFO, message);\n }",
"public void info(String message) {\r\n\t\treport(INFO,... | [
"0.76903015",
"0.76903015",
"0.7526268",
"0.73520607",
"0.73219085",
"0.729474",
"0.7275329",
"0.72366095",
"0.7212195",
"0.71826595",
"0.7150339",
"0.7137888",
"0.6978965",
"0.6973922",
"0.69554657",
"0.6941368",
"0.6920036",
"0.6914571",
"0.6910801",
"0.6899326",
"0.6892738... | 0.0 | -1 |
Send a INFO message and log the exception. | public static void i(String tag, String formatString, Throwable tr, Object... args) {
if (logger != null && isLoggingEnabled(tag, INFO)) {
try {
logger.i(tag, String.format(Locale.ENGLISH, formatString, args, tr));
} catch (Exception e) {
logger.i(tag, String.format(Locale.ENGLISH, "Unable to format log: %s", formatString), e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void info(String message, Throwable throwable);",
"protected void info(String msg, Throwable ex) {\n log.log(Level.INFO, msg, ex);\n }",
"@Override\n\tpublic void info(Object message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void info(String message, Throwable t) {\n\n\t}",
"@Override\... | [
"0.71287006",
"0.7117126",
"0.6896127",
"0.6878121",
"0.6826055",
"0.679508",
"0.6690984",
"0.66724193",
"0.654589",
"0.6537774",
"0.65236783",
"0.6508837",
"0.64558077",
"0.6442024",
"0.6438771",
"0.6432572",
"0.64210474",
"0.6418947",
"0.6402427",
"0.63780147",
"0.63739496"... | 0.0 | -1 |
Send a WARN message. | public static void w(String tag, String msg) {
if (logger != null && isLoggingEnabled(tag, WARN)) {
logger.w(tag, msg);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void warn(String message);",
"public void warn(String message);",
"void warn (String channel,String msg) throws RootException;",
"public void warn(String msg) {\n\t\tif (this.logLevel <= BackupLogger.WARN) {\n\t\t\twrite(\"WARN \" + msg);\n\t\t\tSystem.out.println(\"WARN \" + msg);\n\t\t}\n\t}",
"pu... | [
"0.73214984",
"0.73214984",
"0.7127798",
"0.70651585",
"0.7056616",
"0.70106655",
"0.70045227",
"0.68257964",
"0.6797749",
"0.6779799",
"0.6764164",
"0.6742467",
"0.6720362",
"0.6717806",
"0.6706645",
"0.6675946",
"0.66607463",
"0.66605544",
"0.6588809",
"0.6586998",
"0.65708... | 0.6199063 | 49 |
Send a WARN message and log the exception. | public static void w(String tag, Throwable tr) {
if (logger != null && isLoggingEnabled(tag, WARN)) {
logger.w(tag, tr);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void warn (String msg) throws RootException;",
"public void warn(String message, Throwable throwable);",
"public void logWarn(String logMsg, Exception e) {\n logger.warn(logMsg, e);\n }",
"public void warn(String msg) {\n\t\tif (this.logLevel <= BackupLogger.WARN) {\n\t\t\twrite(\"WARN \" + msg);\n... | [
"0.6745808",
"0.6734788",
"0.6697526",
"0.6631236",
"0.6587497",
"0.65784603",
"0.65762883",
"0.65670645",
"0.65572184",
"0.65218395",
"0.6515477",
"0.6515477",
"0.6507434",
"0.6505077",
"0.6448459",
"0.64482784",
"0.64183366",
"0.635114",
"0.6342238",
"0.6306439",
"0.6293448... | 0.57563955 | 52 |
Send a WARN message and log the exception. | public static void w(String tag, String msg, Throwable tr) {
if (logger != null && isLoggingEnabled(tag, WARN)) {
logger.w(tag, msg, tr);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void warn (String msg) throws RootException;",
"public void warn(String message, Throwable throwable);",
"public void logWarn(String logMsg, Exception e) {\n logger.warn(logMsg, e);\n }",
"public void warn(String msg) {\n\t\tif (this.logLevel <= BackupLogger.WARN) {\n\t\t\twrite(\"WARN \" + msg);\n... | [
"0.6745808",
"0.6734788",
"0.6697526",
"0.6631236",
"0.6587497",
"0.65784603",
"0.65762883",
"0.65670645",
"0.65572184",
"0.65218395",
"0.6515477",
"0.6515477",
"0.6507434",
"0.6505077",
"0.6448459",
"0.64482784",
"0.64183366",
"0.635114",
"0.6342238",
"0.6306439",
"0.6293448... | 0.600389 | 31 |
Send a WARN message. | public static void w(String tag, String formatString, Object... args) {
if (logger != null && isLoggingEnabled(tag, WARN)) {
try {
logger.w(tag, String.format(Locale.ENGLISH, formatString, args));
} catch (Exception e) {
logger.w(tag, String.format(Locale.ENGLISH, "Unable to format log: %s", formatString), e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void warn(String message);",
"public void warn(String message);",
"void warn (String channel,String msg) throws RootException;",
"public void warn(String msg) {\n\t\tif (this.logLevel <= BackupLogger.WARN) {\n\t\t\twrite(\"WARN \" + msg);\n\t\t\tSystem.out.println(\"WARN \" + msg);\n\t\t}\n\t}",
"pu... | [
"0.73214984",
"0.73214984",
"0.7127798",
"0.70651585",
"0.7056616",
"0.70106655",
"0.70045227",
"0.68257964",
"0.6797749",
"0.6779799",
"0.6764164",
"0.6742467",
"0.6720362",
"0.6717806",
"0.6706645",
"0.6675946",
"0.66607463",
"0.66605544",
"0.6588809",
"0.6586998",
"0.65708... | 0.0 | -1 |
Send a WARN message and log the exception. | public static void w(String tag, String formatString, Throwable tr, Object... args) {
if (logger != null && isLoggingEnabled(tag, WARN)) {
try {
logger.w(tag, String.format(Locale.ENGLISH, formatString, args), tr);
} catch (Exception e) {
logger.w(tag, String.format(Locale.ENGLISH, "Unable to format log: %s", formatString), e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void warn (String msg) throws RootException;",
"public void warn(String message, Throwable throwable);",
"public void logWarn(String logMsg, Exception e) {\n logger.warn(logMsg, e);\n }",
"public void warn(String msg) {\n\t\tif (this.logLevel <= BackupLogger.WARN) {\n\t\t\twrite(\"WARN \" + msg);\n... | [
"0.6745808",
"0.6734788",
"0.6697526",
"0.6631236",
"0.6587497",
"0.65784603",
"0.65762883",
"0.65670645",
"0.65572184",
"0.65218395",
"0.6515477",
"0.6515477",
"0.6507434",
"0.6505077",
"0.6448459",
"0.64482784",
"0.64183366",
"0.635114",
"0.6342238",
"0.6306439",
"0.6293448... | 0.0 | -1 |
Send an ERROR message. | public static void e(String tag, String msg) {
if (logger != null && isLoggingEnabled(tag, ERROR)) {
logger.e(tag, msg);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendError() throws IOException {\n System.out.println(\"Error Message\");\n DataOutputStream dos = new DataOutputStream(os);\n dos.writeInt(1);\n dos.writeByte(Message.MSG_ERROR_STATUS);\n }",
"public void sendError(String message) { \r\n this.send(\"Error:\" + ... | [
"0.7786287",
"0.7625356",
"0.75121045",
"0.72041523",
"0.71131325",
"0.71098626",
"0.710952",
"0.7033039",
"0.68925893",
"0.6863916",
"0.6844212",
"0.68351865",
"0.67898315",
"0.6761605",
"0.67296535",
"0.6726494",
"0.6725593",
"0.66880935",
"0.6670428",
"0.6641273",
"0.66166... | 0.0 | -1 |
Send a ERROR message and log the exception. | public static void e(String tag, String msg, Throwable tr) {
if (logger != null && isLoggingEnabled(tag, ERROR)) {
logger.e(tag, msg, tr);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendNotificationError(Exception e) {\n logger.error(e.getMessage());\n \n }",
"protected abstract void logError(Exception e);",
"private void logError(String msg)\n {\n GlobeRedirector.errorLog.write(msg);\n }",
"public void error(String msg) {\n LOGGER_BASE.error(ms... | [
"0.70564556",
"0.6940762",
"0.6725827",
"0.65844864",
"0.6569879",
"0.65481734",
"0.65316206",
"0.6530325",
"0.6466465",
"0.64509684",
"0.6432705",
"0.64268893",
"0.6425053",
"0.6420613",
"0.6418762",
"0.6391024",
"0.6384096",
"0.63747203",
"0.6372607",
"0.63412845",
"0.63396... | 0.5733645 | 81 |
Send a ERROR message and log the exception. | public static void e(String tag, String formatString, Throwable tr, Object... args) {
if (logger != null && isLoggingEnabled(tag, ERROR)) {
try {
logger.e(tag, String.format(Locale.ENGLISH, formatString, args), tr);
} catch (Exception e) {
logger.e(tag, String.format(Locale.ENGLISH, "Unable to format log: %s", formatString), e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendNotificationError(Exception e) {\n logger.error(e.getMessage());\n \n }",
"protected abstract void logError(Exception e);",
"private void logError(String msg)\n {\n GlobeRedirector.errorLog.write(msg);\n }",
"public void error(String msg) {\n LOGGER_BASE.error(ms... | [
"0.70564556",
"0.6940762",
"0.6725827",
"0.65844864",
"0.6569879",
"0.65481734",
"0.65316206",
"0.6530325",
"0.6466465",
"0.64509684",
"0.6432705",
"0.64268893",
"0.6425053",
"0.6420613",
"0.6418762",
"0.6391024",
"0.6384096",
"0.63747203",
"0.6372607",
"0.63412845",
"0.63396... | 0.0 | -1 |
Send a ERROR message. | public static void e(String tag, String formatString, Object... args) {
if (logger != null && isLoggingEnabled(tag, ERROR)) {
try {
logger.e(tag, String.format(Locale.ENGLISH, formatString, args));
} catch (Exception e) {
logger.e(tag, String.format(Locale.ENGLISH, "Unable to format log: %s", formatString), e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendError() throws IOException {\n System.out.println(\"Error Message\");\n DataOutputStream dos = new DataOutputStream(os);\n dos.writeInt(1);\n dos.writeByte(Message.MSG_ERROR_STATUS);\n }",
"public void sendError(String message) { \r\n this.send(\"Error:\" + ... | [
"0.7754052",
"0.7651604",
"0.7534466",
"0.7182982",
"0.71062297",
"0.70660836",
"0.70261765",
"0.6972262",
"0.6839237",
"0.6820049",
"0.6795015",
"0.6752878",
"0.67525667",
"0.6726144",
"0.67162687",
"0.66982776",
"0.66602004",
"0.6613069",
"0.66100997",
"0.6568051",
"0.65511... | 0.0 | -1 |
Function sets the Join status error message and sets the status to FAILED. | public JoinStatusImpl(String errorMessage) {
this.errorMessage = errorMessage;
status = Status.FAILED;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFailStatus(java.lang.String newFailStatus) {\n\tfailStatus = newFailStatus;\n}",
"@Override\n\tpublic void onJoinFailed() {\n\n\t}",
"public EPPNameVerificationCreateFailed(EPPNameVerificationStatus aStatus,\n\t\t\tString aReason) {\n\t\tthis.status = aStatus;\n\t\tthis.reason = aReason;\n\t}",
... | [
"0.6135412",
"0.5990864",
"0.5777381",
"0.57055545",
"0.562434",
"0.5623595",
"0.55772823",
"0.55285126",
"0.5510096",
"0.5488819",
"0.54753244",
"0.54438084",
"0.54407334",
"0.54324573",
"0.5426113",
"0.54196435",
"0.5417687",
"0.54089093",
"0.54031515",
"0.5384218",
"0.5382... | 0.7622225 | 0 |
Sets the current activity. | public synchronized void setCurrentActivity(String currentActivity) {
this.currentActivity = currentActivity;
currentProgress.set(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setActivity(Activity pAcitivity) {\n\n\t}",
"public void setAct(Activity act) {\r\n\t\tthis.act = act;\r\n\t}",
"@Override\n public void setLatestActivity(IActivity activity) {\n }",
"public void setActivity(Activity activity) {\n lastNeuron().setActivity(activity);\n ... | [
"0.7034889",
"0.68357533",
"0.67702466",
"0.67098093",
"0.6637748",
"0.6601357",
"0.6534056",
"0.64228565",
"0.6413057",
"0.63738286",
"0.6324434",
"0.6323762",
"0.63057107",
"0.6264861",
"0.6244525",
"0.61480606",
"0.6122215",
"0.60751736",
"0.60307974",
"0.59694314",
"0.592... | 0.8002573 | 0 |
Sets the current error message. | public synchronized void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
status = Status.FAILED;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void setError(String message);",
"public void setErrorMessage(String msg) {\r\n\t\terrorMessage.setText(msg);\r\n\t}",
"protected void setError(String message) {\n\t\tif (message == null)\n\t\t\tthrow new IllegalArgumentException(\"null error message\");\n\t\tif (hasError()) \n\t\t\tthrow new I... | [
"0.78686154",
"0.74637866",
"0.7322358",
"0.7320176",
"0.70225704",
"0.7008962",
"0.69727534",
"0.6905185",
"0.687336",
"0.6848655",
"0.67642266",
"0.67081004",
"0.6698778",
"0.6692322",
"0.6641736",
"0.66260546",
"0.6595177",
"0.6588952",
"0.6534977",
"0.6515865",
"0.6515865... | 0.6559049 | 18 |
Sets the Join Status as complete. | public synchronized void setComplete() {
status = Status.COMPLETE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void complete()\n {\n isComplete = true;\n }",
"public void completed(final Status status);",
"public void setComplete(Boolean complete){\n this.complete = complete;\n }",
"public void setComplete(boolean complete) {\n\t\t\n\t}",
"public void setCompleted() {\n this.complet... | [
"0.670739",
"0.66478974",
"0.6574009",
"0.65623",
"0.65581864",
"0.6513919",
"0.64478993",
"0.64444894",
"0.6231222",
"0.616962",
"0.61182326",
"0.6102703",
"0.6046074",
"0.6021528",
"0.6002609",
"0.5998607",
"0.5978841",
"0.59721667",
"0.5941825",
"0.5940937",
"0.5912215",
... | 0.7784398 | 0 |
TO STRING Returns a string representation of the import queue id. | public String idToString() {
StringBuffer buffer = new StringBuffer();
buffer.append("IQ id(");
buffer.append(importQueueId);
buffer.append(").");
return buffer.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getImportQueueId() {\r\n return importQueueId;\r\n }",
"public String toString() {\r\n StringBuffer buffer = new StringBuffer();\r\n buffer.append(\"IQ id(\");\r\n buffer.append(importQueueId);\r\n buffer.append(\"), uploaded by \");\r\n buffer.app... | [
"0.70178735",
"0.69959074",
"0.61209035",
"0.60745853",
"0.6022758",
"0.6006631",
"0.56569684",
"0.5652425",
"0.5645566",
"0.5618373",
"0.5603432",
"0.55978066",
"0.5590619",
"0.5570643",
"0.5545553",
"0.55148846",
"0.55105495",
"0.54742754",
"0.5445468",
"0.54276556",
"0.536... | 0.810022 | 0 |
Returns a string representation of this object. | public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("IQ id(");
buffer.append(importQueueId);
buffer.append("), uploaded by ");
buffer.append(uploadedByName);
buffer.append(" on ");
buffer.append(uploadedTime);
buffer.append(", last updated ");
buffer.append(getLastUpdateString());
buffer.append(".");
return buffer.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }",
"public String toString() { return stringify(this, true); }",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"public String toString() {\n\t... | [
"0.8588885",
"0.85858077",
"0.85741955",
"0.85741955",
"0.84884495",
"0.8370555",
"0.8355477",
"0.83117306",
"0.8287743",
"0.82361394",
"0.82195556",
"0.8179197",
"0.8171024",
"0.8171024",
"0.8151153",
"0.80986273",
"0.80929124",
"0.8052724",
"0.80428773",
"0.8037916",
"0.803... | 0.0 | -1 |
GETTERS and SETTERS Gets importQueueId. | public Integer getImportQueueId() {
return importQueueId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DISPID(113)\r\n\t// = 0x71. The runtime will prefer the VTID if present\r\n\t@VTID(108)\r\n\tint queueId();",
"@DISPID(62)\r\n\t// = 0x3e. The runtime will prefer the VTID if present\r\n\t@VTID(67)\r\n\tint queueId();",
"public java.lang.Object getQueueID() {\n return queueID;\n }",
"public gov.ni... | [
"0.6148324",
"0.611376",
"0.61108613",
"0.5640607",
"0.56372315",
"0.55822253",
"0.55546695",
"0.5456872",
"0.5421816",
"0.5401166",
"0.5342461",
"0.5331725",
"0.53241265",
"0.5321204",
"0.53129166",
"0.52422047",
"0.5239382",
"0.5239325",
"0.51975256",
"0.5185351",
"0.511999... | 0.83937705 | 0 |
Whether or not the import queue item includes usercreated KCMs. If null, then the import queue item was not created from an existing sample. | public Boolean getFromSampleWithUserKCs() {
return fromSampleWithUserKCs;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetImport()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(IMPORT$0) != 0;\n }\n }",
"private boolean getIsImported(String productName) {\n\t\treturn productName.contains(AppConstants.IMPORTED_TOKEN);\n\... | [
"0.5450416",
"0.53791016",
"0.5350446",
"0.5228468",
"0.52206814",
"0.5218513",
"0.52158207",
"0.52124894",
"0.5152817",
"0.5125662",
"0.51075196",
"0.5091686",
"0.5075013",
"0.5049191",
"0.5041587",
"0.50260913",
"0.5018502",
"0.5010784",
"0.49426565",
"0.4940601",
"0.493472... | 0.564917 | 0 |
Set whether or not the import queue item includes usercreated KCMss. | public void setFromSampleWithUserKCs(Boolean fromSampleWithUserKCs) {
this.fromSampleWithUserKCs = fromSampleWithUserKCs;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean getFromSampleWithUserKCs() {\r\n return fromSampleWithUserKCs;\r\n }",
"public void setImported(boolean imported);",
"public void setImported(boolean imported)\n\t{\n\t\tthis.imported = imported;\n\t}",
"public void setI_IsImported (boolean I_IsImported);",
"public void setK(boolea... | [
"0.54387003",
"0.5284322",
"0.51786894",
"0.50365",
"0.5010647",
"0.49581203",
"0.4913954",
"0.4903549",
"0.48975205",
"0.48938614",
"0.48789936",
"0.47892886",
"0.47836667",
"0.4780497",
"0.4778337",
"0.47712976",
"0.47552195",
"0.47552195",
"0.47523445",
"0.47202614",
"0.47... | 0.56923646 | 0 |
Get the source dataset id. | public Integer getSrcDatasetId() {
return srcDatasetId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDatasetId() {\n return (attributes.containsKey(KEY_DATASET_ID) ? (String) attributes\n .get(KEY_DATASET_ID) : null);\n }",
"public long getSourceId() {\n return sourceId_;\n }",
"protected String getDataSourceId() {\n return getDataSourceId(s... | [
"0.73397094",
"0.7059779",
"0.705378",
"0.70018125",
"0.69743395",
"0.6946063",
"0.68384236",
"0.6824288",
"0.6794537",
"0.6794537",
"0.67769754",
"0.67642695",
"0.6751744",
"0.67434496",
"0.6733054",
"0.67224413",
"0.6720218",
"0.6699966",
"0.66874444",
"0.667559",
"0.667559... | 0.77389634 | 0 |
Set the source dataset id. | public void setSrcDatasetId(Integer srcDatasetId) {
this.srcDatasetId = srcDatasetId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setSrcId(int value) {\n \n srcId_ = value;\n }",
"private void setSrcId(int value) {\n \n srcId_ = value;\n }",
"public void setSourceAttribute(String id) {\n this.sourceAttribute = id;\n }",
"public void setSourceId(String source) {\n ... | [
"0.69790125",
"0.6946624",
"0.67304856",
"0.6730243",
"0.6688744",
"0.6640681",
"0.660738",
"0.6547602",
"0.65358245",
"0.6485299",
"0.6478527",
"0.642956",
"0.63971716",
"0.63969743",
"0.6393548",
"0.6385207",
"0.63615173",
"0.63472867",
"0.63054216",
"0.6297856",
"0.628609"... | 0.7446845 | 0 |
Get the source dataset name. | public String getSrcDatasetName() {
return srcDatasetName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDatasetName(){\n return this.dataset.getName();\n }",
"public String getDatasetName() {\r\n return _datasetName;\r\n }",
"public String getDataSetName() {\r\n return _datasetname;\r\n }",
"public String getDatasourceName()\n {\n return m_dsName;\n }",
... | [
"0.7515989",
"0.7235403",
"0.7108782",
"0.69782305",
"0.6870037",
"0.6855083",
"0.6771191",
"0.6730026",
"0.6665847",
"0.6644681",
"0.6611393",
"0.6579353",
"0.65619135",
"0.6531302",
"0.65296775",
"0.64977324",
"0.64664596",
"0.6424993",
"0.6380157",
"0.6355487",
"0.6353422"... | 0.82012564 | 0 |
Set the source dataset name. | public void setSrcDatasetName(String srcDatasetName) {
this.srcDatasetName = srcDatasetName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void setDataSetName(String dataSetName)\r\n {\r\n _dataSetName = dataSetName;\r\n setField(DATA_SET, new SimpleString(dataSetName));\r\n }",
"public void setDataSetName(String datasetname) {\r\n _datasetname=datasetname;\r\n }",
"public String getSrcDatasetName() {\r\... | [
"0.72991794",
"0.72857124",
"0.7128114",
"0.69951814",
"0.6978336",
"0.6871661",
"0.67829263",
"0.66050136",
"0.64441234",
"0.64120954",
"0.6411697",
"0.63891184",
"0.63676155",
"0.6353539",
"0.634046",
"0.6266655",
"0.61879754",
"0.61094713",
"0.60949874",
"0.6059961",
"0.60... | 0.7939181 | 0 |
Get the source sample id. | public Integer getSrcSampleId() {
return srcSampleId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getSampleId() {\n return sampleId;\n }",
"public java.lang.String getSampleId() {\n return sampleId;\n }",
"String getSourceID();",
"long getSourceId();",
"public long getSourceId() {\n return sourceId_;\n }",
"public long getSourceId() {\n return source... | [
"0.75534457",
"0.7545017",
"0.7376484",
"0.71558976",
"0.71507907",
"0.7083637",
"0.6984158",
"0.6972893",
"0.6930448",
"0.6889991",
"0.6889991",
"0.68796796",
"0.6726514",
"0.6708031",
"0.6663602",
"0.6659744",
"0.6624265",
"0.65798825",
"0.6574698",
"0.6531248",
"0.6512647"... | 0.77751404 | 0 |
Set the source sample id. | public void setSrcSampleId(Integer srcSampleId) {
this.srcSampleId = srcSampleId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSampleId(java.lang.String value) {\n this.sampleId = value;\n }",
"public org.ga4gh.models.CallSet.Builder setSampleId(java.lang.String value) {\n validate(fields()[2], value);\n this.sampleId = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public void set... | [
"0.7454988",
"0.74301404",
"0.7259667",
"0.70569026",
"0.6973912",
"0.6889364",
"0.6836415",
"0.667935",
"0.65974945",
"0.6553493",
"0.6458127",
"0.64283913",
"0.64152426",
"0.641328",
"0.64061356",
"0.64058155",
"0.6358594",
"0.63285816",
"0.62866515",
"0.62821746",
"0.62736... | 0.74151605 | 2 |
Get the source sample name. | public String getSrcSampleName() {
return srcSampleName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSampleName();",
"@VTID(27)\n java.lang.String getSourceName();",
"@Override\n public String getName() {\n return source.getName();\n }",
"private String getSourceName() {\n return srcFileName;\n }",
"public void setSrcSampleName(String srcSampleName) {\r\n this.srcSa... | [
"0.7968457",
"0.7287977",
"0.7029145",
"0.7022049",
"0.70199656",
"0.6982392",
"0.6945899",
"0.68725437",
"0.68486536",
"0.68429667",
"0.67449665",
"0.67089635",
"0.66420096",
"0.66020083",
"0.65838546",
"0.6567652",
"0.64443517",
"0.6381127",
"0.63709384",
"0.63591516",
"0.6... | 0.83875453 | 0 |
Set the source sample name. | public void setSrcSampleName(String srcSampleName) {
this.srcSampleName = srcSampleName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setSourceName(String name) {\n srcFileName = name;\n }",
"public void setSourceName(java.lang.String param) {\r\n localSourceNameTracker = param != null;\r\n\r\n this.localSourceName = param;\r\n }",
"public String getSrcSampleName() {\r\n return srcSa... | [
"0.76479685",
"0.7261175",
"0.72284925",
"0.6735541",
"0.6684648",
"0.6648813",
"0.649249",
"0.64674747",
"0.6466522",
"0.6462363",
"0.645579",
"0.6430858",
"0.64221764",
"0.64182615",
"0.6371766",
"0.6371766",
"0.6357248",
"0.6356647",
"0.6286499",
"0.62823904",
"0.62735254"... | 0.7925509 | 0 |
Gets a nice displayable version of the file name including the file size. | public String getDisplayFileName() {
return fileName + " (" + FileItem.getDisplayFileSize(fileSize) + ")";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getFormattedFileSize(long size);",
"public String readableFileSize(long size) {\r\n\t\tif(size <= 0) return \"0\";\r\n\t\tfinal String[] units = new String[] { \"B\", \"kB\", \"MB\", \"GB\", \"TB\" };\r\n\t\tint digitGroups = (int) (Math.log10(size)/Math.log10(1024));\r\n\t\treturn new DecimalFormat(\"#,#... | [
"0.7379023",
"0.6807462",
"0.68016183",
"0.6753923",
"0.6617953",
"0.6522276",
"0.6514109",
"0.6463115",
"0.63740575",
"0.6192788",
"0.6192788",
"0.6192788",
"0.6192788",
"0.6192788",
"0.6192788",
"0.6192788",
"0.6192788",
"0.6192788",
"0.6133497",
"0.6129508",
"0.61050886",
... | 0.7990609 | 0 |
Gets format, formatted for display. | public String getFormatString() {
if (format == null) { return ""; }
if (format.equals(ImportQueueItem.FORMAT_TAB)) {
return FORMAT_TAB_DISPLAY;
} else if (format.equals(ImportQueueItem.FORMAT_XML)) {
return FORMAT_XML_DISPLAY;
} else if (format.equals(ImportQueueItem.FORMAT_DISCOURSE)) {
return FORMAT_DISCOURSE_DISPLAY;
} else {
return format + " format";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getFormat();",
"String getFormat();",
"String getFormat();",
"public String getFormat() {\n return format;\n }",
"public String getFormat() {\n return format;\n }",
"public String getFormat() {\n return format;\n }",
"public String format () {\n\t\treturn format;\n\... | [
"0.84338945",
"0.84338945",
"0.84338945",
"0.81713617",
"0.81713617",
"0.81713617",
"0.8152532",
"0.81441575",
"0.81256",
"0.8124774",
"0.81236804",
"0.8100871",
"0.8078563",
"0.78656363",
"0.7771256",
"0.7724739",
"0.76907814",
"0.7689839",
"0.7684723",
"0.7585556",
"0.75830... | 0.8073615 | 13 |
Get the number of transactions, nicely formatted. | public String getNumTransactionsFormatted() {
if (numTransactions == null) { return ""; }
return new DecimalFormat("##,###,##0").format(numTransactions);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getTransactionsCount();",
"public final String getCount() {\n return String.valueOf(count);\n }",
"public int getTxnCount() {\n return txnCount.get();\n }",
"public Integer getTotalNumberOfTransactionLines() {\n return totalNumberOfTransactionLines;\n }",
"public long getA... | [
"0.7366654",
"0.6946589",
"0.674464",
"0.66672236",
"0.6637364",
"0.66101354",
"0.6521809",
"0.6395391",
"0.63619065",
"0.6324699",
"0.62602746",
"0.6231586",
"0.6191131",
"0.6179909",
"0.61756456",
"0.6091359",
"0.6075146",
"0.6074506",
"0.6060418",
"0.60343105",
"0.6020791"... | 0.7611254 | 0 |
Get display string for the last updated time in the number of seconds/minutes/etc ago. | public String getLastUpdateString() {
return getLastUpdateString(lastUpdatedTime);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getLastUpdateString(Date time) {\r\n if (time == null) {\r\n return \"\";\r\n }\r\n return getAmountOfTime(time) + \" ago\";\r\n }",
"public String getLastUpdatedString() {\n return lastUpdated.toString();\n }",
"public String getLastmodifiedTime... | [
"0.76915145",
"0.71566105",
"0.71041477",
"0.6803785",
"0.67233044",
"0.66791296",
"0.6639173",
"0.6616193",
"0.6590972",
"0.65633106",
"0.653335",
"0.6519126",
"0.63911647",
"0.6384181",
"0.63753533",
"0.63385826",
"0.6332585",
"0.6315869",
"0.63151526",
"0.63151526",
"0.629... | 0.7236453 | 1 |
Get display string for the last updated time in the number of seconds/minutes/etc ago. This method should maybe be moved to a utility class. | public static String getLastUpdateString(Date time) {
if (time == null) {
return "";
}
return getAmountOfTime(time) + " ago";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLastUpdateString() {\r\n return getLastUpdateString(lastUpdatedTime);\r\n }",
"public String getLastmodifiedTimeView() {\r\n if (lastmodifiedTime != null) {\r\n lastmodifiedTimeView = DateUtils.dateToStr(lastmodifiedTime, DateUtils.YMD_DASH);\r\n }\r\n r... | [
"0.7125875",
"0.70923877",
"0.6953837",
"0.6633073",
"0.6596259",
"0.65937215",
"0.65640295",
"0.65635",
"0.6511878",
"0.6496538",
"0.64404017",
"0.6402492",
"0.6392036",
"0.63724005",
"0.6350748",
"0.632882",
"0.63280964",
"0.6320477",
"0.63133633",
"0.63022476",
"0.62941045... | 0.7554876 | 0 |
Get display string for an amount of time from now since the given date, in seconds/minutes/etc. This method should maybe be moved to a utility class. | public static String getAmountOfTime(Date time) {
if (time == null) {
return "";
}
String agoString;
Date now = new Date();
long diffMilli = now.getTime() - time.getTime();
long diffSecs = diffMilli / NUM_MILLI;
if (diffSecs == 1) {
agoString = diffSecs + " second";
} else if (diffSecs < NUM_SECS) {
agoString = diffSecs + " seconds";
} else {
long diffMins = diffSecs / NUM_SECS;
if (diffMins == 1) {
agoString = diffMins + " minute";
} else if (diffMins < NUM_MINS) {
agoString = diffMins + " minutes";
} else {
long diffHours = diffMins / NUM_MINS;
if (diffHours == 1) {
agoString = diffHours + " hour";
} else if (diffHours < NUM_HOURS) {
agoString = diffHours + " hours";
} else {
long diffDays = diffHours / NUM_HOURS;
if (diffDays == 1) {
agoString = diffDays + " day";
} else if (diffDays < NUM_DAYS) {
agoString = diffDays + " days";
} else {
long diffWeeks = diffDays / NUM_DAYS;
if (diffWeeks == 1) {
agoString = diffWeeks + " week";
} else {
agoString = diffWeeks + " weeks";
}
}
}
}
}
return agoString;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getElapsedTimeFromNow(Date date) {\n long duration = new Date().getTime() - date.getTime();\n\n long diffInMinutes = TimeUnit.MILLISECONDS.toMinutes(duration);\n long diffInHours = TimeUnit.MILLISECONDS.toHours(duration);\n long diffInDays = TimeUnit.MILLISECONDS.t... | [
"0.7378789",
"0.6860902",
"0.6749931",
"0.66463894",
"0.6628086",
"0.6550822",
"0.65324324",
"0.6510431",
"0.6440539",
"0.6391265",
"0.6378448",
"0.6359724",
"0.634627",
"0.6297798",
"0.62924874",
"0.6262588",
"0.6237157",
"0.62287825",
"0.6218305",
"0.62164426",
"0.6200229",... | 0.7078616 | 1 |
Gets showUndoFlag. Not from DB, set in Servlet from context info in HttpSession. | public Boolean getShowUndoFlag() {
return showUndoFlag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean isUndo() {\n return false;\n }",
"public boolean canUndo();",
"public boolean canUndo();",
"@Override\n public boolean canUndo() {\n return false;\n }",
"protected boolean showCantUndo ()\n {\n return showConfirm(\"m.cant_undo\", \"t.cant_undo\... | [
"0.63945246",
"0.6347863",
"0.6347863",
"0.60641074",
"0.6058793",
"0.5951069",
"0.5933321",
"0.59022754",
"0.58759785",
"0.58759785",
"0.5833695",
"0.57331985",
"0.5671643",
"0.5671543",
"0.56567913",
"0.5644002",
"0.5572533",
"0.5493097",
"0.54832876",
"0.5479294",
"0.54512... | 0.7664785 | 0 |
Get the discourseId, iff IQ item is mapped to a Discourse. | public Long getDiscourseId() { return discourseId; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private DiscourseItem getSrcDiscourse(DiscourseItem item) {\r\n if (item == null) { return null; }\r\n\r\n DiscourseDao dao = DiscourseDbDaoFactory.DEFAULT.getDiscourseDao();\r\n DiscourseItem result = dao.findBySourceId((Long)item.getId());\r\n return result;\r\n }",
"public void ... | [
"0.64463603",
"0.6266961",
"0.59945565",
"0.59868526",
"0.5946326",
"0.5919643",
"0.583901",
"0.57873803",
"0.57822347",
"0.5756892",
"0.5737606",
"0.56568325",
"0.56158453",
"0.5592234",
"0.5590004",
"0.5553991",
"0.5544602",
"0.5539905",
"0.5538778",
"0.55167246",
"0.548964... | 0.71093976 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.