content stringlengths 40 137k |
|---|
"public String[] getExcludedCommitMessagesNormalized() {\n return (excludedCommitMessages == null || excludedCommitMessages.trim().equals(\"String_Node_Str\")) ? new String[0] : excludedCommitMessages.split(\"String_Node_Str\");\n}\n"
|
"private int getPriority(IConfigurationElement configElement, String warning, String protocol) {\n final String priorityString = configElement.getAttribute(PRIORITY_ATTR);\n int priority = DEFAULT_PRIORITY;\n if (priorityString != null) {\n try {\n priority = new Integer(priorityString).intVa... |
"private static Object toValue(String value) {\n if (value.equals(\"String_Node_Str\") || value.equals(\"String_Node_Str\")) {\n return Boolean.valueOf(value);\n } else if (value.length() > 0 && StringUtils.isNumeric(value)) {\n return Integer.valueOf(value);\n } else if (value.startsWith(\"Strin... |
"public void testGetChampions() throws Exception {\n try {\n handler.getChampions(ChampData.ALL);\n } catch (RequestException ex) {\n System.out.println(\"String_Node_Str\");\n ex.printStackTrace();\n }\n}\n"
|
"public static WebArchive deploy() {\n return ShrinkWrap.create(WebArchive.class, \"String_Node_Str\").addPackage(JsfMessageBackingBean.class.getPackage()).addAsResource(\"String_Node_Str\").addAsResource(\"String_Node_Str\").addAsLibraries(ArchiveUtils.getDeltaSpikeCoreAndJsfArchive()).addAsWebInfResource(\"String_... |
"protected void enqueueOperation(int stageOp, Object[] args, OSDRequest request, Object callback) {\n if (!q.offer(new StageRequest(stageOp, args, request, callback))) {\n if (request != null) {\n Logging.logMessage(Logging.LEVEL_WARN, this, \"String_Node_Str\", request.getRequestId(), request.getF... |
"public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException {\n int rKwInspectreport = 0;\n String FS;\n if (!launcher.isUnix()) {\n FS = \"String_Node_Str\";\n } else {\n FS = \"String_Node_Str\";\n }\n if (kloCo... |
"public Object getAdapter(Class targetAdapterClass, Object objectToAdapt) {\n IComponent returnvalue = null;\n if (targetAdapterClass.isAssignableFrom(IComponent.class)) {\n returnvalue = getComponentAdapter(objectToAdapt);\n }\n if (returnvalue == null && targetAdapterClass.isAssignableFrom(IContain... |
"private void preparModuleInit() {\n SalesforceSchemaConnection connection = temConnection;\n endPoint = connection.getWebServiceUrl();\n username = connection.getUserName();\n pwd = connection.getPassword();\n batchSize = connection.getBatchSize();\n timeOut = connection.getTimeOut();\n useHttpPro... |
"public static void setSystemProcess() {\n try {\n ActivityManagerService m = mSelf;\n ServiceManager.addService(\"String_Node_Str\", m);\n ServiceManager.addService(\"String_Node_Str\", new MemBinder(m));\n if (MONITOR_CPU_USAGE) {\n ServiceManager.addService(\"String_Node_Str... |
"public void testUseCache1() throws BirtException, Exception {\n this.dataSet.setCacheRowCount(100);\n DataEngineImpl myDataEngine = newDataEngine();\n assertFalse(getDataSetCacheManager(myDataEngine).doesLoadFromCache());\n assertFalse(getDataSetCacheManager(myDataEngine).doesSaveToCache());\n executeQu... |
"private List<SourceFile> createExternInputs(List<String> files) throws FlagUsageException, IOException {\n if (files.isEmpty()) {\n return ImmutableList.of(SourceFile.fromCode(\"String_Node_Str\", \"String_Node_Str\"));\n }\n try {\n return createInputs(externFiles, false);\n } catch (FlagUsa... |
"public static CellList getWFSChildren(String root, String canonicalName) {\n try {\n URL url = getURL(WFS_PREFIX + root + \"String_Node_Str\" + canonicalName);\n return CellList.decode(canonicalName, url.openStream());\n } catch (java.lang.Exception excp) {\n return null;\n }\n}\n"
|
"public String viewSystems() {\n Long userId = AuthUtil.getUserId(servletRequest.getSession());\n String userType = AuthUtil.getUserType(servletRequest.getSession());\n List<String> ec2RegionList = EC2KeyDB.getEC2Regions();\n List<String> instanceIdList = new ArrayList<String>();\n if (sortedSet.getFilte... |
"private Map<String, Map<String, ClusterDataHolder>> parseLeafLevelSubscriptions(String appId, int tenantId, String key, String groupName, List<CartridgeContext> cartridgeContextList, Set<StartupOrder> dependencyOrder) throws ApplicationDefinitionException, CartridgeNotFoundException {\n Map<String, Map<String, Clus... |
"private FlowScope narrowScope(FlowScope scope, Node node, JSType narrowed) {\n scope = scope.createChildFlowScope();\n if (node.getType() == Token.GETPROP) {\n scope.inferQualifiedSlot(node.getQualifiedName(), getJSType(node), narrowed);\n } else {\n redeclareSimpleVar(scope, node, narrowed);\n ... |
"private void applyHeight(State state) {\n boolean expanded = !state.forceCollapsed && (state.isKeyguardShowingAndNotOccluded() || state.statusBarExpanded || state.keyguardFadingAway || state.bouncerShowing || state.headsUpShowing);\n if (expanded) {\n mLpChanged.height = ViewGroup.LayoutParams.MATCH_PAREN... |
"Transaction suspendOtherAndResumeThis(SlaveContext txId) {\n try {\n TransactionManager txManager = graphDbConfig.getTxModule().getTxManager();\n Transaction otherTx = txManager.getTransaction();\n Transaction transaction = getTx(txId);\n if (otherTx != null && otherTx == transaction) {\... |
"public static boolean generate() {\n OS os = OS.getOS();\n String path = os.getCUDALib();\n if (path == null) {\n System.out.println(\"String_Node_Str\");\n return false;\n }\n CUDA cudalib = null;\n try {\n cudalib = (CUDA) Native.loadLibrary(path, CUDA.class);\n } catch (jav... |
"public void testCheckItem() throws Exception {\n ImportBasicHandler basicHandler = new ImportBasicHandler();\n ImportItem ImportItem = new ImportItem(processPropPath1);\n ImportItem.setItemName(processPropPath1.lastSegment());\n Property property = mock(Property.class);\n itemRecord.setProperty(property... |
"public void testReadMissing_TempIndex() throws Exception {\n final File idx = new File(db.getDirectory(), \"String_Node_Str\");\n assertFalse(idx.exists());\n final DirCache dc = DirCache.read(idx, db.getFS());\n assertNotNull(dc);\n assertEquals(0, dc.getEntryCount());\n}\n"
|
"public void initialize(MibLoaderLog log) throws MibException {\n if (type != null) {\n try {\n type = type.initialize(this, log);\n } catch (MibException e) {\n log.addError(e.getLocation(), e.getMessage());\n type = null;\n }\n }\n}\n"
|
"private NamedObj _createEntity(String className, String entityName, String source) throws Exception {\n if ((_current != null) && !(_current instanceof CompositeEntity)) {\n throw new XmlException(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + _current + \"String_Node_Str\", _currentExtern... |
"public boolean inQueryContext() {\n return hasScope() && getScope().getQueries().size() > 0;\n}\n"
|
"public boolean performFinish() {\n boolean formIsPerformed;\n if (ldifFileWizardPage3 == null) {\n formIsPerformed = ldifFileWizardPage2.isPageComplete();\n } else {\n formIsPerformed = ldifFileWizardPage3.isPageComplete();\n }\n if (formIsPerformed) {\n IProxyRepositoryFactory fact... |
"public void doAction(Side to) {\n if (this.getNetmask() == 8) {\n UpdaterPassStationEvent event = new UpdaterPassStationEvent(this, this.getSignAddress());\n Bukkit.getServer().getPluginManager().callEvent(event);\n }\n if (this.getStart().empty() ^ this.getEnd().empty())\n return;\n i... |
"public static int[] createTable(ITableContent table, int tableWidth) {\n int columnCount = table.getColumnCount();\n int[] columns = new int[columnCount];\n int unassignedCount = 0;\n int totalAssigned = 0;\n for (int i = 0; i < columnCount; i++) {\n DimensionType value = table.getColumn(i).getWi... |
"public TypeComparator<T> duplicate() {\n return new TupleLeadingFieldComparator<T, K>(comparator.duplicate());\n}\n"
|
"public synchronized boolean isVideoWithinH264LevelLimits(InputFile f, RendererConfiguration mediaRenderer) {\n if (!h264_parsed) {\n if (isH264()) {\n if (getContainer() != null && (getContainer().equals(\"String_Node_Str\") || getContainer().equals(\"String_Node_Str\") || getContainer().equals(\"... |
"private void doRun() {\n while (true) {\n Packet task;\n try {\n task = workQueue.take();\n } catch (InterruptedException e) {\n if (isShutdown) {\n return;\n }\n continue;\n }\n if (isShutdown) {\n return;\n ... |
"private File getMetaCacheFile() {\n File file = new File(context.getTmpdir() + CACHED_FILE_PREFIX + queryResultID + \"String_Node_Str\");\n return file;\n}\n"
|
"protected void generateMethodImplementation(String className, int access, String name, String desc, String signature, String[] exceptions) {\n if (signature != null && mockedTypeInfo != null) {\n signature = mockedTypeInfo.genericTypeMap.resolveSignature(className, signature);\n }\n mw = cw.visitMethod... |
"public boolean shouldOverrideUrlLoading(WebView view, String url) {\n Log.d(\"String_Node_Str\", \"String_Node_Str\" + url);\n boolean completed = false;\n if (url.contains(PaymentArguments.EXT_AUTH_SUCCESS_URI)) {\n completed = true;\n webView.setVisibility(View.GONE);\n proceed();\n ... |
"public List<MappableItem> getTargetItems() {\n List<MappableItem> list = new ArrayList<MappableItem>();\n for (MappableItem item : cdmItems) list.add(item);\n return list;\n}\n"
|
"private static boolean doExecuteUpdates(final List<UpdateResult> results, final boolean updateAllJobs) {\n if (results == null || results.isEmpty()) {\n return false;\n }\n try {\n IWorkspaceRunnable op = new IWorkspaceRunnable() {\n public void run(IProgressMonitor monitor) throws Co... |
"public void run() {\n Map<String, byte[]> map = hazelcast.getMap(\"String_Node_Str\");\n while (running) {\n try {\n int key = (int) (Math.random() * entryCount);\n int operation = random(10);\n if (operation < 4) {\n map.put(String.valueOf(key), new byte[va... |
"private boolean memoryHeuristic(long idleMillis) {\n if (idleMillis < FIVE_MIN_MILLIS) {\n return true;\n }\n ProcMeminfoParser memInfo = null;\n try {\n memInfo = new ProcMeminfoParser();\n } catch (IOException e) {\n log.info(\"String_Node_Str\" + e);\n return true;\n }\... |
"public void old_mode_nrtm_test() {\n given(OLD_MODE, OBJ_EXISTS_WITH_CHANGED).when(NRTM___, EVENT_, NOT_APPLIC__).then(SUCCESS, OBJ_EXISTS_WITH_CHANGED).run();\n given(OLD_MODE, OBJ_EXISTS_NO_CHANGED__).when(NRTM___, EVENT_, NOT_APPLIC__).then(SUCCESS, OBJ_EXISTS_NO_CHANGED__).run();\n}\n"
|
"private void eatFuel() {\n ItemStack is = getStackInSlot(0);\n if (is != null) {\n int newBurnTime = TileEntityFurnace.getItemBurnTime(is);\n if (newBurnTime > 0 && is.stackSize > 0) {\n burnTime += newBurnTime;\n maxBurnTime = burnTime;\n is.stackSize--;\n ... |
"protected Collection<IdeDependency> getDependencies(IdeDependency[] ideDependencies) throws MojoExecutionException {\n List<IdeDependency> dependencies = new ArrayList<IdeDependency>(Arrays.asList(ideDependencies));\n List<IdeDependency> extraRbs = resolveResourceBundles(dependencies);\n for (IdeDependency id... |
"public V getAndReplace(K key, V value) {\n ensureOpen();\n if (value == null) {\n throw new NullPointerException(\"String_Node_Str\" + key);\n }\n long now = System.currentTimeMillis();\n V result;\n lockManager.lock(key);\n try {\n Object internalKey = keyConverter.toInternal(key);\... |
"public void run() {\n MapService mapService = getService();\n if (mapService.getMapContainer(mapName).isNearCacheEnabled()) {\n mapService.invalidateNearCache(mapName, key);\n } else {\n getLogger().warning(\"String_Node_Str\" + mapName + \"String_Node_Str\");\n }\n}\n"
|
"public int getNumberOfCoveredSegments() {\n if (noBranchesYet()) {\n return executionCount > 0 ? 1 : 0;\n }\n return getSegmentsCovered();\n}\n"
|
"public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n if (cause instanceof WriteTimeoutException) {\n }\n this.oneNetClientContext.closeDirectly(clientSession);\n ctx.close();\n}\n"
|
"public void modifyText(ModifyEvent e) {\n displayNameKey = tx.getText().trim();\n validateSyntax();\n}\n"
|
"public final void setResponse(Response response, MediaType contentType) {\n responseSet = true;\n if (contentType == null)\n contentType = APPLICATION_OCTET_STREAM;\n response = (response != null) ? response : Responses.noContent().build();\n this.status = response.getStatus();\n this.entity = re... |
"private List<Map<Integer, RegexpMatchingIndicator>> organizeTableInput() {\n List<Map<Integer, RegexpMatchingIndicator>> returnList = new ArrayList<Map<Integer, RegexpMatchingIndicator>>();\n AllMatchIndicatorImpl allMatchIndicator = this.selectPatternsWizard.getAllMatchIndicator();\n if (allMatchIndicator ==... |
"private VMTemplateVO createTemplateOrIso(long userId, Long accountId, Long zoneId, String name, String displayText, boolean isPublic, boolean featured, boolean isExtractable, String format, String diskType, String url, String chksum, boolean requiresHvm, int bits, boolean enablePassword, long guestOSId, boolean bootab... |
"private void parse(Tree tree) throws SAXException {\n if (tree == null) {\n return;\n }\n switch(tree.getType()) {\n case JSONLexer.PAIR:\n {\n Tree valueTree = tree.getChild(1);\n if (valueTree.getType() == JSONLexer.ARRAY) {\n parse(v... |
"public ResourceLimitResponse createResourceLimitResponse(ResourceLimit limit) {\n ResourceLimitResponse resourceLimitResponse = new ResourceLimitResponse();\n if (limit.getResourceOwnerType() == ResourceOwnerType.Domain) {\n populateDomain(resourceLimitResponse, limit.getOwnerId());\n } else if (limit.... |
"protected void prepareBarHighlight(float x, float y1, float y2, float barWidthHalf, Transformer trans) {\n float top = x - barWidthHalf;\n float bottom = x + barWidthHalf;\n float left = y1;\n float right = y2;\n mBarRect.set(left, top, right, bottom);\n trans.rectToPixelPhaseHorizontal(mBarRect, mAn... |
"protected final boolean match(IElementType type, String error) {\n final boolean matched = !isEof() && tokenType() == type;\n if (matched) {\n advanceLexer();\n } else {\n error(error);\n }\n return match;\n}\n"
|
"public PrivateKey loadPrivateKey(String filePath) throws IllegalActionException {\n if (!filePath.endsWith(\"String_Node_Str\")) {\n throw new IllegalArgumentException(\"String_Node_Str\" + filePath);\n }\n PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(_readBinaryFile(filePath));\n KeyFactor... |
"public boolean approveReview(String id, ApproveState state, String description) throws Exception {\n if (id == null || id.isEmpty()) {\n p4.log(\"String_Node_Str\");\n return false;\n }\n if (\"String_Node_Str\".equalsIgnoreCase(id)) {\n p4.log(\"String_Node_Str\");\n return false;... |
"public Perspective getStratification() {\n return clinical.getRecordPerspective();\n}\n"
|
"public void readFromNBT(NBTTagCompound nbttagcompound) {\n super.readFromNBT(nbttagcompound);\n if (nbttagcompound.hasKey(\"String_Node_Str\")) {\n fluidType = FluidStack.loadFluidStackFromNBT(nbttagcompound.getCompoundTag(\"String_Node_Str\"));\n } else {\n fluidType = null;\n }\n for (Fo... |
"private HttpResponseEntity executeInternal(String baseUrl, HttpRequestEntity requestEntity) throws ArangoException, SocketException {\n String url = buildUrl(baseUrl, requestEntity);\n if (logger.isDebugEnabled()) {\n if (requestEntity.type == RequestType.POST || requestEntity.type == RequestType.PUT || r... |
"public MrGeoRaster applyColorScale(final MrGeoRaster raster, ColorScale colorScale, final double[] extrema, final double[] defaultValues, final double[][] quantiles) throws ColorScale.ColorScaleException {\n try {\n MrGeoRaster colored = MrGeoRaster.createEmptyRaster(raster.width(), raster.height(), getBands... |
"public String getAlphaSortKey() {\n String name = element.getName();\n return name != null ? name : \"String_Node_Str\";\n}\n"
|
"public static SerializableImage frameToImageGet(Timeline timeline, int frame, int time, DepthState stateUnderCursor, int mouseButton, RECT displayRect, Matrix transformation, ColorTransform colorTransform, Color backGroundColor, boolean useCache, double zoom) {\n String key = \"String_Node_Str\" + frame + \"String_... |
"public List<Package> fillSchemas(Connection dbConn, DatabaseMetaData dbJDBCMetadata, IMetadataConnection metaConnection, List<String> schemaFilter) {\n List<Schema> returnSchemas = new ArrayList<Schema>();\n if (dbJDBCMetadata == null || (dbConn != null && ConnectionHelper.getCatalogs(dbConn).size() > 0) || Conn... |
"private void scanZipEntry(ZipEntry zipEntry, ZipFile zipFile, ZipInputStream zipInputStream) throws IOException {\n LOGGER.debug(\"String_Node_Str\" + zipEntry.getName());\n if (!zipEntry.isDirectory()) {\n String path = zipEntry.getName();\n if (path.endsWith(\"String_Node_Str\") || path.endsWith(... |
"public GetBucketTaggingResponseType getBucketTagging(GetBucketTaggingType request) throws S3Exception {\n GetBucketTaggingResponseType reply = (GetBucketTaggingResponseType) request.getReply();\n Bucket bucket = getBucketAndCheckAuthorization(request);\n try {\n TaggingConfiguration tagging = new Taggi... |
"public void draw(Canvas canvas, float posx, float posy) {\n posx += getXOffset(posx);\n posy += getYOffset(posy);\n canvas.translate(posx, posy);\n draw(canvas);\n canvas.translate(-posx, -posy);\n}\n"
|
"public void updatePostSettings() {\n if (!isAdded() || mPost == null) {\n return;\n }\n String password = EditTextUtils.getText(mPasswordEditText);\n String pubDate = EditTextUtils.getText(mPubDateText);\n String excerpt = EditTextUtils.getText(mExcerptEditText);\n long pubDateTimestamp = 0;\n... |
"private static String createStandardNumber(Object input) {\n return NumberFormat.getInstance(Locale.US).format(input);\n}\n"
|
"public Throwable esToCrateException(Throwable e) {\n e = Exceptions.unwrap(e);\n if (e instanceof IllegalArgumentException || e instanceof ParsingException) {\n return new SQLParseException(e.getMessage(), (Exception) e);\n } else if (e instanceof UnsupportedOperationException) {\n return new Un... |
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) {\n SAXFragmentBuilder builder = unmarshalRecord.getFragmentBuilder();\n Object value = builder.getNodes().pop();\n unmarshalRecord.addAttributeValue(this, value);\n}\n"
|
"private boolean getMessage() {\n if (!acquireReadBuffer()) {\n return false;\n }\n try {\n buffer.limit(17);\n int read = connection.read();\n if (read == 17) {\n buffer.flip();\n byte request = buffer.get();\n if (request != HeaderConstants.OFFER_L... |
"public Reader getDataStream() {\n try {\n ZipEntry xmlMetaDataEntry = null;\n Enumeration entries = zipFile.entries();\n while (entries.hasMoreElements()) {\n ZipEntry entry = (ZipEntry) entries.nextElement();\n if (!entry.isDirectory()) {\n if (entry.getNam... |
"public void renderEquipped(ItemStack item, RenderBlocks render, EntityLivingBase entity, ItemRenderType type) {\n super.renderEquipped(item, render, entity, type);\n if (entity instanceof EntityPlayer) {\n EntityPlayer player = (EntityPlayer) entity;\n if (player.getCurrentEquippedItem() == item) {... |
"public SAFA<P, S, E> negate(BooleanAlgebra<P, S> ba, BooleanExpressionFactory<E> boolexpr) {\n class DeMorgan extends BooleanExpressionFactory<E> {\n public DeMorgan() {\n }\n public E MkAnd(E p, E q) {\n return boolexpr.MkOr(p, q);\n }\n public E MkOr(E p, E q) {\n ... |
"public static StoreFactoryFamilySpi findStoreFamily(final Map<String, String> configOptions) {\n final Object storeHint = configOptions.get(STORE_HINT_KEY);\n if (storeHint != null) {\n final StoreFactoryFamilySpi factory = factories.get(storeHint.toString());\n if (factory != null) {\n ... |
"public static RemoteStorageTileEntity getRemoteStorage(World world, int id) {\n RemoteStorageIdRegistry registry = RemoteStorageIdRegistry.getRegistry(world);\n if (registry == null) {\n return null;\n }\n GlobalCoordinate coordinate = registry.getStorage(id);\n if (coordinate == null) {\n ... |
"private void doSubscribe() throws Exception, JMSException {\n MqttClient mqttClient = MQTTConnector.getMQTTSubClient(Util.getRandomString(5));\n try {\n mqttClient.connect();\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + topicName + \"String_Node_Str\" + mqttClient.getS... |
"public void visitFreeForm(FreeFormHandle handle) {\n FreeFormItemDesign container = new FreeFormItemDesign();\n setupReportItem(container, handle);\n SlotHandle slot = handle.getReportItems();\n for (int i = 0; i < slot.getCount(); i++) {\n apply(slot.get(i));\n if (currentElement != null) {\... |
"public void doDraw(long elapsed, Canvas canvas) {\n canvas.drawColor(Color.BLACK);\n synchronized (mSprites) {\n for (Sprite sprite : mSprites) {\n sprite.doDraw(canvas);\n }\n }\n canvas.drawText(\"String_Node_Str\" + Math.round(1000f / elapsed) + \"String_Node_Str\" + mElementNum... |
"public void bindItemView(MenuItemImpl item, MenuView.ItemView itemView) {\n itemView.initialize(item, 0);\n final ActionMenuView menuView = (ActionMenuView) mMenuView;\n final ActionMenuItemView actionItemView = (ActionMenuItemView) itemView;\n actionItemView.setItemInvoker(menuView);\n}\n"
|
"public int compareTo(final GenomicInterval e) {\n if (e == null) {\n return -1;\n }\n if (!getChromosome().equals(e.getChromosome())) {\n return getChromosome().compareTo(e.getChromosome());\n }\n final int startComp = Integer.compare(this.start, e.getStart());\n if (startComp != 0) {\n... |
"public static void write(String str, DataOutputStream stream) throws IOException {\n if (str == null) {\n stream.writeInt(-1);\n } else {\n byte[] data = str.getBytes(\"String_Node_Str\");\n stream.writeInt(data.length);\n stream.write(data);\n }\n}\n"
|
"public void before() throws Exception {\n databaseHelper.addObject(MNTNER);\n databaseHelper.addObjectToSource(\"String_Node_Str\", MNTNER);\n databaseHelper.addObjectToSource(\"String_Node_Str\", MNTNER);\n databaseHelper.addObjectToSource(\"String_Node_Str\", MNTNER);\n nrtmServer.start();\n System... |
"private InputAttemptIdentifier[] copyMapOutput(MapHost host, DataInputStream input) {\n MapOutput mapOutput = null;\n InputAttemptIdentifier srcAttemptId = null;\n long decompressedLength = -1;\n long compressedLength = -1;\n try {\n long startTime = System.currentTimeMillis();\n int forRe... |
"private void tryCreateConnection(String driverClassName, String connectionString, String userId, String password) throws SQLException, OdaException {\n Connection testConn = this.getConnection(driverClassName, connectionString, userId, password, null);\n assert (testConn != null);\n closeConnection(testConn);... |
"public void movePrepackagedDB(String databaseName, String prepackagedName) {\n final File dbPath = FlowManager.getContext().getDatabasePath(databaseName);\n if (dbPath.exists() && (!getDatabaseDefinition().areConsistencyChecksEnabled() || (getDatabaseDefinition().areConsistencyChecksEnabled() && isDatabaseIntegr... |
"public URL getResource(String name) {\n return resourceAcceptor.apply(name) ? super.getResource(name) : null;\n}\n"
|
"private void filterResources() throws MojoExecutionException {\n try {\n MavenResourcesExecution execution = new MavenResourcesExecution(getResources(), getFilteredAppDirectory(), project, encoding, filters, Collections.EMPTY_LIST, session);\n execution.setEscapeWindowsPaths(escapeWindowsPaths);\n ... |
"public static boolean isValid(BlockPos offset) {\n if (offset.getX() < 0 || offset.getX() >= 16)\n return false;\n if (offset.getY() < 0 | offset.getY() >= 16)\n return false;\n if (offset.getZ() < 0 | offset.getZ() >= 16)\n return false;\n return true;\n}\n"
|
"private void flushMergedElementsBefore(String moduleElement) {\n if (options.isMerge() && context.size() == 1 && \"String_Node_Str\".equals(context.peek()) && !(mergedConfigurations && mergedDependencies)) {\n int position = moduleElement == null ? MODULE_ELEMENTS.size() : MODULE_ELEMENTS.indexOf(moduleEleme... |
"public ApiRequest deleteBlueprint(String blueprintName) throws AmbariApiException {\n logger.info(\"String_Node_Str\" + blueprintName);\n Response response = apiResourceRootV1.getBlueprintsResource().deleteBlueprint(blueprintName);\n handleAmbariResponse(response);\n return true;\n}\n"
|
"public V getAndPut(K key, V value) {\n checkStatusStarted();\n if (value == null) {\n throw new NullPointerException(\"String_Node_Str\" + key);\n }\n long start = statisticsEnabled() ? System.nanoTime() : 0;\n long now = System.currentTimeMillis();\n V result;\n lockManager.lock(key);\n ... |
"public void postAcquireConnection(SessionEvent event) {\n Connection conn = ((DatabaseAccessor) event.getResult()).getConnection();\n Statement stmt1 = null;\n Statement stmt2 = null;\n ResultSet result = null;\n Integer isolationLevel;\n try {\n stmt1 = conn.createStatement();\n result... |
"private boolean grade4Red() {\n ColorWheel.removeAllColors();\n quiz.question4();\n return Colors.Reds.Red.equals(getSafeColor());\n}\n"
|
"void parseResponse(JSONObject response) throws JSONException {\n ReferrersModel model = new ReferrersModel(123456, response);\n assertEquals(model.getTotalViews(), 2161);\n assertEquals(model.getOtherViews(), 938);\n assertNotNull(model.getGroups());\n assertEquals(model.getGroups().size(), 10);\n Re... |
"private void updateLockedSlots(ItemStack stack) {\n SkinPointer skinPointer = SkinNBTHelper.getSkinPointerFromStack(stack);\n ISkinDye dye = skinPointer.getSkinDye();\n for (int i = 0; i < 8; i++) {\n if (dye.haveDyeInSlot(i)) {\n ModLogger.log(\"String_Node_Str\" + i);\n ((SlotDy... |
"public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n final Ipam that = (Ipam) o;\n return Objects.equals(this.driver, that.driver) && Objects.equals(this.config, that.config);\n}\n"
|
"public void testJoin() throws Exception {\n final String expected = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n AsOfJoinRecordSource sou... |
"public void onSame(String id) {\n try {\n String transactions = getString(\"String_Node_Str\");\n if (transactions.isEmpty()) {\n downloadTransactions(new Call() {\n public void onDone(JSONObject o) {\n try {\n ListView l = findViewBy... |
"protected OperationRequestAddress getAddress(CommandContext ctx) throws CommandFormatException {\n final ParsedCommandLine args = ctx.getParsedCommandLine();\n final OperationRequestAddress address;\n if (node.isPresent(args) && node.isValueComplete(args)) {\n address = new DefaultOperationRequestAddre... |
"public boolean uninit() {\n if (sessions != null && sessions.isEmpty()) {\n for (Map.Entry<String, JireconSession> e : sessions.entrySet()) {\n e.getValue().terminateSession();\n }\n }\n disconnect();\n LibJitsi.stop();\n}\n"
|
"public Schema getSchema() {\n return this.xmlBinder.getSchema();\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.