content stringlengths 40 137k |
|---|
"public TileEntityBaseTurret getTurret() {\n TileEntity tileEntity = this.worldObj.getBlockTileEntity(this.xCoord + this.deployDirection.offsetX, this.yCoord + this.deployDirection.offsetY, this.zCoord + this.deployDirection.offsetZ);\n if (tileEntity instanceof TileEntityTurretBase) {\n this.turret = (Til... |
"public RESTCoverageStore publishExternalMosaic(String workspace, String storeName, File mosaicDir, GSCoverageEncoder coverageEncoder, GSLayerEncoder layerEncoder) throws FileNotFoundException {\n if (!createExternalMosaic(workspace, storeName, mosaicDir, coverageEncoder, layerEncoder)) {\n return null;\n ... |
"public void read(final DataInput in) throws IOException {\n this.jobID = new JobID();\n this.jobID.read(in);\n this.taskName = StringRecord.readString(in);\n final String[] requiredJarFiles = new String[in.readInt()];\n for (int i = 0; i < requiredJarFiles.length; i++) {\n requiredJarFiles[i] = S... |
"private void incrementPage() {\n if (displayPage < pageIndex.length) {\n displayPage++;\n }\n}\n"
|
"public void render(RenderRequest portletReq, RenderResponse portletResp) throws PortletException, IOException {\n long tid = Thread.currentThread().getId();\n portletReq.setAttribute(THREADID_ATTR, tid);\n String msg = (String) portletReq.getPortletSession().getAttribute(RESULT_ATTR_PREFIX + V2DISPATCHERTESTS... |
"public void addOutput(byte[] buf, int off, int len) {\n try {\n os.write(buf, off, len);\n } catch (IOException e) {\n throw new IORuntimeException(e);\n }\n}\n"
|
"public void timeWindowBatchTest6() throws InterruptedException {\n log.info(\"String_Node_Str\");\n SiddhiManager siddhiManager = new SiddhiManager();\n String streams = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n String query = \"String_Node_Str\" + \"String_Node_Str\" + \"String_No... |
"private void parseEvent(XMLEvent xmlEvent) throws SAXException {\n switch(xmlEvent.getEventType()) {\n case XMLEvent.ATTRIBUTE:\n {\n break;\n }\n case XMLEvent.CDATA:\n {\n Characters characters = xmlEvent.asCharacters();\n ... |
"private void computeDisturbance(Point2D_F64 pixel, Point2D3D p23) {\n pixelToNorm.compute(pixel.x, pixel.y, p23.observation);\n if (estimatePose(which, detected2D3D, targetToCameraSample)) {\n referenceCameraToTarget.concat(targetToCameraSample, difference);\n double d = difference.getT().norm();\n... |
"public void onReceive(Context context, Intent intent) {\n mContext = context.getApplicationContext();\n final BehaviourSettings behav_settings = new BehaviourSettings(mContext);\n final GeneralSettings gen_settings = new GeneralSettings(mContext);\n final AppSettings app_settings = new AppSettings(mContext... |
"public boolean checkTrigger(GameEvent event, Game game) {\n if (event.getPlayerId().equals(this.getControllerId())) {\n Spell spell = game.getStack().getSpell(event.getTargetId());\n if (isControlledInstantOrSorcery(spell)) {\n boolean targetsSource = false;\n for (Ability abilit... |
"public void releaseConnection(SQLConnection connection) throws SQLException {\n if (connection.getConnection() == null || connection.getConnection().isClosed()) {\n disposeConnection(connection);\n return;\n }\n boolean forPool = allocated.remove(connection);\n boolean commitOnClose = SQLExpl... |
"public void propertyChange(PropertyChangeEvent evt) {\n if (evt.getPropertyName().equals(ExplorerManager.PROP_SELECTED_NODES)) {\n if (uiModel == null) {\n return;\n }\n Node[] nodeArray = (Node[]) evt.getNewValue();\n if (nodeArray.length > 0) {\n Node node = ((Nod... |
"public void newConfig(ConfNewItemForm confNewForm, DisConfigTypeEnum disConfigTypeEnum) {\n Config config = new Config();\n config.setAppId(confNewForm.getAppId());\n config.setEnvId(confNewForm.getEnvId());\n config.setName(confNewForm.getKey());\n config.setType(disConfigTypeEnum.getType());\n conf... |
"public static FemModel3d createQuadraticModel(FemModel3d quadMod, FemModel3d linMod) {\n ComponentListView<FemNode3d> quadNodes = quadMod.getNodes();\n if (quadMod == linMod) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n HashMap<FemNode3d, FemNode3d> nodeMap = new HashMap<FemNod... |
"private boolean pushMax() {\n if (max.getSelectionIndex() >= 0) {\n if (max.getSelectionIndex() < (min.getSelectionIndex() - 1)) {\n max.select(min.getSelectionIndex() - 1);\n }\n if (model != null) {\n String val = max.getItem(max.getSelectionIndex());\n if (va... |
"public ZMTPParsedMessage parse(final ChannelBuffer buffer) throws ZMTPMessageParsingException {\n if (isOversized(size)) {\n return discardFrames(buffer);\n }\n while (buffer.readableBytes() > 0) {\n buffer.markReaderIndex();\n final boolean parsedHeader = parseFrameHeader(buffer);\n ... |
"public org.hl7.fhir.dstu2.model.Contract.ValuedItemComponent convertValuedItemComponent(org.hl7.fhir.dstu3.model.Contract.ValuedItemComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Contract.ValuedItemComponent tgt = new org.hl7.fhir.dstu2.... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD | Wi... |
"public int locateGCPoint(Offset machCodeOffset, VM_Method method) {\n machCodeOffset = machCodeOffset.minus(1 << VM.LG_INSTRUCTION_WIDTH);\n if (VM.TraceStkMaps) {\n VM.sysWrite(\"String_Node_Str\");\n VM.sysWrite(machCodeOffset);\n VM.sysWrite(\"String_Node_Str\");\n VM.sysWrite(meth... |
"public boolean canFinish() {\n boolean flag = ProjectManager.getInstance().isInCurrentMainProject(this.connectionItem);\n if (!flag) {\n return false;\n }\n if (dynamicWizardPages != null) {\n for (IWizardPage wizardPage : dynamicWizardPages) {\n if (!wizardPage.isPageComplete()) {... |
"public void onPlayerMove(PlayerMoveEvent event) {\n if (event.isCancelled())\n return;\n if (Jail.prisoners.containsKey(event.getPlayer().getName().toLowerCase())) {\n JailPrisoner prisoner = Jail.prisoners.get(event.getPlayer().getName().toLowerCase());\n if (prisoner.isBeingReleased() || p... |
"public boolean equals(Object obj) {\n if (obj instanceof TreeObject) {\n TreeObject o = (TreeObject) obj;\n if (o.getParent() == null)\n return o.getName().equals(getName()) && getType() == o.getType();\n else {\n if (o.getDisplayName().equals(getDisplayName()) && getType(... |
"public void enableLocationUpdates() {\n mSpeedReadings = 0;\n mTotalSpeed = 0f;\n gApiMgr.addTask(requestLocationUpdate);\n}\n"
|
"public void unregisterNetworkEntity(EntityRef entity) {\n NetworkComponent netComponent = entity.getComponent(NetworkComponent.class);\n if (netComponent != null) {\n logger.debug(\"String_Node_Str\", entity, netComponent.getNetworkId());\n netIdToEntityId.remove(netComponent.getNetworkId());\n ... |
"public String serialize(final ResourceKey bundleKey, final ResourceKey key) throws ResourceException {\n throw new ResourceKeyCreationException(Messages.getInstance().getString(\"String_Node_Str\"));\n}\n"
|
"public String displayName() {\n if (null != mMetadata) {\n return mMetadata.mUserDisplayName;\n } else {\n return null;\n }\n}\n"
|
"public void onClick(View v) {\n hideImageViews();\n mImageShow.setVisibility(View.VISIBLE);\n mImageShow.setShowControls(true);\n ImagePreset preset = mImageShow.getImagePreset();\n ImageFilter filter = preset.getFilter(\"String_Node_Str\");\n if (filter == null) {\n ImageFilterHue contrast = ... |
"public void addInitialTaxonomyTableIntoGraph(String filename) {\n String str = \"String_Node_Str\";\n int count = 0;\n HashMap<String, Node> dbnodes = new HashMap<String, Node>();\n HashMap<String, String> parents = new HashMap<String, String>();\n Transaction tx;\n ArrayList<String> templines = new ... |
"public void testJSONBinarySerialization() {\n ActivityUnit act1 = createTestActivityUnit(\"String_Node_Str\");\n try {\n java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream();\n java.io.ObjectOutputStream oos = new java.io.ObjectOutputStream(os);\n oos.writeObject(act);\n ... |
"public void plantSeed(World world, int x, int y, int z, EntityPlayer player) {\n if (!world.isRemote) {\n TileEntityCrop crop = (TileEntityCrop) world.getTileEntity(x, y, z);\n if (crop.crossCrop || crop.hasPlant() || !(player.getCurrentEquippedItem().getItem() instanceof ItemSeeds)) {\n re... |
"public void transformBlock(World world, Random random, Phase phase, BlockCoord coord, Block sourceBlock, int sourceMetadata) {\n BiomeGenBase biome = world.getBiomeGenForCoords(coord.x, coord.z);\n Block topBlock = biome.topBlock != null ? biome.topBlock : Blocks.air;\n Block fillerBlock = biome.fillerBlock !... |
"public static void main(String[] args) throws Exception {\n Options options = new Options();\n options.addOption(new Option(HELP_OPTION, \"String_Node_Str\"));\n options.addOption(new Option(JSON_OPTION, \"String_Node_Str\"));\n options.addOption(new Option(TSV_OPTION, \"String_Node_Str\"));\n options.a... |
"public double getMapRotation() {\n GoogleMap map = getMap();\n if (map != null) {\n return map.getCameraPosition().bearing;\n } else {\n return 0;\n }\n}\n"
|
"protected void exportDeployKeysIfPrivateRepo(BuildListener listener, Launcher launcher) throws IOException, InterruptedException {\n if (isPrivateRepo()) {\n DeployKeyPair deployKeyPair = SetupConfig.get().getGithubDeployKeyRepository().get(getGithubRepoUrl());\n WorkspaceFileExporter.WorkspaceFile pr... |
"public IBaseResultSet getResultSet() {\n ReportContent reportContent = (ReportContent) report;\n List<IBaseResultSet> resultSets = QueryUtil.getResultSet(reportContent, instanceId);\n if (resultSets == null || resultSets.size() == 0) {\n return null;\n }\n return new BaseResultSetDecorator(result... |
"private boolean saveImagesToDB(boolean bInvoked) {\n log.info(\"String_Node_Str\");\n boolean bSavedToDB = false;\n log.debug(\"String_Node_Str\" + bInvoked + \"String_Node_Str\" + fileTransBean.getOriginalFileName());\n bInvoked = true;\n MessagePersistenceDAO mdao = new MessagePersistenceDAO();\n i... |
"protected void onResume() {\n super.onResume();\n Log.d(TAG, \"String_Node_Str\");\n if (notificationMenuItem_ != null) {\n BadgeDrawable.setBadgeCount(this, notificationMenuItem_, MessageManager.getInstance().getNotificationCount());\n }\n MessageManager.getInstance().addListener(this);\n}\n"
|
"private void getinfo(LuaState vm) {\n LuaState threadVm = vm;\n CallInfo ci = null;\n LFunction func = null;\n LClosure closure = null;\n String what = \"String_Node_Str\";\n if (vm.gettop() >= 4) {\n threadVm = vm.checkthread(2).vm;\n vm.remove(2);\n }\n String what = vm.optstrin... |
"private static String[] getBlogNames() {\n List<Map<String, Object>> accounts = WordPress.wpDB.getAccounts();\n int blogCount = accounts.size();\n blogIDs = new int[blogCount];\n String[] blogNames = new String[blogCount];\n for (int i = 0; i < blogCount; i++) {\n Map<String, Object> account = ac... |
"public String tryInlining(final ApplyTerm apply, final StatementFormatter fmt, final boolean stmtsOkay) {\n final Type applyType = apply.getType();\n final List<Term> args = ((TupleTerm) apply.getArg()).getItems();\n final String c = fmt.formatTermAs(args.get(0), boolean.class);\n final String def = fmt.fo... |
"public Object create(User user, PropertyMap properties) {\n projectModel = (ProjectModelDTO) properties.get(AdminUtil.ADMIN_PROJECT_MODEL);\n if (projectModel != null && ProjectModelStatus.DRAFT.equals(projectModel.getStatus())) {\n if (projectModel.getId() != -1) {\n update(user, projectModel,... |
"public void render(Screen screen) {\n int xTile = 8;\n int yTile = 28;\n int walkingSpeed = 4;\n int flipTop = (numSteps >> walkingSpeed) & 1;\n int flipBottom = (numSteps >> walkingSpeed) & 1;\n if (movingDir == 1) {\n xTile += 2;\n } else if (movingDir > 1) {\n xTile += 4 + ((numSt... |
"private void downloadButtonActionPerformed(java.awt.event.ActionEvent evt) {\n JFileChooser chooser = new JFileChooser(\"String_Node_Str\");\n chooser.setFileFilter(new FileFilter() {\n public boolean accept(File f) {\n return f.isDirectory();\n }\n public String getDescription() ... |
"private NSArray<NSIndexPath> getIndexPathsFromIndexesWithSection(NSIndexSet indexSet, final long section) {\n final NSArray<NSIndexPath> indexPaths = new NSMutableArray<>(indexSet.size());\n indexSet.enumerateIndexes(new VoidBlock2<Long, BooleanPtr>() {\n public void invoke(Long idx, BooleanPtr stop) {\n ... |
"public JsonResult<List<ModuleBo>> deleteModuleList(Integer[] ids, HttpSession session) {\n if (ids.length == 0) {\n UserResource resource = (UserResource) session.getAttribute(WebConst.SESSION_RESOURCE);\n return JsonResult.fail(ErrorCodes.BUSINESS_EXCEPTION.getCode(), resource.getMessage(\"String_Nod... |
"public void currentPlay(SongEntity songEntity) {\n if (songEntity == null) {\n return;\n }\n mToolbarCommon.setTitle(songEntity.title);\n mToolbarCommon.setSubtitle(songEntity.artistName);\n mTxtTotalLength.setText(songEntity.songLength);\n mPresenter.setCoverImgUrl(songEntity.albumCover);\n ... |
"public void setLabels(List<TurboLabel> labels) {\n if (this.labels != labels) {\n clearAllLabels();\n for (TurboLabel label : labels) {\n addLabel(label);\n }\n }\n}\n"
|
"private void onFriendFocusMove(SSDataEvent event) {\n final Ref rng = event.getRef();\n Worksheet sheet = getSheet(rng);\n if (sheet == null) {\n return;\n }\n if (sheet.equals(_selectedSheet)) {\n final Focus focus = (Focus) event.getPayload();\n final String id = focus.id;\n ... |
"public void index(ClusterState clusterState) {\n synchronized (indexLock) {\n try {\n if (!initialized()) {\n init();\n }\n indexWriter.deleteAll();\n doIndex(clusterState);\n searcherManager.maybeRefresh();\n if (activeSearches... |
"public void output(QueryOptions options, Digraph<Target> result, OutputStream out, AspectResolver aspectProvider) {\n this.graphNodeStringLimit = options.graphNodeStringLimit;\n boolean sortLabels = options.orderOutput == OrderOutput.FULL;\n if (options.graphFactored) {\n outputFactored(result, new Pri... |
"private static void getDefaultOptions(Project project, PhpClass phpClass, FormClass formClass, FormOptionVisitor visitor) {\n for (String methodName : FORM_OPTION_METHODS) {\n Method method = phpClass.findMethodByName(methodName);\n if (method == null) {\n continue;\n }\n Coll... |
"public boolean handleEvent(ClusterEvent event) {\n switch(event.getType()) {\n case RECOVERY_INITIATED:\n try {\n AcquiredTriggers triggers = getAcquiredTriggers(eventInstanceId);\n for (Trigger trigger : triggers.getTriggers()) {\n boolean removed ... |
"public void resumeWorkflowRun(HttpRequest request, final HttpResponder responder, String namespaceId, String appId, String workflowName, String runId) {\n try {\n Id.Program id = Id.Program.from(namespaceId, appId, ProgramType.WORKFLOW, workflowName);\n ProgramRuntimeService.RuntimeInfo runtimeInfo = ... |
"public void write(IPath resPath, IPath desPath) throws IOException, CoreException {\n File file = getBasePath().toFile();\n if (!file.exists()) {\n file.createNewFile();\n }\n tempMap.put(resPath.toFile(), desPath.toOSString());\n}\n"
|
"protected void drawText(String text, float textX, float textY, float baseline, float width, float height, TextStyle textStyle) {\n FontInfo fontInfo = textStyle.getFontInfo();\n float descend = fontInfo.getBaseFont().getFontDescriptor(BaseFont.DESCENT, fontInfo.getFontSize());\n writer.drawText(text, textX, t... |
"protected void paintComponent(Graphics g) {\n if (eval != null) {\n Graphics2D g2D;\n g2D = (Graphics2D) g;\n Composite original = g2D.getComposite();\n AlphaComposite ac = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f);\n g2D.setColor(Color.BLACK);\n g2D.drawStr... |
"public void testCreateVMSnapshotCommand() {\n final Connection conn = Mockito.mock(Connection.class);\n final VMSnapshotTO snapshotTO = Mockito.mock(VMSnapshotTO.class);\n final List<VolumeObjectTO> volumeTOs = new ArrayList<VolumeObjectTO>();\n final CreateVMSnapshotCommand vmSnapshot = new CreateVMSnapsh... |
"public void createTalkMessage(GeoCamTalkMessage message) throws ClientProtocolException, AuthenticationFailedException, IOException, SQLException {\n HashMap<String, String> map = new HashMap<String, String>();\n map.put(\"String_Node_Str\", jsonConverter.serialize(message));\n ServerResponse sr = siteAuth.po... |
"public String getSystemDxLevel() {\n try {\n String result = regQueryNumber(\"String_Node_Str\", \"String_Node_Str\");\n return result;\n } catch (IndexOutOfBoundsException e) {\n log.warning(\"String_Node_Str\" + e.toString() + \"String_Node_Str\");\n return \"String_Node_Str\";\n ... |
"private void runStepped() throws SearchFinishedException {\n selDepth = 0;\n int failHighCount = 0;\n int failLowCount = 0;\n int initialScore = rootScore;\n int alpha = (initialScore - aspWindows[failLowCount] > -Evaluator.VICTORY ? initialScore - aspWindows[failLowCount] : -Evaluator.VICTORY);\n in... |
"public static void setTypes(ItemStack stack, NBTTagCompound nbt) {\n if (stack.getItem() instanceof ItemSword) {\n if (stack.getItem() instanceof ItemMelee) {\n ItemMelee item = (ItemMelee) stack.getItem();\n nbt.setString(\"String_Node_Str\", item.getType());\n } else\n ... |
"private List<JAXBElement<?>> decodeRouteGeometry(String encoded, List<JAXBElement<?>> list, CoordinateReferenceSystem targetCRS, CoordinateReferenceSystem sourceCRS) throws NoSuchAuthorityCodeException, FactoryException, MismatchedDimensionException, TransformException {\n MathTransform transform = null;\n LOG.t... |
"private static void checkEnvironmentAndSetup(final LogLevel level) {\n String packageName;\n if (appContext != null) {\n packageName = appContext.getPackageName();\n } else {\n packageName = getPackageNameFromAndroidManifest();\n }\n final boolean underDevelopment = Utils.booleanReflectSta... |
"public void addParameter(IParameter param) {\n param.setMethod(this);\n final int index = this.parameterCount++;\n param.setIndex(index);\n if (index >= this.parameters.length) {\n IParameter[] temp = new IParameter[this.parameterCount];\n System.arraycopy(this.parameters, 0, temp, 0, index);... |
"public boolean isRecursiveNamespace(String namespace) {\n Module module = this;\n while (module instanceof Library) {\n Library library = (Library) module;\n if (namespace.equals(library.getNamespace()))\n return true;\n module = library.getHost();\n }\n return false;\n}\n"
|
"public void parse(ModelCriterion criterion, boolean _default) {\n if (!(criterion instanceof ModelDifferentialPrivacyCriterion)) {\n return;\n }\n ModelDifferentialPrivacyCriterion other = (ModelDifferentialPrivacyCriterion) criterion;\n this.epsilon = other.epsilon;\n this.delta = other.delta;\n... |
"public void build() {\n final ITalendProcessJavaProject talendJavaProject = getTalendJavaProject();\n talendJavaProject.buildModules(getGoals(), null, monitor);\n}\n"
|
"private void notifyEntryListeners(EntryEvent event, Collection<EntryListener<?, ?>> collection) {\n if (collection == null) {\n return;\n }\n switch(event.getEventType()) {\n case ADDED:\n for (EntryListenerHolder holder : collection) {\n holder.listener.entryAdded(hold... |
"public boolean isNextRow() {\n if (!openSocket) {\n return false;\n }\n InputStream in;\n try {\n askForStatus();\n ois = new NoHeaderObjectInputStream(s.getInputStream());\n TraceBean traceBean = (TraceBean) ois.readObject();\n return traceBean.equals(TraceStatusBean.NEX... |
"public void close() {\n if (browsers.decrementAndGet() == 0) {\n out.println(String.format(\"String_Node_Str\", getTotalRan(), getTotalPassed(), getTotalFailed(), getTotalErrors(), findMaxTime()));\n StringBuilder output = new StringBuilder();\n for (Map.Entry<String, RunData> entry : browsersR... |
"public Collection<IAtsInsertion> getInput() {\n if (programWidget != null && programWidget.get() != null) {\n Object obj = programWidget.getWidget().getSelected();\n if (obj != null && obj instanceof IAtsProgram) {\n return Collections.castAll(AtsClientService.get().getProgramService().getI... |
"public Response toResponse(Throwable exception) {\n String name = exception.getClass().getName();\n if (name.equals(\"String_Node_Str\")) {\n try {\n return (Response) exception.getClass().getMethod(\"String_Node_Str\").invoke(exception);\n } catch (Exception e) {\n return Res... |
"public void stopLoader(boolean errorOccurred) {\n mProgressDialog = false;\n if (mCustomFragmentDialog != null)\n mCustomFragmentDialog.dismiss();\n if (mDialogAction == DialogAction.SYNCHRONIZE) {\n mViewPager.setCurrentItem(DETAILS_TAB_POS);\n if (!errorOccurred) {\n ToastUti... |
"private EntryInfo readConEntry(BufferedReader reader) throws IOException {\n String className = reader.readLine();\n if (className != null) {\n className = className.trim();\n }\n Map<String, String> properties = readProperties(reader);\n return new EntryInfo(className, properties);\n}\n"
|
"protected void buildHighlightedCompoundNodeDisplayList() {\n iHighlightedCompoundNodeDisplayListId = gl.glGenLists(1);\n fPathwayNodeWidth = refRenderStyle.getCompoundNodeWidth() / 2.0f * fScalingFactorX;\n fPathwayNodeHeight = refRenderStyle.getCompoundNodeHeight() / 2.0f * fScalingFactorY;\n gl.glNewList... |
"private RawType downloadImage(String url) {\n if (StringUtils.isNotEmpty(url)) {\n if (!IMAGE_CACHE.containsKey(url)) {\n IMAGE_CACHE.put(url, () -> {\n logger.debug(\"String_Node_Str\", url);\n try {\n return HttpUtil.downloadImage(url);\n ... |
"public ExecutionResult createFileInVR(String routerIp, String filePath, String fileName, String content) {\n File keyFile = getSystemVMKeyFile();\n try {\n SshHelper.scpTo(routerIp, 3922, \"String_Node_Str\", keyFile, null, filePath, content.getBytes(Charset.forName(\"String_Node_Str\")), fileName, null);... |
"public void doReadFields(DataInput in) throws IOException {\n this.trainCount = in.readDouble();\n this.validationCount = in.readDouble();\n this.trainError = in.readDouble();\n this.validationError = in.readDouble();\n if (in.readBoolean()) {\n this.nodeStatsMap = new HashMap<Integer, NodeStats>... |
"public void testInvalidCredentials() {\n if (DriverManager.getDriver() instanceof HttpDriver) {\n session = new SessionFactory(baseConfiguration.credentials(\"String_Node_Str\", \"String_Node_Str\").build(), \"String_Node_Str\").openSession();\n try (Transaction tx = session.beginTransaction()) {\n ... |
"protected void drawGuiContainerForegroundLayer(int par1, int par2) {\n this.fontRenderer.drawString(\"String_Node_Str\" + tileEntity.getInvName(), 52, 6, 4210752);\n this.fontRenderer.drawString(\"String_Node_Str\", 8, 23, 4210752);\n this.fontRenderer.drawString(\"String_Node_Str\", 8, 39, 4210752);\n thi... |
"public void setLocalVideoAllowed(Call call, MediaDevice mediaDevice, boolean allowed) throws OperationFailedException {\n AbstractCallJabberGTalkImpl<?> callImpl = (AbstractCallJabberGTalkImpl<?>) call;\n if (mediaDevice == null) {\n MediaService mediaService = ProtocolMediaActivator.getMediaService();\n ... |
"public ErrorHandler getErrorHandler() {\n return xmlParser.getErrorHandler();\n}\n"
|
"private void handleGroupedNotificationLocked(NotificationRecord r, NotificationRecord old, int callingUid, int callingPid) {\n StatusBarNotification sbn = r.sbn;\n Notification n = sbn.getNotification();\n if (n.isGroupSummary() && !sbn.isAppGroup()) {\n n.flags &= ~Notification.FLAG_GROUP_SUMMARY;\n ... |
"public void updateSegmentOnJobSucceed(CubeInstance cubeInstance, CubeBuildTypeEnum buildType, String segmentName, String jobUuid, long lastBuildTime, long sizeKB, long sourceRecordCount, long sourceRecordsSize) throws IOException, CubeIntegrityException {\n List<CubeSegment> segmentsInNewStatus = cubeInstance.getSe... |
"protected void addProtocolHandlers(PipelineBuilder pipeline) {\n pipeline.addLast(\"String_Node_Str\", new CharacterDelimiterFrameDecoder(1024, '\\0'));\n pipeline.addLast(\"String_Node_Str\", new TlvProtocolDecoder(TlvProtocol.this));\n}\n"
|
"T call() {\n try {\n node.checkNodeState();\n onCall();\n Object result = null;\n final boolean excludeThisMember = excludeLiteMember() && thisMember.isLiteMember();\n if (!excludeThisMember) {\n SubCall localCall = createNewTargetAwareOp(getFirstAddressToMakeCall());\n... |
"protected boolean containsKeyInternal(Data key) {\n final NodeEngine nodeEngine = getNodeEngine();\n int partitionId = nodeEngine.getPartitionService().getPartitionId(key);\n ContainsKeyOperation containsKeyOperation = new ContainsKeyOperation(name, key);\n containsKeyOperation.setServiceName(SERVICE_NAME)... |
"public void exportResource(String rootName, String directory, String exportResource, int leadupDepth) throws InterruptedException {\n File file = new File(exportResource);\n if (file.isFile()) {\n String destinationName = file.getName();\n if (!\"String_Node_Str\".equals(directory)) {\n ... |
"public List<TestInfo[]> getTestBlocks(String syntheticModuleName) {\n Set<TestInfo> allTestsInModule = getTestsForModule(syntheticModuleName);\n List<TestInfo[]> testBlocks = new ArrayList<TestInfo[]>();\n testBlocks.add(testBlock);\n return testBlocks;\n}\n"
|
"public ArgumentType getType() {\n throw new NotImplementedException();\n}\n"
|
"public void setJarContext(Class<?> classInSameJar) {\n if (themeLayers != null) {\n for (TemplateSet layer : themeLayers) {\n layer.setJarContext(ctx);\n }\n }\n}\n"
|
"public void scale(float sx, float sy) {\n vertices.forEach(v -> v.scaleSelf(sx, sy));\n}\n"
|
"public void clearApplications() {\n ServerData data = getData();\n if (data != null) {\n data.clear();\n }\n}\n"
|
"public String toString() {\n return \"String_Node_Str\" + getGuid() + \"String_Node_Str\" + authorId + \"String_Node_Str\" + branchUuid + \"String_Node_Str\" + comment + \"String_Node_Str\" + commitId + \"String_Node_Str\" + date + \"String_Node_Str\" + type + \"String_Node_Str\";\n}\n"
|
"protected boolean isCheckedAction() {\n return isCheckedFunc.invoke(getWebElement());\n}\n"
|
"public void startPage(IPageContent page) throws BirtException {\n pageNo++;\n if (pageNo > 1 && outputMasterPageContent == false) {\n writer.openTag(\"String_Node_Str\");\n writer.closeTag(\"String_Node_Str\");\n }\n if (pageNo > 1) {\n writer.writeCode(\"String_Node_Str\");\n }\n ... |
"private void writeAnnotationCounts(final Object2ObjectMap<String, ObjectList<Annotation>> allAnnots, final BufferedWriter writer, final String inputBasename, final DoubleIndexedIdentifier referenceIds, final AnnotationCountInterface[] algs, final IntSet referencesToProcess) throws IOException {\n if (doComparison) ... |
"Dir getEntryDir() {\n charIndex = 0;\n int embeddingLevel = 0;\n int embeddingLevelDir = DIR_UNKNOWN;\n int firstNonEmptyEmbeddingLevel = 0;\n while (charIndex < length && firstNonEmptyEmbeddingLevel == 0) {\n switch(dirTypeForward()) {\n case Character.DIRECTIONALITY_LEFT_TO_RIGHT_EMB... |
"private String truncate(String text) {\n if (text.length() > 80)\n return text.substring(0, 80).trim() + \"String_Node_Str\";\n else\n return text;\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.