Dataset Preview
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 datasetNeed 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 |
|---|---|
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**object_type** | **int** | Object type IDs available for this questionnaire | [optional]
**object_id** | **int** | Object id's available for this questionnaire | [optional]
**object_type_name** | **string** | Object type name available for this questionnaire | [optional]
**lang_code** | **string** | ISO lang code | [optional]
**questionnaire_type_name** | **object** | Questionnaire type name | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
{
"content_hash": "7878eea1b0806f97a7c739620b4d65b1",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 161,
"avg_line_length": 61.63636363636363,
"alnum_prop": 0.6194690265486725,
"repo_name": "freightlive/bumbal-client-api-php",
"id": "657ce9479913a70053dd9a65128f08b56187c529",
"size": "721",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/Model/QuestionnaireFiltersModel.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "PHP",
"bytes": "3639341"
},
{
"name": "Shell",
"bytes": "1673"
}
]
}
|
// Options to control how MicroPython is built for this port,
// overriding defaults in py/mpconfig.h.
// Variant-specific definitions.
#include "mpconfigvariant.h"
// The minimal variant's config covers everything.
// If we're building the minimal variant, ignore the rest of this file.
#ifndef MICROPY_UNIX_MINIMAL
#define MICROPY_ALLOC_PATH_MAX (PATH_MAX)
#define MICROPY_PERSISTENT_CODE_LOAD (1)
#if !defined(MICROPY_EMIT_X64) && defined(__x86_64__)
#define MICROPY_EMIT_X64 (1)
#endif
#if !defined(MICROPY_EMIT_X86) && defined(__i386__)
#define MICROPY_EMIT_X86 (1)
#endif
#if !defined(MICROPY_EMIT_THUMB) && defined(__thumb2__)
#define MICROPY_EMIT_THUMB (1)
#define MICROPY_MAKE_POINTER_CALLABLE(p) ((void *)((mp_uint_t)(p) | 1))
#endif
// Some compilers define __thumb2__ and __arm__ at the same time, let
// autodetected thumb2 emitter have priority.
#if !defined(MICROPY_EMIT_ARM) && defined(__arm__) && !defined(__thumb2__)
#define MICROPY_EMIT_ARM (1)
#endif
#define MICROPY_COMP_MODULE_CONST (1)
#define MICROPY_COMP_TRIPLE_TUPLE_ASSIGN (1)
#define MICROPY_COMP_RETURN_IF_EXPR (1)
#define MICROPY_ENABLE_GC (1)
#define MICROPY_ENABLE_FINALISER (1)
#define MICROPY_STACK_CHECK (1)
#define MICROPY_MALLOC_USES_ALLOCATED_SIZE (1)
#define MICROPY_MEM_STATS (1)
#define MICROPY_DEBUG_PRINTERS (1)
// Printing debug to stderr may give tests which
// check stdout a chance to pass, etc.
#define MICROPY_DEBUG_PRINTER (&mp_stderr_print)
#define MICROPY_READER_POSIX (1)
#define MICROPY_USE_READLINE_HISTORY (1)
#define MICROPY_HELPER_REPL (1)
#define MICROPY_REPL_EMACS_KEYS (1)
#define MICROPY_REPL_AUTO_INDENT (1)
#define MICROPY_HELPER_LEXER_UNIX (1)
#define MICROPY_ENABLE_SOURCE_LINE (1)
#ifndef MICROPY_FLOAT_IMPL
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_DOUBLE)
#endif
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
#ifndef MICROPY_STREAMS_NON_BLOCK
#define MICROPY_STREAMS_NON_BLOCK (1)
#endif
#define MICROPY_STREAMS_POSIX_API (1)
#define MICROPY_OPT_COMPUTED_GOTO (1)
#ifndef MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE
#define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (1)
#endif
#define MICROPY_MODULE_WEAK_LINKS (1)
#define MICROPY_CAN_OVERRIDE_BUILTINS (1)
#define MICROPY_VFS_POSIX_FILE (1)
#define MICROPY_PY_FUNCTION_ATTRS (1)
#define MICROPY_PY_DESCRIPTORS (1)
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
#define MICROPY_PY_BUILTINS_STR_CENTER (1)
#define MICROPY_PY_BUILTINS_STR_PARTITION (1)
#define MICROPY_PY_BUILTINS_STR_SPLITLINES (1)
#define MICROPY_PY_BUILTINS_MEMORYVIEW (1)
#define MICROPY_PY_BUILTINS_FROZENSET (1)
#define MICROPY_PY_BUILTINS_COMPILE (1)
#define MICROPY_PY_BUILTINS_NOTIMPLEMENTED (1)
#define MICROPY_PY_BUILTINS_INPUT (1)
#define MICROPY_PY_BUILTINS_POW3 (1)
#define MICROPY_PY_BUILTINS_ROUND_INT (1)
#define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
#define MICROPY_PY_ALL_SPECIAL_METHODS (1)
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
#define MICROPY_PY_BUILTINS_SLICE_ATTRS (1)
#define MICROPY_PY_BUILTINS_SLICE_INDICES (1)
#define MICROPY_PY_SYS_EXIT (1)
#define MICROPY_PY_SYS_ATEXIT (1)
#if MICROPY_PY_SYS_SETTRACE
#define MICROPY_PERSISTENT_CODE_SAVE (1)
#define MICROPY_COMP_CONST (0)
#endif
#ifndef MICROPY_PY_SYS_PLATFORM
#if defined(__APPLE__) && defined(__MACH__)
#define MICROPY_PY_SYS_PLATFORM "darwin"
#else
#define MICROPY_PY_SYS_PLATFORM "linux"
#endif
#endif
#define MICROPY_PY_SYS_MAXSIZE (1)
#define MICROPY_PY_SYS_STDFILES (1)
#define MICROPY_PY_SYS_EXC_INFO (1)
#define MICROPY_PY_COLLECTIONS_DEQUE (1)
#define MICROPY_PY_COLLECTIONS_ORDEREDDICT (1)
#ifndef MICROPY_PY_MATH_SPECIAL_FUNCTIONS
#define MICROPY_PY_MATH_SPECIAL_FUNCTIONS (1)
#endif
#define MICROPY_PY_MATH_ISCLOSE (MICROPY_PY_MATH_SPECIAL_FUNCTIONS)
#define MICROPY_PY_CMATH (1)
#define MICROPY_PY_IO_IOBASE (1)
#define MICROPY_PY_IO_FILEIO (1)
#define MICROPY_PY_GC_COLLECT_RETVAL (1)
#ifndef MICROPY_STACKLESS
#define MICROPY_STACKLESS (0)
#define MICROPY_STACKLESS_STRICT (0)
#endif
#define MICROPY_PY_OS_STATVFS (1)
#define MICROPY_PY_UTIME (1)
#define MICROPY_PY_UTIME_MP_HAL (1)
#define MICROPY_PY_UERRNO (1)
#define MICROPY_PY_UCTYPES (1)
#define MICROPY_PY_UZLIB (1)
#define MICROPY_PY_UJSON (1)
#define MICROPY_PY_URE (1)
#define MICROPY_PY_UHEAPQ (1)
#define MICROPY_PY_UTIMEQ (1)
#define MICROPY_PY_UHASHLIB (1)
#if MICROPY_PY_USSL
#define MICROPY_PY_UHASHLIB_MD5 (1)
#define MICROPY_PY_UHASHLIB_SHA1 (1)
#define MICROPY_PY_UCRYPTOLIB (1)
#endif
#define MICROPY_PY_UBINASCII (1)
#define MICROPY_PY_UBINASCII_CRC32 (1)
#define MICROPY_PY_URANDOM (1)
#ifndef MICROPY_PY_USELECT_POSIX
#define MICROPY_PY_USELECT_POSIX (1)
#endif
#define MICROPY_PY_UWEBSOCKET (1)
#define MICROPY_PY_MACHINE (1)
#define MICROPY_PY_MACHINE_PULSE (1)
#define MICROPY_MACHINE_MEM_GET_READ_ADDR mod_machine_mem_get_addr
#define MICROPY_MACHINE_MEM_GET_WRITE_ADDR mod_machine_mem_get_addr
#define MICROPY_FATFS_ENABLE_LFN (1)
#define MICROPY_FATFS_RPATH (2)
#define MICROPY_FATFS_MAX_SS (4096)
#define MICROPY_FATFS_LFN_CODE_PAGE 437 /* 1=SFN/ANSI 437=LFN/U.S.(OEM) */
// Define to MICROPY_ERROR_REPORTING_DETAILED to get function, etc.
// names in exception messages (may require more RAM).
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_DETAILED)
#define MICROPY_WARNINGS (1)
#define MICROPY_ERROR_PRINTER (&mp_stderr_print)
#define MICROPY_PY_STR_BYTES_CMP_WARN (1)
// VFS stat functions should return time values relative to 1970/1/1
#define MICROPY_EPOCH_IS_1970 (1)
extern const struct _mp_print_t mp_stderr_print;
#if !(defined(MICROPY_GCREGS_SETJMP) || defined(__x86_64__) || defined(__i386__) || defined(__thumb2__) || defined(__thumb__) || defined(__arm__))
// Fall back to setjmp() implementation for discovery of GC pointers in registers.
#define MICROPY_GCREGS_SETJMP (1)
#endif
#define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF (1)
#define MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE (256)
#define MICROPY_KBD_EXCEPTION (1)
#define MICROPY_ASYNC_KBD_INTR (1)
#define mp_type_fileio mp_type_vfs_posix_fileio
#define mp_type_textio mp_type_vfs_posix_textio
extern const struct _mp_obj_module_t mp_module_machine;
extern const struct _mp_obj_module_t mp_module_os;
extern const struct _mp_obj_module_t mp_module_uos_vfs;
extern const struct _mp_obj_module_t mp_module_uselect;
extern const struct _mp_obj_module_t mp_module_time;
extern const struct _mp_obj_module_t mp_module_termios;
extern const struct _mp_obj_module_t mp_module_socket;
extern const struct _mp_obj_module_t mp_module_ffi;
extern const struct _mp_obj_module_t mp_module_jni;
#if MICROPY_PY_UOS_VFS
#define MICROPY_PY_UOS_DEF { MP_ROM_QSTR(MP_QSTR_uos), MP_ROM_PTR(&mp_module_uos_vfs) },
#else
#define MICROPY_PY_UOS_DEF { MP_ROM_QSTR(MP_QSTR_uos), MP_ROM_PTR(&mp_module_os) },
#endif
#if MICROPY_PY_FFI
#define MICROPY_PY_FFI_DEF { MP_ROM_QSTR(MP_QSTR_ffi), MP_ROM_PTR(&mp_module_ffi) },
#else
#define MICROPY_PY_FFI_DEF
#endif
#if MICROPY_PY_JNI
#define MICROPY_PY_JNI_DEF { MP_ROM_QSTR(MP_QSTR_jni), MP_ROM_PTR(&mp_module_jni) },
#else
#define MICROPY_PY_JNI_DEF
#endif
#if MICROPY_PY_UTIME
#define MICROPY_PY_UTIME_DEF { MP_ROM_QSTR(MP_QSTR_utime), MP_ROM_PTR(&mp_module_time) },
#else
#define MICROPY_PY_UTIME_DEF
#endif
#if MICROPY_PY_TERMIOS
#define MICROPY_PY_TERMIOS_DEF { MP_ROM_QSTR(MP_QSTR_termios), MP_ROM_PTR(&mp_module_termios) },
#else
#define MICROPY_PY_TERMIOS_DEF
#endif
#if MICROPY_PY_SOCKET
#define MICROPY_PY_SOCKET_DEF { MP_ROM_QSTR(MP_QSTR_usocket), MP_ROM_PTR(&mp_module_socket) },
#else
#define MICROPY_PY_SOCKET_DEF
#endif
#if MICROPY_PY_USELECT_POSIX
#define MICROPY_PY_USELECT_DEF { MP_ROM_QSTR(MP_QSTR_uselect), MP_ROM_PTR(&mp_module_uselect) },
#else
#define MICROPY_PY_USELECT_DEF
#endif
#define MICROPY_PORT_BUILTIN_MODULES \
MICROPY_PY_FFI_DEF \
MICROPY_PY_JNI_DEF \
MICROPY_PY_UTIME_DEF \
MICROPY_PY_SOCKET_DEF \
{ MP_ROM_QSTR(MP_QSTR_umachine), MP_ROM_PTR(&mp_module_machine) }, \
MICROPY_PY_UOS_DEF \
MICROPY_PY_USELECT_DEF \
MICROPY_PY_TERMIOS_DEF \
// type definitions for the specific machine
// For size_t and ssize_t
#include <unistd.h>
// assume that if we already defined the obj repr then we also defined types
#ifndef MICROPY_OBJ_REPR
#ifdef __LP64__
typedef long mp_int_t; // must be pointer size
typedef unsigned long mp_uint_t; // must be pointer size
#else
// These are definitions for machines where sizeof(int) == sizeof(void*),
// regardless of actual size.
typedef int mp_int_t; // must be pointer size
typedef unsigned int mp_uint_t; // must be pointer size
#endif
#endif
// Cannot include <sys/types.h>, as it may lead to symbol name clashes
#if _FILE_OFFSET_BITS == 64 && !defined(__LP64__)
typedef long long mp_off_t;
#else
typedef long mp_off_t;
#endif
void mp_unix_alloc_exec(size_t min_size, void **ptr, size_t *size);
void mp_unix_free_exec(void *ptr, size_t size);
void mp_unix_mark_exec(void);
#define MP_PLAT_ALLOC_EXEC(min_size, ptr, size) mp_unix_alloc_exec(min_size, ptr, size)
#define MP_PLAT_FREE_EXEC(ptr, size) mp_unix_free_exec(ptr, size)
#ifndef MICROPY_FORCE_PLAT_ALLOC_EXEC
// Use MP_PLAT_ALLOC_EXEC for any executable memory allocation, including for FFI
// (overriding libffi own implementation)
#define MICROPY_FORCE_PLAT_ALLOC_EXEC (1)
#endif
#ifdef __linux__
// Can access physical memory using /dev/mem
#define MICROPY_PLAT_DEV_MEM (1)
#endif
// Assume that select() call, interrupted with a signal, and erroring
// with EINTR, updates remaining timeout value.
#define MICROPY_SELECT_REMAINING_TIME (1)
#ifdef __ANDROID__
#include <android/api-level.h>
#if __ANDROID_API__ < 4
// Bionic libc in Android 1.5 misses these 2 functions
#define MP_NEED_LOG2 (1)
#define nan(x) NAN
#endif
#endif
#define MICROPY_PORT_BUILTINS \
{ MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&mp_builtin_open_obj) },
#define MP_STATE_PORT MP_STATE_VM
#if MICROPY_PY_BLUETOOTH
#if MICROPY_BLUETOOTH_BTSTACK
struct _mp_bluetooth_btstack_root_pointers_t;
#define MICROPY_BLUETOOTH_ROOT_POINTERS struct _mp_bluetooth_btstack_root_pointers_t *bluetooth_btstack_root_pointers;
#endif
#if MICROPY_BLUETOOTH_NIMBLE
struct _mp_bluetooth_nimble_root_pointers_t;
struct _mp_bluetooth_nimble_malloc_t;
#define MICROPY_BLUETOOTH_ROOT_POINTERS struct _mp_bluetooth_nimble_malloc_t *bluetooth_nimble_memory; struct _mp_bluetooth_nimble_root_pointers_t *bluetooth_nimble_root_pointers;
#endif
#else
#define MICROPY_BLUETOOTH_ROOT_POINTERS
#endif
#define MICROPY_PORT_ROOT_POINTERS \
const char *readline_hist[50]; \
void *mmap_region_head; \
MICROPY_BLUETOOTH_ROOT_POINTERS \
// We need to provide a declaration/definition of alloca()
// unless support for it is disabled.
#if !defined(MICROPY_NO_ALLOCA) || MICROPY_NO_ALLOCA == 0
#ifdef __FreeBSD__
#include <stdlib.h>
#else
#include <alloca.h>
#endif
#endif
// From "man readdir": "Under glibc, programs can check for the availability
// of the fields [in struct dirent] not defined in POSIX.1 by testing whether
// the macros [...], _DIRENT_HAVE_D_TYPE are defined."
// Other libc's don't define it, but proactively assume that dirent->d_type
// is available on a modern *nix system.
#ifndef _DIRENT_HAVE_D_TYPE
#define _DIRENT_HAVE_D_TYPE (1)
#endif
// This macro is not provided by glibc but we need it so ports that don't have
// dirent->d_ino can disable the use of this field.
#ifndef _DIRENT_HAVE_D_INO
#define _DIRENT_HAVE_D_INO (1)
#endif
#ifndef __APPLE__
// For debugging purposes, make printf() available to any source file.
#include <stdio.h>
#endif
#if MICROPY_PY_THREAD
#define MICROPY_BEGIN_ATOMIC_SECTION() (mp_thread_unix_begin_atomic_section(), 0xffffffff)
#define MICROPY_END_ATOMIC_SECTION(x) (void)x; mp_thread_unix_end_atomic_section()
#endif
#define MICROPY_EVENT_POLL_HOOK mp_hal_delay_us(500);
#include <sched.h>
#define MICROPY_UNIX_MACHINE_IDLE sched_yield();
#endif // MICROPY_UNIX_MINIMAL
|
{
"content_hash": "3b3414d2cd828ad9cb320d24573cb769",
"timestamp": "",
"source": "github",
"line_count": 346,
"max_line_length": 179,
"avg_line_length": 35.59537572254335,
"alnum_prop": 0.7145988957453718,
"repo_name": "pramasoul/micropython",
"id": "c74d2fd84aa5fbeadb7689041952a3ee52742811",
"size": "13546",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "ports/unix/mpconfigport.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "55179"
},
{
"name": "C",
"bytes": "35133638"
},
{
"name": "C++",
"bytes": "703228"
},
{
"name": "HTML",
"bytes": "84456"
},
{
"name": "Makefile",
"bytes": "75592"
},
{
"name": "Objective-C",
"bytes": "391937"
},
{
"name": "Python",
"bytes": "588844"
},
{
"name": "Shell",
"bytes": "4829"
}
]
}
|
W.require([], function() {
W.xtag.loadUI('/usr/share/templates/twf/main.html', function(twfWindow) {
$(twfWindow).window('open');
});
});
|
{
"content_hash": "62a0b88ac1589110c48a072b201965c0",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 74,
"avg_line_length": 28.2,
"alnum_prop": 0.6453900709219859,
"repo_name": "symbiose/symbiose",
"id": "7f5efd064f10d35f0413c3714f9030d4ba3f0275",
"size": "141",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "usr/bin/twf.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "1057"
},
{
"name": "CSS",
"bytes": "319145"
},
{
"name": "HTML",
"bytes": "48537"
},
{
"name": "JavaScript",
"bytes": "2865215"
},
{
"name": "Nginx",
"bytes": "502"
},
{
"name": "PHP",
"bytes": "410133"
}
]
}
|
/*
Version: 3.4.6 Timestamp: Sat Mar 22 22:30:15 EDT 2014
*/
.select2-container {
margin: 0;
position: relative;
display: inline-block;
/* inline-block for ie7 */
zoom: 1;
*display: inline;
vertical-align: middle;
}
.select2-container,
.select2-drop,
.select2-search,
.select2-search input {
/*
Force border-box so that % widths fit the parent
container without overlap because of margin/padding.
More Info : http://www.quirksmode.org/css/box.html
*/
-webkit-box-sizing: border-box; /* webkit */
-moz-box-sizing: border-box; /* firefox */
box-sizing: border-box; /* css3 */
}
.select2-container .select2-choice {
display: block;
height: 26px;
padding: 0 0 0 8px;
overflow: hidden;
position: relative;
border: 1px solid #aaa;
white-space: nowrap;
line-height: 26px;
color: #444;
text-decoration: none;
border-radius: 4px;
background-clip: padding-box;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-color: #fff;
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.5, #fff));
background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 50%);
background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 50%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#eeeeee', GradientType = 0);
background-image: linear-gradient(to top, #eee 0%, #fff 50%);
}
.select2-container.select2-drop-above .select2-choice {
border-bottom-color: #aaa;
border-radius: 0 0 4px 4px;
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.9, #fff));
background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 90%);
background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 90%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);
background-image: linear-gradient(to bottom, #eee 0%, #fff 90%);
}
.select2-container.select2-allowclear .select2-choice .select2-chosen {
margin-right: 42px;
}
.select2-container .select2-choice > .select2-chosen {
margin-right: 26px;
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
float: none;
width: auto;
}
.select2-container .select2-choice abbr {
display: none;
width: 12px;
height: 12px;
position: absolute;
right: 24px;
top: 8px;
font-size: 1px;
text-decoration: none;
border: 0;
background: url('../img/select2.png') right top no-repeat;
cursor: pointer;
outline: 0;
}
.select2-container.select2-allowclear .select2-choice abbr {
display: inline-block;
}
.select2-container .select2-choice abbr:hover {
background-position: right -11px;
cursor: pointer;
}
.select2-drop-mask {
border: 0;
margin: 0;
padding: 0;
position: fixed;
left: 0;
top: 0;
min-height: 100%;
min-width: 100%;
height: auto;
width: auto;
opacity: 0;
z-index: 9998;
/* styles required for IE to work */
background-color: #fff;
filter: alpha(opacity=0);
}
.select2-drop {
width: 100%;
margin-top: -1px;
position: absolute;
z-index: 9999;
top: 100%;
background: #fff;
color: #000;
border: 1px solid #aaa;
border-top: 0;
border-radius: 0 0 4px 4px;
-webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
}
.select2-drop.select2-drop-above {
margin-top: 1px;
border-top: 1px solid #aaa;
border-bottom: 0;
border-radius: 4px 4px 0 0;
-webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
}
.select2-drop-active {
border: 1px solid #5897fb;
border-top: none;
}
.select2-drop.select2-drop-above.select2-drop-active {
border-top: 1px solid #5897fb;
}
.select2-drop-auto-width {
border-top: 1px solid #aaa;
width: auto;
}
.select2-drop-auto-width .select2-search {
padding-top: 4px;
}
.select2-container .select2-choice .select2-arrow {
display: inline-block;
width: 18px;
height: 100%;
position: absolute;
right: 0;
top: 0;
border-left: 1px solid #aaa;
border-radius: 0 4px 4px 0;
background-clip: padding-box;
background: #ccc;
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#cccccc', GradientType = 0);
background-image: linear-gradient(to top, #ccc 0%, #eee 60%);
}
.select2-container .select2-choice .select2-arrow b {
display: block;
width: 100%;
height: 100%;
background: url('../img/select2.png') no-repeat 0 1px;
}
.select2-search {
display: inline-block;
width: 100%;
min-height: 26px;
margin: 0;
padding-left: 4px;
padding-right: 4px;
position: relative;
z-index: 10000;
white-space: nowrap;
}
.select2-search input {
width: 100%;
height: auto !important;
min-height: 26px;
padding: 4px 20px 4px 5px;
margin: 0;
outline: 0;
font-family: sans-serif;
font-size: 1em;
border: 1px solid #aaa;
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
background: #fff url('../img/select2.png') no-repeat 100% -22px;
background: url('../img/select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
background: url('../img/select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
background: url('../img/select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
background: url('../img/select2.png') no-repeat 100% -22px, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
}
.select2-drop.select2-drop-above .select2-search input {
margin-top: 4px;
}
.select2-search input.select2-active {
background: #fff url('../img/select2-spinner.gif') no-repeat 100%;
background: url('../img/select2-spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
background: url('../img/select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
background: url('../img/select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
background: url('../img/select2-spinner.gif') no-repeat 100%, linear-gradient(to bottom, #fff 85%, #eee 99%) 0 0;
}
.select2-container-active .select2-choice,
.select2-container-active .select2-choices {
border: 1px solid #5897fb;
outline: none;
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
box-shadow: 0 0 5px rgba(0, 0, 0, .3);
}
.select2-dropdown-open .select2-choice {
border-bottom-color: transparent;
-webkit-box-shadow: 0 1px 0 #fff inset;
box-shadow: 0 1px 0 #fff inset;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
background-color: #eee;
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #fff), color-stop(0.5, #eee));
background-image: -webkit-linear-gradient(center bottom, #fff 0%, #eee 50%);
background-image: -moz-linear-gradient(center bottom, #fff 0%, #eee 50%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
background-image: linear-gradient(to top, #fff 0%, #eee 50%);
}
.select2-dropdown-open.select2-drop-above .select2-choice,
.select2-dropdown-open.select2-drop-above .select2-choices {
border: 1px solid #5897fb;
border-top-color: transparent;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(0.5, #eee));
background-image: -webkit-linear-gradient(center top, #fff 0%, #eee 50%);
background-image: -moz-linear-gradient(center top, #fff 0%, #eee 50%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
background-image: linear-gradient(to bottom, #fff 0%, #eee 50%);
}
.select2-dropdown-open .select2-choice .select2-arrow {
background: transparent;
border-left: none;
filter: none;
}
.select2-dropdown-open .select2-choice .select2-arrow b {
background-position: -18px 1px;
}
.select2-hidden-accessible {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
/* results */
.select2-results {
max-height: 200px;
padding: 0 0 0 4px;
margin: 4px 4px 4px 0;
position: relative;
overflow-x: hidden;
overflow-y: auto;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.select2-results ul.select2-result-sub {
margin: 0;
padding-left: 0;
}
.select2-results ul.select2-result-sub > li .select2-result-label { padding-left: 20px }
.select2-results ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 40px }
.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 60px }
.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 80px }
.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 100px }
.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 110px }
.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 120px }
.select2-results li {
list-style: none;
display: list-item;
background-image: none;
}
.select2-results li.select2-result-with-children > .select2-result-label {
font-weight: bold;
}
.select2-results .select2-result-label {
padding: 3px 7px 4px;
margin: 0;
cursor: pointer;
min-height: 1em;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.select2-results .select2-highlighted {
background: #3875d7;
color: #fff;
}
.select2-results li em {
background: #feffde;
font-style: normal;
}
.select2-results .select2-highlighted em {
background: transparent;
}
.select2-results .select2-highlighted ul {
background: #fff;
color: #000;
}
.select2-results .select2-no-results,
.select2-results .select2-searching,
.select2-results .select2-selection-limit {
background: #f4f4f4;
display: list-item;
padding-left: 5px;
}
/*
disabled look for disabled choices in the results dropdown
*/
.select2-results .select2-disabled.select2-highlighted {
color: #666;
background: #f4f4f4;
display: list-item;
cursor: default;
}
.select2-results .select2-disabled {
background: #f4f4f4;
display: list-item;
cursor: default;
}
.select2-results .select2-selected {
display: none;
}
.select2-more-results.select2-active {
background: #f4f4f4 url('../img/select2-spinner.gif') no-repeat 100%;
}
.select2-more-results {
background: #f4f4f4;
display: list-item;
}
/* disabled styles */
.select2-container.select2-container-disabled .select2-choice {
background-color: #f4f4f4;
background-image: none;
border: 1px solid #ddd;
cursor: default;
}
.select2-container.select2-container-disabled .select2-choice .select2-arrow {
background-color: #f4f4f4;
background-image: none;
border-left: 0;
}
.select2-container.select2-container-disabled .select2-choice abbr {
display: none;
}
/* multiselect */
.select2-container-multi .select2-choices {
height: auto !important;
height: 1%;
margin: 0;
padding: 0;
position: relative;
border: 1px solid #aaa;
cursor: text;
overflow: hidden;
background-color: #fff;
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eee), color-stop(15%, #fff));
background-image: -webkit-linear-gradient(top, #eee 1%, #fff 15%);
background-image: -moz-linear-gradient(top, #eee 1%, #fff 15%);
background-image: linear-gradient(to bottom, #eee 1%, #fff 15%);
}
.select2-locked {
padding: 3px 5px 3px 5px !important;
}
.select2-container-multi .select2-choices {
min-height: 26px;
}
.select2-container-multi.select2-container-active .select2-choices {
border: 1px solid #5897fb;
outline: none;
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
box-shadow: 0 0 5px rgba(0, 0, 0, .3);
}
.select2-container-multi .select2-choices li {
float: left;
list-style: none;
}
html[dir="rtl"] .select2-container-multi .select2-choices li
{
float: right;
}
.select2-container-multi .select2-choices .select2-search-field {
margin: 0;
padding: 0;
white-space: nowrap;
}
.select2-container-multi .select2-choices .select2-search-field input {
padding: 5px;
margin: 1px 0;
font-family: sans-serif;
font-size: 100%;
color: #666;
outline: 0;
border: 0;
-webkit-box-shadow: none;
box-shadow: none;
background: transparent !important;
}
.select2-container-multi .select2-choices .select2-search-field input.select2-active {
background: #fff url('../img/select2-spinner.gif') no-repeat 100% !important;
}
.select2-default {
color: #999 !important;
}
.select2-container-multi .select2-choices .select2-search-choice {
padding: 3px 5px 3px 18px;
margin: 3px 0 3px 5px;
position: relative;
line-height: 13px;
color: #333;
cursor: default;
border: 1px solid #aaaaaa;
border-radius: 3px;
-webkit-box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
background-clip: padding-box;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-color: #e4e4e4;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#f4f4f4', GradientType=0);
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eee));
background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
background-image: linear-gradient(to top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
}
html[dir="rtl"] .select2-container-multi .select2-choices .select2-search-choice
{
margin-left: 0;
margin-right: 5px;
}
.select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
cursor: default;
}
.select2-container-multi .select2-choices .select2-search-choice-focus {
background: #d4d4d4;
}
.select2-search-choice-close {
display: block;
width: 12px;
height: 13px;
position: absolute;
right: 3px;
top: 4px;
font-size: 1px;
outline: none;
background: url('../img/select2.png') right top no-repeat;
}
html[dir="rtl"] .select2-search-choice-close {
right: auto;
left: 3px;
}
.select2-container-multi .select2-search-choice-close {
left: 3px;
}
.select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
background-position: right -11px;
}
.select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
background-position: right -11px;
}
/* disabled styles */
.select2-container-multi.select2-container-disabled .select2-choices {
background-color: #f4f4f4;
background-image: none;
border: 1px solid #ddd;
cursor: default;
}
.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
padding: 3px 5px 3px 5px;
border: 1px solid #ddd;
background-image: none;
background-color: #f4f4f4;
}
.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close { display: none;
background: none;
}
/* end multiselect */
.select2-result-selectable .select2-match,
.select2-result-unselectable .select2-match {
text-decoration: underline;
}
.select2-offscreen, .select2-offscreen:focus {
clip: rect(0 0 0 0) !important;
width: 1px !important;
height: 1px !important;
border: 0 !important;
margin: 0 !important;
padding: 0 !important;
overflow: hidden !important;
position: absolute !important;
outline: 0 !important;
left: 0px !important;
top: 0px !important;
}
.select2-display-none {
display: none;
}
.select2-measure-scrollbar {
position: absolute;
top: -10000px;
left: -10000px;
width: 100px;
height: 100px;
overflow: scroll;
}
/* Retina-ize icons */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 2dppx) {
.select2-search input,
.select2-search-choice-close,
.select2-container .select2-choice abbr,
.select2-container .select2-choice .select2-arrow b {
background-image: url('select2x2.png') !important;
background-repeat: no-repeat !important;
background-size: 60px 40px !important;
}
.select2-search input {
background-position: 100% -21px !important;
}
}
|
{
"content_hash": "51bb38ff4be3dbaf184791a001e6fde7",
"timestamp": "",
"source": "github",
"line_count": 646,
"max_line_length": 221,
"avg_line_length": 28.472136222910216,
"alnum_prop": 0.6661229815690752,
"repo_name": "scieloorg/scielo-manager",
"id": "35999e125bea516274623f5195cbc6f17b8b2380",
"size": "18393",
"binary": false,
"copies": "3",
"ref": "refs/heads/beta",
"path": "scielomanager/scielomanager/static/css/select2.css",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "CSS",
"bytes": "123853"
},
{
"name": "HTML",
"bytes": "226054"
},
{
"name": "JavaScript",
"bytes": "393083"
},
{
"name": "Makefile",
"bytes": "1279"
},
{
"name": "Python",
"bytes": "2333489"
},
{
"name": "Thrift",
"bytes": "16462"
}
]
}
|
import pda_exceptions as e
class PDA(object):
def __init__(self, rules, input_alphabet, states,
initial_state, terminate_states):
self.rules = rules
self.input_alphabet = input_alphabet
self.states = states
self.state = initial_state
self.terminate_states = terminate_states
self.crash = False
def _crash(self):
self.crash = True
def input(self, symbol):
# print symbol + "- - " + self.state
try:
if self.crash:
raise e.PDACrashException(
"Error by input. PDA is crashed!")
self.state = self.rules[self.state][symbol]
except KeyError:
if symbol not in self.input_alphabet:
self._crash()
raise e.UnknownSymbolException(
"Symbol isn't in input alphabet")
else:
self._crash()
raise e.PDACrashException(
"PDA is crashed")
def in_terminate_state(self):
return self.state in self.terminate_states
|
{
"content_hash": "70c5bd65716c2064b8462de6f22bc4f5",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 55,
"avg_line_length": 31.571428571428573,
"alnum_prop": 0.5402714932126697,
"repo_name": "Imperat/SSU-Courses",
"id": "e22a6e9bd7a74e8f69cf44f2d67f7a108f4bb7c1",
"size": "1105",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "ssu-formal-languages/pda/pda.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "17006"
},
{
"name": "CLIPS",
"bytes": "9605"
},
{
"name": "Go",
"bytes": "2130"
},
{
"name": "Haskell",
"bytes": "301"
},
{
"name": "Prolog",
"bytes": "4822"
},
{
"name": "Python",
"bytes": "49837"
},
{
"name": "Racket",
"bytes": "2434"
}
]
}
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Struct bad_adjustment</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../date_time/doxy.html#header.boost.date_time.local_time.posix_time_zone_hpp" title="Header <boost/date_time/local_time/posix_time_zone.hpp>">
<link rel="prev" href="time_label_invalid.html" title="Struct time_label_invalid">
<link rel="next" href="bad_offset.html" title="Struct bad_offset">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="time_label_invalid.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.local_time.posix_time_zone_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="bad_offset.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.local_time.bad_adjustment"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct bad_adjustment</span></h2>
<p>boost::local_time::bad_adjustment — simple exception for UTC daylight savings adjustment </p>
</div>
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../date_time/doxy.html#header.boost.date_time.local_time.posix_time_zone_hpp" title="Header <boost/date_time/local_time/posix_time_zone.hpp>">boost/date_time/local_time/posix_time_zone.hpp</a>>
</span>
<span class="keyword">struct</span> <a class="link" href="bad_adjustment.html" title="Struct bad_adjustment">bad_adjustment</a> <span class="special">:</span> <span class="keyword">public</span> <span class="identifier">out_of_range</span> <span class="special">{</span>
<span class="comment">// <a class="link" href="bad_adjustment.html#boost.local_time.bad_adjustmentconstruct-copy-destruct">construct/copy/destruct</a></span>
<a class="link" href="bad_adjustment.html#idm45507110386960-bb"><span class="identifier">bad_adjustment</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="keyword">const</span> <span class="special">&</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="idm45555354075120"></a><h2>Description</h2>
<div class="refsect2">
<a name="idm45555354074704"></a><h3>
<a name="boost.local_time.bad_adjustmentconstruct-copy-destruct"></a><code class="computeroutput">bad_adjustment</code>
public
construct/copy/destruct</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><a name="idm45507110386960-bb"></a><span class="identifier">bad_adjustment</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="keyword">const</span> <span class="special">&</span> msg <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">(</span><span class="special">)</span><span class="special">)</span><span class="special">;</span></pre></li></ol></div>
</div>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2001-2005 CrystalClear Software, Inc<p>Subject to the Boost Software License, Version 1.0. (See accompanying file
<code class="filename">LICENSE_1_0.txt</code> or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="time_label_invalid.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#header.boost.date_time.local_time.posix_time_zone_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="bad_offset.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
|
{
"content_hash": "583230ac49396be3b610bfec0f0f2402",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 673,
"avg_line_length": 94.43548387096774,
"alnum_prop": 0.6794192997438087,
"repo_name": "zjutjsj1004/third",
"id": "c805e6f236a6e2990f0005bed78ce788a2da02c8",
"size": "5855",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "boost/doc/html/boost/local_time/bad_adjustment.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "224158"
},
{
"name": "Batchfile",
"bytes": "33175"
},
{
"name": "C",
"bytes": "5576593"
},
{
"name": "C#",
"bytes": "41850"
},
{
"name": "C++",
"bytes": "179595990"
},
{
"name": "CMake",
"bytes": "28348"
},
{
"name": "CSS",
"bytes": "331303"
},
{
"name": "Cuda",
"bytes": "26521"
},
{
"name": "FORTRAN",
"bytes": "1856"
},
{
"name": "Groff",
"bytes": "1305458"
},
{
"name": "HTML",
"bytes": "159660377"
},
{
"name": "IDL",
"bytes": "15"
},
{
"name": "JavaScript",
"bytes": "285786"
},
{
"name": "Lex",
"bytes": "1290"
},
{
"name": "Makefile",
"bytes": "1202020"
},
{
"name": "Max",
"bytes": "37424"
},
{
"name": "Objective-C",
"bytes": "3674"
},
{
"name": "Objective-C++",
"bytes": "651"
},
{
"name": "PHP",
"bytes": "60249"
},
{
"name": "Perl",
"bytes": "37297"
},
{
"name": "Perl6",
"bytes": "2130"
},
{
"name": "Python",
"bytes": "1833677"
},
{
"name": "QML",
"bytes": "613"
},
{
"name": "QMake",
"bytes": "17385"
},
{
"name": "Rebol",
"bytes": "372"
},
{
"name": "Shell",
"bytes": "1144162"
},
{
"name": "Tcl",
"bytes": "1205"
},
{
"name": "TeX",
"bytes": "38313"
},
{
"name": "XSLT",
"bytes": "564356"
},
{
"name": "Yacc",
"bytes": "20341"
}
]
}
|
package org.apache.camel.spring.management;
import javax.management.MBeanServer;
import javax.management.ObjectName;
import org.apache.camel.spring.SpringTestSupport;
import org.junit.Test;
import org.springframework.context.support.AbstractXmlApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
*
*/
public class SpringManagedSedaEndpointTest extends SpringTestSupport {
@Override
protected boolean useJmx() {
return true;
}
@Override
protected AbstractXmlApplicationContext createApplicationContext() {
return new ClassPathXmlApplicationContext("org/apache/camel/spring/management/SpringManagedSedaEndpointTest.xml");
}
protected MBeanServer getMBeanServer() {
return context.getManagementStrategy().getManagementAgent().getMBeanServer();
}
@Test
public void testSedaEndpoint() throws Exception {
getMockEndpoint("mock:result").expectedMessageCount(2);
template.sendBody("seda:start", "Hello World");
template.sendBody("seda:start", "Bye World");
assertMockEndpointsSatisfied();
MBeanServer mbeanServer = getMBeanServer();
ObjectName name = ObjectName.getInstance("org.apache.camel:context=camel-1,type=endpoints,name=\"seda://start\"");
String uri = (String) mbeanServer.getAttribute(name, "EndpointUri");
assertEquals("seda://start", uri);
Long timeout = (Long) mbeanServer.getAttribute(name, "Timeout");
assertEquals(30000, timeout.intValue());
Integer size = (Integer) mbeanServer.getAttribute(name, "CurrentQueueSize");
assertEquals(0, size.intValue());
// stop route
context.stopRoute("foo");
// send a message to queue
template.sendBody("seda:start", "Hi World");
size = (Integer) mbeanServer.getAttribute(name, "CurrentQueueSize");
assertEquals(1, size.intValue());
Long size2 = (Long) mbeanServer.invoke(name, "queueSize", null, null);
assertEquals(1, size2.longValue());
String out = (String) mbeanServer.invoke(name, "browseExchange", new Object[]{0}, new String[]{"java.lang.Integer"});
assertNotNull(out);
// message body is not dumped when browsing exchange
assertFalse(out.contains("Hi World"));
out = (String) mbeanServer.invoke(name, "browseMessageBody", new Object[]{0}, new String[]{"java.lang.Integer"});
assertNotNull(out);
assertTrue(out.contains("Hi World"));
mbeanServer.invoke(name, "purgeQueue", null, null);
size = (Integer) mbeanServer.getAttribute(name, "CurrentQueueSize");
assertEquals(0, size.intValue());
}
}
|
{
"content_hash": "cd26a77ac19ebc287843769404bc1357",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 125,
"avg_line_length": 34.91025641025641,
"alnum_prop": 0.6889460154241646,
"repo_name": "sverkera/camel",
"id": "b392810b5cbd69cf4296a8dc2d5b5932d56f552e",
"size": "3526",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "components/camel-spring/src/test/java/org/apache/camel/spring/management/SpringManagedSedaEndpointTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Apex",
"bytes": "6519"
},
{
"name": "Batchfile",
"bytes": "1518"
},
{
"name": "CSS",
"bytes": "30373"
},
{
"name": "Elm",
"bytes": "10852"
},
{
"name": "FreeMarker",
"bytes": "11410"
},
{
"name": "Groovy",
"bytes": "44835"
},
{
"name": "HTML",
"bytes": "903016"
},
{
"name": "Java",
"bytes": "74372940"
},
{
"name": "JavaScript",
"bytes": "90399"
},
{
"name": "Makefile",
"bytes": "513"
},
{
"name": "Python",
"bytes": "36"
},
{
"name": "Ruby",
"bytes": "4802"
},
{
"name": "Scala",
"bytes": "323982"
},
{
"name": "Shell",
"bytes": "17120"
},
{
"name": "Tcl",
"bytes": "4974"
},
{
"name": "Thrift",
"bytes": "6979"
},
{
"name": "XQuery",
"bytes": "546"
},
{
"name": "XSLT",
"bytes": "288715"
}
]
}
|
package com.blog.start.jpa.service;
import com.blog.start.jpa.entity.Blog;
import com.blog.start.jpa.entity.Item;
import com.blog.start.jpa.entity.Role;
import com.blog.start.jpa.entity.User;
import com.blog.start.jpa.repositorie.BlogRepository;
import com.blog.start.jpa.repositorie.ItemRepository;
import com.blog.start.jpa.repositorie.RoleRepository;
import com.blog.start.jpa.repositorie.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.security.authentication.encoding.Md5PasswordEncoder;
import org.springframework.stereotype.Service;
import javax.transaction.Transactional;
import java.util.ArrayList;
import java.util.List;
/**
* Created by MahfuzCSE'11 on 12-Oct-16.
*/
@Service
@Transactional
public class UserService {
@Autowired
private UserRepository userRepository;
@Autowired
private BlogRepository blogRepository;
@Autowired
private ItemRepository itemRepository;
@Autowired
private RoleRepository roleRepository;
public List<User> findAll() {
return userRepository.findAll();
}
public User findOne(int id) {
return userRepository.findOne(id);
}
@Transactional
public User findOneWithBlogs(int id) {
User user = findOne(id);
List<Blog> blogs = blogRepository.findByUser(user);
for (Blog blog : blogs) {
List<Item> items = itemRepository.findByBlog(blog, new PageRequest(0, 10, Sort.Direction.DESC, "publishedDate"));
blog.setItems(items);
}
user.setBlogs(blogs);
return user;
}
public void save(User user) {
user.setEnabled(true);
Md5PasswordEncoder md5PasswordEncoder = new Md5PasswordEncoder();
user.setPassword(md5PasswordEncoder.encodePassword(user.getPassword(), null));
List<Role> roles = new ArrayList<Role>();
roles.add(roleRepository.findByName("ROLE_USER"));
user.setRoles(roles);
userRepository.save(user);
}
public User findOneWithBlogs(String name) {
User user = userRepository.findByName(name);
return findOneWithBlogs(user.getId());
}
public void delete(int id) {
userRepository.delete(id);
}
}
|
{
"content_hash": "df10916bdddc6b28cdbe38082fdb5c38",
"timestamp": "",
"source": "github",
"line_count": 100,
"max_line_length": 125,
"avg_line_length": 23.69,
"alnum_prop": 0.7078936260025327,
"repo_name": "6895mahfuzgit/SpringBlogsWebsite",
"id": "6a257b46ce36c420a93da34d2ec792af1d82812e",
"size": "2369",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/com/blog/start/jpa/service/UserService.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "3362"
},
{
"name": "Java",
"bytes": "120809"
},
{
"name": "JavaScript",
"bytes": "1636"
}
]
}
|
<!--
@license Apache-2.0
Copyright (c) 2018 The Stdlib Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title></title>
<style>
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
</style>
<style>
body {
box-sizing: border-box;
width: 100%;
padding: 40px;
}
#console {
width: 100%;
}
</style>
</head>
<body>
<p id="status">Running...</p>
<br>
<div id="console"></div>
<script type="text/javascript">
(function() {
'use strict';
// VARIABLES //
var methods = [
'log',
'error',
'warn',
'dir',
'debug',
'info',
'trace'
];
// MAIN //
/**
* Main.
*
* @private
*/
function main() {
var console;
var str;
var el;
var i;
// FIXME: IE9 has a non-standard `console.log` object (http://stackoverflow.com/questions/5538972/console-log-apply-not-working-in-ie9)
console = window.console || {};
for ( i = 0; i < methods.length; i++ ) {
console[ methods[ i ] ] = write;
}
el = document.querySelector( '#console' );
str = el.innerHTML;
/**
* Writes content to a DOM element. Note that this assumes a single argument and no substitution strings.
*
* @private
* @param {string} message - message
*/
function write( message ) {
str += '<p>'+message+'</p>';
el.innerHTML = str;
}
}
main();
})();
</script>
<script type="text/javascript" src="/docs/api/latest/@stdlib/blas/base/scopy/test_bundle.js"></script>
</body>
</html>
|
{
"content_hash": "d01006699b231338f17d18f4bd231c93",
"timestamp": "",
"source": "github",
"line_count": 150,
"max_line_length": 139,
"avg_line_length": 22.226666666666667,
"alnum_prop": 0.6217756448710258,
"repo_name": "stdlib-js/www",
"id": "85ed1b102eba5e441b3a581395b7ce3722c0b3e9",
"size": "3334",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "public/docs/api/latest/@stdlib/blas/base/scopy/test.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "190538"
},
{
"name": "HTML",
"bytes": "158086013"
},
{
"name": "Io",
"bytes": "14873"
},
{
"name": "JavaScript",
"bytes": "5395746994"
},
{
"name": "Makefile",
"bytes": "40479"
},
{
"name": "Shell",
"bytes": "9744"
}
]
}
|
import { Catalogue } from "../catalogue.class";
export class CataloguesLoadedEvent {
constructor(public catalogues: Catalogue[]) {}
}
|
{
"content_hash": "851be438e90d2d6e8ab67e18ca047e87",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 47,
"avg_line_length": 14,
"alnum_prop": 0.7214285714285714,
"repo_name": "danigiri/particle",
"id": "b697fdfad686fde9327e24d72a9c35cefbd90f9a",
"size": "745",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/typescript/src/app/events/catalogues-loaded.event.ts",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "225"
},
{
"name": "HTML",
"bytes": "1277"
},
{
"name": "Java",
"bytes": "19324"
},
{
"name": "JavaScript",
"bytes": "2184"
},
{
"name": "TypeScript",
"bytes": "10890"
}
]
}
|
package apple.intents.enums;
import org.moe.natj.general.ann.Generated;
import org.moe.natj.general.ann.NInt;
@Generated
public final class INStartCallContactUnsupportedReason {
@Generated
private INStartCallContactUnsupportedReason() {
}
@Generated @NInt public static final long NoContactFound = 0x0000000000000001L;
@Generated @NInt public static final long MultipleContactsUnsupported = 0x0000000000000002L;
@Generated @NInt public static final long NoHandleForLabel = 0x0000000000000003L;
@Generated @NInt public static final long InvalidHandle = 0x0000000000000004L;
@Generated @NInt public static final long UnsupportedMmiUssd = 0x0000000000000005L;
@Generated @NInt public static final long NoCallHistoryForRedial = 0x0000000000000006L;
@Generated @NInt public static final long NoUsableHandleForRedial = 0x0000000000000007L;
}
|
{
"content_hash": "ab8034b35b880fe22d3d3139ca991992",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 96,
"avg_line_length": 46.21052631578947,
"alnum_prop": 0.8018223234624146,
"repo_name": "multi-os-engine/moe-core",
"id": "5ae652348a3378f6a1b129ef60a87227b3888b5a",
"size": "878",
"binary": false,
"copies": "1",
"ref": "refs/heads/moe-master",
"path": "moe.apple/moe.platform.ios/src/main/java/apple/intents/enums/INStartCallContactUnsupportedReason.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "892337"
},
{
"name": "C++",
"bytes": "155476"
},
{
"name": "HTML",
"bytes": "42061"
},
{
"name": "Java",
"bytes": "46670080"
},
{
"name": "Objective-C",
"bytes": "94699"
},
{
"name": "Objective-C++",
"bytes": "9128"
},
{
"name": "Perl",
"bytes": "35206"
},
{
"name": "Python",
"bytes": "15418"
},
{
"name": "Shell",
"bytes": "10932"
}
]
}
|
<?php
namespace Victoire\Bundle\MediaBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Response;
use Victoire\Bundle\MediaBundle\Entity\Folder;
use Victoire\Bundle\MediaBundle\Form\FolderType;
/**
* folder controller.
*
* @Route("/victoire-media/folder")
*/
class FolderController extends Controller
{
/**
* @param int $folderId The folder id
*
* @Route("/{folderId}", requirements={"folderId" = "\d+"}, name="VictoireMediaBundle_folder_show")
* @Template()
*
* @return array
*/
public function showAction($folderId)
{
$em = $this->getDoctrine()->getManager();
/* @var Folder $folder */
$folder = $em->getRepository('VictoireMediaBundle:Folder')->getFolder($folderId);
$folders = $em->getRepository('VictoireMediaBundle:Folder')->getAllFolders();
$sub = new Folder();
$sub->setParent($folder);
$subForm = $this->createForm(new FolderType($sub), $sub);
$editForm = $this->createForm(new FolderType($folder), $folder);
return [
'mediamanager' => $this->get('victoire_media.media_manager'),
'subform' => $subForm->createView(),
'editform' => $editForm->createView(),
'folder' => $folder,
'folders' => $folders,
];
}
/**
* @param int $folderId
*
* @Route("/delete/{folderId}", requirements={"folderId" = "\d+"}, name="VictoireMediaBundle_folder_delete")
*
* @return RedirectResponse
*/
public function deleteAction($folderId)
{
$em = $this->getDoctrine()->getManager();
/* @var Folder $folder */
$folder = $em->getRepository('VictoireMediaBundle:Folder')->getFolder($folderId);
$folderName = $folder->getName();
$parentFolder = $folder->getParent();
if (empty($parentFolder)) {
$this->get('session')->getFlashBag()->add('failure', 'You can\'t delete the \''.$folderName.'\' Folder!');
} else {
$folder->setDeleted(true);
$em->persist($folder);
$em->flush();
$this->get('session')->getFlashBag()->add('success', 'Folder \''.$folderName.'\' has been deleted!');
$folderId = $parentFolder->getId();
}
return new RedirectResponse($this->generateUrl('VictoireMediaBundle_folder_show', ['folderId' => $folderId]));
}
/**
* @param int $folderId
*
* @Route("/subcreate/{folderId}", requirements={"folderId" = "\d+"}, name="VictoireMediaBundle_folder_sub_create")
* @Method({"GET", "POST"})
* @Template()
*
* @return Response
*/
public function subCreateAction($folderId)
{
$em = $this->getDoctrine()->getManager();
$request = $this->getRequest();
/* @var Folder $parent */
$parent = $em->getRepository('VictoireMediaBundle:Folder')->getFolder($folderId);
$folder = new Folder();
$folder->setParent($parent);
$form = $this->createForm(new FolderType(), $folder);
if ('POST' == $request->getMethod()) {
$form->bind($request);
if ($form->isValid()) {
$em->getRepository('VictoireMediaBundle:Folder')->save($folder);
$this->get('session')->getFlashBag()->add('success', 'Folder \''.$folder->getName().'\' has been created!');
return new Response('<script>window.location="'.$this->generateUrl('VictoireMediaBundle_folder_show', ['folderId' => $folder->getId()]).'"</script>');
}
}
$galleries = $em->getRepository('VictoireMediaBundle:Folder')->getAllFolders();
return $this->render('VictoireMediaBundle:Folder:addsub-modal.html.twig', [
'subform' => $form->createView(),
'galleries' => $galleries,
'folder' => $folder,
'parent' => $parent,
]);
}
}
|
{
"content_hash": "5f177b41b0980ef00f4be788e813b1ed",
"timestamp": "",
"source": "github",
"line_count": 119,
"max_line_length": 166,
"avg_line_length": 35.747899159663866,
"alnum_prop": 0.5876821814762576,
"repo_name": "vincent-chapron/victoire",
"id": "c05942a81e5b27c5d6374c616280b7438bbf0880",
"size": "4254",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Bundle/MediaBundle/Controller/FolderController.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "30817"
},
{
"name": "ApacheConf",
"bytes": "2621"
},
{
"name": "CSS",
"bytes": "682338"
},
{
"name": "Cucumber",
"bytes": "34735"
},
{
"name": "HTML",
"bytes": "232675"
},
{
"name": "JavaScript",
"bytes": "3935961"
},
{
"name": "PHP",
"bytes": "1237990"
},
{
"name": "Shell",
"bytes": "1022"
}
]
}
|
'use strict';
module.exports = Each;
function Each(fn) {
this.fn = fn;
this.sources = [];
this._onRead = this._onRead.bind(this);
}
Each.prototype.feed = function (sources) {
this.sources = sources;
var chunk;
while (chunk = this.fetch()) {
if (chunk.end) return;
if (chunk.next) continue;
this.fn(chunk.data, chunk.index);
}
};
Each.prototype.fetch = function () {
const sources = this.sources;
const length = sources.length;
var i = -1;
while (++i < length) {
var source = sources[i];
var chunk = source.read(chunk);
if (chunk.next) return chunk;
if (chunk.end) return chunk;
}
return chunk;
};
Each.prototype.feedAsync = function (sources) {
this.sources = sources;
this.length = sources.length;
this.index = -1;
this.fetchAsync();
};
Each.prototype.fetchAsync = function (chunk) {
const sources = this.sources;
const length = this.length;
while (++this.index < length) {
var source = sources[this.index];
if (source.async)
return source.readAsync(chunk, this._onRead);
chunk = source.read(chunk);
if (chunk.end) return;
if (chunk.next) {
this.index = -1;
return this.fetchAsync();
}
}
this.fn(chunk.data, chunk.index);
this.index = -1;
this.fetchAsync();
};
Each.prototype._onRead = function (chunk) {
if (chunk.end) return;
if (chunk.next) {
this.index = -1;
return this.fetchAsync();
}
this.fetchAsync(chunk);
};
|
{
"content_hash": "14cd5f0eaae46e22a0193889111993f5",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 51,
"avg_line_length": 23.11111111111111,
"alnum_prop": 0.6304945054945055,
"repo_name": "shishidosoichiro/lazy",
"id": "857f98e70d33dfa8e2fd967fd4c2e98155a21db4",
"size": "1456",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src2/each.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "49313"
}
]
}
|
var component = FlowComponents.define("profiler.flameviewer", function(params) {
this._domPathCache = [];
this._selectedFunctions = {};
this._currentPath = null;
// initialization
this.autorun(function() {
if(!params.cpuProfileFn()) {return;}
var cpuProfile = params.cpuProfileFn();
if(cpuProfile) {
this.setProfile(cpuProfile);
}
});
this.onRendered(function() {
this.autorun(function() {
var height = (params.heightFn)? params.heightFn() : 0;
this.setSize(height);
});
this.autorun(function() {
var cpuProfile = params.cpuProfileFn();
if(!params.currentPathFn ||!cpuProfile ) {return;}
var currentPath = params.currentPathFn();
this.renderPath(currentPath);
});
});
this.onRendered(function() {
this.autorun(function() {
var self = this;
var selectedFunctions = params.selectedFunctionsFn() || [];
if(selectedFunctions.length > 0) {
this.clearSelection();
selectedFunctions.forEach(function (func) {
self.selectFunction(func);
});
} else {
this.clearSelection();
}
});
});
// events
this._onClick = this._handleEvents("click", params.onClick);
this._onHover = this._handleEvents("hover", params.onHover);
this._onChartLeave = params.onChartLeave || Function.prototype;
});
component.prototype.setProfile = function(profile) {
this.cpuProfile = profile;
this._domPathCache = [];
this._selectedFunctions = {};
this._currentPath = null;
};
component.prototype.renderPath = function(pathId) {
var el = this.$(".flameviewer-container");
var container = this._domPathCache[pathId];
if(!container) {
container = this._generatePath(pathId);
this._domPathCache[pathId] = container;
}
this._currentPath = pathId;
$(el).html("");
$(el).append(container);
this._setEventHandlers(container);
};
component.prototype.setSize = function(height) {
var self = this;
var el = self.$(".flameviewer-container");
el.height(height);
// We get the width from the actual dom element
width = el.width();
function reSelectFunctions(){
for(var k in self._selectedFunctions) {
var selected = self._selectedFunctions[k];
self.selectFunction(selected.callUID);
}
}
function clearDomCache () {
self._domPathCache = {};
}
if(width > 0 && this.width !== width) {
this.width = width;
clearDomCache();
}
if(height > 0 && this.height !== height) {
this.height = height;
clearDomCache();
}
if(!_.isNull(this._currentPath) && !_.isUndefined(this._currentPath)) {
this.renderPath(this._currentPath);
reSelectFunctions();
}
};
component.prototype.selectFunction = function(callUID) {
var pathDom = this._domPathCache[this._currentPath];
var funcDom = $(".func-" + callUID, pathDom);
var oldClass = funcDom.attr("class");
oldClass += " selected-function";
funcDom.attr("class", oldClass);
this._selectedFunctions[this._currentPath + "-" + callUID] = {
callUID: callUID, path: this._currentPath
};
};
component.prototype.unselectFunction = function(callUID, pathId) {
var pathDom = this._domPathCache[pathId];
var dom = $(".func-" + callUID, pathDom);
if(dom.length > 0) {
var oldClass = dom.attr("class");
oldClass = oldClass.replace(/selected-function/, "").trim();
dom.attr("class", oldClass);
}
var key = pathId + "" + callUID;
if(key){
delete this._selectedFunctions[key];
}
};
component.prototype.clearSelection = function() {
var self = this;
for(var selected in this._selectedFunctions){
self.unselectFunction(
this._selectedFunctions[selected].callUID,
this._selectedFunctions[selected].path
);
}
};
component.prototype._generatePath = function(pathId) {
var self = this;
var svgHtml = "";
var path = this._getData(pathId);
var maxDepth = 0;
var generateFunctionNode = _.template($("#flamebar-node").text().trim());
renderNode(path);
var height = (maxDepth + 1) * 20;
var container = $("<div></div>");
var htmlString =
"<svg width=\"" + this.width + "\" height=\"" +
height + "\">" + svgHtml + "</svg>";
container.html(htmlString);
return container;
function renderNode(node, depth) {
depth = depth || 0;
node = _.clone(node);
node.viewer = self;
node._depth = depth;
node._color = FunctionNode.getColor(node);
node._width = FunctionNode.getWidth(self, node);
node._displayName = FunctionNode.getDisplayName(self, node);
maxDepth = (depth > maxDepth)? depth: maxDepth;
svgHtml += generateFunctionNode(node);
if(node.children && node.children.length > 0) {
var children = self._getChildren(node);
children.forEach(function(child) {
renderNode(child, depth + 1);
});
}
}
};
component.prototype._setEventHandlers = function(container) {
container.off("click", "rect, text", this._onClick);
container.off("mouseover", "rect, text", this._onHover);
container.off("mouseleave", this._onChartLeave);
container.on("click", "rect, text", this._onClick);
container.on("mouseover", "rect, text", this._onHover);
container.on("mouseleave", this._onChartLeave);
};
component.prototype.destroy = function() {
};
component.prototype._getData = function (pathId) {
if(pathId >= 0) {
var path = this.cpuProfile.paths[pathId];
this._maxWidth = path.totalHitCount;
path._x = 0;
return path;
}
};
component.prototype._getChildren = function (node) {
var self = this;
var offset = node._x;
var totalX = 0;
var children = node.children.map(function(child) {
child = _.clone(child);
child._x = offset + FunctionNode.getWidth(self, {totalHitCount: totalX});
totalX += child.totalHitCount;
return child;
});
return children;
};
component.prototype._handleEvents = function(type, callback) {
function wrapper(e) {
var dom = $(e.target);
var callUID = dom.data("calluid");
var id = dom.data("id");
var node = _.clone(this.cpuProfile.functionsMap[callUID]);
if(callback && node) {
node.hitCount = this.cpuProfile.realFunctionsMap[id].hitCount;
node.totalHitCount = this.cpuProfile.realFunctionsMap[id].totalHitCount;
callback(callUID, node);
}
}
return wrapper.bind(this);
};
// Template Helpers for the FunctionNode
var baseColors = [
"#c1e3ab",
"#b6e7bc",
"#c6ecd4",
"#b9e8d4",
"#b3e0a3"
];
FunctionNode = {};
FunctionNode.getWidth = function(viewer, node) {
return Math.floor((viewer.width/viewer._maxWidth) * node.totalHitCount);
};
FunctionNode.getColor = function(node) {
var index = node.callUID % baseColors.length;
return baseColors[index];
};
FunctionNode.getDisplayName = function(viewer, node) {
var functionNameWidth = 8 * node.functionName.length;
var barWidth = FunctionNode.getWidth(viewer, node);
if(barWidth > functionNameWidth) {
return node.functionName;
}
};
|
{
"content_hash": "403739167b48cef1dacab5bac209cc43",
"timestamp": "",
"source": "github",
"line_count": 264,
"max_line_length": 80,
"avg_line_length": 26.401515151515152,
"alnum_prop": 0.6522238163558106,
"repo_name": "kadira-open/kadira-server",
"id": "f770095a502d90541f7ae4d3ce699185c0dff17c",
"size": "6970",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "kadira-ui/client/components/0common/profiler_flameviewer/component.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "39319"
},
{
"name": "HTML",
"bytes": "131573"
},
{
"name": "JavaScript",
"bytes": "1104164"
},
{
"name": "Shell",
"bytes": "9504"
}
]
}
|
package com.pliu.powerbiembed;
import java.net.HttpURLConnection;
import java.net.URL;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.microsoft.aad.adal4j.AuthenticationResult;
@Controller
@RequestMapping("/secure/reports")
public class ReportsController {
@RequestMapping(method = { RequestMethod.GET, RequestMethod.POST })
public String getReports(ModelMap model, HttpServletRequest httpRequest) {
HttpSession session = httpRequest.getSession();
AuthenticationResult result = (AuthenticationResult) session.getAttribute(AuthHelper.PRINCIPAL_SESSION_NAME);
if (result == null) {
model.addAttribute("//error", new Exception("AuthenticationResult not found in session."));
return "/error";
}
try {
ServletContext cxt = session.getServletContext();
String proxyToken = AuthHelper.getAccessTokenFromProxyUserCredentials(cxt);
String workspaceId = cxt.getInitParameter("workspaceId");
String apiUrl = cxt.getInitParameter("apiUrl");
Report[] data;
data = getReportsFromPowerBI(workspaceId, apiUrl, proxyToken);
model.addAttribute("reports", data);
} catch (Exception e) {
model.addAttribute("error", e);
return "/error";
}
return "/secure/reports";
}
private Report[] getReportsFromPowerBI(String workspaceId, String apiUrl, String proxyToken)
throws Exception {
URL url = new URL(String.format("%s/v1.0/myorg/groups/%s/reports",
apiUrl, workspaceId));
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestProperty("Authorization", String.format("Bearer %s", proxyToken));
String goodRespStr = HttpClientHelper.getResponseStringFromConn(conn, true);
int responseCode = conn.getResponseCode();
JSONObject response = HttpClientHelper.processGoodRespStr(responseCode, goodRespStr);
JSONArray jreports = JSONHelper.fetchDirectoryObjectJSONArray(response);
int numReports = jreports.length();
Report[] reports = new Report[numReports];
for (int i = 0; i < numReports; i++) {
JSONObject thisReportJSONObject = jreports.optJSONObject(i);
reports[i] = new Report();
JSONHelper.convertJSONObjectToDirectoryObject(thisReportJSONObject, reports[i]);
}
return reports;
}
}
|
{
"content_hash": "29f4a3ef9cc3e43a572fe65f72ea97ea",
"timestamp": "",
"source": "github",
"line_count": 72,
"max_line_length": 117,
"avg_line_length": 39.44444444444444,
"alnum_prop": 0.6929577464788732,
"repo_name": "liupeirong/Azure",
"id": "62dd85ce15a3268ec13d29c67fb1269d00699f8a",
"size": "3709",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "PowerBIISVJava/javapbie/src/main/java/com/pliu/powerbiembed/ReportsController.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "1258"
},
{
"name": "Batchfile",
"bytes": "1779"
},
{
"name": "C#",
"bytes": "1467770"
},
{
"name": "CSS",
"bytes": "39286"
},
{
"name": "Dockerfile",
"bytes": "1104"
},
{
"name": "HTML",
"bytes": "117028"
},
{
"name": "Java",
"bytes": "185476"
},
{
"name": "JavaScript",
"bytes": "1127182"
},
{
"name": "Jupyter Notebook",
"bytes": "4527"
},
{
"name": "Pascal",
"bytes": "108115"
},
{
"name": "PowerShell",
"bytes": "199439"
},
{
"name": "Puppet",
"bytes": "25968"
},
{
"name": "Python",
"bytes": "270550"
},
{
"name": "R",
"bytes": "3744"
},
{
"name": "Roff",
"bytes": "904800"
},
{
"name": "SQLPL",
"bytes": "2080"
},
{
"name": "Scala",
"bytes": "64590"
},
{
"name": "Shell",
"bytes": "181097"
},
{
"name": "TypeScript",
"bytes": "51663"
}
]
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="assets/css/index.css">
</head>
<body>
<header>Your Header</header>
</body>
</html>
|
{
"content_hash": "d202ec6a9d5ec3aa7d9f567361e0587b",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 53,
"avg_line_length": 18,
"alnum_prop": 0.6363636363636364,
"repo_name": "ganlanyuan/SASS4beginners",
"id": "747b22ffc589f8df14b01a61f64f48c60842d5ce",
"size": "198",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "class1/index.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "273450"
},
{
"name": "Cucumber",
"bytes": "2792"
},
{
"name": "HTML",
"bytes": "4013"
},
{
"name": "Ruby",
"bytes": "106005"
},
{
"name": "Shell",
"bytes": "286"
}
]
}
|
package main
import (
"context"
appconnections "cloud.google.com/go/beyondcorp/appconnections/apiv1"
appconnectionspb "cloud.google.com/go/beyondcorp/appconnections/apiv1/appconnectionspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := appconnections.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &appconnectionspb.UpdateAppConnectionRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/beyondcorp/appconnections/apiv1/appconnectionspb#UpdateAppConnectionRequest.
}
op, err := c.UpdateAppConnection(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
// [END beyondcorp_v1_generated_AppConnectionsService_UpdateAppConnection_sync]
|
{
"content_hash": "a52472e96ad3acb32ff563026ab42bcd",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 124,
"avg_line_length": 30.375,
"alnum_prop": 0.7325102880658436,
"repo_name": "googleapis/google-cloud-go",
"id": "973c6413f93b0fa6734921ee7647a5c5953b8d41",
"size": "1973",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "internal/generated/snippets/beyondcorp/appconnections/apiv1/Client/UpdateAppConnection/main.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "10349"
},
{
"name": "C",
"bytes": "74"
},
{
"name": "Dockerfile",
"bytes": "1841"
},
{
"name": "Go",
"bytes": "7626642"
},
{
"name": "M4",
"bytes": "43723"
},
{
"name": "Makefile",
"bytes": "1455"
},
{
"name": "Python",
"bytes": "718"
},
{
"name": "Shell",
"bytes": "27309"
}
]
}
|
package org.apache.karaf.deployer.blueprint;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.URL;
import java.net.URLConnection;
import java.util.Enumeration;
import java.util.Properties;
import java.util.Set;
import java.util.TreeSet;
import java.util.jar.JarFile;
import java.util.jar.JarOutputStream;
import java.util.jar.Manifest;
import java.util.zip.ZipEntry;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
import org.apache.karaf.util.DeployerUtils;
import org.apache.karaf.util.XmlUtils;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import org.osgi.framework.Constants;
public class BlueprintTransformer {
public static void transform(URL url, OutputStream os) throws Exception {
// Build dom document
Document doc = parse(url);
// Heuristicly retrieve name and version
String name = getPath(url);
int idx = name.lastIndexOf('/');
if (idx >= 0) {
name = name.substring(idx + 1);
}
String[] str = DeployerUtils.extractNameVersionType(name);
// Create manifest
Manifest m = new Manifest();
m.getMainAttributes().putValue("Manifest-Version", "2");
m.getMainAttributes().putValue(Constants.BUNDLE_MANIFESTVERSION, "2");
m.getMainAttributes().putValue(Constants.BUNDLE_SYMBOLICNAME, str[0]);
m.getMainAttributes().putValue(Constants.BUNDLE_VERSION, str[1]);
String importPkgs = getImportPackages(analyze(new DOMSource(doc)));
if (importPkgs != null && importPkgs.length() > 0) {
m.getMainAttributes().putValue(Constants.IMPORT_PACKAGE, importPkgs);
}
m.getMainAttributes().putValue(Constants.DYNAMICIMPORT_PACKAGE, "*");
// Extract manifest entries from the DOM
NodeList l = doc.getElementsByTagName("manifest");
if (l != null) {
for (int i = 0; i < l.getLength(); i++) {
Element e = (Element) l.item(i);
String text = e.getTextContent();
Properties props = new Properties();
props.load(new ByteArrayInputStream(text.trim().getBytes()));
Enumeration en = props.propertyNames();
while (en.hasMoreElements()) {
String k = (String) en.nextElement();
String v = props.getProperty(k);
m.getMainAttributes().putValue(k, v);
}
e.getParentNode().removeChild(e);
}
}
// get original last modification date
long lastModified = getLastModified(url);
JarOutputStream out = new JarOutputStream(os);
ZipEntry e = new ZipEntry(JarFile.MANIFEST_NAME);
e.setTime(lastModified);
out.putNextEntry(e);
m.write(out);
out.closeEntry();
e = new ZipEntry("OSGI-INF/");
e.setTime(lastModified);
out.putNextEntry(e);
e = new ZipEntry("OSGI-INF/blueprint/");
e.setTime(lastModified);
out.putNextEntry(e);
out.closeEntry();
// check .xml file extension
if( !name.endsWith(".xml")) {
name +=".xml";
}
e = new ZipEntry("OSGI-INF/blueprint/" + name);
e.setTime(lastModified);
out.putNextEntry(e);
// Copy the new DOM
XmlUtils.transform(new DOMSource(doc), new StreamResult(out));
out.closeEntry();
out.close();
}
public static Set<String> analyze(Source source) throws Exception {
Set<String> refers = new TreeSet<String>();
ByteArrayOutputStream bout = new ByteArrayOutputStream();
Result r = new StreamResult(bout);
XmlUtils.transform(new StreamSource(BlueprintTransformer.class.getResourceAsStream("extract.xsl")), source, r);
ByteArrayInputStream bin = new ByteArrayInputStream(bout.toByteArray());
bout.close();
BufferedReader br = new BufferedReader(new InputStreamReader(bin));
String line = br.readLine();
while (line != null) {
line = line.trim();
if (line.length() > 0) {
String parts[] = line.split("\\s*,\\s*");
for (String part : parts) {
int n = part.lastIndexOf('.');
if (n > 0) {
String pkg = part.substring(0, n);
if (!pkg.startsWith("java.")) {
refers.add(pkg);
}
}
}
}
line = br.readLine();
}
br.close();
return refers;
}
protected static String getImportPackages(Set<String> packages) {
StringBuilder sb = new StringBuilder();
for (String pkg : packages) {
if (sb.length() > 0) {
sb.append(",");
}
sb.append(pkg);
}
return sb.toString();
}
protected static Document parse(URL url) throws Exception {
try (InputStream is = url.openStream()) {
return XmlUtils.parse(is);
}
}
protected static long getLastModified(URL url) throws IOException {
URLConnection urlConnection = url.openConnection();
try(InputStream is = urlConnection.getInputStream()) {
return urlConnection.getLastModified();
}
}
protected static String getPath(URL url) {
if (url.getProtocol().equals("mvn")) {
String[] parts = url.toExternalForm().substring(4).split("/");
String groupId;
String artifactId;
String version;
String type;
String qualifier;
if (parts.length < 3 || parts.length > 5) {
return url.getPath();
}
groupId = parts[0];
artifactId = parts[1];
version = parts[2];
type = (parts.length >= 4) ? "." + parts[3] : ".jar";
qualifier = (parts.length >= 5) ? "-" + parts[4] : "";
return groupId.replace('.', '/') + "/" + artifactId + "/"
+ version + "/" + artifactId + "-" + version + qualifier + type;
}
return url.getPath();
}
}
|
{
"content_hash": "cc98f6f4a86f7921b07c43991244f9b0",
"timestamp": "",
"source": "github",
"line_count": 187,
"max_line_length": 119,
"avg_line_length": 35.401069518716575,
"alnum_prop": 0.5794561933534743,
"repo_name": "grgrzybek/karaf",
"id": "448e3f67733add7603aa877fa74b9dd9fc7f5a91",
"size": "7421",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "deployer/blueprint/src/main/java/org/apache/karaf/deployer/blueprint/BlueprintTransformer.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "49208"
},
{
"name": "CSS",
"bytes": "7869"
},
{
"name": "Dockerfile",
"bytes": "2834"
},
{
"name": "Java",
"bytes": "6788289"
},
{
"name": "JavaScript",
"bytes": "27939"
},
{
"name": "Shell",
"bytes": "92466"
},
{
"name": "Visual Basic",
"bytes": "4147"
},
{
"name": "XSLT",
"bytes": "13340"
}
]
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>batchrun-dialog.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<h1>batchrun-dialog.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef BATCHRUN_DIALOG_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define BATCHRUN_DIALOG_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include <QDialog></span>
<a name="l00005"></a>00005 <span class="preprocessor">#include <QVector></span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="preprocessor">#include "ui_batchrun.h"</span>
<a name="l00008"></a>00008
<a name="l00011"></a><a class="code" href="classBatchRunDialog.html">00011</a> <span class="keyword">class </span><a class="code" href="classBatchRunDialog.html">BatchRunDialog</a> : <span class="keyword">public</span> QDialog, <span class="keyword">public</span> Ui_BatchRunDialog {
<a name="l00012"></a>00012 Q_OBJECT
<a name="l00013"></a>00013
<a name="l00014"></a>00014 <span class="keyword">public</span>:
<a name="l00018"></a>00018 <a class="code" href="classBatchRunDialog.html#39e08a5d575b43830615ccc1e4a28d39">BatchRunDialog</a>(QStringList& trsets, QWidget *parent = 0);
<a name="l00019"></a>00019
<a name="l00020"></a>00020 signals:
<a name="l00023"></a>00023 <span class="keywordtype">void</span> <a class="code" href="classBatchRunDialog.html#80b5c170f4a32dfdd3be57ab18e376cf">tracerouteBatch</a>(<span class="keyword">const</span> QString& batchFilename);
<a name="l00024"></a>00024
<a name="l00025"></a>00025 <span class="keyword">private</span> slots:
<a name="l00027"></a>00027 <span class="keywordtype">void</span> <a class="code" href="classBatchRunDialog.html#b52ece91fa455b57e6d04130bac90c71" title="slot receiving OK-clicked message">on_buttonBox_accepted</a>();
<a name="l00028"></a>00028
<a name="l00030"></a>00030 <span class="keywordtype">void</span> <a class="code" href="classBatchRunDialog.html#3e1f937ff56b551bf7dea076ceb8c147" title="slot receiving Cancel-clicked message">on_buttonBox_rejected</a>();
<a name="l00031"></a>00031 };
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="preprocessor">#endif // BATCHRUN_DIALOG_H</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Dec 21 16:45:07 2009 by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
|
{
"content_hash": "8b46aa96fd05e28c0600291a81d01f7d",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 283,
"avg_line_length": 71.26086956521739,
"alnum_prop": 0.6882245271507016,
"repo_name": "ixmaps/trgen",
"id": "769dbd115596ae4695e9d42bb906bb3b70bd7128",
"size": "3278",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "html/batchrun-dialog_8h-source.html",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "C++",
"bytes": "156214"
},
{
"name": "CSS",
"bytes": "10858"
},
{
"name": "JavaScript",
"bytes": "14544"
},
{
"name": "Objective-C",
"bytes": "1305"
},
{
"name": "Shell",
"bytes": "463"
},
{
"name": "TeX",
"bytes": "153534"
}
]
}
|
SlideMapper Versions
====================
0.1.0
------------
* Initial "good enough for jazz" version.
* Support for multiple slide configurations
* Clustering support (via Leafpile)
0.1.1
------------
* Updated to latest leaflet lib
* Updated to latest leapfile lib
* fixed bug where clicking the same marker twice triggers slide
0.1.2
------------
* Ability to use a custom image icon
|
{
"content_hash": "4821462a4d4de52410c6646a7c8f8d13",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 63,
"avg_line_length": 18.714285714285715,
"alnum_prop": 0.648854961832061,
"repo_name": "cavis/slidemapper",
"id": "8f11f64fb231641349de57c859caeb2e383b8e4f",
"size": "394",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "CHANGELOG.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "228003"
}
]
}
|
import * as sessionActions from 'app/actions/session';
const DEFAULT = {};
export default function(state=DEFAULT, action={}) {
switch (action.type) {
case sessionActions.SET_SESSION: {
const { session } = action.payload;
return session;
}
case sessionActions.SESSION_ERROR: {
// In the case of an error, we return an object with just that.
// These allows three states: 1) logged in, 2) logged out with no error
// and 3) logged out with an error (which can be cleared by sending null)
const { error } = action.payload;
return { error };
}
default: return state;
}
}
|
{
"content_hash": "0843914e3690f7c5a03e6dc31fe5c9c8",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 79,
"avg_line_length": 31.75,
"alnum_prop": 0.6456692913385826,
"repo_name": "ajacksified/reddit-mobile",
"id": "4b9951ce0482e834139ce5bd081d0b6fcd1b14a8",
"size": "635",
"binary": false,
"copies": "1",
"ref": "refs/heads/2X",
"path": "src/app/reducers/session.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "115759"
},
{
"name": "JavaScript",
"bytes": "722369"
},
{
"name": "Perl",
"bytes": "7136"
},
{
"name": "Python",
"bytes": "8795"
},
{
"name": "Shell",
"bytes": "1149"
}
]
}
|
namespace occa {
namespace lang {
class declarationStatement : public statement_t {
public:
variableDeclarationVector declarations;
bool declaredType;
declarationStatement(blockStatement *up_,
token_t *source_);
declarationStatement(blockStatement *up_,
const declarationStatement &other);
~declarationStatement();
void clearDeclarations();
void freeDeclarations();
void freeTypedefVariable(variable_t &var);
virtual statement_t& clone_(blockStatement *up_) const;
virtual int type() const;
virtual std::string statementName() const;
bool addDeclaration(variableDeclaration decl,
const bool force = false);
bool declaresVariable(variable_t &var);
virtual exprNodeArray getDirectExprNodes();
virtual void safeReplaceExprNode(exprNode *currentNode, exprNode *newNode);
virtual void print(printer &pout) const;
};
}
}
#endif
|
{
"content_hash": "cf695834df9cb20698ca1707c3b3505e",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 81,
"avg_line_length": 27.675675675675677,
"alnum_prop": 0.6474609375,
"repo_name": "libocca/occa",
"id": "befe6a780ebcee3af51ce04a0cb087ca4ac82c37",
"size": "1210",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "src/occa/internal/lang/statement/declarationStatement.hpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "107897"
},
{
"name": "C++",
"bytes": "2306041"
},
{
"name": "CMake",
"bytes": "28030"
},
{
"name": "Emacs Lisp",
"bytes": "3037"
},
{
"name": "Fortran",
"bytes": "88103"
},
{
"name": "Makefile",
"bytes": "23448"
},
{
"name": "Objective-C++",
"bytes": "22483"
},
{
"name": "Python",
"bytes": "50622"
},
{
"name": "Shell",
"bytes": "18564"
}
]
}
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.tecnologiabasica.jettyapidatabase.dao;
import com.tecnologiabasica.jettyapicommons.entity.JGenericInfoEntity;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import org.apache.log4j.Logger;
/**
*
* @author afonso
*/
public class JGenericInfoDAO {
protected void getGenericEntityFromDB(JGenericInfoEntity entity, ResultSet result) {
try {
entity.setId(result.getLong(JGenericInfoEntity.ID));
entity.setRemoteId(result.getLong(JGenericInfoEntity.REMOTE_ID));
entity.setDateTimeReceived(result.getLong(JGenericInfoEntity.DATETIME_RECEIVED));
entity.setDateTime(result.getLong(JGenericInfoEntity.DATETIME));
entity.setEmail(result.getString(JGenericInfoEntity.EMAIL));
entity.setDomainId(result.getString(JGenericInfoEntity.DOMAIN_ID));
entity.setGroupId(result.getString(JGenericInfoEntity.GROUP_ID));
} catch (SQLException ex) {
Logger.getLogger(JGenericInfoDAO.class.getName()).error(ex);
}
}
protected void getGenericMapFromEntity(HashMap<String, Object> map, JGenericInfoEntity entity) {
map.put(JGenericInfoEntity.REMOTE_ID, entity.getRemoteId());
map.put(JGenericInfoEntity.DATETIME_RECEIVED, entity.getDateTimeReceived());
map.put(JGenericInfoEntity.DATETIME, entity.getDateTime());
map.put(JGenericInfoEntity.DATETIME_STRING, entity.getDateTimeString());
map.put(JGenericInfoEntity.DATEONLY, entity.getDateOnly());
map.put(JGenericInfoEntity.TIMEONLY, entity.getTimeOnly());
map.put(JGenericInfoEntity.HOUROFDAY, entity.getHourOfDay());
map.put(JGenericInfoEntity.MINUTESOFHOUR, entity.getMinutesOfHour());
map.put(JGenericInfoEntity.DAYOFWEEK, entity.getDayOfWeek());
map.put(JGenericInfoEntity.DAYOFMONTH, entity.getDayOfMonth());
map.put(JGenericInfoEntity.MONTHOFYEAR, entity.getMonthofyear());
map.put(JGenericInfoEntity.YEAR, entity.getYear());
map.put(JGenericInfoEntity.EMAIL, entity.getEmail());
map.put(JGenericInfoEntity.DOMAIN_ID, entity.getDomainId());
map.put(JGenericInfoEntity.GROUP_ID, entity.getGroupId());
}
}
|
{
"content_hash": "a6c5cfe9a513037842523fa00e71e1f3",
"timestamp": "",
"source": "github",
"line_count": 54,
"max_line_length": 108,
"avg_line_length": 45.25925925925926,
"alnum_prop": 0.7242225859247136,
"repo_name": "afonsohmm/JettyAPISample",
"id": "b49af4052b2aadc491f58f64cbaccb212dc4f9ae",
"size": "2444",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "JettyAPIDatabase/src/main/java/com/tecnologiabasica/jettyapidatabase/dao/JGenericInfoDAO.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "1312"
},
{
"name": "HTML",
"bytes": "2255"
},
{
"name": "Java",
"bytes": "153719"
},
{
"name": "JavaScript",
"bytes": "1599"
},
{
"name": "Shell",
"bytes": "211"
}
]
}
|
import { async, TestBed } from '@angular/core/testing';
import { buildComponent, MzTestWrapperComponent } from '../shared/test-wrapper';
import { MzSpinnerComponent } from './spinner.component';
describe('MzSpinnerComponent:view', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
MzSpinnerComponent,
MzTestWrapperComponent,
],
});
}));
describe('preloader-wrapper', () => {
let nativeElement: any;
function preloaderWrapper(): HTMLElement {
return nativeElement.querySelector('.preloader-wrapper');
}
it('should apply size css class when provided', async(() => {
buildComponent<MzSpinnerComponent>(`<mz-spinner [size]="'size-x'"></mz-spinner>`).then((fixture) => {
nativeElement = fixture.nativeElement;
fixture.detectChanges();
expect(preloaderWrapper().classList).toContain('size-x');
});
}));
it('should not apply size css class when not provided', async(() => {
buildComponent<MzSpinnerComponent>(`<mz-spinner></mz-spinner>`).then((fixture) => {
const component = fixture.componentInstance;
nativeElement = fixture.nativeElement;
fixture.detectChanges();
expect(component.size).toBeUndefined();
expect(preloaderWrapper().classList.length).toBe(2);
expect(preloaderWrapper().classList).toContain('preloader-wrapper');
expect(preloaderWrapper().classList).toContain('active');
});
}));
});
describe('spinner-layer', () => {
let nativeElement: any;
function spinnerLayer(): HTMLElement {
return nativeElement.querySelector('.spinner-layer');
}
it('should have spinner-{color}-only css class when color is provided', async(() => {
buildComponent<MzSpinnerComponent>(`<mz-spinner [color]="color"></mz-spinner>`).then((fixture) => {
const component = fixture.componentInstance;
nativeElement = fixture.nativeElement;
['red', 'green', 'blue', 'yellow'].forEach((color) => {
component.color = color;
fixture.detectChanges();
expect(spinnerLayer().classList.length).toBe(2);
expect(spinnerLayer().classList).toContain('spinner-layer');
expect(spinnerLayer().classList).toContain(`spinner-${color}-only`);
});
});
}));
it('should not have spinner-{color}-only css class when color is not provided', async(() => {
buildComponent<MzSpinnerComponent>(`<mz-spinner></mz-spinner>`).then((fixture) => {
nativeElement = fixture.nativeElement;
fixture.detectChanges();
expect(spinnerLayer().classList.length).toBe(1);
expect(spinnerLayer().classList).toContain('spinner-layer');
});
}));
});
});
|
{
"content_hash": "d6cfeb4bb6f3dd8e689db3ee71d4f660",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 107,
"avg_line_length": 30.76923076923077,
"alnum_prop": 0.6335714285714286,
"repo_name": "hiagodotme/ng2-materialize",
"id": "2aa366d660c1c6079419836b79a50d42128a8037",
"size": "2800",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/app/spinner/spinner.component.view.spec.ts",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "11475"
},
{
"name": "HTML",
"bytes": "223744"
},
{
"name": "JavaScript",
"bytes": "8272"
},
{
"name": "TypeScript",
"bytes": "552798"
}
]
}
|
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Cycloconium phillyreae Nicolas & Aggéry
### Remarks
null
|
{
"content_hash": "ddbf47432236704bbab694c9020f4f6a",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 11.076923076923077,
"alnum_prop": 0.7222222222222222,
"repo_name": "mdoering/backbone",
"id": "7bbff87a4658f041f2cf329e78cc583488c1dcfe",
"size": "209",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Fungi/Ascomycota/Dothideomycetes/Pleosporales/Venturiaceae/Cycloconium/Cycloconium phillyreae/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": []
}
|
SELECT *
FROM
(SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu2" AS t1v1, qview1."stringu1" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu2" AS t2v1, qview2."stringu1"
AS t2v2 FROM
"public"."t13_1m" qview1,
"public"."t14_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu2" AS t1v1, qview1."stringu1" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu1" AS t2v1, qview2."string4"
AS t2v2 FROM
"public"."t13_1m" qview1,
"public"."t10_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu1" IS NOT NULL AND
qview2."string4" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu2" AS t1v1, qview1."stringu1" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu1" AS t2v1, qview2."stringu2"
AS t2v2 FROM
"public"."t13_1m" qview1,
"public"."t6_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu2" AS t1v1, qview1."stringu1" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu1" AS t2v1, qview2."stringu2"
AS t2v2 FROM
"public"."t13_1m" qview1,
"public"."t2_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu1" AS t1v1, qview1."string4" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu2" AS t2v1, qview2."stringu1"
AS t2v2 FROM
"public"."t9_1m" qview1,
"public"."t14_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."string4" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu1" AS t1v1, qview1."string4" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu1" AS t2v1, qview2."string4"
AS t2v2 FROM
"public"."t9_1m" qview1,
"public"."t10_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."string4" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu1" IS NOT NULL AND
qview2."string4" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu1" AS t1v1, qview1."string4" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu1" AS t2v1, qview2."stringu2"
AS t2v2 FROM
"public"."t9_1m" qview1,
"public"."t6_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."string4" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu1" AS t1v1, qview1."string4" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu1" AS t2v1, qview2."stringu2"
AS t2v2 FROM
"public"."t9_1m" qview1,
"public"."t2_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."string4" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu1" AS t1v1, qview1."stringu2" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu2" AS t2v1, qview2."stringu1"
AS t2v2 FROM
"public"."t5_1m" qview1,
"public"."t14_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu1" AS t1v1, qview1."stringu2" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu1" AS t2v1, qview2."string4"
AS t2v2 FROM
"public"."t5_1m" qview1,
"public"."t10_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu1" IS NOT NULL AND
qview2."string4" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu1" AS t1v1, qview1."stringu2" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu1" AS t2v1, qview2."stringu2"
AS t2v2 FROM
"public"."t5_1m" qview1,
"public"."t6_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu1" AS t1v1, qview1."stringu2" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu1" AS t2v1, qview2."stringu2"
AS t2v2 FROM
"public"."t5_1m" qview1,
"public"."t2_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu1" AS t1v1, qview1."stringu2" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu2" AS t2v1, qview2."stringu1"
AS t2v2 FROM
"public"."t1_1m" qview1,
"public"."t14_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu1" AS t1v1, qview1."stringu2" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu1" AS t2v1, qview2."string4"
AS t2v2 FROM
"public"."t1_1m" qview1,
"public"."t10_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu1" IS NOT NULL AND
qview2."string4" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu1" AS t1v1, qview1."stringu2" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu1" AS t2v1, qview2."stringu2"
AS t2v2 FROM
"public"."t1_1m" qview1,
"public"."t6_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu1" AS t1v1, qview1."stringu2" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu1" AS t2v1, qview2."stringu2"
AS t2v2 FROM
"public"."t1_1m" qview1,
"public"."t2_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
) f_1, (SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t3v0, qview2."stringu2" AS t3v1, qview2."stringu1"
AS t3v2 FROM
"public"."t13_1m" qview1,
"public"."t15_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t3v0, qview2."stringu1" AS t3v1, qview2."string4"
AS t3v2 FROM
"public"."t13_1m" qview1,
"public"."t11_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu1" IS NOT NULL AND
qview2."string4" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t3v0, qview2."stringu1" AS t3v1, qview2."stringu2"
AS t3v2 FROM
"public"."t13_1m" qview1,
"public"."t7_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t3v0, qview2."stringu1" AS t3v1, qview2."stringu2"
AS t3v2 FROM
"public"."t13_1m" qview1,
"public"."t3_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t3v0, qview2."stringu2" AS t3v1, qview2."stringu1"
AS t3v2 FROM
"public"."t9_1m" qview1,
"public"."t15_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."string4" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t3v0, qview2."stringu1" AS t3v1, qview2."string4"
AS t3v2 FROM
"public"."t9_1m" qview1,
"public"."t11_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."string4" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu1" IS NOT NULL AND
qview2."string4" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t3v0, qview2."stringu1" AS t3v1, qview2."stringu2"
AS t3v2 FROM
"public"."t9_1m" qview1,
"public"."t7_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."string4" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t3v0, qview2."stringu1" AS t3v1, qview2."stringu2"
AS t3v2 FROM
"public"."t9_1m" qview1,
"public"."t3_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."string4" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t3v0, qview2."stringu2" AS t3v1, qview2."stringu1"
AS t3v2 FROM
"public"."t5_1m" qview1,
"public"."t15_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t3v0, qview2."stringu1" AS t3v1, qview2."string4"
AS t3v2 FROM
"public"."t5_1m" qview1,
"public"."t11_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu1" IS NOT NULL AND
qview2."string4" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t3v0, qview2."stringu1" AS t3v1, qview2."stringu2"
AS t3v2 FROM
"public"."t5_1m" qview1,
"public"."t7_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t3v0, qview2."stringu1" AS t3v1, qview2."stringu2"
AS t3v2 FROM
"public"."t5_1m" qview1,
"public"."t3_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t3v0, qview2."stringu2" AS t3v1, qview2."stringu1"
AS t3v2 FROM
"public"."t1_1m" qview1,
"public"."t15_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t3v0, qview2."stringu1" AS t3v1, qview2."string4"
AS t3v2 FROM
"public"."t1_1m" qview1,
"public"."t11_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu1" IS NOT NULL AND
qview2."string4" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t3v0, qview2."stringu1" AS t3v1, qview2."stringu2"
AS t3v2 FROM
"public"."t1_1m" qview1,
"public"."t7_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t3v0, qview2."stringu1" AS t3v1, qview2."stringu2"
AS t3v2 FROM
"public"."t1_1m" qview1,
"public"."t3_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
) f_2, (SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t4v0, qview2."stringu2" AS t4v1, qview2."stringu1"
AS t4v2 FROM
"public"."t13_1m" qview1,
"public"."t16_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t4v0, qview2."stringu1" AS t4v1, qview2."string4"
AS t4v2 FROM
"public"."t13_1m" qview1,
"public"."t12_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu1" IS NOT NULL AND
qview2."string4" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t4v0, qview2."stringu1" AS t4v1, qview2."stringu2"
AS t4v2 FROM
"public"."t13_1m" qview1,
"public"."t8_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t4v0, qview2."stringu1" AS t4v1, qview2."stringu2"
AS t4v2 FROM
"public"."t13_1m" qview1,
"public"."t4_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t4v0, qview2."stringu2" AS t4v1, qview2."stringu1"
AS t4v2 FROM
"public"."t9_1m" qview1,
"public"."t16_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."string4" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t4v0, qview2."stringu1" AS t4v1, qview2."string4"
AS t4v2 FROM
"public"."t9_1m" qview1,
"public"."t12_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."string4" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu1" IS NOT NULL AND
qview2."string4" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t4v0, qview2."stringu1" AS t4v1, qview2."stringu2"
AS t4v2 FROM
"public"."t9_1m" qview1,
"public"."t8_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."string4" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t4v0, qview2."stringu1" AS t4v1, qview2."stringu2"
AS t4v2 FROM
"public"."t9_1m" qview1,
"public"."t4_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."string4" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t4v0, qview2."stringu2" AS t4v1, qview2."stringu1"
AS t4v2 FROM
"public"."t5_1m" qview1,
"public"."t16_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t4v0, qview2."stringu1" AS t4v1, qview2."string4"
AS t4v2 FROM
"public"."t5_1m" qview1,
"public"."t12_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu1" IS NOT NULL AND
qview2."string4" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t4v0, qview2."stringu1" AS t4v1, qview2."stringu2"
AS t4v2 FROM
"public"."t5_1m" qview1,
"public"."t8_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t4v0, qview2."stringu1" AS t4v1, qview2."stringu2"
AS t4v2 FROM
"public"."t5_1m" qview1,
"public"."t4_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t4v0, qview2."stringu2" AS t4v1, qview2."stringu1"
AS t4v2 FROM
"public"."t1_1m" qview1,
"public"."t16_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t4v0, qview2."stringu1" AS t4v1, qview2."string4"
AS t4v2 FROM
"public"."t1_1m" qview1,
"public"."t12_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu1" IS NOT NULL AND
qview2."string4" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t4v0, qview2."stringu1" AS t4v1, qview2."stringu2"
AS t4v2 FROM
"public"."t1_1m" qview1,
"public"."t8_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
UNION
SELECT qview1."unique2" AS t0v0, qview2."evenonepercent" AS t4v0, qview2."stringu1" AS t4v1, qview2."stringu2"
AS t4v2 FROM
"public"."t1_1m" qview1,
"public"."t4_1m" qview2
WHERE
((qview1."onepercent" >= 0) AND (qview1."onepercent" < 20)) AND
qview1."evenonepercent" IS NOT NULL AND
qview1."stringu2" IS NOT NULL AND
qview1."stringu1" IS NOT NULL AND
qview1."unique2" IS NOT NULL AND
(qview1."unique2" = qview2."unique2") AND
((qview2."onepercent" >= 10) AND (qview2."onepercent" < 30)) AND
qview2."evenonepercent" IS NOT NULL AND
qview2."stringu2" IS NOT NULL AND
qview2."stringu1" IS NOT NULL
) f_3 WHERE f_1.t0v0=f_2.t0v0 AND f_1.t0v0=f_3.t0v0
|
{
"content_hash": "6a66598e0b9a5df0bb2d63cb98af620a",
"timestamp": "",
"source": "github",
"line_count": 813,
"max_line_length": 204,
"avg_line_length": 37.56211562115621,
"alnum_prop": 0.7255550461719824,
"repo_name": "ontop/ontop-examples",
"id": "927a9d1f90ac066cadb38dcc476cbb98d11f9723",
"size": "30538",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "iswc-2017-cost/wisconsin-experiment/4-atoms/jucq/executed-queries/ontop-29.sql",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "AMPL",
"bytes": "45155"
},
{
"name": "C",
"bytes": "36579"
},
{
"name": "C++",
"bytes": "33985"
},
{
"name": "CSS",
"bytes": "19257"
},
{
"name": "Dockerfile",
"bytes": "3259"
},
{
"name": "HTML",
"bytes": "3413161"
},
{
"name": "HiveQL",
"bytes": "45997"
},
{
"name": "Java",
"bytes": "31232"
},
{
"name": "JavaScript",
"bytes": "26337"
},
{
"name": "Makefile",
"bytes": "2017"
},
{
"name": "PHP",
"bytes": "8056"
},
{
"name": "PLpgSQL",
"bytes": "540592"
},
{
"name": "Python",
"bytes": "5272"
},
{
"name": "R",
"bytes": "722"
},
{
"name": "Roff",
"bytes": "61"
},
{
"name": "Scala",
"bytes": "348559"
},
{
"name": "Shell",
"bytes": "7064"
},
{
"name": "TeX",
"bytes": "229961"
},
{
"name": "q",
"bytes": "362407"
}
]
}
|
try:
from django.template.engine import Engine
from django.template.loaders.base import Loader as BaseLoader
except ImportError: # Django < 1.8
Engine = None
from django.template.loader import BaseLoader, find_template_loader, get_template_from_string
def template_loader(loader_name):
if Engine:
return Engine.get_default().find_template_loader(loader_name)
else: # Django < 1.8
return find_template_loader(loader_name)
def template_from_string(template_code):
if Engine:
return Engine().from_string(template_code)
else: # Django < 1.8
return get_template_from_string(template_code)
def get_engine():
if Engine:
return Engine.get_default()
else: # Django < 1.8
return None
|
{
"content_hash": "2fabb4b8994cd1902e73c16055acbe56",
"timestamp": "",
"source": "github",
"line_count": 27,
"max_line_length": 97,
"avg_line_length": 28.555555555555557,
"alnum_prop": 0.6835278858625162,
"repo_name": "shtalinberg/django-amp-tools",
"id": "228900405ab2876bf823b3adf1033c3bea8f1a17",
"size": "771",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "amp_tools/compat.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "6286"
},
{
"name": "HTML",
"bytes": "2224"
},
{
"name": "Makefile",
"bytes": "2827"
},
{
"name": "Python",
"bytes": "23717"
},
{
"name": "Shell",
"bytes": "116"
}
]
}
|
'use strict';
const _ = require('lodash');
const querystring = require('querystring');
const fetch = require('node-fetch');
const baseLog = require('../../log');
const ROOT_URL = 'https://psychonautwiki.org/w/api.php';
const qsDefaults = {
action: 'ask',
format: 'json',
};
/*
Caching algorithm:
0. let synchronous be true
1. check if item is in store
2. if in store, check ttl
2.1 let requireRefresh be false
2.2 let refreshInProgress be false
2.3 if expired, let requireRefresh be true
2.4 if refreshInProgress is true
2.4.1 return existing data; go to 3.
2.5 let refreshInProgress be true
2.6 let synchronous be false
2.7 return existing data
3. obtain new data, in background if synchronous is false
3.1 insert new data into cache
3.2 let requireRefresh be false
3.3 let refreshInProgress be false
3.4 return new data if synchronous is true
*/
class BifrostCache {
constructor({ log }) {
this._log = log.child({
type: 'bifrostCache',
});
// thirty minutes
this._CACHE_LIFETIME = 24 * 60 * 60 * 1000;
this._backend = new Map();
this._processMap = new Map();
}
get(key) {
const cachedItem = this._backend.get(key);
if (!cachedItem) {
return null;
}
const { ts, val } = cachedItem;
let requireRefresh = false;
if ((Date.now() - ts) > this._CACHE_LIFETIME) {
requireRefresh = true;
}
return { val, requireRefresh };
}
isBeingRefreshed(key) {
return this._processMap.get(key) === true;
}
markBeingRefreshed(key, isBeingRefreshed) {
if (!isBeingRefreshed) {
return this._processMap.delete(key);
}
return this._processMap.set(key, true);
}
add(key, val) {
this._log.trace('Adding key: `%s\'', key);
return this._backend.set(key, {
ts: Date.now(), val,
});
}
}
const sharedBifrostCache = new BifrostCache({
log: baseLog,
});
const sleepAsync =
(ms) =>
new Promise(
(resolve) =>
setTimeout(resolve, ms),
);
class PwConnector {
constructor({ log }) {
this._log = log.child({
type: 'PwConnector',
});
this._cache = sharedBifrostCache;
}
_fetchUrl(url) {
this._log.trace(
'Fetching url: `%s\'',
url
);
let failures = 0;
return fetch(url)
.then(res => res.json())
.catch(err => {
this._log.error(
'Failed to fetch url: `%s\'',
url
);
failures += 1;
if (failures > 3) {
this._log.error(
'Failed 3 times.. \'%s\'',
url
);
throw err;
}
this._log.error(
'Retrying.. \'%s\'',
url
);
return sleepAsync(1000 * failures)
.then(() => this._fetchUrl(url));
});
}
async _fetchRefreshedCacheItem(url) {
this._log.trace('Fetching item: `%s`', url);
try {
const response = await this._fetchUrl(url);
this._cache
.add(
url,
response,
);
return response;
} catch (err) {
this._log
.error(err);
return null;
}
}
async _getCacheIfNeeded(url) {
const cacheState = this._cache.get(url);
/* todo: handle state when key doesnt exist and fetch is in progress */
if (cacheState === null) {
return this._fetchRefreshedCacheItem(url);
}
const { val, requireRefresh } = cacheState;
if (requireRefresh && !this._cache.isBeingRefreshed(url)) {
this._unwindMarkAndRefreshItem(url);
this._log.trace('Returning expired value of item: `%s`', url);
}
return val;
}
get(args) {
const params =
querystring.encode(
_.defaults(
args,
qsDefaults,
),
);
return this._getCacheIfNeeded(
`${ROOT_URL}?${params}`,
);
}
_unwindMarkAndRefreshItem(url) {
this._log.trace('Marking item as being refreshed and unwinding update: `%s`', url);
/*
* This method ensures the synchronous marking
* of an item being refreshed before unwinding
* the markAndRefreshItem routine from this
* cycle.
*/
this._cache.markBeingRefreshed(url, true);
process.nextTick(() =>
this._markAndRefreshItemAsync(url),
);
}
async _markAndRefreshItemAsync(url) {
this._log.trace('[markAndRefreshAsync] Fetching item: `%s`', url);
await this._fetchRefreshedCacheItem(url);
this._log.trace('[markAndRefreshAsync] Marking item as not being refreshed: `%s`', url);
this._cache.markBeingRefreshed(url, false);
}
}
module.exports = PwConnector;
|
{
"content_hash": "3f0005e6fefde2c8af25dedc6c1c2f49",
"timestamp": "",
"source": "github",
"line_count": 231,
"max_line_length": 96,
"avg_line_length": 23.393939393939394,
"alnum_prop": 0.500740192450037,
"repo_name": "psychonautwiki/bifrost",
"id": "79c7aac83b1a92362404a82871e3b5c5462f0f28",
"size": "5404",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "server/graph/storage/connector.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Dockerfile",
"bytes": "229"
},
{
"name": "JavaScript",
"bytes": "48215"
}
]
}
|
namespace cloud_print {
const size_t kMaxMessageLen = 100;
void DisplayWindowsMessage(HWND hwnd,
HRESULT message_id,
const string16 &caption) {
wchar_t message_text[kMaxMessageLen + 1] = L"";
::FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
message_id,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
message_text,
kMaxMessageLen,
NULL);
::MessageBox(hwnd, message_text, caption.c_str(), MB_OK);
}
HRESULT GetLastHResult() {
DWORD error_code = GetLastError();
return HRESULT_FROM_WIN32(error_code);
}
string16 GetPortMonitorDllName() {
if (IsSystem64Bit()) {
return string16(L"gcp_portmon64.dll");
} else {
return string16(L"gcp_portmon.dll");
}
}
HRESULT GetPrinterDriverDir(base::FilePath* path) {
BYTE driver_dir_buffer[MAX_PATH * sizeof(wchar_t)];
DWORD needed = 0;
if (!GetPrinterDriverDirectory(NULL,
NULL,
1,
driver_dir_buffer,
MAX_PATH * sizeof(wchar_t),
&needed)) {
// We could try to allocate a larger buffer if needed > MAX_PATH
// but that really shouldn't happen.
return cloud_print::GetLastHResult();
}
*path = base::FilePath(reinterpret_cast<wchar_t*>(driver_dir_buffer));
// The XPS driver is a "Level 3" driver
*path = path->Append(L"3");
return S_OK;
}
bool IsSystem64Bit() {
base::win::OSInfo::WindowsArchitecture arch =
base::win::OSInfo::GetInstance()->architecture();
return (arch == base::win::OSInfo::X64_ARCHITECTURE) ||
(arch == base::win::OSInfo::IA64_ARCHITECTURE);
}
string16 LoadLocalString(DWORD string_id) {
static wchar_t dummy = L'\0';
// We never expect strings longer than MAX_PATH characters.
static wchar_t buffer[MAX_PATH];
HMODULE module = NULL;
GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS |
GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT,
&dummy,
&module);
int count = LoadString(module,
string_id,
buffer,
MAX_PATH);
CHECK_NE(0, count);
return string16(buffer);
}
}
|
{
"content_hash": "8a075f9204bae9b8500ec144473e4f0f",
"timestamp": "",
"source": "github",
"line_count": 77,
"max_line_length": 75,
"avg_line_length": 31.194805194805195,
"alnum_prop": 0.5695253955037469,
"repo_name": "zcbenz/cefode-chromium",
"id": "c331ff897176cb05c65049337ba34f28148702b2",
"size": "2802",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "cloud_print/virtual_driver/win/virtual_driver_helpers.cc",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "ASP",
"bytes": "853"
},
{
"name": "AppleScript",
"bytes": "6973"
},
{
"name": "Arduino",
"bytes": "464"
},
{
"name": "Assembly",
"bytes": "1174304"
},
{
"name": "Awk",
"bytes": "9519"
},
{
"name": "C",
"bytes": "76026099"
},
{
"name": "C#",
"bytes": "1132"
},
{
"name": "C++",
"bytes": "157904700"
},
{
"name": "DOT",
"bytes": "1559"
},
{
"name": "F#",
"bytes": "381"
},
{
"name": "Java",
"bytes": "3225038"
},
{
"name": "JavaScript",
"bytes": "18180217"
},
{
"name": "Logos",
"bytes": "4517"
},
{
"name": "Matlab",
"bytes": "5234"
},
{
"name": "Objective-C",
"bytes": "7139426"
},
{
"name": "PHP",
"bytes": "97817"
},
{
"name": "Perl",
"bytes": "932901"
},
{
"name": "Python",
"bytes": "8654916"
},
{
"name": "R",
"bytes": "262"
},
{
"name": "Ragel in Ruby Host",
"bytes": "3621"
},
{
"name": "Shell",
"bytes": "1533012"
},
{
"name": "Tcl",
"bytes": "277077"
},
{
"name": "XML",
"bytes": "13493"
}
]
}
|
#include "../../SDL_internal.h"
#if SDL_VIDEO_DRIVER_WINDOWS
#include "SDL_assert.h"
#include "SDL_windowsshape.h"
#include "SDL_windowsvideo.h"
SDL_WindowShaper*
Win32_CreateShaper(SDL_Window * window) {
int resized_properly;
SDL_WindowShaper* result = (SDL_WindowShaper *)SDL_malloc(sizeof(SDL_WindowShaper));
result->window = window;
result->mode.mode = ShapeModeDefault;
result->mode.parameters.binarizationCutoff = 1;
result->userx = result->usery = 0;
result->driverdata = (SDL_ShapeData*)SDL_malloc(sizeof(SDL_ShapeData));
((SDL_ShapeData*)result->driverdata)->mask_tree = NULL;
/* Put some driver-data here. */
window->shaper = result;
resized_properly = Win32_ResizeWindowShape(window);
if (resized_properly != 0)
return NULL;
return result;
}
static void
CombineRectRegions(SDL_ShapeTree* node,void* closure) {
HRGN mask_region = *((HRGN*)closure),temp_region = NULL;
if(node->kind == OpaqueShape) {
/* Win32 API regions exclude their outline, so we widen the region by one pixel in each direction to include the real outline. */
temp_region = CreateRectRgn(node->data.shape.x,node->data.shape.y,node->data.shape.x + node->data.shape.w + 1,node->data.shape.y + node->data.shape.h + 1);
if(mask_region != NULL) {
CombineRgn(mask_region,mask_region,temp_region,RGN_OR);
DeleteObject(temp_region);
}
else
*((HRGN*)closure) = temp_region;
}
}
int
Win32_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shape_mode) {
SDL_ShapeData *data;
HRGN mask_region = NULL;
if( (shaper == NULL) ||
(shape == NULL) ||
((shape->format->Amask == 0) && (shape_mode->mode != ShapeModeColorKey)) ||
(shape->w != shaper->window->w) ||
(shape->h != shaper->window->h) ) {
return SDL_INVALID_SHAPE_ARGUMENT;
}
data = (SDL_ShapeData*)shaper->driverdata;
if(data->mask_tree != NULL)
SDL_FreeShapeTree(&data->mask_tree);
data->mask_tree = SDL_CalculateShapeTree(*shape_mode,shape);
SDL_TraverseShapeTree(data->mask_tree,&CombineRectRegions,&mask_region);
SDL_assert(mask_region != NULL);
SetWindowRgn(((SDL_WindowData *)(shaper->window->driverdata))->hwnd, mask_region, TRUE);
return 0;
}
int
Win32_ResizeWindowShape(SDL_Window *window) {
SDL_ShapeData* data;
if (window == NULL)
return -1;
data = (SDL_ShapeData *)window->shaper->driverdata;
if (data == NULL)
return -1;
if(data->mask_tree != NULL)
SDL_FreeShapeTree(&data->mask_tree);
if(window->shaper->hasshape == SDL_TRUE) {
window->shaper->userx = window->x;
window->shaper->usery = window->y;
SDL_SetWindowPosition(window,-1000,-1000);
}
return 0;
}
#endif /* SDL_VIDEO_DRIVER_WINDOWS */
|
{
"content_hash": "f07ba0628eaeab551dbcd9fe9d97a9fe",
"timestamp": "",
"source": "github",
"line_count": 91,
"max_line_length": 163,
"avg_line_length": 31.857142857142858,
"alnum_prop": 0.6378061400482925,
"repo_name": "Gigoteur/PX8",
"id": "2d601c1427c9d93584e5b8d6736df1bc6f44725e",
"size": "3837",
"binary": false,
"copies": "18",
"ref": "refs/heads/master",
"path": "unicorn-android/sdl/src/SDL/src/video/windows/SDL_windowsshape.c",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "4475138"
},
{
"name": "C++",
"bytes": "155249"
},
{
"name": "CSS",
"bytes": "2807"
},
{
"name": "HTML",
"bytes": "355077"
},
{
"name": "Java",
"bytes": "64935"
},
{
"name": "Lua",
"bytes": "1475"
},
{
"name": "Makefile",
"bytes": "12131"
},
{
"name": "Python",
"bytes": "125794"
},
{
"name": "Roff",
"bytes": "5209"
},
{
"name": "Rust",
"bytes": "660450"
},
{
"name": "Shell",
"bytes": "416"
}
]
}
|
default_target: all
.PHONY : default_target
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake
# The command to remove a file.
RM = /Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake -E remove -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /Users/brendanbusey/Desktop/Github/InterviewPreparation/LeetCode/Medium/RemoveDuplicatesFromSortedListII
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /Users/brendanbusey/Desktop/Github/InterviewPreparation/LeetCode/Medium/RemoveDuplicatesFromSortedListII/cmake-build-debug
#=============================================================================
# Targets provided globally by CMake.
# Special rule for the target rebuild_cache
rebuild_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache
# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache
.PHONY : rebuild_cache/fast
# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
.PHONY : edit_cache
# Special rule for the target edit_cache
edit_cache/fast: edit_cache
.PHONY : edit_cache/fast
# The main all target
all: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /Users/brendanbusey/Desktop/Github/InterviewPreparation/LeetCode/Medium/RemoveDuplicatesFromSortedListII/cmake-build-debug/CMakeFiles /Users/brendanbusey/Desktop/Github/InterviewPreparation/LeetCode/Medium/RemoveDuplicatesFromSortedListII/cmake-build-debug/CMakeFiles/progress.marks
$(MAKE) -f CMakeFiles/Makefile2 all
$(CMAKE_COMMAND) -E cmake_progress_start /Users/brendanbusey/Desktop/Github/InterviewPreparation/LeetCode/Medium/RemoveDuplicatesFromSortedListII/cmake-build-debug/CMakeFiles 0
.PHONY : all
# The main clean target
clean:
$(MAKE) -f CMakeFiles/Makefile2 clean
.PHONY : clean
# The main clean target
clean/fast: clean
.PHONY : clean/fast
# Prepare targets for installation.
preinstall: all
$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall
# Prepare targets for installation.
preinstall/fast:
$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall/fast
# clear depends
depend:
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend
#=============================================================================
# Target rules for targets named RemoveDuplicatesFromSortedListII
# Build rule for target.
RemoveDuplicatesFromSortedListII: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 RemoveDuplicatesFromSortedListII
.PHONY : RemoveDuplicatesFromSortedListII
# fast build rule for target.
RemoveDuplicatesFromSortedListII/fast:
$(MAKE) -f CMakeFiles/RemoveDuplicatesFromSortedListII.dir/build.make CMakeFiles/RemoveDuplicatesFromSortedListII.dir/build
.PHONY : RemoveDuplicatesFromSortedListII/fast
main.o: main.cpp.o
.PHONY : main.o
# target to build an object file
main.cpp.o:
$(MAKE) -f CMakeFiles/RemoveDuplicatesFromSortedListII.dir/build.make CMakeFiles/RemoveDuplicatesFromSortedListII.dir/main.cpp.o
.PHONY : main.cpp.o
main.i: main.cpp.i
.PHONY : main.i
# target to preprocess a source file
main.cpp.i:
$(MAKE) -f CMakeFiles/RemoveDuplicatesFromSortedListII.dir/build.make CMakeFiles/RemoveDuplicatesFromSortedListII.dir/main.cpp.i
.PHONY : main.cpp.i
main.s: main.cpp.s
.PHONY : main.s
# target to generate assembly for a file
main.cpp.s:
$(MAKE) -f CMakeFiles/RemoveDuplicatesFromSortedListII.dir/build.make CMakeFiles/RemoveDuplicatesFromSortedListII.dir/main.cpp.s
.PHONY : main.cpp.s
# Help Target
help:
@echo "The following are some of the valid targets for this Makefile:"
@echo "... all (the default if no target is provided)"
@echo "... clean"
@echo "... depend"
@echo "... rebuild_cache"
@echo "... edit_cache"
@echo "... RemoveDuplicatesFromSortedListII"
@echo "... main.o"
@echo "... main.i"
@echo "... main.s"
.PHONY : help
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system
|
{
"content_hash": "b3673fb20e584d7588c5806eade43011",
"timestamp": "",
"source": "github",
"line_count": 174,
"max_line_length": 324,
"avg_line_length": 32.04022988505747,
"alnum_prop": 0.7194618834080717,
"repo_name": "busebd12/InterviewPreparation",
"id": "be7efe28280ea997587dbb5a3fcc1cecd8cbc0c8",
"size": "5738",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "LeetCode/C++/General/Medium/RemoveDuplicatesFromSortedListII/cmake-build-debug/Makefile",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "9011022"
},
{
"name": "C++",
"bytes": "14785379"
},
{
"name": "CMake",
"bytes": "10099860"
},
{
"name": "Java",
"bytes": "54365"
},
{
"name": "Makefile",
"bytes": "5154401"
},
{
"name": "TeX",
"bytes": "41241"
}
]
}
|
/**
* @brief JavaScript Virtual Machine.
*
* A Virtual Machine contains one or more contexts.
*/
@interface L8VirtualMachine : NSObject
/**
* Initialize a new virtual machine.
*
* @return self.
*/
- (instancetype)init L8_DESIGNATED_INITIALIZER;
/**
* Notify the JSVirtualMachine of an external object relationship.
*
* @param object Referenced object
* @param owner Owner of the reference
*/
- (void)addManagedReference:(id)object withOwner:(id)owner;
/**
* Notify the JSVirtualMachine that a previous object relationship no longer exists.
*
* @param object Referenced object
* @param owner Owner of the reference
*/
- (void)removeManagedReference:(id)object withOwner:(id)owner;
/**
* Attempt to run the garbage collector.
*
* @note This method is blocking and should only be used in
* debug builds.
*/
- (void)runGarbageCollector;
@end
|
{
"content_hash": "58b4344fe32a4eb71c9dcc91cc789be9",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 84,
"avg_line_length": 21.170731707317074,
"alnum_prop": 0.7211981566820277,
"repo_name": "joskuijpers/L8Framework",
"id": "30bc5eed35d082c23582262929c18b1eb49dc7b9",
"size": "2237",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "L8Framework/Headers/L8VirtualMachine.h",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "C",
"bytes": "2917"
},
{
"name": "C++",
"bytes": "20322"
},
{
"name": "Objective-C",
"bytes": "124312"
},
{
"name": "Objective-C++",
"bytes": "124582"
},
{
"name": "Shell",
"bytes": "2094"
}
]
}
|
``timeutils`` - ``datetime`` additions
======================================
.. automodule:: boltons.timeutils
.. autofunction:: total_seconds
.. autofunction:: dt_to_timestamp
.. autofunction:: isoparse
.. autofunction:: parse_timedelta
.. autofunction:: relative_time
.. autofunction:: decimal_relative_time
General timezones
-----------------
By default, :class:`datetime.datetime` objects are "naïve", meaning
they lack attached timezone information. These objects can be useful
for many operations, but many operations require timezone-aware
datetimes.
The two most important timezones in programming are Coordinated
Universal Time (`UTC`_) and the local timezone of the host running
your code. Boltons provides two :class:`datetime.tzinfo` subtypes for
working with them:
.. _UTC: https://en.wikipedia.org/wiki/Coordinated_Universal_Time
.. autoattribute:: boltons.timeutils.UTC
.. autodata:: boltons.timeutils.LocalTZ
.. autoclass:: boltons.timeutils.ConstantTZInfo
US timezones
------------
These four US timezones were implemented in the :mod:`datetime`
documentation and have been reproduced here in boltons for
convenience. More in-depth support is provided by `pytz`_.
.. _pytz: https://pypi.python.org/pypi/pytz
.. autoattribute:: boltons.timeutils.Eastern
.. autoattribute:: boltons.timeutils.Central
.. autoattribute:: boltons.timeutils.Mountain
.. autoattribute:: boltons.timeutils.Pacific
.. autoclass:: boltons.timeutils.USTimeZone
|
{
"content_hash": "3cb44d0417ff4cfa88a2d5ab9f831fd2",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 69,
"avg_line_length": 30.520833333333332,
"alnum_prop": 0.7419795221843003,
"repo_name": "suranap/boltons",
"id": "a52fc81a09e1979c5b79d36a80800351705b0883",
"size": "1466",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "docs/timeutils.rst",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Python",
"bytes": "348426"
}
]
}
|
title: "PiNet, a centralised user accounts and file storage system for a Raspberry Pi classroom."
layout: article
---
Shared folders
-----------------------------
PiNet is able to set up shared folders with different permission levels for students and staff.
Shared folders appear on the left hand bar in the Raspberry Pi file manager.
<iframe width="960" height="720" src="https://www.youtube-nocookie.com/embed/LCT7qqncFUY?rel=0" frameborder="0" allowfullscreen></iframe>
## Permission levels
There are 2 built in permission levels currently for shared folders
1. **Pupil read only** - This means pupils can only read from the folder, they can't save files there or edit any of the files there unless they save a copy into their area.
2. **Pupil read/write** - This means pupils can read from the folder but also edit and save new files into it. Be careful with this as anyone can edit anything!
**Staff can read and write to any shared folder.**
## Creating a shared folder
1. Select ```Shared-folders``` from the main menu.

