code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
#!/usr/bin/python # # This tools exploits the data of csv files produced by script collect-ce-job-status.py, to # compute the number of CEs grouped by slice of ratio R/(R+W) as a function of time: # between 0 and 0,5, and between 0,5 and 1, exactly 1 or not calculable. # # Results are stored in file running_ratio_slice...
unknown
codeparrot/codeparrot-clean
__authors__ = "Ian Goodfellow" __copyright__ = "Copyright 2010-2012, Universite de Montreal" __credits__ = ["Ian Goodfellow"] __license__ = "3-clause BSD" __maintainer__ = "LISA Lab" __email__ = "pylearn-dev@googlegroups" from pylearn2.testing.skip import skip_if_no_gpu skip_if_no_gpu() import logging import numpy as ...
unknown
codeparrot/codeparrot-clean
# orm/path_registry.py # Copyright (C) 2005-2016 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Path tracking utilities, representing mapper graph traversals. """ from .. ...
unknown
codeparrot/codeparrot-clean
# This file is part of Fuzzgrind. # Copyright (C) 2009 Gabriel Campana # # This work is licensed under the terms of the GNU GPL, version 3. # See the LICENSE file in the top-level directory. class IRStmt: def __init__(self, tag, a, b, c): self.tag = tag if tag == 'NoOp': pass ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python """ MultiQC module to parse output from MACS2 """ from __future__ import print_function from collections import OrderedDict import logging import re from multiqc.plots import bargraph from multiqc.modules.base_module import BaseMultiqcModule # Initialise the logger log = logging.getLogger(__na...
unknown
codeparrot/codeparrot-clean
<!--Copyright 2023 The HuggingFace Team. 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 agreed...
unknown
github
https://github.com/huggingface/transformers
docs/source/ko/internal/audio_utils.md
# 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, software # d...
unknown
codeparrot/codeparrot-clean
<?php declare(strict_types=1); /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Test\Pa...
php
github
https://github.com/composer/composer
tests/Composer/Test/Package/Loader/ArrayLoaderTest.php
/* * 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.utils import io.ktor.client.webrtc.* import io.ktor.utils.io.ExperimentalKtorApi import kotlinx.coroutines.CoroutineExceptionHandler import kotlin.time.Duration....
kotlin
github
https://github.com/ktorio/ktor
ktor-client/ktor-client-webrtc/web/test/io/ktor/client/webrtc/utils/ConnectionUtils.web.kt
/* Copyright 2017 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
pkg/controller/tainteviction/taint_eviction_test.go
## Input ```javascript // @validateRefAccessDuringRender:false function Foo({a}) { const ref = useRef(); const x = {a, val: ref.current}; return <VideoList videos={x} />; } ``` ## Code ```javascript import { c as _c } from "react/compiler-runtime"; // @validateRefAccessDuringRender:false function Foo(t0) { ...
unknown
github
https://github.com/facebook/react
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/ref-current-not-added-to-dep-2.expect.md
# 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. """ This module contains classes that help to emulate xcodebuild behavior on top of other build systems, such as make and ninja. """ import copy import gyp.common...
unknown
codeparrot/codeparrot-clean
from allauth.socialaccount import providers from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class MailRuAccount(ProviderAccount): def get_profile_url(self): return self.account.extra_data.get('link') def get_av...
unknown
codeparrot/codeparrot-clean
# Copyright 2013 IBM Corp. # # 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
codeparrot/codeparrot-clean
from django import test from django.contrib.contenttypes.fields import ( GenericForeignKey, GenericRelation, ) from django.db import models from django.db.models.fields.related import ( ForeignKey, ForeignObject, ForeignObjectRel, ManyToManyField, ManyToOneRel, OneToOneField, ) from .models import AllField...
unknown
codeparrot/codeparrot-clean
""" django admin pages for certificates models """ from operator import itemgetter from config_models.admin import ConfigurationModelAdmin from django import forms from django.conf import settings from django.contrib import admin from django.utils.safestring import mark_safe from organizations.api import get_organiza...
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 ...
unknown
codeparrot/codeparrot-clean
from flask import url_for from tracker.advisory import advisory_get_label from tracker.model.cve import issue_types from tracker.model.enum import Publication from tracker.model.enum import Remote from tracker.model.enum import Severity from tracker.model.enum import Status from .conftest import DEFAULT_ADVISORY_ID f...
unknown
codeparrot/codeparrot-clean
{ "kind": "Dashboard", "apiVersion": "dashboard.grafana.app/v0alpha1", "metadata": { "name": "v2.panels-and-services.v42" }, "spec": { "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" ...
json
github
https://github.com/grafana/grafana
apps/dashboard/pkg/migration/conversion/testdata/migrated_dashboards_output/v1beta1-mig-v2.panels-and-services.v42.v0alpha1.json
// 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. package net import ( "runtime" "syscall" "time" ) // syscall.TCP_KEEPINTVL and syscall.TCP_KEEPCNT might be missing on some darwin architectures. const ( ...
go
github
https://github.com/golang/go
src/net/tcpsockopt_darwin.go
#!/usr/bin/env python2 """ plot_gaugewave_of_time.py Author: Jonah Miller (jonah.maxwell.miller@gmail.com) Time-stamp: <2014-02-07 18:01:28 (jonah)> This is a simple library to plot the norm of g_{xx} as a function of time for a gaugewave. Several gaugewave files can be plotted at the same time. Example call python2...
unknown
codeparrot/codeparrot-clean
/* Copyright 2019 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/kernels/data/shuffle_dataset_op.h
#!/usr/bin/env bash # Copyright 2023 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-golangci-lint-config.sh
#!/bin/bash set -e set -x RM_GOPATH=0 TMP_GOPATH=${TMP_GOPATH:-""} : ${PREFIX:="/usr/local/bin"} if [ -z "$TMP_GOPATH" ]; then export GOPATH="$(mktemp -d)" RM_GOPATH=1 else export GOPATH="$TMP_GOPATH" fi case "$(go env GOARCH)" in mips* | ppc64) # pie build mode is not supported on mips architectures expor...
unknown
github
https://github.com/moby/moby
hack/dockerfile/install/install.sh
#!/usr/bin/env python # Generate test translation files from human-readable po files. # # Dummy language is specified in configuration file (see config.py) # two letter language codes reference: # see http://www.loc.gov/standards/iso639-2/php/code_list.php # # Django will not localize in languages that django itself h...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- ############################################################################### # # CreateAccountAlias # Creates an alias for your AWS account. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use...
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/MachO/Binary.cpp
""" Basic functions for manipulating 2d arrays """ from __future__ import division, absolute_import, print_function from numpy.core.numeric import ( asanyarray, arange, zeros, greater_equal, multiply, ones, asarray, where, int8, int16, int32, int64, empty, promote_types ) from numpy.core import iinfo __a...
unknown
codeparrot/codeparrot-clean
"""Constants for the Risco integration.""" from homeassistant.const import ( CONF_SCAN_INTERVAL, STATE_ALARM_ARMED_AWAY, STATE_ALARM_ARMED_HOME, ) DOMAIN = "risco" RISCO_EVENT = "risco_event" DATA_COORDINATOR = "risco" EVENTS_COORDINATOR = "risco_events" DEFAULT_SCAN_INTERVAL = 30 CONF_CODE_ARM_REQUIR...
unknown
codeparrot/codeparrot-clean
# # This file is an aid to generated the Languages rules file. # usage: # python languages.py > ..\winbuild\Languages.rules # import os import re files = [f for f in os.listdir('.') if re.match(r'translator_[a-z][a-z]\.h', f)] new_list = [] for f in files: new_list.append([f,(os.path.splitext(f)[0]).replace("tra...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python """Parse and print the list of logs, after validating signature.""" import base64 import hashlib import json import os import sys import gflags import jsonschema import M2Crypto from cpp_generator import generate_cpp_header from java_generator import generate_java_source FLAGS = gflags.FLAGS ...
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/clients-integration-tests/src/test/java/org/apache/kafka/clients/security/GroupAuthorizerIntegrationTest.java
from __future__ import division, print_function, absolute_import import os from numpy.distutils.core import setup from numpy.distutils.misc_util import Configuration from numpy import get_include from scipy._build_utils import numpy_nodepr_api def configuration(parent_package='', top_path=None): config = Config...
unknown
codeparrot/codeparrot-clean
# frozen_string_literal: true require "cases/helper" require "support/connection_helper" require "models/author" require "models/bulb" require "models/car" class MySQLEmptyTablesTest < ActiveRecord::AbstractMysqlTestCase self.use_transactional_tests = false def setup @conn = ActiveRecord::Base.lease_connecti...
ruby
github
https://github.com/rails/rails
activerecord/test/cases/adapters/abstract_mysql_adapter/empty_all_tables_test.rb
# 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
/** * Adds the link to available documentation page as the last entry in the version * switcher dropdown. Since other entries in the dropdown are also added dynamically, * we only add the link when the user clicks on some version switcher button to make * sure that this entry is the last one. */ function addVersi...
javascript
github
https://github.com/scikit-learn/scikit-learn
doc/js/scripts/version-switcher.js
#!/usr/bin/env python """ Test for multipoll.py """ import unittest import pexpect class testMultiPoll( unittest.TestCase ): def testMultiPoll( self ): "Verify that we receive one ping per second per host" p = pexpect.spawn( 'python -m mininet.examples.multipoll' ) opts = [ "\*\*\* (h\d)...
unknown
codeparrot/codeparrot-clean
# Copyright 2013 OpenStack Foundation # 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
#include <ATen/Config.h> #if AT_PARALLEL_OPENMP || AT_PARALLEL_NATIVE #include <ATen/Parallel.h> #include <ATen/PTThreadPool.h> #include <ATen/ThreadLocalState.h> #include <atomic> namespace at { namespace { const int NOT_SET = -1; const int CONSUMED = -2; // Number of inter-op threads set by the user; // NOT_SET -...
cpp
github
https://github.com/pytorch/pytorch
aten/src/ATen/ParallelThreadPoolNative.cpp
Guten Tag
html
github
https://github.com/rails/rails
actionpack/test/fixtures/localized/hello_world.de.html
//// [tests/cases/compiler/assignmentCompatability4.ts] //// //// [assignmentCompatability4.ts] namespace __test1__ { export interface interfaceWithPublicAndOptional<T,U> { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional<number,string> = { one: 1 };; export var __val__obj4 = obj4; } namespace __t...
javascript
github
https://github.com/microsoft/TypeScript
tests/baselines/reference/assignmentCompatability4.js
// Copyright 2020 The Cockroach Authors. // // Use of this software is governed by the CockroachDB Software License // included in the /LICENSE file. package sql import ( "context" "fmt" "github.com/cockroachdb/cockroach/pkg/jobs" "github.com/cockroachdb/cockroach/pkg/jobs/jobspb" "github.com/cockroachdb/cockro...
go
github
https://github.com/cockroachdb/cockroach
pkg/sql/drop_schema.go
import platform import xbmc import xbmcgui from quasar.logger import log from quasar.osarch import PLATFORM from quasar.addon import ADDON, ADDON_NAME, ADDON_ICON def notify(message, header=ADDON_NAME, time=5000, image=ADDON_ICON): sound = ADDON.getSetting('do_not_disturb') == 'false' dialog = xbmcgui.Dialog()...
unknown
codeparrot/codeparrot-clean
"""Contains the functions used to read the input file and print the checkpoint files with xml formatting. Copyright (C) 2013, Joshua More and Michele Ceriotti 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 Fou...
unknown
codeparrot/codeparrot-clean
import pytest import asyncio from azure.eventhub import EventData from azure.eventhub.aio import EventHubConsumerClient from azure.eventhub.aio._eventprocessor.in_memory_checkpoint_store import InMemoryCheckpointStore from azure.eventhub._constants import ALL_PARTITIONS @pytest.mark.liveTest @pytest.mark.asyncio async...
unknown
codeparrot/codeparrot-clean
from MenuList import MenuList from Tools.Directories import SCOPE_CURRENT_SKIN, resolveFilename from os import path from enigma import eListboxPythonMultiContent, RT_VALIGN_CENTER, gFont, eServiceCenter from Tools.LoadPixmap import LoadPixmap import skin STATE_PLAY = 0 STATE_PAUSE = 1 STATE_STOP = 2 STATE_REWIND = ...
unknown
codeparrot/codeparrot-clean
# -*- test-case-name: twisted.test.test_stateful -*- # Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. from twisted.internet import protocol try: from cStringIO import StringIO except ImportError: from StringIO import StringIO class StatefulProtocol(protocol.Protocol): ""...
unknown
codeparrot/codeparrot-clean
"""SCons.Tool.rpm Tool-specific initialization for rpm. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. The rpm tool calls the rpmbuild command. The first and only argument should a tar.gz consisting of the sourc...
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/clients/admin/SupportedVersionRange.java
#ifndef HEADER_CURL_WS_H #define HEADER_CURL_WS_H /*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| ...
c
github
https://github.com/curl/curl
lib/ws.h
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'SuperTag' db.create_table('supertagging_supertag', ( ('id', self.gf('django.db.models....
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.d...
unknown
codeparrot/codeparrot-clean
"""functions that directly handle user input """ import sys import time from askbot.utils import path def choice_dialog(prompt_phrase, choices = None, invalid_phrase = None): """prints a prompt, accepts keyboard input and makes sure that user response is one of given in the choices argument, which is requi...
unknown
codeparrot/codeparrot-clean
# frozen_string_literal: true require "cases/helper" require "models/post" require "models/category" require "models/comment" require "models/other_dog" require "concurrent/atomic/count_down_latch" module ActiveRecord class LoadAsyncTest < ActiveRecord::TestCase include WaitForAsyncTestHelper fixtures :pos...
ruby
github
https://github.com/rails/rails
activerecord/test/cases/relation/load_async_test.rb
# Test indexes with an override to create v:1 indexes by default. # Based on replica_sets_jscore_passthrough.yml. test_kind: js_test selector: roots: - jstests/core/**/*.js exclude_files: # v:1 index does not support NumberDecimal. - jstests/core/index/index_decimal.js - jstests/core/query/distinct...
unknown
github
https://github.com/mongodb/mongo
buildscripts/resmokeconfig/suites/v1index_jscore_passthrough.yml
//===----------------------------------------------------------------------===// // // 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
clang-tools-extra/clang-tidy/bugprone/UncheckedOptionalAccessCheck.cpp
const fs = require('fs'); const path = require('path'); const angularRoot = path.resolve('./node_modules/@angular'); const angularModules = fs .readdirSync(angularRoot) .map(function (name) { const content = fs .readFileSync(path.join(angularRoot, name, 'package.json'), 'utf-8') .toString(); re...
javascript
github
https://github.com/angular/angular
integration/ng_update/check.js
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # Copyright: (c) 2017, Dag Wieers (@dagwieers) <dag@wieers.com> # 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
#define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" #include "environment.h" #include "gettext.h" #include "hex.h" #include "list.h" #include "pack.h" #include "repository.h" #include "dir.h" #include "mergesort.h" #include "packfile.h" #include "delta.h" #include "hash-lookup.h" #include "commit.h" #in...
c
github
https://github.com/git/git
packfile.c
{ "DRYRUN": { "summary": "Simulates the execution of a command by a user, without executing the command.", "complexity": "O(1).", "group": "server", "since": "7.0.0", "arity": -4, "container": "ACL", "function": "aclCommand", "history": [], "co...
json
github
https://github.com/redis/redis
src/commands/acl-dryrun.json
#!/usr/bin/env python # -*- coding: utf-8 -*- import re import subprocess import os from urllib import unquote from module.utils import html_unescape from module.plugins.Hoster import Hoster def which(program): """Works exactly like the unix command which Courtesy of http://stackoverflow.com/a/377028/675646...
unknown
codeparrot/codeparrot-clean
// Copyright The Prometheus 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 w...
go
github
https://github.com/prometheus/prometheus
prompb/rwcommon/codec_test.go
# (c) 2017 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_function) __metaclass__ = type DOCUMENTATION = """ lookup: aws_account_attribute author: - Sloane Hertel <shertel@redhat.com> version_added:...
unknown
codeparrot/codeparrot-clean
import os import re from pip.backwardcompat import urlparse from pip import InstallationError from pip.index import Link from pip.util import rmtree, display_path, call_subprocess from pip.log import logger from pip.vcs import vcs, VersionControl _svn_xml_url_re = re.compile('url="([^"]+)"') _svn_rev_re = re.compile('...
unknown
codeparrot/codeparrot-clean
# This file is part of GridCal. # # GridCal 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. # # GridCal is distributed in the hope that...
unknown
codeparrot/codeparrot-clean
- hosts: vaulted_host_toml gather_facts: no tasks: - name: See if we knew vaulted_host_toml debug: msg="Found vaulted_host from vaulted.inventory.toml" - assert: that: - 'hello=="world"'
unknown
github
https://github.com/ansible/ansible
test/integration/targets/ansible-vault/test_vaulted_inventory_toml.yml
#_*_coding:utf-8_*_ __author__ = 'jieli' import threading,time import random def light(): if not event.isSet(): event.set() #wait就不阻塞 #绿灯状态 count = 0 while True: if count < 10: print '\033[42;1m--green light on---\033[0m' elif count <13: print '\033[43;1m--ye...
unknown
codeparrot/codeparrot-clean
########################################################## # THIS IS A GENERATED FILE -- DO NOT MODIFY. # IF YOU WISH TO MODIFY THIS SUITE, MODIFY THE CORRESPONDING MATRIX SUITE MAPPING FILE # AND REGENERATE THE MATRIX SUITES. # # matrix suite mapping file: buildscripts/resmokeconfig/matrix_suites/mappings/replica_sets...
unknown
github
https://github.com/mongodb/mongo
buildscripts/resmokeconfig/matrix_suites/generated_suites/replica_sets_kill_secondaries_jscore_passthrough.yml
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from erpnext.crm.report.campaign_efficiency.campaign_efficiency import get_lead_data def execute(filters=None): columns, da...
unknown
codeparrot/codeparrot-clean
# $Id: docutils_xml.py 7966 2016-08-18 13:06:09Z milde $ # Author: David Goodger, Paul Tremblay, Guenter Milde # Maintainer: docutils-develop@lists.sourceforge.net # Copyright: This module has been placed in the public domain. """ Simple document tree Writer, writes Docutils XML according to http://docutils.sourceforg...
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
import json import sys from ansible.module_utils.basic import env_fallback from ansible.module_utils.urls import fetch_url def scaleway_argument_spec(): return dict( api_token=dict(required=True, fallback=(env_fallback, ['SCW_TOKEN', 'SCW_API_KEY', 'SCW_OAUTH_TOKEN', 'SCW_API_TOKEN']), ...
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 us...
unknown
codeparrot/codeparrot-clean
#ifndef BOOST_ARCHIVE_POLYMORPHIC_OARCHIVE_HPP #define BOOST_ARCHIVE_POLYMORPHIC_OARCHIVE_HPP // MS compatible compilers support #pragma once #if defined(_MSC_VER) # pragma once #endif /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // polymorphic_oarchive.hpp // (C) Copyright 2002 R...
unknown
github
https://github.com/mysql/mysql-server
extra/boost/boost_1_87_0/boost/archive/polymorphic_oarchive.hpp
/* * 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/context/SpringBootTestJmxTests.java
import operator_benchmark as op_bench import torch import torch.ao.nn.quantized.functional as qF r"""Microbenchmarks for the quantized activations.""" qactivation_long_configs = op_bench.cross_product_configs( dims=( # VGG-16 relu's with original shape: (-1, 3, 224, 224) (64, 224, 224), # ReLU-1...
python
github
https://github.com/pytorch/pytorch
benchmarks/operator_benchmark/pt/qactivation_test.py
/* * 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/adapter/MethodBeforeAdviceInterceptor.java
# # epydoc package file # # A python documentation Module # Edward Loper # # $Id: __init__.py 1762 2008-02-23 20:10:25Z edloper $ # """ Markup language support for docstrings. Each submodule defines a parser for a single markup language. These parsers convert an object's docstring to a L{ParsedDocstring}, a standard...
unknown
codeparrot/codeparrot-clean
/* Copyright 2022 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
pkg/apis/flowcontrol/v1beta3/defaults_test.go
// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: BUSL-1.1 package main import ( "testing" ) func Test_backend_apply_before_init(t *testing.T) { t.Parallel() skipIfMissingEnvVar(t) skipWithoutRemoteTerraformVersion(t) cases := testCases{ "terraform apply with cloud block - blank state": { opera...
go
github
https://github.com/hashicorp/terraform
internal/cloud/e2e/backend_apply_before_init_test.go
{ "preset": "empty", "rules": { "align_multiline_comment": true, "array_indentation": true, "array_syntax": { "syntax": "short" }, "binary_operator_spaces": { "default": "single_space" }, "blank_line_after_namespace": true, ...
json
github
https://github.com/laravel/framework
pint.json
#!/usr/bin/python from unittest import TestCase, main from config import CONF_DIR, NUAUTH_VERSION from common import createClientWithCerts, connectClient from os import path from inl_tests.replace_file import ReplaceFile from logging import warning from nuauth import Nuauth from nuauth_conf import NuauthConf ECHO_BIN ...
unknown
codeparrot/codeparrot-clean
import logging import re from autotest.client.shared import utils, error from virttest import env_process @error.context_aware def run(test, params, env): """ Check smbios table : 1) Run the qemu command as nobody 2) check the process is same as the user's :param test: QEMU test object. :param...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2009-today OpenERP SA (<http://www.openerp.com>) # # This program is free software: you can redistribute it and/or modify # it under the terms o...
unknown
codeparrot/codeparrot-clean
# # (c) 2016 Red Hat Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is d...
unknown
codeparrot/codeparrot-clean
# This test suite exercises core, generic transactions behavior. The tests in this suite, pulled # from 'jstests/core/txns', should be "topology agnostic". They ideally generalize to single replica # sets and sharded clusters. test_kind: js_test selector: roots: - jstests/core/txns/**/*.js - jstests/libs/ran...
unknown
github
https://github.com/mongodb/mongo
buildscripts/resmokeconfig/suites/unsplittable_collections_on_random_shard_jscore_txns.yml
""" The CustomPermissionsUser users email as the identifier, but uses the normal Django permissions model. This allows us to check that the PermissionsMixin includes everything that is needed to interact with the ModelBackend. """ from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin from django.con...
unknown
codeparrot/codeparrot-clean
- Feature Name: User-defined schemas - Status: in progress - Start Date: 2020-05-01 - Authors: Raphael Poss, Andrew Werner, Rohan Yadav, Lucy Zhang - RFC PR: [#48276](https://github.com/cockroachdb/cockroach/pull/48276), previously [#30916](https://github.com/cockroachdb/cockroach/pull/30916) - Cockroach Issue: [#2...
unknown
github
https://github.com/cockroachdb/cockroach
docs/RFCS/20200501_user_defined_schemas.md
from unittest import TestCase from django.contrib.auth.models import Group from django.core.exceptions import PermissionDenied from hs_core.hydroshare import resource from hs_core.testing import MockIRODSTestCaseMixin from hs_core import hydroshare from hs_access_control.models import PrivilegeCodes class TestSetDow...
unknown
codeparrot/codeparrot-clean
""" Compute the intersection of seam edges with pixels of a width x height texture. Written by Zachary Ferguson """ import math from .util import UV_to_XY, range_min_max def compute_edge_intervals(edge, width, height): """Compute the intervals along an edge.""" interval = {0, 1} v0 = UV_to_XY(edge[0], ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # -*- encoding: utf-8 -*- # CREATED:2015-02-14 19:13:49 by Brian McFee <brian.mcfee@nyu.edu> """Unit tests for time and frequency conversion""" import os import sys try: os.environ.pop("LIBROSA_CACHE_DIR") except KeyError: pass import warnings import librosa import numpy as np import pyt...
unknown
codeparrot/codeparrot-clean
# Copyright 2013 Hewlett-Packard Development Company, L.P. # # 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 requir...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- import random import re import time import urlparse, urllib,urllib2,cookielib from base64 import b64encode import xbmc import xbmcgui,xbmcaddon,os __scriptID__ = 'script.module.liveresolver' __addon__ = xbmcaddon.Addon(__scriptID__) class cInputWindow(xbmcgui.WindowDialog): def __init__(s...
unknown
codeparrot/codeparrot-clean
# ----------------------------------------------------------------------------- # Copyright 2017 Aleksey Litvinov litvinov.aleks@gmail.com # # 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 # # ...
unknown
codeparrot/codeparrot-clean
/*------------------------------------------------------------------------- * * tblspcdesc.c * rmgr descriptor routines for commands/tablespace.c * * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATI...
c
github
https://github.com/postgres/postgres
src/backend/access/rmgrdesc/tblspcdesc.c
/* * 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/support/DelegatingIntroductionInterceptor.java
// Callout @mixin docs-callout() { .docs-callout { // Default theme is purple to blue --callout-theme: var(--purple-to-blue-horizontal-gradient); border-width: 0; border-block-start-width: 2px; border-block-end-width: 1px; border-style: solid; margin-block: 1.5rem; border-image: var(-...
unknown
github
https://github.com/angular/angular
adev/shared-docs/styles/docs/_callout.scss
{ "five-quotes": {"type":"string","value":"Closing with five quotes\n\"\""}, "four-quotes": {"type":"string","value":"Closing with four quotes\n\""} }
json
github
https://github.com/python/cpython
Lib/test/test_tomllib/data/valid/five-quotes.json
""" resolveurl XBMC Addon Copyright (C) 2018 jsergio 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. ...
unknown
codeparrot/codeparrot-clean