code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2010 OpenERP S.A. http://www.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
// errorcheck // Copyright 2009 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. // Verify that illegal uses of indirection are caught by the compiler. // Does not compile. package main var m0 map[string]int var m1 *map[stri...
go
github
https://github.com/golang/go
test/indirect1.go
{ "private": true, "scripts": { "dev": "next", "build": "next build", "start": "next start" }, "dependencies": { "next": "latest", "react": "^18.2.0", "react-dom": "^18.2.0" }, "devDependencies": { "@types/node": "^18.11.5", "@types/react": "^18.0.23", "@types/react-dom":...
json
github
https://github.com/vercel/next.js
examples/i18n-routing-pages/package.json
from __future__ import absolute_import, print_function from numpy.testing import TestCase, dec, assert_ from scipy.weave import inline_tools class TestInline(TestCase): """ These are long running tests... I'd like to benchmark these things somehow. """ @dec.slow def test_exceptions(self): ...
unknown
codeparrot/codeparrot-clean
# Copyright 2014, 2015 SAP SE. # # 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
#-*- coding: utf-8 -*- # FractalisAR: an augmented reality experiment with fractals # Copyright (C) 2015 Carlos Matías de la Torre # 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 versi...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # # Copyright 2009 Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
unknown
codeparrot/codeparrot-clean
''' Created on Dec 9, 2013 @author: ajdeveloped@gmail.com This file is part of XOZE. XOZE 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. ...
unknown
codeparrot/codeparrot-clean
import os import sys import re import time import traceback packageFullPath = "..\..\..\..\..\PrimeSenseVersions.nsh" def find_package_number(findStr, text): for line in text: temp = re.search(findStr, line) if temp != None: packageNumber = temp.group(1) return packageNumbe...
unknown
codeparrot/codeparrot-clean
# coding: utf8 { '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN', '%Y-%m-%d': '%Y.%m.%d.', '%Y-%m-%d %H:%M:%S': '%Y.%m.%d. %H:%M:%S', '%s...
unknown
codeparrot/codeparrot-clean
import _surface import chimera try: import chimera.runCommand except: pass from VolumePath import markerset as ms try: from VolumePath import Marker_Set, Link new_marker_set=Marker_Set except: from VolumePath import volume_path_dialog d= volume_path_dialog(True) new_marker_set= d.new_marker_set marker_set...
unknown
codeparrot/codeparrot-clean
extension Collection { /// Returns the element at the specified index if it is within bounds, otherwise nil. subscript (safe index: Index) -> Element? { self.indices.contains(index) ? self[index] : nil } }
swift
github
https://github.com/vapor/vapor
Sources/Vapor/Utilities/Collection+Safe.swift
#!/usr/bin/env python # # Copyright 2013 Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
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
/* 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 applicable law or a...
c
github
https://github.com/tensorflow/tensorflow
tensorflow/compiler/mlir/tensorflow/utils/bridge_logger.h
#! /usr/bin/env python2 # # This file is part of khmer, http://github.com/ged-lab/khmer/, and is # Copyright (C) University of California, Davis, 2015. It is licensed under # the three-clause BSD license; see doc/LICENSE.txt. # Contact: khmer-project@idyll.org # # pylint: disable=missing-docstring,invalid-name """ Prod...
unknown
codeparrot/codeparrot-clean
/* * Copyright (C) 2010 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
java
github
https://github.com/google/guava
android/guava-testlib/test/com/google/common/collect/testing/ReserializedSafeTreeMapMapInterfaceTest.java
# -*- coding: utf-8 -*- import scrapy import json from locations.items import GeojsonPointItem class PerkinsSpider(scrapy.Spider): name = "perkins" allowed_domains = ["stores.perkinsrestaurants.com"] start_urls = ( 'https://stores.perkinsrestaurants.com/sitemap.xml', ) def store_hours(sel...
unknown
codeparrot/codeparrot-clean
// // config.hpp // ~~~~~~~~~~ // // Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_ASIO_CONFIG_HPP #define BOOST_ASI...
unknown
github
https://github.com/mysql/mysql-server
extra/boost/boost_1_87_0/boost/asio/config.hpp
#!/usr/bin/env python # # Copyright 2011,2013 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your optio...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-06 19:54 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('places', '0001_initial'), ] ope...
unknown
codeparrot/codeparrot-clean
import unittest, sys, random, time sys.path.extend(['.','..','../..','py']) import h2o, h2o_browse as h2b, h2o_import as h2i class Basic(unittest.TestCase): def tearDown(self): h2o.check_sandbox_for_errors() @classmethod def setUpClass(cls): pass print "Will build clouds with incre...
unknown
codeparrot/codeparrot-clean
from questionnaire.models import Question, Answer import logging def explode_answer_into_list(answers): answer_list = [] for answer in answers: if type(answer) == type(list()): for list_answer in answer: answer_list.append(list_answer) else: answer_list....
unknown
codeparrot/codeparrot-clean
from hqlib.rabbitmq.routing import Subscriber as RoutingSubscriber from hqlib.rabbitmq.rpc import RPCReplyPublisher import json class Validate(RoutingSubscriber): def __init__(self, rabbitmq, assignment): super(Validate, self).__init__(rabbitmq, "security", "validate", queue_name="security_validate", qos=...
unknown
codeparrot/codeparrot-clean
from pathlib import Path from asgiref.local import Local from django.apps import apps from django.utils.autoreload import is_django_module def watch_for_translation_changes(sender, **kwargs): """Register file watchers for .mo files in potential locale paths.""" from django.conf import settings if settin...
python
github
https://github.com/django/django
django/utils/translation/reloader.py
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
python
github
https://github.com/tensorflow/tensorflow
tensorflow/examples/speech_commands/wav_to_features_test.py
""" ============================================================ Parameter estimation using grid search with cross-validation ============================================================ This examples shows how a classifier is optimized by cross-validation, which is done using the :class:`sklearn.grid_search.GridSearc...
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-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/alias/JavaKeyStoreProvider.java
//===--- DiagnosticsFrontend.h - Diagnostic Definitions ---------*- C++ -*-===// // // 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...
c
github
https://github.com/apple/swift
include/swift/AST/DiagnosticsFrontend.h
<?php namespace Illuminate\Database\Eloquent\Relations; use Illuminate\Database\Eloquent\Collection as EloquentCollection; /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model * @template TDeclaringModel of \Illuminate\Database\Eloquent\Model * * @extends \Illuminate\Database\Eloquent\Relations\M...
php
github
https://github.com/laravel/framework
src/Illuminate/Database/Eloquent/Relations/MorphMany.php
- name: verify playbook includes can take parameters hosts: testhost tasks: - assert: that: - "parameter1 == 'asdf'" - "parameter2 == 'jkl'" - name: verify task include logic hosts: testhost gather_facts: True roles: - role: test_includes tags: test_includes tasks:...
unknown
github
https://github.com/ansible/ansible
test/integration/targets/includes/test_includes2.yml
//////////////////////////////////////////////////////////////////////////// // // Copyright 2014 Realm 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/li...
swift
github
https://github.com/realm/realm-swift
Realm/Tests/Swift/SwiftUnicodeTests.swift
from sage.all import RealDistribution from yanntricks import * def ChiSquaresQuantile(): pspict,fig = SinglePicture("ChiSquaresQuantile") pspict.dilatation_X(0.3) pspict.dilatation_Y(50) mx=0 Mx=30 f=phyFunction(RealDistribution("chisquared",10).distribution_function).graph(mx,Mx) f.linear_...
unknown
codeparrot/codeparrot-clean
# Copyright Iris contributors # # This file is part of Iris and is released under the LGPL license. # See COPYING and COPYING.LESSER in the root of the repository for full # licensing details. """Unit tests for :class:`iris.analysis.AreaWeighted`.""" # Import iris.tests first so that some things can be initialised bef...
unknown
codeparrot/codeparrot-clean
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/clock/nxp,imx95-display-master-csr.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: NXP i.MX95 Display Master Block Control maintainers: - Peng Fan <peng.fan@nxp.com> properties: compatib...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/clock/nxp,imx95-display-master-csr.yaml
# -*- coding: utf-8 -*- # Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document from frappe.utils import getdate from erpnext.hr.utils imp...
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
buildSrc/src/main/java/org/springframework/build/hint/RuntimeHintsAgentExtension.java
import itertools from setuptools import setup, find_packages def generate_extras_require(): extras = { ':sys_platform == "win32"': ["win_unicode_console"], "lint": ["flake8", "black"], "test": ["pytest"], "docs": ["mkdocs", "mkdocs-material"], } extras.update(dict(all=list(i...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2009-2010 testtools developers. See LICENSE for details. """Individual test case execution.""" __all__ = [ 'MultipleExceptions', 'RunTest', ] import sys from testtools.testresult import ExtendedToOriginalDecorator class MultipleExceptions(Exception): """Represents many exceptions ra...
unknown
codeparrot/codeparrot-clean
# file openpyxl/cell.py # Copyright (c) 2010-2011 openpyxl # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modi...
unknown
codeparrot/codeparrot-clean
//===--- PrettyStackTrace.h - PrettyStackTrace for Transforms ---*- C++ -*-===// // // 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...
c
github
https://github.com/apple/swift
include/swift/SILOptimizer/PassManager/PrettyStackTrace.h
# Wrapper for loading templates from storage of some sort (e.g. filesystem, database). # # This uses the TEMPLATE_LOADERS setting, which is a list of loaders to use. # Each loader is expected to have this interface: # # callable(name, dirs=[]) # # name is the template name. # dirs is an optional list of directories ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- import boto3 from os import path, system from pprint import pprint import argparse import itertools from collections import deque VERSION = "1.0.11" def connect(instance, args): details = get_details(instance) print('\nConnecting to: {name}\n'.format(**details)) ...
unknown
codeparrot/codeparrot-clean
# -*- coding: iso-8859-1 -*- # ----------------------------------------------------------------------- # re-encode recorded TV programmes # ----------------------------------------------------------------------- # $Id$ # # Notes: # ToDo: # # ----------------------------------------------------------------------- # Free...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python """ generated source for module EWrapper """ # # Original file copyright original author(s). # This file copyright Troy Melhase, troy@gci.net. # # WARNING: all changes to this file will be lost. from abc import ABCMeta, abstractmethod from ib.ext.AnyWrapper import AnyWrapper # # * EWrapper.java ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-14 06:16 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migration...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ 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...
unknown
codeparrot/codeparrot-clean
# coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function from asn1crypto import pem from asn1crypto.x509 import Certificate from .context import ValidationContext from .errors import ValidationError, PathBuildingError, InvalidCertificateError from .validate import validate_pa...
unknown
codeparrot/codeparrot-clean
<?php namespace Illuminate\Contracts\Foundation; interface MaintenanceMode { /** * Take the application down for maintenance. * * @param array $payload * @return void */ public function activate(array $payload): void; /** * Take the application out of maintenance. * ...
php
github
https://github.com/laravel/framework
src/Illuminate/Contracts/Foundation/MaintenanceMode.php
""" Block Structure Transformer Registry implemented using the platform's PluginManager. """ from base64 import b64encode from hashlib import sha1 import six from openedx.core.lib.cache_utils import process_cached from openedx.core.lib.plugins import PluginManager class TransformerRegistry(PluginManager): """ ...
unknown
codeparrot/codeparrot-clean
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/hwmon/nuvoton,nct7363.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Nuvoton NCT7363Y Hardware Monitoring IC maintainers: - Ban Feng <kcfeng0@nuvoton.com> description: | The NCT7363Y is a fa...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/hwmon/nuvoton,nct7363.yaml
"""bug 803209 -- add garbage collection count to TCBS Revision ID: 2b285e76f71d Revises: 8894c185715 Create Date: 2013-06-11 12:46:09.637058 """ # revision identifiers, used by Alembic. revision = '2b285e76f71d' down_revision = '8894c185715' import os import sqlalchemy as sa from alembic import op from sqlalchemy.d...
unknown
codeparrot/codeparrot-clean
//// [tests/cases/conformance/async/es2017/awaitBinaryExpression/awaitBinaryExpression2_es2017.ts] //// //// [awaitBinaryExpression2_es2017.ts] declare var a: boolean; declare var p: Promise<boolean>; declare function before(): void; declare function after(): void; async function func(): Promise<void> { before(); ...
javascript
github
https://github.com/microsoft/TypeScript
tests/baselines/reference/awaitBinaryExpression2_es2017.js
"""Short messaging system. """ __docformat__ = 'restructuredtext en' from utils import * class SmsMessage(Cached): """Represents an SMS message. """ _ValidateHandle = int def __repr__(self): return Cached.__repr__(self, 'Id') def _Alter(self, AlterName, Args=None): return self._O...
unknown
codeparrot/codeparrot-clean
# ----------------------------------------------------------------------------- # ply: yacc.py # # Copyright (C) 2001-2009, # David M. Beazley (Dabeaz LLC) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
unknown
codeparrot/codeparrot-clean
from __future__ import ( absolute_import, division, print_function, unicode_literals) import six from six.moves import (zip, filter, map, reduce, input, range) import unittest import numpy as np import tapeworm.scoring from tapeworm.core import OneGoodBlobException class TestBadDatasets(unittest.TestCase): ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # # PhyloRelief documentation build configuration file, created by # sphinx-quickstart on Mon Dec 16 10:15:02 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 file. # #...
unknown
codeparrot/codeparrot-clean
# (C) Datadog, Inc. 2014-2016 # (C) Cory Watson <cory@stripe.com> 2015-2016 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) # stdlib from collections import defaultdict import re # 3rd party import requests # project from checks import AgentCheck DEFAULT_MAX_METRICS = 350 PATH = "path" A...
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 applicable law or a...
c
github
https://github.com/tensorflow/tensorflow
tensorflow/core/kernels/data/concatenate_dataset_op.h
# rpmcheck.py: Convert a virtual appliance image in an EC2 AMI, checks for rpm packages # # Copyright 2008, Red Hat Inc. # Joseph Boggs <jboggs@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 F...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2016, Cumulus Networks <ce-ceng@cumulusnetworks.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...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python '''Populate with dummy data.''' from pull import cursor from random import randint, random from collections import namedtuple sql = ''' INSERT INTO points ( x , y , z , value ) VALUES ( %s , %s , %s , %s )''' Point = namedtuple('Point', ['x', 'y', 'z']) def rand_coord(): ...
unknown
codeparrot/codeparrot-clean
// Copyright 2009 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 main import ( "bytes" "context" "flag" "fmt" "go/ast" "go/parser" "go/printer" "go/scanner" "go/token" "internal/diff" "io" "io/fs" "math/...
go
github
https://github.com/golang/go
src/cmd/gofmt/gofmt.go
import logging import time import itertools import numpy as np import concurrent.futures from numpy.random import multivariate_normal, gamma from sklearn.metrics import mean_squared_error logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger(...
unknown
codeparrot/codeparrot-clean
--- - hosts: testhost gather_facts: False tasks: - name: set output_dir set_fact: output_dir: "{{ lookup('env', 'OUTPUT_DIR') }}" tags: ['always'] - name: Smoketest that ansible_managed with non-ascii chars works, https://github.com/ansible/ansible/issues/27262 tags: ['27262'] block: ...
unknown
github
https://github.com/ansible/ansible
test/integration/targets/template/ansible_managed.yml
from __future__ import absolute_import from __future__ import unicode_literals import sys from itertools import cycle from . import colors from .multiplexer import Multiplexer from .utils import split_buffer from compose import utils class LogPrinter(object): """Print logs from many containers to a single output...
unknown
codeparrot/codeparrot-clean
""" Decorators for views based on HTTP headers. """ from calendar import timegm from functools import wraps from django.http import HttpResponseNotAllowed from django.middleware.http import ConditionalGetMiddleware from django.utils.cache import get_conditional_response from django.utils.decorators import decorator_f...
unknown
codeparrot/codeparrot-clean
from django.contrib.auth.models import User from django.db import models from django.utils import timezone class RegistrationModel(models.Model): user = models.OneToOneField(User) activation_key = models.CharField(max_length=40) created_timestamp = models.DateTimeField(auto_now_add=True, auto_now=False) ...
unknown
codeparrot/codeparrot-clean
# # @BEGIN LICENSE # # QCDB: quantum chemistry common driver and databases # # Copyright (c) 2011-2017 The QCDB Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of QCDB. # # QCDB is free software; you can redistribute it and/or modify # it ...
unknown
codeparrot/codeparrot-clean
#ifndef UNIX_STREAM_SERVER_H #define UNIX_STREAM_SERVER_H #include "unix-socket.h" struct unix_ss_socket { char *path_socket; struct stat st_socket; int fd_socket; }; /* * Create a Unix Domain Socket at the given path under the protection * of a '.lock' lockfile. * * Returns 0 on success, -1 on error, -2 if s...
c
github
https://github.com/git/git
unix-stream-server.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 u...
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...
python
github
https://github.com/apache/airflow
airflow-core/src/airflow/ti_deps/deps/exec_date_after_start_date_dep.py
/*------------------------------------------------------------------------- * * pg_conversion.c * routines to support manipulation of the pg_conversion relation * * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * ...
c
github
https://github.com/postgres/postgres
src/backend/catalog/pg_conversion.c
# Configuration file for ipython-kernel. c = get_config() #------------------------------------------------------------------------------ # IPKernelApp configuration #------------------------------------------------------------------------------ # IPython: an enhanced interactive Python shell. # IPKernelApp will in...
unknown
codeparrot/codeparrot-clean
{ "kind": "Dashboard", "apiVersion": "dashboard.grafana.app/v2beta1", "metadata": { "name": "v39.transform_timeseries_table.v42" }, "spec": { "annotations": [ { "kind": "AnnotationQuery", "spec": { "query": { "kind": "DataQuery", "group": "grafan...
json
github
https://github.com/grafana/grafana
apps/dashboard/pkg/migration/conversion/testdata/input/migrated_dashboards_from_v0_to_v2/v2beta1.v39.transform_timeseries_table.json
#!/usr/bin/env python # Copyright 2015 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
- name: Test include failure with invalid included include_task hosts: localhost gather_facts: false tasks: - ansible.builtin.include_tasks: file: null_filename/tasks.yml
unknown
github
https://github.com/ansible/ansible
test/integration/targets/include_import/test_null_include_filename.yml
from __future__ import (absolute_import, division, print_function, unicode_literals) import six from pkg_resources import resource_filename from contextlib import contextmanager import json import logging from pymongo import MongoClient from bson import ObjectId import boltons.cacheutils fro...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 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 prog...
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/clients/consumer/ConsumerRebalanceListener.java
import pytest from osf.models import Node from osf.utils.migrations import disable_auto_now_fields from osf_tests.factories import NodeFactory pytestmark = pytest.mark.django_db @pytest.fixture() def node(): return NodeFactory() class TestDisableAutoNowContextManager: def test_auto_now_not_updated(self, no...
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/testFixtures/java/org/springframework/beans/testfixture/factory/xml/AbstractBeanFactoryTests.java
from os.path import join from core.exceptions import RestoreError, TarFailure, TokenizationError from core.tokenizer import Tokenizer from flexmock import flexmock from hamcrest import assert_that, is_ from nose.tools import assert_equal from core.restore import Restore from unittest import TestCase from logging import...
unknown
codeparrot/codeparrot-clean
from __future__ import unicode_literals from django.template import Template, Context from django.test import TestCase from django.utils.encoding import force_text, force_bytes from django.utils.functional import lazy from django.utils.safestring import mark_safe, mark_for_escaping, SafeData, EscapeData from django.ut...
unknown
codeparrot/codeparrot-clean
{ "name": "my-vend/my-app", "license": "MIT", "suggest": { "my-vend/my-optional-extension": "1.*" } }
json
github
https://github.com/composer/composer
tests/Composer/Test/Config/Fixtures/addLink/suggest-from-empty.json
# MP3 stream header information support for Mutagen. # Copyright 2006 Joe Wreschnig # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. """MPEG audio stream information and tags.""" ...
unknown
codeparrot/codeparrot-clean
# # Copyright (c) 2011, Willow Garage, 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 cond...
unknown
codeparrot/codeparrot-clean
# # This file is part of Evergreen. See the NOTICE for more information. # from evergreen import patcher socket = patcher.original('socket') __all__ = ('SocketPair') import errno try: from socket import socketpair except ImportError: def socketpair(family=socket.AF_INET, type=socket.SOCK_STREAM, proto=0): ...
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\Reposit...
php
github
https://github.com/composer/composer
src/Composer/Repository/ComposerRepository.php
"""Support for SCSGate lights.""" import logging from scsgate.tasks import ToggleStatusTask import voluptuous as vol from homeassistant.components.light import PLATFORM_SCHEMA, LightEntity from homeassistant.const import ATTR_ENTITY_ID, ATTR_STATE, CONF_DEVICES, CONF_NAME import homeassistant.helpers.config_validatio...
unknown
codeparrot/codeparrot-clean
use crate::spec::{Arch, Cc, LinkerFlavor, SanitizerSet, Target, TargetMetadata, base}; pub(crate) fn target() -> Target { let mut base = base::illumos::opts(); base.add_pre_link_args(LinkerFlavor::Unix(Cc::Yes), &["-m64", "-std=c99"]); base.cpu = "x86-64".into(); base.plt_by_default = false; base.m...
rust
github
https://github.com/rust-lang/rust
compiler/rustc_target/src/spec/targets/x86_64_unknown_illumos.rs
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
c
github
https://github.com/tensorflow/tensorflow
tensorflow/core/tpu/kernels/trace_util.h
package image // SignatureIdentity contains the properties of verified signatures for the image. type SignatureIdentity struct { // Name is a textual description summarizing the type of signature. Name string `json:"Name,omitempty"` // Timestamps contains a list of verified signed timestamps for the signature. Tim...
go
github
https://github.com/moby/moby
api/types/image/signature_identity.go
# Copyright (C) 2022-present MongoDB, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the Server Side Public License, version 1, # as published by MongoDB, Inc. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without e...
python
github
https://github.com/mongodb/mongo
buildscripts/cost_model/database_instance.py
/* * 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.openapi.project.Project i...
kotlin
github
https://github.com/JetBrains/kotlin
analysis/analysis-api-standalone/src/org/jetbrains/kotlin/analysis/project/structure/builder/KaLibrarySourceModuleBuilder.kt
/* * Copyright 2014-2023 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ package io.ktor.server.jetty.jakarta import io.ktor.server.config.* import io.ktor.server.engine.* /** * Jetty engine * * [Report a problem](https://ktor.io/feedback/?fqname=io.ktor.serve...
kotlin
github
https://github.com/ktorio/ktor
ktor-server/ktor-server-jetty-jakarta/jvm/src/io/ktor/server/jetty/jakarta/EngineMain.kt
import sys import textwrap import pkg_resources import pip.download from pip.basecommand import Command from pip.util import get_terminal_size from pip.log import logger from pip.backwardcompat import xmlrpclib, reduce, cmp from distutils.version import StrictVersion, LooseVersion class SearchCommand(Command): nam...
unknown
codeparrot/codeparrot-clean
# (c) 2018 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import annotations import base64 import dataclasses import errno import json import os import pkgutil import secrets import re import typing as t from importlib import import_module...
python
github
https://github.com/ansible/ansible
lib/ansible/executor/powershell/module_manifest.py
# -*- coding: utf-8 -*- # Copyright (C) 2007-2010 Toms Bauģis <toms.baugis at gmail.com> # This file is part of Project Hamster. # Project Hamster 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 vers...
unknown
codeparrot/codeparrot-clean
Certain notable events are reported using a structured format. Commonly, these notable events are also copied to the table `system.eventlog`, unless the cluster setting `server.eventlog.enabled` is unset. Additionally, notable events are copied to specific external logging channels in log messages, where they can be c...
unknown
github
https://github.com/cockroachdb/cockroach
docs/generated/eventlog.md