100+ results for 'import pandas'

Not the results you expected?

SnowKernel.java (http://loon-simple.googlecode.com/svn/trunk/) Java · 102 lines ✨ Summary

This Java class represents a snow effect in an Android game. It creates and manages a snow kernel, which is a small white texture that falls from the top of the screen. The kernel’s position, speed, and direction are updated over time, creating a falling animation. The kernel can be created and drawn on the screen using the provided methods.

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

2

3 import org.loon.framework.android.game.core.LSystem;

4 import org.loon.framework.android.game.core.graphics.opengl.GLEx;

5 import org.loon.framework.android.game.core.graphics.opengl.LTexture;

6

7 /**

PimpedVersion.scala (git://github.com/twitter/standard-project.git) Scala · 29 lines ✨ Summary

This Scala code defines a class PimpedVersion that extends BasicVersion. It provides methods to increment the version by one unit (micro, minor, major) and add/remove snapshot suffixes. The implicit conversion allows any Version object to be converted into a PimpedVersion object, enabling these operations on any version.

1 package com.twitter.sbt

2

3 import _root_.sbt.{Version, BasicVersion}

4

5 object pimpedversion {

toolbar.css (https://github.com/heimidal/midas.git) CSS · 235 lines

52 .midas-actionsbar .midas-group.disabled .midas-button,

53 .disabled .midas-actionsbar .midas-button {

54 opacity: 0.33 !important;

55 }

56 .midas-actionsbar .midas-separator,

137 .midas-regionbar.disabled .midas-button,

138 .disabled .midas-regionbar .midas-button {

139 opacity: 0.33 !important;

140 }

141 .midas-regionbar .midas-group {

143 }

144 .midas-regionbar .midas-group.disabled .midas-button {

145 opacity: 0.33 !important;

146 }

147 .midas-regionbar .midas-group .midas-button {

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

This Java code is part of a diff (difference) tool, specifically a graphical overview of two versions of text files. It displays a visual representation of the differences between the two files, including inserted and deleted lines, with a cursor indicating the current line in each file. The display is rendered using graphics and colors to highlight changes.

19

20

21 import java.awt.Color;

22 import java.awt.Graphics;

23 import java.awt.Rectangle;

24

25 import jdiff.util.Diff;

26

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

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

29

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

31

32

CountryTest.java (https://github.com/gsteri1/OG-Platform.git) Java · 251 lines

6 package com.opengamma.util.i18n;

7

8 import static org.testng.AssertJUnit.assertEquals;

9 import static org.testng.AssertJUnit.assertSame;

10 import static org.testng.AssertJUnit.assertTrue;

11

12 import java.io.ByteArrayInputStream;

13 import java.io.ByteArrayOutputStream;

14 import java.io.ObjectInputStream;

15 import java.io.ObjectOutputStream;

16

17 import org.testng.annotations.Test;

list.css (https://gitlab.com/x33n/respond) CSS · 541 lines

107 div.placeholder{

108 height: 40px;

109 border: 1px solid #fbec5d !important;

110 background: #fbec5d !important;

279 top: 20px;

280 right: 42px;

281 display: inline-block !important;

282 width: 25px !important;

283 height: 25px !important;

284 color: #ccc;

285 }

480

481 .image-item.active h2{

482 background-color: #81b841 !important;

483 color: #fff;

484 border-bottom: 1px solid #81b841 !important;

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

This Java class, SegmentBuffer, extends the built-in Segment class and provides methods to append text to a buffer. It dynamically resizes its internal array when necessary, allowing for efficient growth of the buffer. The append method can add individual characters or arrays of characters to the end of the buffer, ensuring that it always has enough space to accommodate new data.

23 package org.gjt.sp.util;

24

25 import javax.swing.text.Segment;

26

27 /**

main.java (https://swig.svn.sourceforge.net/svnroot/swig) Java · 45 lines ✨ Summary

This Java code attempts to load a native library called “example” and access its variables using reflection. It prints the values of several variables, including some that are expected to be undefined, demonstrating how the program handles errors when trying to access non-existent fields. The output shows whether these variables exist or not, indicating successful error handling.

1 import java.lang.reflect.*;

2

3 public class main {

zoom_index.js (https://bitbucket.org/sensorviveropfc/sensorvivero.git) JavaScript · 580 lines

167 "creacion.htm 6 6 64",

168 "entidad 7 10 32 22 10 16",

169 "importante 7 10 16",

170 "junto 7 10 16",

171 "representa 7 10 16",

Python.hs (https://github.com/jb55/semgrep.git) Haskell · 315 lines

12 import Control.Monad

13 import Data.Generics

14 import Data.Monoid

15 import Data.Maybe(maybeToList)

16 import System.IO

244 -- | Import statements

245 --------------------------------------------------------------------------------

246 fromPyStmt n@(P.Import items _) = Import (map fromPyImportItem items)

247 Nothing

248 (fromPyInfo n)

258 -- | Convert a Python import item to a generic statement

259 --------------------------------------------------------------------------------

260 fromPyImportItem :: P.ImportItem PyAnno -> ImportItem

261 fromPyImportItem n@(P.ImportItem names maybeIdent _) =

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

16 package com.intellij.cvsSupport2.connections;

17

18 import com.intellij.CvsBundle;

19 import com.intellij.openapi.ui.Messages;

CfrSectionTracker.java (https://bitbucket.org/cardence/legal-data-parser.git) Java · 245 lines

1 package com.cardence.lawshelf.cfr;

2

3 import java.util.ArrayList;

4 import java.util.HashMap;

5 import java.util.Iterator;

6 import java.util.List;

7 import java.util.Map;

8

9 import org.apache.commons.lang.ArrayUtils;

10 import org.apache.commons.lang.StringUtils;

11 import org.apache.commons.lang.math.NumberUtils;

12 import org.springframework.beans.BeansException;

13 import org.springframework.beans.factory.config.BeanDefinition;

node.scala (https://github.com/Heit/circumflex.git) Scala · 275 lines

1 package ru.circumflex.orm

2

3 import ORM._

4 import java.lang.String

FavoritesPanel.java (https://bitbucket.org/nbargnesi/idea.git) Java · 201 lines

16 package com.intellij.ide.favoritesTreeView;

17

18 import com.intellij.ide.dnd.*;

19 import com.intellij.ide.dnd.aware.DnDAwareTree;

20 import com.intellij.ide.favoritesTreeView.actions.AddToFavoritesAction;

21 import com.intellij.ide.projectView.impl.TransferableWrapper;

22 import com.intellij.ide.util.treeView.AbstractTreeBuilder;

23 import com.intellij.ide.util.treeView.AbstractTreeNode;

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

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

26 import com.intellij.psi.PsiElement;

27 import com.intellij.ui.awt.RelativeRectangle;

EditorHighlighterCache.java (https://bitbucket.org/nbargnesi/idea.git) Java · 57 lines

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

17

18 import com.intellij.openapi.editor.Document;

19 import com.intellij.openapi.editor.ex.util.LexerEditorHighlighter;

20 import com.intellij.openapi.editor.highlighter.EditorHighlighter;

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

22 import org.jetbrains.annotations.NotNull;

23 import org.jetbrains.annotations.Nullable;

24

25 import java.lang.ref.WeakReference;

26

27 /**

VirtualFileManagerAdapter.java (https://bitbucket.org/nbargnesi/idea.git) Java · 29 lines

17 package com.intellij.openapi.vfs.ex;

18

19 import com.intellij.openapi.vfs.VirtualFileManagerListener;

20

21 public abstract class VirtualFileManagerAdapter implements VirtualFileManagerListener {

MacMessagesImpl.java (https://bitbucket.org/nbargnesi/idea.git) Java · 556 lines

16 package com.intellij.ui.mac;

17

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

19 import com.intellij.openapi.ui.DialogWrapper;

20 import com.intellij.openapi.util.Pair;

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

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

23 import com.intellij.openapi.wm.IdeFocusManager;

24 import com.intellij.openapi.wm.IdeFrame;

25 import com.intellij.openapi.wm.WindowManager;

26 import com.intellij.ui.FocusTrackback;

27 import com.intellij.ui.mac.foundation.Foundation;

AbstractClassGenerator.java (https://bitbucket.org/nbargnesi/idea.git) Java · 245 lines

16 package net.sf.cglib.core;

17

18 import org.objectweb.asm.ClassReader;

19

20 import java.lang.ref.Reference;

21 import java.lang.ref.WeakReference;

22 import java.util.*;

UserTests.java (https://github.com/spreddy/liferay-portal.git) Java · 184 lines

15 package com.liferay.portalweb.portal.controlpanel.users.user;

16

17 import com.liferay.portalweb.portal.BaseTests;

18 import com.liferay.portalweb.portal.controlpanel.users.user.adduser.AddUserTests;

19 import com.liferay.portalweb.portal.controlpanel.users.user.adduserannouncement.AddUserAnnouncementTests;

20 import com.liferay.portalweb.portal.controlpanel.users.user.addusercomment.AddUserCommentTests;

21 import com.liferay.portalweb.portal.controlpanel.users.user.adduserdefaultuserassociationscommunity.AddUserDefaultUserAssociationsCommunityTests;

22 import com.liferay.portalweb.portal.controlpanel.users.user.adduserdefaultuserassociationsrole.AddUserDefaultUserAssociationsRoleTests;

23 import com.liferay.portalweb.portal.controlpanel.users.user.adduserdefaultuserassociationsusergroup.AddUserDefaultUserAssociationsUserGroupTests;

24 import com.liferay.portalweb.portal.controlpanel.users.user.adduserdisplaysettings.AddUserDisplaySettingsTests;

25 import com.liferay.portalweb.portal.controlpanel.users.user.adduseremailaddressampersand.AddUserEmailAddressAmpersandTests;

26 import com.liferay.portalweb.portal.controlpanel.users.user.adduseremailaddressapostrophe.AddUserEmailAddressApostropheTests;

DLPreviewableProcessor.java (https://github.com/spreddy/liferay-portal.git) Java · 350 lines

15 package com.liferay.portlet.documentlibrary.util;

16

17 import com.liferay.portal.kernel.io.FileFilter;

18 import com.liferay.portal.kernel.log.Log;

19 import com.liferay.portal.kernel.log.LogFactoryUtil;

20 import com.liferay.portal.kernel.repository.model.FileEntry;

21 import com.liferay.portal.kernel.repository.model.FileVersion;

22 import com.liferay.portal.kernel.util.StringBundler;

23 import com.liferay.portal.kernel.util.StringPool;

24 import com.liferay.portal.kernel.util.SystemProperties;

25 import com.liferay.portal.model.CompanyConstants;

26 import com.liferay.portal.util.PortalUtil;

generator-driver.adb (git://github.com/landgraf/matreshka.git) Ada · 639 lines ✨ Summary

This Ada code is a generator that takes an XML input file, parses its contents, and produces various outputs, including:

  • A metamodel specification
  • An implementation of the metamodel
  • Subclassing specifications and implementations
  • Attribute mappings specifications and implementations
  • Attributes specifications and implementations
  • Constructors specifications and implementations
  • Reflection implementations

It appears to be a tool for generating code from an XML-based input file.

329 Process_Package (N);

330

331 elsif Type_Name = "cmof:PackageImport" then

332 null;

333

struct_rename_runme.go (https://swig.svn.sourceforge.net/svnroot/swig) Go · 8 lines

1 package main

2

3 import "./struct_rename"

4

5 func main() {

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

17 package com.intellij.util.xmlb.annotations;

18

19 import com.intellij.util.xmlb.Constants;

20

21 import java.lang.annotation.ElementType;

22 import java.lang.annotation.Retention;

23 import java.lang.annotation.RetentionPolicy;

24 import java.lang.annotation.Target;

25

26 @Retention(RetentionPolicy.RUNTIME)

LineNumberListener.java (https://bitbucket.org/nbargnesi/idea.git) Java · 21 lines

13 package com.intellij.openapi.vcs.annotate;

14

15 import com.intellij.util.Consumer;

16

17 /**

SwXMLBlockListContext.cxx (https://github.com/jonasfj/libreoffice-writer.git) C++ · 250 lines

42

43 SwXMLBlockListContext::SwXMLBlockListContext(

44 SwXMLBlockListImport& rImport,

45 sal_uInt16 nPrefix,

46 const OUString& rLocalName,

47 const uno::Reference<

48 xml::sax::XAttributeList > & xAttrList ) :

49 SvXMLImportContext ( rImport, nPrefix, rLocalName ),

50 rLocalRef (rImport)

137

138 SwXMLTextBlockDocumentContext::SwXMLTextBlockDocumentContext(

139 SwXMLTextBlockImport& rImport,

140 sal_uInt16 nPrefix,

141 const OUString& rLocalName,

230 const uno::Reference<

231 xml::sax::XAttributeList > & ) :

232 SvXMLImportContext ( rImport, nPrefix, rLocalName ),

233 rLocalRef(rImport)

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

This Java code defines a class BSHPrimarySuffix that extends SimpleNode. It handles suffix operations on objects, such as accessing properties or indexing arrays. The class uses reflection to perform these operations and throws exceptions if errors occur. It is part of the BeanShell scripting language.

38 package bsh;

39

40 import java.util.Hashtable;

41 import java.lang.reflect.Array;

42 import java.lang.reflect.InvocationTargetException;

43

44 class BSHPrimarySuffix extends SimpleNode

CreateFunctionDesc.java (https://svn.apache.org/repos/asf/incubator/hcatalog/) text · 0 lines

19 package org.apache.hadoop.hive.ql.plan;

20

21 import java.io.Serializable;

22

23 /**

exim_10_external_managed.q (https://svn.apache.org/repos/asf/incubator/hcatalog/) text · 0 lines

14 !rm -rf ../build/ql/test/data/tablestore/exim_department;

15

16 create database importer;

17 use importer;

18

19 import from 'ql/test/data/exports/exim_department';

20 describe extended exim_department;

21 select * from exim_department;

23 !rm -rf ../build/ql/test/data/exports/exim_department;

24

25 drop database importer;

26

ErrorViewFactory.java (https://bitbucket.org/nbargnesi/idea.git) Java · 37 lines

16 package com.intellij.ui.errorView;

17

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

19 import com.intellij.openapi.components.ServiceManager;

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

21 import com.intellij.util.ui.ErrorTreeView;

22 import org.jetbrains.annotations.Nullable;

23

24 public interface ErrorViewFactory {

SignedAndEnvelopedData.java (https://gitlab.com/edgardo001/clienteafirma) Java · 218 lines

11 package es.gob.afirma.signers.pkcs7;

12

13 import org.spongycastle.asn1.ASN1Encodable;

14 import org.spongycastle.asn1.ASN1EncodableVector;

15 import org.spongycastle.asn1.ASN1Integer;

16 import org.spongycastle.asn1.ASN1Object;

17 import org.spongycastle.asn1.ASN1Primitive;

18 import org.spongycastle.asn1.ASN1Sequence;

19 import org.spongycastle.asn1.ASN1Set;

20 import org.spongycastle.asn1.ASN1TaggedObject;

21 import org.spongycastle.asn1.BERSequence;

22 import org.spongycastle.asn1.DERTaggedObject;

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

This Java code is part of a project viewer for a text editor, likely NetBeans. It provides functionality to save and load projects with custom node types, such as files, directories, and properties. The code handles XML serialization and deserialization, and allows users to add custom node handlers to extend the project viewer’s capabilities.

19 package projectviewer.persist;

20

21 //{{{ Imports

22 import java.io.BufferedWriter;

23 import java.io.File;

24 import java.io.Writer;

25 import java.io.InputStream;

26 import java.io.OutputStream;

27 import java.io.InputStreamReader;

28 import java.io.OutputStreamWriter;

29 import java.io.IOException;

30 import java.io.Writer;

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

This Java code defines an Action class called SearchAction, which is used to open a search dialog for a selected directory or project in a text editor. When executed, it searches for files within the specified path and allows users to filter results by file type. The action also handles recursive searching of directories and excludes binary files if configured to do so.

19 package projectviewer.action;

20

21 //{{{ Imports

22 import java.io.FileInputStream;

23 import java.io.InputStream;

24 import java.io.IOException;

25 import java.io.Reader;

26

27 import java.util.HashSet;

28 import java.util.Enumeration;

29

30 import java.util.regex.Matcher;

popup.html (https://github.com/Ovilia/OTL_SNS.git) HTML · 138 lines

123 $.ajax({

124 type: "POST",

125 url: "http://localhost/OTL_SNS/index.php/takes/import",

126 datatype: 'json',

127 data: "schedule=" + json_text,

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

This Java class represents a string literal in an Abstract Syntax Tree (AST) for PHP code. It extends another Literal class and provides methods to analyze and get used variables from the string, as well as convert its expression to a string representation. The class has two constructors: one that takes a Token object and another that takes source code information.

21 package net.sourceforge.phpdt.internal.compiler.ast;

22

23 import java.util.List;

24

25 import gatchan.phpparser.parser.Token;

26 import gatchan.phpparser.parser.PHPParser;

27 import net.sourceforge.phpdt.internal.compiler.ast.declarations.VariableUsage;

test_categorical.py (https://github.com/jreback/pandas.git) Python · 294 lines

3 for all of the parsers defined in parsers.py

4 """

5 from io import StringIO

6 import os

7

8 import numpy as np

9 import pytest

11 from pandas.core.dtypes.dtypes import CategoricalDtype

12

13 import pandas as pd

14 from pandas import Categorical, DataFrame, Timestamp

15 import pandas._testing as tm

16

17

StringBundler.java (https://github.com/kiyoshilee/liferay-portal.git) Java · 361 lines

15 package com.liferay.petra.string;

16

17 import com.liferay.petra.lang.CentralizedThreadLocal;

18

19 import java.io.IOException;

20 import java.io.Serializable;

21 import java.io.Writer;

22

23 import java.lang.ref.Reference;

24 import java.lang.ref.SoftReference;

test_period.py (https://github.com/neurodebian/pandas.git) Python · 251 lines

1 import numpy as np

2

3 import pandas as pd

4 import pandas.util.testing as tm

5 import pandas.core.indexes.period as period

6 from pandas import Series, period_range, DataFrame, Period

StagedAssetLinkStagedModelRepository.java (https://github.com/kiyoshilee/liferay-portal.git) Java · 310 lines

17 import com.liferay.asset.kernel.model.AssetEntry;

18 import com.liferay.asset.kernel.model.AssetLink;

19 import com.liferay.asset.kernel.model.adapter.StagedAssetLink;

20 import com.liferay.asset.kernel.service.AssetEntryLocalService;

21 import com.liferay.asset.kernel.service.AssetLinkLocalService;

22 import com.liferay.asset.util.StagingAssetEntryHelper;

23 import com.liferay.exportimport.kernel.lar.PortletDataContext;

24 import com.liferay.exportimport.staged.model.repository.StagedModelRepository;

25 import com.liferay.petra.string.StringPool;

26 import com.liferay.portal.kernel.dao.orm.Criterion;

27 import com.liferay.portal.kernel.dao.orm.DynamicQuery;

28 import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;

29 import com.liferay.portal.kernel.dao.orm.OrderFactoryUtil;

main.m (https://bitbucket.org/Tsiannian/cocos2d-x.git) Objective C · 21 lines

7 //

8

9 #import <UIKit/UIKit.h>

10

11 // Under iOS and the Simulator, we can use an alternate Accelerometer interface

12 #import "AccelerometerSimulation.h"

13

14 int main(int argc, char *argv[]) {

UsageViewTypeLocation.java (https://bitbucket.org/nbargnesi/idea.git) Java · 74 lines

17 package com.intellij.usageView;

18

19 import com.intellij.ide.TypePresentationService;

20 import com.intellij.psi.*;

21 import com.intellij.psi.meta.PsiMetaData;

22 import com.intellij.psi.meta.PsiMetaOwner;

23 import com.intellij.psi.meta.PsiPresentableMetaData;

24 import com.intellij.lang.LangBundle;

25 import com.intellij.lang.Language;

26 import com.intellij.lang.findUsages.FindUsagesProvider;

27 import com.intellij.lang.findUsages.LanguageFindUsages;

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

ChangeSetHolder.java (https://bitbucket.org/nbargnesi/idea.git) Java · 31 lines

16 package com.intellij.history.core;

17

18 import com.intellij.history.core.changes.ChangeSet;

19

20 import java.util.ArrayList;

21 import java.util.List;

22

23 public class ChangeSetHolder {

DefaultTreeExpander.java (https://bitbucket.org/nbargnesi/idea.git) Java · 58 lines

17 package com.intellij.ide;

18

19 import com.intellij.util.ui.tree.TreeUtil;

20 import org.jetbrains.annotations.NotNull;

21

22 import javax.swing.*;

23

24 /**

ExporterToTextFile.java (https://bitbucket.org/nbargnesi/idea.git) Java · 30 lines

16 package com.intellij.ide;

17

18 import javax.swing.*;

19 import javax.swing.event.ChangeListener;

20 import java.util.TooManyListenersException;

21

22 public interface ExporterToTextFile {

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

16 package com.intellij.ide;

17

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

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

20 import org.jetbrains.annotations.NotNull;

21

22 /**

GeneralSettings.java (https://bitbucket.org/nbargnesi/idea.git) Java · 542 lines

16 package com.intellij.ide;

17

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

19 import com.intellij.openapi.application.PathManager;

20 import com.intellij.openapi.components.ExportableApplicationComponent;

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

22 import com.intellij.openapi.util.SystemInfo;

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

24 import com.intellij.openapi.vfs.encoding.EncodingManager;

25 import org.intellij.lang.annotations.MagicConstant;

26 import org.jdom.Element;

27 import org.jetbrains.annotations.NonNls;

OccurenceNavigator.java (https://bitbucket.org/nbargnesi/idea.git) Java · 59 lines

16 package com.intellij.ide;

17

18 import com.intellij.pom.Navigatable;

19

20 public interface OccurenceNavigator {

PasteProvider.java (https://bitbucket.org/nbargnesi/idea.git) Java · 31 lines

17 package com.intellij.ide;

18

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

20 import org.jetbrains.annotations.NotNull;

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

16 package com.intellij.ide;

17

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

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

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

21 import org.jetbrains.annotations.NotNull;

22 import org.jetbrains.annotations.Nullable;

23

24 /**

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

16 package com.intellij.lang.annotation;

17

18 import com.intellij.openapi.util.DefaultJDOMExternalizer;

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

20 import com.intellij.openapi.util.JDOMExternalizable;

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

22 import org.jdom.Element;

23 import org.jetbrains.annotations.NonNls;

LookAheadLexer.java (https://bitbucket.org/nbargnesi/idea.git) Java · 177 lines

16 package com.intellij.lexer;

17

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

19 import com.intellij.util.containers.ImmutableUserMap;

20 import com.intellij.util.containers.Queue;

21

22 /**

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

16 package com.intellij.notification;

17

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

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

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

21 import com.intellij.util.messages.Topic;

22 import org.jetbrains.annotations.NotNull;

23 import org.jetbrains.annotations.Nullable;

24

25 import javax.swing.*;

26

27 /**

ActionUtil.java (https://bitbucket.org/nbargnesi/idea.git) Java · 147 lines

16 package com.intellij.openapi.actionSystem.ex;

17

18 import com.intellij.openapi.actionSystem.*;

19 import com.intellij.openapi.application.ApplicationNamesInfo;

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

21 import com.intellij.openapi.project.DumbService;

22 import com.intellij.openapi.project.IndexNotReadyException;

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

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

25 import org.jetbrains.annotations.NonNls;

26

27 import java.util.ArrayList;

28 import java.util.List;

CheckboxAction.java (https://bitbucket.org/nbargnesi/idea.git) Java · 77 lines

17 package com.intellij.openapi.actionSystem.ex;

18

19 import com.intellij.ide.DataManager;

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

21 import com.intellij.util.ui.UIUtil;

22

23 import javax.swing.*;

24 import java.awt.event.ActionEvent;

25 import java.awt.event.ActionListener;

blas.py (https://gitlab.com/5rXUTAIYJSBcdxFmjqpuwaPo71b283/gpaw) Python · 353 lines

11 http://www.netlib.org/lapack/lug/node145.html

12 """

13 from typing import TypeVar

14

15 import numpy as np

16 import scipy.linalg.blas as blas

17

18 from gpaw import debug

19 import _gpaw

20

21 __all__ = ['mmm']

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

This Java code defines a popup menu for BufferList, a feature of the JEdit text editor. It creates a customizable menu with actions such as “goto”, “open-in-new-view”, “close”, and “save” based on selected buffers or directories. The menu also includes options to browse, search, copy paths, and toggle display mode.

22 package bufferlist;

23

24 // {{{ imports

25 import java.awt.Toolkit;

26 import java.awt.datatransfer.StringSelection;

27 import java.awt.event.ActionEvent;

28 import java.awt.event.ActionListener;

29 import java.util.List;

30

31 import javax.swing.JMenuItem;

32 import javax.swing.JPopupMenu;

33 import javax.swing.JTree;

34 import javax.swing.tree.TreePath;

widgets.css (https://github.com/KnightBaron/onevc.git) CSS · 563 lines

380

381 .calendar-cancel {

382 margin: 0 !important;

383 padding: 0 !important;

410 ul.orderer {

411 position: relative;

412 padding: 0 !important;

413 margin: 0 !important;

436 overflow: hidden;

437 width: 83%;

438 font-size: 10px !important;

439 padding: 0.6em 0;

440 }

527

528 .editinline tr.deleted td:first-child {

529 background-image: none !important;

530 }

531

AssociationEndItemProvider.java (https://gitlab.com/jgsuess/uml-1.4.2) Java · 385 lines

8

9

10 import java.util.Collection;

11 import java.util.List;

12

13 import net.jgsuess.uml14.foundation.core.AssociationEnd;

14 import net.jgsuess.uml14.foundation.core.CoreFactory;

15 import net.jgsuess.uml14.foundation.core.CorePackage;

16

17 import net.jgsuess.uml14.foundation.data_types.Data_typesFactory;

18

19 import org.eclipse.emf.common.notify.AdapterFactory;

20 import org.eclipse.emf.common.notify.Notification;

NarLayout21.java (https://github.com/mirkojahn/maven-nar-plugin.git) Java · 221 lines

1 package org.apache.maven.plugin.nar;

2

3 import java.io.File;

4 import java.io.IOException;

5

6 import org.apache.maven.plugin.MojoExecutionException;

7 import org.apache.maven.plugin.MojoFailureException;

8 import org.apache.maven.plugin.logging.Log;

9 import org.apache.maven.project.MavenProject;

10 import org.apache.maven.project.MavenProjectHelper;

11 import org.codehaus.plexus.archiver.manager.ArchiverManager;

12 import org.codehaus.plexus.util.FileUtils;

13

14 /*

AssetListEntryAssetEntryRelLocalServiceImpl.java (https://github.com/kiyoshilee/liferay-portal.git) Java · 326 lines

15 package com.liferay.asset.list.service.impl;

16

17 import com.liferay.asset.kernel.AssetRendererFactoryRegistryUtil;

18 import com.liferay.asset.kernel.model.AssetEntry;

19 import com.liferay.asset.kernel.model.AssetRendererFactory;

20 import com.liferay.asset.kernel.service.AssetEntryLocalService;

21 import com.liferay.asset.list.exception.AssetListEntryAssetEntryRelPostionException;

22 import com.liferay.asset.list.model.AssetListEntryAssetEntryRel;

23 import com.liferay.asset.list.service.base.AssetListEntryAssetEntryRelLocalServiceBaseImpl;

24 import com.liferay.portal.aop.AopService;

25 import com.liferay.portal.kernel.exception.PortalException;

26 import com.liferay.portal.kernel.log.Log;

FragmentCollectionLocalServiceImpl.java (https://github.com/danielreuther/liferay-portal.git) Java · 333 lines

15 package com.liferay.fragment.service.impl;

16

17 import com.liferay.fragment.exception.DuplicateFragmentCollectionKeyException;

18 import com.liferay.fragment.exception.FragmentCollectionNameException;

19 import com.liferay.fragment.model.FragmentCollection;

20 import com.liferay.fragment.model.FragmentComposition;

21 import com.liferay.fragment.model.FragmentEntry;

22 import com.liferay.fragment.service.FragmentCompositionLocalService;

23 import com.liferay.fragment.service.FragmentEntryLocalService;

24 import com.liferay.fragment.service.base.FragmentCollectionLocalServiceBaseImpl;

25 import com.liferay.fragment.service.persistence.FragmentCompositionPersistence;

26 import com.liferay.fragment.service.persistence.FragmentEntryPersistence;

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

This Java class, JEditHistoryModelSaver, handles saving and loading history models for a text editor. It reads and writes history data from a file in the user’s settings directory, using a specific format to store model names and items. The class provides methods to load and save history models, updating the file on disk accordingly.

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

23

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

25 import org.gjt.sp.util.IOUtilities;

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

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

28

29 import java.io.*;

30 import java.util.*;

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

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

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

28 import java.io.IOException;

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

This Java code creates a dialog for adding new actions to an editor’s context menu. It allows users to select either a separator or an action, and then choose from a list of available actions. The selected action is added to the context menu, and the dialog can be cancelled or confirmed with “OK”.

23 package projectviewer.config;

24

25 //{{{ Imports

26 import java.util.Vector;

27 import java.util.StringTokenizer;

28

29 import java.awt.MenuItem;

30 import java.awt.Component;

31 import java.awt.GridLayout;

32 import java.awt.BorderLayout;

33 import java.awt.event.ActionEvent;

34 import java.awt.event.ActionListener;

35

36 import javax.swing.Box;

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

This Java class, PHPHyperlink, implements a hyperlink functionality for a text editor. It represents a hyperlink to a PHP file and provides methods to get its start and end offsets, lines, and tooltip. When clicked, it opens the corresponding PHP file in the text editor and moves the caret position to the line where the hyperlink is located.

22 package gatchan.phpparser.hyperlink;

23

24 import gatchan.jedit.hyperlinks.Hyperlink;

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

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

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

28 import org.gjt.sp.jedit.io.VFSManager;

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

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

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

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

This Java code defines a TextAreaDialog class that extends an enhanced dialog box with a text area. It provides constructors for creating dialogs with different types of content, including error messages and captions. The dialog has buttons for “OK” and “Cancel”, which can be used to dismiss the dialog when clicked.

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

24

25 //{{{ Imports

26 import javax.swing.*;

27 import javax.swing.border.*;

28 import java.awt.*;

29 import java.awt.event.*;

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

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

This Java code defines a GUI panel for customizing the appearance of a text editor, called jEdit. It allows users to select a look and feel, choose fonts, set history and menu spillover counts, and toggle various features such as showing a splash screen and tips. The settings are saved when the user closes the panel.

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

24

25 //{{{ Imports

26 import javax.swing.*;

27 import java.awt.event.*;

28 import java.awt.*;

29 import java.io.*;

30 import org.gjt.sp.jedit.gui.FontSelector;

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

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

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

This Java class defines an action to close the InfoViewer application. When executed, it removes a dockable window named “infoviewer” from a View instance (if present) or disposes of the current frame. The action is part of the InfoViewer’s functionality and allows users to close the application.

22 package infoviewer.actions;

23

24 import java.awt.Frame;

25 import java.awt.event.ActionEvent;

26

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

28

29

TODO (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 66 lines

26 - VC_Check: VC Plugins register a Hook that gets the project root and checks

27 if that project is under version control

28 - import filters (see importer/CVSEntriesFilter.java)

29 - interface FileFilter

30 - new project from VC system (initial checkout)

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

This Java code creates a graphical user interface (GUI) for creating and editing SVN tags and branches. It allows users to input source and destination URLs, select a revision, add comments, and cancel or save changes. The GUI is designed to be used in an SVN repository management context, such as Subversion version control system.

29 package ise.plugin.svn.gui;

30

31 import java.awt.Color;

32 import java.awt.Dimension;

33 import java.awt.BorderLayout;

34 import java.io.File;

35 import java.util.*;

36 import java.awt.event.*;

37 import javax.swing.*;

38 import javax.swing.table.*;

39 import javax.swing.border.EmptyBorder;

40 import org.gjt.sp.jedit.GUIUtilities;

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

This Java class, DummyFoldHandler, is a fold handler used when folding is disabled. It extends the FoldHandler class and provides an implementation for getting the fold level of a specified line in a buffer. The implementation simply returns 0, indicating that no folding is being done. This allows the program to function without folding capabilities.

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

24

25 import javax.swing.text.Segment;

26

27 /**

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

This Java code defines a plugin for the jEdit text editor, specifically a “Quick Open” feature that allows users to quickly open files from a list of recently edited files. The plugin updates its file list when the user selects a new directory or activates a view, and refreshes the list when a buffer is saved. It also provides an action menu entry for quick opening files.

16 package hohonuuli.jedit.quickopen;

17

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

19 import org.gjt.sp.jedit.EBPlugin;

20 import org.gjt.sp.jedit.EditBus.EBHandler;

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

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

23 import org.gjt.sp.jedit.msg.BufferUpdate;

24 import org.gjt.sp.jedit.msg.PropertiesChanged;

25 import org.gjt.sp.jedit.msg.VFSPathSelected;

26 import org.gjt.sp.jedit.msg.ViewUpdate;

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

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

This is a Java class definition for an EditBus plugin, which extends another class EditPlugin and implements the EBComponent interface. It provides a basic structure for plugins that can be added to the EditBus, allowing them to handle messages sent on the bus. The class has a default implementation of handling messages, but also allows subclasses to override this behavior.

20 package org.gjt.sp.jedit;

21

22 import java.util.Vector;

23 import org.gjt.sp.jedit.gui.OptionsDialog;

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

This Java class, EnumeratedProperties, extends java.util.Properties to allow storing and retrieving lists of strings as property values. It provides methods to get and set enumerated properties, which are accessed using a delimiter (default is ‘.’) between the property name and list member index. This allows for flexible storage and retrieval of string arrays in a Properties-like object.

17 package logviewer;

18

19 import java.util.ArrayList;

20 import java.util.List;

21 import java.util.Properties;

22

23 /**

Mask.java (http://loon-simple.googlecode.com/svn/trunk/) Java · 82 lines ✨ Summary

This Java class represents a mask, which is a rectangular area of pixels with specific values. It provides methods to get and set pixel data, check if a pixel exists at a given position, and dispose of the mask’s resources when no longer needed. The class implements Serializable and LRelease interfaces, indicating it can be serialized and released from memory.

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

2

3 import java.io.Serializable;

4

5 import org.loon.framework.android.game.core.LRelease;

TMXTileSet.java (http://loon-simple.googlecode.com/svn/trunk/) Java · 191 lines ✨ Summary

This Java class represents a tile set in a TMX (Tiled Map eXchange) file format, used for creating maps in games. It loads and parses the tile set data from an XML file, storing information such as tile dimensions, spacing, and properties. The class provides methods to access and manipulate this data, including getting tile coordinates and checking if a given GID (global ID) is within the tile set’s range.

1 package org.loon.framework.android.game.action.map.tmx;

2

3 import java.io.InputStream;

4 import java.util.HashMap;

5

6 import javax.xml.parsers.DocumentBuilder;

7 import javax.xml.parsers.DocumentBuilderFactory;

8

9 import org.loon.framework.android.game.action.sprite.SpriteSheet;

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

11 import org.loon.framework.android.game.core.resource.Resources;

12 import org.w3c.dom.Document;

Task.java (https://bitbucket.org/nbargnesi/idea.git) Java · 243 lines

16 package com.intellij.openapi.progress;

17

18 import com.intellij.CommonBundle;

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

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

21 import com.intellij.openapi.project.DumbModeAction;

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

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

24 import org.jetbrains.annotations.NotNull;

25 import org.jetbrains.annotations.Nullable;

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

This Java code is part of a text editor’s key handling mechanism. It processes keystrokes, invokes actions based on modifier keys and input characters, and updates the current state of the editor. It also handles special cases like numeric keypad input and sends shortcut prefix off signals when necessary. The code uses a complex system to manage multiple states and actions, making it suitable for a text editing application with various keyboard shortcuts.

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

24

25 //{{{ Imports

26 import javax.swing.KeyStroke;

27 import java.awt.event.KeyEvent;

28 import java.awt.event.InputEvent;

29 import java.awt.Toolkit;

30 import java.util.Hashtable;

31 import java.util.StringTokenizer;

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

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

34 import org.gjt.sp.jedit.msg.*;

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

This Java code defines a set of listener interfaces and event handlers for various GUI events, such as button clicks, key presses, and window changes. It also provides a method to update an image in a graphical application. The code uses a custom interpreter and call stack system to handle the event handling and method invocation.

35 package bsh;

36

37 import java.awt.event.*;

38 import javax.swing.*;

39 import javax.swing.event.*;

40 import java.io.*;

41 import java.beans.*;

42

43 /**

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

This Java code manages a console frame for an integrated development environment (IDE). It creates a menu item to open the console, displays a toolbar in the console if enabled, and provides actions to toggle visibility and run commands within the console. The console’s visibility is tied to its parent view’s state, allowing it to be shown or hidden as needed.

18 */

19

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

21 import org.gjt.sp.jedit.msg.*;

22 import java.awt.Component;

23 import java.awt.event.ActionEvent;

24 import java.util.Hashtable;

25 import java.util.Vector;

Variable.java (https://bitbucket.org/nbargnesi/idea.git) Java · 142 lines

17 package com.intellij.codeInsight.template.impl;

18

19 import com.intellij.codeInsight.template.Expression;

20

21 public class Variable implements Cloneable {

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

This Java class, RETokenRepeated, represents a repeated token in a regular expression. It extends the REToken class and adds functionality for matching repeated tokens with varying minimum and maximum repetition counts. The class provides methods for checking if minimal matching is enabled, calculating the minimum length of a repeated token, and matching input strings against the repeated token.

19

20 package gnu.regexp;

21 import java.util.Vector;

22

23 final class RETokenRepeated extends REToken {

desktop.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 225 lines

9 */

10

11 import javax.swing.*;

12 import javax.swing.border.*;

13 import bsh.util.JConsole;

14 import bsh.util.Util;

15 import bsh.Interpreter;

16 import java.awt.Component;

17 import bsh.Capabilities;

18

19 desktop()

200 if ( Capabilities.canGenerateInterfaces() )

201 {

202 import bsh.classpath.BshClassPath;

203 classFeedbackListener = new BshClassPath.MappingFeedback()

204 {

OutputToGeneralTestEventsConverter.java (https://bitbucket.org/nbargnesi/idea.git) Java · 503 lines

16 package com.intellij.execution.testframework.sm.runner;

17

18 import com.intellij.execution.process.ProcessOutputTypes;

19 import com.intellij.execution.testframework.TestConsoleProperties;

20 import com.intellij.execution.testframework.sm.runner.events.*;

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

22 import com.intellij.openapi.util.Key;

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

24 import jetbrains.buildServer.messages.serviceMessages.*;

25 import org.jetbrains.annotations.NonNls;

26 import org.jetbrains.annotations.NotNull;

27 import org.jetbrains.annotations.Nullable;

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 {

GeneralTestEventsProcessor.java (https://bitbucket.org/nbargnesi/idea.git) Java · 79 lines

16 package com.intellij.execution.testframework.sm.runner;

17

18 import com.intellij.execution.testframework.sm.runner.events.*;

19 import com.intellij.openapi.Disposable;

20 import com.intellij.openapi.util.Key;

21 import com.intellij.testIntegration.TestLocationProvider;

22 import org.jetbrains.annotations.NotNull;

23 import org.jetbrains.annotations.Nullable;

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

This Java class, JMouseComboBox, extends JComboBox to allow listeners to be informed of mouse entered and exited events. It creates a workaround for a Swing bug by modifying mouse event IDs to prevent the popup from being hidden immediately after it’s shown. The class overrides several mouse event methods to create new events with this as the source.

24

25

26 import javax.swing.*;

27 import java.awt.*;

28 import java.awt.event.*;

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

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

This Java class defines an abstract MusicGenerator that provides basic functionality for managing music transformations. It allows adding and removing transformations from a list, and provides access to the underlying list of transformations. The class is designed to be extended by concrete implementations.

23 package com.townsfolkdesigns.jfugue.gen;

24

25 import java.util.List;

26

27 /**

typesys.c (https://swig.svn.sourceforge.net/svnroot/swig) C · 2074 lines ✨ Summary

This C code generates a set of macros and function declarations for a SWIG (Simplified Interface to C and other languages) interface. It creates tables of type information, equivalence rules, and conversion functions for a given set of C types. The output is used to define the interface between C code and a foreign language, allowing for interoperability between the two.

311 * SwigType_using_scope()

312 *

313 * Import another scope into this scope.

314 * ----------------------------------------------------------------------------- */

315

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

This Java code implements a TarBuffer class, which is a wrapper around an input/output stream. It provides methods for reading and writing archive records to the buffer, as well as flushing and closing the buffer. The class can be used to create an output buffer that writes data to a file or another output stream, or an input buffer that reads data from a file or another input stream.

16 package installer;

17

18 import java.io.*;

19

20

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

This Java code defines a class ProjectViewerEvent that extends EventObject. It represents an event fired by a project viewer, providing information about the project being viewed, such as its name and whether “All Projects” mode is active. The class has constructors to create events with different sources (project viewer or object) and fields to store the project and viewer instances.

19 package projectviewer.event;

20

21 import java.util.EventObject;

22

23 import projectviewer.ProjectViewer;

24 import projectviewer.vpt.VPTProject;

25

26 /**

79

80 /**

81 * Returns the {@link VPTProject Project}. It is important to noticed that

82 * this value can be <code>null</code>, which means that the "All Projects"

83 * mode has been activated.

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

This Java code defines a file filter for importing files into a project viewer. It checks if a file is listed in the CVS/Entries file and, if so, imports it. The filter also supports .svn/Entries files from Subversion version control systems. It caches entries to improve performance and provides options for customizing its behavior.

17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

18 */

19 package projectviewer.importer;

20

21 //{{{ Imports

22 import java.io.File;

23 import java.io.FileReader;

24 import java.io.BufferedReader;

25 import java.io.IOException;

26 import java.io.FileNotFoundException;

27

28 import java.util.HashMap;

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

This Java class, NullActor, is a placeholder for actions until they are complete. When an action event occurs, it displays an error message dialog box indicating that the operation is not yet available. It extends NodeActor and overrides the actionPerformed method to provide this functionality.

29 package ise.plugin.svn.pv;

30

31 import java.awt.event.ActionEvent;

32 import java.awt.event.ActionListener;

33 import javax.swing.JOptionPane;

34

35 /**

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

This Java code is part of a version control system, specifically a plugin for a text editor called PV. It provides functionality for composing icons based on file states and paths, allowing users to visualize changes in their files. The code includes helper classes for caching icons and retrieving file state information from various sources.

19 package projectviewer.vpt;

20

21 //{{{ Imports

22 import java.io.File;

23 import java.util.HashMap;

24

25 import java.awt.Image;

26 import java.awt.image.ColorModel;

27 import java.awt.image.MemoryImageSource;

28 import java.awt.image.PixelGrabber;

29 import java.awt.Toolkit;

30

31 import javax.swing.Icon;

32 import javax.swing.ImageIcon;

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

This Java class represents a property asset, extending the Asset class. It holds a reference to a Property object and provides getter methods for its key, short string representation, and long string representation (as a string). The icon is not implemented, returning null. This class seems to be part of a larger system for managing properties or assets, possibly in a graphical user interface context.

1 package sidekick.property;

2

3 import sidekick.Asset;

4 import javax.swing.Icon;

5 import sidekick.property.parser.property.*;

6

7 public class PropertyAsset extends Asset {

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

This Java code defines a PropertyParser class that extends SideKickParser. It parses properties from a given buffer and converts them to a tree data structure, which can be used in a text editor. The parser handles errors and sends error messages to an ErrorSource object. It uses regular expressions to extract location information from exception messages.

28 package sidekick.property;

29

30 import java.io.StringReader;

31 import java.util.*;

32 import java.util.regex.Matcher;

33 import java.util.regex.Pattern;

34

35 import javax.swing.text.Position;

36 import javax.swing.tree.DefaultMutableTreeNode;

37

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

39 import org.gjt.sp.jedit.View;

dbpedia_ontol.obo (git://github.com/cmungall/uberon.git) Unknown · 5080 lines

482 id: Wikipedia:Ampulla_of_Vater

483 name: ampulla of vater

484 def: "The ampulla of Vater, also known as the hepatopancreatic ampulla, is formed by the union of the pancreatic duct and the common bile duct. The ampulla is specifically located at the major duodenal papilla. The Ampulla of Vater is an important landmark, halfway along the second part of the duodenum, that marks the anatomical transition from foregut to midgut (and hence the point where the celiac trunk stops supplying the gut and the superior mesenteric artery takes over)." [Wikipedia:Ampulla_of_Vater]

485 synonym: "ampulla biliaropancreatica" RELATED [Wikipedia:Ampulla_of_Vater]

486 synonym: "ampulla hepatopancreatica" RELATED [Wikipedia:Ampulla_of_Vater]

574 id: Wikipedia:Angular_vein

575 name: angular vein

576 def: "The angular vein formed by the junction of the frontal vein and supraorbital vein, runs obliquely downward, on the side of the root of the nose, to the level of the lower margin of the orbit, where it becomes the anterior facial vein. It receives the external nasal veins of the ala nasi, and communicates with the superior ophthalmic vein through the nasofrontal vein, thus establishing an important anastomosis between the anterior facial vein and the cavernous sinus." [Wikipedia:Angular_vein]

577

578 [Term]

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

This Java code defines an abstract class ArchiveCommand that provides a common interface for working with different types of archives (tar and zip). It includes methods to get directories from an archive, create input streams for archive paths, and a static method to determine the type of archive based on the input stream.

21 package archive;

22

23 import com.ice.tar.TarInputStream;

24

25 import java.io.IOException;

26 import java.io.InputStream;

27

28 import java.util.Hashtable;

29

30 import java.util.zip.ZipInputStream;

31

32

users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 406 lines

83 would like to import all files from the root directory. You may choose to

84 import using three different filtering methods: import all files, import

85 using the plugin's import settings (defined in the jEdit Plugin Options) or

133

134 <para>

135 In the import dialog (available by choosing "Import files" from the right-click

136 menu), you can choose any files to be imported to the selected node (the one

140

141 <para>

142 You may choose any files and directories to import, even files and directories

143 that are not "children" of the selected node in the file system layout. This

144 allows you to organize your files in any way you want. You may even enter the

149

150 <para>

151 When importing existing directories, you'll be asked if you want to import

152 them recursively. Again, the three options for file filtering are presented,

153 so you can have more control over which files are imported. The dialog will

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

This Java code creates a custom table component, JCheckBoxList, which displays a list of items with checkboxes. Each item can be edited to toggle its checkbox state. The table model, CheckBoxListModel, manages the data and provides methods for editing cells. It uses two columns: one for the checkbox state and another for the item value.

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

24

25 //{{{ Imports

26 import java.awt.Component;

27 import java.awt.Font;

28 import java.util.Vector;

29 import javax.swing.*;

30 import javax.swing.table.*;

IconDatabase.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 2250 lines

86 class DefaultIconDatabaseClient : public IconDatabaseClient {

87 public:

88 virtual bool performImport() { return true; }

89 virtual void didImportIconURLForPageURL(const String&) { }

90 virtual void didImportIconDataForPageURL(const String&) { }

91 virtual void didChangeIconForPageURL(const String&) { }

92 virtual void didRemoveAllIcons() { }

93 virtual void didFinishURLImport() { }

94 };

95

206 {

207 MutexLocker locker(m_pendingReadingLock);

208 m_pageURLsPendingImport.clear();

209 m_pageURLsInterestedInIcons.clear();

210 m_iconsPendingReading.clear();

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

This Java code defines a custom UI for split panes in the Substance look and feel. It extends the BasicSplitPaneUI class to create a unique implementation for split panes, including a PropertyChangeListener that updates one-touch buttons based on orientation changes. The divider is also customized with a new SubstanceSplitPaneDivider class.

30 package org.pushingpixels.substance.internal.ui;

31

32 import java.beans.PropertyChangeEvent;

33 import java.beans.PropertyChangeListener;

34

35 import javax.swing.JComponent;

36 import javax.swing.JSplitPane;

37 import javax.swing.plaf.ComponentUI;

38 import javax.swing.plaf.basic.BasicSplitPaneDivider;

39 import javax.swing.plaf.basic.BasicSplitPaneUI;

40

41 import org.pushingpixels.substance.internal.utils.SubstanceCoreUtilities;

customwidgetplugin.qdoc (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 239 lines

85 \snippet examples/designer/customwidgetplugin/customwidgetplugin.pro 3

86

87 It is also important to ensure that the plugin is installed in a

88 location that is searched by \QD. We do this by specifying a

89 target path for the project and adding it to the list of items to

232 Without this macro, there is no way for \QD to use the widget.

233

234 It is important to note that you can only use the Q_EXPORT_PLUGIN2()

235 macro once in any implementation. If you have several custom widgets in

236 an implementation that you wish to make available to \QD, you will need

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

This Java code is part of a Swing application’s layout manager, responsible for positioning and sizing components within a container. It calculates and sets the dimensions of various components, such as toolbars and panes, to fit within the available space while maintaining their relative positions and sizes. The code ensures proper alignment and spacing between components, creating a visually appealing and functional user interface.

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

24

25 //{{{ Imports

26 import javax.swing.*;

27 import java.awt.event.*;

28 import java.awt.*;

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

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

IntentionUsagePanel.java (https://bitbucket.org/nbargnesi/idea.git) Java · 152 lines

20 package com.intellij.codeInsight.intention.impl.config;

21

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

23 import com.intellij.openapi.command.CommandProcessor;

24 import com.intellij.openapi.editor.*;

25 import com.intellij.openapi.editor.colors.CodeInsightColors;

26 import com.intellij.openapi.editor.colors.EditorColorsManager;

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

28 import com.intellij.openapi.editor.ex.EditorEx;

29 import com.intellij.openapi.editor.highlighter.EditorHighlighterFactory;

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

31 import com.intellij.openapi.fileTypes.FileType;

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

This Java class, DirectoryProvider, implements a dynamic menu provider for a text editor. It creates a menu with directory and file options based on the current working directory. The menu is updated dynamically when the directory changes. It filters out certain types of files and directories to improve performance.

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

24

25 //{{{ Imports

26 import javax.swing.*;

27 import java.awt.event.*;

28 import java.io.File;

29 import java.util.Arrays;

30

31 import org.gjt.sp.jedit.browser.*;

32 import org.gjt.sp.jedit.io.FileVFS;

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

using1_runme.go (https://swig.svn.sourceforge.net/svnroot/swig) Go · 10 lines

1 package main

2

3 import "./using1"

4

5 func main() {

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

This Java code is part of a file system management system, specifically handling Virtual File Systems (VFS). It manages updates to VFS paths, sends update messages to the EditBus, and handles errors. The code provides a way for different types of VFS (file and URL) to be used in conjunction with each other, and it ensures that updates are sent to the correct components of the system.

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

24

25 //{{{ Imports

26 import javax.swing.JOptionPane;

27 import javax.swing.SwingUtilities;

28 import java.awt.Component;

29 import java.awt.Frame;

30 import java.io.IOException;

31 import java.util.ArrayList;

32 import java.util.Collections;

33 import java.util.Enumeration;

34 import java.util.Hashtable;

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

AdditionalConverter.java (https://bitbucket.org/nbargnesi/idea.git) Java · 17 lines

1 package org.jetbrains.android.dom;

2

3 import com.intellij.util.xml.ResolvingConverter;

4

5 import java.lang.annotation.ElementType;

6 import java.lang.annotation.Retention;

7 import java.lang.annotation.RetentionPolicy;

8 import java.lang.annotation.Target;

9

10 /**

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

This Java code implements a custom text input field with auto-completion functionality. It creates a window that displays a list of possible completions when the user types a few characters, and allows the user to select one from the list. The input field also handles keyboard events, such as pressing Enter or Tab, to invoke completion suggestions or focus on the input field.

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

24

25 //{{{ Imports

26 import bsh.NameSpace;

27 import java.awt.event.*;

28 import java.awt.*;

29 import java.util.ArrayList;

30 import java.util.Arrays;

31 import javax.swing.event.*;

32 import javax.swing.*;

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

34 //}}}

35

SRPGRCohesionEffect.java (http://loon-simple.googlecode.com/svn/trunk/) Java · 70 lines ✨ Summary

This Java class, SRPGRCohesionEffect, extends another class SRPGEffect and is used to create a cohesion effect in a role-playing game (RPG). It draws a series of shapes on the screen at a specific location, with each shape having a different size and orientation. The effect is animated over time, fading out after 40 frames.

1 package org.loon.framework.android.game.srpg.effect;

2

3 import org.loon.framework.android.game.core.LSystem;

4 import org.loon.framework.android.game.core.graphics.opengl.GLColor;

5 import org.loon.framework.android.game.core.graphics.opengl.GLEx;

6 import org.loon.framework.android.game.srpg.SRPGDelta;

DummyFileSystem.java (https://bitbucket.org/nbargnesi/idea.git) Java · 143 lines

16 package com.intellij.openapi.vfs.ex.dummy;

17

18 import com.intellij.openapi.vfs.*;

19 import org.jetbrains.annotations.NonNls;

20 import org.jetbrains.annotations.NotNull;

21 import org.jetbrains.annotations.Nullable;

22

23 import java.io.IOException;

24

25 public class DummyFileSystem extends DeprecatedVirtualFileSystem implements NonPhysicalFileSystem {

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

This Java code is part of a text editor’s buffer class, responsible for reading and writing data to an underlying file. It handles encoding conversions, line breaks, and character encodings, providing a way to insert or write data from a buffer into the file. The code uses various techniques to handle errors and exceptions during encoding conversions.

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

24

25 //{{{ Imports

26 import java.io.BufferedOutputStream;

27 import java.io.CharConversionException;

28 import java.io.IOException;

29 import java.io.InputStream;

30 import java.io.OutputStream;

31 import java.io.Reader;

32 import java.io.Writer;

33 import java.nio.charset.CharacterCodingException;

34

35 import javax.swing.text.Segment;

BPMN20.xsd (https://bitbucket.org/nbargnesi/idea.git) XML Schema · 38 lines

6 targetNamespace="http://www.omg.org/spec/BPMN/20100524/MODEL">

7

8 <xsd:import namespace="http://www.omg.org/spec/BPMN/20100524/DI" schemaLocation="BPMNDI.xsd"/>

9 <xsd:include schemaLocation="Semantic.xsd"/>

10

12 <xsd:complexType name="tDefinitions">

13 <xsd:sequence>

14 <xsd:element ref="import" minOccurs="0" maxOccurs="unbounded"/>

15 <xsd:element ref="extension" minOccurs="0" maxOccurs="unbounded"/>

16 <xsd:element ref="rootElement" minOccurs="0" maxOccurs="unbounded"/>

28 </xsd:complexType>

29

30 <xsd:element name="import" type="tImport"/>

31 <xsd:complexType name="tImport">

32 <xsd:attribute name="namespace" type="xsd:anyURI" use="required"/>

33 <xsd:attribute name="location" type="xsd:string" use="required"/>

34 <xsd:attribute name="importType" type="xsd:anyURI" use="required"/>

35 </xsd:complexType>

36

DictionarySQLiteConnection.java (http://softkeyboard.googlecode.com/svn/) Java · 105 lines ✨ Summary

This Java code defines a SQLite database connection for storing and retrieving dictionary words with their frequencies. It provides methods to add new words, retrieve all existing words, and handle database upgrades and downgrades. The data is stored in a table with columns for word, frequency, and an auto-incrementing ID.

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

2

3 import java.util.ArrayList;

4 import java.util.List;

5

6 import android.content.ContentValues;

7 import android.content.Context;

8 import android.database.Cursor;

9 import android.database.sqlite.SQLiteDatabase;

10 import android.database.sqlite.SQLiteOpenHelper;

11 import android.util.Log;

YouTubeSampleWindowController.m (http://update-engine.googlecode.com/svn/trunk/) Objective C · 908 lines ✨ Summary

This Objective C code is a part of a YouTube API client application. It handles various tasks such as fetching categories, entries, and uploading videos to YouTube. The code uses the Google Data Services framework to interact with the YouTube API. It also manages data feeds, tickets, and errors, providing a structured way to handle the API’s responses and errors.

19

20 //

21 // IMPORTANT:

22 //

23 // The XML-based API for YouTube has been replaced with a more efficient

34

35

36 #import "YouTubeSampleWindowController.h"

37 #import "GData/GDataServiceGoogleYouTube.h"

38 #import "GData/GDataEntryPhotoAlbum.h"

39 #import "GData/GDataEntryPhoto.h"

40 #import "GData/GDataFeedPhoto.h"

41 #import "GData/GDataEntryYouTubeUpload.h"

gtest.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ Header · 2053 lines

35 // included by any test program that uses Google Test.

36 //

37 // IMPORTANT NOTE: Due to limitation of the C++ language, we have to

38 // leave some internal implementation details in this header file.

39 // They are clearly marked by comments like this:

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

This Java code defines an EditProjectAction class that handles actions related to editing projects, such as creating new projects, renaming existing ones, and importing data into a project. It interacts with other classes in the project viewer application, including VPTNode, ProjectViewer, and ProjectManager.

26 import javax.swing.JOptionPane;

27

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

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

35 import projectviewer.vpt.VPTNode;

36 import projectviewer.vpt.VPTProject;

37

38 import projectviewer.config.ProjectOptions;

39 import projectviewer.config.ProjectViewerConfig;

40 import projectviewer.importer.RootImporter;

41 //}}}

42

148 if (add) {

149 ProjectManager.getInstance().addProject(proj, parent);

150 RootImporter ipi = new RootImporter(proj, null, viewer, jEdit.getActiveView());

151 ipi.doImport();

004-test-client.py (git://pkgs.fedoraproject.org/python-restkit) Python · 258 lines

4 # See the NOTICE for more information.

5

6 from __future__ import with_statement

7

8 import cgi

9 import imghdr

10 import os

11 import socket

12 import threading

13 import Queue

14 import urlparse

15 import sys

16 import tempfile

unchconv.ads (git://github.com/tkoskine/avr-ada.git) Ada · 24 lines ✨ Summary

This Ada code defines a generic function Unchecked_Conversion that takes an object of type Source and returns an object of type Target. The function is marked as intrinsic, meaning it’s part of the language itself, and pure, indicating it doesn’t have any side effects. It provides a way to convert between two types without checking for compatibility or safety.

20

21 function Unchecked_Conversion (S : Source) return Target;

22 pragma Import (Intrinsic, Unchecked_Conversion);

23 pragma Pure (Unchecked_Conversion);

24

KickBackService.java (http://eyes-free.googlecode.com/svn/trunk/) Java · 90 lines ✨ Summary

This Java code defines an Accessibility service that provides haptic feedback to users of Android devices. It detects various accessibility events, such as notifications and view clicks, and vibrates the device accordingly. The vibration patterns are defined for different event types, providing a tactile experience for users with disabilities.

17 package com.google.android.marvin.kickback;

18

19 import android.accessibilityservice.AccessibilityService;

20 import android.accessibilityservice.AccessibilityServiceInfo;

21 import android.app.Service;

22 import android.os.Vibrator;

23 import android.util.Log;

24 import android.view.accessibility.AccessibilityEvent;

LocalFileStorage.java (https://bitbucket.org/nbargnesi/idea.git) Java · 64 lines

16 package com.intellij.openapi.vfs.impl.http;

17

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

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

20 import com.intellij.util.PathUtil;

21 import org.jetbrains.annotations.NotNull;

22

23 import java.io.File;

24 import java.io.IOException;

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.

12 ]

13

14 import base64

15

16 from quopri import encodestring as _encodestring

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

This Java code tests the ScientificDouble.valueOf() method, which converts a string representation of a scientific number to its equivalent double value. It checks various inputs, including exact matches, approximations, and invalid values, to ensure the method returns the correct result. The test verifies that the method handles different formats, such as “3.14” vs. “3.141592653589793”, and edge cases like very large numbers with varying exponents.

4 package fit;

5

6 import junit.framework.TestCase;

7

8 public class ScientificDoubleTest extends TestCase {

haskell-font-lock.el (git://github.com/kjhealy/emacs-starter-kit.git) Emacs Lisp · 634 lines ✨ Summary

This Emacs Lisp code enables font locking for Haskell scripts in a buffer. It customizes the font lock settings, defines several face variables, and sets up hooks to invoke additional functions when font locking is enabled or disabled. The code also supports Bird-style literate Haskell scripts and provides a way to turn font locking on and off in a buffer.

295 (reservedid

296 (concat "\\<"

297 ;; `as', `hiding', and `qualified' are part of the import

298 ;; spec syntax, but they are not reserved.

299 ;; `_' can go in here since it has temporary word syntax.

300 ;; (regexp-opt

301 ;; '("case" "class" "data" "default" "deriving" "do"

302 ;; "else" "if" "import" "in" "infix" "infixl"

303 ;; "infixr" "instance" "let" "module" "newtype" "of"

304 ;; "then" "type" "where" "_") t)

349 (,reservedsym 1 (symbol-value 'haskell-operator-face))

350 ;; Special case for `as', `hiding', and `qualified', which are

351 ;; keywords in import statements but are not otherwise reserved.

352 ("\\<import[ \t]+\\(?:\\(qualified\\>\\)[ \t]*\\)?[^ \t\n()]+[ \t]*\\(?:\\(\\<as\\>\\)[ \t]*[^ \t\n()]+[ \t]*\\)?\\(\\<hiding\\>\\)?"

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

This Java class, StringArrayConverter, implements a converter for converting between strings and arrays of strings. It provides two methods: toString to convert an array of strings to a string representation, and fromString to convert a string to an array of strings. The implementation uses the Arrays.asList() method to convert the array to a list, which is then converted back to a string or array as needed.

3 package fitnesse.slim.converters;

4

5 import java.util.Arrays;

6

7 import fitnesse.slim.Converter;

UDFFloor.java (https://svn.apache.org/repos/asf/incubator/hcatalog/) text · 0 lines

19 package org.apache.hadoop.hive.ql.udf;

20

21 import org.apache.hadoop.hive.ql.exec.Description;

22 import org.apache.hadoop.hive.ql.exec.UDF;

23 import org.apache.hadoop.hive.serde2.io.DoubleWritable;

24 import org.apache.hadoop.io.LongWritable;

Compass.java (http://eyes-free.googlecode.com/svn/trunk/) Java · 102 lines ✨ Summary

This Java class, Compass, simulates a compass using the device’s orientation sensor. It tracks the current heading and provides methods to retrieve the direction as a string or its numerical value. The class also handles calibration by checking the sensor accuracy and provides a shutdown method to unregister the listener when no longer needed.

16 package com.google.android.marvin.commands.impls;

17

18 import android.content.Context;

19 import android.hardware.Sensor;

20 import android.hardware.SensorEvent;

21 import android.hardware.SensorEventListener;

22 import android.hardware.SensorManager;

23

24 /**

posixemulation.py (git://github.com/mitsuhiko/werkzeug.git) Python · 107 lines ✨ Summary

This Python code provides a POSIX emulation for renaming files on Windows systems, allowing for atomic and pseudo-atomic renames. It uses ctypes to interact with Windows API functions and handles cases where the target file already exists. The rename function falls back to traditional OS.rename if atomic rename fails.

18 :license: BSD, see LICENSE for more details.

19 """

20 import sys

21 import os

22 import errno

23 import time

24 import random

25

26 from ._compat import to_unicode

27 from .filesystem import get_filesystem_encoding

28

29