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
Creates a Shared Access Signature token provider with the given key name and key value. Returned token provider creates tokens with validity of 20 minutes. This is a utility method.
public static TokenProvider createSharedAccessSignatureTokenProvider(String sasKeyName, String sasKey) { return new SharedAccessSignatureTokenProvider(sasKeyName, sasKey, SecurityConstants.DEFAULT_SAS_TOKEN_VALIDITY_IN_SECONDS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TokenProvider {\n /**\n * @return an always valid access token.\n */\n String getAccessToken();\n\n /**\n * Forces a refresh of all tokens.\n *\n * @return the newly refreshed access token.\n */\n String refreshTokens();\n}", "@Override\n public AccessToken...
[ "0.5348941", "0.5287266", "0.5108038", "0.50100696", "0.4964531", "0.494254", "0.49410862", "0.49150318", "0.48985246", "0.4836735", "0.47015336", "0.46704578", "0.46690136", "0.46379492", "0.46008742", "0.45925942", "0.4590888", "0.4581574", "0.4572965", "0.4567416", "0.4562...
0.72029525
0
Creates an Azure Active Directory token provider that acquires a token from the given active directory instance using the given clientId, username and password. This is a utility method.
public static TokenProvider createAzureActiveDirectoryTokenProvider(String authorityUrl, String clientId, String userName, String password) throws MalformedURLException { AuthenticationContext authContext = createAuthenticationContext(authorityUrl); return new AzureActiveDirectoryTokenProvider(authC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static TokenProvider createAzureActiveDirectoryTokenProvider(String authorityUrl, String clientId, String clientSecret) throws MalformedURLException\n {\n AuthenticationContext authContext = createAuthenticationContext(authorityUrl);\n return new AzureActiveDirectoryTokenProvider(authContex...
[ "0.72992235", "0.595923", "0.5573496", "0.5436988", "0.5318369", "0.5199239", "0.5197324", "0.51600105", "0.51276875", "0.51276875", "0.51276183", "0.51127076", "0.50442874", "0.49989563", "0.49893522", "0.497051", "0.49634546", "0.49199274", "0.4916776", "0.49075326", "0.488...
0.7107338
1
Creates an Azure Active Directory token provider that acquires a token from the given active directory instance using the given clientId and client secret. This is a utility method.
public static TokenProvider createAzureActiveDirectoryTokenProvider(String authorityUrl, String clientId, String clientSecret) throws MalformedURLException { AuthenticationContext authContext = createAuthenticationContext(authorityUrl); return new AzureActiveDirectoryTokenProvider(authContext, new C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static TokenProvider createAzureActiveDirectoryTokenProvider(String authorityUrl, String clientId, String userName, String password) throws MalformedURLException\n {\n AuthenticationContext authContext = createAuthenticationContext(authorityUrl);\n return new AzureActiveDirectoryTokenProvid...
[ "0.640168", "0.59652317", "0.53666323", "0.51040447", "0.5084061", "0.5066078", "0.49792632", "0.49548486", "0.49000674", "0.48918208", "0.481643", "0.48150456", "0.48030448", "0.47970203", "0.4784319", "0.47830355", "0.4782933", "0.47823873", "0.47807008", "0.4742368", "0.47...
0.7279496
0
Creates a Managed Service Identity token provider. This is a utility method.
public static TokenProvider createManagedServiceIdentityTokenProvider() { return new ManagedServiceIdentityTokenProvider(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TrustedIdProvider create();", "TrustedIdProvider create(Context context);", "@Bean(name = \"oauthProviderTokenServices\")\r\n\tpublic OAuthProviderTokenServices oauthProviderTokenServices() {\n\t\treturn new InMemoryProviderTokenServices();\r\n\t}", "public TokenInfo createToken(TokenCoreInfo coreInfo, Strin...
[ "0.64806277", "0.6309822", "0.5840434", "0.5809121", "0.5540961", "0.5540502", "0.54393417", "0.54020524", "0.53799736", "0.5325414", "0.5260348", "0.5241613", "0.52378154", "0.51954436", "0.51872975", "0.51815397", "0.5167255", "0.5149426", "0.5138463", "0.5130854", "0.51198...
0.8795916
0
Display everything in High Score
public void displayHighScoreInfo(String[][] highScoreList, String highScoreTitle) { System.out.println(highScoreTitle + "\n"); for (int i = 0; i < highScoreList.length; i++) { System.out.println((i + 1) + ". " + highScoreList[i][0] + " " + highScoreList[i][1]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showScore()\n {\n showText(\"Score:\" + score,550,50);\n }", "private void printScore() {\r\n View.print(score);\r\n }", "public String getHighscore() {\n String str = \"\";\n\t int max = 10;\n \n ArrayList<Score> scores;\n scores = getScores();\n \n int i = 0...
[ "0.7539529", "0.73943377", "0.73550195", "0.73010767", "0.7256498", "0.7238582", "0.7109116", "0.7099758", "0.70325315", "0.7029552", "0.7023072", "0.7003558", "0.69601786", "0.6947564", "0.6841595", "0.68087786", "0.6797774", "0.67774564", "0.6774745", "0.67355436", "0.67341...
0.6927038
14
Sorts high score list
public boolean addToHighScores(Player player) { try { int i, j, temp = 0; String tempName; String[][] newHighScores = new String[11][2]; boolean isHighScore = false; String[][] highScores; highScores = new String[10][2]; if (is...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortHighscores(){\n Collections.sort(highscores);\n Collections.reverse(highscores);\n }", "public void sortHighScores(){\n for(int i=0; i<MAX_SCORES;i++){\n long score = highScores[i];\n String name= names[i];\n int j;\n for(j = i-1...
[ "0.8324376", "0.8195338", "0.8112546", "0.7765354", "0.77345115", "0.7342705", "0.71833116", "0.716852", "0.7024878", "0.6994647", "0.68134266", "0.6755666", "0.66152287", "0.65456843", "0.6478628", "0.6476052", "0.64746577", "0.6412359", "0.637811", "0.63603246", "0.63560694...
0.0
-1
Creates new instance of UdpClientLink.
public UdpClientLink(final InetSocketAddress local, final InetSocketAddress remote, final SctpChannel so) throws IOException { so.setLink(this); this.local = local; this.remote = remote; this.udpSocket = new DatagramSocket(local.getPort(), local.getAddress()); // Listening thread receive(remote, so); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createClient() {\n client = new UdpClient(Util.semIp, Util.semPort, this);\n\n // Le paso true porque quiero que lo haga en un hilo nuevo\n client.connect(true);\n }", "Link createLink();", "public LinkBuilder() {\n }", "public UdpEndpoint( UdpKernel kernel, long id...
[ "0.6621867", "0.54694855", "0.5381558", "0.537525", "0.5332635", "0.5304171", "0.5223344", "0.5202497", "0.5189484", "0.5158253", "0.5153274", "0.51446396", "0.5118293", "0.5065157", "0.5056007", "0.5048514", "0.50480455", "0.50343364", "0.50128734", "0.49692404", "0.49575496...
0.56746274
1
TODO Autogenerated method stub
public int compareTo(items o) { return this.c > o.c ? 1 : (this.c < o.c ? -1 : 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); LocationListener ll = new GetLocation(); myMap = (MapView) findViewById(R.id.mapview); myMap.set...
{ "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
TODO Autogenerated method stub
@Override protected boolean isRouteDisplayed() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void onLocationChanged(Location location) { String coordinates[] = { "" + location.getLatitude(), "" + location.getLongitude() }; double lat = Double.parseDouble(coordinates[0]); double lng = Double.parseDouble(coordinates[1]); GeoPoint p = new GeoPoint((int) (lat * 1E6), (int) (lng...
{ "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 onProviderDisabled(String provider) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void onProviderEnabled(String provider) { }
{ "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 onStatusChanged(String provider, int status, Bundle extras) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
long start = System.currentTimeMillis();
public static void main(String [] args) throws IOException { BufferedReader f = new BufferedReader(new FileReader("Prob1BA.in")); PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("Prob1BA.out"))); int T = Integer.parseInt(f.readLine()); for(int n = 0; n < T; n++){ String[] str = (f.readLin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long startTime();", "public static long startTimer() {\n return System.currentTimeMillis();\n }", "public static void startTimeMeasure() {\n \tstartTime = System.nanoTime();\n }", "private long now() {\n\treturn System.currentTimeMillis();\n }", "long time() {\r\n\t\treturn System.curre...
[ "0.780852", "0.7647819", "0.7473643", "0.74619573", "0.7405825", "0.73875946", "0.73676383", "0.7277911", "0.7134239", "0.712694", "0.7121598", "0.71171576", "0.7099204", "0.70846486", "0.7079637", "0.70675844", "0.70551926", "0.70401466", "0.70351976", "0.70285326", "0.70226...
0.0
-1
Export only static methods
private CompressionTools() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private CommonMethods() {\n }", "private PluginUtils() {\n\t\t//\t\tthrow new IllegalAccessError(\"Don't instantiate me. I'm a utility class!\");\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private void someUtilityMethod() {\n }", "private...
[ "0.66744864", "0.6645537", "0.6506093", "0.6506093", "0.6506093", "0.6506093", "0.6422973", "0.6422973", "0.6419372", "0.6392296", "0.6388566", "0.6387185", "0.63814753", "0.62545043", "0.6249416", "0.62230814", "0.62007195", "0.61916894", "0.61840284", "0.6172431", "0.617123...
0.0
-1
Compresses the specified byte range using the specified compressionLevel (constants are defined in java.util.zip.Deflater).
public static byte[] compress(byte[] value, int offset, int length, int compressionLevel) { /* Create an expandable byte array to hold the compressed data. * You cannot use an array that's the same size as the orginal because * there is no guarantee that the compressed data will be smaller than * th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void compress( File input, File output, int level, int language )\r\n throws CompressionException;", "float compress(){\n float lower = mp.get(sequence.charAt(0)).lowRange;\n float upper = mp.get(sequence.charAt(0)).upperRange;\n for (int i = 1; i < sequence.length(); i++) {\n ...
[ "0.551578", "0.50136906", "0.50027984", "0.49822748", "0.49097005", "0.48955524", "0.48435715", "0.48261192", "0.48202088", "0.47235683", "0.4703845", "0.4689832", "0.4688119", "0.4637701", "0.46051848", "0.45841873", "0.45261997", "0.45165366", "0.45049173", "0.45017534", "0...
0.5722952
0
Compresses the specified byte range, with default BEST_COMPRESSION level
public static byte[] compress(byte[] value, int offset, int length) { return compress(value, offset, length, Deflater.BEST_COMPRESSION); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void compress(ByteBuffer bbInput, ByteBuffer bbOutput, StringBuilder information, long[] time) throws IOException\r\n {\r\n long startTime = System.currentTimeMillis(); \r\n \r\n Arithmetic arithmetic = new Arithmetic();\r\n \r\n while(bbInput.remaining() > 0)\r\n {\r\n byte b...
[ "0.53777033", "0.5330629", "0.51697415", "0.5036434", "0.50270355", "0.4971592", "0.48786065", "0.48430535", "0.48311365", "0.47601894", "0.4752101", "0.47492936", "0.47308385", "0.47256437", "0.47245538", "0.4666943", "0.4632359", "0.46211514", "0.46191064", "0.4601974", "0....
0.44920632
25
Compresses all bytes in the array, with default BEST_COMPRESSION level
public static byte[] compress(byte[] value) { return compress(value, 0, value.length, Deflater.BEST_COMPRESSION); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static byte[] compressBytes(byte[] data) {\n\t\t\tDeflater deflater = new Deflater();\n\t\t\tdeflater.setInput(data);\n\t\t\tdeflater.finish();\n\t\t\tByteArrayOutputStream outputStream = new ByteArrayOutputStream(data.length);\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\twhile (!deflater.finished()) {\n\t...
[ "0.64983475", "0.6161029", "0.60695976", "0.58823067", "0.57778686", "0.5772059", "0.57406014", "0.5715534", "0.56829524", "0.5673591", "0.56466335", "0.55932385", "0.5498119", "0.5410077", "0.53133065", "0.52887446", "0.52817", "0.52441686", "0.5198955", "0.51829094", "0.516...
0.650023
0
Compresses the String value, with default BEST_COMPRESSION level
public static byte[] compressString(String value) { return compressString(value, Deflater.BEST_COMPRESSION); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String stringCompression(String str) {\n // null check\n StringBuilder builder = new StringBuilder(); // create string builder for efficent string concatination\n int count = 0; // initalize count\n char prior = str.charAt(0); ...
[ "0.5983632", "0.59582454", "0.5813042", "0.57080555", "0.56775236", "0.56527495", "0.563953", "0.56242317", "0.55817866", "0.54910374", "0.54716706", "0.5451197", "0.54449713", "0.542782", "0.5414279", "0.54063815", "0.5394721", "0.5351386", "0.52570474", "0.52341866", "0.522...
0.6243098
0
Compresses the String value using the specified compressionLevel (constants are defined in java.util.zip.Deflater).
public static byte[] compressString(String value, int compressionLevel) { UnicodeUtil.UTF8Result result = new UnicodeUtil.UTF8Result(); UnicodeUtil.UTF16toUTF8(value, 0, value.length(), result); return compress(result.result, 0, result.length, compressionLevel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static byte[] compress(byte[] value, int offset, int length, int compressionLevel) {\n\n /* Create an expandable byte array to hold the compressed data.\n * You cannot use an array that's the same size as the orginal because\n * there is no guarantee that the compressed data will be smaller than\...
[ "0.5659157", "0.55747914", "0.54730475", "0.5305149", "0.5284629", "0.5256473", "0.5195903", "0.5189877", "0.518675", "0.51703584", "0.51675147", "0.51217896", "0.5106437", "0.50577015", "0.50061816", "0.4957315", "0.49509043", "0.49299407", "0.49259332", "0.49194282", "0.485...
0.69376343
0
Decompress the byte array previously returned by compress
public static byte[] decompress(byte[] value) throws DataFormatException { // Create an expandable byte array to hold the decompressed data ByteArrayOutputStream bos = new ByteArrayOutputStream(value.length); Inflater decompressor = new Inflater(); try { decompressor.setInput(value); // D...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void Decompress() {\n\t\t\n\t}", "public static byte[] decompressBytes(byte[] data) {\n\t\t\tInflater inflater = new Inflater();\n\t\t\tinflater.setInput(data);\n\t\t\tByteArrayOutputStream outputStream = new ByteArrayOutputStream(data.length);\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\ttr...
[ "0.73014575", "0.71030563", "0.7081168", "0.7067283", "0.6976498", "0.6867013", "0.66656315", "0.640044", "0.626161", "0.6210605", "0.61655164", "0.61633134", "0.61047745", "0.6066692", "0.60072106", "0.5949045", "0.5913897", "0.5859523", "0.56876564", "0.5640991", "0.5626790...
0.63629174
8
Decompress the byte array previously returned by compressString back into a String
public static String decompressString(byte[] value) throws DataFormatException { UnicodeUtil.UTF16Result result = new UnicodeUtil.UTF16Result(); final byte[] bytes = decompress(value); UnicodeUtil.UTF8toUTF16(bytes, 0, bytes.length, result); return new String(result.result, 0, result.length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String decompress() {\r\n \tString decompressed = \"\";\r\n \tString cursor = \"\";\r\n \tfor (int i = 0; i < compressedText.length(); i++) {\r\n \t\tcursor += compressedText.charAt(i);\r\n \t\tif (codeToChar.containsKey(cursor)) {\r\n \t\t\tdecompressed += codeToChar.get(cursor);\r\n \...
[ "0.65124726", "0.6440504", "0.6278991", "0.62620133", "0.6067579", "0.60544515", "0.59828883", "0.59259593", "0.5908703", "0.58780277", "0.5861867", "0.58105075", "0.57680386", "0.57276434", "0.571598", "0.5697548", "0.55851406", "0.5581404", "0.55801165", "0.5576557", "0.554...
0.62375456
4
TODO Autogenerated method stub
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.getWriter().append("Served at: ").append(request.getContextPath()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Board Constructor. Creates a random board.
public Board() { ArrayList<String[]> dies = new ArrayList<String[]>(); dies.add(Die0); dies.add(Die1); dies.add(Die2); dies.add(Die3); dies.add(Die4); dies.add(Die5); dies.add(Die6); dies.add(Die7); dies.add(Die8); dies.add(Die9); dies.add(Die10...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PersonalBoard(int width, int height){\n super(width, height);\n this.rand = new Random();\n }", "public Board randomBoard() {\n int[][] board = new int[tileLength][tileLength];\n\n //Random scramble algorithm\n\n //Create solved nxn board\n for (int i = 0; i <t...
[ "0.77408516", "0.7550626", "0.75453293", "0.7538127", "0.7504078", "0.7499251", "0.7427936", "0.73949987", "0.7350433", "0.7343252", "0.7237061", "0.72310454", "0.722158", "0.71304184", "0.71216094", "0.7096429", "0.70855606", "0.70810324", "0.7070174", "0.70187783", "0.70049...
0.0
-1
Method to return the board as a string.
public String toString() { return row0 + "\n" + row1 + "\n" + row2 + "\n" + row3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getBoardString();", "public String getBoard() {\r\n\t\tString r = \"\";\r\n\t\tfor (int y = 0; y < 3; y++) {\r\n\t\t\tfor (int x = 0; x < 3; x++) {\r\n\t\t\t\tr = r + board[y][x];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn r;\r\n\t}", "public String toString()\n\t{\n\t\tString s = \"\";\n\t\tfor(int r = 0; r < b...
[ "0.85858417", "0.8534255", "0.828009", "0.82100296", "0.8204615", "0.8199141", "0.8166508", "0.8135573", "0.8111765", "0.80818254", "0.80733633", "0.80346453", "0.80207074", "0.79667187", "0.7941035", "0.7915706", "0.7877422", "0.7859618", "0.7858874", "0.78554386", "0.784787...
0.0
-1
Method to return the letter of a tile, given row and column.
public String getTile(int row, int column) { return tiles.get(row).get(column).getLetter(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tile getTile(Character letter) {\r\n int index;\r\n Tile returnedTile;\r\n if(isAvailable(letter)) {\r\n index = frame.indexOf(new Tile(letter));\r\n returnedTile = frame.get(index);\r\n }\r\n else //if we want to return blank instead of unavailable l...
[ "0.72611475", "0.7167939", "0.7123507", "0.6793494", "0.674331", "0.6743234", "0.6738843", "0.6666643", "0.66181594", "0.65066403", "0.64541185", "0.6442191", "0.6400588", "0.6358336", "0.63517994", "0.6337034", "0.6270542", "0.62531024", "0.6250977", "0.6222629", "0.6163295"...
0.8570869
0
Obtiene el nombre del archivo donde se esta escribiendo.
public String GetFileName() { return fileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFileName() {\r\n \t\tif (isFileOpened()) {\r\n \t\t\treturn curFile.getName();\r\n \t\t} else {\r\n \t\t\treturn \"\";\r\n \t\t}\r\n \t}", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lan...
[ "0.72911155", "0.72413516", "0.72413516", "0.72413516", "0.72413516", "0.72413516", "0.72413516", "0.72413516", "0.72413516", "0.72413516", "0.7077984", "0.7077375", "0.70565563", "0.7006677", "0.6967797", "0.6917952", "0.6917952", "0.6917952", "0.6917952", "0.6917952", "0.68...
0.6623334
37
Setea el nombre del archivo donde se va a escribir.
public void SetFileName(String fileName) { this.fileName = fileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFileName(String nomeFile) {\n\t\tthis.fileName = nomeFile;\n\t}", "public void setFileName(final String theName)\r\n {\r\n\r\n // this means we are currently in a save operation\r\n _modified = false;\r\n\r\n // store the filename\r\n _fileName = theName;\r\n\r\n // and use it as t...
[ "0.6990378", "0.6745674", "0.6718832", "0.6611373", "0.6567546", "0.6509978", "0.642197", "0.6368596", "0.63302755", "0.6319133", "0.6311579", "0.6303678", "0.62953043", "0.6267544", "0.62564343", "0.6200427", "0.6172846", "0.61448395", "0.6138816", "0.6116883", "0.60481787",...
0.607242
20
Escribe en el archivo una apertura de elemento XML en la forma "<nombreElemento ".
public void WriteStartElement(String nombreElemento) throws IOException { CerrarElemento(); pila.push(nombreElemento); bw.write("<" + nombreElemento); elementoAbierto = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void exportarXML(){\n \n String nombre_archivo=IO_ES.leerCadena(\"Inserte el nombre del archivo\");\n String[] nombre_elementos= {\"Modulos\", \"Estudiantes\", \"Profesores\"};\n Document doc=XML.iniciarDocument();\n doc=XML.estructurarDocument(doc, nombre_elementos);\n ...
[ "0.6498188", "0.6157639", "0.614676", "0.6057183", "0.5963463", "0.59477067", "0.58729446", "0.58386606", "0.5747543", "0.57462347", "0.57349074", "0.56983274", "0.56978637", "0.5677891", "0.5659063", "0.56286997", "0.55946547", "0.55859315", "0.55711186", "0.5564238", "0.556...
0.6490098
1
Escribe en el archivo un atributo con su valor para el ultimo elemento escrito en el archivo.
public void WriteAttributeString(String nombreAtributo, String valorAtributo) throws IOException { bw.write(" " + nombreAtributo + "=\"" + Escapar(valorAtributo) + "\""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void createFileContribuicaoUmidade() throws IOException{\r\n\t\tInteger contribuicaoDefault = 0;\r\n\t\tarqContribuicaoUmidade = new File(pathContribuicaoUmidade);\r\n\t\tif(!arqContribuicaoUmidade.exists()) {\r\n\t\t\tarqContribuicaoUmidade.createNewFile();\r\n\t\t\tFileWriter fw = new FileWriter(g...
[ "0.5656252", "0.55700916", "0.554158", "0.54503024", "0.5448026", "0.543532", "0.5430816", "0.5364348", "0.5340066", "0.53389144", "0.530765", "0.5282528", "0.5276248", "0.5261825", "0.5249531", "0.5235758", "0.5234707", "0.5232018", "0.5231213", "0.52298516", "0.5212643", ...
0.49899018
50
Escribe un elemento de terminacion XML de la forma "" asegurandose de que realemnte haya un elemento creado para terminar. Si no lo hubiera no se escribe nada en el archivo.
public void WriteEndElement() throws IOException { CerrarElemento(); if(!pila.isEmpty()) bw.write("</" + (String)pila.pop() + ">"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void endElement() throws Exception;", "public static void end() {\n Log.writeln(\"<xml-end/> <!-- Non-xml data follows ... -->\");\n }", "private void CerrarElemento() throws IOException {\r\n\tif(elementoAbierto) {\r\n\t bw.write(\">\");\r\n\t elementoAbierto = false;\r\n\t}\r\n }", "pub...
[ "0.6477415", "0.6437764", "0.63683695", "0.63257444", "0.60437745", "0.598344", "0.598095", "0.59536165", "0.5942629", "0.5899674", "0.5832899", "0.5801608", "0.57697934", "0.57479423", "0.5732237", "0.5687717", "0.56605667", "0.5656634", "0.5653497", "0.5638677", "0.56381834...
0.65089285
0
Escribe un elemento en el archivo con la sigueinte forma "valorElemnto".
public void WriteElementString(String nombreElemento, String valorElemento) throws IOException { CerrarElemento(); bw.write("<" + nombreElemento + ">" + Escapar(valorElemento) + "</" + nombreElemento + ">"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enfileira(T elemento){\n\t\t\n\t\tthis.adiciona(elemento);\n\t}", "public void setFilaDatosExportarXmlEvaluacionProveedor(EvaluacionProveedor evaluacionproveedor,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(EvaluacionProveedorConstantesFunciones.I...
[ "0.6009628", "0.5885324", "0.5870711", "0.5850404", "0.5790083", "0.5780684", "0.57568365", "0.5747876", "0.5697673", "0.56496906", "0.56481683", "0.56442", "0.55993843", "0.55849713", "0.55469775", "0.5533347", "0.5515818", "0.55021906", "0.54881513", "0.54638124", "0.545785...
0.59908277
1
Cierra este Stream y los subyacientes.
public void Close() throws IOException { bw.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openStreams() {\n\t\ttry {\n\t\t\t// mostramos un log\n\t\t\tthis.getLogger().debug(\"Opening streams..\");\n\t\t\t// abrimos el stream de salida\n\t\t\tthis.setOutputStream(new ObjectOutputStream(this.getConnection().getOutputStream()));\n\t\t\t// abrimos el stream de entrada\n\t\t\tthis.setInputStre...
[ "0.59697294", "0.5623142", "0.5570155", "0.55641264", "0.5515251", "0.55002254", "0.54800284", "0.54453737", "0.5413695", "0.5406515", "0.53834796", "0.5381276", "0.5371148", "0.5346324", "0.5334094", "0.5320086", "0.530439", "0.53034115", "0.5300018", "0.5297639", "0.5287408...
0.0
-1
Si el ultimo elemento abierto no fue cerrado, lo cierra con ">" y agregando un fin de liena y escribiendolos en el archivo.
private void CerrarElemento() throws IOException { if(elementoAbierto) { bw.write(">"); elementoAbierto = false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void pruebaEscritura() {\n\t\tFileWriter fichero = null;\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tfichero = new FileWriter(\"//172.16.1.141/Modelo_Raster/Varios/Monitoreo_Forestal/REDD/Metadatos/test.xml\");\n\t\t\tpw = new PrintWriter(fichero);\n\n\t\t\tfor (int i = 0; i < 10; i++)\n\t\t\t\tpw.println...
[ "0.603265", "0.58694804", "0.5831946", "0.5786097", "0.56658286", "0.56443924", "0.5592739", "0.5491757", "0.54401994", "0.5413885", "0.5397783", "0.53899336", "0.5365328", "0.53492606", "0.53160655", "0.5313475", "0.5294446", "0.5294281", "0.5279019", "0.5266869", "0.5257488...
0.6473483
0
Reemplaza los caracteras &, ', ", por las entidades de escape de XML correspondientes.
private String Escapar(String valorAtributo) { String str = valorAtributo; str = valorAtributo.replaceAll("&", "&amp;"); str = str.replaceAll("'", "&apos;"); str = str.replaceAll("\"", "&quot;"); str = str.replaceAll("<", "&lt;"); str = str.replaceAll(">", "&gt;"); return str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String escapeXML(String string) {\n StringBuffer sb = new StringBuffer();\n int length = string.length();\n for (int i = 0; i < length; ++i) {\n char c = string.charAt(i);\n switch (c) {\n case '&':\n sb.append(\"&amp;\");\n ...
[ "0.64894766", "0.64563686", "0.63016385", "0.6209514", "0.61231834", "0.6120614", "0.6059309", "0.6000993", "0.596139", "0.58846515", "0.58800626", "0.58448714", "0.58283657", "0.5814549", "0.5804946", "0.5768994", "0.5762551", "0.554406", "0.55152124", "0.55020964", "0.54834...
0.66036713
0
quite similar to isValidInSourceDocument() but here we do not use the adjusted start offset to check if can be translated to the source but rather use the real node start offset. In case of virtually generated class or selector the isVirtual is always true since the dot or has doesn't exist in the css source code
public boolean isVirtual();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPartial(){\n\t\tif(super.getOffset() != 0) return true;\n\t\tif(super.getLength() < super.getVirtualSource().getLength()) return true;\n\t\treturn false;\n\t}", "boolean hasScrollOffsetX();", "public final boolean hasSourceRangeInfo() {\r\n \t\treturn this.sourceStart != -1;\r\n \t}", "boole...
[ "0.58174026", "0.5498762", "0.5498731", "0.54830855", "0.54830855", "0.54534054", "0.5423648", "0.53920865", "0.5341302", "0.52677035", "0.52653086", "0.506704", "0.50647885", "0.5046752", "0.5020887", "0.49864587", "0.49288312", "0.4906542", "0.49059743", "0.48824698", "0.48...
0.48840782
20
TODO Autogenerated method stub
@Override public BeanControl reg(String userid, String pwd,String pwd2) throws BaseException { BeanControl control = new BeanControl(); if(userid.isEmpty()) throw new BaseException("用户名为空"); if(!pwd.equals(pwd2)||pwd.isEmpty()||pwd2.isEmpty()) throw new BaseException("请输入相同的密码"); Connection conn=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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public BeanControl login(String userid, String pwd) throws BaseException { if(userid.isEmpty()) throw new BaseException("用户名为空"); if(pwd.isEmpty()) throw new BaseException("密码为空"); Connection conn=null; try { conn=DBUtil.getConnection(); String sql="select yg_no,yg_mm from gly_info where ...
{ "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
public void changePwd(BeanControl control, String oldPwd, String newPwd, String newPwd2) throws BaseException { if(oldPwd.isEmpty()) throw new BusinessException("原密码为空"); if(!newPwd.equals(newPwd2)||newPwd.isEmpty()||newPwd2.isEmpty()) throw new BaseException("请输入相同的密码"); if(newPwd.equals(oldPwd)) thr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
public void updateinfo(String name) throws BaseException { Connection conn = null; String ygno = BeanControl.currentLoginControl.getygno(); try { conn = DBUtil.getConnection(); String sql = "update gly_info set yg_name=? where yg_no=?"; java.sql.PreparedStatement pst = conn.prepareStatemen...
{ "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
ou have a list of points in the plane. Return the area of the largest triangle that can be formed by any 3 of the points. Example: Input: points = [[0,0],[0,1],[1,0],[0,2],[2,0]] Output: 2 Explanation: The five points are show in the figure below. The red triangle is the largest. Notes: 3 <= points.length <= 50. No poi...
public double largestTriangleArea(int[][] points) { int N = points.length; double area = 0f; for (int i = 0; i < N; i++) { for (int j = i + 1; j < N; j++) { for (int k = j + 1; k < N; k++) { area = Math.max(area, shoelaceFormula(points[i], points[j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getArea(List<Point> points){\n double result = 0.0;\n int n = points.size();\n for (int i = 0; i < n; i++) {\n if (i == 0) {\n result += points.get(i).x * (points.get(n - 1).z - points.get(i + 1).z);\n } else if (i == (n - 1)) {\n ...
[ "0.73506826", "0.6976049", "0.6771743", "0.64975125", "0.6411365", "0.6296595", "0.619228", "0.61888146", "0.61831033", "0.6170778", "0.6077305", "0.6062659", "0.60578173", "0.60566247", "0.60417044", "0.6019918", "0.6019801", "0.6016137", "0.60154396", "0.5991712", "0.594411...
0.8237441
0
A = 1/2 | x1y2 + x2y3 + x3y1 x2y1 x3y2 x1y3 |
private double shoelaceFormula(int[] x, int[] y, int[] z) { return 0.5f * Math.abs(x[0] * y[1] + y[0] * z[1] + z[0] * x[1] - y[0] * x[1] - z[0] * y[1] - x[0] * z[1]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static double getA(Point p_p1, Point p_p2, Point q_p1, Point q_p2){\n\t\tdouble a1, a2;\n\t\ta1 = q_p2.coordinate[0] - q_p1.coordinate[0] - \n\t\t\t p_p2.coordinate[0] + p_p1.coordinate[0];\t\t\n\t\ta2 = q_p2.coordinate[1] - q_p1.coordinate[1] - \n\t\t\t p_p2.coordinate[1] + p_p1.coordinate[1];\n\t\t\t\t\n...
[ "0.57954794", "0.5710136", "0.5660094", "0.5630801", "0.5577042", "0.5542058", "0.5535026", "0.55176556", "0.5466964", "0.54659474", "0.5397209", "0.53742427", "0.5361558", "0.53374475", "0.5311834", "0.52657634", "0.5256076", "0.52397305", "0.52375335", "0.5218558", "0.52005...
0.50635684
38
List of accounts which a client have.
public Account getAccountByID(int id)//This function is for getting account for transfering amount { return this.ac.stream().filter(ac1 -> ac1.getAccId()==id).findFirst().orElse(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<ClientAccount> getAllClientAccounts() throws ServiceException;", "@Override\n public List<Account> listAccounts() {\n currentCustomer.findAndUpdateAccounts();\n // return list of accounts the customer owns\n return currentCustomer.getAccounts();\n }", "public static List<Account> getAccounts()\...
[ "0.80068535", "0.78448546", "0.7631595", "0.7623858", "0.7578246", "0.7487321", "0.7291238", "0.7283125", "0.7213304", "0.71489835", "0.7107141", "0.7101556", "0.7088125", "0.7063834", "0.7054867", "0.70364517", "0.70218426", "0.6984593", "0.6980338", "0.6969114", "0.6945715"...
0.0
-1
/ renamed from: a
private C1325w m1653a(C0915q c0915q) { if (c0915q instanceof C1285l) { return new C1345r((C1285l) c0915q); } return new C1325w(c0915q); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
protected void m1661a(C1325w c1325w, C0817b c0817b) { try { URI uri = c1325w.getURI(); if (c0817b.mo14d() == null || c0817b.mo15e()) { if (uri.isAbsolute() != null) { c0817b = C0029d.m109a(uri, null, true); } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.5827...
0.0
-1
/ renamed from: a
public p000a.p001a.p002a.p003a.C0916s mo59a(p000a.p001a.p002a.p003a.C0159n r12, p000a.p001a.p002a.p003a.C0915q r13, p000a.p001a.p002a.p003a.p034n.C0157e r14) { /* JADX: method processing error */ /* Error: java.lang.NullPointerException at jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDom...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
private void m1654a(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) { /* JADX: method processing error */ /* Error: java.lang.NullPointerException at jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75) at jadx.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.5827...
0.0
-1
/ renamed from: b
private p000a.p001a.p002a.p003a.C0916s m1655b(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) { /* JADX: method processing error */ /* Error: java.lang.NullPointerException at jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: a
protected void m1659a() { try { this.f1529q.b_(); } catch (Throwable e) { this.f1513a.m261a("IOException releasing connection", e); } this.f1529q = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.5827...
0.0
-1
/ renamed from: b
protected C0817b m1663b(C0159n c0159n, C0915q c0915q, C0157e c0157e) { C0051d c0051d = this.f1515c; if (c0159n == null) { c0159n = (C0159n) c0915q.getParams().mo1602a("http.default-host"); } return c0051d.mo75a(c0159n, c0915q, c0157e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: a
protected void m1660a(C0817b c0817b, C0157e c0157e) { C0050c c0816a = new C0816a(); int a; do { Object h = this.f1529q.mo1916h(); a = c0816a.mo9a(c0817b, h); switch (a) { case -1: StringBuilder stringBuilder = new StringBuil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.5827...
0.0
-1
/ renamed from: b
protected boolean m1664b(C0817b c0817b, C0157e c0157e) { C0159n d = c0817b.mo14d(); C0159n a = c0817b.mo10a(); while (true) { if (!this.f1529q.mo1932c()) { this.f1529q.mo2023a(c0817b, c0157e, this.f1528p); } C0915q c = m1665c(c0817b, c0157e); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: a
protected boolean m1662a(C0817b c0817b, int i, C0157e c0157e) { throw new C0155m("Proxy chains are not supported."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.5827...
0.0
-1
/ renamed from: c
protected C0915q m1665c(C0817b c0817b, C0157e c0157e) { c0817b = c0817b.mo10a(); c0157e = c0817b.m470a(); int b = c0817b.m471b(); if (b < 0) { b = this.f1514b.mo68a().m178a(c0817b.m472c()).m171a(); } c0817b = new StringBuilder(c0157e.length() + 6); c08...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", ...
[ "0.64592767", "0.644052", "0.6431582", "0.6418656", "0.64118475", "0.6397491", "0.6250796", "0.62470585", "0.6244832", "0.6232792", "0.618864", "0.61662376", "0.6152657", "0.61496663", "0.6138441", "0.6137171", "0.6131197", "0.6103783", "0.60983956", "0.6077118", "0.6061723",...
0.0
-1
/ renamed from: a
protected C0112x m1657a(C0112x c0112x, C0916s c0916s, C0157e c0157e) { C0853p c0853p = this; C0916s c0916s2 = c0916s; C0157e c0157e2 = c0157e; C0817b b = c0112x.m322b(); Object a = c0112x.m321a(); C0152e params = a.getParams(); if (C0021b.m80b(params)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.5827...
0.0
-1
/ renamed from: b
private void m1656b() { C1319o c1319o = this.f1529q; if (c1319o != null) { this.f1529q = null; try { c1319o.mo24b(); } catch (Throwable e) { if (this.f1513a.m262a()) { this.f1513a.m261a(e.getMessage(), e); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
constructor takes the name of the two input files
public WordNet(String synsets, String hypernyms) { if (synsets == null || hypernyms == null) { throw new IllegalArgumentException(); } In in = new In(synsets); int vcnt = 0; while (in.hasNextLine()) { vcnt++; String line = in.readLine(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FileCat(String file1, String file2) {\n this.file1 = file1;\n this.file2 = file2;\n extension = \".txt\";\n }", "public TextFileComparator(String f1, String f2) {\n\t\tfileName1 = f1;\n\t\tfileName2 = f2;\n\t\tcompareFiles();\n\t}", "public FileCat(String file1, String file2, St...
[ "0.66923594", "0.6446528", "0.62687814", "0.6004321", "0.5967172", "0.5922118", "0.5910359", "0.5856508", "0.584596", "0.5845727", "0.5840238", "0.5828015", "0.57632804", "0.5726952", "0.5683604", "0.56301594", "0.5603554", "0.55986917", "0.5595039", "0.55915105", "0.5567148"...
0.0
-1
returns all WordNet nouns
public Iterable<String> nouns() { return nounMap.keySet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterable<String> nouns() {\n Stack<String> iter = new Stack<>();\n for (String ss : synsetsStrToNum.keySet())\n iter.push(ss);\n return iter;\n }", "public Set<String> nouns() {\n return wnetsi.keySet();\n }", "public Iterable<String> nouns() {\n\t\treturn no...
[ "0.7690547", "0.7681503", "0.75684834", "0.7506068", "0.7420273", "0.7372448", "0.7337388", "0.73218673", "0.7305788", "0.7301925", "0.7292184", "0.72283375", "0.71966517", "0.7010549", "0.69540936", "0.67809933", "0.63441837", "0.6327727", "0.62111527", "0.6206411", "0.61110...
0.7564378
3
is the word a WordNet noun?
public boolean isNoun(String word) { if (word == null) { throw new IllegalArgumentException(); } return nounMap.containsKey(word); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isNoun (String word){\n for(int i = 0; i< SynSets.length; i++){\n if(SynSets[0][1].contains(\" \"+word+\" \")) return true;\n }\n return false;\n }", "public boolean isNoun(String word)\n {\n if (word == null) throw new NullPointerException();\n return synsetHash.containsKey...
[ "0.8100327", "0.7959973", "0.79090035", "0.77447295", "0.769466", "0.76830184", "0.76310164", "0.76049185", "0.7595256", "0.7572218", "0.75265735", "0.73326164", "0.73142725", "0.70438856", "0.6951205", "0.6784245", "0.6641508", "0.6639727", "0.6624951", "0.6527959", "0.64512...
0.76158446
7
distance between nounA and nounB (defined below)
public int distance(String nounA, String nounB) { if (!isNoun(nounA) || !isNoun(nounB)) { throw new IllegalArgumentException(); } return sap.length(nounMap.get(nounA), nounMap.get(nounB)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int distance(String nounA, String nounB){\n\n\n\n return 0;\n }", "public int distance(String nounA, String nounB) {\n\t\treturn sap.length(nouns.get(nounA), nouns.get(nounB));\n\n\t}", "public int distance(String nounA, String nounB) {\n if (!isNoun(nounA) || !isNoun(nounB)) throw new IllegalA...
[ "0.89597595", "0.84000105", "0.83835757", "0.8332996", "0.83090836", "0.8295362", "0.8283459", "0.80787194", "0.8033398", "0.76166147", "0.6708742", "0.6703997", "0.6693011", "0.6689702", "0.66887844", "0.66581506", "0.6585499", "0.657823", "0.6561932", "0.65541524", "0.64334...
0.81762755
7
a synset (second field of synsets.txt) that is the common ancestor of nounA and nounB in a shortest ancestral path (defined below)
public String sap(String nounA, String nounB) { if (!isNoun(nounA) || !isNoun(nounB)) { throw new IllegalArgumentException(); } int ancestor = sap.ancestor(nounMap.get(nounA), nounMap.get(nounB)); return synMap.get(ancestor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String sap(String nounA, String nounB) {\n\t\treturn sets.get(sap.ancestor(nouns.get(nounA), nouns.get(nounB)));\n\t}", "public String sap(String nounA, String nounB)\n {\n if (nounA == null || nounB == null) throw new NullPointerException();\n if (!(isNoun(nounA) && isNoun(nounB))) throw ...
[ "0.6491776", "0.6476167", "0.6263451", "0.61585635", "0.6153055", "0.6111749", "0.60050297", "0.59740824", "0.5970557", "0.5909188", "0.5873333", "0.57323676", "0.5674435", "0.562235", "0.55836076", "0.5576918", "0.5495642", "0.54878587", "0.54532504", "0.5415105", "0.5376923...
0.57113516
12
do unit testing of this class
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n public void test() {\n \n }", "private void test() {\n\n\t}", "private Mocks() { }", "private ProtomakEngineTestHelper() {\r\n\t}", "@Test\r\n\tpublic void testSanity() {\n\t}", "@Override\n\tpublic void test() {\n\t\t\n\t}", ...
[ "0.7490877", "0.6950923", "0.6921999", "0.68470055", "0.6753861", "0.67522794", "0.67263305", "0.6708528", "0.67068464", "0.6704483", "0.67044735", "0.6697588", "0.6684299", "0.6661727", "0.6656073", "0.6645506", "0.6610159", "0.6609969", "0.6592467", "0.65870154", "0.6584098...
0.0
-1
posXY prevpos; do you need this?
posXY(int x, int y){ this.x = x; this.y = y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPrevPos(Vec3 pos);", "Position getOldPosition();", "public void setPrev(Position pos) {\n prev = pos;\n }", "public Position2D getPreviousPosition()\n {\n return previousPosition;\n }", "public boolean setPreviousPosition( Position2D pos)\n {\n if( pos == null)\n ...
[ "0.74719477", "0.7068961", "0.686948", "0.68612933", "0.6610875", "0.6507002", "0.65059894", "0.65059894", "0.65059894", "0.63958615", "0.63890564", "0.6387829", "0.63566166", "0.6355343", "0.63123876", "0.6306708", "0.6272158", "0.6263411", "0.62593895", "0.6232681", "0.6232...
0.6245777
19
Gets the unique instance of this class.
public static EngineBuilderFactory getInstance() { if (instance == null) { instance = new EngineBuilderFactory(); } return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Uniqueid getInstance() {\n if (uniqueid == null) {\n uniqueid = new Uniqueid();\n }\n return uniqueid;\n }", "public T getInstance() {\n return instance;\n }", "public static PSUniqueObjectGenerator getInstance()\n {\n if ( null == ms_instance )\n ...
[ "0.782628", "0.72839093", "0.7225971", "0.71569026", "0.69952536", "0.69728583", "0.668099", "0.66608524", "0.6649552", "0.66486686", "0.6632783", "0.6571533", "0.6514911", "0.64899164", "0.63359386", "0.6313236", "0.6304022", "0.63029325", "0.6294641", "0.62704027", "0.62699...
0.0
-1
Override do metudo entrySet > devolve tanto a chave como o valor associado
@Override public Set<Map.Entry<String,Componente>> entrySet() { //resultado Set<Map.Entry<String,Componente>> r = new HashSet<>(); Componente c; try { conn = Connect.connect();// abrir uma conecção // q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public T setValue(T newValue) {\n return entry.getValue().setValue(newValue);\n }", "@Override\r\n public void updateEntryValue(Object key, Object value) throws Exception\r\n {\n }", "public abstract Set<Map.Entry<K, V>> entrySet();", "public void setEntry(Flow.D...
[ "0.6601931", "0.6318416", "0.6022039", "0.601134", "0.6003472", "0.59369963", "0.59369963", "0.59369963", "0.59369963", "0.59043837", "0.58390945", "0.5817906", "0.5776805", "0.5766856", "0.5764024", "0.57475543", "0.5742869", "0.5726451", "0.57141924", "0.56995463", "0.56976...
0.56271476
29
Override do metudo equals
@Override public boolean equals(Object o) { return (o!=null && o.getClass().equals(this.getClass())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public abstract boolean equals(Object other);", "@Override\n public abstract boolean equals(Object other);", "@Override\n public final boolean equals(final Object other) {\n return super.equals(other);\n }", "@Override\n public boolean equals(Object other) {\n return super....
[ "0.79909945", "0.79909945", "0.79673094", "0.7949349", "0.7931248", "0.7863495", "0.77715325", "0.7742426", "0.7712853", "0.7712838", "0.7712838", "0.7694128", "0.7688513", "0.7685131", "0.7677975", "0.7671432", "0.76385474", "0.76143897", "0.75998193", "0.75921476", "0.75662...
0.6870113
73
Verifica se existem entradas
@Override public boolean isEmpty() { return size() == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasEntity();", "boolean hasEntity();", "boolean exists(Curso curso) throws BusinessException;", "@Override\n\tpublic void exist() {\n\t\t\n\t}", "protected boolean checkExistence(E entity) throws DAOException {\n\t\tString existanceSQL = getEntityExistanceSQL(entity);\n\n\t\ttry (Connection connect...
[ "0.7086056", "0.7086056", "0.6872797", "0.6616553", "0.65767556", "0.65724987", "0.65724987", "0.65558285", "0.6554714", "0.6529655", "0.6489581", "0.640518", "0.6382868", "0.6341462", "0.6326612", "0.6321207", "0.63182896", "0.63150865", "0.6296475", "0.6285321", "0.62782013...
0.0
-1
Metudo que devolve todas as chaves da base de dados
@Override public Set<String> keySet() { // definido um set onde colocar o resultado Set<String> r = new HashSet<>(); try { // abre uma conecção conn = Connect.connect(); // abrir um statment com a queri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void leerPersistencia();", "@Override\n\tpublic void save(CorsoDiLaurea corso) {\n\t\t\n\t}", "@Override\n\tpublic void saveEstadoCabecera(EstadoCabecera estadoCabecera) {\n\n\t}", "@Override\n public void saveChildrenData() {\n boats.forEach(boatDAO::save);\n }", "private void...
[ "0.60083675", "0.5859174", "0.57603645", "0.5754868", "0.56580675", "0.5624571", "0.559397", "0.5591764", "0.5575585", "0.5575221", "0.5554922", "0.55504924", "0.552957", "0.54813206", "0.5478043", "0.54372156", "0.5414085", "0.541372", "0.5401247", "0.5391386", "0.5391386", ...
0.0
-1
Insere um Cliente na base de dados
@Override public Componente put(String key, Componente value) { Componente cp = null; try { conn = Connect.connect(); //String com a querie -> inserir um Componente na BD PreparedStatement stm = conn.prepareStatement("INSERT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void inserir(CLIENTE cliente) {\n\t\t\n\t\tString sql = \"INSERT INTO CLIENTE (NOME_CLIENTE) VALUES (?)\";\n\t\t\n\t\tConnection conexao;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tconexao = JdbcUtil.getConexao();\n\t\t\t\n\t\t\tPreparedStatement ps = conexao.prepareStatement(sql);\n\t\t\t\n\t\t\tps.setSt...
[ "0.70307976", "0.69215894", "0.6786013", "0.6761174", "0.66922677", "0.667358", "0.6665185", "0.6641911", "0.6616989", "0.6529989", "0.63955176", "0.6375005", "0.63173085", "0.6308187", "0.62969893", "0.6278874", "0.62629133", "0.6260336", "0.62138027", "0.61992455", "0.61915...
0.0
-1
Por um conjunto de Funcionarios na base de dados
@Override public void putAll(Map<? extends String,? extends Componente> t) { for(Componente c : t.values()) { this.put(c.getNome(), c); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tvoid geraDados() {\n\n\t}", "@Override\n protected void adicionar(Funcionario funcionario) {\n\n }", "private void limpiarDatos() {\n\t\t\n\t}", "public void datos_elegidos(){\n\n\n }", "public void cadastrarFuncionario() {\n\t\tFuncionarioDAOImpl daoFuncionario = new FuncionarioDAOIm...
[ "0.6912974", "0.69093823", "0.6907162", "0.68448085", "0.6725643", "0.67178935", "0.67081344", "0.65106446", "0.648409", "0.643188", "0.64035875", "0.630703", "0.6277508", "0.6247336", "0.6234089", "0.6229725", "0.6226479", "0.6217967", "0.620297", "0.61816937", "0.61655885",...
0.0
-1
Remover um Componente a partir da chave do map
@Override public Componente remove(Object key) { Componente cp = this.get(key); try { conn = Connect.connect(); PreparedStatement stm = conn.prepareStatement("UPDATE Componente SET visivel=FALSE WHERE nome=?;"); stm.setString(1, (String)k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n void removeStarMap(StarMapComponent starMap) {\n\r\n }", "public abstract void removeFromMap();", "public void remove(Component c){}", "public void removeComponent(Component c);", "public void removeAllOverlayObj()\n/* 91: */ {\n/* 92:146 */ this.mapPanel.removeAllOverlayObj(...
[ "0.7259314", "0.6791197", "0.6782989", "0.659827", "0.6578554", "0.65448517", "0.643832", "0.64190483", "0.63291913", "0.6282682", "0.6253158", "0.6224688", "0.6192918", "0.61329186", "0.6118936", "0.60949874", "0.6091464", "0.60903275", "0.6070501", "0.6060102", "0.6058793",...
0.6157983
13
Input dict (use only 'a' through 'z' and lower case)
public static void main(String[] args) { String[] dict = {"the", "hello", "there", "answer", "any", "dragon", "world", "their", "inc"}; System.out.println("Keys: " + Arrays.toString(dict)); if (isFormationPossible(dict, "helloworld")) { System.out.println("true"); } else { System....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String validateAndGetLowerCaseKey(String key) {\n Strings.requireNonNullAndNotEmpty(key);\n return key.toLowerCase(Locale.ROOT);\n }", "public static HashMap firstLetterIndexes(String str, boolean caseSense) {\r\n if (!caseSense) {\r\n str = str.toLowerCase();\r\n ...
[ "0.59860605", "0.5827843", "0.5760203", "0.575449", "0.5743708", "0.56566733", "0.556361", "0.55600005", "0.5528223", "0.5521242", "0.5516809", "0.55166966", "0.54849154", "0.54721326", "0.5435734", "0.53999", "0.53731775", "0.536742", "0.534817", "0.53466827", "0.53383505", ...
0.0
-1
Platform unlike most macro expanders needs access to the cxx build flavor. Because of that it can't be like normal expanders. So just create a handler here.
private static MacroHandler getMacroHandler(final Optional<CxxPlatform> cxxPlatform) { String flav = cxxPlatform.map(input -> input.getFlavor().toString()).orElse(""); return new MacroHandler( ImmutableMap.of( "location", cxxPlatform .<LocationMacroExpander>map(Cx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public X10ToggleBreakpointsHandler() {\r\n final IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(HANDLER_EXTENSION_POINT_ID);\r\n if (extensionPoint != null) {\r\n for (final IConfigurationElement configElement : extensionPoint.getConfigurationElements()) {\r\n ...
[ "0.47323564", "0.46417862", "0.45190364", "0.44404176", "0.4404563", "0.43193793", "0.42988503", "0.426605", "0.42266798", "0.42263052", "0.42079058", "0.4182134", "0.4178145", "0.41556394", "0.4153386", "0.41195256", "0.41154775", "0.41125077", "0.41111824", "0.41107264", "0...
0.7677028
0
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 Bigmap)) { return false; } Bigmap other = (Bigmap) object; if ((this.mapid == null && other.mapid != null) || (this.mapid != null && !this.mapid.equals(other.mapid))) { 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(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896632", "0.68387574", "0.67055523", "0.664161", "0.664161", "0.6591609", "0.6579122", "0.6579122", "0.6574789", "0.6574789", "0.6574789", "0.6574789", "0.6574789", "0.6574789", "0.65622264", "0.65622264", "0.6544065", "0.6524693", "0.6515855", "0.6487308", "0.64771354", ...
0.0
-1
Determines the style of faulting from the rake angle (which comes from the eqkRupture object) and fills in the value of the fltTypeParam. Options are "Reverse" if 150>rake>30, "StrikeSlip" if rake is within 30 degrees of 0 or 180, and "Unkown" otherwise (which means normalfaulting events are assigned as "Unkown"; confi...
protected void setFaultTypeFromRake(double rake) throws InvalidRangeException { FaultUtils.assertValidRake(rake); if (Math.abs(Math.sin(rake * Math.PI / 180)) <= 0.5) { fltTypeParam.setValue(FLT_TYPE_STRIKE_SLIP); // 0.5 = sin(30) } else if (rake >= 30 && rake <= 150) { fltTypeParam.setValue(FLT_TYPE_REVE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initEqkRuptureParams() {\n\n\t\tmagParam = new MagParam(MAG_WARN_MIN, MAG_WARN_MAX);\n\n\t\tStringConstraint constraint = new StringConstraint();\n\t\tconstraint.addString(FLT_TYPE_UNKNOWN);\n\t\tconstraint.addString(FLT_TYPE_STRIKE_SLIP);\n\t\tconstraint.addString(FLT_TYPE_REVERSE);\n\t\tconstraint...
[ "0.50244755", "0.48342276", "0.4607638", "0.45473623", "0.45341069", "0.45292306", "0.45242873", "0.45229024", "0.45128557", "0.451144", "0.44583398", "0.44443995", "0.44336239", "0.4430483", "0.43951064", "0.43848643", "0.43835166", "0.43461785", "0.42890325", "0.42806846", ...
0.7190274
0
NoArg constructor. This initializes several ParameterList objects.
public ShakeMap_2003_AttenRel(ParameterChangeWarningListener listener) { this.listener = listener; initCoefficients(); // This must be called before the next one initSupportedIntensityMeasureParams(); initEqkRuptureParams(); initPropagationEffectParams(); initSiteParams(); initOtherParams(); initInde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListParameter()\r\n\t{\r\n\t}", "public List()\n\t{\n\t\tthis(null, null);\n\t}", "public ListElement()\n\t{\n\t\tthis(null, null, null); //invokes constructor with 3 arguments\n\t}", "public ArgList(int n) {\n super(n);\n }", "protected ParameterList(){\n //title = t;\n //ce...
[ "0.7599002", "0.6837383", "0.68248254", "0.6679083", "0.6613638", "0.6576523", "0.644874", "0.63971037", "0.6284784", "0.626273", "0.6235641", "0.6177711", "0.6133024", "0.6093258", "0.601944", "0.59693867", "0.5957678", "0.59349936", "0.5926064", "0.5925035", "0.59231275", ...
0.0
-1
This sets the eqkRupture related parameters (magParam and fltTypeParam) based on the eqkRupture passed in. The internally held eqkRupture object is also set as that passed in. Warning constrains are ingored.
public void setEqkRupture(EqkRupture eqkRupture) throws InvalidRangeException { magParam.setValueIgnoreWarning(new Double(eqkRupture.getMag())); setFaultTypeFromRake(eqkRupture.getAveRake()); this.eqkRupture = eqkRupture; setPropagationEffectParams(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initEqkRuptureParams() {\n\n\t\tmagParam = new MagParam(MAG_WARN_MIN, MAG_WARN_MAX);\n\n\t\tStringConstraint constraint = new StringConstraint();\n\t\tconstraint.addString(FLT_TYPE_UNKNOWN);\n\t\tconstraint.addString(FLT_TYPE_STRIKE_SLIP);\n\t\tconstraint.addString(FLT_TYPE_REVERSE);\n\t\tconstraint...
[ "0.7617765", "0.5383843", "0.49415597", "0.4884362", "0.48585916", "0.48197156", "0.47591823", "0.47311535", "0.4688316", "0.4687837", "0.46582493", "0.46300223", "0.45940006", "0.45940006", "0.4581343", "0.45805234", "0.45676783", "0.45613247", "0.4555844", "0.45378882", "0....
0.7047328
1
This sets the siterelated parameter (willsSiteParam) based on what is in the Site object passed in (the Site object must have a parameter with the same name as that in willsSiteParam). This also sets the internally held Site object as that passed in.
public void setSite(Site site) throws ParameterException { willsSiteParam.setValue((String)site.getParameter(WILLS_SITE_NAME).getValue()); this.site = site; setPropagationEffectParams(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSite(Site aSite) {\n this.site = aSite;\n }", "public void setSite(Site site) {\n\t\tthis.site = site;\n\t\tIterator it = site.getParametersIterator();\n\t\treplaceSiteParams(it);\n\t}", "protected void initSiteParams() {\n\n\t\t// create and add the warning constraint:\n\t\tArrayList ...
[ "0.69433737", "0.67201877", "0.65248257", "0.6477025", "0.5944924", "0.58921677", "0.5855398", "0.58444124", "0.58444124", "0.5841787", "0.58372104", "0.5795732", "0.5773667", "0.5766006", "0.56842345", "0.56303155", "0.5624338", "0.5587286", "0.55500644", "0.5532767", "0.552...
0.69036883
1
This calculates the Distance JB propagation effect parameter based on the current site and eqkRupture.
protected void setPropagationEffectParams() { if ( (this.site != null) && (this.eqkRupture != null)) { distanceJBParam.setValue(eqkRupture, site); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initPropagationEffectParams() {\n\t\tdistanceJBParam = new DistanceJBParameter(0.0);\n\t\tdistanceJBParam.addParameterChangeWarningListener(listener);\n\t\tDoubleConstraint warn = new DoubleConstraint(DISTANCE_JB_WARN_MIN,\n\t\t\t\tDISTANCE_JB_WARN_MAX);\n\t\twarn.setNonEditable();\n\t\tdistanceJBPa...
[ "0.5952711", "0.5142418", "0.5034255", "0.49878794", "0.4974672", "0.48699513", "0.48504096", "0.48192438", "0.47743905", "0.47577396", "0.47556716", "0.47078425", "0.4706124", "0.47042507", "0.46792024", "0.46731552", "0.4669568", "0.46342188", "0.46309006", "0.46187568", "0...
0.6738344
0
This function determines which set of coefficients in the HashMap are to be used given the current intensityMeasure (im) Parameter. The lookup is done keyed on the name of the im, plus the period value if im.getName() == "SA" (seperated by "/"). SWR: I choose the name update instead of set, because set is so common to ...
protected void updateCoefficients() throws ParameterException { // Check that parameter exists if (im == null) { throw new ParameterException(C + ": updateCoefficients(): " + "The Intensity Measusre Parameter has not been set yet, unable to process." ); } StringBuffer key = new StringBuffer(im...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getSA_PeriodForIMR(ScalarIntensityMeasureRelationshipAPI imr){\n ListIterator it =imr.getSupportedIntensityMeasuresIterator();\n while(it.hasNext()){\n DependentParameterAPI tempParam = (DependentParameterAPI)it.next();\n if(tempParam.getName().equalsIgnoreCase(this.SA_NAME)){\n ...
[ "0.5275376", "0.523746", "0.5146829", "0.48498115", "0.47872472", "0.47584814", "0.4732147", "0.4708884", "0.46507937", "0.45357463", "0.45149922", "0.44994244", "0.4471669", "0.44607022", "0.44295025", "0.4425053", "0.4421218", "0.44077945", "0.43986532", "0.43908766", "0.43...
0.59191775
0
Note that for MMI this returns the natural log of MMI (this should be changed later)
public double getMean() throws IMRException { String imt = im.getName(); if (!imt.equals(MMI_Param.NAME)) { updateCoefficients(); double b_mean = getRockMean(); if (imt.equals(PGA_Param.NAME)) { return b_mean + Math.log(getAmpFactor(im.getName(), b_mean)); } else { return b_mean + Math.log(g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void naturalLog()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.naturalLog ( );\n\t\t\tupdateText();\n\t\t}\n\t}", "public static Matrix logN(double base, Matrix matrix)\n {\n Matrix result = null;\n try\n {\n result = logN(matrix, base);\...
[ "0.66671354", "0.65457433", "0.64545655", "0.6255377", "0.6214213", "0.6090896", "0.6078717", "0.60508615", "0.6048232", "0.6033806", "0.597093", "0.5880041", "0.5822211", "0.57544506", "0.5734887", "0.5716491", "0.571617", "0.5705219", "0.56574845", "0.56255597", "0.56251603...
0.55183524
32
This computes the nonlinear amplification factor according to the Wills site class, IMT, and BC_PGA.
private double getAmpFactor(String imt) { String S = ".getAmpFactor()"; // get the PGA for B category coeffBJF = (BJF_1997_AttenRelCoefficients) coefficientsBJF.get(PGA_Param.NAME); coeffSM = (BJF_1997_AttenRelCoefficients) coefficientsSM.get(PGA_Param.NAME); return getAmpFactor(imt, getRockMean()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double getMMI() {\n\t\tdouble pgv, pga;\n\t\tString S = \".getMMI()\";\n\n\t\t// get PGA\n\t\tcoeffBJF = (BJF_1997_AttenRelCoefficients) coefficientsBJF.get(PGA_Param.NAME);\n\t\tcoeffSM = (BJF_1997_AttenRelCoefficients) coefficientsSM.get(PGA_Param.NAME);\n\t\tdouble b_pga = getRockMean();\n\t\tpga = b_pg...
[ "0.57423675", "0.49319112", "0.4926834", "0.4889888", "0.47783005", "0.46743202", "0.46668673", "0.46522135", "0.46468747", "0.463929", "0.46282426", "0.46069616", "0.45730832", "0.45667928", "0.4550529", "0.45408636", "0.45365402", "0.45354754", "0.45188755", "0.45144564", "...
0.55205905
1
This computes MMI (from PGA and PGV) using the relationship given by Wald et al. (1999, Earthquake Spectra). The code is a modified version of what Bruce Worden sent me (Ned) on 12/04/03. This could be a separate utility (that takes pgv and pga as arguments) since others might want to use it.
private double getMMI() { double pgv, pga; String S = ".getMMI()"; // get PGA coeffBJF = (BJF_1997_AttenRelCoefficients) coefficientsBJF.get(PGA_Param.NAME); coeffSM = (BJF_1997_AttenRelCoefficients) coefficientsSM.get(PGA_Param.NAME); double b_pga = getRockMean(); pga = b_pga + Math.log(getAmpFactor(PGA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testMMI() {\n System.out.println(\"MMI\");\n int a = 0;\n int m = 0;\n int expResult = 0;\n int result = utilsHill.MMI(a, m);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n ...
[ "0.53320324", "0.5282188", "0.5253824", "0.5212269", "0.5081609", "0.49555787", "0.4933777", "0.4925214", "0.483822", "0.4828795", "0.47733238", "0.46997583", "0.46901348", "0.46791375", "0.4661923", "0.4607192", "0.45644385", "0.45582443", "0.45547172", "0.4552091", "0.45477...
0.68311286
0
Calculates the mean for Rock using whatever set of coefficients were set before this method was called. The exact formula is: double mean = b1 + coeff.b2 ( mag 6 ) + coeff.b3 ( Math.pow( ( mag 6 ), 2 ) ) + coeff.b5 ( Math.log( Math.pow( ( distanceJB distanceJB + coeff.h coeff.h ), 0.5 ) ) ) + coeff.bv ( Math.log( rockV...
private double getRockMean() { double mag, distanceJB; String fltTypeValue, willsSite; double rockVs30_SM = 620; // these values are from their code double rockVs30_BJF = 724; try { mag = ( (Double) magParam.getValue()).doubleValue(); distanceJB = ( (Double) distanceJBParam.getValue()).doubleValue(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getMean() throws IMRException {\n\n\t\tString imt = im.getName();\n\t\tif (!imt.equals(MMI_Param.NAME)) {\n\t\t\tupdateCoefficients();\n\t\t\tdouble b_mean = getRockMean();\n\t\t\tif (imt.equals(PGA_Param.NAME)) {\n\t\t\t\treturn b_mean + Math.log(getAmpFactor(im.getName(), b_mean));\n\t\t\t}\n\t\t\t...
[ "0.5830502", "0.5202642", "0.5196333", "0.5173084", "0.5167511", "0.51478827", "0.51478827", "0.51269406", "0.5052924", "0.50389534", "0.50111616", "0.49983132", "0.4994945", "0.49902728", "0.49874923", "0.49841332", "0.49746293", "0.49738774", "0.4914659", "0.48969057", "0.4...
0.74314076
0
This overides the parent to take care if MMI is the chosen IMT.
public double getIML_AtExceedProb() throws ParameterException { if (im.getName().equals(MMI_Param.NAME)) { double exceedProb = ( (Double) ( (Parameter) exceedProbParam).getValue()). doubleValue(); if (exceedProb == 0.5) { if (sigmaTruncTypeParam.getValue().equals(SigmaTruncTypeParam.SIGMA_TRUNC_TYPE_1SI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getIsimIst() {\n return mIsimIst;\n }", "public void setIMEI(String IMEI) {\n this.IMEI = IMEI;\n }", "@Override\n public NativeIM getNativeIM() {\n return null;\n }", "public modifyMobile() {\n\t\tsuper();\n\t}", "public boolean onSetSelectedIn...
[ "0.54707694", "0.5443003", "0.5442031", "0.5411901", "0.5406104", "0.5382398", "0.5294604", "0.52375907", "0.52162457", "0.5081032", "0.50482476", "0.50424075", "0.4992394", "0.49804148", "0.49414787", "0.49307075", "0.48922345", "0.48761633", "0.4872677", "0.4859244", "0.484...
0.0
-1
This creates the lists of independent parameters that the various dependent parameters (mean, standard deviation, exceedance probability, and IML at exceedance probability) depend upon. NOTE: these lists do not include anything about the intensitymeasure parameters or any of thier internal independentParamaters.
protected void initIndependentParamLists() { // params that the mean depends upon meanIndependentParams.clear(); meanIndependentParams.addParameter(distanceJBParam); meanIndependentParams.addParameter(willsSiteParam); meanIndependentParams.addParameter(magParam); meanIndependentParams.addParameter(fltTypeP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Parameter[] getParameters() {\n\t\treturn new Parameter[] { weight, tolerance, svmType, kernelType, kernelDegree, kernelGamma, kernelCoefficient, parameterC,\n\t\t\t\tparameterNu };\n\t}", "protected void initSupportedIntensityMeasureParams() {\n\n\t\t// Create saParam:\n\t\tDoubleDiscreteCon...
[ "0.57221067", "0.52503365", "0.5204008", "0.50596505", "0.50361365", "0.5026588", "0.50047034", "0.5004279", "0.4948953", "0.4927633", "0.4891527", "0.4885935", "0.4860187", "0.4767218", "0.4751625", "0.47258735", "0.47213873", "0.47134462", "0.46685612", "0.46605393", "0.465...
0.73942465
0
Creates the willsSiteParam site parameter and adds it to the siteParams list. Makes the parameters noneditable.
protected void initSiteParams() { // create and add the warning constraint: ArrayList willsSiteTypes = new ArrayList(); willsSiteTypes.add(WILLS_SITE_B); willsSiteTypes.add(WILLS_SITE_BC); willsSiteTypes.add(WILLS_SITE_C); willsSiteTypes.add(WILLS_SITE_CD); willsSiteTypes.add(WILLS_SITE_D); willsSiteTy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addSiteParams(Iterator it) {\n\t\tAbstractParameter tempParam;\n\t\twhile (it.hasNext()) {\n\t\t\ttempParam = (AbstractParameter) it.next();\n\t\t\tif (!parameterList.containsParameter(tempParam)) { // if this does\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// not exist\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// alread...
[ "0.564837", "0.54721856", "0.5389506", "0.5297386", "0.5010791", "0.4972572", "0.48642707", "0.47307378", "0.4683428", "0.46608981", "0.46593094", "0.46193582", "0.45569992", "0.4547635", "0.45451805", "0.45446926", "0.45407417", "0.4525405", "0.45184073", "0.4517998", "0.451...
0.72546893
0
Creates the two Potential Earthquake parameters (magParam and fltTypeParam) and adds them to the eqkRuptureParams list. Makes the parameters noneditable.
protected void initEqkRuptureParams() { magParam = new MagParam(MAG_WARN_MIN, MAG_WARN_MAX); StringConstraint constraint = new StringConstraint(); constraint.addString(FLT_TYPE_UNKNOWN); constraint.addString(FLT_TYPE_STRIKE_SLIP); constraint.addString(FLT_TYPE_REVERSE); constraint.setNonEditable(); fltT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initOtherParams() {\n\n\t\t// init other params defined in parent class\n\t\tsuper.initOtherParams();\n\n\t\t// the Component Parameter\n\t\t// first is default, the rest are all options (including default)\n\t\tcomponentParam = new ComponentParam(Component.AVE_HORZ, Component.AVE_HORZ,\n\t\t\t\tCom...
[ "0.5693748", "0.5348284", "0.5329862", "0.5068035", "0.49480647", "0.48882756", "0.47879088", "0.47841057", "0.47717902", "0.47515595", "0.47193503", "0.4703294", "0.4693079", "0.46683016", "0.4666342", "0.4654995", "0.46532065", "0.4651711", "0.4637957", "0.46347407", "0.462...
0.64524937
0
Creates the single Propagation Effect parameter and adds it to the propagationEffectParams list. Makes the parameters noneditable.
protected void initPropagationEffectParams() { distanceJBParam = new DistanceJBParameter(0.0); distanceJBParam.addParameterChangeWarningListener(listener); DoubleConstraint warn = new DoubleConstraint(DISTANCE_JB_WARN_MIN, DISTANCE_JB_WARN_MAX); warn.setNonEditable(); distanceJBParam.setWarningConstraint(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setPropagationEffectParams() {\n\n\t\tif ( (this.site != null) && (this.eqkRupture != null)) {\n\t\t\tdistanceJBParam.setValue(eqkRupture, site);\n\t\t}\n\t}", "public void setPropagationId(Object propagationId)\n {\n this.propagationId = propagationId;\n }", "public DeleteBuild propagat...
[ "0.61297494", "0.5275271", "0.5246528", "0.51225424", "0.5108696", "0.4945421", "0.48855048", "0.48668423", "0.48666313", "0.4834826", "0.48322558", "0.48139665", "0.48132682", "0.47502038", "0.4728815", "0.47118914", "0.45742762", "0.45563418", "0.4548641", "0.45204708", "0....
0.6542937
0
Creates the two supported IM parameters (PGA and SA), as well as the independenParameters of SA (periodParam and dampingParam) and adds them to the supportedIMParams list. Makes the parameters noneditable.
protected void initSupportedIntensityMeasureParams() { // Create saParam: DoubleDiscreteConstraint periodConstraint = new DoubleDiscreteConstraint(); TreeSet set = new TreeSet(); Enumeration keys = coefficientsBJF.keys(); while (keys.hasMoreElements()) { BJF_1997_AttenRelCoefficients coeff = (BJF_1997_Att...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setIMUParameters(){\n BNO055IMU.Parameters parameters = getIMUParameters();\n imu.initialize(parameters);\n }", "private BNO055IMU.Parameters getIMUParameters(){\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IM...
[ "0.5635174", "0.5270398", "0.5233116", "0.5040974", "0.5027104", "0.50224125", "0.4995251", "0.49557194", "0.49004966", "0.48447484", "0.48427054", "0.48161563", "0.48105186", "0.47623295", "0.47406688", "0.47357386", "0.47236413", "0.47190282", "0.46844557", "0.46685058", "0...
0.66748697
0
Creates other Parameters that the mean or stdDev depends upon, such as the Component or StdDevType parameters.
protected void initOtherParams() { // init other params defined in parent class super.initOtherParams(); // the Component Parameter // first is default, the rest are all options (including default) componentParam = new ComponentParam(Component.AVE_HORZ, Component.AVE_HORZ, Component.RANDOM_HORZ, Compone...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void SetStandardDev(double standard_dev);", "@Override\n\tpublic Parameter[] getParameters() {\n\t\treturn new Parameter[] { weight, tolerance, svmType, kernelType, kernelDegree, kernelGamma, kernelCoefficient, parameterC,\n\t\t\t\tparameterNu };\n\t}", "OutputDeviation createOutputDeviation();", "pro...
[ "0.58030397", "0.5519271", "0.5512513", "0.5398945", "0.5317388", "0.5295541", "0.5294107", "0.5271293", "0.525517", "0.5106797", "0.50924027", "0.507313", "0.507262", "0.50696605", "0.5068145", "0.5062323", "0.50541645", "0.50457174", "0.50438356", "0.50408924", "0.50404584"...
0.69454294
0
get the name of this IMR
public String getName() { return NAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }", "public java.lang.String getName();", "public String name() {\n this.use();\n\n return name;\n }", "public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}", "public Strin...
[ "0.7163095", "0.7152414", "0.7102538", "0.7073834", "0.70731086", "0.70710593", "0.70643616", "0.70643616", "0.70643616", "0.70643616", "0.70643616", "0.70643616", "0.70643616", "0.70643616", "0.70643616", "0.70643616", "0.70643616", "0.70643616", "0.70643616", "0.70643616", ...
0.0
-1
Returns the Short Name of each AttenuationRelationship
public String getShortName() { return SHORT_NAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toStringWithRelation();", "public String getInverseRelationshipName ();", "@Override\n public String getAttributesToString() {\n StringBuilder attributes = new StringBuilder();\n attributes.append(\"1 - Nominal Power: \" + nominalPower + \"\\n\");\n attributes.append(\"2 -...
[ "0.59558046", "0.58401406", "0.574217", "0.5737787", "0.5724268", "0.5621761", "0.5550009", "0.5519093", "0.54669726", "0.5453386", "0.5444655", "0.54385096", "0.5436744", "0.54012126", "0.54003894", "0.5382532", "0.5377027", "0.5341382", "0.53208745", "0.53053933", "0.529332...
0.0
-1
This creates the hashtable of coefficients for the supported intensityMeasures (im). The key is the im parameter name, plus the period value for SA (separated by "/"). For example, the key for SA at 1.0 second period is "SA/1.0".
protected void initCoefficients() { String S = C + ": initCoefficients():"; if (D) { System.out.println(S + "Starting"); } // Make the ShakeMap coefficients coefficientsSM.clear(); // Note that the coefficients in "the APPENDIX" that David Wald sent to me (Ned) on 8/27/07 // assume that all logs in t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private HashMap<String, Double> getHashMapScore(String query){\n WaveIO waveIO = new WaveIO();\n\n short[] inputSignal = waveIO.readWave(query);\n MagnitudeSpectrum ms = new MagnitudeSpectrum();\n double[] msFeatureQuery = ms.getFeature(inputSignal);\n Energy energy = new Energy(...
[ "0.54885054", "0.54541844", "0.5018515", "0.5013215", "0.47131333", "0.46098718", "0.45701462", "0.45540258", "0.44917333", "0.44888332", "0.44393903", "0.44270566", "0.43957162", "0.43890905", "0.43700424", "0.4365206", "0.43509546", "0.43415722", "0.43198887", "0.4314939", ...
0.52230746
2
Constructor for the BJF_1997_AttenRelCoefficients object
public BJF_1997_AttenRelCoefficients(String name) { this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BJF_1997_AttenRelCoefficients(String name, double period,\n\t\t\t\tdouble b1ss, double b1rv, double b1all,\n\t\t\t\tdouble b2, double b3,\n\t\t\t\tdouble b5, double bv, int va, double h,\n\t\t\t\tdouble sigma1, double sigmaC,\n\t\t\t\tdouble sigmaR, double sigmaE,\n\t\t\t\tdouble sigmaLnY\n\t\t) {\n\t\t\tth...
[ "0.6783071", "0.5694191", "0.55158025", "0.5487022", "0.5458281", "0.5360651", "0.53605986", "0.5247857", "0.5198118", "0.51824033", "0.51824033", "0.5172134", "0.51296806", "0.5117195", "0.5103681", "0.5096553", "0.5089", "0.5082655", "0.5080144", "0.5068763", "0.5027747", ...
0.7291662
0
Constructor for the BJF_1997_AttenRelCoefficients object that sets all values at once
public BJF_1997_AttenRelCoefficients(String name, double period, double b1ss, double b1rv, double b1all, double b2, double b3, double b5, double bv, int va, double h, double sigma1, double sigmaC, double sigmaR, double sigmaE, double sigmaLnY ) { this.period = period; this.b1ss = b1ss; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BJF_1997_AttenRelCoefficients(String name) {\n\t\t\tthis.name = name;\n\t\t}", "public PidCoefficients()\n {\n this(1.0, 0.0, 0.0, 0.0);\n }", "protected void initCoefficients() {\n\n\t\tString S = C + \": initCoefficients():\";\n\t\tif (D) {\n\t\t\tSystem.out.println(S + \"Star...
[ "0.6936301", "0.58476937", "0.5665739", "0.5490099", "0.53376824", "0.5305574", "0.5297863", "0.5293281", "0.5248848", "0.5242679", "0.5242679", "0.52353936", "0.51972383", "0.5133758", "0.5128435", "0.5117103", "0.5103093", "0.51002", "0.50804013", "0.5075346", "0.50646013",...
0.66852295
1
Gets the name attribute of the BJF_1997_AttenRelCoefficients object
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BJF_1997_AttenRelCoefficients(String name) {\n\t\t\tthis.name = name;\n\t\t}", "public AXValue getName() {\n return name;\n }", "public java.lang.String getZqu__Relationship_Field_Name__c() {\r\n return zqu__Relationship_Field_Name__c;\r\n }", "public String getNameReference() { \...
[ "0.7160746", "0.6100171", "0.60625595", "0.6042682", "0.5981521", "0.59806854", "0.59769905", "0.59704405", "0.5964586", "0.5961932", "0.5898011", "0.58943325", "0.58943325", "0.58943325", "0.587837", "0.5855701", "0.5853471", "0.5853471", "0.5853471", "0.5853471", "0.5853471...
0.0
-1
Debugging prints out all cefficient names and values
public String toString() { StringBuffer b = new StringBuffer(); b.append(C); b.append("\n Period = " + period); b.append("\n b1all = " + b1all); b.append("\n b1ss = " + b1ss); b.append("\n b1rv = " + b1rv); b.append("\n b2 = " + b2); b.append("\n b3 = " + b3); b.append("\n b5 = " + b5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void debugc() {\n\t\tfor( int i = 0; i < N; i++ ) {\n\t\t\tboolean any = false;\n\t\t\tfor( int j = 0; j < N; j++ )\n\t\t\t\tif( c[i][j] != 0 ) {\n\t\t\t\t\tany = true;\n\t\t\t\t\tSystem.out.print(\"c(\"+i+\",\"+j+\":\"+label[i][j]+\")=\"+c[i][j]+\" \");\n\t\t\t\t}\n\t\t\tif( any )\n\t\t\t\tSystem.out.println();\...
[ "0.6729765", "0.6500355", "0.63201666", "0.60384756", "0.6025374", "0.5994264", "0.5968911", "0.59442556", "0.5916925", "0.5894008", "0.5885574", "0.5882698", "0.58646375", "0.58581215", "0.58385843", "0.5828438", "0.5815594", "0.5809024", "0.5792389", "0.57903713", "0.576025...
0.5925636
8
this is temporary for testing purposes
public static void main(String[] args) { System.out.println( (981.0 / (2.0 * Math.PI * 1.65))); new ShakeMap_2003_AttenRel(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\n public void perish() {\n \n }", "private void test() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() ...
[ "0.5943851", "0.593393", "0.5739562", "0.5732066", "0.5665498", "0.56034064", "0.5578343", "0.55643016", "0.5536612", "0.5532717", "0.5520231", "0.55139476", "0.5510938", "0.54906464", "0.54680187", "0.54561347", "0.5440145", "0.54400975", "0.5434531", "0.5429322", "0.5429322...
0.0
-1