bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; } | public void setModuleExecution(ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; } | 3,230,639 |
private void addInstrumentation(File file) { if (isClass(file)) { addInstrumentationToSingleClass(file); } else if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); } else if (isArchive(file)) { addInstrumentationToA... | private void addInstrumentation(File file) { if (isClass(file)) { addInstrumentationToSingleClass(file); } else if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); } else if (isArchive(file)) { addInstrumentationToA... | 3,230,640 |
private void addInstrumentation(File file) { if (isClass(file)) { addInstrumentationToSingleClass(file); } else if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); } else if (isArchive(file)) { addInstrumentationToA... | private void addInstrumentation(File file) { if (isClass(file)) { addInstrumentationToSingleClass(file); } else if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); } else if (isArchive(file)) { addInstrumentationToA... | 3,230,641 |
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | 3,230,642 |
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | 3,230,643 |
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | 3,230,644 |
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | 3,230,645 |
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | 3,230,646 |
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | 3,230,647 |
private void addInstrumentationToSingleClass(File file) { logger.debug("Instrumenting class " + file.getAbsolutePath()); InputStream inputStream = null; ClassWriter cw; ClassInstrumenter cv; try { inputStream = new FileInputStream(file); ClassReader cr = new ClassReader(inputStream); cw = new ClassWriter(t... | private void addInstrumentationToSingleClass(File file) { logger.debug("Instrumenting class " + file.getAbsolutePath()); InputStream inputStream = null; ClassWriter cw; ClassInstrumenter cv; try { inputStream = new FileInputStream(file); ClassReader cr = new ClassReader(inputStream); cw = new ClassWriter(t... | 3,230,648 |
public static void main(String[] args) { long startTime = System.currentTimeMillis(); Main main = new Main(); boolean hasCommandsFile = false; String commandsFileName = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--commandsfile")) { hasCommandsFile = true; commandsFileName = args[... | public static void main(String[] args) { long startTime = System.currentTimeMillis(); Main main = new Main(); boolean hasCommandsFile = false; String commandsFileName = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--commandsfile")) { hasCommandsFile = true; commandsFileName = args[... | 3,230,649 |
public static void main(String[] args) { long startTime = System.currentTimeMillis(); Main main = new Main(); boolean hasCommandsFile = false; String commandsFileName = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--commandsfile")) { hasCommandsFile = true; commandsFileName = args[... | public static void main(String[] args) { long startTime = System.currentTimeMillis(); Main main = new Main(); boolean hasCommandsFile = false; String commandsFileName = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--commandsfile")) { hasCommandsFile = true; commandsFileName = args[... | 3,230,650 |
BrowserCanvas(BrowserModel model, BrowserUI view) { if (model == null) throw new NullPointerException("No model."); if (view == null) throw new NullPointerException("No view."); this.model = model; this.view = view; charWidth = getFontMetrics(getFont()).charWidth('m'); s... | BrowserCanvas(BrowserModel model, BrowserUI view) { if (model == null) throw new NullPointerException("No model."); if (view == null) throw new NullPointerException("No view."); this.model = model; this.view = view; setDoubleBuffered(true); } | 3,230,651 |
public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, ... | public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, ... | 3,230,652 |
public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, ... | public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, ... | 3,230,653 |
protected static RubyThread startThread( final Ruby ruby, RubyObject recv, final RubyObject[] args, boolean callInit) { if (!ruby.isBlockGiven()) { System.out.println("No block given to thread!"); } else { System.out.println( "The block ... | protected static RubyThread startThread( final Ruby ruby, RubyObject recv, final RubyObject[] args, boolean callInit) { if (!ruby.isBlockGiven()) { System.out.println("No block given to thread!"); } else { System.out.println( "The block ... | 3,230,654 |
protected static RubyThread startThread( final Ruby ruby, RubyObject recv, final RubyObject[] args, boolean callInit) { if (!ruby.isBlockGiven()) { System.out.println("No block given to thread!"); } else { System.out.println( "The block ... | protected static RubyThread startThread( final Ruby ruby, RubyObject recv, final RubyObject[] args, boolean callInit) { if (!ruby.isBlockGiven()) { System.out.println("No block given to thread!"); } else { System.out.println( "The block ... | 3,230,655 |
protected static RubyThread startThread( final Ruby ruby, RubyObject recv, final RubyObject[] args, boolean callInit) { if (!ruby.isBlockGiven()) { System.out.println("No block given to thread!"); } else { System.out.println( "The block ... | protected static RubyThread startThread( final Ruby ruby, RubyObject recv, final RubyObject[] args, boolean callInit) { if (!ruby.isBlockGiven()) { System.out.println("No block given to thread!"); } else { System.out.println( "The block ... | 3,230,656 |
public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ ... | public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ ... | 3,230,657 |
public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ ... | public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ ... | 3,230,658 |
public RoomList() { super(new String[]{" ", "Name", "Address", "Occupants"}); getColumnModel().setColumnMargin(0); getColumnModel().getColumn(0).setMaxWidth(30); getColumnModel().getColumn(3).setMaxWidth(80); setSelectionBackground(Table.SELECTION_COLOR); ... | public RoomList() { super(new String[]{" ", "Name", "Address", "Occupants"}); getColumnModel().setColumnMargin(0); getColumnModel().getColumn(0).setMaxWidth(30); getColumnModel().getColumn(3).setMaxWidth(80); setSelectionBackground(Table.SELECTION_COLOR); ... | 3,230,659 |
public static void autoJoinConferenceRoom(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); LocalPreferences pref = SettingsManager.getLocal... | public static void autoJoinConferenceRoom(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); LocalPreferences pref = SettingsManager.getLocal... | 3,230,660 |
public void testDirectConstruction() throws Exception { Pixels p = new Pixels(1l); p.setSizeX(new Integer(64)); p.setSizeY(new Integer(64)); p.setSizeZ(new Integer(64)); p.setSizeC(new Integer(64)); p.setSizeT(new Integer(64)); RenderingDef def = new Rende... | public void testDirectConstruction() throws Exception { Pixels p = new Pixels(); p.setId(1l); p.setSizeX(new Integer(64)); p.setSizeY(new Integer(64)); p.setSizeZ(new Integer(64)); p.setSizeC(new Integer(64)); p.setSizeT(new Integer(64)); RenderingDef def ... | 3,230,661 |
public void testDirectConstruction() throws Exception { Pixels p = new Pixels(1l); p.setSizeX(new Integer(64)); p.setSizeY(new Integer(64)); p.setSizeZ(new Integer(64)); p.setSizeC(new Integer(64)); p.setSizeT(new Integer(64)); RenderingDef def = new Rende... | public void testDirectConstruction() throws Exception { Pixels p = new Pixels(1l); p.setSizeX(new Integer(64)); p.setSizeY(new Integer(64)); p.setSizeZ(new Integer(64)); p.setSizeC(new Integer(64)); p.setSizeT(new Integer(64)); RenderingDef def = new Rende... | 3,230,662 |
public void preEvalWithBinding(RubyBinding binding) { Block bindingBlock = binding.getBlock(); pushFrame(bindingBlock.getFrame()); setCRef(bindingBlock.getCRef()); getCurrentFrame().setScope(bindingBlock.getScope()); dynamicVarsStack.push(bindingBlock.getDynamicVariables()... | public void preEvalWithBinding(RubyBinding binding) { Block bindingBlock = binding.getBlock(); pushFrame(bindingBlock.getFrame()); setCRef(bindingBlock.getCRef()); getCurrentFrame().setScope(bindingBlock.getScope()); dynamicVarsStack.push(bindingBlock.getDynamicVariables()... | 3,230,663 |
public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkW... | public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkW... | 3,230,664 |
public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkR... | public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkR... | 3,230,665 |
public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkW... | public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkW... | 3,230,666 |
public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkW... | public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkW... | 3,230,667 |
public static void createGlobals(Ruby ruby) { StringSetter stringSetter = new StringSetter(); LastlineAccessor lastlineAccessor = new LastlineAccessor(); SafeAccessor safeAccessor = new SafeAccessor(); ruby.defineHookedVariable("$/", RubyString.newString(ruby, "\n"), null, stringSetter);... | public static void createGlobals(Ruby ruby) { StringSetter stringSetter = new StringSetter(); LastlineAccessor lastlineAccessor = new LastlineAccessor(); SafeAccessor safeAccessor = new SafeAccessor(); ruby.defineHookedVariable("$/", RubyString.newString(ruby, "\n"), null, stringSetter);... | 3,230,668 |
private void buildGUI() { getContentPane().add(buildToolBar(), BorderLayout.NORTH); getContentPane().add(new JScrollPane(layeredPane), BorderLayout.CENTER); } | private void buildGUI() { getContentPane().add(buildToolBar(), BorderLayout.NORTH); getContentPane().add(new JScrollPane(layeredPane), BorderLayout.CENTER); } | 3,230,672 |
private JPanel buildToolBar() { JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.setRollover(true); bar.add(cancelButton); bar.add(saveButton); return UIUtilities.buildComponentPanelRight(bar); } | private JPanel buildToolBar() { JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.setRollover(true); bar.add(cancelButton); bar.add(saveButton); return UIUtilities.buildComponentPanelRight(bar); } | 3,230,673 |
private void initComponents() { IconManager icons = IconManager.getInstance(); saveButton = new JButton(icons.getIcon(IconManager.SAVE)); saveButton.setText("Save As"); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save the preview image.")); cancelBu... | private void initComponents() { IconManager icons = IconManager.getInstance(); saveButton = new JButton(icons.getIcon(IconManager.SAVE)); saveButton.setText("Save As"); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save the preview image.")); cancelBu... | 3,230,674 |
private void initComponents() { IconManager icons = IconManager.getInstance(); saveButton = new JButton(icons.getIcon(IconManager.SAVE)); saveButton.setText("Save As"); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save the preview image.")); cancelBu... | private void initComponents() { IconManager icons = IconManager.getInstance(); saveButton = new JButton(icons.getIcon(IconManager.SAVE)); saveButton.setText("Save As"); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save the preview image.")); cancelBu... | 3,230,675 |
void saveImage() { //Builds the image to display. boolean unitBar = model.isUnitBar(); String v = model.getUnitBarValue(); int s = (int) model.getUnitBarSize(); if (imageComponents == null) { int width = mainImage.getWidth(); int h = mainImage.getHeight()... | void saveImage() { //Builds the image to display. boolean unitBar = model.isUnitBar(); String v = model.getUnitBarValue(); int s = (int) model.getUnitBarSize(); if (imageComponents == null) { int width = mainImage.getWidth(); int h = mainImage.getHeight()... | 3,230,676 |
void saveImage() { //Builds the image to display. boolean unitBar = model.isUnitBar(); String v = model.getUnitBarValue(); int s = (int) model.getUnitBarSize(); if (imageComponents == null) { int width = mainImage.getWidth(); int h = mainImage.getHeight()... | void saveImage() { //Builds the image to display. boolean unitBar = model.isUnitBar(); String v = model.getUnitBarValue(); int s = (int) model.getUnitBarSize(); if (imageComponents == null) { int width = mainImage.getWidth(); int h = mainImage.getHeight()... | 3,230,677 |
public static RubyClass createExceptionClass(Ruby ruby) { RubyClass exceptionClass = ruby.defineClass("Exception", ruby.getClasses().getObjectClass()); exceptionClass.defineSingletonMethod( "exception", CallbackFactory.getOptSingletonMethod(RubyException.class, "newInstance")); ... | public static RubyClass createExceptionClass(Ruby ruby) { RubyClass exceptionClass = ruby.defineClass("Exception", ruby.getClasses().getObjectClass()); exceptionClass.defineSingletonMethod( "exception", CallbackFactory.getOptSingletonMethod(RubyException.class, "newInstance")); ... | 3,230,678 |
public FileBuffer createFileBuffer(OriginalFile file) throws FileNotFoundException { return new FileBuffer(file, "rw"); } | public FileBuffer createFileBuffer(OriginalFile file) throws FileNotFoundException { return new FileBuffer(getFilesPath(file.getId()),file, "rw"); } | 3,230,679 |
public FileBuffer getReadOnlyFileBuffer(OriginalFile file) throws FileNotFoundException { return new FileBuffer(file, "r"); } | public FileBuffer getReadOnlyFileBuffer(OriginalFile file) throws FileNotFoundException { return new FileBuffer(getFilesPath(file.getId()),file, "r"); } | 3,230,680 |
public FileBuffer getReadWriteFileBuffer(OriginalFile file) throws FileNotFoundException { return new FileBuffer(file, "rw"); } | public FileBuffer getReadWriteFileBuffer(OriginalFile file) throws FileNotFoundException { return new FileBuffer(getFilesPath(file.getId()),file, "rw"); } | 3,230,681 |
FileBuffer (OriginalFile file, String mode) throws FileNotFoundException { this.file = file; this.path = Helper.getFilesPath(file.getId()); delegate = new RandomAccessFile(path, mode); } | FileBuffer (String path, OriginalFile file, String mode) throws FileNotFoundException { this.file = file; this.path = Helper.getFilesPath(file.getId()); delegate = new RandomAccessFile(path, mode); } | 3,230,683 |
FileBuffer (OriginalFile file, String mode) throws FileNotFoundException { this.file = file; this.path = Helper.getFilesPath(file.getId()); delegate = new RandomAccessFile(path, mode); } | FileBuffer (OriginalFile file, String mode) throws FileNotFoundException { this.file = file; delegate = new RandomAccessFile(path, mode); } | 3,230,684 |
public void move(DisplayedNoteHolder newHolder, NoteTree tree, int index) { // Move DisplayedNote holder.removeDisplayedNote(this); holder = newHolder; holder.addDisplayedNote(this, index); // Move Note note.move(newHolder.getNoteHolder(), index); // Move Tree Node boolean selected = treeNode.isSelected(... | public void move(DisplayedNoteHolder newHolder, NoteTree tree, int index) { // Move DisplayedNote holder.removeDisplayedNote(this); holder = newHolder; holder.addDisplayedNote(this, index); // Move Note note.move(newHolder.getNoteHolder(), index); // Move Tree Node boolean selected = treeNode.isSelected(... | 3,230,685 |
private String getFileName(String className, CoverageData instrumentation) { // TODO: Find a better way to get this return "TODO"; //return ClassHelper.getPackageName(className).replace('.', '/') + '/' + instrumentation.getSourceFileName(); } | private String getFileName(String className, CoverageData instrumentation) { // TODO: Find a better way to get this return "TODO"; //return ClassHelper.getPackageName(className).replace('.', '/') + '/' + instrumentation.getSourceFileName(); } | 3,230,687 |
public synchronized void includeModule(IRubyObject arg) { testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaClass().getName() + " (expected Module... | public synchronized void includeModule(IRubyObject arg) { testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaClass().getName() + " (expected Module... | 3,230,688 |
SoftwareUpdateDialog(JFrame owner) { super(owner); setModal(true); setResizable(false); initComponents(); buildGUI(); pack(); } | SoftwareUpdateDialog(JFrame owner, String aboutMessage) { super(owner); setModal(true); setResizable(false); initComponents(); buildGUI(); pack(); } | 3,230,689 |
SoftwareUpdateDialog(JFrame owner) { super(owner); setModal(true); setResizable(false); initComponents(); buildGUI(); pack(); } | SoftwareUpdateDialog(JFrame owner) { super(owner); setModal(true); setResizable(false); initComponents(); buildGUI(); pack(); } | 3,230,690 |
SoftwareUpdateDialog(JFrame owner) { super(owner); setModal(true); setResizable(false); initComponents(); buildGUI(); pack(); } | SoftwareUpdateDialog(JFrame owner) { super(owner); setModal(true); setResizable(false); initComponents(); buildGUI(aboutMessage); pack(); } | 3,230,691 |
private void buildGUI() { getContentPane().add(buildContentPanel(), BorderLayout.CENTER); JPanel p = UIUtilities.buildComponentPanelRight(buildToolBar()); p.setBorder(BorderFactory.createEtchedBorder()); p.setOpaque(true); getContentPane().add(p, BorderLayout.SOUTH); } | private void buildGUI(String aboutMessage) { getContentPane().add(buildContentPanel(), BorderLayout.CENTER); JPanel p = UIUtilities.buildComponentPanelRight(buildToolBar()); p.setBorder(BorderFactory.createEtchedBorder()); p.setOpaque(true); getContentPane().add(p, BorderLayout... | 3,230,692 |
private void buildGUI() { getContentPane().add(buildContentPanel(), BorderLayout.CENTER); JPanel p = UIUtilities.buildComponentPanelRight(buildToolBar()); p.setBorder(BorderFactory.createEtchedBorder()); p.setOpaque(true); getContentPane().add(p, BorderLayout.SOUTH); } | private void buildGUI() { Container c = getContentPane(); c.add(buildAbout(aboutMessage), BorderLayout.NORTH); c.add(buildContentPanel(), BorderLayout.CENTER); JPanel p = UIUtilities.buildComponentPanelRight(buildToolBar()); p.setBorder(BorderFactory.createEtchedBorder()); p.setOpaque... | 3,230,693 |
private void buildGUI() { getContentPane().add(buildContentPanel(), BorderLayout.CENTER); JPanel p = UIUtilities.buildComponentPanelRight(buildToolBar()); p.setBorder(BorderFactory.createEtchedBorder()); p.setOpaque(true); getContentPane().add(p, BorderLayout.SOUTH); } | private void buildGUI() { getContentPane().add(buildContentPanel(), BorderLayout.CENTER); JPanel p = UIUtilities.buildComponentPanelRight(buildToolBar()); p.setBorder(BorderFactory.createEtchedBorder()); p.setOpaque(true); c.add(p, BorderLayout.SOUTH); } | 3,230,694 |
public static RubyClass createFixnumClass(Ruby runtime) { return new FixnumDefinition(runtime).getType(); } | public static RubyClass createFixnumClass(Ruby runtime) { return new FixnumDefinition(runtime).getType(); } | 3,230,695 |
static public Set adaptFoundCGCIHierarchies(Set result) { Set dataObjects = new HashSet(); Map cache = new HashMap(); for (Iterator i = result.iterator(); i.hasNext();) { Object obj = i.next(); if (obj instanceof CategoryGroup) { CategoryGroup cg = (Category... | static public Set adaptFoundCGCIHierarchies(Set result) { Set dataObjects = new HashSet(); Map cache = newCache(); for (Iterator i = result.iterator(); i.hasNext();) { Object obj = i.next(); if (obj instanceof CategoryGroup) { CategoryGroup cg = (CategoryGro... | 3,230,696 |
static public Map adaptFoundDatasetAnnotations(Map result) { Map dataObjects = new HashMap(); Map cache = new HashMap(); for (Iterator i = result.keySet().iterator(); i.hasNext();) { Object key = i.next(); Set value = (Set) result.get(key); dataObjects.put(key,n... | static public Map adaptFoundDatasetAnnotations(Map result) { Map dataObjects = new HashMap(); Map cache = newCache(); for (Iterator i = result.keySet().iterator(); i.hasNext();) { Object key = i.next(); Set value = (Set) result.get(key); dataObjects.put(key,new ... | 3,230,697 |
static public Map adaptFoundImageAnnotations(Map result) { Map dataObjects = new HashMap(); Map cache = new HashMap(); for (Iterator i = result.keySet().iterator(); i.hasNext();) { Object key = i.next(); Set value = (Set) result.get(key); dataObjects.put(key,new... | static public Map adaptFoundImageAnnotations(Map result) { Map dataObjects = new HashMap(); Map cache = newCache(); for (Iterator i = result.keySet().iterator(); i.hasNext();) { Object key = i.next(); Set value = (Set) result.get(key); dataObjects.put(key,new Ha... | 3,230,698 |
static public Set adaptFoundPDIHierarchies(Set result) { Set dataObjects = new HashSet(); Map cache = new HashMap(); for (Iterator i = result.iterator(); i.hasNext();) { Object obj = i.next(); if (obj instanceof Project) { Project prj = (Project) obj; ... | static public Set adaptFoundPDIHierarchies(Set result) { Set dataObjects = new HashSet(); Map cache = newCache(); for (Iterator i = result.iterator(); i.hasNext();) { Object obj = i.next(); if (obj instanceof Project) { Project prj = (Project) obj; ... | 3,230,699 |
static public DataObject adaptLoadedCGCIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(CategoryGroup.class)){ return AdapterUtils.go((CategoryGroup) result, new HashMap()); } else if (rootNodeType.equals(Category.class)){ return AdapterUtils.go((Category) ... | static public DataObject adaptLoadedCGCIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(CategoryGroup.class)){ return AdapterUtils.go((CategoryGroup) result, newCache()); } else if (rootNodeType.equals(Category.class)){ return AdapterUtils.go((Category) res... | 3,230,700 |
static public DataObject adaptLoadedCGCIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(CategoryGroup.class)){ return AdapterUtils.go((CategoryGroup) result, new HashMap()); } else if (rootNodeType.equals(Category.class)){ return AdapterUtils.go((Category) ... | static public DataObject adaptLoadedCGCIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(CategoryGroup.class)){ return AdapterUtils.go((CategoryGroup) result, new HashMap()); } else if (rootNodeType.equals(Category.class)){ return AdapterUtils.go((Category) ... | 3,230,701 |
static public DataObject adaptLoadedPDIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(Project.class)){ return AdapterUtils.go((Project) result, new HashMap()); } else if (rootNodeType.equals(Dataset.class)){ return AdapterUtils.go((Dataset) result, new Has... | static public DataObject adaptLoadedPDIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(Project.class)){ return AdapterUtils.go((Project) result, newCache()); } else if (rootNodeType.equals(Dataset.class)){ return AdapterUtils.go((Dataset) result, new HashMa... | 3,230,702 |
static public DataObject adaptLoadedPDIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(Project.class)){ return AdapterUtils.go((Project) result, new HashMap()); } else if (rootNodeType.equals(Dataset.class)){ return AdapterUtils.go((Dataset) result, new Has... | static public DataObject adaptLoadedPDIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(Project.class)){ return AdapterUtils.go((Project) result, new HashMap()); } else if (rootNodeType.equals(Dataset.class)){ return AdapterUtils.go((Dataset) result, newCach... | 3,230,703 |
static public ProjectData go(Project p, Map cache) { if (check(cache,p)) { return (ProjectData) from(cache, p); } ProjectData pd = new ProjectData(); to(cache, p, pd); if (null == p.getProjectId()) { if (log.isDebugEnabled())log.debug(nullId+p); ... | static public ProjectData go(Project p, Map cache) { if (check(cache,p)) { return (ProjectData) from(cache, p); } ProjectData pd = new ProjectData(); to(cache, p, pd); if (null == p.getProjectId()) { if (log.isDebugEnabled())log.debug(nullId+p); ... | 3,230,704 |
public static RubyModule createKernelModule(IRuby runtime) { RubyModule module = runtime.defineModule("Kernel"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyKernel.class); CallbackFactory objectCallbackFactory = runtime.callbackFactory(RubyObject.class); module.defineMo... | module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select")); module.defineModuleFunction("select", callbackFactory.ge... | 3,230,706 |
public NoteTreeNode(NoteTreeNode parent, DisplayedNote data) { treeItem = new TreeItem(parent.treeItem, SWT.NONE, data.getNote().getIndex()); init(data); } | public NoteTreeNode(NoteTreeNode parent, DisplayedNote data) { treeItem = new TreeItem(parent.treeItem, SWT.NONE, data.getNote().getIndex()); init(data); } | 3,230,707 |
public ModuleMetaClass(IRuby runtime, RubyClass superClass) { super(runtime, null, superClass, runtime.getObject(), "Module", RubyModule.class); } | public ModuleMetaClass(IRuby runtime, RubyClass superClass) { super(runtime, null, superClass, runtime.getObject(), "Module", RubyModule.class); } | 3,230,709 |
public RubyClass newSubClass(String name, RubyModule parent) { return new ModuleMetaClass(name, this, parent); } | public RubyClass newSubClass(String name, RubyModule parent) { return new ModuleMetaClass(name, this, parent); } | 3,230,710 |
protected boolean managedPermissions(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermissions(); Permissions currentP = c... | protected boolean managedPermissions(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermissions(); Permissions currentP = c... | 3,230,711 |
public Details newTransientDetails(IObject obj) { checkReady("transientDetails"); if (obj == null) throw new ApiUsageException("Argument cannot be null."); if (hasPrivilegedToken(obj)) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = cd.createDetails(); if (sou... | public Details newTransientDetails(IObject obj) { checkReady("transientDetails"); if (obj == null) throw new ApiUsageException("Argument cannot be null."); if (hasPrivilegedToken(obj)) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = cd.createDetails(); if (sou... | 3,230,712 |
public Details newTransientDetails(IObject obj) { checkReady("transientDetails"); if (obj == null) throw new ApiUsageException("Argument cannot be null."); if (hasPrivilegedToken(obj)) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = cd.createDetails(); if (sou... | public Details newTransientDetails(IObject obj) { checkReady("transientDetails"); if (obj == null) throw new ApiUsageException("Argument cannot be null."); if (hasPrivilegedToken(obj)) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = cd.createDetails(); if (sou... | 3,230,713 |
public Details newTransientDetails(IObject obj) { checkReady("transientDetails"); if (obj == null) throw new ApiUsageException("Argument cannot be null."); if (hasPrivilegedToken(obj)) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = cd.createDetails(); if (sou... | public Details newTransientDetails(IObject obj) { checkReady("transientDetails"); if (obj == null) throw new ApiUsageException("Argument cannot be null."); if (hasPrivilegedToken(obj)) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = cd.createDetails(); if (sou... | 3,230,714 |
private JToolBar buildViewBar() { JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.setRollover(true); bar.setBorder(null); JToggleButton b = new JToggleButton( controller.getAction(HiViewerControl.TREE_VIEW)); bar.add(b); b = new ... | privateJToolBarbuildViewBar(){JToolBarbar=newJToolBar();bar.setFloatable(false);bar.setRollover(true);bar.setBorder(null);JToggleButtonb=newJToggleButton(controller.getAction(HiViewerControl.TREE_VIEW));bar.add(b);b=newJToggleButton(controller.getAction(HiViewerControl.CLIPBOARD_VIEW));b.setSelected(true);bar.add(b);ba... | 3,230,715 |
public Object findTarget(Object current){ // IMMUTABLES if (null == current | current instanceof Integer | current instanceof String) // TODO can use findTarget then for these as well. { return current; } else // Special cases TODO put into doFindTarget if (current instanceof Date){ return new Timest... | public Object findTarget(Object current){ // IMMUTABLES if (null == current | current instanceof Integer | current instanceof String) // TODO can use findTarget then for these as well. { return current; } else // Special cases TODO put into doFindTarget if (current instanceof Date){ return new Timest... | 3,230,716 |
private void buildGUI() { Container container = getContentPane(); container.setLayout(new BorderLayout(2,2)); JPanel listPanel = new JPanel(); listPanel.setLayout(new GridLayout(1,2)); JPanel leftPanel = new JPanel(); leftPanel.setLayout(new BorderLayout(... | private void buildGUI() { Container container = getContentPane(); container.setLayout(new BorderLayout(2,2)); JPanel listPanel = new JPanel(); listPanel.setLayout(new GridLayout(1,2)); JPanel leftPanel = new JPanel(); leftPanel.setLayout(new BorderLayout(... | 3,230,717 |
public void valueChanged(ListSelectionEvent e) { int i = categoryList.getSelectedIndex(); CategoryGroup group = (CategoryGroup)controller.getCategoryGroups().get(selectedGroup); Category cat = (Category)controller.... | public void valueChanged(ListSelectionEvent e) { int i = categoryList.getSelectedIndex(); CategoryGroup group = (CategoryGroup)controller.getCategoryGroups().get(selectedGroup); Category cat = (Category)controller.... | 3,230,718 |
public Map getCategories() { if (_allCategories == null) { Collection cats = CategoryUtil.getCategories(); if(cats!=null && !cats.isEmpty()){ _allCategories = new LinkedHashMap(); _allCategories.put(ArticleUtil.getBundle().getLocalizedText("All categories"), "-1"); Iterator cat = cats.iterator(); ... | public Map getCategories() { if (_allCategories == null) { Collection cats = CategoryUtil.getCategories(); if(cats!=null && !cats.isEmpty()){ _allCategories = new LinkedHashMap(); _allCategories.put(ArticleUtil.getBundle().getLocalizedText("All categories"), "-1"); Iterator cat = cats.iterator(); ... | 3,230,719 |
public SearchRequest getSearchRequest(String scope, Locale locale) throws SearchException { SearchRequest s = new SearchRequest(); s.addSelection(IWSlideConstants.PROPERTY_CREATION_DATE); s.addSelection(IWSlideConstants.PROPERTY_CATEGORY); s.addScope(new SearchScope(scope)); SearchExpression whereExpression = nul... | public SearchRequest getSearchRequest(String scope, Locale locale) throws SearchException { SearchRequest s = new SearchRequest(); s.addSelection(IWSlideConstants.PROPERTY_CREATION_DATE); s.addSelection(IWSlideConstants.PROPERTY_CATEGORY); s.addScope(new SearchScope(scope)); SearchExpression whereExpression = nul... | 3,230,720 |
public static void main(String args[]) throws IOException { //@START int n = Integer.parseInt(args[0]); int i, c; String s = ""; Integer ii; // the original program used: // Hashtable ht = new Hashtable(); // John Olsson points out that Hashtable is for synchronized access // and we should use instead: HashMap ht =... | public static void main(String args[]) throws IOException { //@START int n = Integer.parseInt(args[0]); int i, c; String s = ""; Integer ii; // the original program used: // Hashtable ht = new Hashtable(); // John Olsson points out that Hashtable is for synchronized access // and we should use instead: HashMap ht =... | 3,230,721 |
private void createUI() { setLayout(new BorderLayout()); tabs = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)) { public Dimension getPreferredSize() { if (getParent() == null) return getPreferredSize(); // calculate the preferre... | private void createUI() { setLayout(new BorderLayout()); tabs = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)) { public Dimension getPreferredSize() { if (getParent() == null) return getPreferredSize(); // calculate the preferre... | 3,230,722 |
public void mouseClicked(MouseEvent e) { } | if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } if (e.ge... | 3,230,723 |
public void mousePressed(MouseEvent e) { if(e.isPopupTrigger()){ return; } if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } } | public void mousePressed(MouseEvent e) { if(e.isPopupTrigger()){ return; } if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } } | 3,230,724 |
public void setSelected(boolean selected) { super.setSelected(selected); this.selected = selected; if (boldWhenActive && selected) { textLabel.setFont(textLabel.getFont().deriveFont(Font.BOLD)); } else { textLabel.setFont(defaultFont); } invalid... | public void setSelected(boolean selected) { super.setSelected(selected); this.selected = selected; if (boldWhenActive && selected) { textLabel.setFont(textLabel.getFont().deriveFont(Font.BOLD)); } else { } invalidate(); repaint(); } | 3,230,725 |
WC(final Broker broker) { _broker = broker; try { String tools = (String) _broker.getValue("config","TemplateTools"); Enumeration tenum = new StringTokenizer(tools); while (tenum.hasMoreElements()) { String toolName = (String) tenum.nextElement(); try { ... | WC(final Broker broker) { _broker = broker; try { String tools = (String) _broker.getValue("config","TemplateTools"); Enumeration tenum = new StringTokenizer(tools); while (tenum.hasMoreElements()) { String toolName = (String) tenum.nextElement(); try { ... | 3,230,726 |
final public ContextTool getTool(String name) throws InvalidContextException { try { return (ContextTool) getMacro(name); } catch (ClassCastException ce) { throw new InvalidContextException("Not a tool, " + name + " is a " + name.getClass()); } } | final public ContextTool getTool(String name) throws InvalidContextException { try { return (ContextTool) getMacro(name); } catch (ClassCastException ce) { throw new InvalidContextException("Not a tool, " + name + " is a " + c + ": " + v); } } | 3,230,727 |
final public WebContext clone( final HttpServletRequest req, final HttpServletResponse resp) { try { // want: new local vars, both existing tools tables, no bean, // plus store req and resp somewhere, plus existing broker WebContext wc = (WebContext) clone(null); ... | final public WebContext clone( final HttpServletRequest req, final HttpServletResponse resp) { try { // want: new local vars, both existing tools tables, no bean, // plus store req and resp somewhere, plus existing broker WebContext wc = (WebContext) clone(); ... | 3,230,728 |
public MethodVisitor visitMethod(final int access, final String name, final String desc, final String signature, final String[] exceptions) { MethodVisitor mv = cv.visitMethod(access, name, desc, signature, exceptions); if (!instrument) return mv; return mv == null ? null : new MethodInstrumenter(classData... | public MethodVisitor visitMethod(final int access, final String name, final String desc, final String signature, final String[] exceptions) { MethodVisitor mv = cv.visitMethod(access, name, desc, signature, exceptions); if (!instrument) return mv; return mv == null ? null : new MethodInstrumenter(classData... | 3,230,729 |
public MethodInstrumenter(ClassData classData, final MethodVisitor mv, final String owner, final String myName, final String myDescriptor, final Pattern ignoreRegexp) { super(mv); this.classData = classData; this.ownerClass = owner; this.myName = myName; this.myDescriptor = myDescriptor; this.ignoreRegex = i... | public MethodInstrumenter(ClassData classData, final MethodVisitor mv, final String owner, final String myName, final String myDescriptor, final Pattern ignoreRegexp) { super(mv); this.classData = classData; this.ownerClass = owner; this.myName = myName; this.myDescriptor = myDescriptor; this.ignoreRegex = i... | 3,230,730 |
public MethodInstrumenter(ClassData classData, final MethodVisitor mv, final String owner, final String myName, final String myDescriptor, final Pattern ignoreRegexp) { super(mv); this.classData = classData; this.ownerClass = owner; this.myName = myName; this.myDescriptor = myDescriptor; this.ignoreRegex = i... | public MethodInstrumenter(ClassData classData, final MethodVisitor mv, final String owner, final String myName, final String myDescriptor, final Pattern ignoreRegexp) { super(mv); this.classData = classData; this.ownerClass = owner; this.myName = myName; this.myDescriptor = myDescriptor; this.ignoreRegex = i... | 3,230,731 |
void initialize(ClipBoardControl controller, ClipBoardModel model) { if (controller == null) throw new NullPointerException("No control."); if (model == null) throw new NullPointerException("No model."); this.model = model; this.controller = controller; initComponents(); ... | void initialize(ClipBoardControl controller, ClipBoardModel model) { if (controller == null) throw new NullPointerException("No control."); if (model == null) throw new NullPointerException("No model."); this.model = model; this.controller = controller; initComponents(); ... | 3,230,733 |
public void composingNotification(final String from, String packetID) { SwingUtilities.invokeLater(new Runnable() { public void run() { String bareAddress = StringUtils.parseBareAddress(from); if (bareAddress.equals(getRoomname())) { ... | public void composingNotification(final String from, String packetID) { SwingUtilities.invokeLater(new Runnable() { public void run() { String bareAddress = StringUtils.parseBareAddress(from); if (bareAddress.equals(getRoomname())) { ... | 3,230,734 |
public void run() { String bareAddress = StringUtils.parseBareAddress(from); if (bareAddress.equals(getRoomname())) { String nickname = StringUtils.parseResource(from); String isTypingText = Res.getString("message.is.typ... | public void run() { String bareAddress = StringUtils.parseBareAddress(from); if (bareAddress.equals(getRoomname())) { String nickname = StringUtils.parseResource(from); String isTypingText = Res.getString("message.is.typ... | 3,230,735 |
public void setSendAndReceiveTypingNotifications(boolean sendAndReceiveTypingNotifications) { sendNotifications = sendAndReceiveTypingNotifications; if (sendAndReceiveTypingNotifications) { SparkManager.getMessageEventManager().addMessageEventNotificationListener(messageManager); ... | public void setSendAndReceiveTypingNotifications(boolean sendAndReceiveTypingNotifications) { sendNotifications = sendAndReceiveTypingNotifications; if (sendAndReceiveTypingNotifications) { SparkManager.getMessageEventManager().addMessageEventNotificationListener(messageManager); ... | 3,230,736 |
private void setupListeners() { chat.addParticipantStatusListener(new DefaultParticipantStatusListener() { public void kicked(String participant) { String nickname = StringUtils.parseResource(participant); insertText(Res.getString("message.user.kicked.from.room", nick... | privatevoidsetupListeners(){chat.addParticipantStatusListener(newDefaultParticipantStatusListener(){publicvoidkicked(Stringparticipant){Stringnickname=StringUtils.parseResource(participant);insertText(Res.getString("message.user.kicked.from.room",nickname));}publicvoidvoiceGranted(Stringparticipant){Stringnickname=Stri... | 3,230,737 |
public void addLog(String action, Class klass, Long id) { Assert.notNull(action); Assert.notNull(klass); Assert.notNull(id); if (Event.class.isAssignableFrom(klass) || EventLog.class.isAssignableFrom(klass) || EventDiff.class.isAssignableFrom(klass)) { log.debug("Not logging creation of logging type:" + kl... | public void addLog(String action, Class klass, Long id) { Assert.notNull(action); Assert.notNull(klass); Assert.notNull(id); if (Event.class.isAssignableFrom(klass) || EventLog.class.isAssignableFrom(klass) || EventDiff.class.isAssignableFrom(klass)) { log.debug("Not logging creation of logging type:" + kl... | 3,230,738 |
public void addLog(String action, Class klass, Long id) { Assert.notNull(action); Assert.notNull(klass); Assert.notNull(id); if (Event.class.isAssignableFrom(klass) || EventLog.class.isAssignableFrom(klass) || EventDiff.class.isAssignableFrom(klass)) { log.debug("Not logging creation of logging type:" + kl... | public void addLog(String action, Class klass, Long id) { Assert.notNull(action); Assert.notNull(klass); Assert.notNull(id); if (Event.class.isAssignableFrom(klass) || EventLog.class.isAssignableFrom(klass) || EventDiff.class.isAssignableFrom(klass)) { log.debug("Not logging creation of logging type:" + kl... | 3,230,739 |
public boolean allowLoad(Class<? extends IObject> klass, Details d) { Assert.notNull(klass); Assert.notNull(d); if (isSystemType(klass)) return true; return SecurityFilter.passesFilter(this, d); } | public boolean allowLoad(Class<? extends IObject> klass, Details d) { Assert.notNull(klass); Assert.notNull(d); if (isSystemType(klass)) return true; return SecurityFilter.passesFilter(this, d); } | 3,230,740 |
protected boolean managedGroup(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (!idEqual(previousDetails.getGroup(), cur... | protected boolean managedGroup(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (!idEqual(previousDetails.getGroup(), cur... | 3,230,742 |
protected boolean managedOwner(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { if (!idEqual(previousDetails.getOwner(), currentDetails.getOwner())) { if (locked) { throw new SecurityViolation("Cannot change owner for:" + obj); } // i... | protected boolean managedOwner(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { if (!idEqual(previousDetails.getOwner(), currentDetails.getOwner())) { if (locked) { throw new SecurityViolation("Cannot change owner for:" + obj); } // i... | 3,230,744 |
protected boolean managedOwner(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { if (!idEqual(previousDetails.getOwner(), currentDetails.getOwner())) { if (locked) { throw new SecurityViolation("Cannot change owner for:" + obj); } // i... | protected boolean managedOwner(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { if (!idEqual(previousDetails.getOwner(), currentDetails.getOwner())) { if (locked) { throw new SecurityViolation("Cannot change owner for:" + obj); } // i... | 3,230,745 |
public void markLockedIfNecessary(IObject iObject) { if (iObject == null) return; Set<IObject> s = new HashSet<IObject>(); IObject[] candidates = em.getLockCandidates(iObject); for (IObject object : candidates) { s.add(object); // TODO NEED TO CHECK FOR OWNERSHIP etc. etc. } CurrentDetails.appendLockCandid... | public void markLockedIfNecessary(IObject iObject) { if (iObject == null) return; Set<IObject> s = new HashSet<IObject>(); IObject[] candidates = em.getLockCandidates(iObject); for (IObject object : candidates) { s.add(object); // TODO NEED TO CHECK FOR OWNERSHIP etc. etc. } CurrentDetails.appendLockCandid... | 3,230,747 |
public static IRubyObject load(IRubyObject recv, IRubyObject[] args) { RubyString file = (RubyString)args[0]; if (recv.getRuntime().getLoadService().load(file.toString())) { return recv.getRuntime().getTrue(); } return recv.getRuntime().getFalse(); } | public static IRubyObject load(IRubyObject recv, IRubyObject[] args) { RubyString file = (RubyString)args[0]; if (recv.getRuntime().getLoadService().load(file.toString())) { return recv.getRuntime().getTrue(); } return recv.getRuntime().getFalse(); } | 3,230,748 |
public void addGroups(Experimenter user, ExperimenterGroup[] groups) { if (user == null) return; // Handled by annotations if (groups == null) return; Experimenter foundUser = iQuery.get(Experimenter.class,user.getId()); for (ExperimenterGroup group : groups) { ExperimenterGroup f... | public void addGroups(Experimenter user, ExperimenterGroup[] groups) { if (user == null) return; // Handled by annotations if (groups == null) return; Experimenter foundUser = internalGetExperimenter(user.getId()); for (ExperimenterGroup group : groups) { ExperimenterGroup foundGr... | 3,230,749 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.