code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
{ "kind": "Dashboard", "apiVersion": "dashboard.grafana.app/v2alpha1", "metadata": { "name": "v40.refresh_false.v42" }, "spec": { "annotations": [ { "kind": "AnnotationQuery", "spec": { "datasource": { "type": "grafana", "uid": "-- Grafana --" ...
json
github
https://github.com/grafana/grafana
apps/dashboard/pkg/migration/conversion/testdata/migrated_dashboards_output/v1beta1-mig-v40.refresh_false.v42.v2alpha1.json
from __future__ import unicode_literals, division, absolute_import from builtins import * # noqa pylint: disable=unused-import, redefined-builtin import copy import base64 import os import json import sys import logging import threading import traceback from time import sleep import binascii import cherrypy import ...
unknown
codeparrot/codeparrot-clean
import datetime import json import unittest from django import forms from django.contrib.postgres import forms as pg_forms, fields as pg_fields from django.contrib.postgres.validators import RangeMaxValueValidator, RangeMinValueValidator from django.core import exceptions, serializers from django.db import connection ...
unknown
codeparrot/codeparrot-clean
# Copyright 2014-2017 The ODL contributors # # This file is part of ODL. # # 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 https://mozilla.org/MPL/2.0/. """Tests for the factory functions to create...
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-aop/src/main/java/org/springframework/aop/framework/CglibAopProxy.java
""" These classes define the ORM models to be used by sqlalchemy for the user database """ from sqlalchemy import Column, Integer, Text, ForeignKey, DateTime, Boolean from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship from dataactcore.utils.timeStampMixin import TimeStampBa...
unknown
codeparrot/codeparrot-clean
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import errno import ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2014 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 ...
unknown
codeparrot/codeparrot-clean
name: Sync Two Wiki Repos on: [gollum] permissions: contents: read # Ensure scripts are run with pipefail. See: # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference defaults: run: shell: bash jobs: sync: runs-on: ubuntu-latest ...
unknown
github
https://github.com/microsoft/TypeScript
.github/workflows/sync-wiki.yml
#!/usr/bin/env python # -*- coding: utf8 -*- #~####################################################################### #~ Copyright (c) 2008 Burdakov Daniel <kreved@kreved.org> # #~ # #~ This file is part of FreQ-bot. ...
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/network/PlaintextChannelBuilder.java
// Copyright 2017 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 syscall // A RawConn is a raw network connection. type RawConn interface { // Control invokes f on the underlying connection's file // descriptor or ...
go
github
https://github.com/golang/go
src/syscall/net.go
# # Copyright (C) 2003,2004 Norwegian University of Science and Technology # # This file is part of Network Administration Visualized (NAV). # # NAV 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. # ...
unknown
codeparrot/codeparrot-clean
import xml.dom import xml.parsers.expat import xpath import sys import traceback import threading import time import os import re import math import datetime import dateutil.parser from . import rwlock TAG_PATTERN = re.compile('^[a-zA-Z_][-_.a-zA-Z0-9]*$') TAG_PATTERN_WITH_NS = re.compile('^[a-zA-Z_][-_.a-zA-Z0-9:]*$'...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- from datetime import datetime from bs4 import BeautifulSoup from django.contrib import messages from django.contrib.auth.decorators import login_required, permission_required from django.core.exceptions import ObjectDoesNotExist from django.http import HttpResponse from django.shortcuts impor...
unknown
codeparrot/codeparrot-clean
# encoding:utf-8 # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2009 Benny Malengier # # 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 # ...
unknown
codeparrot/codeparrot-clean
from django.conf import settings from django.contrib import messages from django.core.exceptions import ValidationError from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.template.loader import render_to_string from django.utils.translation import ugettext_lazy as _ fr...
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/PDB/PublicSymbol.hpp
from functools import partial import numpy as np import pytest import pandas.util._test_decorators as td from pandas.core.dtypes.common import is_integer_dtype import pandas as pd from pandas import ( Series, isna, ) import pandas._testing as tm from pandas.core import nanops use_bn = nanops._USE_BOTTLENEC...
python
github
https://github.com/pandas-dev/pandas
pandas/tests/test_nanops.py
// Copyright 2020 The Abseil 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 by applicable law or agr...
c
github
https://github.com/mysql/mysql-server
extra/abseil/abseil-cpp-20230802.1/absl/strings/internal/escaping.h
# Copyright 2015 Google 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 law or a...
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\Bundle\FrameworkBundle\CacheWarmer; use Symfony\Component\Cache...
php
github
https://github.com/symfony/symfony
src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AbstractPhpFileCacheWarmer.php
# -*- coding: utf-8 -*- # Copyright © 2012-2014 Roberto Alsina and others. # Permission is hereby granted, free of charge, to any # person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the # Software without restriction, including without limitation # the rights t...
unknown
codeparrot/codeparrot-clean
from math import ceil from django.core.paginator import Paginator, Page, EmptyPage, PageNotAnInteger class CustomPage(Page): def start_index(self): # Special case, return zero if no items. if self.paginator.count == 0: return 0 elif self.number == 1: return 1 ...
unknown
codeparrot/codeparrot-clean
from Components.ActionMap import ActionMap from Components.Ipkg import IpkgComponent from Components.Label import Label from Components.Slider import Slider from Screens.Screen import Screen from Screens.MessageBox import MessageBox from enigma import eTimer class Ipkg(Screen): def __init__(self, session, cmdList=Non...
unknown
codeparrot/codeparrot-clean
from __future__ import absolute_import, division, unicode_literals import json import warnings import re from .support import get_data_files from html5lib.tokenizer import HTMLTokenizer from html5lib import constants class TokenizerTestParser(object): def __init__(self, initialState, lastStartTag=None): ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python2 # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai from __future__ import (unicode_literals, division, absolute_import, print_function) __license__ = 'GPL v3' __copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>' __docformat__ = 'restructuredtext en' import re, th...
unknown
codeparrot/codeparrot-clean
import { compile } from '../src' describe('ssr: attrs fallthrough', () => { test('basic', () => { expect(compile(`<div/>`).code).toMatchInlineSnapshot(` "const { ssrRenderAttrs: _ssrRenderAttrs } = require("vue/server-renderer") return function ssrRender(_ctx, _push, _parent, _attrs) { _push...
typescript
github
https://github.com/vuejs/core
packages/compiler-ssr/__tests__/ssrFallthroughAttrs.spec.ts
<?php namespace Illuminate\Broadcasting; use RuntimeException; class BroadcastException extends RuntimeException { // }
php
github
https://github.com/laravel/framework
src/Illuminate/Broadcasting/BroadcastException.php
# coding=utf-8 # Copyright 2018 DPR Authors, The Hugging Face Team. # # 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 a...
unknown
codeparrot/codeparrot-clean
import { test } from '../../test'; export default test({ warnings: [ { code: 'css_unused_selector', message: 'Unused CSS selector ":host > span"', start: { character: 145, column: 1, line: 18 }, end: { character: 157, column: 13, line: 18 } } ] });
javascript
github
https://github.com/sveltejs/svelte
packages/svelte/tests/css/samples/host/_config.js
"""Tests for the models of the freckle_budgets app.""" import datetime from django.test import TestCase from mixer.backend.django import mixer from . import fixtures from .. import models class EmployeeTestCase(TestCase): """Tests for the ``Employee`` model.""" longMessage = True def test_class(self): ...
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
buildSrc/src/test/java/org/springframework/boot/build/antora/GenerateAntoraPlaybookTests.java
# This module is intended to be used by the build/installation scripts of # extension modules created with SIP. It provides information about file # locations, version numbers etc., and provides some classes and functions. # # Copyright (c) 2015 Riverbank Computing Limited <info@riverbankcomputing.com> # # This file i...
unknown
codeparrot/codeparrot-clean
'''------------------------------ Imports ------------------------------''' import Assembler.asm2bin_Bespoke '''------------------------------- Main -------------------------------''' # inputDirPath = '../N2T_Code/Programs/Assembly/Assembly/Tests/test1_add' # inputDirPath = '../N2T_Code/Programs/Assembly/Assembly/Te...
unknown
codeparrot/codeparrot-clean
"""Constants for the Toon integration.""" from datetime import timedelta from homeassistant.components.binary_sensor import ( DEVICE_CLASS_CONNECTIVITY, DEVICE_CLASS_PROBLEM, ) from homeassistant.components.sensor import ( DEVICE_CLASS_ENERGY, DEVICE_CLASS_POWER, DEVICE_CLASS_TEMPERATURE, ) from ho...
unknown
codeparrot/codeparrot-clean
# Copyright 2017 Capital One Services, LLC # # 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...
unknown
codeparrot/codeparrot-clean
name: Add issues to Skye project board on: workflow_dispatch: inputs: manual_issue_number: description: 'Issue to add to project' required: false type: number # Ideally we could trigger this for PRs as well, but getting the secrets on that is tricky # so we just won't bother for ...
unknown
github
https://github.com/grafana/grafana
.github/workflows/skye-add-to-project.yml
from __future__ import print_function, division from sympy.core.containers import Tuple from sympy.core.compatibility import range from types import FunctionType class TableForm(object): """ Create a nice table representation of data. Examples ======== >>> from sympy import TableForm >>> t ...
unknown
codeparrot/codeparrot-clean
# frozen_string_literal: true module ActionView module Helpers module Tags # :nodoc: module CollectionHelpers # :nodoc: class Builder # :nodoc: attr_reader :object, :text, :value def initialize(template_object, object_name, method_name, object, sanitize...
ruby
github
https://github.com/rails/rails
actionview/lib/action_view/helpers/tags/collection_helpers.rb
""" Cli Argparser Utility helpers for CLI tasks. """ import argparse from abc import ABC, abstractmethod try: from collections.abc import Callable # Python 3.11+ from typing import Any, Required, TypedDict except ImportError: from collections.abc import Callable from typing import Any, TypedDict ...
python
github
https://github.com/pytorch/pytorch
.ci/lumen_cli/cli/lib/common/cli_helper.py
# Copyright (c) 2010-2012 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functiona...
unknown
codeparrot/codeparrot-clean
// Copyright 2015 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 strings import "internal/bytealg" // Compare returns an integer comparing two strings lexicographically. // The result will be 0 if a == b, -1 if a < ...
go
github
https://github.com/golang/go
src/strings/compare.go
import { getConfigDirExtendsSys, getSymlinkedExtendsSys, } from "../helpers/extends.js"; import { verifyTsc } from "../helpers/tsc.js"; describe("unittests:: tsc:: extends::", () => { verifyTsc({ scenario: "extends", subScenario: "resolves the symlink path", sys: getSymlinkedExtends...
typescript
github
https://github.com/microsoft/TypeScript
src/testRunner/unittests/tsc/extends.ts
[ { "@level": "info", "@message": "tfcoremock_simple_resource.moved: Plan to update", "@module": "terraform.ui", "change": { "action": "update", "previous_resource": { "addr": "tfcoremock_simple_resource.base", "implied_provider": "tfcoremock", "module": "", ...
json
github
https://github.com/hashicorp/terraform
testing/equivalence-tests/outputs/moved_with_update/apply.json
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
unknown
codeparrot/codeparrot-clean
export default "c";
javascript
github
https://github.com/webpack/webpack
test/cases/chunks/inline-options/dir1/c.js
import os import math import numpy as np import cPickle as pickle from ase import Atoms from ase.data import chemical_symbols from ase.cluster.base import ClusterBase class Cluster(Atoms, ClusterBase): symmetry = None surfaces = None lattice_basis = None resiproc_basis = None atomic_basis = None ...
unknown
codeparrot/codeparrot-clean
#! /usr/bin/env python """Creates a simple template for exporting a class to Python """ import optparse import os import re def get_exportfile(headerfile): """ For the given header path create a path to the corresponding export file in the PythonInterface """ # We need to find the submodule from th...
unknown
codeparrot/codeparrot-clean
from django.contrib.auth import get_user_model from django.contrib.sites.models import Site from django.core import mail from django.urls import reverse from django.test import TestCase from django.test.client import Client from helpdesk.models import Queue, Ticket, FollowUp from helpdesk import settings as helpdesk_se...
unknown
codeparrot/codeparrot-clean
import { __unstable__loadDesignSystem } from '@tailwindcss/node' import { expect, test, vi } from 'vitest' import * as versions from '../../utils/version' import { migrateEmptyArbitraryValues } from './migrate-handle-empty-arbitrary-values' import { migratePrefix } from './migrate-prefix' vi.spyOn(versions, 'isMajor')....
typescript
github
https://github.com/tailwindlabs/tailwindcss
packages/@tailwindcss-upgrade/src/codemods/template/migrate-handle-empty-arbitrary-values.test.ts
# -*- coding: utf-8 -*- """ Deployment Settings @requires: U{B{I{gluon}} <http://web2py.com>} @copyright: 2009-2013 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (t...
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...
unknown
codeparrot/codeparrot-clean
from opaque_keys.edx.locations import SlashSeparatedCourseKey from django.contrib.auth.decorators import login_required from django.http import HttpResponse, Http404 from django.core.exceptions import ValidationError from notes.models import Note from notes.utils import notes_enabled_for_course from courseware.courses...
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 applicable law or a...
c
github
https://github.com/tensorflow/tensorflow
tensorflow/compiler/mlir/lite/python/converter_python_api.h
/* * 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/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/PlaintextConsumerCallbackTest.java
#!/usr/bin/python # Copyright (c) 2018 Loic BLOT <loic.blot@unix-experience.fr> # This module is sponsored by E.T.A.I. (www.etai.fr) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
unknown
codeparrot/codeparrot-clean
// #docplaster import {Component} from '@angular/core'; import {trigger, transition, animate, style} from '@angular/animations'; @Component({ selector: 'app-insert-remove', animations: [ trigger('myInsertRemoveTrigger', [ transition(':enter', [style({opacity: 0}), animate('200ms', style({opacity: 1}))]),...
typescript
github
https://github.com/angular/angular
adev/src/content/examples/animations/src/app/animations-package/insert-remove.ts
# -*- coding: utf-8 -*- import os import urlparse from decimal import Decimal from django.conf import settings from django.utils.translation import ugettext_lazy as _ from livesettings import config_register, BooleanValue, StringValue, \ ConfigurationGroup, PositiveIntegerValue, \ DecimalValue SHOP_GROUP = Co...
unknown
codeparrot/codeparrot-clean
""" The Course Blocks app, built upon the Block Cache framework in openedx.core.lib.block_cache, is a higher layer django app in LMS that provides additional context of Courses and Users (via usage_info.py) with implementations for Block Structure Transformers that are related to block structure course access. As desc...
unknown
codeparrot/codeparrot-clean
""" .. module: security_monkey.scheduler :platform: Unix :synopsis: Runs watchers, auditors, or reports on demand or on a schedule .. version:: $$VERSION$$ .. moduleauthor:: Patrick Kelley <pkelley@netflix.com> @monkeysecurity """ from apscheduler.threadpool import ThreadPool from apscheduler.scheduler impor...
unknown
codeparrot/codeparrot-clean
"""Functions for downloading and reading MNIST data.""" from __future__ import print_function import gzip import os import urllib import numpy SOURCE_URL = 'http://yann.lecun.com/exdb/mnist/' def maybe_download(filename, work_directory): """Download the data from Yann's website, unless it's already here.""" if not ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env bash # Copyright 2014 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 applica...
unknown
github
https://github.com/kubernetes/kubernetes
hack/verify-codegen.sh
import { Button } from 'components' export function Item({ value }) { return ( <> <Button action={async (value2) => { 'use server' return value * value2 }} > Multiple </Button> </> ) }
javascript
github
https://github.com/vercel/next.js
crates/next-custom-transforms/tests/fixture/server-actions/server-graph/19/input.js
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/cpufreq/qcom-cpufreq-nvmem.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Qualcomm Technologies, Inc. NVMEM CPUFreq maintainers: - Ilia Lin <ilia.lin@kernel.org> description: | In certa...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml
# 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 json import logging from ..cipher.Cipher import Cipher logger = logging.getLogger(__name__) class Serialize(): def __init__(self): pass def serialize(self, content_obj): ''' encode content_obj to string ,then encrypt the string. for example: content_obj = {'a'...
unknown
codeparrot/codeparrot-clean
/* Copyright 2022 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/compiler/mlir/tensorflow/analysis/resource_dataflow.h
#!/usr/bin/env python # # Copyright 2009,2010 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio 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, or (at your optio...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # # Copyright 2013 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. """Installs an APK. """ import optparse import os import re import sys from util import build_device from util import build_utils ...
unknown
codeparrot/codeparrot-clean
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ declare const check: (options: any) => boolean; export = check;
typescript
github
https://github.com/webpack/webpack
schemas/plugins/asset/AssetGeneratorOptions.check.d.ts
annotation class Ann @Ann(value = { class LocalClass }
kotlin
github
https://github.com/JetBrains/kotlin
analysis/analysis-api/testData/components/containingDeclarationProvider/containingDeclarationByPsi/danglingAnnotationOnTopLevelClass.kt
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license # to the complete wo...
unknown
codeparrot/codeparrot-clean
/* 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/c/experimental/ops/gen/cpp/renderers/op_implementation_renderer.h
# -*- coding: utf-8 -*- ############################################################################## # # Author: Markus Schneider # Copyright 2014 initOS GmbH & Co. KG # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as ...
unknown
codeparrot/codeparrot-clean
# # Copyright (c) 2013 Advanced Micro Devices, Inc. # Copyright (c) 2011 Mark D. Hill and David A. Wood # 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...
unknown
codeparrot/codeparrot-clean
/* Copyright 2022 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/lib/monitoring/cell_reader.h
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/clock/qcom,sc7280-lpasscorecc.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Qualcomm LPASS Core & Audio Clock Controller on SC7280 maintainers: - Taniya Das <quic_tdas@quicinc.com> descr...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscorecc.yaml
# -*- coding: utf-8 -*- # Copyright (C) 2012 Yahoo! 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...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python import logging logging.basicConfig(level=logging.INFO) _log = logging.getLogger('Example Kinships') import numpy as np from numpy import dot, array, zeros, setdiff1d from numpy.linalg import norm from numpy.random import shuffle from scipy.io.matlab import loadmat from scipy.sparse import lil_ma...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- import os.path import sys from outwiker.core.pluginbase import Plugin from .i18n import set_ from .controller import Controller class PluginDiagrammer(Plugin): def __init__(self, application): """ application - экземпляр класса core.application.ApplicationParams "...
unknown
codeparrot/codeparrot-clean
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the "Elastic License * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side * Public License v 1"; you may not use this file except in compliance with, ...
java
github
https://github.com/elastic/elasticsearch
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/QualifiedVersion.java
# Copyright 2011 Justin Santa Barbara # 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 requ...
unknown
codeparrot/codeparrot-clean
//===- bolt/Passes/ReorderFunctions.cpp - Function reordering pass --------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
cpp
github
https://github.com/llvm/llvm-project
bolt/lib/Passes/ReorderFunctions.cpp
/* Copyright 2020 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...
c
github
https://github.com/tensorflow/tensorflow
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.h
from django.contrib.auth import authenticate from ios_notifications.http import JSONResponse from django.conf import settings import binascii class InvalidAuthenticationType(Exception): pass # TODO: OAuth VALID_AUTH_TYPES = ('AuthBasic', 'AuthBasicIsStaff', 'AuthNone') def api_authentication_required(func): ...
unknown
codeparrot/codeparrot-clean
# frozen_string_literal: true # :markup: markdown require "rails" require "action_cable" require "active_support/core_ext/hash/indifferent_access" module ActionCable class Engine < Rails::Engine # :nodoc: config.action_cable = ActiveSupport::OrderedOptions.new config.action_cable.mount_path = ActionCable::...
ruby
github
https://github.com/rails/rails
actioncable/lib/action_cable/engine.rb
# 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 os from telemetry.core import util # TODO(dtu): Move these functions from core.util to here. GetBaseDir = util.GetBaseDir GetTelemetryDir = util.Get...
unknown
codeparrot/codeparrot-clean
# This file is part of Buildbot. Buildbot 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, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
unknown
codeparrot/codeparrot-clean
/* * 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.fir.contracts import org.jetbrains.kotlin.analysis.api.contracts.de...
kotlin
github
https://github.com/JetBrains/kotlin
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/contracts/firContractUtils.kt
# Copyright (C) 2013 Nippon Telegraph and Telephone Corporation. # # 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 applicab...
unknown
codeparrot/codeparrot-clean
from PyQt4.QtGui import * from PyQt4.QtCore import * from PyQt4.Qt import Qt from PyQt4.QtNetwork import QNetworkAccessManager, QNetworkRequest, QNetworkReply from epywing.uris import route as route_dictionary_uri, collection_uri_prefix import time EPWING_URL_SCHEME = 'epwing' class EpwingRenderer(QThread): rea...
unknown
codeparrot/codeparrot-clean
# Common errors This file lists errors that were encountered and how to fix them. ### `failed to build archive` error When you get this error: ``` error: failed to build archive: failed to open object file: No such file or directory (os error 2) ``` That can be caused by the fact that you try to compile with `lto ...
unknown
github
https://github.com/rust-lang/rust
compiler/rustc_codegen_gcc/doc/errors.md
# # 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...
python
github
https://github.com/apache/airflow
airflow-ctl/src/airflowctl/ctl/commands/auth_command.py
<?php namespace Illuminate\Http\Concerns; use Illuminate\Support\Collection; trait CanBePrecognitive { /** * Filter the given array of rules into an array of rules that are included in precognitive headers. * * @param array $rules * @return array */ public function filterPrecogniti...
php
github
https://github.com/laravel/framework
src/Illuminate/Http/Concerns/CanBePrecognitive.php
from importlib import import_module from django.conf import settings from django.contrib.auth.models import AnonymousUser from django.core.urlresolvers import reverse from django.test import TestCase, RequestFactory from orders.models import Order, Purchase, Transaction from products.models import Product, Variant from...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2011 The Chromium OS Authors. # # SPDX-License-Identifier: GPL-2.0+ # import collections import command import gitutil import os import re import sys import terminal def FindCheckPatch(): top_level = gitutil.GetTopLevel() try_list = [ os.getcwd(), os.path.join(os.getcwd(), '..'...
unknown
codeparrot/codeparrot-clean
# Copyright 2013 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 cStringIO import json import logging import os import re from lib.ordered_dict import OrderedDict LOGGER = logging.getLogger('dmprof') BASE_PATH = ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- from functools import wraps import logging from psycopg2 import IntegrityError, OperationalError, errorcodes import random import threading import time import openerp from openerp.tools.translate import translate from openerp.osv.orm import except_orm from contextlib import contextmanager imp...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # CER encoder from pyasn1.type import univ from pyasn1.type import useful from pyasn1.codec.ber import encoder from pyasn1.compat.octets import int2oct, str2octs, null from pyasn1 import error class BooleanEncoder(encoder.IntegerEncoder): def encodeValue(self, encodeFun, client, defMode, maxC...
unknown
codeparrot/codeparrot-clean