content stringlengths 40 137k |
|---|
"public static org.hl7.fhir.dstu2.model.Observation.ObservationReferenceRangeComponent convertObservationReferenceRangeComponent(org.hl7.fhir.dstu3.model.Observation.ObservationReferenceRangeComponent src) throws FHIRException {\n if (src == null)\n return null;\n org.hl7.fhir.dstu2.model.Observation.Obser... |
"protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK) {\n switch(requestCode) {\n case INTENT_CODE_ACTIVITY_PICTURE:\n Toast.makeText(this, getResources().getString(R.string.imageSavedIn) + pictureSavePath, Toast.LENGTH_LONG).... |
"public StreamEvent find(StateEvent matchingEvent, TimePeriod.Duration perValue, Map<TimePeriod.Duration, IncrementalExecutor> incrementalExecutorMap, List<TimePeriod.Duration> incrementalDurations, Table tableForPerDuration, List<ExpressionExecutor> baseExecutors, ExpressionExecutor timestampExecutor, List<ExpressionE... |
"private JSType evalTemplateTypeOf(Node ttlAst, NameResolver nameResolver) {\n ImmutableList<Node> params = getCallParams(ttlAst);\n JSType type = evalInternal(params.get(0), nameResolver);\n if (!type.isTemplatizedType()) {\n reportWarning(ttlAst, TEMPTYPE_INVALID, \"String_Node_Str\", type.toString())... |
"public void shutdown() throws ExecutionException, InterruptedException {\n this.stop = true;\n semPendingReqs.release();\n this.ft.get();\n LOG.debug(\"String_Node_Str\");\n}\n"
|
"public void progress() {\n if (player.isDead() || !player.isOnline()) {\n remove();\n return;\n } else if (GeneralMethods.isRegionProtectedFromBuild(player, \"String_Node_Str\", location)) {\n remove();\n return;\n }\n ticks++;\n if (ticks > MAX_TICKS) {\n remove();\n ... |
"public static org.hl7.fhir.dstu2016may.model.TestScript.TeardownActionComponent convertTeardownActionComponent(org.hl7.fhir.dstu3.model.TestScript.TeardownActionComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.TestScript.TeardownActi... |
"public boolean execute(final PlotPlayer plr, final String... args) {\n if (plr == null) {\n if (args.length < 3) {\n return !MainUtil.sendMessage(null, \"String_Node_Str\");\n }\n final String world = args[0];\n if (!BlockManager.manager.isWorld(world) || !PlotSquared.isPlotWo... |
"private void buildComplete(final Transformation optimum, Map<String, Integer> headermap) {\n this.size = (int) solutions.getSize();\n int[] offsets = solutions.getMultipliersForLowDimensionalData();\n int[] maxLevels = solutions.getTop().getGeneralization();\n int[] minLevels = solutions.getBottom().getGen... |
"public void drawText(String text, float textX, float textY, float width, float height, FontInfo fontInfo, Color color) {\n BaseFont baseFont = fontInfo.getBaseFont();\n String fontName = getFontName(baseFont);\n String red = Integer.toHexString(color.getRed());\n String green = Integer.toHexString(color.ge... |
"public void run() {\n StreamingSerializer ifcSerializer = ifcSerializerPlugin.createSerializer(new PluginConfiguration());\n try (RenderEngine renderEngine = renderEnginePlugin.createRenderEngine(new PluginConfiguration(), queryContext.getPackageMetaData().getSchema().getEPackageName())) {\n renderEngine.... |
"public void testGenerics() {\n String s = genericSimple(\"String_Node_Str\");\n assertEquals(\"String_Node_Str\", s);\n String v = genericGet(s);\n assertEquals(\"String_Node_Str\", v);\n List<String> list = new ArrayList<String>();\n list.add(\"String_Node_Str\");\n Object obj = genericWildcard(l... |
"public boolean select(Viewer viewer, Object parentElement, Object element) {\n if (element instanceof IFile) {\n IFile file = (IFile) element;\n if (FactoriesUtil.DQRULE.equals(file.getFileExtension())) {\n return true;\n }\n } else if (element instanceof IFolder) {\n IFold... |
"public void fillArc(ArcRenderEvent are) throws ChartException {\n if (iv != null) {\n iv.modifyEvent(are);\n }\n final Fill flBackground = validateMultipleFill(are.getBackground());\n if (isFullTransparent(flBackground)) {\n return;\n }\n if (flBackground instanceof ColorDefinition) {\n... |
"public void run() {\n while (isRunning) {\n if (gameState == GAMESTATE_LOADING_RESOURCES) {\n if (renderer.allLoaded) {\n gameState = GAMESTATE_STORY;\n gameStateTimer = android.os.SystemClock.uptimeMillis();\n initialize();\n }\n } el... |
"public String getTimeSystemSetting() {\n return this.get(PlotConstants.TIME_SYSTEM_SETTING, String.class);\n}\n"
|
"public String apply(StorageMetadata input) {\n String result = input.getName();\n result = Strings.removeFromStart(result, containerSubPath);\n result = Strings.removeFromStart(result, \"String_Node_Str\");\n return result;\n}\n"
|
"public static Map<String, Object> parseResponse(RestResponse response, HandlerContext handlerCtx, String endpoint, Object attrs, boolean quiet, boolean throwException) {\n String message = \"String_Node_Str\";\n ExitCode exitCode = ExitCode.FAILURE;\n Object maskedAttr = attrs;\n if ((attrs != null) && (at... |
"public void printConfigOptions(Writer errout, boolean showActualConfiguration) {\n String pad = \"String_Node_Str\";\n try {\n errout.write(\"String_Node_Str\");\n if (showActualConfiguration) {\n errout.write(\"String_Node_Str\");\n } else {\n errout.write(\"String_Nod... |
"public static boolean hasPermission(Player player, String ability) {\n if (player.hasPermission(\"String_Node_Str\" + ability) && canBind(player.getName(), ability))\n return true;\n return false;\n}\n"
|
"private GraphTargetItem command(Reference<Boolean> needsActivation, List<String> importedClasses, List<Integer> openedNamespaces, Stack<Loop> loops, Map<Loop, String> loopLabels, HashMap<String, Integer> registerVars, boolean inFunction, boolean inMethod, int forinlevel, boolean mustBeCommand, List<AssignableAVM2Item>... |
"public void run() {\n NSIndexSet removedIndexes = collectionChanges.getRemovedIndexes();\n if (removedIndexes != null && removedIndexes.size() > 0) {\n collectionView.deleteItems(getIndexPathsFromIndexesWithSection(removedIndexes, 0));\n }\n NSIndexSet insertedIndexes = collectionChanges.getInserted... |
"private void deleteTemplate(DataObject data, AsyncCompletionCallback<CommandResult> callback) {\n TemplateObject templateObj = (TemplateObject) data;\n VMTemplateVO template = templateObj.getImage();\n ImageStoreImpl store = (ImageStoreImpl) templateObj.getDataStore();\n long storeId = store.getId();\n ... |
"public String generateMainLoop() throws IllegalActionException {\n StringBuffer code = new StringBuffer();\n Attribute iterations = _director.getAttribute(\"String_Node_Str\");\n if (iterations == null) {\n code.append(_eol + \"String_Node_Str\" + _eol);\n } else {\n int iterationCount = ((In... |
"public void createControl(Composite parent) {\n initializeDialogUnits(parent);\n Composite workArea = new Composite(parent, SWT.NONE);\n setControl(workArea);\n workArea.setLayout(new GridLayout(2, false));\n workArea.setLayoutData(new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GR... |
"public static int getCurrentMemberIndex(String serviceName, String clusterId) {\n String key = prepareKey(serviceName, clusterId);\n return LoadBalancerCache.getInteger(Constants.ALGORITHM_CONTEXT_CACHE, key);\n}\n"
|
"public void composeJobs() throws IOException {\n if (this.jobs.size() == 0) {\n return;\n }\n final String hadoopFileJar;\n if (new File(\"String_Node_Str\" + Tokens.FAUNUS_JOB_JAR).exists())\n hadoopFileJar = \"String_Node_Str\" + Tokens.FAUNUS_JOB_JAR;\n else if (new File(\"String_Node_S... |
"private void getPermissionsForPackage(String packageName, Set<PermissionInfo> permSet) {\n PackageInfo pkgInfo;\n try {\n pkgInfo = mPm.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS);\n } catch (NameNotFoundException e) {\n Log.w(TAG, \"String_Node_Str\" + packageName);\n ret... |
"protected void handleOnlineIncome() {\n if (playersActivities.size() == 0)\n return;\n if (iConomy == null) {\n logger.warning(\"String_Node_Str\");\n return;\n }\n for (Player player : getServer().getOnlinePlayers()) {\n final int activity = getActivity(player);\n if ((i... |
"private void processNonRoot(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {\n DataObject owner = (DataObject) currentDataObjects.peek();\n if ((owner != null) && !owner.getType().isOpen()) {\n return;\n }\n Property globalProperty = aHelperContext.getXSDHe... |
"public void onButtonClicked(ButtonEvent event) {\n weaponDialog.getBounds().setLocation(getBounds().x, getBounds().y - 20);\n weaponDialog.show();\n}\n"
|
"public boolean onStart() {\n if (!mDisplayHardware.hasColorAdjustment()) {\n return false;\n }\n mDayTemperature = getDayColorTemperature();\n mNightTemperature = getNightColorTemperature();\n registerSettings(DISPLAY_TEMPERATURE_DAY, DISPLAY_TEMPERATURE_NIGHT);\n}\n"
|
"public void restoreState(IMemento aMemento) {\n IMemento[] children = aMemento.getChildren(ICommand.MEM_TYPE_COMMAND);\n if (children != null) {\n commands.clear();\n for (IMemento childMem : children) {\n ICommand cmd = manager.restoreCommand(childMem);\n if (cmd != null) {\n... |
"public void setMyPet(MyPet myPet) {\n if (myPet != null) {\n super.setMyPet(myPet);\n MyPigZombie myPigZombie = (MyPigZombie) myPet;\n for (EquipmentSlot slot : EquipmentSlot.values()) {\n if (myPigZombie.getEquipment(slot) != null) {\n setPetEquipment(slot.getSlotId()... |
"public void doExecute() throws Exception, InterruptedException {\n try {\n BytableWrapper stopMessage = new BytableWrapper();\n stopMessage.setCurrentIteration(context.getCurrentIteration());\n stopMessage.setContainerId(context.getContainerId());\n stopMessage.setStopMessage(true);\n ... |
"public INode without(AtomicReference<Thread> edit, int shift, int hash, Object key, Box removedLeaf) {\n int idx = findIndex(key);\n if (idx == -1)\n return this;\n if (array.length == 2)\n return null;\n HashCollisionNode editable = ensureEditable(edit);\n editable.array[idx] = editable.a... |
"public void createLockedDocument() {\n openPage(documentLibrary, COLLAB_SITE_ID);\n documentLibrary.getToolbar().clickOnFile().uploadFile(LOCKED_DOCUMENT);\n documentLibrary.getDocument(LOCKED_DOCUMENT).clickOnLink().getDocumentActionsPanel().clickOnActionAndDontRender(DocumentActions.EDIT_OFFLINE);\n open... |
"public void destroy() {\n Filter reference = filter.get();\n if (null == reference || destroyedSoFar.contains(reference)) {\n return;\n }\n reference.destroy();\n}\n"
|
"public static void removeNshMap(final DataBroker dataBroker, final Long nsp, final Short nsi, final Long mappedNsp, final Short mappedNsi, String vppNode) {\n final DataBroker vppDataBroker = dataBroker;\n final WriteTransaction wTx = vppDataBroker.newWriteOnlyTransaction();\n String nshMapKey = buildNshMapKe... |
"public IValue resolve(MarkerList markers, IContext context) {\n if (this.pattern != null) {\n this.pattern.resolve(markers, context);\n if (this.type == null) {\n this.getType();\n }\n IType type1 = this.type.resolveTypeSafely(PAR_TYPE);\n this.pattern = this.pattern.wi... |
"public String toString() {\n return \"String_Node_Str\" + mapsTos + \"String_Node_Str\";\n}\n"
|
"public void processRequest() throws Exception {\n FormDiscrepancyNotes discNotes = null;\n FormProcessor fp = new FormProcessor(request);\n int studyEventId = fp.getInt(EVENT_ID, true);\n int studySubjectId = fp.getInt(STUDY_SUBJECT_ID, true);\n String module = fp.getString(MODULE);\n request.setAttr... |
"static int getIntArg(Evaluator evaluator, Exp[] args, int index) {\n Object o = getScalarArg(evaluator, args, index);\n if (o instanceof Number) {\n return ((Number) o).intValue();\n } else {\n String s = o.toString();\n double d = Double.valueOf(s).doubleValue();\n return (int) d;... |
"private List<String> getControllers() {\n try {\n if (\"String_Node_Str\".equals(props.getProperty(\"String_Node_Str\" + zki.getName() + \"String_Node_Str\"))) {\n return zk.getChildren(\"String_Node_Str\", false);\n } else {\n return zk.getChildren(\"String_Node_Str\", false);\n... |
"public void setStoreBased(boolean storeBased) {\n isStoreBased = storeBased;\n if (isStoreBased) {\n opertionID = (int) System.currentTimeMillis();\n this.kryoSerializer = new KryoSerializer();\n Path dataPath = new Path(MPIContext.networkStoragePath(config) + \"String_Node_Str\" + this.exec... |
"protected String getViewerWidgetCode() {\n return viewerWidgetCode;\n}\n"
|
"public void testOwner() throws Exception {\n String ownerPrincipal = \"String_Node_Str\";\n HttpResponse response = deploy(WordCountApp.class, Constants.Gateway.API_VERSION_3_TOKEN, TEST_NAMESPACE1, ownerPrincipal);\n Assert.assertEquals(HttpResponseStatus.OK.getCode(), response.getStatusLine().getStatusCode(... |
"public Object getObjectFromResultSet(ResultSet resultSet, int columnNumber, int type, AbstractSession session) throws java.sql.SQLException {\n if ((type == Types.TIMESTAMP) || (type == Types.DATE)) {\n return resultSet.getTimestamp(columnNumber);\n } else if (type == oracle.jdbc.OracleTypes.TIMESTAMPTZ) ... |
"public void buildContextMenu(IMenuManager menuManager) {\n if (proxy != null) {\n proxy.menuAboutToShow(menuManager);\n proxy = null;\n return;\n }\n GEFActionConstants.addStandardActionGroups(menuManager);\n Object firstSelectedElement = getFirstElement();\n Object selectedElements... |
"public static String timestampToString(final long timestamp) {\n return DATA_FORMATTER.get().format(new Date(timestamp));\n}\n"
|
"private void splitInternalNode(RStarInternal splittingNode, RStarNode newChild) {\n ArrayList<Long> childPointers = splittingNode.childPointers;\n if (childPointers.size() <= 0) {\n throw new AssertionError();\n }\n ArrayList<RStarNode> children = new ArrayList<RStarNode>(childPointers.size());\n ... |
"public boolean processEvent(Event event) {\n if (event instanceof IContainerConnectedEvent) {\n IContainerConnectedEvent ccevent = (IContainerConnectedEvent) event;\n if (!ccevent.getTargetID().equals(getConnectedID()))\n sendHelloMessage();\n }\n return false;\n}\n"
|
"protected void doStart() {\n setAttribute(IS_CLUSTER_INITIALIZED, false);\n super.doStart();\n connectSensors();\n setAttribute(BUCKET_CREATION_IN_PROGRESS, false);\n Tasks.setBlockingDetails(\"String_Node_Str\");\n Time.sleep(getConfig(NODES_STARTED_STABILIZATION_DELAY));\n Optional<Set<Entity>> ... |
"private static String[] queryIDListToQueries(LinkedList<Integer> queryList, File input) throws IOException {\n FileInputStream fis = null;\n BufferedReader br = null;\n String line = \"String_Node_Str\";\n String[] ret = new String[queryList.size()];\n Collections.sort(queryList);\n Collections.rever... |
"protected void refreshReceiverLayout(final LinearLayout receiversLayout, final boolean leftAlign, final String eventId, final RoomState roomState) {\n if (null == roomState) {\n return;\n }\n IMXStore store = mSession.getDataHandler().getStore();\n List<ReceiptData> receipts = store.getEventReceipts... |
"public static String getGuiStringForParamValue(final IParameterInterfacePO node, final IParamDescriptionPO desc, int rowCount) {\n String result = StringConstants.EMPTY;\n IParameterInterfacePO srcNode = node;\n IParamDescriptionPO srcDesc = desc;\n while (srcNode.getReferencedDataCube() != null) {\n ... |
"public void testMath85issue280() throws Exception {\n AstorMain main1 = new AstorMain();\n String dep = new File(\"String_Node_Str\").getAbsolutePath();\n String[] args = new String[] { \"String_Node_Str\", dep, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_... |
"public float getFullWidth(Paint labelpaint) {\n float width = 0f;\n for (int i = 0; i < mLegendLabels.length; i++) {\n if (mLegendLabels[i] != null) {\n if (mColors[i] != -2)\n width += mFormSize + mFormToTextSpace;\n width += Utils.calcTextWidth(labelpaint, mLegendLab... |
"public RTPTranslator getRTPTranslator() {\n synchronized (rtpLevelRelaySyncRoot) {\n if ((rtpTranslator == null) && !expired) {\n rtpTranslator = getMediaService().createRTPTranslator();\n if (rtpTranslator != null) {\n new RTPTranslatorWriteFilter(rtpTranslator, this);\n... |
"private void openCamera() {\n if (mCamera != null) {\n releaseCamera();\n }\n mCamera = Camera.open(mCameraId);\n mCameraParameters = mCamera.getParameters();\n adjustCameraParameters();\n mCamera.setDisplayOrientation(calculatePreviewRotation());\n mCameraListener.onCameraOpened();\n}\n"
|
"protected boolean isParameterRequired(String paramName) {\n if (paramName == null) {\n return false;\n }\n if (parameterList != null) {\n for (Iterator<ParameterHandle> iter = parameterList.iterator(); iter.hasNext(); ) {\n Object obj = iter.next();\n if (obj instanceof Sca... |
"public Long generateIdentifierFromEntity(User entity) {\n return entity.getId();\n}\n"
|
"public boolean execute() {\n IFile talendDefinitionFile = DefinitionHandler.getTalendDefinitionFile();\n if (talendDefinitionFile.exists()) {\n try {\n talendDefinitionFile.delete(true, null);\n DefinitionHandler.getInstance();\n } catch (Exception e) {\n log.error(... |
"private void fullyPopulateCache(String table, SettingsCache cache) {\n SQLiteDatabase db = mOpenHelper.getReadableDatabase();\n Cursor c = db.query(table, new String[] { Settings.NameValueTable.NAME, Settings.NameValueTable.VALUE }, null, null, null, null, null, \"String_Node_Str\" + (MAX_CACHE_ENTRIES + 1));\n ... |
"public InformedSearchProblem<WeightedEdge, V, Double> in(final HipsterDirectedGraph<V, WeightedEdge> graph) {\n return ProblemBuilder.create().initialState(fromVertex).goalState(toVertex).defineProblemWithExplicitActions(WeightedEdge.class).useTransitionFunction(new TransitionFunction<WeightedEdge, V>() {\n\n ... |
"public static void checkVmMaxConfiguration(final String vmId, final int cpuNumber, final long memory) {\n int hardwareVersion = VcContext.inVcSessionDo(new VcSession<Integer>() {\n protected Integer body() throws Exception {\n final VcVirtualMachine vcVm = VcCache.getIgnoreMissing(vmId);\n ... |
"private synchronized static ITmfTrace<LttngEvent>[] setupTrace(final String path) {\n if (fTestTraces == null) {\n fTestTraces = new ITmfTrace[1];\n try {\n final URL location = FileLocator.find(FrameworkUtil.getBundle(LTTngExperimentTest.class), new Path(path), null);\n final Fi... |
"private boolean isTemp(String name) {\n return (name.matches(\"String_Node_Str\") || name.matches(\"String_Node_Str\") || name.matches(\"String_Node_Str\") || ExprMetaUtil.POS_NAME.equals(name));\n}\n"
|
"protected PerspectiveInitializationData cluster() {\n if (progressAndCancel(1, false))\n return canceled();\n final int nrDimensions = oppositeVA.size();\n final int[] assignments = new int[va.size()];\n Arrays.fill(assignments, -1);\n float[] vector = new float[nrDimensions];\n final List<Clu... |
"protected BufferedDataTable[] execute(BufferedDataTable[] inData, ExecutionContext exec) throws Exception {\n BufferedDataTable input = inData[0];\n DataTableSpec inputSpec = input.getDataTableSpec();\n List<Attribute> parameter = new ArrayList<Attribute>();\n for (String item : parameterNames.getIncludeLi... |
"public boolean canExtractItem(int slot, ItemStack stack, int side) {\n if (sides[side] == WrenchModes.Mode.Disabled)\n return false;\n if ((sides[side] == WrenchModes.Mode.Output) || (sides[side] == WrenchModes.Mode.Normal)) {\n if (slot == OUTPUT_SLOT) {\n return true;\n } else i... |
"public boolean onTouch(View v, MotionEvent event) {\n if (mVelocityTracker == null) {\n mVelocityTracker = VelocityTracker.obtain();\n }\n mVelocityTracker.addMovement(event);\n if (event.getActionMasked() == MotionEvent.ACTION_CANCEL) {\n if (mVelocityTracker != null) {\n mVelocit... |
"private final void performLayoutLockedInner() {\n final int dw = mDisplay.getWidth();\n final int dh = mDisplay.getHeight();\n final int N = mWindows.size();\n int i;\n while (mLayoutNeeded) {\n mPolicy.beginLayoutLw(dw, dh);\n int topAttached = -1;\n for (i = N - 1; i >= 0; i--) {\... |
"private static void populateAggrKeysForTargetResultSet(IAggregationResultSet base, IAggregationResultSet targetResultSet, int[] sortIndex, ITargetSort[] targetSorts, IDiskArray[] keyDiskArrays) throws IOException {\n AggrSortDefinition sortDefinition = (AggrSortDefinition) targetSorts[sortIndex[0]];\n DimLevel t... |
"public void checkPostTipOffReport() {\n qiuckToastCheck();\n mDriver.findElement(By.id(\"String_Node_Str\")).click();\n WaitUtil.implicitlyWait(2);\n mDriver.findElement(By.xpath(\"String_Node_Str\")).click();\n WaitUtil.implicitlyWait(2);\n AndroidElement reportContent = mDriver.findElement(By.id(\"... |
"public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n if (action.equalsIgnoreCase(Intent.ACTION_PACKAGE_ADDED) || action.equalsIgnoreCase(Intent.ACTION_PACKAGE_REPLACED)) {\n RouterServiceValidator.invalidateList(context);\n return;\n }\n if (!(action... |
"public FormValidation doCheckRemote(StaplerRequest req, AbstractProject context, String value) {\n String url = Util.nullify(value);\n if (url == null)\n return FormValidation.ok();\n url = url.trim();\n if (isValidateRemoteUpToVar()) {\n url = (url.indexOf('$') != -1) ? url.substring(0, url.... |
"private static TextRange calcTagNameRange(XmlTag t) {\n TextRange tr = t.getFirstChild().getNextSibling().getTextRange();\n return tr.shiftRight(-t.getTextRange().getStartOffset());\n}\n"
|
"protected void attachBaseContext(Context newBase) {\n super.attachBaseContext(new CalligraphyContextWrapper(newBase, R.attr.fontPath));\n}\n"
|
"protected void calculateDetailBands(HeatMapWrapper leftHeatMapWrapper, HeatMapWrapper rightHeatMapWrapper) {\n ArrayList<Integer> bandContentIDs = null;\n DetailBand detailBand = null;\n for (GLHeatMap leftHeatMap : leftHeatMapWrapper.getHeatMaps(considerSelections)) {\n ContentVirtualArray leftContent... |
"public void addSource(IFile file) {\n if (\"String_Node_Str\".equals(file.getProjectRelativePath().segment(0))) {\n return;\n }\n Iterable<Long> it = Fun.filter(idxResources, file.getProject().getName(), file.getFullPath().toString());\n for (Long modStamp : it) {\n if (modStamp == file.getMo... |
"public Collection getSelectionList(String name) {\n try {\n switchToOsgiClassLoader();\n return doGetSelectionList(name);\n } finally {\n switchClassLoaderBack();\n }\n String selectionType = parameter.getValueType();\n String dataType = parameter.getDataType();\n boolean fixedOr... |
"public RssFeed receiveFeed(String feedPath) throws IOException {\n RssFeed feed = null;\n final ISynchAsynchConnection connection = getConnection();\n synchronized (connection) {\n if (connection.isConnected()) {\n try {\n feed = FeedParser.parse((byte[]) connection.sendSynch(... |
"static ByteBuffer convertAudioBytes(ByteBuffer samples, boolean stereo) {\n ByteBuffer dest = ByteBuffer.allocateDirect(samples.capacity());\n dest.order(ByteOrder.nativeOrder());\n if (twoByteSamples) {\n ShortBuffer dest_short = dest.asShortBuffer();\n ShortBuffer src_short = samples.asShortBu... |
"public void update(ModelEvent event) {\n super.update(event);\n if (event.part == ModelPart.SELECTED_FEATURES_OR_CLASSES || event.part == ModelPart.DATA_TYPE) {\n if (getModel() != null && (getModel().getSelectedFeatures().isEmpty() || getModel().getSelectedClasses().isEmpty())) {\n doReset();\... |
"private static ClassLoader[] getClassLoaders() {\n ClassLoader[] classLoaders = new ClassLoader[2];\n classLoaders[0] = SmackConfiguration.class.getClassLoader();\n classLoaders[1] = Thread.currentThread().getContextClassLoader();\n List<ClassLoader> loaders = new ArrayList<ClassLoader>();\n for (ClassL... |
"private void drawStones(int x, int y, IMapObject object, float color) {\n Sequence<? extends Image> seq = this.imageProvider.getSettlerSequence(OBJECTS_FILE, STONE);\n int stones = seq.length() - availableStones - 1;\n draw(seq.getImageSafe(stones), x, y, color);\n}\n"
|
"public void updateCore(World world, int x, int y, int z, int meta) {\n if (world.playerEntities.isEmpty())\n return;\n if (world.rand.nextInt(3) == 0) {\n int halfsz = ComponentIsland.halfSize, playerCheck = halfsz * 2;\n SpawnEntry entry = spawnEntries.containsKey((byte) meta) ? spawnEntrie... |
"public void run() {\n try {\n SocketChannel socketChannel = null;\n for (; ; ) {\n try {\n socketChannel = SocketChannel.open(new InetSocketAddress(clientPort.host, clientPort.port));\n LOG.info(\"String_Node_Str\" + clientPort + \"String_Node_Str\" + map.getId... |
"public void replaceChangedFile(Replica replica, String filename, String credentials, String checksum) {\n ArgumentNotValid.checkNotNull(replica, \"String_Node_Str\");\n ArgumentNotValid.checkNotNullOrEmpty(filename, \"String_Node_Str\");\n ArgumentNotValid.checkNotNullOrEmpty(checksum, \"String_Node_Str\");\n... |
"public void run() {\n while ((!isInterrupted()) && (!stopped)) {\n long now = System.currentTimeMillis();\n if (now > (lastChecked + pruneFlushInterval)) {\n try {\n User.runAsLoginUser(new PrivilegedExceptionAction<Void>() {\n public Void run() throws Exce... |
"public void computeOutputEstimates(DataStatistics statistics) {\n boolean allPredsAvailable = true;\n for (List<PactConnection> incomingConnections : getIncomingConnections()) {\n if (allPredsAvailable) {\n for (PactConnection incomingConnection : incomingConnections) {\n if (inc... |
"private ISelection getNewSelection(ISelection selection) {\n if (!(getModel() instanceof DesignElementHandle)) {\n return selection;\n }\n if (!(selection instanceof IStructuredSelection)) {\n return selection;\n }\n List<Object> temp = new ArrayList<Object>();\n List list = ((IStructur... |
"public I cache(I id) {\n ArgumentNotValid.checkNotNull(id, \"String_Node_Str\");\n File cachedFile = getCacheFile(id);\n if (cachedFile.exists()) {\n return id;\n } else {\n try {\n File fileBehindLockFile = new File(cachedFile.getAbsolutePath() + \"String_Node_Str\");\n ... |
"public void resolveTypes(List<Marker> markers, IContext context) {\n this.condition.resolveTypes(markers, context);\n if (this.then != null) {\n if (this.then.isStatement()) {\n ((IStatement) this.then).setParent(this);\n this.then.resolveTypes(markers, context);\n } else {\n ... |
"private XStorageTableElement createStorageTblElement(String storageName, String table, String... updatePeriod) {\n XStorageTableElement tbl = cubeObjectFactory.createXStorageTableElement();\n tbl.setStorageName(storageName);\n if (updatePeriod != null) {\n for (String p : updatePeriod) {\n t... |
"private void visitCode(Set<Integer> visited, TranslateStack stack, int classIndex, boolean isStatic, MethodBody body, int scriptIndex, ABC abc, AVM2Code code, int idx, int endIdx, ExecutionResult result) {\n List<GraphTargetItem> output = new ArrayList<>();\n AVM2LocalData localData = newLocalData(scriptIndex, a... |
"public String post(String soapAction, String requestEnvelope) {\n log.debug(String.format(\"String_Node_Str\", serverUrl.toString(), soapAction, requestEnvelope));\n openConnection();\n configureTls();\n configureConnection();\n decorateConnectionWithSoap(soapAction, requestEnvelope);\n String respon... |
"public List<RAttr> findInheritedAttributes() {\n final Map<RSchema, RAttr> result = new HashMap<RSchema, RAttr>();\n if (isInheritAttributes() && getParent() != null) {\n result.addAll(getParent().findInheritedAttributes());\n }\n return result;\n}\n"
|
"public static void destroyAd(Activity activity) {\n if (!AD_ENABLED) {\n return;\n }\n View adLayout = activity == null ? null : activity.findViewById(R.id.ad_layout);\n if (adLayout != null) {\n AdView adView = (AdView) adLayout.findViewById(R.id.ad);\n if (adView != null) {\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.