2. Select ```Create-Shared-Folder```.

3. Hit yes to start the shared folder wizard.

4. A list of all current folders will be displayed. Hit enter.

5. Enter the name you want to use for your shared folder. Do not use any spaces.

6. Select the permission level you want to use. This is explained above in the permission section.

7. Your shared folder is now created. You will need to reboot any Raspberry Pis currently running.

|
{
"content_hash": "d5ead483073e900586d1c4fe0e56cd64",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 178,
"avg_line_length": 52.34285714285714,
"alnum_prop": 0.712882096069869,
"repo_name": "vlee489/PiNet.github.io",
"id": "22dfd8ee56b28608b826c69c837596c5d230df48",
"size": "1836",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "articles/shared-folders/shared-folders.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "22347"
},
{
"name": "HTML",
"bytes": "9962"
},
{
"name": "JavaScript",
"bytes": "115455"
},
{
"name": "Ruby",
"bytes": "6430"
}
]
}
|
require 'csv'
require_relative './date_helpers'
class SleepBotCSVParser
def self.create_sleep_records(user_id, file, utc_offset)
CSV.foreach(file.path, headers: true, quote_char: "'", header_converters: :symbol, skip_blanks: true) do |row|
create_sleep(user_id, row, utc_offset)
end
end
def self.create_sleep(user_id, row, utc_offset)
started_at = row[:date] + ' ' + row[:sleep_time] + ' ' + utc_offset
started_at = DateHelpers.strptime_in_ms(started_at, '%m-%d-%Y %I:%M %P %z')
ended_at = row[:date] + ' ' + row[:awake_time] + ' ' + utc_offset
ended_at = DateHelpers.strptime_in_ms(ended_at, '%m-%d-%Y %I:%M %P %z')
# Only 1 date is provided in the CSV from SleepBot. This is for awake_time.
# If started_at and ended_at are on the same day (e.g. the user took a nap),
# then there are no problems.
# However, if this is not the case, then started_at needs to be
# adjusted by 1 day.
# Conversion: 86400000 ms == 1 day
started_at = started_at < ended_at ? started_at : started_at - 86_400_000
Sleep.create(user_id: user_id,
started_at: started_at,
ended_at: ended_at,
rating: row[:rating])
end
end
|
{
"content_hash": "629d2b67e07bb4d53412e8e603c7754d",
"timestamp": "",
"source": "github",
"line_count": 31,
"max_line_length": 114,
"avg_line_length": 38.45161290322581,
"alnum_prop": 0.6375838926174496,
"repo_name": "catchingash/trackcamp",
"id": "661ef6df965612fe0c8f527154a2d35adf24c250",
"size": "1192",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/csv_parser.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "6977"
},
{
"name": "HTML",
"bytes": "11261"
},
{
"name": "JavaScript",
"bytes": "16692"
},
{
"name": "Ruby",
"bytes": "89899"
}
]
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StuckNumbers
{
class StuckNumbers
{
static void Main()
{
var count = Console.ReadLine();
var inputNumbers = Console.ReadLine();
var numbersArray = inputNumbers.Split(new char[]{' '}, StringSplitOptions.RemoveEmptyEntries);
var output = new List<string>();
foreach (var a in numbersArray)
{
foreach (var b in numbersArray)
{
foreach (var c in numbersArray)
{
foreach (var d in numbersArray)
{
if((a!=b)&&(a!=c)&&(a!=d)&&(b!=c)&&(b!=d)&&(c!=d))
{
if (a + b == c + d)
{
output.Add(string.Format("{0}|{1}=={2}|{3}", a,b,c,d));
}
}
}
}
}
}
if (output.Count > 0)
{
Console.WriteLine(string.Join("\n", output));
}
else
{
Console.WriteLine("No");
}
}
}
}
|
{
"content_hash": "20f5d4415a61d18889e9583f9246b382",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 106,
"avg_line_length": 30.32608695652174,
"alnum_prop": 0.36917562724014336,
"repo_name": "sevdalin/Software-University-SoftUni",
"id": "a97bdec1f84c528c5da356b7bf1e4c6403a04487",
"size": "1397",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Programming-Basics/Exams/ExamPreparation-kotow/StuckNumbers/StuckNumbers.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "388"
},
{
"name": "C#",
"bytes": "3998101"
},
{
"name": "CSS",
"bytes": "161101"
},
{
"name": "HTML",
"bytes": "261529"
},
{
"name": "Java",
"bytes": "20909"
},
{
"name": "JavaScript",
"bytes": "609440"
},
{
"name": "PHP",
"bytes": "16185"
},
{
"name": "PLSQL",
"bytes": "723"
},
{
"name": "PLpgSQL",
"bytes": "4714"
},
{
"name": "PowerShell",
"bytes": "471"
},
{
"name": "Ruby",
"bytes": "1030"
},
{
"name": "SQLPL",
"bytes": "3383"
},
{
"name": "Smalltalk",
"bytes": "2065"
}
]
}
|
var _ = require('lodash'),
through = require('through2');
var strReplace = function(content, value, key) {
var regex = new RegExp("'"+ key +"'", 'g');
return content.replace(regex, value);
};
var varReplace = function(content, value, key) {
var regex = new RegExp(key, 'g');
return content.replace(regex, value);
};
var Wrapper = function(options) {
var opts = options || {},
strings = options.strings || {},
variables = options.variables || {};
// return the stream
return through.obj(function(file, enc, callback) {
var contents = file.contents.toString();
contents = _.reduce(strings, strReplace, contents);
contents = _.reduce(variables, varReplace, contents);
if (file.isBuffer()) {
file.contents = new Buffer(contents);
}
if (file.isStream()) {
var stream = through();
stream.write(new Buffer(contents));
stream.on('error', this.emit.bind(this, 'error'));
file.contents = file.contents.pipe(stream);
}
// make sure the file goes through the next gulp plugin
this.push(file);
// tell the stream engine that we are done with this file
callback();
});
};
module.exports = Wrapper;
|
{
"content_hash": "e0a27322294f9fe4320742a1fc2e686b",
"timestamp": "",
"source": "github",
"line_count": 44,
"max_line_length": 65,
"avg_line_length": 29.363636363636363,
"alnum_prop": 0.586687306501548,
"repo_name": "JosephClay/xaja-js",
"id": "6a1cb5149fd40186cf3099e4f8254d727d7bd65b",
"size": "1292",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "local_modules/gulp-replacer/index.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "4355"
},
{
"name": "JavaScript",
"bytes": "184270"
}
]
}
|
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="SHORTCUT ICON" href="../../../../../img/clover.ico" />
<link rel="stylesheet" href="../../../../../aui/css/aui.min.css" media="all"/>
<link rel="stylesheet" href="../../../../../aui/css/aui-experimental.min.css" media="all"/>
<!--[if IE 9]><link rel="stylesheet" href="../../../../../aui/css/aui-ie9.min.css" media="all"/><![endif]-->
<style type="text/css" media="all">
@import url('../../../../../style.css');
@import url('../../../../../tree.css');
</style>
<script src="../../../../../jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="../../../../../aui/js/aui.min.js" type="text/javascript"></script>
<script src="../../../../../aui/js/aui-experimental.min.js" type="text/javascript"></script>
<script src="../../../../../aui/js/aui-soy.min.js" type="text/javascript"></script>
<script src="../../../../../package-nodes-tree.js" type="text/javascript"></script>
<script src="../../../../../clover-tree.js" type="text/javascript"></script>
<script src="../../../../../clover.js" type="text/javascript"></script>
<script src="../../../../../clover-descriptions.js" type="text/javascript"></script>
<script src="../../../../../cloud.js" type="text/javascript"></script>
<title>ABA Route Transit Number Validator 1.0.1-SNAPSHOT</title>
</head>
<body>
<div id="page">
<header id="header" role="banner">
<nav class="aui-header aui-dropdown2-trigger-group" role="navigation">
<div class="aui-header-inner">
<div class="aui-header-primary">
<h1 id="logo" class="aui-header-logo aui-header-logo-clover">
<a href="http://openclover.org" title="Visit OpenClover home page"><span class="aui-header-logo-device">OpenClover</span></a>
</h1>
</div>
<div class="aui-header-secondary">
<ul class="aui-nav">
<li id="system-help-menu">
<a class="aui-nav-link" title="Open online documentation" target="_blank"
href="http://openclover.org/documentation">
<span class="aui-icon aui-icon-small aui-iconfont-help"> Help</span>
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<div class="aui-page-panel">
<div class="aui-page-panel-inner">
<div class="aui-page-panel-nav aui-page-panel-nav-clover">
<div class="aui-page-header-inner" style="margin-bottom: 20px;">
<div class="aui-page-header-image">
<a href="http://cardatechnologies.com" target="_top">
<div class="aui-avatar aui-avatar-large aui-avatar-project">
<div class="aui-avatar-inner">
<img src="../../../../../img/clover_logo_large.png" alt="Clover icon"/>
</div>
</div>
</a>
</div>
<div class="aui-page-header-main" >
<h1>
<a href="http://cardatechnologies.com" target="_top">
ABA Route Transit Number Validator 1.0.1-SNAPSHOT
</a>
</h1>
</div>
</div>
<nav class="aui-navgroup aui-navgroup-vertical">
<div class="aui-navgroup-inner">
<ul class="aui-nav">
<li class="">
<a href="../../../../../dashboard.html">Project overview</a>
</li>
</ul>
<div class="aui-nav-heading packages-nav-heading">
<strong>Packages</strong>
</div>
<div class="aui-nav project-packages">
<form method="get" action="#" class="aui package-filter-container">
<input type="text" autocomplete="off" class="package-filter text"
placeholder="Type to filter packages..." name="package-filter" id="package-filter"
title="Start typing package name (or part of the name) to search through the tree. Use arrow keys and the Enter key to navigate."/>
</form>
<p class="package-filter-no-results-message hidden">
<small>No results found.</small>
</p>
<div class="packages-tree-wrapper" data-root-relative="../../../../../" data-package-name="com.cardatechnologies.utils.validators.abaroutevalidator">
<div class="packages-tree-container"></div>
<div class="clover-packages-lozenges"></div>
</div>
</div>
</div>
</nav> </div>
<section class="aui-page-panel-content">
<div class="aui-page-panel-content-clover">
<div class="aui-page-header-main"><ol class="aui-nav aui-nav-breadcrumbs">
<li><a href="../../../../../dashboard.html"> Project Clover database Sat Aug 7 2021 12:29:33 MDT</a></li>
<li><a href="test-pkg-summary.html">Package com.cardatechnologies.utils.validators.abaroutevalidator</a></li>
<li><a href="test-Test_AbaRouteValidator_17b.html">Class Test_AbaRouteValidator_17b</a></li>
</ol></div>
<h1 class="aui-h2-clover">
Test testAbaNumberCheck_36502_bad
</h1>
<table class="aui">
<thead>
<tr>
<th>Test</th>
<th><label title="The test result. Either a Pass, Fail or Error.">Status</label></th>
<th><label title="When the test execution was started">Start time</label></th>
<th><label title="The total time in seconds taken to run this test.">Time (seconds)</label></th>
<th><label title="A failure or error message if the test is not successful.">Message</label></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/Test_AbaRouteValidator_17b.html?line=34049#src-34049" >testAbaNumberCheck_36502_bad</a>
</td>
<td>
<span class="sortValue">1</span><span class="aui-lozenge aui-lozenge-success">PASS</span>
</td>
<td>
7 Aug 12:46:40
</td>
<td>
0.0 </td>
<td>
<div></div>
<div class="errorMessage"></div>
</td>
</tr>
</tbody>
</table>
<div> </div>
<table class="aui aui-table-sortable">
<thead>
<tr>
<th style="white-space:nowrap;"><label title="A class that was directly hit by this test.">Target Class</label></th>
<th colspan="4"><label title="The percentage of coverage contributed by each single test.">Coverage contributed by</label> testAbaNumberCheck_36502_bad</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="sortValue">com.cardatechnologies.utils.validators.abaroutevalidator.exceptions.AbaRouteValidationException</span>
  <a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/exceptions/AbaRouteValidationException.html?id=26023#AbaRouteValidationException" title="AbaRouteValidationException" name="sl-43">com.cardatechnologies.utils.validators.abaroutevalidator.exceptions.AbaRouteValidationException</a>
