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
The Interface Identifiable. Implement this interface to permit comparison of objects in testing code.
public interface Identifiable { /** * Generate a String that uniquely identifies this object. This String can * be created from class data/state, and will be used to determine compare * with other objects of the same type to determine equivalence. * * @return the String identifying the state of the object ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic boolean implementEquals(Object obj) {\n\t\t\treturn false;\r\n\t\t}", "@Test\n public void testEqualsObject() {\n \n BSPJobID jobId1 = new BSPJobID(jtIdentifier, 2);\n System.out.println(jobId.equals(jobId1));\n assertEquals(false, jobId.equals(jobId1));\n }", "public stat...
[ "0.6725496", "0.63724023", "0.63713264", "0.6352591", "0.63036704", "0.6300636", "0.627178", "0.624214", "0.623127", "0.62159324", "0.62079453", "0.6197707", "0.6180498", "0.61722004", "0.61722004", "0.61650056", "0.6164163", "0.6151277", "0.61249185", "0.6111151", "0.6095519...
0.76471186
0
Generate a String that uniquely identifies this object. This String can be created from class data/state, and will be used to determine compare with other objects of the same type to determine equivalence.
public String id();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }", "public String identityHash() {\n return Integer.toHexString(System.identityHashCode(this));\n }", "public interface Identifiable {\n\n\t/**\n\t * Generate a String that uniquely identifies this obje...
[ "0.7134955", "0.70209026", "0.6852484", "0.67915255", "0.668993", "0.6615907", "0.6526738", "0.64957374", "0.6458731", "0.64497304", "0.6447233", "0.6444718", "0.6419735", "0.6406878", "0.63534504", "0.6350364", "0.63191545", "0.6300291", "0.6273109", "0.62706006", "0.6261882...
0.0
-1
Load all sheets in the given folder.
public void loadChordSheets(File folder) { if (folder.exists()) { ActivityDataUtility.getInstance().setCurrentFolder(folder); files.clear(); if (!FileUtility.getBaseFolder().equals(folder)) { files.add(new FileItem(folder.getParentFile())); } for (File file : folder.listFiles(new ChordSh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadSheet() {\n\t\ttry {\n\t\t\tBufferedImage image = ImageIO.read(SpriteSheet.class\n\t\t\t\t\t.getResource(path));\n\t\t\tint w = image.getWidth();\n\t\t\tint h = image.getHeight();\n\t\t\timage.getRGB(0, 0, w, h, sheetPixles, 0, w);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\...
[ "0.6123784", "0.53619224", "0.52187294", "0.51440287", "0.51258105", "0.5097726", "0.50931066", "0.5091057", "0.50847185", "0.50733733", "0.50492465", "0.49930754", "0.49878693", "0.49336466", "0.49282745", "0.49111715", "0.48683608", "0.48556766", "0.484321", "0.48090294", "...
0.71133024
0
Create long press context menu.
@Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo; FileItem fileItem = files.getItem(info.position); if (!fileItem.isDirectory()) { getActivit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onCreateContextMenu(ContextMenu menu, View v,\r\n\t\t\tContextMenuInfo menuInfo) {\n\t\tgetMenuInflater().inflate(R.menu.long_click_context, menu);\r\n\t\t//menu.setHeaderIcon(R.drawable.qq);\r\n\t\tmenu.setHeaderTitle(\"选项菜单\");//设置菜单标题\r\n\t\tthis.contextmenu = menu;\r\n\t\t\r\n\t\tsup...
[ "0.7237881", "0.7105967", "0.6815752", "0.6753843", "0.667562", "0.66709065", "0.6660162", "0.65300936", "0.65206367", "0.64827526", "0.6480333", "0.64790905", "0.64504987", "0.6423031", "0.64227927", "0.64063907", "0.64039516", "0.6402743", "0.6332798", "0.6298058", "0.62910...
0.0
-1
Perform action on long press context menu selection.
@Override public boolean onContextItemSelected(MenuItem item) { boolean handled = false; // Get the selected ChordSheet AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo(); FileItem fileItem = files.getItem(info.position); final ChordSheet sheet = fileItem.getSheet(); switc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onLongClick(int position) {\n log(\"Long Pressed\" + position);\n enableActionMode(position);\n }", "@Override\n protected void hookContextMenu() {\n\n }", "@Override\r\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long...
[ "0.71846753", "0.6944727", "0.69159985", "0.6769514", "0.6750448", "0.67449355", "0.67334116", "0.66398484", "0.6625128", "0.65998274", "0.6508571", "0.6499078", "0.6466025", "0.6409946", "0.6409946", "0.6409946", "0.6409946", "0.6409946", "0.63913417", "0.6384579", "0.638457...
0.0
-1
/ access modifiers changed from: protected
public void onCreate(Bundle bundle) { super.onCreate(bundle); this.eventDelegate.onCreate(bundle); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public void onStart() { super.onStart(); this.eventDelegate.onStart(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7374581", "0.704046", "0.6921078", "0.6907657", "0.68447137", "0.68278503", "0.68051183", "0.6581499", "0.65379775", "0.65013164", "0.64906055", "0.64906055", "0.6471428", "0.64376146", "0.64308655", "0.64308655", "0.6427683", "0.6424486", "0.64190304", "0.640871", "0.6405...
0.0
-1
/ access modifiers changed from: protected
public void onResume() { super.onResume(); this.eventDelegate.onResume(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public void onDestroy() { this.eventDelegate.onDestroy(); super.onDestroy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public void onStop() { this.eventDelegate.onStop(); super.onStop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public void onPause() { super.onPause(); this.eventDelegate.onPause(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7374581", "0.704046", "0.6921078", "0.6907657", "0.68447137", "0.68278503", "0.68051183", "0.6581499", "0.65379775", "0.65013164", "0.64906055", "0.64906055", "0.6471428", "0.64376146", "0.64308655", "0.64308655", "0.6427683", "0.6424486", "0.64190304", "0.640871", "0.6405...
0.0
-1
/ access modifiers changed from: protected
public void onPostResume() { super.onPostResume(); this.eventDelegate.onPostResume(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public void onActivityResult(int i, int i2, Intent intent) { if (!this.eventDelegate.onActivityResult(i, i2, intent)) { super.onActivityResult(i, i2, intent); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public void onNewIntent(Intent intent) { this.eventDelegate.onNewIntent(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String filePath = FilePath.FILE_PATH; try { // File 클래스는 자바에서 파일 및 폴더 객체를 다루는 클래스이다. // new File() : File 클래스의 인스턴스를 생성 // 실제 하드디스크에 물리적인 파일/폴더(디렉토리)를 생성하지 않는다. // 실제 파일/폴더(디렉토리)를 만들기 위해서는 File 클래스에 있는 함수를 호출해야 한다. // createNewFile(), mkdir(), mkdirs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
This callback is overriden
@PreDestroy void destroy(InvocationContext ctx) throws Exception { SuperclassInterceptorMethodsTest.LIFECYCLE_CALLBACKS.add("c"); ctx.proceed(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}", "@Override\n\tpublic void callback() {\n\t}", "@Override\n\tpublic void onCallback() {\n\t\t\n\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void callback(int position) {\n\n\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t...
[ "0.7601995", "0.74401194", "0.7313679", "0.7222469", "0.6870389", "0.6870389", "0.6822947", "0.6822663", "0.6728964", "0.6693481", "0.66795033", "0.66484016", "0.66290176", "0.66007143", "0.6592804", "0.6532", "0.6527398", "0.6527263", "0.65028614", "0.64886576", "0.64647", ...
0.0
-1
OpenGL view. Go fullscreen
@Override protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_NO_TITLE); super.onCreate(savedInstanceState); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); GLSurfaceView view = new GLS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onSurfaceChanged(GL10 glUnused, int width, int height) {\n // Set the OpenGL viewport to fill the entire surface.\n glViewport(0, 0, width, height);\n }", "@Override\n public void onSurfaceChanged(GL10 glUnused, int width, int height) {\n glViewport(0, 0, wid...
[ "0.67707896", "0.67209953", "0.6682673", "0.66766685", "0.6671586", "0.6590646", "0.6530497", "0.6518288", "0.65091884", "0.6507155", "0.649913", "0.6438353", "0.64090514", "0.6407778", "0.6393804", "0.6376428", "0.6363641", "0.6348554", "0.6344229", "0.6281855", "0.62791187"...
0.6264023
21
This app main activity
@Override public void run() { Intent i = new Intent(SplashActivity.this, SearchActivity.class); startActivity(i); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n }", "@Override\r\n protected void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentV...
[ "0.6970115", "0.6964179", "0.6964179", "0.6951707", "0.69163686", "0.69163686", "0.69163686", "0.6891064", "0.6891064", "0.6891064", "0.6891064", "0.6891064", "0.6891064", "0.6891064", "0.6872344", "0.687075", "0.68648267", "0.68064654", "0.6797013", "0.67967004", "0.6744336"...
0.0
-1
Create a new writer instance, if still below maxActive count. Remember times to help make later decision when writer should be discarded.
protected synchronized WriterPoolMember makeNewWriterIfAppropriate() { long now = System.currentTimeMillis(); lastWriterNeededTime = now; if(currentActive < maxActive) { currentActive++; lastWriterRolloverTime = now; return makeWriter(); } return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void destroyWriter(WriterPoolMember writer) throws IOException {\n currentActive--; \n writer.close();\n }", "private void createWriter() throws IOException {\n if (outputFile.exists()) {\n outputFile.delete();\n }\n FileWriter outFw = null;\n ...
[ "0.5059046", "0.4805242", "0.48026943", "0.47889194", "0.47687423", "0.4715992", "0.4697263", "0.4674428", "0.46694303", "0.46586788", "0.46570396", "0.46440744", "0.46345782", "0.46235335", "0.4586648", "0.4581302", "0.45731205", "0.45696533", "0.4552665", "0.45503682", "0.4...
0.7595621
0
Discard a previouslyused writer, cleanly closing it and leaving it out of the pool.
public synchronized void destroyWriter(WriterPoolMember writer) throws IOException { currentActive--; writer.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void closeNotSuccessful() {\n\t\tthis.writer.deblockQueue();\n\t}", "public void discardContent() {\n dispose();\n }", "public void close(){\r\n\t\tif (this.fileWriter != null){\r\n\t\t\ttry {\r\n\t\t\t\tthis.fileWriter.flush();\r\n\t\t\t\tthis.fileWriter.close();\r\n\t\t\t\tthis.fileWriter...
[ "0.6282742", "0.59018517", "0.5681156", "0.55712235", "0.556002", "0.5542687", "0.5542027", "0.55271864", "0.5516566", "0.5487935", "0.5472413", "0.54088813", "0.53036493", "0.52704734", "0.52516735", "0.5240701", "0.5240254", "0.522059", "0.5210335", "0.5197865", "0.51671046...
0.64848834
0
Return a writer, for likely reuse unless (1) writer's current file has reached its target size; and (2) there's been no demand for additional writers since the last time a new writerfile was rolledover. In that case, the possiblysuperfluous writer instance is discarded.
public void returnFile(WriterPoolMember writer) throws IOException { synchronized(this) { if(writer.isOversize()) { // maybe retire writer rather than recycle if(lastWriterNeededTime<=lastWriterRolloverTime) { // no timeouts waiting for recycled wr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected synchronized WriterPoolMember makeNewWriterIfAppropriate() {\n\t long now = System.currentTimeMillis();\n\t lastWriterNeededTime = now; \n if(currentActive < maxActive) {\n currentActive++;\n lastWriterRolloverTime = now; \n return makeWriter(); \n }\n...
[ "0.6646529", "0.5765986", "0.5552889", "0.5441869", "0.53329504", "0.52401626", "0.52400136", "0.5127546", "0.5097927", "0.5066057", "0.50259924", "0.50150806", "0.5011888", "0.4999555", "0.4975466", "0.4970929", "0.4970404", "0.49565336", "0.49492204", "0.49363816", "0.49216...
0.64421463
1
Close and discard a writer that experienced a potentiallycorrupting error.
public synchronized void invalidateFile(WriterPoolMember f) throws IOException { try { destroyWriter(f); } catch (Exception e) { // Convert exception. throw new IOException(e.getMessage()); } // It'll have been closed. Rename with an '.invalid' su...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void closeNotSuccessful() {\n\t\tthis.writer.deblockQueue();\n\t}", "public void shutdown() {\n try {\n this.writer.close();\n } catch (IOException e) {\n log.warn(i18n.getString(\"problemCloseOutput\", e), e);\n }\n }", "public void close() throws DukeException {\n try {\n...
[ "0.6158", "0.5676935", "0.5649073", "0.56112087", "0.55446965", "0.5541532", "0.54643", "0.54427385", "0.5373924", "0.53690594", "0.5368794", "0.5368466", "0.5368184", "0.53035647", "0.5273448", "0.5160552", "0.5117514", "0.5096367", "0.5082978", "0.5079656", "0.5053708", "...
0.47415498
60
Returns the atomic integer used to generate serial numbers for files.
public AtomicInteger getSerialNo() { return serialNo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getAtomicNumber() {\n }", "public int nextSerialNumber(){\n serialNumber++;\n return serialNumber;\n }", "public abstract long NewFileNumber();", "public static Integer getTransactionNumber() {\n\t\tRandom r = new Random(System.currentTimeMillis());\n\t\treturn r.nextInt(100000...
[ "0.7231908", "0.7208971", "0.6658329", "0.63911015", "0.63605076", "0.63436496", "0.63436496", "0.63436496", "0.63436496", "0.63436496", "0.63436496", "0.63436496", "0.6294034", "0.6287157", "0.6237252", "0.6194156", "0.61812186", "0.61700994", "0.61528873", "0.61077666", "0....
0.69886076
2
Created by 35429 on 2017/5/23.
public interface IRegModel extends BaseModel { void sendValidateRequest(ValidateRequest validateRequest, OnRequestResponse<ValidateResponse> onRequestResponse); void sendRegRequest(RegRequest regRequest, OnRequestResponse<RegResponse> onRequestResponse); void sendValiadateConfirmRequest(RegRequest regRequ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "public void mo38117a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bic...
[ "0.60417867", "0.60226214", "0.5819325", "0.57995284", "0.57687914", "0.5734733", "0.5734733", "0.5721508", "0.5709466", "0.57054216", "0.5689862", "0.5680437", "0.565743", "0.5646657", "0.56194866", "0.5604376", "0.5599708", "0.5599571", "0.55981046", "0.55958307", "0.558225...
0.0
-1
Created by Mark on 11.11.2016.
public interface UserDao extends EntityDao<User> { User findByLogin(String login); }
{ "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}", "private stendhal() {\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}", "@Override\r...
[ "0.5918705", "0.5791732", "0.5750797", "0.57348233", "0.5624454", "0.5624454", "0.5615384", "0.56021124", "0.5597179", "0.55550164", "0.55420846", "0.55420846", "0.55420846", "0.55420846", "0.55420846", "0.55402434", "0.5529783", "0.55282986", "0.5527451", "0.5520724", "0.551...
0.0
-1
excelHandle.copyExcelFristRun(); excelHandle.copyExcelFristRun(); excelHandle.copyExcelSecondRun(); excelHandle.getNameByPackage(Constant.excel_topapps, Constant.txt_openFail, 17541, 22541); excelHandle.snFindID(Constant.excel_topapps, "C:\\Users\\zhaoguofeng\\Desktop\\temp.txt", 3); excelHandle.snFindID(Constant.excel...
public static void main(String args[]) { excelHandle.genExecl(Constant.excel_topapps, Constant.excel_inexitApk, Constant.txt_inexitApk); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws Exception {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\chromedriver.exe\");\r\n\t\t\t\t\r\n\t\tFile src = new File (\"C:\\\\Users\\\\vkoloyu\\\\test.xlsx\");\r\n\t\t//input stream class\r\n\t\tFileInputStream fis = new FileInputStream (src);\r\n\t\t//...
[ "0.67113525", "0.669173", "0.6549769", "0.6506262", "0.64043516", "0.63417804", "0.63088536", "0.6278991", "0.62440854", "0.6244026", "0.6187298", "0.61755323", "0.6163304", "0.6141837", "0.61234486", "0.61109424", "0.6064126", "0.60113966", "0.6001581", "0.59956205", "0.5991...
0.5757425
50
/ Faz um insert e traz o id que foi gerado pelo banco para o novo elemento
public int insert(IsEntityInDB obj) throws SQLException { if (!obj.getEntityName().equals(entityName)) { throw new IllegalArgumentException("Entity name and entity no match"); } HashMap<String, String> fields = obj.getNotNullFields(); return execUpdate(new SqlBuilder(entityNa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic UUID insert(KomponenNilai komp) {\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\tUUID insertId = (UUID)session.save(komp);\n\t\ttx.commit();\n\t\tsession.flush();\n\t\tsession.close();\n\t\treturn insertId;\n\t}", "public void inser...
[ "0.67818576", "0.67190343", "0.66672605", "0.66605115", "0.65675634", "0.65429085", "0.65168345", "0.6504122", "0.650037", "0.6500019", "0.6474243", "0.6451661", "0.64505154", "0.6420305", "0.64054334", "0.6398164", "0.6392416", "0.63917345", "0.6366918", "0.6357904", "0.6357...
0.0
-1
hier greift das Programm auf die Zeit zu
public void starteSpiel(ActionEvent actionEvent) { System.out.println("Started"); //https://www.programcreek.com/java-api-examples/?api=javafx.animation.AnimationTimer //60 fps new AnimationTimer() { public void handle(long currentNanoTime) { // calculate time...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void softwareResources() {\n\t\tSystem.out.println(\"I am the software implemented through Multiple inheritence in Desktop class\");\r\n\t\t\r\n\t}", "public static void main(String[] args) {\nDesktop desk=new Desktop();\r\ndesk.hardWareResources();\r\ndesk.softwareWareResources();\r\ndesk.deskTopModel();...
[ "0.62530255", "0.62043", "0.6192267", "0.6160606", "0.6030262", "0.60265607", "0.6009727", "0.6006827", "0.59947485", "0.5951877", "0.5948095", "0.5947329", "0.59439206", "0.5934995", "0.5895139", "0.58747536", "0.58705837", "0.5842311", "0.5811407", "0.58088756", "0.5805045"...
0.0
-1
calculate time since last update.
public void handle(long currentNanoTime) { moveBall(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getTsUpdate();", "public long getTimeElapsed() {\r\n\t long now = new Date().getTime();\r\n\t long timePassedSinceLastUpdate = now - this.updatedSimTimeAt;\r\n\t return this.pTrialTime + timePassedSinceLastUpdate;\r\n\t}", "@SuppressWarnings(\"unused\")\n Date getLastUpdateTime();", "pub...
[ "0.7348467", "0.7318762", "0.72762144", "0.72718745", "0.715977", "0.71542615", "0.7066258", "0.70266235", "0.7005183", "0.6935044", "0.6930848", "0.6922743", "0.6922743", "0.69091266", "0.6893019", "0.6880934", "0.6871682", "0.6859732", "0.6859732", "0.6854454", "0.6854454",...
0.0
-1
searchNode() will search a given node in the list
public void searchNode(int value) { int i = 1; boolean flag = false; Node current = head; if (head == null) { System.out.println("List is empty"); return; } while (current != null) { if (current.data == value) { flag = t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node search(String name)\r\n\t{\r\n\t\t// Check to see if the list is empty\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\t// Return null which will be checked for by the method that called it\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// Tree is not empty so use the recursive search method starting at the root referen...
[ "0.7366761", "0.7089835", "0.69922215", "0.6911095", "0.6908256", "0.68637735", "0.67560446", "0.6701215", "0.66746014", "0.66743493", "0.66724324", "0.665408", "0.66259146", "0.66191244", "0.6610446", "0.65976864", "0.6583941", "0.65822166", "0.6566985", "0.65528065", "0.643...
0.703197
2
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 450, 407); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(null); textFieldEmprestimoModelo = new JTextField(); textFieldEmprestimoModelo.setBounds(10, 66, 86, 20); frame.getContentPane()....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r...
[ "0.7769806", "0.75645775", "0.744096", "0.7367939", "0.7366207", "0.7356814", "0.73127955", "0.73093945", "0.72973347", "0.7296576", "0.7276723", "0.72713083", "0.72694886", "0.72694886", "0.72140867", "0.71808106", "0.71675664", "0.7140664", "0.71397793", "0.7125805", "0.710...
0.0
-1
Creates new form userinterface
public userinterface() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "private void setupUI() \n\t{\n\t\t\n\t\tthis.setLayout( new FormLayout() );\n\t\tmyInterfaceContainer = new Composite( this, SWT.NONE );\n\t\tmyInterfaceContainer.setLayoutData( FormDataMaker.makeFullFormData());\n\t\t\n\t\tsetupInterfaceContainer();\n\t}", "public abstract void addEditor...
[ "0.6985103", "0.6791546", "0.6626624", "0.6593573", "0.6509669", "0.64963", "0.6453472", "0.64191437", "0.6297523", "0.6273521", "0.6271116", "0.6255435", "0.6246723", "0.6234565", "0.6221849", "0.62153727", "0.6171354", "0.61447567", "0.6127646", "0.6121766", "0.6106603", ...
0.62813854
9
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() { jLabel3 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jLabel21 = new ja...
{ "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.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.69...
0.0
-1
Generates a list of chromosomes entirely randomly by placing the packages into random bins. No concern for feasibility here.
private int[][] generateInitialPopulation(int binCt, int binSize, int pkgCt, int populationSize) { int[][] population = new int[populationSize][pkgCt]; for (int i = 0; i < populationSize; i++) { for (int j = 0; j < pkgCt; j++) { population[i][j] = rand.nextInt(binCt); } } return population; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Chromosome getRandom();", "private <T> List<Chromosome<T>> breedNewGeneration(List<Chromosome<T>> chromosomes){\n\t\tList<Chromosome<T>> selected = selection.apply(chromosomes);\n\t\tCollections.shuffle(selected);\n\n\t\tList<Chromosome<T>> crossedOver = Lists.newArrayList();\n\t\tfor(int i = 0; i < selected.siz...
[ "0.6535823", "0.6178639", "0.5969693", "0.5967586", "0.5923473", "0.59186554", "0.5910417", "0.57993424", "0.57911056", "0.5654903", "0.56299746", "0.5600306", "0.5558949", "0.55232745", "0.5516197", "0.55152017", "0.55127954", "0.54670894", "0.54657435", "0.5424318", "0.5411...
0.59562445
4
Evaluates fitness of chromosomes, chooses some for breeding (minimization roulette) returns chromosomes that won breeding lottery.
private ArrayList<int[]> selectionRoulette(int[][] chromosomes, float percentToSelect) { ArrayList<int[]> selectedChromosomes = new ArrayList<int[]>(); //sum up fitnesses for population int fitnessSum = 0; for (int[] chromosome : chromosomes) { fitnessSum += getFitness(chromosome); } //minimization pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "<T> GeneticResult<T> train(List<Chromosome<T>> chromosomes){\n\t\tGeneticResult<T> bestFit = maxFitness(chromosomes, 0);\n\t\tfor(int i = 0; i < totalBreedings; i++){\n\t\t\tif(bestFit.getFitness() > sufficientFitness){ break ;}\n\t\t\tchromosomes = breedNewGeneration(chromosomes);\n\t\t\tbestFit = maxFitness(chro...
[ "0.72646266", "0.7148892", "0.69722986", "0.690695", "0.68784004", "0.6656468", "0.6455764", "0.640304", "0.6313098", "0.62769985", "0.6191032", "0.6141752", "0.60353607", "0.60285634", "0.60225713", "0.5935665", "0.58755225", "0.5805986", "0.5785949", "0.57781154", "0.577406...
0.64987624
6
Evaluates the fitness of chromosomes, chooses some for breeding (min rank) returns chromosomes that won breeding lottery.
private ArrayList<int[]> selectionRank(int[][] chromosomes, float percentToSelect) { ArrayList<int[]> selectedChromosomes = new ArrayList<int[]>(); //get fitnesses and ranks of chromosomes, save in array to avoid recalculating int[] fitnesses = new int[chromosomes.length]; ArrayList<Integer> ranks = new Array...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "<T> GeneticResult<T> train(List<Chromosome<T>> chromosomes){\n\t\tGeneticResult<T> bestFit = maxFitness(chromosomes, 0);\n\t\tfor(int i = 0; i < totalBreedings; i++){\n\t\t\tif(bestFit.getFitness() > sufficientFitness){ break ;}\n\t\t\tchromosomes = breedNewGeneration(chromosomes);\n\t\t\tbestFit = maxFitness(chro...
[ "0.70784813", "0.70453215", "0.6809448", "0.6667385", "0.6451361", "0.64040184", "0.6269492", "0.6089563", "0.6059861", "0.6049043", "0.6005405", "0.5995659", "0.58572316", "0.58178294", "0.578063", "0.5764337", "0.5739164", "0.57330596", "0.5715709", "0.56755954", "0.5630394...
0.6307293
6
Crossover of two parents using two random crossover points, crossover takes form P2 | P1 | P2
private int[][] crossoverTwoPoint(int[] parent1, int[] parent2) { int crossPoint1 = rand.nextInt(parent1.length); int crossLength = rand.nextInt(parent1.length + 1 - crossPoint1); int crossPoint2 = crossPoint1 + crossLength; int[] child = new int[parent1.length]; int[] child2 = new int[parent1.length]; for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int[][] crossoverOnePoint(int[] parent1, int[] parent2) {\n\t\tint crossPoint1 = rand.nextInt(parent1.length);\n\n\t\tint[] child = new int[parent1.length];\n\t\tint[] child2 = new int[parent1.length];\n\t\tfor (int i = 0; i < crossPoint1; i++) {\n\t\t\tchild[i] = parent1[i]; //before cross point = p1\n\t\...
[ "0.7779503", "0.76906025", "0.76778495", "0.763815", "0.757135", "0.7545747", "0.7391708", "0.7296285", "0.7281713", "0.7254853", "0.7224446", "0.69773227", "0.6937442", "0.68622065", "0.6843294", "0.68299115", "0.6758075", "0.6738032", "0.66754615", "0.6660488", "0.66495234"...
0.7681136
2
Crossover of two parents using two random crossover points crossover takes form P1|P2
private int[][] crossoverOnePoint(int[] parent1, int[] parent2) { int crossPoint1 = rand.nextInt(parent1.length); int[] child = new int[parent1.length]; int[] child2 = new int[parent1.length]; for (int i = 0; i < crossPoint1; i++) { child[i] = parent1[i]; //before cross point = p1 child2[i] = parent2[i];...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int[][] crossoverTwoPoint(int[] parent1, int[] parent2) {\n\t\tint crossPoint1 = rand.nextInt(parent1.length);\n\t\tint crossLength = rand.nextInt(parent1.length + 1 - crossPoint1);\n\t\tint crossPoint2 = crossPoint1 + crossLength;\n\n\t\tint[] child = new int[parent1.length];\n\t\tint[] child2 = new int[p...
[ "0.7663752", "0.7611329", "0.75338024", "0.7467766", "0.74277896", "0.72748035", "0.7245263", "0.72424066", "0.7203969", "0.7118722", "0.69917864", "0.6925289", "0.6800968", "0.6798136", "0.6745449", "0.6713084", "0.66552955", "0.6651118", "0.66153365", "0.65889496", "0.65445...
0.77018946
0
Mutation Chooses two elements in different bins and swaps them (acts like partition problem)
private int[] mutationPairwiseExchange(int[] mutant) { int pairPoint1 = rand.nextInt(mutant.length); int pairPoint2 = pairPoint1; while (mutant[pairPoint2] == mutant[pairPoint1]) { pairPoint2 = rand.nextInt(mutant.length); //find element in different bucket } int temp = mutant[pairPoint1]; mutant[pairPoi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int[] mutationSingleMove(int[] mutant) {\n\t\tint pairPoint1 = rand.nextInt(mutant.length);\n\t\tint newBin = mutant[pairPoint1];\n\t\twhile (newBin == mutant[pairPoint1]) {\n\t\t\tnewBin = rand.nextInt(binCount);\n\t\t}\n\t\tmutant[pairPoint1] = newBin; //swap to a different bucket\n\t\treturn mutant;\n\t...
[ "0.6276171", "0.61506236", "0.6039928", "0.60033506", "0.5993983", "0.5925314", "0.5895175", "0.5889789", "0.5868158", "0.5861998", "0.58612263", "0.5820398", "0.579924", "0.57925636", "0.57837105", "0.578168", "0.5772545", "0.57504123", "0.57410014", "0.57207423", "0.5700746...
0.64750075
0
Mutation chooses one element, places it in a different bin. Behaves like a partition problem.
private int[] mutationSingleMove(int[] mutant) { int pairPoint1 = rand.nextInt(mutant.length); int newBin = mutant[pairPoint1]; while (newBin == mutant[pairPoint1]) { newBin = rand.nextInt(binCount); } mutant[pairPoint1] = newBin; //swap to a different bucket return mutant; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Chromosome doInsertionMutation(){\n for(int i = 0; i < PopulationConfiguration.MUTATION_ATTEMPTS; i++){\n ArrayList<Boolean> newSelection = copyBoolArrayList(this.knapsackSelection);\n\n int allele1 = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size());\n int ...
[ "0.5984555", "0.58412445", "0.58206475", "0.5630941", "0.5622716", "0.55133855", "0.5476594", "0.5436747", "0.5363655", "0.5354628", "0.5237948", "0.5232342", "0.5230871", "0.5215839", "0.507533", "0.50684327", "0.50395083", "0.50097716", "0.4984164", "0.49729285", "0.4965819...
0.6917091
0
/ GA HELPER FUNCTIONS See top comment on chromosome structure, this tries to honor packing order if possible. If bin is full, bestfirst packing gets used. This method also contains a mutation operation bin dumping.
private int[] bestFitModified(int[] chromosome) { int[] bins = new int[binCount]; ArrayList<Integer> cannotPackList = new ArrayList<Integer>(); //honor chromosome listing when possible for (int i = 0; i < chromosome.length; i++) { //if this bin isnt full & won't be after placement & this chrom hasnt gone of...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testChromosome() {\n\n Assert.assertTrue(this.chromB1.getGenes().length == 4);\n Assert.assertTrue(this.chromB1.getSize() == 4);\n Assert.assertTrue(this.chromB1.getGenes()[0] == 1);\n Assert.assertTrue(this.chromB1.getGenes()[1] == 2);\n Assert.assertTrue(...
[ "0.50017667", "0.4864148", "0.4864148", "0.4864148", "0.4864148", "0.4864148", "0.4864148", "0.4836785", "0.48315436", "0.48188946", "0.4776412", "0.47135487", "0.46944556", "0.4693256", "0.4680497", "0.46632528", "0.46562842", "0.46428186", "0.46224427", "0.46117812", "0.459...
0.64455414
0
Inserts a set of chromosomes into a given population by removing the worst members and replacing them with children.
private int[][] replaceLowestFitness(int[][] population, ArrayList<int[]> replacers) { float[] fitnesses = new float[population.length]; for (int i = 0; i < population.length; i++) { fitnesses[i] = getFitness(population[i]); } //find worst chromosomes around ArrayList<Integer> worstFitnessesIndexes = new ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Set<Chromosome> mutatePopulation(Set<Chromosome> population, double mutationRate) {\n Set<Chromosome> mutatedChromosomes = new HashSet<>(population);\n\n for (Chromosome path : mutatedChromosomes) {\n double mutationProbability = ThreadLocalRandom.current().nextDouble();\n ...
[ "0.6146999", "0.58816326", "0.58127826", "0.5765926", "0.56164277", "0.55463684", "0.5544384", "0.553412", "0.55154556", "0.54993886", "0.5432507", "0.5423959", "0.5408188", "0.54073375", "0.53935874", "0.53804004", "0.5363637", "0.535167", "0.5338305", "0.5335754", "0.528757...
0.54173964
12
Checks population for elite chromosome, or returns old elite if there are no challengers.
private int[] getElite(int[][] population) { float[] fitnesses = new float[population.length]; for (int i = 0; i < population.length; i++) { fitnesses[i] = getFitness(population[i]); if (fitnesses[i] < eliteFitness) { System.out.println(getFitness(eliteChromosome) + " old" + getFitness(population[i]) + "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Chromosome> getEliteChromosomes() {\n // SortedMap instead of HashMap? Duplicate key values? \n ArrayList<Chromosome> elites = new ArrayList<Chromosome>();\n// ArrayList<Chromosome> sortedList = this.getChromosomesSorted();\n boolean firstRun = true;\n\n //this.sor...
[ "0.643496", "0.55074614", "0.5360035", "0.53068745", "0.5282502", "0.52750117", "0.5155774", "0.5133127", "0.5069936", "0.5012994", "0.49698284", "0.49678403", "0.4962225", "0.49604166", "0.49377468", "0.4937097", "0.492494", "0.492494", "0.4905841", "0.4886825", "0.48792914"...
0.74799204
0
Finds fitness of a chromosome the number of bins (minimization). All chromosomes are fixed if infeasible using sideeffects.
private Integer getFitness(int[] chromosome) { int[] bins = new int[binCount]; //list of found bins for (int binIndex = 0; binIndex < bins.length; binIndex++) { //initialize list of bins to unfound bins[binIndex] = -1; } int[] newChrom = bestFitModified(chromosome.clone()); //fix if infeasible if (newChrom...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void getFitness() {\n\t\tint popSize = population.size();\n\t\tChromosome thisChromo = null;\n\t\tdouble bestScore = 0;\n\t\tdouble worstScore = 0;\n\n\t\t// The worst score would be the one with the highest energy, best would be\n\t\t// lowest.\n\t\tworstScore = population.get(maximum()).conflicts(...
[ "0.69694364", "0.6445921", "0.64193285", "0.6317899", "0.6306063", "0.62477994", "0.61055976", "0.60199857", "0.59864867", "0.5945905", "0.5935981", "0.59241927", "0.5892739", "0.58763194", "0.5864268", "0.5852424", "0.57979894", "0.578097", "0.5682565", "0.5674979", "0.56020...
0.7771416
0
If a chromosome cannot be fixed in a reasonable time we mark it as unfit by finding how much it overfills each bin.
private int totalInfeasibility(int[] chromosome) { int infeasibility = 0; int[] bins = new int[binCount]; for (int i = 0; i < chromosome.length; i++) { if (chromosome[i] >= bins.length) { infeasibility += 10; continue; } try { bins[chromosome[i]] += packageWeights[i]; //put package into bin ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int[] bestFitModified(int[] chromosome) {\n\t\tint[] bins = new int[binCount];\n\t\tArrayList<Integer> cannotPackList = new ArrayList<Integer>();\n\n\t\t//honor chromosome listing when possible\n\t\tfor (int i = 0; i < chromosome.length; i++) {\n\t\t\t//if this bin isnt full & won't be after placement & th...
[ "0.6506064", "0.61831903", "0.6037479", "0.56342876", "0.5477375", "0.54755956", "0.5368789", "0.5271853", "0.5189321", "0.5141475", "0.5099168", "0.5077445", "0.50527555", "0.50152594", "0.5008631", "0.4996084", "0.49922457", "0.49851114", "0.49623653", "0.49560118", "0.4955...
0.56882006
3
Tests to see if problem can be solved with half as many bins
private boolean canReduceBins() { int oldBinCount = binCount; boolean canReduce = false; binCount = binCount / 2; int[] chromosome = eliteChromosome.clone(); if (getFitness(chromosome) <= binCount) canReduce = true; else canReduce = false; binCount = oldBinCount; //no side effects return canReduc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean subGridCheck() {\n\t\tint sqRt = (int)Math.sqrt(dimension);\n\t\tfor(int i = 0; i < sqRt; i++) {\n\t\t\tint increment = i * sqRt;\n\t\t\tfor(int val = 1; val <= dimension; val++) {\n\t\t\t\tint valCounter = 0;\n\t\t\t\tfor(int row = 0 + increment; row < sqRt + increment; row++) {\n\t\t\t\t\tfor(int...
[ "0.6409288", "0.6170014", "0.61052614", "0.59527546", "0.5917247", "0.58839005", "0.58246064", "0.57843906", "0.57798076", "0.57792246", "0.5757097", "0.5710262", "0.57077825", "0.5679809", "0.5658625", "0.5650042", "0.5649296", "0.563225", "0.56265694", "0.56140435", "0.5589...
0.66722697
0
/ SA HELPER FUNCTIONS SA Fitness. SA does not repair infeasibles, so we try to take infeasibility into account here.
public int h(int[] solution) { int[] bins = new int[binCount]; int nonEmptyBins = 0; int overFilledBins = 0; int overFillWeight = 0; for (int i = 0; i < solution.length; i++) { int bin = solution[i]; int weight = packageWeights[i]; bins[bin] += weight; } for (int i = 0; i < bins.length; i++) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void computeSatisfaction() {\n\n }", "private void findSmallestCost() {\n int best = 0;\n fx = funFitness[0];\n for (int i = 1; i < population; i++) {\n if (funFitness[i] < fx) {\n fx = funFitness[i];\n best = i;\n }\n ...
[ "0.665907", "0.65339607", "0.6525925", "0.651297", "0.64246744", "0.63040453", "0.62073416", "0.6146668", "0.6140747", "0.6131258", "0.612247", "0.60897285", "0.6070355", "0.6062654", "0.6019451", "0.59659135", "0.59429836", "0.59384537", "0.58902526", "0.5869509", "0.5868376...
0.0
-1
RPEntity2DView Get the full directional animation tile set for this entity.
@Override protected Sprite getAnimationSprite() { final SpriteStore store = SpriteStore.get(); ZoneInfo info = ZoneInfo.get(); Sprite sprite; try { final RPEntity npc = entity; final int code = npc.getOutfit(); final String strcode = npc.getExtOutfit(); final OutfitColor color = OutfitColor.get(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Animation<TextureRegion> getHeroWalkRight() {\n return heroWalkRight;\n }", "public abstract TiledMapTileSet getTileSet();", "public WorldToScreenTransform getWorldToScreenTransform() { return this; }", "public Projector getVerticalProjector() {\n return (_tile!=null)?_tile.getVerticalPro...
[ "0.5556786", "0.549701", "0.5194212", "0.5151242", "0.5131139", "0.50964403", "0.5092022", "0.50833064", "0.5046017", "0.5035386", "0.50278413", "0.4995077", "0.4995077", "0.49932295", "0.4983873", "0.4974328", "0.49530393", "0.49523446", "0.4902118", "0.4892647", "0.48922697...
0.44508094
77
Get the appropriate idea sprite.
private Sprite getIdeaSprite() { final String idea = entity.getIdea(); if (idea == null) { return null; } return SpriteStore.get().getSprite( "data/sprites/ideas/" + idea + ".png"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Image sprite(){\n\t\treturn (face);\n\t}", "protected abstract void chooseSprite();", "public Sprite getSprite(String ref) {\n\t\tif (ref.equals(\"boss\")) {\n\t\t\treturn sprite.get(\"bossSprite\");\n\t\t} else if (ref.equals(\"boss_bullet\")) {\n\t\t\treturn sprite.get(\"bossBulletSprite\");\n\t\t} el...
[ "0.69453824", "0.6914971", "0.68888724", "0.65970856", "0.65732825", "0.65651006", "0.6540106", "0.6539612", "0.6477449", "0.64724755", "0.64631975", "0.64297134", "0.6388656", "0.6354086", "0.63505995", "0.6337815", "0.6287626", "0.6284226", "0.6265833", "0.6265833", "0.6247...
0.83388937
0
Gets the mouse cursor image to use for this entity.
@Override public StendhalCursor getCursor() { return StendhalCursor.LOOK; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Cursor getMouseCursor();", "public Cursor getCursor() {\n Cursor cursor = super.getCursor();\n\n\t\tif ( cursor == Cursor.getPredefinedCursor( Cursor.DEFAULT_CURSOR) && isEnabled()) {\n\t\t\tcursor = Cursor.getPredefinedCursor( Cursor.HAND_CURSOR);\n\t\t}\n\t\t\n\t\treturn cursor;\n }",...
[ "0.70808357", "0.6363036", "0.61057", "0.60541093", "0.5953222", "0.5909639", "0.59033734", "0.5892197", "0.5808079", "0.57936937", "0.57639027", "0.57538724", "0.57457125", "0.5736615", "0.57256424", "0.57067376", "0.5688645", "0.56816787", "0.56808066", "0.567282", "0.56492...
0.52791524
75
TODO submit data to server... Intent i = new Intent(DetailPembayaranActivity.this, KeranjangActivity.class); Bundle b = new Bundle(); b.putString("judul", "00"); i.putExtras(b); startActivity(i);
@OnClick(R.id.btnKembali) public void SaatKembali() { finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClick(View view){\n Intent toDetailActivity = new Intent (view.getContext(), Detail.class);\n toDetailActivity.putExtra(\"nama\", nama.getText().toString());\n toDetailActivity.putExtra(\"gender\",avatarCode);\n toDetailActivity.putExtra(\"pekerjaan\", job....
[ "0.7286748", "0.72168624", "0.71836686", "0.69556046", "0.69471246", "0.69391906", "0.69212973", "0.6902614", "0.69003224", "0.689977", "0.6848619", "0.6813481", "0.6813319", "0.68126583", "0.6811442", "0.67929983", "0.6778342", "0.6769228", "0.6757116", "0.67367196", "0.6730...
0.0
-1
memunculkan toast + value Spinner yang dipilih (diambil dari adapter)
@Override public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) { cityId = aKodeKota[i]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addListenerOnButton() {\n\n isempleado = (Spinner) findViewById(R.id.spinnerWifi);\n spinner2 = (Spinner) findViewById(R.id.spinner2);\n\n\n Toast.makeText(getApplicationContext(), \"Spinner 1 \"+String.valueOf(isempleado.getSelectedItem()) +\n \"Spinner 2 : \"+ Stri...
[ "0.6732284", "0.66941786", "0.66680497", "0.65211445", "0.6517903", "0.64896053", "0.64880055", "0.64608663", "0.64073616", "0.640167", "0.6340691", "0.633418", "0.6302236", "0.62692714", "0.6252594", "0.6239709", "0.6220362", "0.6205768", "0.6204942", "0.6200814", "0.6197641...
0.0
-1
memunculkan toast + value Spinner yang dipilih (diambil dari adapter)
@Override public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) { cityId = aKodeKota[i]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addListenerOnButton() {\n\n isempleado = (Spinner) findViewById(R.id.spinnerWifi);\n spinner2 = (Spinner) findViewById(R.id.spinner2);\n\n\n Toast.makeText(getApplicationContext(), \"Spinner 1 \"+String.valueOf(isempleado.getSelectedItem()) +\n \"Spinner 2 : \"+ Stri...
[ "0.6730361", "0.6692434", "0.6667208", "0.65195775", "0.65164614", "0.6488976", "0.6487494", "0.645936", "0.640682", "0.6403136", "0.63396645", "0.6334037", "0.63010114", "0.62687397", "0.6251632", "0.62385976", "0.6220892", "0.62048125", "0.6204007", "0.6199511", "0.6195941"...
0.0
-1
creates a new BiNode, length must be set afterwards. constructor does not create a DOMnode
public BiNode(final int co, final String ns, final String n, final Attributes a) { this.childOffset = co; this.namespaceURI = ns; this.eName = n; this.attrs = a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BinaryNode() {\n\t\tthis(null);\t\t\t// Call next constructor\n\t}", "public static Node buildBNode(final String id) {\n\t\treturn NodeFactory.createAnon(AnonId.create(id));\n\t}", "private BTNode createNode() {\n BTNode btNode;\n btNode = new <DataPair>BTNode ();\n btNode.mIsLeaf =...
[ "0.6485013", "0.62070805", "0.6132087", "0.61247605", "0.6048384", "0.6024496", "0.5970121", "0.5962074", "0.5925226", "0.58873993", "0.5880892", "0.5830755", "0.5828121", "0.58014935", "0.5790016", "0.57891715", "0.5780035", "0.5780035", "0.5780035", "0.5780035", "0.577514",...
0.621346
1
get the name of the node (tagname).
public String getNodeName() { final String ret; if (this.eName == null) { if (this.getNode() == null) { ret = null; } else { ret = this.getNode().getNodeName(); } } else { ret = this.eName; } return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTagName() \n {\n return _node == null ? null : _node.getName().getLocalPart();\n }", "public final String name() {\n return node.getNodeName();\n }", "public String getName() {\n return element.getNodeName();\n }", "public final String getTagName() {\n re...
[ "0.8161503", "0.80850124", "0.7890728", "0.77633286", "0.75357974", "0.7328048", "0.72361356", "0.7226093", "0.7221165", "0.71558696", "0.71149117", "0.71149117", "0.71149117", "0.71040523", "0.7002314", "0.6994721", "0.6941785", "0.6912084", "0.68826854", "0.6882294", "0.686...
0.6925714
17
add a child to this node, if node has already a child, forward to child.
public void addChild(final IBiNode c) { // 1st child if (this.child == null) { this.setChild(c); } else { // 2nd - nth child this.child.addSibling(c); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addChild(Node child)\n\t{\n\t\tchild.parent = this;\n\t\t//if (!children.contains(child))\n\t\t//{\t\n\t\tchildren.add(child);\n\t\t//children.get(children.indexOf(child)-1).setBro(child);\n\t\t//}\n\t}", "public void addChild(Node child){\n children.add(child);\n }", "public void addChil...
[ "0.7880707", "0.7673854", "0.7385615", "0.7350192", "0.734885", "0.7263794", "0.7226588", "0.71872973", "0.7132268", "0.71170294", "0.7037102", "0.7011188", "0.6972095", "0.6947975", "0.6899569", "0.68884504", "0.68884504", "0.68884504", "0.68884504", "0.68884504", "0.6888450...
0.6388884
35
get the child of the node.
public IBiNode getChild() { return this.child; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node getChild();", "public N getChild() {\n\t\tcheckRep();\n\t\treturn this.child;\n\t}", "public child getChild() {\n return this.child;\n }", "@Pure\n\tpublic TreeNode<?, ?> getChild() {\n\t\treturn this.child;\n\t}", "Node getChild(String childID) throws IllegalAccessException;", "pub...
[ "0.8088309", "0.77294564", "0.74550414", "0.74462235", "0.7227042", "0.7213356", "0.7212879", "0.70811135", "0.6987439", "0.6914412", "0.6858815", "0.6846831", "0.6825616", "0.6726408", "0.669017", "0.66296905", "0.6623513", "0.6610381", "0.6602525", "0.66019094", "0.655167",...
0.7583212
2
set child for this node.
public void setChild(final IBiNode c) { if (c != null) { c.setPrevious(this); } this.child = c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setChild(String child) {\n this.child = child;\n }", "@Override\n\tpublic void setChild(Knoten child) {\n\n\t}", "public final XmlAttributeInfo setChild (int child)\r\n {\r\n _value.setChild(child);\r\n return this;\r\n }", "public void setChild(int position, Node n) {\r...
[ "0.74733996", "0.72773", "0.6958668", "0.65741897", "0.63371146", "0.6282134", "0.6241083", "0.620601", "0.6182767", "0.6177626", "0.61431867", "0.6143166", "0.61329454", "0.6112557", "0.6082826", "0.60638976", "0.6008301", "0.5976364", "0.59514", "0.5930858", "0.59294313", ...
0.68406415
3
get the type of node.
public BiType getType() { return BiType.NODE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "NodeType getType();", "public NodeType getType() {\n return type;\n }", "public static String getNodeType() {\n\t\treturn NODE_TYPE;\n\t}", "public abstract AbstractNodeType getType();", "@NonNull NodeType<?> getType();", "public ASTType getTypeNode() {\n return (ASTType) getChild(0);\n ...
[ "0.83824116", "0.80093944", "0.7957543", "0.7904091", "0.7874124", "0.7858364", "0.78483355", "0.78087693", "0.7698615", "0.7563219", "0.7521271", "0.7478327", "0.7474336", "0.7420546", "0.7392698", "0.73886544", "0.7383956", "0.73561615", "0.73345554", "0.7292813", "0.724580...
0.742662
13
set the node as invalid, remove all children. replace node in DOMtree with a red ''
private void makeInvalidNode(final Document doc) { Element element; // create INVALID-textnode in DOM tree element = doc.createElement("mi"); element.setAttribute("mathcolor", "#F00"); element.appendChild(doc.createTextNode("#")); if (this.getNode().getParentNode() == n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void unhilitNode()\n {\n\tif (hilited==null) return;\n\tGraphics g = getGraphics();\n\tsetRenderColor(g,Color.black);\n\trenderCircle(g,hilited.x,hilited.y,hilited.diameter+4);\n\thilited = null;\n }", "public void clearError() {\n _hasError = false;\n _highlight = HighlightMode.NORMA...
[ "0.61553293", "0.6026618", "0.5933879", "0.56978476", "0.56831294", "0.5645256", "0.5626953", "0.5626049", "0.5623175", "0.5621088", "0.56143117", "0.55602974", "0.55515075", "0.55513", "0.5521457", "0.5518875", "0.55128723", "0.5483649", "0.5483429", "0.54424703", "0.5436913...
0.7593623
0
try to parse the text, if valid replace this node with parsed tree. else replace this node with invalid mark ''
private void parseAndReplace(final BiTree biTree, final String text, final int length) throws ReparseException, NonIncrementalElementException { BiTree treePart; Node domValid; BiNode parent; final boolean invalidSibling; final boolean invalidPrevious; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void makeInvalidNode(final Document doc) {\n Element element;\n\n // create INVALID-textnode in DOM tree\n element = doc.createElement(\"mi\");\n element.setAttribute(\"mathcolor\", \"#F00\");\n element.appendChild(doc.createTextNode(\"#\"));\n\n if (this.getNode()...
[ "0.5506258", "0.53521407", "0.5280539", "0.5227032", "0.5182858", "0.51599205", "0.5115505", "0.5059286", "0.50578284", "0.50454247", "0.50373566", "0.49917266", "0.49575436", "0.4953463", "0.49424598", "0.49359614", "0.490726", "0.4898971", "0.48933518", "0.48910472", "0.487...
0.6810505
0
calculate the length of all children.
public int getLengthOfChildren() { int length = 0; IBiNode childTmp; if (this.child != null) { // length of first child length += this.child.getLength(); childTmp = this.child.getSibling(); while (childTmp != null) { // length of ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int childrenSize();", "public int childrenSize()\r\n\t{\r\n\t\treturn this.children.size();\r\n\t}", "@Override\n public final int size() {\n return children.size();\n }", "public int countChildren() {\n return this.children.size();\n }", "@Override\n\tpublic int size() {\n\t\tint s = valC...
[ "0.8119635", "0.7875079", "0.7767314", "0.75724214", "0.7540042", "0.7534535", "0.75333464", "0.75192004", "0.7434269", "0.7416618", "0.74016625", "0.7394214", "0.73626894", "0.736209", "0.73576665", "0.7356843", "0.73379576", "0.7335044", "0.7241104", "0.7208774", "0.7144295...
0.8167076
0
create a DOMtree from node and all children (recursive).
public Node createDOMSubtree(final Document doc) { int i; String aName; Node childNode; Element element; IBiNode tmp; element = doc.createElementNS(this.namespaceURI, this.eName); // add attributes if (this.attrs != null) { for (i = 0; i < th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createTree() {\n Node<String> nodeB = new Node<String>(\"B\", null, null);\n Node<String> nodeC = new Node<String>(\"C\", null, null);\n Node<String> nodeD = new Node<String>(\"D\", null, null);\n Node<String> nodeE = new Node<String>(\"E\", null, null);\n Node<String...
[ "0.6184931", "0.59695494", "0.5966105", "0.5861369", "0.5858697", "0.58441556", "0.5748024", "0.5700039", "0.56777966", "0.5676726", "0.5672007", "0.56290334", "0.56283396", "0.5597781", "0.55926716", "0.55899805", "0.55898046", "0.55680436", "0.55585396", "0.5520924", "0.550...
0.5611194
13
Created by Administrator on 2016/8/17.
@Singleton @Component(modules = {ApplicationModule.class, ApiModule.class}) public interface ApplicationComponent { Context getContext(); Bus getBus(); TRApi getTRApi(); void inject(ZhihuApplication zhihuApplication); void inject(BaseNewActivity baseNewActivity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@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\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Ov...
[ "0.6260884", "0.61520237", "0.599272", "0.59604377", "0.5932152", "0.5916378", "0.59124744", "0.58399767", "0.58281064", "0.58281064", "0.5821685", "0.5820737", "0.5807117", "0.5807117", "0.57874644", "0.57770795", "0.5767323", "0.5745536", "0.5738269", "0.5728603", "0.572511...
0.0
-1
Send event message with arbitrary message header
boolean sendEventMessage(Event<T> event, Map<String, Object> messageHeaderMap) { T entity = event.getData(); validateEventEntity(entity); String entityId = getEntityIdAsString(entity); String eventInfo = String.format("%s %s(id=%s)", event.getAction(), entityType, entityId); log...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendEvent(Event event);", "public void addMessage(EventMessage message) {\n }", "public void send(EventStore es, Template template);", "@Override\n public void publish(Event<? extends Enum, ?> event) {\n byte[] body = null;\n if (null == event) {\n log.error(\"C...
[ "0.6640213", "0.6194478", "0.61526847", "0.6136581", "0.61360675", "0.60386807", "0.60233134", "0.600551", "0.5972319", "0.5952223", "0.59409493", "0.5937418", "0.5937418", "0.5927079", "0.58645123", "0.58231884", "0.57935447", "0.5780412", "0.57583624", "0.5741695", "0.57122...
0.6158756
2
Manipulates the map once available. This callback is triggered when the map is ready to be used. This is where we can add markers or lines, add listeners or move the camera. In this case, we just add a marker near Sydney, Australia. If Google Play services is not installed on the device, the user will be prompted to in...
@Override public void onMapReady(GoogleMap googleMap) { mMap = googleMap; TypedValue tv = new TypedValue(); // move my location button down under toolbar if (getActivity().getTheme().resolveAttribute(R.attr.actionBarSize, tv, true)) { int actionBarHeight = TypedVa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onMapReady(GoogleMap googleMap) {\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n double lat, lng;\n try {\n List<Address> addresses = geoCoder.getFromLocationName(\"Western Sydney Paramatta, NSW\", 5);\n ...
[ "0.818836", "0.80435586", "0.8037214", "0.80335456", "0.79989773", "0.7977776", "0.795855", "0.7958179", "0.79548806", "0.7943136", "0.79374355", "0.7930872", "0.7915821", "0.79054713", "0.7890076", "0.78858536", "0.78858536", "0.78858536", "0.78858536", "0.7878132", "0.78455...
0.0
-1
Got last known location. In some rare situations this can be null.
@Override public void onSuccess(Location location) { if (location != null) { LatLng myLocation = new LatLng(location.getLatitude(), location.getLongitude()); mMap.animateCamera(CameraUpdateFactory.newLatL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Location getLastKnownLocation(){\n \t \tLocation loc = LocationUtil.getBestLastKnowLocation(ctx);\t\n \t \tStatus.getCurrentStatus().setLocation(loc);\t\n \t \treturn loc;\n \t}", "public Location getLastLocation() {\n\t\tif (mLocationClient.isConnected()) {\n\t\t\treturn mLocationClient.getLast...
[ "0.8298965", "0.79684794", "0.78015167", "0.76988566", "0.76825714", "0.7584642", "0.75693685", "0.75532275", "0.75360984", "0.7416619", "0.7394422", "0.7291992", "0.7217621", "0.72050077", "0.7204059", "0.72032505", "0.71803224", "0.7136636", "0.7133068", "0.7099436", "0.709...
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof SubCategories)) { return false; } SubCategories other = (SubCategories) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.64778...
0.0
-1
Instantiates a new invalid login credentials exception.
public InvalidLoginCredentialsException( final LoginCredentials loginCredentials) { super(); this.loginCredentials = loginCredentials; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LoginUnauthorizedException() {\r\n }", "public AuthenticationException() {\n }", "public InvalidCredentialsException(String message, Throwable cause) {\n/* 64 */ super(message, cause);\n/* */ }", "public CredentialManagerException() {\n\t\tsuper();\n\t}", "public LoginException(String e...
[ "0.73339176", "0.69022906", "0.6777771", "0.6589865", "0.65068895", "0.64897573", "0.64467", "0.6381281", "0.6343864", "0.6227447", "0.61274433", "0.59226376", "0.5916097", "0.5913293", "0.5875525", "0.58588755", "0.583085", "0.5810974", "0.577908", "0.57424647", "0.57033587"...
0.6972389
1
Gets the login credentials.
public LoginCredentials getLoginCredentials() { return this.loginCredentials; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCredentials();", "private String[] getCredentials() {\n String[] cred = new String[2];\n System.out.print(\"Username: \");\n cred[0] = sc.nextLine();\n System.out.print(\"Password: \");\n cred[1] = sc.nextLine();\n return cred;\n }", "public LoginCredentials getGlobalCredent...
[ "0.73817265", "0.73052764", "0.6923846", "0.68046707", "0.68040234", "0.6712264", "0.6699981", "0.6697242", "0.664334", "0.6599602", "0.65592575", "0.6546151", "0.6512396", "0.6508838", "0.6507901", "0.649907", "0.64930624", "0.64930624", "0.6455343", "0.6372645", "0.6355589"...
0.7825897
0
TODO Autogenerated method stub
public static void main(String[] args) { List<String> t1 = Arrays.asList("John", "johnsmith@mail.com", "john00@mail.com"); List<String> t2 = Arrays.asList("John", "johnnybravo@mail.com"); List<String> t3 = Arrays.asList("John", "john_newyork@mail.com","johnsmith@mail.com"); List<String> t4 = Arrays.asList("Mary...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
Bes method Time complexity is sum of AilogAi where Ai is each account and this time is for sorting. Since union by rank and path compression we will have amortized time complexity
public List<List<String>> accountsMerge(List<List<String>> accounts) { List<Account> accts = new ArrayList<>(); Map<String, Account> mapMailToAccount = new HashMap<>(); for (List<String> account : accounts) { String name = account.get(0); Account acct = new Account(name); accts.add(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void Union( int x, int y){\n\n int i = root(x);\n int j = root(y);\n if (i == j) return;\n if (rank[i] > rank[j]) { id[j] = i; rank[i] += rank[j]; }\n else { id[i] = j; rank[j] += rank[i]; }\n }", "public static ArrayList<ArrayList<Integer>> fourSum(ArrayList<Integer> a, int...
[ "0.55294716", "0.5450634", "0.5412193", "0.53228116", "0.5302135", "0.5279392", "0.52654606", "0.5264268", "0.5260891", "0.52026206", "0.51510733", "0.5131186", "0.51096576", "0.51056993", "0.5104873", "0.50979143", "0.5089511", "0.5069052", "0.50664854", "0.50182414", "0.500...
0.0
-1
private static HashMap frequencyDoc = new HashMap();
@Override public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException { String filename = ((FileSplit) context.getInputSplit()) .getPath().getName(); if (!value.toString().isEmpty()) { String line = value.toString().toLowerCase().replaceAll(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void printTable(int numberOfDocs) {\n \n Gson gs = new Gson();\n String json = gs.toJson(wor);\n // System.out.println(json);\n \n List<String> queryWords = new ArrayList();\n //to test it for other query word you can change the following two words\n ...
[ "0.70611113", "0.6810253", "0.6602351", "0.6570665", "0.6453136", "0.63392675", "0.6338879", "0.63270146", "0.62483954", "0.6245922", "0.62302953", "0.6213969", "0.6181607", "0.6165074", "0.61567813", "0.6156436", "0.6148999", "0.61466086", "0.61222136", "0.61196184", "0.6107...
0.0
-1
Constructor for the reader
public InstanceReader(String filename) throws FileNotFoundException{ this.reader = new FileReader(filename); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Reader(){\n\n\t}", "public MsxReader ( ) {\r\n\t\tsuper();\r\n\t}", "public StreamReader() {}", "public ConcatReader(){\r\n\t\t// Empty Constructor\r\n\t}", "private TextReader() {\n // There are no fields required to initialize\n }", "public Tass4Reader ( ) {\r\n\t\tsuper();\r\n\t}", ...
[ "0.8125266", "0.76559496", "0.73486865", "0.7308103", "0.7224894", "0.7118898", "0.70668215", "0.7044846", "0.7036676", "0.68548864", "0.68392926", "0.68376213", "0.67869186", "0.6776477", "0.6763913", "0.6709829", "0.66637105", "0.6603038", "0.65970546", "0.6594335", "0.6590...
0.64136887
31
This function reads instances from file
public ArrayList<Instance> read() throws IOException{ ArrayList<Instance> instances; instances = new ArrayList<>(); String s; String[] c; Instance i; while(reader.ready()){ s = getInstanceFromFile(); i = new Instance(); c = s.split(",")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InstanceReader(String filename) throws FileNotFoundException{\n this.reader = new FileReader(filename);\n }", "private String getInstanceFromFile() throws IOException{\n StringBuilder instance = new StringBuilder();\n boolean over = false;\n while(!over){\n char c...
[ "0.69525427", "0.6574856", "0.6558358", "0.65422916", "0.64511913", "0.6435313", "0.6410713", "0.6375255", "0.6300314", "0.6256028", "0.62055993", "0.6183111", "0.61573577", "0.61543125", "0.6121855", "0.6121788", "0.6094846", "0.60749805", "0.607453", "0.60640097", "0.604963...
0.73942804
0
This function reads a single instance, and thus a single line, from file
private String getInstanceFromFile() throws IOException{ StringBuilder instance = new StringBuilder(); boolean over = false; while(!over){ char c = (char) reader.read(); if(c == '\n') over = true; else instance.append(c); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "axiom Object readLine(Object BufferedReader(FileReaderr f)) {\n\treturn f.get(0);\n }", "public Site readone() {\r\n\t\tSite s;\r\n\r\n\t\ts = new Site();\r\n\t\ts.refcnt = 0;\r\n\t\ts.sitenbr = siteidx;\r\n\t\tsiteidx += 1;\r\n\r\n\t\tif (in.hasNextLine()) {\r\n\t\t\tString line = in.nextLine();\r\n\t\t\tStr...
[ "0.708594", "0.6162892", "0.61428934", "0.59305316", "0.59226453", "0.5912085", "0.58915687", "0.5831551", "0.5819366", "0.57927936", "0.57459193", "0.5741549", "0.57317734", "0.57237536", "0.57206553", "0.57149017", "0.57089853", "0.5699932", "0.56990355", "0.5667939", "0.56...
0.65069306
1
int count = 0;
@Override public boolean isStopNode(TraversalPosition tp) { // System.out.println( "\nVisited nodes: " + count++); Stop currentStop = cache.get(tp.currentNode()); if (currentStop.getStation().equals(dest)) { return true; } else if ((currentStop.getTime() > stopTime)) return true; else retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int count();", "int count();", "int count();", "int count();", "int count();", "int count();", "public void incrementCount(){\n count+=1;\n }", "public long count() {\n/* 154 */ return this.count;\n/* */ }", "int fillCount();", "long count();", "long count();", "long count...
[ "0.7692074", "0.7692074", "0.7692074", "0.7692074", "0.7692074", "0.7692074", "0.764066", "0.7547732", "0.73908883", "0.7390219", "0.7390219", "0.7390219", "0.7390219", "0.7390219", "0.7390219", "0.7390219", "0.73831296", "0.73710144", "0.73618925", "0.73498636", "0.7341898",...
0.0
-1
Creates a notification object from a NOTIFICATION_TABLE row.
public static Notification fromDatabaseCursor(NotificationManager notifier, Cursor cursor) { Notification notification = new Notification(); notification.notifier = notifier; notification.nid = cursor.getInt(cursor.getColumnIndex(DatabaseHelper.NOTIFICATION_ID)); notification.key = curso...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Notification createFrom(application.Notification notification) {\n Notification noti = this.create(notification);\n Set<Message> messages = this.createMessages(noti);\n noti.messages(messages);\n return noti;\n }", "@Override\n public void createNotification(Notification notification) {\n ...
[ "0.61629945", "0.60044754", "0.57790494", "0.5691992", "0.5638757", "0.55990815", "0.5578428", "0.5455977", "0.53683615", "0.5360267", "0.5342601", "0.5341214", "0.5288853", "0.52433395", "0.52405566", "0.5223624", "0.51819503", "0.5160645", "0.51539165", "0.51295555", "0.510...
0.59886175
2
/ We use a custom title so never request a window title mWindow.requestFeature(Window.FEATURE_NO_TITLE);
public void installContent() { if (mView == null || !canTextInput(mView)) { mWindow.setFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM, WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM); } else { mWindow.clearFlags(WindowManager.LayoutParams.FLAG_ALT_F...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doBeforeSetContent() {\n \tsuper.doBeforeSetContent();\n \trequestWindowFeature(Window.FEATURE_NO_TITLE);\n }", "public void noTitle() {\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tgetWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, \n\t\t\t\tWindo...
[ "0.854192", "0.83509696", "0.8029291", "0.76789516", "0.7675539", "0.7507685", "0.7476689", "0.694515", "0.6876521", "0.674556", "0.66813725", "0.6668384", "0.66584885", "0.6629862", "0.6581953", "0.6541012", "0.653346", "0.65314925", "0.6509026", "0.65038323", "0.6489747", ...
0.0
-1
Set the view to display in the dialog.
public void setView(View view) { mView = view; mViewSpacingSpecified = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setView(View view);", "public void setView(View view) {\n\t\tthis.view = view;\n\t}", "@Override\n\tpublic void setView(View view) {\n\n\t}", "public void setView(View view) {\n this.view = view;\n this.model = view.getModel();\n initControl();\n }", "public void setView...
[ "0.760118", "0.73251307", "0.7257439", "0.7200664", "0.7062413", "0.7041883", "0.6962516", "0.6836446", "0.6779752", "0.6774912", "0.6633013", "0.65811914", "0.6550971", "0.6531994", "0.646248", "0.6458922", "0.64484316", "0.64342654", "0.6420893", "0.64189655", "0.63471705",...
0.6333011
23
Set the view to display in the dialog along with the spacing around that view
public void setView(View view, int viewSpacingLeft, int viewSpacingTop, int viewSpacingRight, int viewSpacingBottom) { mView = view; mViewSpacingSpecified = true; mViewSpacingLeft = viewSpacingLeft; mViewSpacingTop = viewSpacingTop; mViewSpacingRight = vie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setView(AddSegmentDialog view) {\n View = view;\n }", "public void configure(T aView) { aView.setPrefSize(110,20); }", "public void setView(View view) {\n mView = view;\n mViewSpacingSpecified = false;\n }", "private void setUpView(int width, int height){\n addK...
[ "0.68043154", "0.6697943", "0.65770733", "0.6555592", "0.65337265", "0.6526373", "0.6406225", "0.6391086", "0.6382713", "0.63356626", "0.63258696", "0.622838", "0.6226058", "0.619572", "0.6189692", "0.6189692", "0.6189692", "0.6189692", "0.6189692", "0.6189692", "0.617839", ...
0.6009249
34
Set resId to 0 if you don't want an icon.
public void setIcon(int resId) { mIconId = resId; if (mIconView != null) { if (resId > 0) { mIconView.setImageResource(mIconId); } else if (resId == 0) { mIconView.setVisibility(View.GONE); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setIcon(int resId) {\n\t\t\n\t}", "public void setIconLiftRes(int resId) {\n\t\tif (View.VISIBLE == icon_lift.getVisibility()) {\n\t\t\ticon_lift.setImageResource(resId);\n\t\t}\n\t}", "public void setIconReightRes(int resId) {\n\t\tif (View.VISIBLE == icon_reight.getVisibility()) {\n\...
[ "0.8120108", "0.69641346", "0.69404954", "0.68068874", "0.67319095", "0.65623236", "0.65067023", "0.6453215", "0.64012253", "0.6400158", "0.63947076", "0.63946897", "0.6306102", "0.6175792", "0.61740637", "0.6135509", "0.6102067", "0.6053468", "0.6033997", "0.6010127", "0.600...
0.7605867
1
Interface definition for a callback to be invoked before the ListView will be bound to an adapter.
public interface OnPrepareListViewListener { /** * Called before the ListView is bound to an adapter. * * @param listView The ListView that will be shown in the dialog. */ void onPrepareListView(ListView listView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setListNavigationCallbacks(SpinnerAdapter adapter,\n\t\t\tOnNavigationListener callback) {\n\t\t\n\t}", "public interface ListViewPopulateItemClosure\r\n{\r\n\tpublic void setPopulateItemClosure(Closure closure);\r\n}", "@Override\n\tpublic void setUpListener() {\n\t\tmListView.setOnIt...
[ "0.6549395", "0.649889", "0.6414758", "0.63391846", "0.6264177", "0.6196374", "0.61724335", "0.6150887", "0.61374134", "0.6123891", "0.61156523", "0.6111859", "0.609321", "0.60667056", "0.6063433", "0.60228246", "0.6017835", "0.59802204", "0.5975589", "0.5972273", "0.5972273"...
0.71623975
0
Called before the ListView is bound to an adapter.
void onPrepareListView(ListView listView);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initListView() {\n viewPager.setAdapter(adapter);\n }", "@Override\n\t\tpublic void initList() {\n\t\t\tadapter = new MsgItemAdapter(context);\n\t\t\tArrayList<MsgBean> datas = getData();\n\t\t\tadapter.setData(datas);\n\t\t\tmListView.setAdapter(adapter);\n\t\t\tmListView.setViewMode(true, true...
[ "0.70021117", "0.6934602", "0.6551606", "0.65035343", "0.64083767", "0.64077014", "0.6386541", "0.6344737", "0.6321858", "0.63146967", "0.6314449", "0.62943083", "0.6285156", "0.6283871", "0.62652755", "0.6243223", "0.61941856", "0.6193928", "0.6176796", "0.6173119", "0.61575...
0.6699204
2
////////////////////////////////////////////////////////////////////// Description: Constructor internal since instances are created only by the SoRayPickAction. Use: internal
public SoPickedPoint(final SoPath _path, final SoState _state, final SbVec3f objSpacePoint) // //////////////////////////////////////////////////////////////////////// { int i, n; // Make a copy of the path since it most likely comes from the // current traversal path in an act...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void\nrayPick(SoRayPickAction action)\n//\n////////////////////////////////////////////////////////////////////////\n{\n\t if (!shouldRayPick(action)) return;\n\n\t SoMaterialBindingElement.Binding binding =\n\t SoMaterialBindingElement.get(action.getState());\n\n\t boolean materialPerPart =\n\t (b...
[ "0.6289943", "0.6191724", "0.6089672", "0.5961849", "0.58644354", "0.58293945", "0.58293486", "0.5784106", "0.57591814", "0.5745174", "0.572186", "0.57145417", "0.5713367", "0.5707928", "0.569062", "0.5681599", "0.5679232", "0.56721693", "0.5669542", "0.5666401", "0.56503046"...
0.55731016
31
////////////////////////////////////////////////////////////////////// Description: Copy constructor. Use: public
public SoPickedPoint( final SoPickedPoint pp) // //////////////////////////////////////////////////////////////////////// { worldPoint.copyFrom(pp.worldPoint); worldNormal.copyFrom(pp.worldNormal); imageTexCoords.copyFrom(pp.imageTexCoords); materialIndex = pp.materialIndex; path = pp.pat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void copyConstructor(){\n\t}", "public void copy() {\n\n\t}", "@Override\n\tprotected void copy(Object source, Object dest) {\n\t\t\n\t}", "Prototype makeCopy();", "public CMObject copyOf();", "public Clone() {}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException ...
[ "0.78859895", "0.75189835", "0.7358715", "0.73057216", "0.7220868", "0.7207802", "0.7010113", "0.6869025", "0.68332344", "0.6729722", "0.66971594", "0.6685392", "0.6684291", "0.6684291", "0.66621935", "0.6659776", "0.66580725", "0.6631799", "0.6617495", "0.6600115", "0.658944...
0.0
-1
////////////////////////////////////////////////////////////////////// Description: Destructor Use: public
public void destructor() // //////////////////////////////////////////////////////////////////////// { // Free up path path.unref(); // The SoDetailList destructor deletes all details in the list, so // we don't have to do it here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\t\n\tpublic void destroy() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void destroy() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void destroy() {\n\t\t\n\t}", "@Override\n\tpublic void destroy() {\n\t\t\n\t}", "@Override\n\tpublic void destroy() {\n\t\t\n\t}", "@Override\n\tpublic void destroy() {\n...
[ "0.7441494", "0.73766166", "0.7298055", "0.7298055", "0.7298055", "0.7298055", "0.7298055", "0.7298055", "0.7298055", "0.7298055", "0.7298055", "0.7298055", "0.7298055", "0.7298055", "0.7298055", "0.7298055", "0.7298055", "0.7298055", "0.7298055", "0.7298055", "0.7298055", ...
0.0
-1
////////////////////////////////////////////////////////////////////// Description: Returns an instance that is a copy of this instance. The caller is responsible for deleting the copy when done. Use: public
public SoPickedPoint copy() // //////////////////////////////////////////////////////////////////////// { SoPickedPoint newCopy = new SoPickedPoint(this); return newCopy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Shingle copy() {\n return new Shingle(this);\n }", "public Object clone() {\n return this.copy();\n }", "public CopyBuilder copy() {\n return new CopyBuilder(this);\n }", "public Object clone(){\n \t\n \treturn this;\n \t\n }", "public T copy() {\n T ret = cre...
[ "0.7635504", "0.76283216", "0.75832963", "0.74325305", "0.7428149", "0.7355737", "0.7272339", "0.7238149", "0.722672", "0.71604717", "0.7148737", "0.7086693", "0.7030753", "0.7007928", "0.69870675", "0.6985767", "0.69799817", "0.69685584", "0.693428", "0.6931357", "0.6904855"...
0.6973589
17
////////////////////////////////////////////////////////////////////// Description: Returns the detail that corresponds to the given node in the path. Use: public
public SoDetail getDetail(SoNode node) // //////////////////////////////////////////////////////////////////////// { int index; // Test for default case, corresponding to tail of path if (node == null) index = ( SoFullPath.cast ( path)).getLength() - 1; else index = getNodeIndex(node)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String parseNodeDetail(ILogicRouteElementDetailItem d) {\n\n StringBuilder detailSB = new StringBuilder();\n\n Optional<INodeDepot> nodeDepotAfterOpt = d.getNodeDepotAfterVisit();\n\n if (nodeDepotAfterOpt.isPresent()) {\n INodeDepot visitedNodeDepot = nodeDepotAfterOpt.get();\n\n ...
[ "0.634264", "0.615013", "0.60277534", "0.58800733", "0.58800733", "0.58565086", "0.58444387", "0.5829071", "0.5829071", "0.5829071", "0.5829071", "0.58208925", "0.573558", "0.5729064", "0.5675166", "0.567062", "0.5645555", "0.5613335", "0.56084216", "0.56048995", "0.5558935",...
0.79039705
0
////////////////////////////////////////////////////////////////////// Description: Returns the transformation matrix to go from the object space corresponding to the given node in the path to world space. Use: public
public SbMatrix getObjectToWorld(final SoNode node) // //////////////////////////////////////////////////////////////////////// { getMatrix(node); return matrixAction.getMatrix(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void\ngetMatrix( SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoPath xfPath; // ptr\n\n // Construct a path from the root down to this node. Use the given\n // path if it's the same\n if (node == null || node == SoFullPath.cast(path).getTail())...
[ "0.67802674", "0.6775275", "0.6199959", "0.6131841", "0.5806495", "0.57381094", "0.5716395", "0.5541916", "0.54829395", "0.5433526", "0.5388775", "0.53691345", "0.53287846", "0.53113556", "0.53109527", "0.5266061", "0.5260541", "0.52493167", "0.5242064", "0.523254", "0.515410...
0.71718335
0
////////////////////////////////////////////////////////////////////// Description: Returns the transformation matrix to go from world space to the object space corresponding to the given node in the path. Use: public
public SbMatrix getWorldToObject( SoNode node) // //////////////////////////////////////////////////////////////////////// { getMatrix(node); return matrixAction.getInverse(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SbMatrix\ngetObjectToWorld(final SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n getMatrix(node);\n return matrixAction.getMatrix();\n}", "private void\ngetMatrix( SoNode node)\n//\n//////////////////////////////////////////////////////////////////////...
[ "0.70813686", "0.68160826", "0.59842485", "0.59325206", "0.58258355", "0.57817703", "0.56381595", "0.55648273", "0.5533293", "0.5408658", "0.5408172", "0.5375336", "0.5353159", "0.5308319", "0.5307344", "0.5272922", "0.5266931", "0.52351636", "0.5224849", "0.5214476", "0.5182...
0.66887516
2
////////////////////////////////////////////////////////////////////// Description: Returns the transformation matrix to go from the object space corresponding to the given node in the path to image space. Use: public
public SbMatrix getObjectToImage( SoNode node) // //////////////////////////////////////////////////////////////////////// { getMatrix(node); return matrixAction.getTextureMatrix(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void\ngetMatrix( SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoPath xfPath; // ptr\n\n // Construct a path from the root down to this node. Use the given\n // path if it's the same\n if (node == null || node == SoFullPath.cast(path).getTail())...
[ "0.702291", "0.64020765", "0.63048834", "0.6147945", "0.5997813", "0.59874", "0.5724057", "0.572393", "0.5711888", "0.5649891", "0.56179476", "0.56027603", "0.547974", "0.5406021", "0.53804654", "0.5357043", "0.5342347", "0.53191274", "0.53066444", "0.5274409", "0.5210854", ...
0.65112907
1
////////////////////////////////////////////////////////////////////// Description: Returns the transformation matrix to go from image space to the object space corresponding to the given node in the path. Use: public
public SbMatrix getImageToObject(SoNode node) // //////////////////////////////////////////////////////////////////////// { getMatrix(node); return matrixAction.getTextureInverse(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void\ngetMatrix( SoNode node)\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoPath xfPath; // ptr\n\n // Construct a path from the root down to this node. Use the given\n // path if it's the same\n if (node == null || node == SoFullPath.cast(path).getTail())...
[ "0.7018898", "0.641472", "0.63433087", "0.6036976", "0.5983408", "0.58233696", "0.5696849", "0.5594494", "0.55913264", "0.5516216", "0.5467459", "0.54497975", "0.5440533", "0.5418719", "0.5320094", "0.52544165", "0.5190305", "0.5177721", "0.5170624", "0.5167507", "0.5161176",...
0.63012767
3
////////////////////////////////////////////////////////////////////// Description: Returns the intersection point in object space that corresponds to the given node in the path. Use: public java port
public SbVec3f getObjectPoint() { return getObjectPoint(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getPoint(EastNorth intersection) {\n\t\treturn null;\n\t}", "public Point2D.Float getIntersectionPoint(Line2D.Float line,\n Point2D.Float intersection)\n {\n if (intersection == null) {\n intersection = new Point2D.Float();\n }\n float fraction = getInterse...
[ "0.6140765", "0.6108166", "0.6091502", "0.6088606", "0.5999066", "0.5930309", "0.59294474", "0.5851345", "0.5847873", "0.57952553", "0.57715213", "0.57354236", "0.5709597", "0.5647896", "0.56203574", "0.5616465", "0.5598661", "0.5596076", "0.5588474", "0.558786", "0.54980624"...
0.0
-1
////////////////////////////////////////////////////////////////////// Description: Returns the surface normal in object space that corresponds to the given node in the path. Use: public java port
public SbVec3f getObjectNormal() { return getObjectNormal(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "godot.wire.Wire.Vector3 getNormal();", "public SbVec3f getNormal() { return worldNormal; }", "@java.lang.Override\n public godot.wire.Wire.Vector3 getNormal() {\n return normal_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : normal_;\n }", "public Point4 getNormal();", "public VectorA...
[ "0.69196767", "0.6431138", "0.637574", "0.62739223", "0.6115134", "0.603952", "0.6024115", "0.5949782", "0.5917472", "0.5900389", "0.59002686", "0.5898485", "0.5754481", "0.5736179", "0.5734094", "0.56798816", "0.565676", "0.5651619", "0.5649096", "0.5642188", "0.5626693", ...
0.64534044
1
These return the intersection point and surface normal in world space, and the texture coordinates in image space.
public SbVec3f getPoint() { return worldPoint; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void computeTextureUVCoordinates()\n\t{\n\t\tthis.faceTextureUCoordinates = new float[faceCount][];\n\t\tthis.faceTextureVCoordinates = new float[faceCount][];\n\n\t\tfor (int i = 0; i < faceCount; i++)\n\t\t{\n\t\t\tint textureCoordinate;\n\t\t\tif (textureCoordinates == null)\n\t\t\t{\n\t\t\t\ttextureCoor...
[ "0.5808213", "0.5787569", "0.575315", "0.5703355", "0.566494", "0.566272", "0.56366324", "0.5576684", "0.554826", "0.54882884", "0.54739565", "0.5350145", "0.5329815", "0.52926934", "0.52729774", "0.51925105", "0.5169737", "0.51678085", "0.51332104", "0.5100885", "0.5081969",...
0.0
-1
! These return the intersection point and surface normal in world space, ! and the texture coordinates in image space.
public SbVec3f getNormal() { return worldNormal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Intersection getIntersectionNorth(){\n if(!mapLoaded){\n return null;\n }\n return extremIntersection[0];\n }", "public Coordinates intersection() {\n return intersection;\n }", "private Point3 _getIntersection(Point3 eye, Point3 direct...
[ "0.5965102", "0.59569955", "0.5936894", "0.587825", "0.5776746", "0.5772303", "0.57713795", "0.57478166", "0.5727426", "0.5716097", "0.5703722", "0.56838363", "0.56785405", "0.5668612", "0.5568943", "0.55596626", "0.5546596", "0.55223817", "0.5518415", "0.5493059", "0.5468421...
0.0
-1
Returns the path to the object that was intersected.
public SoPath getPath() { return path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getIntersectingRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_us...
[ "0.58523226", "0.57484657", "0.57428634", "0.57119596", "0.56011105", "0.55642915", "0.55601174", "0.554232", "0.55299646", "0.5519641", "0.5497888", "0.54921836", "0.5476214", "0.5438503", "0.54186237", "0.54178923", "0.5365647", "0.5351091", "0.534643", "0.5344564", "0.5331...
0.5145893
70
////////////////////////////////////////////////////////////////////// Description: Sets the objectspace normal. Use: extender
public void setObjectNormal(final SbVec3f normal) // //////////////////////////////////////////////////////////////////////// { // Transform the object space normal by the current modeling // matrix o get the world space normal. Use the inverse transpose // of the odel matrix so that normals are not scaled ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNormal(String normal) {\r\n String old = this.normal;\r\n this.normal = normal;\r\n this.changeSupport.firePropertyChange(\"normal\", old, normal );\r\n }", "protected void setForceNormalVector() {\n\t\tvn = forceNormalVector(v1, v2);\n\t}", "public void setNormalBuffer(B...
[ "0.6370962", "0.6340847", "0.619102", "0.59531355", "0.56331074", "0.56122154", "0.55573285", "0.55284035", "0.550791", "0.54759514", "0.54586816", "0.54183656", "0.5399614", "0.53654873", "0.53090125", "0.5304543", "0.5298762", "0.5252776", "0.5248543", "0.5216083", "0.52145...
0.69033456
0
////////////////////////////////////////////////////////////////////// Description: Sets the objectspace texture coordinates. Use: extender
public void setObjectTextureCoords(final SbVec4f texCoords) // //////////////////////////////////////////////////////////////////////// { // Transform the object space coords by the current texture matrix // to get the image space texture coords imageTexCoords.copyFrom( multVecMatrix4(SoMultiTextureMatrixEl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTexture(TextureRegion region) {\n \ttexture = region;\n \torigin = new Vector2(texture.getRegionWidth()/2.0f,texture.getRegionHeight()/2.0f);\n }", "public void setTextureCoordC(E3DVector2F textureCoord){\r\n this.vertices[2].setTextureCoord(textureCoord);\r\n }", "public void...
[ "0.7206333", "0.702709", "0.69404155", "0.6809737", "0.6630061", "0.65006554", "0.6399624", "0.6350048", "0.6328391", "0.62139946", "0.6165383", "0.61369425", "0.6130234", "0.6121283", "0.611083", "0.61106414", "0.6009083", "0.6008073", "0.59914255", "0.5988149", "0.59271204"...
0.7475273
0