content stringlengths 40 137k |
|---|
"public void sendChangeStatusBarIntent(Activity activity) {\n int backgroundtype = 0;\n int color = Color.BLACK;\n String path = null;\n boolean colorHandled = false;\n boolean isdark = false;\n boolean darkHandled = false;\n WindowType type = Utils.getWindowType(activity);\n switch(type) {\n ... |
"public void disposeClient() {\n myNames.clear();\n users.clear();\n if (teamChat != null) {\n final ChatWindow chatWindow = teamChat.chatWindow;\n if (chatWindow != null && !Display.getDefault().isDisposed()) {\n Display.getDefault().syncExec(new Runnable() {\npublic void run() {\n ... |
"public boolean requireUpdate() {\n if (graph == null) {\n GraphModel graphModel = controller.getModel();\n if (graphModel != null) {\n graph = graphModel.getHierarchicalGraphVisible();\n }\n }\n if (graph != null) {\n if (graph.getGraphModel().getVisibleView().getViewId(... |
"private void aggregateHostSampleChunks(final List<TimelineTimes> timelineTimesChunks, final int aggregationLevel) {\n final TimelineTimes firstTimesChunk = timelineTimesChunks.get(0);\n final TimelineTimes lastTimesChunk = timelineTimesChunks.get(timelineTimesChunks.size() - 1);\n final int hostId = firstTime... |
"private void performFileActions() {\n try {\n File userHome = new File(System.getProperty(\"String_Node_Str\"));\n File loboHome = new File(userHome, \"String_Node_Str\");\n File cacheHome = new File(loboHome, \"String_Node_Str\");\n this.deleteDecorationFiles(cacheHome);\n } catch (E... |
"protected void handleLimeACKMessage(LimeACKVendorMessage ack, InetSocketAddress addr) {\n GUID.TimedGUID refGUID = new GUID.TimedGUID(new GUID(ack.getGUID()), TIMED_GUID_LIFETIME);\n QueryResponseBundle bundle = _outOfBandReplies.remove(refGUID);\n if ((bundle != null) && (ack.getNumResults() > 0)) {\n ... |
"public void testEJBAppSecurity10() throws Exception {\n Log.info(logClass, getCurrentTestName(), \"String_Node_Str\" + getCurrentTestName());\n Log.info(logClass, getCurrentTestName(), \"String_Node_Str\");\n WCApplicationHelper.createWar(myServer, TEMP_DIR, EJB_WAR_NAME, true, EJB_BEAN_JAR_NAME, true, \"Stri... |
"private void buildProcess() {\n process = new Process(property);\n process.getContextManager().getListContext().addAll(node.getProcess().getContextManager().getListContext());\n process.getContextManager().setDefaultContext(this.selectContext);\n outputComponent = ComponentsFactoryProvider.getInstance().ge... |
"public void deleteOlap4jServer(String name) {\n final RepositoryFile serverNode = repository.getFile(ETC_OLAP_SERVERS_JCR_FOLDER + RepositoryFile.SEPARATOR + name);\n if (serverNode != null) {\n repository.deleteFile(serverNode.getId(), \"String_Node_Str\" + name);\n }\n}\n"
|
"protected void addScanDirectory(File directory) throws IOException {\n scannedURI.add(directory.toURI());\n if (needScanAnnotation) {\n classParser.parse(directory, null);\n }\n}\n"
|
"public static <T> NamedParameterNode<T> createNamedParameterNode(Node parent, Class<? extends Name<T>> clazz, Class<T> argClass) throws ClassHierarchyException {\n final String simpleName = ReflectionUtilities.getSimpleName(clazz);\n final String fullName = ReflectionUtilities.getFullName(clazz);\n final Stri... |
"public void processChild(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts, Descriptor xmlDescriptor, Mapping mapping) throws SAXException {\n if (xmlDescriptor == null) {\n DescriptorNotFoundContentHandler handler = new DescriptorNotFoundContentHandler(unmarshalRecord, mapping);\... |
"public Animation getAnimation() {\n return animation;\n}\n"
|
"void init(ChannelPipeline pipeline) throws Exception {\n pipeline.addLast(\"String_Node_Str\", createSslHandler(sslContext, needsClientAuth));\n pipeline.addLast(\"String_Node_Str\", new HttpResponseEncoder());\n pipeline.addLast(\"String_Node_Str\", new HttpRequestDecoder());\n pipeline.addLast(\"String_N... |
"public ListenableFuture<AllocationPhase, VirtualMachine> create(final TemplateInstance template, final VirtualCluster cluster, final EventSource<AllocationPhase> source) throws VirtException, IOException {\n populate();\n source.fireEvent(AllocationPhase.VM_PREPARE);\n final String name = cluster.getConfig().... |
"public int run(Shell shell, String cmd, List<XValue> args) throws Exception {\n File curdir = shell.getCurdir();\n mLogger.debug(\"String_Node_Str\" + mCommandFile.getPath() + \"String_Node_Str\" + curdir.getPath());\n ArrayList<XValue> cmdlist = new ArrayList<XValue>();\n cmdlist.add(new XValue(mCommandFi... |
"public int hashCode() {\n int myHash = 0;\n for (int i = 0; i < theFields.length; i++) {\n myHash ^= theFields[i].hashCode();\n }\n return myHash;\n}\n"
|
"public void run() {\n if (timesRan == 10) {\n playerSchedulers.remove(id);\n plugin.getServer().getScheduler().cancelTask(id);\n } else {\n timesRan++;\n tPlayer.setHealth(tPlayer.getHealth() + 1);\n }\n}\n"
|
"public boolean createEntity(Dao dao, Entity<?> en) {\n StringBuilder sb = new StringBuilder(\"String_Node_Str\" + en.getTableName() + \"String_Node_Str\");\n for (MappingField mf : en.getMappingFields()) {\n sb.append('\\n').append(mf.getColumnName());\n sb.append(' ').append(evalFieldType(mf));\n ... |
"public void onMediaRemoved(String mediaId) {\n mUploadingMedia.remove(mediaId);\n mFailedMediaIds.remove(mediaId);\n mEditorFragmentListener.onMediaUploadCancelClicked(mediaId);\n}\n"
|
"private Class getBoundTypeForXmlAdapterClass(Class adapterClass) {\n Class boundType = Object.class;\n for (Method method : PrivilegedAccessHelper.getDeclaredMethods(adapterClass)) {\n if (method.getName().equals(\"String_Node_Str\")) {\n Class returnType = method.getReturnType();\n ... |
"private Status getTrackStatus() {\n if (trackLocation == null)\n return locateTrack();\n if (!tile.getWorldObj().blockExists(trackLocation.x, trackLocation.y, trackLocation.z))\n return Status.UNKNOWN;\n if (!RailTools.isRailBlockAt(tile.getWorldObj(), trackLocation.x, trackLocation.y, trackLoca... |
"public boolean switchItem(EntityRef fromInventory, EntityRef instigator, int slotFrom, EntityRef toInventory, int slotTo) {\n Collection<EntityRef> clientTempEntities = new HashSet<>();\n if (moveItemFillClientTempEntities(fromInventory, instigator, slotFrom, toInventory, slotTo, clientTempEntities)) {\n ... |
"public void onMessage(MessageEvent event) throws Exception {\n Log.d(TAG, \"String_Node_Str\" + event.toString());\n if (event.isBinary()) {\n Log.d(TAG, \"String_Node_Str\" + event.getData().toString());\n } else {\n Log.d(TAG, \"String_Node_Str\" + (String) (event.getData()));\n socket.... |
"void viewCachesAddedOrRemoved(Collection<ViewCache> caches, boolean added, SpatialCellImpl cell) {\n for (ViewCache c : caches) {\n if (added) {\n c.addViewUpdateListener(cell.getCellID(), cell);\n } else {\n c.removeViewUpdateListener(cellID, this);\n }\n }\n if (ch... |
"public boolean canAddItem(final ItemStack stack) {\n if (stack != null) {\n if (isRod(stack)) {\n return rodsContained < MAX_ROD_COUNT;\n } else if (frameCompleted) {\n if (isPlate(stack) && !skinCompleted) {\n return platesContained < MAX_PLATE_COUNT;\n ... |
"private static InetAddress getUPNPAddress() throws IOException {\n return InetAddress.getByName(IPV4_UPNP_HOST);\n}\n"
|
"protected String stripCppPrefixForDynamicConfigs(String outputPath) {\n return targetConfig.trimConfigurations() ? AnalysisTestUtil.OUTPUT_PATH_CPP_PREFIX_PATTERN.matcher(outputPath).replaceFirst(\"String_Node_Str\") : outputPath;\n}\n"
|
"protected boolean checkFieldsValue() {\n if (numberTxt.getText() == \"String_Node_Str\") {\n updateStatus(IStatus.ERROR, MSG_EMPTY);\n return false;\n }\n if (!CheckValueUtils.isNumberOfShownValue(numberTxt.getText())) {\n updateStatus(IStatus.ERROR, MSG_ONLY_NUMBER);\n return fals... |
"private static void createTunnelExt(String gatewayHost, String remoteHost, int remotePort, int localPort, String pattern) throws Exception {\n if (pattern == null || pattern.length() < 1) {\n if (tunnel.getValue() && via.getValue().isEmpty())\n pattern = DEFAULT_TUNNEL_TEMPLATE;\n else\n ... |
"public void addSystemArtifacts() throws Exception {\n Principal principal = authenticationContext.getPrincipal();\n authorizationEnforcer.enforce(NamespaceId.SYSTEM, principal, Action.WRITE);\n List<SystemArtifactInfo> systemArtifacts = new ArrayList<>();\n for (File systemArtifactDir : systemArtifactDirs)... |
"protected List<GraphTargetItem> printGraph(List<GraphPart> visited, BaseLocalData localData, Stack<GraphTargetItem> stack, List<GraphPart> allParts, GraphPart parent, GraphPart part, List<GraphPart> stopPart, List<Loop> loops, List<GraphTargetItem> ret, int staticOperation, String path, int recursionLevel) throws Inte... |
"protected String _fmtcolnm(Entity<?> en, String name) {\n if (null == en && null != pojo)\n en = pojo.getEntity();\n if (null != en) {\n MappingField mf = en.getField(name);\n if (null != mf)\n return mf.getColumnName();\n }\n return name.replaceAll(\"String_Node_Str\", \"St... |
"public void doLocalOp() {\n if (isMigrationAware() && isPartitionMigrating()) {\n setResult(OBJECT_REDO);\n } else {\n request.attachment = TargetAwareOp.this;\n request.local = true;\n ((RequestHandler) getPacketProcessor(request.operation)).handle(request);\n }\n}\n"
|
"private void _processMessage(Object[] message, String address) {\n String[] addressBits = address.split(\"String_Node_Str\");\n if (addressBits != null) {\n String identifier = addressBits[addressBits.length - 1];\n if (identifier.length() > 0) {\n List<Object> tokenList;\n if... |
"public void testBaseType001cNegative() throws Exception {\n boolean exception = false;\n String src = \"String_Node_Str\";\n String tmpdir = System.getenv(\"String_Node_Str\");\n try {\n Class[] jClasses = new Class[] { BaseType001c.class };\n Generator gen = new Generator(new JavaModelInputI... |
"public void forceSpecialAttack(DragonSpecialAttackBase newAttack) {\n lastAttack = currentAttack;\n if (currentAttack != null) {\n currentAttack.end();\n currentAttack = newAttack;\n currentAttack.init();\n}\n"
|
"protected boolean _isDeferrable(Actor actor) throws IllegalActionException {\n boolean deferrable = false;\n int maxSize = 0;\n Iterator outputPorts = actor.outputPortList().iterator();\n while (outputPorts.hasNext()) {\n IOPort outputPort = (IOPort) outputPorts.next();\n Receiver[][] farRece... |
"public static boolean verify(Submission sub) {\n int numberOfErrorsBefore = validation.errors().size();\n if (isFieldRequired(STUDENT_FIRST_NAME) && isFieldRequired(STUDENT_LAST_NAME)) {\n if (isEmpty(sub.getStudentFirstName()) && isEmpty(sub.getStudentLastName())) {\n validation.addError(\"Str... |
"public AdaptiveStepSimulator registerAdaptiveStepSimulator(ComputationSimulationConfiguration configuration) {\n if (configuration.getOdepkgFunction() == null) {\n LOGGER.debug(\"String_Node_Str\");\n return new SimpleAdaptiveStepSimulator(new LsodeEngineFactory(configuration.getLsodeIntegrationMethod... |
"public void run() {\n try {\n updateProgressListener(EProgressState.LOADING, 0.1f);\n DataOutputStream replayFileStream = createReplayFileStream();\n IGameClock gameClock = MatchConstants.clock = networkConnector.getGameClock();\n gameClock.setReplayLogStream(replayFileStream);\n ... |
"public void run(ProgressMonitor monitor) throws ApplicationException {\n try {\n float proWert = 100.0f / wertpapiere.length;\n float babysteps = proWert / 5;\n BaseFetcher base;\n for (int i = 0; i < wertpapiere.length; i++) {\n if (abort) {\n return;\n ... |
"public static synchronized PluginSettings instance(PlatformConfig config) {\n if (ps == null) {\n ps = new PluginSettings();\n if (config != null) {\n ps.bStandalone = config.getProperty(PROP_STANDALONE) != null;\n String loggingDir = (String) config.getProperty(PROP_LOGGING_DIR)... |
"public void run() throws Exception {\n NodeEngine nodeEngine = getNodeEngine();\n IFunction f = nodeEngine.toObject(function);\n AtomicReferenceContainer reference = getReferenceContainer();\n Data originalData = reference.get();\n Object input = nodeEngine.toObject(originalData);\n Object output = f... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.changelly_activity);\n ButterKnife.bind(this);\n MbwManager mbwManager = MbwManager.getInstance(this);\n tvMinAmountValue.setVisibility(View.GONE);\n valueKeyboard.setMaxDecimals(8);\n... |
"private void createContext(List<Object> sourceList) {\n if (sourceList.size() == 0) {\n return;\n }\n boolean created = false;\n for (Object source : sourceList) {\n if (source instanceof RepositoryNode) {\n RepositoryNode sourceNode = (RepositoryNode) source;\n Item ite... |
"protected Binding<Float> createFloatBinding(Object target, FieldMetadata<Object, ?> fieldMetadata) {\n return new WorldConfigNumberBinding(worldConfig, label, compLib, fieldMetadata);\n}\n"
|
"public void run(ProgressStatus progressStatus) {\n String ticket;\n try {\n ticket = MMSUtils.sendCredentials(project, username, pass, progressStatus);\n } catch (ServerException | IOException | URISyntaxException e) {\n Application.getInstance().getGUILog().log(\"String_Node_Str\" + e.getMessag... |
"public Object getItem(int position) {\n return mItems.get(position);\n}\n"
|
"public void throwsRuntimeExceptionWhenNoMemberToConnect() throws InterruptedException, IOException {\n HazelcastInstance h1 = Hazelcast.newHazelcastInstance(null);\n HazelcastInstance h2 = Hazelcast.newHazelcastInstance(null);\n HazelcastInstance h3 = Hazelcast.newHazelcastInstance(null);\n Map realMap = h... |
"protected String buildDrillAction(IAction action, IReportContext context) {\n if (action == null || context == null)\n return null;\n String baseURL = null;\n Object renderContext = getRenderContext(context);\n if (renderContext instanceof HTMLRenderContext) {\n baseURL = ((HTMLRenderContext)... |
"public void onErrorResponse(VolleyError error) {\n if (callback != null)\n callback.onFailure(error);\n AppLog.e(T.STATS, \"String_Node_Str\", error);\n}\n"
|
"public void disableMod(Mod mod, TinkerConfig config, ModStateManager sm) throws IOException {\n if (modHasArchive(mod)) {\n for (ZipNode module : ModStructure.inspectArchive(config, mod).getModules()) {\n if (!isDependency(module, config, sm)) {\n delete(config.getGameDataPath().res... |
"public void onClick(DialogInterface dialog, int id) {\n Intent service = new Intent(DownloadImagesActivity.this, DownloadImagesService.class);\n service.putExtra(DownloadImagesService.LAST_ITEM_ID, highestItemIdBeforeSync);\n service.putExtra(DownloadImagesService.DOWNLOAD_MODE_STRING, DownloadImagesService.D... |
"public InputStream getInputStream(String url) throws SardineException {\n HttpGet get = new HttpGet(url);\n HttpResponse response = this.executeWrapper(get);\n StatusLine statusLine = response.getStatusLine();\n if (!SardineUtil.isGoodResponse(statusLine.getStatusCode())) {\n get.abort();\n t... |
"public Throwable initCause(Throwable cause) {\n if (this.cause != null) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n if (cause == this) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n cause = cause;\n return this;\n}\n"
|
"public void createModule() throws Exception {\n DistributedProgramRunnableModule distributedProgramRunnableModule = new DistributedProgramRunnableModule(CConfiguration.create(), new Configuration());\n Guice.createInjector(distributedProgramRunnableModule.createModule(new ProgramId(\"String_Node_Str\", \"String_... |
"protected String getJMXremoteFilesCommand() {\n String accessFilePath;\n String passwordFilePath;\n String[] options;\n options = settings.getLeafValues(Constants.SETTINGS_COMMON_JMX_ACCESSFILE);\n if (options == null || options.length < 0) {\n accessFilePath = Constants.JMX_ACCESS_FILE_PATH_DEFA... |
"private void handlePropertyPath(final EdmProperty property) throws UriParserException, EdmException {\n this.uriResult.addProperty(property);\n final EdmType type = property.getType();\n if (pathSegments.isEmpty()) {\n if (type.getKind() == EdmTypeKind.SIMPLE)\n if (this.uriResult.getPropert... |
"private void updateChild(IFigure child, int wHint) {\n ReportItemConstraint constraint = (ReportItemConstraint) getConstraint(child);\n if (DesignChoiceConstants.REPORT_LAYOUT_PREFERENCE_FIXED_LAYOUT.equals(layoutPreference) && child instanceof IFixLayoutHelper) {\n if (constraint != null) {\n ... |
"public void convertAnnotations() {\n Map<String, List<Annotation>> entities = this.startDocument.entities;\n int featureStructureArrayIndex = 0;\n inferCasTypeSystem(entities.keySet());\n try {\n this.endDocument = CasCreationUtils.createCas(tsd, null, null);\n } catch (ResourceInitializationExce... |
"public void await(double time, TimeUnit unit) {\n gwtLogger.log(Level.WARNING, \"String_Node_Str\");\n}\n"
|
"public void fillStateMachine(IStateMachine stateMachine, List<TablePerspective> existing, TablePerspective dependee) {\n if (dependee != null)\n return;\n IState source = stateMachine.get(IStateMachine.ADD_STRATIFICATIONS);\n IState browseStratification = stateMachine.get(IStateMachine.BROWSE_STRATIFIC... |
"public boolean equals(TResult that) {\n if (that == null)\n return false;\n boolean this_present_id = true;\n boolean that_present_id = true;\n if (this_present_id || that_present_id) {\n if (!(this_present_id && that_present_id))\n return false;\n if (this.id != that.id)\n ... |
"protected void writeEntityToNBT(NBTTagCompound nbttagcompound) {\n super.writeEntityToNBT(nbttagcompound);\n if (frontYaw != null) {\n nbttagcompound.setFloat(\"String_Node_Str\", frontYaw);\n }\n if (rearYaw != null) {\n nbttagcompound.setFloat(\"String_Node_Str\", rearYaw);\n }\n}\n"
|
"private void synchConfiguration() {\n List repos = archivaConfiguration.getConfiguration().getRepositories();\n Iterator it = repos.iterator();\n while (it.hasNext()) {\n RepositoryConfiguration repoConfig = (RepositoryConfiguration) it.next();\n try {\n try {\n Archiva... |
"public static void handleApplicationUndeployed(String appId) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + appId);\n }\n Set<ClusterDataHolder> clusterData;\n ApplicationHolder.acquireWriteLock();\n try {\n Applications applications = ApplicationHolder.getApplications()... |
"private static List<ItemStack> testAndConsumeCraftingItems(EntityPlayerMP player, CraftingRecipe craftingRecipe, IItemSource itemSource, boolean strictDamage) {\n InventoryCrafting workInventory = new InventoryCrafting(new Container() {\n public boolean canInteractWith(EntityPlayer var1) {\n retur... |
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_month, container, false);\n offset = getArguments().getInt(Constants.OFFSET_ARGUMENT);\n List<Day> days = utils.getDays(getContext(), offset);\n digits = util... |
"private void relockNicelyImpl(int recCount) {\n for (; ; ) {\n RVMThread.enterNative();\n sysCall.sysPthreadMutexLock(mutex);\n if (RVMThread.attemptLeaveNativeNoBlock()) {\n break;\n } else {\n sysCall.sysPthreadMutexUnlock(mutex);\n RVMThread.leaveNativ... |
"public static List<Command> getCommands(final CommandCategory category, final PlotPlayer player) {\n final List<Command> cmds = new ArrayList<>();\n for (final Command c : instance.commands.values()) {\n if (c.getRequiredType().isInstance(PlotPlayer.class)) {\n if ((category == null || (c.getCa... |
"private static void getSubQueryBindings(SubqueryDefinition[] subqueryDefinitions, String subQueryName, List<IBinding> resultBindingList) throws DataException {\n for (int j = 0; j < subqueryDefinitions.length; j++) {\n if (subqueryDefinitions[j].getName() != null && subqueryDefinitions[j].getName().equals(su... |
"public View getView(int position, View convertView, ViewGroup parent) {\n AppViewHolder holder;\n if (convertView == null) {\n convertView = mInflater.inflate(R.layout.usage_stats_item, null);\n holder = new AppViewHolder();\n holder.pkgName = (TextView) convertView.findViewById(R.id.package... |
"private void prepareSortedStacks() throws DataException, IOException {\n allSortedFactRows = new ArrayList();\n int levelSize = 0;\n int measureSize = 0;\n while (true) {\n int maxLevelCount = -1;\n int aggregationIndex = -1;\n int[] levelSortType = null;\n for (int i = 0; i < a... |
"private static void addMeasureAggregations(CrosstabReportItemHandle crosstab, int axisType, LevelViewHandle theLevelView, String dimensionName, String levelName, boolean isInnerMost, List functions, List measures, boolean checkCounterMeasureList) throws SemanticException {\n if (crosstab == null || measures == null... |
"private double intToInformationLoss(final int value) {\n double min = result.getLattice().getBottom().getMinimumInformationLoss().getValue();\n double max = result.getLattice().getTop().getMaximumInformationLoss().getValue();\n if (value == 0) {\n return min;\n } else if (value >= SCALE_MAX_VALUE - ... |
"private void testAllFeatures(final boolean includeSource, final boolean compact, final boolean includeContext) throws Exception {\n final Log4jLogEvent expected = LogEventFixtures.createLogEvent();\n final AbstractJacksonLayout layout = JSONLayout.createLayout(Boolean.toString(includeSource), Boolean.toString(in... |
"public void handleEvent(Event event) {\n if (event.type == IChartDataSheet.EVENT_QUERY) {\n if (event.detail == IChartDataSheet.DETAIL_UPDATE_COLOR_AND_TEXT) {\n updateColorAndText();\n } else if (event.detail == IChartDataSheet.DETAIL_UPDATE_COLOR && event.data instanceof ISelectDataCompon... |
"private String getKeyExpression() {\n String exp = null;\n String keyText = UIUtil.convertToModelString(keyChooser.getText(), true);\n if (keyChooser.getSelectionIndex() != -1) {\n exp = DEUtil.getExpression(columnList.get(keyChooser.getSelectionIndex()));\n } else if (keyText != null && keyChooser.... |
"public ClassLoader getClassLoader() {\n return this.getClass().getClassLoader();\n}\n"
|
"public void run() {\n try {\n original = et_Original.getText().toString();\n if (original.endsWith(\"String_Node_Str\")) {\n original = original.substring(0, original.length() - 1);\n } else if (original.contains(\"String_Node_Str\")) {\n Message msg = Message.obtain();\n ... |
"public IDataRowExpressionEvaluator prepareRowExpressionEvaluator(Chart cm, List columnExpression, int rowCount, boolean isStringType) throws ChartException {\n ClassLoader oldContextLoader = Thread.currentThread().getContextClassLoader();\n ClassLoader parentLoader = oldContextLoader;\n if (parentLoader == nu... |
"public String getLinkTargetString() {\n return getLinkTargetPosixPath();\n}\n"
|
"private File toFile(File rootDir, String location) {\n File locationFile = rootDir;\n if (location != null) {\n URI locationURI = URI.create(location);\n locationFile = new File(locationURI.getPath());\n if (locationURI.getScheme() == null) {\n locationFile = new File(rootDir, loc... |
"public Graph importGraphFromFile(String s) {\n Graph gtnaGraph = new Graph(s);\n ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);\n pc.newProject();\n Workspace workspace = pc.getCurrentWorkspace();\n ImportController importController = Lookup.getDefault().lookup(ImportControl... |
"public void run(IAction action) {\n PreferenceLoader pref = new PreferenceLoader();\n InputStream javaFileIStream = null;\n OutputStreamWriter testFileOSWriter = null;\n FileOutputStream fos = null;\n boolean refreshFlag = true;\n String projectName = null;\n String testCaseDirResource = null;\n ... |
"public List<String> getKeys() throws IOException {\n List<String> keys = null;\n return keys;\n}\n"
|
"private boolean isSupportTez() {\n if (isHiveDBConnSelected()) {\n int distributionIndex = distributionCombo.getSelectionIndex();\n int hiveVersionIndex = hiveVersionCombo.getSelectionIndex();\n int hiveModeIndex = hiveModeCombo.getSelectionIndex();\n int hiveServerIndex = getRealHiveSer... |
"protected void buildReorderAndLaunch(boolean isToggled) {\n if (isToggled) {\n ArrayList<Tools.TaskInfo> taskList;\n taskList = Tools.buildTaskList(getApplicationContext(), db, Settings.TASKLIST_QUEUE_LIMIT);\n if (taskList.size() == 0) {\n buildBaseTasks();\n taskList = T... |
"public void processRow(final ResultSet rs) throws SQLException {\n handler.streamReference(isIncoming, createObjectVersion(rs));\n}\n"
|
"protected boolean isUnderDBConnection(RepositoryNode node) {\n if (node == null) {\n return false;\n }\n if ((node.getType() == ENodeType.SYSTEM_FOLDER || node.getType() == ENodeType.STABLE_SYSTEM_FOLDER) && node.getProperties(EProperties.CONTENT_TYPE) == ERepositoryObjectType.METADATA_CONNECTIONS) {\n... |
"public MessageEndpoint createEndpoint(XAResource xaResource, long timeout) throws UnavailableException {\n synchronized (this) {\n while (myState == BLOCKED) {\n try {\n wait(timeout);\n } catch (Exception e) {\n } finally {\n myState = UNBLOCKED... |
"public void init(FMLInitializationEvent evt) {\n GameRegistry.registerWorldGenerator(crops = new BaseCropWorldgen(), 0);\n GameRegistry.registerWorldGenerator(clouds = new BaseCloudWorldgen(), 0);\n GameRegistry.registerWorldGenerator(trees = new BaseTreeWorldgen(), 0);\n NaturaTab.init(content.wheatBag);\... |
"private void calculatePRF(String label) throws IOException {\n Tools.print(messages.size() + \"String_Node_Str\");\n ByteArrayOutputStream buf = new ByteArrayOutputStream();\n handshakeMsgString = new ArrayList<String>();\n for (IHandshakeMessage m : messages) {\n buf.write(m.getByte());\n ha... |
"public void refreshSampleInfo(String schemaName, boolean isCreateSample) {\n TableUniqueName metaNameTable = getMetaNameTableForOriginalSchema(schemaName);\n TableUniqueName metaSizeTable = getMetaSizeTableForOriginalSchema(schemaName);\n List<List<Object>> result;\n try {\n clearSampleInformationFo... |
"protected boolean isReadOnly() {\n return !isInWizard();\n}\n"
|
"public void initXMLAccessor(MetadataDescriptor descriptor, MetadataProject project) {\n m_project = project;\n setDescriptor(descriptor);\n}\n"
|
"protected void tearDown() throws Exception {\n if (isOnWindows()) {\n removeFile(new File(pictureFolder));\n super.tearDown();\n }\n}\n"
|
"public void newRevision(Object arg0) {\n SIGHRevisionEntity revisionEntity = (SIGHRevisionEntity) arg0;\n if (!processReplicationChange(revisionEntity) && !processJSFChange(revisionEntity)) {\n throw new KarakuRuntimeException(\"String_Node_Str\");\n }\n}\n"
|
"public void onCommand(String command) {\n try {\n String[] parts = command.split(\"String_Node_Str\");\n String verb = parts[0];\n if (verb.startsWith(\"String_Node_Str\")) {\n this.createUser(parts[1], parts[2]);\n } else if (verb.startsWith(\"String_Node_Str\")) {\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.