code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
from __future__ import print_function, unicode_literals import abc import argparse import ast import itertools import json import os import re import subprocess import sys from collections import defaultdict from . import fnmatch from ..localpaths import repo_root from ..gitignore.gitignore import PathFilter from m...
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 # distributed under the ...
unknown
codeparrot/codeparrot-clean
--- navigation_title: "Remove" mapped_pages: - https://www.elastic.co/guide/en/elasticsearch/reference/current/remove-processor.html --- # Remove processor [remove-processor] Removes existing fields. If one field doesn’t exist, an exception will be thrown. $$$remove-options$$$ | Name | Required | Default | Descri...
unknown
github
https://github.com/elastic/elasticsearch
docs/reference/enrich-processor/remove-processor.md
# # Copyright 2012 WebDriver committers # Copyright 2012 Software Freedom Conservancy. # # 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 # # ...
unknown
codeparrot/codeparrot-clean
// Copyright 2018 The Cockroach Authors. // // Use of this software is governed by the CockroachDB Software License // included in the /LICENSE file. package server import ( "context" "fmt" "net" "testing" "time" "github.com/cockroachdb/cockroach/pkg/base" "github.com/cockroachdb/cockroach/pkg/testutils/serve...
go
github
https://github.com/cockroachdb/cockroach
pkg/server/graphite_test.go
<!--Copyright 2020 The HuggingFace Team. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
unknown
github
https://github.com/huggingface/transformers
docs/source/en/model_doc/mpnet.md
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2013 Team-XBMC # # 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...
unknown
codeparrot/codeparrot-clean
// // This file is generated by grafana-app-sdk // DO NOT EDIT // package manifestdata import ( "encoding/json" "fmt" "strings" "github.com/grafana/grafana-app-sdk/app" "github.com/grafana/grafana-app-sdk/resource" "k8s.io/apimachinery/pkg/runtime" "k8s.io/kube-openapi/pkg/spec3" "k8s.io/kube-openapi/pkg/val...
go
github
https://github.com/grafana/grafana
apps/dashvalidator/pkg/apis/manifestdata/dashvalidator_manifest.go
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2015, Linus Unnebäck <linus@folkdatorn.se> # 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_versio...
unknown
codeparrot/codeparrot-clean
import unittest from datetime import date, datetime, time, timedelta from django.utils.dateparse import ( parse_date, parse_datetime, parse_duration, parse_time, ) from django.utils.timezone import get_fixed_timezone class DateParseTests(unittest.TestCase): def test_parse_date(self): # Val...
python
github
https://github.com/django/django
tests/utils_tests/test_dateparse.py
{ "auditLog": { "columns": { "event": "इवेंट", "extra": "अतिरिक्त", "user": "उपयोगकर्ता", "when": "कब" }, "filters": { "eventType": "इवेंट प्रकार" }, "title": "ऑडिट लॉग" }, "xcom": { "columns": { "dag": "डैग", "key": "कुंजी", "value": "मान" ...
json
github
https://github.com/apache/airflow
airflow-core/src/airflow/ui/public/i18n/locales/hi/browse.json
""" This file is part of the everest project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information. Created on Jun 1, 2012. """ from everest.interfaces import IMime from everest.mime import XmlMime from everest.mime import get_registered_mime_strings from everest.mime import get_registered_mime_...
unknown
codeparrot/codeparrot-clean
//// [tests/cases/compiler/classIndexer5.ts] //// //// [classIndexer5.ts] class Foo { [key: string]: number; #a: boolean; #b = false; } //// [classIndexer5.js] "use strict"; class Foo { #a; #b = false; }
javascript
github
https://github.com/microsoft/TypeScript
tests/baselines/reference/classIndexer5.js
""" intervaltree: A mutable, self-balancing interval tree for Python 2 and 3. Queries may be by point, by range overlap, or by range envelopment. Test module: IntervalTree, removal of intervals Submitted as issue #41 (Interval removal breaks this tree) by escalonn Copyright 2013-2018 Chaim Leib Halbert Licensed unde...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ Created on Sun Mar 10 16:27:03 2013 @author: Mohamed Aly <mohamed@mohamedaly.info> """ import codecs import numpy as np import pandas as pd import re class LABR: def __init__(self): self.REVIEWS_PATH = "../data/labr_data/" self.RAW_REVIEWS_FILE = "raw_reviews.tsv" ...
unknown
codeparrot/codeparrot-clean
blank_issues_enabled: false contact_links: - name: Question url: https://github.com/abseil/abseil-cpp/discussions about: Have a question? Ask us anything! :-)
unknown
github
https://github.com/mysql/mysql-server
extra/abseil/abseil-cpp-20230802.1/.github/ISSUE_TEMPLATE/config.yml
# Copyright (C) 2013 Nippon Telegraph and Telephone Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # (c) 2013, Jesse Keating <jesse.keating@rackspace.com, # Paul Durivage <paul.durivage@rackspace.com>, # Matt Martz <matt@sivel.net> # # 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 Pu...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python2.4 # # Copyright 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 applicable law or...
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 law or a...
c
github
https://github.com/tensorflow/tensorflow
tensorflow/core/lib/strings/proto_text_util.h
.bi { display: inline-block; width: 1rem; height: 1rem; } /* * Sidebar */ @media (min-width: 768px) { .sidebar .offcanvas-lg { position: -webkit-sticky; position: sticky; top: 48px; } .navbar-search { display: block; } } .sidebar .nav-link { font-size: .875rem; font-weight: 500; }...
css
github
https://github.com/twbs/bootstrap
site/src/assets/examples/dashboard/dashboard.rtl.css
{ "private": true, "scripts": { "dev": "next", "build": "next build", "start": "next start" }, "dependencies": { "next": "latest", "react": "^18.2.0", "react-dom": "^18.2.0", "react-modal": "3.16.1" } }
json
github
https://github.com/vercel/next.js
examples/with-route-as-modal/package.json
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
c
github
https://github.com/tensorflow/tensorflow
tensorflow/c/eager/abstract_operation.h
# عائلة نماذج المحول منذ إطلاقه في عام 2017، ألهم نموذج [المحول الأصلي](https://huggingface.co/papers/1706.03762) (راجع مدونة [المحول المشروح](http://nlp.seas.harvard.edu/2018/04/03/attention.html) لمقدمة تقنية مبسطة)، ألهم العديد من النماذج الجديدة والمبتكرة التي تتجاوز مهام معالجة اللغات الطبيعية (NLP). هناك نماذج ل...
unknown
github
https://github.com/huggingface/transformers
docs/source/ar/model_summary.md
from __future__ import unicode_literals import threading import warnings from datetime import datetime, timedelta from django.core.exceptions import MultipleObjectsReturned, ObjectDoesNotExist from django.db import DEFAULT_DB_ALIAS, DatabaseError, connections from django.db.models.fields import Field from django.db.m...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import flt def execute(filters=None): if not filters: filters = {} columns = get_columns() data = get_employees(...
unknown
codeparrot/codeparrot-clean
""" Acceptance tests for Studio related to the acid xblock. """ from bok_choy.web_app_test import WebAppTest from ...pages.studio.auto_auth import AutoAuthPage from ...pages.studio.overview import CourseOutlinePage from ...pages.xblock.acid import AcidView from ...fixtures.course import CourseFixture, XBlockFixtureDes...
unknown
codeparrot/codeparrot-clean
from core.vectors import PhpCode, ShellCmd, ModuleExec, Os from core.module import Module from core.loggers import log from core import modules import utils class Filesystem(Module): """Audit system files for wrong permissions.""" def init(self): self.register_info( { 'au...
unknown
codeparrot/codeparrot-clean
""" Form Widget classes specific to the Django admin site. """ from __future__ import unicode_literals import copy from django import forms from django.contrib.admin.templatetags.admin_static import static from django.core.urlresolvers import reverse from django.db.models.deletion import CASCADE from django.forms.uti...
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 u...
unknown
codeparrot/codeparrot-clean
from ..broker import Broker class ModelDocBroker(Broker): controller = "model_docs" def show(self, **kwargs): """Shows the details for the specified model doc. **Inputs** | ``api version min:`` None | ``api version max:`` None | ``required:`` True ...
unknown
codeparrot/codeparrot-clean
# scapy.contrib.description = EtherCat # scapy.contrib.status = loads """ EtherCat automation protocol ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :author: Thomas Tannhaeuser, hecke@naberius.de :license: GPLv2 This module is free software; you can redistribute it and/or modify it under the term...
unknown
codeparrot/codeparrot-clean
# -*- test-case-name: twisted.test.test_zshcomp -*- # Copyright (c) 2006 Twisted Matrix Laboratories. # See LICENSE for details. """ Rebuild the completion functions for the currently active version of Twisted:: $ python zshcomp.py -i This module implements a zsh code generator which generates completion code for...
unknown
codeparrot/codeparrot-clean
import mdp, util from learningAgents import ValueEstimationAgent class ValueIterationAgent(ValueEstimationAgent): """ * Please read learningAgents.py before reading this.* A ValueIterationAgent takes a Markov decision process (see mdp.py) on initialization and runs value iteration for a giv...
unknown
codeparrot/codeparrot-clean
"""Unit tests for the doorstop.vcs.base module.""" import unittest from unittest.mock import patch from doorstop.core.vcs.base import BaseWorkingCopy class SampleWorkingCopy(BaseWorkingCopy): """Sample WorkingCopy implementation.""" def __init__(self, path): super().__init__(path) self._ign...
unknown
codeparrot/codeparrot-clean
package client import ( "net/http" "testing" cerrdefs "github.com/containerd/errdefs" "github.com/moby/moby/api/types/image" ocispec "github.com/opencontainers/image-spec/specs-go/v1" "gotest.tools/v3/assert" is "gotest.tools/v3/assert/cmp" ) func TestImageHistoryError(t *testing.T) { client, err := New(With...
go
github
https://github.com/moby/moby
client/image_history_test.go
import numpy as np import numpy.linalg as la import scipy.sparse as sp from sklearn.utils.testing import assert_almost_equal from sklearn.utils.testing import assert_array_almost_equal from sklearn.utils.testing import assert_array_equal from sklearn.utils.testing import assert_equal from sklearn.utils.testing import ...
unknown
codeparrot/codeparrot-clean
import os from lib.common import helpers class Module: def __init__(self, mainMenu, params=[]): self.info = { 'Name': 'Invoke-ResolverBackdoor', 'Author': ['@sixdub'], 'Description': ('Starts the Resolver Backdoor.'), 'Background' : False, '...
unknown
codeparrot/codeparrot-clean
from __future__ import absolute_import, division, unicode_literals from pip.vendor.six import text_type import gettext _ = gettext.gettext try: from functools import reduce except ImportError: pass from ..constants import voidElements, booleanAttributes, spaceCharacters from ..constants import rcdataElements...
unknown
codeparrot/codeparrot-clean
# vim:set et sts=4 sw=4: # # ibus - The Input Bus # # Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com> # Copyright (c) 2007-2010 Red Hat, Inc. # # 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 Sof...
unknown
codeparrot/codeparrot-clean
# Backport of OrderedDict() class that runs on Python 2.4, 2.5, 2.6, 2.7 and pypy. # Passes Python2.7's test suite and incorporates all the latest updates. # Copyright 2009 Raymond Hettinger, released under the MIT License. # http://code.activestate.com/recipes/576693/ try: from thread import get_ident as _get_ide...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # # Empear Enterprise Edition documentation build configuration file, created by # sphinx-quickstart on Thu Jun 23 16:50:32 2016. # # 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 # autogen...
unknown
codeparrot/codeparrot-clean
import msilib,os;dirname=os.path.dirname(__file__) ActionText = [ ('InstallValidate', 'Validating install', None), ('InstallFiles', 'Copying new files', 'File: [1], Directory: [9], Size: [6]'), ('InstallAdminPackage', 'Copying network install files', 'File: [1], Directory: [9], Size: [6]'), ('FileCost', 'Computing s...
unknown
codeparrot/codeparrot-clean
#!/bin/sh test_description='pushing to a repository using the atomic push option' GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME . ./test-lib.sh mk_repo_pair () { rm -rf workbench upstream && test_create_repo upstream && test_create_repo workbench && ( cd upstream && g...
unknown
github
https://github.com/git/git
t/t5543-atomic-push.sh
#!/usr/bin/env python # ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2015, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions ...
unknown
codeparrot/codeparrot-clean
"""This tutorial introduces Contractive auto-encoders (cA) using Theano. They are based on auto-encoders as the ones used in Bengio et al. 2007. An autoencoder takes an input x and first maps it to a hidden representation y = f_{\theta}(x) = s(Wx+b), parameterized by \theta={W,b}. The resulting latent representat...
unknown
codeparrot/codeparrot-clean
from __future__ import unicode_literals from django.forms import Form, HiddenInput, NullBooleanField, RadioSelect from django.test import SimpleTestCase from . import FormFieldAssertionsMixin class NullBooleanFieldTest(FormFieldAssertionsMixin, SimpleTestCase): def test_nullbooleanfield_clean(self): f =...
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. """ Generator for C++ style thunks """ import glob import os import re import sys from idl_log import ErrOut, InfoOut, WarnOut fr...
unknown
codeparrot/codeparrot-clean
""" This example demonstrates the recovering of possible C types for an arbitrary variable in an assembly code (the types are inferred from the function argument types). It also displays the C code used to access this variable. Input: * definitions of the C types that can be used by the code * layout of structures (p...
unknown
codeparrot/codeparrot-clean
# Copyright 2024 The HuggingFace Inc. team. All rights reserved. # Modifications Copyright (C) 2025, Advanced Micro Devices, 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 Lic...
python
github
https://github.com/huggingface/transformers
src/transformers/quantizers/auto.py
// // Code generated by grafana-app-sdk. DO NOT EDIT. // package v0alpha1 import ( "github.com/grafana/grafana-app-sdk/resource" ) // schema is unexported to prevent accidental overwrites var ( schemaDummy = resource.NewSimpleSchema("historian.alerting.grafana.app", "v0alpha1", NewDummy(), &DummyList{}, resource.W...
go
github
https://github.com/grafana/grafana
apps/alerting/historian/pkg/apis/alertinghistorian/v0alpha1/dummy_schema_gen.go
# -*- coding: utf-8 -*- # Copyright 2014-2015 National Institute of Advanced Industrial Science and Technology # # 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/l...
unknown
codeparrot/codeparrot-clean
import unittest import xdrlib class XDRTest(unittest.TestCase): def test_xdr(self): p = xdrlib.Packer() s = b'hello world' a = [b'what', b'is', b'hapnin', b'doctor'] p.pack_int(42) p.pack_int(-17) p.pack_uint(9) p.pack_bool(True) p.pack_bool(False...
unknown
codeparrot/codeparrot-clean
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import ( compat_b64decode, compat_urllib_parse_unquote, ) class BigflixIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?bigflix\.com/.+/(?P<id>[0-9]+)' _TESTS = [{ # 2 formats...
unknown
codeparrot/codeparrot-clean
import sys import json import logging from redash.utils import JSONEncoder from redash.query_runner import * logger = logging.getLogger(__name__) types_map = { 5: TYPE_BOOLEAN, 6: TYPE_INTEGER, 7: TYPE_FLOAT, 8: TYPE_STRING, 9: TYPE_STRING, 10: TYPE_DATE, 11: TYPE_DATETIME, 12: TYPE_D...
unknown
codeparrot/codeparrot-clean
############################################################################### # # AbstractPlot.py - Abstract base class for plotting. # ############################################################################### # # # This program is f...
unknown
codeparrot/codeparrot-clean
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing_extensions import Literal from ..._models import BaseModel __all__ = ["ResponseAudioDoneEvent"] class ResponseAudioDoneEvent(BaseModel): """Emitted when the audio response is complete.""" sequence_number: int ...
python
github
https://github.com/openai/openai-python
src/openai/types/responses/response_audio_done_event.py
from cement.core import handler, controller from dscan.plugins import HumanBasePlugin from subprocess import call import os, sys, dscan BASE_FOLDER = '/var/www/drupal/' UPDATE_MAJOR = ['6', '7'] def recursive_grep(directory, needle): return_file = None for f in os.listdir(directory): if f.endswith('.p...
unknown
codeparrot/codeparrot-clean
//// [tests/cases/compiler/classDeclarationShouldBeOutOfScopeInComputedNames.ts] //// //// [classDeclarationShouldBeOutOfScopeInComputedNames.ts] class A { static readonly p1 = Symbol(); static readonly p2 = Symbol(); // All of the below should be out of scope or TDZ - `A` has not finished being constructe...
javascript
github
https://github.com/microsoft/TypeScript
tests/baselines/reference/classDeclarationShouldBeOutOfScopeInComputedNames.js
{ "name": "@prometheus-io/codemirror-promql", "version": "0.309.1", "description": "a CodeMirror mode for the PromQL language", "types": "dist/esm/index.d.ts", "module": "dist/esm/index.js", "main": "dist/cjs/index.js", "scripts": { "build": "npm run build:lib", "build:lib": "bash ./build.sh", ...
json
github
https://github.com/prometheus/prometheus
web/ui/module/codemirror-promql/package.json
import builtins if hasattr(builtins, "server"): SERVER = builtins.server else: SERVER = False import requests as reqs import json requests = reqs.session() requests.trust_env = False import os import uuid import shelve import datetime import getpass from zashel.utils import search_win_drive #ST...
unknown
codeparrot/codeparrot-clean
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
unknown
codeparrot/codeparrot-clean
/* Generated from finnish.sbl by Snowball 3.0.0 - https://snowballstem.org/ */ #include "stem_ISO_8859_1_finnish.h" #include <stddef.h> #include "snowball_runtime.h" struct SN_local { struct SN_env z; int i_p2; int i_p1; unsigned char b_ending_removed; symbol * s_x; }; typedef struct SN_local S...
c
github
https://github.com/postgres/postgres
src/backend/snowball/libstemmer/stem_ISO_8859_1_finnish.c
import os import json import time import re import random from modules import userDatabase class CaseInsensitiveDict(dict): def __contains__(self, key): return dict.__contains__(self, key.lower()) def __getitem__(self, key): return dict.__getitem__(self, key.lower()) def __setitem__(self,...
unknown
codeparrot/codeparrot-clean
from pybindgen import Module, FileCodeSink, param, retval, cppclass, typehandlers import pybindgen.settings import warnings class ErrorHandler(pybindgen.settings.ErrorHandler): def handle_error(self, wrapper, exception, traceback_): warnings.warn("exception %r in wrapper %s" % (exception, wrapper)) ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ *************************************************************************** SetRasterStyle.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com ************************...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python2.5 # -*- coding: utf-8 -*- # # Gmail Backup library # # Copyright © 2008, 2009, 2010 Jan Svec <honza.svec@gmail.com> and Filip Jurcicek <filip.jurcicek@gmail.com> # # This file is part of Gmail Backup. # # Gmail Backup is free software: you can redistribute it and/or modify it # under t...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """Migrate users whose email_verifications=None to have email_verifications={} (which is now the default value). """ import sys import logging from modularodm import Q from framework.transactions.context import TokuTransaction from website.app import init_app from website.models import User fr...
unknown
codeparrot/codeparrot-clean
base_suite: sharded_collections_jscore_passthrough_base description: >- This suite runs through all fuzzer generated tests and ensures that the 'queryShapeHash' attribute returned in explain is same for multiple explain invocations, across all nodes of two sharded clusters, with different binaries version. overri...
unknown
github
https://github.com/mongodb/mongo
buildscripts/resmokeconfig/matrix_suites/mappings/sharded_collections_query_shape_hash_stability_aggregate_fuzzer_last_continuous_new_old.yml
""" Template for the Chebyshev and Polynomial classes. This module houses a Python string module Template object (see, e.g., http://docs.python.org/library/string.html#template-strings) used by the `polynomial` and `chebyshev` modules to implement their respective `Polynomial` and `Chebyshev` classes. It provides a m...
unknown
codeparrot/codeparrot-clean
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
c
github
https://github.com/curl/curl
docs/examples/smtp-expn.c
{ "applyable": true, "complete": true, "configuration": { "provider_config": { "null": { "full_name": "registry.terraform.io/hashicorp/null", "name": "null", "version_constraint": "3.1.1" } }, "root_module": {} }, "errored": false, "format_version": "1.2", "...
json
github
https://github.com/hashicorp/terraform
testing/equivalence-tests/outputs/null_provider_delete/plan.json
# Copyright (C) 2011 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
unknown
codeparrot/codeparrot-clean
import os os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from google.appengine.dist import use_library use_library('django', '1.2') from django.template import Library from django.template import Node, NodeList from django.template import TemplateSyntaxError, VariableDoesNotExist register = Library() class Recurse...
unknown
codeparrot/codeparrot-clean
""" This module defines the SFrame class which provides the ability to create, access and manipulate a remote scalable dataframe object. SFrame acts similarly to pandas.DataFrame, but the data is completely immutable and is stored column wise on the GraphLab Server side. """ ''' Copyright (C) 2015 Dato, Inc. All righ...
unknown
codeparrot/codeparrot-clean
import importlib def relative_import(parent_name, rel_modules=(), rel_classes=()): """ Helper function to import submodules lazily in Python 3.7+ Parameters ---------- rel_modules: list of str list of submodules to import, of the form .submodule rel_classes: list of str list of...
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/core/tfrt/utils/utils.h
{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations \u0026 Alerts", "type": "dashboard" } ] }, "e...
json
github
https://github.com/grafana/grafana
apps/dashboard/pkg/migration/conversion/testdata/input/migrated_dev_dashboards/feature-templating/v1beta1.testdata-datalinks.v42.json
/* * 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.engine.darwin import io.ktor.client.engine.darwin.internal.* import io.ktor.client.plugins.websocket.WEBSOCKETS_KEY import io.ktor.client.request.* import io.ktor.util....
kotlin
github
https://github.com/ktorio/ktor
ktor-client/ktor-client-darwin/darwin/src/io/ktor/client/engine/darwin/KtorNSURLSessionDelegate.kt
export function generateSummary() { return 1; } export function entityActionQueue() { return 2; } export function bar() { return 3; }
javascript
github
https://github.com/webpack/webpack
test/cases/context/issue-18752/folder/file.js
""" Copyright (c) 2004-Present Pivotal Software, Inc. This program and the accompanying materials are made available under the terms of the 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....
unknown
codeparrot/codeparrot-clean
/** @type {import('tailwindcss').Config} \*/ module.exports = { content: [ "./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}", ], theme: { fontFamily: { sans: ["var(--font-montserrat)"], }, }, future: { hoverOnlyWhenSupported: true, }, plugins: [require("@tailwin...
javascript
github
https://github.com/vercel/next.js
examples/with-sfcc/tailwind.config.js
# -*- coding: utf-8 -*- import re import time import urlparse from module.plugins.internal.Account import Account from module.plugins.internal.Plugin import parse_html_form, set_cookie class XFSAccount(Account): __name__ = "XFSAccount" __type__ = "account" __version__ = "0.42" __status__ = "te...
unknown
codeparrot/codeparrot-clean
#define NPY_NO_DEPRECATED_API NPY_API_VERSION #define _MULTIARRAYMODULE #define PY_SSIZE_T_CLEAN #include <Python.h> #include <structmember.h> #include "numpy/ndarraytypes.h" #include "numpy/arrayobject.h" #include "dtypemeta.h" #include "abstractdtypes.h" #include "array_coercion.h" #include "common.h" static inli...
c
github
https://github.com/numpy/numpy
numpy/_core/src/multiarray/abstractdtypes.c
""" The :mod:`sklearn.kernel_approximation` module implements several approximate kernel feature maps base on Fourier transforms. """ # Author: Andreas Mueller <amueller@ais.uni-bonn.de> # # License: BSD 3 clause import warnings import numpy as np import scipy.sparse as sp from scipy.linalg import svd from .base im...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ pygments.lexer ~~~~~~~~~~~~~~ Base lexer classes. :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re, itertools from pygments.filter import apply_filters, Filter from pygments.filters import get_filt...
unknown
codeparrot/codeparrot-clean
from .models import Event OPTIONS = """{ timeFormat: "H:mm", header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay', }, allDaySlot: false, firstDay: 0, ...
unknown
codeparrot/codeparrot-clean
//===--- IndirectTypeInfo.h - Convenience for indirected types --*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
c
github
https://github.com/apple/swift
lib/IRGen/IndirectTypeInfo.h
import os from flask import Flask, request, redirect, url_for, render_template, jsonify from flask_wtf import Form from wtforms import StringField, TextField, TextAreaField, DateField, SelectField, RadioField, BooleanField from wtforms.validators import DataRequired app = Flask(__name__) import smtplib from email.mim...
unknown
codeparrot/codeparrot-clean
# $Id$ # # Copyright (C) 2002-2008 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # """ command line util...
unknown
codeparrot/codeparrot-clean
# Introduction This directory contains SystemZ deflate hardware acceleration support. It can be enabled using the following build commands: $ ./configure --with-dfltcc-deflate --with-dfltcc-inflate $ make or $ cmake -DWITH_DFLTCC_DEFLATE=1 -DWITH_DFLTCC_INFLATE=1 . $ make When built like this, zlib...
unknown
github
https://github.com/opencv/opencv
3rdparty/zlib-ng/arch/s390/README.md
#!/usr/bin/env python import unittest, sys from unittest import TestCase from plasTeX.Tokenizer import * from plasTeX.TeX import * class Numbers(TestCase): def testReadDecimal(self): s = TeX() s.input(r'-1.0') i = s.readDecimal() assert i == -1, 'expected -1, but got %s' % i ...
unknown
codeparrot/codeparrot-clean
# 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 License, or # (at your option) any later version. # # This program is distributed in the...
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
tests/common/lease_test.go
import { toHandlers } from '../../src/helpers/toHandlers' describe('toHandlers', () => { it('should not accept non-objects', () => { toHandlers(null as any) toHandlers(undefined as any) expect( 'v-on with no argument expects an object value.', ).toHaveBeenWarnedTimes(2) }) it('should prop...
typescript
github
https://github.com/vuejs/core
packages/runtime-core/__tests__/helpers/toHandlers.spec.ts
from sys import maxsize class Contact: def __init__(self, firstname=None, middlename=None, lastname=None, nickname=None, title=None, company=None, address=None, telhome=None, telmobile=None, telwork=None, fax=None, email=None, email2=None, email3=None, homepage=None, birth=None, anniversary=None, address2=None, ho...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python2.4 # # Copyright 2011 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...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # HORTON: Helpful Open-source Research TOol for N-fermion systems. # Copyright (C) 2011-2017 The HORTON Development Team # # This file is part of HORTON. # # HORTON is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by th...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- """ Copyright (C) 2014 Dariusz Suchojad <dsuch at zato.io> Licensed under LGPLv3, see LICENSE.txt for terms and conditions. """ from __future__ import absolute_import, division, print_function, unicode_literals # stdlib from contextlib import closing from json import dumps, loads # Zato fro...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2007 The Hewlett-Packard Development Company # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implemen...
unknown
codeparrot/codeparrot-clean