100+ results for 'import gson'

Not the results you expected?

common_tests.py (https://github.com/depassp/Sick-Beard.git) Python · 103 lines

1 import unittest

2

3 import sys

4 import os.path

5 sys.path.append(os.path.abspath('..'))

6

7 from sickbeard import common

8

9

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';

15

16 class ImportSeriesSelectSeries extends Component {

JsonQuery.java (https://gitlab.com/skylabase/incubator-fineract) Java · 279 lines

19 package org.apache.fineract.infrastructure.core.api;

20

21 import java.lang.reflect.Type;

22 import java.math.BigDecimal;

23 import java.util.Arrays;

24 import java.util.Map;

25

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;

33

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.

23 package org.gjt.sp.jedit.browser;

24

25 //{{{ Imports

26 import java.io.*;

27 import org.gjt.sp.jedit.io.*;

28 import org.gjt.sp.jedit.*;

29 import org.gjt.sp.util.*;

30 //}}}

31

MachineLoaderTest.java (https://github.com/eried/ReplicatorG.git) Java · 275 lines

1 package machineTests;

2

3 import static org.junit.Assert.*;

4

5 import java.util.concurrent.LinkedBlockingQueue;

6 import java.util.concurrent.TimeUnit;

7

8 import org.junit.After;

9 import org.junit.Before;

10 import org.junit.Test;

11

12 import replicatorg.app.Base;

13 import replicatorg.machine.MachineListener;

IPForwardingRule.java (https://github.com/irshad84/jclouds.git) Java · 294 lines

19 package org.jclouds.cloudstack.domain;

20

21 import com.google.gson.annotations.SerializedName;

22

23 /**

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.

22 package net.sourceforge.phpdt.internal.compiler.parser;

23

24 import gatchan.phpparser.project.itemfinder.PHPItem;

25

26 /**

AndroidMavenResourcesCompiler.java (https://bitbucket.org/nbargnesi/idea.git) Java · 251 lines

16 package org.jetbrains.android.compiler;

17

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.

23 package org.gjt.sp.jedit.msg;

24

25 import java.util.Arrays;

26

27 import org.gjt.sp.jedit.Buffer;

28 import org.gjt.sp.jedit.EditPane;

29 import org.gjt.sp.util.Log;

IOSGLES30.java (https://gitlab.com/0072016/libgdx-libgdx) Java · 201 lines

1 package com.badlogic.gdx.backends.iosrobovm;

2

3 import com.badlogic.gdx.graphics.GL30;

4

5 import java.nio.Buffer;

6 import java.nio.FloatBuffer;

7 import java.nio.IntBuffer;

8 import java.nio.LongBuffer;

9

10 public class IOSGLES30 extends IOSGLES20 implements GL30 {

CurriculumCourseStartingSolutionInitializer.java (https://github.com/sotty/droolsjbpm-contributed-experiments.git) Java · 193 lines

1 package org.drools.solver.examples.itc2007.curriculumcourse.solver.solution.initializer;

2

3 import java.util.ArrayList;

4 import java.util.Collections;

5 import java.util.List;

6

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.

32 {

33 // Filter options (WHAT)

34 boolean getShowImports();

35 boolean getShowFields();

36 boolean getShowVariables();

NSManagedObject+AZCoreRecordImport.h (https://github.com/zwaldowski/AZCoreRecord.git) C Header · 211 lines

1 //

2 // NSManagedObject+AZCoreRecordImport.h

3 // AZCoreRecord

4 //

8 //

9

10 #import <CoreData/CoreData.h>

11

12 /** Importing for Core Data.

13

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

18

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;

20

21 import java.lang.reflect.Type;

22 import java.util.ArrayList;

23 import java.util.List;

24 import java.util.Map;

25

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;

35

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;

46

47 private Context context;

48 private Gson gson;

49

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;

2

3 import android.content.Context;

4

5 import androidx.test.core.app.ApplicationProvider;

6

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;

12

13 import java.sql.Date;

urls.py (https://github.com/allweb/AHRM.git) Python · 202 lines

11 ######################################################################

12

13 import reports,employees_controller,departments_controller,companies_controller,users_controller,\

14 experiences_controller,positions_controller, mainpage_controller

15 from django.conf.urls.defaults import *

instrumented_docker.go (https://gitlab.com/CORP-RESELLER/kubernetes) Go · 233 lines

17 package dockertools

18

19 import (

20 "time"

21

ExternalServicesConfigurationHelper.java (https://gitlab.com/skylabase/incubator-fineract) Java · 64 lines

19 package org.apache.fineract.integrationtests.common;

20

21 import java.util.ArrayList;

22 import java.util.HashMap;

23

24 import com.google.gson.Gson;

25 import com.jayway.restassured.specification.RequestSpecification;

26 import com.jayway.restassured.specification.ResponseSpecification;

27

28 public class ExternalServicesConfigurationHelper {

59 map.put(name, value);

60 System.out.println("map : " + map);

61 return new Gson().toJson(map);

62 }

63

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;

13

14 import com.google.gson.Gson;

15 import com.google.gson.JsonArray;

16 import com.google.gson.JsonElement;

17 import com.google.gson.JsonParser;

50

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

19 $_LANG['cat'] ='Category';

20 $_LANG['reserve'] = 'Reserve';

21 $_LANG['article_type'] ='Importance';

22 $_LANG['author'] ='Author';

23 $_LANG['email'] ='Email';

OverriddenAppNameTestCase.java (https://github.com/aprilhu0/jboss-as.git) Java · 175 lines

23 package org.jboss.as.test.integration.ejb.jndi;

24

25 import javax.naming.Context;

26 import javax.naming.InitialContext;

27

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

7 //

8

9 #import "GHIndustriesParser.h"

10

11 @implementation GHIndustriesParser

ElementDrawer.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 487 lines

32 package net.sf.jasperreports.engine.export.draw;

33

34 import java.awt.BasicStroke;

35 import java.awt.Graphics2D;

36 import java.awt.Stroke;

37 import java.awt.geom.AffineTransform;

38

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

1 import gulp from 'gulp';

2 import pump from 'pump';

3 import gulpLoadPlugins from 'gulp-load-plugins';

4 const $ = gulpLoadPlugins();

5

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.

21 package code2html.generic ;

22

23 import java.io.IOException;

24 import java.io.Writer;

25

26 import javax.swing.text.Segment;

27

28 import org.gjt.sp.jedit.syntax.SyntaxStyle;

29 import org.gjt.sp.jedit.syntax.Token;

30

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

2 package com.solariswu.weather.models;

3

4 import com.google.gson.annotations.Expose;

5 import com.google.gson.annotations.SerializedName;

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;

29

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;

40

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

1 <?php

2 App::import('Controller', 'Links');

3

4 class TestLinksController extends LinksController {

FilterBoundsTest.scala (https://gitlab.com/zachcoyle/geomesa) Scala · 142 lines

9 package org.locationtech.geomesa.filter

10

11 import java.util.{Date, UUID}

12

13 import org.junit.runner.RunWith

14 import org.specs2.mutable.Specification

15 import org.specs2.runner.JUnitRunner

ZXReedSolomonEncoder.m (https://gitlab.com/OtherGroup/shadowsocks-iOS) Objective C · 85 lines

15 */

16

17 #import "ZXGenericGF.h"

18 #import "ZXGenericGFPoly.h"

19 #import "ZXReedSolomonEncoder.h"

20

21 @interface ZXReedSolomonEncoder ()

import_nomodule_runme.py (https://swig.svn.sourceforge.net/svnroot/swig) Python · 8 lines

1 from import_nomodule import *

2

3 f = create_Foo()

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.

23 package ftp;

24

25 //{{{ Imports

26 import java.io.*;

27 import java.util.Enumeration;

28 import java.util.Hashtable;

29 import org.gjt.sp.jedit.io.*;

30 import org.gjt.sp.jedit.MiscUtilities;

31 import org.gjt.sp.jedit.jEdit;

32 import org.gjt.sp.util.Log;

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.

28

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.

30

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.

22 package xsearch;

23

24 import java.awt.GridLayout;

25

26 import javax.swing.JCheckBox;

27 import javax.swing.JPanel;

28 import javax.swing.border.TitledBorder;

29

30 import org.gjt.sp.jedit.AbstractOptionPane;

31 import org.gjt.sp.jedit.jEdit;

PopupFactoryImpl.java (https://bitbucket.org/nbargnesi/idea.git) Java · 966 lines

16 package com.intellij.ui.popup;

17

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.

23 package ftp;

24

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.

25 package tags;

26

27 //{{{ imports

28 import java.io.*;

29 import java.lang.*;

30 import java.lang.System.*;

31 import java.util.*;

32

33 import java.awt.*;

34 import java.awt.event.*;

35 import javax.swing.*;

36 import javax.swing.event.*;

37 import javax.swing.table.*;

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.

20 package org.gjt.sp.jedit.gui;

21

22 import javax.swing.plaf.metal.*;

23 import javax.swing.plaf.*;

24 import org.gjt.sp.jedit.jEdit;

25

26 public class JEditMetalTheme extends DefaultMetalTheme

javascript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 550 lines

121 <KEYWORD1>implements</KEYWORD1>

122

123 <KEYWORD2>import</KEYWORD2>

124 <KEYWORD1>instanceof</KEYWORD1>

125 <KEYWORD3>int</KEYWORD3>

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.

26 package org.loon.framework.android.game.core.graphics.geom;

27

28 import java.util.Vector;

29 import java.util.Enumeration;

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.

22

23

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

40 __author__ = 'wan@google.com (Zhanyong Wan)'

41

42 import os

43 import sys

MSVSVersion.py (https://bitbucket.org/ultra_iter/qt-vtl.git) Python · 200 lines

7 """Handle version information related to Visual Stuio."""

8

9 import os

10 import re

11 import subprocess

12 import sys

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.

20 package org.gjt.sp.jedit.pluginmgr;

21

22 //{{{ Imports

23 import java.util.Stack;

24

25 import org.xml.sax.Attributes;

26 import org.xml.sax.InputSource;

27 import org.xml.sax.helpers.DefaultHandler;

28

29 import org.gjt.sp.util.Log;

30 import org.gjt.sp.util.XMLUtilities;

31 //}}}

32

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.

19 package projectviewer.action;

20

21 //{{{ Imports

22 import java.io.File;

23 import java.util.Iterator;

24

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;

30

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.

24

25

26 import java.util.Vector;

27 import org.gjt.sp.jedit.EBComponent;

28 import org.gjt.sp.jedit.EBMessage;

29

30

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.

24

25

26 import java.awt.event.ActionEvent;

27 import java.awt.event.ActionListener;

28 import javax.swing.ButtonGroup;

29 import javax.swing.JCheckBox;

30 import javax.swing.JRadioButton;

31 import org.gjt.sp.jedit.jEdit;

32 import org.gjt.sp.jedit.AbstractOptionPane;

33

34

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.

1 package console.gui;

2

3 import java.awt.BorderLayout;

4 import java.awt.event.ActionEvent;

5 import java.awt.event.ActionListener;

6 import java.util.HashMap;

7 import javax.swing.JPanel;

8

9

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.

22 package com.townsfolkdesigns.jedit.plugins.scripting;

23

24 import org.gjt.sp.jedit.Mode;

25

26

Script.groovy (https://bitbucket.org/nbargnesi/idea.git) Groovy · 17 lines

1 package a;

2

3 import b.B;

4

5 def a = new A().foo();

javap.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 63 lines

22 bsh.help.javap= "usage: javap( value )";

23

24 import org.gjt.sp.jedit.bsh.ClassIdentifier;

25 import java.lang.reflect.Modifier;

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.

20 package org.gjt.sp.jedit.gui;

21

22 import javax.swing.*;

23 import javax.swing.border.*;

24 import javax.swing.event.*;

25 import java.awt.*;

26 import java.awt.event.*;

27 import org.gjt.sp.jedit.*;

JpsAndroidModuleProperties.java (https://bitbucket.org/nbargnesi/idea.git) Java · 80 lines

16 package org.jetbrains.jps.android.model.impl;

17

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;

22

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.

23 package org.gjt.sp.jedit.indent;

24

25 import java.util.List;

26 import org.gjt.sp.jedit.buffer.JEditBuffer;

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.

25 package org.gjt.sp.jedit.gui.statusbar;

26

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 //}}}

37

BaseTextCommentCellAppearance.java (https://bitbucket.org/nbargnesi/idea.git) Java · 71 lines

16 package com.intellij.openapi.roots.ui.util;

17

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;

24

25 import javax.swing.*;

26

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;

17

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.

19

20 package gnu.regexp;

21 import java.io.FilterInputStream;

22 import java.io.InputStream;

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.

35 package bsh;

36

37 import java.util.List;

38 import java.util.ArrayList;

gpio.txt (http://omnia2droid.googlecode.com/svn/trunk/) Plain Text · 566 lines

441 data to gpiochip_add().

442

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.

562

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.

17 package com.android.inputmethod.norwegian;

18

19 import android.content.Context;

20

21 /**

build.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 61 lines

47

48

49 <import file="${build.support}/plugin-build.xml" />

50

51 <property name="jar.name" value="${ant.project.name}.jar"/>

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.

23 package org.gjt.sp.jedit.browser;

24

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.

9 package ise.plugin.svn.library.swingworker;

10

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.

1 package gatchan.phpparser.sidekick;

2

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;

12

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.

24

25

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.

21 package lcm;

22

23 import java.awt.Component;

24 import java.awt.Insets;

25 import java.awt.event.ActionEvent;

26 import java.awt.event.ActionListener;

27

28 import javax.swing.JComboBox;

29 import javax.swing.JPanel;

30 import javax.swing.border.TitledBorder;

31

32 import org.gjt.sp.jedit.AbstractOptionPane;

yab.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 319 lines

114 <!-- Methods, Functions, Class, Properties, Variables -->

115 <KEYWORD1>export</KEYWORD1>

116 <KEYWORD1>import</KEYWORD1>

117 <KEYWORD1>local</KEYWORD1>

118 <KEYWORD1>numparam</KEYWORD1>

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.

23 package org.gjt.sp.jedit.textarea;

24

25 import java.awt.event.MouseEvent;

26 import org.gjt.sp.jedit.gui.DefaultInputHandler;

27 import org.gjt.sp.jedit.jEdit;

28

29 public class MouseActions implements MouseActionsProvider

build-standalone.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 82 lines

10 <project name="QuickOpen" default="build" basedir=".">

11

12 <!-- <import file="../build-support/plugin-build.xml" /> -->

13

14

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.

2

3

4 import javax.swing.*;

5 import javax.swing.border.*;

6 import java.awt.event.*;

7 import java.awt.*;

8 import java.util.Date;

9 import java.util.Calendar;

10 import java.net.URL;

11

12 /** A calendar-dispaly/date-selection widget.

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.

16 package installer;

17

18 import java.io.*;

19

20

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.

23 package org.gjt.sp.jedit.gui;

24

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;

32

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.

1 package org.loon.framework.android.game.action.sprite.effect;

2

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.

1 package org.loon.framework.android.game.core.geom;

2

3 import java.util.ArrayList;

4

5 /**

HashMap.java (https://bitbucket.org/nbargnesi/idea.git) Java · 40 lines

16 package com.intellij.util.containers;

17

18 import java.util.Map;

19

20 @SuppressWarnings("ClassNameSameAsAncestorName")

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.

17 package com.menny.android.anysoftkeyboard;

18

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;

25

26 import com.menny.android.anysoftkeyboard.keyboards.AnyKeyboard;

27

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.

23 package console.commando;

24

25 //{{{ Imports

26 import bsh.*;

27 import com.microstar.xml.*;

28 import console.*;

29 import javax.swing.border.*;

30 import javax.swing.event.*;

31 import javax.swing.*;

32 import java.awt.event.*;

33 import java.awt.BorderLayout;

34 import java.awt.Component;

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.

29 package sidekick.util;

30

31 import java.util.Enumeration;

32 import javax.swing.SwingUtilities;

33 import javax.swing.text.Position;

34 import javax.swing.tree.DefaultMutableTreeNode;

35 import org.gjt.sp.jedit.Buffer;

36

37 public class ElementUtil {

build.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 48 lines

19 <!-- mark:properties -->

20 <!-- /mark:properties -->

21 <import file="${build.support}/plugin-build.xml" />

22

23 <!-- If you want any extra files to be included with your plugin's jar,

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.

22 package bufferlist;

23

24 // {{{ imports

25 import javax.swing.tree.DefaultMutableTreeNode;

26

27 import org.gjt.sp.jedit.Buffer;

28

29 // }}}

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.

23 package org.gjt.sp.jedit.msg;

24

25 import org.gjt.sp.jedit.textarea.JEditTextArea;

26

27 /**

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.

20 package voxspellcheck;

21

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;

30

31 import org.gjt.sp.util.Log;

32

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.

30

31

32 import java.io.File;

33 import java.io.Serializable;

34 import java.util.*;

35 import org.tmatesoft.svn.core.SVNURL;

36 import org.tmatesoft.svn.core.wc.SVNRevision;

37

38

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.

29 package ise.plugin.svn.gui.br;

30

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.

24 package org.gjt.sp.jedit.options;

25

26 //{{{ Imports

27 import java.awt.event.*;

28 import javax.swing.*;

29 import org.gjt.sp.jedit.*;

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.

23 package org.gjt.sp.jedit.gui;

24

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;

17

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.

21 package org.etheridge.openit.sourcepath;

22

23 import java.io.File;

24

25 /**

inform.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 206 lines

170 <KEYWORD3>Iftrue</KEYWORD3>

171 <KEYWORD3>Iffalse</KEYWORD3>

172 <KEYWORD3>Import</KEYWORD3>

173 <KEYWORD3>Include</KEYWORD3>

174 <KEYWORD3>Link</KEYWORD3>

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.

24 package org.gjt.sp.jedit.textarea;

25

26 //{{{ Imports

27 import java.awt.*;

28 import java.awt.event.*;

29 import javax.swing.*;

30 import javax.swing.border.*;

31 import javax.swing.event.*;

32 import org.gjt.sp.jedit.*;

33 import org.gjt.sp.util.Log;

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.

23 package org.gjt.sp.jedit.options;

24

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;

34

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.

1 package net.sourceforge.jarbundler;

2

3 import java.util.ArrayList;

4 import java.util.Arrays;

5 import java.util.List;

6

7

rebol.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 547 lines

266 <KEYWORD1>help</KEYWORD1>

267 <KEYWORD1>hide-popup</KEYWORD1>

268 <KEYWORD1>import-email</KEYWORD1>

269 <KEYWORD1>inform</KEYWORD1>

270 <KEYWORD1>input</KEYWORD1>

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.

16 package xml;

17

18 //{{{ Imports

19 import javax.swing.tree.TreeModel;

20 import java.util.*;

21 import org.gjt.sp.jedit.Buffer;

22 import org.gjt.sp.jedit.EditPane;

23 import sidekick.SideKickParsedData;

24 import xml.completion.*;

25 import xml.parser.*;

css.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 678 lines

36 </SPAN>

37

38 <IMPORT DELEGATE="GLOBAL" />

39 <IMPORT DELEGATE="html::TAGS" />

60

61 <!-- For delegating to PROPERTIES: -->

62 <IMPORT DELEGATE="GLOBAL" />

63

64 <KEYWORDS>

82 <SEQ TYPE="OPERATOR" DELEGATE="PROP_VALUE">:</SEQ>

83

84 <IMPORT DELEGATE="GLOBAL" />

85

86 <KEYWORDS>

270 <MARK_FOLLOWING TYPE="DIGIT">#</MARK_FOLLOWING>

271

272 <SEQ_REGEXP HASH_CHAR="!" TYPE="KEYWORD2">!\s*important</SEQ_REGEXP>

273

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.

23 package macos.script;

24

25 //{{{ Imports

26 import java.io.*;

27 import org.gjt.sp.jedit.*;

28 import macos.*;

action.qbk (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines

91 or function object used as the semantic action.

92

93 [important Please note that the use of semantic actions in __karma__ generally

94 forces the library to create a /copy/ of the attribute, which might

95 be a costly operation. Always consider using other means of

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.

1 package com.menny.android.anysoftkeyboard.keyboards;

2

3 import java.io.IOException;

4 import java.util.List;

5 import java.util.StringTokenizer;

6

7 import org.xmlpull.v1.XmlPullParserException;

8

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.

22 package org.gjt.sp.jedit.syntax;

23

24 import java.lang.reflect.Field;

25

26 /**

TextEditorState.java (https://bitbucket.org/nbargnesi/idea.git) Java · 110 lines

16 package com.intellij.openapi.fileEditor.impl.text;

17

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

16 package com.intellij.openapi.project.impl;

17

18 import com.intellij.openapi.components.impl.stores.IComponentStore;

19

20 /**

FileListRenderer.java (https://bitbucket.org/nbargnesi/idea.git) Java · 39 lines

16 package com.intellij.openapi.vcs.readOnlyHandler;

17

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;

23

24 import javax.swing.*;

MultilineTreeCellRenderer.java (https://bitbucket.org/nbargnesi/idea.git) Java · 476 lines

16 package com.intellij.ui;

17

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;

24

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

17 package com.intellij.ide.projectView.impl.nodes;

18

19 import com.intellij.openapi.actionSystem.DataKey;

20 import com.intellij.openapi.module.Module;

21 import org.jetbrains.annotations.NotNull;

22

23 /**

ModuleGroupUtil.java (https://bitbucket.org/nbargnesi/idea.git) Java · 95 lines

23 package com.intellij.ide.projectView.impl;

24

25 import com.intellij.util.ArrayUtil;

26 import com.intellij.util.Consumer;

27 import com.intellij.util.Function;

28

29 import java.util.ArrayList;

30 import java.util.Map;

31

32 public class ModuleGroupUtil {

README (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 17 lines

5 configuration file. We use it internally in Qt to generate the scanner for the

6 CSS parser that is built into the toolkit (used for the widget styling and the

7 HTML import into QTextDocument).

8

9 Beware, it's very slow (in generating the code) and it may not generate what

FileAttribute.java (https://bitbucket.org/nbargnesi/idea.git) Java · 123 lines

20 package com.intellij.openapi.vfs.newvfs;

21

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;

28

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;

17

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;

17

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;

21

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.

1 package org.loon.framework.android.game.core.graphics.window;

2

3 import java.util.HashMap;

4

5 import org.loon.framework.android.game.core.graphics.LComponent;

6 import org.loon.framework.android.game.core.graphics.LImage;

7 import org.loon.framework.android.game.core.graphics.device.LGraphics;

SelectInEditorManagerImpl.java (https://bitbucket.org/nbargnesi/idea.git) Java · 158 lines

16 package com.intellij.ide.impl;

17

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;

17

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

16 package com.intellij.psi.codeStyle.arrangement;

17

18 import com.intellij.psi.codeStyle.arrangement.ArrangementEntry;

19 import com.intellij.psi.codeStyle.arrangement.match.ArrangementModifier;

20 import org.jetbrains.annotations.NotNull;

21

22 import java.util.Set;

oeb12.dtdinc (http://epubcheck.googlecode.com/svn/trunk/) Unknown · 1137 lines

119 the decimal &#8212; or the hexadecimal equivalent &#x2014; .

120

121 Importantly note that within the content (PCDATA) of all OEBPS

122 documents and package files, the special XML characters '&' and

123 '<', when intended to be used literally, MUST be represented with

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.

1 package engine

2

3 import (

4 "bytes"

5 "encoding/json"

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.

16 package org.fest.swing.core;

17

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;

23

24 import javax.swing.*;

25

26 import org.testng.annotations.AfterMethod;

27 import org.testng.annotations.BeforeMethod;