Default cell method.

@param array $tables Tables list.
@param array $blacklist Blacklisted tables list.
@return array
488305
public function display($tables = null, $blacklist = null)
    {
        if (empty($tables)) {
            $connection = ConnectionManager::get('default');
            $schema = $connection->getSchemaCollection();
            $tables = $schema->listTables();
            ksort($tables);

            if (!empty($blacklist)) {
                $tables = array_diff($tables, $blacklist);
            }
        }

        $normal = [];
        foreach ($tables as $table => $config) {
            if (is_string($config)) {
                $config = ['table' => $config];
            }

            if (is_int($table)) {
                $table = $config['table'];
            }

            $config += [
                'action' => 'index',
                'title' => Inflector::humanize($table),
                'controller' => Inflector::camelize($table)
            ];

            $normal[$table] = $config;
        }

        return $this->set('tables', $normal);
    }
812871
protected function get_blacklisted_hosts() {
        global $CFG;
        if (!isset($CFG->curlsecurityblockedhosts)) {
            return [];
        }
        return array_filter(array_map('trim', explode("\n", $CFG->curlsecurityblockedhosts)), function($entry) {
            return !empty($entry);
        });
    }
200731
public function checkTables(array $tables)
    {
        $check = implode(',', $tables);

        $result = $this->getConnection()->pdo()->query("CHECK TABLE $check");

        return $result ? $result->fetchAll(PDO::FETCH_ASSOC) : $result;
    }
1243691
static function instance(array $whitelist, array $blacklist, array $aliaslist, $main_entity_id = \hlin\Auth::Unidentified, $main_entity_role = \hlin\Auth::Guest, \hlin\archetype\Logger $logger = null) {

		$i = new static;

		$i->whitelist = $whitelist;
		$i->blacklist = $blacklist;
		$i->aliaslist = $aliaslist;

		$i->id = $main_entity_id;
		$i->role = $main_entity_role;

		$i->logger = $logger;

		return $i;
	}
1163303
public function removeExcludedTables(array $tables): array
    {
        if (!$tables) {
            return [];
        }

        $filteredTables = [];
        $excludedTables = array_merge(
            [$this->db->schema->getRawTableName($this->migrationTable)],
            $this->excludeTables
        );

        foreach ($tables as $table) {
            if (!in_array($table, $excludedTables, true)) {
                $filteredTables[] = $table;
            }
        }

        return $filteredTables;
    }
20192
public java.util.Map<String, java.util.List<BlacklistEntry>> getBlacklistReport() {
        return blacklistReport;
    }
1058941
public static function out($data, $blackList)
    {
        if ($data) {
            $blackList = array_flip($blackList);

            //Filter
            foreach ($data as $key => $value) {
                $data[$key] = array_diff_key($value, $blackList);
            }
        }
        return $data;
    }
872751
private function getDefaultSortable()
    {
        if (config('columnsortable.default_first_column', false)) {
            $sortBy = array_first($this->sortable);
            if ( ! is_null($sortBy)) {
                return [$sortBy => config('columnsortable.default_direction', 'asc')];
            }
        }

        return null;
    }
548246
public function getMalusToCoverWithShield(Tables $tables): int
    {
        return $tables->getShieldUsageSkillTable()->getCoverMalusForSkillRank($this->getShieldUsage()->getCurrentSkillRank());
    }
784210
public function from($tables = null): IQueryBuilderHandler
    {
        if ($tables === null) {
            $this->statements['tables'] = null;

            return $this;
        }

        if (\is_array($tables) === false) {
            $tables = \func_get_args();
        }

        $tTables = [];

        foreach ((array)$tables as $key => $value) {
            if (\is_string($key) === true) {
                $this->alias($value, $key);
                $tTables[] = $key;
                continue;
            }

            $tTables[] = $value;
        }

        $tTables = $this->addTablePrefix($tTables, false);
        $this->statements['tables'] = $tTables;

        return $this;
    }
