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 """ @package mi.dataset.parser.test.test_flort_dj_cspp @file marine-integrations/mi/dataset/parser/test/test_flort_dj_cspp.py @author Jeremy Amundson @brief Test code for a flort_dj_cspp data parser """ import os import numpy import yaml from nose.plugins.attrib import attr from mi.core.log im...
unknown
codeparrot/codeparrot-clean
from __future__ import division import binascii import datetime import os.path import salt.minion from salt._compat import string_types import OpenSSL def compound(tgt, minion_id=None): opts = {'grains': __grains__} if minion_id is not None: if not isinstance(minion_id, string_types): m...
unknown
codeparrot/codeparrot-clean
// Code generated by go-swagger; DO NOT EDIT. package container // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command // TopResponse ContainerTopResponse // // Container "top" response. // // swagger:model TopResponse type TopResponse str...
go
github
https://github.com/moby/moby
api/types/container/top_response.go
{ "definitions": { "AmdContainer": { "description": "Add a container for define/require functions in the AMD module.", "type": "string", "minLength": 1 }, "AuxiliaryComment": { "description": "Add a comment in the UMD wrapper.", "anyOf": [ { "description": "...
json
github
https://github.com/webpack/webpack
schemas/plugins/container/ModuleFederationPlugin.json
#!/usr/bin/python import time import sys from subprocess import check_output import webbrowser NEW_TAB_FLAG = 2 import feedparser db = "global that should be refactored" limit = 12 * 60 * 60 * 1000 # 12 hours, in milliseconds #limit = 1000 DB_FEEDS = "rss/feeds.db" # function to get the current time timeCurrentMi...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- from nose.tools import eq_ from bleach import clean, linkify def test_japanese_safe_simple(): eq_(u'ヘルプとチュートリアル', clean(u'ヘルプとチュートリアル')) eq_(u'ヘルプとチュートリアル', linkify(u'ヘルプとチュートリアル')) def test_japanese_strip(): eq_(u'<em>ヘルプとチュートリアル</em>', clean(u'<em>ヘルプとチュートリアル</em>')) ...
unknown
codeparrot/codeparrot-clean
/* * Copyright (C) 2017 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-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
from resource_management.core.logger import Logger from resource_management.core.resources.system import Execute, File from resource_management.libraries.functions.check_process_status import check_process_status from resource_management.libraries.functions.format import format from resource_management.libraries.script...
unknown
codeparrot/codeparrot-clean
# vim: set fileencoding=utf-8 : from shirka.responders import Responder from shirka.consumers import BaseTestCase from random import choice import datetime STATUS = [ "You wanna piece of me, boy?", "Ready to roll out!", "Can I take your order?", "SCV good to go, sir.", "Alright! Bring it on!", ] ...
unknown
codeparrot/codeparrot-clean
from cattle import ApiError from common_fixtures import * # NOQA def test_agent_unique(super_client): agents = super_client.list_agent(uri='sim://unique') if len(agents) == 0: agent = super_client.create_agent(uri='sim://unique') agent = super_client.wait_success(agent) assert agent.s...
unknown
codeparrot/codeparrot-clean
import os from django.template import Context from django.template.engine import Engine from django.test import SimpleTestCase from .utils import ROOT, TEMPLATE_DIR OTHER_DIR = os.path.join(ROOT, 'other_templates') class RenderToStringTest(SimpleTestCase): def setUp(self): self.engine = Engine(dirs=[TE...
unknown
codeparrot/codeparrot-clean
{ "compilerOptions": { "target": "es5", "module": "commonjs", "lib": ["es5", "dom"], "outDir": "./lib", "strict": true, "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "sourceMap": true }, "include": [ "./src/index.ts" ] }
json
github
https://github.com/webpack/webpack
examples/source-mapping-url/node_modules/library/tsconfig.json
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2012, David "DaviXX" CHANIAL <david.chanial@gmail.com> # (c) 2014, James Tanner <tanner.jc@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published ...
unknown
codeparrot/codeparrot-clean
# doctest r''' Test the .npy file format. Set up: >>> import sys >>> from io import BytesIO >>> from numpy.lib import format >>> >>> scalars = [ ... np.uint8, ... np.int8, ... np.uint16, ... np.int16, ... np.uint32, ... np.int32, ... np.uint6...
python
github
https://github.com/numpy/numpy
numpy/lib/tests/test_format.py
# -*- coding: utf-8 -*- """ %store magic for lightweight persistence. Stores variables, aliases and macros in IPython's database. To automatically restore stored variables at startup, add this to your :file:`ipython_config.py` file:: c.StoreMagics.autorestore = True """ from __future__ import print_function #-----...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # # pyOpenSSL documentation build configuration file, created by # sphinx-quickstart on Sat Jul 16 07:12:22 2011. # # 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. # # A...
unknown
codeparrot/codeparrot-clean
# Copyright 2022 The OpenBMB Team 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 # # Un...
python
github
https://github.com/huggingface/transformers
src/transformers/models/cpmant/modeling_cpmant.py
#!/usr/bin/python2.4 # Copyright 2009 the V8 project authors. 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...
unknown
codeparrot/codeparrot-clean
import os from unittest import TestCase from unittest.mock import patch from shutil import copyfile from RatS.filmtipset.filmtipset_ratings_parser import FilmtipsetRatingsParser TESTDATA_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, 'assets')) EXPORT_PATH = os.path.join(TESTDATA...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of AudioLazy, the signal processing Python package. # Copyright (C) 2012-2016 Danilo de Jesus da Silva Bellini # # AudioLazy is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # ...
unknown
codeparrot/codeparrot-clean
import atexit import tempfile from mkt.settings import * # noqa _tmpdirs = set() def _cleanup(): try: import sys import shutil except ImportError: return tmp = None try: for tmp in _tmpdirs: shutil.rmtree(tmp) except Exception, exc: sys.stderr....
unknown
codeparrot/codeparrot-clean
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import SitemapLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional ...
python
github
https://github.com/langchain-ai/langchain
libs/langchain/langchain_classic/document_loaders/sitemap.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compli...
unknown
codeparrot/codeparrot-clean
import json, os, unittest from unittest.mock import patch from pyfakefs.fake_filesystem_unittest import TestCase from arthash.journals import keeper BASE = os.path.dirname(__file__) class KeeperTest(TestCase): def setUp(self): self.setUpPyfakefs() def run_test(self, last1, page1, last2, page2): ...
unknown
codeparrot/codeparrot-clean
import os from django.db import models from django.db.models import Q from django.core import exceptions from core.models import PlCoreBase,PlCoreBaseManager,PlCoreBaseDeletionManager from core.models.plcorebase import StrippedCharField from core.models import Image from core.models import Slice, SlicePrivilege from co...
unknown
codeparrot/codeparrot-clean
import pytest import h5py from h5preserve import open as hp_open, H5PreserveFile @pytest.mark.roundtrip def test_roundtrip(tmpdir, obj_registry): tmpfile = str(tmpdir.join("test_roundtrip.h5")) with hp_open(tmpfile, registries=obj_registry["registries"], mode='x') as f: f["first"] = obj_registry["dump...
unknown
codeparrot/codeparrot-clean
"""CLI for running the Spotnet slave server.""" import asyncio import sys from argparse import ArgumentParser, RawTextHelpFormatter from .server import SpotnetSlaveServer def get_parsed_args(args=None): """Get the parsed args. Args: args (List[str]): The list of command line args to parse; if left ...
unknown
codeparrot/codeparrot-clean
from keras import backend as K from overrides import overrides from .masked_layer import MaskedLayer class VectorMatrixSplit(MaskedLayer): """ This Layer takes a tensor with K modes and splits it into a tensor with K - 1 modes and a tensor with K modes, but one less row in one of the dimensions. We call ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # 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. """Symbolizes a log file produced by cyprofile instrumentation. Given a log file and the binary being profiled, creates an orderfile. """ ...
unknown
codeparrot/codeparrot-clean
from ctypes import POINTER, c_char_p, c_int, c_void_p from django.contrib.gis.gdal.libgdal import lgdal, std_call from django.contrib.gis.gdal.prototypes.generation import ( const_string_output, double_output, int_output, srs_output, string_output, void_output, ) # Shortcut generation for routines with known ...
unknown
codeparrot/codeparrot-clean
--- name: Feature request about: Suggest a new feature for ripgrep title: '' labels: '' assignees: '' --- #### Describe your feature request Please describe the behavior you want and the motivation. Please also provide examples of how ripgrep would be used if your feature request were added. If you're not sure what ...
unknown
github
https://github.com/BurntSushi/ripgrep
.github/ISSUE_TEMPLATE/feature_request.md
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import datetime import git import os from shutil import copyfile import pip import lib.dt from behaviours.behaviour import Behaviour class General(Behaviour): routes = { '(what time is it|what is the time|time)\??$': 'time', '^(?:set )?con...
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/ipc/ProtocolMetaInfoServerSideTranslatorPB.java
import { EXAMPLE_PATH } from "../lib/constants"; import Container from "./container"; export default function Footer() { return ( <footer className="bg-accent-1 border-t border-accent-2"> <Container> <div className="py-28 flex flex-col lg:flex-row items-center"> <h3 className="text-4xl l...
typescript
github
https://github.com/vercel/next.js
examples/cms-prismic/components/footer.tsx
# -*- coding: utf-8 -*- # Copyright 2020 Google 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
unknown
codeparrot/codeparrot-clean
# AOTInductor Debugging Guide If you encounter CUDA illegal memory access (IMA) errors while using [AOT Inductor](./torch.compiler_aot_inductor.md), this guide provides a systematic approach to debug such errors. AOT Inductor is part of the PT2 stack, similar to torch.compile, but it produces a compilation artifact th...
unknown
github
https://github.com/pytorch/pytorch
docs/source/user_guide/torch_compiler/torch.compiler_aot_inductor_debugging_guide.md
# Copyright 2013 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
unknown
codeparrot/codeparrot-clean
# # pubkey.py : Internal functions for public key operations # # Part of the Python Cryptography Toolkit # # Written by Andrew Kuchling, Paul Swartz, and others # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent th...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python from __future__ import print_function import vtk import numpy from icqsol.bem.icqBaseSolver import BaseSolver from icqsol.bem.icqPotentialIntegrals import PotentialIntegrals from icqsol.bem.icqQuadrature import gaussPtsAndWeights from icqsol.util.icqSharedLibraryUtils import getSharedLibraryName ...
unknown
codeparrot/codeparrot-clean
''' SASMOL: Copyright (C) 2011 Joseph E. Curtis, Ph.D. 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
"Database cache backend." from django.core.cache.backends.base import BaseCache from django.db import connections, router, transaction, DatabaseError import base64, time from datetime import datetime try: import cPickle as pickle except ImportError: import pickle class Options(object): """A class that wil...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python3 # coding: utf-8 # infolink.py import time import sys import os import tkinter as Tkinter def main(): app = simpleapp_tk(None) app.title('InfoLink') app.update_timeText() app.mainloop() def GetUser(): try: import getpass usr = getpass.getuser() except: ...
unknown
codeparrot/codeparrot-clean
# -*- test-case-name: twisted.test.test_newjelly -*- # Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. """S-expression-based persistence of python objects. Stability: semi-stable Future Plans: Optimization. Lots of optimization. No semantic breakages should be necessary, but if sma...
unknown
codeparrot/codeparrot-clean
import bisect import re import token import tokenize class ChangeCollector(object): def __init__(self, text): self.text = text self.changes = [] def add_change(self, start, end, new_text=None): if new_text is None: new_text = self.text[start:end] self.changes.appen...
unknown
codeparrot/codeparrot-clean
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ import json from twilio.twiml import ( TwiML, format_language, ) class FaxResponse(TwiML): """ <Response> TwiML for Faxes """ def __init__(self, **kwargs): super(FaxResponse...
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/io/erasurecode/ECChunk.java
# -*- coding: utf-8 -*- # Copyright (c) 2016, 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.utils import flt, today, getdate, cint def post_depreciation_entries(date=None): # Retu...
unknown
codeparrot/codeparrot-clean
"Test debugger_r, coverage 30%." from idlelib import debugger_r import unittest # Boilerplate likely to be needed for future test classes. ##from test.support import requires ##from tkinter import Tk ##class Test(unittest.TestCase): ## @classmethod ## def setUpClass(cls): ## requires('gui') ## cls...
python
github
https://github.com/python/cpython
Lib/idlelib/idle_test/test_debugger_r.py
import logging import os import time from flask import jsonify, Blueprint from flask import request from werkzeug.utils import secure_filename from kalliope import Utils from kalliope.core.ConfigurationManager import BrainLoader, SettingEditor from kalliope.core.ConfigurationManager.ConfigurationChecker import Kallio...
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
# (c) 2016 Red Hat 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 is dis...
unknown
codeparrot/codeparrot-clean
//===--- TypeJoinMeet.cpp - Swift Type "join" and "meet" -----------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
cpp
github
https://github.com/apple/swift
lib/AST/TypeJoinMeet.cpp
import "@testing-library/jest-dom"; import { fireEvent, queryByText, render, screen, waitFor, } from "@testing-library/react"; import * as React from "react"; import { Outlet, Route, RouterProvider, createMemoryRouter, createRoutesFromElements, useLoaderData, useNavigation, useRevalidator, u...
typescript
github
https://github.com/remix-run/react-router
packages/react-router/__tests__/use-revalidator-test.tsx
#!/usr/bin/python # # Copyright 2015 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 b...
unknown
codeparrot/codeparrot-clean
export default async function Page() { return <p>hello world</p>; }
javascript
github
https://github.com/vercel/next.js
crates/next-custom-transforms/tests/errors/use-cache-not-allowed/1/output.js
# -*- coding: utf-8 -*- #------------------------------------------------------------ # PalcoTV - XBMC Add-on by Juarrox (juarrox@gmail.com) # Version 0.2.9 (18.07.2014) #------------------------------------------------------------ # License: GPL (http://www.gnu.org/licenses/gpl-3.0.html) # Gracias a la librería plugin...
unknown
codeparrot/codeparrot-clean
import asyncio import unittest from asyncio.staggered import staggered_race from test import support support.requires_working_socket(module=True) def tearDownModule(): asyncio.events._set_event_loop_policy(None) class StaggeredTests(unittest.IsolatedAsyncioTestCase): async def test_empty(self): winn...
python
github
https://github.com/python/cpython
Lib/test/test_asyncio/test_staggered.py
# Copyright DataStax, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # Copyright (C) 2014 Canonical # # Authors: # Didier Roche # # 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; version 3. # # This program is distributed in the hope that ...
unknown
codeparrot/codeparrot-clean
from distutils.command.install_scripts import install_scripts \ as _install_scripts from pkg_resources import Distribution, PathMetadata, ensure_directory import os from distutils import log class install_scripts(_install_scripts): """Do normal script install, plus any egg_info wrapper scripts""" def ini...
unknown
codeparrot/codeparrot-clean
# -*- encoding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals # noinspection PyUnresolvedReferences from h2o.utils.compatibility import * # NOQA from h2o.exceptions import H2OValueError from h2o.model.extensions import has_extension from h2o.model.model_base import Model...
unknown
codeparrot/codeparrot-clean
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers def register_types(module): root_module = module.get_root() ## dsdv-helper.h: ns3::DsdvHelper [class] module.add_class('DsdvHelper', parent=root_module['ns3::Ipv4RoutingHelper']) ## Register a nested module for the name...
unknown
codeparrot/codeparrot-clean
use super::*; #[test] fn limits() { assert_eq!(Ok(u128::MAX), u128::from_str_radix(&u128::MAX.to_base(36), 36)); assert_eq!(Ok(u64::MAX), u64::from_str_radix(&u64::MAX.to_base(36), 36)); assert_eq!(Ok(u32::MAX), u32::from_str_radix(&u32::MAX.to_base(36), 36)); } #[test] fn test_to_base() { fn test(n: ...
rust
github
https://github.com/rust-lang/rust
compiler/rustc_data_structures/src/base_n/tests.rs
from django.contrib.auth import get_user_model from django.shortcuts import render, redirect from lists.forms import ItemForm, ExistingListItemForm, NewListForm from .models import Item, List User = get_user_model() def home_page(request): return render(request, 'home.html', {'form': ItemForm()}) def view_list(...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # 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 unittest from empty_dir_file_system import EmptyDirFileSystem from host_file_system_provider import HostFileSystemProvider from...
unknown
codeparrot/codeparrot-clean
use crate::spec::{Arch, FloatAbi, PanicStrategy, Target, TargetMetadata, TargetOptions, base}; pub(crate) fn target() -> Target { Target { llvm_target: "thumbv7a-pc-windows-msvc".into(), metadata: TargetMetadata { description: None, tier: Some(3), host_tools: Som...
rust
github
https://github.com/rust-lang/rust
compiler/rustc_target/src/spec/targets/thumbv7a_uwp_windows_msvc.rs
# -*- coding: utf-8 -*- # # Copyright(c) 2014 palmhold.com # # 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 2010-2025 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.analysis.api.renderer.declarations.renderers.callables import org.jetbrains.kotl...
kotlin
github
https://github.com/JetBrains/kotlin
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/renderers/callables/KaFunctionSymbolRenderer.kt
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 2016-2017 Canonical Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # # This program is distributed in ...
unknown
codeparrot/codeparrot-clean
/* * Copyright (c) 1995-1997 Sam Leffler * Copyright (c) 1995-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notices and this permission notice appear...
c
github
https://github.com/opencv/opencv
3rdparty/libtiff/tif_predict.h
# Copyright (C) 2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND NOMIN...
unknown
codeparrot/codeparrot-clean
import { test } from '../../test'; export default test({ async test({ assert, target }) { await new Promise((r) => setTimeout(r, 200)); // wait for await block to resolve const options = target.querySelectorAll('option'); assert.ok(!options[0].selected); assert.ok(options[1].selected); assert.ok(!options[2...
javascript
github
https://github.com/sveltejs/svelte
packages/svelte/tests/runtime-legacy/samples/binding-select-late-4/_config.js
#!/usr/bin/env python """Script runs cactus to compare a bunch of assemblies against a set of two haplotypes and a set of contamination sequences. """ import os import xml.etree.ElementTree as ET import xml import sys from optparse import OptionParser from jobTree.scriptTree.target import Target from jobTree.scriptT...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # -*- coding: latin-1 -*- # 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, or (at your option) any later # version. # # This program is distributed in the hope...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python from __future__ import unicode_literals # Allow direct execution import os import sys import unittest sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import copy from test.helper import FakeYDL, assertRegexpMatches from youtube_dl import YoutubeDL from youtube_d...
unknown
codeparrot/codeparrot-clean
# Copyright 2010-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import division import locale import logging import time from portage import os, _unicode_decode from portage.exception import PortageException from portage.localization import _ from portage.ou...
unknown
codeparrot/codeparrot-clean
## Input ```javascript import { Stringify, mutate, identity, shallowCopy, setPropertyByKey, } from 'shared-runtime'; /** * This fixture is similar to `bug-aliased-capture-aliased-mutate` and * `nonmutating-capture-in-unsplittable-memo-block`, but with a focus on * dependency extraction. * * NOTE: this ...
unknown
github
https://github.com/facebook/react
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/aliased-nested-scope-truncated-dep.expect.md
// Copyright IBM Corp. 2016, 2025 // SPDX-License-Identifier: BUSL-1.1 package observe const ( // --- // Generate Root: ObservationTypePKIGenerateRoot = "pki/root/generate" // --- // Generate Intermediate: ObservationTypePKIGenerateIntermediate = "pki/intermediate/generate" // --- // Issue + Sign // Obs...
go
github
https://github.com/hashicorp/vault
builtin/logical/pki/observe/observation_consts.go
# Copyright 2016 Casey Jaymes # This file is part of PySCAP. # # PySCAP 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. # # PySCAP is ...
unknown
codeparrot/codeparrot-clean
/* * Copyright 2010-2025 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.analysis.api.impl.base.components import com.intellij.openapi.util.registry.Regi...
kotlin
github
https://github.com/JetBrains/kotlin
analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/components/KaBaseIllegalPsiException.kt
#!/usr/bin/env python # # Copyright (C) 2013 Martin Owens # # This library 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.0 of the License, or (at your option) any later version. # #...
unknown
codeparrot/codeparrot-clean
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2013, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progra...
unknown
codeparrot/codeparrot-clean
name: YJIT macOS on: push: branches: - master paths-ignore: - 'doc/**' - '**/man/*' - '**.md' - '**.rdoc' - '**/.document' - '.*.yml' pull_request: types: - opened - synchronize - reopened # Do not use paths-ignore for required status check...
unknown
github
https://github.com/ruby/ruby
.github/workflows/yjit-macos.yml
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2014 True Blade Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Orig...
unknown
codeparrot/codeparrot-clean
import errno import logging import os import shutil import stat import sys from theano import config from theano.gof.cmodule import get_lib_extension from theano.gof.compilelock import get_lock, release_lock from theano.sandbox import cuda from theano.sandbox.cuda import nvcc_compiler from .shared_code import this_di...
unknown
codeparrot/codeparrot-clean
/* Use this file to export your Markdoc tags */ export default {};
typescript
github
https://github.com/vercel/next.js
examples/markdoc/markdoc/tags.ts
from __future__ import print_function from PIL import Image from os.path import join import os import torch.utils.data as data from .utils import download_url, check_integrity, list_dir, list_files class Omniglot(data.Dataset): """`Omniglot <https://github.com/brendenlake/omniglot>`_ Dataset. Args: roo...
unknown
codeparrot/codeparrot-clean
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations from typing import Union, Iterable, Optional from typing_extensions import Literal, Required, TypeAlias, TypedDict from .grader_inputs_param import GraderInputsParam from ..shared.reasoning_effort...
python
github
https://github.com/openai/openai-python
src/openai/types/graders/score_model_grader_param.py
/* * 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-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java
/* Copyright (c) 2014, 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
libservices/rpl_transaction_ctx_service.c
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal, TypeAlias __all__ = ["ChatCompletionRole"] ChatCompletionRole: TypeAlias = Literal["developer", "system", "user", "assistant", "tool", "function"]
python
github
https://github.com/openai/openai-python
src/openai/types/chat/chat_completion_role.py
""" REQUIREMENTS: - install pip with distribute (http://packages.python.org/distribute/) - sudo pip install Fabric """ from fabric.api import local def lang(mode="extract"): """ REQUIREMENTS: - Install before pip with distribute_setup.py (Read the environment setup document) ...
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/cpp/renderers/cpp_config.h
#! /usr/bin/env python2 """ The agent bundle, contains all metric classes and agent running code """ from optparse import OptionParser import base64 import logging import os import glob import re import socket import subprocess import sys import time from threading import Thread import traceback import signal import C...
unknown
codeparrot/codeparrot-clean
from __future__ import print_function from bokeh.util.browser import view from bokeh.document import Document from bokeh.embed import file_html from bokeh.models.glyphs import Patches from bokeh.models import ( Plot, DataRange1d, ColumnDataSource, ResizeTool ) from bokeh.resources import INLINE from bokeh.sampleda...
unknown
codeparrot/codeparrot-clean
# Joint copyright: # - Copyright 2012,2013 Wikimedia Foundation # - Copyright 2012,2013 Antoine "hashar" Musso # - Copyright 2013 Arnaud Fabre # # 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 ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
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 from frappe import _ from frappe.utils import flt, getdate, add_days, formatdate from frappe.model.document import Document from datetime ...
unknown
codeparrot/codeparrot-clean
steps: - label: part-2 command: .ci/scripts/run-gradle.sh -Dignore.tests.seed checkPart2 timeout_in_minutes: 300 agents: provider: gcp image: family/elasticsearch-ubuntu-2404 machineType: custom-32-98304 buildDirectory: /dev/shm/bk
unknown
github
https://github.com/elastic/elasticsearch
.buildkite/pipelines/pull-request/part-2.yml
#!/usr/bin/python # -*- coding: utf-8 -*- ################################################################################ # # Copyright 2015 Crown copyright (c) # Land Information New Zealand and the New Zealand Government. # All rights reserved # # This program is released under the terms of the 3 clause BSD license....
unknown
codeparrot/codeparrot-clean