content stringlengths 40 137k |
|---|
"public void testConcurrentAdd() throws Exception {\n int numThreads = 20;\n final Id.Artifact artifactId = Id.Artifact.from(Constants.DEFAULT_NAMESPACE_ID, \"String_Node_Str\", \"String_Node_Str\");\n final List<String> successfulWriters = Collections.synchronizedList(Lists.<String>newArrayList());\n final... |
"private <P, R> Response<R> sendRequestWebSocket(Request<P> request, Class<R> resultClass) throws IOException {\n Future<Response<JsonElement>> responseFuture = null;\n if (request.getId() != null) {\n responseFuture = pendingRequests.prepareResponse(request.getId());\n }\n try {\n synchronize... |
"protected void readField(int version, int filedId, DataInputStream in) throws IOException {\n switch(filedId) {\n case FIELD_NAME:\n name = IOUtil.readString(in);\n break;\n case FIELD_X:\n x = new DimensionType();\n x.readObject(in);\n break;\n ... |
"public String getStatus() {\n synchronized (this) {\n if (isRunning) {\n return String.format(STATUS_FORMAT, filesChecked, zombies.get(), d);\n } else {\n Date d = new Date(startTime);\n return String.format(STOPPED_FORMAT, DateFormat.getDateInstance().format(d));\n ... |
"public void doSchmownload() {\n System.out.println(\"String_Node_Str\");\n readHeader();\n try {\n if (_sizeOfFile != -1) {\n SettingsManager set = SettingsManager.instance();\n _downloadDir = set.getSaveDirectory();\n String pathname = _downloadDir + _filename;\n ... |
"public void CameraCheck() {\n float checkX = base.getCamera().getCenterX() - (base.getCameraWidth() / 2);\n float checkY = base.getCamera().getCenterY() - (base.getCameraHeight() / 2);\n if (checkX != 0.0f || checkY != 0.0f) {\n CameraShakeX = checkX;\n CameraShakeY = checkY;\n base.sCame... |
"private static Block readPattern(ByteReader reader, ModFormat format, Instrument[] ins) {\n if (reader.available() < 64 * format.tracks * 4)\n return null;\n Block block = new Block(64, tracks);\n for (int row = 0; row < 64; row++) {\n for (int track = 0; track < format.tracks; track++) {\n ... |
"public IValue withType(IType type, ITypeContext typeContext, MarkerList markers, IContext context) {\n if (this.valueCount > 0) {\n IValue typed = this.values[this.valueCount - 1].withType(type, typeContext, markers, new CombiningContext(this, context));\n if (typed != null) {\n this.values... |
"public void renderTileEntityAt(TileEntity te, double x, double y, double z, float par5) {\n TileEntityBloodAltarTier4 te4 = (TileEntityBloodAltarTier4) te;\n GL11.glPushMatrix();\n GL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F);\n bindTexture(texture);\n GL11.glPushMatrix();\n ... |
"public <SignatureType> ImmutableMap<SignatureType, ProvenancedConfusionMatrix<CellFiller>> breakdown(Function<? super CellFiller, SignatureType> signatureFunction) {\n final Map<SignatureType, Builder<CellFiller>> ret = Maps.newHashMap();\n for (final Symbol leftLabel : leftLabels()) {\n for (final Symbol... |
"public void runCreateReimbursementExport(Company company) {\n List<Reimbursement> reimbursementList = (List<Reimbursement>) Reimbursement.filter(\"String_Node_Str\", company).fetch();\n List<Partner> partnerList = (List<Partner>) Partner.filter(\"String_Node_Str\", company).fetch();\n int i = 0;\n for (Rei... |
"public void propertyChange(PropertyChangeEvent evt) {\n if (evt.getPropertyName().equals(\"String_Node_Str\")) {\n TableColumnModel tcm = hopsTable.getColumnModel();\n TableColumnModel tcmt = tblHopsTotals.getColumnModel();\n int colCount = tcm.getColumnCount();\n for (int i = 0; i < col... |
"public void testWrongPrice() throws Exception {\n String smsTpl = \"String_Node_Str\";\n String sms = \"String_Node_Str\";\n String[] matches = SmsTransactionProcessor.findTemplateMatches(smsTpl, sms);\n Assert.assertArrayEquals(new String[] { null, null, null, null, \"String_Node_Str\", null }, matches);\... |
"private void _refreshParameters() throws IllegalActionException, NameDuplicationException {\n Set parNames = new HashSet();\n if (_actor.getParameters() != null) {\n for (int i = 0; i < _actor.getParameters().length; i++) {\n String name = _actor.getParameters()[i].getName();\n if (t... |
"private List<Class<?>> getValidJPAAnnotationsFromMethod(Class<?> clazz, Method method, int numberOfParams) {\n List<Class<?>> annotations = new ArrayList<Class<?>>();\n for (Annotation methodAnnotation : method.getAnnotations()) {\n Class<?> methodAnnotationType = methodAnnotation.annotationType();\n ... |
"public boolean equals(Object obj) {\n if (obj instanceof Path) {\n Path other = (Path) obj;\n return Objects.equal(elements, other.elements);\n }\n return obj == null && isRoot();\n}\n"
|
"public void setupNavigationPane(final WebPage page, final XMLRolesReader xmlRolesReader, final String version) {\n page.add(new Label(\"String_Node_Str\", \"String_Node_Str\" + version + \"String_Node_Str\" + SyncopeSession.get().getCoreVersion()));\n BookmarkablePageLink schemaLink = new BookmarkablePageLink(\"... |
"public void invalidate() {\n invalidate(getPath());\n}\n"
|
"public void appendConditionToQuery(QueryBuilder queryBuilder) {\n int conditionListSize = conditionsList.size();\n if (useParenthesis && conditionListSize > 0) {\n queryBuilder.append(\"String_Node_Str\");\n }\n for (SQLCondition condition : conditionsList) {\n condition.appendConditionToQuer... |
"private void addCell(ByteBuffer rowKey, Map<String, ByteBuffer> pkNames, Map<String, List<Field>> primaryKeysVsFields, Map<String, Long> timestamps, Cell cell) {\n CellName cellName = cell.name();\n ColumnIdentifier cql3ColName = cellName.cql3ColumnName(tableMapper.cfMetaData);\n String actualColName = cql3Co... |
"public void setTimelineMouseListener1D(AxisMouseListener1D listener) {\n this.lock.lock();\n try {\n if (this.timelineMouseListener != null) {\n this.timeLayout.removeGlimpseMouseAllListener(this.timelineMouseListener);\n }\n this.timelineMouseListener = listener;\n if (thi... |
"private static boolean checkColumnRefInAggregation(CompiledExpression expr) {\n int type = expr.getType();\n switch(type) {\n case CompiledExpression.TYPE_DIRECT_COL_REF:\n case CompiledExpression.TYPE_CONSTANT_EXPR:\n case CompiledExpression.TYPE_INVALID_EXPR:\n return false;\n ... |
"public Node call() throws Exception {\n KubernetesAgent slave = null;\n final Map<String, String> properties = new HashMap<>();\n try {\n properties.put(AppInsightsConstants.AZURE_SUBSCRIPTION_ID, AzureCredentials.getServicePrincipal(azureCredentialsId).getSubscriptionId());\n properties.put(Con... |
"public boolean hasEnough(double amount) {\n return amount <= this.getBalance();\n}\n"
|
"static void showIncomingCallUi() {\n if (DBG)\n log(\"String_Node_Str\");\n PhoneApp app = PhoneApp.getInstance();\n try {\n ActivityManagerNative.getDefault().closeSystemDialogs(\"String_Node_Str\");\n } catch (RemoteException e) {\n }\n app.preventScreenOn(true);\n app.requestWakeS... |
"private Object getGenericRepositoryValue(GenericConnection connection, List<ComponentProperties> componentProperties, String value, IMetadataTable table) {\n if (componentProperties != null && value != null) {\n String seletetedMetadataTableName = getSeletetedMetadataTableName(table);\n for (Component... |
"private void writeUnlockMessageEventList() {\n database.store(allMessages);\n getWritableMessageEventList().getReadWriteLock().writeLock().unlock();\n}\n"
|
"private void scanForPages(SpecMapManager spm, String base, String folder) {\n for (File f : new File(folder).listFiles()) {\n if (f.isDirectory()) {\n scanForPages(spm, base, f.getAbsolutePath());\n } else if (f.getName().equals(\"String_Node_Str\")) {\n String s = folder.substri... |
"private synchronized Manager getManagerForDomain(String domainName) {\n if (managerCache.containsKey(domainName))\n return managerCache.get(domainName);\n final Object obj = lookup(federationDirectory, dottedToHierarchical(domainName) + \"String_Node_Str\", null);\n if (obj == null)\n return nul... |
"void initializePatterns(QrCode qr) {\n int N = qr.getNumberOfModules();\n int[] where = QrCode.VERSION_INFO[qr.version].alignment;\n qr.alignment.reset();\n lookup.reset();\n for (int row = 0; row < where.length; row++) {\n for (int col = 0; col < where.length; col++) {\n boolean skip ... |
"public void readImage(DirectBuffer memory, OnComplete onComplete) {\n new Thread(() -> {\n IntBuffer width = BufferUtils.createIntBuffer(1);\n IntBuffer height = BufferUtils.createIntBuffer(1);\n IntBuffer components = BufferUtils.createIntBuffer(1);\n ByteBuffer imageBuffer = stbi_load_... |
"public int getClassId() {\n return ClientPortableHook.AUTH;\n}\n"
|
"protected void propertyChange(Map info) {\n Set set = info.keySet();\n Iterator itor = set.iterator();\n while (itor.hasNext()) {\n Object obj = itor.next();\n if (ICrosstabReportItemConstants.MEASURE_DIRECTION_PROP.equals(obj) || ICrosstabReportItemConstants.PAGE_LAYOUT_PROP.equals(obj) || ILev... |
"public void run() {\n _mbwManager.setKeyManagementLocked(false);\n update();\n if (isAdded()) {\n getActivity().invalidateOptionsMenu();\n }\n}\n"
|
"public void activateBehavior(BehaviorState behaviorState) {\n if (active) {\n if (behaviorActive.get(behaviorState)) {\n behavior = behaviorState;\n myPet.sendMessageToOwner(MyPetBukkitUtil.setColors(MyPetLanguage.getString(\"String_Node_Str\")).replace(\"String_Node_Str\", myPet.petNam... |
"private void initEntityClass() {\n String[] fromArray = from.split(\"String_Node_Str\");\n if (fromArray.length != 2) {\n throw new PersistenceException(\"String_Node_Str\" + from);\n }\n StringTokenizer tokenizer = new StringTokenizer(getResult(), \"String_Node_Str\");\n while (tokenizer.hasMore... |
"public String getJsApiTicket() {\n long now = System.currentTimeMillis();\n if (now - this.jsTokenStartTime > 7100000) {\n getAccessToken();\n initJSToken(now);\n }\n return jsApiTicket;\n}\n"
|
"public void hideRecord(final NodeRef nodeRef) {\n ParameterCheck.mandatory(\"String_Node_Str\", nodeRef);\n authenticationUtil.runAsSystem(new RunAsWork<Void>() {\n\n public Void doWork() {\n NodeRef originatingLocation = (NodeRef) nodeService.getProperty(nodeRef, PROP_RECORD_ORIGINATING_LOCATI... |
"void smem_install_memory(IdentifierImpl state, long lti_id, IdentifierImpl lti, boolean activate_lti, List<SymbolTriple> meta_wmes, List<SymbolTriple> retrieval_wmes) throws SQLException {\n final SemanticMemoryStateInfo info = smem_info(state);\n final IdentifierImpl result_header = info.smem_result_header;\n ... |
"public void run(final CommandSender cs, String label, String[] args) {\n if (r.checkArgs(args, 0) == false) {\n r.sendMes(cs, \"String_Node_Str\");\n return;\n }\n OfflinePlayer t = r.searchOfflinePlayer(args[0]);\n if (t == null) {\n r.sendMes(cs, \"String_Node_Str\", \"String_Node_St... |
"private void updateIndices(int insertPosition, Property property) {\n int declaredSize = getDeclaredProperties().size();\n SDOProperty nextProp = null;\n for (int i = 0; i < declaredSize; i++) {\n nextProp = (SDOProperty) getDeclaredProperties().get(i);\n nextProp.setIndexInType(nextProp.getInde... |
"public void setEncoding(final String encoding) throws SecurityException, UnsupportedEncodingException {\n synchronized (outputLock) {\n super.setEncoding(encoding);\n if (this.outputStream != null) {\n final OutputStream outputStream = this.outputStream;\n updateWriter(outputStre... |
"public KeyVersion getKeyVersion(String versionName) throws IOException {\n KeyVersion version = null;\n return version;\n}\n"
|
"private List<XSDNode> getExpandedNodes(TreePath[] expandedElementPaths) {\n TreePath[] expandedPaths = removeInvalidTreePaths(expandedElementPaths);\n List<ExpandInfoNode> expanded = new ArrayList<ExpandInfoNode>();\n ExpandInfoNode rootNode = null;\n for (TreePath path : expandedPaths) {\n int segm... |
"public static void debugWhere(String tag, String msg) {\n Log.d(tag, msg + \"String_Node_Str\");\n StackTraceElement[] elements = Thread.currentThread().getStackTrace();\n for (int i = 3, n = elements.length; i < n; ++i) {\n StackTraceElement st = elements[i];\n String message = String.format(\"... |
"public Expression visitEnum_literal(JPQLSelectExpressionParser.Enum_literalContext ctx) {\n return new LiteralExpression(\"String_Node_Str\", ctx.path().accept(this).toString());\n}\n"
|
"public void execute(char[] characters, int length) {\n Set<Character> allSymbols = new HashSet<Character>();\n Map<Character, Integer> symbols = new HashMap<Character, Integer>();\n Map<Character, Integer> escape = new HashMap<Character, Integer>();\n List<Map<Character, Integer>> symbolsPerRow = new Array... |
"public Object exec(List list) throws TemplateModelException {\n if (list.size() < 1) {\n throw new TemplateModelException(\"String_Node_Str\");\n }\n String namespace = (String) new BeansWrapperBuilder(Configuration.getVersion()).build().unwrap((TemplateModel) list.get(0));\n String prefix = lookupP... |
"public void endOfGame(Result result) {\n PlayNetGamePanel.mIsRunning = false;\n if (mGame.getHistory().size() != 0) {\n PlayNetGamePanel.mNetMove = mGame.moveToFakeMove(mGame.getHistory().get(mGame.getHistory().size() - 1));\n } else if (result != Result.DRAW) {\n JOptionPane.showMessageDialog(n... |
"public String call() throws Exception {\n ObservableList<Node> children = getRealComponent().getChildrenUnmodifiable();\n ListCell text = null;\n for (Node node : children) {\n if (node instanceof ListCell) {\n text = (ListCell) node;\n }\n }\n return value.toString();\n}\n"
|
"public boolean visit(IResourceDelta delta) {\n final Collection<IEditorPart> openEditors = UiUtil.getEditorsForFile(file);\n if (openEditors.isEmpty())\n return false;\n if (!delta.getResource().equals(file))\n return true;\n Runnable runnable = null;\n if ((delta.getKind() & IResourceDelt... |
"protected void openFolderSelectionDialog(String projectName, String folderName) {\n final Class[] acceptedClasses = new Class[] { IProject.class, IFolder.class };\n IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();\n ArrayList rejectedElements = new ArrayList();\n if (projectName != null) {\n... |
"public void useConnection(final HttpURLConnection urlConnection) throws CommandException, IOException {\n String resultMediaType = urlConnection.getContentType();\n if (logger.isLoggable(Level.FINER)) {\n logger.log(Level.FINER, \"String_Node_Str\", resultMediaType);\n logger.log(Level.FINER, \"Str... |
"private void _init() throws IllegalActionException, NameDuplicationException {\n setClassName(\"String_Node_Str\");\n stateDependentCausality = new Parameter(this, \"String_Node_Str\");\n stateDependentCausality.setTypeEquals(BaseType.BOOLEAN);\n stateDependentCausality.setExpression(\"String_Node_Str\");\... |
"private static void addDoc(IndexWriter w, String value) throws IOException {\n Document doc = new Document();\n doc.add(new Field(\"String_Node_Str\", title, Field.Store.YES, Field.Index.ANALYZED));\n doc.add(new Field(\"String_Node_Str\", uid, Field.Store.YES, Field.Index.ANALYZED));\n doc.add(new Field(\... |
"private List getSubTotalInfo() {\n List retValue = new ArrayList();\n DimensionViewHandle viewHandle = getDimensionViewHandle();\n CrosstabReportItemHandle reportHandle = viewHandle.getCrosstab();\n int count = viewHandle.getLevelCount();\n int measureCount = reportHandle.getMeasureCount();\n LevelVi... |
"private long getWebTime() {\n NTPUDPClient client = new NTPUDPClient();\n try {\n client.open();\n } catch (SocketException e) {\n Log.error(e);\n return 0L;\n }\n for (int i = 0; i < urlList.size(); i++) {\n client.setDefaultTimeout(1000);\n try {\n InetAdd... |
"public void shouldMarshallDocumentUpdateCollection_withDocumentUpdateCollection() throws Exception {\n final String documentId1 = randomString(10);\n final DocumentUpdate documentUpdate1 = new DocumentUpdate(Type.ADD, documentId1);\n final String fieldName1a = randomString(10);\n final String fieldValue1a ... |
"public int priority() {\n return (overrides != null && overrides.containsKey(JavaEESecConstants.PRIORITY)) ? (Integer) overrides.get(JavaEESecConstants.PRIORITY) : 80;\n}\n"
|
"public void afterSubmit(ITask task) {\n try {\n ReviewData reviewData = ReviewsUiPlugin.getDataManager().getReviewData(task);\n Review review = reviewData.getReview();\n if (reviewData.isOutgoing() || reviewData.isDirty()) {\n TaskRepository taskRepository = TasksUiPlugin.getReposito... |
"protected void setIslandOwner(Island island, UUID newOwner) {\n if (ownershipMap.containsKey(newOwner)) {\n Island oldIsland = ownershipMap.get(newOwner);\n oldIsland.setOwner(null);\n ownershipMap.remove(newOwner);\n }\n if (newOwner != null && island != null) {\n UUID owner = isl... |
"public void afterPropertiesSet() throws Exception {\n Assert.notNull(name, \"String_Node_Str\");\n Assert.notNull(cacheManager, \"String_Node_Str\");\n resourceKeyTxnData = RESOURCE_KEY_TXN_DATA + \"String_Node_Str\" + name;\n logger = LogFactory.getLog(TransactionalCache.class.getName() + \"String_Node_St... |
"public void startCDATA() {\n if (null != xPathNode && xPathNode.getUnmarshalNodeValue() != null) {\n this.isBufferCDATA = true;\n }\n}\n"
|
"public void syncEntities() {\n for (Entity ent : getAll()) {\n if (ent.getChunk() == null) {\n continue;\n }\n if (ent.getId() == SpoutEntity.NOTSPAWNEDID) {\n continue;\n }\n }\n}\n"
|
"public void testRevealedOverrideJsType() {\n PlainParentType plainParentType = new PlainParentType();\n RevealedOverrideSubType revealedOverrideSubType = new RevealedOverrideSubType();\n assertFalse(hasField(plainParentType, \"String_Node_Str\"));\n assertTrue(hasField(revealedOverrideSubType, \"String_Nod... |
"public MeasureViewHandle insertMeasure(MeasureHandle measureHandle, int index) throws SemanticException {\n if (measureHandle != null && getMeasure(measureHandle.getQualifiedName()) != null) {\n logger.log(Level.SEVERE, MessageConstants.CROSSTAB_EXCEPTION_DUPLICATE_MEASURE, measureHandle.getQualifiedName());... |
"public HashMap getExpressions() {\n if (text == null) {\n return null;\n }\n if (exprs != null) {\n return exprs;\n }\n if (HTML_TEXT.equals(textType) || (AUTO_TEXT.equals(textType) && (text.substring(0, 6).equalsIgnoreCase(\"String_Node_Str\")))) {\n exprs = new HashMap();\n ... |
"public List<Artifact> getArtifactByChecksum(String checksum) throws Exception {\n List<Artifact> results = new ArrayList<Artifact>();\n ArtifactDAO artifactDAO = archivaDAO.getArtifactDAO();\n ArtifactsByChecksumConstraint constraint = new ArtifactsByChecksumConstraint(checksum);\n List<ArchivaArtifact> ar... |
"public void onResume() {\n super.onResume();\n if (mWasPaused) {\n AppLog.d(T.READER, \"String_Node_Str\");\n mWasPaused = false;\n refreshPosts(false);\n refreshTags();\n if (!isUpdating() && getPostListType() == ReaderPostListType.TAG_FOLLOWED && ReaderTagTable.shouldAutoUpda... |
"private boolean checkDoubleJump(Point check) {\n int checkX = (int) check.getX();\n int checkY = (int) check.getY();\n int thisCheck = boardState[checkX][checkY];\n for (int dX = -1; dX <= 1; dX++) {\n for (int dY = -1; dY <= 1; dY++) {\n if (dX != 0 && dY != 0) {\n Point m... |
"private void openSpecNode(IStructuredSelection structuredSel) {\n ISpecTestCasePO specTc = UINodeBP.getSpecTC(structuredSel);\n openEditorForSpecTC(specTc);\n InteractionEventDispatcher.getDefault().fireProgammableSelectionEvent(new StructuredSelection(specTc));\n}\n"
|
"protected static void addExpressionOperations(DocGenEnvironmentFactory envFactory) {\n List<Element> expressions = StereotypesHelper.getExtendedElements(Utils.getExpressionStereotype(Application.getInstance().getProject()));\n for (Element expression : expressions) {\n String name = Utils.getName(expressi... |
"protected void onPart(String channel, String sender, String login, String hostname) {\n if (logger.isDebugEnabled())\n logger.debug(\"String_Node_Str\" + channel + \"String_Node_Str\" + sender + \"String_Node_Str\" + login + \"String_Node_Str\" + hostname);\n ChatRoomIrcImpl chatRoom = (ChatRoomIrcImpl) i... |
"public void run() {\n try {\n boolean isToggled = prefs.getBoolean(Settings.TOGGLE_PREFERENCE, Settings.TOGGLE_DEFAULT);\n boolean smartNotification = prefs.getBoolean(Settings.SMART_NOTIFICATION_PREFERENCE, Settings.SMART_NOTIFICATION_DEFAULT);\n final ActivityManager activityManager = (Activi... |
"public Map<String, MediaType> getMimeMappings() {\n if (mappings == null) {\n mappings = new HashMap<String, MediaType>();\n mappings.put(\"String_Node_Str\", MediaType.APPLICATION_JSON_TYPE);\n mappings.put(\"String_Node_Str\", MediaType.TEXT_PLAIN_TYPE);\n mappings.put(\"String_Node_St... |
"private void fillDefaultsWhenHBaseVersionChanged() {\n if (isCreation && isNeedFillDefaults()) {\n String distribution = getConnection().getParameters().get(ConnParameterKeys.CONN_PARA_KEY_HBASE_DISTRIBUTION);\n String version = getConnection().getParameters().get(ConnParameterKeys.CONN_PARA_KEY_HBASE... |
"private Object getFullFolder(Project project, ERepositoryObjectType itemType, String path) throws PersistenceException {\n Object folder = getFolder(project, itemType);\n if (folder == null) {\n return null;\n }\n Object fullFolder;\n if (folder instanceof IFolder) {\n fullFolder = getFold... |
"private void getURLValueExpressions(List<String> expList, URLValue uv) {\n String sa = uv.getBaseUrl();\n try {\n ActionHandle handle = ModuleUtil.deserializeAction(sa);\n String exp;\n if (DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK.equals(handle.getLinkType())) {\n Expressi... |
"public void exportMoveLineTypeSelect1000(MoveLineReport moveLineReport) throws AxelorException, IOException {\n log.info(\"String_Node_Str\");\n List<String[]> allMoveLineData = new ArrayList<String[]>();\n Company company = moveLineReport.getCompany();\n String moveLineQueryStr = \"String_Node_Str\";\n ... |
"protected String createPathToDir(String dir) {\n StringBuilder res = new StringBuilder();\n String[] pathDirs = dir.split(Constants.REGEX_SLASH_CHARACTER);\n StringBuilder path = new StringBuilder();\n for (int i = 0; i < pathDirs.length - 1; i++) {\n if (!pathDirs[i].isEmpty()) {\n path ... |
"protected void startUp() throws Exception {\n LOG.info(\"String_Node_Str\");\n long interval = configuration.getLong(Constants.AppFabric.PROGRAM_RUNID_CORRECTOR_INTERVAL_SECONDS);\n if (interval <= 0) {\n LOG.debug(\"String_Node_Str\", interval);\n interval = 180L;\n }\n scheduledExecutorS... |
"public void execute() {\n if (targetEditPart == null) {\n return;\n }\n xmlMapData = getXmlMapData(targetEditPart.getModel());\n if (xmlMapData == null) {\n return;\n }\n if (newObjects instanceof TransferedObject) {\n TransferedObject tranceferedObj = (TransferedObject) newObjec... |
"public void testProgramStartStopStatus() throws Exception {\n HttpResponse response = deploy(WordCountApp.class, Constants.Gateway.API_VERSION_3_TOKEN, TEST_NAMESPACE1);\n Assert.assertEquals(200, response.getStatusLine().getStatusCode());\n Id.Flow wordcountFlow1 = Id.Flow.from(TEST_NAMESPACE1, WORDCOUNT_APP... |
"public void addExternalIds(StudyIdentifier studyId, List<String> externalIds) {\n checkNotNull(studyId);\n checkNotNull(externalIds);\n if (externalIds.size() > addLimit) {\n throw new BadRequestException(\"String_Node_Str\" + externalIds.size() + \"String_Node_Str\" + addLimit);\n }\n List<Dynam... |
"public void removeNode(IGridNode node, IGridHost machine) {\n if (machine instanceof IEnergyGridProvider)\n gproviders.remove(machine);\n GridNode gnode = (GridNode) node;\n drainPerTick -= gnode.previousDraw;\n if (machine instanceof IAEPowerStorage) {\n IAEPowerStorage ps = (IAEPowerStorage... |
"protected String[] doFindAdditionalTypesUsingRebinds(TreeLogger logger, CompilationUnitDeclaration cud) {\n Set dependentTypeNames = new HashSet();\n Map requestedTypes = new HashMap();\n FindDeferredBindingSitesVisitor v = new FindDeferredBindingSitesVisitor(requestedTypes);\n cud.traverse(v, cud.scope);\... |
"public void run() {\n ByteBufferCache cache = NIODispatcher.instance().getBufferCache();\n if (readIncoming != null)\n byteBufferCache.release(readIncoming);\n if (readOutgoing != null)\n cache.release(readOutgoing);\n if (writeOutgoing != null)\n cache.release(writeOutgoing);\n}\n"
|
"public void moveToDir(String fromFilePath, String toDirPath, boolean closeSession) {\n ChannelSftp sftp = null;\n FileInfo fileInfo = new FileInfo(fromFilePath, false, new java.util.Date().getTime(), -1);\n try {\n sftp = (closeSession) ? openConnectedChannel() : openConnectedChannel(CHANNEL_1);\n ... |
"private synchronized void doTaskOnce() {\n try {\n int taskResult = currentTask.doTask(currentCallSequence);\n currentCallSequence++;\n if (taskResult == Task.COMPLETE) {\n TaskContext completedContext = currentTaskContext;\n executeState = IDLE;\n currentTask =... |
"private List<IBinding> findSavedBinding(Iterator<IBinding> bindingIt) {\n List<IBinding> bindingList = new ArrayList<IBinding>();\n while (bindingIt.hasNext()) {\n IBinding binding = (IBinding) bindingIt.next();\n List<String> referencedBindings = new ArrayList<String>();\n try {\n ... |
"public IContent execute() {\n if (null == content) {\n return null;\n }\n childIterator = content.getChildren().iterator();\n if (cloneContent) {\n content = content.cloneContent(false);\n IReportItemExecutor parent = getParent();\n if (parent != null) {\n content.set... |
"public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, AbstractSession session, NamespaceResolver namespaceResolver) {\n Object objectValue = directMapping.getAttributeValueFromObject(object);\n return this.marshalSingleValue(xPathFragment, marshalRecord, object, objectVa... |
"protected Class<?> getClassByName(final String name) {\n Class<?> cached = classes.get(name);\n if (cached != null) {\n return cached;\n }\n for (String current : loaders.keySet()) {\n CommonClassLoader loader = loaders.get(current);\n try {\n Class<?> clazz = loader.findCla... |
"private void pvConfigureTitle(TextView titlev, YTPlayer.MPState from, YTPlayer.MPState to) {\n if (null == titlev)\n return;\n CharSequence videoTitle = \"String_Node_Str\";\n if (mMp.hasActiveVideo())\n videoTitle = mMp.getActiveVideo().title;\n switch(to) {\n case BUFFERING:\n ... |
"public static long getKeyDataStructureSize(int rlength, int flength, int qlength) {\n return (long) KeyValue.KEY_INFRASTRUCTURE_SIZE + rlength + flength + qlength;\n}\n"
|
"public void writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session, WriteType writeType) {\n XMLRecord record = (XMLRecord) row;\n XMLMarshaller marshaller = record.getMarshaller();\n Object attributeValue = getAttributeValueFromObject(object);\n ContainerPolicy cp = this.getCont... |
"public void testModelView() {\n TestModel2 testModel2 = new TestModel2();\n testModel2.order = 6;\n testModel2.name = \"String_Node_Str\";\n testModel2.save();\n testModel2 = new TestModel2();\n testModel2.order = 5;\n testModel2.name = \"String_Node_Str\";\n testModel2.save();\n List<TestMo... |
"void send(final String baseUri) {\n registerCallbacks(CALLBACKS);\n StringBuffer uri = new StringBuffer(baseUri);\n uri.append(baseUri.contains(\"String_Node_Str\") ? \"String_Node_Str\" : \"String_Node_Str\");\n String prefix = CALLBACKS_NAME + \"String_Node_Str\" + callbackId;\n uri.append(callbackPar... |
"public void postIteration(final MasterContext<LogisticRegressionParams, LogisticRegressionParams> context) {\n if (this.isDry) {\n return;\n }\n double currentError = ((modelConfig.getTrain().getValidSetRate() < EPSILON) ? context.getMasterResult().getTrainError() : context.getMasterResult().getTestErr... |
"public InputStream getInputStream(DownloadServlet.Context ctx) {\n ctx.setAttribute(DownloadServlet.EXTENSION, \"String_Node_Str\");\n HttpServletRequest request = (HttpServletRequest) ctx.getServletRequest();\n String lbName = request.getParameter(\"String_Node_Str\");\n String restUrl = request.getParame... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.