content stringlengths 40 137k |
|---|
"protected String getFileType(ResultNode node) throws Exception {\n return org.exoplatform.services.cms.impl.Utils.getFileType(node);\n}\n"
|
"public void testRenderToBuffer() throws Exception {\n TemplateEngine engine = new TestEngine(false);\n String expected = \"String_Node_Str\" + Utils.LINE_SEPARATOR + \"String_Node_Str\" + Utils.LINE_SEPARATOR + \"String_Node_Str\" + Utils.LINE_SEPARATOR + \"String_Node_Str\" + Utils.LINE_SEPARATOR + \"String_Nod... |
"private boolean _tryToMatchRelation(Relation lhsRelation, Relation hostRelation) {\n FastLinkedList<NamedObj>.Entry lhsTail = _lhsFrontier.getTail();\n FastLinkedList<NamedObj>.Entry hostTail = _hostFrontier.getTail();\n _match.put(lhsRelation, hostRelation);\n for (Object portObject : lhsRelation.linkedPo... |
"private void _updateWindowAttributes() throws IllegalActionException, NameDuplicationException {\n Component component = _getRightComponent().getParent();\n Component parent = component.getParent();\n while ((parent != null) && !(parent instanceof Frame)) {\n component = parent;\n parent = compo... |
"public void onRoundChanged(int round, int maxRound) {\n if (round > maxRound) {\n if (scoreManager.getLeftScore() > scoreManager.getRightScore())\n JOptionPane.showMessageDialog(JOptionPane.getRootFrame(), leftName + \"String_Node_Str\", \"String_Node_Str\", JOptionPane.PLAIN_MESSAGE);\n el... |
"static final int readImgDataSize(final byte[] in, int i) {\n final int fileSize = in.length;\n int imgDataPos = 0;\n int subBlockSize = in[i] & 0xFF;\n while (subBlockSize > 0) {\n try {\n final int nextSubBlockSizePos = i + subBlockSize + 1;\n final int nextSubBlockSize = in[n... |
"public void set(int x) {\n final short hb = Util.highbits(x);\n Container z = highlowcontainer.get(hb);\n if (z != null) {\n Container z2 = z.add(Util.lowbits(x));\n if (z2 != z) {\n highlowcontainer.put(hb, z2);\n }\n } else {\n ArrayContainer newac = ContainerFactor... |
"public void shouldCreateTurkishMorphParserSuccessfully() throws IOException {\n TurkishMorphParser parser = TurkishMorphParser.builder().addDefaultDictionaries().build();\n List<MorphParse> results = parser.parse(\"String_Node_Str\");\n for (MorphParse result : results) {\n System.out.println(result.fo... |
"public Expression[] getParameters() {\n return (parameters == null) ? null : Arrays.copyOfRange(parameters, 0, parameters.length);\n}\n"
|
"static public void startContent(IContent content, IContentEmitter emitter) {\n String vformat = content.getStyle().getVisibleFormat();\n if (vformat == null) {\n starter.visit(content, emitter);\n } else {\n if (vformat.toLowerCase().indexOf(emitter.getOutputFormat().toLowerCase()) == -1 && vfor... |
"public ResourceContainer build(ActionConstructionContext context) {\n List<Artifact> outs = new ArrayList<>();\n CustomCommandLine.Builder builder = new CustomCommandLine.Builder();\n builder.add(\"String_Node_Str\").add(\"String_Node_Str\").add(\"String_Node_Str\");\n if (!Strings.isNullOrEmpty(sdk.getBui... |
"private void removeInvalidDependency(ModelElement modelElement) {\n EList<Dependency> supplierDependencys = modelElement.getSupplierDependency();\n for (Dependency dependency : supplierDependencys) {\n EList<ModelElement> clients = dependency.getClient();\n Iterator<ModelElement> dependencyIterator... |
"protected void handleDrop() {\n updateTargetRequest();\n updateTargetEditPart();\n if (fromPalette && getTargetRequest() instanceof CreateRequest) {\n if (selectedConnectionPart != null) {\n CreateRequest req = ((CreateRequest) getTargetRequest());\n Object o = req.getNewObject();... |
"private void populatePositions() throws DataException, IOException {\n if (simplelevelFilters != null && simplelevelFilters.size() > 0) {\n getSimpleFilterResult();\n } else {\n this.dimPosition = dimension.findAll();\n }\n Map validFilterMap = getValidFilterMap();\n if (validFilterMap.isE... |
"static TOKEN findMatch(String search, int start) {\n for (TOKEN t : values()) {\n int i = start;\n boolean found = true;\n for (int j = 0; j < t.toString().length(); j++) {\n while (i + j < search.length() && search.charAt(j + i) == ' ') {\n i++;\n }\n ... |
"public void join() throws CompassException {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + Thread.currentThread().getName() + \"String_Node_Str\" + System.identityHashCode(compass) + \"String_Node_Str\" + System.identityHashCode(session) + \"String_Node_Str\");\n }\n}\n"
|
"public void perform(AbstractDevice device, Item item, String value) {\n if (value == null || value.length() != 8) {\n logger.error(\"String_Node_Str\", value);\n return;\n }\n int r = Integer.parseInt(value.substring(2, 4), 16);\n int g = Integer.parseInt(value.substring(4, 6), 16);\n int ... |
"public void onFinish(int target) {\n Shuffle sortedMerger = sortedMergers.get(target);\n sortedMerger.switchToReading();\n Iterator<Object> itr = sortedMerger.readIterator();\n batchReceiver.receive(target, itr);\n}\n"
|
"public ResourceTable stageUpgradeTable(ResourceTable global, ResourceTable temporary, String profileRef) throws UnfullfilledRequirementsException, StorageFullException, UnresolvedResourceException {\n temporary.clear();\n Vector<ResourceLocation> locations = new Vector<ResourceLocation>();\n locations.addElem... |
"public boolean addPoolToHost(long hostId, StoragePoolVO pool) {\n s_logger.debug(\"String_Node_Str\" + pool.getName() + \"String_Node_Str\" + hostId);\n if (pool.getPoolType() != StoragePoolType.NetworkFilesystem && pool.getPoolType() != StoragePoolType.Filesystem && pool.getPoolType() != StoragePoolType.IscsiLU... |
"public PastePushButton createPastePushButton() {\n PastePushButton pastePushButton = new PastePushButtonForExtendedTable(toolbar, extendedTableViewer) {\n\n public boolean getEnabledState() {\n return super.getEnabledState() && (model == null || !model.getElemParameter().isBasedOnSubjobStarts());\... |
"public List get(String whereSql, ShardingDBResource db) {\n if (StringUtil.isBlank(whereSql)) {\n return null;\n }\n ShardedJedis redisClient = null;\n try {\n redisClient = jedisPool.getResource();\n String cacheKey = _buildShardingCacheKey(whereKey, db);\n List data = IOUtil.g... |
"public void run() {\n Calendar today = Calendar.getInstance();\n int dayOfWeek = today.get(Calendar.DAY_OF_WEEK);\n if (dayOfWeek == Calendar.SATURDAY || dayOfWeek == Calendar.SUNDAY) {\n return;\n }\n java.util.Date todayDate = today.getTime();\n Date week = new Date(DateUtils.weekStart(today... |
"private void drawableChanged() {\n if (mChanging) {\n return;\n }\n setPadding(mFramePadding.left + mBackgroundPadding.left, mFramePadding.top + mBackgroundPadding.top, mFramePadding.right + mBackgroundPadding.right, mFramePadding.bottom + mBackgroundPadding.bottom);\n requestLayout();\n invalida... |
"protected int doCompare(Viewer v, Object e1, Object e2) {\n String t1 = \"String_Node_Str\";\n String t2 = \"String_Node_Str\";\n if (viewer.getLabelProvider() instanceof XulTableColumnLabelProvider) {\n XulTableColumnLabelProvider columnLabelProvider = (XulTableColumnLabelProvider) viewer.getLabelProv... |
"private String loadCardData() {\n if (cardDeckFile == null) {\n if (DataOptions.readerPath.trim().length() > 0) {\n cardDeckFile = new File(DataOptions.readerPath);\n } else {\n return AssemblerOptions.objectPath;\n }\n }\n File objectFile = new File(AssemblerOptions... |
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n ReportEngineService.getInstance().setEngineContext(getServletContext(), request);\n BirtContext context = new BirtContext(request);\n if (context.getBean().getException() != null) {\n co... |
"public BoardState endTurn(int thisMinionPlayerIndex, BoardState boardState, Deck deckPlayer0, Deck deckPlayer1) throws HSException {\n BoardState tmpState = super.endTurn(thisMinionPlayerIndex, boardState, deckPlayer0, deckPlayer1);\n if (thisMinionPlayerIndex > 0)\n return tmpState;\n HearthTreeNode t... |
"public boolean onKeyUp(int keyCode, KeyEvent event) {\n switch(keyCode) {\n case KeyEvent.KEYCODE_VOLUME_DOWN:\n case KeyEvent.KEYCODE_VOLUME_UP:\n if (isInputViewShown() == false) {\n return super.onKeyUp(keyCode, event);\n }\n if (mConfig.useVolumeKeyF... |
"public boolean hasReturnValue() {\n return true;\n}\n"
|
"public void onPlayerInteract(InteractBlockEvent.Secondary event, Player player) {\n if (!EagleFactions.AdminList.contains(player.getUniqueId())) {\n String playerFactionName = FactionLogic.getFactionName(player.getUniqueId());\n if (event.getInteractionPoint().isPresent()) {\n World world =... |
"public TransactionStateCache get() {\n TransactionStateCache cache = new DefaultTransactionStateCache(sysConfigTablePrefix);\n cache.setConf(conf);\n return cache;\n}\n"
|
"public boolean filter(Executable method) throws Exception {\n boolean found = false;\n boolean containsLambda = false;\n SymbolType[] inferredTypes = null;\n if (previousPredicate != null) {\n inferredTypes = previousPredicate.getInferredMethodArgs();\n }\n if (args != null && !args.isEmpty())... |
"private void initInstance2(CacheRequest cacheRequest, ResultSetCache resultCache, OdiAdapter odiAdpater, int startIndex, int endIndex, IResultClass rsMeta) throws DataException {\n int length = endIndex - startIndex;\n if (cacheRequest.getMaxRow() <= 0 || length <= cacheRequest.getMaxRow())\n cacheRequest... |
"protected ProcessWrapperImpl getFFMpegTranscode(String fileName, DLNAResource dlna, DLNAMediaInfo media, OutputParams params, String[] args) throws IOException {\n int nThreads = PMS.getConfiguration().getNumberOfCpuCores();\n List<String> cmdList = new ArrayList<String>();\n RendererConfiguration renderer = ... |
"public void serverTag(ReplaceableTagEvent event) {\n if (!event.matches(\"String_Node_Str\") || event.replaced())\n return;\n Attribute attribute = new Attribute(event.raw_tag, event.getScriptEntry()).fulfill(1);\n if (attribute.startsWith(\"String_Node_Str\")) {\n String flag_name;\n if ... |
"IResultObject fetch() throws DataException {\n try {\n if (odaResultSet != null) {\n return odaResultSet.fetch();\n }\n if (datasetCache != null) {\n return datasetCache.fetch(stopSign);\n } else if (customDataSet != null) {\n return customDataSet.fetch()... |
"public Collection<Artifact> discoverInputs(ActionExecutionContext actionExecutionContext) throws ActionExecutionException, InterruptedException {\n Preconditions.checkState(discoversInputs(), this);\n if (getContext(actionExecutionContext.getExecutor()).isRemotable(getMnemonic(), isRemotable())) {\n if (s... |
"private static boolean runQueryOnRS(DataEngineImpl dataEngine, IQueryDefinition queryDefn) throws DataException {\n if (!queryDefn.usesDetails()) {\n queryDefn.getSorts().clear();\n }\n String queryResultID = queryDefn.getQueryResultsID();\n String rootQueryResultID = QueryResultIDUtil.get1PartID(qu... |
"public boolean validate() {\n cleanWarnings();\n cleanErrors();\n boolean valid = true;\n if (getComponent() == null) {\n addError(\"String_Node_Str\");\n }\n if (getComponent() != null && getParent() != null && getParent().getParent() != null) {\n if (getComponent().compareTo(getParent... |
"private static String initPeerClusterState(String baseZKNode) throws IOException, KeeperException {\n Configuration testConf = new Configuration(conf);\n testConf.set(HConstants.ZOOKEEPER_ZNODE_PARENT, baseZKNode);\n ZKWatcher zkw1 = new ZKWatcher(testConf, \"String_Node_Str\", null);\n String fakeRs = ZNo... |
"private CircularList _scheduleConnectedActors(CircularList actorList) {\n CircularList readyToScheduleActorList = new CircularList();\n CircularList newSchedule = new CircularList();\n boolean done = false;\n LLMap waitingTokens = new LLMap();\n CircularList unscheduledActorList = new CircularList();\n ... |
"public static Block getTopBlock(Location loc, int positiveY, int negativeY) {\n Block blockHolder = loc.getBlock();\n int y = 0;\n while (blockHolder.getType() != Material.AIR && Math.abs(y) < Math.abs(positiveY)) {\n y++;\n Block tempBlock = loc.clone().add(0, y, 0).getBlock();\n if (tem... |
"public static Map<String, String> extractRequestHeaders(final javax.ws.rs.core.HttpHeaders httpHeaders) {\n final MultivaluedMap<String, String> headers = httpHeaders.getRequestHeaders();\n Map<String, String> headerMap = new HashMap<String, String>();\n for (final String key : headers.keySet()) {\n St... |
"public String parse(int ident) {\n String space, content;\n if (ident < 0)\n ident = 0;\n space = \"String_Node_Str\";\n for (int i = 0; i < ident; i++) space += \"String_Node_Str\";\n content = space + \"String_Node_Str\";\n if (getId() != null)\n content += \"String_Node_Str\" + getId... |
"public org.eclipse.jface.text.IRegion getHoverRegion(ITextViewer textViewer, int offset) {\n try {\n setLineNum(textViewer.getDocument().getLineOfOffset(offset) + 1);\n System.out.println(\"String_Node_Str\");\n handleViewer(textViewer);\n setDocument(textViewer.getDocument());\n ... |
"public Set<Dependency> resolveDependencies(DependencyQuery query) {\n Set<Dependency> result = new HashSet<Dependency>();\n Predicate<Dependency> filter = query.getDependencyFilter();\n RepositorySystem system = container.getRepositorySystem();\n Settings settings = container.getSettings();\n MavenRepos... |
"public void deleteKeyRing(int keyRingId) {\n mDb.beginTransaction();\n mDb.delete(KeyRings.TABLE_NAME, KeyRings._ID + \"String_Node_Str\", new String[] { \"String_Node_Str\" + keyRingId });\n Cursor c = mDb.query(Keys.TABLE_NAME, new String[] { Keys._ID }, Keys.KEY_RING_ID + \"String_Node_Str\", new String[] ... |
"public FetchResult updateData(Context context, boolean force) {\n DBOpenHelper dbhelper = new DBOpenHelper(context);\n SQLiteDatabase db = dbhelper.getWritableDatabase();\n try {\n if (!isOnline(context)) {\n Log.d(TAG, \"String_Node_Str\");\n return FetchResult.NOTONLINE;\n ... |
"public boolean directMarshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Session session, NamespaceResolver namespaceResolver) {\n if (xPathFragment.isAttribute()) {\n if (getMarshalNullRepresentation().equals(XMLNullRepresentationType.EMPTY_NODE)) {\n XPathFragment gr... |
"public double cost(AStarNode n1, AStarNode n2) {\n final BasicDirectedNode dn1 = (BasicDirectedNode) n1.getNode();\n final BasicDirectedNode dn2 = (BasicDirectedNode) n2.getNode();\n final List<Edge> edgesBetween = dn1.getOutEdges(dn2);\n if (edgesBetween.isEmpty()) {\n return Double.POSITIVE_INFINI... |
"public void setEnd(GregorianCalendar end) {\n this.endTime = end;\n}\n"
|
"public void fireException(Throwable t) {\n if (Logs.isExtrrreeeme()) {\n Logs.extreme().error(this.startStackTrace);\n Logs.extreme().error(this.endStackTrace.get());\n }\n AtomicMarkedState.this.error(t);\n}\n"
|
"private void updateItem(Item item) {\n if (mAdapter.getCount() == 0) {\n hideNoImagesView();\n }\n}\n"
|
"public void createIndices() throws Exception {\n startNode(\"String_Node_Str\").client();\n client(\"String_Node_Str\").admin().cluster().prepareHealth().setWaitForGreenStatus().execute().actionGet();\n client(\"String_Node_Str\").admin().indices().create(new CreateIndexRequest(INDEX)).actionGet();\n}\n"
|
"private boolean isMobile(MetaContact metaContact) {\n Iterator<Contact> iter = metaContact.getContacts();\n while (iter.hasNext()) {\n Contact contact = iter.next();\n boolean isConnected = contact.getPresenceStatus().isOnline();\n if (isConnected)\n hasConnectedStatus = true;\n ... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n overridePendingTransition(R.anim.activity_slide_up, R.anim.activity_slide_down);\n context = this;\n sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);\n settings = AppSettings.getInstance(this);... |
"void dump(PrintWriter pw, String prefix) {\n final long now = SystemClock.uptimeMillis();\n if (info.className != null) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.println(info.className);\n }\n if (info.manageSpaceActivityName != null) {\n pw.print(prefix);\n ... |
"public void testConnectByDirectory() throws Exception {\n switch(getDialect()) {\n case ASE:\n case DB2:\n case DERBY:\n case H2:\n case HSQLDB:\n case INGRES:\n case MYSQL:\n case POSTGRES:\n case SQLITE:\n case SQLSERVER:\n case SYBASE:\... |
"public void translateFrom(Series series, int iSeriesDefinitionIndex, Chart chart) {\n this.getLineAttributes().setVisible(true);\n this.getLineAttributes().setColor(ColorDefinitionImpl.BLACK());\n this.setStacked(false);\n this.setLabel(series.getLabel());\n if (series.isSetLabelPosition()) {\n i... |
"private long getAssociatedSsrc(long ssrc, MediaType mediaType) {\n synchronized (endpointsSyncRoot) {\n for (EndpointInfo endpoint : endpoints) {\n Map<MediaType, Long> ssrcs = endpoint.getSsrcs();\n if (ssrcs.size() < 2)\n continue;\n if (ssrcs.containsValue(s... |
"private void storePredefinedVariables(TDVariableStore varStore, ITestSuitePO testSuite) {\n varStore.store(TDVariableStore.VAR_LANG, m_executionLanguage.toString());\n varStore.store(TDVariableStore.VAR_TS, testSuite.getName());\n varStore.store(TDVariableStore.VAR_USERNAME, System.getProperty(\"String_Node_S... |
"public void onPlayerChangedWorld(PlayerChangedWorldEvent event) {\n ACPlayer player = ACPlayer.getPlayer(event.getPlayer());\n if (ACHelper.getInstance().getConfBoolean(\"String_Node_Str\") && !PermissionManager.hasPerm(event.getPlayer(), \"String_Node_Str\", false)) {\n player.removeAllSuperPower();\n ... |
"public static void addExceptionAfterUnit(Body b, String exceptionType, Unit u, String m) {\n LocalCreation lc = new LocalCreation(b.getLocals());\n Local l = lc.newLocal(RefType.v(exceptionType));\n List<Unit> newUnits = new ArrayList<Unit>();\n Unit u1 = Jimple.v().newAssignStmt(l, Jimple.v().newNewExpr(R... |
"public synchronized void removeChart(Chart chart) {\n charts = ArrayUtils.remove(charts, chart);\n}\n"
|
"private void writeEntry(String path, String cardinality, String type, String conceptDomain, ElementDefn e) throws Exception {\n write(\"String_Node_Str\" + path.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\") + \"String_Node_Str\" + path + \"String_Node_Str\");\n ... |
"public void testSubset2() throws IllegalArgumentException, IOException {\n provider.createDataDefinition();\n final ARXAnonymizer anonymizer = new ARXAnonymizer();\n anonymizer.setSuppressionString(\"String_Node_Str\");\n provider.getData().getDefinition().setAttributeType(\"String_Node_Str\", AttributeTyp... |
"private List<?> parseListElement(Element collectionEle, BeanDefinition bd) {\n String defaultTypeClassName = collectionEle.getAttribute(BeanDefinitionParserDelegate.VALUE_TYPE_ATTRIBUTE);\n NodeList nl = collectionEle.getChildNodes();\n ManagedList list = new TempManagedList(nl.getLength(), defaultTypeClassNa... |
"public void testDateSelectionInFilter() {\n assertNotNull(consumerPresenter);\n ConsumerView view = (ConsumerView) consumerPresenter.getView();\n assertNotNull(view);\n Tree serviceTree = (Tree) view.getSelector();\n assertNotNull(serviceTree);\n assertNotNull(serviceTree.getItem(0));\n assertNotN... |
"public void commitEvent(Event event) {\n if (event instanceof KeyEvent3D) {\n KeyEvent key = (KeyEvent) ((KeyEvent3D) event).getAwtEvent();\n if (key.getKeyCode() == KeyEvent.VK_EQUALS) {\n offset.z += cameraZoom;\n viewMoved(new CellTransform(viewRot, viewTranslation));\n ... |
"private Node buildIntraGroupTree(int groupId, int index) {\n Set<Integer> executorsHostingTask = getExecutorsHostingTask(groupId);\n LOG.log(Level.INFO, taskPlan.getThisExecutor() + \"String_Node_Str\" + executorsHostingTask);\n List<Integer> executorIds = rotateList(new ArrayList<>(executorsHostingTask), ind... |
"public static List<PsiFile> getAllConceptFiles(Project project) {\n Collection<VirtualFile> virtualFiles = FileBasedIndex.getInstance().getContainingFiles(FileTypeIndex.NAME, ConceptFileType.INSTANCE, GlobalSearchScope.projectScope(project));\n List<PsiFile> files = new ArrayList<>();\n for (VirtualFile Conce... |
"public void filter(ContainerRequestContext context) {\n if (activityLog.isEnabled()) {\n try {\n String message = String.format(\"String_Node_Str\", context.getMethod(), context.getUriInfo().getPath());\n Long serverId = getServerId(context);\n Long clientId = ActivityConstan... |
"public boolean interrupt(JobKey jobKey) throws UnableToInterruptJobException {\n try {\n return ((Boolean) invoke(\"String_Node_Str\", new Object[] { jobKey }, new String[] { JobKey.class.getName() })).booleanValue();\n } catch (SchedulerException se) {\n throw new UnableToInterruptJobException(se)... |
"private void deleteJar() {\n jarChanged = true;\n if (jarViewer.getTable().getSelectionIndex() >= 0 && jarViewer.getTable().getSelectionIndex() < jarViewer.getTable().getItemCount()) {\n int idx = jarViewer.getTable().getSelectionIndex();\n Map.Entry fn = (Map.Entry) jarViewer.getTable().getSelecti... |
"public void createControl(Composite parent) {\n Composite container = new Composite(parent, SWT.NONE);\n GridLayout layout = new GridLayout();\n container.setLayout(layout);\n Label nameLabel = new Label(container, SWT.NONE);\n nameLabel.setText(nameLabTxt);\n createMetaDataTree(container);\n setC... |
"public void compute(Vertex<IntWritable, IntWritable, NullWritable> vertex, Iterable<IntWritable> messages) throws IOException {\n if (getSuperstep() == 0) {\n sendMessageToAllEdges(vertex, vertex.getId());\n vertex.voteToHalt();\n } else {\n int currentMinValue = vertex.getValue().get();\n ... |
"public void writeAttributes(DataOutputStream stream) throws IOException {\n stream.writeInt(attributes.size());\n for (Map.Entry<String, String> attr : attributes.entrySet()) {\n stream.writeUTF(attr.getKey());\n StringUtils.write(attr.getValue(), stream);\n }\n}\n"
|
"public ColumnModel getColumnModel() {\n final List<ColumnConfig> configs = new ArrayList<ColumnConfig>();\n ColumnConfig column = new ColumnConfig(ContactModelDTO.NAME, I18N.CONSTANTS.adminContactModelName(), 200);\n column.setRenderer(new GridCellRenderer<ContactModelDTO>() {\n public Object render(fi... |
"public void connect(ICredentials credentials, ConnectorClusterConfig config) throws ConnectionException {\n ClusterName clusterName = config.getName();\n if (sessions.containsKey(clusterName.getName())) {\n LOG.warn(\"String_Node_Str\" + clusterName.getName() + \"String_Node_Str\");\n return;\n ... |
"private void registerBridge(int i, int j, BridgeType btype) {\n BetaBridge bridge = new BetaBridge(i, j, btype);\n getSecStrucState(i).setBridge(bridge);\n getSecStrucState(j).setBridge(bridge);\n bridges.add(bridge);\n}\n"
|
"protected void hitEnemy(IAttackable enemy) {\n enemy.receiveHit(0.1f);\n}\n"
|
"public double fitness(Organism<T> individual) {\n TorusAgent[] prey = game.getPrey();\n double score = 0;\n for (int i = 0; i < filteredPrey.length; i++) {\n score -= StatisticsUtilities.sum(filteredPrey[i].distances(filteredPrey));\n }\n return score;\n}\n"
|
"public final Attribute getAttributeItem(String tname) {\n int j = getAttributeIndex(0, tname);\n return j >= 0 ? _attrs.get(j) : null;\n}\n"
|
"private List<String> listReferenceProfiles(ElementDefinition ed) {\n List<String> res = new ArrayList<String>();\n for (TypeRefComponent tr : ed.getType()) {\n if (\"String_Node_Str\".equals(tr.getCode()))\n res.add(tr.getProfile());\n }\n return res;\n}\n"
|
"public PersistenceContext get(String persistenceUnit, URI defaultURI, Map<String, Object> initializationProperties) {\n PersistenceContext app = getDynamicPersistenceContext(persistenceUnit);\n if (app == null) {\n try {\n DynamicClassLoader dcl = new DynamicClassLoader(Thread.currentThread().g... |
"public static DefaultFeatureType capital() {\n return new DefaultFeatureType(name(\"String_Node_Str\"), false, new DefaultFeatureType[] { city() }, DefaultAttributeTypeTest.parliament());\n}\n"
|
"public void toBeanTest() {\n String json = \"String_Node_Str\";\n Price price = JSONUtil.toBean(json, Price.class);\n Assert.assertEquals(\"String_Node_Str\", price.getADT().get(0).get(0).getBookingCode().get(0));\n}\n"
|
"public void traverse() {\n timeStart = System.currentTimeMillis();\n MinMaxPriorityQueue<Long> queue = new MinMaxPriorityQueue<Long>(MAX_QUEUE_SIZE, new Comparator<Long>() {\n public int compare(Long arg0, Long arg1) {\n return solutionSpace.getUtility(arg0).compareTo(solutionSpace.getUtility(a... |
"void clearCache(DataSourceAndDataSet dsAndDs) {\n List cacheDir = new ArrayList();\n synchronized (cacheMap) {\n cacheDir = cacheMap.remove(dsAndDs);\n }\n if (cacheDir != null) {\n folderUtil.deleteDir((String) cacheDir);\n }\n}\n"
|
"protected void applyDrawProjection(DrawContext dc) {\n boolean loaded = false;\n if (dc.getView() instanceof StereoView) {\n StereoView stereo = (StereoView) dc.getView();\n double near = 100;\n double far = stereo.computeHorizonDistance() + 10e3;\n Matrix projection = stereo.calculat... |
"public List<?> makeRow(RunRecord object) {\n return Lists.newArrayList(object.getPid(), object.getStatus(), object.getStartTs(), object.getRunTs() == null ? \"String_Node_Str\" : object.getRunTs(), object.getStopTs() == null ? \"String_Node_Str\" : object.getStopTs());\n}\n"
|
"void setupUI() {\n setupTermfilterSpinners();\n JPanel termfilterPanel = new JPanel();\n termfilterPanel.setLayout(new BoxLayout(termfilterPanel, BoxLayout.X_AXIS));\n termfilterPanel.add(new JLabel(\"String_Node_Str\"));\n termfilterPanel.add(tpSpinner);\n termfilterPanel.add(new JLabel(\"String_Nod... |
"protected static void mapBaseArtifactMetaData(Node jcrNode, BaseArtifactType artifact) throws DatatypeConfigurationException, RepositoryException {\n artifact.setCreatedBy(getProperty(jcrNode, \"String_Node_Str\"));\n XMLGregorianCalendar createdTS;\n createdTS = DatatypeFactory.newInstance().newXMLGregorianC... |
"public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\n menu.add(0, MENU_ITEM_INSERT, 0, R.string.menu_insert).setShortcut('3', 'a').setIcon(android.R.drawable.ic_menu_add);\n UpdateMenu.addUpdateMenu(this, menu, 0, MENU_UPDATE, 0, R.string.update);\n menu.add(0, MENU_ABOUT, 0,... |
"public void onClick(View v) {\n if (passphraseEditText.getText().toString().equals(\"String_Node_Str\")) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.alert_no_passphrase_title).setMessage(R.string.alert_no_passphrase_message);\n builder.s... |
"public int getLength() {\n return (offsets[1] >= 0 && offsets[0] >= 0 ? offsets[1] - offsets[0] : -1);\n}\n"
|
"public void testUpdatingOfTemplates() {\n FactorGraph fg = FactorGraphsForTests.getLinearChainGraph();\n VarConfig vc = new VarConfig();\n for (Var v : fg.getVars()) {\n vc.put(v, 0);\n }\n FactorTemplateList fts = new FactorTemplateList();\n LFgExample ex = new LabeledFgExample(fg, vc, new Si... |
"private String execute(final String command, final String[] responseHeaders, final boolean checkAttached, boolean withoutTimeout) throws ConnectorException {\n ConnectorUtils.checkNotNull(\"String_Node_Str\", command);\n ConnectorUtils.checkNotNull(\"String_Node_Str\", responseChecker);\n if (checkAttached) {... |
"public void widgetSelected(org.eclipse.swt.events.SelectionEvent arg0) {\n invoke(onclick);\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.