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 |
|---|---|---|---|---|---|---|
/ renamed from: io.fabric.sdk.android.services.network.e | public interface C2836e {
/* renamed from: a */
InputStream mo1151a();
/* renamed from: b */
String mo1152b();
/* renamed from: c */
String[] mo1153c();
/* renamed from: d */
long mo1154d();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void buildNetwork() {\n }",
"@Override\r\n\t\t\tpublic void onNetworkError(NetworkError networkError) {\n\r\n\t\t\t}",
"void onCreateNewNetFailure();",
"@Override\n\tprotected void onNetworkConnected(NetType type) {\n\n\t}",
"private ConnectivityManager.NetworkCallback getNetworkCa... | [
"0.5916501",
"0.5869496",
"0.5654802",
"0.5542226",
"0.55194706",
"0.5509773",
"0.5490784",
"0.54808396",
"0.5411741",
"0.5409541",
"0.5396045",
"0.53893685",
"0.53557503",
"0.5310211",
"0.52807033",
"0.5277451",
"0.527636",
"0.5268458",
"0.52580863",
"0.5247666",
"0.52456194... | 0.0 | -1 |
/ renamed from: a | InputStream mo1151a(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: b | String mo1152b(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"v... | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.588663... | 0.0 | -1 |
/ renamed from: c | String[] mo1153c(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo5289a(C5102c c5102c);",
"public static void c0() {\n\t}",
"void mo57278c();",
"private static void cajas() {\n\t\t\n\t}",
"void mo5290b(C5102c c5102c);",
"void mo80457c();",
"void mo12638c();",
"void mo28717a(zzc zzc);",
"void mo21072c();",
"@Override\n\tpublic void ccc() {\n\t\t\n\t}",
... | [
"0.646023",
"0.6441935",
"0.6431023",
"0.6417576",
"0.6412886",
"0.6397014",
"0.62504345",
"0.6247425",
"0.62438375",
"0.6231897",
"0.61910754",
"0.6165594",
"0.61528003",
"0.6149262",
"0.6138536",
"0.61364913",
"0.61308527",
"0.61036843",
"0.609853",
"0.6076961",
"0.6061939"... | 0.5569131 | 80 |
/ renamed from: d | long mo1154d(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void d() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }",
"public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventor... | [
"0.63810617",
"0.616207",
"0.6071929",
"0.59959275",
"0.5877492",
"0.58719957",
"0.5825175",
"0.57585526",
"0.5701679",
"0.5661244",
"0.5651699",
"0.56362265",
"0.562437",
"0.5615328",
"0.56114155",
"0.56114155",
"0.5605659",
"0.56001145",
"0.5589302",
"0.5571578",
"0.5559222... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner rd = new Scanner(System.in);
double C = 0, F = 0;
System.out.println("Escreva a Temperatura: ");
C = rd.nextDouble();
F = (C * 1.8) + 32;
System.out.println("A temperatura em Fahrenheit é : \n" + F);
} | {
"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 |
/ access modifiers changed from: 0000 | public CharSequence a(Object obj) {
return obj instanceof CharSequence ? (CharSequence) obj : obj.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Member mo23408O();",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n protected void prot() {\n }",
"public void m23075a() {\n }",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"public void m... | [
"0.65168345",
"0.6417889",
"0.6403412",
"0.6346675",
"0.6299906",
"0.62951195",
"0.6244629",
"0.6228537",
"0.620437",
"0.6192846",
"0.6189669",
"0.61808765",
"0.6173851",
"0.6169742",
"0.616948",
"0.6162881",
"0.6150504",
"0.6149917",
"0.61402553",
"0.6134384",
"0.6133215",
... | 0.0 | -1 |
Unidade unidade = new Unidade(); // Grupo grupo = new Grupo(); // Subgrupo subgrupo = new Subgrupo(); // Fornecedor fornecedor = new Fornecedor(); Promocao promocao = new Promocao(); Estoque estoque = new Estoque(); NCM ncm = new NCM(); Lote lote = new Lote(); | public CadastroProdutoNew() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public nomina()\n {\n deducidoClase = new deducido();\n devengadoClase = new devengado();\n }",
"public MorteSubita() {\n }",
"public Caso_de_uso () {\n }",
"public static void main(String[] args) {\n\n aluno exemplo1 = new aluno();//objeto do tipo aluno\n aluno exempl... | [
"0.7377752",
"0.65339386",
"0.64417064",
"0.6438846",
"0.64319617",
"0.64271235",
"0.6400308",
"0.6366435",
"0.63249683",
"0.630304",
"0.6263739",
"0.62486464",
"0.6224298",
"0.62239826",
"0.6218279",
"0.62063843",
"0.6203799",
"0.61861223",
"0.6183947",
"0.6160464",
"0.61476... | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jToggleButton1 = new javax.swing.JToggleButton();
jTabbedPane1 = new javax.swing.JTabbedPane();
PanelProdutoPes = new javax.swing.JPan... | {
"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.73199165",
"0.7291065",
"0.7291065",
"0.7291065",
"0.72868747",
"0.72488254",
"0.7214099",
"0.7209363",
"0.7196111",
"0.7190702",
"0.7184576",
"0.71590984",
"0.71483636",
"0.7093415",
"0.70814407",
"0.70579475",
"0.69872457",
"0.69773155",
"0.6955104",
"0.69544697",
"0.694... | 0.0 | -1 |
API is disabled (e.g. server not started) | public void handleApiDisabled() {
handler.post(new Runnable(){
public void run(){
Utils.showMessageAndExit(SessionsList.this, getString(R.string.label_api_disabled));
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean disableMonitoring();",
"public void onNotEnabled() {\n Timber.d(\"onNotEnabled\");\n // keep the callback in case they turn it on manually\n setTorPref(Status.DISABLED);\n createClearnetClient();\n status = Status.NOT_ENABLED;\n if (onStatusChangedListener != nul... | [
"0.6387492",
"0.61867046",
"0.61230105",
"0.5988751",
"0.5980822",
"0.597098",
"0.5957695",
"0.5949938",
"0.5949938",
"0.59442514",
"0.5939036",
"0.59324145",
"0.59179807",
"0.57938343",
"0.5792053",
"0.5787801",
"0.5766963",
"0.57655525",
"0.5763713",
"0.576016",
"0.5721655"... | 0.7353376 | 0 |
API is connected to the server | public void handleApiConnected() {
handler.post(new Runnable(){
public void run(){
// Display the list of sessions
updateList();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isConnected();",
"public boolean isConnected();",
"public boolean isConnected();",
"public boolean isConnected();",
"public boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"boolean isConnected();",
"... | [
"0.7300754",
"0.7300754",
"0.7300754",
"0.7300754",
"0.7300754",
"0.727019",
"0.727019",
"0.727019",
"0.727019",
"0.727019",
"0.727019",
"0.727019",
"0.727019",
"0.7172494",
"0.7148727",
"0.7018529",
"0.6934496",
"0.6920061",
"0.6902028",
"0.6880292",
"0.6851495",
"0.681870... | 0.66741794 | 35 |
Display the list of sessions | public void run(){
updateList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Session> getAllSessions();",
"public abstract String getSessionList();",
"@GetMapping\n public List<Session> list() {\n return sessionRepository.findAll();\n }",
"@GetMapping(\"tv_watching_sessions\")\n\tpublic List<TvWatchingSession> listSessions(){\n\t\treturn svc.allActiveSessionsByUser(... | [
"0.75973344",
"0.7288414",
"0.7243559",
"0.7107121",
"0.7009836",
"0.6948215",
"0.68819606",
"0.6691783",
"0.6437874",
"0.6437061",
"0.6385748",
"0.6313417",
"0.6296786",
"0.6260785",
"0.62498087",
"0.6241828",
"0.6239567",
"0.6221137",
"0.61478233",
"0.61449844",
"0.61380327... | 0.0 | -1 |
Update the displayed list | private void updateList() {
try {
// Reset the list
sipSessions.clear();
// Get list of pending sessions
List<IBinder> sessions = sipApi.getSessions();
for (IBinder session : sessions) {
ISipSession sipSession = ISipSession.Stub.asInterface(session);
sipSessions.add(sip... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateContent(){\r\n\t\tthis.initRecords();\r\n\t\tlist.show(records);\r\n\t}",
"public void update()\n\t{\n\t\t//update the view's list of movies...\n\t\tthis.getRemoveButton().setEnabled((this.database.getNumberOfMovies()>0));\n\t\tthis.movieList.setListData(this.database.toList());\n\t}",
"prote... | [
"0.7777677",
"0.7770773",
"0.7713223",
"0.7324626",
"0.7266111",
"0.72441214",
"0.7220325",
"0.72180784",
"0.7205699",
"0.7202407",
"0.7193581",
"0.7150324",
"0.71197635",
"0.7105389",
"0.70808554",
"0.7080455",
"0.7059408",
"0.70346457",
"0.7011537",
"0.7011537",
"0.6962077"... | 0.0 | -1 |
API is disconnected from the server | public void handleApiDisconnected() {
handler.post(new Runnable(){
public void run(){
Utils.showMessageAndExit(SessionsList.this, getString(R.string.label_api_disconnected));
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onDisconnected() {\n\t\t\r\n\t}",
"@Override\n public void onDisconnected() {\n }",
"protected void onDisconnect() {}",
"public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n... | [
"0.7085023",
"0.703332",
"0.7024787",
"0.6965978",
"0.69540197",
"0.6953291",
"0.69516474",
"0.695031",
"0.6944541",
"0.6944541",
"0.6944541",
"0.694332",
"0.6935718",
"0.68803406",
"0.6865074",
"0.6865074",
"0.686405",
"0.6856098",
"0.6854301",
"0.6816977",
"0.68109804",
"... | 0.75115824 | 0 |
Created by Ivan on 2016/12/30. | public interface ApiService {
public static final String BASE_URL = "http://112.124.22.238:8081/course_api/cniaoplay/";
// @GET("featured")
// public Call<PageBean<AppInfo>> getApps(@Query("p") String jsonParam);
@GET("featured")
public Observable<BaseBean<PageBean<AppInfo>>> getApps(@Query("p") S... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\r... | [
"0.6129701",
"0.5971279",
"0.5945622",
"0.59064853",
"0.59064853",
"0.5898189",
"0.58573455",
"0.5850389",
"0.57812726",
"0.57242084",
"0.5709882",
"0.5703063",
"0.5700994",
"0.5690614",
"0.56696707",
"0.5641307",
"0.5612636",
"0.5610956",
"0.5608631",
"0.560751",
"0.56045634... | 0.0 | -1 |
Lookup the algorithm specified by its standardized name | public static PKAlgs getAlg(String name) throws SshException
{
// For purposes of easier maintainability, apply a generic function,
// appropriate for all families of encryption algorithms
PKAlgs retVal = LookUpUtil.lookUp(PKAlgs.values(), name);
if ( null==retVal )
{
throw new SshException("Name not f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getAlgorithm();",
"public String algorithmName();",
"public String getAlgorithmName() {\n\t}",
"@Override\n public String getAlgorithm()\n {\n return algorithm;\n }",
"AlgorithmIdentifier getAlgorithmIdentifier();",
"public String getName()\r\n\t{\r\n\r\n\t\treturn ALGORITHM_NAME;\... | [
"0.76003146",
"0.71668524",
"0.66774505",
"0.65886325",
"0.6285562",
"0.62319225",
"0.6212724",
"0.61775255",
"0.61068857",
"0.60616624",
"0.60375774",
"0.6036218",
"0.59990895",
"0.5923955",
"0.590789",
"0.58060646",
"0.5780211",
"0.56583834",
"0.56570137",
"0.5635107",
"0.5... | 0.6440745 | 4 |
Convert into an instance of AsymmetricAlgorithm | public AsymmetricAlgorithm toCU()
{
return this.cu;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IDetectionAlgorithm createInstance();",
"Algorithm createAlgorithm();",
"OpenSSLKey mo134201a();",
"protected AsymmetricProcessor() {\n\t}",
"public abstract StandaloneAlgorithm createAlgorithm();",
"public interface AsymmetricBlockCipher {\n /**\n * initialise the cipher.\n *\n * @... | [
"0.6178395",
"0.61741656",
"0.58881044",
"0.5810083",
"0.56869596",
"0.56185424",
"0.54759693",
"0.5449757",
"0.5431032",
"0.539198",
"0.53417075",
"0.5312357",
"0.53105325",
"0.52928436",
"0.5284829",
"0.52701414",
"0.5243625",
"0.52432775",
"0.52113265",
"0.5204318",
"0.519... | 0.64377075 | 0 |
Converts an instance of AsymmetricAlgorithm into its "counterpart" of PKAlgs | public static PKAlgs fromGeneral(AsymmetricAlgorithm cuAlg)
{
return AlgGenericLookupUtil.lookupByCUType(PKAlgs.values(), cuAlg);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AsymmetricAlgorithm toCU()\n\t{\n\t\treturn this.cu;\n\t}",
"long getCryptAlgorithmSid();",
"OpenSSLKey mo134201a();",
"public int getAlgorithm()\n {\n return publicPk.getAlgorithm();\n }",
"public CryptographyKeysCreator() {\n Random random = new Random();\n BigInteger pr... | [
"0.60506076",
"0.57011443",
"0.5674249",
"0.5582371",
"0.54360414",
"0.5388223",
"0.5379604",
"0.5353564",
"0.5334163",
"0.52907485",
"0.52666885",
"0.5215961",
"0.51906383",
"0.5189878",
"0.5186533",
"0.5155857",
"0.5144439",
"0.5135886",
"0.5134981",
"0.51186055",
"0.509457... | 0.57927203 | 1 |
Created by williamxu on 7/14/17. | public interface NativeCardQAContract {
interface View extends ViewAdapter {
}
interface ViewModel extends ViewModelAdapter<View> {
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
... | [
"0.5922958",
"0.5882103",
"0.5742447",
"0.5729838",
"0.57249355",
"0.5719103",
"0.5713169",
"0.56644595",
"0.56624335",
"0.56615365",
"0.5651948",
"0.5651948",
"0.5625638",
"0.56097245",
"0.5605296",
"0.5595846",
"0.55931455",
"0.55860513",
"0.555747",
"0.55233794",
"0.551546... | 0.0 | -1 |
Starts new activity to add entry to database. | public void transferActivity() {
Intent intent = new Intent(this, AddInfoActivity.class);
this.startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addNewTask() {\n Intent i = new Intent(this, StartNewActivity.class);\n startActivityForResult(i, REQUEST_CODE);\n }",
"public void startAddActivity() {\n Intent addMemberIntent = new Intent(getContext(), MemberAddActivity.class);\n startActivityForResult(addMemberInten... | [
"0.66570854",
"0.6490425",
"0.62332684",
"0.6180255",
"0.6175253",
"0.61732036",
"0.6151063",
"0.61416805",
"0.6100801",
"0.6085267",
"0.60795087",
"0.607251",
"0.60723686",
"0.6063868",
"0.59955454",
"0.5984403",
"0.5949573",
"0.5941485",
"0.59087634",
"0.5900025",
"0.589471... | 0.55628526 | 51 |
to change the edittext box based on entered key | public GenericKeyEvent(EditText currentView, EditText previousView, EditText nextView) {
this.currentView = currentView;
this.previousView = previousView;
this.nextView = nextView;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n edtCodeNumber1.setText(\"\");\n } else if(edtCodeNumber1.getText().toString().length() == 1) {... | [
"0.71547693",
"0.67315614",
"0.67036533",
"0.66889906",
"0.6681087",
"0.66379756",
"0.66364217",
"0.66009635",
"0.6590811",
"0.6585804",
"0.65703523",
"0.6560092",
"0.652448",
"0.6489574",
"0.6474672",
"0.64602697",
"0.6435538",
"0.6435467",
"0.6374752",
"0.6352788",
"0.63377... | 0.0 | -1 |
to change otp box on entering or deleting number | @Override
public boolean onKey(View v, int keyCode, KeyEvent event) {
if (event.getAction() == KeyEvent.ACTION_DOWN && keyCode == KeyEvent.KEYCODE_DEL && currentView.getId() != R.id.otp1 && currentView.getText().length() == 0) {
previousView.setText(null);
previousView.requestFocus()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void enterOTPActions(String otp){\n\t\tdeviceHelper.writeInputActions(signUpObjects.OTPtextfield,otp);\n\t}",
"@Override\r\n public void onClick(View v) {\r\n try {\r\n InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);\r\n ... | [
"0.6467852",
"0.635822",
"0.6143727",
"0.6023686",
"0.6004031",
"0.5980817",
"0.5911559",
"0.5875793",
"0.5813841",
"0.5802064",
"0.56863403",
"0.56815416",
"0.56590205",
"0.5654676",
"0.56424284",
"0.5631616",
"0.55930036",
"0.55774504",
"0.5558573",
"0.5557995",
"0.5541527"... | 0.5464287 | 28 |
final List lores = meta.lore(); | public ItemBuilder replaceLore(final Component from, final Component to) {
if (lore==null || lore.isEmpty()) return this;
for (int i=0; i<lore.size(); i++) {
if (TCUtils.compare(lore.get(i), from)) {
lore.set(i, to);
}
}
//meta.lore(lores);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> lore()\n\t{\n\t\treturn lore;\n\t}",
"public void listar() {\n\t\t\n\t}",
"private List<String> getLore(Player p){\n ItemStack is;\n ItemMeta im;\n List<String> lore;\n if(p == null || (is = p.getInventory().getItemInMainHand()) == null || (im = is.getItemMeta())... | [
"0.66228616",
"0.6618541",
"0.633317",
"0.6328021",
"0.6328021",
"0.6328021",
"0.6328021",
"0.6328021",
"0.6102741",
"0.6004379",
"0.5970513",
"0.59122026",
"0.58712095",
"0.5868372",
"0.5839099",
"0.58287203",
"0.5822717",
"0.5814618",
"0.5813329",
"0.5813226",
"0.5799135",
... | 0.0 | -1 |
makes one move in the top direction, i.e., decrements positionX by 1 | public boolean moveUp() throws EatableObjectOnPlaceException {
if (!treeAbove() && !mouseAbove()) {
if (!onTopBorder(positionY)) {
positionY = positionY - 1;
eatPerformingStep();
return true;
}
else {
return moveDown();
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void up(){\n\t\tmoveX=0;\n\t\tmoveY=-1;\n\t}",
"public void moveUp() {\n locY = locY + 1;\n }",
"public void moveUp() {\n\t\tposY += speed;\n\t}",
"public void moveUp()\n {\n if (!this.search_zone.isTopBorder(this.y_position))\n {\n this.y_position = (this.y_posit... | [
"0.71365935",
"0.68828195",
"0.6831795",
"0.67900777",
"0.67735165",
"0.6718899",
"0.66770226",
"0.66282856",
"0.6598611",
"0.6589332",
"0.6589249",
"0.6588883",
"0.6588883",
"0.6564813",
"0.65577954",
"0.6552136",
"0.65410197",
"0.65335935",
"0.65321356",
"0.64920723",
"0.64... | 0.0 | -1 |
eat an obstacle (leaf or mushroom) being placed on current position; nothing to do if greedy ist set to false (the user is repsonsible himself for eating actions) | private void eatPerformingStep() throws EatableObjectOnPlaceException {
if(greedy) {
AbstractObject object = eat();
if (object != null) {
throw new EatableObjectOnPlaceException(object);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doAi(){\n\t\t\tif(MathHelper.getRandom(0, Game.FRAMERATE * 5) == 5){\n\t\t\t\tsetScared(true);\n\t\t\t}\n\t\t\n\t\t//Update rectangle\n\t\tsetRectangle(getX(), getY(), getTexture().getWidth(), getTexture().getHeight());\n\t\t\n\t\trect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10);\n\t\... | [
"0.6465034",
"0.6299358",
"0.6271949",
"0.62285763",
"0.6200438",
"0.6177816",
"0.61745316",
"0.6151494",
"0.6148959",
"0.6126259",
"0.6124743",
"0.6113127",
"0.6056837",
"0.60565877",
"0.60027105",
"0.59878874",
"0.59068036",
"0.5903054",
"0.5897807",
"0.588901",
"0.58883715... | 0.5673016 | 50 |
makes one move in the bottom direction, i.e., decrements positionX by 1 | public boolean moveDown() throws EatableObjectOnPlaceException {
if (!treeInBelow() && !mouseBelow()) {
if (!onBottomBorder(positionY)) {
positionY = positionY + 1;
eatPerformingStep();
return true;
}
else {
return moveUp();
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void down(){\n\t\tmoveX=0;\n\t\tmoveY=1;\n\t}",
"public void moveUp() {\n locY = locY + 1;\n }",
"public void moveDown() {\n locY = locY - 1;\n }",
"public void move()\r\n\t{\r\n\t\ty-=8;\r\n\t}",
"public void up(){\n\t\tmoveX=0;\n\t\tmoveY=-1;\n\t}",
"public void moveUp() {\r\... | [
"0.6729871",
"0.67296237",
"0.66771626",
"0.66752446",
"0.6662027",
"0.66410506",
"0.66212595",
"0.6614677",
"0.6612748",
"0.6610651",
"0.658203",
"0.6569438",
"0.6547259",
"0.65469486",
"0.6538365",
"0.65372473",
"0.6534456",
"0.6515021",
"0.6486989",
"0.64459157",
"0.644146... | 0.0 | -1 |
makes one move in the left direction, i.e., decrements positionX by 1 | public boolean moveLeft() throws EatableObjectOnPlaceException {
if (!treeOnLeft() && !mouseOnLeft()) {
if (!onLeftBorder(positionX)) {
positionX = positionX - 1;
eatPerformingStep();
return true;
}
else {
return moveRight();
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void moveLeft() {\r\n\t\tif (x > 0) x--; \r\n\t}",
"public void moveLeft()\n {\n if (xPos == 0)\n {\n movementY = 0;\n movementX = 0;\n }\n\n // Set the movement factor - negative X because we are moving LEFT! \n movementX = -0.5;\n ... | [
"0.8803676",
"0.86977845",
"0.8654344",
"0.8571584",
"0.8516289",
"0.85117185",
"0.8500286",
"0.8481255",
"0.8470026",
"0.84410644",
"0.8413143",
"0.8379607",
"0.8370533",
"0.8302101",
"0.82775366",
"0.82645684",
"0.8220134",
"0.81312764",
"0.80769426",
"0.80278426",
"0.79934... | 0.7095701 | 54 |
makes one move in the right direction, i.e., decrements positionX by 1 | public boolean moveRight() throws EatableObjectOnPlaceException {
if (!treeOnRight() && !mouseOnRight()) {
if (!onRightBorder(positionX)) {
positionX = positionX + 1;
eatPerformingStep();
return true;
}
else {
return moveLeft();
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void right(){\n\t\tmoveX=1;\n\t\tmoveY=0;\n\t}",
"public void moveRight() {\n locX = locX + 1;\n }",
"void moveRight() {\n\t\tsetX(x+1);\r\n\t\tdx=1;\r\n\t\tdy=0;\r\n\t}",
"public void moveRight() {\r\n\t\tif (x < space.getSize() - 1) x++; \r\n\t}",
"public void moveRight()\n {\... | [
"0.845582",
"0.84274983",
"0.8267892",
"0.81166756",
"0.8112357",
"0.80741733",
"0.8044634",
"0.79563946",
"0.79021907",
"0.78938603",
"0.787656",
"0.78425235",
"0.7778833",
"0.77736235",
"0.7771624",
"0.7737789",
"0.77166504",
"0.7709744",
"0.7678476",
"0.76457465",
"0.76149... | 0.0 | -1 |
Creates a video using the title and the author. The stream list will be empty. | public YoutubeVideo(String title, String author) {
this(title, author, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private VideoMetadata createVideo(String name, String type, String category, String imageName, String imageDir,\n\t\t\tString videoName, String videoDir, String description) {\n\t\tVideoMetadata newVideo = new VideoMetadata();\n\t\tnewVideo.setName(name);\n\t\tnewVideo.setType(type);\n\t\tnewVideo.setCategory(cate... | [
"0.61677593",
"0.6066357",
"0.59610456",
"0.59502745",
"0.58315295",
"0.57782924",
"0.57741714",
"0.57452375",
"0.5610474",
"0.5608459",
"0.5598194",
"0.5565795",
"0.5563847",
"0.55322665",
"0.5526691",
"0.55131847",
"0.55075026",
"0.54774785",
"0.5446696",
"0.5416556",
"0.53... | 0.61069494 | 1 |
Returns the title of the video. | public String getTitle() {
return title;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getVideoName() {\n return videoName;\n }",
"public String GetMediaTitle() {\n\t\treturn mediatitle;\n\t}",
"public java.lang.String getTitle() {\n java.lang.Object ref = title_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString... | [
"0.72937894",
"0.7245594",
"0.7190564",
"0.7190564",
"0.7185085",
"0.7183605",
"0.71763414",
"0.7175499",
"0.716934",
"0.716934",
"0.7153576",
"0.714628",
"0.714327",
"0.7122753",
"0.7122753",
"0.7120987",
"0.7120987",
"0.7120987",
"0.7120987",
"0.7120987",
"0.7113236",
"0.... | 0.0 | -1 |
Adds all stream options of the given YoutubeVideo to this. This method is used by multidecoder extractions. | public void merge(YoutubeVideo video) {
streamOptions.addAll(video.streamOptions);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public YoutubeVideo(String title, String author) {\n this(title, author, null);\n }",
"private void prepareYoutube() {\r\n if (event.youtubeUrl != null && !event.youtubeUrl.isEmpty())\r\n prepareYoutubeVideo();\r\n }",
"private void prepareYoutubeVideo() {\r\n LinearLayout... | [
"0.5475359",
"0.53946424",
"0.5310704",
"0.5284784",
"0.51088333",
"0.502612",
"0.4979981",
"0.4977364",
"0.49502364",
"0.49118352",
"0.49013323",
"0.48985407",
"0.48709753",
"0.48703748",
"0.48395678",
"0.48057956",
"0.47829854",
"0.47441918",
"0.4743829",
"0.47416517",
"0.4... | 0.7392512 | 0 |
Sets the primary key of this v legal f o rel. | public void setPrimaryKey(VLegalFORelPK primaryKey); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setPrimaryKey(long primaryKey) {\n _partido.setPrimaryKey(primaryKey);\n }",
"public void setPrimaryKey(String primaryKey);",
"public void setPrimaryKey(String primaryKey);",
"public void setPrimaryKey(String primaryKey);",
"@Override\n\tpublic void setPrimaryKey(int pr... | [
"0.7286688",
"0.7060338",
"0.7060338",
"0.7060338",
"0.70223695",
"0.6965266",
"0.69408655",
"0.69339544",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"0.69198096",
"... | 0.7583586 | 0 |
Returns the field ID of this v legal f o rel. | @AutoEscape
public String getFieldId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final String getFieldId() {\n return fieldId;\n }",
"public java.lang.String getFieldId() {\n return fieldId;\n }",
"public String getFieldId() {\n return this.fieldId;\n }",
"com.google.privacy.dlp.v2.FieldId getFieldId();",
"@JsonValue\n\tpublic final String fieldId()... | [
"0.75130236",
"0.73294675",
"0.7263126",
"0.7170249",
"0.6926703",
"0.6384399",
"0.6322742",
"0.6259026",
"0.61747646",
"0.61704165",
"0.616826",
"0.6155977",
"0.6123313",
"0.6073271",
"0.60556585",
"0.6047852",
"0.60115516",
"0.6005587",
"0.6005587",
"0.5977383",
"0.5962289"... | 0.72390497 | 3 |
Sets the field ID of this v legal f o rel. | public void setFieldId(String fieldId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void setFieldId(final String fieldId) {\n this.fieldId = fieldId;\n }",
"public void setFieldId(String fieldId) {\n this.fieldId = fieldId;\n }",
"public void setFieldId(java.lang.String fieldId) {\n this.fieldId = fieldId;\n }",
"@Override\n public void setField... | [
"0.7121714",
"0.7007021",
"0.68478763",
"0.66661483",
"0.665432",
"0.665432",
"0.6119576",
"0.60257554",
"0.598374",
"0.5959758",
"0.594175",
"0.5925284",
"0.58852357",
"0.58852357",
"0.5859995",
"0.5848547",
"0.58401126",
"0.5820144",
"0.58191645",
"0.5818878",
"0.5812652",
... | 0.7403745 | 0 |
Returns the org ID of this v legal f o rel. | @AutoEscape
public String getOrgId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getOrgId() {\r\n return orgId;\r\n }",
"public Number getOrgId() {\n return (Number)getAttributeInternal(ORGID);\n }",
"public Number getOrgId() {\n return (Number) getAttributeInternal(ORGID);\n }",
"public Long getOrgId() {\n return orgId;\n }",
"public... | [
"0.77698296",
"0.7761301",
"0.7753057",
"0.7653152",
"0.7653152",
"0.7653152",
"0.7653152",
"0.7653152",
"0.76148784",
"0.75694287",
"0.7423333",
"0.73213243",
"0.7262181",
"0.7152219",
"0.7152219",
"0.7152219",
"0.7152219",
"0.7152219",
"0.7152219",
"0.7152219",
"0.7152219",... | 0.74808294 | 10 |
Sets the org ID of this v legal f o rel. | public void setOrgId(String orgId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }",
"public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_Org_ID);",
"public void setAD_Org_ID (int AD_... | [
"0.7596801",
"0.7596801",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.73117757",
"0.7122544",
"0.69886297",
"0.6859716",
"0.6859716",
"0.6859716",
"0... | 0.75513923 | 2 |
TODO We need to reverseengineer all these values | public boolean isCaseSensitive() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"private void initValues() {\n \n }",
"@Override\n\tpublic void initializeValues() {\n\n\t}",
"@Override\n\tpublic void initValue() {\n\t\t\n\t}",
"private Value() {\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\... | [
"0.5951477",
"0.5678456",
"0.5649929",
"0.56158936",
"0.55750215",
"0.5552945",
"0.555161",
"0.55096036",
"0.5439069",
"0.54302996",
"0.5400878",
"0.53954655",
"0.5395125",
"0.5392456",
"0.5392118",
"0.5389431",
"0.5383075",
"0.5348236",
"0.5340325",
"0.53371835",
"0.5319618"... | 0.0 | -1 |
Operations that allow to configure a view of the properties of a entity from the app model. | public interface PropsViewsContainer {
/**
* Adds a new properties view configuration. The id must be unique. The
* configuration must be an string with the namespace of the entity to be
* loaded at a minimum.
*/
void addPropsView(String id, String className);
/**
* Sets the confi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface EntityViewManager {\n\n /**\n * Returns the metamodel for this entity view manager.\n *\n * @return The metamodel for this entity view manager\n */\n public ViewMetamodel getMetamodel();\n\n /**\n * Applies the entity view setting to the given criteria builder.\n *... | [
"0.5791592",
"0.5740267",
"0.56415874",
"0.56182647",
"0.5602379",
"0.5456233",
"0.54006636",
"0.53727424",
"0.5341283",
"0.53194106",
"0.5314018",
"0.526571",
"0.52423716",
"0.5219974",
"0.5204539",
"0.5183594",
"0.5168099",
"0.5145629",
"0.5140725",
"0.51276785",
"0.5125227... | 0.59584624 | 0 |
Adds a new properties view configuration. The id must be unique. The configuration must be an string with the namespace of the entity to be loaded at a minimum. | void addPropsView(String id, String className); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface PropsViewsContainer {\n\n /**\n * Adds a new properties view configuration. The id must be unique. The\n * configuration must be an string with the namespace of the entity to be\n * loaded at a minimum.\n */\n void addPropsView(String id, String className);\n\n /**\n *... | [
"0.51928747",
"0.49841514",
"0.4916959",
"0.47923252",
"0.47124064",
"0.47058055",
"0.46640852",
"0.46235383",
"0.46090627",
"0.45825917",
"0.45586652",
"0.45409867",
"0.45306897",
"0.45285168",
"0.45279902",
"0.45264205",
"0.45129666",
"0.4505841",
"0.44968075",
"0.4490637",
... | 0.5665907 | 0 |
Sets the configuration for the properties view. Each value of the map can be an string (full name of an entity) or a map with options to be passed to the builder. See addPropsView method for details. | void setPropsViews(Map<String, String> propertiesView); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setProperties(Map properties);",
"public void setProperties(Map<String, String> properties) {\n this.properties = properties;\n }",
"public void setProperties(HashMap<String, String> map)\n {\n this.properties = map;\n }",
"public void setProperties(java.util.Map<String,... | [
"0.6340825",
"0.61658424",
"0.6121599",
"0.60842985",
"0.6081417",
"0.6053063",
"0.6036583",
"0.59745413",
"0.59590685",
"0.59400046",
"0.5882092",
"0.58815444",
"0.577833",
"0.5775914",
"0.5694946",
"0.567667",
"0.56619877",
"0.56019014",
"0.5594576",
"0.55924296",
"0.549528... | 0.7602514 | 0 |
Gets the configuration for the properties view | Map<String, String> getPropsViews(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ConfigProperties getProperties() {\n return properties;\n }",
"Map<String, String> getConfigProperties();",
"public WebIceProperties getProperties()\n\t{\n\t\treturn config;\n\t}",
"public PropertySet getViewProperties() {\r\n return prefs;\r\n }",
"static Properties getConfig()\n {\... | [
"0.7415112",
"0.72710484",
"0.7114265",
"0.7090497",
"0.70096135",
"0.68353504",
"0.6751157",
"0.664859",
"0.65824",
"0.65537727",
"0.6514391",
"0.6512855",
"0.6503908",
"0.65029293",
"0.6483339",
"0.6476084",
"0.6458972",
"0.64557624",
"0.6423691",
"0.64188766",
"0.6407801",... | 0.64865965 | 14 |
Question Candy Constructor with current points rule | public CandyQuestion(Image image) {
super(image, Constants.QUESTION_CANDY_INITIAL_POINTS);
setQuestion(new PopsQuestion());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Candy() {\n\t\tthis(\"\");\n\t}",
"public AccrualRule(){}",
"public Clue(String c, String a) {\n this.clue = c;\n this.answer = a;\n }",
"@Test\r\n\tpublic void constructorDeclarationTest(){\r\n\t\tint[] pointsToTest = {2,7,9,16,17,18,19,20};\r\n\t\tfor(int i=0;i<pointsToTest.length;i... | [
"0.6200073",
"0.595511",
"0.5889354",
"0.5882982",
"0.58278394",
"0.57843614",
"0.5764574",
"0.5750871",
"0.5743362",
"0.56534314",
"0.5619897",
"0.5602531",
"0.56018513",
"0.55935663",
"0.55452293",
"0.55452293",
"0.5539906",
"0.55378574",
"0.5511598",
"0.55059063",
"0.54991... | 0.6426788 | 0 |
load question candy image from drive to object | @Override
public void loadImages() {
super.setImage((new ImageIcon("pacpix/QuestionCandy.png")).getImage());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Image loadImage();",
"private BufferedImage loadPic(String name) {\n\t\tBufferedImage pic=null;\n\t\ttry {\n\t\t\tpic = ImageIO.read(new File(\"store/\"+name));\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t\treturn pic;\n\t}",
"public static void loadFruitPic... | [
"0.60826415",
"0.5940747",
"0.59329",
"0.58537126",
"0.5829875",
"0.57399756",
"0.5738403",
"0.5732322",
"0.57236034",
"0.57164717",
"0.56916946",
"0.5658565",
"0.56510496",
"0.5627988",
"0.56237257",
"0.56131876",
"0.555843",
"0.55562866",
"0.55304515",
"0.55237466",
"0.5522... | 0.61157423 | 0 |
/ Access modifiers changed, original: protected|final | public final void beforeExecute(Thread thread, Runnable runnable) {
super.beforeExecute(thread, runnable);
try {
if (this.a > 0) {
thread.setPriority(this.a);
return;
}
if (runnable instanceof w) {
thread.setPrio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic ... | [
"0.7188292",
"0.69440913",
"0.67583746",
"0.67421097",
"0.6695834",
"0.6595748",
"0.6588323",
"0.6538176",
"0.6462649",
"0.6439864",
"0.64044964",
"0.640002",
"0.6365475",
"0.6361452",
"0.6354888",
"0.6339893",
"0.631317",
"0.6310145",
"0.6305046",
"0.62962663",
"0.6290889",
... | 0.0 | -1 |
12. endsWith() Method: endsWith() method is used to check the last character or characters in a String. endsWith() method is used with Strings.Do not use it with "char". endsWith() method can be used with multiple characters as well. endsWith() method returns "boolean" | public static void main(String[] args) {
String str = "Java is Java";
/*
* System.out.println(str.endsWith("a"));//true
* System.out.println(str.endsWith("x"));//false
* System.out.println(str.endsWith("ava"));//true
*/
// 13. startsWith() :
// startsWith() method is used to check the last characte... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean endsWith(String suffix) {\n/* 371 */ return this.m_str.endsWith(suffix);\n/* */ }",
"public boolean endsWithSpecificString(String str, String str2)\r\n{\r\n if(str.length()== str2.length())\r\n {\r\n return compare2Strings(str,str2);\r\n }\r\n else if(str.length()> str... | [
"0.8289038",
"0.7866757",
"0.74961644",
"0.7291921",
"0.71912634",
"0.7167998",
"0.70007426",
"0.69737464",
"0.6961963",
"0.6852409",
"0.68319666",
"0.665423",
"0.6599714",
"0.6576059",
"0.65559083",
"0.6415779",
"0.62357837",
"0.61410576",
"0.60636127",
"0.60576695",
"0.6043... | 0.53987074 | 48 |
Constructs an CheckerBoardCommand based on the model to manipulate and the view that will reflect these changes. | public CheckerBoardCommand(IMultiLayerExtraOperations model, GUIView frame)
throws IllegalArgumentException {
super(model, frame);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BoardView(GameController controller, Text state, Rectangle sideRect,\n Text sideStatus, RadioMenuItem playerGameMenuItem, Text tType,\n Label whitePiecesEaten, Label blackPiecesEaten,\n ObservableList<String> moveHistory, Label lblCurrentPiece) {\n\n this.controller = controller;... | [
"0.59617484",
"0.56428677",
"0.5424975",
"0.5369879",
"0.53476834",
"0.5336852",
"0.5174873",
"0.51585215",
"0.51338637",
"0.5125975",
"0.51067376",
"0.50821126",
"0.5044124",
"0.497825",
"0.4964558",
"0.4946565",
"0.49464703",
"0.49258104",
"0.4858192",
"0.48534894",
"0.4830... | 0.6997045 | 0 |
To get List of Important News | @SkipValidation
public String getAllImportantNews() {
impList = impService.getAllImportantNews();
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<NewsNotifications> getNewsFeed(int limit);",
"@SkipValidation\n public String importantNewsSearchResult() {\n impList = impService.importantNewsSearchResult(important);\n return SUCCESS;\n }",
"@Override\r\n\tpublic List<Product> findNews() throws Exception {\n\t\treturn null;\r... | [
"0.7044034",
"0.6990594",
"0.694983",
"0.6946498",
"0.6711309",
"0.66985273",
"0.6631104",
"0.65023494",
"0.64973116",
"0.64385957",
"0.64141846",
"0.63994515",
"0.6375808",
"0.62829185",
"0.628118",
"0.6267215",
"0.62537587",
"0.62533605",
"0.61960757",
"0.6182105",
"0.61730... | 0.7640424 | 0 |
when click Edit link it bring particular data into Form or click Add Important News it shows blank Form to enter New Data | @SkipValidation
public String setUpImportantNews() {
if ((important != null) && (important.getImportantNewsId() != null)) {
important = impService.getImportantNews(important.getImportantNewsId());
}
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"/newsAdmin\", method = RequestMethod.GET)\n public String loadFormPage(final Model model) {\n LOGGER.log(Level.INFO, \"in loadFormPage\");\n model.addAttribute(NEWS_ARTICLE, new NewsArticle());\n return NEWS_ADMIN_PAGE;\n }",
"private String prepareAndReturnEd... | [
"0.6273559",
"0.6065813",
"0.6043359",
"0.5983909",
"0.59648293",
"0.5940713",
"0.5911516",
"0.5814211",
"0.57877904",
"0.5781017",
"0.57788754",
"0.5716309",
"0.5667527",
"0.5641084",
"0.56288993",
"0.56208235",
"0.5606755",
"0.5587114",
"0.5576829",
"0.55746925",
"0.5562576... | 0.0 | -1 |
To get Particular Important News Data | @SkipValidation
public String importantNewsView() {
if ((important != null) && (important.getImportantNewsId() != null)) {
important = impService.getImportantNews(important.getImportantNewsId());
}
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GET(\"user-news-article-content?expand=newsArticle,newsArticle.newsArticleType,newsArticle.translations,newsArticle.like,newsArticle.liked,newsArticle.comments_count&per-page=1000\")\n Call<UserNewsResponse>getUserNews();",
"@SkipValidation\n public String getAllImportantNews() {\n impList = impSer... | [
"0.6663204",
"0.6657093",
"0.65745896",
"0.64920706",
"0.6488132",
"0.6425512",
"0.64194214",
"0.6415668",
"0.6269593",
"0.6221803",
"0.6173363",
"0.6149091",
"0.6080332",
"0.6075241",
"0.6073222",
"0.60586643",
"0.6052747",
"0.60455364",
"0.6015312",
"0.598142",
"0.5962067",... | 0.6283631 | 8 |
To insert new Important News detail or Edit Particular Important News Detail | public String insertOrUpdateImportantNews() {
try {
if (important.getImportantNewsId() == null) {
Map session = ActionContext.getContext().getSession();
EmployeesVO oEmp = (EmployeesVO) session.get("EMPLOYEE_OBJECT");
important.setCreated(DateUtils.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int insertSelective(NewsInfo record);",
"@SkipValidation\n public String setUpImportantNews() {\n if ((important != null) && (important.getImportantNewsId() != null)) {\n important = impService.getImportantNews(important.getImportantNewsId());\n }\n return SUCCESS;\n }",
"... | [
"0.6467231",
"0.6435484",
"0.6340061",
"0.62865907",
"0.62674403",
"0.62497354",
"0.6236093",
"0.6228636",
"0.622723",
"0.6221159",
"0.6189905",
"0.617601",
"0.6139169",
"0.6110049",
"0.6093529",
"0.60094994",
"0.5814327",
"0.5812254",
"0.57757086",
"0.57653666",
"0.5762222",... | 0.6980524 | 0 |
To delete Particular Important News Detail | @SkipValidation
public String deleteImportantNews() {
Map session = ActionContext.getContext().getSession();
EmployeesVO oEmp = (EmployeesVO) session.get("EMPLOYEE_OBJECT");
// To Delete Important News.
important.setUpdatedBy(oEmp);
impService.deleteImportantNews(important);... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int deleteByExample(NewsInfoExample example);",
"@Delete({\n \"delete from NEWS\",\n \"where NEWS_ID = #{newsId,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer newsId);",
"int deleteByExample(NewsExample example);",
"@Override\r\n\tpublic void deleteNews(int id) {\n\t\tdao.delet... | [
"0.73071486",
"0.7090343",
"0.7055751",
"0.6886736",
"0.67770505",
"0.6725309",
"0.64760876",
"0.64055663",
"0.63971484",
"0.63687927",
"0.62881494",
"0.6237643",
"0.6172028",
"0.6139781",
"0.6133236",
"0.611649",
"0.6082495",
"0.60507363",
"0.60398597",
"0.6016609",
"0.59370... | 0.75061387 | 0 |
To View the Important News Search Form | @SkipValidation
public String importantNewsSearchForm() {
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showSearch() {\n\t\tonSearchRequested();\n\t}",
"public Form getSearchForm() throws PublicationTemplateException;",
"private void visitToSearch() {\n if (search_Attendance==null) {\n search_Attendance=new Search_Attendance();\n search_Attendance.setVisible(true... | [
"0.6649456",
"0.6607834",
"0.6416285",
"0.6415012",
"0.6323998",
"0.6273183",
"0.62325954",
"0.6120333",
"0.60536283",
"0.6053514",
"0.6052907",
"0.6041827",
"0.6020118",
"0.6000986",
"0.59814316",
"0.59159386",
"0.589049",
"0.5885983",
"0.5877601",
"0.5859834",
"0.5851154",
... | 0.6605603 | 2 |
To Search Important News | @SkipValidation
public String importantNewsSearchResult() {
impList = impService.importantNewsSearchResult(important);
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public HashSet<News> getNewsFreeCriteria(String request) throws ServiceException {\n try {\n String [] parametersForTheSearch;\n parametersForTheSearch = RequestWorker.getSearchParametersInRequest(request);\n\n return dbWorker.searchNewsForFreeCriteria(paramet... | [
"0.6697991",
"0.6435053",
"0.64349586",
"0.64197856",
"0.63381267",
"0.6316216",
"0.63066643",
"0.6296526",
"0.6263584",
"0.62532",
"0.6213936",
"0.6176544",
"0.61669785",
"0.6155457",
"0.6087727",
"0.6087727",
"0.6085978",
"0.60724634",
"0.60342914",
"0.6026345",
"0.60209775... | 0.69708425 | 0 |
To Change Show Messages Check box in List of Important News Page | @SkipValidation
public String makeChangesToShowMessage() {
important = impService.getImportantNews(important.getImportantNewsId());
if (important.isShowMessage() == false) {
important.setShowMessage(true);
impService.updateImportantNews(important);
}
return SU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<String> showNewsAndMessages();",
"void showLoadingMoreMessages(boolean show);",
"private void showAllTwoots() {\n if (onlyShowFollowing) {\n messages.setItems(feed.getFollowingMessages());\n stage.setTitle(\"Twooter - following only\");\n } else {\n messages.... | [
"0.64580274",
"0.6384877",
"0.60067767",
"0.5870288",
"0.57827866",
"0.5670705",
"0.56108725",
"0.560864",
"0.5573449",
"0.5532912",
"0.55295086",
"0.5524892",
"0.55160403",
"0.54788315",
"0.5434118",
"0.5418406",
"0.5391835",
"0.539005",
"0.53650135",
"0.53558666",
"0.535261... | 0.7008839 | 0 |
Start monitor threads, wait for inputs | public synchronized void start() {
if (!isRunning) {
isRunning = true;
inputCount += inputQueue.size();
if (isPausing) {
isPausing = false;
controlSync.release(numComputeTasks);
} else {
threads = new Thread[numComputeTasks];
for (int i = 0; i < numComputeTask... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void waitForThread() {\n monitorState = true;\n while (monitorState) {\n synchronized (monitor) {\n try {\n monitor.wait(); // wait until notified\n } catch (Exception e) {}\n }\n }\n }",
"private void startThreads() {\n L... | [
"0.66223353",
"0.63439006",
"0.6275542",
"0.5986141",
"0.58877003",
"0.58487505",
"0.58393437",
"0.5833714",
"0.57352436",
"0.5712914",
"0.5693452",
"0.56528467",
"0.56422853",
"0.56370467",
"0.56056714",
"0.55962735",
"0.5592272",
"0.55875385",
"0.5586645",
"0.5566652",
"0.5... | 0.58149296 | 8 |
Stop submission Send StopSign to the queue based on the number of tasks | public synchronized void stop() {
if (isPausing) {
start();
}
if (isRunning) {
isRunning = false;
for (int i = 0; i < numComputeTasks; i++) {
inputQueue.addLast(new ComputeStopSign());
}
ComputeUtil.acquire(taskSync,
numComputeTasks);
for (int i = 0; i < t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sendStopMessage() {\n // A default stop type message\n FirebaseMessage stopMessage = new FirebaseMessage(\"STOP\", null, \"STOP\");\n if (!messageQueue.offer(stopMessage)) {\n logger.error(\"The stop message could not be sent\");\n }\n }",
"public void stopSe... | [
"0.58734095",
"0.56234145",
"0.5535843",
"0.54784185",
"0.54487544",
"0.54211646",
"0.5378747",
"0.53591096",
"0.5323122",
"0.53134197",
"0.5300729",
"0.52753204",
"0.5274664",
"0.52628154",
"0.5260014",
"0.5245087",
"0.5240846",
"0.523213",
"0.5216457",
"0.5167944",
"0.51434... | 0.5259808 | 15 |
If no output is available, wait for one | public synchronized Object waitOutput() {
Object output = null;
if (hasOutput()) {
boolean isFailed = false;
do {
try {
output = outputQueue.take();
isFailed = false;
} catch (Exception e) {
if (output == null) {
isFailed = true;
} ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void waitUntilCommandFinished() {\n }",
"private void waitOnReceive() throws IOException {\n while (inStream.available() == 0) {\n try {\n Thread.sleep(1);\n } catch (InterruptedException _) {\n }\n }\n }",
"ProcessRunner waitFor();"... | [
"0.6533618",
"0.6510953",
"0.64324206",
"0.63818383",
"0.6376951",
"0.6207946",
"0.62063193",
"0.6095573",
"0.6079499",
"0.60733134",
"0.60272574",
"0.5983817",
"0.5973005",
"0.5881891",
"0.58096784",
"0.5779502",
"0.57679456",
"0.5767849",
"0.57381713",
"0.570961",
"0.570916... | 0.7732471 | 0 |
Default Constructor for a scale Initializes all variables to valid but bad values Used for later customization | public Scale()
{
this.scaleName = "no scale";
this.scaleDegrees = "no degrees";
this.degreeCount = -99;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Scale(Scale newScale){\n \tsuper(newScale);\n }",
"public ScaleInformation() {\n\t\tthis(0.0, 0.0, 800.0, 540.0, 800, 540);\n\t}",
"public ScaleControl() {\n super();\n }",
"public void setScale(Scale scale) {\n this.scale = scale;\n }",
"public HeatedObjectScale() {\n ... | [
"0.7452639",
"0.69786537",
"0.68769366",
"0.64343566",
"0.6420506",
"0.6341273",
"0.6333438",
"0.63159454",
"0.6187722",
"0.6168889",
"0.61548316",
"0.61525464",
"0.6146269",
"0.613912",
"0.61134535",
"0.6099475",
"0.60969114",
"0.60647744",
"0.60478806",
"0.60332286",
"0.603... | 0.81388116 | 0 |
Initializes a Scale Instance. | public Scale(String scaleName, String scaleDegrees, int degreeCount)
{
this.scaleName = scaleName;
this.scaleDegrees = scaleDegrees;
this.degreeCount = degreeCount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Scale()\n\t{\n\t\tthis.scaleName = \"no scale\";\n\t\tthis.scaleDegrees = \"no degrees\";\n\t\tthis.degreeCount = -99;\n\t}",
"public ScaleControl() {\n super();\n }",
"public Scale(Scale newScale){\n \tsuper(newScale);\n }",
"public ScaleInformation() {\n\t\tthis(0.0, 0.0, 800.0, 540.... | [
"0.7395691",
"0.703097",
"0.6874789",
"0.6775952",
"0.6770504",
"0.6192979",
"0.60976595",
"0.6085091",
"0.59856445",
"0.58630836",
"0.5856599",
"0.5836647",
"0.57826084",
"0.5780567",
"0.5775278",
"0.57565606",
"0.572738",
"0.5725233",
"0.57244354",
"0.56968516",
"0.5658223"... | 0.0 | -1 |
Excluir de para secundario do de para. | public void excluirDeParaSecundarioDoDePara(List<Long> idsDePara) throws DAOException {
try {
String qlString = new StringBuilder()
.append("DELETE FROM DeParaSecundario dps WHERE dps.dePara.id in (:idDePara)")
.toString();
getEntityManager().createQuery(qlString).setPara... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void excluir() {\n\t\t\n\t}",
"private void eliminarDeMisPropiedades(Casilla casilla){\n if(esDeMipropiedad(casilla)){\n propiedades.remove(casilla.getTituloPropiedad());\n }\n \n }",
"@Override\n\tpublic void excluir(Produto entidade) {\n\n\t}",
"pub... | [
"0.61786944",
"0.61631584",
"0.605863",
"0.59158045",
"0.5896066",
"0.58800155",
"0.5857275",
"0.58363354",
"0.5812813",
"0.5811402",
"0.57960874",
"0.5783662",
"0.57794315",
"0.57603014",
"0.5744289",
"0.5722357",
"0.571265",
"0.56806844",
"0.5676682",
"0.56764096",
"0.56730... | 0.6305223 | 0 |
Excluir de para secundarios. | public void excluirDeParaSecundarios(List<Long> idsDeParaSecundarios) throws DAOException {
try {
String qlString = new StringBuilder()
.append("DELETE FROM DeParaSecundario dpp WHERE dpp.id in (:idsDeParaSecundarios)")
.toString();
getEntityManager().createQuery(qlString).setParam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void excluir() {\n\t\t\n\t}",
"public void excluir() {\n try {\n ClienteDao fdao = new ClienteDao();\n fdao.Excluir(cliente);\n\n JSFUtil.AdicionarMensagemSucesso(\"Cliente excluido com sucesso!\");\n\n } catch (RuntimeException e) {\n ... | [
"0.7046007",
"0.6905159",
"0.68588096",
"0.6553609",
"0.6393621",
"0.6361257",
"0.6336583",
"0.6325979",
"0.6314684",
"0.62209445",
"0.6220166",
"0.61950815",
"0.61793596",
"0.61353964",
"0.61312014",
"0.61140335",
"0.6099325",
"0.60866946",
"0.60724056",
"0.60519606",
"0.602... | 0.6488007 | 4 |
Consulta codigos secundarios aud. | public List<DeParaSecundarioAud> consultaCodigosSecundariosAud(Long idDePara, Long idRevisao)
throws DAOException {
try {
String qlString = new StringBuilder().append(
"FROM DeParaSecundarioAud dps WHERE dps.dePara.id = :idDePara and dps.revisao.id = :idRevisao")
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String dissociaAuditors(){\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tDatiUtente user = (DatiUtente) request.getSession().getAttribute(\"DatiUtente\");\n\t\t\n\t\tlong idUtente=getModel().getIdAuditors();\n\t\tlong idAccesso=user.getIdSessione();\n\t\t\n\t\tAuAssUtenteSessione... | [
"0.6443713",
"0.5851111",
"0.57428783",
"0.56234074",
"0.54854673",
"0.5243412",
"0.51139426",
"0.50949645",
"0.5034774",
"0.49973202",
"0.49804193",
"0.49755412",
"0.49688244",
"0.49642763",
"0.4941253",
"0.49389473",
"0.4926695",
"0.4901379",
"0.48981926",
"0.48940352",
"0.... | 0.6562485 | 0 |
Attach this simulation proxy to a specific game window. | void attachToGameWindow(GameWindow gameWindow); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setupGameWindow()\n {\n uControll.setWindowProperties(new WindowListener() {\n @Override\n public void windowOpened(WindowEvent we) {\n }\n\n @Override\n public void windowClosing(WindowEvent we) {\n menuPanel.open();\n ... | [
"0.5553429",
"0.5550397",
"0.54972076",
"0.5477147",
"0.52074724",
"0.51865435",
"0.51846284",
"0.5178003",
"0.5151698",
"0.51263773",
"0.509515",
"0.5079591",
"0.50231504",
"0.4997562",
"0.49810067",
"0.49741971",
"0.49572653",
"0.49436885",
"0.4910517",
"0.4907405",
"0.4901... | 0.70344996 | 0 |
Called when the window is closing. | void windowClosed(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void windowClosed() {\r\n\r\n\t\t// Exit\tapplication.\r\n\t\tSystem.exit(0);\r\n\t}",
"@Override\r\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void windowClosed(WindowEvent arg0) {\n\n }",
"@Override\n\t\t\tpublic void windowClosed(W... | [
"0.8411728",
"0.81866837",
"0.8184371",
"0.8172492",
"0.8158572",
"0.8158572",
"0.81485283",
"0.81485283",
"0.81485283",
"0.81485283",
"0.81485283",
"0.81485283",
"0.81485283",
"0.8138807",
"0.8138807",
"0.8138807",
"0.8105881",
"0.8090525",
"0.8086889",
"0.8086889",
"0.80819... | 0.8292558 | 1 |
This is called when a button is pressed by the user | void buttonPressed(ButtonType type); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}",
"public void buttonClicked();",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"void buttonGo_actionPerformed(ActionEvent e) {\n\n\n }",
"public void onButtonAPressed();",
"void mainButtonPress... | [
"0.7838161",
"0.7792651",
"0.7536599",
"0.7393247",
"0.73690623",
"0.7310898",
"0.71758884",
"0.7094178",
"0.7078857",
"0.7059502",
"0.70565337",
"0.7055408",
"0.7049048",
"0.7039087",
"0.702815",
"0.702815",
"0.702815",
"0.702815",
"0.7027525",
"0.7018046",
"0.7000462",
"0... | 0.6912554 | 31 |
This is called if the speed slider is changed by the user | void simulationSpeedChange(int value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void speedStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_speedStateChanged\n\n int speedvalue = speed.getValue();//gets the value of the speed slider from the control panel\n roboLogic.speed(speedvalue); // calls the speed method of the RobotLogic class\n\n\n }",
"pri... | [
"0.76355684",
"0.7586968",
"0.746392",
"0.744985",
"0.7419544",
"0.7204214",
"0.709264",
"0.7092426",
"0.7033579",
"0.69256836",
"0.6811515",
"0.6786621",
"0.6747736",
"0.6699818",
"0.66939116",
"0.66846037",
"0.6660655",
"0.6619972",
"0.66073906",
"0.6555709",
"0.6538303",
... | 0.632117 | 41 |
This gets called when the user changes the selected element | void selectedEntityChanged(String name); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void valueChanged (TreeSelectionEvent event)\n {\n updateSelection();\n }",
"public void updateSelection() {\n\t\t\n\t}",
"@Override\n\tpublic void selectionChanged(SelectionChangedEvent arg0) {\n\t\t\n\t}",
"public void selectionChanged(Selection selecton) {\r\n ... | [
"0.7274752",
"0.7252354",
"0.7244393",
"0.71342456",
"0.702324",
"0.69818383",
"0.692254",
"0.69147515",
"0.69143105",
"0.6888294",
"0.6876232",
"0.6796585",
"0.6780229",
"0.6780108",
"0.67689735",
"0.6748082",
"0.6745301",
"0.67233694",
"0.672151",
"0.67094",
"0.67076033",
... | 0.65136606 | 67 |
This gets called by the user to refresh task status information. Calling this must verify the task. | void refreshTaskInformation(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateTask() {}",
"public void updateTaskStatus(CaptureTask task, String status, String description) {\n\t\t\r\n\t}",
"boolean updateActiveTask(Task task);",
"@Override\n public boolean statusUpdate(TaskAttemptID taskId, TaskStatus taskStatus)\n throws IOException, InterruptedExceptio... | [
"0.72356004",
"0.72210366",
"0.691714",
"0.68649673",
"0.6798249",
"0.6726184",
"0.6549397",
"0.6492951",
"0.6466403",
"0.6439269",
"0.6438563",
"0.63922435",
"0.6306801",
"0.6287258",
"0.6284196",
"0.6218409",
"0.62133735",
"0.6195394",
"0.61329186",
"0.6105634",
"0.6074432"... | 0.78567743 | 0 |
Entity placing Spawn a new entity of the given type at the given position and bind the program to this entity. | void spawnEntityAt(String typeName, int x, int y); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unused\")\n void spawn(Entity entity);",
"public void spawnEntity(AEntityB_Existing entity){\r\n\t\tBuilderEntityExisting builder = new BuilderEntityExisting(entity.world.world);\r\n\t\tbuilder.loadedFromSavedNBT = true;\r\n\t\tbuilder.setPositionAndRotation(entity.position.x, entity.posit... | [
"0.6846336",
"0.68355703",
"0.6505559",
"0.6475497",
"0.6429231",
"0.6290248",
"0.62660885",
"0.626185",
"0.616",
"0.61309344",
"0.6115115",
"0.60704714",
"0.60509884",
"0.6032133",
"0.60259545",
"0.59970033",
"0.59824497",
"0.59530705",
"0.59345484",
"0.58736587",
"0.5865240... | 0.7562786 | 0 |
Clear all entities in the given cell. | void clearCell(int x, int y); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clearEntities()\n\t{\n\t\twhile(!this.entities.isEmpty())\n\t\t{\n\t\t\t//Can use 0 index because we use swap with last anyway\n\t\t\tthis.removeEntity(0); //Important because onDespawn and to remove from hash grid\n\t\t}\n\t}",
"public void clear() {\n\t\tfor (int i = 0; i < table.size(); i++) {\n\t... | [
"0.65371966",
"0.64325637",
"0.6293468",
"0.616996",
"0.6167421",
"0.6038778",
"0.60101247",
"0.60055524",
"0.59703314",
"0.59659624",
"0.59525967",
"0.59332526",
"0.58872753",
"0.5879405",
"0.58754045",
"0.58722234",
"0.58697176",
"0.58635026",
"0.5851174",
"0.5847727",
"0.5... | 0.70159227 | 0 |
Sidebar Simulation Tree This function gets called when the user selects a different node | void selectedSimulationEntityChange(SimulationTreeNode node); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ShowTree(GUIMain guiMn) throws HeadlessException {\n setSize(200, 400);\n\n guiMn.simMain.rootNode = new DefaultMutableTreeNode(\"Physiology systems\");\n guiMn.simMain.treeModel = new DefaultTreeModel(guiMn.simMain.rootNode);\n guiMn.simMain.treeModel.addTreeModelListener(new WB... | [
"0.6340852",
"0.6298224",
"0.62595606",
"0.612669",
"0.60954374",
"0.6087375",
"0.60762674",
"0.60714686",
"0.60471326",
"0.60359305",
"0.60302234",
"0.60275793",
"0.6000629",
"0.59567106",
"0.5923496",
"0.5901253",
"0.5864302",
"0.5862665",
"0.5861225",
"0.58584535",
"0.5814... | 0.5666648 | 32 |
Entity Inspector This function gets called when a user changes a value or fires a function in the ui | void entityValueChange(String name, String value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void selectedEntityChanged(String name);",
"protected abstract void showEditedEntity(Entity e);",
"void trigger(Entity e);",
"@Override\n public void actionPerformed (ActionEvent e) {\n fireChanged();\n }",
"@Override\n\t\t\tpublic void changed(ChangeEvent event, Actor actor) {\n\t\t\t}",
"@... | [
"0.69578904",
"0.65017915",
"0.63605195",
"0.6284089",
"0.62787634",
"0.62787634",
"0.62787634",
"0.62787634",
"0.6273038",
"0.61170304",
"0.607215",
"0.607215",
"0.59951484",
"0.59798163",
"0.5930742",
"0.5889409",
"0.5852433",
"0.5852433",
"0.58405",
"0.5837157",
"0.5831979... | 0.7417669 | 0 |
Disconnect all consumers attached to the dispatcher and close this subscription. | @Override
public synchronized CompletableFuture<Void> disconnect() {
CompletableFuture<Void> disconnectFuture = new CompletableFuture<>();
// block any further consumers on this subscription
IS_FENCED_UPDATER.set(this, TRUE);
(dispatcher != null ? dispatcher.close() : CompletableFu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void disconnect() {\n\t\tif (producer != null) {\n\t\t\tproducer.close();\n\t\t}\n\t\tproducer = null;\n\n\t\tif (consumer != null) {\n\t\t\tstopPolling();\n\t\t}\n\t\tconsumer = null;\n\t}",
"void destroy() {\n if (this.consumerContext != null) {\n //this.consumerContext.close();\n ... | [
"0.66940683",
"0.59836304",
"0.59356266",
"0.58941495",
"0.5876159",
"0.583815",
"0.5743106",
"0.57424915",
"0.5741666",
"0.56259704",
"0.5619584",
"0.5593498",
"0.55924076",
"0.55781823",
"0.5560134",
"0.5543871",
"0.55281335",
"0.55016744",
"0.5484422",
"0.54560155",
"0.542... | 0.6520854 | 1 |
Delete the subscription by closing and deleting its managed cursor if no consumers are connected to it. Handle unsubscribe call from admin layer. | @Override
public CompletableFuture<Void> delete() {
return delete(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private CompletableFuture<Void> delete(boolean closeIfConsumersConnected) {\n CompletableFuture<Void> deleteFuture = new CompletableFuture<>();\n\n log.info(\"[{}][{}] Unsubscribing\", topicName, subName);\n\n CompletableFuture<Void> closeSubscriptionFuture = new CompletableFuture<>();\n\n ... | [
"0.6902147",
"0.67019045",
"0.6437361",
"0.6224811",
"0.6183925",
"0.6168601",
"0.6114826",
"0.6088101",
"0.6070818",
"0.6047778",
"0.60388386",
"0.6013413",
"0.5930529",
"0.5895709",
"0.58236146",
"0.5820045",
"0.57799786",
"0.5742924",
"0.5647183",
"0.5620939",
"0.5597662",... | 0.0 | -1 |
Forcefully close all consumers and deletes the subscription. | @Override
public CompletableFuture<Void> deleteForcefully() {
return delete(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void destroy() {\n if (this.consumerContext != null) {\n //this.consumerContext.close();\n this.consumerContext = null;\n }\n }",
"public void closeAll()\n {\n closeAllTopicPublishers();\n closeAllTopicSubscribers();\n closeAllTopicDurableSubscribers... | [
"0.71038437",
"0.6854673",
"0.68119985",
"0.67956907",
"0.66875327",
"0.6673479",
"0.66141564",
"0.6611169",
"0.6437687",
"0.6194138",
"0.6192441",
"0.61882406",
"0.61660016",
"0.61524564",
"0.61324143",
"0.60999674",
"0.6065243",
"0.60561657",
"0.6040517",
"0.59106135",
"0.5... | 0.0 | -1 |
Delete the subscription by closing and deleting its managed cursor. Handle unsubscribe call from admin layer. | private CompletableFuture<Void> delete(boolean closeIfConsumersConnected) {
CompletableFuture<Void> deleteFuture = new CompletableFuture<>();
log.info("[{}][{}] Unsubscribing", topicName, subName);
CompletableFuture<Void> closeSubscriptionFuture = new CompletableFuture<>();
if (closeI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void unsubscribe(Subscription subscription);",
"private void deleteSubscription(RoutingContext routingContext) {\n LOGGER.debug(\"Info: deleteSubscription method started;\");\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String do... | [
"0.6637103",
"0.64795256",
"0.63066375",
"0.62289256",
"0.62185925",
"0.6188752",
"0.6078942",
"0.60579354",
"0.5982122",
"0.5908718",
"0.582933",
"0.5762236",
"0.5757272",
"0.573454",
"0.56978106",
"0.5679091",
"0.5669469",
"0.5664577",
"0.55692595",
"0.5543253",
"0.55241865... | 0.6456132 | 2 |
Handle unsubscribe command from the client API Check with the dispatcher is this consumer can proceed with unsubscribe. | @Override
public CompletableFuture<Void> doUnsubscribe(Consumer consumer) {
CompletableFuture<Void> future = new CompletableFuture<>();
try {
if (dispatcher.canUnsubscribe(consumer)) {
consumer.close();
return delete();
}
future.com... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void unsubscribeHandler(MqttUnsubscribeMessage unsubscribe) {\n\n final int messageId = unsubscribe.messageId();\n LOG.info(\"UNSUBSCRIBE [{}] from MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n\n // sending AMQP_UNSUBSCRIBE\n\n AmqpUnsubscribeMessage amqp... | [
"0.7334951",
"0.7042834",
"0.69792527",
"0.6822029",
"0.67915434",
"0.66076815",
"0.65918523",
"0.657531",
"0.6505734",
"0.648674",
"0.64597636",
"0.64409065",
"0.63718903",
"0.63544095",
"0.6288049",
"0.62492",
"0.62483364",
"0.6238604",
"0.62204087",
"0.6214574",
"0.6167777... | 0.6354076 | 14 |
/Demo1 obj=new Demo1(); >The only purpose of the class Demo1 is to implement abc i.e to define the abstract method void show() then we can go use anonymous interface concept where you are creating object for an interface which is not possible in any other way | public static void main(String args[])
{
abc obj=new abc()
{
public void show()
{
System.out.println("In Demo1 show...!");
}
};
obj.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface InterfaceDemo {\n int age =0; //接口中变量都是公开静态常量\n String name =null;\n abstract void aa();\n\n public abstract void display(); //接口中方法都是抽象的\n}",
"interface A{\n void show();\n}",
"public static void main(String[] args)\r\n{\n\tInterfaceDemo obj=new InterfaceDemo();\r\n\t//3. Reference... | [
"0.7579533",
"0.6958325",
"0.6949679",
"0.6826586",
"0.6747593",
"0.6728034",
"0.6697212",
"0.6658855",
"0.6469203",
"0.6408291",
"0.64082193",
"0.6338201",
"0.6326792",
"0.63046706",
"0.629144",
"0.6267601",
"0.6239805",
"0.6239805",
"0.62263775",
"0.6220747",
"0.6176741",
... | 0.7626855 | 0 |
TODO Autogenerated method stub | protected void initialize() {
requires(simpleVision);
} | {
"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 | protected void execute() {
ParticleAnalysisReport[] reports = simpleVision.getFrame();
for (int i = 0; i < reports.length; i++) { // print results
ParticleAnalysisReport r = reports[i];
SmartDashboard.putString("Particle" + i, r.center_mass_x + ", " +... | {
"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 |
TODO Autogenerated method stub | protected boolean isFinished() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | protected void end() {
} | {
"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 | protected void interrupted() {
} | {
"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 |
jhipsterneedleentityaddfield JHipster will add fields here, do not remove | public Long getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mapp... | [
"0.62935424",
"0.5985966",
"0.59330326",
"0.5805937",
"0.5701243",
"0.56256855",
"0.56225914",
"0.56027466",
"0.5590212",
"0.55272454",
"0.5524442",
"0.55027753",
"0.5450715",
"0.5450022",
"0.544771",
"0.54397124",
"0.542143",
"0.53969616",
"0.5391886",
"0.538626",
"0.5379215... | 0.0 | -1 |
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here, do not remove | @Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CategoriaDespesa categoriaDespesa = (CategoriaDespesa) o;
if (categoriaDespesa.getId() == null || getId()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}",
"static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n i... | [
"0.63286126",
"0.6107704",
"0.56600153",
"0.5650253",
"0.5532135",
"0.5463501",
"0.5462676",
"0.54489154",
"0.54330343",
"0.5414924",
"0.5386955",
"0.5378861",
"0.53504336",
"0.5340984",
"0.53362584",
"0.532892",
"0.5322672",
"0.53224915",
"0.5315536",
"0.53031385",
"0.529214... | 0.0 | -1 |
handles request for saving attached document | @RequestMapping(value = "save", method = RequestMethod.POST)
public ModelAndView save(@ModelAttribute("document") Document document,
@RequestParam(value = "file", required = false) MultipartFile file,
ModelMap modelMap) {
try {
if (document.getpOrg() == null)
throw new ValidationException(
"The ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean processSaveDocument(Document document);",
"void saveDocument(SingleDocumentModel model, Path newPath);",
"HrDocumentRequest save(HrDocumentRequest hrDocumentRequest);",
"@Override\n public void onSaveAttachment(AttachmentViewInfo attachment) {\n\n getAttachmentController(att... | [
"0.7160098",
"0.6964952",
"0.6925324",
"0.6859366",
"0.6778618",
"0.6649702",
"0.64266676",
"0.6349694",
"0.6349694",
"0.6318765",
"0.62453246",
"0.6243321",
"0.6243321",
"0.6199095",
"0.60964096",
"0.6057666",
"0.6023837",
"0.6020857",
"0.59550446",
"0.5946453",
"0.5923336",... | 0.586782 | 28 |
Atributos No hay Constructor Constructor de TCubico | public TCubico(){} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Alojamiento() {\r\n\t}",
"public Caso_de_uso () {\n }",
"public Candidatura (){\n \n }",
"private ControleurAcceuil(){ }",
"public Cgg_jur_anticipo(){}",
"public Kullanici() {}",
"public AntrianPasien() {\r\n\r\n }",
"public Pasien() {\r\n }",
"public Vehiculo() {\r\n }... | [
"0.7364801",
"0.7296862",
"0.7286193",
"0.72850907",
"0.7283375",
"0.72493577",
"0.7241083",
"0.7234526",
"0.7232215",
"0.71430135",
"0.7142133",
"0.71277213",
"0.71226156",
"0.71183",
"0.70890003",
"0.70732486",
"0.70509666",
"0.70421654",
"0.70328563",
"0.7015571",
"0.70138... | 0.79779965 | 0 |
Metodos Ingresa la capacidad de TCubico | @Override
public void ingresarCapacidad(){
double capacidad = Math.pow(alto, 3);
int capacidadInt = Double.valueOf(capacidad).intValue();
super.capacidad = capacidadInt;
super.cantidadRestante = capacidadInt;
System.out.println(capacidadInt);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void asignarCapacidades ()\n\t{\n\t\tif(tipoVehiculo.equalsIgnoreCase(TIPO_VEHICULO_ECONOMICO))\n\t\t{\n\t\t\tcapacidadKilometrosPorGalon = CAPACIDAD_60;\n\t\t}\n\t\t\n\t\telse if(tipoVehiculo.equalsIgnoreCase(TIPO_VEHICULO_MEDIO))\n\t\t{\n\t\t\tcapacidadKilometrosPorGalon = CAPACIDAD_45;\n\t\t}\n\t\t\n\t\... | [
"0.69070756",
"0.6487838",
"0.6443693",
"0.59934574",
"0.5953816",
"0.5908737",
"0.5833421",
"0.5822824",
"0.57863927",
"0.5747077",
"0.5731083",
"0.56804633",
"0.56557727",
"0.56557727",
"0.56506956",
"0.56432277",
"0.56268734",
"0.55763716",
"0.55744636",
"0.5566874",
"0.55... | 0.5956038 | 4 |
you can define some common methods here | void printCarInfo(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n ... | [
"0.6203616",
"0.60774803",
"0.6071782",
"0.60540605",
"0.60540605",
"0.60359424",
"0.59590185",
"0.5946159",
"0.5941488",
"0.5941488",
"0.5883198",
"0.5868424",
"0.5868424",
"0.5853461",
"0.58443296",
"0.57764065",
"0.5772049",
"0.5755987",
"0.5733863",
"0.5724825",
"0.572001... | 0.0 | -1 |
This function is run when the robot is first started up and should be used for any initialization code. | @Override
public void robotInit() {
SmartDashboard.putData(new TestLIDARCommand());
driveSubsystem = new DriveSubsystem();
shooterSubsystem = new ShooterSubsystem();
feederSubsystem = new FeederSubsystem();
intakeSubsystem = new IntakeSubsystem();
gearSubsystem = new GearSubsystem();
climberSubsystem = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void robotInit() {\n }",
"@Override\n public void robotInit() {\n }",
"@Override\n public void robotInit() {\n }",
"public void robotInit() {\n\n }",
"public void robotInit() {\n\n }",
"protected void initialize() {\n\t\tRobot.firstAutonomousCommandDone = true;\n\t}",
"pu... | [
"0.8392803",
"0.8392803",
"0.8392803",
"0.83547866",
"0.83547866",
"0.82538813",
"0.82371646",
"0.8115441",
"0.810368",
"0.8069614",
"0.8047264",
"0.8046606",
"0.80160177",
"0.797614",
"0.797426",
"0.79708314",
"0.7918923",
"0.78927255",
"0.7879521",
"0.7868995",
"0.78505576"... | 0.73065454 | 90 |
This function is called once each time the robot enters Disabled mode. You can use it to reset any subsystem information you want to clear when the robot is disabled. | @Override
public void disabledInit() {
Robot.driveSubsystem.setCoastMode();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void disabledInit() {\n\t\tprocessRobotModeChange(RobotMode.DISABLED);\n }",
"void disableMod();",
"private void disableSensor() {\n if (DEBUG) Log.w(TAG, \"<<< Sensor \" + getEmulatorFriendlyName() + \" is disabled.\");\n mEnabledByEmulator = false;\n ... | [
"0.73160666",
"0.6703275",
"0.6676034",
"0.66627425",
"0.6615973",
"0.6569662",
"0.65616435",
"0.6510648",
"0.64056295",
"0.64017236",
"0.6401332",
"0.6392209",
"0.6385473",
"0.6375316",
"0.6363548",
"0.635353",
"0.63370466",
"0.63349396",
"0.63309455",
"0.63309205",
"0.63207... | 0.6724014 | 1 |
This autonomous (along with the chooser code above) shows how to select between different autonomous modes using the dashboard. The sendable chooser code works with the Java SmartDashboard. If you prefer the LabVIEW Dashboard, remove all of the chooser code and uncomment the getString code to get the auto name from the... | @Override
public void autonomousInit() {
Robot.driveSubsystem.shiftDown();
Robot.driveSubsystem.setBrakeMode();
m_autoCmd = m_chooser.getSelected();
if (m_autoCmd != null) {
m_autoCmd.start();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n SmartDashboard.putData(leftMotor1);\n SmartDashboard.putData(leftMotor2);\n SmartDashboard... | [
"0.69108605",
"0.6875947",
"0.6748199",
"0.662725",
"0.66085553",
"0.65296865",
"0.6484286",
"0.6482721",
"0.6420751",
"0.63882685",
"0.6360747",
"0.63457465",
"0.6341353",
"0.63260144",
"0.63260144",
"0.63260144",
"0.63260144",
"0.6320272",
"0.6299703",
"0.6289783",
"0.62878... | 0.5387082 | 88 |
This function is called periodically during autonomous | @Override
public void autonomousPeriodic() {
SmartDashboard.putNumber("Left Speed", Robot.driveSubsystem.getLeftSpeed());
SmartDashboard.putNumber("Right Speed", Robot.driveSubsystem.getRightSpeed());
Scheduler.getInstance().run();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public... | [
"0.8242393",
"0.8238804",
"0.8235853",
"0.8235853",
"0.8235853",
"0.820495",
"0.8199907",
"0.8194021",
"0.8194021",
"0.8177311",
"0.8151588",
"0.8147766",
"0.81250346",
"0.81250346",
"0.80807847",
"0.8016792",
"0.8016792",
"0.79744554",
"0.79655135",
"0.7948241",
"0.7948241",... | 0.72546506 | 67 |
This function is called periodically during operator control | @Override
public void teleopPeriodic() {
Robot.intakeSubsystem._getSpeed();
Robot.driveSubsystem.operatorOverride();
Scheduler.getInstance().run();
TargetRegion boilerTarget = Robot.navigator.getBoilerTarget();
if (boilerTarget != null) {
SmartDashboard.putNumber("Target Center X", boilerTarget.m_center... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void teleopPeriodic() {\n \t\n \twhile (isOperatorControl() && isEnabled()) {\n \t\tdebug();\n \t\tsmartDashboardVariables();\n \t\t//driver control functions\n \t\tdriverControl();\n \t//state machine\n \tterrainStates();\n \t//this function always comes last\n ... | [
"0.7665666",
"0.73227316",
"0.7286976",
"0.72593725",
"0.7255314",
"0.71488637",
"0.71488637",
"0.71138996",
"0.7093574",
"0.7090445",
"0.70560575",
"0.7046668",
"0.704289",
"0.7039102",
"0.7032054",
"0.7023366",
"0.6963418",
"0.69623876",
"0.69429386",
"0.69309705",
"0.69309... | 0.0 | -1 |
This function is called periodically during test mode | @Override
public void testPeriodic() {
LiveWindow.run();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void testPeriodic()\n {\n \n }",
"@Override\n public void testPeriodic() {\n }",
"@Override\n public void testPeriodic() {\n }",
"@Override\n public void testPeriodic() {\n }",
"@Override\n public void testPeriodic() {\n }",
"@Override\n public void testPeriodi... | [
"0.7800467",
"0.75683486",
"0.75683486",
"0.75683486",
"0.75683486",
"0.75683486",
"0.75683486",
"0.75683486",
"0.75683486",
"0.75683486",
"0.75683486",
"0.7513078",
"0.7469104",
"0.7374911",
"0.73407346",
"0.7327271",
"0.73171455",
"0.73171455",
"0.7293993",
"0.7293993",
"0.... | 0.7364876 | 17 |
Created by Sebastian on 20161129. | public interface PageContentAnalyzer {
Stream<PageAddress.Builder> analyze(Document document);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }... | [
"0.5736074",
"0.57279754",
"0.5659515",
"0.56530464",
"0.56440425",
"0.5610975",
"0.558224",
"0.5582022",
"0.55091745",
"0.54830045",
"0.54741514",
"0.54741514",
"0.54258555",
"0.5425766",
"0.54227114",
"0.5417308",
"0.54164875",
"0.54125977",
"0.540399",
"0.54032695",
"0.540... | 0.0 | -1 |
define class required for all java programs | public static void main(String[] args) {
Scanner input = new Scanner(System.in);//declare scanner and have it accenpt user input
System.out.println("Enter in 15 student grades.");//prompt user to enter 15 grades
int[] Grades = new int[15];//create single dimensional array
int grade1 = 0;... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMainClass(IJavaClassFile value);",
"private ClassUtil() {}",
"public IJavaClassFile getMainClass();",
"private void installBasicClasses() {\n \tAbstractSymbol filename \n \t = AbstractTable.stringtable.addString(\"<basic class>\");\n \t\n \t// The following demonstrates how to create dummy ... | [
"0.6375217",
"0.63116723",
"0.61793685",
"0.60946906",
"0.6057288",
"0.5988055",
"0.5961703",
"0.5918327",
"0.5914076",
"0.5904126",
"0.58773816",
"0.58152366",
"0.5772453",
"0.5758163",
"0.572092",
"0.5699114",
"0.5696065",
"0.5683806",
"0.56489456",
"0.5638511",
"0.55907613... | 0.0 | -1 |
Shuffles the songs currently in the queue | public Mono<CommandResponse> shuffleQueue(@NonNull TrackScheduler scheduler) {
scheduler.shuffleQueue();
return CommandResponse.create(EmojiHelper.SHUFFLE + " Queue shuffled " + EmojiHelper.SHUFFLE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void playShuffled();",
"public ArrayList<SongInfo> getShuffledSongs(boolean reshuffle);",
"public void resetShuffleOrder() {\n\t\tshuffleOrder = new ArrayList<Song>();\n\t\tthis.shuffleSongIndex = -1;\n\t}",
"public void shuffle();",
"public void setShuffle() {\n shuffle = true;\n... | [
"0.74969035",
"0.7480095",
"0.73206306",
"0.68506944",
"0.68325055",
"0.6818887",
"0.6795673",
"0.6715006",
"0.6715006",
"0.67055976",
"0.670302",
"0.66914743",
"0.66332084",
"0.6595627",
"0.6591215",
"0.657565",
"0.65723497",
"0.6538471",
"0.6508061",
"0.6506581",
"0.6476237... | 0.0 | -1 |
DO NOT MODIFY THIS METHOD Constructor creates a CacheMemory object. Note the design rules for valid values of each parameter. The simulated computer reads or writes a unit of one WORD_SIZE. | public CacheMemory(MainMemory m, int size, int lineSize, int linesPerSet) {
if (lineSize % WORD_SIZE != 0) {
throw new IllegalArgumentException("lineSize is not a multiple of " + WORD_SIZE);
}
if (size % lineSize != 0) {
throw new IllegalArgumentException("size is not a multiple of lineSize.")... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Memory() {}",
"public MemoryCache() {\n\t\t// use 25% of available heap size\n\t\tsetLimit(Runtime.getRuntime().maxMemory() / 10);\n\t}",
"public Memory(Integer tSize, Integer aTime){\r\n\t\tif(DEBUG_LEVEL >= 1)System.out.println(\"Memory(\" + tSize +\", \" + aTime + \")\");\r\n\t\t\r\n\t\t// Validity Checking... | [
"0.6326376",
"0.6127742",
"0.6096806",
"0.6071775",
"0.60653406",
"0.603729",
"0.59969753",
"0.59891975",
"0.597701",
"0.5927436",
"0.5910357",
"0.5747982",
"0.5744239",
"0.5722713",
"0.5722358",
"0.5711599",
"0.57112736",
"0.5700996",
"0.56828094",
"0.56699413",
"0.56035674"... | 0.68247414 | 0 |
end of constructor DO NOT MODIFY THIS METHOD "Warm Up" the cache by reading random memory addresses. This method is used by programs that do not want to run on a "cold" cache. The cache performance statistics do not include requests from this warm up phase. | public void warmUp(int numReads, Random random) {
int wordsInMainMem = (mainMemory.getSize() / WORD_SIZE);
for (int i = 0; i < numReads; i++) {
// Generate a random line address
int wordAddress = random.nextInt(wordsInMainMem) * WORD_SIZE;
boolean[] address = Binary.uDecToBin(wordAddress, 32)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void warmUp();",
"private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n public void put(AccessPointIdentifier key, Integer value) {\n cache.put(key, val... | [
"0.65840334",
"0.62793344",
"0.61637527",
"0.61297935",
"0.5932995",
"0.5930296",
"0.59120333",
"0.5909942",
"0.58461046",
"0.58434474",
"0.5830865",
"0.5813764",
"0.5804176",
"0.5772014",
"0.5766145",
"0.57507074",
"0.5749872",
"0.572531",
"0.5712581",
"0.56999284",
"0.56971... | 0.58429426 | 10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.