100+ results for 'import gson'
Not the results you expected?
common_tests.py (https://github.com/depassp/Sick-Beard.git) Python · 103 lines
ImportSeriesSelectSeries.js (https://github.com/NzbDrone/NzbDrone.git) JavaScript · 302 lines
2 import React, { Component } from 'react';
3 import { Manager, Popper, Reference } from 'react-popper';
4 import getUniqueElememtId from 'Utilities/getUniqueElementId';
5 import { icons, kinds } from 'Helpers/Props';
6 import Icon from 'Components/Icon';
7 import Portal from 'Components/Portal';
8 import FormInputButton from 'Components/Form/FormInputButton';
9 import Link from 'Components/Link/Link';
11 import TextInput from 'Components/Form/TextInput';
12 import ImportSeriesSearchResultConnector from './ImportSeriesSearchResultConnector';
13 import ImportSeriesTitle from './ImportSeriesTitle';
14 import styles from './ImportSeriesSelectSeries.css';
16 class ImportSeriesSelectSeries extends Component {
JsonQuery.java (https://gitlab.com/skylabase/incubator-fineract) Java · 279 lines
19 package org.apache.fineract.infrastructure.core.api;
21 import java.lang.reflect.Type;
22 import java.math.BigDecimal;
23 import java.util.Arrays;
24 import java.util.Map;
26 import org.apache.commons.lang.ObjectUtils;
27 import org.apache.commons.lang.StringUtils;
28 import org.apache.fineract.infrastructure.core.serialization.FromJsonHelper;
29 import org.apache.fineract.infrastructure.security.domain.BasicPasswordEncodablePlatformUser;
32 import org.joda.time.LocalDate;
34 import com.google.gson.JsonElement;
35 import com.google.gson.reflect.TypeToken;
BrowserIORequest.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 344 lines
✨ Summary
This Java code defines a class that handles file system operations, such as deleting, renaming, and creating directories. It provides a way to interact with the file system in a thread-safe manner, catching any exceptions that may occur during these operations and logging error messages accordingly. The class is designed to work within an integrated development environment (IDE) or other application.
This Java code defines a class that handles file system operations, such as deleting, renaming, and creating directories. It provides a way to interact with the file system in a thread-safe manner, catching any exceptions that may occur during these operations and logging error messages accordingly. The class is designed to work within an integrated development environment (IDE) or other application.
MachineLoaderTest.java (https://github.com/eried/ReplicatorG.git) Java · 275 lines
1 package machineTests;
3 import static org.junit.Assert.*;
5 import java.util.concurrent.LinkedBlockingQueue;
6 import java.util.concurrent.TimeUnit;
8 import org.junit.After;
9 import org.junit.Before;
10 import org.junit.Test;
12 import replicatorg.app.Base;
13 import replicatorg.machine.MachineListener;
IPForwardingRule.java (https://github.com/irshad84/jclouds.git) Java · 294 lines
Outlineable.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 79 lines
✨ Summary
This Java interface defines a contract for objects that can be displayed in an outline view, typically used in text editors or IDEs. It specifies methods to access and manipulate the object’s structure, such as getting its parent, name, type, adding children, retrieving children at specific indices, and counting the number of children.
This Java interface defines a contract for objects that can be displayed in an outline view, typically used in text editors or IDEs. It specifies methods to access and manipulate the object’s structure, such as getting its parent, name, type, adding children, retrieving children at specific indices, and counting the number of children.
AndroidMavenResourcesCompiler.java (https://bitbucket.org/nbargnesi/idea.git) Java · 251 lines
16 package org.jetbrains.android.compiler;
18 import com.intellij.openapi.application.ApplicationManager;
19 import com.intellij.openapi.compiler.*;
20 import com.intellij.openapi.compiler.ex.CompileContextEx;
21 import com.intellij.openapi.module.Module;
22 import com.intellij.openapi.module.ModuleManager;
23 import com.intellij.openapi.util.Computable;
24 import com.intellij.openapi.util.io.FileUtil;
25 import com.intellij.openapi.vfs.LocalFileSystem;
26 import com.intellij.openapi.vfs.VirtualFile;
27 import org.jetbrains.android.compiler.tools.AndroidMavenExecutor;
BufferChanging.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 67 lines
✨ Summary
This Java class, BufferChanging
, is a message sent by the EditPane when its buffer changes. It notifies plugins that the buffer has changed and provides the new buffer object. The class extends PositionChanging
and includes error checking to ensure the new buffer is not null. It also logs an error if it is.
This Java class, BufferChanging
, is a message sent by the EditPane when its buffer changes. It notifies plugins that the buffer has changed and provides the new buffer object. The class extends PositionChanging
and includes error checking to ensure the new buffer is not null. It also logs an error if it is.
IOSGLES30.java (https://gitlab.com/0072016/libgdx-libgdx) Java · 201 lines
CurriculumCourseStartingSolutionInitializer.java (https://github.com/sotty/droolsjbpm-contributed-experiments.git) Java · 193 lines
1 package org.drools.solver.examples.itc2007.curriculumcourse.solver.solution.initializer;
3 import java.util.ArrayList;
4 import java.util.Collections;
5 import java.util.List;
7 import org.apache.commons.lang.builder.CompareToBuilder;
8 import org.drools.WorkingMemory;
9 import org.drools.runtime.rule.FactHandle;
10 import org.drools.solver.core.localsearch.LocalSearchSolverScope;
11 import org.drools.solver.core.solution.initializer.AbstractStartingSolutionInitializer;
12 import org.drools.solver.examples.common.domain.PersistableIdComparator;
13 import org.drools.solver.examples.itc2007.curriculumcourse.domain.Course;
FilterOptions.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 46 lines
✨ Summary
This is a Java interface named FilterOptions
that provides access to filter options for JBrowse, a genome browser. It defines methods to retrieve boolean values and integer indices related to displaying different types of data in the browser, such as imports, fields, variables, primitives, initializers, generalizations, and throws.
This is a Java interface named FilterOptions
that provides access to filter options for JBrowse, a genome browser. It defines methods to retrieve boolean values and integer indices related to displaying different types of data in the browser, such as imports, fields, variables, primitives, initializers, generalizations, and throws.
NSManagedObject+AZCoreRecordImport.h (https://github.com/zwaldowski/AZCoreRecord.git) C Header · 211 lines
1 //
2 // NSManagedObject+AZCoreRecordImport.h
3 // AZCoreRecord
4 //
8 //
10 #import <CoreData/CoreData.h>
12 /** Importing for Core Data.
14 These utilities do their best to safely, securely, and efficiently import Core
15 Data objects using NSDictionary and NSArray to do the bulk of the work. This
16 allows you to simply import to your data model from JSON, XML, or HTTP requests
19 On the whole, the update methods are slower because they always look for
20 existing objects for relationships. However, it is only recommended to import
21 when you are sure the new objects (and all relationships they contain) aren't
22 already in the model, unless you plan on writing yourself a grand old garbage
SmsDataValidator.java (https://gitlab.com/skylabase/incubator-fineract) Java · 137 lines
19 package org.apache.fineract.infrastructure.sms.data;
21 import java.lang.reflect.Type;
22 import java.util.ArrayList;
23 import java.util.List;
24 import java.util.Map;
26 import org.apache.commons.lang.StringUtils;
27 import org.apache.fineract.infrastructure.core.data.ApiParameterError;
28 import org.apache.fineract.infrastructure.core.data.DataValidatorBuilder;
29 import org.apache.fineract.infrastructure.core.exception.InvalidJsonException;
34 import org.springframework.stereotype.Component;
36 import com.google.gson.JsonElement;
37 import com.google.gson.reflect.TypeToken;
RepoSyncManager.java (https://gitlab.com/jazielmendozacarrillo7/auroradroid) Java · 259 lines
29 import com.aurora.adroid.util.PrefUtil;
30 import com.google.gson.Gson;
31 import com.google.gson.reflect.TypeToken;
35 import java.lang.reflect.Type;
36 import java.nio.charset.StandardCharsets;
37 import java.util.ArrayList;
47 private Context context;
48 private Gson gson;
50 public RepoSyncManager(Context context) {
51 this.context = context;
52 this.gson = new Gson();
53 this.repoHashMap.putAll(getRepoHashMap());
54 this.syncHashMap.putAll(getSyncedHashMap());
ReceiptFilterTest.java (https://github.com/wbaumann/SmartReceiptsLibrary.git) Java · 262 lines
1 package co.smartreceipts.android.filters;
3 import android.content.Context;
5 import androidx.test.core.app.ApplicationProvider;
7 import org.json.JSONException;
8 import org.junit.Before;
9 import org.junit.Test;
10 import org.junit.runner.RunWith;
11 import org.robolectric.RobolectricTestRunner;
13 import java.sql.Date;
urls.py (https://github.com/allweb/AHRM.git) Python · 202 lines
instrumented_docker.go (https://gitlab.com/CORP-RESELLER/kubernetes) Go · 233 lines
ExternalServicesConfigurationHelper.java (https://gitlab.com/skylabase/incubator-fineract) Java · 64 lines
19 package org.apache.fineract.integrationtests.common;
21 import java.util.ArrayList;
22 import java.util.HashMap;
24 import com.google.gson.Gson;
25 import com.jayway.restassured.specification.RequestSpecification;
26 import com.jayway.restassured.specification.ResponseSpecification;
28 public class ExternalServicesConfigurationHelper {
59 map.put(name, value);
60 System.out.println("map : " + map);
61 return new Gson().toJson(map);
62 }
GlAccountSheetPopulator.java (https://gitlab.com/skylabase/DataImportTool) Java · 105 lines
10 import org.openmf.mifos.dataimport.dto.accounting.GlAccount;
11 import org.openmf.mifos.dataimport.handler.Result;
12 import org.openmf.mifos.dataimport.http.RestClient;
14 import com.google.gson.Gson;
15 import com.google.gson.JsonArray;
16 import com.google.gson.JsonElement;
17 import com.google.gson.JsonParser;
51 private void parseglAccounts() {
52 Gson gson = new Gson();
53 JsonElement json = new JsonParser().parse(content);
54 JsonArray array = json.getAsJsonArray();
article.php (https://github.com/country3721/choclate.git) PHP · 82 lines
OverriddenAppNameTestCase.java (https://github.com/aprilhu0/jboss-as.git) Java · 175 lines
23 package org.jboss.as.test.integration.ejb.jndi;
25 import javax.naming.Context;
26 import javax.naming.InitialContext;
28 import org.jboss.arquillian.container.test.api.Deployment;
29 import org.jboss.arquillian.junit.Arquillian;
30 import org.jboss.logging.Logger;
31 import org.jboss.shrinkwrap.api.ShrinkWrap;
32 import org.jboss.shrinkwrap.api.exporter.ZipExporter;
33 import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
34 import org.jboss.shrinkwrap.api.spec.JavaArchive;
35 import org.junit.Assert;
GHIndustriesParser.m (https://bitbucket.org/devilscurls/govhack.git) Objective C · 105 lines
ElementDrawer.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 487 lines
32 package net.sf.jasperreports.engine.export.draw;
34 import java.awt.BasicStroke;
35 import java.awt.Graphics2D;
36 import java.awt.Stroke;
37 import java.awt.geom.AffineTransform;
39 import net.sf.jasperreports.engine.JRException;
40 import net.sf.jasperreports.engine.JRLineBox;
41 import net.sf.jasperreports.engine.JRPen;
42 import net.sf.jasperreports.engine.JRPrintElement;
43 import net.sf.jasperreports.engine.export.legacy.BorderOffset;
44 import net.sf.jasperreports.engine.type.LineStyleEnum;
collect.js (https://github.com/potzenheimer/meetshaus.git) JavaScript · 111 lines
GenericPainter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 204 lines
✨ Summary
This Java class, GenericPainter
, is a generic painter for text rendering. It provides methods to paint plain lines and syntax lines with formatting options such as gutter display, line wrapping, and syntax highlighting. The class uses abstract methods for customizing the new line and format strings, allowing subclasses to implement specific rendering behaviors.
This Java class, GenericPainter
, is a generic painter for text rendering. It provides methods to paint plain lines and syntax lines with formatting options such as gutter display, line wrapping, and syntax highlighting. The class uses abstract methods for customizing the new line and format strings, allowing subclasses to implement specific rendering behaviors.
21 package code2html.generic ;
23 import java.io.IOException;
24 import java.io.Writer;
26 import javax.swing.text.Segment;
28 import org.gjt.sp.jedit.syntax.SyntaxStyle;
29 import org.gjt.sp.jedit.syntax.Token;
31 import code2html.line.LinePosition;
32 import code2html.line.LineTabExpander;
33 import code2html.line.LineWrapper;
WeatherData.java (https://gitlab.com/solariswu/weatherforecast) Java · 185 lines
LoanApplicationTransitionApiJsonValidator.java (https://gitlab.com/skylabase/incubator-fineract) Java · 139 lines
24 import java.util.Arrays;
25 import java.util.HashSet;
26 import java.util.List;
27 import java.util.Map;
28 import java.util.Set;
30 import org.apache.commons.lang.StringUtils;
31 import org.apache.fineract.infrastructure.core.data.ApiParameterError;
32 import org.apache.fineract.infrastructure.core.data.DataValidatorBuilder;
33 import org.apache.fineract.infrastructure.core.exception.InvalidJsonException;
39 import org.springframework.stereotype.Component;
41 import com.google.gson.JsonElement;
42 import com.google.gson.reflect.TypeToken;
links_controller.test.php (https://github.com/ShadowCross/croogo.git) PHP · 333 lines
FilterBoundsTest.scala (https://gitlab.com/zachcoyle/geomesa) Scala · 142 lines
ZXReedSolomonEncoder.m (https://gitlab.com/OtherGroup/shadowsocks-iOS) Objective C · 85 lines
import_nomodule_runme.py (https://swig.svn.sourceforge.net/svnroot/swig) Python · 8 lines
DirectoryCache.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 229 lines
✨ Summary
This Java class, DirectoryCache
, caches remote directory listings to improve performance. It stores cached directories in a temporary file and uses a hash table to map URLs to their corresponding cache files. The class provides methods to set, clear, and remove cached directories, as well as a private method for canonicalizing URLs.
This Java class, DirectoryCache
, caches remote directory listings to improve performance. It stores cached directories in a temporary file and uses a hash table to map URLs to their corresponding cache files. The class provides methods to set, clear, and remove cached directories, as well as a private method for canonicalizing URLs.
motores.md (https://gitlab.com/sspinelli/proyectoDeSoftware) Markdown · 43 lines
27 Un sitemap es un archivo en el que se pueden enumerar las páginas de tu sitio web para informar a Google y a otros motores de búsqueda sobre la organización del contenido del mismo. Los rastreadores web de los motores de búsqueda, por ejemplo, el robot de Google, leen este archivo para rastrear el sitio de forma más inteligente.
29 Además, tu sitemap puede proporcionar valiosos metadatos asociados a las páginas que enumeras en el sitemap. Los metadatos son información sobre una página web, como, por ejemplo, cuándo se ha actualizado la página por última vez, con qué frecuencia se cambia y la importancia de esta en relación con otras URL del sitio web.
31 + [Más información sobre sitemap.xml](https://support.google.com/webmasters/answer/156184?hl=es)
XSearchOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 122 lines
✨ Summary
This Java code defines a plugin options pane for XSearch, a feature of the jEdit text editor. It creates a graphical user interface (GUI) with checkboxes to customize various settings, such as replacing built-in actions and font styles, and saves these changes when the user clicks “Save”. The GUI is part of a larger plugin system for jEdit.
This Java code defines a plugin options pane for XSearch, a feature of the jEdit text editor. It creates a graphical user interface (GUI) with checkboxes to customize various settings, such as replacing built-in actions and font styles, and saves these changes when the user clicks “Save”. The GUI is part of a larger plugin system for jEdit.
PopupFactoryImpl.java (https://bitbucket.org/nbargnesi/idea.git) Java · 966 lines
16 package com.intellij.ui.popup;
18 import com.intellij.CommonBundle;
19 import com.intellij.icons.AllIcons;
20 import com.intellij.ide.DataManager;
21 import com.intellij.ide.IdeEventQueue;
22 import com.intellij.ide.IdeTooltipManager;
23 import com.intellij.openapi.Disposable;
24 import com.intellij.openapi.actionSystem.*;
25 import com.intellij.openapi.actionSystem.ex.ActionUtil;
26 import com.intellij.openapi.actionSystem.impl.ActionMenu;
27 import com.intellij.openapi.actionSystem.impl.Utils;
FtpPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 169 lines
✨ Summary
This Java code defines a plugin for the JEdit text editor, specifically an FTP (File Transfer Protocol) plugin. It provides methods to open and save files from an FTP server, as well as initialize the SSH tools home directory with default configuration files. The plugin uses various utility classes and logging mechanisms to handle file operations and errors.
This Java code defines a plugin for the JEdit text editor, specifically an FTP (File Transfer Protocol) plugin. It provides methods to open and save files from an FTP server, as well as initialize the SSH tools home directory with default configuration files. The plugin uses various utility classes and logging mechanisms to handle file operations and errors.
23 package ftp;
25 //{{{ Imports
26 import java.awt.Component;
27 import java.io.*;
28 import java.util.Hashtable;
29 import java.util.Vector;
30 import org.gjt.sp.jedit.*;
31 import org.gjt.sp.jedit.browser.VFSBrowser;
32 import org.gjt.sp.jedit.io.*;
33 import org.gjt.sp.jedit.msg.*;
34 import org.gjt.sp.util.Log;
TagsOptionsPanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 527 lines
✨ Summary
This Java code defines a GUI component for managing tag index files, which are used to store file paths and their corresponding tags. The component allows users to add, remove, and edit tag index files, as well as enable/disable individual files. It also updates the UI in response to changes made by the user.
This Java code defines a GUI component for managing tag index files, which are used to store file paths and their corresponding tags. The component allows users to add, remove, and edit tag index files, as well as enable/disable individual files. It also updates the UI in response to changes made by the user.
JEditMetalTheme.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 72 lines
✨ Summary
This Java code defines a custom theme for the jEdit text editor, specifically for its Metal Look and Feel (L&F). It extends the default MetalTheme to provide minor tweaks, such as custom font settings and color schemes, to enhance the user experience. The theme is designed to be customizable through configuration properties.
This Java code defines a custom theme for the jEdit text editor, specifically for its Metal Look and Feel (L&F). It extends the default MetalTheme to provide minor tweaks, such as custom font settings and color schemes, to enhance the user experience. The theme is designed to be customizable through configuration properties.
javascript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 550 lines
Crossings.java
(http://loon-simple.googlecode.com/svn/trunk/)
Java · 503 lines
✨ Summary
This Java code implements a data structure for storing and managing ranges of values with associated directions (0 for increasing, 1 for decreasing). It provides methods for inserting, removing, and recording new ranges, ensuring that overlapping ranges are handled correctly. The implementation uses arrays to store the ranges and their corresponding direction flags.
This Java code implements a data structure for storing and managing ranges of values with associated directions (0 for increasing, 1 for decreasing). It provides methods for inserting, removing, and recording new ranges, ensuring that overlapping ranges are handled correctly. The implementation uses arrays to store the ranges and their corresponding direction flags.
SessionsPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 308 lines
✨ Summary
This Java code is part of a plugin for an integrated development environment (IDE). It manages session switching between different views within the IDE, allowing users to save and load their current work sessions. The code creates a toolbar or buffer list component that displays a list of available sessions, enabling users to switch between them.
This Java code is part of a plugin for an integrated development environment (IDE). It manages session switching between different views within the IDE, allowing users to save and load their current work sessions. The code creates a toolbar or buffer list component that displays a list of available sessions, enabling users to switch between them.
24 import java.awt.BorderLayout;
25 import java.util.Hashtable;
26 import java.util.Vector;
27 import javax.swing.JCheckBox;
28 import javax.swing.JComponent;
29 import javax.swing.JOptionPane;
30 import javax.swing.SwingUtilities;
31 import org.gjt.sp.jedit.*;
32 import org.gjt.sp.jedit.gui.DockableWindowManager;
33 import org.gjt.sp.jedit.msg.*;
upload_gtest.py (https://bitbucket.org/ultra_iter/qt-vtl.git) Python · 78 lines
MSVSVersion.py (https://bitbucket.org/ultra_iter/qt-vtl.git) Python · 200 lines
PluginListHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 278 lines
✨ Summary
This Java class, PluginListHandler
, is an XML handler that parses plugin list data from a DTD file. It creates instances of PluginList.Plugin
and PluginList.Branch
objects based on the parsed XML elements, and stores their attributes in corresponding fields. The class also handles nested elements and dependencies between plugins.
This Java class, PluginListHandler
, is an XML handler that parses plugin list data from a DTD file. It creates instances of PluginList.Plugin
and PluginList.Branch
objects based on the parsed XML elements, and stores their attributes in corresponding fields. The class also handles nested elements and dependencies between plugins.
NodeRenamerAction.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 335 lines
✨ Summary
This Java code is part of a project that allows users to rename nodes (files, directories) within a project structure. It provides a dialog for inputting new names and includes options to prevent changes on disk. The code handles renaming files, directories, and projects, and updates the project structure accordingly.
This Java code is part of a project that allows users to rename nodes (files, directories) within a project structure. It provides a dialog for inputting new names and includes options to prevent changes on disk. The code handles renaming files, directories, and projects, and updates the project structure accordingly.
19 package projectviewer.action;
21 //{{{ Imports
22 import java.io.File;
23 import java.util.Iterator;
25 import java.awt.FlowLayout;
26 import java.awt.GridLayout;
27 import java.awt.BorderLayout;
28 import java.awt.event.ActionEvent;
29 import java.awt.event.ActionListener;
31 import javax.swing.JLabel;
32 import javax.swing.JPanel;
SessionPropertiesShowing.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 104 lines
✨ Summary
This Java class, SessionPropertiesShowing
, is a message sent on an “EditBus” before displaying a dialog for session properties. It allows third parties to add custom property panes and groups to the dialog. The class provides methods to access the session and its associated property group, as well as methods to add property panes and groups to the dialog.
This Java class, SessionPropertiesShowing
, is a message sent on an “EditBus” before displaying a dialog for session properties. It allows third parties to add custom property panes and groups to the dialog. The class provides methods to access the session and its associated property group, as well as methods to add property panes and groups to the dialog.
SessionsOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 163 lines
✨ Summary
This Java code defines a plugin options pane for the Sessions plugin in jEdit, a text editor. It creates a GUI with checkboxes and radio buttons to customize session settings, such as auto-saving, toolbar visibility, and title bar display. The settings are saved when the user clicks “OK” or closes the dialog box.
This Java code defines a plugin options pane for the Sessions plugin in jEdit, a text editor. It creates a GUI with checkboxes and radio buttons to customize session settings, such as auto-saving, toolbar visibility, and title bar display. The settings are saved when the user clicks “OK” or closes the dialog box.
PanelStack.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 67 lines
✨ Summary
This Java class, PanelStack
, is a custom JPanel that allows for easy addition and switching of other JPanels by name. It uses a HashMap to store panels with names, and provides methods to add panels, raise (switch) to a specific panel, and retrieve a panel by its name.
This Java class, PanelStack
, is a custom JPanel that allows for easy addition and switching of other JPanels by name. It uses a HashMap to store panels with names, and provides methods to add panels, raise (switch) to a specific panel, and retrieve a panel by its name.
ScriptEngineService.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 47 lines
✨ Summary
This Java interface defines a contract for mapping modes to script engines. It provides two methods: getEngineFactoryClass()
and getMode()
, which return the class of the script engine factory used in the ScriptEngineManager and the mode associated with the script engine, respectively. This allows different modes to be mapped to specific script engines.
This Java interface defines a contract for mapping modes to script engines. It provides two methods: getEngineFactoryClass()
and getMode()
, which return the class of the script engine factory used in the ScriptEngineManager and the mode associated with the script engine, respectively. This allows different modes to be mapped to specific script engines.
Script.groovy (https://bitbucket.org/nbargnesi/idea.git) Groovy · 17 lines
javap.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 63 lines
ViewRegisters.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 184 lines
✨ Summary
This Java code creates a dialog window for viewing registers in an integrated development environment (IDE). It displays a list of register names and their corresponding values, with each value represented as a single character. The user can select a register name from the list to view its value in a text area. The dialog includes buttons for closing the window and canceling the operation.
This Java code creates a dialog window for viewing registers in an integrated development environment (IDE). It displays a list of register names and their corresponding values, with each value represented as a single character. The user can select a register name from the list to view its value in a text area. The dialog includes buttons for closing the window and canceling the operation.
JpsAndroidModuleProperties.java (https://bitbucket.org/nbargnesi/idea.git) Java · 80 lines
16 package org.jetbrains.jps.android.model.impl;
18 import com.intellij.util.xmlb.annotations.AbstractCollection;
19 import com.intellij.util.xmlb.annotations.Attribute;
20 import com.intellij.util.xmlb.annotations.Tag;
21 import org.jetbrains.android.util.AndroidCommonUtils;
23 import java.util.ArrayList;
24 import java.util.List;
IndentRule.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 50 lines
✨ Summary
This Java interface defines a contract for an IndentRule
that applies indentation rules to lines of text in a buffer. It specifies a method apply
that takes several parameters, including the buffer and line indices, and returns an indent action list that can be modified by the rule. The purpose is to manage indentation formatting in a text editor.
This Java interface defines a contract for an IndentRule
that applies indentation rules to lines of text in a buffer. It specifies a method apply
that takes several parameters, including the buffer and line indices, and returns an indent action list that can be modified by the rule. The purpose is to manage indentation formatting in a text editor.
EncodingWidgetFactory.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 90 lines
✨ Summary
This Java code defines a factory class EncodingWidgetFactory
that creates and returns an instance of EncodingWidget
, which is a custom widget for displaying encoding information in a text editor. The widget displays the current encoding of a buffer and allows users to change it by double-clicking on the widget, opening a new buffer options dialog.
This Java code defines a factory class EncodingWidgetFactory
that creates and returns an instance of EncodingWidget
, which is a custom widget for displaying encoding information in a text editor. The widget displays the current encoding of a buffer and allows users to change it by double-clicking on the widget, opening a new buffer options dialog.
25 package org.gjt.sp.jedit.gui.statusbar;
27 //{{{ Imports
28 import java.awt.event.MouseAdapter;
29 import java.awt.event.MouseEvent;
30 import javax.swing.JComponent;
31 import javax.swing.JLabel;
32 import org.gjt.sp.jedit.Buffer;
33 import org.gjt.sp.jedit.View;
34 import org.gjt.sp.jedit.gui.BufferOptions;
35 import org.gjt.sp.jedit.jEdit;
36 //}}}
BaseTextCommentCellAppearance.java (https://bitbucket.org/nbargnesi/idea.git) Java · 71 lines
16 package com.intellij.openapi.roots.ui.util;
18 import com.intellij.openapi.roots.ui.CellAppearanceEx;
19 import com.intellij.openapi.util.text.StringUtil;
20 import com.intellij.ui.HtmlListCellRenderer;
21 import com.intellij.ui.SimpleColoredComponent;
22 import com.intellij.ui.SimpleTextAttributes;
23 import org.jetbrains.annotations.NotNull;
25 import javax.swing.*;
27 public abstract class BaseTextCommentCellAppearance implements CellAppearanceEx {
TestResultsViewer.java (https://bitbucket.org/nbargnesi/idea.git) Java · 80 lines
16 package com.intellij.execution.testframework.sm.runner.ui;
18 import com.intellij.execution.testframework.AbstractTestProxy;
19 import com.intellij.execution.testframework.TestFrameworkRunningModel;
20 import com.intellij.execution.testframework.sm.runner.SMTestProxy;
21 import com.intellij.openapi.Disposable;
22 import org.jetbrains.annotations.NotNull;
23 import org.jetbrains.annotations.Nullable;
REFilterInputStream.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 122 lines
✨ Summary
This Java class, REFilterInputStream
, filters an input stream by replacing occurrences of a given regular expression with replacement text. It reads from the input stream and replaces matches with the specified replacement string, allowing for interpolation of match data into the replacement string. The filter is applied on-the-fly as the stream is read.
This Java class, REFilterInputStream
, filters an input stream by replacing occurrences of a given regular expression with replacement text. It reads from the input stream and replaces matches with the specified replacement string, allowing for interpolation of match data into the replacement string. The filter is applied on-the-fly as the stream is read.
BSHTryStatement.java
(http://beanshell2.googlecode.com/svn/trunk/)
Java · 195 lines
✨ Summary
This Java code implements a try-catch block in a scripting language, specifically BeanShell. It evaluates the contents of a try block and catches any resulting TargetErrors generated by the script, then executes corresponding catch blocks to handle exceptions. If no match is found, it evaluates a finally block before returning control to the caller.
This Java code implements a try-catch block in a scripting language, specifically BeanShell. It evaluates the contents of a try block and catches any resulting TargetErrors generated by the script, then executes corresponding catch blocks to handle exceptions. If no match is found, it evaluates a finally block before returning control to the caller.
gpio.txt (http://omnia2droid.googlecode.com/svn/trunk/) Plain Text · 566 lines
441 data to gpiochip_add().
443 Initialization order can be important. For example, when a device relies on
444 an I2C-based GPIO, its probe() routine should only be called after that GPIO
445 becomes available. That may mean the device should not be registered until
462 know for example that GPIO #23 controls the write protect line used to
463 protect boot loader segments in flash memory. System upgrade procedures
464 may need to temporarily remove that protection, first importing a GPIO,
465 then changing its output state, then updating the code before re-enabling
466 the write protection. In normal use, GPIO #23 would never be touched,
559 the sysfs interface by gpio_export(). The driver can control whether the
560 signal direction may change. This helps drivers prevent userspace code
561 from accidentally clobbering important system state.
563 This explicit exporting can help with debugging (by making some kinds
intro.xml (http://hadesmem.googlecode.com/svn/trunk/) XML · 0 lines
28 <para>
29 <emphasis role="bold">
30 Important note: In this documentation we use term <emphasis>string</emphasis> to
31 designate a sequence of <emphasis>characters</emphasis> stored in an arbitrary container.
32 A <emphasis>string</emphasis> is not restricted to <code>std::basic_string</code> and
ExpandableDictionary.java
(http://scandinavian-keyboard.googlecode.com/svn/trunk/)
Java · 458 lines
✨ Summary
This Java code outputs a hexadecimal representation of Unicode character codes, mapping each code to its corresponding Unicode character. The data is generated from a file called UnicodeData.txt
and is used to create a lookup table for easy access to Unicode characters by their code points.
This Java code outputs a hexadecimal representation of Unicode character codes, mapping each code to its corresponding Unicode character. The data is generated from a file called UnicodeData.txt
and is used to create a lookup table for easy access to Unicode characters by their code points.
build.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 61 lines
VFSBrowser.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 2035 lines
✨ Summary
This Java code is part of a file manager application, specifically a GUI component that allows users to filter and select files based on certain criteria. It provides various filters, such as directories only, glob patterns, and history-based filtering, which can be used to narrow down the selection of files in a directory tree view.
This Java code is part of a file manager application, specifically a GUI component that allows users to filter and select files based on certain criteria. It provides various filters, such as directories only, glob patterns, and history-based filtering, which can be used to narrow down the selection of files in a directory tree view.
23 package org.gjt.sp.jedit.browser;
25 //{{{ Imports
26 import org.gjt.sp.jedit.bsh.*;
27 import javax.swing.border.EmptyBorder;
28 import javax.swing.event.*;
29 import javax.swing.*;
30 import java.awt.event.*;
31 import java.awt.*;
32 import java.io.File;
33 import java.util.*;
34 import java.util.List;
AccumulativeRunnable.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 143 lines
✨ Summary
This Java class, AccumulativeRunnable
, allows for accumulating data of a specific type (T
) and then processing it when executed. It provides a way to accumulate data in a thread-safe manner and process it on the Event Dispatch Thread (EDT) using Swing’s SwingUtilities.invokeLater
. This is useful for handling multiple updates or events that need to be processed sequentially, ensuring only the last update is delivered.
This Java class, AccumulativeRunnable
, allows for accumulating data of a specific type (T
) and then processing it when executed. It provides a way to accumulate data in a thread-safe manner and process it on the Event Dispatch Thread (EDT) using Swing’s SwingUtilities.invokeLater
. This is useful for handling multiple updates or events that need to be processed sequentially, ensuring only the last update is delivered.
9 package ise.plugin.svn.library.swingworker;
11 import java.util.*;
12 import javax.swing.SwingUtilities;
26 * {@code text} string to the JLabel.setTextImpl(String text) on the EDT.
27 * In the event JLabel.setText is called rapidly many times off the EDT
28 * we will get many updates on the EDT but only the last one is important.
29 * (Every next updates overrides the previous one.)
30 * We might want to implement this {@code setText} in a way that only
PHPSideKickCompletion.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 106 lines
✨ Summary
This Java class, PHPSideKickCompletion, extends SideKickCompletion to provide completion suggestions for PHP development. It analyzes the current word and surrounding text to suggest matching items from a list of classes, methods, and other PHP elements. The class handles keystrokes, inserting suggested items into the text area, and updating the caret position accordingly.
This Java class, PHPSideKickCompletion, extends SideKickCompletion to provide completion suggestions for PHP development. It analyzes the current word and surrounding text to suggest matching items from a list of classes, methods, and other PHP elements. The class handles keystrokes, inserting suggested items into the text area, and updating the caret position accordingly.
1 package gatchan.phpparser.sidekick;
3 import gatchan.phpparser.project.itemfinder.PHPItemCellRenderer;
4 import net.sourceforge.phpdt.internal.compiler.ast.ClassDeclaration;
5 import net.sourceforge.phpdt.internal.compiler.ast.ClassHeader;
6 import net.sourceforge.phpdt.internal.compiler.ast.MethodDeclaration;
7 import net.sourceforge.phpdt.internal.compiler.ast.MethodHeader;
8 import net.sourceforge.phpdt.internal.compiler.parser.Outlineable;
9 import org.gjt.sp.jedit.jEdit;
10 import org.gjt.sp.jedit.textarea.Selection;
11 import sidekick.SideKickCompletion;
13 import javax.swing.*;
DefaultSessionPropertyPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 116 lines
✨ Summary
This Java code defines a class DefaultSessionPropertyPane
that extends another class, implementing an interface. It creates a graphical user interface (GUI) for editing session properties in a text editor. The GUI allows users to set a base directory and select a preferred mode for the session. When the “Browse” button is clicked, it opens a file chooser dialog to select a directory.
This Java code defines a class DefaultSessionPropertyPane
that extends another class, implementing an interface. It creates a graphical user interface (GUI) for editing session properties in a text editor. The GUI allows users to set a base directory and select a preferred mode for the session. When the “Browse” button is clicked, it opens a file chooser dialog to select a directory.
26 import java.awt.FlowLayout;
27 import java.awt.event.ActionEvent;
28 import java.awt.event.ActionListener;
29 import javax.swing.JButton;
30 import javax.swing.JComboBox;
31 import javax.swing.JFileChooser;
32 import javax.swing.JPanel;
33 import javax.swing.JTextField;
34 import javax.swing.UIManager;
35 import org.gjt.sp.jedit.jEdit;
LCMOptions.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 135 lines
✨ Summary
This Java code defines a plugin options pane for a text editor, specifically for managing dirty line providers. It allows users to select a provider from a dropdown list and view its specific options in a panel. The selected provider’s options are saved when the user clicks “Save”. The code uses a combination of Swing components and service management to interact with the text editor.
This Java code defines a plugin options pane for a text editor, specifically for managing dirty line providers. It allows users to select a provider from a dropdown list and view its specific options in a panel. The selected provider’s options are saved when the user clicks “Save”. The code uses a combination of Swing components and service management to interact with the text editor.
21 package lcm;
23 import java.awt.Component;
24 import java.awt.Insets;
25 import java.awt.event.ActionEvent;
26 import java.awt.event.ActionListener;
28 import javax.swing.JComboBox;
29 import javax.swing.JPanel;
30 import javax.swing.border.TitledBorder;
32 import org.gjt.sp.jedit.AbstractOptionPane;
yab.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 319 lines
default.abbrevs (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 97 lines
34 sp|jEdit.setProperty(\|);
35 sbp|jEdit.setBooleanProperty(\|);
36 ogs|import org.gjt.sp.
37 ogsj|import org.gjt.sp.jedit.
38 ogsu|import org.gjt.sp.util.
39 loge|Log.log(Log.ERROR,this,\|);
40 logw|Log.log(Log.WARNING,this,\|);
51 sig|signal
52 [xsl]
53 ai|<xsl:apply-imports/>
54 an|<xsl:attribute name="\|"></xsl:attribute>
55 asn|<xsl:attribute-set name="\|">\n</xsl:attribute-set>
66 fes|<xsl:for-each select="\|">\n</xsl:for-each>
67 f|<xsl:fallback>\|</xsl:fallback>
68 imh|<xsl:import href="\|"/>
69 inh|<xsl:include href="\|"/>
70 it|<xsl:if test="\|">\n</xsl:if>
MouseActions.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 56 lines
✨ Summary
This Java class, MouseActions
, simplifies mouse handling by providing a standardized way to retrieve actions for specific mouse events and modifier keys. It uses a property-based approach to map event combinations to corresponding actions, allowing for easy customization through configuration files. The class is designed to work with the JEdit text editor.
This Java class, MouseActions
, simplifies mouse handling by providing a standardized way to retrieve actions for specific mouse events and modifier keys. It uses a property-based approach to map event combinations to corresponding actions, allowing for easy customization through configuration files. The class is designed to work with the JEdit text editor.
build-standalone.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 82 lines
DateSelectorPanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 467 lines
✨ Summary
This Java code creates a graphical user interface (GUI) for selecting dates using a calendar panel. It allows users to navigate through different months and years, with options to roll forward and backward in time. The GUI also includes features such as setting “today” to a specific date and displaying the currently selected date.
This Java code creates a graphical user interface (GUI) for selecting dates using a calendar panel. It allows users to navigate through different months and years, with options to roll forward and backward in time. The GUI also includes features such as setting “today” to a specific date and displaying the currently selected date.
TarOutputStream.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 331 lines
✨ Summary
This Java code implements a TarBuffer class that writes data to a tar archive. It manages buffers of varying lengths, assembling complete records for writing and handling small buffer sizes by copying data into larger buffers. The class provides methods for writing bytes to the archive, including awareness of the current entry’s size limit and record buffering requirements.
This Java code implements a TarBuffer class that writes data to a tar archive. It manages buffers of varying lengths, assembling complete records for writing and handling small buffer sizes by copying data into larger buffers. The class provides methods for writing bytes to the archive, including awareness of the current entry’s size limit and record buffering requirements.
GrabKeyDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 561 lines
✨ Summary
This Java code creates a dialog for setting and managing keyboard shortcuts. It allows users to input a shortcut, check if it’s already in use, and override existing shortcuts. The dialog also includes features like confirmation prompts and error handling for duplicate or conflicting shortcuts. It appears to be part of a larger application that uses keyboard shortcuts extensively.
This Java code creates a dialog for setting and managing keyboard shortcuts. It allows users to input a shortcut, check if it’s already in use, and override existing shortcuts. The dialog also includes features like confirmation prompts and error handling for duplicate or conflicting shortcuts. It appears to be part of a larger application that uses keyboard shortcuts extensively.
23 package org.gjt.sp.jedit.gui;
25 //{{{ Imports
26 import javax.swing.border.*;
27 import javax.swing.*;
28 import java.awt.event.*;
29 import java.awt.*;
30 import java.lang.reflect.Field;
31 import java.util.List;
33 import org.gjt.sp.jedit.*;
34 import org.gjt.sp.jedit.input.AbstractInputHandler;
35 import org.gjt.sp.util.Log;
progress.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 3743 lines
463 <MARK_FOLLOWING TYPE="FUNCTION">:image-up</MARK_FOLLOWING>
464 <MARK_FOLLOWING TYPE="FUNCTION">:immediate-display</MARK_FOLLOWING>
465 <MARK_FOLLOWING TYPE="FUNCTION">:import-node</MARK_FOLLOWING>
466 <MARK_FOLLOWING TYPE="FUNCTION">:in-handle</MARK_FOLLOWING>
467 <MARK_FOLLOWING TYPE="FUNCTION">:increment-exclusive-id</MARK_FOLLOWING>
ScrollEffect.java
(http://loon-simple.googlecode.com/svn/trunk/)
Java · 233 lines
✨ Summary
This Java class represents a scroll effect in an Android game. It extends LObject
and implements ISprite
, allowing it to be displayed on the screen. The class has properties for texture, position, size, and animation settings, which are used to create a scrolling effect based on the direction specified by the code
variable.
This Java class represents a scroll effect in an Android game. It extends LObject
and implements ISprite
, allowing it to be displayed on the screen. The class has properties for texture, position, size, and animation settings, which are used to create a scrolling effect based on the direction specified by the code
variable.
1 package org.loon.framework.android.game.action.sprite.effect;
3 import org.loon.framework.android.game.action.map.Config;
4 import org.loon.framework.android.game.action.sprite.ISprite;
5 import org.loon.framework.android.game.core.LObject;
6 import org.loon.framework.android.game.core.LSystem;
7 import org.loon.framework.android.game.core.geom.RectBox;
8 import org.loon.framework.android.game.core.graphics.opengl.GLEx;
9 import org.loon.framework.android.game.core.graphics.opengl.LTexture;
10 import org.loon.framework.android.game.core.timer.LTimer;
TriangleBasic.java
(http://loon-simple.googlecode.com/svn/trunk/)
Java · 298 lines
✨ Summary
This Java code implements a basic triangle triangulation algorithm, which takes a polygon as input and divides it into triangles. It uses the Ear Clipping algorithm to simplify the polygon and create triangles. The code includes classes for points and point lists, and methods for adding points, checking if a point is inside a triangle, and processing the polygon.
This Java code implements a basic triangle triangulation algorithm, which takes a polygon as input and divides it into triangles. It uses the Ear Clipping algorithm to simplify the polygon and create triangles. The code includes classes for points and point lists, and methods for adding points, checking if a point is inside a triangle, and processing the polygon.
HashMap.java (https://bitbucket.org/nbargnesi/idea.git) Java · 40 lines
AnyKeyboardView.java
(http://softkeyboard.googlecode.com/svn/)
Java · 237 lines
✨ Summary
This Java code defines a custom keyboard view for Android, extending the KeyboardView
class. It provides additional functionality such as simulating long press events and handling keyboard layout changes. The code also includes instrumentation features for testing purposes, allowing for automated playback of keyboard interactions.
This Java code defines a custom keyboard view for Android, extending the KeyboardView
class. It provides additional functionality such as simulating long press events and handling keyboard layout changes. The code also includes instrumentation features for testing purposes, allowing for automated playback of keyboard interactions.
17 package com.menny.android.anysoftkeyboard;
19 import android.content.Context;
20 import android.inputmethodservice.Keyboard;
21 import android.inputmethodservice.KeyboardView;
22 import android.inputmethodservice.Keyboard.Key;
23 import android.util.AttributeSet;
24 import android.util.Log;
26 import com.menny.android.anysoftkeyboard.keyboards.AnyKeyboard;
28 public class AnyKeyboardView extends KeyboardView {
CommandoDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 446 lines
✨ Summary
This Java code creates a graphical user interface (GUI) for managing command-line shells and commands. It allows users to create, edit, and execute shell scripts, as well as copy and paste text from the GUI’s text area. The GUI features multiple panels for displaying settings, executing commands, and editing scripts.
This Java code creates a graphical user interface (GUI) for managing command-line shells and commands. It allows users to create, edit, and execute shell scripts, as well as copy and paste text from the GUI’s text area. The GUI features multiple panels for displaying settings, executing commands, and editing scripts.
ElementUtil.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 154 lines
✨ Summary
This Java code is used to convert a tree node representing text in a buffer into a SideKickAsset, which wraps a SideKickElement. It calculates positions for each element and replaces the original SideKickElement with a SideKickAsset that contains these positions. The conversion is done on a Swing thread to ensure it’s safe for the GUI.
This Java code is used to convert a tree node representing text in a buffer into a SideKickAsset, which wraps a SideKickElement. It calculates positions for each element and replaces the original SideKickElement with a SideKickAsset that contains these positions. The conversion is done on a Swing thread to ensure it’s safe for the GUI.
build.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 48 lines
BufferListTreeNode.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 144 lines
✨ Summary
This Java class represents a tree node for a BufferList data structure, which is likely used in an integrated development environment (IDE). It extends the DefaultMutableTreeNode class and provides additional functionality such as storing user paths, buffer objects, and flags to track expansion and connection status.
This Java class represents a tree node for a BufferList data structure, which is likely used in an integrated development environment (IDE). It extends the DefaultMutableTreeNode class and provides additional functionality such as storing user paths, buffer objects, and flags to track expansion and connection status.
CaretChanging.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 53 lines
✨ Summary
This Java class, CaretChanging
, is a message emitted by plugins to notify that the caret position is about to change in a text area. It extends TextAreaUpdate
and provides information about the new caret position. The class is deprecated in favor of BufferChanging
.
This Java class, CaretChanging
, is a message emitted by plugins to notify that the caret position is about to change in a text area. It extends TextAreaUpdate
and provides information about the new caret position. The class is deprecated in favor of BufferChanging
.
SuggestionTree.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 214 lines
✨ Summary
This Java class implements a spell checking system, specifically a suggestion tree algorithm. It uses two data structures: a word trie and an offset trie to store words and their variations. The getSuggestions
method generates a list of suggested words based on the input word’s soundalikes, permutations, and prefix matches, with suggestions sorted by Levenshtein distance.
This Java class implements a spell checking system, specifically a suggestion tree algorithm. It uses two data structures: a word trie and an offset trie to store words and their variations. The getSuggestions
method generates a list of suggested words based on the input word’s soundalikes, permutations, and prefix matches, with suggestions sorted by Levenshtein distance.
20 package voxspellcheck;
22 import java.util.Vector;
23 import java.util.TreeMap;
24 import java.util.SortedMap;
25 import java.util.TreeSet;
26 import java.util.Collections;
27 import java.util.Comparator;
28 import java.util.Set;
29 import java.util.HashSet;
31 import org.gjt.sp.util.Log;
33 public class SuggestionTree
CopyData.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 149 lines
✨ Summary
This Java class, CopyData
, represents a data structure for copying files from a source to a destination. It can handle single file copies, multiple file copies, and remote repository copies. The class provides methods for setting and getting various parameters such as the source file, destination file, revision, and commit message.
This Java class, CopyData
, represents a data structure for copying files from a source to a destination. It can handle single file copies, multiple file copies, and remote repository copies. The class provides methods for setting and getting various parameters such as the source file, destination file, revision, and commit message.
Copy.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 87 lines
✨ Summary
This Java class implements a copy functionality for a Subversion (SVN) plugin within an integrated development environment (IDE). When executed, it retrieves selected SVN paths, displays a dialog to input additional information, and then performs the actual copy operation using another action class. It handles user authentication and cancels if the user chooses not to proceed.
This Java class implements a copy functionality for a Subversion (SVN) plugin within an integrated development environment (IDE). When executed, it retrieves selected SVN paths, displays a dialog to input additional information, and then performs the actual copy operation using another action class. It handles user authentication and cancels if the user chooses not to proceed.
29 package ise.plugin.svn.gui.br;
31 import java.awt.event.ActionListener;
32 import java.awt.event.ActionEvent;
33 import javax.swing.JOptionPane;
34 import javax.swing.JTree;
35 import javax.swing.tree.TreePath;
36 import org.gjt.sp.jedit.View;
37 import ise.plugin.svn.action.*;
38 import ise.plugin.svn.gui.CopyDialog;
39 import ise.plugin.svn.gui.DirTreeNode;
40 import ise.plugin.svn.data.*;
FirewallOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 131 lines
✨ Summary
This Java code defines a FirewallOptionPane
class that extends AbstractOptionPane
. It creates a GUI panel for configuring firewall settings, including HTTP and SOCKS proxy options. The panel is initialized with default values from a configuration file and allows users to enable or disable these options. When the user saves their changes, the new settings are saved to the configuration file.
This Java code defines a FirewallOptionPane
class that extends AbstractOptionPane
. It creates a GUI panel for configuring firewall settings, including HTTP and SOCKS proxy options. The panel is initialized with default values from a configuration file and allows users to enable or disable these options. When the user saves their changes, the new settings are saved to the configuration file.
PanelWindowContainer.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 946 lines
✨ Summary
This Java code defines a custom dockable window manager for a graphical user interface (GUI). It provides functionality to create and manage dockable windows with customizable positions, sizes, and behavior. The code includes classes for handling mouse events, updating window dimensions, and invalidating/revalidating the GUI layout.
This Java code defines a custom dockable window manager for a graphical user interface (GUI). It provides functionality to create and manage dockable windows with customizable positions, sizes, and behavior. The code includes classes for handling mouse events, updating window dimensions, and invalidating/revalidating the GUI layout.
23 package org.gjt.sp.jedit.gui;
25 //{{{ Imports
26 import javax.swing.border.*;
27 import javax.swing.plaf.metal.*;
28 import javax.swing.*;
29 import java.awt.event.*;
30 import java.awt.font.*;
31 import java.awt.geom.AffineTransform;
32 import java.awt.image.*;
33 import java.awt.*;
34 import java.util.Vector;
ForLoopReplaceableByWhileInspection.java (https://bitbucket.org/nbargnesi/idea.git) Java · 141 lines
16 package com.siyeh.ig.controlflow;
18 import com.intellij.codeInspection.ProblemDescriptor;
19 import com.intellij.codeInspection.ui.SingleCheckboxOptionsPanel;
20 import com.intellij.openapi.project.Project;
21 import com.intellij.psi.*;
22 import com.intellij.util.IncorrectOperationException;
23 import com.siyeh.InspectionGadgetsBundle;
24 import com.siyeh.ig.BaseInspection;
25 import com.siyeh.ig.BaseInspectionVisitor;
26 import com.siyeh.ig.InspectionGadgetsFix;
27 import org.jetbrains.annotations.NonNls;
OtherSourcePathFile.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 40 lines
✨ Summary
This Java class represents a SourcePathFile that doesn’t have any special functionality, extending the SourcePathFile
class. It takes a source path element and a file as parameters in its constructor. The toString()
method returns the full name of the file. This class is part of an OpenIt jEdit plugin.
This Java class represents a SourcePathFile that doesn’t have any special functionality, extending the SourcePathFile
class. It takes a source path element and a file as parameters in its constructor. The toString()
method returns the full name of the file. This class is part of an OpenIt jEdit plugin.
inform.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 206 lines
Gutter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 957 lines
✨ Summary
This Java code is part of a text editor’s implementation, specifically for a feature called “gutter” that displays markers on the left side of the text area. The code handles user interactions such as mouse clicks and drags to select lines, expand/collapse folds, and match structures. It also provides tooltips with information about the markers displayed in the gutter.
This Java code is part of a text editor’s implementation, specifically for a feature called “gutter” that displays markers on the left side of the text area. The code handles user interactions such as mouse clicks and drags to select lines, expand/collapse folds, and match structures. It also provides tooltips with information about the markers displayed in the gutter.
BrowserColorsOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 408 lines
✨ Summary
This Java code creates a graphical user interface (GUI) component that displays a table of color settings for a text editor. The table allows users to edit glob patterns and colors, which are then saved back to the text editor. The GUI uses a custom ColorRenderer
class to display colors in the table cells.
This Java code creates a graphical user interface (GUI) component that displays a table of color settings for a text editor. The table allows users to edit glob patterns and colors, which are then saved back to the text editor. The GUI uses a custom ColorRenderer
class to display colors in the table cells.
23 package org.gjt.sp.jedit.options;
25 //{{{ Imports
26 import javax.swing.border.EmptyBorder;
27 import javax.swing.event.*;
28 import javax.swing.table.*;
29 import javax.swing.*;
30 import java.awt.event.*;
31 import java.awt.*;
32 import java.util.*;
33 import java.util.List;
35 import org.gjt.sp.jedit.gui.RolloverButton;
Service.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 205 lines
✨ Summary
This Java class represents an Info.plist Service, which is a configuration file used by macOS applications to provide services to other apps. It allows developers to define how their app responds to service requests, including port names, message invocation methods, menu item text, and data types. The class provides getter and setter methods for each field, allowing easy access and modification of the service’s properties.
This Java class represents an Info.plist Service, which is a configuration file used by macOS applications to provide services to other apps. It allows developers to define how their app responds to service requests, including port names, message invocation methods, menu item text, and data types. The class provides getter and setter methods for each field, allowing easy access and modification of the service’s properties.
rebol.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 547 lines
XmlParsedData.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 147 lines
✨ Summary
This Java class, XmlParsedData
, encapsulates the results of parsing a buffer containing XML data. It provides methods for retrieving completion information, element declarations, and allowed elements based on the parsed XML structure. The class is designed to work with both Xerces and Swing HTML parsers, allowing it to handle different types of XML data.
This Java class, XmlParsedData
, encapsulates the results of parsing a buffer containing XML data. It provides methods for retrieving completion information, element declarations, and allowed elements based on the parsed XML structure. The class is designed to work with both Xerces and Swing HTML parsers, allowing it to handle different types of XML data.
css.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 678 lines
36 </SPAN>
38 <IMPORT DELEGATE="GLOBAL" />
39 <IMPORT DELEGATE="html::TAGS" />
61 <!-- For delegating to PROPERTIES: -->
62 <IMPORT DELEGATE="GLOBAL" />
64 <KEYWORDS>
82 <SEQ TYPE="OPERATOR" DELEGATE="PROP_VALUE">:</SEQ>
84 <IMPORT DELEGATE="GLOBAL" />
86 <KEYWORDS>
270 <MARK_FOLLOWING TYPE="DIGIT">#</MARK_FOLLOWING>
272 <SEQ_REGEXP HASH_CHAR="!" TYPE="KEYWORD2">!\s*important</SEQ_REGEXP>
274 <!-- proprietary IE function: -->
AppleScriptHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 74 lines
✨ Summary
This Java class, AppleScriptHandler
, extends a base class to handle AppleScript macros in a text editor. It provides methods for accepting files with specific extensions, creating and running macros, and handling script execution. The class is designed to work with the JEdit text editor and uses its built-in scripting functionality.
This Java class, AppleScriptHandler
, extends a base class to handle AppleScript macros in a text editor. It provides methods for accepting files with specific extensions, creating and running macros, and handling script execution. The class is designed to work with the JEdit text editor and uses its built-in scripting functionality.
action.qbk (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
AnyKeyboard.java
(http://softkeyboard.googlecode.com/svn/)
Java · 985 lines
✨ Summary
This Java code defines a custom keyboard layout for Android applications. It provides classes to represent individual keys, including their properties and behavior, such as enabling/disabling and proximity correction. The LessSensitiveAnyKey
class is used to create specific key layouts with reduced target areas, while the EnterKey
class extends this to handle special enter key behavior.
This Java code defines a custom keyboard layout for Android applications. It provides classes to represent individual keys, including their properties and behavior, such as enabling/disabling and proximity correction. The LessSensitiveAnyKey
class is used to create specific key layouts with reduced target areas, while the EnterKey
class extends this to handle special enter key behavior.
1 package com.menny.android.anysoftkeyboard.keyboards;
3 import java.io.IOException;
4 import java.util.List;
5 import java.util.StringTokenizer;
7 import org.xmlpull.v1.XmlPullParserException;
9 import android.content.Context;
10 import android.content.res.Configuration;
11 import android.content.res.Resources;
12 import android.content.res.XmlResourceParser;
Token.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 165 lines
✨ Summary
This Java code defines a Token
class that represents a syntax token in a programming language. It provides methods to convert between token type strings and constants, as well as instance variables to store the token’s id, offset, length, rule set, and next token in a linked list. The class is used in a parser or compiler to manage syntax tokens during the parsing process.
This Java code defines a Token
class that represents a syntax token in a programming language. It provides methods to convert between token type strings and constants, as well as instance variables to store the token’s id, offset, length, rule set, and next token in a linked list. The class is used in a parser or compiler to manage syntax tokens during the parsing process.
TextEditorState.java (https://bitbucket.org/nbargnesi/idea.git) Java · 110 lines
16 package com.intellij.openapi.fileEditor.impl.text;
18 import com.intellij.openapi.editor.Document;
19 import com.intellij.openapi.fileEditor.FileEditorState;
20 import com.intellij.openapi.fileEditor.FileEditorStateLevel;
21 import com.intellij.util.Producer;
22 import org.jetbrains.annotations.NotNull;
23 import org.jetbrains.annotations.Nullable;
ProjectStoreClassProvider.java (https://bitbucket.org/nbargnesi/idea.git) Java · 25 lines
FileListRenderer.java (https://bitbucket.org/nbargnesi/idea.git) Java · 39 lines
16 package com.intellij.openapi.vcs.readOnlyHandler;
18 import com.intellij.ide.presentation.VirtualFilePresentation;
19 import com.intellij.openapi.util.io.FileUtil;
20 import com.intellij.openapi.vfs.VirtualFile;
21 import com.intellij.ui.ColoredListCellRenderer;
22 import com.intellij.ui.SimpleTextAttributes;
24 import javax.swing.*;
MultilineTreeCellRenderer.java (https://bitbucket.org/nbargnesi/idea.git) Java · 476 lines
16 package com.intellij.ui;
18 import com.intellij.openapi.util.text.StringUtil;
19 import com.intellij.ui.components.JBScrollPane;
20 import com.intellij.util.ArrayUtil;
21 import com.intellij.util.ui.UIUtil;
22 import com.intellij.util.ui.tree.WideSelectionTreeUI;
23 import org.jetbrains.annotations.NonNls;
25 import javax.swing.*;
26 import javax.swing.plaf.TreeUI;
27 import javax.swing.tree.DefaultMutableTreeNode;
28 import javax.swing.tree.TreeCellRenderer;
LibraryGroupElement.java (https://bitbucket.org/nbargnesi/idea.git) Java · 55 lines
ModuleGroupUtil.java (https://bitbucket.org/nbargnesi/idea.git) Java · 95 lines
README (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 17 lines
FileAttribute.java (https://bitbucket.org/nbargnesi/idea.git) Java · 123 lines
20 package com.intellij.openapi.vfs.newvfs;
22 import com.intellij.openapi.util.io.FileUtil;
23 import com.intellij.openapi.vfs.VirtualFile;
24 import com.intellij.util.io.DataInputOutputUtil;
25 import org.jetbrains.annotations.NonNls;
26 import org.jetbrains.annotations.NotNull;
27 import org.jetbrains.annotations.Nullable;
29 import java.io.DataInputStream;
30 import java.io.DataOutputStream;
31 import java.io.IOException;
32 import java.util.HashSet;
TabLabel.java (https://bitbucket.org/nbargnesi/idea.git) Java · 556 lines
16 package com.intellij.ui.tabs.impl;
18 import com.intellij.ide.DataManager;
19 import com.intellij.ide.ui.UISettings;
20 import com.intellij.openapi.actionSystem.ActionGroup;
21 import com.intellij.openapi.actionSystem.ActionPlaces;
22 import com.intellij.openapi.actionSystem.DefaultActionGroup;
23 import com.intellij.openapi.util.Pass;
24 import com.intellij.openapi.util.SystemInfo;
25 import com.intellij.ui.InplaceButton;
26 import com.intellij.ui.LayeredIcon;
27 import com.intellij.ui.SimpleColoredComponent;
DefaultPomTargetDescriptionProvider.java (https://bitbucket.org/nbargnesi/idea.git) Java · 55 lines
16 package com.intellij.psi.impl;
18 import com.intellij.ide.TypePresentationService;
19 import com.intellij.openapi.util.text.StringUtil;
20 import com.intellij.pom.PomDescriptionProvider;
21 import com.intellij.pom.PomNamedTarget;
22 import com.intellij.pom.PomTarget;
23 import com.intellij.psi.ElementDescriptionLocation;
24 import com.intellij.psi.PsiElement;
25 import com.intellij.usageView.UsageViewNodeTextLocation;
26 import com.intellij.usageView.UsageViewTypeLocation;
27 import com.intellij.codeInsight.highlighting.HighlightUsagesDescriptionLocation;
ScanSourceCommentsAction.java (https://bitbucket.org/nbargnesi/idea.git) Java · 153 lines
20 package com.intellij.tools;
22 import com.intellij.openapi.actionSystem.AnAction;
23 import com.intellij.openapi.actionSystem.AnActionEvent;
24 import com.intellij.openapi.actionSystem.PlatformDataKeys;
25 import com.intellij.openapi.diagnostic.Logger;
26 import com.intellij.openapi.fileTypes.LanguageFileType;
27 import com.intellij.openapi.progress.ProgressIndicator;
28 import com.intellij.openapi.progress.ProgressManager;
29 import com.intellij.openapi.project.Project;
30 import com.intellij.openapi.roots.ContentIterator;
31 import com.intellij.openapi.roots.ProjectRootManager;
UIFactory.java
(http://loon-simple.googlecode.com/svn/trunk/)
Java · 139 lines
✨ Summary
This Java class, UIFactory, is an abstract factory for creating and managing user interface (UI) components. It provides methods for getting UI names, descriptions, and resources, as well as creating and processing UI elements. The class uses a HashMap to store UI resources, allowing them to be shared across different components.
This Java class, UIFactory, is an abstract factory for creating and managing user interface (UI) components. It provides methods for getting UI names, descriptions, and resources, as well as creating and processing UI elements. The class uses a HashMap to store UI resources, allowing them to be shared across different components.
SelectInEditorManagerImpl.java (https://bitbucket.org/nbargnesi/idea.git) Java · 158 lines
16 package com.intellij.ide.impl;
18 import com.intellij.ide.SelectInEditorManager;
19 import com.intellij.injected.editor.DocumentWindow;
20 import com.intellij.injected.editor.VirtualFileWindow;
21 import com.intellij.openapi.Disposable;
22 import com.intellij.openapi.editor.Editor;
23 import com.intellij.openapi.editor.colors.EditorColors;
24 import com.intellij.openapi.editor.colors.EditorColorsManager;
25 import com.intellij.openapi.editor.event.CaretEvent;
26 import com.intellij.openapi.editor.event.CaretListener;
27 import com.intellij.openapi.editor.ex.DocumentEx;
ProjectRootsUtil.java (https://bitbucket.org/nbargnesi/idea.git) Java · 95 lines
16 package com.intellij.ide.projectView.impl;
18 import com.intellij.openapi.module.Module;
19 import com.intellij.openapi.project.Project;
20 import com.intellij.openapi.roots.*;
21 import com.intellij.openapi.util.Comparing;
22 import com.intellij.openapi.vfs.VirtualFile;
23 import com.intellij.psi.PsiDirectory;
ModifierAwareArrangementEntry.java (https://bitbucket.org/nbargnesi/idea.git) Java · 32 lines
oeb12.dtdinc (http://epubcheck.googlecode.com/svn/trunk/) Unknown · 1137 lines
env_test.go
(https://github.com/dotcloud/docker.git)
Go · 313 lines
✨ Summary
This is a test file for the Env package in Go. It contains various tests to ensure that the package works correctly and provides the expected functionality. The code includes unit tests, integration tests, and benchmarks to measure the performance of the package.
This is a test file for the Env package in Go. It contains various tests to ensure that the package works correctly and provides the expected functionality. The code includes unit tests, integration tests, and benchmarks to measure the performance of the package.
RobotFixtureTest.java
(http://fest.googlecode.com/svn/)
Java · 311 lines
✨ Summary
This Java code is a test class for a GUI application, specifically testing various keyboard and mouse interactions with different components such as text fields, buttons, and pop-up menus. It verifies that expected actions are performed correctly when interacting with these components, ensuring the application behaves as expected under different scenarios.
This Java code is a test class for a GUI application, specifically testing various keyboard and mouse interactions with different components such as text fields, buttons, and pop-up menus. It verifies that expected actions are performed correctly when interacting with these components, ensuring the application behaves as expected under different scenarios.
16 package org.fest.swing.core;
18 import java.awt.Component;
19 import java.awt.Dimension;
20 import java.awt.Point;
21 import java.awt.event.ActionEvent;
22 import java.awt.event.ActionListener;
24 import javax.swing.*;
26 import org.testng.annotations.AfterMethod;
27 import org.testng.annotations.BeforeMethod;