code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
<?php namespace Illuminate\Contracts\Auth; interface SupportsBasicAuth { /** * Attempt to authenticate using HTTP Basic Auth. * * @param string $field * @param array $extraConditions * @return \Symfony\Component\HttpFoundation\Response|null */ public function basic($field = '...
php
github
https://github.com/laravel/framework
src/Illuminate/Contracts/Auth/SupportsBasicAuth.php
/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
typescript
github
https://github.com/apache/airflow
airflow-core/src/airflow/ui/src/utils/getMetaKey.ts
# # 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
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.chat_models.tongyi import ChatTongyi # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
python
github
https://github.com/langchain-ai/langchain
libs/langchain/langchain_classic/chat_models/tongyi.py
<?php namespace Illuminate\Redis; use Closure; use Illuminate\Contracts\Redis\Factory; use Illuminate\Redis\Connections\Connection; use Illuminate\Redis\Connectors\PhpRedisConnector; use Illuminate\Redis\Connectors\PredisConnector; use Illuminate\Support\Arr; use Illuminate\Support\ConfigurationUrlParser; use Invalid...
php
github
https://github.com/laravel/framework
src/Illuminate/Redis/RedisManager.php
__author__ = 'saeedamen' # Saeed Amen / saeed@thalesians.com # # Copyright 2015 Thalesians Ltd. - http//www.thalesians.com / @thalesians # # 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://...
unknown
codeparrot/codeparrot-clean
import xml.dom.minidom document = """\ <slideshow> <title>Demo slideshow</title> <slide><title>Slide title</title> <point>This is a demo</point> <point>Of a program for processing slides</point> </slide> <slide><title>Another demo slide</title> <point>It is important</point> <point>To have more than</point> <point>on...
unknown
codeparrot/codeparrot-clean
# Copyright (C) 2003-2007, 2009, 2010 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED ...
unknown
codeparrot/codeparrot-clean
from __future__ import absolute_import, unicode_literals from django.http import HttpResponseBadRequest from django.shortcuts import render_to_response from django.template import TemplateDoesNotExist from django.template.engine import Engine from django.utils.safestring import mark_safe try: from django.template...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- import time import re import urlparse from ..internal.misc import json from ..internal.XFSAccount import XFSAccount class UptoboxCom(XFSAccount): __name__ = "UptoboxCom" __type__ = "account" __version__ = "0.23" __status__ = "testing" __description__ = """Uptobox.com acco...
unknown
codeparrot/codeparrot-clean
--- --- I'm a file with dots.
unknown
github
https://github.com/jekyll/jekyll
test/source/_with.dots/file.with.dots.md
#!/usr/bin/env python3 # GPL License, Version 3.0 or later import os import subprocess import textwrap import re BASE_DIR = os.path.join(os.path.dirname(__file__), "..") COMMAND_NAME = 'nirw-search' def patch_help_test(help_output): help_output = help_output.replace( 'usage: ' + COMMAND_NAME, 'us...
unknown
codeparrot/codeparrot-clean
'use strict' exports.index = function(req, res){ res.render('index', { title: 'Route Separation Example' }); };
javascript
github
https://github.com/expressjs/express
examples/route-separation/site.js
//// [tests/cases/conformance/async/es6/awaitClassExpression_es6.ts] //// //// [awaitClassExpression_es6.ts] declare class C { } declare var p: Promise<typeof C>; async function func(): Promise<void> { class D extends (await p) { } } //// [awaitClassExpression_es6.js] "use strict"; function func() { retu...
javascript
github
https://github.com/microsoft/TypeScript
tests/baselines/reference/awaitClassExpression_es6.js
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Dict, Union, Iterable, Optional from typing_extensions import Literal, Required, TypeAlias, TypedDict from ..shared_params.metadata import Metadata from ..shared.reasoning_effor...
python
github
https://github.com/openai/openai-python
src/openai/types/evals/create_eval_completions_run_data_source_param.py
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2012, Franck Cuny <franck@lumberjaph.net> # # 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 L...
unknown
codeparrot/codeparrot-clean
import django.contrib.gis.db.models.fields from django.db import migrations, models class Migration(migrations.Migration): """ Used for gis.specific migration tests. """ operations = [ migrations.CreateModel( name='Neighborhood', fields=[ ('id', models.Au...
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
Hi! Thanks very much for your interest in Ansible. It means a lot to us. This appears to be something that should be filed against another project or bug tracker. Here's why: * FILL IN << CHOOSE AS APPROPRIATE >> * <https://github.com/ansible/ansible-lint> * <https://github.com/ansible/ansible-runner> * <https://...
unknown
github
https://github.com/ansible/ansible
hacking/ticket_stubs/bug_wrong_repo.md
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may n...
java
github
https://github.com/apache/kafka
clients/src/main/java/org/apache/kafka/common/requests/ShareGroupHeartbeatResponse.java
""" TV module Name: TV.py Description: responds to common TV commands (turn up/down volume, change input, turn on/off, etc) Dependencies: python-cec library CEC compatible TV and controller (Raspberry Pi) Author: Brad Ahlers (github - brad999) """ import cec ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # pep8.py - Check Python source code formatting, according to PEP 8 # Copyright (C) 2006 Johann C. Rocholl <johann@rocholl.net> # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the ...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2012 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 cron_servlet import CronServlet from instance_servlet import InstanceServlet from patch_servlet import PatchServlet from servlet import Servlet, Req...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python2.7 # Copyright 2013 Virantha Ekanayake 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 ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python import argparse as ap #import subprocess import shlex, subprocess import json import xml.etree.ElementTree as ET parser = ap.ArgumentParser(description='Ocr trainner') parser.add_argument( '-dataset', #dest='dataset', type=str, help='Dataset to use' ) parser.add_argument( '-j...
unknown
codeparrot/codeparrot-clean
from django.template import TemplateSyntaxError from django.test import SimpleTestCase from ..utils import TestObj, setup class IfTagTests(SimpleTestCase): @setup({'if-tag01': '{% if foo %}yes{% else %}no{% endif %}'}) def test_if_tag01(self): output = self.engine.render_to_string('if-tag01', {'foo':...
unknown
codeparrot/codeparrot-clean
/********************************************************************** symbol.h - $Author$ created at: Tue Jul 8 15:49:54 JST 2014 Copyright (C) 2014 Yukihiro Matsumoto **********************************************************************/ #include "darray.h" #include "internal.h" #include "internal/con...
c
github
https://github.com/ruby/ruby
symbol.c
# # (c) 2017, 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...
unknown
codeparrot/codeparrot-clean
# -*- test-case-name: twisted.web.test.test_xml -*- # # Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. # """ *S*mall, *U*ncomplicated *X*ML. This is a very simple implementation of XML/HTML as a network protocol. It is not at all clever. Its main features are that it does not: -...
unknown
codeparrot/codeparrot-clean
<!--- Copyright 2020 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 ...
unknown
github
https://github.com/huggingface/transformers
i18n/README_fr.md
import os import sys from select import select from subprocess import Popen, PIPE import rpyc err = "" def handleInterpreter(conn, fd, data): global err if fd == p.stderr.fileno(): datastr = str(data, 'utf8') if datastr == '>>> ': return if 'Type "help", "copyright", "c...
unknown
codeparrot/codeparrot-clean
"""distutils.msvccompiler Contains MSVCCompiler, an implementation of the abstract CCompiler class for the Microsoft Visual Studio. """ # Written by Perry Stoll # hacked by Robin Becker and Thomas Heller to do a better job of # finding DevStudio (through the registry) import sys, os from distutils.errors import \ ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python2 # -*- coding: utf-8 -*- import os import os.path import oauth2 as oauth import json from font_colors import font_colors import getrel import setfav import time from torrentApi import torrent_api as api #name of config file where all keys get stored config = '~/.config/getrel/getrel.json' nzb_pa...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2017, Wei Gao <gaowei3@qq.com> # Copyright: (c) 2018, 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 ANSIBLE...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- import requests import struct from time import time from .utils import get_args class FakePogoApi: def __init__(self, mock): # Fake a 24 hour auth token self._auth_provider = type('', (object,), {"_ticket_expire": (time() + (3600 * 24)) * 1000})() ...
unknown
codeparrot/codeparrot-clean
/* * contrib/btree_gist/btree_float8.c */ #include "postgres.h" #include "btree_gist.h" #include "btree_utils_num.h" #include "utils/float.h" #include "utils/rel.h" #include "utils/sortsupport.h" typedef struct float8key { float8 lower; float8 upper; } float8KEY; /* GiST support functions */ PG_FUNCTION_INFO_V...
c
github
https://github.com/postgres/postgres
contrib/btree_gist/btree_float8.c
# # This file is part of Bakefile (http://bakefile.org) # # Copyright (C) 2009-2013 Vaclav Slavik # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without...
unknown
codeparrot/codeparrot-clean
# frozen_string_literal: true module Jekyll module Drops class Drop < Liquid::Drop include Enumerable NON_CONTENT_METHODS = [:fallback_data, :collapse_document].freeze NON_CONTENT_METHOD_NAMES = NON_CONTENT_METHODS.map(&:to_s).freeze private_constant :NON_CONTENT_METHOD_NAMES # A ...
ruby
github
https://github.com/jekyll/jekyll
lib/jekyll/drops/drop.rb
""" =========== Basic Units =========== """ import math import numpy as np import matplotlib.units as units import matplotlib.ticker as ticker class ProxyDelegate: def __init__(self, fn_name, proxy_type): self.proxy_type = proxy_type self.fn_name = fn_name def __get__(self, obj, objtype=No...
unknown
codeparrot/codeparrot-clean
""" These test the method maybe_promote from core/dtypes/cast.py """ import datetime from decimal import Decimal import numpy as np import pytest from pandas._libs.tslibs import NaT from pandas.core.dtypes.cast import maybe_promote from pandas.core.dtypes.common import is_scalar from pandas.core.dtypes.dtypes impor...
python
github
https://github.com/pandas-dev/pandas
pandas/tests/dtypes/cast/test_promote.py
# 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 # distributed under the...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python3 # Single purpose HTTP server # - accepts POST of ureport JSON and dumps it to a file import sys import json import http.server as BaseHTTPServer import cgi class Handler(BaseHTTPServer.BaseHTTPRequestHandler): def do_POST(self): # parse form data form = cgi.FieldStorage( ...
unknown
codeparrot/codeparrot-clean
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause %YAML 1.2 --- $id: http://devicetree.org/schemas/mfd/brcm,twd.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Broadcom's Timer-Watchdog (aka TWD) maintainers: - Rafał Miłecki <rafal@milecki.pl> description: | Broadcom has a Timer-Watchdo...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/mfd/brcm,twd.yaml
#!/bin/sh # Writes out all of the exported symbols to a file. # This is needed on AIX as symbols are not exported # by an executable by default and need to be listed # specifically for export so that they can be used # by native add-ons. # # The raw symbol data is obtained by using nm on # the .a files which make up th...
unknown
github
https://github.com/nodejs/node
tools/create_expfile.sh
# Copyright (c) 2001-2006 Twisted Matrix Laboratories. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, m...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # -*- coding: UTF-8 -*- # Copyright (c) 2016, Adfinis SyGroup AG # Tobias Rueetschi <tobias.ruetschi@adfinis-sygroup.ch> # 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 ...
unknown
codeparrot/codeparrot-clean
/*! * Bootstrap carousel.js v5.3.8 (https://getbootstrap.com/) * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ (function (global, factory) { typeof exports === 'object' && typeof m...
javascript
github
https://github.com/twbs/bootstrap
js/dist/carousel.js
# # This file is part of Netsukuku, it is based on q2sim.py # # ntksim # (c) Copyright 2007 Alessandro Ordine # # q2sim.py # (c) Copyright 2007 Andrea Lo Pumo aka AlpT <alpt@freaknet.org> # # This source code is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public L...
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 use ...
unknown
codeparrot/codeparrot-clean
from django.template import TemplateSyntaxError from django.test import SimpleTestCase from ..utils import setup class FirstOfTagTests(SimpleTestCase): @setup({"firstof01": "{% firstof a b c %}"}) def test_firstof01(self): output = self.engine.render_to_string("firstof01", {"a": 0, "c": 0, "b": 0}) ...
python
github
https://github.com/django/django
tests/template_tests/syntax_tests/test_firstof.py
# Copyright 2010-2012 RethinkDB, all rights reserved. import gdb import itertools, re class StdPointerPrinter: "Print a smart pointer of some kind" def __init__(self, typename, val): self.typename = typename self.val = val def to_string(self): if self.val['_M_refcount']['_M_pi'] =...
unknown
codeparrot/codeparrot-clean
/* * Copyright 2002-present the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
java
github
https://github.com/spring-projects/spring-framework
spring-context/src/main/java/org/springframework/jmx/support/ConnectorServerFactoryBean.java
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from html import escape import basket import basket.errors from django.conf import settings from django.http import Json...
unknown
codeparrot/codeparrot-clean
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Template for Test</title> </head> <body></body> </html>
html
github
https://github.com/django/django
tests/admin_docs/templates/view_for_loader_test.html
############################################################################### # Copyright 2016 - Climate Research Division # Environment and Climate Change Canada # # This file is part of the "EC-CAS diags" package. # # "EC-CAS diags" is free software: you can redistribute it and/or modify # it under...
unknown
codeparrot/codeparrot-clean
# ================================================================================================== # Copyright 2011 Twitter, Inc. # -------------------------------------------------------------------------------------------------- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
unknown
codeparrot/codeparrot-clean
# $Id$ # # pjsua Python GUI Demo # # Copyright (C)2013 Teluu Inc. (http://www.teluu.com) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) ...
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...
python
github
https://github.com/apache/airflow
airflow-core/tests/unit/utils/test_session.py
install_path: "{{ galaxy_dir }}/collections/ansible_collections" alt_install_path: "{{ galaxy_dir }}/other_collections/ansible_collections" scm_path: "{{ galaxy_dir }}/development" test_repo_path: "{{ galaxy_dir }}/development/ansible_test" test_error_repo_path: "{{ galaxy_dir }}/development/error_test" supported_reso...
unknown
github
https://github.com/ansible/ansible
test/integration/targets/ansible-galaxy-collection-scm/vars/main.yml
// // Response.swift // // Copyright (c) 2014-2018 Alamofire Software Foundation (http://alamofire.org/) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, includ...
swift
github
https://github.com/Alamofire/Alamofire
Source/Core/Response.swift
# -*- coding: utf-8 -*- from django.db import migrations, models from django.db.migrations.optimizer import MigrationOptimizer from django.test import SimpleTestCase from .models import CustomModelBase, EmptyManager class OptimizerTests(SimpleTestCase): """ Tests the migration autodetector. """ def ...
unknown
codeparrot/codeparrot-clean
# frozen_string_literal: true class CallbackJob < ActiveJob::Base before_perform ->(job) { job.history << "CallbackJob ran before_perform" } after_perform ->(job) { job.history << "CallbackJob ran after_perform" } before_enqueue ->(job) { job.history << "CallbackJob ran before_enqueue" } after_enqueue ->(job)...
ruby
github
https://github.com/rails/rails
activejob/test/jobs/callback_job.rb
const range: number = 2 export function generateCodeFrame( source: string, start = 0, end: number = source.length, ): string { // Ensure start and end are within the source length start = Math.max(0, Math.min(start, source.length)) end = Math.max(0, Math.min(end, source.length)) if (start > end) return ...
typescript
github
https://github.com/vuejs/core
packages/shared/src/codeframe.ts
#!/bin/sh # # Copyright (c) 2005 Junio C Hamano # test_description='git apply should handle files with incomplete lines. ' . ./test-lib.sh # setup (echo a; echo b) >frotz.0 (echo a; echo b; echo c) >frotz.1 (echo a; echo b | tr -d '\012') >frotz.2 (echo a; echo c; echo b | tr -d '\012') >frotz.3 for i in 0 1 2 3 ...
unknown
github
https://github.com/git/git
t/t4101-apply-nonl.sh
<?php namespace Illuminate\Container\Attributes; use Attribute; #[Attribute(Attribute::TARGET_CLASS)] final class Scoped { }
php
github
https://github.com/laravel/framework
src/Illuminate/Container/Attributes/Scoped.php
--- navigation_title: "Percentiles" mapped_pages: - https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-percentile-aggregation.html --- # Percentiles aggregation [search-aggregations-metrics-percentile-aggregation] A `multi-value` metrics aggregation that calculates one or mo...
unknown
github
https://github.com/elastic/elasticsearch
docs/reference/aggregations/search-aggregations-metrics-percentile-aggregation.md
imports: - { resource: default.yml } parameters: env(LIFETIME_INTERVAL): 'PT10S' env(LIFETIME_EXPRESSION): '13 seconds' framework: cache: pools: cache.pool1: public: true adapter: cache.system default_lifetime: '%env(LIFETIME_EXPRESSI...
unknown
github
https://github.com/symfony/symfony
src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/CachePools/config.yml
#!/usr/bin/env python import sys import os import re ### output cpp file # qualifiers: # c : embedded constant # m : embedded mutable # n : native # plus: # v : vector # vv : vector vector # vvv : vector vector vector # types: # - native: void, bool, int, string # - objects: the rest def is_native(arg_qua...
unknown
codeparrot/codeparrot-clean
- set_fact: test_ppa_name: 'ppa:git-core/ppa' test_ppa_filename: 'git-core' test_ppa_spec: 'deb https://ppa.launchpadcontent.net/git-core/ppa/ubuntu {{ansible_distribution_release}} main' test_ppa_key: 'E1DF1F24' # http://keyserver.ubuntu.com:11371/pks/lookup?search=0xD06AAF4C11DAB86DF421421EFE6B20ECA7A...
unknown
github
https://github.com/ansible/ansible
test/integration/targets/apt_repository/tasks/apt.yml
#! /usr/bin/env python3 import os import subprocess import sys def svn(*args, svn_dir=None, capture_output=False): # Avoid forgetting this arg. assert svn_dir is None or os.path.isdir(svn_dir) command = ['svn', '--non-interactive'] command.extend(args) stdout = subprocess.PIPE if capture_output ...
unknown
codeparrot/codeparrot-clean
// Copyright 2023 The Cockroach Authors. // // Use of this software is governed by the CockroachDB Software License // included in the /LICENSE file. // Code generated by "stringer"; DO NOT EDIT. package sql import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values h...
go
github
https://github.com/cockroachdb/cockroach
pkg/sql/distsqlblocker_string.go
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required from accounts.forms import AddressForm import datetime from django.utils import timezone from .forms im...
unknown
codeparrot/codeparrot-clean
""" .. todo:: WRITEME """ import logging import sys import numpy from theano.compat.six.moves import xrange from pylearn2.utils.image import Image, ensure_Image logger = logging.getLogger(__name__) def scale_to_unit_interval(ndar,eps=1e-8): """ .. todo:: WRITEME """ ndar = ndar.copy() ...
unknown
codeparrot/codeparrot-clean
########################################################################## # # Copyright (c) 2013, John Haddon. 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 so...
unknown
codeparrot/codeparrot-clean
from PyZ3950 import asn1 oids = {} oids['Z3950'] = {'oid': asn1.OidVal([1, 2, 840, 10003]), 'val': [1, 2, 840, 10003]} oids['Z3950']['ATTRS'] = {'oid': asn1.OidVal([1, 2, 840, 10003, 3]), 'val': [1, 2, 840, 10003, 3]} oids['Z3950']['DIAG'] = {'oid': asn1.OidVal([1, 2, 840, 10003, 4]), 'val': [1, 2, 840, 10003, 4]} oids...
unknown
codeparrot/codeparrot-clean
kind: BUG FIXES body: 'cli: Fixed `terraform init -json` to properly format all backend configuration messages as JSON instead of plain text' time: 2025-11-19T10:30:00.000000Z custom: Issue: "37911"
unknown
github
https://github.com/hashicorp/terraform
.changes/v1.15/BUG FIXES-20251119-103000.yaml
type: lib/benchmark_driver/runner/ractor benchmark: ractor_const: Object ractor: 1
unknown
github
https://github.com/ruby/ruby
benchmark/ractor_const.yml
# jhbuild - a tool to ease building collections of source packages # Copyright (C) 2008 Frederic Peters # # build.py: custom builder pages # # 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; ei...
unknown
codeparrot/codeparrot-clean
from agon_ratings.models import OverallRating from dialogos.models import Comment from django.contrib.contenttypes.models import ContentType from django.db.models import Avg from haystack import indexes from geonode.maps.models import Layer class LayerIndex(indexes.SearchIndex, indexes.Indexable): id = indexes.Int...
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-cloud-storage-project/hadoop-tos/src/main/java/org/apache/hadoop/fs/tosfs/object/response/package-info.java
""" Amd64 Support Module """ # Copyright (C) 2007 Invisigoth - See LICENSE file for details import struct import envi.archs.amd64 as e_amd64 import vtrace.archs.i386 as vt_i386 class Amd64Mixin( e_amd64.Amd64Module, e_amd64.Amd64RegisterContext, vt_i386.i386WatchMixin): """ Do what we ...
unknown
codeparrot/codeparrot-clean
import { makeMap } from './makeMap' const GLOBALS_ALLOWED = 'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' + 'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' + 'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol' export const isGloballyAll...
typescript
github
https://github.com/vuejs/core
packages/shared/src/globalsAllowList.ts
/* * 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
framework-docs/src/main/java/org/springframework/docs/core/beans/dependencies/beansfactorylazyinit/ExpensiveToCreateBean.java
// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: BUSL-1.1 package stackmigrate import ( "encoding/json" "fmt" "path/filepath" "sort" "strings" "testing" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/hashicorp/go-slug/sourceaddrs" "github.com/hashicorp/go-slug...
go
github
https://github.com/hashicorp/terraform
internal/stacks/stackmigrate/migrate_test.go
# Generated by Django 2.2.2 on 2019-06-16 16:34 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('site_info', '0010_homealert'), ] operations = [ migrations.AlterField( ...
unknown
codeparrot/codeparrot-clean
#! /usr/bin/env python from __future__ import print_function import getopt import os import re import six from six.moves import socketserver import subprocess import sys import tempfile import threading from ryu.ofproto import ofproto_parser from ryu.ofproto import ofproto_v1_0 from ryu.ofproto import ofproto_v1_0_p...
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 applicable law or a...
c
github
https://github.com/tensorflow/tensorflow
tensorflow/core/kernels/softsign_op.h
// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: BUSL-1.1 // loggraphdiff is a tool for interpreting changes to the Terraform graph // based on the simple graph printing format used in the TF_LOG=trace log // output from Terraform, which looks like this: // // aws_instance.b (destroy) - *terraform.Node...
go
github
https://github.com/hashicorp/terraform
tools/loggraphdiff/loggraphdiff.go
from ltk.actions.action import * class RmAction(Action): def __init__(self, path): Action.__init__(self, path) self.use_delete = False def rm_action(self, file_patterns, **kwargs): try: removed_folder = False for pattern in file_patterns: if os.p...
unknown
codeparrot/codeparrot-clean
//! For middleware documentation, see [`Compress`]. use std::{ future::Future, marker::PhantomData, pin::Pin, task::{Context, Poll}, }; use actix_http::encoding::Encoder; use actix_service::{Service, Transform}; use actix_utils::future::{ok, Either, Ready}; use futures_core::ready; use mime::Mime; use...
rust
github
https://github.com/actix/actix-web
actix-web/src/middleware/compress.rs
#### Note: this error code is no longer emitted by the compiler. The `not` cfg-predicate was malformed. Erroneous code example (using `cargo doc`): ```ignore, E0536 (only triggers on cargo doc) #![feature(doc_cfg)] #[doc(cfg(not()))] pub fn main() { } ``` The `not` predicate expects one cfg-pattern. Example: ``` ...
unknown
github
https://github.com/rust-lang/rust
compiler/rustc_error_codes/src/error_codes/E0536.md
# run doom process on a series of maps # can be used for regression testing, or to fetch media # keeps a log of each run ( see getLogfile ) # currently uses a basic stdout activity timeout to decide when to move on # using a periodic check of /proc/<pid>/status SleepAVG # when the sleep average is reaching 0, issue a ...
unknown
codeparrot/codeparrot-clean
base_suite: sharding_jscore_passthrough_base description: >- Test the correctness of the query settings fallback mechanism by introducing planner failures and then expecting that the fallback-generated plan is identical to the original plan. This suite runs jscore tests using a sharded cluster fixture. overrides:...
unknown
github
https://github.com/mongodb/mongo
buildscripts/resmokeconfig/matrix_suites/mappings/sharding_pqs_fallback.yml
from yowsup.structs import ProtocolEntity, ProtocolTreeNode class ChatstateProtocolEntity(ProtocolEntity): ''' INCOMING <chatstate from="xxxxxxxxxxx@s.whatsapp.net"> <{{composing|paused}}></{{composing|paused}}> </chatstate> OUTGOING <chatstate to="xxxxxxxxxxx@s.whatsapp.net"> <{{com...
unknown
codeparrot/codeparrot-clean
/* * Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.analysis.api.fir.test.cases.generated.cases.annotations; import com.intellij.tes...
java
github
https://github.com/JetBrains/kotlin
analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/annotations/FirIdeNormalAnalysisSourceModuleAnalysisApiAnnotationsOnTypesTestGenerated.java
import { flushSync } from 'svelte'; import { test } from '../../test'; // https://github.com/sveltejs/svelte/issues/7884 export default test({ test({ assert, target, component, window }) { let inputs = target.querySelectorAll('input'); assert.htmlEqual( target.innerHTML, ` <p>{"foo":[],"bar":[]}</p> ...
javascript
github
https://github.com/sveltejs/svelte
packages/svelte/tests/runtime-legacy/samples/binding-input-group-each-8/_config.js
# Copyright 2013-2016 DataStax, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
unknown
codeparrot/codeparrot-clean
# 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 use ...
unknown
codeparrot/codeparrot-clean
from Tools.Profile import profile profile("LOAD:ElementTree") import xml.etree.cElementTree import os profile("LOAD:enigma_skin") from enigma import eSize, ePoint, eRect, gFont, eWindow, eLabel, ePixmap, eWindowStyleManager, addFont, gRGB, eWindowStyleSkinned, getDesktop from Components.config import ConfigSubsection,...
unknown
codeparrot/codeparrot-clean
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
c
github
https://github.com/tensorflow/tensorflow
tensorflow/core/tpu/tpu_node_device_util.h