content stringlengths 40 137k |
|---|
"public Expression createJoinPathExpression(final String expression, final MacroConfiguration macroConfiguration, Set<String> usedMacros) {\n return getOrDefault(\"String_Node_Str\", delegate, expression, false, macroConfiguration, JOIN_PATH_EXPRESSION_SUPPLIER);\n}\n"
|
"protected void configure() {\n bind(MinStockRulesService.class).to(MinStockRulesServiceImpl.class);\n bind(MinStockRulesServiceImpl.class).to(MinStockRulesServiceSupplychainImpl.class);\n bind(StockMoveService.class).to(StockMoveServiceImpl.class);\n bind(PurchaseOrderServiceImpl.class).to(PurchaseOrderSer... |
"public Network doInTransaction(TransactionStatus status) throws ResourceAllocationException, InsufficientCapacityException {\n DataCenterVO dc = _dcDao.lockRow(pNtwk.getDataCenterId(), true);\n Network privateNetwork = _networksDao.getPrivateNetwork(uriString, cidr, networkOwnerId, pNtwk.getDataCenterId(), netwo... |
"public void testPathIsNotFile() throws ReportingException {\n final Properties destinationProperties = new Properties();\n destinationProperties.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n try {\n final CsvDestination destination = (CsvDestination) ObjectFactory.summonInstance(CsvDestinati... |
"protected List retrieveClassesForIngredients() {\n if (getFixSpace().strategy().equals(IngredientSpaceStrategy.LOCAL))\n return originalVariant.getAffectedClasses();\n if (getFixSpace().strategy().equals(IngredientSpaceStrategy.GLOBAL) || getFixSpace().strategy().equals(IngredientSpaceStrategy.PACKAGE))\n... |
"private void create() throws IOException {\n if (isCreate) {\n return;\n }\n ICompressor compressor = FindCompressor.get(columnBinary.compressorClassName);\n byte[] binary = compressor.decompress(columnBinary.binary, binaryStart, binaryLength);\n column = new PrimitiveColumn(columnBinary.columnTy... |
"private void strobe(int data) {\n if (DEBUG) {\n System.out.println(\"String_Node_Str\" + Utils.hex8(data));\n switch(data) {\n case REG_SRXON:\n if (DEBUG)\n System.out.println(\"String_Node_Str\");\n setMode(MODE_RX_ON);\n break;\n case REG_S... |
"public int hashCode() {\n if (hashCode != 0) {\n return hashCode;\n }\n if (bitLength < SMALL_VALUE_BITS) {\n long longValue = (long) smallValue;\n hashCode = (int) (longValue & 0xffffffff);\n hashCode = 33 * hashCode + (int) ((longValue >> 32) & 0xffffffff);\n hashCode = 17... |
"protected int advanceUntil(short x, int pos) {\n int lower = pos + 1;\n if (lower >= size || Util.toIntUnsigned(array[lower].key) >= x) {\n return lower;\n }\n int spansize = 1;\n while (lower + spansize < size && Util.toIntUnsigned(array[lower + spansize].key) < Util.toIntUnsigned(x)) spansize *... |
"private boolean checkRange(String inString) {\n String[] definedRange = getDefinedRange(inString);\n if (definedRange != null && definedRange.length >= 2) {\n range = \"String_Node_Str\" + definedRange[0] + \"String_Node_Str\" + definedRange[1] + \"String_Node_Str\";\n int sqltype = ((TdColumn) ind... |
"public static void displayParticleVector(Location loc, ParticleEffect type, float xTrans, float yTrans, float zTrans) {\n if (type == ParticleEffect.FIREWORKS_SPARK)\n ParticleEffect.FIREWORKS_SPARK.display(xTrans, yTrans, zTrans, 0.09F, 0, loc, 257D);\n else if (type == ParticleEffect.SMOKE || type == Pa... |
"protected IngestionResult addNewFileEntity(EntityType entityInfo, Connection connection) throws IngestException, SQLException {\n FileType file = entityInfo.getFile();\n IngestionResult ownerResult = null;\n if (file.getOwnerDN() != null) {\n AgentType ownerAgent = AgentType.Factory.newInstance();\n ... |
"protected void removeMappingValueFromObject(Object object, Object attributeValue, DatabaseMapping mapping, DatabaseMapping partner) {\n if (mapping.isObjectReferenceMapping()) {\n Object currentValue = mapping.getRealAttributeValueFromObject(object, (AbstractSession) getJpaSession());\n if (currentVal... |
"public void init() throws ComponentInitException {\n if (endpointURL == null) {\n throw new ComponentInitException(\"String_Node_Str\");\n }\n if (instances == null) {\n throw new ComponentInitException(\"String_Node_Str\");\n }\n if (recursionDepth == 0) {\n throw new ComponentInit... |
"protected void doMatchAction() {\n try {\n String param = txt_match.getText();\n Search search = new Search(param, true);\n if (chk_mrestrict.isSelected()) {\n Passage restrict = PassageFactory.createPassage(txt_mrestrict.getText());\n search.setRestriction(restrict);\n ... |
"public void onClick(View v) {\n Intent intent = new Intent(getActivity(), HelpActivity.class);\n intent.putExtra(ENTERED_URL_KEY, EditTextUtils.getText(mUrlEditText));\n intent.putExtra(ENTERED_USERNAME_KEY, EditTextUtils.getText(mUsernameEditText));\n intent.putExtra(HelpshiftHelper.ORIGIN_KEY, Tag.ORIGIN... |
"public void rcDropRowByValue(String col, String colOperator, String value, String regexOp, String searchType, int delayBeforeDrop) {\n try {\n TableAdapter adapter = (TableAdapter) getComponent();\n int implCol = adapter.getColumnFromString(col, colOperator);\n int implRow = super.findRow(value... |
"public boolean apply(Game game, Ability source, Ability abilityToModify) {\n Player controller = game.getPlayer(abilityToModify.getControllerId());\n if (controller != null) {\n Mana mana = abilityToModify.getManaCostsToPay().getMana();\n int reduceMax = mana.getGeneric();\n if (reduceMax > ... |
"private static List<Interval> generateIntervals(RegTreeConfig regTreeConfig, Vector featureValues, double[] probs, double[] labels) {\n int numDataPoints = featureValues.size();\n int numIntervals = regTreeConfig.getNumSplitIntervals();\n double maxFeature = Double.NEGATIVE_INFINITY;\n double minFeature = ... |
"protected void setup() {\n random = Config.getInstance().get(RANDOM_SEQUENCE);\n populationSize = Config.getInstance().get(SIZE);\n syntax = Config.getInstance().get(SYNTAX);\n returnType = Config.getInstance().get(RETURN_TYPE);\n allowDuplicates = Config.getInstance().get(ALLOW_DUPLICATES, true);\n ... |
"private void markForPropagation(ChunkImpl toChunk, int[] depth, int[] startingRegen, int[] adjDepths, int[] adjStartingRegen) {\n Vector3i pos = new Vector3i();\n for (int z = 0; z < ChunkConstants.SIZE_Z; ++z) {\n for (int x = 0; x < ChunkConstants.SIZE_X; ++x) {\n int depthIndex = x + ChunkCo... |
"public SerializerResult complexCollection(final ServiceMetadata metadata, final EdmComplexType type, final Property property, final ComplexSerializerOptions options) throws SerializerException {\n OutputStream outputStream = null;\n SerializerException cachedException = null;\n try {\n final ContextURL... |
"String getCode(String file) throws JavaParserException {\n\tJavaParser parser = new JavaParser();\n\tNode node = new Node();\n\ttry{\n\t\tnode = parser.parse(file);\n\t} catch (JavaParserException e) {}\n\tString code = node.toString();\n\tcode = code.replaceAll(\"\\\\s+\", \"\");\n\treturn code;\n}\n"
|
"public int compare(String encoding0, String encoding1) {\n return encodingConfiguration.getPriority(encoding1) - encodingConfiguration.getPriority(encoding0);\n}\n"
|
"public boolean isNeedCreateStructure() {\n if (isSecludedVersion()) {\n return !ResourceService.checkSecludedResource();\n }\n return !ResourceManager.checkResource();\n}\n"
|
"private void pause() {\n if (resumed) {\n resumed = false;\n onPause();\n }\n}\n"
|
"public TmfTimestampLocation clone() {\n TmfTimestampLocation clone = null;\n clone = (TmfTimestampLocation) super.clone();\n return clone;\n}\n"
|
"public void handleDrop(GL2 gl, java.util.Set<IDraggable> draggables, float mouseCoordinateX, float mouseCoordinateY, DragAndDropController dragAndDropController) {\n glVisBricks.clearDimensionGroupSpacerHighlight();\n for (IDraggable draggable : draggables) {\n if (draggable == this)\n break;\n... |
"private void checkAugmentedReturn(MethodNode mn) {\n if (isUnannotated(mn))\n return;\n Type retType = Type.getReturnType(mn.desc);\n if (retType.getSort() != Type.VOID) {\n if (getReturnMethodParameter(mn) == Integer.MIN_VALUE) {\n String oldDesc = mn.desc;\n Type[] args =... |
"private Verse readPassageOsis(Key key, RawTextToXmlProcessor processor, final List<Content> content, T openFileState) throws BookException {\n Verse currentVerse = null;\n try {\n final Passage ref = KeyUtil.getPassage(key);\n final Iterator<Key> rit = ref.rangeIterator(RestrictionType.CHAPTER);\n ... |
"public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException {\n name = ExtUtil.readString(in);\n reference = (IDataReference) ExtUtil.read(in, new ExtWrapTagged(), pf);\n Vector attStrings = ExtUtil.nullIfEmpty((Vector) ExtUtil.read(in, new ExtWrapList(String... |
"private void init() {\n this.getContentPane().setLayout(new BorderLayout());\n contentPane = new TransparentPanel(new BorderLayout(5, 5));\n TransparentPanel northPanel = new TransparentPanel(new BorderLayout(5, 5));\n northPanel.setBorder(BorderFactory.createEmptyBorder(10, 5, 5, 5));\n JLabel imgLabel... |
"protected void display() {\n try {\n Log.i(\"String_Node_Str\", getItem().toString());\n } catch (Exception e) {\n ACRA.getErrorReporter().handleException(e);\n }\n if (getItem().getCoverBitmap() != null) {\n ivCover.setVisibility(View.VISIBLE);\n ivCover.setImageBitmap(getItem(... |
"public static Object convert(Object source, Class toTypeClass) throws BirtException {\n if (source != null && source.getClass() == toTypeClass) {\n return source;\n }\n if (toTypeClass == DataType.getClass(DataType.ANY_TYPE))\n return source;\n if (toTypeClass == Integer.class)\n retur... |
"public void details() {\n if (input.parameterNumber() == 0) {\n try {\n final Map<String, String> details = new LinkedMap<>();\n final int accountPolicySize = policySyncopeOperations.list(PolicyType.ACCOUNT.name()).size();\n final int passwordPolicySize = policySyncopeOperati... |
"public FootPrint getLastCameraFootPrint() throws RemoteException {\n Footprint lastFootprint = getDroneMgr().getDrone().getCamera().getLastFootprint();\n return getProxyCameraFootPrint(lastFootprint);\n}\n"
|
"private void handleForeignKey(MetadataRepository repository, ComplexTypeMetadata type, XmlSchemaAnnotationProcessorState state, Element appInfo) {\n state.markAsReference();\n String path = appInfo.getTextContent();\n FieldMetadata fieldMetadata = getFieldMetadata(repository, type, appInfo, path, false);\n ... |
"protected void registerForSync(Context context, final String action, final ArrayAdapter adapter) {\n BroadcastReceiver receiver = new BroadcastReceiver() {\n public void onReceive(Context context, Intent intent) {\n if (action != null && action.equals(intent.getAction())) {\n String... |
"public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n if (request.getHeader(\"String_Node_Str\") != null && (getBimServer().getServerInfo().getServerState() != ServerState.MIGRATION_REQUIRED && !getBimServer().getServerSettingsCache().isHostAllowed(re... |
"public ThesNode getRoot() {\n if (thesRoot == null) {\n thesRoot = new ThesNode(null, \"String_Node_Str\", this);\n }\n return thesRoot;\n}\n"
|
"protected IStatus run(final IProgressMonitor monitor) {\n final String id = wizard.getImageId();\n monitor.beginTask(DVMessages.getString(PULL_IMAGE_JOB_TASK), IProgressMonitor.UNKNOWN);\n try {\n ((DockerConnection) connection).pullImage(id, new ImagePullProgressHandler(connection, id));\n moni... |
"protected Hashtable buildFieldTypes() {\n Hashtable fieldTypeMapping;\n fieldTypeMapping = new Hashtable();\n fieldTypeMapping.put(Boolean.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(Integer.class, new FieldTypeDefinition(\"String_Node_Str\", 10));\n fieldTypeMapp... |
"public void safeUpdate() {\n superUpdate();\n EnumFacing dir = world.getBlockState(pos).getValue(BlockSteamHeater.FACING);\n ArrayList<TileEntitySteamHeater> secondaryHeaters = new ArrayList<>();\n BlockPos offsetPos = getOffsetPos(dir);\n TileEntity tile = world.getTileEntity(offsetPos);\n if (tile ... |
"public ODataResponse readServiceDocument(GetServiceDocumentUriInfo uriInfo, String contentType) throws ODataException {\n final Edm entityDataModel = getContext().getService().getEntityDataModel();\n final String serviceRoot = getContext().getPathInfo().getServiceRoot().toASCIIString();\n final ODataResponse ... |
"private void postDeleteEvent(DatabaseWrapper db, String tableName, int rowsAffected) {\n Bus bus = getBus();\n if (bus != null) {\n if (!db.inTransaction()) {\n bus.post(new DatabaseDeleteEvent(tableName, rowsAffected));\n } else {\n addTransactionTableNameChange(tableName);\n... |
"public static VmInstance delete(final VmInstance vm) throws TransactionException {\n try {\n if (VmStateSet.DONE.apply(vm)) {\n cache(vm);\n return Transitions.DELETE.apply(vm);\n }\n } catch (final Exception ex) {\n LOG.error(ex, ex);\n }\n return vm;\n}\n"
|
"public static ContentPayload getMetadataPayload(TransferredResource transferredResource) {\n try {\n Element root = new Element(\"String_Node_Str\");\n org.jdom2.Document doc = new org.jdom2.Document();\n Element child = new Element(\"String_Node_Str\");\n child.setAttribute(\"String_Nod... |
"public void getFilterType() {\n NotNullFilter target = new NotNullFilter(ColumnType.NULL);\n assertEquals(target.getFilterType(), FilterType.NOT_NULL);\n}\n"
|
"private Section createSimpleStatisticsPart(Composite parentComp, String title, SimpleStatIndicator simpleStatIndicator) {\n Section section = createSection(form, parentComp, title, null);\n section.setLayoutData(new GridData(GridData.FILL_BOTH));\n Composite sectionClient = toolkit.createComposite(section);\n... |
"static void read(SBOLDocument doc, String stringBuffer, String URIPrefix) throws IOException, SBOLConversionException, SBOLValidationException {\n so = new SequenceOntology();\n doc.addNamespace(URI.create(GBNAMESPACE), GBPREFIX);\n BufferedReader br = new BufferedReader(new StringReader(stringBuffer));\n ... |
"public void renderReportlet(OutputStream out, HttpServletRequest request, IReportDocument reportDocument, String reportletId, String format, boolean masterPage, boolean svgFlag, List activeIds, Locale locale, boolean rtl, String iServletPath) throws RemoteException {\n if (reportDocument == null) {\n AxisFau... |
"public Collection<E> mergeAll(Collection<E> entries) {\n if (entries != null && !entries.isEmpty()) {\n try {\n Session session = currentSession();\n int i = 0;\n Iterator<E> iter = entries.iterator();\n while (iter.hasNext()) {\n session.merge(iter.... |
"public Data getData() throws DataProcessingException {\n Data input = getPredecessor().getData();\n if (input instanceof DataStartSignal) {\n sum = null;\n getTimer().start();\n if (input != null) {\n if (input instanceof DoubleData) {\n DoubleData data = (DoubleData) input;\n ... |
"public static TimeItem fromString(String code) {\n String[] items = code.split(\"String_Node_Str\");\n if (items.length != 4)\n return null;\n int hour, minute;\n try {\n hour = Integer.parseInt(items[2]);\n minute = Integer.parseInt(items[3]);\n } catch (NumberFormatException e) {\... |
"public void testPolicy() throws Exception {\n final Configuration configuration = new DefaultConfiguration();\n final Path target = Paths.get(TARGET_FILE);\n final Path rolled = Paths.get(ROLLED_FILE);\n Files.deleteIfExists(target);\n Files.deleteIfExists(rolled);\n final InputStream is = new ByteAr... |
"private static final boolean invalidateReceiverLookupCaches(final ExecutionVertex failedVertex, final Set<ExecutionVertex> verticesToBeCanceled) {\n final Map<AbstractInstance, Set<ChannelID>> entriesToInvalidate = new HashMap<AbstractInstance, Set<ChannelID>>();\n final ExecutionGraph eg = failedVertex.getExecu... |
"public Permit createNew(String name) {\n SemaphoreConfig config = nodeEngine.getConfig().getSemaphoreConfig(name);\n int partitionId = nodeEngine.getPartitionService().getPartitionId(StringPartitioningStrategy.getPartitionKey(name));\n return new Permit(partitionId, new SemaphoreConfig(config));\n}\n"
|
"public void checkPrivileges(HiveOperationType hiveOpType, List<HivePrivilegeObject> inputHObjs, List<HivePrivilegeObject> outputHObjs, HiveAuthzContext context) throws HiveAuthzPluginException, HiveAccessControlException {\n UserGroupInformation ugi = getCurrentUserGroupInfo();\n if (ugi == null) {\n thro... |
"private void player(Player player, String[] args) {\n World dim = player.getWorld();\n if (args[1].equalsIgnoreCase(\"String_Node_Str\")) {\n if (!player.hasPermission(\"String_Node_Str\")) {\n return;\n }\n String weather = dim.isRaining() ? dim.isThundering() ? \"String_Node_Str... |
"public static CharSequence escapteConditionValue(CharSequence s) {\n if (null == s)\n return null;\n return ES_CND_VAL.escape(s);\n}\n"
|
"private static void jj_la1_init_3() {\n jj_la1_3 = new int[] { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe, 0xc, 0x0, 0x0, 0xe, 0x0, 0x0, 0xe, 0x0... |
"public void onClick(ButtonSprite pButtonSprite, float pTouchAreaLocalX, float pTouchAreaLocalY) {\n if (currentScreen < screenCount - 1) {\n currentScreen++;\n entityToFollow.registerEntityModifier(new MoveXModifier(0.5f, entityToFollow.getX(), currentScreen * camera.getWidth() + camera.getWidth() / 2... |
"public void handleCreate(ServerContext context, CreateRequest request, ResultHandler<Resource> handler) {\n try {\n String objectClass = getObjectClass(context);\n RequestHandler delegate = objectClassHandlers.get(objectClass);\n if (null != delegate) {\n delegate.handleCreate(contex... |
"public static void FixPlusCal(Token[][] spec, boolean isTeX) {\n if (!hasPcal) {\n return;\n }\n if (Parameters.CommentShading && Parameters.NoPlusCalShading && (pcalEnd.line < spec.length) && (pcalEnd.item < spec[pcalEnd.line].length)) {\n Token tok = pcalEnd.toToken(spec);\n if (tok.typ... |
"protected void arcImpl(float x, float y, float w, float h, float start, float stop, int mode) {\n if (stop - start >= TWO_PI) {\n ellipseImpl(x, y, w, h);\n } else {\n start = start * RAD_TO_DEG;\n stop = stop * RAD_TO_DEG;\n while (start < 0) {\n start += 360;\n ... |
"public void onDifferent(Record record1, Record record2, MatchResult matchResult) {\n if (LOGGER.isInfoEnabled()) {\n LOGGER.info(\"String_Node_Str\" + record1.getId() + \"String_Node_Str\" + record2.getId());\n }\n if (LOGGER.isDebugEnabled()) {\n StringBuilder messagesBuilder = new StringBuilde... |
"private static int getMode(char c, String code, int i) {\n switch(c) {\n case '\"':\n return STRING;\n case '\\'':\n return CHAR;\n case '/':\n char n = code.charAt(i + 1);\n if (n == '*') {\n return BLOCK_COMMENT;\n } else i... |
"private void save() {\n int selIdx = comboBox.getSelectedIndex();\n if (selIdx == -1) {\n return;\n }\n String language = null;\n if (selIdx >= 1) {\n language = languages[selIdx - 1];\n }\n String key = list.getSelectedValue().toString();\n String val = txtArea.getText();\n me... |
"private void initialize() {\n this.classWriter = new JvmClassWriter(\"String_Node_Str\" + Weel.scriptCounter.getAndIncrement());\n this.weel.scriptClasses.add(this.classWriter.className);\n final Scope s = new Scope(this.weel, ScopeType.STATIC);\n s.block = new CodeBlock(this.classWriter.createMethod(\"Str... |
"public boolean getFileInformation(DownloadLink downloadLink) throws IOException {\n if (downloadLink.getDownloadURL().matches(\"String_Node_Str\"))\n return true;\n downloadLink.setUrlDownload(downloadLink.getDownloadURL().replaceAll(\"String_Node_Str\", \"String_Node_Str\"));\n downloadLink.setUrlDown... |
"private void reset() {\n multiplicityFieldsAllMissing = true;\n previousPosition = -1;\n previousTargetIndex = -1;\n deltaPositions.clear();\n deltaTargetIndices.clear();\n queryLengths.clear();\n mappingQualities.clear();\n matchingReverseStrand.clear();\n multiplicity.clear();\n numberO... |
"protected void handleServiceUnregistering(ServiceReference serviceReference) {\n RemoteServiceAdmin rsa = (RemoteServiceAdmin) getRemoteServiceAdmin();\n if (rsa != null) {\n List<RemoteServiceAdmin.ExportRegistration> exportedRegistrations = ((RemoteServiceAdmin) getRemoteServiceAdmin()).getExportedRegis... |
"public void generateTraitsPhase3(int methodInitScope, boolean isInterface, String className, String superName, boolean generateStatic, SourceGeneratorLocalData localData, List<GraphTargetItem> items, Traits ts, Trait[] traits, Map<Trait, Integer> initScopes, Reference<Integer> class_index) throws AVM2ParseException, C... |
"public static void retrieve(Context context, Listener listener) {\n Application application = (Application) context.getApplicationContext();\n FrontCameraRetriever frontCameraRetriever = new FrontCameraRetriever(listener);\n UniqueActivityLifecycleCallbacks callbacks = UniqueActivityLifecycleCallbacks.newInst... |
"public List<Object[]> transform(List<Object[]> tuples) {\n FixedArrayList correlationParams = new FixedArrayList(batchSize);\n int tupleOffset = batchSize > 1 ? 1 : 0;\n Iterator<Object[]> tupleListIter = tuples.iterator();\n final String correlationRoot = applyAndGetCorrelationRoot(expectBatchCorrelationV... |
"public void clear() throws IOException {\n bufferPos = 0;\n Arrays.fill(buffer, null);\n if (diskList != null) {\n diskList.clear();\n}\n"
|
"private void emptyGroupIdQueue() {\n List<PwPair> pwPairs = new ArrayList<>();\n for (String groupId : mGroupIdQueue) {\n Log.d(TAG, \"String_Node_Str\" + groupId);\n pwPairs.add(Utils.getTopRankedPwPairByGroupId(mPwCollection, groupId));\n }\n Collections.sort(pwPairs, Collections.reverseOrd... |
"protected IPropertySource<?> doCreatePropSource(XSDSimpleTypeDefinition simpleType, Composite cellEditorParent, Object sourceFacetValue) {\n if (Util.isDouble(simpleType) || Util.isDecimal(simpleType) || Util.isFloat(simpleType)) {\n return new SimpleTypeFacetDoublePropertySource(cellEditorParent, IConstants... |
"protected void onPostExecute(final Object[] result) {\n if (isCancelled())\n return;\n if (result != null) {\n if (result.length > 0) {\n HashMap<?, ?> contentHash = new HashMap<Object, Object>();\n Vector<HashMap<?, ?>> dbVector = new Vector<HashMap<?, ?>>();\n if ... |
"public List<Map<K, Object>> findErrorValuesByFilter(long beginTime, long endTime, boolean serverSide, int aggregationPeriod, Long errorId, String filter, Map<String, List<String>> filters) {\n final List<String> errorKeys = KeyGeneratorUtil.generateErrorValuesKeys(serverSide, filters, filter);\n Map<K, Map<Long,... |
"public void setMessage(String message) {\n if (_messageArea == null) {\n _messageArea = new JTextArea(message);\n _messageArea.setFont(new Font(\"String_Node_Str\", Font.PLAIN, 12));\n _messageArea.setEditable(false);\n _messageArea.setLineWrap(true);\n _messageArea.setWrapStyleWo... |
"public IdDt setValue(String theValue) throws DataFormatException {\n super.setValue(theValue);\n myHaveComponentParts = false;\n if (StringUtils.isBlank(theValue)) {\n myBaseUrl = null;\n super.setValue(null);\n myUnqualifiedId = null;\n myUnqualifiedVersionId = null;\n myRe... |
"private void handleSwitchCase(final SwitchCase switchCase) {\n if (switchCase.getStatements() == null) {\n return;\n }\n final List<AstNode> newStatements = Lists.newArrayList();\n for (final AstNode statement : switchCase.getStatements()) {\n final int lineNr = getActualLineNumber(statement)... |
"private boolean generateInlineCode(VM_MethodReference methodToBeCalled) {\n VM_Atom methodName = methodToBeCalled.getName();\n if (methodToBeCalled.getType() == VM_TypeReference.SysCall) {\n VM_TypeReference[] args = methodToBeCalled.getParameterTypes();\n int paramWords = methodToBeCalled.getParam... |
"private boolean isApacheWebServerNodeTypeCompatible(QName nodeTypeId) {\n if (nodeTypeId.equals(this.apacheNodeType)) {\n return true;\n }\n if (nodeTypeId.toString().equals(this.apacheNodeTypeTOSCASpecificType.toString())) {\n return true;\n }\n return false;\n}\n"
|
"public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {\n super.configure(name, params);\n _capacityPerSSVM = NumbersUtil.parseInt(_configDao.getValue(Config.SecStorageSessionMax.key()), DEFAULT_SS_VM_CAPACITY);\n _standbyCapacity = NumbersUtil.parseInt(_configDao.get... |
"public void setSMSSending(SMS sms) {\n Validate.notNull(sms);\n logger.log(Level.FINE, \"String_Node_Str\", sms);\n sms.setStatus(SMS.Status.SENDING);\n valuedSupport.fireEventOccured(Events.SENDING_SMS, sms);\n}\n"
|
"public static String joinArguments(CharSequence delimiter, Iterable tokens) {\n StringBuilder sb = new StringBuilder();\n boolean firstTime = true;\n for (Object token : tokens) {\n if (firstTime) {\n firstTime = false;\n } else {\n sb.append(delimiter);\n }\n ... |
"public static Set<Class<?>> scanModules(Class<?> mainModule) {\n Modules ann = mainModule.getAnnotation(Modules.class);\n boolean scan = null == ann ? false : ann.scanPackage();\n List<Class<?>> list = new LinkedList<Class<?>>();\n list.add(mainModule);\n if (null != ann) {\n for (Class<?> module... |
"protected void inflateView(Context context) {\n LayoutInflater vi = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n myView = (LinearLayout) vi.inflate(R.layout.gregorian_date_widget, null);\n addView(myView);\n}\n"
|
"public synchronized void unloadFarChunks() {\n if (!(this.getSession().getPlayer() instanceof GlowPlayer)) {\n return;\n }\n ChunkLocation playerChunk = new ChunkLocation(this.getSession().getPlayer().getLocation().getBlockX() / 16, this.getSession().getPlayer().getLocation().getBlockZ() / 16);\n Ar... |
"public static Map<String, Object> sendAuthRequestToOrigServer(HttpServletRequest request, HttpServletResponse response, String cookieURL) {\n Map<String, Object> origRequestData = new HashMap<String, Object>();\n if (utilDebug.messageEnabled()) {\n StringBuilder message = new StringBuilder();\n Enu... |
"public Driver getDriverInstance(Class driver) throws OdaException {\n String driverName = driver.getName();\n if (refreshDriver || !this.cachedJdbcDriver.containsKey(driverName)) {\n Driver instance = null;\n try {\n instance = (Driver) driver.newInstance();\n } catch (Exception e... |
"public void readData(ByteBuf data) {\n itemPos = new Vec3(data.readFloat(), data.readFloat(), data.readFloat());\n pos = Utils.convertFloor(itemPos);\n this.entityId = data.readShort();\n int flags = data.readUnsignedByte();\n int in = (flags >> 3) & 7;\n if (in == 6) {\n this.input = null;\n ... |
"public static void main(String[] args) {\n BufferedImage buffered = UtilImageIO.loadImage(\"String_Node_Str\");\n MultiSpectral<ImageFloat32> input = ConvertBufferedImage.convertFromMulti(buffered, null, true, ImageFloat32.class);\n MultiSpectral<ImageFloat32> output = input._createNew(400, 500);\n Estimat... |
"private Application buildCompositeAppStructure(ApplicationContext appCtxt, Map<String, GroupContext> definedGroupCtxts, Map<String, SubscribableInfoContext> subscribableInfoCtxts) throws ApplicationDefinitionException {\n Application application = new Application(appCtxt.getApplicationId());\n application.setTen... |
"public void load(String fileName) throws ClassNotFoundException, IOException, InstantiationException, IllegalAccessException {\n try (FileInputStream inputStream = new FileInputStream(fileName)) {\n loadFromProto(parseProtoFromInputStream(inputStream));\n }\n}\n"
|
"public void saveToFile() {\n try {\n saveToFile(\"String_Node_Str\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n Logger.printStackTrace(e, \"String_Node_Str\");\n }\n}\n"
|
"public void onCameraInit() {\n if (cameraMode == CAMERA_MODE.VIDEO_MODE) {\n mOverlay.setMode(Mode.RECORDING);\n new Handler().postDelayed(new Runnable() {\n public void run() {\n startVideoRecorder();\n mSoundEffects.camcorder();\n initVideoReco... |
"protected Highlight getHighlight(double xPosition, double yPosition) {\n int setCount = mData.getDataSetCount();\n int valCount = mData.getXValCount();\n if (!mData.isGrouped()) {\n int dataSetIndex = 0;\n int xIndex = (int) Math.round(xPosition);\n if (!mData.getDataSetByIndex(dataSet).i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.