content stringlengths 40 137k |
|---|
"private void processWritePossible() {\n ClassLoader oldCL;\n if (Globals.IS_SECURITY_ENABLED) {\n PrivilegedAction<ClassLoader> pa = new PrivilegedGetTccl();\n oldCL = AccessController.doPrivileged(pa);\n } else {\n oldCL = Thread.currentThread().getContextClassLoader();\n }\n try {... |
"public void setSorted(boolean sortedState) {\n this.sortedState = sortedState;\n if (sortedState) {\n if (targetPositionOffsets == null) {\n throw new UnsupportedOperationException(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n }\n }\n}\n"
|
"public Sprite copy() {\n return new Sprite(this);\n}\n"
|
"public void testShutdownAfterCheckpoint() throws Exception {\n database = BabuDBFactory.createBabuDB(new BabuDBConfig(baseDir, baseDir, 1, 0, 0, SyncMode.SYNC_WRITE, 0, 0, compression, maxNumRecs, maxBlockFileSize, true, 0, Logging.LEVEL_DEBUG));\n Database db = database.getDatabaseManager().createDatabase(\"Str... |
"private void renderHistogram(GL gl, float x, float y, float lenght, float height, int selected_Axis) {\n float[] fArMappingColor = new float[] { 0.0f, 0.0f, 0.0f };\n DrawRectangularSelection(gl, x, y, 0.f, width, height, fArMappingColor);\n String sLabel = set.get(selected_Axis).getLabel();\n float fScali... |
"public BuildOptions apply(BuildOptions buildOptions) {\n BuildOptions result = buildOptions.clone();\n if (!appleCrosstoolTransitionIsAppliedForAllObjc(buildOptions)) {\n return buildOptions;\n }\n String cpu = Platform.cpuStringForTarget(buildOptions.get(AppleCommandLineOptions.class).applePlatform... |
"public void onPlayerInteract(PlayerInteractEvent event) {\n if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {\n Player player = event.getPlayer();\n Block block = event.getClickedBlock();\n ItemStack itemInHand = player.getItemInHand();\n if (itemInHand.getType() == Material.GOLD_HOE)... |
"protected void handleAnchor(Element ele, IContent content) {\n if (ele.getAttribute(\"String_Node_Str\").trim().length() != 0) {\n content.setBookmark(ele.getAttribute(\"String_Node_Str\"));\n } else {\n content.setBookmark(ele.getAttribute(\"String_Node_Str\"));\n }\n if (ele.getAttribute(\"... |
"public void testBoundsErrorBehaviour() {\n boolean exceptionThrown = false;\n try {\n cache.get(26);\n } catch (IndexOutOfBoundsException e) {\n exceptionThrown = true;\n }\n if (exceptionThrown == false) {\n fail(\"String_Node_Str\");\n }\n for (int i = 0; i < 25; i++) {\n ... |
"protected void dirTextModified() {\n File file = new File(dirTxt.getText());\n if (file.exists()) {\n repositoryTree.setInput(file);\n repositoryTree.expandAll();\n TreeItem[] topItems = repositoryTree.getTree().getItems();\n for (TreeItem treeItem : topItems) {\n repositor... |
"private DataWriter writeString(String value) {\n writeValueStart();\n if (value == null) {\n if (mode == JSON)\n write(\"String_Node_Str\");\n else if (mode == HTML)\n write(\"String_Node_Str\");\n } else {\n if (mode == JSON)\n write(JSONObject.valueToStr... |
"private void registerInternal(final JobID id, final String[] requiredJarFiles) throws IOException {\n while (this.lockMap.putIfAbsent(id, LOCK_OBJECT) != null) ;\n try {\n if (incrementReferenceCounter(id) > 1) {\n return;\n }\n if (this.libraryManagerEntries.containsKey(id)) {\n ... |
"public final No_squares_or_semicolonContext no_squares_or_semicolon() throws RecognitionException {\n No_squares_or_semicolonContext _localctx = new No_squares_or_semicolonContext(_ctx, getState());\n enterRule(_localctx, 38, RULE_no_squares_or_semicolon);\n int _la;\n try {\n enterOuterAlt(_localct... |
"public void decode2D(byte[] buffer, byte[] compData, int startX, int height, long tiffT4Options) {\n this.data = compData;\n compression = 3;\n bitPointer = 0;\n bytePointer = 0;\n int scanlineStride = (w + 7) / 8;\n int a0, a1, b1, b2;\n int[] b = new int[2];\n int entry, code, bits, color;\n ... |
"public static int getTheme(MaterialDialog.Builder builder) {\n boolean darkTheme = DialogUtils.resolveBoolean(builder.context, R.attr.md_dark_theme, builder.theme == Theme.DARK);\n builder.theme = darkTheme ? Theme.DARK : Theme.LIGHT;\n return darkTheme ? R.style.MD_Dark : R.style.MD_Light;\n}\n"
|
"protected Void doInBackground(ContentValues... values) {\n db.getWritableDatabase().insert(DatabaseHelper.TABLE, DatabaseHelper.TITLE, values[0]);\n return (doQuery());\n}\n"
|
"public void run() {\n log.debug(\"String_Node_Str\");\n while (!closed) {\n try {\n log.debug(\"String_Node_Str\");\n if (sessionContext.isLogRespXML())\n parser.parse(new InputSource(new TeeInputStream(inStream, new FileOutputStream(sessionContext.getLogFileXML()))));... |
"private Predicate similarity(CriteriaBuilder criteriaBuilder, Expression<String> nameExpression, String nameValue, Expression<String> firstNameExpression, String firstNameValue) {\n Expression<String> fullNameExpression;\n String fullnameValue;\n if (firstNameExpression != null && firstNameValue != null) {\n ... |
"public void handleSubjectChange(ID from, final String newSubject) {\n if (!chatRoomTab.getInputText().isDisposed()) {\n chatRoomTab.getInputText().getDisplay().asyncExec(new Runnable() {\n\n public void run() {\n chatRoomTab.setSubject(newSubject);\n }\n });\n}\n"
|
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_content_editor);\n setTitle(\"String_Node_Str\");\n if (getIntent().getExtras() != null) {\n findViews();\n toolbarExtra.inflateMenu(R.menu.content_editor_extra);\n ... |
"public static List<Object> matchDecoder(Event e, Object instanceType, List<Decoder<? extends Object, ?>> decoders, List<Object> decodedObjects) {\n for (Decoder d : decoders) {\n Class<?>[] typeArguments = TypeResolver.resolveArguments(d.getClass(), Decoder.class);\n if (instanceType != null && typeAr... |
"public void run() {\n String loading = \"String_Node_Str\";\n view.getHintPanel().setForeground(Color.RED);\n view.setHintMessage(loading);\n if (!model.isReasonerSet() || model.getIsKnowledgeSourceIsUpdated() == true) {\n model.setKnowledgeSource();\n model.setReasoner();\n }\n reasone... |
"public static it.acubelab.batframework.data.Annotation translateAnnotation2BatAnnotation(Annotation annotation) {\n int wikiId = -1;\n if (annotation instanceof DisambiguatedAnnotation) {\n wikiId = DBpediaToWikiId.getId(((DisambiguatedAnnotation) annotation).getUri());\n }\n return new it.acubelab.... |
"public List<String> listRoles(String userId, String domainName) {\n debug(\"String_Node_Str\");\n List<String> roles = new ArrayList<String>();\n try {\n Domains domains = domainStore.getDomains(domainName);\n List<Domain> domainList = domains.getDomains();\n if (domainList.size() == 0) {... |
"public boolean isHandledByAgricraft(ItemStack seed) {\n return CropPlantHandler.isValidSeed(seed);\n}\n"
|
"public void onEntityDamage(EntityDamageEvent EntityDamaged) {\n if (EntityDamaged.isCancelled() || (EntityDamaged.getDamage() == 0)) {\n return;\n }\n if (EntityDamaged instanceof EntityDamageByEntityEvent) {\n EntityDamageByEntityEvent e = (EntityDamageByEntityEvent) EntityDamaged;\n Ent... |
"public ElectricityPack getRequest() {\n if (this.getTurret(false) != null) {\n if (this.wattsReceived < this.getTurret(false).getFiringRequest()) {\n return new ElectricityPack(Math.max(turret.getFiringRequest() / this.getTurret(false).getVoltage(), 0), this.getTurret(false).getVoltage());\n ... |
"public void testNonHasMavenCoordinatesBuildRule() throws Exception {\n assumeFalse(\"String_Node_Str\", FakeBuildRule.class.isAssignableFrom(HasMavenCoordinates.class));\n SourcePathResolver sourcePathResolver = new SourcePathResolver(new SourcePathRuleFinder(resolver));\n BuildRule rule = new FakeBuildRule(\... |
"public void canUploadFiles() throws Exception {\n final List<Boolean> fileExistence = Arrays.asList(true, false, true);\n Capture<FrontendRequest> containsRequest = EasyMock.newCapture();\n FrontendResponse containsResponse = new FrontendResponse();\n containsResponse.setType(FrontendRequestType.CAS_CONTAI... |
"void init(ChannelPipeline pipeline) throws Exception {\n pipeline.addLast(\"String_Node_Str\", sslHandlerFactory.create());\n pipeline.addLast(\"String_Node_Str\", new HttpResponseEncoder());\n pipeline.addLast(\"String_Node_Str\", new HttpRequestDecoder());\n pipeline.addLast(\"String_Node_Str\", new Http... |
"private void parseField(final XMLStreamReader reader, final String pluginIdentifier, final CtClass ctClass, final String tag, final List<String> fields) throws XMLStreamException {\n FieldsTag modelTag = FieldsTag.valueOf(tag.toUpperCase(Locale.ENGLISH));\n if (!getBooleanAttribute(reader, \"String_Node_Str\", t... |
"public static void suspend() {\n LOGGER.info(\"String_Node_Str\");\n state.realTime.set(getRealTime());\n Player.state.serialize();\n player.dispose();\n}\n"
|
"private void fillArray(Object array, String attributeName, Class<?> elementType, Type genericElementType, List<Annotation> annotations, ManufacturingContext manufacturingCtx, Map<String, Type> typeArgsMap) throws InstantiationException, IllegalAccessException, InvocationTargetException, ClassNotFoundException {\n C... |
"public VolumeResponse createVolumeResponse(Volume volume) {\n VolumeResponse volResponse = new VolumeResponse();\n volResponse.setId(volume.getId());\n if (volume.getName() != null) {\n volResponse.setName(volume.getName());\n } else {\n volResponse.setName(\"String_Node_Str\");\n }\n v... |
"public int getNumberOfSegments() {\n int n = branches.size();\n if (n == 0) {\n return 1;\n }\n BranchCoverageData branch = branches.get(0);\n Integer sourceLine = branch.getLine();\n int count = 2;\n for (int i = 1; i < n; i += 2) {\n branchData = branches.get(i);\n Integer t... |
"public void removeDisabledSpawner(Location spawner, EntityType mobname) {\n int startx = spawner.getBlockX() - 4;\n int endx = startx + 8;\n int starty = spawner.getBlockY() - 1;\n int endy = starty + 8;\n int startz = spawner.getBlockZ() - 4;\n int endz = startz + 8;\n disabledspawnerlocs.remove(... |
"private void writeRunBorder(String borderStyle, String color, CSSValue borderWidth) {\n writer.openTag(\"String_Node_Str\");\n writeBorderProperty(borderStyle, color, borderWidth, 0);\n writer.closeTag(\"String_Node_Str\");\n}\n"
|
"public static boolean checkForValidCombo(Player player) {\n List<ChiCombo> combo = instances.get(player);\n for (List<ChiCombo> knownCombo : knownCombos) {\n int size = knownCombo.size();\n if (combo.size() < size)\n continue;\n boolean isValid = true;\n for (int i = 1; i <... |
"private void doOpenResult(UserRequest ureq, AssessmentTestSession session) {\n if (resultCtrl != null)\n return;\n FileResourceManager frm = FileResourceManager.getInstance();\n File fUnzippedDirRoot = frm.unzipFileResource(session.getTestEntry().getOlatResource());\n URI assessmentObjectUri = qtiSe... |
"private void processDataAvailable() {\n ClassLoader oldCL;\n if (Globals.IS_SECURITY_ENABLED) {\n PrivilegedAction<ClassLoader> pa = new PrivilegedGetTccl();\n oldCL = AccessController.doPrivileged(pa);\n } else {\n oldCL = Thread.currentThread().getContextClassLoader();\n }\n try {... |
"public void testWaitUntilTextPresentPos() {\n Grid.driver().get(url);\n WebDriverWaitUtils.waitUntilTextPresent(text);\n}\n"
|
"public static void launch(String path) throws IOException {\n if (!loadedWithoutErrors) {\n throw new IOException(\"String_Node_Str\" + errorMessage);\n }\n Object browser = locateBrowser();\n if (browser == null) {\n throw new IOException(\"String_Node_Str\" + errorMessage);\n }\n Stri... |
"public void addEntity(Entity e) {\n Controller controller = e.getController();\n if (controller instanceof BlockController) {\n Point pos = e.getPosition();\n setBlockController(pos.getBlockX(), pos.getBlockY(), pos.getBlockZ(), (BlockController) controller);\n }\n this.allocate((SpoutEntity)... |
"public void clearProxies() {\n for (KunderaProxy proxy : proxies.values()) {\n proxy.getKunderaLazyInitializer().setOwner(null);\n proxy.getKunderaLazyInitializer().setInitialized(false);\n }\n}\n"
|
"public void addDiskInMegs(Long diskInMegs) {\n this.diskInMegs = plus(this.diskInMegs, diskInMegs);\n}\n"
|
"public ArrayList<Line> getDiagonalLine() {\n ArrayList<Line> diagonalLine = new ArrayList<Line>();\n int num = diagonalCount >> 1;\n double x = 2d / (diagonalCount + 1) * width;\n double y = 2d / (diagonalCount + 1) * height;\n if (diagonalCount % 2 == 1) {\n diagonalLine.add(new Line(coordorigin... |
"protected Control createDialogArea(Composite parent) {\n GridLayout glContent = new GridLayout();\n glContent.numColumns = 2;\n glContent.horizontalSpacing = 5;\n glContent.verticalSpacing = 5;\n cmpContent = new Composite(parent, SWT.NONE);\n cmpContent.setLayout(glContent);\n cmpContent.setLayou... |
"public static Object getSAPValue(SAPConnection connection, String value) {\n if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getClient())) {\n return connection.getClient();\n } else {\n return TalendQuoteUtils.addQuotes(connection.getClient())... |
"public static String getHtmlPage(Context context, RssItem rssItem, boolean showHeader) {\n String feedTitle = \"String_Node_Str\";\n String favIconUrl = null;\n Feed feed = rssItem.getFeed();\n int[] colors = ColorHelper.getColorsFromAttributes(context, R.attr.dividerLineColor, R.attr.rssItemListBackground... |
"public void testExecuteStatements() throws Exception {\n String tenantId = getOrganizationId();\n String tableName = initATableValues(tenantId, getDefaultSplits(tenantId), getUrl());\n String ptsdbTableName = generateUniqueName();\n String statements = \"String_Node_Str\" + tableName + \"String_Node_Str\" ... |
"public Object getValueAt(int row, int col) {\n ExerciseSample sample = exercise.getSampleList()[row];\n switch(col) {\n case COLUMN_TIME:\n return Integer.valueOf((int) (sample.getTimestamp() / 1000));\n case COLUMN_HEARTRATE:\n return Short.valueOf(sample.getHeartRate());\n ... |
"protected String uniqueName(String prefix, String preferredSuffix, String counterName) {\n if (preferredSuffix != null) {\n prefix += preferredSuffix;\n }\n if (lookupDef(prefix) == null) {\n return prefix;\n }\n String name = null;\n do {\n long counter = nextCounterVal(counterN... |
"public void run() {\n Timber.d(\"String_Node_Str\", params.getJobId());\n service.jobFinished(params, false);\n}\n"
|
"public void test_MultiPassFilterGroup() throws Exception {\n String sqlStatement = \"String_Node_Str\" + getTestTableName();\n ((OdaDataSetDesign) this.dataSet).setQueryText(sqlStatement);\n IBaseExpression[] expressions = new IBaseExpression[] { new ScriptExpression(\"String_Node_Str\"), new ScriptExpression... |
"public String getForeignKeyList(int start, int limit, String value, String xpathForeignKey, String xpathInfoForeignKey) throws RemoteException, Exception {\n org.apache.log4j.Logger.getLogger(this.getClass()).debug(\"String_Node_Str\" + xpathForeignKey + \"String_Node_Str\" + xpathInfoForeignKey + \"String_Node_Str... |
"public void execute(RequestHandler handler, FtpRequestImpl request, FtpWriter out) throws IOException, FtpException {\n boolean success = false;\n IFtpConfig fconfig = handler.getConfig();\n IConnectionManager conManager = fconfig.getConnectionManager();\n IFtpStatistics stat = (IFtpStatistics) fconfig.get... |
"public void run(String arg) {\n ImagePlus imp = IJ.getImage();\n if (null == imp) {\n IJ.showMessage(\"String_Node_Str\");\n return;\n }\n if (imp.getBitDepth() != 8) {\n IJ.showMessage(\"String_Node_Str\", \"String_Node_Str\");\n return;\n }\n GenericDialog gd = new Gener... |
"public void generateSchema(SchemaOutputResolver outputResolver, ErrorListener errorListener) throws IOException {\n XmlSchemaGenerator<TypeMirror, TypeDeclaration, FieldDeclaration, MethodDeclaration> xsdgen = new XmlSchemaGenerator<TypeMirror, TypeDeclaration, FieldDeclaration, MethodDeclaration>(types.getNavigato... |
"public void testLoadUserByUsername() throws JAXBException {\n UserDetails userDetails1 = null;\n UserDetailsService accountService = new UserService();\n Users users1 = new Users();\n User user1 = new User();\n user1.setName(\"String_Node_Str\");\n users1.setUsers(Arrays.asList(user1));\n String c... |
"protected boolean start(final String uri, final String localName, final String qName, final Attributes attributes) throws SAXException {\n if (vocabulary.isDefinition(localName)) {\n return true;\n } else if (vocabulary.isAssigment(localName)) {\n attr = null;\n dtype = null;\n atype ... |
"public String getType() {\n return isConfidential() && type.equals(\"String_Node_Str\") ? \"String_Node_Str\" : type.substring(0, 1).toUpperCase() + type.substring(1);\n}\n"
|
"protected void applyPullRules(IDOMNode sourceNode, IDOMNode targetNode) {\n try {\n for (Iterator pullRules = jControlModel.getPullRules().iterator(); pullRules.hasNext(); ) {\n JControlModel.PullRule pullRule = (JControlModel.PullRule) pullRules.next();\n if (sourcePatternDictionary.is... |
"private static boolean doesUserAcceptArtifactChange(final Artifact artifact, final ArtifactType artifactType) {\n if ((!relationsToDelete.isEmpty() || !attributesToPurge.isEmpty()) && !userAnsweredYesToAll) {\n StringBuffer sb = new StringBuffer(50);\n getConflictString(sb, artifact, artifactType);\n ... |
"public static IpVersion getIpVersion(String name) {\n IpVersion[] ipVersions = IpVersion.values();\n for (IpVersion ipVersion : ipVersions) {\n if (ipVersion.getName().equalsIgnoreCase(name)) {\n return ipVersion;\n }\n }\n return null;\n}\n"
|
"public boolean isReconnectNeeded() {\n if (fileLockMethod != FileLock.LOCK_SERIALIZED) {\n return false;\n }\n long now = System.currentTimeMillis();\n if (now < reconnectCheckNext) {\n return false;\n }\n reconnectCheckNext = now + SysProperties.RECONNECT_CHECK_DELAY;\n if (lock == ... |
"public void pointLight(float r, float g, float b, float x, float y, float z) {\n if (lightCount == MAX_LIGHTS) {\n throw new RuntimeException(\"String_Node_Str\" + MAX_LIGHTS + \"String_Node_Str\");\n }\n colorCalc(r, g, b);\n lightDiffuse[lightCount][0] = calcR;\n lightDiffuse[lightCount][1] = c... |
"protected void _branchBlocked(ProcessReceiver rcvr) {\n synchronized (_internalLock) {\n _branchesBlocked++;\n if (_branchesBlocked == _branchesStarted) {\n _getDirector()._actorBlocked(rcvr);\n _blocked = true;\n }\n if (rcvr.isWriteBlocked()) {\n _write... |
"private static org.hl7.fhir.dstu2.model.StructureDefinition.StructureDefinitionKind convertStructureDefinitionKind(org.hl7.fhir.dstu3.model.StructureDefinition.StructureDefinitionKind src) throws FHIRException {\n if (src == null)\n return null;\n switch(src) {\n case PRIMITIVETYPE:\n re... |
"public Object[] getContentsValue(long millis, long contents, long maxContents) {\n if (showdiff) {\n if (prevMillis == 0 || millis <= prevMillis + 100) {\n prevMillis = millis;\n prevContents = contents;\n return new Object[] { contents, maxContents, 0L };\n } else {\n... |
"protected IngestionResult addNewGenericEntity(EntityType entityInfo, Connection connection) throws IngestException, SQLException {\n GenericEntityType genericEntity = entityInfo.getGenericEntity();\n IngestionResult ingestionResult = null;\n if (KomaduUtils.manageDBLock(DBLockConstants.LOCK_ACQUIRE, genericEn... |
"public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {\n MDMXSDSchemaEntryDialog dlg = new MDMXSDSchemaEntryDialog(shell.getShell(), \"String_Node_Str\");\n try {\n ArrayList<String> schemaList = new ArrayList<String>();\n XtentisPort port = getPort();\n WSDataModelPK[] xdmPKs... |
"public Boolean getBooleanFromString(String key) {\n Object obj = get(key);\n return Boolean.valueOf((String) obj);\n}\n"
|
"public void onComplete(invokeJsonRpc_call thriftResponse) {\n clientPool.release(client);\n try {\n String responseStr = thriftResponse.getResult();\n log.debug(\"String_Node_Str\", responseStr.trim());\n Response<JsonElement> response = JsonUtils.fromJsonResponse(responseStr, resultClass);\... |
"public void execute(PlotChunk<Chunk> pc) {\n FastChunk_1_9 fs = (FastChunk_1_9) pc;\n Chunk chunk = pc.getChunk();\n final World world = chunk.getWorld();\n ChunkWrapper wrapper = pc.getChunkWrapper();\n if (!toUpdate.containsKey(wrapper)) {\n toUpdate.put(wrapper, chunk);\n }\n chunk.load(... |
"public void setSequenceDictionary(final SAMSequenceDictionary dictionary) {\n this.contigMetaData.clear();\n final List<VCFHeaderLine> toRemove = new ArrayList<VCFHeaderLine>();\n for (final VCFHeaderLine line : mMetaData) {\n if (line instanceof VCFContigHeaderLine) {\n toRemove.add(line);\... |
"public boolean addComponentParts(World world, Random rand, StructureBoundingBox bb) {\n int centerX = sizeX >> 1, centerZ = sizeZ >> 1;\n for (int chunkX = 0; chunkX < 13; chunkX++) {\n for (int chunkZ = 0; chunkZ < 13; chunkZ++) {\n for (int a = 0; a < 16; a++) {\n for (int b = ... |
"private void checkStateServer() {\n if (clickedModules.isEmpty()) {\n return;\n }\n List<ActivatedModule> newClickedModules = new ArrayList<>();\n for (ActivatedModule cm : clickedModules) {\n cm.ticks--;\n if (cm.ticks > 0) {\n newClickedModules.add(cm);\n } else {\n... |
"protected boolean layoutChildren() {\n initialize();\n boolean hasNextPage = false;\n hasNextPage = traverseChildren();\n if (!hasNextPage) {\n isLast = true;\n clearCache();\n } else if (!context.isAutoPageBreak()) {\n clearCache();\n }\n if (!isRootEmpty() && !(isPageBreakAv... |
"public void map(KEYIN key, Text value, Context context) throws IOException, InterruptedException {\n if (delim == -1) {\n delim = splitter.detectDelim(value, info.getDigest().getColumnCount());\n }\n int nParts = splitter.split(value.getBytes(), value.getLength(), (byte) delim);\n SplittedBytes[] pa... |
"private HashMap<String, Edge> getPairEdges(Graph g, Node n) {\n HashMap<String, Edge> result = new HashMap<String, Edge>();\n Node tempInnerNode;\n Edge tempEdge;\n int otherOuterEnd, otherInnerEnd;\n HashMap<String, Edge> allOuterEdges = getEdges(n);\n for (Edge tempOuterEdge : allOuterEdges.values(... |
"public void testDiskCacheColumnBinding() throws Exception {\n String initialStr = System.getProperty(\"String_Node_Str\");\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n incomprehensiveColumnBinding();\n if (initialStr == null)\n System.clearProperty(\"String_Node_Str\");\n els... |
"private void fillListImages(LinearLayout listFilters) {\n ImageFilterFx[] fxArray = new ImageFilterFx[18];\n int p = 0;\n int[] drawid = { R.drawable.filtershow_fx_0005_punch, R.drawable.filtershow_fx_0000_vintage, R.drawable.filtershow_fx_0004_bw_contrast, R.drawable.filtershow_fx_0002_bleach, R.drawable.fil... |
"private boolean addSpeciesBipartitionToX(final STITreeCluster c1) {\n boolean added = false;\n STITreeCluster c1GT = GlobalMaps.taxonNameMap.getSpeciesIdMapper().getGeneClusterForSTCluster(stCluster);\n added |= this.addCompletedSpeciesFixedBipartionToX(c1GT, c1GT.complementaryCluster());\n return added;\n... |
"public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n indexPath(file, attrs);\n return FileVisitResult.CONTINUE;\n}\n"
|
"public void replication(RequestContext context, Asset asset) {\n final QueueSource queueSource;\n final HostIdentifier hostIdentifier;\n try {\n hostIdentifier = asset.findOrCreateView(HostIdentifier.class);\n queueSource = asset.findView(QueueSource.class);\n } catch (AssetNotFoundException ... |
"public void votePositiveComment(CommentVoVwFull comment) throws DataBaseException {\n switch(rateComment(comment, 1)) {\n case FROM_OPPOSED:\n comment.getRating().setNegative(comment.getRating().getNegative() - 1);\n case 1:\n comment.getRating().setPositive(comment.getRating().g... |
"public IMethod getMethod(Name name, IParameter[] parameters, int parameterCount) {\n if (this.body != null) {\n IMethod m = this.body.getMethod(name, parameters, parameterCount, concrete);\n if (m != null) {\n return m;\n }\n }\n return null;\n}\n"
|
"public boolean deleteShard(String shard) {\n Utils.require(!Utils.isEmpty(shard), \"String_Node_Str\");\n try {\n StringBuilder uri = new StringBuilder(\"String_Node_Str\");\n uri.append(Utils.urlEncode(m_appDef.getAppName()));\n uri.append(\"String_Node_Str\");\n uri.append(Utils.url... |
"public void tests() throws IOException, InterruptedException, ExecutionException {\n try {\n URL url = ClassLoader.getSystemResource(GOOD_ROOT);\n String dir = url.getFile().substring(0, url.getFile().length() - (\"String_Node_Str\" + GOOD_ROOT).length());\n if (File.separator.equals(\"String_N... |
"public void onCompleted(Exception e, PopcornTimeRpcClient.RpcResponse result) {\n if (e != null) {\n String videoId = mCurrentMap.get(\"String_Node_Str\").toString().replace(\"String_Node_Str\", \"String_Node_Str\");\n if (videoId != null && getActivity() != null) {\n Intent intent = YouTub... |
"public TableCell<Background, Boolean> call(TableColumn<Background, Boolean> p) {\n return new BackgroundButtonCell(imageHandler, backgroundList, bservice, windowManager.getStage());\n}\n"
|
"public void fireEvent(ClockTick event) {\n final List<LoadBalancerBackendInstance> allInstances = Lists.newArrayList();\n final List<LoadBalancerBackendInstance> stateOutdated = Lists.newArrayList();\n EntityTransaction db = Entities.get(LoadBalancerBackendInstance.class);\n try {\n allInstances.add... |
"private static void populateParameter(DataSetHandle modelDataSet, BaseDataSetDesign dteDataSet) {\n HashMap paramBindingCandidates = new HashMap();\n Iterator elmtIter = modelDataSet.parametersIterator();\n if (elmtIter != null) {\n while (elmtIter.hasNext()) {\n DataSetParameterHandle model... |
"public void upgradeLoadBalancingRules(Connection conn) {\n try {\n PreparedStatement pstmt = conn.prepareStatement(\"String_Node_Str\");\n ResultSet rs = pstmt.executeQuery();\n ArrayList<Object[]> lbs = new ArrayList<Object[]>();\n while (rs.next()) {\n Object[] lb = new Obje... |
"public float getFProperty(String key) {\n try {\n NumberFormat format = NumberFormat.getInstance(Locale.getDefault());\n Number number = format.parse(props.getProperty(key));\n return number.floatValue();\n } catch (NumberFormatException m) {\n Debug.print(\"String_Node_Str\" + key + ... |
"public void playlistConfigUpdated(PlaylistConfig oldPc, PlaylistConfig newPc) {\n long plId = newPc.getPlaylistId();\n Playlist p;\n synchronized (this) {\n p = playlists.get(plId);\n }\n if (p == null) {\n log.error(\"String_Node_Str\" + plId + \"String_Node_Str\");\n return;\n ... |
"public void shutdown() {\n live = false;\n if (selectorQueue != null) {\n selectorQueue.clear();\n }\n}\n"
|
"public void createControl(Composite parent) {\n Composite container = new Composite(parent, SWT.NONE);\n GridLayout gdLayout = new GridLayout(2, false);\n container.setLayout(gdLayout);\n String s = \"String_Node_Str\";\n Label nameLab = new Label(container, SWT.NONE);\n if (type != null) {\n ... |
"public void exportDirectory(RepositoryFile repositoryDir, OutputStream outputStream, String filePath) throws ExportException, IOException {\n addToManifest(repositoryDir);\n List<RepositoryFile> children = this.unifiedRepository.getChildren(new RepositoryRequest(String.valueOf(repositoryDir.getId()), true, 1, nu... |
"public String getHyperlink() {\n IHyperlinkAction hyperlinkAction = content.getHyperlinkAction();\n return hyperlinkAction == null ? null : hyperlinkAction.getHyperlink();\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.