content stringlengths 40 137k |
|---|
"public BinaryRatingDao<SubjectRatingEntity> getSubjectRatingDao() {\n if (subjectRatingDao == null) {\n subjectRatingDao = new SqlSubjectRatingDao();\n }\n return subjectRatingDao;\n}\n"
|
"private void placeComponents() {\n GridLayout glContent = new GridLayout(3, true);\n glContent.marginHeight = 2;\n glContent.marginWidth = 2;\n this.setLayout(glContent);\n grpAccLine = new Group(this, SWT.NONE);\n GridData gdGRPAccLine = new GridData(GridData.FILL_HORIZONTAL);\n GridLayout glGRPA... |
"public TezRawKeyValueIterator getIterator() throws IOException, InterruptedException {\n if (this.numInputs == 0) {\n return new TezRawKeyValueIterator() {\n public DataInputBuffer getKey() throws IOException {\n throw new RuntimeException(\"String_Node_Str\");\n }\n ... |
"public void computeScroll() {\n super.computeScroll();\n if (mScroller.isFinished()) {\n if (mCurrentFlingDirection != Direction.NONE) {\n goToNearestOrigin();\n }\n } else {\n if (mCurrentFlingDirection != Direction.NONE && forceFinishScroll()) {\n goToNearestOrigin... |
"private void writePropertyValue(final ServiceMetadata metadata, final EdmProperty edmProperty, final Property property, final Set<List<String>> selectedPaths, final String xml10InvalidCharReplacement, final XMLStreamWriter writer) throws XMLStreamException, SerializerException {\n try {\n if (edmProperty.isP... |
"public void refresh() {\n for (TreeObject obj : checkItems) {\n if (obj instanceof TreeParent) {\n repositoryNodes.addAll(Util.getChildrenObj((TreeParent) obj));\n else\n repositoryNodes.add(obj);\n }\n ((CheckboxTreeViewer) viewer).setCheckedElements(repositoryNodes.toArra... |
"public void gdVerifyValueInRow(final String row, final String rowOperator, final String value, final String operator, final String searchType, boolean exists) throws StepExecutionException {\n final int implRow = getRowFromString(row, rowOperator);\n Boolean valueExists = Boolean.TRUE;\n if (implRow == -1) {\... |
"public List<ReplicaAccounting> getReplicaAccountings(long requestId) {\n return replicaAccountings.containsKey(requestId) ? new LinkedList<ReplicaAccounting>(replicaAccountings.get(requestId)) : new LinkedList<ReplicaAccounting>();\n}\n"
|
"public static FormInstance loadFixtureForUser(String refId, String userId) {\n IStorageUtilityIndexed storage = (IStorageUtilityIndexed) StorageManager.getStorage(FormInstance.STORAGE_KEY);\n FormInstance fixture = null;\n Vector<Integer> relevantFixtures = storage.getIDsForValue(FormInstance.META_ID, refId);... |
"public Object convertFromString(Map ctx, String[] value, Class arg2) {\n if (value[0] == null || value[0].trim().equals(\"String_Node_Str\")) {\n return null;\n }\n try {\n return DateUtil.convertStringToDate(value[0]);\n } catch (ParseException pe) {\n pe.printStackTrace();\n t... |
"private Boundary getExampleBoundary() {\n List<BoundaryPart> bpl = new ArrayList<BoundaryPart>();\n BoundaryPart bp;\n Edge cstr;\n List<Edge> boundaryEdges;\n Boundary bound = new Boundary();\n cstr = null;\n boundaryEdges = new ArrayList<Edge>();\n boundaryEdges.add(new Edge(0, 1, 0, 3, 2, 0)... |
"public static void awaitSync() {\n boolean b = canProceed();\n if (b)\n return;\n try {\n if (!latch.await(200, TimeUnit.MILLISECONDS)) {\n TridentLogger.get().warn(\"String_Node_Str\" + complete.sum() + \"String_Node_Str\" + expected.sum() + \"String_Node_Str\" + b);\n if ... |
"public static String getBodyForUpdateChatNotificationMessage(Context context, QBMessage chatMessage) {\n String occupantsIds = chatMessage.getProperty(PROPERTY_OCCUPANTS_IDS);\n String dialogName = chatMessage.getProperty(PROPERTY_ROOM_NAME);\n String photoUrl = chatMessage.getProperty(PROPERTY_ROOM_PHOTO);\n... |
"public void closePage(IContent[] contentList, IContentEmitter emitter) {\n int length = contentList.length;\n if (length > 0) {\n for (int i = 0; i < length; i++) {\n AbstractNode node = (AbstractNode) nodeList[i];\n endContainer(node.content, false, node.emitter, true);\n }\n... |
"private Time _fireContainerAt(Time time) throws IllegalActionException {\n Actor container = (Actor) _director.getContainer();\n if (container != null) {\n Director director = container.getExecutiveDirector();\n if (director != null) {\n Time result = director.fireAt(container, time);\n ... |
"private void initialiseHeader() throws IOException {\n if (casMagicOffset(UNINITIALISED, BUILDING)) {\n buildHeader();\n }\n readHeader();\n}\n"
|
"public static soot.Local getThis(soot.Type sootType, soot.Body body, HashMap getThisMap, LocalGenerator lg) {\n if (InitialResolver.v().hierarchy() == null) {\n InitialResolver.v().hierarchy(new soot.FastHierarchy());\n }\n soot.FastHierarchy fh = InitialResolver.v().hierarchy();\n if (getThisMap.co... |
"private void setStreamVolumeInt(int streamType, int index, boolean force) {\n VolumeStreamState streamState = mStreamStates[streamType];\n if (streamState.setIndex(index, lastAudible) || force) {\n if (streamState.muteCount() == 0) {\n sendMsg(mAudioHandler, MSG_SET_SYSTEM_VOLUME, streamType, S... |
"public int getPagePosition(String path) {\n return mPageAdapter.getPositionForTag(path);\n}\n"
|
"protected void runInternal(final String[] args, final List<IngestTypePluginProviderSpi<?, ?>> pluginProviders) {\n final Map<String, LocalFileIngestPlugin<?>> localFileIngestPlugins = new HashMap<String, LocalFileIngestPlugin<?>>();\n final List<WritableDataAdapter<?>> adapters = new ArrayList<WritableDataAdapte... |
"private void testMin(Method m) throws InvocationTargetException, IllegalAccessException {\n Class[] paramTypes = m.getParameterTypes();\n ImageBase input = GeneralizedImageOps.createImage(paramTypes[0], width, height, numBands);\n if (input.getImageType().getDataType().isSigned()) {\n GImageMiscOps.fil... |
"private void insertBrInEmptyParagraphs(Node node) {\n if (node == null || !Element.is(node)) {\n return;\n }\n if (node.getNodeName().equalsIgnoreCase(\"String_Node_Str\") && node.getChildCount() == 0) {\n node.appendChild(Document.get().createBRElement());\n }\n NodeList children = node.g... |
"private void buildRowLimitAndOffset(StringBuffer queryBuf, List params) {\n if (limit > 0 || offset > 0) {\n queryBuf.insert(0, \"String_Node_Str\");\n queryBuf.append(\"String_Node_Str\");\n }\n if (limit > 0) {\n queryBuf.append(\"String_Node_Str\");\n if (offset > 0)\n ... |
"public byte[] readRecord(byte[] reusable, byte[] bytes, int offset, int numBytes) throws IOException {\n if (reusable != null && reusable.length == this.recordLength) {\n System.arraycopy(bytes, readOffset, reusable, 0, numBytes);\n return reusable;\n } else {\n byte[] tmp = new byte[this.re... |
"public void drawBackgroundColor(Color color, float x, float y, float width, float height) {\n if (color != null) {\n writer.fillRect(convertToPoint(x), convertToPoint(y), convertToPoint(width), convertToPoint(height), color);\n }\n}\n"
|
"protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) {\n if (!c.isEnabled()) {\n return;\n }\n boolean leftToRight = c.getComponentOrientation().isLeftToRight();\n g.translate(thumbBounds.x, thumbBounds.y);\n int imgWidth;\n int imgHeight;\n int indentWidth = 10;\n ... |
"public File generateFile(TemplateMaker maker, String name, String modelPath, String format, List<BirtTemplateParameter> birtTemplateParameterList) throws AxelorException {\n if (modelPath == null || modelPath.isEmpty()) {\n return null;\n }\n ReportSettings reportSettings = new ReportSettings(modelPath... |
"public void testEnumLiteral() {\n LiteralExpression result = (LiteralExpression) parse(\"String_Node_Str\");\n assertEquals(new LiteralExpression(\"String_Node_Str\", \"String_Node_Str\"), result);\n}\n"
|
"private void mayAddPropToPrototype(RawNominalType rawType, String pname, Node defSite, Node initializer) {\n NTIScope methodScope = null;\n DeclaredFunctionType methodType = null;\n JSType propDeclType = null;\n JSDocInfo jsdoc = NodeUtil.getBestJSDocInfo(defSite);\n if (initializer != null && initializ... |
"public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {\n if (null == value) {\n return false;\n }\n boolean wasXMLRoot = false;\n XPath... |
"public void testQuery17() throws InterruptedException {\n log.info(\"String_Node_Str\");\n String clusterName = \"String_Node_Str\";\n SiddhiManager siddhiManager = new SiddhiManager();\n String tables = \"String_Node_Str\" + \"String_Node_Str\" + clusterName + \"String_Node_Str\" + \"String_Node_Str\";\n ... |
"public void handle(Message inputMessage, ISendMessageCallback callback, boolean unitOfWorkBoundaryReached) {\n if ((PER_UNIT_OF_WORK.equals(runWhen) && inputMessage instanceof ControlMessage) || (!PER_UNIT_OF_WORK.equals(runWhen) && !(inputMessage instanceof ControlMessage))) {\n IDirectory streamable = getR... |
"public void testEraseFileEvenInstructionValidOffset() throws Exception {\n ProcessingData processingData = new ProcessingData();\n byte[] apduBytes = new byte[] { 0x00, (byte) 0x0E, 0x00, 0x02 };\n processingData.updateCommandApdu(this, \"String_Node_Str\", CommandApduFactory.createCommandApdu(apduBytes));\n ... |
"public static <T> T merge(final T newObject) throws ConstraintViolationException, TransactionException, NoSuchElementException {\n if (!isPersistent(newObject)) {\n try {\n return uniqueResult(newObject);\n } catch (Exception ex) {\n LOG.error(ex, ex);\n throw new Runt... |
"public void restrictedSetPipeline(Pipeline pl) {\n synchronized (this) {\n pl.setBasic(new StandardContextValve());\n pipeline = pl;\n hasCustomPipeline = true;\n }\n}\n"
|
"private void pdb_HEADER_Handler(String line) {\n String classification = null;\n String deposition_date = null;\n String pdbCode = null;\n int len = line.trim().length();\n if (len > 10) {\n classification = line.substring(10, min(len, 50)).trim();\n pdbHeader.setClassification(classificat... |
"public void fireEvent(final ClockTick event) {\n if (Bootstrap.isFinished() && Topology.isEnabledLocally(LoadBalancing.class) && Topology.isEnabled(Eucalyptus.class)) {\n final EntityTransaction db = Entities.get(LoadBalancerServoInstance.class);\n final LoadBalancerServoInstance sample = LoadBalancer... |
"public void widgetSelected(SelectionEvent e) {\n if (((TabItem) e.item) == generalDataUseCaseTab) {\n useCaseMode = EUseCaseMode.UNSPECIFIED_DATA;\n Application.bLoadPathwayData = false;\n } else if (((TabItem) e.item) == geneticDataUseCaseTab)\n useCaseMode = EUseCaseMode.GENETIC_DATA;\n ... |
"private void copyElementParametersValue(IElement sourceElement, IElement targetElement) {\n for (IElementParameter sourceParam : sourceElement.getElementParameters()) {\n IElementParameter targetParam = targetElement.getElementParameter(sourceParam.getName());\n if (targetParam != null) {\n ... |
"public void selectAttackers(Game game, UUID attackingPlayerId) {\n updateGameStatePriority(\"String_Node_Str\", game);\n FilterCreatureForCombat filter = filterCreatureForCombat.copy();\n filter.add(new ControllerIdPredicate(attackingPlayerId));\n while (!abort) {\n if (passedAllTurns || (!getUserDa... |
"public void run() {\n NodeEntry state = Preconditions.checkNotNull(graph.get(skyKey), skyKey);\n Preconditions.checkState(state.isReady(), \"String_Node_Str\", skyKey, state);\n if (maybeHandleDirtyNode(state) == DirtyOutcome.ALREADY_PROCESSED) {\n return;\n }\n Set<SkyKey> oldDeps = state.getAll... |
"public boolean apply(Game game, Ability source) {\n UUID defenderId = game.getCombat().getDefendingPlayerId(source.getSourceId(), game);\n Player defender = game.getPlayer(defenderId);\n if (defender != null) {\n Cards cards = new CardsImpl();\n Card card = defender.getLibrary().getFromTop(game)... |
"protected String registerCacheableMapper(UserRequest ureq, String cacheableMapperID, Mapper m) {\n if (mappers == null) {\n mappers = new ArrayList<Mapper>(2);\n }\n String mapperBaseURL;\n if (cacheableMapperID == null) {\n mapperBaseURL = CoreSpringFactory.getImpl(MapperService.class).regis... |
"protected final void emit_checkcast_resolvedClass(RVMClass type) {\n int LHSDepth = type.getTypeDepth();\n int LHSId = type.getId();\n peekAddr(T0, 0);\n asm.emitCMPAddrI(T0, 0);\n ForwardReference isNull = asm.emitForwardBC(EQ);\n ObjectModel.baselineEmitLoadTIB(asm, T0, T0);\n asm.emitLAddr(T0, ... |
"protected void setUp() throws Exception {\n super.setUp();\n ApplicationContextMock appctx = new ApplicationContextMock();\n application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx, true));\n}\n"
|
"public Set<String> getAllValidatorClasses() {\n Set<String> validators = null;\n try {\n validators = Arrays.asList(restTemplate.getForObject(baseURL + \"String_Node_Str\", String[].class));\n } catch (SyncopeClientCompositeErrorException e) {\n LOG.error(\"String_Node_Str\", e);\n }\n ret... |
"public static FilteringPipeline getPipeline() {\n return gPipeline;\n}\n"
|
"public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n setHasOptionsMenu(true);\n checkActionBar();\n boolean adapterAlreadyExists = hasPostAdapter();\n mListView.setAdapter(getPostAdapter());\n if (!adapterAlreadyExists) {\n boolean isRecre... |
"public void init() throws IOException {\n this.lock = new ReentrantLock();\n try {\n this.serverMap = ConfigLoader.loadServerMap(ConfigLoader.buidCfgAbsPathFor(\"String_Node_Str\"));\n this.poolCfgMap = ConfigLoader.loadPoolMap(ConfigLoader.buidCfgAbsPathFor(\"String_Node_Str\"));\n this.use... |
"private void moveTo(int x, int y) {\n mPositionX = x - TextView.this.mScrollX;\n mPositionY = y - TextView.this.mScrollY;\n if (isPositionVisible()) {\n int[] coords = null;\n if (mContainer.isShowing()) {\n final int[] coords = mTempCoords;\n TextView.this.getLocationInWin... |
"public void useCflow(String name) throws CannotCompileException {\n CtClass cc = declaringClass;\n cc.checkModify();\n ClassPool pool = cc.getClassPool();\n String fname;\n int i = 0;\n while (true) {\n fname = \"String_Node_Str\" + i++;\n try {\n cc.getDeclaredField(fname);\... |
"private StreamReader getMetaManager(StreamID id, int sType) throws DataException {\n if (sType == DataEngineContext.DATASET_DATA_STREAM || sType == DataEngineContext.DATASET_META_STREAM) {\n if (this.dataMetaManagers.get(id) == null)\n this.dataMetaManagers.put(id, new DataStreamReader(this.contex... |
"private void calcAngles() {\n mDrawAngles = new float[mCurrentData.getYValCount()];\n mAbsoluteAngles = new float[mCurrentData.getYValCount()];\n ArrayList<PieDataSet> dataSets = mCurrentData.getDataSets();\n int cnt = 0;\n for (int i = 0; i < mCurrentData.getDataSetCount(); i++) {\n PieDataSet s... |
"public static String getWebContext() {\n String moduleBaseURL = GWT.getModuleBaseURL();\n String moduleName = GWT.getModuleName();\n String webContext = moduleBaseURL.split(\"String_Node_Str\")[3];\n if (webContext.equals(moduleName)) {\n return null;\n } else {\n return webContext;\n }... |
"public void render(final Component owner, final Object data, final int index, final int size, final boolean isListModel) {\n final Template tm = resolveTemplate(owner, owner, data, index, size, \"String_Node_Str\");\n if (tm == null) {\n Label l = new Label(data == null ? \"String_Node_Str\" : data.toStri... |
"public void handleDescriptionPacket(PacketUpdate packet) throws IOException {\n if (packet.payload instanceof PacketPayloadArrays) {\n descriptionPacket.fromPayload(this, (PacketPayloadArrays) packet.payload);\n}\n"
|
"protected void initPage() {\n createContextMenus();\n treeViewer.setSorter(new ViewerSorter() {\n public int category(Object element) {\n if (element instanceof LibraryHandle) {\n return 1;\n }\n return super.category(element);\n }\n });\n treeV... |
"private String extractStachelhausSignature() {\n String s2 = extractCharacters(a_topline, a_downline, \"String_Node_Str\", new int[] { 9, 10, 13 });\n String s3 = extractCharacters(a_topline, a_downline, \"String_Node_Str\", new int[] { 4 });\n String s4 = extractCharacters(a_topline, a_downline, \"String_Nod... |
"public void onGetTopicListSucceed(List<Topic> topicList) {\n if (getContext() == null) {\n return;\n }\n mLoadable = topicList.isHasMore();\n mAdapter.setData(topicList.getTopics());\n}\n"
|
"private void _initSequencedActors(List<SequenceAttribute> independentList) {\n if (independentList != null) {\n Iterator sequenceAttributes = independentList.iterator();\n while (sequenceAttributes.hasNext()) {\n SequenceAttribute attribute = (SequenceAttribute) sequenceAttributes.next();\n... |
"private void startEIP() {\n activeGateway = selectGateway();\n Intent intent = new Intent(this, LaunchVPN.class);\n intent.setAction(Intent.ACTION_MAIN);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.putExtra(LaunchVPN.EXTRA_KEY, activeGateway.mVpnProfile.getUUID().toString());\n intent.... |
"public void guiTestSetValueAt_SortedList() {\n final EventList<JLabel> labels = new BasicEventList<JLabel>();\n labels.add(new JLabel(\"String_Node_Str\"));\n labels.add(new JLabel(\"String_Node_Str\"));\n labels.add(new JLabel(\"String_Node_Str\"));\n final ObservableElementList<JLabel> observedLabels ... |
"protected void handleEntryTag() {\n int iEntryId = 0;\n String sName = \"String_Node_Str\";\n String sType = \"String_Node_Str\";\n String sExternalLink = \"String_Node_Str\";\n String sReactionId = \"String_Node_Str\";\n for (int iAttributeIndex = 0; iAttributeIndex < attributes.getLength(); iAttrib... |
"private PositionStreamEvent nextStreamEvent(ReadFilter filter) throws IOException {\n while (!eof && !(streamEventBuffer.hasEvent() && acceptTimestamp(filter, timestamp))) {\n readDataBlock(filter);\n }\n if (eof) {\n return null;\n }\n PositionStreamEvent event = streamEventBuffer.nextEve... |
"private VariableFunction parse(ConfigurationSection input, String key, VariableFunction defaultValue, boolean throwException) throws Exception {\n String start = key + \"String_Node_Str\";\n String end = key + \"String_Node_Str\";\n Object root = input.get(key);\n SampleRange result = null;\n if (root i... |
"void readGroupsFromStream(InputStream inputStream) throws IOException {\n int size = IOUtil.readInt(inputStream);\n this.groups = new CachedList[size];\n for (int i = 0; i < size; i++) {\n List list = new CachedList(tempDir, DataEngineSession.getCurrentClassLoader(), GroupInfo.getCreator());\n ;... |
"protected Checkmark getNewestComputed() {\n if (list.isEmpty())\n return null;\n return list.getFirst();\n}\n"
|
"public void testMount() {\n MainTest.gameSample();\n State s = new State();\n Move m = new Mount(Position.at(1, 0, 1), Position.at(2, 2, 0));\n s = m.doMove(s);\n}\n"
|
"public static String bitcoinValueToFriendlyString(BigInteger value) {\n boolean negative = value.compareTo(BigInteger.ZERO) < 0;\n if (negative)\n value = value.negate();\n BigDecimal bd = new BigDecimal(value, 8);\n String formatted = bd.toPlainString();\n int toDelete = 0;\n for (int i = for... |
"private void prepareCurrentRow() throws DataException {\n clear();\n this.rdSaveHelper.doSaveBasic();\n if (needCache() && !this.isEmpty()) {\n bindingColumnsEvalUtil.getColumnsValue(boundColumnValueMap, true);\n try {\n saveCurrentRow();\n } catch (IOException e) {\n ... |
"public void testInsertsDeletesInterleaved() {\n root.insertAt(0, \"String_Node_Str\", REPLICA_ID);\n root.insertAt(1, \"String_Node_Str\", REPLICA_ID);\n root.insertAt(1, \"String_Node_Str\", REPLICA_ID);\n root.deleteAt(1);\n root.insertAt(1, \"String_Node_Str\");\n root.deleteAt(0);\n root.inser... |
"public void test() {\n ReadAllQuery readQuery = new ReadAllQuery(Employee.class);\n DatabaseCall call;\n SQLCall sqlCall;\n StoredProcedureCall spCall;\n boolean useInOut = getSession().getPlatform().isSybase();\n if (useCustomSQL) {\n String prefix;\n if (useInOut) {\n prefi... |
"public void setUp() throws Exception {\n final Context context = Robolectric.getShadowApplication().getApplicationContext();\n ConnectionParameter connParams = new ConnectionParameter(0, new Bundle(), null);\n mavlinkApi = new MockMavLinkServiceAPI();\n DroneInterfaces.Clock clock = new DroneInterfaces.Clo... |
"private String capitalize(String text) {\n boolean capitalizeNextChar = true;\n char[] array = text.toCharArray();\n int index = 0;\n while (index < array.length) {\n Character c = new Character(text.charAt(index));\n while (splitChar.contains(c)) {\n index++;\n if (inde... |
"public Object visitForeign(IForeignContent foreign, Object value) {\n if (IForeignContent.HTML_TYPE.equals(foreign.getRawType())) {\n HTML2Content.html2Content(foreign);\n executor = new DOMReportItemExecutor(foreign);\n executor.execute();\n return visitContent(foreign, value);\n }\n... |
"public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {\n if (evt instanceof IdleStateEvent) {\n IdleState e = ((IdleStateEvent) evt).state();\n if (e == IdleState.READER_IDLE) {\n LOG.info(\"String_Node_Str\", NettyUtils.clientID(ctx.channel()));\n ... |
"public long remainingCapacity() throws IOException {\n return Math.max(0, journalSize.get() - fileChannel.position());\n}\n"
|
"public void noInternetConnection() {\n if (_automaticallyConnecting) {\n if (_catcher != null && (_catcher.getNumHosts() < 50)) {\n _catcher.recoverHosts();\n }\n return;\n }\n if (SystemUtils.supportsIdleTime() && SystemUtils.getIdleTime() < 30 * 1000 && !QuestionsHandler.NO_I... |
"public void clean(boolean forRemove) throws StandardException {\n boolean gapClosed = false;\n try {\n if (_sequenceGenerator == null) {\n gapClosed = true;\n } else {\n gapClosed = updateCurrentValueOnDisk(null, peekAtCurrentValue());\n }\n } catch (StandardExceptio... |
"public void addDependency(SchemaId field) {\n RecordContext ctx = contexts.peek();\n try {\n if (!ctx.dep.vprops.isEmpty() || !ctx.dep.id.equals(recordId)) {\n dependencies.get(DerefMapUtil.newEntry(ctx.dep.id, ctx.dep.vprops)).add(field);\n }\n } catch (ExecutionException ee) {\n ... |
"public void after(Object target, Object[] args, Object result, Throwable throwable) {\n if (isDebug) {\n logger.afterInterceptor(target, args, result, throwable);\n }\n if (args.length != 4) {\n Object iprot = args[1];\n if (validateInputProtocol(iprot)) {\n ((ServerMarkerFlagF... |
"public boolean isDone() {\n synchronized (lock) {\n return done || canceled;\n }\n}\n"
|
"public void maximizeWindow() {\n mainStage.setMaximized(true);\n Rectangle dimensions = getDimensions();\n mainStage.setWidth(dimensions.getWidth());\n mainStage.setHeight(dimensions.getHeight());\n mainStage.setX(0);\n mainStage.setY(0);\n}\n"
|
"public String getTableName() {\n return this.getClass().getSimpleName().toLowerCase();\n}\n"
|
"private synchronized static ITmfTrace<LttngEvent>[] setupTrace(String path) {\n if (fTraces == null) {\n fTraces = new ITmfTrace[1];\n try {\n URL location = FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(), new Path(path), null);\n File testfile = new File(FileLocato... |
"public double getDoubleSetting(final String settingName) throws EoulsanException {\n if (settingName == null)\n throw new EoulsanException(\"String_Node_Str\");\n final String value = getSetting(settingName);\n if (value == null)\n throw new EoulsanException(\"String_Node_Str\" + settingName + \... |
"public void readValues(DataRead dr) throws BasicException {\n c_ID = dr.getString(1);\n}\n"
|
"public void process(CtStatement element) {\n if (!(element instanceof CtBlock || element instanceof CtClass || element instanceof CtMethod || element instanceof CtTry || element instanceof CtCatch) && ((element.getParent() instanceof CtBlock) || (element.getParent() instanceof CtCase) || (element.getParent() instan... |
"public void setCsrcList(long[] newCsrcList) {\n int newCsrcCount = newCsrcList.length;\n byte[] csrcBuff = new byte[newCsrcCount * 4];\n int csrcOffset = 0;\n for (long csrc : newCsrcList) {\n csrcBuff[csrcOffset] = (byte) (csrc >> 24);\n csrcBuff[csrcOffset + 1] = (byte) (csrc >> 16);\n ... |
"public void run() {\n if (Thread.currentThread().isInterrupted()) {\n return;\n }\n boolean transactionCommitted = false;\n final Exception[] exception = new Exception[1];\n final Realm bgRealm = Realm.getInstance(realmConfiguration);\n bgRealm.beginTransaction();\n try {\n transacti... |
"CommonDataSource createIfDataSourceDefinitionAvailable(TestedClass testedClass) {\n TestedClass testedClassWithDataSource = testedClass.parent;\n if (testedClassWithDataSource == null || dsName == null) {\n return null;\n }\n TestedClass testedClassToBeSearched = testedClass;\n do {\n crea... |
"public INDArray vectorAlongDimension(int index, int dimension) {\n if (dimension < 0)\n dimension = Shape.rank(shapeInformation) + dimension;\n if (dimension == Shape.rank(shapeInformation) - 1 && size(dimension) == 1 && rank() > 2 || rank() > 2 && dimension == 0 && size(dimension) == 1) {\n return... |
"public synchronized void drawPlot(Graphics graphics, boolean clearfirst) {\n if (_debug > 7)\n System.out.println(\"String_Node_Str\" + graphics);\n if (graphics == null) {\n System.out.println(\"String_Node_Str\" + \"String_Node_Str\");\n return;\n }\n Rectangle drawRect = bounds();\n... |
"public void testGetCerts() {\n consumerResource.bind(consumer.getUuid(), pool.getId(), null, null, 1, null, null);\n List<EntitlementCertificate> serials = consumerResource.getEntitlementCertificates(consumer.getUuid(), null);\n assertEquals(1, serials.size());\n}\n"
|
"private void handlePullRequestEvent(String payload) throws IOException {\n GitHub gitHub = createGitHub(payload);\n if (gitHub == null) {\n return;\n }\n GHEventPayload.PullRequest pullRequest = gitHub.parseEventPayload(new StringReader(payload), GHEventPayload.PullRequest.class);\n if (SUPPORTED... |
"public List<RepositoryFileDto> doGetGeneratedContentForSchedule(String lineageId) throws FileNotFoundException {\n return getFileService().searchGeneratedContent(getSessionResource().doGetCurrentUserDir(), lineageId, QuartzScheduler.RESERVEDMAPKEY_LINEAGE_ID);\n}\n"
|
"private boolean importExists(java.util.List imports, String schemaName) {\n for (int i = 0; i < imports.size(); i++) {\n Include nextImport = (Include) imports.get(i);\n if (nextImport.getSchemaLocation() != null && nextImport.getSchemaLocation().equals(schemaName)) {\n return true;\n ... |
"public Future<ConnectionState> connect() {\n Future<ConnectionState> retVal;\n connectionLock.lock();\n try {\n if (state == ConnectionState.Connected) {\n retVal = createInstantFuture(state);\n } else if (state == ConnectionState.Connecting) {\n retVal = hookIntoConnectThr... |
"Element getImageElement() {\n return statusImage.getElement();\n}\n"
|
"public BinRange[] getNormalizedRanges(final NumericData range) {\n final Calendar startEpoch = Calendar.getInstance(TimeZone.getTimeZone(timezone));\n final long binSizeMillis = getBinSizeMillis();\n startEpoch.setTimeInMillis((long) range.getMin());\n setToEpoch(startEpoch);\n final long startEpochMill... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.