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
TODO Autogenerated method stub
public void onItemClick(AdapterView<?> arg0, View arg1, int position, long id) { switch(position) { case 0 : intent = new Intent(HighRankWidget.this,ListViewActivity.class); startActivity(intent); break; case 1 : intent = new Intent(HighRankWidget.this,GalleryActivity.class); startActivity(intent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Ctor, initialized with a rng and the order to use
public FqMontgomeryBigInteger(Random random, BigInteger order) { super(random, order); divTwo = order.add(BigInteger.ONE).shiftRight(1); divFour = divTwo.shiftRight(1); qn = order.shiftLeft(order.bitLength()); R = BigInteger.ZERO.setBit(256); n0 = order.negate().modInverse(R); one ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CellularAutomatonRNG()\n {\n this(DefaultSeedGenerator.getInstance().generateSeed(SEED_SIZE_BYTES));\n }", "public DuelistRNG() {\n this((long) ((Math.random() - 0.5) * 0x10000000000000L)\n ^ (long) (((Math.random() - 0.5) * 2.0) * 0x8000000000000000L),\n ...
[ "0.6329462", "0.63013214", "0.6225742", "0.61870956", "0.60823315", "0.60542375", "0.6025505", "0.60017484", "0.5898913", "0.58109397", "0.5785919", "0.57759625", "0.5763103", "0.57107306", "0.5683894", "0.56747884", "0.56598717", "0.56332207", "0.56293726", "0.559618", "0.55...
0.0
-1
there might be more efficient ways, but sqrt() is noncritical..
@Override public FqElement<BigInteger> sqrtMutable() { value = multiplyMontgomery(value, BigInteger.ONE).mod(order); if(IntegerUtil.legendreSymbol(value, order) != 1) return null; BigInteger e1 = order.subtract(BigInteger.ONE).shiftRight(1); BigInteger e1tmp = e1; BigIn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double sqrt(double d) {\n\t\t\treturn 0;\n\t\t}", "public T sqrt(T value);", "public static BigInteger sqrt(BigInteger n) {\n BigInteger xi = n.divide(primes.get(0));\n for (int i = 0; i < 3; i++) {\n xi = xi.subtract(xi.pow(2).subtract(n).divide(xi.multiply(new\n ...
[ "0.78138006", "0.7651869", "0.7418027", "0.73828065", "0.73470604", "0.7324791", "0.731228", "0.7085209", "0.7048305", "0.6980342", "0.69627297", "0.69237876", "0.69078404", "0.69035906", "0.6902992", "0.6860938", "0.68053174", "0.67599493", "0.67506593", "0.674765", "0.66590...
0.6462095
34
Resets the array to its original configuration and return it.
public int[] reset() { return originalArr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] reset() {\n return Arrays.copyOf(origin, origin.length);\n }", "public int[] reset() {\r\n return reset;\r\n }", "public int[] reset() \n {\n return reset;\n }", "public int[] reset() {\n return store;\n }", "private int[] reset() {\n r...
[ "0.697118", "0.6904059", "0.68361205", "0.6714145", "0.6640303", "0.64434683", "0.6318128", "0.6288678", "0.62609303", "0.6259935", "0.6196086", "0.6185046", "0.6129283", "0.60915095", "0.601098", "0.60055953", "0.5967921", "0.59418577", "0.59418577", "0.59418577", "0.5941857...
0.7683946
0
Returns a random shuffling of the array.
public int[] shuffle() { if (originalArr == null) return null; int randomArr[] = originalArr.clone(); for (int i = 1; i < originalArr.length; i++) { int newIndex = random.nextInt(i + 1); swap(i, newIndex, randomArr); } return randomArr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int[] shuffle() {\n int len = data_random.length;\n Random rand = new Random();\n for (int i = 0; i < len; i++) {\n int r = rand.nextInt(len);\n int temp = data_random[i];\n data_random[i] = data_random[r];\n data_random[r]=temp;\n }\n...
[ "0.79378474", "0.77558976", "0.7748851", "0.769553", "0.7656073", "0.7656073", "0.764616", "0.7633283", "0.7544139", "0.74743384", "0.745568", "0.7454164", "0.74540776", "0.74223113", "0.7409494", "0.7409494", "0.73869467", "0.73639935", "0.73605025", "0.7356231", "0.73261786...
0.778238
1
X Y in range?
protected boolean isValidAvailableField(int x, int y) { if (x < 0 || x >= 8) return false; if (y < 0 || y >= 8) return false; // Is field enabled? if (! _board.isFieldEnabled(x, y)) return false; // If we cannot travel over the same cell, return if (_board.getGame().hasGameOption(Game.GAMEOPTION_TRACE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int inRange(int x, int y) {\n\t\tif (x > 3 && y > 3 && x < max_x - 3 && y < max_y - 3) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "int getBoundsX();", "public int getXY(int x, int y);", "public Range getXRange() {\r\n\t\treturn xRange;\r\n\t}", "int getRange();", "double getX...
[ "0.7156311", "0.669788", "0.6670553", "0.65193015", "0.6468628", "0.6434918", "0.63361377", "0.6268542", "0.6248141", "0.6248141", "0.6248141", "0.6248141", "0.6248141", "0.6248141", "0.6244225", "0.62164736", "0.61762005", "0.61762005", "0.61762005", "0.6170639", "0.6157897"...
0.0
-1
Mark the piece as moveable or not. When not moveable, a user cannot select this piece to be moved.
public void setMoveable(boolean moveable) { _moveable = moveable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean setMove(boolean movable)\n {\n canMove = movable;\n return true;\n }", "public void setPieceCanMove(final Boolean theCanItMove) {\n myPieceCanMove = theCanItMove;\n }", "public void setMovable(boolean movable){\n\t\tthis.movable = movable;\n\t}", "public native vo...
[ "0.77795637", "0.7671417", "0.7348182", "0.72602904", "0.7179761", "0.70241773", "0.6982692", "0.6870503", "0.6867614", "0.68322206", "0.6821774", "0.68087244", "0.67069125", "0.6647463", "0.65981394", "0.659323", "0.6574258", "0.6513925", "0.6492372", "0.6448895", "0.6395728...
0.78504163
0
Returns wether or not the piece is moveable or not
public boolean isMoveable() { return _moveable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean canMove();", "public boolean canMove()\n {\n return canMove;\n }", "public abstract boolean canMove();", "boolean canMove(Tile t);", "public boolean canMove() {\r\n return (state == State.VULNERABLE || state == State.INVULNERABLE);\r\n\r\n }", "public boolean canMov...
[ "0.8134188", "0.794264", "0.79032594", "0.7892004", "0.7740318", "0.7689686", "0.7663459", "0.7631385", "0.75931615", "0.7537546", "0.75072706", "0.7490839", "0.74837434", "0.748002", "0.74147636", "0.7400863", "0.7399189", "0.7384653", "0.7355211", "0.7339436", "0.73366356",...
0.81163263
1
TODO Autogenerated method stub
@Override public void getSupplierSkuId(Map<String, String> skuMap) throws ServiceException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void handleEmail(OrderDTO orderDTO) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Constructor that loads all of the queryresponse mappings into the hashMap.
public StubGoogleAPIWrapper() { queryMap.put(case1URLQuery, case1JSONResponseStandardResponse); queryMap.put(case2URLQuery, case2JSONResponseStressTest); queryMap.put(case3URLQuery, case3JSONResponseConnectionFailedThrowIOException); queryMap.put(case4URLQuery, case4JSONResponseGoogleRet...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initializeCache() {\n if (cacheResults && initialized) {\n dataCache = new HashMap<String, Map<String, Map<String, BaseAttribute>>>();\n }\n }", "public Response() {\n objectMap = new JSONObject<>();\n }", "public Query() {\n\n// oriToRwt = new HashMa...
[ "0.6110422", "0.6060894", "0.60059595", "0.59535503", "0.593525", "0.5902521", "0.5877572", "0.5843218", "0.58058023", "0.580253", "0.57374907", "0.5699981", "0.5690806", "0.5651583", "0.5635029", "0.5627501", "0.5618209", "0.56107646", "0.5608969", "0.5607792", "0.5597461", ...
0.5744211
10
private static final String //QUASTIONDOES NOT IGNORES CASE! = null;
public static void main(String[] args) { // LENGTH(); // String str="Syntax";----------------------- // int lengthOfString=str.length(); // System.out.println(lengthOfString); // String name="Timmy";--------------------- // int lengthOfString=name.length(); // System.out.println(lengthOfString); // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Strings()\n\t{\n\t}", "private Strings()\n\t{\n\t}", "private static String valueOf(Object str3Sg) {\n\t\treturn null;\r\n\t}", "private static String m23463a() {\n return \"\";\n }", "private StringUtilities() {\n // nothing to do\n }", "private Constantes() {\r\n\t\t// No way\r\n\...
[ "0.62489796", "0.62489796", "0.61749506", "0.6160835", "0.6005665", "0.59713477", "0.5926752", "0.59192944", "0.59092474", "0.5897678", "0.5881825", "0.58638877", "0.5860305", "0.58363986", "0.58125734", "0.5799069", "0.5778747", "0.5778536", "0.5748907", "0.57192045", "0.571...
0.0
-1
Empty Mapper for naming preoccupancy
public interface PageResourceMapper { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mapping() {\n\t\t\n\t}", "public static Mapper<String> name() {\n return NAME;\n }", "private void initMapNameMapping() {\n mMapNameMapping.clear();\n\n // Load the name mapping from the config\n ConfigurationSection mappingSection = getConfig().getConfigurationSectio...
[ "0.62497133", "0.6110582", "0.59484476", "0.59344035", "0.59273124", "0.5760698", "0.57575274", "0.57125694", "0.5703748", "0.5560554", "0.55577564", "0.55522555", "0.5527634", "0.5502896", "0.5489565", "0.5471106", "0.5463647", "0.54288244", "0.5416536", "0.5415297", "0.5327...
0.0
-1
Liefert die TurnierEditor Constraints
public TournamentEditorConstraints getTournamentEditorConstraints();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void defineConstraints();", "@DISPID(1610940427) //= 0x6005000b. The runtime will prefer the VTID if present\n @VTID(33)\n Constraints constraints();", "@DISPID(1611006036) //= 0x60060054. The runtime will prefer the VTID if present\n @VTID(111)\n boolean constraintsInGeometry();", "pr...
[ "0.6594172", "0.62683547", "0.593428", "0.5799639", "0.5780846", "0.5780846", "0.57691216", "0.5702045", "0.56977916", "0.5641755", "0.5578002", "0.557554", "0.555179", "0.55069435", "0.5497998", "0.5497329", "0.5467802", "0.5449548", "0.54258376", "0.5331847", "0.53298044", ...
0.68780714
0
Konstruktor des Players, in ihm werden die Attribute server und connection mit vom ClientListererThread uebergebenen Werten Instanziiert. ComIn und comOut initialisiert.
public Player(Server loginServer, Socket socket) { super("Player"); server = loginServer; connection = socket; try { connection.setSoTimeout(0); comOut = new ObjectOutputStream(connection.getOutputStream()); comOut.flush(); } catch (IOException e) { System.err.println("Couldn't getOutputStream");...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GameServerClient(){\r\n\t\tinitComponents();\r\n\t\t}", "public GameHandler(Socket cs) {\r\n try {\r\n ous = new ObjectOutputStream(cs.getOutputStream());\r\n ois = new ObjectInputStream(cs.getInputStream());\r\n try {\r\n Request request = (Request) ...
[ "0.64371324", "0.6146286", "0.6104465", "0.6047765", "0.6046978", "0.5988714", "0.59854287", "0.587098", "0.58447266", "0.5757688", "0.57495046", "0.5745117", "0.56975543", "0.5679192", "0.5674966", "0.56746066", "0.56641024", "0.56430674", "0.558678", "0.557469", "0.55421096...
0.57767206
9
Die runMethode des Thread nimmt eingehende Nachrichten des Client entgegen und uebergibt diese an den Server durch Aufruf der Methode resolveMessage() Faengt eine ClassNotFoundException ab, falls die Klasse nicht gefunden werden kann und gibt einen Fehler aus. Faengt eine IOException ab und ruft im jeweiligen Server, d...
@Override public void run() { run = true; ComObject object; while (run) { try { object = (ComObject) comIn.readObject(); object.process(this, server); } catch (ClassNotFoundException e) { run = false; System.err.println("Classpath was not found!"); server.disconnectPlayer(this); e.p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n while (connected) {\n Message message = getMessage();\n if (!connected)\n break;\n Executors.newCachedThreadPool().execute(() -> {\n try {\n message.handle(messageHandler);\n ...
[ "0.6337154", "0.62217593", "0.6186847", "0.61470693", "0.60733724", "0.60520643", "0.60219556", "0.59885997", "0.5978263", "0.59702677", "0.59405833", "0.5939722", "0.585813", "0.5846653", "0.58274174", "0.5811155", "0.580006", "0.57928556", "0.5776814", "0.5760311", "0.57526...
0.0
-1
Diese Methode schickt ein ComObjekt an den Client. Sie faengt eine IOException ab und ruft im jeweiligen Server, dem er zugeteilt ist die handleIOException Methode auf.
public void send(ComObject com) { try { comOut.writeObject(com); comOut.flush(); } catch (IOException e) { run = false; server.disconnectPlayer(this); e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void connect()\n {\n System.out.println(\"CLIENT partito in esecuzione\");\n try\n {\n //Initialize socket variables and json formatter\n socket = new Socket(serverIP, serverPort);\n outputStream = new DataOutputStream(socket.getOutputStream());\n ...
[ "0.61314416", "0.5861954", "0.58618397", "0.5785428", "0.5743838", "0.57290953", "0.5708915", "0.5680675", "0.5614933", "0.5596348", "0.5590534", "0.555405", "0.5551597", "0.5545735", "0.55401915", "0.5505481", "0.5496788", "0.54890686", "0.54870653", "0.5465336", "0.54425114...
0.0
-1
Diese Methode wechselt beim Player den Server an den er comObjects weiterleiten soll. Dabei wird er aus dem playerSet des alten Servers entfernt und in das playerSet des neuen Players eingefuegt. Vom neuen Server ein ComUpdatePlayerlist Objekt mit broadcast an alle Clients, die vom Server verwaltet werden, verschickt.
public void changeServer(Server newServer) { server = newServer; server.broadcast(new ComUpdatePlayerlist(this.getPlayerName(), false)); server.addPlayer(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updatePlayerList() \n\t{\n\t\tplayerStatus.clear();\n\n\t\tfor(Player thisPlayer: players) // Add the status of each player to the default list model.\n\t\t{\n\t\t\tplayerStatus.addElement(thisPlayer.toString());\n\t\t}\n\n\t}", "public void updateLobby(Set<String> players) {\r\n lobbyFrame.u...
[ "0.67656595", "0.6636419", "0.64124054", "0.63354975", "0.6298928", "0.6230388", "0.61956096", "0.6192089", "0.6164524", "0.6133058", "0.60278225", "0.6002364", "0.59676164", "0.59602076", "0.5953079", "0.5920689", "0.58765584", "0.5875665", "0.5856368", "0.5813421", "0.58026...
0.550929
53
GetterMethode fuer den Benutzernamen.
public String getPlayerName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombr...
[ "0.7354709", "0.7208897", "0.7202429", "0.7107064", "0.7052994", "0.70468193", "0.6992574", "0.6991139", "0.6991139", "0.6991139", "0.6907734", "0.6886857", "0.6836517", "0.6832783", "0.6831375", "0.67904913", "0.6784219", "0.67830473", "0.6780245", "0.6772084", "0.67618436",...
0.0
-1
SetterMethode fuer den Benutzernamen.
public void setPlayerName(String newName) { name = newName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }", "public String setter() {\n\t\treturn prefix(\"set\");\n\t}", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public ...
[ "0.70223457", "0.6969608", "0.67709076", "0.6716227", "0.67131364", "0.6667688", "0.66546863", "0.66235906", "0.6620024", "0.65521103", "0.65520793", "0.6542344", "0.65312916", "0.6528156", "0.65187573", "0.6506215", "0.6479557", "0.6474794", "0.6464843", "0.6458132", "0.6449...
0.0
-1
IMPROVE use or discard
public static void main( String[] args ) { ResourceBundle rbm = ResourceBundle.getBundle( rbmFile ); CommandLine userInput = prepCli( prepCliParser(), args, rbm ); BerCli doesStuff = prepDoer( userInput ); doesStuff.setSessionConfig( prepConfig( userInput, rbm ) ); doesStuff.satisfySession(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void discardUnget() {\n\t\t\n\t}", "public void discard();", "void discard();", "void discard();", "public void swrap() throws NoUnusedObjectExeption;", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void discard() {\n }", "void use();", "public interface Overdr...
[ "0.6053401", "0.60416085", "0.60374016", "0.60374016", "0.6018056", "0.59657747", "0.58581436", "0.58195174", "0.57515556", "0.5739418", "0.56786376", "0.5643639", "0.55971456", "0.5591827", "0.5588587", "0.5555201", "0.54267603", "0.54170084", "0.539842", "0.5375843", "0.530...
0.0
-1
fills options with our cli flags and text
public static Options prepCliParser() { Options knowsCliDtd = new Options(); final boolean needsEmbelishment = true; knowsCliDtd.addOption( configFlagS, configFlagLong, needsEmbelishment, "path to config (ex C:\\Program Files\\apache\\tomcat.txt)" ); knowsCliDtd.addOption( verboseFlagS, verboseFlagLong, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initOptions() {\n\t\t// TODO: ???\n\t\t// additional input docs via --dir --includes --excludes --recursive\n\t\t// --loglevel=debug\n\t\t// --optionally validate output as well?\n\t\t\n\t\tthis.sb = new StringBuffer();\n\t\tArrayList options = new ArrayList();\n\t\toptions.add( new LongOpt(\"help\", ...
[ "0.7036943", "0.6833003", "0.6600267", "0.65545976", "0.6430836", "0.63731295", "0.6313198", "0.62401944", "0.6192392", "0.61556387", "0.61287147", "0.6015014", "0.5992966", "0.5987039", "0.5985313", "0.5973032", "0.592113", "0.5911385", "0.5849541", "0.5812015", "0.5811994",...
0.60469323
11
Parses the actual input and shows help, if requested
public static CommandLine prepCli( Options knowsCliDtd, String[] args, ResourceBundle rbm ) { CommandLineParser cliRegex = new DefaultParser(); CommandLine userInput = null; try { userInput = cliRegex.parse( knowsCliDtd, args ); if ( userInput.hasOption( helpFlagS ) || userInput.hasOption( helpFl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SlackerOutput handleHelp() {\n logger.debug(\"Handling help request\");\n List<WorkflowMetadata> metadata = registry.getWorkflowMetadata();\n Collections.sort(metadata, new Comparator<WorkflowMetadata>() {\n @Override\n public int compare(WorkflowMetadata m1, Work...
[ "0.689711", "0.6723283", "0.6686088", "0.6436728", "0.6434296", "0.63760257", "0.6367849", "0.63637257", "0.6350117", "0.6334053", "0.6331912", "0.6317768", "0.627845", "0.6275868", "0.62705564", "0.62537205", "0.6246895", "0.62375647", "0.6222249", "0.6219268", "0.6210991", ...
0.0
-1
throws npe if sessionConfig is null
public void setSessionConfig( Properties sessionConfig ) { if ( sessionConfig == null ) { MessageFormat problem = new MessageFormat( rbm.getString( rbKeySetNullProp ) ); throw new NullPointerException( problem .format( new Object[]{ cl +"ssc" } ) ); } this.sessionConfig = sessionConfig; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Session getSession() throws Exception {\n\t\treturn null;\n\t}", "@Override\n public SessionCookieConfig getSessionCookieConfig() {\n return null;\n }", "protected boolean shouldValidateSession ()\n {\n return false;\n }", "@Override\r\n public PhoenixSession ...
[ "0.64464235", "0.6394447", "0.62233776", "0.61322093", "0.59476626", "0.59439856", "0.594288", "0.5898713", "0.5889945", "0.5883866", "0.5855888", "0.5851432", "0.57929873", "0.57576704", "0.5750592", "0.5747114", "0.56985176", "0.5693727", "0.5684398", "0.56489617", "0.55901...
0.68358195
0
Created by zjh on 2016/5/11.
public interface EaseConversationListContract { //界面处理逻辑 interface View extends BaseView { void initView(); void getOrderData(HelpBean beans); void getServiceInfo(ServiceEmchatBean.DataBean serviceEmchatBean); } //业务处理逻辑 interface Presenter extends BasePresenter<View> { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.61451495", "0.6043382", "0.5999219", "0.5968427", "0.5893182", "0.5893182", "0.5888416", "0.58737934", "0.582265", "0.5794", "0.577805", "0.5764145", "0.5745372", "0.57397443", "0.5737248", "0.57118964", "0.5710753", "0.57072616", "0.56913245", "0.56872255", "0.56812763", ...
0.0
-1
\"tags\":[ \n\n ], \"submissionAccess\":[ \n\n ],\n
public static void main(String[] args) { ObjectMapper mapper = new ObjectMapper(); //mapper.disable(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE); //mapper.enable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT); //mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES); String jsonInStr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@JsonSetter(\"tags\")\n public void setTags (String value) { \n this.tags = value;\n }", "private String[] extractTags(HttpServletRequest request)\n throws ServletException, IOException {\n String tagline = request.getParameter(\"tags\").toLowerCase();\n String[] tags = {};\...
[ "0.5235528", "0.5154323", "0.51506466", "0.513559", "0.5020254", "0.49968308", "0.48696232", "0.48405945", "0.47761923", "0.47671214", "0.47295952", "0.4716956", "0.4713841", "0.47006032", "0.46819216", "0.46703368", "0.46645895", "0.46524984", "0.46487698", "0.46345967", "0....
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
parse size and unit including possibility for decimal or until hits semicolon (if unit not specified)
static void parsePossiblyDecimalSizeValue(Lexer<CSSToken, CharInput> lexer, CSSUnit defaultUnit, BiConsumer<Integer, CSSUnit> toCall) throws IOException, ParserException { CSSParserHelperSize.parsePossiblyDecimalSizeValue( lexer, defaultUnit, INTEGER_OR_UNIT_OR_DOT_OR_SEMICOLON_OR_WS_OR_COMMENT_TOKENS,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public void validateSize(String t, boolean bZero, boolean bMinus) throws Exception {\n t = t.Trim();\n if (t.Length == 0)\n return ;\n \n // not specified is ok?\n // Ensure we have valid units\n if (t.IndexOf(\"in\") < 0 && t.IndexOf(\"cm\") < 0 && t.In...
[ "0.62785983", "0.6245282", "0.58711314", "0.5744852", "0.5662748", "0.56476784", "0.5569294", "0.555374", "0.55467874", "0.5477197", "0.54207927", "0.53697336", "0.53681946", "0.5359869", "0.5307305", "0.5304807", "0.51798916", "0.5161917", "0.51498145", "0.5134725", "0.50931...
0.5859836
3
we have found first int, eg 25 in "25.3em" or 25px, parse any decimal part and unit
static void parseSizeValueAfterInt(Lexer<CSSToken, CharInput> lexer, CSSUnit defaultUnit, int value, BiConsumer<Integer, CSSUnit> toCall) throws IOException, ParserException { CSSParserHelperSize.parseSizeValueAfterInt(lexer, defaultUnit, value, UNIT_OR_DOT_OR_SEMICOLON_OR_WS_OR_COMMENT_TOKENS, UNIT_OR_SEMICOLON_TOKE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static NormalTridasUnit parseUnitString(String str) throws Exception\n\t{\n\t\tstr = str.trim();\n\t\tif ((str==null) || (str.equals(\"\"))) return null;\n\t\n\t\tstr =str.toLowerCase();\n\t\t\n\t\tInteger val;\n\t\tBoolean mmDetected = false;\n\t\t\n\t\t//Remove leading fraction\n\t\tif(str.startsWith(\"1/...
[ "0.6319216", "0.59104925", "0.5910348", "0.59020436", "0.589108", "0.5755881", "0.5751544", "0.5746805", "0.5688918", "0.563648", "0.5626268", "0.5600014", "0.559562", "0.5574162", "0.5555512", "0.555381", "0.5536251", "0.552448", "0.55207413", "0.5510268", "0.54913133", "0...
0.0
-1
we have found decimal '.', parse int after '.' and unit
static void parseDecimalAfterDot(Lexer<CSSToken, CharInput> lexer, CSSUnit defaultUnit, int beforeDecimal, BiConsumer<Integer, CSSUnit> toCall) throws IOException, ParserException { final CSSToken token = CSSParserHelperSize.parseDecimalAfterDot(lexer, defaultUnit,beforeDecimal, UNIT_OR_SEMICOLON_TOKENS, toCall); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int numOfDecimalDigit(String text) {\n\t\treturn text.substring(text.indexOf(\".\") + 1, text.length()).length();\r\n\t}", "private String subStringToInteger(String quantity) {\n String substring = null;\n\n if (quantity.contains(\".\")) {\n int indexEnd = quantity.indexOf...
[ "0.6254443", "0.6141617", "0.604423", "0.57974446", "0.57083106", "0.5665501", "0.563801", "0.56263864", "0.5579575", "0.55669814", "0.5557735", "0.55571353", "0.54925865", "0.54784256", "0.5467571", "0.54653436", "0.54395145", "0.5406407", "0.53956246", "0.5372804", "0.53546...
0.58073306
3
Created by anahisalgado on 20/06/17.
public interface Service { @GET(Constants.URL_GET_USER) Call<JsonObject> getDataUser(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n...
[ "0.6139526", "0.6011606", "0.5905214", "0.5840368", "0.5840368", "0.58314675", "0.57903874", "0.5786642", "0.5770986", "0.57481194", "0.57358956", "0.5733392", "0.5732354", "0.5707103", "0.57050586", "0.5696147", "0.56904006", "0.5684311", "0.567321", "0.567321", "0.567321", ...
0.0
-1
/ TODO: Warning this method won't work in the case the id fields are not set.
@Override public boolean equals(Object object) { if (!(object instanceof UserInfo)) { return false; } UserInfo other = (UserInfo) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(...
[ "0.7100596", "0.6991922", "0.6905593", "0.67859083", "0.67859083", "0.6777196", "0.6777196", "0.6768104", "0.6765827", "0.6765827", "0.6765827", "0.6765827", "0.6765827", "0.6765827", "0.6743894", "0.6743894", "0.6741255", "0.67247486", "0.66896564", "0.66767627", "0.66712844...
0.0
-1
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.item_list); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); ActionBar ab = getSupportActionBar(); if (ab != nu...
{ "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
0 iguales /1 param mayor /1 param menor
public int compareTo(Estudiante z){ String nombreCompleto1=z.getNombre()+z.getApellido(); String nombreCompleto2=getNombre()+getApellido(); int comparacion=nombreCompleto1.compareTo(nombreCompleto2); if(comparacion>0){ return 1; } if(comparacion<0){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override \n\t\tprotected int getNumParam() {\n\t\t\treturn 1;\n\t\t}", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n ...
[ "0.60155195", "0.57763416", "0.57763416", "0.57763416", "0.57763416", "0.5687356", "0.5675565", "0.56588393", "0.56390876", "0.56201273", "0.56181586", "0.5601303", "0.5574562", "0.5560959", "0.5557604", "0.5557604", "0.5557604", "0.5557604", "0.5516038", "0.5486353", "0.5457...
0.0
-1
/ This method takes a data String and returns a predefined value if empty If data Sting is null, returns string "No Value Returned", else returns input
private static String null2unknown(String in) { if (in == null || in.length() == 0) { return null; } else { return in; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getOutputDataValue(String inputData) {\n\t\tString outputDataValue = inputData;\n\t\tif (!outputDataValue.isEmpty() && modificationRequired) {\n\t\t\toutputDataValue = modify(outputDataValue);\n\t\t}\n\t\tif (!outputDataValue.isEmpty() && translationRequired) {\n\t\t\toutputDataValue = translate(out...
[ "0.71635205", "0.62442744", "0.62442744", "0.62287766", "0.6199608", "0.60750586", "0.60750586", "0.60750586", "0.60750586", "0.60750586", "0.60750586", "0.6063433", "0.60474706", "0.6047064", "0.5971488", "0.5967495", "0.5967495", "0.5967495", "0.5967495", "0.5967495", "0.59...
0.5778683
31
null2unknown() / This function uses the returned status code retrieved from the Digital Response and returns an appropriate description for the code
String getResponseDescription(String vResponseCode) { String result = ""; // check if a single digit response code if (vResponseCode.length() != 1) { // Java cannot switch on a string so turn everything to a char char input = vResponseCode.charAt(0); switch (input) { case '0': resu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ResponseStatus(int code) {\n this.code = code;\n this.formatted = format(code, \"???\");\n this.symbolicName = String.format(\"0x%04x\", code);\n }", "abstract Integer getStatusCode();", "private String getRespDesc(String _code)\r\n {\r\n int resultCode = -1;\r\n\r\n try\r\n ...
[ "0.64298767", "0.63812417", "0.6269923", "0.6268598", "0.6114375", "0.5882913", "0.586011", "0.586011", "0.58224994", "0.58183", "0.58076304", "0.57858354", "0.57736635", "0.5733148", "0.5708186", "0.5699124", "0.5684368", "0.5682947", "0.56318396", "0.5608846", "0.56069756",...
0.6024103
5
getResponseDescription() This function uses the QSI AVS Result Code retrieved from the Digital Receipt and returns an appropriate description for this code.
private String displayAVSResponse(String vAVSResultCode) { String result = ""; if (vAVSResultCode != null || vAVSResultCode.length() == 0) { if (vAVSResultCode.equalsIgnoreCase("Unsupported") || vAVSResultCode.equalsIgnoreCase("No Value Returned")) { result = "AVS not supported or there was no AVS da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getResponseDescription(String vResponseCode) {\r\n\r\n\t\tString result = \"\";\r\n\r\n\t\t// check if a single digit response code\r\n\t\tif (vResponseCode.length() != 1) {\r\n\r\n\t\t\t// Java cannot switch on a string so turn everything to a char\r\n\t\t\tchar input = vResponseCode.charAt(0);\r\n\r\n\t\t...
[ "0.7593404", "0.7113849", "0.6300301", "0.619742", "0.59471893", "0.5798079", "0.5693098", "0.5666145", "0.5651989", "0.56289566", "0.5625578", "0.5618323", "0.5613176", "0.56099105", "0.55937046", "0.559241", "0.5590374", "0.5590374", "0.5590374", "0.5590374", "0.5590374", ...
0.651103
2
This function uses the QSI CSC Result Code retrieved from the Digital Receipt and returns an appropriate description for this code.
private String displayCSCResponse(String vCSCResultCode) { String result = ""; if (vCSCResultCode != null || vCSCResultCode.length() == 0) { if (vCSCResultCode.equalsIgnoreCase("Unsupported") || vCSCResultCode.equalsIgnoreCase("No Value Returned")) { result = "CSC not supported or there was no CSC da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getResponseDescription(String vResponseCode) {\r\n\r\n\t\tString result = \"\";\r\n\r\n\t\t// check if a single digit response code\r\n\t\tif (vResponseCode.length() != 1) {\r\n\r\n\t\t\t// Java cannot switch on a string so turn everything to a char\r\n\t\t\tchar input = vResponseCode.charAt(0);\r\n\r\n\t\t...
[ "0.7002904", "0.68309635", "0.6338743", "0.6150451", "0.58723086", "0.58311236", "0.5824016", "0.5763357", "0.57328606", "0.5728108", "0.5691041", "0.56196386", "0.5607705", "0.55661315", "0.55222934", "0.5521028", "0.55005944", "0.54436034", "0.5427933", "0.54080284", "0.539...
0.7355459
0
This method uses the 3DS verStatus retrieved from the Response and returns an appropriate description for this code.
private String getStatusDescription(String vStatus) { String result = ""; if (vStatus != null && !vStatus.equals("")) { if (vStatus.equalsIgnoreCase("Unsupported") || vStatus.equals("No Value Returned")) { result = "3DS not supported or there was no 3DS data provided"; } else { // Java can...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getResponseDescription(String vResponseCode) {\r\n\r\n\t\tString result = \"\";\r\n\r\n\t\t// check if a single digit response code\r\n\t\tif (vResponseCode.length() != 1) {\r\n\r\n\t\t\t// Java cannot switch on a string so turn everything to a char\r\n\t\t\tchar input = vResponseCode.charAt(0);\r\n\r\n\t\t...
[ "0.65329146", "0.5899492", "0.58937824", "0.5724681", "0.56456286", "0.5604969", "0.5601656", "0.55193317", "0.5510743", "0.5446387", "0.5440159", "0.5410867", "0.5410867", "0.5410867", "0.5410867", "0.5398084", "0.5395276", "0.5386403", "0.5377163", "0.53244364", "0.53244364...
0.69873667
0
/ If there has been a merchant secret set then sort and loop through all the data in the Virtual Payment Client response. while we have the data, we can append all the fields that contain values (except the secure hash) so that we can create a hash and validate it against the secure hash in the Virtual Payment Client r...
public String processResponse(Map<String, String> fields) { // remove the vpc_TxnResponseCode code from the response fields as we do // not // want to include this field in the hash calculation String vpc_Txn_Secure_Hash = null2unknown((String) fields.remove("vpc_SecureHash")); String hashValidated = n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateHashFromServer(PaymentParams mPaymentParams) {\n //nextButton.setEnabled(false); // lets not allow the user to click the button again and again.\n\n // lets create the post params\n StringBuffer postParamsBuffer = new StringBuffer();\n postParamsBuffer.append(concatP...
[ "0.56823087", "0.5585547", "0.5366651", "0.5366651", "0.527835", "0.52335817", "0.5175835", "0.5128044", "0.49907577", "0.48962", "0.48945922", "0.48544663", "0.47603375", "0.47472602", "0.47469157", "0.47395593", "0.4714977", "0.46574616", "0.46574616", "0.46296763", "0.4617...
0.656124
0
TODO Autogenerated method stub
@SuppressWarnings("deprecation") @Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder viewHolder; if (convertView == null) { viewHolder = new ViewHolder(); convertView = inflater.inflate(R.layout.face, null, false); viewHolder.faceIV = (ImageView) convertView ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
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() { jLabel6 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); txtInput = new jav...
{ "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
Method was not decompiled
private final zzgy zzgb() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2046() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decomp...
[ "0.82593614", "0.8251481", "0.82311714", "0.81875473", "0.81588984", "0.81588984", "0.81583995", "0.810011", "0.809811", "0.8064114", "0.80450493", "0.8032749", "0.7979893", "0.7971034", "0.7888678", "0.788416", "0.7876225", "0.7857277", "0.7828842", "0.7724343", "0.7646691",...
0.0
-1
constructor with fixed speeds setup for every lane
public MovingObj(float posX, String type, int lane, boolean rotate) { super(posX, 0, 0, 0, type); this.lane = lane; this.rotate = rotate; if (lane == 0) spdX = Constants.LANESPD0; if (lane == 1) spdX = Constants.LANESPD1; if (lane == 2) spdX = Constants.LANESPD2; if (lane == 3) spdX = Cons...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Airplane(){\n\t\tsuper(106, 111);\n\t\tspeed = Math.random() + 2.0;\n\t}", "protected void initialize() {\r\n \t((Launcher) Robot.fuelLauncher).controlSpeed(i);\r\n }", "@Override\n\tprotected void init() {\n\t\t//Set movementSpeed in px/s\n\t\tmovementSpeed = 100;\n\t\t//Set previousTime to start...
[ "0.6447263", "0.6316052", "0.6256123", "0.6211408", "0.61432844", "0.6139663", "0.61228853", "0.60713726", "0.60605216", "0.6044894", "0.60366815", "0.60211825", "0.59798986", "0.59748656", "0.595779", "0.5939167", "0.59057194", "0.58988565", "0.588993", "0.58597344", "0.5859...
0.0
-1
This method is used to read all lines in the csv file and parse the data
public boolean parse(String path){ try{ BufferedReader br=new BufferedReader(new FileReader(path)); String row; int nrighe=0; while((row=br.readLine())!=null){ nrighe++; if(!row.equals("")) if(nrighe>1) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void processCSVFile( BufferedReader csvFile ) throws IOException {\r\n\t\t\r\n\t\tboolean headerRowRead = false;\r\n\t\tString[] headerArray = null;\r\n\t\t\r\n\t\t//loop through all rows and create contacts\r\n\t\tString row = csvFile.readLine();\r\n\t\t\r\n\t\twhile (row != null) {\r\n\t\t\t\r\n\t\t\tif ...
[ "0.7387373", "0.7346296", "0.69983447", "0.696672", "0.6966642", "0.6910248", "0.6736483", "0.67113566", "0.6686741", "0.6668552", "0.6652483", "0.66478956", "0.6621533", "0.6602943", "0.65970224", "0.65680164", "0.65640855", "0.6555942", "0.65084106", "0.6502252", "0.6473938...
0.0
-1
Configurate negotiation manager bean.
@Bean("contentNegotiationManager") public ContentNegotiationManagerFactoryBean contentNegotiationManagerFactoryBean() { ContentNegotiationManagerFactoryBean manager = new ContentNegotiationManagerFactoryBean(); manager.setFavorParameter(false); manager.setIgnoreAcceptHeader(true); manager.setDefaultCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager)\n/* */ {\n/* 630 */ this.contentNegotiationManager = contentNegotiationManager;\n/* */ }", "@Override\n\tpublic void init(NegotiationInfo info) {\n\t\tsuper.init(info);\n\t\tinit();\n\t}", "publi...
[ "0.6023941", "0.57405597", "0.54455876", "0.5445243", "0.5437322", "0.5400766", "0.53774446", "0.5247238", "0.5243522", "0.5225156", "0.5218059", "0.5174868", "0.51573473", "0.5147735", "0.5121657", "0.5120672", "0.51164234", "0.51132345", "0.510655", "0.5085554", "0.50799286...
0.5813596
1
Configurate message source bean.
@Bean("messageSource") public ReloadableResourceBundleMessageSource reloadableResourceBundleMessageSource() { ReloadableResourceBundleMessageSource mesSource = new ReloadableResourceBundleMessageSource(); mesSource.setBasename("classpath:messages/messages"); mesSource.setDefaultEncoding("UTF-8"); retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Autowired(required = true)\n public void setMessageSource(MessageSource messageSource) {\n MessageUtils.messageSource = messageSource;\n }", "@Autowired\n\tpublic MyUtil(MessageSource messageSource){\n\t\tMyUtil.messageSource=messageSource;\n\t}", "@Bean(\"messageSource\")\n\tpublic MessageSource...
[ "0.65112734", "0.6189805", "0.61803824", "0.6173806", "0.6147951", "0.6104612", "0.60652673", "0.60262066", "0.60164475", "0.5985588", "0.5985088", "0.59698313", "0.5947951", "0.5931065", "0.591817", "0.5903722", "0.58960295", "0.5868666", "0.58075505", "0.57929134", "0.57591...
0.5649659
24
TODO: some form of indexing to speed up group operations would be desirable. However it would need to keep up to date with the underlying data structure. Questionable whether it should be part of serialisation... Maybe it should... transient Map groupData = new HashMap(); The answer I think is to map this directly from...
public RDataframe() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void DoGroupBy()\n\t{\n\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"o_orderkey\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_custkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderstatus\"));\n\t\tinAtts.add(new Attribute(\"Float\",...
[ "0.6458128", "0.62540287", "0.6105227", "0.5980742", "0.5974725", "0.5908066", "0.5879467", "0.5838754", "0.582644", "0.5753994", "0.57349145", "0.57268345", "0.5725706", "0.57124394", "0.56820536", "0.5640094", "0.56322986", "0.56267154", "0.5605441", "0.5598285", "0.5591515...
0.0
-1
Filter a dataframe and return a new dataframe containing entrie that pass predicate
public synchronized <Y extends RPrimitive> RDataframe filter(String name, Class<Y> type, Predicate<Y> predicate) { return filter(RFilter.from(name, type, predicate)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Dataset FilterDataset(Dataset dataset)\n {\n Dataset result = new Dataset();\n for(HashMap<String, Object> row : dataset.dataset){\n if(this.eventExpression.MatchExpression(row))\n result.addRow(row);\n }\n return result;\n }", "public <Y extends...
[ "0.6455435", "0.63141686", "0.5960276", "0.59112775", "0.5801308", "0.5659218", "0.52679473", "0.5250563", "0.5191359", "0.51336974", "0.5130687", "0.51054054", "0.5069243", "0.5066091", "0.5053062", "0.49972448", "0.499104", "0.49771434", "0.4976466", "0.4967604", "0.4966695...
0.6091573
2
Filter a dataframe and return a new dataframe containing entries that pass predicate
public <Y extends RPrimitive> RDataframe filter(String name, Predicate<Y> predicate) { return filter(RFilter.from(name, predicate)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Dataset FilterDataset(Dataset dataset)\n {\n Dataset result = new Dataset();\n for(HashMap<String, Object> row : dataset.dataset){\n if(this.eventExpression.MatchExpression(row))\n result.addRow(row);\n }\n return result;\n }", "KTable<K, V> filt...
[ "0.61105204", "0.59279704", "0.59027594", "0.588029", "0.5756213", "0.5746413", "0.52347314", "0.51532286", "0.51282334", "0.5037796", "0.4976162", "0.4968816", "0.49007368", "0.48721966", "0.48411718", "0.48034382", "0.4797007", "0.47861367", "0.4772612", "0.47613037", "0.47...
0.60960215
1
Filter a dataframe and return a new dataframe
public synchronized RDataframe filter(RFilter<?>... tests) { // return everything if no conditions BitSet filter = (new BitSet(this.nrow())); filter.set(0, this.nrow(), true); for (RFilter<?> test: tests) { BitSet and = this.get(test.name()).matches(test.predicate()); filter.and(and); } final B...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Dataset FilterDataset(Dataset dataset)\n {\n Dataset result = new Dataset();\n for(HashMap<String, Object> row : dataset.dataset){\n if(this.eventExpression.MatchExpression(row))\n result.addRow(row);\n }\n return result;\n }", "public <Y extends...
[ "0.6071182", "0.5656396", "0.5452324", "0.52613306", "0.5221807", "0.51234806", "0.4915133", "0.48516914", "0.48512957", "0.4844768", "0.48414424", "0.4825073", "0.47395593", "0.46974906", "0.46880493", "0.4684081", "0.4643127", "0.46406585", "0.46288282", "0.46286717", "0.46...
0.5773225
1
Returns the same data frame with the column "columnName"
public synchronized <X extends RPrimitive,Y extends RPrimitive> RDataframe mutate(String columnName, Class<X> inputType, Function<X,Y> mapping) { return mutate(columnName,mapping); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Column getColumn(String columnName);", "SqlColumns(String columnName){\n\t\t\t this.columnName = columnName; \n\t\t}", "public void setColumnName(String columnName) {\n this.columnName = columnName;\n }", "public void setColumnName(String columnName)\n {\n this.columnName =...
[ "0.597303", "0.5867559", "0.5864804", "0.5804989", "0.57675403", "0.57666576", "0.5690055", "0.5671139", "0.5671133", "0.5662886", "0.5576736", "0.54621214", "0.5457063", "0.5398153", "0.53795195", "0.53718257", "0.53629076", "0.53543997", "0.52988034", "0.5283229", "0.517271...
0.0
-1
Returns the same data frame with the column "columnName"
@SuppressWarnings("unchecked") public synchronized <X extends RPrimitive,Y extends RPrimitive> RDataframe mutate(String columnName, Function<X,Y> mapping) { try { RVector<X> tmp = (RVector<X>) this.get(columnName); List<Y> tmp2 = tmp.stream().map(mapping).collect(Collectors.toList()); RVector<Y> tmp3 = (RVe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Column getColumn(String columnName);", "SqlColumns(String columnName){\n\t\t\t this.columnName = columnName; \n\t\t}", "public void setColumnName(String columnName) {\n this.columnName = columnName;\n }", "public void setColumnName(String columnName)\n {\n this.columnName =...
[ "0.597303", "0.5867559", "0.5864804", "0.5804989", "0.57675403", "0.57666576", "0.5690055", "0.5671139", "0.5671133", "0.5662886", "0.5576736", "0.54621214", "0.5457063", "0.5398153", "0.53795195", "0.53718257", "0.53629076", "0.53543997", "0.52988034", "0.5283229", "0.517271...
0.0
-1
Find the nearest node
private SkipNode<K, V> findNode(Object key) { SkipNode<K, V> nodeOut; nodeOut = headNode; while (true) { while ((nodeOut.getNext().getKey()) != posInf && (nodeOut.getNext().getKey()).compareTo((Integer) key) <= 0) nodeOut = nodeOut.getNext(); if (nodeOut.getDown() != null) nodeOut = nodeOut.get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getNearestNode(LatLng vic) {\n\t\tint node = 0;\n\t\tfor(int j=0; j<nodeList.size()-1; j++){\n\t\t\tdouble dist1 = getWeight(vic, nodeList.get(node));\n\t\t\tdouble dist2 = getWeight(vic, nodeList.get(j));\n\t\t\tif(dist1 > dist2){\n\t\t\t\tnode = j;\n\t\t\t}\n\t\t}\n\t\treturn node;\n\t}", "public f...
[ "0.7560405", "0.7371147", "0.73310953", "0.72773093", "0.69380015", "0.68920237", "0.6785837", "0.67503446", "0.6718994", "0.6666795", "0.66291976", "0.6622466", "0.6606551", "0.6578981", "0.6564126", "0.65562314", "0.65547013", "0.6538045", "0.6520536", "0.65193146", "0.6515...
0.0
-1
private Map alternativeVisibility = new HashMap(); private String titleField;
public DataViewer(T object) throws IllegalArgumentException { this.object = object; if (object == null) { throw new IllegalArgumentException(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "HashMap<String, String> getAdditionalDescriptions();", "private void setTitleMap(String title){\n if(title!=null && titleView.getVisibility() != View.GONE) {\n if (title.length() <= 50)\n titleView.setText(title);\n else\n titleView.setText(title.substri...
[ "0.57242084", "0.563098", "0.5606617", "0.5566161", "0.55425596", "0.5520941", "0.5471932", "0.5453974", "0.5342816", "0.5327026", "0.52925235", "0.52821594", "0.5242197", "0.51814806", "0.5173381", "0.51721716", "0.5171201", "0.5162525", "0.5157723", "0.5146014", "0.5144748"...
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.menu_sign_up_details, 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
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 return super.onOptionsItemSelected(item); }
{ "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
TODO Autogenerated method stub
@Override protected Double doInBackground(String... params) { postSignUpData(params[0], params[1], params[2]); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Create a new HttpClient and Post Header
public void postSignUpData(String userName, String email , String password) { HttpPost httppost = new HttpPost("http://192.168.1.224:3000/signup"); try { // Add your data JSONObject json = new JSONObject(); json.put("username" , userName); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HttpClientHelper() {\n defaultHeaders.put(\"Content-Type\", \"application/json\");\n defaultHeaders.put(\"Accept-Encoding\", \"gzip\");\n\n //postDefaultHeaders.put(\"Content-Type\", \"application/json\");\n //postDefaultHeaders.put(\"Content-Encoding\", \"gzip\");\n\n Str...
[ "0.6946483", "0.6791638", "0.6690835", "0.64410734", "0.62591386", "0.6240455", "0.6178956", "0.6175448", "0.61484545", "0.6023752", "0.5957844", "0.59496754", "0.5921056", "0.59040177", "0.59015733", "0.5873391", "0.5845826", "0.58342654", "0.58114904", "0.5791647", "0.57178...
0.0
-1
Creates an Input object connected to PortAudio, with the given number of inputs.
public RealTimeInput(int numInputs, PApplet pa) { // this(numInputs, new AudioContext(new AudioServerIO.JavaSound(), 512, AudioContext.defaultAudioFormat(numInputs, numInputs))); this(numInputs, new AudioContext(new PortAudioAudioIO(numInputs), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)), pa); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "InputPort createInputPort();", "public abstract BasicInput createInput( boolean isSeq ) throws IOException;", "public RealTimeInput(int numInputs, AudioContext audioContext, boolean skip5thru8, PApplet pa)\n\t{\n\t\tif(numInputs < 1) {\n\t\t\tthrow new IllegalArgumentException(\"Input.constructor(int, AudioCo...
[ "0.6107116", "0.5908664", "0.5831255", "0.57436216", "0.5652173", "0.56171614", "0.55382884", "0.54841137", "0.5424907", "0.5344611", "0.5316003", "0.53045475", "0.5274012", "0.51841784", "0.5074408", "0.50456965", "0.5041056", "0.5010051", "0.49853683", "0.49793616", "0.4947...
0.58177763
3
constructor int, AudioContext Creates an Input object connected to PortAudio, with the given number of inputs, as well as the option to skip inputs 58 (this assumes that you will have adjusted for the skip and passed in 4 more inputs than you plan to need; e.g., numInputs = 16 for 12 lines).
public RealTimeInput(int numInputs, boolean skip5thru8, PApplet pa) { this(numInputs, new AudioContext(new PortAudioAudioIO(numInputs), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)), skip5thru8, pa); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RealTimeInput(int numInputs, AudioContext audioContext, boolean skip5thru8, PApplet pa)\n\t{\n\t\tif(numInputs < 1) {\n\t\t\tthrow new IllegalArgumentException(\"Input.constructor(int, AudioContext): int parameter \" + numInputs + \" is less than 1; must be 1 or greater.\");\n\t\t} // if(numInputs < 1)\n\t...
[ "0.6800114", "0.5880652", "0.5831398", "0.53856146", "0.5223372", "0.5053859", "0.50499046", "0.5016823", "0.49161217", "0.4886168", "0.4881826", "0.4881356", "0.48734903", "0.48595622", "0.48091066", "0.47746977", "0.4738498", "0.47039145", "0.46830773", "0.4668298", "0.4659...
0.608227
1
constructor int, AudioContext Creates an Input object with the given number of inputs and particular AudioContext.
public RealTimeInput(int numInputs, AudioContext audioContext, PApplet pa) { this(numInputs, audioContext, false, pa); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RealTimeInput(int numInputs, PApplet pa)\n\t{\n//\t\tthis(numInputs, new AudioContext(new AudioServerIO.JavaSound(), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)));\n\t\tthis(numInputs, new AudioContext(new PortAudioAudioIO(numInputs), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)...
[ "0.6502128", "0.61515665", "0.5278119", "0.5203188", "0.51338714", "0.5130008", "0.5129943", "0.5067977", "0.50645274", "0.50639474", "0.5043544", "0.5032607", "0.49954987", "0.4944327", "0.49045533", "0.48876968", "0.48869485", "0.48516393", "0.48432443", "0.48212314", "0.48...
0.65247315
0
int, AudioContext Creates an Input object with the given number of inputs and the particular AudioContext, as well as the option to skip inputs 58 (this assumes that you will have adjusted for the skip and passed in 4 more inputs than you plan to need; e.g., numInputs = 16 for 12 lines).
public RealTimeInput(int numInputs, AudioContext audioContext, boolean skip5thru8, PApplet pa) { if(numInputs < 1) { throw new IllegalArgumentException("Input.constructor(int, AudioContext): int parameter " + numInputs + " is less than 1; must be 1 or greater."); } // if(numInputs < 1) if(audioContext == nul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RealTimeInput(int numInputs, boolean skip5thru8, PApplet pa)\n\t{\n\t\tthis(numInputs, new AudioContext(new PortAudioAudioIO(numInputs), 512, AudioContext.defaultAudioFormat(numInputs, numInputs)), skip5thru8, pa);\n\n\t}", "public RealTimeInput(int numInputs, AudioContext audioContext, PApplet pa)\n\t{\n...
[ "0.5641092", "0.5420494", "0.5398145", "0.5351784", "0.53491086", "0.52818733", "0.52439195", "0.5095418", "0.5095418", "0.5095418", "0.5067545", "0.5035706", "0.5030589", "0.5030589", "0.5030589", "0.4936377", "0.4936377", "0.4936377", "0.49047077", "0.48809913", "0.48809913...
0.6399662
0
uGenArrayFromNumInputs Fills the fundamentalArray and adjustedFundArray with the current pitches of each input line:
public void setFund() { // catching a NullPointer because I'm not sure why it happens and fear a crash during a concert. try { // TODO: maybe this won't be necessary once the threads are implemented. if(!this.pause) { for (int i = 0; i < this.adjustedNumInputs; i++) { // println("setFund...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createArray() {\n\t\tdata = new Integer[userInput];\n\t\tRandom rand = new Random();\n\n\t\t// load the array with random numbers\n\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\tdata[i] = rand.nextInt(maximumNumberInput);\n\t\t}\n\n\t\t// copy the array to the sorting method\n\t\tinsertionData = d...
[ "0.5641899", "0.50799763", "0.5059016", "0.5046251", "0.5042085", "0.49925187", "0.49700385", "0.48898098", "0.48782653", "0.48565844", "0.48485136", "0.48376825", "0.47815123", "0.47790116", "0.47774953", "0.47654626", "0.47526988", "0.47486323", "0.474679", "0.4743639", "0....
0.54289937
1
setFund Calculates the average frequency of multiple input lines.
public float getAverageFund(int[] inputsToAverage) { if (inputsToAverage == null) { throw new IllegalArgumentException("Input_Jack.getAverageFund: int[] parameter is null."); } // error checking if (inputsToAverage.length < 1) { throw new IllegalArgumentException("Input_Jack.getAverageFund: int[] paramete...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFund() {\n\t\t// catching a NullPointer because I'm not sure why it happens and fear a crash during a concert.\n\t\ttry\n\t\t{\n\t\t\t// TODO: maybe this won't be necessary once the threads are implemented.\n\t\t\tif(!this.pause)\n\t\t\t{\n\t\t\t\tfor (int i = 0; i < this.adjustedNumInputs; i++)\n\t...
[ "0.63009787", "0.5612238", "0.5549315", "0.5419538", "0.5373642", "0.53581023", "0.52135694", "0.52077717", "0.51955456", "0.5175881", "0.5168965", "0.51355237", "0.5132147", "0.5078337", "0.5012203", "0.5005725", "0.5000258", "0.49781832", "0.4957174", "0.49488807", "0.49473...
0.56994826
1
getAverageFund(int[]) Calculates the average frequency of multiple consecutive input lines, numbered from "firstInput" to "lastInput".
public float getAverageFund(int firstInput, int lastInput) { inputNumErrorCheck(firstInput, "getAverageFund(int, int) - first int"); inputNumErrorCheck(lastInput, "getAverageFund(int, int) - second int"); if (!(lastInput > firstInput)) { throw new IllegalArgumentException("InputClassJack.getAverageFund(): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getAverageAmp(int firstInput, int lastInput)\n\t{\n\t\tinputNumErrorCheck(firstInput, \"getAverageFund(int, int) - first int\");\n\t\tinputNumErrorCheck(lastInput, \"getAverageFund(int, int) - second int\");\n\t\tif (!(lastInput > firstInput)) { \n\t\t\tthrow new IllegalArgumentException(\"InputClass...
[ "0.74641323", "0.731869", "0.71004623", "0.6381667", "0.6301228", "0.6046715", "0.59225935", "0.59130466", "0.5886756", "0.58498716", "0.58349067", "0.5815215", "0.5813322", "0.58083934", "0.5803808", "0.5786409", "0.5776284", "0.57486093", "0.57190245", "0.5716025", "0.56984...
0.77034783
0
getAverageFund Calculates the average frequency of multiple input lines.
public float getAverageAmp(int[] inputsToAverage) { if (inputsToAverage == null) { throw new IllegalArgumentException("Input_Jack.getAverageAmp: int[] parameter is null."); } // error checking if (inputsToAverage.length < 1) { throw new IllegalArgumentException("Input_Jack.getAverageAmp: int[] parameter's...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getAverageFund(int[] inputsToAverage)\n\t{\n\t\tif (inputsToAverage == null) {\n\t\t\tthrow new IllegalArgumentException(\"Input_Jack.getAverageFund: int[] parameter is null.\");\n\t\t} // error checking\n\t\tif (inputsToAverage.length < 1) {\n\t\t\tthrow new IllegalArgumentException(\"Input_Jack.get...
[ "0.7027379", "0.67035913", "0.63921094", "0.60790575", "0.59822947", "0.5978111", "0.5957249", "0.59510005", "0.59101045", "0.5873774", "0.58599967", "0.5837038", "0.5804571", "0.57671547", "0.5760113", "0.57499045", "0.5743125", "0.57397264", "0.5733449", "0.5733369", "0.570...
0.51916564
96
getAverageAmp Calculates the average amplitude of multiple consecutive input lines, numbered from "firstInput" to "lastInput".
public float getAverageAmp(int firstInput, int lastInput) { inputNumErrorCheck(firstInput, "getAverageFund(int, int) - first int"); inputNumErrorCheck(lastInput, "getAverageFund(int, int) - second int"); if (!(lastInput > firstInput)) { throw new IllegalArgumentException("InputClassJack.getAverageFund(): l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getAverageAmp(int[] inputsToAverage)\n\t{\n\t\tif (inputsToAverage == null) {\n\t\t\tthrow new IllegalArgumentException(\"Input_Jack.getAverageAmp: int[] parameter is null.\");\n\t\t} // error checking\n\t\tif (inputsToAverage.length < 1) {\n\t\t\tthrow new IllegalArgumentException(\"Input_Jack.getAv...
[ "0.73215204", "0.6119808", "0.6016132", "0.60141027", "0.6002055", "0.5913151", "0.5854882", "0.5748775", "0.57307106", "0.5666478", "0.56127906", "0.56057435", "0.5587365", "0.5540396", "0.5517262", "0.5514846", "0.55027217", "0.545824", "0.5452731", "0.5451797", "0.54492116...
0.79015476
0
getAverageAmp Setter for sensitivity float instance var.
public void setSensitivity(float newSensitivity) { this.sensitivity = newSensitivity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getAmperage() {\r\n return amperage;\r\n }", "public double getCurrentAmplitudeAvg() {\n return publicAvg;\n }", "public double getAmperage() {\n\t\treturn this.amperage;\n\t}", "public double getWaveAvg() {\n\t\t\treturn avgWaveDist;\n\t\t}", "public float getAmpli...
[ "0.71875155", "0.7152373", "0.7108597", "0.6967648", "0.6818748", "0.6704281", "0.66838115", "0.6667907", "0.6626754", "0.6486324", "0.6406648", "0.6362146", "0.6342226", "0.6310732", "0.6276126", "0.6221241", "0.62095207", "0.6187064", "0.6166775", "0.61353946", "0.61215043"...
0.0
-1
/ This file is part of Beads. See for all information. CREDIT: This class uses portions of code taken from MEAP. See readme/CREDITS.txt. 07/02/2016 Emily Meuer Edited to allow access to amplitude, so classes using these Frequencies can cut out some background noise. package net.beadsproject.beads.analysis.featureextrac...
public UGen[] getuGenArray() { return uGenArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FrequencyAnalysis()\n {\n }", "private FrequencyConverter() {\n }", "@Test\n public void test() {\n int packLength = 156;\n DFTMainFreqEncoder encoder = new DFTMainFreqEncoder(packLength);\n encoder.setMainFreqNum(2);\n List<float[]> packs;\n\n for (int i =...
[ "0.6037287", "0.60102075", "0.5998475", "0.5863536", "0.58354074", "0.57006204", "0.5642107", "0.5631789", "0.5590085", "0.55431974", "0.5479248", "0.5443522", "0.5424887", "0.5411906", "0.5397214", "0.5387644", "0.53714854", "0.53288513", "0.53158456", "0.53137577", "0.53103...
0.0
-1
Process the request and return an ActionForward instance describing where and how control should be forwarded, or nullif the response has already been completed.
public ActionForward execute ( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { // Verify login if(!verifyLogin(request, response, true)) { return mapping.findForward("login"); } // Get para...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void sendForward(HttpServletRequest request, HttpServletResponse response, String location) throws AccessControlException, ServletException, IOException;", "ForwardAction createForwardAction();", "private void forward(ServletRequest request, ServletResponse response, AuthTokenState state){\n\t\tRequestDispatch...
[ "0.60341024", "0.60292983", "0.57879746", "0.5767781", "0.5664627", "0.5562924", "0.55490804", "0.5481817", "0.5471465", "0.5467806", "0.54300094", "0.53656924", "0.53421754", "0.5326687", "0.5302766", "0.5293168", "0.52814585", "0.52630526", "0.52283686", "0.5199569", "0.517...
0.48038155
59
Allocate an ADisk that stores its data using a Disk. If format is true, wipe the current disk and initialize data structures for an empty disk. Otherwise, initialize internal state, read the log, and redo any committed transactions.
public ADisk(boolean format) { // build lock this.setFailureProb(0); ADisk_lock = new SimpleLock(); waitLock = new SimpleLock(); atranslist = new ActiveTransactionList(); //initialize lists and logs wblist = new WriteBackList(this); commitDone = waitLock.newCondition(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void format( RawDisk disk) {\n \tthis.tempDisk.format();\n }", "@Before\n public void init(){\n spaceCapacity = 20;\n fileSystem = new FileSystem(spaceCapacity);\n }", "public void startup( RawDisk disk) {\n\t\tthis.tempDisk = disk;\t\n }", "private void init(int diskSize)...
[ "0.53261006", "0.519236", "0.5164527", "0.51258904", "0.50909936", "0.4992179", "0.49495205", "0.494419", "0.4828924", "0.48282373", "0.4827019", "0.4772072", "0.47413167", "0.47395718", "0.4739173", "0.47343847", "0.4720808", "0.46975717", "0.46916917", "0.4645876", "0.45860...
0.73336333
0
Return the total number of data sectors that can be used not including space reseved for the log or other data sructures. This number will be smaller than Disk.NUM_OF_SECTORS.
public static int getNSectors() { return Disk.NUM_OF_SECTORS - ADisk.REDO_LOG_SECTORS - 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static long getNumSector(String requestSize, String sectorSize) {\n Double memSize = Double.parseDouble(requestSize);\n Double sectorBytes = Double.parseDouble(sectorSize);\n Double nSectors = memSize / sectorBytes;\n Double memSizeKB = memSize / 1024;\n Double memSizeGB = memSize / (1024 * 1...
[ "0.66862404", "0.65660065", "0.62361467", "0.62140286", "0.61370176", "0.6068049", "0.6056859", "0.5977229", "0.591146", "0.5906271", "0.5900453", "0.5887138", "0.58834773", "0.5881057", "0.5844807", "0.58434695", "0.57552975", "0.5750899", "0.5749812", "0.5723725", "0.570521...
0.7669268
0
Begin a new transaction and return a transaction ID
public TransID beginTransaction() { //TransID tid = new TransID(); Transaction collect_trans = new Transaction(this); atranslist.put(collect_trans); return collect_trans.getTid(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int startTransaction();", "public Transaction startTransaction(){\n\t\ttr = new Transaction(db);\n\t\treturn tr;\n\t}", "Transaction beginTx();", "void beginTransaction();", "void startTransaction();", "public void createTransaction(Transaction trans);", "public Transaction startTransaction() {\...
[ "0.7354779", "0.7272246", "0.6921341", "0.6894881", "0.6842019", "0.68383026", "0.6773633", "0.6754225", "0.671597", "0.6654376", "0.66420376", "0.6556594", "0.65080327", "0.647724", "0.6476613", "0.6360051", "0.6327908", "0.6322216", "0.6314968", "0.62405974", "0.62252474", ...
0.7947532
0
First issue writes to put all of the transaction's writes in the log. Then issue a barrier to the Disk's write queue. Then, mark the log to indicate that the specified transaction has been committed. Then wait until the "commit" is safely on disk (in the log). Then take some action to make sure that eventually the upda...
public void commitTransaction(TransID tid) throws IOException, IllegalArgumentException{// Not yet complete try { ADisk_lock.lock(); // Call commit atranslist.get(tid).commit(); Transaction temp = atranslist.remove(tid); wblist.addCommitted(temp); } finally{ ADisk_lock.unlock();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void commit() throws IOException {\n this.snapLog.commit();\n }", "public void commit(int tid) {\n List<Lock> lockList = null;\n\n // check wheter there is read-only transaction running\n boolean hasRO = _tm.hasRunningReadonly();\n for (Integer varIndex : _lockTable.keySet()) {\n ...
[ "0.6463135", "0.63995314", "0.63491136", "0.60487115", "0.59354335", "0.5851189", "0.58375585", "0.58338505", "0.57961124", "0.57314706", "0.5691492", "0.56575", "0.5638561", "0.56190664", "0.5582094", "0.55492187", "0.5505619", "0.55033225", "0.5500747", "0.5452994", "0.5433...
0.709012
0
Free up the resources for this transaction without committing any of the writes. Throws IllegalArgumentException if tid does not refer to an active transaction.
public void abortTransaction(TransID tid) throws IllegalArgumentException {//done // Check that this is actually an active transaction try { atranslist.get(tid).abort(); } catch (IOException e) { // TODO Auto-generated catch block System.out.println("IO exception"); e.printStackTrace(); System.exit(-1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void commit(int tid) {\n List<Lock> lockList = null;\n\n // check wheter there is read-only transaction running\n boolean hasRO = _tm.hasRunningReadonly();\n for (Integer varIndex : _lockTable.keySet()) {\n lockList = _lockTable.get(varIndex);\n int size = lockList.size();\n for (...
[ "0.6296857", "0.6282669", "0.6051205", "0.5931769", "0.5620978", "0.551087", "0.54268086", "0.52965647", "0.5265593", "0.5240338", "0.52218586", "0.5177042", "0.51462954", "0.5115073", "0.5067541", "0.5056839", "0.50520706", "0.5047713", "0.49582967", "0.49413997", "0.4920615...
0.6209546
2
Read the disk sector numbered sectorNum and place the result in buffer. Note: the result of a read of a sector must reflect the results of all previously committed writes as well as any uncommitted writes from the transaction tid. The read must not reflect any writes from other active transactions or writes from aborte...
public void readSector(TransID tid, int sectorNum, byte buffer[]) throws IOException, IllegalArgumentException, IndexOutOfBoundsException{ // Not quite done yet try{ ADisk_lock.lock(); readTid = tid.getTidfromTransID(); readSector = sectorNum; d.startRequest(Disk.READ, ti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readSectorDiskOnly(TransID tid, int sectorNum, byte buffer[])\n throws IOException, IllegalArgumentException, \n IndexOutOfBoundsException{\t\t\t\t\t\t\t\t// Not quite done yet\n\t try{\n\t\t ADisk_lock.lock();\n\n\t readTid = tid.getTidfromTransID();\n\t readSector = sectorNum;\n d.st...
[ "0.79566896", "0.5594339", "0.55817926", "0.4841465", "0.4833967", "0.4724324", "0.46817657", "0.45610908", "0.44835296", "0.44072214", "0.43571064", "0.4276786", "0.42729765", "0.4267163", "0.42550755", "0.4247804", "0.4228069", "0.42245764", "0.4208341", "0.41515574", "0.41...
0.7978177
0
/ Read sector DISK ONLY this is used for debugging to make sure changes were written to disk
public void readSectorDiskOnly(TransID tid, int sectorNum, byte buffer[]) throws IOException, IllegalArgumentException, IndexOutOfBoundsException{ // Not quite done yet try{ ADisk_lock.lock(); readTid = tid.getTidfromTransID(); readSector = sectorNum; d.startRequest(Disk.READ, tid....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDisk();", "public native int getDiskIO();", "public long\n getDisk()\n {\n return pDisk;\n }", "com.google.protobuf.ByteString getDiskBytes();", "public String getDisk() {\n return disk;\n }", "public int getDisk()\n {\n return this.disk;\n }", "boolean ...
[ "0.6900715", "0.66873854", "0.65194964", "0.6460812", "0.6400139", "0.6340732", "0.6296725", "0.6179094", "0.6078929", "0.5931708", "0.5918935", "0.5902283", "0.58916986", "0.58803916", "0.58408034", "0.57803315", "0.5761086", "0.575453", "0.5623968", "0.56160027", "0.5592789...
0.65300167
2
Buffer the specified update as part of the inmemory state of the specified transaction. Don't write anything to disk yet. Concurrency: The final value of a sector must be the value written by the transaction that commits the latest. Throws IllegalArgumentException if tid does not refer to an active transaction or buffe...
public void writeSector(TransID tid, int sectorNum, byte buffer[]){ atranslist.get(tid).addWrite(sectorNum, buffer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void commit(int tid) {\n List<Lock> lockList = null;\n\n // check wheter there is read-only transaction running\n boolean hasRO = _tm.hasRunningReadonly();\n for (Integer varIndex : _lockTable.keySet()) {\n lockList = _lockTable.get(varIndex);\n int size = lockList.size();\n for (...
[ "0.58697474", "0.58465147", "0.57209015", "0.53637666", "0.5090268", "0.49590704", "0.49478438", "0.48787296", "0.47150692", "0.47079456", "0.46735984", "0.45946103", "0.45897362", "0.4589561", "0.45854276", "0.45595956", "0.45148817", "0.45111609", "0.45009232", "0.4495593", ...
0.5917592
0
Update the failure probability for testing
public void setFailureProb(float failprob) { this.failprob = failprob; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProbOfFailure(int prob) {\n \tif( prob <= 100 || prob >= 0){\n \t\tthis.probOfFailure = prob;\n \t}\n }", "public void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\r\n\t}", "public void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\t\r\n\t}", ...
[ "0.718893", "0.6502335", "0.6502335", "0.6502335", "0.64498866", "0.64385754", "0.64297515", "0.64297515", "0.64297515", "0.64297515", "0.64297515", "0.6428471", "0.6428471", "0.6428471", "0.6428471", "0.6424727", "0.640252", "0.63821995", "0.6352216", "0.63434726", "0.633958...
0.75250614
0
function to wait for commit to write
public void commitWait() { try{ waitLock.lock(); while(commitBarrierSector != -1){ commitDone.awaitUninterruptibly(); } return; } finally{ waitLock.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void waitToWrite();", "static void waitForBlockCommit() {\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "void commit() throws InterruptedException;", "public synchronized CommitInfo waitForCommitted() throws InterruptedException {\n\t\twhile (null ...
[ "0.74132466", "0.72142136", "0.6960489", "0.6522757", "0.6475288", "0.63949835", "0.62955254", "0.62870145", "0.6108766", "0.6102421", "0.60991144", "0.60991144", "0.6054964", "0.6054955", "0.6003422", "0.5989295", "0.5905239", "0.5897995", "0.5891525", "0.5876597", "0.581458...
0.7228415
1
function to wait for disk read
public void readWait() { try{ waitLock.lock(); while(readSector != -1){ readDone.awaitUninterruptibly(); } return; } finally{ waitLock.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void waitToRead();", "void waitToWrite();", "public void logReadWait()\n {\n try{\n waitLock.lock();\n while(logReadSector != -1){\n \t logReadDone.awaitUninterruptibly();\n }\n return;\n }\n finally{\n waitLock.unlock();\n }\n }", "private void waitBetweenRead() {\...
[ "0.77252656", "0.6775101", "0.6751731", "0.6449337", "0.640364", "0.6296606", "0.61235064", "0.6121833", "0.6112788", "0.59350455", "0.59186774", "0.5816069", "0.5756689", "0.572632", "0.57150865", "0.56983924", "0.5684955", "0.567262", "0.56565505", "0.5636227", "0.563448", ...
0.7172326
1
function to wait for disk log
public void logReadWait() { try{ waitLock.lock(); while(logReadSector != -1){ logReadDone.awaitUninterruptibly(); } return; } finally{ waitLock.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void waitToWrite();", "void waitToRead();", "private void waitForLogSpace(Connection conn, JdbcHelper jdbc) {\r\n this.curLogCounter.incrementAndGet();\r\n\r\n // only trigger the check every \"maxLogCounter\" checks\r\n if (this.curLogCounter.get() == maxLogCounter) {\r\n ...
[ "0.6485472", "0.64517003", "0.6056398", "0.60368234", "0.6036199", "0.5843614", "0.5842713", "0.57873785", "0.56278855", "0.56249964", "0.56084824", "0.5608156", "0.5581864", "0.5577049", "0.5576428", "0.552062", "0.54868585", "0.54652894", "0.5420004", "0.54041874", "0.53670...
0.67530304
0
function to wait for writeback barrier
public void wbbarrierWait() { try{ waitLock.lock(); while(wbbarrierTag != -1){ wbbarrier.awaitUninterruptibly(); } return; } finally{ waitLock.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void commitWait()\n {\n try{\n waitLock.lock();\n while(commitBarrierSector != -1){\n \t commitDone.awaitUninterruptibly();\n }\n return;\n }\n finally{\n waitLock.unlock();\n }\n }", "void synchronizationDone();", "void waitToWrite();", "static void waitForB...
[ "0.71469426", "0.6446489", "0.6425153", "0.63113904", "0.61659265", "0.61553514", "0.61463016", "0.6123199", "0.60927933", "0.60615903", "0.6011986", "0.5978004", "0.597744", "0.5962544", "0.5958468", "0.5933274", "0.5886742", "0.58721256", "0.586477", "0.58604276", "0.585642...
0.73007584
0
in ticks. 2400 = 2 mins; 6000 = 5 mins; 18000 = 15mins(1 mc day)
public EntitySpiderHouse(World par1World) { super(par1World); this.experienceValue = 1; this.setSize(0.2F, 0.2F); this.getNavigator().setAvoidsWater(true); this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(1, new EntityAIPanic(this, 1.4D)); // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void tick(long ticksSinceStart);", "public int ticksPerSec()\n\t{\n\t\treturn _ticksPerSec;\n\t}", "public static final long getTicksPerMinute() {\n return p().TICKS_PER_RLMIN;\n }", "public long ticks(){\n return maxTicks;\n\n }", "public abstract int getTicks();", "public static final lon...
[ "0.6682091", "0.65507996", "0.6530086", "0.65278465", "0.6516906", "0.6394278", "0.63570946", "0.6284592", "0.62457067", "0.6203247", "0.61339587", "0.61182654", "0.6117566", "0.61163443", "0.6096013", "0.60806733", "0.60351753", "0.60343087", "0.6014341", "0.598145", "0.5950...
0.0
-1
removes chance of spider jockey
public void initCreature() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void killAndHunt() {\n\t\tRandom random = new Random();\n\t\tint currentIndex = random.nextInt(N);\t\n\t\tkill(currentIndex);\n\t}", "public void NPSShot()\n\t{\n\t\t//can only occur if a friendly missile and \n\t\t//a NPS are spawned\n\t\tif(gameObj[2].size() > 0 && gameObj[4].size() > 0)\n\t\t{\n\t\t\ti...
[ "0.6798435", "0.67211264", "0.6438594", "0.6095973", "0.6030904", "0.60224056", "0.60057455", "0.5992866", "0.5964302", "0.5893588", "0.58879775", "0.5837674", "0.5801693", "0.5795823", "0.57840407", "0.5783704", "0.57794", "0.57708746", "0.574292", "0.57280207", "0.5703089",...
0.0
-1
int a = myhost.getTotalCpu()myhost.getAvaliableCpu(); int b = myhost.getTotalCpu();
public double getUtilization(Myhost myhost) { return ((double)(myhost.getTotalCpu()-myhost.getAvaliableCpu()) / myhost.getTotalCpu()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native int getCpuUsage();", "public int getCpuLoad() { return cpuLoad; }", "public Long getCpu() {\n return this.Cpu;\n }", "private double getCpuStatistic(String args) throws Exception\n {\n /*\n ORDER OF COLLUMNS FROM PROC/STAT\n user: normal processes executing in ...
[ "0.74369013", "0.7303724", "0.7050024", "0.69332635", "0.6928802", "0.6865772", "0.67550325", "0.6746786", "0.66893965", "0.6627166", "0.65796703", "0.6548292", "0.6504724", "0.6504067", "0.6478482", "0.64719355", "0.6471557", "0.64119655", "0.6398293", "0.63008034", "0.62766...
0.73188204
1
double cpuUtilization = (double) (myhost.getTotalCpu()myhost.getAvaliableCpu()+vm.getMips())/myhost.getTotalCpu(); int cpuUtilization = myhost.getTotalCpu()myhost.getAvaliableCpu();
public double calculateTemper(Double utilization) { float a = (float) 32.4031331148812; float b = (float) -0.105871112063592; float c = (float) 0.019012207217; float d = (float) -0.000103336673855697; double targetTemper = a + b * utilization + Math.pow(c,2) * utilization + M...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getUtilization(Myhost myhost)\n {\n return ((double)(myhost.getTotalCpu()-myhost.getAvaliableCpu()) / myhost.getTotalCpu());\n }", "public double getCpuUsage() {\n \t\tif (cpuUsage > 100) {\n \t\t\treturn 100;\n \t\t}\n \t\treturn cpuUsage;\n \t}", "public native int getCpuUsage();",...
[ "0.8082374", "0.7819267", "0.75847346", "0.75787413", "0.7547533", "0.7346381", "0.73427284", "0.73038554", "0.7247134", "0.72044396", "0.718422", "0.71494603", "0.68973374", "0.67899466", "0.6754471", "0.6745265", "0.6735059", "0.6726127", "0.6689123", "0.66268975", "0.66184...
0.0
-1
QuestionDTO question = questionService.getById(id);
@GetMapping("/insertdepartment/{id}") public String edit(@PathVariable(name = "id") Integer id, Model model){ departmentDTO department = departmentService.getById(id); model.addAttribute("dpmtid",department.getDpmtid()); model.addAttribute("dpmtname",department.getDp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public QuestionDTO getByID(Integer id) {\n QuestionExample questionExample = new QuestionExample();\n questionExample.createCriteria().andIdEqualTo(id);\n List<Question> questions = questionMapper.selectByExample(questionExample);\n if(questions.size()==0){\n throw new Custom...
[ "0.7791128", "0.7343613", "0.71437603", "0.7070561", "0.6891103", "0.6890419", "0.6792597", "0.6764233", "0.6758476", "0.66875446", "0.6654503", "0.66438127", "0.6636609", "0.66053617", "0.65964216", "0.65602493", "0.653994", "0.65306705", "0.65283686", "0.650335", "0.6489703...
0.0
-1
Initialize the row with the given array of pieces. The row is located at the given row index.
public Row(Piece[] pieces, int index) { this.index = index; spaces = new ArrayList<>(); for (int column = 0; column < 8; column++) { spaces.add(new Space(index, column, pieces[column])); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Row(int index) {\n this.index=index;\n row = new ArrayList<>(8);\n }", "public Board(int[][] grid, Tetrimino piece) {\n //initComponents();\n this.grid = grid;\n this.piece = piece;\n setLayout(new GridLayout(grid.length-4, grid[0].length));\n init();\n ...
[ "0.64817935", "0.5876861", "0.5753828", "0.5723619", "0.5678148", "0.56495315", "0.564649", "0.5635651", "0.55914485", "0.55208313", "0.54893404", "0.5488868", "0.54410934", "0.5427122", "0.54034376", "0.53892094", "0.5378247", "0.5377157", "0.5355166", "0.53297186", "0.53048...
0.7682281
0
Returns the row index of this row.
public int getIndex() { return index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getRowNo() {\n return rowIndex+1;\n }", "public int getRowNumber()\r\n\t{\r\n\t\treturn this.rowNumber;\r\n\t}", "public int getRowIndex() {\r\n\t\treturn rowIndex;\r\n\t}", "public int getRow() {\n\t\t\treturn rowNumber;\n\t\t}", "public int getRow()\r\n\t{\r\n\t\treturn this.row;\r\n...
[ "0.81914216", "0.80605125", "0.8001524", "0.7996014", "0.79572415", "0.79314387", "0.79230905", "0.79230905", "0.7906542", "0.79051036", "0.79051036", "0.7904015", "0.7904015", "0.78842115", "0.787522", "0.7858693", "0.7858693", "0.7856855", "0.7852411", "0.7852411", "0.78524...
0.0
-1
Creates an iterable for the Spaces in this Row for the freemarker template to work with.
public Iterator<Space> iterator() { return spaces.iterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Iterator<Space> iterator() {\n return row.iterator();\n }", "public ArrayList<Space> getSpaces()\r\n\t{\r\n\t\treturn new ArrayList<Space>(_spaces.values());\r\n\t}", "public ArrayList<String> getSpaces(){\n return this.spaces; //allows us to get \n }", "protected Li...
[ "0.6084436", "0.5640425", "0.5427704", "0.5426168", "0.5112136", "0.5106309", "0.49946356", "0.49883857", "0.49595785", "0.4922822", "0.48946294", "0.48798323", "0.4863312", "0.48164177", "0.48069945", "0.47876376", "0.47747266", "0.4771726", "0.4717886", "0.4717147", "0.4682...
0.56869376
1
Overriding equals() for deep equality between Row Objects. This method is used for testing.
@Override public boolean equals(Object obj){ if(this == obj){ return true; } else if(!(obj instanceof Row)){ return false; } Row row2 = (Row)obj; return this.index == row2.index && this.spaces.equals(row2.spaces); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean equals (Object o) {\n if (!(o instanceof Row)) return false;\n\n Row other = (Row)o;\n if(index!=other.getIndex())\n return false;\n for (int i = 0; i < row.size(); i++)\n if (!row.get(i).equals(other.get(i)))\n ...
[ "0.7989067", "0.7596177", "0.73764366", "0.71412146", "0.71147376", "0.6808455", "0.67554444", "0.6605768", "0.652433", "0.6513969", "0.6513969", "0.6461881", "0.64483416", "0.6446753", "0.64393616", "0.6427913", "0.640866", "0.6408487", "0.6402441", "0.63966894", "0.63916314...
0.8028251
0
return null; List allmovie=movieRepository.findAll();
@Override public List<Movie> getAllMovie() { return movieRepository.findAll();}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Transactional(readOnly = true)\n public List<Movie> findAll() {\n log.debug(\"Request to get all MovieS\");\n return movieRepository.findAll();\n }", "@GetMapping(\"/\")\n\tpublic List<Movie> getListMovie(){\n\t\tList<Movie> list = repo.findAll();\n\t\t\n\t\treturn list;\n\t}", "@Override\...
[ "0.794825", "0.76561606", "0.75115246", "0.7212687", "0.7128883", "0.7079648", "0.7038824", "0.7011067", "0.6994522", "0.6954428", "0.6835985", "0.677025", "0.67661774", "0.67346", "0.673055", "0.6713696", "0.6707287", "0.67069906", "0.66675925", "0.6664199", "0.66622394", ...
0.8525924
0
Service Interface for managing Company's employee entities.
public interface CompanyEmployeeService extends AbstractService<CompanyEmployee, Long, CompanyEmployeeDTO> { /** * Find all employee by Company id. * * @return the list of entities */ List<CompanyEmployeeDTO> findAllByCompanyId(Long id); /** * Find all employees by type. * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CompanyService {\n void addEmployee(CompanyId companyId, Employee employee);\n\n void removeEmployee(CompanyId companyId, Employee employee);\n\n Employee getEmployee(CompanyId companyId, EmployeeId employeeId);\n\n List<Employee> getCompanyEmployees(CompanyId companyId);\n}", "publi...
[ "0.73957103", "0.71779823", "0.71598303", "0.6745142", "0.6635274", "0.662474", "0.6569178", "0.65630764", "0.6560681", "0.65388465", "0.64526975", "0.6425565", "0.64149505", "0.63739467", "0.6360219", "0.6332639", "0.6323049", "0.63169336", "0.6312255", "0.6293665", "0.62776...
0.6973321
3
Find all employee by Company id.
List<CompanyEmployeeDTO> findAllByCompanyId(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getFindByIdCompany() {\n log.info(\"CompaniesContactsBean => method : getFindByIdCompany()\");\n\n log.info(\"ID company\" + companiesBean.getCompaniesEntity().getId());\n this.companiesContactsEntityList = findByIdCompany(companiesBean.getCompaniesEntity());\n }", "public Com...
[ "0.75379306", "0.70871985", "0.6997461", "0.69794387", "0.67503774", "0.66399354", "0.662703", "0.65855116", "0.6571396", "0.65570515", "0.6509131", "0.64596003", "0.64562476", "0.6441718", "0.6424856", "0.6408035", "0.6397774", "0.63738817", "0.63724494", "0.63708365", "0.63...
0.79846853
0
Find all employees by type.
List<CompanyEmployeeDTO> findAllByType(EmployeeType type);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<E> findAll(Class<E> type){\n transaction.begin();\n List<E> types = entityManager.createQuery(\" from \" + type.getName()).getResultList();\n transaction.commit();\n return types;\n }", "@Override\n\tpublic List<EmploieType> findAll() {\n\t\treturn emploieTypeRepository...
[ "0.7137625", "0.71026224", "0.66383743", "0.6450968", "0.6400926", "0.63909", "0.6336264", "0.61468965", "0.60287565", "0.6012398", "0.59986377", "0.59584284", "0.59554875", "0.5916455", "0.5913966", "0.5913556", "0.5901193", "0.588589", "0.5870141", "0.5869387", "0.5864047",...
0.7975587
0
Find all employees by company id znd employee type.
List<CompanyEmployeeDTO> findAllByCompanyIdAndEmployeeType(Long companyId, EmployeeType employeeType);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CompanyEmployeeDTO> findAllByType(EmployeeType type);", "List<CompanyEmployeeDTO> findAllByCompanyId(Long id);", "public List<Employees> findAllByEmploymentTypeIdName(String Name);", "public List<User> getAllEmployees(String companyShortName);", "public interface CompanyEmployeeService extends Abstrac...
[ "0.75530803", "0.728679", "0.6629198", "0.6620717", "0.65089494", "0.6485262", "0.6465409", "0.6432106", "0.64266473", "0.6397246", "0.6353752", "0.6340332", "0.6326923", "0.63143927", "0.6311902", "0.62903976", "0.6280655", "0.6264428", "0.62455004", "0.6241828", "0.62241787...
0.75697273
0
Constructor for the item.
public PoisonPack(Battle battle, String name){ //calls the ItemDrop constructor super(true, 200, 0, false, battle); this.name = name; this.imageName = "poison.png"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Item()\n {\n super();\n }", "public Item(){}", "private Item(){}", "public Item() {}", "public Item() {\n\t}", "public Item() {\n\t}", "@SuppressWarnings(\"unused\")\n public Item() {\n }", "public Item() {\n }", "public Item() {\n }", "public Item()\r\n {\r\n ...
[ "0.8405709", "0.83424646", "0.8295188", "0.8212352", "0.8111174", "0.8111174", "0.80430615", "0.8040832", "0.8040832", "0.7979504", "0.7877473", "0.774453", "0.76846766", "0.76710445", "0.766868", "0.76572716", "0.76544166", "0.757744", "0.75321525", "0.74896234", "0.74471897...
0.0
-1
Decreases the energy of the robot that hits the item by 15.
public void doItemEffect(RobotPeer robot){ //System.out.println("Energy = " + robot.getEnergy()); robot.updateEnergy(-15); //System.out.println("Poison item USED"); //System.out.println("Energy = " + robot.getEnergy()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void move() {\n energy -= 0.03;\n if (energy < 0) {\n energy = 0;\n }\n }", "public void buyDecreaseDamage() {\n this.decreaseDamage++;\n }", "public static void decreaseDifficaulty() {\r\n\t\tif (Enemy._timerTicker < 70)\r\n\t\t\tEnemy._timerTicker += 3;\r\n...
[ "0.64242965", "0.62189955", "0.6093392", "0.60858953", "0.5964599", "0.5930495", "0.59023786", "0.5868056", "0.57915026", "0.5757231", "0.5751094", "0.5718905", "0.56897396", "0.56795824", "0.5664517", "0.56521535", "0.56305164", "0.56298995", "0.5597419", "0.5577469", "0.557...
0.64883554
0