content stringlengths 40 137k |
|---|
"private static IndexMetaDataCache getIndexMetaData(RegionCoprocessorEnvironment env, Map<String, byte[]> attributes) throws IOException {\n if (attributes == null) {\n return IndexMetaDataCache.EMPTY_INDEX_META_DATA_CACHE;\n }\n byte[] uuid = attributes.get(PhoenixIndexCodec.INDEX_UUID);\n if (uuid ... |
"private void getHWExceptionRegisters(int verbosity) {\n if (processCodeLocations && thread.hardwareExceptionRegisters.inuse) {\n Address ip = thread.hardwareExceptionRegisters.ip;\n VM_CompiledMethod compiledMethod = VM_CompiledMethods.findMethodForInstruction(ip);\n if (VM.VerifyAssertions) {\... |
"public void doSessionCreated(final SessionManagementBean sessionBean) throws Exception {\n ServiceManagementBean serviceBean = sessionBean.getServiceManagementBean();\n if (serviceBean.areNotificationsEnabled()) {\n JSONObject sessionData = new JSONObject();\n IoSessionEx session = sessionBean.getS... |
"public boolean contains(JavaFXHierarchyContainer child) {\n List<JavaFXHierarchyContainer> children = getContainerList();\n for (JavaFXHierarchyContainer cont : children) {\n if (cont.equals(child)) {\n return true;\n }\n }\n return false;\n}\n"
|
"public String getInstallDir() {\n if (installDir != null)\n return installDir;\n String existingVal = getEntity().getAttribute(SoftwareProcess.INSTALL_DIR);\n if (Strings.isNonBlank(existingVal)) {\n installDir = existingVal;\n return installDir;\n }\n setInstallLabel();\n Maybe<... |
"protected int doCompare(Viewer v, Object e1, Object e2) {\n ILabelProvider labelProvider = (ILabelProvider) viewer.getLabelProvider(columnIndex);\n String t1 = labelProvider.getText(e1);\n String t2 = labelProvider.getText(e2);\n if (t1 == null)\n t1 = \"String_Node_Str\";\n if (t2 == null)\n ... |
"protected void drawSimpleLabels(Graphics2D g2, List keys, double totalValue, Rectangle2D plotArea, Rectangle2D pieArea, PiePlotState state) {\n Composite originalComposite = g2.getComposite();\n g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1.0f));\n Rectangle2D labelsArea = this.simpleL... |
"public byte[] getXAttr(long fileId, String uid, String key) throws DatabaseException {\n try {\n byte[] prefix = BabuDBStorageHelper.createXAttrPrefixKey(fileId, uid, key);\n it = database.prefixLookup(XATTRS_INDEX, prefix, null).get();\n while (it.hasNext()) {\n Entry<byte[], byte[]... |
"protected boolean canDrop(Object source) {\n if (source == null) {\n return false;\n }\n if (source instanceof StructuredSelection) {\n return canDrop(((StructuredSelection) source).toArray());\n }\n if (source instanceof Object[]) {\n Object[] array = (Object[]) source;\n if... |
"public boolean hasInvalidCharacters() {\n if (!ValueValidationUtil.isEmpty(value)) {\n Matcher matcher = VALID_CHARS.matcher(value);\n return !matcher.matches();\n }\n return true;\n}\n"
|
"private static boolean cacheMe(Class implClass) {\n if (cacheMeCache.containsKey(implClass)) {\n return ((Boolean) cacheMeCache.get(implClass)).booleanValue();\n else {\n boolean reusable = true;\n String key = REUSABLE_PREFIX + implClass.getName();\n if (ConfigurationManager.getPrope... |
"public static ThroughputBenchmark newInstance(final String URL, final int concurrency, final int timeInMinute, final int SQLType, final boolean isElasticsearchPrimitive) throws Exception {\n if (!isElasticsearchPrimitive) {\n return new CrabsThroughputBenchmark(URL, concurrency, timeInMinute, SQLType);\n ... |
"public static String maskPasswordsInDefinition(String definition) {\n Assert.hasText(definition, \"String_Node_Str\");\n final StringBuffer output = new StringBuffer();\n final Matcher matcher = passwordParameterPattern.matcher(definition);\n while (matcher.find()) {\n final String passwordValue = m... |
"public IDataSetResultSet loadDataSetData(IResultClass targetResultClass, IOrderedIntSet preFilteredRowIds, Map<String, StringTable> stringTableMap, Map index, boolean includeInnerID, Map appContext) throws DataException {\n boolean loadResultClass = false;\n if (targetResultClass == null) {\n targetResult... |
"private static List<SdlApp> findAllSdlApps(Context context) {\n List<SdlApp> apps = new ArrayList<SdlApp>();\n PackageManager packageManager = context.getPackageManager();\n Intent intent = new Intent();\n intent.setAction(TransportConstants.START_ROUTER_SERVICE_ACTION);\n List<ResolveInfo> infoList = p... |
"private void firebaseAuthWithFacebook(final AccessToken accessToken) {\n Log.d(TAG, \"String_Node_Str\");\n AuthCredential credential = FacebookAuthProvider.getCredential(accessToken.getToken());\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n Task<AuthResult> authResultTask;\n if (firebaseUser ... |
"public String getResponse(String request) throws IOException {\n String response = null;\n try {\n response = executeRequest(request);\n } catch (SocketTimeoutException e) {\n Log.w(\"String_Node_Str\", \"String_Node_Str\", e);\n Log.i(\"String_Node_Str\", \"String_Node_Str\");\n h... |
"void readFromParcelInner(Parcel parcel, int length) {\n int magic = parcel.readInt();\n if (magic != BUNDLE_MAGIC) {\n throw new IllegalStateException(\"String_Node_Str\" + Integer.toHexString(magic));\n }\n int offset = parcel.dataPosition();\n parcel.setDataPosition(offset + length);\n Parce... |
"public void processRender(UIWidget uiWidget, Writer w) throws Exception {\n PortalRequestContext pContext = Util.getPortalRequestContext();\n MVCRequestContext appReqContext = new MVCRequestContext(this, pContext);\n String instanceId = uiWidget.getApplicationInstanceUniqueId();\n String userName = pContex... |
"public boolean setDisplayGammaCalibration(int idx, int[] rgb) {\n try {\n if (checkService()) {\n return sService.setDisplayGammaCalibration(idx, rgb);\n }\n } catch (RemoteException e) {\n }\n return false;\n}\n"
|
"public void sendShowViewWithID(User touser, String id, String secID, Integer mode) {\n ID receiver = null;\n if (touser != null) {\n receiver = touser.getID();\n }\n try {\n final SharedObjectMsg m = SharedObjectMsg.createMsg(null, HANDLE_SHOW_VIEW_WITH_ID_MSG, getUser(), id, secID, mode);\n ... |
"public void refreshSources(String peerId) throws IOException {\n String terminateMessage = \"String_Node_Str\" + peerId + \"String_Node_Str\";\n ReplicationPeer peer = replicationPeers.getPeer(peerId);\n ReplicationSourceInterface src = createSource(peerId, peer);\n synchronized (this.latestPaths) {\n ... |
"public void performVerboseAction() {\n System.err.println(\"String_Node_Str\" + nEvaluated);\n System.err.println(\"String_Node_Str\" + nCreated);\n System.err.println(\"String_Node_Str\" + workList.size());\n if (MORE_VERBOSE) {\n if (!workList.isEmpty()) {\n AbstractStatement s = workLi... |
"private ValueLobDb createLob(InputStream in, int type) throws IOException {\n byte[] streamStoreId;\n try {\n streamStoreId = streamStore.put(in);\n } catch (Exception e) {\n throw DbException.convertToIOException(e);\n }\n long lobId = generateLobId();\n long length = streamStore.lengt... |
"public void createPartControl(Composite parent) {\n fParent = parent;\n fTitlePrefix = getTitle();\n TmfExperiment<ITmfEvent> experiment = (TmfExperiment<ITmfEvent>) TmfExperiment.getCurrentExperiment();\n if (experiment != null) {\n experimentSelected(new TmfExperimentSelectedSignal<TmfEvent>(this,... |
"public void init(WorkerContext<DTMasterParams, DTWorkerParams> context) {\n Properties props = context.getProps();\n try {\n SourceType sourceType = SourceType.valueOf(props.getProperty(CommonConstants.MODELSET_SOURCE_TYPE, SourceType.HDFS.toString()));\n this.modelConfig = CommonUtils.loadModelCon... |
"public ServiceInformations queryWSDLInterfaces(String search, String subProjectId, String visibility) throws Exception {\n CoreSession documentManager = SessionFactory.getSession(request);\n DocumentService documentService = Framework.getService(DocumentService.class);\n boolean searchParamIncluded = false;\n... |
"public void startupDefaultShell(PostStartup startup) throws Exception {\n if (!Boolean.getBoolean(\"String_Node_Str\")) {\n Settings settings = new SettingsBuilder().create();\n this.shell = shellFactory.createShell(OperatingSystemUtils.getWorkingDir(), settings);\n }\n}\n"
|
"public SopremoModule asElementaryOperators() {\n final SopremoModule sopremoModule = new SopremoModule(this.getName(), 1, 1);\n JsonStream input = sopremoModule.getInput(0);\n int itCount = this.numberOfPartitions;\n ExtractRelatingBlocks[] xBlocks = new ExtractRelatingBlocks[itCount];\n ExtractNonRelat... |
"protected InformationLossWithBound<InformationLossDefault> getInformationLossInternal(final Node node, final IHashGroupify g) {\n if (node.getLowerBound() != null) {\n return new InformationLossWithBound<InformationLossDefault>((InformationLossDefault) node.getLowerBound(), (InformationLossDefault) node.getL... |
"protected Node getTimeRoot() {\n if (timeTreeRoot != null) {\n return timeTreeRoot;\n }\n synchronized (this) {\n if (timeTreeRoot != null) {\n return timeTreeRoot;\n }\n Node result;\n Iterator<Node> nodeIterator = GlobalGraphOperations.at(database).getAllNodesWi... |
"private String createTimeInClause(Handle dbHandle, DateTime startTime, DateTime endTime, String tenantId, String metricName, Map<String, String> dimensions) {\n if (startTime == null) {\n return \"String_Node_Str\";\n }\n Set<byte[]> defDimIdSet = new HashSet<>();\n String namePart = \"String_Node_S... |
"public void run() {\n try {\n model.run();\n } catch (Exception e) {\n e.printStackTrace();\n }\n}\n"
|
"public boolean matches(ItemStack stack) {\n if (stacks.size() == 0 || !hasFilter()) {\n return true;\n }\n for (ItemStack s : stacks) {\n if (StackUtil.isMatchingItemOrList(s, stack)) {\n return true;\n }\n }\n return false;\n}\n"
|
"public void processVoiceChatMessage(WonderlandClientSender sender, WonderlandClientID clientID, VoiceChatMessage message) {\n String group = message.getGroup();\n if (message instanceof VoiceChatInfoRequestMessage) {\n sendVoiceChatInfo(sender, clientID, group);\n return;\n }\n if (message in... |
"private void verifyOwner(NamespacedEntityId entityId, KerberosPrincipalId specifiedOwnerPrincipal) throws DatasetManagementException, ConflictException {\n String ownerPrincipal;\n try {\n ownerPrincipal = ownerAdmin.getImpersonationPrincipal(entityId);\n if (!Objects.equals(ownerPrincipal, specifi... |
"public static void main(String[] args) {\n SimpleLayout layout = new SimpleLayout();\n ConsoleAppender consoleAppender = new ConsoleAppender(layout);\n Logger logger = Logger.getRootLogger();\n logger.removeAllAppenders();\n logger.addAppender(consoleAppender);\n logger.setLevel(Level.INFO);\n JUn... |
"public String getMavenUriSnapshot() {\n MavenArtifact artifact = null;\n if (getMavenUri() != null) {\n if (getMavenUri().split(MavenUrlHelper.SEPERATOR).length < 4 && getModuleName().lastIndexOf(\"String_Node_Str\") != -1) {\n String extension = getModuleName().substring(getModuleName().lastIn... |
"private void createButtonSection(Composite topComp) {\n Composite buttonsComp = masterPage.getEditor().getToolkit().createComposite(topComp, SWT.NONE);\n buttonsComp.setLayout(new GridLayout(3, true));\n buttonsComp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n GridData buttonGridData = new Grid... |
"public List<Fact> getAllFacts(String locationName) {\n List<Fact> facts = jdbcTemplate.query(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", new FactRowMapper(), locationName);\n return facts;\n}\n"
|
"private int getAccuracy(TypeConfidence confidence) {\n return (shouldAlwaysBeAccurate() || confidence == TypeConfidence.EXACT ? SearchMatch.A_ACCURATE : SearchMatch.A_INACCURATE);\n}\n"
|
"public void run() throws PersistenceException {\n try {\n for (String name : names) {\n String path = new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();\n path = path + File.separatorChar + projectLabel + File.separatorChar + ERepositoryObjectType.getFolderN... |
"public void write(ClassWriter writer) {\n String internalName = this.getInternalName();\n String signature = this.getSignature();\n String superClass = null;\n int interfaceCount = this.interfaces.size();\n String[] interfaces = new String[interfaceCount];\n if (this.superType != null) {\n sup... |
"private GL3Object buildLineGLO(GL3 gl, int pidx, int nidx, int cidx, int tidx, int oidx) {\n int nattribs = 0;\n if (pidx >= 0) {\n nattribs++;\n }\n if (nidx >= 0) {\n nattribs++;\n }\n if (cidx >= 0) {\n nattribs++;\n }\n if (tidx >= 0) {\n tidx++;\n }\n GL3V... |
"public void run() {\n device.clearCache();\n params.put(RCDevice.ParameterKeys.INTENT_INCOMING_CALL, new Intent(RCDevice.ACTION_INCOMING_CALL, null, InstrumentationRegistry.getTargetContext(), CallActivity.class));\n params.put(RCDevice.ParameterKeys.INTENT_INCOMING_MESSAGE, new Intent(RCDevice.ACTION_INCOMIN... |
"public void openColumnsSelectionDialog(TableViewer columnsElementViewer, List<RepositoryNode> columnsOfSectionPart, boolean isLeftPart) {\n RepositoryNode connNode = masterPage.getConnComboSelectNode();\n ColumnsSelectionDialog dialog = new ColumnsSelectionDialog(masterPage, null, DefaultMessagesImpl.getString(\... |
"public int getDistanceFrom(Member member) {\n if (member.localMember()) {\n return 0;\n }\n Integer distance = distances.get(member);\n if (distance != null) {\n return distance;\n }\n calculateDistances();\n Integer d = distances.get(member);\n return (d == null) ? -1 : d;\n}\n"
|
"public void testDefineDataSource() throws BirtException {\n ScriptExpression expr;\n IQueryDefinition queryDefn;\n expr = new ScriptExpression(\"String_Node_Str\");\n queryDefn = getScriptQueryDefn(expr);\n try {\n IPreparedQuery preparedQuery = myDataEngine.prepare(queryDefn);\n IQueryRes... |
"public void onSurfaceChanged(GL10 gl, int width, int height) {\n gl.glViewport(0, 0, width, height);\n mScreenWidth = width;\n mScreenHeight = height;\n float ratio = (float) width / height;\n mGame.updateScreenMeasures((2.0f * ratio) - WALL, 2.0f - WALL);\n gl.glMatrixMode(GL10.GL_PROJECTION);\n ... |
"public AccountHolder getAccountHolder(String uuidOrName) {\n OfflinePlayer player;\n try {\n UUID playerId = UUID.fromString(uuidOrName);\n player = Bukkit.getOfflinePlayer(playerId);\n } catch (IllegalArgumentException ignored) {\n for (OfflinePlayer p : Bukkit.getOfflinePlayers()) {\n ... |
"private Object doInvoke(InterpretContext ctx, FunctionInvoker fn, Object[] arguments) throws InterpretException {\n boolean useLatest = (fn != null);\n if (fn == null) {\n Class<?>[] argumentTypes = ParameterUtils.getParameterTypes(arguments);\n fn = ctx.getGlobalResolver().resolveFunction(name, ar... |
"protected Trace createTrace(Object target, Object[] args) {\n final HttpServletRequest request = (HttpServletRequest) args[0];\n final String requestURI = request.getRequestURI();\n if (excludeUrlFilter.filter(requestURI)) {\n if (isTrace) {\n logger.trace(\"String_Node_Str\", requestURI);\n... |
"public void testEdgeInputMap() throws Exception {\n final String INSTANCE_NAME = \"String_Node_Str\";\n final String TEST_TABLE_1 = \"String_Node_Str\";\n if (!System.getProperty(\"String_Node_Str\").startsWith(\"String_Node_Str\")) {\n Graph g = GraphFactory.open(new AccumuloGraphConfiguration().setIn... |
"private void appendMethodDeclaration(MethodModel method) {\n EnumSet<ElementModifier> modifiers = method.getModifiers();\n if (type.getKind() == ElementKind.INTERFACE) {\n modifiers.remove(ElementModifier.ABSTRACT);\n }\n appendModifiers(modifiers);\n append(\"String_Node_Str\");\n appendGener... |
"private AttributeType actionImportHierarchy(final String path, final char separator) {\n try {\n return Hierarchy.create(path, separator);\n } catch (Throwable error) {\n if (error instanceof RuntimeException) {\n if (error.getCause() != null) {\n error = error.getCause();... |
"public static short[] deserializeShort(List<MPIBuffer> buffers, int byteLength) {\n int noOfDoubles = byteLength / 2;\n short[] returnDoubles = new short[noOfDoubles];\n int bufferIndex = 0;\n for (int i = 0; i < noOfDoubles; i++) {\n ByteBuffer byteBuffer = buffers.get(bufferIndex).getByteBuffer();... |
"private void dispatchEventToButtons(MouseEvent event) {\n TreePath mousePath = getPathForLocation(event.getX(), event.getY());\n if (mousePath == null)\n return;\n ContactListTreeCellRenderer renderer = (ContactListTreeCellRenderer) getCellRenderer().getTreeCellRendererComponent(this, mousePath.getLast... |
"public static final Interpreter newInterpreter(String zslang, Page owner) {\n if (zslang == null || zslang.length() == 0 || owner == null)\n throw new IllegalArgumentException(\"String_Node_Str\");\n final String zsl = zslang.toLowerCase(java.util.Locale.ENGLISH);\n final Object clsnm;\n synchronize... |
"public static String getHive2StandaloneURLString(DatabaseConnection dbConn, boolean supportContext) {\n String s = EDatabaseConnTemplate.HIVE.getUrlTemplate(EDatabaseVersion4Drivers.HIVE_2_STANDALONE);\n return getHiveStandaloneURlString(s, supportContext, server, port, sid);\n}\n"
|
"public static Data createProjection(final DataMatrix data, final String[] header, final int[] columns, final Dictionary dictionary) {\n if (columns.length == 0) {\n return new Data(null, new String[0], new int[0], new Dictionary(0));\n }\n DataMatrix matrix = new DataMatrix(data.getNumRows(), columns.l... |
"public void modifyText(final ModifyEvent e) {\n if (!isContextMode()) {\n getConnection().setFormat(FileFormat.getByName(fileFormatCombo.getText()));\n if (getConnection().getRowSeparatorType() == RowSeparator.STANDART_EOL_LITERAL) {\n if (getConnection().getFormat().toString().equals(FileF... |
"public void resetHandlers() {\n LowerPriorityTestResponseExceptionMapper.reset();\n getWireMockServer().stubFor(get(urlEqualTo(\"String_Node_Str\")).willReturn(aResponse().withStatus(STATUS).withBody(BODY)));\n}\n"
|
"public void testNotAvailableAfterTryingToConnect() throws Exception {\n TestUtils.showMessageDialog(\"String_Node_Str\");\n assertEquals(Connector.Status.NOT_AVAILABLE, WindowsConnector.getInstance().connect());\n final boolean[] available = new boolean[1];\n ConnectorListener listener = new AbstractConnec... |
"public void soundLevelChanged(SoundLevelChangeEvent evt) {\n Object evtSource = evt.getSource();\n if (evtSource.equals(callPeer)) {\n updateSoundBar(evt.getLevel());\n}\n"
|
"private List<String> getCandidateURIsSortedBySimilarity(Slot slot) {\n logger.info(\"String_Node_Str\" + slot.getWords() + \"String_Node_Str\");\n mon.start();\n List<String> sortedURIs = new ArrayList<String>();\n SolrSearch index = getIndexBySlotType(slot);\n Map<String, SolrQueryResultSet> uriCache =... |
"private static boolean isAllowedToNotReturn(Scope methodScope) {\n Node fn = methodScope.getRoot();\n if (fn.isFromExterns()) {\n return true;\n }\n if (!NodeUtil.isPrototypeMethod(fn)) {\n return false;\n }\n JSType maybeInterface;\n Node ntQnameNode = NodeUtil.getPrototypeClassName... |
"private static Set<Integer> checkPropertyStore(String storeName, Set<Integer> propertyIndex) throws IOException {\n File propStore = new File(storeName);\n if (!propStore.exists()) {\n throw new IOException(\"String_Node_Str\" + storeName);\n }\n File idGenerator = new File(storeName + \"String_Node... |
"public static List<Object> getChildFromTXT(String folderPath) {\n List<Object> ls = new ArrayList<Object>();\n try {\n IPath iPath = null;\n IFile file = null;\n IFolder folder = null;\n HashSet<String> set = new HashSet<String>();\n DQRecycleBinNode rbn = null;\n for (S... |
"static String populateProjectData(NewModuleProjectData data, String paths, boolean assignValues) {\n if (data.getProjectName() != null && data.getCodeNameBase() != null && assignValues) {\n return null;\n }\n String wrongOnes = null;\n StringTokenizer tokens = new StringTokenizer(paths, File.pathSep... |
"public void join(UUID userId) {\n UUID playerId = userPlayerMap.get(userId);\n GameSession gameSession = new GameSession(game, userId, playerId, useTimeout);\n gameSessions.put(playerId, gameSession);\n User user = UserManager.getInstance().getUser(userId);\n if (userId == null || playerId == null) {\n ... |
"public boolean replace(Data key, Object oldValue, Object newValue, ExpiryPolicy expiryPolicy, String source, int completionId) {\n expiryPolicy = getExpiryPolicy(expiryPolicy);\n final long now = Clock.currentTimeMillis();\n final long start = isStatisticsEnabled() ? System.nanoTime() : 0;\n boolean isHit ... |
"public Map<String, String> getSystemTagsAsString() {\n return Maps.transformValues(getSystemTagsMap(), SystemTag::getValue);\n}\n"
|
"public void testCompilesTestSourcesIntoDynamicLibrary() throws Exception {\n if (OS.getCurrent() == OS.WINDOWS) {\n return;\n }\n scratch.file(\"String_Node_Str\", \"String_Node_Str\");\n useConfiguration(\"String_Node_Str\", \"String_Node_Str\");\n ConfiguredTarget configuredTarget = getConfigur... |
"public void testGetRefreshedDataProvider() throws SQLException {\n DatabaseConnection dbProvider = ConnectionFactory.eINSTANCE.createDatabaseConnection();\n setJDBCMysqlConnection(dbProvider);\n List<Catalog> catalogPackageFilter = new ArrayList<Catalog>();\n List<orgomg.cwm.objectmodel.core.Package> schem... |
"public <T extends TokenObject> List<List<List<AnnotationObject>>> predictSentences(List<List<T>> inputData) {\n List<List<List<AnnotationObject>>> result = new ArrayList<>();\n for (List<T> sentence : inputData) {\n List<List<AnnotationObject>> annotatedSentence = new ArrayList<>();\n int sentenceI... |
"public void testFilter1Cache() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnE... |
"protected String buildDrillAction(IAction action, IReportContext context) {\n if (action == null || context == null)\n return null;\n String baseURL = null;\n Object renderContext = getRenderContext(context);\n if (renderContext instanceof HTMLRenderContext) {\n baseURL = ((HTMLRenderContext)... |
"public List<TargetType> getPossibleTargets() {\n List<PathPosition> positions = pathPositions;\n int size = positions.size();\n if (size == 1 && positions.get(0).getMethod() == null && managedType.getJavaType().equals(positions.get(0).getRealCurrentClass())) {\n return Collections.emptyList();\n }\n... |
"public static void main(String[] args) throws Exception {\n DebugClient.disableReadTimeoutHandler(IdleStateHandler.class);\n Main.main(args);\n}\n"
|
"void open() throws IOException {\n try {\n this.outputStream = new FSDataOutputStream(location.getOutputStream(), null);\n this.dataFileWriter = new DataFileWriter<>(new GenericDatumWriter<GenericRecord>(schema));\n this.dataFileWriter.create(schema, this.outputStream);\n this.dataFileWr... |
"private boolean checkAnyRunning(Predicate<Id.Program> predicate, ProgramType... types) {\n for (ProgramType type : types) {\n for (Map.Entry<RunId, ProgramRuntimeService.RuntimeInfo> entry : runtimeService.list(type).entrySet()) {\n ProgramController.State programState = entry.getValue().getContro... |
"private boolean rewritePacket(StreamRTPManagerDesc streamRTPManager, boolean write, boolean rewrite, byte[] buf, int off, int len) {\n if (_data) {\n Long ssrc = RawPacket.getSSRCAsLong(buf, off, len);\n ResumableStreamRewriter rewriter = streamRTPManager.streamRTPManager.getResumableStreamRewriter(ss... |
"public String execute(ClusterServicePdu pdu) throws RemoteException {\n HttpClient client = getHttpClient();\n PostMethod method = new PostMethod(_serviceUrl);\n method.addParameter(\"String_Node_Str\", Integer.toString(RemoteMethodConstants.METHOD_DELIVER_PDU));\n method.addParameter(\"String_Node_Str\", ... |
"public void testImport_SC() throws IOException, URISyntaxException {\n URL itemUrl = QTIImportProcessorTest.class.getResource(\"String_Node_Str\");\n Assert.assertNotNull(itemUrl);\n File itemFile = new File(itemUrl.toURI());\n QTIImportProcessor proc = new QTIImportProcessor(owner, Locale.ENGLISH, itemFil... |
"public static void main(String[] args) throws Exception {\n Arguments arguments = new Arguments(args);\n List<String> errors = new ArrayList<String>();\n if (arguments.exists(\"String_Node_Str\", \"String_Node_Str\")) {\n System.out.println(\"String_Node_Str\");\n System.out.println(\"String_Nod... |
"public void addDownload(String streamId) throws RobonoboException {\n File dataFile = new File(downloadsDir, makeFileNameSafe(streamId));\n log.info(\"String_Node_Str\" + streamId);\n Stream s = streams.getKnownStream(streamId);\n DownloadingTrack d = new DownloadingTrack(s, dataFile, DownloadStatus.Paused... |
"public final void movableEntered(ShortPoint2D position, NewMovable movable, boolean informFullArea) {\n short x = position.getX();\n short y = position.getY();\n int idx = getIdx(x, y);\n if (idx < 0) {\n System.out.println(\"String_Node_Str\");\n }\n this.movableGrid[idx] = movable;\n if (... |
"private Component createButton(Element aTag) throws Exception {\n final TextButton component = new TextButton() {\n protected void onRedraw() {\n super.onRedraw();\n ControlsUtils.reapplyStyle(this);\n }\n };\n processEvents(component, aTag);\n Publisher.publish(componen... |
"public String getWisemlfilename() {\n return wisemlFilename;\n}\n"
|
"public float getMaxV() {\n return v + (vScale * h / ih);\n}\n"
|
"public Object visitCell(CellDesign cell, Object value) {\n BaseQueryDefinition query = createQuery(cell, value);\n for (int i = 0; i < cell.getContentCount(); i++) {\n build(query, cell.getContent(i));\n }\n finishVisit(cell, query);\n return getResultQuery(query, value);\n}\n"
|
"public AREA_CODE[] getAreaCode() {\n return (areaCode == null) ? null : Arrays.copyOf(areaCode, areaCode.length);\n}\n"
|
"protected static RoaringBitmap lazyorfromlazyinputs(final RoaringBitmap x1, final RoaringBitmap x2) {\n final RoaringBitmap answer = new RoaringBitmap();\n int pos1 = 0, pos2 = 0;\n final int length1 = x1.highLowContainer.size(), length2 = x2.highLowContainer.size();\n main: if (pos1 < length1 && pos2 < le... |
"public JsonValue convertToJson(RedirectCallback callback, int index) throws RestAuthException {\n JsonValue callbacksJson = json(array(createOutputField(\"String_Node_Str\", callback.getRedirectUrl()), createOutputField(\"String_Node_Str\", callback.getMethod()), createOutputField(\"String_Node_Str\", callback.getT... |
"public String toString() {\n String result = new String(getBytes(), StandardCharsets.US_ASCII);\n if (result.indexOf(NUL) != -1) {\n result = result.substring(0, result.indexOf(NUL));\n }\n return result;\n}\n"
|
"public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage, String filePath) {\n try {\n Debug.dLog(\"String_Node_Str\" + filePath);\n layout.setBackgroundDrawable(new BitmapDrawable(loadedImage));\n layout.postInvalidate();\n } catch (Exception e) {\n Debug.dLog(e);... |
"public String create(GuacamoleConfiguration config) throws GuacamoleException {\n String connectionId = Integer.toString(getNextConnectionID());\n String name = QCParser.getName(config);\n Connection connection = new SimpleConnection(name, connectionId, config);\n connection.setParentIdentifier(QuickConnec... |
"public void attributesChanged(AttributeEvent event) {\n if (event.getEventType().equals(AttributeEvent.EventType.ADD_COLUMN) || event.getEventType().equals(AttributeEvent.EventType.REMOVE_COLUMN)) {\n if (refreshTimer != null) {\n refreshTimer.restart();\n } else {\n refreshTimer... |
"public void close(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {\n BytesMetrics metrics = ctx.attr(ATTR_KEY_METRICS).get();\n m_collector.sumReadBytes(metrics.readBytes());\n m_collector.sumWroteBytes(metrics.wroteBytes());\n super.close(ctx, promise);\n}\n"
|
"public boolean hasDataLeft() {\n if (this.closeAcknowledgementReceived) {\n return false;\n }\n if ((this.lastSequenceNumberWithReceiverNotFound + 1) == this.sequenceNumber) {\n return false;\n }\n return true;\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.