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 max X value of the 2D point projected to 3D
public float max3DX() { return Math.max(stop3D.x, start3D.x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getMaxX(){\n return points.get(points.size()-1).getX();\n }", "public double getMaxCoordinateValue() {\n if (this.max_x > this.max_y)\n return this.max_x;\n else\n return this.max_y;\n }", "public Point3 max(Point3 p) {\n return new Point3( Mat...
[ "0.7169778", "0.6770959", "0.67429763", "0.6641286", "0.6629975", "0.65907854", "0.6584864", "0.6547338", "0.6431533", "0.6376473", "0.6369906", "0.6369825", "0.6349715", "0.6328635", "0.6290929", "0.6281864", "0.62749666", "0.62544096", "0.62120485", "0.6208566", "0.61584866...
0.72895414
0
The min Y value of the 2D point projected to 3D
public float min3DY() { return Math.min(stop3D.y, start3D.y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Coordinate getMinY();", "public float min3DZ() {\n return Math.min(stop3D.z, start3D.z);\n }", "private double findMinY() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn 0;\n\t\t}\n\t\tdouble min = pointList.get(0).getY();\n\t\tfor(int i=0; i<pointList.size(); i++)\n\t\t\tif (min>pointList.get(i).getY(...
[ "0.6993281", "0.6710686", "0.6687821", "0.66497594", "0.6638886", "0.663829", "0.65967757", "0.65823084", "0.6472977", "0.638209", "0.637901", "0.6360182", "0.6344489", "0.63329417", "0.63276696", "0.62954915", "0.628291", "0.6217979", "0.6203833", "0.61943984", "0.6186453", ...
0.73799133
0
The max Y value of the 2D point projected to 3D
public float max3DY() { return Math.max(stop3D.y, start3D.y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getMaxCoordinateValue() {\n if (this.max_x > this.max_y)\n return this.max_x;\n else\n return this.max_y;\n }", "private double findMaxY() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn Double.NaN;\n\t\t}\n\t\tdouble max = pointList.get(0).getY();\n\t\tfor(in...
[ "0.7210531", "0.70518494", "0.69890726", "0.6893337", "0.6880281", "0.6860294", "0.6837383", "0.6827622", "0.6792885", "0.6785092", "0.6717902", "0.6706128", "0.6698999", "0.6652916", "0.66379863", "0.6631959", "0.6584869", "0.65167314", "0.6515809", "0.6507378", "0.64395374"...
0.76095587
0
The min Z value of the 2D point projected to 3D
public float min3DZ() { return Math.min(stop3D.z, start3D.z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float zMin();", "public Point3 min(Point3 p) {\n return new Point3( Math.min(x, p.x),\n Math.min(y, p.y),\n Math.min(z, p.z) );\n }", "public float min3DX() {\n return Math.min(stop3D.x, start3D.x);\n }", "public float max3DZ() {\n return Ma...
[ "0.75833815", "0.7101067", "0.7052109", "0.6654657", "0.65929925", "0.64553386", "0.644986", "0.6373728", "0.632526", "0.63159627", "0.63159627", "0.63159627", "0.63151777", "0.6306561", "0.63040024", "0.6274826", "0.6252719", "0.62319773", "0.6195802", "0.6190416", "0.613387...
0.80098915
0
The max Z value of the 2D point projected to 3D
public float max3DZ() { return Math.max(stop3D.z, start3D.z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float zMax();", "public Point3 max(Point3 p) {\n return new Point3( Math.max(x, p.x),\n Math.max(y, p.y),\n Math.max(z, p.z) );\n }", "public float max3DX() {\n return Math.max(stop3D.x, start3D.x);\n }", "public double getZ() {\n\t\treturn point...
[ "0.7800877", "0.71942794", "0.7047154", "0.68410385", "0.67604953", "0.6700191", "0.6657803", "0.65551585", "0.65551585", "0.65551585", "0.644421", "0.6416331", "0.6389398", "0.63881874", "0.63642263", "0.63617116", "0.6320386", "0.6312844", "0.629153", "0.6282958", "0.628176...
0.7984397
0
Configure G2D with selection drawing settings
public void apply(Graphics2D g2d) { g2d.setColor(AWTColor.toAWT(color)); // Text String name = g2d.getFont().getFontName(); int size = g2d.getFont().getSize(); Font f = new Font(name, Font.PLAIN, (int) (size * annotationFontSizeFactor)); g2d.setFont(f); // Stroke g2d.se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void paintSelection(Graphics2D g);", "public void drawSelectedStyle(Graphics2D g2) {\n final int PADDING = 2;\n final Color selectColor = new Color(100, 100, 100);\n\n final BasicStroke dashed = new BasicStroke(1.0f, BasicStroke.CAP_BUTT,\n ...
[ "0.65757394", "0.6443978", "0.634887", "0.6230565", "0.61977357", "0.6165017", "0.6046528", "0.60027605", "0.59764326", "0.58872414", "0.58502877", "0.58222157", "0.58068675", "0.57884836", "0.5763446", "0.57528543", "0.57518613", "0.573725", "0.5733771", "0.5694192", "0.5685...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Type your code here.
int main() { int a,b,count=0; cin>>a>>b; int arr1[a],arr2[b]; for(int i=0;i<a;i++) { cin>>arr1[i]; } for(int i=0;i<b;i++) { cin>>arr2[i]; } if(a==b) { for(int i=0;i<a;i++) { if(arr1[i]==arr2[i]) { count++; } } if(count==a) { cout<<"Same"; } else { cout<<"Not Same"; } } else { cout<<"Not Sam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void generateCode()\n {\n \n }", "@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}", "CD withCode();", "@Override\r\n\tpublic void code() {\n\t\tSystem.out.println(\"我会C语言....\");\r\n\t}", "public void genCode(CodeFile code) {\n...
[ "0.69843554", "0.66579396", "0.6505592", "0.6464641", "0.63891697", "0.62784237", "0.61395115", "0.60109365", "0.5983818", "0.59798265", "0.59757096", "0.59655416", "0.5955321", "0.59450895", "0.59450895", "0.59450895", "0.59450895", "0.59450895", "0.58090574", "0.579967", "0...
0.0
-1
Changes neighbour's links, leads to removing Node from List.
private void remove() { if (prev != null) { prev.next = next; } if (next != null) { next.prev = prev; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeNeighbours(){\n\t\tgetNeighbours().removeAll(getNeighbours());\n\t}", "public void remove() {\r\n\t\theadNode.link = headNode.link.link;\r\n\t\tsize--;\r\n\t}", "void removeNeighbors();", "void removeNeighbor(IsisNeighbor isisNeighbor);", "public void cleanNodeListToEdges(CircosEdgeList e...
[ "0.71356684", "0.6581443", "0.6529229", "0.6437705", "0.62342757", "0.6208623", "0.61685866", "0.61526126", "0.61475563", "0.60826313", "0.60149854", "0.60063595", "0.6004488", "0.6003641", "0.59594345", "0.59574634", "0.5910037", "0.5903891", "0.5895926", "0.58929235", "0.58...
0.590262
18
Checks whether there are no elements in List.
public boolean empty() { return size == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isEmpty(int list) {\n\t\treturn m_lists.getField(list, 0) == -1;\n\t}", "public boolean checkListIsEmpty(List<WebElement> eleList) {\n if (eleList.size() == 0) {\n return true;\n }\n return false;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty...
[ "0.795757", "0.7915859", "0.78181183", "0.78181183", "0.7699221", "0.76919633", "0.7682379", "0.76752347", "0.7663746", "0.76374656", "0.7636185", "0.76041424", "0.760217", "0.75960124", "0.7557167", "0.7553221", "0.7544497", "0.7540183", "0.7537812", "0.74515796", "0.7413601...
0.0
-1
Finds Node with same key as given. It is guaranteed(due to features of adding function) to be only one such Node
private Node find(String key) { Node now = head; while (now != null) { if (now.pairStringString.getKey().equals(key)) { return now; } now = now.next; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node findKey(String key){\n Node N = front;\n while(N != null){\n if(N.key.equals(key)){\n return N; \n }\n else{\n N = N.next; \n }\n }\n return null;\n }", "private Node _locate(Object key){\n\t\tint hashCode = key.hashCode();\r\n\t\tint bucketNum = hashCo...
[ "0.7201896", "0.69900155", "0.6879394", "0.6788562", "0.67806566", "0.6683711", "0.6674871", "0.66533554", "0.6653329", "0.65583366", "0.64493096", "0.64205563", "0.6380865", "0.6360142", "0.63531184", "0.6321301", "0.6319908", "0.63071066", "0.6288115", "0.6286384", "0.62586...
0.71859974
1
Checks whether given key appears in List.
public boolean contains(String key) { return find(key) != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean contains(Key key);", "public boolean contains(String key);", "public boolean containsKey(Key key) ;", "public boolean contains(K key);", "public boolean contains( T key )\n {\n if (key == null) return false;\n for ( int i=0 ; i < size() ; ++i )\n if ( get(i).equal...
[ "0.7738161", "0.7536421", "0.7523721", "0.75070614", "0.75052494", "0.7341796", "0.7331238", "0.7274014", "0.72226715", "0.72226715", "0.7217243", "0.7199384", "0.7171813", "0.71551174", "0.71545327", "0.7153255", "0.71519643", "0.7148081", "0.714442", "0.7123307", "0.7105968...
0.7292732
7
Returns values stored with given key, if any. Null otherwise
public String get(String key) { Node pos = find(key); if (pos == null) { return null; } else { return pos.pairStringString.getValue(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private V get(K key) {\n\t\t\tif (keySet.contains(key)) {\n\t\t\t\treturn valueSet.get(keySet.indexOf(key));\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "public V get(K key) {\n int index = findIndex(key);\n if (keys[index] == null)\n return null;\n else\n return values[index...
[ "0.7355942", "0.7311905", "0.72872615", "0.71952254", "0.71829545", "0.7103389", "0.70966834", "0.70834184", "0.70547676", "0.69593686", "0.69182813", "0.68951684", "0.6885114", "0.6845771", "0.6830464", "0.6828663", "0.68201685", "0.67747337", "0.67715544", "0.6767795", "0.6...
0.0
-1
Modifies element with same key, if any. Adds new element otherwise
public String put(String key, String value) { PairStringString p = new PairStringString(key, value); Node pos = find(key); if (pos == null) { head = new Node(p, head, null); if (head.next != null) { head.next.prev = head; } size++; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void put(K key, T elem);", "public void put(Object element) {\r\n\t\tObject[] newElements = new Object[elements.length + 1];\r\n\t\tSystem.arraycopy(elements, 0, newElements, 0, elements.length);\r\n\t\tnewElements[elements.length] = element;\r\n\t\telements = newElements;\r\n\t}", "@Override\n\tpublic ...
[ "0.622793", "0.60266364", "0.6018074", "0.59547573", "0.59195143", "0.5898631", "0.5869217", "0.5832564", "0.58256054", "0.5803596", "0.57564867", "0.5732218", "0.5714999", "0.57083726", "0.5699907", "0.5688322", "0.563079", "0.560729", "0.55842394", "0.5583448", "0.5582886",...
0.0
-1
Remove element with same key, if any.
public String remove(String key) { Node pos = find(key); if (pos == null) { return null; } size--; if (head == pos) { head = pos.next; } pos.remove(); return pos.pairStringString.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String remove(String key) {\n\t\tint hashVal = hashFunc(key);\n\t\twhile (hashArray[hashVal] != null) {\n\t\t\tif (hashArray[hashVal].value.equals(key)) {\n\t\t\t\thashArray[hashVal] = deleted;\n\t\t\t\tthis.numOfItems--;\n\t\t\t\treturn key;\n\t\t\t}\n\t\t\thashVal++;\n\t\t\thashVal = hashVal ...
[ "0.72670174", "0.7196945", "0.7193945", "0.71583724", "0.7072008", "0.7008126", "0.69432217", "0.69432217", "0.69432217", "0.69392234", "0.68541473", "0.68191385", "0.68138874", "0.6795681", "0.6795681", "0.6795681", "0.6785155", "0.67758", "0.67758", "0.67758", "0.676362", ...
0.0
-1
Gets head element from List and removes it. return null if List is empty
public PairStringString popHeadElement() { if (head == null) { return null; } final PairStringString elem = head.pairStringString; head.remove(); head = head.next; size--; return elem; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T removeHead()\n\t{\n\t\tif(size == 0)\n\t\t{\n\t\t\tSystem.out.println(\"list is empty\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t//advance head reference\n\t\tT value = head.value;\n\t\thead = head.next;\n\t\t\n\t\tsize--;\n\t\treturn value;\n\t\t\n\t}", "private E removeFirst ()\n {\n Node<E> ...
[ "0.798548", "0.79255563", "0.7717867", "0.75709856", "0.75650436", "0.7562299", "0.7544094", "0.7489028", "0.7452165", "0.74416757", "0.74001336", "0.7394807", "0.7388953", "0.73828876", "0.7322106", "0.7263967", "0.72309667", "0.72241336", "0.7181483", "0.71593195", "0.71575...
0.6556829
95
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.list_view); view = (LinearLayout) findViewById(R.id.list_main_layout); context = view.getContext(); next25Button = (Button)findViewById(R....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivit...
[ "0.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879",...
0.0
-1
backward search hope new items will go with greater distance
private int getFarmPos(long farmId, float distance) { int childCount = view.getChildCount(); FarmLinearLayout childAtPos; while(childCount > 0) { childAtPos = (FarmLinearLayout)view.getChildAt(--childCount); if (childAtPos.farmId == farmId) return -1; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void thinkAboutNext(ArrayList<Point> pos, boolean hit, boolean destroyedIt) {\n if (!searching && hit) {\n betweenTwo = false;\n System.out.println(\"WAS A NEW TARGET\");\n if(!destroyedIt) {\n int[] d = Direction.DOWN.getDirectionV...
[ "0.5971206", "0.58346957", "0.5826075", "0.56883657", "0.55769885", "0.5432267", "0.53958136", "0.5346832", "0.53356516", "0.53351545", "0.53239983", "0.53166616", "0.5270768", "0.52606934", "0.52548957", "0.52052975", "0.5204931", "0.5188672", "0.5182883", "0.51779217", "0.5...
0.0
-1
Fix any parameter names that are reserved words in Java. Java source code can't have such parameter names, but Kotlin code might, for example.
private ImmutableSet<Property> propertySet( Executable executable, Map<String, String> propertyToGetterName, ImmutableMap<String, String> builderInitializers, Nullables nullables) { Map<VariableElement, String> identifiers = executable.parameters().stream() .collect(toMap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toParamName(String name) {\n name = name.replaceAll(\"-\", \"_\");\n\n // if it's all uppper case, do nothing\n if (name.matches(\"^[A-Z_]*$\")) {\n return name;\n }\n\n // camelize(lower) the variable name\n // pet_id => petId\n ...
[ "0.6043005", "0.5707023", "0.54600906", "0.5351955", "0.5348021", "0.5225965", "0.5193225", "0.51918834", "0.5183385", "0.5147527", "0.5145508", "0.5125662", "0.51221555", "0.506826", "0.5029942", "0.50197995", "0.50136435", "0.4985103", "0.49695626", "0.49283502", "0.4921040...
0.0
-1
There's more than one visible executable (constructor or method). We try to find the one that
private Executable matchingExecutable( TypeElement autoBuilderType, List<Executable> executables, ImmutableSet<ExecutableElement> methodsInAutoBuilderType, String description) { ImmutableList<Executable> matches = executables.stream() .filter(x -> executableMatches(x, met...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T extends ReflectMethod> T findMatchingExecutable(Executable[] executables,\n Object... values) throws NoSuchMethodException, IllegalStateException\n {\n if (values.length == 0)\n {\n for (Executable exec...
[ "0.57910293", "0.5608437", "0.5538196", "0.536182", "0.53419816", "0.5272181", "0.52504903", "0.51729614", "0.51546884", "0.51505613", "0.51330626", "0.51278615", "0.51203", "0.51049644", "0.50683147", "0.5065356", "0.5049612", "0.50384843", "0.5003416", "0.49988687", "0.4997...
0.51688385
8
Start with the complete set of parameter names and remove them one by one as we find corresponding methods. We ignore case, under the assumption that it is unlikely that a case difference is going to allow a candidate to match when another one is better. A parameter named foo could be matched by methods like this: X fo...
private boolean executableMatches( Executable executable, ImmutableSet<ExecutableElement> methodsInAutoBuilderType) { NavigableSet<String> parameterNames = new TreeSet<>(String.CASE_INSENSITIVE_ORDER); parameterNames.addAll(executable.parameterNames()); for (ExecutableElement method : methodsInAutoBui...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testGetFirstParameterNameFromCombinedRemoveParameterIssue() {\n\t\t// arrange\n\t\tList<String> locationMsgs = new ArrayList<>();\n\t\tlocationMsgs.add(\"Remove this unused method parameter filter\\\".\");\n\t\tlocationMsgs.add(\"Remove this unused method parameter orderBy\\\".\");\n\t\tlocati...
[ "0.52586234", "0.5088426", "0.5009938", "0.4955979", "0.48779824", "0.4828538", "0.48019266", "0.47848642", "0.4781775", "0.47386086", "0.46976197", "0.46801484", "0.46550742", "0.4654882", "0.46539047", "0.46538234", "0.46387467", "0.45942342", "0.4584431", "0.45584178", "0....
0.440183
32
It would be MUCH simpler if we could just use ofClass.getAnnotation(Metadata.class). However that would be unsound. We want to shade the Kotlin runtime, including kotlin.Metadata, so as not to interfere with other things on the annotation classpath that might have a different version of the runtime. That means that if ...
private Optional<AnnotationMirror> kotlinMetadataAnnotation(Element element) { return element.getAnnotationMirrors().stream() .filter( a -> asTypeElement(a.getAnnotationType()) .getQualifiedName() .contentEquals(KOTLIN_METADATA_NAME)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasAnnotationMetadata();", "public Framework_annotation<T> build_annotation();", "AnnotationProvider getClassAnnotationProvider();", "public interface AnnotationReader\r\n{\r\n /**\r\n * Accessor for the annotations packages supported by this reader.\r\n * @return The annotations packages ...
[ "0.60237104", "0.57904065", "0.5704965", "0.5649695", "0.54457766", "0.5425865", "0.5377084", "0.53655654", "0.535153", "0.53298676", "0.5322335", "0.52947694", "0.5292114", "0.5198837", "0.51944953", "0.51411265", "0.51411265", "0.51411265", "0.51411265", "0.51411265", "0.51...
0.608572
0
Annotation methods can't have their own annotations so there's nowhere for us to discover
private ImmutableSet<Property> annotationBuilderPropertySet(TypeElement annotationType) { Nullables nullables = Nullables.fromMethods(processingEnv, ImmutableList.of()); // Translate the annotation elements into fake Property instances. We're really only interested // in the name and type, so we can use the...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Annotations mo30682c();", "@Override\n public void visit(Tree.AnnotationList al) {\n }", "@MyFirstAnnotation(name = \"Tom\")\n public void someMethod() {\n\n }", "Set<Class<? extends Annotation>> getScanMethodAnnotations();", "public abstract boolean mo30680a(Annotation annota...
[ "0.7497529", "0.70457804", "0.7030071", "0.69649005", "0.69520354", "0.68902415", "0.6863871", "0.6863871", "0.6849924", "0.68237644", "0.6785777", "0.6752066", "0.6735647", "0.67178845", "0.6644885", "0.6621273", "0.66162467", "0.65541697", "0.65539", "0.6522109", "0.6495186...
0.0
-1
List of PSU account that are made available to the TPP
@ApiModelProperty(required = true, value = "List of PSU account that are made available to the TPP ") @NotNull @Valid public List<AccountResource> getAccounts() { return accounts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<Account> listAccounts() {\n currentCustomer.findAndUpdateAccounts();\n // return list of accounts the customer owns\n return currentCustomer.getAccounts();\n }", "private void ViewAccounts() {\n for (int k = 0; k < accountList.size(); k++) {\n\n System.out.pri...
[ "0.66134953", "0.6575067", "0.6459584", "0.6451236", "0.63993967", "0.63986427", "0.6361946", "0.63504785", "0.6326698", "0.63189584", "0.62900084", "0.6234408", "0.61945313", "0.6173855", "0.61614585", "0.6141169", "0.61220634", "0.6107771", "0.61066854", "0.6099686", "0.609...
0.676902
0
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA...
[ "0.78847593", "0.75493765", "0.74971926" ]
0.746168
89
update of functional data (name, tel...)
@Override public void notifyAppointmentUpdated( int nIdAppointment ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateData() {}", "void updateData();", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "private void updateData(Multa ant, Multa multa) {\n\t}", "void updateInformation();", "@Override\r\n\tpublic void update(String[] getdata) {\n\r\n\t}", "@Override\n\tpublic void update(finalDa...
[ "0.71694046", "0.70405304", "0.6534012", "0.6377777", "0.63689095", "0.6290864", "0.62735224", "0.62307614", "0.6123321", "0.6054586", "0.5999355", "0.5977002", "0.595322", "0.5948244", "0.59428316", "0.5933005", "0.5909339", "0.59066546", "0.5906566", "0.58832836", "0.587649...
0.0
-1
it's already called by updatedResource(ResourceEvent event)
@Override public void notifyAppointmentWFActionTriggered( int nIdAppointment, int nIdAction ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void updateResourceInformation() {\n\t}", "@Override\n\tpublic void updateResourceInformation() {\n\t}", "@Override\n\tpublic void resourceChanged(IResourceChangeEvent arg0) {\n\t\t\n\t}", "@Override\n public void addedResource( ResourceEvent event )\n {\n }", "@Override\n ...
[ "0.8013749", "0.79665226", "0.77664846", "0.74147195", "0.7206158", "0.71565545", "0.71457803", "0.70236063", "0.69439757", "0.6889889", "0.68886024", "0.6788903", "0.6758046", "0.6746101", "0.66920465", "0.66612774", "0.65913177", "0.65866005", "0.6473006", "0.646137", "0.64...
0.0
-1
listener on the actions of the workflow addition of the resource in the workflow_resource_workflow
@Override public void addedResource( ResourceEvent event ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onResourceAdded(final ResourceEvent resourceEvent);", "void addWorkflow(Workflow workflow);", "public interface WorkflowExecutionListener {}", "public interface WorkflowListener extends Configurable {\n\n /**\n * Represents change actions on components.\n */\n public enum Action {\n\n /*...
[ "0.6565708", "0.65187967", "0.57728124", "0.5628926", "0.5590104", "0.5574626", "0.5544838", "0.552557", "0.54793257", "0.5472313", "0.5462646", "0.5456876", "0.54439664", "0.54414594", "0.5433109", "0.5402873", "0.53716516", "0.5357178", "0.5354817", "0.5301927", "0.5285442"...
0.6217944
2
listener on the actions of the workflow it's already called by notifyAppointmentRemoval( int nIdAppointment )
@Override public void deletedResource( ResourceEvent event ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void notifyAppointmentWFActionTriggered( int nIdAppointment, int nIdAction )\n {\n }", "public abstract void onRemoveAction();", "public void removeAppointment(Appointment a)\n {\n this.agenda.remove(a);\n }", "protected void removeAppointment(Appointment a) {\n ...
[ "0.6650744", "0.63791794", "0.6188498", "0.61716515", "0.6162935", "0.61070603", "0.59891504", "0.5978538", "0.5915783", "0.5876467", "0.5774697", "0.57204384", "0.56944466", "0.56846595", "0.56569546", "0.5641968", "0.56287086", "0.5626513", "0.5579629", "0.5556913", "0.5545...
0.0
-1
listener on the actions of the workflow
@Override public void updatedResource( ResourceEvent event ) { if ( event.getTypeResource( ).equals( Appointment.APPOINTMENT_RESOURCE_TYPE ) ) { IndexingAppointmentService.getService( ).indexAppointmentStateAndHistory( _appointmentDataSource, _appointmentHistoryDataSource, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface WorkflowExecutionListener {}", "public interface WorkflowListener extends Configurable {\n\n /**\n * Represents change actions on components.\n */\n public enum Action {\n\n /** The add. */\n ADD,\n /** The remove. */\n REMOVE,\n /** The update. */\n UPDATE\n }\n\n /**\...
[ "0.70694035", "0.6575323", "0.6326163", "0.6313839", "0.6232856", "0.6218226", "0.62072515", "0.6137374", "0.60833615", "0.6029923", "0.60189635", "0.60189635", "0.60189635", "0.6006857", "0.59776735", "0.5972139", "0.5972139", "0.5953821", "0.5953821", "0.5953821", "0.595382...
0.0
-1
Construct the Str variable
public Str(String data) { this.data = data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String makeString()\n {\n return \"ArcanaDungeonSource\";\n }", "public abstract String construct();", "@Override\n public String createString() {\n return null;\n }", "public String build();", "public String build();", "public String makeString()\n\t{\n\t\treturn \"Rando...
[ "0.67573315", "0.6750779", "0.6607704", "0.658998", "0.658998", "0.65866065", "0.65630877", "0.64709353", "0.64709353", "0.64709353", "0.64709353", "0.6409344", "0.63396066", "0.6312567", "0.6287129", "0.6287129", "0.6287129", "0.6287129", "0.6287129", "0.6287129", "0.6287129...
0.6242621
43
Construct the Str variable from bytes
public Str(byte[] data) { unpack(data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String createString(byte b[]) {\n\treturn StringConverter.byteToHex(b);\n }", "private static String bytes2String(byte[] bytes) {\n StringBuffer stringBuffer = new StringBuffer();\n for (int i = 0; i < bytes.length; i++) {\n stringBuffer.append((char) bytes[i]);\n }\n ...
[ "0.6570744", "0.64188266", "0.6183927", "0.61105335", "0.6057891", "0.6054184", "0.59788597", "0.5963041", "0.5936896", "0.59287965", "0.5924632", "0.5905083", "0.5905083", "0.5885344", "0.5877883", "0.58591884", "0.58547723", "0.5846739", "0.5839099", "0.58130735", "0.580963...
0.6819339
0
Code to be executed when an ad request fails.
@Override public void onAdFailedToLoad(int errorCode) { logger.logError(TAG, "ad failed to load: error code: " + errorCode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onAdError(BannerAd ad, String error) {\n Log.d(TAG, \"Something went wrong with the request: \" + error);\n }", "@Override\n\tpublic void onAdError(String arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onAdFailed(String arg0) ...
[ "0.7860469", "0.776646", "0.7336795", "0.71065897", "0.710294", "0.710294", "0.710294", "0.710294", "0.710294", "0.710294", "0.710294", "0.710294", "0.710294", "0.710294", "0.710294", "0.7080937", "0.7080937", "0.70792836", "0.7066696", "0.7062845", "0.7009126", "0.70053905...
0.70694214
18
Code to be executed when an ad opens an overlay that covers the screen.
@Override public void onAdOpened() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onOpened(AdColonyInterstitial ad) {\n notifyShown();\n notifyStarted();\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n public void onAdOpened() {\n }", "@Override\n ...
[ "0.67206573", "0.6544345", "0.64849514", "0.64849514", "0.64849514", "0.6484929", "0.64773303", "0.64709985", "0.639373", "0.61741036", "0.61687344", "0.61687344", "0.61652154", "0.6103518", "0.6075111", "0.60521466", "0.60094076", "0.6005782", "0.59800327", "0.59728587", "0....
0.65378547
12
Code to be executed when the user clicks on an ad.
@Override public void onAdClicked() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void adClicked(Ad arg0) {\n\n }", "@Override\n public void adClicked(Ad arg0) {\n\n }", "@Override\n public void adClicked(Ad arg0) {\n\n ...
[ "0.8257777", "0.8257777", "0.82576305", "0.8239794", "0.8229377", "0.7977129", "0.7972096", "0.79458547", "0.7907658", "0.79013443", "0.7847889", "0.75544065", "0.74914664", "0.6922352", "0.69017684", "0.68146175", "0.6796534", "0.67813796", "0.6759583", "0.6753615", "0.67536...
0.7977144
12
Code to be executed when the user has left the app.
@Override public void onAdLeftApplication() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onLeaveApplication(Ad arg0) {\n\t\t\r\n\t}", "public void onLeave()\n\t{\n\t}", "private void userDidLeave() {\n DeviceSingleton deviceSingleton = DeviceSingleton.getInstance();\n deviceSingleton.setImInARoom(false);\n deviceSingleton.setJoinedChat(false);\n\n ...
[ "0.74342304", "0.7096355", "0.6900877", "0.6877666", "0.67685103", "0.6690852", "0.6677258", "0.6610862", "0.6512196", "0.65119964", "0.65039283", "0.65039283", "0.65039283", "0.6502804", "0.64663637", "0.642442", "0.6390627", "0.6386039", "0.6386039", "0.6377675", "0.6372899...
0.6583283
21
Code to be executed when the user is about to return to the app after tapping on an ad.
@Override public void onAdClosed() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onAdLeftApplication(BannerAd ad) {\n Log.d(TAG, \"User directed out of app by banner\");\n }", "@Override\n public void onBackPressed() {\n /*startAppAd.onBackPressed();\n super.onBackPressed();*/\n\n if(...
[ "0.7181162", "0.6675511", "0.6667841", "0.6647972", "0.6594055", "0.6594055", "0.6594055", "0.6593624", "0.6593246", "0.6593246", "0.6593246", "0.6593246", "0.6593246", "0.6593246", "0.6593246", "0.6593246", "0.6593246", "0.6593246", "0.6593246", "0.6593246", "0.6593246", "...
0.64159405
41
Created by Administrator on 2017/9/5.
public interface MediaMapper { List<MediaUtil> selectMediaReportCount(MediaUtil mediaUtil); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\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\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Ov...
[ "0.62633514", "0.6139725", "0.5884613", "0.5870621", "0.5846664", "0.5832992", "0.5819169", "0.5766528", "0.5761951", "0.575422", "0.575422", "0.57422554", "0.57422537", "0.57422537", "0.57251835", "0.5719461", "0.5673361", "0.5673163", "0.5672905", "0.5672217", "0.5666823", ...
0.0
-1
/ Envoie sous la forme d'un string les 4couleurs
String getMessage() { String message = ""; for(int i =0;i<4;i++) { message = message + String.valueOf(listePeg[i].getColor()); } return message; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "private void createString(){\n for(int i=0;i<this.textPalindrome.length;i++){\n this.joinedTextP...
[ "0.63023007", "0.62419415", "0.61168516", "0.6091279", "0.6055349", "0.60551673", "0.60377586", "0.59819764", "0.59529555", "0.58781284", "0.5876822", "0.5865624", "0.5861922", "0.5799864", "0.57980365", "0.57829916", "0.577963", "0.5734321", "0.57319546", "0.5708975", "0.569...
0.0
-1
/ Etape permettant d'apeller afficherReponse de la respLine de la pegline courante
boolean afficherReponse(String reponse) { return respLine.afficherReponse(reponse); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "void envoiReponseSansDonnees(HttpServletResponse reponse);", "@Override\r\n\tpublic void newLineRecieved() {\n\t\tString response = grblPort.readNextLine();\r\n\t\tresponse.trim();\r\n\t\...
[ "0.6062228", "0.6062228", "0.5885069", "0.58318913", "0.58119243", "0.5762904", "0.5750488", "0.57383215", "0.5712672", "0.5690476", "0.5686342", "0.5682495", "0.56654465", "0.5662064", "0.562877", "0.5619863", "0.559009", "0.55633295", "0.5557388", "0.55358374", "0.5531772",...
0.6809884
0
The exception driven method implementation.
public List<String> readKeysFromMissingObjects_Original(List<String> objectIDs) { List<String> resultSet = new ArrayList<>(); for (String objectIDString : objectIDs) { try { Long objectID = Long.valueOf(objectIDString); IdentifiableManager.current().getIdenti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void doException() {\n\r\n\t}", "protected abstract void exceptionsCatching( ExceptionType exceptionType );", "void mo57276a(Exception exc);", "public abstract void onException(Exception e);", "@Override\n\t\tpublic void onException(Exception arg0) {\n\t\t\t\n\t\t}", "protected abst...
[ "0.7629578", "0.71638715", "0.71361285", "0.7136005", "0.7059486", "0.70276064", "0.6854222", "0.6851731", "0.67633677", "0.6709606", "0.6707195", "0.6704016", "0.6686326", "0.66565245", "0.66400546", "0.66357183", "0.6622442", "0.6592557", "0.65889466", "0.65710336", "0.6516...
0.0
-1
Fixed the most important execution path. This is still for demo purposes. Here are a lot of other issues that still need to be fixed.
public List<String> readKeysFromMissingObjects_Fixed(List<String> objectIDs) { List<String> resultSet = new ArrayList<>(); for (String objectIDString : objectIDs) { try { Long objectID = Long.valueOf(objectIDString); if (!IdentifiableManager.current().contain...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void verifyPathsInSequence() {\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n testGetCompanyHome();\n testGetCabinetFolder();\n testGetCaseFolder();\n testGetDocumentLibraryFolder();\n testEvidence...
[ "0.5814684", "0.56620264", "0.56378335", "0.5528319", "0.5526158", "0.5526158", "0.5237453", "0.52090716", "0.5181161", "0.5133578", "0.5121595", "0.5107042", "0.5087713", "0.50472254", "0.5029399", "0.5017797", "0.4997021", "0.4993181", "0.499248", "0.49868658", "0.49838263"...
0.0
-1
Factory method to create Service Handler Thread for specific request type
public static Runnable getServiceHandler(TcpPacket request, Socket socket, IndexFile index) { MessageType requestType = request.getMessageType(); Request toProcess = null; if (requestType != MessageType.LIST){ toProcess = NetworkUtils.getPacketContents(request); } swi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JavaHandlerThread(String name) {\n mThread = new HandlerThread(name);\n }", "public static IProtocolHandler createHandler(String type) {\n if (type==null) {\n return new RestHandler(); //use REST by default\n } else if (type.equalsIgnoreCase(\"rest\")) {\n ret...
[ "0.61550105", "0.60182756", "0.596373", "0.5953679", "0.5816643", "0.5722027", "0.5713399", "0.57035995", "0.57029873", "0.5669337", "0.56087303", "0.5605279", "0.5593124", "0.55600417", "0.5532596", "0.54745704", "0.53913105", "0.53909045", "0.5387357", "0.5386811", "0.53840...
0.62883645
0
/ Compares two strings based on its ending. (nonJavadoc)
public int compare(String str1, String str2) { int num1 = Integer.parseInt(str1.substring(4, str1.length())); int num2 = Integer.parseInt(str2.substring(4, str2.length())); return num1 - num2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean endOther(String a, String b) {\n String larger, smaller;\n if (a.length() > b.length()){\n larger = a;\n smaller = b;\n }\n else{\n larger = b;\n smaller = a;\n }\n larger = larger.toLowerCase();\n smaller = smaller.toLowerCase();...
[ "0.7607939", "0.685001", "0.6687958", "0.66855514", "0.6610328", "0.64812654", "0.6328248", "0.630188", "0.6236402", "0.6191365", "0.61858803", "0.6157136", "0.6153949", "0.61183393", "0.61081004", "0.6106521", "0.6106425", "0.6073984", "0.6064213", "0.605905", "0.6051654", ...
0.0
-1
Creates a new AddPatchGraphGenerator based on graph gen. The graph gen is dupplicated.
public AddPatchGraphGenerator(GraphGenerator gen) { super(gen, "AddPatch"); this.addedElem = null; if(gen.isIntraPatchDist()) { throw new IllegalArgumentException("Intra patch distance is not supported"); } graph = gen.dupGraphWithout(Collect...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void patternGenAdded(PatternGen patternGen) {\n\t}", "@Override\n\tpublic void add(Generator generator) {\n\t}", "private GraphPattern translateToGP(){\r\n\r\n\t\t//Generate the graph pattern object\r\n\t\tGraphPattern gp = new GraphPattern();\r\n\r\n\r\n\t\t//For each Node object, create a...
[ "0.5279847", "0.5157971", "0.5120709", "0.50413895", "0.49994463", "0.49582082", "0.4867479", "0.48654854", "0.4861771", "0.4847616", "0.47941154", "0.4789531", "0.47849238", "0.47817296", "0.47750747", "0.4773091", "0.47713274", "0.47350967", "0.4732534", "0.4715162", "0.470...
0.80920523
0
Add a patch in this graph. The graph can only have one added patch. Add also the links (edges) linking the patch with others.
public void addPatch(Geometry geom, double capa) throws IOException { if(addedElem != null) { throw new IllegalStateException("Graph already contains an added element"); } BasicGraphBuilder builder = new BasicGraphBuilder(); // crée le noeud DefaultFeature pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AddPatchGraphGenerator(GraphGenerator gen) {\n super(gen, \"AddPatch\");\n this.addedElem = null;\n \n if(gen.isIntraPatchDist()) {\n throw new IllegalArgumentException(\"Intra patch distance is not supported\");\n }\n \n graph = gen.dupGra...
[ "0.6908067", "0.54096085", "0.5406806", "0.53370214", "0.52347046", "0.51580226", "0.51366365", "0.51322335", "0.50797755", "0.50244874", "0.48946247", "0.4885261", "0.48685697", "0.48671922", "0.48363638", "0.48303133", "0.48245513", "0.48219848", "0.4821879", "0.47752768", ...
0.67314583
1
Creates new form SPARQL
public SPARQL() { initComponents(); model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF); model.setDynamicImports(true); model.read("file:"+"data/ontologies/Papers_Ready.owl", "http://www.l3g.pl/ontologies/OntoBeef/Papers.owl", "N-TRIPLE"); model....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object executeQuery(String sparqlQuery);", "public SemanticWorkflow addQueryGraph(String q){\n SPARQLProcess sp = new SPARQLProcess(q);\n sp.setResult(GRAPH);\n return add(sp);\n }", "private MetaSparqlRequest createInsertMT1() {\n\t\tString sparqlStr = \"\"+\n\t\t\t\t\"PREFIX rdf: <http:/...
[ "0.61610156", "0.6121742", "0.60562915", "0.57344806", "0.5673968", "0.5611922", "0.561006", "0.55941236", "0.5499227", "0.5481994", "0.5404786", "0.5367294", "0.53657734", "0.5356505", "0.5316394", "0.52740085", "0.526882", "0.5238063", "0.5216489", "0.5187307", "0.5186428",...
0.5657449
5
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() { jScrollPane1 = new javax.swing.JScrollPane(); sparqlQuery = new javax.swing.JTextArea(); jScrollPane2 = new javax.swing.JScrollPane();...
{ "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.72908777", "0.72908777", "0.72908777", "0.72870827", "0.7248368", "0.7213462", "0.7208004", "0.7195763", "0.7189973", "0.7184436", "0.7159332", "0.71478266", "0.709268", "0.7080727", "0.7057287", "0.6986775", "0.6977119", "0.69554067", "0.69548035", "0.694574...
0.0
-1
/ renamed from: a
public final String mo62918a(Context context) { C0032h.m44b(context, "context"); if (C5203i.f3650c != null) { String a = C5203i.f3650c; if (a == null) { C0032h.m40a(); } return a; } Synchr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.pzp); ctx = getApplicationContext(); PlatformInit.init(this); initUI(); uiThread = viewHandler.getLooper().getThread().getId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivit...
[ "0.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879",...
0.0
-1
Set Excel Download Header.
private void setExcelDownloadHeader(HttpServletResponse response, String fileName) { // 设置response参数,可以打开下载页面 response.reset(); response.setContentType("application/vnd.ms-excel;charset=utf-8"); try { response.setHeader("Content-Disposition", "attachment;filename=" + new Stri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void xsetHeader(org.apache.xmlbeans.XmlString header);", "private void writeColumnHeader() throws WriteException, IOException {\r\n WriteXLS.getInstance().writeColumnLabels();\r\n }", "public void setPageHeader(String header)\n {\n // ignore\n }", "void setHeader(java.lang.String heade...
[ "0.65792406", "0.5985253", "0.59837985", "0.5933894", "0.59285784", "0.59021956", "0.5902036", "0.58863837", "0.58681226", "0.585383", "0.58529586", "0.583617", "0.58051", "0.5735276", "0.57133126", "0.56922895", "0.56870306", "0.5677878", "0.5675071", "0.56714153", "0.564423...
0.731079
0
Launch the serious error dialog (actually an activity)
public static void start(Context _this, Throwable t, String... strings) { // build the info string StringBuilder sb = new StringBuilder(); if (strings != null && strings.length > 0) { for (String string : strings) { sb.append(string); sb.append('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showErrorDialog(int errorCode) {\n\t\t\n }", "private void showErrorDialogue() {\n\t\ttry {\n\t\t\tnew AlertDialog.Builder(mContext)\n\t\t\t\t\t.setTitle(\"Something unfortunate happened...\")\n\t\t\t\t\t.setMessage(\"Your device was not able to verify activation. Please check your internet conn...
[ "0.70707214", "0.69691235", "0.6491161", "0.6490379", "0.6486897", "0.64805144", "0.6471342", "0.6386883", "0.6347939", "0.62415487", "0.62271184", "0.62115294", "0.6205256", "0.62052083", "0.61896336", "0.6166855", "0.6139896", "0.6086913", "0.6075707", "0.6073965", "0.60696...
0.0
-1
try to shut down some things gracefully
public void shutdown() { YbkService.stop(ErrorDialog.this); System.runFinalizersOnExit(true); // schedule actual shutdown request on a background thread to give the service a chance to stop on the // foreground thread new Thread(new Runnable() { public void run...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void abnormalShutDown() {\n\t}", "public void shutDown();", "void shutDown();", "public void shutDown ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"shutDown\", true);\n $in =...
[ "0.7669424", "0.74391806", "0.7390662", "0.7198128", "0.7083221", "0.70388037", "0.70349085", "0.7000221", "0.69372785", "0.69358224", "0.6909055", "0.6907676", "0.68610823", "0.6858003", "0.6853744", "0.6836953", "0.68356276", "0.68241405", "0.68241405", "0.68241405", "0.682...
0.66351587
50
Called when the activity is going away.
@Override protected void onStop() { try { super.onStop(); } catch (RuntimeException rte) { Util.unexpectedError(this, rte); } catch (Error e) { Util.unexpectedError(this, e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onActivityDestroyed() {\n\t\tmTaskDetailNavigator = null;\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tActivityCollector.removeActivity(this);\n\t}", "public void onActivityDestroy() {\n if (currentScreen != null) {\n currentScreen.onActivityDestr...
[ "0.7614211", "0.7410722", "0.7336401", "0.72238016", "0.7170945", "0.7142572", "0.7139328", "0.707454", "0.7038665", "0.7036801", "0.6947479", "0.69331825", "0.6918942", "0.6914844", "0.6897789", "0.6893693", "0.6890087", "0.6890087", "0.68834716", "0.6882826", "0.6882218", ...
0.0
-1
1, 2D DP, O(N^4) time
public int maxSumSubmatrix(int[][] matrix, int k) { int res=Integer.MIN_VALUE; int rows=matrix.length, cols=matrix[0].length; int[][] areas=new int[rows][cols]; for(int i=0; i<rows; i++){ for(int j=0; j<cols; j++){ int area=matrix[i][j]; if(i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int solve() {\n dp[0][0] = 1;\n IntStream.rangeClosed(1, m).forEach(i ->\n IntStream.rangeClosed(0, n).forEach(j ->\n dp[i][j] = j - i >= 0 ?\n (dp[i - 1][j] + dp[i][j - i]) % M :\n dp[i - 1][j]));\n ...
[ "0.6467575", "0.634383", "0.62800395", "0.6208486", "0.6199294", "0.61530954", "0.61524606", "0.6143202", "0.60714936", "0.60695875", "0.60619277", "0.6020264", "0.5947631", "0.59435856", "0.5876857", "0.5875153", "0.5785866", "0.5749918", "0.5748085", "0.5741712", "0.5734871...
0.0
-1
2, 2D dp, O(N^3 logN) time, use treeset to find left boundary each floor
public int maxSumSubmatrix(int[][] matrix, int k) { int res=Integer.MIN_VALUE; int rows=matrix.length, cols=matrix[0].length; int[][] areas=new int[rows][cols]; for(int i=0; i<rows; i++){ for(int j=0; j<cols; j++){ int area=matrix[i][j]; if(i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void wallsAndGates(int[][] rooms) {\n if (rooms.length == 0 || rooms[0].length == 0) {\n return;\n }\n\n int m = rooms.length;\n int n = rooms[0].length;\n\n Queue<int[]> queue = new LinkedList();\n boolean[][] visited = new boolean[m][n];\n ...
[ "0.62719864", "0.58649385", "0.5858445", "0.57926714", "0.5714096", "0.56916124", "0.5686149", "0.5683357", "0.566206", "0.56609756", "0.5656466", "0.5651889", "0.5630468", "0.5600726", "0.5577441", "0.5561226", "0.55579966", "0.55430835", "0.5537966", "0.5534166", "0.5489104...
0.0
-1
3, simplified. 1, space use only one D, to store each loop; 2, judge col & row for directions
public int maxSumSubmatrix(int[][] matrix, int target) { int row = matrix.length; if(row==0)return 0; int col = matrix[0].length; int m = Math.min(row,col); int n = Math.max(row,col); //indicating sum up in every row or every column boolean colIsBig = col>row; int res = Integer.MIN_VALUE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void TwoDimTrav(int[][] arr, int row, int col){\n\n int[] dr = new int[]{ -1, 1, 0, 0};\n int[] dc = new int[]{ 0, 0, 1, -1};\n\n for(int i = 0; i < 4; i++){\n int newRow = row + dr[i];\n int newCol = col + dc[i];\n\n if(newRow < 0 || newCol < 0 || newRo...
[ "0.6818437", "0.6564824", "0.6464539", "0.6263662", "0.6231886", "0.61891246", "0.6177159", "0.60566145", "0.59723186", "0.59680766", "0.59254956", "0.5890348", "0.5865209", "0.5846478", "0.5830472", "0.58259434", "0.5822984", "0.5817125", "0.5788202", "0.5781435", "0.5779618...
0.0
-1
/ Enabled aggressive block sorting
@Override protected void subscribeActual(Subscriber<? super T> object) { MaybeSource<? extends T>[] arrmaybeSource = this.sources; int n = arrmaybeSource.length; SimpleQueue simpleQueue = n <= MaybeMergeArray.bufferSize() ? new MpscFillOnceSimpleQueue(n) : new ClqSimpleQueue(); simpl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortBlocks(){\n\t\tCurrentSets = getCurrentSets();\n\t\tif(CurrentSets == 1){\n\t\t\treturn;\n\t\t}else{\n\t\t\tfor(i = 0; i < CurrentSets - 1; i++){\n\t\t\t\tfor(j = i + 1; j < CurrentSets; j++){\n\t\t\t\t\tif((Integer.parseInt(blocks[i].getHexTag(), 16)) > (Integer.parseInt(blocks[j].getHexTag(), 16)...
[ "0.719662", "0.6253113", "0.6209965", "0.60641325", "0.6062344", "0.60514784", "0.6039714", "0.6020895", "0.6018125", "0.6015914", "0.59652436", "0.5950544", "0.5932971", "0.5900926", "0.58313674", "0.5802383", "0.5788351", "0.57315594", "0.56716985", "0.56670487", "0.5629508...
0.0
-1
/ Enabled aggressive block sorting
void drainFused() { int n; int n2 = 1; Subscriber<T> subscriber = this.actual; SimpleQueueWithConsumerIndex<Object> simpleQueueWithConsumerIndex = this.queue; do { if (this.cancelled) { simpleQueueWithConsumerIndex.clear(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortBlocks(){\n\t\tCurrentSets = getCurrentSets();\n\t\tif(CurrentSets == 1){\n\t\t\treturn;\n\t\t}else{\n\t\t\tfor(i = 0; i < CurrentSets - 1; i++){\n\t\t\t\tfor(j = i + 1; j < CurrentSets; j++){\n\t\t\t\t\tif((Integer.parseInt(blocks[i].getHexTag(), 16)) > (Integer.parseInt(blocks[j].getHexTag(), 16)...
[ "0.719662", "0.6253113", "0.6209965", "0.60641325", "0.6062344", "0.60514784", "0.6039714", "0.6020895", "0.6018125", "0.6015914", "0.59652436", "0.5950544", "0.5932971", "0.5900926", "0.58313674", "0.5802383", "0.5788351", "0.57315594", "0.56716985", "0.56670487", "0.5629508...
0.0
-1
file at root Catalog (it will be txt)
@Before public void setUp() throws Exception { fileFinder = new FileFinder(); testFiles = new ArrayList<>(10); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Path getMainCatalogueFilePath();", "@Override\n public void command(String path) {\n StringBuilder html = new StringBuilder();\n html.append(\"<!doctype html>\\n\");\n html.append(\"<html lang='en'>\\n\");\n\n html.append(\"<head>\\n\");\n html.append(\"<meta charset='utf-8'...
[ "0.68494034", "0.62724", "0.58964044", "0.5834224", "0.5834224", "0.5834224", "0.5811175", "0.5795255", "0.5763858", "0.5699503", "0.56514037", "0.5628187", "0.56185454", "0.56074756", "0.5579164", "0.5577988", "0.55410534", "0.5497796", "0.54913306", "0.5485729", "0.5484564"...
0.0
-1
Here we test method with Mask like ? or .that is incorrect regular expression this why we use our private method (String replaseIncorrectRegularExpression(String mask)).
@Test public void findWithMaskIncorrectRegularExpression() throws Exception { List<File> fileList = fileFinder.find(path, "?.txt", fileFinder.getFILES()); System.out.println(fileList.size()); int sero = fileList.size(); assertThat(sero == (fileList.size()), is(true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean isRegex() {\n return false;\n }", "@Override\n\tpublic boolean test(MyRegex t) {\n\t\treturn false;\n\t}", "@Test\n @Disabled\n public void testValidateFormat() {\n assertTrue(RegExprMain.validateFormat(\"CC222CC\"));\n assertTrue(RegExprMain.validate...
[ "0.5937936", "0.5840171", "0.576688", "0.57652235", "0.57536376", "0.5716944", "0.5684111", "0.5641903", "0.56361824", "0.5568839", "0.5538428", "0.5538428", "0.5519104", "0.55109954", "0.54756796", "0.54637533", "0.5448868", "0.54363054", "0.541988", "0.54038775", "0.5394659...
0.55479455
10
4. Client creates "visitor" objects and passes each to accept() calls
public static void main(String[] args) { UpVisitor_6 up = new UpVisitor_6(); DownVisitor_7 down = new DownVisitor_7(); for (int i = 0; i < list.length; i++) { list[i].accept(up); } for (int i = 0; i < list.length; i++) { list[i].accept(down); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void accept(ConnectionClientSocket client) {\n client.visit(this);\n }", "public abstract void accept(Visitor visitor);", "void accept(Visitor visitor);", "public void accept(Visitor visitor);", "@Override\n public void accept(VisitorMessageFromServer visitorMessageFromSe...
[ "0.709015", "0.6400882", "0.62701744", "0.62634486", "0.61718655", "0.6097047", "0.59725595", "0.5948307", "0.5938647", "0.58919954", "0.58213204", "0.5798589", "0.57981384", "0.57383627", "0.57244205", "0.5722761", "0.5699643", "0.5698542", "0.56926715", "0.56328416", "0.563...
0.0
-1
Get the ViewPager and set its PagerAdapter so that it can display items
private void initViewPager() { ViewPager viewPager = (ViewPager) findViewById(R.id.viewpager); if (viewPager != null) { viewPager.setAdapter(new MainPagerAdapter(getFragmentManager())); } // Give the TabLayout the ViewPager TabLayout tabLayout = (TabLayout) findViewB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializeViewPager() {\n mProductsViewPagerAdapter = new ProductsViewPagerAdapter(this, mMobileImages);\n mBinding.vPPdpProductImages.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n @Override\n public void onPageScrolled(int position, float positionOffset, int positio...
[ "0.71702206", "0.69975734", "0.69870186", "0.69778335", "0.6964479", "0.69599247", "0.6955801", "0.69445014", "0.6938361", "0.6927485", "0.6918815", "0.6883868", "0.6831151", "0.68289685", "0.6828031", "0.67952454", "0.67879266", "0.67844737", "0.67779756", "0.6769411", "0.67...
0.64297533
37
Code here will be triggered once the drawer opens, we don't need anything to happen yet, hence leave it blank
@Override public void onDrawerClosed(View drawerView) { super.onDrawerClosed(drawerView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onDrawerOpened() {\n\t\t\t\tshowDown();\n\t\t\t}", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n ...
[ "0.7960581", "0.768245", "0.768245", "0.768245", "0.768245", "0.76421607", "0.76346356", "0.7600924", "0.7567198", "0.7517056", "0.7517056", "0.7517056", "0.7517056", "0.7517056", "0.7517056", "0.7517056", "0.7517056", "0.7517056", "0.7517056", "0.7517056", "0.7467916", "0....
0.70649767
55
Code here will be triggered once the drawer opens, we don't need anything to happen yet, hence leave it blank
@Override public void onDrawerOpened(View drawerView) { super.onDrawerOpened(drawerView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onDrawerOpened() {\n\t\t\t\tshowDown();\n\t\t\t}", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n public void onDrawerStateChanged(int newState) {\n }", "@Override\n ...
[ "0.7960581", "0.768245", "0.768245", "0.768245", "0.768245", "0.76421607", "0.76346356", "0.7600924", "0.7567198", "0.7467916", "0.7467916", "0.7467916", "0.740462", "0.7329304", "0.7329304", "0.7329304", "0.7329304", "0.7289929", "0.7248869", "0.7248869", "0.72331405", "0....
0.7517056
19
/ Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: drawerLayout.openDrawer(GravityCompat.START); return true; case R.id.action_qr_code: showQrDialog(); ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.80291903", "0.7851101", "0.7825998", "0.7809197", "0.77423245", "0.7730639", "0.7656539", "0.76486015", "0.7575833", "0.7523627", "0.74841017", "0.7479448", "0.7477789", "0.7473363", "0.74726325", "0.74652255", "0.746521", "0.74541456", "0.745017", "0.74453014", "0.7445301...
0.0
-1
/ PAYMENTS INTEGRATION ENDS HERE
@Override public void onRequestPermissionsResult(int requestCode, @NonNull String permissions[], @NonNull int[] grantResults) { switch (requestCode) { case FINE_LOCATION_PERMISSION_REQUEST: { // If request is cancell...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void autoPay() {}", "public void calculatePayment() {}", "CarPaymentMethod processPayPal();", "private void launchPayUMoneyFlow(String name, String number, String description, String amt) {\n\n PayUmoneyConfig payUmoneyConfig = PayUmoneyConfig.getInstance();\n\n //Use this to set your cu...
[ "0.64588827", "0.6262021", "0.6156113", "0.5940736", "0.59161603", "0.5906324", "0.58464515", "0.58417356", "0.5815419", "0.5786655", "0.5765715", "0.57393456", "0.57337445", "0.5708306", "0.5707951", "0.5669845", "0.5667047", "0.5658102", "0.5644464", "0.5597369", "0.5555349...
0.0
-1
TODO: init peers should probably be called in onStart? (e.g. if connection settings change > need to reload) TODO: do we need to stop the servers/clients first before we lose the references?
private void initPeers() { this.servers.clear(); this.clients.clear(); if (SharedPrefUtils.isConnectionNfcEnabled(this)) { clients.add(new NFCClient(this, walletServiceBinder)); servers.add(new NFCServerACSCLTV(this, walletServiceBinder)); servers.add(new NFC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void initialize()\n {\n localPeerIDCount = 0;\n\n }", "private void setUpPeers() {\n SdxParticipantsConfig.PeerConfig peer1 =\n new SdxParticipantsConfig.PeerConfig(Optional.of(PEER1_NAME),\n IpAddress.valueOf(PE...
[ "0.67200506", "0.64776325", "0.64512944", "0.63968784", "0.6334722", "0.6316276", "0.6219813", "0.6203452", "0.61991", "0.6155754", "0.606091", "0.60518074", "0.59104055", "0.5904325", "0.58820224", "0.5875123", "0.58669025", "0.5847091", "0.5823106", "0.58195", "0.5812666", ...
0.78112334
0
Implemented by classes that allow to search for patterns in their keys.
public interface IPatternMap<K, V> { /** * return a Hashtable of the entries that matche the pattern * @param pattern * @return */ public Hashtable<K, V> getPattern(String pattern); /** * return a Hashtable of the entries that match the wildcard (*) * @param pattern * @return */ p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<String> getKeysMatchingPattern(String pattern);", "public Iterable<String> keysThatMatch(String pattern)\r\n {\r\n Queue<String> q = new Queue<String>();\r\n if ((pattern.equals(\"\") || pattern.equals(\".\")) && null_str_val != null)\r\n q.enqueue(\"\");\r\n collect(root, ...
[ "0.73151857", "0.6962186", "0.6826672", "0.6543227", "0.65428674", "0.65017444", "0.64191", "0.6406253", "0.62909096", "0.60970753", "0.5913391", "0.5865319", "0.5742614", "0.5638488", "0.56011385", "0.5583521", "0.5477716", "0.54657024", "0.53782874", "0.53707033", "0.536006...
0.6536436
5
return a Hashtable of the entries that matche the pattern
public Hashtable<K, V> getPattern(String pattern);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public Map<K, ICacheElement<K, V>> processGetMatching(final String pattern)\r\n {\r\n final Map<K, ICacheElement<K, V>> elements = new HashMap<>();\r\n Set<K> keyArray = null;\r\n storageLock.readLock().lock();\r\n try\r\n {\r\n keyArray = new HashS...
[ "0.6068619", "0.6048493", "0.5913475", "0.5888525", "0.5813764", "0.58076847", "0.5799221", "0.56931216", "0.5659939", "0.5645634", "0.55130005", "0.5504227", "0.5500853", "0.54843545", "0.54813087", "0.5466314", "0.5462176", "0.54165167", "0.53841025", "0.5362029", "0.536140...
0.71880645
0
return a Hashtable of the entries that match the wildcard ()
public Hashtable<K, V> getWildcard(String wildcard);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<String> getKeysMatchingPattern(String pattern);", "public Hashtable<K, V> getPattern(String pattern);", "public interface IPatternMap<K, V> {\r\n\r\n\t/**\r\n\t * return a Hashtable of the entries that matche the pattern\r\n\t * @param pattern\r\n\t * @return\r\n\t */\r\n\tpublic Hashtable<K, V> getPattern...
[ "0.63731754", "0.62905836", "0.6243083", "0.6129169", "0.5939918", "0.5777408", "0.57610524", "0.5732689", "0.54086035", "0.5368946", "0.5366362", "0.53629136", "0.5346965", "0.53101826", "0.52508205", "0.5188951", "0.51817703", "0.5176121", "0.51127756", "0.5107946", "0.5037...
0.7875116
0
Tries to move this object on the given lawn Does nothing if Move can't move on the given lawn
void moveForward(Lawn lawn);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean attemptMove(Player currentPlayerObj, Coordinate move);", "public void tryMove() {\n if(!currentPlayer.getHasPlayed()){\n if (!currentPlayer.isEmployed()) {\n String destStr = chooseNeighbor();\n\n currentPlayer.moveTo(destStr, getBoardSet(de...
[ "0.6661239", "0.6470996", "0.6424009", "0.63251394", "0.6313694", "0.6265652", "0.6261051", "0.6251393", "0.6235675", "0.62053263", "0.61391884", "0.6129989", "0.61154735", "0.6113722", "0.60952187", "0.60868067", "0.6070527", "0.60011023", "0.5993102", "0.59905195", "0.59761...
0.7187081
0
Gives the next hypothetical position of the Move
String computeNextLawnPosition();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int getMove() \t\t\t\t{\treturn move;\t\t}", "protected int getMove(){\r\n\t\treturn this.move;\r\n\t}", "public double getDirectionMove();", "@Override\n\tpublic Direction getMove() {\n\t\t//Equal probability for each of the 8 compass direction, as well as staying stationary\n\t\treturn choices[th...
[ "0.7311436", "0.71275705", "0.7116755", "0.6981374", "0.69410133", "0.6863821", "0.6808249", "0.6789127", "0.6756809", "0.67447156", "0.67140996", "0.6687386", "0.6684431", "0.6660633", "0.66284245", "0.6618953", "0.6616886", "0.6602614", "0.658466", "0.6580888", "0.65741616"...
0.6643404
14
Gives the Move position
String getLawnPosition();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int getMove() \t\t\t\t{\treturn move;\t\t}", "protected int getMove(){\r\n\t\treturn this.move;\r\n\t}", "public Coordinate getMoveTo();", "public String getMove() {\n\t\treturn move;\n\t}", "public void getMove(){\n\t\t\n\t}", "public static Image movePoint()\n\t{\n\t\treturn movePoint;\n\t}",...
[ "0.78123695", "0.76759493", "0.7586757", "0.7550126", "0.7469525", "0.7365069", "0.72170854", "0.72170854", "0.7155283", "0.7119773", "0.70952404", "0.7090121", "0.7077239", "0.70662355", "0.702471", "0.6997874", "0.6986653", "0.69830585", "0.69753796", "0.69527656", "0.69479...
0.0
-1
Log a firebase event.
@Override public void onClick(View view) { activityInterface.logEventSelectContent("restartButton", "restartButton", MainActivity.CONTENT_TYPE_BUTTON); onClickRestart(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logHappeningClick(String happeningId, String userId){\n DatabaseReference mDatabase = FirebaseDatabase.getInstance().getReference();\n mDatabase.child(\"analytics\").child(\"happenings\").child(happeningId).child(\"clicks\").child(userId).push().setValue(System.currentTimeMillis(), new Da...
[ "0.6501927", "0.6205363", "0.60270864", "0.6007128", "0.59840006", "0.5937901", "0.5930952", "0.5772442", "0.5728594", "0.57232696", "0.56895804", "0.5620119", "0.5616759", "0.56053185", "0.560514", "0.5574748", "0.5565031", "0.5561499", "0.5542718", "0.5537796", "0.55152285"...
0.0
-1
Check if maximum number of digits is reached:
@Override public void onTextChanged(CharSequence s, int start, int before, int count) { if (inputET.length() >= Digits.currentDigit.getFractionalPart().length()) { // End the game end(inputET.length() - 1, true); return; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testMaxDigit() {\r\n int number = 472;\r\n int expResult = 7;\r\n int result = Main.maxDigit(number);\r\n \r\n assertEquals(expResult, result);\r\n }", "public static boolean checkdigitsequal() {\n int count2=0;\n for (a = 0; a < 10; a+...
[ "0.71069163", "0.66942513", "0.62052023", "0.6136906", "0.6098808", "0.60070664", "0.5987239", "0.5986909", "0.598297", "0.5950162", "0.5894608", "0.58900034", "0.5858699", "0.5847059", "0.5822172", "0.5812941", "0.580123", "0.57846093", "0.5765961", "0.57591647", "0.5732146"...
0.0
-1
4 STEP: 1. find the mid. 2. cut the list to two list. 3. REVERSE the right side. 4. MERGE the two list.
public void reorderList(ListNode head) { if (head == null) { return; } else if (head.next == null) { return; } ListNode pre = findMidPre(head); // cut the two list. ListNode right = pre.next; pre.next = null; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void merge(ArrayList<Integer> leftList, ArrayList<Integer> rightList, ArrayList<Integer> outList) {\n\n int leftIndex = 0;\n int rightIndex = 0;\n int outIndex = 0;\n\n while (leftIndex < leftList.size() && rightIndex < rightList.size()) {\n\n if (leftList.get(...
[ "0.7089748", "0.70605284", "0.69283795", "0.6725452", "0.66624117", "0.65185684", "0.651719", "0.6433174", "0.6432978", "0.6427405", "0.63949597", "0.63936615", "0.6392688", "0.6330468", "0.63226146", "0.62899274", "0.6269533", "0.6264302", "0.6225878", "0.6219423", "0.619076...
0.5437451
92
reverse the linked list.
public ListNode reverse(ListNode head) { if (head == null) { return null; } ListNode dummy = new ListNode(0); while (head != null) { // store the next node. ListNode tmp = head.next; // insert the head into the head! ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reverse() {\n\n\t\tif (head == null) {\n\t\t\tSystem.out.println(\"List is empty.\");\n\t\t\treturn;\n\t\t}\n\t\tint nodes = nodeCounter();\n\t\tDLNode t = tail.prev;\n\t\thead = tail;\n\t\tfor (int i = 0; i < nodes - 1; i++) {\n\n\t\t\tif (t.list == null && t.val != Integer.MIN_VALUE) {\n\t\t\t\tthis....
[ "0.8389753", "0.8319704", "0.8295057", "0.8287281", "0.8266125", "0.8146159", "0.8061732", "0.8028145", "0.7982692", "0.79154587", "0.79029214", "0.7864058", "0.7785455", "0.77025133", "0.7688793", "0.76625514", "0.7653209", "0.7643598", "0.7619647", "0.76119375", "0.7585907"...
0.71423227
54
merge head1 and head 2 one by one.
public void merge(ListNode head1, ListNode head2) { ListNode dummy = new ListNode(0); ListNode cur = dummy; while (head1 != null && head2 != null) { // 注意这里容易出错。head1要先指向它的下一个,再处理head2,否则cur.next=head2这里会改掉 // head1的指向. cur.next = head1; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListNode merge(ListNode h1, ListNode h2){\r\n if(h1 == null){\r\n return h2;\r\n }\r\n if(h2 == null){\r\n return h1;\r\n }\r\n \r\n if(h1.val < h2.val){\r\n h1.next = merge(h1.next, h2);\r\n return h1;\r\n }\r\n ...
[ "0.7095442", "0.674513", "0.6496281", "0.6494682", "0.6434286", "0.6382796", "0.6354457", "0.63539654", "0.632957", "0.6320961", "0.6296411", "0.62936336", "0.6283213", "0.62590283", "0.6230766", "0.62235135", "0.6218477", "0.62012184", "0.61825794", "0.6160689", "0.61547244"...
0.76878285
0
Instantiation of Squad A
public static void main(String[] args) { Wizard wizard1 = new Wizard(); Wizard wizard2 = new Wizard(); Ninja ninja1 = new Ninja(); Ninja ninja2 = new Ninja(); // Instantiation of Squad B Ninja ninja3 = new Ninja(); Wizard wizard3 = new Wizard(); Samurai samurai1 = new Samurai(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Aso() {\n\t\tName = \"Aso\";\n\t\ttartossag = 3;\n\t}", "public Aliases( ) {\n\t}", "public Ads() {\n }", "public Aanbieder() {\r\n\t\t}", "public Sku() {\n\t}", "public void displaySquad(Squad squad);", "public DsaQ()\n\t{\n\t q = new DSAlinkedL();\n\t}", "public SbiDomains() {\n ...
[ "0.58838767", "0.5830699", "0.5809864", "0.57707494", "0.57599807", "0.5733765", "0.5691116", "0.5671162", "0.5610218", "0.5588411", "0.5557728", "0.5498281", "0.54652286", "0.54499936", "0.544224", "0.5433005", "0.54302096", "0.5422163", "0.54152656", "0.54036736", "0.540059...
0.0
-1
Construtor da classe Retangulo.
public Retangulo(double[] pLados) { super(pLados); /* invoca o construtor da classe Pai passando pLados como parametros. */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RetanguloTest() {\n retangulo = new Retangulo();\n }", "public Respuesta() {\n }", "public FiltroMicrorregiao() {\r\n }", "public Rectangulo(){}", "public TCubico(){}", "public Recursos() {\n }", "public Carrera(){\n }", "public Valvula(){}", "public Troco() {\n }", ...
[ "0.67112523", "0.6537068", "0.6525363", "0.6460837", "0.6328844", "0.6280346", "0.62706655", "0.62269574", "0.61636776", "0.6134365", "0.6133332", "0.6075228", "0.6027967", "0.602716", "0.60113186", "0.6009713", "0.59963274", "0.59917957", "0.59678286", "0.5963446", "0.596064...
0.65362346
2
Retorna a Area do Retangulo
public double getArea() { /* * area = base (1o lado ou 3o lado) x altura (2o lado ou 4o lado) */ return this.getLado(1) * this.getLado(2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double areaRectangulo() {\n double area = altura * ancho;\n return area;\n }", "@Override\r\n\tpublic void getarea(int a) {\n\t\t\r\n\t}", "@Override\n\tpublic double area() {\n\t\treturn getBase()*getAltura();\n\t}", "double getArea(){\n return 3.14 * raggio * ragg...
[ "0.7224728", "0.6997131", "0.69548124", "0.69123614", "0.6902117", "0.6784983", "0.6772587", "0.67293537", "0.67293537", "0.6683766", "0.6674891", "0.65916467", "0.65916467", "0.65916467", "0.658967", "0.658967", "0.658967", "0.6533325", "0.65191287", "0.6494313", "0.6489632"...
0.69557744
2
Created by Gautam on 5/5/14.
public interface StoreRestoreI { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpu...
[ "0.60443145", "0.60040236", "0.5937519", "0.5834581", "0.58225197", "0.5799943", "0.5797583", "0.5797583", "0.5791616", "0.57578754", "0.5752043", "0.5736722", "0.57192874", "0.571005", "0.5708724", "0.56783766", "0.5676016", "0.56659174", "0.56587225", "0.56587225", "0.56587...
0.0
-1
Dto sinifilari icin kullanilan donusturucu arayuzudur.
public interface DtoConverter<D extends BaseDto, E extends BaseEntity> { /** * Verilen {@link BaseEntity} nesne listesini {@link Set<BaseDto>}'e cevirmektedir. * * @param entityList {@link BaseEntity} listesi * @return Set */ Set<D> convertToDtoSet(Collection<E> entityList); /** * Verilen {@li...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CambioComplementariosDTO() { }", "public AtendimentoJuridicoDTO toDTO(AtendimentoJuridicoEntity entity){\n\t\tAtendimentoJuridicoDTO dto = new AtendimentoJuridicoDTO();\n\t\tBeanUtils.copyProperties(entity, dto); \n\t\treturn dto ;\n\t}", "public PersonaDTO(){}", "public ProductoDTO(){\r\n\t\t\r\n\t}"...
[ "0.692277", "0.66467726", "0.6524982", "0.6517216", "0.6443716", "0.64289594", "0.6413875", "0.6356729", "0.6293222", "0.6253046", "0.6206516", "0.61567676", "0.6125778", "0.61162764", "0.6073799", "0.6054566", "0.6027176", "0.60161686", "0.59892654", "0.5988002", "0.5987312"...
0.5456099
98
/ returns a string of its children types (nonJavadoc)
public Object visitReturnStmt(GoIRReturnStmtNode node) { return node.getChild().accept(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String treeType();", "public String getTreeType();", "String getTypeAsString();", "String getFullName() {\r\n StringBuffer buf = new StringBuffer(type.getName());\r\n Summary current = type.getParent();\r\n\r\n while (current != null) {\r\n if (current instanceof Typ...
[ "0.65876085", "0.65306294", "0.6427166", "0.63612795", "0.6183714", "0.618299", "0.6148939", "0.6110059", "0.60929996", "0.608889", "0.5996594", "0.5996594", "0.5996594", "0.5996594", "0.5996594", "0.5996594", "0.5996594", "0.5996594", "0.5996594", "0.5996594", "0.5996594", ...
0.0
-1
/ returns a string of its return types (nonJavadoc)
public Object visitInvoke(GoIRInvokeNode node){ String b = ""; GoIRFuncTypeNode t = GoTruffle.IRFunctions.get(node.getFunctionNode().getIdentifier()); if(t != null) { b = (String) t.getResults().accept(this); } return b; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getReturnType();", "TypeDescription getReturnType();", "public Type getReturnType() {\n/* 227 */ return Type.getReturnType(this.desc);\n/* */ }", "public String getReturnType() {\n return returnType;\n }", "@Override\n public String getReturnType() {\n Object ref = returnType_;...
[ "0.7997034", "0.69696295", "0.6814218", "0.6729022", "0.66805387", "0.6664279", "0.66641986", "0.6652956", "0.6647478", "0.6646296", "0.66123104", "0.6553741", "0.6521927", "0.6480535", "0.64619774", "0.64106226", "0.6381355", "0.6381355", "0.6381355", "0.6381355", "0.6381355...
0.0
-1
/ returns a concatenation of types by "," from its children (nonJavadoc)
public Object visitArrayListExpr(GoIRArrayListExprNode node) { String z = ""; if(node != null) { ArrayList<GoBaseIRNode> children = node.getChildren(); if(children != null) { for(int i = 0 ; i < children.size(); i ++) { z += children.get(i).accept(this); if(i < children.size() -1) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFullName() {\r\n StringBuffer buf = new StringBuffer(type.getName());\r\n Summary current = type.getParent();\r\n\r\n while (current != null) {\r\n if (current instanceof TypeSummary) {\r\n buf.insert(0, \".\");\r\n buf.insert(0, ((TypeSummar...
[ "0.5857463", "0.57063127", "0.5641434", "0.55275315", "0.5430238", "0.53835577", "0.5379874", "0.53712225", "0.53491396", "0.53076845", "0.53051096", "0.5284712", "0.5270037", "0.52650106", "0.5212141", "0.5196346", "0.5185463", "0.5182423", "0.51142335", "0.5107967", "0.5095...
0.0
-1
/ Returns the arraylistexpr string of types (nonJavadoc)
public Object visitFieldList(GoIRFieldListNode node){ if(node!= null) { if(node.getFields()!= null) { return node.getFields().accept(this); } } return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String typesToString()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tif(contents instanceof Variable<?>[])\n\t\t{\n\t\t\tfor(E c : contents)\n\t\t\t{\n\t\t\t\tsb.append(((Variable<?>) c).getType().toString() + \", \");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor(E c : contents)\n\t\t\t{\n\t\t\t\t...
[ "0.6938319", "0.6609316", "0.646158", "0.6460664", "0.6355083", "0.61726826", "0.59832287", "0.59297764", "0.59125245", "0.59054923", "0.5860921", "0.58051383", "0.57916045", "0.5786241", "0.5778004", "0.5734136", "0.57265055", "0.56141144", "0.56007946", "0.55928326", "0.557...
0.0
-1
/ Returns the type in the field (nonJavadoc)
public Object visitField(GoIRFieldNode node) { return node.getType().getIdentifier(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Class<?> getType(){\n return field.getType();\n }", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.St...
[ "0.7895865", "0.762163", "0.762163", "0.762163", "0.762163", "0.762163", "0.762163", "0.762163", "0.762163", "0.762163", "0.762163", "0.762163", "0.762163", "0.762163", "0.7408064", "0.7336835", "0.7336835", "0.7336835", "0.7336835", "0.7336835", "0.7336835", "0.7336835", ...
0.0
-1
/ returns type of variable (nonJavadoc)
public Object visitIdent(GoIRIdentNode node){ TypeInfo m = lexicalscope.get(node.getIdentifier()); if(m != null) { return m.getType(); } return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "type getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", ...
[ "0.6966697", "0.69170845", "0.69170845", "0.69170845", "0.69170845", "0.69170845", "0.69170845", "0.69170845", "0.69170845", "0.69170845", "0.69170845", "0.69170845", "0.69170845", "0.69170845", "0.69026375", "0.6898564", "0.6898564", "0.6898564", "0.6898564", "0.6898564", "0...
0.0
-1
/ TODO idk if this doing something right I think I need to check if its a number and not a string (nonJavadoc)
public Object visitIndexNode(GoIRIndexNode node){ String type = (String) node.getIndex().accept(this); if(!(type.equalsIgnoreCase("int"))) { throw new GoException("non-integer slice index \""+type +"\"" ); } return type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean validNumber(String thing) {\n\t\treturn validDouble(thing);\n\t}", "public abstract boolean isNumeric();", "private boolean isNumber(Object o) {\n\t\tif(o instanceof String) return isNumber((String) o);\n\t\telse if(o instanceof Double) return true;\n\t\telse return false;\n\t}", "@Tes...
[ "0.72930956", "0.68743765", "0.6770963", "0.67086136", "0.6591574", "0.6523042", "0.6470754", "0.64641446", "0.6436091", "0.6390883", "0.63894737", "0.63848937", "0.63672286", "0.6365718", "0.6358729", "0.63498276", "0.6346392", "0.6340304", "0.632807", "0.63262504", "0.62688...
0.0
-1
/ TODO must figure out proper promotion of types and other actual typechecking, for now only check if they are of the same type (nonJavadoc)
public Object visitBinaryExpr(GoIRBinaryExprNode node){ String l = node.getType(); if(l!= null) {//already discovered type of children return l; } l = (String) node.getLeft().accept(this); String r = (String) node.getRight().accept(this); GoException error = Compare(l,r,"visitbinary"); if(error != null...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkTypes(Variable first, Variable second) throws OutmatchingParameterType {\n VariableVerifier.VerifiedTypes firstType = first.getType();\n VariableVerifier.VerifiedTypes secondType = second.getType();\n\n if (!firstType.equals(secondType)) {\n throw new OutmatchingPa...
[ "0.67251503", "0.645573", "0.63564235", "0.6355409", "0.63318", "0.6143524", "0.60583234", "0.6039302", "0.59298354", "0.5856284", "0.5774121", "0.57643753", "0.57637763", "0.5738338", "0.571752", "0.56992275", "0.5661777", "0.56502074", "0.5634401", "0.5632962", "0.56217396"...
0.0
-1
/ Compares 2 strings in length then .equalsIgnoreCase if not equal in length or content, return GoException Prints out message for debugging
public static GoException Compare(String a,String b, String message) { String[] side1 = null; String[] side2 = null; if(a == null && b == null) { return null; } if(a!=null){ side1 = a.split(","); } else { side1 = new String[] {""}; } if(b!=null){ side2 = b.split(","); } else { side2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testCompareStrings() {\n\t\tString one = \"Hello\";\n\t\tString two = \"in the house\";\n\t\t//Gro▀schreibung vor Kleinschreibung\n\t\tassertTrue(comp.compareStrings(one, two) < 0);\n\t\tassertEquals(0, comp.compareStrings(one, one));\n\t\tassertTrue(comp.compareStrings(two, one) > 0);\n\t}", "public...
[ "0.6319886", "0.60898817", "0.6086391", "0.60323626", "0.6006156", "0.59623516", "0.59568846", "0.5956831", "0.5937805", "0.5936232", "0.5921117", "0.5887501", "0.5878285", "0.58460826", "0.5829695", "0.5827892", "0.57921803", "0.57921803", "0.5783137", "0.57716435", "0.57546...
0.5379224
73
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.shop, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246451", "0.7201833", "0.7195169", "0.7176824", "0.71071094", "0.7039687", "0.70379424", "0.7011622", "0.70095545", "0.69799995", "0.6945173", "0.69389343", "0.6933555", "0.69172555", "0.69172555", "0.68906796", "0.688355", "0.687496", "0.6874772", "0.68613136", "0.686131...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { Intent intent = new Intent(ShopActivity.this, InfoActivity.class); startActivity(intent); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79041183", "0.7805934", "0.77659106", "0.7727251", "0.7631684", "0.7621701", "0.75839096", "0.75300384", "0.74873656", "0.7458051", "0.7458051", "0.7438486", "0.742157", "0.7403794", "0.7391802", "0.73870087", "0.7379108", "0.7370295", "0.7362194", "0.7355759", "0.73454577...
0.0
-1
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.nav_bank) { Intent intent = new Intent(ShopActivity.this, MainActivity.class); startActivity(intent); Sh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tr...
[ "0.7882029", "0.7235578", "0.6987005", "0.69458413", "0.6917864", "0.6917864", "0.6883472", "0.6875181", "0.68681556", "0.6766498", "0.67418456", "0.67207", "0.6716157", "0.6713947", "0.6698189", "0.66980195", "0.66793925", "0.66624063", "0.66595167", "0.6646381", "0.6641224"...
0.0
-1
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: businessservices
public ObjectFactory() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BusinessEntityFactory getBusinessEntityFactory();", "SchemaBuilder withFactory(String factoryClassName);", "private ORMServiceFactory() { }", "private ObjectFactory createObjectFactory(String objectFactoryNamespace)\r\n throws CockpitConfigurationException {\r\n try {\r\n return new ...
[ "0.69350386", "0.6758255", "0.6347879", "0.6330494", "0.6263585", "0.6224187", "0.62121385", "0.6197325", "0.6174912", "0.6174912", "0.6174912", "0.61664516", "0.6094129", "0.60627246", "0.60601914", "0.60205895", "0.6014669", "0.59960806", "0.5966453", "0.5955594", "0.594206...
0.0
-1
write your code here
public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter hex no. to convert in Decimal : "); String num = input.readLine(); int dec = Integer.parseInt(num,16); System.out.pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpub...
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.5...
0.0
-1
4Half triangle starforward opp
public static void fourthProgram() { for (int i = 1; i <= 4; i++) { for (int j = 4; j > i; j--) { System.out.print(" "); } for (int k = 1; k <= i; k++) { System.out.print("*"); } System.out.println(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Squarelotron mainDiagonalFlip(int ring);", "public Squarelotron inverseDiagonalFlip(int ring);", "public void triangulo() {\n fill(0);\n stroke(255);\n strokeWeight(5);\n triangle(width/2, 50, height+100, 650, 350, 650);\n //(width/2, height-100, 350, 150, 900, 150);\n }", "public Squa...
[ "0.64197826", "0.6190301", "0.577011", "0.57138103", "0.55821675", "0.54976666", "0.54873", "0.5341357", "0.5310173", "0.5296051", "0.5284554", "0.52647746", "0.5264587", "0.52631307", "0.52427566", "0.5195914", "0.5180714", "0.51633555", "0.51431614", "0.5133967", "0.5119935...
0.53510576
7
9.Side Program increse the space
public static void ninethProgram() { for(int i=1;i<=4;i++) { for(int j=4-1;j>=i;j--) { System.out.print(" "); }for(int k=1;k<=4;k++) { System.out.print("*"); }System.out.println(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\t...
[ "0.61206484", "0.60454303", "0.5950857", "0.58058864", "0.5774334", "0.5740659", "0.5727975", "0.5667688", "0.5660359", "0.56233966", "0.5588974", "0.557833", "0.5561835", "0.55586326", "0.5547105", "0.55401844", "0.5524561", "0.5516039", "0.5514998", "0.55116063", "0.5500964...
0.5816078
3