content stringlengths 40 137k |
|---|
"public Dimension lookupDimension(Id.Segment s) {\n for (Dimension dimension : dimensions) {\n if (Util.equalName(dimension.getName(), nameSegment.name)) {\n return dimension;\n }\n }\n return null;\n}\n"
|
"public static boolean holdsLock(Object obj, Offset lockOffset, RVMThread thread) {\n int tid = thread.getLockingId();\n Word bits = Magic.getWordAtOffset(obj, lockOffset);\n if (bits.and(TL_FAT_LOCK_MASK).isZero()) {\n return (bits.and(ThinLockConstants.TL_THREAD_ID_MASK).toInt() == tid);\n } else {... |
"public org.hl7.fhir.dstu2.model.Medication.MedicationProductBatchComponent convertMedicationProductBatchComponent(org.hl7.fhir.dstu3.model.Medication.MedicationProductBatchComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Medication.Medicat... |
"protected List<String> getTablesToFilter(IMetadataConnection metadataConnection) {\n List<String> tablesToFilter = new ArrayList<String>();\n Statement stmt;\n try {\n stmt = ExtractMetaDataUtils.conn.createStatement();\n ExtractMetaDataUtils.setQueryStatementTimeout(stmt);\n if (EDatabas... |
"public void searchRecords(int congress, String senText, String repText, int progressSize, String politicalAffiliation) throws IOException, NullPointerException {\n if ((null == senText || senText.isEmpty()) && (null == repText || repText.isEmpty()))\n return;\n String memText = (null == senText || senText... |
"public void configureFromXML(Tag tileSetTop) throws ConfigurationException {\n String tileDefFileName = tileSetTop.getAttributeAsString(\"String_Node_Str\");\n if (tileDefFileName == null)\n throw new ConfigurationException(LocalText.getText(\"String_Node_Str\"));\n String directory = \"String_Node_Str... |
"private int getTimestampIndexQuiet(QueryModel model, ExprNode node, RecordMetadata m) throws ParserException {\n int pos = model.getJournalName() != null ? model.getJournalName().position : 0;\n if (node != null) {\n if (node.type != ExprNode.LITERAL) {\n throw QueryError.position(node.position... |
"public void testGrandTotal1() 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 = columnEd... |
"public boolean execute(ICommandSender sender, String[] args) throws Exception {\n IPlayer player = (IPlayer) sender;\n if (player.hasPermission(PermissionNames.USER_HOME)) {\n if (manager.isPlotWorld(player) || plugin.getConfig().getBoolean(\"String_Node_Str\")) {\n UUID uuid = player.getUnique... |
"public void toInstance(final T instance) {\n checkNotTargetted();\n if (instance == null) {\n binder.addError(BINDING_TO_NULL);\n toProvider(Providers.<T>of(null));\n return;\n }\n List<InjectionPoint> injectionPointsList = Lists.newArrayList();\n try {\n InjectionPoint.addFo... |
"private void processDef(JstType jstType, ObjLiteral literal, NV field) {\n IExpr value = field.getValue();\n if (value != null) {\n if (value instanceof ObjLiteral) {\n processObjLiteralDef(jstType, field.getName(), (ObjLiteral) value);\n } else if (value instanceof FuncExpr) {\n ... |
"public void processAction(ActionRequest req, ActionResponse resp) throws PortletException, IOException {\n String actionName = req.getActionParameters().getValue(ActionRequest.ACTION_NAME);\n logger.fine(\"String_Node_Str\" + actionName);\n ArrayList<String> msgs = new ArrayList<String>();\n StringBuffer s... |
"private void dispatch(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n if (LOG.isDebugEnabled()) {\n StringBuilder txt = new StringBuilder();\n txt.append(\"String_Node_Str\");\n txt.append(\"String_Node_Str\").append(request.getDispatcherType()... |
"public PermissionGroup[] getParentGroups() {\n Set<PermissionGroup> parentGroups = new HashSet<PermissionGroup>();\n for (String parentGroup : this.getParentGroupsNamesImpl()) {\n parentGroup = parentGroup.trim();\n if (parentGroup.isEmpty()) {\n continue;\n }\n PermissionG... |
"private static void addDriversFromFiles() {\n List jdbcDriverFiles = JdbcDriverConfigUtil.getDriverFiles();\n if (jdbcDriverFiles == null || jdbcDriverFiles.size() == 0)\n return;\n List driverList = getJDBCDriverInfoList(jdbcDriverFiles);\n jdbcDriverInfos.addAll(driverList);\n for (int i = 0; i... |
"public void testBasicCache() 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 = columnEdg... |
"RelationshipType getRelationshipType(int id) {\n String name = relTranslation.get(id);\n if (name != null) {\n return new RelationshipTypeImpl(name);\n }\n return null;\n}\n"
|
"public static Object convertToJavascriptValue(Object value) {\n return convertToJavascriptValue(value, null);\n}\n"
|
"protected TUExecutionResult execution(File transformedAppFolder, TransformationContext transformationContext) {\n Collection<File> files;\n Set<File> allFiles = new HashSet<>();\n for (String attribute : filesAttributes) {\n files = (Collection<File>) transformationContext.get(attribute);\n if (... |
"private void showSelectedDetails() {\n ArrayList<SearchResultFieldDesc> descs = new ArrayList<SearchResultFieldDesc>();\n descs.addAll(cache.getDescs());\n descs.addAll(currentSelected.getExtraFieldDescs());\n this.clientFactory.getShellView().getDetailView().showData(descs, currentSelected.getRow());\n}\n... |
"protected void okPressed() {\n try {\n if (bindingColumn != null) {\n if (dialogHelper.differs(bindingColumn)) {\n if (isNeedPrompt() && isBindingMultipleReferenced()) {\n MessageDialog dialog = new MessageDialog(UIUtil.getDefaultShell(), Messages.getString(\"Stri... |
"public void testSendRequest_POST() {\n delayTestFinish(TEST_FINISH_DELAY);\n try {\n RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, getTestBaseURL() + \"String_Node_Str\");\n builder.sendRequest(\"String_Node_Str\", new RequestCallback() {\n public void onError(Request ... |
"private int[][] _byteArrayToIntArray(byte[] byteArray, int bytesPerSample, int channels) {\n int lengthInSamples = byteArray.length / (bytesPerSample * channels);\n if ((channels != _doubleArray.length) || (lengthInSamples != _doubleArray[0].length)) {\n _intArray = new int[channels][lengthInSamples];\n ... |
"public String getCountry() {\n return country;\n}\n"
|
"public static void addDataItem(CrosstabReportItemHandle crosstab, MeasureViewHandle measureView, String function, String rowDimension, String rowLevel, String colDimension, String colLevel) throws SemanticException {\n if (crosstab == null || measureView == null)\n return;\n AggregationCellHandle cell = m... |
"private ArrayList<Object> readElements(final Type constraint) throws IOException {\n final int nElements = readSize();\n final ArrayList<Object> out = new ArrayList<Object>(nElements);\n if (nElements > 0) {\n final byte readElemTag = readTypeTag();\n if (constraint != null && constraint.typeTag... |
"public void shouldDeleteMany2ManyDeep() {\n deleteAndPopulateTables(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n Registry.cacheManager().flush(CacheEvent.ALL);\n a(Prescription.count()).shouldBeEqual(5);\n Doctor.findById(3).deleteCascade();\n a(Doctor.count()).... |
"private ArrayList<AnnotationElem> handleAnnotationElement(AnnotationElement ae, List<? extends EncodedValue> evList) {\n ArrayList<AnnotationElem> aelemList = new ArrayList<AnnotationElem>();\n for (EncodedValue ev : evList) {\n int type = ev.getValueType();\n AnnotationElem elem = null;\n D... |
"protected TextFragment addStyle(Text text, int firstCharIndex, int lastCharIndex) {\n if (matchesStyle(text)) {\n return new TextFragment(text, firstCharIndex, lastCharIndex);\n }\n text.crop(firstCharIndex, lastCharIndex);\n Element element = (Element) text.getParentElement();\n if (SPAN.equalsI... |
"public void setTimeIntervalMin(String timeIntervalMin) {\n if (timeFormat.equals(TimeFormat.DATE) || timeFormat.equals(TimeFormat.DATETIME)) {\n try {\n this.timeIntervalMin = DynamicUtilities.getDoubleFromXMLDateString(timeIntervalMin);\n } catch (Exception ex) {\n report.logIss... |
"private void marshal(Object object, MarshalRecord marshalRecord, XMLDescriptor descriptor, boolean isXMLRoot) {\n addDescriptorNamespacesToXMLRecord(descriptor, marshalRecord);\n NamespaceResolver nr = marshalRecord.getNamespaceResolver();\n if (getMarshalListener() != null) {\n getMarshalListener().be... |
"ContactIcqImpl createVolatileContact(Screenname screenname) {\n if (logger.isTraceEnabled())\n logger.trace(\"String_Node_Str\" + screenname);\n Buddy volatileBuddy = new VolatileBuddy(screenname);\n ContactIcqImpl newVolatileContact = new ContactIcqImpl(volatileBuddy, this, false, false);\n Contact... |
"public synchronized void beginEvent(boolean allowNestedEvents) {\n if (!this.allowNestedEvents) {\n throw new ConcurrentModificationException(\"String_Node_Str\" + eventThread.getName());\n }\n this.allowNestedEvents = allowNestedEvents;\n if (allowNestedEvents)\n allowContradictingEvents = t... |
"public static Object getInstacne(String daoName) {\n Object obj = cach.get(daoName);\n if (obj == null) {\n String clazz = p.getProperty(daoName);\n if (clazz != null && !clazz.equals(\"String_Node_Str\")) {\n try {\n obj = Class.forName(clazz).newInstance();\n ... |
"public void correctPrincipal() throws Exception {\n Owner owner = new Owner(\"String_Node_Str\", \"String_Node_Str\");\n List<Owner> owners = Arrays.asList(new Owner[] { owner });\n setUserAndPassword(\"String_Node_Str\", \"String_Node_Str\");\n when(userService.validateUser(\"String_Node_Str\", \"String_N... |
"public DequeueResult<byte[]> dequeue(int maxBatchSize) throws IOException {\n DequeueResult<byte[]> result = performDequeue(maxBatchSize);\n byte[] floorKey = consumingEntries.floorKey(scanStartRow);\n updateStartRow(floorKey == null ? scanStartRow : floorKey);\n return result;\n}\n"
|
"public List<User> getUsersThatDonated(JDA jda) {\n try {\n Statement statement = connection.createStatement();\n statement.closeOnCompletion();\n List<User> users;\n try (ResultSet results = statement.executeQuery(\"String_Node_Str\")) {\n users = new LinkedList<>();\n ... |
"static public Register fromInt(int i) {\n for (Register r : Register.values()) {\n if (r.val == i) {\n return r;\n }\n return null;\n}\n"
|
"protected void writeFields(DataOutputStream out) throws IOException {\n if (type != -1) {\n IOUtil.writeInt(out, FIELD_TYPE);\n IOUtil.writeInt(out, type);\n }\n if (isDrillThrough()) {\n if (drillThrough.getBookmark() != null) {\n IOUtil.writeInt(out, FIELD_BOOKMARK);\n ... |
"private void filterUnsupportedOptions(PreferenceScreen screen, ListPreference pref, List<String> supported) {\n CharSequence[] allEntries = pref.getEntries();\n if (supported == null || allEntries.length <= 1) {\n removePreference(screen, pref);\n return;\n }\n CharSequence[] allEntries = pre... |
"private void _importByReference() {\n ArrayList<String> modelNames = new ArrayList();\n for (SearchResultPanel panel : _resultPanelList) {\n modelNames.addAll(panel.getSelections());\n }\n if (modelNames.size() > 0) {\n for (String modelName : modelNames) {\n try {\n ... |
"public void onSuccess() {\n new android.os.Handler().postDelayed(new Runnable() {\n public void run() {\n Toast.makeText(mContext, \"String_Node_Str\", Toast.LENGTH_LONG).show();\n mMakerItemProgressBar.setVisibility(View.INVISIBLE);\n Intent intent = new Intent(AddItemActivi... |
"public ClassDefinitionBuilder addLongArrayField(String fieldName) {\n check();\n fieldDefinitions.add(new FieldDefinitionImpl(index++, fieldName, FieldType.LONG_ARRAY));\n return this;\n}\n"
|
"public void saveConfiguration(IProgressMonitor monitor) throws CoreException {\n String serverId = getServerId();\n if (secureStoreDirty || (serverId != null && !serverId.equals(initialServerId))) {\n if (getData() != null) {\n getData().updateServerId(initialServerId, serverId);\n g... |
"public void hasSeen(AutoRefPlayer apl) {\n long ctime = location.getWorld().getFullTime();\n if (lastSeen > 0 && ctime - lastSeen < SEEN_COOLDOWN)\n return;\n if (apl != null) {\n String message = String.format(\"String_Node_Str\", apl.getPlayerName(), blockdata.getRawName());\n getMatch(... |
"protected int beforeHandle(Request request, Response response) {\n return 0;\n}\n"
|
"public static boolean canHarvestBlock(Block block, EntityPlayer player, IBlockAccess world, BlockPos pos) {\n final IBlockState state;\n final IBlockState staticState = StaticMixinForgeHelper.breakEventExtendedState;\n if (staticState != null) {\n state = staticState;\n } else {\n state = wor... |
"private void setValueThreadSafe(final Object value) {\n try {\n Runnable runnable = new Runnable() {\n\n public void run() {\n try {\n setValueEx(value);\n } catch (Exception e) {\n Debug.error(\"String_Node_Str\" + value, e);\n ... |
"public void run() {\n try {\n PreparedStatement st = getDatabase().prepareStatement(\"String_Node_Str\" + getConfig().getString(\"String_Node_Str\") + \"String_Node_Str\");\n st.setLong(1, System.currentTimeMillis() / 1000);\n st.setInt(2, type);\n st.setString(3, getUUID(player));\n ... |
"public DecoratorAttributes createDecoratorAttributes(NamedObj target) {\n if (!_isPartOfExecutionAspect(target)) {\n try {\n return new CompositeExecutionAspectAttributes(target, this);\n } catch (KernelException ex) {\n throw new InternalErrorException(ex);\n }\n } els... |
"public static int px2dip(Context context, float pxValue) {\n if (NONE_FLOAT == scale) {\n scale = context.getResources().getDisplayMetrics().density;\n }\n return (int) (pxValue / scale + 0.5f);\n}\n"
|
"private static void resetDensity(Context context, float designWidth) {\n if (context == null)\n return;\n Point size = new Point();\n ((WindowManager) context.getSystemService(WINDOW_SERVICE)).getDefaultDisplay().getSize(size);\n Resources resources = context.getResources();\n resources.getDispla... |
"public void setRefreshing(boolean isRefreshing) {\n if (isRefreshing) {\n headerLogo.setImageResource(R.drawable.ic_launcher_background);\n headerLogoProgress.setVisibility(View.VISIBLE);\n } else {\n headerLogo.setImageDrawable(getResources().getDrawable(R.drawable.ic_launcher));\n h... |
"public boolean performFinish() {\n boolean formIsPerformed;\n if (regexpFileWizardPage3 == null) {\n formIsPerformed = regexpFileWizardPage2.isPageComplete();\n } else {\n formIsPerformed = regexpFileWizardPage3.isPageComplete();\n }\n if (formIsPerformed) {\n IProxyRepositoryFactor... |
"public void createIdenticalUsers() {\n new User(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\").insert();\n User user = new User(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n user.validate();\n if (!Validation.hasErrors()) {\n ... |
"public Object[] call() {\n Cache c = CacheManager.getCacheInstance(activeGir.getDisplayName(activeBand));\n StringBuilder ff = new StringBuilder(initfile).append(getBandFolder(activeBand)).append(\"String_Node_Str\").append(i).append(\"String_Node_Str\").append(j).append(\"String_Node_Str\");\n final File f =... |
"public boolean isInactive(Ability source, Game game) {\n if (game.getPhase().getStep().getType() == PhaseStep.UPKEEP) {\n if (game.getActivePlayerId().equals(source.getControllerId())) {\n return true;\n }\n } else {\n sameStep = false;\n }\n return false;\n}\n"
|
"private View makeAndAddView(int position, int y, boolean flow, int childrenLeft, boolean selected, int where) {\n View child;\n if (!mDataChanged) {\n child = mRecycler.getActiveView(position);\n if (child != null) {\n setupChild(child, position, y, flow, childrenLeft, selected, true, wh... |
"public List<String> getWailaBody(ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config) {\n String upgrades = \"String_Node_Str\";\n IUpgradableMachine machine = (IUpgradableMachine) accessor.getTileEntity();\n if (!machine.getInstalledUpgrades().isEmpty()) {\n ... |
"public static boolean updateVersionInDB(String url, String driver, Properties props) {\n Connection connection = null;\n try {\n connection = ConnectionUtils.createConnection(url, driver, props);\n if (connection != null) {\n Statement stat = connection.createStatement();\n re... |
"protected void render() {\n PlaceViewModel place = getContent();\n nameTextView.setText(place.getName());\n Picasso.with(context).load(place.getPhoto()).placeholder(R.drawable.maps_placeholder).into(photoImageView);\n}\n"
|
"public static void compileLoopStart(ArrayList<Command> ROM) {\n String type = tokens.remove(0);\n OpenLoop loop = new OpenLoop(type);\n loops.add(0, loop);\n tokens.remove(0);\n ArrayList<Command> cond = new ArrayList<Command>();\n Arg arg1 = compileRef(cond, false);\n String op = tokens.remove(0)... |
"public static byte[] encodeHeader(H2HeaderTable table, String name, String value, LiteralIndexType type, boolean huffman) throws CompressionException, IOException {\n if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {\n Tr.entry(tc, \"String_Node_Str\", \"String_Node_Str\" + name + \"String_N... |
"public String getGWDeviceId() {\n String id;\n id = options.getProperty(\"String_Node_Str\");\n if (id == null) {\n return super.getDeviceId();\n }\n return trimedValue(id);\n}\n"
|
"public static TransferredResource createTransferredResource(Path resourcePath, Path basePath) {\n Path relativeToBase = basePath.relativize(resourcePath);\n TransferredResource tr = new TransferredResource();\n try {\n BasicFileAttributes attr = Files.readAttributes(resourcePath, BasicFileAttributes.cl... |
"public boolean valid(Item item, ERepositoryObjectType type, RepositoryNode seletetedNode, IComponent component, String repositoryType) {\n String productNameWanted = repositoryType;\n String componentProductname = null;\n if (item instanceof XmlFileConnectionItem) {\n XmlFileConnection connection = (Xm... |
"private Node tryMinimizeIf(Node n) {\n Node parent = n.getParent();\n Node cond = n.getFirstChild();\n if (NodeUtil.isLiteralValue(cond, true)) {\n return n;\n }\n Node thenBranch = cond.getNext();\n Node elseBranch = thenBranch.getNext();\n if (elseBranch == null) {\n if (isFoldable... |
"private boolean saveOrCancelTest() {\n if (core != null && core.getWordCollection().getNodeIterator().hasNext()) {\n Integer saveFirst = localYesNoCancel(\"String_Node_Str\", \"String_Node_Str\");\n if (saveFirst == JOptionPane.YES_OPTION) {\n boolean saved = saveFile();\n if (!s... |
"public void diff(TextNodeComparator leftComparator, TextNodeComparator rightComparator) throws SAXException {\n LCSSettings settings = new LCSSettings();\n settings.setUseGreedyMethod(false);\n RangeDifference[] differences = RangeDifferencer.findDifferences(settings, leftComparator, rightComparator);\n Li... |
"private void updateButtons() {\n boolean okEnable = true;\n if (dataSet == null) {\n okEnable = false;\n } else {\n Iterator iter = inputParameterGroup.getParameters().iterator();\n if (!iter.hasNext()) {\n okEnable = false;\n } else {\n int count = 0;\n ... |
"public static List<VCFContigHeaderLine> makeContigHeaderLines(final SAMSequenceDictionary refDict, final File referenceFile) {\n final List<VCFContigHeaderLine> lines = new ArrayList<VCFContigHeaderLine>();\n final String assembly = referenceFile != null ? getReferenceAssembly(referenceFile.getName()) : null;\n ... |
"public static Object getValueFromProperty(final Edm metadata, final CommonODataProperty property, final Type type) throws InstantiationException, IllegalAccessException {\n final Object value;\n if (property == null || property.hasNullValue()) {\n value = null;\n } else if (property.hasCollectionValue(... |
"public boolean postfire() throws IllegalActionException {\n if (_firingCountLimit != 0) {\n _iterationCount++;\n if (_iterationCount == _firingCountLimit) {\n return false;\n }\n }\n return true;\n}\n"
|
"public boolean prepare(Network network, NicProfile nic, VirtualMachineProfile<? extends VirtualMachine> vm, DeployDestination dest, ReservationContext context) throws ConcurrentOperationException, InsufficientCapacityException, ResourceUnavailableException {\n if (canHandle(network.getGuestType(), dest, network.get... |
"public boolean onMenuItemClick(MenuItem item) {\n toggleDebug(!isDebug());\n return true;\n}\n"
|
"public void onBindViewHolder(RecyclerView.ViewHolder vholder, int position1) {\n final RarAdapter.ViewHolder holder = (RarAdapter.ViewHolder) vholder;\n if (position1 == 0) {\n holder.rl.setMinimumHeight(zipViewer.paddingTop);\n return;\n }\n final FileHeader rowItem = enter.get(position1 - 1... |
"public static void _saveLocations() {\n List<String> loclist = new ArrayList<String>();\n for (Map.Entry<String, dLocation> entry : uniqueObjects.entrySet()) {\n if (entry == null || entry.getValue() == null || entry.getValue().getWorld() == null)\n continue;\n loclist.add(entry.getKey()... |
"public void testTestPositive() {\n for (int j = 0; j < 6; j++) {\n for (int i = 1; i < (7 - j); i++) {\n assertTrue(testStatistic.test(testArray, 0, i));\n }\n }\n assertTrue(testStatistic.test(singletonArray, 0, 1));\n}\n"
|
"public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {\n try {\n Object receive = e.getMessage();\n if (LOG.isDebugEnabled()) {\n LOG.debug(Markers.DETAIL, Messages.Receive, this.name, receive);\n }\n if (this.handler.handle(receive, this.fut... |
"public static CallGraph buildCallGraph(AppInfo appInfo, CallgraphConfig config) {\n Collection<MethodInfo> rootMethods = appInfo.getRootMethods();\n Set<ExecutionContext> roots = new HashSet<ExecutionContext>(rootMethods.size());\n for (MethodInfo m : rootMethods) {\n roots.add(new ExecutionContext(m))... |
"public T call() throws Exception {\n return impersonator.doAs(namespaceMeta.getNamespaceId(), callable);\n}\n"
|
"String readHeader(BufferedReader reader, boolean stopOnFirstUnknownLine) throws IOException {\n cols = rows = 0;\n west = south = cellSize = Double.NaN;\n noDataValue = Float.NaN;\n String line;\n while ((line = reader.readLine()) != null) {\n StringTokenizer tokenizer = new StringTokenizer(line,... |
"public UUID getControllerOfSourceId(UUID sourceId) {\n UUID controllerFound = null;\n for (PreventionEffect effect : preventionEffects) {\n HashSet<Ability> abilities = preventionEffects.getAbility(effect.getId());\n for (Ability ability : abilities) {\n if (ability.getSourceId().equals(... |
"private static String getUrl(IProcess process) {\n String processDBType = (String) process.getElementParameter(EParameterName.DB_TYPE.getName()).getValue();\n if (StatsAndLogsConstants.JDBC_OUTPUT.equals(processDBType)) {\n IElementParameter urlParam = process.getElementParameter(EParameterName.URL.getNam... |
"private void closeZookeeper() {\n try {\n this.zookeeper.close();\n log.warn(\"String_Node_Str\" + this.name + \"String_Node_Str\");\n } catch (InterruptedException e) {\n log.error(\"String_Node_Str\" + this.name + \"String_Node_Str\");\n } finally {\n this.zookeeper = null;\n ... |
"public static long oswrite(final KeyValue kv, final OutputStream out, final boolean withTags) throws IOException {\n ByteBufferUtils.putInt(out, kv.getSerializedSize(withTags));\n return (long) kv.write(out, withTags) + Bytes.SIZEOF_INT;\n}\n"
|
"private static File toArcFile(String filename) {\n File f;\n try {\n f = FileUtils.makeValidFileFromExisting(filename).getAbsoluteFile();\n if (!FileUtils.ARCS_FILTER.accept(f.getParentFile(), f.getName())) {\n dieWithError(\"String_Node_Str\" + filename + \"String_Node_Str\");\n ... |
"private void initializeControl() {\n isPageInitialization = true;\n initializeSchemaPrefetchConfig();\n DEFAULT_MESSAGE = JdbcPlugin.getResourceString(\"String_Node_Str\");\n setMessage(DEFAULT_MESSAGE, IMessageProvider.NONE);\n setPageLayout();\n prevDataSourceDesign = this.getDataSetDesign().getDat... |
"public static void init() {\n GameRegistry.registerTileEntity(TileEntityAgricraft.class, Reference.MOD_ID + ':' + Names.TileEntity.tileEntity + '_' + Reference.MOD_ID);\n GameRegistry.registerTileEntity(TileEntityCrop.class, Reference.MOD_ID + ':' + Names.TileEntity.tileEntity + '_' + Names.Objects.crop);\n G... |
"protected void onCreate(Bundle savedInstanceState) {\n PrefsUtility.applyTheme(this);\n super.onCreate(savedInstanceState);\n final LinearLayout layout = (LinearLayout) getLayoutInflater().inflate(R.layout.post_submit);\n typeSpinner = (Spinner) layout.findViewById(R.id.post_submit_type);\n usernameSpin... |
"public void disableAllPlugins() {\n for (Plugin plugin : plugins.keySet()) {\n disablePlugin(plugin, true);\n }\n}\n"
|
"public boolean isBuildingPlaceable(ISPosition2D position, byte player) {\n short x = position.getX(), y = position.getY();\n return MainGrid.this.isInBounds(x, y) && !blockedGrid.isBlocked(x, y) && partitionsGrid.getPlayerAt(x, y) == player;\n}\n"
|
"public List<IContextParameter> createContextParameters(String prefixName, Connection connection, Set<IConnParamName> paramSet) {\n List<IContextParameter> varList = new ArrayList<IContextParameter>();\n if (connection instanceof NoSQLConnection) {\n NoSQLConnection conn = (NoSQLConnection) connection;\n ... |
"static void checkSequenceConstraint(ComponentDefinition componentDefinition, SequenceConstraint sequenceConstraint) throws SBOLValidationException {\n SequenceAnnotation saSubject = componentDefinition.getSequenceAnnotation(sequenceConstraint.getSubject());\n SequenceAnnotation saObject = componentDefinition.get... |
"public boolean includeAuthority(String authority) {\n if (siteNames.size() < maxResults) {\n String siteName = resolveSite(authority);\n if (siteName == null) {\n return false;\n }\n return siteNames.add(siteName);\n }\n return siteNames.add(siteName);\n}\n"
|
"public void startShuffle(Long... cards) {\n if (cards == null)\n cards = new Long[0];\n cancelShuffle();\n shuffler = new SupplyShuffler();\n shuffler.execute();\n}\n"
|
"public void rejectShapes_triangle() {\n BufferedImage work = new BufferedImage(200, 220, BufferedImage.TYPE_INT_RGB);\n Graphics2D g2 = work.createGraphics();\n g2.setColor(Color.WHITE);\n g2.fillRect(0, 0, 200, 220);\n g2.setColor(Color.BLACK);\n g2.fillPolygon(new int[] { 10, 50, 30 }, new int[] { ... |
"public final boolean isUnderLock() {\n return container.lockedUnder.get();\n}\n"
|
"public void unregister() {\n textChatConnection.removeTextChatListener(this);\n JmeClientMain.getFrame().removeFromWindowMenu(textChatMenuItem);\n}\n"
|
"String getReadableDeclaration(int modifierBits) {\n String[] names = TypeOracle.modifierBitsToNamesForMethod(modifierBits);\n StringBuilder sb = new StringBuilder();\n for (String name : names) {\n sb.append(name);\n sb.append(\"String_Node_Str\");\n }\n if (getTypeParameters().length > 0)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.