Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    TypeError
Message:      Couldn't cast array of type
struct<content_hash: string, timestamp: string, source: string, line_count: int64, max_line_length: int64, avg_line_length: double, alnum_prop: double, repo_name: string, id: string, size: string, binary: bool, copies: string, ref: string, path: string, mode: string, license: string, language: list<item: struct<name: string, bytes: string>>, symlink_target: string>
to
{'content_hash': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'source': Value(dtype='string', id=None), 'line_count': Value(dtype='int64', id=None), 'max_line_length': Value(dtype='int64', id=None), 'avg_line_length': Value(dtype='float64', id=None), 'alnum_prop': Value(dtype='float64', id=None), 'repo_name': Value(dtype='string', id=None), 'id': Value(dtype='string', id=None), 'size': Value(dtype='string', id=None), 'binary': Value(dtype='bool', id=None), 'copies': Value(dtype='string', id=None), 'ref': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'mode': Value(dtype='string', id=None), 'license': Value(dtype='string', id=None), 'language': [{'name': Value(dtype='string', id=None), 'bytes': Value(dtype='string', id=None)}]}
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2011, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 585, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2302, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2261, in cast_table_to_schema
                  arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2261, in <listcomp>
                  arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()]
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1802, in wrapper
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1802, in <listcomp>
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2122, in cast_array_to_feature
                  raise TypeError(f"Couldn't cast array of type\n{_short_str(array.type)}\nto\n{_short_str(feature)}")
              TypeError: Couldn't cast array of type
              struct<content_hash: string, timestamp: string, source: string, line_count: int64, max_line_length: int64, avg_line_length: double, alnum_prop: double, repo_name: string, id: string, size: string, binary: bool, copies: string, ref: string, path: string, mode: string, license: string, language: list<item: struct<name: string, bytes: string>>, symlink_target: string>
              to
              {'content_hash': Value(dtype='string', id=None), 'timestamp': Value(dtype='string', id=None), 'source': Value(dtype='string', id=None), 'line_count': Value(dtype='int64', id=None), 'max_line_length': Value(dtype='int64', id=None), 'avg_line_length': Value(dtype='float64', id=None), 'alnum_prop': Value(dtype='float64', id=None), 'repo_name': Value(dtype='string', id=None), 'id': Value(dtype='string', id=None), 'size': Value(dtype='string', id=None), 'binary': Value(dtype='bool', id=None), 'copies': Value(dtype='string', id=None), 'ref': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'mode': Value(dtype='string', id=None), 'license': Value(dtype='string', id=None), 'language': [{'name': Value(dtype='string', id=None), 'bytes': Value(dtype='string', id=None)}]}
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1529, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1154, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2038, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

