code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2004, 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 the fol...
c
github
https://github.com/opencv/opencv
3rdparty/openexr/IlmImf/ImfRgbaFile.h
"""Flask server info view for inspecting server app and user requests.""" __all__ = 'setup view dumps logging_info logger_info server_info JSONEncoder'.split() __version__ = '0.1.2' import flask from flask import json, Flask, Request, Response from logging import Logger, getLogger, root from werkzeug.local import Loc...
unknown
codeparrot/codeparrot-clean
// RUN: %check_clang_tidy -std=c++11,c++14,c++17 %s cppcoreguidelines-pro-type-member-init %t -- -- -fno-delayed-template-parsing // FIXME: Fix the checker to work in C++20 mode. struct PositiveFieldBeforeConstructor { int F; // CHECK-FIXES: int F{}; PositiveFieldBeforeConstructor() {} // CHECK-MESSAGES: :[[@L...
cpp
github
https://github.com/llvm/llvm-project
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/pro-type-member-init.cpp
#!/usr/bin/env bash # Copyright (c) HashiCorp, Inc. # SPDX-License-Identifier: BUSL-1.1 # # This script builds the application from source for multiple platforms. # Get the parent directory of where this script is. SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done DIR="$( cd ...
unknown
github
https://github.com/hashicorp/terraform
scripts/build.sh
import { registerServerReference } from "private-next-rsc-server-reference"; import { cache as $$cache__ } from "private-next-rsc-cache-wrapper"; import { cache as $$reactCache__ } from "react"; // shadow the builtin Object global (used in transform output) /* __next_internal_action_entry_do_not_use__ {"803128060c414d5...
javascript
github
https://github.com/vercel/next.js
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/71/output.js
// Copyright IBM Corp. 2016, 2025 // SPDX-License-Identifier: BUSL-1.1 package vault import ( "context" "crypto/hmac" "crypto/sha256" "encoding/base64" "encoding/json" "errors" "fmt" "net/http" "regexp" "strings" "sync" "sync/atomic" "time" "github.com/armon/go-metrics" "github.com/armon/go-radix" "g...
go
github
https://github.com/hashicorp/vault
vault/token_store.go
// errorcheck -t 10 // Copyright 2021 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. package p // The init cycle diagnosis used to take exponential time // to traverse the call graph paths. This test case takes // at least ...
go
github
https://github.com/golang/go
test/initexp.go
# Copyright 2023 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...
python
github
https://github.com/tensorflow/tensorflow
tensorflow/compiler/tests/mean_op_test.py
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2017, Ansible by Red Hat, inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
unknown
codeparrot/codeparrot-clean
/* * Copyright (C) 2008 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
java
github
https://github.com/google/guava
android/guava-testlib/src/com/google/common/testing/TestLogHandler.java
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Related to AboutOpenClasses in the Ruby Koans # from runner.koan import * class AboutMonkeyPatching(Koan): class Dog(object): def bark(self): return "WOOF" def test_as_defined_dogs_do_bark(self): fido = self.Dog() self.ass...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # This file is part of Shoop. # # Copyright (c) 2012-2015, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. from __future__ import unicode_literals import logging from django import ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- from collections import Counter import cPickle as pickle import heapq import nltk import numpy as np from sklearn.svm import SVC, LinearSVC from sklearn.grid_search import RandomizedSearchCV from hazm import Normalizer, Stemmer, word_tokenize #from hazm.HamshahriReader import HamshahriReader i...
unknown
codeparrot/codeparrot-clean
# 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
#!/usr/bin/env python import glob,os,re,urllib from numpy import * from array import * from odsread import odsread try:import ROOT except:print "Error!! pyroot didn't compiled! please recompile your root!" #find harp peak from raw harp scan data file and generate rootfile for all raw files def genharppeak(datapath,roo...
unknown
codeparrot/codeparrot-clean
const {mutate} = require('shared-runtime'); function Component(props) { const x = {}; const y = props.y; const z = [x, y]; mutate(z); // x's object identity can change bc it co-mutates with z, which is reactive via props.y return [x]; } export const FIXTURE_ENTRYPOINT = { fn: Component, params: [{y: 4...
javascript
github
https://github.com/facebook/react
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reactive-dependency-object-captured-with-reactive-mutated.js
# -*- coding: utf-8 -*- from __future__ import unicode_literals import gettext import os from datetime import datetime, timedelta from importlib import import_module from unittest import skipIf from django import forms from django.conf import settings from django.contrib import admin from django.contrib.admin import ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2012, 2013 CERN. ## ## Invenio 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 2 of the ## License, or (at your opt...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python """ Retrieve a packet from a wireshark/tshark core file and save it in a packet-capture file. """ # Copyright (C) 2013 by Gilbert Ramirez <gram@alumni.rice.edu> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as pub...
unknown
codeparrot/codeparrot-clean
/* Copyright 2022 - 2025 R. Thomas * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
unknown
github
https://github.com/nodejs/node
deps/LIEF/include/LIEF/DWARF/types/Interface.hpp
import numpy as np import pandas as pd import ibis import ibis.expr.datatypes as dt from ibis.backends.pandas.udf import udf def make_t(name='t'): return ibis.table( ( ('_timestamp', 'int32'), ('dim1', 'int32'), ('dim2', 'int32'), ('valid_seconds', 'int32'),...
unknown
codeparrot/codeparrot-clean
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bridge\PhpUnit; use PHPUnit\Framework\Constraint\Constraint; $...
php
github
https://github.com/symfony/symfony
src/Symfony/Bridge/PhpUnit/ConstraintTrait.php
# # 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. # # Ansible is distributed in the hope tha...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python import os, hmac, hashlib, collections import ecdsa, utils, network from network import Network from privkey import PrivateKey from hdpubkey import HDPublicKey from utils.intbytes import int_from_bytes, int_to_bytes, to_bytes # TODO: should be in networks.py # TODO: check which of these are networ...
unknown
codeparrot/codeparrot-clean
import os from distutils import log from setuptools import Command from pex.bin.pex import build_pex, configure_clp from pex.common import die from pex.compatibility import ConfigParser, StringIO, string from pex.variables import ENV # Suppress checkstyle violations due to setuptools command requirements. class bdis...
unknown
codeparrot/codeparrot-clean
//go:build !windows package libnetwork import ( "fmt" "strconv" "time" "github.com/moby/moby/v2/daemon/libnetwork/ipams/defaultipam" "github.com/moby/moby/v2/daemon/libnetwork/netlabel" "github.com/moby/moby/v2/daemon/libnetwork/osl" "github.com/moby/moby/v2/daemon/network" ) type platformNetwork struct{} //...
go
github
https://github.com/moby/moby
daemon/libnetwork/network_unix.go
#!/usr/bin/env python # Copyright (c) 2009 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Test variable expansion of '<!()' syntax commands. """ import os import TestGyp test = TestGyp.TestGyp(format='gypd') expect = test....
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python from DCList import DCList class StackList(DCList): """ StackList Class """ def __init__(self): """ Constructor Calls init from DCList """ DCList.__init__(self) def push(self, data): """ Push an object onto the StackList :param dat...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Aug 27 12:21:17 2019 @author: zijiazhang """ import itertools import xml.etree.ElementTree as ET from ast import literal_eval as make_tuple from string import Template def findcontain(elem, tag): for child in elem: if tag in child.tag: ...
unknown
codeparrot/codeparrot-clean
from __future__ import division, absolute_import, print_function import sys import collections import pickle from os import path import numpy as np from numpy.compat import asbytes from numpy.testing import ( TestCase, run_module_suite, assert_, assert_equal, assert_array_equal, assert_array_almost_equal, ass...
unknown
codeparrot/codeparrot-clean
"""This file contains code used in "Think Stats", by Allen B. Downey, available from greenteapress.com Copyright 2014 Allen B. Downey License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html """ import sys import thinkstats2 import thinkplot def ReadFile(filename): """Reads a list of numbers from a file. fi...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- ############################################################################## # # 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...
unknown
codeparrot/codeparrot-clean
@charset "UTF-8";/*! * Bootstrap v5.3.8 (https://getbootstrap.com/) * Copyright 2011-2025 The Bootstrap Authors * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */:root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-...
css
github
https://github.com/twbs/bootstrap
dist/css/bootstrap.min.css
#!/usr/bin/env python3 import forth import unittest from forth import cmp_all, is_none from pmlr import pmlr DEBUG = True print = pmlr.util.writer dbg_write = pmlr.util.debug_write class TestUtil(unittest.TestCase): def test_isnone(self): "none-tester" self.assertEqual(is_none(None), True...
unknown
codeparrot/codeparrot-clean
""" Tests for django test runner """ from __future__ import unicode_literals import unittest from admin_scripts.tests import AdminScriptTestCase from django import db from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.management import call_command from django.t...
unknown
codeparrot/codeparrot-clean
# Code of Conduct The Laravel Code of Conduct can be found in the [Laravel documentation](https://laravel.com/docs/contributions#code-of-conduct).
unknown
github
https://github.com/laravel/framework
.github/CODE_OF_CONDUCT.md
""" An example using Amazon's Thread example for motivation http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/SampleTablesAndData.html """ import logging from pynamodb.models import Model from pynamodb.attributes import ( UnicodeAttribute, NumberAttribute, UnicodeSetAttribute, UTCDateTimeAttribute ) ...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import json import datetime import mimetypes import os import frappe from frappe import _ import frappe.model.document import frappe.utils import frappe.sessions import frappe....
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2008 Princeton University # Copyright (c) 2009 Advanced Micro Devices, 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 c...
unknown
codeparrot/codeparrot-clean
// Copyright 2018 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. package math_test import ( . "math" "testing" ) // Inputs to test trig_reduce var trigHuge = []float64{ 1 << 28, 1 << 29, 1 << 30, 1 << 35, 1 << 120, ...
go
github
https://github.com/golang/go
src/math/huge_test.go
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
unknown
codeparrot/codeparrot-clean
from langchain_core.agents import AgentAction def format_log_to_str( intermediate_steps: list[tuple[AgentAction, str]], observation_prefix: str = "Observation: ", llm_prefix: str = "Thought: ", ) -> str: """Construct the scratchpad that lets the agent continue its thought process. Args: in...
python
github
https://github.com/langchain-ai/langchain
libs/langchain/langchain_classic/agents/format_scratchpad/log.py
from sys import argv from os.path import join, dirname, abspath, isdir if len(argv) == 2 and argv[1] == 'repl': # don't want to use __main__ only for repl yet, maybe we want to use it for # something else. So just use the keyword ``repl`` for now. print(join(dirname(abspath(__file__)), 'api', 'replstartup....
unknown
codeparrot/codeparrot-clean
from six import StringIO from greplin import scales from greplin.scales import formats, util from bottle import abort, request, response, run, Bottle import functools def bottlestats(server_name, path=''): """Renders a GET request, by showing this nodes stats and children.""" path = path.lstrip('/') part...
unknown
codeparrot/codeparrot-clean
#ifndef ERROR_NAMES_INCLUDED #define ERROR_NAMES_INCLUDED // Copyright (c) 2018, 2025, Oracle and/or its affiliates. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License, version 2.0, // as published by the Free Software Foundation. // // Th...
c
github
https://github.com/mysql/mysql-server
client/mysqltest/error_names.h
/* * 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
buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/github/GitHubRepository.java
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import flt, fmt_money, getdate, formatdate from frappe import _ from frappe.model.document import Document class GLEn...
unknown
codeparrot/codeparrot-clean
import os, pdb, platform, time, warnings import ctypes as ct import numpy as np if platform.system() == 'Windows': _eigenmat = ct.cdll.LoadLibrary('libeigenmat.dll') elif platform.system() == 'Darwin': _eigenmat = ct.cdll.LoadLibrary('libeigenmat.dylib') else: _eigenmat = ct.cdll.LoadLibrary('libeigenmat.so') _...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # # git-p4.py -- A tool for bidirectional operation between a Perforce depot and git. # # Author: Simon Hausmann <simon@lst.de> # Copyright: 2007 Simon Hausmann <simon@lst.de> # 2007 Trolltech ASA # License: MIT <http://www.opensource.org/licenses/mit-license.php> # import optparse, sy...
unknown
codeparrot/codeparrot-clean
# # Copyright 2014 Red Hat, 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 applicable law or agreed to in writi...
unknown
codeparrot/codeparrot-clean
import sys import re import requests import datetime from collections import namedtuple from bs4 import BeautifulSoup import traceback import pdb import urllib.parse import logging log = logging.getLogger(__name__) VERSION = '0.0' DEFAULT_EXCLUDE_REGEX = [ r'^http:', r'.*\.(mp4|srt|ssa|mp3|avi|mkv)$' ] Redi...
unknown
codeparrot/codeparrot-clean
# -*- Mode: Python; test-case-name: whipper.test.test_common_accurip -*- # vi:si:et:sw=4:sts=4:ts=4 import sys from StringIO import StringIO from os import chmod, makedirs from os.path import dirname, exists, join from shutil import copy, rmtree from tempfile import mkdtemp from unittest import TestCase from whipper....
unknown
codeparrot/codeparrot-clean
import sys sys.path.insert(1, "../../../") import h2o from h2o.expr import Expr def expr_slicing(ip,port): # Connect to h2o h2o.init(ip,port) iris = h2o.import_frame(path=h2o.locate("smalldata/iris/iris_wheader.csv")) iris.show() ###################################################################...
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/main/java/org/apache/kafka/common/security/oauthbearer/JwtValidatorException.java
#define SHARP_s 0xdf
c
github
https://github.com/ruby/ruby
enc/iso_8859.h
# -*- coding: utf-8 -*- # (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2016 Toshio Kuratomi <tkuratomi@ansible.com> # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_functio...
unknown
codeparrot/codeparrot-clean
DOCUMENTATION: name: human_redable version_added: "historical" short_description: Make bytes/bits human-readable description: - Convert byte or bit figures to more human-readable formats. positional: _input, isbits, unit options: _input: description: Number of bytes, or bits. Depends on O(isbi...
unknown
github
https://github.com/ansible/ansible
lib/ansible/plugins/filter/human_readable.yml
''' Copyright (C) 2014 Travis DeWolf 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 distributed in the hope t...
unknown
codeparrot/codeparrot-clean
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
go
github
https://github.com/etcd-io/etcd
tools/benchmark/cmd/root.go
// Copyright 2017, 2018 Peter Dimov. // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #ifndef BOOST_HASH_IS_CONTIGUOUS_RANGE_HPP_INCLUDED #define BOOST_HASH_IS_CONTIGUOUS_RANGE_HPP_INCLUDED #include <boost/container_hash/is_range.hpp> #include <boost/config.hpp> #...
unknown
github
https://github.com/mysql/mysql-server
extra/boost/boost_1_87_0/boost/container_hash/is_contiguous_range.hpp
# 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
from base64 import b64encode from datetime import ( datetime, timedelta, ) from hashlib import md5 import re import struct import zlib try: import simplejson as json except ImportError: import json from webob.byterange import ContentRange from webob.cachecontrol import ( CacheControl, seri...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <headingcell level=2> # Usage of IC 4012 # <codecell> from __future__ import print_function from BinPy import * # <codecell> # Usage of IC 4012: ic = IC_4012() print(ic.__doc__) # <codecell> # The Pin configuration is: inp = {2: 0, 3: 1, 4: 0, 5: 1, 7: 0, ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # ------------------------------------------------------------ # streamondemand.- XBMC Plugin # Canal para seriehd - based on guardaserie channel # http://www.mimediacenter.info/foro/viewforum.php?f=36 # ------------------------------------------------------------ import base64 import re import ...
unknown
codeparrot/codeparrot-clean
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # # Copyright 2007 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 applicable law o...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ *************************************************************************** r_li_shannon_ascii.py --------------------- Date : February 2016 Copyright : (C) 2016 by Médéric Ribreux Email : medspx at medspx dot fr ****************...
unknown
codeparrot/codeparrot-clean
""" Testing for the boost module (sklearn.ensemble.boost). """ import numpy as np from numpy.testing import assert_array_equal from numpy.testing import assert_array_almost_equal from numpy.testing import assert_equal from nose.tools import assert_raises from sklearn.dummy import DummyClassifier from sklearn.dummy im...
unknown
codeparrot/codeparrot-clean
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import mojo_unittest # pylint: disable=E0611 import mojo_system as system class AsyncWaitTest(mojo_unittest.MojoTestCase): def setUp(self): super(As...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # Copyright 2010-2015 RethinkDB, all rights reserved. import os, sys, time sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir, 'common'))) import driver, scenario_common, utils, vcoptparse op = vcoptparse.OptParser() scenario_common.prepare_option_parser_mode...
unknown
codeparrot/codeparrot-clean
--- navigation_title: "Shingle" mapped_pages: - https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-shingle-tokenfilter.html --- # Shingle token filter [analysis-shingle-tokenfilter] Add shingles, or word [n-grams](https://en.wikipedia.org/wiki/N-gram), to a token stream by concatenating adjace...
unknown
github
https://github.com/elastic/elasticsearch
docs/reference/text-analysis/analysis-shingle-tokenfilter.md
"""A client for Modoboa's public API.""" import os import pkg_resources import requests from requests.exceptions import RequestException class ModoAPIClient(object): """A simple client for the public API.""" def __init__(self, api_url=None): """Constructor.""" if api_url is None: ...
unknown
codeparrot/codeparrot-clean
/* * Copyright 2002-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-framework
spring-context/src/test/java/org/springframework/context/annotation/ResourceElementResolverFieldTests.java
/*! * 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...
typescript
github
https://github.com/apache/airflow
airflow-core/src/airflow/ui/src/layouts/Nav/TimezoneSelector.tsx
/* Copyright 2018 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
go
github
https://github.com/kubernetes/kubernetes
cmd/kubeadm/app/phases/certs/renewal/filerenewer.go
#!/usr/bin/python -tt # 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. # # Ansible is distrib...
unknown
codeparrot/codeparrot-clean
from django.http import HttpResponse from django.template import engines from django.template.response import TemplateResponse from django.test import RequestFactory, SimpleTestCase from django.utils.decorators import classproperty, decorator_from_middleware class ProcessViewMiddleware(object): def process_view(se...
unknown
codeparrot/codeparrot-clean
# SPDX-License-Identifier: GPL-2.0 %YAML 1.2 --- $id: http://devicetree.org/schemas/mmc/mmc-controller.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: MMC Controller Common Properties maintainers: - Ulf Hansson <ulf.hansson@linaro.org> description: These properties are common to multiple MMC ...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/mmc/mmc-controller.yaml
/* * Copyright 2010-2025 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.analysis.api.renderer.declarations.renderers.callables import org.jetbrains.kotl...
kotlin
github
https://github.com/JetBrains/kotlin
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/renderers/callables/KaCallableReturnTypeRenderer.kt
/* Copyright 2021 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 applicable law or a...
c
github
https://github.com/tensorflow/tensorflow
tensorflow/core/tpu/kernels/tpu_ordinal_selector.h
/* Copyright 2013 Google Inc. All Rights Reserved. Distributed under MIT license. See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Heuristics for deciding about the UTF8-ness of strings. */ #include "utf8_util.h" #include "../common/platform.h" #if defined(__cplusplus) || defi...
c
github
https://github.com/nodejs/node
deps/brotli/c/enc/utf8_util.c
# # Copyright (C) 2012, IBM Corporation # # 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 2 of the License, or # (at your option) any later version. # # This program is distribute...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python3 # Copyright (c) 2016-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test version bits warning system. Generate chains with block versions that appear to be signalling unk...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # Test whether a SUBSCRIBE to a topic with QoS 2 results in the correct SUBACK packet. import inspect, os, sys # From http://stackoverflow.com/questions/279237/python-import-a-module-from-a-folder cmd_subfolder = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspect.getfile( inspec...
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...
unknown
codeparrot/codeparrot-clean
/* * 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
core/spring-boot-test/src/test/java/org/springframework/boot/test/web/server/LocalManagementPortTests.java
""" Blueprint which provides the RESTful web API for JPER """ from flask import Blueprint, make_response, url_for, request, abort, redirect, current_app from flask import stream_with_context, Response import json, csv from octopus.core import app from octopus.lib import webapp, dates from flask.ext.login import login_u...
unknown
codeparrot/codeparrot-clean
/* * Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.analysis.api.fir.test.cases.generated.cases.components.symbolDeclarationRenderer;...
java
github
https://github.com/JetBrains/kotlin
analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/symbolDeclarationRenderer/FirIdeNormalAnalysisSourceModuleSymbolRenderingByReferenceTestGenerated.java
from __future__ import unicode_literals import collections import io import zlib from .compat import compat_str from .utils import ( ExtractorError, struct_unpack, ) def _extract_tags(file_contents): if file_contents[1:3] != b'WS': raise ExtractorError( 'Not an SWF file; header is %r'...
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...
json
github
https://github.com/apache/kafka
clients/src/main/resources/common/message/DescribeShareGroupOffsetsRequest.json
""" Copyright (C) 2016,2019 Jakub Krajniak <jkrajniak@gmail.com> This file is part of bakery. Bakery 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...
unknown
codeparrot/codeparrot-clean
# Jenkins Jenkins is no longer in use, please see the [test-infra repo][test-infra] and in particular [Prow][prow] instead. This directory contains some scripts that are still used by the new CI. [test-infra]: https://github.com/kubernetes/test-infra [prow]: https://github.com/kubernetes/test-infra/tree/master/prow
unknown
github
https://github.com/kubernetes/kubernetes
hack/jenkins/README.md
<?php namespace Illuminate\Cache\Events; class WritingManyKeys extends CacheEvent { /** * The keys that are being written. * * @var mixed */ public $keys; /** * The value that is being written. * * @var mixed */ public $values; /** * The number of sec...
php
github
https://github.com/laravel/framework
src/Illuminate/Cache/Events/WritingManyKeys.php
################################################################################ # 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...
unknown
codeparrot/codeparrot-clean
# Title Date: 2025-09-22 Status: proposed ## Context We want it to be easy to add observability to production React Router applications. This involves the ability to add logging, error reporting, and performance tracing to your application on both the server and the client. We always had a good story for user-faci...
unknown
github
https://github.com/remix-run/react-router
decisions/0015-observability.md
/* Copyright (c) 2012, 2025, Oracle and/or its affiliates. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is designed to work with certain software (including...
c
github
https://github.com/mysql/mysql-server
libmysql/mysql_trace.h
# Pizza.py toolkit, www.cs.sandia.gov/~sjplimp/pizza.html # Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories # # Copyright (2005) Sandia Corporation. Under the terms of Contract # DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains # certain rights in this software. This software is...
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. // Malloc small size classes. // // See malloc.go for overview. // See also mksizeclasses.go for how we decide what size classes to use. package runtime impor...
go
github
https://github.com/golang/go
src/runtime/msize.go
// 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. // Copyright (C) 2025, Institute of Software, Chinese Academy of Sciences. #include "rvv_hal.hpp" #include "common.hpp" nam...
cpp
github
https://github.com/opencv/opencv
hal/riscv-rvv/src/imgproc/sep_filter.cpp