code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
from setuptools import setup import os.path __license__ = """ Copyright (c) 2015 ScientiaMobile Inc. The WURFL Cloud Client is intended to be used in both open-source and commercial environments. To allow its use in as many situations as possible, the WURFL Cloud Client is dual-licensed. You may choose to use the...
unknown
codeparrot/codeparrot-clean
--- c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. SPDX-License-Identifier: curl Title: CURLINFO_FILETIME_T Section: 3 Source: libcurl See-also: - CURLOPT_FILETIME (3) - curl_easy_getinfo (3) - curl_easy_setopt (3) Protocol: - HTTP - FTP - SFTP Added-in: 7.59.0 --- # NAME CURLINFO_FILETIME_T -...
unknown
github
https://github.com/curl/curl
docs/libcurl/opts/CURLINFO_FILETIME_T.md
########################################################################## # # Copyright (c) 2020, Don Boogert. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of so...
unknown
codeparrot/codeparrot-clean
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/core/NamedTensor.h> #include <ATen/ScalarOps.h> #include <ATen/TensorMeta.h> #include <ATen/native/Pool.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/max_p...
cpp
github
https://github.com/pytorch/pytorch
aten/src/ATen/native/DilatedMaxPool2d.cpp
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright &copy; 2014-2016 NetApp, Inc. All Rights Reserved. # # DO NOT EDIT THIS CODE BY HAND! It has been generated with jsvcgen. # import click from element.cli import utils as cli_utils from element.cli import parser from element.cli.cli import pass_context from eleme...
unknown
codeparrot/codeparrot-clean
## DO NOT MODIFY THE IMPLEMENTATION OF THE Person CLASS ## class Person(object): def __init__(self, name): # create a person with name name self.name = name try: firstBlank = name.rindex(' ') self.lastName = name[firstBlank + 1:] except: self.lastN...
unknown
codeparrot/codeparrot-clean
# Copyright (C) 2004-2007, 2009, 2010 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED ...
unknown
codeparrot/codeparrot-clean
import unittest from MuseParse.classes.Input import MxmlParser from MuseParse.classes.ObjectHierarchy.TreeClasses.PieceTree import PieceTree class testSetupPiece(unittest.TestCase): def setUp(self): self.handler = MxmlParser.SetupPiece self.tags = [] self.attrs = {} self.chars = {...
unknown
codeparrot/codeparrot-clean
# frozen_string_literal: true require "helper" class DropFixture < Jekyll::Drops::Drop mutable true attr_accessor :lipsum def foo "bar" end def fallback_data @fallback_data ||= { "baz" => "buzz" } end end class TestDrop < JekyllUnitTest context "Drops" do setup do @site = fixture_s...
ruby
github
https://github.com/jekyll/jekyll
test/test_drop.rb
#!/usr/bin/python # -*- coding: utf-8 -*- """Basic methods to help plot and interpret experimental data This module contains the following classes: - :class:`ArrowLine` - A matplotlib subclass to draw an arrowhead on a line - :class:`Quantity` - Named tuple class for a constant physical quantity and the following f...
unknown
codeparrot/codeparrot-clean
import hashlib import json from girder.api import access from girder.api.describe import describeRoute, Description from girder.api.rest import Resource, ValidationException, loadmodel from girder.utility import assetstore_utilities, progress from girder.plugins.minerva.rest.geojson_dataset import GeojsonDataset from ...
unknown
codeparrot/codeparrot-clean
/* Copyright (c) 2017, 2025, Oracle and/or its affiliates. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is designed to work with certain software (including...
c
github
https://github.com/mysql/mysql-server
sql/clone_handler.h
<?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\Bridge\Doctrine\Tests\DataCollector; use Doctrine\DBAL\Connecti...
php
github
https://github.com/symfony/symfony
src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php
""" Helper functions for creating Form classes from Django models and database field objects. """ from __future__ import unicode_literals from collections import OrderedDict import warnings from django.core.exceptions import ( ImproperlyConfigured, ValidationError, NON_FIELD_ERRORS, FieldError) from django.forms...
unknown
codeparrot/codeparrot-clean
# my global config global: scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. # scrape_timeout is set to the global default (10s). # Alertmanager configuration alerting: alertm...
unknown
github
https://github.com/prometheus/prometheus
documentation/examples/prometheus.yml
use std::collections::BTreeMap; use std::ffi::{CStr, CString}; use std::fs::File; use std::path::{Path, PathBuf}; use std::ptr::NonNull; use std::sync::Arc; use std::{io, iter, slice}; use object::read::archive::ArchiveFile; use object::{Object, ObjectSection}; use rustc_codegen_ssa::back::lto::{SerializedModule, Thin...
rust
github
https://github.com/rust-lang/rust
compiler/rustc_codegen_llvm/src/back/lto.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 n...
java
github
https://github.com/apache/kafka
clients/src/main/java/org/apache/kafka/common/requests/AddOffsetsToTxnRequest.java
# # Copyright 2018 Analytics Zoo 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...
unknown
codeparrot/codeparrot-clean
# coding=utf-8 """This module exposure metadata implementation.""" from xml.etree import ElementTree from safe.metadata import BaseMetadata from safe.metadata.utilities import reading_ancillary_files, prettify_xml __copyright__ = "Copyright 2016, The InaSAFE Project" __license__ = "GPL version 3" __email__ = "info@i...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- from odoo import api, fields, models, _ from odoo.exceptions import UserError class SaleCouponApplyCode(models.TransientModel): _name = 'sale.coupon.apply.code' _rec_name = 'coupon_code' _description = 'Sales Coupon Apply Code' coupon_code = fields.Char(string="Coupon", requir...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- """ crc and uuid properties """ from rebulk.remodule import re from rebulk import Rebulk from ..common.validators import seps_surround def crc(): """ Builder for rebulk object. :return: Created Rebulk object :rtype: Rebulk """ rebulk = Rebulk().reg...
unknown
codeparrot/codeparrot-clean
import functools from ._helpers import StubClass, stub_factory class StubStrategy(StubClass): def __make_trailing_repr(self, transformation_name, func): func_name = func.__name__ or repr(func) return f"{self!r}.{transformation_name}({func_name})" def map(self, pack): return self._with...
python
github
https://github.com/python/cpython
Lib/test/support/_hypothesis_stubs/strategies.py
from __future__ import division, print_function, unicode_literals import unittest from mwel.decompiler.xmlparser import XMLParser from . import ElementCheckMixin from .. import ErrorLoggerMixin class TestXMLParser(ElementCheckMixin, ErrorLoggerMixin, unittest.TestCase): def setUp(self): super(TestXMLPar...
unknown
codeparrot/codeparrot-clean
import os class Icons: @classmethod def from_settings(cls, settings): return cls( path=settings.get("icons_path", ""), ) def __init__(self, path): self.path = path self.mimetypes = load_mimetypes(path) def for_mimetype(self, mtype): mtype = tuple(mt...
unknown
codeparrot/codeparrot-clean
/* * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.analysis.project.structure.builder import com.intellij.core.CoreApplicationEnvir...
kotlin
github
https://github.com/JetBrains/kotlin
analysis/analysis-api-standalone/src/org/jetbrains/kotlin/analysis/project/structure/builder/KaLibraryModuleBuilder.kt
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2011 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # no...
unknown
codeparrot/codeparrot-clean
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python from mem_file import * class Svf_generator: def __init__(self): self.last_addr = '' self.last_data = '' self.runtest_delay = 1 def header(self): return """ // file header start TRST OFF; ENDIR IDLE; ENDDR IDLE; STATE RESET; STATE IDLE; FREQUENCY 1E6 HZ; //Boundary Scan Chain Content...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # # Copyright 2012 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
def sorted_dict(dict1): sorted_dict = {x: sorted(y) for x, y in dict1.items()} return sorted_dict
unknown
mbpp
# this lets me be lazy..starts the cloud up like I want from my json, and gives me a browser # copies the jars for me, etc. Just hangs at the end for 10 minutes while I play with the browser import unittest import time,sys sys.path.extend(['.','..','py']) import h2o, h2o_cmd, h2o_browse as h2b, h2o_import as h2i, h2o_...
unknown
codeparrot/codeparrot-clean
# Tauri Plugin {{ plugin_name_original }}
unknown
github
https://github.com/tauri-apps/tauri
crates/tauri-cli/templates/plugin/README.md
# Copyright (c) 2008-2011 testtools developers. See LICENSE for details. """Test case related stuff.""" __metaclass__ = type __all__ = [ 'clone_test_with_new_id', 'ExpectedException', 'run_test_with', 'skip', 'skipIf', 'skipUnless', 'TestCase', ] import copy import itertools import re...
unknown
codeparrot/codeparrot-clean
<?php declare(strict_types=1); /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Util; ...
php
github
https://github.com/composer/composer
src/Composer/Util/Url.php
################################################################################ # # Copyright 2014-2016 Eric Lacombe <eric.lacombe@security-labs.org> # ################################################################################ # # This file is part of fuddly. # # fuddly is free software: you can redistribute ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- import pytest from wasp_general.types.binarray import WBinArray from wasp_general.types.bytearray import WFixedSizeByteArray class TestWFixedSizeByteArray: def test_init(self): pytest.raises(ValueError, WFixedSizeByteArray, 0, WBinArray(1)) pytest.raises(ValueError, WFixedSizeByteArray,...
unknown
codeparrot/codeparrot-clean
//! # Feature gates //! //! This crate declares the set of past and present unstable features in the compiler. //! Feature gate checking itself is done in `rustc_ast_passes/src/feature_gate.rs` //! at the moment. //! //! Features are enabled in programs via the crate-level attributes of //! `#![feature(...)]` with a co...
rust
github
https://github.com/rust-lang/rust
compiler/rustc_feature/src/lib.rs
"""Error codes for PostgresSQL This module contains symbolic names for all PostgreSQL error codes. """ # psycopg2/errorcodes.py - PostgreSQL error codes # # Copyright (C) 2006-2010 Johan Dahlin <jdahlin@async.com.br> # # psycopg2 is free software: you can redistribute it and/or modify it # under the terms of the GNU ...
unknown
codeparrot/codeparrot-clean
first_cucumber: id: 1 custom_type: Cucumber name: 'my cucumber' first_cabbage: id: 2 custom_type: Cabbage name: 'my cabbage' second_cabbage: id: 3 custom_type: Cabbage name: 'his cabbage' red_cabbage: id: 4 custom_type: RedCabbage name: 'red cabbage' seller_id: 3
unknown
github
https://github.com/rails/rails
activerecord/test/fixtures/vegetables.yml
<?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\FrameworkBundle\Tests\Functional; use PHPUnit\Framework\...
php
github
https://github.com/symfony/symfony
src/Symfony/Bundle/FrameworkBundle/Tests/Functional/FragmentTest.php
# Copyright 2015 TellApart, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
unknown
codeparrot/codeparrot-clean
# encoding: utf-8 import logging from framework.celery_tasks import app from framework.postcommit_tasks.handlers import run_postcommit logger = logging.getLogger(__name__) @run_postcommit(once_per_request=False, celery=True) @app.task(max_retries=5, default_retry_delay=60) def increment_user_activity_counters(user_...
unknown
codeparrot/codeparrot-clean
// This file was automatically generated from coroutine-context-and-dispatchers.md by Knit tool. Do not edit. package kotlinx.coroutines.guide.exampleContext04 import kotlinx.coroutines.* fun log(msg: String) = println("[${Thread.currentThread().name}] $msg") fun main() { newSingleThreadContext("Ctx1").use { ctx...
kotlin
github
https://github.com/Kotlin/kotlinx.coroutines
kotlinx-coroutines-core/jvm/test/guide/example-context-04.kt
<?php namespace Illuminate\Database\Schema\Grammars; use Illuminate\Database\Query\Expression; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Collection; use Illuminate\Support\Fluent; use LogicException; class PostgresGrammar extends Grammar { /** * If this Grammar supports schema changes...
php
github
https://github.com/laravel/framework
src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php
imports: - { resource: ./config.yml } - { resource: ./config_session.yml } framework: session: cookie_secure: auto cookie_samesite: lax security: firewalls: default: stateless: true
unknown
github
https://github.com/symfony/symfony
src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/RememberMe/stateless_config.yml
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # # Copyright (c) 2011-2013, Regents of the University of California # Alexander Afanasyev # # GNU 3.0 license, See the LICENSE file for more information # # Author: Alexander Afanasyev <alexander.afanasyev@ucla...
unknown
codeparrot/codeparrot-clean
//===----------------------------------------------------------------------===// // // 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/altera/AlteraTidyModule.cpp
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.core.handlers.wsgi import WSGIHandler, WSGIRequest, get_script_name from django.core.signals import request_finished, request_started from django.db import close_old_connections, connection from django.test import ( RequestFactory, Simple...
unknown
codeparrot/codeparrot-clean
"""Tests for the route_schedules module.""" import responses # initialize test package __init__, and does not mix up names import test as _test import navitia_client import requests class RouteSchedulesTest(_test.TestCase): def setUp(self): self.user = 'leo' self.core_url = "https://api.navitia.i...
unknown
codeparrot/codeparrot-clean
//! For middleware documentation, see [`DefaultHeaders`]. use std::{ future::Future, marker::PhantomData, pin::Pin, rc::Rc, task::{Context, Poll}, }; use actix_http::error::HttpError; use actix_utils::future::{ready, Ready}; use futures_core::ready; use pin_project_lite::pin_project; use crate::{...
rust
github
https://github.com/actix/actix-web
actix-web/src/middleware/default_headers.rs
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Addons modules by CLEARCORP S.A. # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). # # This program is free software: you can redistribute...
unknown
codeparrot/codeparrot-clean
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
unknown
codeparrot/codeparrot-clean
#!/bin/sh test_description='push from/to a shallow clone over http' GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME . ./test-lib.sh . "$TEST_DIRECTORY"/lib-httpd.sh start_httpd commit() { echo "$1" >tracked && git add tracked && git commit -m "$1" } test_expect_success 'set...
unknown
github
https://github.com/git/git
t/t5542-push-http-shallow.sh
/* * Copyright (c) 2002-2003 Michael David Adams. * All rights reserved. */ /* __START_OF_JASPER_LICENSE__ * * JasPer License Version 2.0 * * Copyright (c) 2001-2006 Michael David Adams * Copyright (c) 1999-2000 Image Power, Inc. * Copyright (c) 1999-2000 The University of British Columbia * * All rights re...
c
github
https://github.com/opencv/opencv
3rdparty/libjasper/jas_iccdata.c
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Business Applications # Copyright (c) 2013 OpenERP S.A. <http://openerp.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GN...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # # Copyright 2014 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 requests from .common import DEFAULT_REGION, API_RATE_LIMITS from .exceptions import validate_response, RGApiWarning class RGApiClient(object): def __init__(self, key, default_region=DEFAULT_REGION, limits=API_RATE_LIMITS.DEVELOP): self.key = key self.default_region = default_region ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2013, Serge van Ginderachter <serge@vanginderachter.be> # 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_ver...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2015, Forschungszentrum Jülich GmbH # All rights reserved. # Contributors: Jonas Bühler, Daniel Pflugfelder, Siegfried Jahnke # Address: Institute of Bio- and Geosciences, Plant Sciences (IBG-2), Forschungszentrum Jülich GmbH, 52428 Jülich, Germany # # Redistribution and use in source and binary forms, ...
unknown
codeparrot/codeparrot-clean
# -*- coding: UTF-8 -*- # # Copyright (c) 2015-2019 by Inteos Sp. z o.o. # All rights reserved. See LICENSE file for details. # from __future__ import unicode_literals import ssl import socket import hashlib import random import re def countbytes(fbyte, bs): if bs == 'B': return int(float(fbyte)) if...
unknown
codeparrot/codeparrot-clean
import MySQLdb import psycopg2 import os from wsgi import * def create_dbs(): print("create_dbs: let's go.") django_settings = __import__(os.environ['DJANGO_SETTINGS_MODULE'], fromlist='DATABASES') print("create_dbs: got settings.") databases = django_settings.DATABASES for name, db in databases.it...
unknown
codeparrot/codeparrot-clean
// This file is part of ICU4X. For terms of use, please see the file // called LICENSE at the top level of the ICU4X source tree // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). //! The collection of code for locale canonicalization. use crate::provider::*; use alloc::vec::Vec; use core::cmp::...
rust
github
https://github.com/nodejs/node
deps/crates/vendor/icu_locale/src/canonicalizer.rs
# Copyright 2025 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 applicabl...
python
github
https://github.com/huggingface/transformers
src/transformers/models/gemma3n/__init__.py
# كيف تُنجز نماذج 🤗 Transformers المهام؟ في [ما الذي يمكن أن تفعله نماذج 🤗 Transformers](task_summary)، تعلمت عن معالجة اللغات الطبيعية (NLP)، والخطاب والصوت، ورؤية الحاسب، وبعض تطبيقاتها المهمة. ستلقي هذه الصفحة نظرة فاحصة على كيفية حل النماذج لهذه المهام وتوضيح ما يحدث ما يحدث وراء الكواليس. هناك العديد من الطرق ...
unknown
github
https://github.com/huggingface/transformers
docs/source/ar/tasks_explained.md
# -*- coding: utf-8 -*- """sdist tests""" import os import shutil import sys import tempfile import unittest import urllib import unicodedata from StringIO import StringIO from setuptools.command.sdist import sdist from setuptools.command.egg_info import manifest_maker from setuptools.dist import Distribution SETUP_...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python """ Helper script to update sampleproject's translation catalogs. When a bug has been identified related to i18n, this helps capture the issue by using catalogs created from management commands. Example: The string "Two %% Three %%%" renders differently using trans and blocktrans. This issue i...
unknown
codeparrot/codeparrot-clean
# Migration to Control Flow syntax [Control flow syntax](guide/templates/control-flow) is available from Angular v17. The new syntax is baked into the template, so you don't need to import `CommonModule` anymore. This schematic migrates all existing code in your application to use new Control Flow Syntax. Run the sc...
unknown
github
https://github.com/angular/angular
adev/src/content/reference/migrations/control-flow.md
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models from askbot.migrations import houston_do_we_have_a_problem class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'UserAssociation.provider_name' db.add_...
unknown
codeparrot/codeparrot-clean
import unittest from openerp.tests import common from datetime import date class test_ir_sequence_date_range_standard(common.SingleTransactionCase): """ A few tests for a 'Standard' (i.e. PostgreSQL) sequence. """ def test_ir_sequence_date_range_1_create(self): """ Try to create a sequence object wit...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- """ OMERO.fs Monitor module for Window XP. Copyright 2009 University of Dundee. All rights reserved. Use is subject to license terms supplied in LICENSE.txt """ import logging import threading import os import time # Third party path package. It provides much...
unknown
codeparrot/codeparrot-clean
//! A set of traits that define a stable interface to rustc's internals. //! //! These traits abstract rustc's internal APIs, allowing rustc_public to maintain a stable //! interface regardless of internal compiler changes. use rustc_middle::mir::interpret::AllocRange; use rustc_middle::ty; use rustc_middle::ty::Ty; u...
rust
github
https://github.com/rust-lang/rust
compiler/rustc_public_bridge/src/context/helpers.rs
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is mozilla.org code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights Reserved. # # Con...
unknown
codeparrot/codeparrot-clean
from __future__ import absolute_import import logging import os from pip.req import RequirementSet from pip.basecommand import RequirementCommand from pip import cmdoptions from pip.utils import ensure_dir, normalize_path from pip.utils.build import BuildDirectory from pip.utils.filesystem import check_path_owner lo...
unknown
codeparrot/codeparrot-clean
// @compilationMode:"infer" function Component(props) { return <div />; }
javascript
github
https://github.com/facebook/react
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/infer-functions-component-with-jsx.js
from app import db from config import bitcoin_key from models import Aggregate, Day, Hours, Predictions from time import strptime, strftime, localtime import os import os.path import unirest import json def creation(date, buy, sell): date = strptime(date, '%m/%d/%y %H:%M') time_h = date.tm_hour time_d = d...
unknown
codeparrot/codeparrot-clean
import os import errno import itertools from datetime import datetime from django.conf import settings from django.core.exceptions import SuspiciousFileOperation from django.core.files import locks, File from django.core.files.move import file_move_safe from django.utils.encoding import force_text, filepath_to_uri fro...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- #***************************************************************************** # Copyright (C) 2006 Michael Graz. <mgraz@plan10.com> # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this software. #*******************...
unknown
codeparrot/codeparrot-clean
# Copyright 2017 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 2019 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 2020 DeepMind Technologies Limited. 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 a...
unknown
codeparrot/codeparrot-clean
#!/bin/python # gofed-ng - Golang system # Copyright (C) 2016 Fridolin Pokorny, fpokorny@redhat.com # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at y...
unknown
codeparrot/codeparrot-clean
# -*- CODing: utf-8 -*- # Copyright(C) 2010-2011 Romain Bignon # # This file is part of weboob. # # weboob is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your...
unknown
codeparrot/codeparrot-clean
# 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 a...
unknown
codeparrot/codeparrot-clean
/* * Copyright (c) 1999-2000 Image Power, Inc. and the University of * British Columbia. * Copyright (c) 2001-2003 Michael David Adams. * All rights reserved. */ /* __START_OF_JASPER_LICENSE__ * * JasPer License Version 2.0 * * Copyright (c) 2001-2006 Michael David Adams * Copyright (c) 1999-2000 Image Pow...
c
github
https://github.com/opencv/opencv
3rdparty/libjasper/jpc_mct.c
# -*- coding: utf-8 -*- # # {{ project_name }} documentation build configuration file, created by # sphinx-quickstart on Sun Feb 17 11:46:20 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated fi...
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/support/PropertyComparator.java
<?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\Tests\Twig; use PHPUnit\Framework\Attr...
php
github
https://github.com/symfony/symfony
src/Symfony/Bundle/WebProfilerBundle/Tests/Twig/WebProfilerExtensionTest.php
# devices/device.py # Base class for all devices. # # Copyright (C) 2009-2014 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- import os from vilya.models.doc import HTMLDoc, DocBuilder from tests.utils import get_temp_project from tests.base import TestCase DOC_REPO_PATH = os.path.join(os.path.dirname(__file__), '../data/doc_repo') class TestHTMLDoc(TestCase): def setUp(self): ...
unknown
codeparrot/codeparrot-clean
// An arena-like memory interface for the compiler. #ifndef Py_INTERNAL_PYARENA_H #define Py_INTERNAL_PYARENA_H #ifdef __cplusplus extern "C" { #endif #ifndef Py_BUILD_CORE # error "this header requires Py_BUILD_CORE define" #endif typedef struct _arena PyArena; // _PyArena_New() and _PyArena_Free() create a new a...
c
github
https://github.com/python/cpython
Include/internal/pycore_pyarena.h
# -*- encoding: utf-8 -*- # # Copyright © 2012 New Dream Network, LLC (DreamHost) # # Author: Julien Danjou <julien@danjou.info> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http:...
unknown
codeparrot/codeparrot-clean
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributi...
unknown
codeparrot/codeparrot-clean
#! python # # Backend for .NET/Mono (IronPython), .NET >= 2 # # This file is part of pySerial. https://github.com/pyserial/pyserial # (C) 2008-2015 Chris Liechti <cliechti@gmx.net> # # SPDX-License-Identifier: BSD-3-Clause import System import System.IO.Ports from serial.serialutil import * # must invoke function ...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2011 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
unknown
codeparrot/codeparrot-clean
<!DOCTYPE html> <html lang="en"> <head> <title>RetryPolicy Class Reference</title> <link rel="stylesheet" type="text/css" href="../css/jazzy.css" /> <link rel="stylesheet" type="text/css" href="../css/highlight.css" /> <meta charset="utf-8"> <script src="../js/jquery.min.js" defer></script> <s...
html
github
https://github.com/Alamofire/Alamofire
docs/Classes/RetryPolicy.html
""" SWF """ from tag import SWFTimelineContainer from stream import SWFStream from export import SVGExporter try: import cStringIO as StringIO except ImportError: import StringIO class SWFHeaderException(Exception): """ Exception raised in case of an invalid SWFHeader """ def __init__(self, message): ...
unknown
codeparrot/codeparrot-clean
"""Blocking and non-blocking HTTP client interfaces. This module defines a common interface shared by two implementations, ``simple_httpclient`` and ``curl_httpclient``. Applications may either instantiate their chosen implementation class directly or use the `AsyncHTTPClient` class from this module, which selects an...
unknown
codeparrot/codeparrot-clean
/* Base */ @charset "utf-8"; html { box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; } body { font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 21px; font-weight: 300; color: #ddd; background-color: #333; @include box-shadow(inset 0 3px 30px rgba(0,...
unknown
github
https://github.com/jekyll/jekyll
docs/_sass/_style.scss
import fractions import operator import os import random import sys import struct import time import unittest from test import support from test.support.testcase import FloatsAreIdenticalMixin from test.support.numbers import ( VALID_UNDERSCORE_LITERALS, INVALID_UNDERSCORE_LITERALS, ) from math import isinf, i...
python
github
https://github.com/python/cpython
Lib/test/test_float.py
cloud: AzurePublic managed_identity: client_id: 00000000-0000-0000-0000-000000000000
unknown
github
https://github.com/prometheus/prometheus
storage/remote/azuread/testdata/azuread_good_specificmanagedidentity.yaml