content
stringlengths
40
137k
"public boolean removeMember(Authorizable authorizable) throws RepositoryException {\n try {\n if (isValid(authorizable)) {\n return getDelegate().removeMember(((AuthorizableImpl) authorizable).getDlg());\n } else {\n return false;\n }\n } finally {\n mgr.autosave...
"private static DateFormat getUtilDateFormat() {\n return new SimpleDateFormat(dateFormat, Locale.US);\n}\n"
"private void initFactory(String host, int port, String protocol, final PipelineInitializer pipeliner) {\n LOG.info(\"String_Node_Str\", protocol);\n ServerBootstrap b = new ServerBootstrap();\n b.group(m_bossGroup, m_workerGroup).channel(channelClass).childHandler(new ChannelInitializer<SocketChannel>() {\n ...
"public void createPreviewCharts(final ScrolledForm form, final Composite composite, final boolean isCreate) {\n for (final ColumnIndicator columnIndicator : this.treeViewer.getColumnIndicator()) {\n final TdColumn column = columnIndicator.getTdColumn();\n ExpandableComposite exComp = toolkit.createExp...
"public void insertStack(IItemKey key, ItemStack stack) {\n ItemKey realKey = (ItemKey) key;\n IInventory inventory = realKey.getInventory();\n ItemStack origStack = inventory.removeStackFromSlot(realKey.getSlot());\n if (origStack != null) {\n if (ItemHandlerHelper.canItemStacksStack(origStack, stac...
"private void saveProfil() {\n LOGGER.debug(\"String_Node_Str\");\n String name = txProfilName.getText();\n if (name.trim().compareTo(\"String_Node_Str\") == 0) {\n LOGGER.debug(\"String_Node_Str\");\n showError(\"String_Node_Str\");\n } else {\n Profile p = new Profile(name, txProfilDr...
"public void send(CharSequence content) {\n checkCommitted();\n if (getStatus() == 0) {\n status(HttpConstants.StatusCode.OK);\n }\n if (getContentType() == null) {\n header(HttpConstants.Header.CONTENT_TYPE, HttpConstants.ContentType.TEXT_HTML);\n }\n if (getCharacterEncoding() == null)...
"public String verifyToken(String ontid, String password, byte[] salt, long keyNo, String contractAddr, String funcName) throws Exception {\n if (ontid == null || ontid.equals(\"String_Node_Str\") || password == null || password.equals(\"String_Node_Str\") || contractAddr == null || contractAddr.equals(\"String_Node...
"protected void command() {\n jedis.select(db);\n if (jedis.exists(key) && getValueType(key) != NodeType.HASH)\n throw new RuntimeException(\"String_Node_Str\" + key + \"String_Node_Str\");\n jedis.hmset(key, values);\n}\n"
"protected Object writeReplace() {\n if (isExternal()) {\n return new ExternalSerializedForm(this);\n } else if (this == NULL_METHOD) {\n return ExternalSerializedNullMethod.INSTANCE;\n } else {\n return this;\n }\n}\n"
"public void testFilter1() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEdge.c...
"public void registerSimulation(Sim sim, File simFile) throws ConnectionError, ContentError, RuntimeError, ParseError {\n simulation = sim;\n if (simFile != null) {\n setNewWorkingFile(simFile);\n }\n loadRunConfigsFromSimulation();\n positionViewers();\n}\n"
"public long getPeriodicSyncTime(int index) {\n if (periodicSyncTimes != null && index < periodicSyncTimes.size()) {\n return periodicSyncTimes.get(index);\n } else {\n return 0;\n }\n return periodicSyncTimes.get(index);\n}\n"
"protected void handleElement(V view, String attributeKey, LayoutParser parser) {\n String type = parser.getString(TYPE);\n switch(type) {\n case DRAWABLE_SELECTOR:\n final StateListDrawable stateListDrawable = new StateListDrawable();\n if (parser.isArray(CHILDREN)) {\n ...
"private boolean copyStoreFromMaster(Pair<Master, Machine> master) {\n try {\n applyReceivedTransactions(response, tempDb.getConfig().getTxModule().getXaDataSourceManager(), new TxHandler() {\n private final Set<String> visitedDataSources = new HashSet<String>();\n public void accept(Tri...
"public String getAsString() {\n return matchedInputPart;\n}\n"
"public Connection getConnection() {\n if (currentConnection == null) {\n synchronized (ConnectionManager.class) {\n if (currentConnection == null) {\n connection = searchForAvailableConnection();\n if (connection != null) {\n logger.info(\"String_No...
"public void validate() throws ValidationException {\n final Set<Integer> messageIds = new HashSet<Integer>();\n final Set<Message> messages = new HashSet<Message>();\n for (MethodDescriptor md : methodDesc) {\n if (messages.add(md.message())) {\n final int id = md.message().id();\n ...
"public CheckedListenableFuture<P> transition(S nextState) throws IllegalStateException, ExistingTransitionException {\n if (this.state.isMarked()) {\n throw new ExistingTransitionException(\"String_Node_Str\" + nextState + \"String_Node_Str\" + this.toString());\n } else if (!this.stateTransitions.get(thi...
"private boolean removeFromLocalUpdateBucket(SchemaId id, String bucketId) {\n Set<SchemaId> localUpdateBucket = localUpdateBuckets.get(bucketId);\n if (localUpdateBucket == null) {\n return false;\n }\n RecordType localRt = localUpdateBucket.remove(recordType.getId());\n if (localRt == null) {\n ...
"public String getText() {\n return parent.getPropertyDefn().getName();\n}\n"
"public void setValue(Object value) {\n if (value == null) {\n super.setValue(null);\n return;\n }\n if (value instanceof ImportedOsgiServiceProxy) {\n super.setValue(new ServiceReferenceDelegate((ImportedOsgiServiceProxy) value));\n return;\n }\n if (value instanceof ServiceR...
"public void addTable(TableInfo table, IStyle style) {\n XlsContainer currentContainer = getCurrentContainer();\n ContainerSizeInfo parentSizeInfo = currentContainer.getSizeInfo();\n int startCoordinate = parentSizeInfo.getStartCoordinate();\n int[] columnStartCoordinates = new int[table.getColumnCount() + ...
"public void showLabels(boolean show) {\n this.setShowLabels(show);\n}\n"
"private void initNearCache() {\n if (nearCacheInitialized.compareAndSet(false, true)) {\n final NearCacheConfig nearCacheConfig = getContext().getClientConfig().getNearCacheConfig(getName());\n if (nearCacheConfig == null) {\n return;\n }\n ClientNearCache<Object> _nearCache =...
"private void createJTreeNode(Cell cell) {\n SortedTreeNode ret = new SortedTreeNode(cell) {\n\n public String toString() {\n Cell cell = (Cell) getUserObject();\n return \"String_Node_Str\" + cell.getCellID().toString();\n }\n };\n cellNodes.put(cell, ret);\n DefaultMuta...
"public static GroupType getPredominantGroupType(Chain c) {\n int sizeAminos = c.getAtomGroups(GroupType.AMINOACID).size();\n int sizeNucleotides = c.getAtomGroups(GroupType.NUCLEOTIDE).size();\n List<Group> hetAtoms = c.getAtomGroups(GroupType.HETATM);\n int sizeHetatoms = hetAtoms.size();\n int sizeWat...
"public void showForm(ModelMap model, String uuid) {\n List<DataSetDefinition> allDefinitions = Context.getService(DataSetDefinitionService.class).getAllDefinitions(false);\n if (uuid == null) {\n model.addAttribute(\"String_Node_Str\", new MultiParameterDataSetDefinition());\n } else {\n DataSet...
"public void format(final LogEvent event, final StringBuilder toAppendTo) {\n ThrowableProxy proxy = event.getThrownProxy();\n final Throwable throwable = event.getThrown();\n if (throwable != null && options.anyLines()) {\n if (proxy == null) {\n super.format(event, toAppendTo);\n ...
"private double[] checkShiftValue(double val) {\n double[] shift = new double[2];\n if (val == 0 || val == 1 || val == -1) {\n shift[0] = 0;\n shift[1] = 0;\n } else {\n double shift_dbl = Math.log(val) / Math.log(2);\n double shift_int = Math.rint(shift_dbl);\n if (shift_dbl...
"private void onKeysError(Exception e) {\n if (e instanceof NotProvisionedException) {\n provisioningManager.provisionRequired(this);\n } else {\n onError(e);\n }\n}\n"
"private void createAnalysisSummarySection(ScrolledForm form, Composite topComp) {\n Section summarySection = this.createSection(form, topComp, \"String_Node_Str\", false, null);\n sumSectionClient = toolkit.createComposite(summarySection);\n sumSectionClient.setLayout(new GridLayout(2, false));\n refreshSu...
"private static void generateUUIDForElement(Document schema, String dataCluster, String concept, Element conceptRoot) throws Exception {\n NodeList uuidLists = getUUIDNodes(schema, concept);\n for (int i = 0; i < uuidLists.getLength(); i++) {\n Element element = (Element) uuidLists.item(i);\n String...
"public boolean removeMapObjectType(short x, short y, AbstractHexMapObject mapObject) {\n AbstractHexMapObject mapObjectHead = objectsGrid[x][y];\n if (mapObjectHead != null) {\n if (mapObjectHead.getObjectType() == mapObjectType) {\n removed = mapObjectHead;\n objectsGrid[x][y] = map...
"public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException {\n payloads = (Vector) ExtUtil.read(in, new ExtWrapListPoly(), pf);\n}\n"
"protected void setupDatabase(Database database) throws Exception {\n dropViewIfExists(null, VIEW_NAME, database);\n dropViewIfExists(TestContext.ALT_SCHEMA, VIEW_NAME, database);\n dropAndCreateTable(new CreateTableStatement(null, TABLE_NAME).addPrimaryKeyColumn(\"String_Node_Str\", \"String_Node_Str\"), data...
"public String getDynamicRangeDescription() {\n return getIndexedDescription(FujifilmMakernoteDirectory.TAG_DYNAMIC_RANGE, 1, \"String_Node_Str\", null, \"String_Node_Str\");\n}\n"
"private synchronized int createRelationshipType(String name) {\n Integer id = relTypes.get(name);\n if (id != null) {\n return id;\n }\n id = relTypeCreator.getOrCreate(transactionManager, idGenerator, persistenceManager, this, name);\n addRelType(name, id);\n return id;\n}\n"
"public void renderNodeLabel(NodeLabel label) {\n textFont(label.getFont());\n textAlign(CENTER, CENTER);\n fill(label.getColor().getRed(), label.getColor().getGreen(), label.getColor().getBlue());\n text(label.getValue(), label.getPosition().getX(), label.getPosition().getY() - (textAscent() + textDescent(...
"public void onClick(final View view) {\n shoppingListItem.quantity = Integer.parseInt(editTextDataRetriever.getText(ShoppingListItemActivity.this, R.id.shopping_list_item_qty_editText));\n shoppingListItem.cost = Float.parseFloat(editTextDataRetriever.getText(ShoppingListItemActivity.this, R.id.shopping_list_ite...
"protected DataStore getDataStore(String geoJSON) throws FileNotFoundException, IOException {\n try {\n File geoJsonfile = new File(geoJSON);\n checkParameter(geoJsonfile.exists(), \"String_Node_Str\", geoJsonfile);\n InputStream in = new FileInputStream(geoJsonfile);\n FeatureJSON fjson ...
"public static byte[] newStack(int bytes, boolean immortal) {\n if (!VM.runningVM) {\n return new byte[bytes];\n } else {\n RVMArray stackType = RVMArray.ByteArray;\n int headerSize = ObjectModel.computeArrayHeaderSize(stackType);\n int align = ObjectModel.getAlignment(stackType);\n ...
"public synchronized KeyValuesReader getReader() throws IOException {\n if (this.numInputs == 0) {\n return new KeyValuesReader() {\n public boolean next() throws IOException {\n return false;\n }\n public Object getCurrentKey() throws IOException {\n ...
"public boolean isMatchFeasible(Match match) {\n if (map.containsKey(match.getQueryNode()) || map.containsValue(match.getTargetAtom())) {\n return false;\n }\n if (!matchAtoms(match)) {\n return false;\n }\n return matchBonds(match);\n}\n"
"public Object evaluate(Evaluator evaluator) {\n for (int i = 0; i < memberCalcs.length; i++) {\n MemberCalc memberCalc = memberCalcs[i];\n final Member member = memberCalc.evaluateMember(evaluator);\n if (member == null || member.isNull()) {\n for (int j = 0; j < i; j++) {\n ...
"public boolean equals(Object other) {\n return this == other || (other instanceof DecompressorValue && directory.equals(((DecompressorValue) other).directory));\n}\n"
"void animationDidComplete(APAAnimationState animationState) {\n super.animationDidComplete(animationState);\n switch(animationState) {\n case Death:\n removeAllActions();\n runAction(SKAction.sequence(new NSArray<SKAction>(SKAction.wait(0.75), SKAction.fadeOut(1.0), SKAction.run(new ...
"public void testAggrSortCache() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = column...
"private void init(String KEY_NAME) {\n this.keyStoreHelper = new KeyStoreHelper(KEY_NAME);\n this.layoutInflater = LayoutInflater.from(context);\n this.builder = new AlertDialog.Builder(context);\n this.fingerprintCallback = null;\n this.fingerprintSecureCallback = null;\n this.successColor = R.color...
"private static Expression evaluateExpression(Expression expression, List<? extends IElementParameter> listParam, ElementParameter currentParam) {\n int indexBegining = 0, indexEnd;\n int expressionLevel = 0;\n String string = expression.getExpressionString();\n boolean conditionFound = false;\n for (int...
"public void seeProfile(String url, StructureDefinition p) throws FHIRException {\n if (Utilities.noString(url))\n url = p.getUrl();\n if (!p.hasSnapshot() && p.getKind() != StructureDefinitionKind.LOGICAL) {\n if (!p.hasBaseDefinition())\n throw new DefinitionException(\"String_Node_Str\...
"public Iterator<Integer> call(final Integer partitionIndex, final Iterator<CanvasMatches> matchesIterator) throws Exception {\n LogUtilities.setupExecutorLog4j(\"String_Node_Str\" + partitionIndex);\n String previousCollection = null;\n String currentCollection;\n final List<CanvasMatches> matchesList = ne...
"public byte[] getDataToSign(Collection<DataFile> dataFiles) {\n logger.debug(\"String_Node_Str\");\n DetachedContentCreator detachedContentCreator = new DetachedContentCreator().populate(dataFiles);\n DSSDocument dssDocumentToSign = detachedContentCreator.getFirstDetachedContent();\n logger.debug(\"String_...
"public static int getTimeSeries(String[] args) {\n List<PortableTimeSeries> tslist = null;\n int returnCode = 0;\n if (args.length < 2) {\n SFIToolkit.displayln(\"String_Node_Str\");\n return -1;\n }\n String provider = args[0];\n String tsKey = args[1];\n String start = \"String_Nod...
"public boolean onBroughtToTop(IReportEditorPage prePage) {\n if (getEditorInput() != prePage.getEditorInput()) {\n setInput(prePage.getEditorInput());\n }\n if (prePage != this && (prePage.isDirty() || prePage.getStaleType() != IPageStaleType.NONE)) {\n prePage.doSave(null);\n prePage.mar...
"public Promise<QueryResponse, ResourceException> queryCollection(final Context context, final QueryRequest request, final QueryResourceHandler handler) {\n try {\n if (request.getQueryExpression() != null) {\n return new BadRequestException(HttpUtils.PARAM_QUERY_EXPRESSION + \"String_Node_Str\").a...
"public static ClassLoader getApplicationClassLoader() {\n if (!VM.runningVM)\n return null;\n if (!appCLReady)\n return VM_BootstrapClassLoader.getBootstrapClassLoader();\n if (appCL != null)\n return appCL;\n if (gettingAppCL > 0 || DBG_APP_CL)\n VM.sysWriteln(\"String_Node_Str...
"public void activate() {\n Char ch = Actor.findChar(pos);\n if (ch == Dungeon.hero) {\n Buff.affect(ch, Armor.class).level(ch.HT);\n }\n if (Dungeon.visible[pos]) {\n CellEmitter.bottom(pos).start(EarthParticle.FACTORY, 0.05f, 8);\n Camera.main.shake(1, 0.4f);\n }\n}\n"
"protected void addMapping(Descriptor descriptor, DatabaseMapping mapping) {\n String target = null;\n if (mapping.isCollectionMapping()) {\n if (mapping.isEISMapping()) {\n EISCompositeCollectionMapping collectionMapping = (EISCompositeCollectionMapping) mapping;\n String collectionT...
"public EList<String> getColumnHeaders() {\n EList<String> headers = new BasicEList<String>();\n for (ModelElement column : this.getNominalColumns()) {\n headers.add(column.getName());\n }\n for (ModelElement column : this.getNumericColumns()) {\n for (String f : this.getNumericFunctions()) {\...
"public void createDocumentAsync() throws InterruptedException, ExecutionException {\n final CompletableFuture<DocumentCreateResult<BaseDocument>> f = db.collection(COLLECTION_NAME).createDocument(new BaseDocument(), null).executeAsync();\n assertThat(f, is(notNullValue()));\n f.whenComplete((doc, ex) -> {\n ...
"public static ONCRPCException createException(int accept_stat) throws Exception {\n switch(accept_stat) {\n case 2009120231:\n return new ConcurrentModificationException();\n case 2009112137:\n return new DIRException();\n case 2009112135:\n return new InvalidAr...
"public void new_mode_modify_original_has_no_timestamps_input_has_wrong_timestamps() {\n testDateTimeProvider.setTime(actionTime());\n when(updateContext.getAction(update)).thenReturn(Action.MODIFY);\n when(overrideOptions.isSkipLastModified()).thenReturn(false);\n final RpslObject input = new RpslObjectBui...
"public static final void checkFieldModifiers(int modifiers) {\n if ((modifiers & ~(PUBLIC_MOD | PROTECTED_MOD | PRIVATE_MOD | STATIC_MOD | FINAL_MOD | TRANSIENT_MOD | VOLATILE_MOD)) != 0) {\n throw new RuntimeException(\"String_Node_Str\" + toString(modifiers));\n }\n}\n"
"public Data transform(final Node node) {\n throw new UnsupportedOperationException(\"String_Node_Str\");\n}\n"
"public EventStream events(EventsParam... params) throws DockerException, InterruptedException {\n WebTarget resource = noTimeoutResource().path(\"String_Node_Str\");\n final Map<String, String> filters = newHashMap();\n for (final EventsParam param : params) {\n if (param instanceof EventsFilterParam) ...
"private SearchNode confirmIsls(List<SimpleIsl> srcIsls) {\n int totalCost = 0;\n LinkedList<SimpleIsl> confirmedIsls = new LinkedList<>();\n boolean validPath = true;\n for (SimpleIsl i : srcIsls) {\n boolean foundThisOne = false;\n SimpleSwitch srcSwitch = network.getSimpleSwitch(i.getSrcDpi...
"public void handlePicking(final AGLView glView, final GL2 gl) {\n if (enablePicking == false)\n return;\n GLMouseListener glMouseListener = glView.getGLMouseListener();\n Point pickPoint = null;\n PickingMode ePickingMode = PickingMode.CLICKED;\n if (glMouseListener.wasMouseDoubleClicked()) {\n ...
"static private Representation getDbs(HttpServerExchange exchange, RequestContext context, List<DBObject> embeddedData, long size) throws IllegalQueryParamenterException {\n String requestPath = URLUtilis.removeTrailingSlashes(exchange.getRequestPath());\n String queryString = (exchange.getQueryString() == null |...
"private OFFlowMod expandActions(OFFlowMod flowMod) {\n List<OFAction> actions = flowMod.getActions();\n if (actions == null || actions.isEmpty()) {\n return null;\n }\n List<OFAction> newActions = new ArrayList<OFAction>();\n for (OFAction action : actions) {\n log.debug(\"String_Node_Str\...
"private void checkAndSend(boolean send, String address, Object body, SockJSSocket sock, String replyAddress) {\n final SockInfo info = sockInfos.get(sock);\n if (replyAddress != null && !checkMaxHandlers(sock, info)) {\n return;\n }\n final Handler<AsyncResult<Message<Object>>> replyHandler;\n if...
"protected void _addConnections() throws TransformationException {\n for (NamedObj replacement : _replacementToHost.keySet()) {\n if (!(replacement instanceof Port)) {\n continue;\n }\n Port replacementPort = (Port) replacement;\n Port hostPort = (Port) _replacementToHost.get(r...
"public void test() {\n ChangeItem item;\n if (itemType == ItemType.artifact) {\n item = ChangeItemUtil.newArtifactChange(ArtifactId.SENTINEL, ArtifactTypeId.SENTINEL, GAMMA, ModificationType.MODIFIED, ApplicabilityToken.BASE);\n } else {\n item = ChangeItemUtil.newAttributeChange(AttributeId.val...
"public static Event getEvent(AuRequest request) {\n final String name = request.getCommand();\n final Component comp = request.getComponent();\n final Map<String, Object> data = request.getData();\n if (data.isEmpty()) {\n return new Event(name, comp);\n } else if (data.containsKey(\"String_Node_...
"public void addNode(Workflow wf, String nodeId, TopologyContext toscaTypeFinder, boolean isCompute) {\n if (WorkflowUtils.isNativeOrSubstitutionNode(nodeId, toscaTypeFinder)) {\n WorkflowUtils.addDelegateWorkflowStep(wf, nodeId);\n } else {\n AbstractStep lastStep = null;\n lastStep = append...
"private Boundary getExampleBoundary() {\n List<BoundaryPart> bpl = new ArrayList<BoundaryPart>();\n BoundaryPart bp;\n Edge cstr;\n List<Edge> boundaryEdges;\n Boundary bound = new Boundary();\n cstr = null;\n boundaryEdges = new ArrayList<Edge>();\n boundaryEdges.add(new Edge(0, 1, 0, 3, 2, 0)...
"public synchronized void start() {\n try {\n if (siddhiAppContext.isStatsEnabled() && siddhiAppContext.getStatisticsManager() != null) {\n siddhiAppContext.getStatisticsManager().startReporting();\n }\n for (EternalReferencedHolder eternalReferencedHolder : siddhiAppContext.getEterna...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_my);\n MonthAdapter adapter = new MonthAdapter(this, getResources().getStringArray(R.array.month_names));\n ListView month_listview = (ListView) findViewById(R.id.month_listview);\n...
"private void addHDFSRecipe(Cluster cluster, String blueprintText, Set<HostGroup> hostGroups) {\n try {\n for (HostGroup hostGroup : hostGroups) {\n if (isComponentPresent(blueprintText, \"String_Node_Str\", hostGroup)) {\n String script = FileReaderUtils.readFileFromClasspath(\"Stri...
"public final Message createMessage(final String stringMessage, final String subject, final Map<String, Object> model, final NotificationAddress address) {\n Validate.notNull(stringMessage);\n Validate.notNull(model);\n return new StringMessage(renderString(stringMessage, model), renderString(subject, model), ...
"public int hashCode() {\n int hashCode = super.hashTo();\n hashCode <<= 4;\n hashCode ^= (expectedScriptPath != null) ? expectedScriptPath.hashCode() : 0;\n hashCode <<= 4;\n hashCode += (scriptFormatOverride != null) ? scriptFormatOverride.hashCode() : 0;\n return hashCode;\n}\n"
"private static void createCollection(CloudSolrClient cloudSolrClient, String collection, Path configPath) {\n CollectionAdminRequest.Create req = new CollectionAdminRequest.Create();\n try {\n LOGGER.info(\"String_Node_Str\", collection);\n Path collectionConf = configPath.resolve(\"String_Node_Str...
"public TmfContext seekLocation(ITmfLocation<?> location) {\n try {\n ITmfLocation<?> location = new TmfLocation<Long>(new Long((long) (ratio * fTrace.length())));\n TmfContext context = seekLocation(location);\n context.setRank(ITmfContext.UNKNOWN_RANK);\n return context;\n } catch (I...
"protected String getOutputSuffix() {\n switch(getCurrentExportType1()) {\n case WSWAR:\n return \"String_Node_Str\";\n case JBOSSESB:\n return \"String_Node_Str\";\n case OSGI:\n return \"String_Node_Str\";\n default:\n return \"String_Node_Str...
"public Protocol getDefaultProtocolFor(String identifier) {\n TableDef table = rootSchemaDef.findTableFor(identifier);\n if (table != null && table.getProtocol() != null)\n return table.getProtocol();\n return rootSchemaDef.getDefaultProtocol();\n}\n"
"public EF_TruncatedExponential newEFUnivariateDistribution() {\n EF_TruncatedExponential ef_TruncatedExponential = new EF_TruncatedExponential(this.variable);\n for (double a : args) {\n ef_TruncatedExponential.getNaturalParameters().set(0, -a);\n }\n ef_TruncatedExponential.fixNumericalInstability(...
"protected void setInternal(final Data key, final Data value, final long ttl, final TimeUnit timeunit) {\n SetOperation operation = new SetOperation(name, key, value, timeunit.toMillis(ttl));\n invokeOperation(key, operation);\n invalidateNearCache(key);\n}\n"
"private ICompletionProposal[] getValueProposals(Parameter activeParam, String extraInfo, int offset, int paramCount) {\n String suffix = \"String_Node_Str\";\n Set values = activeParam.getValues();\n ICompletionProposal[] tmpResult = new ICompletionProposal[values.size()];\n if (this.paramsSoFar == paramCo...
"public void deleteEntitlementWithValidIdShouldPass() {\n unitOfWork.beginWork();\n Entitlement entitlement = entitler.entitle(consumer, product);\n assertNotNull(entitlementCurator.find(entitlement.getId()));\n unitOfWork.endWork();\n unitOfWork.beginWork();\n WebResource r = resource().path(\"String...
"public TreeSet<Integer> getSourceLineRange() {\n TreeSet<Integer> lines = new TreeSet<Integer>();\n for (InstructionHandle ih : instructions) {\n LineNumberGen gen = methodCode.getLineNumberEntry(ih, ih == instructions.getFirst());\n int sourceLine = gen != null ? gen.getSourceLine() : -1;\n ...
"public void applyPlayerInput(int playerId, UserInputMessage msg) {\n Player player = this.players.getPlayer(playerId);\n if (player != null) {\n if (player.isAlive()) {\n PlayerEntity entity = player.getEntity();\n entity.handleUserCommand(msg.keys, msg.orientation);\n } else ...
"public void calculateTopStyles() {\n if (styles.size() > 0) {\n StyleEntry style = (StyleEntry) styles.peek();\n Boolean value = (Boolean) style2top.get(style);\n if (value != null && value.booleanValue()) {\n Span span = (Span) spans.peek();\n int start = ((Integer) pos.p...
"protected void addFields() {\n Group group = Form.createGroup(this, 1, \"String_Node_Str\", 100);\n Composite compositeFileLocation = Form.startNewDimensionnedGridLayout(group, 3, WIDTH_GRIDDATA_PIXEL, 100);\n GridData gridDataFileLocation = new GridData(GridData.FILL_HORIZONTAL);\n gridDataFileLocation.mi...
"public void testSingleReplicatedDefault() {\n ChannelConfig channel = getReplicatedChannel(channelName);\n S3Verifier.VerifierRange range = s3Verifier.getSingleVerifierRange(now, channel);\n logger.info(\"String_Node_Str\", range);\n assertEquals(new MinutePath(now.minusMinutes(1)), range.endPath);\n as...
"public void onFailure(Throwable throwable) {\n LOGGER.error(String.format(\"String_Node_Str\", backoffDelayQty, backoffDelayUnit), throwable);\n executorService.schedule(new Runnable() {\n public void run() {\n runCallback();\n }\n }, backoffDelayQty, backoffDelayUnit);\n}\n"
"public boolean updateBuffer(int buffer) {\n stream.readNextInto(dataBuffer);\n if (dataBuffer.limit() == 0) {\n return false;\n }\n int format = stream.getChannels() == 1 ? AL10.AL_FORMAT_MONO16 : AL10.AL_FORMAT_STEREO16;\n AL10.alBufferData(buffer, format, dataBuffer, stream.getSamplingRate());\...
"public void reloadInputModel() {\n TdColumn column = null;\n modelInput.clear();\n synedEleMap.clear();\n for (ModelElement element : analyzedElements) {\n try {\n column = (TdColumn) element;\n synedEleMap.put(column, null);\n ColumnSet anaColumnSet = ColumnHelper.g...
"public List<Account> getRecipients() {\n List<Account> recipients = new ArrayList<>();\n switch(this.type) {\n case Group.GROUP_INVITATION:\n for (String accountId : inviteList) {\n try {\n final Account account = Account.findByIdTransactional(Long.parseLong(ac...
"protected void doRun() {\n IStructuredSelection selection = (IStructuredSelection) getSelection();\n if (repositoryNode == null && selection != null) {\n repositoryNode = (RepositoryNode) selection.getFirstElement();\n }\n IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();\n ...
"private void startBlurImageAppearAnimator() {\n if (!enableBlurBackground || mBlurImage == null)\n return;\n AnimatorSet set = new AnimatorSet();\n if (enableBackgroundZoom) {\n set.playTogether(ObjectAnimator.ofFloat(mBlurImage, \"String_Node_Str\", 0.8f, 1f), ObjectAnimator.ofFloat(mBlurImage,...