code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
c
github
https://github.com/curl/curl
lib/md4.c
package main import ( "context" "encoding/json" "errors" "fmt" "io" "net/http" "net/http/httptest" "os" "os/exec" "path/filepath" "strings" "testing" "time" "github.com/moby/moby/api/types/container" volumetypes "github.com/moby/moby/api/types/volume" "github.com/moby/moby/v2/daemon/volume" "github.c...
go
github
https://github.com/moby/moby
integration-cli/docker_cli_external_volume_driver_test.go
#!/usr/bin/env python # -*- coding: UTF-8 -*- import xbmcplugin,xbmcgui,xbmc,xbmcaddon import os,sys,urllib def get_params(): param=[] paramstring=sys.argv[2] if len(paramstring)>=2: params=sys.argv[2] cleanedparams=params.replace('?','') if (par...
unknown
codeparrot/codeparrot-clean
from .resolver import resolver from django.utils.importlib import import_module def __repr__(self): return '<%s, %s, %s, %s>' % (self.alias, self.col, self.field.name, self.field.model.__name__) from django.db.models.sql.where import Constraint Constraint.__repr__ = __repr__ # TODO: manipulate a copy of ...
unknown
codeparrot/codeparrot-clean
import collections import warnings from math import ceil from django.utils import six from django.utils.functional import cached_property from django.utils.translation import ugettext_lazy as _ class UnorderedObjectListWarning(RuntimeWarning): pass class InvalidPage(Exception): pass class PageNotAnInteger(I...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ This module contains classes that help to emulate xcodebuild behavior on top of other build systems, such as make and ninja. """ import copy import gyp.common...
unknown
codeparrot/codeparrot-clean
# Copyright 2009-2012 10gen, 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 writing,...
unknown
codeparrot/codeparrot-clean
A common challenge with combining `[chunkhash]` and Code Splitting is that the entry chunk includes the webpack runtime and with it the chunkhash mappings. This means it's always updated and the `[chunkhash]` is pretty useless because this chunk won't be cached. A very simple solution to this problem is to create anot...
unknown
github
https://github.com/webpack/webpack
examples/chunkhash/template.md
from model_base import ModelBase from metrics_base import * class H2ODimReductionModel(ModelBase): def num_iterations(self): """ Get the number of iterations that it took to converge or reach max iterations. :return: number of iterations (integer) """ o = self._model_json["output"] ...
unknown
codeparrot/codeparrot-clean
package tarexport import ( "context" "encoding/json" "fmt" "io" "os" "path" "path/filepath" "time" c8dimages "github.com/containerd/containerd/v2/core/images" "github.com/containerd/containerd/v2/pkg/tracing" "github.com/containerd/log" "github.com/containerd/platforms" "github.com/distribution/reference...
go
github
https://github.com/moby/moby
daemon/internal/image/tarexport/save.go
# Copyright (c) 2014 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Helpful routines for regression testing # # Add python-bitcoinrpc to module search path: import os import sys from decimal impor...
unknown
codeparrot/codeparrot-clean
# create-report.py # # Copyright (C) 2012 Carlos Garcia Campos <carlosgc@gnome.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 2 of the License, or # (at your option) any l...
unknown
codeparrot/codeparrot-clean
'use strict'; const assert = require('assert'); const common = require('../common.js'); const bench = common.createBenchmark(main, { n: [32], size: [8 << 20], }); function main({ n, size }) { const s = 'abcd'.repeat(size); const encodedSize = s.length * 3 / 4; // eslint-disable-next-line node-core/no-unesca...
javascript
github
https://github.com/nodejs/node
benchmark/buffers/buffer-base64-decode.js
import pymc from parmed.topologyobjects import DihedralType import numpy as np from simtk.unit import kilojoules_per_mole import torsionfit.TorsionScanSet as TorsionScan class TorsionFitModel(object): """pymc model Attributes: ---------- pymc_parameters: dict() of pymc parameters parameters_to_opt...
unknown
codeparrot/codeparrot-clean
""" Unittests for importing a course via management command """ import os from path import Path as path import shutil import tempfile from django.core.management import call_command from django_comment_common.utils import are_permissions_roles_seeded from xmodule.modulestore.django import modulestore from xmodule.mo...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2013 OpenERP SA (<http://www.openerp.com>) # # This program is free software: you can redistribute it and/or modify # it under the terms of the ...
unknown
codeparrot/codeparrot-clean
'''Application =========== The :class:`App` class is the base for creating Kivy applications. Think of it as your main entry point into the Kivy run loop. In most cases, you subclass this class and make your own app. You create an instance of your specific app class and then, when you are ready to start the applicati...
unknown
codeparrot/codeparrot-clean
from sys import argv from sys import stdout from sys import stderr import logging from argparse import ArgumentParser parser = ArgumentParser("Sorting Particles by the halo label", description= """ Sorting particles by the Halo Label. Particles not in any halo is put to the end. The first halo ...
unknown
codeparrot/codeparrot-clean
# encoding: utf-8 # module PyQt4.QtGui # from /usr/lib/python3/dist-packages/PyQt4/QtGui.cpython-34m-x86_64-linux-gnu.so # by generator 1.135 # no doc # imports import PyQt4.QtCore as __PyQt4_QtCore class QMatrix4x3(): # skipped bases: <class 'sip.simplewrapper'> """ QMatrix4x3() QMatrix4x3(QMatrix4x3) ...
unknown
codeparrot/codeparrot-clean
//===- bolt/Passes/CMOVConversion.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/Passes/CMOVConversion.cpp
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2003, Industrial Light & Magic, a division of Lucas // Digital Ltd. LLC // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the fol...
cpp
github
https://github.com/opencv/opencv
3rdparty/openexr/IlmImf/ImfChromaticitiesAttribute.cpp
"""Support for binary sensor using the PiFace Digital I/O module on a RPi.""" import voluptuous as vol from homeassistant.components import rpi_pfio from homeassistant.components.binary_sensor import PLATFORM_SCHEMA, BinarySensorEntity from homeassistant.const import CONF_NAME, DEVICE_DEFAULT_NAME import homeassistant...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections import os import gyp import gyp.common import gyp.msvs_emulation import json import sys generator_supports_multiple_toolsets = True generator_...
unknown
codeparrot/codeparrot-clean
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {RelativeLink} from './relative-link.pipe'; describe('RelativeLink', () => { let pipe: RelativeLink; be...
typescript
github
https://github.com/angular/angular
adev/shared-docs/pipes/relative-link.pipe.spec.ts
# ----------------------------------------------------------------------------- # Copyright 2015 Esri # 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
"use strict"; module.exports = [ [/Can't resolve '.\/dependency'/, /Did you mean 'dependency\.js'\?/] ];
javascript
github
https://github.com/webpack/webpack
test/cases/errors/mjs-non-fully-specified/errors.js
"""Implementation of ARFF parsers: via LIAC-ARFF and pandas.""" # Authors: The scikit-learn developers # SPDX-License-Identifier: BSD-3-Clause import itertools import re from collections import OrderedDict from collections.abc import Generator from typing import List import numpy as np import scipy as sp from sklea...
python
github
https://github.com/scikit-learn/scikit-learn
sklearn/datasets/_arff_parser.py
/* MIT License * * Copyright (c) 2023 Brad House * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, ...
c
github
https://github.com/nodejs/node
deps/cares/src/lib/record/ares_dns_record.c
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # 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) an...
unknown
codeparrot/codeparrot-clean
""" 34. Generic relations Generic relations let an object have a foreign key to any object through a content-type/object-id field. A ``GenericForeignKey`` field can point to any object, be it animal, vegetable, or mineral. The canonical example is tags (although this example implementation is *far* from complete). ""...
unknown
codeparrot/codeparrot-clean
/** @type {import('tailwindcss').Config} */ module.exports = { content: ["./app/**/*.{js,ts,jsx,tsx}"], theme: { extend: {}, }, plugins: [], };
javascript
github
https://github.com/vercel/next.js
examples/radix-ui/tailwind.config.js
The type of a const parameter references other generic parameters. Erroneous code example: ```compile_fail,E0770 fn foo<T, const N: T>() {} // error! ``` To fix this error, use a concrete type for the const parameter: ``` fn foo<T, const N: usize>() {} ```
unknown
github
https://github.com/rust-lang/rust
compiler/rustc_error_codes/src/error_codes/E0770.md
from __future__ import absolute_import, division, unicode_literals import re from xml.sax.saxutils import escape, unescape from .tokenizer import HTMLTokenizer from .constants import tokenTypes class HTMLSanitizerMixin(object): """ sanitization of XHTML+MathML+SVG and of inline style attributes.""" acceptab...
unknown
codeparrot/codeparrot-clean
from xml.dom.minidom import parseString from django.contrib.auth.decorators import login_required, permission_required from django.core import mail from django.forms import fields from django.forms.forms import Form, ValidationError from django.forms.formsets import BaseFormSet, formset_factory from django.http import...
unknown
codeparrot/codeparrot-clean
from django.db.models.constants import LOOKUP_SEP from django.db.models.fields import FieldDoesNotExist from django.db.models.sql.expressions import SQLEvaluator from django.db.models.sql.where import Constraint, WhereNode from django.contrib.gis.db.models.fields import GeometryField class GeoConstraint(Constraint): ...
unknown
codeparrot/codeparrot-clean
"""Redis cache backend.""" import pickle import random import re import django from django.core.cache.backends.base import DEFAULT_TIMEOUT, BaseCache from django.utils.functional import cached_property from django.utils.module_loading import import_string class RedisSerializer: def __init__(self, protocol=None):...
python
github
https://github.com/django/django
django/core/cache/backends/redis.py
lockfileVersion: '9.0' settings: autoInstallPeers: true excludeLinksFromLockfile: false importers: .: dependencies: '@angular/common': specifier: link:./in-existing-linked-by-bazel version: link:in-existing-linked-by-bazel '@angular/compiler': specifier: link:./in-existi...
unknown
github
https://github.com/angular/angular
integration/ng-add-localize/pnpm-lock.yaml
# This class manages all the menu items in the main menu of the editor import wx from constants import * from evhdlr import * import util import logging from preference import Preferences from wx.lib.pubsub import setupkwargs, pub import pvscomm class MainFrameMenu(wx.MenuBar): """The class implementing and manag...
unknown
codeparrot/codeparrot-clean
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
unknown
codeparrot/codeparrot-clean
# vim: set sw=4 expandtab : # # Copyright 2004 Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you # may not use this file except in compliance with the License. You # may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
unknown
codeparrot/codeparrot-clean
from django.shortcuts import render from core.models import * from core.forms import * def index(requisicao): contexto={ "faculdade":"FACULDADES PAULISTAS UNIDAS", "facul":"FAPALUN", "pagina":"HomePage" } return render(requisicao,"index.html",contexto) def cadastro(requisicao): ...
unknown
codeparrot/codeparrot-clean
<?php namespace Illuminate\Database\Eloquent; use OutOfBoundsException; class MissingAttributeException extends OutOfBoundsException { /** * Create a new missing attribute exception instance. * * @param \Illuminate\Database\Eloquent\Model $model * @param string $key */ public fun...
php
github
https://github.com/laravel/framework
src/Illuminate/Database/Eloquent/MissingAttributeException.php
//===-- ClangdXPC.cpp --------------------------------------------*- C++-*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
cpp
github
https://github.com/llvm/llvm-project
clang-tools-extra/clangd/xpc/framework/ClangdXPC.cpp
# Contributing Guidelines There are two main ways to contribute to the project &mdash; submitting issues and submitting fixes/changes/improvements via pull requests. ## Submitting issues Both bug reports and feature requests are welcome. Submit issues [here](https://github.com/Kotlin/kotlinx.coroutines/issues). Ques...
unknown
github
https://github.com/Kotlin/kotlinx.coroutines
CONTRIBUTING.md
import sys from decimal import Decimal import numpy as np from numpy.core import * from numpy.random import rand, randint, randn from numpy.testing import * from numpy.core.multiarray import dot as dot_ class Vec: def __init__(self,sequence=None): if sequence is None: sequence=[] self....
unknown
codeparrot/codeparrot-clean
import os import matplotlib matplotlib.use('TkAgg') import numpy as np import matplotlib.pyplot as plt from matplotlib.ticker import FormatStrFormatter from matplotlib.figure import SubplotParams from matplotlib.ticker import MaxNLocator from os.path import isfile import tempfile from functions.science import linspace ...
unknown
codeparrot/codeparrot-clean
import os from fabric.context_managers import settings from fabric.state import env from fabric.utils import indent, warn from refabric.api import run, info from refabric.context_managers import sudo, silent from .base import BaseProvider from ..project import * from ... import debian from ... import uwsgi from ......
unknown
codeparrot/codeparrot-clean
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
unknown
codeparrot/codeparrot-clean
import { __String, addEmitHelpers, addRange, AllDecorators, append, Bundle, canHaveDecorators, chainBundle, childIsDecorated, ClassDeclaration, ClassElement, ClassExpression, ClassLikeDeclaration, classOrConstructorParameterIsDecorated, ConstructorDeclaration,...
typescript
github
https://github.com/microsoft/TypeScript
src/compiler/transformers/legacyDecorators.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
cmd/kube-controller-manager/app/options/endpointslicemirroringcontroller.go
from __future__ import absolute_import from itertools import chain from bokeh.models.annotations import ( Legend, Arrow, BoxAnnotation, Span, LabelSet, Label, Title ) from bokeh.models import ColumnDataSource, ArrowHead from bokeh.core.enums import ( NamedColor as Color, LineJoin, LineCap, FontStyle, TextAli...
unknown
codeparrot/codeparrot-clean
# Copyright 2013 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from openerp import tools from openerp.osv import fields,osv class hr_holidays_remaining_leaves_user(osv.osv): _name = "hr.holidays.remaining.leaves.user" _description = "Total holidays by type" _auto = Fals...
unknown
codeparrot/codeparrot-clean
'''Thread-safe version of Tkinter. Copyright (c) 2009, Allen B. Taylor This module is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This pro...
unknown
codeparrot/codeparrot-clean
# Copyright (C) 2003-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
#!/usr/bin/env python # 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 os import sys import unittest from devil.android import device_errors from devil.android import md5sum from pylib import consta...
unknown
codeparrot/codeparrot-clean
# Copyright 2013 IBM Corp. # # 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
import os from datetime import datetime from api.bluemix_vision_recognition import VisionRecognizer from api.echonest import Echonest def read_file(path): lines = [] with open(path, "r", encoding="utf-8") as f: lines = f.readlines() lines = [ln.strip(os.linesep) for ln in lines] return lin...
unknown
codeparrot/codeparrot-clean
# frozen_string_literal: true # :markup: markdown module TestUnit module Generators class InstallGenerator < ::Rails::Generators::Base source_root File.expand_path("templates", __dir__) def create_test_files template "fixtures.yml", "test/fixtures/action_text/rich_texts.yml" end e...
ruby
github
https://github.com/rails/rails
actiontext/lib/rails/generators/test_unit/install_generator.rb
{ "html": { "type": "Fragment", "start": 45, "end": 56, "children": [ { "type": "Text", "start": 43, "end": 45, "raw": "\n\n", "data": "\n\n" }, { "type": "Element", "start": 45, "end": 56, "name": "div", "attributes": [], "children": [] } ] }, "insta...
json
github
https://github.com/sveltejs/svelte
packages/svelte/tests/parser-legacy/samples/script-comment-only/output.json
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
unknown
codeparrot/codeparrot-clean
# Copyright 2014 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 agreed to in writing, ...
unknown
codeparrot/codeparrot-clean
/* Copyright 2019 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
go
github
https://github.com/kubernetes/kubernetes
pkg/apis/scheduling/v1beta1/defaults_test.go
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use std::io; use std::path::{Path, PathBuf}; use std::process::Command; /// Helper for generic catch-all errors. type Result = std::result::Result<(), Box<dyn std::error::Error>...
rust
github
https://github.com/tauri-apps/tauri
crates/tests/restart/tests/restart.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/clients/consumer/internals/AsyncKafkaConsumer.java
""" Implement the game board This module defines the stone colors `empty`, `black` and `white` """ import numpy as np # the colors empty = 0 black = +1 white = -1 class InvalidMoveError(Exception): pass class Board(object): """ Gomoku game board of the desired size (`height`, `width`). Can access...
unknown
codeparrot/codeparrot-clean
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.graphs import ArangoGraph from langchain_community.graphs.arangodb_graph import get_arangodb_client # Create a way to dynamically look up deprecated imports. # Used to consolida...
python
github
https://github.com/langchain-ai/langchain
libs/langchain/langchain_classic/graphs/arangodb_graph.py
############################################################################# ## ## Copyright (c) 2014 Riverbank Computing Limited <info@riverbankcomputing.com> ## ## This file is part of PyQt. ## ## This file may be used under the terms of the GNU General Public ## License versions 2.0 or 3.0 as published by the Free ...
unknown
codeparrot/codeparrot-clean
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" {{ $attributes }}> <g clip-path="url(#clip0_14732_6079)"> <path d="M4.25 4.25012V1.25012H10.75V7.75012H7.75M7.75 4.25012H1.25V10.7501H7.75V4.25012Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>...
php
github
https://github.com/laravel/framework
src/Illuminate/Foundation/resources/exceptions/renderer/components/icons/copy.blade.php
#!/usr/bin/env python import argparse import json import logging import os import eutils logging.basicConfig(level=logging.INFO) if __name__ == '__main__': parser = argparse.ArgumentParser(description='EFetch', epilog='') parser.add_argument('db', help='Database to use, sometimes "none" (e.g. *check)') ...
unknown
codeparrot/codeparrot-clean
__author__ = 'binary' #coding=utf-8 # Note: # All code below needs improvement! import sys import shutil import UYRUtils try: import stepic except ImportError: print "Hide Module: Sorry module python-stepic not found" try: from PIL import Image except ImportError: print "Hide Module: Sorry module py...
unknown
codeparrot/codeparrot-clean
- Path: /name/add - Path Regex: #PATH_REGEX# - Host: localhost - Host Regex: #HOST_REGEX# - Scheme: http|https - Method: PUT|POST - Class: Symfony\Bundle\FrameworkBundle\Tests\Console\Descriptor\RouteStub - Defaults: NONE - Requirements: NO CUSTOM - Options: - `compiler_class`: Symfony\Component\Routing\RouteCompil...
unknown
github
https://github.com/symfony/symfony
src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_2.md
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/input/ti,nspire-keypad.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: TI-NSPIRE Keypad maintainers: - Andrew Davis <afd@ti.com> allOf: - $ref: input.yaml# - $ref: matrix-keymap.yaml# prop...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/input/ti,nspire-keypad.yaml
import os import sys import csv import json import pprint from collections import OrderedDict from pymongo import MongoClient # Write to MongoDB # atomizer = MongoAtomizer('knoedler') # atomizer.make_mongo_writer() # atomizer.atomize('data/input.csv') class MongoAtomizer: def __init__(self, collection, database=...
unknown
codeparrot/codeparrot-clean
############################################################################# ## ## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ## Contact: http://www.qt-project.org/legal ## ## This file is part of Qt Creator. ## ## Commercial License Usage ## Licensees holding valid commercial Qt licenses may use this f...
unknown
codeparrot/codeparrot-clean
import { test } from '../../test'; export default test({ test({ component }) { component.flag = false; } });
javascript
github
https://github.com/sveltejs/svelte
packages/svelte/tests/runtime-legacy/samples/await-in-dynamic-component/_config.js
/* * 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/internals/ReflectiveStrategy.java
# -*- coding: utf-8 -*- ########################################################################## # # # Eddy: a graphical editor for the specification of Graphol ontologies # # Copyright (C) 2015 Daniele Pantaleone <danielepantaleone@me.com> ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- from __future__ import (unicode_literals, division, absolute_import, print_function) store_version = 1 # Needed for dynamic plugin loading __license__ = 'GPL 3' __copyright__ = '2011, Roman Mukhin <ramses_ru at hotmail.com>' __docformat__ = 'restructuredtext en' import random import re impor...
unknown
codeparrot/codeparrot-clean
package daemon import ( "context" "errors" "fmt" "maps" "runtime" "time" containertypes "github.com/moby/moby/api/types/container" networktypes "github.com/moby/moby/api/types/network" "github.com/moby/moby/api/types/storage" "github.com/moby/moby/v2/daemon/config" "github.com/moby/moby/v2/daemon/container...
go
github
https://github.com/moby/moby
daemon/inspect.go
services: next-app: container_name: next-app build: context: ./next-app dockerfile: prod-without-multistage.Dockerfile args: ENV_VARIABLE: ${ENV_VARIABLE} NEXT_PUBLIC_ENV_VARIABLE: ${NEXT_PUBLIC_ENV_VARIABLE} restart: always ports: - 3000:3000 networks: ...
unknown
github
https://github.com/vercel/next.js
examples/with-docker-compose/compose.prod-without-multistage.yaml
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import pyauto_functional import pyauto class ChromeosSecurity(pyauto.PyUITest): """Security tests for chrome on Chrom...
unknown
codeparrot/codeparrot-clean
// Copyright Joyent, Inc. and other Node contributors. // // 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...
c
github
https://github.com/nodejs/node
src/env-inl.h
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
unknown
codeparrot/codeparrot-clean
<?php namespace Illuminate\Console\Scheduling; use Illuminate\Console\Application; use Illuminate\Console\Command; use Symfony\Component\Console\Attribute\AsCommand; use function Laravel\Prompts\select; #[AsCommand(name: 'schedule:test')] class ScheduleTestCommand extends Command { /** * The console comman...
php
github
https://github.com/laravel/framework
src/Illuminate/Console/Scheduling/ScheduleTestCommand.php
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compli...
unknown
codeparrot/codeparrot-clean
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: POGOProtos/Networking/Requests/Messages/UpgradePokemonMessage.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _me...
unknown
codeparrot/codeparrot-clean
''' ================== Multicolored lines ================== This example shows how to make a multi-colored line. In this example, the line is colored based on its derivative. ''' import numpy as np import matplotlib.pyplot as plt from matplotlib.collections import LineCollection from matplotlib.colors import ListedC...
unknown
codeparrot/codeparrot-clean
# Copyright 2016 gRPC 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...
unknown
codeparrot/codeparrot-clean
/* Copyright 2022 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/storageversiongc/gc_controller_test.go
{ "kind": "Dashboard", "apiVersion": "dashboard.grafana.app/v2alpha1", "metadata": { "name": "v0alpha1.panel-stat-tests.v42" }, "spec": { "annotations": [ { "kind": "AnnotationQuery", "spec": { "datasource": { "type": "datasource", "uid": "grafan...
json
github
https://github.com/grafana/grafana
apps/dashboard/pkg/migration/conversion/testdata/output/migrated_dev_dashboards/panel-stat/v0alpha1.panel-stat-tests.v42.v2alpha1.json
<!--- # 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...
unknown
github
https://github.com/apache/hadoop
hadoop-common-project/hadoop-common/src/site/markdown/release/3.0.4/CHANGELOG.3.0.4.md
# Copyright 2016 gRPC 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...
unknown
codeparrot/codeparrot-clean
import asyncio import functools def unlock(lock): print('callback releasing lock') lock.release() async def coro1(lock): print('coro1 waiting for the lock') with await lock: print('coro1 acquired lock') print('coro1 released lock') async def coro2(lock): print('coro2 waiting for the l...
unknown
codeparrot/codeparrot-clean
import os from setuptools import setup, find_packages description = """ Simple interface to Raspberry Pi Plantpot Greenhouse add-on board """ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name="rpi-greenhouse", version="0.4.1", author="Ben Nuttall", ...
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.impl.base.test.cases.annotations import org.jetbrains.kotlin.analys...
kotlin
github
https://github.com/JetBrains/kotlin
analysis/analysis-api-impl-base/testFixtures/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/annotations/AbstractAnalysisApiAnnotationsOnDeclarationsTest.kt
#!/usr/bin/python # Copyright 2014 Google Inc. # # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Test gyp_to_android.py """ import os import shutil import sys import tempfile import test_variables import unittest sys.path.append(test_variables.ANDROID_DIR) ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- from ...exceptions import ReadError from .readers import * from pkg_resources import resource_stream # @UnresolvedImport from xml.dom import minidom import logging __all__ = ['INTEGER', 'UINTEGER', 'FLOAT', 'STRING', 'UNICODE', 'DATE', 'MASTER', 'BINARY', 'SPEC_TYPES', 'READERS', 'E...
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 n...
java
github
https://github.com/apache/kafka
clients/src/main/java/org/apache/kafka/common/internals/LegacyStrategy.java
# 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...
python
github
https://github.com/apache/airflow
airflow-core/tests/unit/cli/commands/_common_cli_classes.py