code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
# Form models Form models are the foundation of Signal Forms, serving as the single source of truth for your form data. This guide explores how to create form models, update them, and design them for maintainability. NOTE: Form models are distinct from Angular's `model()` signal used for component two-way binding. A ...
unknown
github
https://github.com/angular/angular
adev/src/content/guide/forms/signals/models.md
//===--- BasicSourceInfo.cpp - Simple source information ------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
cpp
github
https://github.com/apple/swift
lib/Basic/BasicSourceInfo.cpp
# -*- coding: utf-8 -*- """ General description ------------------- Example that shows the parameter `balanced` of `GenericStorage`. Installation requirements ------------------------- This example requires the version v0.3.x of oemof. Install by: pip install 'oemof.solph>=0.4,<0.5' Optional to see the plots: ...
unknown
codeparrot/codeparrot-clean
// Based on https://github.com/rust-lang/rust/blob/689511047a75a30825e367d4fd45c74604d0b15e/tests/ui/issues/issue-59326.rs#L1 // check-pass trait Service { type S; } trait Framing { type F; } impl Framing for () { type F = (); } trait HttpService<F: Framing>: Service<S = F::F> {} type BoxService = Box<d...
rust
github
https://github.com/rust-lang/rust
compiler/rustc_codegen_cranelift/example/issue-59326.rs
### # Copyright (c) 2002-2004, Jeremiah Fincher # 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 co...
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/performance/AvoidEndlCheck.cpp
"""Utilities for fast persistence of big data, with optional compression.""" # Author: Gael Varoquaux <gael dot varoquaux at normalesup dot org> # Copyright (c) 2009 Gael Varoquaux # License: BSD Style, 3 clauses. import pickle import sys import io import zlib import gzip import warnings import contextlib from contex...
unknown
codeparrot/codeparrot-clean
# -*- coding utf-8 -*- import os import copy import six from .base import Storage from ..query.queryset import BaseQuerySet from ..query.query import QueryGroup from ..query.query import RawQuery from modularodm.utils import DirtyField from modularodm.exceptions import ( KeyExistsException, MultipleResultsF...
unknown
codeparrot/codeparrot-clean
# Copyright 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
unknown
codeparrot/codeparrot-clean
#!python """ Copyright (c) 2004-Present Pivotal Software, Inc. 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 copy of the License at http://ww...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # TODO pip install enum34 # from enum import Enum import ctypes from ctypes import * #import Structure import os import os.path import re class SimplePyCuda(object): def __init__(self, path="./", cudaappfile='cudapp'): if not path.endswith("/"): path = path + "/" assert os.path.isfile(path...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # # Copyright 2014 The Oppia 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...
unknown
codeparrot/codeparrot-clean
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package math // The original C code, the long comment, and the constants // below are from FreeBSD's /usr/src/lib/msun/src/s_expm1.c // and came with this noti...
go
github
https://github.com/golang/go
src/math/expm1.go
import { js, json, test } from '../utils' test( '@tailwindcss/oxide can be loaded into a Node.js worker thread', { fs: { 'package.json': json` { "dependencies": { "@tailwindcss/oxide": "workspace:^" } } `, 'start.js': js` let { Worker } ...
typescript
github
https://github.com/tailwindlabs/tailwindcss
integrations/oxide/workers.test.ts
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
java
github
https://github.com/apache/hadoop
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/web/MultiSchemeDelegationTokenAuthenticationHandler.java
from datetime import datetime, timedelta import json from django.conf import settings from mock import patch, Mock from nose.tools import eq_ from test_utils import RequestFactory from kitsune.customercare.models import Tweet, Reply from kitsune.customercare.tests import tweet, twitter_account, reply from kitsune.cu...
unknown
codeparrot/codeparrot-clean
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
unknown
codeparrot/codeparrot-clean
# Testing Ruby All the commands below assume that you're running them from the `build/` directory made during [Building Ruby](building_ruby.md). Most commands below should work with [GNU make](https://www.gnu.org/software/make/) (the default on Linux and macOS), [BSD make](https://man.freebsd.org/cgi/man.cgi?make(1))...
unknown
github
https://github.com/ruby/ruby
doc/contributing/testing_ruby.md
#!/bin/sh test_description='git ls-files --deduplicate test' . ./test-lib.sh test_expect_success 'setup' ' >a.txt && >b.txt && >delete.txt && git add a.txt b.txt delete.txt && git commit -m base && echo a >a.txt && echo b >b.txt && echo delete >delete.txt && git add a.txt b.txt delete.txt && git commit -m ...
unknown
github
https://github.com/git/git
t/t3012-ls-files-dedup.sh
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2012-2021 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license (see the COPYING file). """ Test Parser """ from __future__ import absolute_import from __future__ import unicode_literals from __future__ import p...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ Base class for handler-level testing of the XBlock. """ import copy from functools import wraps import json import os.path import mock import webob from workbench.runtime import WorkbenchRuntime from openassessment.assessment.api import peer as peer_api from openassessment.assessment.api i...
unknown
codeparrot/codeparrot-clean
# coding: utf-8 """ Package resource API -------------------- A resource is a logical file contained within a package, or a logical subdirectory thereof. The package resource API expects resource names to have their path parts separated with ``/``, *not* whatever the local path separator is. Do not use os.path opera...
unknown
codeparrot/codeparrot-clean
from django.contrib import admin from django.contrib.admin.sites import AdminSite from django.contrib.auth.models import User from django.contrib.contenttypes.admin import GenericTabularInline from django.contrib.contenttypes.forms import generic_inlineformset_factory from django.contrib.contenttypes.models import Cont...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2018 PaddlePaddle 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 app...
unknown
codeparrot/codeparrot-clean
# Copyright 2013 Red Hat, 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 agre...
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. */ use Symfony\Bundle\FrameworkBundle\FrameworkBundle; return [ FrameworkBundle:...
php
github
https://github.com/symfony/symfony
src/Symfony/Bundle/FrameworkBundle/Tests/Kernel/default/config/bundles.php
// SPDX-License-Identifier: GPL-2.0 /* * linux/fs/pipe.c * * Copyright (C) 1991, 1992, 1999 Linus Torvalds */ #include <linux/mm.h> #include <linux/file.h> #include <linux/poll.h> #include <linux/slab.h> #include <linux/module.h> #include <linux/init.h> #include <linux/fs.h> #include <linux/log2.h> #include <li...
c
github
https://github.com/torvalds/linux
fs/pipe.c
#!/usr/bin/env python ######################################################################## # $HeadURL$ # File : dirac-admin-get-proxy # Author : Stuart Paterson ######################################################################## """ Retrieve a delegated proxy for the given user and group """ __RCSID__ = ...
unknown
codeparrot/codeparrot-clean
# -*- encoding: utf-8 -*- import sys import argparse import rdoupdate import rdoupdate.exception from . import VERSION import core import exception from utils import log ARGCOMPLETE_AVAILABLE = False try: import argcomplete ARGCOMPLETE_AVAILABLE = True except ImportError: pass def action2cmd(action): ...
unknown
codeparrot/codeparrot-clean
// Code generated by go-swagger; DO NOT EDIT. package volume // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command // Volume volume // // swagger:model Volume type Volume struct { // cluster volume ClusterVolume *ClusterVolume `json:"C...
go
github
https://github.com/moby/moby
api/types/volume/volume.go
# coding=utf-8 # Copyright 2020 The TF-Agents 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 by applicable la...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """Setup file for easy installation""" import sys import os from os.path import join, dirname, split from setuptools import setup PY3 = os.environ.get('BUILD_VERSION') == '3' or sys.version_info[0] == 3 version = __import__('social').__version__ LONG_DESCRIPTION = """ Python Social Auth is an...
unknown
codeparrot/codeparrot-clean
/* chunkset_rvv.c - RVV version of chunkset * Copyright (C) 2023 SiFive, Inc. All rights reserved. * Contributed by Alex Chiang <alex.chiang@sifive.com> * For conditions of distribution and use, see copyright notice in zlib.h */ #include <riscv_vector.h> #include "zbuild.h" /* * RISC-V glibc would enable RVV opti...
c
github
https://github.com/opencv/opencv
3rdparty/zlib-ng/arch/riscv/chunkset_rvv.c
""" Sample configuration file for the "mirror" script that will use rsync://rsync.kernel.org to fetch a kernel file list and schedule jobs on new kernel releases. This file has to be valid python code executed by the "mirror" script. The file may define and do anything but the following "names" are special: - a globa...
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
# -*- coding: utf-8 -*- # # Test documentation build configuration file, created by # sphinx-quickstart on Thu Nov 05 16:34:18 2015. # # 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 file. # # All ...
unknown
codeparrot/codeparrot-clean
name: 'Deploy angular.dev site' description: 'Automatically deploy and set up redirects for angular.dev' author: 'Angular' inputs: serviceKey: description: 'The service key used for firebase deployments.' required: true githubReleaseTrainReadToken: description: 'GitHub access token for reading release t...
unknown
github
https://github.com/angular/angular
.github/actions/deploy-docs-site/action.yml
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test that C.malloc does not return nil. package main // #include <stdlib.h> import "C" import ( "fmt" "runtime" ) func main() { var size C.size_t siz...
go
github
https://github.com/golang/go
src/cmd/cgo/internal/testerrors/testdata/malloc.go
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2011 Eficent (<http://www.eficent.com/>) # Jordi Ballester Alomar <jordi.ballester@eficent.com> # # This program is free software: you can redistribute it and/or modify # it und...
unknown
codeparrot/codeparrot-clean
#!/usr/local/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2014 LasSil by Ishayahu Lastov # # 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/LICENS...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # Copyright (C) 2016 Jesse Moseman, and John Carlo B. Viernes IV # # This file is part of fossologyFunTime. # # fossologyFunTime 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 versio...
unknown
codeparrot/codeparrot-clean
#pragma once #include <c10/macros/Export.h> #include <ATen/Tensor.h> #include <ATen/core/Scalar.h> namespace at::native::sparse { TORCH_API void sparse_sampled_addmm_check_inputs( const Tensor& self, const Tensor& mat1, const Tensor& mat2, const Scalar& beta, const Scalar& alpha, const Tenso...
c
github
https://github.com/pytorch/pytorch
aten/src/ATen/native/sparse/SparseBlas.h
# -*- 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
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
c
github
https://github.com/llvm/llvm-project
clang-tools-extra/clang-tidy/llvmlibc/CalleeNamespaceCheck.h
import os import sys import pyprind import tty import termios import time import threading import cv2 class CharFrame: ascii_char = "$@B%8&WM#*oahkbdpqwmZO0QLCJUYXzcvunxrjft/\|()1{}[]?-_+~<>i!lI;:,\"^`'. " def mapPixel(self, luminance): # map pixels to ...
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
// Copyright IBM Corp. 2016, 2025 // SPDX-License-Identifier: MPL-2.0 package framework import ( "context" "encoding/json" "strings" "time" uuid "github.com/hashicorp/go-uuid" "github.com/hashicorp/vault/sdk/helper/jsonutil" "github.com/hashicorp/vault/sdk/logical" ) // WALPrefix is the prefix within Storage...
go
github
https://github.com/hashicorp/vault
sdk/framework/wal.go
#!/usr/bin/python # (c) 2016, NetApp, Inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
unknown
codeparrot/codeparrot-clean
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
java
github
https://github.com/apache/hadoop
hadoop-cloud-storage-project/hadoop-gcp/src/test/java/org/apache/hadoop/fs/gs/contract/ITestGoogleContractRename.java
from django.shortcuts import render, HttpResponseRedirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.models import User from diary.models import Customer, Resource, Treatment, Entry from .models import Profile from rest_framework import viewsets from .serializers import Custome...
unknown
codeparrot/codeparrot-clean
//// [tests/cases/conformance/expressions/asOperator/asOperatorAmbiguity.ts] //// //// [asOperatorAmbiguity.ts] interface A<T> { x: T; } interface B { m: string; } // Make sure this is a type assertion to an array type, and not nested comparison operators. var x: any; var y = x as A<B>[]; var z = y[0].m; // z should ...
javascript
github
https://github.com/microsoft/TypeScript
tests/baselines/reference/asOperatorAmbiguity.js
# 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 from telemetry.page import page as page_module from telemetry.page import page_set as page_set_module class MapsPage(page_module.Page): d...
unknown
codeparrot/codeparrot-clean
from celery.states import ALL_STATES def test_abstract_model_implementations(sa_session, sa_schedule, sa_child_news): assert(isinstance(sa_schedule.id, int)) assert(isinstance(sa_child_news.id, int)) def test_abstract_schedule_implementation( sa_scheduler, sa_session, sa_owner_model, sa_schedule): ...
unknown
codeparrot/codeparrot-clean
# -*- 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
action: "The 'action' to execute for a task, it normally translates into a C(module) or action plugin." args: "A secondary way to add arguments into a task. Takes a dictionary in which keys map to options and values." always: List of tasks, in a block, that execute no matter if there is an error in the block or not. an...
unknown
github
https://github.com/ansible/ansible
lib/ansible/keyword_desc.yml
#!/usr/bin/env python # Copyright 2017 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 appli...
unknown
codeparrot/codeparrot-clean
from direct.showbase.InputStateGlobal import inputState #from DirectGui import * #from PythonUtil import * #from IntervalGlobal import * #from otp.avatar import Avatar from direct.directnotify import DirectNotifyGlobal #import GhostWalker #import GravityWalker #import NonPhysicsWalker #import PhysicsWalker #if __debug...
unknown
codeparrot/codeparrot-clean
//===--- Evaluator.cpp - Request Evaluator Implementation -----------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
cpp
github
https://github.com/apple/swift
lib/AST/Evaluator.cpp
""" Python Character Mapping Codec generated from '8859-4.TXT' with gencodec.py. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. (c) Copyright 2000 Guido van Rossum. """#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,erro...
unknown
codeparrot/codeparrot-clean
"""Arcam media player.""" import logging from arcam.fmj import DecodeMode2CH, DecodeModeMCH, IncomingAudioFormat, SourceCodes from arcam.fmj.state import State from homeassistant import config_entries from homeassistant.components.media_player import BrowseMedia, MediaPlayerEntity from homeassistant.components.media_...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2010 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
#!/usr/bin/env python # ex:ts=4:sw=4:sts=4:et # Copyright (C) 2007 OpenedHand # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it wil...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # # satcfe/tests/entidades/test_produtoservico.py # # Copyright 2019 Base4 Sistemas Ltda ME # # 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.o...
unknown
codeparrot/codeparrot-clean
#! /usr/bin/env python3 # # update_po - a gramps tool to update translations # # Copyright (C) 2006-2006 Kees Bakker # Copyright (C) 2006 Brian Matherly # Copyright (C) 2008 Stephen George # Copyright (C) 2012 # # This program is free software; you can redistribute it and/or modify # it under the terms of ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- import logging # Copyright 2010 Dirk Holtwick, holtwick.it # # 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 # # Unle...
unknown
codeparrot/codeparrot-clean
from OpenSSL.crypto import FILETYPE_PEM from twisted.internet.ssl import PrivateCertificate, KeyPair from axiom.item import Item from axiom.attributes import text from axiom.dependency import installOn from axiom.test.historic.stubloader import saveStub from xmantissa.port import TCPPort, SSLPort from xmantissa.webs...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- from datetime import timedelta from itertools import product import nose import re import warnings from pandas import (date_range, MultiIndex, Index, CategoricalIndex, compat) from pandas.core.common import PerformanceWarning from pandas.indexes.base import InvalidIndexErro...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python2.7 # Copyright 2015, 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 lis...
unknown
codeparrot/codeparrot-clean
//// [tests/cases/conformance/async/es5/asyncSetter_es5.ts] //// //// [asyncSetter_es5.ts] class C { async set foo(value) { } } //// [asyncSetter_es5.js] "use strict"; class C { set foo(value) { } }
javascript
github
https://github.com/microsoft/TypeScript
tests/baselines/reference/asyncSetter_es5(target=es2015).js
# Code imported from https://github.com/taskcluster/taskcluster/blob/32629c562f8d6f5a6b608a3141a8ee2e0984619f/services/treeherder/src/util/route_parser.js # A Taskcluster routing key will be in the form: # treeherder.<version>.<user/project>|<project>.<revision>.<pushLogId/pullRequestId> # [0] Routing key prefix used ...
unknown
codeparrot/codeparrot-clean
# This file is a part of MediaDrop (http://www.mediadrop.net), # Copyright 2009-2013 MediaCore Inc., Felix Schwarz and other contributors. # For the exact contribution history, see the git revision log. # The source code contained in this file is licensed under the GPLv3 or # (at your option) any later version. # See L...
unknown
codeparrot/codeparrot-clean
/* * Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.analysis.api.renderer.base.contextReceivers import org.jetbrains.kotlin.analysis...
kotlin
github
https://github.com/JetBrains/kotlin
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/base/contextReceivers/KaContextReceiversRendererForSource.kt
# # Copyright (C) 2008 The Android Open Source Project # # 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 la...
unknown
codeparrot/codeparrot-clean
# Copyright (C) 2014 Andrey Antukh <niwi@niwi.be> # Copyright (C) 2014 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014 David Barragán <bameda@dbarragan.com> # This program 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 F...
unknown
codeparrot/codeparrot-clean
from __future__ import absolute_import, unicode_literals import unittest from mopidy import backend, models from tests import dummy_backend class LibraryTest(unittest.TestCase): def test_default_get_images_impl_falls_back_to_album_image(self): album = models.Album(images=['imageuri']) track = m...
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 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 ...
unknown
codeparrot/codeparrot-clean
import os import re from io import StringIO from django.contrib.gis.gdal import GDAL_VERSION, Driver, GDALException from django.contrib.gis.utils.ogrinspect import ogrinspect from django.core.management import call_command from django.db import connection, connections from django.db.backends.sqlite3.creation import Da...
python
github
https://github.com/django/django
tests/gis_tests/inspectapp/tests.py
area: Mapping issues: - 140506 pr: 141397 summary: Resolve *.geo.location as geopoint in otel dynamic mappings type: bug
unknown
github
https://github.com/elastic/elasticsearch
docs/changelog/141397.yaml
""" Test term_1_0_l1_penalty """ import numpy as np from pylearn2.datasets.dense_design_matrix import DenseDesignMatrix from pylearn2.models.mlp import MLP, Sigmoid from pylearn2.train import Train from pylearn2.training_algorithms.sgd import SGD, ExponentialDecay from pylearn2.termination_criteria import And, EpochCou...
unknown
codeparrot/codeparrot-clean
#pragma once #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/native/DispatchStub.h> #include <ATen/native/quantized/AffineQuantizerBase.h> namespace at::native { TORCH_API Tensor& quantize_tensor_per_tensor_affine( const Tensor& rtensor, Tensor& qtensor, double scale, int64_t ...
c
github
https://github.com/pytorch/pytorch
aten/src/ATen/native/quantized/AffineQuantizer.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\Component\Clock; use Psr\Clock\ClockInterface; use Symfony\Cont...
php
github
https://github.com/symfony/symfony
src/Symfony/Component/Clock/ClockAwareTrait.php
from __future__ import division, print_function, absolute_import import numpy as np from scipy._lib.decorator import decorator as _decorator __all__ = ['delaunay_plot_2d', 'convex_hull_plot_2d', 'voronoi_plot_2d'] @_decorator def _held_figure(func, obj, ax=None, **kw): import matplotlib.pyplot as plt if ax ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python2 # Copyright (C) 2016-2017(H) # Max Planck Institute for Polymer Research # # This file is part of ESPResSo++. # # ESPResSo++ 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, eit...
unknown
codeparrot/codeparrot-clean
""" =========================================== Sparse coding with a precomputed dictionary =========================================== Transform a signal as a sparse combination of Ricker wavelets. This example visually compares different sparse coding methods using the :class:`~sklearn.decomposition.SparseCoder` est...
python
github
https://github.com/scikit-learn/scikit-learn
examples/decomposition/plot_sparse_coding.py
# coding: utf-8 import unittest from mock import MagicMock from geopy.exc import GeocoderQueryError from tests import FakeBot class TestLocationParser(unittest.TestCase): def setUp(self): self.bot = FakeBot() config = dict( test=False, location='Paris', favorit...
unknown
codeparrot/codeparrot-clean
#Brandon Lee #14010627X #10/31/14 #Assignment 7 """ countLetters() - Pseudocode Import libraries: import os function definition: def countLetters(fileName, fileContent): create list with all l...
unknown
codeparrot/codeparrot-clean
/* Copyright 2014 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/cluster/ports/ports.go
import fs from 'fs' import other from 'other' const { readFile, readdir, access: foo } = fs.promises const { a, b, cat: bar, ...rem } = other export async function getStaticProps() { readFile readdir foo b cat rem } export default function Home() { return <div /> }
javascript
github
https://github.com/vercel/next.js
crates/next-custom-transforms/tests/fixture/ssg/getStaticProps/destructuring-assignment-object/input.js
# 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...
python
github
https://github.com/tensorflow/tensorflow
tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/defun_export.py
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the "Elastic License * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side * Public License v 1"; you may not use this file except in compliance with, ...
java
github
https://github.com/elastic/elasticsearch
build-tools/src/main/java/org/elasticsearch/gradle/PropertyNormalization.java
from unittest import main, TestCase from pytest_caching_utils import _merged_lastfailed_content class TestPytestCachingUtils(TestCase): def test_merged_lastfailed_content_with_overlap(self) -> None: last_failed_source = { "tools/tests/test_foo.py::test_num1": True, "tools/tests/tes...
python
github
https://github.com/pytorch/pytorch
.github/scripts/test_pytest_caching_utils.py
/* * 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
configuration-metadata/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeUtils.java
# Copyright 2011 Grid Dynamics # Copyright 2011 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # # Copyright 2012 - 2013 Brian R. D'Urso # # This file is part of Python Instrument Control System, also known as Pythics. # # Pythics 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 Foundati...
unknown
codeparrot/codeparrot-clean
import { getNormalizedAbsolutePath, isRootedDiskPath, normalizePath, Path, SortedArray, SortedReadonlyArray, TypeAcquisition, } from "./_namespaces/ts.js"; import { DiscoverTypings, Project, } from "./_namespaces/ts.server.js"; export enum LogLevel { terse, normal, reque...
typescript
github
https://github.com/microsoft/TypeScript
src/server/utilitiesPublic.ts
{ "kind": "Dashboard", "apiVersion": "dashboard.grafana.app/v2beta1", "metadata": { "name": "v40.refresh_true.v42" }, "spec": { "annotations": [ { "kind": "AnnotationQuery", "spec": { "query": { "kind": "DataQuery", "group": "grafana", ...
json
github
https://github.com/grafana/grafana
apps/dashboard/pkg/migration/conversion/testdata/migrated_dashboards_output/v1beta1-mig-v40.refresh_true.v42.v2beta1.json
#!/usr/bin/env python # C&C NLP tools # Copyright (c) Universities of Edinburgh, Oxford and Sydney # Copyright (c) James R. Curran # # This software is covered by a non-commercial use licence. # See LICENCE.txt for the full text of the licence. # # If LICENCE.txt is not included in this distribution # please email cand...
unknown
codeparrot/codeparrot-clean
from __future__ import absolute_import import datetime from django.test import TestCase from .models import Thing class ReservedNameTests(TestCase): def generate(self): day1 = datetime.date(2005, 1, 1) t = Thing.objects.create(when='a', join='b', like='c', drop='d', alter='e', having...
unknown
codeparrot/codeparrot-clean
""" Tests for class dashboard (Metrics tab in instructor dashboard) """ import json from django.test.utils import override_settings from django.core.urlresolvers import reverse from django.test.client import RequestFactory from mock import patch from capa.tests.response_xml_factory import StringResponseXMLFactory fr...
unknown
codeparrot/codeparrot-clean