100+ results for 'import gson'

Not the results you expected?

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

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;

33

34 import com.google.gson.JsonElement;

35 import com.google.gson.reflect.TypeToken;

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

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;

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

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;

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

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;

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

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;

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;

38 import java.util.HashMap;

39 import java.util.List;

40

47 private Context context;

48 private Gson gson;

49

51 this.context = context;

52 this.gson = new Gson();

53 this.repoHashMap.putAll(getRepoHashMap());

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

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 *

16

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

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

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

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

62 }

GlAccountSheetPopulator.java (https://gitlab.com/skylabase/DataImportTool) Java · 105 lines

8 import org.apache.poi.ss.usermodel.Sheet;

9 import org.apache.poi.ss.usermodel.Workbook;

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;

51 private void parseglAccounts() {

52 Gson gson = new Gson();

53 JsonElement json = new JsonParser().parse(content);

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

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;

WeatherData.java (https://gitlab.com/solariswu/weatherforecast) Java · 185 lines

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;

40

41 import com.google.gson.JsonElement;

42 import com.google.gson.reflect.TypeToken;

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

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

16

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

16

17 #import "ZXGenericGF.h"

18 #import "ZXGenericGFPoly.h"

19 #import "ZXReedSolomonEncoder.h"

20

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

1 from import_nomodule import *

2

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.

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

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

RestMethodInfoTest.java (https://gitlab.com/vicidroiddev/retrofit) Java · 230 lines

3

4 import com.google.gson.reflect.TypeToken;

5 import java.lang.reflect.Method;

6 import java.lang.reflect.Type;

7 import java.util.List;

8 import java.util.Map;

9 import java.util.Set;

10 import org.junit.Test;

11 import retrofit.client.Response;

12 import retrofit.http.GET;

13 import retrofit.http.Query;

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.

23

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

25

DisjUnion.hs (https://bitbucket.org/jmelo_lyncode/thesis.git) Haskell · 57 lines

13 module GMP.Logics.DisjUnion where

14 import List

15 import Ratio

16 import Maybe

17

18 import Debug.Trace

19 import Text.ParserCombinators.Parsec

20

21 import GMP.Logics.Generic

22 import GMP.Parser

EntityJungleSpider.java (https://bitbucket.org/Hologuardian/divinerpg.git) Java · 114 lines

2

3 import net.minecraft.enchantment.EnchantmentHelper;

4 import net.minecraft.entity.Entity;

5 import net.minecraft.entity.EntityLiving;

6 import net.minecraft.entity.monster.EntitySpider;

7 import net.minecraft.potion.Potion;

8 import net.minecraft.potion.PotionEffect;

9 import net.minecraft.util.DamageSource;

10 import net.minecraft.util.MathHelper;

11 import net.minecraft.world.World;

12 import xolova.divinerpg.utils.helpers.item.OverworldItemHelper;

EKParticipant.h (https://github.com/jonhull/hd-iphone-app.git) C Header · 113 lines

9

10 #import <Foundation/Foundation.h>

11 #import <AddressBook/AddressBook.h>

JSONPojoConvertorFactoryTest.java (https://github.com/derickbailey/qedserver.git) Java · 338 lines

15

16 import junit.framework.TestCase;

17

JSON.mustache (https://github.com/sk89q/commandhelper.git) Mustache · 446 lines

4

5 import com.google.gson.Gson;

6 import com.google.gson.GsonBuilder;

9 import com.google.gson.internal.bind.util.ISO8601Utils;

10 import com.google.gson.stream.JsonReader;

11 import com.google.gson.stream.JsonWriter;

12 import com.google.gson.JsonElement;

13 import io.gsonfire.GsonFireBuilder;

14 import io.gsonfire.TypeSelector;

57

58 public static GsonBuilder createGson() {

59 GsonFireBuilder fireBuilder = new GsonFireBuilder()

124 */

125 public JSON setGson(Gson gson) {

126 this.gson = gson;

Location.java (https://gitlab.com/jahanjoo/retrofit-jahanjoo) Java · 163 lines

2

3 import java.util.HashMap;

4 import java.util.Map;

5

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

7

runit_hex_2020_LR_beta_constraints.R (https://gitlab.com/alvinahmadov2/h2o-2) R · 66 lines

1 ## This test is to check the beta contraint argument for GLM

2 ## The test will import the prostate data set,

3 ## runs glm with and without beta contraints which will be checked

11

12 Log.info("Importing prostate dataset...")

13 prostate.hex = h2o.importFile(

GraphAlgorithmController.java (https://gitlab.com/flytosky/climate-service-backend) Java · 222 lines

5 import java.util.List;

6 import java.util.Map;

7

8 import javax.inject.Inject;

9 import javax.inject.Named;

21 import models.Dataset;

22 import models.DatasetAndUser;

23 import models.DatasetAndUserRepository;

24 import models.DatasetRepository;

25 import models.ServiceAndDataset;

36 import com.fasterxml.jackson.databind.JsonNode;

37 import com.google.gson.Gson;

38

TaxonomyServiceRemoteREST.m (https://gitlab.com/jslee1/WordPress-iOS) Objective C · 261 lines

1 #import "TaxonomyServiceRemoteREST.h"

2 #import "WordPress-Swift.h"

3 #import "RemotePostCategory.h"

4 #import "RemotePostTag.h"

5 #import "RemoteTaxonomyPaging.h"

6

add_edit_escalation_policy_modal_spec.js (https://gitlab.com/michold/git-lab-playground) JavaScript · 285 lines

1 import { GlModal, GlAlert } from '@gitlab/ui';

2 import { shallowMount } from '@vue/test-utils';

3 import { cloneDeep } from 'lodash';

4 import { nextTick } from 'vue';

5 import AddEscalationPolicyForm from 'ee/escalation_policies/components/add_edit_escalation_policy_form.vue';

6 import AddEscalationPolicyModal, {

9

10 import {

11 addEscalationPolicyModalId,

14 } from 'ee/escalation_policies/constants';

15 import createEscalationPolicyMutation from 'ee/escalation_policies/graphql/mutations/create_escalation_policy.mutation.graphql';

16 import updateEscalationPolicyMutation from 'ee/escalation_policies/graphql/mutations/update_escalation_policy.mutation.graphql';

17 import waitForPromises from 'helpers/wait_for_promises';

18 import mockPolicies from './mocks/mockPolicies.json';

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.

33 // Filter options (WHAT)

34 boolean getShowImports();

35 boolean getShowFields();

OverriddenAppNameTestCase.java (https://github.com/jharting/wildfly.git) Java · 175 lines

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;

mr_widget_pipeline_spec.js (https://gitlab.com/Stretch96/gitlab-ce) JavaScript · 274 lines

1 import Vue from 'vue';

2 import pipelineComponent from '~/vue_merge_request_widget/components/mr_widget_pipeline.vue';

3 import mountComponent from 'spec/helpers/vue_mount_component_helper';

4 import { trimText } from 'spec/helpers/vue_component_helper';

5 import mockData from '../mock_data';

6

a.java (https://bitbucket.org/jervisfm/android-research.git) Java · 194 lines

2

3 import com.chase.sig.android.ChaseApplication;

4 import com.chase.sig.android.domain.QuickDeposit;

5 import com.chase.sig.android.domain.QuickDepositAccount;

6 import com.chase.sig.android.domain.d;

7 import com.chase.sig.android.service.JPService;

8 import com.chase.sig.android.util.ChaseException;

9 import com.chase.sig.android.util.Dollar;

10 import com.chase.sig.android.util.m;

11 import com.chase.sig.android.util.s;

12 import com.google.gson.chase.Gson;

13 import com.google.gson.chase.GsonBuilder;

Cocos2dxRenderer.java (https://gitlab.com/gasabr/flappy-test) Java · 185 lines

25

26 import android.opengl.GLSurfaceView;

27

28 import javax.microedition.khronos.egl.EGLConfig;

29 import javax.microedition.khronos.opengles.GL10;

ChangeToCStyleCommentIntention.java (https://bitbucket.org/nbargnesi/idea.git) Java · 130 lines

17

18 import com.intellij.openapi.util.text.StringUtil;

19 import com.intellij.psi.*;

20 import com.intellij.psi.tree.IElementType;

21 import com.intellij.psi.util.PsiTreeUtil;

22 import com.intellij.util.IncorrectOperationException;

23 import com.siyeh.ipp.base.Intention;

24 import com.siyeh.ipp.base.PsiElementPredicate;

25 import org.jetbrains.annotations.NotNull;

26

27 import java.util.ArrayList;

28 import java.util.List;

jsonalyzer_js.js (https://gitlab.com/unofficial-mirrors/c9-core) JavaScript · 106 lines

47 TAGS.forEach(function(tag) {

48 if (tag.kind === "import")

49 return;

60

61 handler.findImports = function(path, doc, ast, options, callback) {

62 var openFiles = ctagsUtil.findMatchingOpenFiles(path);

63 var astImports = findImportsInAST(path, ast);

64

65 callback(null, openFiles.concat(astImports));

66 };

67

68 function findImportsInAST(path, ast) {

69 if (!ast)

article.php (https://github.com/chuying163/ecshop_flxk.git) PHP · 82 lines

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

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

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

CallableLociWalkerIntegrationTest.java (https://github.com/cravenlilly/gatk.git) Java · 68 lines

26

27 import org.broadinstitute.sting.WalkerTest;

28 import org.testng.annotations.Test;

29

30 import java.util.Arrays;

31

XivoDirectory.scala (https://gitlab.com/winckell.benjamin.isart/xucserver) Scala · 205 lines

2

3 import akka.actor.{ActorRef, Actor, ActorLogging, Props}

4 import play.api.libs.json._

5 import services.directory.DirectoryTransformer

6 import DirectoryTransformer.RawDirectoryResult

7 import services.config.ConfigRepository

8 import services.request._

9 import xivo.network.XiVOWSdef

10 import xivo.services.XivoDirectory.Action.Action

11 import xivo.services.XivoDirectory._

12 import xivo.xuc.XucConfig

FileReference.java (https://bitbucket.org/nbargnesi/idea.git) Java · 593 lines

18

19 import com.intellij.codeInsight.daemon.EmptyResolveMessageProvider;

20 import com.intellij.codeInsight.daemon.QuickFixProvider;

21 import com.intellij.codeInsight.daemon.impl.HighlightInfo;

22 import com.intellij.codeInsight.lookup.LookupElementBuilder;

23 import com.intellij.codeInspection.LocalQuickFix;

24 import com.intellij.codeInspection.LocalQuickFixProvider;

25 import com.intellij.lang.LangBundle;

26 import com.intellij.lang.injection.InjectedLanguageManager;

27 import com.intellij.openapi.diagnostic.Logger;

28 import com.intellij.openapi.project.Project;

SimpleMapperTests.java (https://gitlab.com/sharadag/elasticsearch) Java · 136 lines

21

22 import org.elasticsearch.common.bytes.BytesArray;

23 import org.elasticsearch.common.bytes.BytesReference;

24 import org.elasticsearch.common.compress.CompressedXContent;

25 import org.elasticsearch.common.xcontent.XContentFactory;

26 import org.elasticsearch.index.IndexService;

27 import org.elasticsearch.index.mapper.DocumentMapper;

28 import org.elasticsearch.index.mapper.DocumentMapperParser;

29 import org.elasticsearch.index.mapper.MapperParsingException;

30 import org.elasticsearch.index.mapper.ParseContext.Document;

31 import org.elasticsearch.index.mapper.core.TextFieldMapper;

UserCrudServlet.java (https://gitlab.com/NealsSBUProjects/AtomicComics) Java · 248 lines

2

3 import atomic.comic.ComicRequest;

4 import atomic.crud.CrudResult;

5 import atomic.crud.CrudServlet;

6 import atomic.data.EntityKind;

7 import atomic.json.JsonProperty;

8 import atomic.json.NoUniqueKeyException;

10 import com.google.appengine.repackaged.com.google.api.client.json.Json;

11 import com.google.gson.JsonArray;

12 import com.google.gson.JsonElement;

13 import com.google.gson.JsonObject;

14

UserManagement.java (https://bitbucket.org/MrJames/wineenterprise.git) Java · 139 lines

6

7 import com.google.gson.Gson;

8 import commonBeans.UserSessionBean;

9 import helper.UserState;

10 import java.util.ResourceBundle;

11 import javax.annotation.PostConstruct;

12 import javax.faces.application.FacesMessage;

13 import javax.faces.bean.ManagedBean;

14 import javax.faces.bean.ViewScoped;

15 import javax.faces.context.FacesContext;

16 import javax.inject.Inject;

ItemTransformVec3f.java (https://gitlab.com/HuliPvP/XIV) Java · 68 lines

2

3 import com.google.gson.*;

4 import net.minecraft.util.JsonUtils;

5 import net.minecraft.util.MathHelper;

6

7 import javax.vecmath.Vector3f;

8 import java.lang.reflect.Type;

chapter19.py (https://bitbucket.org/Surgo/the-django-book-japanese/) Python · 122 lines ✨ Summary

This code snippet demonstrates various ways to inject SQL queries and manipulate user input, highlighting potential security vulnerabilities. It shows how to use Django’s ORM safely, escape user input, and avoid SQL injection attacks by using parameterized queries. The examples also illustrate how to handle file paths and URLs securely.

37

38 from django.db import connection

39

101

102 import os

103 import posixpath

test_lti.py (https://gitlab.com/unofficial-mirrors/edx-platform) Python · 135 lines

4

5 import unittest

6

7 from oauthlib.common import Request

8

9 from third_party_auth.lti import LTI_PARAMS_KEY, LTIAuthBackend

10 from third_party_auth.tests.testutil import ThirdPartyAuthTestMixin

UploadResponder.java (https://gitlab.com/CORP-RESELLER/SeLion) Java · 227 lines

6 import java.util.List;

7 import java.util.Map;

8 import java.util.logging.Level;

12

13 import com.google.gson.Gson;

14 import com.google.gson.GsonBuilder;

15 import com.google.gson.JsonArray;

16 import com.google.gson.JsonObject;

17 import com.paypal.selion.logging.SeLionGridLogger;

139

140 private final Gson gson;

141

147 super(transferContext);

148 gson = new GsonBuilder().disableHtmlEscaping().create();

149 jsonResponse = new JsonObject();

PaymentIntentIncrementAuthorizationParams.java (https://github.com/stripe/stripe-java.git) Java · 300 lines

3

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

5 import com.stripe.net.ApiRequestParams;

6 import java.util.ArrayList;

7 import java.util.HashMap;

8 import java.util.List;

9 import java.util.Map;

10 import lombok.Getter;

11

GameInput.java (https://gitlab.com/rsgm123/ISA) Java · 154 lines

2

3 import com.badlogic.gdx.InputProcessor;

4 import com.badlogic.gdx.graphics.Color;

5 import isa.Gameplay;

6 import isa.Person;

7 import isa.gui.GameScreen.Tab;

8

boto_iam_role_test.py (https://gitlab.com/ricardo.hernandez/salt) Python · 185 lines

5 # Import Python libs

6 from __future__ import absolute_import

7

8 # Import Salt Testing Libs

9 from salttesting import skipIf, TestCase

10 from salttesting.mock import (

11 NO_MOCK,

15

16 from salttesting.helpers import ensure_in_syspath

17

19

20 # Import Salt Libs

21 from salt.states import boto_iam_role

Zone.java (https://github.com/gnodet/jclouds.git) Java · 401 lines

20

21 import static com.google.common.base.Preconditions.checkNotNull;

22

23 import java.util.List;

24

25 import javax.annotation.Nullable;

26

27 import com.google.common.collect.ImmutableList;

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

29

TimePicker.css (http://enginey.googlecode.com/svn/trunk/) CSS · 62 lines ✨ Summary

This CSS code styles a time picker component, customizing its appearance and behavior. It sets colors, fonts, and layouts for ticks, markers, hover states, and selected items. The code also adds accessibility features, such as high contrast mode and screen reader support, to ensure the time picker is usable by everyone.

53 .dijit_a11y .dijitTimePickerTickHover {

54 background-color: #CCC !important;

55 border-top: 1px solid #333 !important;

56 border-bottom: 1px solid #333 !important;

57 }

SmartListTest.java (https://bitbucket.org/nbargnesi/idea.git) Java · 136 lines

17

18 import com.intellij.util.containers.EmptyIterator;

19 import junit.framework.TestCase;

20

21 import java.util.ConcurrentModificationException;

22 import java.util.Iterator;

23 import java.util.List;

24

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.

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

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;

gyptest-commands.py (https://bitbucket.org/ultra_iter/qt-vtl.git) Python · 44 lines

10

11 import os

12

13 import TestGyp

14

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.

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;

test_grid_performance.html (http://enginey.googlecode.com/svn/trunk/) HTML · 122 lines ✨ Summary

This HTML code creates a web page that tests the performance of the dojox.grid.DataGrid widget. It allows users to start two types of tests: “Creation Tests” and “Store Re-use Tests”. The tests measure the time it takes to create multiple DataGrid instances with different configurations, including programmatic creation with and without source nodes, as well as reusing a shared store.

6 <style type="text/css">

7 @import "../resources/Grid.css";

8 @import "../resources/tundraGrid.css";

9 @import "../../../dojo/resources/dojo.css";

10 @import "../../../dijit/themes/tundra/tundra.css";

PageHistoryResponderTest.java (git://github.com/unclebob/fitnesse.git) Java · 486 lines ✨ Summary

This Java code is a test class for a FitNesse wiki application, which is a web-based testing framework. It tests various scenarios related to test execution reports, file handling, and request processing, ensuring that the application behaves correctly under different conditions. The tests cover aspects such as generating responses, parsing files, and accepting different input formats.

2

3 import static org.junit.Assert.assertEquals;

4 import static org.mockito.Mockito.mock;

5 import static org.mockito.Mockito.when;

6 import static util.RegexTestCase.assertHasRegexp;

7 import static util.RegexTestCase.assertSubString;

8

9 import java.io.File;

10 import java.io.FileWriter;

11 import java.io.IOException;

12 import java.text.ParseException;

TextMakerTest.java (git://github.com/unclebob/fitnesse.git) Java · 70 lines ✨ Summary

This Java code is a test class for a TextMaker class, which appears to be responsible for parsing and processing wiki text. The tests verify that the TextMaker correctly handles various inputs such as text, wiki words with underscores, emails, and other formats, ensuring they are matched and processed correctly.

2

3 import fitnesse.wikitext.parser.*;

4 import fitnesse.wikitext.parser.VariableSource;

5 import org.junit.Test;

6 import static org.junit.Assert.assertEquals;

7 import static org.junit.Assert.assertTrue;

8

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

41

42 import os

43 import sys

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

8

9 import os

10 import re

11 import subprocess

12 import sys

Button.qml (https://bitbucket.org/ultra_iter/qt-vtl.git) QML · 67 lines

41 //! [document]

42 import QtQuick 1.0

43

ProjectManagerEx.java (https://bitbucket.org/nbargnesi/idea.git) Java · 61 lines

17

18 import com.intellij.openapi.application.ApplicationManager;

19 import com.intellij.openapi.project.Project;

20 import com.intellij.openapi.project.ProjectManager;

21 import com.intellij.openapi.util.InvalidDataException;

22 import com.intellij.openapi.vfs.VirtualFile;

23 import org.jdom.JDOMException;

24 import org.jetbrains.annotations.NotNull;

25 import org.jetbrains.annotations.Nullable;

26 import org.jetbrains.annotations.TestOnly;

27

AntDomBasenameTask.java (https://bitbucket.org/nbargnesi/idea.git) Java · 44 lines

17

18 import com.intellij.psi.PsiFileSystemItem;

19 import com.intellij.util.xml.Attribute;

20 import com.intellij.util.xml.Convert;

21 import com.intellij.util.xml.GenericAttributeValue;

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.

23

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

25

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.

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.*;

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

2

3 import b.B;

4

TestExecutionImpl.java (http://mycila.googlecode.com/svn/) Java · 81 lines ✨ Summary

This Java class implements a TestExecution interface, providing an implementation for test execution. It encapsulates a test context and method, allowing modification of attributes, step changes, and access to test execution details such as context, method, and throwable. The class also provides methods to check if the test must be skipped and to set the skip status.

17

18 import com.mycila.testing.core.api.Attributes;

19 import static com.mycila.testing.core.api.Ensure.*;

20 import com.mycila.testing.core.api.Step;

21 import com.mycila.testing.core.api.TestContext;

22 import com.mycila.testing.core.api.TestExecution;

23

24 import java.lang.reflect.Method;

25

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

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;

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

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

TestFailedEvent.java (https://bitbucket.org/nbargnesi/idea.git) Java · 90 lines

17

18 import jetbrains.buildServer.messages.serviceMessages.TestFailed;

19 import org.jetbrains.annotations.NotNull;

20 import org.jetbrains.annotations.Nullable;

21

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

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;

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

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

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

560 signal direction may change. This helps drivers prevent userspace code

561 from accidentally clobbering important system state.

562

LoginDialog.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 374 lines ✨ Summary

This Java code creates a GUI dialog for configuring FTP connection settings, including host, user, password, and private key. It uses a variable grid layout to arrange fields and provides features like auto-completion, password storage, and private key selection with file chooser functionality. The dialog also checks the configuration against predefined keys and passwords when the user types or selects values.

24

25 import javax.swing.*;

26 import javax.swing.border.*;

27 import javax.swing.event.*;

28

29 import java.awt.*;

30 import java.awt.event.*;

31

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

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

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.

10

11 import java.util.*;

12 import javax.swing.SwingUtilities;

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.)

pluginMixed.pro (https://bitbucket.org/ultra_iter/qt-vtl.git) Prolog · 9 lines

4 QT = core declarative

5 DESTDIR = ../imports/com/nokia/AutoTestQmlMixedPluginType

6

runme.lua (https://swig.svn.sourceforge.net/svnroot/swig) Lua · 104 lines ✨ Summary

This Lua code tests various properties of classes defined in separate modules, including importing libraries, creating objects, calling methods, performing casts, and testing dynamic casting. It checks if the classes are correctly loaded and interacted with, ensuring that the Swig-generated wrappers work as expected. The output shows whether the casting operations result in valid or invalid objects.

2

3 print("Testing the %import directive")

4

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.

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

SetCopyToLeft.java (https://bitbucket.org/nbargnesi/idea.git) Java · 36 lines

17

18 import com.intellij.ide.diff.DirDiffElement;

19 import com.intellij.openapi.diff.impl.dir.DirDiffOperation;

20 import org.jetbrains.annotations.NotNull;

21

Menu.resx (https://bitbucket.org/davcar/bvcms/) Unknown · 120 lines

62 <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">

63 <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />

64 <xsd:element name="root" msdata:IsDataSet="true">

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

17

18 import java.util.Map;

19

cursorTest.qml (https://bitbucket.org/ultra_iter/qt-vtl.git) QML · 8 lines

1 import QtQuick 1.0

2

DependencyMemberInfoModel.java (https://bitbucket.org/nbargnesi/idea.git) Java · 90 lines

26

27 import com.intellij.psi.PsiElement;

28 import org.jetbrains.annotations.NotNull;

29

30 import java.util.Collection;

31

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.

25

26 import java.util.Vector;

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

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

29

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.

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

ForLoopReplaceableByWhileInspection.java (https://bitbucket.org/nbargnesi/idea.git) Java · 141 lines

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;

friends_runme.go (https://swig.svn.sourceforge.net/svnroot/swig) Go · 51 lines ✨ Summary

The provided Go code tests various functions from a package named “friends”. It creates instances of types A, B, and D_d, and uses them to test different methods such as Get_val1, Mix, Set, and others. The tests verify that the methods return expected values for both integer and float64 types, demonstrating template overloading and type casting capabilities.

2

3 import "./friends"

4

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.

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

DelegateColorScheme.java (https://bitbucket.org/nbargnesi/idea.git) Java · 182 lines

17

18 import com.intellij.openapi.editor.colors.ColorKey;

19 import com.intellij.openapi.editor.colors.EditorColorsScheme;

20 import com.intellij.openapi.editor.colors.EditorFontType;

21 import com.intellij.openapi.editor.colors.TextAttributesKey;

22 import com.intellij.openapi.editor.markup.TextAttributes;

23 import com.intellij.openapi.options.FontSize;

24 import com.intellij.openapi.util.InvalidDataException;

25 import com.intellij.openapi.util.WriteExternalException;

26 import org.jdom.Element;

27 import org.jetbrains.annotations.NotNull;

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

48

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

50

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

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

17

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

19

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

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.*;

25

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

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;

AntDomInputTask.java (https://bitbucket.org/nbargnesi/idea.git) Java · 38 lines

17

18 import com.intellij.util.xml.Attribute;

19 import com.intellij.util.xml.GenericAttributeValue;

20 import com.intellij.util.xml.NameValue;

21

22 import java.util.Collections;

23 import java.util.List;

LocalInspectionToolWrapper.java (https://bitbucket.org/nbargnesi/idea.git) Java · 233 lines

18

19 import com.intellij.analysis.AnalysisScope;

20 import com.intellij.codeHighlighting.HighlightDisplayLevel;

21 import com.intellij.codeInspection.*;

22 import com.intellij.codeInspection.reference.RefElement;

23 import com.intellij.codeInspection.reference.RefEntity;

24 import com.intellij.codeInspection.reference.RefManagerImpl;

25 import com.intellij.codeInspection.ui.InspectionResultsView;

26 import com.intellij.codeInspection.ui.InspectionTreeNode;

27 import com.intellij.lang.annotation.HighlightSeverity;

28 import com.intellij.openapi.application.ApplicationManager;

LibraryGroupElement.java (https://bitbucket.org/nbargnesi/idea.git) Java · 55 lines

18

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

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

21 import org.jetbrains.annotations.NotNull;

22

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

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;

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

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

7 HTML import into QTextDocument).

8

JdkUtil.java (https://bitbucket.org/nbargnesi/idea.git) Java · 313 lines

21

22 import com.intellij.execution.configurations.GeneralCommandLine;

23 import com.intellij.execution.configurations.ParametersList;

24 import com.intellij.execution.configurations.SimpleJavaParameters;

25 import com.intellij.ide.util.PropertiesComponent;

26 import com.intellij.openapi.diagnostic.Logger;

27 import com.intellij.openapi.project.Project;

28 import com.intellij.openapi.util.Comparing;

29 import com.intellij.openapi.util.io.FileUtil;

30 import com.intellij.openapi.vfs.CharsetToolkit;

31 import com.intellij.openapi.vfs.JarFileSystem;

EnterHandlerDelegate.java (https://bitbucket.org/nbargnesi/idea.git) Java · 43 lines

18

19 import com.intellij.openapi.extensions.ExtensionPointName;

20 import com.intellij.openapi.editor.actionSystem.EditorActionHandler;

21 import com.intellij.openapi.editor.Editor;

22 import com.intellij.openapi.actionSystem.DataContext;

23 import com.intellij.openapi.util.Ref;

24 import com.intellij.psi.PsiFile;

25 import org.jetbrains.annotations.NotNull;

26 import org.jetbrains.annotations.Nullable;

DrawableStateListDomFileDescription.java (https://bitbucket.org/nbargnesi/idea.git) Java · 55 lines

17

18 import com.android.resources.ResourceType;

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

20 import com.intellij.psi.xml.XmlFile;

21 import com.intellij.psi.xml.XmlTag;

22 import org.jetbrains.android.dom.AndroidResourceDomFileDescription;

23 import org.jetbrains.annotations.NonNls;

24 import org.jetbrains.annotations.NotNull;

25 import org.jetbrains.annotations.Nullable;

GrPropertySelectionImpl.java (https://bitbucket.org/nbargnesi/idea.git) Java · 83 lines

18

19 import com.intellij.lang.ASTNode;

20 import com.intellij.openapi.diagnostic.Logger;

21 import com.intellij.psi.PsiElement;

22 import org.jetbrains.annotations.NotNull;

23 import org.jetbrains.plugins.groovy.lang.lexer.TokenSets;

24 import org.jetbrains.plugins.groovy.lang.psi.GroovyElementVisitor;

25 import org.jetbrains.plugins.groovy.lang.psi.api.GroovyResolveResult;

26 import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrExpression;

27 import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.path.GrPropertySelection;

28 import org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.GrReferenceExpressionImpl;

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

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

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

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

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;

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

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

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;

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.

22

23 import java.io.File;

24

TodoView.java (https://bitbucket.org/nbargnesi/idea.git) Java · 354 lines

18

19 import com.intellij.ide.IdeBundle;

20 import com.intellij.openapi.Disposable;

21 import com.intellij.openapi.application.ApplicationManager;

22 import com.intellij.openapi.application.ModalityState;

23 import com.intellij.openapi.components.PersistentStateComponent;

24 import com.intellij.openapi.components.State;

25 import com.intellij.openapi.components.Storage;

26 import com.intellij.openapi.components.StoragePathMacros;

27 import com.intellij.openapi.fileTypes.FileTypeEvent;

28 import com.intellij.openapi.fileTypes.FileTypeListener;

ConfigureFileDefaultEncodingAction.java (https://bitbucket.org/nbargnesi/idea.git) Java · 44 lines

18

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

20 import com.intellij.openapi.actionSystem.AnActionEvent;

21 import com.intellij.openapi.actionSystem.PlatformDataKeys;

22 import com.intellij.openapi.options.ShowSettingsUtil;

23 import com.intellij.openapi.project.Project;

24 import com.intellij.openapi.vfs.VirtualFile;

ModifierAwareArrangementEntry.java (https://bitbucket.org/nbargnesi/idea.git) Java · 32 lines

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;

23

encoders.py (git://github.com/IronLanguages/main.git) Python · 82 lines ✨ Summary

This is a Python script that defines several functions for encoding email messages using different methods, such as Base64, quoted-printable, and 7bit or 8bit. The encode_base64 function sets the Content-Transfer-Encoding header to “base64” and encodes the message’s payload in Base64 format. The encode_quopri function does the same for quoted-printable encoding, while the encode_7or8bit function checks if the payload is ASCII-encoded and sets the Content-Transfer-Encoding header to “7bit” or “8bit”, depending on the result. Finally, the encode_noop function does nothing and leaves the Content-Transfer-Encoding header unchanged.

13

14 import base64

15

16 from quopri import encodestring as _encodestring

17

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

120

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

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

WhereUsedResponder.java (git://github.com/unclebob/fitnesse.git) Java · 32 lines ✨ Summary

This Java class, WhereUsedResponder, is a responder for the Fitnesse testing framework. It provides a search functionality that finds pages where a specific keyword (“where used”) has been mentioned in other pages. The responder uses a custom page finder and returns the results of the search in a template called “searchResults”.

4

5 import fitnesse.components.TraversalListener;

6 import fitnesse.wiki.WikiPage;

7 import fitnesse.wiki.search.PageFinder;

8 import fitnesse.wiki.search.WhereUsedPageFinder;

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.

2

3 import (

4 "bytes"

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.

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;