max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
715 | <filename>Mathematics/NChooseK/python/NChooseK.py
def bin_coeff(n, k):
ans = 1
if(k > (n-k)):
k = n-k
for i in range(k):
ans *= (n - i)
ans /= (i + 1)
return ans
| 95 |
1,036 | /* #undef AC_APPLE_UNIVERSAL_BUILD */
/* #undef CONFIG_BLKID_DEBUG */
#define CONFIG_BUILD_FINDFS 1
/* #undef CONFIG_DEVELOPER_FEATURES */
/* #undef CONFIG_JBD_DEBUG */
#define CONFIG_MMP 1
/* #undef CONFIG_TDB */
/* #undef CONFIG_TESTIO_DEBUG */
/* #undef DISABLE_BACKTRACE */
#define ENABLE_BMAP_STATS 1
/* #undef ENAB... | 2,320 |
2,659 | <gh_stars>1000+
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2021 4Paradigm
#
# 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,749 |
815 | <filename>Qt/ApplicationComponents/pqResetDefaultSettingsReaction.h
/*=========================================================================
Program: ParaView
Module: pqResetDefaultSettingsReaction.h
Copyright (c) 2005,2006 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free s... | 765 |
3,850 | /**
* Copyright (C) 2010-2016 eBusiness Information, Excilys Group
*
* 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 ... | 437 |
801 | <gh_stars>100-1000
from numpy import dot
from neupy.utils import format_data
from neupy.exceptions import NotTrained
from neupy.core.properties import BoundedProperty
from neupy.algorithms.base import BaseSkeleton
from .utils import pdf_between_data
__all__ = ('GRNN',)
class GRNN(BaseSkeleton):
"""
General... | 1,877 |
311 | <filename>FetLife/fetlife/src/main/java/com/bitlove/fetlife/view/adapter/RelationsRecyclerAdapter.java
package com.bitlove.fetlife.view.adapter;
import com.bitlove.fetlife.FetLifeApplication;
import com.bitlove.fetlife.model.pojos.fetlife.db.RelationReference;
import com.bitlove.fetlife.model.pojos.fetlife.db.Relation... | 1,223 |
323 | <filename>examples/solv/repoinfo_cache.h
struct repoinfo;
struct stat;
extern void set_userhome(void);
extern char *calc_cachepath(Repo *repo, const char *repoext, int forcesystemloc);
extern void calc_cookie_fp(FILE *fp, Id chktype, unsigned char *out);
extern void calc_cookie_stat(struct stat *stb, Id chktype, unsi... | 184 |
743 | <reponame>riag23/AdaptiveCards<filename>source/uwp/AdaptiveCardTestApp/Expected/v1.3.Tests.LongLabelsToJson.json
{"actions":[{"title":"OK","type":"Action.Submit"}],"body":[{"choices":[{"title":"Option 1","value":"1"},{"title":"Option 2","value":"2"}],"id":"choiceSet","label":"Longer label to verify label wrapping for a... | 533 |
1,405 | <gh_stars>1000+
package com.android.internal.telephony;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
public interface ITelephony extends IInterface {
public abstract class Stub extends Binder implements ITelephony {
class Proxy implements I... | 2,040 |
327 | // # thread local #############################################################
#pragma once
#ifdef __GNUC__
# define THREAD_LOCAL __thread
#elif defined _MSC_VER || defined __INTEL_COMPILER
# define THREAD_LOCAL __declspec(thread)
#elif __STDC_VERSION__ >= 201112L
# define THREAD_LOCAL _Thread_local
#else
# ... | 118 |
602 | <filename>infrastructure/src/main/java/org/corfudb/infrastructure/management/CompleteGraphAdvisor.java
package org.corfudb.infrastructure.management;
import com.google.common.collect.ImmutableList;
import lombok.NonNull;
import lombok.extern.slf4j.Slf4j;
import org.corfudb.infrastructure.management.failuredetector.Clu... | 2,035 |
1,452 | <reponame>daniu22/Cheetah-Software
#include "vn/protocol/spi.h"
#include <string.h>
#include "vn/util.h"
#define UNUSED(x) (void)(sizeof(x))
VnError VnSpi_genGenericCommand(
char cmdId,
char* buffer,
size_t* size,
size_t desiredLength,
size_t* responseSize)
{
size_t i;
if (*size < 1 || *size < ... | 30,301 |
1,209 | /*
analog_value.c
output analog values
Hello World for ATTINY84 Controller
Universal 8bit Graphics Library
Copyright (c) 2012, <EMAIL>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are... | 2,870 |
550 | <reponame>RalfRalf/java-sdk
import com.qiniu.common.QiniuException;
import com.qiniu.http.Response;
import com.qiniu.storage.BucketManager;
import com.qiniu.util.Auth;
import com.qiniu.common.Zone;
import com.qiniu.storage.Configuration;
public class FetchDemo {
public static void main(String args[]) {
//... | 559 |
854 | __________________________________________________________________________________________________
0ms
class Solution {
public List<List<Integer>> combinationSum(int[] candidates, int target) {
List<List<Integer>> ans = new LinkedList<List<Integer>>();
if (candidates == null || candidates.l... | 2,540 |
568 | <reponame>arthurrib/nfe<gh_stars>100-1000
package com.fincatto.documentofiscal.nfe400.classes.nota;
import org.junit.Assert;
import org.junit.Test;
public class NFIndicadorPresencaCompradorTest {
@Test
public void deveObterTipoApartirDoSeuCodigo() {
Assert.assertEquals(NFIndicadorPresencaCom... | 925 |
376 | from . import BaseActor
from lib.utils.box_ops import box_cxcywh_to_xyxy, box_xywh_to_xyxy
import torch
from lib.utils.merge import get_qkv, merge_template_search
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.functional import l1_loss
class STARKLightningXtrtdistillActor(BaseActor):
""" Acto... | 3,679 |
381 | <gh_stars>100-1000
package org.apache.helix.taskexecution;
/*
* 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 un... | 591 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.customerinsights.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import co... | 2,543 |
930 | <filename>Linkedin_Video_Downloader/script.py
# ALL Imports
import tkinter as tk
import requests as req
import html
import time
from tkinter.ttk import *
from threading import Thread
import queue
from queue import Empty
def Invalid_Url():
""" Sets Status bar label to error message """
Status["text"] = "Inval... | 1,408 |
711 | package com.java110.store.listener;
import com.alibaba.fastjson.JSONObject;
import com.java110.utils.constant.ResponseConstant;
import com.java110.utils.constant.StatusConstant;
import com.java110.utils.exception.ListenerExecuteException;
import com.java110.entity.center.Business;
import com.java110.core.event.service... | 6,024 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-hh7m-rx4f-4vpv",
"modified": "2021-01-11T20:32:44Z",
"published": "2021-01-11T20:38:28Z",
"aliases": [
"CVE-2021-21241"
],
"summary": "CSRF can expose users authentication token",
"details": "### Issue\nThe /login and /change endpoints can return the authent... | 1,045 |
2,577 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | 935 |
17,703 | #include <string>
#include "envoy/http/filter.h"
#include "envoy/registry/registry.h"
#include "source/extensions/filters/http/common/factory_base.h"
#include "source/extensions/filters/http/common/pass_through_filter.h"
#include "test/integration/filters/set_is_terminal_filter_config.pb.h"
#include "test/integratio... | 594 |
348 | {"nom":"Saint-Agnan-sur-Sarthe","circ":"1ère circonscription","dpt":"Orne","inscrits":77,"abs":28,"votants":49,"blancs":6,"nuls":1,"exp":42,"res":[{"nuance":"SOC","nom":"M. <NAME>","voix":21},{"nuance":"DVD","nom":"<NAME>","voix":21}]} | 98 |
348 | <filename>docs/data/leg-t2/051/05103644.json
{"nom":"Vincelles","circ":"3ème circonscription","dpt":"Marne","inscrits":256,"abs":139,"votants":117,"blancs":10,"nuls":2,"exp":105,"res":[{"nuance":"REM","nom":"<NAME>","voix":57},{"nuance":"FN","nom":"<NAME>","voix":48}]} | 110 |
368 | /*
* UtilPdu.h
*
* Created on: 2013-8-27
* Author: <EMAIL>
*/
#ifndef UTILPDU_H_
#define UTILPDU_H_
#include "ostype.h"
#include <set>
#include <map>
#include <list>
#include <string>
using namespace std;
#ifdef WIN32
#ifdef BUILD_PDU
#define DLL_MODIFIER __declspec(dllexport)
#else
#define DLL_MODI... | 1,381 |
5,169 | <gh_stars>1000+
{
"name": "TinyKit",
"version": "0.8.0",
"license": "MIT",
"summary": "TinyKit provides practical functionalities that will help us to build apps much more quickly.",
"homepage": "https://github.com/royhsu/tiny-core",
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": "https:... | 241 |
1,687 | <reponame>agnes-yang/LeetCode-Solutions-in-Good-Style<gh_stars>1000+
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.Set;
public class Solution {
public int[] topKFrequent(int[] nums, int k) {
int len = ... | 723 |
10,608 | <gh_stars>1000+
{"default": {"description": "A dataset adopting the FEVER methodology that consists of 1,535 real-world claims regarding climate-change collected on the internet. Each claim is accompanied by five manually annotated evidence sentences retrieved from the English Wikipedia that support, refute or do not g... | 784 |
22,481 | <reponame>andersop91/core
"""Support for Plum Lightpad lights."""
from __future__ import annotations
import asyncio
from plumlightpad import Plum
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_HS_COLOR,
SUPPORT_BRIGHTNESS,
SUPPORT_COLOR,
LightEntity,
)
from homeassistant.confi... | 3,025 |
4,111 | <reponame>ThanoshanMV/shiro
/*
* 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 ... | 1,033 |
878 | <filename>pandashells/bin/p_regress.py
#! /usr/bin/env python
# standard library imports
import sys
import argparse
import textwrap
import importlib
from pandashells.lib import module_checker_lib, arg_lib
# import required dependencies
module_checker_lib.check_for_modules(['pandas', 'statsmodels', 'scipy'])
from p... | 2,147 |
301 | <gh_stars>100-1000
/******************************************************************
*
* Copyright 2017 Samsung Electronics 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... | 18,368 |
5,534 | package com.alibaba.dubbo.rpc.benchmark;
/**
* TODO Comment of HelloService
*
* @author tony.chenl
*/
public class DemoServiceImpl implements DemoService{
ResponseObject responseObject = new ResponseObject(100);
public Object sendRequest(Object request) {
return request;
}
}
| 98 |
2,338 | #define __CLC_FUNCTION atomic_max
#include <clc/atomic/atomic_decl.inc>
| 28 |
2,833 | <filename>netmiko/no_enable.py<gh_stars>1000+
from typing import Optional
import re
class NoEnable:
"""
Class for platforms that have no enable mode.
Netmiko translates the meaning of "enable" mode to be a proxy for "can
go into config mode". In other words, that you ultimately have privileges
to... | 335 |
863 | <filename>app/src/main/java/fr/free/nrw/commons/wikidata/WikidataEditListenerImpl.java
package fr.free.nrw.commons.wikidata;
/**
* Listener for wikidata edits
*/
public class WikidataEditListenerImpl extends WikidataEditListener {
public WikidataEditListenerImpl() {
}
/**
* Fired when wikidata P18... | 223 |
506 | <filename>codeforces/1040/a.py
#!/usr/bin/env python3
# https://codeforces.com/contest/1040/problem/A
n, a, b = map(int, input().split())
p = [a,b,min(a, b)]
c = [int(x) for x in input().split()]
s = 0
d = n // 2
if n % 2:
s += p[c[d]] if c[d] == 2 else 0
j = d + 1
else:
j = d
i = d - 1
while i >= 0:
if... | 287 |
465 | <filename>src/main/java/com/ansel/controller/GoodsBillController.java
package com.ansel.controller;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.sp... | 2,210 |
2,601 | <filename>include/premake/src/host/os_listWindowsRegistry.c
/**
* \file os_reg.c
* \brief Returns true if the given file exists on the file system.
* \author Copyright (c) 2002-2016 <NAME> and the Premake project
*/
#include "premake.h"
#if PLATFORM_WINDOWS
typedef struct RegNodeInfo
{
const char * name;
co... | 2,495 |
1,909 | package org.knowm.xchange.okex.v5.service;
import java.io.IOException;
import java.util.List;
import org.knowm.xchange.client.ResilienceRegistries;
import org.knowm.xchange.dto.account.AccountInfo;
import org.knowm.xchange.okex.v5.OkexAdapters;
import org.knowm.xchange.okex.v5.OkexExchange;
import org.knowm.xchange.ok... | 468 |
1,133 | <gh_stars>1000+
#!/usr/bin/env python3
#
# Author: <NAME>
# Copyright 2015-present, NASA-JPL/Caltech
#
import os
import glob
import datetime
import numpy as np
import isce, isceobj, stdproc
from isceobj.Util.Poly2D import Poly2D
from isceobj.Location.Offset import OffsetField, Offset
from isceobj.Alos2Proc.Alos2Pro... | 11,856 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.resourcegraph.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.faste... | 863 |
1,264 | /*
* Copyright 2018-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 844 |
679 | <gh_stars>100-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 license... | 2,467 |
854 | <reponame>mongodb/morphia
package dev.morphia.annotations;
import dev.morphia.annotations.internal.MorphiaExperimental;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Defines a name for a construc... | 195 |
348 | <gh_stars>100-1000
{"nom":"Braux-Sainte-Cohière","circ":"4ème circonscription","dpt":"Marne","inscrits":90,"abs":26,"votants":64,"blancs":3,"nuls":2,"exp":59,"res":[{"nuance":"LR","nom":"<NAME>","voix":36},{"nuance":"FN","nom":"<NAME>","voix":23}]} | 105 |
1,755 | <gh_stars>1000+
#define PJ_LIB__
#include <projects.h>
#include <string.h>
struct pj_opaque {
struct PJconsts *link;
double lamp;
double cphip, sphip;
};
PROJ_HEAD(ob_tran, "General Oblique Transformation") "\n\tMisc Sph"
"\n\to_proj= plus parameters for projection"
"\n\to_lat_p= o_lon_p= (new pole) or"... | 3,505 |
614 | [
{ "home": "Portugal", "away": "France", "homescore": "1", "awayscore": "0" },
{ "home": "Lin<NAME>", "away": "Celtic" },
{ "home": "FK Qarabag", "away": "F91 Dudelange" },
{ "home": "Alashkert FC", "away": "<NAME>" },
{ "home": "T.N.S.", "away": "Apoel Nicosia" },
{ "home": "Car<NAME>", "away": "West Ham ... | 428 |
2,151 | // Copyright (c) 2016 The WebM 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 in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing projec... | 498 |
3,100 | /******************************************************************************
*
* Project: NTF Translator
* Purpose: NTFCodeList class implementation.
* Author: <NAME>, <EMAIL>
*
******************************************************************************
* Copyright (c) 2001, <NAME>
*
* Permission is ... | 1,717 |
5,250 | <filename>modules/flowable-dmn-rest/src/main/java/org/flowable/dmn/rest/service/api/repository/DecisionTableResourceDataResource.java
/* 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
*
* ... | 791 |
1,345 | <reponame>MaksHess/napari<gh_stars>1000+
"""Napari Configuration.
"""
import os
from ._octree import get_octree_config
def _set(env_var: str) -> bool:
"""Return True if the env variable is set and non-zero.
Returns
-------
bool
True if the env var was set to a non-zero value.
"""
ret... | 629 |
32,544 | <reponame>DBatOWL/tutorials
package com.baeldung.boot.jsp.exception;
import com.baeldung.boot.jsp.dto.Book;
import lombok.Getter;
@Getter
public class DuplicateBookException extends RuntimeException {
private final Book book;
public DuplicateBookException(Book book) {
this.book = book;
}
} | 119 |
303 | <filename>www/drag/metadata/9/9285.json
{"id":9285,"line-1":"Beyneu District","line-2":"Kazakhstan","attribution":"©2016 Cnes/Spot Image, DigitalGlobe, Landsat","url":"https://www.google.com/maps/@45.950195,53.291759,14z/data=!3m1!1e3"} | 98 |
1,602 | <filename>test/parallel/taskCompare/elliot/ompTaskSpawn.h<gh_stars>1000+
#include <stdint.h>
#ifdef _OPENMP
#include <omp.h>
#endif
static void ompTaskSpawn(int64_t trials, int64_t numTasks, int64_t runSerial) {
int i, j;
#ifdef _OPENMP
if (runSerial) {
omp_set_num_threads(1);
} else {
omp_set_num_th... | 227 |
2,287 | <filename>v2ex-iOS/Views/V2TopicReplyCell.h<gh_stars>1000+
//
// V2TopicReplyCell.h
// v2ex-iOS
//
// Created by Singro on 3/20/14.
// Copyright (c) 2014 Singro. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface V2TopicReplyCell : UITableViewCell
@property (nonatomic, strong) V2ReplyModel *model;
@prope... | 263 |
746 | <gh_stars>100-1000
package org.protege.editor.owl.ui.ontology.imports.missing;
import org.protege.editor.core.ui.wizard.Wizard;
import org.protege.editor.owl.OWLEditorKit;
import java.awt.*;
/**
* Author: <NAME><br>
* The University Of Manchester<br>
* Medical Informatics Group<br>
* Date: 17-Oct-2006<br><br>
... | 392 |
857 | <gh_stars>100-1000
# Copyright (c) LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license.
# See LICENSE in the project root for license information.
from falcon import HTTPError, HTTPBadRequest
from ujson import dumps as json_dumps
import time
from ...auth import login_required, check_cal... | 3,861 |
7,150 | <gh_stars>1000+
#include "stdio.h"
int binary_search_first(int *a,int length,int key){
int low=0;
int high = length-1;
int mid = 0;
while(low<high){
mid = (low+high)/2;
if (a[mid]>=key)//往左找
{
high = mid;
}else{
low = mid+1;
}
}
return high;
}
int binary_search_last(int *a,int length,int... | 633 |
2,151 | <reponame>caokun8008/ckeos
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------... | 350 |
777 | <reponame>google-ar/chromium<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.
#include "net/extras/sqlite/sqlite_channel_id_store.h"
#include <memory>
#include <set>
#include <utility>... | 7,749 |
310 | <gh_stars>100-1000
{
"name": "X-A1",
"description": "A 16.3 megapixel digital camera.",
"url": "http://www.fujifilm.com/products/digital_cameras/x/fujifilm_x_a1/"
} | 77 |
514 | <reponame>srinivas32/mle<gh_stars>100-1000
#include "test.h"
char *str = "hello\nworld";
void test(buffer_t *buf, mark_t *cur) {
mark_move_beginning(cur);
mark_move_col(cur, 5);
ASSERT("col1", 5, cur->col);
mark_move_col(cur, 6);
ASSERT("oob", 5, cur->col);
}
| 134 |
1,362 | # coding=utf-8
r"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from tests import IntegrationTestCase
from tests.holodeck import Request
from twilio.base.exceptions import TwilioException
from twilio.http.response import Response
class EvaluationTestCase(Integr... | 21,148 |
621 | <reponame>fengjixuchui/VivienneVMM<filename>VivienneTests/test_token_parser.cpp
#include <Windows.h>
#include <cstdio>
#include "test_util.h"
#include "..\common\arch_x64.h"
#include "..\common\driver_io_types.h"
#include "..\VivienneCL\token_parser.h"
//===========================================================... | 3,564 |
22,453 | <gh_stars>1000+
from __future__ import print_function, division
import numpy as np
from scipy.stats import chi2, multivariate_normal
from mlfromscratch.utils import mean_squared_error, train_test_split, polynomial_features
class BayesianRegression(object):
"""Bayesian regression model. If poly_degree is specifie... | 1,951 |
1,562 | // Copyright 2020 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 applicable law or agreed to in w... | 3,047 |
582 | /*******************************************************************************
* Copyright (c) 2003, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | 1,328 |
1,272 | /*
* Copyright 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.amazon.com/apache2.0/
*
* or in the "license" f... | 753 |
733 | # coding=utf-8
# Copyright 2019 The SEED Authors
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | 4,618 |
5,133 | <filename>processor/src/test/java/org/mapstruct/ap/test/bugs/_543/SourceUtil.java
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.bugs._543;
import org.mapstruct.ap.test.bugs._543.dto.Sourc... | 246 |
576 | /*
* 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 ... | 896 |
3,133 | {
"kind": "CustomResourceDefinition",
"apiVersion": "apiextensions.k8s.io/v1beta1",
"metadata": {
"name": "gcpsamples.gcp.stacks.crossplane.io",
"selfLink": "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/gcpsamples.gcp.stacks.crossplane.io",
"uid": "c0bbac74-acab-4620-b628-1d5f91b19040"... | 1,259 |
3,976 | import xlwt
with open('numbers.txt', 'r', encoding='utf-8') as f:
data = f.read()
_numbers = eval(data)
numbers = list()
for i in range(3):
numbers.extend(_numbers[i])
row = len(numbers)//len(_numbers)
file = xlwt.Workbook()
table = file.add_sheet('numbers')
for i in range(len(... | 184 |
981 | <gh_stars>100-1000
/*******************************************************************
* File automatically generated by rebuild_wrappers.py (v2.1.0.16) *
*******************************************************************/
#ifndef __wrappedlibxxf86vmDEFS_H_
#define __wrappedlibxxf86vmDEFS_H_
#endif // __wrappedli... | 94 |
6,304 | <reponame>travisleithead/skia<gh_stars>1000+
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef DDLTileHelper_DEFINED
#define DDLTileHelper_DEFINED
#include "include/core/SkDeferredDisplayList.h"
#include "include/cor... | 2,357 |
5,964 | <reponame>wenfeifei/miniblink49
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef net_FixedReceivedData_h
#define net_FixedReceivedData_h
#include <vector>
#include "net/RequestPeer.h"
namespac... | 310 |
348 | {"nom":"Saint-Etienne","circ":"2ème circonscription","dpt":"Loire","inscrits":53195,"abs":30005,"votants":23190,"blancs":236,"nuls":90,"exp":22864,"res":[{"nuance":"REM","nom":"<NAME>","voix":8860},{"nuance":"FI","nom":"Mme <NAME>","voix":3516},{"nuance":"LR","nom":"Mme <NAME>","voix":3249},{"nuance":"FN","nom":"<NAME>... | 246 |
793 | #include <stdlib.h>
#include <check.h>
#include "csptr/smart_ptr.h"
#include "test.h"
#include "utils.h"
const struct meta m = {1, 2, 3};
Suite *master_suite(void) {
Suite *s = suite_create("master");
suite_add_tcase(s, make_test_case("misc", misc_tests));
suite_add_tcase(s, make_test_case("scalar", scal... | 304 |
487 | <filename>test/gtest/complex_bitwise.cpp
#include <boost/algorithm/string/replace.hpp>
#include <boost/optional.hpp>
#include "gtest/gtest.h"
#include "ir/ir.h"
#include "helpers.h"
#include "lib/log.h"
#include "lib/sourceCodeBuilder.h"
#include "frontends/common/parseInput.h"
#include "frontends/common/resolveRefer... | 2,288 |
1,305 | <reponame>suxingjie99/JavaSource<filename>src/org/example/source/java/security/cert/CRLSelector.java<gh_stars>1000+
/*
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
... | 539 |
473 | <filename>front-end/qemu-2.3/target-moxie/machine.h
extern const VMStateDescription vmstate_moxie_cpu;
| 41 |
455 | /* -*- mode: c; c-file-style: "linux" -*- */
/* Run a micro benchmark on ip6_route_output().
*
* It creates a /sys/kernel/kbench directory. By default, a scan is
* done in 2000::/3 (considered as a linear space).
*
* The module only acts on the initial network namespace.
*
* Copyright (C) 2017 <NAME>
* Based on... | 9,895 |
619 | <reponame>moredu/upm
/*
* Author: <NAME> <<EMAIL>>
* Copyright (c) 2016 Intel Corporation.
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT
*/
#include <iost... | 2,023 |
405 | <reponame>zishuimuyu/jeewx
package org.jeecgframework.poi.excel.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* excel 导出是用于标记id的
* @author jueyue
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ java.lang.annotation.Elem... | 190 |
1,444 | <reponame>GabrielSturtevant/mage
package mage.cards.t;
import java.util.UUID;
import mage.abilities.costs.AlternativeCostSourceAbility;
import mage.abilities.costs.common.ReturnToHandChosenControlledPermanentCost;
import mage.abilities.effects.common.CounterTargetEffect;
import mage.cards.CardImpl;
import mage.cards.... | 542 |
711 | <gh_stars>100-1000
package com.java110.code.util;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.Outp... | 4,496 |
2,591 | package liquibase.command;
/**
* Builder for configuring {@link CommandStep} settings, such as {@link CommandArgumentDefinition}s and {@link CommandResultDefinition}s
*/
public class CommandBuilder {
private final String[][] commandNames;
/**
* Creates a builder for the given command name
*/
... | 323 |
2,293 | <gh_stars>1000+
BANDS = ["Metallica", "Black Sabbath", "Iron Maiden"]
| 26 |
532 | /*******************************************************************************
TOOLS.C
Author: <NAME>
Date: 8-DEC-88
Copyright (c) 1992-5 MusculoGraphics, Inc.
All rights reserved.
Portions of this source code are copyrighted by MusculoGraphics, Inc.
Description: This file contains a bunch o... | 27,502 |
777 | // Copyright 2017 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.suggestions;
import org.chromium.chrome.browser.ntp.snippets.SnippetArticle;
import org.chromium.content_public.brows... | 445 |
675 | <reponame>Texas-C/echo
/*
* Copyright (c) 2019-2021 Valve Corporation
* Copyright (c) 2019-2021 LunarG, 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... | 892 |
1,808 | // Utils includes
#include <utils/ColorArgb.h>
const ColorArgb ColorArgb::BLACK = { 255, 0, 0, 0 };
const ColorArgb ColorArgb::RED = { 255, 255, 0, 0 };
const ColorArgb ColorArgb::GREEN = { 255, 0, 255, 0 };
const ColorArgb ColorArgb::BLUE = { 255, 0, 0, 255 };
const ColorArgb ColorArgb::YELLO... | 171 |
844 | <gh_stars>100-1000
from __future__ import absolute_import, division, print_function
import numpy as np
import pandas as pd
from datashape.predicates import isscalar
from toolz import concat, partition_all, compose
from collections import Iterator, Iterable
import datashape
from datashape import discover
from .core imp... | 4,323 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-3mg7-6jfw-73pw",
"modified": "2022-05-01T18:22:53Z",
"published": "2022-05-01T18:22:53Z",
"aliases": [
"CVE-2007-4372"
],
"details": "Unspecified vulnerability in NetWin SurgeMail 38k on Windows Server 2003 has unknown impact and remote attack vectors. NOTE: t... | 420 |
713 | package org.infinispan.stream.impl.intops;
import java.util.stream.BaseStream;
import java.util.stream.Stream;
/**
* Interface to signify that an {@link IntermediateOperation} is a flat map operation. This also provides proper
* generics for converting a flat map as a map operation resulting in a Stream containing ... | 238 |
322 | <filename>src/nullappender.cxx
// Module: Log4CPLUS
// File: nullappender.cxx
// Created: 6/2003
// Author: <NAME>
//
//
// Copyright 2003-2017 <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 o... | 457 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.