max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
868 | <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 licenses this file to You under the Apache License, Version 2.0
* (the "... | 5,134 |
1,707 | <filename>code/Modules/Gfx/private/resourceBase.cc<gh_stars>1000+
//------------------------------------------------------------------------------
// resourceBase.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "resourceBase.h"
namespace Oryol {
namespace ... | 344 |
453 | <gh_stars>100-1000
#define INPUT_SIZE 8
#define VALUE_SIZE 256
extern void histogram(int in[INPUT_SIZE], int hist[VALUE_SIZE]);
| 48 |
3,227 |
/*!
\ingroup PkgAlgebraicFoundationsAlgebraicStructuresConcepts
\cgalConcept
A model of `FractionTraits` is associated with a type `Type`.
In case the associated type is a `Fraction`, a model of `FractionTraits` provides the relevant functionality for decomposing and re-composing as well
as the numerator and denomin... | 1,388 |
675 | /**********************************************************************
Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
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... | 1,691 |
2,151 | <gh_stars>1000+
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/message_center/popups_only_ui_delegate.h"
#include <stddef.h>
#include "base/macros.h"
#include "base/... | 1,696 |
14,668 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_INFOBARS_BANNERS_INFOBAR_BANNER_ACCESSIBILITY_UTIL_H_
#define IOS_CHROME_BROWSER_UI_INFOBARS_BANNERS_INFOBAR_BANNER_ACCESSIB... | 370 |
887 | /*
* 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 ... | 742 |
457 | package denominator;
import java.io.Closeable;
import java.io.IOException;
import javax.inject.Inject;
/**
* represents the connection between a {@link DNSApi} interface and the {@link Provider} that
* implements it.
*/
public class DNSApiManager implements Closeable {
private final Provider provider;
privat... | 399 |
1,826 | package com.vladsch.flexmark.ext.definition.internal;
import com.vladsch.flexmark.ext.definition.DefinitionExtension;
import com.vladsch.flexmark.parser.Parser;
import com.vladsch.flexmark.parser.ParserEmulationProfile;
import com.vladsch.flexmark.util.data.DataHolder;
@SuppressWarnings("WeakerAccess")
class Definiti... | 828 |
2,023 | """ This modules provides a lightweight API to access Excel data.
There are many ways to read Excel data, including ODBC. This module
uses ADODB and has the advantage of only requiring a file name and a
sheet name (no setup required).
"""
import win32com.client
class ExcelDocument(object):
""" Represe... | 2,912 |
9,106 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#define NOMINMAX
#include <windows.h>
#include <winrt/Microsoft.ReactNative.h>
#include <winrt/Windows.Data.Json.h>
#include <winrt/Windows.Foundation.Collections.h>
#include <winrt/Windows.Foundation.h>
#include <win... | 132 |
1,781 | package com.marshalchen.common.uimodule.passcodelock;
import android.app.Activity;
import android.app.Application;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.util.Base64;
import java.util.Arrays;
import... | 3,017 |
315 | #include <iostream>
#include <assert.h>
using namespace std;
int gcdExtended(int a, int b, int* x, int* y)
{
// Base Condition (Special Case)
if (a == 0) {
*x = 0;
*y = 1;
return b;
}
// Call the function recursively
int x1, y1;
int gcd = gcdExtended(b % a, a, &x1, &y1... | 315 |
493 | /**
* Copyright (C) 2016 Turi
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#ifndef PROCESS_UTIL_HPP
#define PROCESS_UTIL_HPP
#include<string>
#include<boost/optional.hpp>
namespace graphlab {
size_t get_pare... | 240 |
648 | {"resourceType":"DataElement","id":"Goal.author","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/Goal.author","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":"Goal.author","short":"Who's responsible for creating Goal?","definition":"In... | 249 |
9,734 | <reponame>timkpaine/arrow<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... | 1,314 |
3,976 | <reponame>saurabh896/python-1<gh_stars>1000+
#!/usr/bin/python
# coding=utf-8
"""
纯文本文件 numbers.txt, 里面的内容(包括方括号)如下所示:
请将上述内容写到 numbers.xls 文件中,如下图所示:
"""
import os
import json
import xlwt
def read_txt(path):
with open(path, 'r') as f:
text = f.read().decode('utf-8')
text_json = json.loads(text)... | 465 |
812 | <filename>src/edu/stanford/nlp/sempre/tables/serialize/TableReader.java
package edu.stanford.nlp.sempre.tables.serialize;
import java.io.*;
import java.util.*;
import au.com.bytecode.opencsv.CSVReader;
import edu.stanford.nlp.sempre.tables.StringNormalizationUtils;
import fig.basic.LogInfo;
/**
* Read a table in ei... | 1,206 |
390 | import re
import execjs
import requests
js_code = """l=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22... | 833 |
1,333 | <reponame>a6401040/Moss<filename>moss-client/moss-client-common/src/main/java/org/xujin/moss/client/endpoint/dependency/central/DefaultMavenSearchBuilder.java
package org.xujin.moss.client.endpoint.dependency.central;
import java.io.InputStream;
import org.xujin.moss.client.endpoint.dependency.MavenSearchBuilder;
imp... | 791 |
831 | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1,577 |
2,023 | import inspect, _ast
class Autoslots_meta(type):
"""
Looks for assignments in __init__
and creates a __slot__ variable for all the
instance attributes in the assignment.
Assumes that all assignments in __init__ are of
the form:
self.attr = <value>
"""
def __new__(cls, name, bases... | 595 |
419 | #include "Transform.h"
//-------------------------------------------------------------------------
namespace KRG
{
Transform const Transform::Identity = Transform( Quaternion( 0, 0, 0, 1 ), Vector( 0, 0, 0, 1 ), Vector( 1, 1, 1, 0 ) );
//---------------------------------------------------------------... | 804 |
507 | # terrascript/resource/Mongey/middesk.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:21:39 UTC)
import terrascript
class middesk_webhook(terrascript.Resource):
pass
__all__ = [
"middesk_webhook",
]
| 90 |
1,338 | <reponame>Kirishikesan/haiku<filename>headers/private/graphics/radeon/memcntrl_regs.h
/*
Copyright (c) 2002, <NAME>
Part of Radeon driver
BusMemory Control registers
*/
#ifndef _MEMCNTRL_REGS_H
#define _MEMCNTRL_REGS_H
#define RADEON_AGP_BASE 0x0170
#define RADEON_MEM_CNTL ... | 1,460 |
362 | package net.ripe.db.whois.update.handler.validator.personrole;
import com.google.common.collect.ImmutableList;
import net.ripe.db.whois.common.domain.CIString;
import net.ripe.db.whois.common.rpsl.AttributeType;
import net.ripe.db.whois.common.rpsl.ObjectType;
import net.ripe.db.whois.common.rpsl.RpslAttribute;
import... | 712 |
338 | package com.camnter.newlife.ui.activity.tabalphaview;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import com.camnter.newlife.R;
import com.camnter.newlife.c... | 1,044 |
1,900 | /*
* Copyright Terracotta, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 379 |
1,110 | import copy
import tensorflow as tf
from onnx_tf.handlers.backend_handler import BackendHandler
from onnx_tf.handlers.handler import onnx_op
from onnx_tf.handlers.handler import tf_func
from .math_mixin import ReductionMixin
from onnx_tf.common.tf_helper import tf_shape
@onnx_op("ReduceSum")
@tf_func(tf.reduce_sum)... | 589 |
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... | 1,944 |
5,813 | <reponame>RomaKoks/druid<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 Licen... | 16,440 |
463 | package java8testing;
public final class BusinessService
{
private final Collaborator collaborator;
public BusinessService(Collaborator collaborator) {
this.collaborator = collaborator;
}
public Collaborator getCollaborator() { return collaborator; }
public String performBusinessOperation(int v... | 106 |
630 | <filename>deps/boyer-moore-horspool/StreamBoyerMooreHorspool.h
/*
* Copyright (c) 2010 Phusion v.o.f.
* https://github.com/FooBarWidget/boyer-moore-horspool
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to de... | 6,401 |
892 | <reponame>github/advisory-database<filename>advisories/unreviewed/2022/05/GHSA-vr23-5gw8-f36f/GHSA-vr23-5gw8-f36f.json<gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-vr23-5gw8-f36f",
"modified": "2022-05-13T01:04:36Z",
"published": "2022-05-13T01:04:36Z",
"aliases": [
"CVE-2014-7959"
],
"d... | 590 |
1,765 | <gh_stars>1000+
package io.envoyproxy.pgv;
import io.envoyproxy.pvg.cases.Enum;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
public class RequiredValidationTest {
@Test
public void requiredWorks() throws ValidationException {
// Present
RequiredVali... | 186 |
549 | #include "bitmap.h"
#include <stdio.h>
#include <string.h>
bitmap::bitmap(uint8_t *data, size_t size) : bitmap_size(size)
{
memset(data, 0xff, size / 8);
buffer = data;
last_free = 0;
}
void bitmap::set(size_t idx, bool value)
{
if (idx > bitmap_size)
{
printf("[error] bitmap: trying to set... | 1,841 |
471 | /*
* Copyright 2012 <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 of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 884 |
32,544 | <gh_stars>1000+
package com.baeldung.msf4j.msf4japi;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
i... | 839 |
1,428 | <filename>C/skand.c
#include<stdio.h>
int fac(int x);
int main()
{
int n,m;
printf("enter a number");
scanf("%d",&n);
m=fac(n);
printf("%d",m);
return 0;
}
int fac(int x)
{
int z;
if(x==0||x==1)
return 1;
else
z=x*fac(x-1);
return z;
}
| 171 |
1,702 | package com.example.session;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SessionJdbcApplication {
public static void main(String[] args) throws Throwable {
SpringApplication.run(SessionJdbcApplication.c... | 92 |
348 | {"nom":"Tharaux","circ":"4ème circonscription","dpt":"Gard","inscrits":68,"abs":19,"votants":49,"blancs":16,"nuls":2,"exp":31,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":28},{"nuance":"FN","nom":"Mme <NAME>","voix":3}]} | 92 |
500 | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Estimate joint feature vector of the speaker pair using GMM
"""
import argparse
import os
import sys
from sprocket.model.GMM import GMMConvertor, GMMTrainer
from sprocket.util import HDF5, estimate_twf, melcd
from sprocket.util import static_delta, align_data
fro... | 5,163 |
1,233 | # Copyright 2016 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 applicable law or ag... | 342 |
409 | <reponame>JensUweUlrich/seqan
// ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2018, <NAME>, FU Berlin
// All rights reserved.
//
... | 3,053 |
21,684 | <filename>src/rpc/directory/map_read_manager.cc
// Copyright 2010-2014 RethinkDB, all rights reserved.
#include "rpc/directory/map_read_manager.tcc"
/* for unit tests */
template class directory_map_read_manager_t<int, int>;
#include "clustering/table_manager/table_metadata.hpp"
template class directory_map_read_mana... | 222 |
12,278 |
// Copyright (C) 2009-2012 <NAME>
// Distributed under the Boost Software License, Version 1.0
// (see accompanying file LICENSE_1_0.txt or a copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Home at http://www.boost.org/libs/local_function
#include <boost/config.hpp>
#ifdef BOOST_NO_CXX11_LAMBDAS
# error "requir... | 307 |
677 | /*
* Copyright (C) 2014 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | 890 |
76,518 | <gh_stars>1000+
#pragma once
#include <vector>
#include <string>
#include <fstream>
#include <filesystem>
#include <unordered_map>
#include <Windows.h>
void ReportRegistry(const std::filesystem::path& tmpDir);
void ReportCompatibilityTab(const std::filesystem::path& tmpDir);
| 94 |
1,109 | <gh_stars>1000+
package org.cboard.services.job;
import org.cboard.pojo.DashboardJob;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.SchedulerException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.... | 347 |
310 | package com.ilscipio.scipio.cms.template;
import java.util.HashMap;
import java.util.Map;
import org.ofbiz.base.util.Debug;
import org.ofbiz.base.util.UtilGenerics;
import org.ofbiz.base.util.UtilMisc;
import org.ofbiz.base.util.UtilValidate;
import org.ofbiz.entity.Delegator;
import org.ofbiz.entity.GenericValue;
im... | 2,994 |
777 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "platform/graphics/paint/TransformPaintPropertyNode.h"
namespace blink {
TransformPaintPropertyNode* TransformPaintPropertyNode::root() {
DEF... | 416 |
14,668 | // 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 CHROME_BROWSER_EXTENSIONS_API_IDLTEST_IDLTEST_API_H_
#define CHROME_BROWSER_EXTENSIONS_API_IDLTEST_IDLTEST_API_H_
#include "extensions/browse... | 414 |
5,846 | <gh_stars>1000+
{
"$schema": "https://raw.githubusercontent.com/aspnet/BuildTools/master/tools/korebuild.schema.json",
"channel": "master"
}
| 55 |
4,348 | /***
Copyright (c) 2013-2015 CommonsWare, 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... | 2,179 |
511 | // ---- GeneratedTypes.java -----------------
// This is a generated file. Not intended for manual editing.
package generated;
import com.intellij.psi.tree.IElementType;
import com.intellij.psi.tree.TokenSet;
public interface GeneratedTypes {
IElementType ANOTHER_THREE_TOKENS = new IElementType("ANOTHER_THREE_TOKE... | 1,080 |
852 | ## import skeleton process
from PhysicsTools.PatAlgos.patTemplate_cfg import cms, process, patAlgosToolsTask
#process.Tracer = cms.Service("Tracer")
process.load("PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff")
patAlgosToolsTask.add(process.patCandidatesTask)
#Temporary customize to the unit tests that fail... | 887 |
5,305 | <gh_stars>1000+
public @interface Annot_1 {
String[] values() default {};
}
| 28 |
2,151 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/shelf/app_list_shelf_item_delegate.h"
#include <utility>
#include "ash/app_list/app_list_controller_impl.h"
#include "ash/public/cpp/app_l... | 1,178 |
1,601 | <reponame>ryankurte/codechecker<filename>web/client/codechecker_client/helpers/base.py
# -------------------------------------------------------------------------
#
# Part of the CodeChecker project, under the Apache License v2.0 with
# LLVM Exceptions. See LICENSE for license information.
# SPDX-License-Identifier:... | 1,219 |
321 | <filename>apis/api-core/api-core-common/src/main/java/org/hoteia/qalingo/core/web/mvc/viewbean/CustomerAddressListViewBean.java
/**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICE... | 442 |
915 | package org.nzbhydra.historystats.stats;
import lombok.Data;
import java.time.DayOfWeek;
import java.time.format.TextStyle;
import java.util.Locale;
@Data
public class CountPerDayOfWeek {
private String day = null;
private Integer count = null;
/**
* @param dayIndex 1 for "Mon", 2 for "Tue", etc.
... | 194 |
1,059 | /* SPDX-License-Identifier: BSD-2-Clause */
#pragma once
#include <tilck/common/basic_defs.h>
#include <tilck/kernel/bintree.h>
struct debug_kmalloc_heap_info {
ulong vaddr;
size_t size;
size_t mem_allocated;
size_t min_block_size;
size_t alloc_block_size;
int region;
};
struct kmalloc_small_heaps... | 626 |
15,577 | <gh_stars>1000+
#include <Functions/FunctionUnixTimestamp64.h>
#include <Functions/FunctionFactory.h>
namespace DB
{
void registerFromUnixTimestamp64Milli(FunctionFactory & factory)
{
factory.registerFunction("fromUnixTimestamp64Milli",
[](ContextPtr){ return std::make_unique<FunctionToOverloadResolverAda... | 150 |
364 | <filename>hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/delete/job/MultiUrlJobParameterValidatorTest.java
package ca.uhn.fhir.jpa.delete.job;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.interceptor.model.RequestPartitionId;
import ca.uhn.fhir.jpa.api.dao.DaoRegistry;
import ca.uhn.fhir.jpa.batc... | 1,041 |
2,151 | // 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.
#include "ash/window_manager_service.h"
#include <memory>
#include <utility>
#include "ash/mojo_interface_factory.h"
#include "ash/network_connect_deleg... | 1,953 |
1,159 | """
Dist Plot Bokeh
===============
_thumb: .2, .8
"""
import bokeh.plotting as bkp
import numpy as np
from bokeh.layouts import row
import arviz as az
a = np.random.poisson(4, 1000)
b = np.random.normal(0, 1, 1000)
figure_kwargs = dict(height=500, width=500, output_backend="webgl")
ax_poisson = bkp.figure(**figure... | 265 |
2,232 | <filename>src/library/delayed_abstraction.h
/*
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: <NAME>
*/
#pragma once
#include "kernel/environment.h"
namespace lean {
expr mk_delayed_abstraction(expr const & e, buffer<name> con... | 664 |
565 | /*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+--------------... | 4,063 |
1,039 | #if !defined(SIMDE_X86_AVX512_ROL_H)
#define SIMDE_X86_AVX512_ROL_H
#include "types.h"
#include "mov.h"
#include "or.h"
#include "srli.h"
#include "slli.h"
#include "../avx2.h"
HEDLEY_DIAGNOSTIC_PUSH
SIMDE_DISABLE_UNWANTED_DIAGNOSTICS
SIMDE_BEGIN_DECLS_
#if defined(SIMDE_X86_AVX512F_NATIVE) && defined(SIMDE_X86_AVX5... | 8,016 |
370 | <filename>jte-jsp-converter/src/main/java/org/apache/jasper/compiler/JtpParser.java
package org.apache.jasper.compiler;
import org.apache.jasper.JasperException;
import org.apache.jasper.JspC;
import org.apache.jasper.JspCompilationContext;
import org.apache.jasper.Options;
import org.apache.jasper.servlet.JspCServlet... | 3,079 |
557 | <reponame>kritarthh/bakeware<gh_stars>100-1000
#include <ftw.h>
#include <stdio.h>
#include <unistd.h>
#include <limits.h>
#include "bakeware.h"
// OPEN_MAX isn't defined on some systems. Note that many nftw man pages say
// that the max open file handles parameter is ignored, but it's definitely not
// ignored in th... | 351 |
852 | <filename>PhysicsTools/PatAlgos/python/slimming/selectedPatTrigger_cfi.py
import FWCore.ParameterSet.Config as cms
selectedPatTrigger = cms.EDFilter("PATTriggerObjectStandAloneSelector",
src = cms.InputTag("patTrigger"),
cut = cms.string("!filterLabels.empty()")
)
| 97 |
1,104 | {
"html": "BlueBeards_Bride.html",
"css": "BlueBeards_Bride.css",
"authors": "<NAME>",
"roll20userid": "2321057",
"preview": "BlueBeards_Bride.png",
"instructions": "Help Information is included on the \"Help\" tab of the character sheet",
"legacy": true
} | 98 |
595 | /*******************************************************************************
* Copyright (C) 2017 - 2020 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
/**************************************************************... | 983 |
1,754 | <reponame>leonard84/ratpack<gh_stars>1000+
/*
* Copyright 2013 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/LIC... | 1,438 |
347 | <gh_stars>100-1000
package org.ovirt.engine.core.vdsbroker.irsbroker;
import java.io.Serializable;
public class IRSUnicodeArgumentException extends IRSGenericException implements Serializable {
// protected IRSUnicodeArgumentException(SerializationInfo info,
// StreamingContext context)
// {
// super(... | 205 |
507 | # terrascript/dns/d.py
# Automatically generated by tools/makecode.py ()
import warnings
warnings.warn(
"using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2
)
import terrascript
class dns_a_record_set(terrascript.Data):
pass
class dns_aaaa_record_set(terrascript.Data):
pass
cl... | 251 |
738 | <reponame>dutrow/crits
import uuid
try:
from django_mongoengine import Document
except ImportError:
from mongoengine import Document
from mongoengine import EmbeddedDocument
from mongoengine import StringField, ListField
from mongoengine import UUIDField
from mongoengine import IntField, BooleanField
from django.co... | 2,305 |
576 | package japicmp.test;
import org.junit.Test;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class ITNoReport {
@Test
public void testThatNoReportWasGenerated() {
Path path = Paths.get(Sy... | 160 |
515 | package br.com.caelum.stella.feriado.util;
import java.util.Comparator;
import br.com.caelum.stella.feriado.entity.Feriado;
public class Ordernador {
public static final Comparator<Feriado> DATA_CRESCENTE = new Comparator<Feriado>() {
@Override
public int compare(Feriado f1, Feriado f2) {
return f1.getData... | 481 |
764 | {"symbol": "ARDX","address": "0xB8E2e2101eD11e9138803cd3e06e16dd19910647","overview":{"en": ""},"email": "<EMAIL>","website": "http://www.ardcoin.com/","state": "NORMAL","links": {"blog": "https://medium.com/@ardcoin","twitter": "https://twitter.com/ard_coin","telegram": "https://t.me/ardcoin","github": ""}} | 118 |
452 | <filename>src/SegfaultHandler.h<gh_stars>100-1000
#ifndef FREEBAYES_SEGFAULTHANDLER_H
#define FREEBAYES_SEGFAULTHANDLER_H
#include <stdio.h>
#ifndef __CYGWIN__
#include <execinfo.h>
#endif
#include <signal.h>
#include <stdlib.h>
void segfaultHandler(int sig);
#endif
| 121 |
851 | <filename>modules/schema/schema/session/state_update.schema.json
{
"id": "https://xviz.org/schema/session/state_update.json",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "XVIZ Stream Update",
"type": "object",
"properties": {
"update_type": {
"type": "string",
"enum": ... | 327 |
2,666 | #include <errno.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "cache.h"
#define MAX_RANDOM_ENTRIES 32
struct key_record {
char *key;
char *value;
};
int generate_random_entry(struct key_record **entry);
int generate_random_string(char **dst, const s... | 1,546 |
348 | {"nom":"Veyrines-de-Domme","circ":"4ème circonscription","dpt":"Dordogne","inscrits":181,"abs":98,"votants":83,"blancs":7,"nuls":7,"exp":69,"res":[{"nuance":"FI","nom":"<NAME>","voix":39},{"nuance":"REM","nom":"Mme <NAME>","voix":30}]} | 97 |
301 | /******************************************************************
*
* Copyright 2015 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 the License at
*
... | 1,433 |
634 | <reponame>halotroop2288/consulo
/*
* Copyright 2013-2019 consulo.io
*
* 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... | 4,898 |
302 | # --------------------------------------------------------------------------
# Source file provided under Apache License, Version 2.0, January 2004,
# http://www.apache.org/licenses/
# (c) Copyright IBM Corp. 2020
# --------------------------------------------------------------------------
"""
The trim loss problems a... | 1,592 |
327 | #ifdef NETWORK_C
#pragma once
#define SOCKET_C
#define DISPATCH_C
#define PORT_C
#define WEBSERVER_C
#define OSCSEND_C
#define OSCRECV_C
#define OSCPACK_C
#define SENDBUF_C
#endif
#include "network_compat.c"
#include "network_socket.c"
#include "network_dispatch.c"
#include "network_port.c"
#include "network_webserver... | 184 |
5,250 | <gh_stars>1000+
/* 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, softwar... | 1,163 |
1,248 | <filename>intg/src/main/java/org/apache/atlas/model/impexp/AttributeTransform.java
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF license... | 1,071 |
523 | <gh_stars>100-1000
// Copyright <NAME> 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file ../LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#if !defined(CNL_IMPL_NUM_TRAITS_ROUNDING_H)
#define CNL_IMPL_NUM_TRAITS_ROUNDING_H
#include... | 509 |
672 | <gh_stars>100-1000
/*
* Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You ... | 607 |
2,392 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2009 <NAME> <<EMAIL>>
//
// 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://mo... | 3,266 |
1,318 | /*
* Copyright 2016 LinkedIn Corp.
*
* 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 i... | 8,397 |
664 | <gh_stars>100-1000
// Classic Shell (c) 2009-2016, <NAME>
// Confidential information of <NAME>. Not for disclosure or distribution without prior written consent from the author
#include <windows.h>
#include <commctrl.h>
#include <shlwapi.h>
#include <Psapi.h>
#include "StringUtils.h"
// Find and activate the Setting... | 1,693 |
435 | <gh_stars>100-1000
{
"copyright_text": null,
"description": "Em 2019, depois de muito esfor\u00e7o de v\u00e1rias pessoas volunt\u00e1rias, publicamos no site oficial da documenta\u00e7\u00e3o do Python as tradu\u00e7\u00f5es em Portugu\u00eas. Por\u00e9m, isso n\u00e3o quer dizer que o trabalho com as tradu\u00e7\... | 550 |
61,676 | import os
import signal
import subprocess
import sys
from pathlib import Path
from unittest import mock, skipUnless
from django.db import connection
from django.db.backends.postgresql.client import DatabaseClient
from django.test import SimpleTestCase
class PostgreSqlDbshellCommandTestCase(SimpleTestCase):
def s... | 3,189 |
1,870 | <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,153 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.