max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
627 | /* Copyright 2017 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Power and battery LED control for HX20
*/
#include "battery.h"
#include "charge_state.h"
#include "chipset.h"
#include "ec_commands.h"
#include ... | 5,419 |
14,668 | // 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 "components/ssl_errors/error_classification.h"
#include <memory>
#include "base/bind.h"
#include "base/files/file_path.h"
#include "base/string... | 5,867 |
390 | #include <glPortal/renderer/GameRenderer.hpp>
#include <glPortal/World.hpp>
#include <glPortal/Portal.hpp>
#include <radix/env/Config.hpp>
#include <radix/core/gl/OpenGL.hpp>
#include <radix/renderer/Renderer.hpp>
#include <radix/Viewport.hpp>
#include <radix/entities/Player.hpp>
#include <radix/entities/ViewFrame.hpp... | 6,138 |
2,114 | package io.searchbox.core.search.aggregation;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import java.util.Arrays;
import java.util.List;
import org.junit.Test;
import static org.junit.Assert.*;
public class CompositeAggregationTest {
final String afterKey = "'after_key':{'field':'valB'}";
... | 1,188 |
1,997 | <reponame>delgadofarid/djl
/*
* Copyright 2020 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/
*... | 558 |
450 | <gh_stars>100-1000
//===- FileHandleTest.cpp -------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include <skypat/skypat.h>
#include <onnc/Support/... | 703 |
467 | package com.lhh.apst.advancedpagerslidingtabstrip;
import android.app.Application;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.imagepipeline.backends.okhttp.OkHttpImagePipelineConfigFactory;
import com.facebook.imagepipeline.core.ImagePipelineConfig;
import com.squareup.okhttp.OkHttpClien... | 262 |
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... | 3,881 |
979 | <gh_stars>100-1000
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include <errno.h>
#include <netinet/in.h>
#include <linux/if_ether.h>
#include <linux/ip.h>
#include <linux/udp.h>
#include <linux/tcp.h>
#include "../../include/ps.h"
void dump_packet(char *buf, int len)
{
struct et... | 2,243 |
746 | <gh_stars>100-1000
package org.protege.editor.owl.ui.ontology.imports.wizard;
import org.protege.editor.core.ui.wizard.Wizard;
import org.protege.editor.owl.OWLEditorKit;
import org.protege.editor.owl.ui.ontology.imports.wizard.page.*;
import java.awt.*;
import java.util.Collections;
import java.util.HashSet;
import ... | 855 |
4,262 | <filename>components/camel-jbpm/src/main/java/org/apache/camel/component/jbpm/JBPMOperation.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... | 606 |
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... | 556 |
312 | <gh_stars>100-1000
package org.reveno.atp.examples.compensating_mutable_model;
import org.reveno.atp.api.Configuration;
import org.reveno.atp.api.Reveno;
import org.reveno.atp.core.Engine;
import org.reveno.atp.utils.MapUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Examples {
prote... | 1,547 |
486 | <filename>docs/examples_src/querying/equal.py
from odmantic import Model, query
class Tree(Model):
name: str
average_size: float
Tree.name == "Spruce"
#> QueryExpression({'name': {'$eq': 'Spruce'}})
Tree.name.eq("Spruce")
#> QueryExpression({'name': {'$eq': 'Spruce'}})
query.eq(Tree.name, "Spruce")
#> Query... | 145 |
372 | /*
* 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... | 1,811 |
14,668 | // Copyright 2020 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 "cc/test/fake_content_layer_client.h"
#include "cc/test/fake_picture_layer.h"
#include "cc/test/layer_tree_test.h"
#include "cc/test/property_tre... | 1,967 |
636 | #A* -------------------------------------------------------------------
#B* This file contains source code for the PyMOL computer program
#C* Copyright (c) Schrodinger, LLC.
#D* -------------------------------------------------------------------
#E* It is unlawful to modify or remove this copyright notice.
#F* --------... | 3,594 |
582 | /*******************************************************************************
* Copyright (c) 2000, 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,012 |
2,338 | <reponame>mkinsner/llvm<gh_stars>1000+
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -fwchar-type=short -fno-signed-wchar %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=ITANIUM
// RUN: %clang_cc1 -triple %ms_abi_triple -emit-llvm -fwchar-type=short -fno-signed-wchar %s -o - | FileCheck %s --chec... | 623 |
1,085 | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... | 5,489 |
540 | <gh_stars>100-1000
/* ----------------------------------------------------------------------------
** Copyright (c) 2016 <NAME>, All Rights Reserved.
**
** Argument.hpp
** --------------------------------------------------------------------------*/
#pragma once
namespace ursine
{
namespace meta
{
temp... | 677 |
1,440 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-21 07:11
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | 931 |
1,040 | <reponame>Ybalrid/orbiter<filename>Utils/fchecksum/fchecksum.cpp
// Copyright (c) <NAME>
// Licensed under the MIT License
// Create a simple checksum from a file and store it in a text file
// in a format that can be #include'd by a source file.
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>... | 515 |
778 | <filename>applications/MeshingApplication/custom_python/add_meshers_to_python.h
// KRATOS __ __ _____ ____ _ _ ___ _ _ ____
// | \/ | ____/ ___|| | | |_ _| \ | |/ ___|
// | |\/| | _| \___ \| |_| || || \| | | _
// | | | | |___ ___) | _ || || |\ | |_| |
// |_| |_|_____|____/|... | 426 |
488 | <reponame>maurizioabba/rose<filename>src/roseExtensions/sqlite3x/sqlite3x.h<gh_stars>100-1000
/*
Copyright (C) 2004-2005 <NAME>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use o... | 3,647 |
482 | <filename>nutzboot-starter/nutzboot-starter-thrift-server/src/main/java/org/nutz/boot/starter/thrift/server/ThriftServerStarter.java
package org.nutz.boot.starter.thrift.server;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.apache.thrift.TMultiplexedProcessor;
import org.a... | 3,502 |
322 | <reponame>sieren/esp-wolfssl
#include "board.h"
#include <string.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <wolfssl/wolfcrypt/settings.h>
#include <wolfssl/ssl.h>
#include <wolfcrypt/test/test.h>
#include <wolfcrypt/benchmark/benchmark.h>
/*****************************************************... | 1,174 |
587 | <reponame>rocky341/Gaffer<filename>core/common-util/src/main/java/uk/gov/gchq/gaffer/commonutil/PropertiesUtil.java
/*
* Copyright 2017-2020 Crown Copyright
*
* 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... | 500 |
458 | // Copyright 2015-2021 Swim 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 ... | 1,219 |
328 | package lcn;
public class EntityNameAndScore implements Comparable<EntityNameAndScore> {
public int entityID;
public String entityName;
public double score;
public EntityNameAndScore(int id, String n, double s) {
entityID = id;
entityName = n;
score = s;
}
@Override
public String toString() {
retu... | 219 |
2,072 | <gh_stars>1000+
# Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
import unittest
from pyhocon import ConfigFactory
from databuilder.models.table_metadata import TableMetadata
from databuilder.transformer.table_tag_transformer import TableTagTransformer
class TestTableTagTrans... | 1,051 |
5,939 | <reponame>xuwei-k/finagle<filename>finagle-core/src/test/java/com/twitter/finagle/ssl/ProtocolsCompilationTest.java<gh_stars>1000+
package com.twitter.finagle.ssl;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
public class ProtocolsCompilationTest {
@Test
public void testUnspecified(... | 214 |
1,664 | /*
* 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
* distribut... | 791 |
2,338 | <filename>clang/test/CodeGen/riscv-metadata.c
// RUN: %clang_cc1 -triple riscv32 -target-abi ilp32 -emit-llvm -o - %s | FileCheck -check-prefix=ILP32 %s
// RUN: %clang_cc1 -triple riscv32 -target-feature +f -target-abi ilp32f -emit-llvm -o - %s | FileCheck -check-prefix=ILP32F %s
// RUN: %clang_cc1 -triple riscv32 -tar... | 538 |
432 | /* Conditional constant propagation pass for the GNU compiler.
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
2010, 2011, 2012, 2013 Free Software Foundation, Inc.
Adapted from original RTL SSA-CCP by <NAME> <<EMAIL>>
Adapted to GIMPLE trees by <NAME> <<EMAIL>>
This file is part ... | 30,990 |
435 | <filename>pycon-uk-2014/videos/pycon-uk-2014-the-minecraft-challenge.json
{
"copyright_text": "Standard YouTube License",
"description": "Presented by: <NAME>\n\nThere's already a great Python scripting interface for Minecraft, allowing you limitless creativity with the ability to read and place blocks anywhere. Un... | 624 |
505 | package de.rieckpil.blog;
import java.time.Instant;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import lombok.Data;
@Data
@Entity
pu... | 263 |
587 | //
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) Contributors to the OpenEXR Project.
//
#ifndef IMFOUTPUTPART_H_
#define IMFOUTPUTPART_H_
#include "ImfForward.h"
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
//---------------------------------------------------------------------
// class OutputPart:
//
/... | 452 |
13,648 | /**
******************************************************************************
* @file usbh_mtp_ptp.h
* @author MCD Application Team
* @version V3.0.0
* @date 18-February-2014
* @brief Header file for usbh_mtp_ptp.c
**********************************************************************... | 17,236 |
1,056 | /*
* 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 ... | 5,565 |
342 | <filename>chaosblade-exec-plugin/chaosblade-exec-plugin-log/src/main/java/com/alibaba/chaosblade/exec/plugin/log/LogConstant.java<gh_stars>100-1000
package com.alibaba.chaosblade.exec.plugin.log;
/**
* @author <EMAIL>
*/
public interface LogConstant {
String TARGET = "log";
String LOGBACK_KEY = "logback";
}... | 121 |
877 | <reponame>janrieke/checker-framework
public class FooConflict implements IFooSafe, IFooUI {
@Override
// :: warning: (override.effect.warning.inheritance)
public void foo() {}
}
| 60 |
1,738 | {
"pagination": {
"GetFlowTemplateRevisions": {
"input_token": "nextToken",
"limit_key": "maxResults",
"output_token": "nextToken",
"result_key": "summaries"
},
"GetSystemTemplateRevisions": {
"input_token": "nextToken",
"limit_key": "maxResults",
"output_token": ... | 781 |
309 | <gh_stars>100-1000
/*
* 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 AUTHO... | 12,991 |
7,482 | /**********************************************************************
* $Id$ lpc_dac.c 2011-06-02
*//**
* @file lpc_dac.c
* @brief Contains all functions support for DAC firmware library on
* LPC
* @version 1.0
* @date 02. June. 2011
* @author NXP MCU SW Application Team
*
* Co... | 2,301 |
1,224 | #include <stdio.h>
#include <stdlib.h>
#include "stogo.h"
/* has two global minima at (0.09,-0.71) and (-0.09,0.71), plus
4 additional local minima */
static int cnt=0;
double tst_obj(int n, const double *xy, double *g, void *unused)
{
double x, y, f;
x = xy[0];
y = xy[1];
f = ((x*x)*(4-2.1*(x*x)+((x*x)*(x... | 589 |
1,144 | <gh_stars>1000+
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or... | 1,774 |
1,561 | <filename>iot/api-client/manager/src/main/java/com/example/cloud/iot/examples/HttpExampleOptions.java
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | 2,424 |
825 | <reponame>wqruan/tf-encrypted<gh_stars>100-1000
# pylint: disable=missing-docstring
import unittest
import numpy as np
import tensorflow as tf
import tf_encrypted as tfe
from tf_encrypted.keras.engine.input_layer import Input
np.random.seed(42)
class TestInput(unittest.TestCase):
def setUp(self):
tf.re... | 256 |
1,248 | <reponame>pajowu/pretix<filename>src/pretix/base/migrations/0042_order_expires.py
# -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-19 17:57
from __future__ import unicode_literals
import pytz
from django.db import migrations
from django.utils import timezone
def forwards(apps, schema_editor):
Orde... | 401 |
381 | package com.tngtech.jgiven.impl.util;
import java.lang.reflect.AccessibleObject;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import com.tngtech.jgiven.exception.JGivenExecutionException;
import com.tngtech.jgiven.exception.JGivenInjectionException;
public class Reflection... | 568 |
611 | <reponame>dahsh/data<gh_stars>100-1000
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import pickle
from typing import Any, Dict, Optional, Tuple
from unittes... | 681 |
60,067 | #include "caffe2/opt/shape_info.h"
#include "caffe2/core/operator.h"
#include "caffe2/core/tensor_int8.h"
#include "caffe2/utils/string_utils.h"
#include <cctype>
namespace caffe2 {
namespace {
bool isNumber(const std::string& s) {
bool empty = true;
for (const char c : s) {
if (std::isalpha(c)) {
retur... | 3,210 |
3,323 | # Lint as: python3
# Copyright 2020 The AdaNet 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
# https://www.apache.org/licenses/LICENSE-2.0
# Unless requir... | 298 |
3,348 | /**
* 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,149 |
804 | package com.github.liuweijw.system.auth.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.security.oauth2.provider.token.ConsumerTokenServices;
impo... | 409 |
1,144 | <gh_stars>1000+
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* include/configs/ulcb.h
* This file is ULCB board configuration.
*
* Copyright (C) 2017 Renesas Electronics Corporation
*/
#ifndef __ULCB_H
#define __ULCB_H
#include "rcar-gen3-common.h"
/* Ethernet RAVB */
#define CONFIG_BITBANGMII
#define CONFIG_... | 268 |
368 | /*
Plugin-SDK (Grand Theft Auto San Andreas) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CTaskComplexWander.h"
CTaskComplexWander::CTaskComplexWander(int MoveState, unsigned char Dir, bool b... | 192 |
377 | <filename>bin/search_irc.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Simple IRC bot to query for the last entries in the CVE database
#
# current command supported is:
#
# last <max>
# cvetweet <max>
# browse
# search <vendor>\<product>
# get <cve>
#
# You need to connect the IRC bot to the IRC Server you wan... | 2,216 |
2,409 | <filename>emulatorview/src/main/java/jackpal/androidterm/emulatorview/ColorScheme.java
/*
* Copyright (C) 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://ww... | 1,821 |
1,772 | <reponame>mtcolman/django-DefectDojo
__author__ = 'jaguasch'
| 28 |
450 | <filename>src/pl/pljava/src/C/pljava/type/Boolean.c
/*
* Copyright (c) 2004, 2005, 2006 TADA AB - Taby Sweden
* Distributed under the terms shown in the file COPYRIGHT
* found in the root folder of this project or at
* http://eng.tada.se/osprojects/COPYRIGHT.html
*
* @author <NAME>
*/
#include "pljava/type/Type_... | 1,655 |
575 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_TASK_MANAGER_PROVIDERS_VM_CROSTINI_PROCESS_TASK_H_
#define CHROME_BROWSER_TASK_MANAGER_PROVIDERS_VM_CROSTINI_PROCESS_TASK_H_
#incl... | 414 |
1,682 | package com.linkedin.pegasus.generator.test.pdl.fixtures;
public class CustomInt
{
private final int _i;
public CustomInt(int i)
{
_i = i;
}
public int getValue()
{
return _i;
}
@Override
public boolean equals(Object obj)
{
if (obj instanceof CustomInt)
{
return _i == ((Cus... | 193 |
1,544 | /**
* Copyright (C) 2018-2019
* All rights reserved, Designed By www.joolun.com
* 注意:
* 本软件为www.joolun.com开发研制,项目使用请保留此说明
*/
package com.joolun.mall.service.impl;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.joolun.... | 602 |
1,056 | /*
* 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 ... | 3,450 |
743 | <reponame>michal494/hermes
package pl.allegro.tech.hermes.test.helper.containers;
import com.github.dockerjava.api.command.InspectContainerResponse;
import org.rnorth.ducttape.unreliables.Unreliables;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.Network;
import org.testco... | 2,517 |
512 | // Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
#include "sample.h"
#include "utils.h"
#include <utility>
void uniform_ray_sampling_kernel_wrapper(
int b, int num_rays, int max_hit... | 2,036 |
708 | package com.example.verificationcodejavademo.utils;
import android.text.TextUtils;
import android.util.Base64;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
/**
* Date:2020/5/20
* author:wuyan
*/
public class AESUtil {
private final static String ALGORITHMSTR = "AES/ECB/PKCS7Padding";
... | 656 |
11,356 | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2010-2012 <NAME>, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to 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)
... | 1,514 |
454 | <gh_stars>100-1000
package cn.originx.optic.component;
import cn.originx.scaffold.component.AbstractAdaptor;
import io.vertx.core.Future;
import io.vertx.up.commune.ActIn;
import io.vertx.up.commune.ActOut;
import io.vertx.up.commune.Record;
/**
* ## 「Channel」更新记录通道
*
* ### 1. 基本介绍
*
* 不带任何<strong>集成功能</strong>的... | 830 |
14,668 | <gh_stars>1000+
// Copyright (c) 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 <stdlib.h>
#include "libusbi.h"
int API_EXPORTED libusb_interrupt_handle_event(struct libusb_context* ctx) {
unsigned cha... | 148 |
369 | # -*- coding: utf-8 -*-
from django.conf import settings
from django.contrib.auth.models import AnonymousUser
from django.core.exceptions import ValidationError
from django.core.mail import send_mail
from django.core.urlresolvers import reverse
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
fr... | 6,332 |
839 | /**
* 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 m... | 1,991 |
313 | <filename>pulumi/infra/api_gateway.py
import json
from typing import List, Optional
import pulumi_aws as aws
from typing_extensions import Final
import pulumi
API_GATEWAY_LOGS_JSON_FORMAT: Final[str] = json.dumps(
{
# This is verbatim what you get from clicking the JSON button at
# https://consol... | 2,371 |
6,717 | // $Id: ClParseTest.java,v 1.1 1999/12/16 01:23:07 gjb Exp $
// ClParseTest.java
// Needs JavaCUP 10k or newer, from:
// http://www.cs.princeton.edu/~appel/modern/java/CUP/
// And JLex from:
// http://www.cs.princeton.edu/~appel/modern/java/JLex/index.html
import EDU.Washington.grad.gjb.cassowary.*;
import java.io.Str... | 426 |
310 | <reponame>BitcoinExchangeFH/BitcoinExchangeFH
import logging
from datetime import datetime
import re
from cryptofeed import FeedHandler
from cryptofeed.defines import L2_BOOK, TRADES, BID, ASK
from cryptofeed.callback import BookCallback, TradeCallback
import cryptofeed.exchanges as cryptofeed_exchanges
from .rest_ap... | 3,146 |
388 | #!/usr/bin/env python
from setuptools import setup
setup(
name="curieconf_utils",
version="1.0",
description="Curiefense configuration utils",
author="Reblaze",
author_email="<EMAIL>",
packages=["curieconf.utils"],
install_requires=[
"wheel",
"google-crc32c==1.1.2",
... | 268 |
308 | <reponame>youngster-all/Finger-Detection-and-Tracking<gh_stars>100-1000
import cv2
import matplotlib.pyplot as plt
def main():
basePath = "../data/"
imageFileOne = basePath + "4.1.04.tiff"
imageFileTwo = basePath + "4.1.05.tiff"
imageOne = cv2.imread(imageFileOne, 1)
imageTwo = cv2.imread(imageF... | 484 |
320 | /*
* Copyright (c) 2009-2016 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this... | 2,401 |
403 | package com.camunda.demo.webinar.testing.scope2;
import static org.camunda.bpm.engine.test.assertions.ProcessEngineTests.*;
import static org.junit.Assert.*;
import java.io.File;
import java.util.List;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
i... | 1,349 |
347 | /*
Copyright 2005-2015 Intel Corporation. All Rights Reserved.
This file is part of Threading Building Blocks. Threading Building Blocks is free software;
you can redistribute it and/or modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundat... | 6,447 |
2,151 | // 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.
#ifndef COMPONENTS_METRICS_COMPONENT_METRICS_PROVIDER_H_
#define COMPONENTS_METRICS_COMPONENT_METRICS_PROVIDER_H_
#include "components/metrics/metrics_pr... | 330 |
5,964 | <filename>node/v8_inspector/platform/inspector_protocol/BackendCallback.h
// Copyright (c) 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BackendCallback_h
#define BackendCallback_h
#include "platform/insp... | 209 |
1,449 | #ifndef FILENAME_NODE_ROOT_H
#define FILENAME_NODE_ROOT_H
#include <QList>
#include "filename/ast/filename-node.h"
struct FilenameNodeRoot : public FilenameNode
{
QList<FilenameNode*> exprs;
explicit FilenameNodeRoot(QList<FilenameNode*> exprs);
void accept(FilenameVisitor &v) const override;
};
#endif // FILEN... | 129 |
2,151 | // 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.
#include "base/macros.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/stringprintf.h"
#include "base/test... | 3,243 |
372 | <gh_stars>100-1000
/* (Auto-generated binary data file). */
#ifndef BINARY_DPF_RESOURCES_HPP_INCLUDED
#define BINARY_DPF_RESOURCES_HPP_INCLUDED
namespace dpf_resources
{
extern const char* dejavusans_ttf;
const unsigned int dejavusans_ttf_size = 741536;
};
#endif
| 134 |
370 | package com.vitco.app.importer;
import com.vitco.app.util.file.FileIn;
import com.vitco.app.util.file.RandomAccessFileIn;
import java.awt.*;
import java.io.File;
import java.io.IOException;
import java.math.BigInteger;
/**
* Kvx importer
*/
public class KvxImporter extends AbstractImporter {
// constructor
... | 2,196 |
1,056 | /*
* 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 ... | 2,091 |
387 | from setuptools import setup
from bython import VERSION_NUMBER
with open("README.md", "r") as fh:
long_description = fh.read()
# Install python package, scripts and manual pages
setup(name="bython",
version=VERSION_NUMBER,
author="<NAME>",
author_email="<EMAIL>",
license="MIT",
descr... | 283 |
828 | /*
* Copyright 2008-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 1,245 |
981 | /*******************************************************************
* File automatically generated by rebuild_wrappers.py (v2.1.0.16) *
*******************************************************************/
#ifndef __wrappedflacTYPES_H_
#define __wrappedflacTYPES_H_
#ifndef LIBNAME
#error You should only #include thi... | 273 |
1,244 | #ifndef __SH_FPU_ANY__
#define FE_ALL_EXCEPT 0
#define FE_TONEAREST 0
#else
#define FE_TONEAREST 0
#define FE_TOWARDZERO 1
#define FE_INEXACT 0x04
#define FE_UNDERFLOW 0x08
#define FE_OVERFLOW 0x10
#define FE_DIVBYZERO 0x20
#define FE_INVALID 0x40
#define FE_ALL_EXCEPT 0x7c
#endif
typedef unsigned lon... | 204 |
3,603 | /*
* 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
* distribut... | 697 |
3,428 | {"id":"00009","group":"hard-ham-1","checksum":{"type":"MD5","value":"ddea79a02a9978cb3dafef3c05ff37a6"},"text":"Return-Path: <<EMAIL>>\nReceived: from sunu422.rz.ruhr-uni-bochum.de (sunu422.rz.ruhr-uni-bochum.de [192.168.127.124])\n\tby yoda.bph.ruhr-uni-bochum.de (8.8.8/8.8.8) with SMTP id BAA17243\n\tfor <<EMAIL>>; W... | 1,502 |
922 | #!/usr/bin/env python
from lulu.common import (
url_info,
print_info,
get_content,
download_urls,
playlist_not_supported,
)
from lulu.util.parser import get_parser
__all__ = ['giphy_download']
site_info = 'GIPHY giphy.com'
def giphy_download(url, info_only=False, **kwargs):
html = get_conte... | 335 |
348 | <gh_stars>100-1000
{"nom":"Saint-Georges-de-Gréhaigne","circ":"6ème circonscription","dpt":"Ille-et-Vilaine","inscrits":302,"abs":136,"votants":166,"blancs":13,"nuls":6,"exp":147,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":101},{"nuance":"REM","nom":"<NAME>","voix":46}]} | 115 |
703 | <filename>Code/Engine/Foundation/Basics/Platform/CheckDefinitions.h
#pragma once
#ifndef NULL
# error "NULL is not defined."
#endif
#ifndef EZ_FORCE_INLINE
# error "EZ_FORCE_INLINE is not defined."
#endif
#ifndef EZ_ALWAYS_INLINE
# error "EZ_ALWAYS_INLINE is not defined."
#endif
#ifndef EZ_ALIGN
# error "EZ_ALI... | 566 |
381 | from rpython.rlib.rarithmetic import r_singlefloat, r_uint
from rpython.rtyper.lltypesystem import lltype, rffi
from rpython.translator.tool.cbuild import ExternalCompilationInfo
r_uint32 = rffi.r_uint
assert r_uint32.BITS == 32
UINT32MAX = 2 ** 32 - 1
# keep in sync with the C code in pypy__decay_jit_counters below... | 5,698 |
852 | import FWCore.ParameterSet.Config as cms
lsNumberFilter = cms.EDFilter("LSNumberFilter",
minLS = cms.untracked.uint32(21)
)
| 104 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.