max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
312
#include <occa/internal/c/types.hpp> #include <occa/c/dtype.h> OCCA_START_EXTERN_C //-----[ Methods ]---------------------- occaDtype occaCreateDtype(const char *name, const int bytes) { return occa::c::newOccaType( *(new occa::dtype_t(name, bytes)) ); } occaDtype occaCreateDtypeTup...
2,600
2,219
<gh_stars>1000+ /* * Copyright 2017-2021 Baidu 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 applicab...
1,696
9,136
<filename>thirdparty/bullet/Bullet3OpenCL/RigidBody/b3GpuPgsContactSolver.h #ifndef B3_GPU_BATCHING_PGS_SOLVER_H #define B3_GPU_BATCHING_PGS_SOLVER_H #include "Bullet3OpenCL/Initialize/b3OpenCLInclude.h" #include "Bullet3OpenCL/ParallelPrimitives/b3OpenCLArray.h" #include "Bullet3Collision/NarrowPhaseCollision/shared...
800
310
{ "name": "<NAME>", "description": "A Chrome extension for Gmail that underlines when you apologise.", "url": "https://chrome.google.com/webstore/detail/just-not-sorry-the-gmail/fmegmibednnlgojepmidhlhpjbppmlci" }
79
324
<reponame>tormath1/jclouds /* * 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 ...
1,391
14,793
package me.chanjar.weixin.common.bean; import lombok.Data; import me.chanjar.weixin.common.util.json.WxGsonBuilder; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * 网络检测. * @author billytomato */ @Data public class WxNetCheckResult implements Serializable { private static fi...
373
27,296
#ifndef CONTENT_NW_SRC_API_BASE_BASE_MAC_H_ #define CONTENT_NW_SRC_API_BASE_BASE_MAC_H_ #import <Foundation/Foundation.h> @interface NSObject (AssociatedObject) @property (nonatomic, assign) void* associatedObject; @end #endif // CONTENT_NW_SRC_API_BASE_BASE_MAC_H_
113
2,011
{ "env": { "SNAPSHOT_BASE_DIRECTORY": "./cypress/snapshots/base", "SNAPSHOT_DIFF_DIRECTORY": "./cypress/snapshots/diff" }, "screenshotsFolder": "./cypress/snapshots/actual", "trashAssetsBeforeRuns": true, "viewportHeight": 1600, "viewportWidth": 1200 }
114
892
{ "schema_version": "1.2.0", "id": "GHSA-ffpp-v4vp-9vvh", "modified": "2022-05-02T00:09:44Z", "published": "2022-05-02T00:09:44Z", "aliases": [ "CVE-2008-4405" ], "details": "xend in Xen 3.0.3 does not properly limit the contents of the /local/domain xenstore directory tree, and does not properly rest...
1,224
8,772
<filename>support/cas-server-support-oauth-uma/src/test/java/org/apereo/cas/uma/ticket/rpt/UmaRequestingPartyTokenSigningServiceTests.java package org.apereo.cas.uma.ticket.rpt; import org.apereo.cas.uma.web.controllers.BaseUmaEndpointControllerTests; import lombok.val; import org.apache.commons.io.FileUtils; import ...
540
1,755
/*========================================================================= Program: Visualization Toolkit Module: vtkAMRUtilities.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT ANY W...
1,560
323
import pytest from parsl.app.app import python_app @python_app def always_fail(): raise ValueError("This ValueError should propagate to the app caller in fut.result()") def test_simple(): with pytest.raises(ValueError): fut = always_fail() fut.result()
99
376
<filename>Lib/Chip/Unknown/Toshiba/M365/TB6.hpp<gh_stars>100-1000 #pragma once #include <Register/Utility.hpp> namespace Kvasir { //16-bit Timer_Event Counter (TB) namespace Tb6En{ ///<TB Enable Register using Addr = Register::Address<0x400c4600,0xffffff3f,0x00000000,unsigned>; ///TBHALT ...
2,919
454
<filename>evalml/pipelines/components/transformers/samplers/__init__.py<gh_stars>100-1000 """Sampler components.""" from .undersampler import Undersampler from .oversampler import Oversampler
62
5,169
{ "name": "DKToolkits", "version": "0.0.1", "summary": "a set of toolkits can be used in development", "description": "this toolkits provides many useful methods to developer", "homepage": "https://github.com/DK-Coder/DKToolkits", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { ...
233
2,151
/* * Copyright (C) 2004, 2005, 2006, 2007 <NAME> <<EMAIL>> * Copyright (C) 2004, 2005 <NAME> <<EMAIL>> * Copyright (C) 2005 <NAME> <<EMAIL>> * Copyright (C) 2009 <NAME> <<EMAIL>> * Copyright (C) 2013 Google Inc. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it u...
3,241
49,742
package com.thealgorithms.sorts; import java.util.Random; // https://en.wikipedia.org/wiki/Odd%E2%80%93even_sort public class OddEvenSort { public static void main(String[] args) { int[] arr = new int[100]; Random random = new Random(); // Print out unsorted elements for (int i ...
880
4,372
/* * 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 ...
4,277
1,248
# # This file is part of pretix (Community Edition). # # Copyright (C) 2014-2020 <NAME> and contributors # Copyright (C) 2020-2021 rami.io GmbH and contributors # # This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General # Public License as published by the Free...
1,349
460
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
743
557
<reponame>natefortuna/BIND //////////////////////////////////////////////////////////////////////////////// // // <NAME> // Copyright 2012 <NAME> // All Rights Reserved. // // NOTICE: <NAME> permits you to use, modify, and distribute this file // in accordance with the terms of the license agreement accompanying i...
406
852
<gh_stars>100-1000 #ifndef RecoMuon_MuonSeedGenerator_MuonSeedMerger_H #define RecoMuon_MuonSeedGenerator_MuonSeedMerger_H /** \class MuonSeedMerger * Module to merge two or more muon seed collections. * Currently it does not contain any seed cleaner, so the number of ghosts seed * can be high. * This is still...
427
3,897
/* EMW3080B implementation of NetworkInterfaceAPI * Copyright (c) STMicroelectronics 2021 * SPDX-License-Identifier: Apache-2.0 * * 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 * * ...
3,532
378
/* * 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...
566
1,248
<reponame>konistehrad/rpi-vk-driver #include <stdio.h> #include <string.h> #include <stdlib.h> #include "qpu_assembler.h" #include "shaders.h" int main() { #define shader singleTextureClippingPlane_AlphaGE80_DstOneMinusSrcAlpha_SrcSrcAlpha_DepthStencilEnabled_FS for(uint32_t c = 0; c < sizeof(shader)/sizeof(uint64_...
171
2,151
<reponame>zipated/src<filename>gpu/command_buffer/service/feature_info.h // 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. #ifndef GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ #define GPU_COMMAND_BUFFER...
3,022
666
<reponame>djaen/lite-app- // // QIYIContainerCombine.h // QIYIMiniProgram // // Created by Breakerror on 2018/3/1. // Copyright © 2018年 Breakerror. All rights reserved. // #import "QIYIContainer.h" @interface QIYIContainerCombine: UIView -(instancetype) init:(NSUInteger)num; -(QIYIContainer*) at:(NSUInteger)index...
148
1,350
<reponame>Manny27nyc/azure-sdk-for-java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.mixedreality.remoterendering.implementation.models; import com.azure.core.annotation.Fluent; import com....
1,076
1,020
<filename>data-service/src/test/java/com/amazonaws/blox/dataservice/api/ListClustersApiTest.java /* * Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy ...
1,095
841
package com.gzsll.hupu.ui.thread.list; import com.gzsll.hupu.injector.PerActivity; import com.gzsll.hupu.injector.component.ApplicationComponent; import com.gzsll.hupu.injector.module.ActivityModule; import dagger.Component; /** * Created by sll on 2016/5/13. */ @PerActivity @Component(dependencies = ApplicationCo...
170
384
<filename>MediaPlayer/src/test/java/net/protyposis/android/mediaplayer/TimelineTest.java /* * Copyright 2018 <NAME> <<EMAIL>> * * 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 * * ht...
1,888
1,420
/* * * Copyright 2015 Netflix, 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 ap...
1,727
683
/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.javaagent.instrumentation.spring.rabbit; import com.google.auto.service.AutoService; import io.opentelemetry.instrumentation.api.config.Config; import io.opentelemetry.javaagent.extension.ignore.IgnoredTypesB...
348
995
/*! @file Defines `boost::hana::detail::ebo`. @copyright <NAME> 2013-2016 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_DETAIL_EBO_HPP #define BOOST_HANA_DETAIL_EBO_HPP #include <boost/hana/...
1,594
450
#!/usr/bin/env python # 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 # "Li...
538
49,076
<gh_stars>1000+ /* * Copyright 2002-2012 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 * * Unle...
467
994
<gh_stars>100-1000 #include <bits/stdc++.h> using namespace std; int main() { long long int n, t, i, ans; string s; cin>>n; ans = 0; for(i=0;i<n;i++){ cin>>t>>s; if(s=="South"){ ans=ans+t; } else if(s=="North"){ ans=ans-t; } els...
381
2,151
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GrGLSLXferProcessor_DEFINED #define GrGLSLXferProcessor_DEFINED #include "SkPoint.h" #include "glsl/GrGLSLProgramDataManager.h" #include "glsl/GrGLSLUniformHandler.h"...
2,205
892
{ "schema_version": "1.2.0", "id": "GHSA-qp8r-w6q9-596j", "modified": "2022-05-01T02:00:15Z", "published": "2022-05-01T02:00:15Z", "aliases": [ "CVE-2005-1601" ], "details": "MRO Maximo Self Service 4 and 5 stores certain information under the web document root using file extensions that are not proce...
539
11,396
<reponame>DamoR25/awxnew<gh_stars>1000+ # Copyright (c) 2017 Ansible, Inc. # All Rights Reserved. from uuid import uuid4 from django.conf import LazySettings from django.core.cache.backends.locmem import LocMemCache from django.core.exceptions import ImproperlyConfigured from django.utils.translation import ugettext_...
2,527
1,253
<reponame>CarbonDDR/al-go-rithms<filename>dp/Recursive_Staircase_Problem/recursive_staircase_problem_python_steps_DP.py # There's a staircase with N steps, and you can climb 1 or 2 steps at a time. Given N, write a function that returns the number of unique # ways you can climb the staircase. The order of the steps mat...
582
348
{"nom":"Lovagny","circ":"1ère circonscription","dpt":"Haute-Savoie","inscrits":925,"abs":491,"votants":434,"blancs":24,"nuls":6,"exp":404,"res":[{"nuance":"REM","nom":"<NAME>","voix":253},{"nuance":"LR","nom":"<NAME>","voix":151}]}
92
2,151
// Copyright 2016 The SwiftShader 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 b...
773
1,494
package com.vincent.filepicker.filter.callback; import android.content.Context; import android.database.Cursor; import android.graphics.Bitmap; import android.media.MediaMetadataRetriever; import android.media.ThumbnailUtils; import android.os.Bundle; import android.support.v4.app.LoaderManager; import android.support...
4,973
348
{"nom":"Bernot","circ":"3ème circonscription","dpt":"Aisne","inscrits":344,"abs":179,"votants":165,"blancs":8,"nuls":3,"exp":154,"res":[{"nuance":"SOC","nom":"<NAME>","voix":84},{"nuance":"FN","nom":"<NAME>","voix":70}]}
89
3,227
<reponame>ffteja/cgal // Copyright (c) 2008 <NAME> (France), ETH Zurich (Switzerland). // All rights reserved. // // This file is part of CGAL (www.cgal.org) // // $URL$ // $Id$ // SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial // // // Author(s) : <NAME>, <NAME>, <NAME> #ifndef CGAL_INTERNAL...
510
1,775
package me.threedr3am.bug.shiro.bypass.auth.realm; import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.authc.AuthenticationInfo; import org.apache.shiro.authc.AuthenticationToken; import org.apache.shiro.authc.SimpleAuthenticationInfo; import org.apache.shiro.authc.UnknownAccountException; i...
361
1,027
/** * IteratorImpl.cpp * * Implementation file of the IteratorImpl class * * @author <NAME> <<EMAIL>> * @copyright 2014 Copernica BV */ #include "includes.h" /** * Set up namespace */ namespace Php { /** * Constructor * @param zval The object that is being iterated * @param iterator ...
1,391
2,761
// Scintilla source code edit control /** @file Accessor.h ** Interfaces between Scintilla and lexers. **/ // Copyright 1998-2010 by <NAME> <<EMAIL>> // The License.txt file describes the conditions under which this software may be distributed. #ifndef ACCESSOR_H #define ACCESSOR_H namespace Lexilla { enum { wsSpa...
277
2,453
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12). // // Copyright (C) 1997-2019 <NAME>. // #import <IDEKit/NSObject-Protocol.h> @class DVTSourceControlHostedAccount, NSString, NSURL; @protocol IDESourceControlUIAvatarFetcherProtocol <NSObject> - (void)avatarForEmail:(NSSt...
172
465
package com.adhamenaya.views; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Random; public class BlockPattern { public enum BLOCK_PATTERN { SMALL, BIG, VERTICAL, HORIZONTAL, EMPTY }; BLOCK_PATTERN board[] = new BLOCK_PATTERN[8]; ArrayList<ArrayList<ArrayList<Int...
2,637
707
<reponame>shueja-personal/allwpilib // Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package edu.wpi.first.wpilibj.simulation; import static org.junit.jupiter.api.Asser...
3,329
3,372
<filename>aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/model/transform/DescribeLogStreamsRequestMarshaller.java<gh_stars>1000+ /* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this fil...
1,287
1,018
/* * Copyright 2013-2017 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
845
335
<gh_stars>100-1000 /* Copyright (C) 2016 Quaternion Risk Management Ltd All rights reserved. This file is part of ORE, a free-software/open-source library for transparent pricing and risk analysis - http://opensourcerisk.org ORE is free software: you can redistribute it and/or modify it under the terms of the M...
10,056
604
<gh_stars>100-1000 # Copyright (c) OpenMMLab. All rights reserved. # Modified from thirdparty/mmdetection/demo/image_demo.py import asyncio import glob import os from argparse import ArgumentParser from mmcv import Config from mmdet.apis import async_inference_detector, inference_detector, show_result_pyplot from sso...
1,270
1,380
# -*- coding: utf-8 -*- """ Defines the unit tests for the :mod:`colour.plotting.diagrams` module. """ import unittest from matplotlib.pyplot import Axes, Figure from colour.colorimetry import (MSDS_CMFS, SDS_ILLUMINANTS, SpectralShape, reshape_msds) from colour.plotting import (plot_c...
4,451
2,151
<reponame>zipated/src<filename>chrome/android/webapk/shell_apk/http_manifest_config.json<gh_stars>1000+ { "manifest_package": "org.chromium.webapk.http", "scope_url": "http://pwa.rocks/", "intent_filters": { "scope_url_scheme": "http", "scope_url_host": "pwa.rocks", "scope_url_path_type": "android:pat...
518
32,544
package com.baeldung.algorithms.maximumsubarray; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; class KadaneAlgorithmUnitTest { @Test void givenArrayWithNegativeNumberWhenMaximumSubarrayThenReturns6() { //given int[] arr = new int[] { -3, 1, -...
381
453
/* -------------------------------------------------------------- */ /* (C)Copyright 2001,2008, */ /* International Business Machines Corporation, */ /* Sony Computer Entertainment, Incorporated, */ /* Toshiba Corporation, ...
1,786
1,894
# 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. """Provides the web interface for displaying an overview of jobs.""" from __future__ import print_function from __future__ import division from __future__ imp...
414
521
/* $Id: IEMAllCImplSvmInstr.cpp.h $ */ /** @file * IEM - AMD-V (Secure Virtual Machine) instruction implementation. */ /* * Copyright (C) 2011-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you c...
30,818
668
<filename>projects/com.oracle.truffle.llvm.runtime/src/com/oracle/truffle/llvm/runtime/interop/convert/ToPointer.java /* * Copyright (c) 2017, 2018, Oracle and/or its affiliates. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided ...
2,682
313
<gh_stars>100-1000 import os WHSL = '\033[1;32m' ENDL = '\033[0m' REDL = '\033[0;31m' GNSL = '\033[1;34m' banner = f'''{REDL} $$\ $$\ $$\ $$\ $$\ $$\ $$\ $$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$$\ $$ | $\ $$ |\__|$$ | \__| ...
37,734
405
<filename>test/run_tests.c /* Taken from http://www.jera.com/techinfo/jtns/jtn002.html */ #include <stdio.h> #include "minunit.h" #include "problem_utils.h" #include "scs.h" /* Include Tests */ #include "problems/degenerate.h" #include "problems/hs21_tiny_qp.h" #include "problems/hs21_tiny_qp_rw.h" #include "problems...
554
367
import os.path as osp import numpy as np from mmcv.utils import build_from_cfg from mmpose.datasets import PIPELINES def test_albu_transform(): data_prefix = 'tests/data/coco/' results = dict(image_file=osp.join(data_prefix, '000000000785.jpg')) # Define simple pipeline load = dict(type='LoadImageF...
1,268
575
// 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. #include "base/task/common/operations_controller.h" #include "base/check_op.h" namespace base { namespace internal { OperationsController::OperationsCon...
1,275
515
<reponame>paulo-e/caelum-stella package br.com.caelum.stella.boleto.bancos; import br.com.caelum.stella.boleto.Beneficiario; import br.com.caelum.stella.boleto.Boleto; import br.com.caelum.stella.boleto.bancos.gerador.GeradorDeDigitoSantander; import java.net.URL; import static br.com.caelum.stella.boleto.utils.Stel...
1,258
448
<gh_stars>100-1000 import pandas as pd import quandl, math, datetime, pickle import numpy as np from sklearn import preprocessing, svm, model_selection from sklearn.linear_model import LinearRegression import matplotlib.pyplot as plt from matplotlib import style style.use('ggplot') df = quandl.get('WIKI/GO...
866
365
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
5,423
1,104
{ "html": "midgard.html", "css": "midgard.css", "authors": "<NAME>.", "roll20userID": "1492292", "preview": "Midgard.png", "instructions": "Feuille de personnage pour Les Royaumes de Midgard.", "legacy": true }
90
1,444
<filename>Mage.Tests/src/test/java/org/mage/test/cards/abilities/other/DevastationTideTest.java package org.mage.test.cards.abilities.other; import mage.constants.PhaseStep; import mage.constants.Zone; import org.junit.Test; import org.mage.test.serverside.base.CardTestPlayerBase; /** * * @author LevelX2 */ publi...
803
407
<gh_stars>100-1000 package com.alibaba.tesla.appmanager.server.provider.impl; import com.alibaba.tesla.appmanager.api.provider.NamespaceProvider; import com.alibaba.tesla.appmanager.common.exception.AppErrorCode; import com.alibaba.tesla.appmanager.common.exception.AppException; import com.alibaba.tesla.appmanager.com...
2,223
10,225
package io.quarkus.resteasy.test.asyncio; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; import javax.inject.Inject; import javax.ws.rs.GET; import javax.ws.rs.Path; import io.vertx.core.Context; import io.vertx.core.Vertx; @Path("asyncio") public class AsyncIOResource {...
269
879
import pytest import six import sqlalchemy as sa from sqlalchemy_utils import generic_relationship @pytest.fixture def Employee(Base): class Employee(Base): __tablename__ = 'employee' id = sa.Column(sa.Integer, primary_key=True) name = sa.Column(sa.String(50)) type = sa.Column(sa....
1,865
2,676
<filename>keras_tuner/engine/hypermodel.py # Copyright 2019 The KerasTuner 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 # # Unle...
2,200
348
{"nom":"Villette-lès-Dole","circ":"3ème circonscription","dpt":"Jura","inscrits":609,"abs":298,"votants":311,"blancs":36,"nuls":11,"exp":264,"res":[{"nuance":"LR","nom":"<NAME>","voix":147},{"nuance":"MDM","nom":"<NAME>","voix":117}]}
96
347
package org.ovirt.engine.core.common.action; import org.ovirt.engine.core.compat.Guid; public class CreateOvfVolumeForStorageDomainCommandParameters extends StorageDomainParametersBase { private boolean skipDomainChecks; public CreateOvfVolumeForStorageDomainCommandParameters() { super(); } ...
226
4,258
<gh_stars>1000+ # Copyright (c) 2017 AT&T Intellectual Property. 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/license...
832
323
// __BEGIN_LICENSE__ // Copyright (c) 2009-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NGT platform is licensed under the Apache License, Version 2.0 (the // "License"); you may not use this file excep...
14,341
735
<filename>src/main/java/org/mvel2/sh/command/basic/ObjectInspector.java /** * MVEL 2.0 * Copyright (C) 2007 The Codehaus * <NAME>, <NAME>, <NAME>, <NAME> * * 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 ...
1,890
516
package com.blueskykong.auth.rest; import com.blueskykong.auth.dto.ApiClientDTO; import com.blueskykong.auth.service.ClientSecretService; import org.springframework.beans.factory.annotation.Autowired; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.w...
629
1,353
<filename>imageio/imageio-metadata/src/test/java/com/twelvemonkeys/imageio/metadata/exif/EXIFReaderTest.java /* * Copyright (c) 2011, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: *...
5,125
428
/** * Copyright 2008 - 2015 The Loon Game Engine 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 appl...
10,674
6,852
<reponame>pcwuyu/PaddleGAN # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # 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 ...
1,158
20,995
<reponame>LancerWang001/v8<gh_stars>1000+ // Copyright 2015 the V8 project 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 <stdlib.h> #include <sstream> #include <utility> #include "src/api/api-inl.h" #include "src/init/v8....
18,681
16,461
<reponame>zakharchenkoAndrii/expo // Copyright 2018-present 650 Industries. All rights reserved. #import <Foundation/Foundation.h> #import <ABI42_0_0UMCore/ABI42_0_0UMModuleRegistry.h> static NSString *const ABI42_0_0EX_E_CONCURRENT_TASK_IN_PROGRESS = @"ABI42_0_0EX_E_CONCURRENT_TASK_IN_PROGRESS"; static NSString *con...
276
22,688
<filename>modules/localization/msf/local_map/base_map/base_map_matrix.cc<gh_stars>1000+ /****************************************************************************** * Copyright 2017 The Apollo Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this...
420
903
/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<EMAIL>) ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** G...
3,106
1,805
<reponame>qiuhere/Bench ///////////////////////////////////////////////// // Includes #include "crawler.h" ///////////////////////////////////////////////// // Crawler-Def bool TCrawlerDef::IsHostNmOk(const TStr& HostNm){ bool HostNmOkP=false; // check requested-domains if (RqDmNmV.Empty()){ HostNmOkP=true; ...
18,594
6,541
<reponame>albertobarri/idk #include "libm.h" float complex ccosf(float complex z) { return ccoshf(CMPLXF(-cimagf(z), crealf(z))); }
62
1,111
<reponame>Jonypr-code/KivyMD """ Components/TapTargetView ======================== .. seealso:: `TapTargetView, GitHub <https://github.com/KeepSafe/TapTargetView>`_ `TapTargetView, Material archive <https://material.io/archive/guidelines/growth-communications/feature-discovery.html#>`_ .. rubric:: Provide v...
12,209
407
package com.alibaba.tesla.appmanager.server.lib.oauth2client; import lombok.Data; @Data class OAuth2Token { protected Long expires_in; protected String token_type; protected String refresh_token; protected String access_token; protected String scope; }
91
348
{"nom":"Carsan","circ":"4ème circonscription","dpt":"Gard","inscrits":573,"abs":319,"votants":254,"blancs":31,"nuls":5,"exp":218,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":127},{"nuance":"FN","nom":"Mme <NAME>","voix":91}]}
92
14,793
<gh_stars>1000+ package me.chanjar.weixin.cp.bean.oa.templatedata.control; import lombok.Data; import me.chanjar.weixin.cp.bean.oa.templatedata.TemplateControls; import java.io.Serializable; import java.util.List; /** * * @author <EMAIL> */ @Data public class TemplateTable implements Serializable { private st...
157
3,710
#include "ttoonzimage.h" #include "tpalette.h" //#include "ttile.h" //#include "transparencyCheck.h" //--------------------------------------------------------- TToonzImage::TToonzImage() : m_ras() , m_dpix(0) , m_dpiy(0) , m_subsampling(1) , m_name("") , m_savebox() //, m_hPos(0.0) ...
2,763
190,993
/* 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...
3,672
749
<reponame>spara7C5/GUIslice<filename>src/elem/XToggleImgbtn.c // ======================================================================= // GUIslice library extension: Toggle button control // - <NAME> // - Toggle button with Android and iOS like styles // - Based on Calvin Hass' Checkbox control // - https://www.impul...
5,924
1,816
<gh_stars>1000+ from src.masonite.tests import TestCase from src.masonite.routes import Route class TestCase(TestCase): pass
47
750
#include <sys/time.h> #include <stdio.h> #include "test_helpers.h" int main(void) { struct timeval tv; // gettimeofday always returns 0, no errors are defined int gtod = gettimeofday(&tv, NULL); UNEXP_IF(gettimeofday, gtod, != 0); printf("%ld: %ld\n", tv.tv_sec, tv.tv_usec); }
133