content stringlengths 40 137k |
|---|
"private String getXmlrpcByUserEnteredPath(String baseUrl) {\n String xmlRpcUrl;\n if (!UrlUtils.isValidUrlAndHostNotNull(baseUrl)) {\n AppLog.e(T.NUX, \"String_Node_Str\" + baseUrl);\n mErrorMsgId = org.wordpress.android.R.string.invalid_url_message;\n return null;\n }\n URI uri = URI.... |
"public void serialize(Distance distance, JsonGenerator generator, SerializerProvider provider) throws IOException, JsonProcessingException {\n generator.writeStartObject();\n generator.writeFieldName(\"String_Node_Str\");\n generator.writeString(distance.name());\n generator.writeFieldName(\"String_Node_St... |
"private void refreshWithNewestGlobal() {\n int nextPage = pagesLoaded;\n setProgressBarIndeterminateVisibility(true);\n service.everyonesRecent(countPP, nextPage, new ServiceCallback());\n}\n"
|
"public static Sender create(Request request, int timeout) {\n Sender sender = request.isGet() || request.isDelete() ? new GetSender(request) : new PostSender(request);\n return sender.setTimeout(timeout);\n}\n"
|
"public boolean isNameVisibleTo(FeedbackQuestionAttributes question, FeedbackResponseAttributes response, String userEmail, boolean isGiverName, CourseRoster roster) {\n if (question == null) {\n return false;\n }\n List<FeedbackParticipantType> showNameTo = isGiverName ? question.showGiverNameTo : ques... |
"public void write(org.apache.thrift.protocol.TProtocol prot, TResult struct) throws org.apache.thrift.TException {\n TTupleProtocol oprot = (TTupleProtocol) prot;\n BitSet optionals = new BitSet();\n if (struct.isSetId()) {\n optionals.set(0);\n }\n if (struct.isSetRsv()) {\n optionals.set... |
"public Resolution getResolution(Module module, Mod mod) {\n return (Resolution) JOptionPane.showInputDialog(null, String.format(\"String_Node_Str\" + \"String_Node_Str\", module.getName(), mod.getName()), \"String_Node_Str\", JOptionPane.QUESTION_MESSAGE, null, Resolution.values(), Resolution.Overwrite);\n}\n"
|
"public void andThen(ExecutionCallback<V> callback, Executor executor) {\n isNotNull(callback, \"String_Node_Str\");\n isNotNull(executor, \"String_Node_Str\");\n if (isDoneInternal()) {\n runAsynchronous(callback, executor);\n return;\n }\n for (; ; ) {\n ExecutionCallbackNode oldCa... |
"public void filter() {\n String content = \"String_Node_Str\";\n AssessmentItem item = new AssessmentItem();\n ItemBody helper = new ItemBody(item);\n new AssessmentHtmlBuilder().appendHtml(helper, content);\n List<Block> paragraphs = helper.getBlocks();\n Assert.assertNotNull(paragraphs);\n Asser... |
"public void targetCluster(final String name, final boolean info) {\n ClusterRead cluster = null;\n boolean noCluster = false;\n try {\n if (info) {\n if (name != null) {\n System.out.println(\"String_Node_Str\");\n return;\n }\n String fsUr... |
"public double[] estimateInfluences() {\n List<String> response = estimateInfluencesRaw();\n MutableIntList territories = GtpCommand.parseResponseIntTable(response);\n MutableDoubleList influences = territories.collectDouble(influence -> {\n if (-300 < influence && influence < 300) {\n influe... |
"public String stateToString() {\n return name + \"String_Node_Str\" + len + \"String_Node_Str\" + readPos + \"String_Node_Str\" + writePos;\n}\n"
|
"public PageWriter getPageWriter(ColumnDescriptor path) {\n MemPageWriter pageWriter;\n if (pageWriters.containsKey(path)) {\n pageWriter = pageWriters.get(path);\n } else {\n pageWriter = new MemPageWriter();\n pageWriters.put(path, pageWriter);\n }\n return pageWriter;\n}\n"
|
"public void resetContextsTest() {\n final AIConfiguration config = new AIConfiguration(getAccessToken(), getSubscriptionKey(), AIConfiguration.SupportedLanguages.English, AIConfiguration.RecognitionEngine.Speaktoit);\n updateConfig(config);\n final AIDataService aiDataService = new AIDataService(Robolectric.a... |
"public void run() {\n try {\n Log.i(TAG, \"String_Node_Str\");\n startOpenVPNThreadArgs(mArgv);\n Log.i(TAG, \"String_Node_Str\");\n } catch (Exception e) {\n Log.e(TAG, \"String_Node_Str\" + e.toString());\n } finally {\n int exitvalue = 0;\n try {\n exitv... |
"private static void build() {\n final Widget versionPanel = getVersionPanel();\n final Widget rolesPanel = getManagersPartnersPanel();\n final Widget devConPanel = getDevelopersContributorsPanel();\n final VerticalPanel vPanel = new VerticalPanel();\n vPanel.setSpacing(0);\n vPanel.add(rolesPanel);\n... |
"public static boolean hasEnough(Payment payment, HumanNPC npc) {\n return npc.getBalance() >= payment.getPrice();\n}\n"
|
"private com.massivecraft.factions.Factions getInstance() {\n try {\n factionsInstance = (com.massivecraft.factions.Factions) com.massivecraft.factions.Factions.class.getMethod(\"String_Node_Str\").invoke(this);\n } catch (Exception e) {\n FactionsPlus.get().logError(e);\n return null;\n }... |
"public View getView(int position, View convertView, ViewGroup parent) {\n ListPreference pref = mListItem.get(position);\n int viewLayoutId = getSettingLayoutId(pref);\n InLineSettingItem view = (InLineSettingItem) convertView;\n view = (InLineSettingItem) mInflater.inflate(viewLayoutId, parent, false);\n ... |
"public void generateTraitsPhase3(int methodInitScope, boolean isInterface, String className, String superName, boolean generateStatic, SourceGeneratorLocalData localData, List<GraphTargetItem> items, Traits ts, Trait[] traits, Map<Trait, Integer> initScopes, Reference<Integer> class_index) throws AVM2ParseException, C... |
"public void tracksUpdated(Collection<Track> trax) {\n updateLock.lock();\n try {\n List<Track> traxToAdd = new ArrayList<Track>();\n for (Track t : trax) {\n Integer idx = trackIndices.get(t.getStream().getStreamId());\n if (idx != null) {\n if (trackBelongsInMy... |
"public Collection<String> getPrivateIpAddresses() throws Exception {\n final Map<String, String> result = new DescribeInstances(awsConfig).execute();\n return result.keySet();\n}\n"
|
"public static boolean updateKubernetesMaster(KubernetesMaster kubernetesMasterBean) throws RestAPIException {\n AutoscalerServiceClient autoscalerServiceClient = getAutoscalerServiceClient();\n if (autoscalerServiceClient != null) {\n org.apache.stratos.common.kubernetes.KubernetesMaster kubernetesMaster ... |
"public void inferQualifiedSlot(Node node, String symbol, JSType bottomType, JSType inferredType) {\n Scope functionScope = getFunctionScope();\n if (functionScope.isLocal()) {\n if (functionScope.getVar(symbol) == null && !functionScope.isBottom()) {\n functionScope.declare(symbol, node, bottom... |
"private Ports assignPorts(List<String> portBindings) {\n Ports ports = new Ports();\n for (String portBinding : portBindings) {\n String[] elements = portBinding.split(PORTS_SEPARATOR);\n if (elements.length == 1) {\n log.info(\"String_Node_Str\" + elements[0]);\n int position... |
"public final void setDebug(final boolean on) throws ConnectorException {\n synchronized (_debugFieldMutex) {\n if (on) {\n if (_debugListener == null) {\n _debugListener = new AbstractConnectorListener() {\n public void messageReceived(final ConnectorMessageEvent ... |
"public int countItems() throws SQLException {\n int total = 0;\n Collection[] cols = getCollections();\n if (cols.length > 0) {\n for (int j = 0; j < cols.length; j++) {\n collitems = cols[j].countItems();\n commitems += collitems;\n }\n }\n return commitems;\n}\n"
|
"public IMethod getCalleeTarget(CGNode caller, CallSiteReference site, IClass dispatchType) {\n if (site == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n MethodReference ref = site.getDeclaredTarget();\n IMethod resolved = null;\n if (ClassHierarchyMethodTargetSelector.f... |
"private BigtableBufferedMutator createMutator(Configuration configuration) throws IOException {\n HeapSizeManager heapSizeManager = new HeapSizeManager(AsyncExecutor.ASYNC_MUTATOR_MAX_MEMORY_DEFAULT, AsyncExecutor.MAX_INFLIGHT_RPCS_DEFAULT) {\n public <T> FutureCallback<T> addCallback(ListenableFuture<T> fut... |
"public void deleteAcl(ObjectIdentity objectIdentity, boolean deleteChildren) throws ChildrenExistException {\n HTableInterface htable = null;\n try {\n htable = HBaseConnection.get(hbaseUrl).getTable(aclTableName);\n Delete delete = new Delete(Bytes.toBytes(String.valueOf(objectIdentity.getIdentifi... |
"Object readBackReference(int handle) throws IOException {\n final int idx = handle - baseWireHandle;\n if (idx < 0 || idx >= instanceCache.size()) {\n throw new StreamCorruptedException(String.format(\"String_Node_Str\", Integer.valueOf(handle)));\n }\n final Object obj = instanceCache.get(idx);\n ... |
"public static Bitmap getBitmapScaledToDisplay(File f, int screenHeight, int screenWidth) {\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(f.getAbsolutePath(), o);\n int imageHeight = o.outHeight;\n int imageWidth = o.outWidth;\n int ... |
"public void addPetMaterial(int playerId, String... params) {\n int petId = Integer.valueOf(params[0]);\n int count = Integer.valueOf(params[1]);\n petService.addPetMaterial(playerId, petId, count, true);\n}\n"
|
"public boolean apply(Game game, Ability source) {\n PreventDamageToTargetEffect effect = new PreventDamageToTargetEffect(Duration.EndOfTurn, 1);\n List<Permanent> permanents = game.getBattlefield().getActivePermanents(new FilterCreaturePermanent(), source.getControllerId(), game);\n for (Permanent permanent :... |
"private void notifyAnimationChanged(Animation newAnimation) {\n for (int i = changeOfAnimationListeners.size() - 1; i >= 0; i--) {\n changeOfAnimationListeners.get(i).updateAnimation(newAnimation);\n }\n}\n"
|
"public void configurarRespostas() {\n marcouFim = true;\n contadorTextView.setText(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + tempoRestante);\n intentRespostas.putExtra(Jogador.JOGADOR, this.jogador);\n intentRespostas.putExtra(ConfiguracaoParatida.CONFIGURACAO, this.configuracao);... |
"public void onUpdate() {\n this.prevPosX = this.posX;\n this.prevPosY = this.posY;\n this.prevPosZ = this.posZ;\n if (!worldObj.isRemote) {\n updateStage();\n }\n if (getStage() == Stage.POSITION) {\n LogHelper.dev(noClip);\n this.moveEntity(this.motionX, this.motionY, this.motio... |
"public static void set(VM_Address start, int len, int v) throws VM_PragmaInline {\n for (int i = 0; i < len; i += BYTES_IN_INT) VM_Magic.setMemoryInt(start.add(i), v);\n}\n"
|
"public boolean process(String opt, List<String> args) {\n showTaglets = true;\n return true;\n}\n"
|
"public Index call() throws Exception {\n log.info(\"String_Node_Str\");\n Collection<Endpoint> datahub = DatahubAccess.checkEndpointList();\n if (datahub.size() == 0)\n return null;\n Collection<Endpoint> db = _dbm.get(Endpoint.class, Endpoint.SCHEMA$);\n TreeSet<Endpoint> ckan = new TreeSet<Endp... |
"private void RenderMouseOver(GL gl) {\n if (mouseoverSelectionManager.getNumberOfElements(ESelectionType.MOUSE_OVER) == 0)\n return;\n Set<Integer> mouseOver = mouseoverSelectionManager.getElements(ESelectionType.MOUSE_OVER);\n int iContentIndex = 0;\n for (int i : mouseOver) {\n iContentInde... |
"public boolean layout() {\n boolean childBreak = super.layout();\n if (childBreak) {\n IPDFTableLayoutManager itsTableLM = getTableLayoutManager();\n if (itsTableLM != null) {\n IStyle cStyle = content.getStyle();\n if (!isFinished() && needPageBreakBefore(cStyle.getPageBreakB... |
"private void putVertexTR(UnpackedBakedQuad.Builder builder, EnumFacing face, float x, float y, float z, UvVector uv) {\n float u, v;\n switch(uvRotations[face.ordinal()]) {\n default:\n case 0:\n u = uv.u2;\n v = uv.v1;\n break;\n case 1:\n u = uv.... |
"private void getJobScriptsUncompressed(ExportFileResource resource, ProcessItem process) throws IOException {\n String projectName = getCorrespondingProjectName(process);\n final URI classRootURI = classesLocation.toURI();\n List<String> jobFolderNames = getRelatedJobFolderNames(process);\n try {\n ... |
"SearchRow remove(SearchRow row) throws SQLException {\n int at = find(row, false, false, true);\n PageBtree page = index.getPage(childPageIds[at]);\n SearchRow last = page.remove(row);\n index.getPageStore().logUndo(this, data);\n updateRowCount(-1);\n written = false;\n if (last == null) {\n ... |
"public static String composeKey(String z, String x, String y) {\n return z + File.separatorChar + x + File.separatorChar + y;\n}\n"
|
"protected void loadBlocks(World world) {\n if (add == null) {\n add = new byte[LENGTH];\n }\n NibbleArray add = new NibbleArray(this.add);\n NibbleArray data = new NibbleArray(this.data);\n types = new byte[rawTypes.length];\n for (int i = 0; i < LENGTH; i += 1) {\n Block block;\n ... |
"public void initialize(IEmitterServices services) {\n this.services = services;\n this.out = EmitterUtil.getOuputStream(services, REPORT_FILE);\n Object emitterConfig = services.getEmitterConfig().get(\"String_Node_Str\");\n if (emitterConfig != null && emitterConfig instanceof HTMLEmitterConfig) {\n ... |
"public void setUp() throws Exception {\n super.setUp();\n Context context = Context.enter();\n scope = context.initStandardObjects();\n Context.exit();\n expectedValue = new ArrayList();\n appContextMap.put(DataEngine.DATASET_CACHE_OPTION, \"String_Node_Str\");\n this.appContextMap.put(DataEngine.... |
"private synchronized void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {\n s.defaultReadObject();\n _model = (ListModel) s.readObject();\n didDeserialize(_model);\n _renderer = (ListitemRenderer) s.readObject();\n didDeserialize(_renderer);\n init();\n ... |
"public static String readStringFromFile(String pathFile) {\n String answer = null;\n InputStream inputFile = getClass().getResourceAsStream(pathFile);\n InputStreamReader streamReader = new InputStreamReader(inputFile);\n StringBuffer fileData = new StringBuffer(1000);\n BufferedReader reader = new Buff... |
"protected boolean isUpToDate(FTPClient ftp, File localFile, String remoteFile) throws IOException, BuildException {\n log(\"String_Node_Str\" + remoteFile, Project.MSG_VERBOSE);\n FTPFile[] files = ftp.listFiles(remoteFile);\n if (files == null || files.length == 0) {\n if (action == SEND_FILES) {\n ... |
"public AnnotatedType<X> create() {\n Map<Constructor<?>, Map<Integer, AnnotationStore>> constructorParameterAnnotations = new HashMap<Constructor<?>, Map<Integer, AnnotationStore>>();\n Map<Constructor<?>, AnnotationStore> constructorAnnotations = new HashMap<Constructor<?>, AnnotationStore>();\n Map<Method, ... |
"public void execute(RequestHandler handler, FtpRequestImpl request, FtpWriter out) throws IOException, FtpException {\n try {\n request.resetState();\n IFtpConfig fconfig = handler.getConfig();\n Ftplet ftpletContainer = fconfig.getFtpletContainer();\n FtpletEnum ftpletRet = ftpletContai... |
"public static final boolean exists(String zslang) {\n if (zslang == null)\n return false;\n zslang = zslang.toLowerCase(java.util.Locale.ENGLISH);\n synchronized (_ips) {\n return _ips.containsKey(zslang);\n }\n}\n"
|
"public void authenticate(String consumerKey, String consumerSecret, AuthProviderData authProviderData, SocializeAuthListener listener, SocializeSessionConsumer sessionConsumer, boolean do3rdPartyAuth) {\n MockSocializeSession mockSocializeSession = new MockSocializeSession();\n listener.onAuthSuccess(mockSociali... |
"public int getColumnCount() {\n return columns.size();\n}\n"
|
"void processNodeSelection(GridItem parentItem, GridItem currentItem) {\n if (currentItem.hasChildren()) {\n Boolean[] allCheckedInColumn = new Boolean[getColumnCount()];\n Boolean[] hasCheckedInColumn = new Boolean[getColumnCount()];\n for (int j = 1; j < getColumnCount(); j++) {\n a... |
"public void testSortedListHandlesSortEvents() {\n Comparator artistComparator = GlazedLists.beanPropertyComparator(Song.class, \"String_Node_Str\", new String[0]);\n Comparator songComparator = GlazedLists.beanPropertyComparator(Song.class, \"String_Node_Str\", new String[0]);\n List<Comparable> expectedOrder... |
"private static void downloadTrace(ImportFileInfo trace, IProject project, IProgressMonitor monitor) throws ExecutionException {\n try {\n IRemoteFileSubSystem fsss = trace.getImportFile().getParentRemoteFileSubSystem();\n IFolder traceFolder = project.getFolder(TmfTracesFolder.TRACES_FOLDER_NAME);\n ... |
"protected void setAttribute(final short tag, final Object value, final boolean isUnsignedArray) {\n if (value != null && !(value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof String || value instanceof Character || value instanceof Float || value instanceof byte[] || valu... |
"private static String getClassCode(Integer sequence, Class<?> sourceClass, Class<?> targetClass, boolean deepCopy, final Map<String, PropConverter<?, ?>> propCvtMap) throws Exception {\n JavaSourceBean javaSourceBean = new JavaSourceBean();\n javaSourceBean.setPackageName(BeanCopierFactory.class.getPackage().get... |
"Transaction transaction(SKPaymentTransaction t) {\n SKPayment payment = t.getPayment();\n String productIdentifier = payment.getProductIdentifier();\n SKProduct product = getProductByStoreIdentifier(productIdentifier);\n if (product == null) {\n System.err.println(\"String_Node_Str\" + productIdenti... |
"public void drawTexture(TextureRegion texture, Color color, ScaleMode mode, Rect2i absoluteRegion, float ux, float uy, float uw, float uh, float alpha) {\n if (!texture.getTexture().isLoaded()) {\n return;\n }\n if (!currentTextureCropRegion.equals(requestedCropRegion) && !(currentTextureCropRegion.con... |
"protected void loadPresentationExtensionDefns() {\n IExtensionRegistry registry = Platform.getExtensionRegistry();\n IExtensionPoint extPoint = registry.getExtensionPoint(EXTENSION_POINT_PRESENTATION);\n if (extPoint == null)\n return;\n IExtension[] exts = extPoint.getExtensions();\n for (int i ... |
"public static IList getAttributeValues(ICS ics, AssetId id, String deptype, String locale, String attr, String attrType, String ordering) {\n SetAsset setAsset = new SetAsset();\n final String assetSetName = \"String_Node_Str\" + ics.genID(false);\n setAsset.setName(assetSetName);\n setAsset.setType(id.get... |
"public void launch() {\n Entity cbNode = entity.getConfig(CouchbaseSyncGateway.COUCHBASE_SERVER);\n Entities.waitForServiceUp(cbNode, Duration.ONE_HOUR);\n DependentConfiguration.waitInTaskForAttributeReady(cbNode, CouchbaseCluster.IS_CLUSTER_INITIALIZED, Predicates.equalTo(true));\n Time.sleep(10 * 1000);... |
"public synchronized void persist(Object obj) {\n JobInfo jobInfo = (JobInfo) obj;\n File file = jobManager.getJobsFile();\n synchronized (file) {\n jobInfos = jobManager.getCompletedJobs();\n if (jobInfos == null)\n jobInfos = new JobInfos();\n try {\n JAXBContext ja... |
"private void processTableDeletes(TableData deletes, ISqlTransaction transaction) {\n if (deletes != null) {\n Table table = databasePlatform.getTableFromCache(null, null, deletes.getTableName(), false);\n DmlStatement stmt = databasePlatform.createDmlStatement(DmlType.DELETE, table.getCatalog(), table... |
"public Object getState(String state) {\n try {\n return Enum.valueOf((Class<Enum>) Class.forName(\"String_Node_Str\"), state);\n } catch (ClassNotFoundException e) {\n throw new RuntimeException(e);\n }\n}\n"
|
"private List<String> getFilledParams(String prefix) {\n Pattern filledParamPattern = Pattern.compile(\"String_Node_Str\");\n Matcher matcher = filledParamPattern.matcher(prefix);\n List<String> filledParams = new ArrayList<>();\n while (matcher.find()) {\n filledParams.add(matcher.group());\n }\n... |
"public IBinder onBind(Intent intent) {\n mService = IQSService.Stub.asInterface(intent.getIBinderExtra(EXTRA_SERVICE));\n try {\n ComponentName component = intent.getParcelableExtra(EXTRA_COMPONENT);\n mTile = mService.getTile(component);\n } catch (RemoteException e) {\n throw new Runtim... |
"public void execute() throws DatabaseException {\n try {\n if (listener != null) {\n database.syncInsert(ig);\n listener.insertFinished(context);\n } else\n database.syncInsert(ig);\n } catch (BabuDBException exc) {\n throw new DatabaseException(exc);\n }\... |
"private List<Input> _getInputs() throws IllegalActionException {\n if (workspace().getVersion() == _inputsVersion) {\n return _inputs;\n }\n _inputs = new LinkedList<Input>();\n for (FMIScalarVariable scalarVariable : _fmiModelDescription.modelVariables) {\n if (scalarVariable.alias != null &... |
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n ConnectionSetupTimeSelection other = (ConnectionSetupTimeSelection) obj;\n if (comparator == null) {\n if (other.co... |
"public int generatePreviousValue(final int reference) throws NoSuchValueException {\n List<Integer> candidates = computeCandidates(new Function<FieldValueGenerator, Integer>() {\n public Integer apply(FieldValueGenerator candidateGenerator) {\n try {\n return candidateGenerator.gene... |
"public Instances createTrainingInstances() {\n ArrayList<Attribute> attributes = new ArrayList<Attribute>();\n for (int i = 1; i <= featureStack.getSize(); i++) {\n String attString = featureStack.getSliceLabel(i);\n attributes.add(new Attribute(attString));\n }\n final ArrayList<String> clas... |
"private static void removeInfectedUnits(final TreeLogger logger, final Map<String, CompilationUnitDeclaration> cudsByFileName) {\n final Set<String> pendingRemovals = new HashSet<String>();\n TypeRefVisitor trv = new TypeRefVisitor() {\n protected void onTypeRef(SourceTypeBinding referencedType, Compilati... |
"private String getMultiActionsCallbackContent(MultipleActions actions) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\");\n EMap<String, String> propMap = actions.getPropertiesMap();\n sb.append(getPropertiesJS(propMap).toString());\n int i = 0;\n for (Action subAction : Mu... |
"private void replaceItems(Context c, Collection[] mycollections, String sourceDir, String mapFile, boolean template) throws Exception {\n File d = new java.io.File(sourceDir);\n if (d == null || !d.isDirectory()) {\n throw new Exception(\"String_Node_Str\" + sourceDir);\n }\n Map<String, String> myH... |
"public void generateSchema(SchemaOutputResolver outputResolver) throws IOException {\n if (outputResolver == null) {\n throw new IOException(Messages.NULL_OUTPUT_RESOLVER.format());\n }\n RuntimeTypeInfoSet tis;\n try {\n tis = getTypeInfoSet();\n } catch (IllegalAnnotationsException e) {\... |
"public void boundIn(Mob mob, int blockX, int blockY, float delta) {\n mob.setDeltaMul(MULTIPLIER);\n}\n"
|
"private void setData() {\n RealmResults<RealmDemoData> result = mRealm.allObjects(RealmDemoData.class);\n RealmBubbleDataSet<RealmDemoData> set = new RealmBubbleDataSet<RealmDemoData>(result, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n set.setLabel(\"String_Node_Str\");\n set.setColor... |
"public void updateLocation(S2LatLng s2ll) throws Exception {\n double lat = s2ll.latDegrees();\n double lng = s2ll.lngDegrees();\n String add = \"String_Node_Str\" + Double.toString(lat) + \"String_Node_Str\" + Double.toString(lng) + \"String_Node_Str\" + Double.toString(lat) + \"String_Node_Str\" + Double.to... |
"public void testClosure8() {\n String contents = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n assertExprType(conten... |
"private void throwIce() {\n if (!prepared)\n return;\n LivingEntity target = (LivingEntity) Methods.getTargetedEntity(player, range, new ArrayList<Entity>());\n if (target == null) {\n destination = Methods.getTargetedLocation(player, range, Methods.transparentToEarthbending);\n } else {\n ... |
"public void estForeignContent() throws EngineException {\n String designFile = \"String_Node_Str\";\n IReportRunnable report = openReportDesign(designFile);\n List pageAreas = getPageAreas(report);\n assertEquals(2, pageAreas.size());\n PageArea pageArea = (PageArea) pageAreas.get(1);\n Iterator logi... |
"protected TokenStreamComponents createComponents(final String fieldName, final Reader reader) {\n final WhitespaceAndCommaTokenizer tokenizer = new WhitespaceAndCommaTokenizer(matchVersion, reader);\n TokenStream tok = new LowerCaseFilter(matchVersion, new WordDelimiterFilter(tokenizer, WordDelimiterFilter.GENER... |
"private final Object audit() throws Throwable {\n this.buildTargetLogger();\n this.buildContext();\n Object result = null;\n Throwable error = null;\n this.preAudit(invocation);\n try {\n result = invocation.proceed();\n } catch (Throwable e) {\n this.occuredError = e;\n this.... |
"private String normalizeName(String name) {\n return name.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(... |
"protected List<WebElement> getRowAction(String rowName) {\n return (rowNameTemplate == null) ? getRowAction(index(headers(), rowName) + 1) : table.getWebElement().findElements(fillByTemplate(rowNameTemplate, rowName));\n}\n"
|
"public static void getConfiguration(ContentResolver cr, Configuration outConfig) {\n outConfig.fontScale = Settings.System.getFloat(cr, FONT_SCALE, outConfig.fontScale);\n if (outConfig.fontScale < 0) {\n outConfig.fontScale = 1;\n }\n}\n"
|
"private void refreshDisplayValues(final String adminPWD, final String jdbcPWD) {\n if (!active || teiidServer == null || form.isDisposed())\n return;\n if (hostNameLabel == null || hostNameLabel.isDisposed())\n return;\n hostNameLabel.setText(teiidServer.getHost());\n String versionValue = te... |
"public PrimitiveObject[] getPrimitiveObjectArray(final IExpressionIndex indexList, final int start, final int length) {\n PrimitiveObject[] result = new PrimitiveObject[length];\n int loopEnd = (start + length);\n if (indexList.size() < loopEnd) {\n loopEnd = indexList.size();\n }\n for (int i = ... |
"public static void encrypt(Context context, InputData data, OutputStream outStream, boolean armored, long[] encryptionKeyIds, long signatureKeyId, String signaturePassPhrase, ProgressDialogUpdater progress, int symmetricAlgorithm, int hashAlgorithm, int compression, boolean forceV3Signature, String passPhrase) throws ... |
"public boolean isConnected(Role dest, Role src) {\n Map<Role, ConnectedStatus> tmp = this.map.get(dest);\n if (tmp != null) {\n Boolean b = tmp.get(src);\n return b != null && b;\n }\n return false;\n}\n"
|
"public void testGetJavaFileForInput() {\n CachingFileManager fm = new CachingFileManager(CachingArchiveProvider.getDefault(), bCp, SourceLevelUtils.JDK1_8, false, true);\n JavaFileObject res = fm.getJavaFileForInput(StandardLocation.CLASS_PATH, \"String_Node_Str\", JavaFileObject.Kind.CLASS);\n assertEquals(A... |
"public Object[][] successfulCompiles() {\n return new Object[][] { new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] ... |
"private Response saveTaxonomyByIdOrName(String taxonomyIdOrName, String requestContent, String httpMethod) {\n Taxonomy taxonomyToBeSaved = astroboaClient.getImportService().importTaxonomy(requestContent, false);\n Taxonomy existedTaxonomy = astroboaClient.getTaxonomyService().getTaxonomy(taxonomyIdOrName, Resou... |
"public void run() {\n if (descriptionView.getLineCount() <= HeaderViewHolder.MAX_LINES) {\n descriptionMoreView.setVisibility(View.GONE);\n } else {\n descriptionMoreView.setVisibility(View.VISIBLE);\n }\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.