content stringlengths 40 137k |
|---|
"public static UserProvidedCredential fromForm(StaplerRequest req, MultipartFormDataParser parser) throws IOException {\n CrumbIssuer crumbIssuer = Hudson.getInstance().getCrumbIssuer();\n if (crumbIssuer != null && !crumbIssuer.validateCrumb(req, parser))\n throw HttpResponses.error(SC_FORBIDDEN, new IOEx... |
"private void resetFailCount() {\n m_device.getManager().getPostManager().postToUpdateThread(new Runnable() {\n public void run() {\n m_failCount = 0;\n m_highestStateReached_total = null;\n m_timeOfFirstConnect = m_timeOfLastConnectFail = null;\n m_history.clear();... |
"public void protoContactMoved(ProtoContactEvent evt) {\n MetaContactChatTransport chatTransport = null;\n if (evt.getOldParent().equals(metaContact)) {\n protoContactRemoved(evt);\n } else if (evt.getNewParent().equals(metaContact)) {\n chatTransport = new MetaContactChatTransport(this, evt.getP... |
"private void receivedUpdate(String server, List<UUID> uuids) {\n LilyPadServer s;\n boolean shouldAdd = false;\n if ((s = (LilyPadServer) getServer(server)) == null) {\n s = new LilyPadServer(server, this);\n shouldAdd = true;\n }\n s.setLastPing(new Date());\n List<COfflinePlayer> play... |
"private static List<String> extractTables(String database, BufferedReader reader, File metaTmpDir) throws IOException {\n File tableDescDir = new File(metaTmpDir, TABLE_FOLDER_NAME);\n File tableExdDir = new File(metaTmpDir, TABLE_EXD_FOLDER_NAME);\n mkdirs(tableDescDir);\n mkdirs(tableExdDir);\n List<T... |
"private void categorizeResultFile(final Reference file) {\n final String lcasefn = file.filename.toLowerCase();\n if (subsidiarySet.contains(toFile(file.filename))) {\n return;\n }\n if (FileUtils.isDITAFile(lcasefn) && (file.format == null || ATTR_FORMAT_VALUE_DITA.equalsIgnoreCase(file.format) || ... |
"public static CxxPlatform copyPlatformWithFlavorAndConfig(CxxPlatform defaultPlatform, CxxBuckConfig config, Flavor flavor) {\n return CxxPlatforms.build(flavor, config, defaultPlatform.getAs(), defaultPlatform.getAspp(), defaultPlatform.getCc(), defaultPlatform.getCxx(), defaultPlatform.getCpp(), defaultPlatform.g... |
"public void benchmarkTest() throws ConfigurationException, DaoException {\n Env env = new EnvBuilder().build();\n Configurator configurator = env.getConfigurator();\n UniversalLinkDao dao = configurator.get(UniversalLinkDao.class, \"String_Node_Str\");\n long start = System.currentTimeMillis();\n Iterab... |
"public static Flasher getFlasher(Bundle b, Shell sh) {\n if (Devices.getConnectedDevice().getPid().equals(\"String_Node_Str\"))\n return new S1Flasher(b, sh);\n if (ent.getProtocol().equals(\"String_Node_Str\"))\n return new CommandFlasher(b, sh);\n return null;\n}\n"
|
"public void onFilter3Pressed() {\n try {\n if (changeActiveFilter(filterView3)) {\n filteredImgPath = filterColorSpace(ivfullscreenImage.getId());\n ivfullscreenImage.setImage(new Image(new FileInputStream(filteredImgPath), ivfullscreenImage.getFitWidth(), ivfullscreenImage.getFitHeight... |
"public void receivedMessage(WonderlandClientSender clientSender, ClientSession clientSession, CellMessage message) {\n WhiteboardCompoundCellMessage cmsg = (WhiteboardCompoundCellMessage) message;\n logger.fine(\"String_Node_Str\" + cmsg);\n WhiteboardComponentMO commComponent = commComponentRef.getForUpdate(... |
"public void run() {\n try {\n if (Logging.isInfo())\n Logging.logMessage(Logging.LEVEL_INFO, Category.lifecycle, this, \"String_Node_Str\");\n ctrl.shutdown();\n if (Logging.isInfo())\n Logging.logMessage(Logging.LEVEL_INFO, Category.lifecycle, this, \"String_Node_Str\");\... |
"public void testLockConditionSignalAllShutDownKeyOwner() throws InterruptedException {\n final StaticNodeFactory nodeFactory = new StaticNodeFactory(2);\n final Config config = new Config();\n final String name = \"String_Node_Str\";\n final HazelcastInstance instance = nodeFactory.newHazelcastInstance(con... |
"public void onScroll(int scrolledY) {\n StikkyCompat.setTranslationY(mHeader, Math.max(scrolledY, getMaxTranslation()));\n mTranslationRatio = calculateTranslationRatio(scrolledY);\n}\n"
|
"protected void generatePropertyFields(NodeRef nodeRef, Form form, FormData formData) {\n QName type = this.nodeService.getType(nodeRef);\n Collection<QName> aspects = this.getAspectsToInclude(nodeRef);\n TypeDefinition typeDef = this.dictionaryService.getAnonymousType(type, aspects);\n Map<QName, PropertyD... |
"protected void draw(GL2 gl2) {\n gl2.glClear(GL2.GL_COLOR_BUFFER_BIT);\n gl2.glLoadIdentity();\n if (context == null || context.getGl2() != gl2) {\n context = new JOGLDrawContext(gl2);\n }\n context.startFrame();\n area.drawArea(context);\n}\n"
|
"private static boolean dumpDurationSteps(PrintWriter pw, String prefix, String header, LevelStepTracker steps, boolean checkin) {\n if (steps == null) {\n return false;\n }\n int count = steps.mNumStepDurations;\n if (count <= 0) {\n return false;\n }\n if (!checkin) {\n pw.print... |
"public void registerExtenderCallbacks(final IBurpExtenderCallbacks callbacks) {\n callbacks.setExtensionName(\"String_Node_Str\");\n this.callbacks = callbacks;\n this.helpers = callbacks.getHelpers();\n stdout = new PrintWriter(callbacks.getStdout(), true);\n stderr = new PrintWriter(callbacks.getStder... |
"public void contentDeploy() throws Exception {\n fileCreator.createFiles();\n File targetFile = new File(targetDir, outputPath + FILEPRAEFIX_DEPLOY + appName + FILESUFFIX_DEPLOY);\n String manifestContent = FileUtils.readFileToString(targetFile);\n String expectedDeployContent = \"String_Node_Str\" + \"Str... |
"public void viewConfigured(LocalAvatar localAvatar) {\n cell = localAvatar.getViewCell();\n if (cell == null) {\n logger.severe(\"String_Node_Str\");\n } else {\n CellID cellID = cell.getCellID();\n presenceInfo = pm.getPresenceInfo(cellID);\n controls = new PresenceControls(this, ... |
"public static void init() throws Exception {\n injector = Guice.createInjector(new DataFabricModules().getInMemoryModules());\n transactionManager = injector.getInstance(InMemoryTransactionManager.class);\n transactionManager.init();\n opex = injector.getInstance(OperationExecutor.class);\n queueClientF... |
"public void onContainerClosed(EntityPlayer player) {\n if (player.worldObj.isRemote) {\n setFoodContainerItemStack(findFoodContainerWithUUID(getUUID()));\n }\n if (itemStack != null)\n ((ItemFoodContainer) itemStack.getItem()).setIsOpen(itemStack, false);\n super.onContainerClosed(player);\n}... |
"public void intervalAdded(ListDataEvent e) {\n final Product[] propertySourceProducts = binningFormModel.getPropertyValue(BinningFormModel.PROPERTY_KEY_SOURCE_PRODUCTS);\n final Product[] newSourceProducts = sourceProductList.getSourceProducts();\n for (Product newSourceProduct : newSourceProducts) {\n ... |
"public Result createOutput(String namespaceUri, String suggestedFileName) throws IOException {\n File file;\n OutputStream out;\n if (schemaLocations.containsKey(namespaceUri)) {\n file = schemaLocations.get(namespaceUri);\n if (file == null)\n return null;\n out = new FileOutp... |
"public void selectionChanged(SelectionChangedEvent event) {\n if (!((IStructuredSelection) event.getSelection()).isEmpty()) {\n Object selection = ((IStructuredSelection) event.getSelection()).getFirstElement();\n valueViewer.setDocument(new Document(selection.toString()));\n } else {\n valu... |
"private void removeFromUserResolver(String userId, Tenant tenant) {\n DimeUserResolverServiceAdapter userResolver;\n try {\n userResolver = serviceGateway.getDimeUserResolverServiceAdapter();\n userResolver.setTenant(tenant);\n userResolver._delete(\"String_Node_Str\" + userId.replace(\"Stri... |
"public void setStreetLocation() {\n int lastData = 6;\n while (currentMessage.get(lastData) != (byte) 0x3B) {\n lastData++;\n }\n if (mCallbackReceiver != null)\n mCallbackReceiver.onUpdateStreetLocation(decodeMessage(currentMessage, 6, lastData - 1));\n}\n"
|
"public void failure(RetrofitError error) {\n if (null != mEventDescription) {\n Log.d(LOG_TAG, \"String_Node_Str\" + mEventDescription + \"String_Node_Str\" + \"String_Node_Str\" + error.getMessage());\n }\n boolean retry = true;\n if (null != error.getResponse()) {\n retry = (error.getRespon... |
"public void update2ndStep() {\n super.update2ndStep();\n component.setPosition(leftMostColumn, row, column, size);\n component.update2ndStep();\n}\n"
|
"public PreparedResult prepareQueryable(Queryable queryable, RelDataType resultType) {\n queryString = null;\n Class runtimeContextClass = Object.class;\n init(runtimeContextClass);\n final RelOptQuery query = new RelOptQuery(planner);\n final RelTraitSet emptyTraitSet = planner.emptyTraitSet();\n fin... |
"public String getBalances() {\n Collection<String> balances = serviceContext.getBalances();\n return balances == null ? \"String_Node_Str\" : new JSONArray(balances).toString();\n}\n"
|
"private void parseObservations() {\n if (CDMDataSet == null) {\n setupExceptionOutput(\"String_Node_Str\");\n return;\n }\n setObsCollectionMetaData();\n int numStations;\n numStations = CDMDataSet.getNumberOfStations();\n for (int stNum = 0; stNum < numStations; stNum++) {\n if ... |
"public static String readOvfContent(String ovfFilePath) throws IOException {\n StringBuffer strContent = new StringBuffer();\n BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(ovfFilePath), \"String_Node_Str\"));\n String lineStr;\n while ((lineStr = in.readLine()) != null) ... |
"public boolean containsPoint(UIPoint position) {\n return false;\n}\n"
|
"public void purgeDataSetDefinition(DataSetDefinition dataSetDefinition) {\n DataExportDataSetDefinition dsd = (DataExportDataSetDefinition) dataSetDefinition;\n Context.getService(AdministrationService.class).deleteReportObject(dsd.getDataExport().getId());\n}\n"
|
"public boolean apply(Game game, Ability source) {\n UUID objectId = source.getFirstTarget();\n UUID sourceId = source.getSourceId();\n StackObject stackObject = game.getStack().getStackObject(objectId);\n if (stackObject != null && !game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.COUNTER, objectId... |
"public boolean applies(Permanent permanent, Ability source, Game game) {\n FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent();\n filter.add(new PowerPredicate(ComparisonType.MORE_THAN, 3));\n filter.add(new AnotherPredicate());\n if (permanent.getId().equals(source.getSource... |
"public Node cloneNode(Node node, IProcess process, Map<String, List<? extends IElementParameter>> paraMap, boolean lockByOther) {\n NodePart nodePart = new NodePart();\n IJobletProviderService service = (IJobletProviderService) GlobalServiceRegister.getDefault().getService(IJobletProviderService.class);\n boo... |
"private boolean tryLockNanos4a(long offset) {\n int lowId = shortThreadId();\n int firstValue = ((1 << 24) | lowId);\n if (compareAndSwapInt(offset, 0, firstValue))\n return true;\n int currentValue = readInt(offset);\n if ((currentValue & INT_LOCK_MASK) == lowId) {\n if (currentValue >= (... |
"private void waitStmt(Context context, SwiftAST tree) throws UserException {\n Wait wait = Wait.fromAST(context, tree);\n ArrayList<Var> waitEvaled = new ArrayList<Var>();\n for (SwiftAST expr : wait.getWaitExprs()) {\n Var res = exprWalker.eval(context, expr, TypeChecker.findSingleExprType(context, ex... |
"public Object initCache(PImage img) {\n Texture tex = (Texture) img.getCache(pgPrimary);\n if (tex == null || tex.contextIsOutdated()) {\n tex = addTexture(img);\n if (tex != null) {\n img.loadPixels();\n tex.set(img.pixels);\n }\n }\n return tex;\n}\n"
|
"public void testSubmmtToKeyOperationSuccessfulWhenQuorumSizeMet() throws Exception {\n Future future = map1.submitToKey(\"String_Node_Str\", new TestLoggingEntryProcessor());\n future.get();\n}\n"
|
"public void run() {\n Map.Entry<Data, Data> mapEntry = recordStore.getMapEntryData(dataKey);\n dataOldValue = mapEntry.getValue();\n Map.Entry entry = new AbstractMap.SimpleEntry(mapService.toObject(dataKey), mapService.toObject(mapEntry.getValue()));\n response = mapService.toData(entryProcessor.process(e... |
"private static void setDelimitedFileValue(DelimitedFileConnection connection, INode node, String repositoryValue) {\n if (\"String_Node_Str\".equals(repositoryValue)) {\n String value = getParameterValue(connection, node, \"String_Node_Str\");\n if (value != null) {\n connection.setFilePath... |
"public int hashCode() {\n return this.id().hashCode();\n}\n"
|
"public IType resolve(MarkerList markers, IContext context, TypePosition position) {\n if (this.bound != null) {\n this.bound = this.bound.resolve(markers, context, TypePosition.SUPER_TYPE_ARGUMENT);\n }\n if (position != TypePosition.GENERIC_ARGUMENT) {\n markers.add(this.position, \"String_Node... |
"protected boolean _isOpaque(CompositeEntity entity) {\n if (entity instanceof CompositeActor && ((CompositeActor) entity).isOpaque()) {\n return true;\n } else {\n NamedObj container = entity.getContainer();\n Token value = _getAttribute(container, \"String_Node_Str\", HierarchyFlatteningAtt... |
"private void initializeListView() {\n placesListView.setAdapter(placesAdapter);\n placesListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n lastVideoLoadedPosition = position;\n ... |
"public void executeAll(SecondExecutorService ses, ConcurrentMap<Object, Object> entries, int delaySecond) {\n for (Object o : entries.values()) {\n System.out.println(\"String_Node_Str\" + o);\n }\n}\n"
|
"public static Structure getQuaternaryStructure(MultipleAlignment symmetry) {\n if (!symmetry.getEnsemble().getAlgorithmName().contains(\"String_Node_Str\")) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n Atom[] atoms = symmetry.getAtomArrays().get(0);\n Structure cloned = atoms[0... |
"public void send(int channelIndex, Token[] tokenArray, int vectorLength) throws IllegalActionException, NoRoomException {\n Receiver[][] farRec;\n Token token = null;\n try {\n try {\n _workspace.getReadAccess();\n token = tokenArray[0];\n int compare = TypeLattice.comp... |
"public void onCOnfigurationChangedEvent(ConfigChangedEvent.OnConfigChangedEvent event) {\n if (event.modID.equals(Reference.MOD_ID)) {\n loadConfiguration();\n LogHelper.debug(\"String_Node_Str\");\n }\n}\n"
|
"private String execute(HttpMethod method) {\n HttpClient httpClient = new HttpClient(connectionManager);\n try {\n httpClient.executeMethod(method);\n String responseBody = method.getResponseBodyAsString();\n if (responseBody == null) {\n throw new RuntimeException(\"String_Node_S... |
"public boolean filter(Executable elem) throws Exception {\n Executable equivalentMethod = null;\n sd = (SymbolType) expression.getScope().getSymbolData();\n if (sd == null) {\n expression.getScope().accept(typeResolver, ctx);\n sd = (SymbolType) expression.getScope().getSymbolData();\n if... |
"protected void done() {\n try {\n get();\n } catch (InterruptedException | ExecutionException ex) {\n logger.fatal(\"String_Node_Str\", ex);\n } catch (CancellationException ex) {\n }\n}\n"
|
"public void parse(Node node) throws SAXException {\n if (node.getNodeType() == Node.DOCUMENT_FRAGMENT_NODE) {\n handleChildNodes(node.getChildNodes());\n } else {\n super.parse(node, uri, name);\n }\n}\n"
|
"public HashMap<AbstractInsnNode, Mistake> findErrors() {\n HashMap<AbstractInsnNode, Mistake> map = new HashMap<>();\n for (AbstractInsnNode ain : mn.instructions.toArray()) {\n maxLocals(mn.maxLocals, ain, map);\n }\n final Analyzer a = new Analyzer(new BasicVerifier());\n try {\n a.analy... |
"public void init(TreeViewer viewer, IStructuredSelection selection) {\n boolean canWork = !selection.isEmpty() && selection.size() == 1;\n IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();\n if (factory.isUserReadOnlyOnCurrentProject()) {\n canWork = false;\n }\n if (canWork... |
"public void changed(ObservableValue<? extends T> observable, T oldValue, T newValue) {\n if (observable instanceof ReadOnlyProperty) {\n Object bean = ((ReadOnlyProperty) observable).getBean();\n if (bean instanceof EventTarget && !newValue.equals(oldValue)) {\n EventTarget eventTarget = (E... |
"public void start() {\n state = Started;\n PlayerState status = getPlayer().getStatus();\n if (status != PlayerState.PAUSED) {\n audioPlayer.stop();\n audioPlayer.playSong();\n } else {\n audioPlayer.unpause();\n }\n}\n"
|
"private void initializeSchemaLow() throws SQLException {\n if (!catalogsInitialized) {\n initializeCatalog();\n }\n Map<String, List<TdSchema>> catalog2schemas = null;\n if (connection.getMetaData().getDriverName().equals(MSSQL_JDBC2_0)) {\n catalog2schemas = DatabaseContentRetriever.getMSSQL... |
"private static String escapeXml(String unescaped) {\n return SizeMapRecorder.escapeXml(unescaped);\n}\n"
|
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n Set<Card> cards = controller.getGraveyard().getCards(filterCard, game);\n cards.stream().forEach((card) -> {\n game.getState().addOtherAbility(c... |
"public final void setTranslatorName(int index, String name) {\n CoreArgCheck.isTrue(index < sourceInfo.getSourceCount(), \"String_Node_Str\");\n if (StringUtilities.isEmpty(name))\n name = null;\n String oldName = sourceInfo.getSource(index).getTranslatorName();\n if (StringUtilities.equals(name, ol... |
"public void run() {\n loadPosts(mLoadMore);\n}\n"
|
"public int getId() {\n return npcid;\n}\n"
|
"public void encodeBegin(FacesContext context, UIComponent component) throws IOException {\n if (!component.isRendered()) {\n return;\n }\n CommandButton commandButton = (CommandButton) component;\n ResponseWriter rw = context.getResponseWriter();\n String CID = component.getClientId(context);\n ... |
"public LocalLink getLink(Language language, int sourceId, int destId) throws DaoException {\n LiveAPIQuery.LiveAPIQueryBuilder builder = new LiveAPIQuery.LiveAPIQueryBuilder(\"String_Node_Str\", language);\n builder.setPageid(sourceId);\n LiveAPIQuery query = builder.build();\n List<QueryReply> replyObject... |
"public void test() throws IOException {\n Analyzer analyzer = new WhitespaceAnalyzer();\n File[] files = out.listFiles();\n assertEquals(\"String_Node_Str\" + files.length + \"String_Node_Str\" + 0, 0, files.length);\n Charset charset = Charset.forName(\"String_Node_Str\");\n BayesFileFormatter.format(\... |
"public BigDecimal convertUnitPrice(PurchaseOrderLine purchaseOrderLine, PurchaseOrder purchaseOrder) {\n BigDecimal price = purchaseOrderLine.getProduct().getPurchasePrice();\n if (purchaseOrderLine.getProduct().getInAti() && !purchaseOrder.getInAti()) {\n price = price.divide(purchaseOrderLine.getTaxLine... |
"public void selectMenuItem(String namePath, final String operator) {\n String[] menuItems = MenuUtilBase.splitPath(namePath);\n if (menuItems.length == 0) {\n throw new StepExecutionException(\"String_Node_Str\", EventFactory.createActionError());\n }\n IMenuItemComponent item = navigateToMenuItem(g... |
"public void computeTile(Band targetBand, Tile targetTile, ProgressMonitor pm) throws OperatorException {\n final Rectangle targetTileRectangle = targetTile.getRectangle();\n final int tx0 = targetTileRectangle.x;\n final int ty0 = targetTileRectangle.y;\n final int tw = targetTileRectangle.width;\n fina... |
"public Location call() throws Exception {\n return Locations.getLocationFromAbsolutePath(locationFactory, module.getJarLocationPath());\n}\n"
|
"public void deleteTracks(List<String> streamIds) {\n updateLock.lock();\n try {\n ContiguousBlockList blockList = new ContiguousBlockList();\n for (String sid : streamIds) {\n Integer delIdx = trackIndices.remove(sid);\n if (delIdx != null)\n blockList.add(delId... |
"private Map<String, List<String>> parseRequestHeaders(final Scanner scanner) throws BatchException {\n Map<String, List<String>> headers = new HashMap<String, List<String>>();\n while (scanner.hasNext() && !scanner.hasNext(REG_EX_BLANK_LINE)) {\n if (scanner.hasNext(REG_EX_HEADER)) {\n scanner.... |
"private void populateSortedFactRows(StopSign stopSign) throws IOException, DataException {\n prepareSortedStacks();\n int measureCount = dataSet4Aggregation.getMetaInfo().getMeasureInfos().length;\n int factRowCount = 0;\n if (this.aggregationRow == null) {\n this.aggregationRow = new Row4Aggregatio... |
"public static Collection<Object[]> data() {\n String dir_good = ClassLoader.getSystemResource(GoodTest.GOOD_ROOT).getFile();\n String dir_bad = ClassLoader.getSystemResource(BadTest.BAD_ROOT).getFile();\n List<Object[]> result = new LinkedList<>();\n result.addAll(Harness.makeTests(GOOD_TEST, dir_good));\n... |
"private void recordOutcomeVariables(UserTestSession candidateSession, AbstractResult resultNode) {\n for (final ItemVariable itemVariable : resultNode.getItemVariables()) {\n if (itemVariable instanceof OutcomeVariable) {\n OutcomeVariable outcomeVariable = (OutcomeVariable) itemVariable;\n ... |
"public void restoreDatabase(String databaseName, String prepackagedName) {\n final File dbPath = FlowManager.getContext().getDatabasePath(databaseName);\n if (dbPath.exists()) {\n return;\n }\n dbPath.getParentFile().mkdirs();\n try {\n File existingDb = FlowManager.getContext().getDatabas... |
"private List<URI> getURIs(DeploymentContext context) {\n List<URI> uris = new ArrayList<URI>();\n uris.add(context.getSource().getURI());\n try {\n File f = new File(context.getSource().getURI());\n if (f.exists() && f.isDirectory()) {\n uris.add(new URI(context.getSource().getURI().t... |
"private void drawXLabels(float yPos) {\n float[] position = new float[] { 0f, 0f };\n for (int i = 0; i < mCurrentData.getXValCount(); i += mXLabels.mXAxisLabelModulus) {\n position[0] = i;\n if (mXLabels.isCenterXLabelsEnabled())\n position[0] += 0.5f;\n transformPointArray(posit... |
"private List<byte[]> mergeEstimators(HyperLogLogPlus other) {\n other.mergeTmp();\n mergeTmp();\n List<byte[]> set = sparseSet;\n List<byte[]> tmp = other.sparseSet;\n List<byte[]> newSet = new ArrayList<byte[]>();\n Map<Integer, Integer> indexMap = new HashMap<Integer, Integer>();\n int seti = 0;... |
"public void testUseCache1() throws BirtException, Exception {\n this.dataSet.setCacheRowCount(100);\n myDataEngine = newDataEngine();\n assertFalse(getDataSetCacheManager(myDataEngine).doesLoadFromCache());\n assertFalse(getDataSetCacheManager(myDataEngine).doesSaveToCache());\n executeQuery(myDataEngin... |
"public void siegfriedCorporaTestAIP() throws RODAException, ParseException, FileAlreadyExistsException, InterruptedException, IOException {\n AIP root = model.createAIP(null, RodaConstants.AIP_TYPE_MIXED, new Permissions(), aipCreator);\n TransferredResource transferredResource = createCorpora();\n AssertJUni... |
"public LttngEventContent getContent() {\n return (LttngEventContent) super.getContent();\n}\n"
|
"public void testAuthorityParsing() throws Exception {\n final Account account = new Account(\"String_Node_Str\", \"String_Node_Str\");\n final String authority1 = \"String_Node_Str\";\n final String authority2 = \"String_Node_Str\";\n final String authority3 = \"String_Node_Str\";\n final Bundle extras ... |
"private Properties convertToProperties(final HiberSap hiberSapConfig) {\n final Properties properties = new Properties();\n final SessionFactory sessionFactory = hiberSapConfig.getSessionFactory();\n properties.setProperty(Environment.SESSION_FACTORY_NAME, sessionFactory.getName());\n properties.setPropert... |
"public String applySqlInlined(String sql, boolean isSubquery, Integer limit, Integer offset) {\n if (limit == null && offset == null) {\n return sql;\n }\n StringBuilder sb = new StringBuilder(sql.length() + length);\n sb.append(sql);\n if (limitIncludesOffset() && offset != null && limit != null... |
"public void testHDFSBlob() throws Exception {\n expect(mockConnection.getBlobStore()).andReturn(mockStore).times(3);\n expect(mockStore.getId()).andReturn(blobStoreUri).times(2);\n replay(mockConnection, mockFs, mockStore);\n HDFSBlob b = new HDFSBlob(blobUri, mockConnection);\n assertNotNull(b);\n}\n"
|
"synchronized public void jobStateChange(StateEvent event) {\n synchronized (states) {\n states.add(event.getState());\n states.notifyAll();\n }\n}\n"
|
"private ThrowStatement throwStatement() throws IOException {\n if (currentToken != Token.THROW)\n codeBug();\n consumeToken();\n int pos = ts.tokenBeg, lineno = ts.lineno;\n if (peekTokenOrEOL() == Token.EOL) {\n reportError(\"String_Node_Str\");\n }\n AstNode expr = expr();\n ThrowS... |
"public void queryUser(StartupQuery query) throws InterruptedException {\n if (query.getResult() == null) {\n FMLLog.warning(\"String_Node_Str\", query.getText());\n query.finish();\n } else {\n String text = query.getText() + \"String_Node_Str\" + \"String_Node_Str\";\n FMLLog.warning... |
"public void setParameter(int sourceStateIndex, int destStateIndex, int featureIndex, double value) {\n weightsValueChanged();\n State source = (State) getState(sourceStateIndex);\n State dest = (State) getState(destStateIndex);\n int rowIndex;\n for (rowIndex = 0; rowIndex < source.destinationNames.leng... |
"public void run() {\n int ret = wizard.showModalDialog();\n System.out.println(\"String_Node_Str\");\n System.exit(0);\n}\n"
|
"protected JobInfo newJobInfo(JobInfo jobInfo) {\n JobInfo newJobInfo = new JobInfo(jobInfo.getJobId(), jobInfo.getContextName(), jobInfo.getJobVersion());\n newJobInfo.setJobName(jobInfo.getJobName());\n newJobInfo.setApplyContextToChildren(jobInfo.isApplyContextToChildren());\n newJobInfo.setContext(jobIn... |
"public void performSelectedWindowEventsRequest(TmfExperiment<LttngEvent> experiment) {\n HistogramSelectedWindow curSelectedWindow = fullExperimentCanvas.getCurrentWindow();\n if (curSelectedWindow == null) {\n fullExperimentCanvas.createNewSelectedWindow(DEFAULT_WINDOW_SIZE);\n curSelectedWindow =... |
"public void init() throws ServletException {\n super.init();\n prepareToInit();\n if (injector == null) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n schedulerConfig = injector.getSchedulerConfig();\n StringBuilder sb = new StringBuilder();\n if (schedulerConfig.enableInvo... |
"private static Collection<String> getScribbleFilePaths(String dir) {\n List<String> res = new LinkedList<>();\n for (File f : getAllScrFilesUnderDirectory(dir)) {\n res.add(f.getAbsolutePath().toString());\n }\n return res;\n}\n"
|
"private void setupEncoderSubscriber() {\n new Subscriber(\"String_Node_Str\", NodeChannel.ENCODER.getMsgPath(), ((topicName, m) -> {\n long currentTime = new Date().getTime();\n long dt = currentTime - lastEncoderTime;\n if (dt < 10) {\n return;\n }\n EncoderMeasurement... |
"protected void createContentsVirtically() {\n content.setLayout(UIUtil.createGridLayoutWithoutMargin());\n Composite topContainer = new Composite(content, SWT.NONE);\n topContainer.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n topContainer.setLayout(new GridLayout(2, false));\n FormWidgetFact... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.