content stringlengths 40 137k |
|---|
"private void initUIContentsForComboCustomTypes() {\n comboCustomTypes.removeSelectionChangedListener(customChangedListener);\n List<String> allCustomTypeNames = null;\n if (xsdSimpleType.getSchema() != null) {\n allCustomTypeNames = Util.getAllCustomTypeNames(xsdSimpleType.getSchema());\n }\n if ... |
"public void startRequest(MRCRequest rq) {\n try {\n Args rqArgs = (Args) rq.getRequestArgs();\n final VolumeManager vMan = master.getVolumeManager();\n final FileAccessManager faMan = master.getFileAccessManager();\n Path p = new Path(rqArgs.path);\n VolumeInfo volume = vMan.getVo... |
"public void sendToServer(IMessage message) {\n channels.get(Side.CLIENT).attr(FMLOutboundHandler.FML_MESSAGETARGET).set(FMLOutboundHandler.OutboundTarget.TOSERVER);\n channels.get(Side.CLIENT).writeAndFlush(message).addListener(ChannelFutureListener.FIRE_EXCEPTION_ON_FAILURE);\n}\n"
|
"public String toString() {\n final StringBuilder b = new StringBuilder(this.preRelease.length() + this.buildMetaData.length() + TO_STRING_ESTIMATE);\n b.append(this.major).append(\"String_Node_Str\").append(this.minor).append(\"String_Node_Str\").append(this.patch);\n if (!this.preRelease.isEmpty()) {\n ... |
"public void taskComplete(RunTaskResult result) {\n Task task = jobService.getTask(result.taskId);\n DispatchJob job = frontEndDispatcher.getJob(task.getJobId());\n DispatchProc proc = dispatchService.getDispatchProc(result.procId);\n TaskState newState;\n if (result.exitStatus == 0) {\n newState ... |
"public void earthGrabSelf() {\n closestEntity = player;\n getGround();\n ParticleEffect.BLOCK_CRACK.display((ParticleEffect.ParticleData) new ParticleEffect.BlockData(blockType, blockByte), 1F, 1F, 1F, 0.1F, 100, player.getLocation(), 500);\n if (closestEntity != null) {\n ArrayList<Block> blocks = ... |
"public org.hl7.fhir.dstu2.model.Identifier convertIdentifier(org.hl7.fhir.dstu3.model.Identifier src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Identifier tgt = new org.hl7.fhir.dstu2.model.Identifier();\n copyElement(src, tgt);\n if (src.ha... |
"private void testByteBuffer(int len) {\n if (len < 4) {\n return;\n }\n Random r = new Random(len);\n CompressLZF comp = new CompressLZF();\n for (int pattern = 0; pattern < 4; pattern++) {\n byte[] b = new byte[len];\n switch(pattern) {\n case 0:\n break;\... |
"protected R doAsyncTask() {\n R r = null;\n r = _mJob.doJob();\n return r;\n}\n"
|
"protected boolean _isTopLevel() {\n NamedObj container = getContainer();\n if (container instanceof CompositeActor) {\n if (((CompositeActor) container).getExecutiveDirector() == null) {\n return true;\n } else {\n return false;\n }\n }\n}\n"
|
"public void receivedGday(Peer peer, Packet.GDay packet) {\n User u = new User(packet.nickname, peer.getAddress().toString());\n if (!peers.containsKey(u)) {\n this.peers.put(u, peer);\n System.out.println(u + \"String_Node_Str\" + peer.getAddress());\n }\n this.peers.get(u).receivedGDay();\n}... |
"private void initialize(String sql) throws SQLException {\n if (sql == null) {\n sql = \"String_Node_Str\";\n }\n originalSQL = sql;\n sqlCommand = sql;\n int len = sql.length() + 1;\n char[] command = new char[len];\n int[] types = new int[len];\n len--;\n sql.getChars(0, len, comman... |
"public polyglot.ast.Node leave(polyglot.ast.Node old, polyglot.ast.Node n, polyglot.visit.NodeVisitor visitor) {\n if (n instanceof polyglot.ast.LocalDecl) {\n localDecls.add(new polyglot.util.IdentityKey(((polyglot.ast.LocalDecl) n).localInstance()));\n }\n if (n instanceof polyglot.ast.Local) {\n ... |
"private void propaHadoopCfgChanges(IRepositoryNode repositoryNode) {\n if (repositoryNode == null || repositoryNode.getObject() == null) {\n return;\n }\n IHadoopClusterService hadoopClusterService = null;\n if (GlobalServiceRegister.getDefault().isServiceRegistered(IHadoopClusterService.class)) {\n... |
"public static Map<String, XmlBindings> getXmlBindingsFromProperties(Map properties, ClassLoader classLoader) {\n Map<String, List<XmlBindings>> bindings = new HashMap<String, List<XmlBindings>>();\n Object value = null;\n if (properties != null) {\n if ((value = properties.get(JAXBContextProperties.OXM... |
"public List<Map<String, Object>> getBlogsBy(String byString, String[] extraFields, int limit, boolean shouldHideJetpack) {\n if (db == null) {\n return new Vector<>();\n }\n if (shouldHideJetpack) {\n String hideJetpackArgs = String.format(\"String_Node_Str\", encryptPassword(\"String_Node_Str\"... |
"private static Map<Integer, JMethod> findRunAsyncMethods(JProgram program) throws NumberFormatException {\n Map<Integer, JMethod> splitPointToLoadMethod = new HashMap<Integer, JMethod>();\n for (JDeclaredType type : program.getDeclaredTypes()) {\n Matcher matcher = LOADER_CLASS_PATTERN.matcher(type.getNam... |
"public double squaredDistance(INDArray other) {\n double sd = 0.0;\n if (other instanceof IComplexNDArray) {\n IComplexNDArray n = (IComplexNDArray) other;\n IComplexNDArray nLinear = n.linearView();\n for (int i = 0; i < length; i++) {\n IComplexNumber diff = linearView().getComp... |
"void updateUserDefinedParameter(DataSetParameters parameters) {\n userDefinedParams = new ArrayList();\n if (parameters == null) {\n for (int i = 0; i < setDefinedParams.size(); i++) {\n tmpParams.add(((OdaDataSetParameterHandle) setDefinedParams.get(i)).getStructure());\n }\n } else ... |
"public ByteBuffer startRecordingAndReturnByteBuffer(final Object audioFormat1, final Object stop) throws SoundTransformException {\n final RecordSoundProcessor processor = this;\n if (!(audioFormat1 instanceof AudioFormat)) {\n throw new SoundTransformException(TargetDataLineRecordSoundProcessorErrorCode.... |
"private void computePartialTile2(final int subSwathIndex, final int burstIndex, Rectangle targetRectangle, final Map<Band, Tile> targetTileMap) throws Exception {\n try {\n final int rgOffset = (cohWinRg - 1) / 2;\n final int azOffset = (cohWinAz - 1) / 2;\n final int cohx0 = targetRectangle.x ... |
"protected float calcTerrainDetail(float x, float z) {\n float result = 0.0f;\n result += _pGen3.noiseNoiseWithOctaves(0.02f * x, 0.02f, 0.02f * z, 12);\n return result;\n}\n"
|
"protected IStructuredSelection getSelection() {\n IEvaluationContext context = (IEvaluationContext) event.getApplicationContext();\n Object selectVariable = context.getVariable(ISources.ACTIVE_CURRENT_SELECTION_NAME);\n if (selectVariable != null) {\n if (selectVariable instanceof IStructuredSelection)... |
"private Class classForName(String className, boolean silentFail) {\n try {\n return getClassLoader().loadClass(className);\n } catch (ClassNotFoundException e) {\n if (silentFail) {\n Message.info(\"String_Node_Str\" + className + \"String_Node_Str\" + _classpathURLs + \"String_Node_Str\... |
"void loadProperties() throws ConfigurationException {\n final File file = PropertiesUtil.findConfigFile(\"String_Node_Str\");\n if (null == file) {\n throw new ConfigurationException(\"String_Node_Str\");\n }\n s_logger.info(\"String_Node_Str\" + file.getAbsolutePath());\n InputStream propertiesS... |
"protected static void send(Message message, String template, Map<String, Object> params) {\n String bodyHtml = null;\n String bodyText = \"String_Node_Str\";\n try {\n Template templateHtml = TemplateLoader.load(template + \"String_Node_Str\");\n bodyHtml = templateHtml.render(params);\n ... |
"public Set<String> loadAllKeys() {\n if (sleepBeforeLoadAllKeys) {\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n countLoadAllKeys.incrementAndGet();\n Set<String> result = new HashSet<String>(store.keySet());\n... |
"public static boolean isEarthbendable(Player player, String ability, Block block) {\n Material material = block.getType();\n boolean valid = false;\n for (String s : config.getStringList(\"String_Node_Str\")) if (material == Material.getMaterial(s)) {\n valid = true;\n break;\n }\n if (isM... |
"public void execute() throws IOException {\n try {\n for (String tableName : getTableNames()) {\n StringBuilder sb = new StringBuilder();\n ResultSet rs = this.cursor.executeQuery(buildSelect(tableName));\n while (rs.next()) {\n StringBuilder recID = new String... |
"public void endElement(String namespaceURI, String localName, String qName) throws SAXException {\n Field xmlField = null;\n if (isCollection) {\n xmlField = (Field) ((BinaryDataCollectionMapping) mapping).getField();\n } else {\n xmlField = (Field) ((BinaryDataMapping) mapping).getField();\n ... |
"public void start(String executionId, IExecutionTracker executionTracker) {\n super.start(executionId, executionTracker);\n error = null;\n if (resource == null) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n TypedProperties properties = flowStep.getComponent().toTypedProperties(... |
"public void write(int address, int data, boolean word, long cycles) {\n address = address - offset;\n if (DEBUG) {\n log(\"String_Node_Str\" + Utils.hex(address, 4) + \"String_Node_Str\" + data + \"String_Node_Str\" + word);\n }\n switch(address) {\n case MPY:\n if (DEBUG)\n ... |
"public int doStartTag() {\n RequestContext requestContext = (RequestContext) this.pageContext.getAttribute(RequestContextAwareTag.REQUEST_CONTEXT_PAGE_ATTRIBUTE);\n if (date == null && getPath() != null) {\n try {\n String resolvedPath = ExpressionEvaluationUtils.evaluateString(\"String_Node_St... |
"public void testRecordSubtypeChain() throws Exception {\n RecordTypeBuilder builder = new RecordTypeBuilder(registry);\n builder.addProperty(\"String_Node_Str\", STRING_TYPE, null);\n JSType aType = builder.build();\n builder = new RecordTypeBuilder(registry);\n builder.addProperty(\"String_Node_Str\", ... |
"public String getRelativeName() {\n return isSeparateFile() ? ResourceUtil.getRelativePath(fileUri.toString(), baseUri.toString(), \"String_Node_Str\") : fileUri.toString();\n}\n"
|
"protected void onReliableMessageReceived(int from, byte[] msg) {\n info(\"String_Node_Str\" + from + \"String_Node_Str\" + Utility.byteArrayToString(msg));\n}\n"
|
"public boolean isCompatible(DLNAResource resource) {\n if (PlayerUtil.isAudio(resource, Format.Identifier.AC3) || PlayerUtil.isAudio(resource, Format.Identifier.ADPCM) || PlayerUtil.isAudio(resource, Format.Identifier.ADTS) || PlayerUtil.isAudio(resource, Format.Identifier.AIFF) || PlayerUtil.isAudio(resource, Form... |
"public void testParsingBlankImportFollowedByClassDeclaration_538() throws Exception {\n runNegativeTest(new String[] { \"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\" +... |
"public static void handleOnCreate(CellContent content, IRowData rowData, ExecutionContext context, boolean fromGrid) {\n try {\n Object generateBy = content.getGenerateBy();\n if (generateBy == null) {\n return;\n }\n ReportItemDesign cellDesign = (ReportItemDesign) generateBy... |
"public Node writeDescriptor(Node parent, WebBundleDescriptorImpl bundleDescriptor) {\n Element web = (Element) super.writeDescriptor(parent, bundleDescriptor);\n SunWebAppImpl sunWebApp = (SunWebAppImpl) bundleDescriptor.getSunDescriptor();\n appendTextChild(web, RuntimeTagNames.CONTEXT_ROOT, bundleDescriptor... |
"public void setLargeString(String largeString) {\n _largeString = processString(largeString);\n repaint();\n}\n"
|
"public <KB extends KnowledgeBase> KB load(Class<KB> klass) {\n openDB();\n Atomic.Var<KB> knowledgeBaseVar = db.getAtomicVar(\"String_Node_Str\");\n return knowledgeBaseVar.get();\n}\n"
|
"private int compareColumnValue(DataSetRow m1, DataSetRow m2, int depth) {\n if (depth >= _priorities.length)\n return 0;\n int columnNumber = _priorities[depth];\n int direction = _directions[columnNumber];\n int result = 0;\n Object o1 = m1.getPrettyObjectValue(columnNumber);\n Object o2 = m2... |
"private int encodeHash(long x, int p, int sp) {\n int idx = (int) (x >>> (64 - sp));\n int zeroTest = 0;\n if (p < sp) {\n zeroTest = idx << ((32 - sp) + p);\n }\n if (zeroTest == 0) {\n final int runLength = Long.numberOfLeadingZeros((x << this.p) | (1 << (this.p - 1))) + 1;\n int ... |
"public void setCallDateFromCallLogDateTime() {\n DateTimeFormatter formatter = DateTimeFormat.forPattern(\"String_Node_Str\");\n callDateFromCallLogDateTime = formatter.print(callLog.getStartTime());\n}\n"
|
"public void render(StringOutput sb, Renderer renderer, Object val, Locale locale, int alignment, String action) {\n int indent;\n String type;\n String title;\n String altText;\n if (val instanceof Map) {\n Map nodeData = (Map) val;\n Integer indentObj = (Integer) nodeData.get(AssessmentHe... |
"public TermsEnum intersect(CompiledAutomaton compiled, BytesRef startTerm) throws IOException {\n return new ExitableTermsEnum(_terms.intersect(compiled, startTerm), _exitObject);\n}\n"
|
"public void setBuyableCerts() {\n if (!mayCurrentPlayerBuyAnything())\n return;\n List<PublicCertificateI> certs;\n PublicCertificateI cert;\n PublicCompanyI comp;\n StockSpaceI stockSpace;\n Portfolio from;\n int price;\n int number;\n int playerCash = currentPlayer.getCash();\n P... |
"public void onComplete(Bundle values, FacebookException facebookException) {\n parseFacebookFeedError(values, facebookException);\n}\n"
|
"public void linkChains2Compound(Structure s) {\n List<Compound> compounds = s.getCompounds();\n for (Compound comp : compounds) {\n List<Chain> chains = new ArrayList<Chain>();\n List<String> chainIds = comp.getChainIds();\n if (chainIds == null)\n continue;\n for (String c... |
"public synchronized Integer getStartStatesTaskCount(String taskRoleName) {\n int startStatesTaskCount = 0;\n List<TaskStatus> taskStatusList = taskStatuseses.get(taskRoleName).getTaskStatusArray();\n for (TaskStatus taskStatus : taskStatusList) {\n if (!TaskStateDefinition.START_STATES.contains(taskSta... |
"private int findForAdd(long key) {\n int theHashCode = (int) key & 0x7FFFFFFF;\n long[] keys = this.keys;\n int hashSize = keys.length;\n int jump = 1 + theHashCode % (hashSize - 2);\n int index = theHashCode % hashSize;\n long currentKey = keys[index];\n while ((currentKey != NULL) && (currentKey... |
"public static Group[] search(Context context, String query, int offset, int limit) throws SQLException {\n String params = \"String_Node_Str\" + query.toLowerCase() + \"String_Node_Str\";\n StringBuffer queryBuf = new StringBuffer();\n queryBuf.append(\"String_Node_Str\");\n if (\"String_Node_Str\".equals(... |
"static RenderingHints mergeRenderingHints(RenderingHints defaultHints, RenderingHints hints) {\n RenderingHints mergedHints;\n if (hints == null || hints.isEmpty()) {\n mergedHints = defaultHints;\n } else if (defaultHints == null || defaultHints.isEmpty()) {\n mergedHints = hints;\n } else {... |
"public void run() {\n while (!stopOperation) {\n try {\n NetworkMessage msg = messageQueue.take();\n Schema schema;\n byte classType;\n if (msg instanceof PlayerRegistrationMessage) {\n schema = playerRegSchema;\n classType = 1;\n ... |
"public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) {\n RectangleInsets insets = getInsets();\n insets.trim(area);\n if (info != null) {\n info.setPlotArea(area);\n info.setDataArea(area);\n }\n drawBackground(g2, area);\n dra... |
"public void close() throws IOException {\n super.close();\n isClosed = true;\n warmUpStrategy = NoWarmUpStrategy.INSTANCE;\n synchronized (consumerMonitor) {\n consumerMonitor.notifyAll();\n }\n debug(\"String_Node_Str\" + inputStreamBuffer.size());\n debug(\"String_Node_Str\" + consumeStra... |
"private Position decode235(Channel channel, SocketAddress remoteAddress, String protocol, String[] values) throws ParseException {\n int index = 0;\n String type = values[index++].substring(5);\n if (!type.equals(\"String_Node_Str\") && !type.equals(\"String_Node_Str\") && !type.equals(\"String_Node_Str\") &&... |
"public void testSerializedProgress() throws Exception {\n DownloadManager manager = new DownloadManagerStub();\n FileManager fileman = new FileManagerStub();\n ActivityCallback callback = new ActivityCallbackStub();\n IncompleteFileManager ifm = new IncompleteFileManager();\n RemoteFileDesc rfd = newRFD... |
"double computeTreeSTBipartitions(MGDInference_DP inference) {\n double unweigthedConstant = 0;\n double weightedConstant = 0;\n int k = inference.trees.size();\n String[] leaves = stTaxa;\n int n = leaves.length;\n boolean duploss = (inference.optimizeDuploss == 3);\n geneTreeSTBCount = new HashMa... |
"public void testDeleteById() throws Exception {\n testSave();\n listAll = dao.getAll();\n int size = listAll.size();\n Assert.assertEquals(1, size, DB_MUST_BE_NOT_EMPTY);\n for (Persistent p : listAll) {\n dao.delete(p.getId());\n }\n testDBEmpty();\n}\n"
|
"public static BufferBackedFileMetadata getMetadata(BabuDB database, String dbName, long parentId, String fileName) throws BabuDBException {\n byte[] rcKey = BabuDBStorageHelper.createFileKey(parentId, fileName, FileMetadata.RC_METADATA);\n byte[] rcValue = database.directLookup(dbName, BabuDBStorageManager.FILE_... |
"public static DatabaseConnection fillDbConnectionInformation(DatabaseConnection dbConn, IMetadataConnection metadataConnection) {\n boolean noStructureExists = ConnectionHelper.getAllCatalogs(dbConn).isEmpty() && ConnectionHelper.getAllSchemas(dbConn).isEmpty();\n java.sql.Connection sqlConn = null;\n try {\n... |
"public Object previous() {\n if (nextIndex <= 0) {\n if (previous != null) {\n Object result = previous;\n previous = null;\n nextIndex--;\n lastIndex = nextIndex;\n return result;\n } else {\n throw new NoSuchElementException(\"String_... |
"protected Object normalizePut(LValue val) {\n if (val.isNil()) {\n return null;\n } else if (val.isUserData()) {\n LUserData ud = (LUserData) val;\n return new LUserData(new WeakReference(ud.m_instance), ud.m_metatable);\n } else {\n return new WeakReference(val);\n }\n}\n"
|
"public void testGetConnection() throws Exception {\n HazelcastClient client = mock(HazelcastClient.class);\n InetSocketAddress inetSocketAddress = new InetSocketAddress(\"String_Node_Str\", 5701);\n final Connection connection = mock(Connection.class);\n final CountDownLatch latch = new CountDownLatch(2);\... |
"public void spawn() {\n if (enpc == null) {\n WorldServer ws = ((CraftWorld) l.getWorld()).getHandle();\n MinecraftServer ms = ((CraftServer) ws.getServer()).getServer();\n enpc = new EntityNPC(ms, ws, n, new ItemInWorldManager(ws));\n enpc.setLocation(l.getX(), l.getY(), l.getZ(), l.get... |
"private void setSourceWin32Exe() throws IOException {\n sourceWin32Exe = new File(info.libDir, SOURCE_WIN32_EXE_FILENAME);\n if (!sourceWin32Exe.isFile()) {\n InputStream in = null;\n FileOutputStream out = null;\n try {\n in = WindowsService.class.getResourceAsStream(\"String_Nod... |
"protected void parseToken(Parser parser, IToken token) throws SyntaxError {\n boolean parsed;\n try {\n parsed = parser.parse(this, token);\n } catch (SyntaxError error) {\n throw error;\n } catch (Exception ex) {\n String message = ex.getMessage();\n if (message == null) {\n ... |
"public void updatePanel() {\n System.out.println(\"String_Node_Str\");\n Robot robot = Robot.getInstance();\n gps_switch.setState(robot.getGpsState());\n gps_switch.repaint();\n IMU_switch.setState(Robot.getInstance().getImuState());\n IMU_switch.repaint();\n frontCam_switch.setState(Robot.getInst... |
"public ColumnBinaryMakerConfig getColumnBinaryMakerConfig(final ColumnBinaryMakerConfig commonConfig, final IColumnAnalizeResult analizeResult) {\n ColumnBinaryMakerConfig currentConfig = new ColumnBinaryMakerConfig(commonConfig);\n StringColumnAnalizeResult castColumnAnalizeResult = (StringColumnAnalizeResult) ... |
"private HashMap<Integer, String> getSeatDatas(int classId) throws SQLException {\n HashMap<Integer, String> map = new HashMap<Integer, String>();\n SafeResultSet resultSet = DataBase.getInstance().executeQuery(\"String_Node_Str\", classId);\n while (resultSet.next()) {\n map.put(resultSet.getInt(\"Stri... |
"public void testGetFileForOutput() throws IOException {\n CachingFileManager fm = new CachingFileManager(CachingArchiveProvider.getDefault(), bCp, null, SourceLevelUtils.JDK1_8, false, true);\n JavaFileObject res = (JavaFileObject) fm.getFileForOutput(StandardLocation.CLASS_PATH, \"String_Node_Str\", \"String_No... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n setContentView(R.layout.activity_linechart);\n tvX = (TextView) findViewById(R.id.tvXMax);\n tvY = ... |
"public void modifyText(ModifyEvent e) {\n metadata.put(IParameterConstant.ANALYSIS_AUTHOR, authorText.getText());\n getConnectionParams().setMetadate(metadata);\n}\n"
|
"private Node createExternObjectLit(Node exportedObjectLit) {\n Node lit = IR.objectlit();\n lit.setTypeI(exportedObjectLit.getTypeI());\n lit.setJSDocInfo(buildEmptyJSDoc());\n int index = 1;\n for (Node child = exportedObjectLit.getFirstChild(); child != null; child = child.getNext()) {\n if (ch... |
"public void testSetReplyToAddressFromDestinationWithNullDestination() {\n AmqpJmsMessageFacade message = Mockito.mock(AmqpJmsMessageFacade.class);\n helper.setReplyToAddressFromDestination(message, null);\n Mockito.verify(message).setReplyToAddress(null);\n Mockito.verify(message).removeAnnotation(REPLY_TO... |
"private void addParticleDetail(XSDSchema xsdSchema, XSDParticle xsdParticle, ATreeNode parentNode, String currentPath) throws OdaException, IllegalAccessException, InvocationTargetException {\n XSDTerm xsdTerm = xsdParticle.getTerm();\n if (xsdTerm instanceof XSDElementDeclaration) {\n XSDElementDeclarati... |
"private void initLineChart() {\n mLineChart.setDescription(\"String_Node_Str\");\n mLineChart.setDragEnabled(false);\n mLineChart.setScaleEnabled(false);\n mLineChart.setTouchEnabled(true);\n mLineChart.setDrawGridBackground(false);\n mLineChart.setDrawBorders(false);\n mLineChart.getXAxis().setPo... |
"protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object obj, BindException errors) throws Exception {\n HttpSession httpSession = request.getSession();\n String view = getFormView();\n if (!errors.hasErrors()) {\n User loginUser = Context.getAuthenticatedUser();... |
"public void lock() {\n if (!lockRequired()) {\n return;\n }\n try {\n synchronized (lock) {\n while (checkStateBeforeLocking()) {\n if (timeout != -1) {\n lock.wait(timeout);\n } else {\n lock.wait();\n ... |
"private PopupMenu createPopupMenu() {\n PopupMenu popup = new PopupMenu(getContext(), popupMenuButton);\n if (!session.isPieceSelected(pieceIndex)) {\n popup.getMenu().add(Menu.NONE, MENU_ADD_PIECE, Menu.NONE, R.string.armor_set_builder_add_piece);\n } else {\n popup.getMenu().add(Menu.NONE, MEN... |
"private void addValueToDocPartRow(Map<Integer, Map<String, List<KVValue<?>>>> currentDocPartRow, TableRef tableRef, Integer pid, Integer seq, KVValue<?> value) {\n if (seq == null) {\n setDocPartRowValue(currentDocPartRow, tableRef, pid, null, ImmutableList.of(value));\n } else {\n addToDocPartRow(... |
"public org.hl7.fhir.dstu2.model.TestScript.TestScriptContactComponent convertTestScriptContactComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptContactComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.TestScript.TestScriptContactCompo... |
"public void handleEvent(FutureEvent<Set<URN>> event) {\n LOG.debugf(\"String_Node_Str\", file);\n removeFutureForFile(file);\n if (contains(fd)) {\n addUrnsToFileDesc(fd, metadata, event, task, oldFileDesc);\n }\n if (event.getType() != FutureEvent.Type.CANCELLED) {\n broadcastFinished(fil... |
"private final void clearUnusedColumnHints(DataSetHandle dataSetHandle, IResultMetaData metaData) throws BirtException {\n PropertyHandle handle = dataSetHandle.getPropertyHandle(DataSetHandle.COLUMN_HINTS_PROP);\n if (handle != null && handle.getListValue() != null) {\n ArrayList list = handle.getListValu... |
"private void modifySourceStaticFieldInstructionsInTargetClass(MethodDeclaration sourceMethod, MethodDeclaration newMethodDeclaration, ASTRewrite targetRewriter) {\n ExpressionExtractor extractor = new ExpressionExtractor();\n List<Expression> sourceVariableInstructions = extractor.getVariableInstructions(sourceM... |
"public boolean apply(Game game, Ability source, Ability abilityToModify) {\n Player controller = game.getPlayer(abilityToModify.getControllerId());\n if (controller != null) {\n Mana mana = abilityToModify.getManaCostsToPay().getMana();\n int reduceMax = mana.getColorless();\n if (reduceMax ... |
"private void updateMinMax() {\n if (model == null || model.getInputConfig() == null || cmbMin == null || cmbMin.isDisposed()) {\n return;\n }\n final List<String> minItems = new ArrayList<String>();\n final List<String> maxItems = new ArrayList<String>();\n minItems.add(ITEM_ALL);\n int length... |
"private void addBranch(final Spot start, final double vx, final double vy, final int iteration, final int nDivisions, final int nFramesPerDivision) {\n if (iteration >= nDivisions) {\n return;\n }\n final Spot previousSpot = model.getGraph().vertexRef();\n final Spot spot = model.getGraph().vertexRe... |
"public boolean appliesToTraceType(Class<? extends ITmfTrace> traceclass) {\n boolean applies = false;\n final IConfigurationElement[] tracetypeCE = fCe.getChildren(TmfAnalysisModuleSourceConfigElement.TRACETYPE_ELEM);\n for (IConfigurationElement element : tracetypeCE) {\n Class<?> applyclass;\n ... |
"public static void handleOnRender(IAutoTextContent content, ExecutionContext context) {\n Object generateBy = content.getGenerateBy();\n if (generateBy == null) {\n return;\n }\n ReportItemDesign autoTextDesign = (ReportItemDesign) generateBy;\n if (!needOnRender(autoTextDesign)) {\n retur... |
"public void doStartupSanityChecks() {\n ColorModel colorModel = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration().getColorModel();\n int[] bitAllocations = colorModel.getComponentSize();\n int bitDepth = bitAllocations[0] + bitAllocations[1] + bitAllocations[... |
"private ModelGraveStone getMemorialModel(int memorialType) {\n switch(memorialType) {\n case 1:\n return obelisk;\n case 2:\n return new ModelSteveStatueMemorial(this);\n case 3:\n return villagerStatue;\n case 4:\n return angelStatue;\n ... |
"private void hideView() {\n if (mViewDisplayed && mRootView != null) {\n mWindowManager.removeView(mRootView);\n mViewDisplayed = false;\n }\n}\n"
|
"public void testIObject1() throws Exception {\n testTypesWithExtraExterns(EXTERNS_WITH_IOBJECT_DECLS, LINE_JOINER.join(\"String_Node_Str\", \"String_Node_Str\"));\n}\n"
|
"private Long shiftDownLeft(Long position) {\n Long dlShift = position >>> 7;\n return new Long(dlShift & ~RIGHT_MASK);\n}\n"
|
"public void initialize(String currentPerspective) {\n this.currentPerspective = currentPerspective;\n nodeAndProject = new HashMap<Object, List<Project>>();\n List<IRepositoryNode> nodes = null;\n String urlBranch = null;\n if (ProjectManager.getInstance().getCurrentBranchURL(project) != null) {\n ... |
"public ResolverHook begin(Collection<BundleRevision> triggers) {\n return new RegionResolverHook(this.regionMembership, this.importedPackages, triggers);\n}\n"
|
"public boolean backupSnapshotToSecondaryStorage(SnapshotVO ss) {\n long snapshotId = ss.getId();\n SnapshotVO snapshot = _snapshotDao.acquireInLockTable(snapshotId);\n if (snapshot == null) {\n throw new CloudRuntimeException(\"String_Node_Str\" + ss);\n }\n try {\n snapshot.setStatus(Snap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.