max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
427 | /*
* Copyright (c) 2014 Apple Inc. All rights reserved.
*
* @APPLE_APACHE_LICENSE_HEADER_START@
*
* 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... | 837 |
988 | <filename>src/utilities/rebuild/rebuild.h
/*
* The contents of this file are subject to the Interbase Public
* License Version 1.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.Inprise.com/IPL.html
*
* Software distributed ... | 511 |
628 | <filename>vendor/openfx/Support/include/ofxsMultiThread.h
#ifndef _ofxsMultiThread_H_
#define _ofxsMultiThread_H_
/*
OFX Support Library, a library that skins the OFX plug-in API with C++ classes.
Copyright (C) 2004-2007 The Open Effects Association Ltd
Author <NAME> <EMAIL>
Redistribution and use in source and binary... | 1,428 |
633 |
package rars.riscv.instructions;
import rars.ProgramStatement;
import rars.riscv.hardware.RegisterFile;
import rars.riscv.BasicInstruction;
import rars.riscv.BasicInstructionFormat;
public class SRAI64 extends BasicInstruction {
public SRAI64() {
super("srai t1,t2,33", "Shift right arithmetic : Set t1 t... | 263 |
317 | //========================================================================================
//
// ADOBE CONFIDENTIAL
//
// File: AIEraserTool.h
//
// Copyright 2016 Adobe Systems Incorporated
// All Rights Reserved.
//
// NOTICE: All information contained herein is, and remains
// the property of Adobe Systems In... | 391 |
457 | package org.opsli.core.security.shiro.realm;
import cn.hutool.core.collection.CollUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.authc.*;
import org.apache.shiro.authz.AuthorizationInfo;
import org.apache.shiro.authz.SimpleAuthorizationInfo;
import org.apac... | 2,819 |
651 | <reponame>HanasakiHonoka/ds3os
/*
This code has been derived from LibTomCrypt, the cryptographic library
authored by <NAME>. His contribution is hence acknowledged. This
code has been developed to obtain two independent implementations of the
combined AES encryption/authentication modes (CCM, GCM and EAX) in order... | 531 |
14,668 | // 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_VR_UI_INTERFACE_H_
#define CHROME_BROWSER_VR_UI_INTERFACE_H_
#include <memory>
#include <queue>
#include <utility>
#include <vecto... | 2,071 |
977 | <filename>_lang/fr/capnet-assist.json
{
"You're connected!": "Vous êtes connecté !",
"Your Internet connection appears to be working. You can safely close this window and continue using your device.": "Votre connexion Internet semble fonctionnelle. Vous pouvez fermer cette fenêtre sans risque et continuer à uti... | 458 |
5,053 | <filename>test/espnet2/tasks/test_lm.py
import pytest
from espnet2.tasks.lm import LMTask
def test_add_arguments():
LMTask.get_parser()
def test_add_arguments_help():
parser = LMTask.get_parser()
with pytest.raises(SystemExit):
parser.parse_args(["--help"])
def test_main_help():
with pyte... | 362 |
665 | # SPDX-FileCopyrightText: 2020 <NAME> for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import board
from digitalio import DigitalInOut, Direction, Pull
import usb_hid
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS... | 746 |
655 | <reponame>walbaum1994/python-ml-course
import os, re
from collections import OrderedDict
from rpy2.robjects.robject import RObjectMixin, RObject
import rpy2.rinterface as rinterface
from rpy2.robjects import help
#import rpy2.robjects.conversion conversion
from . import conversion
# XXX: I need to import default_ri2ro
... | 4,069 |
368 | <reponame>irlanrobson/bounce
/*
* Copyright (c) 2016-2019 <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 of this software.
* Permission is granted to anyone to use this software for any purpose... | 3,463 |
460 | #ifndef NX_COLLISION_NXSMOOTHNORMALS
#define NX_COLLISION_NXSMOOTHNORMALS
/*----------------------------------------------------------------------------*\
|
| Public Interface to NovodeX Technology
|
| www.novodex.com
|
\*--------------------------------------------------------------------------... | 375 |
2,989 | <reponame>tb-soft/databus<gh_stars>1000+
package com.linkedin.databus.bootstrap.common;
/*
*
* Copyright 2013 LinkedIn Corp. 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 Lic... | 476 |
3,075 | /*
* Copyright 2016 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 require... | 699 |
956 | <reponame>GabrielGanne/trex-core
from trex.emu.api import *
from trex.emu.emu_plugins.emu_plugin_base import *
from trex.emu.trex_emu_validator import EMUValidator
import trex.utils.parsing_opts as parsing_opts
from trex.utils import text_tables
from trex.common.trex_types import listify
class DNSPlugin(EMUPluginBase... | 13,525 |
890 | /*
*
* Copyright 2017 Asylo 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 agree... | 551 |
555 | <reponame>huang054/springmvc4.0.2
/*
* Copyright 2002-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/LICEN... | 1,155 |
5,169 | <gh_stars>1000+
{
"name": "LLButton",
"version": "0.0.1",
"summary": "实现按钮的图片和文字左右、右左、上下、下上排列.",
"description": "To achieve the button picture and text left and right, right, up and down, under the arrangement",
"homepage": "https://github.com/kevll/LLButton",
"license": "MIT",
"authors": {
"kevll": "... | 278 |
302 | {
"private": true,
"scripts": {
"test": "jest",
"dev": "npm run development",
"development": "npm run i18n & cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "npm run development -- --watch",
"wa... | 1,733 |
451 | <gh_stars>100-1000
// File Automatically generated by eLiSe
#include "general/all.h"
#include "private/all.h"
#include "cEqAppui_NoDist__GL__PProjInc_M2CDRad5APFraser.h"
cEqAppui_NoDist__GL__PProjInc_M2CDRad5APFraser::cEqAppui_NoDist__GL__PProjInc_M2CDRad5APFraser():
cElCompiledFonc(2)
{
AddIntRef (cIncInterva... | 13,640 |
3,765 | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.ast;
import java.util.ArrayList;
import java.util.Collection;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import net.sourceforge.pmd.lang.ast.Node;
import net.sourceforge.... | 589 |
1,194 | <reponame>MFAshby/hapi-fhir<filename>hapi-fhir-jpaserver-model/src/main/java/ca/uhn/fhir/jpa/model/entity/NpmPackageEntity.java<gh_stars>1000+
package ca.uhn.fhir.jpa.model.entity;
/*-
* #%L
* HAPI FHIR JPA Model
* %%
* Copyright (C) 2014 - 2022 Smile CDR, Inc.
* %%
* Licensed under the Apache License, Version 2... | 1,153 |
407 | <reponame>markuspf/velocypack
// Copyright 2007, Google 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:
//
// * Redistributions of source code must retain the above copyright
// no... | 2,884 |
21,684 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
import math
class Color (object):
def to_rgb(self):
raise Exception('Must implement to_rgb() in subclasses')
class RGB (Color):
def __init__(self, r, g, b):
self.r = r
self.g = g
self.b = b
def to_r... | 6,952 |
328 | package com.ctg.test.cros.springbootcros.exception;
public class BizException extends RuntimeException {
long code;
String message;
public BizException(long code, String message) {
this.code = code;
this.message = message;
}
public BizException(Throwable cause, long code, String ... | 434 |
678 | <filename>glean/lang/clang/action.h<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.
*/
#pragma once
#include "glean/cpp/glean.h"
#... | 784 |
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.
#ifndef CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_OPTIMIZER_H_
#define CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_OPTIMIZER_H_
#include <memory>
#include... | 592 |
1,918 | # Copyright 2018, The TensorFlow Federated 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 o... | 7,519 |
1,592 | <reponame>marlon-sousa/nvda
/*
This file is a part of the NVDA project.
URL: http://www.nvda-project.org/
Copyright 2006-2010 NVDA contributers.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2.0, as published by
the Fr... | 921 |
440 | package com.miguelbcr.ui.rx_paparazzo2.entities.size;
/**
* The original size of the image.
*/
public class OriginalSize implements Size {
}
| 50 |
2,541 | <filename>ios/WeApp/Core/WAAppTaskMgr/WAWebViewPageMgr/Controller/WATabbarController.h
//
// WATabbarController.h
// WeAppExample
//
// Created by lionvoom on 2020/12/3.
// Copyright © 2020 wept. All rights reserved.
//
#import "WABaseViewController.h"
#import "WATabbarStyle.h"
#import "WAWebViewController.h"
#imp... | 305 |
14,668 | <gh_stars>1000+
// 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 "chrome/browser/ash/device_name/device_name_store.h"
#include "ash/constants/ash_features.h"
#include "chrome/browser/ash/device... | 650 |
344 | /*
* Copyright (c) 2014, Oracle America, 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:
*
* * Redistributions of source code must retain the above copyright notice,
* this list o... | 3,738 |
366 | # from @鹤翔万里
from manimlib.imports import *
def debugTeX(self, texm, scale_factor=0.6, text_color=PURPLE):
for i, j in enumerate(texm):
tex_id = Text(str(i), font="Consolas").scale(scale_factor).set_color(text_color)
tex_id.move_to(j)
self.add(tex_id)
# 下面的仅仅是将它封装成类,或许可以便... | 1,002 |
1,072 | <gh_stars>1000+
/*
* Copyright 2016 Freelander
*
* 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 appli... | 10,107 |
436 | <reponame>tjzhou23/TaskManager<filename>app/src/main/java/com/qiyi/tm/demo/test/DependantTest.java<gh_stars>100-1000
package com.qiyi.tm.demo.test;
import com.qiyi.tm.demo.R;
import org.qiyi.basecore.taskmanager.Task;
import org.qiyi.basecore.taskmanager.other.TMLog;
public class DependantTest extends Test {
@Ov... | 1,437 |
2,053 | /*
* Copyright (c) 2006-2007 Hyperic, 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... | 2,079 |
719 | package com.googlecode.objectify.impl;
import com.googlecode.objectify.ObjectifyFactory;
import com.googlecode.objectify.condition.Always;
import com.googlecode.objectify.condition.If;
import com.googlecode.objectify.condition.InitializeIf;
import com.googlecode.objectify.repackaged.gentyref.GenericTypeReflector;
imp... | 847 |
495 | package com.github.database.rider.core.dataset.builder;
import com.github.database.rider.core.api.configuration.Orthography;
import com.github.database.rider.core.configuration.DBUnitConfig;
import org.dbunit.dataset.Column;
import org.dbunit.dataset.datatype.DataType;
import org.eclipse.persistence.internal.jpa.metam... | 1,607 |
1,127 | <filename>src/common/value_to_index2.c
/* This file contains the value_to_index2 that are shared,
* it's tailored to be replaced into the main bpf.c for each sampler */
// histogram indexing
static unsigned int value_to_index2(unsigned int value) {
unsigned int index = 460;
if (value < 100) {
// 0-99 ... | 486 |
3,101 | /*
* Copyright Debezium Authors.
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package com.dtstack.flinkx.connector.sqlservercdc.entity;
import com.dtstack.flinkx.connector.sqlservercdc.util.SqlServerCdcUtil;
import org.slf4j.Logger;
import ... | 1,589 |
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... | 2,302 |
2,151 | // 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 <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/location.h"
#include "base/run_loop.h"
#include "base/threading/s... | 512 |
721 | package crazypants.enderio.zoo.entity.ai;
import java.util.Collections;
import java.util.List;
import javax.annotation.Nonnull;
import com.enderio.core.common.util.NullHelper;
import crazypants.enderio.zoo.entity.EntityEnderminy;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.En... | 1,325 |
2,138 | <filename>src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/PodTemplateMap.java<gh_stars>1000+
package org.csanchez.jenkins.plugins.kubernetes.pipeline;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.logging.Lev... | 1,106 |
841 | <filename>testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/response/resource/ResponseTrimmingResource.java<gh_stars>100-1000
package org.jboss.resteasy.test.response.resource;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.... | 224 |
593 | <filename>tests/lv_test_fonts/font_3.c<gh_stars>100-1000
#include "../../lvgl.h"
/*******************************************************************************
* Size: 20 px
* Bpp: 4
* Opts: --bpp 4 --size 20 --font ../RobotoMono-Regular.ttf -r 0x20-0x7f --format lvgl -o ..\generated_fonts/font_3.c
*************... | 26,921 |
679 | /**************************************************************
*
* 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 y... | 3,224 |
345 | /*++
Copyright (c) Didi Research America. All rights reserved.
Module Name:
inline.c
Author:
<NAME>, 08-Feb-2017
Revision History:
--*/
#include <i386/proc_reg.h>
#include <libkern/libkern.h>
#include <libkern/OSMalloc.h>
#include <sys/kauth.h>
#include <sys/systm.h>
#include "dis... | 23,094 |
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 "base/strings/stringprintf.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/nearby_sharing/common/nearby_share_features.h"
... | 2,015 |
2,504 | <gh_stars>1000+
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF ... | 1,293 |
2,568 | {
"<NAME>": {
"domain": "ripe.net",
"url": "https://www.ripe.net/",
"tfa": [
"totp"
],
"documentation": "https://www.ripe.net/participate/member-support/ripe-ncc-access/two-step-verification",
"keywords": [
"other"
]
}
} | 132 |
72,551 | //===--- TypeLayoutDumper.cpp ---------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | 1,967 |
366 | # from @有一种悲伤叫颓废
"""
注:
1. 视频讲解:https://www.bilibili.com/video/BV1JV411B7T1、https://www.bilibili.com/video/BV15y4y1J7K7
2. 主要用来多边形布尔运算的问题,可以套娃,存在bug,一般情况应该够用,如发现bug请联系颓废
3. 支持的多边形有,Polygon, RegularPolygon, Circle, Ellipse, ParametricFunction, Dot, Line, VGroup
4. 但主要用于Polygon, VGroup应该有很多bug
... | 56,698 |
914 | package top.crossoverjie.cicada.db.reflect;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import top.crossoverjie.cicada.db.annotation.FieldName;
import top.crossoverjie.cicada.db.model.User;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;
@Slf4j
public class InstanceTest {... | 638 |
422 | import argparse
import tensorflow as tf
from docqa.model_dir import ModelDir
import numpy as np
def main():
parser = argparse.ArgumentParser(description='')
parser.add_argument("model")
args = parser.parse_args()
model_dir = ModelDir(args.model)
checkpoint = model_dir.get_best_weights()
print... | 326 |
12,278 | <reponame>cpp-pm/boost
//
// Copyright (c) 2018-2019, <NAME>, <EMAIL>
//
// 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)
//
// The authors gratefully acknowledge the support of
// Fraunhofer IOSB, Ettlingen... | 3,227 |
2,499 | /**
* 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,909 |
365 | <reponame>yanliang567/towhee<filename>towhee/cnn_trainer/trainer_utils.py
# coding=utf-8
# Copyright 2020-present the HuggingFace Inc. team and 2021 Zilliz.
#
# 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 t... | 432 |
348 | /*
* Copyright 2010-2021 Australian Signals Directorate
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 1,653 |
333 | <gh_stars>100-1000
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 服务插件扩展信息补充
*
* @author auto create
* @since 1.0, 2018-03-16 17:31:50
*/
public cl... | 863 |
2,151 | # Copyright (c) 2011 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'el',
'type': 'static_library',
'sources': [ 'file.c', ],
'postbuilds': [
{
'postbui... | 1,391 |
1,122 | <filename>libs/platform/kernel/framework.h
// Copyright (c) Microsoft Corporation
// SPDX-License-Identifier: MIT
#pragma once
#include <ntdef.h>
#include <ntstatus.h>
#pragma warning(push)
#pragma warning(disable : 28253) // Inconsistent annotation for '_umul128'
#include <ntintsafe.h>
#pragma warning(pop)
#include <... | 298 |
5,166 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import datetime
import json
import unittest.mock
import chalice
import pytest
import app
import chalicelib
def test_list_states():
states = app.list_states()
assert len(states['states'].split(', ')) ==... | 1,565 |
1,623 | #pragma once
#include <pangolin/gl/glfont.h>
namespace pangolin {
GlFont& default_font();
}
| 41 |
1,514 | <reponame>fpmuniz/stepmania
/* GameCommand */
#ifndef GameCommand_H
#define GameCommand_H
#include "GameConstantsAndTypes.h"
#include "PlayerNumber.h"
#include "Difficulty.h"
#include "LuaReference.h"
#include "Command.h"
#include <map>
class Song;
class Steps;
class Course;
class Trail;
class Character;
class Style... | 1,793 |
623 | // Copyright (C) 2021 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 applicable ... | 801 |
1,743 | class JohnDoe(object):
def do_nothing(self):
pass | 27 |
4,812 | <filename>llvm/include/llvm/DebugInfo/PDB/IPDBLineNumber.h
//===- IPDBLineNumber.h - base interface for PDB line no. info ---*- C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-... | 410 |
1,644 | <gh_stars>1000+
// Copyright 2019 The Nomulus Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unle... | 1,151 |
348 | {"nom":"Saint-Hilaire-le-Château","dpt":"Creuse","inscrits":201,"abs":47,"votants":154,"blancs":19,"nuls":5,"exp":130,"res":[{"panneau":"1","voix":83},{"panneau":"2","voix":47}]} | 76 |
2,151 | <reponame>kjthegod/chromium
// 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.
#include "chromeos/network/network_ui_data.h"
#include "base/values.h"
#include "testing/gtest/include/gtest/gtest.h"
na... | 408 |
764 | <reponame>Alcanderian/ppl.nn<filename>src/ppl/nn/engines/cuda/impls/src/nn/conv/conv_common.h
// 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 ... | 12,243 |
377 | /**
* Copyright 2013 Impetus Infotech.
*
* 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... | 1,491 |
1,127 | <gh_stars>1000+
//*****************************************************************************
// Copyright (C) 2018-2022 Intel 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 a... | 6,509 |
1,444 |
package mage.server.game;
import mage.MageException;
import mage.cards.decks.DeckCardLists;
import mage.game.GameException;
import mage.game.match.MatchOptions;
import mage.game.tournament.TournamentOptions;
import mage.players.PlayerType;
import mage.server.Room;
import mage.view.MatchView;
import mage.view.RoomUse... | 419 |
82,518 | <reponame>akshit-protonn/models<gh_stars>1000+
# Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/lice... | 4,428 |
454 | <reponame>zwkjhx/vertx-zero
package cn.originx.uca.modello;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import io.vertx.tp.modular.plugin.OComponent;
import io.vertx.up.atom.Kv;
import io.vertx.up.commune.Record;
import io.vertx.up.eon.KName;
import io.vertx.up.log.Annal;
import io.vertx... | 824 |
3,861 | <filename>WebVOWL/node_modules/iltorb/brotli/c/enc/hash_forgetful_chain_inc.h
/* NOLINT(build/header_guard) */
/* Copyright 2016 Google Inc. All Rights Reserved.
Distributed under MIT license.
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/
/* template parameters: FN, BUCKET... | 4,206 |
816 | package com.jxtech.tag.bztag.wfstatus;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.views.annotations.StrutsTag;
import com.jxtech.jbo.JboIFace;
import com.jxtech.tag.comm.JxBaseUIBean;
import com.jxtech.util.StrUtil;
import com.opensymphony.x... | 1,343 |
4,339 | /*
* 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 ... | 3,368 |
571 | <filename>univocity-trader-core/src/main/java/com/univocity/trader/indicators/ExponentialMovingAverage.java
package com.univocity.trader.indicators;
import com.univocity.trader.candles.*;
import com.univocity.trader.indicators.base.*;
import com.univocity.trader.strategy.*;
import java.util.function.*;
/**
* @autho... | 399 |
1,089 | # pylint: disable=C0111,R0903
"""Display HTTP status code
Parameters:
* http__status.label: Prefix label (optional)
* http__status.target: Target to retrieve the HTTP status from
* http__status.expect: Expected HTTP status
contributed by `valkheim <https://github.com/valkheim>`_ - many thanks!
"""
from ... | 782 |
343 | <reponame>bonitobonita24/Mayan-EDMS<filename>mayan/apps/appearance/views.py
from django.template import RequestContext
from django.urls import reverse_lazy
from django.utils.translation import ugettext_lazy as _
from mayan.apps.user_management.permissions import (
permission_user_edit, permission_user_view
)
from ... | 1,804 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Hostin... | 1,797 |
319 | <gh_stars>100-1000
'''
while else loop (DEPRECATED)
'''
def main():
a = False
i = 0
while i < 10:
i += 1
else:
a = True
TestError( a==True )
b = False
i = 0
while i < 10:
i += 1
break
else:
b = True
TestError( b==False )
| 117 |
5,169 | {
"name": "CompassDateChooser",
"version": "0.0.3",
"summary": "A date picker for date choosing.",
"swift_versions": "4.0",
"description": "'Compass date chooser is a lib aimed to use in our travel order project -> Compass. If there are any bugs, please contact us.'",
"homepage": "https://github.com/kiraclf... | 322 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-43m7-cr4f-cpcc",
"modified": "2022-01-20T00:01:19Z",
"published": "2022-01-20T00:01:19Z",
"aliases": [
"CVE-2022-21300"
],
"details": "Vulnerability in the PeopleSoft Enterprise CS SA Integration Pack product of Oracle PeopleSoft (component: Snapshot Integratio... | 449 |
4,816 | <reponame>mehrdad-shokri/retdec<filename>src/llvmir2hll/ir/neq_op_expr.cpp
/**
* @file src/llvmir2hll/ir/neq_op_expr.cpp
* @brief Implementation of NeqOpExpr.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include "retdec/llvmir2hll/ir/int_type.h"
#include "retdec/llvmir2hll/ir/neq_op_expr.h"... | 810 |
624 | # -*- coding: utf-8 -*-
# Copyright (c) 2013 <NAME>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merg... | 753 |
778 | <reponame>Sheikh-Aman/aion<filename>modEvtMgrImpl/src/org/aion/evtmgr/impl/callback/EventCallback.java
package org.aion.evtmgr.impl.callback;
import org.aion.evtmgr.IEvent;
import org.aion.evtmgr.IEventCallback;
import org.aion.evtmgr.impl.es.EventExecuteService;
import org.slf4j.Logger;
/** @author jay */
@SuppressW... | 411 |
348 | {"nom":"Belle-Vie-en-Auge","circ":"3ème circonscription","dpt":"Calvados","inscrits":428,"abs":226,"votants":202,"blancs":6,"nuls":7,"exp":189,"res":[{"nuance":"LR","nom":"<NAME>","voix":100},{"nuance":"MDM","nom":"<NAME>","voix":89}]} | 97 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-w4rm-9j7p-2g5q",
"modified": "2022-05-13T01:46:28Z",
"published": "2022-05-13T01:46:28Z",
"aliases": [
"CVE-2017-6274"
],
"details": "An elevation of Privilege vulnerability exists in the Thermal Driver, where a missing bounds checks in the t... | 533 |
309 | import vtk.vtkActor;
import vtk.vtkNamedColors;
import vtk.vtkNativeLibrary;
import vtk.vtkRenderWindow;
import vtk.vtkRenderWindowInteractor;
import vtk.vtkRenderer;
import vtk.vtkProjectSphereFilter;
import vtk.vtkElevationFilter;
import vtk.vtkParametricSuperEllipsoid;
import vtk.vtkParametricFunctionSource;
import ... | 1,423 |
574 | <reponame>PDDStudio/EncryptedPreferences
package com.pddstudio.preferences.encrypted;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import static o... | 457 |
450 | //=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 <NAME> and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS sourc... | 305 |
1,217 | from .testutils import FullStackTests
import os
from itertools import count
# ============================================================================
class TestCreateNewAPISeparateDomains(FullStackTests):
runner_env_params = {'TEMP_SLEEP_CHECK': '1',
'APP_HOST': 'app-host',
... | 3,243 |
453 | #include "interrupts.h"
#include "idt_structures.h"
#include "idt.h"
#include "cpu_fault_handlers.h"
#include "int_notifier.h"
#include <std/common.h>
#include <kernel/kernel.h>
#include <kernel/assert.h>
#include <kernel/multitasking/tasks/task.h>
static int_callback_t interrupt_handlers[256] = {0};
/*
void print_... | 1,317 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.