max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
330 | <gh_stars>100-1000
// Copyright (c) 2015 <NAME>
// Use, modification, and distribution is subject to 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)
#pragma once
#ifndef MSESCOPE_H_
#define MSESCOPE_H_
#include "msepointerbasics.h... | 64,464 |
14,668 | // 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/borealis/borealis_disk_manager_impl.h"
#include <algorithm>
#include <string>
#include "ash/constants/ash_features.h"
#incl... | 12,734 |
852 | #include "CondFormats/AlignmentRecord/interface/CSCSurveyErrorExtendedRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"
EVENTSETUP_RECORD_REG(CSCSurveyErrorExtendedRcd);
| 73 |
348 | <filename>docs/data/leg-t2/033/03309076.json
{"nom":"Budos","circ":"9ème circonscription","dpt":"Gironde","inscrits":588,"abs":351,"votants":237,"blancs":30,"nuls":7,"exp":200,"res":[{"nuance":"SOC","nom":"<NAME>","voix":101},{"nuance":"MDM","nom":"<NAME>","voix":99}]} | 111 |
850 | <reponame>langsunny/DEye
// GENERATED FILE - DO NOT MODIFY
#include "tensorflow/core/framework/summary.pb_text-impl.h"
using ::tensorflow::strings::Scanner;
using ::tensorflow::strings::StrCat;
namespace tensorflow {
string ProtoDebugString(
const ::tensorflow::SummaryDescription& msg) {
string s;
::tensorfl... | 11,869 |
584 | //
// IWLMvmTransOpsGen2.hpp
// AppleIntelWifiAdapter
//
// Created by 钟先耀 on 2020/1/13.
// Copyright © 2020 IntelWifi for MacOS authors. All rights reserved.
//
#ifndef APPLEINTELWIFIADAPTER_MVM_IWLMVMTRANSOPSGEN2_HPP_
#define APPLEINTELWIFIADAPTER_MVM_IWLMVMTRANSOPSGEN2_HPP_
#include "IWLTransOps.h"
class IWLM... | 382 |
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.databox.fluent.models;
import com.azure.core.annotation.Immutable;
import com.azure.core.annotation.JsonFlatten;
import com.azur... | 697 |
1,507 | # coding=utf-8
# Copyright 2020 The Gin-Config 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 la... | 7,309 |
2,338 | <gh_stars>1000+
#ifndef ISL_UNION_SET_TYPE_H
#define ISL_UNION_SET_TYPE_H
#include <isl/union_map_type.h>
#endif
| 57 |
5,133 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.complex.source;
public enum Category {
SEDAN, CONVERTIBLE, TRUCK;
}
| 83 |
432 | <filename>extra/cloud-etl/src/main/java/io/activej/etl/LogOTProcessor.java<gh_stars>100-1000
/*
* Copyright (C) 2020 ActiveJ 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
*
* ht... | 2,125 |
341 | <reponame>jafluri/pygsp
# -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
from . import Filter # prevent circular import in Python < 3.5
class Expwin(Filter):
r"""Design an exponential window filter.
The window has the shape of a (half) triangle with the corners smoothed by
a... | 1,222 |
559 | <gh_stars>100-1000
import numpy
from generate import *
def generate():
def test_vector_wrapper(frames):
template = "require('radio.blocks.protocol.ax25framer').AX25FrameType.vector_from_array({%s})"
return [template % (','.join(frames))]
def bytes_to_stuffed_bits(data):
bits = numpy.a... | 1,221 |
1,474 | """
@author: <NAME>
@contact: <EMAIL>
"""
import sys
import timm
import torch
import torch.nn as nn
import torchvision.transforms as T
sys.path.append('../../..')
from common.utils.metric.reid import extract_reid_feature
from common.utils.analysis import tsne
import common.vision.models.reid as models
def get_model_... | 1,426 |
533 | {
"pages":[
"pages/list/index",
"pages/detail/index",
"pages/index/index",
"pages/logs/logs"
],
"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "WeChat",
"navigationBarTextStyle":"black"
},
"tabBar":{
"color":"#272... | 325 |
1,056 | package org.netbeans.test.java.hints;
public class ImportTest6 {
/** Creates a new instance of ImportTest */
public ImportTest6() {
Collections.
}
}
| 73 |
2,728 | <reponame>vincenttran-msft/azure-sdk-for-python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------... | 411 |
1,383 | #------------------------------------------------------------------------------
# Name: pychrono example
# Purpose:
#
# Author: <NAME>
#
# Created: 6/10/2020
# Copyright: (c) ProjectChrono 2019
#------------------------------------------------------------------------------
import pychrono.core as ch... | 2,892 |
23,901 | <gh_stars>1000+
# coding=utf-8
# Copyright 2021 The Google Research 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 requ... | 13,308 |
2,996 | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.rendering.nui.internal;
import org.joml.Quaternionfc;
import org.joml.Vector2ic;
import org.joml.Vector3fc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.terasology.gestalt.assets.Reso... | 2,035 |
2,151 | <reponame>zipated/src<gh_stars>1000+
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/public/common/common_param_traits.h"
#include <string>
#include "base/containers/stack_contai... | 1,519 |
427 | <reponame>JaminChan/eos_win
//===- ModStream.cpp - PDB Module Info Stream Access ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------... | 1,060 |
5,169 | <reponame>Gantios/Specs<filename>Specs/3/1/4/iMessageDataKit/0.1.0/iMessageDataKit.podspec.json
{
"name": "iMessageDataKit",
"version": "0.1.0",
"summary": "Store custom data as key-value pairs in MSMessage objects.",
"homepage": "https://github.com/svtek/iMessageDataKit",
"license": {
"type": "MIT",
... | 301 |
407 | #include "hal_core/python_bindings/python_bindings.h"
#include "hal_core/netlist/gate.h"
#include "hal_core/netlist/netlist.h"
#include "pybind11/operators.h"
#include "pybind11/pybind11.h"
#include "pybind11/stl.h"
#include "pybind11/stl_bind.h"
#include "solve_fsm/plugin_solve_fsm.h"
#include <map>
namespace py = p... | 1,297 |
457 | //
// Academic License - for use in teaching, academic research, and meeting
// course requirements at degree granting institutions only. Not for
// government, commercial, or other organizational use.
//
// File: cmdvel2gazebo_types.h
//
// Code generated for Simulink model 'cmdvel2gazebo'.
//
// Model version ... | 1,824 |
348 | <filename>docs/data/leg-t2/089/08901311.json
{"nom":"Pourrain","circ":"1ère circonscription","dpt":"Yonne","inscrits":1025,"abs":515,"votants":510,"blancs":25,"nuls":10,"exp":475,"res":[{"nuance":"LR","nom":"<NAME>","voix":239},{"nuance":"REM","nom":"<NAME>","voix":236}]} | 108 |
816 | <gh_stars>100-1000
package com.jxtech.distributed.zookeeper;
import java.net.URLDecoder;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.ut... | 12,150 |
3,710 | #pragma once
#ifndef DRAWABLEMESHIMAGE_H
#define DRAWABLEMESHIMAGE_H
#include <memory>
// TnzExt includes
#include "meshtexturizer.h"
// TnzCore includes
#include "tgldisplaylistsmanager.h"
#undef DVAPI
#undef DVVAR
#ifdef TNZEXT_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI D... | 1,220 |
2,461 | import argparse
import logging
import os
from gluonnlp.utils.misc import logging_config, sha1sum
from gluonnlp.models.mt5 import MT5Model as Gluon_mT5
from transformers import MT5Model as HF_mT5
from convert_t5 import (
parse_args, convert_config, convert_vocab, convert_params, rename, test_conversion
)
# these... | 1,512 |
1,475 | <filename>geode-core/src/main/java/org/apache/geode/internal/statistics/StatisticsRegistry.java<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 owne... | 3,412 |
8,028 | # coding=utf-8
# Copyright 2020 Microsoft and the HuggingFace Inc. team.
#
# 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... | 4,616 |
852 | #ifndef ROOT_TEcnaResultType
#define ROOT_TEcnaResultType
#include "TMath.h"
#include "CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos/interface/TEcnaObject.h"
#include "CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos/interface/TEcnaNArrayD.h"
///-----------------------------------------------------------
/// ... | 787 |
363 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
'''
Connection library for AWS
.. versionadded:: 2015.5.0
This is a base library used by a number of AWS services.
:depends: requests
'''
# Import Python libs
import time
from datetime import datetime
import hashlib
import hmac
import logging
import hubblestack.config
impo... | 4,870 |
746 | package org.protege.editor.owl.ui.ontology;
import org.protege.editor.core.ui.preferences.PreferencesLayoutPanel;
import org.protege.editor.owl.ui.UIHelper;
import org.protege.editor.owl.ui.preferences.OWLPreferencesPanel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.swing.*;
import javax.swi... | 1,810 |
675 | <gh_stars>100-1000
/*
* Copyright 2018 The Bazel 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
*
* U... | 506 |
305 | from .data import Data # noqa: F401
from .error import Error # noqa: F401
from .event import Event # noqa: F401
from .order import Order # noqa: F401
from .trade import Trade # noqa: F401
| 65 |
483 | <filename>nitrite/src/test/java/org/dizitart/no2/index/fulltext/languages/BulgarianTest.java<gh_stars>100-1000
package org.dizitart.no2.index.fulltext.languages;
import org.junit.Test;
import java.util.Set;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public class Bulgaria... | 513 |
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,179 |
590 | #ifndef __FRAMEWORK_CORE_L_PRINTR_H__
#define __FRAMEWORK_CORE_L_PRINTR_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <luahelper.h>
int luaopen_printr(lua_State * L);
#ifdef __cplusplus
}
#endif
#endif /* __FRAMEWORK_CORE_L_PRINTR_H__ */
| 125 |
5,169 | <reponame>Gantios/Specs<gh_stars>1000+
{
"name": "PapaLayout",
"version": "1.0.0",
"summary": "Pure Swift AutoLayout library offers a neat way to manage constraints in code.",
"swift_version": "4.1",
"platforms": {
"ios": "9.0",
"tvos": "9.0",
"osx": "10.10"
},
"requires_arc": true,
"homepag... | 276 |
319 | package me.aartikov.alligator.animations;
import me.aartikov.alligator.Navigator;
import me.aartikov.alligator.animations.providers.DialogAnimationProvider;
import me.aartikov.alligator.animations.providers.TransitionAnimationProvider;
/**
* Arbitrary data that can be passed to a {@link Navigator} and then will be ... | 139 |
9,734 | # 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 not u... | 728 |
1,701 | package com.google.maps.android;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/** Wrapper for the Android class android.content.Context. */
public class Context {
private Class<?> contextClas... | 923 |
879 | package org.zstack.sdk;
public class L3NetworkHostRouteInventory {
public java.lang.Long id;
public void setId(java.lang.Long id) {
this.id = id;
}
public java.lang.Long getId() {
return this.id;
}
public java.lang.String l3NetworkUuid;
public void setL3NetworkUuid(java... | 583 |
777 | # Copyright (c) 2019, <NAME>. 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... | 449 |
450 | /*
* Copyright (c) 2004, 2005, 2006 TADA AB - Taby Sweden
* Distributed under the terms shown in the file COPYRIGHT
* found in the root folder of this project or at
* http://eng.tada.se/osprojects/COPYRIGHT.html
*
* @author <NAME>
*/
#include <postgres.h>
#include <executor/spi.h>
#include "pljava/PgObject_priv... | 1,852 |
5,964 | // 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.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8PushEventInit.h"
#include "binding... | 1,255 |
345 | <reponame>xiamoweinuan/UITextView-WZB
//
// DemoViewController.h
// WZBTextView-demo
//
// Created by 王振标 on 2017/8/27.
// Copyright © 2017年 WZB. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface DemoViewController : UIViewController
- (instancetype)initWithTitle:(NSString *)title type:(NSUInteger)type;... | 134 |
1,144 | <filename>backend/de.metas.async/src/main/java/de/metas/async/spi/NullWorkpackagePrio.java<gh_stars>1000+
package de.metas.async.spi;
/*
* #%L
* de.metas.async
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... | 408 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Saint-Germain-sur-Meuse","circ":"1ère circonscription","dpt":"Meuse","inscrits":192,"abs":111,"votants":81,"blancs":6,"nuls":1,"exp":74,"res":[{"nuance":"UDI","nom":"<NAME>","voix":53},{"nuance":"REM","nom":"<NAME>","voix":21}]} | 114 |
3,156 | import re
from test.integration.base import DBTIntegrationTest, use_profile
INDEX_DEFINITION_PATTERN = re.compile(r'using\s+(\w+)\s+\((.+)\)\Z')
class TestPostgresIndex(DBTIntegrationTest):
@property
def schema(self):
return "postgres_index_065"
@property
def models(self):
return "m... | 2,366 |
14,668 | <filename>chrome/browser/federated_learning/floc_event_logger.h
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_FEDERATED_LEARNING_FLOC_EVENT_LOGGER_H_
#define CHROME_BROWSER_FEDE... | 903 |
2,338 | <filename>clang/test/Driver/darwin-ld-platform-version-watchos.c
// RUN: touch %t.o
// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld=lld.darwinold \
// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=0 \
// RUN: -### %t.o 2>&1 \
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
// RUN: %clang -t... | 624 |
852 | <filename>Geometry/CaloGeometry/src/CaloGeometry.cc
#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
#include "Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h"
#include "Geometry/CaloGeometry/interface/CaloGeometry.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
const std::vector<D... | 1,396 |
589 | <filename>inspectit.ui.rcp/src/main/java/rocks/inspectit/ui/rcp/ci/listener/impl/InstrumentationUpdateListener.java
package rocks.inspectit.ui.rcp.ci.listener.impl;
import rocks.inspectit.shared.cs.ci.AgentMappings;
import rocks.inspectit.shared.cs.ci.Environment;
import rocks.inspectit.shared.cs.ci.Profile;
import ro... | 867 |
323 | // 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
//
// Unless required by applicable... | 2,174 |
5,169 | {
"name": "JACalendar",
"version": "0.1.0",
"summary": "JACalendar is a simple `Calendar` component library, this will be used to choose the date from the calender.",
"description": "JACalendar is a simple `Calendar` component library, this will be used to choose the date from the calender. This can be customiz... | 377 |
3,227 | <gh_stars>1000+
/*!
\ingroup PkgTriangulationsConcepts
\cgalConcept
A `TriangulationDSFace` describes a face `f` with dimension `k`
(a `k`-face) in a triangulation.
It gives access to a handle to a full cell `c` containing the face
`f` in its boundary, as well as the indices of the vertices of `f` in
`c`. It must hol... | 1,093 |
404 | <gh_stars>100-1000
from io import BytesIO
from telnetlib import Telnet
import pytest
from scrapli.exceptions import ScrapliConnectionError, ScrapliConnectionNotOpened
from scrapli.transport.plugins.telnet.transport import ScrapliTelnet
def test_scrapli_telnet_type():
# connection error will get raised because 2... | 878 |
841 | /*
* Copyright (c) 2016 <NAME>
* Copyright (c) 2013-2016 the Civetweb developers
* Copyright (c) 2004-2013 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction... | 819 |
866 | <gh_stars>100-1000
{"format_version":"0.1","terraform_version":"0.12.24","planned_values":{"root_module":{"child_modules":[{"resources":[{"address":"module.test.aws_iam_role.task","mode":"managed","type":"aws_iam_role","name":"task","provider_name":"aws","schema_version":0,"values":{"assume_role_policy":"{\n \"Version... | 1,499 |
634 | <reponame>halotroop2288/consulo
/*
* Copyright 2013-2017 consulo.io
*
* 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... | 445 |
529 | package com.esotericsoftware.yamlbeans.issues.issue52;
import com.esotericsoftware.yamlbeans.YamlReader;
import com.esotericsoftware.yamlbeans.YamlWriter;
import junit.framework.TestCase;
import java.io.IOException;
import java.io.StringWriter;
public class YamlEnumTest extends TestCase {
public static class TestO... | 788 |
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 CHROME_BROWSER_UI_WEBUI_CHROMEOS_ASSISTANT_OPTIN_ASSISTANT_OPTIN_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_ASSISTANT_OPTIN_ASSISTANT_OPT... | 423 |
952 | package com.rudecrab.loginsession.context;
import com.rudecrab.loginsession.entity.User;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRequest;
/**
* @author RudeCrab
*/
public final... | 291 |
7,073 | class SameNamesAsInBuiltIn:
def noop(self):
"""Using this keyword without libname causes an error""" | 42 |
471 | package net.greghaines.jesque;
import static net.greghaines.jesque.utils.JesqueUtils.entry;
import static net.greghaines.jesque.utils.JesqueUtils.map;
import java.util.Arrays;
import java.util.concurrent.atomic.AtomicBoolean;
import net.greghaines.jesque.worker.MapBasedJobFactory;
import net.greghaines.jesque.worker... | 1,154 |
348 | {"nom":"Massangis","circ":"2ème circonscription","dpt":"Yonne","inscrits":311,"abs":152,"votants":159,"blancs":12,"nuls":8,"exp":139,"res":[{"nuance":"UDI","nom":"M. <NAME>","voix":85},{"nuance":"REM","nom":"<NAME>","voix":54}]} | 91 |
778 | /*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#if defined(__clang__)
#define NO_SANITIZE __attribute__((no_sanitize("address", "undefined")))
#elif defined(__GNUC__)
#define NO_SANITIZE __attribute__((no_sanitize_address))
#else
#define NO_SANITIZE
#endif
class... | 226 |
351 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This script is use to split a bed file into
smaller beds following the convention that I introduced
in which a # indicates a group in the bed file
Each bed group is saved under a different name
corresponding to the name of the group
Useful to split the results of hea... | 297 |
778 | //--------------------------------------------------------------------------------------------------------------------//
// //
// Tuplex: Blazing Fast Python Data Scien... | 37,184 |
647 | <reponame>gilbertguoze/trick<filename>trick_source/trick_utils/math/src/dLU_solver.c
/*
PURPOSE: (Solve a linear set of equations: [A]x = b ; by first decomposing the SYMMETRIC, POSITIVE DEFINITE [A]
matrix into a Lower Triangular, [L], form such that:
[A] = [L][L_transpose] .
The then backsubstitute to s... | 1,827 |
28,056 | package com.alibaba.json.bvt.issue_3300;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import junit.framework.TestCase;
public class IssueForJSONFieldMatch extends TestCase {
public void test_for_issue() throws Exception {
assertEquals(123
, JSON.parse... | 377 |
446 | <reponame>justseven/plumdo-work
package com.plumdo.form;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* 表单接口
*
* @author wengwh
* @date 2018年8月27日
*/
@SpringBootApplication(scanBasePackages = "com.plumdo")
public class FormApplication... | 158 |
2,659 | <reponame>jasleon/OpenMLDB<filename>src/log/crc32c.cc
/*
* Copyright 2021 4Paradigm
*
* 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
*
... | 9,886 |
488 | // how come no FullExpression ?
struct A{};
void f() {
A const &a = A();
}
| 30 |
3,282 | <filename>app/src/main/java/org/chromium/chrome/browser/preferences/autofill/AutofillProfileBridge.java<gh_stars>1000+
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser... | 2,942 |
2,151 | // Copyright (c) 2010 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 "device/geolocation/wifi_data_provider_common_win.h"
#include <assert.h>
#include <stdint.h>
#include "base/strings/utf_string_conversions.... | 868 |
335 | <filename>apps/material/serializers.py<gh_stars>100-1000
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2017/12/7 上午11:49
# @Author : LennonChin
# @Email : <EMAIL>
# @File : serializers.py
# @Software: PyCharm
from rest_framework import serializers
from material.models import MaterialCategory, Materia... | 1,595 |
2,692 | <filename>src/api-service/__app__/onefuzzlib/job_templates/render.py
#!/usr/bin/env python
#
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import json
from typing import Dict, List
from jsonpatch import apply_patch
from memoization import cached
from onefuzztypes.enums import ContainerType,... | 1,688 |
336 | <gh_stars>100-1000
/* синхронизация, T13.738-T14.582 $DVS:time$ */
#ifndef XDAG_SYNC_H
#define XDAG_SYNC_H
#include "block.h"
#include "transport.h"
#ifdef __cplusplus
extern "C" {
#endif
extern int g_xdag_sync_on;
/* checks a block and includes it in the database with synchronization, ruturs non-zero value in ca... | 251 |
854 | <filename>Python3/1208.py
__________________________________________________________________________________________________
sample 88 ms submission
class Solution:
def equalSubstring(self, s: str, t: str, maxCost: int) -> int:
costs = [abs(ord(S) - ord(T)) for S, T in zip(s, t)]
ans = 0
tal... | 735 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "logger.h"
//
// Ker... | 6,044 |
7,880 | <reponame>jcoehoorn/basic-computer-games
public class BombardmentGame {
public static void main(String[] args) {
Bombardment bombardment = new Bombardment();
bombardment.play();
}
}
| 75 |
2,042 | <reponame>adrianopaladini/Hyperion-iOS
//
// WTASlowAnimatonsViewController.h
// HyperioniOS_Example
//
// Created by <NAME> on 11/27/17.
// Copyright © 2017 chrsmys. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface WTASlowAnimatonsViewController : UIViewController
@end
| 106 |
354 | /*
* Copyright (C) 2017 <NAME> Software & Consulting (dlsc.com)
*
* 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
*
* Unles... | 1,006 |
1,963 | /*
*******************************************************************************
* Copyright (c) 2018-2021, STMicroelectronics
* All rights reserved.
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You... | 1,905 |
755 | /**
* @project: Overload
* @author: <NAME>.
* @licence: MIT
*/
#include <algorithm>
#include "OvCore/ECS/Actor.h"
#include "OvCore/ECS/Components/CPhysicalBox.h"
#include "OvCore/ECS/Components/CPhysicalSphere.h"
#include "OvCore/ECS/Components/CPhysicalCapsule.h"
#include "OvCore/ECS/Components/CCamera.h"
#include ... | 6,145 |
2,151 | <filename>chrome/browser/media/webrtc/webrtc_text_log_handler.cc
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/media/webrtc/webrtc_text_log_handler.h"
#include <map>
#include... | 6,174 |
4,163 | <filename>proselint/checks/spelling/able_ible.py<gh_stars>1000+
"""-able vs. -ible."""
from proselint.tools import memoize, preferred_forms_check
@memoize
def check(text):
"""-able vs. -ible."""
err = "spelling.able_ible"
msg = "-able vs. -ible. '{}' is the preferred spelling."
preferences = [
... | 3,799 |
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 "NodeDe... | 506 |
486 | <gh_stars>100-1000
/*
* ARX: Powerful Data Anonymization
* Copyright 2012 - 2021 <NAME> and contributors
*
* 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/li... | 2,079 |
777 | <reponame>google-ar/chromium
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_WEB_PUBLIC_TEST_RESPONSE_PROVIDERS_FILE_BASED_RESPONSE_PROVIDER_IMPL_H_
#define IOS_WEB_PUBLIC_TEST_RESPONSE_PROV... | 437 |
791 | #include "scene.h"
#include "utils.h"
#include <core/system/subsystem.h>
std::vector<runtime::entity> scene::instantiate(mode mod)
{
if(mod == mode::standard)
{
auto& ecs = core::get_subsystem<runtime::entity_component_system>();
ecs.dispose();
}
std::vector<runtime::entity> out_vec;
if(!data)
return out_... | 157 |
360 | <gh_stars>100-1000
/* -------------------------------------------------------------------------
*
* knl_uam.h
* header file for postgres multi-version btree access method implementation.
*
* Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd.
* Portions Copyright (c) 1996-2012, PostgreSQL Global Devel... | 252 |
14,570 | <gh_stars>1000+
package com.prokarma.pkmst.controller;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.context.embedded.LocalServerPort;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.web.client.TestRestTemplate;
import org.sprin... | 326 |
805 | <reponame>shuipi100/kaldi
// chainbin/nnet3-chain-normalize-egs.cc
// Copyright 2015 Johns Hopkins University (author: <NAME>)
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complianc... | 1,558 |
3,239 | /*
* Copyright (c) 2013 Apple Computer, Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this fil... | 4,111 |
721 | package crazypants.enderio.util;
import java.lang.ref.WeakReference;
import javax.annotation.Nonnull;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.util.math.BlockPos;
import net.... | 1,205 |
2,151 | <reponame>zipated/src<filename>components/cronet/tools/hide_symbols.py
#!/usr/bin/env python
# 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.
# Create a static library which exposes only symbols which are ... | 1,525 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.