max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,006 | <reponame>phaistos-networks/TANK<filename>Switch/ext_snappy/snappy-stubs-public.h
// Copyright 2011 Google Inc. All Rights Reserved.
// Author: <EMAIL> (<NAME>)
//
// Various type stubs for the open-source version of Snappy.
//
// This file cannot include config.h, as it is included from snappy.h,
// which is a public ... | 635 |
590 | #ifndef __ASSERT_H__
#define __ASSERT_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef NDEBUG
#define assert(x) ((void)0)
#else
#define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__), 0)))
#endif
void __assert_fail(const char * expr, const char * file, int line, const char * ... | 176 |
550 | {
"defaultSeverity": "error",
"extends": [
"tslint-microsoft-contrib"
],
"jsRules": {},
"rules": {
"missing-jsdoc": false,
"no-relative-imports": false,
"function-name": false,
"variable-name": false,
"export-name": false,
"interface-name": false,
"no-any": false,
"no-suspi... | 490 |
567 | package org.jolokia.client.jmxadapter;
import static javax.management.openmbean.SimpleType.BIGDECIMAL;
import static javax.management.openmbean.SimpleType.BIGINTEGER;
import static javax.management.openmbean.SimpleType.BOOLEAN;
import static javax.management.openmbean.SimpleType.BYTE;
import static javax.management.op... | 8,593 |
816 | package com.jxtech.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.ParseException;
/**
* @author <EMAIL>
* @date 2013.08
*/
public class NumUtil {
private static final Logger LOG = Logge... | 3,680 |
1,884 | import numbers
import os.path as osp
from copy import deepcopy
import mmcv
import torch
from mmcv.parallel import is_module_wrapper
from mmedit.core import tensor2img
from ..common import set_requires_grad
from ..registry import MODELS
from .srgan import SRGAN
@MODELS.register_module()
class RealESRGAN(SRGAN):
... | 4,401 |
506 | <reponame>Ashindustry007/competitive-programming<filename>atcoder/abc065/b.py
#!/usr/bin/env python3
# https://abc065.contest.atcoder.jp/tasks/abc065_b
n = int(input())
a = [0] * n
for i in range(n): a[i] = int(input()) - 1
i = 0
c = 1
ok = False
s = set()
while a[i] != 1:
c += 1
if i in s:
c = -1
... | 187 |
1,338 | /*
* Copyright 2006, 2011, <NAME> <<EMAIL>>.
* Distributed under the terms of the MIT License.
*/
#include "IconEditorApp.h"
#include <new>
#include <stdio.h>
#include <string.h>
#include <Alert.h>
#include <Catalog.h>
#include <FilePanel.h>
#include <FindDirectory.h>
#include <IconEditorProtocol.h>
#include <Lo... | 4,007 |
760 | <gh_stars>100-1000
package de.codecentric.spring.boot.chaos.monkey.watcher.aspect;
import de.codecentric.spring.boot.chaos.monkey.component.ChaosMonkeyRequestScope;
import de.codecentric.spring.boot.chaos.monkey.component.ChaosTarget;
import de.codecentric.spring.boot.chaos.monkey.configuration.WatcherProperties;
impo... | 565 |
1,224 | <reponame>robustrobotics/nlopt<gh_stars>1000+
/* DIRparallel.f -- translated by f2c (version 20050501).
f2c output hand-cleaned by SGJ (August 2007).
*/
#include "direct-internal.h"
/* Table of constant values */
static integer c__0 = 0;
static integer c_n1 = -1;
/* +--------------------------------------------... | 6,720 |
4,262 | <gh_stars>1000+
/*
* 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 "Lic... | 1,804 |
1,273 | package org.broadinstitute.hellbender.tools.spark.sv.integration;
import htsjdk.samtools.util.CloseableIterator;
import htsjdk.variant.variantcontext.VariantContext;
import htsjdk.variant.vcf.VCFFileReader;
import org.apache.hadoop.fs.Path;
import org.broadinstitute.hellbender.CommandLineProgramTest;
import org.broadi... | 3,294 |
1,607 | /*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | 521 |
836 | <gh_stars>100-1000
/*
* Copyright (C) 2002 Univ. of Massachusetts Amherst, Computer Science Dept. This file is part of
* "MALLET" (MAchine Learning for LanguagE Toolkit). http://www.cs.umass.edu/~mccallum/mallet This
* software is provided under the terms of the Common Public License, version 1.0, as published by
*... | 5,839 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 821 |
592 | <filename>Dynamic Code Injection/dyci-example/Classes/Utils and Helpers/UIView+SFAdditions.h
//
// UIView+SFAdditions.h
// StanfyUI
//
// Created by <NAME> on 02.11.11.
// Copyright (c) 2011 Stanfy, LLC. All rights reserved.
//
#import <UIKit/UIKit.h>
/**
Add similar useful getters and setters to UIView, like i... | 276 |
9,116 | /*
* Copyright (C) Justson(https://github.com/Justson/AgentWeb)
*
* 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 requir... | 1,478 |
451 | """
Copyright (c) 2016-2017 Dell Inc. or its subsidiaries. All Rights Reserved.
"""
import fit_path # NOQA: unused import
import unittest
import flogging
from config.redfish1_0_config import config
from on_http_redfish_1_0 impor... | 1,837 |
17,085 | <filename>python/paddle/fluid/tests/unittests/ir/inference/auto_scan_test.py
# Copyright (c) 2021 PaddlePaddle 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
#
... | 1,668 |
516 | <filename>auth-server/src/main/java/com/blueskykong/auth/rest/UserRoleResource.java
package com.blueskykong.auth.rest;
import com.blueskykong.auth.dto.RolePermissionDTO;
import com.blueskykong.auth.entity.Permission;
import com.blueskykong.auth.service.SecurityService;
import org.springframework.beans.factory.annotati... | 506 |
343 | <gh_stars>100-1000
import pyotp
from django.conf import settings
from django.db import models
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
from .events import event_otp_disabled, event_otp_enabled
class UserOTPData(models.Model):
"""
This model stores OTP configura... | 761 |
14,668 | // Copyright 2021 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.chrome.browser;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.view.View;
import android.view.V... | 1,113 |
302 | package me.stevenkin.spider.store;
import me.stevenkin.spider.bean.Question;
import me.stevenkin.spider.parser.Result;
import me.stevenkin.spider.store.DBUtil;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.regex.Pattern;
/**
* Created by wjg on 2017/4/... | 575 |
1,375 | //
// AppController+Notifications.h
// Vienna
//
// Copyright 2017
//
// 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 r... | 290 |
1,968 | <gh_stars>1000+
/*
* pthreads_delay_np.c
*
* Description:
* This translation unit implements non-portable thread functions.
*
* --------------------------------------------------------------------------
*
* Pthreads-win32 - POSIX Threads Library for Win32
* Copyright(C) 1998 John E. Bossom
* Co... | 1,798 |
2,728 | # 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 ... | 326 |
340 | //
// common/debug.c
//
// Verbose debugging functions (read: "fancy print wrappers").
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#include "common/debug.h"
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#ifndef NDEBUG
// W... | 188 |
827 | # Copyright (c) 2014-2019, iocage
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted providing that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and th... | 1,747 |
538 | //
// DataTransferModule.h
// DataTransfer
//
// Created by <NAME> on 2018/6/12.
// Copyright © 2018年 Facebook. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <React/RCTBridgeModule.h>
#import <React/RCTEventEmitter.h>
@interface DataTransferModule : RCTEventEmitter<RCTBridgeModule>
@end
| 113 |
376 | #include <ShaderNode/DataModels/Discard.hpp>
| 18 |
435 | <reponame>allen91wu/data<filename>pycon-fr-2016/videos/jolies-metriques-coordonner-python-et-zabbix.json<gh_stars>100-1000
{
"description": "Retour d\u2019exp\u00e9rience sur l'utilisation de l'application open source de supervision Zabbix coupl\u00e9e avec Python.\nZabbix (made in latvia) nous permet gr\u00e2ce \u00... | 751 |
350 | # BSD 3-Clause License
#
# Copyright (c) 2012, the Sentry Team, see AUTHORS for more details
# Copyright (c) 2019, Elasticsearch BV
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Red... | 1,434 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 1,047 |
1,144 | <gh_stars>1000+
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or... | 1,780 |
518 | /**
* Copyright 2018
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in ... | 510 |
4,036 | <filename>python/ql/test/query-tests/Security/lib/django/urls.py
from functools import partial
def _path(route, view, kwargs=None, name=None, Pattern=None):
pass
path = partial(_path, Pattern='RoutePattern (but this is a mock)')
re_path = partial(_path, Pattern='RegexPattern (but this is a mock)')
| 102 |
389 | import scipy
import numpy
try:
import cupy
except:
import numpy as cupy
from apricot import FeatureBasedSelection
from apricot.optimizers import *
from sklearn.datasets import load_digits
from sklearn.metrics import pairwise_distances
from nose.tools import assert_less_equal
from numpy.testing import assert_almo... | 13,013 |
392 | /**
*
* Copyright (c) 2017 ytk-learn https://github.com/yuantiku
*
* 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,... | 727 |
5,964 | // 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.
#ifndef WebPushSubscription_h
#define WebPushSubscription_h
#include "public/platform/WebCommon.h"
#include "public/platform/WebString.h"
#include "publi... | 243 |
440 | <reponame>kant/CodePilot
//
// SelectedObjectCell.h
// CodePilot
//
// Created by <NAME> on 2/28/10.
// Copyright 2010 Macoscope. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface CPSelectedObjectCell : NSTextAttachmentCell
@property (nonatomic, assign) NSPoint cellBaselineOffset;
@property (nonatomic, a... | 464 |
397 | /*
*
* Copyright 2019-2020 felord.cn
*
* 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
* Website:
* https://felord.cn
... | 1,022 |
777 | <gh_stars>100-1000
// 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.
#ifndef CHROME_BROWSER_SUPERVISED_USER_LEGACY_SUPERVISED_USER_SHARED_SETTINGS_SERVICE_H_
#define CHROME_BROWSER_SUPERVISED_USER_LEGACY_... | 1,719 |
190,993 | <filename>tensorflow/lite/experimental/acceleration/mini_benchmark/fb_storage.cc
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | 2,299 |
506 | <reponame>devnied/gitlab4j-api
package org.gitlab4j.api.models;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
* This class is used by various models to represent the approved_by property,
* which can contain a User or Group instance.
*
* @since 4.19.0
*/
public class ApprovedBy {
private User use... | 468 |
3,301 | package com.alibaba.alink.operator.common.timeseries.sarima;
import com.alibaba.alink.common.linalg.DenseMatrix;
import com.alibaba.alink.operator.common.timeseries.AbstractGradientTarget;
import com.alibaba.alink.operator.common.timeseries.BFGS;
import java.util.ArrayList;
public class SCSSMLEEstimate extends Sarim... | 1,104 |
6,992 | <reponame>mayur9991/spring-security
/*
* Copyright 2019 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... | 330 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 1,254 |
884 | /*
* Copyright 2014 - 2021 Blazebit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 738 |
445 | <filename>Applications/WordEmbedding/src/main.cpp
#include <cmath>
#include <thread>
#include <string>
#include <new>
#include <multiverso/util/log.h>
#include <multiverso/util/log.h>
#include <multiverso/multiverso.h>
#include "distributed_wordembedding.h"
#include "memory_manager.h"
#include "util.h"
using namesp... | 258 |
5,169 | {
"name": "GBSControlStick",
"version": "0.1",
"summary": "GBSControlStick is a joystick view.",
"homepage": "https://github.com/sangar/GBSControlStick",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"<NAME>": "<EMAIL>"
},
"social_media_url": "https://twitter.com/sangar",
... | 280 |
1,056 | <filename>platform/openide.util.lookup/test/unit/src/org/openide/util/lookup/MetaInfServicesOrderingTest.java<gh_stars>1000+
/*
* 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
* regard... | 1,157 |
2,199 | <reponame>smartvdd/bt
/*******************************************************************************
* 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/.
**************... | 784 |
309 | /*
* Copyright (c) <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WAR... | 812 |
348 | <gh_stars>100-1000
{"nom":"Altorf","circ":"6ème circonscription","dpt":"Bas-Rhin","inscrits":1087,"abs":552,"votants":535,"blancs":10,"nuls":6,"exp":519,"res":[{"nuance":"LR","nom":"<NAME>","voix":332},{"nuance":"MDM","nom":"<NAME>","voix":187}]} | 101 |
403 | /*
* 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 ... | 1,486 |
763 | package org.batfish.datamodel.matchers;
import javax.annotation.Nonnull;
import org.batfish.datamodel.matchers.SetAdministrativeCostMatchersImpl.HasAdmin;
import org.batfish.datamodel.matchers.SetAdministrativeCostMatchersImpl.IsSetAdministrativeCostThat;
import org.batfish.datamodel.routing_policy.expr.IntExpr;
impor... | 354 |
2,338 | <reponame>medismailben/llvm-project<filename>compiler-rt/test/sanitizer_common/TestCases/NetBSD/sha2.cpp
// RUN: %clangxx -O0 -g %s -DSHASIZE=224 -o %t && %run %t 2>&1 | FileCheck %s -check-prefix=CHECK-224
// RUN: %clangxx -O0 -g %s -DSHASIZE=256 -o %t && %run %t 2>&1 | FileCheck %s -check-prefix=CHECK-256
// RUN: %cl... | 3,285 |
761 | <reponame>AppStar1108/PayPal_iOS_SDK_Sample
//
// PayPalMobileSDKInternalImpl.h
// PayPalMobileSDK
//
// Copyright © 2016 PayPal Holdings, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface PayPalMobileSDKInternalImpl : NSObject
@end
| 89 |
650 | # Authors: <NAME> <<EMAIL>>
# License: BSD 3 clause
from typing import List, Optional, Union
import pandas as pd
from feature_engine.encoding.base_encoder import BaseCategoricalTransformer
from feature_engine.variable_manipulation import _check_input_parameter_variables
class OrdinalEncoder(BaseCategoricalTransfor... | 2,523 |
1,398 | #include "math_utils.h"
namespace utils {
uint64_t math_utils::pow(uint64_t base, uint64_t exp) {
uint64_t result = 1;
while (exp) {
if (exp & 1)
result *= base;
exp >>= 1;
base *= base;
}
return result;
}
uint32_t math_utils::murmur3_32(const uint8_t *key, size_t len, uint32_t seed) {
ui... | 578 |
495 | import pickle
import numpy as np
import warnings
from counterfit.core.targets import Target
class CreditFraud(Target):
"""Target definition for a binary classifier built using scikit-learn from the Kaggle fraudulent credit card transaction dataset at https://www.kaggle.com/mlg-ulb/creditcardfraud
"""
ta... | 543 |
1,169 | package com.zhengsr.viewpagerhelper.tab;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.zhengsr.viewpagerhelper.R;
import java.util.ArrayList;
import java.util.List;
public class T... | 329 |
409 | # Adapted from: https://github.com/CSAILVision/semantic-segmentation-pytorch/blob/master/models/models.py
import torch
import torch.nn as nn
import torch.nn.functional as F
class conv2D(nn.Module):
def __init__(self, in_channels, n_filters, k_size, stride, padding, bias=True, dilation=1):
super(conv2D, ... | 3,281 |
1,891 | # -*- coding: utf-8 -*-
"""
proxy.py
~~~~~~~~
⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on
Network monitoring, controls & Application development, testing, debugging.
:copyright: (c) 2013-present by <NAME> and contributors.
:license: BSD, see LICENSE for mo... | 1,710 |
5,169 | {
"name": "BRAG",
"source": {
"git": "https://github.com/brockhardman/BRAG.git",
"tag": "3.3.9"
},
"summary": "BRAG 3.3.9",
"platforms": {
"ios": "7.0"
},
"source_files": "BRAG/BRAGFramework/*.{h,m}",
"resources": [
"BRAG/BRAGFramework/*.xib",
"BRAG/BRAGFramework/*.storyboard"
],
... | 282 |
14,668 | <filename>components/exo/wayland/clients/explicit_synchronization.cc
// 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 "components/exo/wayland/clients/client_base.h"
#include <linux-explicit-syn... | 2,464 |
10,125 | <gh_stars>1000+
/** @file
Creates and EFILDR image.
This tool combines several PE Image files together using following format denoted as EBNF:
FILE := EFILDR_HEADER
EFILDR_IMAGE +
<PeImageFileContent> +
The order of EFILDR_IMAGE is same as the order of placing PeImageFileContent.
Copyright (c) 2006 - 2... | 3,332 |
16,461 | <gh_stars>1000+
// Copyright 2018-present 650 Industries. All rights reserved.
#import <ABI42_0_0UMCore/ABI42_0_0UMInternalModule.h>
#import <ABI42_0_0ExpoModulesCore/ABI42_0_0EXFaceDetectorManagerProviderInterface.h>
@interface ABI42_0_0EXFaceDetectorManagerProvider : NSObject <ABI42_0_0UMInternalModule, ABI42_0_0EX... | 134 |
762 | <reponame>TheTimmy/decord<gh_stars>100-1000
/*!
* Copyright (c) 2019 by Contributors if not otherwise specified
* \file smart_random_sampler.h
* \brief Smart random sampler for faster video random access
*/
#ifndef DECORD_SAMPLER_SMART_RANDOM_SAMPLER_H_
#define DECORD_SAMPLER_SMART_RANDOM_SAMPLER_H_
#include "sa... | 247 |
3,200 | <reponame>PowerOlive/mindspore
# Copyright 2020-2021 Huawei Technologies Co., Ltd
#
# 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... | 1,093 |
5,169 | {
"name": "YNExpandableCell",
"version": "0.5.0",
"summary": "Easiest way to expand and collapse cell for iOS with Swift 3",
"description": "Easiest usage of expandable & collapsible cell for iOS, written in Swift 3. You can customize expandable `UITableViewCell` whatever you like. `YNExpandableCell` is made be... | 446 |
3,263 | /*
Copyright 2014 Immutables Authors and Contributors
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... | 1,221 |
3,212 | /*
* 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 ... | 1,626 |
1,567 | #include "src/wrapper.h"
#include <future>
#include <thread>
#include "certain/certain.h"
#include "certain/errors.h"
#include "default/log_impl.h"
#include "default/route_impl.h"
#include "gtest/gtest.h"
#include "src/async_queue_mng.h"
#include "src/command.h"
#include "src/entity_info_mng.h"
class MockDb : public... | 2,773 |
4,772 | <filename>jpa/deferred/src/main/java/example/repo/Customer1537Repository.java
package example.repo;
import example.model.Customer1537;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1537Repository extends CrudRepository<Customer1537, Long> {
List<Custome... | 115 |
355 | <filename>src/test/java/com/github/lindenb/jvarkit/samtools/BamRecordGuesserTest.java
package com.github.lindenb.jvarkit.samtools;
import java.io.File;
import java.io.IOException;
import java.io.PushbackInputStream;
import org.testng.Assert;
import org.testng.annotations.Test;
import com.github.lindenb.jvarkit.tools... | 460 |
1,779 | <reponame>yarri-oss/zetasql
//
// 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ... | 20,216 |
2,138 | <filename>src/main/java/org/jeecgframework/web/system/pojo/base/InterfaceRuleDto.java
package org.jeecgframework.web.system.pojo.base;
import java.util.List;
public class InterfaceRuleDto {
/**
* 接口编码
*/
private String interfaceCode;
/**
* 接口数据规则id
*/
private String dataRule;
/**
* 接口规则
*/
pri... | 454 |
515 | <gh_stars>100-1000
/*
* Copyright 2018-present HiveMQ and the HiveMQ Community
*
* 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
*
* ... | 7,772 |
349 | <reponame>mapoto/alexa-skills-kit-sdk-for-java
/*
Copyright 2018 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 of the License is located at
http://aws.... | 5,149 |
369 | /*
* Copyright © 2014-2016 <NAME>, 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... | 632 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Cheminas","circ":"2ème circonscription","dpt":"Ardèche","inscrits":271,"abs":147,"votants":124,"blancs":7,"nuls":3,"exp":114,"res":[{"nuance":"REM","nom":"<NAME>","voix":57},{"nuance":"SOC","nom":"<NAME>","voix":57}]} | 110 |
1,040 | import os
import stat
from pyscaffold.operations import (
add_permissions,
create,
no_overwrite,
remove,
skip_on_update,
)
from .helpers import temp_umask, uniqpath
def test_create(monkeypatch):
created = {}
def spy(path, *_1, **_2):
created.update({path: True})
monkeypatch... | 1,576 |
1,444 | <reponame>FateRevoked/mage
package mage.cards.m;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.keyword.BushidoAbility;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
* ... | 392 |
692 | <reponame>minyee/sst-macro
//@HEADER
// ***************************************************
//
// HPCG: High Performance Conjugate Gradient Benchmark
//
// Contact:
// <NAME> ( <EMAIL>)
// <NAME> (<EMAIL>)
// <NAME> (<EMAIL>)
//
// ***************************************************
//@HEADER
#ifndef COMPUTEDO... | 196 |
7,158 | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | 3,235 |
808 | // Copyright (c) 2019 PaddlePaddle 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... | 14,221 |
348 | {"nom":"Montsinéry-Tonnegrande","circ":"2ème circonscription","dpt":"Guyane","inscrits":1237,"abs":902,"votants":335,"blancs":9,"nuls":12,"exp":314,"res":[{"nuance":"REG","nom":"<NAME>","voix":205},{"nuance":"REM","nom":"<NAME>","voix":109}]} | 96 |
1,086 | /* MikMod sound library
(c) 1998, 1999, 2000 <NAME> and others - see file AUTHORS for
complete list.
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of
the License, or ... | 10,743 |
563 | <gh_stars>100-1000
/*
* Copyright 2016 Yahoo 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... | 1,620 |
521 | /* $Id: VBoxDebugLib.c $ */
/** @file
* VBoxDebugLib.c - Debug logging and assertions support routines using DevEFI.
*/
/*
* Copyright (C) 2009-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 ... | 3,268 |
8,657 | <filename>lib/common/socket/evloop/kqueue.c.h
/*
* Copyright (c) 2014 DeNA Co., Ltd.
*
* 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 t... | 4,214 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
/**
*
* \file document.h
*
* Include common client parts of document, such that clients can easily
* just include this file to get what they need.
*
* This should pull in all code needed for handling:
* -... | 187 |
3,897 | <reponame>mcheah-bose/mbed-os<filename>targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/object_owners.h
/* mbed Microcontroller Library
* Copyright (c) 2018 ARM Limited
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in com... | 442 |
640 |
#include <fcntl.h>
long lseek(int fd,long posn, int whence) __z88dk_saveframe
{
#asm
EXTERN asm_esxdos_f_seek
; lseek() is marked as saveframe so no need to explictly push
ld ix,2
add ix,sp
ld l,(ix+0)
ld e,(ix+2)
ld d,(ix+3)
ld c,(ix+4)
ld b,(ix... | 239 |
340 | <reponame>CyBHFal/rtpproxy
/*
* Copyright (c) 2020 <NAME>, Inc., http://www.sippysoft.com
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... | 2,387 |
1,695 | <filename>examples/twitter/TwitterClient/src/com/path/android/jobqueue/examples/twitter/events/PostingTweetEvent.java
package com.path.android.jobqueue.examples.twitter.events;
import com.path.android.jobqueue.examples.twitter.entities.Tweet;
public class PostingTweetEvent {
private Tweet tweeet;
public Post... | 167 |
335 | <filename>examples/32_helltec/components/arduino/libraries/FS/src/vfs_api.cpp<gh_stars>100-1000
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
//
// 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 o... | 4,461 |
303 | /*
* Copyright (c) 2011 and 2012, <NAME> <<EMAIL>>
* Copyright (c) 2011 <NAME> <<EMAIL>>
* 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. Redistributions of source code must retain t... | 1,426 |
494 | package com.linroid.sky31radio.ui.base;
import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.linroid.sky31radio.module.Injector;
/**
* Created by linroid on 1/14/15.
*/
public class InjectableFragment extends ... | 400 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.