code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
# Copyright (C) 2016 ycmd contributors. # # This file is part of ycmd. # # ycmd 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. # # yc...
unknown
codeparrot/codeparrot-clean
import collections from supriya import CalculationRate from supriya.ugens.UGen import UGen class MaxLocalBufs(UGen): """ Sets the maximum number of local buffers in a synth. Used internally by LocalBuf. :: >>> max_local_bufs = supriya.ugens.MaxLocalBufs(1) >>> max_local_bufs ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python import os import sys from setuptools import setup ROOT_DIR = os.path.dirname(__file__) SOURCE_DIR = os.path.join(ROOT_DIR) requirements = [ 'requests >= 2.5.2, < 2.11', 'six >= 1.4.0', 'websocket-client >= 0.32.0', ] if sys.platform == 'win32': requirements.append('pypiwin32 >=...
unknown
codeparrot/codeparrot-clean
// Copyright IBM Corp. 2016, 2025 // SPDX-License-Identifier: BUSL-1.1 package certhelpers import ( "bytes" "crypto" "crypto/rand" "crypto/rsa" "crypto/sha1" "crypto/tls" "crypto/x509" "crypto/x509/pkix" "encoding/pem" "math/big" "net" "strings" "testing" "time" "github.com/hashicorp/vault/sdk/helper/...
go
github
https://github.com/hashicorp/vault
helper/testhelpers/certhelpers/cert_helpers.go
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2013, berenddeboer # Written by berenddeboer <berend@pobox.com> # Based on pkgng module written by bleader <bleader at ratonland.org> # # This module is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publish...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ tests.conftest ~~~~~~~~~~~~~~ :copyright: (c) 2015 by the Flask Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import flask import os import sys import pkgutil import pytest import textwrap @pytest.fixture def test_apps(monkeypatch): ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python3 import importlib import inspect import logging import sys import synapseclient try: from synapseclient.core.exceptions import SynapseHTTPError except ModuleNotFoundError: from synapseclient.exceptions import SynapseHTTPError from . import config from . import example_filetype_format fro...
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 applica...
python
github
https://github.com/tensorflow/tensorflow
tensorflow/lite/ios/extract_object_files.py
# coding=utf-8 # Author: Nic Wolfe <nic@wolfeden.ca> # URL: http://code.google.com/p/sickbeard/ # # This file is part of SickRage. # # SickRage is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3...
unknown
codeparrot/codeparrot-clean
import sys import unicodedata from collections import defaultdict def is_lval(t): """Does not chceck whether t is not resticted or internal""" if not t: return False i = iter(t) if i.next() not in IDENTIFIER_START: return False return all(e in IDENTIFIER_PART for e in i) def is_val...
unknown
codeparrot/codeparrot-clean
from sauna.plugins import Plugin, human_to_bytes, bytes_to_human,\ PluginRegister my_plugin = PluginRegister('Redis') @my_plugin.plugin() class Redis(Plugin): def __init__(self, config): super().__init__(config) try: import redis self.redis = redis except Impor...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python """ ================ sMRI: FreeSurfer ================ This script, smri_freesurfer.py, demonstrates the ability to call reconall on a set of subjects and then make an average subject. python smri_freesurfer.py Import necessary modules from nipype. """ import os import nipype.pipeline.eng...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- #------------------------------------------------------------ # tvalacarta - XBMC Plugin # Fútbol Para Todos # http://blog.tvalacarta.info/plugin-xbmc/tvalacarta/ # # Autor: Juan Pablo Candioti (@JPCandioti) # Desarrollo basado sobre otros canales de tvalacarta #---------------------------------...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2017, Ansible by Red Hat, inc # # This file is part of Ansible by Red Hat # # 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 Li...
unknown
codeparrot/codeparrot-clean
/* * Copyright (C) 2009 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/util/concurrent/SettableFutureTest.java
pmasterData = """#Cloud-config write_files: - path: '/tmp/puppet_server.sh' owner: root:root permission: '0755' content: | #!/usr/bin/bash PUPPET_BASE="/opt/puppetlabs" PUPPET_HIERA_FILE="/etc/puppetlabs/puppet/hiera.yaml" PUPPET_CONF="/etc/puppetlabs/puppet/puppet.conf" RED=`tp...
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
from os.path import join from datetime import datetime import alabaster # Alabaster theme + mini-extension html_theme_path = [alabaster.get_path()] extensions = ['alabaster'] # Paths relative to invoking conf.py - not this shared file html_static_path = [join('..', '_shared_static')] html_theme = 'alabaster' html_the...
unknown
codeparrot/codeparrot-clean
# Default Solver Policy A solver policy defines behaviour variables of the dependency solver. It decides which versions are considered newer than others, which packages should be preferred over others and whether operations like downgrades or uninstall are allowed. ## Selection of preferred Packages The following de...
unknown
github
https://github.com/composer/composer
doc/dev/DefaultPolicy.md
// Utilities $utilities: () !default; // stylelint-disable-next-line scss/dollar-variable-default $utilities: map-merge( ( // scss-docs-start utils-vertical-align "align": ( property: vertical-align, class: align, values: baseline top middle bottom text-bottom text-top ), // scss-do...
unknown
github
https://github.com/twbs/bootstrap
scss/_utilities.scss
// Error handling definitions #ifndef Py_ERRORS_H #define Py_ERRORS_H #ifdef __cplusplus extern "C" { #endif PyAPI_FUNC(void) PyErr_SetNone(PyObject *); PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *); PyAPI_FUNC(void) PyErr_SetString( PyObject *exception, const char *string /* decoded from utf-8 *...
c
github
https://github.com/python/cpython
Include/pyerrors.h
""" Tick locating and formatting ============================ This module contains classes to support completely configurable tick locating and formatting. Although the locators know nothing about major or minor ticks, they are used by the Axis class to support major and minor tick locating and formatting. Generic t...
unknown
codeparrot/codeparrot-clean
import bisect from _pydevd_bundle.pydevd_constants import dict_items, NULL, KeyifyList import pydevd_file_utils class SourceMappingEntry(object): __slots__ = ['source_filename', 'line', 'end_line', 'runtime_line', 'runtime_source'] def __init__(self, line, end_line, runtime_line, runtime_source): ass...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ S3 Synchronization: Peer Repository Adapter for ADASHI @copyright: 2011-14 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python from component import Component from numpy import * import string class turbulence(Component): """ Interface to atmospheric vertical diffusion and PBL schemes. * Instantiation: x=climt.turbulence( <args> ) where <args> are the following OPTIONAL arguments: Name ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # # Use the raw transactions API to spend EGIs received on particular addresses, # and send any change back to that same address. # # Example usage: # spendfrom.py # Lists available funds # spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00 # # Assumes it will talk to a energid or Energi-Q...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- ''' Exodus Add-on Copyright (C) 2016 Exodus 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 l...
unknown
codeparrot/codeparrot-clean
#pragma once #include <functional> namespace c10 { class RegistrationHandleRAII final { public: explicit RegistrationHandleRAII(std::function<void()> onDestruction) : onDestruction_(std::move(onDestruction)) {} ~RegistrationHandleRAII() { if (onDestruction_) { onDestruction_(); } } Reg...
c
github
https://github.com/pytorch/pytorch
aten/src/ATen/core/dispatch/RegistrationHandleRAII.h
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='SimpleModelMixin', fields=[ ...
unknown
codeparrot/codeparrot-clean
import os import sys import urllib.parse try: from fuzzywuzzy import fuzz except ImportError: print('[*] fuzzywuzzy not found.') print('[*] Please run the script in the setup directory!') sys.exit() def process_group( data, group, toc, toc_table, page_num, section, sectionid, html): ...
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 # ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jul 18 16:55:14 2017 @author: ajaver Get food contour using a pre-trained neural network """ import tables import os import numpy as np import cv2 from skimage.morphology import disk from tierpsy import AUX_FILES_DIR RESIZING_SIZE = 512 #the networ...
unknown
codeparrot/codeparrot-clean
/*------------------------------------------------------------------------- * * memdebug.c * Declarations used in memory context implementations, not part of the * public API of the memory management subsystem. * * * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group * Portions Copyright ...
c
github
https://github.com/postgres/postgres
src/backend/utils/mmgr/memdebug.c
from pokemongo_bot.human_behaviour import sleep from pokemongo_bot.cell_workers.base_task import BaseTask class IncubateEggs(BaseTask): last_km_walked = 0 def initialize(self): self.ready_incubators = [] self.used_incubators = [] self.eggs = [] self.km_walked = 0 self.h...
unknown
codeparrot/codeparrot-clean
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause # Copyright (C) 2021 GE Inc. # Copyright (C) 2021 Collabora Ltd. %YAML 1.2 --- $id: http://devicetree.org/schemas/misc/ge-achc.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: GE Healthcare USB Management Controller description: | A device which ...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/misc/ge-achc.yaml
#!/usr/bin/env python2 """ from https://gist.github.com/jtriley/1108174 """ import os import shlex import struct import platform import subprocess def get_terminal_size(): """ getTerminalSize() - get width and height of console - works on linux,os x,windows,cygwin(windows) originally retrieved from...
unknown
codeparrot/codeparrot-clean
import math from Tkinter import Tk, Canvas from .manager import Manager class Hitbox(object): def __init__(self, top_right, top_left, bottom_right, bottom_left, sprite): self.root = Manager.canvas self.canvas = Manager.canvas self.sprite = sprite self.base_top_right_x = top_right[0...
unknown
codeparrot/codeparrot-clean
from django.utils.html import escape from django.utils.encoding import smart_unicode, StrAndUnicode, force_unicode from django.utils.functional import Promise from django.utils.safestring import mark_safe def flatatt(attrs): """ Convert a dictionary of attributes to a single string. The returned string wil...
unknown
codeparrot/codeparrot-clean
# Copyright 2020 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
python
github
https://github.com/huggingface/transformers
src/transformers/tokenization_utils_sentencepiece.py
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from __future__ import annotations import httpx from .. import _legacy_response from .._types import Body, Query, Headers, NotGiven, not_given from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIR...
python
github
https://github.com/openai/openai-python
src/openai/resources/models.py
# -*- coding: utf-8 -*- """ pygments.lexers.modeling ~~~~~~~~~~~~~~~~~~~~~~~~ Lexers for modeling languages. :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import RegexLexer, include, bygroups, using, d...
unknown
codeparrot/codeparrot-clean
/*! * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {ApiItemType} from './api-item-type'; export interface ApiManifestEntry { name: string; aliases?: string...
typescript
github
https://github.com/angular/angular
adev/src/app/features/references/interfaces/api-manifest.ts
## Input ```javascript function Component(props) { let x = null; if (props.cond) { x = React.useNonexistentHook(); } return x; } ``` ## Error ``` Found 1 error: Error: Hooks must always be called in a consistent order, and may not be called conditionally. See the Rules of Hooks (https://react.dev/warni...
unknown
github
https://github.com/facebook/react
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.conditional-hook-unknown-hook-react-namespace.expect.md
import pytest import unittest boto3 = pytest.importorskip("boto3") botocore = pytest.importorskip("botocore") import ansible.modules.cloud.amazon.kinesis_stream as kinesis_stream aws_region = 'us-west-2' class AnsibleKinesisStreamFunctions(unittest.TestCase): def test_convert_to_lower(self): example = ...
unknown
codeparrot/codeparrot-clean
import unittest from xmodule import templates from xmodule.modulestore import ModuleStoreEnum from xmodule.modulestore.tests.factories import CourseFactory, ItemFactory from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase, TEST_DATA_SPLIT_MODULESTORE from xmodule.course_module import CourseDescriptor...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # 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/. from collections import OrderedDict from mock import Mock from bedrock.mozorg import credits fr...
unknown
codeparrot/codeparrot-clean
/*------------------------------------------------------------------------- * * sysattr.h * POSTGRES system attribute definitions. * * * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * src/include/access/sysattr....
c
github
https://github.com/postgres/postgres
src/include/access/sysattr.h
# -*- coding: utf-8 -*- """ *************************************************************************** ParameterVector.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com ***********************...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python """ Script to obtain version of Python modules and basic information on the experiment setup (e.g. cpu, os), e.g. * numpy: 1.6.1 | pylearn: a6e634b83d | pylearn2: 57a156beb0 * CPU: x86_64 * OS: Linux-2.6.35.14-106.fc14.x86_64-x86_64-with-fedora-14-Laughlin You can also define the modules to be t...
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.auth.providers import io.ktor.client.* import io.ktor.client.plugins.auth.* import io.ktor.client.request.* import io.ktor.client.statement.* import io.ktor.htt...
kotlin
github
https://github.com/ktorio/ktor
ktor-client/ktor-client-plugins/ktor-client-auth/common/src/io/ktor/client/plugins/auth/providers/BearerAuthProvider.kt
# encoding: UTF-8 """Library for IMPACT related lattice/model function.""" from __future__ import print_function __copyright__ = "Copyright (c) 2015, Facility for Rare Isotope Beams" __author__ = "Dylan Maxwell" import os.path, logging, shutil import numpy as np from phantasy.library.exception import DataError ...
unknown
codeparrot/codeparrot-clean
# Copyright (C) 2006, 2007, 2009-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 ...
unknown
codeparrot/codeparrot-clean
from __future__ import absolute_import import logging from rest_framework import serializers, status from rest_framework.response import Response from sentry.api.base import DocSection from sentry.api.bases.team import TeamEndpoint from sentry.api.decorators import sudo_required from sentry.api.serializers import se...
unknown
codeparrot/codeparrot-clean
// Copyright 2022 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
client/pkg/verify/verify.go
{ "kind": "Dashboard", "apiVersion": "dashboard.grafana.app/v1beta1", "metadata": { "name": "v0alpha1.link-onclick-extensions.v42" }, "spec": { "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --"...
json
github
https://github.com/grafana/grafana
apps/dashboard/pkg/migration/conversion/testdata/output/migrated_dev_dashboards/extensions/v0alpha1.link-onclick-extensions.v42.v1beta1.json
from __future__ import unicode_literals from django.core.urlresolvers import NoReverseMatch from django.contrib.auth.views import logout from django.utils.unittest import TestCase from django.shortcuts import resolve_url from .models import UnimportantThing class ResolveUrlTests(TestCase): """ Tests for the ...
unknown
codeparrot/codeparrot-clean
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: POGOProtos/Settings/Master/TypeEffectiveSettings.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from go...
unknown
codeparrot/codeparrot-clean
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
unknown
codeparrot/codeparrot-clean
#! /bin/env python # -*- coding: utf-8 -*- import sys import argparse from harvester.couchdb_init import get_couchdb from harvester.couchdb_sync_db_by_collection import delete_id_list from harvester.post_processing.couchdb_runner import CouchDBCollectionFilter def confirm_deletion(count, objChecksum, cid): prompt...
unknown
codeparrot/codeparrot-clean
# test_run.py -- Tests for selftest.target.samba # Copyright (C) 2012 Jelmer Vernooij <jelmer@samba.org> # # 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 # of the License or (at your ...
unknown
codeparrot/codeparrot-clean
<!--Copyright 2023 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/zh/internal/audio_utils.md
/* * 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.fe10.test.cases.generated.cases.restrictedAnalysis; import com.inte...
java
github
https://github.com/JetBrains/kotlin
analysis/analysis-api-fe10/tests-gen/org/jetbrains/kotlin/analysis/api/fe10/test/cases/generated/cases/restrictedAnalysis/Fe10IdeNormalAnalysisSourceModuleRestrictedAnalysisExceptionWrappingTestGenerated.java
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" {{ $attributes }}> <path d="M2.75 2.75H5.614L5.316 2.114C5.069 1.587 4.54 1.25 3.958 1.25H2.25C1.422 1.25 0.75 1.922 0.75 2.75V4.75C0.75 3.645 1.645 2.75 2.75 2.75Z" /> <path d="M0.75 4.75V2.75C0.75 1.922 1.422 1.25 2...
php
github
https://github.com/laravel/framework
src/Illuminate/Foundation/resources/exceptions/renderer/components/icons/folder.blade.php
package main import ( "context" "os/exec" "strings" "testing" "github.com/moby/moby/v2/integration-cli/daemon" testdaemon "github.com/moby/moby/v2/internal/testutil/daemon" "gotest.tools/v3/assert" ) // DockerHubPullSuite provides an isolated daemon that doesn't have all the // images that are baked into our ...
go
github
https://github.com/moby/moby
integration-cli/docker_hub_pull_suite_test.go
#!/usr/bin/python # Copyright (c) 2018 Red Hat, Inc. # 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', 'status': ['preview...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python ''' Extract _("...") strings for translation and convert to Qt4 stringdefs so that they can be picked up by Qt linguist. ''' from subprocess import Popen, PIPE import glob import operator import os OUT_CPP="src/qt/SaveCoinstrings.cpp" EMPTY=['""'] def parse_po(text): """ Parse 'po' format pr...
unknown
codeparrot/codeparrot-clean
#-*- coding: utf-8 -*- import features from model import NeuralNetworkModel, SVMModel, RandomModel, MaximumModel, FannModel import datetime # from helpers import normalize try: from Summarizer.helpers import normalize except ImportError: from helpers import normalize try: from Summarizer.models import Si...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ Created on Wed Jan 25 23:15:01 2017 @author: Donzok """ import configparser import uuid from .iitc import * from .login import login_if_necessary from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditio...
unknown
codeparrot/codeparrot-clean
from pypers.core.step import Step import os class A6(Step): spec = { "version": "2015.06.25", "descr": [ """ Runs the A6 or A5 assembly pipeline for a single interleaved illumina fastq file, or paired read fastq files A6 is describes as a Modified A5 microbial as...
unknown
codeparrot/codeparrot-clean
# Copyright 2000-2004 Michael Hudson-Doyle <micahel@gmail.com> # # All Rights Reserved # # # Permission to use, copy, modify, and distribute this software and # its documentation for any purpose is hereby granted without fee, # provided that the above copyright notice appear in all copies and #...
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 #ifndef __PRECOMP_IPP_HPP__ #define __PRECOMP_IPP_HPP__ #include <opencv2/imgproc.hpp> #ifdef HAVE_IPP_IW #include "iw++/iw....
unknown
github
https://github.com/opencv/opencv
hal/ipp/src/precomp_ipp.hpp
#! /usr/bin/env python # -*- coding: utf-8 -*- # =========================================================================== # Copyright (c) 2011-2012 Barend Gehrels, Amsterdam, the Netherlands. # Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland. # # Use, modification and distribution is subject to the Boost So...
unknown
codeparrot/codeparrot-clean
- speaker: Ben Balter twitter_handle: BenBalter youtube_id: Z-37y1qaoxc topic: GitHub Pages behind the scenes year: 2015 - speaker: Brandon Mathis twitter_handle: imathis youtube_id: KS6e4XxY2H4 topic: What the heck is Octopress and why should I care? year: 2015 - speaker: Brian Rinaldi twitter_hand...
unknown
github
https://github.com/jekyll/jekyll
docs/_data/jekyllconf-talks.yml
from django.contrib.gis.db import models class WorldBorder(models.Model): # Regular Django fields corresponding to the attributes in the # world borders shapefile. name = models.CharField(max_length=50, unique=True) area = models.IntegerField() pop2005 = models.IntegerField('Population 2005') f...
unknown
codeparrot/codeparrot-clean
# Copyright 2014 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 agr...
unknown
codeparrot/codeparrot-clean
# flake8: noqa # pylint: skip-file class YeditException(Exception): ''' Exception class for Yedit ''' pass # pylint: disable=too-many-public-methods class Yedit(object): ''' Class to modify yaml files ''' re_valid_key = r"(((\[-?\d+\])|([0-9a-zA-Z%s/_-]+)).?)+$" re_key = r"(?:\[(-?\d+)\])|([0-9a-z...
unknown
codeparrot/codeparrot-clean
from __future__ import unicode_literals from datetime import date from django.test import ignore_warnings, override_settings from django.utils.deprecation import RemovedInDjango110Warning from .base import SitemapTestsBase @override_settings(ROOT_URLCONF='sitemaps_tests.urls.https') class HTTPSSitemapTests(SitemapT...
unknown
codeparrot/codeparrot-clean
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/native/ReduceAllOps.h> #include <ATen/native/Resize.h> #include <ATen/core/Tensor.h> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/NativeFunctions.h> #else #include <ATen/ops/_aminmax_native.h> #include <ATen/ops/aminmax.h> #includ...
cpp
github
https://github.com/pytorch/pytorch
aten/src/ATen/native/ReduceAllOps.cpp
from ..utils import appid, have_appserver from google.appengine.ext.testbed import Testbed from urllib2 import HTTPError, URLError import logging import time REMOTE_API_SCRIPTS = ( '$PYTHON_LIB/google/appengine/ext/remote_api/handler.py', 'google.appengine.ext.remote_api.handler.application', ) def auth_func(...
unknown
codeparrot/codeparrot-clean
// 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 sa4009 import ( util "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes...
go
github
https://github.com/cockroachdb/cockroach
build/bazelutil/staticcheckanalyzers/sa4009/analyzer.go
"""SCons.Scanner.Fortran This module implements the dependency scanner for Fortran code. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentati...
unknown
codeparrot/codeparrot-clean
import _surface import chimera try: import chimera.runCommand except: pass from VolumePath import markerset as ms try: from VolumePath import Marker_Set, Link new_marker_set=Marker_Set except: from VolumePath import volume_path_dialog d= volume_path_dialog(True) new_marker_set= d.new_marker_set marker_set...
unknown
codeparrot/codeparrot-clean
from enigma import iPlayableService from Source import Source from Components.PerServiceDisplay import PerServiceBase class FrontendInfo(Source, PerServiceBase): def __init__(self, service_source = None, frontend_source = None, navcore = None): self.navcore = None Source.__init__(self) if navcore: PerService...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ *************************************************************************** ModelerAlgorithmProvider.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com **************...
unknown
codeparrot/codeparrot-clean
/** * AspectJ integration package. Includes Spring AOP advice implementations for AspectJ 5 * annotation-style methods, and an AspectJExpressionPointcut: a Spring AOP Pointcut * implementation that allows use of the AspectJ pointcut expression language with the Spring AOP * runtime framework. * * <p>Note that use...
java
github
https://github.com/spring-projects/spring-framework
spring-aop/src/main/java/org/springframework/aop/aspectj/package-info.java
#!/usr/bin/env python import time,re,os,sys,subprocess try: import psyco psyco.full() except ImportError: pass definepath=os.getcwd() sys.path.append("%s/bin/ftsrc/" % (definepath)) import include sys.path.append("%s/bin/setup/" % (definepath)) import depend updateconfig="" # Main Menu to choose readversion...
unknown
codeparrot/codeparrot-clean
from nose.tools import * # noqa from faker import Factory fake = Factory.create() import uuid from scripts.dropbox import migrate_to_external_accounts as migration from framework.mongo import database from tests.base import OsfTestCase from tests.factories import ProjectFactory, UserFactory from website.models im...
unknown
codeparrot/codeparrot-clean
'use server' import 'server-only' import { redirect } from 'next/navigation' import { headers, cookies } from 'next/headers' export async function getHeaders() { console.log('accept header:', (await headers()).get('accept')) ;(await cookies()).set('test-cookie', Date.now()) } export async function inc(value) { ...
javascript
github
https://github.com/vercel/next.js
crates/next-custom-transforms/tests/fixture/source-maps/client-graph/development/server-actions/1/input.js
import functools import re from itertools import chain from django.conf import settings from django.db import models from django.db.migrations import operations from django.db.migrations.migration import Migration from django.db.migrations.operations.models import AlterModelOptions from django.db.migrations.optimizer ...
unknown
codeparrot/codeparrot-clean
from django.contrib.auth.decorators import login_required from django.http import HttpResponse, Http404 from django.core.exceptions import ValidationError from notes.models import Note from notes.utils import notes_enabled_for_course from courseware.courses import get_course_with_access import json import logging imp...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies that the implicit rpath is added only when needed. """ import TestGyp import re import subprocess import sys if sys.platform...
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
/** * 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/fs/FsShellPermissions.java
""" Create a Fullscreen button on PyQt4 windows on OS X. """ import sys if sys.platform.startswith("darwin"): import ctypes from ctypes import CFUNCTYPE, c_void_p, c_char_p, c_int import ctypes.util objc_lib = ctypes.cdll.LoadLibrary(ctypes.util.find_library('objc')) id = c_void_p sel = c_voi...
unknown
codeparrot/codeparrot-clean
class SynErr(Exception): def __init__(self, *args, **info): self.errinfo = info Exception.__init__(self, self._getExcMsg()) def _getExcMsg(self): props = sorted(self.errinfo.items()) displ = ' '.join(['%s=%r' % (p, v) for (p, v) in props]) return '%s: %s' % (self.__clas...
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\Bundle\SecurityBundle\Debug; use Symfony\Bundle\SecurityBundle\...
php
github
https://github.com/symfony/symfony
src/Symfony/Bundle/SecurityBundle/Debug/TraceableFirewallListener.php
""" Knowledge base model forms """ from django.forms import ModelForm, Form, ChoiceField from models import KnowledgeFolder, KnowledgeItem, KnowledgeCategory from anaf.core.models import Object from anaf.core.decorators import preprocess_form from django.utils.translation import ugettext as _ from django.core.urlresolv...
unknown
codeparrot/codeparrot-clean
# Copyright 2012, Nachi Ueno, NTT MCL, 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 # # U...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python from flask import Flask, render_template, send_from_directory, request, jsonify import os app = Flask(__name__) ''' Channel Config 1-5. Chan 0 fuer alle 5 Channels gleichzeitig Mode 1 HOCH - Mode 2 Runter - Mode 3 Stop ''' config = {'chan0mode1': '', 'chan0mode2': '', 'chan0mode3': '', 'chan1mode1...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # # Copyright © 2013 ivali.com # Author: Zhongxin Huang <zhongxin.huang@gmail.com> # import os import sys import ybs.utils import ybs.settings import sqlite3 import argparse import time import StringIO import multiprocessing import re VERSION = ybs.settings.__version__ P...
unknown
codeparrot/codeparrot-clean