content
stringlengths
40
137k
"public IStatus doAction() {\n try {\n IStructuredSelection selection = (TreeSelection) page.getTreeViewer().getSelection();\n XSDComponent xSDCom = null;\n if (selection.getFirstElement() instanceof Element) {\n TreePath tPath = ((TreeSelection) selection).getPaths()[0];\n ...
"private Chart<AgentStatPoint<Integer>> buildChart(TimeWindow timeWindow, List<AgentStatPoint<Integer>> activeConnectionSizes) {\n TimeSeriesChartBuilder<AgentStatPoint<Integer>> builder = new TimeSeriesChartBuilder<>(timeWindow, SampledDataSource.UNCOLLECTED_POINT_CREATOR);\n Chart<AgentStatPoint<Integer>> chart...
"public void procedurallyGenerate(TemplateManager manager, World world, BlockPos startingPos, ArrayList<PotentialPosition> potentialPositions) {\n LostEclipse.LOGGER.debug(\"String_Node_Str\");\n LostEclipse.LOGGER.debug(\"String_Node_Str\" + depth + \"String_Node_Str\" + roomCount);\n ArrayList<PotentialPosit...
"public void explode() {\n if (type == Type.MIMIC || type == Type.CHEST || type == Type.SKELETON) {\n type = Type.HEAP;\n sprite.link();\n sprite.drop();\n return;\n }\n if (type != Type.HEAP) {\n return;\n } else {\n for (Item item : items.toArray(new Item[0])) {\n...
"void enqueueFullPacket(Packet p) {\n p.flipBuffers();\n p.read();\n p.setFromConnection(connection);\n if (p.client) {\n node.clientService.handle(p);\n } else {\n clusterService.enqueuePacket(p);\n }\n}\n"
"public Iterator<Item> findAll(Context context, boolean archived, boolean withdrawn, boolean discoverable, Date lastModified) throws SQLException {\n Query query = createQuery(context, \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n query.setParameter(\"String_Node_Str\",...
"public static final ChannelGroupWrapper init(Dimiter dimiter, String cid) throws IOException {\n DimitStoreSystem dss = dimiter.getStoreSystem();\n DimitPath dimitPath = dss.getPath(StoreConst.PATH_CONF, dimiter.getDimit().conf().getId());\n ChannelGroupWrapper group = new ChannelGroupWrapper(dimiter);\n g...
"private void updateRMSDandScore() throws StructureAlignmentException, StructureException {\n int size = size();\n listRMSD = new ArrayList<Double>();\n listTMscore = new ArrayList<Double>();\n for (int s1 = 0; s1 < size; s1++) {\n int lenRMSD = 0;\n int lenScore = 0;\n double sumRMSD =...
"public Object execute(ExecutionEvent event) throws ExecutionException {\n SessionHandleAdapter.getInstance().getReportDesignHandle().getCommandStack().startTrans(Messages.getString(\"String_Node_Str\"));\n ExtendedItemHandle handle = null;\n try {\n handle = CrosstabExtendedItemFactory.createCrosstabRe...
"public String plantUml(String uml, String type, String fileName) throws IOException {\n Objects.requireNonNull(fileName);\n if (!fileName.endsWith(\"String_Node_Str\") && !\"String_Node_Str\".equalsIgnoreCase(type))\n return;\n String defaultScale = \"String_Node_Str\";\n if (!uml.contains(\"String_...
"public boolean onQueryTextChange(String newText) {\n constraint = newText;\n friendsListAdapter.setFilterQueryProvider(this);\n if (state == State.FRIENDS_LIST && isHideSearchView) {\n friendsListAdapter.getFilter().filter(newText);\n friendsListAdapter.setSearchCharacters(newText);\n } else ...
"protected void generateObstacles() {\n int tempDirection;\n int tempX;\n int tempY;\n for (int i = 0; i < 3; ++i) {\n tempDirection = Utility.getRandom(0, 359);\n tempX = Utility.getRandom(-mapWidth, mapWidth);\n tempY = Utility.getRandom(-mapHeight, mapHeight);\n if (tempX > -O...
"public boolean startArena() {\n if (running || lobbyPlayers.isEmpty() || !readyPlayers.containsAll(lobbyPlayers)) {\n return false;\n }\n ArenaStartEvent event = new ArenaStartEvent(this);\n plugin.getServer().getPluginManager().callEvent(event);\n if (event.isCancelled()) {\n return false...
"public boolean isEmpty() {\n final MutableThreadContextStack values = stack.get();\n return values == null || values.isEmpty();\n}\n"
"public void sort() {\n int termListSize = termList.size();\n if (IndexTerm.getTermLocale() == null || IndexTerm.getTermLocale().getLanguage().trim().length() == 0) {\n IndexTerm.setTermLocale(new Locale(Constants.LANGUAGE_EN, Constants.COUNTRY_US));\n }\n for (int i = 0; i < termListSize; i++) {\n ...
"public void setUp() throws Exception {\n super.setUp();\n mProvider = (ContactsProvider2) getProvider();\n mDirectoryManager = mProvider.getContactDirectoryManagerForTest();\n mPackageManager = (ContactsMockPackageManager) getProvider().getContext().getPackageManager();\n}\n"
"public void testGetCluster() throws Exception {\n CookieCache.put(\"String_Node_Str\", \"String_Node_Str\");\n ObjectMapper mapper = new ObjectMapper();\n StorageRead sr1 = new StorageRead();\n sr1.setType(\"String_Node_Str\");\n sr1.setSizeGB(100);\n StorageRead sr2 = new StorageRead();\n sr2.set...
"protected JComponent createCategoryButton(Action action, Category category) {\n MySelectionPanel component = new MySelectionPanel(action, new ShareCategoryAction(category), category, this);\n addNavigation(component.getButton());\n return component;\n}\n"
"protected void okPressed() {\n for (Text text : allParamText) {\n EConnectionParameterName name = (EConnectionParameterName) text.getData();\n String value = ((Text) text.getData(TEXT_CONTROL)).getText();\n switch(name) {\n case SID:\n parameters.setDbName(value);\n ...
"void setMonthParams(HashMap<String, Integer> params) {\n if (!params.containsKey(VIEW_PARAMS_MONTH) && !params.containsKey(VIEW_PARAMS_YEAR)) {\n throw new InvalidParameterException(\"String_Node_Str\");\n }\n if (isValidDay(selectedDay)) {\n mSelectedDay = selectedDay;\n }\n if (params.co...
"public void prepare(Report report, Map appContext) {\n ReportDesignHandle rptHandle = report.getReportDesign();\n List dataSetList = rptHandle.getAllDataSets();\n for (int i = 0; i < dataSetList.size(); i++) {\n DataSetHandle dataset = (DataSetHandle) dataSetList.get(i);\n try {\n ada...
"public void init(Config cfg, MessageType t, TaskPlan taskPlan, int edge) {\n this.router = new DirectRouter(taskPlan, sources, destination);\n if (this.finalReceiver != null) {\n LG.info(\"String_Node_Str\");\n LG.info(\"String_Node_Str\");\n LG.info(\"String_Node_Str\");\n this.final...
"private void index(IndexProvider indexes, AppCommandParser parser, Session session, Output out) throws ShellException {\n Node node = getCurrent(session).asNode();\n String index = parser.arguments().get(0);\n String key = parser.arguments().get(1);\n Object value = parser.arguments().size() > 2 ? parser.a...
"public void testCopyFromFileWithCompression() throws Exception {\n execute(\"String_Node_Str\" + \"String_Node_Str\");\n ensureGreen();\n execute(\"String_Node_Str\", new Object[] { copyFilePath + \"String_Node_Str\" });\n refresh();\n execute(\"String_Node_Str\");\n assertEquals(6L, response.rowCoun...
"public void discovered(String clazzName, String annotation) {\n if (log.isDebugEnabled())\n log.debug(\"String_Node_Str\" + clazzName + \"String_Node_Str\" + annotation);\n try {\n Class<?> clazz = classLoader.loadClass(clazzName);\n scanClass(clazz);\n while (clazz.getSuperclass() !=...
"private CustomerBean transformToFormBean(Customer entity) {\n CustomerBean formBean = new CustomerBean();\n formBean.setCustomerId(entity.getCustomerId());\n formBean.setCustomerName(entity.getCustomerName());\n formBean.setPhone(entity.getPhone());\n formBean.setEmail(entity.getEmail());\n formBean....
"public void reset(RedditCommentListItem item) {\n mItem = item;\n if (item.asLoadMore().getCount() > 0) {\n mTitleView.setText(String.format(\"String_Node_Str\", item.asLoadMore().getCount()));\n } else {\n mTitleView.setText(\"String_Node_Str\");\n }\n mIndentView.setIndentation(item.getI...
"private void closeDatabaseIfLocked() {\n if (mCacheWordHandler != null && mCacheWordHandler.isLocked()) {\n DatabaseContentProvider.closeDatabase();\n }\n}\n"
"public String readTableCaption(Element tablexmlNode) {\n String caption = \"String_Node_Str\";\n List<Element> nl = getChildrenByTagName(tablexmlNode, \"String_Node_Str\");\n if (nl.size() > 0) {\n caption = Utilities.getString(nl.get(0));\n }\n Elements inDivChild = tablexmlNode.parent().getAllE...
"public void createPartControlImpl(Composite parent) {\n super.createPartControlImpl(parent);\n m_eventHandlerTreeViewer.setContentProvider(new EventHandlerContentProvider());\n m_eventHandlerTreeViewer.getControl().setMenu(createContextMenu());\n ActionListener actionListener = new ActionListener();\n g...
"public static void demo() throws ExceptionHugin, IOException {\n String file = \"String_Node_Str\";\n DataBase data = new DynamicDataOnDiskFromFile(new ARFFDataReader(file));\n System.out.println(\"String_Node_Str\");\n data.getAttributes().getList().stream().forEach(a -> System.out.println(a.getName()));\...
"public static void handleClusterInstanceCreated(String serviceType, String clusterId, String alias, String instanceId, String partitionId, String networkPartitionId) {\n TopologyManager.acquireWriteLock();\n try {\n Topology topology = TopologyManager.getTopology();\n Service service = topology.get...
"public void editLeaveSelected(ActionRequest request, ActionResponse response) {\n Map leaveMap = (Map) request.getContext().get(\"String_Node_Str\");\n LeaveRequest leave = Beans.get(LeaveRequestRepository.class).find(new Long((Integer) leaveMap.get(\"String_Node_Str\")));\n response.setView(ActionView.define...
"public void biTemporalQueryIsWithInNowValueToLongTest() {\n Long nowValue = 1456876800000l;\n CassandraUtils cu = this.setUpSuite2(nowValue);\n cu.insert(data1).insert(data2).insert(data3).insert(data4).insert(data5);\n CassandraUtilsSelect select = cu.query(biTemporalSearch(\"String_Node_Str\").operation(...
"public static ReportContext initReport() {\n ReportContext report = ReportFileReader.readSonargraphReport(REPORT, false);\n assertNotNull(report);\n return report;\n}\n"
"protected void fillContextMenu(IMenuManager manager) {\n IStructuredSelection selection = ((IStructuredSelection) viewer.getSelection());\n if ((selection == null) || (selection.getFirstElement() == null)) {\n manager.add(newConceptAction);\n manager.add(new Separator(IWorkbenchActionConstants.MB_A...
"public void run() {\n _globalLock.lock();\n try {\n if (_lastCleanup + _cleanupDelay < System.currentTimeMillis()) {\n try {\n cleanupOldDirs();\n } catch (IOException e) {\n LOG.error(\"String_Node_Str\", e, _shard, _table);\n }\n ...
"private void showLoginText() {\n bind.loginTv.setX(bind.area.getMeasuredWidth() / 2 - bind.loginTv.getMeasuredWidth() / 2);\n bind.loginTv.setY(3 * bind.area.getMeasuredHeight() / 4 + bind.loginImg.getMeasuredHeight() / 2 + bind.loginTv.getMeasuredHeight() / 2);\n bind.loginTv.setVisibility(View.VISIBLE);\n ...
"public void testSerializingBuilder() throws TimeoutException, InterruptedException, IOException {\n final MapInstanceConfig<CharSequence, CharSequence> config = (MapInstanceConfig<CharSequence, CharSequence>) ChronicleMapBuilder.of(CharSequence.class, CharSequence.class).entrySize(900).entries(2).minSegments(2).rep...
"public IValue resolve(MarkerList markers, IContext context) {\n int args = this.arguments.size();\n if (this.instance != null) {\n this.instance = this.instance.resolve(markers, context);\n }\n if (args == 1 && this.name == Name.match) {\n MatchExpression me = Operators.getMatchExpression(thi...
"public org.hl7.fhir.dstu2.model.MessageHeader.MessageDestinationComponent convertMessageDestinationComponent(org.hl7.fhir.dstu3.model.MessageHeader.MessageDestinationComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.MessageHeader.MessageDes...
"public void allocateFlow() throws Exception {\n resourceCache.allocateFlow(new ImmutablePair<>(forwardCreatedFlow, reverseCreatedFlow));\n resourceCache.allocateFlow(new ImmutablePair<>(forwardCreatedFlow, reverseCreatedFlow));\n Set<Integer> allocatedCookies = resourceCache.getAllCookies();\n Set<Integer>...
"public static String urlDecode(String str) {\n if (StringUtils.isBlank(str)) {\n return str;\n }\n String result = str;\n try {\n result = URLDecoder.decode(str, StringUtil.CHAR_SET_UTF8);\n } catch (UnsupportedEncodingException e) {\n LOGGER.error(\"String_Node_Str\", e);\n } ca...
"public static void log(String url, HttpRequestEntity requestEntity, String userAgent, Credentials credencials) {\n boolean includeBody = (requestEntity.type == RequestType.POST || requestEntity.type == RequestType.PUT || requestEntity.type == RequestType.PATCH) && StringUtils.isNotEmpty(requestEntity.bodyText);\n ...
"protected void createContents(Composite composite) {\n tableViewer = new TableViewer(composite, SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL);\n final Table table = tableViewer.getTable();\n table.setLinesVisible(true);\n table.setHeaderVisible(false);\n GridData gd = new GridData(SWT.FILL, SWT.FILL, t...
"public ResultSet<Artifact> getResults() throws OseeCoreException {\n SearchResult result = proxied.getSearchResult();\n SearchParameters searchParameters = result.getSearchParameters();\n IOseeBranch branch = TokenFactory.createBranch(searchParameters.getBranchUuid(), \"String_Node_Str\");\n TransactionRec...
"public static MediaDescription createMediaDescription(List<MediaFormat> formats, StreamConnector connector, MediaDirection direction, List<RTPExtension> rtpExtensions, DynamicPayloadTypeRegistry dynamicPayloadTypes, DynamicRTPExtensionsRegistry rtpExtensionsRegistry) throws OperationFailedException {\n int[] payloa...
"private void describeType(StringBuilder b, TypeRefComponent t) throws Exception {\n if (t.getCode() == null)\n return;\n if (t.getCode().startsWith(\"String_Node_Str\"))\n return;\n if (t.getCode().startsWith(\"String_Node_Str\")) {\n b.append(t.getCode());\n } else {\n b.append...
"private String getConfigurationParameter(Connection conn, String category, String paramName) {\n try (PreparedStatement pstmt = conn.prepareStatement(\"String_Node_Str\")) {\n pstmt.setString(1, category);\n pstmt.setString(2, paramName);\n try (ResultSet rs = pstmt.executeQuery()) {\n ...
"public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {\n monitorWrap = new EventLoopProgressMonitor(monitor);\n try {\n if (null == selectPro) {\n throw new IOException(\"String_Node_Str\");\n }\n ImportProjectsUtilities.importDemoProjec...
"public void add(ObjectName resource) {\n String knowledgeBaseId = resource.getKeyProperty(\"String_Node_Str\");\n synchronized (resourceScanners) {\n if (!resourceScanners.containsKey(knowledgeBaseId)) {\n KnowledgeBaseInfo kbaseInfo = new KnowledgeBaseInfo();\n kbaseInfo.setKnowledg...
"void updateGlobalRoute(RouteInfo route, MediaRouterClientState.RouteInfo globalRoute) {\n boolean changed = false;\n boolean volumeChanged = false;\n boolean presentationDisplayChanged = false;\n if (!Objects.equal(route.mName, globalRoute.name)) {\n route.mName = globalRoute.name;\n changed ...
"public static int getEndingGroupLevel(EdgeCursor edgeCursor, List groupCursors) throws OLAPException {\n if (edgeCursor.isLast()) {\n return 0;\n }\n for (int i = 0; i < groupCursors.size() - 1; i++) {\n DimensionCursor dc = groupCursors.get(i);\n if (GroupUtil.isDummyGroup(dc)) {\n ...
"private void assertConnected() throws IllegalStateException {\n if (jabberProvider == null)\n throw new IllegalStateException(\"String_Node_Str\" + \"String_Node_Str\");\n else if (!jabberProvider.isRegistered()) {\n if (opSetPersPresence.getPresenceStatus().isOnline()) {\n opSetPersPres...
"private void gatherItems(Identity participant, Publisher p, CourseEnvironment courseEnv, CourseNode node) {\n Path folderRoot = Paths.get(courseEnv.getCourseBaseContainer().getRelPath(), PFManager.FILENAME_PARTICIPANTFOLDER, node.getIdent(), pfManager.getIdFolderName(participant));\n final List<FileInfo> fInfos ...
"public List<T> list() {\n List<T> result = null;\n List<EntityPK> entityPkList = coverToEntityPK();\n if (entityMetaManager.isShardingEntity(clazz)) {\n if (entityPkList != null && !entityPkList.isEmpty())\n if (this.shardingKey != null)\n result = this.shardingQuery.findByPkL...
"public boolean next(Void key, ObjectWritable value) throws IOException {\n events.clear();\n try {\n if (reader.read(events, 1, 0, TimeUnit.SECONDS, readFilter) <= 0) {\n return false;\n }\n events.clear();\n try {\n if (reader.read(events, 1, 0, TimeUnit.SECONDS...
"private Errors validate(String event, Object o) {\n Errors errors = null;\n if (null != o) {\n Class<?> domainType = o.getClass();\n errors = new ValidationErrors(domainType.getSimpleName(), o, repositoryMetadataFor(domainType).entityMetadata());\n Collection<Validator> validators = this.val...
"public void setAggregation(Query query) {\n this.query = query;\n if (query.getGrouping() == null) {\n if (sd.getGrouping() != null) {\n fGrouping = (SeriesGrouping) EcoreUtil.copy(sd.getGrouping());\n } else {\n fGrouping = SeriesGroupingImpl.create();\n }\n } else ...
"public ExportPackage generatePackage(Submission submission) {\n if (submission == null || submission.getId() == null)\n throw new IllegalArgumentException(\"String_Node_Str\");\n if (templateFile == null)\n throw new IllegalStateException(\"String_Node_Str\");\n if (manifestName == null)\n ...
"public void testTxnCommit() throws TransactionException {\n Config config = new Config();\n StaticNodeFactory factory = new StaticNodeFactory(2);\n HazelcastInstance h1 = factory.newHazelcastInstance(config);\n HazelcastInstance h2 = factory.newHazelcastInstance(config);\n final IMap map2 = h2.getMap(\"...
"public void invalidateAllNearCaches(String mapName, Set<Data> keys) {\n if (keys == null || keys.isEmpty())\n return;\n Operation operation = new NearCacheKeySetInvalidationOperation(mapName, keys).setServiceName(SERVICE_NAME);\n Collection<MemberImpl> members = nodeEngine.getClusterService().getMember...
"private void drawAlert(Position position) {\n DeviceData deviceData = getDeviceData(position.getDevice());\n int iconWidthHalf = position.getIcon().getWidth() / 2;\n int iconHeight = position.getIcon().getHeight();\n Style alertCircleStyle = new org.gwtopenmaps.openlayers.client.Style();\n alertCircleSt...
"public void startOffset(long offset) {\n trackedOffsets.add(offset);\n if (offset >= lastStartedOffset) {\n lastStartedOffset = offset;\n } else {\n logger.warn(\"String_Node_Str\", lastStartedOffset, offset);\n }\n}\n"
"public void refresh() {\n if (dirty) {\n this.time = 0;\n dirty = false;\n try {\n double time = new MapRefresher<InterpolatableLatLon>().refreshMap(centers);\n this.time = Math.max(this.time, time);\n time = new MapRefresher<InterpolatableZoom>().refreshMap(zoo...
"private String getQueryForUDIndicator(IndicatorDefinition indicatorDefinition) {\n String sql = PluginConstant.EMPTY_STRING;\n EList<TdExpression> list = ((UDIndicatorDefinition) indicatorDefinition).getViewRowsExpression();\n TdExpression tdExp = DbmsLanguage.getSqlExpression(indicatorDefinition, dbmsLanguag...
"double getSum(ArrayList<Person> persons){\n\tdouble sum = 0;\n\tfor (int i = 0; i > persons.length; i++){\n\t\tsum += persons[i] == null ? 0 : persons[i].weight;\n\t}\n\treturn sum;\n}\n"
"private final void completeResumeLocked(HistoryRecord next) {\n next.idle = false;\n next.results = null;\n next.newIntents = null;\n Message msg = mHandler.obtainMessage(IDLE_TIMEOUT_MSG);\n msg.obj = next;\n mHandler.sendMessageDelayed(msg, IDLE_TIMEOUT);\n if (false) {\n msg = mHandler.o...
"public Ability getAbility(UUID effectId) {\n Ability ability = layeredEffects.getAbility(effectId);\n if (ability == null) {\n ability = replacementEffects.getAbility(effectId);\n if (ability == null)\n ability = preventionEffects.getAbility(effectId);\n if (ability == null)\n ability ...
"public XMLRoot unmarshal(org.w3c.dom.Node node, Class javaClass) {\n validateNode(node);\n XMLRoot root = null;\n reader.setDocPresPolicy(documentPreservationPolicy);\n return buildXMLRootFromObject(saxUnmarshaller.unmarshal(reader, node, javaClass));\n}\n"
"public void run() {\n Log.i(TAG, \"String_Node_Str\" + trackFile);\n final boolean networkAvailable = Network.isAvailable(context);\n try {\n final String authToken = AuthToken.getAuthToken(context);\n final CloudData trackData = postTrack(trackFile, authToken);\n archive(trackData);\n ...
"public void setStep(float contentLength, float containerLength) {\n try {\n _step = containerLength / contentLength;\n if (_step > 1.0f) {\n _step = 1.0f;\n }\n } catch (ArithmeticException e) {\n _step = 1.0f;\n }\n _containerLength = containerLength;\n}\n"
"protected void onNewIntent(final Intent intent) {\n super.onNewIntent(intent);\n new SimpleAsyncTask() {\n private Tag mTag;\n private EMVCard mCard;\n\n private EMVCard mCard;\n private boolean mException;\n protected void onPreExecute() {\n super.onPreExecute()...
"private String loadMessageId() {\n return Transactionals.execute(transactional, new TxCallable<String>() {\n\n public String call(DatasetContext context) throws Exception {\n return jobQueue.retrieveSubscriberState(topic);\n }\n });\n } catch (TransactionFailureExcepti...
"public static void generatePom(Item item, int option) {\n ProcessorUtilities.setGeneratePomOnly(true);\n option |= TalendProcessOptionConstants.GENERATE_POM_ONLY;\n option |= TalendProcessOptionConstants.GENERATE_IS_MAINJOB;\n try {\n IDesignerCoreService service = CorePlugin.getDefault().getDesigne...
"public Notification buildInto(Notification n) {\n build().cloneInto(n, true);\n return n;\n}\n"
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n Set<Card> toExile = new LinkedHashSet<>();\n if (multitargetHandling && source.getTargets().size() > 1 && targetPointer instanceof FirstTargetPointer) {\n ...
"public TableElement elementForIndexInSegment(GuiTable table, int index, int segment) {\n if (segment == 0) {\n TableCellString cell = new TableCellString(\"String_Node_Str\", genInfo.id());\n cell.setTooltip(IvTranslations.formatLines(\"String_Node_Str\"));\n cell.setShowsValidityState(true);\n...
"public void processAlignmentEntry(final AlignmentReader alignmentReader, final Alignments.AlignmentEntry alignmentEntry) {\n numAlignmentEntries += alignmentEntry.getMultiplicity();\n referenceBaseCount += alignmentEntry.getQueryLength();\n for (final Alignments.SequenceVariation var : alignmentEntry.getSeque...
"public void putRenderedServicePath(RenderedServicePath renderedServicePath) {\n printTraceStart(LOG);\n ClientConfig clientConfig = new DefaultClientConfig();\n Client client = Client.create(clientConfig);\n String sfpURI = null;\n String restURI;\n String sfpJSON = getRESTObj(getRenderedServicePathU...
"public String valueToValuesString(PropertyType propertyType, Object value) {\n Preconditions.checkState(supportsType(propertyType), \"String_Node_Str\", propertyType.name());\n switch(propertyType) {\n case BYTE_ARRAY:\n return \"String_Node_Str\" + PGbytea.toPGString((byte[]) SqlgUtil.convertB...
"private void waitForThreadPoolTermination() {\n if (executor.getTaskCount() > 0) {\n try {\n executor.awaitTermination(Constants.AlgorithmSettings.EXECUTOR_ALIVE_TIME_IN_MS, TimeUnit.MILLISECONDS);\n } catch (final InterruptedException e) {\n JavaPlugin.log(e);\n }\n }\...
"public long next() {\n int r = (int) (rowCount++ & mask);\n long v = Unsafe.getUnsafe().getLong(address + (r << 3));\n if (r == mask) {\n this.address = rData.getAddress(Unsafe.getUnsafe().getLong(address + (rowBlockLen << 3)) - rowBlockSize, rowBlockSize);\n return Unsafe.getUnsafe().getLong(ad...
"public void deleteComment(long commentId) throws DataBaseException {\n EntityManager entityManager = null;\n EntityTransaction transaction = null;\n try {\n entityManager = getEntityManagerFactory().createEntityManager();\n transaction = entityManager.getTransaction();\n transaction.begin...
"public boolean toBoolean() {\n return !((leftSide.toBoolean() == rightSide.toBoolean()) && (leftSide.toNumber() == rightSide.toNumber()));\n}\n"
"public void encodeBegin(FacesContext context, UIComponent component) throws IOException {\n if (!component.isRendered()) {\n return;\n }\n Panel panel = (Panel) component;\n ResponseWriter rw = context.getResponseWriter();\n String clientId = panel.getClientId();\n String jQueryClientID = clie...
"private void getSymmetryAxes(List<Axis> symmAxes, Matrix4d prior, int level, int firstRepeat) {\n if (level >= getNumLevels()) {\n return;\n }\n Axis elem = axes.get(level);\n Matrix4d elemOp = elem.getOperator();\n Matrix4d currAxisOp = new Matrix4d(prior);\n currAxisOp.invert();\n currAxi...
"public void changePlayerOfTower(ShortPoint2D towerPosition, Player newPlayer, FreeMapArea groundArea) {\n Iterable<ShortPoint2D> positions = partitionsGrid.changePlayerOfTower(towerPosition, newPlayer.playerId, groundArea);\n checkAllPositionsForEnclosedBlockedAreas(positions);\n}\n"
"protected CoreAttributeGroup newGroup(String name, CoreAttributeGroup parent) {\n return new CoreAttributeGroup<ATTRIBUTE_ITEM, DESCRIPTOR>(name);\n}\n"
"public void setPacketData(IPv6Packet packet, byte[] data, int len) {\n int pos = 2;\n if ((data[0] & 0x40) == 0) {\n if ((data[0] & 0x80) == 0) {\n packet.version = (data[pos] & 0xf0) >> 4;\n packet.trafficClass = ((data[pos] & 0x0f) << 4) + ((data[pos + 1] & 0xff) >> 4);\n ...
"public CompletionStage<Result> process(final String languageTag) {\n final UserContext userContext = userContext(languageTag);\n final CompletionStage<Cart> cartStage = getOrCreateCart(userContext, session());\n final Form<CheckoutConfirmationFormData> filledForm = Form.form(CheckoutConfirmationFormData.class...
"public void focusLost(FocusEvent e) {\n if (e.getSource().equals(cmpDropDown)) {\n Control cTmp = Display.getCurrent().getCursorControl();\n if (cTmp != null) {\n if (cTmp.equals(cnvSelection) || cTmp.equals(btnDown)) {\n bJustFocusLost = true;\n }\n }\n ...
"protected void updateMatrix() {\n float sx = Math.round(scroll.x + shakeX);\n float sy = Math.round(scroll.y + shakeY);\n matrix[0] = +zoom * invW2;\n matrix[5] = -zoom * invH2;\n matrix[12] = -1 + x * invW2 - sx * matrix[0];\n matrix[13] = +1 - y * invH2 - sy * matrix[5];\n}\n"
"private final void checkLandmarks(ISPosition2D startPos, short startPartition, EDirection startDirection) {\n EDirection blockedDir = startDirection;\n ISPosition2D blocked = blockedDir.getNextHexPoint(startPos);\n ISPosition2D currBase = startPos;\n LinkedList<ISPosition2D> blockedBorder = new LinkedList<...
"public void update() {\n if (maxTime == 0)\n return;\n if (getWorld().isRemote) {\n time = time + 1 - 1;\n }\n Vec3d mov = getMovVec();\n Set<Entity> entityList = new HashSet<>();\n time++;\n for (AxisAlignedBB bb : getTransformedColisions()) {\n List<Entity> entities = getWor...
"private String getCompletedSingleSelect(Indicator indicator, String sqlGenericExpression, String colName, String table, List<String> whereExpression, String range) throws ParseException {\n String completedRange = replaceVariables(range, colName, table);\n String rangeColumn = \"String_Node_Str\" + completedRang...
"public static List<Person> getEmailFollowers(int localTableBlogId) {\n String[] args = { Integer.toString(localTableBlogId), Integer.toString(0), Integer.toString(1) };\n String where = \"String_Node_Str\";\n return PeopleTable.getPeople(localTableBlogId, where, args);\n}\n"
"public void run() {\n retry();\n}\n"
"public void ReadCommonRecord(net.minecraft.nbt.NBTTagCompound TagCompound) {\n for (int Index = 0; Index < SideClosed.length; Index++) {\n SideClosed[Index] = TagCompound.getBoolean(\"String_Node_Str\" + Index);\n }\n decorationId = (net.minecraft.block.Block) Block.blockRegistry.getObjectById(TagCompo...
"public String createTempFile(String fileName, String contents) throws IOException {\n File f = createAndRegisterTempFile(fileName);\n Files.write(contents, f, Charsets.UTF_8);\n this.tempFiles.add(parentToDelete);\n return \"String_Node_Str\" + f.getAbsolutePath();\n}\n"