max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
2,576 | /*
* Copyright (c) 2010-2020. Axon Framework
*
* 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... | 738 |
992 | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2010 Couchbase, 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
*
* h... | 442 |
348 | <filename>docs/data/leg-t2/070/07001003.json
{"nom":"Achey","circ":"1ère circonscription","dpt":"Haute-Saône","inscrits":65,"abs":23,"votants":42,"blancs":0,"nuls":1,"exp":41,"res":[{"nuance":"FN","nom":"Mme <NAME>","voix":27},{"nuance":"REM","nom":"Mme <NAME>","voix":14}]} | 116 |
831 | <gh_stars>100-1000
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | 517 |
822 | <gh_stars>100-1000
package com.zlm.hp.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.zlm.hp.ui.R;
import com.zlm.hp.widget.ListItemRelativeLayout;
/**
* 加载中
* Created by zhangliangming on 2017/8/1.
*/
public class LoadingViewHolder extends RecyclerView.ViewHolder {
... | 320 |
1,510 | /*
* 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,154 |
1,671 | /**
* Copyright 2016 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1,197 |
1,694 | <filename>header6.6.1/ShakeCardDetailView.h
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import "MMUIView.h"
#import "IWCCardPkgExt-Protocol.h"
#import "LuckyCoinAnimationControllerDel... | 814 |
802 | <reponame>jphalip/fabric<filename>integration/test_contrib.py
import os
import re
from fabric.api import run, local
from fabric.contrib import files, project
from utils import Integration
def tildify(path):
home = run("echo ~", quiet=True).stdout.strip()
return path.replace('~', home)
def expect(path):
... | 1,830 |
365 | /*
* 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 program is distributed in the hope that it will be use... | 7,559 |
1,798 | <filename>encoder/src/main/java/com/pedro/encoder/input/gl/render/filters/object/TextObjectFilterRender.java
/*
* Copyright (C) 2021 pedroSG94.
*
* 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... | 792 |
5,169 | <reponame>morizotter/Specs
{
"name": "ATLog",
"version": "0.0.1",
"summary": "Log common structures without boring conversions. ATLog(@\"%@\",CGPointMake(1,1)); // No need for NSStringFromCGPoint.",
"homepage": "https://github.com/rabovik/ATLog",
"license": "MIT",
"authors": {
"<NAME>": "<EMAIL>"
},
... | 270 |
1,056 | <gh_stars>1000+
package kale.commonadapter;
import java.util.List;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import kale.adapter.CommonPagerAdapter;
import kale.adapter.item.AdapterItem;
import kale.... | 1,517 |
390 | /*
* Copyright 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/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, ... | 1,375 |
478 | ////////////////////////////////////////////////////////////////////////////////
// PROJECT : libnserial
// (C) <NAME>, 2018.
//
// FILE : modem.h
//
// Published under the MIT license.
//
// AUTHOR : <NAME>
//
// DESCRIPTION : Methods for setting modem flags in serial hardware.
//
////////////////////////////////////... | 143 |
3,212 | <reponame>westdart/nifi
/*
* 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
* (... | 1,330 |
571 | # Copyright 2015 Ufora Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 950 |
1,253 | <filename>machine_learning/text recognition/main.py<gh_stars>1000+
import scipy.io as sio
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
import time
from random import randint
def sigmoid(s):
return 1/(1+np.exp(-s))
data_matrix=sio.loadmat('data.mat')
theta_matrix=sio.loadmat('weights.mat')... | 618 |
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 ... | 1,522 |
857 | /*
* A FIFO like buffer to. Used by file transfer as a write-buffer to queue
* control messages (such as chn_accept, chn_error, ...).
*/
#include "gs-common.h"
#include <gsocket/gsocket.h>
#include "gs-externs.h"
void
GS_BUF_init(GS_BUF *gsb, size_t sz_max_add)
{
memset(gsb, 0, sizeof *gsb);
gsb->sz_max_add = sz_... | 1,237 |
372 | /*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | 1,321 |
2,281 | <gh_stars>1000+
/*
* Copyright 2013-2021 Real Logic Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 1,623 |
310 | <reponame>orekyuu/doma
package org.seasar.doma.internal.expr;
public enum ExpressionTokenType {
WHITESPACE,
OPENED_PARENS,
CLOSED_PARENS,
VARIABLE,
CHAR_LITERAL,
STRING_LITERAL,
INT_LITERAL,
FLOAT_LITERAL,
DOUBLE_LITERAL,
LONG_LITERAL,
BIGDECIMAL_LITERAL,
ILLEGAL_NUMBER_LITERAL,
N... | 342 |
1,331 | #ifndef _METERPRETER_SOURCE_ELEVATOR_TOKENDUP_H
#define _METERPRETER_SOURCE_ELEVATOR_TOKENDUP_H
BOOL elevator_tokendup( DWORD dwThreadId, DWORD dwSecurityRID );
#endif
| 80 |
2,151 | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_ARC_TIMER_CREATE_TIMER_REQUEST_H_
#define COMPONENTS_ARC_TIMER_CREATE_TIMER_REQUEST_H_
#include <stdint.h>
#include "base/files/scope... | 251 |
522 | /*!
* asn1.h - asn1 for mako
* Copyright (c) 2020, <NAME> (MIT License).
* https://github.com/chjj/mako
*/
#ifndef BTC_ASN1_H
#define BTC_ASN1_H
#include <limits.h>
#include <stddef.h>
#include <string.h>
#include "asn1.h"
#include "../internal.h"
/*
* ASN1
*/
static int
asn1_read_size(size_t *size,
... | 1,931 |
884 | {
"manifestName": "TestForeignKeyOneToOneCardinality",
"explanation": "CDM standard entities for 'TestForeignKeyOneToOneCardinality'",
"entities": [
{
"type": "LocalEntity",
"entityName": "Person",
"entityPath": "Person.cdm.json/Person"
},
{
"type": "LocalEntity",
"entity... | 304 |
7,737 | <filename>ext/phalcon/security/jwt/token/parser.zep.h
extern zend_class_entry *phalcon_security_jwt_token_parser_ce;
ZEPHIR_INIT_CLASS(Phalcon_Security_JWT_Token_Parser);
PHP_METHOD(Phalcon_Security_JWT_Token_Parser, parse);
PHP_METHOD(Phalcon_Security_JWT_Token_Parser, decodeClaims);
PHP_METHOD(Phalcon_Security_JWT... | 992 |
5,169 | <reponame>Gantios/Specs<filename>Specs/c/e/c/MLFloatView/0.1.1/MLFloatView.podspec.json
{
"name": "MLFloatView",
"version": "0.1.1",
"summary": "MLFloatView Provides an animated and no animated way to display",
"description": "Provide animation and animation without the way to display, it can quickly create sim... | 271 |
14,425 | <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
*... | 453 |
972 | <reponame>Charis1331/fragmentargs
package com.hannesdorfmann.fragmentargs.processor.test;
@com.hannesdorfmann.fragmentargs.annotation.FragmentWithArgs
public class ClassWithProtectedSetter extends android.app.Fragment {
@com.hannesdorfmann.fragmentargs.annotation.Arg
private String privateArg;
protected v... | 145 |
679 | <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 license... | 1,271 |
7,158 | <filename>modules/tracking/src/legacy/tracker.legacy.hpp
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
//... | 1,365 |
1,253 | /*
* Copyright (c) 2006 <NAME>
* Copyright (c) 2017 Mozilla Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the righ... | 2,539 |
1,909 | package org.knowm.xchange.deribit.v2.dto.trade;
import org.knowm.xchange.dto.Order.IOrderFlags;
public enum AdvancedOptions implements IOrderFlags {
usd,
implv;
}
| 65 |
965 | <gh_stars>100-1000
CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(IDR_CMyDocTypeTYPE,
RUNTIME_CLASS(CMyDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CMyView));
if (!pDocTemplate)
return FALSE;
AddDocTemplate(pDocTemplate); | 100 |
936 | <gh_stars>100-1000
/*
* Copyright 2021, Yahoo Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root for terms.
*/
package example;
import lombok.Getter;
import lombok.Setter;
public class GeoLocation {
@Getter @Setter
private String latitude;
@Getter @Setter
pr... | 115 |
515 | <filename>Libs/Core/Testing/Cpp/ctkDependencyGraphTest1.cpp
/*=========================================================================
Library: CTK
Copyright (c) Kitware Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
... | 2,299 |
709 | <reponame>security-geeks/jackhammer<filename>src/main/java/com/olacabs/jackhammer/db/HardcodeSecretDAO.java<gh_stars>100-1000
package com.olacabs.jackhammer.db;
import com.olacabs.jackhammer.models.HardcodeSecret;
import com.olacabs.jackhammer.models.mapper.HardcodeSecretMapper;
import org.skife.jdbi.v2.sqlobject.Bind... | 421 |
1,016 | <reponame>peter-ls/kylo
package com.thinkbiganalytics.metadata.jpa.common;
/*-
* #%L
* thinkbig-operational-metadata-jpa
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You m... | 1,130 |
348 | {"nom":"Viviers-lès-Montagnes","circ":"3ème circonscription","dpt":"Tarn","inscrits":1528,"abs":795,"votants":733,"blancs":61,"nuls":33,"exp":639,"res":[{"nuance":"REM","nom":"<NAME>","voix":363},{"nuance":"LR","nom":"<NAME>","voix":276}]} | 98 |
5,421 | #!/usr/bin/env python
""" This is our runner for the inline copy of scons.
It dispatches based on the Python version it is running in, with 2.6 using a
very old version. Once scons stops supporting Python2.7 as well, we might have
to add another one.
"""
if __name__ == "__main__":
import os
import sys
... | 546 |
848 | <filename>tools/Vitis-AI-Quantizer/vai_q_tensorflow1.x/tensorflow/contrib/decent_q/python/input_fn.py
# Copyright 2019 Xilinx 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
#
# ht... | 2,174 |
2,699 | {
"title": "Table of contents",
"context": {
"label": "In this article",
"heading": {
"text": "Blibli's PWA generates 10x more revenue per user than their previous mobile website",
"url": "#"
},
"items": [
{"text": "Highlighting the opportunity", "url": "#"},
{"text": "The ap... | 196 |
769 | /**
******************************************************************************
* @file hw_config.c
* @author MCD Application Team
* @version V4.0.0
* @date 21-January-2013
* @brief Hardware Configuration & Setup
******************************************************************************
... | 2,063 |
13,889 | '''
GstPlayer
=========
.. versionadded:: 1.8.0
`GstPlayer` is a media player implemented specifically for Kivy with Gstreamer
1.0. It doesn't use Gi at all and is focused on what we want: the ability
to read video and stream the image in a callback, or read an audio file.
Don't use it directly but use our Core provi... | 271 |
3,200 | /**
* Copyright 2021 Huawei Technologies Co., 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 1,363 |
625 | <reponame>DataSketches/sketches-core
/*
* 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,... | 2,376 |
3,112 | <filename>src/studio/win/main.cpp
#include "engine/os.h"
#include "engine/win/simple_win.h"
#include "editor/studio_app.h"
int main(int argc, char* argv[])
{
SetProcessDPIAware();
void* shcore = Lumix::os::loadLibrary("shcore.dll");
if (shcore) {
auto setter = (decltype(&SetProcessDpiAwareness))Lumix::os::getLibr... | 251 |
598 | package com.polites.android.example;
import android.os.Bundle;
public class ScaleTypeCenterInsideSmall extends ExampleActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.scale_type_inside_small);
}
} | 100 |
2,023 | import contextlib
@contextlib.contextmanager
def temp_setattr(ob, attr, new_value):
"""Temporarily set an attribute on an object for the duration of the
context manager."""
replaced = False
old_value = None
if hasattr(ob, attr):
try:
if attr in ob.__dict__:
repla... | 301 |
799 | import graanalyticalfeaturedisplay
from graanalyticalfeaturedisplay import displayAnalyticalFeatures
_INCIDENT = {
'id': 28862,
"labels": [
{
"type": "Brand",
"value": "GRA"
},
{
"type": "Instance",
"value": "GRA-Test"
},
... | 1,249 |
6,205 | <reponame>matthiasng/conan
#include <iostream>
#include "bye.h"
#include "hello.h"
void bye(){
hello();
#ifdef NDEBUG
std::cout << "bye World Release!" <<std::endl;
#else
std::cout << "bye World Debug!" <<std::endl;
#endif
}
| 112 |
145,614 | import itertools
import string
from typing import Generator, Iterable
def chunker(seq: Iterable[str], size: int) -> Generator[tuple[str, ...], None, None]:
it = iter(seq)
while True:
chunk = tuple(itertools.islice(it, size))
if not chunk:
return
yield chunk
def prepare_in... | 1,319 |
2,788 | from django.urls import path
from users import views
urlpatterns = [
path('', views.UserList.as_view()),
path('<int:pk>/', views.user_detail),
]
| 61 |
14,668 | // 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 "third_party/blink/renderer/platform/loader/testing/bytes_consumer_test_reader.h"
#include "third_party/blink/renderer/platform/scheduler/test/f... | 732 |
703 | <gh_stars>100-1000
#include <RendererCore/RendererCorePCH.h>
#include <RendererCore/AnimationSystem/AnimGraph/AnimGraph.h>
#include <RendererCore/AnimationSystem/AnimGraph/AnimNodes/BlackboardAnimNodes.h>
// clang-format off
EZ_BEGIN_DYNAMIC_REFLECTED_TYPE(ezSetBlackboardValueAnimNode, 1, ezRTTIDefaultAllocator<ezSet... | 3,265 |
609 |
#include <kernel.h>
// ================================================
// The data comes from boot block and beyond.
// #test
// Lets use the info that omes from the BootBlock structure.
// This structure was initialized for kernel_main() in main.c
unsigned long info_get_boot_info ( int i )
{
if (i<0){ retu... | 548 |
190,993 | /* Copyright 2018 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... | 6,332 |
700 | /***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | 1,127 |
5,937 | <gh_stars>1000+
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//+----------------------------------------------------------------------------
//
//
// Abstract... | 558 |
32,544 | <filename>testing-modules/rest-testing/src/test/java/com/baeldung/rest/jbehave/IncreaseStoryLiveTest.java<gh_stars>1000+
package com.baeldung.rest.jbehave;
import org.jbehave.core.configuration.Configuration;
import org.jbehave.core.configuration.MostUsefulConfiguration;
import org.jbehave.core.io.LoadFromClasspath;
i... | 491 |
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
#include <ktl.h>
... | 1,715 |
4,879 | #include "catch.hpp"
#include <osmium/osm/node_ref.hpp>
TEST_CASE("NodeRef") {
SECTION("instantiation_with_default_parameters") {
osmium::NodeRef node_ref;
REQUIRE(node_ref.ref() == 0);
// REQUIRE(!node_ref.has_location());
}
SECTION("instantiation_with_id") {
osmium::NodeRef ... | 943 |
852 | ## import skeleton process
from PhysicsTools.PatAlgos.patTemplate_cfg import *
## ---
## This is an example of the use of the plain edm::Tuple dumper to analyze pat::Muons
process.patMuonAnalyzer = cms.EDProducer(
"CandViewNtpProducer",
src = cms.InputTag("cleanPatMuons"),
lazyParser = cms.untracked.bool(... | 474 |
852 | /****************************************************************************
* Author:
* <NAME> (<EMAIL>)
****************************************************************************/
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/... | 536 |
772 | <reponame>Edraak/code-dot-or<gh_stars>100-1000
{
"data": {
"name_s": "<NAME>",
"email_s": "<EMAIL>",
"school_name_s": "Entirely Fabricaed Elementary",
"school_type_s": "elementary",
"school_address_s": "12345 Fake Dr\r\nSomeplace, WA 55555",
"title_I_school_b": "1",
"number_students_s": 12... | 401 |
716 | //
// Copyright (c) 2021 INRIA
//
#include "pinocchio/spatial/fwd.hpp"
#include "pinocchio/algorithm/parallel/aba.hpp"
#include "pinocchio/algorithm/aba.hpp"
#include "pinocchio/algorithm/joint-configuration.hpp"
#include "pinocchio/parsers/sample-models.hpp"
#include "pinocchio/utils/timer.hpp"
#include <iostream>
... | 650 |
1,724 | /*
* Copyright 2008-present MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 689 |
348 | {"nom":"Sancerre","circ":"1ère circonscription","dpt":"Cher","inscrits":1003,"abs":400,"votants":603,"blancs":12,"nuls":3,"exp":588,"res":[{"nuance":"LR","nom":"<NAME>","voix":205},{"nuance":"REM","nom":"<NAME>","voix":198},{"nuance":"UDI","nom":"<NAME>","voix":43},{"nuance":"FN","nom":"<NAME>","voix":43},{"nuance":"FI... | 212 |
435 | <filename>scipy-2018/videos/bias-diversity-backlash-manifestos-and-rebuttals-scipy-2018-diversity-luncheon-lorena-barba.json
{
"copyright_text": null,
"description": "Have you ever been in a meeting where a colleague says \u201cI\u2019m a great\nsupporter of gender equality, but I\u2019m totally opposed to quotas!\... | 786 |
3,459 | static const char bsnesVersion[] = "0.059";
static const char bsnesTitle[] = "bsnes";
static const unsigned bsnesSerializerVersion = 4;
//S-DSP can be encapsulated into a state machine using #define magic
//this avoids ~2.048m co_switch() calls per second (~5% speedup)
#define DSP_STATE_MACHINE
//game genie + pro act... | 463 |
1,125 | import java.io.File;
public class TestingIO {
public TestingIO() {
new File("foo");
}
}
| 44 |
311 | <filename>source/math/Vector.h
/*
* Copyright (c) 2009-2021, <NAME>
* 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 not... | 3,340 |
1,177 | def triplets_with_sum(number):
pass
| 16 |
3,010 | <reponame>Neradoc/circuitpython
// LEDs
#define MICROPY_HW_LED_STATUS (&pin_PA17)
#define MICROPY_HW_LED_TX &pin_PA27
#define MICROPY_HW_LED_RX &pin_PA17
#define MICROPY_HW_BOARD_NAME "J&J Studios datum-Light"
#define MICROPY_HW_MCU_NAME "samd21g18"
#define DEFAULT_I2C_BUS_SCL (&pin_PA23)
#define DEFAULT_I2C_BU... | 595 |
1,014 | [
"Broadcasting - TV",
"Business Services",
"Entertainment - Diversified",
"Industrial Equipment Wholesale",
"Marketing Services",
"Research Services",
"Security & Protection Services",
"Shipping",
"Specialty Retail, Other",
"Staffing & Outsourcing Services"
] | 113 |
3,212 | <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 "Lic... | 522 |
10,882 | <filename>examples/basics/kmeans.py
""" K-Means Example """
from __future__ import division, print_function, absolute_import
from tflearn.estimators import KMeans
# Data loading and preprocessing
import tflearn.datasets.mnist as mnist
X, Y, testX, testY = mnist.load_data(one_hot=False)
# K-Means training
m = KMeans... | 259 |
18,325 | package com.zheng.pay.dao.mapper;
import com.zheng.pay.dao.model.PayPay;
import com.zheng.pay.dao.model.PayPayExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface PayPayMapper {
long countByExample(PayPayExample example);
int deleteByExample(PayPayExample example);
... | 272 |
2,392 | <reponame>MelvinG24/dust3d<filename>thirdparty/cgal/CGAL-5.1/include/CGAL/Minkowski_sum_2/AABB_collision_detector_2.h
// Copyright (c) 2015 Tel-Aviv University (Israel).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL: https://github.com/CGAL/cgal/blob/v5.1/Minkowski_sum_2/include/CG... | 2,519 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-c32q-m2jw-8jp8",
"modified": "2022-05-01T23:53:58Z",
"published": "2022-05-01T23:53:58Z",
"aliases": [
"CVE-2008-2836"
],
"details": "PHP remote file inclusion vulnerability in send_reminders.php in WebCalendar 1.0.4 allows remote attackers to execute arbitrary... | 593 |
348 | {"nom":"Linards","circ":"1ère circonscription","dpt":"Haute-Vienne","inscrits":892,"abs":422,"votants":470,"blancs":10,"nuls":14,"exp":446,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":143},{"nuance":"FI","nom":"Mme <NAME>","voix":72},{"nuance":"FN","nom":"Mme <NAME>","voix":71},{"nuance":"LR","nom":"Mme <NAME>","vo... | 270 |
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.
#include "chrome/browser/ash/arc/input_overlay/input_overlay_resources_util.h"
#include <map>
#include "chrome/browser/ash/arc/input_ove... | 1,665 |
1,609 | <gh_stars>1000+
//
// Copyright (C) 2014 Novartis Institutes for BioMedical Research
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#incl... | 2,742 |
6,210 | /*
* 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,120 |
1,449 | #ifndef EXIFTOOL_H
#define EXIFTOOL_H
#include <QMap>
#include <QObject>
#include <QProcess>
#include <QString>
class Exiftool : public QObject
{
Q_OBJECT
public:
explicit Exiftool(QObject *parent = nullptr);
static QString version(int msecs = 30000);
public slots:
bool start(int msecs = 30000);
bool s... | 231 |
554 | <reponame>ZHENGGEGE/thresh
/*
* MIT License
*
* Copyright (c) 2020 ManBang Group
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the ri... | 1,937 |
1,734 | <reponame>cheng-chi/s2geometry
// Copyright 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
//
// Unl... | 692 |
539 | <filename>lte/gateway/c/core/oai/test/mme_app_task/test_mme_app_ue_context.cpp
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirIn... | 4,952 |
17,703 | #include "contrib/kafka/filters/network/source/response_codec.h"
#include "source/common/buffer/buffer_impl.h"
namespace Envoy {
namespace Extensions {
namespace NetworkFilters {
namespace Kafka {
// Default implementation that just creates ResponseHeaderParser with dependencies provided.
class ResponseInitialParser... | 478 |
3,293 | {
"name": "@myscope/core",
"version": "1.0.0",
"description": "Core package",
"main": "lib/utilities.js",
"directories": {
"lib": "lib"
},
"license": "ISC"
} | 77 |
2,054 | <gh_stars>1000+
/* file: mkl_vml_defines.h */
/*******************************************************************************
* Copyright (c) 2006-2018, Intel Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follow... | 3,549 |
326 | <reponame>tsadakane/TIGRE
""" Visualization of ordered subset of angles
# This file is part of the TIGRE Toolbox
# Copyright (c) 2015, University of Bath and
# CERN-European Organization for Nuclear Research
# All rights reserved.
# License: Open Sou... | 3,241 |
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,895 |
1,109 | /*******************************************************************************
* Copyright 2016 Intuit
* <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.o... | 1,185 |
2,151 | #!/usr/bin/env python
# Copyright (c) 2011 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.
"""
Runs Coverity Prevent on a build of Chromium.
This script should be run in a Visual Studio Command Prompt, so that the
INCLUDE... | 4,994 |
431 | '''
Unit tests for mir_eval.hierarchy
'''
from glob import glob
import re
import warnings
import json
import numpy as np
import scipy.sparse
import mir_eval
from nose.tools import raises
A_TOL = 1e-12
def test_tmeasure_pass():
# The estimate here gets none of the structure correct.
ref = [[[0, 30]], [[0... | 5,495 |
370 | <gh_stars>100-1000
package com.premnirmal.Magnet;
import android.content.Context;
import android.content.res.Resources;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
import android.widget.ImageView;
import org.junit.Before;
import ... | 2,180 |
1,060 | <gh_stars>1000+
/*
Copyright <NAME> 2008-2015
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef MSGPACK_PREDEF_ARCHITECTURE_X86_32_H
#define MSGPACK_PREDEF_ARCHITECTURE_X86_32_H
#include <msgpack/predef/version... | 1,349 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.