max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,071
#------------------------------------------------------------------------------ # Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved. #------------------------------------------------------------------------------ #------------------------------------------------------------------------------ ...
1,060
363
<gh_stars>100-1000 package cn.sddman.download.mvp.p; public class AppConfigPresenterImp implements AppConfigPresenter { @Override public void getMagnetWebRule() { } }
67
1,640
<gh_stars>1000+ package com.gitblit.utils; import org.apache.commons.codec.DecoderException; import org.apache.commons.codec.binary.Hex; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.PBEKeySpec; import java.security.NoSuchAlgorithmException; im...
2,859
956
<reponame>ajitkhaparde/trex-core /* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2017 Intel Corporation */ #ifndef _OPDL_EVDEV_H_ #define _OPDL_EVDEV_H_ #include <rte_eventdev.h> #include <eventdev_pmd_vdev.h> #include <rte_atomic.h> #include "opdl_ring.h" #define OPDL_QID_NUM_FIDS 1024 #define OPDL_IQS_MA...
3,217
4,879
<reponame>vicpopov/omim<gh_stars>1000+ import unittest from pylocal_ads import (Campaign, Version, serialize, deserialize) class PyLocalAdsTest(unittest.TestCase): def assert_equal_campaigns(self, lhs, rhs): self.assertEqual(len(lhs), len(rhs)) for i in range(0, len(lhs)): self.asse...
784
634
<reponame>gwhitehawk/zentral # Generated by Django 2.2.3 on 2019-09-29 13:25 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('munki', '0005_auto_20190227_1132'), ] operations = [ migrations.RemoveField( model_name='munkistate', ...
170
796
<reponame>harmonyos-mirror/OpenArkCompiler-test<filename>src/maple_be/mdgen/src/mdparser.cpp /* * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under the Mulan PSL v1. * You can use this software according to the terms and conditions of the Mulan PSL v1. * Yo...
5,366
852
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer ecalPreshowerRecHitsValidation = DQMEDAnalyzer('EcalPreshowerRecHitsValidation', EErechitCollection = cms.InputTag("ecalRecHit","EcalRecHitsEE"), ESrechitCollection = cms.InputTag("ecalPreshowerRecHit","EcalRecHit...
182
3,913
<gh_stars>1000+ """ This script allows to resample a folder which contains audio files. The files are parsed recursively. An exact copy of the folder is created, with same structure but contained resampled audio files. Resampling is performed by using sox through torchaudio. Author ------ <NAME>, 2020 """ import os i...
854
345
<reponame>cdoebler1/AIML2 import unittest from programy.security.authorise.usergroups import Authorisable from programy.security.authorise.usergroups import Group from programy.security.authorise.usergroups import User class UserGroupTests(unittest.TestCase): def test_users(self): user = User("keith") ...
1,606
5,079
<reponame>JBKahn/django import warnings from django.conf.urls import url from django.test import SimpleTestCase, override_settings from django.urls import reverse from .views import empty_view urlpatterns = [ url(r'^(?i)CaseInsensitive/(\w+)', empty_view, name="insensitive"), url(r'^(?i)test/2/?$', empty_vie...
545
2,112
<filename>thrift/lib/cpp2/async/HeaderChannelTrait.h /* * Copyright (c) Facebook, Inc. and its affiliates. * * 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...
331
335
<gh_stars>100-1000 { "word": "Abyss", "definitions": [ "A deep or seemingly bottomless chasm.", "A wide or profound difference between people; a gulf.", "The regions of hell conceived of as a bottomless pit.", "A catastrophic situation seen as likely to occur." ], "parts-...
128
399
<filename>Source/Lib/Common/Codec/EbIntraPrediction.c // clang-format off /* * Copyright(c) 2019 Intel Corporation * Copyright (c) 2016, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD ...
55,388
4,036
<reponame>madhurimamandal/codeql // Generated automatically from javax.servlet.ServletRequest for testing purposes package javax.servlet; import java.io.BufferedReader; import java.util.Enumeration; import java.util.Locale; import java.util.Map; import javax.servlet.AsyncContext; import javax.servlet.DispatcherType; ...
599
634
<gh_stars>100-1000 /* * Copyright 2000-2009 JetBrains s.r.o. * * 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 app...
643
496
<reponame>jamescodesthings/android-runtime<gh_stars>100-1000 /* Software Name : AsmDex * Version : 1.0 * * Copyright © 2012 France Télécom * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met:...
1,290
648
<reponame>swrobel/fhir {"resourceType":"DataElement","id":"MedicationStatement","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/MedicationStatement","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":"MedicationStatement","short":"Record ...
579
846
package com.dslplatform.json.models; import com.dslplatform.json.CompiledJson; import com.dslplatform.json.JsonAttribute; import java.util.ArrayList; import java.util.List; @CompiledJson public class CollectionNoSetter { private int x; public int getX() { return x; } public void setX(int x) {...
203
5,169
<gh_stars>1000+ { "name": "xbabyx", "version": "1.0.0", "summary": "XBabyX project is sample xc framework for now", "description": "This is a large framework in XBabyX project. This is a large framework in XBabyX project", "homepage": "https://admin.kimhinata.com", "license": { "type": "Copyright", ...
290
2,291
<filename>OpenStreetMapViewer/src/main/java/org/osmdroid/samplefragments/location/package-info.java<gh_stars>1000+ /** * Samples related to plotting and working with the device's location */ package org.osmdroid.samplefragments.location;
74
2,661
/* * Copyright 2017 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 agreed to...
927
14,793
<filename>weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenMaBasicServiceImpl.java package me.chanjar.weixin.open.api.impl; import cn.binarywang.wx.miniapp.api.WxMaService; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import me.chanjar.weixin.common.error.WxErrorException; i...
1,953
764
<gh_stars>100-1000 /*- * << * sag * == * Copyright (C) 2019 sia * == * 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...
2,753
2,443
<filename>test/test-integration/src/test/java/com/alipay/sofa/rpc/server/rest/RestLookoutTest.java /* * 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. * T...
5,898
2,415
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 from ..azure_common import BaseTest, arm_template class DiskTest(BaseTest): def setUp(self): super(DiskTest, self).setUp() def test_azure_disk_schema_validate(self): with self.sign_out_patch(): p = self...
493
923
package core.webui.server.handlers.internals.menu; import java.io.IOException; import org.apache.http.HttpException; import org.apache.http.HttpRequest; import org.apache.http.nio.protocol.HttpAsyncExchange; import org.apache.http.protocol.HttpContext; import core.webui.server.handlers.AbstractSingleMethodHttpHandle...
281
3,193
#define SOL_ALL_SAFETIES_ON 1 #include <sol/sol.hpp> #include <iostream> int main() { sol::state lua; // open those basic lua libraries // again, for print() and other basic utilities lua.open_libraries(sol::lib::base); // value in the global table lua["bark"] = 50; // a table being created...
403
1,131
<filename>src/generated/resources/assets/create/models/item/wooden_bracket.json { "parent": "create:block/bracket/item", "textures": { "bracket": "create:block/bracket_wooden", "plate": "create:block/bracket_plate_wooden" } }
92
679
/************************************************************** * * 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 y...
1,043
312
<reponame>RonRahaman/nekRS #ifndef OCCA_TYPES_HEADER #define OCCA_TYPES_HEADER #include <occa/types/bits.hpp> #include <occa/types/dim.hpp> #include <occa/types/generic.hpp> #include <occa/types/primitive.hpp> #include <occa/types/tuples.hpp> #include <occa/types/typedefs.hpp> #include <occa/types/typeinfo.hpp> #endi...
150
1,566
package home.smart.fly.animations.widget.clearbadge.impl; import android.annotation.TargetApi; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Build; import android.os.Bundle; import java.io.BufferedReader; import java.io.I...
2,680
3,066
/* * Licensed to Crate.io GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Apache License, Version 2.0 (the "License"); * you may not use this f...
3,471
1,826
<reponame>niklasf/flexmark-java package com.vladsch.flexmark.ext.spec.example; import org.junit.runner.RunWith; import org.junit.runners.Suite; @RunWith(Suite.class) @Suite.SuiteClasses({ ComboSpecExampleSpecTest.class, }) public class ExtSpecExampleTestSuite { }
107
507
# tests/test_provider_mrcrilly_awx.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:12:44 UTC) def test_provider_import(): import terrascript.provider.mrcrilly.awx def test_resource_import(): from terrascript.resource.mrcrilly.awx import awx_credential_azure_key_vault from terrascript....
418
557
<reponame>Xanthippe666/Paddle.js { "name": "@paddlejs/paddlejs-backend-webgpu", "version": "0.0.2-beta.3", "lockfileVersion": 1, "requires": true, "dependencies": { "@webgpu/glslang": { "version": "0.0.12", "resolved": "https://registry.npmjs.org/@webgpu/glslang/-/glslang-0.0.12.tgz", "i...
258
2,151
<filename>chromecast/device/bluetooth/le/mock_remote_device.h // Copyright 2018 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. #ifndef CHROMECAST_DEVICE_BLUETOOTH_LE_MOCK_REMOTE_DEVICE_H_ #define CHROMECAST_DEVICE_BLUET...
864
360
from fal import DbtModel from unittest.mock import MagicMock def assert_contains_only(thisList, otherList): assert len(thisList) == len(otherList) for other in otherList: assert other in thisList def create_mock_model( parsedNodeMockInstance, name, script_paths, depends_on_models, ...
320
381
import contextlib import os import threading import time import typing import pytest import trustme from httpcore._types import URL from .utils import HypercornServer, LiveServer, Server, http_proxy_server try: import hypercorn except ImportError: # pragma: no cover # Python 3.6 hypercorn = None # type: ...
2,304
863
<reponame>ben-mathu/apps-android-commons<filename>app/src/main/java/fr/free/nrw/commons/utils/SystemThemeUtils.java package fr.free.nrw.commons.utils; import android.content.Context; import android.content.res.Configuration; import javax.inject.Inject; import javax.inject.Named; import fr.free.nrw.commons.kvstore.Js...
663
718
# Copyright (c) OpenMMLab. All rights reserved. import os import mmcv from mmcv.runner import HOOKS, Hook, master_only @HOOKS.register_module() class PetrelUploadHook(Hook): """Upload Data with Petrel. With this hook, users can easily upload data to the cloud server for saving local spaces. Please read ...
2,058
2,151
// Copyright 2018 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. #ifndef SERVICES_UI_WS_ASYNC_EVENT_DISPATCHER_LOOKUP_H_ #define SERVICES_UI_WS_ASYNC_EVENT_DISPATCHER_LOOKUP_H_ #include "services/ui/common/types.h" na...
264
872
/* Olly Heap Vis - Call Back Functions Copyright (C) 2005 <NAME> <<EMAIL>,<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at yo...
2,619
389
<reponame>dmcreyno/gosu-lang<filename>gosu-core/src/main/java/gw/internal/gosu/template/TemplateGenerator.java<gh_stars>100-1000 /* * Copyright 2014 <NAME>, Inc. */ package gw.internal.gosu.template; import gw.internal.gosu.parser.CommonSymbolsScope; import gw.internal.gosu.parser.CompiledGosuClassSymbolTable; impo...
14,001
327
"""Laplacian matrix.""" import enum import numpy as np EPS = 1e-10 class LaplacianType(enum.Enum): """Different types of Laplacian matrix.""" # The affinity matrix, not a Laplacian: W Affinity = enum.auto() # The unnormalied Laplacian: L = D - W Unnormalized = enum.auto() # The random walk view normal...
670
2,728
<reponame>m5o/passenger<gh_stars>1000+ /* * Phusion Passenger - https://www.phusionpassenger.com/ * Copyright (c) 2011-2018 Phusion Holding B.V. * * "Passenger", "Phusion Passenger" and "Union Station" are registered * trademarks of Phusion Holding B.V. * * Permission is hereby granted, free of charge, to a...
13,823
734
<filename>modules/tracktion_engine/3rd_party/airwindows/TapeDelay/TapeDelayProc.cpp /* ======================================== * TapeDelay - TapeDelay.h * Copyright (c) 2016 airwindows, All rights reserved * ======================================== */ #ifndef __TapeDelay_H #include "TapeDelay.h" #endif void Tap...
7,130
306
<filename>app/src/main/java/com/hlsp/video/ui/main/adapter/HistoryVideoAdapter.java package com.hlsp.video.ui.main.adapter; import android.content.Context; import android.view.ViewGroup; import com.hlsp.video.R; import com.hlsp.video.bean.VideoListItem; import cn.share.jack.cygwidget.recyclerview.adapter.CygBaseRecy...
306
549
from datetime import date from django import template register = template.Library() @register.filter def smart_date(updated_at): delta = date.today() - updated_at.date() if delta.days == 0: return 'Today at {}'.format(updated_at.strftime("%H:%M")) elif delta.days == 1: return 'Yesterday a...
193
777
<gh_stars>100-1000 /* * Copyright (c) 2013, 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, t...
1,243
473
/* * Copyright (C) <NAME> <<EMAIL>> * * 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 limitation * the rights to use, copy, modify, merge, publish...
882
60,067
<gh_stars>1000+ #include <array> #include <vector> #include <ATen/ATen.h> #include <ATen/native/quantized/cpu/conv_packed_params.h> #include <ATen/native/quantized/cpu/fbgemm_utils.h> #include <ATen/native/quantized/cpu/init_qnnpack.h> #include <ATen/native/quantized/cpu/qnnpack_utils.h> #include <ATen/native/quantize...
7,791
3,861
/** @file I/O and MMIO Library Services that do I/O and also enable the I/O operatation to be replayed during an S3 resume. Copyright (c) 2006 -2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Base.h> #include <Library/S3IoLib.h> #inc...
44,017
3,305
import mock from scrapy.settings import Settings from scrapy_redis import defaults from scrapy_redis.connection import ( from_settings, get_redis, get_redis_from_settings, ) class TestGetRedis(object): def test_default_instance(self): server = get_redis() assert isinstance(server, d...
938
646
<reponame>zhyinty/HeliumRain #pragma once #include "../../Flare.h" #include "../../Spacecrafts/Subsystems/FlareSimulatedSpacecraftDamageSystem.h" #include "../../Spacecrafts/FlareSpacecraftComponent.h" class SFlareSubsystemStatus : public SCompoundWidget { /*---------------------------------------------------- Sl...
632
473
<gh_stars>100-1000 package client.yalantis.com.foldingtabbarandroid; import android.animation.Animator; import android.annotation.TargetApi; import android.app.Fragment; import android.os.Build; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.annotation.RequiresApi; import ...
822
1,686
{ "Typ": "<KEY>", "Val": "<KEY> "Err": null }
24
2,728
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE.txt in the project root for # license information. # ------------------------------------------------------------------------- import pyte...
9,762
713
package org.infinispan.logging.processor; import java.io.BufferedWriter; import java.io.IOException; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; import javax.annotation.processing.AbstractProcessor; import javax.annotation.processing.Proces...
1,417
9,953
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.internet.posixbase} and supporting code. """ from __future__ import division, absolute_import from twisted.trial.unittest import TestCase from twisted.internet.defer import Deferred from twisted.internet.posixbase import ...
3,806
333
// // YSCSeaGLView.h // // // Created by yushichao on 16/3/18. // // #import <UIKit/UIKit.h> #import <QuartzCore/QuartzCore.h> #include <OpenGLES/ES2/gl.h> #include <OpenGLES/ES2/glext.h> @interface YSCSeaGLView : UIView { CAEAGLLayer* _eaglLayer; EAGLContext* _context; GLuint _colorRenderBuffer; GL...
341
5,169
{ "name": "Croc", "version": "0.0.2", "summary": "Elegant Emoji Parsing in Swift", "description": "Croc is a library for parsing emojis on iOS. It provides a simple and lightweight interface for detecting, generating, categorizing and managing emoji characters, making emoji-powered features an easy task for dev...
284
2,151
<filename>ui/gfx/range/mojo/range_struct_traits.h // Copyright 2016 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. #ifndef UI_GFX_RANGE_MOJO_RANGE_STRUCT_TRAITS_H_ #define UI_GFX_RANGE_MOJO_RANGE_STRUCT_TRAITS_H_ #incl...
500
764
<reponame>641589523/token-profile {"symbol": "CBG","address": "0x1900E8B5619a3596745F715d0427Fe617c729BA9","overview":{"en": ""},"email": "","website": "https://www.chainbing.io/#/","state": "NORMAL","links": {"blog": "https://medium.com/@ChainBing","twitter": "https://twitter.com/Chain_Bing","telegram": "","github": "...
122
334
<filename>nxt/src/java/nxt/addons/StartForging.java<gh_stars>100-1000 /* * Copyright © 2016-2020 Jelurida IP B.V. * * See the LICENSE.txt file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with Jelurida B.V., * no part of ...
346
1,159
#ifndef ANIM_CONTROL #define ANIM_CONTROL #include <functional> #include "base/anim/controllable.h" #include "base/refl/enum.h" #include "base/util/event.h" namespace Anim { class Control { public: class Enum(PlayState)( paused, running ); class Enum(Direction)( normal, reverse ); typedef std::function<void()> ...
532
6,969
<gh_stars>1000+ class Solution: def searchRange(self, nums: List[int], target: int) -> List[int]: def binary(target, left, right): if left > right: return left mid = (left+right)//2 if target > nums[mid]: left = mid+1 else: ...
288
852
<filename>Validation/RecoVertex/python/PostProcessorVertex_cff.py import FWCore.ParameterSet.Config as cms from Validation.RecoVertex.PostProcessorV0_cfi import * from Validation.RecoVertex.PrimaryVertexAnalyzer4PUSlimmed_Client_cfi import * postProcessorVertexSequence = cms.Sequence( postProcessorVertex + p...
146
1,338
/* * For license terms, see the file COPYING in this directory. * * md5global.h Global declarations for MD5 module used by fetchmail * */ #ifndef MD5GLOBAL_H__ #define MD5GLOBAL_H__ /* GLOBAL.H - RSAREF types and constants */ /* force prototypes on, we need ANSI C anyway */ #ifndef PROTOTYPES #define PROTOT...
311
14,668
// Copyright 2019 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. #include <cstdint> #include <memory> #include <string> #include <vector> #include "ash/constants/ash_switches.h" #include "base/command_line.h" #include ...
6,581
1,020
<reponame>icse18-refactorings/RoboBinding package org.robobinding.robolectric; import java.io.File; import org.robobinding.R; import org.robolectric.res.Fs; import org.robolectric.res.FsFile; import org.robolectric.util.Util; /** * @since 1.0 * @version * @author <NAME> * */ public class TestUti...
269
608
// Copyright 2009 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 agreed to in ...
2,161
3,138
<reponame>slowy07/tf-quant-finance # Lint as: python3 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unles...
5,443
543
package com.riiablo.table.schema; import com.riiablo.CharacterClass; import com.riiablo.table.annotation.Format; import com.riiablo.table.annotation.PrimaryKey; import com.riiablo.table.annotation.Schema; @Schema @SuppressWarnings("unused") public class Skills { public static int getClassId(String charClass) { ...
652
879
<filename>sdk/src/main/java/org/zstack/sdk/RunningTaskInfo.java package org.zstack.sdk; public class RunningTaskInfo extends org.zstack.sdk.TaskInfo { }
59
435
<reponame>amaajemyfren/data { "copyright_text": "Creative Commons Attribution license (reuse allowed)", "description": "You've probably heard of PyPy. It's an interpreter that can make your Python fast. Really fast. We'll talk about some fundamentals & lessons learned from running PyPy in large scale production dep...
318
500
package com.zulip.android.activities; import android.support.v7.app.AppCompatActivity; import com.zulip.android.ZulipApp; import com.zulip.android.service.ZulipServices; public abstract class BaseActivity extends AppCompatActivity { protected ZulipApp getApp() { return ZulipApp.get(); } protec...
146
304
from typing import List from setuptools import find_packages from setuptools import setup def get_install_requires() -> List[str]: return [ "PyYAML", "ml_metrics", "optuna>=1.3.0", "lightgbm", "scikit-learn", "pyarrow", ] def get_tests_require() -> List[str]...
306
2,023
dbh = dbi.connect("DBI:mysql:database=mydatabase", "myysername", RaiseError = 1, PrintError = 0, AutoCommit = 1, ) try: dbh["AutoCommit"] = 0 except: print "Can't turn off AutoCommit" sth = dbh.prepare("select * from foo limit 5") sth.exec...
225
1,350
<reponame>billwert/azure-sdk-for-java<filename>sdk/resourcemanagerhybrid/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generate...
7,830
3,579
<reponame>ddcruver/querydsl<filename>querydsl-codegen/src/test/java/com/querydsl/codegen/EntityInheritanceTest.java package com.querydsl.codegen; import com.querydsl.core.annotations.QueryEntity; import com.querydsl.core.annotations.QuerySupertype; public class EntityInheritanceTest extends AbstractExporterTest { ...
204
1,288
// Copyright 2015 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 or at // https://developers.google.com/open-source/licenses/bsd #include "packager/media/codecs/avc_decoder_configuration_record.h" #include <gtest/gtest.h> nam...
3,950
328
<filename>library/src/main/java/com/google/android/material/motion/tweens/MaterialAnimator.java /* * Copyright 2017-present The Material Motion 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 ...
931
375
package io.lumify.web.devTools; import com.google.inject.Inject; import io.lumify.core.config.Configuration; import io.lumify.core.model.user.UserRepository; import io.lumify.core.model.workQueue.WorkQueueRepository; import io.lumify.core.model.workspace.WorkspaceRepository; import io.lumify.core.util.LumifyLogger; im...
1,426
419
<filename>Resources/Services/Export/Dialog/ConditionRendering/ScribanRenderingEngine/RenderingObjects/ScribanQuestStateConditionData.de.json { "PlaceholderDesc_Quest": "Quest dessen Zustand geprüft wird", "PlaceholderDesc_QuestState": "Zustand auf den geprüft wird. Kann <i>NotStarted</i>, <i>InProgress</i>, <...
140
679
<filename>main/chart2/source/view/main/ChartView.cxx /************************************************************** * * 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 cop...
63,273
30,023
"""Sensor to collect the reference daily prices of electricity ('PVPC') in Spain.""" from __future__ import annotations from collections.abc import Mapping from datetime import datetime import logging from typing import Any from homeassistant.components.sensor import ( SensorEntity, SensorEntityDescription, ...
3,157
5,364
{ "date": "2013-04-22", "name": "20 Point List For Preventing Cross-Site Scripting In PHP", "remark": "<NAME>'s advice on building software that isn't vulnerable to XSS", "url": "http://blog.astrumfutura.com/2013/04/20-point-list-for-preventing-cross-site-scripting-in-php" }
112
308
package org.getopentest.appium.core; import org.getopentest.util.Config; import org.openqa.selenium.By; /** * Stores all information necessary to perform a swipe (the swipe direction, the * element to look for while swiping, what is the swipe container element and * the offsets from the sides of its edges, etc.). ...
1,129
375
import sys print("#include<stddef.h>") verts=[] faces=[] normals=[] for l in open(sys.argv[1],'r'): lp=l.split() if(len(lp)==0): pass elif(lp[0]=='v'): verts.append(lp[1:]) elif(lp[0]=='vn'): normals.append(lp[1:]) elif(lp[0]=='f'): nfi=[] for f in lp[1:]: fp=f.split('//') if(fp[0] != fp[1]): ...
600
406
<gh_stars>100-1000 /*************************************************************************** * include/stxxl/bits/containers/stack.h * * Part of the STXXL. See http://stxxl.sourceforge.net * * Copyright (C) 2003-2004 <NAME> <<EMAIL>> * Copyright (C) 2009, 2010 <NAME> <<EMAIL>> * * Distributed under the ...
14,478
4,526
<reponame>EricWang1hitsz/osrm-backend<filename>third_party/sol2/sol/load_result.hpp<gh_stars>1000+ // sol2 // The MIT License (MIT) // Copyright (c) 2013-2018 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentat...
1,733
412
package com.simpligility.maven.plugins.android.configuration; import org.apache.maven.plugin.MojoExecutionException; /** * Interface for parsing version names into version elements. * * @author <NAME> - <EMAIL> * */ public interface VersionElementParser { int[] parseVersionElements( final String versionName...
103
879
package org.zstack.sdk; import org.zstack.sdk.SharedBlockGroupType; public class SharedBlockGroupPrimaryStorageInventory extends org.zstack.sdk.PrimaryStorageInventory { public java.util.List sharedBlocks; public void setSharedBlocks(java.util.List sharedBlocks) { this.sharedBlocks = sharedBlocks; ...
245
1,958
package com.freetymekiyan.algorithms.level.easy; /** * 278. First Bad Version * <p> * You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of * your product fails the quality check. Since each version is developed based on the previous version, all the ...
996
3,645
/* * Copyright (c) 2015 <NAME> * * 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 limitation the rights * to use, copy, modify, merge, publish, dis...
6,953
14,668
<reponame>zealoussnow/chromium // 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. package org.chromium.base.test.util; import android.content.ComponentCallbacks; import android.content.ContentResolver; im...
739
52,316
<reponame>shawwn/cpython import os from test.support import load_package_tests from test.support import import_helper # Skip tests if we don't have concurrent.futures. import_helper.import_module('concurrent.futures') def load_tests(*args): return load_package_tests(os.path.dirname(__file__), *args)
102
989
<gh_stars>100-1000 # -*- coding: utf-8 -*- """Code for dealing with optional dependencies The functionality in this file is largely based on similar functionality in the Pandas library. Author: <NAME> Copyright: 2020, The Alan Turing Institute License: See LICENSE file. """ import distutils.version import importl...
833
555
/* * 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 ...
468