content
stringlengths
40
137k
"public int hashCode() {\n return hash;\n}\n"
"private void addGroupMultiSchemaSettings(final Composite mainComposite) {\n Group group = Form.createGroup(mainComposite, 1, Messages.getString(\"String_Node_Str\"), 210);\n Composite composite = new Composite(group, SWT.NONE);\n GridLayout gridLayout = new GridLayout(4, false);\n gridLayout.marginHeight =...
"private static Boolean checkPortal(PortalCoord portal, Portal oldportal) {\n for (Block b : portal.border) {\n Region region = RegionManager.getRegion(b.getLocation());\n if (region.getList(RegionSetting.TRANSPARENT_BLOCKS).contains(b.getTypeId()) || (!region.getBoolean(RegionSetting.ALL_BLOCKS_PORTAL...
"private void checkTopicConfigCompatible(final Config config) {\n Set<String> topicConfigNames = new HashSet<String>(mapTopicConfigs.keySet());\n topicConfigNames.addAll(config.mapTopicConfigs.keySet());\n for (final String name : topicConfigNames) {\n final TopicConfig thisTopicConfig = lookupByPattern...
"public void after() throws ChartException {\n super.after();\n if (_oOutputIdentifier != null) {\n ImageWriter iw = ImageWriterFactory.instance().createByFormatName(getFormat());\n if (iw == null) {\n String s = getMimeType();\n if (s == null) {\n throw new Char...
"public void cpuAction(int type, int adr, int data) {\n if (mode == 0 || mode == 2) {\n int pc = cpu.readRegister(0);\n String adrStr = getSymOrAddr(context, adr);\n String pcStr = getSymOrAddrELF(elf, pc);\n context.out.println(\"String_Node_Str\" + pcStr + \"String_Node_Str\" + adrStr +...
"public void testGetRefreshedDataProvider() throws Exception {\n DatabaseConnection dbProvider = ConnectionFactory.eINSTANCE.createDatabaseConnection();\n setJDBCMysqlConnection(dbProvider);\n List<Catalog> catalogPackageFilter = new ArrayList<Catalog>();\n List<orgomg.cwm.objectmodel.core.Package> schemaPa...
"private void start(List<ValidationMessage> errors, Element resource, Element element, StructureDefinition defn, ValidationProfileSet profiles, NodeStack stack) throws FHIRException, FHIRException {\n if (rule(errors, IssueType.STRUCTURE, element.line(), element.col(), stack.getLiteralPath(), defn.hasSnapshot(), \"S...
"public void destroy() {\n plugin.getServer().getScheduler().cancelTask(tid);\n update();\n}\n"
"protected void helpTestIndexWithCaseSensitiveCols(boolean mutable, boolean localIndex) throws Exception {\n String dataTableName = generateUniqueName();\n String indexName = generateUniqueName();\n Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);\n Connection conn = DriverManager.getConnection(...
"public void Run(String name, int width, int height, File file) {\n if (!file.exists() || !file.isDirectory()) {\n System.out.println(\"String_Node_Str\" + file.getPath() + \"String_Node_Str\");\n return;\n }\n List<File> imageFiles = new ArrayList<File>();\n GetImageFiles(file, imageFiles);\n...
"void onJoin(MessageTuple tuple, PreProcessor preProcessor, AckProcessor ackProcessor, CommitProcessor commitProcessor, ClusterConfiguration clusterConfig) throws IOException {\n String source = tuple.getServerId();\n PeerHandler ph = new PeerHandler(source, transport, config.getTimeout() / 3);\n ph.setLastZxi...
"public boolean consistentOntology() throws InconsistentOntologyException {\n return consistentOntology;\n}\n"
"private Err doBackgroundImportYtPlaylist(final ImportYtPlaylistResult mtpr, MultiThreadRunner mtrunner, final long plid, final String ytplid, final ProgressListener progl) throws InterruptedException {\n DB db = DB.get();\n YTSearchHelper.SearchArg sarg = new YTSearchHelper.SearchArg(null, YTSearchHelper.SearchT...
"public Object getXMLNode(Object obj) {\n return xmlBinder.getXMLNode(obj);\n}\n"
"protected void readFile(RandomAccessFileOrArray pdf) throws IOException, DocumentException {\n permissions = new Permissions();\n try {\n reader = new PdfReader(ras);\n permissions.setEncrypted(false);\n } catch (BadPasswordException bpe) {\n JPasswordField passwordField = new JPasswordFi...
"void _zoom(int x, int y) {\n _zooming = false;\n Graphics graphics = getGraphics();\n if (graphics == null)\n return;\n boolean handled = false;\n if ((_zoomin == true) && (_drawn == true)) {\n if (_zoomxn != -1 || _zoomyn != -1) {\n int minx = Math.min(_zoomx, _zoomxn);\n ...
"public String getValidRowsStatement() {\n IndicatorDefinition indicatorDefinition = this.indicator.getIndicatorDefinition();\n if (indicatorDefinition instanceof UDIndicatorDefinition) {\n EList<TdExpression> list = ((UDIndicatorDefinition) indicatorDefinition).getViewValidRowsExpression();\n retur...
"private boolean makeCurrent(EGLSurface surface) {\n if (DEBUG)\n Log.v(TAG, \"String_Node_Str\");\n if (mEglDisplay == null) {\n if (DEBUG)\n Log.d(TAG, \"String_Node_Str\");\n }\n if (surface == null || surface == EGL14.EGL_NO_SURFACE) {\n int error = EGL14.eglGetError();\n...
"private void setEnabledForButtons() {\n if (isCubeMode()) {\n boolean disabled = getDataServiceProvider().isInXTabAggrCell() || getDataServiceProvider().isInXTabMeasureCell();\n btnFilters.setEnabled(!disabled);\n btnBinding.setEnabled(getDataServiceProvider().isInvokingSupported() || getDataSe...
"private long findLogContainingTxId(long txId) throws IOException {\n long version = logVersion;\n long committedTx = previousLogLastCommittedTx;\n while (version >= 0) {\n ReadableByteChannel log = getLogicalLogOrMyself(version);\n ByteBuffer buf = ByteBuffer.allocate(16);\n if (log.read(...
"protected String getRepositoryItemFromRepositoryName(IElementParameter param, String repositoryName) {\n String value = (String) param.getValue();\n Object[] valuesList = param.getListItemsValue();\n String[] originalList = param.getListItemsDisplayCodeName();\n for (int i = 0; i < valuesList.length; i++) ...
"public long insertStatusUpdate(ContentValues values) {\n final String handle = values.getAsString(StatusUpdates.IM_HANDLE);\n final Integer protocol = values.getAsInteger(StatusUpdates.PROTOCOL);\n String customProtocol = null;\n if (protocol != null && protocol == Im.PROTOCOL_CUSTOM) {\n customProt...
"private void depthTesting(int depth) {\n long sum = 0, qsum = 0;\n long before = System.currentTimeMillis();\n for (int i = 0; i < positions.size(); i++) {\n String line = positions.get(i);\n System.out.printf(\"String_Node_Str\", (i + 1), positions.size(), line);\n Board board = new Boar...
"private void attemptConnect() {\n for (; ; ) {\n System.out.println(\"String_Node_Str\" + remoteAddress);\n SocketChannel socketChannel;\n try {\n for (; ; ) {\n socketChannel = openSocketChannel();\n try {\n if (socketChannel == null ...
"protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n String sentence = (String) msg;\n int beginIndex = sentence.indexOf('>');\n if (beginIndex != -1) {\n sentence = sentence.substring(beginIndex + 1);\n }\n Parser parser = new Parser(PATTERN, sen...
"public void shouldBeEqualWhenUsingDefaults() {\n Configuration config1 = new MutableConfiguration();\n Configuration config2 = new MutableConfiguration();\n assertEquals(config1, config2);\n}\n"
"public void testReadRspFirstHopBySftList() throws ExecutionException, InterruptedException {\n List<Class<? extends ServiceFunctionTypeIdentity>> sftList = new ArrayList<Class<? extends ServiceFunctionTypeIdentity>>();\n sftList.add(Firewall.class);\n sftList.add(Dpi.class);\n sftList.add(Napt44.class);\n ...
"public void cmdPurge(Context ctx) {\n if (bot.isSelfbot()) {\n ctx.send(\"String_Node_Str\").queue();\n return;\n }\n if (ctx.rawArgs.length() < 1) {\n ctx.send(PURGE_NO_PARAMS).queue();\n return;\n }\n if (!ctx.guild.getSelfMember().hasPermission((Channel) ctx.channel, Permi...
"private ArrayList getParentDisplayItems(boolean hasGroup, SectionBean sb, EventDefinitionCRFBean edcb, ItemDAO idao, ItemFormMetadataDAO ifmdao, ItemDataDAO iddao, boolean hasUngroupedItems, HttpServletRequest request) throws Exception {\n ArrayList answer = new ArrayList();\n EventCRFBean ecb = (EventCRFBean) r...
"public Map<String, ArrayList<VariableDeclaration>> getCommonPassedParameters() {\n Map<String, ArrayList<VariableDeclaration>> commonPassedParameters = new LinkedHashMap<String, ArrayList<VariableDeclaration>>();\n Set<VariableDeclaration> variableDeclarationsAndAccessedFieldsInMethod1 = pdg1.getVariableDeclarat...
"public void testHandleMessageWhenStatusIsFailedShouldStackCreateAlreadyFailed() {\n Map<String, String> cfMessage = createCFMessage();\n cfMessage.put(RESOURCE_STATUS, \"String_Node_Str\");\n stack.setStatus(Status.CREATE_FAILED);\n given(snsMessageParser.parseCFMessage(snsRequest.getMessage())).willReturn...
"private void initialize() {\n getStage().setScene(new Scene(root));\n getStage().getScene().setFill(Color.rgb(0, 0, 0, 0.01));\n getStage().setOpacity(windowOpacity.getValue());\n Rectangle mask = new Rectangle(1, 1, BLACK);\n mask.widthProperty().bind(content.widthProperty());\n mask.heightProperty(...
"public void adapt(RegionData data, int x, int z, int width, int height) {\n OsmTile osmTile = data.getOrExcept(this.osmComponent);\n CoverRasterTile coverTile = data.getOrExcept(this.coverComponent);\n Collection<Result> polygons = this.collectPolygons(new DataView(x, z, width, height), osmTile);\n if (!po...
"protected void calculateVertices(DrawContext dc) {\n modVertexBuffer.rewind();\n Globe globe = dc.getGlobe();\n for (LatLon position : positions) {\n double elevation = this.elevation;\n if (followTerrain) {\n elevation += globe.getElevation(position.getLatitude(), position.getLongitu...
"public void execute() throws BuildException {\n if (baseDir == null && filesets.size() == 0 && locFileSets.size() == 0 && \"String_Node_Str\".equals(archiveType)) {\n throw new BuildException(\"String_Node_Str\" + \"String_Node_Str\");\n if (zipFile == null) {\n throw new BuildException(\"String_No...
"public void testSortWithExpr() throws Exception {\n DataEngineImpl engine = (DataEngineImpl) DataEngine.newDataEngine(DataEngineContext.newInstance(DataEngineContext.DIRECT_PRESENTATION, null, null, null));\n this.createCube(engine);\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDe...
"public static String[] listVectors(final ProviderProperties providerProperties) throws IOException {\n Configuration conf = getBasicConfig();\n initialize(conf);\n List<String> results = new ArrayList<String>();\n for (final VectorDataProviderFactory factory : vectorProviderFactories.values()) {\n S...
"public String setPupilShape(GameCharacter owner, EyeShape pupilShape) {\n if (owner.getPupilShape() == pupilShape) {\n return \"String_Node_Str\";\n }\n this.pupilShape = pupilShape;\n if (owner.isPlayer()) {\n return UtilText.parse(owner, \"String_Node_Str\" + \"String_Node_Str\" + \"String_...
"private boolean isSatisfied() {\n IInventory inv = IOHelper.getInventoryForTE(getTileCache()[getOutputDirection().ordinal()].getTileEntity());\n if (inv != null) {\n int[] accessibleSlots;\n if (inv instanceof ISidedInventory) {\n accessibleSlots = ((ISidedInventory) inv).getAccessibleSl...
"private void doTargetAction(Config.BubbleAction action, String url) {\n switch(action) {\n case ConsumeRight:\n {\n MainActivity.loadInBrowser(mContext, url, true);\n }\n break;\n case ConsumeRight:\n {\n Intent intent = new Int...
"public List<Var> usedVar() {\n List<Var> registers = new ArrayList<>();\n if (baseReg instanceof Var)\n registers.add((Var) baseReg);\n if (indexReg instanceof Var)\n registers.add((Var) indexReg);\n return registers;\n}\n"
"public void execute() throws IOException {\n int translated = 0;\n int passed = 0;\n for (Record r : this.inStore) {\n if (this.force || r.needsProcessed(this.getClass())) {\n log.trace(\"String_Node_Str\" + r.getID());\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n...
"public void testEven4ParitySinglePointMutation() {\n final int LOWER_SUCCESS = 50;\n final int UPPER_SUCCESS = 50;\n Evolver evolver = getEvolver();\n final EvenParity model = new EvenParity(evolver, 4);\n setupModel(model);\n model.setMutation(new SinglePointMutation(evolver));\n final int noSucc...
"private Zone calculateZoneToAttack() {\n Zone zoneToAttack = null;\n List<Zone> validZones = calculateZonesOfInterest();\n if (!validZones.isEmpty()) {\n zoneToAttack = validZones.get(random.nextInt(validZones.size()));\n } else {\n zoneToAttack = stats.getDeadliesZone();\n }\n return z...
"private CallGraph doGraph(boolean usePiNodes) throws ClassHierarchyException {\n AnalysisScope scope = CallGraphTestUtil.makeJ2SEAnalysisScope(TestConstants.WALA_TESTDATA);\n ClassHierarchy cha = ClassHierarchy.make(scope);\n Iterable<Entrypoint> entrypoints = com.ibm.wala.ipa.callgraph.impl.Util.makeMainEntr...
"private void start(Stack stack, Cluster cluster, boolean updateCluster) {\n if (stack.isAvailable()) {\n String statusDesc = cloudbreakMessagesService.getMessage(Msg.STACK_START_IGNORED.code());\n LOGGER.info(statusDesc);\n eventService.fireCloudbreakEvent(stack.getId(), AVAILABLE.name(), statu...
"protected boolean containsAttribute(BindContext ctx, Object key) {\n Map<Object, Object> bindingBag = getBindingAttribute(ctx);\n return bindingBag != null ? bindingBag.containsKey(key) : false;\n}\n"
"public boolean isViewerPage() {\n return viewerPage;\n}\n"
"private void findPort(int baudrate, String header, String owner) {\n SerialPort port;\n CommPortIdentifier port_id;\n int TIMEOUT = 0;\n int BUFFER_SIZE = 512;\n InputStream input;\n OutputStream output;\n int index = 0;\n boolean connected;\n char[] inputBuffer;\n Enumeration<CommPortIde...
"protected void visitChildren(IContainerArea container) {\n Iterator<IArea> iter = container.getChildren();\n while (iter.hasNext()) {\n IArea child = iter.next();\n if (child instanceof BlockTextArea) {\n if (childrencount > 1) {\n render.visitTextBuffer((BlockTextArea) ch...
"protected void onMouseOver(Pick pick) {\n parentWindow.setActive(true);\n}\n"
"protected ColumnIndicator[] getPredefinedColumnIndicator() {\n IndicatorEnum[] allwedEnumes = new IndicatorEnum[5];\n allwedEnumes[0] = IndicatorEnum.CountsIndicatorEnum;\n allwedEnumes[1] = IndicatorEnum.MinValueIndicatorEnum;\n allwedEnumes[2] = IndicatorEnum.MaxValueIndicatorEnum;\n allwedEnumes[3] =...
"protected void run() {\n Iterator<ChatRoomProviderWrapper> chatRoomProviders = MUCActivator.getMUCService().getChatRoomList().getChatRoomProviders();\n while (chatRoomProviders.hasNext()) {\n ChatRoomProviderWrapper provider = chatRoomProviders.next();\n for (int i = 0; i < provider.countChatRooms(...
"public void run() {\n while (true) {\n String[] names = nameTagList.toArray(new String[0]);\n for (int i = 0; i < names.length; i++) {\n String name = names[i];\n NameTagNode nameTag = NameTagNode.getNameTagNode(name);\n if (nameTag == null) {\n continue...
"public int findHighestMatchingBuildNumber(Version version, Set<String> versionSet) {\n int highestBuildNum = 0;\n StringBuffer versionPatternBuf = new StringBuffer();\n versionPatternBuf.append(\"String_Node_Str\");\n versionPatternBuf.append(Pattern.quote(getOriginalMMM()));\n versionPatternBuf.append(...
"public static void main(String[] args) {\n System.out.println(Version.getProduct() + \"String_Node_Str\" + Version.getVersion());\n System.out.println(\"String_Node_Str\" + Version.getVersionString() + \"String_Node_Str\" + Version.getBuildDate());\n System.out.println(\"String_Node_Str\" + JavaSEPlatform.CUR...
"public void testPriorityTextIsLoaded() {\n Issue issue = issuesMap.get(39);\n assertEquals(\"String_Node_Str\", \"String_Node_Str\", issue.getPriorityText());\n}\n"
"public boolean hasCapability(Capability<?> capability, EnumFacing facing) {\n return CAP.equals(capability);\n}\n"
"public static double getFScore(double recall, double precision, double beta) {\n return (precision + recall == 0) ? 0 : ((1 + beta * beta) * (precision * recall) / (beta * beta * precision + recall));\n}\n"
"public static void write(String message) {\n if (Utils.hasValue(message)) {\n System.out.println(message);\n messageBuffer.append(message).append(\"String_Node_Str\");\n }\n}\n"
"private void stopRecording() {\n if (thread != null) {\n thread.exit();\n thread = null;\n }\n if (recorder != null) {\n try {\n recorder.stop();\n } catch (Exception e) {\n } finally {\n recorder.release();\n recorder = null;\n }\n ...
"private void loadConnections(ProcessType process, Hashtable<String, Node> nodesHashtable) {\n EList listParamType;\n EList connecList;\n ConnectionType cType;\n connecList = process.getConnection();\n Connection connec;\n Node source, target;\n List<String> connectionsProblems = new ArrayList<Stri...
"protected Object doInvoke(Object service, MethodInvocation invocation) throws Throwable {\n if (!canCacheClassLoader)\n tccl = determineClassLoader(context, serviceReference, contextClassLoader);\n ClassLoader oldCL = null;\n boolean trace = log.isTraceEnabled();\n if ((tccl != null && canCacheClass...
"public void activate() {\n m_iStatus = Goal.curStatus.active;\n NavGraphEdge edge = m_Path.get(0);\n m_Path.remove(0);\n switch(edge.behavior()) {\n case normal:\n {\n AddSubgoal(new Goal_TraverseEdge(getM_pOwner(), edge, m_Path.isEmpty()));\n }\n brea...
"public void exec(CustomOp op) {\n if (op.numOutputArguments() == 0 && !op.isInplaceCall())\n throw new ND4JIllegalStateException(\"String_Node_Str\");\n val hash = op.opHash();\n val inputShapes = new PointerPointer<>(op.numInputArguments());\n val inputBuffers = new PointerPointer<>(op.numInputArgu...
"public void widgetSelected(final SelectionEvent arg0) {\n model.getInputConfig().setUseUtilityBasedMicroaggregation(utilityBasedMicroaggregation.getSelection());\n}\n"
"protected Control createContents(Composite parent) {\n ChartUIUtil.bindHelp(parent, ChartHelpContextIds.DIALOG_COLOR_GRADIENT);\n getShell().setText(Messages.getString(\"String_Node_Str\"));\n getShell().setSize(300, 350);\n UIHelper.centerOnScreen(getShell());\n return super.createContents(parent);\n}\...
"private String getPropName(Method method) {\n if (method == null) {\n return null;\n }\n String methodName = method.getName();\n int length = \"String_Node_Str\".length();\n String retValue = methodName.substring(length, length + 1).toUpperCase(Locale.getDefault()) + methodName.substring(length +...
"protected void calculateBarPositions(int _DataSize) {\n float barWidth = mBarWidth;\n float margin = mBarMargin;\n if (!mFixedBarWidth) {\n barWidth = (mGraphWidth / _DataSize) - margin;\n } else {\n float cumulatedBarWidths = barWidth * _DataSize;\n float remainingWidth = mGraphWidth ...
"private void loadWorkspace() {\n long t = SystemClock.uptimeMillis();\n final Context context = mContext;\n final ContentResolver contentResolver = context.getContentResolver();\n final PackageManager manager = context.getPackageManager();\n mItems.clear();\n final Cursor c = contentResolver.query(La...
"public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {\n if (getCurrentObject() == null) {\n initializeRecord(atts);\n }\n if ((null != xPathNode.getXPathFragment() && xPathNode.getXPathFragment().nameIsText()) || xpathNodeIsMixedContent) {\...
"public static void main(String[] args) {\n String calibDir = \"String_Node_Str\";\n String imageDir = \"String_Node_Str\";\n IntrinsicParameters param = UtilIO.loadXML(calibDir + \"String_Node_Str\");\n BufferedImage orig = UtilImageIO.loadImage(imageDir + \"String_Node_Str\");\n MultiSpectral<ImageFloa...
"private static Range parseRange(NestedDocument<QName> typeRange) {\n URI persistentIdentity = null;\n String displayId = null;\n Integer start = null;\n Integer end = null;\n URI orientation = null;\n String version = null;\n URI wasDerivedFrom = null;\n List<Annotation> annotations = new Array...
"public void widgetSelected(SelectionEvent e) {\n Shell activeShell = Display.getCurrent().getActiveShell();\n SelectDeleteProjectDialog dialog = new SelectDeleteProjectDialog(activeShell, true);\n if (dialog.open() == Dialog.OK) {\n CorePlugin.getDefault().getRepositoryLocalProviderService().resetXmiRe...
"public void setup() throws DockerException, IOException {\n testObj = new DockerOrchestrator(dockerMock, repoMock, fileOrchestratorMock, EnumSet.noneOf(BuildFlag.class), logger, dockerfileValidator);\n when(repoMock.src(idMock)).thenReturn(srcFileMock);\n when(repoMock.conf(idMock)).thenReturn(confMock);\n ...
"private RepositoryNode searchRepositoryNode(IRepositoryNode root, ERepositoryObjectType type) {\n if (root == null || type == null) {\n return null;\n }\n IRepositoryNode foundNode = null;\n List<IRepositoryNode> chindren = root.getChildren();\n for (IRepositoryNode repositoryNode : chindren) {\n...
"protected static DataItemHandle performInsertDataSetColumn(ResultSetColumnHandle model, Object target, Object targetParent) throws SemanticException {\n DataItemHandle dataHandle = DesignElementFactory.getInstance().newDataItem(null);\n DataSetHandle dataSet = (DataSetHandle) model.getElementHandle();\n dataH...
"private void logOverride(String name, Object definition) {\n if (definition != null) {\n log(WARN_OVERRIDING + '<' + name + '>', Project.MSG_INFO);\n }\n}\n"
"public void attribute(UnmarshalRecord unmarshalRecord, String namespaceURI, String localName, String value) {\n unmarshalRecord.removeNullCapableValue(this);\n Field xmlField = (Field) xmlDirectMapping.getField();\n CoreAbstractSession session = unmarshalRecord.getSession();\n Object realValue = unmarshalR...
"public static <A, B> T2<A, B> T2(A a, B b) {\n return new T2<A, B>(a, b);\n}\n"
"private String initURI() {\n if (mavenUri == null) {\n if (StringUtils.isEmpty(mavenUriFromConfiguration)) {\n String mvnUrisFromIndex = libManagerService.getMavenUriFromIndex(getModuleName());\n if (mvnUrisFromIndex != null) {\n final String[] split = mvnUrisFromIndex.sp...
"private boolean isWarmedUp(Layer<Map<String, Object>> l, double anomalyScore) {\n if (anomalyScore >= 0 && anomalyScore <= 0.1) {\n ++timesWithinThreshold;\n } else {\n timesWithinThreshold = 0;\n }\n if (timesWithinThreshold > 20) {\n return true;\n }\n return false;\n}\n"
"private void importResourceConfiguration(ImportConfigData importData, ISqlTransaction transaction) {\n String projectVersionId = (String) getOneRow(importData.getResourceData().get(RESOURCE_IDX)).get(\"String_Node_Str\");\n List<TableData> existingResourceData = new ArrayList<TableData>();\n initConfigData(ex...
"public void shouldWriteFromServerWithClient() {\n RecordingCacheWriter<String, String> recordingCacheWriter = new RecordingCacheWriter<>();\n CacheWriterServer<String, String> serverCacheWriter = new CacheWriterServer<>(10000, recordingCacheWriter);\n try {\n serverCacheWriter.open();\n CacheWri...
"public static void main(final String[] args) {\n final Model model = new Model();\n final Spot ref = model.getGraph().vertexRef();\n final Random random = new Random();\n final double[] pos = new double[3];\n final double[][] cov = new double[3][3];\n for (int i = 0; i < 1000000; ++i) {\n for ...
"public void testTmfTraceIndexing() throws Exception {\n assertEquals(\"String_Node_Str\", BLOCK_SIZE, fExperiment.getCacheSize());\n assertEquals(\"String_Node_Str\", NB_EVENTS, fExperiment.getNbEvents());\n assertEquals(\"String_Node_Str\", 1, fExperiment.getTimeRange().getStartTime().getValue());\n asser...
"protected void handleDrop() {\n final Object object = TemplateTransfer.getInstance().getObject();\n if (object == null || !(object instanceof TransferedObject)) {\n return;\n }\n updateTargetRequest();\n updateTargetEditPart();\n DropContextAnalyzer analyzer = new DropContextAnalyzer((Transfer...
"private void addPaperSupplyStates(final PTRPaper[] paperStates) {\n for (int i = 0; i < paperStates.length; i++) {\n if (PaperStatus.NOTSUPP.equals(paperStates[i])) {\n continue;\n }\n addRow(\"String_Node_Str\" + i, paperStates[i]);\n }\n}\n"
"private void unregisterWithRouterService() {\n Log.i(TAG, \"String_Node_Str\");\n if (isBound) {\n Message msg = Message.obtain();\n msg.what = TransportConstants.ROUTER_UNREGISTER_CLIENT;\n msg.replyTo = this.clientMessenger;\n Bundle bundle = new Bundle();\n bundle.putLong(Tr...
"protected void setContainerHeight() {\n if (!isDynamicHeight()) {\n if (BrowserInfo.get().isAndroid23()) {\n getElement().getStyle().setDisplay(Display.BLOCK);\n }\n calculateContainerHeight();\n scrollBodyPanel.setHeight(containerHeight + \"String_Node_Str\");\n if (Br...
"public AutoCloseable registerHandler(final Class<? extends T> messageType, final EventHandler<RemoteMessage<? extends T>> theHandler) {\n final EventHandler<RemoteMessage<? extends T>> handler = msgTypeToHandlerMap.put(messageType, theHandler);\n if (handler != null) {\n msgTypeToHandlerMap.replace(messag...
"private FactorGraph getUpdatedFactorGraph(FactorGraph fg, double[] params, boolean logDomain) {\n for (int a = 0; a < fg.getNumFactors(); a++) {\n Factor f = fg.getFactor(a);\n if (f instanceof GlobalFactor) {\n continue;\n } else if (f instanceof DenseFactor) {\n IntIter ...
"public void onClick(ClickEvent event) {\n boolean isValid = validator.test(inputBox.getText());\n if (isValid) {\n dialogBox.hide();\n callback.onSuccess(inputBox.getText());\n }\n}\n"
"public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {\n if (!(sender instanceof Player)) {\n sender.sendMessage(MessageUtils.mustBeIngameMessage);\n return true;\n }\n Player player = (Player) sender;\n HumanNPC npc = null;\n boolean returnva...
"public TestResult invoke(TestMethodExecutor testMethodExecutor) {\n if (testMethodExecutor == null)\n throw new IllegalArgumentException(\"String_Node_Str\");\n String testClass = testMethodExecutor.getInstance().getClass().getName();\n String testMethod = testMethodExecutor.getMethod().getName();\n ...
"protected Set<Long> cacheData(Set<Long> jobSet) throws IOFailure, IllegalState, ArgumentNotValid {\n ArgumentNotValid.checkNotNull(jobSet, \"String_Node_Str\");\n log.info(\"String_Node_Str\" + this.requestType + \"String_Node_Str\" + StringUtils.conjoin(\"String_Node_Str\", jobSet) + \"String_Node_Str\");\n ...
"public ConverterRegistry putCustom(Class<?> clazz, Converter<?> converter) {\n if (null == customConverterMap) {\n synchronized (this) {\n if (null == customConverter) {\n customConverter = new ConcurrentHashMap<>();\n }\n }\n }\n customConverter.put(clazz, c...
"public boolean performFinish() {\n boolean finish = mainPage.finish();\n if (finish) {\n selection = null;\n mainPage = null;\n }\n return finish;\n}\n"
"public void reloadLibrary(String reloadPath) throws SemanticException, DesignFileException {\n if (StringUtil.isEmpty(reloadPath))\n return;\n URL url = ModelUtil.getURLPresentation(reloadPath);\n String path = null;\n if (url != null)\n path = url.toExternalForm();\n if (path == null) {\n...