code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
{ "name": "my-vend/my-app", "license": "MIT", "repositories": [ { "type": "git", "url": "example.tld" } ] }
json
github
https://github.com/composer/composer
tests/Composer/Test/Config/Fixtures/config/config-with-exampletld-repository-as-list.json
data = ( 'Chu ', # 0x00 'Jing ', # 0x01 'Nie ', # 0x02 'Xiao ', # 0x03 'Bo ', # 0x04 'Chi ', # 0x05 'Qun ', # 0x06 'Mou ', # 0x07 'Shu ', # 0x08 'Lang ', # 0x09 'Yong ', # 0x0a 'Jiao ', # 0x0b 'Chou ', # 0x0c 'Qiao ', # 0x0d '[?] ', # 0x0e 'Ta ', # 0x0f 'Jian ', # 0x10...
unknown
codeparrot/codeparrot-clean
// Copyright 2015 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/pkg/fileutil/preallocate_test.go
# -- coding: utf-8 -- #from ptrace.debugger.child import createChild from os import system, dup2, close, open as fopen, O_RDONLY from sys import stdin from os import ( fork, execv, execve, getpid, close, dup2, devnull, O_RDONLY) from ptrace.binding import ptrace_traceme from ptrace import PtraceError from re...
unknown
codeparrot/codeparrot-clean
/* * 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. */ #include <assert.h> #include <stdint.h> #include <psimd.h> #include <fp16/bitcasts.h> #include <qnn...
c
github
https://github.com/pytorch/pytorch
aten/src/ATen/native/quantized/cpu/qnnpack/src/requantization/precise-psimd.c
""" Provides a function for importing a git repository into the lms instance when using a mongo modulestore """ import os import re import StringIO import subprocess import logging from django.conf import settings from django.core import management from django.core.management.base import CommandError from django.util...
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
# -*- coding: ISO-8859-1 -*- from struct import pack, unpack """ This module contains functions for reading and writing the special data types that a midi file contains. """ """ nibbles are four bits. A byte consists of two nibles. hiBits==0xF0, loBits==0x0F Especially used for setting channel and event in 1. byte o...
unknown
codeparrot/codeparrot-clean
'''Euromast, Copyright 2017, CommitSudoku''' import pygame def process_events(): for event in pygame.event.get(): if event.type == pygame.QUIT: # Give the signal to quit return True return False # class program: class Game(): def __init__(self): width = 800 ...
unknown
codeparrot/codeparrot-clean
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List, Optional from typing_extensions import Literal from ..._models import BaseModel from .response_computer_tool_call_output_screenshot import ResponseComputerToolCallOutputScreenshot __all__ = ["ResponseComput...
python
github
https://github.com/openai/openai-python
src/openai/types/responses/response_computer_tool_call_output_item.py
maxlen=100000 minval=-1000000000 maxval=1000000000 def solution(A): premax= None postmax = None maxabs = 0 tmpabs = 0 maxA=[] length=len(A) #not good list if length < 2 or length > maxlen: return 0 #build max val list for #n element for i,val in enumerate(A): ...
unknown
codeparrot/codeparrot-clean
#ifndef SRC_NODE_PROCESS_INL_H_ #define SRC_NODE_PROCESS_INL_H_ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #include "node_process.h" #include "v8.h" #include "debug_utils-inl.h" namespace node { // Call process.emitWarning(str), fmt is a snprintf() format string template <typename... Args> inline v8::M...
c
github
https://github.com/nodejs/node
src/node_process-inl.h
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build js || wasip1 package net import "syscall" func setDefaultSockopts(s, family, sotype int, ipv6only bool) error { return nil } func setDefaultList...
go
github
https://github.com/golang/go
src/net/sockopt_fake.go
import argparse import datetime import json import os import sys import logging import requests import subprocess import six import time import yaml from subprocess import Popen,PIPE from shlex import split from utils import * # Generate common options def generate_options(args): gpus = args.gpus cpu = args.c...
unknown
codeparrot/codeparrot-clean
--- c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. SPDX-License-Identifier: curl Long: upload-flags Arg: <flags> Help: IMAP upload behavior Protocols: IMAP Category: curl output Added: 8.13.0 Multi: single See-also: - upload-file Example: - --upload-flags Flagged,!Seen --upload-file local/dir/file $URL ...
unknown
github
https://github.com/curl/curl
docs/cmdline-opts/upload-flags.md
# Copyright (c) 2012 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 ...
unknown
codeparrot/codeparrot-clean
""" Functions for preparing various inputs passed to the DataFrame or Series constructors before passing them to a BlockManager. """ from __future__ import annotations from collections import abc from typing import ( TYPE_CHECKING, Any, ) import numpy as np from numpy import ma from pandas._config import us...
python
github
https://github.com/pandas-dev/pandas
pandas/core/internals/construction.py
#!/usr/bin/python3 """ schedule.py: """ # Import Required Libraries (Standard, Third Party, Local) **************************************** from __future__ import print_function import datetime import logging import httplib2 import re import os import sys from apiclient import discovery from oauth2client import clien...
unknown
codeparrot/codeparrot-clean
"""Constants used be the HomeKit component.""" # #### Misc #### DEBOUNCE_TIMEOUT = 0.5 DOMAIN = 'homekit' HOMEKIT_FILE = '.homekit.state' HOMEKIT_NOTIFY_ID = 4663548 # #### Attributes #### ATTR_DISPLAY_NAME = 'display_name' ATTR_VALUE = 'value' # #### Config #### CONF_AUTO_START = 'auto_start' CONF_ENTITY_CONFIG = 'e...
unknown
codeparrot/codeparrot-clean
/* Copyright 2018 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/lite/kernels/register_ref.h
apiVersion: v1 kind: ConfigMap metadata: name: alloy-config namespace: default data: config.alloy: | // Pyroscope configuration to receive profiles pyroscope.write "default" { endpoint { url = "http://pyroscope.default.svc.cluster.local:4040" } } // Scrape CPU profiles from th...
unknown
github
https://github.com/grafana/grafana
apps/iam/local/yamls/alloy.yaml
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright © 1991-1998, 2000, 2002, 2003 Progiciels Bourbeau-Pinard inc. # François Pinard <pinard@iro.umontreal.ca>, 1991-04. # 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 # t...
unknown
codeparrot/codeparrot-clean
// Copyright 2018 The Cockroach Authors. // // Use of this software is governed by the CockroachDB Software License // included in the /LICENSE file. package sql_test import ( "context" "fmt" "reflect" "testing" "github.com/cockroachdb/cockroach/pkg/base" "github.com/cockroachdb/cockroach/pkg/config/zonepb" "...
go
github
https://github.com/cockroachdb/cockroach
pkg/sql/scatter_test.go
""" Better Emphasis. pymdownx.betterem Add inteligent handling of to em and strong notations MIT license. Copyright (c) 2014 - 2017 Isaac Muse <isaacmuse@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to d...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # # Copyright 2010 Google 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 o...
unknown
codeparrot/codeparrot-clean
""" Helpers for guessing our way into queries against the database """ import ast import logging import re import arrow import six import sqlalchemy as sa import sqlalchemy_utils as sau from ._tables import TABLES logger = logging.getLogger('tilezilla') DATETIME_TYPES = (sa.sql.sqltypes.DateTime, ...
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
"""s3.py: Contains a Amazon S3 implementation of ObjectStore.""" __author__ = "Chelsea Urquhart" __copyright__ = "Copyright 2015, Chelsea Urquhart" __license__ = "GPL" __email__ = "me@chelseau.com" import os from boto3.session import Session import sys from objectstore import ObjectStore from threadeddeleter import T...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # 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 "Licen...
unknown
codeparrot/codeparrot-clean
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
c
github
https://github.com/tensorflow/tensorflow
tensorflow/core/util/reporter.h
// boost/filesystem.hpp --------------------------------------------------------------// // Copyright Beman Dawes 2010 // Distributed under the Boost Software License, Version 1.0. // See http://www.boost.org/LICENSE_1_0.txt // Library home page: http://www.boost.org/libs/filesystem //------------------------...
unknown
github
https://github.com/mysql/mysql-server
extra/boost/boost_1_87_0/boost/filesystem.hpp
# Copyright 2015 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
unknown
codeparrot/codeparrot-clean
# Volatility # # This file is part of Volatility. # # Volatility 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) any later version. # # Volatility is dist...
unknown
codeparrot/codeparrot-clean
# Used as part of the "make parse" Makefile target. # See common.mk for details. $file = ARGV[0] $str = ARGF.read.sub(/^__END__.*\z/m, '') puts '# ' + '-' * 70 puts "# target program: " puts '# ' + '-' * 70 puts $str puts '# ' + '-' * 70 $parsed = RubyVM::InstructionSequence.compile_file($file) puts "# disasm result...
ruby
github
https://github.com/ruby/ruby
tool/parse.rb
name: Update package-lock.json on: schedule: # This is probably 6am UTC, which is 10pm PST or 11pm PDT # Alternatively, 6am local is also fine - cron: '0 6 * * *' workflow_dispatch: {} permissions: contents: read # Ensure scripts are run with pipefail. See: # https://docs.github.com/en/actions/usin...
unknown
github
https://github.com/microsoft/TypeScript
.github/workflows/update-package-lock.yaml
// 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 unicode_test import ( "testing" . "unicode" ) type T struct { rune rune script string } var inCategoryTest = []T{ {0x0081, "Cc"}, {0x200B, "C...
go
github
https://github.com/golang/go
src/unicode/script_test.go
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # # Copyright (c) 2014 Noviat nv/sa (www.noviat.com). All rights reserved. # # This program is free software: you can redistribute it and/or modify # it under...
unknown
codeparrot/codeparrot-clean
// Copyright IBM Corp. 2016, 2025 // SPDX-License-Identifier: BUSL-1.1 //go:build !enterprise package vault import ( "github.com/hashicorp/vault/helper/namespace" ) func (ts *TokenStore) baseView(ns *namespace.Namespace) *BarrierView { return ts.baseBarrierView } func (ts *TokenStore) idView(ns *namespace.Namesp...
go
github
https://github.com/hashicorp/vault
vault/token_store_util.go
from django.conf.urls import url from . import views urlpatterns = [ url(r"^signup/$", views.signup, name="account_signup"), url(r"^login/$", views.login, name="account_login"), url(r"^logout/$", views.logout, name="account_logout"), url(r"^password/change/$", views.password_change, name="acc...
unknown
codeparrot/codeparrot-clean
from __future__ import unicode_literals, division, absolute_import import datetime from math import ceil from flask import jsonify, request from flask_restplus import inputs from flexget.api import api, APIResource from flexget.plugins.api.series import NoResultFound from flexget.plugins.filter import movie_queue as...
unknown
codeparrot/codeparrot-clean
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/fsi/ibm,p9-occ.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: IBM FSI-attached On-Chip Controller (OCC) maintainers: - Eddie James <eajames@linux.ibm.com> description: The POWER process...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml
#!/usr/bin/env python3 """Generate an updated requirements_all.txt.""" import importlib import os import pkgutil import re import sys COMMENT_REQUIREMENTS = ( 'RPi.GPIO', 'rpi-rf', 'Adafruit_Python_DHT', 'Adafruit_BBIO', 'fritzconnection', 'pybluez', 'bluepy', 'python-lirc', 'gattli...
unknown
codeparrot/codeparrot-clean
from __future__ import absolute_import from kombu import Connection from kombu.tests.case import Case, SkipTest, patch class test_sqlalchemy(Case): def setUp(self): try: import sqlalchemy # noqa except ImportError: raise SkipTest('sqlalchemy not installed') def test_...
unknown
codeparrot/codeparrot-clean
# PY-3639 def f(x): from <error descr="Unresolved reference 'foo'">foo</error> import <error descr="Unresolved reference 'StringIO'">StringIO</error> return StringIO(x) def f(x): try: from <error descr="Unresolved reference 'foo'">foo</error> import <warning descr="Module 'StringIO' not found">Stri...
unknown
codeparrot/codeparrot-clean
import os import sys import subprocess import traceback class ProcessHandler: args = log = None def __init__(self, args, log): self.args = args self.log = log def start_process(self, cmd): env = dict(os.environ) if not "LD_LIBRARY_PATH" in env: env["LD_LIBRARY_...
unknown
codeparrot/codeparrot-clean
#pragma once #include <ATen/Tensor.h> namespace at::native::sparse::impl::mkl { void addmm_out_sparse_csr( const Tensor& mat1, const Tensor& mat2, const Scalar& beta, const Scalar& alpha, const Tensor& result); void addmv_out_sparse_csr( const Tensor& mat, const Tensor& vec, const Sc...
c
github
https://github.com/pytorch/pytorch
aten/src/ATen/native/mkl/SparseBlasImpl.h
""" Sane parameters for stats.distributions. """ distcont = [ ['alpha', (3.5704770516650459,)], ['anglit', ()], ['arcsine', ()], ['beta', (2.3098496451481823, 0.62687954300963677)], ['betaprime', (5, 6)], ['bradford', (0.29891359763170633,)], ['burr', (10.5, 4.3)], ['burr12', (10, 4)], ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- import unittest from tasty.tastyot import TastyOT from multiprocessing import Process from tasty.osock import * from time import sleep from tasty.types import Party from tasty import utils, config, state from tasty.protocols.otprotocols import paillierot from tasty.protocols.otprotocols import P...
unknown
codeparrot/codeparrot-clean
/* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef LINUX_KALLSYMS_SELFTEST_H_ #define LINUX_KALLSYMS_SELFTEST_H_ #include <linux/types.h> extern int kallsyms_test_var_bss; extern int kallsyms_test_var_data; extern int kallsyms_test_func(void); extern int kallsyms_test_func_weak(void); #endif // LINUX_KALLSYMS_...
c
github
https://github.com/torvalds/linux
kernel/kallsyms_selftest.h
#ifndef Py_INTERNAL_FLOATOBJECT_H #define Py_INTERNAL_FLOATOBJECT_H #ifdef __cplusplus extern "C" { #endif #ifndef Py_BUILD_CORE # error "this header requires Py_BUILD_CORE define" #endif #include "pycore_unicodeobject.h" // _PyUnicodeWriter /* runtime lifecycle */ extern void _PyFloat_InitState(PyInterpreterState...
c
github
https://github.com/python/cpython
Include/internal/pycore_floatobject.h
# mock.py # Test tools for mocking and patching. # Copyright (C) 2007-2012 Michael Foord & the mock team # E-mail: fuzzyman AT voidspace DOT org DOT uk # mock 1.0 # http://www.voidspace.org.uk/python/mock/ # Released subject to the BSD License # Please see http://www.voidspace.org.uk/python/license.shtml # Scripts m...
unknown
codeparrot/codeparrot-clean
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
unknown
codeparrot/codeparrot-clean
from __future__ import unicode_literals from django.conf import settings from django.utils.unittest import skipUnless from .base import SitemapTestsBase class FlatpagesSitemapTests(SitemapTestsBase): @skipUnless("django.contrib.flatpages" in settings.INSTALLED_APPS, "django.contrib.flatpages app...
unknown
codeparrot/codeparrot-clean
<?php namespace Illuminate\Broadcasting\Broadcasters; use Psr\Log\LoggerInterface; class LogBroadcaster extends Broadcaster { /** * The logger implementation. * * @var \Psr\Log\LoggerInterface */ protected $logger; /** * Create a new broadcaster instance. * * @param \...
php
github
https://github.com/laravel/framework
src/Illuminate/Broadcasting/Broadcasters/LogBroadcaster.php
import logging import sys from pip._vendor.contextlib2 import suppress from pip._vendor.packaging.specifiers import InvalidSpecifier, SpecifierSet from pip._vendor.packaging.utils import canonicalize_name from pip._vendor.packaging.version import Version from pip._internal.exceptions import HashError, MetadataInconsi...
unknown
codeparrot/codeparrot-clean
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.page import page as page_module from telemetry.page import page_set as page_set_module class PixelTestsPage(page_module.Page): def __init__...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
unknown
codeparrot/codeparrot-clean
import sys from boto.compat import json from boto.exception import BotoServerError def simple(e): code = e.code if code.endswith('Exception'): code = code.rstrip('Exception') try: # Dynamically get the error class. simple_e = getattr(sys.modules[__name__], code)(e) except Attr...
unknown
codeparrot/codeparrot-clean
# Copyright 2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
unknown
codeparrot/codeparrot-clean
#!/bin/bash # Copyright IBM Corp. 2016, 2025 # SPDX-License-Identifier: BUSL-1.1 set -e # All of these environment variables are required or an error will be returned. [ "${GITHUB_TOKEN:?}" ] [ "${PR_NUMBER:?}" ] [ "${REPO:?}" ] [ "${RUN_ID:?}" ] # list of build jobs [ "${ARTIFACTS:?}" ] [ "${TEST:?}" ] [ "${TEST_CO...
unknown
github
https://github.com/hashicorp/vault
.github/scripts/report-build-status.sh
// Copyright 2023 The Cockroach Authors. // // Use of this software is governed by the CockroachDB Software License // included in the /LICENSE file. package backup import ( "context" "fmt" "reflect" "slices" "strings" "testing" "github.com/cockroachdb/cockroach/pkg/backup/backuppb" "github.com/cockroachdb/c...
go
github
https://github.com/cockroachdb/cockroach
pkg/backup/restore_planning_test.go
#!/usr/bin/python # Copyright 2017 Google Inc. # 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', 'status': ['preview'], ...
unknown
codeparrot/codeparrot-clean
import numpy as np import timeit from concurrent.futures import ThreadPoolExecutor, wait from .common import Benchmark, safe_import with safe_import(): from scipy.signal import (lfilter, firwin, decimate, butter, sosfilt, medfilt2d) class Decimate(Benchmark): param_names = ['q',...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2014 Eficent (<http://www.eficent.com/>) # Jordi Ballester Alomar <jordi.ballester@eficent.com> # # This program is free software: you can redistribute it and/or modify # it und...
unknown
codeparrot/codeparrot-clean
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
unknown
codeparrot/codeparrot-clean
# # Copyright 2016 Red Hat | Ansible # # 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. # # ...
unknown
codeparrot/codeparrot-clean
data = ( '', # 0x00 '', # 0x01 '', # 0x02 '', # 0x03 '', # 0x04 '', # 0x05 '', # 0x06 '', # 0x07 '', # 0x08 '', # 0x09 '', # 0x0a '', # 0x0b '', # 0x0c '', # 0x0d '', # 0x0e '', # 0x0f '', # 0x10 '', # 0x11 '', # 0x12 '', # 0x13 '', # 0x14 '', # 0x15 '',...
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
tsdb/head_wal.go
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/clock/imx7ulp-pcc-clock.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Freescale i.MX7ULP Peripheral Clock Control (PCC) modules Clock Controller maintainers: - A.s. Dong <aisheng.dong@nxp...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/clock/imx7ulp-pcc-clock.yaml
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
unknown
codeparrot/codeparrot-clean
// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: BUSL-1.1 package providercache import ( "bytes" "context" "encoding/json" "fmt" "log" "net/http" "net/http/httptest" "path/filepath" "strings" "testing" "github.com/apparentlymart/go-versions/versions" "github.com/apparentlymart/go-versions/ver...
go
github
https://github.com/hashicorp/terraform
internal/providercache/installer_test.go
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-08-18 23:30 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('event', '0023_auto_20160819_0709'), ] operations = [ migrations.AlterField( ...
unknown
codeparrot/codeparrot-clean
//// [tests/cases/compiler/argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts] //// //// [argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.ts] function A() { return class T { a = arguments } } function A1() { return new class T { a = arguments } } function B() { ret...
javascript
github
https://github.com/microsoft/TypeScript
tests/baselines/reference/argumentsUsedInClassFieldInitializerOrStaticInitializationBlock.js
#!/usr/bin/env bash source ../collection/setup.sh set -eux export ANSIBLE_DEPRECATION_WARNINGS=1 export ANSIBLE_COLLECTIONS_PATH="${WORK_DIR}" export ANSIBLE_STRATEGY=ns.col.external output="$(ansible localhost -m debug 2>&1 | tee -a /dev/stderr)" if [[ "${output}" != *"Use of strategy plugins not included in ansible...
unknown
github
https://github.com/ansible/ansible
test/integration/targets/strategy-external/runme.sh
// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: BUSL-1.1 package planfile import ( "archive/zip" "fmt" "os" "time" "github.com/hashicorp/terraform/internal/configs/configload" "github.com/hashicorp/terraform/internal/depsfile" "github.com/hashicorp/terraform/internal/plans" "github.com/hashicorp...
go
github
https://github.com/hashicorp/terraform
internal/plans/planfile/writer.go
//// [tests/cases/compiler/assignToFn.ts] //// //// [assignToFn.ts] namespace M { interface I { f(n:number):boolean; } var x:I={ f:function(n) { return true; } }; x.f="hello"; } //// [assignToFn.js] "use strict"; var M; (function (M) { var x = { f: function (n) { return true; } }; x.f = "he...
javascript
github
https://github.com/microsoft/TypeScript
tests/baselines/reference/assignToFn.js
""" Tests for the stats.mstats module (support for masked arrays) """ from __future__ import division, print_function, absolute_import import warnings import numpy as np from numpy import nan import numpy.ma as ma from numpy.ma import masked, nomask import scipy.stats.mstats as mstats from scipy import stats from co...
unknown
codeparrot/codeparrot-clean
/* * alloc.c - specialized allocator for internal objects * * Copyright (C) 2006 Linus Torvalds * * The standard malloc/free wastes too much space for objects, partly because * it maintains all the allocation infrastructure, but even more because it ends * up with maximal alignment because it doesn't know what ...
c
github
https://github.com/git/git
alloc.c
import os import json import shutil from oeqa.core.utils.test import getCaseFile, getCaseMethod def get_package_manager(d, root_path): """ Returns an OE package manager that can install packages in root_path. """ from oe.package_manager import RpmPM, OpkgPM, DpkgPM pkg_class = d.getVar("IMAGE_PKG...
unknown
codeparrot/codeparrot-clean
import calendar import glob import gzip import math import os.path import re import pandas as pd def _parse_raw(fp, start_tstamp, end_tstamp): import progressbar widgets = [ os.path.basename(fp.name), ': ', progressbar.Bar(marker='-', left='[', right=']'), ' ', progressbar.Percentage()...
unknown
codeparrot/codeparrot-clean
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
unknown
codeparrot/codeparrot-clean
//// [tests/cases/compiler/collisionSuperAndParameter1.ts] //// //// [collisionSuperAndParameter1.ts] class Foo { } class Foo2 extends Foo { x() { var lambda = (_super: number) => { // Error } } } //// [collisionSuperAndParameter1.js] "use strict"; class Foo { } class Foo2 extends Foo { x...
javascript
github
https://github.com/microsoft/TypeScript
tests/baselines/reference/collisionSuperAndParameter1.js
# Copyright 2011 OpenStack Foundation. # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance w...
unknown
codeparrot/codeparrot-clean
#! /usr/bin/env python # ------------------------------------------------------------------------------ # imports import os import sys def processMRNA (originalFileName): finalFileName = getFinalFileName (originalFileName) if not os.path.exists(originalFileName): sys.exit("error: cannot find file: " + originalF...
unknown
codeparrot/codeparrot-clean
/* * Copyright 2025-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/testing/resttestclient/contextconfig/RestClientContextTests.java
#!/usr/bin/env python from .Rule import Rule class CopyRule(Rule): def __init__(self, hist, ruleHist, srcID, srcField, dstID, dstField, typ, ptype, content): Rule.__init__(self, hist, ruleHist, srcID, srcField, dstID, dstField) self.typ = typ self.ptype = ptype if 'Comp' in self.ty...
unknown
codeparrot/codeparrot-clean
""" Unit tests for the stem.connection.connect function. """ import unittest try: from StringIO import StringIO except ImportError: from io import StringIO try: from mock import Mock, patch except ImportError: from unittest.mock import Mock, patch import stem import stem.connection import stem.socket class...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # Copyright (c) 2009 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. """ Verifies file copies using the build tool default. """ import TestGyp test = TestGyp.TestGyp() test.run_gyp('copies.gyp', chdir='src'...
unknown
codeparrot/codeparrot-clean
export default function SectionSeparator() { return <hr className="mb-24 border-accent-2 mt-28" />; }
typescript
github
https://github.com/vercel/next.js
examples/cms-webiny/components/section-separator.tsx
"""Functional tests for model.py""" # Some Notes: # # * We don't really have any agreed-upon requirements about what __repr__ # should print, but I'm fairly certain I hit an argument mistmatch at # some point, which is definitely wrong. The test_repr methods are there just # to make sure it isn't throwing an exception...
unknown
codeparrot/codeparrot-clean
"""Development settings and globals.""" from __future__ import absolute_import from os.path import join, normpath from .base import * ########## DEBUG CONFIGURATION # See: https://docs.djangoproject.com/en/dev/ref/settings/#debug DEBUG = True # See: https://docs.djangoproject.com/en/dev/ref/settings/#template-debu...
unknown
codeparrot/codeparrot-clean
/* * Copyright (C) 2014 The Guava 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 agre...
java
github
https://github.com/google/guava
android/guava-tests/test/com/google/common/graph/StandardMutableDirectedNetworkTest.java
from django.apps import AppConfig from django.contrib.staticfiles.checks import check_finders, check_storages from django.core import checks from django.utils.translation import gettext_lazy as _ class StaticFilesConfig(AppConfig): name = "django.contrib.staticfiles" verbose_name = _("Static Files") ignore...
python
github
https://github.com/django/django
django/contrib/staticfiles/apps.py
#!/bin/sh test_description='magic pathspec tests using git-log' GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME . ./test-lib.sh test_expect_success 'setup' ' test_commit initial && test_tick && git commit --allow-empty -m empty && mkdir sub ' test_expect_success '"git log ...
unknown
github
https://github.com/git/git
t/t4208-log-magic-pathspec.sh
# frozen_string_literal: true module Psych class Omap < ::Hash end end
ruby
github
https://github.com/ruby/ruby
ext/psych/lib/psych/omap.rb
import elasticsearch from django.core.paginator import EmptyPage, Page, PageNotAnInteger, Paginator from django.utils.html import strip_tags from django.utils.text import unescape_entities from elasticsearch.helpers import streaming_bulk from elasticsearch_dsl import DocType, Long, Nested, Object, String, analysis from...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # -*- coding: utf-8 -*- ''' @author: Maribel Acosta @author: Fabian Floeck @author: Michael Ruster ''' import csv import re import functions.TextPostProcessing as TextPostProcessing import functions.WarningTemplates as WarningTemplates import BlockTimeCalculation from datetime import datetime def w...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python from utils import mathfont import fontforge nArySumCodePoint = 0x2211 # largeop operator v = 3 * mathfont.em f = mathfont.create("limits-lowerlimitbaselinedropmin%d" % v) mathfont.createSquareGlyph(f, nArySumCodePoint) f.math.LowerLimitBaselineDropMin = v f.math.LowerLimitGapMin = 0 f.math.OverbarE...
unknown
codeparrot/codeparrot-clean
""" cfg.py Simulation configuration for M1 model (using NetPyNE) Contributors: salvadordura@gmail.com """ from netpyne import specs import pickle cfg = specs.SimConfig() #------------------------------------------------------------------------------ # # SIMULATION CONFIGURATION # #---------------------------------...
unknown
codeparrot/codeparrot-clean
from discord.ext import commands import discord.utils from __main__ import settings # # This is a modified version of checks.py, originally made by Rapptz # # https://github.com/Rapptz # https://github.com/Rapptz/RoboDanny/tree/async # def is_owner_check(ctx): return ctx.message.author.id...
unknown
codeparrot/codeparrot-clean