code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
cpp
github
https://github.com/llvm/llvm-project
clang-tools-extra/clang-tidy/bugprone/EmptyCatchCheck.cpp
import re import csv import xlrd import unicodecsv from openelex.base.load import BaseLoader from openelex.models import RawResult from openelex.lib.text import ocd_type_id, slugify from .datasource import Datasource """ Just getting things stubbed out for GA """ class LoadResults(object): """Entry point for dat...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # Mode: -*- python -*- # # Copyright (c) 2015-2017, 2019-2020 by Rocky Bernstein # Copyright (c) 2000-2002 by hartmut Goebel <h.goebel@crazy-compilers.com> # from __future__ import print_function import sys, os, getopt, time program = 'uncompyle6' __doc__ = """ Usage: %s [OPTIONS]... [ FILE | ...
unknown
codeparrot/codeparrot-clean
"""The definition of the base geometrical entity with attributes common to all derived geometrical entities. Contains ======== GeometryEntity GeometricSet Notes ===== A GeometryEntity is any object that has special geometric properties. A GeometrySet is a superclass of any GeometryEntity that can also be viewed as ...
unknown
codeparrot/codeparrot-clean
<!--Copyright 2024 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
unknown
github
https://github.com/huggingface/transformers
docs/source/ko/optimizers.md
# -*- coding: utf-8 -*- # # 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 ...
unknown
codeparrot/codeparrot-clean
"""Binary Sensor for MeteoAlarm.eu.""" from datetime import timedelta import logging from meteoalertapi import Meteoalert import voluptuous as vol from homeassistant.components.binary_sensor import ( DEVICE_CLASS_SAFETY, PLATFORM_SCHEMA, BinarySensorEntity, ) from homeassistant.const import ATTR_ATTRIBUTI...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """Interpret PEP 345 environment markers. EXPR [in|==|!=|not in] EXPR [or|and] ... where EXPR belongs to any of those: python_version = '%s.%s' % (sys.version_info[0], sys.version_info[1]) python_full_version = sys.version.split()[0] os.name = os.name sys.platform = sys.platfo...
unknown
codeparrot/codeparrot-clean
"""The tests for the Rfxtrx light platform.""" from unittest.mock import call import pytest from homeassistant.components.light import ATTR_BRIGHTNESS from homeassistant.components.rfxtrx import DOMAIN from homeassistant.core import State from tests.common import MockConfigEntry, mock_restore_cache from tests.compon...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2011 X.commerce, a business unit of eBay 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/LICE...
unknown
codeparrot/codeparrot-clean
""" Soft Voting/Majority Rule classifier. This module contains a Soft Voting/Majority Rule classifier for classification estimators. """ # Authors: Sebastian Raschka <se.raschka@gmail.com>, # Gilles Louppe <g.louppe@gmail.com> # # License: BSD 3 clause import numpy as np from ..base import ClassifierMixin...
unknown
codeparrot/codeparrot-clean
/* Copyright 2021 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
go
github
https://github.com/kubernetes/kubernetes
pkg/apis/autoscaling/v2/defaults_test.go
#!/usr/bin/env python # Copyright 2017 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 os import threading import unittest import concurrent def _ForkTestHelper(arg1, arg2, pickle_me_not, test_instance, parent_pid...
unknown
codeparrot/codeparrot-clean
# coding: utf-8 from __future__ import unicode_literals import json import re from .common import InfoExtractor from ..utils import ( determine_ext, parse_iso8601, # try_get, update_url_query, ) class BoxIE(InfoExtractor): _VALID_URL = r'https?://(?:[^.]+\.)?app\.box\.com/s/(?P<shared_name>[^/]+)...
unknown
codeparrot/codeparrot-clean
- name: "Ensure import of a deliberately corrupted downloaded GnuPG binary key results in an 'inline data' occurrence in the message" apt_key: url: https://ci-files.testing.ansible.com/test/integration/targets/apt_key/apt-key-corrupt-zeros-2k.gpg register: gpg_inline_result failed_when: "not ('inline data' in...
unknown
github
https://github.com/ansible/ansible
test/integration/targets/apt_key/tasks/apt_key_inline_data.yml
# -*- coding: utf-8 -*- # Mathmaker Lib offers lualatex-printable mathematical objects. # Copyright 2006-2017 Nicolas Hainaux <nh.techn@gmail.com> # This file is part of Mathmaker Lib. # Mathmaker Lib is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as pu...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 CERN. ## ## Invenio 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 ve...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2009 Raymond Hettinger # # 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, merge, # publish,...
unknown
codeparrot/codeparrot-clean
## Input ```javascript // @enablePreserveExistingMemoizationGuarantees @validatePreserveExistingMemoizationGuarantees @enableOptionalDependencies @enableTreatFunctionDepsAsConditional:false import {useMemo} from 'react'; import {identity, ValidateMemoization} from 'shared-runtime'; function Component({x}) { const ...
unknown
github
https://github.com/facebook/react
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/preserve-memo-deps-conditional-property-chain-less-precise-deps.expect.md
from JumpScale import j base = j.tools.cuisine._getBaseClass() class CuisineCockpit(base): def __init__(self, executor, cuisine): self._executor = executor self._cuisine = cuisine def configure(self): C = """ [mode] prod = false [oauth] client_secret ...
unknown
codeparrot/codeparrot-clean
def simple_script(): assert True def complex_script(): obj = 'a string' pickle = __import__('pickle') def spam_minimal(): pass spam_minimal() data = pickle.dumps(obj) res = pickle.loads(data) assert res == obj, (res, obj) def script_with_globals(): obj1, obj2 = spam(42) ...
python
github
https://github.com/python/cpython
Lib/test/_code_definitions.py
'use cache' 'use server' export async function fn() {}
javascript
github
https://github.com/vercel/next.js
crates/next-custom-transforms/tests/errors/server-actions/server-graph/21/input.js
# Copyright (c) 2012 Santosh Philip # ======================================================================= # Distributed under the MIT License. # (See accompanying file LICENSE or copy at # http://opensource.org/licenses/MIT) # ======================================================================= """sample scr...
unknown
codeparrot/codeparrot-clean
# 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
"""Test setup for integration and functional tests. When we import PloneTestCase and then call setupPloneSite(), all of Plone's products are loaded, and a Plone site will be created. This happens at module level, which makes it faster to run each test, but slows down test runner startup. """ from Products.Five import...
unknown
codeparrot/codeparrot-clean
# Copyright 2019 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the...
unknown
codeparrot/codeparrot-clean
from .suggester import create_suggester from .dummy import Any, Never from .separate_context import SeparateContext from .types_misc import Type, CheckType, Number from .strings import * from .lists import List from .seq import Seq from .tuple import Tuple from .dicts import Dict from .map import Map from .sets import ...
unknown
codeparrot/codeparrot-clean
# Opus/UrbanSim urban simulation software. # Copyright (C) 2005-2009 University of Washington # See opus_core/LICENSE from opus_core.variables.variable import Variable from urbansim.functions import attribute_label from variable_functions import my_attribute_label from opus_core.logger import logger class number_of_j...
unknown
codeparrot/codeparrot-clean
# -*- coding: iso-8859-1 -*- #------------------------------------------------------------------- # tarfile.py #------------------------------------------------------------------- # Copyright (C) 2002 Lars Gustäbel <lars@gustaebel.de> # All rights reserved. # # Permission is hereby granted, free of charge, to any...
unknown
codeparrot/codeparrot-clean
""" Accessibility tests for LMS dashboard page. Run just this test with: SELENIUM_BROWSER=phantomjs paver test_bokchoy -d accessibility -t test_lms_dashboard_axs.py """ from ..tests.lms.test_lms_dashboard import BaseLmsDashboardTest class LmsDashboardAxsTest(BaseLmsDashboardTest): """ Class to test lms studen...
unknown
codeparrot/codeparrot-clean
from ._base import BaseAPIDispatch, BaseAPIEndpoint class Reminders(BaseAPIDispatch): pass @Reminders.register('add') class RemindersAdd(BaseAPIEndpoint): """This method creates a reminder. (Note: only non-recurring reminders will have time and complete_ts field.) .. code-block:: json { ...
unknown
codeparrot/codeparrot-clean
""" Copyright (c) 2012-2020 RockStor, Inc. <http://rockstor.com> This file is part of RockStor. RockStor 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 la...
unknown
codeparrot/codeparrot-clean
# Copyright 2014 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 ...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. # """Journal using twisted.enterprise.row RDBMS support. You're going to need the following table in your database:: | CREATE TABLE journalinfo | ( | commandIndex int | ); | INSERT INTO journalinfo VALUES (0); "...
unknown
codeparrot/codeparrot-clean
""" Tests for signal handling in commerce djangoapp. """ import base64 import json from urlparse import urljoin import ddt from django.contrib.auth.models import AnonymousUser from django.test import TestCase from django.test.utils import override_settings import httpretty import mock from opaque_keys.edx.keys import ...
unknown
codeparrot/codeparrot-clean
import { ok, test } from '../../test'; export default test({ html: ` <button>click me now</button> `, test({ assert, component, target, window }) { const button = target.querySelector('button'); const event = new window.Event('click-now'); let clicked; component.$on('click-now', () => { clicked = tru...
javascript
github
https://github.com/sveltejs/svelte
packages/svelte/tests/runtime-legacy/samples/event-handler-shorthand-sanitized/_config.js
import pytest from tutelary.engine import Action from tutelary.decorators import permissioned_model from tutelary import mixins from django.db import models import django.views.generic as generic from django.contrib.auth.models import AnonymousUser from django.http import HttpResponseRedirect from django.http.response ...
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 agreed...
unknown
github
https://github.com/huggingface/transformers
docs/source/ko/model_doc/deberta-v2.md
# 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
import time from importlib import import_module from django.conf import settings from django.utils.cache import patch_vary_headers from django.utils.http import cookie_date class SessionMiddleware(object): def __init__(self): engine = import_module(settings.SESSION_ENGINE) self.SessionStore = engi...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # # Copyright 2011 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio 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, or (at your option) # ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python import sys if sys.version_info < (2, 7): print("This script requires at least Python 2.7.") print("Please, update to a newer version: http://www.python.org/download/releases/") # exit() import argparse import json import os import shutil import tempfile from io import open def main(argv=Non...
unknown
codeparrot/codeparrot-clean
cfg_net! { use crate::net::addr::{self, ToSocketAddrs}; use std::io; use std::net::SocketAddr; /// Performs a DNS resolution. /// /// The returned iterator may not actually yield any values depending on the /// outcome of any resolution performed. /// /// This API is not intended t...
rust
github
https://github.com/tokio-rs/tokio
tokio/src/net/lookup_host.rs
# 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
#!/usr/bin/env bash set -eux source ../setup_paramiko/setup.sh ./test.sh
unknown
github
https://github.com/ansible/ansible
test/integration/targets/connection_paramiko_ssh/runme.sh
# pylint: disable=missing-docstring # pylint: disable=redefined-outer-name from lettuce import world, step from nose.tools import assert_true, assert_false # pylint: disable=no-name-in-module @step('I fill in the registration form$') def i_fill_in_the_registration_form(step): def fill_in_reg_form(): regi...
unknown
codeparrot/codeparrot-clean
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): depends_on = ( ('links', '0001_initial'), ('events', '0001_initial'), ) def forwards(self, orm): # Adding model 'Topic' ...
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 applica...
unknown
codeparrot/codeparrot-clean
/* * This file was automatically generated. * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ declare const check: (options: import("../../declarations/plugins/WatchIgnorePlugin").WatchIgnorePluginOptions) => boolean; export = check;
typescript
github
https://github.com/webpack/webpack
schemas/plugins/WatchIgnorePlugin.check.d.ts
/* * 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
guava/src/com/google/common/graph/Graphs.java
import zmq from collections import namedtuple from cs.eyrie.config import INITIAL_TIMEOUT, MAX_TIMEOUT from cs.eyrie.interfaces import IDrain, IKafka from cs.eyrie.transistor import ( CLOSED, CLOSING, RUNNING, TRANSIENT_ERRORS, SQSError, ) from cs.eyrie.transistor.source import ( KafkaMessage, ) from dateti...
unknown
codeparrot/codeparrot-clean
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\WebProfilerBundle\Twig; use Symfony\Component\VarDumper\...
php
github
https://github.com/symfony/symfony
src/Symfony/Bundle/WebProfilerBundle/Twig/WebProfilerExtension.php
/* * 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
buildSrc/src/main/java/org/springframework/boot/build/autoconfigure/CheckAutoConfigurationClasses.java
/*------------------------------------------------------------------------- * * libpqwalreceiver.c * * This file contains the libpq-specific parts of walreceiver. It's * loaded as a dynamic module to avoid linking the main server binary with * libpq. * * Apart from walreceiver, the libpq-specific routines are n...
c
github
https://github.com/postgres/postgres
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
{ "openapi": "3.1.0", "info": { "title": "Urlbox API", "description": "A plugin that allows the user to capture screenshots of a web page from a URL or HTML using ChatGPT.", "version": "v1" }, "servers": [ { "url": "https://api.urlbox.io" } ], "paths": { "/...
json
github
https://github.com/langchain-ai/langchain
libs/langchain/tests/unit_tests/examples/test_specs/urlbox/apispec.json
# Copyright (c) 2010-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 agree...
unknown
codeparrot/codeparrot-clean
# # 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
// Copyright 2018 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
tools/etcd-dump-metrics/install_darwin.go
/* * 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/context/aot/ReflectiveProcessorAotContributionBuilder.java
"""Stochastic optimization methods for MLP""" # Authors: The scikit-learn developers # SPDX-License-Identifier: BSD-3-Clause import numpy as np class BaseOptimizer: """Base (Stochastic) gradient descent optimizer Parameters ---------- learning_rate_init : float, default=0.1 The initial learn...
python
github
https://github.com/scikit-learn/scikit-learn
sklearn/neural_network/_stochastic_optimizers.py
##################################################################################### # # Sample 01 - This sample presents the basic Function of the SDK. # # Python 3.5.2 # # SDK 3dRudder # # Copyright (C) 2016-2017 3dRudder # ##################################################################################### import...
unknown
codeparrot/codeparrot-clean
--- title: Misc ---
unknown
github
https://github.com/sveltejs/svelte
documentation/docs/07-misc/index.md
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
unknown
codeparrot/codeparrot-clean
//! Code for debugging the dep-graph. use std::error::Error; use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::sync::Lock; use super::{DepNode, DepNodeIndex}; /// A dep-node filter goes from a user-defined string to a query over /// nodes. Right now the format is like this: /// ```ignore (illustr...
rust
github
https://github.com/rust-lang/rust
compiler/rustc_query_system/src/dep_graph/debug.rs
# frozen_string_literal: true require "cases/helper" require "active_record/explain_registry" if ActiveRecord::Base.lease_connection.supports_explain? class ExplainSubscriberTest < ActiveRecord::TestCase SUBSCRIBER = ActiveRecord::ExplainRegistry::Subscriber.new def setup ActiveRecord::ExplainRegistr...
ruby
github
https://github.com/rails/rails
activerecord/test/cases/explain_subscriber_test.rb
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
java
github
https://github.com/apache/hadoop
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/IdMappingConstant.java
// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: BUSL-1.1 package schema import ( "fmt" "log" "time" "github.com/hashicorp/terraform/internal/configs/hcl2shim" "github.com/hashicorp/terraform/internal/legacy/terraform" "github.com/mitchellh/copystructure" ) const TimeoutKey = "e2bfb730-ecaa-11e6-8...
go
github
https://github.com/hashicorp/terraform
internal/legacy/helper/schema/resource_timeout.go
# # Copyright 2018 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. # # A...
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
//===----------------- ModulesBuilder.cpp ------------------------*- C++-*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
cpp
github
https://github.com/llvm/llvm-project
clang-tools-extra/clangd/ModulesBuilder.cpp
/* * Debugging routines * * Copyright The Mbed TLS Contributors * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ #include "common.h" #if defined(MBEDTLS_DEBUG_C) #include "mbedtls/platform.h" #include "debug_internal.h" #include "mbedtls/error.h" #include <stdarg.h> #include <stdio.h> #include ...
c
github
https://github.com/nodejs/node
deps/LIEF/third-party/mbedtls/library/debug.c
import { test } from "@playwright/test"; import { PlaywrightFixture } from "./helpers/playwright-fixture.js"; import type { Fixture, AppFixture } from "./helpers/create-fixture.js"; import { createAppFixture, createFixture, js, } from "./helpers/create-fixture.js"; let fixture: Fixture; let appFixture: AppFixtu...
typescript
github
https://github.com/remix-run/react-router
integration/abort-signal-test.ts
########################################################## # THIS IS A GENERATED FILE -- DO NOT MODIFY. # IF YOU WISH TO MODIFY THIS SUITE, MODIFY THE CORRESPONDING MATRIX SUITE MAPPING FILE # AND REGENERATE THE MATRIX SUITES. # # matrix suite mapping file: buildscripts/resmokeconfig/matrix_suites/mappings/aggregation_...
unknown
github
https://github.com/mongodb/mongo
buildscripts/resmokeconfig/matrix_suites/generated_suites/aggregation_mongos_pqs_hints.yml
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2015 Radim Rehurek <me@radimrehurek.com> # # This code is distributed under the terms and conditions # from the MIT License (MIT). """ Utilities for streaming from several file-like data storages: S3 / HDFS / standard filesystem / compressed files..., usi...
unknown
codeparrot/codeparrot-clean
from Screens.Screen import Screen from Components.ActionMap import NumberActionMap from Components.Label import Label from Components.ChoiceList import ChoiceEntryComponent, ChoiceList from Components.Sources.StaticText import StaticText from Components.Pixmap import Pixmap import enigma class ChoiceBox(Screen): def ...
unknown
codeparrot/codeparrot-clean
#! /usr/bin/env python # ben reichert, cs311 dfa-analyzer #be nice and follow the rules and you'll have a nice dfa, otherwise...well...a bad piece of software #looked at these links for notes: #http://pythonfiddle.com/dfa-simple-implementation/ #http://www.lamantia.org/archives/457 #https://github.com/reverie/python-au...
unknown
codeparrot/codeparrot-clean
# encoding: utf-8 """ parse_process.py Created by Thomas Mangin on 2015-06-05. Copyright (c) 2009-2015 Exa Networks. All rights reserved. """ import time from collections import defaultdict from exabgp.configuration.core import Section from exabgp.configuration.parser import boolean from exabgp.configuration.neighbo...
unknown
codeparrot/codeparrot-clean
""" Boolean geometry utilities. """ from __future__ import absolute_import #Init has to be imported first because it has code to workaround the python bug where relative imports don't work if the module is imported as a main module. import __init__ __author__ = 'Enrique Perez (perez_enrique@yahoo.com)' __credits__ =...
unknown
codeparrot/codeparrot-clean
// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs types_freebsd.go | go run mkpost.go package syscall const ( sizeofPtr = 0x4 sizeofShort = 0x2 sizeofInt = 0x4 sizeofLong = 0x4 sizeofLongLong = 0x8 ) type ( _C_short int16 _C_int int32 _C_long int32 _C_long_lon...
go
github
https://github.com/golang/go
src/syscall/ztypes_freebsd_386.go
/* * 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/security/oauthbearer/DefaultJwtValidatorTest.java
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Created on 2015年7月4日 @author: JimmyLiu @QQ:52799046 """ from tushare.datayes import vars as vs import pandas as pd from pandas.compat import StringIO class Trading(): def __init__(self, client): self.client = client def dy_market_tickRT(self, securityI...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python import sys, os, re, subprocess def shcmd(cmd): subprocess.call(cmd, shell=True) def shcom(cmd): p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) out = p.communicate()[0] return out def run_kernel (k, plat): '''To change inputs or # of threads''' cmd = '' ...
unknown
codeparrot/codeparrot-clean
{ "format_version": "1.2", "terraform_version": "1.8.0-dev", "applyable": true, "complete": true, "variables": { "ami": { "value": "bad-ami" }, "id_minimum_length": { "value": 10 } }, "planned_values": { "outputs": { "foo_id": { "sensitive": false, "ty...
json
github
https://github.com/hashicorp/terraform
internal/command/testdata/show-json/conditions/output-refresh-only.json
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
cpp
github
https://github.com/llvm/llvm-project
clang-tools-extra/clang-tidy/bugprone/SignedCharMisuseCheck.cpp
# Testing the line trace facility. from test import support import unittest import sys import difflib import gc # A very basic example. If this fails, we're in deep trouble. def basic(): return 1 basic.events = [(0, 'call'), (1, 'line'), (1, 'return')] # Many of the tests below ...
unknown
codeparrot/codeparrot-clean
// Copyright IBM Corp. 2016, 2025 // SPDX-License-Identifier: BUSL-1.1 //go:build !memprofiler package command func (c *ServerCommand) startMemProfiler() { }
go
github
https://github.com/hashicorp/vault
command/server_noprofile.go
#!/usr/bin/env python """A collection of ASN.1-based protocols modules. A collection of ASN.1 modules expressed in form of pyasn1 classes. Includes protocols PDUs definition (SNMP, LDAP etc.) and various data structures (X.509, PKCS etc.). """ classifiers = """\ Development Status :: 5 - Production/Stable En...
unknown
codeparrot/codeparrot-clean
/*------------------------------------------------------------------------- * * backup_manifest.c * code for generating and sending a backup manifest * * Portions Copyright (c) 2010-2026, PostgreSQL Global Development Group * * IDENTIFICATION * src/backend/backup/backup_manifest.c * *---------------------...
c
github
https://github.com/postgres/postgres
src/backend/backup/backup_manifest.c
# View for semi-static templatized content. # # List of valid templates is explicitly managed for (short-term) # security reasons. from edxmako.shortcuts import render_to_response, render_to_string from mako.exceptions import TopLevelLookupException from django.shortcuts import redirect from django.conf import setting...
unknown
codeparrot/codeparrot-clean
/* * Copyright (C) 2017 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 agreed ...
java
github
https://github.com/google/guava
guava/src/com/google/common/primitives/ImmutableIntArray.java
# -*- coding: utf-8 -*- import math from collections import OrderedDict from . import getLogger log = getLogger(__name__) class BaseMetric: def __init__(self, name, type_=int): self.name = name self._value = type_() self._type = type_ @property def value(self): return self...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- from openerp import http, _ from openerp.http import request from openerp.addons.base.ir.ir_qweb import AssetsBundle from openerp.addons.web.controllers.main import binary_content import base64 class LivechatController(http.Controller): @http.route('/im_livechat/external_lib.<any(css,js):e...
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
--- name: Plugin Submission about: Submit a community Vault plugin! title: "[Plugin Portal] Plugin Submission - <PLUGIN NAME>" labels: ecosystem/plugin assignees: '' --- Please provide details for the plugin to be listed. All fields are required for a submission to be included in the [Vault Integrations](https://deve...
unknown
github
https://github.com/hashicorp/vault
.github/ISSUE_TEMPLATE/plugin-submission.md
//! Handling of `static`s, `const`s and promoted allocations use std::cmp::Ordering; use cranelift_module::*; use rustc_const_eval::interpret::CTFE_ALLOC_SALT; use rustc_data_structures::fx::FxHashSet; use rustc_middle::middle::codegen_fn_attrs::CodegenFnAttrFlags; use rustc_middle::mir::interpret::{ AllocId, Glo...
rust
github
https://github.com/rust-lang/rust
compiler/rustc_codegen_cranelift/src/constant.rs
/** * Base classes enabling auto-proxying based on AspectJ. * Support for AspectJ annotation aspects resides in the "aspectj.annotation" package. */ @NullMarked package org.springframework.aop.aspectj.autoproxy; import org.jspecify.annotations.NullMarked;
java
github
https://github.com/spring-projects/spring-framework
spring-aop/src/main/java/org/springframework/aop/aspectj/autoproxy/package-info.java
# # This file is part of pyasn1-modules software. # # Copyright (c) 2005-2017, Ilya Etingof <etingof@gmail.com> # License: http://pyasn1.sf.net/license.html # # PKCS#8 syntax # # ASN.1 source from: # http://tools.ietf.org/html/rfc5208 # # Sample captures could be obtained with "openssl pkcs8 -topk8" command # from pyas...
unknown
codeparrot/codeparrot-clean
import nose.tools from angr import SimState, SimHeapPTMalloc # TODO: Make these tests more architecture-independent (note dependencies of some behavior on chunk metadata size) def chunk_iterators_are_same(iterator1, iterator2): for ck in iterator1: ck2 = next(iterator2) if ck.base != ck2.base: ...
unknown
codeparrot/codeparrot-clean
from chainer.functions.loss import crf1d from chainer import link from chainer import variable class CRF1d(link.Link): """Linear-chain conditional random field loss layer. This link wraps the :func:`~chainer.functions.crf1d` function. It holds a transition cost matrix as a parameter. Args: n...
unknown
codeparrot/codeparrot-clean
# Copyright 2025 Meta AI and The HuggingFace Inc. 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 requ...
python
github
https://github.com/huggingface/transformers
src/transformers/models/dinov3_vit/modular_dinov3_vit.py