100+ results for 'import UniqFM repo:ghc/ghc'

Not the results you expected?

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

This Java code loads a native library called “director_ignore” and attempts to instantiate two classes, DIgnoresDerived and DAbstractIgnoresDerived, which extend the DIgnores class. It then calls methods on these instances to verify their functionality. If any of the method calls fail, it prints an error message and exits with a non-zero status code.

1 import director_ignore.*;

2

3 public class director_ignore_runme {

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

This Java code attempts to load a native library called “memberin_extend” and create two instances of a class named “ExtendMe”. It then sets properties on these instances, checks their values, and throws an exception if they don’t match expected values. If the library fails to load, it prints an error message and exits with a non-zero status code.

1

2 import memberin_extend.*;

3

4 public class memberin_extend_runme {

Stats.hs (https://bitbucket.org/carter/ghc.git) Haskell · 297 lines

18 #include "nativeGen/NCG.h"

19

20 import qualified GraphColor as Color

21 import RegAlloc.Liveness

23 import RegAlloc.Graph.SpillCost

24 import RegAlloc.Graph.TrivColorable

25 import Instruction

32 import Outputable

33 import UniqFM

34 import UniqSet

195 $$ text "\n")

196

197 binLifetimeCount :: UniqFM (VirtualReg, Int) -> UniqFM (Int, Int)

198 binLifetimeCount fm

199 = let lifes = map (\l -> (l, (l, 1)))

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

This Java code is part of a text editor’s configuration settings for Java compilation and packaging options. It allows users to customize various settings, such as autosave, output directory, classpath, and deprecated warnings. The code updates these settings when the user makes changes and saves them to the text editor’s configuration.

19 package jcompiler;

20

21 import javax.swing.*;

22 import javax.swing.event.*;

23 import java.awt.*;

24 import java.awt.event.*;

25 import java.io.*;

26 import java.util.*;

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

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

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

This Java class, select_all, extends another class called InfoViewerAction. It creates an action that can be triggered by a user to select all text in an InfoViewer application. When this action is performed, it calls the selectAll method on the viewer’s text component, effectively selecting all text.

20 package infoviewer.actions;

21

22 import java.awt.event.ActionEvent;

23

24

Pretty.hs (https://github.com/mchakravarty/packages-dph.git) Haskell · 259 lines

5 , pprTopBinds)

6 where

7 import DPH.Base.Pretty

8 import HscTypes

9 import Avail

10 import CoreSyn

11 import Type

12 import Coercion

13 import Var

14 import Name

19 import Unique

20 import qualified UniqFM as UFM

21

22 -- Guts -----------------------------------------------------------------------

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

This Java class, Result, represents a Lucene document and provides methods to access its fields. It has a single field, _path, which is retrieved using the getFieldable method and returned as a string value. The class also includes getter and setter methods for the underlying Document object.

21 package gatchan.jedit.lucene;

22

23 import org.apache.lucene.document.Document;

24

25 /**

TableCellTest.java (http://fest.googlecode.com/svn/) Java · 69 lines ✨ Summary

This Java code defines a test class for the TableCell class, which is used to create and validate table cells in a Swing application. The tests verify that the cell can be created with specific row and column indices, and that it throws an exception when these indices are out of bounds or negative.

16 package org.fest.swing.fixture;

17

18 import javax.swing.JTable;

19

20 import org.testng.annotations.Test;

21

22 import static org.fest.assertions.Assertions.assertThat;

23

24 /**

userclass2.php (https://github.com/e107/e107.git) PHP · 82 lines

42 break;

43 case 'membs' :

44 $text = 'Ici vous pouvez effectuer des modifications importantes sur les appartenance de groupes.<br />

45 Les modifications sur les appartenance de groupes au niveau membre sont à effectuer dans la page “Membres”.<br /><br />

46 Si vous utilisez des groupes hiérarchiques un membre est automatiquement membre des groupes “pères” de celui sélectionné dans l’arbre.

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

This Java code is part of a text editor’s painting mechanism, responsible for rendering various visual elements such as lines of text, caret positions, and other UI components. It uses graphics APIs to draw these elements on the screen, taking into account factors like font styles, colors, and layout. The code appears to be part of a larger class hierarchy, with multiple subclasses handling specific painting tasks.

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

24

25 //{{{ Imports

26 import javax.swing.text.*;

27 import javax.swing.JComponent;

28 import java.awt.event.MouseEvent;

29 import java.awt.font.*;

30 import java.awt.geom.AffineTransform;

31 import java.awt.*;

32 import java.lang.reflect.Constructor;

33 import java.lang.reflect.Field;

34 import java.util.*;

Base.hs (https://github.com/mzero/ghc.git) Haskell · 212 lines

25 #include "HsVersions.h"

26

27 import Llvm

28 import LlvmCodeGen.Regs

29

30 import CLabel

31 import CgUtils ( activeStgRegs )

32 import Config

33 import Constants

34 import FastString

35 import OldCmm

37 import Platform

38 import UniqFM

39 import Unique

PreAnalyzedUpdateProcessorTest.java (https://github.com/apache/solr.git) Java · 122 lines

17 package org.apache.solr.update.processor;

18

19 import org.apache.lucene.document.Field;

20 import org.apache.solr.common.SolrInputDocument;

21 import org.junit.BeforeClass;

22 import org.junit.Test;

SimpleShapeMonteCarloAbsorptionTest.py (https://github.com/wdzhou/mantid.git) Python · 206 lines

1 from __future__ import (absolute_import, division, print_function)

2

3 from mantid.simpleapi import (SimpleShapeMonteCarloAbsorption, Load, ConvertUnits,

4 CompareWorkspaces, SetSampleMaterial, CreateSampleWorkspace,

5 DeleteWorkspace)

6 from mantid.kernel import *

7 from mantid.api import *

8

9 import unittest

10

11

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

This Java code implements a plugin for the JEdit text editor, specifically an InfoViewer plugin that provides features such as bookmarking, history management, and URL editing. It creates a dockable window with various actions and menus, allowing users to navigate and interact with web pages within the editor. The plugin also handles keyboard shortcuts and mouse events to provide a seamless user experience.

23 package infoviewer;

24

25 import infoviewer.actions.InfoViewerAction;

26 import infoviewer.actions.ToggleSidebar;

27 import infoviewer.workaround.EnhancedJEditorPane;

28 import infoviewer.workaround.EnhancedJToolBar;

29

30 import java.awt.BorderLayout;

31 import java.awt.Cursor;

32 import java.awt.Dimension;

33 import java.awt.Font;

34 import java.awt.GridLayout;

35 import java.awt.Image;

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

This Java code implements a dynamic array of positions, used to track changes in a text document. It manages a list of PosBottomHalf objects, which represent individual positions with an offset value. The class provides methods for inserting and removing positions, updating position offsets, and handling garbage collection. It also includes inner classes for PosTopHalf and PosBottomHalf.

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

24

25 //{{{ Imports

26 import javax.swing.text.*;

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

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

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

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

SecondarySchemaCreatorTest.java (https://bitbucket.org/ldassonville/openesb-components.git) Java · 176 lines

15 package org.openesb.components.rules4jbi.netbeans.wsdl.schema;

16

17 import org.openesb.components.rules4jbi.shared.util.XOMUtils;

18 import nu.xom.Element;

19 import org.junit.Test;

20 //import static org.junit.Assert.*;

21 import static nu.xom.tests.XOMTestCase.*;

22

23 /**

31

32 @Test

33 public void removeSchemaLocationFromImports() {

34 String input = "<xs:schema xmlns:tns='http://www.example.org/xml/ns/test' "

35 + "xmlns:xs='http://www.w3.org/2001/XMLSchema' elementFormDefault='qualified' "

fix_next.py (https://gitlab.com/Kissaki/Omni-Bot-0.8) Python · 103 lines

6 # - "with" statement targets aren't checked

7

8 # Local imports

9 from ..pgen2 import token

10 from ..pygram import python_symbols as syms

11 from .. import fixer_base

12 from ..fixer_util import Name, Call, find_binding

13

14 bind_warning = "Calls to builtin next() possibly shadowed by global binding"

README.rst (https://gitlab.com/pobk/django-urlcrypt) ReStructuredText · 100 lines

36 In a view::

37

38 from django.core.urlresolvers import reverse

39 from urlcrypt import lib as urlcrypt

51 Advanced lib usage::

52

53 from urlcrypt import lib as urlcrypt

54

55 message = {

setenv.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 10 lines

2 setenv(String env, String value)

3 {

4 import console.ConsolePlugin;

5

6 return ConsolePlugin.setSystemShellVariableValue(env,value);

petitions_fr.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 110 lines

33 @message@

34

35 IMPORTANT...

36 Pour valider votre signature, il suffit de vous connecter à

37 l\'adresse ci-dessous (dans le cas contraire, votre demande

ListEntityDTO.java (https://github.com/othmanelmoulat/jbilling-2.2-Extentions.git) Java · 154 lines

20 package com.sapienter.jbilling.server.list.db;

21

22 import java.io.Serializable;

23 import java.util.Date;

24 import java.util.HashSet;

25 import java.util.Set;

26

27 import javax.persistence.CascadeType;

28 import javax.persistence.Column;

29 import javax.persistence.Entity;

30 import javax.persistence.FetchType;

31 import javax.persistence.GeneratedValue;

32 import javax.persistence.GenerationType;

metrics_image_spec.js (https://gitlab.com/yuexi2009-hotmail/gitlab) JavaScript · 230 lines

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

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

3 import Vue from 'vue';

4 import merge from 'lodash/merge';

5 import Vuex from 'vuex';

6 import MetricsImage from 'ee/issues/show/components/incidents/metrics_image.vue';

7 import createStore from 'ee/issues/show/components/incidents/store';

8 import waitForPromises from 'helpers/wait_for_promises';

host-design.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 474 lines

15 the host application does with one. We start our discussion of

16 plugins by outlining how jEdit loads and displays them. This section

17 only provides a broad overview of the more important components that

18 make up jEdit; specifics of the API will be documented in

19 subsequent chapters.

277 decorations, as well as docked plugin components. The

278 <classname>View</classname> class

279 performs two important operations that deal

280 with plugins: creating plugin menu items, and managing dockable

281 windows.

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

This Java code provides a collection of methods for copying arrays of various data types, including primitive types (int, double, float, byte, char) and reference types (String). The methods take an array as input and return a new array with the same elements, allowing for efficient duplication of arrays.

1 package org.loon.framework.android.game.utils;

2

3 import java.lang.reflect.Array;

4 import java.util.NoSuchElementException;

Set.hs (https://github.com/bgamari/ghc.git) Haskell · 198 lines

5 \section[UniqSet]{Specialised sets, for things with @Uniques@}

6

7 Based on @UniqFMs@ (as you would expect).

8

9 Basically, the things need to be in class @Uniquable@.

14 module GHC.Types.Unique.Set (

15 -- * Unique set type

16 UniqSet, -- type synonym for UniqFM a

17 getUniqSet,

18 pprUniqSet,

47 ) where

48

49 import GHC.Prelude

50

51 import GHC.Types.Unique.DFM

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

This Java code is a text processing utility that provides various string manipulation functions, including formatting, case conversion, and whitespace detection. It can be used to process and transform strings in different ways, such as converting them to title case, detecting mixed case, or formatting lines of text for display. The code appears to be part of a larger text editor or word processing application.

22 package org.gjt.sp.jedit;

23

24 //{{{ Imports

25 import java.awt.*;

26 import java.util.*;

27 import javax.swing.text.Segment;

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

29 //}}}

30

CgExtCode.hs (https://github.com/mzero/ghc.git) Haskell · 229 lines

21 newLabel,

22 newFunctionName,

23 newImport,

24 lookupLabel,

25 lookupName,

42 import OldCmm hiding( ClosureTypeInfo(..) )

43

44 -- import BasicTypes

45 import BlockId

47 import Module

48 import UniqFM

49 import Unique

59

60 -- | An environment of named things.

61 type Env = UniqFM Named

62

63 -- | Local declarations that are in scope during code generation.

Spill.hs (https://github.com/mzero/ghc.git) Haskell · 338 lines

13 import Reg

14 import OldCmm hiding (RegSet)

15 import BlockId

16

17 import State

18 import Unique

19 import UniqFM

20 import UniqSet

21 import UniqSupply

22 import Outputable

24 import Data.List

25 import Data.Maybe

26 import Data.Map (Map)

urlize.py (https://gitlab.com/rshipp/django-wiki) Python · 104 lines

10 Positive examples:

11

12 >>> import markdown

13 >>> md = markdown.Markdown(extensions=['urlize'])

14

41 """

42

43 import markdown

44 import re

101

102 if __name__ == "__main__":

103 import doctest

104 doctest.testmod()

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

1 #!/usr/bin/python

2

3 from xml.dom.minidom import parseString

4 from httplib import HTTPSConnection

5 from urllib import urlencode

6

7 __version__ = "0.1"

test_views.py (https://gitlab.com/doublebits/osf.io) Python · 335 lines

1 import mock

2 import random

3 import string

4 from nose.tools import *

5 import website.app

6 from webtest_plus import TestApp

7

8 from website.util import api_url_for, web_url_for

9 from website.addons.base.testing import AddonTestCase

10

11 from tests.factories import AuthUserFactory

12 from utils import create_mock_badger, create_badge_dict, get_garbage

html.py (https://code.google.com/p/pyfpdf/) Python · 99 lines

9 # Inspired by tuto5.py and several examples from fpdf.org, html2fpdf, etc.

10

11 from fpdf import FPDF, HTMLMixin

12

13

92 pdf.output('html.pdf','F')

93

94 import os

95 try:

96 os.startfile("html.pdf")

Env.hs (https://github.com/albertz/ghc.git) Haskell · 191 lines

9 import Vectorise.Monad

10 import Vectorise.Builtins

11 import Vectorise.Type.TyConDecl

12 import Vectorise.Type.Classify

13 import Vectorise.Type.PADict

14 import Vectorise.Type.PData

15 import Vectorise.Type.PRepr

23 import DataCon

24 import TyCon

25 import Type

33 import Unique

34 import UniqFM

35 import Util

SearchEngine.py (https://gitlab.com/pmuontains/Odoo) Python · 233 lines

1 '''Define SearchEngine for search dialogs.'''

2 import re

3 from Tkinter import StringVar, BooleanVar, TclError

4 import tkMessageBox

5

6 def get(root):

230

231 if __name__ == "__main__":

232 import unittest

233 unittest.main('idlelib.idle_test.test_searchengine', verbosity=2, exit=False)

234

imdb.py (https://gitlab.com/shinvdu/youtube-dl) Python · 84 lines

1 from __future__ import unicode_literals

2

3 import re

4 import json

5

6 from .common import InfoExtractor

7 from ..compat import (

8 compat_urlparse,

9 )

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

This Java code defines a protocol handler for jEdit plugins, specifically the “list” URL protocol. It opens a connection to a plugin resource and returns an URLConnection object that can be used to interact with the plugin. The handler is part of a larger system for managing and interacting with jEdit plugins.

20 package org.gjt.sp.jedit.proto.jeditresource;

21

22 import java.io.IOException;

23 import java.net.*;

Base.hs (https://bitbucket.org/carter/ghc.git) Haskell · 132 lines

18 where

19

20 import RegAlloc.Linear.StackMap

21 import RegAlloc.Liveness

22 import Reg

23

24 import DynFlags

25 import Outputable

26 import Unique

27 import UniqFM

28 import UniqSupply

97 data RegAllocStats

98 = RegAllocStats

99 { ra_spillInstrs :: UniqFM [Int] }

100

101

Coalesce.hs (https://github.com/mzero/ghc.git) Haskell · 88 lines

9 where

10

11 import RegAlloc.Liveness

12 import Instruction

13 import Reg

14

15 import OldCmm

17 import Digraph

18 import UniqFM

19 import UniqSet

44

45

46 buildAlloc :: UniqFM Reg -> (Reg, Reg) -> UniqFM Reg

47 buildAlloc fm (r1, r2)

48 = let rmin = min r1 r2

Classify.hs (https://github.com/pepeiborra/ghc.git) Haskell · 103 lines

20 import UniqSet

21 import UniqFM

22 import DataCon

23 import TyCon

24 import TypeRep

25 import Type

26 import Digraph

37 -- * tycons which can't be converted are not elements of the map

38 --

39 classifyTyCons :: UniqFM Bool -- ^type constructor conversion status

40 -> [TyCon] -- ^type constructors that need to be classified

41 -> ([TyCon], [TyCon]) -- ^tycons to be converted & not to be converted

style.css (https://gitlab.com/ppapadatis/Videolearn) CSS · 134 lines

16 .nspTopInterface div { float:right; }

17 /* Interface - for different looking Top and Bottom interface use the following classes: .nspTopInterface and .nspBotInterface (e.g.: .nspTopInterface .nspPagination li ...) */

18 .nspPagination { list-style-type:none !important; margin:3px 0 0 !important; padding:0 !important; float:left; }

19 .nspPagination li { float:left; width: 8px; height: 8px; margin: 0 4px 0 0 !important; background: url('../images/interface.png') no-repeat 50% 0; text-indent:-999em; cursor:pointer; }

60 .nspLinks { }

61 .nspList { float: left; }

62 .nspLinks ul { padding:0 !important; list-style-type:none !important; }

63 .nspLinks ul li { margin: 0 30px 0 0 !important }

90 /* New responsive layout */

91 .gkResponsive img.nspImage,

92 img.nspImage.gkResponsive { width: 100%!important; height: auto; }

93 .nspArt img.nspImage { max-width: 100%; }

94 .nspArtScroll1,

129 .nspVmStore .PricetaxAmount { font-size: 11px; line-height: 12px; color: #b6b6b6; float: left; clear: left; }

130 .nspVmStore input.addtocart-button { width: 30px; height: 30px; background: transparent url('../images/nsp_add_to_cart.png') no-repeat 0 0; margin: 0; float: right; text-indent: -999em; }

131 .nspVmStore input.addtocart-button:hover { background-position: 0 bottom!important; }

132 .nspVmStore div.PricesalesPrice { font-size: 18px; line-height: 22px; }

133 .nspVmStore { height: 40px; padding: 12px 0 0;border-top: 1px solid #eee; }

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

This Java class, SimpleIndexManager, extends an AbstractIndexManager and provides a default implementation for managing files. It collects files from sources on each call to getCollectedFiles() method, preventing frequent object creation if files already exist. The class also has methods to stop and suggest reindexing, but these are currently ignored or not implemented.

2

3

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

5 import java.util.*;

sort_sources.py (https://github.com/chromium/chromium.git) Python · 189 lines

87 """

88

89 from __future__ import print_function

90

91 import difflib

92 import optparse

93 import re

94 import sys

95

96 from yes_no import YesNo

DREA_HSRnoise.py (https://github.com/thearn/OpenMDAO-Framework.git) Python · 131 lines

3 """

4

5 from openmdao.main.api import Assembly, Slot, Case, Instance

6 from openmdao.main.datatypes.api import Float, Enum

7 from openmdao.lib.casehandlers.api import ListCaseIterator, DBCaseRecorder

8 from openmdao.lib.drivers.api import CaseIteratorDriver

9 #from openmdao.lib.drivers.api import DOEdriver

10 #from openmdao.lib.doegenerators.api import FullFactorial

11 from DREA import DREA

12 from hsrnoise import HSRNOISE

13 from DREAprep import DREAprep

14 from geometry import Geometry

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

This Java code defines an ErrorsOptionPane class that displays a list of error matchers and allows editing them. It includes buttons to add, remove, and update error matchers. The list is updated dynamically when buttons are clicked or the list selection changes. The code uses a custom panel stack to manage the error matcher panels.

23 package console.options;

24

25 //{{{ Imports

26 import java.awt.BorderLayout;

27 import java.awt.CardLayout;

28 import java.awt.Dimension;

29 import java.awt.GridBagConstraints;

30 import java.awt.event.ActionEvent;

31 import java.awt.event.ActionListener;

32 import java.awt.event.MouseAdapter;

33 import java.awt.event.MouseEvent;

34 import java.util.HashMap;

petitions_no.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 109 lines

35

36

37 IMPORTANT...

38 Pour valider votre signature, il suffit de vous connecter à

39 l\'adresse ci-dessous (dans le cas contraire, votre demande

getSourceFileInfo.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 28 lines

2 bsh.help.getSourceFileInfo = "usage: getSourceFileInfo()";

3

4 import bsh.Interpreter;

5

6 /**

ring.py (https://github.com/mdegerne/swift-2.git) Python · 160 lines

14 # limitations under the License.

15

16 import cPickle as pickle

17 from gzip import GzipFile

18 from os.path import getmtime

19 from struct import unpack_from

20 from time import time

21 from swift.common.utils import hash_path, validate_configuration

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

This is a Java class that implements an interpreter for the BeanShell scripting language. It provides methods for loading and executing scripts, interacting with a parser, and customizing its behavior through configuration options such as debugging and output redirection. The class also manages a global namespace and provides access to external classes and resources.

34 package bsh;

35

36 import java.util.Vector;

37 import java.io.*;

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

This Java code defines a custom KeyEvent class called TranslatedKeyEvent, which extends the original KeyEvent class. It adds additional functionality to provide more information about key events, such as Unicode character codes and display labels, while also logging debug messages for debugging purposes. The class overrides various methods from the original KeyEvent class to achieve this.

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

2 //

3 //import android.util.Log;

4 //import android.view.KeyEvent;

5 //import android.view.KeyCharacterMap.KeyData;

6 //

7 //public class TranslatedKeyEvent extends KeyEvent {

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

This Java code defines an abstract class JImporterOption that serves as a base for options used by a JImporters application. It has a constructor that takes a label property and an abstract method createVisualPresentation to create a visual presentation of the option, which is implemented by subclasses.

1 /*

2 * JimporterOption.java -

3 * Copyright (C) 2002 Matthew Flower (MattFlower@yahoo.com)

4 *

18 */

19

20 package jimporter.options;

21

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

23 import jimporter.JImporterOptionPane;

24

25 public abstract class JImporterOption {

26 protected String labelProperty;

27

28 public JImporterOption(String labelProperty) {

29 this.labelProperty = labelProperty;

30 }

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

This Java code defines a set of constants and names for a parser tree used to analyze and generate code for a scripting language, specifically the Bash shell (bsh). The constants represent different types of nodes in the parser tree, while the corresponding string values provide human-readable names for each node type.

7 public int JJTVOID = 0;

8 public int JJTMETHODDECLARATION = 1;

9 public int JJTIMPORTDECLARATION = 2;

10 public int JJTVARIABLEDECLARATOR = 3;

11 public int JJTARRAYINITIALIZER = 4;

47 "void",

48 "MethodDeclaration",

49 "ImportDeclaration",

50 "VariableDeclarator",

51 "ArrayInitializer",

softlayer_test.go (https://github.com/docker/infrakit.git) Go · 235 lines

1 package instance // import "github.com/docker/infrakit/pkg/provider/terraform/instance"

2

3 import (

searchengine.py (https://gitlab.com/abhi1tb/build) Python · 237 lines

1 '''Define SearchEngine for search dialogs.'''

2 import re

3

4 from tkinter import StringVar, BooleanVar, TclError

5 import tkinter.messagebox as tkMessageBox

6

7 def get(root):

234

235 if __name__ == "__main__":

236 from unittest import main

237 main('idlelib.idle_test.test_searchengine', verbosity=2)

238

OrderPeriodDTO.java (https://github.com/bibulous/SkyrackJbill2.2.git) Java · 167 lines

21

22

23 import java.util.HashSet;

24 import java.util.Set;

25

26 import javax.persistence.CascadeType;

27 import javax.persistence.Column;

28 import javax.persistence.Entity;

29 import javax.persistence.FetchType;

30 import javax.persistence.GeneratedValue;

31 import javax.persistence.GenerationType;

32 import javax.persistence.Id;

33 import javax.persistence.JoinColumn;

0018_site_permissions.py (https://github.com/Doap/django-cms.git) Python · 234 lines

1 # -*- coding: utf-8 -*-

2 from south.db import db

3 from django.db import models

4 from cms.models import *

5

6 class Migration:

Regs.hs (https://github.com/altaic/ghc.git) Haskell · 323 lines

24 #include "../includes/stg/MachRegs.h"

25

26 import RegsBase

27

28 import BlockId

29 import Cmm

30 import CLabel ( CLabel, mkMainCapabilityLabel )

31 import Pretty

32 import Outputable ( Outputable(..), pprPanic, panic )

33 import qualified Outputable

34 import Unique

38 import FastBool

39 import UniqFM

40

41

StgAst.hs (https://bitbucket.org/bathtub/ghcjs.git) Haskell · 103 lines

13 import CoreSyn

14 import CostCentre

15 import DataCon

16 import DynFlags

17 import ForeignCall

18 import Id

19 import Literal

21 import Outputable hiding ((<>))

22 import PrimOp

23 import StgSyn

24 import Type

25 import UniqFM

26 import UniqSet

phocagalleryco.php (https://github.com/wiktorm/projekt-awr.git) PHP · 247 lines

10 */

11 defined('_JEXEC') or die();

12 jimport('joomla.application.component.model');

13

14 class PhocaGalleryCpModelPhocaGalleryCo extends JModel

metric_images_table_spec.js (https://gitlab.com/523/gitlab-ce) JavaScript · 230 lines

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

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

3 import Vue from 'vue';

4 import merge from 'lodash/merge';

5 import Vuex from 'vuex';

6 import createStore from '~/vue_shared/components/metric_images/store';

7 import MetricsImageTable from '~/vue_shared/components/metric_images/metric_images_table.vue';

8 import waitForPromises from 'helpers/wait_for_promises';

python_test.soy (https://gitlab.com/smartether/buck) Closure Template · 176 lines

47 module that runs all tests. However, you can override this with your own

48 module to perform custom initialization or command line processing. Your

49 custom module can import the standard Buck test main

50 as <code>__test_main__</code>, and can invoke it's normal main function

51 as <code>__test_main__.main(sys.argv)</code>.

Env.hs (https://github.com/ghc/ghc.git) Haskell · 276 lines

36 where

37

38 import GHC.Prelude

39

40 import GHC.Unit.Module.Name (ModuleName)

41 import GHC.Types.Unique

42 import GHC.Types.Unique.FM

43 import GHC.Types.Unique.DFM

44 import GHC.Unit.Types

45 import GHC.Utils.Misc

46 import Data.List (sortBy, sort)

47 import Data.Ord

48

49 import Data.Coerce

RegInfo.hs (https://github.com/tibbe/ghc.git) Haskell · 75 lines

17 #include "HsVersions.h"

18

19 import Size

20 import Reg

21

22 import Outputable

23 import Platform

24 import Unique

25

26 import UniqFM

27 import X86.Regs

41 in text str

42

43 regColors :: Platform -> UniqFM [Char]

44 regColors platform = listToUFM (normalRegColors platform ++ fpRegColors)

45

ReportDTO.java (https://github.com/othmanelmoulat/jbilling-2.2-Extentions.git) Java · 211 lines

20 package com.sapienter.jbilling.server.report.db;

21

22 import java.io.Serializable;

23 import java.util.HashSet;

24 import java.util.Set;

25

26 import javax.persistence.CascadeType;

27 import javax.persistence.Column;

28 import javax.persistence.Entity;

29 import javax.persistence.FetchType;

30 import javax.persistence.GeneratedValue;

31 import javax.persistence.GenerationType;

32 import javax.persistence.Id;

Glyphicons.jsx (https://gitlab.com/blockbuster/react-router-2-with-hash-working-public) JSX · 671 lines

1 import React from 'react'

2

3 import LinkedStateMixin from 'react-addons-linked-state-mixin'

4

5 import SubHeader from '../../layout/SubHeader.jsx'

6 import BigBreadcrumbs from '../../../../components/layout/navigation/components/BigBreadcrumbs.jsx'

7 import WidgetGrid from '../../../../components/layout/widgets/WidgetGrid.jsx'

8 import JarvisWidget from '../../../../components/layout/widgets/JarvisWidget.jsx'

433 </li>

434 <li>

435 <span className="glyphicon glyphicon-import"/>

436 <span className="glyphicon-class">.glyphicon .glyphicon-import</span>

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

This Java code is part of a text editor’s GUI, specifically handling mouse events for the gutter (a vertical panel on the left side of the editor). It determines actions based on mouse clicks and drags, such as toggling folds, matching structures, and selecting text. The code updates the editor’s display accordingly, including collapsing or expanding folds, highlighting matches, and selecting text within a structure scope.

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

25

26 //{{{ Imports

27 import java.awt.*;

28 import java.awt.event.*;

29 import javax.swing.*;

30 import javax.swing.border.*;

31 import javax.swing.event.*;

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

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

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

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

phocaguestbookb.php (https://github.com/navinpai/GEC-Tandav.git) PHP · 284 lines

12 // Check to ensure this file is included in Joomla!

13 defined('_JEXEC') or die();

14 jimport('joomla.application.component.model');

15

16 class PhocaGuestbookCpModelPhocaGuestbookb extends JModel

Set.hs (https://github.com/ghc/ghc.git) Haskell · 360 lines

47 ) where

48

49 import GHC.Prelude

50

51 import GHC.Types.Var ( Var, TyVar, CoVar, TyCoVar, Id )

52 import GHC.Types.Unique

53 import GHC.Types.Name ( Name )

54 import GHC.Types.Unique.Set

55 import GHC.Types.Unique.DSet

56 import GHC.Types.Unique.FM( disjointUFM, pluralUFM, pprUFM )

57 import GHC.Types.Unique.DFM( disjointUDFM, udfmToUfm, anyUDFM, allUDFM )

58 import GHC.Utils.Outputable (SDoc)

59

60 -- | A non-deterministic Variable Set

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

This Java code defines a class NSMenu that extends NSObject and implements NSCoding. It provides a basic structure for an NSMenu, allowing you to add items with addItem, remove items at a specific index with removeItemAtIndex, and retrieve the number of items in the menu with numberOfItems. The implementation is native, suggesting it’s intended for use with Apple’s Cocoa framework.

1 package com.apple.cocoa.application;

2

3 import com.apple.cocoa.foundation.NSCoding;

4 import com.apple.cocoa.foundation.NSObject;

coredump.hs (https://github.com/khskrede/mehh.git) Haskell · 99 lines

1

2

3 import GHC

4 --GHC.Paths is available via cabal install ghc-paths

5 import GHC.Paths ( libdir )

7 import DynFlags ( defaultDynFlags )

8 import System.Environment ( getArgs )

9 import Outputable

10

11 import Text.JSON

12 import Text.JSON.Pretty

14 import Text.PrettyPrint.HughesPJ

15

16 import UniqFM

17 import Unique

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

This Java code is a graphical user interface (GUI) for editing syntax highlighting settings. It allows users to select font styles, colors, and sizes for text editors. The GUI consists of checkboxes and buttons that enable users to customize their text editor’s appearance. When the “OK” button is clicked, the selected settings are applied to the text editor.

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

25

26 //{{{ Imports

27 import javax.swing.border.EmptyBorder;

28 import javax.swing.event.*;

29 import javax.swing.table.*;

30 import javax.swing.*;

31 import java.awt.event.*;

32 import java.awt.*;

33 import java.util.Vector;

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

35 import org.gjt.sp.jedit.gui.EnhancedDialog;

index_tests.py (https://gitlab.com/tlevine/bulbs) Python · 78 lines

4 # BSD License (see LICENSE for details)

5 #

6 import unittest

7 import random

8

9 import bulbs.utils

10 from bulbs.config import Config, DEBUG, ERROR

11 from bulbs.element import Vertex, VertexProxy, Edge, EdgeProxy

12 from .testcase import BulbsTestCase

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

This Java class defines an action called “back” for the InfoViewer application. When this action is triggered, it calls the back method on the current viewer object, which presumably navigates back in the viewer’s history. The class uses the AWT event handling mechanism to respond to mouse clicks or other user interactions.

20 package infoviewer.actions;

21

22 import java.awt.*;

23 import java.awt.event.*;

24 import infoviewer.*;

25

26

Reg.hs (https://github.com/mzero/ghc.git) Haskell · 220 lines

28 where

29

30 import Outputable

31 import Unique

32 import RegClass

33 import Data.List

165

166

167 -- We like to have Uniques for Reg so that we can make UniqFM and UniqSets

168 -- in the register allocator.

169 instance Uniquable Reg where

0002_auto__del_field_maplandmark_url_2d.py (https://github.com/GunioRobot/django-eve-db.git) Python · 536 lines

1 # encoding: utf-8

2 import datetime

3 from south.db import db

4 from south.v2 import SchemaMigration

5 from django.db import models

515 'icon': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['eve_db.EveIcon']", 'null': 'True', 'blank': 'True'}),

516 'id': ('django.db.models.fields.IntegerField', [], {'unique': 'True', 'primary_key': 'True'}),

517 'importance': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),

518 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),

519 'radius': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),

Plugins.hs (https://github.com/bgamari/ghc.git) Haskell · 187 lines

4 -- the functions and types you are likely to need when writing a

5 -- plugin for GHC. So authors of plugins can probably get away simply

6 -- with saying "import GHC.Plugins".

7 --

8 -- Particularly interesting modules for plugin writers include

68

69 -- Plugin stuff itself

70 import GHC.Driver.Plugins

71

72 -- Variable naming

73 import GHC.Types.TyThing

74 import GHC.Types.PkgQual

122 -- Conflicts with UniqFM:

123 --import LazyUniqFM

124 import GHC.Data.FiniteMap

GhcPlugins.hs (https://github.com/pepeiborra/ghc.git) Haskell · 83 lines

29 import RdrName

30 import OccName hiding ( varName {- conflicts with Var.varName -} )

31 import Name hiding ( varName {- reexport from OccName, conflicts with Var.varName -} )

38 import Literal

39 import DataCon

40 import CoreUtils

57 import Coercion hiding {- conflict with CoreSubst -}

58 ( substTy, extendTvSubst, substCo, substTyVarBndr, lookupTyVar )

59 import TyCon

60 import TysWiredIn

69 import UniqSet

70 import UniqFM

71 -- Conflicts with UniqFM:

72 --import LazyUniqFM

73 import FiniteMap

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

This Java code is part of a plugin for the JEdit text editor, specifically designed for SQL editing and management. It handles various tasks such as loading JDBC classpaths, registering/unregistering plugins, handling session changes, and providing an object chooser dialog for selecting database objects. The code also includes utility methods for running tasks in AWT threads and updating VFS (Virtual File System) settings.

21 package sql;

22

23 import java.awt.*;

24 import java.io.*;

25 import java.sql.*;

26 import java.text.*;

27 import java.util.*;

28 import javax.swing.*;

29

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

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

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

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

0003_attributionexclude.py (https://gitlab.com/wilane/Booktype) Python · 210 lines

1 # encoding: utf-8

2 import datetime

3 from south.db import db

4 from south.v2 import SchemaMigration

5 from django.db import models

ProcessRunTotalDTO.java (https://github.com/bibulous/SkyrackJbill2.2.git) Java · 182 lines

20 package com.sapienter.jbilling.server.process.db;

21

22 import java.math.BigDecimal;

23 import java.util.Set;

24

25 import javax.persistence.CascadeType;

26 import javax.persistence.Column;

27 import javax.persistence.Entity;

28 import javax.persistence.FetchType;

29 import javax.persistence.GeneratedValue;

30 import javax.persistence.GenerationType;

31 import javax.persistence.Id;

32 import javax.persistence.JoinColumn;

idl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 159 lines

18 AT_WHITESPACE_END="TRUE"

19 DELEGATE="PREPROCESSOR">#</EOL_SPAN>

20 <IMPORT DELEGATE="LEX" />

21 </RULES>

22

23 <RULES SET="LEX" IGNORE_CASE="FALSE">

24

25 <IMPORT DELEGATE="c::COMMENTS" />

26

27 <SPAN TYPE="LITERAL1" ESCAPE="\" NO_LINE_BREAK="TRUE">

123 <EOL_SPAN_REGEXP HASH_CHAR="if" TYPE="MARKUP" DELEGATE="c::CONDITION">if\b</EOL_SPAN_REGEXP>

124

125 <IMPORT DELEGATE="LEX"/>

126

127 <!-- Directives -->

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

This Java class represents a message sent when a view-related change occurs in the jEdit text editor. It encapsulates information about the type of change (e.g., view created, closed, edit pane changed) and provides methods to access this information, as well as a string representation of the message.

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

24

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

26

27 /**

Base.hs (https://github.com/ezyang/ghc.git) Haskell · 134 lines

18 where

19

20 import GhcPrelude

21

22 import RegAlloc.Linear.StackMap

23 import RegAlloc.Liveness

24 import Reg

25

26 import DynFlags

27 import Outputable

28 import Unique

29 import UniqFM

30 import UniqSupply

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

This Java class, BSHType, extends SimpleNode and implements BshClassManager.Listener. It represents a type in BeanShell, handling array types by storing dimensionality information. The class caches the type for efficient retrieval and notifies the class manager of changes. It also resolves primitive types to their corresponding classes and handles errors during array type construction.

35 package bsh;

36

37 import java.lang.reflect.Array;

38

39 class BSHType extends SimpleNode

Common.hs (https://github.com/ghc/ghc.git) Haskell · 118 lines

10

11 -- ghc

12 import GHC.Core.Class

13 ( Class )

14 import GHC.Core.DataCon

15 ( promoteDataCon )

16 import GHC.Core.TyCon

17 ( TyCon )

18 import GHC.Core.Type

20 , mkTyConApp

21 )

22 import GHC.Plugins

23 ( Plugin(..)

24 , defaultPlugin, purePlugin

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

This Java code defines a dialog box for editing abbreviations in a text editor. It displays two buttons, “OK” and “Cancel”, and allows users to input an abbreviation and its expansion. The dialog also listens for keyboard events, such as pressing the Escape key, to close the dialog. When the user clicks “OK”, it checks if the abbreviation is valid before closing the dialog.

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

24

25 //{{{ Imports

26 import javax.swing.border.*;

27 import javax.swing.*;

28 import java.awt.event.*;

29 import java.awt.*;

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

__init__.py (https://bitbucket.org/nicste/ballaxy.git) Python · 96 lines

3 """

4

5 from basic import *

6 from grouping import *

7 from galaxy.util.json import *

8

9 def visit_input_values( inputs, input_values, callback, name_prefix="", label_prefix="" ):

InvoiceDeliveryMethodDTO.java (https://github.com/othmanelmoulat/jbilling-2.2-Extentions.git) Java · 117 lines

20 package com.sapienter.jbilling.server.invoice.db;

21

22 import java.io.Serializable;

23 import java.util.HashSet;

24 import java.util.Set;

25

26 import javax.persistence.CascadeType;

27 import javax.persistence.Column;

28 import javax.persistence.Entity;

29 import javax.persistence.FetchType;

30 import javax.persistence.GeneratedValue;

31 import javax.persistence.GenerationType;

32 import javax.persistence.Id;

progress.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 3743 lines

463 <MARK_FOLLOWING TYPE="FUNCTION">:image-up</MARK_FOLLOWING>

464 <MARK_FOLLOWING TYPE="FUNCTION">:immediate-display</MARK_FOLLOWING>

465 <MARK_FOLLOWING TYPE="FUNCTION">:import-node</MARK_FOLLOWING>

466 <MARK_FOLLOWING TYPE="FUNCTION">:in-handle</MARK_FOLLOWING>

467 <MARK_FOLLOWING TYPE="FUNCTION">:increment-exclusive-id</MARK_FOLLOWING>

RewritePerfPlugin.hs (https://github.com/bgamari/ghc.git) Haskell · 97 lines

5

6 -- ghc

7 import GHC.Core

8 ( Expr(Coercion) )

9 import GHC.Core.Coercion

10 ( mkUnivCo )

11 import GHC.Core.TyCo.Rep

12 ( Type, UnivCoProvenance(PluginProv) )

13 import GHC.Core.TyCon

14 ( TyCon )

15 import GHC.Core.Type

16 ( eqType, mkTyConApp, splitTyConApp_maybe )

17 import GHC.Plugins

Coalesce.hs (https://github.com/bgamari/ghc.git) Haskell · 99 lines

4 slurpJoinMovs

5 ) where

6 import GHC.Prelude

7

8 import GHC.CmmToAsm.Reg.Liveness

9 import GHC.CmmToAsm.Instr

10 import GHC.Platform.Reg

11

12 import GHC.Cmm

13 import GHC.Data.Bag

45 -- The register with the lowest lexical name is set as the

46 -- canonical version.

47 buildAlloc :: UniqFM Reg Reg -> (Reg, Reg) -> UniqFM Reg Reg

48 buildAlloc fm (r1, r2)

49 = let rmin = min r1 r2

topic.py (https://github.com/zatosource/zato.git) Python · 142 lines

7 """

8

9 # pylint: disable=unused-import, redefined-builtin, unused-variable

10

11 # stdlib

12 import logging

13

14 # gevent

15 from zato.common.typing_ import cast_

16 from zato.server.pubsub.model import Topic

20

21 if 0:

22 from zato.common.typing_ import anylist, callable_, dict_, stranydict, strintdict

23 from zato.server.pubsub.core.hook import HookAPI

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

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

18

19 import java.lang.annotation.ElementType;

20 import java.lang.annotation.Retention;

21 import java.lang.annotation.RetentionPolicy;

22 import java.lang.annotation.Target;

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

161

162 <chapter>

163 <title>Importing files under Perforce</title>

164

165 <para>

166 The Perforce plugin provider a filter that can be used to import

167 only files that are know by Perforce when importing files into

168 a project. Just choose the Perforce file filter from the filter

169 list when performing the importing.

170 </para>

171

testCharacter.py (https://github.com/tctimmeh/teledu.git) Python · 104 lines

1 from selenium.webdriver.support.select import Select

2 from selenium.common.exceptions import NoSuchElementException

3 from teledu.models import CharacterAttributeValue

4 from teleduLiveTestCase import TeleduLiveTestCase, setUpModule

5 from selenium.webdriver.support.ui import WebDriverWait

6

7 class TestCharacterSheet(TeleduLiveTestCase):

LinkResolverTest.java (https://gitlab.com/vectorci/blueocean-plugin) Java · 135 lines

1 package io.jenkins.blueocean.rest.impl.pipeline;

2

3 import hudson.model.FreeStyleProject;

4 import hudson.model.Project;

5 import io.jenkins.blueocean.rest.hal.LinkResolver;

6 import org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition;

7 import org.jenkinsci.plugins.workflow.graph.FlowNode;

8 import org.jenkinsci.plugins.workflow.job.WorkflowJob;

9 import org.jenkinsci.plugins.workflow.job.WorkflowRun;

10 import org.jenkinsci.plugins.workflow.support.visualization.table.FlowGraphTable;

11 import org.junit.Assert;

12 import org.junit.Test;

0018_site_permissions.py (https://github.com/diox/django-cms-2.0.git) Python · 234 lines

1

2 from south.db import db

3 from django.db import models

4 from cms.models import *

5

6 class Migration:

test_arraysetops.py (https://github.com/jackygrahamez/DrugDiscovery-Home.git) Python · 171 lines

3 """

4

5 from numpy.testing import *

6 set_package_path()

7 import numpy

8 from numpy.lib.arraysetops import *

9 from numpy.lib.arraysetops import ediff1d

searchengine.py (https://github.com/akheron/cpython.git) Python · 236 lines

1 '''Define SearchEngine for search dialogs.'''

2 import re

3

4 from tkinter import StringVar, BooleanVar, TclError

5 import tkinter.messagebox as tkMessageBox

6

7 def get(root):

233

234 if __name__ == "__main__":

235 import unittest

236 unittest.main('idlelib.idle_test.test_searchengine', verbosity=2, exit=False)

237

FV.hs (https://github.com/bgamari/ghc.git) Haskell · 199 lines

26 ) where

27

28 import GHC.Prelude

29

30 import GHC.Types.Var

31 import GHC.Types.Var.Set

32

33 -- | Predicate on possible free variables: returns @True@ iff the variable is

38 -- ~~~~~~~~~~~~~~~~~~~~~~~

39 -- When computing free variables, the order in which you get them affects

40 -- the results of floating and specialization. If you use UniqFM to collect

41 -- them and then turn that into a list, you get them in nondeterministic

42 -- order as described in Note [Deterministic UniqFM] in GHC.Types.Unique.DFM.

43

44 -- A naive algorithm for free variables relies on merging sets of variables.

45 -- Merging costs O(n+m) for UniqFM and for UniqDFM there's an additional log

46 -- factor. It's cheaper to incrementally add to a list and use a set to check

47 -- for duplicates.

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

This is a Java interface definition for HighlightChangeListener. It extends the EventListener interface and provides a single method, highlightUpdated(boolean highlightEnabled), which will be called when the highlighting state changes. The method takes a boolean parameter indicating whether highlighting is enabled or not.

22 package gatchan.highlight;

23

24 import java.util.EventListener;

25

26

pavement.py (https://github.com/rafaduran/kombu.git) Python · 190 lines

1 import os

2

3 from paver.easy import * # noqa

4 from paver import doctools # noqa

5 from paver.setuputils import setup # noqa

NotificationMessageDTO.java (https://github.com/bibulous/SkyrackJbill2.2.git) Java · 168 lines

20 package com.sapienter.jbilling.server.notification.db;

21

22 import java.io.Serializable;

23 import java.util.HashSet;

24 import java.util.Set;

25

26 import javax.persistence.CascadeType;

27 import javax.persistence.Column;

28 import javax.persistence.Entity;

29 import javax.persistence.FetchType;

30 import javax.persistence.GeneratedValue;

31 import javax.persistence.GenerationType;

32 import javax.persistence.Id;

pnml.py (https://github.com/bitwrap/bitwrap-io.git) Python · 276 lines

12 """

13

14 import sys # argv for test file path

15 import xml.etree.ElementTree as ET # XML parser

16 import time # timestamp for id generation

17 from random import randint # random number for id generation

Set.hs (https://github.com/bgamari/ghc.git) Haskell · 224 lines

36 ) where

37

38 import GHC.Prelude

39

40 import GHC.Types.Name

41 import GHC.Data.OrdList

42 import GHC.Types.Unique.Set

43 import Data.List (sortBy)

44

45 {-

100 -- This only works for Names that originate in the source code or have been

101 -- tidied.

102 -- See Note [Deterministic UniqFM] to learn about nondeterminism

103 nameSetElemsStable :: NameSet -> [Name]

104 nameSetElemsStable ns =

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

18 package org.apache.hadoop.hive.serde2.objectinspector.primitive;

19

20 import org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector;

21

22 /**

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

This Java class, JTextAreaDestination, extends OutputDestinationComponent and provides a text area for appending log messages. It allows for word wrap, auto-positioning of the caret, and searching for specific words within the text area. The class also includes methods for clearing the text area and printing or appending new lines to it.

15 package ghm.follow;

16

17 import java.util.*;

18 import java.util.regex.*;

19

20 import javax.swing.JTextArea;

21 import javax.swing.text.BadLocationException;

22 import javax.swing.text.Document;

23

24 import logviewer.LogType;

imdb.py (https://gitlab.com/gregtyka/ka-lite) Python · 85 lines

1 from __future__ import unicode_literals

2

3 import re

4 import json

5

6 from .common import InfoExtractor

7 from ..utils import (

8 compat_urlparse,

9 )

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

This Java code implements a for(;;) statement in BeanShell, a JavaScript-like scripting language. It evaluates an infinite loop that continues as long as a condition is true, and executes a block of code repeatedly. The loop can be exited by breaking out of the innermost loop using a break statement or returning from the block.

85

86 // put forNameSpace it on the top of the stack

87 // Note: it's important that there is only one exit point from this

88 // method so that we can swap back the namespace.

89 callstack.swap( forNameSpace );

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

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

1 package main

2

3 import "./using1"

4

5 func main() {

PopulateSampleIndices.java (http://aipo.googlecode.com/svn/) Java · 68 lines

16 package org.apache.jetspeed.services.search;

17

18 import java.io.BufferedReader;

19 import java.io.FileReader;

20 import java.net.URL;

21

22 import org.apache.turbine.util.TurbineConfig;

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

This Java code defines an abstract class REToken that represents a token in a regular expression. It provides methods for checking if a match succeeds, chaining tokens together, and dumping the token’s information to a string buffer. The class is designed to be subclassed by specific token types, such as character classes or literal strings.

19

20 package gnu.regexp;

21 import java.io.Serializable;

22

23 abstract class REToken implements Serializable {

propflush.nrx (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 37 lines

1 import org.gjt.sp.jedit

2

3 -- This script clears all NetRexxScript variables from jEdit memory

0022_auto__add_booksetting.py (https://gitlab.com/wilane/Booktype) Python · 255 lines

1 # -*- coding: utf-8 -*-

2 import datetime

3 from south.db import db

4 from south.v2 import SchemaMigration

5 from django.db import models

manager_http.go (https://github.com/ory/kratos.git) Go · 158 lines

1 package session

2

3 import (

4 "context"

5 "net/http"

UnVarGraph.hs (https://github.com/typelead/eta.git) Haskell · 136 lines

28 ) where

29

30 import Eta.BasicTypes.Id

31 import Eta.BasicTypes.VarEnv

32 import Eta.Utils.UniqFM

33 import Eta.Utils.Outputable

34 import Data.List

35 import Eta.Utils.Bag

36 import Eta.BasicTypes.Unique

37

38 import qualified Data.IntSet as S

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

This Java class provides a command to check out a project from a Subversion repository using the SVNKit library. It takes a CheckoutData object as input, which contains the URL of the repository and the local path where the checkout should be performed. The method performs the checkout operation and returns the revision number of the checked-out code.

29 package ise.plugin.svn.command;

30

31 import java.io.*;

32 import java.util.*;

33

34 import org.tmatesoft.svn.core.SVNDepth;

35 import org.tmatesoft.svn.core.wc.SVNUpdateClient;

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

37 import org.tmatesoft.svn.core.wc.ISVNOptions;

38 import org.tmatesoft.svn.core.wc.SVNClientManager;

39 import org.tmatesoft.svn.core.wc.SVNWCUtil;

40

41 import org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory;

42

43 import org.tmatesoft.svn.core.SVNException;

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

723 break;

724

725 case QDeclarativeInstruction::StoreImportedScript:

726 {

727 ctxt->addImportedScript(scripts.at(instr.storeScript.value));

SpillCost.hs (https://github.com/pepeiborra/ghc.git) Haskell · 278 lines

19 import RegAlloc.Liveness

20 import Instruction

21 import RegClass

22 import Reg

23

24 import GraphBase

25

26 import BlockId

27 import OldCmm

28 import UniqFM

29 import UniqSet

30 import Digraph (flattenSCCs)

31 import Outputable

32 import Platform

petitions_fr_tu.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 108 lines

33 @message@

34

35 IMPORTANT...

36 Pour valider ta signature, il suffit de te connecter à

37 l\'adresse ci-dessous (dans le cas contraire, ta demande

ReplaceForEachLoopWithIndexedForLoopIntention.java (https://bitbucket.org/nbargnesi/idea.git) Java · 272 lines

16 package com.siyeh.ipp.forloop;

17

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

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

20 import com.intellij.psi.*;

21 import com.intellij.psi.codeStyle.*;

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

26 import org.jetbrains.annotations.NotNull;

27 import org.jetbrains.annotations.Nullable;

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;

beanshell.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 103 lines

67

68 <KEYWORDS>

69 <KEYWORD2>import</KEYWORD2>

70 <KEYWORD3>byte</KEYWORD3>

71 <KEYWORD3>char</KEYWORD3>

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

This Java code creates a graphical user interface (GUI) for managing file properties, such as name, path, last modified date, and permissions. It allows users to rename files, view and modify file attributes, and cancel changes. The GUI is designed to be simple and easy to use, with features like auto-saving the window’s geometry and focus on the first visible element.

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

23

24 //{{{ Imports

25 import java.io.File;

26

27 import java.awt.BorderLayout;

28 import java.awt.GridLayout;

29 import java.awt.event.ActionEvent;

30 import java.awt.event.ActionListener;

31 import java.text.SimpleDateFormat;

32 import java.util.Date;

33

34 import javax.swing.*;

35 import javax.swing.border.Border;

users-guide.xsl (https://jedit.svn.sourceforge.net/svnroot/jedit) Extensible Stylesheet Language Transformations · 284 lines

9 <!-- (for a single html page) or chunk.xsl (for multiple pages) in your -->

10 <!-- installation of the DocBook XSL stylesheets. -->

11 <xsl:import href="I:/sgml/docbook-xsl-1.45/html/onechunk.xsl"/>

12

13 <xsl:param name="use.id.as.filename" select="'1'" doc:type="boolean"/>

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

UnblockingMessageImpl.java (http://mobicents.googlecode.com/svn/trunk/) Java · 131 lines ✨ Summary

This Java class implements an UnblockingMessage, a type of message in the ISUP (Intelligent Switching System) protocol. It extends another class and provides specific implementations for decoding and processing message parameters. The class includes methods for getting the message type, checking mandatory parameter presence, and handling optional parameters, which are not supported in this implementation.

29 package org.mobicents.protocols.ss7.isup.impl.message;

30

31 import java.util.Map;

32 import java.util.Set;

33

34 import org.mobicents.protocols.ss7.isup.ISUPParameterFactory;

35 import org.mobicents.protocols.ss7.isup.ParameterException;

36 import org.mobicents.protocols.ss7.isup.impl.message.parameter.MessageTypeImpl;

37 import org.mobicents.protocols.ss7.isup.message.UnblockingMessage;

38 import org.mobicents.protocols.ss7.isup.message.parameter.MessageType;

39

40 /**

MdnClientCell.java (http://mobiledatanow.googlecode.com/svn/trunk/) Java · 104 lines ✨ Summary

This Java class, MdnClientCell, extends the TD class from Apache ECS and represents a client cell element in HTML. It provides constructors for creating instances with different parameters, including a blank constructor, string constructor, boolean constructor, and an element constructor. The class also includes accessors to set and get the title and help URL of the client cell.

1 package wsl.mdn.html;

2

3 import org.apache.ecs.html.TD;

4 import org.apache.ecs.Element;

NewRecordDelegate.java (http://mobiledatanow.googlecode.com/svn/trunk/) Java · 79 lines ✨ Summary

This Java class, NewRecordDelegate, is a delegate used by an MdnHtmlServlet to handle actions related to creating new records in a data view. It validates user state and menu action, creates a record for the data view if valid, sets it into the user state, and then delegates to another delegate (EditRecordDelegate) to show the created record.

6 package wsl.mdn.html;

7

8 import wsl.fw.servlet.ServletBase;

9 import wsl.fw.util.Util;

10 import wsl.fw.resource.ResId;

11 import wsl.mdn.guiconfig.*;

12 import wsl.mdn.dataview.*;

13

14 import java.io.IOException;

15 import javax.servlet.ServletException;

16

17 //------------------------------------------------------------------------------

NamedNativeQuery.java (http://gwt-ent.googlecode.com/svn/trunk/) Java · 48 lines ✨ Summary

This Java code defines an annotation @NamedNativeQuery that can be applied to a type (e.g., class). It specifies metadata for a native query, including its name, query text, hints, result class, and optional resultSetMapping. The annotation is intended for use with the Java Persistence API (JPA) and has runtime retention, allowing it to be inspected at runtime.

25 package javax.persistence;

26

27 import java.lang.annotation.Target;

28 import java.lang.annotation.ElementType;

29 import java.lang.annotation.Retention;

30 import java.lang.annotation.RetentionPolicy;

DirectoryServer.java (http://gdata-java-client.googlecode.com/svn/trunk/) Java · 77 lines ✨ Summary

This Java code defines a class DirectoryServer that represents a contact’s directory server in the Google Contacts API. It extends the ValueConstruct class and provides a default constructor, an immutable constructor with an optional value, and a method to get the extension description. The class is used to construct and manipulate directory server elements in XML data.

17 package com.google.gdata.data.contacts;

18

19 import com.google.gdata.data.ExtensionDescription;

20 import com.google.gdata.data.ValueConstruct;