content stringlengths 40 137k |
|---|
"public void actionPerformed(ActionEvent e) {\n JMenuItem menuItem = (JMenuItem) e.getSource();\n String itemText = menuItem.getName();\n if (itemText.equalsIgnoreCase(\"String_Node_Str\")) {\n ChatRoomListDialog.showChatRoomListDialog();\n } else if (itemText.equalsIgnoreCase(\"String_Node_Str\")) {... |
"private int move(int i, int j, int priority) throws TimeoutException {\n ItemStack from = containerMgr.getItemStack(i);\n ItemStack to = containerMgr.getItemStack(j);\n if (from == null || frozenSlots[j] || frozenSlots[i]) {\n return -1;\n }\n if (lockPriorities[i] <= priority) {\n if (i =... |
"public LdapSearchScope callerSearchScope() {\n return (overrides != null && overrides.containsKey(\"String_Node_Str\")) ? (LdapSearchScope) overrides.get(\"String_Node_Str\") : LdapSearchScope.SUBTREE;\n}\n"
|
"private void mergePluginContainers(PluginContainer targetContainer, PluginContainer sourceContainer, Map<Object, Object> context) {\n List<Plugin> plugins = sourceContainer.getPlugins();\n for (Plugin sourcePlugin : plugins) {\n Plugin targetPlugin = targetContainer.getPluginsAsMap().get(sourcePlugin.getK... |
"public void close() {\n endOut();\n if (errorThread != null) {\n try {\n errorThread.halt();\n } catch (InterruptedException e) {\n } finally {\n errorThread = null;\n }\n }\n super.close();\n if (channel != null) {\n try {\n exitStatus... |
"private static int getNodes(String srcFolder, String extension) {\n File d = new File(srcFolder);\n if (!d.exists()) {\n return 0;\n }\n File[] f = d.listFiles(new SuffixFilenameFilter(suffix));\n if (f.length == 0) {\n return 0;\n }\n int index = 0;\n while (!f[index].getName().e... |
"protected boolean permitsWrappingDisplayLists() {\n return true;\n}\n"
|
"public void execute() throws ResourceUnavailableException, InsufficientCapacityException, ServerApiException, ConcurrentOperationException, ResourceAllocationException, NetworkRuleConflictException {\n IpAddress result = _networkService.updateIP(getId(), getCustomId(), getDisplayIp());\n if (result != null) {\n ... |
"private String mapEs(String frm, String to, String str) {\n int strlen = str.length();\n String ret = \"String_Node_Str\";\n int lastmatch = 0;\n int newmatch = str.indexOf(frm);\n while (newmatch >= 0) {\n ret += str.substring(lastmatch, newmatch);\n if (newmatch + 3 <= strlen && numberHS... |
"private void waitForGetServiceUrl() throws InterruptedException, ExecutionException, TimeoutException {\n Tasks.waitFor(true, new Callable<Boolean>() {\n public Boolean call() throws Exception {\n return getContext().getServiceURL(CENTRAL_SERVICE) != null;\n }\n }, 10, TimeUnit.SECONDS);... |
"public synchronized void onDeviceDetached(UsbDevice detachedDevice) {\n if (midiInputDevices == null || midiOutputDevices == null || deviceConnections == null) {\n return;\n }\n AsyncTask<UsbDevice, Void, Void> task = new AsyncTask<UsbDevice, Void, Void>() {\n protected Void doInBackground(UsbDe... |
"protected IStatus run(IProgressMonitor monitor) {\n TacitFormComposite.setConsoleViewInFocus();\n TacitFormComposite.updateStatusMessage(getViewSite(), null, null, form);\n Display.getDefault().syncExec(new Runnable() {\n public void run() {\n browse = dateCheckBrowse.getSelection();\n ... |
"public boolean workCycle() {\n if (tryAddPending())\n return false;\n if (!pendingProducts.isEmpty()) {\n setErrorState(EnumErrorCode.NOSPACE);\n return false;\n }\n FluidHelper.drainContainers(tankManager, this, SLOT_CAN);\n ItemStack can = getStackInSlot(SLOT_CAN);\n if (Forest... |
"public static TsoGeneratorVoltageAutomaton fromXml(String contingencyId, XMLStreamReader xmlsr) throws XMLStreamException {\n LimitsXmlParsingState state = null;\n String text = null;\n List<String> onUnderVoltageDiconnectedGenerators = new ArrayList<>();\n List<String> onOverVoltageDiconnectedGenerators =... |
"private void update(Object structureOrHandle) {\n if (structureOrHandle instanceof FilterCondition) {\n viewer.getViewer().refresh();\n } else {\n viewer.getViewer().update(structureOrHandle, null);\n }\n}\n"
|
"public void testReinit() throws Exception {\n CookieMiddleware middleware = Ion.getDefault(getContext()).getCookieMiddleware();\n Ion ion = Ion.getDefault(getContext());\n ion.getCookieMiddleware().clear();\n Headers headers = new Headers();\n headers.set(\"String_Node_Str\", \"String_Node_Str\");\n ... |
"public static ClassLoader getDefaultClassLoader(ClassLoaderCallable defaultClassLoaderCallable) {\n if (defaultClassLoaderCallable == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n try {\n final Thread th = Thread.currentThread();\n final ClassLoader contextClassLoad... |
"public double getEventTime() {\n return pendingEvent ? pendingEventTime : Double.POSITIVE_INFINITY;\n}\n"
|
"public void update(String path, Map<Integer, Integer> map) {\n SQLiteDatabase db;\n try {\n db = db_open_helper.getWritableDatabase();\n } catch (Exception e) {\n Log.i(\"String_Node_Str\", e.toString());\n e.printStackTrace();\n return;\n }\n if (db == null) {\n retur... |
"public void schedule() {\n if (Level > 0 && Pickup && MPet.Status == PetState.Here && MPet.getSkillSystem().hasSkill(\"String_Node_Str\") && MPet.getSkillSystem().getSkill(\"String_Node_Str\").getLevel() > 0) {\n for (Entity e : MPet.getPet().getNearbyEntities(Level * RangePerLevel, Level * RangePerLevel, Ra... |
"public void apply() throws Exception {\n Collection<DatasetModuleMeta> allDatasets = datasetTypeMDS.getModules(NamespaceId.SYSTEM);\n for (DatasetModuleMeta ds : allDatasets) {\n if (ds.getJarLocationPath() == null) {\n LOG.debug(\"String_Node_Str\", ds.toString());\n DatasetModuleId... |
"protected void start(ILaunchConfigurationWorkingCopy workingCopy) throws Exception {\n workingCopy.setAttribute(IExternalToolConstants.ATTR_LOCATION, getNodeInstallPath());\n workingCopy.setAttribute(IExternalToolConstants.ATTR_WORKING_DIRECTORY, getWorkingDir());\n String args = getArgs();\n workingCopy.s... |
"private String findFirstGroupName(Query query) {\n if (query instanceof BooleanQuery) {\n BooleanQuery booleanQuery = (BooleanQuery) query;\n for (BooleanClause clause : booleanQuery.clauses()) {\n String groupName = findFirstGroupName(clause.getQuery());\n if (groupName != null)... |
"public void addManaWithCost(List<ManaAbility> abilities, Game game) {\n if (isEmpty()) {\n this.add(new Mana());\n }\n if (!abilities.isEmpty()) {\n if (abilities.size() == 1) {\n ManaAbility ability = abilities.get(0);\n List<Mana> netManas = abilities.get(0).getNetMana(ga... |
"public void run(IAction action) {\n IProject project = ProjectFactory.getInstance().getSelectedProject();\n if (project == null) {\n DialogUtils.error(\"String_Node_Str\", \"String_Node_Str\");\n return;\n }\n if (!RhodesProject.checkNature(project) && !RhoelementsProject.checkNature(project)... |
"public DataSource obtainDataSource(String aDataSourceName) throws Exception {\n if (aDataSourceName == null) {\n aDataSourceName = defaultDatasourceName;\n }\n if (aDataSourceName != null && !aDataSourceName.isEmpty()) {\n Context initContext = new InitialContext();\n try {\n r... |
"public void execute() throws MojoExecutionException, MojoFailureException {\n validateConfiguration();\n try {\n initGitFlowConfig();\n checkUncommittedChanges();\n if (fetchRemote) {\n gitFetchRemoteAndCompare(gitFlowConfig.getDevelopmentBranch());\n }\n String feat... |
"private void update(final ProcessType processType) {\n RepositoryWorkUnit<Object> rwu = new RepositoryWorkUnit<Object>(\"String_Node_Str\") {\n\n public void run(final IProgressMonitor monitor) throws CoreException {\n try {\n oldProcessItem.setProcess(processType);\n ... |
"public StudySubjectBean findByLabelAndStudy(String label, StudyBean study) {\n StudySubjectBean answer = new StudySubjectBean();\n this.setTypesExpected();\n HashMap variables = new HashMap();\n variables.put(new Integer(1), ESAPI.encoder().encodeForHTML(label));\n variables.put(new Integer(2), new Inte... |
"public static <ProvenanceType> Map<String, Map<Symbol, ProvenancedConfusionMatrix<ProvenanceType>>> computeBreakdowns(ProvenancedConfusionMatrix<ProvenanceType> corpusConfusionMatrix, Map<String, Function<? super ProvenanceType, Symbol>> breakdowns) {\n final Map<String, Map<Symbol, ProvenancedConfusionMatrix<Prove... |
"public CoordinateStream removeTowerAndFreeOccupiedArea(ShortPoint2D pos) {\n PartitionOccupyingTower tower = occupyingTowers.removeAt(pos);\n if (tower == null) {\n return;\n }\n CoordinateStream towerStream = tower.area.stream();\n changeTowerCounter(tower.playerId, towerStream, -1);\n checkO... |
"public void getUser(String token) throws UserDao.TokenNotFoundException, UserDao.UserNotFoundException, InstantiationException, IllegalAccessException {\n String username = getUserDao().getUsernameFromToken(token);\n injectorVariable = getUserDao().getUser(username);\n}\n"
|
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n Permanent creature = game.getPermanentOrLKIBattlefield(this.getTargetPointer().getFirst(game, source));\n if (creature != null && controller != null) {\n controller.gainLife(creature.getP... |
"public <E> void writeEnum(E e) {\n Class aClass;\n if (e == null || e instanceof CharSequence)\n aClass = String.class;\n else\n aClass = (Class) e.getClass();\n BytesMarshaller<E> em = bytesMarshallerFactory().acquireMarshaller(aClass, true);\n em.write(this, e);\n}\n"
|
"public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {\n column = this.table.getColumn(column).getModelIndex();\n if (column == DownloadTreeTableModel.COL_STATUS && value instanceof FilePackage) {\n String label = \"String_No... |
"public static void loadModules(Application app) {\n LOG.info(\"String_Node_Str\");\n loadJars();\n Set<String> classNames = getModulesClassNames();\n for (String fullClassName : classNames) {\n IInitializer initializer;\n try {\n initializer = (IInitializer) load(fullClassName);\n ... |
"public void checkCollectBlogPost() throws URISyntaxException, IOException {\n Object[] retval = prepareVerification(BLOG_BINDER, null, BLOG_PAGE, null, BLOG_STRUCTURE, null, BlogArtefact.class, BLOG_ARTEFACT_TITLE, BLOG_ARTEFACT_DESCRIPTION, BLOG_TAGS, null);\n Binder binder = (Binder) retval[0];\n Binder.Pag... |
"public void startAtTop() {\n _currentIfTree = _root;\n}\n"
|
"public void load() {\n File folder = getDataFolder();\n if (!folder.exists()) {\n folder.mkdir();\n }\n File datafile = new File(folder.getAbsolutePath() + \"String_Node_Str\");\n if (datafile.exists()) {\n FileInputStream input;\n try {\n input = new FileInputStream(data... |
"public ModuleRaytraceResult getHitModule(double hitX, double hitY, double hitZ, EnumFacing side, EnumFacing horizontalFacing) {\n ModuleRaytraceResult result;\n float factor = size + 1.0f;\n float dx = 0, dy = 0;\n switch(side) {\n case NORTH:\n dx = (float) ((1.0 - hitX) / factor);\n ... |
"private String loadFileAsString() throws IOException {\n StringBuilder sb = new StringBuilder();\n FileReader metadataFile = new FileReader(itemsMetadataFile);\n BufferedReader br = new BufferedReader(metadataFile);\n String line;\n while ((line = br.readLine()) != null) {\n sb.append(line).appen... |
"public BenchmarkResults process(BenchmarkInput input) {\n RandomUtil.reseedThreadLocal(input.challenge.seed);\n KAligner2Statistics stat = new KAligner2Statistics();\n BatchAlignerWithBase<NucleotideSequence, Integer, ? extends AlignmentHit> aligner = input.params.createAligner();\n NucleotideSequence[] db... |
"protected void _resolveInitialStates() throws IllegalActionException {\n if (_debugging && _verbose) {\n _debug(\"String_Node_Str\" + getModelTime(), \"String_Node_Str\" + getCurrentStepSize());\n }\n ODESolver solver = getCurrentODESolver();\n if (_debugging && _verbose) {\n _debug(\"String_... |
"public void handleAfterClose(IDataSetInstanceHandle dataSet) {\n if (reportContext == null)\n return;\n try {\n if (!this.useAfterCloseEventHandler) {\n Scriptable scope = getScriptScope(dataSet);\n JSScriptStatus status = handleJS(scope, dataSet.getName(), AFTER_CLOSE, dataSe... |
"protected boolean actionFinished() {\n if (!super.actionFinished()) {\n switch(state) {\n case CARRY_TAKE:\n super.getGrid().popMaterial(super.getPos(), materialType);\n super.calculatePathTo(request);\n state = EBearerState.CARRY_DROP;\n ... |
"public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par4, float f1, float f2, float f3) {\n if (world.isRemote) {\n return true;\n } else {\n if ((world.getBlockMetadata(x, y, z) & -8) == 0) {\n TileEntityCoffin te = (TileEntityCoffin) world.getTile... |
"private void transferRecord(RelationshipTypeRecord record) throws IOException {\n long id = record.getId();\n long count = record.getTransferCount();\n FileChannel fileChannel = getFileChannel();\n fileChannel.position(id * getRecordSize());\n if (count != record.getFromChannel().transferTo(record.getTr... |
"public CellComponentClientState getClientState(CellComponentClientState state, WonderlandClientID clientID, ClientCapabilities capabilities) {\n if (state == null) {\n state = new JmeColladaCellComponentClientState();\n }\n ((JmeColladaCellComponentServerState) serverState).setClientState((JmeColladaCe... |
"private static void logCrash(Throwable throwable, String... args) {\n BugReport.sendBugReport(throwable, Arrays.asList(args));\n BugReport.printBug(OutErr.SYSTEM_OUT_ERR, throwable);\n System.err.println(Constants.PRODUCT_NAME + \"String_Node_Str\");\n throwable.printStackTrace();\n}\n"
|
"public List<ModuleNeeded> getModulesNeeded(INode node) {\n if (runtimeInfo != null && componentImportNeedsList != null) {\n return componentImportNeedsList;\n } else {\n componentImportNeedsList = new ArrayList<>();\n ConnectorTopology topology = null;\n if (node != null) {\n ... |
"public static boolean updateGenericConnection(ConnectionItem connectionItem, boolean show, final boolean onlySimpleShow) {\n List<Relation> relations = RelationshipItemBuilder.getInstance().getItemsRelatedTo(connectionItem.getProperty().getId(), RelationshipItemBuilder.LATEST_VERSION, RelationshipItemBuilder.PROPER... |
"public void onClose(final AjaxRequestTarget target) {\n target.add(realmChoicePanel.reloadRealmTree(target));\n if (modal.getContent() instanceof ResultPage) {\n Serializable result = ResultPage.class.cast(modal.getContent()).getResult();\n updateRealmContent(RealmTO.class.cast(ProvisioningResult.c... |
"public void dumpLocked(PrintWriter pw) {\n HistoryItem rec = getHistory();\n if (rec != null) {\n pw.println(\"String_Node_Str\");\n int oldState = 0;\n int oldStatus = -1;\n int oldHealth = -1;\n int oldPlug = -1;\n int oldTemp = -1;\n int oldVolt = -1;\n ... |
"public void loadConfig() {\n try {\n String home = System.getProperty(\"String_Node_Str\");\n File file = new File(home, EncogWorkBench.CONFIG_FILENAME);\n InputStream is = new FileInputStream(file);\n EncogReadHelper in = new EncogReadHelper(is);\n EncogFileSection section;\n ... |
"public static void main(String[] args) throws Exception {\n ScatterplotExample provider = new ScatterplotExample();\n Example.showWithSwing(provider);\n}\n"
|
"private static void performEmergencyCall(Context context) {\n Intent intent = new Intent(Intent.ACTION_CALL_EMERGENCY);\n intent.setData(getPhoneUri(context));\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivityAsUser(intent, UserHandle.CURRENT);\n}\n"
|
"private void printWeighted() {\n out.print(\"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\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_... |
"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... |
"private void setChartColors() {\n if (dataset.getSeriesCount() > 0) {\n for (int i = 0; i < activeProcessors.size(); i++) {\n for (Map.Entry<String, Integer> entry : seriesIndex.get(i).entrySet()) {\n ProcessorPreset processorPreset = activeProcessors.get(i);\n Abstra... |
"public boolean hasResults() {\n return mRowsAdapter.size() > 0 && mResultsFound;\n}\n"
|
"public Object removeAttribute(Map<String, String> tenantId, String entityName, Object id, String attribute, String listItemId, Object entity, String partner) {\n EntityManager em = getEmf().createEntityManager(tenantId);\n String fieldName = null;\n try {\n Class<?> clazz = getClass(entityName);\n ... |
"public AnimatedGLElementContainer setAnimateByDefault(boolean animateByDefault) {\n this.defaultDuration = animateByDefault ? Durations.DEFAULT : Durations.NO;\n return this;\n}\n"
|
"protected void handleRemoveElement(ModelElementChangeLeftTarget removeElement) {\n EObject leftElement = removeElement.getLeftElement();\n ColumnSet removeColumnSet = SwitchHelpers.COLUMN_SET_SWITCH.doSwitch(leftElement);\n if (removeColumnSet != null) {\n popRemoveElementConfirm();\n if (isVali... |
"public void save(Article article) {\n try {\n Connection conn = ds.getConnection();\n DSLContext context = DSL.using(conn, SQLDialect.H2);\n context.insertInto(Tables.ARTICLE).values(article.getId(), article.getTitle(), article.getNs().getValue(), article.getType().getValue());\n conn.cl... |
"public static void configCheck(ConfigType type) {\n FileConfiguration config;\n if (type == ConfigType.PRESETS) {\n config = presetConfig.get();\n ArrayList<String> abilities = new ArrayList<String>();\n abilities.add(\"String_Node_Str\");\n abilities.add(\"String_Node_Str\");\n ... |
"public List<ManagementGroupVertex> getGroupVerticesInTopologicalOrder() {\n final List<ManagementGroupVertex> topologicalSort = new ArrayList<ManagementGroupVertex>();\n final Deque<ManagementGroupVertex> noIncomingEdges = new ArrayDeque<ManagementGroupVertex>();\n final Map<ManagementGroupVertex, Integer> in... |
"public void readNodeAttributes(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException {\n super.readNodeAttributes(in, pf);\n String className = in.readUTF();\n reference = (IDataReference) this.getRoot().getFactory().getNewInstance(className);\n if (reference == null) {\n ... |
"public static TestGlobalUnionKeyEntity createGlobalUnionKeyEntity() {\n TestGlobalUnionKeyEntity testEntity = new TestGlobalUnionKeyEntity();\n testEntity.setTestBool(true);\n testEntity.setoTestBool(false);\n testEntity.setTestByte((byte) 255);\n testEntity.setoTestByte((byte) 255);\n testEntity.set... |
"private Map<String, ListItem> getItemMap() {\n waitForRows();\n List<WebElement> rows = webDriver.findElements(rowsSelector);\n Map<String, ListItem> itemMap = new HashMap<String, ListItem>(rows.size());\n for (WebElement row : rows) {\n ListItem item = listItemFactory.getItem(row);\n itemMap... |
"public void setFormat(String format) {\n if (renderable instanceof HasRuntimeFormat) {\n if (!properties.containsKey(PROPERTY_FORMAT)) {\n properties.put(PROPERTY_FORMAT, ((HasRuntimeFormat) renderable).getFormat());\n }\n ((HasRuntimeFormat) renderable).setFormat(format);\n }\n}\... |
"private void runOnDtlsTransport(StreamConnector connector) throws IOException {\n DtlsControlImpl dtlsControl = (DtlsControlImpl) getTransportManager().getDtlsControl(this);\n DtlsTransformEngine engine = dtlsControl.getTransformEngine();\n final DtlsPacketTransformer transformer = (DtlsPacketTransformer) eng... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.stats_activity_view_all);\n if (savedInstanceState == null) {\n }\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.setDisplayHomeAsUpEnabled(tr... |
"public void setAltitude(Altitude altitude) {\n coordinate.set(coordinate.getLat(), coordinate.getLng(), altitude);\n}\n"
|
"private BlurIndex openShard(String table, String shard) throws IOException {\n LOG.info(\"String_Node_Str\", shard, table);\n TableContext tableContext = getTableContext(table);\n Path tablePath = tableContext.getTablePath();\n Path hdfsDirPath = new Path(tablePath, shard);\n BlurLockFactory lockFactory... |
"public <T extends TBase<T, ? extends TFieldIdEnum>> T fromFileString(T object, String pathToSerializedFileString) throws ConcreteException {\n return this.fromPath(object, Paths.get(pathToSerializedFileString));\n}\n"
|
"protected void readImageField(DataInputStream in, ImageItemDesign image, short fieldType) throws IOException {\n switch(fieldType) {\n case FIELD_IMAGE_SOURCE:\n int imageSource = IOUtil.readInt(in);\n switch(imageSource) {\n case ImageItemDesign.IMAGE_NAME:\n ... |
"public void testDownloadFinishes() throws Exception {\n keepAllAlive(testUP);\n drainAll();\n DatagramPacket pack = null;\n Message m = null;\n byte[] guid = RouterService.newQueryGUID();\n RouterService.query(guid, \"String_Node_Str\");\n ((MyCallback) getCallback()).setGUID(new GUID(guid));\n ... |
"protected void drawText(String text, float textX, float textY, float baseline, float width, float height, TextStyle textStyle) {\n writer.drawText(text, textX, textY, width + 1f, height, textStyle.getFontInfo(), textStyle.getColor());\n}\n"
|
"public void onPostAllChildrenEvent(final IVjoValidationVisitorEvent event) {\n final VjoValidationCtx ctx = event.getValidationCtx();\n final IJstNode jstNode = event.getVisitNode();\n if (!(jstNode instanceof ObjLiteral)) {\n return;\n }\n final ObjLiteral objLiteral = (ObjLiteral) jstNode;\n ... |
"private PositionStreamEvent nextStreamEvent(ReadFilter filter) throws IOException {\n PositionStreamEvent event = null;\n boolean done = false;\n while (!done) {\n if (timestamp < 0) {\n timestamp = readTimestamp();\n }\n if (timestamp == -1L) {\n eof = true;\n ... |
"public void loadAccount(ProtocolProviderService protocolProvider) {\n if (!(protocolProvider instanceof ProtocolProviderServiceSSHImpl))\n throw new ClassCastException(\"String_Node_Str\");\n AccountID accountID = protocolProvider.getAccountID();\n String identityFile = accountID.getAccountPropertyStri... |
"private JpaFinderProxy.FinderDescriptor getFinderDescriptor(MethodInvocation invocation) {\n Method method = invocation.getMethod();\n JpaFinderProxy.FinderDescriptor finderDescriptor = finderCache.get(method);\n if (null != finderDescriptor) {\n return finderDescriptor;\n }\n finderDescriptor = ... |
"public static Map<org.bukkit.enchantments.Enchantment, Integer> getEnchantments(String base32) {\n if (base32 == null || base32.isEmpty() || !NumberUtil.isLong(base32)) {\n return new HashMap<org.bukkit.enchantments.Enchantment, Integer>();\n }\n Map<org.bukkit.enchantments.Enchantment, Integer> map = ... |
"protected void applyTransformation(XmlConfiguration configuration, Document doc) {\n List<Parameter> parameters = configuration.getParameters();\n for (Parameter parameter : parameters) {\n displayMessageln(\"String_Node_Str\" + parameter.getKey() + \"String_Node_Str\" + parameter.getMode() + \"String_Nod... |
"public void testGenerateParser() throws Exception {\n ShellContext context = new ShellContext(null);\n Foo1Command foo1 = new Foo1Command();\n foo1.initializeUI(context);\n CommandLineParser parser = CommandLineUtil.generateParser(foo1, context);\n assertEquals(\"String_Node_Str\", parser.getParameter()... |
"public void updated(Dictionary props) throws ConfigurationException {\n if (props != null) {\n this.properties = props;\n this.properties.put(Constants.SERVICE_PID, CONSOLE_PID);\n } else {\n return;\n }\n configuratorRegistration.setProperties(properties);\n String telnetHost = (St... |
"private boolean launchDefaultSearch(KeyEvent event) {\n boolean result;\n final Callback cb = getCallback();\n if (cb == null || isDestroyed()) {\n result = false;\n } else {\n sendCloseSystemWindows(\"String_Node_Str\");\n int deviceId = event.getDeviceId();\n SearchEvent searc... |
"public void commit() throws IOException {\n HttpClient client = new HttpClient();\n client.getState().setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(username, password));\n HttpMethod method = new PostMethod(url + \"String_Node_Str\" + id);\n method.setDoAuthentication(true);\n try {\n ... |
"public void addFeatures(FeatTemplate tpl, int pidx, int cidx, List<String> feats) {\n int idx = pidx;\n if (tpl instanceof FeatTemplate1) {\n addTokenFeature((FeatTemplate1) tpl, pidx, cidx, feats);\n } else if (tpl instanceof FeatTemplate2) {\n addTokenFeatures((FeatTemplate2) tpl, pidx, cidx, ... |
"protected static void onGpsStatusChanged(int event, GpsStatus gpsStatus) {\n if (mListeners == null || mListeners.size() == 0)\n return;\n if (event == GpsStatus.GPS_EVENT_STARTED || event == GpsStatus.GPS_EVENT_STOPPED) {\n for (int i = 0; i < mListeners.size(); i++) {\n mListeners.get(... |
"public ListenableFuture<Chunk> getChunk(int x, int y) {\n if (isChunkLoaded(x, y)) {\n return new AsyncResult<>(getLoadedChunk(x, y));\n }\n ListenableFuture<Chunk> chunkFuture = chunkProvider.getChunk(x, y);\n chunkFuture.addCallback((chunk) -> chunks[x][y] = chunk, (error) -> logger.error(\"String... |
"protected void createTreeArea() {\n tvInfos = new TreeViewer(this, SWT.BORDER | SWT.FULL_SELECTION);\n Tree tree = tvInfos.getTree();\n tree.setLinesVisible(true);\n tree.setHeaderVisible(true);\n final GridData gd_tree = new GridData(SWT.FILL, SWT.FILL, true, true);\n gd_tree.heightHint = 80;\n t... |
"protected void buttonPressed(int buttonId) {\n if (buttonId == IDialogConstants.OK_ID) {\n if (!validateInput())\n return;\n updateUI2Model(serverDef);\n }\n if (buttonId == CHECK_CONNECTION_ID) {\n if (!validateInput())\n return;\n boolean check = false;\n ... |
"public List<PluginParameter> getParameters() {\n List<PluginParameter> params = new ArrayList<PluginParameter>();\n PluginParameter outputParam = new PluginParameter(\"String_Node_Str\", \"String_Node_Str\", PluginParameterType.STRING, \"String_Node_Str\", getConvertableTo(), true, true, \"String_Node_Str\");\n ... |
"public ArrayList<DownloadLink> getAvailableDownloads(DownloadLink downloadLink, int activeCaptchas) throws Exception {\n LinkStatus linkStatus = downloadLink.getLinkStatus();\n this.downloadLink = downloadLink;\n String link = (String) downloadLink.getProperty(\"String_Node_Str\");\n String[] mirrors = (St... |
"private DataCiteResponse sendMetadataPostRequest(String doi, String metadata) throws DOIIdentifierException {\n URIBuilder uribuilder = new URIBuilder();\n uribuilder.setScheme(SCHEME).setHost(HOST).setPath(METADATA_PATH);\n HttpPost httppost = null;\n try {\n httppost = new HttpPost(uribuilder.buil... |
"public void exportMoveLineAllTypeSelectFILE2(MoveLineReport moveLineReport, String fileName) throws AxelorException, IOException {\n LOG.info(\"String_Node_Str\");\n Company company = moveLineReport.getCompany();\n String companyCode = \"String_Node_Str\";\n String moveLineQueryStr = \"String_Node_Str\";\n... |
"private boolean applyNewState(PartitionRuntimeState partitionState, Address sender) {\n try {\n if (!lock.tryLock(PTABLE_SYNC_TIMEOUT_SECONDS, SECONDS)) {\n return false;\n }\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n return false;\n }\n... |
"private void createMarker(String message, int messageType, String location, Object object, ProblemType type) {\n boolean existProblem = false;\n for (IMarker marker : m_markerList) {\n try {\n if (marker.getAttribute(IMarker.LOCATION).equals(location) && marker.getAttribute(IMarker.SEVERITY).eq... |
"private static TaskAttribute hpAlmHandling(List<CommentEntry> commentEntries, TaskAttribute attr) {\n Properties almProps = Activator.getDefault().getAlmAccessProperties();\n String hpTaskKindKeyPrefix = CONNECTOR.HP_ALM.toString() + StringConstants.DOT + TaskAttribute.TASK_KIND;\n String req = hpTaskKindKeyP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.