Datasets:
code_text (string) | repo_name (string) | file_path (string) | language (string) | license (string) | size (int32) |
---|---|---|---|---|---|
"// Copyright (c) 2013-2016 The btcsuite developers
// Copyright (c) 2015-2021 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package main
import (
"context"
"fmt"
"os"
"path/filepath"
"github.com/decred/dcrd/blockchain/v4"
"github.com/decred/dcrd/chaincfg/chainhash"
"github.com/decred/dcrd/chaincfg/v3"
"github.com/decred/dcrd/database/v3"
)
const blockDbNamePrefix = "blocks"
var (
cfg *config
)
// loadBlockDB opens the block database and returns a handle to it.
func loadBlockDB() (database.DB, error) {
// The database name is based on the database type.
dbName := blockDbNamePrefix + "_" + cfg.DbType
dbPath := filepath.Join(cfg.DataDir, dbName)
fmt.Printf("Loading block database from '%s'\n", dbPath)
db, err := database.Open(cfg.DbType, dbPath, activeNetParams.Net)
if err != nil {
return nil, err
}
return db, nil
}
// findCandidates searches the chain backwards for checkpoint candidates and
// returns a slice of found candidates, if any. It also stops searching for
// candidates at the last checkpoint that is already hard coded into chain
// since there is no point in finding candidates before already existing
// checkpoints.
func findCandidates(chain *blockchain.BlockChain, latestHash *chainhash.Hash) ([]*chaincfg.Checkpoint, error) {
// Start with the latest block of the main chain.
block, err := chain.BlockByHash(latestHash)
if err != nil {
return nil, err
}
// Get the latest known checkpoint.
latestCheckpoint := chain.LatestCheckpoint()
if latestCheckpoint == nil {
// Set the latest checkpoint to the genesis block if there isn't
// already one.
latestCheckpoint = &chaincfg.Checkpoint{
Hash: &activeNetParams.GenesisHash,
Height: 0,
}
}
// The latest known block must be at least the last known checkpoint
// plus required checkpoint confirmations.
checkpointConfirmations := int64(blockchain.CheckpointConfirmations)
requiredHeight := latestCheckpoint.Height + checkpointConfirmations
if block.Height() < requiredHeight {
return nil, fmt.Errorf("the block database is only at height "+
"%d which is less than the latest checkpoint height "+
"of %d plus required confirmations of %d",
block.Height(), latestCheckpoint.Height,
checkpointConfirmations)
}
// For the first checkpoint, the required height is any block after the
// genesis block, so long as the chain has at least the required number
// of confirmations (which is enforced above).
if len(activeNetParams.Checkpoints) == 0 {
requiredHeight = 1
}
// Indeterminate progress setup.
numBlocksToTest := block.Height() - requiredHeight
progressInterval := (numBlocksToTest / 100) + 1 // min 1
fmt.Print("Searching for candidates")
defer fmt.Println()
// Loop backwards through the chain to find checkpoint candidates.
candidates := make([]*chaincfg.Checkpoint, 0, cfg.NumCandidates)
numTested := int64(0)
for len(candidates) < cfg.NumCandidates && block.Height() > requiredHeight {
// Display progress.
if numTested%progressInterval == 0 {
fmt.Print(".")
}
// Determine if this block is a checkpoint candidate.
isCandidate, err := chain.IsCheckpointCandidate(block)
if err != nil {
return nil, err
}
// All checks passed, so this node seems like a reasonable
// checkpoint candidate.
if isCandidate {
checkpoint := chaincfg.Checkpoint{
Height: block.Height(),
Hash: block.Hash(),
}
candidates = append(candidates, &checkpoint)
}
prevHash := &block.MsgBlock().Header.PrevBlock
block, err = chain.BlockByHash(prevHash)
if err != nil {
return nil, err
}
numTested++
}
return candidates, nil
}
// showCandidate display a checkpoint candidate using and output format
// determined by the configuration parameters. The Go syntax output
// uses the format the chain code expects for checkpoints added to the list.
func showCandidate(candidateNum int, checkpoint *chaincfg.Checkpoint) {
if cfg.UseGoOutput {
fmt.Printf("Candidate %d -- {%d, newHashFromStr(\"%v\")},\n",
candidateNum, checkpoint.Height, checkpoint.Hash)
return
}
fmt.Printf("Candidate %d -- Height: %d, Hash: %v\n", candidateNum,
checkpoint.Height, checkpoint.Hash)
}
func main() {
// Load configuration and parse command line.
tcfg, _, err := loadConfig()
if err != nil {
return
}
cfg = tcfg
// Load the block database.
db, err := loadBlockDB()
if err != nil {
fmt.Fprintln(os.Stderr, "failed to load database:", err)
return
}
defer db.Close()
// Load the UTXO database.
utxoDb, err := blockchain.LoadUtxoDB(context.Background(), activeNetParams,
cfg.DataDir)
if err != nil {
fmt.Fprintln(os.Stderr, "failed to load UTXO database:", err)
return
}
defer utxoDb.Close()
// Instantiate a UTXO backend and UTXO cache.
utxoBackend := blockchain.NewLevelDbUtxoBackend(utxoDb)
utxoCache := blockchain.NewUtxoCache(&blockchain.UtxoCacheConfig{
Backend: utxoBackend,
FlushBlockDB: db.Flush,
MaxSize: 100 * 1024 * 1024, // 100 MiB
})
// Setup chain. Ignore notifications since they aren't needed for this
// util.
chain, err := blockchain.New(context.Background(),
&blockchain.Config{
DB: db,
ChainParams: activeNetParams,
UtxoBackend: blockchain.NewLevelDbUtxoBackend(utxoDb),
UtxoCache: utxoCache,
})
if err != nil {
fmt.Fprintf(os.Stderr, "failed to initialize chain: %v\n", err)
return
}
// Get the latest block hash and height from the database and report
// status.
best := chain.BestSnapshot()
fmt.Printf("Block database loaded with block height %d\n", best.Height)
// Find checkpoint candidates.
candidates, err := findCandidates(chain, &best.Hash)
if err != nil {
fmt.Fprintln(os.Stderr, "Unable to identify candidates:", err)
return
}
// No candidates.
if len(candidates) == 0 {
fmt.Println("No candidates found.")
return
}
// Show the candidates.
for i, checkpoint := range candidates {
showCandidate(i+1, checkpoint)
}
}
" | "decred/dcrd" | "cmd/findcheckpoint/findcheckpoint.go" | "GO" | "isc" | 6,032 |
"/**
* Copyright (c) 2009-2011,2014 AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
package org.alljoyn.bus;
import org.alljoyn.bus.BusAttachment;
import org.alljoyn.bus.BusException;
import org.alljoyn.bus.BusObject;
import org.alljoyn.bus.Status;
import org.alljoyn.bus.ifaces.DBusProxyObj;
import static junit.framework.Assert.*;
import java.lang.ref.WeakReference;
import java.util.Map;
import java.util.TreeMap;
import junit.framework.TestCase;
public class MarshalStressTest extends TestCase {
public MarshalStressTest(String name) {
super(name);
}
static {
System.loadLibrary("alljoyn_java");
}
public class Service implements MarshalStressInterface,
BusObject {
public byte getPropy() throws BusException { return (byte)1; }
public void Methody(byte m) throws BusException {}
public Structy MethodStructy() throws BusException { Structy s = new Structy(); s.m = (byte)1; return s; }
public boolean getPropb() throws BusException { return true; }
public void Methodb(boolean m) throws BusException {}
public Structb MethodStructb() throws BusException { Structb s = new Structb(); s.m = true; return s; }
public short getPropn() throws BusException { return (short)2; }
public void Methodn(short m) throws BusException {}
public Structn MethodStructn() throws BusException { Structn s = new Structn(); s.m = (short)2; return s; }
public short getPropq() throws BusException { return (short)3; }
public void Methodq(short m) throws BusException {}
public Structq MethodStructq() throws BusException { Structq s = new Structq(); s.m = (short)3; return s; }
public int getPropi() throws BusException { return 4; }
public void Methodi(int m) throws BusException {}
public Structi MethodStructi() throws BusException { Structi s = new Structi(); s.m = 4; return s; }
public int getPropu() throws BusException { return 5; }
public void Methodu(int m) throws BusException {}
public Structu MethodStructu() throws BusException { Structu s = new Structu(); s.m = 5; return s; }
public long getPropx() throws BusException { return (long)6; }
public void Methodx(long m) throws BusException {}
public Structx MethodStructx() throws BusException { Structx s = new Structx(); s.m = (long)6; return s; }
public long getPropt() throws BusException { return (long)7; }
public void Methodt(long m) throws BusException {}
public Structt MethodStructt() throws BusException { Structt s = new Structt(); s.m = (long)7; return s; }
public double getPropd() throws BusException { return 8.1; }
public void Methodd(double m) throws BusException {}
public Structd MethodStructd() throws BusException { Structd s = new Structd(); s.m = 8.1; return s; }
public String getProps() throws BusException { return "nine"; }
public void Methods(String m) throws BusException {}
public Structs MethodStructs() throws BusException { Structs s = new Structs(); s.m = "nine"; return s; }
public String getPropo() throws BusException { return "/ten"; }
public void Methodo(String m) throws BusException {}
public Structo MethodStructo() throws BusException { Structo s = new Structo(); s.m = "/ten"; return s; }
public String getPropg() throws BusException { return "y"; }
public void Methodg(String m) throws BusException {}
public Structg MethodStructg() throws BusException { Structg s = new Structg(); s.m = "y"; return s; }
public byte[] getPropay() throws BusException { return new byte[] { (byte)1 }; }
public void Methoday(byte[] m) throws BusException {}
public Structay MethodStructay() throws BusException { Structay s = new Structay(); s.m = new byte[] { (byte)1 }; return s; }
public boolean[] getPropab() throws BusException { return new boolean[] { true }; }
public void Methodab(boolean[] m) throws BusException {}
public Structab MethodStructab() throws BusException { Structab s = new Structab(); s.m = new boolean[] { true }; return s; }
public short[] getPropan() throws BusException { return new short[] { (short)2 }; }
public void Methodan(short[] m) throws BusException {}
public Structan MethodStructan() throws BusException { Structan s = new Structan(); s.m = new short[] { (short)2 }; return s; }
public short[] getPropaq() throws BusException { return new short[] { (short)3 }; }
public void Methodaq(short[] m) throws BusException {}
public Structaq MethodStructaq() throws BusException { Structaq s = new Structaq(); s.m = new short[] { (short)3 }; return s; }
public int[] getPropai() throws BusException { return new int[] { 4 }; }
public void Methodai(int[] m) throws BusException {}
public Structai MethodStructai() throws BusException { Structai s = new Structai(); s.m = new int[] { 4 }; return s; }
public int[] getPropau() throws BusException { return new int[] { 5 }; }
public void Methodau(int[] m) throws BusException {}
public Structau MethodStructau() throws BusException { Structau s = new Structau(); s.m = new int[] { 5 }; return s; }
public long[] getPropax() throws BusException { return new long[] { (long)6 }; }
public void Methodax(long[] m) throws BusException {}
public Structax MethodStructax() throws BusException { Structax s = new Structax(); s.m = new long[] { (long)6 }; return s; }
public long[] getPropat() throws BusException { return new long[] { (long)7 }; }
public void Methodat(long[] m) throws BusException {}
public Structat MethodStructat() throws BusException { Structat s = new Structat(); s.m = new long[] { (long)7 }; return s; }
public double[] getPropad() throws BusException { return new double[] { 8.1 }; }
public void Methodad(double[] m) throws BusException {}
public Structad MethodStructad() throws BusException { Structad s = new Structad(); s.m = new double[] { 8.1 }; return s; }
public String[] getPropas() throws BusException { return new String[] { "nine" }; }
public void Methodas(String[] m) throws BusException {}
public Structas MethodStructas() throws BusException { Structas s = new Structas(); s.m = new String[] { "nine" }; return s; }
public String[] getPropao() throws BusException { return new String[] { "/ten" }; }
public void Methodao(String[] m) throws BusException {}
public Structao MethodStructao() throws BusException { Structao s = new Structao(); s.m = new String[] { "/ten" }; return s; }
public String[] getPropag() throws BusException { return new String[] { "y" }; }
public void Methodag(String[] m) throws BusException {}
public Structag MethodStructag() throws BusException { Structag s = new Structag(); s.m = new String[] { "y" }; return s; }
public void Methoda(byte[] m) throws BusException {}
public void Methodaei(Map<Integer, String> m) throws BusException {}
public void Methodaers(Map<Struct, String> m) throws BusException {}
public void IncompleteMethodaers(Map<Struct, String> m) throws BusException {}
public void Methodry(Struct m) throws BusException {}
public void Methodray(Struct m) throws BusException {}
public void Methodvy(Variant m) throws BusException {}
public void Methodvay(Variant m) throws BusException {}
public Map<String, String> getPropaessy() throws BusException { return new TreeMap<String, String>(); }
public Map<String, String> getPropaesss() throws BusException { return new TreeMap<String, String>(); }
public void Methodaessy(Map<String, String> m) throws BusException {}
public void Methodaessay(Map<String, String> m) throws BusException {}
public Struct[] getPropar() throws BusException { return new Struct[] { new Struct() }; }
public Struct getPropr() throws BusException { return new Struct(); }
public Variant Methodv() throws BusException { return new Variant(new String("vs")); }
public Structr MethodStructr() throws BusException { Structr s = new Structr(); s.m = new Struct(); return s; }
public Structv MethodStructv() throws BusException { Structv s = new Structv(); s.m = new Variant(new String("hello")); return s; }
public Structaess MethodStructaess() throws BusException { Structaess s = new Structaess(); s.m = new TreeMap<String, String>(); return s; }
}
private BusAttachment bus;
private BusAttachment serviceBus;
private Service service;
private MarshalStressInterfaceInvalid proxy;
public void setUp() throws Exception {
serviceBus = new BusAttachment(getClass().getName() + "Service");
service = new Service();
Status status = serviceBus.registerBusObject(service, "/service");
assertEquals(Status.OK, status);
status = serviceBus.connect();
assertEquals(Status.OK, status);
DBusProxyObj control = serviceBus.getDBusProxyObj();
DBusProxyObj.RequestNameResult res = control.RequestName("org.alljoyn.bus.MarshalStressTest",
DBusProxyObj.REQUEST_NAME_NO_FLAGS);
assertEquals(DBusProxyObj.RequestNameResult.PrimaryOwner, res);
bus = new BusAttachment(getClass().getName());
status = bus.connect();
assertEquals(Status.OK, status);
ProxyBusObject remoteObj = bus.getProxyBusObject("org.alljoyn.bus.MarshalStressTest", "/service",
BusAttachment.SESSION_ID_ANY,
new Class<?>[] { MarshalStressInterfaceInvalid.class });
proxy = remoteObj.getInterface(MarshalStressInterfaceInvalid.class);
}
public void tearDown() throws Exception {
proxy = null;
DBusProxyObj control = serviceBus.getDBusProxyObj();
DBusProxyObj.ReleaseNameResult res = control.ReleaseName("org.alljoyn.bus.MarshalStressTest");
assertEquals(DBusProxyObj.ReleaseNameResult.Released, res);
serviceBus.unregisterBusObject(service);
service = null;
serviceBus.disconnect();
serviceBus.release();
serviceBus = null;
bus.disconnect();
bus.release();
bus = null;
}
public void testInvalidPropy() throws Exception {
boolean thrown = false;
try {
proxy.getPropy();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethody() throws Exception {
boolean thrown = false;
try {
proxy.Methody(this.getClass());
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructy() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructy();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropb() throws Exception {
boolean thrown = false;
try {
proxy.getPropb();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodb() throws Exception {
boolean thrown = false;
try {
proxy.Methodb(this.getClass());
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructb() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructb();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropn() throws Exception {
boolean thrown = false;
try {
proxy.getPropn();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodn() throws Exception {
boolean thrown = false;
try {
proxy.Methodn(this.getClass());
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructn() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructn();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropq() throws Exception {
boolean thrown = false;
try {
proxy.getPropq();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodq() throws Exception {
boolean thrown = false;
try {
proxy.Methodq(this.getClass());
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructq() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructq();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropi() throws Exception {
boolean thrown = false;
try {
proxy.getPropi();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodi() throws Exception {
boolean thrown = false;
try {
proxy.Methodi(this.getClass());
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructi() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructi();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropu() throws Exception {
boolean thrown = false;
try {
proxy.getPropu();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodu() throws Exception {
boolean thrown = false;
try {
proxy.Methodu(this.getClass());
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructu() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructu();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropx() throws Exception {
boolean thrown = false;
try {
proxy.getPropx();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodx() throws Exception {
boolean thrown = false;
try {
proxy.Methodx(this.getClass());
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructx() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructx();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropt() throws Exception {
boolean thrown = false;
try {
proxy.getPropt();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodt() throws Exception {
boolean thrown = false;
try {
proxy.Methodt(this.getClass());
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructt() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructt();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropd() throws Exception {
boolean thrown = false;
try {
proxy.getPropd();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodd() throws Exception {
boolean thrown = false;
try {
proxy.Methodd(this.getClass());
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructd() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructd();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidProps() throws Exception {
boolean thrown = false;
try {
proxy.getProps();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethods() throws Exception {
boolean thrown = false;
try {
proxy.Methods(this.getClass());
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructs() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructs();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropo() throws Exception {
boolean thrown = false;
try {
proxy.getPropo();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodo() throws Exception {
boolean thrown = false;
try {
proxy.Methodo(this.getClass());
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructo() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructo();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropg() throws Exception {
boolean thrown = false;
try {
proxy.getPropg();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodg() throws Exception {
boolean thrown = false;
try {
proxy.Methodg(this.getClass());
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructg() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructg();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropay() throws Exception {
boolean thrown = false;
try {
proxy.getPropay();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethoday() throws Exception {
boolean thrown = false;
try {
proxy.Methoday(new Class<?>[] { this.getClass() });
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructay() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructay();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropab() throws Exception {
boolean thrown = false;
try {
proxy.getPropab();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodab() throws Exception {
boolean thrown = false;
try {
proxy.Methodab(new Class<?>[] { this.getClass() });
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructab() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructab();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropan() throws Exception {
boolean thrown = false;
try {
proxy.getPropan();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodan() throws Exception {
boolean thrown = false;
try {
proxy.Methodan(new Class<?>[] { this.getClass() });
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructan() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructan();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropaq() throws Exception {
boolean thrown = false;
try {
proxy.getPropaq();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodaq() throws Exception {
boolean thrown = false;
try {
proxy.Methodaq(new Class<?>[] { this.getClass() });
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructaq() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructaq();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropai() throws Exception {
boolean thrown = false;
try {
proxy.getPropai();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodai() throws Exception {
boolean thrown = false;
try {
proxy.Methodai(new Class<?>[] { this.getClass() });
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructai() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructai();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropau() throws Exception {
boolean thrown = false;
try {
proxy.getPropau();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodau() throws Exception {
boolean thrown = false;
try {
proxy.Methodau(new Class<?>[] { this.getClass() });
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructau() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructau();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropax() throws Exception {
boolean thrown = false;
try {
proxy.getPropax();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodax() throws Exception {
boolean thrown = false;
try {
proxy.Methodax(new Class<?>[] { this.getClass() });
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructax() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructax();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropat() throws Exception {
boolean thrown = false;
try {
proxy.getPropat();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodat() throws Exception {
boolean thrown = false;
try {
proxy.Methodat(new Class<?>[] { this.getClass() });
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructat() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructat();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropad() throws Exception {
boolean thrown = false;
try {
proxy.getPropad();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodad() throws Exception {
boolean thrown = false;
try {
proxy.Methodad(new Class<?>[] { this.getClass() });
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructad() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructad();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropas() throws Exception {
boolean thrown = false;
try {
proxy.getPropas();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodas() throws Exception {
boolean thrown = false;
try {
proxy.Methodas(new int[] { 0 });
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructas() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructas();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropao() throws Exception {
boolean thrown = false;
try {
proxy.getPropao();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodao() throws Exception {
boolean thrown = false;
try {
proxy.Methodao(new int[] { 0 });
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructao() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructao();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropag() throws Exception {
boolean thrown = false;
try {
proxy.getPropag();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodag() throws Exception {
boolean thrown = false;
try {
proxy.Methodag(new int[] { 0 });
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructag() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructag();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethoda() throws Exception {
proxy.Methoda(new byte[] { (byte)0 });
}
public void testInvalidMethodaei() throws Exception {
proxy.Methodaei(new TreeMap<Integer, String>());
}
public void testInvalidMethodaers() throws Exception {
boolean thrown = false;
try {
proxy.Methodaers(new TreeMap<MarshalStressInterfaceInvalid.Struct, String>());
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidIncompleteMethodaers() throws Exception {
boolean thrown = false;
try {
proxy.IncompleteMethodaers(new TreeMap<MarshalStressInterfaceInvalid.Struct, String>());
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodry() throws Exception {
boolean thrown = false;
try {
proxy.Methodry((byte)0);
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodray() throws Exception {
boolean thrown = false;
try {
proxy.Methodray(new byte[] { (byte)0 });
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodvy() throws Exception {
boolean thrown = false;
try {
proxy.Methodvy((byte)0);
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodvay() throws Exception {
boolean thrown = false;
try {
proxy.Methodvay(new byte[] { (byte)0 });
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropaessy() throws Exception {
boolean thrown = false;
try {
proxy.getPropaessy();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropaesss() throws Exception {
boolean thrown = false;
try {
proxy.getPropaesss();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodaessy() throws Exception {
boolean thrown = false;
try {
proxy.Methodaessy((byte)0);
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodaessay() throws Exception {
boolean thrown = false;
try {
proxy.Methodaessay(new byte[] { (byte)0 });
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropar() throws Exception {
boolean thrown = false;
try {
proxy.getPropar();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidPropr() throws Exception {
boolean thrown = false;
try {
proxy.getPropr();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodv() throws Exception {
boolean thrown = false;
try {
proxy.Methodv();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructr() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructr();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructv() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructv();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
public void testInvalidMethodStructaess() throws Exception {
boolean thrown = false;
try {
proxy.MethodStructaess();
} catch (BusException ex) {
thrown = true;
} catch (Throwable ex) {
ex.printStackTrace();
} finally {
assertTrue(thrown);
}
}
}
" | "hybridgroup/alljoyn" | "alljoyn/alljoyn_java/test/org/alljoyn/bus/MarshalStressTest.java" | "Java" | "isc" | 41,826 |
""""SCons.Tool.rpcgen
Tool-specific initialization for RPCGEN tools.
Three normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
__revision__ = "src/engine/SCons/Tool/rpcgen.py 4369 2009/09/19 15:58:29 scons"
from SCons.Builder import Builder
import SCons.Util
cmd = "cd ${SOURCE.dir} && $RPCGEN -%s $RPCGENFLAGS %s -o ${TARGET.abspath} ${SOURCE.file}"
rpcgen_client = cmd % ('l', '$RPCGENCLIENTFLAGS')
rpcgen_header = cmd % ('h', '$RPCGENHEADERFLAGS')
rpcgen_service = cmd % ('m', '$RPCGENSERVICEFLAGS')
rpcgen_xdr = cmd % ('c', '$RPCGENXDRFLAGS')
def generate(env):
"Add RPCGEN Builders and construction variables for an Environment."
client = Builder(action=rpcgen_client, suffix='_clnt.c', src_suffix='.x')
header = Builder(action=rpcgen_header, suffix='.h', src_suffix='.x')
service = Builder(action=rpcgen_service, suffix='_svc.c', src_suffix='.x')
xdr = Builder(action=rpcgen_xdr, suffix='_xdr.c', src_suffix='.x')
env.Append(BUILDERS={'RPCGenClient' : client,
'RPCGenHeader' : header,
'RPCGenService' : service,
'RPCGenXDR' : xdr})
env['RPCGEN'] = 'rpcgen'
env['RPCGENFLAGS'] = SCons.Util.CLVar('')
env['RPCGENCLIENTFLAGS'] = SCons.Util.CLVar('')
env['RPCGENHEADERFLAGS'] = SCons.Util.CLVar('')
env['RPCGENSERVICEFLAGS'] = SCons.Util.CLVar('')
env['RPCGENXDRFLAGS'] = SCons.Util.CLVar('')
def exists(env):
return env.Detect('rpcgen')
# Local Variables:
# tab-width:4
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=4 shiftwidth=4:
" | "looooo/pivy" | "scons/scons-local-1.2.0.d20090919/SCons/Tool/rpcgen.py" | "Python" | "isc" | 2,876 |
"---
layout: api
title: "v2.2.0 JavaScript Library: L.Control.zoom"
categories: api
version: v2.2.0
permalink: /api/v2.2.0/l-control-zoom
---
<h2 id="control-zoom">Control.zoom</h2>
<p>A basic zoom control with two buttons (zoom in and zoom out). It is put on the map by default unless you set its <code>zoomControl</code> option to <code><span class="literal">false</span></code>. Extends <a href="/mapbox.js/api/v2.2.0/l-control">Control</a>.</p>
<h3>Creation</h3>
<table data-id='control-zoom'>
<tr>
<th>Factory</th>
<th class="width200">Description</th>
</tr>
<tr>
<td><code><b>L.control.zoom</b>(
<nobr><<a href="/mapbox.js/api/v2.2.0/l-control">Control.Zoom options</a>> <i>options?</i> )</nobr>
</code></td>
<td>Creates a zoom control.</td>
</tr>
</table>
<h3 id="control-zoom-options">Options</h3>
<table data-id='control-zoom'>
<tr>
<th>Option</th>
<th>Type</th>
<th>Default</th>
<th>Description</th>
</tr>
<tr>
<td><code><b>position</b></code></td>
<td><code>String</code></td>
<td><code><span class="string">'topleft'</span></td>
<td>The position of the control (one of the map corners). See <a href="/mapbox.js/api/v2.2.0/l-control">control positions</a>.</td>
</tr>
<tr>
<td><code><b>zoomInText</b></code></td>
<td><code>String</code></td>
<td><code><span class="string">'+'</span></td>
<td>The text set on the zoom in button.</td>
</tr>
<tr>
<td><code><b>zoomOutText</b></code></td>
<td><code>String</code></td>
<td><code><span class="string">'-'</span></td>
<td>The text set on the zoom out button.</td>
</tr>
<tr>
<td><code><b>zoomInTitle</b></code></td>
<td><code>String</code></td>
<td><code><span class="string">'Zoom in'</span></td>
<td>The title set on the zoom in button.</td>
</tr>
<tr>
<td><code><b>zoomOutTitle</b></code></td>
<td><code>String</code></td>
<td><code><span class="string">'Zoom out'</span></td>
<td>The title set on the zoom out button.</td>
</tr>
</table>
" | "dakotabenjamin/geojson.io" | "node_modules/mapbox.js/docs/_posts/api/v2.2.0/0200-01-01-l-control-zoom.html" | "HTML" | "isc" | 1,989 |
"package org.ripple.bouncycastle.jce.spec;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.spec.KeySpec;
import org.ripple.bouncycastle.jce.interfaces.IESKey;
/**
* key pair for use with an integrated encryptor - together
* they provide what's required to generate the message.
*/
public class IEKeySpec
implements KeySpec, IESKey
{
private PublicKey pubKey;
private PrivateKey privKey;
/**
* @param privKey our private key.
* @param pubKey the public key of the sender/recipient.
*/
public IEKeySpec(
PrivateKey privKey,
PublicKey pubKey)
{
this.privKey = privKey;
this.pubKey = pubKey;
}
/**
* return the intended recipient's/sender's public key.
*/
public PublicKey getPublic()
{
return pubKey;
}
/**
* return the local private key.
*/
public PrivateKey getPrivate()
{
return privKey;
}
/**
* return "IES"
*/
public String getAlgorithm()
{
return "IES";
}
/**
* return null
*/
public String getFormat()
{
return null;
}
/**
* returns null
*/
public byte[] getEncoded()
{
return null;
}
}
" | "mileschet/ripple-lib-java" | "ripple-bouncycastle/src/main/java/org/ripple/bouncycastle/jce/spec/IEKeySpec.java" | "Java" | "isc" | 1,291 |
"<html>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<title> Login page for the calendar. </title>
</head>
<body bgcolor="white">
<center>
<font size=7 color="red"> Please Enter the following information: </font>
<br>
<form method=GET action=cal1.jsp>
<font size=5> Name <input type=text name="name" size=20>
</font>
<br>
<font size=5> Email <input type=text name="email" size=20>
</font>
<br>
<input type=submit name=action value="Submit">
</form>
<hr>
<font size=3 color="red"> Note: This application does not implement the complete
functionality of a typical calendar application. It demostartes a way JSP can be
used with html tables and forms.</font>
</center>
</body>
</html>
" | "HackWars/hackwars-classic" | "HWTomcatServer/webapps/examples/jsp/cal/login.html" | "HTML" | "isc" | 1,457 |
"
/**
* socket.io
* Copyright(c) 2011 LearnBoost <dev@learnboost.com>
* MIT Licensed
*/
(function (exports, io, global) {
/**
* There is a way to hide the loading indicator in Firefox. If you create and
* remove a iframe it will stop showing the current loading indicator.
* Unfortunately we can't feature detect that and UA sniffing is evil.
*
* @api private
*/
var indicator = global.document && "MozAppearance" in
global.document.documentElement.style;
/**
* Expose constructor.
*/
exports['jsonp-polling'] = JSONPPolling;
/**
* The JSONP transport creates an persistent connection by dynamically
* inserting a script tag in the page. This script tag will receive the
* information of the Socket.IO server. When new information is received
* it creates a new script tag for the new data stream.
*
* @constructor
* @extends {io.Transport.xhr-polling}
* @api public
*/
function JSONPPolling (socket) {
io.Transport['xhr-polling'].apply(this, arguments);
this.index = io.j.length;
var self = this;
io.j.push(function (msg) {
self._(msg);
});
};
/**
* Inherits from XHR polling transport.
*/
io.util.inherit(JSONPPolling, io.Transport['xhr-polling']);
/**
* Transport name
*
* @api public
*/
JSONPPolling.prototype.name = 'jsonp-polling';
/**
* Posts a encoded message to the Socket.IO server using an iframe.
* The iframe is used because script tags can create POST based requests.
* The iframe is positioned outside of the view so the user does not
* notice it's existence.
*
* @param {String} data A encoded message.
* @api private
*/
JSONPPolling.prototype.post = function (data) {
var self = this
, query = io.util.query(
this.socket.options.query
, 't='+ (+new Date) + '&i=' + this.index
);
if (!this.form) {
var form = document.createElement('form')
, area = document.createElement('textarea')
, id = this.iframeId = 'socketio_iframe_' + this.index
, iframe;
form.className = 'socketio';
form.style.position = 'absolute';
form.style.top = '0px';
form.style.left = '0px';
form.style.display = 'none';
form.target = id;
form.method = 'POST';
form.setAttribute('accept-charset', 'utf-8');
area.name = 'd';
form.appendChild(area);
document.body.appendChild(form);
this.form = form;
this.area = area;
}
this.form.action = this.prepareUrl() + query;
function complete () {
initIframe();
self.socket.setBuffer(false);
};
function initIframe () {
if (self.iframe) {
self.form.removeChild(self.iframe);
}
try {
// ie6 dynamic iframes with target="" support (thanks Chris Lambacher)
iframe = document.createElement('<iframe name="'+ self.iframeId +'">');
} catch (e) {
iframe = document.createElement('iframe');
iframe.name = self.iframeId;
}
iframe.id = self.iframeId;
self.form.appendChild(iframe);
self.iframe = iframe;
};
initIframe();
// we temporarily stringify until we figure out how to prevent
// browsers from turning `\n` into `\r\n` in form inputs
this.area.value = io.JSON.stringify(data);
try {
this.form.submit();
} catch(e) {}
if (this.iframe.attachEvent) {
iframe.onreadystatechange = function () {
if (self.iframe.readyState == 'complete') {
complete();
}
};
} else {
this.iframe.onload = complete;
}
this.socket.setBuffer(true);
};
/**
* Creates a new JSONP poll that can be used to listen
* for messages from the Socket.IO server.
*
* @api private
*/
JSONPPolling.prototype.get = function () {
var self = this
, script = document.createElement('script')
, query = io.util.query(
this.socket.options.query
, 't='+ (+new Date) + '&i=' + this.index
);
if (this.script) {
this.script.parentNode.removeChild(this.script);
this.script = null;
}
script.async = true;
script.src = this.prepareUrl() + query;
script.onerror = function () {
self.onClose();
};
var insertAt = document.getElementsByTagName('script')[0];
insertAt.parentNode.insertBefore(script, insertAt);
this.script = script;
if (indicator) {
setTimeout(function () {
var iframe = document.createElement('iframe');
document.body.appendChild(iframe);
document.body.removeChild(iframe);
}, 100);
}
};
/**
* Callback function for the incoming message stream from the Socket.IO server.
*
* @param {String} data The message
* @api private
*/
JSONPPolling.prototype._ = function (msg) {
this.onData(msg);
if (this.isOpen) {
this.get();
}
return this;
};
/**
* The indicator hack only works after onload
*
* @param {Socket} socket The socket instance that needs a transport
* @param {Function} fn The callback
* @api private
*/
JSONPPolling.prototype.ready = function (socket, fn) {
var self = this;
if (!indicator) return fn.call(this);
io.util.load(function () {
fn.call(self);
});
};
/**
* Checks if browser supports this transport.
*
* @return {Boolean}
* @api public
*/
JSONPPolling.check = function () {
return 'document' in global;
};
/**
* Check if cross domain requests are supported
*
* @returns {Boolean}
* @api public
*/
JSONPPolling.xdomainCheck = function () {
return true;
};
/**
* Add the transport to your public io.transports array.
*
* @api private
*/
io.transports.push('jsonp-polling');
})(
'undefined' != typeof io ? io.Transport : module.exports
, 'undefined' != typeof io ? io : module.parent.exports
, this
);
" | "voidlock/contacts" | "node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/lib/transports/jsonp-polling.js" | "JavaScript" | "isc" | 5,998 |
"/* automatically generated by JSCoverage - do not edit */
if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
if (! _$jscoverage['middleware/session/store.js']) {
_$jscoverage['middleware/session/store.js'] = [];
_$jscoverage['middleware/session/store.js'][13] = 0;
_$jscoverage['middleware/session/store.js'][23] = 0;
_$jscoverage['middleware/session/store.js'][29] = 0;
_$jscoverage['middleware/session/store.js'][39] = 0;
_$jscoverage['middleware/session/store.js'][40] = 0;
_$jscoverage['middleware/session/store.js'][41] = 0;
_$jscoverage['middleware/session/store.js'][42] = 0;
_$jscoverage['middleware/session/store.js'][43] = 0;
_$jscoverage['middleware/session/store.js'][56] = 0;
_$jscoverage['middleware/session/store.js'][57] = 0;
_$jscoverage['middleware/session/store.js'][58] = 0;
_$jscoverage['middleware/session/store.js'][59] = 0;
_$jscoverage['middleware/session/store.js'][60] = 0;
_$jscoverage['middleware/session/store.js'][61] = 0;
_$jscoverage['middleware/session/store.js'][62] = 0;
_$jscoverage['middleware/session/store.js'][63] = 0;
_$jscoverage['middleware/session/store.js'][76] = 0;
_$jscoverage['middleware/session/store.js'][77] = 0;
_$jscoverage['middleware/session/store.js'][79] = 0;
_$jscoverage['middleware/session/store.js'][80] = 0;
_$jscoverage['middleware/session/store.js'][81] = 0;
_$jscoverage['middleware/session/store.js'][82] = 0;
_$jscoverage['middleware/session/store.js'][83] = 0;
}
_$jscoverage['middleware/session/store.js'][13]++;
var EventEmitter = require("events").EventEmitter, Session = require("./session"), Cookie = require("./cookie");
_$jscoverage['middleware/session/store.js'][23]++;
var Store = module.exports = (function Store(options) {
});
_$jscoverage['middleware/session/store.js'][29]++;
Store.prototype.__proto__ = EventEmitter.prototype;
_$jscoverage['middleware/session/store.js'][39]++;
Store.prototype.regenerate = (function (req, fn) {
_$jscoverage['middleware/session/store.js'][40]++;
var self = this;
_$jscoverage['middleware/session/store.js'][41]++;
this.destroy(req.sessionID, (function (err) {
_$jscoverage['middleware/session/store.js'][42]++;
self.generate(req);
_$jscoverage['middleware/session/store.js'][43]++;
fn(err);
}));
});
_$jscoverage['middleware/session/store.js'][56]++;
Store.prototype.load = (function (sid, fn) {
_$jscoverage['middleware/session/store.js'][57]++;
var self = this;
_$jscoverage['middleware/session/store.js'][58]++;
this.get(sid, (function (err, sess) {
_$jscoverage['middleware/session/store.js'][59]++;
if (err) {
_$jscoverage['middleware/session/store.js'][59]++;
return fn(err);
}
_$jscoverage['middleware/session/store.js'][60]++;
if (! sess) {
_$jscoverage['middleware/session/store.js'][60]++;
return fn();
}
_$jscoverage['middleware/session/store.js'][61]++;
var req = {sessionID: sid, sessionStore: self};
_$jscoverage['middleware/session/store.js'][62]++;
sess = self.createSession(req, sess);
_$jscoverage['middleware/session/store.js'][63]++;
fn(null, sess);
}));
});
_$jscoverage['middleware/session/store.js'][76]++;
Store.prototype.createSession = (function (req, sess) {
_$jscoverage['middleware/session/store.js'][77]++;
var expires = sess.cookie.expires, orig = sess.cookie.originalMaxAge;
_$jscoverage['middleware/session/store.js'][79]++;
sess.cookie = new Cookie(sess.cookie);
_$jscoverage['middleware/session/store.js'][80]++;
if ("string" == typeof expires) {
_$jscoverage['middleware/session/store.js'][80]++;
sess.cookie.expires = new Date(expires);
}
_$jscoverage['middleware/session/store.js'][81]++;
sess.cookie.originalMaxAge = orig;
_$jscoverage['middleware/session/store.js'][82]++;
req.session = new Session(req, sess);
_$jscoverage['middleware/session/store.js'][83]++;
return req.session;
});
_$jscoverage['middleware/session/store.js'].source = ["","/*!"," * Connect - session - Store"," * Copyright(c) 2010 Sencha Inc."," * Copyright(c) 2011 TJ Holowaychuk"," * MIT Licensed"," */","","/**"," * Module dependencies."," */","","var EventEmitter = require('events').EventEmitter"," , Session = require('./session')"," , Cookie = require('./cookie');","","/**"," * Initialize abstract `Store`."," *"," * @api private"," */","","var Store = module.exports = function Store(options){};","","/**"," * Inherit from `EventEmitter.prototype`."," */","","Store.prototype.__proto__ = EventEmitter.prototype;","","/**"," * Re-generate the given requests's session."," *"," * @param {IncomingRequest} req"," * @return {Function} fn"," * @api public"," */","","Store.prototype.regenerate = function(req, fn){"," var self = this;"," this.destroy(req.sessionID, function(err){"," self.generate(req);"," fn(err);"," });","};","","/**"," * Load a `Session` instance via the given `sid`"," * and invoke the callback `fn(err, sess)`."," *"," * @param {String} sid"," * @param {Function} fn"," * @api public"," */","","Store.prototype.load = function(sid, fn){"," var self = this;"," this.get(sid, function(err, sess){"," if (err) return fn(err);"," if (!sess) return fn();"," var req = { sessionID: sid, sessionStore: self };"," sess = self.createSession(req, sess);"," fn(null, sess);"," });","};","","/**"," * Create session from JSON `sess` data."," *"," * @param {IncomingRequest} req"," * @param {Object} sess"," * @return {Session}"," * @api private"," */","","Store.prototype.createSession = function(req, sess){"," var expires = sess.cookie.expires"," , orig = sess.cookie.originalMaxAge;"," sess.cookie = new Cookie(sess.cookie);"," if ('string' == typeof expires) sess.cookie.expires = new Date(expires);"," sess.cookie.originalMaxAge = orig;"," req.session = new Session(req, sess);"," return req.session;","};"];
" | "vignesh9136/node-google-calendar-sample" | "node_modules/connect/lib-cov/middleware/session/store.js" | "JavaScript" | "isc" | 5,851 |
"var parse = require('../');
var test = require('tape');
test('boolean and alias is not unknown', function (t) {
var unknown = [];
function unknownFn(arg) {
unknown.push(arg);
return false;
}
var aliased = [ '-h', 'true', '--derp', 'true' ];
var regular = [ '--herp', 'true', '-d', 'true' ];
var opts = {
alias: { h: 'herp' },
boolean: 'h',
unknown: unknownFn
};
var aliasedArgv = parse(aliased, opts);
var propertyArgv = parse(regular, opts);
t.same(unknown, ['--derp', '-d']);
t.end();
});
test('flag boolean true any double hyphen argument is not unknown', function (t) {
var unknown = [];
function unknownFn(arg) {
unknown.push(arg);
return false;
}
var argv = parse(['--honk', '--tacos=good', 'cow', '-p', '55'], {
boolean: true,
unknown: unknownFn
});
t.same(unknown, ['--tacos=good', 'cow', '-p']);
t.same(argv, {
honk: true,
_: []
});
t.end();
});
test('string and alias is not unknown', function (t) {
var unknown = [];
function unknownFn(arg) {
unknown.push(arg);
return false;
}
var aliased = [ '-h', 'hello', '--derp', 'goodbye' ];
var regular = [ '--herp', 'hello', '-d', 'moon' ];
var opts = {
alias: { h: 'herp' },
string: 'h',
unknown: unknownFn
};
var aliasedArgv = parse(aliased, opts);
var propertyArgv = parse(regular, opts);
t.same(unknown, ['--derp', '-d']);
t.end();
});
test('default and alias is not unknown', function (t) {
var unknown = [];
function unknownFn(arg) {
unknown.push(arg);
return false;
}
var aliased = [ '-h', 'hello' ];
var regular = [ '--herp', 'hello' ];
var opts = {
default: { 'h': 'bar' },
alias: { 'h': 'herp' },
unknown: unknownFn
};
var aliasedArgv = parse(aliased, opts);
var propertyArgv = parse(regular, opts);
t.same(unknown, []);
t.end();
unknownFn(); // exercise fn for 100% coverage
});
test('value following -- is not unknown', function (t) {
var unknown = [];
function unknownFn(arg) {
unknown.push(arg);
return false;
}
var aliased = [ '--bad', '--', 'good', 'arg' ];
var opts = {
'--': true,
unknown: unknownFn
};
var argv = parse(aliased, opts);
t.same(unknown, ['--bad']);
t.same(argv, {
'--': ['good', 'arg'],
'_': []
})
t.end();
});
" | "gregsqueeb/khoilajsdfkjsakldfj" | "node_modules/backstopjs/node_modules/gulp-open/node_modules/gulp-util/node_modules/minimist/test/unknown.js" | "JavaScript" | "isc" | 2,541 |
"/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
var tizen = require('cordova/platform');
var cordova = require('cordova');
module.exports = {
getDeviceInfo: function(success, error) {
setTimeout(function () {
success({
cordova: tizen.cordovaVersion,
platform: 'tizen',
model: null,
version: null,
uuid: null
});
}, 0);
}
};
require("cordova/tizen/commandProxy").add("Device", module.exports);
" | "jphuangjr/ficklePiglet" | "mobile/plugins/cordova-plugin-device/src/tizen/DeviceProxy.js" | "JavaScript" | "isc" | 1,289 |
"/*!
Video.js Default Styles (http://videojs.com)
Version 4.3.0
Create your own skin at http://designer.videojs.com
*/.vjs-default-skin{color:#ccc}@font-face{font-family:VideoJS;src:url(font/vjs.eot);src:url(font/vjs.eot?#iefix) format('embedded-opentype'),url(font/vjs.woff) format('woff'),url(font/vjs.ttf) format('truetype');font-weight:400;font-style:normal}.vjs-default-skin .vjs-slider{outline:0;position:relative;cursor:pointer;padding:0;background-color:#333;background-color:rgba(51,51,51,.9)}.vjs-default-skin .vjs-slider:focus{-webkit-box-shadow:0 0 2em #fff;-moz-box-shadow:0 0 2em #fff;box-shadow:0 0 2em #fff}.vjs-default-skin .vjs-slider-handle{position:absolute;left:0;top:0}.vjs-default-skin .vjs-slider-handle:before{content:"\e009";font-family:VideoJS;font-size:1em;line-height:1;text-align:center;text-shadow:0 0 1em #fff;position:absolute;top:0;left:0;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg)}.vjs-default-skin .vjs-control-bar{display:none;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#07141e;background-color:rgba(7,20,30,.7)}.vjs-default-skin.vjs-has-started .vjs-control-bar{display:block;visibility:visible;opacity:1;-webkit-transition:visibility .1s,opacity .1s;-moz-transition:visibility .1s,opacity .1s;-o-transition:visibility .1s,opacity .1s;transition:visibility .1s,opacity .1s}.vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{display:block;visibility:hidden;opacity:0;-webkit-transition:visibility 1s,opacity 1s;-moz-transition:visibility 1s,opacity 1s;-o-transition:visibility 1s,opacity 1s;transition:visibility 1s,opacity 1s}.vjs-default-skin.vjs-controls-disabled .vjs-control-bar{display:none}.vjs-default-skin.vjs-using-native-controls .vjs-control-bar{display:none}@media \0screen{.vjs-default-skin.vjs-user-inactive.vjs-playing .vjs-control-bar :before{content:""}}.vjs-default-skin .vjs-control{outline:0;position:relative;float:left;text-align:center;margin:0;padding:0;height:3em;width:4em}.vjs-default-skin .vjs-control:before{font-family:VideoJS;font-size:1.5em;line-height:2;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;text-shadow:1px 1px 1px rgba(0,0,0,.5)}.vjs-default-skin .vjs-control:focus:before,.vjs-default-skin .vjs-control:hover:before{text-shadow:0 0 1em #fff}.vjs-default-skin .vjs-control:focus{}.vjs-default-skin .vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.vjs-default-skin .vjs-play-control{width:5em;cursor:pointer}.vjs-default-skin .vjs-play-control:before{content:"\e001"}.vjs-default-skin.vjs-playing .vjs-play-control:before{content:"\e002"}.vjs-default-skin .vjs-mute-control,.vjs-default-skin .vjs-volume-menu-button{cursor:pointer;float:right}.vjs-default-skin .vjs-mute-control:before,.vjs-default-skin .vjs-volume-menu-button:before{content:"\e006"}.vjs-default-skin .vjs-mute-control.vjs-vol-0:before,.vjs-default-skin .vjs-volume-menu-button.vjs-vol-0:before{content:"\e003"}.vjs-default-skin .vjs-mute-control.vjs-vol-1:before,.vjs-default-skin .vjs-volume-menu-button.vjs-vol-1:before{content:"\e004"}.vjs-default-skin .vjs-mute-control.vjs-vol-2:before,.vjs-default-skin .vjs-volume-menu-button.vjs-vol-2:before{content:"\e005"}.vjs-default-skin .vjs-volume-control{width:5em;float:right}.vjs-default-skin .vjs-volume-bar{width:5em;height:.6em;margin:1.1em auto 0}.vjs-default-skin .vjs-volume-menu-button .vjs-menu-content{height:2.9em}.vjs-default-skin .vjs-volume-level{position:absolute;top:0;left:0;height:.5em;background:#66a8cc url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 repeat}.vjs-default-skin .vjs-volume-bar .vjs-volume-handle{width:.5em;height:.5em}.vjs-default-skin .vjs-volume-handle:before{font-size:.9em;top:-.2em;left:-.2em;width:1em;height:1em}.vjs-default-skin .vjs-volume-menu-button .vjs-menu .vjs-menu-content{width:6em;left:-4em}.vjs-default-skin .vjs-progress-control{position:absolute;left:0;right:0;width:auto;font-size:.3em;height:1em;top:-1em;-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-default-skin:hover .vjs-progress-control{font-size:.9em;-webkit-transition:all .2s;-moz-transition:all .2s;-o-transition:all .2s;transition:all .2s}.vjs-default-skin .vjs-progress-holder{height:100%}.vjs-default-skin .vjs-progress-holder .vjs-play-progress,.vjs-default-skin .vjs-progress-holder .vjs-load-progress{position:absolute;display:block;height:100%;margin:0;padding:0;left:0;top:0}.vjs-default-skin .vjs-play-progress{background:#66a8cc url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 repeat}.vjs-default-skin .vjs-load-progress{background:#646464;background:rgba(255,255,255,.4)}.vjs-default-skin .vjs-seek-handle{width:1.5em;height:100%}.vjs-default-skin .vjs-seek-handle:before{padding-top:.1em}.vjs-default-skin .vjs-time-controls{font-size:1em;line-height:3em}.vjs-default-skin .vjs-current-time{float:left}.vjs-default-skin .vjs-duration{float:left}.vjs-default-skin .vjs-remaining-time{display:none;float:left}.vjs-time-divider{float:left;line-height:3em}.vjs-default-skin .vjs-fullscreen-control{width:3.8em;cursor:pointer;float:right}.vjs-default-skin .vjs-fullscreen-control:before{content:"\e000"}.vjs-default-skin.vjs-fullscreen .vjs-fullscreen-control:before{content:"\e00b"}.vjs-default-skin .vjs-big-play-button{left:.5em;top:.5em;font-size:3em;display:block;z-index:2;position:absolute;width:4em;height:2.6em;text-align:center;vertical-align:middle;cursor:pointer;opacity:1;background-color:#07141e;background-color:rgba(7,20,30,.7);border:.1em solid #3b4249;-webkit-border-radius:.8em;-moz-border-radius:.8em;border-radius:.8em;-webkit-box-shadow:0 0 1em rgba(255,255,255,.25);-moz-box-shadow:0 0 1em rgba(255,255,255,.25);box-shadow:0 0 1em rgba(255,255,255,.25);-webkit-transition:all .4s;-moz-transition:all .4s;-o-transition:all .4s;transition:all .4s}.vjs-default-skin.vjs-big-play-centered .vjs-big-play-button{left:50%;margin-left:-2.1em;top:50%;margin-top:-1.4000000000000001em}.vjs-default-skin.vjs-controls-disabled .vjs-big-play-button{display:none}.vjs-default-skin.vjs-has-started .vjs-big-play-button{display:none}.vjs-default-skin.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-default-skin:hover .vjs-big-play-button,.vjs-default-skin .vjs-big-play-button:focus{outline:0;border-color:#fff;background-color:#505050;background-color:rgba(50,50,50,.75);-webkit-box-shadow:0 0 3em #fff;-moz-box-shadow:0 0 3em #fff;box-shadow:0 0 3em #fff;-webkit-transition:all 0s;-moz-transition:all 0s;-o-transition:all 0s;transition:all 0s}.vjs-default-skin .vjs-big-play-button:before{content:"\e001";font-family:VideoJS;line-height:2.6em;text-shadow:.05em .05em .1em #000;text-align:center;position:absolute;left:0;width:100%;height:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;font-size:4em;line-height:1;width:1em;height:1em;margin-left:-.5em;margin-top:-.5em;opacity:.75;-webkit-animation:spin 1.5s infinite linear;-moz-animation:spin 1.5s infinite linear;-o-animation:spin 1.5s infinite linear;animation:spin 1.5s infinite linear}.vjs-default-skin .vjs-loading-spinner:before{content:"\e01e";font-family:VideoJS;position:absolute;top:0;left:0;width:1em;height:1em;text-align:center;text-shadow:0 0 .1em #000}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.vjs-default-skin .vjs-menu-button{float:right;cursor:pointer}.vjs-default-skin .vjs-menu{display:none;position:absolute;bottom:0;left:0;width:0;height:0;margin-bottom:3em;border-left:2em solid transparent;border-right:2em solid transparent;border-top:1.55em solid #000;border-top-color:rgba(7,40,50,.5)}.vjs-default-skin .vjs-menu-button .vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;position:absolute;width:10em;bottom:1.5em;max-height:15em;overflow:auto;left:-5em;background-color:#07141e;background-color:rgba(7,20,30,.7);-webkit-box-shadow:-.2em -.2em .3em rgba(255,255,255,.2);-moz-box-shadow:-.2em -.2em .3em rgba(255,255,255,.2);box-shadow:-.2em -.2em .3em rgba(255,255,255,.2)}.vjs-default-skin .vjs-menu-button:hover .vjs-menu{display:block}.vjs-default-skin .vjs-menu-button ul li{list-style:none;margin:0;padding:.3em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.vjs-default-skin .vjs-menu-button ul li.vjs-selected{background-color:#000}.vjs-default-skin .vjs-menu-button ul li:focus,.vjs-default-skin .vjs-menu-button ul li:hover,.vjs-default-skin .vjs-menu-button ul li.vjs-selected:focus,.vjs-default-skin .vjs-menu-button ul li.vjs-selected:hover{outline:0;color:#111;background-color:#fff;background-color:rgba(255,255,255,.75);-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.vjs-default-skin .vjs-menu-button ul li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:default}.vjs-default-skin .vjs-subtitles-button:before{content:"\e00c"}.vjs-default-skin .vjs-captions-button:before{content:"\e008"}.vjs-default-skin .vjs-captions-button:focus .vjs-control-content:before,.vjs-default-skin .vjs-captions-button:hover .vjs-control-content:before{-webkit-box-shadow:0 0 1em #fff;-moz-box-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js{background-color:#000;position:relative;padding:0;font-size:10px;vertical-align:middle;font-weight:400;font-style:normal;font-family:Arial,sans-serif;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}.video-js:-moz-full-screen{position:absolute}body.vjs-full-window{padding:0;margin:0;height:100%;overflow-y:auto}.video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0;width:100%!important;height:100%!important;_position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-poster{background-repeat:no-repeat;background-position:50% 50%;background-size:contain;cursor:pointer;height:100%;margin:0;padding:0;position:relative;width:100%}.vjs-poster img{display:block;margin:0 auto;max-height:100%;padding:0;width:100%}.video-js.vjs-using-native-controls .vjs-poster{display:none}.video-js .vjs-text-track-display{text-align:center;position:absolute;bottom:4em;left:1em;right:1em}.video-js .vjs-text-track{display:none;font-size:1.4em;text-align:center;margin-bottom:.1em;background-color:#000;background-color:rgba(0,0,0,.5)}.video-js .vjs-subtitles{color:#fff}.video-js .vjs-captions{color:#fc6}.vjs-tt-cue{display:block}.vjs-default-skin .vjs-hidden{display:none}.vjs-lock-showing{display:block!important;opacity:1;visibility:visible}" | "JavieChan/nanshaCity" | "gdnx/static/js/lib/ueditor/third-party/video-js/video-js.min.css" | "CSS" | "isc" | 11,451 |
"/**
* Module dependencies.
*/
var Base = require('./base');
/**
* Expose `JSONCov`.
*/
exports = module.exports = JSONCov;
/**
* Initialize a new `JsCoverage` reporter.
*
* @param {Runner} runner
* @param {Boolean} output
* @api public
*/
function JSONCov(runner, output) {
var self = this
, output = 1 == arguments.length ? true : output;
Base.call(this, runner);
var tests = []
, failures = []
, passes = [];
runner.on('test end', function(test){
tests.push(test);
});
runner.on('pass', function(test){
passes.push(test);
});
runner.on('fail', function(test){
failures.push(test);
});
runner.on('end', function(){
var cov = global._$jscoverage || {};
var result = self.cov = map(cov);
result.stats = self.stats;
result.tests = tests.map(clean);
result.failures = failures.map(clean);
result.passes = passes.map(clean);
if (!output) return;
process.stdout.write(JSON.stringify(result, null, 2 ));
});
}
/**
* Map jscoverage data to a JSON structure
* suitable for reporting.
*
* @param {Object} cov
* @return {Object}
* @api private
*/
function map(cov) {
var ret = {
instrumentation: 'node-jscoverage'
, sloc: 0
, hits: 0
, misses: 0
, coverage: 0
, files: []
};
for (var filename in cov) {
var data = coverage(filename, cov[filename]);
ret.files.push(data);
ret.hits += data.hits;
ret.misses += data.misses;
ret.sloc += data.sloc;
}
ret.files.sort(function(a, b) {
return a.filename.localeCompare(b.filename);
});
if (ret.sloc > 0) {
ret.coverage = (ret.hits / ret.sloc) * 100;
}
return ret;
}
/**
* Map jscoverage data for a single source file
* to a JSON structure suitable for reporting.
*
* @param {String} filename name of the source file
* @param {Object} data jscoverage coverage data
* @return {Object}
* @api private
*/
function coverage(filename, data) {
var ret = {
filename: filename,
coverage: 0,
hits: 0,
misses: 0,
sloc: 0,
source: {}
};
data.source.forEach(function(line, num){
num++;
if (data[num] === 0) {
ret.misses++;
ret.sloc++;
} else if (data[num] !== undefined) {
ret.hits++;
ret.sloc++;
}
ret.source[num] = {
source: line
, coverage: data[num] === undefined
? ''
: data[num]
};
});
ret.coverage = ret.hits / ret.sloc * 100;
return ret;
}
/**
* Return a plain-object representation of `test`
* free of cyclic properties etc.
*
* @param {Object} test
* @return {Object}
* @api private
*/
function clean(test) {
return {
title: test.title
, fullTitle: test.fullTitle()
, duration: test.duration
}
}
" | "Foxoon/Todooze" | "todoapp/node_modules/mocha/lib/reporters/json-cov.js" | "JavaScript" | "isc" | 2,764 |
"// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package html
import (
"strings"
)
func adjustAttributeNames(aa []Attribute, nameMap map[string]string) {
for i := range aa {
if newName, ok := nameMap[aa[i].Key]; ok {
aa[i].Key = newName
}
}
}
func adjustForeignAttributes(aa []Attribute) {
for i, a := range aa {
if a.Key == "" || a.Key[0] != 'x' {
continue
}
switch a.Key {
case "xlink:actuate", "xlink:arcrole", "xlink:href", "xlink:role", "xlink:show",
"xlink:title", "xlink:type", "xml:base", "xml:lang", "xml:space", "xmlns:xlink":
j := strings.Index(a.Key, ":")
aa[i].Namespace = a.Key[:j]
aa[i].Key = a.Key[j+1:]
}
}
}
func htmlIntegrationPoint(n *Node) bool {
if n.Type != ElementNode {
return false
}
switch n.Namespace {
case "math":
if n.Data == "annotation-xml" {
for _, a := range n.Attr {
if a.Key == "encoding" {
val := strings.ToLower(a.Val)
if val == "text/html" || val == "application/xhtml+xml" {
return true
}
}
}
}
case "svg":
switch n.Data {
case "desc", "foreignObject", "title":
return true
}
}
return false
}
func mathMLTextIntegrationPoint(n *Node) bool {
if n.Namespace != "math" {
return false
}
switch n.Data {
case "mi", "mo", "mn", "ms", "mtext":
return true
}
return false
}
// Section 12.2.5.5.
var breakout = map[string]bool{
"b": true,
"big": true,
"blockquote": true,
"body": true,
"br": true,
"center": true,
"code": true,
"dd": true,
"div": true,
"dl": true,
"dt": true,
"em": true,
"embed": true,
"h1": true,
"h2": true,
"h3": true,
"h4": true,
"h5": true,
"h6": true,
"head": true,
"hr": true,
"i": true,
"img": true,
"li": true,
"listing": true,
"menu": true,
"meta": true,
"nobr": true,
"ol": true,
"p": true,
"pre": true,
"ruby": true,
"s": true,
"small": true,
"span": true,
"strong": true,
"strike": true,
"sub": true,
"sup": true,
"table": true,
"tt": true,
"u": true,
"ul": true,
"var": true,
}
// Section 12.2.5.5.
var svgTagNameAdjustments = map[string]string{
"altglyph": "altGlyph",
"altglyphdef": "altGlyphDef",
"altglyphitem": "altGlyphItem",
"animatecolor": "animateColor",
"animatemotion": "animateMotion",
"animatetransform": "animateTransform",
"clippath": "clipPath",
"feblend": "feBlend",
"fecolormatrix": "feColorMatrix",
"fecomponenttransfer": "feComponentTransfer",
"fecomposite": "feComposite",
"feconvolvematrix": "feConvolveMatrix",
"fediffuselighting": "feDiffuseLighting",
"fedisplacementmap": "feDisplacementMap",
"fedistantlight": "feDistantLight",
"feflood": "feFlood",
"fefunca": "feFuncA",
"fefuncb": "feFuncB",
"fefuncg": "feFuncG",
"fefuncr": "feFuncR",
"fegaussianblur": "feGaussianBlur",
"feimage": "feImage",
"femerge": "feMerge",
"femergenode": "feMergeNode",
"femorphology": "feMorphology",
"feoffset": "feOffset",
"fepointlight": "fePointLight",
"fespecularlighting": "feSpecularLighting",
"fespotlight": "feSpotLight",
"fetile": "feTile",
"feturbulence": "feTurbulence",
"foreignobject": "foreignObject",
"glyphref": "glyphRef",
"lineargradient": "linearGradient",
"radialgradient": "radialGradient",
"textpath": "textPath",
}
// Section 12.2.5.1
var mathMLAttributeAdjustments = map[string]string{
"definitionurl": "definitionURL",
}
var svgAttributeAdjustments = map[string]string{
"attributename": "attributeName",
"attributetype": "attributeType",
"basefrequency": "baseFrequency",
"baseprofile": "baseProfile",
"calcmode": "calcMode",
"clippathunits": "clipPathUnits",
"contentscripttype": "contentScriptType",
"contentstyletype": "contentStyleType",
"diffuseconstant": "diffuseConstant",
"edgemode": "edgeMode",
"externalresourcesrequired": "externalResourcesRequired",
"filterres": "filterRes",
"filterunits": "filterUnits",
"glyphref": "glyphRef",
"gradienttransform": "gradientTransform",
"gradientunits": "gradientUnits",
"kernelmatrix": "kernelMatrix",
"kernelunitlength": "kernelUnitLength",
"keypoints": "keyPoints",
"keysplines": "keySplines",
"keytimes": "keyTimes",
"lengthadjust": "lengthAdjust",
"limitingconeangle": "limitingConeAngle",
"markerheight": "markerHeight",
"markerunits": "markerUnits",
"markerwidth": "markerWidth",
"maskcontentunits": "maskContentUnits",
"maskunits": "maskUnits",
"numoctaves": "numOctaves",
"pathlength": "pathLength",
"patterncontentunits": "patternContentUnits",
"patterntransform": "patternTransform",
"patternunits": "patternUnits",
"pointsatx": "pointsAtX",
"pointsaty": "pointsAtY",
"pointsatz": "pointsAtZ",
"preservealpha": "preserveAlpha",
"preserveaspectratio": "preserveAspectRatio",
"primitiveunits": "primitiveUnits",
"refx": "refX",
"refy": "refY",
"repeatcount": "repeatCount",
"repeatdur": "repeatDur",
"requiredextensions": "requiredExtensions",
"requiredfeatures": "requiredFeatures",
"specularconstant": "specularConstant",
"specularexponent": "specularExponent",
"spreadmethod": "spreadMethod",
"startoffset": "startOffset",
"stddeviation": "stdDeviation",
"stitchtiles": "stitchTiles",
"surfacescale": "surfaceScale",
"systemlanguage": "systemLanguage",
"tablevalues": "tableValues",
"targetx": "targetX",
"targety": "targetY",
"textlength": "textLength",
"viewbox": "viewBox",
"viewtarget": "viewTarget",
"xchannelselector": "xChannelSelector",
"ychannelselector": "yChannelSelector",
"zoomandpan": "zoomAndPan",
}
" | "P7h/goread" | "_third_party/golang.org/x/net/html/foreign.go" | "GO" | "isc" | 6,913 |
"var baseCastPath = require('./_baseCastPath'),
get = require('./get'),
isFunction = require('./isFunction'),
isKey = require('./_isKey'),
parent = require('./_parent');
/**
* This method is like `_.get` except that if the resolved value is a function
* it's invoked with the `this` binding of its parent object and its result
* is returned.
*
* @static
* @memberOf _
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path of the property to resolve.
* @param {*} [defaultValue] The value returned if the resolved value is `undefined`.
* @returns {*} Returns the resolved value.
* @example
*
* var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
*
* _.result(object, 'a[0].b.c1');
* // => 3
*
* _.result(object, 'a[0].b.c2');
* // => 4
*
* _.result(object, 'a[0].b.c3', 'default');
* // => 'default'
*
* _.result(object, 'a[0].b.c3', _.constant('default'));
* // => 'default'
*/
function result(object, path, defaultValue) {
if (!isKey(path, object)) {
path = baseCastPath(path);
var result = get(object, path);
object = parent(object, path);
} else {
result = object == null ? undefined : object[path];
}
if (result === undefined) {
result = defaultValue;
}
return isFunction(result) ? result.call(object) : result;
}
module.exports = result;
" | "hbzhang/me" | "me/node_modules/sequelize/node_modules/lodash/result.js" | "JavaScript" | "mit" | 1,383 |
"/*
AngularJS v1.4.4
(c) 2010-2015 Google, Inc. http://angularjs.org
License: MIT
*/
(function(p,c,C){'use strict';function v(r,h,g){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(a,f,b,d,y){function z(){k&&(g.cancel(k),k=null);l&&(l.$destroy(),l=null);m&&(k=g.leave(m),k.then(function(){k=null}),m=null)}function x(){var b=r.current&&r.current.locals;if(c.isDefined(b&&b.$template)){var b=a.$new(),d=r.current;m=y(b,function(b){g.enter(b,null,m||f).then(function(){!c.isDefined(t)||t&&!a.$eval(t)||h()});z()});l=d.scope=b;l.$emit("$viewContentLoaded");
l.$eval(w)}else z()}var l,m,k,t=b.autoscroll,w=b.onload||"";a.$on("$routeChangeSuccess",x);x()}}}function A(c,h,g){return{restrict:"ECA",priority:-400,link:function(a,f){var b=g.current,d=b.locals;f.html(d.$template);var y=c(f.contents());b.controller&&(d.$scope=a,d=h(b.controller,d),b.controllerAs&&(a[b.controllerAs]=d),f.data("$ngControllerController",d),f.children().data("$ngControllerController",d));y(a)}}}p=c.module("ngRoute",["ng"]).provider("$route",function(){function r(a,f){return c.extend(Object.create(a),
f)}function h(a,c){var b=c.caseInsensitiveMatch,d={originalPath:a,regexp:a},g=d.keys=[];a=a.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(a,c,b,d){a="?"===d?d:null;d="*"===d?d:null;g.push({name:b,optional:!!a});c=c||"";return""+(a?"":c)+"(?:"+(a?c:"")+(d&&"(.+?)"||"([^/]+)")+(a||"")+")"+(a||"")}).replace(/([\/$\*])/g,"\\$1");d.regexp=new RegExp("^"+a+"$",b?"i":"");return d}var g={};this.when=function(a,f){var b=c.copy(f);c.isUndefined(b.reloadOnSearch)&&(b.reloadOnSearch=!0);
c.isUndefined(b.caseInsensitiveMatch)&&(b.caseInsensitiveMatch=this.caseInsensitiveMatch);g[a]=c.extend(b,a&&h(a,b));if(a){var d="/"==a[a.length-1]?a.substr(0,a.length-1):a+"/";g[d]=c.extend({redirectTo:a},h(d,b))}return this};this.caseInsensitiveMatch=!1;this.otherwise=function(a){"string"===typeof a&&(a={redirectTo:a});this.when(null,a);return this};this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(a,f,b,d,h,p,x){function l(b){var e=s.current;
(v=(n=k())&&e&&n.$$route===e.$$route&&c.equals(n.pathParams,e.pathParams)&&!n.reloadOnSearch&&!w)||!e&&!n||a.$broadcast("$routeChangeStart",n,e).defaultPrevented&&b&&b.preventDefault()}function m(){var u=s.current,e=n;if(v)u.params=e.params,c.copy(u.params,b),a.$broadcast("$routeUpdate",u);else if(e||u)w=!1,(s.current=e)&&e.redirectTo&&(c.isString(e.redirectTo)?f.path(t(e.redirectTo,e.params)).search(e.params).replace():f.url(e.redirectTo(e.pathParams,f.path(),f.search())).replace()),d.when(e).then(function(){if(e){var a=
c.extend({},e.resolve),b,f;c.forEach(a,function(b,e){a[e]=c.isString(b)?h.get(b):h.invoke(b,null,null,e)});c.isDefined(b=e.template)?c.isFunction(b)&&(b=b(e.params)):c.isDefined(f=e.templateUrl)&&(c.isFunction(f)&&(f=f(e.params)),c.isDefined(f)&&(e.loadedTemplateUrl=x.valueOf(f),b=p(f)));c.isDefined(b)&&(a.$template=b);return d.all(a)}}).then(function(f){e==s.current&&(e&&(e.locals=f,c.copy(e.params,b)),a.$broadcast("$routeChangeSuccess",e,u))},function(b){e==s.current&&a.$broadcast("$routeChangeError",
e,u,b)})}function k(){var a,b;c.forEach(g,function(d,g){var q;if(q=!b){var h=f.path();q=d.keys;var l={};if(d.regexp)if(h=d.regexp.exec(h)){for(var k=1,m=h.length;k<m;++k){var n=q[k-1],p=h[k];n&&p&&(l[n.name]=p)}q=l}else q=null;else q=null;q=a=q}q&&(b=r(d,{params:c.extend({},f.search(),a),pathParams:a}),b.$$route=d)});return b||g[null]&&r(g[null],{params:{},pathParams:{}})}function t(a,b){var d=[];c.forEach((a||"").split(":"),function(a,c){if(0===c)d.push(a);else{var f=a.match(/(\w+)(?:[?*])?(.*)/),
g=f[1];d.push(b[g]);d.push(f[2]||"");delete b[g]}});return d.join("")}var w=!1,n,v,s={routes:g,reload:function(){w=!0;a.$evalAsync(function(){l();m()})},updateParams:function(a){if(this.current&&this.current.$$route)a=c.extend({},this.current.params,a),f.path(t(this.current.$$route.originalPath,a)),f.search(a);else throw B("norout");}};a.$on("$locationChangeStart",l);a.$on("$locationChangeSuccess",m);return s}]});var B=c.$$minErr("ngRoute");p.provider("$routeParams",function(){this.$get=function(){return{}}});
p.directive("ngView",v);p.directive("ngView",A);v.$inject=["$route","$anchorScroll","$animate"];A.$inject=["$compile","$controller","$route"]})(window,window.angular);
//# sourceMappingURL=angular-route.min.js.map
" | "CyrusSUEN/cdnjs" | "ajax/libs/angular.js/1.4.4/angular-route.min.js" | "JavaScript" | "mit" | 4,390 |
"/*
* /MathJax/localization/pt-br/MathMenu.js
*
* Copyright (c) 2009-2015 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
MathJax.Localization.addTranslation("pt-br","MathMenu",{version:"2.6.0",isLoaded:true,strings:{Show:"Mostrar F\u00F3rmulas Como",MathMLcode:"C\u00F3digo MathML",OriginalMathML:"MathML original",TeXCommands:"Comandos TeX",AsciiMathInput:"Entrada AsciiMathML",Original:"Formato original",ErrorMessage:"Mensagem de erro",Annotation:"Anota\u00E7\u00E3o",TeX:"TeX",StarMath:"StarMath",Maple:"Maple",ContentMathML:"MathML do conte\u00FAdo",OpenMath:"OpenMath",texHints:"Mostrar dicas de TeX em MathML",Settings:"Configura\u00E7\u00F5es das f\u00F3rmulas",ZoomTrigger:"Disparador do zoom",Hover:"Passar o mouse",Click:"Clique",DoubleClick:"Clique duplo",NoZoom:"Sem zoom",TriggerRequires:"O Disparador Requer:",Option:"Op\u00E7\u00E3o",Alt:"Alt",Command:"Comando",Control:"Control",Shift:"Shift",ZoomFactor:"Fator de zoom",Renderer:"Renderizador das F\u00F3rmulas",MPHandles:"Deixe que o MathPlayer resolva:",MenuEvents:"Eventos de Menu",MouseEvents:"Eventos de Mouse",MenuAndMouse:"Eventos de Mouse e de Menu",FontPrefs:"Prefer\u00EAncias de Fontes",ForHTMLCSS:"Para HTML-CSS:",Auto:"Autom\u00E1tico",TeXLocal:"TeX (local)",TeXWeb:"TeX (web)",TeXImage:"TeX (imagem)",STIXLocal:"STIX (local)",STIXWeb:"STIX (Web)",AsanaMathWeb:"Asana Math (Web)",GyrePagellaWeb:"Gyre Pagella (Web)",GyreTermesWeb:"Gyre Termes (Web)",LatinModernWeb:"Latim Moderno (Web)",NeoEulerWeb:"Neo Euler (web)",ContextMenu:"Menu de Contexto",Browser:"Navegador",Scale:"Redimensionar Todas as F\u00F3rmulas ...",Discoverable:"Destacar ao Passar o Mouse",Locale:"Idioma",LoadLocale:"Carregar a partir de URL ...",About:"Sobre o MathJax",Help:"Ajuda do MathJax",localTeXfonts:"usando fontes TeX locais",webTeXfonts:"usando fontes TeX da web",imagefonts:"usando fontes feitas com imagens",localSTIXfonts:"usando fontes STIX",webSVGfonts:"usando fontes SVG da web",genericfonts:"usando fontes unicode gen\u00E9ricas",wofforotffonts:"fontes woff ou otf",eotffonts:"fontes eot",svgfonts:"fontes svg",WebkitNativeMMLWarning:"N\u00E3o parece haver suporte nativo ao MathML em seu navegador, ent\u00E3o a mudan\u00E7a para MathML pode tornar ileg\u00EDveis as f\u00F3rmulas matem\u00E1ticas da p\u00E1gina.",MSIENativeMMLWarning:"O Internet Explorer requer o plugin MathPlayer para processar MathML.",OperaNativeMMLWarning:"O suporte ao MathML no Opera \u00E9 limitado, ent\u00E3o a mudan\u00E7a para MathML pode piorar a renderiza\u00E7\u00E3o de algumas express\u00F5es.",SafariNativeMMLWarning:"O suporte ao MathML nativo do seu navegador n\u00E3o implementa todos os recursos usados pelo MathJax, ent\u00E3o algumas express\u00F5es podem n\u00E3o ser exibidas adequadamente.",FirefoxNativeMMLWarning:"O suporte ao MathML nativo do seu navegador n\u00E3o implementa todos os recursos usados pelo MathJax, ent\u00E3o algumas express\u00F5es podem n\u00E3o ser exibidas adequadamente.",MSIESVGWarning:"N\u00E3o h\u00E1 uma implementa\u00E7\u00E3o de SVG nas vers\u00F5es do Internet Explorer anteriores ao IE9 ou quando ele est\u00E1 emulando o IE8 ou as vers\u00F5es anteriores. A mudan\u00E7a para SVG far\u00E1 com que as f\u00F3rmulas n\u00E3o sejam exibidas adequadamente.",LoadURL:"Carregar os dados de tradu\u00E7\u00E3o a partir desta URL:",BadURL:"A URL deve ser para um um arquivo de javascript que defina os dados de tradu\u00E7\u00E3o do MathJax. Os nomes dos arquivos de Javascript devem terminar com '.js'",BadData:"Falha ao carregar os dados de tradu\u00E7\u00E3o de %1",SwitchAnyway:"Mudar para este renderizador mesmo assim?\n\n(Pressione OK para mudar, CANCELAR para continuar com o renderizador atual)",ScaleMath:"Redimensionar todas as f\u00F3rmulas matem\u00E1ticas (em rela\u00E7\u00E3o ao texto \u00E0 sua volta) em",NonZeroScale:"A escala n\u00E3o deve ser zero",PercentScale:"A escala deve ser uma porcentagem (por exemplo, 120%%)",IE8warning:"Isto desabilitar\u00E1 o menu MathJax e os recursos de zoom, mas voc\u00EA poder\u00E1 usar Alt-Clique em uma express\u00E3o para obter o menu MathJax em vez disso.\n\nRealmente alterar as configura\u00E7\u00F5es do MathPlayer?",IE9warning:"O menu de contexto do MathJax ser\u00E1 desabilitado, mas voc\u00EA pode usar Alt-Clique em uma express\u00E3o para obter o menu MathJax em vez disso.",NoOriginalForm:"Sem uma forma original dispon\u00EDvel",Close:"Fechar",EqSource:"Fonte da Equa\u00E7\u00E3o do MathJax"}});MathJax.Ajax.loadComplete("[MathJax]/localization/pt-br/MathMenu.js");
" | "mattocci27/mattocci27.github.io" | "assets/NJC-stat/assets/mathjax-local/localization/pt-br/MathMenu.js" | "JavaScript" | "mit" | 5,085 |
""use strict";angular.module("ngLocale",[],["$provide",function(e){var E={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["오전","오후"],DAY:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],ERANAMES:["기원전","서기"],ERAS:["기원전","서기"],FIRSTDAYOFWEEK:6,MONTH:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],SHORTDAY:["일","월","화","수","목","금","토"],SHORTMONTH:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],STANDALONEMONTH:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],WEEKENDRANGE:[5,6],fullDate:"y년 M월 d일 EEEE",longDate:"y년 M월 d일",medium:"y. M. d. a h:mm:ss",mediumDate:"y. M. d.",mediumTime:"a h:mm:ss",short:"yy. M. d. a h:mm",shortDate:"yy. M. d.",shortTime:"a h:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"₩",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"ko-kr",localeID:"ko_KR",pluralCat:function(e,a){return E.OTHER}})}]);
//# sourceMappingURL=angular-locale_ko-kr.min.js.map" | "sajochiu/cdnjs" | "ajax/libs/angular.js/1.4.14/i18n/angular-locale_ko-kr.min.js" | "JavaScript" | "mit" | 1,326 |
""use strict";angular.module("ngLocale",[],["$provide",function(e){function r(e){e+="";var r=e.indexOf(".");return r==-1?0:e.length-r-1}function a(e,a){var n=a;void 0===n&&(n=Math.min(r(e),3));var M=Math.pow(10,n),u=(e*M|0)%M;return{v:n,f:u}}var n={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, d MMMM y",longDate:"d MMMM y",medium:"d MMM y h:mm:ss a",mediumDate:"d MMM y",mediumTime:"h:mm:ss a",short:"dd/MM/y h:mm a",shortDate:"dd/MM/y",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"Ksh",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-ke",localeID:"en_KE",pluralCat:function(e,r){var M=0|e,u=a(e,r);return 1==M&&0==u.v?n.ONE:n.OTHER}})}]);
//# sourceMappingURL=angular-locale_en-ke.min.js.map" | "honestree/cdnjs" | "ajax/libs/angular-i18n/1.5.9/angular-locale_en-ke.min.js" | "JavaScript" | "mit" | 1,530 |
"<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Console\Tester;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\StreamOutput;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
/**
* Eases the testing of console commands.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class CommandTester
{
private $command;
private $input;
private $output;
private $statusCode;
/**
* Constructor.
*
* @param Command $command A Command instance to test.
*/
public function __construct(Command $command)
{
$this->command = $command;
}
/**
* Executes the command.
*
* Available options:
*
* * interactive: Sets the input interactive flag
* * decorated: Sets the output decorated flag
* * verbosity: Sets the output verbosity flag
*
* @param array $input An array of arguments and options
* @param array $options An array of options
*
* @return integer The command exit code
*/
public function execute(array $input, array $options = array())
{
// set the command name automatically if the application requires
// this argument and no command name was passed
if (!isset($input['command'])
&& (null !== $application = $this->command->getApplication())
&& $application->getDefinition()->hasArgument('command')
) {
$input['command'] = $this->command->getName();
}
$this->input = new ArrayInput($input);
if (isset($options['interactive'])) {
$this->input->setInteractive($options['interactive']);
}
$this->output = new StreamOutput(fopen('php://memory', 'w', false));
if (isset($options['decorated'])) {
$this->output->setDecorated($options['decorated']);
}
if (isset($options['verbosity'])) {
$this->output->setVerbosity($options['verbosity']);
}
return $this->statusCode = $this->command->run($this->input, $this->output);
}
/**
* Gets the display returned by the last execution of the command.
*
* @param Boolean $normalize Whether to normalize end of lines to \n or not
*
* @return string The display
*/
public function getDisplay($normalize = false)
{
rewind($this->output->getStream());
$display = stream_get_contents($this->output->getStream());
if ($normalize) {
$display = str_replace(PHP_EOL, "\n", $display);
}
return $display;
}
/**
* Gets the input instance used by the last execution of the command.
*
* @return InputInterface The current input instance
*/
public function getInput()
{
return $this->input;
}
/**
* Gets the output instance used by the last execution of the command.
*
* @return OutputInterface The current output instance
*/
public function getOutput()
{
return $this->output;
}
/**
* Gets the status code returned by the last execution of the application.
*
* @return integer The status code
*/
public function getStatusCode()
{
return $this->statusCode;
}
}
" | "johnny1991/MHAM" | "vendor/symfony/symfony/src/Symfony/Component/Console/Tester/CommandTester.php" | "PHP" | "mit" | 3,612 |
"/*! jQuery UI - v1.11.4 - 2015-03-13
* http://jqueryui.com
* Copyright jQuery Foundation and other contributors; Licensed MIT */
(function(t){"function"==typeof define&&define.amd?define(["../datepicker"],t):t(jQuery.datepicker)})(function(t){return t.regional["ar-DZ"]={closeText:"إغلاق",prevText:"<السابق",nextText:"التالي>",currentText:"اليوم",monthNames:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesMin:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:6,isRTL:!0,showMonthAfterYear:!1,yearSuffix:""},t.setDefaults(t.regional["ar-DZ"]),t.regional["ar-DZ"]});" | "HerrR/mobutv-projekt" | "bower_components/jquery-ui/ui/minified/i18n/datepicker-ar-DZ.min.js" | "JavaScript" | "mit" | 1,149 |
"/*! jQuery UI - v1.11.4 - 2015-03-13
* http://jqueryui.com
* Copyright jQuery Foundation and other contributors; Licensed MIT */
(function(e){"function"==typeof define&&define.amd?define(["../datepicker"],e):e(jQuery.datepicker)})(function(e){return e.regional.sr={closeText:"Затвори",prevText:"<",nextText:">",currentText:"Данас",monthNames:["Јануар","Фебруар","Март","Април","Мај","Јун","Јул","Август","Септембар","Октобар","Новембар","Децембар"],monthNamesShort:["Јан","Феб","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Нов","Дец"],dayNames:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"],dayNamesShort:["Нед","Пон","Уто","Сре","Чет","Пет","Суб"],dayNamesMin:["Не","По","Ут","Ср","Че","Пе","Су"],weekHeader:"Сед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.setDefaults(e.regional.sr),e.regional.sr});" | "aoliverio/builder" | "webroot/bower_components/jquery-ui/ui/minified/i18n/datepicker-sr.min.js" | "JavaScript" | "mit" | 1,074 |
"webshims.register("mediaelement-jaris",function(a,b,c,d,e,f){"use strict";var g=b.mediaelement,h=c.swfmini,i=Modernizr.audio&&Modernizr.video,j=h.hasFlashPlayerVersion("9.0.115"),k=0,l="ActiveXObject"in c&&i,m={paused:!0,ended:!1,currentSrc:"",duration:c.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,seeking:!1,error:null,buffered:{start:function(a){return a?(b.error("buffered index size error"),void 0):0},end:function(a){return a?(b.error("buffered index size error"),void 0):0},length:0}},n=Object.keys(m),o={currentTime:0,volume:1,muted:!1},p=(Object.keys(o),a.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,currentTime:0,_ppFlag:e,_calledMeta:!1,lastDuration:0},m,o)),q=function(a){try{a.nodeName}catch(c){return null}var d=b.data(a,"mediaelement");return d&&"third"==d.isActive?d:null},r=function(b,c){c=a.Event(c),c.preventDefault(),a.event.trigger(c,e,b)},s=f.playerPath||b.cfg.basePath+"swf/"+(f.playerName||"JarisFLVPlayer.swf");b.extendUNDEFProp(f.params,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent",allowNetworking:"all"}),b.extendUNDEFProp(f.vars,{controltype:"1",jsapi:"1"}),b.extendUNDEFProp(f.attrs,{bgcolor:"#000000"});var t=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer),a>=3&&b.readyState<3&&(b.readyState=a,r(b._elem,"canplay"),b.paused||r(b._elem,"playing"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){t(4,b)},4e3)),a>=4&&b.readyState<4&&(b.readyState=a,r(b._elem,"canplaythrough")),b.readyState=a},u=function(b){b.seeking&&Math.abs(b.currentTime-b._lastSeektime)<2&&(b.seeking=!1,a(b._elem).triggerHandler("seeked"))};g.jarisEvent={};var v,w={onPlayPause:function(a,b,c){var d,e;if(null==c)try{d=b.api.api_get("isPlaying")}catch(f){}else d=c;d==b.paused&&(b.paused=!d,e=b.paused?"pause":"play",b._ppFlag=!0,r(b._elem,e),b.readyState<3&&t(3,b),b.paused||r(b._elem,"playing"))},onSeek:function(b,c){c._lastSeektime=b.seekTime,c.seeking=!0,a(c._elem).triggerHandler("seeking"),clearTimeout(c._seekedTimer),c._seekedTimer=setTimeout(function(){u(c),c.seeking=!1},300)},onConnectionFailed:function(){b.error("media error")},onNotBuffering:function(a,b){t(3,b)},onDataInitialized:function(a,b){var c,d=b.duration;b.duration=a.duration,d==b.duration||isNaN(b.duration)||b._calledMeta&&(c=Math.abs(b.lastDuration-b.duration))<2||(b.videoHeight=a.height,b.videoWidth=a.width,b.networkState||(b.networkState=2),b.readyState<1&&t(1,b),clearTimeout(b._durationChangeTimer),b._calledMeta&&b.duration?b._durationChangeTimer=setTimeout(function(){b.lastDuration=b.duration,r(b._elem,"durationchange")},c>50?0:c>9?9:99):(b.lastDuration=b.duration,b.duration&&r(b._elem,"durationchange"),b._calledMeta||r(b._elem,"loadedmetadata")),b._calledMeta=!0)},onBuffering:function(a,b){b.ended&&(b.ended=!1),t(1,b),r(b._elem,"waiting")},onTimeUpdate:function(a,b){b.ended&&(b.ended=!1),b.readyState<3&&(t(3,b),r(b._elem,"playing")),b.seeking&&u(b),r(b._elem,"timeupdate")},onProgress:function(b,c){if(c.ended&&(c.ended=!1),c.duration&&!isNaN(c.duration)){var d=b.loaded/b.total;d>.02&&.2>d?t(3,c):d>.2&&(d>.99&&(c.networkState=1),t(4,c)),c._bufferedEnd&&c._bufferedEnd>d&&(c._bufferedStart=c.currentTime||0),c._bufferedEnd=d,c.buffered.length=1,a.event.trigger("progress",e,c._elem,!0)}},onPlaybackFinished:function(a,b){b.readyState<4&&t(4,b),b.ended=!0,r(b._elem,"ended")},onVolumeChange:function(a,b){(b.volume!=a.volume||b.muted!=a.mute)&&(b.volume=a.volume,b.muted=a.mute,r(b._elem,"volumechange"))},ready:function(){var c=function(a){var b=!0;try{a.api.api_get("volume")}catch(c){b=!1}return b};return function(d,e){var f=0,g=function(){return f>9?(e.tryedReframeing=0,void 0):(f++,e.tryedReframeing++,c(e)?(e.wasSwfReady=!0,e.tryedReframeing=0,y(e),x(e)):e.tryedReframeing<6?e.tryedReframeing<3?(e.reframeTimer=setTimeout(g,9),e.shadowElem.css({overflow:"visible"}),setTimeout(function(){e.shadowElem.css({overflow:"hidden"})},1)):(e.shadowElem.css({overflow:"hidden"}),a(e._elem).mediaLoad()):(clearTimeout(e.reframeTimer),b.error("reframing error")),void 0)};e&&e.api&&(e.tryedReframeing||(e.tryedReframeing=0),clearTimeout(v),clearTimeout(e.reframeTimer),e.shadowElem.removeClass("flashblocker-assumed"),f?e.reframeTimer=setTimeout(g,9):g())}}()};w.onMute=w.onVolumeChange;var x=function(a){var c,d=a.actionQueue.length,e=0;if(d&&"third"==a.isActive)for(;a.actionQueue.length&&d>e;){e++,c=a.actionQueue.shift();try{a.api[c.fn].apply(a.api,c.args)}catch(f){b.warn(f)}}a.actionQueue.length&&(a.actionQueue=[])},y=function(b){b&&((b._ppFlag===e&&a.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("third"==b.isActive&&(b._ppFlag===e||!b.paused))try{a(b._elem).play(),b._ppFlag=!0}catch(c){}},1),b.muted&&a.prop(b._elem,"muted",!0),1!=b.volume&&a.prop(b._elem,"volume",b.volume))},z=a.noop;if(i){var A={play:1,playing:1},B=["play","pause","playing","canplay","progress","waiting","ended","loadedmetadata","durationchange","emptied"],C=B.map(function(a){return a+".webshimspolyfill"}).join(" "),D=function(c){var d=b.data(c.target,"mediaelement");if(d){var e=c.originalEvent&&c.originalEvent.type===c.type;e==("third"==d.activating)&&(c.stopImmediatePropagation(),A[c.type]&&(d.isActive!=d.activating?a(c.target).pause():e&&(a.prop(c.target,"pause")._supvalue||a.noop).apply(c.target)))}};z=function(c){a(c).off(C).on(C,D),B.forEach(function(a){b.moveToFirstEvent(c,a)})},z(d)}g.setActive=function(c,d,e){if(e||(e=b.data(c,"mediaelement")),e&&e.isActive!=d){"html5"!=d&&"third"!=d&&b.warn("wrong type for mediaelement activating: "+d);var f=b.data(c,"shadowData");e.activating=d,a(c).pause(),e.isActive=d,"third"==d?(f.shadowElement=f.shadowFocusElement=e.shadowElem[0],a(c).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(a(c).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),f.shadowElement=f.shadowFocusElement=!1),a(c).trigger("mediaelementapichange")}};var E=function(){var a=["_calledMeta","lastDuration","_bufferedEnd","_bufferedStart","_ppFlag","currentSrc","currentTime","duration","ended","networkState","paused","seeking","videoHeight","videoWidth"],b=a.length;return function(c){if(c){clearTimeout(c._seekedTimer);var d=b,e=c.networkState;for(t(0,c),clearTimeout(c._durationChangeTimer);--d>-1;)delete c[a[d]];c.actionQueue=[],c.buffered.length=0,e&&r(c._elem,"emptied")}}}(),F=function(){var b={},e=function(c){var e,f,g;return b[c.currentSrc]?e=b[c.currentSrc]:c.videoHeight&&c.videoWidth?(b[c.currentSrc]={width:c.videoWidth,height:c.videoHeight},e=b[c.currentSrc]):(f=a.attr(c._elem,"poster"))&&(e=b[f],e||(g=d.createElement("img"),g.onload=function(){b[f]={width:this.width,height:this.height},b[f].height&&b[f].width?G(c,a.prop(c._elem,"controls")):delete b[f],g.onload=null},g.src=f,g.complete&&g.onload&&g.onload())),e||{width:300,height:"video"==c._elemNodeName?150:50}},f=function(a,b){return a.style[b]||a.currentStyle&&a.currentStyle[b]||c.getComputedStyle&&(c.getComputedStyle(a,null)||{})[b]||""},g=["minWidth","maxWidth","minHeight","maxHeight"],h=function(a,b){var c,d,e=!1;for(c=0;4>c;c++)d=f(a,g[c]),parseFloat(d,10)&&(e=!0,b[g[c]]=d);return e},i=function(b){var c,d,g=b._elem,i={width:"auto"==f(g,"width"),height:"auto"==f(g,"height")},j={width:!i.width&&a(g).width(),height:!i.height&&a(g).height()};return(i.width||i.height)&&(c=e(b),d=c.width/c.height,i.width&&i.height?(j.width=c.width,j.height=c.height):i.width?j.width=j.height*d:i.height&&(j.height=j.width/d),h(g,j)&&(b.shadowElem.css(j),i.width&&(j.width=b.shadowElem.height()*d),i.height&&(j.height=(i.width?j.width:b.shadowElem.width())/d),i.width&&i.height&&(b.shadowElem.css(j),j.height=b.shadowElem.width()/d,j.width=j.height*d,b.shadowElem.css(j),j.width=b.shadowElem.height()*d,j.height=j.width/d),Modernizr.video||(j.width=b.shadowElem.width(),j.height=b.shadowElem.height()))),j};return i}(),G=function(b,c){var d,e=b.shadowElem;a(b._elem)[c?"addClass":"removeClass"]("webshims-controls"),("third"==b.isActive||"third"==b.activating)&&("audio"!=b._elemNodeName||c?(b._elem.style.display="",d=F(b),b._elem.style.display="none",e.css(d)):e.css({width:0,height:0}))},H=function(){var b={"":1,auto:1};return function(c){var d=a.attr(c,"preload");return null==d||"none"==d||a.prop(c,"autoplay")?!1:(d=a.prop(c,"preload"),!!(b[d]||"metadata"==d&&a(c).is(".preload-in-doubt, video:not([poster])")))}}(),I={A:/&/g,a:/&/g,e:/\=/g,q:/\?/g},J=function(a){return a.replace?a.replace(I.A,"%26").replace(I.a,"%26").replace(I.e,"%3D").replace(I.q,"%3F"):a};if("matchMedia"in c){var K=!1;try{K=c.matchMedia("only all").matches}catch(L){}K&&(g.sortMedia=function(a,b){try{a=!a.media||matchMedia(a.media).matches,b=!b.media||matchMedia(b.media).matches}catch(c){return 0}return a==b?0:a?-1:1})}g.createSWF=function(c,e,l){if(!j)return setTimeout(function(){a(c).mediaLoad()},1),void 0;var m={};1>k?k=1:k++,l||(l=b.data(c,"mediaelement")),((m.height=a.attr(c,"height")||"")||(m.width=a.attr(c,"width")||""))&&(a(c).css(m),b.warn("width or height content attributes used. Webshims prefers the usage of CSS (computed styles or inline styles) to detect size of a video/audio. It's really more powerfull."));var n,o="audio/rtmp"==e.type||"video/rtmp"==e.type,q=a.extend({},f.vars,{poster:J(a.attr(c,"poster")&&a.prop(c,"poster")||""),source:J(e.streamId||e.srcProp),server:J(e.server||"")}),r=a(c).data("vars")||{},t=a.prop(c,"controls"),u="jarisplayer-"+b.getID(c),x=a.extend({},f.params,a(c).data("params")),y=c.nodeName.toLowerCase(),A=a.extend({},f.attrs,{name:u,id:u},a(c).data("attrs")),B=function(){"third"==l.isActive&&G(l,a.prop(c,"controls"))};return l&&l.swfCreated?(g.setActive(c,"third",l),l.currentSrc=e.srcProp,l.shadowElem.html('<div id="'+u+'">'),l.api=!1,l.actionQueue=[],n=l.shadowElem,E(l)):(a(d.getElementById("wrapper-"+u)).remove(),n=a('<div class="polyfill-'+y+' polyfill-mediaelement" id="wrapper-'+u+'"><div id="'+u+'"></div>').css({position:"relative",overflow:"hidden"}),l=b.data(c,"mediaelement",b.objectCreate(p,{actionQueue:{value:[]},shadowElem:{value:n},_elemNodeName:{value:y},_elem:{value:c},currentSrc:{value:e.srcProp},swfCreated:{value:!0},id:{value:u.replace(/-/g,"")},buffered:{value:{start:function(a){return a>=l.buffered.length?(b.error("buffered index size error"),void 0):0},end:function(a){return a>=l.buffered.length?(b.error("buffered index size error"),void 0):(l.duration-l._bufferedStart)*l._bufferedEnd+l._bufferedStart},length:0}}})),n.insertBefore(c),i&&a.extend(l,{volume:a.prop(c,"volume"),muted:a.prop(c,"muted")}),b.addShadowDom(c,n),b.data(c,"mediaelement")||b.data(c,"mediaelement",l),z(c),g.setActive(c,"third",l),G(l,t),a(c).on({"updatemediaelementdimensions loadedmetadata emptied":B,remove:function(a){!a.originalEvent&&g.jarisEvent[l.id]&&g.jarisEvent[l.id].elem==c&&(delete g.jarisEvent[l.id],clearTimeout(v),clearTimeout(l.flashBlock))}}).onWSOff("updateshadowdom",B)),g.jarisEvent[l.id]&&g.jarisEvent[l.id].elem!=c?(b.error("something went wrong"),void 0):(g.jarisEvent[l.id]||(g.jarisEvent[l.id]=function(a){if("ready"==a.type){var b=function(){l.api&&(H(c)&&l.api.api_preload(),w.ready(a,l))};l.api?b():setTimeout(b,9)}else l.currentTime=a.position,l.api&&(!l._calledMeta&&isNaN(a.duration)&&l.duration!=a.duration&&isNaN(l.duration)&&w.onDataInitialized(a,l),l._ppFlag||"onPlayPause"==a.type||w.onPlayPause(a,l),w[a.type]&&w[a.type](a,l)),l.duration=a.duration},g.jarisEvent[l.id].elem=c),a.extend(q,{id:u,evtId:l.id,controls:""+t,autostart:"false",nodename:y},r),o?q.streamtype="rtmp":"audio/mpeg"==e.type||"audio/mp3"==e.type?(q.type="audio",q.streamtype="file"):"video/youtube"==e.type&&(q.streamtype="youtube"),f.changeSWF(q,c,e,l,"embed"),clearTimeout(l.flashBlock),h.embedSWF(s,u,"100%","100%","9.0.115",!1,q,x,A,function(d){if(d.success){var e=function(){(!d.ref.parentNode&&n[0].parentNode||"none"==d.ref.style.display)&&(n.addClass("flashblocker-assumed"),a(c).trigger("flashblocker"),b.warn("flashblocker assumed")),a(d.ref).css({minHeight:"2px",minWidth:"2px",display:"block"})};l.api=d.ref,t||a(d.ref).attr("tabindex","-1").css("outline","none"),l.flashBlock=setTimeout(e,99),v||(clearTimeout(v),v=setTimeout(function(){e();var c=a(d.ref);c[0].offsetWidth>1&&c[0].offsetHeight>1&&0===location.protocol.indexOf("file:")?b.error("Add your local development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html"):(c[0].offsetWidth<2||c[0].offsetHeight<2)&&b.warn("JS-SWF connection can't be established on hidden or unconnected flash objects"),c=null},8e3))}}),void 0)};var M=function(a,b,c,d){return d=d||q(a),d?(d.api&&d.api[b]?d.api[b].apply(d.api,c||[]):(d.actionQueue.push({fn:b,args:c}),d.actionQueue.length>10&&setTimeout(function(){d.actionQueue.length>5&&d.actionQueue.shift()},99)),d):!1};if(["audio","video"].forEach(function(c){var d,e={},f=function(a){("audio"!=c||"videoHeight"!=a&&"videoWidth"!=a)&&(e[a]={get:function(){var b=q(this);return b?b[a]:i&&d[a].prop._supget?d[a].prop._supget.apply(this):p[a]},writeable:!1})},g=function(a,b){f(a),delete e[a].writeable,e[a].set=b};g("seeking"),g("volume",function(a){var c=q(this);if(c)a*=1,isNaN(a)||((0>a||a>1)&&b.error("volume greater or less than allowed "+a/100),M(this,"api_volume",[a],c),c.volume!=a&&(c.volume=a,r(c._elem,"volumechange")),c=null);else if(d.volume.prop._supset)return d.volume.prop._supset.apply(this,arguments)}),g("muted",function(a){var b=q(this);if(b)a=!!a,M(this,"api_muted",[a],b),b.muted!=a&&(b.muted=a,r(b._elem,"volumechange")),b=null;else if(d.muted.prop._supset)return d.muted.prop._supset.apply(this,arguments)}),g("currentTime",function(a){var b=q(this);if(b)a*=1,isNaN(a)||M(this,"api_seek",[a],b);else if(d.currentTime.prop._supset)return d.currentTime.prop._supset.apply(this,arguments)}),["play","pause"].forEach(function(a){e[a]={value:function(){var b=q(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),M(this,"play"==a?"api_play":"api_pause",[],b),b._ppFlag=!0,b.paused!=("play"!=a)&&(b.paused="play"!=a,r(b._elem,a));else if(d[a].prop._supvalue)return d[a].prop._supvalue.apply(this,arguments)}}}),n.forEach(f),b.onNodeNamesPropertyModify(c,"controls",function(b,d){var e=q(this);a(this)[d?"addClass":"removeClass"]("webshims-controls"),e&&("audio"==c&&G(e,d),M(this,"api_controls",[d],e))}),b.onNodeNamesPropertyModify(c,"preload",function(){var c,d,e;H(this)&&(c=q(this),c?M(this,"api_preload",[],c):!l||!this.paused||this.error||a.data(this,"mediaerror")||this.readyState||this.networkState||this.autoplay||!a(this).is(":not(.nonnative-api-active)")||(e=this,d=b.data(e,"mediaelementBase")||b.data(e,"mediaelementBase",{}),clearTimeout(d.loadTimer),d.loadTimer=setTimeout(function(){a(e).mediaLoad()},9)))}),d=b.defineNodeNameProperties(c,e,"prop"),Modernizr.mediaDefaultMuted||b.defineNodeNameProperties(c,{defaultMuted:{get:function(){return null!=a.attr(this,"muted")},set:function(b){b?a.attr(this,"muted",""):a(this).removeAttr("muted")}}},"prop")}),j&&a.cleanData){var N=a.cleanData,O={object:1,OBJECT:1};a.cleanData=function(a){var b,c;if(a&&(c=a.length)&&k)for(b=0;c>b;b++)if(O[a[b].nodeName]&&"api_pause"in a[b]){k--;try{a[b].api_pause()}catch(d){}}return N.apply(this,arguments)}}i?"media"in d.createElement("source")||b.reflectProperties("source",["media"]):(["poster","src"].forEach(function(a){b.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],a,{reflect:!0,propType:"src"})}),b.defineNodeNamesProperty(["audio","video"],"preload",{reflect:!0,propType:"enumarated",defaultValue:"",limitedTo:["","auto","metadata","none"]}),b.reflectProperties("source",["type","media"]),["autoplay","controls"].forEach(function(a){b.defineNodeNamesBooleanProperty(["audio","video"],a)}),b.defineNodeNamesProperties(["audio","video"],{HAVE_CURRENT_DATA:{value:2},HAVE_ENOUGH_DATA:{value:4},HAVE_FUTURE_DATA:{value:3},HAVE_METADATA:{value:1},HAVE_NOTHING:{value:0},NETWORK_EMPTY:{value:0},NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},NETWORK_NO_SOURCE:{value:3}},"prop")),f.experimentallyMimetypeCheck&&!function(){var b=a.fn.addBack?"addBack":"andSelf",c=function(){var c,d="media/unknown please provide mime type",e=a(this),f=[];e.not(".ws-after-check").find("source")[b]().filter("[data-wsrecheckmimetype]:not([type])").each(function(){var b=a(this).removeAttr("data-wsrecheckmimetype"),e=function(){b.attr("data-type",d)};try{f.push(a.ajax({type:"head",url:a.attr(this,"src"),success:function(a,e,f){var g=f.getResponseHeader("Content-Type");g&&(c=!0),b.attr("data-type",g||d)},error:e}))}catch(g){e()}}),f.length&&(e.addClass("ws-after-check"),a.when.apply(a,f).always(function(){e.mediaLoad(),setTimeout(function(){e.removeClass("ws-after-check")},9)}))};a("audio.media-error, video.media-error").each(c),a(d).on("mediaerror",function(a){c.call(a.target)})}()});" | "nolsherry/cdnjs" | "ajax/libs/webshim/1.12.0/minified/shims/mediaelement-jaris.js" | "JavaScript" | "mit" | 16,872 |
"<!doctype html>
<html lang="en-gb">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
<title>Ipswich Mobile Library Route 10 – Suffolk Libraries</title>
<link rel="stylesheet" href="/css/style.css">
<link rel="preload" as="font" type="font/woff2" href="/fonts/source-sans-pro-v11-latin-regular.woff2">
<link rel="preload" as="font" type="font/woff2" href="/fonts/source-sans-pro-v11-latin-italic.woff2">
<link rel="preload" as="font" type="font/woff2" href="/fonts/source-sans-pro-v11-latin-700.woff2">
</head>
<body class="custom-sans-serif lh-copy dark-gray bg-moon-gray">
<ul class="clip">
<li><a href="#content">Skip to content</a></li>
<li><a href="#footer-nav">Skip to navigation menu</a></li>
</ul>
<div class="bg-black white pa2 ph3-ns">
<div class="custom-max-width">
<p class="f6 ma0 custom-lh-title"><span role='image' aria-label='Debit card' class='pr1'>💳</span> You can now pay online. <a href="
https://suffolk.spydus.co.uk/cgi-bin/spydus.exe/MSGTRN/OPAC/LOGINB?RDT=/SpydusCitizenPay/default.aspx
" class="underline lightest-blue">
Pay charges now →
</a></p>
</div>
</div>
<header id="site-header" class="custom-lh-title">
<div class="bg-white dark-gray ph2 ph3-ns pt2 pt3-ns">
<div class="custom-max-width flex">
<div class="w-30">
<a href="/"><img src="/images/logos/sl.svg" class="v-btm w3 w4-ns" alt="Suffolk Libraries"></a>
</div>
<div class="w-70 flex justify-end items-center">
<div><a href="/support-us/" class="dib blue pv1 pv2-ns f7 f6-ns pr2">Donate</a></div>
<div><a href="/help/joining-the-library/" class="dib custom-icon custom-icon-card blue pv1 pv2-ns f7 f6-ns">Join</a></div>
<div><a href="https://suffolk.spydus.co.uk/cgi-bin/spydus.exe/MSGTRN/OPAC/LOGINB" class="dib custom-icon custom-icon-lock blue pv1 pv2-ns ml2 f7 f6-ns">Login</a></div>
<div><a href="/search-form/" class="dib custom-icon custom-icon-search blue ml2 pv1 pv2-ns f7 f6-ns">Search</a></div>
</div>
</div>
</div>
<div class="custom-bg-corporate white ph2 ph3-ns bb b--white">
<div class="custom-max-width">
<ul class="ma0 pa0 list f6">
<li class="dib mr2 mr3-l"><a href="/" class="white underline db pv2">Home</a></li>
<li class="dib mr2 mr3-l"><a href="/elibrary/" class="white underline db pv2">eLibrary</a></li>
<li class="dib mr2 mr3-l"><a href="/events-activities/online-and-streamed-events/" class="white underline db pv2">Online events</a></li>
<li class="dib mr2 mr3-l"><a href="/help/" class="white underline db pv2">Help</a></li>
<li class="dib mr2 mr3-l"><a href="/contact/" class="white underline db pv2">Contact</a></li>
<!-- <li class="dib mr2 mr3-l"><a href="/about/" class="white underline db pv2">About</a></li>
<li class="dib"><a class="white underline db pv2" href="/support-us/">Donate</a></li> -->
</ul>
</div>
</div>
</header>
<div class="pv2 pv3-ns cf custom-max-width
">
<main id="content" class="bg-white pa2 pa5-ns pv4-ns cf mb2 border-box b--light-gray
" role="main">
<div class="pa2 ph3-ns bg-white ba b--light-gray custom-underline f6">
<a class="blue underline" href="/">Home</a>
→ <a class="blue underline" href="/mobiles-home/">Mobiles home</a>
→ Ipswich Mobile Library Route 10
</div>
<div class="custom-narrow-width">
<header class="mt3">
<h1 class="custom-lh-title f2 pa0 ma0 mb3
">Ipswich Mobile Library Route 10</h1>
</header>
<div class="lh-copy custom-hyphens custom-prose
custom-visited custom-underline">
<h2 id="contact-us">Contact us:</h2>
<p>Managers: Andrew Little and David Cook</p>
<p>Email: <a href="mailto:help@suffolklibraries.co.uk?subject=Mobile%20library%20enquiry">help@suffolklibraries.co.uk</a></p>
<p>Telephone: 01473 351249</p>
<h2 id="route-timetable">Route timetable</h2>
<table class="pure-table">
<tr>
<td valign="bottom" width="74">
<strong>Route 10</strong>
</td>
<td valign="bottom" width="161">
<strong>Town/village</strong>
</td>
<td valign="bottom" width="169">
<strong>Location</strong>
</td>
<td valign="bottom" width="103">
<strong>Time</strong>
</td>
</tr>
<tr>
<td valign="bottom" width="74">
10A
</td>
<td valign="bottom" width="161">
Rushmere St Andrew
</td>
<td valign="bottom" width="169">
Claverton Way
</td>
<td valign="bottom" width="103">
0925 – 0940
</td>
</tr>
<tr>
<td valign="bottom" width="74">
10B
</td>
<td valign="bottom" width="161">
Rushmere St Andrew
</td>
<td valign="bottom" width="169">
Bixley Drive
</td>
<td valign="bottom" width="103">
0945 – 1000
</td>
</tr>
<tr>
<td valign="bottom" width="74">
10C
</td>
<td valign="bottom" width="161">
Rushmere St Andrew
</td>
<td valign="bottom" width="169">
Broadlands Way
</td>
<td valign="bottom" width="103">
1005 – 1030
</td>
</tr>
<tr>
<td valign="bottom" width="74">
10D
</td>
<td valign="bottom" width="161">
Rushmere St Andrew
</td>
<td valign="bottom" width="169">
Foxhall Road, Heathlands Park
</td>
<td valign="bottom" width="103">
1035 – 1055
</td>
</tr>
<tr>
<td valign="bottom" width="74">
10E
</td>
<td valign="bottom" width="161">
Ipswich
</td>
<td valign="bottom" width="169">
Penshurst Road
</td>
<td valign="bottom" width="103">
1100 – 1200
</td>
</tr>
<tr>
<td valign="bottom" width="74">
10F
</td>
<td valign="bottom" width="161">
Rushmere St Andrew
</td>
<td valign="bottom" width="169">
Bucklesham Road
</td>
<td valign="bottom" width="103">
1210 – 1220
</td>
</tr>
<tr>
<td valign="bottom" width="74">
10G
</td>
<td valign="bottom" width="161">
Martlesham
</td>
<td valign="bottom" width="169">
Angela Close
</td>
<td valign="bottom" width="103">
1330 – 1345
</td>
</tr>
<tr>
<td valign="bottom" width="74">
10H
</td>
<td valign="bottom" width="161">
Martlesham
</td>
<td valign="bottom" width="169">
Bridge Farm Day Nursery
</td>
<td valign="bottom" width="103">
1350 – 1420
</td>
</tr>
<tr>
<td valign="bottom" width="74">
10I
</td>
<td valign="bottom" width="161">
Martlesham
</td>
<td valign="bottom" width="169">
Falcon Mobile Home Park
</td>
<td valign="bottom" width="103">
1430 – 1455
</td>
</tr>
<tr>
<td valign="bottom" width="74">
10J
</td>
<td valign="bottom" width="161">
Martlesham Heath
</td>
<td valign="bottom" width="169">
Douglas Bader
</td>
<td valign="bottom" width="103">
1500 – 1630
</td>
</tr>
</table>
<p><strong>Calling every 4 weeks on Tuesdays:</strong></p>
<p><strong>2020:</strong> 21 January, 18 February, 17 March, 14 April, 12 May, 9 June, 7 July, 4 August, 1 September, 29 September, 27 October, 24 November, 22 December</p>
<p><strong>2021:</strong> 19 January</p>
</div>
</div>
</main>
</div>
<footer id="footer" class="pa2 pt3 pa3-ns pt4-ns bg-near-black white custom-underline">
<div class="custom-max-width">
<div class="flex-l justify-between-l">
<div class="w-30-l mb4 f6">
<section class="pb4">
<h2 class="f6 f5-ns pa0 ma0 mb2 tracked ttu normal
">Do it online</h2>
<ul class="list pa0 ma0">
<li class="mb2 mb1-ns"><a href="https://suffolk.spydus.co.uk" class="link light-gray hover-white">Search & reserve</a></li>
<li class="mb2 mb1-ns"><a href="https://suffolk.spydus.co.uk/cgi-bin/spydus.exe/MSGTRN/OPAC/LOGINB" class="link light-gray hover-white">Login & renew</a></li>
<li class="mb2 mb1-ns"><a class="link light-gray hover-white" href="/elibrary">eLibrary</a></li>
<li class="mb2 mb1-ns"><a href="/help/joining-the-library/" class="link light-gray hover-white">Get a library card</a></li>
</ul>
</section>
<section class="pb4">
<h2 class="f6 f5-ns pa0 ma0 mb2 tracked ttu normal
">Support your library</h2>
<p>We're a charity that makes life in Suffolk better for thousands of people.</p>
<p class="ma0"><a class="b pa1 br2 custom-bg-corporate-green hover-bg-green white custom-no-underline" href="/support-us">Donate</a></p>
</section>
</div>
<div class="w-30-l mb4 f6">
<section class="pb4">
<h2 class="f6 f5-ns pa0 ma0 mb2 tracked ttu normal
">Contact us</h2>
<ul class="list pa0 ma0">
<li class="mb2 mb1-ns"><a href="tel:01473351249" class="link light-gray hover-white">01473 351249</a></li>
<li class="mb2 mb1-ns"><a href="mailto:help@suffolklibraries.co.uk" class="link light-gray hover-white">help@suffolklibraries.co.uk</a></li>
</ul>
</section>
<section class="pb4">
<h2 class="f6 f5-ns pa0 ma0 mb2 tracked ttu normal
">Social media</h2>
<ul class="list pa0 ma0">
<li class="mb2 mb1-ns"><a href="http://facebook.com/suffolklibraries" class="link light-gray hover-white">Facebook</a></li>
<li class="mb2 mb1-ns"><a href="https://www.youtube.com/user/SuffolkLibraries/" class="link light-gray hover-white">YouTube</a></li>
<li class="mb2 mb1-ns"><a href="http://twitter.com/suffolklibrary" class="link light-gray hover-white">Twitter</a></li>
<li class="mb2 mb1-ns"><a href="https://instagram.com/suffolklibraries" class="link light-gray hover-white">Instagram</a></li>
<li class="mb2 mb1-ns"><a href="https://www.linkedin.com/company/suffolk-libraries/" class="link light-gray hover-white">LinkedIn</a></li>
<li class="mb2 mb1-ns"><a href="/newsletter" class="link light-gray hover-white">Email newsletter</a></li>
</ul>
</section>
</div>
<div class="w-30-l mb4 f6">
<nav class="pb4" id="footer-nav">
<h2 class="f6 f5-ns pa0 ma0 mb2 tracked ttu normal
">Sections</h2>
<ul class="list pa0 ma0">
<li class="mb2 mb1-ns"><a href="/elibrary/" class="link light-gray hover-white">eLibrary</a></li>
<li class="mb2 mb1-ns"><a href="/libraries/" class="link light-gray hover-white">Libraries</a></li>
<li class="mb2 mb1-ns"><a href="/mobiles-home/" class="link light-gray hover-white">Mobile & home service</a></li>
<li class="mb2 mb1-ns"><a href="/help/" class="link light-gray hover-white">Help using the service</a></li>
<li class="mb2 mb1-ns"><a href="/new-suggestions/" class="link light-gray hover-white">Recommendations & reviews</a></li>
<li class="mb2 mb1-ns"><a href="/events-activities/" class="link light-gray hover-white">Events & activities</a></li>
<li class="mb2 mb1-ns"><a href="/research-and-reference/" class="link light-gray hover-white">Research & reference</a></li>
<li class="mb2 mb1-ns"><a href="/parents-carers-and-children/" class="link light-gray hover-white">Parents, carers & children</a></li>
<li class="mb2 mb1-ns"><a href="/teachers-and-home-educators/" class="link light-gray hover-white">Teachers & home educators</a></li>
<li class="mb2 mb1-ns"><a href="/health/" class="link light-gray hover-white">Health & wellbeing</a></li>
<li class="mb2 mb1-ns"><a href="/help-with-reading-and-literacy/" class="link light-gray hover-white">Help with reading & literacy</a></li>
<li class="mb2 mb1-ns"><a href="/work-and-benefits/" class="link light-gray hover-white">Work & benefits</a></li>
<li class="mb2 mb1-ns"><a href="/business-and-room-hire/" class="link light-gray hover-white">Business & room hire</a></li>
<li class="mb2 mb1-ns"><a href="/bloc/" class="link light-gray hover-white">BLOC</a></li>
<li class="mb2 mb1-ns"><a href="/music-and-drama/" class="link light-gray hover-white">Music & Drama Library</a></li>
<li class="mb2 mb1-ns"><a href="/news/" class="link light-gray hover-white">News</a></li>
<li class="mb2 mb1-ns"><a href="/about/jobs/" class="link light-gray hover-white">Jobs</a></li>
<li class="mb2 mb1-ns"><a href="/volunteer/" class="link light-gray hover-white">Volunteering</a></li>
<li class="mb2 mb1-ns"><a href="/about/" class="link light-gray hover-white">About us</a></li>
</ul>
</nav>
</div>
</div>
<section class="pb4 f6">
<h2 class="f6 f5-ns pa0 ma0 mb2 tracked ttu normal
">Privacy & cookies</h2>
<ul class="list pa0 ma0">
<li class="mb2 mb1-ns">Find out what cookies we use and how we use your data: <a href="/help/privacy-and-cookies/" class="light-gray underline hover-white">our privacy policies</a>.</li>
<li class="mb2 mb1-ns"><a href="/about/jobs/privacy-notice-for-job-applicants/" class="light-gray underline hover-white">Privacy notice for job applicants</a></li>
</ul>
</section>
<div class="pb4 f6">
<p class="ma0 light-gray">Suffolk Libraries HMRC charity number XT34476. Registered company number IP031542.</p>
</div>
</div>
</footer>
</body>
</html>
" | "suffolklibraries/sljekyll" | "_site/mobiles-home/ipswich-mobile-library-route-10/index.html" | "HTML" | "mit" | 15,429 |
"/*!
* jQuery Smooth Scroll - v1.7.2 - 2016-01-23
* https://github.com/kswedberg/jquery-smooth-scroll
* Copyright (c) 2016 Karl Swedberg
* Licensed MIT
*/
(function(factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS
factory(require('jquery'));
} else {
// Browser globals
factory(jQuery);
}
}(function($) {
var version = '1.7.2';
var optionOverrides = {};
var defaults = {
exclude: [],
excludeWithin: [],
offset: 0,
// one of 'top' or 'left'
direction: 'top',
// if set, bind click events through delegation
// supported since jQuery 1.4.2
delegateSelector: null,
// jQuery set of elements you wish to scroll (for $.smoothScroll).
// if null (default), $('html, body').firstScrollable() is used.
scrollElement: null,
// only use if you want to override default behavior
scrollTarget: null,
// fn(opts) function to be called before scrolling occurs.
// `this` is the element(s) being scrolled
beforeScroll: function() {},
// fn(opts) function to be called after scrolling occurs.
// `this` is the triggering element
afterScroll: function() {},
easing: 'swing',
speed: 400,
// coefficient for "auto" speed
autoCoefficient: 2,
// $.fn.smoothScroll only: whether to prevent the default click action
preventDefault: true
};
var getScrollable = function(opts) {
var scrollable = [];
var scrolled = false;
var dir = opts.dir && opts.dir === 'left' ? 'scrollLeft' : 'scrollTop';
this.each(function() {
var el = $(this);
if (this === document || this === window) {
return;
}
if (document.scrollingElement && (this === document.documentElement || this === document.body)) {
scrollable.push(document.scrollingElement);
return false;
}
if (el[dir]() > 0) {
scrollable.push(this);
} else {
// if scroll(Top|Left) === 0, nudge the element 1px and see if it moves
el[dir](1);
scrolled = el[dir]() > 0;
if (scrolled) {
scrollable.push(this);
}
// then put it back, of course
el[dir](0);
}
});
if (!scrollable.length) {
this.each(function() {
// If no scrollable elements and <html> has scroll-behavior:smooth because
// "When this property is specified on the root element, it applies to the viewport instead."
// and "The scroll-behavior property of the … body element is *not* propagated to the viewport."
// → https://drafts.csswg.org/cssom-view/#propdef-scroll-behavior
if (this === document.documentElement && $(this).css('scrollBehavior') === 'smooth') {
scrollable = [this];
}
// If still no scrollable elements, fall back to <body>,
// if it's in the jQuery collection
// (doing this because Safari sets scrollTop async,
// so can't set it to 1 and immediately get the value.)
if (!scrollable.length && this.nodeName === 'BODY') {
scrollable = [this];
}
});
}
// Use the first scrollable element if we're calling firstScrollable()
if (opts.el === 'first' && scrollable.length > 1) {
scrollable = [scrollable[0]];
}
return scrollable;
};
$.fn.extend({
scrollable: function(dir) {
var scrl = getScrollable.call(this, {dir: dir});
return this.pushStack(scrl);
},
firstScrollable: function(dir) {
var scrl = getScrollable.call(this, {el: 'first', dir: dir});
return this.pushStack(scrl);
},
smoothScroll: function(options, extra) {
options = options || {};
if (options === 'options') {
if (!extra) {
return this.first().data('ssOpts');
}
return this.each(function() {
var $this = $(this);
var opts = $.extend($this.data('ssOpts') || {}, extra);
$(this).data('ssOpts', opts);
});
}
var opts = $.extend({}, $.fn.smoothScroll.defaults, options);
var clickHandler = function(event) {
var escapeSelector = function(str) {
return str.replace(/(:|\.|\/)/g, '\\$1');
};
var link = this;
var $link = $(this);
var thisOpts = $.extend({}, opts, $link.data('ssOpts') || {});
var exclude = opts.exclude;
var excludeWithin = thisOpts.excludeWithin;
var elCounter = 0;
var ewlCounter = 0;
var include = true;
var clickOpts = {};
var locationPath = $.smoothScroll.filterPath(location.pathname);
var linkPath = $.smoothScroll.filterPath(link.pathname);
var hostMatch = location.hostname === link.hostname || !link.hostname;
var pathMatch = thisOpts.scrollTarget || (linkPath === locationPath);
var thisHash = escapeSelector(link.hash);
if (thisHash && !$(thisHash).length) {
include = false;
}
if (!thisOpts.scrollTarget && (!hostMatch || !pathMatch || !thisHash)) {
include = false;
} else {
while (include && elCounter < exclude.length) {
if ($link.is(escapeSelector(exclude[elCounter++]))) {
include = false;
}
}
while (include && ewlCounter < excludeWithin.length) {
if ($link.closest(excludeWithin[ewlCounter++]).length) {
include = false;
}
}
}
if (include) {
if (thisOpts.preventDefault) {
event.preventDefault();
}
$.extend(clickOpts, thisOpts, {
scrollTarget: thisOpts.scrollTarget || thisHash,
link: link
});
$.smoothScroll(clickOpts);
}
};
if (options.delegateSelector !== null) {
this
.undelegate(options.delegateSelector, 'click.smoothscroll')
.delegate(options.delegateSelector, 'click.smoothscroll', clickHandler);
} else {
this
.unbind('click.smoothscroll')
.bind('click.smoothscroll', clickHandler);
}
return this;
}
});
$.smoothScroll = function(options, px) {
if (options === 'options' && typeof px === 'object') {
return $.extend(optionOverrides, px);
}
var opts, $scroller, scrollTargetOffset, speed, delta;
var scrollerOffset = 0;
var offPos = 'offset';
var scrollDir = 'scrollTop';
var aniProps = {};
var aniOpts = {};
if (typeof options === 'number') {
opts = $.extend({link: null}, $.fn.smoothScroll.defaults, optionOverrides);
scrollTargetOffset = options;
} else {
opts = $.extend({link: null}, $.fn.smoothScroll.defaults, options || {}, optionOverrides);
if (opts.scrollElement) {
offPos = 'position';
if (opts.scrollElement.css('position') === 'static') {
opts.scrollElement.css('position', 'relative');
}
}
}
scrollDir = opts.direction === 'left' ? 'scrollLeft' : scrollDir;
if (opts.scrollElement) {
$scroller = opts.scrollElement;
if (!(/^(?:HTML|BODY)$/).test($scroller[0].nodeName)) {
scrollerOffset = $scroller[scrollDir]();
}
} else {
$scroller = $('html, body').firstScrollable(opts.direction);
}
// beforeScroll callback function must fire before calculating offset
opts.beforeScroll.call($scroller, opts);
scrollTargetOffset = (typeof options === 'number') ? options :
px ||
($(opts.scrollTarget)[offPos]() &&
$(opts.scrollTarget)[offPos]()[opts.direction]) ||
0;
aniProps[scrollDir] = scrollTargetOffset + scrollerOffset + opts.offset;
speed = opts.speed;
// automatically calculate the speed of the scroll based on distance / coefficient
if (speed === 'auto') {
// $scroller[scrollDir]() is position before scroll, aniProps[scrollDir] is position after
// When delta is greater, speed will be greater.
delta = Math.abs(aniProps[scrollDir] - $scroller[scrollDir]());
// Divide the delta by the coefficient
speed = delta / opts.autoCoefficient;
}
aniOpts = {
duration: speed,
easing: opts.easing,
complete: function() {
opts.afterScroll.call(opts.link, opts);
}
};
if (opts.step) {
aniOpts.step = opts.step;
}
if ($scroller.length) {
$scroller.stop().animate(aniProps, aniOpts);
} else {
opts.afterScroll.call(opts.link, opts);
}
};
$.smoothScroll.version = version;
$.smoothScroll.filterPath = function(string) {
string = string || '';
return string
.replace(/^\//, '')
.replace(/(?:index|default).[a-zA-Z]{3,4}$/, '')
.replace(/\/$/, '');
};
// default options
$.fn.smoothScroll.defaults = defaults;
}));" | "hackedison/hackedison.github.io" | "js/smooth-scroll.js" | "JavaScript" | "mit" | 9,098 |
"/**
* gulp-include-helper
* https://github.com/Claud/gulp-include-helper
*
* Copyright (c) 2014 Shiryaev Andrey <grabzila@gmail.com>
* The MIT license.
*/
'use strict';
var through = require('through2'),
glob = require('glob'),
path = require('path'),
replaceExt = require('replace-ext'),
gutil = require('gulp-util'),
fs = require('fs'),
crypto = require('crypto'),
mkdirp = require('mkdirp'),
PluginError = gutil.PluginError;
var PLUGIN_NAME = 'gulp-include-helper';
var PLACEHOLDERS = {
'js': '<script type="text/javascript" src="%filePath%"></script>',
'css': '<link rel="stylesheet" href="%filePath%">'
};
var Concat = {
defaultPathTemplates: '%basePath%/include-files/%type%/%groupName%.%type%',
createFile: function(filePath, content, group) {
filePath = filePath.replace(/%basePath%/ig, group.options.basePath);
filePath = filePath.replace(/%type%/ig, group.type);
filePath = filePath.replace(/%groupName%/ig, group.groupName);
filePath = path.normalize(filePath);
filePath = filePath.replace(/\\/g, '/');
console.log(filePath);
var tmp = path.dirname(filePath);
if (!fs.existsSync(tmp)) {
mkdirp.sync(tmp, '0775');
}
fs.writeFileSync(filePath, new Buffer(content));
return filePath;
},
concat: function(files, group) {
var buffer = [];
files.forEach(function(filePath) {
buffer.push(fs.readFileSync(filePath).toString());
});
var pathTemplates = group.options.concat.saveTo ? group.options.concat.saveTo : this.defaultPathTemplates;
var separator = group.options.concat.separator !== undefined ? group.options.concat.separator : '';
return this.createFile(pathTemplates, buffer.join(separator), group);
}
};
var Parser = {
baseRegexpStr: '<!--\\s+include-(css|js):([a-z-0-9\\-_]+)\\(([^)]+)\\)\\s+-->',
endRegex: '<!-- \\/include-\\2:\\3 -->',
parsingGroups: function(contents) {
var regexStr = this.baseRegexpStr;
var regex = new RegExp(regexStr, 'ig');
var matches = contents.match(regex);
regex = new RegExp(regexStr, 'i');
var data = [];
for (var i = 0; i < matches.length; i++) {
var match = matches[i].match(regex);
data.push({
type: match[1],
groupName: match[2],
options: JSON.parse(match[3])
});
}
return data;
},
include: function(contents, includeData, replace) {
// Remove old include data.
var regexStr = '(' + this.baseRegexpStr + ')[\\s\\S]*?' + this.endRegex + '\\n*';
var regex = new RegExp(regexStr, 'i');
//var matches = contents.match(regex);
contents = contents.replace(regex, "$1");
//console.log(includeData);
// Include new data.
regexStr = this.baseRegexpStr;
regex = new RegExp(regexStr, 'i');
if (replace) {
contents = contents.replace(regex, includeData);
} else {
contents = contents.replace(regex, "$&\n" + includeData + "\n<!-- \\/include-$1:$2 -->\n\n");
}
return contents;
}
};
function getIncludeFiles(source) {
return glob.sync(source);
}
/**
* Add md5 string (.v-{hash:9}) to file name, or query string (?_v={hash:9}).
*
* @param {string} filePath
* @param {bool} addQueryString Default false.
* @param {string} type Date or md5 (get md5 form file). Default: date.
* @return {string}
*/
function resetCache(filePath, addQueryString, type) {
try {
var line = '';
var data = fs.readFileSync(filePath);
var hash = '';
if (type == 'md5') {
hash = crypto.createHash('md5');
hash.update(data.toString(), 'utf8');
hash = hash.digest('hex');
} else {
hash = new Date().getTime();
}
if (addQueryString) {
line = filePath.replace(/(.+?)\.(min\.|)(css|js)$/i, '$1.$2$3?_v=' + hash.toString().substr(0, 9));
} else {
line = filePath.replace(/(.+?)\.(min\.|)(css|js)$/i, '$1.v-' + hash.toString().substr(0, 9) + '.$2$3');
}
} catch(err) {
this.emit('error', new gutil.PluginError(PLUGIN_NAME, err));
}
return line;
}
function injectFiles(file, options) {
var contents = file.contents.toString();
var groups = Parser.parsingGroups(contents);
//console.log(groups);
groups.forEach(function(group) {
var type = group.type;
var options = group.options;
var placeholder = options.template ? options.template : PLACEHOLDERS[type];
//options.basePath = path.resolve(options.basePath);
options.basePath = options.basePath.replace(/\\/g, '/');
var filePath = options.basePath ? path.join(options.basePath, options.src) : options.src;
var files = getIncludeFiles(filePath);
var includesData = '';
if (placeholder && files && files.length > 0) {
if (options.concat && options.concat.active) {
var tmp = Concat.concat(files, group);
files = tmp ? [tmp] : files;
}
includesData = files.map(function(filePath) {
// Reset cache.
if (options.cache && options.cache.active) {
filePath = resetCache(filePath, options.cache.addQueryString, options.cache.type);
}
// Reset basePath to baseUri.
if (options.baseUri && options.baseUri != options.basePath) {
filePath = filePath.replace(options.basePath, options.baseUri);
}
return placeholder.replace('%filePath%', filePath);
}).join('\n');
}
contents = Parser.include(contents, includesData, options.removeThisComment);
});
return contents;
}
module.exports = function(options) {
options = options || {};
var stream = through.obj(function (file, enc, callback) {
if (file.isNull()) {
this.push(file); // Do nothing if no contents
return callback();
}
if (file.isStream()) {
this.emit('error', new PluginError(PLUGIN_NAME, 'Streaming not supported!'));
return callback();
}
if (file.isBuffer()) {
try {
file.contents = new Buffer(injectFiles(file, options));
} catch (err) {
this.emit('error', new gutil.PluginError(PLUGIN_NAME, err));
}
}
this.push(file);
return callback();
});
return stream;
};" | "Claud/gulp-include-helper" | "index.js" | "JavaScript" | "mit" | 6,735 |
"<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-solvable: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.5.2~camlp4 / mathcomp-solvable - 1.11.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
mathcomp-solvable
<small>
1.11.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-11-14 07:15:20 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-14 07:15:20 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp4 4.03+1 Camlp4 is a system for writing extensible parsers for programming languages
conf-findutils 1 Virtual package relying on findutils
conf-which 1 Virtual package relying on which
coq 8.5.2~camlp4 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.03.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.03.0 Official 4.03.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlbuild 0.14.0 OCamlbuild is a build system with builtin rules to easily build most OCaml projects.
# opam file:
opam-version: "2.0"
maintainer: "Mathematical Components <mathcomp-dev@sympa.inria.fr>"
homepage: "https://math-comp.github.io/"
bug-reports: "https://github.com/math-comp/math-comp/issues"
dev-repo: "git+https://github.com/math-comp/math-comp.git"
license: "CECILL-B"
build: [ make "-C" "mathcomp/solvable" "-j" "%{jobs}%" ]
install: [ make "-C" "mathcomp/solvable" "install" ]
depends: [ "coq-mathcomp-algebra" { = version } ]
tags: [ "keyword:finite groups" "keyword:Feit Thompson theorem" "keyword:small scale reflection" "keyword:mathematical components" "keyword:odd order theorem" "logpath:mathcomp.solvable" ]
authors: [ "Jeremy Avigad <>" "Andrea Asperti <>" "Stephane Le Roux <>" "Yves Bertot <>" "Laurence Rideau <>" "Enrico Tassi <>" "Ioana Pasca <>" "Georges Gonthier <>" "Sidi Ould Biha <>" "Cyril Cohen <>" "Francois Garillot <>" "Alexey Solovyev <>" "Russell O'Connor <>" "Laurent Théry <>" "Assia Mahboubi <>" ]
synopsis: "Mathematical Components Library on finite groups (II)"
description:"""
This library contains more definitions and theorems about finite groups.
"""
url {
src: "https://github.com/math-comp/math-comp/archive/mathcomp-1.11.0.tar.gz"
checksum: "sha256=b16108320f77d15dd19ecc5aad90775b576edfa50c971682a1a439f6d364fef6"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-mathcomp-solvable.1.11.0 coq.8.5.2~camlp4</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.5.2~camlp4).
The following dependencies couldn't be met:
- coq-mathcomp-solvable -> coq-mathcomp-algebra = 1.11.0 -> coq-mathcomp-fingroup = 1.11.0 -> coq-mathcomp-ssreflect = 1.11.0 -> coq >= 8.7 -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-mathcomp-solvable.1.11.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
" | "coq-bench/coq-bench.github.io" | "clean/Linux-x86_64-4.03.0-2.0.5/released/8.5.2~camlp4/mathcomp-solvable/1.11.0.html" | "HTML" | "mit" | 7,921 |
"using System;
using System.Text;
namespace FileHelpers.Dynamic
{
/// <summary>
/// Helper classes for strings
/// </summary>
internal static class StringHelper
{
/// <summary>
/// replace the one string with another, and keep doing it
/// </summary>
/// <param name="original">Original string</param>
/// <param name="oldValue">Value to replace</param>
/// <param name="newValue">value to replace with</param>
/// <returns>String with all multiple occurrences replaced</returns>
private static string ReplaceRecursive(string original, string oldValue, string newValue)
{
const int maxTries = 1000;
string ante, res;
res = original.Replace(oldValue, newValue);
var i = 0;
do
{
i++;
ante = res;
res = ante.Replace(oldValue, newValue);
} while (ante != res ||
i > maxTries);
return res;
}
/// <summary>
/// convert a string into a valid identifier
/// </summary>
/// <param name="original">Original string</param>
/// <returns>valid identifier Original_string</returns>
internal static string ToValidIdentifier(string original)
{
if (original.Length == 0)
return string.Empty;
var res = new StringBuilder(original.Length + 1);
if (!char.IsLetter(original[0]) &&
original[0] != '_')
res.Append('_');
for (int i = 0; i < original.Length; i++)
{
char c = original[i];
if (char.IsLetterOrDigit(c) ||
c == '_')
res.Append(c);
else
res.Append('_');
}
var identifier = ReplaceRecursive(res.ToString(), "__", "_").Trim('_');
if (identifier.Length == 0)
return "_";
else if (char.IsDigit(identifier[0]))
identifier = "_" + identifier;
return identifier;
}
}
}" | "MarcosMeli/FileHelpers" | "FileHelpers/Dynamic/StringHelper.cs" | "C#" | "mit" | 2,199 |
"(defun test-input (&rest commands)
"Feed in some commands to the game"
(mapc (λ (s) (enter-input s :print nil)) commands))
(defun assert-location (location)
(assert (= (resolve location)
(monitor-peek-addr (resolve :current-location)))
nil
"Was not in location ~a" location))
(defun assert-msg (message)
"Assert that the last message was as the parameter."
(let ((message (justify-response message nil)))
(assert (equal message (first *print-transcript*))
nil "Expected '~a' but was '~a'" message (first *print-transcript*))))
(defun assert-set (&rest bits)
(assert-bits bits t))
(defun assert-clr (&rest bits)
(assert-bits bits nil))
(defun assert-object-in (object location)
(let ((expected-place (place-id location))
(actual-place (monitor-peek (object-place-address object))))
(assert expected-place nil "Expected place ~a was not defined" location)
(assert (eq expected-place actual-place)
nil
"Expected the ~a in ~a (~a) was in place ~a"
object location expected-place actual-place)))
" | "djangojames/exploratory" | "testing.lisp" | "Lisp" | "mit" | 1,065 |
"<!DOCTYPE html>
<html lang=sl>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Tipkovnica</title>
<link rel="stylesheet" type="text/css" href="../vodnik_1404.css">
<script type="text/javascript" src="jquery.js"></script><script type="text/javascript" src="jquery.syntax.js"></script><script type="text/javascript" src="yelp.js"></script>
</head>
<body id="home"><div id="wrapper" class="hfeed">
<div id="header">
<div id="branding">
<div id="blog-title"><span><a rel="home" title="Ubuntu Slovenija | Uradna spletna stran slovenske skupnosti Linux distribucije Ubuntu" href="https://www.ubuntu.si">Ubuntu Slovenija | Uradna spletna stran slovenske skupnosti Linux distribucije Ubuntu</a></span></div>
<h1 id="blog-description"></h1>
</div>
<div id="access"><div id="loco-header-menu"><ul id="primary-header-menu"><li class="widget-container widget_nav_menu" id="nav_menu-3"><div class="menu-glavni-meni-container"><ul class="menu" id="menu-glavni-meni">
<li id="menu-item-15" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-15"><a href="https://www.ubuntu.si">Novice</a></li>
<li id="menu-item-16" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-16"><a href="https://www.ubuntu.si/punbb/">Forum</a></li>
<li id="menu-item-19" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-19"><a href="https://www.ubuntu.si/kaj-je-ubuntu/">Kaj je Ubuntu?</a></li>
<li id="menu-item-20" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20"><a href="https://www.ubuntu.si/pogosta_vprasanja/">Pogosta vprašanja</a></li>
<li id="menu-item-17" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-17"><a href="https://www.ubuntu.si/skupnost/">Skupnost</a></li>
<li id="menu-item-18" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-18"><a href="https://www.ubuntu.si/povezave/">Povezave</a></li>
</ul></div></li></ul></div></div>
</div>
<div id="main"><div id="cwt-content" class="clearfix content-area"><div id="page">
<div class="trails">
<div class="trail"> » <a class="trail" href="index.html" title="Namizni vodnik Ubuntu"><span class="media media-image"><img src="figures/ubuntu-logo.png" height="16" width="16" alt="Pomoč"></span> Namizni vodnik Ubuntu</a> » <a class="trail" href="prefs.html" title="Uporabniške in sistemske nastavitve">Nastavitve</a> » </div>
<div class="trail"> » <a class="trail" href="index.html" title="Namizni vodnik Ubuntu"><span class="media media-image"><img src="figures/ubuntu-logo.png" height="16" width="16" alt="Pomoč"></span> Namizni vodnik Ubuntu</a> » <a class="trail" href="hardware.html" title="Strojna oprema in gonilniki">Strojna oprema</a> » </div>
</div>
<div id="content">
<!-- Piwik Image Tracker --><img src="https://piwik-ubuntusi.rhcloud.com/piwik.php?idsite=1&rec=1" style="border:0" alt="" /><!-- End Piwik -->
<div class="hgroup"><h1 class="title"><span class="title">Tipkovnica</span></h1></div>
<div class="region">
<div class="contents">
<div class="links topiclinks"><div class="inner">
<div class="title title-links"><h2><span class="title">Jezik in področje</span></h2></div>
<div class="region"><ul><li class="links ">
<a href="keyboard-layouts.html" title="Uporaba nadomestnih razporeditev tipk">Uporaba nadomestnih razporeditev tipk</a><span class="desc"> — Nastavitev tipkovnice, da se bo obnašala kot tipkovnica za drug jezik.</span>
</li></ul></div>
</div></div>
<div class="links topiclinks"><div class="inner">
<div class="title title-links"><h2><span class="title">Splošni dostop</span></h2></div>
<div class="region"><ul>
<li class="links ">
<a href="keyboard-nav.html" title="Krmarjenje s tipkami">Krmarjenje s tipkami</a><span class="desc"> — Uporaba programov in namizja brez miške.</span>
</li>
<li class="links ">
<a href="keyboard-osk.html" title="Uporaba zaslonske tipkovnice">Uporaba zaslonske tipkovnice</a><span class="desc"> — Uporaba zaslonske tipkovnice za vnos besedila s klikom na gumbe z miško.</span>
</li>
<li class="links ">
<a href="a11y-stickykeys.html" title="Vklop lepljivih tipk">Vklop lepljivih tipk</a><span class="desc"> — Vtipkajte tipkovne bližnjice po eno tipko na enkrat namesto pritiska vseh tipk hkrati.</span>
</li>
<li class="links ">
<a href="a11y-bouncekeys.html" title="Vklop odskočnih tipk">Vklop odskočnih tipk</a><span class="desc"> — Prezri hitro ponavljajoče se pritiske na isto tipko.</span>
</li>
<li class="links ">
<a href="a11y-slowkeys.html" title="Vklop počasnih tipk">Vklop počasnih tipk</a><span class="desc"> — Zakasnitev med pritiskom tipke in njeno pojavitvijo na zaslonu.</span>
</li>
</ul></div>
</div></div>
<div class="links topiclinks"><div class="inner">
<div class="title title-links"><h2><span class="title">Druge teme</span></h2></div>
<div class="region"><ul>
<li class="links ">
<a href="keyboard-cursor-blink.html" title="Ali naj vrivnik tipkovnice utripa">Ali naj vrivnik tipkovnice utripa</a><span class="desc"> — Nastavitev utripanja vstavitvene točke in nadzor hitrosti utripanja.</span>
</li>
<li class="links ">
<a href="keyboard-repeat-keys.html" title="Izklop ponavljajočih se pritiskov tipk">Izklop ponavljajočih se pritiskov tipk</a><span class="desc"> — Nastavite tipkovnico tako, da ne ponavlja črk medtem ko držite tipko ali spremenite zakasnitev in hitrost ponavljanja tipk.</span>
</li>
<li class="links ">
<a href="keyboard-shortcuts-set.html" title="Nastavitev tipkovnih bližnjic">Nastavitev tipkovnih bližnjic</a><span class="desc"> — Tipkovne bližnjice lahko določite ali spremenite v nastavitvah <span class=" gui">Tipkovnica</span>.</span>
</li>
<li class="links ">
<a href="shell-keyboard-shortcuts.html" title="Uporabne tipkovne bližnjice">Uporabne tipkovne bližnjice</a><span class="desc"> — Uporaba namizja s tipkovnico.</span>
</li>
</ul></div>
</div></div>
</div>
<div class="sect sect-links">
<div class="hgroup"></div>
<div class="contents"><div class="links seealsolinks"><div class="inner">
<div class="title"><h2><span class="title">Več podrobnosti</span></h2></div>
<div class="region"><ul>
<li class="links ">
<a href="hardware.html" title="Strojna oprema in gonilniki">Strojna oprema in gonilniki</a><span class="desc"> — <span class=" link"><a href="hardware.html#problems" title="Pogoste težave">Težave s strojno opremo</a></span>, <span class=" link"><a href="printing.html" title="Tiskanje">tiskalniki</a></span>, <span class=" link"><a href="power.html" title="Napajanje in baterija">nastavitve porabe</a></span>, <span class=" link"><a href="color.html" title="Upravljanje barv">upravljanje barv</a></span>, <span class=" link"><a href="bluetooth.html" title="Bluetooth">Bluetooth</a></span>, <span class=" link"><a href="disk.html" title="Diski in shramba">diski</a></span> …</span>
</li>
<li class="links ">
<a href="prefs.html" title="Uporabniške in sistemske nastavitve">Uporabniške in sistemske nastavitve</a><span class="desc"> — <span class=" link"><a href="keyboard.html" title="Tipkovnica">Tipkovnica</a></span>, <span class=" link"><a href="mouse.html" title="Miška">miška</a></span>, <span class=" link"><a href="prefs-display.html" title="Zaslon">zaslon</a></span>, <span class=" link"><a href="prefs-language.html" title="Jezik in področje">jeziki</a></span>, <span class=" link"><a href="user-accounts.html" title="Uporabniški računi">uporabniški računi</a></span> …</span>
</li>
</ul></div>
</div></div></div>
</div>
</div>
<div class="clear"></div>
</div>
</div></div></div>
<div id="footer"><img src="https://piwik-ubuntusi.rhcloud.com/piwik.php?idsite=1amp;rec=1" style="border:0"><div id="siteinfo"><p>Material v tem dokumentu je na voljo pod prosto licenco. To je prevod dokumentacije Ubuntu, ki jo je sestavila <a href="https://wiki.ubuntu.com/DocumentationTeam">Ubuntu dokumentacijska ekpa za Ubuntu</a>. V slovenščino jo je prevedla skupina <a href="https://wiki.lugos.si/slovenjenje:ubuntu">Ubuntu prevajalcev</a>. Za poročanje napak v prevodih v tej dokumentaciji ali Ubuntuju pošljite sporočilo na <a href="mailto:ubuntu-l10n-slv@lists.ubuntu.com?subject=Prijava%20napak%20v%20prevodih">dopisni seznam</a>.</p></div></div>
</div></body>
</html>
" | "ubuntu-si/ubuntu.si" | "vodnik/13.04/keyboard.html" | "HTML" | "mit" | 8,298 |
"var tests = [];
for (var file in window.__karma__.files) {
if (window.__karma__.files.hasOwnProperty(file)) {
// Removed "Spec" naming from files
if (/Spec\.js$/.test(file)) {
tests.push(file);
}
}
}
requirejs.config({
// Karma serves files from '/base'
baseUrl: '/base/app/scripts',
paths: {
'angular' : '../../bower_components/angular/angular',
'angular-cookies' : '../../bower_components/angular-cookies/angular-cookies',
'angular-ui-router' : '../../bower_components/angular-ui-router/release/angular-ui-router',
'angular-sanitize' : '../../bower_components/angular-sanitize/angular-sanitize',
'angular-resource' : '../../bower_components/angular-resource/angular-resource',
'angular-animate' : '../../bower_components/angular-animate/angular-animate',
'angular-touch' : '../../bower_components/angular-touch/angular-touch',
'angular-mocks' : '../../bower_components/angular-mocks/angular-mocks',
'angular-messages' : '../../bower_components/angular-messages/angular-messages',
'angular-google-maps' : '../../bower_components/angular-google-maps/dist/angular-google-maps',
'lodash' : '../../bower_components/lodash/dist/lodash',
'bootstrap' : '../../bower_components/bootstrap/dist/js/bootstrap',
'jquery' : '../../bower_components/jquery/dist/jquery',
'domReady' : '../../bower_components/domReady/domReady',
'text' : '../../bower_components/text/text',
'ionRangeSlider' : '../../bower_components/ion.rangeSlider/js/ion.rangeSlider.min',
'angular-ui-select': '../../bower_components/ui-select/dist/select.min'
},
shim: {
'angular' : {'exports' : 'angular', deps: ['jquery']},
'angular-ui-router' : ['angular'],
'angular-cookies': ['angular'],
'angular-sanitize': ['angular'],
'angular-resource': ['angular'],
'angular-animate': ['angular'],
'angular-touch': ['angular'],
'angular-messages' : ['angular'],
'bootstrap' : ['jquery'],
'ionRangeSlider' : ['jquery'],
'angular-google-maps' : ['angular','lodash'],
'angular-ui-select' : ['angular'],
'angular-mocks': {
deps:['angular'],
'exports':'angular.mock'
}
},
priority: [
'jquery',
'bootstrap',
'angular'
],
// ask Require.js to load these files (all our tests)
deps: tests,
// start test run, once Require.js is done
callback: window.__karma__.start
});
" | "xcafebabe/huskytime" | "test/test-main.js" | "JavaScript" | "mit" | 2,468 |
"//
// SecondViewController.m
// NXContainerControllerDemo
//
// Created by 蒋瞿风 on 16/3/11.
// Copyright © 2016年 nightx. All rights reserved.
//
#import "SecondViewController.h"
#import "AppDelegate.h"
@interface SecondViewController ()
@end
@implementation SecondViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)showVC:(UIButton *)sender{
if ([sender.titleLabel.text isEqualToString: @"Present"]) {
[[AppDelegate sharedDelegate].containerController showViewController:[self.storyboard instantiateViewControllerWithIdentifier:@"FirstViewController"] withAnimationType:AnimationTransitionPresent duration:0.5 completion:^(UIViewController * _Nonnull controller) {
}];
return;
}
if ([sender.titleLabel.text isEqualToString:@"Dismiss"]) {
[[AppDelegate sharedDelegate].containerController showViewController:[self.storyboard instantiateViewControllerWithIdentifier:@"FirstViewController"] withAnimationType:AnimationTransitionDismiss duration:0.5 completion:^(UIViewController * _Nonnull controller) {
}];
return;
}
}
@end
" | "qufeng33/NXContainerController" | "NXContainerControllerDemo/NXContainerControllerDemo/SecondViewController.m" | "Matlab" | "mit" | 1,345 |
Code Clippy Github Dataset
Dataset Description
The Code Clippy dataset consists of various public codebases from GitHub in 22 programming languages with 23 extensions totaling about 16 TB of data when uncompressed. The dataset was created from the public GitHub dataset on Google BigQuery.
How to use it
This dataset is pretty large please use the streaming parameter from the datasets
library as seen below:
from datasets import load_dataset
ds = load_dataset("CodedotAI/code_clippy_github", streaming=True)
Data Structure
Data Instances
{
'code_text': " a = mc^2",
'repo_name': 'NotEinstein',
'file_path': 'root/users/einstein.py',
'language': 'Python',
'license': 'isc',
'size': 2
}
Data Fields
Field | Type | Description |
---|---|---|
code_text | string | string of the source code contained in the code file |
repo_name | string | name of the GitHub repository |
file_path | string | path of the code file within the repository |
language | string | programming language used in the file inferred by the file extension |
license | string | license of GitHub repository |
size | int | size of source file in bytes |
Data Splits
Only a train split is provided in this dataset.
Languages
The dataset contains 22 programming languages with over 23 extensions:
{
"C": [".c"],
"C#": [".cs"],
"C++": [".cpp"],
"CSS": [".css"],
"Dart" : [".dart"],
"GO": [".go"],
"HTML":[".html"],
"Java": [".java"],
"JavaScript": [".js"],
"Jupyter Notebooks (Python)": [".ipynb"],
"Kotlin" : [".kt"],
"Lisp" : [".lisp"],
"Matlab" : [".m"],
"PHP": [".php"],
"Perl": [".pl"],
"Python": [".py"],
"R" : [".r"],
"Ruby": [".rb"],
"Rust": [".rs"],
"SQL": [".sql"],
"Shell": [".sh"],
"Swift" : [".swift"],
"TypeScript": [".ts"],
}
Licenses
Each example is also annotated with the license of the associated repository. There are in total 15 licenses:
[
'mit',
'apache-2.0',
'gpl-2.0',
'gpl-3.0',
'bsd-3-clause',
'bsd-2-clause',
'unlicense',
'apacheagpl-3.0',
'lgpl-3.0',
'cc0-1.0',
'epl-1.0',
'lgpl-2.1',
'mpl-2.0',
'isc',
'artistic-2.0'
]
Dataset Statistics
The dataset is about ~ 18 TB uncompressed. We are currently working on processing it and applying further filtering.
Dataset Creation
The dataset was created in two steps:
- Files with the extensions given in the list above were retrieved from the GitHub dataset on BigQuery using the following query:
SELECT
f.id, f.repo_name, f.path, content.copies, content.size, content.content, lic.license
FROM
`bigquery-public-data.github_repos.files` AS f
JOIN
`bigquery-public-data.github_repos.contents` as content
ON
f.id = content.id
JOIN
`bigquery-public-data.github_repos.licenses` AS lic
ON
f.repo_name = lic.repo_name
WHERE
NOT content.binary
AND (
(f.path LIKE '%.py') OR (f.path LIKE '%.java') OR (f.path LIKE '%.js')
OR (f.path LIKE '%.html') OR (f.path LIKE '%.lisp') OR (f.path LIKE '%.sh')
OR (f.path LIKE '%.r') OR (f.path LIKE '%.pl') OR (f.path LIKE '%.css')
OR (f.path LIKE '%.sql') OR (f.path LIKE '%.c') OR (f.path LIKE '%.cpp')
OR (f.path LIKE '%.ts') OR (f.path LIKE '%.cs') OR (f.path LIKE '%.go')
OR (f.path LIKE '%.rs') OR (f.path LIKE '%.swift') OR (f.path LIKE '%.php')
OR (f.path LIKE '%.dart') OR (f.path LIKE '%.kt') OR (f.path LIKE '%.m')
OR (f.path LIKE '%.rb') OR (f.path LIKE '%.ipynb')
)
-- make sure we dont go above 1 megabyte
AND (content.size BETWEEN 1024 AND 1000000)
- Currently, our CodedotAI team is working on adding additional filters and cleaning this dataset.
Personal and Sensitive Information
Since this data was collected from public repositories, there exists potential for personal and sensitive information to be included in the data through developers accidentally or on purpose uploading their secret keys, passwords, API keys, emails, etc.
Considerations for Using the Data
Social Impact of Dataset
The paper "Evaluating Large Language Models Trained on Code" from OpenAI has a good discussion on what the impact of a large language model trained on code could be. Therefore, some parts of their discussion are highlighted here as it pertains to this dataset and models that may be trained from it. As well as some differences in views from the paper, particularly around legal implications.
- Over-reliance: A language model trained on large datasets such as this one for the task of autogenerating code may generate plausible solutions that may appear correct, but are not necessarily the correct solution. Not properly evaluating the generated code may cause have negative consequences such as the introduction of bugs, or the introduction of security vulnerabilities. Therefore, it is important that users are aware of the limitations and potential negative consequences of using a language model trained on this dataset.
- Economic and labor market impacts: Large language models trained on large code datasets such as this one that are capable of generating high-quality code have the potential to automate part of the software development process. This may negatively impact software developers. However, as discussed in the paper, as shown in the Summary Report of software developers from O*NET OnLine, developers don't just write software.
- Security implications: No filtering or checking of vulnerabilities or buggy code was performed. This means that the dataset may contain code that may be malicious or contain vulnerabilities. Therefore, any model trained on this dataset may generate vulnerable, buggy, or malicious code. In safety-critical software, this could lead to software that may work improperly and could result in serious consequences depending on the software. Additionally, a model trained on this dataset may be used to generate malicious code on purpose in order to perform ransomware or other such attacks.
- Legal implications: No filtering was performed on licensed code. This means that the dataset may contain restrictive licensed code. As discussed in the paper, public Github repositories may fall under "fair use." However, there have been little to no previous cases of such usages of licensed publicly available code. Therefore, any model trained on this dataset may be required to obey license terms that align with the software it was trained on such as GPL-3.0, which is why we purposefully put this dataset under the GPL-3.0 license. It is unclear the legal ramifications of using a language model trained on this dataset.
v1.0
- The query was executed on February 1, 2022, 12:15:59 AM EST
Acknowledgements
This project would not have been possible without compute generously provided by Google through the TPU Research Cloud. We would also like to thank Dr. Razvan Bunescu and The College of Computing and Informatics at UNC Charlotte for their generous contributions to this project, specifically in funding the BigQuery and Google Cloud Storage costs. We would also like to thank the codeparrot team at Hugging face for open sourcing their documentation on github-code which we used for the readme in this dataset. For another similar dataset to this please check github-code!
- Downloads last month
- 243