code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
from __future__ import print_function import logging import requests from tenacity import retry, wait_fixed, TryAgain from django.conf import settings from .utils import format_msisdn, read_cvs_file headers = ({'Content-Type': 'application/x-www-form-urlencode'}) logger = logging.getLogger('bulksms') # API Authenti...
unknown
codeparrot/codeparrot-clean
{ "name": "axios" }
json
github
https://github.com/axios/axios
test/manual/fixture.json
# orm/events.py # Copyright (C) 2005-2012 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 """ORM event interfaces. """ from .. import event, exc, util orm = util.importlater("sq...
unknown
codeparrot/codeparrot-clean
package kotlinx.coroutines.flow import kotlinx.coroutines.testing.* import kotlinx.coroutines.* import kotlin.test.* class LintTest: TestBase() { /** * Tests that using [SharedFlow.toList] and similar functions by passing a mutable collection does add values * to the provided collection. */ @Te...
kotlin
github
https://github.com/Kotlin/kotlinx.coroutines
kotlinx-coroutines-core/common/test/flow/operators/LintTest.kt
# Django settings for voodoo project. # -*- coding:utf-8 -*- import os import sys sys.path.insert(0, os.path.abspath('..')) PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__)) at_project_root = lambda *args: os.path.join(PROJECT_ROOT, *args) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', ...
unknown
codeparrot/codeparrot-clean
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may n...
java
github
https://github.com/apache/kafka
clients/src/test/java/org/apache/kafka/common/requests/DeleteAclsResponseTest.java
// Copyright 2017 The Cockroach Authors. // // Use of this software is governed by the CockroachDB Software License // included in the /LICENSE file. //go:build !windows package cli import ( "context" "os" "os/exec" "os/signal" "path/filepath" "strconv" "strings" "github.com/cockroachdb/cockroach/pkg/cli/cl...
go
github
https://github.com/cockroachdb/cockroach
pkg/cli/start_unix.go
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <immintrin.h> PYTORCH_QNNP_INLINE __m128i sub_zero_point(const __m128i va, co...
c
github
https://github.com/pytorch/pytorch
aten/src/ATen/native/quantized/cpu/qnnpack/src/requantization/runtime-sse2.h
from coalib.bearlib.abstractions.Linter import linter from coalib.settings.Setting import typed_list from dependency_management.requirements.DistributionRequirement import ( DistributionRequirement) from dependency_management.requirements.AnyOneOfRequirements import ( AnyOneOfRequirements) from dependency_manag...
unknown
codeparrot/codeparrot-clean
// This is a comment. 'use strict'; /** * This is a comment. */ import 'client-only'; export default function() { return null; }
javascript
github
https://github.com/vercel/next.js
crates/next-custom-transforms/tests/errors/react-server-components/client-graph/client-only/output.js
import requests import time from prettytable import PrettyTable import sys, getopt from cmdopt import * from network import * from collections import namedtuple def PrintStat(array): print ("\n\n") t = PrettyTable(['Method', 'URL','# Request','MIN','MAX','AVG','RSD']) for i in array: i.statistics() t.add_row(i....
unknown
codeparrot/codeparrot-clean
""" Current-flow betweenness centrality measures. """ # Copyright (C) 2010-2012 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. import random import networkx as nx from networkx.algorithms.centrality.flow_mat...
unknown
codeparrot/codeparrot-clean
import React from "react"; import { Field, RichText as JssRichText, } from "@sitecore-jss/sitecore-jss-nextjs"; interface Fields { Text: Field<string>; } export type RichTextProps = { params: { [key: string]: string }; fields: Fields; }; export const Default = (props: RichTextProps): JSX.Element => { con...
typescript
github
https://github.com/vercel/next.js
examples/cms-sitecore-xmcloud/src/components/RichText.tsx
// Copyright 2025 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
go
github
https://github.com/etcd-io/etcd
cache/cache.go
package kotlinx.coroutines.internal import java.util.concurrent.atomic.* /** * Atomic array with lock-free reads and synchronized modifications. It logically has an unbounded size, * is implicitly filled with nulls, and is resized on updates as needed to grow. */ internal class ResizableAtomicArray<T>(initialLengt...
kotlin
github
https://github.com/Kotlin/kotlinx.coroutines
kotlinx-coroutines-core/jvm/src/internal/ResizableAtomicArray.kt
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """ ...
unknown
codeparrot/codeparrot-clean
import { test } from '../../test'; export default test({ warnings: [ { code: 'css_unused_selector', end: { character: 72, column: 3, line: 10 }, message: 'Unused CSS selector "h4"', start: { character: 70, column: 1, line: 10 } } ] });
javascript
github
https://github.com/sveltejs/svelte
packages/svelte/tests/css/samples/unused-selector-in-between/_config.js
from django.test import TestCase from django.core.management import call_command from django.core import mail from django.core.urlresolvers import reverse from contactbox.models import Message, Receiver class MainTestCase(TestCase): def setUp(self): Receiver.objects.create( name='test', ...
unknown
codeparrot/codeparrot-clean
__author__ = 'Batchu Vishal' import pygame class OnBoard(pygame.sprite.Sprite): ''' This class defines all inanimate objects that we need to display on our board. Any object that is on the board and not a person, comes under this class (ex. Coins,Ladders,Walls etc) Sets up the image and its position fo...
unknown
codeparrot/codeparrot-clean
<?php namespace Illuminate\Routing; use Illuminate\Contracts\Routing\UrlRoutable; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Routing\Exceptions\BackedEnumCaseNotFoundException; use Illuminate\Support\Reflector; use Illuminate\Support\Str; class ImplicitRouteBinding { /** * Resol...
php
github
https://github.com/laravel/framework
src/Illuminate/Routing/ImplicitRouteBinding.php
# Copyright (C) 2013 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
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
configuration-metadata/spring-boot-configuration-metadata-changelog-generator/src/test/java/org/springframework/boot/configurationmetadata/changelog/ChangelogGeneratorTests.java
#!/usr/bin/env python # -*- coding: utf-8 -*- """ log util :copyright: Wenjie Lei (lei@princeton.edu), 2016 :license: GNU Lesser General Public License, version 3 (LGPLv3) (http://www.gnu.org/licenses/lgpl-3.0.en.html) """ from __future__ import (print_function, division, absolute_import) import numpy as ...
unknown
codeparrot/codeparrot-clean
/* * Copyright (c) 2007 Mockito contributors * This program is made available under the terms of the MIT License. */ package org.mockito; import static org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress; import org.mockito.internal.matchers.ArrayEquals; import org.mockito.internal.matchers.Com...
java
github
https://github.com/mockito/mockito
mockito-core/src/main/java/org/mockito/AdditionalMatchers.java
#!/usr/bin/env python3 # # Copyright 2015 Signal Processing Devices Sweden AB. All rights reserved. # # Description: ADQ14 FWDAQ streaming example # Documentation: # import numpy as np import ctypes as ct import matplotlib.pyplot as plt import sys import time import os sys.path.insert(1, os.path.dirname(os.path.re...
unknown
codeparrot/codeparrot-clean
from wofrysrw.beamline.optical_elements.mirrors.srw_mirror import SRWMirror, Orientation, SimulationMethod, TreatInputOutput from syned.beamline.shape import Sphere from oasys_srw.srwlib import SRWLOptMirSph class SRWSphericalMirror(SRWMirror): def __init__(self, name ...
unknown
codeparrot/codeparrot-clean
# Require the OptionParser code. require 'optparse' # Create an OptionParser object. parser = OptionParser.new # Define one or more options. parser.on('-x', 'Whether to X') do |value| p ['x', value] end parser.on('-y', 'Whether to Y') do |value| p ['y', value] end parser.on('-z', 'Whether to Z') do |value| p ['z'...
ruby
github
https://github.com/ruby/ruby
doc/optparse/ruby/basic.rb
# frozen_string_literal: true # :markup: markdown module ActionDispatch # # Action Dispatch PublicExceptions # # When called, this middleware renders an error page. By default if an HTML # response is expected it will render static error pages from the `/public` # directory. For example when this middleware...
ruby
github
https://github.com/rails/rails
actionpack/lib/action_dispatch/middleware/public_exceptions.rb
import io import random import docker import six from . import api_test BUSYBOX = api_test.BUSYBOX class TestRegressions(api_test.BaseTestCase): def test_443_handle_nonchunked_response_in_stream(self): dfile = io.BytesIO() with self.assertRaises(docker.errors.APIError) as exc: for li...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- import subprocess import sys import botocore import click from jungle.session import create_session def format_output(instances, flag): """return formatted string for instance""" out = [] line_format = '{0}\t{1}\t{2}\t{3}\t{4}' name_len = _get_max_name_len(instances) + 3 if...
unknown
codeparrot/codeparrot-clean
## # Copyright (C) 2014 Jessica Tallon & Matt Molyneaux # # This file is part of Inboxen. # # Inboxen is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or #...
unknown
codeparrot/codeparrot-clean
#include "pyconfig.h" // Py_GIL_DISABLED // Need limited C API version 3.5 for PyCodec_NameReplaceErrors() #if !defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API) # define Py_LIMITED_API 0x03050000 #endif #include "parts.h" static PyObject * codec_namereplace_errors(PyObject *Py_UNUSED(module), PyObject *exc) {...
c
github
https://github.com/python/cpython
Modules/_testlimitedcapi/codec.c
from pymongo import MongoClient from progressbar import ProgressBar, Bar, Percentage, FormatLabel, ETA import numpy as np np.set_printoptions(threshold=np.nan) client = MongoClient() db = client.dotabot matches = db.matches # We're going to create a training matrix, X, where each # row is a different match and each ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- ############################################################################### # # Module for OpenERP # Copyright (C) 2014 Akretion (http://www.akretion.com). # Copyright (C) 2010-2013 Akretion LDTA (<http://www.akretion.com>) # @author Sébastien BEAU <sebastien.beau@akretion.com> # @...
unknown
codeparrot/codeparrot-clean
""" Index images on a tensor database """ import concurrent.futures from loader.reader import Importer from tensors.tensor_database import TensorDatabase from features.extractors import FeatureExtractor from features.extractors import Features class Indexer: """ Indexer of images """ def __init__(self...
unknown
codeparrot/codeparrot-clean
# -*- encoding: utf-8 -*- import os import base64 from openerp.tools.safe_eval import safe_eval from openerp import models, fields, api, _ from openerp.exceptions import except_orm from openerp.tools import config from openerp import SUPERUSER_ID import core from java_oe import JAVA_MAPPING, check_java_list, PARAM_...
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 logging import sys from lib.policy import PolicySet from lib.subcommand import SubCommand LOGGER = logging.getLogger('dmprof') class ExpandCommand(...
unknown
codeparrot/codeparrot-clean
"""Deals with creating the normal mode representation arrays. 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 Foundation, either version 3 of the License, or...
unknown
codeparrot/codeparrot-clean
from zope.interface import implements from twisted.internet import reactor from twisted.internet import defer from webut.skin import iskin from ldaptor.protocols import pureldap from ldaptor.protocols.ldap import ldapsyntax, distinguishedname from ldaptor import generate_password, interfaces from ldaptor.apps.webui.uri...
unknown
codeparrot/codeparrot-clean
# جولة سريعة [[open-in-colab]] ابدأ رحلتك مع مكتبة 🤗 Transformers! سواء كنت مطورًا أو مستخدمًا عاديًا، ستساعدك هذه الجولة السريعة على البدء وستُظهر لك كيفية استخدام [`pipeline`] للاستنتاج، وتحميل نموذج مُدرب مسبقًا ومعالج مُسبق مع [AutoClass](./model_doc/auto)، وتدريب نموذج بسرعة باستخدام PyTorch أو TensorFlow. إذا ...
unknown
github
https://github.com/huggingface/transformers
docs/source/ar/quicktour.md
/* 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/Section.cpp
################################################################################ # Peach - Computational Intelligence for Python # Jose Alexandre Nalon # # This file: tutorial/norms-conorms.py # How to use t-norms and s-norms (norms and conorms) ##########################################################################...
unknown
codeparrot/codeparrot-clean
""" Integration Tests for LMS instructor-initiated background tasks. Runs tasks on answers to course problems to validate that code paths actually work. """ import csv import logging import json from mock import patch import textwrap from celery.states import SUCCESS, FAILURE from django.contrib.auth.models import U...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # This software is Copyright (c) 2014, Sanju Kholia <sanju.kholia at gmail.com> # and it is hereby released to the general public under the following terms: # # Redistribution and use in source and binary forms, with or without modification, # are permitted. import sys import os import struct fr...
unknown
codeparrot/codeparrot-clean
# Serde &emsp; [![Build Status]][actions] [![Latest Version]][crates.io] [![serde msrv]][Rust 1.56] [![serde_derive msrv]][Rust 1.71] [Build Status]: https://img.shields.io/github/actions/workflow/status/serde-rs/serde/ci.yml?branch=master [actions]: https://github.com/serde-rs/serde/actions?query=branch%3Amaster [Lat...
unknown
github
https://github.com/serde-rs/serde
README.md
######################################################################## # # (C) 2015, Chris Houseknecht <chouse@ansible.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 Fo...
unknown
codeparrot/codeparrot-clean
# Copyright (C) 2013 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2013 Isaku Yamahata <yamahata at private email ne jp> # # 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 # # h...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # # Copyright (C) Citrix Systems Inc. # # This program 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; version 2.1 only. # # This program is distributed in the hope that it will be...
unknown
codeparrot/codeparrot-clean
global: scrape_native_histograms: true scrape_protocols: ['PrometheusText0.0.4'] scrape_configs: - job_name: prometheus scrape_native_histograms: false static_configs: - targets: ['localhost:8080']
unknown
github
https://github.com/prometheus/prometheus
config/testdata/global_scrape_protocols_and_local_disable_scrape_native_hist.good.yml
#! /usr/bin/env python from __future__ import print_function import openturns as ot parameters = ot.GammaMuSigma(0.1, 0.489898, -0.5) distribution = ot.ParametrizedDistribution(parameters) print("Distribution ", distribution) # Is this distribution elliptical ? print("Elliptical = ", distribution.isElliptical()) #...
unknown
codeparrot/codeparrot-clean
# Owner(s): ["module: dataloader"] # ruff: noqa: F841 import ctypes import errno import faulthandler import functools import gc import itertools import math import operator import os import signal import sys import tempfile import time import unittest import warnings import torch import torch.utils.data.datapipes as ...
python
github
https://github.com/pytorch/pytorch
test/test_dataloader.py
relative_included
html
github
https://github.com/jekyll/jekyll
test/source/_posts/include_relative/rel_include.html
// This file is part of ICU4X. For terms of use, please see the file // called LICENSE at the top level of the ICU4X source tree // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). #[cfg(feature = "alloc")] use crate::preferences::extensions::unicode::enum_keyword; #[cfg(feature = "alloc")] enum_...
rust
github
https://github.com/nodejs/node
deps/crates/vendor/icu_locale_core/src/preferences/extensions/unicode/keywords/currency_format.rs
<?php namespace Illuminate\Contracts\Concurrency; use Closure; use Illuminate\Support\Defer\DeferredCallback; interface Driver { /** * Run the given tasks concurrently and return an array containing the results. */ public function run(Closure|array $tasks): array; /** * Defer the executio...
php
github
https://github.com/laravel/framework
src/Illuminate/Contracts/Concurrency/Driver.php
{ "extends": [ "stylelint-config-twbs-bootstrap" ], "reportInvalidScopeDisables": true, "reportNeedlessDisables": true, "overrides": [ { "files": "**/*.scss", "rules": { "declaration-property-value-disallowed-list": { "border": "none", "outline": "none" ...
json
github
https://github.com/twbs/bootstrap
.stylelintrc.json
########################################################################## # # Copyright (c) 2012-2014, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redi...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python """Execute the tests for splazers. The golden test outputs are generated by the script generate_outputs.sh. You have to give the root paths to the source and the binaries as arguments to the program. These are the paths to the directory that contains the 'projects' directory. Usage: run_tests...
unknown
codeparrot/codeparrot-clean
class Foo { companion object { @JvmStatic fun foo(x: String): String { return x } } }
kotlin
github
https://github.com/JetBrains/kotlin
analysis/analysis-api-standalone/testData/sessionBuilder/conflict/dependent/Foo.kt
import unittest from test.support import (cpython_only, is_wasi, requires_limited_api, Py_DEBUG, set_recursion_limit, skip_on_s390x, skip_emscripten_stack_overflow, skip_wasi_stack_overflow, skip_if_sanitizer, import...
python
github
https://github.com/python/cpython
Lib/test/test_call.py
#!/usr/bin/python # vim:sw=4:softtabstop=4:expandtab:set fileencoding=ISO8859-2 # # JumpBridge.py, part of the FleetPanel # # Copyright (c) 2008-2009 Pawe³ 'Reef' Polewicz # All rights reserved. # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution...
unknown
codeparrot/codeparrot-clean
#! /usr/bin/env python macros = [\ "slits.C", "write_ntuple_to_file_advanced.C", "write_ntuple_to_file.C", "write_to_file.C", "ExampleMacro.C", "ExampleMacro_GUI.C", "makeMySelector.C", "RunMySelector.C", "macro1.C", "macro2.C", "macro3.C", "macro4.C", "macro5.C", "macro6.C", "macro7.C", "macro8.C", "macro9.C", "read_...
unknown
codeparrot/codeparrot-clean
This crate defines an unsafe marker trait, StableDeref, for container types which deref to a fixed address which is valid even when the containing type is moved. For example, Box, Vec, Rc, Arc and String implement this trait. Additionally, it defines CloneStableDeref for types like Rc where clones deref to the same add...
unknown
github
https://github.com/nodejs/node
deps/crates/vendor/stable_deref_trait/README.md
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor class RadioFranceIE(InfoExtractor): _VALID_URL = r'^https?://maison\.radiofrance\.fr/radiovisions/(?P<id>[^?#]+)' IE_NAME = 'radiofrance' _TEST = { 'url': 'http://maison.radiofrance.fr/radiovision...
unknown
codeparrot/codeparrot-clean
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
unknown
codeparrot/codeparrot-clean
#! /usr/bin/env python # # $Id: shimmer_timesync.py,v 1.1 2010/03/31 19:35:39 ayer1 Exp $ # # Copyright (c) 2007, Intel Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributi...
unknown
codeparrot/codeparrot-clean
/* Copyright (c) 2006, 2025, Oracle and/or its affiliates. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is designed to work with certain software (including...
c
github
https://github.com/mysql/mysql-server
sql/sql_parse.h
#!/usr/local/bin/env python # ============================================================================== # MODULE DOCSTRING # ============================================================================== """ MultistateSampler ================= Base multi-thermodynamic state multistate class COPYRIGHT Current ...
unknown
codeparrot/codeparrot-clean
#define TORCH_ASSERT_NO_OPERATORS #include <ATen/native/Normalization.h> #include <ATen/TensorIterator.h> #include <ATen/native/cpu/Loops.h> #include <ATen/cpu/vec/vec.h> #include <ATen/Dispatch.h> namespace at::native { namespace { void renorm_scale_factor_impl(TensorIteratorBase& iter, double maxnorm) { AT_DISP...
cpp
github
https://github.com/pytorch/pytorch
aten/src/ATen/native/cpu/RenormKernel.cpp
""" Test the scalar constructors, which also do type-coercion """ import fractions import inspect import platform import sys import types from typing import Any, Literal import pytest import numpy as np from numpy._core import sctypes from numpy.testing import assert_equal, assert_raises class TestAsIntegerRatio: ...
python
github
https://github.com/numpy/numpy
numpy/_core/tests/test_scalar_methods.py
/* * 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.impl.base.test.cases.annotations import org.jetbrains.kotlin.analys...
kotlin
github
https://github.com/JetBrains/kotlin
analysis/analysis-api-impl-base/testFixtures/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/annotations/AbstractAnalysisApiSpecificAnnotationOnDeclarationTest.kt
# (C) British Crown Copyright 2015, Met Office # # This file is part of Iris. # # Iris is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option) any later ve...
unknown
codeparrot/codeparrot-clean
from __future__ import (absolute_import, division, print_function, unicode_literals) import datetime import json from copy import deepcopy from collections import defaultdict __version__ = '0.0.8.dev' class Color(object): """ A color type. Internally stored as RGB, and does not suppor...
unknown
codeparrot/codeparrot-clean
#ifndef HEX_LL_H #define HEX_LL_H extern const signed char hexval_table[256]; static inline unsigned int hexval(unsigned char c) { return hexval_table[c]; } /* * Convert two consecutive hexadecimal digits into a char. Return a * negative value on error. Don't run over the end of short strings. */ static inline ...
c
github
https://github.com/git/git
hex-ll.h
#ifndef TREE_WALK_H #define TREE_WALK_H #include "hash.h" struct index_state; struct repository; /** * The tree walking API is used to traverse and inspect trees. */ /** * An entry in a tree. Each entry has a sha1 identifier, pathname, and mode. */ struct name_entry { struct object_id oid; const char *path; ...
c
github
https://github.com/git/git
tree-walk.h
""" Base-backends for django-rcsfield. Used to hold common functionality of all backends. Every backend module implementd a very simple API. Three functions are exported: * fetch(key, revision): knows how to fetch a specific revision of the entity referenced by ``key`` * commit(key, data): knows how to com...
unknown
codeparrot/codeparrot-clean
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Model and functions related to blackbody radiation. .. _blackbody-planck-law: Blackbody Radiation ------------------- Blackbody flux is calculated with Planck law (:ref:`Rybicki & Lightman 1979 <ref-rybicki1979>`): .. math:: B_{\\lambda}(T) = ...
unknown
codeparrot/codeparrot-clean
"""Flask SQLAlchemy ORM models for Social Auth""" from sqlalchemy import Column, Integer, String, ForeignKey from sqlalchemy.orm import relationship, backref from sqlalchemy.schema import UniqueConstraint from sqlalchemy.ext.declarative import declarative_base from social.utils import setting_name, module_member from ...
unknown
codeparrot/codeparrot-clean
__all__ = ['Distribution'] import re import os import sys import warnings import distutils.log import distutils.core import distutils.cmd from distutils.core import Distribution as _Distribution from distutils.errors import (DistutilsOptionError, DistutilsPlatformError, DistutilsSetupError) from setuptools.depend...
unknown
codeparrot/codeparrot-clean
# Based on the buildah connection plugin # Copyright (c) 2018 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # # Connection plugin to interact with existing podman containers. # https://github.com/containers/libpod # # Written by: Tomas Tomecek (https://gi...
unknown
codeparrot/codeparrot-clean
############################################################################## # 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
# -*- coding: utf-8 -*- # Copyright: (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 from itertools import product import pytest # the module we are actually te...
unknown
codeparrot/codeparrot-clean
# coding=utf-8 from __future__ import absolute_import __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' __copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License" import os from jinja2.loaders import FileSystemLoader, TemplateNotFound...
unknown
codeparrot/codeparrot-clean
"""Tests for jslex.""" # originally from https://bitbucket.org/ned/jslex from django.test import SimpleTestCase from django.utils.jslex import JsLexer, prepare_js_for_gettext class JsTokensTest(SimpleTestCase): LEX_CASES = [ # ids ("a ABC $ _ a123", ["id a", "id ABC", "id $", "id _", "id a123"]), ...
unknown
codeparrot/codeparrot-clean
/* * Copyright (c) 2020 Mockito contributors * This program is made available under the terms of the MIT License. */ package org.mockitoinline; import org.junit.Test; import org.mockito.Mockito; import static junit.framework.TestCase.assertEquals; public class InitializationTest { @Test public void assur...
java
github
https://github.com/mockito/mockito
mockito-integration-tests/inline-mocks-tests/src/test/java/org/mockitoinline/InitializationTest.java
use std::{borrow::Cow, fmt::Write as _}; use criterion::{black_box, criterion_group, criterion_main, Criterion}; fn compare_quoters(c: &mut Criterion) { let mut group = c.benchmark_group("Compare Quoters"); let quoter = actix_router::Quoter::new(b"", b""); let path_quoted = (0..=0x7f).fold(String::new(),...
rust
github
https://github.com/actix/actix-web
actix-router/benches/quoter.rs
//// [tests/cases/compiler/arrowFunctionInConstructorArgument1.ts] //// //// [arrowFunctionInConstructorArgument1.ts] class C { constructor(x: () => void) { } } var c = new C(() => { return asdf; } ) // should error //// [arrowFunctionInConstructorArgument1.js] "use strict"; class C { constructor(x) { } } var...
javascript
github
https://github.com/microsoft/TypeScript
tests/baselines/reference/arrowFunctionInConstructorArgument1.js
/* File generated by Tools/ssl/make_ssl_data.py */ /* Generated on 2025-03-26T13:48:34.811613+00:00 */ /* Generated from Git commit OpenSSL_1_1_1w-0-ge04bd3433f */ /* generated from args.lib2errnum */ static struct py_ssl_library_code library_codes[] = { #ifdef ERR_LIB_ASN1 {"ASN1", ERR_LIB_ASN1}, #endif #ifdef ER...
c
github
https://github.com/python/cpython
Modules/_ssl_data_111.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...
unknown
github
https://github.com/apache/hadoop
hadoop-common-project/hadoop-common/src/site/markdown/release/0.20.3/CHANGELOG.0.20.3.md
# epydoc -- Command line interface # # Copyright (C) 2005 Edward Loper # Author: Edward Loper <edloper@loper.org> # URL: <http://epydoc.sf.net> # # $Id: cli.py 1678 2008-01-29 17:21:29Z edloper $ """ Command-line interface for epydoc. Abbreviated Usage:: epydoc [options] NAMES... NAMES... The...
unknown
codeparrot/codeparrot-clean
from ..Qt import QtGui, QtCore from .. import functions as fn __all__ = ['PathButton'] class PathButton(QtGui.QPushButton): """Simple PushButton extension that paints a QPainterPath centered on its face. """ def __init__(self, parent=None, path=None, pen='default', brush=None, size=(30,30), margin=7): ...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2014 Quobyte Inc. # Copyright (c) 2013 Red Hat, 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...
unknown
codeparrot/codeparrot-clean
# # (c) 2017 Michael De La Rue # # 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...
unknown
codeparrot/codeparrot-clean
// Copyright 2017 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
go
github
https://github.com/etcd-io/etcd
client/v3/namespace/lease.go
//===--- ObjCBridge.h - Swift Language Objective-C Bridging ABI -*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
c
github
https://github.com/apple/swift
include/swift/Runtime/ObjCBridge.h
from capa.tests.response_xml_factory import MultipleChoiceResponseXMLFactory from lms.djangoapps.course_blocks.api import get_course_blocks from openedx.core.djangolib.testing.utils import get_mock_request from student.models import CourseEnrollment from student.tests.factories import UserFactory from xmodule.modulesto...
unknown
codeparrot/codeparrot-clean
# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr # copyright 2003-2010 Sylvain Thenault, all rights reserved. # contact mailto:thenault@gmail.com # # This file is part of logilab-astng. # # logilab-astng is free software: you can redi...
unknown
codeparrot/codeparrot-clean
"""Test utilities for writing Pulp tests Part of functionalities of Pulp are defined in this module and have utilities of single repository synchronization, single sequential repository sync, sequential repository re-sync. """ import logging from robottelo import ssh from robottelo.cli.base import CLIReturnCodeError...
unknown
codeparrot/codeparrot-clean
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
unknown
codeparrot/codeparrot-clean
#include "parts.h" static PyObject* test_gc_control(PyObject *self, PyObject *Py_UNUSED(ignored)) { int orig_enabled = PyGC_IsEnabled(); const char* msg = "ok"; int old_state; old_state = PyGC_Enable(); msg = "Enable(1)"; if (old_state != orig_enabled) { goto failed; } msg = "I...
c
github
https://github.com/python/cpython
Modules/_testcapi/gc.c
import vtk from vtk.test import Testing # Data from our friends at Sandia points = vtk.vtkPoints() points.InsertNextPoint(0,0,0) points.InsertNextPoint(1,0,0) points.InsertNextPoint(1,1,0) points.InsertNextPoint(0,1,0) points.InsertNextPoint(0,0,5) points.InsertNextPoint(1,0,4) points.InsertNextPoint(1,1,4) points.Ins...
unknown
codeparrot/codeparrot-clean