content stringlengths 40 137k |
|---|
"private void callPropertyChange(PropertyChangeEvent event) {\n String propertyName = event.getPropertyName();\n if (MediaAwareCall.CONFERENCE.equals(propertyName) || MediaAwareCall.DEFAULT_DEVICE.equals(propertyName)) {\n MediaAwareCall<?, ?, ?> call = getPeer().getCall();\n if (call == null)\n ... |
"public void rcDropCellByColValue(String row, String rowOperator, String value, String regex, String searchType, int delayBeforeDrop) {\n try {\n TableAdapter adapter = (TableAdapter) getComponent();\n int implRow = adapter.getRowFromString(row, rowOperator);\n int implCol = super.findColumn(val... |
"protected void executePatch() {\n if (siteService.getSite(RM_SITE_ID) != null) {\n List<SavedSearchDetails> savedSearches = recordsManagementSearchService.getSavedSearches(RM_SITE_ID);\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"String_Node_Str\" + savedSearches.size() + \"String_Node... |
"public void setPosition(Coord2D coord) {\n try {\n guidedPoint.forcedGuidedCoordinate(coord);\n } catch (Exception e) {\n Log.e(TAG, \"String_Node_Str\", e);\n }\n}\n"
|
"private CoordinateSystemAxis parseAxis(final Element parent, final Unit<?> unit, final boolean mandatory) throws ParseException {\n final Element element;\n if (mandatory) {\n element = parent.pullElement(WKTKeywords.Axis);\n } else {\n element = parent.pullOptionalElement(WKTKeywords.Axis);\n ... |
"public Boolean call() throws Exception {\n return stage.isShowing();\n}\n"
|
"public Boolean apply(WebDriver driver) {\n try {\n String value = getLocationPreview().getPathAsString();\n currentValue.setLength(0);\n currentValue.append(value);\n return expectedContent.equals(value);\n } catch (NotFoundException e) {\n return false;\n } catch (StaleElem... |
"public Linked<ChannelConfiguration> createChannel(ChannelCreationRequest channelCreationRequest) {\n String channelName = channelCreationRequest.getName();\n ChannelConfiguration channelConfiguration = channelDao.createChannel(channelName);\n URI channelUri = linkBuilder.buildChannelUri(channelConfiguration);... |
"private void updateSelectionStatus(final JavaSelectionEvent selection) {\n final IJavaElement element = selection.getElement();\n final String text = JavaElementLabels.getElementLabel(element, LABEL_FLAGS);\n selectionStatus.setText(text);\n selectionStatus.setImage(labelProvider.getImage(element));\n}\n"
|
"public void run() {\n for (Group group : viewSpecificGroups) {\n for (Control subControl : group.getChildren()) {\n if (subControl instanceof Label && subControl.getData() == group) {\n if (group.getData(\"String_Node_Str\") != null && ((Integer) group.getData(\"String_Node_Str\")).... |
"public void startSync() {\n if (plugin.syncRunning) {\n return;\n }\n plugin.syncRunning = true;\n try {\n boolean goNext = true;\n int f = 1;\n while (goNext) {\n long startID = plugin.lastID;\n JsonHandler webHandle = new JsonHandler(plugin);\n ... |
"protected String buildDrillAction(IAction action, IReportContext context) {\n if (action == null || context == null)\n return null;\n String baseURL = getBaseUrl(context);\n StringBuffer link = new StringBuffer();\n String reportName = getReportName(context, action);\n if (reportName != null && !... |
"public void fromBinary(final byte[] bytes) {\n final ByteBuffer buf = ByteBuffer.wrap(bytes);\n binId = new byte[buf.getInt()];\n buf.get(binId);\n final byte[] indexRangesBinary = new byte[bytes.length - 5 - binId.length];\n buf.get(indexRangesBinary);\n indexRanges = PersistenceUtils.fromBinary(ind... |
"public void userAddPermission(Plugin plugin, CommandSender sender, Map<String, String> args) {\n PermissionUser user = PermissionsPlugin.getPermissionManager().getUser(args.get(\"String_Node_Str\"));\n if (user == null) {\n sender.sendMessage(ChatColor.RED + \"String_Node_Str\");\n return;\n }\n... |
"public InetAddress getGatewayAddress() {\n return mGateway.toInetAddress();\n}\n"
|
"public void shouldParse8MWords() throws Exception {\n final List<File> files = Arrays.asList(new File(\"String_Node_Str\"), new File(\"String_Node_Str\"), new File(\"String_Node_Str\"), new File(\"String_Node_Str\"), new File(\"String_Node_Str\"));\n final LinkedList<String> words = new LinkedList<>();\n fina... |
"public int updateClipPlanes(GL3 gl, List<GLClipPlane> clips) {\n float[] clipbuff = new float[getSize() / GLSupport.FLOAT_SIZE];\n int nclips = 0;\n for (GLClipPlane cp : clips) {\n if (cp.isClippingEnabled()) {\n int idx = getOffset(nclips) / Float.BYTES;\n cp.getClipPlaneValues(... |
"public void requestInstance(JobID jobID, Configuration conf, InstanceType instanceType) throws InstanceException {\n boolean assignmentSuccessful = false;\n AllocatedResource allocatedResource = null;\n synchronized (this.synchronizationObject) {\n if (this.localInstance != null) {\n if (thi... |
"public void flush() {\n playbackPositionUs = 0;\n while (!queuedInputBuffers.isEmpty()) {\n releaseInputBuffer(queuedInputBuffers.poll());\n }\n if (dequeuedInputBuffer != null) {\n releaseInputBuffer(dequeuedInputBuffer);\n dequeuedInputBuffer = null;\n }\n}\n"
|
"private static String getTipFromPathDeep(NBTTagCompound n, List<String> pathDeep, String type) {\n if (pathDeep.size() == 1) {\n String tagName = pathDeep.get(0);\n String value = NBTHelper.NBTTypeToString(n, tagName, type);\n if (value == null) {\n return null;\n }\n r... |
"public static void removeStarFadeColorsRaw(Item fireworkStar, int... rawColors) {\n if (fireworkStar == null || fireworkStar.getType() != ItemType.FireworkStar) {\n return;\n }\n if (rawColors == null || rawColors.length < 1) {\n return;\n }\n if (verifyTags(fireworkStar, \"String_Node_Str... |
"public void process(T gray) {\n configureContourDetector(gray);\n binary.reshape(gray.width, gray.height);\n inputToBinary.process(gray, binary);\n squareDetector.process(gray, binary);\n squareDetector.refineAll();\n squareDetector.getPolygons(candidates, candidatesInfo);\n found.reset();\n if... |
"protected void refreshData() {\n try {\n if (conceptCombo.isDisposed())\n return;\n XtentisPort port = Util.getPort(getXObject());\n WSDataCluster cluster = null;\n if (getXObject().getWsObject() == null) {\n cluster = port.getDataCluster(new WSGetDataCluster((WSDat... |
"public Container or(ArrayContainer value2) {\n ArrayContainer value1 = this;\n final int desiredcapacity = Math.min(value1.getCardinality() + value2.getCardinality(), 65536);\n ArrayContainer answer = new ArrayContainer(desiredcapacity);\n answer.cardinality = Util.union2by2(value1.content, value1.getCardi... |
"public void existingJobMapPrincipal() {\n List<Permission> permissions = Arrays.asList(new Permission[] { new Permission(new Owner(\"String_Node_Str\"), EnumSet.of(Role.OWNER_ADMIN)) });\n Principal principal = new UserPrincipal(\"String_Node_Str\", permissions);\n when(this.principalProvider.get()).thenRetur... |
"protected VBD createVbd(Connection conn, VolumeTO volume, String vmName, VM vm) throws XmlRpcException, XenAPIException {\n VolumeType type = volume.getType();\n VDI vdi = mount(conn, vmName, volume);\n VBD.Record vbdr = new VBD.Record();\n vbdr.VM = vm;\n if (vdi != null)\n vbdr.VDI = vdi;\n ... |
"public InputStream post(String soapMsg) throws IOException {\n HttpURLConnection postCon = (HttpURLConnection) baseUrl.openConnection();\n if (connectTimeout > 0)\n postCon.setConnectTimeout(connectTimeout);\n if (readTimeout > 0)\n postCon.setReadTimeout(readTimeout);\n try {\n postCo... |
"private void sendGeologistToNearest(Movable geologist, EResourceType resourceType) {\n ShortPoint2D resourcePoint = aiStatistics.getNearestResourcePointForPlayer(aiStatistics.getPositionOfPartition(playerId), resourceType, playerId, Integer.MAX_VALUE, geologistFilters[resourceType.ordinal]);\n if (resourcePoint ... |
"private String copyFile(File targetFolder, File propFile, Property property, IPath path, String connNameAfter, String connName, Map<File, File> folderMap) throws IOException {\n File destItemFile = new Path(targetFolder.getAbsolutePath()).append(path).append(connNameAfter).addFileExtension(FactoriesUtil.ITEM_EXTENS... |
"public void onBlockBreak(BlockEvent.BreakEvent event) {\n EntityPlayer player = event.getPlayer();\n Block block = event.block;\n int meta = event.blockMetadata;\n int x = event.x;\n int y = event.y;\n int z = event.z;\n World world = event.world;\n if (player == null) {\n return;\n }... |
"public void playDaxosAndVampire(boolean castVampireDifferentWay) {\n addCard(Zone.HAND, playerA, daxosCard, 1);\n addCard(Zone.BATTLEFIELD, playerA, \"String_Node_Str\", 4);\n addCard(Zone.HAND, playerA, \"String_Node_Str\", 1);\n addCard(Zone.BATTLEFIELD, playerA, \"String_Node_Str\", 8);\n addCard(Zon... |
"public int buildWithClasspath(JavacExecutionContext context, BuildTarget invokingRule, ImmutableList<String> options, ImmutableList<ResolvedJavacPluginProperties> annotationProcessors, ImmutableSortedSet<Path> javaSourceFilePaths, Path pathToSrcsList, Optional<Path> workingDirectory, CompilationMode compilationMode) t... |
"private void addDescriptors() {\n addDescriptor(getRequiredTestObjectDescriptor());\n addDescriptor(getRequiredTestSubObjectDescriptor());\n}\n"
|
"public String exec(AbstractStackFrame frame) {\n Object[] localVars = frame.getLocalVars();\n if (localVars[0] instanceof EObject) {\n return EcoreUtil.generateUUID();\n }\n throw new IllegalArgumentException(\"String_Node_Str\" + localVars[0]);\n}\n"
|
"public void reset() {\n this.table.setRedraw(false);\n this.context.getImages().clear();\n this.gridLayer = new DataTableGridLayerStack(new DataTableHandleDataProvider(null, context), table, context);\n this.context.reset();\n this.table.setLayer(gridLayer);\n this.table.refresh();\n this.gridLaye... |
"private Polygon[] processHoles(Map<Integer, List<Integer>> aHoles, Polygon[] aResultHoles) {\n List<Polygon> holes = new ArrayList<>(Arrays.asList(aResultHoles));\n for (Integer key : aHoles.keySet()) {\n List<Integer> deleteCoordinates = aHoles.get(key);\n Collections.sort(deleteCoordinates, new D... |
"private void saveGpxFile() {\n String numOfInstructions = view.getInstructionsNumber();\n if (!isAValidInteger(numOfInstructions)) {\n view.showMessage(\"String_Node_Str\");\n return;\n }\n int instNum = Integer.parseInt(numOfInstructions);\n String gpxType = view.getHighlightedGpxType();\... |
"protected void initialize() {\n PeriodicEventHandler peh = new PeriodicEventHandler(new PriorityParameters(11), new PeriodicParameters(new RelativeTime(0, 0), new RelativeTime(1000, 0)), new StorageParameters(0, 0, 0)) {\n\n public void handleAsyncEvent() {\n Terminal.getTerminal().writeln(\"Strin... |
"public XMLDirectMapping generateDirectMapping(Property property, XMLDescriptor descriptor, NamespaceInfo namespaceInfo) {\n XMLDirectMapping mapping = new XMLDirectMapping();\n mapping.setAttributeName(property.getPropertyName());\n String fixedValue = property.getFixedValue();\n if (fixedValue != null) {\... |
"public void testString() throws IOException {\n int objectNumber = 3000;\n BufferedRandomAccessFile file = new BufferedRandomAccessFile(new File(tmpPath + File.separatorChar + \"String_Node_Str\"), \"String_Node_Str\", 1000);\n for (int i = 0; i < objectNumber; i++) {\n file.writeUTF(\"String_Node_Str\... |
"protected void customRun() throws InterruptedException {\n Call call = queue.poll(100, TimeUnit.MILLISECONDS);\n try {\n if (call == null)\n return;\n int count = 0;\n while (call != null) {\n if (call != RECONNECT_CALL) {\n callMap.put(call.getId(), call... |
"public void requestFocus() {\n textEditorImpl.requestFocus();\n}\n"
|
"public void getResource(ResourceRequest req, ResourceResponse resp) throws IOException, PortletException {\n Integer reps = (Integer) req.getAttribute(ATTRIB_REPS);\n if (reps == null) {\n reps = adb.getReps();\n }\n if (reps <= 0) {\n done = true;\n }\n req.setAttribute(ATTRIB_REPS, re... |
"final void completeTracking() {\n if (null == _tracker) {\n Guards.invariant(() -> null == _observables, () -> \"String_Node_Str\");\n return;\n }\n _tracker.invariantDependenciesUnique(\"String_Node_Str\");\n Guards.invariant(() -> _tracker.getState() != ObserverState.NOT_TRACKING, () -> \"S... |
"public static void init() {\n GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.crops, ConfigurationHandler.cropsPerCraft), \"String_Node_Str\", \"String_Node_Str\", 's', \"String_Node_Str\"));\n if (ConfigurationHandler.cropsPerCraft == 3) {\n GameRegistry.addShapelessRecipe(new ItemStack(ne... |
"public ExactRelation rewriteWithSubsampledErrorBounds() {\n if (!doesIncludeSample()) {\n return getOriginalRelation();\n }\n ExactRelation r = rewriteWithPartition(true);\n List<SelectElem> newElems = new ArrayList<SelectElem>();\n List<SelectElem> oldElems = ((AggregatedRelation) r).getElemList... |
"private void addProvider(File appDir, ClassLoader classLoader) {\n File manifestFile = new File(appDir, \"String_Node_Str\" + File.separator + \"String_Node_Str\");\n String appDirPath = \"String_Node_Str\";\n Manifest mf;\n if (manifestFile != null) {\n try {\n appDirPath = appDir.getCan... |
"private static List<ElementParameter> getParametersFromForm(IElement element, boolean isInitializing, EComponentCategory category, ComponentProperties rootProperty, Properties compProperties, String parentPropertiesPath, Form form, Widget parentWidget, AtomicInteger lastRowNum) {\n List<ElementParameter> elementPar... |
"private void resume() {\n if (!waitingForCallback && isConnectedToNetwork() && lastBatch != null) {\n handler.post(new Runnable() {\n public void run() {\n makeNetworkRequest(lastBatch, false);\n }\n });\n } else {\n if (log.isDebugEnabled()) {\n ... |
"public TreeParent getServerRoot() {\n if (this.serverRoot == null) {\n if (this.type == TreeObject._SERVER_)\n return (TreeParent) this;\n else if (this.type == TreeObject._ROOT_)\n if (((TreeParent) this).getChildren().length > 0)\n return (TreeParent) ((TreeParen... |
"private boolean isValidPartitionKey(String key) {\n try {\n LogPartitionType.valueOf(key.toUpperCase());\n } catch (IllegalArgumentException | NullPointerException e) {\n LOG.error(\"String_Node_Str\", key, e.getMessage());\n return false;\n }\n return true;\n}\n"
|
"private Iterator<Triple> execTriples() {\n HttpQuery httpQuery = makeHttpQuery();\n httpQuery.setAccept(modelContentType);\n InputStream in = httpQuery.exec();\n String actualContentType = httpQuery.getContentType();\n if (actualContentType == null || actualContentType.equals(\"String_Node_Str\")) {\n ... |
"public static void main(String[] args) throws Exception {\n System.out.println(\"String_Node_Str\");\n Logging.start(Logging.LEVEL_ERROR);\n try {\n TimeSync.initializeLocal(60000, 50);\n } catch (Exception ex) {\n ex.printStackTrace();\n System.exit(1);\n }\n StringSet gids = ne... |
"private FlowScope traverseObjectLiteral(Node n, FlowScope scope) {\n ObjectType objectType = (ObjectType) n.getJSType();\n Preconditions.checkNotNull(objectType);\n if (objectType.hasReferenceName()) {\n return scope;\n }\n for (Node name = n.getFirstChild(); name != null; name = name.getNext().g... |
"public Structure parsePDBFile(BufferedReader buf) throws IOException {\n loadMaxAtoms = params.getMaxAtoms();\n atomCAThreshold = params.getAtomCaThreshold();\n allModels = new ArrayList<>();\n structure = new StructureImpl();\n currentModel = null;\n currentChain = null;\n currentGroup = null;\n ... |
"public void onEventAdded(ShelfEvent se) {\n model.resetModel(NavigationEnum.EVENT_PREVIEW, getLoggedUser(), null, null, null, null, se.getEvent());\n pushEvent(Events.EVENT_DISPLAYED_EVENT);\n}\n"
|
"public void execute(final CommandSender sender, final CommandArgs args) throws ActionNotPermitedException, PlayerNotFound {\n float amount = 0;\n Player target = null;\n final HashMap<String, String> replace = new HashMap<String, String>();\n boolean self = false;\n if (args.hasFlag('p')) {\n tar... |
"public static void generateFormStartTag(PrintWriter writer, Form form, boolean responsiveMode, boolean design) {\n writer.print(String.format(\"String_Node_Str\", form.getName()));\n if (Utils.getAsBoolean(Settings.getInstance().getProperty(\"String_Node_Str\", \"String_Node_Str\"))) {\n writer.print(Stri... |
"public void widgetSelected(final SelectionEvent arg0) {\n if (updateMin())\n controller.update(new ModelEvent(this, ModelPart.ATTRIBUTE_TYPE, attribute));\n}\n"
|
"public Collection<Measurements> find(String tenantId, String name, Map<String, String> dimensions, DateTime startTime, DateTime endTime) throws Exception {\n String serieNameRegex = buildSerieNameRegex(tenantId, name, dimensions);\n String timePart = Utils.WhereClauseBuilder.buildTimePart(startTime, endTime);\n ... |
"public DisplayMode getCurrentDisplayMode() {\n try {\n if (checkService()) {\n return sService.getCurrentDisplayMode();\n }\n } catch (RemoteException e) {\n }\n return null;\n}\n"
|
"private Map<Position, ShotFrameController> initShotFrameManager(List<Camera> cameraList) throws ServiceException {\n List<Position> positionList = new ArrayList<>();\n for (int i = 0; i < cameraList.size(); i++) {\n Camera c = cameraList.get(i);\n Position p = profileService.getPositionOfCameraOfPr... |
"protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {\n mainForm.setStandaloneRendering(true);\n mainForm.setMultipartEnabled(true);\n qtiEl = new AssessmentItemFormItem(\"String_Node_Str\");\n formLayout.add(\"String_Node_Str\", qtiEl);\n ResourceLocator fileRes... |
"public void initialise() {\n availableAssetDropdown = find(\"String_Node_Str\", UIDropdownScrollable.class);\n editorTreeView = find(\"String_Node_Str\", UITreeView.class);\n selectedScreenContainer = find(\"String_Node_Str\", UIBox.class);\n availableAssetList.addAll(assetManager.getAvailableAssets(UIElem... |
"public void addOrUpdateItem(Item item, boolean fromMigration) {\n if (!loaded) {\n loadRelations();\n }\n ProcessType processType = null;\n if (item instanceof ProcessItem) {\n processType = ((ProcessItem) item).getProcess();\n }\n if (item instanceof JobletProcessItem) {\n proce... |
"public void testUnrunChangeSetsEmptyDatabase() throws Exception {\n if (database == null) {\n return;\n }\n Migrator migrator = createMigrator(completeChangeLog);\n migrator.dropAll(getSchemasToDrop());\n migrator = createMigrator(completeChangeLog);\n List<ChangeSet> list = migrator.listUnrun... |
"private Chart getConvertedChart(Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension) {\n Chart helperModel = currentChart.copyInstance();\n ChartDimension oldDimension = currentChart.getDimension();\n ChartCacheManager.getInstance().cacheSeries(ChartUIUtil.getAllOrthogonal... |
"private String getJsonString() throws IOException {\n CircleStreamBuffer csb = new CircleStreamBuffer();\n IOException cachedException = null;\n try {\n JsonGenerator json = new JsonFactory().createGenerator(csb.getOutputStream(), JsonEncoding.UTF8).setPrettyPrinter(new DefaultPrettyPrinter());\n ... |
"public String build() {\n final URI uri = UriBuilder.fromPath(\"String_Node_Str\").queryParam(\"String_Node_Str\", \"String_Node_Str\").queryParam(\"String_Node_Str\", \"String_Node_Str\").queryParam(\"String_Node_Str\", \"String_Node_Str\").build(Manifests.read(\"String_Node_Str\"), Manifests.read(\"String_Node_St... |
"private String fixedPath(String contextPath, String pathSimple) {\n if (contextPath == null)\n return pathSimple;\n String ptail = pathSimple.substring(pathSimple.indexOf(\"String_Node_Str\") + 1);\n if (redirector != null)\n return contextPath + \"String_Node_Str\" + tail(redirector.getPath()) ... |
"private void updateComputedColumns(ComputedColumn handle) {\n try {\n DataSetHandle dataSet = ((DataSetEditor) getContainer()).getHandle();\n DataSetViewData[] items = DataSetProvider.getCurrentInstance().getColumns(dataSet, false, true, true);\n int count = items.length;\n DataSetViewDa... |
"public CalendarEntry cloneAsSpanningEvent(CalendarEntry eventEntry, long startDate, long endDate) {\n CalendarEntry clone = eventEntry.clone();\n clone.setStartDate(startDate);\n clone.setEndDate(endDate);\n clone.setSpansMultipleDays(true);\n clone.setOriginalEvent(eventEntry);\n return clone;\n}\n"... |
"private boolean mutateGlobalSetting(String name, String value, int requestingUserId, int operation) {\n enforceWritePermission(Manifest.permission.WRITE_SECURE_SETTINGS);\n final int callingUserId = resolveCallingUserIdEnforcingPermissionsLocked(requestingUserId);\n if (isGlobalOrSecureSettingRestrictedForUse... |
"public static XPathPathExpr getPathExpr(String nodeset) {\n XPathExpression path;\n boolean validNonPathExpr = false;\n try {\n path = XPathParseTool.parseXPath(nodeset);\n if (!(path instanceof XPathPathExpr)) {\n validNonPathExpr = true;\n throw new XPathSyntaxException()... |
"protected Control createContents(Composite parent) {\n Composite client = new Composite(parent, SWT.NONE);\n client.setLayoutData(new GridData(GridData.FILL_BOTH));\n GridLayout layout = new GridLayout(3, false);\n layout.marginHeight = 0;\n layout.marginWidth = 0;\n client.setLayout(layout);\n La... |
"public Object willClone(Component comp) {\n if (_model instanceof ComponentCloneListener) {\n GroupsListModelExt clone = (GroupsListModelExt) clone();\n GroupsModel m = (GroupsModel) ((ComponentCloneListener) _model).willClone(comp);\n if (m != null)\n clone._model = m;\n clon... |
"public void fire() throws IllegalActionException {\n Director director = getDirector();\n if (director == null) {\n throw new IllegalActionException(this, \"String_Node_Str\");\n }\n _time.setToken(new DoubleToken(director.getCurrentTime()));\n Iterator inputPorts = inputPortList().iterator();\n ... |
"public V getM(M mutation_source) {\n V v = get();\n if (mutator != null)\n mutator.accept(t, mutation_source);\n return t;\n}\n"
|
"public synchronized Object connect(ID remote, Object data, int timeout) throws ECFException {\n if (connection != null)\n throw new ECFException(\"String_Node_Str\");\n if (timeout > 0)\n SmackConfiguration.setPacketReplyTimeout(timeout);\n Roster.setDefaultSubscriptionMode(Roster.SUBSCRIPTION_M... |
"private void initialize() {\n this.setLayout(new java.awt.BorderLayout());\n this.setSize(200, 220);\n this.setPreferredSize(new java.awt.Dimension(200, 220));\n this.setBackground(java.awt.SystemColor.activeCaptionText);\n this.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.black, ... |
"public void check() {\n dataCollector.collect();\n detected = decideResult(getDetectedValue());\n logger.info(\"String_Node_Str\", this.getClass().getSimpleName(), detected, rule.getApplicationId(), getDetectedValue(), rule.getThreshold());\n}\n"
|
"public void shouldDeployAWarServiceInANode() throws Exception {\n Service service = servicesManager.createService(spec);\n ServiceInstance instance = ((DeployedService) service).getInstances().get(0);\n String url = instance.getNativeUri();\n System.out.println(\"String_Node_Str\" + url);\n npm.upgradeN... |
"private static void f_monitorexit(int objAddr) {\n if (!RtThreadImpl.useLocks || objAddr == 0) {\n Native.unlock();\n return;\n }\n Scheduler s = Scheduler.sched[Native.rd(Const.IO_CPU_ID)];\n RtThreadImpl c = s.ref[s.active];\n Native.lock();\n cam.ADDRESS = objAddr;\n int result = ... |
"<X, Y> SelectRecursiveCTECriteriaBuilder<X, Y> withRecursive(Class<X> cteClass, Y result) {\n recursive = true;\n RecursiveCTECriteriaBuilderImpl<X, Y, T> cteBuilder = new RecursiveCTECriteriaBuilderImpl<X, Y, T>(cbf, em, dbmsDialect, cteClass, registeredFunctions, parameterManager, result, this);\n this.onBu... |
"public String getSavePath() {\n return Minecraft.getMinecraft().mcDataDir.getAbsolutePath();\n}\n"
|
"protected static MechanismFactory findMechanismFactory(String name) throws IOException {\n if (name == null || name.isEmpty()) {\n throw new IOException(\"String_Node_Str\");\n }\n MechanismFactory factory = null;\n try {\n factory = MECHANISM_FACTORY_FINDER.newInstance(name);\n } catch (T... |
"protected void fireSessionMessageReceived(ByteBuffer data) {\n Message message;\n short clientID;\n try {\n ReceivedMessage recv = MessagePacker.unpack(data, getClassLoader());\n message = recv.getMessage();\n clientID = recv.getClientID();\n } catch (PackerException eme) {\n lo... |
"private IMethod makeUnaryStringCall(IClass cls) {\n JSInstructionFactory insts = (JSInstructionFactory) cls.getClassLoader().getInstructionFactory();\n MethodReference ref = AstMethodReference.fnReference(JavaScriptTypes.String);\n JavaScriptSummary S = new JavaScriptSummary(ref, 2);\n S.addStatement(insts... |
"public void doPaintTo(GlimpseContext context) {\n super.doPaintTo(context);\n if (textRenderer == null)\n return;\n GL3 gl3 = context.getGL().getGL3();\n Axis1D axis = getAxis1D(context);\n GlimpseBounds bounds = getBounds(context);\n int width = bounds.getWidth();\n int height = bounds.get... |
"protected Dimension getSpecifiedDimension(IImageContent content, int pWidth, boolean scale) {\n int imageFileDpiX = 0;\n int imageFileDpiY = 0;\n Image imageObject = null;\n if (reader.getType() == ImageReader.TYPE_IMAGE_OBJECT || reader.getType() == ImageReader.TYPE_CONVERTED_SVG_OBJECT) {\n try {\... |
"public void renderContent(GL2 gl) {\n if (resolvedRowID == null || average == null)\n return;\n List<SelectionType> geneSelectionTypes = geneSelectionManager.getSelectionTypes(davidID);\n List<List<SelectionType>> selectionLists = new ArrayList<List<SelectionType>>();\n selectionLists.add(geneSelect... |
"public void run() {\n while (!stopOperation) {\n try {\n NetworkMessage msg = null;\n Schema schema = null;\n byte[] messageHeader = new byte[5];\n int success = in.read(messageHeader);\n if (success == 5) {\n byte classType = messageHeade... |
"protected void readField(int version, int filedId, DataInputStream in) throws IOException {\n switch(filedId) {\n case FIELD_RAW_TYPE:\n rawType = IOUtil.readString(in);\n break;\n case FIELD_RAWVALUE:\n rawValue = IOUtil.readObject(in, loader);\n if (rawTyp... |
"public Class[] eventClassesToConsume() {\n return new Class[] { KeyEvent3D.class, MouseEvent3D.class };\n}\n"
|
"private void buildGetMethodBuffer(ClassBuffer classBuffer, SDOProperty property, java.util.List documentation) {\n String returnType = getJavaTypeForProperty(property);\n String methodName = SDOUtil.getMethodName(property.getName(), returnType);\n if (!(property.getType().isChangeSummaryType() && methodName.e... |
"private SubHyperplane<Euclidean3D> boundaryFacet(final Vector3D point, final BSPTree<Euclidean3D> node) {\n final Vector2D point2D = ((Plane) node.getCut().getHyperplane()).toSubSpace((Point<Euclidean3D>) point);\n final BoundaryAttribute<Euclidean3D> attribute = (BoundaryAttribute<Euclidean3D>) node.getAttribut... |
"public Object clone(Workspace workspace) throws CloneNotSupportedException {\n ERGDirector newObject = (ERGDirector) super.clone(workspace);\n newObject._eventComparator = new EventComparator();\n newObject._eventQueue = new PriorityQueue<TimedEvent>(10, newObject._eventComparator);\n newObject._inputQueue... |
"public ScriptExpression adaptExpression(Expression expr, ExpressionLocation el) {\n if (expr == null)\n return null;\n ScriptExpression jsExpr = null;\n if (ExpressionType.CONSTANT.equals(expr.getType())) {\n jsExpr = new ScriptExpression(JavascriptEvalUtil.transformToJsExpression(expr.getString... |
"public void visit(MoveNodeInstruction instruction) {\n String srcPath = instruction.getSourcePath();\n String destPath = instruction.getDestPath();\n if (PathUtils.isAncestor(srcPath, destPath)) {\n throw new RuntimeException(\"String_Node_Str\" + destPath);\n }\n String srcParentPath = PathUtils... |
"public void doFilterInternal(HttpServletRequest req, HttpServletResponse res, FilterChain fc) throws ServletException, IOException {\n logger.debug(\"String_Node_Str\");\n logger.debug(\"String_Node_Str\" + useDefaultDatabaseName);\n MultiTenantMongoDbFactory.clearDatabaseNameForCurrentThread();\n String t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.