content stringlengths 40 137k |
|---|
"public boolean postfire() throws IllegalActionException {\n _currentOutputIndex = _tentativeCurrentOutputIndex;\n if (_boundaryCrossed) {\n double meanTimeValue = ((DoubleToken) meanTime.getToken()).doubleValue();\n double exp = -Math.log((1 - Math.random())) * meanTimeValue;\n Director dire... |
"public Properties getTeiidRelatedProperties(IConnectionProfile connectionProfile) {\n Properties connectionProps = new Properties();\n Properties props = connectionProfile.getBaseProperties();\n String password = props.getProperty(ICredentialsCommon.PASSWORD_PROP_ID);\n if (password != null) {\n con... |
"public String escapeColumnNameList(String columnNames) {\n StringBuffer sb = new StringBuffer();\n for (String columnName : columnNames.split(\"String_Node_Str\")) {\n if (sb.length() > 0) {\n sb.append(\"String_Node_Str\");\n }\n sb.append(\"String_Node_Str\").append(columnName.t... |
"public ResourcePoolRead toRest() {\n ResourcePoolRead read = new ResourcePoolRead();\n read.setRpName(this.getName());\n read.setRpVsphereName(this.getVcResourcePool());\n read.setVcCluster(this.getVcCluster());\n Set<HadoopNodeEntity> nodes = this.getHadoopNodes();\n if (nodes == null || nodes.isEmp... |
"private void unpackWorkMessage(Message m, Element e) {\n Work work = new Work();\n m.setData(work);\n work.setSourceAddress(e.getElementsByTagName(\"String_Node_Str\").item(0).getTextContent());\n work.setSourceAddress(e.getElementsByTagName(\"String_Node_Str\").item(0).getTextContent());\n work.setSour... |
"private Mapper createMapperInstance(ClassLoader classLoader, String userMapper, Context context) {\n if (context.getInputSplit() instanceof MultiInputTaggedSplit) {\n userMapper = ((MultiInputTaggedSplit) context.getInputSplit()).getMapperClassName();\n }\n try {\n return (Mapper) classLoader.lo... |
"public static ReportItemHandle getInheritedHandle(ReportItemHandle itemHandle) {\n if (itemHandle.getDataSet() == null && isContainerInheritable(itemHandle)) {\n DesignElementHandle handle = itemHandle.getContainer();\n while (handle != null && !(handle instanceof ListingHandle || handle instanceof Gr... |
"public void testDataSourceChangeListenerPlugin() {\n final MondrianProperties properties = MondrianProperties.instance();\n if (properties.TestExpDependencies.get() > 0) {\n return;\n }\n final TestContext testContext = getTestContext();\n final mondrian.olap.CacheControl cacheControl = testConte... |
"public LogReader getLogReader() throws Exception {\n if (logReader != null)\n return logReader;\n Actor parent = getParent();\n if (parent == null) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n TransactionProcessor transactionProcessor = new TransactionProcessor(getMailbo... |
"private static SpoutEntity loadEntity(World w, CompoundTag tag, String Name, SpoutSession<?> playerSession) {\n CompoundMap map = tag.getValue();\n byte version = SafeCast.toByte(NBTMapper.toTagValue(map.get(\"String_Node_Str\")), (byte) 0);\n String name = SafeCast.toString(NBTMapper.toTagValue(map.get(\"Str... |
"public CompoundProperty addSALIFeatures(CompoundProperty p) {\n CompoundProperty[] oldProps = new CompoundProperty[0];\n for (CompoundProperty prop : getAdditionalProperties()) if (prop instanceof SALIProperty)\n oldProps = ArrayUtil.push(CompoundProperty.class, oldProps, prop);\n Double[] d = new Doub... |
"private static synchronized RepositoryManager getRepositoryManagerForLocation(String serverURL, String username, String password) throws RepositoryException {\n RepositoryManager repoManager;\n if ((repoManager = openRepositoryManagers.get(serverURL)) != null) {\n logger.info(\"String_Node_Str\", serverUR... |
"public Response addCartridgeGroup(CartridgeGroupBean cartridgeGroupBean) throws RestAPIException {\n PrivilegedCarbonContext carbonContext = PrivilegedCarbonContext.getThreadLocalCarbonContext();\n String cartrideGroupUuid = UUID.randomUUID().toString();\n int tenantId = carbonContext.getTenantId();\n Cart... |
"public void readFromNBT(NBTTagCompound tag) {\n this.sizeX = tag.getInteger(Names.NBT.x);\n this.sizeY = tag.getInteger(Names.NBT.y);\n this.sizeZ = tag.getInteger(Names.NBT.z);\n int x = tag.getInteger(Names.NBT.x2);\n int y = tag.getInteger(Names.NBT.y2);\n int z = tag.getInteger(Names.NBT.z2);\n ... |
"private void moveExistingTransfers(NodeRef filePlan) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"String_Node_Str\" + filePlan.toString());\n }\n NodeRef container = filePlanService.getTransferContainer(filePlan);\n List<ChildAssociationRef> assocs = nodeService.getChildAssocs(filePlan, ASSOC... |
"public Vector<Node> expand(TypedSparqlQueryInterface tsq, Manipulators m) {\n Set<StringTuple> s = tsq.getTupelForResource(uri);\n s = m.check(s, this);\n Vector<Node> Nodes = new Vector<Node>();\n Iterator<StringTuple> it = s.iterator();\n while (it.hasNext()) {\n StringTuple t = (StringTuple) i... |
"private void _replaceRelation(KPort kPort, KNode kNode, Relation newRelation, Relation oldRelation) throws IllegalActionException {\n Port port = null;\n Relation sourceRelation = null;\n if (kPort != null) {\n port = _kieler2PtolemyPorts.get(kPort);\n }\n if (port == null) {\n NamedObj na... |
"public void onUpdate() {\n super.onUpdate();\n this.prevAttackCounter = this.attackCounter;\n double var1 = this.waypointX - this.posX;\n double var3 = this.waypointY - this.posY;\n double var5 = this.waypointZ - this.posZ;\n double var7 = var1 * var1 + var3 * var3 + var5 * var5;\n if (var7 < 1.0D... |
"public int executeBatch() {\n Object connection = getConnection();\n Pipeline pipeLine = null;\n if (isBoundTransaction()) {\n pipeLine = ((Jedis) connection).pipelined();\n }\n try {\n for (Node node : nodes) {\n if (node.isDirty()) {\n node.handlePreEvent();\n ... |
"private void writeXML(Properties props, String comment) throws IOException, CoreException, SaxonApiException, XMLStreamException {\n SerializeOpts serializeOpts = getSerializeOpts();\n ByteArrayOutputStream oss = new ByteArrayOutputStream();\n props.storeToXML(oss, comment, serializeOpts.getEncoding());\n ... |
"private void createNodeForPageableCollection(PageableCollection collection, Node node) {\n node.addAttributeNode(\"String_Node_Str\");\n node.addAttributeNode(\"String_Node_Str\");\n node.addAttributeNode(\"String_Node_Str\");\n node.addAttributeNode(\"String_Node_Str\");\n node.addAttributeNode(\"Strin... |
"public Resource publish(String context, List<Object> instances) throws Exception {\n Host host = ServerUtil.getDefaultHost().getHost();\n StandardContext serverContext = (StandardContext) host.findChild(\"String_Node_Str\" + context);\n if (serverContext == null) {\n serverContext = new StandardContext... |
"public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {\n switch(ID) {\n case ARMOUR_ID:\n if (ItemHelper.isPlayerHoldingItem(IModularItem.class, player)) {\n return new ArmourGui(new ArmourContainer(player.getHeldItem(), player.inventory),... |
"public static String getFirstName(OperationSetServerStoredAccountInfo accountInfoOpSet) {\n FirstNameDetail firstName = null;\n Iterator<GenericDetail> firstNameDetails = accountInfoOpSet.getDetails(FirstNameDetail.class);\n if (firstNameDetails.hasNext()) {\n FirstNameDetail firstName = (FirstNameDeta... |
"public void logInfo() {\n logger.info(\"String_Node_Str\" + location);\n meansPool.logInfo(logger);\n variancePool.logInfo(logger);\n transitionsPool.logInfo(logger);\n senonePool.logInfo(logger);\n if (meanTransformationMatrixPool != null)\n meanTransformationMatrixPool.logInfo(logger);\n ... |
"private void composeProfileProfileStructureComponent(String name, Profile.ProfileStructureComponent element) throws Exception {\n if (element != null) {\n composeElementAttributes(element);\n xml.open(FHIR_NS, name);\n composeBackboneElements(element);\n composeCode(\"String_Node_Str\", ... |
"private void onUpdateVersionResponse(UpdateOutput updateOutput) {\n boolean isForcedUpdate;\n if (updateOutput.force_update != null && updateOutput.force_update.equalsIgnoreCase(\"String_Node_Str\")) {\n isForcedUpdate = true;\n } else {\n isForcedUpdate = false;\n }\n UpdateChecker update... |
"public void receiveAICommand(PlayerInfo forBot, AICommand command) {\n if (forBot.isBot() && forBot.isAlive()) {\n Brain brain = getBrain(forBot);\n if (brain != null) {\n Action action = this.aiCommands.compile(brain, command);\n if (action != null) {\n brain.getC... |
"private void uploadData() {\n vboVert.bind();\n vboVert.uploadData(vBuffer, GL_STREAM_DRAW);\n vao.pointAttribute(vertexLocation, 4, GL_FLOAT, vboVert);\n vboCol.bind();\n vboCol.uploadSubData(cBuffer, 0);\n vao.pointAttribute(colorLocation, 4, GL_FLOAT, vboCol);\n vboTex.bind();\n vboTex.uploa... |
"protected IConnectWizard createConnectWizard() {\n final String auth = getURI().getAuthority();\n if (isXMPPS)\n return new XMPPSConnectWizard(auth);\n else\n return new XMPPConnectWizard(auth);\n}\n"
|
"public void loginFailsCertificateMapFailedException() throws Exception {\n final X509Certificate[] certChain = new X509Certificate[] { cert };\n mock.checking(new Expectations() {\n {\n one(collectiveAuthenticationPlugin).isCollectiveCertificateChain(certChain);\n will(returnValue(fa... |
"private boolean isInContainer(SheetData data, XlsContainer rowContainer) {\n return data.getRowIndex() > rowContainer.getStartRowId();\n}\n"
|
"private XValue parseXExpr(Shell shell, String arg) throws CoreException {\n mLogger.entry(shell, arg);\n Processor processor = Shell.getProcessor();\n XQueryCompiler compiler = processor.newXQueryCompiler();\n compiler.setModuleURIResolver(new ShellModuleURIResolver(mShell));\n compiler.declareNamespace... |
"public void testCurrentProject3() throws PersistenceException {\n Project currentProject = ProjectManager.getInstance().getCurrentProject();\n IProject project = ResourceUtils.getProject(currentProject);\n testExist(new ProjectPreferenceManager(project, 'C' + getTestQualifier(currentProject.getTechnicalLabel(... |
"public IStatus doAction() {\n try {\n XSDElementDeclaration decl = xsdElem;\n if (decl == null) {\n ISelection selection = page.getTreeViewer().getSelection();\n decl = (XSDElementDeclaration) ((IStructuredSelection) selection).getFirstElement();\n }\n ArrayList<Obj... |
"private void cleanDataDefinition(SeriesDefinition sd) {\n EList<Query> dds = sd.getDesignTimeSeries().getDataDefinition();\n for (int i = 0; i < dds.size(); i++) {\n ((Query) dds.get(i)).setDefinition(\"String_Node_Str\");\n }\n}\n"
|
"private void lineSearch(Vector searchDirection, Vector gradient) {\n Vector localSearchDir;\n double initialStepLength = 1;\n double shrinkage = 0.5;\n double c = 1e-4;\n double stepLength = initialStepLength;\n Vector start = logisticRegression.getWeights().getAllWeights();\n double penalty = pen... |
"public void viewDidDisappear(boolean animated) {\n super.viewDidDisappear(animated);\n NSNotificationCenter.getDefaultCenter().removeObserver(keyboardWillShowObserver);\n NSNotificationCenter.getDefaultCenter().removeObserver(keyboardWillHideObserver);\n}\n"
|
"public final void handle() {\n if (!connection.live())\n return;\n try {\n final int readBytes = socketChannel.read(inBuffer);\n if (readBytes == -1) {\n connection.close();\n return;\n }\n if (readBytes <= 0) {\n return;\n }\n } catch... |
"private void failing(SAMRecord rec, SAMFileHeader h) {\n openFailing(h);\n if (failingReadsWriter != null)\n failingReadsWriter.addAlignment(rec);\n}\n"
|
"public void selectAll() {\n getProperties()[1].setValue(Arrays.asList(partition.getParts()));\n}\n"
|
"private void generateClassLiterals(JsVars vars) {\n for (JType type : classLits.keySet()) {\n if (type != objType) {\n generateClassLiteral(type, vars);\n }\n }\n}\n"
|
"public String stringFromDate(java.util.Date sourceDate, QName schemaType) {\n XMLGregorianCalendar xgc = getDatatypeFactory().newXMLGregorianCalendar();\n if (XMLConstants.DATE_QNAME.equals(schemaType)) {\n GregorianCalendar cal = new GregorianCalendar(getTimeZone());\n cal.setTime(sourceDate);\n ... |
"public synchronized void init(Map<?, ?> properties) {\n if (manager != null) {\n log.warn(\"String_Node_Str\");\n return;\n }\n initializing = true;\n try {\n String configurationResourceName = null;\n if (properties != null) {\n configurationResourceName = (String) p... |
"public void testPublish() throws Exception {\n try {\n FileSystemResolver resolver = new FileSystemResolver();\n resolver.setName(\"String_Node_Str\");\n resolver.setSettings(settings);\n assertEquals(\"String_Node_Str\", resolver.getName());\n resolver.addIvyPattern(\"String_Node... |
"public static FoodQueue getNewFoodQueue() {\n if (ModConfig.USE_HUNGER_QUEUE)\n return new FixedHungerQueue(ModConfig.FOOD_HISTORY_LENGTH);\n else if (ModConfig.USE_TIME_QUEUE)\n return new FixedTimeQueue((long) ModConfig.FOOD_HISTORY_LENGTH * MiscHelper.TICKS_PER_DAY);\n else\n return ne... |
"private void scheduleOneShotNotification(Date when, String title) {\n if (when != null) {\n Date now = new Date();\n Date scheduleDate;\n if (when.getTime() > now.getTime()) {\n scheduleDate = when;\n } else {\n Calendar calendar = Calendar.getInstance();\n ... |
"public <T extends IndexedToscaElement> T getElementInDependencies(Class<T> elementClass, String elementId, Collection<CSARDependency> dependencies) {\n if (dependencies == null || dependencies.isEmpty()) {\n return null;\n }\n BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery();\n for (CSA... |
"private void loadValidationPack() throws FileNotFoundException, IOException, FHIRException {\n String source;\n if (version.equals(\"String_Node_Str\"))\n source = \"String_Node_Str\";\n else if (version.equals(\"String_Node_Str\"))\n source = \"String_Node_Str\";\n else\n throw new FH... |
"public boolean canConnectRedstone(ForgeDirection side) {\n return !bundled;\n}\n"
|
"public void setHeaderAlignment(int iAlignment) {\n this.iHeaderAlignment = iAlignment;\n for (int i = 0; i < btnHeaders.size(); i++) {\n btnHeaders.get(i).setAlignment(iHeaderAlignment);\n }\n}\n"
|
"public void close() {\n if (dynamicAttributes) {\n attributes = buffer.getAttributes();\n helper = new C3ChartHelper(this);\n }\n if (!helper.isInitialized()) {\n log.error(\"String_Node_Str\");\n } else {\n try {\n if (dynamicAttributes) {\n buffer.rep... |
"public T process(MutableEntry<K, V> entry, Object... arguments) {\n Assert.assertFalse(entry.exists());\n entry.setValue(value);\n Assert.assertTrue(entry.exists());\n return ret;\n}\n"
|
"public void onScrollChanged() {\n if (isPostAdapterEmpty()) {\n return;\n }\n int scrollPos = mListView.getVerticalScrollOffset();\n if (scrollPos != mLastPostListScrollPos) {\n repositionBlogInfoView(scrollPos);\n mLastPostListScrollPos = scrollPos;\n }\n}\n"
|
"public void addMarketoAuthenticatioNHeader(org.apache.axis.client.Call _call) throws Exception {\n String requestTimestamp = formatAsW3C(Calendar.getInstance().getTime());\n String stringToEncrypt = requestTimestamp + clientAccessID;\n String signature = Signature.hmac_sha1(stringToEncrypt, secretKey);\n Q... |
"public void updatePlannedDates(ManufOrder manufOrder, LocalDateTime plannedStartDateT) {\n manufOrder.setPlannedStartDateT(plannedStartDateT);\n if (manufOrder.getOperationOrderList() != null) {\n List<OperationOrder> operationOrderList = getSortedOperationOrderList(manufOrder);\n operationOrderWor... |
"public void testGetSkylarkType() throws Exception {\n Class<?> emptyTupleClass = Tuple.empty().getClass();\n Class<?> tupleClass = Tuple.of(1, \"String_Node_Str\", \"String_Node_Str\").getClass();\n Class<?> mutableListClass = MutableList.copyOf(env, Tuple.of(1, 2, 3)).getClass();\n assertThat(EvalUtils.ge... |
"public static void main(String[] args) throws URISyntaxException, SBOLValidationException {\n SBOLDocument doc = new SBOLDocument();\n doc.setDefaultURIprefix(\"String_Node_Str\");\n doc.setComplete(true);\n doc.setCreateDefaults(true);\n String version = \"String_Node_Str\";\n doc.createComponentDef... |
"protected boolean isWarped() {\n return ((m00 != 1) || (m01 != 0) || (m10 != 0) || (m11 != 1));\n}\n"
|
"public boolean onCommand(final CommandCaller caller, final String[] args) {\n final PlotPlayer plr = caller instanceof PlotPlayerCaller ? (PlotPlayer) caller.getSuperCaller() : null;\n if (args.length < 1) {\n noArgs(plr);\n return false;\n }\n int page = 0;\n if (args.length > 1) {\n ... |
"public void renderOverviewBundling(GL gl, HeatMapWrapper leftHeatMapWrapper, HeatMapWrapper rightHeatMapWrapper) {\n ArrayList<Vec3f> points = new ArrayList<Vec3f>();\n ContentVirtualArray overview = leftHeatMapWrapper.getContentVA().clone();\n ContentVirtualArray overviewRight = rightHeatMapWrapper.getConten... |
"public AccessibilityEvent executeAndWaitForEvent(Runnable command, AccessibilityEventFilter filter, long timeoutMillis) throws TimeoutException {\n synchronized (mLock) {\n throwIfNotConnectedLocked();\n mEventQueue.clear();\n mWaitingForEventDelivery = true;\n }\n final long executionSta... |
"public void load(FMLInitializationEvent event) {\n MinecraftForge.EVENT_BUS.register(new EventHookGSGraveStone());\n creativeTab = new CreativeTabs(\"String_Node_Str\") {\n public ItemStack getIconItemStack() {\n ItemStack stack = new ItemStack(graveStone, 1, 0);\n NBTTagCompound nbt... |
"public List<Integer> getSubDeptId(Integer deptid) {\n Wrapper<Dept> wrapper = new EntityWrapper<>();\n wrapper = wrapper.like(\"String_Node_Str\", \"String_Node_Str\" + deptid + \"String_Node_Str\");\n List<Dept> depts = this.deptMapper.selectList(wrapper);\n ArrayList<Integer> deptids = new ArrayList<>();... |
"public Terminal getTerminal(String voltageLevelId) {\n Objects.requireNonNull(voltageLevelId);\n boolean side1 = getTerminal1().getVoltageLevel().getId().equals(voltageLevelId);\n boolean side2 = getTerminal2().getVoltageLevel().getId().equals(voltageLevelId);\n if (side1 && side2) {\n throw new Run... |
"protected void loadSolution(final SolutionMetaData solutionMeta) throws RepositoryException {\n showSolutionLoading(true);\n invokeLater(new Runnable() {\n public void run() {\n try {\n blockGUI(Messages.getString(\"String_Node_Str\", new Object[] { solutionMeta.getName() }));\n ... |
"public void widgetSelected(SelectionEvent e) {\n hideControl(authNodejtOrRmHistoryComposite, !kerberosBtn.getSelection());\n hideControl(authKeytabComposite, !kerberosBtn.getSelection());\n hideControl(maprTPasswordCompposite, kerberosBtn.getSelection() && maprTBtn.getSelection());\n getConnection().setEna... |
"protected Dimension getIntrinsicDimension(IImageContent content) throws BadElementException, MalformedURLException, IOException {\n Image image = null;\n String uri = content.getURI();\n String mimeType = content.getMIMEType();\n String extension = content.getExtension();\n if (FlashFile.isFlash(mimeTyp... |
"public void registerCommands(final CommandListener listener, CommandOwner owner, LocaleHelper translator, boolean force) throws CommandDependencyException {\n Method[] methods = listener.getClass().getDeclaredMethods();\n ArrayList<CanaryCommand> loadedCommands = new ArrayList<CanaryCommand>();\n for (final M... |
"public void run() {\n BufferedReader reader = new BufferedReader(new InputStreamReader(processInput));\n try {\n List<String> cmdArgs = getCommandArguments();\n if (cmdArgs == null || cmdArgs.isEmpty()) {\n throw new CoreException(getErrorStatus(\"String_Node_Str\"));\n } else {\n... |
"synchronized void setConnectionInfo(String connInfo) {\n if (connectionInfo != null) {\n return;\n }\n if (connInfo != null) {\n connectionInfo = connInfo;\n logger.severe(\"String_Node_Str\");\n startTheSlave(connectionInfo);\n }\n}\n"
|
"V acquire(Bytes keyBytes, K key, V usingValue, int hash2, boolean create, long timestamp) {\n lock();\n try {\n MultiStoreBytes entry = tmpBytes;\n long offset = searchKey(keyBytes, hash2, entry, hashLookupLiveOnly);\n if (offset >= 0) {\n if (canReplicate) {\n if (... |
"public void dragEnter(DropTargetEvent event) {\n event.detail = DND.DROP_COPY;\n if (Platform.OS_WIN32.equals(Platform.getOS())) {\n Object object = null;\n Transfer[] transferAgents = ((DropTarget) event.widget).getTransfer();\n for (int i = 0; i < transferAgents.length; i++) {\n ... |
"public void persistFlexibleElement(final PropertyMap changes, final Object model) {\n if (changes.get(AdminUtil.PROP_FX_FLEXIBLE_ELEMENT) == null) {\n return;\n }\n EntityManager em = entityManagerProvider.get();\n final String name = changes.get(AdminUtil.PROP_FX_NAME);\n final String code = cha... |
"protected Element getChildElement(Element element, String name) {\n NodeList list = element.getElementsByTagName(name);\n int listLength = list.getLength();\n for (int i = 0; i < listLength; i++) {\n Node node = list.item(i);\n if (node.getNodeType() == Node.ELEMENT_NODE && node.getNodeName().eq... |
"public void toString(StringBuffer buffer, int tabCount) {\n if (comment != null) {\n comment.toString(buffer, tabCount);\n }\n buffer.append(\"String_Node_Str\" + this.className);\n if (this.getExtendeds().length > 0) {\n for (int i = 0; i < this.getExtendeds().length; i++) {\n if ... |
"public String getClosestRoadname(Point2D.Double point) {\n KrakEdge road;\n try {\n road = getClosestEdge(point, Model.ROAD_SEARCH_DISTANCE, Evaluator.HAS_NAME);\n return road.roadname;\n } catch (NothingCloseException e) {\n return \"String_Node_Str\";\n }\n}\n"
|
"public boolean sendPacketToRouterService(SdlPacket packet) {\n if (routerServiceMessenger == null) {\n Log.d(TAG, whereToReply + \"String_Node_Str\");\n return false;\n }\n if (packet == null) {\n Log.w(TAG, whereToReply + \"String_Node_Str\");\n return false;\n }\n byte[] by... |
"protected List<TdColumn> extractColumns(DatabaseMetaData dbMetaData, IMetadataConnection metadataConnection, String databaseType, String catalogName, String schemaName, String tableName) {\n MappingTypeRetriever mappingTypeRetriever = null;\n columnIndex = 0;\n List<TdColumn> metadataColumns = new ArrayList<T... |
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View root = (ViewGroup) inflater.inflate(R.layout.processparent, container, false);\n setRetainInstance(false);\n mainActivity = (MainActivity) getActivity();\n if (mainActivity.theme1 == 1)\n root.... |
"public int doEndTag() throws JspException {\n try {\n if (!ChartWebHelper.checkOutputType(output)) {\n printError(\"String_Node_Str\" + output + \"String_Node_Str\");\n return EVAL_PAGE;\n }\n HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();\n ... |
"public void fire() throws IllegalActionException {\n double periodValue = ((DoubleToken) period.getToken()).doubleValue();\n double currentTime = getDirector().getCurrentTime();\n System.out.println(\"String_Node_Str\" + currentTime);\n if (!_trigger) {\n if (trigger.hasToken(0)) {\n Syst... |
"public void readTextFile(FilePath file, UniCallback<String> onComplete) {\n new Thread(() -> {\n try (InputStream inputStream = ((AndroidFilePath) file).getInputStream();\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream))) {\n StringBuilder stringBu... |
"public <T> Hbm onEvent(final EventType<T> type, final Class<? extends T> listenerType) {\n bindings.add(b -> b.bind(listenerType).asEagerSingleton());\n listeners.add((s, r) -> {\n ServiceRegistryImplementor serviceRegistry = s.getServiceRegistry();\n EventListenerRegistry service = serviceRegistry... |
"public static GlobalProperties getGlobalPropertiesAfterConnection(OptimizerNode source, OptimizerNode target, ShipStrategy shipMode) {\n GlobalProperties gp = source.getGlobalProperties().createCopy();\n int inputNum = 0;\n FieldSet keyFields = null;\n for (List<PactConnection> connections : target.getInco... |
"public void indentRange(Editor editor, DataContext context, TextRange range, int count, int dir) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\" + count);\n }\n Project proj = PlatformDataKeys.PROJECT.getData(context);\n int tabSize = 8;\n int indentSize = 8;\n boolean us... |
"private void dropCurrMaterial() {\n EMaterialType material = super.getMaterial();\n if (material.isDroppable()) {\n super.getStrategyGrid().dropMaterial(super.getPos(), material, true);\n super.setMaterial(EMaterialType.NO_MATERIAL);\n }\n}\n"
|
"private String getTopicDesc(Topic t) {\n StringBuilder sb = new StringBuilder();\n sb.append(t.getUser().getLogin()).append(\"String_Node_Str\");\n sb.append(getCreatedTime(t.getCreatedAt())).append(\"String_Node_Str\");\n sb.append(getContext().getString(R.string.fragment_at)).append(topic.getNodeName()).... |
"public void testForceDeliver() throws Exception {\n project.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n IvyResolve res = new IvyResolve();\n res.setProject(project);\n res.execute();\n publish.setPubrevision(\"String_Node_Str\");\n publish.setResolver(\"String_Node_Str\");\n publish.s... |
"private static boolean tryExplode(Logger logger, Function fn, ExecContext execCx, Block block, ListIterator<Statement> it, Instruction inst, HierarchicalSet<Var> waitedFor) {\n MakeImmRequest req = inst.canMakeImmediate(waitedFor, Collections.<ArgCV>emptySet(), Collections.<Var>emptySet(), true);\n if (req != nu... |
"protected void onPostExecute(APIResponse.CODE c) {\n super.onPostExecute(c);\n if (activity != null && mFragment != null && mFragment.getView() != null) {\n View view = mFragment.getView();\n TextView noDataText = (TextView) view.findViewById(R.id.no_data);\n View content = view.findViewById... |
"protected SetPortForwardingRulesCommand generateSetPortForwardingRulesCommand() {\n List<PortForwardingRuleTO> pfRules = new ArrayList<>();\n pfRules.add(new PortForwardingRuleTO(1, \"String_Node_Str\", 22, 80, \"String_Node_Str\", 22, 80, \"String_Node_Str\", false, false));\n pfRules.add(new PortForwardingR... |
"private void saveGraph(EntitySaveGraph objectGraph) {\n Object parentEntity = objectGraph.getParentEntity();\n EntityMetadata metadata = getMetadata(objectGraph.getParentClass());\n List<EntitySaveGraph> relationGraphs = null;\n if (objectGraph.isIsswapped() && !metadata.getRelations().isEmpty() && !object... |
"private Mana getManaTypes(Game game, Ability source) {\n List<Permanent> lands = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), game);\n Mana types = new Mana();\n for (Permanent land : lands) {\n Abilities<Ability> manaAbilities = land.getAbilities(game).getManaAbilities(Z... |
"public TypeAbstraction meet(TypeAbstraction rhs) {\n if (rhs == TOP) {\n return this;\n } else if (rhs == this) {\n return this;\n } else if (rhs instanceof PrimitiveType) {\n TypeReference other = ((PrimitiveType) rhs).reference;\n if (reference == TypeReference.Double) {\n ... |
"protected void configure() {\n bind(F.class);\n}\n"
|
"public void visitClosureExpression(ClosureExpression node) {\n VariableScope parent = scopes.getLast();\n VariableScope scope = new VariableScope(parent, node, false);\n scopes.add(scope);\n ClassNode[] inferredParamTypes = inferClosureParamTypes(scope, node);\n Parameter[] parameters = node.getParamete... |
"public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n if (!super.equals(o)) {\n return false;\n }\n BatchPipelineSpec that = (BatchPipelineSpec) o;\n return Objects.equals(endingActions... |
"public void run() {\n Path out = new Path(context.getProps().getProperty(CommonConstants.GUAGUA_OUTPUT));\n if (!isHalt && currentIteration != totalIteration) {\n writeModelToFileSystem(context.getMasterResult().getTrees(), out);\n }\n saveTmpModelToHDFS(context.getCurrentIteration(), context.getMas... |
"public boolean isFullyInside(float x, float y) {\n if (x < allowedLeft || x > allowedRight)\n return false;\n if (y < allowedTop || y >= allowedBottom)\n return false;\n return true;\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.