content stringlengths 40 137k |
|---|
"public void run() {\n try {\n super.run();\n ISelection selection = view.getViewer().getSelection();\n TreeObject xobject = (TreeObject) ((IStructuredSelection) selection).getFirstElement();\n xobject = LocalTreeObjectRepository.getInstance().registerNewTreeObject(xobject);\n Tree... |
"public boolean onMessage(int source, int destination, int target, int flags, Object object) {\n TaskMessage msg = new TaskMessage(object, edge.getStringMapping(communicationEdge), target);\n LOG.info(\"String_Node_Str\" + object.getClass().getName());\n boolean status = outMessages.get(target).offer(msg);\n ... |
"public String getId() {\n for (Entry<ResourceLocation, net.minecraft.enchantment.Enchantment> entry : field_180307_E.entrySet()) {\n if (entry.getValue().equals(this)) {\n return entry.getKey().toString();\n }\n }\n return null;\n}\n"
|
"public Node createNode(String label, String id) {\n Graph graph = getGraph();\n if (graph.getNode(id) == null) {\n Node newNode = buildNode(label, id);\n graph.addNode(newNode);\n return newNode;\n } else {\n return null;\n}\n"
|
"void OnLocationChanged(Location loc) {\n if (!Session.isStarted()) {\n Utilities.LogDebug(\"String_Node_Str\");\n StopLogging();\n return;\n }\n Utilities.LogDebug(\"String_Node_Str\");\n long currentTimeStamp = System.currentTimeMillis();\n if ((currentTimeStamp - Session.getLatest... |
"private boolean mayWarnAboutInexistentProp(Node propAccessNode, JSType recvType, QualifiedName propQname) {\n Preconditions.checkState(propAccessNode.isGetProp() || propAccessNode.isGetElem());\n String pname = propQname.toString();\n if (propAccessNode.isGetElem() || (!recvType.isLoose() && recvType.hasProp(... |
"private void updateRepos() {\n updateHandler = UpdateService.updateNow(getActivity()).setListener(new ProgressListener() {\n\n public void onProgress(Event event) {\n if (event.type.equals(UpdateService.EVENT_COMPLETE_AND_SAME) || event.type.equals(UpdateService.EVENT_COMPLETE_WITH_CHANGES)) {\n ... |
"private void addConsumerFoundInInjectedMember(List<JavaServiceConsumptionInformation> discoveredConsumptions, AbstractJavaEntity injectedMember, Type injectedType, String beanPropertyName, HashSet<String> injectedBeanProperties, Map<String, JavaServiceInterfaceInformation> serviceInterfaces, MavenDeliverable mavenDeli... |
"protected void launchRemotely() {\n IRemoteServices remoteServices = RemoteServices.getRemoteServices(\"String_Node_Str\");\n IRemoteConnection connection = null;\n String remoteDownloadDirectory = execDictionary.get(\"String_Node_Str\");\n String separator = System.getProperty(\"String_Node_Str\");\n S... |
"public String cast(Calendar src, Class<?> toType, String... args) {\n return ((DateFormat) dateTimeFormat.clone()).format(src.getTime());\n}\n"
|
"private void setCollectionType(Argument arg, Attributes attributes) {\n String type = attributes.getValue(\"String_Node_Str\");\n if (type != null && type.trim().length() > 0) {\n try {\n CollectionType cType = CollectionType.valueOf(type.replaceAll(\"String_Node_Str\", \"String_Node_Str\").toU... |
"public final ALayoutRenderer createRemoteView(AGLView remoteRenderingView, List<TablePerspective> tablePerspectives, String embeddingEventSpace) {\n GLElement elem = create(remoteRenderingView, tablePerspectives, embeddingEventSpace);\n if (elem == null)\n return null;\n return new LayoutRendererAdapte... |
"private ArrayList<ModelTransformationMatrix> getBioUnitTransformationsListUnaryOperators() {\n ArrayList<ModelTransformationMatrix> transformations = new ArrayList<ModelTransformationMatrix>();\n for (PdbxStructAssemblyGen psag : psags) {\n if (psag.getAssembly_id().equals(assemblyId)) {\n oper... |
"public synchronized void updateTimeRange(long newDuration) {\n if (fTrace != null) {\n long delta = newDuration - fWindowSpan;\n long newStartTime = fWindowStartTime - (delta / 2);\n setNewRange(newStartTime, newDuration);\n }\n}\n"
|
"protected List<ITestResultSummaryPO> getPendingSummaries() {\n final List<ITestResultSummaryPO> pendingSummaries = new LinkedList<ITestResultSummaryPO>();\n Iterator<Object> iterator = getSelection().iterator();\n while (iterator.hasNext()) {\n Object o = iterator.next();\n if (o instanceof ITes... |
"private void beforeValue(boolean root) throws IOException {\n switch(peek()) {\n case EMPTY_DOCUMENT:\n if (!lenient && !root) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n replaceTop(JsonScope.NONEMPTY_DOCUMENT);\n break;\n ... |
"public void render(GL2 gl) {\n super.render(gl);\n PixelGLConverter pixelGLConverter = manager.getParentGLCanvas().getPixelGLConverter();\n float ySpacing = pixelGLConverter.getGLHeightForPixelHeight(Y_SPACING_PIXEL);\n float xSpacing = pixelGLConverter.getGLWidthForPixelWidth(X_SPACING_PIXEL);\n manage... |
"public String toString() {\n return Objects.toStringHelper(this).add(\"String_Node_Str\", super.toString()).add(\"String_Node_Str\", queueState).toString();\n}\n"
|
"public String getDestDisplayData() throws OseeCoreException {\n String displayValue = isWordAttribute() ? STREAM_DATA : getDestObject() == null ? \"String_Node_Str\" : getDestObject().toString();\n try {\n getDestAttribute();\n } catch (AttributeDoesNotExist ex) {\n displayValue = \"String_Node_... |
"private File getTmpMetadataFile() {\n return new File(getTmpMetadataDir(), MetadataFileWriter.getMetadataArchiveFileName(Long.toString(jobId), harvestId));\n}\n"
|
"public void runService() {\n try {\n ((ArrayList<BruteForce>) ((ArrayList) vHackOSBot.api.getTaskManager().getActiveBrutes()).clone()).forEach(bruteForce -> {\n if (cache.asMap().containsKey(bruteForce.getIp()))\n return;\n if (bruteForce.getState() == BruteForceState.SUC... |
"public void call(Object... args) {\n System.out.println(\"String_Node_Str\" + args);\n events.offer(args);\n}\n"
|
"private static void updateParent(IndexService index, ModelService model, String aipId, String newParentId, Optional<String> searchScope) throws GenericException, AuthorizationDeniedException, RequestNotValidException {\n Filter parentFilter = new Filter(new SimpleFilterParameter(RodaConstants.AIP_PARENT_ID, aipId))... |
"private Object doQuery(SessionImplementor session, Serializable id, Type identifierType, Object optionalObject, String optionalEntityName, Serializable optionalId, LockOptions lockOptions, boolean returnProxies) {\n int entitySpan = entityPersisters.length;\n final List<Object> hydratedObjects = entitySpan == 0 ... |
"public Object answer(InvocationOnMock invocation) throws Throwable {\n OutputStream os = (OutputStream) invocation.getArguments()[1];\n Writer writer = new OutputStreamWriter(os);\n XMLTransferDestinationReportWriter reportWriter = new XMLTransferDestinationReportWriter();\n reportWriter.startTransferRepor... |
"private void setBackgroundCompat(Drawable drawable) {\n if (Build.VERSION.SDK_INT >= 16) {\n setBackground(drawable);\n } else {\n setBackgroundDrawable(drawable);\n }\n}\n"
|
"public void done(List<AVIMMessage> list, AVIMException e) {\n if (filterException(e)) {\n if (mLayout.getChatLt() != null) {\n mLayout.getChatLt().clear();\n mLayout.pushMessagesAndRefreshToBottom(IMessageWrap.buildFrom(list, false));\n }\n });\n Syn... |
"public void testAppWithServices() throws Exception {\n ApplicationManager applicationManager = deployApplication(AppWithServices.class);\n try {\n LOG.info(\"String_Node_Str\");\n ServiceManager serviceManager = applicationManager.startService(AppWithServices.SERVICE_NAME);\n serviceStatusCh... |
"public void onChooseAccountDialogResult(int resultCode, Intent intent) {\n if (resultCode == Activity.RESULT_OK) {\n Log.d(\"String_Node_Str\", \"String_Node_Str\");\n if (intent.hasExtra(ChooseAccountFragment.EXTRAS_ACCOUNT_KEYS)) {\n ArrayList<String> siteKeys = intent.getStringArrayListE... |
"public void setup() {\n Assume.assumeTrue(SystemUtils.IS_OS_UNIX);\n this.jobSearchService = Mockito.mock(JobSearchService.class);\n this.executor = Mockito.mock(Executor.class);\n this.service = new LocalJobKillServiceImpl(HOSTNAME, this.jobSearchService, this.executor, false);\n this.killCommand = new... |
"public TableInfo getTableInfo(String database, String table) throws ExploreException, TableNotFoundException {\n HttpResponse response = doGet(String.format(\"String_Node_Str\", database, table));\n if (response.getResponseCode() == HttpURLConnection.HTTP_OK) {\n return parseJson(response, TableInfo.class... |
"public DataAccess overrideEntity(DataAccess data) {\n InfoAccess info = new InfoAccess(data.world, data.player, data.entity, data.tag);\n if (info.entity != null)\n for (InfoProvider provider : Wawla.entityProviders) if (provider.requireEntityOverride(info))\n info = provider.overrideTile(info)... |
"public boolean adjustSegmentationStateToData(Instances data) {\n boolean featuresChanged = false;\n Enumeration<Attribute> attributes = data.enumerateAttributes();\n final int numFeatures = FeatureStack.availableFeatures.length;\n boolean[] usedFeatures = new boolean[numFeatures];\n this.featureNames = ... |
"public boolean run(VerbRunner cb) {\n Scene ts = null;\n if (scene == null)\n ts = World.getInstance().getCurrentScene();\n else\n ts = World.getInstance().getScene(scene);\n BaseActor a;\n if (actor != null) {\n a = World.getInstance().getInventory().get(actor);\n if (a == n... |
"public static char[] readURLAsChars(URL url) {\n byte[] bytes = readURLAsBytes(url);\n if (bytes != null) {\n return toString(bytes, DEFAULT_ENCODING).toCharArray();\n }\n}\n"
|
"public boolean isEditable() {\n if (((ReportItemHandle) DEUtil.getInputFirstElement(getInput())).getCube() != null) {\n return true;\n }\n return false;\n}\n"
|
"public LastComposedWord commitWord(final int type, final String committedWord, final String separatorString, final String prevWord) {\n final int[] primaryKeyCodes = mPrimaryKeyCodes;\n mPrimaryKeyCodes = new int[MAX_WORD_LENGTH];\n final LastComposedWord lastComposedWord = new LastComposedWord(primaryKeyCode... |
"private boolean reserveStandbyCapacity() {\n ConsoleProxyManagementState state = getManagementState();\n if (state == null || state != ConsoleProxyManagementState.Auto) {\n return false;\n return true;\n}\n"
|
"public Object handle(InvocationContext ctx) {\n Session session = null;\n try {\n Class<?> declaringClass = ctx.getMethod().getDeclaringClass();\n Method method = ctx.getMethod();\n Object[] params = ctx.getParameters();\n JcrConfiguration sessionConfig = declaringClass.getAnnotation(... |
"public String getLogContent(String containerName, int tailLineCount) {\n return this.manager().containerGroups().getLogContent(this.resourceGroupName(), this.name(), containerName, tailLineCount);\n}\n"
|
"static void addVertexColumn(SqlgGraph sqlgGraph, String schema, String prefixedTable, Map.Entry<String, PropertyType> column) {\n BatchManager.BatchModeType batchModeType = flushAndSetTxToNone(sqlgGraph);\n try {\n Preconditions.checkArgument(prefixedTable.startsWith(SchemaManager.VERTEX_PREFIX), \"String... |
"public CompilerCheckBuilder checkImpl(CSharpLanguageVersion languageVersion, PsiElement element) {\n Trinity<? extends DotNetTypeRef, ? extends DotNetTypeRef, ? extends PsiElement> resolve = resolve(element);\n if (resolve == null) {\n return null;\n }\n DotNetTypeRef firstTypeRef = resolve.getFirst... |
"private boolean translate3DEvent_clip_opt(Object obj, Matrix transMatrix, double xOffset, double yOffset, boolean bClip) {\n if (obj instanceof Polygon3DRenderEvent) {\n Polygon3DRenderEvent p3dre = (Polygon3DRenderEvent) obj;\n Object3D object3D = p3dre.getObject3D();\n object3D.transform(tran... |
"public List<PaymentScheduleLine> generateAllExportMensu(List<PaymentScheduleLine> pslList, Company company, PaymentMode paymentMode, Status statusVal, Journal journal) {\n Move move = null;\n try {\n move = paymentScheduleExportService.createExportMensuMove(Journal.find(journal.getId()), Company.find(comp... |
"private boolean doSingleUpload(Uploader uploader, Socket socket, String host, int index) throws IOException {\n long startTime = -1;\n debug(uploader + \"String_Node_Str\");\n boolean isBHUploader = (uploader.getState() == Uploader.BROWSE_HOST);\n int queued = -1;\n boolean ret = false;\n if (!isBHUp... |
"public void onChildStatusEvent(MonitorStatusEvent statusEvent) {\n String childId = statusEvent.getId();\n String instanceId = statusEvent.getInstanceId();\n LifeCycleState status1 = statusEvent.getStatus();\n if (status1 == GroupStatus.Active) {\n boolean isChildActive = verifyGroupStatus(childId, ... |
"private void linkMethods(ClassWrapper other, Set<ClassWrapper> existing) {\n if (existing.contains(other) || isObjectClass(other)) {\n return;\n }\n for (MethodWrapper method : other.getMethods()) {\n if (meatches(method)) {\n addChild(method);\n addParent(method);\n ... |
"private void encryptNote(boolean encryptTags) {\n String text = mText.getText().toString();\n String title = ExtractTitle.extractTitle(text);\n String tags = getTags();\n if (!encryptTags) {\n tags = null;\n }\n if (debug)\n Log.d(TAG, \"String_Node_Str\" + text);\n if (EncryptActivi... |
"public Node<E> reevaluate(E sourceValue, Node<E> transformedValue) {\n transformedValue.path.clear();\n format.getPath(transformedValue.path, sourceValue);\n return transformedValue;\n}\n"
|
"private void submitReply() {\n if (!hasComment() || !isAdded() || mIsSubmittingReply)\n return;\n if (!NetworkUtils.checkConnection(getActivity()))\n return;\n final String replyText = EditTextUtils.getText(mEditReply);\n if (TextUtils.isEmpty(replyText))\n return;\n mEditReply.setE... |
"public void onBucketFillEvent(PlayerBucketFillEvent event) {\n IPlayer player = plugin.wrapPlayer(event.getPlayer());\n org.bukkit.Location bloc = event.getBlockClicked().getLocation();\n Location location = new Location(player.getWorld(), bloc.getX(), bloc.getY(), bloc.getZ());\n if (manager.isPlotWorld(l... |
"public String getResponseBodyExcerpt(int maxLength, String charset) throws IOException {\n String contentType = getContentType();\n if (contentType != null) {\n charset = AsyncHttpProviderUtils.parseCharset(contentType);\n }\n if (charset == null) {\n charset = DEFAULT_CHARSET;\n }\n St... |
"public boolean shouldRefreshTokens() {\n long timeLeft = expiresMillis - System.currentTimeMillis();\n return timeLeft < 600000;\n}\n"
|
"public Article toObject(UIComponent arg0, String arg1) {\n for (Article article : articleAllSearch.getAllArticles()) if (article.getCode().equals(arg1))\n return article;\n return null;\n}\n"
|
"public void widgetSelected(final SelectionEvent arg0) {\n layoutTopLeft.setSelectionIdex(layoutTopRight.getSelectionIndex());\n if (layoutTopRight.getSelectionIndex() == 2) {\n layoutBottomLeft.setSelectionIdex(3);\n } else if (layoutTopRight.getSelectionIndex() == 3) {\n layoutBottomLeft.setSel... |
"public void keyReleased(KeyEvent e) {\n if (e.getKeyCode() == 27) {\n Rectangle2D.Double temp = (Double) m.originalView().clone();\n fixRatio(temp, m.getBounds());\n m.updateBounds(temp);\n v.repaint(m.getLines());\n }\n}\n"
|
"private void createXML() {\n Element oldImage = (Element) oldRoot.getElementsByTagName(BINARY).item(0);\n Element newImage = newDoc.createElement(IMAGE);\n String binName = oldImage.getAttribute(NAME);\n newImage.setAttribute(NAME, binName);\n Element countTag = (Element) oldImage.getElementsByTagName(C... |
"public CategoryGraph build(Language language, LocalPageDao lpDao, LocalCategoryMemberDao lcmDao) throws DaoException {\n CategoryGraph graph = new CategoryGraph(language);\n loadCategories(graph);\n buildGraph(graph);\n computePageRanks(graph);\n return graph;\n}\n"
|
"protected List<GraphTargetItem> printGraph(Map<GraphPart, List<GraphTargetItem>> partCodes, Map<GraphPart, Integer> partCodePos, Set<GraphPart> visited, BaseLocalData localData, TranslateStack stack, Set<GraphPart> allParts, GraphPart parent, GraphPart part, List<GraphPart> stopPart, List<Loop> loops, List<GraphTarget... |
"public void scrollToCurrentLine(String text) {\n if (previewTab.getContent() == slidePane) {\n slidePane.flipThePage(htmlPane.findRenderedSelection(text));\n try {\n htmlPane.call(\"String_Node_Str\", text);\n } catch (Exception e) {\n logger.debug(e.getMessage(), e);\n }\n}\n"
|
"public void handle(Element element) {\n ManagedMap properties = new ManagedMap();\n final NamedNodeMap atts = element.getAttributes();\n if (atts != null) {\n for (int a = 0; a < atts.getLength(); a++) {\n final org.w3c.dom.Node att = atts.item(a);\n String name = att.getNodeName(... |
"public List<File> exportFrames(AbortRetryIgnoreHandler handler, String outdir, int containerId, List<Integer> frames, final FramesExportSettings settings) throws IOException {\n final List<File> ret = new ArrayList<>();\n if (tags.isEmpty()) {\n return ret;\n }\n Timeline tim = null;\n String pat... |
"void hideInTransaction() {\n if (SHOW_TRANSACTIONS)\n logSurface(\"String_Node_Str\" + reason + \"String_Node_Str\", null);\n if (mSurfaceControl != null) {\n mSurfaceShown = false;\n try {\n mSurfaceControl.hide();\n } catch (RuntimeException e) {\n Slog.w(TAG, ... |
"public boolean handleBuild(final BPELPlanContext context, final AbstractNodeTemplate nodeTemplate) {\n final boolean hasProps = checkProperties(nodeTemplate.getProperties());\n final String serviceInstanceVarName = context.getServiceInstanceURLVarName();\n if (serviceInstanceVarName == null) {\n return... |
"public Object get(UriInfo uriInfo, String tenantId, String name, String dimensionsStr, String startTimeStr, String endTimeStr, String statisticsStr, String periodStr, String offset, String limit, Boolean mergeMetricsFlag) throws Exception {\n DateTime startTime = Validation.parseAndValidateDate(startTimeStr, \"Stri... |
"public void testAssignment() throws InterruptedException, ExecutionException {\n CConfiguration cConf = CConfiguration.create();\n cConf.set(Constants.Zookeeper.QUORUM, zkServer.getConnectionStr());\n String serviceName = \"String_Node_Str\";\n Injector injector = Guice.createInjector(new ConfigModule(cCon... |
"public org.hl7.fhir.dstu2.model.Goal convertGoal(org.hl7.fhir.dstu3.model.Goal src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Goal tgt = new org.hl7.fhir.dstu2.model.Goal();\n copyDomainResource(src, tgt);\n for (org.hl7.fhir.dstu3.model.Ide... |
"public void executeInRunnable(IMetadataConnection metadataConnection, Object currentNode, DatabaseConnection dbconn) {\n HBaseAdmin hAdmin = getAdmin(metadataConnection);\n Configuration config = null;\n MetadataTable metadataTable = null;\n TableNode columnNode = null;\n try {\n if (hAdmin != nu... |
"public void onCommandFailure(Throwable caught) {\n N10N.warn(I18N.CONSTANTS.globalContactsExportConfiguration(), I18N.CONSTANTS.serverError());\n}\n"
|
"public LeaveLine computeQuantityAvailable(LeaveLine leaveLine) {\n List<LeaveManagement> leaveManagementList = leaveLine.getLeaveManagementList();\n leaveLine.setQuantity(BigDecimal.ZERO);\n if (leaveManagementList != null && !leaveManagementList.isEmpty()) {\n for (LeaveManagement leaveManagement : le... |
"void restart() {\n changeExecutionState(ExecutionState.STARTING, null);\n this.restartRequested.set(true);\n changeExecutionState(ExecutionState.REPLAYING, null);\n}\n"
|
"public void should_analyse() {\n fileSystem.add(new DefaultInputFile(\"String_Node_Str\").setAbsolutePath(TestUtils.getResource(\"String_Node_Str\").getAbsolutePath()).setType(InputFile.Type.MAIN).setLanguage(JavaScript.KEY));\n SensorContext context = mock(SensorContext.class);\n when(context.getResource(any... |
"protected Void doInBackground(Void... params) {\n final long start = SystemClock.elapsedRealtime();\n if (mForceRefreshPackage != null) {\n if (!waitForFirstLoad()) {\n return null;\n }\n }\n mTaskRoots.put(mRecentsRoot.authority, mRecentsRoot);\n final ContentResolver resolver ... |
"public BinningIndexContent generateIndexContent() {\n if (binsSeen == 0)\n return null;\n final long[] newIndex = new long[largestIndexSeen + 1];\n long lastNonZeroOffset = 0;\n for (int i = 0; i <= largestIndexSeen; i++) {\n if (index[i] == UNINITIALIZED_WINDOW) {\n index[i] = las... |
"public boolean shouldExecute() {\n boss = ((IMinion) entity).getLord();\n if (boss == null) {\n return false;\n } else {\n double d0 = this.boss.getTheDistanceSquared(entity);\n return d0 >= MINDIST && d0 <= MAXDIST;\n }\n}\n"
|
"public void computeConfusionMatixForMultipleClassification(long records) throws IOException {\n PathFinder pathFinder = new PathFinder(modelConfig);\n SourceType sourceType = evalConfig.getDataSet().getSource();\n List<Scanner> scanners = ShifuFileUtils.getDataScanners(pathFinder.getEvalScorePath(evalConfig, ... |
"public void endCell(ICellContent cell) throws BirtException {\n _endCell(cell);\n}\n"
|
"public String generateVariableDeclaration() throws IllegalActionException {\n StringBuffer code = new StringBuffer();\n String name = CodeGeneratorAdapterStrategy.generateName(getComponent());\n String referencedParameterDeclaration = _generateReferencedParameterDeclaration();\n if (referencedParameterDecl... |
"protected void onPause() {\n Log.d(CALL_INTEGRATION, \"String_Node_Str\" + this);\n super.onPause();\n if (getLocalVideoView() != null) {\n getLocalVideoView().onPause();\n }\n if (getLocalVideoView() != null) {\n getRemoteVideoView().onPause();\n }\n}\n"
|
"public void onCompleted(Result<DrivenException> result) {\n if (!result.isSuccess()) {\n driven.getDropboxApi().getSession().startOAuth2Authentication(DropboxActivity.this);\n } else {\n successfullyAuthenticated();\n }\n}\n"
|
"public void testInAppClientContainerLookup() throws Exception {\n String APP_NAME = \"String_Node_Str\";\n JavaArchive jar = ShrinkHelper.buildJavaArchive(APP_NAME + \"String_Node_Str\", \"String_Node_Str\");\n EnterpriseArchive app = ShrinkWrap.create(EnterpriseArchive.class, APP_NAME + \"String_Node_Str\").... |
"static Object[][] toAnnotationType(ClassPool cp, ParameterAnnotationsAttribute a1, ParameterAnnotationsAttribute a2) throws ClassNotFoundException {\n int numParameters = 0;\n if (a1 != null)\n numParameters = a1.numParameters();\n else if (a2 != null)\n numParameters = a2.numParameters();\n ... |
"public static List<Object[]> testcases() {\n Object[][] array = new Object[][] { { \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\" }, { \"String_Node_Str\", \"String_Node_Str\" }, { \"S... |
"public PosRot predictFrontBogeyPosition(float offset) {\n MovementSimulator sim = new MovementSimulator(world, getCurrentTickPosOrFake(), this.getDefinition().getBogeyFront(), this.getDefinition().getBogeyRear());\n Vec3d front = sim.frontBogeyPosition();\n Vec3d nextFront = front;\n while (offset > 0) {\n... |
"public void render(HttpServletRequest req, HttpServletResponse resp, Object obj) throws Exception {\n String path = evalPath(req, obj);\n if (Strings.isBlank(path)) {\n path = Mvcs.getRequestPath(req);\n path = \"String_Node_Str\" + (path.startsWith(\"String_Node_Str\") ? \"String_Node_Str\" : \"St... |
"private ProviderSet registerProvidersForComponent(String componentPath) throws ConfigurationException {\n ProviderSet pset = new ProviderSet(componentPath);\n for (String providerClass : conf.get().getStringList(PROVIDER_PATH + \"String_Node_Str\" + componentPath)) {\n try {\n Class<Provider> k... |
"private void computered() {\n double sum = 0;\n for (ChartDataEntity oneEntity : this.enity) {\n if (oneEntity.getValue() != null) {\n sum = sum + Double.valueOf(oneEntity.getValue());\n }\n }\n for (ChartDataEntity oneEntity : this.enity) {\n Double doub = Double.valueOf(on... |
"public void setUp() throws Exception {\n cdi = mockery.mock(CDI.class);\n iis = mockery.mock(Instance.class, \"String_Node_Str\");\n iish = mockery.mock(Instance.class);\n ids = mockery.mock(IdentityStore.class);\n bm = mockery.mock(BeanManager.class, \"String_Node_Str\");\n ap = mockery.mock(Authent... |
"public boolean isModified(TestStructure testStructure) {\n TeamShareStatusServicePlugIn teamShareStatus = getTeamShareStatusPlugIn(testStructure.getRootElement());\n if (teamShareStatus != null) {\n return teamShareStatus.isModified(testStructure);\n }\n return false;\n}\n"
|
"public static void dumpPackageStateStatic(FileDescriptor fd, String packageName) {\n FileOutputStream fout = new FileOutputStream(fd);\n PrintWriter pw = new FastPrintWriter(fout);\n dumpService(pw, fd, Context.ACTIVITY_SERVICE, new String[] { \"String_Node_Str\", \"String_Node_Str\", packageName });\n pw.... |
"public final void setListShown(boolean shown) {\n View v = getView();\n if (v != null) {\n if (shown) {\n v.findViewById(R.id.listFrame).setVisibility(View.VISIBLE);\n v.findViewById(android.R.id.progress).setVisibility(View.GONE);\n boolean showEmpty = mAdapter.getItemCou... |
"public static void sendStatsMessage(PluginInstance pli, Player p) {\n if (pli.getMessagesConfig().getConfig().isSet(\"String_Node_Str\")) {\n int kills_ = pli.getStatsInstance().getKills(p.getName());\n int deaths_ = pli.getStatsInstance().getDeaths(p.getName());\n int money_ = 0;\n if (... |
"public boolean process(LttngEvent trcEvent, LttngTraceState traceSt) {\n Long child_pid = getAFieldLong(trcEvent, traceSt, Fields.LTT_FIELD_CHILD_PID);\n LttngProcessState process_child = lttv_state_find_process(traceSt, trcEvent.getCpuId(), child_pid);\n if (process_child != null) {\n TimeRangeEventPr... |
"private boolean decodeGps(Position position, ChannelBuffer buf, boolean hasLength) {\n DateBuilder dateBuilder = new DateBuilder(timeZone).setDate(buf.readUnsignedByte(), buf.readUnsignedByte(), buf.readUnsignedByte()).setTime(buf.readUnsignedByte(), buf.readUnsignedByte(), buf.readUnsignedByte());\n position.se... |
"public void write(BufferedRandomAccessFile file, Object obj) throws IOException {\n try {\n file.writeBigDecimal((BigDecimal) obj);\n } catch (ClassCastException ce) {\n logger.log(Level.FINE, ce.getMessage(), ce);\n }\n}\n"
|
"private void exportToStatsD(List<Stat> stats) {\n HostAndPort hostPort = HostAndPort.fromString(mConfig.getStatsDHostPort());\n NonBlockingStatsDClient client = new NonBlockingStatsDClient(mConfig.getKafkaGroup(), hostPort.getHostText(), hostPort.getPort());\n for (Stat stat : stats) {\n Map<String, St... |
"private int findFreeBlock() throws IOException {\n int oldLength = (int) oatAccessFile.length();\n oatAccessFile.setLength(oldLength + 4);\n return (int) (oldLength / 4);\n}\n"
|
"protected void onPostExecute(Void results) {\n mProgressDialog.dismiss();\n if (mSuAvailable) {\n if (isRead && canRead()) {\n try {\n ((Activity) mContext).findViewById(mLoadButtonId).performClick();\n } catch (NullPointerException e) {\n ((Activity) mC... |
"protected void writePrefixMappings() {\n try {\n if (!prefixMappings.isEmpty()) {\n for (java.util.Iterator<String> keys = prefixMappings.keySet().iterator(); keys.hasNext(); ) {\n String prefix = keys.next();\n writer.write(' ');\n writer.write(XMLCons... |
"public void updateRSSFeed() {\n if (_outputFeed == null)\n readInCurrentRSSFeed();\n _outputFeed.update();\n _numItemsSinceLastDownload = _outputFeed.getNumItemsSinceLastDownload();\n if (!isLeafCategory()) {\n for (Category c : _children) c.updateRSSFeed();\n }\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.