code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
# ==================================================================== # Copyright (c) 2004-2010 Open Source Applications Foundation. # # 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...
unknown
codeparrot/codeparrot-clean
# Copyright 2010 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
# # Copyright 2012 New Dream Network, LLC (DreamHost) # # 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...
unknown
codeparrot/codeparrot-clean
# coding: utf-8 from __future__ import unicode_literals import re import itertools from .common import InfoExtractor from ..utils import ( get_element_by_id, clean_html, ExtractorError, remove_start, ) class KuwoBaseIE(InfoExtractor): _FORMATS = [ {'format': 'ape', 'ext': 'ape', 'preferen...
unknown
codeparrot/codeparrot-clean
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python3 import argparse, newick3, phylo3, math, os, random, shutil, subprocess, sys, time from dendropy import treesim from io import StringIO results_dir = os.path.expanduser("~/Dropbox/Projects_current/Jackknife_test/data_products") # for mac laptop equal_rates_dir = results_dir + "/equal_rates_mode...
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/admin/CreateDelegationTokenResult.java
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( parse_duration, parse_iso8601, ) class GodTubeIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?godtube\.com/watch/\?v=(?P<id>[\da-zA-Z]+)' _TESTS = [ { 'url': 'https://www...
unknown
codeparrot/codeparrot-clean
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile("{([^\}]+)}") def _tostring(varname, value, explode, operator, safe=""): if type(value) == type([]): if explode == "+": return...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python from __future__ import annotations DOCUMENTATION = """ --- module: test_docs_returns_broken short_description: Test module description: - Test module author: - Ansible Core Team """ EXAMPLES = """ """ RETURN = """ test: description: A test return value. type: str broken_key: [ """ ...
python
github
https://github.com/ansible/ansible
test/integration/targets/ansible-doc/library/test_docs_returns_broken.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import logging import os import re import docutils import docutils.core import docutils.io from docutils.writers.html4css1 import HTMLTranslator import six # import the directives to have pygments support from pelican import rstdirective...
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 applicable ...
unknown
codeparrot/codeparrot-clean
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause %YAML 1.2 --- $id: http://devicetree.org/schemas/mfd/rockchip,rk806.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: RK806 Power Management Integrated Circuit maintainers: - Sebastian Reichel <sebastian.reichel@collabora.com> description: ...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/mfd/rockchip,rk806.yaml
from __future__ import absolute_import from __future__ import division from __future__ import print_function """Ray constants used in the Python code.""" import logging import math import os logger = logging.getLogger(__name__) def env_integer(key, default): if key in os.environ: return int(os.environ[ke...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # # SelfTest/Util/test_winrandom.py: Self-test for the winrandom module # # Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net> # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that d...
unknown
codeparrot/codeparrot-clean
{ "name": "angular-integration", "description": "Assert that users with module: nodenext in their tsconfig can import our packages", "version": "0.0.0", "license": "MIT", "type": "module", "dependencies": { "@angular/animations": "link:./in-existing-linked-by-bazel", "@angular/common": "link:./in-ex...
json
github
https://github.com/angular/angular
integration/nodenext_resolution/package.json
//===-- ObjCMemberwiseInitializerTests.cpp ----------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
cpp
github
https://github.com/llvm/llvm-project
clang-tools-extra/clangd/unittests/tweaks/ObjCMemberwiseInitializerTests.cpp
// mkerrors.sh -m64 // Code generated by the command above; DO NOT EDIT. // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go package syscall const ( AF_APPLETALK = 0x10 AF_BLUETOOTH = 0x20 AF_CCITT = 0xa AF_CHAOS ...
go
github
https://github.com/golang/go
src/syscall/zerrors_openbsd_riscv64.go
# frozen_string_literal: true require "rubygems/dependency" require_relative "shared_helpers" module Bundler class Dependency < Gem::Dependency def initialize(name, version, options = {}, &blk) type = options["type"] || :runtime super(name, version, type) @options = options end def g...
ruby
github
https://github.com/ruby/ruby
lib/bundler/dependency.rb
""" This example demonstrates the proper use of project: lazgui """ import sys import os sys.path.insert(0, os.path.abspath("../../")) # needed to find lazgui development version from lazgui.gui_factory import * Lay = get_layout(layout_type='vstack', Left=41, Height=0, Top=42, Width=0, TopMargin...
unknown
codeparrot/codeparrot-clean
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright &copy; 2018 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + """ Module containing classes that act as pro...
unknown
codeparrot/codeparrot-clean
import x from "./shared"; export default x + " world";
javascript
github
https://github.com/webpack/webpack
test/cases/async-modules/double-import/a.js
from django.template.defaultfilters import linebreaksbr from django.test import SimpleTestCase from django.utils.safestring import mark_safe from ..utils import setup class LinebreaksbrTests(SimpleTestCase): """ The contents in "linebreaksbr" are escaped according to the current autoescape setting. ""...
unknown
codeparrot/codeparrot-clean
# coding=utf-8 # pylint: disable-msg=E1101,W0612 import numpy as np import pandas as pd from pandas import Index, Series from pandas.core.indexes.datetimes import Timestamp from pandas.core.dtypes.common import is_integer import pandas.util.testing as tm from .common import TestData class TestSeriesQuantile(TestDat...
unknown
codeparrot/codeparrot-clean
import json from datetime import datetime from tornado.web import RequestHandler from app import models class InquiryHandler(RequestHandler): pass class AuthHandler(RequestHandler): def get(self): self.write("Hello, world") class RestHandler(RequestHandler): def __init__(self, applicationn, ...
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/test/java/org/springframework/beans/factory/xml/EventPublicationTests.java
import argparse import numpy as np from pele.gui import run_gui from pele.systems import BaseSystem from pele.utils.optim_compatibility import OptimDBConverter desc="""Start a limited functionality pele gui from a PATHSAMPLE database. The following files must be present: min.data, ts.data, points.min, and points.ts....
unknown
codeparrot/codeparrot-clean
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
python
github
https://github.com/apache/airflow
airflow-core/tests/unit/models/test_pool.py
# Natural Language Toolkit: Discourse Processing # # Author: Ewan Klein <ewan@inf.ed.ac.uk> # Dan Garrette <dhgarrette@gmail.com> # # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT """ Module for incrementally developing simple discourses, and checking for semantic ambiguity, consistenc...
unknown
codeparrot/codeparrot-clean
"""HTML utilities suitable for global use.""" from __future__ import unicode_literals import re import warnings from django.utils import six from django.utils.deprecation import RemovedInDjango110Warning from django.utils.encoding import force_str, force_text from django.utils.functional import allow_lazy from djang...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """QGIS Unit tests for QgsFilterLineEdit .. note:: 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. """ ...
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. # # The purpose of this test is to verify that the WebSocket handshake correctly # ignores trailing whitespace on response headers. # It is used by test case ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import BaseHTTPServer import imp import logging import multiprocessing import optparse import os import SimpleHTTPServer # pylint:...
unknown
codeparrot/codeparrot-clean
"""Back-end code to support the Prereg Challenge initiative Keeping the code together in this file should make it easier to remove the features added to the OSF specifically to support this initiative in the future. Other resources that are a part of the Prereg Challenge: * website/static/js/pages/prereg-landing-pag...
unknown
codeparrot/codeparrot-clean
# coding: utf-8 from __future__ import unicode_literals import json from .common import InfoExtractor from ..utils import ( js_to_json, qualities, ) class TassIE(InfoExtractor): _VALID_URL = r'https?://(?:tass\.ru|itar-tass\.com)/[^/]+/(?P<id>\d+)' _TESTS = [ { 'url': 'http://tass...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # # Copyright (C) 2008 Google 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...
unknown
codeparrot/codeparrot-clean
from eyvind.tests import * import re from wsgi_intercept import add_wsgi_intercept, httplib2_intercept import paste class TestApp(TestController): def __init__(self, test): TestController.__init__(self, test) def test_login(self): #assume a user named test, password testy #set up HTT...
unknown
codeparrot/codeparrot-clean
# This is a copy of the Python logging.config.dictconfig module. It is provided # here for backwards compatibility for Python versions prior to 2.7. # # Copyright 2009-2010 by Vinay Sajip. All Rights Reserved. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and ...
unknown
codeparrot/codeparrot-clean
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bridge\Monolog\Processor; use Monolog\LogRecord; use Monolog\Re...
php
github
https://github.com/symfony/symfony
src/Symfony/Bridge/Monolog/Processor/RouteProcessor.php
"""Custom dumper and representers.""" from collections import OrderedDict import yaml from .objects import Input, NodeListClass # mypy: allow-untyped-calls, no-warn-return-any def dump(_dict: dict) -> str: """Dump YAML to a string and remove null.""" return yaml.safe_dump( _dict, default_flow_style=...
unknown
codeparrot/codeparrot-clean
from __future__ import division from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import numpy as np from sklearn.ensemble import RandomForestClassifier from sklearn.calibration import CalibratedClassifierCV from sklearn.metrics import f1_score import...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python """ Output override files for apt-ftparchive and indices/ @contact: Debian FTP Master <ftpmaster@debian.org> @copyright: 2000, 2001, 2002, 2004, 2006 James Troup <james@nocrew.org> @license: GNU General Public License version 2 or later """ # This program is free software; you can redistribute ...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2016 Synology Co., 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 re...
unknown
codeparrot/codeparrot-clean
/* crc32.h -- crc32 folding interface * Copyright (C) 2021 Nathan Moinvaziri * For conditions of distribution and use, see copyright notice in zlib.h */ #ifndef CRC32_H_ #define CRC32_H_ #define CRC32_FOLD_BUFFER_SIZE (16 * 4) /* sizeof(__m128i) * (4 folds) */ typedef struct crc32_fold_s { uint8_t fold[CRC32_F...
c
github
https://github.com/opencv/opencv
3rdparty/zlib-ng/crc32.h
//! An UDP echo server that just sends back everything that it receives. //! //! If you're on Unix you can test this out by in one terminal executing: //! //! cargo run --example echo-udp //! //! and in another terminal you can run: //! //! cargo run --example connect-udp 127.0.0.1:8080 //! //! Each line you ty...
rust
github
https://github.com/tokio-rs/tokio
examples/echo-udp.rs
#!/usr/bin/env python # # Copyright 2010 Google 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 o...
unknown
codeparrot/codeparrot-clean
{ "name": "toml-loader", "main": "index.js", "exports": { ".": { "loader": "./loader.js" } } }
json
github
https://github.com/webpack/webpack
test/cases/entry-exports-field/loader/node_modules/toml-parser/package.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 n...
java
github
https://github.com/apache/kafka
clients/src/main/java/org/apache/kafka/clients/MetadataRecoveryStrategy.java
from __future__ import annotations import numbers from typing import ( TYPE_CHECKING, Any, Self, ) import numpy as np from pandas._config import is_nan_na from pandas._libs import ( lib, missing as libmissing, ) from pandas.errors import AbstractMethodError from pandas.util._decorators import ca...
python
github
https://github.com/pandas-dev/pandas
pandas/core/arrays/numeric.py
class myIntSynthProvider(object): def __init__(self, valobj, dict): self.valobj = valobj self.val = self.valobj.GetChildMemberWithName("theValue") def num_children(self): return 0 def get_child_at_index(self, index): return None def get_child_index(self, name): ...
unknown
codeparrot/codeparrot-clean
import os import cv2 from PIL import Image import numpy as np def listdir_no_hidden(path): list1 = [] for f in os.listdir(path): if not f.startswith('.'): list1.append(f) return list1 if __name__ == '__main__': picture = np.array([]) picture1 = np.array([]) path = '../info...
unknown
codeparrot/codeparrot-clean
from django.core.urlresolvers import reverse from vaultier.test.tools import VaultierAPIClient def create_secret_blob_api_call(token, **kwargs): url = reverse('secret_blob-list') client = VaultierAPIClient() client.token(token) response = client.post(url, kwargs) return response def delete_secret...
unknown
codeparrot/codeparrot-clean
import { BaseTransition, type BaseTransitionProps, KeepAlive, type TestElement, type VNodeProps, h, nextTick, nodeOps, ref, render, serialize, serializeInner, } from '@vue/runtime-test' function mount( props: BaseTransitionProps<TestElement>, slot: () => any, withKeepAlive = false, ) { ...
typescript
github
https://github.com/vuejs/core
packages/runtime-core/__tests__/components/BaseTransition.spec.ts
# -*- 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 o...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf8 -*- # Copyright (C) 2016 - Philipp Temminghoff <phil65@kodi.tv> # This program is Free Software see LICENSE file for details import xbmcaddon import xbmc import os import xbmcgui import base64 import uuid import hashlib HOME = xbmcgui.Window(10000) class Addon(object): def __init__(self, *arg...
unknown
codeparrot/codeparrot-clean
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any lat...
unknown
codeparrot/codeparrot-clean
""" Given an array with positive and negative integers. Re-range it to interleaving with positive and negative integers. Have you met this question in a real interview? Yes Example Given [-1, -2, -3, 4, 5, 6], after re-range, it will be [-1, 5, -2, 4, -3, 6] or any other reasonable answer. Note You are not necessary ...
unknown
codeparrot/codeparrot-clean
// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: BUSL-1.1 package e2etest import ( "path/filepath" "testing" "github.com/hashicorp/terraform/internal/e2e" ) func TestTerraformProviderRead(t *testing.T) { // Ensure the terraform provider can correctly read a remote state t.Parallel() fixturePath :...
go
github
https://github.com/hashicorp/terraform
internal/command/e2etest/remote_state_test.go
import unittest import pika class ParameterTests(unittest.TestCase): def test_parameters_accepts_plain_string_virtualhost(self): parameters = pika.ConnectionParameters(virtual_host="prtfqpeo") self.assertEqual(parameters.virtual_host, "prtfqpeo") def test_parameters_accepts_plain_string_virtu...
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
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package runtime import ( "internal/runtime/atomic" "internal/runtime/gc" "internal/runtime/sys" "unsafe" ) // Per-thread (in Go, per-P) cache for small ob...
go
github
https://github.com/golang/go
src/runtime/mcache.go
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import app_data.fields import aldryn_apphooks_config.fields class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Entry', ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # Copyright (C) 2013 # by Klemens Fritzsche, pyplane@leckstrom.de # # 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 # ...
unknown
codeparrot/codeparrot-clean
# # Example: Find the floquet modes and quasi energies for a driven system and # plot the floquet states/quasienergies for one period of the driving. # from qutip import * from pylab import * import time def hamiltonian_t(t, args): """ evaluate the hamiltonian at time t. """ H0 = args[0] H1 = args[1] w...
unknown
codeparrot/codeparrot-clean
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Image Closing Example</title> <link href="js_example_style.css" rel="stylesheet" type="text/css" /> </head> <body> <h2>Image Closing Example</h2> <p> &lt;canvas&gt; elements named <b>canvasInput</b> and <b>canvasOutput</b> have been prepared.<br> Click...
html
github
https://github.com/opencv/opencv
doc/js_tutorials/js_assets/js_morphological_ops_closing.html
import tornado.escape import tornado.web import zmq import pymongo import bson.json_util as json_util import sockjs.tornado from panoptes.utils import logger, database @logger.has_logger class MessagingConnection(sockjs.tornado.SockJSConnection): """ Handler for the messaging connection. This is the conne...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2019, Kevin Breit (@kbreit) <kevin.breit@kevinbreit.net> # 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 = { ...
unknown
codeparrot/codeparrot-clean
from django.http import HttpResponse, HttpResponseForbidden from django.template import loader, RequestContext import encryption import decimal from bitcp2.models import Coupon, Beneficiary from django.shortcuts import render from django.views.decorators.csrf import csrf_exempt @csrf_exempt def cashIn(request): if...
unknown
codeparrot/codeparrot-clean
import logging import modulemap import paths import singlescore_handler logging.info ( "LOADING: multiscore_handler" ) def update_hi ( req ): # how many slots in the table? n = modulemap.gamemap [ req [ 'gamename' ] ][ 'module' ].get_table_slots ( req ) # keep a copy of bindata since get_hi is destruct...
unknown
codeparrot/codeparrot-clean
<?php declare(strict_types=1); /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Test\Ad...
php
github
https://github.com/composer/composer
tests/Composer/Test/Advisory/AuditConfigTest.php
/* Copyright 2022 - 2025 R. Thomas * * 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...
unknown
github
https://github.com/nodejs/node
deps/LIEF/include/LIEF/DWARF/types/Volatile.hpp
import click from os import cpu_count, environ, execvp from sys import prefix from .app import create_app @click.group() def cli(): pass @cli.command() def run_uwsgi(): """ Run API through uwsgi server. """ # avoid fork problems with tensorflow (and other non-serializable objects) environ['U...
unknown
codeparrot/codeparrot-clean
name: "Support Requests" on: issues: types: [labeled, unlabeled, reopened] permissions: issues: write jobs: action: runs-on: ubuntu-latest steps: - uses: dessant/support-requests@v4 with: issue-comment: > :wave: @{issue-author}, we use the issue tracker exclusive...
unknown
github
https://github.com/remix-run/react-router
.github/workflows/support.yml
package buildbackend import ( "io" ocispec "github.com/opencontainers/image-spec/specs-go/v1" "github.com/moby/moby/api/types/build" "github.com/moby/moby/api/types/container" "github.com/moby/moby/api/types/registry" "github.com/moby/moby/v2/daemon/internal/filters" ) type DiskUsageOptions struct { Verbose ...
go
github
https://github.com/moby/moby
daemon/server/buildbackend/build.go
from __future__ import absolute_import import errno import logging import sys import warnings from socket import error as SocketError, timeout as SocketTimeout import socket from .exceptions import ( ClosedPoolError, ProtocolError, EmptyPoolError, HeaderParsingError, HostChangedError, Location...
unknown
codeparrot/codeparrot-clean
from __future__ import absolute_import from datetime import datetime from django.contrib.gis.tests.utils import no_mysql, no_spatialite from django.contrib.gis.shortcuts import render_to_kmz from django.db.models import Count from django.test import TestCase from .models import City, PennsylvaniaCity, State, Truth ...
unknown
codeparrot/codeparrot-clean
#### Note: this error code is no longer emitted by the compiler. An attempt was made to access an associated constant through either a generic type parameter or `Self`. This is not supported yet. An example causing this error is shown below: ``` trait Foo { const BAR: f64; } struct MyStruct; impl Foo for MyStru...
unknown
github
https://github.com/rust-lang/rust
compiler/rustc_error_codes/src/error_codes/E0329.md
# -*- coding: utf-8 -*- import logging from dplace_app.models import Language, LanguageFamily, Society def load_languages(repos): languoids = { l.id: l for l in repos.read_csv('csv', 'glottolog.csv', namedtuples=True)} families, languages = {}, {} societies = {s.ext_id: s for s in Society.objects....
unknown
codeparrot/codeparrot-clean
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
unknown
codeparrot/codeparrot-clean
## This file is part of Invenio. ## Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 CERN. ## ## Invenio 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, ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ Base classes for writing management commands (named commands which can be executed through ``django-admin`` or ``manage.py``). """ from __future__ import unicode_literals import os import sys from argparse import ArgumentParser import django from django.core import checks from django.core....
unknown
codeparrot/codeparrot-clean
import logging import json from django.test.client import Client, RequestFactory from django.contrib.auth.models import User from django.core.management import call_command from django.core.urlresolvers import reverse from mock import patch, ANY, Mock from nose.tools import assert_true, assert_equal # pylint: disable...
unknown
codeparrot/codeparrot-clean
{ "private": true }
json
github
https://github.com/vercel/next.js
examples/with-zones/package.json
# -*- coding: utf-8 -*- """The app module, containing the app factory function.""" from flask import Flask, render_template from temp_app import commands, public, user from temp_app.extensions import bcrypt, cache, csrf_protect, db, debug_toolbar, login_manager, migrate, webpack from temp_app.settings import ProdConfi...
unknown
codeparrot/codeparrot-clean
// Copyright IBM Corp. 2016, 2025 // SPDX-License-Identifier: BUSL-1.1 package agent import ( "context" "encoding/json" "fmt" "os" "testing" "time" "github.com/hashicorp/go-hclog" vaultjwt "github.com/hashicorp/vault-plugin-auth-jwt" "github.com/hashicorp/vault/api" "github.com/hashicorp/vault/command/agen...
go
github
https://github.com/hashicorp/vault
command/agent/jwt_end_to_end_test.go
<section> <header (click)="visible = !visible">{{ title() }}</header> <div [hidden]="!visible"> <ng-content> </ng-content> </div> </section>
html
github
https://github.com/angular/angular
devtools/src/app/demo-app/zippy.component.html
# -*- coding: utf-8 -*- """ pygments.formatters.svg ~~~~~~~~~~~~~~~~~~~~~~~ Formatter for SVG output. :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.formatter import Formatter from pygments.util import get_bool_opt, get...
unknown
codeparrot/codeparrot-clean
groups: - name: yolo rules: - record: yolo expr: rate(hi)
unknown
github
https://github.com/prometheus/prometheus
model/rulefmt/testdata/bad_expr.bad.yaml
# Copyright 2014, 2015 SAP SE. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: //www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, #...
unknown
codeparrot/codeparrot-clean
import { type CompilerOptions, type ElementNode, type ForNode, NodeTypes, generate, isWhitespaceText, baseParse as parse, transform, } from '../../src' import { transformFor } from '../../src/transforms/vFor' import { transformText } from '../../src/transforms/transformText' import { transformExpression...
typescript
github
https://github.com/vuejs/core
packages/compiler-core/__tests__/transforms/transformText.spec.ts
# -*- coding: utf-8 -*- from django.contrib.auth.models import Permission from rest_framework import status from rest_framework.reverse import reverse from rest_framework.test import APITestCase from .... import factories, models class StudentApiTests(APITestCase): def test_retrieve_unauthenticated(self): ...
unknown
codeparrot/codeparrot-clean
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection; use Symfony\Component\Dependency...
php
github
https://github.com/symfony/symfony
src/Symfony/Component/DependencyInjection/ExpressionLanguageProvider.php
from __future__ import division, absolute_import, print_function import re import itertools def isBlank(line): return not line def isLabel(line): return line[0].isdigit() def isComment(line): return line[0] != ' ' def isContinuation(line): return line[5] != ' ' COMMENT, STATEMENT, CONTINUATION = 0, 1...
unknown
codeparrot/codeparrot-clean
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import Epsilla # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional imports. D...
python
github
https://github.com/langchain-ai/langchain
libs/langchain/langchain_classic/vectorstores/epsilla.py
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019 Fortinet, Inc. # # 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 Lic...
unknown
codeparrot/codeparrot-clean
# -*- coding:Utf8 -*- ##################################### # Bombardement d'une cible mobile # # (C) G. Swinnen - Avril 2004 - GPL # ##################################### from tkinter import * from math import sin, cos, pi from random import randrange from threading import Thread class Canon: """Petit canon g...
unknown
codeparrot/codeparrot-clean
//go:build !linux /* 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 applicable law or agr...
go
github
https://github.com/kubernetes/kubernetes
pkg/kubelet/cadvisor/helpers_unsupported.go
# Copyright 2012 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
unknown
codeparrot/codeparrot-clean
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT // taken from https://github.com/rust-lang/cargo/blob/b0c9586f4cbf426914df47c65de38ea323772c74/src/cargo/util/flock.rs #![allow(dead_code)] use std::fs::{create_dir_all, File, O...
rust
github
https://github.com/tauri-apps/tauri
crates/tauri-cli/src/helpers/flock.rs
#!/usr/bin/env python # ***** BEGIN LICENSE BLOCK ***** # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** import copy import os import re ...
unknown
codeparrot/codeparrot-clean