Dataset Viewer
Auto-converted to Parquet Duplicate
code
stringlengths
4
991k
repo_name
stringlengths
6
116
path
stringlengths
4
249
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
4
991k
input_ids
sequencelengths
502
502
token_type_ids
sequencelengths
502
502
attention_mask
sequencelengths
502
502
labels
sequencelengths
502
502
const {Scene, Sprite} = spritejs; const container = document.getElementById('stage'); const scene = new Scene({ container, width: 1200, height: 600, // contextType: '2d', }); const layer = scene.layer(); (async function () { const sprite = new Sprite({ anchor: 0.5, bgcolor: 'red', pos: [500, 300], size: [200, 200], borderRadius: 50, }); layer.append(sprite); await sprite.transition(2.0) .attr({ bgcolor: 'green', width: width => width + 100, }); await sprite.transition(1.0) .attr({ bgcolor: 'orange', height: height => height + 100, }); }());
spritejs/spritejs
demos/doc/transition_basic/index.js
JavaScript
mit
628
[ 30522, 9530, 3367, 1063, 3496, 1010, 11867, 17625, 1065, 1027, 11867, 17625, 22578, 1025, 9530, 3367, 11661, 1027, 6254, 1012, 2131, 12260, 3672, 3762, 3593, 1006, 1005, 2754, 1005, 1007, 1025, 9530, 3367, 3496, 1027, 2047, 3496, 1006, 1063...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<?php /* * This file is part of the Sonata Project package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\BlockBundle\Block\Service; use Sonata\AdminBundle\Form\FormMapper; use Sonata\BlockBundle\Block\BaseBlockService; use Sonata\BlockBundle\Block\BlockContextInterface; use Sonata\BlockBundle\Model\BlockInterface; use Sonata\CoreBundle\Validator\ErrorElement; use Symfony\Component\HttpFoundation\Response; class EmptyBlockService extends BaseBlockService { /** * {@inheritdoc} */ public function buildEditForm(FormMapper $form, BlockInterface $block) { throw new \RuntimeException('Not used, this block renders an empty result if no block document can be found'); } /** * {@inheritdoc} */ public function validateBlock(ErrorElement $errorElement, BlockInterface $block) { throw new \RuntimeException('Not used, this block renders an empty result if no block document can be found'); } /** * {@inheritdoc} */ public function execute(BlockContextInterface $blockContext, Response $response = null) { return new Response(); } }
firestorm23/gyrolab-ste
vendor/sonata-project/block-bundle/Block/Service/EmptyBlockService.php
PHP
mit
1,302
[ 30522, 1026, 1029, 25718, 1013, 1008, 1008, 2023, 5371, 2003, 2112, 1997, 1996, 14681, 2622, 7427, 1012, 1008, 1008, 1006, 1039, 1007, 2726, 10958, 26068, 2595, 1026, 2726, 1012, 10958, 26068, 2595, 1030, 14681, 1011, 2622, 1012, 8917, 1028...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
require './test_common.rb' require '../lib/crocus/minibloom' class TestMiniBloom < Test::Unit::TestCase def test_single_push results = [] mb = MiniBloom.new mb.source('p1',1) mb.p1.pro {|i| results << [2*i[0]]} mb.p1 << [2] assert_equal([4], results.pop) end def test_single_table results = [] mb = MiniBloom.new mb.table('p1',{[:key]=>[:val]}) mb.p1 << [1,2] mb.p1.pro {|i| results << [2*i[0]]} keys = mb.p1.keys vals = mb.p1.values mb.tick assert_equal([[2]], results) assert_equal([[1]], keys) assert_equal([[2]], vals) end def test_join_tables results = [] mb = MiniBloom.new mb.table('rel1',{[:key]=>[:val]}) mb.table('p2',{[:key]=>[:val]}) mb.rel1 <= [[:alpha,1], [:beta,2]] mb.p2 <= [[:alpha,3], [:beta,4]] (mb.rel1 * mb.p2).pairs([0]=>[0]){|x,y| results << [x[0],x[1],y[1]]} mb.tick assert_equal([[:alpha, 1, 3], [:beta, 2, 4]], results) end def test_join results = [] mb = MiniBloom.new mb.run_bg mb.source('rel1',2) mb.source('rel2',2) (mb.rel1*mb.rel2).pairs([1]=>[1]) {|i,j| results << [i[0], j[0], j[1]]} mb.rel1 <= [['a',1], ['c', 3]] mb.rel2 << ['b',1] mb.stop assert_equal(['a', 'b', 1], results.pop) assert_equal([], results) end def test_cross_product results = [] mb = MiniBloom.new mb.run_bg mb.source('rel1',2) mb.source('rel2',2) (mb.rel1*mb.rel2).pairs {|i,j| results << i+j} mb.rel1 <= [['a',1], ['c', 3]] mb.rel2 << ['b',1] mb.stop assert_equal([['a', 1, 'b', 1],['c',3, 'b',1]], results.sort) end def test_two_joins outs = [] mb = MiniBloom.new mb.run_bg mb.source('rel1',2) mb.source('rel2',2) mb.source('rel3',2) ((mb.rel1*mb.rel2).pairs([0]=>[0]){|i,j| i+j} * mb.rel3).pairs([2]=>[0]).pro do |i,j| outs << i+j end mb.rel1 <= [[1,:a],[2,:a]] mb.rel2 <= [[1,:b],[2,:b]] mb.rel3 <= [[1,:c],[2,:c]] mb.stop assert_equal([[1, :a, 1, :b, 1, :c], [2, :a, 2, :b, 2, :c]], outs.sort) end require 'set' def test_recursion outs = Set.new links = Set.new mb = MiniBloom.new mb.run_bg mb.source('link', 2) mb.source('path', 2) mb.path <= mb.link mb.path <= (mb.link*mb.path).pairs([1]=>[0]) do |i,j| tup = [i[0], j[1]] unless outs.include? tup outs << tup tup else nil end end [[1,2],[2,3],[3,4],[6,7],[2,7]].each{|i| links << i} mb.link <= links mb.stop assert_equal([[1,2],[1,3],[1,4],[1,7],[2,3],[2,4],[2,7],[3,4],[6,7]], (outs+links).to_a.sort) end def test_group_by outs = [] mb = MiniBloom.new mb.run_bg mb.source('r',2) mb.r.group([1], Crocus::sum(0)) {|i| outs << i unless i.nil?} mb.r <= [[1,'a'],[2,'a'],[2,'c']] mb.stop assert_equal([['a', 3],['c', 2]], outs.sort) end def test_agg_nogroup outs = [] mb = MiniBloom.new mb.run_bg mb.source('r',2) mb.r.group([], Crocus::sum(0)) {|i| outs << i unless i.nil?} mb.r <= [[1,'a'],[2,'a'],[2,'c']] mb.stop assert_equal([[5]], outs.sort) end def test_argagg agg_outs = [] max_outs = [] min_outs = [] mb = MiniBloom.new mb.run_bg mb.source('r',2) mb.r.argagg([1], Crocus::min(0)) {|i| agg_outs << i unless i.nil?} mb.r.argmin([1], 0) {|i| min_outs << i unless i.nil?} mb.r.argmax([1], 0) {|i| max_outs << i unless i.nil?} mb.r <= [[1,'a'],[2,'a'],[2,'c']] mb.stop assert_equal([[1,'a'],[2,'c']], agg_outs.sort) assert_equal([[1,'a'],[2,'c']], min_outs.sort) assert_equal([[2,'a'],[2,'c']], max_outs.sort) end def test_argagg_nogroup outs = [] mb = MiniBloom.new mb.run_bg mb.source('r',2) mb.r.argagg([], Crocus::min(0)) {|i| outs << i unless i.nil?} mb.r <= [[1,'a'],[2,'a'],[2,'c']] mb.stop assert_equal([[1,'a']], outs) end def test_preds mb = MiniBloom.new mb.run_bg mb.source('r',2) ex_outs = false inc_outs = false fail_outs = false mb.r.on_exists? {ex_outs = true} mb.r.on_include?([1,'a']) {inc_outs = true} mb.r.on_include?(['joe']) {fail_outs = true} mb.r <= [[1,'a'],[2,'a'],[2,'c']] mb.stop assert_equal(true, ex_outs) assert_equal(true, inc_outs) assert_equal(false, fail_outs) end def test_inspected outs = [] mb = MiniBloom.new mb.run_bg mb.source('r',2) mb.r.inspected.pro {|i| outs << i} mb.r <= [[1,'a'],[2,'a'],[2,'c']] mb.stop assert_equal([[1,'a'],[2,'a'],[2,'c']].map{|i| [i.inspect]}, outs) end end
jhellerstein/crocus
test/tc_minibloom.rb
Ruby
bsd-3-clause
4,706
[ 30522, 5478, 1005, 1012, 1013, 3231, 1035, 2691, 1012, 21144, 1005, 5478, 1005, 1012, 1012, 1013, 5622, 2497, 1013, 13675, 10085, 2271, 1013, 7163, 16558, 17650, 1005, 2465, 3231, 25300, 16558, 17650, 1026, 3231, 1024, 1024, 3131, 1024, 102...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
package com.monkeysarmy.fit.ui.debug; import android.view.View; import android.view.ViewGroup; /** * A {@link android.view.ViewGroup.OnHierarchyChangeListener hierarchy change listener} which recursively * monitors an entire tree of views. */ public final class HierarchyTreeChangeListener implements ViewGroup.OnHierarchyChangeListener { /** * Wrap a regular {@link android.view.ViewGroup.OnHierarchyChangeListener hierarchy change listener} with one * that monitors an entire tree of views. */ public static HierarchyTreeChangeListener wrap(ViewGroup.OnHierarchyChangeListener delegate) { return new HierarchyTreeChangeListener(delegate); } private final ViewGroup.OnHierarchyChangeListener delegate; private HierarchyTreeChangeListener(ViewGroup.OnHierarchyChangeListener delegate) { if (delegate == null) { throw new NullPointerException("Delegate must not be null."); } this.delegate = delegate; } @Override public void onChildViewAdded(View parent, View child) { delegate.onChildViewAdded(parent, child); if (child instanceof ViewGroup) { ViewGroup childGroup = (ViewGroup) child; childGroup.setOnHierarchyChangeListener(this); for (int i = 0; i < childGroup.getChildCount(); i++) { onChildViewAdded(childGroup, childGroup.getChildAt(i)); } } } @Override public void onChildViewRemoved(View parent, View child) { if (child instanceof ViewGroup) { ViewGroup childGroup = (ViewGroup) child; for (int i = 0; i < childGroup.getChildCount(); i++) { onChildViewRemoved(childGroup, childGroup.getChildAt(i)); } childGroup.setOnHierarchyChangeListener(null); } delegate.onChildViewRemoved(parent, child); } }
niqo01/monkey
src/internalDebug/java/com/monkeysarmy/fit/ui/debug/HierarchyTreeChangeListener.java
Java
apache-2.0
1,757
[ 30522, 7427, 4012, 1012, 17059, 27292, 2100, 1012, 4906, 1012, 21318, 1012, 2139, 8569, 2290, 1025, 12324, 11924, 1012, 3193, 1012, 3193, 1025, 12324, 11924, 1012, 3193, 1012, 3193, 17058, 1025, 1013, 1008, 1008, 1008, 1037, 1063, 1030, 495...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// // graphene_functions.hpp // graphenePFC // // Created by Rachel Zucker on 8/15/16. // Copyright © 2016 Rachel Zucker. All rights reserved. // #ifndef graphene_functions_hpp #define graphene_functions_hpp #include "matrix_types.hpp" // an inital condition that produces an AC circle inside an AB matrix void InitialCircle(matrix_t* n_mat, const double r0); // an inital condition that produces stripes void InitialShallowStripes(matrix_t* n_mat, const double r0); void InitialSteepStripes(matrix_t* n_mat, const double r0); void InitialDiagonalStripes(matrix_t* n_mat, const double r0); void InitialVerticalStripes(matrix_t* n_mat, const double r0); void InitialHorizontalStripes(matrix_t* n_mat, const double r0); void InitialHorizontalDoubleStripes(matrix_t* n_mat, const double r0); void InitialSmoothStripes(matrix_t* n_mat, const double r0, const double degrees); void InitialSmoothStripesVert(matrix_t* n_mat, const double r0, const double degrees); // an inital condition to make a perfect "A" sheet void InitialAA(matrix_t* n_mat, const double r0); // a function that can add a constant shift to a matrix, useful for conserved dynamics void AddConstToMatrix(matrix_t* n_mat, const double amount); // a function that produces the fourier-space vectors // in cylindrical coordinates void MakeKs(matrix_t* k_r, matrix_t* k_th); // a function that produces the fourier transform of the coefficients // C2, Cs1, and Cs2 from Seymour's paper void MakeCs(matrix_t* c2, matrix_t* cs1, matrix_t* cs2, matrix_t* minus_k_squared, const double r0, const double a0); // a function that writes a matrix to a file in the directory directoryString // with the first line "the time is (time)" and a filename of the iteration number void WriteMatrix(const double time, const double energy_val, const std::string directory_string, const matrix_t& mat); void AFMTip(matrix_t* total_potential, const double radius, const double speed, const double force, const double angle, const double time, const double delay, const matrix_t& fixed_potential); #endif /* graphene_functions_hpp */
rzucker/graphenePFC
graphenePFC/graphene_functions.hpp
C++
mit
2,088
[ 30522, 1013, 1013, 1013, 1013, 10629, 8625, 1035, 4972, 1012, 6522, 2361, 1013, 1013, 10629, 8625, 14376, 2278, 1013, 1013, 1013, 1013, 2580, 2011, 5586, 16950, 9102, 2006, 1022, 1013, 2321, 1013, 2385, 1012, 1013, 1013, 9385, 1075, 2355, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/** Copyright 2017 Andrea "Stock" Stocchero 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. */ /** * Contains the {@link org.pepstock.charba.client.annotation.AnnotationPlugin#ID} plugin elements interfaces to use in the callbacks and events. * * @author Andrea "Stock" Stocchero * */ package org.pepstock.charba.client.annotation.elements;
pepstock-org/Charba
src/org/pepstock/charba/client/annotation/elements/package-info.java
Java
apache-2.0
881
[ 30522, 1013, 1008, 1008, 9385, 2418, 8657, 1000, 4518, 1000, 2358, 10085, 7474, 2080, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1007, 1025, 2017, 2089, 2025, 2224, 2023, 5371, 3272, 1999, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<?php namespace SilexMarkdown\Parser; use SilexMarkdown\Filter\FilterInterface; interface ParserInterface { public function transform($source); public function registerFilter($method, FilterInterface $filter); public function getFilters(); public function hasFilter($method); public function useFilter($method, $content, $params); }
MadCatme/SilexMarkdown
src/SilexMarkdown/Parser/ParserInterface.php
PHP
mit
356
[ 30522, 1026, 1029, 25718, 3415, 15327, 9033, 2571, 2595, 10665, 7698, 1032, 11968, 8043, 1025, 2224, 9033, 2571, 2595, 10665, 7698, 1032, 11307, 1032, 11307, 18447, 2121, 12172, 1025, 8278, 11968, 8043, 18447, 2121, 12172, 1063, 2270, 3853, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* * Copyright 2013, winocm. <winocm@icloud.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, this * list of conditions and the following disclaimer in the documentation and/or * other materials provided with the distribution. * * If you are going to use this software in any form that does not involve * releasing the source to this project or improving it, let me know beforehand. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * Compatibility support to bridge old pe_arm_xxx api and new * AWESOME SOC DISPATCH STUFF. */ #include <mach/mach_types.h> #include <pexpert/pexpert.h> #include <pexpert/arm/protos.h> #include <pexpert/arm/boot.h> #include <machine/machine_routines.h> #include <kern/debug.h> /** * pe_arm_init_interrupts * * Initialize the SoC dependent interrrupt controller. */ uint32_t pe_arm_init_interrupts(__unused void *args) { if (gPESocDispatch.interrupt_init == NULL) panic("gPESocDispatch.interrupt_init was null, did you forget to set up the table?"); gPESocDispatch.interrupt_init(); return 0; } /** * pe_arm_init_timebase * * Initialize the SoC dependent timebase. */ uint32_t pe_arm_init_timebase(__unused void *args) { if (gPESocDispatch.timebase_init == NULL) panic("gPESocDispatch.timebase_init was null, did you forget to set up the table?"); gPESocDispatch.timebase_init(); return 0; } /** * pe_arm_dispatch_interrupt * * Dispatch IRQ requests to the SoC specific handler. */ boolean_t pe_arm_dispatch_interrupt(void *context) { if (gPESocDispatch.handle_interrupt == NULL) panic("gPESocDispatch.handle_interrupt was null, did you forget to set up the table?"); gPESocDispatch.handle_interrupt(context); return TRUE; } /** * pe_arm_get_timebase * * Get current system timebase from the SoC handler. */ uint64_t pe_arm_get_timebase(__unused void *args) { if (gPESocDispatch.get_timebase == NULL) panic("gPESocDispatch.get_timebase was null, did you forget to set up the table?"); return gPESocDispatch.get_timebase(); } /** * pe_arm_set_timer_enabled * * Set platform timer enabled status. */ void pe_arm_set_timer_enabled(boolean_t enable) { if (gPESocDispatch.timer_enabled == NULL) panic("gPESocDispatch.timer_enabled was null, did you forget to set up the table?"); gPESocDispatch.timer_enabled(enable); } /* * iOS like functionality. */ uint32_t debug_enabled = 1; uint32_t PE_i_can_has_debugger(uint32_t * pe_debug) { if (pe_debug) { if (debug_enabled) *pe_debug = 1; else *pe_debug = 0; } return debug_enabled; } uint32_t PE_get_security_epoch(void) { return 0; }
p01arst0rm/decorum-linux
_resources/kernels/xnu-arm/pexpert/arm/common/pe_armsupport.c
C
gpl-3.0
3,815
[ 30522, 1013, 1008, 1008, 9385, 2286, 1010, 2663, 10085, 2213, 1012, 1026, 2663, 10085, 2213, 1030, 24582, 23743, 2094, 1012, 4012, 1028, 1008, 2035, 2916, 9235, 1012, 1008, 1008, 25707, 1998, 2224, 1999, 3120, 1998, 12441, 3596, 1010, 2007,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* Resource.cpp Resource base class (c)2005 Palestar, Richard Lyle */ #define RESOURCE_DLL #include "Resource/Resource.h" #include "Factory/FactoryTypes.h" //------------------------------------------------------------------------------- IMPLEMENT_RESOURCE_FACTORY( Resource, Widget ); Resource::Resource() {} //------------------------------------------------------------------------------- // EOF
palestar/medusa
Resource/Resource.cpp
C++
mit
408
[ 30522, 1013, 1008, 7692, 1012, 18133, 2361, 7692, 2918, 2465, 1006, 1039, 1007, 2384, 5122, 14117, 1010, 2957, 21971, 1008, 1013, 1001, 9375, 7692, 1035, 21469, 2140, 1001, 2421, 1000, 7692, 1013, 7692, 1012, 1044, 1000, 1001, 2421, 1000, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file 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. */ package com.amazonaws.services.simplesystemsmanagement.model.transform; import static com.amazonaws.util.StringUtils.UTF8; import static com.amazonaws.util.StringUtils.COMMA_SEPARATOR; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.OutputStreamWriter; import java.io.StringWriter; import java.io.Writer; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.List; import java.util.regex.Pattern; import com.amazonaws.AmazonClientException; import com.amazonaws.Request; import com.amazonaws.DefaultRequest; import com.amazonaws.http.HttpMethodName; import com.amazonaws.services.simplesystemsmanagement.model.*; import com.amazonaws.transform.Marshaller; import com.amazonaws.util.BinaryUtils; import com.amazonaws.util.StringUtils; import com.amazonaws.util.StringInputStream; import com.amazonaws.util.json.*; /** * DeleteAssociationRequest Marshaller */ public class DeleteAssociationRequestMarshaller implements Marshaller<Request<DeleteAssociationRequest>, DeleteAssociationRequest> { public Request<DeleteAssociationRequest> marshall( DeleteAssociationRequest deleteAssociationRequest) { if (deleteAssociationRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(...)"); } Request<DeleteAssociationRequest> request = new DefaultRequest<DeleteAssociationRequest>( deleteAssociationRequest, "AWSSimpleSystemsManagement"); request.addHeader("X-Amz-Target", "AmazonSSM.DeleteAssociation"); request.setHttpMethod(HttpMethodName.POST); request.setResourcePath(""); try { StringWriter stringWriter = new StringWriter(); JSONWriter jsonWriter = new JSONWriter(stringWriter); jsonWriter.object(); if (deleteAssociationRequest.getName() != null) { jsonWriter.key("Name") .value(deleteAssociationRequest.getName()); } if (deleteAssociationRequest.getInstanceId() != null) { jsonWriter.key("InstanceId").value( deleteAssociationRequest.getInstanceId()); } jsonWriter.endObject(); String snippet = stringWriter.toString(); byte[] content = snippet.getBytes(UTF8); request.setContent(new StringInputStream(snippet)); request.addHeader("Content-Length", Integer.toString(content.length)); request.addHeader("Content-Type", "application/x-amz-json-1.1"); } catch (Throwable t) { throw new AmazonClientException( "Unable to marshall request to JSON: " + t.getMessage(), t); } return request; } }
trasa/aws-sdk-java
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/transform/DeleteAssociationRequestMarshaller.java
Java
apache-2.0
3,452
[ 30522, 1013, 1008, 1008, 9385, 2230, 1011, 2355, 9733, 1012, 4012, 1010, 4297, 1012, 2030, 2049, 18460, 1012, 2035, 2916, 9235, 1012, 1008, 1008, 7000, 2104, 1996, 15895, 6105, 1010, 2544, 1016, 1012, 1014, 1006, 1996, 1000, 6105, 1000, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
span.cm-liquid-control { } span.cm-liquid-output { } span.cm-liquid-control, span.cm-liquid-output { color: purple; }
redlinesoftware/liquid_cms
lib/generators/liquid_cms/templates/public/cms/stylesheets/liquid.css
CSS
mit
120
[ 30522, 8487, 1012, 4642, 1011, 6381, 1011, 2491, 1063, 1065, 8487, 1012, 4642, 1011, 6381, 1011, 6434, 1063, 1065, 8487, 1012, 4642, 1011, 6381, 1011, 2491, 1010, 8487, 1012, 4642, 1011, 6381, 1011, 6434, 1063, 3609, 1024, 6379, 1025, 106...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
#include "NodoTipo.h" NodoTipo::NodoTipo(Tipo* obj) { setTipo(obj); setDer(NULL); setIzq(NULL); _listaISBN = new ListaISBN(); } NodoTipo*&NodoTipo::getIzq() { return _izq; } void NodoTipo::setIzq(NodoTipo* _izq) { this->_izq = _izq; } NodoTipo*& NodoTipo::getDer() { return _der; } void NodoTipo::setDer(NodoTipo* _der) { this->_der = _der; } Tipo* NodoTipo::getTipo()const { return _Tipo; } void NodoTipo::setTipo(Tipo* _Tipo) { this->_Tipo = _Tipo; } NodoTipo::~NodoTipo() { _listaISBN->destruir(); delete _listaISBN; delete _Tipo; } ListaISBN* NodoTipo::getListaISBN(){ return _listaISBN; } void NodoTipo::setListaISBN(ListaISBN* l){ _listaISBN = l; } void NodoTipo::agregarISBN(int isbn){ _listaISBN->Inserta(isbn); } bool NodoTipo::borrarISBN(int isbn){ return _listaISBN->borrar(isbn); } void NodoTipo::destruirISBN(){ _listaISBN->destruir(); } string NodoTipo::MostrarListaISBN(){ return _listaISBN->toString(); }
jloriag/Bibliotc
NodoTipo.cpp
C++
lgpl-3.0
958
[ 30522, 1001, 2421, 1000, 7293, 4140, 11514, 2080, 1012, 1044, 1000, 7293, 4140, 11514, 2080, 1024, 1024, 7293, 4140, 11514, 2080, 1006, 5955, 30524, 1006, 1007, 1025, 1065, 7293, 4140, 11514, 2080, 1008, 1004, 7293, 4140, 11514, 2080, 1024,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
#!/usr/bin/env python # example setselection.py import pygtk pygtk.require('2.0') import gtk import time class SetSelectionExample: # Callback when the user toggles the selection def selection_toggled(self, widget, window): if widget.get_active(): self.have_selection = window.selection_owner_set("PRIMARY") # if claiming the selection failed, we return the button to # the out state if not self.have_selection: widget.set_active(False) else: if self.have_selection: # Not possible to release the selection in PyGTK # just mark that we don't have it self.have_selection = False return # Called when another application claims the selection def selection_clear(self, widget, event): self.have_selection = False widget.set_active(False) return True # Supplies the current time as the selection. def selection_handle(self, widget, selection_data, info, time_stamp): current_time = time.time() timestr = time.asctime(time.localtime(current_time)) # When we return a single string, it should not be null terminated. # That will be done for us selection_data.set_text(timestr, len(timestr)) return def __init__(self): self.have_selection = False # Create the toplevel window window = gtk.Window(gtk.WINDOW_TOPLEVEL) window.set_title("Set Selection") window.set_border_width(10) window.connect("destroy", lambda w: gtk.main_quit()) self.window = window # Create an eventbox to hold the button since it no longer has # a GdkWindow eventbox = gtk.EventBox() eventbox.show() window.add(eventbox) # Create a toggle button to act as the selection selection_button = gtk.ToggleButton("Claim Selection") eventbox.add(selection_button) selection_button.connect("toggled", self.selection_toggled, eventbox) eventbox.connect_object("selection_clear_event", self.selection_clear, selection_button) eventbox.selection_add_target("PRIMARY", "STRING", 1) eventbox.selection_add_target("PRIMARY", "COMPOUND_TEXT", 1) eventbox.connect("selection_get", self.selection_handle) selection_button.show() window.show() def main(): gtk.main() return 0 if __name__ == "__main__": SetSelectionExample() main()
certik/pyjamas
pygtkweb/demos/065-setselection.py
Python
apache-2.0
2,570
[ 30522, 1001, 999, 1013, 2149, 2099, 1013, 8026, 1013, 4372, 2615, 18750, 1001, 2742, 4520, 12260, 7542, 1012, 1052, 2100, 12324, 1052, 2100, 13512, 2243, 1052, 2100, 13512, 2243, 1012, 5478, 1006, 1005, 1016, 1012, 1014, 1005, 1007, 12324, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
require File.expand_path(File.dirname(__FILE__) + '/../helpers/manage_groups_common') require 'thread' describe "account admin manage groups" do include_context "in-process server selenium tests" def add_account_category (account, name) f(".add_category_link").click form = f("#add_category_form") replace_content form.find_element(:css, "input[type=text]"), name submit_form(form) wait_for_ajaximations category = account.group_categories.where(name: name).first expect(category).not_to be_nil category end before (:each) do skip #course_with_admin_logged_in #@admin_account = Account.default #@admin_account.settings[:enable_manage_groups2] = false #@admin_account.save! end it "should show one div.group_category per category" do group_categories = create_categories @course.account create_new_set_groups(@course.account, group_categories[0], group_categories[1], group_categories[1], group_categories[2]) get "/accounts/#{@course.account.id}/groups" group_divs = find_all_with_jquery("div.group_category") expect(group_divs.size).to eq 4 # three groups + blank ids = group_divs.map { |div| div.attribute(:id) } group_categories.each { |category| expect(ids).to include("category_#{category.id}") } expect(ids).to include("category_template") end it "should show one li.category per category" do group_categories = create_categories @admin_account create_new_set_groups(@admin_account, group_categories[0], group_categories[1], group_categories[1], group_categories[2]) get "/accounts/#{@admin_account.id}/groups" group_divs = driver.find_elements(:css, "li.category") expect(group_divs.size).to eq 3 labels = group_divs.map { |div| div.find_element(:css, "a").text } group_categories.each { |category| expect(labels).to be_include(category.name) } end context "single category" do before (:each) do @courses_group_category = @admin_account.group_categories.create(:name => "Existing Category") groups_student_enrollment 1 end it "should add new categories at the end of the tabs" do create_new_set_groups @admin_account, @courses_group_category get "/accounts/#{@admin_account.id}/groups" expect(driver.find_elements(:css, "#category_list li").size).to eq 1 # submit new category form add_account_category @admin_account, 'New Category' expect(driver.find_elements(:css, "#category_list li").size).to eq 2 expect(driver.find_elements(:css, "#category_list li a").last.text).to eq "New Category" end it "should remove tab and sidebar entries for deleted category" do get "/accounts/#{@admin_account.id}/groups" expect(f("#category_#{@courses_group_category.id}")).to be_displayed expect(f("#sidebar_category_#{@courses_group_category.id}")).to be_displayed f("#category_#{@courses_group_category.id} .delete_category_link").click confirm_dialog = driver.switch_to.alert confirm_dialog.accept wait_for_ajaximations expect(find_with_jquery("#category_#{@courses_group_category.id}")).to be_nil expect(find_with_jquery("#sidebar_category_#{@courses_group_category.id}")).to be_nil end it "should populate sidebar with new category when adding a category" do group = @admin_account.groups.create(:name => "Group 1", :group_category => @courses_group_category) get "/accounts/#{Account.default.id}/groups" expect(f("#sidebar_category_#{@courses_group_category.id}")).to be_displayed expect(f("#sidebar_category_#{@courses_group_category.id} #sidebar_group_#{group.id}")).to be_displayed new_category = add_account_category(@admin_account, 'New Category') # We need to refresh the page because it doesn't update the sidebar, # This is should probably be reported as a bug refresh_page expect(f("#sidebar_category_#{new_category.id}")).to be_displayed end it "should populate sidebar with new category when adding a category and group" do group = @admin_account.groups.create(:name => "Group 1", :group_category => @courses_group_category) get "/accounts/#{Account.default.id}/groups" expect(f("#sidebar_category_#{@courses_group_category.id}")).to be_displayed expect(f("#sidebar_category_#{@courses_group_category.id} #sidebar_group_#{group.id}")).to be_displayed new_category = add_account_category(@admin_account, 'New Category') group2 = add_group_to_category new_category, "New Group Category 2" expect(f("#sidebar_category_#{new_category.id}")).to be_displayed expect(driver.find_element(:css, "#sidebar_category_#{new_category.id} #sidebar_group_#{group2.id}")).to be_displayed end it "should preserve group to category association when editing a group" do group = @admin_account.groups.create(:name => "Group 1", :group_category => @courses_group_category) get "/accounts/#{Account.default.id}/groups" wait_for_ajaximations expect(find_with_jquery("#category_#{@courses_group_category.id} #group_#{group.id}")).to be_displayed # submit new category form hover_and_click(".edit_group_link") form = f("#edit_group_form") replace_content form.find_element(:css, "input[type=text]"), "New Name" submit_form(form) expect(f("#category_#{@courses_group_category.id} #group_#{group.id}")).to be_displayed end it "should populate a group tag and check if it's there" do get "/accounts/#{@admin_account.id}/groups" category = add_account_category @admin_account, 'New Category' category_tabs = driver.find_elements(:css, '#category_list li') category_tabs[1].click category_name = f("#category_#{category.id} .category_name").text expect(category_name).to include_text(category.name) end it "should add another group and see that the group is there" do get "/accounts/#{@admin_account.id}/groups" group = add_group_to_category @courses_group_category, 'group 1' expect(f("#group_#{group.id} .group_name").text).to eq group.name end it "should add multiple groups and validate they exist" do groups = add_groups_in_category @courses_group_category get "/accounts/#{Account.default.id}/groups" category_groups = driver.find_elements(:css, ".left_side .group .name") category_groups.each_with_index { |cg, i| expect(cg.text).to include_text(groups[i].name)} end it "should add multiple groups and be sure they are all deleted" do add_groups_in_category @courses_group_category get "/accounts/#{@admin_account.id}/groups" make_full_screen delete = f(".delete_category_link") delete.click confirm_dialog = driver.switch_to.alert confirm_dialog.accept wait_for_ajaximations expect(driver.find_elements(:css, ".left_side .group")).to be_empty expect(@admin_account.group_categories.count).to eq 0 end it "should edit an individual group" do get "/accounts/#{@admin_account.id}/groups" group = add_group_to_category @courses_group_category, "group 1" expect(group).not_to be_nil f("#group_#{group.id}").click wait_for_ajaximations f("#group_#{group.id} .edit_group_link").click wait_for_ajaximations name = "new group 1" f("#group_name").send_keys(name) f("#group_#{group.id} .btn").click wait_for_ajaximations group = @admin_account.groups.where(name: name).first expect(group).not_to be_nil end it "should delete an individual group" do get "/accounts/#{@admin_account.id}/groups" group = add_group_to_category @courses_group_category, "group 1" f("#group_#{group.id}").click driver.find_element(:css, "#group_#{group.id} .delete_group_link").click confirm_dialog = driver.switch_to.alert confirm_dialog.accept wait_for_ajaximations expect(driver.find_elements(:css, ".left_side .group")).to be_empty @admin_account.group_categories.last.groups.last.workflow_state =='deleted' end it "should drag a user to a group" do student = @course.students.last get "/accounts/#{@admin_account.id}/groups" group = add_group_to_category @courses_group_category, "group 1" simulate_group_drag(student.id, "blank", group.id) group_div = f("#group_#{group.id}") expect(group_div.find_element(:css, ".user_id_#{student.id}")).to be_displayed end it "should drag a user to 2 different groups" do student = @course.students.last groups = add_groups_in_category @courses_group_category, 2 get "/accounts/#{@admin_account.id}/groups" wait_for_ajax_requests simulate_group_drag(student.id, "blank", groups[0].id) group1_div = f("#group_#{groups[0].id}") expect(group1_div.find_element(:css, ".user_id_#{student.id}")).to be_displayed simulate_group_drag(student.id, groups[0].id, groups[1].id) group2_div = f("#group_#{groups[1].id}") expect(group2_div.find_element(:css, ".user_id_#{student.id}")).to be_displayed end it "should drag a user to 2 different groups and back to the unassigned group" do student = @course.students.last groups = add_groups_in_category @courses_group_category, 2 get "/accounts/#{@admin_account.id}/groups" wait_for_ajax_requests simulate_group_drag(student.id, "blank", groups[0].id) group1_div = f("#group_#{groups[0].id}") expect(group1_div.find_element(:css, ".user_id_#{student.id}")).to be_displayed simulate_group_drag(student.id, groups[0].id, groups[1].id) group2_div = f("#group_#{groups[1].id}") expect(group2_div.find_element(:css, ".user_id_#{student.id}")).to be_displayed unassigned_div = f("#category_#{@courses_group_category.id} .group_blank") simulate_group_drag(student.id, groups[1].id, "blank") expect(unassigned_div.find_elements(:css, ".user_id_#{student.id}")).not_to be_empty get "/accounts/#{@admin_account.id}/groups" unassigned_div =f("#category_#{@courses_group_category.id} .group_blank") expect(unassigned_div.find_elements(:css, ".user_id_#{student.id}")).not_to be_empty end it "should create a category and should be able to edit it" do get "/accounts/#{@admin_account.id}/groups" expect(@admin_account.group_categories.last.name).to eq "Existing Category" make_full_screen f("#category_#{@courses_group_category.id} .edit_category_link .icon-edit").click wait_for_ajaximations form = f("#edit_category_form") input_box = form.find_element(:css, "input[type=text]") category_name = "New Category" replace_content input_box, category_name submit_form(form) wait_for_ajaximations expect(@admin_account.group_categories.last.name).to eq category_name end it "should not be able to check the Allow self sign-up box" do get "/accounts/#{@admin_account.id}/groups" expect(@admin_account.group_categories.last.name).to eq "Existing Category" make_full_screen f("#category_#{@courses_group_category.id} .edit_category_link .icon-edit").click wait_for_ajaximations form = driver.find_element(:id, "edit_category_form") expect(ff("#category_enable_self_signup", form)).to be_empty submit_form(form) wait_for_ajaximations expect(f("#category_#{@courses_group_category.id} .self_signup_text")).not_to include_text "Self sign-up is enabled" end end end
greyhwndz/canvas-lms
spec/selenium/admin/account_admin_manage_groups_spec.rb
Ruby
agpl-3.0
11,626
[ 30522, 5478, 5371, 1012, 7818, 1035, 4130, 1006, 5371, 1012, 16101, 18442, 1006, 1035, 1035, 5371, 1035, 1035, 1007, 1009, 1005, 1013, 1012, 1012, 1013, 2393, 2545, 1013, 6133, 1035, 2967, 1035, 2691, 1005, 1007, 5478, 1005, 11689, 1005, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<?php /* sil12VitrineBundle:Promotion:new.html.twig */ class __TwigTemplate_6b35c8288681521c57bf3eaa34c3cd1f8147156caf9e081e884352d40f9d44eb extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = $this->env->loadTemplate("sil12VitrineBundle:BackOffice:layout.html.twig"); $this->blocks = array( 'content' => array($this, 'block_content'), ); } protected function doGetParent(array $context) { return "sil12VitrineBundle:BackOffice:layout.html.twig"; } protected function doDisplay(array $context, array $blocks = array()) { $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 4 public function block_content($context, array $blocks = array()) { // line 5 echo "<div class=\"col-md-6 col-md-offset-3\"> \t<div class=\"panel panel-default\"> \t <div class=\"panel-heading\"> \t <h3 class=\"panel-title\">Ajout de promotion</h3> \t </div> \t <div class=\"panel-body\"> \t\t "; // line 11 echo $this->env->getExtension('form')->renderer->renderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'form'); echo " \t\t <ul class=\"record_actions\"> \t\t\t <li> \t\t\t <a href=\""; // line 15 echo $this->env->getExtension('routing')->getPath("promotion"); echo "\"> \t\t\t Retour à la liste \t\t\t </a> \t\t\t </li> \t\t\t</ul> \t </div> \t</div> </div> "; } public function getTemplateName() { return "sil12VitrineBundle:Promotion:new.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 46 => 15, 39 => 11, 31 => 5, 28 => 4,); } }
matthieuh/projet-sil5-cours
app/cache/dev/twig/6b/35/c8288681521c57bf3eaa34c3cd1f8147156caf9e081e884352d40f9d44eb.php
PHP
mit
1,932
[ 30522, 1026, 1029, 25718, 1013, 1008, 9033, 2140, 12521, 5737, 18886, 2638, 27265, 2571, 1024, 4712, 1024, 2047, 1012, 16129, 1012, 1056, 16279, 1008, 1013, 2465, 1035, 1035, 1056, 16279, 18532, 15725, 1035, 1020, 2497, 19481, 2278, 2620, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/* Tabulator v4.6.3 (c) Oliver Folkerd */ .tabulator { position: relative; border: 1px solid #fff; background-color: #fff; overflow: hidden; font-size: 16px; text-align: left; -ms-transform: translatez(0); transform: translatez(0); } .tabulator[tabulator-layout="fitDataFill"] .tabulator-tableHolder .tabulator-table { min-width: 100%; } .tabulator.tabulator-block-select { -webkit-user-select: none; -ms-user-select: none; user-select: none; } .tabulator .tabulator-header { position: relative; box-sizing: border-box; width: 100%; border-bottom: 3px solid #3759D7; margin-bottom: 4px; background-color: #fff; color: #3759D7; font-weight: bold; white-space: nowrap; overflow: hidden; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; padding-left: 10px; font-size: 1.1em; } .tabulator .tabulator-header.tabulator-header-hidden { display: none; } .tabulator .tabulator-header .tabulator-col { display: inline-block; position: relative; box-sizing: border-box; border-right: 2px solid #fff; background-color: #fff; text-align: left; vertical-align: bottom; overflow: hidden; } .tabulator .tabulator-header .tabulator-col.tabulator-moving { position: absolute; border: 1px solid #3759D7; background: #e6e6e6; pointer-events: none; } .tabulator .tabulator-header .tabulator-col .tabulator-col-content { box-sizing: border-box; position: relative; padding: 4px; } .tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-menu-button { padding: 0 8px; } .tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-menu-button:hover { cursor: pointer; opacity: .6; } .tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title { box-sizing: border-box; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; } .tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title .tabulator-title-editor { box-sizing: border-box; width: 100%; border: 1px solid #3759D7; padding: 1px; background: #fff; font-size: 1em; color: #3759D7; } .tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-arrow { display: inline-block; position: absolute; top: 9px; right: 8px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid #b7c3f1; } .tabulator .tabulator-header .tabulator-col.tabulator-col-group .tabulator-col-group-cols { position: relative; display: -ms-flexbox; display: flex; border-top: 2px solid #3759D7; overflow: hidden; margin-right: -1px; } .tabulator .tabulator-header .tabulator-col:first-child .tabulator-col-resize-handle.prev { display: none; } .tabulator .tabulator-header .tabulator-col .tabulator-header-filter { position: relative; box-sizing: border-box; margin-top: 2px; width: 100%; text-align: center; } .tabulator .tabulator-header .tabulator-col .tabulator-header-filter textarea { height: auto !important; } .tabulator .tabulator-header .tabulator-col .tabulator-header-filter svg { margin-top: 3px; } .tabulator .tabulator-header .tabulator-col .tabulator-header-filter input::-ms-clear { width: 0; height: 0; } .tabulator .tabulator-header .tabulator-col.tabulator-sortable .tabulator-col-title { padding-right: 25px; } .tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover { cursor: pointer; background-color: #e6e6e6; } .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="none"] .tabulator-col-content .tabulator-arrow { border-top: none; border-bottom: 6px solid #b7c3f1; } .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="asc"] .tabulator-col-content .tabulator-arrow { border-top: none; border-bottom: 6px solid #3759D7; } .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="desc"] .tabulator-col-content .tabulator-arrow { border-top: 6px solid #3759D7; border-bottom: none; } .tabulator .tabulator-header .tabulator-col.tabulator-col-vertical .tabulator-col-content .tabulator-col-title { -ms-writing-mode: tb-rl; writing-mode: vertical-rl; text-orientation: mixed; display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center; } .tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-col-vertical-flip .tabulator-col-title { -ms-transform: rotate(180deg); transform: rotate(180deg); } .tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-col-title { padding-right: 0; padding-top: 20px; } .tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable.tabulator-col-vertical-flip .tabulator-col-title { padding-right: 0; padding-bottom: 20px; } .tabulator .tabulator-header .tabulator-col.tabulator-col-vertical.tabulator-sortable .tabulator-arrow { right: calc(50% - 6px); } .tabulator .tabulator-header .tabulator-frozen { display: inline-block; position: absolute; z-index: 10; } .tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left { padding-left: 10px; border-right: 2px solid #fff; } .tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right { border-left: 2px solid #fff; } .tabulator .tabulator-header .tabulator-calcs-holder { box-sizing: border-box; min-width: 600%; border-top: 2px solid #3759D7 !important; background: white !important; border-top: 1px solid #fff; border-bottom: 1px solid #fff; overflow: hidden; } .tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row { padding-left: 0 !important; background: white !important; } .tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle { display: none; } .tabulator .tabulator-header .tabulator-calcs-holder .tabulator-row .tabulator-cell { background: none; } .tabulator .tabulator-header .tabulator-frozen-rows-holder { min-width: 600%; } .tabulator .tabulator-header .tabulator-frozen-rows-holder:empty { display: none; } .tabulator .tabulator-tableHolder { position: relative; width: 100%; white-space: nowrap; overflow: auto; -webkit-overflow-scrolling: touch; } .tabulator .tabulator-tableHolder:focus { outline: none; } .tabulator .tabulator-tableHolder .tabulator-placeholder { box-sizing: border-box; display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; width: 100%; } .tabulator .tabulator-tableHolder .tabulator-placeholder[tabulator-render-mode="virtual"] { min-height: 100%; min-width: 100%; } .tabulator .tabulator-tableHolder .tabulator-placeholder span { display: inline-block; margin: 0 auto; padding: 10px; color: #3759D7; font-weight: bold; font-size: 20px; } .tabulator .tabulator-tableHolder .tabulator-table { position: relative; display: inline-block; background-color: #f3f3f3; white-space: nowrap; overflow: visible; color: #333; } .tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs { font-weight: bold; background: #f2f2f2 !important; } .tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top { border-bottom: 2px solid #3759D7; } .tabulator .tabulator-tableHolder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom { border-top: 2px solid #3759D7; } .tabulator .tabulator-col-resize-handle { position: absolute; right: 0; top: 0; bottom: 0; width: 5px; } .tabulator .tabulator-col-resize-handle.prev { left: 0; right: auto; } .tabulator .tabulator-col-resize-handle:hover { cursor: ew-resize; } .tabulator .tabulator-footer { padding: 5px 10px; border-top: 1px solid #999; background-color: #fff; text-align: right; color: #3759D7; font-weight: bold; white-space: nowrap; -ms-user-select: none; user-select: none; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; } .tabulator .tabulator-footer .tabulator-calcs-holder { box-sizing: border-box; width: calc(100% + 20px); margin: -5px -10px 5px -10px; text-align: left; background: white !important; border-top: 3px solid #3759D7 !important; border-bottom: 2px solid #3759D7 !important; border-bottom: 1px solid #fff; border-top: 1px solid #fff; overflow: hidden; } .tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row { background: white !important; } .tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-col-resize-handle { display: none; } .tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-cell { background: none; } .tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row .tabulator-cell:first-child { border-left: 10px solid transparent; } .tabulator .tabulator-footer .tabulator-calcs-holder:only-child { margin-bottom: -5px; border-bottom: none; border-bottom: none !important; } .tabulator .tabulator-footer .tabulator-paginator { color: #3759D7; font-family: inherit; font-weight: inherit; font-size: inherit; } .tabulator .tabulator-footer .tabulator-page-size { display: inline-block; margin: 0 5px; padding: 2px 5px; border: 1px solid #aaa; border-radius: 3px; } .tabulator .tabulator-footer .tabulator-pages { margin: 0 7px; } .tabulator .tabulator-footer .tabulator-page { display: inline-block; margin: 0 2px; padding: 2px 5px; border: 1px solid #aaa; border-radius: 3px; background: rgba(255, 255, 255, 0.2); } .tabulator .tabulator-footer .tabulator-page.active { color: #3759D7; } .tabulator .tabulator-footer .tabulator-page:disabled { opacity: .5; } .tabulator .tabulator-footer .tabulator-page:not(.disabled):hover { cursor: pointer; background: rgba(0, 0, 0, 0.2); color: #fff; } .tabulator .tabulator-loader { position: absolute; display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; top: 0; left: 0; z-index: 100; height: 100%; width: 100%; background: rgba(0, 0, 0, 0.4); text-align: center; } .tabulator .tabulator-loader .tabulator-loader-msg { display: inline-block; margin: 0 auto; padding: 10px 20px; border-radius: 10px; background: #fff; font-weight: bold; font-size: 16px; } .tabulator .tabulator-loader .tabulator-loader-msg.tabulator-loading { border: 4px solid #333; color: #000; } .tabulator .tabulator-loader .tabulator-loader-msg.tabulator-error { border: 4px solid #D00; color: #590000; } .tabulator-row { position: relative; box-sizing: border-box; box-sizing: border-box; min-height: 24px; margin-bottom: 2px; } .tabulator-row .tabulator-cell:first-child { border-left: 10px solid #3759D7; } .tabulator-row:nth-child(even) { background-color: #627ce0; } .tabulator-row:nth-child(even) .tabulator-cell { background-color: #fff; } .tabulator-row:nth-child(even) .tabulator-cell:first-child { border-left: 10px solid #627ce0; } .tabulator-row.tabulator-selectable:hover { cursor: pointer; } .tabulator-row.tabulator-selectable:hover .tabulator-cell { background-color: #bbb; } .tabulator-row.tabulator-selected .tabulator-cell { background-color: #9ABCEA; } .tabulator-row.tabulator-selected:hover .tabulator-cell { background-color: #769BCC; cursor: pointer; } .tabulator-row.tabulator-moving { position: absolute; border-top: 1px solid #fff; border-bottom: 1px solid #fff; pointer-events: none !important; z-index: 15; } .tabulator-row .tabulator-row-resize-handle { position: absolute; right: 0; bottom: 0; left: 0; height: 5px; } .tabulator-row .tabulator-row-resize-handle.prev { top: 0; bottom: auto; } .tabulator-row .tabulator-row-resize-handle:hover { cursor: ns-resize; } .tabulator-row .tabulator-frozen { display: inline-block; position: absolute; background-color: inherit; z-index: 10; } .tabulator-row .tabulator-frozen.tabulator-frozen-left { border-right: 2px solid #fff; } .tabulator-row .tabulator-frozen.tabulator-frozen-right { border-left: 2px solid #fff; } .tabulator-row .tabulator-responsive-collapse { box-sizing: border-box; padding: 5px; border-top: 1px solid #fff; border-bottom: 1px solid #fff; } .tabulator-row .tabulator-responsive-collapse:empty { display: none; } .tabulator-row .tabulator-responsive-collapse table { font-size: 16px; } .tabulator-row .tabulator-responsive-collapse table tr td { position: relative; } .tabulator-row .tabulator-responsive-collapse table tr td:first-of-type { padding-right: 10px; } .tabulator-row .tabulator-cell { display: inline-block; position: relative; box-sizing: border-box; padding: 6px 4px; border-right: 2px solid #fff; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background-color: #f3f3f3; } .tabulator-row .tabulator-cell.tabulator-editing { border: 1px solid #1D68CD; padding: 0; } .tabulator-row .tabulator-cell.tabulator-editing input, .tabulator-row .tabulator-cell.tabulator-editing select { border: 1px; background: transparent; } .tabulator-row .tabulator-cell.tabulator-validation-fail { border: 1px solid #dd0000; } .tabulator-row .tabulator-cell.tabulator-validation-fail input, .tabulator-row .tabulator-cell.tabulator-validation-fail select { border: 1px; background: transparent; color: #dd0000; } .tabulator-row .tabulator-cell:first-child .tabulator-col-resize-handle.prev { display: none; } .tabulator-row .tabulator-cell.tabulator-row-handle { display: -ms-inline-flexbox; display: inline-flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; } .tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box { width: 80%; } .tabulator-row .tabulator-cell.tabulator-row-handle .tabulator-row-handle-box .tabulator-row-handle-bar { width: 100%; height: 3px; margin-top: 2px; background: #666; } .tabulator-row .tabulator-cell .tabulator-data-tree-branch { display: inline-block; vertical-align: middle; height: 9px; width: 7px; margin-top: -9px; margin-right: 5px; border-bottom-left-radius: 1px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; } .tabulator-row .tabulator-cell .tabulator-data-tree-control { display: -ms-inline-flexbox; display: inline-flex; -ms-flex-pack: center; justify-content: center; -ms-flex-align: center; align-items: center; vertical-align: middle; height: 11px; width: 11px; margin-right: 5px; border: 1px solid #333; border-radius: 2px; background: rgba(0, 0, 0, 0.1); overflow: hidden; } .tabulator-row .tabulator-cell .tabulator-data-tree-control:hover { cursor: pointer; background: rgba(0, 0, 0, 0.2); } .tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse { display: inline-block; position: relative; height: 7px; width: 1px; background: transparent; } .tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after { position: absolute; content: ""; left: -3px; top: 3px; height: 1px; width: 7px; background: #333; } .tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand { display: inline-block; position: relative; height: 7px; width: 1px; background: #333; } .tabulator-row .tabulator-cell .tabulator-data-tree-control .tabulator-data-tree-control-expand:after { position: absolute; content: ""; left: -3px; top: 3px; height: 1px; width: 7px; background: #333; } .tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle { display: -ms-inline-flexbox; display: inline-flex; -ms-flex-align: center; align-items: center; -ms-flex-pack: center; justify-content: center; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; height: 15px; width: 15px; border-radius: 20px; background: #666; color: #f3f3f3; font-weight: bold; font-size: 1.1em; } .tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle:hover { opacity: .7; } .tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-close { display: initial; } .tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle.open .tabulator-responsive-collapse-toggle-open { display: none; } .tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle .tabulator-responsive-collapse-toggle-close { display: none; } .tabulator-row .tabulator-cell .tabulator-traffic-light { display: inline-block; height: 14px; width: 14px; border-radius: 14px; } .tabulator-row.tabulator-group { box-sizing: border-box; border-bottom: 2px solid #3759D7; border-top: 2px solid #3759D7; padding: 5px; padding-left: 10px; background: #8ca0e8; font-weight: bold; color: fff; margin-bottom: 2px; min-width: 100%; } .tabulator-row.tabulator-group:hover { cursor: pointer; background-color: rgba(0, 0, 0, 0.1); } .tabulator-row.tabulator-group.tabulator-group-visible .tabulator-arrow { margin-right: 10px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid #3759D7; border-bottom: 0; } .tabulator-row.tabulator-group.tabulator-group-level-1 { padding-left: 30px; } .tabulator-row.tabulator-group.tabulator-group-level-2 { padding-left: 50px; } .tabulator-row.tabulator-group.tabulator-group-level-3 { padding-left: 70px; } .tabulator-row.tabulator-group.tabulator-group-level-4 { padding-left: 90px; } .tabulator-row.tabulator-group.tabulator-group-level-5 { padding-left: 110px; } .tabulator-row.tabulator-group .tabulator-group-toggle { display: inline-block; } .tabulator-row.tabulator-group .tabulator-arrow { display: inline-block; width: 0; height: 0; margin-right: 16px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 0; border-left: 6px solid #3759D7; vertical-align: middle; } .tabulator-row.tabulator-group span { margin-left: 10px; color: #3759D7; } .tabulator-menu { position: absolute; display: inline-block; box-sizing: border-box; background: #f3f3f3; border: 1px solid #fff; box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2); font-size: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 10000; } .tabulator-menu .tabulator-menu-item { padding: 5px 10px; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .tabulator-menu .tabulator-menu-item.tabulator-menu-item-disabled { opacity: .5; } .tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover { cursor: pointer; background: #fff; } .tabulator-menu .tabulator-menu-separator { border-top: 1px solid #fff; } .tabulator-edit-select-list { position: absolute; display: inline-block; box-sizing: border-box; max-height: 200px; background: #f3f3f3; border: 1px solid #1D68CD; font-size: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 10000; } .tabulator-edit-select-list .tabulator-edit-select-list-item { padding: 4px; color: #333; } .tabulator-edit-select-list .tabulator-edit-select-list-item.active { color: #f3f3f3; background: #1D68CD; } .tabulator-edit-select-list .tabulator-edit-select-list-item:hover { cursor: pointer; color: #f3f3f3; background: #1D68CD; } .tabulator-edit-select-list .tabulator-edit-select-list-notice { padding: 4px; color: #333; text-align: center; } .tabulator-edit-select-list .tabulator-edit-select-list-group { border-bottom: 1px solid #fff; padding: 4px; padding-top: 6px; color: #333; font-weight: bold; } .tabulator-print-fullscreen { position: absolute; top: 0; bottom: 0; left: 0; right: 0; z-index: 10000; } body.tabulator-print-fullscreen-hide > *:not(.tabulator-print-fullscreen) { display: none !important; } .tabulator-print-table { border-collapse: collapse; } .tabulator-print-table .tabulator-data-tree-branch { display: inline-block; vertical-align: middle; height: 9px; width: 7px; margin-top: -9px; margin-right: 5px; border-bottom-left-radius: 1px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; } .tabulator-print-table .tabulator-data-tree-control { display: -ms-inline-flexbox; display: inline-flex; -ms-flex-pack: center; justify-content: center; -ms-flex-align: center; align-items: center; vertical-align: middle; height: 11px; width: 11px; margin-right: 5px; border: 1px solid #333; border-radius: 2px; background: rgba(0, 0, 0, 0.1); overflow: hidden; } .tabulator-print-table .tabulator-data-tree-control:hover { cursor: pointer; background: rgba(0, 0, 0, 0.2); } .tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse { display: inline-block; position: relative; height: 7px; width: 1px; background: transparent; } .tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-collapse:after { position: absolute; content: ""; left: -3px; top: 3px; height: 1px; width: 7px; background: #333; } .tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand { display: inline-block; position: relative; height: 7px; width: 1px; background: #333; } .tabulator-print-table .tabulator-data-tree-control .tabulator-data-tree-control-expand:after { position: absolute; content: ""; left: -3px; top: 3px; height: 1px; width: 7px; background: #333; }
cdnjs/cdnjs
ajax/libs/tabulator/4.6.3/css/tabulator_modern.css
CSS
mit
22,223
[ 30522, 1013, 1008, 21628, 20350, 1058, 2549, 1012, 1020, 1012, 1017, 1006, 1039, 1007, 6291, 5154, 2121, 2094, 1008, 1013, 1012, 21628, 20350, 1063, 2597, 1024, 5816, 1025, 3675, 1024, 1015, 2361, 2595, 5024, 1001, 21461, 2546, 1025, 4281, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/****************************************************************************** * Copyright (c) 2004, 2008 IBM Corporation * All rights reserved. * This program and the accompanying materials * are made available under the terms of the BSD License * which accompanies this distribution, and is available at * http://www.opensource.org/licenses/bsd-license.php * * Contributors: * IBM Corporation - initial implementation *****************************************************************************/ #ifndef IOLIB_H #define IOLIB_H #include <stdint.h> #define addr_t volatile unsigned int #define addr8_t volatile unsigned char extern void halt_sys (unsigned int); extern uint32_t get_sb_version (void); extern void uart_send_byte(unsigned char b); extern void io_putchar(unsigned char); extern uint64_t tb_frequency(void); extern uint64_t be_frequency(void); extern uint32_t get_dec(void); extern void set_dec(uint32_t); extern void delay_ms( unsigned int ms ); #endif
KernelAnalysisPlatform/KlareDbg
tracers/qemu/decaf/roms/SLOF/llfw/clib/iolib.h
C
gpl-3.0
1,016
[ 30522, 1013, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
<?php namespace Oro\Bundle\EmailBundle\Provider; class VariablesProvider { /** @var SystemVariablesProviderInterface[] */ protected $systemVariablesProviders = []; /** @var EntityVariablesProviderInterface[] */ protected $entityVariablesProviders = []; /** * @param SystemVariablesProviderInterface $provider */ public function addSystemVariablesProvider(SystemVariablesProviderInterface $provider) { $this->systemVariablesProviders[] = $provider; } /** * @param EntityVariablesProviderInterface $provider */ public function addEntityVariablesProvider(EntityVariablesProviderInterface $provider) { $this->entityVariablesProviders[] = $provider; } /** * Gets system variables available in a template * Returned variables are sorted be name. * * @return array The list of variables in the following format: * {variable name} => array * 'type' => {variable data type} * 'name' => {translated variable name} */ public function getSystemVariableDefinitions() { $result = []; foreach ($this->systemVariablesProviders as $provider) { $result = array_merge( $result, $provider->getVariableDefinitions() ); } ksort($result); return $result; } /** * Gets entity related variables available in a template * Returned variables are sorted by name. * * @param string $entityClass The entity class name. If it is not specified the definitions for all * entities are returned. * * @return array The list of variables in the following format: * {variable name} => array * 'type' => {variable data type} * 'name' => {translated variable name} * If a field represents a relation the following attributes are added: * 'related_entity_name' => {related entity full class name} * If $entityClass is NULL variables are grouped by entity class: * {entity class} => array * {variable name} => array of attributes described above */ public function getEntityVariableDefinitions($entityClass = null) { $result = []; foreach ($this->entityVariablesProviders as $provider) { $result = array_merge_recursive( $result, $provider->getVariableDefinitions($entityClass) ); } if ($entityClass) { ksort($result); } else { foreach ($result as &$variables) { ksort($variables); } } return $result; } /** * Gets values of system variables available in a template * * @return array The list of values * key = {variable name} * value = {variable value} */ public function getSystemVariableValues() { $result = []; foreach ($this->systemVariablesProviders as $provider) { $result = array_merge( $result, $provider->getVariableValues() ); } return $result; } /** * Gets getters of entity related variables available in a template * * @param string $entityClass The entity class name. If it is not specified the definitions for all * entities are returned. * * @return string[] The list of getter names * key = {variable name} * value = {method name} // can be NULL if entity field is public */ public function getEntityVariableGetters($entityClass = null) { $result = []; foreach ($this->entityVariablesProviders as $provider) { $result = array_merge_recursive( $result, $provider->getVariableGetters($entityClass) ); } return $result; } }
Djamy/platform
src/Oro/Bundle/EmailBundle/Provider/VariablesProvider.php
PHP
mit
4,230
[ 30522, 1026, 1029, 25718, 3415, 15327, 20298, 1032, 14012, 1032, 10373, 27265, 2571, 1032, 10802, 1025, 2465, 10857, 21572, 17258, 2121, 1063, 1013, 1008, 1008, 1030, 13075, 2291, 10755, 19210, 13102, 12298, 18688, 18447, 2121, 12172, 1031, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4