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
for an unvisited class follow all relevant relations
private void visitOutgoingReferences(EClass eClass) { EList<EReference> references = eClass.getEReferences(); for (EReference ref : references) { // is it in containment graph? (ie should it be added) if (ref.isContainer() || ref.isContainment() || ref.getLowerBound() > 0) { EClass referencedClass = ref.getEReferenceType(); boolean foundNewClass = addClassToContainmentIfNotAlreadyPresent(referencedClass); possiblyReportNewClass(foundNewClass, refToString(ref), eClass, referencedClass); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getVisited(){return this.visited;}", "public void setVisited()\n {\n visited = true;\n }", "public void setVisited(boolean value){this.visited = value;}", "@Override\r\n\tpublic void visit(ast.program.Program p) {\r\n\t\t// ////////////////////////////////////////////////\r\n\t\t/...
[ "0.5929466", "0.5853902", "0.5772026", "0.5688199", "0.56856436", "0.56628084", "0.5600816", "0.5583744", "0.5573841", "0.5570776", "0.5545151", "0.5543275", "0.5506519", "0.549442", "0.54620224", "0.54474545", "0.5326646", "0.5297101", "0.52465314", "0.52434736", "0.52409506...
0.5688358
3
iterate over all yet unreached classes
private boolean checkUnreachedClassesForContainersAndSubclasses() { Iterator<EClass> iterator = unreachedClasses.iterator(); while (iterator.hasNext()) { EClass eClass = iterator.next(); if (grabIncomingContainments && addIfContainer(eClass) || grabSubClasses && addIfContainedSubClass(eClass)) { iterator.remove(); return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotNull\n List<? extends ClassInfo> getAllClasses();", "public abstract List<String> scanAllClassNames();", "public void clearAuxClasss();", "public Collection getAllAuxClasss();", "private void connectClasses(Header [] list)\r\n {\r\n Vector queue;\r\n Vector garbage = new Vector();\r\n\r\n ...
[ "0.6528504", "0.6349592", "0.62810034", "0.62648416", "0.6239605", "0.6213782", "0.60127944", "0.6007644", "0.60071033", "0.6006757", "0.5986381", "0.5914415", "0.5884151", "0.58756816", "0.5826691", "0.5795823", "0.5790461", "0.57008004", "0.5685963", "0.56825185", "0.567676...
0.65189314
1
search for containments going into contained classes and superclasses
private boolean addIfContainer(EClass eClass) { EList<EReference> containments = eClass.getEAllContainments(); for (EReference containment : containments) { EClass containee = containment.getEReferenceType(); if (visitedContainedClasses.contains(containee) || visitedSuperClasses.contains(containee)) { // add new container unvisitedContainedClasses.add(eClass); // does the containment point to a uncontained superclass? if (visitedSuperClasses.remove(containee)) { unvisitedContainedClasses.add(containee); } possiblyReportNewClass(true, "incoming containment", containee, eClass); return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean findSpecialtyContainers(){\n\t\t\tif (this.receptacle != null)//checks and sees if there's any containers in the location.\n\t\t\t\tfor (int i = 0; i < this.receptacle.size(); i++)\n\t\t\t\t\tif ((this.receptacle.get(i) instanceof SpecialtyContainer))\n\t\t\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}",...
[ "0.62161696", "0.59567714", "0.5929631", "0.59264195", "0.59114194", "0.58730716", "0.58062905", "0.57986265", "0.5738006", "0.57374805", "0.5709475", "0.56959397", "0.56829715", "0.56568897", "0.5618612", "0.56121844", "0.5602176", "0.5496669", "0.54848665", "0.548349", "0.5...
0.5461961
20
search for inheritances going into contained classes
private boolean addIfContainedSubClass(EClass eClass) { EList<EClass> superClasses = eClass.getESuperTypes(); for (EClass superClass : superClasses) { if (visitedContainedClasses.contains(superClass)) { // eClass is a subclass of the containment set unvisitedContainedClasses.add(eClass); possiblyReportNewClass(true, "sub class", superClass, eClass); return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void processInheritanceAssociations() {\n\t\tFamixAssociation foundInheritance;\n\t\tHashSet<String> foundInheritanceList;\n\t\tHashSet<String> alreadyIncludedInheritanceList;\n\t\tinheritanceAssociationsPerClass = new HashMap<String, HashSet<String>>();\n\t\ttry{\n\t\t\tIterator<FamixAssociation> iterator = theMo...
[ "0.66165423", "0.65559936", "0.64258504", "0.6342281", "0.62589806", "0.62520206", "0.62475586", "0.6131204", "0.61012435", "0.6065862", "0.6056702", "0.6032525", "0.6026735", "0.60155386", "0.60092705", "0.5896237", "0.5877254", "0.5863094", "0.58550316", "0.5834804", "0.579...
0.55675626
47
return super.onCreateView(inflater, container, savedInstanceState);
@Nullable @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final Context contextThemeWrapper = new ContextThemeWrapper(getActivity(), R.style.AppTheme_profile3); // clone the inflater using the ContextThemeWrapper LayoutInflater localInflater = inflater.cloneInContext(contextThemeWrapper); v = localInflater.inflate(R.layout.fragment_profile_3, null); // ////TypefaceHelper.typeface(v, App.getHelveticaNeueArabic()); return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return super.onCreateView(inflater, container, savedInstanceState);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState...
[ "0.8520504", "0.8520504", "0.84697336", "0.84395945", "0.8238497", "0.8238497", "0.8201342", "0.81709266", "0.8141732", "0.8109355", "0.80199146", "0.7958024", "0.7933978", "0.79093903", "0.79052657", "0.79017705", "0.78905606", "0.7887862", "0.78857666", "0.78753996", "0.783...
0.0
-1
For the child classes who will be extending this class
protected Session getSession() { return sessionUtility.getSession(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void checkSubclass() {\n }", "@Override\r\n\tpublic void makeChildcare() {\n\t\t\r\n\t}", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n\tpro...
[ "0.68243456", "0.67273766", "0.6605825", "0.6605825", "0.6605825", "0.6541152", "0.6541152", "0.6541152", "0.6541152", "0.6541152", "0.6541152", "0.6541152", "0.6541152", "0.6541152", "0.6541152", "0.6541152", "0.6541152", "0.6541152", "0.6541152", "0.6541152", "0.6541152", ...
0.0
-1
Created by flisar on 20.10.2016.
public interface ILogClassFormatter<T> { String log(T item, boolean logInList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r...
[ "0.59923255", "0.5863432", "0.58037996", "0.57154", "0.57154", "0.5671917", "0.5634439", "0.5582584", "0.55738974", "0.55674016", "0.55654633", "0.5562748", "0.552276", "0.55115235", "0.55075663", "0.55075663", "0.55075663", "0.55075663", "0.55075663", "0.5499386", "0.5497361...
0.0
-1
Initializes the provided resourceSchemaProvider with input fields for all nonprimary key fields and index columns for all columns.
private static void createDefaultResourceFormPages(Resource resource) { FormInputGroup inputGroup = new FormInputGroup(); resource.getColumnDefinitions().forEach(x -> { logger.trace("Adding default for {} col {}", resource.getTableName(), x.getName()); if(!x.isKeyColumn()) { inputGroup.addInput(new FormInput(x.getName(), x.getType())); resource.addEditableColumn(x.getName()); } resource.getIndexColumns().add(x.getName()); }); resource.getFormPage().add(inputGroup); resource.getFormPage().add(new FormButtons()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void accept(Resource resource, ResourceSchemaProvider schemaProvider) {\n logger.trace(\"Decorating {}\", resource.getTableName());\n// updateResourceWithPrimaryKeys(resource, schemaProvider);\n updateResourceWithColumns(resource, schemaProvider);\n createDefaultResourceFormPages(resource);\n }...
[ "0.5763659", "0.53764844", "0.5262397", "0.5204731", "0.5174805", "0.5108538", "0.509813", "0.50820315", "0.5052122", "0.50509083", "0.49829385", "0.4954976", "0.49402532", "0.49079895", "0.48940143", "0.4853455", "0.4850967", "0.4849234", "0.4800832", "0.4796377", "0.4794206...
0.5062777
8
Decorates the provided resourceSchemaProvider with information provided by the DBMS.
public void accept(Resource resource, ResourceSchemaProvider schemaProvider) { logger.trace("Decorating {}", resource.getTableName()); // updateResourceWithPrimaryKeys(resource, schemaProvider); updateResourceWithColumns(resource, schemaProvider); createDefaultResourceFormPages(resource); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SchemaBuilder withResourceResolver(LSResourceResolver resourceResolver);", "public SecuritySchemaItemProvider(AdapterFactory adapterFactory) {\n\t\tsuper(adapterFactory);\n\t}", "public interface SqlResourceMetaData {\r\n\r\n\tpublic List<ColumnMetaData> getAllReadColumns();\r\n\r\n\tpublic TableMetaData getCh...
[ "0.592066", "0.5371934", "0.5273315", "0.52256405", "0.49219203", "0.49142754", "0.48404098", "0.48188952", "0.47821575", "0.47740948", "0.4750936", "0.47158578", "0.4692542", "0.4601472", "0.4566729", "0.45641312", "0.45418975", "0.4527702", "0.45264897", "0.448172", "0.4468...
0.7033391
0
/ 1. write a program that can identify if two strings are built out of same characters str1 = "abcabc" str2 = "cab" output: true str1 = "cabccccccaaaaaa"; str2 = "bca"; output: true
public static void main(String[] args) { // System.out.println(anagram1()); // System.out.println(anagram2()); // System.out.println(anagram3()); System.out.println(anagram4()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n\t\tString a = \"aabbbc\", b =\"cbad\";\n\t\t// a=abc\t\t\t\tb=cab\n\t\t\n\t\t\n\t\tString a1 =\"\" , b1 = \"\"; // to store all the non duplicated values from a\n\t\t\n\t\tfor(int i=0; i<a.length();i++) {\n\t\t\tif(!a1.contains(a.substring(i,i+1)))\n\t\t\t\ta1 += a.subs...
[ "0.7851639", "0.7829662", "0.780863", "0.77415615", "0.77379495", "0.7676954", "0.76367927", "0.7570612", "0.7542984", "0.75220716", "0.74403006", "0.74237734", "0.73720306", "0.7362735", "0.7359692", "0.73552644", "0.7345062", "0.7311104", "0.7288203", "0.72866434", "0.72746...
0.0
-1
Detecta el tipo de archivo basado en una muestra de una línea tomada del archivo.
static boolean esLista(String linea) throws IllegalArgumentException { // Verifica si la primera linea del archivo comienza con " " para saber si es una matriz // de adyacencia o una lista de adyacencia. if(linea.startsWith(" ")){ return false; } else { return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFileMimeType();", "String[] getFileTypes();", "public boolean isFile() { return true; }", "private String getTypeFromExtension()\n {\n String filename = getFileName();\n String ext = \"\";\n\n if (filename != null && filename.length() > 0)\n {\n int index ...
[ "0.6226899", "0.62241715", "0.6146686", "0.6087041", "0.59669757", "0.59442693", "0.58607084", "0.5847421", "0.58285874", "0.5784168", "0.57721215", "0.57636535", "0.57549304", "0.57493496", "0.57211536", "0.5716925", "0.570444", "0.5681639", "0.5672991", "0.56700116", "0.566...
0.0
-1
Carga la linea de un archivo Lista de Adyacencias dada en el Grafo dado.
private static void cargarLista(String linea, TraductorDesdeLista grafo) throws IllegalArgumentException { int vertice = Integer.parseInt(linea.substring(0,1)); // Guarda el vertice linea = linea.substring(3); // Guarda los vertices sucesores String[] lista = linea.split(" "); // Almacena los vertices sucesores en un arreglo // Agrega vertice en la matriz de adyacencia grafo.agregarVertice(vertice); // Itera sobre los vertices sucesores al vertice agregado agregando los arcos en la matriz de adyacencia for(int i=0;i<lista.length;i++){ grafo.agregarArco(vertice, Integer.parseInt(lista[i])); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> obtenerlineas(String archivo) throws FileException;", "private void updateListaInformacaoSalva(){\n try(Stream<String> lines = Files.lines(Paths.get(this.path))){\n this.listaInformacaoSalva = lines\n .map(SalvaCsv::pelaLinha)\n .collect(Collec...
[ "0.7250318", "0.66145957", "0.6567806", "0.61832803", "0.6152515", "0.60591555", "0.6021445", "0.60058284", "0.5985842", "0.5969754", "0.59214264", "0.5919076", "0.59103596", "0.5883523", "0.586765", "0.5849381", "0.584419", "0.58420587", "0.58322066", "0.5812569", "0.5811338...
0.65718067
2
Carga la linea de un archivo Matriz de Adyacencias dada en el Grafo dado.
private static void cargarMatriz(String linea, TraductorDesdeMatriz grafo) throws IllegalArgumentException { if (linea.startsWith(" ") || linea.startsWith("-")) { return; } else { int verticeInicial = Integer.parseInt(linea.substring(0,1)); // Guarda el primer caracter. linea = linea.substring(3); //Guarda el resto de la cadena. String[] lista = linea.split(" "); //Convierte en array. // Itera sobre el array para encontrar los vertices adyacentes. for (int i = 0; i < lista.length; i++) { if (Integer.parseInt(lista[i]) == 1) { grafo.agregarArco(verticeInicial, i); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cargaDatasetEnMatrices() {\n int i, caux, row, column;\n String linea0 = null;\n String numero;\n char c;\n boolean notnumber; \n try {\n try (BufferedReader entrada = new BufferedReader(new FileReader(fich))) {\n //Recoge el numero d...
[ "0.6597541", "0.6472351", "0.6265966", "0.6190691", "0.6092901", "0.6046794", "0.5987809", "0.5880478", "0.5856284", "0.5813126", "0.5791428", "0.5739961", "0.5711616", "0.5680457", "0.56659436", "0.5641066", "0.5568839", "0.5567418", "0.554786", "0.55254555", "0.55236036", ...
0.65609527
1
Metodo que se encarga de verificar si el grafo es no dirigido
private static void noDirigido(TraductorGrafo grafo){ // Inicializa variable booleana que almacena si el grafo es no dirigido boolean esNoDirigido = true; // Itera sobre la matriz de adyacencias del grafo verificando que paratodo i,j se cumple que // grafo[i][j] == grafo[j][i] for(int i=0;i<grafo.grafo.length;i++){ for(int j=0;j<grafo.grafo.length;j++){ if(grafo.grafo[i][j] != grafo.grafo[j][i]){ // En caso de encontrar un caso para el cual no se cumple, se asigna a la variable booleana false esNoDirigido = false; } } } // Verifica el estado de la variable booleana, y dependiendo de este imprime el mensaje correspondiente if(esNoDirigido){ System.out.println("El grafo es no dirigido"); } else { System.out.println("El grafo es dirigido"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isDir() { return _entry==null; }", "private boolean acceptAsExpected()\n {\n return saveExpectedDir_ != null;\n }", "public boolean checkForGourds() {return false;}", "public boolean isDir() { return false; }", "private static boolean esDirectorio(String ruta) {\n\t\tboolean b = f...
[ "0.6533555", "0.63261193", "0.6196257", "0.6144072", "0.6124881", "0.6124617", "0.60739785", "0.6054325", "0.60467774", "0.6024094", "0.59809", "0.5978053", "0.5974972", "0.5939146", "0.58870405", "0.5886517", "0.58862835", "0.58802426", "0.5875742", "0.58579016", "0.5854361"...
0.69312924
0
Detecta el número de vértices en un archivo Matriz de Adyacencias basado en una muestra de una línea tomada del archivo.
private static int detectarVertices(String linea) throws IllegalArgumentException { linea = linea.substring(3); // Elimina los espacios innecesarios String[] lista = linea.split(" "); return lista.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int totalMatrices(){\n try{ \n br = new BufferedReader(new FileReader(\"E:\\\\NUST\\\\6th Semester\\\\Advanced Programming - AP\\\\Labs\\\\Advanced Programming Lab-1\\\\src\\\\pk\\\\edu\\\\nust\\\\seecs\\\\bscs2\\\\advancedprogramming\\\\lab1\\\\matrices.txt\") );\n wh...
[ "0.5934362", "0.5752503", "0.57241637", "0.5653472", "0.55501693", "0.54893684", "0.5452731", "0.5367511", "0.53427136", "0.5334521", "0.53335446", "0.53073955", "0.5281702", "0.5257877", "0.52498764", "0.52281964", "0.5218251", "0.5218241", "0.52003783", "0.5174887", "0.5174...
0.5041517
31
Carga el grafo representado en el archivo dado y lo muestra en su representación alternativa.
public static void main(String[] args) throws IOException, IllegalArgumentException { if(args.length < 1){ System.err.println("Uso: java Cliente <nombreArchivo>"); return; } TraductorGrafo g = cargarGrafo(args[0]); System.out.println(g.imprimirGrafoTraducido()); noDirigido(g); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static Grafo cargarGrafo(String nombreArchivo, Grafo grafo)\n\t\t\tthrows IOException\n\t{\n\t\tint n; // Corresponde al número de nodos del grafo\n int m; \t // Corresponde a la cantidad de aristas en el grafo\n\n\t\tBufferedReader Lector = new BufferedReader...
[ "0.67386276", "0.6453515", "0.638947", "0.58768237", "0.58610386", "0.5756313", "0.56872934", "0.568387", "0.56783855", "0.566226", "0.5645444", "0.56336397", "0.5602577", "0.5505764", "0.5426711", "0.54257196", "0.54255676", "0.53905404", "0.53705496", "0.5355488", "0.535232...
0.0
-1
Getting content for email
public void sendMail() { String email = emailID.getText().toString(); String subject = "BlueBucket One-Time OTP"; otp=generateOTP(); String message = ""+otp; //Creating SendMail object SendMail sm = new SendMail(this, email, subject, message); //Executing sendmail to send email sm.execute(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "@GET\n\t@Produces(MediaType.TEXT_PLAIN)\n\tpublic Object get() throws MalformedURLException, IOExce...
[ "0.6827733", "0.6827733", "0.6827733", "0.6827733", "0.6827733", "0.6827733", "0.6782004", "0.6694355", "0.66741544", "0.6628718", "0.6628718", "0.6628718", "0.6628718", "0.6628718", "0.6628718", "0.6628718", "0.6628718", "0.65753514", "0.6533638", "0.6432908", "0.6412071", ...
0.0
-1
Metodo para enviar el tokens
private void enviarTokenRegistro(String token){ Log.d(TAG, token); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getToken();", "String getToken();", "String getToken();", "String getToken();", "String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken();", "java.lang.String getToken...
[ "0.69664633", "0.69664633", "0.69664633", "0.69664633", "0.69664633", "0.6690734", "0.6690734", "0.6690734", "0.6690734", "0.6690734", "0.6690734", "0.6643438", "0.64788914", "0.6422972", "0.6333049", "0.63274425", "0.6319006", "0.61318606", "0.6125389", "0.60762966", "0.6028...
0.64525527
13
/ JADX INFO: super call moved to the top of the method (can break code semantics)
C2122ad(C2131am amVar, C2415i iVar, int i, String str, String str2, int i2, C2415i iVar2) { super(iVar); this.f1520f = amVar; this.f1515a = i; this.f1516b = str; this.f1517c = str2; this.f1518d = i2; this.f1519e = iVar2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_6349() {\r\n super.method_6349();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "protected void method_3848() {\...
[ "0.7414273", "0.7119421", "0.7119421", "0.7119421", "0.71142495", "0.70229536", "0.7005205", "0.69602233", "0.6936168", "0.6830031", "0.6788589", "0.67602336", "0.6727353", "0.6727353", "0.66800827", "0.66706574", "0.6637052", "0.6628256", "0.6620721", "0.66064125", "0.660408...
0.0
-1
/ access modifiers changed from: protected / renamed from: a
public final void mo33529a() { try { ((C2310t) this.f1520f.f1539e.mo33821c()).mo33910j(this.f1520f.f1537c, C2131am.m863r(this.f1515a, this.f1516b, this.f1517c, this.f1518d), C2131am.m855C(), new C2125ag(this.f1520f, this.f1519e)); } catch (RemoteException e) { C2131am.f1535a.mo33809b("getChunkFileDescriptor(%s, %s, %d, session=%d)", this.f1516b, this.f1517c, Integer.valueOf(this.f1518d), Integer.valueOf(this.f1515a)); this.f1519e.mo34075d(new RuntimeException(e)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "@Override\n\tpublic void a() {\n\t\t\n\t}", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void ...
[ "0.75464964", "0.73093235", "0.71735907", "0.692263", "0.68435764", "0.6787232", "0.67364866", "0.6659923", "0.6635336", "0.6635336", "0.65571475", "0.65408033", "0.65371394", "0.6500136", "0.6494878", "0.6494545", "0.6485399", "0.6476603", "0.64670885", "0.6403744", "0.63941...
0.0
-1
Constructor Constructs an empty Bag instance with the specified default max capacity.
public ArrayQueue() { this(Integer.MAX_VALUE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Queue()\r\n\t{\r\n\t\tthis(capacity);\r\n\t}", "public BinaryHeap(int maxCapacity) {\n pq = new Comparable[maxCapacity];\n size = 0;\n }", "@SuppressWarnings(\"unchecked\")\n public ArrBag( int optionalCapacity )\n {\n theArray = (T[]) new Object[optionalCapacity ];\n ...
[ "0.64137995", "0.6397451", "0.63472027", "0.6318983", "0.63116044", "0.6267853", "0.6237038", "0.62189484", "0.61067295", "0.60966283", "0.60685134", "0.6058116", "0.60260123", "0.6013974", "0.59774923", "0.5969122", "0.5955393", "0.59467477", "0.5937055", "0.5932711", "0.592...
0.6046283
12
Constructs an empty Bag instance with the specified max capacity.
@SuppressWarnings("unchecked") public ArrayQueue(int max) { this.max = max; this.data = (T[])new Object[DEFAULT_INIT_CAPACITY]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMaxCapacity(int max) {\n\t\tbuffer = new Object[max];\n\t\tbufferSize = 0;\n\t}", "public BinaryHeap(int maxCapacity) {\n pq = new Comparable[maxCapacity];\n size = 0;\n }", "public Inventory(int max) {\n items = new Item[max];\n }", "public Builder clearMaximumCapac...
[ "0.64961994", "0.6471693", "0.6371865", "0.6366404", "0.63315207", "0.6328382", "0.60762346", "0.6075221", "0.6054719", "0.6011766", "0.5968198", "0.5963314", "0.5960705", "0.58908814", "0.5887843", "0.5866016", "0.5802125", "0.5784424", "0.5781403", "0.5774509", "0.57724583"...
0.62286645
6
Logic push e into bag
public void push(T e) { if(size == data.length){ resize(size * 2); } this.data[size++] = e; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void push(E e) {\n\t\t\r\n\t}", "public void push(E e) throws Exception;", "void push(E e);", "void push(E e);", "void push(E Obj);", "@Override\r\n\tpublic void push(E e) {\r\n\t\tif (size() == stack.length)\r\n\t\t\texpandArray();\r\n\t\tstack[++t] = e; // increment t before stori...
[ "0.71293646", "0.70932996", "0.6801108", "0.6801108", "0.6563905", "0.65176815", "0.6468476", "0.64683956", "0.6456254", "0.63477176", "0.6284345", "0.62694514", "0.6252516", "0.6198967", "0.6193227", "0.61180353", "0.60802823", "0.60418504", "0.6035355", "0.59870833", "0.598...
0.6697376
4
pop e from bag
public T pop() { T t = this.data[--size]; this.data[size] = null; if(size == data.length / 4){ resize(data.length / 2); } return t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "E pop();", "E pop();", "E pop();", "public E pop();", "public E pop();", "public E pop();", "public E pop();", "public E pop();", "@Override\r\n\tpublic E pop() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic E pop() {\n\t\treturn null;\n\t}", "public Object pop();", "public abstract Object...
[ "0.7724729", "0.7724729", "0.7724729", "0.7426271", "0.7426271", "0.7426271", "0.7426271", "0.7426271", "0.71454036", "0.7057976", "0.7042716", "0.7028166", "0.70190364", "0.6973848", "0.6933136", "0.6919919", "0.6880284", "0.68555677", "0.6728061", "0.6728061", "0.6728061", ...
0.0
-1
Increases the capacity of this Bag instance, if necessary, to ensure that it can hold at least the number of elements specified by the (size 2 / max) capacity.
@SuppressWarnings("unchecked") private void resize(int newSize){ if(newSize > max){ newSize = max; } T[] newData = (T[])new Object[newSize]; for(int i = 0; i < size; i++){ newData[i] = data[i]; } data = newData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void upgradeCapacity()\r\n\t{\r\n\t\tcapacity++;\r\n\t}", "private void ensureCapacity() {\n if(size() >= (0.75 * data.length)) // size() == curSize\n resize(2 * size());\n }", "private void ensureCapacity(int capacity) {\n\t\t\tif(capacity > elementData.length) {\n\t\t\t\tint newCa...
[ "0.71012104", "0.6894322", "0.6726729", "0.6671077", "0.6662939", "0.6589091", "0.65704143", "0.6549405", "0.6536824", "0.65306294", "0.6523001", "0.6491434", "0.6487604", "0.6483107", "0.64685637", "0.64682364", "0.6463137", "0.6458257", "0.645281", "0.6401187", "0.6370382",...
0.0
-1
Returns the number of elements in this list.
public int size() { return size; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size() {\n\t\tint numElements = 0;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tif (list[i] != null) {\n\t\t\t\tnumElements++;\n\t\t\t}\n\t\t}\n\t\treturn numElements;\n\t}", "public int size() {\n\n return elements.size();\n }", "public int getNumOfElements() {\n return numOfE...
[ "0.8677096", "0.8280383", "0.8222116", "0.82162225", "0.82139766", "0.81993234", "0.81883305", "0.81627643", "0.81318974", "0.80988413", "0.8083773", "0.8065953", "0.8053588", "0.8042881", "0.80384266", "0.80259615", "0.8022644", "0.8017002", "0.80145574", "0.80140394", "0.80...
0.0
-1
Returns true if this list contains no elements.
public boolean isEmpty() { return size == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEmpty() {\n\t\treturn elements.isEmpty();\n\t}", "public boolean containsNoItems() {\n\t\treturn (this.items.size() == 0);\n\t}", "public boolean isEmpty() {\n\n return elements.isEmpty();\n }", "public boolean isEmpty()\n\t{\n\t\treturn m_elements.isEmpty();\n\t}", "public boole...
[ "0.84087664", "0.8346983", "0.83342427", "0.8312622", "0.8307931", "0.829908", "0.8270244", "0.8270222", "0.81980926", "0.819705", "0.8183321", "0.8180446", "0.8162331", "0.8162217", "0.8131349", "0.8124244", "0.811533", "0.8091364", "0.8088081", "0.808332", "0.808332", "0....
0.7849484
81
Set the DAO to focus the user object and remember their information.
void accountSet(boolean admin, String username, String password, String fName, String lName, int accountId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startFocus(int userId) {\n\t\tlog.fine(\"Setting focus to user: \" + userId);\n\t\tthis.placeTime = 0;\n\t\tthis.focusTime = Calendar.getInstance().getTimeInMillis();\n\t\tthis.focused = true;\n\t\tthis.userId = userId;\n\t}", "public MoveCursorToHome ( CTEUser user ) {\n _user = user;\n }"...
[ "0.651864", "0.60895956", "0.6082992", "0.602699", "0.59787834", "0.59471357", "0.5804441", "0.5788589", "0.5687347", "0.56840575", "0.5681402", "0.5653996", "0.56365883", "0.5622579", "0.56178814", "0.561346", "0.5610937", "0.5594924", "0.5577111", "0.55716884", "0.55559033"...
0.0
-1
check if element entered has a duplicate on the same row
public static boolean isValid(int[][] sudokuArray, int row, int col, int element, SudokuCell[][] sudokuCells){ boolean result = true; //check if there is duplicate in row for (int j=0; j<9; j++){ if (j==col) continue; else{ if (element == sudokuArray[row][j]) { sudokuCells[row][j].setForeground(new Color(200,25,85)); result = false; } } } //check if there is duplicate in column for (int i=0; i<9; i++){ if (i==row) continue; else{ if (element == sudokuArray[i][col]) { sudokuCells[i][col].setForeground(new Color(200,25,85)); result = false; } } } //check if there is duplicate in 3x3 sub Matrix for (int i = row / 3 * 3; i < row / 3 * 3 + 3; i++){ for (int j = col / 3 * 3; j < col / 3 * 3 + 3; j++){ if ((i==row) && (j==col)) continue; else { if (element == sudokuArray[i][j]) { sudokuCells[i][j].setForeground(new Color(200,25,85)); result = false; } }//end else }//end for j }//end for i return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasAnyRepeatedElement(List<Integer> row) {\n List<Integer> copyRow = new ArrayList<>(row);\n Collections.sort(copyRow);\n for (int i = 0; i < copyRow.size(); i++) {\n if(!isLastElement(i, copyRow)) {\n int current = copyRow.get(i);\n int...
[ "0.73230594", "0.7020057", "0.6857227", "0.67883795", "0.6622724", "0.65762293", "0.6570162", "0.6565813", "0.6548696", "0.65260804", "0.6465142", "0.635461", "0.6343648", "0.6272622", "0.623545", "0.62329406", "0.6215511", "0.62016034", "0.61918277", "0.615426", "0.615159", ...
0.5736405
59
check if all inputs are valid
public static void isSolutionComplete(boolean[][] flag) { boolean indivFlag = true; for(int i = 0; i < 9; ++i) { for(int j = 0; j < 9; ++j) { if(flag[i][j] == false) { indivFlag = false; } } } if(indivFlag == true) { JOptionPane.showMessageDialog(null, "You finished the game"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isInputValid() {\n return true;\n }", "private boolean isAllInputValid() {\n for (Map.Entry<EditText, Validator> e : mValidators.entrySet()) {\n if (e.getKey().isEnabled()) {\n if (!e.getValue().test(e.getKey().getText().toString()))\n ...
[ "0.75028336", "0.7384642", "0.7357386", "0.7296779", "0.72386163", "0.71636164", "0.71323377", "0.71034104", "0.7050248", "0.7049321", "0.7047115", "0.6990582", "0.69815266", "0.6971187", "0.69334453", "0.6915761", "0.6853265", "0.6770632", "0.6765855", "0.674536", "0.6739873...
0.0
-1
Starts the global search activity. / package
void startGlobalSearch(String initialQuery, boolean selectInitialQuery, Bundle appSearchData, Rect sourceBounds) { ComponentName globalSearchActivity = getGlobalSearchActivity(); if (globalSearchActivity == null) { Log.w(TAG, "No global search activity found."); return; } Intent intent = new Intent(INTENT_ACTION_GLOBAL_SEARCH); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setComponent(globalSearchActivity); // Make sure that we have a Bundle to put source in if (appSearchData == null) { appSearchData = new Bundle(); } else { appSearchData = new Bundle(appSearchData); } // Set source to package name of app that starts global search, if not set already. if (!appSearchData.containsKey("source")) { appSearchData.putString("source", mContext.getPackageName()); } intent.putExtra(APP_DATA, appSearchData); if (!TextUtils.isEmpty(initialQuery)) { intent.putExtra(QUERY, initialQuery); } if (selectInitialQuery) { intent.putExtra(EXTRA_SELECT_QUERY, selectInitialQuery); } intent.setSourceBounds(sourceBounds); try { if (DBG) Log.d(TAG, "Starting global search: " + intent.toUri(0)); mContext.startActivity(intent); } catch (ActivityNotFoundException ex) { Log.e(TAG, "Global search activity not found: " + globalSearchActivity); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH)...
[ "0.6837509", "0.67504585", "0.6746286", "0.67417693", "0.6737426", "0.66726595", "0.66208893", "0.65841293", "0.64720535", "0.64601606", "0.6367364", "0.63607085", "0.6332057", "0.63269395", "0.627959", "0.6276142", "0.6269557", "0.625126", "0.62314606", "0.623099", "0.622072...
0.7318339
0
Returns a list of installed apps that handle the global search intent.
public List<ResolveInfo> getGlobalSearchActivities() { try { return mService.getGlobalSearchActivities(); } catch (RemoteException ex) { throw ex.rethrowFromSystemServer(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Observable<List<AppDetail>> getAllInstalledApps() {\n return ObservableUtils.from(() -> {\n Intent i = new Intent(Intent.ACTION_MAIN, null);\n i.addCategory(Intent.CATEGORY_LAUNCHER);\n Context context = AppPreferences.getApplicationContext();\n PackageMana...
[ "0.7260527", "0.7259051", "0.71186316", "0.673377", "0.67009914", "0.6698031", "0.6609706", "0.65207547", "0.65090984", "0.65073806", "0.6494959", "0.6416175", "0.6271459", "0.6234583", "0.6091737", "0.6046168", "0.5990536", "0.5913217", "0.5899112", "0.586926", "0.5865841", ...
0.67041475
4
Gets the name of the global search activity.
public ComponentName getGlobalSearchActivity() { try { return mService.getGlobalSearchActivity(); } catch (RemoteException ex) { throw ex.rethrowFromSystemServer(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ComponentName getGlobalSearchActivity() {\n return getSearchables(UserHandle.getCallingUserId()).getGlobalSearchActivity();\n }", "public ComponentName getWebSearchActivity() {\n return getSearchables(UserHandle.getCallingUserId()).getWebSearchActivity();\n }", "public String getSear...
[ "0.84370816", "0.69761544", "0.6389428", "0.6015595", "0.59505403", "0.5901155", "0.57402784", "0.56516635", "0.56102973", "0.5591846", "0.55038905", "0.54261726", "0.541345", "0.54093146", "0.5352278", "0.5341021", "0.53390455", "0.5323023", "0.5304615", "0.5261935", "0.5259...
0.8068994
1
Determine if the Search UI is currently displayed. This is provided primarily for application test purposes.
@UnsupportedAppUsage public boolean isVisible() { return mSearchDialog == null? false : mSearchDialog.isShowing(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isDisplayed();", "boolean isNilSearchWindowStart();", "boolean isDisplayed();", "public boolean isSearchButtonActivated() {\n\t\tboolean result;\n\t\tlog.debug(\"Getting window handles\");\n\t\tArrayList<String> tabs1 = new ArrayList<String>(\n\t\t\t\tdriver.getWindowHandles());\n\t\tlog.debug...
[ "0.69289327", "0.6835863", "0.67682004", "0.6733711", "0.67096114", "0.66920435", "0.6634201", "0.64989847", "0.6478258", "0.6373548", "0.6348708", "0.6348708", "0.62811553", "0.62769175", "0.6214483", "0.62122494", "0.6199707", "0.6174226", "0.61677897", "0.61506224", "0.614...
0.7380267
0
Gets information about a searchable activity.
public SearchableInfo getSearchableInfo(ComponentName componentName) { try { return mService.getSearchableInfo(componentName); } catch (RemoteException ex) { throw ex.rethrowFromSystemServer(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SearchableInfo getSearchableInfo(final ComponentName launchActivity) {\n if (launchActivity == null) {\n Log.e(TAG, \"getSearchableInfo(), activity == null\");\n return null;\n }\n return getSearchables(UserHandle.getCallingUserId()).getSearchableInfo(launchActivit...
[ "0.6984652", "0.6044886", "0.5897181", "0.5892441", "0.5866103", "0.58549917", "0.5829955", "0.5719927", "0.5674005", "0.55711764", "0.556775", "0.55082417", "0.5485308", "0.547034", "0.54639214", "0.54370356", "0.53023624", "0.5252992", "0.5235657", "0.522987", "0.52241516",...
0.59471303
2
Gets a cursor with search suggestions.
@UnsupportedAppUsage public Cursor getSuggestions(SearchableInfo searchable, String query) { return getSuggestions(searchable, query, -1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Data<List<Boards>> getSearchBoardsCursor(String query, String cursor);", "@GET(\"w/api.php?action=opensearch&format=json&suggest&redirects=resolve\")\n Call<JsonElement> getSuggestionsFromSearch(@Query(\"search\") String search);", "@Override\n public IDataCursor getCursor() {\n return new CaseIns...
[ "0.620836", "0.6025091", "0.5971496", "0.59299886", "0.58824396", "0.5850794", "0.5846566", "0.58321655", "0.58223414", "0.5811566", "0.5767217", "0.56801593", "0.5614468", "0.55897737", "0.5576769", "0.5559944", "0.5487054", "0.5451712", "0.5447857", "0.5391505", "0.5389255"...
0.68412286
0
Returns a list of the searchable activities that can be included in global search.
public List<SearchableInfo> getSearchablesInGlobalSearch() { try { return mService.getSearchablesInGlobalSearch(); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<ResolveInfo> getGlobalSearchActivities() {\n try {\n return mService.getGlobalSearchActivities();\n } catch (RemoteException ex) {\n throw ex.rethrowFromSystemServer();\n }\n }", "public List<SearchableInfo> getSearchablesInGlobalSearch() {\n retur...
[ "0.7482706", "0.7254321", "0.65229917", "0.603896", "0.58089167", "0.57527095", "0.56400484", "0.5616313", "0.5612869", "0.5558956", "0.55428433", "0.5527764", "0.55113935", "0.54920065", "0.5445743", "0.54432213", "0.5408713", "0.5403989", "0.5371332", "0.5359579", "0.535185...
0.6656387
2
Gets an intent for launching installed assistant activity, or null if not available.
public Intent getAssistIntent(boolean inclContext) { try { Intent intent = new Intent(Intent.ACTION_ASSIST); if (inclContext) { IActivityTaskManager am = ActivityTaskManager.getService(); Bundle extras = am.getAssistContextExtras(ActivityManager.ASSIST_CONTEXT_BASIC); if (extras != null) { intent.replaceExtras(extras); } } return intent; } catch (RemoteException re) { throw re.rethrowFromSystemServer(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.cloud.dialogflow.cx.v3.Intent getIntent();", "@Nullable\n public Intent getIntent() {\n return mPrimaryIntent;\n }", "public Intent getIntent() {\n return mIntent;\n }", "protected abstract Intent getIntent();", "public Intent getIntent() {\n return mIntent;\n }", ...
[ "0.6924155", "0.64020383", "0.6391396", "0.636808", "0.63326323", "0.62736934", "0.5904139", "0.58878285", "0.56708825", "0.56688124", "0.56158626", "0.5576025", "0.5566141", "0.5522089", "0.549331", "0.54325354", "0.53932816", "0.53853786", "0.5361362", "0.5359303", "0.53568...
0.64405453
1
POST /semesters > Create a new semester.
@RequestMapping(value = "/semesters", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public ResponseEntity<Semester> create(@Valid @RequestBody Semester semester) throws URISyntaxException { log.debug("REST request to save Semester : {}", semester); if (semester.getId() != null) { return ResponseEntity.badRequest().header("Failure", "A new semester cannot already have an ID").body(null); } Semester result = semesterRepository.save(semester); return ResponseEntity.created(new URI("/api/semesters/" + result.getId())) .headers(HeaderUtil.createEntityCreationAlert("semester", result.getId().toString())) .body(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Result addSemester() {\n\t\tUser user = Application.getLoggedUser();\n\t\tif (user == null || user.userType != UserType.ADMIN) {\n\t\t\treturn unauthorized(message.render(\"Please log in to the system as administrator\"));\n\t\t}\n\t\tForm<Semester> semesterForm = Form.form(Semester.class);\n\t\tFormatters....
[ "0.7755138", "0.6887855", "0.68503845", "0.6566422", "0.65055585", "0.6375319", "0.5856172", "0.57483923", "0.57008", "0.5637228", "0.5574794", "0.5517569", "0.5513656", "0.5504903", "0.54784125", "0.5458466", "0.5441265", "0.5398596", "0.53885746", "0.5376214", "0.53513944",...
0.81316113
0
PUT /semesters > Updates an existing semester.
@RequestMapping(value = "/semesters", method = RequestMethod.PUT, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public ResponseEntity<Semester> update(@Valid @RequestBody Semester semester) throws URISyntaxException { log.debug("REST request to update Semester : {}", semester); if (semester.getId() == null) { return create(semester); } Semester result = semesterRepository.save(semester); return ResponseEntity.ok() .headers(HeaderUtil.createEntityUpdateAlert("semester", semester.getId().toString())) .body(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = {\"/updatesemester\",\"/editsemesterform/updatesemester\"}, method = RequestMethod.POST)\r\n public RedirectView updateSemester(HttpServletRequest request,final RedirectAttributes redirectAttributes) throws ParseException {\n \r\n String semesterName = request.getParameter...
[ "0.63283694", "0.6231172", "0.6217908", "0.61542237", "0.59483165", "0.5865076", "0.58278525", "0.5720703", "0.5719791", "0.5561092", "0.5501866", "0.5489733", "0.54629344", "0.5422487", "0.54214525", "0.52484", "0.52192944", "0.518297", "0.5158103", "0.5148218", "0.5117537",...
0.8285275
0
GET /semesters > get all the semesters.
@RequestMapping(value = "/semesters", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public List<Semester> getAll() { log.debug("REST request to get all Semesters"); return semesterRepository.findAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Result allSemesters(){\n\t\tUser user = Application.getLoggedUser();\n\t\tif (user == null || user.userType != UserType.ADMIN) {\n\t\t\treturn unauthorized(message.render(\"Please log in to the system as administrator\"));\n\t\t}\n\t\ttry{\n\t\t\tList<Semester> sems = SemesterDB.allSemesters();\n\t\t\t\n\t\...
[ "0.7965175", "0.6951743", "0.6309679", "0.62079847", "0.60979694", "0.6033435", "0.59977925", "0.5863046", "0.58472437", "0.58126706", "0.56933796", "0.5678057", "0.56599826", "0.55988795", "0.55848485", "0.5563381", "0.5556604", "0.5533001", "0.5529687", "0.5519883", "0.5516...
0.74628353
1
GET /semesters/:id > get the "id" semester.
@RequestMapping(value = "/semesters/{id}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public ResponseEntity<Semester> get(@PathVariable Long id) { log.debug("REST request to get Semester : {}", id); return Optional.ofNullable(semesterRepository.findOne(id)) .map(semester -> new ResponseEntity<>( semester, HttpStatus.OK)) .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = {\"/semesters/{id}\", \"/user/semesters/{id}\"}, method = RequestMethod.GET)\r\n public ModelAndView get(@PathVariable Long id, Model model) {\n ModelAndView view = new ModelAndView(\"semesters/semesterDetail\");\r\n SemesterEntity semesterEntity = semesterService.getSemest...
[ "0.756206", "0.7464778", "0.6872683", "0.6753399", "0.665389", "0.65513384", "0.6516405", "0.6498629", "0.6333184", "0.6267999", "0.6156649", "0.6154165", "0.61267287", "0.61097986", "0.60915434", "0.60861754", "0.59798384", "0.59667706", "0.5962058", "0.5956747", "0.58516735...
0.8253784
0
DELETE /semesters/:id > delete the "id" semester.
@RequestMapping(value = "/semesters/{id}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE) @Timed public ResponseEntity<Void> delete(@PathVariable Long id) { log.debug("REST request to delete Semester : {}", id); semesterRepository.delete(id); return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert("semester", id.toString())).build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = {\"/removesemester/{id}\", \"/semesters/removesemester/{id}\"}, method = RequestMethod.GET)\r\n public ModelAndView removeSemester(@PathVariable Long id, Model model) throws ParseException {\n try{\r\n semesterService.removeSemester(id);\r\n return getSemesters(null)...
[ "0.77283216", "0.6925487", "0.69197696", "0.68554944", "0.66613466", "0.66245943", "0.6614192", "0.65797055", "0.6552816", "0.6505295", "0.6505173", "0.6445014", "0.64286876", "0.63601774", "0.63429475", "0.6337762", "0.63131773", "0.6287179", "0.62840426", "0.6252417", "0.62...
0.8336036
0
Write code here that turns the phrase above into concrete actions
@Then("^verify mailSent on the SentMails Page$") public void verify_mailSent_on_the_SentMails_Page() throws Throwable { Log.info("Verifying send mail details are visible successfully on the Sent mail page"); sentMailsPage.mailSentVisible(); sentMailsPage.mailSentDetails(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected String performAction(String input);", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}", "protected abstract Action stringToAction(String stringAction);", "@Override\n\tpublic void action() {\n\n\t}", "priv...
[ "0.6989324", "0.64658433", "0.6398834", "0.6353149", "0.63501525", "0.633518", "0.63232154", "0.63232154", "0.63232154", "0.6317274", "0.62379014", "0.61738145", "0.61690307", "0.61507595", "0.6110593", "0.6071837", "0.6065073", "0.6061467", "0.6035597", "0.6035597", "0.60355...
0.0
-1
hset key field value
@Test public void hset(){ User user = new User("1","xz","11","男") ; String key = "user:"+user.getId() ; jedis.hset(key,"name",user.getName()) ; jedis.hset(key,"age",user.getAge()) ; jedis.hset(key,"sex",user.getSex()) ; System.out.println(jedis.hget(key,"name")); System.out.println(jedis.hget(key,"name")); System.out.println(jedis.hget(key,"name")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean hset(final String key, final String field, final Object value) {\n return hset(key, field, value, 0);\n }", "public Boolean hset(final String key, final String field, final String value) {\n return hset(key, field, value, 0);\n }", "void set(String key, Object value);", "HS...
[ "0.6767668", "0.66280514", "0.64058864", "0.64008737", "0.6364426", "0.614995", "0.6124723", "0.59363997", "0.59307975", "0.5864794", "0.5803266", "0.5786072", "0.5768398", "0.57277006", "0.5716815", "0.5700064", "0.5680381", "0.5675158", "0.56735057", "0.56204224", "0.560597...
0.6402015
3
hmset key field value [field value]
@Test public void hmset(){ User user1 = new User("1","xz1","11","男") ; User user2 = new User("2","xz2","22","男") ; String key1 = "user:"+user1.getId() ; String key2 = "user:"+user2.getId() ; Pipeline pipeline = jedis.pipelined() ; pipeline.hdel(key1,"name","age","sex") ; pipeline.hdel(key2,"name","age","sex") ; pipeline.hmset(key1,user1.toMap()) ; pipeline.hmset(key2,user2.toMap()) ; pipeline.hmget(key1,"name","age","sex"); pipeline.hmget(key2,"name","age","sex"); System.out.println(pipeline.syncAndReturnAll()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean hset(final String key, final String field, final Object value) {\n return hset(key, field, value, 0);\n }", "public Boolean hset(final String key, final String field, final String value) {\n return hset(key, field, value, 0);\n }", "void set(String key, Object value);", "vo...
[ "0.6596944", "0.65782905", "0.6396245", "0.6273921", "0.6256414", "0.61719453", "0.60864156", "0.60163736", "0.59570855", "0.59567446", "0.5951907", "0.5948742", "0.5937189", "0.5886801", "0.5885648", "0.58737105", "0.5824229", "0.58154356", "0.57813627", "0.57400775", "0.573...
0.62030536
5
channel = NetworkRegistry.ChannelBuilder.named(CHANNEL_NAME) .serverAcceptedVersions(s>true) .clientAcceptedVersions(s>true) .networkProtocolVersion( ()>PROTOCOL_VERSION).simpleChannel();
public static void register () { channel = NetworkRegistry.newSimpleChannel(CHANNEL_NAME, ()->PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals); cprCartSchedule.register(); cprStationOrders.register(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SocketChannel getChannel();", "public int GetChannel();", "@Test\n\tpublic void testGetChannel() {\n\t}", "java.lang.String getChannel();", "@Test\n public void channelTest() {\n // TODO: test channel\n }", "EzyChannel getChannel();", "Channel channel() {\n return channel;\n }", "@Ov...
[ "0.60400856", "0.59495264", "0.57760674", "0.5771577", "0.5769175", "0.57404417", "0.5719913", "0.5711878", "0.57098216", "0.56646234", "0.56644964", "0.5655274", "0.56391245", "0.5616698", "0.56099135", "0.55881864", "0.55863655", "0.55669856", "0.55576766", "0.55557364", "0...
0.5451454
26
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println(nQueens(10)); }
{ "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 static void main(String[] args) { Customer obCustomer =new Customer("C123","Rajib","Silver"); System.out.println("Customer ID :"+obCustomer.getCustNo()); System.out.println("Customer Name :"+obCustomer.getCustName()); System.out.println("Category :"+obCustomer.getCategory()); }
{ "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
Retourne l'id de l'utilisateur
public int getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getIduser() {\n return iduser;\n }", "public int getIdUser() {\n return idUser;\n }", "public int getIdUser() {\n return idUser;\n }", "Integer getUserId();", "public Long getUserID() {\n Authentication authentication = SecurityContextHolder.getContext().getA...
[ "0.7617546", "0.76044923", "0.76044923", "0.746481", "0.7433701", "0.7339376", "0.7326727", "0.7326727", "0.7288165", "0.7288165", "0.72676575", "0.7266243", "0.7266243", "0.7266243", "0.7266243", "0.7221978", "0.7221978", "0.7221978", "0.7221978", "0.7221978", "0.7221978", ...
0.0
-1
Retourne l'adresse email de l'utilisateur
public String getEmail() { return email; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getUserEmail();", "String getUserMail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "private String getUserEmailAddress() {\n\t\tUs...
[ "0.85571194", "0.8246705", "0.80810845", "0.80810845", "0.80810845", "0.80810845", "0.80810845", "0.80810845", "0.79952615", "0.78122187", "0.7793602", "0.7793602", "0.7793602", "0.7793602", "0.7793602", "0.77285016", "0.77282435", "0.77282435", "0.7708008", "0.76953363", "0....
0.7235278
95
Retourne le mot de passe de l'utilisateur
public String getMdp() { return mdp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUserPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "public java.lang.String g...
[ "0.7732329", "0.75728697", "0.75728697", "0.75728697", "0.75728697", "0.75728697", "0.75728697", "0.75728697", "0.7502335", "0.74696636", "0.7452835", "0.7452835", "0.7452835", "0.7452835", "0.7452835", "0.7452835", "0.7452835", "0.7452835", "0.7452835", "0.7369528", "0.73403...
0.0
-1
Retourne le nom de l'utilisateur.
public String getNom() { return nom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public static String getUserDisplayName() {\r\n return getUsername();\r\n }", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "ja...
[ "0.7997388", "0.7997388", "0.7997388", "0.78529555", "0.7705341", "0.7705341", "0.7705341", "0.7705341", "0.7705341", "0.7705341", "0.7705341", "0.7705341", "0.7705341", "0.7644023", "0.7644023", "0.7626085", "0.76218146", "0.76218146", "0.7601129", "0.75449884", "0.75367343"...
0.0
-1
/ String District=""; String Upazilla=""; String Unions=""; String Mouza=""; String Village=""; String ZIlLAID=""; String UpazilaId=""; String UNIONID=""; String MOUZAID=""; String VILLAGEID="";
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); try { setContentView(R.layout.nrc); C = new Connection(this); g = Global.getInstance(); StartTime = g.CurrentTime24(); TableName = "ClientMap"; //ClientMap cMap = new ClientMap(); // String id = cMap.getName() + cMap.getFatherName() +cMap.getZillaId()+cMap.getUpazilaId()+cMap.getUnionId()+cMap.getMouzaId()+cMap.getVillageId(); seclblepireg = (LinearLayout) findViewById(R.id.seclblepireg); secDiv = (LinearLayout) findViewById(R.id.secDiv); VlblDiv = (TextView) findViewById(R.id.VlblDiv); spnDiv = (Spinner) findViewById(R.id.spnDiv); spnDiv.setAdapter(C.getArrayAdapter("select id||'-'||division DistName from Division order by id")); spnDiv.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) { // spnUpazilla.setAdapter(C.getArrayAdapter("Select ' ' UPAZILAName from UPAZILA union select UpazilaId||'-'||UPAZILANAMEENG UPAZILAName from UPAZILA where ZIlLAID='"+ Global.Left(spnDistrict.getSelectedItem().toString(),2) +"'")); spnDistrict.setAdapter(C.getArrayAdapter("select ZIlLAID||'-'||ZILLANAMEENG DistName from Zilla where DIVID='" + Global.Left(spnDiv.getSelectedItem().toString(), 2) + "'"));// Global.Left(spnDiv.getSelectedItem().toString(),2) spnDistrict.setSelection(DivzillaSelect("zilla")); } @Override public void onNothingSelected(AdapterView<?> parentView) { // your code here } }); secDistrict = (LinearLayout) findViewById(R.id.secDistrict); VlblDistrict = (TextView) findViewById(R.id.VlblDistrict); spnDistrict = (Spinner) findViewById(R.id.spnDistrict); spnDistrict.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) { spnUpazilla.setAdapter(C.getArrayAdapter("Select ' ' UPAZILAName from UPAZILA union select substr('0' || UpazilaId, -2, 2)||'-'||UPAZILANAMEENG UPAZILAName from UPAZILA where ZIlLAID='" + Global.Left(spnDistrict.getSelectedItem().toString(), 2) + "'")); //spnDCode.setSelection(DivUpazilaUnionSelect("DCode")); //spnUpazilla.setSelection(DivUpazilaUnionSelect("union")); } @Override public void onNothingSelected(AdapterView<?> parentView) { // your code here } }); secUpazilla = (LinearLayout) findViewById(R.id.secUpazilla); VlblUpazilla = (TextView) findViewById(R.id.VlblUpazilla); spnUpazilla = (Spinner) findViewById(R.id.spnUpazilla); spnUpazilla.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) { spnUnion.setAdapter(C.getArrayAdapter("Select ' ' UnionsName from Unions union select substr('0' || UNIONID, -2, 2)||'-'||UNIONNAMEENG UnionsName from Unions where ZIlLAID='" + Global.Left(spnDistrict.getSelectedItem().toString(), 2) + "' and UpazilaId='" + Global.Left(spnUpazilla.getSelectedItem().toString(), 2) + "'")); // } @Override public void onNothingSelected(AdapterView<?> parentView) { // your code here } }); secUnion = (LinearLayout) findViewById(R.id.secUnion); VlblUnion = (TextView) findViewById(R.id.VlblUnion); spnUnion = (Spinner) findViewById(R.id.spnUnion); spnUnion.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) { spnMouza.setAdapter(C.getArrayAdapter("Select ' ' MOUZAIDName from Mouza union select MOUZAID||'-'||MOUZANAMEENG MOUZAIDName from Mouza where ZIlLAID='" + Global.Left(spnDistrict.getSelectedItem().toString(), 2) + "' and UpazilaId='" + Global.Left(spnUpazilla.getSelectedItem().toString(), 2) + "' and UNIONID='" + Global.Left(spnUnion.getSelectedItem().toString(), 2) + "'")); // spnMouza.setSelection(DivUpazilaUnionSelect("mouza")); } @Override public void onNothingSelected(AdapterView<?> parentView) { // your code here } }); secMouza = (LinearLayout) findViewById(R.id.secMouza); VlblMouza = (TextView) findViewById(R.id.VlblMouza); spnMouza = (Spinner) findViewById(R.id.spnMouza); spnMouza.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) { spnVillage.setAdapter(C.getArrayAdapter("Select ' ' VillageName from Village union select substr('0' || VILLAGEID, -2, 2)||'-'||VILLAGENAMEENG VillageName from Village where ZIlLAID='" + Global.Left(spnDistrict.getSelectedItem().toString(), 2) + "' and UPAZILAID='" + Global.Left(spnUpazilla.getSelectedItem().toString(), 2) + "' and UNIONID='" + Global.Left(spnUnion.getSelectedItem().toString(), 2) + "'")); // spnVillage.setSelection(DivUpazilaUnionSelect("villageId")); } @Override public void onNothingSelected(AdapterView<?> parentView) { // your code here } }); secVillage = (LinearLayout) findViewById(R.id.secVillage); VlblVillage = (TextView) findViewById(R.id.VlblVillage); // txtVillage=(EditText) findViewById(R.id.txtVillage); spnVillage = (Spinner) findViewById(R.id.spnVillage); secBari = (LinearLayout) findViewById(R.id.secBari); VlblBari = (TextView) findViewById(R.id.VlblBari); txtBari = (EditText) findViewById(R.id.txtBari); txtBari.setText(g.getHouseholdNo()); //txtBari.setEnabled(false); /* secregisNo=(LinearLayout)findViewById(R.id.secregisNo); VlblregisNo=(TextView) findViewById(R.id.VlblregisNo); txtregisNo=(EditText) findViewById(R.id.txtregisNo); secregDate=(LinearLayout)findViewById(R.id.secregDate); VlblregDate=(TextView) findViewById(R.id.VlblregDate); dtpregDate=(EditText) findViewById(R.id.dtpregDate);*/ seccName = (LinearLayout) findViewById(R.id.seccName); VlblcName = (TextView) findViewById(R.id.VlblcName); txtcName = (EditText) findViewById(R.id.txtcName); secfName = (LinearLayout) findViewById(R.id.secfName); VlblfName = (TextView) findViewById(R.id.VlblfName); txtfName = (EditText) findViewById(R.id.txtfName); secmName = (LinearLayout) findViewById(R.id.secmName); VlblmName = (TextView) findViewById(R.id.VlblmName); txtmName = (EditText) findViewById(R.id.txtmName); txthusName = (EditText) findViewById(R.id.txthusName); secsex = (LinearLayout) findViewById(R.id.secsex); Vlblsex = (TextView) findViewById(R.id.Vlblsex); rdogrpsex = (RadioGroup) findViewById(R.id.rdogrpsex); rdosex1 = (RadioButton) findViewById(R.id.rdosex1); rdosex2 = (RadioButton) findViewById(R.id.rdosex2); secmobileNo = (LinearLayout) findViewById(R.id.secmobileNo); VlblmobileNo = (TextView) findViewById(R.id.VlblmobileNo); txtmobileNo = (EditText) findViewById(R.id.txtmobileNo); secdob = (LinearLayout) findViewById(R.id.secdob); Vlbldob = (TextView) findViewById(R.id.Vlbldob); dtpdob = (EditText) findViewById(R.id.dtpdob); secage = (LinearLayout) findViewById(R.id.secage); Vlblage = (TextView) findViewById(R.id.Vlblage); Vlblage1 = (TextView) findViewById(R.id.Vlblage1); txtage = (EditText) findViewById(R.id.txtage); /* btnregDate = (ImageButton) findViewById(R.id.btnregDate); btnregDate.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { VariableID = "btnregDate"; showDialog(DATE_DIALOG); }});*/ btndob = (ImageButton) findViewById(R.id.btndob); btndob.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { VariableID = "btndob"; showDialog(DATE_DIALOG); } }); // DataSearch(g.getHealthID()); Button cmdSave = (Button) findViewById(R.id.cmdSave); cmdSave.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { if (C.ReturnSingleValue("Select generatedId from clientMap where generatedId='" + g.getHealthID() + "'").equalsIgnoreCase(g.getHealthID())) { DataUpdate(); } else { DataSave(); } } }); } catch (Exception e) { Connection.MessageBox(nrc.this, e.getMessage()); return; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDistrict(int district) { this.district = district; }", "public String getDistrict() {\r\n return district;\r\n }", "public String getDistrict() {\r\n return district;\r\n }", "private void populaUnidade()\n {\n Unidade unidade = new Unidade(\"Unidade Santo Amaro\"...
[ "0.55656826", "0.5479297", "0.5479297", "0.5477479", "0.54459697", "0.54210275", "0.5406283", "0.5404384", "0.5403175", "0.53610855", "0.5355008", "0.53071624", "0.52954227", "0.52941924", "0.52847624", "0.52717227", "0.5252465", "0.52334404", "0.52287424", "0.5223212", "0.51...
0.5306828
12
spnUpazilla.setAdapter(C.getArrayAdapter("Select ' ' UPAZILAName from UPAZILA union select UpazilaId||''||UPAZILANAMEENG UPAZILAName from UPAZILA where ZIlLAID='"+ Global.Left(spnDistrict.getSelectedItem().toString(),2) +"'"));
@Override public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) { spnDistrict.setAdapter(C.getArrayAdapter("select ZIlLAID||'-'||ZILLANAMEENG DistName from Zilla where DIVID='" + Global.Left(spnDiv.getSelectedItem().toString(), 2) + "'"));// Global.Left(spnDiv.getSelectedItem().toString(),2) spnDistrict.setSelection(DivzillaSelect("zilla")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tampil_siswa(){\n try {\n Connection con = conek.GetConnection();\n Statement stt = con.createStatement();\n String sql = \"select id from nilai order by id asc\"; // disini saya menampilkan NIM, anda dapat menampilkan\n ResultSet res = stt.executeQuery(sql); ...
[ "0.62538105", "0.61591583", "0.5985794", "0.5983645", "0.59571266", "0.5909233", "0.58848125", "0.5796619", "0.57716686", "0.5759468", "0.5738263", "0.5725277", "0.5711864", "0.57112277", "0.57046413", "0.56888044", "0.56727207", "0.5648135", "0.5641352", "0.5615133", "0.5598...
0.7103559
0
The target Drive item. The format is `items/ITEM_ID`. string name = 1;
java.lang.String getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setItemName(String itemName) {\n this.itemName = itemName;\n }", "public void setItemName(String itemName) {\n this.itemName = itemName;\n }", "public String getItemName()\n {\n return itemName;\n }", "public Item getItem(final String pItem){return this.aItemsList.getItem...
[ "0.59740674", "0.59740674", "0.59215677", "0.5801526", "0.57601696", "0.57601696", "0.57601696", "0.5758956", "0.5728088", "0.5718184", "0.5718184", "0.5718184", "0.5718184", "0.5718184", "0.5681223", "0.5657517", "0.5655868", "0.5653545", "0.5648114", "0.56389755", "0.563634...
0.0
-1
The target Drive item. The format is `items/ITEM_ID`. string name = 1;
com.google.protobuf.ByteString getNameBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setItemName(String itemName) {\n this.itemName = itemName;\n }", "public void setItemName(String itemName) {\n this.itemName = itemName;\n }", "public String getItemName()\n {\n return itemName;\n }", "public Item getItem(final String pItem){return this.aItemsList.getItem...
[ "0.59740674", "0.59740674", "0.59215677", "0.5801526", "0.57601696", "0.57601696", "0.57601696", "0.5758956", "0.5728088", "0.5718184", "0.5718184", "0.5718184", "0.5718184", "0.5718184", "0.5681223", "0.5657517", "0.5655868", "0.5653545", "0.5648114", "0.56389755", "0.563634...
0.0
-1
The title of the Drive item. string title = 2;
java.lang.String getTitle();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getItemTitle() {\n\t return this.itemTitle;\n\t}", "public String getTitle()\n {\n return \"Booking Line Items\";\n }", "public String getTitle()\r\n\t{\r\n\t\treturn TITLE;\r\n\t}", "String get_title()\n {\n return title;\n }", "@DISPID(-2147418043)\n @PropGet\n...
[ "0.70699656", "0.7034049", "0.6768221", "0.6751055", "0.6729181", "0.6719256", "0.6717753", "0.6717753", "0.6710383", "0.66850716", "0.66806954", "0.66789997", "0.66716194", "0.66635585", "0.66635585", "0.66488385", "0.66394025", "0.6637248", "0.6637075", "0.6636284", "0.6627...
0.6660879
19
The title of the Drive item. string title = 2;
com.google.protobuf.ByteString getTitleBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getItemTitle() {\n\t return this.itemTitle;\n\t}", "public String getTitle()\n {\n return \"Booking Line Items\";\n }", "public String getTitle()\r\n\t{\r\n\t\treturn TITLE;\r\n\t}", "String get_title()\n {\n return title;\n }", "@DISPID(-2147418043)\n @PropGet\n...
[ "0.70698106", "0.7034745", "0.6769341", "0.6752556", "0.67301196", "0.67204034", "0.6718988", "0.6718988", "0.6711692", "0.668619", "0.6681995", "0.66801983", "0.6672889", "0.6664749", "0.6664749", "0.66617006", "0.66617006", "0.66617006", "0.66617006", "0.66617006", "0.66500...
0.0
-1
This field is deprecated; please use the `driveFile` field instead. .google.apps.drive.activity.v2.DriveItem.File file = 3 [deprecated = true];
@java.lang.Deprecated boolean hasFile();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.FileOrBuilder getFileOrBuilder();", "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.File getFile();", "com.google.apps.drive.activity.v2.DriveItem.DriveFileOrBuilder getDriveFileOrBuilder();", "com.google.apps.drive.activity...
[ "0.82033753", "0.7813255", "0.76322687", "0.71014714", "0.57942164", "0.575697", "0.5750499", "0.5692504", "0.56505984", "0.56467366", "0.5597227", "0.5586249", "0.55815923", "0.55240923", "0.55218375", "0.5520623", "0.5518755", "0.55112416", "0.5500049", "0.5498978", "0.5494...
0.5137129
67
This field is deprecated; please use the `driveFile` field instead. .google.apps.drive.activity.v2.DriveItem.File file = 3 [deprecated = true];
@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.File getFile();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.FileOrBuilder getFileOrBuilder();", "com.google.apps.drive.activity.v2.DriveItem.DriveFileOrBuilder getDriveFileOrBuilder();", "com.google.apps.drive.activity.v2.DriveItem.DriveFile getDriveFile();", "public File getFile() { return file; }", ...
[ "0.8202563", "0.7629916", "0.70990187", "0.5794343", "0.5756015", "0.57499933", "0.569217", "0.56502247", "0.56462383", "0.5596855", "0.5586508", "0.55818266", "0.5524224", "0.5522188", "0.5520285", "0.55187255", "0.55109614", "0.5500083", "0.54989517", "0.5495114", "0.549511...
0.7812658
1
This field is deprecated; please use the `driveFile` field instead. .google.apps.drive.activity.v2.DriveItem.File file = 3 [deprecated = true];
@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.FileOrBuilder getFileOrBuilder();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.File getFile();", "com.google.apps.drive.activity.v2.DriveItem.DriveFileOrBuilder getDriveFileOrBuilder();", "com.google.apps.drive.activity.v2.DriveItem.DriveFile getDriveFile();", "public File getFile() { return file; }", "@java.lang.Depre...
[ "0.7812614", "0.76303333", "0.71004283", "0.57922465", "0.57584584", "0.5748412", "0.5690894", "0.5648109", "0.564452", "0.5595148", "0.5584503", "0.5580165", "0.5522708", "0.5519819", "0.55193603", "0.5517533", "0.55087614", "0.5498139", "0.5497832", "0.5492802", "0.5492802"...
0.8201873
0
This field is deprecated; please use the `driveFolder` field instead. .google.apps.drive.activity.v2.DriveItem.Folder folder = 4 [deprecated = true];
@java.lang.Deprecated boolean hasFolder();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.FolderOrBuilder getFolderOrBuilder();", "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.Folder getFolder();", "com.google.apps.drive.activity.v2.DriveItem.DriveFolderOrBuilder getDriveFolderOrBuilder();", "com.google.apps.dr...
[ "0.8614789", "0.8354244", "0.8037871", "0.7810311", "0.6745942", "0.65886843", "0.6462885", "0.64604867", "0.6456531", "0.64352083", "0.63864845", "0.63279516", "0.63224185", "0.6294985", "0.61466134", "0.6114038", "0.61035115", "0.6081095", "0.60790324", "0.60551476", "0.601...
0.64426476
9
This field is deprecated; please use the `driveFolder` field instead. .google.apps.drive.activity.v2.DriveItem.Folder folder = 4 [deprecated = true];
@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.Folder getFolder();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.FolderOrBuilder getFolderOrBuilder();", "com.google.apps.drive.activity.v2.DriveItem.DriveFolderOrBuilder getDriveFolderOrBuilder();", "com.google.apps.drive.activity.v2.DriveItem.DriveFolder getDriveFolder();", "public String getFolder() {\r\...
[ "0.8613156", "0.80370116", "0.7810544", "0.67469263", "0.6589898", "0.6463844", "0.64614165", "0.6457134", "0.6440078", "0.6435944", "0.6386835", "0.63290495", "0.6323587", "0.6295865", "0.61473554", "0.611513", "0.61037165", "0.60807806", "0.6079906", "0.6054946", "0.6014179...
0.83535093
1
This field is deprecated; please use the `driveFolder` field instead. .google.apps.drive.activity.v2.DriveItem.Folder folder = 4 [deprecated = true];
@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.FolderOrBuilder getFolderOrBuilder();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.Folder getFolder();", "com.google.apps.drive.activity.v2.DriveItem.DriveFolderOrBuilder getDriveFolderOrBuilder();", "com.google.apps.drive.activity.v2.DriveItem.DriveFolder getDriveFolder();", "public String getFolder() {\r\n retur...
[ "0.8353208", "0.8036972", "0.7809537", "0.67457056", "0.65883213", "0.6462528", "0.6460066", "0.6455663", "0.64415437", "0.64343023", "0.63858575", "0.63277245", "0.63223845", "0.62958544", "0.61463237", "0.6113917", "0.61025417", "0.6080613", "0.60783285", "0.60542667", "0.6...
0.86133766
0
The Drive item is a file. .google.apps.drive.activity.v2.DriveItem.DriveFile drive_file = 8;
boolean hasDriveFile();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.apps.drive.activity.v2.DriveItem.DriveFile getDriveFile();", "com.google.apps.drive.activity.v2.DriveItem.DriveFileOrBuilder getDriveFileOrBuilder();", "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.FileOrBuilder getFileOrBuilder();", "@java.lang.Deprecated com.google.apps.driv...
[ "0.8313323", "0.8194779", "0.7287988", "0.72398514", "0.63977724", "0.60623854", "0.60474074", "0.5948579", "0.5923327", "0.57408917", "0.56095994", "0.5575645", "0.5564136", "0.5522331", "0.5514443", "0.55012804", "0.54939413", "0.54935294", "0.54762715", "0.54440624", "0.54...
0.5767419
9
The Drive item is a file. .google.apps.drive.activity.v2.DriveItem.DriveFile drive_file = 8;
com.google.apps.drive.activity.v2.DriveItem.DriveFile getDriveFile();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.apps.drive.activity.v2.DriveItem.DriveFileOrBuilder getDriveFileOrBuilder();", "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.FileOrBuilder getFileOrBuilder();", "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.File getFile();", "com.google.apps.drive.activity...
[ "0.81956726", "0.72879946", "0.72393847", "0.6398034", "0.606272", "0.6048311", "0.5949131", "0.5923825", "0.57693505", "0.5742109", "0.56096166", "0.55768025", "0.5565167", "0.5522677", "0.5514884", "0.5501549", "0.5494287", "0.5493661", "0.54765356", "0.54442394", "0.544135...
0.8313621
0
The Drive item is a file. .google.apps.drive.activity.v2.DriveItem.DriveFile drive_file = 8;
com.google.apps.drive.activity.v2.DriveItem.DriveFileOrBuilder getDriveFileOrBuilder();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.apps.drive.activity.v2.DriveItem.DriveFile getDriveFile();", "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.FileOrBuilder getFileOrBuilder();", "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.File getFile();", "com.google.apps.drive.activity.v2.DriveItem.Driv...
[ "0.8312467", "0.72875094", "0.72392434", "0.6396982", "0.6061842", "0.6046482", "0.59472203", "0.59223574", "0.5767339", "0.574042", "0.56084967", "0.5575499", "0.55625576", "0.5520785", "0.5512894", "0.549923", "0.5492189", "0.5491359", "0.5474338", "0.54414904", "0.5440257"...
0.81942976
1
The Drive item is a folder. Includes information about the type of folder. .google.apps.drive.activity.v2.DriveItem.DriveFolder drive_folder = 9;
boolean hasDriveFolder();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.apps.drive.activity.v2.DriveItem.DriveFolderOrBuilder getDriveFolderOrBuilder();", "com.google.apps.drive.activity.v2.DriveItem.DriveFolder getDriveFolder();", "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.FolderOrBuilder getFolderOrBuilder();", "@java.lang.Deprecated com.goog...
[ "0.83367527", "0.8294594", "0.77550066", "0.77064157", "0.65983033", "0.6589346", "0.65067595", "0.647527", "0.63575566", "0.6352942", "0.6349746", "0.63366663", "0.622093", "0.61985755", "0.6125434", "0.5982034", "0.592702", "0.59036595", "0.5880896", "0.5877688", "0.5843242...
0.5600357
27
The Drive item is a folder. Includes information about the type of folder. .google.apps.drive.activity.v2.DriveItem.DriveFolder drive_folder = 9;
com.google.apps.drive.activity.v2.DriveItem.DriveFolder getDriveFolder();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.apps.drive.activity.v2.DriveItem.DriveFolderOrBuilder getDriveFolderOrBuilder();", "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.FolderOrBuilder getFolderOrBuilder();", "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.Folder getFolder();", "public Folder getF...
[ "0.8336189", "0.7754812", "0.7706496", "0.6596878", "0.6587813", "0.65060425", "0.64741325", "0.6356285", "0.6351712", "0.6348475", "0.63357", "0.62216437", "0.61971533", "0.61241776", "0.5980785", "0.59283113", "0.59024996", "0.5883345", "0.58768797", "0.5842519", "0.581567"...
0.8294177
1
The Drive item is a folder. Includes information about the type of folder. .google.apps.drive.activity.v2.DriveItem.DriveFolder drive_folder = 9;
com.google.apps.drive.activity.v2.DriveItem.DriveFolderOrBuilder getDriveFolderOrBuilder();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.apps.drive.activity.v2.DriveItem.DriveFolder getDriveFolder();", "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.FolderOrBuilder getFolderOrBuilder();", "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.Folder getFolder();", "public Folder getFolder() {\n\t\tret...
[ "0.82954156", "0.77543473", "0.77067304", "0.6596436", "0.65868443", "0.65047306", "0.6472971", "0.6355143", "0.63506263", "0.6347445", "0.63345003", "0.622331", "0.6196619", "0.6123191", "0.5980867", "0.5930664", "0.5900756", "0.5883408", "0.58762366", "0.58417016", "0.58150...
0.8336462
0
Map finalMap = new LinkedHashMap();
@Override public ClientHttpResponse intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) throws IOException { StringBuffer finalBuffer = new StringBuffer(); finalBuffer.append(System.lineSeparator()); try { finalBuffer.append("request URI: " + request.getMethod() + " " + request.getURI()); HashMap<String, String> headersMap = new HashMap<String, String>(); HttpHeaders httpHeaders = request.getHeaders(); Set<String> headerNameSet = httpHeaders.keySet(); for(String headerName : headerNameSet) { if(HttpHeaders.ACCEPT_CHARSET.equalsIgnoreCase(headerName)) { continue; } List list = httpHeaders.get(headerName); StringBuffer headerValue = new StringBuffer(); if(list != null && list.size() > 0) { for(int i = 0; i < list.size(); i ++) { if(i == 0) { headerValue.append(list.get(i)); } else { headerValue.append(";"+list.get(i)); } } } headersMap.put(headerName, headerValue.toString()); } String json = new ObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(headersMap); finalBuffer.append(System.lineSeparator()).append("request headers: " + json); finalBuffer.append(System.lineSeparator()).append("request body: "+ getRequestBody(body)); } catch(Exception e) { logger.error("traceRequest got exception:"+e.getMessage()); } ClientHttpResponse clientHttpResponse = execution.execute(request, body); BufferingClientHttpResponseWrapper bufferingClientHttpResponseWrapper = new BufferingClientHttpResponseWrapper(clientHttpResponse); try { finalBuffer.append(System.lineSeparator()).append("response status code: " + clientHttpResponse.getRawStatusCode()); finalBuffer.append(System.lineSeparator()).append("response body: " + getBodyString(bufferingClientHttpResponseWrapper)); } catch(Exception e) { logger.error("traceResponse got exception:"+e.getMessage()); } logger.debug(finalBuffer.toString()); return clientHttpResponse; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n Map<String, Set<Integer>> ms = new HashMap<>(); \n Set<Integer> s1 = new HashSet<>(Arrays.asList(1,2,3));\n Set<Integer> s2 = new HashSet<>(Arrays.asList(4,5,6));\n Set<Integer> s3 = new HashSet<>(Arrays.asList(7,8,9));\n ms.put(\"one\", s1);\n ms.put(...
[ "0.63444465", "0.6014016", "0.59571135", "0.59329295", "0.5920072", "0.5880415", "0.5825082", "0.58136326", "0.5737096", "0.57127255", "0.5708414", "0.5703541", "0.56862783", "0.5685231", "0.56850684", "0.56579095", "0.56548077", "0.5642273", "0.5622589", "0.56056505", "0.560...
0.0
-1
Created by 1027 on 20160709.
public interface KaupService { public String excute(int length, int weight); public String excute(KaupBean kaupBean); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public ...
[ "0.59368354", "0.5819988", "0.574691", "0.57268226", "0.56819403", "0.56797564", "0.56787497", "0.56783855", "0.5642756", "0.5625763", "0.56228256", "0.56228256", "0.5585701", "0.55706704", "0.5560974", "0.5556598", "0.5551445", "0.5549953", "0.5546137", "0.5518935", "0.55189...
0.0
-1
Read the next word, delimited by whitespace, starting from curr(). curr() is next whitespace char after word.
protected java.lang.String readWord() throws java.io.IOException { char c = readCharWord(); java.lang.StringBuilder result = new java.lang.StringBuilder(); do { result.append(c); c = next(); } while (!java.lang.Character.isWhitespace(c)); return result.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public char[] nextToken() {\n\t\t// read and return the next word of the document\n\t\tif(loc<words.length){\n\n\t\t\tString res=words[loc];\n\t\t\tloc++;\n\t\t\treturn res.toCharArray();\n\t\t}\n\n\t\t// or return null if it reaches the end of the document\n\t\treturn null;\n\t}", "protected char readCharWord()...
[ "0.67286867", "0.6694343", "0.65966", "0.63293517", "0.60421056", "0.6026733", "0.600291", "0.5997684", "0.58822113", "0.5865584", "0.5851645", "0.5838739", "0.5825358", "0.58248425", "0.5755564", "0.5710233", "0.568435", "0.5645899", "0.5625166", "0.55954003", "0.55690664", ...
0.62920606
4
Read the next number starting with curr(): whitespace, possible '', digit sequence. curr() is first nondigit char thereafter.
protected java.lang.String readNum() throws java.io.IOException { char c = readCharWord(); java.lang.StringBuilder result = new java.lang.StringBuilder(); if (c!='-' && !java.lang.Character.isDigit(c)) throw error(); do { result.append(c); c = next(); } while (java.lang.Character.isDigit(c)); return result.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void nextNumber() {\n\t\tint old=pos;\n\t\tmany(digits);\n\t\ttoken=new Token(\"num\",program.substring(old,pos));\n }", "private Token getNextNumber() {\n StringBuilder sb = new StringBuilder();\n boolean isNegative = false;\n boolean isDouble = false;\n\n if (data[current...
[ "0.65518534", "0.63506466", "0.6319757", "0.6192018", "0.613953", "0.59949255", "0.5916771", "0.57836264", "0.5768471", "0.57353175", "0.5732123", "0.5729946", "0.5669683", "0.5641778", "0.56179976", "0.5467131", "0.545351", "0.54450417", "0.5435591", "0.5420558", "0.54191804...
0.5591103
15
Read the next character, skipping any previous whitespace.
protected char readCharWord() throws java.io.IOException { char c = currentChar; while (java.lang.Character.isWhitespace(c)) { c = next(); } return c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void readNextChar() throws ReaderException;", "protected void readNextChar() throws IOException {\n nextChar = inputReader.read();\n switch (nextChar) {\n case -1: // EOF\n if (char_num == 0) {\n char_num = -1;\n break;\n }\n nex...
[ "0.79632", "0.78504676", "0.78089166", "0.75425345", "0.7483875", "0.7274587", "0.71976376", "0.70830864", "0.69736993", "0.6964078", "0.6954703", "0.6924672", "0.6906188", "0.6887319", "0.6824352", "0.681303", "0.68129057", "0.68067074", "0.68046373", "0.6737859", "0.673552"...
0.6777822
19
Discard whitespace, then read exactly the string s. curr() just afterwards.
protected void readExpected(java.lang.String s) throws java.io.IOException { char c = readCharWord(); for (int i = 0; i < s.length(); i++) { if (c != s.charAt(i)) { System.out.println("Was expecting '"+s+"', saw '"+c+ "' instead of '"+s.charAt(i)+"'"); throw error(); } c = next(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String readString(){\n\t\tif(sc.hasNext()){\n\t\t\treturn sc.next();\n\t\t}\n\t\tsc.nextLine();\n\t\treturn null;\n\t}", "public static String readString() {\n return in.nextLine();\n }", "public String parseString() {\n\t\tString string = scanner.next();\n\t\treturn string;\n\t}", "private ...
[ "0.618993", "0.57244855", "0.56865144", "0.56835103", "0.56463975", "0.56319803", "0.5618642", "0.5577127", "0.55407363", "0.5505394", "0.54645383", "0.5310902", "0.52921516", "0.5291822", "0.5291394", "0.528718", "0.5265343", "0.52618545", "0.5251921", "0.5246215", "0.519560...
0.5842787
1
Look for and discard field delimiter.
protected void readFieldDelim(java.lang.String s) throws java.io.IOException { readExpected(s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFieldDelimiter(String fieldDelimiter) {\n this.fieldDelimiter = fieldDelimiter;\n }", "public String getFieldDelimiter() {\n return this.fieldDelimiter;\n }", "public String getFieldSeparatorRegex()\n\t{\n\t\treturn fieldSeparatorRegex;\n\t}", "String getDelimiter();", "a...
[ "0.6100678", "0.59461975", "0.5932565", "0.587417", "0.5765645", "0.5762543", "0.5747143", "0.55788374", "0.55529463", "0.5538814", "0.5527446", "0.54648125", "0.54564124", "0.53479207", "0.5336251", "0.5331057", "0.5301303", "0.5292449", "0.52685577", "0.52609336", "0.524715...
0.6563449
0
Look for next element in list.
protected boolean readMoreListElements() throws java.io.IOException { char c = readCharWord(); if (c=='}') { next(); return false; } if (c=='*') { next(); return true; } throw error(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int findNextElement() {\n\t\tif (hasNext()) {\n\t\t\tint value = this.index + 1;\n\t\t\treturn value;\n\n\t\t}\n\t\treturn -1;\n\t}", "public int next() {\r\n\t\tif (currentPosition <= list.length &&list[currentPosition]==-1) {\r\n\t\t\tcurrentPosition = 0;\r\n\t\t\treturn list[currentPosition];\r\n\t\t}...
[ "0.7163843", "0.716009", "0.7064697", "0.7041215", "0.6973711", "0.68863535", "0.6855199", "0.6834895", "0.6803755", "0.67922115", "0.67874825", "0.6784233", "0.66384876", "0.66163385", "0.66119266", "0.66007584", "0.65726167", "0.65434736", "0.65409416", "0.6510456", "0.6495...
0.0
-1
Look for header of option type. Return true if contents must be parsed, false if it is Option.none().
protected boolean readOptionHeader() throws java.io.IOException { char c = readCharWord(); if (c=='~') { next(); return false; } if (c=='(') { next(); return true; } throw error(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isSetHeader();", "public boolean isHeaderParsed();", "boolean hasHeader();", "public boolean handleOption(Option opt) {\n String optName = opt.getLongOpt();\n \n // Handle --help:\n if ( optName.equals(\"help\") ) {\n printUsage();\n System.exit(0);\n...
[ "0.62712234", "0.6249876", "0.6081578", "0.59909385", "0.5907914", "0.59048074", "0.5855387", "0.5703056", "0.5703056", "0.5703056", "0.5703056", "0.5703056", "0.5703056", "0.56977046", "0.569292", "0.56279474", "0.5585002", "0.55549514", "0.54763615", "0.5472565", "0.5467388...
0.73005676
0
Read up to a delimiter; it is an error if a newline or eof is encountered first.
protected java.lang.String readTo(char delim, boolean skipEscape) throws java.io.IOException { java.lang.StringBuilder result = new java.lang.StringBuilder(); boolean escape = false; char c = curr(); while (escape || c != delim) { if (c == '\n' || c == '\r') throw error(); result.append(c); if (escape) escape = false; else if (skipEscape && c == '\\') escape = true; c = next(); } next(); // skip delim return result.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void advanceUntilNL() throws BufferEndedException {\twhile (reader.getLastDelimiter()!='\\n') reader.nextToken();}", "protected char skipTo(char... delims) throws java.io.IOException {\n char c = currentChar;\n while (true) {\n if (c == '\\n' || c == '\\r') throw error();\n for (c...
[ "0.65418434", "0.584469", "0.58107644", "0.57738674", "0.5768754", "0.5694022", "0.5666127", "0.558159", "0.5574532", "0.5523407", "0.5479286", "0.5432515", "0.53732514", "0.5342598", "0.52793914", "0.5264867", "0.5264496", "0.5234475", "0.5196631", "0.5165977", "0.5128459", ...
0.5594486
7
Skip to one of the given delimiters; it is an error if a newline or eof is encountered first.
protected char skipTo(char... delims) throws java.io.IOException { char c = currentChar; while (true) { if (c == '\n' || c == '\r') throw error(); for (char delim : delims) { if (c == delim) return delim; } c = next(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Optional<String> startDelimiter(int index) {\r\n\t\treturn delimiters.get(index).start();\r\n\t}", "public void skipToken() {\t\t\n\t\t//remove token from line\n\t\tif (token != null)\n\t\t{\n\t\t\tline = line.substring(token.length());\n\t\t}\n\t\t//check if new token in line\n\t\tint pos = findFirstNotWhitespa...
[ "0.5573589", "0.54603577", "0.54253656", "0.541256", "0.5252347", "0.5138648", "0.51008236", "0.5087551", "0.5023256", "0.50158185", "0.50100046", "0.4998303", "0.49662668", "0.49192595", "0.4901787", "0.4873195", "0.48723525", "0.485288", "0.48407117", "0.48372853", "0.48268...
0.705867
0
Unescapes a subset of valid Javastyle escaped strings. Unicode escapes are not supported (the JLS doesn't treat them as part of this escaping process, either). Octal escapes are required to use exactly 3 digits.
protected java.lang.String unescape(java.lang.String s) throws java.io.IOException { boolean escape = false; final java.lang.StringBuilder digits = new java.lang.StringBuilder(); boolean changed = false; final java.lang.StringBuilder result = new java.lang.StringBuilder(); for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if (escape) { switch (c) { case 'b': result.append('\b'); break; case 't': result.append('\t'); break; case 'n': result.append('\n'); break; case 'f': result.append('\f'); break; case 'r': result.append('\r'); break; case '"': case '\'': case '\\': result.append(c); break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': digits.append(c); if (digits.length() == 3) { // this should succeed -- there are guaranteed to be 3 octal digits result.append((char) java.lang.Integer.parseInt(digits.toString(), 8)); digits.setLength(0); } break; default: throw error(); } if (digits.length() == 0) escape = false; } else { if (c == '\\') { escape = true; changed = true; } else { result.append(c); } } } if (escape) throw error(); // escape was not completed return changed ? result.toString() : s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void unescapedCharacters(char[] chars, int start, int length);", "public static String discardEscapeChar(String input) throws ParseException {\n\n // Create char array to hold unescaped char sequence\n char[] output = new char[input.length()];\n\n // The length of the output can be le...
[ "0.6196448", "0.5987644", "0.59473526", "0.5916694", "0.591569", "0.57277846", "0.56973064", "0.5605238", "0.5588082", "0.5514531", "0.5504636", "0.54761577", "0.5432006", "0.5364986", "0.5328271", "0.52675945", "0.52667326", "0.5249333", "0.5244855", "0.52269477", "0.5203815...
0.61332804
1
Treat a string representation of a hexadecimal number as an ObjectInputStream
protected java.io.ObjectInputStream toObjectStream(java.lang.String byteString) throws java.io.IOException { if (byteString.length() % 2 != 0) throw error(); int length = byteString.length() / 2; byte[] bytes = new byte[length]; for (int i = 0; i < length; i++) { java.lang.String b = byteString.substring(i*2, i*2+2); try { int unsigned = java.lang.Integer.parseInt(b, 16); if (unsigned < 128) bytes[i] = (byte) unsigned; else bytes[i] = (byte) (unsigned - 256); // maps 255 to -1, 128 to -128 } catch (java.lang.NumberFormatException e) { throw error(); } } // this may throw an IOException return new java.io.ObjectInputStream(new java.io.ByteArrayInputStream(bytes)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InputStream mo7254f(String str, Object obj) {\n return this.f787a.getAssets().open(C0587a.ASSETS.mo7258c(str));\n }", "public InputStream mo7255g(String str, Object obj) {\n return this.f787a.getResources().openRawResource(Integer.parseInt(C0587a.DRAWABLE.mo7258c(str)));\n }", "priva...
[ "0.53041166", "0.52962154", "0.5280824", "0.52690995", "0.5168794", "0.51564294", "0.5102604", "0.50899667", "0.5037544", "0.50198156", "0.50079745", "0.4988752", "0.49747792", "0.49680576", "0.49297014", "0.4915125", "0.4913236", "0.48710603", "0.48512354", "0.48492086", "0....
0.585837
0
Fragment "Instance constructor". As recomended in StackOverflow post:
public static RecipeDetailFragment newInstance(int recipeId){ Timber.d("RecipeDetailFragment newInstance with RecipeId:" + recipeId); RecipeDetailFragment fragment = new RecipeDetailFragment(); Bundle args = new Bundle(); args.putInt(RECIPE_ID,recipeId); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reproducible newInstance();", "private Instantiation(){}", "public Instance() {\n }", "private void __sep__Constructors__() {}", "Instance createInstance();", "private InstanceUtil() {\n }", "public Constructor(){\n\t\t\n\t}", "public Taginstance() {\n\t\tthis(\"taginstance\", null);\n\t}", "...
[ "0.81655025", "0.80262107", "0.758357", "0.7427019", "0.71880513", "0.715757", "0.69981205", "0.6978546", "0.6971362", "0.69523376", "0.6804534", "0.6803627", "0.679695", "0.6791468", "0.6784252", "0.67392963", "0.67063165", "0.66996795", "0.6684903", "0.6682969", "0.66798663...
0.0
-1
Override onAttach to make sure that the container activity has implemented the callback
@Override public void onAttach(Context context) { super.onAttach(context); // This makes sure that the host activity has implemented the callback interface // If not, it throws an exception try { mOnClickHandler = (RecipeDetailFragmentStepAdapter.OnRecipeStepClickHandler) context; mRecipeDetailHandler = (RecipeDetailHandler) context; } catch (ClassCastException e) { throw new ClassCastException(context.toString() + " must implement RecipeDetailFragmentStepAdapter.OnRecipeStepClickHandler AND RecipeDetailHandler"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void onAttach();", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n\n Log.v(TAG, \"on attach\");\n callback = (Callback)activity;\n }", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n ...
[ "0.7998908", "0.7981534", "0.78530455", "0.7610721", "0.75998753", "0.7552171", "0.7542243", "0.75226796", "0.7519244", "0.7508184", "0.7480788", "0.74727494", "0.74727494", "0.74727494", "0.74662894", "0.7447044", "0.7444424", "0.7429056", "0.7429056", "0.74076664", "0.73968...
0.7123132
36
Interface to provide external controls to an implementing class that manages a cache.
public interface Caching { /** * ititialize resources for a cache * */ void init(); /** * clear cache * */ void clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CacheManager {\n\n void init();\n\n void destroy();\n\n void del(String key);\n\n void set(String key, Object value);\n\n void set(String key, Object value, int expireTime);\n\n <T> T get(String key, Class<T> clazz);\n\n void hset(String key, String subKey, Object value);\n\n ...
[ "0.69795877", "0.682827", "0.68270123", "0.67964834", "0.67532426", "0.6670031", "0.66227275", "0.6606741", "0.65821385", "0.65282327", "0.65192616", "0.6461661", "0.64525485", "0.6450962", "0.6381229", "0.634586", "0.6320791", "0.62542415", "0.6160502", "0.61474556", "0.6131...
0.69996494
0
ititialize resources for a cache
void init();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Caching {\n\t\n\t/**\n\t * ititialize resources for a cache\n\t *\n\t */\n\tvoid init();\n\t\n\t/**\n\t * clear cache\n\t *\n\t */\n\tvoid clear();\n\n}", "protected abstract Collection<Cache> loadCaches();", "@PostConstruct\n public void initCache() {\n cache = Collections.synchronizedMap...
[ "0.7235907", "0.68491524", "0.66655064", "0.6405415", "0.6335499", "0.6286136", "0.6232516", "0.6231659", "0.61945665", "0.6178949", "0.61720055", "0.6162836", "0.61115766", "0.60579085", "0.60323364", "0.60275996", "0.60119927", "0.5942568", "0.59372824", "0.59243053", "0.59...
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.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
Mandatory empty constructor for the fragment manager to instantiate the fragment (e.g. upon screen orientation changes).
public SymbolDetailFragment() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FragmentMy() {\n }", "public RickAndMortyFragment() {\n }", "public MainActivityFragment() {\n }", "public MainActivityFragment() {\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public EmployeeFragmen...
[ "0.80315286", "0.7699558", "0.767644", "0.767644", "0.75390023", "0.7535283", "0.7532307", "0.7522787", "0.7507683", "0.7412924", "0.7406995", "0.7376808", "0.7376239", "0.7366176", "0.7326723", "0.7302857", "0.7302857", "0.72952265", "0.7288", "0.72855604", "0.72822803", "...
0.0
-1
TODO Autogenerated method stub
@Override public void onStartTrackingTouch(SeekBar seekBar) { }
{ "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 onStopTrackingTouch(SeekBar seekBar) { }
{ "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
the constructor DBConnectionManager must be initialized before calling this constructor
public DBMaker(final DBConnectionManager dbManager) { this.dbManager = dbManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DBConnection() \n {\n initConnection();\n }", "public DBManager(){\r\n connect(DBConstant.driver,DBConstant.connetionstring);\r\n }", "public DatabaseManager() {\n try {\n con = DriverManager.getConnection(DB_URL, \"root\", \"marko\");\n } catch (SQLException e) {\n e.p...
[ "0.782159", "0.7737159", "0.75581384", "0.7511948", "0.73143965", "0.73045325", "0.7241233", "0.71930623", "0.71155906", "0.7090177", "0.70836717", "0.7048589", "0.7029074", "0.69807076", "0.69233865", "0.69220877", "0.6913656", "0.6911125", "0.68948597", "0.6856001", "0.6847...
0.70203924
13
drop all the tables and vacuum the db
public void dropTables() { try { dbManager.executeUpdate("DROP TABLE REVISION"); } catch (Exception e) { // e.printStackTrace(); } try { dbManager.executeUpdate("DROP TABLE VCS_COMMIT"); } catch (Exception e) { // e.printStackTrace(); } try { dbManager.executeUpdate("DROP TABLE FILE"); } catch (Exception e) { // e.printStackTrace(); } try { dbManager.executeUpdate("DROP TABLE CODE_FRAGMENT"); } catch (Exception e) { // e.printStackTrace(); } try { dbManager.executeUpdate("DROP TABLE CLONE_SET"); } catch (Exception e) { // e.printStackTrace(); } try { dbManager.executeUpdate("DROP TABLE CODE_FRAGMENT_LINK"); } catch (Exception e) { // e.printStackTrace(); } try { dbManager.executeUpdate("DROP TABLE CLONE_SET_LINK"); } catch (Exception e) { // e.printStackTrace(); } try { dbManager.executeUpdate("DROP TABLE CLONE_GENEALOGY"); } catch (Exception e) { // e.printStackTrace(); } try { dbManager.executeUpdate("DROP TABLE CODE_FRAGMENT_GENEALOGY"); } catch (Exception e) { // e.printStackTrace(); } try { dbManager.executeUpdate("DROP TABLE CRD"); } catch (Exception e) { // e.printStackTrace(); } try { dbManager.executeUpdate("VACUUM"); } catch (Exception e) { // e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void dropDB() throws SQLException {\n\t \t\tStatement stmt = cnx.createStatement();\n\t \t\tString[] tables = {\"account\", \"consumer\", \"transaction\"};\n\t \t\tfor (int i=0; i<3;i++) {\n\t \t\t\tString query = \"DELETE FROM \" + tables[i];\n\t \t\t\tstmt.executeUpdate(query);\n\t \t\t}\n\t \t}", "void...
[ "0.7495752", "0.73555505", "0.734113", "0.73171705", "0.7292648", "0.72249496", "0.71721685", "0.7106494", "0.7074933", "0.70462114", "0.69785655", "0.6964824", "0.6955115", "0.69547313", "0.69199497", "0.68829376", "0.6869762", "0.6803869", "0.6796987", "0.67930025", "0.6786...
0.7357377
1
/ definitions of each table follow get the query to create the revision table
private String getRevisionTableQuery() { final StringBuilder builder = new StringBuilder(); builder.append("create table REVISION("); builder.append("REVISION_ID LONG PRIMARY KEY,"); builder.append("REVISION_IDENTIFIER TEXT UNIQUE"); builder.append(")"); return builder.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getCommitTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table VCS_COMMIT(\");\n \t\tbuilder.append(\"VCS_COMMIT_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n ...
[ "0.65782756", "0.6407981", "0.61054635", "0.6012603", "0.5965567", "0.5951802", "0.5881081", "0.58681804", "0.58648956", "0.581876", "0.58045214", "0.58017117", "0.5791463", "0.57737666", "0.5767965", "0.5763884", "0.5763237", "0.5757422", "0.5744882", "0.57379574", "0.573606...
0.7574425
0
create indexes on the revision table
private void createRevisionTableIndexes() throws Exception { dbManager .executeUpdate("create index REVISION_ID_INDEX_REVISION on REVISION(REVISION_ID)"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createCommitTableIndexes() throws Exception {\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index VCS_COMMIT_ID_INDEX_VCS_COMMIT on VCS_COMMIT(VCS_COMMIT_ID)\");\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index BEFORE_REVISION_ID_INDEX_VCS_COMMIT on VCS_COMMIT(BEFORE_REVISION_ID)\");\n \t\t...
[ "0.73824465", "0.7038366", "0.66309696", "0.66258234", "0.66189814", "0.6442185", "0.6415675", "0.64096826", "0.63637596", "0.63513404", "0.6321351", "0.6188314", "0.61324525", "0.60223335", "0.5922756", "0.5899252", "0.58752996", "0.58511037", "0.5845765", "0.58446187", "0.5...
0.8478605
0
get the query to create the commit table
private String getCommitTableQuery() { final StringBuilder builder = new StringBuilder(); builder.append("create table VCS_COMMIT("); builder.append("VCS_COMMIT_ID LONG PRIMARY KEY,"); builder.append("BEFORE_REVISION_ID LONG,"); builder.append("AFTER_REVISION_ID LONG,"); builder.append("BEFORE_REVISION_IDENTIFIER TEXT,"); builder.append("AFTER_REVISION_IDENTIFIER TEXT"); builder.append(")"); return builder.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getRevisionTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table REVISION(\");\n \t\tbuilder.append(\"REVISION_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"REVISION_IDENTIFIER TEXT UNIQUE\");\n \t\tbuilder.append(\")\");\n \n \t\treturn bui...
[ "0.68835294", "0.66342074", "0.6570803", "0.6523298", "0.6503407", "0.6444103", "0.64256126", "0.6325138", "0.6191883", "0.61911947", "0.6185076", "0.6184551", "0.6163109", "0.6143015", "0.60870403", "0.60844904", "0.60447836", "0.6038286", "0.6033101", "0.60267454", "0.60097...
0.83595014
0
create indexes on the commit table
private void createCommitTableIndexes() throws Exception { dbManager .executeUpdate("create index VCS_COMMIT_ID_INDEX_VCS_COMMIT on VCS_COMMIT(VCS_COMMIT_ID)"); dbManager .executeUpdate("create index BEFORE_REVISION_ID_INDEX_VCS_COMMIT on VCS_COMMIT(BEFORE_REVISION_ID)"); dbManager .executeUpdate("create index AFTER_REVISION_ID_INDEX_VCS_COMMIT on VCS_COMMIT(AFTER_REVISION_ID)"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createRevisionTableIndexes() throws Exception {\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index REVISION_ID_INDEX_REVISION on REVISION(REVISION_ID)\");\n \t}", "private void createFileTableIndexes() throws Exception {\n \t\tdbManager\n \t\t\t\t.executeUpdate(\"create index FILE_ID_INDEX_FILE...
[ "0.7287135", "0.7219838", "0.69943047", "0.6971069", "0.68709034", "0.6867674", "0.68226355", "0.6735932", "0.6576553", "0.6440173", "0.64266217", "0.6313182", "0.6308645", "0.62679315", "0.6251838", "0.6240473", "0.6218996", "0.611832", "0.6059367", "0.604787", "0.60311407",...
0.83618265
0
get the query to create the file table
private String getFileTableQuery() { final StringBuilder builder = new StringBuilder(); builder.append("create table FILE("); builder.append("FILE_ID LONG PRIMARY KEY,"); builder.append("FILE_PATH TEXT,"); builder.append("START_REVISION_ID LONG,"); builder.append("END_REVISION_ID LONG"); builder.append(")"); return builder.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t...
[ "0.67769593", "0.6501119", "0.63251734", "0.63235116", "0.63111913", "0.6171534", "0.61425316", "0.6080438", "0.6041518", "0.6021316", "0.6000033", "0.5997018", "0.5979725", "0.597924", "0.5978279", "0.59513986", "0.59413886", "0.59253466", "0.5883207", "0.58822554", "0.58816...
0.8745651
0
create indexes on the file table
private void createFileTableIndexes() throws Exception { dbManager .executeUpdate("create index FILE_ID_INDEX_FILE on FILE(FILE_ID)"); dbManager .executeUpdate("create index START_REVISION_ID_INDEX_FILE on FILE(START_REVISION_ID)"); dbManager .executeUpdate("create index END_REVISION_ID_INDEX_FILE on FILE(END_REVISION_ID)"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createInvertedIndex() {\n\t\tArrayList<Index> invertedIndex=new ArrayList<>();\n\t\ttry{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\part-r-00001\"));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tSt...
[ "0.7196211", "0.695327", "0.65380114", "0.6527172", "0.64142907", "0.6358831", "0.629061", "0.6260896", "0.6245588", "0.6241467", "0.6205932", "0.618814", "0.6176766", "0.6156911", "0.6133956", "0.6129774", "0.6126216", "0.6097625", "0.60753167", "0.6062257", "0.6046846", "...
0.8428614
0