max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,800 | <filename>FairyPlugin/src/main/java/com/limpoxe/fairy/core/android/HackApplicationPackageManager.java
package com.limpoxe.fairy.core.android;
import com.limpoxe.fairy.util.RefInvoker;
/**
* Created by cailiming on 16/10/30.
*/
public class HackApplicationPackageManager {
private static final String ClassName =... | 220 |
2,174 | package com.gaoxi.req.product;
/**
* Created by lihang on 2017/11/4.
*/
public class ProdUpdateReq extends ProdInsertReq {
}
| 48 |
1,621 | from .builder import build_nestnet
from ..utils import freeze_model
from ..backbones import get_backbone
DEFAULT_SKIP_CONNECTIONS = {
'vgg16': ('block5_conv3', 'block4_conv3', 'block3_conv3', 'block2_conv2', 'block1_conv2',
'block5_pool', 'block4_pool', 'block3_pool', 'block2_p... | 2,706 |
1,473 | <reponame>JiangJibo/pinpoint
package com.navercorp.pinpoint.test.plugin.util;
public final class TLSOption {
public static final String TLS_KEY = "https.protocols";
private TLSOption() {
}
public static void applyTLSv12() {
if (JDKUtils.isJdk8Plus()) {
return;
}
S... | 176 |
906 | <filename>src/main/java/org/spongepowered/asm/mixin/injection/invoke/RedirectInjector.java
/*
* This file is part of Mixin, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any pe... | 14,025 |
428 | #pragma once
#include <svgpp/factory/integer_color.hpp>
typedef boost::tuple<unsigned char, unsigned char, unsigned char> color_t;
struct ColorFactoryBase
{
typedef color_t color_type;
static color_type create(unsigned char r, unsigned char g, unsigned char b)
{
return color_t(r, g, b);
}
};
typedef svg... | 135 |
1,444 | package mage.filter.predicate.other;
import mage.constants.TargetController;
import mage.filter.predicate.ObjectSourcePlayer;
import mage.filter.predicate.ObjectSourcePlayerPredicate;
import mage.game.Controllable;
import mage.game.Game;
import mage.watchers.common.PlayerDamagedBySourceWatcher;
import java.util.UUID;... | 1,225 |
2,591 | package liquibase.configuration;
import java.util.Set;
/**
* @deprecated interface from old style configuration code. Use {@link ConfigurationDefinition} and {@link AutoloadedConfigurations} now.
*/
public interface ConfigurationContainer {
/**
* @deprecated
*/
ConfigurationProperty getProperty(S... | 234 |
655 | <filename>core/smartview/swappedToDo.cpp
#include <core/stdafx.h>
#include <core/smartview/swappedToDo.h>
#include <core/interpret/flags.h>
#include <core/mapi/extraPropTags.h>
#include <core/smartview/SmartView.h>
namespace smartview
{
void swappedToDo::parse()
{
ulVersion = blockT<DWORD>::parse(parser);
dwFlag... | 701 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/t2/008/08020.json<gh_stars>100-1000
{"nom":"<NAME>","dpt":"Ardennes","inscrits":52,"abs":7,"votants":45,"blancs":3,"nuls":2,"exp":40,"res":[{"panneau":"2","voix":23},{"panneau":"1","voix":17}]} | 111 |
3,428 | <reponame>ghalimi/stdlib<filename>lib/node_modules/@stdlib/datasets/spam-assassin/data/easy-ham-1/01213.25bf48d2ed386aa84360862062fc9c54.json
{"id":"01213","group":"easy-ham-1","checksum":{"type":"MD5","value":"25bf48d2ed386aa84360862062fc9c54"},"text":"From <EMAIL> Tue Oct 1 15:05:38 2002\nReturn-Path: <<EMAIL>>\nDe... | 1,427 |
709 | package com.olacabs.jackhammer.tool.interfaces.container.manager;
import com.google.inject.Inject;
import com.google.inject.name.Named;
import com.olacabs.jackhammer.common.Constants;
import com.olacabs.jackhammer.db.ScanDAO;
import com.olacabs.jackhammer.db.ScanToolDAO;
import com.olacabs.jackhammer.db.ToolDAO;
impor... | 1,226 |
14,668 | <gh_stars>1000+
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ENTERPRISE_CONNECTORS_DEVICE_TRUST_SIGNALS_MOCK_SIGNALS_SERVICE_H_
#define CHROME_BROWSER_ENTERPRISE_CONNECTORS_DEV... | 309 |
451 | /*
* Copyright 2019 WeBank
*
* 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 writi... | 1,263 |
777 | // 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 "core/css/StyleColor.h"
#include "core/layout/LayoutTheme.h"
namespace blink {
Color StyleColor::colorFromKeyword(CSSValueID keyword) {
if (... | 584 |
310 | {
"name": "Gesundheit (iOS)",
"description": "A very cute game for iOS based around sneezing.",
"url": "https://itunes.apple.com/us/app/gesundheit!/id449344432"
} | 63 |
994 | #include <bits/stdc++.h>
using namespace std;
long long int a, b, n, x, y, v, i;
double ans, temp;
int main()
{
cin>>x>>y>>n>>a>>b>>v;
ans=(sqrt(((x-a)*(x-a))+((y-b)*(y-b))))/v;
//cout<<ans<<endl;
for(i=1;i<n;i++){
cin>>a>>b>>v;
temp=(sqrt(((x-a)*(x-a))+((y-b)*(y-b))))/v;
if(temp<ans){
... | 284 |
1,379 | <reponame>ramiyer/voldemort
/*
* Copyright 2013 LinkedIn, 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... | 1,466 |
571 | package camelinaction;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.spring.CamelSpringTestSupport;
import org.junit.Test;
import org.springframework.context.support.AbstractXmlApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Dem... | 450 |
9,959 | /*
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 1,255 |
364 | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 687 |
9,724 | #include <stdio.h>
#include <emscripten.h>
void *get_pc(void) { return __builtin_return_address(0); }
int magic_test_function(void) {
int result = EM_ASM_INT({
function report(x) {
var xhr = new XMLHttpRequest();
xhr.open('GET', encodeURI('http://localhost:8888?stdout=' + x));
xhr.send();
... | 237 |
340 | <reponame>hcs64/cen64
//
// arch/x86_64/fpu/fpu.h
//
// Extern declarations for host FPU functions.
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#ifndef __arch_fpu_h__
#define __arch_fpu_h__
#include "common.h"
typedef uint32_t fpu_state... | 1,417 |
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 ... | 694 |
2,869 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Licen... | 1,230 |
581 | <reponame>ninniuz/sentry-java
package io.sentry.samples.openfeign;
import feign.Feign;
import feign.Param;
import feign.RequestLine;
import feign.gson.GsonDecoder;
import feign.gson.GsonEncoder;
import io.sentry.ITransaction;
import io.sentry.Sentry;
import io.sentry.openfeign.SentryCapability;
import java.util.List;
... | 1,174 |
1,847 | <gh_stars>1000+
// Copyright (c) 2021 The Orbit 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 <absl/strings/str_format.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <windows.h>
#include "Test/Path.h"
#incl... | 626 |
1,482 | a = Ur'S T R'
a = UR'S T R'
a = uB'S T R'
a = Ru'S T R'
a = RU'S T R'
a = bR'S T R'
a = Rb'S T R'
a : source.python
: source.python
= : keyword.operator.assignment.python, source.python
: source.python
Ur : invalid.deprecated.prefix.python, source.python... | 1,696 |
526 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.analyticsmodeling.server;
import org.odpi.openmetadata.accessservices.analyticsmodeling.admin.AnalyticsModelingAdmin;
import org.odpi.openmetadata.adminservices.configuration.... | 389 |
27,402 | <filename>packages/events/package.json
{
"name": "@pixi/events",
"version": "6.1.3",
"main": "dist/cjs/events.js",
"module": "dist/esm/events.js",
"bundle": "dist/browser/events.js",
"description": "UI events for scene graphs",
"keywords": [
"interaction",
"UI",
"events",
"pointer",
"m... | 402 |
14,668 | <reponame>zealoussnow/chromium
// 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.
package org.chromium.customtabsclient.shared;
import androidx.browser.customtabs.CustomTabsClient;
/**
* Callback for ev... | 205 |
8,633 | import pytest
from prefect.tasks.gcp.secretmanager import GCPSecret
class TestGCPSecretsTask:
def test_initialization(self):
task = GCPSecret("test")
assert task
def test_initialization_passes_to_task_constructor(self):
task = GCPSecret(name="test", tags=["GCP"])
assert task.... | 332 |
1,200 | package com.xiaojukeji.carrera.monitor;
import com.xiaojukeji.carrera.monitor.config.MonitorConfig;
import com.xiaojukeji.carrera.monitor.utils.ExecutorUtils;
import com.xiaojukeji.carrera.biz.ZkService;
import com.xiaojukeji.carrera.biz.ZkServiceImpl;
import com.xiaojukeji.carrera.config.v4.BrokerConfig;
import com.x... | 964 |
1,091 | <reponame>Shinkirou/onos
/*
* Copyright 2019-present Open Networking Foundation
*
* 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
*
*... | 2,256 |
1,906 | //
// MockViewController.h
// TangramDemo
//
// Copyright (c) 2017-2018 Alibaba. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MockViewController : UIViewController
@end
| 66 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-x2rg-xxr8-r35f",
"modified": "2022-05-13T01:11:14Z",
"published": "2022-05-13T01:11:14Z",
"aliases": [
"CVE-2015-5532"
],
"details": "Multiple cross-site scripting (XSS) vulnerabilities in the Paid Memberships Pro (PMPro) plugin before 1.8.4.3 for WordPress all... | 855 |
1,760 | <filename>Contests/USACO Solutions/2016-17/Feb 2017/Plat/17 Feb P1 (BIT).cpp
// #include<iostream>
#include<fstream>
#include<vector>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
#define FOR(i, a, b) for (int i=a; i<b; i++)
#define F0R(i, a) for (int i=0; i<a; i++)
#define FORd(i,a,b) for (int... | 616 |
3,212 | <filename>nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/controller/flow/VersionedTemplate.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for ... | 454 |
5,169 | {
"name": "hAPI-SDK",
"version": "1.0.21",
"summary": "hAPI-SDK",
"description": "iOS Helper Methods for interacting with MedHelp's 'Health' API or 'hAPI'",
"homepage": "https://github.com/medhelpintl/iphone_hAPI-SDK",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"medhelp": ... | 294 |
694 | <gh_stars>100-1000
# Copyright 2017-2021 TensorHub, 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 o... | 1,128 |
19,824 | {
"main": "dist/keystone-ui-icons-icons-CornerDownRightIcon.cjs.js",
"module": "dist/keystone-ui-icons-icons-CornerDownRightIcon.esm.js"
}
| 59 |
107,386 | <reponame>Havoc-OS/androidprebuilts_go_linux-x86
#include <stdio.h>
void printhello(){
printf("Helloworld\n");
}
| 50 |
502 | <filename>Extension/WavTapClip.cpp<gh_stars>100-1000
#include "WavTapEngine.h"
#include <IOKit/IOLib.h>
// here, instead of clipping, we save the buffer
IOReturn WavTapEngine::clipOutputSamples(const void *mixBuf, void *sampleBuf, UInt32 firstSampleFrame, UInt32 numSampleFrames, const IOAudioStreamFormat *streamForm... | 844 |
575 | <filename>ui/platform_window/x11/test/x11_event_translation_unittest.cc
// Copyright (c) 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.
#include "ui/events/x/x11_event_translation.h"
#include <xcb/xcb.h>
#include... | 3,417 |
1,481 | <filename>demos/tessellation/tessellation.c<gh_stars>1000+
#include "corange.h"
static float tess_level_inner = 3;
static float tess_level_outer = 3;
static GLsizei index_count;
static GLuint positions_buffer;
static GLuint index_buffer;
static void create_mesh() {
const int faces[] = {
2, 1, 0, 3, 2, 0, 4, 3... | 2,312 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using name... | 1,992 |
1,467 | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_RUN_LOOP_HANDLER_HPP
#define IROHA_RUN_LOOP_HANDLER_HPP
#include <ciso646>
#include <condition_variable>
#include <rxcpp/rx-lite.hpp>
namespace iroha {
namespace schedulers {
inline void handleEv... | 580 |
631 | package app.controllers;
import org.javalite.activeweb.AppController;
import org.javalite.activeweb.annotations.DELETE;
import org.javalite.activeweb.annotations.GET;
import org.javalite.activeweb.annotations.POST;
import org.javalite.activeweb.annotations.PUT;
import java.util.Map;
public class PetController extend... | 1,285 |
702 | <filename>demo/src/main/java/com/navigation/toolbar/ViewBindingFragment.java
package com.navigation.toolbar;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.navig... | 304 |
2,209 | from .unit import Unit
from matchzoo.utils.bert_utils import \
is_whitespace, is_control, run_strip_accents
class BertClean(Unit):
"""Clean unit for raw text."""
def transform(self, input_: str) -> str:
"""
Process input data from raw terms to cleaned text.
:param inp... | 530 |
776 | import dash
import dash_bootstrap_components as dbc
app = dash.Dash(external_stylesheets=[dbc.themes.GRID])
| 38 |
649 | package net.serenitybdd.junit5.samples.integration;
import com.google.inject.Guice;
import com.google.inject.Injector;
import net.serenitybdd.junit5.AbstractTestStepRunnerTest;
import net.serenitybdd.junit5.SerenityJUnit5Extension;
import net.serenitybdd.junit5.extensions.TemporaryFolderExtension;
import net.thucydide... | 6,004 |
2,151 | <filename>third_party/blink/renderer/core/frame/frame.h<gh_stars>1000+
/*
* Copyright (C) 1998, 1999 <NAME> <<EMAIL>>
* 1999-2001 <NAME> <<EMAIL>>
* 1999-2001 <NAME> <<EMAIL>>
* 2000-2001 <NAME> <<EMAIL>>
* 2000-2001 <NAME> <<EMAIL>>
... | 3,639 |
5,753 | /*!
* Copyright (c) 2020 IBM Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_CUDA_CUDA_UTILS_H_
#define LIGHTGBM_CUDA_CUDA_UTILS_H_
#ifdef USE_CUDA
#include <cuda.h>
#include <cuda_runtime.h>
#include <stdio.h>
#... | 282 |
1,467 | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_SHARED_MODEL_PROTO_TRANSACTION_RESPONSE_HPP
#define IROHA_SHARED_MODEL_PROTO_TRANSACTION_RESPONSE_HPP
#include "interfaces/query_responses/transactions_response.hpp"
#include "backend/protobuf/transacti... | 361 |
2,023 | # -*- coding: iso-8859-1 -*-
#Copyright (C) 2004-2007 <NAME>
#
#This program is free software; you can redistribute it and/or
#modify it under the terms of the GNU General Public License
#as published by the Free Software Foundation; either version 2
#of the License, or (at your option) any later version.
#
#This prog... | 3,069 |
1,475 | <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
* "License... | 2,343 |
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... | 6,058 |
348 | {"nom":"Cournonsec","circ":"8ème circonscription","dpt":"Hérault","inscrits":2298,"abs":1423,"votants":875,"blancs":60,"nuls":15,"exp":800,"res":[{"nuance":"REM","nom":"<NAME>","voix":512},{"nuance":"FN","nom":"<NAME>","voix":288}]} | 93 |
348 | <filename>docs/data/leg-t2/073/07304139.json<gh_stars>100-1000
{"nom":"Jarsy","circ":"4ème circonscription","dpt":"Savoie","inscrits":273,"abs":133,"votants":140,"blancs":18,"nuls":6,"exp":116,"res":[{"nuance":"DVG","nom":"<NAME>","voix":77},{"nuance":"MDM","nom":"<NAME>","voix":39}]} | 120 |
776 | <reponame>glsdown/dash-bootstrap-components<gh_stars>100-1000
"""
A simple app demonstrating how to manually construct a navbar with a customised
layout using the Navbar component and the supporting Nav, NavItem, NavLink,
NavbarBrand, and NavbarToggler components.
Requires dash-bootstrap-components 0.3.0 or later
"""
... | 2,915 |
14,668 | <reponame>zealoussnow/chromium<filename>chromeos/components/sync_wifi/pending_network_configuration_tracker_impl_unittest.cc
// 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.
#include <memory>
#include "... | 3,440 |
7,137 | <gh_stars>1000+
package io.onedev.server.util.validation;
import javax.validation.ConstraintValidatorContext;
public interface Validatable {
boolean isValid(ConstraintValidatorContext context);
}
| 65 |
5,169 | <reponame>Gantios/Specs<filename>Specs/8/2/1/Celio/0.1.0/Celio.podspec.json
{
"name": "Celio",
"version": "0.1.0",
"summary": "A framework for advanced Operations usage https://developer.apple.com/videos/wwdc/2015/?id=226",
"swift_version": "4.1",
"description": "Celio is a framework that leverages the power ... | 337 |
578 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | 628 |
348 | {"nom":"<NAME>","circ":"4ème circonscription","dpt":"Seine-et-Marne","inscrits":370,"abs":186,"votants":184,"blancs":12,"nuls":4,"exp":168,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":121},{"nuance":"REM","nom":"M. <NAME>","voix":47}]} | 97 |
2,308 | <reponame>sacredenvoy/Saturn
/**
* Copyright 2016 vip.com.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 893 |
372 | <reponame>mjhopkins/google-api-java-client-services
/*
* 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... | 2,179 |
1,309 | //-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
//
// 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 restr... | 3,092 |
1,272 | <gh_stars>1000+
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in... | 717 |
355 | // -------------------------------------------------------------
// cuDPP -- CUDA Data Parallel Primitives library
// -------------------------------------------------------------
// $Revision: $
// $Date: $
// -------------------------------------------------------------
// This source code is distributed under the te... | 4,221 |
3,475 | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 1,201 |
403 | <reponame>igormskru/code<filename>one-time-examples/bestellprozess-java-ee6/src/main/java/com/camunda/demo/outerspace/wjax/controller/performance/MyBatisExtendedSessionFactory.java
package com.camunda.demo.outerspace.wjax.controller.performance;
import java.io.InputStream;
import org.camunda.bpm.engine.ProcessEngine... | 501 |
935 | <gh_stars>100-1000
/*
* Copyright 2017-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* U... | 1,468 |
6,304 | // Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "tools/fiddle/examples.h"
// HASH=814efa7d7f4ae52dfc861a937c1b5c25
REG_FIDDLE(Region_Iterator_done, 256, 256, true, 0) {
void draw(SkCanvas* canvas) {
SkRegion region;
SkRe... | 221 |
2,151 | /*
* Copyright (c) 2010 The Native Client 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 "native_client/src/shared/platform/nacl_log.h"
#include "native_client/src/trusted/desc/nacl_desc_base.h"
#include "native_client... | 600 |
14,668 | <filename>third_party/test_fonts/fontconfig/fontconfig_util_linux.cc
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/test_fonts/fontconfig/fontconfig_util_linux.h"
#include <fontc... | 283 |
1,425 | /*
* 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,243 |
2,262 | <reponame>wulmer/mamba<filename>mamba/mamba/repoquery.py
# Copyright (C) 2020, QuantStack
# SPDX-License-Identifier: BSD-3-Clause
import json
from conda.base.context import context
import libmambapy as api
from mamba.utils import init_api_context, load_channels
def _repoquery(query_type, q, pool, fmt=api.QueryForm... | 856 |
352 | import pytest
import jax
import jax.numpy as jnp
import netket as nk
import numpy as np
@pytest.mark.parametrize("jit", [False, True])
@pytest.mark.parametrize("chunk_size", [None, 16, 123, 10000, 1000000])
def test_vmap_chunked(chunk_size, jit):
x = jnp.linspace(0.0, 1.0, 100000).reshape((10000, 10))
def f... | 339 |
530 | <gh_stars>100-1000
from typing import Any, Callable, Dict, Optional, Union
from tartiflette.coercers.common import CoercionResult
from tartiflette.constants import UNDEFINED_VALUE
from tartiflette.language.ast import NullValueNode, VariableNode
from tartiflette.utils.values import is_invalid_value
__all__ = ("null_an... | 984 |
5,169 | {
"name": "APFileManager",
"version": "0.0.1",
"summary": "Simple File Manager",
"description": "Simple file manager",
"homepage": "https://github.com/arkasas/APFileManager",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": "http... | 225 |
1,486 | {
"files.associations": {
"*.json": "jsonc"
},
"typescript.tsdk": "node_modules/typescript/lib"
} | 49 |
455 | /*
* 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 ... | 910 |
11,356 | <reponame>Bpowers4/turicreate
/* Copyright © 2019 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at
* https://opensource.org/licenses/BSD-3-Clause
*/
#define BOOST_TEST_MODULE
#include <map>
#include <memory>
#inclu... | 4,536 |
348 | {"nom":"Pirae","circ":"1ère circonscription","dpt":"Polynésie française","inscrits":11083,"abs":6323,"votants":4760,"blancs":103,"nuls":96,"exp":4561,"res":[{"nuance":"UDI","nom":"<NAME>","voix":3397},{"nuance":"DVD","nom":"<NAME>","voix":1164}]} | 99 |
639 | <filename>HZExtend/Classes/Network/HZNetworkConfig.h
//
// HZNetworkConfig.h
// HZNetwork
//
// Created by xzh. on 16/1/9.
// Copyright (c) 2016年 xzh. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "HZNetworkCache.h"
typedef NS_ENUM(NSUInteger, HZSSLPinningMode) {
HZSSLPinningModeNone, ... | 1,192 |
2,151 | // Copyright 2017 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef CORE_FPDFAPI_PAGE_CPDF_PATTERNCS_H_
#define CORE_FPDFAPI_PAGE_CPDF_PAT... | 535 |
1,125 | <filename>client/rest-high-level/src/main/java/org/elasticsearch/client/ccr/PutAutoFollowPatternRequest.java
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch l... | 1,290 |
350 | <filename>Code/Common/include/sitkTransform.h
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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 Licen... | 3,153 |
1,267 | <reponame>buildfail/frontera
mock_variable = 'test'
class MockClass(object):
val = 10
def __init__(self, val):
self.val = val
mock_instance = MockClass(5)
def mock_function():
return 2
| 87 |
1,056 | <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
* ... | 2,981 |
335 | <gh_stars>100-1000
{
"word": "Fiance",
"definitions": [
"A man to whom someone is engaged to be married."
],
"parts-of-speech": "Noun"
} | 72 |
360 | #include "TAssert.h"
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
namespace tzw
{
void TAssert_imp(bool condition, const char * assert_str, const char * fileName, int linenum, const char * outputStr, ...)
{
if(!condition)
{
char thePattern[512] = {};
va_list vaArg;
mem... | 268 |
2,151 | <filename>components/subresource_filter/content/browser/content_ruleset_service.h
// 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 COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_CONTENT_RULESET_SE... | 1,673 |
1,738 | <reponame>jeikabu/lumberyard<gh_stars>1000+
/*
* 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,
... | 828 |
3,785 | {
"component": true,
"usingComponents": {},
"componentGenerics": {
"l-water-flow-item": true
}
} | 55 |
608 | //
// From How to dynamically link to oleacc.dll in Visual C++ .NET
// By <NAME>
// http://www.codeproject.com/cpp/oleaccproxy.asp
//
#include "StdAfx.h"
#include "oleaccproxy.h"
extern "C" LRESULT _stdcall AccessibleObjectFromWindow(HWND hwnd, DWORD dwId,
... | 1,223 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.component.chain;
import com.yahoo.component.chain.dependencies.Dependencies;
import java.util.Set;
import java.util.TreeSet;
/**
* Used for many to many constraints on searcher ordering. Immuta... | 470 |
5,560 | {
"$comment": "Class-level comment",
"type": "object",
"properties": {
"withComment": {
"$comment": "JavaDoc linking to {@link #descriptionAndComment}",
"type": "string"
},
"descriptionAndComment": {
"$comment": "JavaDoc buddies!",
"description": "This should co-exist with the ... | 143 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.