code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
#!/usr/bin/env python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
unknown
codeparrot/codeparrot-clean
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html #if ARITHM_USE_IPP namespace cv { namespace hal { //======================================= // Arithmetic and logical operati...
unknown
github
https://github.com/opencv/opencv
modules/core/src/arithm_ipp.hpp
# -*- coding: utf-8 -*- # This file is part of emesene. # # emesene is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # #...
unknown
codeparrot/codeparrot-clean
// Copyright IBM Corp. 2016, 2025 // SPDX-License-Identifier: BUSL-1.1 //go:build !enterprise package server //go:generate go run github.com/hashicorp/vault/tools/stubmaker func addExpectedEntConfig(c *Config, sentinelModules []string) {} func addExpectedDefaultEntConfig(c *Config) ...
go
github
https://github.com/hashicorp/vault
command/server/config_test_helpers_stubs_oss.go
import sys from benchmark_base import BenchmarkBase import torch import torch.export class UnbindSplitFlipCatModel(torch.nn.Module): """Model that performs unbind, split_with_sizes, flip, and cat operations.""" def __init__(self, num_iterations: int = 40, batch_size: int = 128): super().__init__() ...
python
github
https://github.com/pytorch/pytorch
benchmarks/dynamo/pr_time_benchmarks/benchmarks/unbind_split_flip_cat.py
// Copyright IBM Corp. 2016, 2025 // SPDX-License-Identifier: MPL-2.0 package keysutil import ( "bytes" "context" "crypto/ecdsa" "crypto/elliptic" "crypto/rand" "crypto/rsa" "crypto/x509" "encoding/base64" "errors" "fmt" mathrand "math/rand" "reflect" "runtime" "strconv" "strings" "sync" "testing" "...
go
github
https://github.com/hashicorp/vault
sdk/helper/keysutil/policy_test.go
# Copyright (c) 2006-2007 The Regents of The University of Michigan # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this ...
unknown
codeparrot/codeparrot-clean
""" Prints a comparison between different serializers. Compares results based on size of the output, and time taken to (de)serialize. """ from __future__ import print_function from timeit import default_timer as perf_timer import sys import datetime import decimal import uuid import Pyro4.util import Pyro4.errors impo...
unknown
codeparrot/codeparrot-clean
import os import sys STAGE_USERNAME = 'ffxbld' STAGE_SSH_KEY = 'ffxbld_dsa' config = { ######################################################################### ######## WINDOWS GENERIC CONFIG KEYS/VAlUES # if you are updating this with custom 32 bit keys/values please add them # below under the '32 b...
unknown
codeparrot/codeparrot-clean
% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it. **Example** ```esql FROM date_nanos | WHERE MV_MIN(nanos) < TO_DATE_NANOS("2023-10-23T12:27:28.948Z") AND millis > "2000-01-01" | SORT nanos DESC ``` | millis:date | nanos:date_nanos | num:long | | ...
unknown
github
https://github.com/elastic/elasticsearch
docs/reference/query-languages/esql/_snippets/functions/examples/to_date_nanos.md
# This file is part of the Minecraft Overviewer. # # Minecraft Overviewer is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as published # by the Free Software Foundation, either version 3 of the License, or (at # your option) any later version...
unknown
codeparrot/codeparrot-clean
""" Support for RSS/Atom feeds. For more details about this component, please refer to the documentation at https://home-assistant.io/components/feedreader/ """ from datetime import datetime, timedelta from logging import getLogger from os.path import exists from threading import Lock import pickle import voluptuous ...
unknown
codeparrot/codeparrot-clean
import pickle import time import uuid import redis import six from flask import _request_ctx_stack, request, abort from jinja2 import Markup try: from uwsgi import async_sleep as sleep except ImportError: try: from gevent import sleep except ImportError: try: from tornado.gen i...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python2 # You may redistribute this program and/or modify it under the terms of # the GNU General Public License as published by the Free Software Foundation, # either version 3 of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # bu...
unknown
codeparrot/codeparrot-clean
--- navigation_title: "Disjunction max" mapped_pages: - https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-dis-max-query.html --- # Disjunction max query [query-dsl-dis-max-query] Returns documents matching one or more wrapped queries, called query clauses or clauses. If a returned document ...
unknown
github
https://github.com/elastic/elasticsearch
docs/reference/query-languages/query-dsl/query-dsl-dis-max-query.md
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corporation, 2021 * * Author: Mike Rapoport <rppt@linux.ibm.com> */ #include <linux/mm.h> #include <linux/fs.h> #include <linux/swap.h> #include <linux/mount.h> #include <linux/memfd.h> #include <linux/bitops.h> #include <linux/printk.h> #include <linux/pagema...
c
github
https://github.com/torvalds/linux
mm/secretmem.c
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2005-2012, Industrial Light & Magic, a division of Lucas // Digital Ltd. LLC // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that th...
c
github
https://github.com/opencv/opencv
3rdparty/openexr/IlmThread/IlmThread.h
import os import osutil import util import _winreg def systemrcpath(): '''return default os-specific hgrc search path''' rcpath = [] filename = util.executablepath() # Use mercurial.ini found in directory with hg.exe progrc = os.path.join(os.path.dirname(filename), 'mercurial.ini') if os.path.i...
unknown
codeparrot/codeparrot-clean
{ "kind": "Dashboard", "apiVersion": "dashboard.grafana.app/v2beta1", "metadata": { "name": "v3.no-op.v42" }, "spec": { "annotations": [ { "kind": "AnnotationQuery", "spec": { "query": { "kind": "DataQuery", "group": "grafana", "versi...
json
github
https://github.com/grafana/grafana
apps/dashboard/pkg/migration/conversion/testdata/migrated_dashboards_output/v1beta1-mig-v3.no-op.v42.v2beta1.json
# -*- coding: utf-8 -*- ################################################################################ # Copyright (C) 2009 Johan Liebert, Mantycore, Hedger, Rusanon # # < anoma.team@gmail.com ; http://orphereus.anoma.ch > # # ...
unknown
codeparrot/codeparrot-clean
benchmark: vm_ivar_set: | @a = 1 @b = 2 loop_count: 30000000
unknown
github
https://github.com/ruby/ruby
benchmark/vm_ivar_set.yml
# -*- coding: utf-8 -*- """ *************************************************************************** QtWebKit.py --------------------- Date : November 2015 Copyright : (C) 2015 by Matthias Kuhn Email : matthias at opengis dot ch *************************...
unknown
codeparrot/codeparrot-clean
from __future__ import division, absolute_import, print_function import numpy as np from numpy.testing import ( run_module_suite, TestCase, assert_, assert_almost_equal, assert_allclose ) class TestFinancial(TestCase): def test_rate(self): assert_almost_equal(np.rate(10, 0, -3500, 10000), ...
unknown
codeparrot/codeparrot-clean
// Copyright IBM Corp. 2016, 2025 // SPDX-License-Identifier: BUSL-1.1 package userpass import ( "context" "fmt" "github.com/hashicorp/vault/sdk/framework" "github.com/hashicorp/vault/sdk/helper/policyutil" "github.com/hashicorp/vault/sdk/helper/tokenutil" "github.com/hashicorp/vault/sdk/logical" ) func pathU...
go
github
https://github.com/hashicorp/vault
builtin/credential/userpass/path_user_policies.go
// This escapeHtml utility is based on https://github.com/zertosh/htmlescape // License: https://github.com/zertosh/htmlescape/blob/0527ca7156a524d256101bb310a9f970f63078ad/LICENSE // We've chosen to inline the utility here to reduce the number of npm dependencies we have, // slightly decrease the code size compared t...
typescript
github
https://github.com/remix-run/react-router
packages/react-router/lib/dom/ssr/markup.ts
""" Run with 'python -m horsephrase._regen_words > horsephrase/words.txt' - Stop allowing words less than 3 characters; if we have the possibility of words that short, it's trivially possible to attack the password as letters rather than as selections from this list. - Add words (both sourced from https://norvig....
unknown
codeparrot/codeparrot-clean
// SPDX-License-Identifier: GPL-2.0-or-later /* * The AEGIS-128 Authenticated-Encryption Algorithm * * Copyright (c) 2017-2018 Ondrej Mosnacek <omosnacek@gmail.com> * Copyright (C) 2017-2018 Red Hat, Inc. All rights reserved. */ #include <crypto/algapi.h> #include <crypto/internal/aead.h> #include <crypto/interna...
c
github
https://github.com/torvalds/linux
crypto/aegis128-core.c
# Copyright (c) 2015, Nordic Semiconductor # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions ...
unknown
codeparrot/codeparrot-clean
import os from django import forms from django.utils.translation import gettext_lazy as _ class DeniedNameAddForm(forms.Form): """Form for adding denied names in bulk fashion.""" names = forms.CharField(widget=forms.Textarea(attrs={'cols': 40, 'rows': 16})) def clean_names(self): names = os.line...
unknown
codeparrot/codeparrot-clean
/* * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ package io.ktor.server.plugins.di import io.ktor.util.reflect.loadServices import io.ktor.utils.io.InternalAPI import kotlinx.coroutines.runBlocking @OptIn(InternalAPI::class) internal actua...
kotlin
github
https://github.com/ktorio/ktor
ktor-server/ktor-server-plugins/ktor-server-di/jvm/src/io/ktor/server/plugins/di/DependencyResolution.jvm.kt
# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This file is part of logilab-common. # # logilab-common is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as publ...
unknown
codeparrot/codeparrot-clean
#!/bin/sh # # Copyright (c) 2007 Kristian Høgsberg <krh@redhat.com> # # FIXME: Test the various index usages, test reflog test_description='git commit' GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME . ./test-lib.sh . "$TEST_DIRECTORY/lib-diff.sh" author='The Real Author <someg...
unknown
github
https://github.com/git/git
t/t7501-commit-basic-functionality.sh
<!DOCTYPE html> <html> <head> <title>Welcome to nginx!</title> <style> html { color-scheme: light dark; } body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; } </style> </head> <body> <h1>Welcome to nginx!</h1> <p>If you see this page, the nginx web server is successfully installed and ...
html
github
https://github.com/nginx/nginx
docs/html/index.html
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
unknown
codeparrot/codeparrot-clean
# NixConfig # Copyright (c) 2017 Mark Biciunas. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is d...
unknown
codeparrot/codeparrot-clean
# Copyright: Damien Elmes <anki@ichi2.net> # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import os import re from aqt.qt import * import aqt from aqt.utils import getSaveFile, tooltip, showWarning, askUser, \ checkInvalidFilename from anki.exporting import exporters class Export...
unknown
codeparrot/codeparrot-clean
package v0alpha1 // Used in OpenAPI generation to ensure the correct package is used for the generated schema const OpenAPIPrefix = "com.github.grafana.grafana.apps.dashboard.pkg.apis.dashboard.v0alpha1." // This is like the legacy DTO where access and metadata are all returned in a single call // +k8s:deepcopy-gen=t...
go
github
https://github.com/grafana/grafana
apps/dashboard/pkg/apis/dashboard/v0alpha1/types.go
''' Some utility classes for exception handling of exceptions raised within listeners: - IExcHandler: base class for any handler that would be given to pub.setListenerExcHandler(). The derived class will probably want to make use of TracebackInfo. - TracebackInfo: convenient way of getting stack trace of latest ...
unknown
codeparrot/codeparrot-clean
from distutils.command.build_ext import build_ext as _du_build_ext try: # Attempt to use Pyrex for building extensions, if available from Pyrex.Distutils.build_ext import build_ext as _build_ext except ImportError: _build_ext = _du_build_ext import os, sys from distutils.file_util import copy_file from set...
unknown
codeparrot/codeparrot-clean
import { x } from "./dep?d"; export default class def { method() { return x; } }
javascript
github
https://github.com/webpack/webpack
test/cases/inner-graph/export-default-named/d.js
//! Code to load the dep-graph from files. use std::path::{Path, PathBuf}; use std::sync::Arc; use rustc_data_structures::memmap::Mmap; use rustc_data_structures::unord::UnordMap; use rustc_hashes::Hash64; use rustc_middle::dep_graph::{DepGraph, DepsType, SerializedDepGraph, WorkProductMap}; use rustc_middle::query::...
rust
github
https://github.com/rust-lang/rust
compiler/rustc_incremental/src/persist/load.rs
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
unknown
codeparrot/codeparrot-clean
#- # Copyright (c) 2011 Robert N. M. Watson # All rights reserved. # # This software was developed by SRI International and the University of # Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237 # ("CTSRD"), as part of the DARPA CRASH research programme. # # @BERI_LICENSE_HEADER_START@ # # License...
unknown
codeparrot/codeparrot-clean
<?php // autoload_classmap.php @generated by Composer $vendorDir = dirname(__DIR__); $baseDir = dirname(dirname($vendorDir)); return array( 'ClassMapFoo' => $baseDir . '/composersrc/foo.php', 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', );
php
github
https://github.com/composer/composer
tests/Composer/Test/Autoload/Fixtures/autoload_classmap2.php
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
unknown
codeparrot/codeparrot-clean
__author__ = 'Joseph' from selenium import webdriver import unittest class NewVisitorTest(unittest.TestCase): def setUp(self): self._browser = webdriver.Firefox() self._browser.implicitly_wait(3) def tearDown(self): self._browser.quit() def test_can_read_faq_and_documentation(se...
unknown
codeparrot/codeparrot-clean
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Cgo call and callback support. // // To call into the C function f from Go, the cgo-generated code calls // runtime.cgocall(_cgo_Cfunc_f, frame), where _cgo_...
go
github
https://github.com/golang/go
src/runtime/cgocall.go
# Server-Internal Baton Pattern Batons are lightweight job queues in _mongod_ and _mongos_ processes that allow recording the intent to execute a task (e.g., polling on a network socket) and deferring its execution to a later time. Batons, often by reusing `Client` threads and through the _Waitable_ interface, move th...
unknown
github
https://github.com/mongodb/mongo
docs/baton.md
# Copyright 2015 Cisco Systems, Inc. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
unknown
codeparrot/codeparrot-clean
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
unknown
codeparrot/codeparrot-clean
"""Module to give helpful messages to the user that did not compile scikit-learn properly. """ # Authors: The scikit-learn developers # SPDX-License-Identifier: BSD-3-Clause import os INPLACE_MSG = """ It appears that you are importing a local scikit-learn source tree. For this, you need to have an inplace install. ...
python
github
https://github.com/scikit-learn/scikit-learn
sklearn/__check_build/__init__.py
#!/usr/bin/python # # Copyright (c) 2009 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of ...
unknown
codeparrot/codeparrot-clean
--- MainSourceFile: ignore-conflict.cpp Diagnostics: - DiagnosticName: test-ignore-conflict-insertion DiagnosticMessage: Message: Fix FilePath: $(path)/ignore-conflict.cpp FileOffset: 0 Replacements: - FilePath: $(path)/ignore-conflict.cpp Offset: 0 ...
unknown
github
https://github.com/llvm/llvm-project
clang-tools-extra/test/clang-apply-replacements/Inputs/ignore-conflict/file1.yaml
# -*- coding: utf-8 -*- # # forms_settings.py - Settings Flask Forms # from flask_babel import lazy_gettext from flask_wtf import FlaskForm from wtforms import BooleanField from wtforms import DecimalField from wtforms import FileField from wtforms import IntegerField from wtforms import PasswordField from wtforms imp...
unknown
codeparrot/codeparrot-clean
import subprocess import os import oe.path import oe.process import bb.fetch, bb.data class PatchError(Exception): def __init__(self, msg): self.msg = msg def __str__(self): return "Patch Error: %s" % self.msg class PatchSet(object): defaults = { "strippath": 1 } def __in...
unknown
codeparrot/codeparrot-clean
# frozen_string_literal: true require "active_support/core_ext/hash/keys" module ActiveModel module AttributeAssignment include ActiveModel::ForbiddenAttributesProtection # Allows you to set all the attributes by passing in a hash of attributes with # keys matching the attribute names. # # If t...
ruby
github
https://github.com/rails/rails
activemodel/lib/active_model/attribute_assignment.rb
import etcd from tendrl.commons import objects from tendrl.commons.objects import AtomExecutionFailedError from tendrl.commons.utils import etcd_utils from tendrl.commons.utils import log_utils as logger class IsNodeTendrlManaged(objects.BaseAtom): def __init__(self, *args, **kwargs): super(IsNodeTendrlMa...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python """ This module runs toposub_gridTS.R Example: as import: Attributes:$gridpath $Nclust $file1 $targV Todo: """ path2script = "./rsrc/toposub_gridTS.R" # main def main(gridpath, Nclust, file1, targV): """Main entry point for the script.""" run_rscript_fileout(path2script,[gridpa...
unknown
codeparrot/codeparrot-clean
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html #include "precomp.hpp" #include "opencl_kernels_core.hpp" #include "stat.hpp" #include "has_non_zero.simd.hpp" #include "has_...
cpp
github
https://github.com/opencv/opencv
modules/core/src/has_non_zero.dispatch.cpp
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals from __future__ import unicode_literals import frappe import unittest from erpnext.projects.doctype.time_log.time_log import OverlapError from erpnext....
unknown
codeparrot/codeparrot-clean
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may n...
java
github
https://github.com/apache/kafka
clients/src/test/java/org/apache/kafka/common/security/oauthbearer/OAuthBearerValidatorCallbackHandlerTest.java
--- c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. SPDX-License-Identifier: curl Long: proto-default Help: Use PROTOCOL for any URL missing a scheme Arg: <protocol> Added: 7.45.0 Category: connection curl Multi: single See-also: - proto - proto-redir Example: - --proto-default https ftp.example.com --...
unknown
github
https://github.com/curl/curl
docs/cmdline-opts/proto-default.md
import { test } from '../../test'; export default test({ html: '<main>test</main>' });
javascript
github
https://github.com/sveltejs/svelte
packages/svelte/tests/runtime-legacy/samples/deconflict-template-3/_config.js
{ "values": { "id": { "string": "70c47571-66c3-b1dc-2474-47a74b9c7886" }, "string": { "string": "Hello, world!" } } }
json
github
https://github.com/hashicorp/terraform
testing/equivalence-tests/tests/moved_simple/terraform.resource/70c47571-66c3-b1dc-2474-47a74b9c7886.json
# -*- coding: utf-8 -*- import re import codecs import logging import sys, errno, os logging.basicConfig(level=logging.INFO) f = codecs.open(sys.argv[1], "r", "utf-8") outdir = 'target/test' if not os.path.exists(outdir): os.makedirs(outdir) o = codecs.open(outdir + '/Language-utf8encoded.properties', "w", "UTF-8"...
unknown
codeparrot/codeparrot-clean
type Props = { children: string; }; export default function PostTitle({ children }: Props) { return ( <h1 className="text-6xl md:text-7xl lg:text-8xl font-bold tracking-tighter leading-tight md:leading-none mb-12 text-center md:text-left" dangerouslySetInnerHTML={{ __html: children }} /> ); }
typescript
github
https://github.com/vercel/next.js
examples/cms-enterspeed/components/post-title.tsx
#!/usr/bin/env python # # strings-import.py project.xcodeproj strings-directory # import glob import os import sys from mod_pbxproj import XcodeProject, PBXFileReference, PBXBuildFile, PBXVariantGroup TARGETS = { "Client": {"path": "Client"}, "ShareTo": {"path": "Extensions/ShareTo"}, "SendTo": ...
unknown
codeparrot/codeparrot-clean
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # from __future__ import unicode_literals # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j E Y' TIME_FORMAT = 'H:i' DATETI...
unknown
codeparrot/codeparrot-clean
from __future__ import unicode_literals import io import optparse import os.path import re ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) README_FILE = os.path.join(ROOT_DIR, 'README.md') PREFIX = r'''%YOUTUBE-DL(1) # NAME youtube\-dl \- download videos from youtube.com or other video platf...
unknown
codeparrot/codeparrot-clean
name: "\U0001F41E Bug report" description: Create a report to help us improve body: - type: markdown attributes: value: | **Before You Start...** This form is only for submitting bug reports. If you have a usage question or are unsure if this is really a bug, make sure to: ...
unknown
github
https://github.com/vuejs/core
.github/ISSUE_TEMPLATE/bug_report.yml
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from __future__ import unicode_literals import os import re import subprocess from collections import defaultdict from...
unknown
codeparrot/codeparrot-clean
from __future__ import unicode_literals import os import random import contextlib import shutil import pytest import tempfile from pathlib import Path import pathlib from ...gold import GoldParse from ...pipeline import EntityRecognizer from ...language import Language try: unicode except NameError: unicode =...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python """ @note Source http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66448 """ import itertools import functools import datetime import types import array import random def ordered_itr(collection): """ >>> [v for v in ordered_itr({"a": 1, "b": 2})] [('a', 1), ('b', 2)] >>> [v for v in o...
unknown
codeparrot/codeparrot-clean
//===--- ArraySemantic.h - Wrapper around array semantic calls. -*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
c
github
https://github.com/apple/swift
include/swift/SILOptimizer/Analysis/ArraySemantic.h
use rustc_ast::{self as ast, MetaItem, Safety}; use rustc_data_structures::fx::FxHashSet; use rustc_expand::base::{Annotatable, ExtCtxt}; use rustc_span::{Span, sym}; use thin_vec::{ThinVec, thin_vec}; use crate::deriving::generic::ty::*; use crate::deriving::generic::*; use crate::deriving::path_std; pub(crate) fn e...
rust
github
https://github.com/rust-lang/rust
compiler/rustc_builtin_macros/src/deriving/cmp/eq.rs
##################################################################### # -*- coding: iso-8859-1 -*- # # # # Frets on Fire # # Copyright (C) 2006 Sami Kyöstilä ...
unknown
codeparrot/codeparrot-clean
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
python
github
https://github.com/apache/airflow
airflow-core/src/airflow/api_fastapi/common/headers.py
/* * Copyright 2012-present the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
java
github
https://github.com/spring-projects/spring-boot
buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/configuration/package-info.java
# Copyright (C) 2017 Lenovo, Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansi...
unknown
codeparrot/codeparrot-clean
#! /usr/bin/env python # -*- coding: utf-8 -*- """Use finances.gouv.fr web simulator as an API to compute income taxes.""" import argparse import collections import logging import os import sys import urllib2 from lxml import etree app_name = os.path.splitext(os.path.basename(__file__))[0] log = logging.getLogger(a...
unknown
codeparrot/codeparrot-clean
# # Code Coverage # Copyright (C) 2006 Pedram Amini <pedram.amini@gmail.com> # # $Id: code_coverage.py 193 2007-04-05 13:30:01Z cameron $ # # This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation; either v...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python import time import random import re import subprocess import signal import sys import os multiplier = float(os.environ.get('SLOWNESS', 1)) def run(cmd, **kwargs): p = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.PIP...
unknown
codeparrot/codeparrot-clean
"""Contains UI methods for LE user operations.""" import logging import os import zope.component from letsencrypt import interfaces from letsencrypt import le_util from letsencrypt.display import util as display_util logger = logging.getLogger(__name__) # Define a helper function to avoid verbose code util = zope.c...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python3 import argparse import collections import json import string import sys header_template = """ #ifndef ASPARSERATIONS_GENERATED_${class_name}_H_ #define ASPARSERATIONS_GENERATED_${class_name}_H_ #include <array> #include <map> #include <memory> #include <set> #include <utility> #include <vector> $h...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # # pdepen.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; wi...
unknown
codeparrot/codeparrot-clean
# sqlalchemy/log.py # Copyright (C) 2006-2017 the SQLAlchemy authors and contributors # <see AUTHORS file> # Includes alterations by Vinay Sajip vinay_sajip@yahoo.co.uk # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Logging control a...
unknown
codeparrot/codeparrot-clean
# coding=utf-8 __author__ = 'xubinggui' import os, re, time, base64, hashlib, logging from transwarp.web import get, post, ctx, view, interceptor, seeother, notfound from apis import api, Page, APIError, APIValueError, APIPermissionError, APIResourceNotFoundError from models import User, Blog, Comment from config i...
unknown
codeparrot/codeparrot-clean
############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public L...
unknown
codeparrot/codeparrot-clean
import d from "./module1"; export default d;
javascript
github
https://github.com/webpack/webpack
test/cases/entry-exports-field/self/module2.js
# Copyright 2009-2014 Justin Riley # # This file is part of StarCluster. # # StarCluster is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation, either version 3 of the License, or (at your option) any # later ...
unknown
codeparrot/codeparrot-clean
/*! ripgrep, as a library. This library is intended to provide a high level facade to the crates that make up ripgrep's core searching routines. However, there is no high level documentation available yet guiding users on how to fit all of the pieces together. Every public API item in the constituent crates is docume...
rust
github
https://github.com/BurntSushi/ripgrep
crates/grep/src/lib.rs
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
unknown
codeparrot/codeparrot-clean
import itertools import os import posixpath import sys import unittest import warnings from posixpath import realpath, abspath, dirname, basename from test import support, test_genericpath try: import posix except ImportError: posix = None # An absolute path to a temporary filename for testing. We can't rely ...
unknown
codeparrot/codeparrot-clean
import utils from exceptions import MethodException class Arg(object): """ The base placeholder argument class There is no reason to use this class directly and really only exists to do some type checking on classes that inherit from it """ pass class RequestArg(Arg): """ Plac...
unknown
codeparrot/codeparrot-clean
package kotlinx.coroutines import kotlinx.coroutines.testing.* import org.junit.Test import java.util.concurrent.* import kotlin.coroutines.* import kotlin.test.* class LimitedParallelismUnhandledExceptionTest : TestBase() { @Test fun testUnhandledException() = runTest { var caughtException: Throwabl...
kotlin
github
https://github.com/Kotlin/kotlinx.coroutines
kotlinx-coroutines-core/jvm/test/LimitedParallelismUnhandledExceptionTest.kt
from sklearn.model_selection import KFold from lgb import lgbm_train # import xgboost as xgb from functools import reduce import numpy as np # from keras_train import keras_train # import gensim # from RCNN_Keras import get_word2vec, RCNN_Model # from RNN_Keras import RNN_Model from CNN_Keras import CNN_Model, get_word...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python __author__ = 'Mike McCann' __copyright__ = '2012' __license__ = 'GPL v3' __contact__ = 'mccann at mbari.org' __doc__ = ''' Master loader for all May 2012 CANON activities. Mike McCann MBARI 21 AUgust 2012 @var __date__: Date of last svn commit @undocumented: __doc__ parser @status: produ...
unknown
codeparrot/codeparrot-clean
import { Links, Meta, Outlet, ScrollRestoration } from "react-router"; export default function App() { return ( <html lang="en"> <head> <meta charSet="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <Meta /> <Links /> </head> <bod...
typescript
github
https://github.com/remix-run/react-router
integration/helpers/rsc-vite-framework/app/root.tsx
extension Validator where T: OptionalType { /// Validates that the data is `nil`. Combine with the not-operator `!` to validate that the data is not `nil`. public static var `nil`: Validator<T> { .init { ValidatorResults.Nil(isNil: $0.wrapped == nil) } } } extension ValidatorResults { /// `ValidatorResult`...
swift
github
https://github.com/vapor/vapor
Sources/Vapor/Validation/Validators/Nil.swift
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2015, Hans-Joachim Kliemeck <git@kliemeck.de> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # this is a windows documentation stub. actual code lives in the .ps1 # file of the same name ANSIBLE_METADATA = {'met...
unknown
codeparrot/codeparrot-clean