query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
This method was generated by MyBatis Generator. This method corresponds to the database table PUBLIC_USER
int updateByPrimaryKey(PublicUser record);
[ "@SqlQuery(\"SELECT * FROM utilisateur order by mail asc\")\n\t@RegisterMapperFactory(BeanMapperFactory.class)\n\tList<User> all();", "SysUsers selectByPrimaryKey(String userId);", "@Select({\n \"select\",\n \"user.id as user_id, user.username as user_username, user.password as user_password\",\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Is this a leaf?
public boolean isLeaf() { return isLeaf; }
[ "public abstract boolean IsLeaf();", "public boolean isLeaf(){return _actualNode.getLabel().getValue() != -1;}", "public boolean isLeaf() {\n return isLeaf;\n }", "public boolean isLeaf() {\r\n\t\t\treturn false;\r\n\t\t}", "boolean isLeaf() {\n\t\t\treturn ((left == null) && (right == null)) ? true : f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets best title to use for twitter:title by walking path until either a TWITTER_TITLE or TITLE is nonnull.
public String anyTwitterTitles() { return getAny(TWITTER_TITLE, TITLE); }
[ "private String getTitle(HTMLTagExtractor te, String URL) throws ParserException {\n ArrayList<String> titleList = te.getTitle();\n String title = \"\";\n\n for (String titleWord : titleList) {\n if (title.length() == 0) {\n title = titleWord;\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A HTTP code that is appropriate for this exception.
public int httpCode() { return 500; }
[ "public int getStatusCode() {\n return code;\n }", "public int getResponseCode() {\n return requestFailureException.getResponseCode();\n }", "HttpErrorCodes(int value) {\n this.value = value;\n }", "public int code() {\n return responseCode;\n }", "RequestStatusCo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method that orders the points based on level.
private void createCityId() { InteractClient isObj = new InteractClient(); orderedStore = isObj.getPointList(); Collections.sort(this.orderedStore, new PointCompare()); }
[ "private void groupAndSortByPriorities() {\n ArrayList< ArrayList<Student> > studentsGroupedByPoints = new ArrayList<>() ;\n Integer lastPointsAmount = -1;\n int i = -1;\n // create small subgroups of students with same preferences\n for (Student student : this.availableStudents) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check is module exists and enabled in global config.
public boolean isModuleEnabled(String moduleName/* = null */) { if ((moduleName) == (null)) { (moduleName) = (this._getModuleName()); } Simplexml_Element node = AppContext.getCurrent().getConfig().getNode("modules/" + moduleName); if (node == null) { return false; } String isActive = node.getString(...
[ "boolean hasGlobalSettings();", "boolean hasModuleType();", "@SuppressWarnings(\"all\")\n private static boolean isModuleEnabled() {\n Log.i(TAG, \"Xposed module not active.\");\n return Boolean.valueOf(false);\n }", "public boolean isModule ();", "boolean hasPinyinConfig();", "boolean...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$FF: renamed from: e () rV
public class_66 method_8754() { class_66 var1 = this.method_8753(); class_1082 var10000 = new class_1082; var10000.method_6134("["); class_66 var2 = var10000.method_340(var1).method_339("]"); var2.method_337(var1.method_338()); return var2; }
[ "void mo37715E_();", "public void ec(){}", "@Override\n\tpublic void eee() {\n\t\t\n\t}", "public String e()\r\n/* 17: */ {\r\n/* 18:16 */ return this.b;\r\n/* 19: */ }", "interface C10770b {\n /* renamed from: e */\n void mo22324e(boolean z, String str, int i);\n }", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If the FORCE_INVALIDATE_EVENT flag is true then invoke callbacks on the given event.
static void forceInvalidateEvent(EntryEventImpl event, LocalRegion owner) { if (FORCE_INVALIDATE_EVENT) { event.invokeCallbacks(owner, false, false); } }
[ "public void fireInvalidated() {\n invalidationListeners.fire(l->l.invalidated(this));\n }", "@Nullable\n @Generated\n @Selector(\"invalidationHandler\")\n @ObjCBlock(name = \"call_invalidationHandler_ret\")\n public native Block_invalidationHandler_ret invalidationHandler();", "public abs...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ hasAllConstantIndices Return true if all of the indices of this GEP are / constant integers. If so, the result pointer and the first operand have / a constant offset between them. / hasAllConstantIndices Return true if all of the indices of this GEP are / constant integers. If so, the result pointer and the first ope...
@Converted(kind = Converted.Kind.AUTO, source = "${LLVM_SRC}/llvm/lib/IR/Instructions.cpp", line = 1722, FQN="llvm::GetElementPtrInst::hasAllConstantIndices", NM="_ZNK4llvm17GetElementPtrInst21hasAllConstantIndicesEv", cmd="jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm...
[ "protected boolean allConstants() {\r\n\t\tboolean result = true;\r\n\t\tIterator<Node> iter = nodes.iterator();\r\n\t\twhile (result && iter.hasNext()) {\r\n\t\t\tresult = ((Predicate) iter.next()).allConstants();\r\n\t\t}\r\n\t\t;\r\n\t\treturn result;\r\n\t}", "protected boolean isConstantImpl() {\n for (Ex...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
An EL expression referring to a server side UIComponent instance in a backing bean.
public javax.faces.component.UIComponent getBinding() { return (javax.faces.component.UIComponent) getStateHelper().eval(PropertyKeys.binding); }
[ "UIComponentMemberDeclaration getComponent();", "ComponentPrototype getComponent();", "Object getComponent();", "@Override\n public InstancePanelVisual getComponent() {\n if (component == null) {\n component = new ServerInstanceConnectorVisualPanel(this);\n }\n return compon...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
I create an array which contains all buttons for FXML
void getActionRUEN(){ Button[] buttons = {btn1, btn2, btn3, btn4, btn5, btn6}; //default color for(int i = 0; i < buttons.length; i++){ buttons[i].setStyle("-fx-background-color: #0FC0FCFF"); } //This text will be show text which need translate word.setText(Ru...
[ "private void initButtonList() {\n\n for (int i = 0; i < ROW; i++) {\n for (int j = 0; j < COL; j++) {\n\n Button button = new Button();\n// fieldNumbering(button); // for Debug purpose\n button.setMinSize(30, 30);\n button.setMaxSize(30,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string fb = 5;
boolean hasFb();
[ "void mo33242a(String str, C6952b bVar);", "void mo5845b(String str);", "void mo39660Qa(String str);", "void m18733b(String str) {\n this.f14877o = str;\n }", "public void mo3697b(String str) {\n this.f5032g = str;\n }", "public static void m719b(String str) {\n f430a = str;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if the button is selected.
public boolean isSelected() { boolean status = (stateMask & SELECTED) != 0; return status; }
[ "final public boolean isSelected() { return button.isSelected(); }", "public boolean getButtonSelectState() {\r\n return buttonSelect.get();\r\n }", "private boolean checkSelected() {\n return selectedObject != null;\n }", "public boolean isCurrentlySelected();", "boolean hasButton();", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method clicks on element located in defined frame
public void clickOnElement(WebElement element, char frame) { try { element.click(); logger.info(element + " was clicked"); } catch (Exception e) { if (frame == 1) { webdriver.switchTo().frame(0); element.click(); logger....
[ "private void clickOnElement() {\n\n }", "void click (GuiElement guiElement);", "public void click(PageElement locator);", "void click(UiElement uiElement);", "@Test(groups={\"ut\"})\r\n\tpublic void testButtonElementInsideFrame() throws Exception {\r\n\t\tFrameElement frame = new Fr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When resuming to MainActivity the list of AlertSettings objects gets updated, update the language if needed and sets the isActivityRunning = true, so that if the AlarmReceiver gets called, it knows that the main view is open.
@Override protected void onResume() { //Updates the view in case of changes in the alertlist super.onResume(); Locale l = getResources().getConfiguration().locale; Log.i(TAG, l.getLanguage()); if(!isActivityRunning) { //Log.i(TAG, "onResume()"); alertS...
[ "@Override\n protected void onResume() {\n String language = PrefUtils.get(this, Prefs.LOCALE, WatchTimeApplication.getSystemLanguage());\n LocaleUtils.setCurrent(this, LocaleUtils.toLocale(language));\n super.onResume();\n }", "@Override\n protected void onStart() {\n try {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column x_user.user_phone
public String getUserPhone() { return userPhone; }
[ "public com.google.protobuf.ByteString\n getUserPhoneBytes() {\n java.lang.Object ref = userPhone_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n user...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public View getView(int position, View convertView, ViewGroup parent) { LayoutInflater li; RelativeLayout rl; TextView level; TextView move; TextView type; HashMap<String,Integer> colorMap = new HashMap<String,Integer>(); String[] typesPokemon; String type1; String type2; typesPo...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Normalizes a coordinate to a coordinate on a graph.
public static Coordinate normalizeCoordinate(Coordinate coordinate, float levelOfDetail) throws CoordinateNormalizerException, InterruptedException { Log.d(TAG, "normalizeCoordinate() METHOD START"); if (coordinate == null) throw new IllegalArgumentException("coordinate must be provided"); Log.d(TAG, "...
[ "public void normalise() {\n\t\tdouble dan = this.mag();\n\t\tthis.x = this.x * (1 / dan);\n\t\tthis.y = this.y * (1 / dan);\n\t}", "V normalize();", "public void normalize()\r\n {\r\n double n = 1d / Math.sqrt(length());\r\n myX *= n;\r\n myY *= n;\r\n myZ *= n;\r\n myW *=...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Multiplies the BMR by a factor dependent on the level of activity to calculate the daily calorie requirements of a woman.
public double calculateFemaleCalories() { return this.calculateFemaleBMR() * this.user.getLifeStyle().getFactor(); }
[ "private double calculateManpowerCost() throws Exception\n {\n \n double hrlyRate = 0.0 ;\n int bookingID = bookingToComplete.getID() ;\n \n Connection c = common.DatabaseConnector.activateConnection() ;\n c.setAutoCommit( false ) ; \n ResultSet rs ;\n String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: navigate to HomeScreen
@Override public void onStartWatchingButtonClick() { if (getActivity() != null && getActivity() instanceof MainActivity) { ((MainActivity) getActivity()).showHomeFragment(); } }
[ "public void goToHomeScreen() {\n loadScreen(MAIN_WINDOW_FXML_FILE);\n }", "public void showHomeScreen() {\n Intent goHome = new Intent(this, HomeActivity.class);\n startActivity(goHome);\n }", "protected void enterHome() {\n Intent intent = new Intent(this, HomeActivity.class)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Duke's logic entry point.
public String getResponse(String input) { String output = ""; try { Command c = Parser.parse(input); output = c.execute(tasks); } catch (DukeException e) { return e.getMessage(); } try { storage.save(tasks); } catch (IOExcep...
[ "public Duke() {\n tasks = new TaskList();\n parser = new Parser();\n storage = new Storage();\n try {\n LoadCommand c = new LoadCommand();\n c.execute(tasks, storage);\n } catch (DukeException e) {\n try {\n storage.flushData();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if list is empty
public boolean isEmpty() { return size == 0; }
[ "public boolean isEmpty()\r\n {\r\n return list == null;\r\n }", "public boolean isEmpty(){\r\n return list.isEmpty();\r\n }", "boolean isEmpty(){\r\n\t\treturn list.getSize() == 0;\r\n\t}", "public boolean isEmpty(){ \r\n return list.isEmpty();\r\n }", "public static ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construtor default da classe
public SensorsException() { super(); }
[ "public Constraint() {\r\n }", "public DefaultSchema() {\r\n\r\n }", "public SimpleconstraintsprovFactoryImpl() {\n\t\tsuper();\n\t}", "public ClassMakerValidator() {\n\t\tsuper();\n\t}", "private Casier(){}", "public MyConstractor()\n {\n\n\n }", "public BilletajeCajero() {\n }", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the thickness of this book.
BigDecimal getThickness();
[ "public int getThickness() {\n\t\treturn thickness;\n\t}", "public float getWidth() {\n return this.paint.getStrokeWidth();\n }", "public int getLineWidth() {\n\t\treturn getIntegerProperty(PROP_LINEWIDTH);\n\t}", "public static int getWidth() {\r\n \treturn lineWidth;\r\n }", "@Override\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determine type by using
public String getUnlocalizedName(ItemStack item){ return super.getUnlocalizedName(item) + "_" + item.getItemDamage(); }
[ "java.lang.String getUsedType();", "int getProvidedType();", "public abstract AvailableTypes getType();", "DetectionType getDetectionType(String identifier) throws UnknownDetectionTypeException;", "Type chooseImplementation(Type type);", "JmesPathType typeOf(T value);", "public String type ();", "fzde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Takes the file path consist of IRI and convert to Long to put into Frontier ToDo: choose different frontier if there based by options ToDo: Move schedule to a different thread and seen will be common
private static void run(CommandLine cmd) throws Exception { Dictionary dictionary = new Dictionary(); List<Long> actual = null; File seedList = new File(cmd.getOptionValue("s")); System.out.println("reading seeds from " + seedList.getAbsolutePath()); if (!seedList.exists()) { throw new FileNot...
[ "private void createTask(String fileLine) {\n Task.Type type = Task.Type.valueOf(fileLine.substring(0, 1));\n boolean isDone = Integer.parseInt(fileLine.substring(4, 5)) == 1;\n Task task;\n\n if (type == Task.Type.T) {\n String description = fileLine.substring(8);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Hook called at the end of tile update completion.
void tileUpdateCompleted();
[ "public void afterUpdate() {\r\n\t}", "@Override\n public void onTilesChanged() {\n mExecutor.execute(mUpdateAnimators);\n }", "void onTileUpdate(WorldChunk chunk, Tile oldTile, Tile newTile, Layer layer, int xTile, int yTile) {\n\t\tif (layer.index == 0) {\n\t\t\tupdateHeightmap(xTile);\n\t\t}\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
private static String bookServiceURI = "
@BeforeClass public static void setupClass() throws Exception { }
[ "public String getBookDetailsUrl(){\n return UrlsRetail.BOOK_DETAILS+\"/\"+ isbnNumber;\n }", "public BookService() {\n\n\t}", "public BookResource(BookService bookService) {\n\t\tthis.bookService = bookService;\n\t}", "@Override\n public Book getBookDetail(String idBook) throws IOException{\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calls the PointTransactionPublisherService, passing the transaction to be used as message payload
@Override public void publishPointTransactionEvent(Transaction transaction) { pointTransactionPublisherConnector.doCall( transaction, simpleEventRequestTransformer, simpleEventResponseTransformer); }
[ "@Override\n public void publishInvoiceTransactionEvent(Transaction transaction) {\n invoiceTransactionPublisherConnector.doCall(\n transaction, simpleEventRequestTransformer, simpleEventResponseTransformer);\n }", "@Suspendable\n @Override\n public SignedTransaction call...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'capabilities' field.
public java.lang.CharSequence getCapabilities() { return capabilities; }
[ "public String getCapabilities() {\n return (String) statuses.get(STATUS_CAPABILITIES);\n }", "public long getCapabilitiesLong() {\n return this._capabilities;\n }", "Properties getCapabilities();", "TCapabilities getCapabilities();", "public OGCCapabilities getCapabilities() {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this function is called based on the timer delay. if we do not set up the timer the function wont be called.
@Override public void actionPerformed(ActionEvent event){ requestFocusInWindow(); updateAsteroid(); updateShip(); collisionDetection(); repaint(); }
[ "@Override\n public void OnDelayTime(DelayTime arg0) {\n \n }", "protected void onTimer() {}", "public void setupTimer() {\n\t\t// create repeated task for timer\n\t\tActionListener taskPerformer = new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\n\t\t\t\t// If the pla...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
protected void m9910a(String titleText) { }
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void swim() { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Configure this MonPanel to use the specified setup. The setup will specify subclassspecific information, so this method can be used to restore saved MonPanel states.
public synchronized boolean loadSetup(final SavedSetup setup) { try { //check if the setup is suitable for our class if (!setup.checkClass(this)) { System.err.println("ATPointTable:loadSetup: setup not for " + this.getClass().getName()); return false; ...
[ "public SetupState(final JPanel panel, final BoardManager bm) {\n super(panel, bm);\n current = white;\n goodPawn = new Pawn(Pawn.PawnType.GOOD);\n evilPawn = new Pawn(Pawn.PawnType.EVIL);\n\n selectedPawn = goodPawn;\n\n blackSetup = false;\n }", "protected void setAnotherConfigurations() {}",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
LinkNode can be always destroyed, when Group is also allow delete.
public boolean canDestroy () { return group.isDeleteAllowed(); }
[ "public void destroyGroup() {\n \t\t// Destroy the subNetwork\n \t\trootNetwork.removeSubNetwork(getGroupNetwork());\n \t\tgroupNode.setNetworkPointer(null);\n \n \t\t// Release all of our external edges\n \t\texternalEdges = null;\n \n \t\t// Remove all of our metaEdges from the root network\n \t\trootNetwork.remo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the exponent of the x variable
public void setxDegree(double x) { this.xDegree = x; }
[ "public void exponent(){\n /* IMPLEMENTATION */\n }", "@Test\n public void setExponent() {\n final ModExpBean bean = new ModExpBean();\n bean.setExponent(BigInteger.ONE);\n assertEquals(BigInteger.ONE, bean.getExponent());\n }", "public void setExponent(byte[] value) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lista los mensajes en el muro de los amigos de un usuario
public Response muroAmigos(int id);
[ "public static ArrayList<Mensagem> listarAllMensagens() throws Exception{\n\t\tif(logada != null && logada instanceof Administrador) {\t\r\n\t\t\treturn messenger.getMensagens();\t\r\n\t\t}\r\n\t\telse \r\n\t\t\tthrow new Exception(\"Usuário sem Permissão para esta operação!\");\r\n\t}", "public List<String> get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Trivial getter, to obtain the player from the world/
public Player getPlayer() { return player; }
[ "public static Player getPlayer(){\r\n return currentGame.getPlayer();\r\n }", "public Player getPlayer() \n {\n synchronized (this)\n {\n assert invariant();\n return theGame.getPlayer();\n }\n }", "public Player getPlayer() {\n return thePlayer;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public static void m10301a(Context context, C1097a c1097a) { Intent intent = new Intent(context, CanaryWorkerService.class); intent.setAction("com.tencent.matrix.resource.worker.action.SHRINK_HPROF"); intent.putExtra("com.tencent.matrix.resource.worker.param.HEAPDUMP", c1097a); MatrixJob...
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this is method to get data from specific sensor
public List<Sensor> getDataBySensorType(String sensorType){ try (Connection connection = getConnection()) { if (connection != null){ PreparedStatement ps = connection.prepareStatement(getDataBySensorType); ps.setString(1, sensorType); return executeSel...
[ "de.hszemi.sensorid_test.SensorData.SensorReading getSensorreading(int index);", "private String getTHSensorData() {\r\n\t\t\tString sensorData = null;\r\n\t\t\ttry {\r\n\t\t\t\tRuntime rt = Runtime.getRuntime();\r\n\t\t\t\tProcess p = rt.exec(\"python /home/pi/Adafruit_Python_DHT/examples/DHT.py 11 4\");\r\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ ========Sign In======== sign in server
public boolean signIn(String username, String password) { try { Packet packet = new Packet(Packet.SIGN_IN, username); packet.setPassword(password); sendPacket(packet); Packet receivedPacket; receivedPacket = (Packet) in.readObject(); if (receivedPacket.TYPE == Packet.AUTH_SUCCESSFUL) { authSucce...
[ "public void signin() {\r\n\t\tSystem.out.println(\"Attempting to sign in..\");\r\n\t\tSignInPacket signin = new SignInPacket();\r\n\t\tLogOutPacket logout = new LogOutPacket();\r\n\t\tGetSpawnPacket spawn = new GetSpawnPacket();\r\n\t\tspawn.make();\r\n\t\tlogout.make();\r\n\t\tsignin.make(uname, pword);\r\n\t\tPa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void setVirtualData(String col, String value) { String colname = col.toUpperCase(); vData.put(colname, value); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Carrega Arquivo de Preferencias
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { lerPreferencias(); View view = inflater.inflate(R.layout.fragment_sorteios, container, false); progressBar = (ProgressBar) view.findViewById(R.id.pr...
[ "private void cargarPreferencias()\n {\n SharedPreferences misPreferencias = getSharedPreferences(\"preferencias\", Context.MODE_PRIVATE);\n misPreferencias.getBoolean(\"isLoad\",false);\n }", "Path getSiasaFilePath();", "public ArrayList <Preferencia> ObtenerPreferencias(ArrayList <Preferen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 102 /Coverage entropy=0.9345071288432268
@Test(timeout = 4000) public void test102() throws Throwable { XPathLexer xPathLexer0 = new XPathLexer(); xPathLexer0.nextToken(); Token token0 = xPathLexer0.identifierOrOperatorName(); assertNull(token0); }
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Translates field type to cpp data member type
static String cppVar(Field field) { switch (field.type) { case Field.BOOLEAN: case Field.BYTE: case Field.SHORT: return "int16 " + field.useName(); case Field.INT: case Field.IDENTITY: case Field.SEQUENCE: return "int32 " + field.useName(); case Field.LONG...
[ "public RetType forField(Field that);", "@Override\n\tprotected DataContractField generateFieldDescriptor( Field theField, DataContractType theDeclaringType, Object aDeclaringInstance ) {\n\t\tDataContractField dataContractField = null;\n DataMember dataMemberAnnotation = theField.getAnnotation( DataMember...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / 20
public void setUserId(Integer userId) { this.userId = userId; }
[ "public int mo40642f() {\n return 20;\n }", "public static void _20 () {\n }", "@Override\r\n\tpublic final int getSpace() {\n\t\treturn 20;\r\n\t}", "private static void testDivide() {\n\n int pageSize = 13234 / 1000 + 1;\n\n System.out.println(pageSize);\n }", "int getS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public final void mo229a(agm agm) { this.f349c = agm; }
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
used for setting the variable of the monitor i.e. threshold or sample rate
public void setVariable(int data);
[ "public void set_hands_on_count_threshold_data(int val) \n{ \n //println(\"HANDS_ON_COUNT_THRESHOLD:\"+val);\n\n cp5.getController(\"HANDS_ON_COUNT_THRESHOLD\").setValue(val);\n}", "public void set_hands_off_count_threshold_data(int val) \n{ \n //println(\"HANDS_OFF_COUNT_THRESHOLD:\"+val);\n\n cp5.getControl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Examples.ex1(); Examples.ex2(); Examples.ex3(); Examples.ex5(); Examples.ex6(); Examples.ex7(); Examples.ex8(); Examples.ex9();
public static void main(String[] args) { Examples.ex10(); // TODO Auto-generated method stub /* ArrayList<String>strList=new ArrayList<String>(); strList.add("noel"); strList.add("patsy"); strList.add("Paddy"); for(String str:strList) System.out.println(str); strList.re...
[ "public static void main(String [] args) {\n \n ExerciseOne();\n //ExerciseTwo();\n //ExerciseThree();\n //ExerciseFour();\n \n }", "public static void main(String[] args) {\n Exercise7 exercise7 = new Exercise7();\n// Exercise8 exercise8 = new Exercise8();\n// ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'valore_4' field.
public java.lang.Double getValore4() { return valore_4; }
[ "public E getVal() {\n\t return val;\n\t }", "public java.lang.String getDdaValue4() {\r\n return ddaValue4;\r\n }", "public Float getVote4() {\n return vote4;\n }", "public Object ritornaValore()\n\t{\n\t\treturn valoreToken;\n\t}", "public int getval() {\r\n\t\treturn val;\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets time unit of measure.
public void setTimeUnitOfMeasure(String timeUnitOfMeasure) { this.timeUnitOfMeasure = timeUnitOfMeasure; }
[ "public void setTimeUnit(TimeUnit timeUnit) {\n withTimeUnit(timeUnit);\n }", "public void setUnit(MeasurementUnit unit) {\n this.unit = unit;\n }", "public void setUnitTime(String unitTime) {\n this.unitTime = unitTime == null ? null : unitTime.trim();\n }", "Value<T> setUnit(UoM unit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this can probably be refactored to use builder, and then default implementations for each of these can be made for any new types
public GameObject(IDrawable drawLogic, IAudible soundLogic, IMobile moveLogic, ICollidable collideLogic, ILiving metabolicLogic) { this.drawLogic = drawLogic; this.soundLogic = soundLogic; this.moveLogic = moveLogic; this.collideLogic = collideLogic; this.metabolicLogic = m...
[ "protected abstract Builder newBuilder();", "public interface Builder {\n Builder setCarType(CarType type);\n Builder setSeats(int seats);\n Builder setEngine(Engine engine);\n Builder setTransmission(Transmission transmission);\n Builder setTripComputer(TripComputer tripComputer);\n Builder set...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Make this return true when this Command no longer needs to run execute()
@Override protected boolean isFinished() { return false; }
[ "@Override\n\t\t\tprotected boolean exec() {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n public boolean isFinished() {\n return !commandMap.containsValue(false);\n }", "@Override\n\t\tpublic boolean shouldContinueExecuting() {\n\t\t\treturn false;\n\t\t}", "protected boolean isFinished() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Same as scheduleAppointmentForPaitientById but needs paitient email instead of paitientId
public boolean scheduleAppointmentForPatientByEmail(DateTime appointmentTime, String patientEmail ){ boolean calendarUpdated = false; long patientId = paitientService.getPatientId(patientEmail); synchronized (waitingRoomBookingLock) { System.out.println("Acquired lock on waitingRoo...
[ "@Transactional(rollbackFor = {\n\t\t\tRuntimeException.class }, readOnly = false, propagation = Propagation.REQUIRED, isolation = Isolation.READ_UNCOMMITTED)\n\tpublic Appointment schedule(AppointmentDTO appointment) {\n\t\tAppointment appointment1 = ar.findById(appointment.getId()).get();\n\t\tPatient patient = p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the process folder.
public URI getProcessFolder() { return processFolder; }
[ "public String getFolder() {\n\t\treturn (String) map.get(FOLDER_KEY);\n\t}", "public String getWorkingDir(){\n Path WD = Paths.get(\"\");\n return WD.toAbsolutePath().toString();\n }", "public native static String getFolderPath(int folder);", "public String getDirectory(){\r\n\t\treturn _dir...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
From the text file, take a random block of enemies to start spawning
private List<String> getRandomBlock() { return new ArrayList<>(commandBlocks.get(random.nextInt(commandBlocks.size()))); }
[ "public EnemyGenerator( ItemGenerator ig)\n {\n Scanner scan;\n try{\n\n scan = new Scanner(new File(\"EnemyList.txt\"));\n\n do {\n Random generate = new Random();\n Item item = itemList.generateItem();\n String line = read.nextLine();\n String[] x = line.split(\",\"); ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Every parent point (x, y) has two children, (x, x+y) and (x+y, y). However, every point (x, y) only has one parent candidate (xy, y) if x >= y, else (x, yx). This is because we never have points with negative coordinates. Looking at previous successive parents of the target point, we can find whether the starting poi...
public boolean reachingPointsBackWard(int sx, int sy, int tx, int ty) { while (tx >= sx && ty >= sy) { if (sx == tx && sy == ty) return true; if (tx > ty) tx -= ty; else ty -= tx; } return false; }
[ "boolean ancestor(int u,int v){\n return (st[v] > st[u] && end[v] < end[u]);\n}", "void root(int[] a, int[] b, int x, int parent)\n {\n for (int i=0; i<a.length; i++) {\n if (a[i] == x+1 || b[i] == x+1) {\n int y;\n if (a[i] == x+1) {\n y = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Scale down and scale up the domain and verify that Completed normal event is generated.
@Test @DisplayName("Test domain completed event when domain is scaled.") void testScaleDomainAndVerifyCompletedEvent() { createDomain(domainNamespace4, domainUid, pvName4, pvcName4); scaleDomainAndVerifyCompletedEvent(1, ScaleAction.scaleDown, true, domainNamespace4); scaleDomainAndVerifyCompletedEvent(...
[ "public void beginDomainLifeCycle() {\n this.autoGenerateId();\n this.recordTimePointInLifecycle();\n }", "void handleCompletedProcess(){\n\t\tint processDuration = inProgress.isInAir ? AirplaneSimulation.landing_duration : AirplaneSimulation.takeoff_duration;\n\t\tif(AirplaneSimulation.clock - i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new java...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Start our media player
public void play(){ mediaPlayer.start(); }
[ "public void play() {\n Logger.debug(\"play()\");\n \n libvlc.libvlc_media_player_play(mediaPlayerInstance);\n }", "@Override\n\tpublic void onPrepared(android.media.MediaPlayer mp) {\n\t\tmediaPlayer.start();\n\t}", "@Override\n\t\t\t\t\tpublic void onPrepared(MediaPlayer mp) {\n\t\t\t\t\t\tmp.start(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void mouseExited(MouseEvent arg0) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onErrorResponse(VolleyError error) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
make sure the bonuses are not applied twice..
public void applyBonus(L2PcInstance player, boolean isArmor) { if (_active) return; switch (_elementalType) { case FIRE: if (isArmor) player.addStatFunc(new FuncAdd(Stats.FIRE_RES, 0x40, this, new LambdaConst(_elementalValue))); else player.addSta...
[ "private ChocolateBolier() {\n\t\tempty = true;\n\t\tboiled = false;\n\t}", "Bonus(){\n\t\t\n\t}", "void setNumBonuses(int numBonuses) {\n this.numBonuses = numBonuses;\n }", "private void balancePool() {\n if(bombCap > bombs.size()) {\n //add new bombs\n for(int i= 0; i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onClick(DialogInterface arg0, int arg1) { String name = et.getText().toString(); if (cRowId != null) { MainActivity.mDbHelper.updateCatagory(cRowId, name); MainActivity.mDbHelper.updata_catagory_notes( catagory_OldString, name); catagory_TextView.setText(name);...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines if there are any more elements in the lists to decode.
@Override public boolean hasNext() { if (!currentNodeStack.peek().hasNext()) { popFromNodeStack(); return false; } return true; }
[ "private boolean endOfList() {\n return current.equals(RDF.nil);\n }", "@Override\n\tpublic boolean hasMoreElements() {\n\t\treturn iter.hasNext();\n\t}", "public synchronized boolean hasMoreElements() {\n\t\tif (buffer.total > total)\n\t\t\treturn (true);\n\t\telse\n\t\t\treturn (false);\n\t}", "pr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
clean the slate, and repopulate the world
@EventHandler public void init(FMLInitializationEvent event) { RecipeHandler.removeVanillaRecipes(); // welcome the masochists logger.info("Welcome to the desparate Game Of Life."); }
[ "public static void clearWorld() {\n\t\tpopulation.clear();\n\t\tposition = new Critter[Params.world_height][Params.world_width];\n\t\tbabies.clear();\n\t}", "public void destroy() {\n world = null;\n }", "public static void clearWorld() {\n\t\tfor (Iterator<Critter> it = population.iterator(); it.has...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__ExcludeType__Group__4" $ANTLR start "rule__ExcludeType__Group__4__Impl" ../eu.artist.tosca.dsl.ui/srcgen/eu/artist/tosca/dsl/ui/contentassist/antlr/internal/InternalToscaDSL.g:35712:1: rule__ExcludeType__Group__4__Impl : ( '}' ) ;
public final void rule__ExcludeType__Group__4__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../eu.artist.tosca.dsl.ui/src-gen/eu/artist/tosca/dsl/ui/contentassist/antlr/internal/InternalToscaDSL.g:35716:1: ( ( '}' ) ) // ../eu.art...
[ "public final void rule__Enumeration__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.goldschmiede.bodsl.ui/src-gen/de/goldschmiede/bodsl/ui/contentassist/antlr/internal/InternalBusinessObjectDsl.g:917:1: ( ( '}' ) )\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getIDElement method of class Board
@Test public void testgetIDElement(){ System.out.println("getIDElement Test"); Board a = new Board(); assertEquals(-1,a.getIDElement(0, 0)); }
[ "public TetrisBoard getBoard();", "public void findElement() {\n\t\t\n\t}", "TicTacToeBoard<Integer> getBoard();", "@Test\n\tpublic void getCelltest() {\n\t\tcell = board.getCell(0, 0);\n\n\t\tassertEquals(player, cell.getMovingContent());\n\n\t}", "public byte getElement(int i, int j) {\n return boa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Synchronizes public info for all players in the given dimension.
public static void synchronizePublicInfo(int dimension) { List<EntityPlayer> players = MinecraftServer.getServer() .getConfigurationManager() .playerEntityList; PublicSkillInfoMessage message = new PublicSkillInfoMessage(); message.setResync(true); // append each player's public info to the messag...
[ "@Override\n\tpublic void syncToAll()\n\t{\n\t\tif (entity.getEntityWorld().isRemote)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tif (entity instanceof EntityPlayerMP)\n\t\t{\n\t\t\tsyncToPlayer((EntityPlayerMP)entity);\n\t\t}\n\t\tsyncToAllTracking();\n\t}", "public void syncronize(Connection connection) {\n log.info...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get data range of X axis
private Range getXRange() { double minValue = Double.POSITIVE_INFINITY; double maxValue = Double.NEGATIVE_INFINITY; if (dataset != null) { for (int series = 0; series < dataset.getSeriesCount(); series++) { for (int item = 0; item < dataset.getItemCount(series)...
[ "public double getxAxisRange() {\r\n\t\treturn xAxisRange;\r\n\t}", "public void testFindRangeBounds() {\n TableXYDataset dataset = RendererXYPackageUtils.createTestTableXYDataset();\n JFreeChart chart = ChartFactory.createXYLineChart(\"Test Chart\", \"X\", \"Y\", dataset, PlotOrientation.VERTICAL, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Costruttore Setta il titolo l'icona se viene travata sarà logo.gif
public MyF(String s){ this(s,ClassLoader.getSystemResource("resources/image/logo.gif")); setBounds(400,300,200,150); }
[ "public VentanaInicio() {\n initComponents();\n java.net.URL url = getClass().getResource(\"Iconos/icon_016.png\");\n java.awt.Image imagen = getToolkit().getImage(url);\n setIconImage (imagen);\n }", "private void setIcon() {\n /*Coloca o ícone na jframe. Obs: a imagem tem q...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reset the menu opcode
@FieldHook("playerMenuActions") @Inject public static void playerOptionsChanged(int idx) { MenuAction[] playerActions = {PLAYER_FIRST_OPTION, PLAYER_SECOND_OPTION, PLAYER_THIRD_OPTION, PLAYER_FOURTH_OPTION, PLAYER_FIFTH_OPTION, PLAYER_SIXTH_OPTION, PLAYER_SEVENTH_OPTION, PLAYER_EIGTH_OPTION}; if (idx >= 0 && ...
[ "public void resetButtonPress() {\n this.data.reset();\n this.menuButtonPress();\n }", "public void reset(){\n byte[] bytes = {RESET_COMMAND};\r\n write(COMMAND_REGISTER, bytes);\r\n\r\n }", "public void resetMenu(){\n\t\tremoveAllComponents();\n\t}", "public void reset() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Record result = this.dslContext.select().from(JCode.CODE) .where(JCode.CODE.CD.eq(code)).fetchOne(); return result.into(Code.class);
public Code findOne(String code) { return null; }
[ "@Select({\n \"select\",\n \"adcode, name, citycode\",\n \"from code\",\n \"where adcode = #{adcode,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"adcode\", property=\"adcode\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"name\", property=\"name\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prof. Potika test: N =4
@Test public void testProductStrassen() { //expected output double[][] expected = {{96.0,94.0,81.0,128.0},{144.0,117.0,112.0,162.0},{132.0,112.0,101.0,152.0},{112.0,86.0,87.0,130.0}}; // input 2D array double[][] array1 = {{2.0,4.0,5.0,7.0},{6.0,7.0,2.0,8.0},{4.0,6.0,3.0,9.0},{8.0,4.0,1.0,5.0}};...
[ "@Test\n public void test() {\n for (int i : range(1, N))\n if (i % D1 == 0 || i % D2 == 0)\n ans += i;\n check(233168);\n }", "public NqueenProb(int N) {\n this.N=N;\n\n }", "public int test4a(int n) {\n int testVar = 0;\n\n C c = new C(n)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Changed by seshu on 1st May 2013. For generating exam schedules time table.
@Actions({ @Action(value = "printExamSchedules", results = { @Result(location = "jasper/marks/examSchedules.jasper", type="jasper", name = "success",params = {"dataSource","getExamScheduleList()","format", "PDF"}) }) }) public String printExamSchedules() { if (log.isDebugEnabled()) { log.debu...
[ "public void printSchedule()\r\n\t{\r\n\t\t// see assignment doc\r\n\t\tString[][] timetable = new String[10][6];\r\n\t\tString[] days = new String[] {\"Days:\",\"Mon\",\"Tue\",\"Wed\",\"Thur\",\"Fri\"};\r\n\t\t\r\n\t\t//Student: Nested for loop to fill the time table with days and hours\r\n\t\tfor (int i = 0; i < ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
updates the team numbers in the front screen according to the match number and the alliance;
private void updateUI() { try { if (FirebaseLists.matchesList.getKeys().contains(matchNumber.toString())) { Match match = FirebaseLists.matchesList.getFirebaseObjectByKey(matchNumber.toString()); List<Integer> teamsOnAlliance = new ArrayList<>(); team...
[ "private void setMatchInfo() {\n lblOneName.setText(homeTeam.getTeamName());\n lblTwoName.setText(awayTeam.getTeamName());\n lblOneGoals.setText(\"\" + match.getHomeTeamScore());\n lblTwoGoal.setText(\"\" + match.getAwayTeamScore());\n }", "private void updateTeamA(TeamObject team) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the port output stream.
public OutputStream getOutputStream() { if (out == null) out = new SerialPortOutputStream(port); return out; }
[ "public DataOutputStream getOutputStream() {\n\t\treturn this.outStream;\n\t}", "public PrintStream getOutputStream() {\n return outputStream;\n }", "public OutputStream getOutputStream(){\n\treturn _outputStream;\n }", "protected OutputStream getOutDataStream() {\n try {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 eresult = 1 [default = 2];
public Builder clearEresult() { bitField0_ = (bitField0_ & ~0x00000001); eresult_ = 2; onChanged(); return this; }
[ "int getResultNum();", "public int getResultValue() {\n return result_;\n }", "int getSrval();", "public int getRet() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getResult(int x) {\n\t\treturn 0;\n\t}", "long getValue111();", "long getValue031();", "long getResult();", "long getValue011();"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the database URL from the given project. The project needs the Evolizer properties to be defined.
public String getDBUrl(IProject project) throws EvolizerException { Properties properties = computeProperties(project); String dbUrl = properties.getProperty("hibernate.connection.url"); if (dbUrl.startsWith("jdbc:")) { dbUrl = dbUrl.substring("jdbc:".length()); } re...
[ "public String getDatabaseUrl()\r\n {\r\n return databaseUrl;\r\n }", "public MONGODB_URL getDbUrl();", "protected String getDbURL() {\n StringBuilder sb = new StringBuilder(\"jdbc:derby:\");\n if (dbMode == DbMode.SERVER_DAEMON) {\n sb.append(\"//\");\n sb.appen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handling a Specific Exception (NullPouinterException.
@ExceptionHandler(value= {NullPointerException.class, CustomServiceException.class}) public ResponseEntity<Object> handleNullPointerException(Exception e, WebRequest wr){ // To return exception as is //return new ResponseEntity<>(e,new HttpHeaders(),HttpStatus.INTERNAL_SERVER_ERROR); // ...
[ "private void handleIllegalArgumentException(Exception ex) {\n //Log.e(\"Dolby processing\", \"One of the passed arguments is invalid\");\n handleGenericException(ex);\n }", "public void mo33473a() {\n throw null;\n }", "public T caseOntException(OntException object) {\n\t\treturn nul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests the transfer between InputStream and OutputStream.
public static void main(String[] args) { InputStream in = null; OutputStream out = null; try{ in = new FileInputStream("/home/bkoprinski/dev/bkoprinski/Task 4/InputStream.txt"); out = new FileOutputStream("/home/bkoprinski/dev/bkoprinski/Task 4/OutputStream.txt"); TransferObject obj = new TransferObject...
[ "@Test\n\tpublic void testInput() throws IOException {\n\t\tb.buf.putShort((short) 0xaced);\n\t\tb.buf.putShort((short) 5);\n\t\tb.buf.flip();\n\n\t\tb.getInputStream();\n\n\t\ttry {\n\t\t\tb.getOutputStream();\n\t\t} catch (final IllegalStateException e) {\n\t\t\t// expected\n\t\t\treturn;\n\t\t}\n\n\t\tfail();\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR start "tuple_type" /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/LogicalPlanGenerator.g:419:1: tuple_type returns [LogicalSchema logicalSchema] : ^( TUPLE_TYPE ( field_def_list )? ) ;
public final LogicalPlanGenerator.tuple_type_return tuple_type() throws RecognitionException { LogicalPlanGenerator.tuple_type_return retval = new LogicalPlanGenerator.tuple_type_return(); retval.start = input.LT(1); CommonTree root_0 = null; CommonTree _first_0 = null; Common...
[ "public final ASTTupleType tupleType() throws RecognitionException {\n ASTTupleType n = null;\n\n ASTTuplePart tp = null;\n\n\n List tpList = new ArrayList(); \n try {\n // TestSuite.g:798:1: ( 'Tuple' LPAREN tp= tuplePart ( COMMA tp= tuplePart )* RPAREN )\n // Tes...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: 0000 / renamed from: c
public abstract C11991r mo35536c();
[ "public abstract void mo30462c();", "public void mo5203c() {\n }", "protected void method_5557() {}", "public void mo26342c() {\n }", "private B000066() {\r\n\r\n\t}", "public void mo19881c() {\n }", "public abstract void mo2752c();", "public abstract void mo30461b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set the current configuration of the robot;
public void set(CarState c) { double[] result = c.get(); s.set(result[0], result[1], result[2]); }
[ "private void setCurrentConfig() {\n cbStartMinimised.setSelected(Config.getBoolean(Keys.START_MINIMISED));\n cbLogConnect.setSelected(Config.getBoolean(Keys.LOG_CONNECT_STATUS));\n cbSFXOn.setSelected(Config.getBoolean(Keys.SOUND_ENABLED));\n }", "void config(){\n\t\t \tsetSimOff();\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The parser can call this method when it expects to consume a particular kind of token.
private Token expect(SymbolType expectedSymbolType) throws IOException, LexicalAnalysisException, ParserException { Token t = lexer.next(); if (t.getSymbolType() != expectedSymbolType) { throw new ParserException( "At line " + t.getLineNum() + ": expected " + expectedSymbolType + ", saw " + t.getSymbolType(...
[ "protected void consumeToken() {\n if (!isTokenChar(src.charAt(offs))) {\n parseError();\n }\n while(offs < src.length()) {\n if (!isTokenChar(src.charAt(offs))) {\n break;\n }\n offs++;\n }\n }", "private Token match(Kind k...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests the deletion of a single car by ID.
@Test public void deleteCar() throws Exception { mvc.perform(delete(new URI("/cars/1"))).andExpect(status().isNoContent()); verify(carService, times(1)).delete(any()); }
[ "@Override\r\n\tpublic void deleteCarById(String id) {\n\t\tcarRepositoryImpl.deleteById(id);\r\n\t\t\r\n\t}", "@Test\n public void deleteCar() throws Exception {\n\n mockMvc.perform(delete(\"/car/2\"))\n .andExpect(status().isNoContent());\n\n verify(carService, times(1)).deleteCa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method convert a long representing an instant ex 20160125 19:00:00 to the beginning of the day and the beginning of the year ex:20160101 00:00:00
long setZeroYear(long dateInMillis) ;
[ "public static String longToDate(long pLong){\n //2018-00-00 00:00:00\n String strLong = String.valueOf(pLong);\n try{\n strLong = new StringBuilder(strLong)\n .insert(4, \"-\")\n .insert(7, \"-\")\n .insert(10, \" \")\n .in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
first check if all the cards in the same suit
private boolean isFlush() { Card first = this.cards[0]; for (int i = 0; i < 5; i++) { if (!this.cards[i].getSuit().equalsIgnoreCase(first.getSuit())) { return false; } } return true; }
[ "private boolean checkAllCardHaveSameSuit(Card[] hand) {\n\t\tCard temp = null;\n\t\tfor (Card card : hand) {\n\t\t\tif (temp != null && !(temp.getSuit() == card.getSuit())) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ttemp = card;\n\t\t}\n\t\treturn true;\n\t}", "public static void testLegalCards(List a){\n \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Build new ship piece for name
public static Piece makePiece(String id) { return makePiece(id, 1, 0); }
[ "public void makeShip(String name) {\n \tmyShip = new Ship(name);\n \tmyShip.resetShip();\n }", "public Piece(String name){\n\t\tthis.name = name;\n\t}", "@Override\r\n\tpublic AirShip createrAirShip() {\n\t\t\r\n\t\tengine e= builder.builderEngine();\r\n\t\torbtialModule o=builder.buildOrbtialModule()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The rack ID of the asset.
public AssetInfo withRackId(String rackId) { setRackId(rackId); return this; }
[ "public Object getAssetId() {\n\t\treturn assetId;\n\t}", "java.lang.String getAssetIdentifier();", "@Override\n public String getID()\n {\n return mAsset.getID();\n }", "public String getAsset_num() {\n return asset_num;\n }", "public long getSpectrumId() {\r\n\t\treturn header.getId()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void shutdown() { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
for editing an existing post
@RequestMapping(value = "admin/editPop/{id}", method = RequestMethod.GET) public String editPopWithId(@PathVariable Long id, Principal principal, Model model) { //spring allows only the admin to access this url therefore, no need to add extra...
[ "@PostMapping(\"/editPost\")\n public void editPost(@RequestBody Post editedPost) {\n postService.editPost(editedPost);\n }", "public void editPost(String post_id) {\n Intent intent = new Intent(ViewSwap.this, EditSwap.class);\n intent.putExtra(\"POST_ID\", post_id);\n intent.put...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
fim do metodo de matchingUbiAppAL
public UbiApp matchingUbiApp(ArrayList<String> uAppAL) { // Criar a lista de comandos de UbiApp e apos isso, identificar aqueles // que estao relacionados a UserRole identificado ModelElementReaderUA modelElementReaderUA = new ModelElementReaderUA(); // Lista de nomes de todos os comandos de UbiApps ArrayLi...
[ "private static void m75506a(C7617ak c7617ak, C7617ak c7617ak2) {\n C7620bi Rb;\n AppMethodBeat.m2504i(132732);\n C7617ak aLF = C42640a.aLF();\n if (aLF != null) {\n C4990ab.m7413e(\"MicroMsg.AppBrandConversionExtension\", \"The lastest app brand conversation username is %s\",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__PageContainer__Group__6" $ANTLR start "rule__PageContainer__Group__6__Impl" ../pimar.editor.textual.xgcore.ui/srcgen/pimar/editor/textual/xgcore/ui/contentassist/antlr/internal/InternalXgcore.g:1318:1: rule__PageContainer__Group__6__Impl : ( ( rule__PageContainer__Group_6__0 )? ) ;
public final void rule__PageContainer__Group__6__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../pimar.editor.textual.xgcore.ui/src-gen/pimar/editor/textual/xgcore/ui/contentassist/antlr/internal/InternalXgcore.g:1322:1: ( ( ( rule__Page...
[ "public final void rule__ValueObject__Group__6() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAsomemodel.g:1827:1: ( rule__ValueObject__Group__6__Impl )\n // InternalAsomemodel.g:1828:2: rule__ValueObject__Group__6__Impl\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will update workflow node output
@POST @Path(ResourcePathConstants.ProvenanceResourcePathConstants.UPDATE_WORKFLOWNODEOUTPUT) @Produces(MediaType.TEXT_PLAIN) public Response updateWorkflowNodeOutput(@FormParam("nodeID") String nodeID, @FormParam("workflowInstanceId") String workflowInstanceID, ...
[ "@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)\n\tpublic org.opencps.processmgt.model.WorkflowOutput updateWorkflowOutput(\n\t\torg.opencps.processmgt.model.WorkflowOutput workflowOutput)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\r\n\tpublic void upd...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update gamification activation status
public Future<ApiResponse<GamificationStatus>> putGamificationStatusAsync(ApiRequest<GamificationStatus> request, final AsyncApiCallback<ApiResponse<GamificationStatus>> callback) { try { final SettableFuture<ApiResponse<GamificationStatus>> future = SettableFuture.create(); final boolean shouldThrowErr...
[ "double updateActivation()\r\n{\r\n int ecnt=0, rcnt=0;\r\n int edst=0, rdst=0;\r\n double emetric=0, rmetric=0;\r\n\r\n activation=0;\r\n\r\n // regulator metric = count(bound sites)/sqrt(sum(bind dist-from-promoter))\r\n for (int i=0; i<numenhb; i++) {\r\n if (enhbSiteBound[i]>0) {\r\n // the follow...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns height of mancala
public int getManH() { return MAN_H; }
[ "public int getHeight() {\n\t\treturn (int) figura.getHeight();\n\t}", "public double getHeight() {\n\t return height; \n\t }", "public int getHeight() {\n return height;\r\n }", "public double \r\n getHeight()\r\n {\r\n return height;\r\n }", "public Integer getHeight();", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by huangwenqiang on 2017/5/11.
public interface MvpView { //统一处理异常 void onExceptionHandle(ExceptionHandle.ResponseThrowable restError); /** * Toast * @param resId */ void showToast(int resId); void showToast(int resId, int duration); void showToast(CharSequence message); void showToast(CharSequence m...
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns this shared instance of the Sprite Frame cache
public static CCSpriteFrameCache sharedSpriteFrameCache() { if (sharedSpriteFrameCache_ == null) { sharedSpriteFrameCache_ = new CCSpriteFrameCache(); } return sharedSpriteFrameCache_; }
[ "public static StrongBitmapCache getInstance() {\n\t\t\tsReferenceCount++;\n\t\t\tif (sInstance != null) {\n\t\t\t\treturn sInstance;\n\t\t\t} else {\n\t\t\t\tsInstance = new StrongBitmapCache();\n\t\t\t\treturn sInstance;\n\t\t\t}\n\t\t}", "public Sprite getFrame() {\n if (frames.size() > index) {\n retu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean shouldOverrideUrlLoading(WebView view, String url) { loadContentNew = true; (new ContentNews()).execute(url); return true; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }