max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
852
#ifndef MuonDTDetLayerGeometryBuilder_h #define MuonDTDetLayerGeometryBuilder_h /** \class MuonDTDetLayerGeometryBuilder * * Build the DT DetLayers. * * \author <NAME> - CERN */ #include <Geometry/DTGeometry/interface/DTGeometry.h> #include <vector> class DetLayer; class MuonDTDetLayerGeometryBuilder { publi...
185
348
{"nom":"Arcangues","circ":"6ème circonscription","dpt":"Pyrénées-Atlantiques","inscrits":2770,"abs":1319,"votants":1451,"blancs":19,"nuls":3,"exp":1429,"res":[{"nuance":"MDM","nom":"<NAME>","voix":598},{"nuance":"LR","nom":"Mme <NAME>","voix":315},{"nuance":"REG","nom":"<NAME>","voix":152},{"nuance":"FI","nom":"Mme <NA...
314
678
<filename>iOSOpenDev/frameworks/Conference.framework/Headers/CNFInternalAccountViewController.h /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/Conference.framework/Conference */ #import <Conference/XXUnknownSuperclass.h> @class FTRegConnectionHandler, IMAccount;...
696
679
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
4,488
1,851
<filename>android/viro_bridge/src/main/java/com/viromedia/bridge/module/SceneModule.java // Copyright © 2017 <NAME>. All rights reserved. // // 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 Soft...
2,990
3,128
#include "TestRuleOnCode.h" #include "rules/empty/EmptyWhileStatementRule.cpp" TEST(EmptyWhileStatementRuleTest, PropertyTest) { EmptyWhileStatementRule rule; EXPECT_EQ(2, rule.priority()); EXPECT_EQ("empty while statement", rule.name()); EXPECT_EQ("empty", rule.category()); } TEST(EmptyWhileStatemen...
287
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "compression.h" #include <vespa/searchlib/fef/termfieldmatchdata.h> #include <vespa/searchlib/fef/termfieldmatchdataarray.h> #include <vespa/vespalib/data/fileheader.h> #include <vespa/vespalib/data/databu...
6,704
1,351
/** @file Trie implementation for 8-bit string keys. @section license License 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 l...
2,354
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,858
5,169
<gh_stars>1000+ { "name": "RxFirestoreExecutor", "version": "0.1.6", "summary": "RxFirestoreExecutor is a simplified way to work Firebase/Firestore Queries.", "description": "RxFirestoreExecutor uses \"MOYA-like\" structure to simplify query workflow. It's also handle response from Firestore via RxSwift.\nIt's ...
465
348
{"nom":"Damrémont","circ":"1ère circonscription","dpt":"Haute-Marne","inscrits":172,"abs":115,"votants":57,"blancs":10,"nuls":2,"exp":45,"res":[{"nuance":"REM","nom":"<NAME>","voix":23},{"nuance":"LR","nom":"<NAME>","voix":22}]}
90
778
<reponame>lkusch/Kratos // | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: <NAME> (https://github.co...
982
3,066
<reponame>olanser/uteg /*************************************************************************** copyright : (C) 2002 - 2008 by <NAME> email : <EMAIL> ***************************************************************************/ /****************************************************...
1,000
1,336
<reponame>ltp217/servicecomb-java-chassis /* * 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...
381
612
#!/usr/bin/env python3 from fuzzconfig import * import numpy as np import os device_class = os.getenv("ICEDEVICE") working_dir = "work_%s_binop" % (device_class, ) os.system("rm -rf " + working_dir) os.mkdir(working_dir) for idx in range(num): with open(working_dir + "/binop_%02d.v" % idx, "w") as f: p...
368
6,139
package com.hannesdorfmann.mosby3.sample.mail.model.mail; import java.util.Comparator; /** * A Comparator for sorting mails in reverse order. Useful for binary search. * * @author <NAME> */ public class MailComparator implements Comparator<Mail> { public static final MailComparator INSTANCE = new MailCompara...
149
469
# -*- coding: utf-8 -*- import lshash try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() with open('CHANGES.rst') as f: changes = f.read() required = ['numpy'] se...
391
778
/* * Copyright (C) 2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "level_zero/core/test/unit_tests/mock.h" #include "level_zero/tools/test/unit_tests/sources/sysman/windows/mock_kmd_sys_manager.h" #include "sysman/temperature/temperature_imp.h" namespace L0 { namespace ult { ...
1,382
897
<filename>Python/math/Sine_Function.py #Sine Algorithm #Written by XZANATOL """ Algorithm that explains how to calculate the Sine of an angle """ import math pi = 3.141592653589793238462643383279502884197169399375105 #Constant def conv_to_rad(angle): """Converts degree angles to radians""" return angle/180 *...
1,215
3,239
/* * nghttp2 - HTTP/2 C Library * * Copyright (c) 2015 <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 limitation the rights to use, ...
2,785
1,883
<gh_stars>1000+ #include <openbr/plugins/openbr_internal.h> namespace br { /*! * \ingroup transforms * \brief Scales a floating point metadata item by index * \br_property int index Index of rect to normalize points with. If negative, will normalize the points to the width of the matrix. Default is -1. * \author ...
1,110
678
<filename>iOSOpenDev/frameworks/IMAVCore.framework/Headers/IMAVConferenceInterface.h /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/IMAVCore.framework/IMAVCore */ #import <IMAVCore/IMAVCore-Structs.h> #import <IMAVCore/IMAVInterface.h> #import <IMAVCore/AVConfere...
2,817
348
{"nom":"Saint-Nicolas-la-Chapelle","dpt":"Aube","inscrits":78,"abs":16,"votants":62,"blancs":0,"nuls":4,"exp":58,"res":[{"panneau":"2","voix":31},{"panneau":"1","voix":27}]}
74
455
/* * SPDX-License-Identifier: Apache-2.0 * * Copyright 2020-2022 The JReleaser authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENS...
696
452
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2021 // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // Version: 4.0.2019.08.13 #pragma once #include <Graphics/Buffer.h> #include <...
2,211
317
/* * Copyright 2013 NGDATA nv * * 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...
1,116
1,171
<filename>apps/map-chart/package-lock.json<gh_stars>1000+ { "name": "@toast-ui/map-chart", "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@toast-ui/map-chart", "version": "1.0.0", "license": "MIT", "dependencies": { "d3-geo": "^2.0....
2,285
995
<gh_stars>100-1000 /* * Copyright (c) 2018-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <fizz/extensions/delegatedcred/DelegatedCredentialUtils.h> #include <fizz/t...
2,442
2,494
<reponame>ktrzeciaknubisa/jxcore-binary-packaging<gh_stars>1000+ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* * pkix_pl_certpolicyqualifier.h * * PolicyQu...
557
348
<reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/037/03703078.json {"nom":"Ciran","circ":"3ème circonscription","dpt":"Indre-et-Loire","inscrits":290,"abs":164,"votants":126,"blancs":15,"nuls":6,"exp":105,"res":[{"nuance":"UDI","nom":"<NAME>","voix":61},{"nuance":"SOC","nom":"<NAME>","voix":44}]}
135
5,169
<gh_stars>1000+ { "name": "FuYTKNetwork", "version": "0.1.0", "summary": "对YTKNetwork进行了封装,方便新工程快速继承网络模块", "description": "对YTKNetwork进行了封装,可以使用Http/FuHttpStatement来声明所有接口,以及对应的model,还有网络配置,baseUrl及https证书,使用Http/FuHttpApi来声明所有请求方法,使用HttpTools/FuBaseApi来配置请求头,缓存时间,以及逻辑上的方法解析,如果在声明时没有对应的Model,会提示需要添加的Model内容,但目前...
657
515
/* * Copyright 2018-present HiveMQ and the HiveMQ Community * * 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 ...
2,062
301
package qouteall.imm_ptl.core.mixin.common; import com.mojang.authlib.GameProfileRepository; import com.mojang.authlib.minecraft.MinecraftSessionService; import com.mojang.datafixers.DataFixer; import net.minecraft.resource.ResourcePackManager; import net.minecraft.resource.ServerResourceManager; import net.minecraft....
578
13,006
<filename>nd4j/nd4j-common/src/main/java/org/nd4j/common/primitives/Optional.java /******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Versi...
1,165
5,316
<gh_stars>1000+ package com.airbnb.aerosolve.core.transforms; import com.airbnb.aerosolve.core.FeatureVector; import com.typesafe.config.Config; import com.typesafe.config.ConfigFactory; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.*; import static org.junit.Assert...
937
2,137
package org.hibernate.tool.internal.dialect; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Locale; import java.uti...
2,415
2,151
<reponame>rhencke/engine<filename>src/ios_tools/chrome/browser/ui/fancy_ui/primary_action_button.h // Copyright 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. #ifndef IOS_CHROME_BROWSER_UI_FANCY_UI_PRIMARY_ACTION_B...
233
1,350
<filename>sdk/eventgrid/azure-messaging-eventgrid-cloudnative-cloudevents/src/samples/java/com/azure/messaging/eventgrid/cloudnative/cloudevents/samples/PublishNativeCloudEventToTopic.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.messaging.eventg...
877
335
{ "word": "Quaich", "definitions": [ "A shallow drinking cup, typically made of wood and having two handles.", "A trophy of a design similar to a quaich." ], "parts-of-speech": "Noun" }
88
776
package testapp.endpoint.issue.enhancement; import org.junit.Test; import testapp.endpoint.EndpointTester; public class GHIssue152 extends EndpointTester { @Test public void testGlobalOnClass() throws Exception { url("/gh/152").get(); bodyEq("intercepted"); } @Test public void te...
171
341
#ifndef FLAT_MAP_H_ #define FLAT_MAP_H_ #include <algorithm> #include <cstddef> #include <functional> #include <stdexcept> #include <type_traits> #include <utility> #include <vector> template <class Key, class T, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<const Key, T>>> class flat_map...
5,696
3,102
<filename>test/AST/Interp/cond.cpp // RUN: %clang_cc1 -std=c++17 -fsyntax-only -fforce-experimental-new-constant-interpreter %s -verify // RUN: %clang_cc1 -std=c++17 -fsyntax-only %s -verify // expected-no-diagnostics constexpr int cond_then_else(int a, int b) { if (a < b) { return b - a; } else { return a...
146
1,144
/* * This header provides constants clk index STMicroelectronics * STiH410 SoC. */ #ifndef _DT_BINDINGS_CLK_STIH410 #define _DT_BINDINGS_CLK_STIH410 #include "stih407-clks.h" /* STiH410 introduces new clock outputs compared to STiH407 */ /* CLOCKGEN C0 */ #define CLK_TX_ICN_HADES 32 #define CLK_RX_ICN_HADES 33 #d...
251
435
<reponame>glasnt/data { "copyright_text": null, "description": "Pattern matching is a great and proven tool for programmers. However, can we also assimilate and integrate it into Python? This talk tries to give an answer and discusses the rationale and ideas behind the recent \"pattern matching\" PEPs.\n\nProcessin...
603
458
package cppclassanalyzer.data.manager.tables; import cppclassanalyzer.database.schema.ArchivedClassTypeInfoSchema; import cppclassanalyzer.database.schema.ArchivedGnuVtableSchema; import cppclassanalyzer.database.tables.ArchivedClassTypeInfoDatabaseTable; import cppclassanalyzer.database.tables.ArchivedGnuVtableDataba...
197
11,017
import unittest import numpy as np import prml.nn as nn class TestSigmoidCrossEntropy(unittest.TestCase): def test_sigmoid_cross_entropy(self): npx = np.random.randn(10, 3) npy = np.tanh(npx * 0.5) * 0.5 + 0.5 npt = np.random.uniform(0, 1, (10, 3)) x = nn.asarray(npx) t = ...
373
1,588
<gh_stars>1000+ package xyz.erupt.generator.model; import lombok.Getter; import lombok.Setter; import lombok.SneakyThrows; import org.apache.commons.lang3.StringUtils; import xyz.erupt.annotation.Erupt; import xyz.erupt.annotation.EruptField; import xyz.erupt.annotation.EruptI18n; import xyz.erupt.annotation.fun.Choic...
1,885
782
<gh_stars>100-1000 /* * Copyright (c) 2021, <NAME>. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * 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...
1,954
777
<gh_stars>100-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 "core/css/properties/CSSPropertyAPICursor.h" #include "core/css/CSSCursorImageValue.h" #include "core/css/CSSValueList.h" #in...
874
892
{ "schema_version": "1.2.0", "id": "GHSA-g7r8-gqfq-p62x", "modified": "2022-05-13T01:26:08Z", "published": "2022-05-13T01:26:08Z", "aliases": [ "CVE-2011-1186" ], "details": "Google Chrome before 10.0.648.127 on Linux does not properly handle parallel execution of calls to the print method, which migh...
640
439
<gh_stars>100-1000 package com.haskforce.features.structureview; import com.haskforce.psi.HaskellFile; import com.haskforce.utils.HaskellUtil; import com.intellij.ide.structureView.StructureViewTreeElement; import com.intellij.ide.util.treeView.smartTree.SortableTreeElement; import com.intellij.ide.util.treeView.smart...
1,094
1,091
/* * Copyright 2021-present Open Networking Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
1,450
692
<reponame>an1310/amazon-kinesis-video-streams-webrtc-sdk-c /** * Kinesis Video Producer Callbacks Provider */ #define LOG_CLASS "IceAgent" #include "../Include_i.h" // https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/candidate // https://tools.ietf.org/html/rfc5245#section-15.1 typedef enum { SDP...
49,986
474
/* * Copyright 2015 Samsung Electronics 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 or ...
480
482
<reponame>jmrapp1/TerraLegion package com.jmrapp.terralegion.game.world.entity.impl; import com.jmrapp.terralegion.engine.views.drawables.ResourceManager; import com.jmrapp.terralegion.engine.views.drawables.TexturedDrawable; import com.jmrapp.terralegion.engine.world.entity.BodyType; import com.jmrapp.terralegion.gam...
243
1,046
from pathlib import Path from unittest import mock import pytest import aiosql from aiosql.exceptions import SQLParseException from aiosql.queries import Queries from aiosql.query_loader import QueryLoader @pytest.fixture def sql_dir(): return Path(__file__).parent / "blogdb/sql" @pytest.fixture def sql(sql_d...
616
357
<gh_stars>100-1000 /* * Copyright © 2018 VMware, 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 requi...
403
431
package com.webcohesion.enunciate.samples.docs; public class OperationB extends Operation { public boolean b; }
34
1,168
/** * The MIT License * Copyright © 2010 JmxTrans team * * 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 rights * to use, copy, mo...
1,109
5,169
{ "name": "BSLimitFormTextFild", "version": "1.0.0", "license": "MIT", "summary": "UITextfield输入框限制的功能封装", "homepage": "https://github.com/LvBisheng/BSLimitFormTextFild", "source": { "git": "https://github.com/LvBisheng/BSLimitFormTextFild.git", "tag": "1.0.0" }, "source_files": "BSLimitFormText...
268
335
{ "word": "Dementia", "definitions": [ "A chronic or persistent disorder of the mental processes caused by brain disease or injury and marked by memory disorders, personality changes, and impaired reasoning." ], "parts-of-speech": "Noun" }
81
772
<reponame>Hsy-Intel/fedlearner # Copyright 2021 The FedLearner 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...
2,562
347
<gh_stars>100-1000 package org.ovirt.engine.core.common; import java.util.HashMap; import java.util.Map; public enum VdcObjectType { Unknown(-1, "Unknown"), // For internal use only. Used to mark the host used for execution of a Step. EXECUTION_HOST(-100, "Execution Host"), // bottom is an object whic...
861
2,151
// 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. // // A toy client, which connects to a specified port and sends QUIC // request to that endpoint. #ifndef NET_THIRD_PARTY_QUIC_TOOLS_QUIC_CLIENT_H_ #...
1,191
578
<gh_stars>100-1000 /* * Copyright (c) 2003-2021 <NAME> <<EMAIL>>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ #include "PWSLog....
649
322
import abc from dataclasses import dataclass from typing import List @dataclass class DvcAdd: files_added_to_dvc: List[str] files_skipped: List[str] class InnerService(abc.ABC): repo_path: str @abc.abstractmethod def is_initialized(self) -> bool: pass @abc.abstractmethod def in...
143
1,444
package org.wiztools.restclient.server; import java.util.logging.Logger; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.servlet.ServletContextHandler; import org.eclipse.jetty.servlet.ServletHolder; /** * * @author subwiz */ public class TraceServer { private static final Logger LOG = Logger...
1,090
309
<reponame>ishine/deepx_core<filename>include/deepx_core/common/lru_cache.h // Copyright 2021 the deepx authors. // Author: <NAME> (<EMAIL>) // #pragma once #include <cstddef> #include <functional> #include <memory> #include <utility> #include <vector> namespace deepx_core { /*****************************************...
4,025
344
<reponame>armin-reichert/FXyz<gh_stars>100-1000 /** * Capsule.java * * Copyright (c) 2013-2016, F(X)yz * 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 so...
1,281
1,755
<reponame>txwhhny/vtk /*========================================================================= Program: Visualization Toolkit 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 WAR...
1,013
456
package com.swingfrog.summer.task; import java.util.Date; import org.quartz.CronScheduleBuilder; import org.quartz.Job; import org.quartz.JobBuilder; import org.quartz.JobDetail; import org.quartz.SimpleScheduleBuilder; import org.quartz.Trigger; import org.quartz.TriggerBuilder; public class TaskUtil { public sta...
1,448
1,355
// Copyright (c) 2018 <NAME> // // I am making my contributions/submissions to this project solely in my // personal capacity and am not conveying any rights to any intellectual // property of any third parties. #ifndef INCLUDE_JET_DETAIL_BOUNDING_BOX_INL_H_ #define INCLUDE_JET_DETAIL_BOUNDING_BOX_INL_H_ #include <je...
1,465
892
{ "schema_version": "1.2.0", "id": "GHSA-m89p-p9x7-pg34", "modified": "2022-05-17T00:01:22Z", "published": "2022-05-10T00:00:18Z", "aliases": [ "CVE-2022-1338" ], "details": "The Easily Generate Rest API Url WordPress plugin through 1.0.0 does not escape some of its settings, allowing high privilege u...
456
687
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from .build import D2GO_DATA_MAPPER_REGISTRY from .d2go_dataset_mapper_impl import ( D2GoDatasetMapper, PREFETCHED_FILE_NAME, PREFETCHED_SEM_SEG_FILE_NAME, read_image_with_prefetch, read_sem_seg_file_with_...
303
1,383
<filename>src/chrono_vehicle/cosim/mbs/ChVehicleCosimRigNode.h // ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2020 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license ...
1,245
2,338
<reponame>mkinsner/llvm //===- KnownBitsTest.cpp -------------------------------------------===// // // 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 // //===----------...
33,339
318
/* * Copyright Beijing 58 Information Technology Co.,Ltd. * * 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 ...
579
801
<reponame>FrostByte266/neupy __all__ = ( 'LayerConnectionError', 'InvalidConnection', 'NotTrained', 'StopTraining', 'WeightInitializationError', 'PropagationError', ) class LayerConnectionError(Exception): """ Error class that triggers in case of connection issues within layers. """ class In...
263
5,169
{ "name": "SquareRegisterSDK", "version": "1.2", "summary": "SDK for clients using Register API on iOS", "homepage": "https://github.com/square/SquareRegisterSDK-iOS/", "license": { "type": "Apache License, Version 2.0", "text": "© 2016 Square, Inc." }, "authors": "Square", "source": { "git"...
1,261
329
package kr.dogfoot.hwplib.tool.paragraphadder.control; import kr.dogfoot.hwplib.object.bodytext.control.gso.*; import kr.dogfoot.hwplib.object.bodytext.control.gso.shapecomponent.ShapeComponent; import kr.dogfoot.hwplib.object.bodytext.control.gso.shapecomponent.lineinfo.LineInfoProperty; import kr.dogfoot.hwplib.obje...
6,165
634
<reponame>halotroop2288/consulo<filename>modules/boot/util-nodep/src/main/java/consulo/util/nodep/LoggerRt.java /* * Copyright 2000-2016 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...
1,119
854
__________________________________________________________________________________________________ sample 40 ms submission import functools class Solution: def mergeStones(self, stones, K): n = len(stones) if (n - 1) % (K - 1) != 0: # each merge removes K - 1 and must leave 1 remaining ...
1,428
711
<gh_stars>100-1000 /* * Copyright 2014 JBoss 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...
2,737
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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_SHAPING_SHAPE_RESULT_BLOBERIZER_H_ #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_SHAPING_SHAPE_RESUL...
2,929
429
<filename>event/src/test/java/io/airlift/event/client/TestingUtils.java<gh_stars>100-1000 /* * Copyright 2010 Proofpoint, 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...
724
582
/** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.editor.ui.factory.elements; import org.eclipse.draw2d.geometry.Dimension; import org.eclipse.gef.EditPart; import com.arc...
315
877
<filename>framework/tests/all-systems/Issue1526.java<gh_stars>100-1000 // Tet case for Issue 1526. // https://github.com/typetools/checker-framework/issues/1526 public class Issue1526 { public <T> T get(T t) { return this.get(t); } public <T> T method(T[] t) { return this.method(t); } public <T> T m...
161
2,151
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/content_settings/host_content_settings_map_factory.h" #include <utility> #include "base/feature_list.h" #include "chrome/browse...
1,943
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Unconsciousness", "definitions": [ "The state of being unconscious.", "The state of being uninformed or unaware." ], "parts-of-speech": "Noun" }
94
457
#!/usr/bin/env python3 # coding:utf8 # 机械臂运动学:给定相应的坐标(X,Y,Z),机械臂运行到相应的位置 # from math import * import time targetX = 0 targetY = 0 targetZ = 4000 lastX = 0 lastY = 0 lastZ = 4000 l0 = 535.023363976 # 底盘到第二个舵机中心轴的距离9.6cm l1 = 405.587228596 # 第二个舵机到第三 个舵机的距离10.5cm l2 = 1092.62299079 # 第三个舵机到第四 个舵...
2,143
603
<filename>examples/elevator/elevator.cpp<gh_stars>100-1000 #include <tinyfsm.hpp> #include "elevator.hpp" #include "fsmlist.hpp" #include <iostream> class Idle; // forward declaration // ---------------------------------------------------------------------------- // Transition functions // static void CallMainten...
787
985
/* -*- mode: C++; c-basic-offset: 4; tab-width: 4 -*- * * Copyright (c) 2008 Apple Inc. All rights reserved. * * @APPLE_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 'Lic...
1,786
534
package mekanism.common.integration.crafttweaker.ingredient; import com.blamejared.crafttweaker.api.annotations.ZenRegister; import com.blamejared.crafttweaker.impl.tag.MCTag; import com.blamejared.crafttweaker.impl.tag.MCTagWithAmount; import com.blamejared.crafttweaker_annotations.annotations.NativeTypeRegistration;...
1,294
543
<reponame>addstone/riiablo<gh_stars>100-1000 package com.riiablo.engine.client.debug; import com.artemis.ComponentMapper; import com.artemis.annotations.All; import com.artemis.annotations.Wire; import com.artemis.systems.IteratingSystem; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.glutil...
1,302
777
<reponame>TinkerEdgeR-Android/external_v8 // Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "traceimpl_overloaded_error.h" namespace blink { void ExternBase::Trace(Visitor* visitor) { TraceIm...
304
190,993
/* 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...
878
435
<reponame>amaajemyfren/data { "copyright_text": "Standard YouTube License", "description": "Test-driven data analysis fuses and builds upon the ideas of test-driven development and reproducible research to support higher quality data analysis. This talk will extend the foundation parts of TDDA with extensions inclu...
1,071
1,165
import csv import logging import os import numpy as np import tensorflow as tf import code_search.nmslib.cli.arguments as arguments import code_search.nmslib.search_engine as search_engine def create_search_index(argv=None): """Create NMSLib index and a reverse lookup CSV file. This routine reads a list CSV dat...
954
953
<gh_stars>100-1000 /* * This file is part of Dependency-Track. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
1,035
1,177
#pragma once #define GRID3D_UNKNOWN_VALUE -321 class Grid3D { public: Grid3D(); Grid3D(int xRes, int yRes, int zRes, float maxDist); Grid3D(const Grid3D &other); Grid3D(const std::string &filename); ~Grid3D(); int XRes() const; int YRes() const; int ZRes() const; int NElements() const; float MaxDist() cons...
441