text
string
meta
dict
ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
{ "content_hash": "ba623fbfd3ccd8fe9cd56ac355fe4c00", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 10.307692307692308, "alnum_prop": 0.6940298507462687, "repo_name": "mdoering/backbone", "id": "2e8919a9d35d27c6dfe55eee6f3aa4e7a09e9290", "size": "193", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Liliopsida/Asparagales/Asparagaceae/Bellevalia/Bellevalia ciliata/README.md", "mode": "33188", "license": "apache-2.0", "language": [] }
ACCEPTED #### According to Index Fungorum #### Published in Bulletin Labor. Orto Bot. de R. Univ. Siena 2: 155 (1899) #### Original name Diplodia pandani Tassi ### Remarks null
{ "content_hash": "9db15ffa77f6c64a680e4b26cae73622", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 57, "avg_line_length": 13.846153846153847, "alnum_prop": 0.7, "repo_name": "mdoering/backbone", "id": "e80f5129d8b11b87d49fe1e0921fec541f1e10da", "size": "226", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Fungi/Ascomycota/Dothideomycetes/Botryosphaeriales/Botryosphaeriaceae/Diplodia/Diplodia pandani/README.md", "mode": "33188", "license": "apache-2.0", "language": [] }
from PIL import Image from os import walk import string FEATURE_PATH = 'feature/' DIR = 'train/' TARGET_NAME = 'all.txt' # for training # DIR = 'test/' # TARGET_NAME = 'test.txt' # for testing # input an object of Image def toFeature(img): pix = img.convert('1').load() width, height = img.size rows, cols = [], [] for x in range(width): cols.append(str(sum([pix[x, y]==0 for y in range(height)]))) for y in range(height): rows.append(str(sum([pix[x, y]==0 for x in range(width)]))) w = len(''.join(['1' if x!='0' else '0' for x in cols]).strip('0')) h = len(''.join(['1' if x!='0' else '0' for x in rows]).strip('0')) total = sum([sum([pix[x, y]==0 for y in range(height)]) for x in range(width)]) return '{width} {height} {pixels} {rows} {cols}'.format(width=w, height=h, pixels=total, rows=' '.join(rows), cols=' '.join(cols)) def main(): print('To: {path}{filename}'.format(path=DIR, filename=TARGET_NAME)) all_data = "" for path in string.ascii_uppercase: f = [] for (dirpath, dirnames, filenames) in walk(DIR+path+'/'): f.extend(filenames) break data = "" for file in filenames: img = Image.open(DIR+path+'/'+file) fea = toFeature(img) data += fea + ' ' + path + '\n' # with open(FEATURE_PATH + path + '.txt', 'w') as d: # d.writelines(data) all_data += data with open(FEATURE_PATH + TARGET_NAME, 'w') as ad: ad.writelines(all_data) print('Next step: train the model.') if __name__ == '__main__': main()
{ "content_hash": "c7ca8eae19a4127d1b75dc0059ea8ca1", "timestamp": "", "source": "github", "line_count": 54, "max_line_length": 83, "avg_line_length": 30.24074074074074, "alnum_prop": 0.5517452541334966, "repo_name": "Zing22/uemscode", "id": "31690b659190f9573a9daec0838db0b11f2d220c", "size": "1790", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "img2feature.py", "mode": "33188", "license": "mit", "language": [ { "name": "Python", "bytes": "14746" } ] }
Checks if the code style follows the ExpectedOrder configuration: `Categories` allows us to map macro names into a category. Consider an example of code style that covers the following order: - Constants - Associations (has_one, has_many) - Attributes (attr_accessor, attr_writer, attr_reader) - Initializer - Instance methods - Protected methods - Private methods You can configure the following order: ```yaml Layout/ClassStructure: Categories: module_inclusion: - include - prepend - extend ExpectedOrder: - module_inclusion - constants - public_class_methods - initializer - public_methods - protected_methods - private_methods ``` Instead of putting all literals in the expected order, is also possible to group categories of macros. ```yaml Layout/ClassStructure: Categories: association: - has_many - has_one attribute: - attr_accessor - attr_reader - attr_writer ``` ### Example: # bad # Expect extend be before constant class Person < ApplicationRecord has_many :orders ANSWER = 42 extend SomeModule include AnotherModule end # good class Person # extend and include go first extend SomeModule include AnotherModule # inner classes CustomError = Class.new(StandardError) # constants are next SOME_CONSTANT = 20 # afterwards we have attribute macros attr_reader :name # followed by other macros (if any) validates :name # public class methods are next in line def self.some_method end # initialization goes between class methods and instance methods def initialize end # followed by other public instance methods def some_method end # protected and private methods are grouped near the end protected def some_protected_method end private def some_private_method end end @see https://github.com/bbatsov/ruby-style-guide#consistent-classes
{ "content_hash": "3c5cb955473449e9929247fb62416d68", "timestamp": "", "source": "github", "line_count": 101, "max_line_length": 70, "avg_line_length": 21.316831683168317, "alnum_prop": 0.6418950301904319, "repo_name": "codeclimate/codeclimate-rubocop", "id": "b46918368324712e4c9853aa5efe44e6389e5835", "size": "2153", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "config/contents/layout/class_structure.md", "mode": "33188", "license": "mit", "language": [ { "name": "Dockerfile", "bytes": "470" }, { "name": "Makefile", "bytes": "607" }, { "name": "Ruby", "bytes": "41947" }, { "name": "Shell", "bytes": "950" } ] }
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
{ "content_hash": "960ab1f4de6dda0de896cd6d8435fd46", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 9.692307692307692, "alnum_prop": 0.7063492063492064, "repo_name": "mdoering/backbone", "id": "e3195a274cd7f764451541eacbe9fe392383f779", "size": "178", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Liliopsida/Asparagales/Asparagaceae/Eucomis/Eucomis jacquinii/README.md", "mode": "33188", "license": "apache-2.0", "language": [] }
import logging import pytest import unittest.mock as mock from alphatwirl.parallel import Parallel ##__________________________________________________________________|| @pytest.fixture() def communicationChannel(): return mock.Mock() @pytest.fixture() def workingarea(): return mock.Mock() @pytest.fixture() def obj(communicationChannel, workingarea): return Parallel( progressMonitor=None, communicationChannel=communicationChannel, workingarea=workingarea ) def test_repr(obj): repr(obj) def test_workingarea(obj, workingarea): assert workingarea is obj.workingarea def test_begin_terminate_end(obj, communicationChannel): obj.begin() assert [mock.call()] == communicationChannel.begin.call_args_list obj.terminate() assert [mock.call()] == communicationChannel.terminate.call_args_list obj.end() assert [mock.call()] == communicationChannel.end.call_args_list ##__________________________________________________________________|| def test_deprectated(caplog): with caplog.at_level(logging.WARNING): Parallel(mock.Mock(), mock.Mock(), mock.Mock()) assert len(caplog.records) == 1 assert caplog.records[0].levelname == 'WARNING' assert 'parallel' in caplog.records[0].name assert 'deprecated' in caplog.records[0].msg ##__________________________________________________________________||
{ "content_hash": "80f74cfb37e4d003dd7290cc682419c1", "timestamp": "", "source": "github", "line_count": 53, "max_line_length": 73, "avg_line_length": 26.547169811320753, "alnum_prop": 0.6041222459132907, "repo_name": "alphatwirl/alphatwirl", "id": "a57f2961a46d717da0e6111370632e0a4787f7ff", "size": "1443", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "tests/unit/parallel/test_parallel_Parallel.py", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "C", "bytes": "3603" }, { "name": "Python", "bytes": "775977" }, { "name": "R", "bytes": "1222" }, { "name": "Shell", "bytes": "28" } ] }
<?php namespace B55\Bundle\YargBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use B55\Bundle\YargBundle\Entity\Cv; use B55\Bundle\YargBundle\Form\CvForm; class MyYargController extends Controller { public function IndexAction() { return $this->render( 'B55YargBundle:MyYarg:index.html.twig', array() ); } }
{ "content_hash": "24d6dc956974b27d6a86e32df9a39fa6", "timestamp": "", "source": "github", "line_count": 18, "max_line_length": 59, "avg_line_length": 21.166666666666668, "alnum_prop": 0.7086614173228346, "repo_name": "bacardi55/yarg", "id": "28c99a92d2df43fb77e0e4ecf75b958fb178c8a7", "size": "381", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/B55/Bundle/YargBundle/Controller/MyYargController.php", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "296531" }, { "name": "JavaScript", "bytes": "395487" }, { "name": "PHP", "bytes": "104359" }, { "name": "Perl", "bytes": "2643" } ] }
#ifndef _FFT_H_ #define _FFT_H_ // Include complex numbers header #include "complex.h" class CFFT { public: // FORWARD FOURIER TRANSFORM // Input - input data // Output - transform result // N - length of both input data and result static bool Forward(const complex *const Input, complex *const Output, const unsigned int N); // FORWARD FOURIER TRANSFORM, INPLACE VERSION // Data - both input data and output // N - length of input data static bool Forward(complex *const Data, const unsigned int N); // INVERSE FOURIER TRANSFORM // Input - input data // Output - transform result // N - length of both input data and result // Scale - if to scale result static bool Inverse(const complex *const Input, complex *const Output, const unsigned int N, const bool Scale = true); // INVERSE FOURIER TRANSFORM, INPLACE VERSION // Data - both input data and output // N - length of both input data and result // Scale - if to scale result static bool Inverse(complex *const Data, const unsigned int N, const bool Scale = true); protected: // Rearrange function and its inplace version static void Rearrange(const complex *const Input, complex *const Output, const unsigned int N); static void Rearrange(complex *const Data, const unsigned int N); // FFT implementation static void Perform(complex *const Data, const unsigned int N, const bool Inverse = false); // Scaling of inverse FFT result static void Scale(complex *const Data, const unsigned int N); }; #endif
{ "content_hash": "7e59cdbe7571c7fb26d02ed35172404e", "timestamp": "", "source": "github", "line_count": 47, "max_line_length": 119, "avg_line_length": 34.61702127659574, "alnum_prop": 0.6724031960663799, "repo_name": "hrfm/ofAudioManager", "id": "cc858c82a198ac07ba0b718e7209c44a581a7469", "size": "1814", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "src/lib/fft.h", "mode": "33261", "license": "mit", "language": [ { "name": "C++", "bytes": "26435" } ] }
package com.vardemin.wiwing; import android.os.Parcelable; import java.io.Serializable; /** * Created by xavie on 23.05.2016. */ public class WiWingPacket implements Serializable { private WiPackageType type; private byte[] instance = null; private String ip = null; public WiWingPacket (WiPackageType type){ this.type = type; } public WiWingPacket(WiPackageType type, Parcelable parcel){ this.type = type; this.instance = ParcelableUtility.marshall(parcel); } public WiWingPacket(WiPackageType type, Parcelable parcel, String ip){ this.type = type; this.instance = ParcelableUtility.marshall(parcel); this.ip = ip; } public WiWingPacket(WiPackageType type, String ip){ this.type = type; this.ip = ip; } public String getIp() {return this.ip;} public void setType(WiPackageType type) {this.type=type;} public WiPackageType getType() {return type;} public void setInstance(Parcelable parcelable) { this.instance = ParcelableUtility.marshall(parcelable); } public <T extends Parcelable> T getInstance(Parcelable.Creator<T> creator){ return ParcelableUtility.unmarshall(instance,creator); } }
{ "content_hash": "66dd1f8c67cb9296dc62ac434ac82706", "timestamp": "", "source": "github", "line_count": 45, "max_line_length": 79, "avg_line_length": 27.844444444444445, "alnum_prop": 0.6815642458100558, "repo_name": "vardemin/WiWing", "id": "423280d6ecf981453814165b053301a2f7d5df5b", "size": "1253", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/java/com/vardemin/wiwing/WiWingPacket.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "129957" } ] }
package com.wku.mandi; import java.text.SimpleDateFormat; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder; import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; /** * Created by srujangopu on 7/19/15. */ @Configuration @ComponentScan @EnableAutoConfiguration public class SpringBoot { public static void main(String[] args) { SpringApplication.run(SpringBoot.class, args); } @Bean public MappingJackson2HttpMessageConverter mappingJackson2HttpMessageConverter() { MappingJackson2HttpMessageConverter jsonConverter = new MappingJackson2HttpMessageConverter(); ObjectMapper objectMapper = new ObjectMapper(); objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); jsonConverter.setObjectMapper(objectMapper); return jsonConverter; } }
{ "content_hash": "8f2ecbb8fbf8c3269807879c9397db8f", "timestamp": "", "source": "github", "line_count": 40, "max_line_length": 98, "avg_line_length": 32.475, "alnum_prop": 0.8113933795227097, "repo_name": "vishu-guntupalli/Mandi-API", "id": "722ff87118ab2c6cadb8af11d9f91d07b1ed7ef5", "size": "1299", "binary": false, "copies": "1", "ref": "refs/heads/dev", "path": "src/main/java/com/wku/mandi/SpringBoot.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "78722" }, { "name": "JavaScript", "bytes": "958" } ] }
ο»Ώusing Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Rinsen.Logging.Controllers { public class DashboardController : Controller { public IActionResult Index() { return View(); } } }
{ "content_hash": "ca7e8fa746c855fc5622f602369c8e48", "timestamp": "", "source": "github", "line_count": 20, "max_line_length": 49, "avg_line_length": 16.1, "alnum_prop": 0.6645962732919255, "repo_name": "Rinsen/Logging", "id": "9099f2ba28aa3e6651eb6d3cb95594b1782e8251", "size": "324", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/Rinsen.Logging/Controllers/DashboardController.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "60663" }, { "name": "JavaScript", "bytes": "7516" } ] }
@interface ViewController () @property (weak, nonatomic) IBOutlet UIProgressView *progress1; @property (weak, nonatomic) IBOutlet UIProgressView *progress2; @property (weak, nonatomic) IBOutlet UIProgressView *progress3; @property (nonatomic, strong) DownloadQueue *queue; @property (nonatomic, strong) DownloadOperation *operation1; @property (nonatomic, strong) DownloadOperation *operation2; @property (nonatomic, strong) DownloadOperation *operation3; @property (nonatomic, strong) DownloadGroup *group; @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // NSString *caches = [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject]; // NSString *path = [caches stringByAppendingPathComponent:@"lesson_1.m4v"]; // NSFileManager* manager = [NSFileManager defaultManager]; // if ([manager fileExistsAtPath:path]){ // NSLog(@"%lld", [[manager attributesOfItemAtPath:path error:nil] fileSize]); // } self.progress1.progress = 0; // self.progress2.progress = 0; // self.progress3.progress = 0; // NSString *caches = [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject]; // // self.queue = [[DownloadQueue alloc] init]; // // self.operation1 = [[DownloadOperation alloc] init]; // [self.operation1 setupWithSourcePath:URLString1 destinationPath:[caches stringByAppendingPathComponent:@"lesson_1.m4v"] progress:^(DownloadOperation *operation, NSUInteger bytesRead, long long totalBytesRead, long long totalBytesExpectedToRead) { // self.progress1.progress = (double)totalBytesRead / totalBytesExpectedToRead; // } success:^(DownloadOperation *operation) { // NSLog(@"download 1 success"); // } failure:^(DownloadOperation *operation, NSError *error) { // NSLog(@"download 1 failure"); // } status:^(DownloadOperation *operation, DownloadOperationStatus status) { // NSLog(@"download 1 status %d", status); // }]; // // self.operation2 = [[DownloadOperation alloc] init]; // [self.operation2 setupWithSourcePath:URLString2 destinationPath:[caches stringByAppendingPathComponent:@"lesson_2.m4v"] progress:^(DownloadOperation *operation, NSUInteger bytesRead, long long totalBytesRead, long long totalBytesExpectedToRead) { // self.progress2.progress = (double)totalBytesRead / totalBytesExpectedToRead; // } success:^(DownloadOperation *operation) { // NSLog(@"download 2 success"); // } failure:^(DownloadOperation *operation, NSError *error) { // NSLog(@"download 2 failure"); // } status:^(DownloadOperation *operation, DownloadOperationStatus status) { // NSLog(@"download 2 status %d", status); // }]; // // self.operation3 = [[DownloadOperation alloc] init]; // [self.operation3 setupWithSourcePath:URLString3 destinationPath:[caches stringByAppendingPathComponent:@"lesson_3.m4v"] progress:^(DownloadOperation *operation, NSUInteger bytesRead, long long totalBytesRead, long long totalBytesExpectedToRead) { // self.progress3.progress = (double)totalBytesRead / totalBytesExpectedToRead; // } success:^(DownloadOperation *operation) { // NSLog(@"download 3 success"); // } failure:^(DownloadOperation *operation, NSError *error) { // NSLog(@"download 3 failure"); // } status:^(DownloadOperation *operation, DownloadOperationStatus status) { // NSLog(@"download 3 status %d", status); // }]; NSArray *sourcePathArray = @[URLString1]; NSArray *destinationPathArray = @[[caches stringByAppendingPathComponent:@"lesson_1.m4v"]]; self.group = [[DownloadGroup alloc] init]; [self.group setupWithSourcePathArray:sourcePathArray destinationPathArray:destinationPathArray progress:^(DownloadGroup *group, NSUInteger bytesRead, long long totalBytesRead, long long totalBytesExpectedToRead) { NSLog(@"%@, %ld, %lld, %lld", group.identifier, bytesRead, totalBytesRead, totalBytesExpectedToRead); self.progress1.progress = (double)totalBytesRead / totalBytesExpectedToRead; } success:^(DownloadGroup *group) { NSLog(@"%@", group.identifier); } failure:^(DownloadGroup *group, NSError *error) { } status:^(DownloadGroup *group, DownloadGroupStatus status) { }]; } - (IBAction)button1:(UIButton *)sender { [self.group start]; // [self.queue addOperation:self.operation1]; } - (IBAction)pause1:(UIButton *)sender { [self.operation1 cancel]; } - (IBAction)button2:(UIButton *)sender { // [self.queue addOperation:self.operation2]; } - (IBAction)pause2:(UIButton *)sender { [self.operation2 cancel]; } - (IBAction)button3:(UIButton *)sender { // [self.queue addOperation:self.operation3]; } - (IBAction)pause3:(UIButton *)sender { [self.operation3 cancel]; } @end
{ "content_hash": "4c036aace46fd5b98aa330e578730bf2", "timestamp": "", "source": "github", "line_count": 101, "max_line_length": 252, "avg_line_length": 47.742574257425744, "alnum_prop": 0.7196184155951887, "repo_name": "lych0317/DownloadFileDemo", "id": "bd85a6c60bb9d9bf7ada1d4191335ccc9f7e8736", "size": "5330", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "DownloadFileDemo/DownloadFileDemo/ViewController.m", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Objective-C", "bytes": "28169" } ] }
WINRT_EXPORT namespace winrt { namespace Windows::ApplicationModel::AppService { struct AppServiceCatalog { AppServiceCatalog() = delete; static Windows::Foundation::IAsyncOperation<Windows::Foundation::Collections::IVectorView<Windows::ApplicationModel::AppInfo>> FindAppServiceProvidersAsync(hstring_ref appServiceName); }; struct WINRT_EBO AppServiceClosedEventArgs : Windows::ApplicationModel::AppService::IAppServiceClosedEventArgs { AppServiceClosedEventArgs(std::nullptr_t) noexcept {} }; struct WINRT_EBO AppServiceConnection : Windows::ApplicationModel::AppService::IAppServiceConnection, impl::require<AppServiceConnection, Windows::ApplicationModel::AppService::IAppServiceConnection2> { AppServiceConnection(std::nullptr_t) noexcept {} AppServiceConnection(); }; struct WINRT_EBO AppServiceDeferral : Windows::ApplicationModel::AppService::IAppServiceDeferral { AppServiceDeferral(std::nullptr_t) noexcept {} }; struct WINRT_EBO AppServiceRequest : Windows::ApplicationModel::AppService::IAppServiceRequest { AppServiceRequest(std::nullptr_t) noexcept {} }; struct WINRT_EBO AppServiceRequestReceivedEventArgs : Windows::ApplicationModel::AppService::IAppServiceRequestReceivedEventArgs { AppServiceRequestReceivedEventArgs(std::nullptr_t) noexcept {} }; struct WINRT_EBO AppServiceResponse : Windows::ApplicationModel::AppService::IAppServiceResponse { AppServiceResponse(std::nullptr_t) noexcept {} }; struct WINRT_EBO AppServiceTriggerDetails : Windows::ApplicationModel::AppService::IAppServiceTriggerDetails, impl::require<AppServiceTriggerDetails, Windows::ApplicationModel::AppService::IAppServiceTriggerDetails2> { AppServiceTriggerDetails(std::nullptr_t) noexcept {} }; } }
{ "content_hash": "bb163a602a20844740116cf27d571cb4", "timestamp": "", "source": "github", "line_count": 58, "max_line_length": 188, "avg_line_length": 30.724137931034484, "alnum_prop": 0.7906846240179574, "repo_name": "megayuchi/RadialController", "id": "5e5dfde1334c8f9e0a2c2f226a32c2dc2d2bf3dd", "size": "1960", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "UWP/RadialDevice/winrt/internal/Windows.ApplicationModel.AppService.3.h", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "2923" }, { "name": "C++", "bytes": "34336306" }, { "name": "Objective-C", "bytes": "1111" } ] }
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Picture extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * @see https://codeigniter.com/user_guide/general/urls.html */ function __construct() { $complete = false; parent::__construct(); $this->load->library('session'); $this->load->helper(array('url', 'file', 'string', 'html', 'language','email')); $this->load->model('register_model'); $this->load->model('admin/action_model'); } public function album(){ $user_id = $this->session->userdata('user_id'); $data['photos'] = $this->action_model->getpart_table_deatils("profile_pictures","user_id",$user_id); $this->load->view("album",$data); } public function ImageUpload(){ $p1 = $p2 = []; if (empty($_FILES['input-ru']['name'])) { echo '{}'; return; } for ($i = 0; $i < count($_FILES['input-ru']['name']); $i++) { $User_Id = $this->session->userdata('user_id'); $tmp_name = $_FILES['input-ru']['tmp_name'][$i]; $name = $_FILES['input-ru']['name'][$i]; $image_name = rand().$_FILES['input-ru']['name'][$i]; $imagespath= $_SERVER['DOCUMENT_ROOT'] . 'socialmedia/assets/images/profile-pictures/'.$image_name; copy($tmp_name,$imagespath); $data =array('user_id'=> $User_Id, 'picture' => $image_name); $where = ""; $image = base_url(). 'assets/images/profile-pictures/'.$image_name; $p1[$i] = "<img src='".$image."' class='file-preview-image' width='260px'>"; $p2[$i] = ['caption' => $image_name, 'width' => '120px']; $id = $this->action_model->add_record('profile_pictures',$data,$id=0,$where); } echo json_encode([ 'initialPreview' => $p1, 'initialPreviewConfig' => $p2, 'append' => true // whether to append these configurations to initialPreview. // if set to false it will overwrite initial preview // if set to true it will append to initial preview // if this propery not set or passed, it will default to true. ]); } public function ListProfilePic(){ $user_id = $this->session->userdata('user_id'); $p1 = $p2 = []; $sql = "select * from `profile_pictures` where user_id=".$user_id." "; $query = $this->db->query($sql); if($query->num_rows() > 0){ $List=$query->result_array(); for($i=0;$i<count($List);$i++){ $image = base_url(). 'assets/images/profile-pictures/'.$List[$i]['picture']; $p1[$i] = "<img src='".$image."' class='file-preview-image' width='260px'>"; $p2[$i] = ['caption' => $List[$i]['picture'], 'width' => '120px', 'url' => base_url().'home/DeleteImage/'.$List[$i]['picture_id'], 'key' => $List[$i]['picture_id']]; } } echo json_encode([ 'initialPreview' => $p1, 'initialPreviewConfig' => $p2, 'maxFileCount' => 4, 'append' => true ]); } public function DeleteImage($id){ $sql = "select * from `profile_pictures` where picture_id=".$id.""; $query = $this->db->query($sql); if($query->num_rows() > 0){ $List=$query->result_array(); $sql = "delete from `profile_pictures` where picture_id=".$id.""; $query = $this->db->query($sql); $filename = $_SERVER['DOCUMENT_ROOT'] . 'socialmedia/assets/images/profile-pictures/'.$List[0]['ProfilePic']; } if (file_exists($filename)) { unlink($filename); } echo json_encode([ ]); } } ?>
{ "content_hash": "987d47fc3713e385e89fb7ab5fde8934", "timestamp": "", "source": "github", "line_count": 122, "max_line_length": 169, "avg_line_length": 31, "alnum_prop": 0.5901639344262295, "repo_name": "bigperl/socialmedia", "id": "a7f9dbf058a39f7d33a90522e17b8bd9f2ffce0d", "size": "3782", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "application/controllers/picture.php", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "527" }, { "name": "CSS", "bytes": "200739" }, { "name": "HTML", "bytes": "31399" }, { "name": "JavaScript", "bytes": "407809" }, { "name": "PHP", "bytes": "2359636" } ] }
require 'mail' require 'gmail_xoauth' module GmailMailer SMTP_SERVER = "smtp.gmail.com" SMTP_PORT = "587" SMTP_HOST = "gmail.com" SMTP_CONSUMER_KEY = "anonymous" SMTP_CONSUMER_SECRET = "anonymous" ATTACHMENTS_SIZE_LIMIT = (1024*1024)*25 #25mb attachment limit RECIPIENT_LIMIT = 500 MAX_RETRY = 2 class Mailer def initialize(credentials) begin validate_credentials(credentials) rescue raise end @email_credentials = credentials end def send(message) mail = Mail.new do to message.to subject message.subject body message.body end if(!message.attachments.empty?) message.attachments.each do |attachment| mail.add_file(attachment) end end retry_attempts = 0 begin send_smtp(mail) rescue => message puts "Error occured attempting to send mail => #{message}" raise message if(retry_attempts > MAX_RETRY) puts "Retry: #{retry_attempts+1}/#{MAX_RETRY+1}" retry_attempts = retry_attempts.succ retry end end # Use gmail_xoauth to send email def send_smtp(mail) smtp = Net::SMTP.new(SMTP_SERVER, SMTP_PORT) smtp.enable_starttls_auto secret = { :consumer_key => SMTP_CONSUMER_KEY, :consumer_secret => SMTP_CONSUMER_SECRET, :token => @email_credentials[:smtp_oauth_token], :token_secret => @email_credentials[:smtp_oauth_token_secret] } smtp.start(SMTP_HOST, @email_credentials[:email], secret, :xoauth) do |session| print "Sending message..." session.send_message(mail.encoded, mail.from_addrs.first, mail.destinations) puts ".sent!" end end def validate_credentials(creds) msg = "ERROR: Email credentials are invalid:" raise ArgumentError, "#{msg} The credentials you have posted are nil" if creds.nil? raise ArgumentError, "#{msg} You must provide a smtp_oauth_token value!" if !creds.key?:smtp_oauth_token or creds[:smtp_oauth_token].nil? or creds[:smtp_oauth_token].empty? raise ArgumentError, "#{msg} You must provide a smtp_oauth_token_secret value!" if !creds.key?:smtp_oauth_token_secret or creds[:smtp_oauth_token_secret].nil? or creds[:smtp_oauth_token_secret].empty? raise ArgumentError, "#{msg} You must provide an email value" if !creds.key?:email or creds[:email].nil? or creds[:email].empty? return nil end end class Message attr_accessor :subject, :body attr_reader :to, :attachments def initialize(to, subject="", body="") self.to=(to) @subject = subject @body = body @attachments = [] end def add_attachment(filepath) raise ArgumentError, "You must specify a file to send" if filepath.nil? or filepath.empty? raise ArgumentError, "File #{filepath} does not exist" if !File.exist?(filepath) raise ArgumentError, "#{filepath} file is a directory, this is not supported" if File.directory?(filepath) size = File.size(filepath) print "Adding attachment: #{filepath} " printf("(%5.4f kb)",size.to_f/1024.0) puts raise ArgumentError, "There is a #{ATTACHMENTS_SIZE_LIMIT/1024/1024}mb limit on attachments}" if (get_attachments_size + size) > ATTACHMENTS_SIZE_LIMIT @attachments << filepath end def to=(to) raise ArgumentError, "You must specify an email address to send the message to!" if(to.nil? or to.empty?) raise ArgumentError, "You cannot send a message to more than #{RECIPIENT_LIMIT} recipients" if to.is_a?Array and to.count > RECIPIENT_LIMIT @to = to.join(";") if to.is_a?Array @to = to if to.is_a?String end def get_attachments_size attachments_size = 0 @attachments.each do |attachment| attachments_size += File.size(attachment) end return attachments_size end end end
{ "content_hash": "f4e70553654701df6d0cb24739e6b94f", "timestamp": "", "source": "github", "line_count": 113, "max_line_length": 206, "avg_line_length": 34.95575221238938, "alnum_prop": 0.6463291139240507, "repo_name": "djhworld/gmail-mailer", "id": "c0f45c5ed5fce97be60d3aa128c5c641d64d654c", "size": "3950", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/gmail-mailer.rb", "mode": "33188", "license": "mit", "language": [ { "name": "Ruby", "bytes": "16238" } ] }
"""Support for remote Python debugging. Some ASCII art to describe the structure: IN PYTHON SUBPROCESS # IN IDLE PROCESS # # oid='gui_adapter' +----------+ # +------------+ +-----+ | GUIProxy |--remote#call-->| GUIAdapter |--calls-->| GUI | +-----+--calls-->+----------+ # +------------+ +-----+ | Idb | # / +-----+<-calls--+------------+ # +----------+<--calls-/ | IdbAdapter |<--remote#call--| IdbProxy | +------------+ # +----------+ oid='idb_adapter' # The purpose of the Proxy and Adapter classes is to translate certain arguments and return values that cannot be transported through the RPC barrier, in particular frame and traceback objects. """ import types from idlelib import rpc from idlelib import Debugger debugging = 0 idb_adap_oid = "idb_adapter" gui_adap_oid = "gui_adapter" #======================================= # # In the PYTHON subprocess: frametable = {} dicttable = {} codetable = {} tracebacktable = {} def wrap_frame(frame): fid = id(frame) frametable[fid] = frame return fid def wrap_info(info): "replace info[2], a traceback instance, by its ID" if info is None: return None else: traceback = info[2] assert isinstance(traceback, types.TracebackType) traceback_id = id(traceback) tracebacktable[traceback_id] = traceback modified_info = (info[0], info[1], traceback_id) return modified_info class GUIProxy: def __init__(self, conn, gui_adap_oid): self.conn = conn self.oid = gui_adap_oid def interaction(self, message, frame, info=None): # calls rpc.SocketIO.remotecall() via run.MyHandler instance # pass frame and traceback object IDs instead of the objects themselves self.conn.remotecall(self.oid, "interaction", (message, wrap_frame(frame), wrap_info(info)), {}) class IdbAdapter: def __init__(self, idb): self.idb = idb #----------called by an IdbProxy---------- def set_step(self): self.idb.set_step() def set_quit(self): self.idb.set_quit() def set_continue(self): self.idb.set_continue() def set_next(self, fid): frame = frametable[fid] self.idb.set_next(frame) def set_return(self, fid): frame = frametable[fid] self.idb.set_return(frame) def get_stack(self, fid, tbid): ##print >>sys.__stderr__, "get_stack(%r, %r)" % (fid, tbid) frame = frametable[fid] if tbid is None: tb = None else: tb = tracebacktable[tbid] stack, i = self.idb.get_stack(frame, tb) ##print >>sys.__stderr__, "get_stack() ->", stack stack = [(wrap_frame(frame), k) for frame, k in stack] ##print >>sys.__stderr__, "get_stack() ->", stack return stack, i def run(self, cmd): import __main__ self.idb.run(cmd, __main__.__dict__) def set_break(self, filename, lineno): msg = self.idb.set_break(filename, lineno) return msg def clear_break(self, filename, lineno): msg = self.idb.clear_break(filename, lineno) return msg def clear_all_file_breaks(self, filename): msg = self.idb.clear_all_file_breaks(filename) return msg #----------called by a FrameProxy---------- def frame_attr(self, fid, name): frame = frametable[fid] return getattr(frame, name) def frame_globals(self, fid): frame = frametable[fid] dict = frame.f_globals did = id(dict) dicttable[did] = dict return did def frame_locals(self, fid): frame = frametable[fid] dict = frame.f_locals did = id(dict) dicttable[did] = dict return did def frame_code(self, fid): frame = frametable[fid] code = frame.f_code cid = id(code) codetable[cid] = code return cid #----------called by a CodeProxy---------- def code_name(self, cid): code = codetable[cid] return code.co_name def code_filename(self, cid): code = codetable[cid] return code.co_filename #----------called by a DictProxy---------- def dict_keys(self, did): dict = dicttable[did] return dict.keys() def dict_item(self, did, key): dict = dicttable[did] value = dict[key] value = repr(value) return value #----------end class IdbAdapter---------- def start_debugger(rpchandler, gui_adap_oid): """Start the debugger and its RPC link in the Python subprocess Start the subprocess side of the split debugger and set up that side of the RPC link by instantiating the GUIProxy, Idb debugger, and IdbAdapter objects and linking them together. Register the IdbAdapter with the RPCServer to handle RPC requests from the split debugger GUI via the IdbProxy. """ gui_proxy = GUIProxy(rpchandler, gui_adap_oid) idb = Debugger.Idb(gui_proxy) idb_adap = IdbAdapter(idb) rpchandler.register(idb_adap_oid, idb_adap) return idb_adap_oid #======================================= # # In the IDLE process: class FrameProxy: def __init__(self, conn, fid): self._conn = conn self._fid = fid self._oid = "idb_adapter" self._dictcache = {} def __getattr__(self, name): if name[:1] == "_": raise AttributeError, name if name == "f_code": return self._get_f_code() if name == "f_globals": return self._get_f_globals() if name == "f_locals": return self._get_f_locals() return self._conn.remotecall(self._oid, "frame_attr", (self._fid, name), {}) def _get_f_code(self): cid = self._conn.remotecall(self._oid, "frame_code", (self._fid,), {}) return CodeProxy(self._conn, self._oid, cid) def _get_f_globals(self): did = self._conn.remotecall(self._oid, "frame_globals", (self._fid,), {}) return self._get_dict_proxy(did) def _get_f_locals(self): did = self._conn.remotecall(self._oid, "frame_locals", (self._fid,), {}) return self._get_dict_proxy(did) def _get_dict_proxy(self, did): if did in self._dictcache: return self._dictcache[did] dp = DictProxy(self._conn, self._oid, did) self._dictcache[did] = dp return dp class CodeProxy: def __init__(self, conn, oid, cid): self._conn = conn self._oid = oid self._cid = cid def __getattr__(self, name): if name == "co_name": return self._conn.remotecall(self._oid, "code_name", (self._cid,), {}) if name == "co_filename": return self._conn.remotecall(self._oid, "code_filename", (self._cid,), {}) class DictProxy: def __init__(self, conn, oid, did): self._conn = conn self._oid = oid self._did = did def keys(self): return self._conn.remotecall(self._oid, "dict_keys", (self._did,), {}) def __getitem__(self, key): return self._conn.remotecall(self._oid, "dict_item", (self._did, key), {}) def __getattr__(self, name): ##print >>sys.__stderr__, "failed DictProxy.__getattr__:", name raise AttributeError, name class GUIAdapter: def __init__(self, conn, gui): self.conn = conn self.gui = gui def interaction(self, message, fid, modified_info): ##print "interaction: (%s, %s, %s)" % (message, fid, modified_info) frame = FrameProxy(self.conn, fid) self.gui.interaction(message, frame, modified_info) class IdbProxy: def __init__(self, conn, shell, oid): self.oid = oid self.conn = conn self.shell = shell def call(self, methodname, *args, **kwargs): ##print "**IdbProxy.call %s %s %s" % (methodname, args, kwargs) value = self.conn.remotecall(self.oid, methodname, args, kwargs) ##print "**IdbProxy.call %s returns %r" % (methodname, value) return value def run(self, cmd, locals): # Ignores locals on purpose! seq = self.conn.asyncqueue(self.oid, "run", (cmd,), {}) self.shell.interp.active_seq = seq def get_stack(self, frame, tbid): # passing frame and traceback IDs, not the objects themselves stack, i = self.call("get_stack", frame._fid, tbid) stack = [(FrameProxy(self.conn, fid), k) for fid, k in stack] return stack, i def set_continue(self): self.call("set_continue") def set_step(self): self.call("set_step") def set_next(self, frame): self.call("set_next", frame._fid) def set_return(self, frame): self.call("set_return", frame._fid) def set_quit(self): self.call("set_quit") def set_break(self, filename, lineno): msg = self.call("set_break", filename, lineno) return msg def clear_break(self, filename, lineno): msg = self.call("clear_break", filename, lineno) return msg def clear_all_file_breaks(self, filename): msg = self.call("clear_all_file_breaks", filename) return msg def start_remote_debugger(rpcclt, pyshell): """Start the subprocess debugger, initialize the debugger GUI and RPC link Request the RPCServer start the Python subprocess debugger and link. Set up the Idle side of the split debugger by instantiating the IdbProxy, debugger GUI, and debugger GUIAdapter objects and linking them together. Register the GUIAdapter with the RPCClient to handle debugger GUI interaction requests coming from the subprocess debugger via the GUIProxy. The IdbAdapter will pass execution and environment requests coming from the Idle debugger GUI to the subprocess debugger via the IdbProxy. """ global idb_adap_oid idb_adap_oid = rpcclt.remotecall("exec", "start_the_debugger",\ (gui_adap_oid,), {}) idb_proxy = IdbProxy(rpcclt, pyshell, idb_adap_oid) gui = Debugger.Debugger(pyshell, idb_proxy) gui_adap = GUIAdapter(rpcclt, gui) rpcclt.register(gui_adap_oid, gui_adap) return gui def close_remote_debugger(rpcclt): """Shut down subprocess debugger and Idle side of debugger RPC link Request that the RPCServer shut down the subprocess debugger and link. Unregister the GUIAdapter, which will cause a GC on the Idle process debugger and RPC link objects. (The second reference to the debugger GUI is deleted in PyShell.close_remote_debugger().) """ close_subprocess_debugger(rpcclt) rpcclt.unregister(gui_adap_oid) def close_subprocess_debugger(rpcclt): rpcclt.remotecall("exec", "stop_the_debugger", (idb_adap_oid,), {}) def restart_subprocess_debugger(rpcclt): idb_adap_oid_ret = rpcclt.remotecall("exec", "start_the_debugger",\ (gui_adap_oid,), {}) assert idb_adap_oid_ret == idb_adap_oid, 'Idb restarted with different oid'
{ "content_hash": "936386baae54e2e4f3247184c13c43da", "timestamp": "", "source": "github", "line_count": 380, "max_line_length": 79, "avg_line_length": 31.66842105263158, "alnum_prop": 0.5442911750041549, "repo_name": "ktan2020/legacy-automation", "id": "0b64f846fe203602932bce1dfa454fcac4ed6009", "size": "12034", "binary": false, "copies": "5", "ref": "refs/heads/master", "path": "win/Lib/idlelib/RemoteDebugger.py", "mode": "33261", "license": "mit", "language": [ { "name": "ActionScript", "bytes": "913" }, { "name": "Ada", "bytes": "289" }, { "name": "Assembly", "bytes": "687" }, { "name": "Boo", "bytes": "540" }, { "name": "C", "bytes": "40116" }, { "name": "C#", "bytes": "474" }, { "name": "C++", "bytes": "393" }, { "name": "CSS", "bytes": "70883" }, { "name": "ColdFusion", "bytes": "1012" }, { "name": "Common Lisp", "bytes": "1034" }, { "name": "D", "bytes": "1858" }, { "name": "Eiffel", "bytes": "426" }, { "name": "Erlang", "bytes": "9243" }, { "name": "FORTRAN", "bytes": "1810" }, { "name": "Forth", "bytes": "182" }, { "name": "Groovy", "bytes": "2366" }, { "name": "Haskell", "bytes": "816" }, { "name": "Haxe", "bytes": "455" }, { "name": "Java", "bytes": "1155" }, { "name": "JavaScript", "bytes": "69444" }, { "name": "Lua", "bytes": "795" }, { "name": "Matlab", "bytes": "1278" }, { "name": "OCaml", "bytes": "350" }, { "name": "Objective-C++", "bytes": "885" }, { "name": "PHP", "bytes": "1411" }, { "name": "Pascal", "bytes": "388" }, { "name": "Perl", "bytes": "252651" }, { "name": "Pike", "bytes": "589" }, { "name": "Python", "bytes": "42085780" }, { "name": "R", "bytes": "1156" }, { "name": "Ruby", "bytes": "480" }, { "name": "Scheme", "bytes": "282" }, { "name": "Shell", "bytes": "30518" }, { "name": "Smalltalk", "bytes": "926" }, { "name": "Squirrel", "bytes": "697" }, { "name": "Stata", "bytes": "302" }, { "name": "SystemVerilog", "bytes": "3145" }, { "name": "Tcl", "bytes": "1039" }, { "name": "TeX", "bytes": "1746" }, { "name": "VHDL", "bytes": "985" }, { "name": "Vala", "bytes": "664" }, { "name": "Verilog", "bytes": "439" }, { "name": "Visual Basic", "bytes": "2142" }, { "name": "XSLT", "bytes": "152770" }, { "name": "ooc", "bytes": "890" }, { "name": "xBase", "bytes": "769" } ] }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>equations: 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.13.0 / equations - 1.1+8.8</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">Β« Up</a> <h1> equations <small> 1.1+8.8 <span class="label label-info">Not compatible πŸ‘Ό</span> </small> </h1> <p>πŸ“… <em><script>document.write(moment("2022-04-16 14:32:00 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-04-16 14:32:00 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 conf-findutils 1 Virtual package relying on findutils conf-gmp 4 Virtual package relying on a GMP lib system installation coq 8.13.0 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.05.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.05.0 Official 4.05.0 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 A library manager for OCaml zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: opam-version: &quot;2.0&quot; authors: [ &quot;Matthieu Sozeau &lt;matthieu.sozeau@inria.fr&gt;&quot; &quot;Cyprien Mangin &lt;cyprien.mangin@m4x.org&gt;&quot; ] dev-repo: &quot;git+https://github.com/mattam82/Coq-Equations.git&quot; maintainer: &quot;matthieu.sozeau@inria.fr&quot; homepage: &quot;https://mattam82.github.io/Coq-Equations&quot; bug-reports: &quot;https://github.com/mattam82/Coq-Equations/issues&quot; license: &quot;LGPL 2.1&quot; build: [ [&quot;coq_makefile&quot; &quot;-f&quot; &quot;_CoqProject&quot; &quot;-o&quot; &quot;Makefile&quot;] [make &quot;-j%{jobs}%&quot;] ] install: [ [make &quot;install&quot;] ] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/Equations&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.8&quot; &amp; &lt; &quot;8.9&quot;} ] synopsis: &quot;A function definition package for Coq&quot; description: &quot;&quot;&quot; Equations is a function definition plugin for Coq, that allows the definition of functions by dependent pattern-matching and well-founded, mutual or nested structural recursion and compiles them into core terms. It automatically derives the clauses equations, the graph of the function and its associated elimination principle.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/mattam82/Coq-Equations/archive/v1.1-8.8.tar.gz&quot; checksum: &quot;md5=59fff3cbb27507ba52bf8ffb00359aa0&quot; } </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-equations.1.1+8.8 coq.8.13.0</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.13.0). The following dependencies couldn&#39;t be met: - coq-equations -&gt; coq &lt; 8.9 -&gt; ocaml &lt; 4.03.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;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-equations.1.1+8.8</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>
{ "content_hash": "418aa68debea8e3df9bccca358a457ca", "timestamp": "", "source": "github", "line_count": 174, "max_line_length": 159, "avg_line_length": 42.264367816091955, "alnum_prop": 0.5546641283655154, "repo_name": "coq-bench/coq-bench.github.io", "id": "2a687c7f1bd72d188e0ce58d99e71eb8bebe0e37", "size": "7379", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "clean/Linux-x86_64-4.05.0-2.0.1/released/8.13.0/equations/1.1+8.8.html", "mode": "33188", "license": "mit", "language": [] }
import {ExplicitPadding} from '../../ops/conv_util'; import {maxPool} from '../../ops/max_pool'; import {getGlobalTensorClass, Tensor3D, Tensor4D} from '../../tensor'; import {Rank} from '../../types'; declare module '../../tensor' { interface Tensor<R extends Rank = Rank> { maxPool<T extends Tensor3D|Tensor4D>( filterSize: [number, number]|number, strides: [number, number]|number, pad: 'valid'|'same'|number|ExplicitPadding, dimRoundingMode?: 'floor'|'round'|'ceil'): T; } } getGlobalTensorClass().prototype.maxPool = function<T extends Tensor3D|Tensor4D>( this: T, filterSize: [number, number]|number, strides: [number, number]|number, pad: 'valid'|'same'|number|ExplicitPadding, dimRoundingMode?: 'floor'|'round'|'ceil'): T { this.throwIfDisposed(); return maxPool(this, filterSize, strides, pad, dimRoundingMode); };
{ "content_hash": "5918f9468dd4904a20b40140e0ea1f3f", "timestamp": "", "source": "github", "line_count": 24, "max_line_length": 78, "avg_line_length": 37.458333333333336, "alnum_prop": 0.657397107897664, "repo_name": "tensorflow/tfjs", "id": "5bd102c94f058f44d812efa536367a6c5a86a2c1", "size": "1601", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "tfjs-core/src/public/chained_ops/max_pool.ts", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "2165" }, { "name": "C", "bytes": "1149" }, { "name": "C++", "bytes": "511030" }, { "name": "CSS", "bytes": "27067" }, { "name": "Dockerfile", "bytes": "1840" }, { "name": "HTML", "bytes": "132169" }, { "name": "Java", "bytes": "4081" }, { "name": "JavaScript", "bytes": "1200362" }, { "name": "Objective-C", "bytes": "5247" }, { "name": "Python", "bytes": "518704" }, { "name": "Ruby", "bytes": "1981" }, { "name": "Shell", "bytes": "76252" }, { "name": "Starlark", "bytes": "176198" }, { "name": "TypeScript", "bytes": "10878537" } ] }
'use strict'; describe('prettifyProvider', function() { beforeEach(module('ng-code-mirror.prettify', function($provide) { $provide.value('$window', { prettyPrint: jasmine.createSpy('global'), prettyPrintOne: jasmine.createSpy('one') }); })); it('should call $window.functionName', inject(function($window, prettify) { prettify.global('args'); prettify.one('arg'); expect($window.prettyPrint).toHaveBeenCalledWith('args'); expect($window.prettyPrintOne).toHaveBeenCalledWith('arg'); })); });
{ "content_hash": "8b5b94f3719129ec59364c9b8e45e3c5", "timestamp": "", "source": "github", "line_count": 23, "max_line_length": 77, "avg_line_length": 23.565217391304348, "alnum_prop": 0.6678966789667896, "repo_name": "a8m/angular-code-mirror", "id": "73cd0d7d1656d3ab0c3129ff992b5b120fe94573", "size": "542", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "test/spec/prettify.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "2979" }, { "name": "JavaScript", "bytes": "14759" } ] }
<?php /** * This class defines the structure of the 'grupo' table. * * * * This map class is used by Propel to do runtime db structure discovery. * For example, the createSelectSql() method checks the type of a given column used in an * ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive * (i.e. if it's a text column type). * * @package propel.generator.feetcent_feetcenter.map */ class GrupoTableMap extends TableMap { /** * The (dot-path) name of this class */ const CLASS_NAME = 'feetcent_feetcenter.map.GrupoTableMap'; /** * Initialize the table attributes, columns and validators * Relations are not initialized by this method since they are lazy loaded * * @return void * @throws PropelException */ public function initialize() { // attributes $this->setName('grupo'); $this->setPhpName('Grupo'); $this->setClassname('Grupo'); $this->setPackage('feetcent_feetcenter'); $this->setUseIdGenerator(true); // columns $this->addPrimaryKey('idgrupo', 'Idgrupo', 'INTEGER', true, null, null); $this->addColumn('grupo_nombre', 'GrupoNombre', 'VARCHAR', true, 255, null); $this->addColumn('grupo_descripcion', 'GrupoDescripcion', 'VARCHAR', false, 45, null); $this->addColumn('grupo_creadoen', 'GrupoCreadoen', 'TIMESTAMP', false, null, null); // validators } // initialize() /** * Build the RelationMap objects for this table relationships */ public function buildRelations() { $this->addRelation('Grupopaciente', 'Grupopaciente', RelationMap::ONE_TO_MANY, array('idgrupo' => 'idgrupo', ), 'CASCADE', 'CASCADE', 'Grupopacientes'); } // buildRelations() } // GrupoTableMap
{ "content_hash": "dc65b5564d2994fbd9540976cd2be90c", "timestamp": "", "source": "github", "line_count": 56, "max_line_length": 160, "avg_line_length": 32.607142857142854, "alnum_prop": 0.6412924424972618, "repo_name": "dcastanedob/fc", "id": "4a85f05e301cbe70b2f06a5aabd4ce6a19d9a953", "size": "1826", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "module/Propel/build/classes/feetcent_feetcenter/map/GrupoTableMap.php", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "ApacheConf", "bytes": "711" }, { "name": "CSS", "bytes": "377654" }, { "name": "HTML", "bytes": "624249" }, { "name": "JavaScript", "bytes": "2592569" }, { "name": "PHP", "bytes": "14250138" } ] }
define(["jquery", "configuration", "yocto-api", "yocto-temp"], function($, config) { var registerHub = function() { if (yRegisterHub('http://127.0.0.1:4444/') != YAPI_SUCCESS) { alert("Cannot contact VirtualHub on 127.0.0.1"); } else { refresh(); } }; var refresh = function() { var temp, serial = document.getElementById('serial').value; if (serial == '') { temp = yFirstTemperature(); if (temp) { serial = temp.module().get_serialNumber(); document.getElementById('serial').value = serial; } } temp1 = yFindTemperature(serial + ".temperature1"); temp2 = yFindTemperature(serial + ".temperature2"); if (temp1.isOnline()) { var s1 = toFahrenheit(temp1.get_currentValue(), 4); var s2 = toFahrenheit(temp2.get_currentValue(), 4); $('#s1-current').append(s1); $('#s2-current').append(s2); } else { $('#s1-current').append('DCed'); $('#s2-current').append('DCed'); } setTimeout('refresh()', 5000); } return { registerHub : registerHub }; });
{ "content_hash": "3653816e6eb860d0ae6aef688e95e88f", "timestamp": "", "source": "github", "line_count": 41, "max_line_length": 84, "avg_line_length": 24.829268292682926, "alnum_prop": 0.6159135559921415, "repo_name": "gravytrain/automation-interface", "id": "d1c217dc239cb5cc9af3dce64a955aebc0f61797", "size": "1018", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "js/views/temperature-current.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ActionScript", "bytes": "16032" }, { "name": "CSS", "bytes": "125139" }, { "name": "HTML", "bytes": "12017" }, { "name": "JavaScript", "bytes": "612428" }, { "name": "Shell", "bytes": "10462" } ] }
BASE_DIR=/var/www/ # Following folders must be writables by www-data web user # Handle Symfony 3.x directory layout (var/...) and legacy layout (app/...) RW_FOLDERS=(var app/cache app/logs) for dir in "${RW_FOLDERS[@]}"; do if [ -d "$BASE_DIR$dir" ]; then echo "Fix permission for $BASE_DIR$dir" chown -R www-data $BASE_DIR$dir fi done NGINX_CONFIG=symfony3 if [[ "$SYMFONY_VERSION" = "4" ]] then NGINX_CONFIG=symfony4 fi # Avoid to remove a bind mounted nginx config NGINX_DEFAULT=/etc/nginx/sites-enabled/default if ! mountpoint -q $NGINX_DEFAULT; then echo "Using default nginx config : $NGINX_CONFIG" rm $NGINX_DEFAULT ln -s /etc/nginx/sites-available/$NGINX_CONFIG.conf $NGINX_DEFAULT fi # Disable opcache optimisation for developpement # Allow files to be reloaded when update without restarting fpm process if [[ "$PERFORMANCE_OPTIM" = "false" ]] then echo "Disable performance optimisation" echo > /etc/php/7.1/fpm/conf.d/99-symfony.ini fi exec /usr/bin/supervisord -n
{ "content_hash": "7be5bb44b2c00e634a49adea431e5797", "timestamp": "", "source": "github", "line_count": 35, "max_line_length": 75, "avg_line_length": 28.742857142857144, "alnum_prop": 0.7176938369781312, "repo_name": "kitpages/symfony-docker", "id": "25e0403161e33882486712970ab7bf272e3f80a4", "size": "1027", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "7.1/rootfs/entrypoint.sh", "mode": "33261", "license": "mit", "language": [ { "name": "Nginx", "bytes": "584" } ] }
module Gnunet class GnuMessage < GnuBaseMessage def pack self.class.pack_fields(self) end #packages the known fields def self.pack_fields(obj) field_store.map do |field| field.pack(obj.send(field.name)) end.join('') end end end
{ "content_hash": "bfa55fb52584cc0a88ca0c3fe26abf2f", "timestamp": "", "source": "github", "line_count": 16, "max_line_length": 40, "avg_line_length": 17.5, "alnum_prop": 0.6321428571428571, "repo_name": "pschrammel/gnunet", "id": "6e83eed7c31145ab2213f238c1549a9a6908a74e", "size": "280", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/gnunet/gnu_message.rb", "mode": "33188", "license": "mit", "language": [ { "name": "Ruby", "bytes": "6970" } ] }
About the MPF Documentation =========================== If you'd like to help write or improve this documentation (even if it's a simple typo correction), see the :doc:`Contributing to the MPF documentation <contributing_to_mpf_docs>` guide for details. .. toctree:: Authors <authors> License & copyright <license> Help us to write it <help_us_to_write_it>
{ "content_hash": "133eafa52286a33029b22e1fbbf60488", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 106, "avg_line_length": 33.54545454545455, "alnum_prop": 0.6856368563685636, "repo_name": "missionpinball/mpf-docs", "id": "0a108039f7938414f6b5fa006d397b9461aa93ed", "size": "369", "binary": false, "copies": "1", "ref": "refs/heads/dev", "path": "about/index.rst", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "7309" }, { "name": "CSS", "bytes": "786" }, { "name": "JavaScript", "bytes": "310" }, { "name": "Makefile", "bytes": "8216" }, { "name": "Python", "bytes": "90094" } ] }
ο»Ώusing System.Collections.Generic; namespace LocalizationDemo.Models { public class LanguageSwitcherModel { public string Url { get; set; } public IEnumerable<string> Languages { get; set; } public bool RenderForms { get; set; } } }
{ "content_hash": "db969c9a6f9433e1fbb03cd943bc542b", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 52, "avg_line_length": 22, "alnum_prop": 0.7355371900826446, "repo_name": "TBAPI-0KA/LocalizationDemo", "id": "dd238ee2532c1dcbf3e4a0861cb50027181a88a8", "size": "244", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "LocalizationDemo/LocalizationDemo/Models/LanguageSwitcherModel.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "107" }, { "name": "C#", "bytes": "13282" } ] }
The user registry is intended to be a simple manager for a user. The registry does not push directly to Singularity Hub, but gives a management tool and storage strategy to help a user manage images. ## The User Registry Flow 1. the user installs the singularity registry, it doesn't have a uri 2. the user selects a base for storage and recipes 3. the user (still) updates images on Singularity Hub by way of github commits ## Infrastructure This means a few things, in terms of infrastructure: ### Flat and Simple The registry itself, in it's most basic form is some root folder that has a subfolder root for storage, and another subfolder for folders with image recipes. Each subfolder in the recipe base should map to a single Github repo that might be connected to Singularity Hub. The database, since it only needs to serve a single user, is sqlite. A user that wants a more robust setup can choose to use postgres or mysql. ### Controller There is a local client, `sregistry` that takes care of building and managing things. This client takes advantage of many functions provided in `singularity-python`, which already has a singularity client and runs the builder functions on singularity hub. This is the general overview of a registry. Now you should read more detail about the [Registry Flow](registry-flow.md)
{ "content_hash": "65ca521fd1f0b9f4b2cfaf1b860f54a8", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 416, "avg_line_length": 70.10526315789474, "alnum_prop": 0.7882882882882883, "repo_name": "singularityhub/singularity-registry", "id": "1863cb47d82428a2cc5e2843b725b532d386fd68", "size": "1358", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "docs/user/background.md", "mode": "33188", "license": "mit", "language": [ { "name": "Nginx", "bytes": "799" }, { "name": "Python", "bytes": "249" }, { "name": "Shell", "bytes": "83930" } ] }
<!DOCTYPE html> <!-- Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license --> <html> <head> <meta charset="utf-8"> <title>CKEditor Samples</title> <link rel="stylesheet" href="sample.css"> </head> <body> <h1 class="samples"> CKEditor Samples </h1> <div class="warning deprecated"> These samples are not maintained anymore. Check out the <a href="https://sdk.ckeditor.com/">brand new samples in CKEditor SDK</a>. </div> <div class="twoColumns"> <div class="twoColumnsLeft"> <h2 class="samples"> Basic Samples </h2> <dl class="samples"> <dt><a class="samples" href="replacebyclass.html">Replace textarea elements by class name</a></dt> <dd>Automatic replacement of all textarea elements of a given class with a CKEditor instance.</dd> <dt><a class="samples" href="replacebycode.html">Replace textarea elements by code</a></dt> <dd>Replacement of textarea elements with CKEditor instances by using a JavaScript call.</dd> <dt><a class="samples" href="jquery.html">Create editors with jQuery</a></dt> <dd>Creating standard and inline CKEditor instances with jQuery adapter.</dd> </dl> <h2 class="samples"> Basic Customization </h2> <dl class="samples"> <dt><a class="samples" href="uicolor.html">User Interface color</a></dt> <dd>Changing CKEditor User Interface color and adding a toolbar button that lets the user set the UI color.</dd> <dt><a class="samples" href="uilanguages.html">User Interface languages</a></dt> <dd>Changing CKEditor User Interface language and adding a drop-down list that lets the user choose the UI language.</dd> </dl> <h2 class="samples">Plugins</h2> <dl class="samples"> <dt><a class="samples" href="magicline/magicline.html">Magicline plugin</a></dt> <dd>Using the Magicline plugin to access difficult focus spaces.</dd> <dt><a class="samples" href="wysiwygarea/fullpage.html">Full page support</a></dt> <dd>CKEditor inserted with a JavaScript call and used to edit the whole page from &lt;html&gt; to &lt;/html&gt;.</dd> </dl> </div> <div class="twoColumnsRight"> <h2 class="samples"> Inline Editing </h2> <dl class="samples"> <dt><a class="samples" href="inlineall.html">Massive inline editor creation</a></dt> <dd>Turn all elements with <code>contentEditable = true</code> attribute into inline editors.</dd> <dt><a class="samples" href="inlinebycode.html">Convert element into an inline editor by code</a></dt> <dd>Conversion of DOM elements into inline CKEditor instances by using a JavaScript call.</dd> <dt><a class="samples" href="inlinetextarea.html">Replace textarea with inline editor</a> <span class="new">New!</span></dt> <dd>A form with a textarea that is replaced by an inline editor at runtime.</dd> </dl> <h2 class="samples"> Advanced Samples </h2> <dl class="samples"> <dt><a class="samples" href="datafiltering.html">Data filtering and features activation</a> <span class="new">New!</span></dt> <dd>Data filtering and automatic features activation basing on configuration.</dd> <dt><a class="samples" href="divreplace.html">Replace DIV elements on the fly</a></dt> <dd>Transforming a <code>div</code> element into an instance of CKEditor with a mouse click.</dd> <dt><a class="samples" href="appendto.html">Append editor instances</a></dt> <dd>Appending editor instances to existing DOM elements.</dd> <dt><a class="samples" href="ajax.html">Create and destroy editor instances for Ajax applications</a></dt> <dd>Creating and destroying CKEditor instances on the fly and saving the contents entered into the editor window.</dd> <dt><a class="samples" href="api.html">Basic usage of the API</a></dt> <dd>Using the CKEditor JavaScript API to interact with the editor at runtime.</dd> <dt><a class="samples" href="xhtmlstyle.html">XHTML-compliant style</a></dt> <dd>Configuring CKEditor to produce XHTML 1.1 compliant attributes and styles.</dd> <dt><a class="samples" href="readonly.html">Read-only mode</a></dt> <dd>Using the readOnly API to block introducing changes to the editor contents.</dd> <dt><a class="samples" href="tabindex.html">"Tab" key-based navigation</a></dt> <dd>Navigating among editor instances with tab key.</dd> <dt><a class="samples" href="dialog/dialog.html">Using the JavaScript API to customize dialog windows</a></dt> <dd>Using the dialog windows API to customize dialog windows without changing the original editor code.</dd> <dt><a class="samples" href="enterkey/enterkey.html">Using the &quot;Enter&quot; key in CKEditor</a></dt> <dd>Configuring the behavior of <em>Enter</em> and <em>Shift+Enter</em> keys.</dd> <dt><a class="samples" href="htmlwriter/outputforflash.html">Output for Flash</a></dt> <dd>Configuring CKEditor to produce HTML code that can be used with Adobe Flash.</dd> <dt><a class="samples" href="htmlwriter/outputhtml.html">Output HTML</a></dt> <dd>Configuring CKEditor to produce legacy HTML 4 code.</dd> <dt><a class="samples" href="toolbar/toolbar.html">Toolbar Configurations</a></dt> <dd>Configuring CKEditor to display full or custom toolbar layout.</dd> </dl> </div> </div> <div id="footer"> <hr> <p> CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a> </p> <p id="copy"> Copyright &copy; 2003-2019, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p> </div> </body> </html>
{ "content_hash": "b22822e15535973194dd537fe09c18dc", "timestamp": "", "source": "github", "line_count": 131, "max_line_length": 133, "avg_line_length": 44.13740458015267, "alnum_prop": 0.6886890349360083, "repo_name": "otto-torino/gino", "id": "39cd14f1ad108694941ee31504c7bbf8a6a31921", "size": "5782", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "ckeditor/samples/old/index.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "224608" }, { "name": "HTML", "bytes": "593080" }, { "name": "Hack", "bytes": "1124" }, { "name": "JavaScript", "bytes": "5477001" }, { "name": "PHP", "bytes": "2662392" }, { "name": "Smarty", "bytes": "954" }, { "name": "TSQL", "bytes": "62131" } ] }
<?xml version="1.0" encoding="utf-8"?> <extension type="module" version="3.1" client="administrator" method="upgrade"> <name>mod_quickicon</name> <author>Joomla! Project</author> <creationDate>Nov 2005</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</copyright> <license>GNU General Public License version 2 or later; see LICENSE.txt</license> <authorEmail>admin@joomla.org</authorEmail> <authorUrl>www.joomla.org</authorUrl> <version>3.0.0</version> <description>MOD_QUICKICON_XML_DESCRIPTION</description> <files> <filename module="mod_quickicon">mod_quickicon.php</filename> <folder>tmpl</folder> <filename>helper.php</filename> </files> <languages> <language tag="en-GB">en-GB.mod_quickicon.ini</language> <language tag="en-GB">en-GB.mod_quickicon.sys.ini</language> </languages> <help key="JHELP_EXTENSIONS_MODULE_MANAGER_ADMIN_QUICKICON" /> <config> <fields name="params"> <fieldset name="basic"> <field name="context" type="text" label="MOD_QUICKICON_GROUP_LABEL" description="MOD_QUICKICON_GROUP_DESC" default="mod_quickicon" /> </fieldset> <fieldset name="advanced"> <field name="layout" type="modulelayout" label="JFIELD_ALT_LAYOUT_LABEL" description="JFIELD_ALT_MODULE_LAYOUT_DESC" /> <field name="moduleclass_sfx" type="textarea" label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL" description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC" rows="3" /> <field name="cache" type="list" label="COM_MODULES_FIELD_CACHING_LABEL" description="COM_MODULES_FIELD_CACHING_DESC" default="1" > <option value="1">JGLOBAL_USE_GLOBAL</option> <option value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option> </field> <field name="cache_time" type="text" label="COM_MODULES_FIELD_CACHE_TIME_LABEL" description="COM_MODULES_FIELD_CACHE_TIME_DESC" default="900" /> </fieldset> </fields> </config> </extension>
{ "content_hash": "24155acfc562a4c1bba3ee4ab009da26", "timestamp": "", "source": "github", "line_count": 70, "max_line_length": 91, "avg_line_length": 29.485714285714284, "alnum_prop": 0.6719961240310077, "repo_name": "yavish/joomla-mobile-age", "id": "096ac7ccbe0e2da9bd97fbf66f80662bf3666827", "size": "2064", "binary": false, "copies": "30", "ref": "refs/heads/master", "path": "administrator/modules/mod_quickicon/mod_quickicon.xml", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "1630839" }, { "name": "HTML", "bytes": "4116" }, { "name": "JavaScript", "bytes": "2154893" }, { "name": "PHP", "bytes": "13231409" }, { "name": "PLpgSQL", "bytes": "40755" }, { "name": "SQLPL", "bytes": "18611" } ] }
ο»Ώ//Copyright (C) Microsoft Corporation. All rights reserved. // conversion.cs using System; struct RomanNumeral { public RomanNumeral(int value) { this.value = value; } // Declare a conversion from an int to a RomanNumeral. Note the // the use of the operator keyword. This is a conversion // operator named RomanNumeral: static public implicit operator RomanNumeral(int value) { // Note that because RomanNumeral is declared as a struct, // calling new on the struct merely calls the constructor // rather than allocating an object on the heap: return new RomanNumeral(value); } // Declare an explicit conversion from a RomanNumeral to an int: static public explicit operator int(RomanNumeral roman) { return roman.value; } // Declare an implicit conversion from a RomanNumeral to // a string: static public implicit operator string(RomanNumeral roman) { return("Conversion not yet implemented"); } private int value; } class Test { static public void Main() { RomanNumeral numeral; numeral = 10; // Call the explicit conversion from numeral to int. Because it is // an explicit conversion, a cast must be used: Console.WriteLine((int)numeral); // Call the implicit conversion to string. Because there is no // cast, the implicit conversion to string is the only // conversion that is considered: Console.WriteLine(numeral); // Call the explicit conversion from numeral to int and // then the explicit conversion from int to short: short s = (short)numeral; Console.WriteLine(s); } }
{ "content_hash": "cfd61b1f49a01595ba6390955b35aad5", "timestamp": "", "source": "github", "line_count": 60, "max_line_length": 68, "avg_line_length": 28.166666666666668, "alnum_prop": 0.6763313609467455, "repo_name": "SiddharthMishraPersonal/StudyMaterials", "id": "1a1e60a42135f20b086e51a98a64afd126bd3ce4", "size": "1692", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "Linq/CSharpSamples/LanguageSamples/UserConversions/Conversion1/conversion.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "1" }, { "name": "C#", "bytes": "1963252" }, { "name": "C++", "bytes": "7401" }, { "name": "CSS", "bytes": "31609" }, { "name": "Java", "bytes": "14635" }, { "name": "Objective-C", "bytes": "368454" } ] }
class PointwiseInfo; class PointwiseIO { public: virtual ~PointwiseIO() {}; // before time loop virtual void initialize(int totalRecordSteps, int bufferSize, const std::string &components, const std::vector<PointwiseInfo> &receivers, double srcLat, double srcLon, double srcDep) = 0; // after time loop virtual void finalize() = 0; // dump to user-specified format virtual void dumpToFile(const RMatXX_RM &bufferDisp, const RMatXX_RM &bufferStrain, const RMatXX_RM &bufferCurl, const RDColX &bufferTime, int bufferLine) = 0; };
{ "content_hash": "0afc74de76daa2942537b9652c2586e5", "timestamp": "", "source": "github", "line_count": 21, "max_line_length": 83, "avg_line_length": 29.38095238095238, "alnum_prop": 0.6596434359805511, "repo_name": "kuangdai/AxiSEM3D", "id": "051c90b499aabb1e5e15d2bf5b7adf5e2dfbbd8b", "size": "776", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "SOLVER/src/core/output/pointwise/PointwiseIO.h", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "915" }, { "name": "C++", "bytes": "864348" }, { "name": "CMake", "bytes": "19010" }, { "name": "Fortran", "bytes": "53571" }, { "name": "Nu", "bytes": "5938" }, { "name": "Python", "bytes": "66727" }, { "name": "Shell", "bytes": "3380" } ] }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.9.1"/> <title>V8 API Reference Guide for node.js v0.10.22 - v0.10.23: v8::Isolate::Scope Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { init_search(); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">V8 API Reference Guide for node.js v0.10.22 - v0.10.23 </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.9.1 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class&#160;List</span></a></li> <li><a href="classes.html"><span>Class&#160;Index</span></a></li> <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&#160;Members</span></a></li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespacev8.html">v8</a></li><li class="navelem"><a class="el" href="classv8_1_1_isolate.html">Isolate</a></li><li class="navelem"><a class="el" href="classv8_1_1_isolate_1_1_scope.html">Scope</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> &#124; <a href="classv8_1_1_isolate_1_1_scope-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">v8::Isolate::Scope Class Reference</div> </div> </div><!--header--> <div class="contents"> <p><code>#include &lt;<a class="el" href="v8_8h_source.html">v8.h</a>&gt;</code></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a43889336478a5625e095c4444b9dd684"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a43889336478a5625e095c4444b9dd684"></a> &#160;</td><td class="memItemRight" valign="bottom"><b>Scope</b> (<a class="el" href="classv8_1_1_isolate.html">Isolate</a> *isolate)</td></tr> <tr class="separator:a43889336478a5625e095c4444b9dd684"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Stack-allocated class which sets the isolate for all operations executed within a local scope. </p> </div><hr/>The documentation for this class was generated from the following file:<ul> <li>deps/v8/include/<a class="el" href="v8_8h_source.html">v8.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Tue Aug 11 2015 23:45:06 for V8 API Reference Guide for node.js v0.10.22 - v0.10.23 by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.9.1 </small></address> </body> </html>
{ "content_hash": "5e773679deaae5f02eadcf6a5f4b4ba2", "timestamp": "", "source": "github", "line_count": 120, "max_line_length": 248, "avg_line_length": 46.93333333333333, "alnum_prop": 0.6560724431818182, "repo_name": "v8-dox/v8-dox.github.io", "id": "a4037869f5e6eccf32098205d345bc9ee98d0ec2", "size": "5632", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "007393a/html/classv8_1_1_isolate_1_1_scope.html", "mode": "33188", "license": "mit", "language": [] }
param( [Parameter()] [string]$PackageIdentifier = $(throw "Usage: test.ps1 [test_pkg_ident] e.g. test.ps1 ci/user-windows-default/1.0.0/20190812103929") ) $PackageVersion = $PackageIdentifier.split('/')[2] Describe "chef-infra-client" { Context "chef-client" { It "is an executable" { hab pkg exec $PackageIdentifier chef-client.bat --version $? | Should be $true } It "is the expected version" { $the_version = (hab pkg exec $PackageIdentifier chef-client.bat --version | Out-String).split(':')[1].Trim() $the_version | Should be $PackageVersion } } Context "ohai" { It "is an executable" { hab pkg exec $PackageIdentifier ohai.bat --version $? | Should be $true } } Context "chef-shell" { It "is an executable" { hab pkg exec $PackageIdentifier chef-shell.bat --version $? | Should be $true } } Context "chef-apply" { It "is an executable" { hab pkg exec $PackageIdentifier chef-apply.bat --version $? | Should be $true } } Context "knife" { It "is an executable" { hab pkg exec $PackageIdentifier knife.bat --version $? | Should be $true } } Context "chef-solo" { It "is an executable" { hab pkg exec $PackageIdentifier chef-solo.bat --version $? | Should be $true } } }
{ "content_hash": "8ff20c0d0a3ce996f28955f951d97e9f", "timestamp": "", "source": "github", "line_count": 55, "max_line_length": 135, "avg_line_length": 27.581818181818182, "alnum_prop": 0.5431773236651285, "repo_name": "jaymzh/chef", "id": "a5f665c9de410488bedc2db689c33fa5849b217a", "size": "1517", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "habitat/tests/test.pester.ps1", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Dockerfile", "bytes": "1587" }, { "name": "HTML", "bytes": "66074" }, { "name": "Makefile", "bytes": "1326" }, { "name": "PowerShell", "bytes": "20631" }, { "name": "Python", "bytes": "56589" }, { "name": "Raku", "bytes": "64" }, { "name": "Ruby", "bytes": "10120336" }, { "name": "Shell", "bytes": "29546" } ] }
<?php namespace WebFW\Core\Classes\HTML; use WebFW\Core\Classes\HTML\Base\SimpleFormItem; class Input extends SimpleFormItem { const INPUT_TEXT = 'text'; const INPUT_PASSWORD = 'password'; const INPUT_EMAIL = 'email'; const INPUT_RADIO = 'radio'; const INPUT_CHECKBOX = 'checkbox'; const INPUT_HIDDEN = 'hidden'; const INPUT_FILE = 'file'; const INPUT_TEL = 'tel'; protected $tagName = 'input'; protected $hasClosingTag = false; protected $type = null; public function __construct($name = null, $type = null, $value = null) { $this->setType($type); parent::__construct(static::TYPE_INPUT, $name, $value); } public function setValue($value) { if ($this->type !== static::INPUT_CHECKBOX) { parent::setValue($value); } } public function setType($type) { $this->type = $type; $this->setAttribute('type', $type); if ($type === static::INPUT_CHECKBOX) { parent::setValue('1'); } } public function setChecked() { if ($this->type === static::INPUT_CHECKBOX || $this->type === static::INPUT_RADIO) { $this->setAttribute('checked', 'checked'); } } public function getType() { return $this->type; } }
{ "content_hash": "84e806c7403110da4bb4860d2a720ae1", "timestamp": "", "source": "github", "line_count": 56, "max_line_length": 92, "avg_line_length": 23.714285714285715, "alnum_prop": 0.5685240963855421, "repo_name": "mvodanovic/WebFW", "id": "e75ab4927c9e01c925aac2795e17f3d2f2bd2ed5", "size": "1328", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "core/classes/html/input.class.php", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "27128" }, { "name": "JavaScript", "bytes": "25665" }, { "name": "PHP", "bytes": "516741" } ] }
<section class="empresa my-content"> <div class="myContainer"> <h1>Sobre a Empresa</h1> <div class="texto"> <p> A Gerensys AutomaΓ§Γ£o Comercial Limitada, foi fundada em MarΓ§o de 1996, com a MissΓ£o de disponibilizar Γ s micro e pequenas empresas, um sotware de automaΓ§Γ£o comercial, de fΓ‘cil operaΓ§Γ£o, completo nas rotinas comerciais, com baixo custo e totalmente parametrizΓ‘vel para atender a demanda de seus usuarios. </p> <p> Para tanto, a sua VisΓ£o Γ© ser empresa de referΓͺncia, reconhecida como a melhor opΓ§Γ£o por clientes, colaboradores e fornecedores, pela qualidade de seus produtos, serviΓ§os e relacionamento. </p> <p> E tem como Valores primordiais, a integridade, o compremetimento, a competΓͺncia, a inovaΓ§Γ£o e a sustentabilidade. </p> </div> <div class="img-teste"> Imagem Empresa </div> </div> </section>
{ "content_hash": "c8fc6a725ea8df3006118f64d0b1a98a", "timestamp": "", "source": "github", "line_count": 32, "max_line_length": 121, "avg_line_length": 35.28125, "alnum_prop": 0.5553587245349867, "repo_name": "andrebonetti/Gerensys_LojaVirtual", "id": "780c52fd6de4f3a4e67ee6f9cd53f9dc37689cc2", "size": "1149", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "application/views/empresa.php", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "151" }, { "name": "CSS", "bytes": "65556" }, { "name": "HTML", "bytes": "5905" }, { "name": "JavaScript", "bytes": "575030" }, { "name": "PHP", "bytes": "5890161" } ] }
#include <windows.h> #include "NP100_APDU.h" #define NFC_F_MAX_BLOCK_CNT 16 #define NFC_F_MAX_NODES 20 #define NFC_F_BLOCK_SIZE 16 NP100_APDU::NP100_APDU(PcscAccessLib* pLib) : m_pLib(pLib) { this->m_pLib->connect(); } NP100_APDU::~NP100_APDU(void) { this->m_pLib->disconnect(); } void NP100_APDU::selectFile(unsigned char ucP1, unsigned char ucP2, unsigned char ucLen, unsigned char* pData) { if (ucLen > NFC_F_MAX_NODES * 2) { throw NP100_APDU_ACCESS_FAILED; } unsigned char aCommand[5 + NFC_F_MAX_NODES * 2] = {0xff, 0xa4}; unsigned char* p = aCommand + 2; *p++ = ucP1; *p++ = ucP2; *p++ = ucLen; memcpy_s(p, sizeof(aCommand) - (p - aCommand), pData, ucLen); p += ucLen; unsigned short usLenCommand = static_cast<unsigned short>(p - aCommand); unsigned char aResponse[2]; unsigned short usLenResponse = sizeof(aResponse); this->m_pLib->transmit(aCommand, usLenCommand, aResponse, &usLenResponse); if (aResponse[0] != 0x90 || aResponse[1] != 0x00) { throw NP100_APDU_ACCESS_FAILED; } } void NP100_APDU::readBinary(unsigned char ucP1, unsigned char ucP2, unsigned char ucParamLen, unsigned char* pParam, unsigned char ucDataLen, unsigned char* pData) { unsigned char aCommand[6 + NFC_F_MAX_BLOCK_CNT * 2] = {0xff, 0xb0}; unsigned char* p = aCommand + 2; *p++ = ucP1; *p++ = ucP2; if (ucParamLen != 0) { *p++ = ucParamLen; memcpy_s(p, sizeof(aCommand) - (p - aCommand), pParam, ucParamLen); p += ucParamLen; } *p++ = ucDataLen; unsigned short usLenCommand = static_cast<unsigned short>(p - aCommand); unsigned char aResponse[NFC_F_MAX_BLOCK_CNT * NFC_F_BLOCK_SIZE + 2]; unsigned short usLenResponse = sizeof(aResponse); this->m_pLib->transmit(aCommand, usLenCommand, aResponse, &usLenResponse); if (aResponse[usLenResponse - 2] != 0x90 || aResponse[usLenResponse - 1] != 0x00) { throw NP100_APDU_ACCESS_FAILED; } memcpy_s(pData, ucDataLen, aResponse, usLenResponse - 2); } void NP100_APDU::updateBinary(unsigned char ucP1, unsigned char ucP2, unsigned char ucDataLen, unsigned char* pData) { unsigned char aCommand[5 + NFC_F_BLOCK_SIZE * NFC_F_MAX_BLOCK_CNT] = {0xff, 0xd6}; unsigned char* p = aCommand + 2; *p++ = ucP1; *p++ = ucP2; *p++ = ucDataLen; memcpy_s(p, sizeof(aCommand) - (p - aCommand), pData, ucDataLen); p += ucDataLen; unsigned short usLenCommand = static_cast<unsigned short>(p - aCommand); unsigned char aResponse[2]; unsigned short usLenResponse = sizeof(aResponse); this->m_pLib->transmit(aCommand, usLenCommand, aResponse, &usLenResponse); if (aResponse[0] != 0x90 || aResponse[1] != 0x00) { throw NP100_APDU_ACCESS_FAILED; } }
{ "content_hash": "0311f1cf0b02dfe200359890a12d929a", "timestamp": "", "source": "github", "line_count": 80, "max_line_length": 163, "avg_line_length": 32.6875, "alnum_prop": 0.6933078393881453, "repo_name": "kobake/FelicaReader", "id": "818e5f2a6b33e20694b688cf10ae92c2728d1366", "size": "2656", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/sdk4nfc_starter201J/sample/NFC_and_PCSC/nfc_library_samples/NDEFTag/src/Common/NP100_APDU.cpp", "mode": "33188", "license": "mit", "language": [ { "name": "ActionScript", "bytes": "1386" }, { "name": "C", "bytes": "35733" }, { "name": "C#", "bytes": "16154" }, { "name": "C++", "bytes": "175627" }, { "name": "CSS", "bytes": "13544" }, { "name": "JavaScript", "bytes": "239626" }, { "name": "Shell", "bytes": "2317" }, { "name": "Visual Basic", "bytes": "15329" } ] }
<!DOCTYPE HTML> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (11.0.13) on Thu Nov 10 19:11:29 EET 2022 --> <title>Uses of Class com.erudika.para.server.security.SimpleAuthenticationFailureHandler (para-server 1.47.2 API)</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="dc.created" content="2022-11-10"> <link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../../jquery/jquery-ui.css" title="Style"> <script type="text/javascript" src="../../../../../../../script.js"></script> <script type="text/javascript" src="../../../../../../../jquery/jszip/dist/jszip.min.js"></script> <script type="text/javascript" src="../../../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> <!--[if IE]> <script type="text/javascript" src="../../../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> <![endif]--> <script type="text/javascript" src="../../../../../../../jquery/jquery-3.5.1.js"></script> <script type="text/javascript" src="../../../../../../../jquery/jquery-ui.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class com.erudika.para.server.security.SimpleAuthenticationFailureHandler (para-server 1.47.2 API)"; } } catch(err) { } //--> var pathtoroot = "../../../../../../../"; var useModuleDirectories = true; loadScripts(document, 'script');</script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <header role="banner"> <nav role="navigation"> <div class="fixedNav"> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a id="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a id="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../module-summary.html">Module</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../SimpleAuthenticationFailureHandler.html" title="class in com.erudika.para.server.security">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../../../allclasses.html">All&nbsp;Classes</a></li> </ul> <ul class="navListSearch"> <li><label for="search">SEARCH:</label> <input type="text" id="search" value="search" disabled="disabled"> <input type="reset" id="reset" value="reset" disabled="disabled"> </li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> </div> <a id="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> </div> <div class="navPadding">&nbsp;</div> <script type="text/javascript"><!-- $('.navPadding').css('padding-top', $('.fixedNav').css("height")); //--> </script> </nav> </header> <main role="main"> <div class="header"> <h2 title="Uses of Class com.erudika.para.server.security.SimpleAuthenticationFailureHandler" class="title">Uses of Class<br>com.erudika.para.server.security.SimpleAuthenticationFailureHandler</h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary"> <caption><span>Packages that use <a href="../SimpleAuthenticationFailureHandler.html" title="class in com.erudika.para.server.security">SimpleAuthenticationFailureHandler</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <th class="colFirst" scope="row"><a href="#com.erudika.para.server.security">com.erudika.para.server.security</a></th> <td class="colLast"> <div class="block">The security module - handles authentication.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"> <section role="region"><a id="com.erudika.para.server.security"> <!-- --> </a> <h3>Uses of <a href="../SimpleAuthenticationFailureHandler.html" title="class in com.erudika.para.server.security">SimpleAuthenticationFailureHandler</a> in <a href="../package-summary.html">com.erudika.para.server.security</a></h3> <table class="useSummary"> <caption><span>Methods in <a href="../package-summary.html">com.erudika.para.server.security</a> that return <a href="../SimpleAuthenticationFailureHandler.html" title="class in com.erudika.para.server.security">SimpleAuthenticationFailureHandler</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colSecond" scope="col">Method</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../SimpleAuthenticationFailureHandler.html" title="class in com.erudika.para.server.security">SimpleAuthenticationFailureHandler</a></code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">SecurityModule.</span><code><span class="memberNameLink"><a href="../SecurityModule.html#getFailureHandler()">getFailureHandler</a></span>()</code></th> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> <table class="useSummary"> <caption><span>Methods in <a href="../package-summary.html">com.erudika.para.server.security</a> with parameters of type <a href="../SimpleAuthenticationFailureHandler.html" title="class in com.erudika.para.server.security">SimpleAuthenticationFailureHandler</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colSecond" scope="col">Method</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <th class="colSecond" scope="row"><span class="typeNameLabel">SecurityModule.</span><code><span class="memberNameLink"><a href="../SecurityModule.html#setFailureHandler(com.erudika.para.server.security.SimpleAuthenticationFailureHandler)">setFailureHandler</a></span>&#8203;(<a href="../SimpleAuthenticationFailureHandler.html" title="class in com.erudika.para.server.security">SimpleAuthenticationFailureHandler</a>&nbsp;failureHandler)</code></th> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </section> </li> </ul> </li> </ul> </div> </main> <footer role="contentinfo"> <nav role="navigation"> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a id="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a id="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../module-summary.html">Module</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../SimpleAuthenticationFailureHandler.html" title="class in com.erudika.para.server.security">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../../../allclasses.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> </div> <a id="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </nav> <p class="legalCopy"><small>Copyright &#169; 2022 <a href="https://erudika.com">Erudika</a>. All rights reserved.</small></p> </footer> </body> </html>
{ "content_hash": "d8138af03fe787e55d816bc4f7eb97da", "timestamp": "", "source": "github", "line_count": 210, "max_line_length": 449, "avg_line_length": 41.27619047619048, "alnum_prop": 0.6589755422242732, "repo_name": "Erudika/paraio.org", "id": "c97b8608385e11755951fbee417f89e357f06372", "size": "8668", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "docs/javadocs-server/com.erudika.para.server/com/erudika/para/server/security/class-use/SimpleAuthenticationFailureHandler.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "12394" }, { "name": "HTML", "bytes": "17932" }, { "name": "JavaScript", "bytes": "7341" }, { "name": "Shell", "bytes": "845" } ] }
export class Host { } // @Filename: consumer.ts // @module: amd import host = require("host"); var hostVar = host; var v = new hostVar.Host();
{ "content_hash": "ebffbb9868fe26c2ec0612aacd6924cc", "timestamp": "", "source": "github", "line_count": 9, "max_line_length": 30, "avg_line_length": 16.22222222222222, "alnum_prop": 0.6506849315068494, "repo_name": "freedot/tstolua", "id": "84ff8e15a4873ccd3b165d832e97b4cfde233432", "size": "168", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "tests/cases/compiler/import_var-referencing-an-imported-module-alias.ts", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "1125" }, { "name": "HTML", "bytes": "4659" }, { "name": "JavaScript", "bytes": "85" }, { "name": "Lua", "bytes": "68588" }, { "name": "PowerShell", "bytes": "2780" }, { "name": "TypeScript", "bytes": "22883724" } ] }
* Minimal Viable Product Released * Platform Support (iOS, Android, UWP) * Tab Header View Customization * Right and Left Arrow Support * Arrow View Customization * Navigation via Tab Select or Arrow
{ "content_hash": "595fafb429242cdedc2ad27581d263cd", "timestamp": "", "source": "github", "line_count": 6, "max_line_length": 38, "avg_line_length": 33.333333333333336, "alnum_prop": 0.785, "repo_name": "ahoefling/TabStrip", "id": "6a2df39f5192c41e5db1a5a1abc12f07d906a3a1", "size": "223", "binary": false, "copies": "1", "ref": "refs/heads/dependabot/nuget/Sample/TabStrip.Sample.UWP/Microsoft.NETCore.UniversalWindowsPlatform-6.0.6", "path": "CHANGELOG.md", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "15570" }, { "name": "PowerShell", "bytes": "8167" }, { "name": "Shell", "bytes": "3186" } ] }
DOUBTFUL #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
{ "content_hash": "d744a72bae291c1fa622b56529fc9071", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 10.307692307692308, "alnum_prop": 0.6940298507462687, "repo_name": "mdoering/backbone", "id": "33f1f4870be959e25f8bc50401b0ce8695546e16", "size": "203", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Rosales/Rosaceae/Rosa/Rosa hispanica/Rosa hispanica nevadensis/README.md", "mode": "33188", "license": "apache-2.0", "language": [] }
import { Client } from "../../client/modules/module_interface.ts"; import { ModuleWS } from "../../lib/websocket.ts"; export function load(network: ModuleWS) { // This is a no-op module that shows what is leaking in the framework when we // switch modules. class MemoryDebugClient extends Client { thing = 0; constructor() { super(); // TODO(applmak): Send something this message, maybe? const memoryDebugHandler = () => { this.thing = this.thing + 1; }; network.on("_memory_debug", memoryDebugHandler); } willBeShownSoon(container: HTMLElement) { container.style.backgroundColor = "black"; } } return { client: MemoryDebugClient }; } declare global { interface EmittedEvents { _memory_debug(): void; } }
{ "content_hash": "4d915ec8e5143db33468d7f4de7959a4", "timestamp": "", "source": "github", "line_count": 32, "max_line_length": 79, "avg_line_length": 24.78125, "alnum_prop": 0.6406052963430012, "repo_name": "google/chicago-brick", "id": "b1fec73bb0436611489fcd37a7cb83fbdb640a79", "size": "1449", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "demo_modules/operational_tests/memory_debug.ts", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "2833" }, { "name": "GLSL", "bytes": "7967" }, { "name": "HTML", "bytes": "10998" }, { "name": "JavaScript", "bytes": "61050" }, { "name": "SCSS", "bytes": "1292" }, { "name": "Shell", "bytes": "12545" }, { "name": "TypeScript", "bytes": "570980" } ] }
/** * -------------------------------------------------------------------------- * Bootstrap (v5.0.0-beta2): index.esm.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ import Alert from './src/alert' import Button from './src/button' import Carousel from './src/carousel' import Collapse from './src/collapse' import Dropdown from './src/dropdown' import Modal from './src/modal' import OffCanvas from './src/offcanvas' import Popover from './src/popover' import ScrollSpy from './src/scrollspy' import Tab from './src/tab' import Toast from './src/toast' import Tooltip from './src/tooltip' export { Alert, Button, Carousel, Collapse, Dropdown, Modal, OffCanvas, Popover, ScrollSpy, Tab, Toast, Tooltip }
{ "content_hash": "3ac8ba3facf1ab1bc21cedcba2c03e0e", "timestamp": "", "source": "github", "line_count": 34, "max_line_length": 77, "avg_line_length": 24.88235294117647, "alnum_prop": 0.5768321513002365, "repo_name": "GerHobbelt/bootstrap", "id": "c041beffe25555e915acb62d8e652413ddb06992", "size": "846", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "js/index.esm.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "217829" }, { "name": "HTML", "bytes": "491372" }, { "name": "JavaScript", "bytes": "690450" }, { "name": "PowerShell", "bytes": "1040" }, { "name": "SCSS", "bytes": "261680" }, { "name": "Shell", "bytes": "2057" } ] }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>relation-extraction: 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.10.0 / relation-extraction - 8.7.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">Β« Up</a> <h1> relation-extraction <small> 8.7.0 <span class="label label-info">Not compatible</span> </small> </h1> <p><em><script>document.write(moment("2020-02-26 23:22:14 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-02-26 23:22:14 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-m4 1 Virtual package relying on m4 coq 8.10.0 Formal proof management system num 1.3 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.09.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.09.0 Official release 4.09.0 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.8.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/relation-extraction&quot; license: &quot;Unknown&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/RelationExtraction&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.7&quot; &amp; &lt; &quot;8.8~&quot;} ] tags: [ &quot;keyword: extraction&quot; &quot;keyword: inductive relations&quot; &quot;keyword: semantics&quot; &quot;category: Computer Science/Semantics and Compilation/Compilation&quot; &quot;date: 2011&quot; ] authors: [ &quot;Catherine Dubois, David Delahaye, Pierre-Nicolas Tollitte&quot; ] bug-reports: &quot;https://github.com/coq-contribs/relation-extraction/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/relation-extraction.git&quot; synopsis: &quot;Functions extraction from inductive relations&quot; description: &quot;&quot;&quot; This plugin introduces a new set of extraction commands that generates functional code form inductive specifications.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/relation-extraction/archive/v8.7.0.tar.gz&quot; checksum: &quot;md5=22a5f2af8245462e66f2276db81b9cee&quot; } </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-relation-extraction.8.7.0 coq.8.10.0</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.10.0). The following dependencies couldn&#39;t be met: - coq-relation-extraction -&gt; coq &lt; 8.8~ -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;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-relation-extraction.8.7.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"> <small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. Β© Guillaume Claret.</small> </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>
{ "content_hash": "791e89938124fb4bcaa7cd4fe46e911d", "timestamp": "", "source": "github", "line_count": 166, "max_line_length": 213, "avg_line_length": 42.74096385542169, "alnum_prop": 0.5541930937279774, "repo_name": "coq-bench/coq-bench.github.io", "id": "fc6ebb98a4e91a5782e5a5c97e8b7c688091403d", "size": "7097", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "clean/Linux-x86_64-4.09.0-2.0.5/released/8.10.0/relation-extraction/8.7.0.html", "mode": "33188", "license": "mit", "language": [] }
<?xml version="1.0"?> <!-- The MIT License (MIT) Copyright (c) 2014, Groupon, Inc. 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. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.jenkins-ci.plugins</groupId> <artifactId>plugin</artifactId> <version>1.502</version> <!-- which version of Jenkins is this plugin built against? --> </parent> <groupId>com.groupon.jenkins-ci.plugins</groupId> <artifactId>DotCi</artifactId> <version>1.0.3-SNAPSHOT</version> <packaging>hpi</packaging> <licenses> <license> <name>MIT License</name> <url>http://opensource.org/licenses/MIT</url> </license> </licenses> <description> Github integration, build management through .ci.yml, environment management thought docker. </description> <url>https://github.com/groupon/DotCi</url> <scm> <connection>scm:git:ssh://github.com/groupon/DotCi.git</connection> <developerConnection>scm:git:ssh://git@github.com/groupon/DotCi.git</developerConnection> <url>https://github.com/groupon/DotCi</url> </scm> <repositories> <repository> <id>repo.jenkins-ci.org</id> <url>http://repo.jenkins-ci.org/public/</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>repo.jenkins-ci.org</id> <url>http://repo.jenkins-ci.org/public/</url> </pluginRepository> </pluginRepositories> <properties> <checkstyle.version>2.9.1</checkstyle.version> <cobertura.version>2.5.2</cobertura.version> <powermock.version> 1.5</powermock.version> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkMode>once</forkMode> <argLine>-Xms512m -Xmx512m -XX:-UseSplitVerifier</argLine> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>buildnumber-maven-plugin</artifactId> <version>1.1</version> <executions> <execution> <phase>validate</phase> <goals> <goal>create</goal> </goals> </execution> </executions> <configuration> <format>{0,date,yyyy.MM.dd_HH.mm}</format> <items> <item>timestamp</item> </items> <doCheck>false</doCheck> <doUpdate>false</doUpdate> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>${checkstyle.version}</version> <executions> <execution> <id>checkstyle-check</id> <phase>verify</phase> <goals> <goal>checkstyle</goal> <goal>checkstyle-aggregate</goal> <goal>check</goal> </goals> <configuration> <consoleOutput>true</consoleOutput> <logViolationsToConsole>true</logViolationsToConsole> <failOnViolation>false</failOnViolation> <maxAllowedViolations>10</maxAllowedViolations> <configLocation>${project.basedir}/resources/checkstyle.xml</configLocation> <includeTestSourceDirectory>true</includeTestSourceDirectory> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>${cobertura.version}</version> <executions> <execution> <id>cobertura-check</id> <phase>verify</phase> <goals> <goal>clean</goal> <goal>cobertura</goal> <goal>check</goal> </goals> <configuration> <aggregate>true</aggregate> <formats> <format>html</format> <format>xml</format> </formats> <check> <branchRate>0</branchRate> <lineRate>0</lineRate> <totalBranchRate>0</totalBranchRate> <totalLineRate>0</totalLineRate> <packageLineRate>0</packageLineRate> <packageBranchRate>0</packageBranchRate> </check> </configuration> </execution> </executions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.jenkins-ci.plugins</groupId> <artifactId>github-oauth</artifactId> <version>0.14</version> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.1</version> </dependency> <dependency> <groupId>org.mongodb</groupId> <artifactId>mongo-java-driver</artifactId> <version>2.10.1</version> </dependency> <dependency> <groupId>org.yaml</groupId> <artifactId>snakeyaml</artifactId> <version>1.11</version> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>1.9.5</version> <scope>test</scope> </dependency> <dependency> <groupId>org.powermock</groupId> <artifactId>powermock-api-mockito</artifactId> <version>${powermock.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> </dependencies> </project>
{ "content_hash": "89982af4ea4f9d8fa009dc451171bb99", "timestamp": "", "source": "github", "line_count": 207, "max_line_length": 201, "avg_line_length": 32.111111111111114, "alnum_prop": 0.680306905370844, "repo_name": "jenkinsci/DotCi", "id": "841244f2f1c69f7c3b2ad0b1203556da72bf02e9", "size": "6647", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "pom.xml", "mode": "33188", "license": "mit", "language": [ { "name": "Groovy", "bytes": "1508" }, { "name": "Java", "bytes": "488176" } ] }
<html> <head> <title>User agent detail - Mozilla/5.0 (Linux; U; Android 4.0.4; de-de; K-Touch W700+ Build/IMM76I) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> </head> <body> <div class="container"> <div class="section"> <h1 class="header center orange-text">User agent detail</h1> <div class="row center"> <h5 class="header light"> Mozilla/5.0 (Linux; U; Android 4.0.4; de-de; K-Touch W700+ Build/IMM76I) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 </h5> </div> </div> <div class="section"> <table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Source result (test suite)</th></tr><tr><td>ua-parser/uap-core<br /><small>vendor/thadafinser/uap-core/tests/test_device.yaml</small></td><td> </td><td> </td><td> </td><td style="border-left: 1px solid #555">Ktouch</td><td>W700+</td><td></td><td></td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td></td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-test">Detail</a> <!-- Modal Structure --> <div id="modal-test" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Testsuite result detail</h4> <p><pre><code class="php">Array ( [user_agent_string] => Mozilla/5.0 (Linux; U; Android 4.0.4; de-de; K-Touch W700+ Build/IMM76I) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 [family] => K-Touch W700+ [brand] => Ktouch [model] => W700+ ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapPhp<br /><small>6012</small></td><td>Android 4.0</td><td>WebKit </td><td>Android 4.0</td><td style="border-left: 1px solid #555"></td><td></td><td>Mobile Phone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.13301</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-215ac98d-ccf8-4615-916e-5a819d6a59c9">Detail</a> <!-- Modal Structure --> <div id="modal-215ac98d-ccf8-4615-916e-5a819d6a59c9" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>BrowscapPhp result detail</h4> <p><pre><code class="php">stdClass Object ( [browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.4\.0.* build\/.*\).*applewebkit\/.*\(.*khtml,.*like gecko.*\).*version\/4\.0.*safari.*$/ [browser_name_pattern] => mozilla/5.0 (*linux*android?4.0* build/*)*applewebkit/*(*khtml,*like gecko*)*version/4.0*safari* [parent] => Android Browser 4.0 [comment] => Android Browser 4.0 [browser] => Android [browser_type] => Browser [browser_bits] => 32 [browser_maker] => Google Inc [browser_modus] => unknown [version] => 4.0 [majorver] => 4 [minorver] => 0 [platform] => Android [platform_version] => 4.0 [platform_description] => Android OS [platform_bits] => 32 [platform_maker] => Google Inc [alpha] => [beta] => [win16] => [win32] => [win64] => [frames] => 1 [iframes] => 1 [tables] => 1 [cookies] => 1 [backgroundsounds] => [javascript] => 1 [vbscript] => [javaapplets] => 1 [activexcontrols] => [ismobiledevice] => 1 [istablet] => [issyndicationreader] => [crawler] => [cssversion] => 3 [aolversion] => 0 [device_name] => general Mobile Phone [device_maker] => unknown [device_type] => Mobile Phone [device_pointing_method] => touchscreen [device_code_name] => general Mobile Phone [device_brand_name] => unknown [renderingengine_name] => WebKit [renderingengine_version] => unknown [renderingengine_description] => For Google Chrome, iOS (including both mobile Safari, WebViews within third-party apps, and web clips), Safari, Arora, Midori, OmniWeb, Shiira, iCab since version 4, Web, SRWare Iron, Rekonq, and in Maxthon 3. [renderingengine_maker] => Apple Inc ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>DonatjUAParser<br /><small>v0.5.0</small></td><td>Android Browser 4.0</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-f1436016-fdf1-4aea-b4be-1d7c99ab0661">Detail</a> <!-- Modal Structure --> <div id="modal-f1436016-fdf1-4aea-b4be-1d7c99ab0661" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>DonatjUAParser result detail</h4> <p><pre><code class="php">Array ( [platform] => Android [browser] => Android Browser [version] => 4.0 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>NeutrinoApiCom<br /><small></small></td><td>Android Webkit 4.0</td><td><i class="material-icons">close</i></td><td>Android 4.0.4</td><td style="border-left: 1px solid #555">Generic</td><td>Android 4.0</td><td>mobile-browser</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.25703</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-9b0fa449-ec1b-40c8-8b1c-9486eb3b9cbc">Detail</a> <!-- Modal Structure --> <div id="modal-9b0fa449-ec1b-40c8-8b1c-9486eb3b9cbc" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>NeutrinoApiCom result detail</h4> <p><pre><code class="php">stdClass Object ( [mobile_screen_height] => 480 [is_mobile] => 1 [type] => mobile-browser [mobile_brand] => Generic [mobile_model] => Android 4.0 [version] => 4.0 [is_android] => 1 [browser_name] => Android Webkit [operating_system_family] => Android [operating_system_version] => 4.0.4 [is_ios] => [producer] => Google Inc. [operating_system] => Android 4.0.x Ice Cream Sandwich [mobile_screen_width] => 320 [mobile_browser] => Android Webkit ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>PiwikDeviceDetector<br /><small>3.5.2</small></td><td>Android Browser </td><td>WebKit </td><td>Android 4.0</td><td style="border-left: 1px solid #555">K-Touch</td><td>W700+</td><td>smartphone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.005</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-21638055-738d-46ba-a1b1-f5114bc26475">Detail</a> <!-- Modal Structure --> <div id="modal-21638055-738d-46ba-a1b1-f5114bc26475" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>PiwikDeviceDetector result detail</h4> <p><pre><code class="php">Array ( [client] => Array ( [type] => browser [name] => Android Browser [short_name] => AN [version] => [engine] => WebKit ) [operatingSystem] => Array ( [name] => Android [short_name] => AND [version] => 4.0 [platform] => ) [device] => Array ( [brand] => KT [brandName] => K-Touch [model] => W700+ [device] => 1 [deviceName] => smartphone ) [bot] => [extra] => Array ( [isBot] => [isBrowser] => 1 [isFeedReader] => [isMobileApp] => [isPIM] => [isLibrary] => [isMediaPlayer] => [isCamera] => [isCarBrowser] => [isConsole] => [isFeaturePhone] => [isPhablet] => [isPortableMediaPlayer] => [isSmartDisplay] => [isSmartphone] => 1 [isTablet] => [isTV] => [isDesktop] => [isMobile] => 1 [isTouchEnabled] => ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>SinergiBrowserDetector<br /><small>6.0.0</small></td><td>Navigator 4.0</td><td><i class="material-icons">close</i></td><td>Android 4.0.4</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.001</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-5415e7f2-ef7b-434c-abe0-b71ba9f6707c">Detail</a> <!-- Modal Structure --> <div id="modal-5415e7f2-ef7b-434c-abe0-b71ba9f6707c" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>SinergiBrowserDetector result detail</h4> <p><pre><code class="php">Array ( [browser] => Sinergi\BrowserDetector\Browser Object ( [userAgent:Sinergi\BrowserDetector\Browser:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; U; Android 4.0.4; de-de; K-Touch W700+ Build/IMM76I) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 ) [name:Sinergi\BrowserDetector\Browser:private] => Navigator [version:Sinergi\BrowserDetector\Browser:private] => 4.0 [isRobot:Sinergi\BrowserDetector\Browser:private] => [isChromeFrame:Sinergi\BrowserDetector\Browser:private] => ) [operatingSystem] => Sinergi\BrowserDetector\Os Object ( [name:Sinergi\BrowserDetector\Os:private] => Android [version:Sinergi\BrowserDetector\Os:private] => 4.0.4 [isMobile:Sinergi\BrowserDetector\Os:private] => 1 [userAgent:Sinergi\BrowserDetector\Os:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; U; Android 4.0.4; de-de; K-Touch W700+ Build/IMM76I) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 ) ) [device] => Sinergi\BrowserDetector\Device Object ( [name:Sinergi\BrowserDetector\Device:private] => unknown [userAgent:Sinergi\BrowserDetector\Device:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; U; Android 4.0.4; de-de; K-Touch W700+ Build/IMM76I) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 ) ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UAParser<br /><small>v3.4.5</small></td><td>Android 4.0.4</td><td><i class="material-icons">close</i></td><td>Android 4.0.4</td><td style="border-left: 1px solid #555">Ktouch</td><td>W700+</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.004</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-346c1a98-5fd3-454f-b6c8-350f2f505d8b">Detail</a> <!-- Modal Structure --> <div id="modal-346c1a98-5fd3-454f-b6c8-350f2f505d8b" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UAParser result detail</h4> <p><pre><code class="php">UAParser\Result\Client Object ( [ua] => UAParser\Result\UserAgent Object ( [major] => 4 [minor] => 0 [patch] => 4 [family] => Android ) [os] => UAParser\Result\OperatingSystem Object ( [major] => 4 [minor] => 0 [patch] => 4 [patchMinor] => [family] => Android ) [device] => UAParser\Result\Device Object ( [brand] => Ktouch [model] => W700+ [family] => K-Touch W700+ ) [originalUserAgent] => Mozilla/5.0 (Linux; U; Android 4.0.4; de-de; K-Touch W700+ Build/IMM76I) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UserAgentStringCom<br /><small></small></td><td>Android Webkit Browser </td><td><i class="material-icons">close</i></td><td>Android 4.0.4</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.09901</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-9cdd8b45-a2eb-406b-bd27-7e48af38ffd4">Detail</a> <!-- Modal Structure --> <div id="modal-9cdd8b45-a2eb-406b-bd27-7e48af38ffd4" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UserAgentStringCom result detail</h4> <p><pre><code class="php">stdClass Object ( [agent_type] => Browser [agent_name] => Android Webkit Browser [agent_version] => -- [os_type] => Android [os_name] => Android [os_versionName] => [os_versionNumber] => 4.0.4 [os_producer] => [os_producerURL] => [linux_distibution] => Null [agent_language] => German - Germany [agent_languageTag] => de-de ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhatIsMyBrowserCom<br /><small></small></td><td>Android Browser 4.0</td><td>WebKit 534.30</td><td>Android 4.0.4</td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.40804</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-9795f66f-7271-430e-973a-a5c0e14dc35a">Detail</a> <!-- Modal Structure --> <div id="modal-9795f66f-7271-430e-973a-a5c0e14dc35a" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhatIsMyBrowserCom result detail</h4> <p><pre><code class="php">stdClass Object ( [operating_system_name] => Android [simple_sub_description_string] => [simple_browser_string] => Android Browser 4 on Android (Ice Cream Sandwich) [browser_version] => 4 [extra_info] => Array ( ) [operating_platform] => [extra_info_table] => stdClass Object ( [System Build] => IMM76I ) [layout_engine_name] => WebKit [detected_addons] => Array ( ) [operating_system_flavour_code] => [hardware_architecture] => [operating_system_flavour] => [operating_system_frameworks] => Array ( ) [browser_name_code] => android-browser [operating_system_version] => Ice Cream Sandwich [simple_operating_platform_string] => [is_abusive] => [layout_engine_version] => 534.30 [browser_capabilities] => Array ( ) [operating_platform_vendor_name] => [operating_system] => Android (Ice Cream Sandwich) [operating_system_version_full] => 4.0.4 [operating_platform_code] => [browser_name] => Android Browser [operating_system_name_code] => android [user_agent] => Mozilla/5.0 (Linux; U; Android 4.0.4; de-de; K-Touch W700+ Build/IMM76I) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30 [browser_version_full] => 4.0 [browser] => Android Browser 4 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhichBrowser<br /><small>2.0.10</small></td><td>Android Browser </td><td>Webkit 534.30</td><td>Android 4.0.4</td><td style="border-left: 1px solid #555">K-Touch</td><td>W700+</td><td>mobile:smart</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.029</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-342c8d32-4765-40a8-8a5c-af3a38d19ae4">Detail</a> <!-- Modal Structure --> <div id="modal-342c8d32-4765-40a8-8a5c-af3a38d19ae4" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhichBrowser result detail</h4> <p><pre><code class="php">Array ( [browser] => Array ( [name] => Android Browser ) [engine] => Array ( [name] => Webkit [version] => 534.30 ) [os] => Array ( [name] => Android [version] => 4.0.4 ) [device] => Array ( [type] => mobile [subtype] => smart [manufacturer] => K-Touch [model] => W700+ ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Woothee<br /><small>v1.2.0</small></td><td>Safari 4.0</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>smartphone</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-3f285ff5-314b-4db4-9948-54572e92e7b6">Detail</a> <!-- Modal Structure --> <div id="modal-3f285ff5-314b-4db4-9948-54572e92e7b6" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Woothee result detail</h4> <p><pre><code class="php">Array ( [name] => Safari [vendor] => Apple [version] => 4.0 [category] => smartphone [os] => Android [os_version] => 4.0.4 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Wurfl<br /><small>1.6.4</small></td><td>Android Webkit 4.0</td><td><i class="material-icons">close</i></td><td>Android 4.0</td><td style="border-left: 1px solid #555"></td><td></td><td>Smartphone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.04</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#modal-1a1aee36-7ce7-4111-a391-8e2c501f1532">Detail</a> <!-- Modal Structure --> <div id="modal-1a1aee36-7ce7-4111-a391-8e2c501f1532" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Wurfl result detail</h4> <p><pre><code class="php">Array ( [virtual] => Array ( [is_android] => true [is_ios] => false [is_windows_phone] => false [is_app] => false [is_full_desktop] => false [is_largescreen] => false [is_mobile] => true [is_robot] => false [is_smartphone] => true [is_touchscreen] => true [is_wml_preferred] => false [is_xhtmlmp_preferred] => false [is_html_preferred] => true [advertised_device_os] => Android [advertised_device_os_version] => 4.0 [advertised_browser] => Android Webkit [advertised_browser_version] => 4.0 [complete_device_name] => Generic Android 4.0 [form_factor] => Smartphone [is_phone] => true [is_app_webview] => false ) [all] => Array ( [brand_name] => Generic [model_name] => Android 4.0 [unique] => true [ununiqueness_handler] => [is_wireless_device] => true [device_claims_web_support] => true [has_qwerty_keyboard] => true [can_skip_aligned_link_row] => true [uaprof] => [uaprof2] => [uaprof3] => [nokia_series] => 0 [nokia_edition] => 0 [device_os] => Android [mobile_browser] => Android Webkit [mobile_browser_version] => [device_os_version] => 4.0 [pointing_method] => touchscreen [release_date] => 2011_october [marketing_name] => [model_extra_info] => [nokia_feature_pack] => 0 [can_assign_phone_number] => true [is_tablet] => false [manufacturer_name] => [is_bot] => false [is_google_glass] => false [proportional_font] => false [built_in_back_button_support] => false [card_title_support] => true [softkey_support] => false [table_support] => true [numbered_menus] => false [menu_with_select_element_recommended] => false [menu_with_list_of_links_recommended] => true [icons_on_menu_items_support] => false [break_list_of_links_with_br_element_recommended] => true [access_key_support] => false [wrap_mode_support] => false [times_square_mode_support] => false [deck_prefetch_support] => false [elective_forms_recommended] => true [wizards_recommended] => false [image_as_link_support] => false [insert_br_element_after_widget_recommended] => false [wml_can_display_images_and_text_on_same_line] => false [wml_displays_image_in_center] => false [opwv_wml_extensions_support] => false [wml_make_phone_call_string] => wtai://wp/mc; [chtml_display_accesskey] => false [emoji] => false [chtml_can_display_images_and_text_on_same_line] => false [chtml_displays_image_in_center] => false [imode_region] => none [chtml_make_phone_call_string] => tel: [chtml_table_support] => false [xhtml_honors_bgcolor] => true [xhtml_supports_forms_in_table] => true [xhtml_support_wml2_namespace] => false [xhtml_autoexpand_select] => false [xhtml_select_as_dropdown] => false [xhtml_select_as_radiobutton] => false [xhtml_select_as_popup] => false [xhtml_display_accesskey] => false [xhtml_supports_invisible_text] => false [xhtml_supports_inline_input] => false [xhtml_supports_monospace_font] => false [xhtml_supports_table_for_layout] => true [xhtml_supports_css_cell_table_coloring] => true [xhtml_format_as_css_property] => false [xhtml_format_as_attribute] => false [xhtml_nowrap_mode] => false [xhtml_marquee_as_css_property] => false [xhtml_readable_background_color1] => #FFFFFF [xhtml_readable_background_color2] => #FFFFFF [xhtml_allows_disabled_form_elements] => true [xhtml_document_title_support] => true [xhtml_preferred_charset] => iso-8859-1 [opwv_xhtml_extensions_support] => false [xhtml_make_phone_call_string] => tel: [xhtmlmp_preferred_mime_type] => text/html [xhtml_table_support] => true [xhtml_send_sms_string] => sms: [xhtml_send_mms_string] => mms: [xhtml_file_upload] => supported [cookie_support] => true [accept_third_party_cookie] => true [xhtml_supports_iframe] => full [xhtml_avoid_accesskeys] => true [xhtml_can_embed_video] => none [ajax_support_javascript] => true [ajax_manipulate_css] => true [ajax_support_getelementbyid] => true [ajax_support_inner_html] => true [ajax_xhr_type] => standard [ajax_manipulate_dom] => true [ajax_support_events] => true [ajax_support_event_listener] => true [ajax_preferred_geoloc_api] => w3c_api [xhtml_support_level] => 4 [preferred_markup] => html_web_4_0 [wml_1_1] => false [wml_1_2] => false [wml_1_3] => false [html_wi_w3_xhtmlbasic] => true [html_wi_oma_xhtmlmp_1_0] => true [html_wi_imode_html_1] => false [html_wi_imode_html_2] => false [html_wi_imode_html_3] => false [html_wi_imode_html_4] => false [html_wi_imode_html_5] => false [html_wi_imode_htmlx_1] => false [html_wi_imode_htmlx_1_1] => false [html_wi_imode_compact_generic] => false [html_web_3_2] => true [html_web_4_0] => true [voicexml] => false [multipart_support] => false [total_cache_disable_support] => false [time_to_live_support] => false [resolution_width] => 320 [resolution_height] => 480 [columns] => 60 [max_image_width] => 320 [max_image_height] => 480 [rows] => 40 [physical_screen_width] => 34 [physical_screen_height] => 50 [dual_orientation] => true [density_class] => 1.0 [wbmp] => true [bmp] => false [epoc_bmp] => false [gif_animated] => false [jpg] => true [png] => true [tiff] => false [transparent_png_alpha] => true [transparent_png_index] => true [svgt_1_1] => true [svgt_1_1_plus] => false [greyscale] => false [gif] => true [colors] => 65536 [webp_lossy_support] => true [webp_lossless_support] => false [post_method_support] => true [basic_authentication_support] => true [empty_option_value_support] => true [emptyok] => false [nokia_voice_call] => false [wta_voice_call] => false [wta_phonebook] => false [wta_misc] => false [wta_pdc] => false [https_support] => true [phone_id_provided] => false [max_data_rate] => 3600 [wifi] => true [sdio] => false [vpn] => false [has_cellular_radio] => true [max_deck_size] => 2000000 [max_url_length_in_requests] => 256 [max_url_length_homepage] => 0 [max_url_length_bookmark] => 0 [max_url_length_cached_page] => 0 [max_no_of_connection_settings] => 0 [max_no_of_bookmarks] => 0 [max_length_of_username] => 0 [max_length_of_password] => 0 [max_object_size] => 0 [downloadfun_support] => false [directdownload_support] => true [inline_support] => false [oma_support] => true [ringtone] => false [ringtone_3gpp] => false [ringtone_midi_monophonic] => false [ringtone_midi_polyphonic] => false [ringtone_imelody] => false [ringtone_digiplug] => false [ringtone_compactmidi] => false [ringtone_mmf] => false [ringtone_rmf] => false [ringtone_xmf] => false [ringtone_amr] => false [ringtone_awb] => false [ringtone_aac] => false [ringtone_wav] => false [ringtone_mp3] => false [ringtone_spmidi] => false [ringtone_qcelp] => false [ringtone_voices] => 1 [ringtone_df_size_limit] => 0 [ringtone_directdownload_size_limit] => 0 [ringtone_inline_size_limit] => 0 [ringtone_oma_size_limit] => 0 [wallpaper] => false [wallpaper_max_width] => 0 [wallpaper_max_height] => 0 [wallpaper_preferred_width] => 0 [wallpaper_preferred_height] => 0 [wallpaper_resize] => none [wallpaper_wbmp] => false [wallpaper_bmp] => false [wallpaper_gif] => false [wallpaper_jpg] => false [wallpaper_png] => false [wallpaper_tiff] => false [wallpaper_greyscale] => false [wallpaper_colors] => 2 [wallpaper_df_size_limit] => 0 [wallpaper_directdownload_size_limit] => 0 [wallpaper_inline_size_limit] => 0 [wallpaper_oma_size_limit] => 0 [screensaver] => false [screensaver_max_width] => 0 [screensaver_max_height] => 0 [screensaver_preferred_width] => 0 [screensaver_preferred_height] => 0 [screensaver_resize] => none [screensaver_wbmp] => false [screensaver_bmp] => false [screensaver_gif] => false [screensaver_jpg] => false [screensaver_png] => false [screensaver_greyscale] => false [screensaver_colors] => 2 [screensaver_df_size_limit] => 0 [screensaver_directdownload_size_limit] => 0 [screensaver_inline_size_limit] => 0 [screensaver_oma_size_limit] => 0 [picture] => false [picture_max_width] => 0 [picture_max_height] => 0 [picture_preferred_width] => 0 [picture_preferred_height] => 0 [picture_resize] => none [picture_wbmp] => false [picture_bmp] => false [picture_gif] => false [picture_jpg] => false [picture_png] => false [picture_greyscale] => false [picture_colors] => 2 [picture_df_size_limit] => 0 [picture_directdownload_size_limit] => 0 [picture_inline_size_limit] => 0 [picture_oma_size_limit] => 0 [video] => false [oma_v_1_0_forwardlock] => false [oma_v_1_0_combined_delivery] => false [oma_v_1_0_separate_delivery] => false [streaming_video] => true [streaming_3gpp] => true [streaming_mp4] => true [streaming_mov] => false [streaming_video_size_limit] => 0 [streaming_real_media] => none [streaming_flv] => false [streaming_3g2] => false [streaming_vcodec_h263_0] => 10 [streaming_vcodec_h263_3] => -1 [streaming_vcodec_mpeg4_sp] => 2 [streaming_vcodec_mpeg4_asp] => -1 [streaming_vcodec_h264_bp] => 3.0 [streaming_acodec_amr] => nb [streaming_acodec_aac] => lc [streaming_wmv] => none [streaming_preferred_protocol] => rtsp [streaming_preferred_http_protocol] => apple_live_streaming [wap_push_support] => false [connectionless_service_indication] => false [connectionless_service_load] => false [connectionless_cache_operation] => false [connectionoriented_unconfirmed_service_indication] => false [connectionoriented_unconfirmed_service_load] => false [connectionoriented_unconfirmed_cache_operation] => false [connectionoriented_confirmed_service_indication] => false [connectionoriented_confirmed_service_load] => false [connectionoriented_confirmed_cache_operation] => false [utf8_support] => true [ascii_support] => false [iso8859_support] => false [expiration_date] => false [j2me_cldc_1_0] => false [j2me_cldc_1_1] => false [j2me_midp_1_0] => false [j2me_midp_2_0] => false [doja_1_0] => false [doja_1_5] => false [doja_2_0] => false [doja_2_1] => false [doja_2_2] => false [doja_3_0] => false [doja_3_5] => false [doja_4_0] => false [j2me_jtwi] => false [j2me_mmapi_1_0] => false [j2me_mmapi_1_1] => false [j2me_wmapi_1_0] => false [j2me_wmapi_1_1] => false [j2me_wmapi_2_0] => false [j2me_btapi] => false [j2me_3dapi] => false [j2me_locapi] => false [j2me_nokia_ui] => false [j2me_motorola_lwt] => false [j2me_siemens_color_game] => false [j2me_siemens_extension] => false [j2me_heap_size] => 0 [j2me_max_jar_size] => 0 [j2me_storage_size] => 0 [j2me_max_record_store_size] => 0 [j2me_screen_width] => 0 [j2me_screen_height] => 0 [j2me_canvas_width] => 0 [j2me_canvas_height] => 0 [j2me_bits_per_pixel] => 0 [j2me_audio_capture_enabled] => false [j2me_video_capture_enabled] => false [j2me_photo_capture_enabled] => false [j2me_capture_image_formats] => none [j2me_http] => false [j2me_https] => false [j2me_socket] => false [j2me_udp] => false [j2me_serial] => false [j2me_gif] => false [j2me_gif89a] => false [j2me_jpg] => false [j2me_png] => false [j2me_bmp] => false [j2me_bmp3] => false [j2me_wbmp] => false [j2me_midi] => false [j2me_wav] => false [j2me_amr] => false [j2me_mp3] => false [j2me_mp4] => false [j2me_imelody] => false [j2me_rmf] => false [j2me_au] => false [j2me_aac] => false [j2me_realaudio] => false [j2me_xmf] => false [j2me_wma] => false [j2me_3gpp] => false [j2me_h263] => false [j2me_svgt] => false [j2me_mpeg4] => false [j2me_realvideo] => false [j2me_real8] => false [j2me_realmedia] => false [j2me_left_softkey_code] => 0 [j2me_right_softkey_code] => 0 [j2me_middle_softkey_code] => 0 [j2me_select_key_code] => 0 [j2me_return_key_code] => 0 [j2me_clear_key_code] => 0 [j2me_datefield_no_accepts_null_date] => false [j2me_datefield_broken] => false [receiver] => false [sender] => false [mms_max_size] => 0 [mms_max_height] => 0 [mms_max_width] => 0 [built_in_recorder] => false [built_in_camera] => true [mms_jpeg_baseline] => false [mms_jpeg_progressive] => false [mms_gif_static] => false [mms_gif_animated] => false [mms_png] => false [mms_bmp] => false [mms_wbmp] => false [mms_amr] => false [mms_wav] => false [mms_midi_monophonic] => false [mms_midi_polyphonic] => false [mms_midi_polyphonic_voices] => 0 [mms_spmidi] => false [mms_mmf] => false [mms_mp3] => false [mms_evrc] => false [mms_qcelp] => false [mms_ota_bitmap] => false [mms_nokia_wallpaper] => false [mms_nokia_operatorlogo] => false [mms_nokia_3dscreensaver] => false [mms_nokia_ringingtone] => false [mms_rmf] => false [mms_xmf] => false [mms_symbian_install] => false [mms_jar] => false [mms_jad] => false [mms_vcard] => false [mms_vcalendar] => false [mms_wml] => false [mms_wbxml] => false [mms_wmlc] => false [mms_video] => false [mms_mp4] => false [mms_3gpp] => false [mms_3gpp2] => false [mms_max_frame_rate] => 0 [nokiaring] => false [picturemessage] => false [operatorlogo] => false [largeoperatorlogo] => false [callericon] => false [nokiavcard] => false [nokiavcal] => false [sckl_ringtone] => false [sckl_operatorlogo] => false [sckl_groupgraphic] => false [sckl_vcard] => false [sckl_vcalendar] => false [text_imelody] => false [ems] => false [ems_variablesizedpictures] => false [ems_imelody] => false [ems_odi] => false [ems_upi] => false [ems_version] => 0 [siemens_ota] => false [siemens_logo_width] => 101 [siemens_logo_height] => 29 [siemens_screensaver_width] => 101 [siemens_screensaver_height] => 50 [gprtf] => false [sagem_v1] => false [sagem_v2] => false [panasonic] => false [sms_enabled] => true [wav] => false [mmf] => false [smf] => false [mld] => false [midi_monophonic] => false [midi_polyphonic] => false [sp_midi] => false [rmf] => false [xmf] => false [compactmidi] => false [digiplug] => false [nokia_ringtone] => false [imelody] => false [au] => false [amr] => false [awb] => false [aac] => true [mp3] => true [voices] => 1 [qcelp] => false [evrc] => false [flash_lite_version] => [fl_wallpaper] => false [fl_screensaver] => false [fl_standalone] => false [fl_browser] => false [fl_sub_lcd] => false [full_flash_support] => true [css_supports_width_as_percentage] => true [css_border_image] => webkit [css_rounded_corners] => webkit [css_gradient] => none [css_spriting] => true [css_gradient_linear] => none [is_transcoder] => false [transcoder_ua_header] => user-agent [rss_support] => false [pdf_support] => true [progressive_download] => true [playback_vcodec_h263_0] => 10 [playback_vcodec_h263_3] => -1 [playback_vcodec_mpeg4_sp] => 0 [playback_vcodec_mpeg4_asp] => -1 [playback_vcodec_h264_bp] => 3.0 [playback_real_media] => none [playback_3gpp] => true [playback_3g2] => false [playback_mp4] => true [playback_mov] => false [playback_acodec_amr] => nb [playback_acodec_aac] => none [playback_df_size_limit] => 0 [playback_directdownload_size_limit] => 0 [playback_inline_size_limit] => 0 [playback_oma_size_limit] => 0 [playback_acodec_qcelp] => false [playback_wmv] => none [hinted_progressive_download] => true [html_preferred_dtd] => html4 [viewport_supported] => true [viewport_width] => device_width_token [viewport_userscalable] => no [viewport_initial_scale] => [viewport_maximum_scale] => [viewport_minimum_scale] => [mobileoptimized] => false [handheldfriendly] => false [canvas_support] => full [image_inlining] => true [is_smarttv] => false [is_console] => false [nfc_support] => false [ux_full_desktop] => false [jqm_grade] => A [is_sencha_touch_ok] => false [controlcap_is_smartphone] => default [controlcap_is_ios] => default [controlcap_is_android] => default [controlcap_is_robot] => default [controlcap_is_app] => default [controlcap_advertised_device_os] => default [controlcap_advertised_device_os_version] => default [controlcap_advertised_browser] => default [controlcap_advertised_browser_version] => default [controlcap_is_windows_phone] => default [controlcap_is_full_desktop] => default [controlcap_is_largescreen] => default [controlcap_is_mobile] => default [controlcap_is_touchscreen] => default [controlcap_is_wml_preferred] => default [controlcap_is_xhtmlmp_preferred] => default [controlcap_is_html_preferred] => default [controlcap_form_factor] => default [controlcap_complete_device_name] => default ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr></table> </div> <div class="section"> <h1 class="header center orange-text">About this comparison</h1> <div class="row center"> <h5 class="header light"> The primary goal of this project is simple<br /> I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br /> <br /> The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br /> <br /> You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/UserAgentParserComparison">ThaDafinser/UserAgentParserComparison</a><br /> <br /> The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a> </h5> </div> </div> <div class="card"> <div class="card-content"> Comparison created <i>2016-02-13 13:26:39</i> | by <a href="https://github.com/ThaDafinser">ThaDafinser</a> </div> </div> </div> <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.1.1/list.min.js"></script> <script> $(document).ready(function(){ // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered $('.modal-trigger').leanModal(); }); </script> </body> </html>
{ "content_hash": "583a64effbadb5f06dc883abc613c721", "timestamp": "", "source": "github", "line_count": 1122, "max_line_length": 746, "avg_line_length": 41.47415329768271, "alnum_prop": 0.5382301113164568, "repo_name": "ThaDafinser/UserAgentParserComparison", "id": "2bf13ce9de488bea9ac52af405c6059c4d146c02", "size": "46535", "binary": false, "copies": "1", "ref": "refs/heads/gh-pages", "path": "v4/user-agent-detail/17/68/1768bcfc-886f-4f90-a1f8-45d2ee06b3fa.html", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "2060859160" } ] }
ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in Bull. trimest. Soc. mycol. Fr. 69: 292 (1954) #### Original name Helicosporina globulifera G. Arnaud ex Rambelli, 1960 ### Remarks null
{ "content_hash": "5bfe9b16e58f3069ba5038aab25248c6", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 53, "avg_line_length": 17.23076923076923, "alnum_prop": 0.7142857142857143, "repo_name": "mdoering/backbone", "id": "4749a6ff73182babc59fc20cdcb8506534dffee9", "size": "301", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Fungi/Ascomycota/Helicosporina/Helicosporina globulifera/README.md", "mode": "33188", "license": "apache-2.0", "language": [] }
from slackbot.bot import respond_to, listen_to, default_reply @respond_to('愛こそすべて') @listen_to('愛こそすべて') def reply_guiltykiss(message): message.reply("guilty kiss!!") @respond_to('可愛い') @listen_to('可愛い') @respond_to('かわいい') @listen_to('かわいい') def reply_kawaii(message): message.reply("γ‚γ‚ŠγŒγ¨γ†β™‘") message.react('heart') @default_reply() def default_reply(message): message.reply("γ‚γ„γγ‚ƒγ‚“γ“γ¨ε°ζž—ζ„›ι¦™γ γ‚ˆγ£!?γ€γ‚ˆγ‚γ—γγ­γ£!!")
{ "content_hash": "18957316b6bda6f7141fdae94906ed08", "timestamp": "", "source": "github", "line_count": 21, "max_line_length": 61, "avg_line_length": 20.333333333333332, "alnum_prop": 0.6908665105386417, "repo_name": "yudaishimanaka/slackbot", "id": "c54ec1c05c7d3c2808a72d9cffdf8276ecdb8e3e", "size": "533", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "plugins/chat.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Python", "bytes": "4989" } ] }
""" Written by Daniel M. Aukes and CONTRIBUTORS Email: danaukes<at>asu.edu. Please see LICENSE for full license. """ import qt.QtCore as qc import qt.QtGui as qg class CommonTableWidget(qg.QTableWidget): pass def calc_table_width2(self): width = 0 width += self.verticalHeader().width() width += sum([self.columnWidth(ii) for ii in range(self.columnCount())]) width += self.style().pixelMetric(qg.QStyle.PM_ScrollBarExtent) width += self.frameWidth() * 2 return width def reset_min_width(self): self.horizontalHeader().setStretchLastSection(False) self.setMinimumWidth(self.calc_table_width2()) self.horizontalHeader().setStretchLastSection(True) # # def calc_table_width(self): # w = sum([self.columnWidth(ii) for ii in range(self.columnCount())]) # w2 = self.frameWidth() * 2 # return w + w2 def row_add(self, items): ii = self.rowCount() self.setRowCount(ii + 1) for jj, item in enumerate(items): self.setItem(ii, jj, item) self.reset_min_width() def row_add_empty(self, items): ii = self.rowCount() self.setRowCount(ii + 1) for jj, item in enumerate(items): self.setItem(ii, jj, item) self.reset_min_width() def row_remove(self): ii = self.currentRow() kk = self.currentColumn() self.removeRow(ii) self.setCurrentCell(ii, kk) def row_shift_up(self): ii = self.currentRow() kk = self.currentColumn() if ii > 0: cols = self.columnCount() items_below = [self.takeItem(ii, jj) for jj in range(cols)] items_above = [self.takeItem(ii - 1, jj) for jj in range(cols)] [self.setItem(ii, jj, item) for item, jj in zip(items_above, range(cols))] [self.setItem(ii - 1, jj, item) for item, jj in zip(items_below, range(cols))] self.setCurrentCell(ii - 1, kk) def row_shift_down(self): ii = self.currentRow() kk = self.currentColumn() if ii < self.rowCount() - 1: cols = self.columnCount() items_below = [self.takeItem(ii + 1, jj) for jj in range(cols)] items_above = [self.takeItem(ii, jj) for jj in range(cols)] [self.setItem(ii + 1, jj, item) for item, jj in zip(items_above, range(cols))] [self.setItem(ii, jj, item) for item, jj in zip(items_below, range(cols))] self.setCurrentCell(ii + 1, kk) def reset(self): for ii in range(self.rowCount()): self.removeRow(0) class Table(CommonTableWidget): def __init__(self, data_class,delegate): super(Table, self).__init__() self.data_class = data_class self.setShowGrid(False) self.setAlternatingRowColors(True) self.setRowCount(0) self.setColumnCount(self.data_class.column_count) self.setHorizontalHeaderLabels(self.data_class.header_labels) # self.resizeColumnsToContents() # self.reset_min_width() # self.setHorizontalScrollBarPolicy( # qc.Qt.ScrollBarAlwaysOff) self.setItemDelegate(delegate(self.data_class)) self.cellClicked.connect(self.cell_clicked) def row_add(self, *args, **kwargs): items = self.data_class.row_add(*args, **kwargs) super(Table,self).row_add(items) def row_add_empty(self, *args, **kwargs): items = self.data_class.row_add_empty() super(Table,self).row_add_empty(items) def cell_clicked(self,row,column): self.data_class.cell_clicked(row,column,self) def export_data(self): return [ [ self.item( ii, jj).data( qc.Qt.UserRole) for jj in range( self.data_class.column_count)] for ii in range( self.rowCount())] class Delegate(qg.QStyledItemDelegate): def __init__(self, data_class, parent=None): super(Delegate, self).__init__(parent) self.data_class = data_class def createEditor(self, parent, option, index): return self.data_class.create_editor(parent, option, index, self) def commitAndCloseEditor(self): editor = self.sender() self.commitData.emit(editor) self.closeEditor.emit(editor, qg.QAbstractItemDelegate.NoHint) def updateEditorGeometry(self, editor, option, index): return self.data_class.update_editor_geometry(editor, option, index) def setEditorData(self, editor, index): return self.data_class.set_editor_data(editor, index, self) def setModelData(self, editor, model, index): return self.data_class.set_model_data(editor, model, index, self) class TableControl(qg.QWidget): def __init__(self, table, *args, **kwargs): super(TableControl, self).__init__(*args, **kwargs) main_layout = qg.QHBoxLayout() button_add = qg.QPushButton('+') button_remove = qg.QPushButton('-') button_up = qg.QPushButton('up') button_down = qg.QPushButton('down') button_add.clicked.connect(table.row_add_empty) button_remove.clicked.connect(table.row_remove) button_up.clicked.connect(table.row_shift_up) button_down.clicked.connect(table.row_shift_down) sublayout1 = qg.QVBoxLayout() sublayout1.addWidget(button_add) sublayout1.addWidget(button_remove) sublayout1.addStretch() sublayout1.addWidget(button_up) sublayout1.addWidget(button_down) main_layout.addWidget(table) main_layout.addLayout(sublayout1) self.setLayout(main_layout)
{ "content_hash": "582a0116ef2d6043c484f24153d7dbdf", "timestamp": "", "source": "github", "line_count": 170, "max_line_length": 76, "avg_line_length": 34.55294117647059, "alnum_prop": 0.5980592441266599, "repo_name": "danaukes/popupcad", "id": "a64dba09c4b7273c32180ef088bae89121d3f615", "size": "5898", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "popupcad/widgets/table_common.py", "mode": "33188", "license": "mit", "language": [ { "name": "C++", "bytes": "2451" }, { "name": "CMake", "bytes": "1118" }, { "name": "Protocol Buffer", "bytes": "353" }, { "name": "Python", "bytes": "792770" } ] }
package com.amazonaws.services.route53domains.model.transform; import javax.annotation.Generated; import com.amazonaws.SdkClientException; import com.amazonaws.services.route53domains.model.*; import com.amazonaws.protocol.*; import com.amazonaws.annotation.SdkInternalApi; /** * ListDomainsRequestMarshaller */ @Generated("com.amazonaws:aws-java-sdk-code-generator") @SdkInternalApi public class ListDomainsRequestMarshaller { private static final MarshallingInfo<String> MARKER_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD) .marshallLocationName("Marker").build(); private static final MarshallingInfo<Integer> MAXITEMS_BINDING = MarshallingInfo.builder(MarshallingType.INTEGER) .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("MaxItems").build(); private static final ListDomainsRequestMarshaller instance = new ListDomainsRequestMarshaller(); public static ListDomainsRequestMarshaller getInstance() { return instance; } /** * Marshall the given parameter object. */ public void marshall(ListDomainsRequest listDomainsRequest, ProtocolMarshaller protocolMarshaller) { if (listDomainsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(listDomainsRequest.getMarker(), MARKER_BINDING); protocolMarshaller.marshall(listDomainsRequest.getMaxItems(), MAXITEMS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } } }
{ "content_hash": "b905f59e5a340ae569db9f79c7af8b84", "timestamp": "", "source": "github", "line_count": 47, "max_line_length": 156, "avg_line_length": 36.46808510638298, "alnum_prop": 0.7397899649941657, "repo_name": "jentfoo/aws-sdk-java", "id": "76d4ca9f3ea263e02265a7fda6b3d4f4b1af58fd", "size": "2294", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53domains/model/transform/ListDomainsRequestMarshaller.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "270" }, { "name": "FreeMarker", "bytes": "173637" }, { "name": "Gherkin", "bytes": "25063" }, { "name": "Java", "bytes": "356214839" }, { "name": "Scilab", "bytes": "3924" }, { "name": "Shell", "bytes": "295" } ] }
using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using Amazon.Runtime; namespace Amazon.RDS.Model { /// <summary> /// Returns information about the DescribeDBParameterGroupsResult response and response metadata. /// </summary> public class DescribeDBParameterGroupsResponse : AmazonWebServiceResponse { private DescribeDBParameterGroupsResult describeDBParameterGroupsResult; /// <summary> /// Gets and sets the DescribeDBParameterGroupsResult property. /// Contains the result of a successful invocation of the DescribeDBParameterGroups action. /// </summary> public DescribeDBParameterGroupsResult DescribeDBParameterGroupsResult { get { if(this.describeDBParameterGroupsResult == null) { this.describeDBParameterGroupsResult = new DescribeDBParameterGroupsResult(); } return this.describeDBParameterGroupsResult; } set { this.describeDBParameterGroupsResult = value; } } } }
{ "content_hash": "9771d5bda3a5fcb264bd52071f4ef494", "timestamp": "", "source": "github", "line_count": 37, "max_line_length": 102, "avg_line_length": 31.324324324324323, "alnum_prop": 0.6609145815358067, "repo_name": "emcvipr/dataservices-sdk-dotnet", "id": "439d9cdb64ea187fa46ca8f8ee38b4d4e77cf9b9", "size": "1746", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "AWSSDK/Amazon.RDS/Model/DescribeDBParameterGroupsResponse.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C#", "bytes": "30500772" }, { "name": "Shell", "bytes": "1726" }, { "name": "XSLT", "bytes": "337772" } ] }
<?php namespace database; /** * Database object class * * PHP Version 5.3+ * @author Thomas Monzel <tm@apparat-hamburg.de> * @version $Revision$ * @package Suitcase * @subpackage Database */ class Object { /** * Calls to_string() method instead * * @final * @access public * @return string */ final function __toString() { return $this->to_string(); } /** * To-string conversion alias * * @access public * @return string */ function to_string() { return ""; } } ?>
{ "content_hash": "0a58e02c6345948238d07f92e88370eb", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 48, "avg_line_length": 14.777777777777779, "alnum_prop": 0.5808270676691729, "repo_name": "battlesuit/database", "id": "9a71b6af16ac5e1163c972498cd89b05ee3c9e49", "size": "532", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/database/object.php", "mode": "33188", "license": "mit", "language": [ { "name": "PHP", "bytes": "51920" } ] }
package eu.masconsult.template.recipes; public interface Constants { public static final String IMAGES_DIRECTORY_NAME = "images/"; }
{ "content_hash": "57ae799b5987af4f379abeefe806294f", "timestamp": "", "source": "github", "line_count": 7, "max_line_length": 65, "avg_line_length": 20, "alnum_prop": 0.7571428571428571, "repo_name": "masconsult/android-recipes-app", "id": "ab6b893fa7ebbced7a7d9a65486f8fd7c6862fa5", "size": "141", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "recipes/src/eu/masconsult/template/recipes/Constants.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "564" }, { "name": "Java", "bytes": "144377" }, { "name": "Shell", "bytes": "4534" } ] }
package org.reasm.source; import javax.annotation.Nonnull; import javax.annotation.concurrent.Immutable; import org.reasm.messages.ParseErrorMessage; /** * A syntax error that occurs while parsing a source node. If a source file containing a parse error is assembled, a * {@link ParseErrorMessage} will be added to the assembly (unless a fatal error occurs before the parse error). * * @author Francis GagnΓ© */ @Immutable public abstract class ParseError { @Nonnull private final String text; /** * Initializes a new ParseError. * * @param text * the text of the parse error */ protected ParseError(@Nonnull String text) { if (text == null) { throw new NullPointerException("text"); } this.text = text; } /** * Gets the text of the parse error. * * @return the text of the parse error. */ @Nonnull public final String getText() { return this.text; } }
{ "content_hash": "765ab96c881862c6a041baddf5971f4f", "timestamp": "", "source": "github", "line_count": 44, "max_line_length": 116, "avg_line_length": 22.75, "alnum_prop": 0.6353646353646354, "repo_name": "reasm/reasm-core", "id": "cf50e05cdeca25662c7479b1b2de62d0cf8f9486", "size": "1002", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/org/reasm/source/ParseError.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "1212238" } ] }
End of preview.

No dataset card yet

Downloads last month
4