code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
#ifndef HEADER_CURL_GETINFO_H #define HEADER_CURL_GETINFO_H /*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * |...
c
github
https://github.com/curl/curl
lib/getinfo.h
use std::{cmp, ops}; use rustc_span::{DUMMY_SP, Span}; /// Tracks whether executing a node may exit normally (versus /// return/break/panic, which "diverge", leaving dead code in their /// wake). Tracked semi-automatically (through type variables marked /// as diverging), with some manual adjustments for control-flow...
rust
github
https://github.com/rust-lang/rust
compiler/rustc_hir_typeck/src/diverges.rs
<!--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/main_classes/output.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 not u...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """Built-in Tasks. The built-in tasks are always available in all app instances. """ from __future__ import absolute_import, unicode_literals from celery._state import connect_on_app_finalize from celery.utils.log import get_logger __all__ = () logger = get_logger(__name__) @connect_on_app_f...
unknown
codeparrot/codeparrot-clean
import sys import prlsdkapi import string if len(sys.argv) != 3: print "Usage: parallels_send_string '<VM_NAME>' '<string>'" exit() # Parse arguments vm_name=sys.argv[1] # String to use keynames = sys.argv[2].split(' '); prlsdk = prlsdkapi.prlsdk consts = prlsdkapi.prlsdk.consts # Initialize the Parallels A...
unknown
codeparrot/codeparrot-clean
"""Support for ZoneMinder.""" import logging import voluptuous as vol from zoneminder.zm import ZoneMinder from homeassistant.const import ( ATTR_ID, ATTR_NAME, CONF_HOST, CONF_PASSWORD, CONF_PATH, CONF_SSL, CONF_USERNAME, CONF_VERIFY_SSL, ) import homeassistant.helpers.config_validati...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # # Copyright 2009 Facebook # # 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
// SPDX-License-Identifier: GPL-2.0 /* * linux/fs/stat.c * * Copyright (C) 1991, 1992 Linus Torvalds */ #include <linux/blkdev.h> #include <linux/export.h> #include <linux/mm.h> #include <linux/errno.h> #include <linux/file.h> #include <linux/highuid.h> #include <linux/fs.h> #include <linux/namei.h> #include <l...
c
github
https://github.com/torvalds/linux
fs/stat.c
# django-openid-auth - OpenID integration for django.contrib.auth # # Copyright (C) 2009-2013 Canonical Ltd. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above ...
unknown
codeparrot/codeparrot-clean
""" Tests for the certificates models. """ from datetime import datetime, timedelta from ddt import data, ddt, unpack from pytz import UTC from django.conf import settings from milestones.tests.utils import MilestonesTestCaseMixin from mock import patch from nose.plugins.attrib import attr from badges.tests.factories ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # -*- coding: iso-8859-15 -*- from xml.sax import make_parser from xml.sax.handler import ContentHandler class SmallSMILHandler(ContentHandler): def __init__(self): self.lista_dic = [] self.tags = ['root-layout', 'region', 'img', 'audio', 'textstream'] self.attrs = { ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python """ Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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 co...
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...
json
github
https://github.com/apache/kafka
clients/src/main/resources/common/message/AddOffsetsToTxnRequest.json
# Village People, 2017 # This script trains an agent on Artificial Pig Chase environment and # evaluates it both on Artificial Pig Chase, and Malmo environments. import torch import torch.multiprocessing as mp import time from termcolor import colored as clr # from agents import get_agent from models import get_mod...
unknown
codeparrot/codeparrot-clean
## Input ```javascript function Component(props) { return foo?.(props); } ``` ## Code ```javascript import { c as _c } from "react/compiler-runtime"; function Component(props) { const $ = _c(2); let t0; if ($[0] !== props) { t0 = foo?.(props); $[0] = props; $[1] = t0; } else { t0 = $[1]; ...
unknown
github
https://github.com/facebook/react
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/optional-call-simple.expect.md
#ImportModules import ShareYourSystem as SYS import os #Definition an instance MyDirecter=SYS.DirecterClass() #Direct for displaying folders ''' MyDirecter.direct( lambda _LiargVariablesList,_FolderPathStr,_FileKeyStrsList: Representer._print(_LiargVariablesList[0]+_FolderPathStr), ["_FolderPathStr is "], ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python3 # This file is part of ofxstatement-austrian. # See README.rst for more information. import csv import re from ofxstatement import statement from ofxstatement.parser import CsvStatementParser from ofxstatement.plugin import Plugin from ofxstatement.statement import generate_transaction_id from o...
unknown
codeparrot/codeparrot-clean
# 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/. import argparse import multiprocessing import os import sys here = os.path.split(__file__)[0] servo_root = os.path.absp...
unknown
codeparrot/codeparrot-clean
name: GitHub Actions Essential CI on: merge_group: pull_request: types: [opened, reopened, synchronize] branches: - "master" - "release-*" - "staging-*" - "!release-1.0*" - "!release-1.1*" - "!release-2.0*" - "!release-2.1*" - "!release-19.1*" - "!releas...
unknown
github
https://github.com/cockroachdb/cockroach
.github/workflows/github-actions-essential-ci.yml
""" Global Django exception and warning classes. """ class DjangoRuntimeWarning(RuntimeWarning): pass class ObjectDoesNotExist(Exception): "The requested object does not exist" silent_variable_failure = True class MultipleObjectsReturned(Exception): "The query returned multiple objects when only one w...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2006-2009 Mitch Garnaat http://garnaat.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, including # without limitation the rights to use, copy, modi...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 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
# SPDX-License-Identifier: GPL-2.0-only %YAML 1.2 --- $id: http://devicetree.org/schemas/clock/qcom,rpmhcc.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Qualcomm Technologies, Inc. RPMh Clocks maintainers: - Taniya Das <quic_tdas@quicinc.com> description: | Resource Power Manager Hardened (...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml
# -*- test-case-name: twisted.test.test_formmethod -*- # Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. """ Form-based method objects. This module contains support for descriptive method signatures that can be used to format methods. Currently this is only used by woven. """ import ...
unknown
codeparrot/codeparrot-clean
# Layers LAYER_1 = (True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False) LAYER_2 = (False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False) LAYER_3 = (...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python import os import tarfile from contextlib import closing from gppylib.commands.base import ExecutionError from gppylib.operations.test.regress.test_package import GppkgTestCase, unittest, RPMSpec, GppkgSpec, run_command, OS, GPDB_VERSION class QueryTestCase(GppkgTestCase): """Test the query ...
unknown
codeparrot/codeparrot-clean
A tuple struct or tuple variant was used in a pattern as if it were a struct or struct variant. Erroneous code example: ```compile_fail,E0769 enum E { A(i32), } let e = E::A(42); match e { E::A { number } => { // error! println!("{}", number); } } ``` To fix this error, you can use the tuple pa...
unknown
github
https://github.com/rust-lang/rust
compiler/rustc_error_codes/src/error_codes/E0769.md
# Copyright 2010 OpenStack Foundation # Copyright 2011 Piston Cloud Computing, 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.apach...
unknown
codeparrot/codeparrot-clean
div.svelte-xyz ~ article:where(.svelte-xyz) { color: green; } span.svelte-xyz ~ b:where(.svelte-xyz) { color: green; } div.svelte-xyz span:where(.svelte-xyz) ~ b:where(.svelte-xyz) { color: green; } .a.svelte-xyz ~ article:where(.svelte-xyz) { color: green; } div.svelte-xyz ~ .b:where(.svelte-xyz) { color: green; }...
css
github
https://github.com/sveltejs/svelte
packages/svelte/tests/css/samples/general-siblings-combinator/expected.css
# Unwinder commands. # Copyright 2015-2016 Free Software Foundation, 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 versio...
unknown
codeparrot/codeparrot-clean
imports: - { resource: ../config/default.yml } framework: secret: '%secret%' default_locale: '%env(LOCALE)%' enabled_locales: ['%env(LOCALE)%'] session: storage_factory_id: session.storage.factory.native cookie_httponly: '%env(bool:COOKIE_HTTPONLY)%' parameters: env(LOCALE): en...
unknown
github
https://github.com/symfony/symfony
src/Symfony/Bundle/FrameworkBundle/Tests/Functional/app/ConfigDump/config.yml
""" Copyright (C) 2013-2018 Calliope contributors listed in AUTHORS. Licensed under the Apache 2.0 License (see LICENSE file). conversion.py ~~~~~~~~~~~~~~~~~ Conversion technology constraints. """ import pyomo.core as po # pylint: disable=import-error from calliope.backend.pyomo.util import \ get_param def ...
unknown
codeparrot/codeparrot-clean
from __future__ import absolute_import, unicode_literals from datetime import date from django import forms from django.core.exceptions import FieldError, ValidationError from django.core.files.uploadedfile import SimpleUploadedFile from django.forms.models import (modelform_factory, ModelChoiceField, fields_for_...
unknown
codeparrot/codeparrot-clean
#include <torch/library.h> #include <ATen/native/mkldnn/xpu/detail/oneDNN.h> #include <ATen/native/mkldnn/xpu/qlinear.h> #include <c10/core/ScalarType.h> using namespace at::native::onednn; namespace at::native::xpu { inline c10::ScalarType QLinearOnednnXPU::qlinear_decide_out_dtype( const at::Tensor& act, ...
cpp
github
https://github.com/pytorch/pytorch
aten/src/ATen/native/mkldnn/xpu/qlinear.cpp
## Input ```javascript import {Stringify} from 'shared-runtime'; function Component({config}) { /** * The original memoization is optimal in the sense that it has * one output (the object) and one dependency (`config`). Both * the `a` and `b` functions will have to be recreated whenever * `config` chang...
unknown
github
https://github.com/facebook/react
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reordering-across-blocks.expect.md
// Adapted from rustc ui test suite (ui/type-alias-impl-trait/issue-72793.rs) #![feature(type_alias_impl_trait)] pub trait T { type Item; } pub type Alias<'a> = impl T<Item = &'a ()>; struct S; impl<'a> T for &'a S { type Item = &'a (); } #[define_opaque(Alias)] pub fn filter_positive<'a>() -> Alias<'a> { ...
rust
github
https://github.com/rust-lang/rust
compiler/rustc_codegen_cranelift/example/issue-72793.rs
/* Copyright 2024 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/testing/matchers.h
# -*- coding: utf-8 -*- """file forms.""" from flask_wtf import Form from wtforms import PasswordField, StringField from wtforms.validators import DataRequired from labrador.user.models import User class LoginForm(Form): """Login form.""" username = StringField('Username', validators=[DataRequired()]) pa...
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/mirror_pad_mode.h
# Copyright 2016 Twitter. 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 agree...
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): def forwards(self, orm): # Adding model 'Annotation' db.create_table('djangosherd_annotation', ( ('id', self.gf('django.db.mode...
unknown
codeparrot/codeparrot-clean
# # Copyright © 2012 - 2021 Michal Čihař <michal@cihar.com> # # This file is part of Weblate <https://weblate.org/> # # 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 Lice...
unknown
codeparrot/codeparrot-clean
## Inspect your injectors NOTE: The Injector Tree is available for Angular Applications built with version 17 or higher. ### View the injector hierarchy of your application The **Injector Tree** tab lets you explore the structure of the Injectors configured in your application. Here you will see two trees representi...
unknown
github
https://github.com/angular/angular
adev/src/content/tools/devtools/injectors.md
ventas_larry = 0 ventas_curly = 0 ventas_moe = 0 opcion = 4 maxima_venta = 0 maximo_vendedor = "" print "1.- Ingresar ventas" print "2.- Venta mayor" print "3.- Peor vendedor" print "0.- Salir" while opcion != 0: opcion = int(raw_input("Operacion? ")) if opcion == 1: nombre = raw_input("Nombre vendedor: ") i...
unknown
codeparrot/codeparrot-clean
//// [tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration4_es5.ts] //// //// [asyncFunctionDeclaration4_es5.ts] function await() { } //// [asyncFunctionDeclaration4_es5.js] "use strict"; function await() { }
javascript
github
https://github.com/microsoft/TypeScript
tests/baselines/reference/asyncFunctionDeclaration4_es5(target=es2015).js
An unnecessary type parameter was given in a type alias. Erroneous code example: ```compile_fail,E0091 type Foo<T> = u32; // error: type parameter `T` is never used // or: type Foo<A, B> = Box<A>; // error: type parameter `B` is never used ``` Please check you didn't write too many parameters. Example: ``` type Foo...
unknown
github
https://github.com/rust-lang/rust
compiler/rustc_error_codes/src/error_codes/E0091.md
# 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. import logging import os import re import subprocess from telemetry.core import util from telemetry.internal.platform import device from telemetry.internal.p...
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
model/histogram/convert_test.go
from django.contrib.gis.gdal.error import OGRException from django.utils import six #### OGRGeomType #### class OGRGeomType(object): "Encapulates OGR Geometry Types." wkb25bit = -2147483648 # Dictionary of acceptable OGRwkbGeometryType s and their string names. _types = {0 : 'Unknown', ...
unknown
codeparrot/codeparrot-clean
""" This module houses the ctypes function prototypes for GDAL DataSource (raster) related data structures. """ from ctypes import POINTER, c_char_p, c_double, c_int, c_void_p from functools import partial from django.contrib.gis.gdal.libgdal import std_call from django.contrib.gis.gdal.prototypes.generation import ( ...
unknown
codeparrot/codeparrot-clean
from __future__ import unicode_literals from django.contrib.auth import get_user_model from django.contrib.auth.models import Permission class ModelBackend(object): """ Authenticates against django.contrib.auth.models.User. """ def authenticate(self, username=None, password=None, **kwargs): Us...
unknown
codeparrot/codeparrot-clean
from bob.ip.facedetect.tests.utils import is_library_available import bob.io.image import bob.io.base import bob.io.base.test_utils import numpy # An image with one face face_image = bob.io.base.load( bob.io.base.test_utils.datafile("testimage.jpg", "bob.ip.facedetect") ) # An image with 6 faces face_image_mult...
unknown
codeparrot/codeparrot-clean
from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support.select import Select from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys import selenium.webdriver.chrome.service as service import tracebac...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # # twitterauth.py # A controller for OAuth. # # Copyright 2010 Atsushi Shibata # """ A controller for OAuth. $Id: twitterauth.py 649 2010-08-16 07:44:47Z ats $ """ __author__ = 'Atsushi Shibata <shibata@webcore.co.jp>' __docformat__ = 'plaintext' __licence__ = 'MIT' from google.appengine.ap...
unknown
codeparrot/codeparrot-clean
import os from django.apps import apps from django.contrib.staticfiles.finders import get_finders from django.contrib.staticfiles.storage import staticfiles_storage from django.core.checks import Tags from django.core.files.storage import FileSystemStorage from django.core.management.base import BaseCommand, CommandEr...
python
github
https://github.com/django/django
django/contrib/staticfiles/management/commands/collectstatic.py
from __future__ import annotations from collections.abc import AsyncIterator, Iterable from inspect import isasyncgen from typing import TYPE_CHECKING, Any from unittest import mock import pytest from testfixtures import LogCapture from twisted.internet import defer from scrapy.core.spidermw import SpiderMiddlewareM...
python
github
https://github.com/scrapy/scrapy
tests/test_spidermiddleware.py
from django.http import HttpResponseForbidden from django.core.cache import get_cache from uwsgi_it_api.config import UWSGI_IT_BASE_UID, UWSGI_IT_METRICS_CACHE from uwsgi_it_api.decorators import need_basicauth from uwsgi_it_api.utils import spit_json import datetime def metrics_container_do(request, container, qs, ...
unknown
codeparrot/codeparrot-clean
# This file contains compile and related tasks that only run on nightly/reference nightly exclusive variants ################################################ # Variable # ################################################ variables: # TODO: split this up into the user files. # Lis...
unknown
github
https://github.com/mongodb/mongo
etc/evergreen_yml_components/tasks/compile_tasks_nightly.yml
#!/usr/bin/env python from calendar import timegm from pipes import quote from subprocess import check_call, check_output from time import strftime, strptime import sys import tempfile from bup import git, options, vfs from bup.helpers import handle_ctrl_c, log, saved_errors, unlink import bup.path optspec = """ bup...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # # # Copyright (c) 2008 JAILLET Simon - CrysaLEAD - www.crysalead.fr # # WARNING: This program as such is intended to be used by professional # programmers who take the whole responsability of assessing all potential # consequences resulting from its eventual inadequacies and bugs # End users w...
unknown
codeparrot/codeparrot-clean
import mimetypes import pyrax import re import warnings from gzip import GzipFile import hmac from time import time try: from haslib import sha1 as sha except: import sha try: from cStringIO import StringIO except ImportError: try: from StringIO import StringIO except ImportError: fr...
unknown
codeparrot/codeparrot-clean
# Author: Suyog Dutt Jain <suyog.jain@aero.iitb.ac.in> # Prabhu Ramachandran <prabhu_r@users.sf.net> # Copyright (c) 2008-2015, Enthought, Inc. # License: BSD Style. # Standard library imports. from os.path import abspath from io import BytesIO import copy import unittest # Local imports. from .common import...
unknown
codeparrot/codeparrot-clean
/** @import { BlockStatement } from 'estree' */ /** @import { AST } from '#compiler' */ /** @import { ComponentContext } from '../types.js' */ import { dev } from '../../../../state.js'; import * as b from '#compiler/builders'; /** * @param {AST.SnippetBlock} node * @param {ComponentContext} context */ export funct...
javascript
github
https://github.com/sveltejs/svelte
packages/svelte/src/compiler/phases/3-transform/server/visitors/SnippetBlock.js
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from .package import EggPackage, SourcePackage, WheelPackage class Sorter(object): DEFAULT_PACKAGE_PRECEDENCE = ( WheelPackage, EggPackage, SourcePackage, ) @clas...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # # 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 distribut...
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-beans/src/main/java/org/springframework/beans/propertyeditors/FileEditor.java
import os from os.path import join import numpy from sklearn._build_utils import get_blas_info def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('linear_model', parent_package, top_path) cblas_libs, blas_info = get_blas_info(...
unknown
codeparrot/codeparrot-clean
import { DefaultMap } from '../../tailwindcss/src/utils/default-map' import * as env from './env' // See: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-2.html#:~:text=Symbol.dispose,-??=%20Symbol(%22Symbol.dispose // @ts-expect-error — Ensure Symbol.dispose exists Symbol.dispose ??= Symbol('S...
typescript
github
https://github.com/tailwindlabs/tailwindcss
packages/@tailwindcss-node/src/instrumentation.ts
/* Copyright 2020 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
go
github
https://github.com/kubernetes/kubernetes
pkg/controller/endpointslicemirroring/config/types.go
/* * Copyright (c) 1990-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notices and this permission notice appear...
c
github
https://github.com/opencv/opencv
3rdparty/libtiff/tif_fax3.h
# This file is part of Buildbot. Buildbot 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, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without eve...
unknown
codeparrot/codeparrot-clean
#include "LLVMWrapper.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" #include "llvm/IR/Module.h" #include "llvm/ProfileData/Coverage/CoverageMapping.h" #include "llvm/ProfileData/Coverage/CoverageMappingWriter.h" #include "llvm/ProfileData/InstrProf.h" using namesp...
cpp
github
https://github.com/rust-lang/rust
compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
import unittest import doctest import serial from itertools import chain import pyfirmata from pyfirmata import mockup from pyfirmata.boards import BOARDS from pyfirmata.util import str_to_two_byte_iter, to_two_bytes # Messages todo left: # type command channel first byte second byte # -...
unknown
codeparrot/codeparrot-clean
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
unknown
codeparrot/codeparrot-clean
import sys #emotions: #happy #calm #sad #loss #interested - clasping hands together? #horny #shocked - maybe hands in front of face, with a gap in between her fingers to see through? #excited #stunned - eyes closed, I think. #angry #clothes = shoes, socks, jumper, tie, skirt, shirt, bra, panties #11 total stages #ap...
unknown
codeparrot/codeparrot-clean
// // MultipartUpload.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,...
swift
github
https://github.com/Alamofire/Alamofire
Source/Features/MultipartUpload.swift
from __future__ import absolute_import, print_function import six from time import time from sentry.http import safe_urlopen from sentry.tasks.base import instrumented_task from sentry.utils import json from sentry.utils.http import absolute_uri def get_payload_v0(event): from sentry.api.serializers import seria...
unknown
codeparrot/codeparrot-clean
<?php namespace Illuminate\Foundation\Testing\Traits; trait CanConfigureMigrationCommands { /** * The parameters that should be used when running "migrate:fresh". * * @return array */ protected function migrateFreshUsing() { $seeder = $this->seeder(); return array_merg...
php
github
https://github.com/laravel/framework
src/Illuminate/Foundation/Testing/Traits/CanConfigureMigrationCommands.php
import sys import warnings from contextlib import contextmanager from typing import Generator from typing import Optional import pytest from _pytest.compat import TYPE_CHECKING from _pytest.config import apply_warning_filters from _pytest.config import Config from _pytest.config import parse_warning_filter from _pytes...
unknown
codeparrot/codeparrot-clean
"""Unit tests for __instancecheck__ and __subclasscheck__.""" import unittest class ABC(type): def __instancecheck__(cls, inst): """Implement isinstance(inst, cls).""" return any(cls.__subclasscheck__(c) for c in {type(inst), inst.__class__}) def __subclasscheck__(cls, sub...
python
github
https://github.com/python/cpython
Lib/test/test_typechecks.py
import warnings import cx_Oracle from django.db.backends.base.introspection import ( BaseDatabaseIntrospection, FieldInfo, TableInfo, ) from django.utils.deprecation import RemovedInDjango21Warning from django.utils.encoding import force_text class DatabaseIntrospection(BaseDatabaseIntrospection): # Maps typ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2011 OpenERP S.A (<http://www.openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms ...
unknown
codeparrot/codeparrot-clean
# Swift Supplemental Libraries The supplemental libraries are all libraries that are not one of the Core or overlay libraries. Each supplemental library builds as an independent project. The supplemental libraries are: - CxxInterop - Differentiation - Distributed - Observation - StringProcessing - Runtime - Sy...
unknown
github
https://github.com/apple/swift
Runtimes/Supplemental/Readme.md
set enable_seqscan=off; CREATE TABLE test_int4 ( i int4 ); INSERT INTO test_int4 VALUES (-2),(-1),(0),(1),(2),(3); CREATE INDEX idx_int4 ON test_int4 USING gin (i); SELECT * FROM test_int4 WHERE i<1::int4 ORDER BY i; SELECT * FROM test_int4 WHERE i<=1::int4 ORDER BY i; SELECT * FROM test_int4 WHERE i=1::int4 ORDER...
sql
github
https://github.com/postgres/postgres
contrib/btree_gin/sql/int4.sql
""" HTTP server that implements the Python WSGI protocol (PEP 333, rev 1.21). Based on wsgiref.simple_server which is part of the standard library since 2.5. This is a simple server for use in testing or debugging Django apps. It hasn't been reviewed for security issues. DON'T USE IT FOR PRODUCTION USE! """ import l...
unknown
codeparrot/codeparrot-clean
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Lookup callbook information at hamqth.com. For more information about the API see https://www.hamqth.com/developers.php """ import sys import requests import collections import xml.dom.minidom as minidom from PySide import QtCore, QtGui from . import _callinfo, _...
unknown
codeparrot/codeparrot-clean
# Copyright (C) 2009 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'DynamicInterface.workgroup' db.alter_column('dynamic_interface', 'workgroup_id', self.gf('...
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...
json
github
https://github.com/apache/kafka
clients/src/main/resources/common/message/ControllerRegistrationResponse.json
from __future__ import absolute_import, unicode_literals from django.core.exceptions import ObjectDoesNotExist from django.core.management.base import BaseCommand from molo.core.models import ( PageTranslation, Page, Main, Languages) class Command(BaseCommand): def handle(self, *args, **options): # fi...
unknown
codeparrot/codeparrot-clean
from nose import SkipTest import networkx as nx from networkx.generators.degree_seq import havel_hakimi_graph class TestSpectrum(object): numpy=1 # nosetests attribute, use nosetests -a 'not numpy' to skip test @classmethod def setupClass(cls): global numpy global assert_equal glob...
unknown
codeparrot/codeparrot-clean
from __future__ import absolute_import from xml.etree import ElementTree as ET from django.conf import settings from django.contrib.comments.models import Comment from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site from . import CommentTestCase from ..models import...
unknown
codeparrot/codeparrot-clean
from sympy import (diff, trigsimp, expand, sin, cos, solve, Symbol, sympify, eye, ImmutableMatrix as Matrix) from sympy.core.compatibility import string_types, u, range from sympy.physics.vector.vector import Vector, _check_vector __all__ = ['CoordinateSym', 'ReferenceFrame'] class CoordinateSym(Sy...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # Copyright (c) 2013 Intel Corporation. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ This script is responsible for generating .gclient-xwalk in the top-level source directory from DEPS.xwalk. User-configurable va...
unknown
codeparrot/codeparrot-clean
//===- bolt/RuntimeLibs/InstrumentationRuntimeLibrary.cpp -----------------===// // // 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
bolt/lib/RuntimeLibs/InstrumentationRuntimeLibrary.cpp
# 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
#! /usr/bin/env python """A multi-threaded telnet-like server that gives a Python prompt. This is really a prototype for the same thing in C. Usage: pysvr.py [port] For security reasons, it only accepts requests from the current host. This can still be insecure, but restricts violations from people who can log in o...
unknown
codeparrot/codeparrot-clean
const Scripts = (): JSX.Element | null => { return null; }; export default Scripts;
typescript
github
https://github.com/vercel/next.js
examples/cms-sitecore-xmcloud/src/Scripts.tsx
from config.api2_0_config import * from config.settings import * from modules.logger import Log from workflows_tests import WorkflowsTests as workflows from proboscis.asserts import assert_equal from proboscis.asserts import assert_false from proboscis.asserts import assert_true from proboscis import test from probosci...
unknown
codeparrot/codeparrot-clean