code
stringlengths
1
25.8M
language
stringclasses
18 values
source
stringclasses
4 values
repo
stringclasses
78 values
path
stringlengths
0
268
# SPDX-License-Identifier: GPL-2.0 %YAML 1.2 --- $id: http://devicetree.org/schemas/arm/mediatek.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: MediaTek SoC based Platforms maintainers: - Sean Wang <sean.wang@mediatek.com> - Matthias Brugger <matthias.bgg@gmail.com> description: | Boards wi...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/arm/mediatek.yaml
#!/usr/bin/python # # (c) 2017, Daniel Korn <korndaniel1@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 o...
unknown
codeparrot/codeparrot-clean
# # Make some test data # from google.appengine.ext import ndb import band import member import assoc import gig import plan import datetime import random def test_band(): """make some test data""" # delete the data if there is any # Clear datastore entities # for model in [band.Band, member.Member, assoc...
unknown
codeparrot/codeparrot-clean
//// [tests/cases/conformance/async/es5/awaitBinaryExpression/awaitBinaryExpression5_es5.ts] //// //// [awaitBinaryExpression5_es5.ts] declare var a: boolean; declare var p: Promise<boolean>; declare function before(): void; declare function after(): void; async function func(): Promise<void> { before(); var o...
javascript
github
https://github.com/microsoft/TypeScript
tests/baselines/reference/awaitBinaryExpression5_es5(target=es2015).js
from csv2_common import check_keys, requests, show_active_user_groups, show_table KEY_MAP = { '-cc': 'category', '-ckv': 'config_key_values', } def config(gvar): """ Modify the specified group defaults. """ mandatory = [] required = [] optional = ['-cc', '-ckv', '-CSEP', '-CSV', ...
unknown
codeparrot/codeparrot-clean
# Copyright 2010 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
unknown
codeparrot/codeparrot-clean
# Script I used to merge amplifiedmeta2.csv with Jordan's data. import os, csv def forceint(astring): if len(astring) > 4: astring = astring[0:4] try: intval = int(astring) except: intval = 0 return intval def pairtreelabel(htid): ''' Given a clean htid, returns a dirty o...
unknown
codeparrot/codeparrot-clean
from __future__ import division import gc import os import sys import traceback from collections import Iterable import time import cPickle import __main__ import numpy as np from scipy.sparse import coo_matrix, csr_matrix, csc_matrix from scipy.sparse.linalg import eigsh from scipy.optimize import leastsq from numpy ...
unknown
codeparrot/codeparrot-clean
{ "MALLOC-STATS": { "summary": "Returns the allocator statistics.", "complexity": "Depends on how much memory is allocated, could be slow", "group": "server", "since": "4.0.0", "arity": 2, "container": "MEMORY", "function": "memoryCommand", "command_ti...
json
github
https://github.com/redis/redis
src/commands/memory-malloc-stats.json
# -*- coding: utf-8 -*- DOCUMENTATION = ''' module: mt_snmp author: - "Valentin Gurmeza" version_added: "2.4" short_description: Manage mikrotik neighbor endpoints requirements: - mt_api description: - Generic mikrotik neighbor module. options: hostname: description: - hotstname of mikrotik router ...
unknown
codeparrot/codeparrot-clean
// Copyright The Prometheus 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 to in w...
go
github
https://github.com/prometheus/prometheus
tsdb/db_test.go
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2008-2009 Zuza Software Foundation # # This file is part of the Translate Toolkit. # # 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; e...
unknown
codeparrot/codeparrot-clean
from __future__ import unicode_literals from datetime import datetime from django.test import TestCase from django.utils import six from .models import Article, Reporter, Writer class M2MIntermediaryTests(TestCase): def test_intermeiary(self): r1 = Reporter.objects.create(first_name="John", last_name="S...
unknown
codeparrot/codeparrot-clean
#pragma once #include <ATen/core/symbol.h> #include <c10/util/ArrayRef.h> #include <optional> #include <ostream> namespace at { enum class NameType: uint8_t { BASIC, WILDCARD }; struct TORCH_API Dimname { static Dimname fromSymbol(Symbol name); static Dimname wildcard(); static bool isValidName(const std::str...
c
github
https://github.com/pytorch/pytorch
aten/src/ATen/core/Dimname.h
{ "compilerOptions": { "noEmit": true, "rootDir": ".", "allowJs": true, "checkJs": true, "lib": ["ESNext", "DOM"], "skipLibCheck": true, "strict": true, "jsx": "react-jsx", // most of the code is untyped "noImplicitAny": false, "noImplicitThis": false, "target": "E...
json
github
https://github.com/vercel/next.js
crates/next-custom-transforms/tests/fixture/server-actions/tsconfig.json
""" support for presenting detailed information in failing assertions. """ import py import os import sys from _pytest.monkeypatch import monkeypatch from _pytest.assertion import util def pytest_addoption(parser): group = parser.getgroup("debugconfig") group.addoption('--assert', action="s...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python """ Confirm that the keys for the specified language .strings file match the expected_keys/*.txt files. There can be multiple .txt files in the expected_keys directory; e.g., one per platform, and/or one for UI strings and one for server-error strings. """ import os import sys import argparse im...
unknown
codeparrot/codeparrot-clean
# Copyright (c) 2014 Netflix, Inc. Stefan Praszalowicz # Copyright (c) 2014 42Lines, Inc. Jim Browne # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without...
unknown
codeparrot/codeparrot-clean
// Copyright The Prometheus 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 to in w...
go
github
https://github.com/prometheus/prometheus
model/labels/labels_test.go
''' Stack Layout ============ .. only:: html .. image:: images/stacklayout.gif :align: right .. only:: latex .. image:: images/stacklayout.png :align: right .. versionadded:: 1.0.5 The :class:`StackLayout` arranges children vertically or horizontally, as many as the layout can fit. The siz...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # 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 # "...
unknown
codeparrot/codeparrot-clean
// Copyright (c) Facebook, Inc. and its affiliates. // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #pragma once #include <ATen/Tensor.h> #include <ATen/VmapGeneratedPlumbing.h> // This file contains templat...
c
github
https://github.com/pytorch/pytorch
aten/src/ATen/functorch/BatchingMetaprogramming.h
import sys from services.spawn import MobileTemplate from services.spawn import WeaponTemplate from resources.datatables import WeaponType from resources.datatables import Difficulty from resources.datatables import Options from java.util import Vector def addTemplate(core): mobileTemplate = MobileTemplate() mobile...
unknown
codeparrot/codeparrot-clean
#pragma once #include <ATen/Tensor.h> #include <c10/core/ScalarType.h> #include <optional> namespace at { namespace hip { namespace detail { void group_gemm_ck( const at::Tensor& mat_a, const at::Tensor& mat_b, const std::optional<at::Tensor>& offs, const std::optional<at::Tensor>& bias, at::Tenso...
c
github
https://github.com/pytorch/pytorch
aten/src/ATen/native/hip/ck_group_gemm.h
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'ParameterType.measuring_rod' db.delete_column('lizard_layers_parametertype', 'measuring_rod_id')...
unknown
codeparrot/codeparrot-clean
import unittest from buildscripts.resmokelib.hang_analyzer.extractor import get_dwarf_version class TestExtractor(unittest.TestCase): def test_find_dwarf_version(self): """ Test that DWARF version 5 is identified based on "format = DWARF32, version = 0x0005", and that the compile unit for ...
python
github
https://github.com/mongodb/mongo
buildscripts/tests/resmokelib/hang_analyzer/test_extractor.py
declare module 'private-next-rsc-track-dynamic-import' { export function trackDynamicImport<T>(promise: Promise<T>): Promise<T> }
typescript
github
https://github.com/vercel/next.js
crates/next-custom-transforms/tests/fixture/track-dynamic-imports/next.d.ts
from sqlalchemy import exc, schema, topological, util, sql, types as sqltypes from sqlalchemy.sql import expression, operators, visitors from itertools import chain """Utility functions that build upon SQL and Schema constructs.""" def sort_tables(tables): """sort a collection of Table objects in order of their f...
unknown
codeparrot/codeparrot-clean
# Copyright 2014 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. """Unittests for the android backends modules.""" import unittest from memory_inspector.backends import adb_client from memory_inspector.backends import an...
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
from django.db import connections from django.db.models.query import QuerySet, ValuesQuerySet, ValuesListQuerySet from django.contrib.gis import memoryview from django.contrib.gis.db.models import aggregates from django.contrib.gis.db.models.fields import get_srid_info, PointField, LineStringField from django.contrib....
unknown
codeparrot/codeparrot-clean
--- title: createRoutesFromElements --- # createRoutesFromElements <!-- ⚠️ ⚠️ IMPORTANT ⚠️ ⚠️ Thank you for helping improve our documentation! This file is auto-generated from the JSDoc comments in the source code, so please edit the JSDoc comments in the file below and this file will be re-generated once those cha...
unknown
github
https://github.com/remix-run/react-router
docs/api/utils/createRoutesFromElements.md
import logging, time import plugins logger = logging.getLogger( __name__ ) # logger.setLevel( 'DEBUG' ) bot = plugins.tracking.bot @bot.message_handler( func=lambda message: True ) def reply( message ): localtime = time.localtime( time.time() ) t_hour = localtime.tm_hour if message.chat.id < 0: lo...
unknown
codeparrot/codeparrot-clean
{{ value|super_reverse }}
html
github
https://github.com/pallets/flask
tests/templates/template_filter.html
# Copyright 2011 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
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...
kotlin
github
https://github.com/spring-projects/spring-framework
framework-docs/src/main/kotlin/org/springframework/docs/core/expressions/expressionsbeandef/FieldValueTestBean.kt
import "@swc/helpers/_/_class_call_check"; import { _ as e } from "@swc/helpers/_/_sliced_to_array"; import r from 'other'; e(r, 1)[0]; export var __N_SSG = !0; export default function t() { return React.createElement("div", null); }
javascript
github
https://github.com/vercel/next.js
crates/next-custom-transforms/tests/full/example/output.js
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Foo(models.Model): name = models.CharField(max_length=50) friend = models.CharField(max_length=50, blank=True) def ...
unknown
codeparrot/codeparrot-clean
/* * Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. */ package io.ktor.server.auth.jwt import com.auth0.jwk.* import com.auth0.jwt.* import com.auth0.jwt.algorithms.* import com.auth0.jwt.exceptions.* import com.auth0.jwt.impl.* import com.auth0....
kotlin
github
https://github.com/ktorio/ktor
ktor-server/ktor-server-plugins/ktor-server-auth-jwt/jvm/src/io/ktor/server/auth/jwt/JWTUtils.kt
from collections import defaultdict from sympy import Sieve, binomial_coefficients, binomial_coefficients_list, \ multinomial_coefficients, Mul, S, Pow, sieve, Symbol, summation, Dummy, \ factorial as fac, pi, GoldenRatio as phi, sqrt from sympy.core.numbers import Integer, igcd, Rational from sympy.core.compat...
unknown
codeparrot/codeparrot-clean
test_kind: js_test selector: roots: - jstests/core/**/*.js - jstests/fle2/**/*.js - src/mongo/db/modules/*/jstests/fle2/**/*.js exclude_files: # Transactions only a readConcern argument on the first command. - jstests/core/txns/**/*.js # These tests use benchRun(), which isn't configured to...
unknown
github
https://github.com/mongodb/mongo
buildscripts/resmokeconfig/suites/read_concern_majority_passthrough.yml
#!/usr/bin/env python import argparse import cPickle import traceback import logging import time import sys import numpy import experiments.nmt from experiments.nmt import\ RNNEncoderDecoder,\ prototype_state,\ parse_input from experiments.nmt.numpy_compat import argpartition logger = logging.getLogger...
unknown
codeparrot/codeparrot-clean
from ctypes import byref, c_double from django.contrib.gis.gdal.base import GDALBase from django.contrib.gis.gdal.envelope import Envelope, OGREnvelope from django.contrib.gis.gdal.error import GDALException, SRSException from django.contrib.gis.gdal.feature import Feature from django.contrib.gis.gdal.field import OGR...
python
github
https://github.com/django/django
django/contrib/gis/gdal/layer.py
# 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
# Copyright (c) 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. """Utility library for running a startup profile on an Android device. Sets up a device for cygprofile, disables sandboxing permissions, and sets up sup...
unknown
codeparrot/codeparrot-clean
""" Tests for the `api_admin` api module. """ import json from rest_framework.reverse import reverse from django.contrib.auth.models import User from django.test import TestCase from openedx.core.djangoapps.api_admin.tests import factories from openedx.core.djangolib.testing.utils import skip_unless_lms from student...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, Ansible Project # Copyright: (c) 2018, Diane Wang <dianew@vmware.com> # 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 ANSI...
unknown
codeparrot/codeparrot-clean
# Copyright 2014 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. """Utility module for testharness.""" # const definitions TESTHARNESSREPORT_HEADER = 'This is a testharness.js-based test.' TESTHARNESSREPORT_FOOTER = 'Harn...
unknown
codeparrot/codeparrot-clean
test_kind: benchmark_test selector: root: bazel-bin/install/install-mongo_benchmark-stripped_test_list.txt # Please always add the glob pattern for the canary tests as part of "include_files" section when # defining a new test suite for your benchmarks. Doing so ensures they'll still run as part of the # Everg...
unknown
github
https://github.com/mongodb/mongo
buildscripts/resmokeconfig/suites/benchmarks_sorter.yml
from django.test import TestCase, override_settings @override_settings( TEMPLATE_CONTEXT_PROCESSORS=('django.core.context_processors.static',), STATIC_URL='/path/to/static/media/', ) class ShortcutTests(TestCase): urls = 'view_tests.generic_urls' def test_render_to_response(self): response = s...
unknown
codeparrot/codeparrot-clean
--- navigation_title: "Trim" mapped_pages: - https://www.elastic.co/guide/en/elasticsearch/reference/current/trim-processor.html --- # Trim processor [trim-processor] Trims whitespace from field. If the field is an array of strings, all members of the array will be trimmed. ::::{note} This only works on leading an...
unknown
github
https://github.com/elastic/elasticsearch
docs/reference/enrich-processor/trim-processor.md
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the "Elastic License * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side * Public License v 1"; you may not use this file except in compliance with, ...
java
github
https://github.com/elastic/elasticsearch
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/RestResourcesExtension.java
"use strict"; module.exports = () => { const nodeVersionMajor = Number.parseInt( process.version.slice(1).split(".")[0], 10 ); return nodeVersionMajor >= 14; };
javascript
github
https://github.com/webpack/webpack
examples/virtual-modules/test.filter.js
// #docplaster ... { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", // #docregion locale-config, i18n-subPath "projects": { "angular.io-example": { // #enddocregion locale-config, i18n-subPath "projectType": "application", "ro...
json
github
https://github.com/angular/angular
adev/src/content/examples/i18n/angular.json
#-*- coding: utf-8 -*- import logging try: from PIL import Image as PILImage except ImportError: try: import Image as PILImage except ImportError: raise ImportError("The Python Imaging Library was not found.") from datetime import datetime import os from django.utils.timezone import now, m...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'CurrentSubscription.tax_percent' db.add_column(u'payments_...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- import os, tempfile from nose.tools import with_setup, eq_ as eq, ok_ as ok from common import vim, cleanup def source(code): fd, fname = tempfile.mkstemp() with os.fdopen(fd,'w') as f: f.write(code) vim.command('source '+fname) os.unlink(fname) @with_setup(setup=cleanu...
unknown
codeparrot/codeparrot-clean
# Copyright (C) 2012 Hewlett-Packard Development Company, L.P. # 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/LICEN...
unknown
codeparrot/codeparrot-clean
/* Copyright 2017 - 2025 R. Thomas * Copyright 2017 - 2025 Quarkslab * * 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 req...
cpp
github
https://github.com/nodejs/node
deps/LIEF/src/COFF/BigObjHeader.cpp
<?php // This script should be run after adding a new message to translate. // It will ensure that all messages in "*.en.xlf" files are propagated to all languages. // The resulting diff should then be submitted as a PR on the lowest maintained branch, // possibly after using GPT to translate all the targets it contai...
php
github
https://github.com/symfony/symfony
.github/sync-translations.php
/* MIT License * * Copyright (c) 1998 Massachusetts Institute of Technology * Copyright (c) The c-ares project and its contributors * * 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 wi...
c
github
https://github.com/nodejs/node
deps/cares/src/lib/ares_getenv.h
import pytest from scrapy.utils.console import get_shell_embed_func try: import bpython bpy = True del bpython except ImportError: bpy = False try: import IPython ipy = True del IPython except ImportError: ipy = False def test_get_shell_embed_func(): shell = get_shell_embed_func...
python
github
https://github.com/scrapy/scrapy
tests/test_utils_console.py
# # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not u...
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
#!/usr/bin/env python # Authors: Denis A. Engemann <denis.engemann@gmail.com> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # # simplified bsd-3 license """Create high-resolution head surfaces for coordinate alignment. example ...
unknown
codeparrot/codeparrot-clean
/* * Copyright (C) Nginx, Inc. * Copyright (C) Valentin V. Bartenev */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include <ngx_http_v2_module.h> static ngx_int_t ngx_http_v2_add_variables(ngx_conf_t *cf); static ngx_int_t ngx_http_v2_variable(ngx_http_request_t *r, ngx_http_variable_...
c
github
https://github.com/nginx/nginx
src/http/v2/ngx_http_v2_module.c
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2012, Stephen Fromm <sfromm@gmail.com> # 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': ...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # 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 # # Un...
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 use ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env bash # Copyright 2025 The Cockroach Authors. # # Use of this software is governed by the CockroachDB Software License # included in the /LICENSE file. set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" source "$dir/teamcity-support.sh" # For $root source "$dir/tea...
unknown
github
https://github.com/cockroachdb/cockroach
build/teamcity/internal/cockroach/pua/pua_run.sh
from django.contrib.gis.db import models from django.contrib.localflavor.us.models import USStateField class Location(models.Model): point = models.PointField() objects = models.GeoManager() def __unicode__(self): return self.point.wkt class City(models.Model): name = models.CharField(max_length=50) ...
unknown
codeparrot/codeparrot-clean
{ "severity": "error", "summary": "Tiny explosion", "detail": "Unexpected detonation while parsing", "range": { "filename": "test.tf", "start": { "line": 1, "column": 10, "byte": 9 }, "end": { "line": 1, "column": 25, "byte": 24 } }, "snippet": { "...
json
github
https://github.com/hashicorp/terraform
internal/command/views/json/testdata/diagnostic/error-with-source-code-subject.json
# Copyright (c) 2015 OpenStack Foundation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
unknown
codeparrot/codeparrot-clean
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- $id: http://devicetree.org/schemas/leds/issi,is31fl319x.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: ISSI LED Controllers for IS31FL319{0,1,3,6,9} maintainers: - Vincent Knecht <vincent.knecht@mailoo.org> description: | ...
unknown
github
https://github.com/torvalds/linux
Documentation/devicetree/bindings/leds/issi,is31fl319x.yaml
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/COPYING """Tests for the pylint checker in :mod:`pylint.extensions.overlapping_exceptions """ from sys import version_info from os.path import join, dirname from pylint.extensio...
unknown
codeparrot/codeparrot-clean
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals, division, print_function import os import tempfile from pymatgen.util.testing import PymatgenTest from pymatgen.io.abinit.abiinspect import * _test_dir = os.path.join(...
unknown
codeparrot/codeparrot-clean
/* SPDX-License-Identifier: GPL-2.0 */ /* * Internal HugeTLB definitions. * (C) Nadia Yvette Chambers, April 2004 */ #ifndef _LINUX_HUGETLB_INTERNAL_H #define _LINUX_HUGETLB_INTERNAL_H #include <linux/hugetlb.h> #include <linux/hugetlb_cgroup.h> /* * Check if the hstate represents gigantic pages but gigantic pag...
c
github
https://github.com/torvalds/linux
mm/hugetlb_internal.h
# Realm Plugin The Realm Plugin for Xcode adds several useful features for developing with Realm: 1. A LLDB script which adds support for inspecting the property values of persisted RLMObjects in the debugger pane. 2. File templates for RLMObject subclasses. 3. A menu item in Xcode's 'File' menu to quickly launch ...
unknown
github
https://github.com/realm/realm-swift
plugin/README.md
use rustc_abi::WrappingRange; use rustc_middle::mir::SourceInfo; use rustc_middle::ty::{self, Ty, TyCtxt}; use rustc_middle::{bug, span_bug}; use rustc_session::config::OptLevel; use rustc_span::sym; use rustc_target::spec::Arch; use super::FunctionCx; use super::operand::OperandRef; use super::place::PlaceRef; use cr...
rust
github
https://github.com/rust-lang/rust
compiler/rustc_codegen_ssa/src/mir/intrinsic.rs
""" # Relative Path Markdown Extension During the MkDocs build we rewrite URLs that link to local Markdown or media files. Using the following pages configuration we can look at how the output is changed. pages: - ['index.md'] - ['tutorial/install.md'] - ['tutorial/intro.md'] ## Markdown URLs When l...
unknown
codeparrot/codeparrot-clean
def is_Perfect_Square(n) : i = 1 while (i * i<= n): if ((n % i == 0) and (n / i == i)): return True i = i + 1 return False
unknown
mbpp
from datetime import datetime from django.core.cache import cache as django_cache from django.http import HttpResponse, HttpResponseNotFound, HttpResponseRedirect, HttpResponseServerError, Http404 from django.views.decorators.cache import cache_page from etc import cache from etc.view_helpers import render, render_stri...
unknown
codeparrot/codeparrot-clean
""" homeassistant.components.thermostat.proliphix ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Proliphix NT10e Thermostat is an ethernet connected thermostat. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/thermostat.proliphix/ """ from homeassistan...
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
trusting: description: trusting human: gordon weather_beaten: description: weather beaten human: steve confused: description: confused polymorphic_human: gordon (Human)
unknown
github
https://github.com/rails/rails
activerecord/test/fixtures/faces.yml
# Copyright 2014 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
unknown
codeparrot/codeparrot-clean
# 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
import * as ts from "../../_namespaces/ts.js"; import { jsonToReadableText } from "../helpers.js"; import { baselineTsserverLogs, closeFilesForSession, openExternalProjectForSession, openFilesForSession, TestSession, toExternalFiles, } from "../helpers/tsserver.js"; import { File, TestSe...
typescript
github
https://github.com/microsoft/TypeScript
src/testRunner/unittests/tsserver/telemetry.ts
"""Hook specifications for pytest plugins which are invoked by pytest itself and by builtin plugins.""" from typing import Any from typing import Dict from typing import List from typing import Mapping from typing import Optional from typing import Sequence from typing import Tuple from typing import Union import py.p...
unknown
codeparrot/codeparrot-clean
"""Create portable serialized representations of Python objects. See module copyreg for a mechanism for registering custom picklers. See module pickletools source for extensive comments. Classes: Pickler Unpickler Functions: dump(object, file) dumps(object) -> string load(file) -> object lo...
unknown
codeparrot/codeparrot-clean
# -*- coding: utf-8 -*- # This is the item picker panel in the main # application's notebook. """ Copyright (C) 2005-2010 Ianaré Sévi 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 ...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python # encoding:utf-8 import re import os,sys selfpath = os.path.split(os.path.realpath(__file__))[0] PATH = os.path.abspath(os.path.join(selfpath, '..')) sys.path.append(PATH) from crawler import settings # your project settings file from django.core.management import setup_environ # environment set...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env bash # Copyright IBM Corp. 2016, 2025 # SPDX-License-Identifier: BUSL-1.1 set -e binpath=${VAULT_INSTALL_DIR}/vault fail() { echo "$1" 1>&2 return 1 } test -x "$binpath" || fail "unable to locate vault binary at $binpath" [[ -z "$VAULT_ADDR" ]] && fail "VAULT_ADDR env variable has not been set" ...
unknown
github
https://github.com/hashicorp/vault
enos/modules/vault_proxy/scripts/set-up-approle-and-proxy.sh
#!/usr/bin/env python # # Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Runs all types of tests from one unified interface.""" import argparse import collections import logging import os import shutil ...
unknown
codeparrot/codeparrot-clean
import os import sys import codecs from ._compat import PY2 # If someone wants to vendor click, we want to ensure the # correct package is discovered. Ideally we could use a # relative import here but unfortunately Python does not # support that. click = sys.modules[__name__.rsplit('.', 1)[0]] def _find_unicode_lit...
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...
typescript
github
https://github.com/apache/airflow
airflow-core/src/airflow/ui/src/pages/Dashboard/HistoricalMetrics/DagRunMetrics.tsx
# # Paasmaker - Platform as a Service # # 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/. # import time import json import uuid import logging import os import paasmaker...
unknown
codeparrot/codeparrot-clean
from __future__ import absolute_import """ Tests for the incremental XML serialisation API. From lxml """ from io import BytesIO import unittest import tempfile, os, sys from .common_imports import etree, HelperTestCase, skipIf from .. import xmlfile as etree import pytest from openpyxl.tests.helper import compar...
unknown
codeparrot/codeparrot-clean
#!/usr/bin/env python from lxml import objectify import argparse import os import codecs import gzip # init constants and vars RAWDATADIR = 'opengov.cat/rawdata/xml/' # use 'wget -r -np http://opengov.cat/rawdata/xml/ to download files' start = {} end = {} entity = {} # load entities def read(): files = [ f for f...
unknown
codeparrot/codeparrot-clean
package layer import ( "io" "github.com/docker/distribution" ) func (ls *layerStore) RegisterWithDescriptor(ts io.Reader, parent ChainID, descriptor distribution.Descriptor) (Layer, error) { return ls.registerWithDescriptor(ts, parent, descriptor) }
go
github
https://github.com/moby/moby
daemon/internal/layer/layer_store_windows.go