code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
import numpy as np from mathutils import Matrix, Vector import bpy from bpy.props import FloatProperty, EnumProperty, BoolProperty, IntProperty from sverchok.node_tree import SverchCustomTreeNode from sverchok.data_structure import updateNode, zip_long_repeat, ensure_nesting_level from sverchok.utils.curve import SvC...
unknown
codeparrot/codeparrot-clean
# Andy Lindeberg <alindebe@redhat.com> # # Copyright 2009 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU # General Public License v.2. This program is distributed in the hope that it # will be use...
unknown
codeparrot/codeparrot-clean
""" Test script for the Unicode implementation. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" import sys import struct import codecs import unittest from test import test_support, string_tests # decorator to skip tests on narrow builds requires_wide_bui...
unknown
codeparrot/codeparrot-clean
""" =================== H2CO fitter wrapper =================== Wrapper to fit formaldehyde spectra. """ from __future__ import print_function from .. import spectrum from ..spectrum import units import copy from astropy import units as u from six import iteritems title_dict = {'oneone':'H$_2$CO 1$_{11}$-1$_{10}$', ...
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
# 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"); y...
unknown
codeparrot/codeparrot-clean
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ declare const check: (options: import("../../../declarations/plugins/container/ContainerPlugin").ContainerPluginOptions) => boolean; export = check;
typescript
github
https://github.com/webpack/webpack
schemas/plugins/container/ContainerPlugin.check.d.ts
# Copyright 2016 gRPC 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...
unknown
codeparrot/codeparrot-clean
import pytest import myhdl from myhdl import (Signal, intbv, instance, always_comb, delay, StopSimulation) from rhea.system import Global, Clock, Reset, FIFOBus, Signals from rhea.cores.spi import SPIBus, spi_slave_fifo from rhea.utils.test import run_testbench, tb_default_args, tb_args @pytest.ma...
unknown
codeparrot/codeparrot-clean
import warnings from .. import widgets from .core import StringField, BooleanField __all__ = ( 'BooleanField', 'TextAreaField', 'PasswordField', 'FileField', 'HiddenField', 'SubmitField', 'TextField' ) class TextField(StringField): """ Legacy alias for StringField .. deprecated:: 2.0 """ ...
unknown
codeparrot/codeparrot-clean
# ACTION_CHECKBOX_NAME is unused, but should stay since its import from here # has been referenced in documentation. from django.contrib.admin.decorators import register from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME from django.contrib.admin.options import (HORIZONTAL, VERTICAL, ModelAdmin, StackedI...
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 "opencv2/core/mat.hpp" #include "opencl_kernels_core.hpp" #undef HAVE_IPP #undef CV_IPP_RUN_F...
cpp
github
https://github.com/opencv/opencv
modules/core/src/matrix_operations.cpp
from collections import OrderedDict from copy import deepcopy import pytest import raccoon as rc from raccoon.utils import assert_frame_equal def test_default_list(): def check_list(): assert isinstance(df.index, list) assert isinstance(df.columns, list) assert isinstance(df.data, list) ...
unknown
codeparrot/codeparrot-clean
""" Locale support. The module provides low-level access to the C lib's locale APIs and adds high level number formatting APIs as well as a locale aliasing engine to complement these. The aliasing engine includes support for many commonly used locale names and maps them to values suitable for pass...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # This is code is designed to download list of known bad IPs and domains # Once the lists have been downloaded, 2 reference sets are created # 1 for IPs and 1 for domains # Manual creation of QRadar rules are then done. These rules are then run against these # list to identify known bad IPs and Do...
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.fe10.test.cases.generated.cases.components.dataFlowInfoProvider; im...
java
github
https://github.com/JetBrains/kotlin
analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/components/dataFlowInfoProvider/Fe10IdeNormalAnalysisSourceModuleHLSmartCastInfoTestGenerated.java
# -*- coding: utf-8 -*- from six import string_types from django.db import transaction from flask import Request as FlaskRequest from flask import request from rest_framework.permissions import SAFE_METHODS from api.base.api_globals import api_globals from api.base import settings class DummyRequest(object): pass ...
unknown
codeparrot/codeparrot-clean
#!/bin/sh # # Copyright (c) 2019 Denton Liu # test_description='Test submodules set-branch subcommand This test verifies that the set-branch subcommand of git-submodule is working as expected. ' TEST_NO_CREATE_REPO=1 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME . ./test-lib...
unknown
github
https://github.com/git/git
t/t7419-submodule-set-branch.sh
#!/usr/bin/env python # -*- coding: utf-8 -*- # # 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 dist...
unknown
codeparrot/codeparrot-clean
""" Functions to operate on polynomials. """ from __future__ import division, absolute_import, print_function __all__ = ['poly', 'roots', 'polyint', 'polyder', 'polyadd', 'polysub', 'polymul', 'polydiv', 'polyval', 'poly1d', 'polyfit', 'RankWarning'] import re import warnings import numpy.core....
unknown
codeparrot/codeparrot-clean
import zoneinfo import numpy as np import pytest from pandas._libs.tslibs.tzconversion import tz_localize_to_utc class TestTZLocalizeToUTC: def test_tz_localize_to_utc_ambiguous_infer(self): # val is a timestamp that is ambiguous when localized to US/Eastern val = 1_320_541_200_000_000_000 ...
python
github
https://github.com/pandas-dev/pandas
pandas/tests/tslibs/test_tzconversion.py
# -*- coding: utf-8 -*- """Created on Fri Apr 8 08:32:48 2016. @author: RCGlade """ import numpy as np from landlab import Component, LinkStatus class DepthDependentDiffuser(Component): """This component implements a depth and slope dependent linear diffusion rule in the style of Johnstone and Hilley (201...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed May 24 20:31:57 2017 @author: Katherine """ #!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu Oct 13 09:45:04 2016 This code allows me to calculate all combinations of variable leaf parameters. I will input these combinations of parame...
unknown
codeparrot/codeparrot-clean
from campaign.storage.sql import Storage from campaign.logger import Logging from campaign.tests import TConfig import json import unittest2 class TestStorage(unittest2.TestCase): now = 10000 test_announce = { 'start_time': int(now - 300), 'end_time': int(now + 3000), 'lang': 'en', ...
unknown
codeparrot/codeparrot-clean
package kotlinx.coroutines import kotlin.coroutines.* import kotlin.native.* internal actual fun createMainDispatcher(default: CoroutineDispatcher): MainCoroutineDispatcher = MissingMainDispatcher internal actual fun createDefaultDispatcher(): CoroutineDispatcher = DefaultDispatcher private object DefaultDispat...
kotlin
github
https://github.com/Kotlin/kotlinx.coroutines
kotlinx-coroutines-core/nativeOther/src/Dispatchers.kt
# -*- coding: utf-8 -*- # # nexiles.gateway example module documentation build configuration file, created by # sphinx-quickstart on Mon Jun 29 12:25:34 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # au...
unknown
codeparrot/codeparrot-clean
# Generated by h2py from /usr/include/sys/file.h from warnings import warnpy3k warnpy3k("the FILE module has been removed in Python 3.0", stacklevel=2) del warnpy3k # Included from sys/types.h # Included from sgidefs.h _MIPS_ISA_MIPS1 = 1 _MIPS_ISA_MIPS2 = 2 _MIPS_ISA_MIPS3 = 3 _MIPS_ISA_MIPS4 = 4 _MIPS_SIM_ABI32 = 1...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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...
unknown
codeparrot/codeparrot-clean
# 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
# Authors: Peter Prettenhofer <peter.prettenhofer@gmail.com> (main author) # Mathieu Blondel (partial_fit support) # # License: BSD 3 clause """Classification and regression using Stochastic Gradient Descent (SGD).""" import numpy as np import scipy.sparse as sp from abc import ABCMeta, abstractmethod from ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python -u import sys from argparse import ArgumentParser import time import json import yaml import os import requests try: import boto.ec2 import boto.sqs import boto.vpc from boto.exception import NoAuthHandlerFound, EC2ResponseError from boto.sqs.message import RawMessage from ...
unknown
codeparrot/codeparrot-clean
""" raven.contrib.celery ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import logging from celery.signals import after_setup_logger, task_failure from raven.handlers.logging impor...
unknown
codeparrot/codeparrot-clean
/* Copyright 2017 - 2025 R. Thomas * Copyright 2017 - 2025 Quarkslab * * 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 req...
cpp
github
https://github.com/nodejs/node
deps/LIEF/src/PE/LoadConfigurations/DynamicRelocation/DynamicFixupGeneric.cpp
#!/usr/bin/python # (c) 2015, Paul Markham <pmarkham@netrefinery.com> # # 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 you...
unknown
codeparrot/codeparrot-clean
'use strict'; import utils from '../utils.js'; class InterceptorManager { constructor() { this.handlers = []; } /** * Add a new interceptor to the stack * * @param {Function} fulfilled The function to handle `then` for a `Promise` * @param {Function} rejected The function to handle `reject` for...
javascript
github
https://github.com/axios/axios
lib/core/InterceptorManager.js
# coding=utf-8 # Copyright 2015 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 inspect impor...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- #---------------------------------------------------------- # OpenERP HTTP layer #---------------------------------------------------------- import ast import collections import contextlib import datetime import errno import functools import getpass import inspect import logging import mimetypes...
unknown
codeparrot/codeparrot-clean
import re from livestreamer.exceptions import PluginError, NoStreamsError from livestreamer.options import Options # Import base classes from a support plugin that must exist in the # same directory as this plugin. from livestreamer.plugin.api.support_plugin import justintv_common JustinTVPluginBase = justintv_commo...
unknown
codeparrot/codeparrot-clean
import urllib from urlparse import urlparse, urlunparse, urlsplit import sys import os import re import mimetypes import warnings from copy import copy try: from cStringIO import StringIO except ImportError: from StringIO import StringIO from django.conf import settings from django.contrib.auth import authenti...
unknown
codeparrot/codeparrot-clean
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
c
github
https://github.com/opencv/opencv
3rdparty/protobuf/src/google/protobuf/map.h
# 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
# Copyright (c) 2012 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. """Xcode project file generator. This module is both an Xcode project file generator and a documentation of the Xcode project file format. Knowledge of the proje...
unknown
codeparrot/codeparrot-clean
// Copyright Oliver Kowalke 2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #if defined(BOOST_USE_UCONTEXT) #include <boost/context/continuation_ucontext.hpp> #elif defined(BOOST_USE_W...
unknown
github
https://github.com/mysql/mysql-server
extra/boost/boost_1_87_0/boost/context/continuation.hpp
"""Project symlink creation""" import os import logging from django.conf import settings import redis from readthedocs.core.utils import run_on_app_servers from readthedocs.projects.constants import LOG_TEMPLATE from readthedocs.restapi.client import api log = logging.getLogger(__name__) def symlink_cnames(version...
unknown
codeparrot/codeparrot-clean
{ "Id": "sha256:44cc64492fb6a6d78d3e6d087f380ae6e479aa1b2c79823b32cdacfcc2f3d715", "RepoTags": [ "paketo-buildpacks/cnb:base", "paketo-buildpacks/builder:base-platform-api-0.2" ], "RepoDigests": [ "paketo-buidpacks/cnb@sha256:5b03a853e636b78c44e475bbc514e2b7b140cc41cca8ab907e9753431ae8c0b0" ], "Parent": "",...
json
github
https://github.com/spring-projects/spring-boot
buildpack/spring-boot-buildpack-platform/src/test/resources/org/springframework/boot/buildpack/platform/build/image-with-run-image-digest.json
# -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. import pytest from pootle_fs.display import...
unknown
codeparrot/codeparrot-clean
from tagtrain import data from tagtrain.tagtrain import TagTrainResponse, C_MEMBER, C_GROUP class Blacklist(TagTrainResponse): TYPE = TagTrainResponse.TYPE_COMMENTORMESSAGE CMD_REGEX = f'blacklist {C_MEMBER} {C_GROUP}?' HELP_TEXT = ("`u/{botname} blacklist <member-name> [<group-name>]` - " ...
unknown
codeparrot/codeparrot-clean
# A Python program to run speed and evaluate the performance of MPIR # routines. # # Copyright (c) 2009, Brian Gladman, Worcester, UK. # # This file is part of the MPIR Library. The MPIR Library is free # software; you can redistribute it and/or modify it under the terms # of the GNU Lesser General Public License vers...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # # 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. # pylint: disable=C0301 """Package resources into an apk. See https://android.googlesource.com/platform/tools/base/+/master/legacy/a...
unknown
codeparrot/codeparrot-clean
import numpy as np from numpy.testing import (assert_array_equal, assert_array_almost_equal, assert_almost_equal) from pystruct.datasets import (generate_blocks, generate_blocks_multinomial, binary, multinomial) from pystruct.models import GridCRF from pystruct...
unknown
codeparrot/codeparrot-clean
import pytest from pyecore.ecore import * from pyecore.utils import DynamicEPackage @pytest.fixture(scope='module') def simplemm(): A = EClass('A') B = EClass('B') Root = EClass('Root') pack = EPackage('pack', nsURI='http://pack/1.0', nsPrefix='pack') pack.eClassifiers.extend([Root, A, B]) retu...
unknown
codeparrot/codeparrot-clean
"""A test for the simple API dedicated to Python algorithms. Checks things like Child Algorithm calls """ from __future__ import (absolute_import, division, print_function) import unittest from testhelpers import run_algorithm from mantid import mtd import mantid.simpleapi as api from mantid.api import * from mantid....
unknown
codeparrot/codeparrot-clean
""" Dumps MySQL tables using `mysqldump` into CSV-compatible format without locking the table. Typical usage: python src/scripts/dump_table.py --table like_events \\ --fields id user_id entity_id entity_type ts created_at \\ > /path/outfile """ import errno import sys import os import re import ar...
unknown
codeparrot/codeparrot-clean
// Copyright 2024 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 reflect import ( "iter" ) func rangeNum[T int8 | int16 | int32 | int64 | int | uint8 | uint16 | uint32 | uint64 | uint | uintptr, N int64 | uint64]...
go
github
https://github.com/golang/go
src/reflect/iter.go
# Copyright 2025 Technology Innovation Institute and the HuggingFace Inc. team. All rights reserved. # # This code is based on EleutherAI's GPT-NeoX library and the GPT-NeoX # and OPT implementations in this library. It has been modified from its # original forms to accommodate minor architectural differences compared ...
python
github
https://github.com/huggingface/transformers
src/transformers/models/falcon_h1/modular_falcon_h1.py
# coding=utf8 """This module has classes and functions that can help in writing tests. test_tools.py - Willie misc tools Copyright 2013, Ari Koivula, <ari@koivu.la> Licensed under the Eiffel Forum License 2. https://willie.dftba.net """ from __future__ import unicode_literals import sys import re import os import w...
unknown
codeparrot/codeparrot-clean
//===--- DictionaryRemove.swift -------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
swift
github
https://github.com/apple/swift
benchmark/single-source/DictionaryRemove.swift
# -*- coding: utf-8 -*- # # # TheVirtualBrain-Framework Package. This package holds all Data Management, and # Web-UI helpful to run brain-simulations. To use it, you also need do download # TheVirtualBrain-Scientific Package (for simulators). See content of the # documentation-folder for more details. See also http://...
unknown
codeparrot/codeparrot-clean
{ "filters": { "body": "Treść", "createdAt": "Utworzono o", "response": { "all": "Wszystkie", "pending": "Oczekujące", "received": "Zrecenzowane" } }, "requiredAction_few": "Wymagane akcje", "requiredAction_many": "Wymaganych akcji", "requiredAction_one": "Wymagana akcja", ...
json
github
https://github.com/apache/airflow
airflow-core/src/airflow/ui/public/i18n/locales/pl/hitl.json
#pragma once #include <stdexcept> #include <stdarg.h> static inline void barf(const char *fmt, ...) { char msg[2048]; va_list args; va_start(args, fmt); vsnprintf(msg, 2048, fmt, args); va_end(args); throw std::runtime_error(msg); } #if defined(_MSC_VER) && _MSC_VER <= 1900 #define __func__ __FUNCTION__ #...
c
github
https://github.com/pytorch/pytorch
aten/src/ATen/test/test_assert.h
# -*- coding: utf-8 -*- # # 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 #...
unknown
codeparrot/codeparrot-clean
""" monkeypatching and mocking functionality. """ from __future__ import absolute_import, division, print_function import os import sys import re from contextlib import contextmanager import six from _pytest.fixtures import fixture RE_IMPORT_ERROR_NAME = re.compile("^No module named (.*)$") @fixture def monkeypatc...
unknown
codeparrot/codeparrot-clean
#### Note: this error code is no longer emitted by the compiler. A function with the `start` attribute was declared with type parameters.
unknown
github
https://github.com/rust-lang/rust
compiler/rustc_error_codes/src/error_codes/E0132.md
{ "EXISTS": { "summary": "Determines whether one or more keys exist.", "complexity": "O(N) where N is the number of keys to check.", "group": "generic", "since": "1.0.0", "arity": -2, "function": "existsCommand", "history": [ [ "3.0...
json
github
https://github.com/redis/redis
src/commands/exists.json
/* * 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...
kotlin
github
https://github.com/spring-projects/spring-framework
framework-docs/src/main/kotlin/org/springframework/docs/core/validation/formatconfiguringformattingglobaldatetimeformat/ApplicationConfiguration.kt
{ "SLAVES": { "summary": "Lists the replica nodes of a master node.", "complexity": "O(N) where N is the number of replicas.", "group": "cluster", "since": "3.0.0", "arity": 3, "container": "CLUSTER", "function": "clusterCommand", "deprecated_since": "...
json
github
https://github.com/redis/redis
src/commands/cluster-slaves.json
"""Test class for the content management tests. :Requirement: Content Management :CaseAutomation: Automated :CaseLevel: Component :CaseComponent: ContentManagement :TestType: Functional :CaseImportance: High :Upstream: No """ import os from fauxfactory import gen_string from nailgun import client, entities from...
unknown
codeparrot/codeparrot-clean
{ "XTRIM": { "summary": "Deletes messages from the beginning of a stream.", "complexity": "O(N), with N being the number of evicted entries. Constant times are very small however, since entries are organized in macro nodes containing multiple entries that can be released with a single deallocation."...
json
github
https://github.com/redis/redis
src/commands/xtrim.json
#!/usr/bin/env bash valgrind --tool=callgrind --compress-strings=no --compress-pos=no --collect-jumps=yes "$@"
unknown
github
https://github.com/numpy/numpy
tools/c_coverage/c_coverage_collect.sh
# -*- coding: utf-8 -*- from navmazing import NavigateToSibling from widgetastic.widget import View from widgetastic_manageiq import ManageIQTree from widgetastic_patternfly import Accordion, Dropdown from cfme import BaseLoggedInPage from cfme.base import Server from utils.appliance.implementations.ui import navigato...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python2 #encoding:utf-8 #author:dbr/Ben #project:tvdb_api #repository:http://github.com/dbr/tvdb_api #license:unlicense (http://unlicense.org/) """Custom exceptions used or raised by tvdb_api """ __author__ = "dbr/Ben" __version__ = "1.9" __all__ = ["tvdb_error", "tvdb_userabort", "tvdb_shownotfound",...
unknown
codeparrot/codeparrot-clean
import os import re from pathlib import Path import pytest from django.urls import reverse from rdmo.core.constants import VALUE_TYPE_FILE from ..models import Project, Value users = ( ('owner', 'owner'), ('manager', 'manager'), ('author', 'author'), ('guest', 'guest'), ('user', 'user'), ('s...
unknown
codeparrot/codeparrot-clean
/* eslint-disable import/no-extraneous-dependencies */ // This file contains the common parts of the rollup configuration that are shared across multiple packages. import nodeResolve from '@rollup/plugin-node-resolve'; import { dirname, resolve } from 'node:path'; import esbuild from 'rollup-plugin-esbuild'; import { n...
typescript
github
https://github.com/grafana/grafana
packages/rollup.config.parts.ts
# -*- coding: utf-8 -*- from threading import Lock from collections import deque class Commands: """ Store to commands to be sent to the murmur server, from whatever tread. Each command has it's own lock semaphore to signal is received an answer """ def __init__(self): self.id = 0 ...
unknown
codeparrot/codeparrot-clean
{ "annotations": { "list": [] }, "description": "Sample monitoring dashboard for testing purposes.", "editable": false, "gnetId": null, "graphTooltip": 0, "hideControls": false, "id": 36098, "links": [ { "asDropdown": false, "icon": "external l...
json
github
https://github.com/grafana/grafana
apps/dashboard/pkg/migration/testdata/input/v16.empty-rows-and-panels-array.json
prelude: | def m &b b end pr = m{ a = 1 } benchmark: vm_proc: | pr.call loop_count: 6000000
unknown
github
https://github.com/ruby/ruby
benchmark/vm_proc.yml
# Copyright 2012, SIL International # All rights reserved. # # This library 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 2.1 of License, or # (at your option) any lat...
unknown
codeparrot/codeparrot-clean
''' Spinner ======= .. versionadded:: 1.4.0 .. image:: images/spinner.jpg :align: right Spinner is a widget that provides a quick way to select one value from a set. In the default state, a spinner shows its currently selected value. Touching the spinner displays a dropdown menu with all the other available valu...
unknown
codeparrot/codeparrot-clean
groups: - name: yolo rules: - record: Hi alert: Hello expr: 1
unknown
github
https://github.com/prometheus/prometheus
model/rulefmt/testdata/record_and_alert.bad.yaml
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import * from future.builtins.disabled import * import os import vsmomi from vsmomi import DryrunError try: import unittest2 as unittest except ImportError: ...
unknown
codeparrot/codeparrot-clean
use crate::Stream; use pin_project_lite::pin_project; use std::io; use std::pin::Pin; use std::task::{Context, Poll}; use tokio::io::{AsyncBufRead, Lines}; pin_project! { /// A wrapper around [`tokio::io::Lines`] that implements [`Stream`]. /// /// # Example /// /// ``` /// use tokio::io::Async...
rust
github
https://github.com/tokio-rs/tokio
tokio-stream/src/wrappers/lines.rs
# -*- coding: utf-8 -*- from django import test from cradmin_legacy import cradmin_testhelpers from model_bakery import baker from devilry.apps.core.models import PeriodTag from devilry.apps.core.models import RelatedExaminer, RelatedStudent from devilry.devilry_admin.views.period.manage_tags import manage_tags from ...
unknown
codeparrot/codeparrot-clean
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const ConcatenationScope = require("../ConcatenationScope"); const RuntimeGlobals = require("../RuntimeGlobals"); const makeSerializable = require("../util/makeSerializable"); const propertyAccess = requi...
javascript
github
https://github.com/webpack/webpack
lib/dependencies/HarmonyExportExpressionDependency.js
/* Copyright 2017 - 2025 R. Thomas * Copyright 2017 - 2025 Quarkslab * * 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 req...
cpp
github
https://github.com/nodejs/node
deps/LIEF/src/OAT/utils.cpp
# 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. from copy import copy import logging import posixpath from api_models import GetNodeCategories from api_schema_graph import APINodeCursor from docs_server_u...
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.client.webrtc.media import android.Manifest import android.content.Context import android.content.pm.PackageManager import android.os.Build import io.ktor.client.webrtc.* impo...
kotlin
github
https://github.com/ktorio/ktor
ktor-client/ktor-client-webrtc/android/src/io/ktor/client/webrtc/media/MediaDevices.kt
// SPDX-License-Identifier: GPL-2.0-only /* * linux/mm/oom_kill.c * * Copyright (C) 1998,2000 Rik van Riel * Thanks go out to Claus Fischer for some serious inspiration and * for goading me into coding this file... * Copyright (C) 2010 Google, Inc. * Rewritten by David Rientjes * * The routines in this...
c
github
https://github.com/torvalds/linux
mm/oom_kill.c
# Copyright (c) 2014 Ben Swartzlander. All rights reserved. # Copyright (c) 2014 Navneet Singh. All rights reserved. # Copyright (c) 2014 Clinton Knight. All rights reserved. # Copyright (c) 2014 Alex Meade. All rights reserved. # Copyright (c) 2014 Bob Callaway. All rights reserved. # # Licensed under the Apac...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python """Compute the wick covariance for the auto-correlation of forests The wick covariance is computed as explained in Delubac et al. 2015 """ import sys import argparse import multiprocessing from multiprocessing import Pool, Lock, cpu_count, Value import fitsio import numpy as np from scipy.interpo...
unknown
codeparrot/codeparrot-clean
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.UserList.as_view(), name=views.UserList.view_name), url(r'^(?P<user_id>\w+)/$', views.UserDetail.as_view(), name=views.UserDetail.view_name), url(r'^(?P<user_id>\w+)/addons/$', views.UserAddonList.as_view(), name=views.Us...
unknown
codeparrot/codeparrot-clean
// Copyright 2023 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. //go:build ppc64le && linux && cgo package cgotest import "testing" func TestPPC64CallStubs(t *testing.T) { testPPC64CallStubs(t) }
go
github
https://github.com/golang/go
src/cmd/cgo/internal/test/linux_ppc64le_test.go
#!/bin/sh for nm in `cat $1` ; do n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'` echo "#define je_${n} JEMALLOC_N(${n})" done
unknown
github
https://github.com/redis/redis
deps/jemalloc/include/jemalloc/internal/public_namespace.sh
# -*- coding: utf-8 -*- # Copyright (c) 2015 Ericsson AB # # 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 ...
unknown
codeparrot/codeparrot-clean
import create_bwc_index import logging import os import shutil import subprocess import sys import tempfile def fetch_version(version): logging.info('fetching ES version %s' % version) if subprocess.call([sys.executable, os.path.join(os.path.split(sys.argv[0])[0], 'get-bwc-version.py'), version]) != 0: raise R...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python from saml2.md import AttributeProfile from saml2.sigver import security_context from saml2.config import Config from saml2.validate import valid_instance from saml2.time_util import in_a_while from saml2.extension import mdui from saml2.extension import idpdisc from saml2.extension import shibmd f...
unknown
codeparrot/codeparrot-clean
'use strict' if (process.env.NODE_ENV === 'production') { module.exports = require('./dist/compiler-core.cjs.prod.js') } else { module.exports = require('./dist/compiler-core.cjs.js') }
javascript
github
https://github.com/vuejs/core
packages/compiler-core/index.js
"""Parse a Python module and describe its classes and methods. Parse enough of a Python file to recognize imports and class and method definitions, and to find out the superclasses of a class. The interface consists of a single function: readmodule_ex(module [, path]) where module is the name of a Python modu...
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...
java
github
https://github.com/apache/hadoop
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/ArrayPrimitiveWritable.java
# $Id: sv.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: Adam Chodorowski <chodorowski@users.sourceforge.net> # Copyright: This module has been placed in the public domain. # New language mappings are welcome. Before doing a new translation, please # read <http://docutils.sf.net/docs/howto/i18n.html>. Two files mu...
unknown
codeparrot/codeparrot-clean
- hosts: testhost gather_facts: false any_errors_fatal: true force_handlers: true tasks: - command: echo notify: - handler1 - fail: handlers: - name: handler1 debug: msg: handler1 ran
unknown
github
https://github.com/ansible/ansible
test/integration/targets/any_errors_fatal/36308.yml