code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
#!/usr/bin/env python # Copyright 2011, The Board of Regents of Leland Stanford, Jr. University # All rights reserved. See LICENSE. # Author: Christine Williams <christine.bennett.williams@gmail.com> # Description: Pulls events from database and writes them to disc. from Cheetah.Template import Template from lxml impo...
unknown
codeparrot/codeparrot-clean
<docs-decorative-header title="Built-in directives" imgSrc="adev/src/assets/images/directives.svg"> <!-- markdownlint-disable-line --> Directives are classes that add additional behavior to elements in your Angular applications. </docs-decorative-header> Use Angular's built-in directives to manage forms, lists, styles...
unknown
github
https://github.com/angular/angular
adev/src/content/guide/directives/overview.md
# # 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
""" Views which allow users to create and activate accounts. """ from django.conf import settings from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template import RequestContext from registration.forms import Registr...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # This file is subject to the terms and conditions defined in # file 'LICENSE', which is part of this source code package. # Copyright (c) 2011 R Pratap Chakravarthy """Module provides a plugin to handle standard html5 tags.""" import pluggdapps.utils as h from tayra.tags import...
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 applica...
unknown
codeparrot/codeparrot-clean
"""Generic interface to all dbm clones. Use import dbm d = dbm.open(file, 'w', 0o666) The returned object is a dbm.sqlite3, dbm.gnu, dbm.ndbm or dbm.dumb database object, dependent on the type of database being opened (determined by the whichdb function) in the case of an existing dbm. If the dbm doe...
python
github
https://github.com/python/cpython
Lib/dbm/__init__.py
# 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
#!/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
// Copyright 2023 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. //go:build ppc64le && linux package runtime import ( "internal/abi" "internal/goarch" "math" "unsafe" ) type sigContext struct { savedRegs sigcontext } ...
go
github
https://github.com/golang/go
src/runtime/export_debug_ppc64le_test.go
# # Copyright (c) 2015 Midokura SARL, 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
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
unknown
codeparrot/codeparrot-clean
# Copyright 2020 The HuggingFace Inc. team. # # 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 ...
python
github
https://github.com/huggingface/transformers
utils/check_copies.py
#!/usr/bin/env python """ Commands related to the syncing assets. """ from fnmatch import fnmatch from glob import glob import os from fabric.api import prompt, task import app_config import utils @task def sync(path): """ Intelligently synchronize assets between S3 and local folder. """ ignore_glo...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ jinja2.lexer ~~~~~~~~~~~~ This module implements a Jinja / Python combination lexer. The `Lexer` class provided by this module is used to do some preprocessing for Jinja. On the one hand it filters out invalid operators like the bitshift operators we don't allow...
unknown
codeparrot/codeparrot-clean
import six import warnings from .. import errors from ..utils.utils import ( convert_port_bindings, convert_tmpfs_mounts, convert_volume_binds, format_environment, normalize_links, parse_bytes, parse_devices, split_command, version_gte, version_lt, ) from .base import DictType from .healthcheck import Heal...
unknown
codeparrot/codeparrot-clean
/* * Copyright 2002-present the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
java
github
https://github.com/spring-projects/spring-framework
spring-beans/src/main/java/org/springframework/beans/factory/parsing/Problem.java
"""Convenient HTTP UserAgent class. This is a subclass of urllib2.OpenerDirector. Copyright 2003-2006 John J. Lee <jjl@pobox.com> This code is free software; you can redistribute it and/or modify it under the terms of the BSD or ZPL 2.1 licenses (see the file COPYING.txt included with the distribution). """ import...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # configuration - [insert a few words of module description on this line] # Copyright (C) 2003-2011 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the term...
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...
typescript
github
https://github.com/apache/airflow
airflow-core/src/airflow/ui/src/layouts/Details/NavTabs.tsx
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('usage', '0003_pagehit_summarized'), ] ...
unknown
codeparrot/codeparrot-clean
//===--- CompileJobCacheResult.cpp - compile cache result schema ----------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2020 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/Frontend/CompileJobCacheResult.cpp
import { test } from '../../test'; export default test({ error: { code: 'css_global_block_invalid_modifier_start', message: 'A `:global` selector can only be modified if it is a descendant of other selectors', position: [147, 148] } });
javascript
github
https://github.com/sveltejs/svelte
packages/svelte/tests/compiler-errors/samples/css-global-modifier-start-2/_config.js
#!/usr/bin/env python ''' Modulo 2 Toolbox Color Restoration with Simplest Color Balance Tesis Underwater Image Pre-processing Armando Longart 10-10844 ajzlongart@gmail.com Descripcion: Modulo implementado para mejorar el color de las imagenes subacuaticas. Se basa en estirar el histograma (histogram stretching) de la...
unknown
codeparrot/codeparrot-clean
/* Copyright 2021 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/c/experimental/ops/gen/common/source_code.h
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/clock/qcom,aoncc-sm8250.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: LPASS Always ON Clock Controller on SM8250 SoCs maintainers: - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> ...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/clock/qcom,aoncc-sm8250.yaml
# This file is part of MyPaint. # Copyright (C) 2015-2016 by the MyPaint Development Team. # # 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...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # Copyright 2020 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
python
github
https://github.com/huggingface/transformers
examples/pytorch/language-modeling/run_clm.py
# Copyright 2016 Jochen Kursawe. See the LICENSE file at the top-level directory # of this distribution and at https://github.com/kursawe/MCSTracker/blob/master/LICENSE. """This tests our first tracking example """ import unittest import mesh import tracking import numpy as np import matplotlib.pyplot as plt import ne...
unknown
codeparrot/codeparrot-clean
// run // 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. // Test the cap predeclared function applied to channels. package main import ( "strings" "unsafe" ) type T chan int const ptrSize = unsafe.Sizeof...
go
github
https://github.com/golang/go
test/chancap.go
import codecs import os.path import re from setuptools import setup from setuptools import find_packages def find_version(*file_paths): here = os.path.abspath(os.path.dirname(__file__)) with codecs.open(os.path.join(here, *file_paths), 'r') as f: version_file = f.read() version_match = re.search(r"...
unknown
codeparrot/codeparrot-clean
import re from collections import abc qu_re = re.compile(r"%([0-9A-Fa-f]{2})") def unquote_plus(s): def decode(s): val = int(s.group(1), 16) return chr(val) return qu_re.sub(decode, s.replace("+", " ")) def parse_qs(s): res = {} if s: pairs = s.split("&") for p in pair...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe import unittest, copy from frappe.utils import nowdate, add_days, flt from erpnext.stock.doctype.stock_entry.test_stock_entry import make_...
unknown
codeparrot/codeparrot-clean
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const makeSerializable = require("../util/makeSerializable"); const ImportDependency = require("./ImportDependency"); /** @typedef {import("webpack-sources").ReplaceSource} ReplaceSource */ /** @typedef ...
javascript
github
https://github.com/webpack/webpack
lib/dependencies/ImportWeakDependency.js
from __future__ import unicode_literals import re from ..utils import ( int_or_none, str_to_int, ) from .keezmovies import KeezMoviesIE class Tube8IE(KeezMoviesIE): _VALID_URL = r'https?://(?:www\.)?tube8\.com/(?:[^/]+/)+(?P<display_id>[^/]+)/(?P<id>\d+)' _TESTS = [{ 'url': 'http://www.tube8....
unknown
codeparrot/codeparrot-clean
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 Licens...
python
github
https://github.com/huggingface/transformers
src/transformers/configuration_utils.py
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from openerp import tools from openerp.osv import osv, fields from openerp.exceptions import AccessError, MissingError from openerp.tools.translate import _ from openerp.tools import pickle EXCLUDED_FIELDS = set(( '...
unknown
codeparrot/codeparrot-clean
''' UART test for the CC3200 based boards. UART0 and UART1 must be connected together for this test to pass. ''' from machine import UART from machine import Pin import os import time mch = os.uname().machine if 'LaunchPad' in mch: uart_id_range = range(0, 2) uart_pins = [[('GP12', 'GP13'), ('GP12', 'GP13', '...
unknown
codeparrot/codeparrot-clean
#include <ATen/BlasBackend.h> #include <ATen/Tensor.h> #include <ATen/core/Tensor.h> #include <c10/core/ScalarType.h> #include <ATen/native/mkldnn/xpu/detail/Attr.h> #include <ATen/native/mkldnn/xpu/detail/oneDNNContext.h> #include <oneapi/dnnl/dnnl.hpp> namespace at::native::onednn { at::Tensor broadcast_bias2D( ...
cpp
github
https://github.com/pytorch/pytorch
aten/src/ATen/native/mkldnn/xpu/detail/QMatmul.cpp
from __future__ import unicode_literals from django.core.exceptions import FieldError from django.test import TestCase from .models import Choice, Inner, OuterA, OuterB, Poll class NullQueriesTests(TestCase): def test_none_as_null(self): """ Regression test for the use of None as a query value. ...
unknown
codeparrot/codeparrot-clean
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers def register_types(module): root_module = module.get_root() ## event-id.h: ns3::EventId [class] module.add_class('EventId') ## high-precision-128.h: ns3::HighPrecision [class] module.add_class('HighPrecision') ##...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python3 # 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 appl...
unknown
codeparrot/codeparrot-clean
# -*- encoding: utf-8 -*- ########################################################################### # Module Writen to OpenERP, Open Source Management Solution # Copyright (C) Vauxoo S.A. de C.V. (<http://www.vauxoo.com>). # All Rights Reserved ###############Credits##########################################...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ flask.cli ~~~~~~~~~ A simple command line application to run flask apps. :copyright: (c) 2015 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import os import sys from threading import Lock, Thread from functools import update_wrapper import click ...
unknown
codeparrot/codeparrot-clean
# 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 later version. # This program is distributed in the hope that it will be useful, # but...
unknown
codeparrot/codeparrot-clean
# Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution and at # http://rust-lang.org/COPYRIGHT. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license # <LICENSE-MIT or ht...
unknown
codeparrot/codeparrot-clean
""" urlresolver XBMC Addon Copyright (C) 2011 t0mm0 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. ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python from peyotl.ott import create_pruned_and_taxonomy_for_tip_ott_ids from peyotl.phylo.compat import compare_bits_as_splits, SplitComparison from peyotl.utility import any_early_exit, get_logger _LOG = get_logger(__name__) def evaluate_tree_rooting(nexson, ott, tree_proxy): """ Returns None...
unknown
codeparrot/codeparrot-clean
/* * Copyright (C) 2007 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 agreed ...
java
github
https://github.com/google/guava
guava/src/com/google/common/collect/EnumMultiset.java
""" Support for GPSD. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.gpsd/ """ import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ( ATTR_LATITUDE, ATTR_LONGITUD...
unknown
codeparrot/codeparrot-clean
<!--Copyright 2020 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
unknown
github
https://github.com/huggingface/transformers
docs/source/es/custom_models.md
import dedent from 'dedent' import { mkdir, mkdtemp, readFile, rm, unlink, writeFile } from 'node:fs/promises' import { tmpdir } from 'node:os' import path from 'path' import postcss from 'postcss' import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest' import tailwindcss from './index' // We give t...
typescript
github
https://github.com/tailwindlabs/tailwindcss
packages/@tailwindcss-postcss/src/index.test.ts
#!/usr/bin/env python # Copyright 2017 Calico LLC # # 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 law or ...
unknown
codeparrot/codeparrot-clean
import os from django.apps import apps from django.core import management from django.core.management import BaseCommand, CommandError, find_commands from django.core.management.utils import find_command, popen_wrapper from django.db import connection from django.test import SimpleTestCase, ignore_warnings, override_s...
unknown
codeparrot/codeparrot-clean
#################################################################################################### # # MonitorServer - A Server Monitoring Application # Copyright (C) 2014 Fabrice Salvaire # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License a...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ flask.wrappers ~~~~~~~~~~~~~~ Implements the WSGI wrappers (request and response). :copyright: (c) 2011 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ from werkzeug.wrappers import Request as RequestBase, Response as ResponseBase from werkzeug.exce...
unknown
codeparrot/codeparrot-clean
""" Python 'oem' Codec for Windows """ # Import them explicitly to cause an ImportError # on non-Windows systems from codecs import oem_encode, oem_decode # for IncrementalDecoder, IncrementalEncoder, ... import codecs ### Codec APIs encode = oem_encode def decode(input, errors='strict'): return oem_decode(inpu...
python
github
https://github.com/python/cpython
Lib/encodings/oem.py
// Copyright 2014 The Cockroach Authors. // // Use of this software is governed by the CockroachDB Software License // included in the /LICENSE file. package server import ( "bytes" "context" "fmt" "reflect" "runtime/pprof" "sort" "strconv" "sync/atomic" "testing" "github.com/cockroachdb/cockroach/pkg/base...
go
github
https://github.com/cockroachdb/cockroach
pkg/server/node_test.go
{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations \u0026 Alerts", "type": "dashb...
json
github
https://github.com/grafana/grafana
apps/dashboard/pkg/migration/conversion/testdata/input/migrated_dev_dashboards/panel-table/v1beta1.table_v12_2_migrations.v42.json
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use serde::de::DeserializeOwned; use tauri::{plugin::PluginApi, AppHandle, Runtime}; use crate::models::*; pub fn init<R: Runtime, C: DeserializeOwned>( app: &AppHandle<R>, ...
rust
github
https://github.com/tauri-apps/tauri
examples/api/src-tauri/tauri-plugin-sample/src/desktop.rs
# -*- coding: utf-8 -*- """ /*************************************************************************** Name : DB Manager Description : Database manager plugin for QGIS Date : May 23, 2011 copyright : (C) 2011 by Giuseppe Sucameli email : brush.tyler@...
unknown
codeparrot/codeparrot-clean
import settle from '../../../lib/core/settle'; describe('core::settle', function() { let resolve; let reject; beforeEach(function() { resolve = jasmine.createSpy('resolve'); reject = jasmine.createSpy('reject'); }); it('should resolve promise if status is not set', function() { const response =...
javascript
github
https://github.com/axios/axios
test/specs/core/settle.spec.js
description: Runs mongot e2e tests with the $vectorSearch extension loaded and enabled via the featureFlagVectorSearchExtension IFR flag; this suite also enables the featureFlagExtensionViewsAndUnionWith flag. base_suite: mongot_community_e2e_single_node overrides: - vector_search_extension.exclude_fully_enabled...
unknown
github
https://github.com/mongodb/mongo
buildscripts/resmokeconfig/matrix_suites/mappings/vector_search_extension_fully_enabled.yml
from __future__ import division, absolute_import, unicode_literals import re from PyQt4 import QtGui from PyQt4 import QtCore from PyQt4.QtCore import Qt from PyQt4.QtCore import SIGNAL from cola import actions from cola import cmds from cola import core from cola import gitcmds from cola import gitcfg from cola impo...
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 the hope that...
unknown
codeparrot/codeparrot-clean
{ "MSETEX": { "summary": "Atomically sets multiple string keys with a shared expiration in a single operation. Supports flexible argument parsing where condition and expiration flags can appear in any order.", "complexity": "O(N) where N is the number of keys to set.", "group": "string", ...
json
github
https://github.com/redis/redis
src/commands/msetex.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/2.6.6/CHANGELOG.2.6.6.md
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
java
github
https://github.com/apache/hadoop
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaSink31.java
#!/bin/sh # # Copyright (c) 2012 Valentin Duperray, Lucien Kong, Franck Jonas, # Thomas Nguy, Khoi Nguyen # Grenoble INP Ensimag # test_description='Compatibility with $XDG_CONFIG_HOME/git/ files' . ./test-lib.sh test_expect_success 'read config: xdg file exists and ~/.gitconfig doesn'\''t' ' mkdir -p ....
unknown
github
https://github.com/git/git
t/t1306-xdg-files.sh
# Copyright 2009 Brian Quinlan. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. __author__ = 'Brian Quinlan (brian@sweetapp.com)' import collections import functools import logging import threading import time FIRST_COMPLETED = 'FIRST_COMPLETED' FIRST_EXCEPTION = 'FIRST_EXCEPTION' ALL_COMPLETED...
unknown
codeparrot/codeparrot-clean
__author__ = 'Tom Schaul, tom@idsia.ch' from pybrain.structure.modules import TanhLayer, SigmoidLayer from pybrain.structure.networks.feedforward import FeedForwardNetwork from pybrain.structure.connections.shared import MotherConnection, SharedFullConnection from pybrain.structure.modules.linearlayer import LinearLay...
unknown
codeparrot/codeparrot-clean
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
unknown
codeparrot/codeparrot-clean
import os import sys import tempfile import operator import functools import itertools import re import contextlib import pickle import six from six.moves import builtins, map import pkg_resources if sys.platform.startswith('java'): import org.python.modules.posix.PosixModule as _os else: _os = sys.modules[o...
unknown
codeparrot/codeparrot-clean
from __future__ import unicode_literals import collections import datetime import decimal import inspect import math import os import re import sys import types from importlib import import_module from django.apps import apps from django.db import migrations, models from django.db.migrations.loader import MigrationLo...
unknown
codeparrot/codeparrot-clean
# frozen_string_literal: true require "cases/helper" require "models/post" require "models/comment" class ExcludingTest < ActiveRecord::TestCase fixtures :posts, :comments setup { @post = posts(:welcome) } def test_result_set_does_not_include_single_excluded_record assert_not_includes Post.excluding(@post...
ruby
github
https://github.com/rails/rails
activerecord/test/cases/excluding_test.rb
{ "html": { "type": "Fragment", "start": 0, "end": 19, "children": [ { "type": "Element", "start": 0, "end": 19, "name": "span", "attributes": [], "children": [ { "type": "Text", "start": 6, "end": 12, "raw": "&nbsp;", "data": " " } ] } ...
json
github
https://github.com/sveltejs/svelte
packages/svelte/tests/parser-legacy/samples/nbsp/output.json
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2011 Smile (<http://www.smile.fr>). All Rights Reserved # # This program is free software: you can redistribute it and/or modify # it under th...
unknown
codeparrot/codeparrot-clean
# -*- test-case-name: twisted.python.test.test_systemd -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Integration with systemd. Currently only the minimum APIs necessary for using systemd's socket activation feature are supported. """ from __future__ import division, absolute_import ...
unknown
codeparrot/codeparrot-clean
#pragma once /* This file defines math functions compatible across different gpu * platforms (currently CUDA and HIP). */ #if defined(__CUDACC__) || defined(__HIPCC__) #include <c10/macros/Macros.h> #include <c10/util/Exception.h> #ifdef __HIPCC__ #define __MATH_FUNCTIONS_DECL__ inline C10_DEVICE #else /* __HIPCC_...
c
github
https://github.com/pytorch/pytorch
c10/cuda/CUDAMathCompat.h
# -*- coding: utf-8 -*- # Copyright(C) 2013-2014 Florent Fourcot # # This file is part of weboob. # # weboob is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at yo...
unknown
codeparrot/codeparrot-clean
from __future__ import unicode_literals from django.apps import apps from django.db import models from django.test import SimpleTestCase, override_settings from django.test.utils import isolate_lru_cache from django.utils import six class FieldDeconstructionTests(SimpleTestCase): """ Tests the deconstruct() m...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
unknown
codeparrot/codeparrot-clean
import enum import inspect import pydoc import unittest from collections import OrderedDict from enum import Enum, IntEnum, EnumMeta, unique from io import StringIO from pickle import dumps, loads, PicklingError, HIGHEST_PROTOCOL # for pickle tests try: class Stooges(Enum): LARRY = 1 CURLY = 2 ...
unknown
codeparrot/codeparrot-clean
# Copyright (c) MetaCommunications, Inc. 2003-2005 # # 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) import difflib import os import re import shutil import string import sys def scan_for_test_cases(): return ...
unknown
codeparrot/codeparrot-clean
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt """The version and URL for coverage.py""" # This file is exec'ed in setup.py, don't import anything! # Same semantics as sys.version_info. version_info = (4, 2, 0,...
unknown
codeparrot/codeparrot-clean
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause %YAML 1.2 --- $id: http://devicetree.org/schemas/mmc/cdns,sdhci.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Cadence SD/SDIO/eMMC Host Controller (SD4HC) maintainers: - Masahiro Yamada <yamada.masahiro@socionext.com> properties: compa...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml
# -*- coding: UTF-8 -*- ## Copyright 2009-2013 Luc Saffre ## This file is part of the Lino project. ## Lino 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 opt...
unknown
codeparrot/codeparrot-clean
""" Functions for working with mount points """ import os from subprocess import call from collections import namedtuple MTAB_FILE = '/proc/mounts' MOUNT = '/bin/mount' NTFS_MOUNT = '/usr/bin/ntfs-3g' UMOUNT = '/bin/umount' #: namedtuple representing a single mtab entry MtabEntry = namedtuple('MtabEntry', ['dev', 'm...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # Copyright 2012-2017 Camptocamp # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import re from odoo import models, fields, api, _ from odoo.tools import mod10r from odoo import exceptions from odoo.addons.base_iban.models.res_partner_bank import normalize_iban class BankCommon...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ /*************************************************************************** Name : DB Manager Description : Database manager plugin for QGIS (Oracle) Date : Aug 27, 2014 copyright : (C) 2014 by Médéric RIBREUX email : meder...
unknown
codeparrot/codeparrot-clean
from __future__ import print_function from django.contrib.auth.models import User from django.core.management.base import BaseCommand class Command(BaseCommand): help = "Show a user's roles and permissions." def add_arguments(self, parser): parser.add_argument('email_or_username', ...
unknown
codeparrot/codeparrot-clean
""" Test suite for the fixer modules """ # Python imports import os import unittest from itertools import chain from operator import itemgetter # Local imports from lib2to3 import pygram, pytree, refactor, fixer_util from lib2to3.tests import support class FixerTestCase(support.TestCase): # Other test cases can...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # # marketdatajl documentation build configuration file, created by # sphinx-quickstart on Tue Jul 22 18:54:01 2014. # # 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
//go:build linux package fuseoverlayfs import ( "testing" "github.com/moby/go-archive" "github.com/moby/moby/v2/daemon/graphdriver" "github.com/moby/moby/v2/daemon/graphdriver/graphtest" ) func init() { // Do not sure chroot to speed run time and allow archive // errors or hangs to be debugged directly from t...
go
github
https://github.com/moby/moby
daemon/graphdriver/fuse-overlayfs/fuseoverlayfs_test.go
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT //! This applies the macros at build-time in order to rig some special features needed by `cargo`. #![doc( html_logo_url = "https://github.com/tauri-apps/tauri/raw/dev/.github...
rust
github
https://github.com/tauri-apps/tauri
crates/tauri-build/src/lib.rs
<!--Copyright 2021 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
unknown
github
https://github.com/huggingface/transformers
docs/source/ja/model_doc/byt5.md
""" Adds support for first class features that can be added to the edX platform. """ from stevedore.extension import ExtensionManager class PluginError(Exception): """ Base Exception for when an error was found regarding features. """ pass class PluginManager(object): """ Base class that mana...
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/AcknowledgementCommitCallback.java
{ "private": true, "scripts": { "dev": "next", "build": "next build", "start": "next start", "seed": "ts-node dbschema/seed.ts", "prebuild": "npx edgeql-js" }, "dependencies": { "@types/react": "^18.0.5", "@types/react-dom": "^18.0.1", "edgedb": "latest", "next": "latest", ...
json
github
https://github.com/vercel/next.js
examples/with-edgedb/package.json
""" Tests of specific tabs. """ from mock import patch, Mock from unittest import TestCase import xmodule.tabs as xmodule_tabs from openedx.core.lib.course_tabs import CourseTabPluginManager class CourseTabPluginManagerTestCase(TestCase): """Test cases for CourseTabPluginManager class""" @patch('openedx.co...
unknown
codeparrot/codeparrot-clean