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.
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.
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.
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.
Stats.hs (https://bitbucket.org/carter/ghc.git) Haskell · 297 lines
18 #include "nativeGen/NCG.h"
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")
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.
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.
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.
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.
Pretty.hs (https://github.com/mchakravarty/packages-dph.git) Haskell · 259 lines
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.
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.
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.
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.
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.
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;
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
PreAnalyzedUpdateProcessorTest.java (https://github.com/apache/solr.git) Java · 122 lines
SimpleShapeMonteCarloAbsorptionTest.py (https://github.com/wdzhou/mantid.git) Python · 206 lines
1 from __future__ import (absolute_import, division, print_function)
3 from mantid.simpleapi import (SimpleShapeMonteCarloAbsorption, Load, ConvertUnits,
4 CompareWorkspaces, SetSampleMaterial, CreateSampleWorkspace,
5 DeleteWorkspace)
6 from mantid.kernel import *
7 from mantid.api import *
9 import unittest
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.
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;
25 import infoviewer.actions.InfoViewerAction;
26 import infoviewer.actions.ToggleSidebar;
27 import infoviewer.workaround.EnhancedJEditorPane;
28 import infoviewer.workaround.EnhancedJToolBar;
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
.
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
.
SecondarySchemaCreatorTest.java (https://bitbucket.org/ldassonville/openesb-components.git) Java · 176 lines
15 package org.openesb.components.rules4jbi.netbeans.wsdl.schema;
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.*;
23 /**
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
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
14 bind_warning = "Calls to builtin next() possibly shadowed by global binding"
README.rst (https://gitlab.com/pobk/django-urlcrypt) ReStructuredText · 100 lines
setenv.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 10 lines
petitions_fr.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 110 lines
ListEntityDTO.java (https://github.com/othmanelmoulat/jbilling-2.2-Extentions.git) Java · 154 lines
20 package com.sapienter.jbilling.server.list.db;
22 import java.io.Serializable;
23 import java.util.Date;
24 import java.util.HashSet;
25 import java.util.Set;
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.
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.
Set.hs (https://github.com/bgamari/ghc.git) Haskell · 198 lines
5 \section[UniqSet]{Specialised sets, for things with @Uniques@}
7 Based on @UniqFMs@ (as you would expect).
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
49 import GHC.Prelude
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.
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.
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(..) )
44 -- import BasicTypes
45 import BlockId
47 import Module
48 import UniqFM
49 import Unique
60 -- | An environment of named things.
61 type Env = UniqFM Named
63 -- | Local declarations that are in scope during code generation.
Spill.hs (https://github.com/mzero/ghc.git) Haskell · 338 lines
urlize.py (https://gitlab.com/rshipp/django-wiki) Python · 104 lines
pynma.py (https://github.com/depassp/Sick-Beard.git) Python · 137 lines
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
8 from website.util import api_url_for, web_url_for
9 from website.addons.base.testing import AddonTestCase
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
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
imdb.py (https://gitlab.com/shinvdu/youtube-dl) Python · 84 lines
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.
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.
Base.hs (https://bitbucket.org/carter/ghc.git) Haskell · 132 lines
Coalesce.hs (https://github.com/mzero/ghc.git) Haskell · 88 lines
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.
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.
sort_sources.py (https://github.com/chromium/chromium.git) Python · 189 lines
DREA_HSRnoise.py (https://github.com/thearn/OpenMDAO-Framework.git) Python · 131 lines
3 """
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.
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;
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
getSourceFileInfo.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 28 lines
ring.py (https://github.com/mdegerne/swift-2.git) Python · 160 lines
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.
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.
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.
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.
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.
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 */
20 package jimporter.options;
22 import org.gjt.sp.jedit.AbstractOptionPane;
23 import jimporter.JImporterOptionPane;
25 public abstract class JImporterOption {
26 protected String labelProperty;
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.
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.
softlayer_test.go (https://github.com/docker/infrakit.git) Go · 235 lines
searchengine.py (https://gitlab.com/abhi1tb/build) Python · 237 lines
OrderPeriodDTO.java (https://github.com/bibulous/SkyrackJbill2.2.git) Java · 167 lines
23 import java.util.HashSet;
24 import java.util.Set;
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
Regs.hs (https://github.com/altaic/ghc.git) Haskell · 323 lines
24 #include "../includes/stg/MachRegs.h"
26 import RegsBase
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
StgAst.hs (https://bitbucket.org/bathtub/ghcjs.git) Haskell · 103 lines
phocagalleryco.php (https://github.com/wiktorm/projekt-awr.git) PHP · 247 lines
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
RegInfo.hs (https://github.com/tibbe/ghc.git) Haskell · 75 lines
ReportDTO.java (https://github.com/othmanelmoulat/jbilling-2.2-Extentions.git) Java · 211 lines
20 package com.sapienter.jbilling.server.report.db;
22 import java.io.Serializable;
23 import java.util.HashSet;
24 import java.util.Set;
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'
3 import LinkedStateMixin from 'react-addons-linked-state-mixin'
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.
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;
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
Set.hs (https://github.com/ghc/ghc.git) Haskell · 360 lines
47 ) where
49 import GHC.Prelude
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)
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.
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.
coredump.hs (https://github.com/khskrede/mehh.git) Haskell · 99 lines
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
11 import Text.JSON
12 import Text.JSON.Pretty
14 import Text.PrettyPrint.HughesPJ
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.
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;
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
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.
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.
Reg.hs (https://github.com/mzero/ghc.git) Haskell · 220 lines
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
69 -- Plugin stuff itself
70 import GHC.Driver.Plugins
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.
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.
0003_attributionexclude.py (https://gitlab.com/wilane/Booktype) Python · 210 lines
ProcessRunTotalDTO.java (https://github.com/bibulous/SkyrackJbill2.2.git) Java · 182 lines
20 package com.sapienter.jbilling.server.process.db;
22 import java.math.BigDecimal;
23 import java.util.Set;
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>
23 <RULES SET="LEX" IGNORE_CASE="FALSE">
25 <IMPORT DELEGATE="c::COMMENTS" />
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>
125 <IMPORT DELEGATE="LEX"/>
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.
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.
Base.hs (https://github.com/ezyang/ghc.git) Haskell · 134 lines
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.
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.
Common.hs (https://github.com/ghc/ghc.git) Haskell · 118 lines
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.
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.
__init__.py (https://bitbucket.org/nicste/ballaxy.git) Python · 96 lines
InvoiceDeliveryMethodDTO.java (https://github.com/othmanelmoulat/jbilling-2.2-Extentions.git) Java · 117 lines
20 package com.sapienter.jbilling.server.invoice.db;
22 import java.io.Serializable;
23 import java.util.HashSet;
24 import java.util.Set;
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
Coalesce.hs (https://github.com/bgamari/ghc.git) Haskell · 99 lines
4 slurpJoinMovs
5 ) where
6 import GHC.Prelude
8 import GHC.CmmToAsm.Reg.Liveness
9 import GHC.CmmToAsm.Instr
10 import GHC.Platform.Reg
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 """
9 # pylint: disable=unused-import, redefined-builtin, unused-variable
11 # stdlib
12 import logging
14 # gevent
15 from zato.common.typing_ import cast_
16 from zato.server.pubsub.model import Topic
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
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 195 lines
162 <chapter>
163 <title>Importing files under Perforce</title>
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>
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
7 class TestCharacterSheet(TeleduLiveTestCase):
LinkResolverTest.java (https://gitlab.com/vectorci/blueocean-plugin) Java · 135 lines
1 package io.jenkins.blueocean.rest.impl.pipeline;
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
test_arraysetops.py (https://github.com/jackygrahamez/DrugDiscovery-Home.git) Python · 171 lines
searchengine.py (https://github.com/akheron/cpython.git) Python · 236 lines
1 '''Define SearchEngine for search dialogs.'''
2 import re
4 from tkinter import StringVar, BooleanVar, TclError
5 import tkinter.messagebox as tkMessageBox
7 def get(root):
234 if __name__ == "__main__":
235 import unittest
236 unittest.main('idlelib.idle_test.test_searchengine', verbosity=2, exit=False)
FV.hs (https://github.com/bgamari/ghc.git) Haskell · 199 lines
26 ) where
28 import GHC.Prelude
30 import GHC.Types.Var
31 import GHC.Types.Var.Set
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.
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.
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.
pavement.py (https://github.com/rafaduran/kombu.git) Python · 190 lines
NotificationMessageDTO.java (https://github.com/bibulous/SkyrackJbill2.2.git) Java · 168 lines
20 package com.sapienter.jbilling.server.notification.db;
22 import java.io.Serializable;
23 import java.util.HashSet;
24 import java.util.Set;
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
Set.hs (https://github.com/bgamari/ghc.git) Haskell · 224 lines
36 ) where
38 import GHC.Prelude
40 import GHC.Types.Name
41 import GHC.Data.OrdList
42 import GHC.Types.Unique.Set
43 import Data.List (sortBy)
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 =
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.
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.
imdb.py (https://gitlab.com/gregtyka/ka-lite) Python · 85 lines
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.
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.
README (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 17 lines
using1_runme.go (https://swig.svn.sourceforge.net/svnroot/swig) Go · 10 lines
PopulateSampleIndices.java (http://aipo.googlecode.com/svn/) Java · 68 lines
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.
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.
propflush.nrx (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 37 lines
0022_auto__add_booksetting.py (https://gitlab.com/wilane/Booktype) Python · 255 lines
manager_http.go (https://github.com/ory/kratos.git) Go · 158 lines
UnVarGraph.hs (https://github.com/typelead/eta.git) Haskell · 136 lines
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.
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;
31 import java.io.*;
32 import java.util.*;
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;
41 import org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory;
43 import org.tmatesoft.svn.core.SVNException;
qdeclarativevme.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1124 lines
SpillCost.hs (https://github.com/pepeiborra/ghc.git) Haskell · 278 lines
petitions_fr_tu.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 108 lines
ReplaceForEachLoopWithIndexedForLoopIntention.java (https://bitbucket.org/nbargnesi/idea.git) Java · 272 lines
16 package com.siyeh.ipp.forloop;
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
beanshell.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 103 lines
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.
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;
24 //{{{ Imports
25 import java.io.File;
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;
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
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.
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.
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.
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;
31 import java.util.Map;
32 import java.util.Set;
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;
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.
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.
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.
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;
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.*;
14 import java.io.IOException;
15 import javax.servlet.ServletException;
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.
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.
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.
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.