1174449
protected function buildMappingOnObject($source = null, array $blacklist = []):array {
        if(!is_object($source)) {
            return [];
        }

        try {
            $mapping = [];
            $reflection = new \ReflectionClass($source);
            $properties = $reflection->getProperties();

            foreach($properties as $key => $value) {
                if(!in_array($value->name, $blacklist))
                    $mapping[$value->name] = $value->name;

            }
            return $mapping;

        } catch (\Exception $exception) {
            return [];
        }
    }
692584
public static Pattern controlsTransportOfChemical(Blacklist blacklist)
	{
		Pattern p = new Pattern(SequenceEntityReference.class, "controller ER");
		p.add(linkedER(true), "controller ER", "controller generic ER");
		p.add(erToPE(), "controller generic ER", "controller simple PE");
		p.add(linkToComplex(), "controller simple PE", "controller PE");
		p.add(peToControl(), "controller PE", "Control");
		p.add(controlToConv(), "Control", "Conversion");
		p.add(new Participant(RelType.INPUT, blacklist, true), "Control", "Conversion", "input PE");
		p.add(linkToSimple(blacklist), "input PE", "input simple PE");
		p.add(new Type(SmallMolecule.class), "input simple PE");
		p.add(notGeneric(), "input simple PE");
		p.add(peToER(), "input simple PE", "changed generic SMR");
		p.add(new ConversionSide(ConversionSide.Type.OTHER_SIDE, blacklist, RelType.OUTPUT), "input PE", "Conversion", "output PE");
		p.add(equal(false), "input PE", "output PE");
		p.add(linkToSimple(blacklist), "output PE", "output simple PE");
		p.add(new Type(SmallMolecule.class), "output simple PE");
		p.add(notGeneric(), "output simple PE");
		p.add(peToER(), "output simple PE", "changed generic SMR");
		p.add(linkedER(false), "changed generic SMR", "changed SMR");
		p.add(new OR(
			new MappedConst(hasDifferentCompartments(), 0, 1),
			new MappedConst(hasDifferentCompartments(), 2, 3)),
			"input simple PE", "output simple PE", "input PE", "output PE");

		return p;
	}
202790
public function process(array $statementlist, SymbolTable $table=null) {
        if(is_null($table)) {
            $table = new SymbolTable;
        }
        $statementlist = $this->optimize($statementlist);

        $results = [];
        // Loop over every Statement and execute it.
        foreach($statementlist as $statement) {
            $results = array_merge(
                $results,
                (array) $statement->process($table)
            );
        }

        return $results;
    }
731221
public function enabledStdModules(Array $whiteList)
  {
    foreach ($this->stdModules as $moduleName) {
      if (!in_array($moduleName, $whiteList)) {
        vc_remove_element($moduleName);
      }
    }
  }
855157
private List<Cell> getCellsByTable(String nameSpace) {
        String tName = StringUtils.isEmpty(nameSpace) ? this.nameSpace : nameSpace;

        List<Cell> res = cells.get(tName);

        if (res == null) {
            res = new ArrayList<>();
            cells.put(tName, res);
        }

        return res;
    }
747462
public function setBlackList($paths)
    {
        $paths = (is_array($paths)) ? $paths : array($paths);

        $this->blackList = $paths;

        return $this;
    }
1171994
function(collection, blacklist){
        var obj,
            result = [],
            prop,
            i,
            j,
            collLen,
            listLen;

        blacklist = blacklist || ["__columns"];

        if(!collection || !collection.length){
            return result;
        }

        collLen = collection.length;

        for(i=0; i<collLen; i++){
            obj = collection[i];

            //delete null properties
            for(prop in obj){
                if(obj[prop] === null){
                    delete obj[prop];
                }
            }

            listLen = blacklist.length;
            for(j=0; j<listLen; j++){
                delete obj[blacklist[j]];
            }
            //These are javascript objects and not json, so we have to do this magic to strip it of get methods.
            result.push(JSON.parse(JSON.stringify(obj)));
        }

        return result;
    }