content stringlengths 40 137k |
|---|
"public void run() {\n XMLRPCClientInterface client = XMLRPCFactory.instantiate(blog.getUri(), blog.getHttpuser(), blog.getHttppassword());\n Map<String, String> postHash = new HashMap<String, String>();\n postHash.put(\"String_Node_Str\", CommentStatus.toString(newStatus));\n postHash.put(\"String_Node_Str... |
"public void execute() throws InsufficientCapacityException, ConcurrentOperationException, ResourceAllocationException {\n Network result = _networkService.createGuestNetwork(this);\n if (result != null) {\n NetworkResponse response = _responseGenerator.createNetworkResponse(result);\n response.setR... |
"public IType resolveType(ITypeVariable typeVar) {\n int index = typeVar.getIndex();\n if (this.method.getTypeVariable(index) == typeVar) {\n return this.generics[index];\n }\n return this.instanceType.resolveType(typeVar);\n}\n"
|
"protected void stopDatabase() {\n if (database != null) {\n if (!database.close()) {\n Log.e(TAG, \"String_Node_Str\");\n }\n }\n}\n"
|
"private void run() {\n isRunning = true;\n int frames = 0;\n double frameCounter = 0;\n game.init();\n double lastTime = Time.getTime();\n double unprocessedTime = 0;\n while (isRunning) {\n boolean render = false;\n double startTime = Time.getTime();\n double passedTime = sta... |
"protected void writePropertyFile(Properties p, String name) throws IOException {\n FileObject f = createResource(name);\n OutputStream os = f.openOutputStream();\n p.store(os, null);\n os.close();\n}\n"
|
"public List<Instance> discover() {\n log.debug(String.format(\"String_Node_Str\", this.promregatorConfiguration.getTargets().size()));\n List<ResolvedTarget> resolvedTargets = this.targetResolver.resolveTargets(this.promregatorConfiguration.getTargets());\n log.debug(String.format(\"String_Node_Str\", resolve... |
"public void initialize() throws IllegalActionException {\n super.initialize();\n _nextTimeFree = Time.NEGATIVE_INFINITY;\n _delayedInputTokensList = new LinkedList();\n}\n"
|
"public boolean hasNextDataLine() {\n if (hasNextDataLine) {\n return true;\n }\n hasNextDataLine = lineIterator.hasNext();\n if (hasNextDataLine) {\n line = lineIterator.next();\n if (!TSV) {\n parseCurrentLine();\n } else {\n parseTSVLine();\n }\n ... |
"public void reload(ItemStack weaponStack) {\n weaponStack.stackTagCompound.setInteger(\"String_Node_Str\", capacity);\n}\n"
|
"public void testRead4PrefixedString() throws Exception {\n String value = \"String_Node_Str\";\n byte[] length = Ints.toByteArray(value.length());\n byte[] string = value.getBytes();\n byte[] result = BytesUtils.merge(length, string);\n Buffer buffer = new FixedBuffer(result);\n String prefixedString... |
"private void resetFlightStartTime() {\n startTime = SystemClock.elapsedRealtime();\n}\n"
|
"public void initialize(AbstractSession session) throws DescriptorException {\n super.initialize(session);\n if (this.converter != null) {\n this.converter.initialize(this, session);\n }\n ArrayList<XMLMapping> mappingsList = new ArrayList<XMLMapping>();\n mappingsList.addAll(getChoiceElementMappi... |
"public void initGui() {\n super.initGui();\n slotInput = addElement(new ElementSlotOverlay(this, 53, 26).setSlotInfo(0, 0, 2));\n slotOutput = addElement(new ElementSlotOverlay(this, 112, 31).setSlotInfo(3, 1, 2));\n addElement(new ElementEnergyStored(this, 8, 8, baseTile.getEnergyStorage()));\n progres... |
"protected boolean canDrop(Object source) {\n if (source == null) {\n return false;\n }\n if (source instanceof StructuredSelection) {\n return canDrop(((StructuredSelection) source).toArray());\n }\n if (source instanceof Object[]) {\n Object[] array = (Object[]) source;\n if... |
"private float setRelationColor(GL gl, HeatMapWrapper heatMapWrapper, int contentID) {\n SelectionType type = heatMapWrapper.getContentSelectionManager().getSelectionTypes(contentID).get(0);\n float z = type.getPriority();\n float[] typeColor = type.getColor();\n float alpha = 0.2f;\n if (type == activeH... |
"public void onConfigurationChanged(Configuration newConfig) {\n super.onConfigurationChanged(newConfig);\n resizeCameras();\n}\n"
|
"void writeAll(final DatagramChannel socketChannel, final ModificationIterator modificationIterator, final long throttleMegaBytesPer100ms) throws InterruptedException, IOException {\n out.clear();\n in.clear();\n in.skip(2);\n final boolean wasDataRead = modificationIterator.nextEntry(entryCallback);\n i... |
"public void run() {\n Thread me = Thread.currentThread();\n for (; ; ) {\n if (me.isInterrupted())\n break;\n try {\n handleRcv(readObject());\n } catch (IOException e) {\n if (isClosing) {\n isClosing = false;\n synchronized (Cl... |
"public Set<DistributionModuleGroup> getModuleGroups() throws Exception {\n Set<DistributionModuleGroup> hs = new HashSet<>();\n DynamicPluginAdapter pluginAdapter = getPluginAdapter();\n String sparkHiveRuntimeId = pluginAdapter.getRuntimeModuleGroupIdByTemplateId(DynamicModuleGroupConstant.SPARK_HIVE_MRREQUI... |
"public QueryTree<N> getLGG(List<QueryTree<N>> trees, boolean learnFilters) {\n nodeId = 0;\n List<QueryTree<N>> treeList = new ArrayList<QueryTree<N>>(trees);\n if (logger.isDebugEnabled()) {\n logger.debug(\"String_Node_Str\");\n }\n for (int i = 0; i < treeList.size(); i++) {\n if (logge... |
"public void getNearbyPlaces(AddressListener l) {\n synchronized (this) {\n while (m_looper == null) {\n try {\n this.wait();\n } catch (InterruptedException ex) {\n }\n }\n }\n if (m_listeners.size() == 0) {\n try {\n m_locationMa... |
"protected Class findClass(String name) throws ClassNotFoundException {\n try {\n return this.backingBundle.loadClass(name);\n } catch (ClassNotFoundException cnfe) {\n if (log.isTraceEnabled()) {\n debugClassLoading(name, null);\n }\n throw new ClassNotFoundException(name +... |
"public void run() {\n try {\n GatewayDevice gatewayDevice = new GatewayDevice(routerIp);\n ArrayList<NatMapEntry> mapEntries = gatewayDevice.getNatTableArray();\n if (mapEntries.size() > 0) {\n for (NatMapEntry mapEntry : mapEntries) {\n String natIp = mapEntry.getIpAd... |
"public void onClosePressed() {\n if (cropping == true) {\n cropping = false;\n cropRectangle.setVisible(false);\n resizeHandleNW.setVisible(false);\n resizeHandleSE.setVisible(false);\n cropRectangle = null;\n resizeHandleSE = null;\n resizeHandleNW = null;\n }\n ... |
"public void actionPerformed(ActionEvent e) {\n MdDebug.log(\"String_Node_Str\");\n Collection<Element> selectedElements = MDUtils.getSelection(e, Configurator.lastContextIsDiagram);\n setContext(selectedElements);\n OclEvaluator.resetEnvironment();\n constraintRule.init(Utils.getProject(), null);\n c... |
"public void acceptUpload(final HTTPRequestMethod method, Socket socket) {\n debug(\"String_Node_Str\");\n HTTPUploader uploader = null;\n try {\n int queued = -1;\n String oldFileName = \"String_Node_Str\";\n HTTPRequestMethod currentMethod = method;\n while (true) {\n H... |
"public boolean checkTrigger(GameEvent event, Game game) {\n Permanent enchantment = game.getPermanent(this.getSourceId());\n if (enchantment != null && enchantment.getAttachedTo() != null && game.getCombat().getPlayerDefenders(game).contains(enchantment.getAttachedTo())) {\n TargetPermanent target = new T... |
"private ITDManager createTDManager(IParameterInterfacePO owner, TDManagerDTO dto, boolean assignNewGuids) {\n if (dto == null) {\n return PoMaker.createTDManagerPO(owner);\n }\n final ITDManager tdman;\n List<String> uniqueIds = new ArrayList<String>(dto.getUniqueIds());\n if (assignNewGuids) {\n... |
"private boolean parseApplication(Package owner, Resources res, XmlPullParser parser, AttributeSet attrs, int flags, String[] outError) throws XmlPullParserException, IOException {\n final ApplicationInfo ai = owner.applicationInfo;\n final String pkgName = owner.applicationInfo.packageName;\n TypedArray sa = ... |
"public void actionPerformed(ActionEvent event) {\n Object mysource = event.getSource();\n if (!(mysource instanceof JComboBox)) {\n super.actionPerformed(event);\n return;\n }\n JComboBox source = (JComboBox) event.getSource();\n String value = source.getSelectedItem().toString();\n Str... |
"public StateImpl copy() {\n return new StateImpl();\n}\n"
|
"public void reduce(Iterator<PactRecord> records, Collector out) throws Exception {\n double sum = 0;\n while (records.hasNext()) {\n record = records.next();\n key = record.getField(0, key);\n v = record.getField(1, v);\n if (v.getNumberOfColumns() > 1) {\n long val = Math.... |
"protected void deactivate(ComponentContext context) {\n logger.info(\"String_Node_Str\", context.getProperties());\n clear();\n}\n"
|
"public void readRssFeed(InputStream is) throws Exception {\n SAXParserFactory factory = SAXParserFactory.newInstance();\n factory.setNamespaceAware(true);\n factory.setFeature(\"String_Node_Str\", false);\n factory.setFeature(\"String_Node_Str\", true);\n SAXParser parser = factory.newSAXParser();\n ... |
"public Object getObject() throws Exception {\n FeignContext context = applicationContext.getBean(FeignContext.class);\n Feign.Builder builder = feign(context);\n if (!StringUtils.hasText(this.url)) {\n String url;\n if (!this.name.startsWith(\"String_Node_Str\")) {\n url = \"String_No... |
"public void onUpdate() {\n super.onUpdate();\n if (!this.worldObj.isRemote) {\n if (ticksExisted > 400 || !this.worldObj.blockExists(((int) this.posX), ((int) this.posY), ((int) this.posZ))) {\n this.setDead();\n return;\n }\n boolean flag = true;\n if (getThrowe... |
"public void renderLegend(IPrimitiveRenderer ipr, Legend lg, Map<Series, LegendItemRenderingHints> htRenderers) throws ChartException {\n if (!lg.isVisible()) {\n return;\n }\n renderBlock(ipr, lg, StructureSource.createLegend(lg));\n final IDisplayServer xs = getDevice().getDisplayServer();\n fin... |
"public static WriteMarshallable newSource(long lastIndexReceived) {\n try {\n Class<?> aClass = Class.forName(\"String_Node_Str\");\n Constructor<?> declaredConstructor = aClass.getDeclaredConstructor(long.class, Class.class, Class.class);\n return (WriteMarshallable) declaredConstructor.newIns... |
"public boolean equals(Object other) {\n if (other == null)\n return false;\n if (other instanceof Symbol) {\n Symbol otherS = (Symbol) other;\n return ((name.equals(otherS.name)) && ((this.namespace == null && otherS.namespace == null) || (namespace.equals(otherS.namespace))));\n } else {... |
"protected void stringToObj(String objValStr) {\n super.stringToObj(objValStr);\n if (categoricalVals == null) {\n categoricalVals = new HashSet<String>();\n } else {\n categoricalVals.clear();\n }\n String[] objStrArr = objValStr.split(Character.toString(FIELD_SEPARATOR), -1);\n this.is... |
"private double computeEdgeScore(Edge edge, float languageModelWeight, boolean useAcousticScoresOnly) {\n if (useAcousticScoresOnly) {\n return edge.getAcousticScore();\n } else {\n return edge.getAcousticScore() + edge.getLMScore() * languageModelWeightAdjustment;\n }\n}\n"
|
"public boolean isPlainValueElement(Value<?> valueElement) {\n String valueString = valueElement.getAttributeValue(Q.VALUE_ATTR);\n return (isValidFixedValue(valueString) && !valueString.equals(Q.NULL)) || !isArrayType() || (isArrayType() && !getId().equals(getId()));\n}\n"
|
"public Border toFormElementValue(JSONObject designValue, PropertyDescription pd, FlattenedSolution flattenedSolution, INGFormElement formElement, PropertyPath propertyPath) {\n return fromJSON(designValue, null, pd, null, null);\n}\n"
|
"public static boolean hasChild(Element ele, String regex) {\n NodeList nl = ele.getChildNodes();\n int len = nl.getLength();\n for (int i = 0; i < len; i++) {\n Node nd = nl.item(i);\n if (nd instanceof Element) {\n if (null == regex)\n return false;\n if (Re... |
"private String getAppName(File usageFile) {\n String name = usageFile.getName();\n return name.substring(0, name.length() - Configuration.USAGE_FILE_SUFFIX.length());\n}\n"
|
"public Vector<T> getRecordsForValues(String[] fieldNames, Object[] values) {\n Pair<String, String[]> whereClause = helper.createWhereAndroid(fieldNames, values, em, null);\n Cursor c = helper.getHandle().query(table, new String[] { DatabaseHelper.ID_COL, DatabaseHelper.DATA_COL }, whereClause.first, whereClause... |
"public boolean isSimpleOrNullableSimple() {\n return type.isSimpleType() || isNullableSimple();\n}\n"
|
"public String getColumnText(Object element, int columnIndex) {\n ChartDataEntity entity = (ChartDataEntity) element;\n return entity.getValue();\n}\n"
|
"private Map<String, String> getSetLinks(String cardSet) {\n Map<String, String> setLinks = new HashMap<>();\n try {\n String setNames = setsAliases.get(cardSet.toLowerCase());\n Set<String> aliasesStart = new HashSet<>();\n if (cardNameAliasesStart.containsKey(cardSet)) {\n aliase... |
"public IHostedPeripheral getPeripheral(TileEntity tile) {\n if (tile instanceof TileEntityCommandBlock) {\n return null;\n }\n if (tile instanceof IPeripheral) {\n return null;\n }\n if (tile == null) {\n return null;\n }\n if (tile instanceof IPeripheralProvider) {\n r... |
"public List getBaseTypes() {\n return Collections.EMPTY_LIST;\n}\n"
|
"public void receive(ByteBuffer pduBuffer) throws DecodingException, IOException, TimeoutException {\n if (connected == false) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n tConnection.receive(pduBuffer);\n decodeSessionLayer(pduBuffer);\n return decodePresentationLayer(pduBuffer... |
"public int[] columnWidths() {\n return new int[] { 20, 300 };\n}\n"
|
"public IQueryResults execute(IBaseQueryResults outerResults, Scriptable scope) throws DataException {\n try {\n if (context == null)\n return new CachedQueryResults(session, this.queryDefn.getQueryResultsID(), this, this.appContext);\n else\n return new QueryResults(this.tempDir,... |
"private void removeUnsynchronizedSubstitutions(DeploymentTopology deploymentTopology, Map<String, String> substitutedNodes, Map<String, List<LocationResourceTemplate>> availableSubstitutions) {\n if (deploymentTopology.getNodeTemplates() == null) {\n substitutedNodes.clear();\n return;\n }\n Ite... |
"public int hashCode() {\n int result = 0;\n for (final Field f : getClass().getFields()) {\n try {\n Object value = f.get(this);\n value = formatter.format(value);\n final int fieldHash = value != null ? value.hashCode() : 0;\n result = 31 * result + fieldHash;\... |
"private void doRefresh(final TreePath[] selectedNodes) {\n System.out.println(\"String_Node_Str\" + Arrays.toString(selectedNodes));\n final Set<TreePath> expandedNodes = new LinkedHashSet<TreePath>();\n int rowCount = tree.getRowCount();\n for (int i = 0; i < rowCount; i++) {\n TreePath path = tree... |
"public void testClusterStartFailure() throws Exception {\n CookieCache.put(\"String_Node_Str\", \"String_Node_Str\");\n BddErrorMessage errorMsg = new BddErrorMessage();\n errorMsg.setMessage(\"String_Node_Str\");\n ObjectMapper mapper = new ObjectMapper();\n this.buildReqRespWithoutReqBody(\"String_Nod... |
"protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == SCRIPT_EXEC_PY) {\n if (data != null) {\n Bundle bundle = data.getExtras();\n String flag = bundle.getString(\"String_Node_Str\");\n String param = bundle.getString(\"String_N... |
"public void onClick(View view) {\n if (!checkSurveyData()) {\n return;\n }\n final ArrayList<String> selectedFacIds = new ArrayList<String>();\n if (!selectedFaculties.isEmpty()) {\n for (int j = 0; j < selectedFaculties.size(); j++) {\n for (int x = 0; x < fetchedFaculties.size();... |
"public ResourceLocation getTexture() {\n return TextureMap.locationBlocksTexture;\n}\n"
|
"protected void handleMouseClick(Slot slot, int slotIdx, int ctrlDown, int key) {\n EntityPlayer player = Minecraft.getMinecraft().thePlayer;\n if (slot instanceof SlotFake) {\n InventoryAction action = null;\n action = ctrlDown == 1 ? InventoryAction.SPLIT_OR_PLACESINGLE : InventoryAction.PICKUP_OR... |
"public Boolean showLabel() {\n if (!hasLabel() || getLabel().getFont() == null) {\n return false;\n }\n EdgeSupervisor supervisor = getEdgeSupervisor();\n int labelCharCount = supervisor.getShortenLabelsFlag() ? supervisor.getLabelMaxChar() : 10;\n float minlength = node1.getRadius() + node2.getR... |
"public void createNamespace(HttpRequest request, HttpResponder responder, String namespaceId) {\n try {\n storageProviderNamespaceAdmin.create(Id.Namespace.from(namespaceId));\n } catch (IOException e) {\n responder.sendString(HttpResponseStatus.INTERNAL_SERVER_ERROR, \"String_Node_Str\" + e.getMes... |
"public Byte next() {\n if (next == buffer.length) {\n throw new NoSuchElementException();\n }\n Byte e = buffer[next];\n next++;\n return e;\n}\n"
|
"public WordBag seriesToWordBag(String label, double[] ts, Params params) throws SAXException {\n WordBag resultBag = new WordBag(label);\n char[] previousString = null;\n for (int i = 0; i <= ts.length - params.windowSize; i++) {\n double[] subSection = Arrays.copyOfRange(ts, i, i + params.windowSize);... |
"private static void uploadProcess(IProcess2 process, String unzipDir) throws OozieJobDeployException {\n String appPathOnHDFSParent = (String) process.getElementParameter(\"String_Node_Str\").getValue();\n org.apache.hadoop.fs.FileSystem fs = null;\n org.apache.hadoop.conf.Configuration config = new org.apach... |
"private boolean parametersMatch(Method m, Class<?>[] parameterTypes) {\n Class<?>[] methodPTypes = m.getParameterTypes();\n if (methodPTypes.length > parameterTypes.length) {\n return false;\n }\n boolean varargs = false;\n int n = methodPTypes.length;\n if (n <= parameterTypes.length) {\n ... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n ScrollView scrollView = new ScrollView(this);\n GridLayout container = new GridLayout(this);\n scrollView.addView(container);\n container.setColumnCount(3);\n container.setBackgroundColor(0xFF888888);\n La... |
"private void buildFragments(String xpathString) {\n StringTokenizer st = new StringTokenizer(xpathString, \"String_Node_Str\");\n String next;\n int i = 0;\n XPathFragment currentXPathFragment = null;\n XPathFragment nextXPathFragment = null;\n if (xpathString.startsWith(\"String_Node_Str\")) {\n ... |
"public void handle(RoutingContext ctx) {\n if (!AdminManager.isAdmin(ctx)) {\n ctx.response().setStatusCode(400).end();\n ctx.response().close();\n return;\n }\n String number = ctx.request().getParam(\"String_Node_Str\");\n String encryptedNumber = AES256.encrypt(number);\n try {\n... |
"public Enumeration getPrefixes() {\n if (hasPrefixesToNamespaces()) {\n return new IteratorEnumeration(getPrefixesToNamespaces().keySet().iterator());\n } else {\n return new IteratorEnumeration(null);\n }\n}\n"
|
"public void onPlayerInteract(PlayerInteractEvent event) {\n if (event.isCancelled() || !(event.getClickedBlock().getType().equals(Material.SIGN_POST) || event.getClickedBlock().getType().equals(Material.WALL_SIGN))) {\n return;\n }\n Sign clickedSign = (Sign) event.getClickedBlock().getState();\n Se... |
"public void writeFramesSync(CopyOnWriteArrayList<Frame> frames) {\n if (frames == null) {\n if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {\n Tr.debug(tc, \"String_Node_Str\");\n }\n return;\n }\n if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled(... |
"public org.hl7.fhir.dstu2.model.MessageHeader convertMessageHeader(org.hl7.fhir.dstu3.model.MessageHeader src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.MessageHeader tgt = new org.hl7.fhir.dstu2.model.MessageHeader();\n copyDomainResource(src,... |
"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 testInlineLabel() {\n new TestInlineLabel();\n if (!GWT.isScript()) {\n try {\n new BrokenInlineLabel();\n throw new Error(ASSERTION_ERROR);\n } catch (AssertionError e) {\n }\n }\n}\n"
|
"public void injectExtensions() {\n this.setOnSuccess(() -> {\n if (\"String_Node_Str\".equals(docType))\n this.loadJs(\"String_Node_Str\", \"String_Node_Str\");\n if (\"String_Node_Str\".equals(slideType))\n this.loadJs(\"String_Node_Str\");\n });\n}\n"
|
"public CommandResponse execute(RpAuthorizeRptParams params) {\n validate(params);\n final RptAuthorizationRequest authorizationRequest = new RptAuthorizationRequest(params.getRpt(), params.getTicket());\n LOG.debug(\"String_Node_Str\", params.getTicket());\n final RptAuthorizationRequestService rptAuthoriz... |
"public TaskCancelResult cancelTask(ExecutionVertexID id) throws IOException {\n Environment tmpEnvironment;\n synchronized (this.runningTasks) {\n tmpEnvironment = this.runningTasks.get(id);\n if (tmpEnvironment == null) {\n final TaskCancelResult taskCancelResult = new TaskCancelResult(... |
"public void createMesh(Output output) {\n float[] roofColor = BLANK_ROOF;\n if (output.faces == null)\n return;\n double bestRoofArea = 0;\n roofColor = Colourz.toF4(HasApp.get(miniroof).color);\n Set<MiniFacade> allMFs = new HashSet<>();\n for (Face f : output.faces.values()) {\n WallT... |
"public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n if (actionId == EditorInfo.IME_ACTION_DONE || actionId == EditorInfo.IME_NULL) {\n hideSoftInput();\n final CharSequence input = v.getText();\n if (input != null) {\n final int update = Integer.parseInt(input... |
"public Queue2Consumer createConsumer(int groupSize) {\n DequeueStrategy strategy = DequeueStrategy.valueOf(queueInfo.getPartitionerType().name());\n try {\n return queueClientFactory.createConsumer(queueName, new ConsumerConfig(groupId, instanceId, groupSize, strategy, queueInfo.getPartitionKey()));\n ... |
"public static EvalScriptExtensionHolder getInstance(ExecutionPlanContext executionPlanContext) {\n ConcurrentHashMap<Class, AbstractExtensionHolder> extensionHolderMap = executionPlanContext.getSiddhiContext().getExtensionHolderMap();\n AbstractExtensionHolder abstractExtensionHolder = extensionHolderMap.get(cla... |
"private void addTypeAttributes(NodeList elements, XMLField field, Object value, String schemaInstancePrefix) {\n NamespaceResolver namespaceResolver = getNamespaceResolverForField(field);\n if (!field.isTypedTextField()) {\n return;\n }\n List values;\n if (value instanceof List) {\n value... |
"public void start() {\n if (isStarted) {\n return;\n }\n if (parent != null && !parent.isStarted()) {\n parent.start();\n }\n if (isVisible) {\n ContentEmitterUtil.startContent(content, emitter);\n }\n generator.start(content, isFirst);\n isStarted = true;\n}\n"
|
"public String getMappedName(String symbol) throws PtalonRuntimeException {\n String output;\n if (_currentBranch || isForStatement) {\n output = _trueNameMappings.get(symbol);\n } else {\n output = _falseNameMappings.get(symbol);\n }\n if (output == null) {\n throw new PtalonRuntime... |
"public double getDProperty(String key) {\n try {\n NumberFormat format = NumberFormat.getInstance(Locale.getDefault());\n Number number = format.parse(props.getProperty(key));\n return number.doubleValue();\n } catch (NumberFormatException m) {\n Debug.print(\"String_Node_Str\" + key ... |
"public void testRunsLimit() throws Exception {\n ApplicationSpecification spec = Specifications.from(new AllProgramsApp());\n ApplicationId appId = new ApplicationId(\"String_Node_Str\", spec.getName());\n store.addApplication(appId, spec);\n ProgramId flowProgramId = new ProgramId(\"String_Node_Str\", spe... |
"public void run() {\n try {\n topicSubscriber = new TopicSubscriber(Constants.TOPOLOGY_TOPIC);\n topicSubscriber.setMessageListener(new TopologyEventMessageListener());\n Thread subscriberThread = new Thread(topicSubscriber);\n subscriberThread.start();\n if (log.isDebugEnabled())... |
"private static ExecutionContext buildExecutionContext() throws IOException {\n ExternalProcessConfiguration externalProcessConfiguration = new DefaultExternalProcessConfiguration();\n if (ConanProperties.containsKey(\"String_Node_Str\")) {\n externalProcessConfiguration.setProcessConfigFilePath(ConanPrope... |
"public static Connection getConnection(String driverClassName, String connectionString, String userId, String password) throws SQLException {\n try {\n return JDBCDriverManager.getInstance().getConnection(driverClassName, connectionString, userId, password, null);\n } catch (Exception e) {\n Except... |
"private void copyNPC(int UID, String name, Player p) {\n ArrayList<String> texts = PropertyPool.getText(UID);\n String colour = PropertyPool.getColour(UID);\n String owner = PropertyPool.getOwner(UID);\n ArrayList<Integer> items = PropertyPool.getItems(UID);\n boolean lookatplayers = PropertyPool.getLoo... |
"protected boolean onFire() {\n if (!this.worldObj.isRemote) {\n if (this.getPlatform() != null) {\n if (this.target instanceof EntityLiving) {\n this.getPlatform().wattsReceived -= this.getFiringRequest();\n this.target.attackEntityFrom(TileDamageSource.doLaserDamage(... |
"public PoolUpdate updatePoolFromStackedEntitlements(Pool pool, List<Entitlement> stackedEnts, Set<Product> changedProducts) {\n PoolUpdate update = new PoolUpdate(pool);\n if (stackedEnts.isEmpty()) {\n return update;\n }\n pool.setSourceEntitlement(null);\n pool.setSourceSubscription(null);\n ... |
"private void setup() throws OpenRDFException, IOException {\n setupLogging();\n VocabRepository vocabRepo = new VocabRepository(new File(parsedCommand.vocabFilenames.get(0)), null, null);\n qskos = new QSkos(vocabRepo);\n qskos.setAuthResourceIdentifier(parsedCommand.authoritativeResourceIdentifier);\n ... |
"public SurroundTool resolveSscmTool(TaskListener listener) {\n SurroundTool sscm = null;\n if (sscm_tool_name == null || sscm_tool_name.isEmpty()) {\n sscm = SurroundTool.getDefaultInstallation();\n } else {\n Jenkins jenkinsInstance = Jenkins.getInstance();\n if (jenkinsInstance != null)... |
"public void initialize() {\n this.baseWorkTimeInterval = new Interval(BASE_DATE.toDateTime(baseBeginTime), BASE_DATE.toDateTime(baseFinishTime));\n this.baseWorkTimeMinute = (int) toMinute(baseWorkTimeInterval) - calculateContainsBreakTimeMinute(baseWorkTimeInterval);\n}\n"
|
"public void activate() {\n if (tree == null) {\n tree = new JTree(new DefaultTreeModel(new ConfigTreeNode(null, null), true) {\n public void valueForPathChanged(TreePath path, Object newValue) {\n super.valueForPathChanged(path, newValue);\n ConfigTreeNode node = (Con... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.