max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
6,114 | <filename>disconf-web/src/main/java/com/baidu/disconf/web/service/user/dto/Visitor.java
package com.baidu.disconf.web.service.user.dto;
import java.io.Serializable;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframewor... | 992 |
416 | <gh_stars>100-1000
//
// CNContactStore.h
// Contacts
//
// Copyright (c) 2015–2019 Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Contacts/ContactsDefines.h>
#import <Contacts/CNContact.h>
NS_ASSUME_NONNULL_BEGIN
@class CNContact;
@class CNGroup;
@class CNContainer;
@class CNChange... | 3,265 |
829 | #include <iostream>
#include <math.h>
#include "marian.h"
using namespace marian;
bool test_vectors(const std::vector<float>& output, const std::vector<float>& corrent) {
if (output.size() != corrent.size()) {
return false;
}
for (size_t i = 0; i < output.size(); ++i) {
if (fabsf(output[i] - corrent[i... | 1,153 |
543 | package com.riiablo.screen;
import com.badlogic.gdx.ScreenAdapter;
import com.badlogic.gdx.assets.AssetDescriptor;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogi... | 2,774 |
1,144 | <reponame>dram/metasfresh
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute... | 8,056 |
1,232 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
"""
Recursively compare subtrees
"""
def is_symmetric(self, root):
return not root or symmetric(root.left, root.right)
def symmetric(node1, node2):
# Using try catch follows python EAFP coding style
try:
... | 196 |
1,085 | <reponame>weltam/dremio-oss
/*
* 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
*
* Unl... | 1,798 |
348 | {"nom":"Losne","circ":"5ème circonscription","dpt":"Côte-d'Or","inscrits":1047,"abs":549,"votants":498,"blancs":6,"nuls":1,"exp":491,"res":[{"nuance":"FN","nom":"<NAME>","voix":187},{"nuance":"REM","nom":"<NAME>","voix":141},{"nuance":"LR","nom":"<NAME>","voix":65},{"nuance":"FI","nom":"Mme <NAME>","voix":61},{"nuance"... | 237 |
568 | <reponame>arthurrib/nfe
package com.fincatto.documentofiscal.nfe400.classes.evento.cancelamento;
import java.math.BigDecimal;
import org.junit.Assert;
import org.junit.Test;
import com.fincatto.documentofiscal.nfe400.FabricaDeObjetosFake;
import com.fincatto.documentofiscal.nfe400.classes.nota.assinatura.NFSignature... | 1,535 |
1,253 | <reponame>CarbonDDR/al-go-rithms<filename>image_processing/Face_Detection_OpenCV/Face-detection.py
import cv2
new_path = 'C:\\Anaconda3\\pkgs\\opencv-3.4.4-py37hb76ac4c_1203\\Library\\etc\\haarcascades\\'
#use your own location for haar casscades
face_cascade = cv2.CascadeClassifier(new_path + 'haarcascade_frontalface_... | 335 |
2,443 | <gh_stars>1000+
// Copyright (c) 2015-2019 The HomeKit ADK Contributors
//
// Licensed under the Apache License, Version 2.0 (the “License”);
// you may not use this file except in compliance with the License.
// See [CONTRIBUTORS.md] for the list of HomeKit ADK project authors.
#ifndef HAP_MFI_TOKEN_AUTH_H
#define HA... | 861 |
1,603 | <reponame>bskim45/datahub<filename>metadata-jobs/mae-consumer/src/main/java/com/linkedin/metadata/kafka/hydrator/BaseHydrator.java
package com.linkedin.metadata.kafka.hydrator;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.linkedin.entity.EntityResponse;
import lombok.extern.slf4j.Slf4j;
@Slf4j
p... | 179 |
14,668 | <filename>third_party/blink/renderer/modules/device_posture/device_posture.cc<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.
#include "third_party/blink/renderer/modules/device_posture/d... | 981 |
340 | <filename>test/doc/math/geommean.cpp
//#include <eve/function/geommean.hpp>
#include <eve/module/math.hpp>
#include <eve/literals.hpp>
#include <eve/wide.hpp>
#include <vector>
#include <iostream>
int main()
{
using w_t = eve::wide<double, eve::fixed<4>>;
w_t pi = {3, 2, 3, -3}, qi = {4, 2, 1, -100};
std::cout ... | 799 |
4,140 | /*
* 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,171 |
1,176 | <reponame>ares2015/HaikuMasterAndroid
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | 647 |
1,131 | {
"replace": false,
"values": [
"create:white_seat",
"create:orange_seat",
"create:magenta_seat",
"create:light_blue_seat",
"create:yellow_seat",
"create:lime_seat",
"create:pink_seat",
"create:gray_seat",
"create:light_gray_seat",
"create:cyan_seat",
"create:purple_seat"... | 203 |
1,766 | #ifndef ERIZO_SRC_ERIZO_PIPELINE_SERVICE_H_
#define ERIZO_SRC_ERIZO_PIPELINE_SERVICE_H_
#include "pipeline/Pipeline.h"
namespace erizo {
class PipelineBase;
template <class Context>
class ServiceBase {
public:
virtual ~ServiceBase() = default;
virtual void attachPipeline(Context* /*ctx*/) {}
virtual void de... | 296 |
2,299 | <filename>lib_common/src/main/java/com/fly/tour/common/mvp/view/ITransView.java
package com.fly.tour.common.mvp.view;
/**
* Description: <ITransView><br>
* Author: mxdl<br>
* Date: 2018/2/26<br>
* Version: V1.0.0<br>
* Update: <br>
*/
public interface ITransView {
//显示背景透明小菊花View,例如删除操作
... | 225 |
453 | <reponame>iwikmai/upvote
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | 1,549 |
11,094 | # Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
from MiniFramework.EnumDef_6_0 import *
from MiniFramework.Layer import *
class DropoutLayer(CLayer):
def __init__(self, input_size, ratio=0.5):
self.dropout... | 367 |
5,813 | <filename>processing/src/test/java/org/apache/druid/collections/bitmap/RoaringBitmapFactoryTest.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.... | 1,032 |
2,151 | <filename>test/std/input.output/iostreams.base/fpos/fpos.operations/ctor_int.pass.cpp
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source L... | 204 |
658 | <reponame>justinw-SMC/ipmitool<filename>src/plugins/bmc/bmc_intf.h
/*
* Copyright (c) 2004 Sun Microsystems, 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:
*
* Redistribution of so... | 2,677 |
591 | /*
* ========================= VAOVBO.cpp ==========================
* -- tpr --
* CREATE -- 2018.12.24
* MODIFY --
* ----------------------------------------------------------
*/
#include "pch.h"
#include "VAO... | 1,157 |
1,738 | <reponame>jeikabu/lumberyard
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provid... | 873 |
372 | /*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2021 <NAME> <<EMAIL>>
*
* 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 SOFTWAR... | 1,606 |
1,126 | /*
* Copyright 2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1,030 |
1,761 |
#include <float.h>
#define isnan _isnan
| 18 |
1,405 | <filename>sample5/recompiled_java/sources/com/network/android/monitor/observer/p.java<gh_stars>1000+
package com.network.android.monitor.observer;
import com.network.h.b;
final class p implements Runnable {
/* renamed from: a reason: collision with root package name */
final /* synthetic */ o f101a;
p(... | 174 |
971 | <reponame>JackAKirk/oneDNN
/*******************************************************************************
* Copyright 2019-2021 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 Licens... | 35,633 |
1,918 | /* Copyright 2021, 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 or agreed to ... | 2,107 |
2,134 | <filename>compat/activation-context.hpp
#pragma once
#ifdef _WIN32
#include "export.hpp"
#include <cstdint>
#include <QString>
class OTR_COMPAT_EXPORT activation_context
{
public:
explicit activation_context(const QString& module_name, int resid);
~activation_context();
explicit operator bool() const {... | 183 |
945 | /* The following code declares classes to read from and write to
* file descriptore or file handles.
*
* See
* http://www.josuttis.com/cppcode
* for details and the latest version.
*
* - open:
* - integrating BUFSIZ on some systems?
* - optimized reading of multiple characters
* - stream f... | 1,696 |
1,133 | <reponame>vincentschut/isce2
#!/usr/bin/env python3
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Copyright 2010 California Institute of Technology. ALL RIGHTS RESERVED.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in comp... | 618 |
672 | <filename>js/package.json<gh_stars>100-1000
{
"name": "osgood",
"version": "1.0.0",
"description": "Server-side Service Workers",
"main": "bootstrap.js",
"scripts": {
"install": "mkdir -p vendor && cd vendor && test -d streams || git clone https://github.com/whatwg/streams",
"postinstall": "webpack",
... | 265 |
1,131 | // 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... | 1,593 |
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... | 687 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-792r-mh2q-p8qp",
"modified": "2021-03-31T23:22:17Z",
"published": "2021-05-13T22:30:52Z",
"aliases": [
"CVE-2021-26715"
],
"summary": "Server Side Request Forgery (SSRF) in org.mitre:openid-connect-server",
"details": "The OpenID Connect se... | 837 |
1,331 | <gh_stars>1000+
#ifndef _METERPRETER_COMMON_SCHEDULER_H
#define _METERPRETER_COMMON_SCHEDULER_H
typedef enum
{
SchedulerPause = 1,
SchedulerResume = 2,
SchedulerStop = 3
} SchedulerSignal;
typedef DWORD (*WaitableNotifyRoutine)(Remote *remote, LPVOID entryContext, LPVOID threadContext);
typedef DWORD (*Waitable... | 159 |
768 | package net.engio.mbassy;
import junit.framework.Assert;
import net.engio.mbassy.common.AssertSupport;
import net.engio.mbassy.common.ConcurrentExecutor;
import org.junit.Before;
import org.junit.Test;
import java.util.*;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.CopyOnWriteArraySe... | 6,467 |
765 | <filename>src/systemc/tests/systemc/misc/examples/parsing/activa.cpp
/*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for addit... | 810 |
524 | <filename>kit/src/main/java/com/oracle/javafx/scenebuilder/kit/editor/panel/inspector/editors/EnumEditor.java<gh_stars>100-1000
/*
* Copyright (c) 2016, Gluon and/or its affiliates.
* Copyright (c) 2012, 2014, Oracle and/or its affiliates.
* All rights reserved. Use is subject to license terms.
*
* This file ... | 1,740 |
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 DNS
{
... | 507 |
357 | #include <stdio.h>
int data[] = { 329, 457, 657, 839, 436, 720, 355 };
int array_size = sizeof(data) / sizeof(int);
void printf_array(int A[], int array_size);
void RADIXSORT(int A[], int d);
int main()
{
printf_array(data, array_size);
system("pause");
return 0;
}
void printf_array(int A[], int array_size)
{
... | 215 |
607 | <reponame>CrazyForks/Pixiv-Illustration-Collection-Backend
package dev.cheerfun.pixivic.biz.web.admin.controller;
import dev.cheerfun.pixivic.basic.auth.annotation.PermissionRequired;
import dev.cheerfun.pixivic.basic.auth.constant.PermissionLevel;
import dev.cheerfun.pixivic.biz.web.admin.service.AdminService;
import... | 780 |
348 | {"nom":"Vandelans","circ":"1ère circonscription","dpt":"Haute-Saône","inscrits":89,"abs":48,"votants":41,"blancs":4,"nuls":1,"exp":36,"res":[{"nuance":"FN","nom":"Mme <NAME>","voix":19},{"nuance":"REM","nom":"Mme <NAME>","voix":17}]} | 95 |
428 | <reponame>wanchong/apis
package org.surfnet.oaaas.auth;
import javax.inject.Inject;
import org.surfnet.oaaas.auth.principal.AuthenticatedPrincipal;
import org.surfnet.oaaas.model.ResourceOwner;
import org.surfnet.oaaas.repository.ResourceOwnerRepository;
/**
* Implementation of {@link ResourceOwnerAuthenticator} wh... | 304 |
3,442 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* 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.or... | 999 |
717 | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package java.util;
public class TreeMap<K, V> implements Map<K, V> {
public TreeMap() {}
@Override
public V put(K key, V ... | 111 |
1,457 | /* vi:set ts=8 sts=4 sw=4 ft=objc:
*
* VIM - Vi IMproved by <NAME>
* MacVim GUI port by <NAME>
*
* Do ":help uganda" in Vim to read copying and usage conditions.
* Do ":help credits" in Vim to see a list of people who contributed.
* See README.txt for an overview of the V... | 535 |
575 | // Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | 77,442 |
5,038 | /*
* Copyright 2019 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 appli... | 805 |
2,073 | """
discord.ext.pages
~~~~~~~~~~~~~~~~~~~~~
An extension module to provide useful menu options.
:copyright: 2021-present Pycord-Development
:license: MIT, see LICENSE for more details.
"""
from .pagination import *
| 61 |
533 | <gh_stars>100-1000
#ifndef ANAKIN_SGX_MM_MALLOC_H
#define ANAKIN_SGX_MM_MALLOC_H
#include <stdlib.h>
static inline void *_mm_malloc(size_t size, size_t alignment) {
void *ptr = NULL;
if (alignment == 1) {
return malloc(size);
}
if (alignment == 2 || (sizeof(void *) == 8 && alignment == 4)) {
... | 251 |
647 | #ifndef ECHOJOBS_PROTO_H
#define ECHOJOBS_PROTO_H
#ifdef __cplusplus
extern "C" {
#endif
int echo_jobs_on(void) ;
int echo_jobs_off(void) ;
#ifdef __cplusplus
}
#endif
#endif
| 86 |
383 | /*
* Copyright 2016 Dhatim.
*
* 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 ... | 2,893 |
795 | package cn.edu.hust.domain;
import java.io.Serializable;
public class SessionRandomExtract implements Serializable {
private Long taskId;
private String sessionId;
private String startTime;
private String searchKeyWords;
private String click_category_ids;
public SessionRandomExtract() {
}... | 571 |
1,104 | package com.cg.baseproject.request.retrofit.interceptor;
import java.io.IOException;
import okhttp3.Interceptor;
import okhttp3.Response;
/**
* @author
* @version 1.0
* @date 2018/3/9
*/
public class ResponseTimeInterceptors implements Interceptor {
@Override
public Response intercept(Chain chain) throw... | 220 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.dataprotection.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fast... | 1,069 |
707 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.cscore;
/** Video mode. */
public class VideoMode {
public enum PixelFormat {
kUnknown(0),
... | 656 |
964 | <gh_stars>100-1000
import Test
from Plex import *
import sys
lex = Lexicon([
(Any("ab") + Rep(Any("ab01")), 'ident'),
(Any(" \n"), IGNORE)
],
debug = Test.debug,
timings = sys.stderr
)
Test.run(lex, "test1", debug = 0, trace = 0)
| 98 |
6,342 | # -*- coding: utf-8 -*-
from allauth.socialaccount.providers.netiq.provider import NetIQProvider
from allauth.socialaccount.tests import OAuth2TestsMixin
from allauth.tests import MockedResponse, TestCase
class NetIQTests(OAuth2TestsMixin, TestCase):
provider_id = NetIQProvider.id
def get_mocked_response(sel... | 421 |
1,442 | <gh_stars>1000+
#include <poincare/conjugate.h>
#include <poincare/conjugate_layout.h>
#include <poincare/layout_helper.h>
#include <poincare/serialization_helper.h>
#include <escher/metric.h>
#include <assert.h>
namespace Poincare {
void ConjugateLayoutNode::moveCursorLeft(LayoutCursor * cursor, bool * shouldRecompu... | 1,319 |
337 | package my;
public class Reproducer extends ReproducerBase {
public static void test() {}
} | 26 |
5,169 | {
"name": "GenericDatasource",
"platforms": {
"ios": "8.0"
},
"summary": "A Swift implementation of a generic datasource that you can use for table and collection views.",
"requires_arc": true,
"version": "0.1.0",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"<NAME>": ... | 237 |
1,240 | <gh_stars>1000+
// SEEOpenPanelAccessoryViewController.h
// SubEthaEdit
//
// Created by <NAME> on 16.01.14.
#import <Cocoa/Cocoa.h>
@class EncodingPopUpButton, DocumentModePopUpButton;
@interface SEEOpenPanelAccessoryViewController : NSViewController
@property (nonatomic, readwrite, weak) NSOpenPanel *openPanel... | 276 |
348 | <filename>docs/data/leg-t2/051/05105377.json
{"nom":"Montépreux","circ":"5ème circonscription","dpt":"Marne","inscrits":33,"abs":10,"votants":23,"blancs":0,"nuls":0,"exp":23,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":14},{"nuance":"FN","nom":"<NAME>","voix":9}]} | 113 |
675 | #include "NodeGeometry.hpp"
#include <iostream>
#include <cmath>
#include "PortType.hpp"
#include "NodeState.hpp"
#include "NodeDataModel.hpp"
#include "Node.hpp"
#include "NodeGraphicsObject.hpp"
#include "../style/StyleCollection.hpp"
using QtNodes::NodeGeometry;
using QtNodes::NodeDataModel;
using QtNod... | 3,134 |
308 | <gh_stars>100-1000
"""
Helpers for working with sockets.
"""
# -*- coding: utf-8 -*-
__author__ = "<NAME>"
__copyright__ = "Copyright (C) Nginx, Inc. All rights reserved."
__license__ = ""
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"
def ipv4_address(address=None, host='', port='80', full_format=False, silent=Fa... | 707 |
528 | /******************************************************************************
Copyright 2019-2020 <NAME>
Licensed under the Apache License, Version 2.0 (the "License"),
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENS... | 2,104 |
412 | /*******************************************************************\
Module: Language Registration
Author: <NAME>, <EMAIL>
\*******************************************************************/
/// \file
/// Language Registration
#include "cbmc_parse_options.h"
#include <langapi/mode.h>
#include <ansi-c/ansi_c_l... | 262 |
2,151 | <gh_stars>1000+
#ifndef ST_GL_API_H
#define ST_GL_API_H
struct st_api *st_gl_api_create(void);
#endif
| 52 |
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... | 26,918 |
542 | <gh_stars>100-1000
package com.onesignal;
import android.animation.Animator;
import android.animation.ArgbEvaluator;
import android.animation.ValueAnimator;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.Interpolator;
import android.view.animation.ScaleAnimation;
impor... | 1,005 |
32,544 | import tensorflow as tf
graph = tf.Graph()
builder = tf.saved_model.builder.SavedModelBuilder('./model')
writer = tf.summary.FileWriter('.')
with graph.as_default():
a = tf.constant(2, name='a')
b = tf.constant(3, name='b')
x = tf.placeholder(tf.int32, name='x')
y = tf.placeholder(tf.int32, name='y')
z = tf.m... | 237 |
581 | #include <cstdio>
int &foo(int &x, int n) {
if (n < 1)
return x;
return foo(x, n - 1);
}
int main() {
int i;
int j = foo(i, 10);
printf("%d\n", j);
return 0;
} | 100 |
1,725 | {
"name": "devextreme-modules-test",
"version": "1.0.0",
"devDependencies": {
"@rollup/plugin-alias": "^3.1.2",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"browserify": "^17.0.0",
"cross-env": "^7.0.3",
"devextreme-cldr-data": "^1.0.3",
"globalize":... | 808 |
429 | <filename>Main/Forms/VolumeFormatOptionsWizardPage.h<gh_stars>100-1000
/*
Copyright (c) 2008-2010 TrueCrypt Developers Association. All rights reserved.
Governed by the TrueCrypt License 3.0 the full text of which is contained in
the file License.txt included in TrueCrypt binary and source code distribution
packag... | 444 |
647 | <reponame>gilbertguoze/trick<filename>trick_source/data_products/DPX/DPC/DPC_UnitConvDataStream.cpp
#include <string.h>
#include <udunits2.h>
#include "DPC/DPC_UnitConvDataStream.hh"
extern ut_system * u_system ;
// CONSTRUCTOR
DPC_UnitConvDataStream::DPC_UnitConvDataStream(DataStream* ds, const char *ToUnits, const... | 2,504 |
789 | <gh_stars>100-1000
/*
* Copyright (c) 2015. <NAME>, <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 1,195 |
7,892 | <filename>libraries/lib-ffmpeg-support/FFmpegFunctions.h
/**********************************************************************
Audacity: A Digital Audio Editor
FFmpegFunctions.h
<NAME>
**********************************************************************/
#pragma once
#include <memory>
#include <vector>
... | 1,673 |
4,959 | <gh_stars>1000+
from __future__ import annotations
import re
from typing import Any, Dict, Iterable, List, Optional, Tuple, Union
from urllib.parse import unquote
from sanic.exceptions import InvalidHeader
from sanic.helpers import STATUS_CODES
# TODO:
# - the Options object should be a typed object to allow for l... | 5,664 |
1,337 | <reponame>wwjiang007/cuba<filename>modules/web/test/spec/cuba/web/components/webabstractactionsholdercomponent/screen/WaahcTestScreen.java
package spec.cuba.web.components.webabstractactionsholdercomponent.screen;
import com.haulmont.cuba.gui.components.Action;
import com.haulmont.cuba.gui.components.Table;
import com... | 273 |
2,151 | <filename>ui/gfx/font_render_params_fuchsia.cc
// 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 "ui/gfx/font_render_params.h"
#include "base/logging.h"
#include "base/macros.h"
namespace gfx {... | 393 |
410 | <reponame>bkrrr/Giveme5W
import json
import csv
from os import listdir
from os.path import isfile, join
"""
Extracts information required (or convenient) for the evaluation.
"""
path_extracted_dataset = '/Users/felix/IdeaProjects/Giveme5W/examples/datasets/bbc_fix/output'
empty_line = ['', '', '', '', '', '', '', ''... | 728 |
432 | /* Interprocedural reference lists.
Copyright (C) 2010
Free Software Foundation, Inc.
Contributed by <NAME>
This file is part of GCC.
GCC 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 3... | 3,259 |
2,329 | package ctors;
public class Two2 {
Two2(String message) {
System.out.println(message+message);
}
}
| 40 |
1,192 | <filename>test/local-content/test-roles-failed-complete/roles/role2/test_plugins/b_failed_complete.py
"""A test plugin."""
# pylint: disable=invalid-name
def compatibility_in_test(a, b):
"""Return True when a is contained in b."""
return a in b
# pylint: disable=too-few-public-methods
class TestModule:
... | 195 |
834 | // Copyright 2004-present Facebook. All Rights Reserved.
#include <gtest/gtest.h>
#include "fboss/agent/hw/mock/MockRxPacket.h"
#include "fboss/agent/packet/Ethertype.h"
#include "fboss/agent/packet/MPLSHdr.h"
#include "fboss/agent/packet/PktUtil.h"
#include <folly/logging/xlog.h>
namespace facebook::fboss {
TEST(... | 3,101 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Nalliers","circ":"5ème circonscription","dpt":"Vendée","inscrits":1753,"abs":1050,"votants":703,"blancs":39,"nuls":18,"exp":646,"res":[{"nuance":"SOC","nom":"<NAME>","voix":361},{"nuance":"REM","nom":"<NAME>","voix":285}]} | 111 |
1,475 | <filename>geode-junit/src/main/java/org/apache/geode/internal/cache/wan/MyAsyncEventListener2.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 A... | 633 |
12,366 | <reponame>fax001/tink<filename>testing/java_src/java/com/google/crypto/tink/testing/SignatureServiceImpl.java
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
... | 1,213 |
929 | from django.conf import settings
from kitsune.lib.sumo_locales import LOCALES
def locale_or_default(locale):
"""Return `locale` or, if `locale` isn't a known locale, a default.
Default is taken from Django's LANGUAGE_CODE setting.
"""
if locale not in LOCALES:
locale = settings.LANGUAGE_COD... | 124 |
1,022 | import logging
BATCH = 'batch'
REALTIME = 'realtime'
FLOW_TYPES = [BATCH, REALTIME]
GPU = 'gpu'
CPU = 'cpu'
DEVICE_TYPES = [CPU, GPU]
STOP_SIGNAL = "alalsl;'sdlfj2389jdalskmghsaiaw98y8asdf;askljoa8y;dsf;lkasdb"
LOGGING_LEVEL = logging.INFO | 120 |
1,449 | package org.dstadler.jgit.porcelain;
import org.apache.commons.io.FileUtils;
import org.dstadler.jgit.helper.CookbookHelper;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.lib.Repository;
import java.io.File;
import java.io.IOException;
import java.nio.Byt... | 1,448 |
1,337 | /*
* Copyright (c) 2008-2016 Haulmont.
*
* 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 agr... | 1,003 |
1,449 | /*-
* Copyright (c) 2015 xhyve developers
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... | 2,260 |
562 | #include <libssh2.h>
int main(int argc, char *argv[])
{
LIBSSH2_SESSION* session = libssh2_session_init();
libssh2_session_disconnect(session, "Normal Shutdown");
libssh2_session_free(session);
return 0;
}
| 83 |
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 "third_party/blink/renderer/core/loader/allowed_by_nosniff.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#... | 3,291 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.