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 |
|---|---|---|---|---|---|---|
gambar Supermarket di click | public void clickSchool(View view){
Intent i = new Intent(this,School.class);
startActivity(i);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_hitam);\n TampilGambar.startAnimation(animScale);\n suara12.start();\n }",
"@Override\n public void onClick(View v) {\n TampilGamba... | [
"0.6754238",
"0.66831404",
"0.6663127",
"0.66572326",
"0.6633718",
"0.66142946",
"0.6607162",
"0.6595508",
"0.6592756",
"0.65897536",
"0.6586985",
"0.65860796",
"0.6576396",
"0.65740097",
"0.65557694",
"0.65447015",
"0.6544489",
"0.6542156",
"0.65403444",
"0.6536802",
"0.6534... | 0.0 | -1 |
Creates new form TeacherSignUP | public ViewTeacherSignUP() {
initComponents();
this.setLocationRelativeTo(null); // for centering form on screen
this.setDefaultCloseOperation(DISPOSE_ON_CLOSE); //does not close app on exit of window
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addTeacher() {\n\t\t\n\t\tString lastName = tLastNameTF.getText();\n\t\tString firstName = tFirstNameTF.getText();\n\t\tString schoolName = tSchoolNameTF.getText();\n\t\tString userName = tUsernameTF.getText();\n\t\tchar[] password = tPasswordPF1.getPassword();\n\t\tString sA1 = tSecurityQ1TF.getText(... | [
"0.7547138",
"0.72069365",
"0.70299226",
"0.6940697",
"0.69229704",
"0.6754126",
"0.6616964",
"0.6572236",
"0.64318955",
"0.6333145",
"0.63162297",
"0.6239156",
"0.6233265",
"0.61469173",
"0.61058474",
"0.6008204",
"0.5953523",
"0.5953146",
"0.59461087",
"0.5884362",
"0.58679... | 0.5812795 | 23 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jTextField3 = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = ... | {
"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.7319573",
"0.72908455",
"0.72908455",
"0.72908455",
"0.7286827",
"0.7248724",
"0.7213511",
"0.7208325",
"0.7195998",
"0.7190202",
"0.7184771",
"0.7158966",
"0.7147921",
"0.7093225",
"0.7080275",
"0.7057302",
"0.69875276",
"0.6977057",
"0.6955658",
"0.6953942",
"0.69454855"... | 0.0 | -1 |
sets scene emission light | public Geometry setEmission(Color emission) {
_emission = emission;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLight1(){\n }",
"public void\nsetAmbientElt( SbColor color )\n\n{\n this.coinstate.ambient.copyFrom(color);\n}",
"private void updateLight() {\r\n\t}",
"public void setLighting(GL3 gl) {\n\t\t // Set the lighting properties\n\t\t\n\t\t// get sunlight vector coords\n\t\tfloat xSun = terra... | [
"0.6866087",
"0.67894435",
"0.668132",
"0.6529228",
"0.6495712",
"0.64843124",
"0.64521",
"0.6394323",
"0.6332246",
"0.62785095",
"0.6139839",
"0.6138344",
"0.6133619",
"0.6110902",
"0.6109851",
"0.60384065",
"0.6018428",
"0.597309",
"0.59620416",
"0.5952832",
"0.59392744",
... | 0.5547859 | 66 |
This test will create deadlocks. Deadlocks would be much less of a problem if they could be resolved programmatically. As they cannot the order of these tests is very important. This means there is one master test method with three sub methods. | public void testItAll() throws Exception {
while (ManagementFactory.getThreadMXBean().findMonitorDeadlockedThreads() != null) {
fail("Started with thread already in deadlock: " + Arrays.toString(ManagementFactory.getThreadMXBean().findMonitorDeadlockedThreads()));
}
noDeadlo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testTryLockAndRelockAndPass() {\n\n\t\tinstance.lock();\n\n\t\tassertTrue(instance.tryLock());\n\t}",
"@Test(groups = { \"lock\", \"nightly\" }, enabled=false)\n public void testMultipleWorkflowsWithLocks() {\n RaptureURI workflowRepo = helper.getRandomAuthority(Scheme.WORKFLOW);\n... | [
"0.6615418",
"0.64281297",
"0.6411281",
"0.636857",
"0.6345063",
"0.6275254",
"0.6145899",
"0.6140416",
"0.607597",
"0.60406685",
"0.6021973",
"0.6018057",
"0.60163975",
"0.59322774",
"0.5906114",
"0.58719206",
"0.5861943",
"0.58410096",
"0.58348924",
"0.5826391",
"0.58244205... | 0.7730841 | 0 |
TODO Autogenerated method stub | @Override
public String unparse() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String toString() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int hashCode() {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean equals(Object obj) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
Author: demo Created on 2018/7/16 | public interface IMainActivityContract {
interface View extends BaseContract.BaseView {
}
interface Presenter extends BaseContract.BasePresenter<View> {
void isBackApp();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void demo() {\n\t\tlab_2_2_5();\n\n\t}",
"public static void thisDemo() {\n\t}",
"public Demo() {\n\t\t\n\t}",
"@Override\n public void setup() {\n\n }",
"public static void main(String args[]) throws Exception\n {\n \n \n \n }",
"private void presentShowcaseSequen... | [
"0.5647035",
"0.5541465",
"0.5376678",
"0.53338957",
"0.5318234",
"0.5278881",
"0.5260936",
"0.5260936",
"0.52601165",
"0.5257082",
"0.5253514",
"0.5233929",
"0.5186595",
"0.5184693",
"0.5182624",
"0.5178098",
"0.51531327",
"0.51449853",
"0.51424664",
"0.51361173",
"0.5133503... | 0.0 | -1 |
Common interface for all mutation operators. | public interface IMutationOperator extends IDescriptable, Opcodes {
/**
* Gets all possible points in given class (bytecode) where different
* mutants can be produced.
*
* @param bytecode bytecode to be analyzed
* @return list of mutation points witihn given class (bytecode)
*/
List<IMutationPoint> getMut... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void mutate();",
"@API.Public\npublic interface DocumentMutation extends Iterable<MutationOp> {\n\n /**\n * Empties this Mutation object.\n */\n public DocumentMutation empty();\n\n /**\n * Sets the value of given field to the specified value. If the value of\n * given field name doesn... | [
"0.6660014",
"0.6463165",
"0.61593556",
"0.6151728",
"0.59929603",
"0.5954237",
"0.58902466",
"0.58102214",
"0.56348246",
"0.5604095",
"0.5573608",
"0.55661684",
"0.5549914",
"0.5487509",
"0.5455459",
"0.54385775",
"0.54344827",
"0.5430419",
"0.5414268",
"0.53566945",
"0.5350... | 0.725931 | 0 |
Gets all possible points in given class (bytecode) where different mutants can be produced. | List<IMutationPoint> getMutationPoints(byte[] bytecode); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<IMutantBytecode> mutate(byte[] bytecode, IMutationPoint mutationPoint);",
"public void compileMutants() {\n\tif (classOp != null && classOp.length > 0) {\n\t Debug.println(\"* Compiling class mutants into bytecode\");\n\t MutationSystem.MUTANT_PATH = MutationSystem.CLASS_MUTANT_PATH;\n\t super.compileMut... | [
"0.5495744",
"0.53275955",
"0.52839947",
"0.5100314",
"0.49457952",
"0.4879189",
"0.4846819",
"0.4846739",
"0.48412973",
"0.48225534",
"0.47843298",
"0.47245875",
"0.46991572",
"0.4677428",
"0.46536854",
"0.4651904",
"0.46264514",
"0.46229538",
"0.46218038",
"0.4601627",
"0.4... | 0.627564 | 0 |
Mutate given bytecode to create mutants with given mutation points. | List<IMutantBytecode> mutate(byte[] bytecode, IMutationPoint mutationPoint); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<IMutationPoint> getMutationPoints(byte[] bytecode);",
"private Mutater createMutater(int mutationpoint) {\n final Mutater m = new Mutater(mutationpoint);\n m.setIgnoredMethods(mExcludeMethods);\n m.setMutateIncrements(mIncrements);\n m.setMutateInlineConstants(mInlineConstants);\n m.setM... | [
"0.67733073",
"0.6123009",
"0.5922236",
"0.5712601",
"0.55165625",
"0.5491389",
"0.54529005",
"0.5060484",
"0.5051569",
"0.4885203",
"0.48167723",
"0.4808702",
"0.4749391",
"0.4748983",
"0.47335762",
"0.47117049",
"0.46849456",
"0.46834418",
"0.46679497",
"0.4601501",
"0.4597... | 0.7767812 | 0 |
GIVEN a requestObject to be converted | @Test
public void shouldConvertATransactionMetricsRequestToTransactionMetric() {
TransactionMetricsRequest transactionMetricsRequest =
from(TransactionMetricsRequest.class).gimme(TransactionMetricsRequestTemplate.INVALID_REQUEST_OLD_2016);
// WHEN I try to convert the object
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TO fromObject(CONTEXT context, final FROM obj);",
"@Override\n public BookDto convertToDto(final HttpServletRequest request) {\n try {\n return BookDto.builder()\n .id(Integer.parseInt(request.getParameter(\"id\")))\n .title(request.getParameter(\"title\... | [
"0.61846346",
"0.5904997",
"0.579815",
"0.5713424",
"0.56236935",
"0.55910414",
"0.55237395",
"0.54956245",
"0.5445602",
"0.54151946",
"0.5413684",
"0.5395144",
"0.5354648",
"0.5346002",
"0.5332674",
"0.53267777",
"0.5323976",
"0.5319973",
"0.53157806",
"0.5303153",
"0.528185... | 0.52460027 | 24 |
GIVEN a requestObject to be converted | @Test
public void shouldConvertATransactionMetricsRequestToTransactionMetricActual() {
TransactionMetricsRequest transactionMetricsRequest =
from(TransactionMetricsRequest.class).gimme(TransactionMetricsRequestTemplate.ACTUAL_EPOCH_MILLIS);
// WHEN I try to convert the object
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TO fromObject(CONTEXT context, final FROM obj);",
"@Override\n public BookDto convertToDto(final HttpServletRequest request) {\n try {\n return BookDto.builder()\n .id(Integer.parseInt(request.getParameter(\"id\")))\n .title(request.getParameter(\"title\... | [
"0.61846155",
"0.59027666",
"0.5796184",
"0.5715531",
"0.56233513",
"0.558935",
"0.55243576",
"0.549289",
"0.54479766",
"0.5414574",
"0.54126835",
"0.5396405",
"0.5355266",
"0.5347161",
"0.5333284",
"0.5325219",
"0.5325074",
"0.5320932",
"0.5314553",
"0.53050303",
"0.5280288"... | 0.50054896 | 52 |
minimizando o aplicativo programaticamente (evitando que a splash screen seja reexibida quando restaurada, ou que o aplicativo volte para a parent intent): | @Override
public void onBackPressed()
{
Utilidades.Aplicativo.minizarAplicativo(this);
// Intent intent = new Intent(Intent.ACTION_MAIN);
// intent.addCategory(Intent.CATEGORY_HOME);
// intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
// startActivity(intent);
// getApplicationContext().startActivity(i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n\r\n // Do not display title bar, this makes the splash screen really full screen\r\n requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n \r\n // Check if we need to display the ... | [
"0.69512033",
"0.69347304",
"0.6924493",
"0.6905144",
"0.68910533",
"0.67703944",
"0.6694202",
"0.6690716",
"0.6689525",
"0.665731",
"0.66357726",
"0.6632455",
"0.6622048",
"0.66085005",
"0.6594692",
"0.6573568",
"0.6569493",
"0.6563659",
"0.65528816",
"0.65372473",
"0.652605... | 0.0 | -1 |
Inicia o ciclo de exibicao temporaria da splash screen, seguindo com a animacao de transicao para exibir o conteudo principal da activity. | private void initializeSplashScreenCycle()
{
// desabilitando os botoes antes de iniciar a animacao da splash screen:
Utilidades.Views.disableViews(this.arrViewsBloqueaveis);
Animation animLayoutSplitLogo = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.splash_move);
Animation animLayoutContent ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void splash(){\n ImageView splash = (ImageView) findViewById(R.id.mekslogo);\n Animation animation1 =\n AnimationUtils.loadAnimation(getApplicationContext(),\n R.anim.clockwise);\n animation1.setDuration(5000);\n splash.startAnimation(animati... | [
"0.7453707",
"0.7369857",
"0.72216475",
"0.71246076",
"0.69044185",
"0.68912745",
"0.6856517",
"0.68535453",
"0.68298626",
"0.6754833",
"0.6688386",
"0.6682068",
"0.66643643",
"0.6660629",
"0.6644893",
"0.66426593",
"0.6602209",
"0.6593905",
"0.655718",
"0.6549199",
"0.654631... | 0.6791538 | 9 |
rehabilitando os botoes depois de finalizar a animacao da splash screen: | @Override
public void onAnimationEnd(Animation animation)
{
Utilidades.Views.enableViews(arrViewsBloqueaveis);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initializeSplashScreenCycle()\n\t{\n\t\t// desabilitando os botoes antes de iniciar a animacao da splash screen:\n\t\tUtilidades.Views.disableViews(this.arrViewsBloqueaveis);\n\n\t\tAnimation animLayoutSplitLogo = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.splash_move);\n\t\tAnimatio... | [
"0.71723366",
"0.6910589",
"0.6725042",
"0.6701296",
"0.6596005",
"0.65705264",
"0.65377265",
"0.65302145",
"0.6516118",
"0.64895946",
"0.6430725",
"0.62889665",
"0.62821835",
"0.6270159",
"0.6266838",
"0.6261512",
"0.62247753",
"0.6217368",
"0.6097084",
"0.6057145",
"0.60478... | 0.0 | -1 |
Created by Andy on 11/2/17. | public interface Service<E>
{
void start(E handler);
void stop(E handler);
default void pause(E handler) {}
default void resume(E handler) {}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"protected boolean func_70814_o... | [
"0.5867078",
"0.5863937",
"0.5828345",
"0.5715621",
"0.5714425",
"0.5712373",
"0.56622785",
"0.56622785",
"0.5653585",
"0.5647272",
"0.5635531",
"0.5635499",
"0.5627699",
"0.5624684",
"0.5618582",
"0.55843496",
"0.55817306",
"0.55817306",
"0.55817306",
"0.55817306",
"0.558173... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
if(v.getId() == R.id.setting_update) {
Editor editor = sp.edit();
if(update_setting.getCheckBox().isChecked()) {
update_setting.setCheckBox(false);
editor.putBoolean("auto_update", false);
}else {
update_setting.setCheckBox(true);
... | {
"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 |
Generates a tile positioned and fixed in the game board | public TilePositionedFixed(Tile tile0, Rotation rotation2)
{
super(tile0, rotation2, true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void generateTiles() {\n }",
"@Override\n\tprotected void generateTiles() {\n\t}",
"private void createTile(){\n for(int i = 0; i < COPY_TILE; i++){\n for(int k = 0; k < DIFF_TILES -2; k++){\n allTiles.add(new Tile(k));\n }\n }\n ... | [
"0.7133566",
"0.70300645",
"0.69864875",
"0.695054",
"0.6776188",
"0.6766815",
"0.67540926",
"0.6698738",
"0.66882944",
"0.66863567",
"0.6649996",
"0.6640449",
"0.6636494",
"0.65971524",
"0.6591226",
"0.6510756",
"0.65035194",
"0.64791554",
"0.6433198",
"0.6418754",
"0.641749... | 0.0 | -1 |
Handles the get request. if not logged in, redirect to "login" page. | protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
if (!isLoggedIn(request))
getServletContext().getRequestDispatcher(LOGIN_PAGE).forward(request, response);
else {
String s = request.getParameter("id");
Identity identity = new Identity... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\n HttpSession session = request.getSession();\n // Test if there is a user signed in.\n U... | [
"0.73104984",
"0.7153951",
"0.71398824",
"0.7101608",
"0.7085784",
"0.70780087",
"0.7062988",
"0.7048556",
"0.7003312",
"0.69811094",
"0.6962947",
"0.69549495",
"0.6952656",
"0.6886571",
"0.68741924",
"0.68290186",
"0.68020815",
"0.66978025",
"0.66953194",
"0.66851264",
"0.66... | 0.64886785 | 29 |
Handles the request and uses the DAO to update the identity in the DB. | protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
if (!isLoggedIn(request)) {
writeLoginNeededInfo(response);
return;
}
JSONObject status = new JSONObject();
PrintWriter out = response.getWriter();
try {
Identity id = pars... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tif (!isLoggedIn(request))\n\t\t\tgetServletContext().getRequestDispatcher(LOGIN_PAGE).forward(request, response);\n\t\telse {\n\t\t\tString s = request.getParameter(\"id\");\n\n\t\t\tId... | [
"0.6058119",
"0.60058475",
"0.592491",
"0.58633024",
"0.5837898",
"0.58314246",
"0.5823635",
"0.5816092",
"0.5798224",
"0.5783055",
"0.5666364",
"0.56639576",
"0.56590897",
"0.5640128",
"0.56256056",
"0.56068665",
"0.5565755",
"0.55514824",
"0.55334044",
"0.5530055",
"0.55125... | 0.6313829 | 0 |
Created by Daniel.Xu on 2017/1/14. | public interface MRPApi {
@POST("get_mrp_production")
Call<GetMrpProductionResponseBean> getMrpProduction(@Body GetMrpProductionRequestBean requestBean);
@POST("get_stock_inventory_list")
Call<GetStockInventoryResponse> getStockInventoryList(@Body GetStockInventoryRequestBean getStockInventoryRequestB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
... | [
"0.5874132",
"0.5650101",
"0.56082654",
"0.5589348",
"0.555989",
"0.5558183",
"0.5558183",
"0.5539216",
"0.5490274",
"0.5464456",
"0.5445043",
"0.54437566",
"0.5439352",
"0.5404738",
"0.53937864",
"0.53916436",
"0.53752273",
"0.5356616",
"0.53451467",
"0.53449786",
"0.5300521... | 0.0 | -1 |
TODO not sure if CPL belongs to ALU, let's leave it here for now | public void cpl() {
int op = registers.getRegister(Register.A);
int result = invert(op);
registers.setRegister(Register.A, result);
registers.setFlag(Flag.H, true);
registers.setFlag(Flag.N, true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract int getSoL();",
"pvcs createpvcs();",
"private final void silk_PLC_update(final Jsilk_decoder_control psDecCtrl)\r\n\t{\r\n\t\tfinal Jsilk_PLC_struct psPLC = this.sPLC;\r\n\r\n\t\t/* Update parameters used in case of packet loss */\r\n\t\tthis.prevSignalType = this.indices.signalType;\r\n\t\tin... | [
"0.51517195",
"0.5135802",
"0.5130123",
"0.51140565",
"0.51104945",
"0.51104945",
"0.5100413",
"0.507564",
"0.50554025",
"0.5013543",
"0.49887782",
"0.49717307",
"0.49472752",
"0.49416333",
"0.49269113",
"0.49087188",
"0.49014747",
"0.48975307",
"0.4896185",
"0.4886912",
"0.4... | 0.5064449 | 8 |
TODO temp. solution; move it out of ALU or combine with existing inc() | public int incExtern(final int op1) {
Adder adder = Adder.newAdder8();
int result = adder.add(op1, 1, 0);
setIncrementFlags(adder, result);
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void inc() {\n inc(1);\n }",
"public void inc(){\n this.current += 1;\n }",
"default void inc(long value) {\n\t\tcount(Math.abs(value));\n\t}",
"public void increment() {\n increment(1);\n }",
"public void IncrementCounter()\r\n {\r\n \tsetCurrentV... | [
"0.74258834",
"0.71684885",
"0.67121035",
"0.6706633",
"0.66803694",
"0.66538537",
"0.66538537",
"0.66034555",
"0.6597332",
"0.65399206",
"0.65355676",
"0.649384",
"0.64834213",
"0.6471879",
"0.6451464",
"0.6420914",
"0.6378323",
"0.63621414",
"0.63621414",
"0.6346977",
"0.63... | 0.0 | -1 |
TODO temp. solution; move it out of ALU or combine with existing dec() | public int decExtern(final int op1) {
Adder adder = Adder.newAdder8();
int result = adder.sub(op1, 1, 0);
setDecrementFlags(adder, result);
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void toDec(){\n\t\tlong temp = Long.parseLong(binary.substring(binary.length()/2, binary.length()));\n\t\tlong tempbin = 0;\n\t\tint j = 0;//splits the string in half with 2 for loops \n\t\tfor (int i = 0; i < binary.length()/2;i++){//second half of string\n\t\t\ttempbin+=((long)(Math.pow(2,j))*(temp%10));... | [
"0.6634597",
"0.65951395",
"0.6563234",
"0.63855326",
"0.6371915",
"0.6339986",
"0.61065745",
"0.59958243",
"0.59128803",
"0.5895031",
"0.58209145",
"0.5773303",
"0.57404244",
"0.5642424",
"0.55934733",
"0.55854625",
"0.5571076",
"0.5557307",
"0.55331475",
"0.54319143",
"0.53... | 0.5566145 | 17 |
null means offline mode | public void Fill(WymiaryDTO wymiary)
{
this.wymiary=wymiary;
//updateGUI();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean getOffline();",
"private boolean dataAvailableOffline() {\n return false;\n }",
"boolean setOffline(boolean b);",
"public boolean isOffline()\n {\n return m_bOffline;\n }",
"public boolean isOnline() {\n return isOnline;\n }",
"public boolean getOffline() {\n ret... | [
"0.7848508",
"0.69186664",
"0.68565273",
"0.6823916",
"0.68231976",
"0.68025476",
"0.67768943",
"0.6767804",
"0.6693088",
"0.6669269",
"0.655215",
"0.64734924",
"0.64160794",
"0.6319792",
"0.6317352",
"0.63114214",
"0.6309575",
"0.63093",
"0.62862927",
"0.6284446",
"0.6278804... | 0.0 | -1 |
Constructor fo Timer whit Start Thread | private AppTimer() {
start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Timer() {\n myThread = new TimerThread();\n myThread.start();\n }",
"public Timer() {}",
"public void start() {timer.start();}",
"public Timer() {\n\t\tthis.start = 0L;\n\t\tthis.end = 0L;\n\t}",
"public GameTimer()\n \t{\n \t\tsuper();\n \t\tt = new Task();\n \t\tsched... | [
"0.8277894",
"0.76293105",
"0.7597392",
"0.74654716",
"0.74232733",
"0.7339715",
"0.7305739",
"0.7304129",
"0.727269",
"0.72524434",
"0.71366197",
"0.7136503",
"0.7106594",
"0.70963234",
"0.7089112",
"0.7086646",
"0.7080603",
"0.7057984",
"0.7057636",
"0.70524544",
"0.7032165... | 0.69669634 | 21 |
Reverser fo the flag (Start or Stop Thread) | public static void invertFlag() {
runFlag = !runFlag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void startStop()\n\t\t{\n\t\tif(currentAlgo!=null)\n\t\t\t{\n\t\t\tif(isRunning())\n\t\t\t\t{\n\t\t\t\tbStartStop.setText(\"Stopping\");\n\t\t\t\tthread.toStop=true;\n\t\t\t\tcurrentAlgo.setStopping(true);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tthread=new SteppingThread();\n\t\t\t\tbStartStop.setText(\... | [
"0.6623924",
"0.6541417",
"0.64825815",
"0.6453959",
"0.6374831",
"0.6318138",
"0.6294121",
"0.621509",
"0.61874413",
"0.6130303",
"0.61282384",
"0.61180776",
"0.60831094",
"0.6053465",
"0.6043649",
"0.6022864",
"0.6013295",
"0.599032",
"0.5979234",
"0.5975342",
"0.5953517",
... | 0.677625 | 0 |
Return the unique possible instance of the AppTimer | public static AppTimer getIstance() {
if (instance == null) {
synchronized (AppTimer.class) {
if (instance == null) {
instance = new AppTimer();
}
}
}
return instance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Time uniqueInstance() {\r\n\t\tif (time == null) {\r\n\t\t\tsynchronized (Time.class) {\r\n\t\t\t\tif (time == null) {\r\n\t\t\t\t\ttime = new Time(600);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn time;\r\n\t}",
"public static Timer getSharedNonDeamonTimer() {\n if ( sharedNonDeamonTimer... | [
"0.67606896",
"0.6491661",
"0.6467671",
"0.6460632",
"0.64276737",
"0.633288",
"0.6264495",
"0.61005384",
"0.60660905",
"0.6063985",
"0.59253746",
"0.59172505",
"0.59107757",
"0.59107757",
"0.59107757",
"0.58924526",
"0.5883739",
"0.5857683",
"0.58383334",
"0.5824619",
"0.581... | 0.73757833 | 0 |
Stop the Timer when it is running | public void stopTimer() {
runFlag = false;
ses.shutdown();
System.err.println("TIMER SHUTDOWN");
instance = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void stop() {timer.stop();}",
"public void stop() {\n timer.stop();\n }",
"public static void stopTimer() {\n timerIsWorking = false;\r\n elapsedTime = 0;\r\n }",
"public void stopTimer()\n {\n timer.cancel();\n }",
"public void stop() {\n\t\tthis.timer.cancel... | [
"0.90101105",
"0.8632429",
"0.85859156",
"0.8570227",
"0.85629755",
"0.85604984",
"0.8553526",
"0.85524046",
"0.8518225",
"0.84581274",
"0.83132607",
"0.82929724",
"0.8279185",
"0.8249434",
"0.8091514",
"0.8044991",
"0.8042241",
"0.80347306",
"0.7968555",
"0.79524755",
"0.793... | 0.85435265 | 8 |
Start Timer for "min" minutes | public void startTimer(final int min) throws InterruptedException {
System.err.println("Inizio startTimer per = " + min);
final int sec = min * 60;
ses.scheduleWithFixedDelay(new Runnable() {
@Override
public void run() {
if (!runFlag) {
invertFlag();
} else {
System.out.println(new Date(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void start() {timer.start();}",
"public void startTimer() {\n timer = new Timer();\n //initialize the TimerTask's job\n initializeTimerTask();\n //schedule the timer, to wake up every 1 second\n timer.schedule(timerTask, 1000, 1000); //\n }",
"public void startTimer... | [
"0.7086723",
"0.6920566",
"0.6916064",
"0.6833789",
"0.68063784",
"0.68058187",
"0.67568606",
"0.674621",
"0.67224467",
"0.66963756",
"0.6695356",
"0.6683474",
"0.66651875",
"0.6613604",
"0.658991",
"0.65492374",
"0.651588",
"0.64887625",
"0.64832973",
"0.6470042",
"0.6465047... | 0.7991502 | 0 |
Disegna montagne e nuvole | public void render(SpriteBatch batch){
montagne.render(batch);
nuvole.render(batch);
//disegniamo tutti gli oggetti di gioco
for(MonetaDOro m:monete){
m.render(batch);
}
for(MonetaBlu m:moneteBlu){
m.render(batch);
}
for(Stella s:stelle){
s.render(batch);
}
for(Calamita c ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void gastarDinero(double cantidad){\r\n\t\t\r\n\t}",
"public abstract void debiterMontant( double montant);",
"void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra... | [
"0.6698184",
"0.6571777",
"0.6251219",
"0.616924",
"0.61530215",
"0.614568",
"0.6143228",
"0.6132643",
"0.6121309",
"0.6103582",
"0.60889506",
"0.6048594",
"0.602026",
"0.6008926",
"0.60081863",
"0.5994942",
"0.59909886",
"0.59882575",
"0.598129",
"0.59762305",
"0.59684926",
... | 0.0 | -1 |
Provides service to save and query reports. | @ClassVersion("$Id: HistoryService.java 16670 2013-08-28 19:49:06Z colin $")
public interface HistoryService {
/**
* Initializes the receiver with the given system resources.
*
* @param idFactory The ID factory to be used for report ID
* generation.
* @param reportSavedListener The... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected IViewerReportService getReportService( )\n \t{\n \t\treturn BirtReportServiceFactory.getReportService( );\n \t}",
"public interface ReportService {\n /**\n * Some constants using in reports\n */\n String[] dashboardSheetNames = {\"Level And Quantity\", \"Level And Trainers\", \"Training A... | [
"0.67476493",
"0.673938",
"0.66971844",
"0.64871645",
"0.63874894",
"0.6352967",
"0.63183784",
"0.62723124",
"0.6235039",
"0.6200043",
"0.609996",
"0.60924286",
"0.60775787",
"0.60605186",
"0.6043136",
"0.59801656",
"0.59686136",
"0.5899627",
"0.5866369",
"0.58542997",
"0.585... | 0.5959754 | 17 |
Initializes the receiver with the given system resources. | public void init(IDFactory idFactory,
ReportSavedListener reportSavedListener,
ComboPooledDataSource dataSource)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void init() {\r\n resources = new Vector<ResourcesElement>();\r\n informations = new Vector<InformationElement>();\r\n output = null;\r\n spec = DEFAULT_SPEC;\r\n version = null;\r\n codeBase = null;\r\n href ... | [
"0.65410835",
"0.6495948",
"0.64483905",
"0.6434382",
"0.6386953",
"0.63076234",
"0.6279119",
"0.6262804",
"0.62371033",
"0.62151927",
"0.61964273",
"0.6186873",
"0.61584526",
"0.6114764",
"0.61110216",
"0.6099071",
"0.60940856",
"0.6091841",
"0.6066565",
"0.6066565",
"0.6055... | 0.0 | -1 |
Returns the actor ID associated with the report with given order ID. | public UserID getActorID
(final OrderID orderID)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getID(OrderItem oi){\n int id;\n id=findID(oi);\n return id;\n }",
"public int getId() {\n return orderID;\n }",
"public int getOrderID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue ... | [
"0.5968757",
"0.5929059",
"0.5879901",
"0.5734081",
"0.5675547",
"0.56544036",
"0.56537557",
"0.56292033",
"0.55541414",
"0.55419326",
"0.5518646",
"0.55073565",
"0.55051863",
"0.54459023",
"0.54324543",
"0.5428195",
"0.54189956",
"0.54082173",
"0.5377837",
"0.53737485",
"0.5... | 0.73285323 | 0 |
Returns all the reports received after the supplied datetime value, and which are visible to the given user. | public ReportBaseImpl[] getReportsSince
(SimpleUser user, Date data)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<ExpenseReport> getReports(String ownerEmail, String userEmail) {\n ExpenseReportMeta reportMeta = ExpenseReportMeta.get();\n List<ExpenseReport> reports = Datastore.query(reportMeta)\n .filter(reportMeta.ownerEmail.equal(ownerEmail))\n .filter(reportM... | [
"0.587115",
"0.5809354",
"0.57946193",
"0.5560938",
"0.55538267",
"0.5495198",
"0.54684174",
"0.54617983",
"0.53366333",
"0.53083503",
"0.5295592",
"0.528256",
"0.52656233",
"0.52606744",
"0.52575195",
"0.5253311",
"0.52336293",
"0.5212756",
"0.5209135",
"0.5144813",
"0.51366... | 0.6839546 | 0 |
Returns the open orders visible to the given user. | public List<ReportBaseImpl> getOpenOrders(SimpleUser user)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public List<Order> findOrdersByUser(User user) {\n return orderRepository.findByCustomerUsernameOrderByCreatedDesc(user.getUsername()).stream()\n .filter(t -> t.getOrder_state().equals(\"ACTIVE\"))\n .map(mapper::toDomainEntity)\n .collect(toList());\n }",
"List<... | [
"0.65941834",
"0.6375491",
"0.61596775",
"0.5984554",
"0.59212446",
"0.5896197",
"0.58374447",
"0.5803971",
"0.5753674",
"0.56684387",
"0.56327665",
"0.55493605",
"0.5546901",
"0.5534169",
"0.5488379",
"0.54379714",
"0.5419525",
"0.53588206",
"0.53513545",
"0.52726465",
"0.52... | 0.73423 | 0 |
Returns the position of the instrument based on all reports received for it before or on the supplied date, and which are visible to the given user. | public BigDecimal getPositionAsOf
(SimpleUser user, Date data, Instrument instrument)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<UserPosition> getUserPositionByIdUser(Long id_user, Date date);",
"List<UserPosition> getUserPositionByIdUserAndDate(Long id_user, Date date);",
"public ReportBaseImpl[] getReportsSince\r\n \t\t(SimpleUser user, Date data)\r\n \t\tthrows PersistenceException;",
"@Override\n\tpublic List<PhysicalDa... | [
"0.63399726",
"0.6114719",
"0.57003623",
"0.5213799",
"0.51801735",
"0.5117687",
"0.50462484",
"0.504529",
"0.49861777",
"0.49378353",
"0.4850925",
"0.48168325",
"0.48059782",
"0.47835395",
"0.47256833",
"0.46663398",
"0.46034077",
"0.4596723",
"0.45940682",
"0.45564318",
"0.... | 0.5973195 | 2 |
Returns the aggregate position of each (instrument,account,actor) tuple based on all reports for given security type received for each tuple on or before the supplied date, and which are visible to the given user. | public Map<PositionKey, BigDecimal> getPositionsAsOf
(SimpleUser user, Date data, SecurityType securityType)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SPResponse getEngagementMatrix(User user, Object[] param) {\n \n final SPResponse response = new SPResponse();\n \n String startDateStr = (String) param[0];\n String endDateStr = (String) param[1];\n \n Set<String> allGroups = new HashSet<>();\n Set<String> allTags = new HashSet<>();... | [
"0.56312335",
"0.5093992",
"0.50929964",
"0.49279225",
"0.4873292",
"0.48309442",
"0.48221737",
"0.48187125",
"0.4779381",
"0.4737812",
"0.47121784",
"0.4658138",
"0.46086347",
"0.45676205",
"0.4564138",
"0.45578098",
"0.45575392",
"0.4552486",
"0.45401233",
"0.4511556",
"0.4... | 0.5727774 | 0 |
Returns the aggregate position of each (instrument,account,actor) tuple based on all reports received for each tuple on or before the supplied date, and which are visible to the given user. | public Map<PositionKey, BigDecimal> getAllPositionsAsOf
(SimpleUser user, Date data)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<UserPosition> getUserPositionByIdUser(Long id_user, Date date);",
"public SPResponse getEngagementMatrix(User user, Object[] param) {\n \n final SPResponse response = new SPResponse();\n \n String startDateStr = (String) param[0];\n String endDateStr = (String) param[1];\n \n Set<String... | [
"0.5776021",
"0.57454497",
"0.57099825",
"0.52336955",
"0.5229808",
"0.5205685",
"0.5192558",
"0.5113729",
"0.5069456",
"0.5057634",
"0.50469375",
"0.48854685",
"0.47424483",
"0.47372594",
"0.46569157",
"0.46433932",
"0.46279287",
"0.46232268",
"0.4597433",
"0.45838356",
"0.4... | 0.52722234 | 3 |
Saves the supplied report to the database. Saving may be immediate or delayed; in either case the report ID is set before this method returns. | public void saveReport(ReportBase report)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ReportEntity save(ReportEntity reportEntity)\n {\n setCTR(reportEntity);\n setCR(reportEntity);\n setFillRate(reportEntity);\n setECPM(reportEntity);\n return reportRepository.save(reportEntity);\n }",
"@Override\r\n\tpublic void save(TAnalysisReport analysisreport... | [
"0.72847205",
"0.6806917",
"0.6528583",
"0.6462349",
"0.6335582",
"0.61752385",
"0.6117333",
"0.58672404",
"0.58385366",
"0.5832053",
"0.57537156",
"0.5749011",
"0.57316613",
"0.5709805",
"0.5704538",
"0.5615814",
"0.55818003",
"0.55189776",
"0.5485482",
"0.5479301",
"0.54521... | 0.7701898 | 0 |
Deletes the supplied report from the database. | public void deleteReport(ReportBase report)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void delete(MrReport report) {\n getSession().delete(report);\n }",
"private void deleteReport(int reportID){\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tstmt.executeUpdate(\"DELETE FROM report_times WHERE report_id=\"+reportID);\n\t\t\tstmt.executeUpdate(\"DELETE FROM repo... | [
"0.7948375",
"0.7719421",
"0.7634254",
"0.7275095",
"0.7247398",
"0.7189148",
"0.71275985",
"0.6936622",
"0.6440358",
"0.64202714",
"0.63156676",
"0.62949866",
"0.6280718",
"0.62773144",
"0.6171553",
"0.6164696",
"0.61601675",
"0.60860074",
"0.6074563",
"0.5948879",
"0.591202... | 0.83783627 | 0 |
Returns the history quotes visible to the given dates. | public List<Quote> getQuoteHistory(Instrument instrument, Period period,
Date fromDate, Date toDate)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vector getHistoryVisiting(Vector conditions){\n Vector listHistory = new Vector();\n try{\n String sqlGet = \"SELECT history_id, convert(varchar(10),from_date,103) AS history_fromdate, convert(varchar(10),to_date,103) AS history_todate FROM history_doctor\";\n String strC... | [
"0.61980104",
"0.605537",
"0.5721271",
"0.56395656",
"0.5592631",
"0.55786705",
"0.5568715",
"0.5453293",
"0.54184043",
"0.5393283",
"0.53915095",
"0.53911006",
"0.5282301",
"0.52815515",
"0.52771175",
"0.52763903",
"0.52672863",
"0.52578926",
"0.5246765",
"0.5239484",
"0.520... | 0.63722205 | 0 |
Returns the available instruments supported by the Broker. | public Set<Instrument> getInstruments(BrokerID brokerID)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Instrument[] getAvailableInstruments() {\r\n\t\tInstrument[] allInstruments = synth.getAvailableInstruments();\r\n\t\tInstrument[] bank1 = new Instrument[128];\r\n\t\tfor (int i = 0; i < 128; i++) {\r\n\t\t\tif (allInstruments[i].getPatch().getBank() == 0)\r\n\t\t\t\tbank1[i] = allInstruments[i];\r\n\t\t}\... | [
"0.71942943",
"0.6272582",
"0.5928147",
"0.57958984",
"0.5680526",
"0.56732565",
"0.56196827",
"0.56117517",
"0.5583307",
"0.55558157",
"0.5553754",
"0.54522026",
"0.5445534",
"0.5428974",
"0.542217",
"0.53756285",
"0.5351038",
"0.5282325",
"0.52492857",
"0.5229485",
"0.52184... | 0.61764896 | 2 |
Gets the supplied instrument info to the database. | public InstrumentInfo getInstrumentInfo(BrokerID brokerID, Instrument instrument)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T getInstrument(String ticker) throws DaoException, InstrumentNotFoundException;",
"HashMap<String, Instrument> getInstruments();",
"public Instrument getInstrument()\n {\n return instrument;\n }",
"public InstrumentDescription getInstrument();",
"public interface InstrumentRepository {\n\n ... | [
"0.6697353",
"0.6283918",
"0.61469615",
"0.6008459",
"0.596046",
"0.57886535",
"0.5775016",
"0.57472473",
"0.5728131",
"0.5710388",
"0.57093245",
"0.5609259",
"0.5466219",
"0.53701365",
"0.52962106",
"0.52910674",
"0.5289243",
"0.5274785",
"0.5271233",
"0.52669543",
"0.524345... | 0.6936797 | 0 |
Saves/Replaces the supplied instrument info to the database. | public void setInstrumentInfo(BrokerID brokerID, Instrument instrument, InstrumentInfo info)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean saveInstrument(T instrument) throws DaoException;",
"private void saveInstrument() {\n String instrument = mInstrument.getText().toString().trim();\n String brand = mBrand.getText().toString().trim();\n String serial = mSerial.getText().toString().trim();\n int quantity = mQua... | [
"0.6983554",
"0.59814423",
"0.58334816",
"0.5804333",
"0.571158",
"0.5646956",
"0.5581581",
"0.5452367",
"0.542579",
"0.542466",
"0.53989536",
"0.5371494",
"0.5366872",
"0.53552157",
"0.532824",
"0.5311451",
"0.53113914",
"0.5286401",
"0.52766854",
"0.5271224",
"0.5242918",
... | 0.6520108 | 1 |
Deletes the instrument info from the database. | public void deleteInstrumentInfo(BrokerID brokerID, Instrument instrument)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean deleteInstrument(T instrument) throws DaoException, InstrumentNotFoundException;",
"int deleteByPrimaryKey(Integer acTeacherInstrumentId);",
"public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\... | [
"0.72114944",
"0.648238",
"0.6450829",
"0.63227457",
"0.6297467",
"0.6257167",
"0.6254783",
"0.6224447",
"0.61563355",
"0.61084056",
"0.6087722",
"0.6077768",
"0.60774195",
"0.6062091",
"0.6048219",
"0.60268104",
"0.60163474",
"0.60056084",
"0.592792",
"0.5903998",
"0.5899507... | 0.73432255 | 0 |
Gets the root order ID for the given order ID. | public OrderID getRootOrderID(OrderID inOrderID)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOrderID() {\n\t\treturn this.token.get(\"orderID\").toString();\n\t}",
"public int getId() {\n return orderID;\n }",
"@java.lang.Override\n public java.lang.String getRootId() {\n java.lang.Object ref = rootId_;\n if (ref instanceof java.lang.String) {\n return (java.lang... | [
"0.62520474",
"0.6135851",
"0.6130931",
"0.61221033",
"0.61219084",
"0.61219084",
"0.60593367",
"0.60158926",
"0.60081905",
"0.6004682",
"0.5965773",
"0.5915756",
"0.5906731",
"0.5906453",
"0.5831277",
"0.58225757",
"0.57827395",
"0.57444483",
"0.57369864",
"0.57365936",
"0.5... | 0.74644244 | 0 |
Saves the supplied quote to the database. Saving may be immediate or delayed; | public void saveQuote(QuoteEvent quote)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveQuote() {\n\t\ttry {\n\t\t\tString json = urlRead.readUrl(\"http://dist-sso.it-kartellet.dk/quote/\");\n\n\t\t\tJSONParser jsonParser = new JSONParser();\n\t\t\tJSONObject jsonObject = (JSONObject) jsonParser.parse(json);\n\n\t\t\tString quote = (String) jsonObject.get(\"quote\");\n\t\t\tquote = qu... | [
"0.749796",
"0.6501208",
"0.6300077",
"0.6262422",
"0.6166728",
"0.59561074",
"0.58543277",
"0.58345664",
"0.5811655",
"0.57587177",
"0.57587177",
"0.57587177",
"0.57587177",
"0.5741669",
"0.57402056",
"0.5739985",
"0.57215095",
"0.567187",
"0.5663928",
"0.5624385",
"0.561691... | 0.81708986 | 0 |
Deletes the supplied quote from the database. | public void deleteQuote(QuoteEvent quote)
throws PersistenceException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void deletesQuote() throws Exception {\n final Base base = new DyBase(\n this.dynamo.region(), new MkSttc().counters().get(\"tf8\")\n );\n final String name = \"walter2007\";\n final Book book = base.books().add(\n String.format(\"@book{%s, author... | [
"0.7445238",
"0.64769936",
"0.64087665",
"0.63630927",
"0.6150227",
"0.61262065",
"0.608699",
"0.60391116",
"0.599741",
"0.59904915",
"0.5980932",
"0.5975112",
"0.5945806",
"0.5936926",
"0.59296733",
"0.5888118",
"0.58817697",
"0.58728665",
"0.582294",
"0.5768798",
"0.5767054... | 0.7888177 | 0 |
Helper method for when the user sign in | private void userLogin() {
String email = editTextEmail.getText().toString().trim();
String password = editTextPassword.getText().toString().trim();
if(email.isEmpty()) {
editTextEmail.setError("Email is required!");
editTextEmail.requestFocus();
return;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void signIn() {\n }",
"public void signIn(View view) {\n requestSignIn();\n }",
"void signInComplete();",
"@Override\n\tpublic void onSignInSucceeded() {\n\n\t}",
"private void loggedInUser() {\n\t\t\n\t}",
"@Override\n public void onSignInClicked() {\n Prefs.setSignedIn(tr... | [
"0.79143095",
"0.7247251",
"0.7170397",
"0.71023816",
"0.7097999",
"0.7073269",
"0.70149946",
"0.69864327",
"0.69791317",
"0.6972104",
"0.68896866",
"0.6872252",
"0.6872252",
"0.6872252",
"0.6872252",
"0.6870062",
"0.6870062",
"0.6870062",
"0.68692225",
"0.682066",
"0.6808465... | 0.0 | -1 |
Called at start of an XML document | @Override
public void startDocument() throws SAXException {
System.out.println("Start parsing document...");
nameList = new ArrayList<String>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void startDocument() throws SAXException {\n\t\tsuper.startDocument();\r\n\t\tSystem.out.println(\"Start Document\");\r\n\t}",
"@Override\r\n\t\tpublic void startDocument() throws SAXException {\n\t\t}",
"@Override\n\t\tpublic void startDocument() throws SAXException {\n\t\t\t\n\t\t}",
... | [
"0.7514166",
"0.74125826",
"0.73690873",
"0.73430777",
"0.73324263",
"0.72749436",
"0.7273722",
"0.7262274",
"0.7257236",
"0.7257236",
"0.7257236",
"0.7242333",
"0.7242333",
"0.7225027",
"0.72224283",
"0.71950185",
"0.71725297",
"0.71369284",
"0.71353996",
"0.713088",
"0.7100... | 0.68339014 | 29 |
Called at end of an XML document | @Override
public void endDocument() throws SAXException {
System.out.println("End");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void end() {\n Log.writeln(\"<xml-end/> <!-- Non-xml data follows ... -->\");\n }",
"@Override\r\n\tpublic void endDocument() throws SAXException {\n\t\tsuper.endDocument();\r\n\t\tSystem.out.println(\"End Document\");\r\n\t}",
"@Override\n\t\t\t\tpublic void endDocument() throws SAXException... | [
"0.7713988",
"0.76559246",
"0.76328015",
"0.7630758",
"0.76291966",
"0.75741595",
"0.7560753",
"0.755727",
"0.75537163",
"0.7546977",
"0.7546977",
"0.7546977",
"0.7543383",
"0.7501437",
"0.7499656",
"0.7453753",
"0.7453753",
"0.74417686",
"0.7358178",
"0.7352831",
"0.7334119"... | 0.7645736 | 2 |
Start processing of an element. | @Override
public void startElement(String uri, String localName, String qName, Attributes atts) {
// Using qualified name because we are not using xmlns prefixes here.
if (qName.equals("title")) {
title = true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void startProcessing() {\n\n\t}",
"public void start() {\n process(0);\n }",
"public void startContent() throws XPathException {\r\n if (depthOfHole == 0) {\r\n nextReceiver.startContent();\r\n }\r\n }",
"public void run(IElementManager manager, Abstr... | [
"0.6349187",
"0.6143909",
"0.6004052",
"0.5940188",
"0.59143555",
"0.59076726",
"0.57628214",
"0.5754335",
"0.5745988",
"0.5714225",
"0.563237",
"0.5569513",
"0.5532367",
"0.55310804",
"0.55114686",
"0.55050725",
"0.54759073",
"0.54542226",
"0.5452171",
"0.543943",
"0.5439006... | 0.0 | -1 |
End of processing current element | @Override
public void endElement(String namespaceURI, String localName, String qName)
throws SAXException {
if (title) {
title = false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void elementEnd() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"public void endElement() throws Exception;",
"protected void end() {\n \t// theres nothing to end\n }",
"protected void end() {\n \n \n }",
"@Override\n\t\t\tpublic void end() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tpublic v... | [
"0.84196323",
"0.79994714",
"0.7198783",
"0.71949434",
"0.716731",
"0.71649045",
"0.7133482",
"0.7133482",
"0.7133482",
"0.7133482",
"0.7133482",
"0.7133482",
"0.7109093",
"0.7108167",
"0.7094678",
"0.70777434",
"0.70618045",
"0.70618045",
"0.70618045",
"0.70618045",
"0.70260... | 0.0 | -1 |
Processing character data inside an element | @Override
public void characters(char[] ch, int start, int length) {
if (title) {
String bookTitle = new String(ch, start, length);
System.out.println("Book title: " + bookTitle);
nameList.add(bookTitle);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void characters(char[] ch, int start, int length)\n throws SAXException {\n\n if (elementOn) {\n elementValue = new String(ch, start, length);\n elementOn = false;\n }\n\n }",
"@Override\n\tpublic void characters(char[] arg0, int arg1, int a... | [
"0.6825627",
"0.61617094",
"0.6156722",
"0.6059053",
"0.5969759",
"0.59433246",
"0.59324294",
"0.59052",
"0.58634454",
"0.5861719",
"0.5812559",
"0.58121186",
"0.577372",
"0.57697654",
"0.57243544",
"0.5682975",
"0.5672275",
"0.56372494",
"0.5594426",
"0.5582618",
"0.5578109"... | 0.0 | -1 |
connect to excel file | public static void main(String[] args) throws Exception
{
File f=new File("w2smskwd.xls");
// open excel file for reading
Workbook rwb=Workbook.getWorkbook(f);
Sheet rsh1=rwb.getSheet(0); // 0 for sheet1(tests)
int nour1=rsh1.getRows();
int nouc1=rsh1.getColumns();
Sheet rsh2=rwb.getSheet(1)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Excel getExcelInst();",
"@VTID(13)\n com.exceljava.com4j.excel.WorkbookConnection getWorkbookConnection();",
"public static void main(String[] args) throws IOException {\nFileInputStream f=new FileInputStream(\"D:\\\\AccuSelenium\\\\Ram\\\\TEST\\\\TestData\\\\LoginData.xls\");\nHSSFWorkbook w=new HSSFWorkbook... | [
"0.69913054",
"0.6827788",
"0.67797923",
"0.66221195",
"0.65277624",
"0.64976037",
"0.63901997",
"0.6369907",
"0.63423574",
"0.6328653",
"0.62705064",
"0.62452203",
"0.6136664",
"0.6129895",
"0.6123529",
"0.6089508",
"0.60894793",
"0.6078659",
"0.604222",
"0.60359675",
"0.596... | 0.0 | -1 |
Constructor for objects of class Player | public Player(){
cards = new ArrayList<String>();
indexes = new ArrayList<Integer>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Player(){}",
"public Player(){}",
"public Player() {}",
"public Player() {}",
"public Player() {}",
"public Player() {}",
"public Player(){\r\n\r\n }",
"public Player(){\n\n }",
"public Player() {\t\n\t}",
"public Player() {\n this(\"\", \"\", \"\");\n }",
"public Player(... | [
"0.8846843",
"0.8846843",
"0.8750101",
"0.8750101",
"0.8750101",
"0.8750101",
"0.8706595",
"0.86768675",
"0.86615485",
"0.8353497",
"0.8328291",
"0.79638517",
"0.79355764",
"0.790654",
"0.7851676",
"0.78115505",
"0.7786668",
"0.77821946",
"0.7757074",
"0.77302176",
"0.7727505... | 0.7392923 | 54 |
Date currentTime = Calendar.getInstance().getTime(); | @Override
public void onClick(View v) {
final String addedAmount = amount.getText().toString().trim();
final String comments = comment.getText().toString().trim();
if (!(addedAmount.isEmpty())) {
AlertDialog.Builder builder
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getCurrentTime() {\r\n return currentTime.getTime();\r\n }",
"public static Date now() {\n return Calendar.getInstance().getTime();\n }",
"public static Date now() {\n return Calendar.getInstance().getTime();\n }",
"private static long getCurrentTime() {\n return (n... | [
"0.77315027",
"0.7536944",
"0.7536944",
"0.75274855",
"0.7525281",
"0.7494304",
"0.737909",
"0.7268929",
"0.7257321",
"0.725322",
"0.72385156",
"0.7209542",
"0.7178848",
"0.7169831",
"0.71625173",
"0.71601003",
"0.7148734",
"0.71259624",
"0.71237177",
"0.71237177",
"0.7104457... | 0.0 | -1 |
Functions for loading icon while verifying login | public void showProgressDialog() {
if (mProgressDialog == null) {
mProgressDialog = new ProgressDialog(this);
mProgressDialog.setCancelable(false);
mProgressDialog.setCanceledOnTouchOutside(false);
mProgressDialog.setMessage(getString(R.string.msg_loading));
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override public void showLoading() {\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowLoading();\n\n errorView.setVisibility(View.GONE);\n setFormEnabled(false);\n }",
"private void loadLogin(){\n }",
"private void displayLoader() {\n pDialog = new ProgressDia... | [
"0.6804783",
"0.66385144",
"0.6614599",
"0.6608382",
"0.65792793",
"0.64598095",
"0.6375945",
"0.635375",
"0.6306731",
"0.6272058",
"0.6264237",
"0.6239322",
"0.6205909",
"0.61937314",
"0.61915034",
"0.6183311",
"0.61484456",
"0.6140479",
"0.6138595",
"0.61050797",
"0.6065933... | 0.0 | -1 |
Unregister receiver when not needed for memory management | @Override
protected void onDestroy() {
super.onDestroy();
unregisterReceiver(broadcastReceiver);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void unregister();",
"private void unregisterReceivers() {\n \t\t\n\t\tunregisterReceiver(newReadingsReceiver);\n\t\tunregisterReceiver(sensorStatusReceiver);\n\t\tunregisterReceiver(servalMeshStatusReceiver);\n \t}",
"private void cleanupReceiver ()\n {\n if (receiver != null)\n ... | [
"0.7793637",
"0.77882016",
"0.7733466",
"0.7695679",
"0.7622773",
"0.7448569",
"0.74237037",
"0.7398343",
"0.73821086",
"0.7368183",
"0.7358573",
"0.73338413",
"0.7330483",
"0.7263063",
"0.7234591",
"0.7214115",
"0.71936697",
"0.7189207",
"0.71527815",
"0.70625407",
"0.703832... | 0.66682047 | 43 |
This will clear the internal checks map and frees the static available memory. Will also reset the validation flag to "not failed" | public static void reset() {
HealthCheck.failed = false;
HealthCheck.checks.clear();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void clearValidationError() {\n\n\t\tdataValid = false;\n\n\t\tvalidationErrorPending = false;\n\t\tvalidationErrorParent = null;\n\t\tvalidationErrorTitle = null;\n\t\tvalidationErrorMessage = null;\n\t\tvalidationErrorType = 0;\n\t}",
"@Override\n public void clear() {\n validations.remove();... | [
"0.70059085",
"0.6573175",
"0.6251663",
"0.6237225",
"0.6217342",
"0.62003946",
"0.61748767",
"0.61286885",
"0.61190397",
"0.61126834",
"0.5988672",
"0.59684104",
"0.592179",
"0.59128237",
"0.59102553",
"0.58951",
"0.5894457",
"0.5887394",
"0.5867161",
"0.5862562",
"0.584811"... | 0.6737678 | 1 |
Will mark the current Health check as failed. This is bound static to the class and therefore needs to be reset if another checks should be performaned | private static void setFailed() {
HealthCheck.failed = true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void markAsFailed() {\n execution.setErrorReported();\n }",
"public void markAsFailed() {\n \n \t\texecutionStateChanged(ExecutionState.FAILED, \"Execution thread died unexpectedly\");\n \t}",
"void setFailed(Throwable lastFailure);",
"public void brakeFailureStatus() {\n \tthis.brakeFail... | [
"0.71629405",
"0.70878845",
"0.65337974",
"0.6503027",
"0.6470259",
"0.6430004",
"0.6418774",
"0.63889486",
"0.6380162",
"0.6295824",
"0.61972797",
"0.6191984",
"0.618148",
"0.6176825",
"0.6061291",
"0.60469",
"0.6014493",
"0.59918195",
"0.5974132",
"0.5966419",
"0.59598416",... | 0.8277814 | 0 |
Will go through all defined properties by addCheck and addOptionalCheck to find out if anything did not pass validation | public static void validateConfiguration() throws HealthCheckException {
for (Map.Entry<String, CheckState> entry : HealthCheck.checks.entrySet()) {
LOG.info("Checking '{}'...", entry.getKey());
switch (entry.getValue().check) {
case STRING:
processVal... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void doExtraValidation(Properties props) {\n /* nothing by default */\n }",
"private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n ... | [
"0.733566",
"0.73229665",
"0.6648659",
"0.6492695",
"0.6397906",
"0.63760626",
"0.6155728",
"0.6135324",
"0.61291057",
"0.60495526",
"0.6044025",
"0.6013029",
"0.59874713",
"0.5974156",
"0.595246",
"0.5912535",
"0.5892669",
"0.58869535",
"0.58696556",
"0.58598536",
"0.5858108... | 0.0 | -1 |
Validates the given property path as String | private static boolean validateString(Map.Entry<String, CheckState> entry) {
String prop = System.getProperty(entry.getKey());
if (entry.getValue().isOptional && prop == null) {
return true;
}
return prop != null && !"".equals(prop);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void validate(Path path) {\n }",
"protected void validateProperty(String name, PolylineMapObject line) throws RuntimeException {\n if (line.getProperties().get(name) == null)\n throw new RuntimeException(\"Property '\" + name + \"' not found when loading platform\");\n\n Strin... | [
"0.6258166",
"0.596977",
"0.57602763",
"0.575782",
"0.5700642",
"0.56416714",
"0.55518556",
"0.5481346",
"0.5434186",
"0.54187495",
"0.5369635",
"0.52891284",
"0.5282643",
"0.52682114",
"0.52625996",
"0.5261767",
"0.52563405",
"0.5238816",
"0.52269363",
"0.5223125",
"0.519137... | 0.5842988 | 2 |
Validates the given property path as Integer | private static boolean validateInteger(Map.Entry<String, CheckState> entry) {
String prop = System.getProperty(entry.getKey());
if (entry.getValue().isOptional && prop == null) {
return true;
}
try {
Integer.parseInt(prop);
} catch (NumberFormatException e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int getIntegerProperty(String key) {\n String value = PROPERTIES.getProperty(key);\n // if the key is not found, Properties will return null and we should return a default value\n if (value == null) {\n return 0;\n }\n return Integer.parseInt(value);\n ... | [
"0.63300455",
"0.6247952",
"0.6233836",
"0.6077267",
"0.60738957",
"0.6061498",
"0.59472257",
"0.5901514",
"0.5848221",
"0.5801995",
"0.57750475",
"0.57555735",
"0.5719726",
"0.57165986",
"0.57094365",
"0.56865317",
"0.5612386",
"0.5605943",
"0.56055284",
"0.5471032",
"0.5461... | 0.6489233 | 0 |
Validates a given property path as Boolean | private static boolean validateBoolean(Map.Entry<String, CheckState> entry) {
String prop = System.getProperty(entry.getKey());
if (entry.getValue().isOptional && prop == null) {
return true;
}
return Boolean.TRUE.toString().equals(prop) || Boolean.FALSE.toString().equals(pro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasProperty1();",
"public\n boolean getProperty_boolean(String key)\n {\n if (key == null)\n return false;\n\n String val = getProperty(key);\n\n if (val == null)\n return false;\n\n boolean ret_boolean = false;\n if (val.equalsIgnoreCase(\"O... | [
"0.63724816",
"0.63297904",
"0.63209844",
"0.6309336",
"0.6309336",
"0.6309336",
"0.6206824",
"0.6189822",
"0.61692995",
"0.6145869",
"0.6128914",
"0.60819066",
"0.6072868",
"0.6026343",
"0.6014392",
"0.5974429",
"0.5943546",
"0.59348077",
"0.5910565",
"0.58946794",
"0.585261... | 0.67452216 | 0 |
Validates if the given property values actually resolves to a valid filepath and existing file | private static boolean validateFileExists(Map.Entry<String, CheckState> entry) {
String prop = System.getProperty(entry.getKey());
if (entry.getValue().isOptional && prop == null) {
return true;
}
if (prop == null || "".equals(prop)) {
return false;
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void validateInput () throws IOException, Exception {\n\t\t\n\t\t// Check that the properties file exists\n\t\tFile propFile = new File(propertiesFile);\n\t\tif (!propFile.exists()) { \n\t\t\tthrow new IOException(\"Unable to open properties file \" + propertiesFile);\t\n\t\t}\n\t\t\n\t\t// Check that the ... | [
"0.60541797",
"0.5847205",
"0.57613534",
"0.5610022",
"0.5584552",
"0.5560153",
"0.55392236",
"0.55214244",
"0.5456956",
"0.5452689",
"0.54101634",
"0.54071903",
"0.5363234",
"0.53299284",
"0.5318159",
"0.5291902",
"0.52888024",
"0.52708894",
"0.52400684",
"0.518831",
"0.5177... | 0.6192028 | 0 |
strictly tests whether the system property exists and if the type is correct | public static void addCheck(String property, CHECK check) {
HealthCheck.checks.put(property, new CheckState(check));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getPropertyexists();",
"String getPropertyExists();",
"@Override\r\n public boolean isSystemProperty() throws Exception\r\n {\n return false;\r\n }",
"boolean hasProperty();",
"boolean hasProperty();",
"boolean hasProperty();",
"boolean hasGetProperty();",
"public boolean hasPr... | [
"0.71395284",
"0.70160574",
"0.6998735",
"0.6857051",
"0.6857051",
"0.6857051",
"0.68162477",
"0.6778554",
"0.66539854",
"0.6652424",
"0.66156316",
"0.6607704",
"0.6600254",
"0.6582983",
"0.65602344",
"0.6541984",
"0.65371835",
"0.6484719",
"0.64405",
"0.63512355",
"0.6346345... | 0.0 | -1 |
does the same as addCheck, but the actual check onto system property is only performed in case it is set within the system properties in that case it is just validated as non optional properties | public static void addOptionalCheck(String property, CHECK check) {
HealthCheck.checks.put(property, new CheckState(check, true));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOpti... | [
"0.659791",
"0.6271391",
"0.5994416",
"0.59504354",
"0.5930479",
"0.59090716",
"0.59075254",
"0.5878256",
"0.58511996",
"0.5776337",
"0.57424027",
"0.57424027",
"0.57424027",
"0.57406396",
"0.57048845",
"0.5695074",
"0.5685516",
"0.5682613",
"0.5643695",
"0.55900997",
"0.5590... | 0.60683143 | 2 |
Logs and fails the test in cases a validation could not be passed | private static void processValidation(boolean passed, String property, CHECK check) {
if (!passed) {
LOG.error("'{}' failed in {} validation", property, check);
HealthCheck.setFailed();
} else {
LOG.info("'{}' passed", property);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testValidationFailed() {\n fail();\n }",
"public void validationErr()\r\n\t{\n\t\tSystem.out.println(\"validation err\");\r\n\t}",
"@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }",
"@Test\n public void testCant... | [
"0.79444665",
"0.6970267",
"0.6936345",
"0.68473095",
"0.6732435",
"0.67280227",
"0.672374",
"0.66838354",
"0.667027",
"0.6602048",
"0.6600774",
"0.6580019",
"0.6541942",
"0.6526843",
"0.64602476",
"0.6451515",
"0.64463437",
"0.6446209",
"0.64369464",
"0.64192337",
"0.6413417... | 0.0 | -1 |
Toast.makeText(mActivity, "Connection failed. Please try again", Toast.LENGTH_LONG).show(); | @Override
public void onErrorResponse(VolleyError error) {
SSLog.e(TAG, "sendUserAccess :- ", error.getMessage());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void displayErrorToast()\n {\n Toast.makeText(\n getApplicationContext(),\n \"Connection to the server failed, please try again!\",\n Toast.LENGTH_LONG ).show();\n }",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult arg0) {\n\t\tToas... | [
"0.824417",
"0.7591219",
"0.73856604",
"0.7384699",
"0.73612225",
"0.7317538",
"0.73037046",
"0.72954994",
"0.72828394",
"0.72806895",
"0.72752863",
"0.72706467",
"0.7236222",
"0.7236222",
"0.71992224",
"0.71972203",
"0.7142329",
"0.71345633",
"0.7130448",
"0.71017164",
"0.70... | 0.0 | -1 |
Toast.makeText(mActivity, "Connection failed. Please try again", Toast.LENGTH_LONG).show(); | @Override
public void onErrorResponse(VolleyError error) {
try {
SSLog.e(TAG, " callBusTrip", error.toString());
} catch (Exception e) {
SSLog.e(TAG, " callBusTrip", e.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void displayErrorToast()\n {\n Toast.makeText(\n getApplicationContext(),\n \"Connection to the server failed, please try again!\",\n Toast.LENGTH_LONG ).show();\n }",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult arg0) {\n\t\tToas... | [
"0.8243605",
"0.75909364",
"0.7387289",
"0.7386915",
"0.7362543",
"0.7319077",
"0.73042464",
"0.72970825",
"0.7284605",
"0.72810507",
"0.7276785",
"0.72702456",
"0.7236901",
"0.7236901",
"0.72001445",
"0.719786",
"0.71428365",
"0.7136218",
"0.71312714",
"0.710287",
"0.7091424... | 0.0 | -1 |
Put Value Using HashMap | @Override
protected Map<String, String> getParams() {
Map<String, String> params = new HashMap<String, String>();
params.put("buslabel", sShareBusLable);
params.put("direction", sShareDirection);
params.put("ss", sSharestopSerial);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object put(Object key, Object value);",
"void put(String key, Object value);",
"public Value put(Key key, Value thing) ;",
"void setHashMap();",
"void putValue(String key, Object data);",
"public void put(Object key,Object value) {\n map.put(key,value);\n hashtable.put(key,value);\n }",
... | [
"0.71973574",
"0.6976438",
"0.6910907",
"0.68698376",
"0.6851966",
"0.68216217",
"0.67192584",
"0.6713592",
"0.6712292",
"0.6709198",
"0.67002106",
"0.6693453",
"0.6676485",
"0.6612553",
"0.6609179",
"0.6609179",
"0.65700555",
"0.65627396",
"0.6551009",
"0.6548328",
"0.652199... | 0.0 | -1 |
instance variables and constructors could be used, but are not really needed getSum() will return the sum of the numbers from start to stop, not including stop | public static int getSum(int[] numArray, int start, int stop)
{
int sum = 0;
for(int i = start; i<=stop; i++)
sum = sum+numArray[i];
return sum;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getSum();",
"double getSum();",
"private static int findSum(int[] nums, int start, int end) {\n int sum = 0;\n for ( int i = start ; i < end ; i++ ) {\n sum = sum + nums[i];\n }\n return sum;\n }",
"public double getSum()\n {\n return first + second;... | [
"0.7243919",
"0.7243919",
"0.6681574",
"0.6453937",
"0.64436936",
"0.64187765",
"0.63329434",
"0.6251942",
"0.62061936",
"0.6159163",
"0.61499125",
"0.61489266",
"0.61382926",
"0.6136369",
"0.6135163",
"0.61178136",
"0.61142284",
"0.6081817",
"0.60768294",
"0.60717785",
"0.60... | 0.6726524 | 2 |
getCount() will return number of times val is present | public static int getCount(int[] numArray, int val)
{
int count = 0;
for(int i = 0; i < numArray.length; i++)
if(numArray[i] == val)
count++;
return count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getCount();",
"int getCount();",
"int getCount();",
"int getCount();",
"int getCount();",
"int getCount();",
"int getValuesCount();",
"public int getCount();",
"public int getCount();",
"public int getCount();",
"long getCount();",
"long getCount();",
"boolean hasCount();",
"public in... | [
"0.75059325",
"0.75059325",
"0.75059325",
"0.75059325",
"0.75059325",
"0.75059325",
"0.73785335",
"0.7376148",
"0.7376148",
"0.7376148",
"0.7231773",
"0.7231773",
"0.72097015",
"0.7181846",
"0.71814996",
"0.71814996",
"0.71814996",
"0.7134077",
"0.7061935",
"0.70557296",
"0.7... | 0.0 | -1 |
return contact phone by lookup_key | public static String getPhoneByID(Context context, String id)
{
Cursor secC = context.getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI,
null,
ContactsContract.CommonDataKinds.Phone.LOOKUP_KEY +" = ?",
new String[] {id},
null... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"cb.Careerbuilder.Company.PhoneNumber getPhone(int index);",
"public PhoneNumber getNumber(Person key) {\n\t\tBookEntry entry = getEntry(key);\n\t\tif (entry != null) {\n\t\t\treturn entry.getNumber(); //Returns the phoneNumber from the entry\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"@TargetApi(Build.VER... | [
"0.65827894",
"0.65412086",
"0.63920856",
"0.6344409",
"0.6324169",
"0.6283213",
"0.62621135",
"0.6233264",
"0.6176137",
"0.6176137",
"0.6176137",
"0.6156524",
"0.6148734",
"0.61401093",
"0.61274844",
"0.61236703",
"0.6096312",
"0.60498923",
"0.6026693",
"0.60238415",
"0.6016... | 0.60084605 | 21 |
return cursor to get contact info: given and family names | private static Cursor getFamilyInfo(Context context, String id)
{
String whereName = ContactsContract.Data.MIMETYPE + " = ? AND " + ContactsContract.CommonDataKinds.StructuredName.LOOKUP_KEY + " = ?";
String[] whereNameParams = new String[] { ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE, id };... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void requestContactInformation() {\n CONTACTS = new ArrayList<>();\n\n Cursor c = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,\n null, null, null,\n ContactsContract.Contacts.DISPLAY_NAME_PRIMARY + \" asc\");\n\n while(c.moveToNext()) ... | [
"0.7295636",
"0.6922316",
"0.68876",
"0.67500025",
"0.67335767",
"0.6681439",
"0.6660262",
"0.6545843",
"0.64168566",
"0.6389926",
"0.6339201",
"0.63265526",
"0.63265526",
"0.63265526",
"0.63265526",
"0.6244283",
"0.62336624",
"0.6229778",
"0.61980534",
"0.6191785",
"0.617820... | 0.70326924 | 1 |
additional constructor fields may be added, but don't delete or modify anything already here | public Program2(int numStudents) {
minHeap = new Heap();
students = new ArrayList<Student>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void __sep__Constructors__() {}",
"private FieldInfo() {\r\n\t}",
"public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }",
"public Field() {\r\n\t}",
"private void addConstructors() {\n\t\tthis.rootBindingClass.getConstructor().body.line(\"super({}.class);\\n\", this.name.getTypeWitho... | [
"0.7006556",
"0.6744522",
"0.6459818",
"0.6421806",
"0.6389514",
"0.6348364",
"0.62643194",
"0.6241476",
"0.62226075",
"0.620392",
"0.61966556",
"0.6180202",
"0.6166561",
"0.6145565",
"0.6134678",
"0.6099874",
"0.6076156",
"0.60626006",
"0.60536426",
"0.60473764",
"0.60443926... | 0.0 | -1 |
findMinimumStudentCost(Student start, Student dest) | public int findMinimumStudentCost(Student start, Student dest) {
initializeSingleSource(start);
minHeap.buildHeap(students); //build heap from array of studente keyed by minCost
while (minHeap.size() != 0) { //while heap size does not equal 0.
Student minimum = minHeap.extractMin();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int minCost(int cost[][], int srcStation, int destinationStation)\n {\n int minCost[] = new int[destinationStation];\n Arrays.fill(minCost, Integer.MAX_VALUE);\n minCost[srcStation] = 0;\n\n // Go through every station and check if using it\n // as an intermediate stati... | [
"0.72738296",
"0.7076849",
"0.67571956",
"0.66690135",
"0.6619677",
"0.6516657",
"0.64374983",
"0.6404116",
"0.6256164",
"0.6240603",
"0.6236904",
"0.62254965",
"0.6109934",
"0.60706735",
"0.604111",
"0.6016321",
"0.60120744",
"0.60040003",
"0.59854394",
"0.5924699",
"0.59110... | 0.88153154 | 0 |
returns edges and prices in a string. | public String toString() {
String o = "";
for (Student v : students) {
boolean first = true;
o += "Student ";
o += v.getName();
o += " has neighbors ";
ArrayList<Student> ngbr = v.getNeighbors();
for (Student n : ngbr) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Edge parseToEdge(String s) {\n\t\ts = s.trim();\n\t\tString[] results = s.split(\"[(),]+\");\n\t\tif(results.length == 8 && results[0].equals(\"[\") && results[7].equals(\"]\")) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tint i1 = Integer.parseInt(results[1]);\n\t\t\t\tint i2 = Integer.parseInt(results[2]);\n\t... | [
"0.6071164",
"0.5997653",
"0.58019704",
"0.5525655",
"0.5496686",
"0.535629",
"0.523552",
"0.52233106",
"0.5070715",
"0.50591904",
"0.5028186",
"0.4969273",
"0.49488854",
"0.4940089",
"0.4937746",
"0.4933046",
"0.48715684",
"0.4864091",
"0.48590943",
"0.4854915",
"0.48518366"... | 0.0 | -1 |
///////////////////////////////////////////////////////////////////////////// DANGER ZONE // everything below is used for grading // please do not change :) // ///////////////////////////////////////////////////////////////////////////// | public Heap getHeap() {
return minHeap;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void assignIntoGrade() {\n }",
"private void kk12() {\n\n\t}",
"String grade(int marks);",
"public void gpaConverter() {\r\n\t\tdouble numGPA = this.getNumGrade();\r\n\t\ttry {\r\n\t\t\tif (numGPA >= 4.0) {\r\n\t\t\t\tthis.letterGrade = \"A\"; }\r\n\t\t\tif (3.7 <= numGPA && numGPA < 4.0) {\r\n\t\... | [
"0.61337084",
"0.6054623",
"0.59481084",
"0.59132475",
"0.58231515",
"0.58187747",
"0.5810579",
"0.5780506",
"0.5770107",
"0.5769565",
"0.57590115",
"0.57530105",
"0.57315195",
"0.5723013",
"0.5718498",
"0.5715296",
"0.5707918",
"0.5706499",
"0.57013077",
"0.56798506",
"0.567... | 0.0 | -1 |
used by Driver class to populate each Student with correct neighbors and corresponding prices | public void setEdge(Student curr, Student neighbor, Integer price) {
curr.setNeighborAndPrice(neighbor, price);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n String [][]table1 = new String[][]{{\"Real World Mathematics\", \"ECM0002\"}, {\"Programming\", \"ECM1400\"}, {\"Data Structures\", \"ECM1406\"}, {\"Object-Oriented Programming\", \"ECM1410\"}, {\"Information Systems\", \"BEM2027\"}, {\"Thermal Physics\", \"PHY2023... | [
"0.5745682",
"0.5665821",
"0.5459925",
"0.54176015",
"0.52748555",
"0.522736",
"0.51906395",
"0.5185387",
"0.5136896",
"0.51220906",
"0.51051235",
"0.5100706",
"0.5094122",
"0.50859857",
"0.5073558",
"0.5068635",
"0.50337344",
"0.50081277",
"0.5004764",
"0.49982783",
"0.49905... | 0.5462554 | 2 |
used by Driver.java and sets students to reference an ArrayList of all Students | public void setAllNodesArray(ArrayList<Student> x) {
students = x;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setStudents(ArrayList value);",
"public void setStudentList(DatabaseStudent student){\n this.studentSet.add(student);\n }",
"public void setStudentList(ArrayList<Student> studentList) {\r\n this.studentList = studentList;\r\n }",
"public void setStudentList (Students studentLi... | [
"0.75673896",
"0.7549607",
"0.75354326",
"0.7517193",
"0.7453842",
"0.7366598",
"0.7335242",
"0.72492915",
"0.71750295",
"0.7157106",
"0.7157106",
"0.7136762",
"0.7133666",
"0.7091631",
"0.70743144",
"0.7061784",
"0.7036023",
"0.701898",
"0.69904256",
"0.6979086",
"0.69784737... | 0.6634153 | 46 |
Return the default name for this service. | public String getServiceName()
{
return serviceName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDefaultName()\r\n {\r\n System.out.println(\"returning default name: \" + m_default );\r\n return m_default;\r\n }",
"public String getmDefaultName() {\n return mDefaultName;\n }",
"public String getDescriptiveServiceName() {\n if (serviceAbbreviation !... | [
"0.77307487",
"0.7441811",
"0.6974456",
"0.6860087",
"0.6744179",
"0.6720608",
"0.6663222",
"0.6596782",
"0.65117306",
"0.6494026",
"0.6442617",
"0.6407723",
"0.6384892",
"0.62712616",
"0.6254155",
"0.62540376",
"0.62266225",
"0.6207075",
"0.6202764",
"0.6140105",
"0.61189044... | 0.0 | -1 |
Set up the default name for this service | public void setServiceName(String serviceName)
{
this.serviceName = serviceName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName (String name) {\n this.name = name;\n NameRegistrar.register (\"server.\"+name, this);\n }",
"@Override\n\tpublic void setName(String arg0) {\n\n\t}",
"protected void setDefaultName() {\r\n this.name = evaluateName();\r\n if (this.getModelerScene().getModelerF... | [
"0.68403727",
"0.6682917",
"0.65490085",
"0.6494648",
"0.64273137",
"0.6400633",
"0.6395936",
"0.6376756",
"0.6363466",
"0.6298195",
"0.6260389",
"0.6260389",
"0.62517446",
"0.6244831",
"0.62068874",
"0.6202615",
"0.6199254",
"0.6199254",
"0.61844677",
"0.6182989",
"0.6143621... | 0.0 | -1 |
Return the string that appears in the REST API URL that identifies the owning service. Null means no REST APIs supported by this service. | public String getServiceURLMarker()
{
return serviceURLMarker;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getApiUrl();",
"String getServiceUrl();",
"public String getApiUrl();",
"@Override\n\tpublic URL getServiceUrl()\n\t{\n\t\treturn null;\n\t}",
"@Override\n\tpublic String toString() {\n\t\tif (m_URL != null) {\n\t\t\tString path = m_URL.getPath();\n\t\t\tString rt = null;\n\t\t\tif (path.e... | [
"0.65213954",
"0.625356",
"0.6248328",
"0.62225556",
"0.61395323",
"0.61010104",
"0.6085421",
"0.60623044",
"0.6036817",
"0.60343426",
"0.60024554",
"0.5991759",
"0.5990458",
"0.5961088",
"0.5943067",
"0.5940754",
"0.59234697",
"0.5880107",
"0.58796895",
"0.5875205",
"0.58632... | 0.5641381 | 36 |
Set up the string that appears in the REST API URL that identifies the owning service. Null means no REST APIs supported by this service. | public void setServiceURLMarker(String serviceURLMarker)
{
this.serviceURLMarker = serviceURLMarker;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String composeApiUrl(String string){\r\n\t\treturn API_BASE + API_VERSION + string;\r\n\t}",
"java.lang.String getApiUrl();",
"@Override\r\n public List<String> buildRequestUrl(String resource, Endpoint endpoint) {\r\n //log = LoggerFactory.getLogger(ScopusAuthorSearchProvider.class);\... | [
"0.6186155",
"0.60657996",
"0.6059727",
"0.587393",
"0.5809109",
"0.57674885",
"0.5731944",
"0.5724507",
"0.57030505",
"0.56648946",
"0.56229013",
"0.5592958",
"0.557011",
"0.54871815",
"0.54869884",
"0.5486458",
"0.5473773",
"0.5445662",
"0.5445133",
"0.54209024",
"0.5418932... | 0.0 | -1 |
Return the default description for this service. | public String getServiceDescription()
{
return serviceDescription;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServiceDescription()\n {\n String language = (lsData == null) ? null : lsData.language;\n return (data.serviceDescription == null) ? \"\" : data.serviceDescription.getValue(language);\n }",
"public String describe() { return new String(\"No description.\"); }",
"public Stri... | [
"0.73949087",
"0.7077861",
"0.7018155",
"0.7009512",
"0.7000914",
"0.6991436",
"0.69844794",
"0.6967772",
"0.6962855",
"0.6943339",
"0.69346505",
"0.69130236",
"0.691167",
"0.6899462",
"0.6897329",
"0.68884486",
"0.6882229",
"0.6881708",
"0.68797106",
"0.68787354",
"0.6878735... | 0.7142249 | 1 |
Set up the default description for this service. | public void setServiceDescription(String serviceDescription)
{
this.serviceDescription = serviceDescription;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setDescription(java.lang.String description);",
"public void setDescription(String desc);",
"public void setDescription (String description);",
"public void setDescription(String description) { this.description = description; }",
"public void setDescription (String Description);",
"public void setDe... | [
"0.7135632",
"0.7101572",
"0.7075155",
"0.7065706",
"0.70547396",
"0.70547396",
"0.70547396",
"0.70547396",
"0.70547396",
"0.70547396",
"0.7053701",
"0.70524246",
"0.70479417",
"0.7022174",
"0.7022174",
"0.7022174",
"0.7022174",
"0.7022174",
"0.7011841",
"0.700957",
"0.697634... | 0.0 | -1 |
Return the URL for the wiki page describing this service. | public String getServiceWiki()
{
return serviceWiki;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getViewServiceWiki()\n {\n return viewServiceWiki;\n }",
"String getServiceUrl();",
"public URL getServiceUrl() {\n return url;\n }",
"public String getUrl()\n\t\t{\n\t\t\treturn \"https://www.zohoapis.eu\";\n\t\t}",
"public String getServiceUrl() {\n return \"http:/... | [
"0.710923",
"0.66218483",
"0.6397003",
"0.6382363",
"0.6315733",
"0.6277788",
"0.6268143",
"0.6235018",
"0.62272805",
"0.6223139",
"0.6206693",
"0.6144934",
"0.6140043",
"0.61226064",
"0.6118108",
"0.6098073",
"0.6084214",
"0.6082069",
"0.6052032",
"0.6051142",
"0.6051142",
... | 0.7367416 | 0 |
Set up the URL for the wiki page describing this service. | public void setServiceWiki(String serviceWiki)
{
this.serviceWiki = serviceWiki;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setURL() {\n\t\tURL = Constant.HOST_KALTURA+\"/api_v3/?service=\"+Constant.SERVICE_KALTURA_LOGIN+\"&action=\"\n\t\t\t\t\t\t+Constant.ACTION_KALTURA_LOGIN+\"&loginId=\"+Constant.USER_KALTURA+\"&password=\"+Constant.PASSWORD_KALTURA+\"&format=\"+Constant.FORMAT_KALTURA;\n\t}",
"public void setURL(Strin... | [
"0.61165684",
"0.6092677",
"0.59303594",
"0.59303594",
"0.5889715",
"0.58253396",
"0.5817563",
"0.57876444",
"0.57236576",
"0.57214874",
"0.5717393",
"0.5715276",
"0.5689588",
"0.56895703",
"0.564206",
"0.5641462",
"0.56226385",
"0.56120074",
"0.56114393",
"0.5609042",
"0.560... | 0.61344767 | 0 |
Return comparison result based on the content of the properties. | @Override
public boolean equals(Object objectToCompare)
{
if (this == objectToCompare)
{
return true;
}
if (objectToCompare == null || getClass() != objectToCompare.getClass())
{
return false;
}
RegisteredOMAGService that = (Registe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean compareProperties (Properties props1 , Properties props2){\n boolean propertiesAreEqual = true;\n Properties props2Clone = (Properties)props2.clone();\n Iterator<Object> itProps1Name = props1.keySet().iterator();\n while (propertiesAreEqual && itProps1Name.hasNext()){\n String prop... | [
"0.62968934",
"0.5794415",
"0.54571056",
"0.5453145",
"0.5433484",
"0.5421319",
"0.5376203",
"0.5368611",
"0.5368611",
"0.53295326",
"0.53195286",
"0.53114283",
"0.53114283",
"0.5299662",
"0.52950263",
"0.5282043",
"0.52732354",
"0.52551544",
"0.52544034",
"0.5245023",
"0.523... | 0.0 | -1 |
Return hash code for this object | @Override
public int hashCode()
{
return Objects.hash(getServiceName(), getServiceURLMarker(), getServiceDescription(),
getServiceWiki());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int hashcode();",
"public int getHash() {\n return hash_;\n }",
"public int getHash() {\n return hash_;\n }",
"public int hashCode()\n {\n return hash;\n }",
"public String getHashCode();",
"public int hashCode() {\n int hash = 104473;\n if (token_ != null) {... | [
"0.8163053",
"0.7876331",
"0.78577626",
"0.77790266",
"0.7728009",
"0.7707088",
"0.76278096",
"0.76278096",
"0.76278096",
"0.76278096",
"0.7613506",
"0.7613146",
"0.75927037",
"0.7591354",
"0.7585797",
"0.7537072",
"0.7527028",
"0.75175804",
"0.75124013",
"0.7509327",
"0.7509... | 0.0 | -1 |
Returns maximum value in collection throws exception if empty | public static <E extends Comparable<E>> E max(Collection<E> c){
if(c.isEmpty()){
throw new IllegalArgumentException("Empty Collection");
}
E result = null;
for(E e : c){
if(result == null || e.compareTo(result) > 0){
result = Objects.requireNonNull... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private <T extends Number> T computeMax(final Collection<T> inputCollection) {\n\r\n\t\tT res = null;\r\n\r\n\t\tif (!inputCollection.isEmpty())\r\n\t\t\tfor (final T t : inputCollection)\r\n\t\t\t\tif (res == null || res.longValue() < t.longValue())\r\n\t\t\t\t\tres = t;\r\n\r\n\t\treturn res;\r\n\t}",
"public ... | [
"0.7703949",
"0.7557073",
"0.75331044",
"0.745821",
"0.7363825",
"0.7259734",
"0.71919864",
"0.71748525",
"0.713751",
"0.7052984",
"0.70525014",
"0.70525014",
"0.70216566",
"0.70016235",
"0.6938973",
"0.6917808",
"0.69062895",
"0.69053495",
"0.6904108",
"0.689958",
"0.6898172... | 0.7612405 | 1 |
Returns maximum value in collection as an Optional | public static <E extends Comparable<E>> Optional<E>
max2(Collection<E> c){
if(c.isEmpty()){
return Optional.empty();
}
E result = null;
for(E e : c){
if(result == null || e.compareTo(result) > 0){
result = Objects.requireNonNull(e);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static java.lang.Object max(java.util.Collection arg0)\n { return null; }",
"public static <E extends Comparable<E>> Optional<E> max3(Collection<E> c){\n return c.stream().max(Comparator.naturalOrder());\n }",
"public Optional<DataModel> max(){\n return stream.max(Comparator.... | [
"0.768925",
"0.759556",
"0.7422645",
"0.742019",
"0.7354657",
"0.7157218",
"0.71093935",
"0.71075255",
"0.70889527",
"0.7088281",
"0.7088281",
"0.70641696",
"0.70432264",
"0.7034603",
"0.7032812",
"0.70212406",
"0.6938156",
"0.6911419",
"0.69113964",
"0.6870459",
"0.6846687",... | 0.74496835 | 2 |
Returns max val in collection as Optional uses stream | public static <E extends Comparable<E>> Optional<E> max3(Collection<E> c){
return c.stream().max(Comparator.naturalOrder());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static <E extends Comparable<E>> Optional<E>\n max2(Collection<E> c){\n if(c.isEmpty()){\n return Optional.empty();\n }\n E result = null;\n for(E e : c){\n if(result == null || e.compareTo(result) > 0){\n result = Objects.requireNonNul... | [
"0.726467",
"0.7246807",
"0.7115731",
"0.68022805",
"0.678209",
"0.67204046",
"0.6661738",
"0.66408455",
"0.65891176",
"0.64786714",
"0.64748603",
"0.6403785",
"0.6305608",
"0.62985474",
"0.6276365",
"0.6276365",
"0.6158821",
"0.6157672",
"0.6138725",
"0.61203337",
"0.6095823... | 0.7360722 | 0 |
Creates a new instance of MovementDAO | public MovementDAO() { this(CoreDAO.DRIVER_NAME, CoreDAO.URL, CoreDAO.USER, CoreDAO.PASSWORD); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PisoDAO createPisoDAO() {\n\n if (pisoDAO == null) {\n pisoDAO = new PisoDAO();\n }\n return pisoDAO;\n }",
"@Override\n\tpublic StudentDao createDao() {\n\t\treturn new SqliteStudentDaoImpl();\n\t}",
"public OnibusDAO() {}",
"public PacienteDAO(){ \n }",
"pu... | [
"0.66436076",
"0.63158154",
"0.6230174",
"0.60366064",
"0.6007335",
"0.5994031",
"0.5983167",
"0.59830713",
"0.5978215",
"0.59699625",
"0.593926",
"0.5896849",
"0.58866125",
"0.5867188",
"0.5866699",
"0.58269006",
"0.58015484",
"0.5781372",
"0.57784086",
"0.5764344",
"0.57575... | 0.7558383 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.