code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
#!/usr/bin/python # Burak ER # burak.er@btu.edu.tr # github.com/burak-er # Mechanical Engineering Department # Bursa Technical University # # -*- coding: utf-8 -*- from __future__ import print_function import matplotlib matplotlib.use('TkAgg') # Use an integrator engine that is derived from the interface Integrator....
unknown
codeparrot/codeparrot-clean
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html #include "precomp.hpp" #include "opencl_kernels_core.hpp" #include "convert.simd.hpp" #include "convert.simd_declarations.hpp...
cpp
github
https://github.com/opencv/opencv
modules/core/src/convert.dispatch.cpp
# Copyright (C) 2005 John Arbash-Meinel <john@arbash-meinel.com> # Modified up by: Todd Whiteman <ToddW@ActiveState.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Softwa...
unknown
codeparrot/codeparrot-clean
import purestorage import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) from base64 import b64encode import os import sys import json import getpass from optparse import OptionParser from datetime import datetime, time...
unknown
codeparrot/codeparrot-clean
import json from django.conf import settings from haystack import indexes from geonode.groups.models import GroupProfile class GroupIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) title = indexes.CharField(boost=2) # https://github.com/toastdrive...
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-context/src/main/java/org/springframework/context/aot/AbstractAotProcessor.java
package org.pytorch; import com.facebook.jni.HybridData; import com.facebook.soloader.nativeloader.NativeLoader; import com.facebook.soloader.nativeloader.SystemDelegate; import java.util.Map; class LiteNativePeer implements INativePeer { static { if (!NativeLoader.isInitialized()) { NativeLoader.init(new...
java
github
https://github.com/pytorch/pytorch
android/pytorch_android/src/main/java/org/pytorch/LiteNativePeer.java
# -*- coding: utf-8 -*- # # Copyright (c) 2011 # Johannes Harestad, <johannesharestad@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at y...
unknown
codeparrot/codeparrot-clean
// Copyright IBM Corp. 2016, 2025 // SPDX-License-Identifier: BUSL-1.1 package transit import ( "context" "crypto" "crypto/ecdsa" "crypto/elliptic" "crypto/x509" "encoding/base64" "encoding/pem" "errors" "fmt" "strconv" "strings" "github.com/hashicorp/vault/helper/constants" "github.com/hashicorp/vault/...
go
github
https://github.com/hashicorp/vault
builtin/logical/transit/path_export.go
import collections.abc from datetime import datetime from math import ceil from operator import attrgetter from unittest import mock, skipUnless from django.core.exceptions import FieldError from django.db import connection, models from django.db.models import ( BooleanField, Case, Exists, ExpressionWr...
python
github
https://github.com/django/django
tests/lookup/tests.py
# -*- test-case-name: twisted.web. # Copyright (c) 2001-2009 Twisted Matrix Laboratories. # See LICENSE for details. """ I am a virtual hosts implementation. """ # Twisted Imports from twisted.python import roots from twisted.web import resource class VirtualHostCollection(roots.Homogenous): """Wrapper for virtu...
unknown
codeparrot/codeparrot-clean
import { Features } from '.' import { atRoot, atRule, cloneAstNode, decl, rule, styleRule, type AstNode, type AtRule, type Rule, type StyleRule, } from './ast' import { type Variant } from './candidate' import { applyVariant } from './compile' import type { DesignSystem } from './design-system' impo...
typescript
github
https://github.com/tailwindlabs/tailwindcss
packages/tailwindcss/src/variants.ts
/* 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 applicable law or a...
c
github
https://github.com/tensorflow/tensorflow
tensorflow/compiler/jit/encapsulate_util.h
# Copyright (c) 2019 Cloudify Platform Ltd. 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 ap...
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 2014 Nervana Systems Inc. All rights reserved. # ---------------------------------------------------------------------------- """ Utility functions which help with running tests. """ import numpy as np from nervanagpu import G...
unknown
codeparrot/codeparrot-clean
from importlib import machinery import unittest from test.test_importlib import util class SpecLoaderMock: def find_spec(self, fullname, path=None, target=None): return machinery.ModuleSpec(fullname, self) def create_module(self, spec): return None def exec_module(self, module): ...
python
github
https://github.com/python/cpython
Lib/test/test_importlib/import_/test___loader__.py
import utils from '../utils.js'; import settle from '../core/settle.js'; import transitionalDefaults from '../defaults/transitional.js'; import AxiosError from '../core/AxiosError.js'; import CanceledError from '../cancel/CanceledError.js'; import parseProtocol from '../helpers/parseProtocol.js'; import platform from '...
javascript
github
https://github.com/axios/axios
lib/adapters/xhr.js
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # This module copyright (C) 2013 Therp BV (<http://therp.nl>) # All Rights Reserved # # This program is free software: you can redistribute it and/or modify #...
unknown
codeparrot/codeparrot-clean
# Copyright 2022 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/core/function/trace_type/util.py
// // Created by Kavon Farvardin on 11/19/25. // #ifndef SWIFT_SILGENUTILS_H #define SWIFT_SILGENUTILS_H #include "swift/SIL/SILValue.h" namespace swift { // Unsafe access may have invalid storage (e.g. a RawPointer). bool isPossibleUnsafeAccessInvalidStorage(SILValue access, SILFunction *F); } // namespace swift ...
c
github
https://github.com/apple/swift
include/swift/SIL/SILGenUtils.h
import requests from bs4 import BeautifulSoup import urllib.parse import backoff import csv import datetime import dateutil.parser import argparse from typing import List, NewType, Tuple AbsoluteUrl = NewType("AbsoluteUrl", str) RelativeUrl = NewType("RelativeUrl", str) IsoDateStr = NewType("IsoDateStr", str) Path = ...
unknown
codeparrot/codeparrot-clean
# Copyright 2015 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. """Common library methods used by both coordinator and task machines.""" import argparse import logging import os import socket LOGGING_LEVELS = ['DEBUG', ...
unknown
codeparrot/codeparrot-clean
/* Copyright (c) 2016, 2025, Oracle and/or its affiliates. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is designed to work with certain software (including...
c
github
https://github.com/mysql/mysql-server
sql/sort_param.h
from fabric.contrib.console import confirm from fabric.contrib.files import comment, append, exists from fabric.decorators import task from fabric.operations import prompt, sudo, put, os from fabdeb.apt import apt_install from fabdeb.os import check_sudo, check_os from fabdeb.tools import print_green, print_red, print_...
unknown
codeparrot/codeparrot-clean
# Copyright 2013 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 cPickle import traceback from appengine_wrappers import db # A collection of the data store models used throughout the server. # These values are gl...
unknown
codeparrot/codeparrot-clean
# Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard 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 Lice...
unknown
codeparrot/codeparrot-clean
from xml.dom import minidom from django.core import serializers from django.core.serializers.xml_serializer import DTDForbidden from django.test import TestCase, TransactionTestCase from .tests import SerializersTestBase, SerializersTransactionTestBase class XmlSerializerTestCase(SerializersTestBase, TestCase): ...
python
github
https://github.com/django/django
tests/serializers/test_xml.py
# Property List encoding and decoding # by Mario Vilas (mvilas at gmail.com) # Copyright (c) 2009-2012, Mario Vilas # 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 sour...
unknown
codeparrot/codeparrot-clean
data = ( '', # 0x00 '', # 0x01 '', # 0x02 '', # 0x03 '', # 0x04 '', # 0x05 '', # 0x06 '', # 0x07 '', # 0x08 '', # 0x09 '', # 0x0a '', # 0x0b '', # 0x0c '', # 0x0d '', # 0x0e '', # 0x0f '', # 0x10 '', # 0x11 '', # 0x12 '', # 0x13 '', # 0x14 '', # 0x15 '',...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2014 OpenERP S.A. (<http://openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms of ...
unknown
codeparrot/codeparrot-clean
#*************************************************************************** #* * #* Copyright (c) 2011, 2012 * #* Jose Luis Cercos Pita <jlcercos@gmail.com> * #* ...
unknown
codeparrot/codeparrot-clean
/* * Copyright 2014-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ package io.ktor.client.plugins.observer import io.ktor.client.call.* import io.ktor.http.* import io.ktor.utils.io.* /** * Wrap existing [HttpClientCall] with new [content]. * * **Warning...
kotlin
github
https://github.com/ktorio/ktor
ktor-client/ktor-client-core/common/src/io/ktor/client/plugins/observer/DelegatedCall.kt
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from werkzeug import urls from odoo import api, fields, models from odoo.tools.translate import html_translate class RecruitmentSource(models.Model): _inherit = 'hr.recruitment.source' url = fields.Char(comput...
unknown
codeparrot/codeparrot-clean
//// [tests/cases/compiler/APISample_linter.ts] //// //// [package.json] { "name": "typescript", "types": "/.ts/typescript.d.ts" } //// [APISample_linter.ts] /* * Note: This test is a public API sample. The sample sources can be found * at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compil...
javascript
github
https://github.com/microsoft/TypeScript
tests/baselines/reference/APISample_linter.js
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/sparse/SparseStubs.h> #include <ATen/native/sparse/FlattenIndicesCommon.h> #include <ATen/native/cpu/Loops.h> #include <ATen/native/TensorIterator.h> #include <ATen/AccumulateType.h> namespace at::native { namespace { template <typename func_t> struct ...
cpp
github
https://github.com/pytorch/pytorch
aten/src/ATen/native/sparse/FlattenIndicesKernel.cpp
# Copyright 2021 Microsoft Research and 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 # # ...
python
github
https://github.com/huggingface/transformers
src/transformers/models/beit/modeling_beit.py
//go:build !windows package main import ( "bytes" "io" "os/exec" "strings" "testing" "time" "github.com/creack/pty" "github.com/moby/moby/v2/integration-cli/cli" "gotest.tools/v3/assert" ) // regression test for #12546 func (s *DockerCLIExecSuite) TestExecInteractiveStdinClose(c *testing.T) { testRequires...
go
github
https://github.com/moby/moby
integration-cli/docker_cli_exec_unix_test.go
{ "kind": "Dashboard", "apiVersion": "dashboard.grafana.app/v2alpha1", "metadata": { "name": "v0alpha1.heatmap-legacy.v42" }, "spec": { "annotations": [ { "kind": "AnnotationQuery", "spec": { "datasource": { "type": "grafana", "uid": "-- Grafana ...
json
github
https://github.com/grafana/grafana
apps/dashboard/pkg/migration/conversion/testdata/output/migrated_dev_dashboards/panel-heatmap/v0alpha1.heatmap-legacy.v42.v2alpha1.json
from pybindgen.typehandlers.base import Parameter, ReturnValue, \ join_ctype_and_name, CodeGenerationError, \ param_type_matcher, return_type_matcher, CodegenErrorBase, \ DeclarationsScope, CodeBlock, NotSupportedError, ForwardWrapperBase, ReverseWrapperBase, \ TypeConfigurationError from pybindgen.cpp...
unknown
codeparrot/codeparrot-clean
# coding=utf-8 import random from flask import url_for from psi.app import const from psi.app.utils import db_util from tests import fixture from tests.base_test_case import BaseTestCase from tests.fixture import login_as_admin, login_user, run_as_admin from tests.object_faker import object_faker from psi.app.servic...
unknown
codeparrot/codeparrot-clean
# Cost Model Calibrator ## Getting Started ### 1) Setup Mongod First, prepare the MongoDB server: 1. Activate the standard virtual environment: ```sh source python3-venv/bin/activate ``` 2. Build server with optimizations (makes doc insertion faster): ```sh (python3-venv) bazel build --config=opt install-devcore...
unknown
github
https://github.com/mongodb/mongo
buildscripts/cost_model/README.md
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'Node.name' db.alter_column(u'oozie_node', 'name', self....
unknown
codeparrot/codeparrot-clean
# -*- encoding: utf-8 -*- from __future__ import unicode_literals import codecs import os import posixpath import shutil import sys import tempfile import unittest from django.template import loader, Context from django.conf import settings from django.core.cache.backends.base import BaseCache from django.core.except...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ werkzeug.debug.repr ~~~~~~~~~~~~~~~~~~~ This module implements object representations for debugging purposes. Unlike the default repr these reprs expose a lot more information and produce HTML instead of ASCII. Together with the CSS and JavaScript files of the debug...
unknown
codeparrot/codeparrot-clean
package plugin import ( "fmt" v2 "github.com/moby/moby/v2/daemon/pkg/plugin/v2" "github.com/opencontainers/runtime-spec/specs-go" ) func (pm *Manager) enable(p *v2.Plugin, c *controller, force bool) error { return fmt.Errorf("Not implemented") } func (pm *Manager) initSpec(p *v2.Plugin) (*specs.Spec, error) { ...
go
github
https://github.com/moby/moby
daemon/pkg/plugin/manager_windows.go
# -*- coding: utf-8 -*- """ *************************************************************************** GridNearestNeighbor.py --------------------- Date : October 2013 Copyright : (C) 2013 by Alexander Bruy Email : alexander dot bruy at gmail dot com *****...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2014-2015, Tenable Network Security, 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 li...
unknown
codeparrot/codeparrot-clean
""" :module:vpp_anyleg.py :synopsis: general 2D VPP model (arbitrary leg function), implemented with dopri5 from Shai :moduleauthor: Moritz Maus <mmaus@sport.tu-darmstadt.de> :edited: 25.02.2013 MM 27.02.2013 MM - bug hunting on step transition """ import libshai.integro as ode import mutils.misc as mi ...
unknown
codeparrot/codeparrot-clean
# coding: utf-8 from __future__ import unicode_literals import re import xml.etree.ElementTree from .common import InfoExtractor from ..utils import ( ExtractorError, float_or_none, int_or_none, parse_duration, parse_iso8601, ) from ..compat import compat_HTTPError class BBCCoUkIE(InfoExtractor):...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8; -*- """ Copyright (C) 2007-2013 Guake authors 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 progra...
unknown
codeparrot/codeparrot-clean
# Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file. import re import sys import os from .ansi import AnsiFore, AnsiBack, AnsiStyle, Style from .winterm import WinTerm, WinColor, WinStyle from .win32 import windll winterm = None if windll is not None: winterm = WinTerm() def is_a_tty(stream...
unknown
codeparrot/codeparrot-clean
"""Utilities to get a password and/or the current user name. getpass(prompt[, stream]) - Prompt for a password, with echo turned off. getuser() - Get the user name from the environment or password database. GetPassWarning - This UserWarning is issued when getpass() cannot prevent echoing of the passw...
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.descriptors.types import org.jetbrains.kotlin.analysis.api.KaExperi...
kotlin
github
https://github.com/JetBrains/kotlin
analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/types/KaFe10NewCapturedType.kt
// Copyright 2015 The etcd 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 t...
go
github
https://github.com/etcd-io/etcd
server/etcdserver/api/v2store/watcher.go
# -*- coding: utf-8 -*- # # Copyright (C) 2012-2013 Vinay M. Sajip. See LICENSE for licensing information. # import logging import os import collections import sys from explainshell import errors from explainshell.shlext import shell_shlex logger = logging.getLogger(__name__) # We use a separate logger for parsing,...
unknown
codeparrot/codeparrot-clean
""" Provides partition support to the user service. """ import logging import random import course_tag.api as course_tag_api from xmodule.partitions.partitions import UserPartitionError, NoSuchUserPartitionGroupError log = logging.getLogger(__name__) class RandomUserPartitionScheme(object): """ This scheme r...
unknown
codeparrot/codeparrot-clean
import struct from collections import defaultdict from elfesteem import cstruct from elfesteem import * import elfesteem.elf as elf_csts from miasm2.jitter.csts import * from miasm2.jitter.loader.utils import canon_libname_libfunc, libimp from miasm2.core.interval import interval import logging log = logging.getLog...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # # || ____ _ __ # +------+ / __ )(_) /_______________ _____ ___ # | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \ # +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ # || || /_____/_/\__/\___/_/ \__,_/ /___/\___/ # # Toolbelt - a utility tu run tools in do...
unknown
codeparrot/codeparrot-clean
"""A class to store tables. Sample Usage: table = SgTable() table.Append([1, 2, 3]) table.Append([2, 4, 6]) table.Append([3, 6, 9]) for row in table: print(row) print(table[1]) table[1] = [2, 2, 2] print(table[1]) table.SetFields(["a", "b", "c"]) print(table.GetVals("a")...
unknown
codeparrot/codeparrot-clean
/* 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/compiler/mlir/lite/python/saved_model_to_tfl_flatbuffer.h
// Targets Cortex-A7/A8/A9 processors (ARMv7-A) running NuttX // // This target assumes that the device does NOT have a FPU (Floating Point Unit) // and will use software floating point operations. This matches the NuttX EABI // configuration without hardware floating point support. use crate::spec::{ Abi, Arch, C...
rust
github
https://github.com/rust-lang/rust
compiler/rustc_target/src/spec/targets/armv7a_nuttx_eabi.rs
// Copyright 2021 The Cockroach Authors. // // Use of this software is governed by the CockroachDB Software License // included in the /LICENSE file. // // Code generated by generate-staticcheck; DO NOT EDIT. // //go:build bazel package sa4012 import ( util "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes...
go
github
https://github.com/cockroachdb/cockroach
build/bazelutil/staticcheckanalyzers/sa4012/analyzer.go
--- c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. SPDX-License-Identifier: curl Title: curl_multi_socket Section: 3 Source: libcurl See-also: - curl_multi_cleanup (3) - curl_multi_fdset (3) - curl_multi_info_read (3) - curl_multi_init (3) - the hiperfifo.c example Protocol: - All Added-in: 7.15...
unknown
github
https://github.com/curl/curl
docs/libcurl/curl_multi_socket.md
# Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/ # # 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
#!/usr/bin/env python # psycopg2 test suite # # Copyright (C) 2007-2011 Federico Di Gregorio <fog@debian.org> # # psycopg2 is free software: you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the Licen...
unknown
codeparrot/codeparrot-clean
/* Copyright 2023 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/common_runtime/next_pluggable_device/c/tf_device_context_c_api_internal.h
## # @file m_util.py # @brief developing python library # @author Dingjie.Wang # @version 1.0 # @date 2012-08-04 import re import inspect from pprint import pprint # --------------------------------------------------------------------- def format_log(offset, dsp_caller = True, *args): ''' ''' caller = "" ...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2008 Princeton University # Copyright (c) 2009 Advanced Micro Devices, 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 c...
unknown
codeparrot/codeparrot-clean
from contextlib import contextmanager from math import sqrt import networkx as nx from nose import SkipTest from nose.tools import * methods = ('tracemin_pcg', 'tracemin_chol', 'tracemin_lu', 'lanczos', 'lobpcg') try: from numpy.random import get_state, seed, set_state, shuffle @contextmanager def save_r...
unknown
codeparrot/codeparrot-clean
# Copyright 2011 OpenStack 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 # # Unless required by applicable law ...
unknown
codeparrot/codeparrot-clean
# # Author: Gregory Fleischer (gfleischer@gmail.com) # # Copyright (c) 2013 RAFT Team # # This file is part of RAFT. # # RAFT 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...
unknown
codeparrot/codeparrot-clean
""" File contains the standard library of Python 3.8. DO NOT EDIT. If the standard library changes, a new list should be created using the mkstdlibs.py script. """ stdlib = { "_dummy_thread", "_thread", "abc", "aifc", "argparse", "array", "ast", "asynchat", "asyncio", "asyncore...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################## ## ## This file is part of Sardana ## ## http://www.sardana-controls.org/ ## ## Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## ## Sardana is free software: you can redistribute it...
unknown
codeparrot/codeparrot-clean
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/crypto/ti,sa2ul.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: K3 SoC SA2UL crypto module maintainers: - Tero Kristo <t-kristo@ti.com> properties: compatible: enum: - ti,j721e...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/crypto/ti,sa2ul.yaml
# 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
#!/usr/bin/python # 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) any later version. # # Ansible is distributed...
unknown
codeparrot/codeparrot-clean
# # error.py # # Copyright (C) 2008 Andrew Resch <andrewresch@gmail.com> # Copyright (C) 2011 Pedro Algarvio <pedro@algarvio.me> # # Deluge is free software. # # You may 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
- hosts: A,B gather_facts: false tasks: - command: echo notify: handler handlers: - name: handler include_tasks: handlers_lockstep_83019-include.yml
unknown
github
https://github.com/ansible/ansible
test/integration/targets/handlers/handlers_lockstep_83019.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...
c
github
https://github.com/realm/realm-swift
Realm/RLMResults_Private.h
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use cargo_mobile2::{ android::{ adb, config::{Config as AndroidConfig, Metadata as AndroidMetadata, Raw as RawAndroidConfig}, device::Device, emulator, env:...
rust
github
https://github.com/tauri-apps/tauri
crates/tauri-cli/src/mobile/android/mod.rs
/* * Copyright (C) Igor Sysoev * Copyright (C) Nginx, Inc. */ #include <ngx_config.h> #include <ngx_core.h> static ngx_int_t ngx_test_full_name(ngx_str_t *name); static ngx_atomic_t temp_number = 0; ngx_atomic_t *ngx_temp_number = &temp_number; ngx_atomic_int_t ngx_random_number = 123456; ngx_int_...
c
github
https://github.com/nginx/nginx
src/core/ngx_file.c
/* * 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/errors/UnknownSubscriptionIdException.java
<!DOCTYPE html> <html> <head> <base href='http://example.com' /> <title>Sample page without encoding for testing LinkExtractor</title> </head> <body> <div id='wrapper'> <div id='subwrapper'> <a href='sample_ñ.html'><img src='sample2.jpg' alt='sample2'/></a> </div> <a href='sample_€.htm...
html
github
https://github.com/scrapy/scrapy
tests/sample_data/link_extractor/linkextractor_noenc.html
/* * Copyright (c) 2023 Mockito contributors * This program is made available under the terms of the MIT License. */ package org.mockito.internal.creation.bytebuddy; import java.util.Properties; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.parallel.Is...
java
github
https://github.com/mockito/mockito
mockito-core/src/test/java/org/mockito/internal/creation/bytebuddy/PlatformUtilsTest.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 ...
c
github
https://github.com/apache/hadoop
hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/util/bulk_crc32_riscv.c
use tests_build::tokio; #[tokio::main] async fn main() { // do not leak `RotatorSelect` let _ = tokio::try_join!(async { fn foo(_: impl RotatorSelect) {} }); // do not leak `std::task::Poll::Pending` let _ = tokio::try_join!(async { Pending }); // do not leak `std::task::Poll::Ready` ...
rust
github
https://github.com/tokio-rs/tokio
tests-build/tests/fail/macros_try_join.rs
# Copyright (c) 2014, Max Zwiessele # Licensed under the BSD 3-clause license (see LICENSE.txt) import numpy as np from .parameter_core import Pickleable from .observable import Observable class ObsAr(np.ndarray, Pickleable, Observable): """ An ndarray which reports changes to its observers. The observers...
unknown
codeparrot/codeparrot-clean
from functools import partial from kivy.animation import Animation from kivy.core.window import Window from kivy.clock import Clock from kivy.uix.bubble import Bubble, BubbleButton from kivy.properties import ListProperty from kivy.uix.widget import Widget from electrum_gui.i18n import _ class ContextMenuItem(Widget...
unknown
codeparrot/codeparrot-clean
# Copyright 2013 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 json import math import os from telemetry import benchmark from telemetry.core import util from telemetry.page import page_set from telemetry.page im...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- ''' Created on Mar 12, 2012 @author: moloch Copyright 2012 Root the Box 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/licen...
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/ko/model_doc/gpt2.md
#!/usr/bin/env python # # Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. # Simple tool for verifying that sources from the standalone embedder do not # dir...
unknown
codeparrot/codeparrot-clean
""" mgws v0.01 MtGox Web Socket Interface configuration loader Copyright 2011 Brian Monkaba This file is part of ga-bitbot. ga-bitbot 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...
unknown
codeparrot/codeparrot-clean
# -* coding: utf-8 -*- """ flaskext.openid ~~~~~~~~~~~~~~~ Tiny wrapper around python-openid to make working with the basic API in a flask application easier. Adapt this code for your own project if necessary. :copyright: (c) 2010 by Armin Ronacher. :license: BSD, see LICENSE for more det...
unknown
codeparrot/codeparrot-clean
# Copyright 2017 RedHat, inc # # 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) any later version. # # Ansible i...
unknown
codeparrot/codeparrot-clean
test_kind: js_test selector: roots: - jstests/resmoke_selftest/end2end/failure/fixture/*.js executor: archive: tests: true fixture: class: ReplicaSetFixture mongod_options: set_parameters: enableTestCommands: 1 num_nodes: 2
unknown
github
https://github.com/mongodb/mongo
buildscripts/tests/resmoke_end2end/suites/resmoke_selftest_task_failure.yml
# (c) 2016, Marcos Diez <marcos@unitron.com.br> # https://github.com/marcosdiez/ # # 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...
unknown
codeparrot/codeparrot-clean
//// [tests/cases/compiler/asyncFunctionsAndStrictNullChecks.ts] //// //// [asyncFunctionsAndStrictNullChecks.ts] declare namespace Windows.Foundation { interface IPromise<TResult> { then<U>(success?: (value: TResult) => IPromise<U>, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void):...
javascript
github
https://github.com/microsoft/TypeScript
tests/baselines/reference/asyncFunctionsAndStrictNullChecks.js
# -*- coding: utf-8 -*- # Copyright (c) 2019 Ansible Project # Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) from __future__ import annotations as _annotations import warnings as _warnings from ansible.module_utils.common.warnings import deprecate as _deprec...
python
github
https://github.com/ansible/ansible
lib/ansible/module_utils/compat/paramiko.py