texts
sequence
meta
dict
scores
sequence
avg_score
float64
0
0.13
num_sents
int64
5
5
[ "/*\r\n * Copyright (C) the libgit2 contributors. ", "All rights reserved.", "\r\n *\r\n * This file is part of libgit2, distributed under the GNU GPL v2 with\r\n * a Linking Exception. ", "For full terms see the included COPYING file.", "\r\n */\r\n\r\n#include \"refs.h\"\r\n\r\n#include \"hash.h\"\r\n#include \"repository.h\"\r\n#include \"fileops.h\"\r\n#include \"filebuf.h\"\r\n#include \"pack.h\"\r\n#include \"reflog.h\"\r\n#include \"refdb.h\"\r\n\r\n#include <git2/tag.h>\r\n#include <git2/object.h>\r\n#include <git2/oid.h>\r\n#include <git2/branch.h>\r\n#include <git2/refs.h>\r\n#include <git2/refdb.h>\r\n#include <git2/sys/refs.h>\r\n#include <git2/signature.h>\r\n#include <git2/commit.h>\r\n\r\nbool git_reference__enable_symbolic_ref_target_validation = true;\r\n\r\n#define DEFAULT_NESTING_LEVEL\t5\r\n#define MAX_NESTING_LEVEL\t\t10\r\n\r\nenum {\r\n\tGIT_PACKREF_HAS_PEEL = 1,\r\n\tGIT_PACKREF_WAS_LOOSE = 2\r\n};\r\n\r\nstatic git_reference *alloc_ref(const char *name)\r\n{\r\n\tgit_reference *ref = NULL;\r\n\tsize_t namelen = strlen(name), reflen;\r\n\r\n\tif (!", "GIT_ADD_SIZET_OVERFLOW(&reflen, sizeof(git_reference), namelen) &&\r\n\t\t!", "GIT_ADD_SIZET_OVERFLOW(&reflen, reflen, 1) &&\r\n\t\t(ref = git__calloc(1, reflen)) !", "= NULL)\r\n\t\tmemcpy(ref->name, name, namelen + 1);\r\n\r\n\treturn ref;\r\n}\r\n\r\ngit_reference *git_reference__alloc_symbolic(\r\n\tconst char *name, const char *target)\r\n{\r\n\tgit_reference *ref;\r\n\r\n\tassert(name && target);\r\n\r\n\tref = alloc_ref(name);\r\n\tif (!", "ref)\r\n\t\treturn NULL;\r\n\r\n\tref->type = GIT_REF_SYMBOLIC;\r\n\r\n\tif ((ref->target.symbolic = git__strdup(target)) == NULL) {\r\n\t\tgit__free(ref);\r\n\t\treturn NULL;\r\n\t}\r\n\r\n\treturn ref;\r\n}\r\n\r\ngit_reference *git_reference__alloc(\r\n\tconst char *name,\r\n\tconst git_oid *oid,\r\n\tconst git_oid *peel)\r\n{\r\n\tgit_reference *ref;\r\n\r\n\tassert(name && oid);\r\n\r\n\tref = alloc_ref(name);\r\n\tif (!", "ref)\r\n\t\treturn NULL;\r\n\r\n\tref->type = GIT_REF_OID;\r\n\tgit_oid_cpy(&ref->target.oid, oid);\r\n\r\n\tif (peel !", "= NULL)\r\n\t\tgit_oid_cpy(&ref->peel, peel);\r\n\r\n\treturn ref;\r\n}\r\n\r\ngit_reference *git_reference__set_name(\r\n\tgit_reference *ref, const char *name)\r\n{\r\n\tsize_t namelen = strlen(name);\r\n\tsize_t reflen;\r\n\tgit_reference *rewrite = NULL;\r\n\r\n\tif (!", "GIT_ADD_SIZET_OVERFLOW(&reflen, sizeof(git_reference), namelen) &&\r\n\t\t!", "GIT_ADD_SIZET_OVERFLOW(&reflen, reflen, 1) &&\r\n\t\t(rewrite = git__realloc(ref, reflen)) !", "= NULL)\r\n\t\tmemcpy(rewrite->name, name, namelen + 1);\r\n\r\n\treturn rewrite;\r\n}\r\n\r\nint git_reference_dup(git_reference **dest, git_reference *source)\r\n{\r\n\tif (source->type == GIT_REF_SYMBOLIC)\r\n\t\t*dest = git_reference__alloc_symbolic(source->name, source->target.symbolic);\r\n\telse\r\n\t\t*dest = git_reference__alloc(source->name, &source->target.oid, &source->peel);\r\n\r\n\tGITERR_CHECK_ALLOC(*dest);\r\n\r\n\treturn 0;\r\n}\r\n\r\nvoid git_reference_free(git_reference *reference)\r\n{\r\n\tif (reference == NULL)\r\n\t\treturn;\r\n\r\n\tif (reference->type == GIT_REF_SYMBOLIC)\r\n\t\tgit__free(reference->target.symbolic);\r\n\r\n\tif (reference->db)\r\n\t\tGIT_REFCOUNT_DEC(reference->db, git_refdb__free);\r\n\r\n\tgit__free(reference);\r\n}\r\n\r\nint git_reference_delete(git_reference *ref)\r\n{\r\n\tconst git_oid *old_id = NULL;\r\n\tconst char *old_target = NULL;\r\n\r\n\tif (ref->type == GIT_REF_OID)\r\n\t\told_id = &ref->target.oid;\r\n\telse\r\n\t\told_target = ref->target.symbolic;\r\n\r\n\treturn git_refdb_delete(ref->db, ref->name, old_id, old_target);\r\n}\r\n\r\nint git_reference_remove(git_repository *repo, const char *name)\r\n{\r\n\tgit_refdb *db;\r\n\tint error;\r\n\r\n\tif ((error = git_repository_refdb__weakptr(&db, repo)) < 0)\r\n\t\treturn error;\r\n\r\n\treturn git_refdb_delete(db, name, NULL, NULL);\r\n}\r\n\r\nint git_reference_lookup(git_reference **ref_out,\r\n\tgit_repository *repo, const char *name)\r\n{\r\n\treturn git_reference_lookup_resolved(ref_out, repo, name, 0);\r\n}\r\n\r\nint git_reference_name_to_id(\r\n\tgit_oid *out, git_repository *repo, const char *name)\r\n{\r\n\tint error;\r\n\tgit_reference *ref;\r\n\r\n\tif ((error = git_reference_lookup_resolved(&ref, repo, name, -1)) < 0)\r\n\t\treturn error;\r\n\r\n\tgit_oid_cpy(out, git_reference_target(ref));\r\n\tgit_reference_free(ref);\r\n\treturn 0;\r\n}\r\n\r\nstatic int reference_normalize_for_repo(\r\n\tgit_refname_t out,\r\n\tgit_repository *repo,\r\n\tconst char *name,\r\n\tbool validate)\r\n{\r\n\tint precompose;\r\n\tunsigned int flags = GIT_REF_FORMAT_ALLOW_ONELEVEL;\r\n\r\n\tif (!", "git_repository__cvar(&precompose, repo, GIT_CVAR_PRECOMPOSE) &&\r\n\t\tprecompose)\r\n\t\tflags |= GIT_REF_FORMAT__PRECOMPOSE_UNICODE;\r\n\r\n\tif (!", "validate)\r\n\t\tflags |= GIT_REF_FORMAT__VALIDATION_DISABLE;\r\n\r\n\treturn git_reference_normalize_name(out, GIT_REFNAME_MAX, name, flags);\r\n}\r\n\r\nint git_reference_lookup_resolved(\r\n\tgit_reference **ref_out,\r\n\tgit_repository *repo,\r\n\tconst char *name,\r\n\tint max_nesting)\r\n{\r\n\tgit_refname_t scan_name;\r\n\tgit_ref_t scan_type;\r\n\tint error = 0, nesting;\r\n\tgit_reference *ref = NULL;\r\n\tgit_refdb *refdb;\r\n\r\n\tassert(ref_out && repo && name);\r\n\r\n\t*ref_out = NULL;\r\n\r\n\tif (max_nesting > MAX_NESTING_LEVEL)\r\n\t\tmax_nesting = MAX_NESTING_LEVEL;\r\n\telse if (max_nesting < 0)\r\n\t\tmax_nesting = DEFAULT_NESTING_LEVEL;\r\n\r\n\tscan_type = GIT_REF_SYMBOLIC;\r\n\r\n\tif ((error = reference_normalize_for_repo(scan_name, repo, name, true)) < 0)\r\n\t\treturn error;\r\n\r\n\tif ((error = git_repository_refdb__weakptr(&refdb, repo)) < 0)\r\n\t\treturn error;\r\n\r\n\tfor (nesting = max_nesting;\r\n\t\t nesting >= 0 && scan_type == GIT_REF_SYMBOLIC;\r\n\t\t nesting--)\r\n\t{\r\n\t\tif (nesting !", "= max_nesting) {\r\n\t\t\tstrncpy(scan_name, ref->target.symbolic, sizeof(scan_name));\r\n\t\t\tgit_reference_free(ref);\r\n\t\t}\r\n\r\n\t\tif ((error = git_refdb_lookup(&ref, refdb, scan_name)) < 0)\r\n\t\t\treturn error;\r\n\r\n\t\tscan_type = ref->type;\r\n\t}\r\n\r\n\tif (scan_type !", "= GIT_REF_OID && max_nesting !", "= 0) {\r\n\t\tgiterr_set(GITERR_REFERENCE,\r\n\t\t\t\"cannot resolve reference (>%u levels deep)\", max_nesting);\r\n\t\tgit_reference_free(ref);\r\n\t\treturn -1;\r\n\t}\r\n\r\n\t*ref_out = ref;\r\n\treturn 0;\r\n}\r\n\r\nint git_reference__read_head(\r\n\tgit_reference **out,\r\n\tgit_repository *repo,\r\n\tconst char *path)\r\n{\r\n\tgit_buf reference = GIT_BUF_INIT;\r\n\tchar *name = NULL;\r\n\tint error;\r\n\r\n\tif ((error = git_futils_readbuffer(&reference, path)) < 0)\r\n\t\tgoto out;\r\n\tgit_buf_rtrim(&reference);\r\n\r\n\tif (git__strncmp(reference.ptr, GIT_SYMREF, strlen(GIT_SYMREF)) == 0) {\r\n\t\tgit_buf_consume(&reference, reference.ptr + strlen(GIT_SYMREF));\r\n\r\n\t\tname = git_path_basename(path);\r\n\r\n\t\tif ((*out = git_reference__alloc_symbolic(name, reference.ptr)) == NULL) {\r\n\t\t\terror = -1;\r\n\t\t\tgoto out;\r\n\t\t}\r\n\t} else {\r\n\t\tif ((error = git_reference_lookup(out, repo, reference.ptr)) < 0)\r\n\t\t\tgoto out;\r\n\t}\r\n\r\nout:\r\n\tgit__free(name);\r\n\tgit_buf_free(&reference);\r\n\r\n\treturn error;\r\n}\r\n\r\nint git_reference_dwim(git_reference **out, git_repository *repo, const char *refname)\r\n{\r\n\tint error = 0, i;\r\n\tbool fallbackmode = true, foundvalid = false;\r\n\tgit_reference *ref;\r\n\tgit_buf refnamebuf = GIT_BUF_INIT, name = GIT_BUF_INIT;\r\n\r\n\tstatic const char* formatters[] = {\r\n\t\t\"%s\",\r\n\t\tGIT_REFS_DIR \"%s\",\r\n\t\tGIT_REFS_TAGS_DIR \"%s\",\r\n\t\tGIT_REFS_HEADS_DIR \"%s\",\r\n\t\tGIT_REFS_REMOTES_DIR \"%s\",\r\n\t\tGIT_REFS_REMOTES_DIR \"%s/\" GIT_HEAD_FILE,\r\n\t\tNULL\r\n\t};\r\n\r\n\tif (*refname)\r\n\t\tgit_buf_puts(&name, refname);\r\n\telse {\r\n\t\tgit_buf_puts(&name, GIT_HEAD_FILE);\r\n\t\tfallbackmode = false;\r\n\t}\r\n\r\n\tfor (i = 0; formatters[i] && (fallbackmode || i == 0); i++) {\r\n\r\n\t\tgit_buf_clear(&refnamebuf);\r\n\r\n\t\tif ((error = git_buf_printf(&refnamebuf, formatters[i], git_buf_cstr(&name))) < 0)\r\n\t\t\tgoto cleanup;\r\n\r\n\t\tif (!", "git_reference_is_valid_name(git_buf_cstr(&refnamebuf))) {\r\n\t\t\terror = GIT_EINVALIDSPEC;\r\n\t\t\tcontinue;\r\n\t\t}\r\n\t\tfoundvalid = true;\r\n\r\n\t\terror = git_reference_lookup_resolved(&ref, repo, git_buf_cstr(&refnamebuf), -1);\r\n\r\n\t\tif (!", "error) {\r\n\t\t\t*out = ref;\r\n\t\t\terror = 0;\r\n\t\t\tgoto cleanup;\r\n\t\t}\r\n\r\n\t\tif (error !", "= GIT_ENOTFOUND)\r\n\t\t\tgoto cleanup;\r\n\t}\r\n\r\ncleanup:\r\n\tif (error && !", "foundvalid) {\r\n\t\t/* never found a valid reference name */\r\n\t\tgiterr_set(GITERR_REFERENCE,\r\n\t\t\t\"could not use '%s' as valid reference name\", git_buf_cstr(&name));\r\n\t}\r\n\r\n\tif (error == GIT_ENOTFOUND)\r\n\t\tgiterr_set(GITERR_REFERENCE, \"no reference found for shorthand '%s'\", refname);\r\n\r\n\tgit_buf_free(&name);\r\n\tgit_buf_free(&refnamebuf);\r\n\treturn error;\r\n}\r\n\r\n/**\r\n * Getters\r\n */\r\ngit_ref_t git_reference_type(const git_reference *ref)\r\n{\r\n\tassert(ref);\r\n\treturn ref->type;\r\n}\r\n\r\nconst char *git_reference_name(const git_reference *ref)\r\n{\r\n\tassert(ref);\r\n\treturn ref->name;\r\n}\r\n\r\ngit_repository *git_reference_owner(const git_reference *ref)\r\n{\r\n\tassert(ref);\r\n\treturn ref->db->repo;\r\n}\r\n\r\nconst git_oid *git_reference_target(const git_reference *ref)\r\n{\r\n\tassert(ref);\r\n\r\n\tif (ref->type !", "= GIT_REF_OID)\r\n\t\treturn NULL;\r\n\r\n\treturn &ref->target.oid;\r\n}\r\n\r\nconst git_oid *git_reference_target_peel(const git_reference *ref)\r\n{\r\n\tassert(ref);\r\n\r\n\tif (ref->type !", "= GIT_REF_OID || git_oid_iszero(&ref->peel))\r\n\t\treturn NULL;\r\n\r\n\treturn &ref->peel;\r\n}\r\n\r\nconst char *git_reference_symbolic_target(const git_reference *ref)\r\n{\r\n\tassert(ref);\r\n\r\n\tif (ref->type !", "= GIT_REF_SYMBOLIC)\r\n\t\treturn NULL;\r\n\r\n\treturn ref->target.symbolic;\r\n}\r\n\r\nstatic int reference__create(\r\n\tgit_reference **ref_out,\r\n\tgit_repository *repo,\r\n\tconst char *name,\r\n\tconst git_oid *oid,\r\n\tconst char *symbolic,\r\n\tint force,\r\n\tconst git_signature *signature,\r\n\tconst char *log_message,\r\n\tconst git_oid *old_id,\r\n\tconst char *old_target)\r\n{\r\n\tgit_refname_t normalized;\r\n\tgit_refdb *refdb;\r\n\tgit_reference *ref = NULL;\r\n\tint error = 0;\r\n\r\n\tassert(repo && name);\r\n\tassert(symbolic || signature);\r\n\r\n\tif (ref_out)\r\n\t\t*ref_out = NULL;\r\n\r\n\terror = reference_normalize_for_repo(normalized, repo, name, true);\r\n\tif (error < 0)\r\n\t\treturn error;\r\n\r\n\terror = git_repository_refdb__weakptr(&refdb, repo);\r\n\tif (error < 0)\r\n\t\treturn error;\r\n\r\n\tif (oid !", "= NULL) {\r\n\t\tassert(symbolic == NULL);\r\n\r\n\t\tif (!", "git_object__is_valid(repo, oid, GIT_OBJ_ANY)) {\r\n\t\t\tgiterr_set(GITERR_REFERENCE,\r\n\t\t\t\t\"target OID for the reference doesn't exist on the repository\");\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\tref = git_reference__alloc(normalized, oid, NULL);\r\n\t} else {\r\n\t\tgit_refname_t normalized_target;\r\n\r\n\t\terror = reference_normalize_for_repo(normalized_target, repo,\r\n\t\t\tsymbolic, git_reference__enable_symbolic_ref_target_validation);\r\n\r\n\t\tif (error < 0)\r\n\t\t\treturn error;\r\n\r\n\t\tref = git_reference__alloc_symbolic(normalized, normalized_target);\r\n\t}\r\n\r\n\tGITERR_CHECK_ALLOC(ref);\r\n\r\n\tif ((error = git_refdb_write(refdb, ref, force, signature, log_message, old_id, old_target)) < 0) {\r\n\t\tgit_reference_free(ref);\r\n\t\treturn error;\r\n\t}\r\n\r\n\tif (ref_out == NULL)\r\n\t\tgit_reference_free(ref);\r\n\telse\r\n\t\t*ref_out = ref;\r\n\r\n\treturn 0;\r\n}\r\n\r\nint configured_ident(git_signature **out, const git_repository *repo)\r\n{\r\n\tif (repo->ident_name && repo->ident_email)\r\n\t\treturn git_signature_now(out, repo->ident_name, repo->ident_email);\r\n\r\n\t/* if not configured let us fall-through to the next method */\r\n\treturn -1;\r\n}\r\n\r\nint git_reference__log_signature(git_signature **out, git_repository *repo)\r\n{\r\n\tint error;\r\n\tgit_signature *who;\r\n\r\n\tif(((error = configured_ident(&who, repo)) < 0) &&\r\n\t ((error = git_signature_default(&who, repo)) < 0) &&\r\n\t ((error = git_signature_now(&who, \"unknown\", \"unknown\")) < 0))\r\n\t\treturn error;\r\n\r\n\t*out = who;\r\n\treturn 0;\r\n}\r\n\r\nint git_reference_create_matching(\r\n\tgit_reference **ref_out,\r\n\tgit_repository *repo,\r\n\tconst char *name,\r\n\tconst git_oid *id,\r\n\tint force,\r\n\tconst git_oid *old_id,\r\n\tconst char *log_message)\r\n\r\n{\r\n\tint error;\r\n\tgit_signature *who = NULL;\r\n\r\n\tassert(id);\r\n\r\n\tif ((error = git_reference__log_signature(&who, repo)) < 0)\r\n\t\treturn error;\r\n\r\n\terror = reference__create(\r\n\t\tref_out, repo, name, id, NULL, force, who, log_message, old_id, NULL);\r\n\r\n\tgit_signature_free(who);\r\n\treturn error;\r\n}\r\n\r\nint git_reference_create(\r\n\tgit_reference **ref_out,\r\n\tgit_repository *repo,\r\n\tconst char *name,\r\n\tconst git_oid *id,\r\n\tint force,\r\n\tconst char *log_message)\r\n{\r\n return git_reference_create_matching(ref_out, repo, name, id, force, NULL, log_message);\r\n}\r\n\r\nint git_reference_symbolic_create_matching(\r\n\tgit_reference **ref_out,\r\n\tgit_repository *repo,\r\n\tconst char *name,\r\n\tconst char *target,\r\n\tint force,\r\n\tconst char *old_target,\r\n\tconst char *log_message)\r\n{\r\n\tint error;\r\n\tgit_signature *who = NULL;\r\n\r\n\tassert(target);\r\n\r\n\tif ((error = git_reference__log_signature(&who, repo)) < 0)\r\n\t\treturn error;\r\n\r\n\terror = reference__create(\r\n\t\tref_out, repo, name, NULL, target, force, who, log_message, NULL, old_target);\r\n\r\n\tgit_signature_free(who);\r\n\treturn error;\r\n}\r\n\r\nint git_reference_symbolic_create(\r\n\tgit_reference **ref_out,\r\n\tgit_repository *repo,\r\n\tconst char *name,\r\n\tconst char *target,\r\n\tint force,\r\n\tconst char *log_message)\r\n{\r\n\treturn git_reference_symbolic_create_matching(ref_out, repo, name, target, force, NULL, log_message);\r\n}\r\n\r\nstatic int ensure_is_an_updatable_direct_reference(git_reference *ref)\r\n{\r\n\tif (ref->type == GIT_REF_OID)\r\n\t\treturn 0;\r\n\r\n\tgiterr_set(GITERR_REFERENCE, \"cannot set OID on symbolic reference\");\r\n\treturn -1;\r\n}\r\n\r\nint git_reference_set_target(\r\n\tgit_reference **out,\r\n\tgit_reference *ref,\r\n\tconst git_oid *id,\r\n\tconst char *log_message)\r\n{\r\n\tint error;\r\n\tgit_repository *repo;\r\n\r\n\tassert(out && ref && id);\r\n\r\n\trepo = ref->db->repo;\r\n\r\n\tif ((error = ensure_is_an_updatable_direct_reference(ref)) < 0)\r\n\t\treturn error;\r\n\r\n\treturn git_reference_create_matching(out, repo, ref->name, id, 1, &ref->target.oid, log_message);\r\n}\r\n\r\nstatic int ensure_is_an_updatable_symbolic_reference(git_reference *ref)\r\n{\r\n\tif (ref->type == GIT_REF_SYMBOLIC)\r\n\t\treturn 0;\r\n\r\n\tgiterr_set(GITERR_REFERENCE, \"cannot set symbolic target on a direct reference\");\r\n\treturn -1;\r\n}\r\n\r\nint git_reference_symbolic_set_target(\r\n\tgit_reference **out,\r\n\tgit_reference *ref,\r\n\tconst char *target,\r\n\tconst char *log_message)\r\n{\r\n\tint error;\r\n\r\n\tassert(out && ref && target);\r\n\r\n\tif ((error = ensure_is_an_updatable_symbolic_reference(ref)) < 0)\r\n\t\treturn error;\r\n\r\n\treturn git_reference_symbolic_create_matching(\r\n\t\tout, ref->db->repo, ref->name, target, 1, ref->target.symbolic, log_message);\r\n}\r\n\r\ntypedef struct {\r\n const char *old_name;\r\n git_refname_t new_name;\r\n} rename_cb_data;\r\n\r\nstatic int update_wt_heads(git_repository *repo, const char *path, void *payload)\r\n{\r\n\trename_cb_data *data = (rename_cb_data *) payload;\r\n\tgit_reference *head = NULL;\r\n\tchar *gitdir = NULL;\r\n\tint error;\r\n\r\n\tif ((error = git_reference__read_head(&head, repo, path)) < 0) {\r\n\t\tgiterr_set(GITERR_REFERENCE, \"could not read HEAD when renaming references\");\r\n\t\tgoto out;\r\n\t}\r\n\r\n\tif ((gitdir = git_path_dirname(path)) == NULL) {\r\n\t\terror = -1;\r\n\t\tgoto out;\r\n\t}\r\n\r\n\tif (git_reference_type(head) !", "= GIT_REF_SYMBOLIC ||\r\n\t git__strcmp(head->target.symbolic, data->old_name) !", "= 0) {\r\n\t\terror = 0;\r\n\t\tgoto out;\r\n\t}\r\n\r\n\t/* Update HEAD it was pointing to the reference being renamed */\r\n\tif ((error = git_repository_create_head(gitdir, data->new_name)) < 0) {\r\n\t\tgiterr_set(GITERR_REFERENCE, \"failed to update HEAD after renaming reference\");\r\n\t\tgoto out;\r\n\t}\r\n\r\nout:\r\n\tgit_reference_free(head);\r\n\tgit__free(gitdir);\r\n\r\n\treturn error;\r\n}\r\n\r\nstatic int reference__rename(git_reference **out, git_reference *ref, const char *new_name, int force,\r\n\t\t\t\t const git_signature *signature, const char *message)\r\n{\r\n\tgit_repository *repo;\r\n\tgit_refname_t normalized;\r\n\tbool should_head_be_updated = false;\r\n\tint error = 0;\r\n\r\n\tassert(ref && new_name && signature);\r\n\r\n\trepo = git_reference_owner(ref);\r\n\r\n\tif ((error = reference_normalize_for_repo(\r\n\t\tnormalized, repo, new_name, true)) < 0)\r\n\t\treturn error;\r\n\r\n\t/* Check if we have to update HEAD. */", "\r\n\tif ((error = git_branch_is_head(ref)) < 0)\r\n\t\treturn error;\r\n\r\n\tshould_head_be_updated = (error > 0);\r\n\r\n\tif ((error = git_refdb_rename(out, ref->db, ref->name, normalized, force, signature, message)) < 0)\r\n\t\treturn error;\r\n\r\n\t/* Update HEAD if it was pointing to the reference being renamed */\r\n\tif (should_head_be_updated) {\r\n\t\terror = git_repository_set_head(ref->db->repo, normalized);\r\n\t} else {\r\n\t\trename_cb_data payload;\r\n\t\tpayload.old_name = ref->name;\r\n\t\tmemcpy(&payload.new_name, &normalized, sizeof(normalized));\r\n\r\n\t\terror = git_repository_foreach_head(repo, update_wt_heads, &payload);\r\n\t}\r\n\r\n\treturn error;\r\n}\r\n\r\n\r\nint git_reference_rename(\r\n\tgit_reference **out,\r\n\tgit_reference *ref,\r\n\tconst char *new_name,\r\n\tint force,\r\n\tconst char *log_message)\r\n{\r\n\tgit_signature *who;\r\n\tint error;\r\n\r\n\tif ((error = git_reference__log_signature(&who, ref->db->repo)) < 0)\r\n\t\treturn error;\r\n\r\n\terror = reference__rename(out, ref, new_name, force, who, log_message);\r\n\tgit_signature_free(who);\r\n\r\n\treturn error;\r\n}\r\n\r\nint git_reference_resolve(git_reference **ref_out, const git_reference *ref)\r\n{\r\n\tswitch (git_reference_type(ref)) {\r\n\tcase GIT_REF_OID:\r\n\t\treturn git_reference_lookup(ref_out, ref->db->repo, ref->name);\r\n\r\n\tcase GIT_REF_SYMBOLIC:\r\n\t\treturn git_reference_lookup_resolved(ref_out, ref->db->repo, ref->target.symbolic, -1);\r\n\r\n\tdefault:\r\n\t\tgiterr_set(GITERR_REFERENCE, \"invalid reference\");\r\n\t\treturn -1;\r\n\t}\r\n}\r\n\r\nint git_reference_foreach(\r\n\tgit_repository *repo,\r\n\tgit_reference_foreach_cb callback,\r\n\tvoid *payload)\r\n{\r\n\tgit_reference_iterator *iter;\r\n\tgit_reference *ref;\r\n\tint error;\r\n\r\n\tif ((error = git_reference_iterator_new(&iter, repo)) < 0)\r\n\t\treturn error;\r\n\r\n\twhile (!(", "error = git_reference_next(&ref, iter))) {\r\n\t\tif ((error = callback(ref, payload)) !", "= 0) {\r\n\t\t\tgiterr_set_after_callback(error);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\tif (error == GIT_ITEROVER)\r\n\t\terror = 0;\r\n\r\n\tgit_reference_iterator_free(iter);\r\n\treturn error;\r\n}\r\n\r\nint git_reference_foreach_name(\r\n\tgit_repository *repo,\r\n\tgit_reference_foreach_name_cb callback,\r\n\tvoid *payload)\r\n{\r\n\tgit_reference_iterator *iter;\r\n\tconst char *refname;\r\n\tint error;\r\n\r\n\tif ((error = git_reference_iterator_new(&iter, repo)) < 0)\r\n\t\treturn error;\r\n\r\n\twhile (!(", "error = git_reference_next_name(&refname, iter))) {\r\n\t\tif ((error = callback(refname, payload)) !", "= 0) {\r\n\t\t\tgiterr_set_after_callback(error);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\tif (error == GIT_ITEROVER)\r\n\t\terror = 0;\r\n\r\n\tgit_reference_iterator_free(iter);\r\n\treturn error;\r\n}\r\n\r\nint git_reference_foreach_glob(\r\n\tgit_repository *repo,\r\n\tconst char *glob,\r\n\tgit_reference_foreach_name_cb callback,\r\n\tvoid *payload)\r\n{\r\n\tgit_reference_iterator *iter;\r\n\tconst char *refname;\r\n\tint error;\r\n\r\n\tif ((error = git_reference_iterator_glob_new(&iter, repo, glob)) < 0)\r\n\t\treturn error;\r\n\r\n\twhile (!(", "error = git_reference_next_name(&refname, iter))) {\r\n\t\tif ((error = callback(refname, payload)) !", "= 0) {\r\n\t\t\tgiterr_set_after_callback(error);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\tif (error == GIT_ITEROVER)\r\n\t\terror = 0;\r\n\r\n\tgit_reference_iterator_free(iter);\r\n\treturn error;\r\n}\r\n\r\nint git_reference_iterator_new(git_reference_iterator **out, git_repository *repo)\r\n{\r\n\tgit_refdb *refdb;\r\n\r\n\tif (git_repository_refdb__weakptr(&refdb, repo) < 0)\r\n\t\treturn -1;\r\n\r\n\treturn git_refdb_iterator(out, refdb, NULL);\r\n}\r\n\r\nint git_reference_iterator_glob_new(\r\n\tgit_reference_iterator **out, git_repository *repo, const char *glob)\r\n{\r\n\tgit_refdb *refdb;\r\n\r\n\tif (git_repository_refdb__weakptr(&refdb, repo) < 0)\r\n\t\treturn -1;\r\n\r\n\treturn git_refdb_iterator(out, refdb, glob);\r\n}\r\n\r\nint git_reference_next(git_reference **out, git_reference_iterator *iter)\r\n{\r\n\treturn git_refdb_iterator_next(out, iter);\r\n}\r\n\r\nint git_reference_next_name(const char **out, git_reference_iterator *iter)\r\n{\r\n\treturn git_refdb_iterator_next_name(out, iter);\r\n}\r\n\r\nvoid git_reference_iterator_free(git_reference_iterator *iter)\r\n{\r\n\tif (iter == NULL)\r\n\t\treturn;\r\n\r\n\tgit_refdb_iterator_free(iter);\r\n}\r\n\r\nstatic int cb__reflist_add(const char *ref, void *data)\r\n{\r\n\tchar *name = git__strdup(ref);\r\n\tGITERR_CHECK_ALLOC(name);\r\n\treturn git_vector_insert((git_vector *)data, name);\r\n}\r\n\r\nint git_reference_list(\r\n\tgit_strarray *array,\r\n\tgit_repository *repo)\r\n{\r\n\tgit_vector ref_list;\r\n\r\n\tassert(array && repo);\r\n\r\n\tarray->strings = NULL;\r\n\tarray->count = 0;\r\n\r\n\tif (git_vector_init(&ref_list, 8, NULL) < 0)\r\n\t\treturn -1;\r\n\r\n\tif (git_reference_foreach_name(\r\n\t\t\trepo, &cb__reflist_add, (void *)&ref_list) < 0) {\r\n\t\tgit_vector_free(&ref_list);\r\n\t\treturn -1;\r\n\t}\r\n\r\n\tarray->strings = (char **)git_vector_detach(&array->count, NULL, &ref_list);\r\n\r\n\treturn 0;\r\n}\r\n\r\nstatic int is_valid_ref_char(char ch)\r\n{\r\n\tif ((unsigned) ch <= ' ')\r\n\t\treturn 0;\r\n\r\n\tswitch (ch) {\r\n\tcase '~':\r\n\tcase '^':\r\n\tcase ':':\r\n\tcase '\\\\':\r\n\tcase '?':", "\r\n\tcase '[':\r\n\tcase '*':\r\n\t\treturn 0;\r\n\tdefault:\r\n\t\treturn 1;\r\n\t}\r\n}\r\n\r\nstatic int ensure_segment_validity(const char *name)\r\n{\r\n\tconst char *current = name;\r\n\tchar prev = '\\0';\r\n\tconst int lock_len = (int)strlen(GIT_FILELOCK_EXTENSION);\r\n\tint segment_len;\r\n\r\n\tif (*current == '.')", "\r\n\t\treturn -1; /* Refname starts with \".\" */", "\r\n\r\n\tfor (current = name; ; current++) {\r\n\t\tif (*current == '\\0' || *current == '/')\r\n\t\t\tbreak;\r\n\r\n\t\tif (!", "is_valid_ref_char(*current))\r\n\t\t\treturn -1; /* Illegal character in refname */\r\n\r\n\t\tif (prev == '.' && *", "current == '.')", "\r\n\t\t\treturn -1; /* Refname contains \"..\" */\r\n\r\n\t\tif (prev == '@' && *current == '{')\r\n\t\t\treturn -1; /* Refname contains \"@{\" */\r\n\r\n\t\tprev = *current;\r\n\t}\r\n\r\n\tsegment_len = (int)(current - name);\r\n\r\n\t/* A refname component can not end with \".lock\" */\r\n\tif (segment_len >= lock_len &&\r\n\t\t!", "memcmp(current - lock_len, GIT_FILELOCK_EXTENSION, lock_len))\r\n\t\t\treturn -1;\r\n\r\n\treturn segment_len;\r\n}\r\n\r\nstatic bool is_all_caps_and_underscore(const char *name, size_t len)\r\n{\r\n\tsize_t i;\r\n\tchar c;\r\n\r\n\tassert(name && len > 0);\r\n\r\n\tfor (i = 0; i < len; i++)\r\n\t{\r\n\t\tc = name[i];\r\n\t\tif ((c < 'A' || c > 'Z') && c !", "= '_')\r\n\t\t\treturn false;\r\n\t}\r\n\r\n\tif (*name == '_' || name[len - 1] == '_')\r\n\t\treturn false;\r\n\r\n\treturn true;\r\n}\r\n\r\n/* Inspired from https://github.com/git/git/blob/f06d47e7e0d9db709ee204ed13a8a7486149f494/refs.c#L36-100 */\r\nint git_reference__normalize_name(\r\n\tgit_buf *buf,\r\n\tconst char *name,\r\n\tunsigned int flags)\r\n{\r\n\tconst char *current;\r\n\tint segment_len, segments_count = 0, error = GIT_EINVALIDSPEC;\r\n\tunsigned int process_flags;\r\n\tbool normalize = (buf !", "= NULL);\r\n\tbool validate = (flags & GIT_REF_FORMAT__VALIDATION_DISABLE) == 0;\r\n\r\n#ifdef GIT_USE_ICONV\r\n\tgit_path_iconv_t ic = GIT_PATH_ICONV_INIT;\r\n#endif\r\n\r\n\tassert(name);\r\n\r\n\tprocess_flags = flags;\r\n\tcurrent = (char *)name;\r\n\r\n\tif (validate && *current == '/')\r\n\t\tgoto cleanup;\r\n\r\n\tif (normalize)\r\n\t\tgit_buf_clear(buf);\r\n\r\n#ifdef GIT_USE_ICONV\r\n\tif ((flags & GIT_REF_FORMAT__PRECOMPOSE_UNICODE) !", "= 0) {\r\n\t\tsize_t namelen = strlen(current);\r\n\t\tif ((error = git_path_iconv_init_precompose(&ic)) < 0 ||\r\n\t\t\t(error = git_path_iconv(&ic, &current, &namelen)) < 0)\r\n\t\t\tgoto cleanup;\r\n\t\terror = GIT_EINVALIDSPEC;\r\n\t}\r\n#endif\r\n\r\n\tif (!", "validate) {\r\n\t\tgit_buf_sets(buf, current);\r\n\r\n\t\terror = git_buf_oom(buf) ? ", "-1 : 0;\r\n\t\tgoto cleanup;\r\n\t}\r\n\r\n\twhile (true) {\r\n\t\tsegment_len = ensure_segment_validity(current);\r\n\t\tif (segment_len < 0) {\r\n\t\t\tif ((process_flags & GIT_REF_FORMAT_REFSPEC_PATTERN) &&\r\n\t\t\t\t\tcurrent[0] == '*' &&\r\n\t\t\t\t\t(current[1] == '\\0' || current[1] == '/')) {\r\n\t\t\t\t/* Accept one wildcard as a full refname component. */", "\r\n\t\t\t\tprocess_flags &= ~GIT_REF_FORMAT_REFSPEC_PATTERN;\r\n\t\t\t\tsegment_len = 1;\r\n\t\t\t} else\r\n\t\t\t\tgoto cleanup;\r\n\t\t}\r\n\r\n\t\tif (segment_len > 0) {\r\n\t\t\tif (normalize) {\r\n\t\t\t\tsize_t cur_len = git_buf_len(buf);\r\n\r\n\t\t\t\tgit_buf_joinpath(buf, git_buf_cstr(buf), current);\r\n\t\t\t\tgit_buf_truncate(buf,\r\n\t\t\t\t\tcur_len + segment_len + (segments_count ? ", "1 : 0));\r\n\r\n\t\t\t\tif (git_buf_oom(buf)) {\r\n\t\t\t\t\terror = -1;\r\n\t\t\t\t\tgoto cleanup;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tsegments_count++;\r\n\t\t}\r\n\r\n\t\t/* No empty segment is allowed when not normalizing */\r\n\t\tif (segment_len == 0 && !", "normalize)\r\n\t\t\tgoto cleanup;\r\n\r\n\t\tif (current[segment_len] == '\\0')\r\n\t\t\tbreak;\r\n\r\n\t\tcurrent += segment_len + 1;\r\n\t}\r\n\r\n\t/* A refname can not be empty */\r\n\tif (segment_len == 0 && segments_count == 0)\r\n\t\tgoto cleanup;\r\n\r\n\t/* A refname can not end with \".\" */", "\r\n\tif (current[segment_len - 1] == '.')", "\r\n\t\tgoto cleanup;\r\n\r\n\t/* A refname can not end with \"/\" */\r\n\tif (current[segment_len - 1] == '/')\r\n\t\tgoto cleanup;\r\n\r\n\tif ((segments_count == 1 ) && !(", "flags & GIT_REF_FORMAT_ALLOW_ONELEVEL))\r\n\t\tgoto cleanup;\r\n\r\n\tif ((segments_count == 1 ) &&\r\n\t !(", "flags & GIT_REF_FORMAT_REFSPEC_SHORTHAND) &&\r\n\t\t!(", "is_all_caps_and_underscore(name, (size_t)segment_len) ||\r\n\t\t\t((flags & GIT_REF_FORMAT_REFSPEC_PATTERN) && !", "strcmp(\"*\", name))))\r\n\t\t\tgoto cleanup;\r\n\r\n\tif ((segments_count > 1)\r\n\t\t&& (is_all_caps_and_underscore(name, strchr(name, '/') - name)))\r\n\t\t\tgoto cleanup;\r\n\r\n\terror = 0;\r\n\r\ncleanup:\r\n\tif (error == GIT_EINVALIDSPEC)\r\n\t\tgiterr_set(\r\n\t\t\tGITERR_REFERENCE,\r\n\t\t\t\"the given reference name '%s' is not valid\", name);\r\n\r\n\tif (error && normalize)\r\n\t\tgit_buf_free(buf);\r\n\r\n#ifdef GIT_USE_ICONV\r\n\tgit_path_iconv_clear(&ic);\r\n#endif\r\n\r\n\treturn error;\r\n}\r\n\r\nint git_reference_normalize_name(\r\n\tchar *buffer_out,\r\n\tsize_t buffer_size,\r\n\tconst char *name,\r\n\tunsigned int flags)\r\n{\r\n\tgit_buf buf = GIT_BUF_INIT;\r\n\tint error;\r\n\r\n\tif ((error = git_reference__normalize_name(&buf, name, flags)) < 0)\r\n\t\tgoto cleanup;\r\n\r\n\tif (git_buf_len(&buf) > buffer_size - 1) {\r\n\t\tgiterr_set(\r\n\t\tGITERR_REFERENCE,\r\n\t\t\"the provided buffer is too short to hold the normalization of '%s'\", name);\r\n\t\terror = GIT_EBUFS;\r\n\t\tgoto cleanup;\r\n\t}\r\n\r\n\tgit_buf_copy_cstr(buffer_out, buffer_size, &buf);\r\n\r\n\terror = 0;\r\n\r\ncleanup:\r\n\tgit_buf_free(&buf);\r\n\treturn error;\r\n}\r\n\r\n#define GIT_REF_TYPEMASK (GIT_REF_OID | GIT_REF_SYMBOLIC)\r\n\r\nint git_reference_cmp(\r\n\tconst git_reference *ref1,\r\n\tconst git_reference *ref2)\r\n{\r\n\tgit_ref_t type1, type2;\r\n\tassert(ref1 && ref2);\r\n\r\n\ttype1 = git_reference_type(ref1);\r\n\ttype2 = git_reference_type(ref2);\r\n\r\n\t/* let's put symbolic refs before OIDs */\r\n\tif (type1 !", "= type2)\r\n\t\treturn (type1 == GIT_REF_SYMBOLIC) ? ", "-1 : 1;\r\n\r\n\tif (type1 == GIT_REF_SYMBOLIC)\r\n\t\treturn strcmp(ref1->target.symbolic, ref2->target.symbolic);\r\n\r\n\treturn git_oid__cmp(&ref1->target.oid, &ref2->target.oid);\r\n}\r\n\r\n/**\r\n * Get the end of a chain of references. ", "If the final one is not\r\n * found, we return the reference just before that.", "\r\n */\r\nstatic int get_terminal(git_reference **out, git_repository *repo, const char *ref_name, int nesting)\r\n{\r\n\tgit_reference *ref;\r\n\tint error = 0;\r\n\r\n\tif (nesting > MAX_NESTING_LEVEL) {\r\n\t\tgiterr_set(GITERR_REFERENCE, \"reference chain too deep (%d)\", nesting);\r\n\t\treturn GIT_ENOTFOUND;\r\n\t}\r\n\r\n\t/* set to NULL to let the caller know that they're at the end of the chain */\r\n\tif ((error = git_reference_lookup(&ref, repo, ref_name)) < 0) {\r\n\t\t*out = NULL;\r\n\t\treturn error;\r\n\t}\r\n\r\n\tif (git_reference_type(ref) == GIT_REF_OID) {\r\n\t\t*out = ref;\r\n\t\terror = 0;\r\n\t} else {\r\n\t\terror = get_terminal(out, repo, git_reference_symbolic_target(ref), nesting + 1);\r\n\t\tif (error == GIT_ENOTFOUND && !*", "out)\r\n\t\t\t*out = ref;\r\n\t\telse\r\n\t\t\tgit_reference_free(ref);\r\n\t}\r\n\r\n\treturn error;\r\n}\r\n\r\n/*\r\n * Starting with the reference given by `ref_name`, follows symbolic\r\n * references until a direct reference is found and updated the OID\r\n * on that direct reference to `oid`.", "\r\n */\r\nint git_reference__update_terminal(\r\n\tgit_repository *repo,\r\n\tconst char *ref_name,\r\n\tconst git_oid *oid,\r\n\tconst git_signature *sig,\r\n\tconst char *log_message)\r\n{\r\n\tgit_reference *ref = NULL, *ref2 = NULL;\r\n\tgit_signature *who = NULL;\r\n\tconst git_signature *to_use;\r\n\tint error = 0;\r\n\r\n\tif (!", "sig && (error = git_reference__log_signature(&who, repo)) < 0)\r\n\t\treturn error;\r\n\r\n\tto_use = sig ? ", "sig : who;\r\n\terror = get_terminal(&ref, repo, ref_name, 0);\r\n\r\n\t/* found a dangling symref */\r\n\tif (error == GIT_ENOTFOUND && ref) {\r\n\t\tassert(git_reference_type(ref) == GIT_REF_SYMBOLIC);\r\n\t\tgiterr_clear();\r\n\t\terror = reference__create(&ref2, repo, ref->target.symbolic, oid, NULL, 0, to_use,\r\n\t\t\t\t\t log_message, NULL, NULL);\r\n\t} else if (error == GIT_ENOTFOUND) {\r\n\t\tgiterr_clear();\r\n\t\terror = reference__create(&ref2, repo, ref_name, oid, NULL, 0, to_use,\r\n\t\t\t\t\t log_message, NULL, NULL);\r\n\t} else if (error == 0) {\r\n\t\tassert(git_reference_type(ref) == GIT_REF_OID);\r\n\t\terror = reference__create(&ref2, repo, ref->name, oid, NULL, 1, to_use,\r\n\t\t\t\t\t log_message, &ref->target.oid, NULL);\r\n\t}\r\n\r\n\tgit_reference_free(ref2);\r\n\tgit_reference_free(ref);\r\n\tgit_signature_free(who);\r\n\treturn error;\r\n}\r\n\r\nstatic const char *commit_type(const git_commit *commit)\r\n{\r\n\tunsigned int count = git_commit_parentcount(commit);\r\n\r\n\tif (count >= 2)\r\n\t\treturn \" (merge)\";\r\n\telse if (count == 0)\r\n\t\treturn \" (initial)\";\r\n\telse\r\n\t\treturn \"\";\r\n}\r\n\r\nint git_reference__update_for_commit(\r\n\tgit_repository *repo,\r\n\tgit_reference *ref,\r\n\tconst char *ref_name,\r\n\tconst git_oid *id,\r\n\tconst char *operation)\r\n{\r\n\tgit_reference *ref_new = NULL;\r\n\tgit_commit *commit = NULL;\r\n\tgit_buf reflog_msg = GIT_BUF_INIT;\r\n\tconst git_signature *who;\r\n\tint error;\r\n\r\n\tif ((error = git_commit_lookup(&commit, repo, id)) < 0 ||\r\n\t\t(error = git_buf_printf(&reflog_msg, \"%s%s: %s\",\r\n\t\t\toperation ? ", "operation : \"commit\",\r\n\t\t\tcommit_type(commit),\r\n\t\t\tgit_commit_summary(commit))) < 0)\r\n\t\tgoto done;\r\n\r\n\twho = git_commit_committer(commit);\r\n\r\n\tif (ref) {\r\n\t\tif ((error = ensure_is_an_updatable_direct_reference(ref)) < 0)\r\n\t\t\treturn error;\r\n\r\n\t\terror = reference__create(&ref_new, repo, ref->name, id, NULL, 1, who,\r\n\t\t\t\t\t git_buf_cstr(&reflog_msg), &ref->target.oid, NULL);\r\n\t}\r\n\telse\r\n\t\terror = git_reference__update_terminal(\r\n\t\t\trepo, ref_name, id, who, git_buf_cstr(&reflog_msg));\r\n\r\ndone:\r\n\tgit_reference_free(ref_new);\r\n\tgit_buf_free(&reflog_msg);\r\n\tgit_commit_free(commit);\r\n\treturn error;\r\n}\r\n\r\nint git_reference_has_log(git_repository *repo, const char *refname)\r\n{\r\n\tint error;\r\n\tgit_refdb *refdb;\r\n\r\n\tassert(repo && refname);\r\n\r\n\tif ((error = git_repository_refdb__weakptr(&refdb, repo)) < 0)\r\n\t\treturn error;\r\n\r\n\treturn git_refdb_has_log(refdb, refname);\r\n}\r\n\r\nint git_reference_ensure_log(git_repository *repo, const char *refname)\r\n{\r\n\tint error;\r\n\tgit_refdb *refdb;\r\n\r\n\tassert(repo && refname);\r\n\r\n\tif ((error = git_repository_refdb__weakptr(&refdb, repo)) < 0)\r\n\t\treturn error;\r\n\r\n\treturn git_refdb_ensure_log(refdb, refname);\r\n}\r\n\r\nint git_reference__is_branch(const char *ref_name)\r\n{\r\n\treturn git__prefixcmp(ref_name, GIT_REFS_HEADS_DIR) == 0;\r\n}\r\n\r\nint git_reference_is_branch(const git_reference *ref)\r\n{\r\n\tassert(ref);\r\n\treturn git_reference__is_branch(ref->name);\r\n}\r\n\r\nint git_reference__is_remote(const char *ref_name)\r\n{\r\n\treturn git__prefixcmp(ref_name, GIT_REFS_REMOTES_DIR) == 0;\r\n}\r\n\r\nint git_reference_is_remote(const git_reference *ref)\r\n{\r\n\tassert(ref);\r\n\treturn git_reference__is_remote(ref->name);\r\n}\r\n\r\nint git_reference__is_tag(const char *ref_name)\r\n{\r\n\treturn git__prefixcmp(ref_name, GIT_REFS_TAGS_DIR) == 0;\r\n}\r\n\r\nint git_reference_is_tag(const git_reference *ref)\r\n{\r\n\tassert(ref);\r\n\treturn git_reference__is_tag(ref->name);\r\n}\r\n\r\nint git_reference__is_note(const char *ref_name)\r\n{\r\n\treturn git__prefixcmp(ref_name, GIT_REFS_NOTES_DIR) == 0;\r\n}\r\n\r\nint git_reference_is_note(const git_reference *ref)\r\n{\r\n\tassert(ref);\r\n\treturn git_reference__is_note(ref->name);\r\n}\r\n\r\nstatic int peel_error(int error, git_reference *ref, const char* msg)\r\n{\r\n\tgiterr_set(\r\n\t\tGITERR_INVALID,\r\n\t\t\"the reference '%s' cannot be peeled - %s\", git_reference_name(ref), msg);\r\n\treturn error;\r\n}\r\n\r\nint git_reference_peel(\r\n\tgit_object **peeled,\r\n\tgit_reference *ref,\r\n\tgit_otype target_type)\r\n{\r\n\tgit_reference *resolved = NULL;\r\n\tgit_object *target = NULL;\r\n\tint error;\r\n\r\n\tassert(ref);\r\n\r\n\tif (ref->type == GIT_REF_OID) {\r\n\t\tresolved = ref;\r\n\t} else {\r\n\t\tif ((error = git_reference_resolve(&resolved, ref)) < 0)\r\n\t\t\treturn peel_error(error, ref, \"Cannot resolve reference\");\r\n\t}\r\n\r\n\t/*\r\n\t * If we try to peel an object to a tag, we cannot use\r\n\t * the fully peeled object, as that will always resolve\r\n\t * to a commit. ", "So we only want to use the peeled value\r\n\t * if it is not zero and the target is not a tag.", "\r\n\t */\r\n\tif (target_type !", "= GIT_OBJ_TAG && !", "git_oid_iszero(&resolved->peel)) {\r\n\t\terror = git_object_lookup(&target,\r\n\t\t\tgit_reference_owner(ref), &resolved->peel, GIT_OBJ_ANY);\r\n\t} else {\r\n\t\terror = git_object_lookup(&target,\r\n\t\t\tgit_reference_owner(ref), &resolved->target.oid, GIT_OBJ_ANY);\r\n\t}\r\n\r\n\tif (error < 0) {\r\n\t\tpeel_error(error, ref, \"Cannot retrieve reference target\");\r\n\t\tgoto cleanup;\r\n\t}\r\n\r\n\tif (target_type == GIT_OBJ_ANY && git_object_type(target) !", "= GIT_OBJ_TAG)\r\n\t\terror = git_object_dup(peeled, target);\r\n\telse\r\n\t\terror = git_object_peel(peeled, target, target_type);\r\n\r\ncleanup:\r\n\tgit_object_free(target);\r\n\r\n\tif (resolved !", "= ref)\r\n\t\tgit_reference_free(resolved);\r\n\r\n\treturn error;\r\n}\r\n\r\nint git_reference__is_valid_name(const char *refname, unsigned int flags)\r\n{\r\n\tif (git_reference__normalize_name(NULL, refname, flags) < 0) {\r\n\t\tgiterr_clear();\r\n\t\treturn false;\r\n\t}\r\n\r\n\treturn true;\r\n}\r\n\r\nint git_reference_is_valid_name(const char *refname)\r\n{\r\n\treturn git_reference__is_valid_name(refname, GIT_REF_FORMAT_ALLOW_ONELEVEL);\r\n}\r\n\r\nconst char *git_reference__shorthand(const char *name)\r\n{\r\n\tif (!", "git__prefixcmp(name, GIT_REFS_HEADS_DIR))\r\n\t\treturn name + strlen(GIT_REFS_HEADS_DIR);\r\n\telse if (!", "git__prefixcmp(name, GIT_REFS_TAGS_DIR))\r\n\t\treturn name + strlen(GIT_REFS_TAGS_DIR);\r\n\telse if (!", "git__prefixcmp(name, GIT_REFS_REMOTES_DIR))\r\n\t\treturn name + strlen(GIT_REFS_REMOTES_DIR);\r\n\telse if (!", "git__prefixcmp(name, GIT_REFS_DIR))\r\n\t\treturn name + strlen(GIT_REFS_DIR);\r\n\r\n\t/* No shorthands are avaiable, so just return the name */\r\n\treturn name;\r\n}\r\n\r\nconst char *git_reference_shorthand(const git_reference *ref)\r\n{\r\n\treturn git_reference__shorthand(ref->name);\r\n}\r\n" ]
{ "pile_set_name": "Github" }
[ 0, 0, 0.00980392156862745, 0, 0.01335113484646195, 0.014084507042253521, 0.012345679012345678, 0.01639344262295082, 0.01912568306010929, 0.0196078431372549, 0.012552301255230125, 0.014084507042253521, 0.011363636363636364, 0.004712041884816754, 0.014705882352941176, 0.005376344086021506, 0.004, 0.03333333333333333, 0.008670520231213872, 0.01327433628318584, 0, 0, 0.005076142131979695, 0.01764705882352941, 0.010256410256410256, 0.005333333333333333, 0.04081632653061224, 0.006422208411021338, 0, 0.004634994206257242, 0.004697592483852026, 0, 0, 0, 0, 0, 0.005863539445628998, 0, 0.022727272727272728, 0, 0.009615384615384616, 0, 0.010452961672473868, 0.009554140127388535, 0.004319654427645789, 0.007537688442211055, 0.008658008658008658, 0, 0.006211180124223602, 0, 0.014423076923076924, 0.011673151750972763, 0, 0.013245033112582781, 0.020202020202020204, 0.02, 0.009345794392523364, 0.007380073800738007, 0, 0.0045045045045045045, 0, 0.0043541364296081275, 0, 0.01, 0.010101010101010102, 0.010259917920656635, 0.005279831045406547, 0, 0, 0.05555555555555555, 0.011848341232227487, 0, 0, 0.010101010101010102, 0, 0, 0.003663003663003663 ]
0.008163
5
[ "Physicians' recognition of the symptoms experienced by HIV patients: how reliable?", "\nTo assess how well physicians recognize common symptoms in HIV patients and identify factors associated with symptom recognition, a multicenter cross-sectional survey was performed in a random sample of 118 hospitalized and 172 ambulatory HIV patients, and their attending physicians. ", "Patients' reports of 16 different symptoms were compared to physicians' reports of whether each symptom was present and/or specific treatments prescribed. ", "Overall, fatigue, anxiety, skin problems, fever, and weight loss were more often recognized by physicians than other symptoms. ", "Agreement between patients and physicians was poor to moderate, with Kappa statistics ranging from 0.17 (dry mouth) to 0.58 (fever). ", "Recognition was independently more likely for ambulatory patients (adjusted odds ratio 1.69, P < 0.001) and for patients seen as sicker (adjusted odds ratio 1.88, P < 0.001). ", "Appropriate symptom management requires improved symptom recognition. ", "More systematic clinical examinations, including attentive patient interview, are needed." ]
{ "pile_set_name": "PubMed Abstracts" }
[ 0, 0, 0, 0, 0.007518796992481203, 0.011428571428571429, 0, 0 ]
0.002368
5
[ "Q:\n\nOBJ Model Renderering Gaps\n\nWhen I render a OBJ Wavefront model which I parse using a parser that I built myself, I get the following result when rendering:\n\nAre the gaps that are present normal or is it just from faulty rendering code?", "\nHere is the rendering code:\nglPushMatrix();\nglColor3f(1.0f, 1.0f, 1.0f);\nglScaled(scale, scale, scale);\n\nglPolygonMode(GL_FRONT_AND_BACK, GL_FILL);\n\nfor (int i = 0; i < vertices_indexes.size()-3; i+=3) {\n glBegin(GL_TRIANGLE_FAN);\n if (is_normals) glNormal3f(normals.at(normals_indexes[i]).x, normals.at(normals_indexes[i]).y, normals.at(normals_indexes[i]).z);\n glVertex3f(vertices.at(vertices_indexes[i]).x, vertices.at(vertices_indexes[i]).y, vertices.at(vertices_indexes[i]).z);\n\n if (is_normals) glNormal3f(normals.at(normals_indexes[i+1]).x, normals.at(normals_indexes[i+1]).y, normals.at(normals_indexes[i+1]).z);\n glVertex3f(vertices.at(vertices_indexes[i + 1]).x, vertices.at(vertices_indexes[i + 1]).y, vertices.at(vertices_indexes[i + 1]).z);\n\n if (is_normals) glNormal3f(normals.at(normals_indexes[i+2]).x, normals.at(normals_indexes[i+2]).y, normals.at(normals_indexes[i+2]).z);\n glVertex3f(vertices.at(vertices_indexes[i + 2]).x, vertices.at(vertices_indexes[i + 2]).y, vertices.at(vertices_indexes[i + 2]).z);\n glEnd();\n}\n\nglPopMatrix();\n\nA:\n\nHave you checked that your model is created with triangles and not quads? ", "Most models you find will come rendered in quads by default, so you can either load it up in a 3D program (like Blender or Maya) and convert the mesh to triangles (Ctrl+T in Blender), or change your parser to handle quads. ", "\n\n" ]
{ "pile_set_name": "StackExchange" }
[ 0, 0.006773920406435224, 0.004484304932735426, 0 ]
0.002815
5
[ "Caregiver-reported antiretroviral therapy non-adherence during the first week and after a month of treatment initiation among children diagnosed with HIV in Ethiopia.", "\nTo achieve optimal virologic suppression for children undergoing antiretroviral therapy (ART), adherence must be excellent. ", "This is defined as taking more than 95% of their prescribed doses. ", "To our knowledge, no study in Ethiopia has evaluated the level of treatment adherence at the beginning of the child's treatment. ", "Our aim was therefore to evaluate caregiver-reported ART non-adherence among children and any predictors for this during the early course of treatment. ", "We conducted a prospective cohort study of 306 children with HIV in eight health facilities in Ethiopia who were registered at ART clinics between 20 December 2014 and 20 April 2015. ", "The adherence rate reported by caregivers during the first week and after a month of treatment initiation was 92.8% and 93.8%, respectively. ", "Our findings highlight important predictors of non-adherence. ", "Children whose caregivers were not undergoing HIV treatment and care themselves were less likely to be non-adherent during the first week of treatment (aOR = 0.17, 95% CI: 0.04, 0.71) and the children whose caregivers did not use a medication reminder after one month of treatment initiation (aOR = 5.21, 95% CI: 2.23, 12.16) were more likely to miss the prescribed dose. ", "Moreover, after one month of the treatment initiation, those receiving protease inhibitor (LPV/r) or ABC-based treatment regimens were more likely to be non-adherent (aOR = 12.32, 95% CI: 3.25, 46.67). ", "To promote treatment adherence during ART initiation in children, particular emphasis needs to be placed on a baseline treatment regimen and ways to issue reminders about the child's medication to both the health care system and caregivers. ", "Further, large scale studies using a combination of adherence measuring methods upon treatment initiation are needed to better define the magnitude and predictors of ART non-adherence in resource-limited settings." ]
{ "pile_set_name": "PubMed Abstracts" }
[ 0, 0.008, 0, 0, 0.006578947368421052, 0.00546448087431694, 0, 0, 0.005376344086021506, 0.01485148514851485, 0.004149377593360996, 0.004694835680751174 ]
0.004093
5
[ "Check out our new site Makeup Addiction\n\nadd your own caption\n\nadd your own caption\n\nadd your own caption\n\nadd your own caption\n\nadd your own caption\n\nadd your own caption\n\nadd your own caption\n\nadd your own caption\n\nadd your own caption\n\nadd your own caption\n\nadd your own caption\n\nForeign exchange student from america In Ewha Womans University" ]
{ "pile_set_name": "OpenWebText2" }
[ 0.005780346820809248 ]
0.00578
5
[ "Synopsis: “Around the world, black handprints are appearing on doorways, scorched there by winged strangers who have crept through a slit in the sky.", "\n\nIn a dark and dusty shop, a devil’s supply of human teeth grown dangerously low.", "\n\nAnd in the tangled lanes of Prague, a young art student is about to be caught up in a brutal otherwordly war.", "\n\nMeet Karou. ", "She fills her sketchbooks with monsters that may or may not be real; she’s prone to disappearing on mysterious “errands”; she speaks many languages–not all of them human; and her bright blue hair actually grows out of her head that color. ", "Who is she? ", "That is the question that haunts her, and she’s about to find out.", "\n\nWhen one of the strangers–beautiful, haunted Akiva–fixes his fire-colored eyes on her in an alley in Marrakesh, the result is blood and starlight, secrets unveiled, and a star-crossed love whose roots drink deep of a violent past. ", "But will Karou live to regret learning the truth about herself?” (", "Taken from Goodreads)\n\n[divider]\n\nYes I finally decided to pick this book up two months ago when Laini Taylor came into town. ", "I was on my way to the Hachette YA Blogger Night and went, ‘what the heck, might as well start the first chapter before I meet the author!’. ", "So I did, and guess what? ", "Can you guess, can you guess? ", "I was blown away. ", "By the first chapter. ", "Can you believe it, because I couldn’t. ", "I don’t remember the last time the first chapter of a book gripped me so hard, but Daughter of Smoke & Bone (DoSaB) clung on and did not let go.", "\n\nI’m not sure what I can really add to the immense amount of positive reviews out there already for this book and series. ", "I can only reiterate the same messages, and that is: read this book.", "\n\nThere’s something magical about Laini Taylor’s writing – it sucks you in and sings lyrical into your ears until you fall into this deep abyss of love for her characters and world-building. ", "Both are superb. ", "The book follows an artist girl name Karou living in our modern day Prague. ", "She is a normal student who also hides a secret from the rest of the world…she was raised by monsters. ", "Living between two worlds, Karou must juggle her secrets, especially when she’s being sent on errands around the world to collect teeth for her monster guardian Brimstone. ", "When black handprints start appearing on the doors between our world and the world of the monsters, Karou is thrust into the middle of a war between the seraphim and chimaeras. ", "As the secrets begin to reveal themselves, Karou begins to learn who she really is.", "\n\nThe story is fast-paced and brilliantly written. ", "There was not one moment where I thought it dragged, and I definitely did not want it to end. ", "The worlds Laini have built are beautiful and I’m so grateful that she had set her story in Prague and Morocco, two places that are rarely ever featured in the books I read. ", "Having recently been to Prague, prior to reading this book, really helped me imagine the setting properly and I definitely felt more immersed in the world-building as I recognised a lot of the places visited by Karou.", "\n\nThe only negative I had with this book was how insta-lovey Karou and Akiva’s relationship felt at the start. ", "As the story progressed, I came to understand this attraction between them so this wasn’t a major issue at all.", "\n\nI don’t know why I didn’t start this series sooner but I definitely know I will be continuing on with it. ", "The next two books are calling to me from my bookshelf, so I better go and give them some love.", "\n\nJoy is the head honcho of Thoughts By J. Her favourite genres are fantasy, sci-fi, mysteries, and the occasional romance that makes her heart beat faster. ", "You'll find she's quite sporadic with her blog posts, but will definitely find the time to reply to all your comments, and visit your blogs...it's just a matter of when.", "\n\nFollow me on Twitter\n\nDisclaimer\n\nThe books and items reviewed on Thoughts By J are purchased by us unless explicitly specified. ", "We occasionally receive books for review from Australian publishers in exchange for an honest review. ", "Thoughts By J does not receive monetary compensation for our reviews or posts." ]
{ "pile_set_name": "Pile-CC" }
[ 0, 0, 0, 0.07142857142857142, 0, 0, 0, 0.004291845493562232, 0.015151515151515152, 0.015873015873015872, 0.0070921985815602835, 0, 0, 0, 0, 0, 0.006944444444444444, 0, 0, 0.005235602094240838, 0, 0.013157894736842105, 0, 0.005813953488372093, 0.005649717514124294, 0.012048192771084338, 0, 0, 0.005747126436781609, 0.004608294930875576, 0.018018018018018018, 0.009009009009009009, 0, 0, 0.006369426751592357, 0, 0.007633587786259542, 0, 0 ]
0.005489
5
[ "Photographer's Note\n\nSeries on my trip to CHILE (Santiago de Chile, Valparaiso, Viña del Mar, Valle Nevado and Portillo) and ARGENTINA (Mendoza, Chacras de Coria and Uspallata) - from April 12th to 20th 2014 - #6 !", "\n\nACIMA DAS NUVENS !", "\nABOVE THE CLOUDS!", "\nENCIMA DE LAS NUBES!", "\n\nFlying from SÃO PAULO/SP (BRAZIL) to SANTIAGO DE CHILE included seeing the PARANÁ RIVER, CÓRDOBA and MENDOZA down there in Argentina!", "\nHere, once more, starting to fly over the ANDES, still in Argentina, near MENDOZA!", "\n\nHello Neyvan,\nThis is a remarkably sharp and clear photo through an airplane window. ", "Such pictures don't always look that good. ", "The inclusion of the wing is definitely a fine part of the composition.", "\nKind regards,\nGert\n\nWaaw Neyvan,another spectacular aerial view and the spectacle is truly fantastic,great capture like the others with the best quality of details and colors,i like it! ", "Have a nice week and thanks,Luciano\n\nHi Neyvan,\nIt is a massive mountain range and the air up there is very clear giving excellent shot through the aircraft window. ", "You got also a good seat, a window seat somewhere at the back is my favourite place.", "\nKari\n\nHi Ney,\nbeautiful series of photos from the plane. ", "It allows us to appreciate the Andes from an original perspective. ", "You had great seat which was far enough from the wing to allow such pictures.", "\nVery impressive view!", "\nM" ]
{ "pile_set_name": "Pile-CC" }
[ 0.018691588785046728, 0, 0, 0, 0.014814814814814815, 0, 0, 0, 0, 0.0053475935828877, 0.006060606060606061, 0, 0, 0, 0, 0, 0 ]
0.002642
5
[ "Q:\n\nShared project with T4 template\n\nI am big fan of shared projects and I want to use T4 templates similarly: reference shared project in different solutions and get access to generated content without hassle.", "\nHow to make T4 templates work in shared projects?", "\n\nA:\n\nSo far the easiest way to organize it is to link .tt files:\n\nMove all templates into separate shared project;\nDo not reference this shared project! ", "This is important and this is why previous step is essential. ", "When shared project is referenced it's not possible to link its files!", "\nLink .tt files from it (drag them with Alt key into target project or use Add - Existing item - Open - combo option \"As link\").", "\nNow you should be able to set their Custom Tool property (in file options) as TextTemplatingFileGenerator in target project (which is not possible in shared project and the reason of all troubles).", "\n\nSeems to work, though it's not really uses shared project feature. ", "Shared project is only used as a container for .tt files (any other project will do, but shared project doesn't produce output, so it's better imho) which are linked to target project.", "\n\n" ]
{ "pile_set_name": "StackExchange" }
[ 0.009523809523809525, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
0.000952
5
[ "Soil mesofauna\n\nSoil Mesofauna are invertebrates between 0.1mm and 2mm in size, which live in the soil or in a leaf litter layer on the soil surface. ", "Members of this group include nematodes, mites, springtails (collembola), proturans, pauropods, rotifers, tardigrades, small araneidae(spiders), pseudoscorpions, opiliones(harvestmen), enchytraeidae such as potworms, insect larvae, small isopods and myriapod They play an important part in the carbon cycle and are likely to be adversely affected by climate change.", "\n\nSoil mesofauna feed on a wide range of materials including other soil animals, microorganisms, animal material, live or decaying plant material, fungi, algae, lichen, spores, and pollen. ", "Species that feed on decaying plant material open drainage and aeration channels in the soil by removing roots. ", "Fecal material of soil mesofauna remains in channels which can be broken down by smaller animals.", "\n\nSoil mesofauna do not have the ability to reshape the soil and, therefore, are forced to use the existing pore space in soil, cavities, or channels for locomotion. ", "Soil Macrofauna, earthworms, termites, ants and some insect larvae, can make the pore spaces and hence can change the soil porosity, one aspect of soil morphology. ", "Mesofauna contribute to habitable pore spaces and account for a small portion of total pore spaces. ", " Clay soils have much smaller particles which reduce pore space. ", " Organic material can fill small pores. ", " Grazing of bacteria by bacterivorous nematodes and flagellates, soil mesofauna living in the pores, may considerably increase Nitrogen mineralization because the bacteria are broken down and the nitrogen is released.", "\n\nIn agricultural soils, most of the biological activity occurs in the top , the soil biomantle or plow layer, while in non-cultivated soils, the most biological activity occurs in top of soil. ", " The top layer is the organic horizon or O horizon, the area of accumulation of animal residues and recognizable plant material. ", " Animal residues are higher in nitrogen than plant residues with respect to the total carbon in the residue. ", " Some Nitrogen fixation is caused by bacteria which consume the amino acids and sugar that are exuded by the plant roots. ", " However, approximately 30% of nitrogen re-mineralization is contributed by soil fauna in agriculture and natural ecosystems. ", " Macro- and mesofauna break down plant residues to release Nitrogen as part of nutrient cycling.", "\n\nReferences \n\nCategory:Soil biology\nCategory:Zoology" ]
{ "pile_set_name": "Wikipedia (en)" }
[ 0, 0.00273224043715847, 0, 0, 0, 0, 0.006097560975609756, 0, 0, 0, 0.004608294930875576, 0, 0, 0, 0, 0, 0.010416666666666666, 0 ]
0.001325
5
[ "[Cerebral metastases of malignant germinal tumors of the testis].", "\nCerebral metastases occur in 6% of cases of testicular cancer. ", "In our study of 5 cases they occurred during the course of the disease (with a delay of 4-18 months, at the same time as pulmonary and abdominal metastases). ", "The prognosis in these cases is poor (presence of choriocarcinomatous or vitelline elements, advanced stages). ", "The diagnosis is easily established (clinical, encephalogram, scanner); the prognosis is hopeless (5 deaths in 3-90 days). ", "When a metastasis is the first diagnostic clue (one case), the prognosis is slightly better (9 month survival). ", "The incidence of cerebral metastasis is the same now as it was before the introduction of effective chemotherapy in patients who die from testicular cancer, but the death rate from this malignancy has decreased since the introduction of active chemotherapy with cisplatin. ", "Hence, there is no indication for prophylactic treatment for cerebral metastases in patients in remission since metastases only appear in cases which are resistant to treatment." ]
{ "pile_set_name": "PubMed Abstracts" }
[ 0.015384615384615385, 0, 0, 0, 0, 0, 0.003663003663003663, 0 ]
0.002381
5
[ "\n773 N.W.2d 725 (2009)\nPaul BLANTON, Petitioner-Appellant,\nv.\nDEPARTMENT OF CORRECTIONS, Respondent-Appellee.", "\nDocket No. ", "139039. ", "COA No. ", "289597.", "\nSupreme Court of Michigan.", "\nOctober 26, 2009.", "\n\nOrder\nOn order of the Court, the application for leave to appeal the March 18, 2009 order of the Court of Appeals is considered, and it is DENIED, because we are not persuaded that the questions presented should be reviewed by this Court.", "\n" ]
{ "pile_set_name": "FreeLaw" }
[ 0.01834862385321101, 0, 0, 0.125, 0, 0, 0, 0.0125, 0 ]
0.017317
5
[ "1844 in South Africa\n\n__NOTOC__\nThe following lists events that happened during 1844 in South Africa.", "\n\nEvents\n April - Voortrekkers from Natal cross back over the Drakensberg Mountains and settle at Potchefstroom\n Land ownership in the Cape Colony is changed from leasehold to free hold\n The settlement of Victoria West is established\n The Voortrekker leader Hendrik Potgieter settle at Delagoa Bay, Mozambique\n\nBirths\n 5 October - Francis William Reitz, South African lawyer, politician, and statesman, president of the Orange Free State born in Swellendam, Cape Colony.", "\n\nReferences\nSee Years in South Africa for list of References\n\nSouth Africa\nCategory:Years in South Africa" ]
{ "pile_set_name": "Wikipedia (en)" }
[ 0.009900990099009901, 0.01702127659574468, 0.009433962264150943 ]
0.012119
5
[ "Q:\n\nPhp Mail() not sending any emails out?", "\n\nI have a mail function\n $to = \"fahad@somewhere.com\";\n $subject = \"Voucher Number: \".$voucher;\n $message = '<html><body>';\n $message .= '<table rules=\"all\" style=\"border-color: #666;\" cellpadding=\"10\">';\n $message .= \"<tr style='background: #eee;'><td><strong>Voucher#:</strong> </td><td>\" . ", "strip_tags($voucher) . \"", "</td></tr>\";\n $message .= \"<tr><td><strong>Name:</strong> </td><td>\" . ", "strip_tags($name) . \"", "</td></tr>\";\n $message .= \"<tr><td><strong>Phone Number:</strong> </td><td>\" . ", "strip_tags($product) . \"", "</td></tr>\";\n $message .= \"<tr><td><strong>Email:</strong> </td><td>\" . ", "strip_tags($email) . \"", "</td></tr>\";\n\n//set content-type\n$headers = \"MIME-Version: 1.0\" . \"", "\\r\\n\";\n$headers .= \"Content-type:text/html;charset=iso-8859-1\" . \"", "\\r\\n\";\n\n// More headers\n$headers .= 'From: <livingdeal@overstock-king.com>' . \"", "\\r\\n\";\n$headers .= 'cc:'. ", "$email . \"", "\\r\\n\";\n\nmail($to,$subject,$message,$headers);\n\nFor some reason I'm not getting any mail sent at all. ", "The service is hosted so i'm not running it from localhost, and even when I write\nif (mail(....))\n{ echo \"success\";\n}\nelse { echo \"failed\"; }\n\nI always get success, so my suspicion is that it is a problem on the server end. ", "If php mail goes from port 25 is there any way to change the port to a different one in the script? ", "or would it be in php.ini.", "\nAlso, would I be able to use a different server (that has a different domain) to send the mail without redirecting the use to that other webpage? ", "I guess in other words can I connect to an smtp server through a php script before sending the mail?", "\n\nA:\n\nMail() doesn't send mail, it submits it to the server's mail daemon for sending. ", " If it returns true, that merely means that it was successfully submitted to the queue. ", " \nYou need to look at the logs of your mail daemon to determine if the messages are in the queue, if they were actually sent, and if not, what error messages were logged when the message failed to send. ", " \nBTW, the machine is running a mail daemon, right? ", "\n\n" ]
{ "pile_set_name": "StackExchange" }
[ 0.023809523809523808, 0.003278688524590164, 0, 0, 0, 0, 0, 0, 0, 0.014925373134328358, 0, 0.012658227848101266, 0, 0, 0.009900990099009901, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
0.002583
5
[ "Q:\n\nNew to Key-Value-Observing; why am I unable to monitor the value of an int in my AppDelegate?", "\n\nI have a public variable in my Objective-C++ AppDelegate called stepsCompleted, so I access it in my table view controller with [AppDelegate instance]->stepsCompleted.", "\nI want my table view controller to tell me when the value of that variable has changed, so I do the following in the initWithCoder: method that I know is being called:\n[self addObserver:self forKeyPath:@\"[AppDelegate instance]->stepsCompleted\" options:0 context:NULL];\n\nHowever, despite me changing stepsCompleted constantly in the AppDelegate, my method:\n- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {\n\n}\n\nIs never called.", "\nWhat exactly am I doing wrong?", "\n\nA:\n\nThere are different problems with your code. ", "First of all, Key-Value Observing is\na mechanism to observe properties of an object. ", "It does not work with instance\nvariables. ", "So you should declare \"stepsCompleted\" as a property of the application delegate instead of an instance variable:\n@property (nonatomic) int stepsCompleted;\n\nand set its value through the property accessor methods, e.g.\n[AppDelegate instance].stepsCompleted = newValue;\n\nNext, \"[AppDelegate instance]->c\" is not a key path, and you have to specify at least one observing option, e.g. NSKeyValueObservingOptionNew.", "\nTo observe the \"stepsCompleted\" property of [AppDelegate instance], it should be\n[[AppDelegate instance] addObserver:self \n forKeyPath:@\"stepsCompleted\"\n options:NSKeyValueObservingOptionNew\n context:NULL];\n\nA:\n\nAlthough it’s the quickest and easiest way, you don’t really need to declare an @property to use KVO, you just need to make sure that before you call willChange and didChange for the property correctly, and a way to access it.", "\nFor instance, in the most manual case, you could implement stepsCompleted like this:\n@implementation SomeClass {\n int _stepsCompleted;\n}\n\n- (void)setStepsCompleted:(int)stepsCompleted;\n{\n [self willChangeValueForKey:@“stepsCompleted”];\n _stepsCompleted = stepsCompleted;\n [self didChangeValueForKey:@“stepsCompleted”];\n}\n\n- (int)stepsCompleted;\n{\n return _stepsCompleted;\n}\n\n@end\n\nThen if you observed the keyPath “stepsCompleted” on “someObject\" you would get called when it changed, assuming you ONLY ever changed it by using its setter, for example via:\n[self stepsCompleted:10];\n\nBut since Apple introduced properties, the above can be shortened to the exactly equivalent:\nself.stepsCompleted = 10;\n\nBut that’s still a whole lot of code for the setter and getter, and you don’t have to write all that, because Apple did a couple cool things in the last several years. ", "One is the @property notation, which basically writes the above set/get code for you (with some extra good stuff thrown in). ", "So now you can just put in your .h file:\n@property int stepsCompleted;\n\nAnd those two methods will be written for you. ", "As long as you make sure you ONLY use the dot-notation or call the setter directly, KVO will work.", "\n\n" ]
{ "pile_set_name": "StackExchange" }
[ 0.010309278350515464, 0.011834319526627219, 0.001984126984126984, 0, 0, 0, 0, 0.009708737864077669, 0.007736943907156673, 0.004509582863585118, 0.008, 0.008403361344537815, 0.01020408163265306, 0 ]
0.005192
5
[ "(CNN) Two associates of President Donald Trump's personal lawyer Rudy Giuliani asked the former Ukrainian President in February to open an investigation into former Vice President Joe Biden and alleged interference into the 2016 election -- and in turn receive a state visit to Washington, DC, the Wall Street Journal reported on Friday.", "\n\nCiting people familiar with the matter, the paper reported that Lev Parnas and Igor Fruman -- two Giuliani associates indicted on criminal charges last month for allegedly funneling foreign money into US elections -- met to discuss the exchange with then-Ukrainian President Petro Poroshenko and then-Ukrainian general prosecutor Yuriy Lutsenko at Lutsenko's office.", "\n\nThe requests for investigations during the meeting mirror those later made by President Donald Trump when he asked current Ukrainian President Volodymy Zelensky -- who unseated Poroshenko -- on a July phone call to investigate former Vice President Joe Biden and his son, Hunter. ", "There is no evidence of wrongdoing by either Biden.", "\n\nPoroshenko never ultimately announced any such investigations, according to the Journal. ", "Giuliani's lawyer Robert Costello told the paper that Giuliani had no knowledge of the meeting between his associates and the Ukrainian officials.", "\n\nPoroshenko, who was in midst of a competitive reelection campaign, was interested in the potential Washington visit -- and the subsequent prestige -- floated by Giuliani's associates, one of the people familiar with the matter told the Journal.", "\n\nRead More" ]
{ "pile_set_name": "OpenWebText2" }
[ 0.01483679525222552, 0.01358695652173913, 0.014184397163120567, 0.0196078431372549, 0.01098901098901099, 0.02054794520547945, 0.008130081300813009, 0 ]
0.012735
5
[ "It is particularly useful to be able to display in three dimensions the interior structure of human, animal and other organisms. ", "Practically all of the data available on such organisms has at some time been collected from cross-sections through the organism. ", "From such sections, over the years, data has been collected and stored as pictures in books, on photographic slides and the like. ", "It is an object of this aspect of the invention to display this information in a multi-dimensional pictorial form. ", "It is known (U.K. Specifications No. ", "633712 and 634316) to provide a set of parallel transparent panels mounted to a support frame to represent different heights above the ground, for the purpose of plotting the movements of aircraft. ", "However, the pictorial representation is continually changing and does not represent a three-dimensional structure." ]
{ "pile_set_name": "USPTO Backgrounds" }
[ 0, 0, 0, 0, 0, 0, 0 ]
0
5
[ "I just wrapped up a week at a great dog daycare in Ottawa, Ontario – coincidentally enough called, Ottawa Doggy Daycare & Training Center. ", "I met lots of new friends there and had some interesting adventures.", "\n\nI’ll start at the beginning. ", "Before Mum left for the Cayman Islands, we looked around at a couple of places to find the best one for a little celebrity. ", "The first one we looked at was called the Ottawa Dog House. ", "I went in with Mum and Dad to look around. ", "Definitely not suitable for a celebrity. ", "It was a small, empty and decrepit looking bungalow house with what looked like an improvised wood and wire backyard fence. ", "There weren’t even beds in the house! ", "Just a bare floor to lie on. ", "Next!", "\n\nWe came to the Ottawa Doggy Daycare and it was an instant hit. ", "The owner was very nice and gave us a little tour. ", "It was a big warehouse-type building, but nicely done up with sections for small and big dogs. ", "The outdoor part was a bit small, but at least it was properly fenced. ", "You can always tell how good a place is by how many forms you have to fill out about your dog. ", "That way at least you know that all the dogs have had their vaccinations.", "\n\nSince my first day there I really took to one of the employees named Kathleen. ", "I guess she kind of played my motherly figure while Mum was gone. ", "She was also a good photographer and agreed to take the place of my usual 24/7 camera crew while I was at daycare.", "\n\nKathleen introduced me to a wonderful lady dachshund named, Dixie. ", "Here’s the two of us on the couch. ", "Technically, the dogs are not supposed to be on this couch, but who are we kidding? ", "We’re dachshunds..\n\nI was a bit lonely at first though, not knowing where my own Mum went, or why Dad was leaving me in this strange place for the day.", "\n\nKathleen (and all the other staff there) took great care of me. ", "They always made sure I was happy and comfortable. ", "They even gave me this cool orange ball to play with. ", "At first I thought it was just another regular ball, but when I saw it rolling around I noticed treats started falling out! ", "Awesome!", "\n\nBut when you’re out in the yard, or the ‘pen’ as some dogs call it – things change. ", "You got to watch your back. ", "Many of the dogs there recognized me and came to my side to form a clique, which I so dually dubbed, ‘Da Dawg Gang’. ", "There were a few of us, including Dixie the dachshund, Scout the terrier, and Horton the puggle. ", "They had all been going there a long time so really knew the ropes. ", "That’s me and Scout below. ", "You can see he looks like a ‘scrapper’.", "\n\nBelow is Horton and I. He is a cool dog with a long history. ", "He wouldn’t tell me exactly why he was there. ", "Anyway, in the below picture he was leaning over and whispering something to me. ", "He said, “Hey Crusoe. ", "Can I have your pawtograph? ", "But don’t do it in front of the others.. It’s for my Mom”.", "\n\nI met this one dog named Maggie the springer spaniel. ", "She was just like my best friend, Laffie. ", "So naturally, I got along really well with her. ", "I would race up and down the pen, having her chase me. ", "Too fun!", "\n\n\n\n\n\nThe last day was when the real action happened. ", "There was this new lady who just got put in the joint daycare, and as I was feeling more confident from being there a while, I figured I would go check her out. ", "I told Scout to watch my back.", "\n\nSo I trotted on over, trying not to look too conspicuous. ", "It was only by coincidence that she turned her back to me during my approach, and so didn’t see me coming. ", "When I got up to her I couldn’t help but take a peep (and a sniff) up her skirt. ", "She obviously didn’t take very kindly to this surprise – as she whipped around and nipped me right on the nose! ", "Can you believe that?!", "\n\nBeing a celebrity and gentleman, I felt it was not my place to fight a girl. ", "So I merely walked away, although I can’t say without a little broken pride. ", "If it had been a male dog though, I would have bitten his face right off.", "\n\nAfter the ‘fight’, the employees all rushed in to help me. ", "They cleaned me up really good and even put polysporin on my (‘supposedly’ small) cuts. ", "I also had to fire Scout as my personal bodyguard when I realized he had been playing with a bone while he was supposed to be covering me. ", "That’s what you get for trusting those you don’t know very well. ", "Maggie came to see me after and gave me a bunch of kisses. ", "Plus, Kathleen was there to give me some extra comfort.", "\n\nAnyway, those things can happen no matter where you are. ", "I have to say that the Ottawa Doggy Daycare did a fantastic job looking after me. ", "The staff treat me like a real celebrity, and are always happy to see me come and sad to see me go. ", "They are very dedicated and very passionate about what they do. ", "You have to appreciate that.. Kathleen even said I was her ‘main squeeze’ while I was there, and that I was the ‘sweetest’ little guy.", "\n\nMum is supposed to go on another trip this July (without me again, so we’ll have to discuss that), but I’ll definitely be back to the Ottawa Doggy Daycare Center! ", "I just hope Maggie and Kathleen are still there! ", "If you happen to be one of my fans in Ottawa and looking for a dog daycare in the West-End, I would recommend this one 100%!", "\n\nWhat have your daycare experiences been like?", "\n\nKeep ballin’,\n\n~ Crusoe\n\nMy New Book! ", "Featuring my worldly travels far and wide, from Europe to Mexico and more, and the whole story of my surgery and recovery! ", "Rated 5 stars on Amazon! ", "Get Yours!", "\n\nComments\n\ncomments" ]
{ "pile_set_name": "OpenWebText2" }
[ 0.007194244604316547, 0, 0, 0, 0.016666666666666666, 0.023255813953488372, 0, 0, 0, 0, 0, 0.015384615384615385, 0, 0, 0, 0, 0, 0.012345679012345678, 0.015151515151515152, 0.008771929824561403, 0.014492753623188406, 0, 0, 0.006622516556291391, 0.015151515151515152, 0, 0, 0, 0.125, 0, 0, 0, 0.010309278350515464, 0, 0.037037037037037035, 0, 0.015873015873015872, 0, 0, 0, 0, 0, 0.017857142857142856, 0.023809523809523808, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.007194244604316547, 0, 0.01694915254237288, 0.01818181818181818, 0, 0.012195121951219513, 0, 0, 0.007462686567164179, 0.006060606060606061, 0.04081632653061224, 0, 0, 0, 0, 0.04, 0, 0 ]
0.006587
5
[ "Pediatric asthma is a well documented public health issue in the United States. ", "The impact of pediatric asthma can be measured by both health care costs and morbidity. ", "Asthma morbidity is seasonal with the greatest number of exacerbations occurring in autumn and the fewest in mid-summer. ", "There is a strong age-related seasonal variability with grade school children being the most vulnerable to seasonal changes. ", "Furthermore, the annual peak asthma morbidity for children has been shown to be associated with the start of the school year. ", "Recent research suggests that this seasonality in children is primarily related to viral respiratory tract infections. ", "Regular handwashing has been widely recognized as the most effective means to combat the spread of infectious illness, including viruses. ", "However, effective handwashing among school-age children is inconsistent at best. ", "The school setting provides multiple barriers to effective handwashing such as time constraints, and frequent lack of soap, towels, and strategically located sinks. ", "Spring loaded faucets which serve to prevent overuse of water inadvertently pose an additional barrier to thorough hand cleansing. ", "Hand sanitization in such settings may be effectively accomplished by antimicrobial rinse-free hand sanitizers. ", "Therefore, we propose to collaborate with a single school district to achieve the following specific aims: 1. ", "Develop a simple school based intervention using hand sanitizers to decrease asthma exacerbations in children with asthma. ", "2. ", "Implement a school based internet monitoring system within both the active and placebo groups to record asthma symptoms, peak flow meter readings, school absences, and use of rescue medications at school. ", "3. ", "Randomize 26 schools to either active or placebo hand sanitizer. ", "4. ", "Use a cross-over design to compare the active and placebo groups with regard to time-averaged proportion of children with asthma who have at least one exacerbation per month. ", "Improving hand hygiene in the school environment may be a relatively simple, yet effective way to reduce the risk of asthma exacerbations. ", "By achieving these specific aims, this study will provide valuable information on the effectiveness of hand sanitizers in the school setting. [", "unreadable] [unreadable] [unreadable]" ]
{ "pile_set_name": "NIH ExPorter" }
[ 0, 0, 0, 0, 0, 0, 0, 0.012195121951219513, 0, 0, 0, 0, 0, 0, 0.004878048780487805, 0, 0, 0, 0, 0, 0, 0 ]
0.000776
5
[ "Q:\n\nHow to make a simple jQuery button in XHTML strict with no form postback?", "\n\nI am making a site with DOCTYPE XHTML Strict and it complains if I have an input button or button element outside a form.", "\nSo I put it in a form and it complains that I don't have an action attribute.", "\nSo I put in an action attribute but then the buttons postback to the page, which I don't want.", "\nHow can I just have a normal jQuery button with bound event in XHTML strict?", "\n<form action=\"\">\n <div>\n <input id=\"button1\" type=\"button\" value=\"highlight it\" /> \n <input id=\"button2\" type=\"button\" value=\"toggle title\" />\n <p>here is another paragraph</p> \n <div id=\"show1\">What color is the sky?</div>\n <div id=\"answer1\">blue</div>\n <button id=\"button1\">Show Answer</button>\n </div>\n</form>\n\nA:\n\nI am making a site with DOCTYPE XHTML Strict and it complains if I have an input button or button element outside a form.", "\n\nNope, it's perfectly acceptable to have an input/button with no form. ", "Indeed, there is no way in DTD to express the limitation that an input must have a form ancestor, so XHTML couldn't ban it if it wanted to. ", "If you had a validation error, it wasn't that. ", "It was probably this:\n<button id=\"button1\">Show Answer</button>\n\nYou've already got an element with id=\"button1\". ", "ids must be unique.", "\nWhen you aren't going to submit a form, you generally shouldn't include the form element. ", "However there is one case you need to: to group a set of radio inputs that have the same control name. ", "If they are left with no form ancestor they don't know they're connected, so browsers tend not to make them exclusive.", "\nIn this case, the usual idiom is to set the required action attribute to \"#\", and add an onsubmit handler to the form that always returns false so that when JS is enabled the form will never be submitted. ", "Don't put this return false on the buttons themselves, as the form may be submitted by other means than a button click: in particular, an Enter keypress.", "\n\nSo I put in an action attribute but then the buttons postback to the page, which I don't want.", "\n\nAn <input type=\"button\"> won't submit the form. ", "<button> shouldn't either, but it does in IE due to a bug where the browser uses the wrong default type value. ", "So you have to write <button type=\"button\">.", "\n\n" ]
{ "pile_set_name": "StackExchange" }
[ 0, 0, 0, 0, 0.012987012987012988, 0.008264462809917356, 0, 0.007142857142857143, 0, 0.008771929824561403, 0, 0, 0, 0, 0.0048543689320388345, 0, 0, 0.02, 0, 0.022727272727272728, 0 ]
0.004036
5
[ "The health of children and young people with cerebral palsy: a longitudinal, population-based study.", "\nCerebral palsy (CP) is a chronic condition about which little is known in relation to the long term stability of and factors influencing health. ", "To describe the health status of 4-17 year olds with ambulant CP, compare with the general population and identify factors predicting change in health over time. ", "A longitudinal, clinical survey. ", "A regional hospital-based Gait Analysis Laboratory. ", "Those aged 4-17 years and able to walk at least 10m independently were identified from a case register of people with CP. ", "A total of 184 subjects took part (38% of all eligibles in the region); 154 (84%) returned for a second assessment on average 2.5 years later. ", "The Child Health Questionnaire (Parent-form-50) was completed by 184 parents at time 1, and 156 at time 2. ", "Children and young people with CP have significantly poorer health across a number of domains when compared to children in the general child population. ", "Over time improvements occurred in behaviour (p=0.01), family activities (p<0.001) and physical functioning (p=0.05). ", "Linear regression showed that gross motor function (p<0.001) and cerebral palsy subtype (p<0.05) were associated with changes in physical functioning; age was associated with changes in behaviour (p=0.007) and family activities (p=0.01); and communication ability was significantly associated with changes in family activities (p=0.005). ", "Children and young people with CP have poorer health than their able bodied peers but relatively stable health over 2.5 years. ", "Where change occurred, it was for the better." ]
{ "pile_set_name": "PubMed Abstracts" }
[ 0, 0, 0, 0, 0.019230769230769232, 0, 0, 0.009345794392523364, 0, 0.00847457627118644, 0.005917159763313609, 0, 0 ]
0.003305
5
[ "This invention relates to improvements in an electric discharge machining method and apparatus for performing machining (rocking machining) while rocking an electrode with respect to a workpiece in a plane vertical to a machining feed direction.", "\nElectric discharge machining is machining for generating an electric discharge between an electrode and a workpiece (hereinafter called xe2x80x9cbetween themxe2x80x9d) to melt and remove the workpiece. ", "Thus, unless work scraps occurring between them due to the melt and removal of the workpiece are eliminated by some means, repeats of insulation recovery and electric discharge between them cannot be kept in a normal state, and bad effects such as a decrease in machining efficiency and a deterioration of work surface properties occur.", "\nAs one of elimination means of such work scraps between them, a rocking function of increasing efficiency of the elimination of the work scraps through stirring by performing machining while rocking the electrode relatively to the workpiece in a plane vertical to a machining feed direction has been known. ", "Parameters about this rocking function include a locus of relative movement between an electrode and a workpiece (hereinafter called xe2x80x9crocking shapexe2x80x9d), the amount of relative movement (hereinafter called xe2x80x9crocking radiusxe2x80x9d), a relative movement speed (hereinafter called xe2x80x9crocking speedxe2x80x9d), and the number of divisions of the rocking shape and a division shape in the case of using means for dividing the rocking shape on making a determination of completion.", "\nFIG. ", "7 is a diagram showing a configuration of a conventional electric discharge machining apparatus disclosed in JP-A-126540/1994 and in the drawing, numeral 1 is an electrode, and numeral 2 is a workpiece, and numeral 3 is a voltage detection part between the electrode and the workpiece, and numeral 4 is a calculation part, and numeral 5 is memory, and numeral 6 is a position check part, and numeral 7 is a rocking speed calculation part, and numeral 8 is a rocking speed table in which correspondence between an average voltage between the electrode 1 and the workpiece 2 and a rocking speed suitable for the voltage is previously registered. ", "Also, FIG. ", "8 shows a situation in which an orbit path of a square rocking shape is divided into 12 portions, and in the drawing, numeral 9 is a rocking shape, and numeral 10 is one area divided. ", "In FIG. ", "7, a machining voltage is applied between them from a voltage source (not shown), and the voltage between them is detected by the voltage detection part 3 between them. ", "The calculation part 4 obtains a weighted average of a voltage between them detected by the voltage detection part 3 and previous calculation data (gap data) of the area. ", "All the gap data about all the divided areas of the orbit path of the rocking shape are stored in the memory 5. ", "The position check part 6 receives information from a motor control part (not shown) at the time of orbiting the next rocking shape, and checks the present position of the electrode, and checks whether it is positioned in any the divided area 10 of the rocking shape 9 of the electrode of FIG. ", "8, and gap data corresponding to an address of the checked position area is read from the memory 5, and supplies the gap data to the rocking speed setting part 7. ", "The rocking speed setting part 7 reads out gap data before one orbit of the area stored in the memory 5, and sees the rocking speed table 8, and sets a rocking speed corresponding to the gap data read from the memory 5, and outputs the rocking speed to the motor control part as rocking speed data.", "\nIn the invention disclosed in JP-A-126540/1994 thus, the optimum rocking speed is set every machining area and electric discharge machining with stability and high accuracy is performed. ", "However, a change in the rocking speed or a determination of completion is made by the average voltage between the electrode and the workpiece and in a method of detecting the average voltage between them to control rocking movement, it was difficult to detect an exact state of electric discharge every electric discharge pulse, and it was difficult to force machining conditions such as pause time at the time of stable electric discharge (for example, it means that pause time is reduced to force a value of the pause time in order to improve machining efficiency, and hereinafter called xe2x80x9cforced machining at the time of stable machiningxe2x80x9d) or take avoidance at the time of abnormal electric discharge. ", "Further, control of a rocking function is performed by a machining shape or the amount of machining, but bite control (also known as chamfer control) at the beginning of machining and forced machining control after the machining is once completed are not performed.", "\nAlso, when an operator inputs a machining state and sets parameters about a rocking function, there were problems that skill of the operator is required while the operator needs to monitor the machining state from beginning to end of the machining.", "\nThis invention is implemented to solve the problems as described above, and an object of the invention is to obtain an electric discharge machining method and apparatus capable of automatically making a parameter setting about a rocking function according to a detected electric discharge state without compelling an operator to make the parameter setting about the rocking function and achieving improvement in machining efficiency and stabilization of the machining.", "\nWith an electric discharge machining method in accordance with the invention, in an electric discharge machining method for performing machining while relatively rocking an electrode and a workpiece in a plane vertical to a machining feed direction, an electric discharge state is detected by detecting a short-circuit frequency between the electrode and the workpiece, a defective electric discharge frequency and a position of the electrode, and parameters about a rocking function are set according to the electric discharge state.", "\nAlso, an initial setting of a rocking speed is changed according to a combination of the electrode and the workpiece, a shape of the electrode or a rocking shape.", "\nAlso, in an electric discharge machining method for performing machining while relatively rocking an electrode and a workpiece in a plane vertical to a machining feed direction, an electric discharge state is detected by detecting a short-circuit frequency between the electrode and the workpiece, a defective electric discharge frequency and a position of the electrode, and a rocking speed is set to a speed higher than that of a stable machining state when the detected electric discharge state is an abnormal electric discharge continuation state and a rocking speed is set to a speed lower than that of a stable machining state when the detected electric discharge state is a stable continuation state.", "\nAlso, in an electric discharge machining method for performing machining while relatively rocking an electrode and a workpiece in a plane vertical to a machining feed direction, when bite control or forced machining control is set, a rocking speed is set to a speed higher than a value before the setting of the bite control or the forced machining control.", "\nAlso, a rocking radius is set to a value smaller than a value before the setting of the bite control or the forced machining control.", "\nWith an electric discharge machining apparatus in accordance with the invention, in an electric discharge machining apparatus for performing machining while relatively rocking an electrode and a workpiece in a plane vertical to a machining feed direction, there are provided electric discharge state detection means for detecting a short-circuit frequency between the electrode and the workpiece, a defective electric discharge frequency and a position of the electrode, and rocking function setting means for setting parameters about a rocking function according to the electric discharge state detected by the electric discharge state detection means.", "\nAlso, there is provided rocking function setting means for changing an initial setting of a rocking speed according to a combination of the electrode and the workpiece, a shape of the electrode or a rocking shape.", "\nAlso, in an electric discharge machining apparatus for performing machining while relatively rocking an electrode and a workpiece in a plane vertical to a machining feed direction, there are provided electric discharge state detection means for detecting a short-circuit frequency between the electrode and the workpiece, a defective electric discharge frequency and a position of the electrode, and rocking function setting means for setting a rocking speed to a speed higher than that of a stable machining state when the electric discharge state detected by the electric discharge state detection means is an abnormal electric discharge continuation state and setting a rocking speed to a speed lower than that of a stable machining state when the electric discharge state detected by the electric discharge state detection means is a stable continuation state.", "\nAlso, in an electric discharge machining apparatus for performing machining while relatively rocking an electrode and a workpiece in a plane vertical to a machining feed direction, there is provided rocking function setting means for setting a rocking speed to a speed higher than a value before the setting of bite control or forced machining control when the bite control or the forced machining control is set.", "\nAlso, there is provided rocking function setting means for setting a rocking radius to a value smaller than a value before the setting of the bite control or the forced machining control.", "\nSince the invention is constructed as described above, an exact electric discharge state every electric discharge pulse can be detected, and forced machining at the time of stable machining by the rocking movement or avoidance at the time of abnormal electric discharge can be performed. ", "Therefore, there is an effect capable of achieving improvement in machining efficiency and stabilization of the machining.", "\nAlso, there is an effect capable of achieving improvement in machining efficiency and stabilization of the machining more by changing an initial setting of a rocking speed according to a combination of an electrode and a workpiece, an electrode shape or a rocking shape.", "\nFurther, there is an effect capable of performing bite control and forced machining control.", "\nFurthermore, there is an effect capable of automatically making a parameter setting about a rocking function according to a detected electric discharge state without compelling an operator to make the parameter setting about the rocking function." ]
{ "pile_set_name": "USPTO Backgrounds" }
[ 0, 0, 0, 0, 0, 0, 0, 0.09090909090909091, 0, 0.125, 0, 0, 0, 0.003401360544217687, 0, 0, 0.005319148936170213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
0.00624
5
[ "Blogs\n\nEvents\n\nStories\n\nAttention: RHN Hosted will reach the end of its service life on July 31, 2017.", "\nCustomers will be required to migrate existing systems to Red Hat Subscription Management prior to this date.", "\nLearn more here\n\nDetails\n\nUpdated kernel-rt packages that fix several security issues and two bugsare now available for Red Hat Enterprise MRG 2.0.", "\n\nThe Red Hat Security Response Team has rated this update as havingimportant security impact. ", "Common Vulnerability Scoring System (CVSS) basescores, which give detailed severity ratings, are available for eachvulnerability from the CVE links in the References section.", "\n\nThe kernel-rt packages contain the Linux kernel, the core of any Linuxoperating system.", "\n\nThis update fixes the following security issues:\n\n* A malicious CIFS (Common Internet File System) server could send aspecially-crafted response to a directory read request that would result ina denial of service or privilege escalation on a system that has a CIFSshare mounted. (", "CVE-2011-3191, Important)\n\n* The way fragmented IPv6 UDP datagrams over the bridge with UDPFragmentation Offload (UFO) functionality on were handled could allow aremote attacker to cause a denial of service. (", "CVE-2011-4326, Important)\n\n* GRO (Generic Receive Offload) fields could be left in an inconsistentstate. ", "An attacker on the local network could use this flaw to cause adenial of service. ", "GRO is enabled by default in all network drivers thatsupport it. (", "CVE-2011-2723, Moderate)\n\n* A flaw in the FUSE (Filesystem in Userspace) implementation could allowa local user in the fuse group who has access to mount a FUSE file systemto cause a denial of service. (", "CVE-2011-3353, Moderate)\n\n* A flaw in the b43 driver. ", "If a system had an active wireless interfacethat uses the b43 driver, an attacker able to send a specially-craftedframe to that interface could cause a denial of service. (", "CVE-2011-3359,Moderate)\n\n* A flaw in the way CIFS shares with DFS referrals at their root werehandled could allow an attacker on the local network, who is able to deploya malicious CIFS server, to create a CIFS network share that, when mounted,would cause the client system to crash. (", "CVE-2011-3363, Moderate)\n\n* A flaw in the m_stop() implementation could allow a local, unprivilegeduser to trigger a denial of service. (", "CVE-2011-3637, Moderate)\n\n* Flaws in ghash_update() and ghash_final() could allow a local,unprivileged user to cause a denial of service. (", "CVE-2011-4081, Moderate)\n\n* A flaw in the key management facility could allow a local, unprivilegeduser to cause a denial of service via the keyctl utility. (", "CVE-2011-4110,Moderate)\n\n* A flaw in the Journaling Block Device (JBD) could allow a local attackerto crash the system by mounting a specially-crafted ext3 or ext4 disk.(CVE-2011-4132, Moderate)\n\n* A flaw in the way memory containing security-related data was handled intpm_read() could allow a local, unprivileged user to read the results of apreviously run TPM command. (", "CVE-2011-1162, Low)\n\n* I/O statistics from the taskstats subsystem could be read without anyrestrictions, which could allow a local, unprivileged user to gatherconfidential information, such as the length of a password used in aprocess. (", "CVE-2011-2494, Low)\n\n* Flaws in tpacket_rcv() and packet_recvmsg() could allow a local,unprivileged user to leak information to user-space. (", "CVE-2011-2898, Low)\n\nTo install kernel packages manually, use \"rpm -ivh [package]\". ", "Do notuse \"rpm -Uvh\" as that will remove the running kernel binaries fromyour system. ", "You may use \"rpm -e\" to remove old kernels afterdetermining that the new kernel functions properly on your system." ]
{ "pile_set_name": "Pile-CC" }
[ 0.00980392156862745, 0.00909090909090909, 0.006756756756756757, 0.010526315789473684, 0.005747126436781609, 0.011235955056179775, 0.0035460992907801418, 0.004784688995215311, 0.02857142857142857, 0, 0.015151515151515152, 0.009852216748768473, 0.018518518518518517, 0, 0.007017543859649123, 0.0072992700729927005, 0.007194244604316547, 0.006329113924050633, 0.005361930294906166, 0.004201680672268907, 0.0070921985815602835, 0.011904761904761904, 0, 0 ]
0.007916
5
[ "Melancholic Cinematic Pack\n\nMelancholic Cinematic Pack\n\nMelancholic cinematic pack of four tracks with shades of autumn soundtrack and sentimentality. ", "Sensual melodies and rainy soundtrack mood is transmitted in each track. ", "Loneliness and the feeling of beauty, love and rastovanii transmitted in a single stream.", "\n\nUse in one end product, free or commercial. ", "Most web uses. ", "10,000 copy limit for a downloaded or physical end product. ", "Plus up to 1 million broadcast audience. ", "The total price includes the item price and a buyer fee.", "\n\nUse in one end product, free or commercial. ", "Most web uses. ", "Up to 1 million broadcast audience. ", "Plus unlimited copies of a downloaded or physical end product. ", "The total price includes the item price and a buyer fee.", "\n\nUse in one end product, free or commercial. ", "Most web uses. ", "Unlimited copies of a downloaded or physical end product. ", "Plus a broadcast audience of up to 10 million. ", "The total price includes the item price and a buyer fee.", "\n\nUse in one end product, free or commercial. ", "Most web uses. ", "Unlimited copies of a downloaded or physical end product. ", "Plus an unlimited broadcast audience, or a theatrically released film. ", "The total price includes the item price and a buyer fee." ]
{ "pile_set_name": "Pile-CC" }
[ 0.006622516556291391, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
0.000288
5
[ "The recent FDA approval of several antitumor agents whose primary mode of action is the inhibition of VEGF receptor-2 signaling and the disruption of tumor angiogenesis (e.g. sunitinib, sorafenib) has had a profound impact on the management of patients with metastatic renal cell carcinoma (RCC). ", "However, despite the ability of these agents to prolong PFS and in some instances, to induce partial tumor regression, the majority of RCC patients develop resistance to these agents within 6-12 months. ", "In previous murine xenograft studies using 786-0 and A498 cell lines we have established that resistance is likely related to angiogenic escape. ", "cDNA microarray and westerns with from xenografts of these RCC cell lines and short-term cultures (STCs) from freshly harvested human RCC identified several genes and proteins whose expression is altered with the development of resistance to sunitinib/sorafenib. ", "These gene expression studies provide several candidate proteins/pathways that, based on their known role in tumor progression and/or angiogenesis, are likely to contribute to the development of resistance. ", "We now propose to extend these studies to include: 1) validation of our murine tissue, blood and imaging findings in patients with RCC undergoing sunitinib therapy;2) assessment of the ability of pharmacologic inhibitors of these proteins/pathways to either delay or prevent resistance to sunitinib in subcutaneously implanted xenografts involving 786.0 and A498;3) assessment of promising combinations in subcutaneous and orthotopic xenografts using STCs and perfusion imaging. ", "These studies will lay the groundwork for several clinical trials with sunitinib in combination with other agents selected on the basis of their ability to block one or more critical signaling pathway that might contribute to sunitinib resistance. ", "Endpoints will include changes in tumor perfusion by MRI and serial cytokine levels, and delay in disease progression. ", "Collectively, these studies will elucidate the mechanism by which RCC develops resistance to VEGFR blockade and identify treatment strategies that might circumvent this problem." ]
{ "pile_set_name": "NIH ExPorter" }
[ 0.006734006734006734, 0.0049261083743842365, 0.006896551724137931, 0, 0, 0, 0, 0, 0 ]
0.002062
5
[ "MCAF1/AM is involved in Sp1-mediated maintenance of cancer-associated telomerase activity.", "\nTelomerase maintains telomere length and is implicated in senescence and immortalization of mammalian cells. ", "Two essential components for this enzyme are telomerase reverse transcriptase (TERT) and the telomerase RNA component (encoded by the TERC gene). ", "These telomerase subunit genes are known to be mainly expressed by specificity protein 1 (Sp1). ", "MBD1-containing chromatin-associated factor 1 (MCAF1), also known as ATFa-associated modulator (AM) and activating transcription factor 7-interacting protein (ATF7IP), mediates gene regulation, although the precise function of MCAF1 remains to be elucidated. ", "Here, we report that MCAF1 is involved in Sp1-dependent maintenance of telomerase activity in cancer cells. ", "Two evolutionarily conserved domains of MCAF1 directly interact with Sp1 and the general transcriptional apparatus. ", "Selective depletion of MCAF1 or Sp1 down-regulates TERT and TERC genes in cultured cells, which results in decreased telomerase activity. ", "The transcriptionally active form of RNA polymerase II and the general transcription factor ERCC3 decreased in the TERT promoter under the loss of MCAF1 or Sp1. ", "Consistently, MCAF1 is found to be frequently overexpressed in naturally occurring cancers that originate in different tissues. ", "Our data suggest that transcriptional function of MCAF1 facilitates telomerase expression by Sp1, which may be a common mechanism in proliferative cancer cells." ]
{ "pile_set_name": "PubMed Abstracts" }
[ 0.011111111111111112, 0, 0.0136986301369863, 0, 0.007722007722007722, 0.009259259259259259, 0.008620689655172414, 0.021739130434782608, 0.031055900621118012, 0.0078125, 0.00625 ]
0.010661
5
[ "%YAML 1.1\n%TAG !", "u! ", "tag:unity3d.com,2011:\n--- !", "u!1 &1234218153790367871\nGameObject:\n m_ObjectHideFlags: 0\n m_CorrespondingSourceObject: {fileID: 0}\n m_PrefabInstance: {fileID: 0}\n m_PrefabAsset: {fileID: 0}\n serializedVersion: 6\n m_Component:\n - component: {fileID: 1234218153790367868}\n - component: {fileID: 1234218153790367867}\n - component: {fileID: 1234218153790367866}\n - component: {fileID: 1234218153790367869}\n - component: {fileID: 1234218153790367864}\n m_Layer: 5\n m_Name: DebugButton\n m_TagString: Untagged\n m_Icon: {fileID: 0}\n m_NavMeshLayer: 0\n m_StaticEditorFlags: 0\n m_IsActive: 1\n--- !", "u!224 &1234218153790367868\nRectTransform:\n m_ObjectHideFlags: 0\n m_CorrespondingSourceObject: {fileID: 0}\n m_PrefabInstance: {fileID: 0}\n m_PrefabAsset: {fileID: 0}\n m_GameObject: {fileID: 1234218153790367871}\n m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}\n m_LocalPosition: {x: 0, y: 0, z: 0}\n m_LocalScale: {x: 1, y: 1, z: 1}\n m_Children:\n - {fileID: 1234218154690601617}\n m_Father: {fileID: 1234218154926792839}\n m_RootOrder: 0\n m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}\n m_AnchorMin: {x: 0, y: 0}\n m_AnchorMax: {x: 0, y: 0}\n m_AnchoredPosition: {x: 723.2, y: 75.03}\n m_SizeDelta: {x: 1450.9, y: 150}\n m_Pivot: {x: 0.5, y: 0.5}\n--- !", "u!222 &1234218153790367867\nCanvasRenderer:\n m_ObjectHideFlags: 0\n m_CorrespondingSourceObject: {fileID: 0}\n m_PrefabInstance: {fileID: 0}\n m_PrefabAsset: {fileID: 0}\n m_GameObject: {fileID: 1234218153790367871}\n m_CullTransparentMesh: 0\n--- !", "u!114 &1234218153790367866\nMonoBehaviour:\n m_ObjectHideFlags: 0\n m_CorrespondingSourceObject: {fileID: 0}\n m_PrefabInstance: {fileID: 0}\n m_PrefabAsset: {fileID: 0}\n m_GameObject: {fileID: 1234218153790367871}\n m_Enabled: 1\n m_EditorHideFlags: 0\n m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}\n m_Name: \n m_EditorClassIdentifier: \n m_Material: {fileID: 0}\n m_Color: {r: 0.4, g: 0.8, b: 1, a: 1}\n m_RaycastTarget: 1\n m_OnCullStateChanged:\n m_PersistentCalls:\n m_Calls: []\n m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}\n m_Type: 1\n m_PreserveAspect: 0\n m_FillCenter: 1\n m_FillMethod: 4\n m_FillAmount: 1\n m_FillClockwise: 1\n m_FillOrigin: 0\n m_UseSpriteMesh: 0\n--- !", "u!114 &1234218153790367869\nMonoBehaviour:\n m_ObjectHideFlags: 0\n m_CorrespondingSourceObject: {fileID: 0}\n m_PrefabInstance: {fileID: 0}\n m_PrefabAsset: {fileID: 0}\n m_GameObject: {fileID: 1234218153790367871}\n m_Enabled: 1\n m_EditorHideFlags: 0\n m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3}\n m_Name: \n m_EditorClassIdentifier: \n m_Navigation:\n m_Mode: 3\n m_SelectOnUp: {fileID: 0}\n m_SelectOnDown: {fileID: 0}\n m_SelectOnLeft: {fileID: 0}\n m_SelectOnRight: {fileID: 0}\n m_Transition: 1\n m_Colors:\n m_NormalColor: {r: 1, g: 1, b: 1, a: 1}\n m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}\n m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}\n m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}\n m_ColorMultiplier: 1\n m_FadeDuration: 0.1\n m_SpriteState:\n m_HighlightedSprite: {fileID: 0}\n m_PressedSprite: {fileID: 0}\n m_DisabledSprite: {fileID: 0}\n m_AnimationTriggers:\n m_NormalTrigger: Normal\n m_HighlightedTrigger: Highlighted\n m_PressedTrigger: Pressed\n m_DisabledTrigger: Disabled\n m_Interactable: 1\n m_TargetGraphic: {fileID: 1234218153790367866}\n m_OnClick:\n m_PersistentCalls:\n m_Calls:\n - m_Target: {fileID: 0}\n m_MethodName: ToggleTransition\n m_Mode: 1\n m_Arguments:\n m_ObjectArgument: {fileID: 0}\n m_ObjectArgumentAssemblyTypeName: UnityEngine.", "Object, UnityEngine\n m_IntArgument: 0\n m_FloatArgument: 0\n m_StringArgument: \n m_BoolArgument: 0\n m_CallState: 2\n--- !", "u!114 &1234218153790367864\nMonoBehaviour:\n m_ObjectHideFlags: 0\n m_CorrespondingSourceObject: {fileID: 0}\n m_PrefabInstance: {fileID: 0}\n m_PrefabAsset: {fileID: 0}\n m_GameObject: {fileID: 1234218153790367871}\n m_Enabled: 1\n m_EditorHideFlags: 0\n m_Script: {fileID: 11500000, guid: aef1d5e91a2194deba3594c88de9535c, type: 3}\n m_Name: \n m_EditorClassIdentifier: \n ShowDebugOverlay: 1\n--- !", "u!1 &1234218154690601616\nGameObject:\n m_ObjectHideFlags: 0\n m_CorrespondingSourceObject: {fileID: 0}\n m_PrefabInstance: {fileID: 0}\n m_PrefabAsset: {fileID: 0}\n serializedVersion: 6\n m_Component:\n - component: {fileID: 1234218154690601617}\n - component: {fileID: 1234218154690601615}\n - component: {fileID: 1234218154690601614}\n m_Layer: 5\n m_Name: DebugConsole\n m_TagString: Untagged\n m_Icon: {fileID: 0}\n m_NavMeshLayer: 0\n m_StaticEditorFlags: 0\n m_IsActive: 1\n--- !", "u!224 &1234218154690601617\nRectTransform:\n m_ObjectHideFlags: 0\n m_CorrespondingSourceObject: {fileID: 0}\n m_PrefabInstance: {fileID: 0}\n m_PrefabAsset: {fileID: 0}\n m_GameObject: {fileID: 1234218154690601616}\n m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}\n m_LocalPosition: {x: 0, y: 0, z: 0}\n m_LocalScale: {x: 0.95, y: 1, z: 1}\n m_Children: []\n m_Father: {fileID: 1234218153790367868}\n m_RootOrder: 0\n m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}\n m_AnchorMin: {x: 0, y: 0}\n m_AnchorMax: {x: 1, y: 1}\n m_AnchoredPosition: {x: 0, y: 0}\n m_SizeDelta: {x: 0, y: 0}\n m_Pivot: {x: 0.5, y: 0.5}\n--- !", "u!222 &1234218154690601615\nCanvasRenderer:\n m_ObjectHideFlags: 0\n m_CorrespondingSourceObject: {fileID: 0}\n m_PrefabInstance: {fileID: 0}\n m_PrefabAsset: {fileID: 0}\n m_GameObject: {fileID: 1234218154690601616}\n m_CullTransparentMesh: 0\n--- !", "u!114 &1234218154690601614\nMonoBehaviour:\n m_ObjectHideFlags: 0\n m_CorrespondingSourceObject: {fileID: 0}\n m_PrefabInstance: {fileID: 0}\n m_PrefabAsset: {fileID: 0}\n m_GameObject: {fileID: 1234218154690601616}\n m_Enabled: 1\n m_EditorHideFlags: 0\n m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3}\n m_Name: \n m_EditorClassIdentifier: \n m_Material: {fileID: 0}\n m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}\n m_RaycastTarget: 1\n m_OnCullStateChanged:\n m_PersistentCalls:\n m_Calls: []\n m_FontData:\n m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}\n m_FontSize: 32\n m_FontStyle: 1\n m_BestFit: 0\n m_MinSize: 2\n m_MaxSize: 40\n m_Alignment: 3\n m_AlignByGeometry: 0\n m_RichText: 1\n m_HorizontalOverflow: 0\n m_VerticalOverflow: 0\n m_LineSpacing: 1\n m_Text: \n--- !", "u!1 &1234218154926792843\nGameObject:\n m_ObjectHideFlags: 0\n m_CorrespondingSourceObject: {fileID: 0}\n m_PrefabInstance: {fileID: 0}\n m_PrefabAsset: {fileID: 0}\n serializedVersion: 6\n m_Component:\n - component: {fileID: 1234218154926792839}\n - component: {fileID: 1234218154926792838}\n - component: {fileID: 1234218154926792841}\n - component: {fileID: 1234218154926792840}\n m_Layer: 5\n m_Name: DebugPanel\n m_TagString: Untagged\n m_Icon: {fileID: 0}\n m_NavMeshLayer: 0\n m_StaticEditorFlags: 0\n m_IsActive: 1\n--- !", "u!224 &1234218154926792839\nRectTransform:\n m_ObjectHideFlags: 0\n m_CorrespondingSourceObject: {fileID: 0}\n m_PrefabInstance: {fileID: 0}\n m_PrefabAsset: {fileID: 0}\n m_GameObject: {fileID: 1234218154926792843}\n m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}\n m_LocalPosition: {x: 0, y: 0, z: 0}\n m_LocalScale: {x: 0, y: 0, z: 0}\n m_Children:\n - {fileID: 1234218153790367868}\n m_Father: {fileID: 0}\n m_RootOrder: 0\n m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}\n m_AnchorMin: {x: 0, y: 0}\n m_AnchorMax: {x: 0, y: 0}\n m_AnchoredPosition: {x: 0, y: 0}\n m_SizeDelta: {x: 0, y: 0}\n m_Pivot: {x: 0, y: 0}\n--- !", "u!223 &1234218154926792838\nCanvas:\n m_ObjectHideFlags: 0\n m_CorrespondingSourceObject: {fileID: 0}\n m_PrefabInstance: {fileID: 0}\n m_PrefabAsset: {fileID: 0}\n m_GameObject: {fileID: 1234218154926792843}\n m_Enabled: 1\n serializedVersion: 3\n m_RenderMode: 0\n m_Camera: {fileID: 0}\n m_PlaneDistance: 100\n m_PixelPerfect: 0\n m_ReceivesEvents: 1\n m_OverrideSorting: 0\n m_OverridePixelPerfect: 0\n m_SortingBucketNormalizedSize: 0\n m_AdditionalShaderChannelsFlag: 0\n m_SortingLayerID: 0\n m_SortingOrder: 0\n m_TargetDisplay: 0\n--- !", "u!114 &1234218154926792841\nMonoBehaviour:\n m_ObjectHideFlags: 0\n m_CorrespondingSourceObject: {fileID: 0}\n m_PrefabInstance: {fileID: 0}\n m_PrefabAsset: {fileID: 0}\n m_GameObject: {fileID: 1234218154926792843}\n m_Enabled: 1\n m_EditorHideFlags: 0\n m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3}\n m_Name: \n m_EditorClassIdentifier: \n m_UiScaleMode: 0\n m_ReferencePixelsPerUnit: 100\n m_ScaleFactor: 1\n m_ReferenceResolution: {x: 800, y: 600}\n m_ScreenMatchMode: 0\n m_MatchWidthOrHeight: 0\n m_PhysicalUnit: 3\n m_FallbackScreenDPI: 96\n m_DefaultSpriteDPI: 96\n m_DynamicPixelsPerUnit: 1\n--- !", "u!114 &1234218154926792840\nMonoBehaviour:\n m_ObjectHideFlags: 0\n m_CorrespondingSourceObject: {fileID: 0}\n m_PrefabInstance: {fileID: 0}\n m_PrefabAsset: {fileID: 0}\n m_GameObject: {fileID: 1234218154926792843}\n m_Enabled: 1\n m_EditorHideFlags: 0\n m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3}\n m_Name: \n m_EditorClassIdentifier: \n m_IgnoreReversedGraphics: 1\n m_BlockingObjects: 0\n m_BlockingMask:\n serializedVersion: 2\n m_Bits: 4294967295\n" ]
{ "pile_set_name": "Github" }
[ 0.0625, 0, 0, 0.003484320557491289, 0.0015290519877675841, 0.004032258064516129, 0, 0.0020325203252032522, 0.006211180124223602, 0, 0.004123711340206186, 0.001644736842105263, 0.004032258064516129, 0, 0.003787878787878788, 0.0016286644951140066, 0.001841620626151013, 0, 0 ]
0.005097
5
[ "Jequitibá\n\nJequitibá is a municipality in the state of Minas Gerais in the Southeast region of Brazil.", "\n\nSee also\nList of municipalities in Minas Gerais\n\nReferences\n\nCategory:Municipalities in Minas Gerais" ]
{ "pile_set_name": "Wikipedia (en)" }
[ 0.0196078431372549, 0.00980392156862745 ]
0.014706
5
[ "Occassionaly some web browsers struggle as our site uses the latest encoding and technology. ", "Also, our site does not cater for all stamps in order to keep it simple.", "\n\nThe easiest way around this is to simply fill in the details of the stamp you require in the area below. ", "Click on the \"SEND\" button once you are finished. ", "We will email back a proof along with the price. ", "Thank you." ]
{ "pile_set_name": "Pile-CC" }
[ 0, 0, 0, 0, 0, 0 ]
0
5
[ "by Brett Stevens on April 25, 2018\n\nYou can feel it in the streets. ", "People move apart from those not like them. ", "They interact only with those who are close to them. ", "They have zero faith in the future of their nations. ", "They know that the great schism is coming, and after that a great filter, a bloodless purge. ", "The reckoning hovers on the horizon.", "\n\nAt the fifty year point after a large political change, people tend to look back and see what that change has wrought, knowing that the tropes in art, media, and politics are generally based in what was true two generations ago, and people keep repeating them because they are socially recognized.", "\n\nIt takes fifty years or more to see the effects of a change, then, because that is how long humans require to catch up to the changes that have been made. ", "In this case, we have seen the effects of Leftism reach their intended target: a black president, multicultural nations, social welfare, “free” healthcare, and a global network of Leftists — “workers of the world, unite!” — ", "acting together to advance the agenda of progress from a natural state to a human social state where we enjoy Utopia through equality.", "\n\nEven more, we have reached nearly the 250 year point where most democracies seem to explode. ", "America in 2018 versus 1776 shows us a nation with more technology, wealth, and power, but less inner power. ", "People are less honorable, less creatively intelligent, and less adaptable. ", "They are also less recognizable as distinct group, and more generic.", "\n\nLooking further, America 2018 is divided in a way that would have appalled those who founded it. ", "One group, which has mostly held sway since perhaps the 1860s, wants what the Founding Fathers did not: a strong government that forces its citizens to do “the right thing” according to a Leftist ideology. ", "This group dominated in 2008.", "\n\nSince that time, we have seen tangible proof of the failure of Leftism. ", "A minority president made minorities more combative; enhanced welfare spending made our currency less valuable; immigration made America unrecognizable, a cosmopolitan dumping ground instead of a nation. ", "And still the demands for anti-racist activism and more immigration go on in a suicidal spiral, even as we see racial and ethnic tensions heat up around us, and not coming from the white side for the most part but from our minorities fighting whites and fighting each other.", "\n\nA cultural wave has swept the land in response: people realize that we are fighting for a vision of our future, and either Left or Right can win, but not both. ", "If the Left wins, we go further down the path where government (the State) provides everything either directly or by “creating jobs” to comply with regulations, in which diversity is increased and culture is decreased. ", "Fifty years after the start of that experiment, however, we have seen how it has fundamentally transformed America and Europe and how much we dislike that.", "\n\nDiversity provided a blank check for Leftists during the postwar period. ", "We were so committed to not being Hitler, especially American conservatives drunk on our military victory, that we flipped to the other direction: anything which lifted up those who were not like us was good, in our view. ", "This allowed the Left to use diversity to destroy any institution which was not Leftist simply by finding some person of color who was disadvantaged by whatever that institution did. ", "In this way, the Left used diversity to take over the West.", "\n\nAs the old story tells us, at some point greedy fools will kill the goose that laid golden eggs. ", "In America and Western Europe, this golden goose has always been the upper half of the middle class which was the audience that elected Donald J. Trump in a giant rebuke to the Obama, Clinton, and Bush neoliberal globalist agenda.", "\n\nIn a rare moment of lucidity in late stage democracy, voters connected the dots on diversity. ", "New evidence suggests that the Trump revolution was about realizing that diversity has failed and will be the grave of us all:\n\nBased on survey data from a nationally representative panel of the same 1,200 American voters polled in both 2012 and 2016, University of Pennsylvania professor Diana C. Mutz found that traditionally high-status Americans, namely whites, feel their status in America and the world is threatened by America’s growing racial diversity and a perceived loss of U.S. global dominance. ", "Under threat by these engines of change, America’s socially dominant groups increased their support in 2016 for the candidate who most emphasized reestablishing status hierarchies of the past. …", "The status threat experienced by many Americans was not only about their place in American society. ", "In contrast to the conventional wisdom in political science that “voting ends at the water’s edge”—that international affairs don’t matter to how people vote—Mutz found that Americans feel increasingly threatened by the interdependence of the United States with other countries. ", "Their sense that America is no longer the dominant superpower it once was influenced their vote in 2016. …", "But those who felt besieged by globalization and the rise of a majority-minority America were quite likely to vote for Trump. ", "For example, those who thought whites were discriminated against more than blacks, Christians more than Muslims, and men more than women were most likely to support Trump.", "\n\nTrump voters realized that diversity was responsible for the fundamental transformation of America and no longer wanted any part of it. ", "They recognized that under the Western European power structure, life was better and the American future was brighter than it could be under the diversity, socialism, and equality crusade of the Left. ", "The same has been true of events like Brexit and the rise of the AfD and other “populist” parties in Europe.", "\n\nAt this point, Western Europeans worldwide are more divided than before the world wars or the American Civil War. ", "For example, we can look to recent results from Europe to illustrate this:\n\nA greater proportion of people in Europe believe their society is divided than people in any other world region, with immigration being the largest source of division in many countries, a study has found. ", "Half of the respondents in the UK said differences between immigrants and Brits was a source of social tension, followed by differences of religion (47 per cent), ethnicity (41 per cent), and political views (40 per cent). ", "However, in the online Ipsos Mori poll of 27 countries for the BBC, it was politics that emerged as the main cause of division globally, identified by 44 per cent of the 19,428 respondents.", "\n\nWe cannot separate politics from immigration. ", "The Left has, since the middle 1960s, used immigration as a method for buying votes much as Plato and Aristotle observed that tyrants do. ", "Through that filter, we see that the division consists of two facets of the same thing.", "\n\nThis division now has become permanent. ", "People are pulling to one side or the other because they realize that the two cannot co-exist; Leftists and Rightists want different blueprints for civilization. ", "The Left wants a cosmopolitan mass culture, and the Right wants social order and preservation of national “cultures” or, since we realize that traits are heritable, national ethnic groups.", "\n\nDiversity is over. ", "People have lost faith in it entirely. ", "Democracy is over. ", "No one believes it will save us anymore; they liked it because it promised stability by protecting us from strong leaders, but now we see that without strong leaders, human herd behavior seizes wealth and fritters it away, without providing for the future.", "\n\nBoth sides now acknowledge, at least in their hearts, that only one can win, and it will physically remove the other. ", "The Left, with its long tradition of gulags and guillotines, knows exactly what it will do. ", "The Right seems to prefer relocation to somewhere else, probably in the third world. ", "However, that is only the beginning.", "\n\nWith the failure of diversity, it is clear that groups other than the founding group will need to be relocated in most nations. ", "A pincer strategy can accomplish this: reduce the benefits to being there while increasing the costs of doing so. ", "For example, if Europe and America cut their generous social benefits and remove affirmative action, people outside of the founding group will find it is more expensive to stay there with fewer opportunities, and most will self-deport. ", "Giving them a small stipend to do so makes good sense. ", "After that, general nationalistic sentiment will drive the rest out through informal means.", "\n\nEven more, we are seeing that after two centuries of democracy, we have bred a bumper crop of stupid, inept, selfish, greedy, sociopathic, neurotic, schizoid, lazy, and parasitic people here within our own group. ", "The Reckoning includes the coming of The Great Filter or Great Purge in which those who are capable drive away the rest, and then start purging the immoral and parasitic. ", "For our civilization to rise again, we need to realize that we cannot “save” it in the sense of saving everyone; those who pass the evolutionary test and will make this civilization work are going to break away from the rest, and because those rest are a threat, will send them on to the third world.", "\n\nWe have lived in a time of mercy for too long. ", "This condition has been abused to the point that the incompetents rule over the rest of us, and they have shown us their true nature, which is that they desire power above all else and will use that power to crush us. ", "They fear us and hate us. ", "They will use their numbers to displace us, then kill us off, and then will relax in their newly-created third world wasteland where all of our traditions, laws including “muh Constitution,” and ways will slowly be perverted into something that fits the third world model.", "\n\nWestern Civilization thrived because it emphasized a strict hierarchy based on competence plus vision. ", "Those who were both realistic and sought excellence rose in the hierarchy, and everyone else was pushed down. ", "The only type of mass control that works, as it turns out, is not controlling the masses, but disenfranchising them and discouraging them from reproducing much. ", "When we emphasize quality over quantity by removing the defective and encouraging the good to breed, we become more competent as a civilization, and thus we rise. ", "We have been practicing the opposite for many centuries now and it has led us to our current state of decline.", "\n\nAll of the old illusions have died. ", "We are just waiting to make that manifest, which will occur in layers. ", "First, the Other will be gently repatriated; next, the incompetents will go; finally, the parasitic and destructive will be removed. ", "This provides us a path to the future, and firmly breaks from a recent past that reversed our previous successes.", "\n\nTags: eugenics, great filter, great purge, idiocracy, morality, reparations-with-repatriation, repatriation, the reckoning\n\nPlease enable JavaScript to view the comments powered by Disqus." ]
{ "pile_set_name": "OpenWebText2" }
[ 0.014705882352941176, 0, 0, 0, 0, 0, 0, 0, 0.008928571428571428, 0, 0, 0, 0, 0, 0, 0, 0, 0.013513513513513514, 0, 0, 0, 0.0045662100456621, 0, 0, 0.0045045045045045045, 0, 0.01694915254237288, 0, 0.013043478260869565, 0, 0.003937007874015748, 0, 0, 0, 0, 0.007936507936507936, 0.005847953216374269, 0, 0, 0.018518518518518517, 0.008620689655172414, 0, 0, 0.010582010582010581, 0, 0.021739130434782608, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.010526315789473684 ]
0.002049
5
[ "Last Thursday marked a soft milestone in the NBA, where nearly all free agents signed over the summer became eligible to be traded. ", "The NBA trade season is now open for business, so to speak, with nearly every one of the league’s 450 players now available.", "\n\nThat doesn’t mean teams want to trade them, of course. ", "But the complexities of NBA trades are difficult enough, with the salary matching rules, that the more players you can mix and match the better to make a deal.", "\n\nThis season, nearly every team is still in the playoff hunt with two-thirds of the season remaining.", "\n\nPhoenix Suns GM Ryan McDonough thinks that might spur teams into action sooner than later.", "\n\n“If I had to guess I’d say there would be more early action this year.” — ", "Suns GM Ryan McDonough\n\n“If I had to guess I’d say there would be more early action this year,” McDonough said on Bright Side Night in an exclusive interview. “", "Where teams are saying all right, we’re not going to wait until February, the trade deadline. ", "Let’s do a deal in mid-December and solidify ourselves that extra 2+ months to integrate a guy and climb up the standings to make sure we are in the playoffs.”", "\n\nIf anyone would know the heartbeat of NBA trade talks, it would likely be the Suns GM that has executed more than a dozen trades since taking over the team and has only P.J. Tucker remaining from the roster he inherited in 2013.", "\n\nIn the West, the worst team (Dallas) is only 6 games out of the playoffs with more than 50 games left to play. ", "The same is mostly true in the East, meaning that every NBA team could delude themselves into thinking that the playoffs are just one move away.", "\n\nEven the Suns could make that claim, being only 4 games out at the moment.", "\n\nTwo years ago, McDonough acquired veteran backup center Brandan Wright in December in an effort to solidify a good team, but while he wouldn’t mind a playoff run he doesn’t seem inclined to add more veterans.", "\n\n“Let’s do it the right way. ", "Let’s not bury Dragan Bender and Marquese Chriss.” — ", "McDonough\n\n“Let’s do it the right way,” he said of a potential playoff run. “", "Let’s not bury Dragan Bender and Marquese Chriss and play the veterans 40 minutes a night to get it.”", "\n\nMcDonough talks of a patient, long-term rebuild.", "\n\nSure, he’d love to re-do the Boston Celtics model of 2007, where they turned a bunch of assets into multiple stars that went from 20-something wins to 60-something Finalists.", "\n\n“I know the Suns historically haven’t done that as much,” McDonough said. “", "Or at least not to the level that we are doing it, but I feel like it’s the most sustainable way to build a contending team in today’s NBA.”", "\n\nEven the Celtics model had a short window, and required everything to happen at once to make it work. ", "Just acquiring Kevin Garnett OR Ray Allen would not have been enough to put the Celtics over the top. ", "They needed both guys, plus incumbent Paul Pierce, to make it work.", "\n\nUntil then, McDonough seems content to build up from the draft.", "\n\nSo when he talks about an early trade market, he might mean that the Suns are ready to be sellers if the right deal comes along.", "\n\nHe says every GM handles trade talk differently, and some are more open to discussing deals than others.", "\n\n“I think the key for me is being honest and open,” McDonough said. “", "I’m probably more open with other GMs - not about evaluating the players on our roster - but saying here’s what we are looking to do, who do you like on our roster? ", "I’ll go through your roster and tell you who we like. ", "Just because I think that’s how deals get done.”", "\n\nHe acknowledges that trading is a two-way street, and that not all GMs think like he does.", "\n\n“As a GM, it’s hard to guess if teams don’t give you a whole lot,” McDonough said. “", "You’re like, all right I think every other team likes Devin Booker but we’re not trading him. ", "So you waste a lot of time if there’s not that openness and honesty.”", "\n\nBut the Suns do have some increasingly attractive assets to discuss in trades to teams who legitimately think they need that one more veteran for a playoff run.", "\n\nUnder rookie head coach Earl Watson many of the team’s 30-something players are having their best season in years.", "\n\nCenter Tyson Chandler, now 34 years old, is inhaling his most rebounds per game (11.5) since since he was 25 years old. ", "He just posted back-to-back 20-rebound games last week.", "\n\nSmall forward P.J. Tucker, 31, has spent the past week defending Anthony Davis and Carmelo Anthony like a Defensive Player of the Year candidate while also making 37% of his threes over the last 10 games.", "\n\nCombo forward Jared Dudley, 31, is currently 6th in the NBA in 3P% (45.6%), his best mark in six years.", "\n\nShooting guard Leandro Barbosa, 34, has shown he still has a lot to give in short minutes off the bench.", "\n\nCoach Watson loves every one of these guys, and they have all expressed a desire to finish what they started in Phoenix.", "\n\nTucker plays exactly the way Watson wants to play, and has always been loyal to the franchise. ", "Chandler asked not to be traded last summer when he had options. ", "And Dudley and LB were signed specifically to help the Suns transition to their youth.", "\n\nBut the Suns are 8-19 even while playing those guys too many minutes, and it’s about time to start transitioning to the kids.", "\n\nIf I had to guess, I’d say the mostly likely trade candidates this season are Tucker, Chandler and even Eric Bledsoe, along with the uber-available (in fans’ minds) Brandon Knight.", "\n\nBut Bledsoe, Knight and even Chandler feel more like last-second deals in February.", "\n\nIf you’re looking at Christmas presents early trades, the guess here is that four-time defending ‘Dan Majerle Hustle Award’ winner P.J. Tucker would be the most likely to go the soonest. ", "Most teams could use a P.J. Tucker for the same reasons Watson would hate to lose him.", "\n\nIt would be a dark day on the Bright Side if and when this happens, but the Suns need to find more minutes for the young guys. ", "Tucker’s absence would start a domino shift in the rotation that likely would end up with more time for Dragan Bender and Tyler Ulis." ]
{ "pile_set_name": "OpenWebText2" }
[ 0.007575757575757576, 0.008064516129032258, 0, 0.006289308176100629, 0, 0.010869565217391304, 0, 0.0125, 0, 0, 0.008695652173913044, 0, 0.006944444444444444, 0.013157894736842105, 0.009523809523809525, 0, 0.018867924528301886, 0, 0.009900990099009901, 0, 0, 0.025974025974025976, 0.007142857142857143, 0, 0.0196078431372549, 0.014925373134328358, 0.015384615384615385, 0.007692307692307693, 0.009433962264150943, 0.014285714285714285, 0, 0, 0, 0, 0.023255813953488372, 0.010638297872340425, 0, 0.006172839506172839, 0.017241379310344827, 0.00819672131147541, 0, 0.014563106796116505, 0.01904761904761905, 0.009433962264150943, 0.00819672131147541, 0.010309278350515464, 0.015384615384615385, 0.03488372093023256, 0.007874015748031496, 0.02197802197802198, 0.023529411764705882, 0.010582010582010581, 0.023255813953488372, 0.007751937984496124, 0.022556390977443608 ]
0.009485
5
[ "Caribbean Horseback Riding Vacation Rentals\n\n228 Caribbean Horseback Riding Vacation Rentals were found matching your criteria. ", "These vacation rentals are presented by their owners or managers. ", "Please click on the photos or links below, then contact them directly with your inquiries. ", "Use the search criteria box on the left of the page to refine your search within Caribbean.", "\n\nSelect a country to narrow your vacation rental search or browse listings below:\n\nVilla:2 Bedroom, 3 Bathroom, Sleeps 6Location:Flamands, St. Barts, St. Barths - St. BartsDescription:The charming and beautiful Villa Ylang Ylang, with a view of the sea at Flamands, is one of the island’s prettiest. ", "The living room which is brigh...\n\nVilla:2 Bedroom, 2 Bathroom, Sleeps 4Location:Toiny, St. Barts, St. Barths - St. BartsDescription:Ensconced in the craggy and dramatic Toiny hillside, the very private two bedroom Villa A Bientot leverages its location and captures the gentle tr...\n\nVilla:1 Bedroom, 1.5 Bathroom, Sleeps 2Location:Vitet, St. Barts, St. Barths - St. BartsDescription:Romantic and luxurious, this 1 bedroom villa is tucked away high in the hills of Vitet with views overlooking three bays: Petit Cul de Sac, Marigot...\n\nVilla:3 Bedroom, 3.5 Bathroom, Sleeps 6Location:Colombier, St. Barts, St. Barths - St. BartsDescription:Guests enjoy the sensational sea view over Flamands as well as ultimate privacy at Villa Kuban, a beautiful, contemporary three bedroom three and a...\n\nVilla:1 Bedroom, 1 Bathroom, Sleeps 2Location:St. Thomas, St. Thomas, US Virgin IslandsDescription:Resort-Managed Villa: Large Wrap Around Balcony With Amazing Views! ", "Akers Ellis, the official operator of Point Pleasant Resort, manages this one ...\n\nVilla:2 Bedroom, 2.5 Bathroom, Sleeps 4Location:St. Jean, St. Barts, St. Barths - St. BartsDescription:Well designed and prettily furnished, this charming 2 bedroom villa is located on the St Jean hillside and is a perfect villa to share with friends...\n\nVilla:2 Bedroom, 2 Bathroom, Sleeps 4Location:Petit cul de Sac, St. Barts, St. Barths - St. BartsDescription:Compact, cozy and charming, this 2 bedroom deluxe villa is just a short stroll to the beach of Petit Cul de Sac and offers gorgeous views. ", "The bedr...\n\nVilla:3 Bedroom, 3.5 Bathroom, Sleeps 6Location:Gouverneur, St. Barts, St. Barths - St. BartsDescription:Perched high on the hillside in Gouverneur not far from the beach, this contemporary three bedroom villa features a kidney shaped pool surrounded b...\n\nVilla:3 Bedroom, 3.5 Bathroom, Sleeps 6Location:Lurin, St. Barts, St. Barths - St. BartsDescription:The 3 bedroom Villa La Vague Bleue enjoys a great 'address' in Lurin - just a short drive to Gustavia with its shops and restaurants - and a panora...\n\nVilla:3 Bedroom, 3.5 Bathroom, Sleeps 6Location:St. Jean, St. Barts, St. Barths - St. BartsDescription:Hillside in St. Jean, this fully air-conditioned three bedroom, three and a half bathroom luxury villa is contemporary in design with a colorful tr...\n\nVilla:3 Bedroom, 3.5 Bathroom, Sleeps 6Location:Gustavia, St. Barts, St. Barths - St. BartsDescription:Step into luxurious villa Le Phare (The Lighthouse), and you are treated to a panoramic vista of Gustavia Harbor. ", "Take it all in; from the spacious..." ]
{ "pile_set_name": "Pile-CC" }
[ 0.0078125, 0, 0, 0, 0.006644518272425249, 0.011458333333333333, 0.015358361774744027, 0.01006036217303823, 0 ]
0.005704
5
[ "Q:\n\nHow do I implement and return a Cmd Msg?", "\n\nHow do I implement and return a Cmd Msg?", "\nFor example, the following line generates a Cmd Msg:\nHttp.send msg request\n\nIt's used in the following function:\ntryRegister : Form -> (Result Http.", "Error JsonProfile -> msg) -> Cmd msg\ntryRegister form msg =\n let\n registerUrl =\n \"http://localhost:5000/register\"\n\n body =\n encode form |> Http.jsonBody\n\n request =\n Http.post registerUrl body decoder\n in\n Http.send msg request\n\nI'm trying to hand code a similar function within my TestAPI:\ntryRegister : Form -> (Result Http.", "Error JsonProfile -> msg) -> Cmd msg\ntryRegister form msg =\n Cmd.none\n\nThe above code compiles. ", "However, it's not clear to me how to implement a function that returns a Cmd Msg other than Cmd.none.", "\nAppendix:\ntype Msg\n =\n ...\n | Submit\n | Response (Result Http.", "Error JsonProfile)\n\nupdate : Msg -> Form -> ( Form, Cmd Msg )\nupdate msg model =\n case msg of\n ...\n Submit ->\n ( model, runtime.tryRegister model Response )\n\nSource code on GitHub.", "\n\nA:\n\nEdit\nThe original answer suggested mapping over Cmd.none, which compiles and may potentially be useful when mocking out functions for testing, but if you are actually trying to force another update cycle in The Elm Architecture, you will need to convert to a Task, as outlined in the send function described here.", "\nsend : msg -> Cmd msg\nsend msg =\n Task.succeed msg\n |> Task.perform identity\n\nAs @SwiftsNamesake mentioned above, in most cases this is not necessary, and the entire blog post on the subject is worth a read.", "\nOriginal Answer\nYou can use Cmd.map over Cmd.none to change it to any Cmd:\nCmd.map (always Submit) Cmd.none\n\n" ]
{ "pile_set_name": "StackExchange" }
[ 0, 0, 0.006711409395973154, 0, 0, 0.009900990099009901, 0, 0.00975609756097561, 0, 0.0045871559633027525, 0.00909090909090909 ]
0.003641
5
[ "Q:\n\nDo i need a fan, or will ventilation holes suffice?", "\n\nthis setup has not yet been completed. ", "I'm only asking so I can order a fan if needed\nI plan on connecting the following elements directly to my pi4-\n\nrelay(i think I'll need two)\nsmall LED with resistor\nPiezo element\npower pack, via modified usb c cord(using 4-5 of these batteries)\n\nall of this will be in as small a container as i can find and squeeze it into, which will also be shared with these items, not powered directly from the pi-\n\npower pack for EL wire(2 AAs)\npower pack for bright LED(1-2 AAs or 3 AAAs)\n\nI may add more later on, but for now, this is all I need to squeeze into a box. ", "My question is- is it fine just to drill some holes in the box for ventilation? ", "Or do I need to attach a fan to keep it from overheating?", "\n\nA:\n\nThat will depend on things that you've not told us. ", "But not to worry, because we'd have a hard time answering your question with any authority even if you had!", "\nThat sounds nonsensical, but here's what we know, and why a definitive answer is difficult:\n\nThe RPi 4 has what you might think of as a closed-loop thermal management system that is \"baked in\".", "\n\nThe firmware that implements this thermal management system is closed-source, and details of its implementation are not disclosed.", "\n\nWhat we do know from testing and what's been published by \"The Organization\" is that as component temperatures rise, the thermal management system acts to \"throttle\" performance. ", "In other words, the thermal management system will not allow the RPi to \"melt down\" or self-destruct.", "\n\nAnd that brings us to this reasoning:\n\nYour need for fans and heat sinks may be determined only through experience and testing the RPi 4 in the environment in which it will operate.", "\n\n\"Environment\" includes primarily ambient temperature and processor workload.", "\n\nPut your RPi 4 in its enclosure, and run your application(s) in an ambient temperature close to what it will see in the field.", "\n\nMonitor the performance and temperatures of the RPi 4. ", "If the RPi 4 cannot perform the calculations/processing needed in the allotted time, OR if the temperatures are higher than you'd like: Add fans/heatsinks/ventilation accordingly. ", "If you're satisfied with the performance and component temperatures, you need do nothing further - the system will manage this for you.", "\n\nSome references:\nRPi 4 Thermal Teting is mostly self-congratulatory publicity, but you will pick up some information. ", "For example: RPi will run cooler if placed in a vertical orientation.", "\nIndependent RPi 4 Thermal Testing by Tom's Hardware provides a slightly better explanation\n\n" ]
{ "pile_set_name": "StackExchange" }
[ 0, 0, 0.005357142857142857, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.021505376344086023 ]
0.001343
5
[ "actors of 444942354.", "\n2, 3, 74157059\nWhat are the prime factors of 2923796443?", "\n29, 100820567\nList the prime factors of 89298990.", "\n2, 3, 5, 11, 107, 281\nList the prime factors of 1558092856.", "\n2, 194761607\nWhat are the prime factors of 6619140700?", "\n2, 5, 5953, 11119\nWhat are the prime factors of 1699862390?", "\n2, 5, 113, 601, 2503\nList the prime factors of 774125302.", "\n2, 43, 239, 37663\nWhat are the prime factors of 137870654?", "\n2, 311, 221657\nList the prime factors of 4089946215.", "\n3, 5, 499, 577, 947\nWhat are the prime factors of 3226907917?", "\n3226907917\nWhat are the prime factors of 200437894?", "\n2, 100218947\nWhat are the prime factors of 37875220?", "\n2, 5, 197, 9613\nWhat are the prime factors of 2528288906?", "\n2, 11, 13, 8840171\nWhat are the prime factors of 35440339?", "\n11, 19, 37, 4583\nWhat are the prime factors of 56484202?", "\n2, 1511, 18691\nWhat are the prime factors of 55115338?", "\n2, 27557669\nList the prime factors of 31568666.", "\n2, 15784333\nList the prime factors of 1320019667.", "\n521, 2533627\nList the prime factors of 98220434.", "\n2, 13, 290593\nList the prime factors of 39500343.", "\n3, 41, 167, 641\nWhat are the prime factors of 113158690?", "\n2, 5, 11315869\nWhat are the prime factors of 2204276370?", "\n2, 3, 5, 29, 2533651\nList the prime factors of 472840031.", "\n472840031\nList the prime factors of 1977094193.", "\n1977094193\nWhat are the prime factors of 979525759?", "\n193, 5075263\nList the prime factors of 21460615.", "\n5, 11, 390193\nList the prime factors of 60871244.", "\n2, 7, 59, 36847\nList the prime factors of 1145182631.", "\n1145182631\nWhat are the prime factors of 769389347?", "\n769389347\nWhat are the prime factors of 279694297?", "\n421, 664357\nList the prime factors of 1268097926.", "\n2, 634048963\nList the prime factors of 30877144.", "\n2, 727, 5309\nList the prime factors of 178745642.", "\n2, 89, 127, 7907\nList the prime factors of 12892334.", "\n2, 7, 13, 5449\nList the prime factors of 2202971071.", "\n7, 1471, 213943\nList the prime factors of 2832994016.", "\n2, 88531063\nWhat are the prime factors of 1859524647?", "\n3, 619841549\nWhat are the prime factors of 22056685?", "\n5, 7, 61, 10331\nList the prime factors of 1124002753.", "\n17, 66117809\nWhat are the prime factors of 955554865?", "\n5, 1549, 123377\nList the prime factors of 1080825660.", "\n2, 3, 5, 17, 23, 5119\nWhat are the prime factors of 209487125?", "\n5, 257, 6521\nWhat are the prime factors of 290786212?", "\n2, 97, 749449\nList the prime factors of 9052777500.", "\n2, 3, 5, 13, 92849\nWhat are the prime factors of 347093403?", "\n3, 17, 6805753\nWhat are the prime factors of 27796242?", "\n2, 3, 251, 18457\nWhat are the prime factors of 23743821?", "\n3, 7914607\nList the prime factors of 1181091337.", "\n17, 69475961\nWhat are the prime factors of 720050180?", "\n2, 5, 5479, 6571\nList the prime factors of 323750437.", "\n163, 1986199\nWhat are the prime factors of 111742472?", "\n2, 13967809\nList the prime factors of 26267041.", "\n26267041\nList the prime factors of 9994558.", "\n2, 7, 23, 31039\nList the prime factors of 5222445287.", "\n31, 168465977\nList the prime factors of 12258721.", "\n12258721\nWhat are the prime factors of 159386866?", "\n2, 17, 4687849\nWhat are the prime factors of 28989525?", "\n3, 5, 43, 89, 101\nWhat are the prime factors of 1279667752?", "\n2, 11, 14541679\nWhat are the prime factors of 1851107409?", "\n3, 205678601\nWhat are the prime factors of 152561930?", "\n2, 5, 15256193\nWhat are the prime factors of 2472129717?", "\n3, 1171, 703709\nWhat are the prime factors of 2038754310?", "\n2, 3, 5, 131, 518767\nList the prime factors of 2180128652.", "\n2, 13, 37, 47, 24109\nWhat are the prime factors of 98819608?", "\n2, 19, 271, 2399\nWhat are the prime factors of 1210867614?", "\n2, 3, 11, 23, 265891\nList the prime factors of 91583671.", "\n91583671\nList the prime factors of 426562533.", "\n3, 71, 667547\nList the prime factors of 77501959.", "\n367, 211177\nList the prime factors of 2502112838.", "\n2, 131, 9550049\nWhat are the prime factors of 4002094010?", "\n2, 5, 400209401\nList the prime factors of 46565111.", "\n53, 167, 5261\nList the prime factors of 1020452953.", "\n13, 193, 406717\nWhat are the prime factors of 35079002?", "\n2, 7, 23, 79, 197\nList the prime factors of 35632542.", "\n2, 3, 11, 199, 2713\nList the prime factors of 2288448989.", "\n41, 59, 946031\nList the prime factors of 799658159.", "\n7639, 104681\nWhat are the prime factors of 3362162?", "\n2, 1129, 1489\nWhat are the prime factors of 5373491596?", "\n2, 11, 122124809\nList the prime factors of 131918358.", "\n2, 3, 11, 13, 11827\nList the prime factors of 216094374.", "\n2, 3, 12005243\nWhat are the prime factors of 97831015?", "\n5, 137, 251, 569\nList the prime factors of 42671737.", "\n4451, 9587\nList the prime factors of 5857812299.", "\n43, 136228193\nList the prime factors of 303019876.", "\n2, 75754969\nWhat are the prime factors of 202529395?", "\n5, 709, 57131\nList the prime factors of 272692416.", "\n2, 3, 23, 61751\nWhat are the prime factors of 4313024144?", "\n2, 11, 13, 283, 6661\nList the prime factors of 122118288.", "\n2, 3, 2544131\nWhat are the prime factors of 1861332963?", "\n3, 7, 47, 67, 4021\nList the prime factors of 170422093.", "\n17, 10024829\nWhat are the prime factors of 386736763?", "\n7, 167, 283\nWhat are the prime factors of 378850185?", "\n3, 5, 7, 17, 263, 269\nWhat are the prime factors of 159343456?", "\n2, 523, 9521\nWhat are the prime factors of 31910592?", "\n2, 3, 7, 23743\nList the prime factors of 64134865.", "\n5, 41, 193, 1621\nList the prime factors of 293676996.", "\n2, 3, 19, 1288057\nList the prime factors of 6462328.", "\n2, 853, 947\nList the prime factors of 592627957.", "\n592627957\nWhat are the prime factors of 743434796?", "\n2, 13, 23, 41, 15161\nWhat are the prime factors of 1398768654?", "\n2, 3, 233128109\nWhat are the prime factors of 1038927171?", "\n3, 17, 43, 89, 5323\nList the prime factors of 40842979.", "\n40842979\nList the prime factors of 2602272236.", "\n2, 650568059\nList the prime factors of 93837232.", "\n2, 139, 42193\nList the prime factors of 34870511.", "\n13, 2682347\nList the prime factors of 13765564.", "\n2, 3441391\nList the prime factors of 24651264.", "\n2, 3, 11, 1459\nWhat are the prime factors of 74682269?", "\n263, 443, 641\nWhat are the prime factors of 13128631?", "\n43, 211, 1447\nList the prime factors of 2188298786.", "\n2, 17, 64361729\nWhat are the prime factors of 414557875?", "\n5, 73, 181, 251\nWhat are the prime factors of 66211135?", "\n5, 23, 241, 2389\nWhat are the prime factors of 68284007?", "\n11, 617, 10061\nList the prime factors of 2538316646.", "\n2, 277, 1013, 4523\nList the prime factors of 815898978.", "\n2, 3, 313, 144817\nList the prime factors of 46599550.", "\n2, 5, 17, 73, 751\nList the prime factors of 1875573613.", "\n43, 1697, 25703\nList the prime factors of 174304195.", "\n5, 13, 19, 113, 1249\nList the prime factors of 112320346.", "\n2, 56160173\nList the prime factors of 256646867.", "\n9041, 28387\nWhat are the prime factors of 96830129?", "\n11, 617, 1297\nWhat are the prime factors of 71127969?", "\n3, 11, 2155393\nWhat are the prime factors of 296679140?", "\n2, 5, 59, 103, 2441\nList the prime factors of 1258343969.", "\n1258343969\nWhat are the prime factors of 928462618?", "\n2, 73, 179, 35527\nWhat are the prime factors of 395459140?", "\n2, 5, 19772957\nWhat are the prime factors of 4061689949?", "\n103, 139, 283697\nList the prime factors of 478529188.", "\n2, 119632297\nWhat are the prime factors of 864397025?", "\n5, 31, 1115351\nWhat are the prime factors of 4825781118?", "\n2, 3, 47, 919, 2069\nWhat are the prime factors of 710424557?", "\n22153, 32069\nWhat are the prime factors of 129002284?", "\n2, 31, 227, 4583\nList the prime factors of 635663979.", "\n3, 673, 104947\nWhat are the prime factors of 721032052?", "\n2, 13, 79, 175519\nList the prime factors of 24900379.", "\n7, 508171\nWhat are the prime factors of 34689421?", "\n13, 19, 140443\nWhat are the prime factors of 2743748070?", "\n2, 3, 5, 7, 73, 89, 2011\nWhat are the prime factors of 5889069556?", "\n2, 29, 641, 79201\nWhat are the prime factors of 76156076?", "\n2, 19039019\nList the prime factors of 132395963.", "\n7, 18913709\nList the prime factors of 34886822.", "\n2, 17, 743, 1381\nList the prime factors of 498137541.", "\n3, 11, 367, 41131\nWhat are the prime factors of 361878699?", "\n3, 7, 13, 383, 3461\nWhat are the prime factors of 3158732049?", "\n3, 11, 139, 688627\nList the prime factors of 258957210.", "\n2, 3, 5, 8631907\nWhat are the prime factors of 77965415?", "\n5, 11, 157, 9029\nWhat are the prime factors of 176261666?", "\n2, 7, 12590119\nWhat are the prime factors of 2626971578?", "\n2, 7, 11, 19, 59, 15217\nWhat are the prime factors of 60451755?", "\n3, 5, 7, 13, 67, 661\nList the prime factors of 261045330.", "\n2, 3, 5, 7, 13, 95621\nList the prime factors of 68340678.", "\n2, 3, " ]
{ "pile_set_name": "DM Mathematics" }
[ 0, 0, 0, 0, 0.01818181818181818, 0, 0, 0, 0.018867924528301886, 0, 0, 0, 0.017241379310344827, 0, 0, 0, 0, 0, 0, 0, 0, 0.017543859649122806, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.018867924528301886, 0.018518518518518517, 0, 0, 0, 0, 0, 0, 0, 0.019230769230769232, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.018518518518518517, 0, 0, 0, 0, 0, 0, 0, 0.017241379310344827, 0, 0, 0, 0, 0, 0, 0.02, 0, 0, 0, 0, 0, 0.017241379310344827, 0, 0, 0, 0, 0, 0, 0, 0.02040816326530612, 0, 0, 0, 0.017241379310344827, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.02127659574468085, 0, 0, 0, 0, 0, 0, 0.019230769230769232, 0, 0, 0, 0.018867924528301886, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.014925373134328358, 0, 0, 0, 0, 0, 0.016129032258064516, 0, 0, 0, 0.017543859649122806, 0, 0, 0, 0 ]
0.002283
5
[ "Q:\n\nLoop through a pivot table and save each field's details in a separate workbook with the field's name\n\nI'm working on a project in Excel where I have a pivot table with people's name and their associated claims. ", "I need to double click on each name in the table and when the details (claims details) show up in a separate sheet save the sheet as a separate workbook with that person's name in a folder. ", "Is there any way to automate this process in VBA?", "\nI have the code below which works for the first item but it has a few problems:\n-The name of the sheet and the workbook are hard coded and therefore only work for the first item. ", "Is there anyway to just select the new sheet instead of selecting it by name? ", "And is there a way to use the item's name instead of Book3.xlsx?", "\nHere is my code:\nSub IndividualReports()\n\nApplication.", "ScreenUpdating = False\nOn Error Resume Next\n\nDim LastRow As Long\n\nSheets(\"Table\").Select\n\n With Application.", "ActiveSheet\n LastRow = .Cells(.Rows.", "Count, \"A\").End(xlUp).Row\n End With\n\nFor i = 8 To LastRow\n Range(\"C\" & i).Select\n Selection.", "ShowDetail = True\n Sheets(\"Sheet2\").Select\n Sheets(\"Sheet2\").Move\n Sheets(\"Sheet2\").Select\n ChDir \"C:\\Users\\haghigy\\Desktop\\New3\"\n ActiveWorkbook.", "SaveAs Filename:=\"C:\\Users\\haghigy\\Desktop\\New3\\Book3.xlsx\", _\n FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False\nNext\n\nEnd Sub\n\nThank you for your help!", "\n*Edit: Here is my code after the solution.", "\nSub IndividualReports()\n\nDim LastRow As Long\nDim Name As String\nDim Path As String\nDim fldr As FileDialog\n\nSet fldr = Application.", "FileDialog(msoFileDialogFolderPicker)\nWith fldr\n .Title = \"Select a Folder\"\n .AllowMultiSelect = False\n .InitialFileName = Application.", "DefaultFilePath\n If .Show <> -1 Then GoTo NextCode\n Path = .SelectedItems(1) & \"\\\"\nEnd With\nNextCode:\n GetFolder = Path\n Set fldr = Nothing\n\nSheets(\"Table\").Select\n With Application.", "ActiveSheet\n LastRow = .Cells(.Rows.", "Count, \"A\").End(xlUp).Row\n End With\n\nFor i = 6 To LastRow - 1\n\nName = Application.", "WorksheetFunction.", "Index(Sheets(\"Table\").Rang(\"A6:A200\"), i - 5)\nRange(\"C\" & i).Select\nSelection.", "ShowDetail = True\nActiveSheet.", "Move\nActiveWorkbook.", "SaveAs Filename:=Path & Name, _\n FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False\nActiveWorkbook.", "Close\n\nNext\nEnd Sub\n\nA:\n\nGreat start! ", "A couple things I noticed. ", "First and foremost, when you move the detail sheet to a new workbook and save as, your workbook with the Pivot table is no longer the active workbook. ", "So selecting the range on the new workbook won't work. ", "You could add\nWorkbooks(\"[WorkbookName].xlsx\").Activate\nSheets(\"Table\").Activate\n\nto the top of your loop. ", "Further, \nSheets(\"Sheet2\").Select\nSheets(\"Sheet2\").Move\nSheets(\"Sheet2\").Select\n\nThe two Select methods aren't needed, and the Sheet numbers will increment, so it won't always be Sheet2. ", "You could replace the block above with:\nActiveSheet.", "Move\n\nFinally you would have to change the name of the workbook you are saving so it doesn't just overwrite each time. ", "Maybe like:\nfilename:=\"C:\\Users\\haghigy\\Desktop\\New3\\Book\" & i & \".xlsx\"\n\nThen it should work.", "\n*edit: also don't really need the ChDir\n\n" ]
{ "pile_set_name": "StackExchange" }
[ 0, 0, 0.02040816326530612, 0, 0, 0.015625, 0.01818181818181818, 0, 0.024390243902439025, 0.010526315789473684, 0, 0.006289308176100629, 0, 0.030534351145038167, 0, 0.01015228426395939, 0.023255813953488372, 0, 0, 0, 0, 0, 0.00980392156862745, 0, 0, 0, 0, 0, 0.0053475935828877, 0, 0, 0, 0 ]
0.005288
5
[ "Munzee Dictionary - V\n\nA non physical munzee where a different location is actually the munzee.", "\n\nA \"Special\" Munzee awarding 5pts for the capture. ", "There is no QR code for this type of munzee. ", "You just have to be less then 500ft from your phones GZ for the VM to be captured. ", "First seen May 2012. ", "Represented by a \"light white/grey\" Icon on the map.", "\n\nDo you have any suggestions for 'Munzee Speak/Terms' that you use or have heard?" ]
{ "pile_set_name": "Pile-CC" }
[ 0.010526315789473684, 0, 0, 0, 0, 0, 0.012195121951219513 ]
0.003246
5
[ "Q:\n\nRsync to remote server with mounted NFS USB\n\nI am trying to rsync one file from server X to server Y.\nIn the server Y, there is a mounted dir /mnt/myDir, where I am trying to sync that file. ", "The goal is also to keep the full path of the file.", "\nI am trying to do this with:\nsudo -u www-data rsync -avz /var/www/dms/test/test.tif user@server.com:/mnt/myDir/var/www/dms/test/test.tif\n\nBut this is triggering the following error:\nsending incremental file list\nrsync: change_dir#3 \"/mnt/myDir/var/www/dms/test\" failed: No such file or directory (2)\nrsync error: errors selecting input/output files, dirs (code 3) at main.c(643) [Receiver=3.0.9]\nrsync: connection unexpectedly closed (241 bytes received so far) [sender]\nrsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.0]\n\nA:\n\nThe error arise from the fact you are trying to sync into a directory which does not exist on the remote side.", "\nYou have the following possibilities:\n\nfirst create the dir on the target directory issuing mkdir /mnt/myDir/var/www/dms/test (on the remote side), then issue your rsync command\nelaborating on that, if you need to transfer the entire /var/www directory, you need to create the remote /mnt/myDir/var/www dir and the issuing something similar to sudo -u www-data rsync -avz /var/www/ user@server.com:/mnt/myDir/var/www\nalternatively, you can instruct rsync to do the entire work for you, using the -R (--relative) option and issuing something as sudo -u www-data rsync -avzR /var/www/dms/test/test.tif user@server.com:/mnt/myDir/. In this case, be sure to read the man page as -R can have some unexpected side-effects.", "\n\n" ]
{ "pile_set_name": "StackExchange" }
[ 0.005128205128205128, 0, 0.001483679525222552, 0.0041841004184100415, 0 ]
0.002159
5
[ "Chiropractic medicine addresses all sorts of Knee Pain. ", "The knee mobilizes the legs and bears weight to raise the body up from a lower position. ", "Joints, cartilage and ligaments are usually involved with problems of the knee. ", "Osteoarthritis of the knee is when cartilage in the joint starts to wear away. ", "It can start with rheumatoid arthritis, inflammation of the joints. ", "The inflammation can harm the cartilage around it. ", "Obesity is a leading cause of arthritis in the knee. ", "Knee pain should be treated by a chiropractor when pain interferes with daily activities. ", "When medication can no longer suffice because knee pain is causing intolerable pain, a chiropractor can provide an effective solution.", "\n\nHealth care for chiropractic medicine starts by learning where the source of pain comes from. ", "Doctors need patient medical history to see if there’s a problem in the past that contributed to the present condition. ", "The type of treatment given is based on a few factors. ", "When other healing antidotes don’t work or doctors say there’s no way to beat the symptoms associated with the condition, chiropractic care serves to manage or significantly reduce the painful symptoms. ", "A set of healing mechanisms are put in place that restore strength and stability in the anatomical structures that are ailing a person. ", "The most intense of pain can happen in places where the source is nowhere to be found. ", "This can confuse the patient into thinking the place where it hurts most is also where the problem originates. ", "Disorders in the lower back, hip and pelvis can put stress on the knee. ", "Since the anatomy of the knees are so different and it’s used in a different way, the pain there is overpowering.", "\n\nThere are treatment modalities that help for the knees that are done at the clinic and home. ", "Orthopedic knee braces secure the structures of the knee in place so no strain is put on cartilage, ligaments or joints. ", "Bending at the knees is much less painful when a knee brace is worn. ", "The soft tissues in the knee are healed with ultrasound therapy. ", "Ice reduces inflammation. ", "Function in the joints is restored with physical therapy and targeted exercises. ", "Go to the website Aspirepainmedicalcenter.com to learn more. ", "You can also follow them on Twitter for more updates." ]
{ "pile_set_name": "Pile-CC" }
[ 0, 0, 0, 0, 0.014705882352941176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.01639344262295082, 0 ]
0.001196
5
[ "using System;\r\nusing System.", "Collections.", "Generic;\r\nusing System.", "Text;\r\n\r\nnamespace DarkAgent_Client.src.", "Network.", "DataNetwork.", "Packets.", "Receive\r\n{\r\n class R_FileTransferSend : ReceiveBasePacket\r\n {\r\n public R_FileTransferSend(ClientConnect client, byte[] packet)\r\n : base(client, packet)\r\n {\r\n }\r\n\r\n private short Id;\r\n private byte[] fileBytes;\r\n private int Index;\r\n public override void Read()\r\n {\r\n Id = ReadShort();\r\n int Temp = ReadShort();\r\n Index = ReadInteger();\r\n fileBytes = ReadBytes(Temp);\r\n }\r\n\r\n public override void Run()\r\n {\r\n if (Client.fileTransfer.", "ContainsKey(Id))\r\n {\r\n try\r\n {\r\n if (Client.fileTransfer[Id].FileBytes == null)\r\n Client.fileTransfer[Id].FileBytes = new SortedList<int, byte[]>();\r\n\r\n Client.fileTransfer[Id].FileBytes.", "Add(Index, fileBytes);\r\n Client.fileTransfer[Id].CurFileSize += fileBytes.", "Length;\r\n }\r\n catch\r\n {\r\n //exception in here wouldn't happen... except something goes totally wrong :P\r\n }\r\n }\r\n }\r\n }\r\n}" ]
{ "pile_set_name": "Github" }
[ 0.06896551724137931, 0, 0.08695652173913043, 0, 0, 0.08333333333333333, 0, 0.008605851979345954, 0.0034602076124567475, 0, 0 ]
0.022847
5
[ "SCANDALOUS\n\n12.31.13\n\nReport: Dwyane Wade Fathered Child\n\nKevin Winter/Getty\n\nThis could make for an uncomfortable New Year’s. ", "NBA star Dwyane Wade reportedly fathered a child while on a break from his now-fiancée, Gabrielle Union. ", "Wade and Union have been dating for four years, and although the baby was allegedly conceived while Wade and Union were apart, Union reportedly distanced herself from Wade. ", "They later reconciled, and he proposed to her on Dec. 21. ", "There has been no comment from either Wade or Union. ", "Wade has two children from his first marriage." ]
{ "pile_set_name": "Pile-CC" }
[ 0.015748031496062992, 0.01904761904761905, 0, 0, 0.018867924528301886, 0 ]
0.008944
5
[ "In a typical gesture-recognition system, a light source emits near-infrared light towards a user. ", "A three-dimensional (3D) image sensor detects the emitted light that is reflected by the user to provide a 3D image of the user. ", "A processing system then analyzes the 3D image to recognize a gesture made by the user.", "\nAn optical filter, more specifically, a bandpass filter, is used to transmit the emitted light to the 3D image sensor, while substantially blocking ambient light. ", "In other words, the optical filter serves to screen out ambient light. ", "Therefore, an optical filter having a narrow passband in the near-infrared wavelength range, i.e., 800 nm to 1100 nm, is required. ", "Furthermore, the optical filter must have a high transmittance level within the passband and a high blocking level outside of the passband.", "\nConventionally, the optical filter includes a filter stack and a blocking stack, coated on opposite surfaces of a substrate. ", "Each of the stacks is formed of high-refractive-index layers and low-refractive-index layers stacked in alternation. ", "Different oxides are, generally, used for the high-refractive-index layers and the low-refractive-index layers, such as TiO2, Nb2O5, Ta2O5, SiO2, and mixtures thereof. ", "For example, some conventional optical filters include a TiO2/SiO2 filter stack and a Ta2O5/SiO2 blocking stack, in which the high-refractive index layers are composed of TiO2 or Ta2O5, respectively, and the low-refractive-index layers are composed of SiO2.", "\nIn a first conventional optical filter designed to transmit light in a wavelength range of 829 nm to 859 nm over an incidence angle range of 0° to 30°, the filter stack includes 71 layers, the blocking stack includes 140 layers, and the total coating thickness is about 24 μm. ", "Transmission spectra 100 and 101 at incidence angles of 0° and 30°, respectively, for this optical filter are plotted in FIG. ", "1. ", "In a second conventional optical filter designed to transmit light at a wavelength of 825 nm over an incidence angle range of 0° to 20°, the filter stack includes 43 layers, the blocking stack includes 82 layers, and the total coating thickness is about 14 μm. ", "Transmission spectra 200 and 201 at incidence angles of 0° and 20°, respectively, for this optical filter are plotted in FIG. ", "2. ", "In a third conventional optical filter designed to transmit light in a wavelength range of 845 nm to 865 nm over an incidence angle range of 0° to 24°, the filter stack includes 77 layers, the blocking stack includes 148 layers, and the total coating thickness is about 26 μm. ", "Transmission spectra 300 and 301 at incidence angles of 0° and 24°, respectively, for this optical filter are plotted in FIG. ", "3.", "\nWith reference to FIGS. ", "1-3, the first, second, and third conventional optical filters, generally, have a high transmittance level within the passband and a high blocking level outside of the passband. ", "However, the center wavelength of the passband undergoes a relatively large shift with change in incidence angle. ", "Consequently, the passband must be relatively wide to accept light over the required incidence angle range, increasing the amount of ambient light that is transmitted and reducing the signal-to-noise ratio of systems incorporating these conventional optical filters. ", "Furthermore, the large number of layers in the filter stacks and blocking stacks increases the expense and coating time involved in fabricating these conventional optical filters. ", "The large total coating thickness also makes these conventional optical filters difficult to pattern, e.g., by photolithography.", "\nTo enhance the performance of the optical filter in the gesture-recognition system, it would be desirable to reduce the number of layers, the total coating thickness, and the center-wavelength shift with change in incidence angle. ", "One approach is to use a material having a higher refractive index than conventional oxides over the wavelength range of 800 nm to 1100 nm for the high-refractive-index layers. ", "In addition to a higher refractive index, the material must have also have a low extinction coefficient over the wavelength range of 800 nm to 1100 nm in order to provide a high transmittance level within the passband.", "\nThe use of hydrogenated silicon (Si:H) for high-refractive-index layers in optical filters is disclosed by Lairson, et al. ", "in an article entitled “Reduced Angle-Shift Infrared Bandpass Filter Coatings” (Proceedings of the SPIE, 2007, Vol. ", "6545, pp. ", "65451C-1-65451C-5), and by Gibbons, et al. ", "in an article entitled “Development and Implementation of a Hydrogenated a-Si Reactive Sputter Deposition Process” (Proceedings of the Annual Technical Conference, Society of Vacuum Coaters, 2007, Vol. ", "50, pp. ", "327-330). ", "Lairson, et al. ", "disclose a hydrogenated silicon material having a refractive index of 3.2 at a wavelength of 1500 nm and an extinction coefficient of less than 0.001 at wavelengths of greater than 1000 nm. ", "Gibbons, et al. ", "disclose a hydrogenated silicon material, produced by alternating current (AC) sputtering, having a refractive index of 3.2 at a wavelength of 830 nm and an extinction coefficient of 0.0005 at a wavelength of 830 nm. ", "Unfortunately, these hydrogenated silicon materials do not have a suitably low extinction coefficient over the wavelength range of 800 nm to 1100 nm." ]
{ "pile_set_name": "USPTO Backgrounds" }
[ 0, 0.007751937984496124, 0.011494252873563218, 0.006097560975609756, 0, 0, 0, 0, 0, 0.011904761904761904, 0.0038910505836575876, 0, 0.007936507936507936, 0, 0, 0.007936507936507936, 0, 0, 0.007936507936507936, 0, 0.04, 0, 0, 0, 0, 0, 0, 0, 0, 0.008064516129032258, 0.017241379310344827, 0, 0, 0.0049504950495049506, 0, 0, 0.0625, 0, 0, 0.004608294930875576, 0 ]
0.004934
5
[ "Neuropeptide Y and coronary vasoconstriction: role of thromboxane A2.", "\nWe previously reported that coronary constriction following neuropeptide Y (NPY) was alleviated by cyclooxygenase blockade. ", "To determine the role of thromboxane A2 (TxA2), anesthetized dogs received two paired doses of NPY given 2 h apart. ", "Nine control dogs received NPY alone. ", "Nine test dogs received one of three TxA2 receptor antagonists given between the doses of NPY. ", "Also, five dogs received NPY during which prostaglandins were measured. ", "In controls, NPY decreased coronary blood flow and increased aortic pressure; coronary resistance was increased significantly. ", "Heart rate fell, and myocardial oxygen consumption was unchanged. ", "Thromboxane receptor blockers significantly relieved the coronary constrictor effect of NPY. ", "The reduction in coronary blood flow was blunted, while heart rate, first derivative of left ventricular pressure, and myocardial oxygen consumption were unchanged. ", "Alleviation by TxA2 receptor blockade paralleled that reported for cyclooxygenase inhibitors. ", "Also, significant increases in coronary venous TxA2 were seen at the time of maximal increases in coronary resistance, while prostacyclin was unchanged. ", "In summary, TxA2 appears to mediate part of the coronary constrictor effect of NPY." ]
{ "pile_set_name": "PubMed Abstracts" }
[ 0, 0.008, 0.008620689655172414, 0.02631578947368421, 0.010526315789473684, 0.013888888888888888, 0.007874015748031496, 0, 0.010752688172043012, 0, 0, 0, 0.012048192771084338 ]
0.007541
5
[ "Q:\n\nmatching string array content with regular expression java\n\ni am new to java. ", "i am trying to use java regular expression to compare two string arrays containing names and then use a nested for loop to print out the names that have a match and names that don't have a match. ", "below is my code\npublic class Main {\n\n public static void main(String[] args) {\n\n // write your code here\n String regex;\n Pattern pattern;\n String stringToBeMatched;\n Matcher matcher;\n boolean b;\n String [] names1 = {\"Peter\",\"Harry\",\"Potter\",\"Mary\",\"Jerry\"};\n String [] names2 = {\"Adam\",\"Jerry\",\"Potter\",\"Martin\",\"Chris\", \"Rose\"};\n //try a loop with two variables for loop\n\n for (int x=0;x >= names2.length;x++) {\n regex = names2[x];\n pattern = Pattern.compile(regex);\n\n for(int y = 0; y >= names1.length; y++){\n stringToBeMatched = names1[y];\n matcher = pattern.matcher(stringToBeMatched);\n b = matcher.find();\n\n if (b) {System.out.println(names1[y] +\" has a match\");}\n else{System.out.println(names1[y] +\" has no match\");}\n }\n }\n }\n}\n\nthe code executes and returns the output Process finished with exit code 0 without displaying any message specified by any of the System.out.println() statements. ", "please guys, what am i not doing right?", "\n\nA:\n\nUnless I am misunderstanding your intentions, you should not use Regex here. ", "My understanding is you want to compare two arrays for duplicate elements.", "\nYou have your arrays:\nString[] names1 = {\"Peter\", \"Harry\", \"Potter\", \"Mary\", \"Jerry\"};\nString[] names2 = {\"Adam\", \"Jerry\", \"Potter\", \"Martin\", \"Chris\", \"Rose\"};\n\nMethod 1 - nested for loops.", "\nfor(int i = 0; i < names1.length; i++) {\n for(int j = 0; j < names2.length; j++) {\n if(names1[i].equals(names2[j])) System.out.println(names1[i] + \" is in both arrays.\");", "\n }\n}\n\nMethod 2 - nested foreach loops.", "\nfor(String name1 : names1) {\n for(String name2 : names2) {\n if(name1.equals(name2)) System.out.println(name1 + \" is in both arrays.\");", "\n }\n}\n\nMethod 3 - using a List.", "\nList<String> names2List = Arrays.asList(names2);\n\nfor(String name1 : names1) {\n if(names2List.contains(name1)) System.out.println(name1 + \" is in both arrays.\");", "\n}\n\nMethod 4 - using a Set. ", "This works because HashSet#add() will NOT add duplicates, and returns false if requested.", "\nSet<String> names2Set = new HashSet<>(Arrays.asList(names2));\n\nfor(String name1 : names1) {\n if(!names2Set.add(name1)) System.out.println(name1 + \" is in both arrays.\");", "\n}\n\nMethod 5 - using Streams. ", "If you want to get fancy.", "\nfor(String name1 : names1) {\n if(Arrays.stream(names2).anyMatch(name1::equals)) System.out.println(name1 + \" is in both arrays.\");", "\n}\n\n" ]
{ "pile_set_name": "StackExchange" }
[ 0, 0, 0.0008438818565400844, 0, 0, 0, 0.005235602094240838, 0, 0, 0, 0.03125, 0, 0, 0.011235955056179775, 0, 0, 0, 0, 0 ]
0.002556
5
[ "In 1994, the Weekly World News reported that Alan Simpson was one of 12 senators who was actually born on another planet. ", "The paper didn’t name which one, but whichever one it was, we can safely draw two conclusions about it. ", "First, the life forms there must not last to age 65, because he obviously has something against those who do. ", "Second, they are a highly musical race, because Simpson has for years been a virtuoso—as he demonstrated again Wednesday—at playing the Washington media, emphasizing the story line that they want to hear and that keeps the fiscal debate so skewed in the Republicans’ favor.", "\n\nSpeaking to Politico Wednesday, Simpson attacked Barack Obama’s “abrogation of leadership” because of the president’s deficit-reduction plan and his “new feisty tone,” as the paper put it. ", "The former Wyoming senator is mostly in high dudgeon because Obama’s plan doesn’t do anything about Social Security. “", "You can’t get this done without hits across the board,” Simpson said, “and if you are leaving people out all along the way because of political pressure, you can’t get it done.”", "\n\nI’m actually not as hard-line as many liberals on the Social Security question. ", "Simpson and his compadre Erskine Bowles proposed raising the retirement age to 69 by 2075. ", "I don’t find that offensive. ", "I’d carve out exceptions for those doing really hard work, assuming anyone in this country still is by then. ", "The switch to the “chained consumer price index,” which they also proposed, I’m more skeptical of, because it plainly is a reduction in benefits, and a much more immediate one, and especially for older recipients. ", "But on the plus side, they actually propose a modest increase in the FICA tax to ensure that FICA would be withheld on 90 percent of all wages earned in America instead of the current 86 percent (economists have for many complicated reasons divined that 90 is the best of all possible numbers). ", "So their proposals were not extreme to me.", "\n\nThe question here, though, is the role the widely respected Simpson is choosing to play right now, at a crucial moment in this process, knowing the weight his words carry. ", "He has choices. ", "He could have told Politico many different things. ", "And what he chose to do, at least if the paper represented his comments fully and fairly, is put all the political pressure on Obama and none—zero—on Republicans. ", "And this in turn plays into what may be the most perfidious distortion of the current fiscal debate—that Democrats are as much to blame for the impasse as the GOP. ", "It just isn’t remotely true. ", "Obama put around $350 million in Medicare and Medicaid reductions on the table. ", "For the deficit-hawks, this isn’t nearly enough. ", "But for most Democrats in Congress, it’s way too much. ", "So Obama has put entitlement money on the table in a way that pains his own side.", "\n\nWhat have the Republicans put on the table? ", "Not yet an actual penny in revenue. ", "Not one. ", "Ya think Simpson might have said that? ", "And remember this, from the debt-ceiling negotiations over the summer: Obama was willing at that point to put some aspect of Social Security on the chopping block, in the famously unconsummated “grand bargain.” ", "Here’s Lori Montgomery’s lead from her July 6 Washington Post story: “President Obama is pressing congressional leaders to consider a far-reaching debt-reduction plan that would force Democrats to accept major changes to Social Security and Medicare for Republican support for fresh tax revenue.”", "\n\nAnd what happened? ", "John Boehner walked away. ", "Because, of course, of taxes. ", "He wanted the whole cake, and when he didn’t get it, he stormed off. ", "And for this, Obama now deserves blame?", "\n\nMaybe Simpson is a bigger fan of Paul Ryan’s budget. ", "Oh wait, I forgot. ", "Ryan’s plan didn’t touch Social Security either! ", "That must have an abrogation of leadership too. ", "But that somehow went unremarked.", "\n\nI am not Barack Obama’s greatest admirer these days, as I’ve made clear more than once. ", "But this is really a cheap shot from Simpson. ", "And is it not a deeply partisan one too? ", "He’s “saddened” by the president’s rhetoric? ", "And by Republicans’ rhetoric, he is . . . ", "what? ", "This is supposed to be Mr. Bipartisan, as he has been called—and will undoubtedly continue to be called—by many members of the high pundit class. ", "What could be less bipartisan than taking a whack at a president who has in fact tried to talk turkey with the GOP on Social Security, at risk of completely alienating his own base (if you’re a liberal and remember how you were feeling about Obama in the first week of July, you know what I’m talking about), while letting the leaders of his own party, who have been completely unmovable, skate away unscathed?", "\n\nSimpson knows he can walk this edge and still be taken Very Seriously because he knows how the conversation in Washington is set up. ", "Democrats who won’t discuss entitlements are not “serious.” ", "But Republicans who won’t discuss taxes are . . . ", "just being Republicans. ", "All the terms of the debate enable blackmail by the GOP: If no one expects you to behave like a reasonable person, then you simply don’t have to—and all the pressure to behave responsibly is transferred to those on the other side. ", "It does not resemble Earth logic, but very little about Washington does." ]
{ "pile_set_name": "OpenWebText2" }
[ 0.01639344262295082, 0, 0, 0.003663003663003663, 0.010471204188481676, 0.01694915254237288, 0.005649717514124294, 0.012195121951219513, 0.02197802197802198, 0, 0, 0, 0.003389830508474576, 0, 0.005747126436781609, 0, 0.0196078431372549, 0, 0.006097560975609756, 0, 0.025, 0, 0.01818181818181818, 0, 0, 0, 0, 0.02564102564102564, 0.009478672985781991, 0.016891891891891893, 0, 0.038461538461538464, 0, 0, 0.02564102564102564, 0.03636363636363636, 0, 0.02040816326530612, 0, 0, 0.011111111111111112, 0, 0, 0, 0, 0, 0.00684931506849315, 0.004878048780487805, 0, 0, 0, 0, 0.004329004329004329, 0 ]
0.006766
5
[ "Peraluminous rock\n\nPeraluminous rocks are igneous rocks that have a molecular proportion of aluminium oxide higher than the combination of sodium oxide, potassium oxide and calcium oxide. ", "This contrasts with peralkaline in which the alkalis are higher, metaluminous where aluminium oxide concentration is lower than the combination, but above the alkalis, and subaluminous in which aluminia concentration is lower than the combination. ", "Examples of peraluminous minerals include biotite, muscovite, cordierite, andalusite and garnet.", "\n\nPeraluminous corresponds to the aluminum saturation index values greater than 1.", "\n\nPeralumneous magmas can form S-type granitoids and have been linked to collisional orogenies and to the formation of tin, tungsten and silver deposits such as those in the Bolivian tin belt.", "\n\nReferences\n\nCategory:Igneous rocks" ]
{ "pile_set_name": "Wikipedia (en)" }
[ 0, 0, 0, 0, 0, 0 ]
0
5
[ "Legend says a humble French scribe named Nicolas Flamel discovered the philosopher’s stone—the alchemical secret to physical transmutation. ", "To immortality itself. ", "After turning a half-pound of mercury into gold, fear consumed Flamel: what man could resist the temptations of unlimited wealth and immortality? ", "In a show of Christian humility, Flamel hid his manuscripts and dedicated his life to philanthropy. ", "What remained of his synthetic treasure built several schools, seven churches, and 14 hospitals. ", "He died a lifetime later, in 1418.", "\n\nThe Democrats appear to have rediscovered Flamel’s alchemical texts and have used their knowledge of the philosopher’s stone to transform immigrants and blue-collar conservatives into reliable voters. ", "This has made the once-dying Democratic Party all but immortal.", "\n\nFamily Ties\n\nIt is no secret that by 1965 the Democratic Party’s future looked bleak. ", "The exploitation of black-white tensions—the Democrats’ bread-and-butter—no longer looked like a “growth industry.” ", "To stave off their political decline the Democrats needed a new strategy. ", "They needed new voters.", "\n\nEnter the Immigration and Nationality Act of 1965. ", "This legislation (and the political zeitgeist animating its passage) had two primary effects. ", "First, it opened the floodgates and ushered in the modern era of mass immigration. ", "Since 1965, more than 45 million people have immigrated to the United States. ", "This influx greatly increased America’s foreign-born population. ", "Consider that fully 14 percent of people living in America today are foreign-born. ", "In 1970, this figure was a mere 5 percent.", "\n\nSecond, the law changed the composition of immigrants to America by removing country of origin quotas and including a “family reunification” provision (which ironically was supposed to maintain America’s traditional demographic composition). ", "This opened the door to virtually unfettered immigration from the Third World. ", "Fully 75 percent of immigrants to America in 1965 came from Europe—a continent with which America shares indelible ancestral, religious, and cultural bonds. ", "Now just 12.1 percent of immigrants come from Europe. ", "The vast majority arrive from Latin America and Asia, while the number of immigrants from Africa and the Middle East is rising sharply.", "\n\nThe mass immigration of disparate, sometimes even feuding, groups of people into America has reinvigorated the Democratic Party. ", "Why? ", "Immigrants vote overwhelmingly for Democrats. ", "The Center for Immigration Studies found that immigrants vote for Democrats by a ratio of at least two-to-one—and this gap is widening. ", "This data is supported by a study from the Pew Research Center, which found that nonwhite Americans vote for Democrats by a roughly 3-to-1 ratio.", "\n\nNot only do immigrants vote left, so do their children—and their children’s children. ", "As it turns out, political affiliation is highly heritable, as Jonathan Haidt notes in The Righteous Mind. ", "This is confirmed by research compiled by Alex Nowrasteh, an open-borders advocate so rabid and incompetent that he published data proving precisely the opposite of his thesis. ", "Regardless, this is not to say that politics is reducible to genetics, but there is no question that the beliefs and values that underpin a person’s political opinions are configured by their biological and cultural predispositions. ", "Politics runs in the family.", "\n\nReplacement Population\n\nTying two-and-two together: the migration of tens of millions of Democrats into America has completely changed our political landscape. ", "Remember when California was a Republican stronghold? ", "Californians supported every Republican presidential candidate between 1952 and 1988 (the one exception being Barry Goldwater in 1964).", "\n\nWhat changed? ", "The people.", "\n\nSince 1960, California’s population exploded from 15.9 million to 39 million. ", "This growth was almost entirely due to immigration. ", "In fact, some 10 million first-generation immigrants currently reside in California. ", "This has changed the voter demographics so significantly that California is now a one-party state. ", "Furthermore, immigration has also shifted California’s political midpoint to the left. ", "This means that to remain (somewhat) competitive, California’s Republicans must abandon or soften many of their core positions. ", "Immigration turned California blue.", "\n\nAnd as they say: as goes California, so goes the nation.", "\n\nMost people are shocked to learn that American-born voters have not elected a Democratic president since Lyndon B. Johnson back in 1964 (Ross Perot’s antics securing Clinton’s victory in 1992 aside). ", "As it turns out, every Democratic president for the last 50 years won because the immigrant voting bloc tipped the scales in their favor.", "\n\nA cursory glance at the data shows that immigration is greatly diminishing any chance that President Trump may have in 2020. ", "Remember, Trump won by just 112,911 votes in Florida and 10,704 in Michigan—both states which may decide the 2020 election. ", "Immigration is erasing these margins. ", "A net 147,000 immigrants settle in Florida every year. ", "Meanwhile, some 22,919 people immigrate to Michigan annually. ", "If these people vote in line with the national average (which has held steady for decades), then just one or two more years of immigration will flip them.", "\n\nGold From Lead\n\nWhile Nicolas Flamel supposedly used the philosopher’s stone to fund the construction of churches and hospitals, the Democrats did something sinister: they used political alchemy to transmute temperamentally conservative, blue-collar voters into reluctant socialists.", "\n\nIn 1993, President Bill Clinton promised that the North American Free Trade Agreement (NAFTA) would create “a million [American] jobs in the first five years.” ", "He also said NAFTA’s “side agreements” would “make it harder than it is today for businesses to relocate solely because of very low [Mexican] wages or lax environmental laws.”", "\n\nSince then, of course, a net 800,000 American manufacturing jobs moved to Mexico “solely because of very low [Mexican] wages or lax environmental laws.” ", "In other words, Clinton lied. ", "American companies simply could not pass up the opportunity to offshore their factories and save piles of cash. ", "Why pay American workers a middle-class wage when they can pay Mexican peasants a pittance? ", "Why adopt environmentally-conscious technologies when Mexico lets you pollute to your heart’s content? ", "Imagine if the shareholders found out!", "\n\nFewer factory jobs is just the tip of the iceberg. ", "Why? ", "Manufacturing is an anchor industry upon which predicate industries depend. ", "A factory is like an oilfield or a mine because it generates material wealth, which then supports a host of service industries. ", "Lawyers and barbers need miners and factory workers—not the reverse. ", "According to the Bureau of Economic Analysis, each manufacturing job supports roughly 1.5 service jobs. ", "Thus, NAFTA likely displaces a net 1.7 million jobs.", "\n\nHere’s where the alchemy begins in earnest. ", "The geographic concentration of trade deficit-fueled unemployment was in America’s industrial heartland, now known as the Rust Belt. ", "Factory closure after factory closure flooded the already-constricted labor market with fresh job-seekers. ", "This drove down wages for everyone and virtually guaranteed that millions would remain chronically unemployed. ", "Men who had worked a steady job for decades lost everything overnight. ", "And in their despair, they turned to the government for help.", "\n\nAfter all, the Democrats promised to care for the unemployed, to provide welfare for those honest, hard-working Americans who were “just down on their luck.” ", "But it had nothing to do with luck: America’s manufacturing industry was slaughtered like a lamb by NAFTA and a host of other globalist “free-trade” agreements. ", "As unemployment grew and wages shrank, the Democrats solidified their political supremacy by addicting the population to welfare. ", "Meantime, the U.S. economy transformed from one of widespread innovation and production to one of low-paying service jobs, stagnating wages, and extreme inequality. ", "California, again, is illustrative: the fifth-largest economy in the world boasts impossibly high home prices and the largest population of U.S. billionaires as well as one-third of the nation’s of welfare recipients and areas of endemic poverty rivaling Mississippi’s.", "\n\nIn the end, only the Democratic Party benefited.", "\n\nWhat happened to California and states in the Rust Belt is not simply an example of political iatrogenics run amok—it is a clear case of political alchemy. ", "The Democratic Party lost the war of ideas decades ago, but has remained a national force because it imported millions of new voters, and bought millions more.", "\n\nNo matter what it claims, the facts are clear: the Democratic Party does not care about the economy. ", "It does not care about America. ", "And it does not care about you. ", "It cares only about winning elections.", "\n\nPhoto credit: iStock/Getty Images" ]
{ "pile_set_name": "OpenWebText2" }
[ 0.007142857142857143, 0, 0.00684931506849315, 0.01, 0, 0, 0, 0.015873015873015872, 0.011363636363636364, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.007633587786259542, 0, 0, 0.007352941176470588, 0.006896551724137931, 0, 0.009345794392523364, 0.005649717514124294, 0, 0, 0, 0, 0.007407407407407408, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.024752475247524754, 0, 0.007874015748031496, 0.008064516129032258, 0, 0, 0, 0, 0.0035087719298245615, 0.012345679012345678, 0.005714285714285714, 0, 0.03333333333333333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.009615384615384616, 0.019230769230769232, 0, 0, 0, 0, 0, 0, 0, 0.006211180124223602, 0, 0, 0, 0.02, 0, 0.006289308176100629, 0.009708737864077669, 0, 0, 0, 0.02857142857142857 ]
0.00323
5

No dataset card yet

New: Create and edit this dataset card directly on the website!

Contribute a Dataset Card
Downloads last month
0
Add dataset card

Models trained or fine-tuned on tomekkorbak/pii-pile-chunk3-200000-250000