</td>
<td>
<span class="sortValue">0.5714286</span>57.1%
</td>
<td class="align-middle" style="width: 100%" colspan="3">
<div>
<div title="57.1% Covered" style="min-width:40px;" class="barNegative contribBarNegative contribBarNegative"><div class="barPositive contribBarPositive contribBarPositive" style="width:57.1%"></div></div></div> </td>
</tr>
<tr>
<td>
<span class="sortValue">com.cardatechnologies.utils.validators.abaroutevalidator.ErrorCodes</span>
  <a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/ErrorCodes.html?id=26023#ErrorCodes" title="ErrorCodes" name="sl-42">com.cardatechnologies.utils.validators.abaroutevalidator.ErrorCodes</a>
</td>
<td>
<span class="sortValue">0.5714286</span>57.1%
</td>
<td class="align-middle" style="width: 100%" colspan="3">
<div>
<div title="57.1% Covered" style="min-width:40px;" class="barNegative contribBarNegative contribBarNegative"><div class="barPositive contribBarPositive contribBarPositive" style="width:57.1%"></div></div></div> </td>
</tr>
<tr>
<td>
<span class="sortValue">com.cardatechnologies.utils.validators.abaroutevalidator.AbaRouteValidator</span>
  <a href="../../../../../com/cardatechnologies/utils/validators/abaroutevalidator/AbaRouteValidator.html?id=26023#AbaRouteValidator" title="AbaRouteValidator" name="sl-47">com.cardatechnologies.utils.validators.abaroutevalidator.AbaRouteValidator</a>
