max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
12,278 | <reponame>randolphwong/mcsema<filename>boost/libs/random/test/test_chi_squared_distribution.cpp<gh_stars>1000+
/* test_chi_squared_distribution.cpp
*
* Copyright <NAME> 2011
* Distributed under the Boost Software License, Version 1.0. (See
* accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICEN... | 493 |
1,002 | <reponame>JonnoFTW/thriftpy2<gh_stars>1000+
import time
from thrift.TSerialization import serialize, deserialize
from thrift.protocol.TBinaryProtocol import (
TBinaryProtocolFactory,
TBinaryProtocolAcceleratedFactory
)
from addressbook import ttypes
def make_addressbook():
phone1 = ttypes.PhoneNumber()
... | 613 |
1,150 | <reponame>wwhio/awesome-DeepLearning
# save
#paddle.save(deepFM_model.state_dict(), "./model/deepFM_model.pdparams")
#paddle.save(adam.state_dict(), "./model/adam.pdopt")
import paddle
layer_state_dict = paddle.load("./model/deepFM_model.pdparams")
opt_state_dict = paddle.load("./model/adam.pdopt")
testDeepFM_model=... | 270 |
952 | package com.rudecrab.di.strategy;
/**
* @author RudeCrab
*/
public interface PostageStrategy {
/**
* 计算邮费
* @param weight 货物重量
* @return 计算后的邮费
*/
long calPostage(int weight);
}
| 119 |
627 | /* Copyright 2020 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/** Internal header file for rollback.
*
* EC code should not normally include this. These are exposed so they can be
* used by unit test code.
... | 315 |
6,034 | package cn.iocoder.mall.order.rest.controller.comment;
import cn.iocoder.common.framework.enums.MallConstants;
import cn.iocoder.common.framework.vo.CommonResult;
import cn.iocoder.common.framework.vo.PageResult;
import cn.iocoder.mall.order.biz.dto.comment.OrderCommentPageDTO;
import cn.iocoder.mall.order.biz.service... | 928 |
647 | <gh_stars>100-1000
#ifndef CENTRAL_EXP_H
#define CENTRAL_EXP_H
#include <string>
#include "inc1.hpp"
#include "inc2.hpp"
namespace CPM_CENTRAL_EXP_NS {
class CentralExportedClass
{
public:
CentralExportedClass() :
num1(83),
num2(234),
str("Initial String")
{}
std::string render();
int num... | 191 |
5,119 | #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
struct C
{
uint32_t a;
uint64_t b;
};
void clear(struct C* c, size_t size)
{
for (size_t t = 0; t < size; t++)
{
c[t].a = 0;
c[t].b = 0;
}
}
void print(struct C* c, size_t size)
{
uint32_t sum = 0;
while (size--)
sum += (c++)->a;
... | 274 |
890 | // Copyright (C) <2019> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
#ifndef AudioFrameWriter_h
#define AudioFrameWriter_h
#include <string>
#include <logger.h>
#include <webrtc/modules/include/module_common_types.h>
#include "MediaFramePipeline.h"
extern "C" {
#include <libavformat/avformat.h>
}
... | 375 |
369 | <filename>cdap-data-fabric/src/test/java/io/cdap/cdap/data2/dataset2/lib/table/ObjectMappedTableDatasetTest.java
/*
* Copyright © 2015 <NAME>, 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 L... | 5,050 |
2,406 | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "kernel_base_opencl.h"
namespace kernel_selector {
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// reverse_sequence_params
/////////... | 425 |
395 | <filename>test/extensions/firstorder/batch_l2_grad/test_batchl2grad.py
"""Test class for module Batch_l2_grad (squared ℓ₂ norm of batch gradients)"""
from test.automated_test import check_sizes_and_values
from test.extensions.firstorder.batch_l2_grad.batchl2grad_settings import (
BATCHl2GRAD_SETTINGS,
)
from test.... | 587 |
672 | <reponame>CriticalCreator/box2d<gh_stars>100-1000
// MIT License
// Copyright (c) 2019 <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 limit... | 613 |
1,604 |
package java.security.cert;
public class CertificateEncodingException extends CertificateException
{
public CertificateEncodingException()
{
}
public CertificateEncodingException(String msg)
{
super(msg);
}
}
| 79 |
2,151 | <filename>components/offline_pages/core/prefetch/mock_prefetch_item_generator.cc<gh_stars>1000+
// 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 "components/offline_pages/core/prefetch/mock_pref... | 1,428 |
839 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... | 719 |
877 | package org.checkerframework.framework.testchecker.testaccumulation;
import org.checkerframework.common.accumulation.AccumulationTransfer;
import org.checkerframework.dataflow.analysis.TransferInput;
import org.checkerframework.dataflow.analysis.TransferResult;
import org.checkerframework.dataflow.cfg.node.MethodInvoc... | 396 |
678 | <gh_stars>100-1000
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
@class NSString;
@protocol WCAccountLoginFirstUserViewControllerDelegate <NSObject>
- (void)onLoginByPhoneFromQQ;
- (void)onFacebookConnect;
- (v... | 176 |
614 | /* 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/licenses/LICENSE-2.0
Unless required by applicable law or a... | 3,487 |
823 | <reponame>bgogul/oak
/*
* Copyright 2020 The Project Oak 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... | 1,179 |
321 | <filename>chapter10/FileBackupMon/FileBackupMon.cpp
// FileBackupMon.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include "..\FileBackup\FileBackupCommon.h"
#pragma comment(lib, "fltlib")
void HandleMessage(const BYTE* buffer) {
auto msg = (FileBackup... | 389 |
5,169 | {
"name": "DKHelper",
"version": "0.7.2",
"summary": "Bunch of categorized classes to improve your iOS development.",
"homepage": "https://github.com/kevindelord/DKHelper",
"license": "MIT",
"authors": {
"kevindelord": "<EMAIL>"
},
"source": {
"git": "https://github.com/kevindelord/DKHelper.git"... | 180 |
380 | /**
* Copyright 2019 Airbnb. Licensed under Apache-2.0. See LICENSE in the project root for license
* information.
*/
package com.airbnb.conveyor.async;
import com.airbnb.conveyor.async.config.AsyncSqsClientConfiguration;
import com.airbnb.conveyor.async.config.OverrideConfiguration;
import com.airbnb.conveyor.asyn... | 2,727 |
648 | {"resourceType":"ValueSet","id":"supplyrequest-status","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00","profile":["http://hl7.org/fhir/StructureDefinition/valueset-shareable-definition"]},"text":{"status":"generated","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <h2>SupplyRequestStatus</h2>\n ... | 1,506 |
28,056 | package com.alibaba.json.demo;
import org.junit.Assert;
import junit.framework.TestCase;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
public class JSONFeidDemo extends TestCase {
public static class User {
private int id;
private String name;
@... | 371 |
471 | <gh_stars>100-1000
#define GLM_FORCE_MESSAGES
#include <glm/glm.hpp>
#if GLM_HAS_ALIGNED_TYPE
#include <glm/gtc/type_aligned.hpp>
GLM_STATIC_ASSERT(glm::detail::is_aligned<glm::aligned_lowp>::value, "aligned_lowp is not aligned");
GLM_STATIC_ASSERT(glm::detail::is_aligned<glm::aligned_mediump>::value, "aligned_medium... | 1,542 |
319 | package net.dongliu.requests.body;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.nio.charset.Charset;
import java.util.Collection;
/**
* MultiPart request body
*
* @author <NAME>
*/
class MultiPartRequestBody extends RequestBody<Coll... | 982 |
1,073 | <reponame>oubotong/Armariris
// Check that we aren't splitting debug output for modules builds that don't produce object files.
//
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -fmodules -### %s 2> %t
// RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s
//
// RUN: %clang -target x86_64-unknown-li... | 329 |
694 | // Copyright (c) 2008-2009 <NAME> <<EMAIL>>
// See http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ for details.
#include "utf_convert.h"
#include <stddef.h>
#include <stdint.h>
#define false 0
#define true 1
#define UTF8_ACCEPT 0
#define UTF8_REJECT 1
static const uint8_t utf8d[] = {
0, 0, 0, 0, 0, 0, ... | 2,105 |
2,662 | package co.mobiwise.materialintro.shape;
/**
* Created by yuchen on 3/17/16.
*/
public enum ShapeType {
/**
* Allows the target area to be highlighted by either a circle or rectangle
*/
CIRCLE, RECTANGLE
}
| 82 |
416 | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... | 1,460 |
975 | <gh_stars>100-1000
package com.dianping.shield.entity;
import android.util.Pair;
import java.util.ArrayList;
/**
* Created by hezhi on 17/2/22.
*/
public class AdapterExposedList {
public ArrayList<Pair<Integer, Integer>> completeExposedList;
public ArrayList<Pair<Integer, Integer>> partExposedList;
... | 290 |
1,958 | package com.freetymekiyan.algorithms.level.medium;
/**
* 714. Best Time to Buy and Sell Stock with Transaction Fee
* <p>
* Your are given an array of integers prices, for which the i-th element is the price of a given stock on day i; and a
* non-negative integer fee representing a transaction fee.
* <p>
* You ma... | 1,108 |
333 | <gh_stars>100-1000
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 社区互娱平台场景上报行为
*
* @author auto create
* @since 1.0, 2020-02-27 09:40:02
*/
public class AlipaySocialAntiepSceneSendModel extends AlipayObject {
private static... | 1,186 |
1,909 | <filename>xchange-ftx/src/main/java/org/knowm/xchange/ftx/dto/FtxResponse.java
package org.knowm.xchange.ftx.dto;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
public class FtxResponse<V> {
private final boolean success;
private final V result;
@Json... | 392 |
335 | <reponame>Safal08/Hacktoberfest-1<filename>P/Please_verb.json
{
"word": "Please",
"definitions": [
"Cause to feel happy and satisfied.",
"Give satisfaction.",
"Satisfy aesthetically.",
"Take only one's own wishes into consideration in deciding how to act or proceed.",
"Wi... | 172 |
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 ... | 9,180 |
1,405 | package seC.dujmehn.Cutyq;
import android.util.Base64;
import seC.dujmehn.qdtheyt.s.q.q;
import seC.dujmehn.r.r;
final class d implements Runnable {
d() {
}
public static String JJJJJkXGQRIlvVBjgOpt(StringBuilder sb) {
return (String) StringBuilder.class.getMethod(JJJJJkXGQRIlvVBjgOpt9592(), new ... | 1,607 |
118,175 | <filename>Libraries/Wrapper/RCTWrapper.h
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <UIKit/UIKit.h>
#import <RCTWrapper/RCTWrapperView.h>
#import <RCTWrapper/RCTWrap... | 3,246 |
318 | package com.cxytiandi.kittycloud.comment.biz.document;
import com.cxytiandi.kittycloud.comment.biz.enums.CommentBizTypeEnum;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.Date;
import java.util.List;
/**
* 评论Documen... | 594 |
2,127 | <gh_stars>1000+
/**
* Copyright 2017 Institute of Computing Technology, Chinese Academy of Sciences.
* Licensed under the terms of the Apache 2.0 license.
* Please see LICENSE file in the project root for terms
*/
package eml.studio.client.mvp.presenter;
import eml.studio.client.event.LogoutEvent;
import eml.studi... | 1,837 |
348 | {"nom":"<NAME>","circ":"2ème circonscription","dpt":"Savoie","inscrits":1456,"abs":952,"votants":504,"blancs":28,"nuls":7,"exp":469,"res":[{"nuance":"LR","nom":"<NAME>","voix":318},{"nuance":"DIV","nom":"<NAME>","voix":151}]} | 90 |
2,322 | /*
* Win32 ODBC functions
*
* Copyright 1999 <NAME>, Corel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) a... | 8,285 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/DataAccess.framework/Frameworks/DAEAS.framework/DAEAS
*/
#import <DAEAS/ASItem.h>
@class ASSettingsTaskUserInformationGetResponse, NSNumber;
@interface ASSettingsTaskUserInformationResponse : ASItem {
NSNumber *_s... | 499 |
541 | /**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.rest.authorization;
import static org.junit.Assert.assertNotNull;
import static ... | 7,906 |
634 | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 4,146 |
706 | #include "phenom/job.h"
#include "phenom/thread.h"
#include "phenom/log.h"
#include "phenom/sysutil.h"
#include "phenom/counter.h"
#include <sysexits.h>
#include <sys/socket.h>
#include <sys/resource.h>
#ifdef HAVE_LIBEVENT
# include <event.h>
#endif
static char *commaprint(uint64_t n, char *retbuf, uint32_t size)
{
... | 2,895 |
3,432 | <filename>telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/methods/AnswerCallbackQuery.java
package org.telegram.telegrambots.meta.api.methods;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.type.TypeReference;
import lombok.AllArgsConstructor;
import lombok.B... | 1,299 |
4,054 | <gh_stars>1000+
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
/**
* \class document::ForceLink
* \ingroup base
*
* \brief Class used to include some document functionality that programs that
* needs to get it linked, but doesn't use it can include.
... | 143 |
993 | <gh_stars>100-1000
/**
* Copyright 2015 Netflix, Inc.
* <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
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless require... | 840 |
324 | <gh_stars>100-1000
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "... | 1,830 |
11,864 | <reponame>djmaster458/raspberry-pi-os
#ifndef _P_TIMER_H
#define _P_TIMER_H
#include "peripherals/base.h"
#define TIMER_CS (PBASE+0x00003000)
#define TIMER_CLO (PBASE+0x00003004)
#define TIMER_CHI (PBASE+0x00003008)
#define TIMER_C0 (PBASE+0x0000300C)
#define TIMER_C1 (PBASE+0x0000301... | 499 |
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.security.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.... | 1,626 |
483 | from flask import Flask, jsonify
from flask.views import MethodView
from flask_swagger import swagger
app = Flask(__name__)
class UserAPI(MethodView):
def get(self, team_id):
"""
Get a list of users
First line is the summary
All following lines until the hyphens is added to descri... | 2,060 |
2,742 | /*
* Copyright 2008-2019 by <NAME>
*
* This file is part of Java Melody.
*
* 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
*
* ... | 1,095 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-429h-p5fw-3m6v",
"modified": "2022-05-13T01:03:27Z",
"published": "2022-05-13T01:03:27Z",
"aliases": [
"CVE-2011-1992"
],
"details": "The XSS Filter in Microsoft Internet Explorer 8 allows remote attackers to read content from a different (1) domain or (2) zone... | 492 |
336 | <filename>athena/tests/audio_test.py
"""
A simple test script for passive/active listening
"""
print('---- Running Audio Test ----')
try:
input = raw_input # Python 2 fix
except NameError:
pass
import pygame
import time
from pygame import mixer
passed = True
mixer.pre_init(16000, -16, 2, ... | 352 |
2,118 | // Copyright (c) 2006-2018 <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef CDSTEST_STAT_ELLENBINTREE_OUT_H
#define CDSTEST_STAT_ELLENBINTREE_OUT_H
//#include "ellen_bintree_update_desc_pool.h"
#include <... | 1,272 |
1,849 | {
"name": "facebook-batch",
"version": "1.1.0",
"description": "Gracefully batching facebook requests.",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/Yoctol/messaging-apis.git"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"dependencies": {
"messagi... | 246 |
575 | // 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.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_TESTING_FAKE_DISPLAY_ITEM_CLIENT_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_TESTING_FAKE_DISPLAY_ITEM_CLIE... | 481 |
17,702 | # ==============================================================================
# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE.md file in the project root
# for full license information.
# ==============================================================================
fro... | 1,885 |
344 | <filename>imap_tools/__init__.py
# Lib author: <NAME> <<EMAIL>>
# Project home page: https://github.com/ikvk/imap_tools
# License: Apache-2.0
from .query import AND, OR, NOT, Header, UidRange, A, O, N, H, U
from .mailbox import BaseMailBox, MailBox, MailBoxUnencrypted
from .message import MailMessage, MailAttachment
f... | 163 |
1,755 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkOpenVRControlsHelper.h
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY W... | 420 |
2,151 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_RESOURCE_COORDINATOR_TAB_HELPER_H_
#define CHROME_BROWSER_RESOURCE_COORDINATOR_TAB_HELPER_H_
#include <memory>
#include "base/mac... | 961 |
777 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_PROFILES_NET_HTTP_SESSION_PARAMS_OBSERVER_H_
#define CHROME_BROWSER_PROFILES_NET_HTTP_SESSION_PARAMS_OBSERVER_H_
#include "base/ca... | 590 |
1,056 | <filename>ide/spi.debugger.ui/test/unit/src/org/netbeans/api/debugger/DebuggerApiTestBase.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 ... | 764 |
878 | <filename>Source/gmenu.h
//HEADER_GOES_HERE
#ifndef __GMENU_H__
#define __GMENU_H__
extern void *optbar_cel;
extern BOOLEAN mouseNavigation; // weak
extern void *PentSpin_cel;
extern void *BigTGold_cel;
extern int dword_634474; // weak
extern char byte_634478; // weak
extern void(*dword_63447C)(TMenuItem *);
extern TM... | 539 |
15,337 | <reponame>fairhopeweb/saleor
# Generated by Django 3.2.6 on 2021-09-13 07:31
from django.db import migrations
from ...order import FulfillmentStatus
def increase_order_lines_quantity_for_waiting_fulfillments(apps, schema):
"""Increase order_line quantity fulfilled.
Add quantity of each related fulfillment ... | 693 |
4,071 | <reponame>Ru-Xiang/x-deeplearning
/*
* \file in_parallel_gemm_test.cc
* \brief The parallel gemm test unit, which only support Fix-sized bacthed gemm
*/
#include "gtest/gtest.h"
#include "blaze/test/graph/pattern/pattern_test_common.h"
namespace blaze {
TEST(TestInOrder, All) {
CheckPatternOutput(
"./utes... | 201 |
524 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from subprocess import Popen, PIPE
from ansible.module_utils.basic import *
LAIN_TINYDNS_PREFIX_KEY = "/lain/config/domains"
module = AnsibleModule(
argument_spec=dict(
domain=dict(required=True),
record=dict(required=True),
),
)
def main():
... | 1,067 |
3,071 | /*
* MIT License
*
* Copyright (c) 2010 - 2021 The OSHI Project Contributors: https://github.com/oshi/oshi/graphs/contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without... | 1,277 |
3,227 | <reponame>ffteja/cgal<filename>Surface_mesh_parameterization/examples/Surface_mesh_parameterization/iterative_authalic_parameterizer.cpp
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/Surface_mesh_parameterization/IO/File_off.h>
#include <CGAL/Surface_mesh_parameterization/Square_bord... | 1,103 |
852 | <filename>L1Trigger/GlobalMuonTrigger/test/L1MuGMTDump.h
//-------------------------------------------------
//
// \class L1MuGMTDump
/**
* Description: Dump GMT readout
*/
//
//
// <NAME> HEPHY Vienna
//
//--------------------------------------------------
#ifndef L1MU_GMT_DUMP_H
#define L1MU_GMT_D... | 1,208 |
473 | <gh_stars>100-1000
#include "io.h"
int main(void)
{
long long rd, rs, rt, result;
rd = 0x0;
rs = 0x246856789ABCDEF0;
rt = 0x123456789ABCDEF0;
result = 0x091A000000000000;
__asm("subuh.ob %0, %1, %2\n\t"
: "=r"(rd)
: "r"(rs), "r"(rt)
);
if (rd != result) {
... | 401 |
634 | <reponame>vttranlina/james-project<filename>backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/CassandraClusterTest.java
/****************************************************************
* Licensed to the Apache Software Foundation (ASF) under one *
* or more contributor license agreements.... | 1,227 |
764 | <reponame>641589523/token-profile<gh_stars>100-1000
{"symbol": "DEVE","address": "0xfdb615d6A15F929dDabc6b83A4f1Cf9d361b064E","overview":{"en": "Divert Finance aims to offer an efficient mining project."},"email": "<EMAIL>","website": "https://divertfinance.com/","state": "NORMAL","links": {"blog": "","twitter": "https... | 164 |
1,746 | /*
* Copyright (c) 2010-2020, sik<EMAIL>, sikulix.com - MIT license
*/
package org.sikuli.support.animators;
import java.util.Date;
public class AnimatorPulse implements Animator {
protected float _v1, _v2;
protected long _interval, _totalMS;
protected boolean _running;
protected long _begin_time = -1;
... | 385 |
1,085 | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 505 |
348 | {"nom":"Courcelles-en-Montagne","dpt":"Haute-Marne","inscrits":82,"abs":20,"votants":62,"blancs":9,"nuls":4,"exp":49,"res":[{"panneau":"1","voix":25},{"panneau":"2","voix":24}]} | 76 |
423 | import csv
"""
Open <path> as sites.csv file.
URL = row[1]
return: row[1] = {'status': '', 'quant': '', 'pixel': '', 'ganal': ''}
"""
def open_sites_csv(path):
sites_info = dict()
with open(path) as csvfile:
#skip the header
next(csvfile)
csvreader = csv.reader(csvfile, dialect='exc... | 1,345 |
424 | package com.zzx.service;
import com.zzx.config.JwtConfig;
import com.zzx.dao.MessageDao;
import com.zzx.dao.UserDao;
import com.zzx.model.pojo.Message;
import com.zzx.model.pojo.User;
import com.zzx.utils.DateUtil;
import com.zzx.utils.FormatUtil;
import com.zzx.utils.JwtTokenUtil;
import com.zzx.utils.RequestUtil;
i... | 1,327 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iLifeSlideshow.framework/iLifeSlideshow
*/
@class NSArray, NSSet;
@protocol MCFilterSupport
@property(readonly, assign) NSSet *filters;
@property(readonly, assign) NSArray *orderedFilters;
- (void)initFiltersWithIm... | 308 |
582 | /*******************************************************************************
* Copyright (c) 2003, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | 1,898 |
550 | <gh_stars>100-1000
/*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... | 671 |
572 | <filename>codigo/Live143/live_143/src/live_143/app.py
import toga
from functools import partial
from toga.style import Pack
from toga.style.pack import COLUMN, ROW
def volta_box(window, widget):
window.content = window.content
def meu_box(window, widget):
box = toga.Box()
box.add(
toga.Button('vo... | 554 |
855 | // Copyright 2018 Google Inc. All Rights Reserved.
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
#ifndef PIK_SIMD_COMPILER_SPECIFIC_H_
#define PIK_SIMD_COMPILER_SPECIFIC_H_
// Compiler-specific includes and defi... | 676 |
2,180 | <filename>modules/src/main/java/org/archive/modules/fetcher/FetchFTP.java
/*
* This file is part of the Heritrix web crawler (crawler.archive.org).
*
* Licensed to the Internet Archive (IA) by one or more individual
* contributors.
*
* The IA licenses this file to You under the Apache License, Version 2.0
... | 10,173 |
1,444 | package mage.client.table;
/**
* @author JayDi85
*/
public class ColumnInfo {
private final Integer index;
private final Integer width;
private final String headerName;
private final String headerHint;
private final Class colClass;
public ColumnInfo(Integer index, Integer width, Class colCla... | 327 |
1,647 | <filename>pythran/tests/cases/ramsurf.py
#pythran export deriv(int, float, float, complex list, complex list, complex list, float list list, float)
import cmath
#This subroutine finds a root of a polynomial of degree n > 2
# by Laguerre's method.
def guerre(a,n,z,err,nter):
az = [complex(0,0) for i in rang... | 5,898 |
380 | <filename>test/pytest/test_garnet.py<gh_stars>100-1000
import numpy as np
from contrib.garnet import GarNet
from tensorflow.keras.layers import Input
from tensorflow.keras.models import Model
import hls4ml
import pytest
vmax = 16
feat = 3
@pytest.fixture(scope='module')
def garnet_models():
x = Input(shape=(vmax, ... | 798 |
15,577 | <reponame>pdv-ru/ClickHouse
#pragma once
#include <IO/ReadBuffer.h>
namespace DB
{
/// Just a stub - reads nothing from nowhere.
class EmptyReadBuffer : public ReadBuffer
{
public:
EmptyReadBuffer() : ReadBuffer(nullptr, 0) {}
private:
bool nextImpl() override { return false; }
};
}
| 105 |
3,084 | <gh_stars>1000+
#include "Mp_Precomp.h"
#include "802_11_OID.h"
#include "CustomOid.h"
NDIS_STATUS
InterfaceSetInformationHandleCustomizedOriginalMPSetOid(
IN NDIS_HANDLE MiniportAdapterContext,
IN NDIS_OID Oid,
IN PVOID InformationBuffer,
IN ULONG InformationBufferLength,
OUT PULONG BytesRead,
... | 8,343 |
791 | #pragma once
#include "cereal/types/valarray.hpp" | 21 |
318 | <filename>iclick/admin.py<gh_stars>100-1000
from django.contrib import admin
from iclick.models import Link
@admin.register(Link)
class LinkAdmin(admin.ModelAdmin):
list_display = ['token', 'to_url', 'count']
| 75 |
1,682 | /*
Copyright (c) 2012 LinkedIn Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | 519 |
11,334 | <reponame>MrABKhan/spring-boot-admin
{
"instances": {
"caches": {
"label": "Caches",
"cache_manager": "Cache Manager",
"fetch_failed": "Fetching caches failed.",
"loading": "Loading Caches...",
"name": "Name",
"no_caches_found": "No caches found."
}
}
}
| 137 |
1,014 | <filename>Database/Equities/Countries/Mexico/Mexico Industries.json
[
"Airlines",
"Airports & Air Services",
"Asset Management",
"Auto Parts",
"Banks - Regional",
"Beverages - Brewers",
"Beverages - Non-Alcoholic",
"Beverages - Wineries & Distilleries",
"Broadcasting",
... | 750 |
1,007 | <reponame>iamarkaj/poc
##
# Exploit Title: Schneider Electric Modicon Quantum password bypass
# Date: 06/11/2019
# Exploit Author: <NAME>
# CVE : CVE-2018-7811
# Advisory: https://www.tenable.com/security/research/tra-2018-38
# Affected Vendors/Device/Firmware:
# - Modicon M340
# - Modicon Premium
# - Modicon Quantu... | 367 |
645 | /*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2013 Intel Corporation. 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 noti... | 1,731 |
2,338 | <gh_stars>1000+
//===----------------------------------------------------------------------===//
//
// 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-2.0 WITH LLVM-exception
//
//===-----------... | 891 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.