</td>
<td>
<span class="sortValue">0.29411766</span>29.4%
</td>
<td class="align-middle" style="width: 100%" colspan="3">
<div>
<div title="29.4% Covered" style="min-width:40px;" class="barNegative contribBarNegative contribBarNegative"><div class="barPositive contribBarPositive contribBarPositive" style="width:29.4%"></div></div></div> </td>
</tr>
</tbody>
</table>
</div> <!-- class="aui-page-panel-content-clover" -->
<footer id="footer" role="contentinfo">
<section class="footer-body">
<ul>
<li>
Report generated by <a target="_new" href="http://openclover.org">OpenClover</a> v 4.4.1
on Sat Aug 7 2021 12:49:26 MDT using coverage data from Sat Aug 7 2021 12:47:23 MDT.
</li>
</ul>
<ul>
<li>OpenClover is free and open-source software. </li>
</ul>
</section>
</footer> </section> <!-- class="aui-page-panel-content" -->
</div> <!-- class="aui-page-panel-inner" -->
</div> <!-- class="aui-page-panel" -->
</div> <!-- id="page" -->
</body>
</html>
|
{
"content_hash": "b1a3a75d5fe833b860d77496ed36b0ed",
"timestamp": "",
"source": "github",
"line_count": 235,
"max_line_length": 359,
"avg_line_length": 46.765957446808514,
"alnum_prop": 0.5304822565969063,
"repo_name": "dcarda/aba.route.validator",
"id": "bf16f0964f645812689ac55ecf5708befcc7d7ac",
"size": "10990",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "target13/site/clover/com/cardatechnologies/utils/validators/abaroutevalidator/Test_AbaRouteValidator_17b_testAbaNumberCheck_36502_bad_k2v.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "18715254"
}
]
}
|
package cn.brent.console.table;
/**
* <p>
* 实体类-
* </p>
* <p>
* Table: sys_branch
* </p>
*
* @since 2015-08-18 04:56:12
*/
public class TSysBranch {
/** */
public static final String BranchInnerCode = "BranchInnerCode";
/** */
public static final String BranchCode = "BranchCode";
/** */
public static final String ParentInnerCode = "ParentInnerCode";
/** */
public static final String Type = "Type";
/** */
public static final String OrderFlag = "OrderFlag";
/** */
public static final String Name = "Name";
/** */
public static final String Mapping = "Mapping";
/** */
public static final String Phone = "Phone";
/** */
public static final String Fax = "Fax";
/** */
public static final String Manager = "Manager";
/** */
public static final String Leader1 = "Leader1";
/** */
public static final String Leader2 = "Leader2";
/** */
public static final String Prop1 = "Prop1";
/** */
public static final String Prop2 = "Prop2";
/** */
public static final String Prop3 = "Prop3";
/** */
public static final String Prop4 = "Prop4";
/** */
public static final String Memo = "Memo";
/** */
public static final String AddTime = "AddTime";
/** */
public static final String AddUser = "AddUser";
/** */
public static final String ModifyTime = "ModifyTime";
/** */
public static final String ModifyUser = "ModifyUser";
}
|
{
"content_hash": "06da8408d9658a4b5e58e83414708308",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 64,
"avg_line_length": 18.05128205128205,
"alnum_prop": 0.6193181818181818,
"repo_name": "brenthub/brent-console",
"id": "8cb4e7cd9db519a14fa66b44431500eabb64159b",
"size": "1414",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "brent-console-interface/src/main/java/cn/brent/console/table/TSysBranch.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "444491"
},
{
"name": "HTML",
"bytes": "36634"
},
{
"name": "Java",
"bytes": "37395"
},
{
"name": "JavaScript",
"bytes": "1556577"
}
]
}
|
@interface WindowButtonsView : NSView {
@private
BOOL mouse_inside_;
BOOL show_on_hover_;
BOOL is_rtl_;
gfx::Point margin_;
base::scoped_nsobject<NSTrackingArea> tracking_area_;
}
- (id)initWithMargin:(const base::Optional<gfx::Point>&)margin;
- (void)setMargin:(const base::Optional<gfx::Point>&)margin;
- (void)setShowOnHover:(BOOL)yes;
- (void)setNeedsDisplayForButtons;
@end
#endif // SHELL_BROWSER_UI_COCOA_WINDOW_BUTTONS_VIEW_H_
|
{
"content_hash": "18f270f351538b060efde22256092037",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 63,
"avg_line_length": 28.0625,
"alnum_prop": 0.7260579064587973,
"repo_name": "bpasero/electron",
"id": "cc662bfc34508cd5cb5ab588c06e9d3112fa2f80",
"size": "907",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "shell/browser/ui/cocoa/window_buttons_view.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "2746"
},
{
"name": "C",
"bytes": "1281"
},
{
"name": "C++",
"bytes": "3098660"
},
{
"name": "CSS",
"bytes": "2461"
},
{
"name": "CoffeeScript",
"bytes": "21"
},
{
"name": "HTML",
"bytes": "186107"
},
{
"name": "JavaScript",
"bytes": "369230"
},
{
"name": "Objective-C",
"bytes": "39212"
},
{
"name": "Objective-C++",
"bytes": "366567"
},
{
"name": "PowerShell",
"bytes": "558"
},
{
"name": "Python",
"bytes": "125291"
},
{
"name": "Shell",
"bytes": "2896"
},
{
"name": "TypeScript",
"bytes": "1460252"
}
]
}
|
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("MetricConverter")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MetricConverter")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("48407014-dcb0-4413-8cd1-f9c4db851805")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
|
{
"content_hash": "624750ca5cf756a82455d60be3d7cc5a",
"timestamp": "",
"source": "github",
"line_count": 36,
"max_line_length": 84,
"avg_line_length": 38.97222222222222,
"alnum_prop": 0.7462580185317177,
"repo_name": "AneliaDoychinova/Programming-Basics",
"id": "a5ea15e582cb52f48b0226e13eb029229292af99",
"size": "1406",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "3. Simple conditions/Simple-Conditions/MetricConverter/Properties/AssemblyInfo.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "48481"
}
]
}
|
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
null
### Remarks
null
|
{
"content_hash": "b2017ed377add2dc74988021c3f3569c",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 18,
"avg_line_length": 8.384615384615385,
"alnum_prop": 0.6788990825688074,
"repo_name": "mdoering/backbone",
"id": "ba71d54c0dec2756b39ecf9a67e3bd9c9ae0a5d4",
"size": "183",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Fungi/Ascomycota/Lecanoromycetes/Pertusariales/Megasporaceae/Aspicilia/Aspicilia cinerea/Lecanora cinerea chiodectonoides/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": []
}
|
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<div class="widget" id="widget-<?php echo basename(__FILE__,".php"); ?>">
<?php if((get_option('access_tickets_to_none_staff_members') == 1 && !is_staff_member() || is_staff_member()) && (count($tickets_reply_by_status_no_json['datasets'][0]['data']) > 0 || count($tickets_awaiting_reply_by_department_no_json['datasets'][0]['data']) > 0)){ ?>
<div class="panel_s">
<div class="panel-body padding-10">
<div class="widget-dragger"></div>
<div class="row">
<div class="col-md-12 mbot10">
<p class="padding-5"> <?php echo _l('home_tickets_awaiting_reply_by_status'); ?></p>
<hr class="hr-panel-heading-dashboard">
<canvas height="170" id="tickets-awaiting-reply-by-status"></canvas>
</div>
<div class="clearfix"></div>
<hr class="no-margin" />
<div class="clearfix mtop10"></div>
<div class="col-md-12">
<p class="padding-5"><?php echo _l('home_tickets_awaiting_reply_by_department'); ?></p>
<hr class="hr-panel-heading-dashboard">
<canvas height="170" id="tickets-awaiting-reply-by-department"></canvas>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
|
{
"content_hash": "c9a8f510f53ae62d6a0904e073940ba5",
"timestamp": "",
"source": "github",
"line_count": 26,
"max_line_length": 271,
"avg_line_length": 47.23076923076923,
"alnum_prop": 0.6026058631921825,
"repo_name": "cmaciasg/test",
"id": "3b7a830a84585f3146c37a6e6ab690c124c59bb5",
"size": "1228",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "application/views/admin/dashboard/widgets/tickets_chart.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "928438"
},
{
"name": "HTML",
"bytes": "17735"
},
{
"name": "JavaScript",
"bytes": "11691907"
},
{
"name": "PHP",
"bytes": "13660548"
}
]
}
|
import {
cast,
Diagnostics,
findChildOfKind,
getTokenAtPosition,
isLabeledStatement,
positionsAreOnSameLine,
skipTrivia,
SourceFile,
SyntaxKind,
textChanges,
} from "../_namespaces/ts";
import {
codeFixAll,
createCodeFixAction,
registerCodeFix,
} from "../_namespaces/ts.codefix";
const fixId = "fixUnusedLabel";
const errorCodes = [Diagnostics.Unused_label.code];
registerCodeFix({
errorCodes,
getCodeActions(context) {
const changes = textChanges.ChangeTracker.with(context, t => doChange(t, context.sourceFile, context.span.start));
return [createCodeFixAction(fixId, changes, Diagnostics.Remove_unused_label, fixId, Diagnostics.Remove_all_unused_labels)];
},
fixIds: [fixId],
getAllCodeActions: context => codeFixAll(context, errorCodes, (changes, diag) => doChange(changes, diag.file, diag.start)),
});
function doChange(changes: textChanges.ChangeTracker, sourceFile: SourceFile, start: number): void {
const token = getTokenAtPosition(sourceFile, start);
const labeledStatement = cast(token.parent, isLabeledStatement);
const pos = token.getStart(sourceFile);
const statementPos = labeledStatement.statement.getStart(sourceFile);
// If label is on a separate line, just delete the rest of that line, but not the indentation of the labeled statement.
const end = positionsAreOnSameLine(pos, statementPos, sourceFile) ? statementPos
: skipTrivia(sourceFile.text, findChildOfKind(labeledStatement, SyntaxKind.ColonToken, sourceFile)!.end, /*stopAfterLineBreak*/ true);
changes.deleteRange(sourceFile, { pos, end });
}
|
{
"content_hash": "9d07820d4dd8e66ec76d437f34d14174",
"timestamp": "",
"source": "github",
"line_count": 40,
"max_line_length": 142,
"avg_line_length": 42.2,
"alnum_prop": 0.7138625592417062,
"repo_name": "microsoft/TypeScript",
"id": "88e6aed5d41a64d2f736253ae1d1f12bcb6eafd4",
"size": "1688",
"binary": false,
"copies": "2",
"ref": "refs/heads/main",
"path": "src/services/codefixes/fixUnusedLabel.ts",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "6254"
},
{
"name": "JavaScript",
"bytes": "202322"
},
{
"name": "Shell",
"bytes": "53"
},
{
"name": "TypeScript",
"bytes": "139268941"
}
]
}
|
End of preview.
No dataset card yet
- Downloads last month
- 4