max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
310
<filename>Frameworks/MetalPetal/MTIColorMatrix.h // // MTIColorMatrix.h // MetalPetal // // Created by <NAME> on 25/10/2017. // #import <Foundation/Foundation.h> #import "MTIShaderLib.h" FOUNDATION_EXPORT const MTIColorMatrix MTIColorMatrixIdentity NS_SWIFT_NAME(MTIColorMatrix.identity); FOUNDATION_EXPORT const MT...
518
694
// 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...
400
32,544
<filename>patterns/design-patterns-architectural/src/main/java/com/baeldung/mvc_mvp/mvc/ProductView.java package com.baeldung.mvc_mvp.mvc; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class ProductView { private static Logger log = LoggerFactory.getLogger(ProductView.class); public voi...
221
1,704
<gh_stars>1000+ from torchmeta.datasets.cifar100.cifar_fs import CIFARFS from torchmeta.datasets.cifar100.fc100 import FC100 __all__ = ['CIFARFS', 'FC100']
67
477
import requests # retrieving relevant terms using https://www.wordsapi.com/ API_URL = "https://wordsapiv1.p.rapidapi.com/words/" def get_relevant_words(search_term, api_key, depth=1): relevant_arr = [search_term] to_be_searched = [search_term] while depth > 0 and to_be_searched: next_to_be_searc...
739
412
<reponame>dave1667/graphd /* 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 applicab...
17,848
3,263
// the .m for this file is generated in a 'pre-action' in the Artsy build scheme // which executes the file <projectDir>/scripts/set_packager_host.sh #import <Foundation/Foundation.h> @interface ARReactPackagerHost : NSObject + (NSString*)hostname; @end
83
2,151
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_OBJECT_HOST_H_ #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REGISTRATION_OBJEC...
1,820
637
/** * Solaris specific features of Hudson. */ package hudson.os.solaris;
24
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "errorcode.h" namespace config { vespalib::string ErrorCode::getName(int error) { switch(error) { case UNKNOWN_CONFIG: return "UNKNOWN_CONFIG"; case UNKNOWN_DEFINITION: retu...
738
2,151
<filename>services/identity/public/cpp/identity_manager.h // 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 SERVICES_IDENTITY_PUBLIC_CPP_IDENTITY_MANAGER_H_ #define SERVICES_IDENTITY_PUBLIC_CPP_ID...
2,823
3,262
<filename>spark-on-angel/graph/src/main/java/com/tencent/angel/graph/common/data/Feature.java package com.tencent.angel.graph.common.data; import com.tencent.angel.common.ByteBufSerdeUtils; import com.tencent.angel.common.StreamSerdeUtils; import com.tencent.angel.ml.math2.vector.IntFloatVector; import com.tencent.ang...
551
809
/** * @file * @brief * * @author <NAME> * @date 30.10.2014 */ #include <assert.h> #include <stdint.h> #include <system_stm32h7xx.h> #include <stm32h7xx_hal.h> #include <stm32h7xx_hal_cortex.h> #include <framework/mod/options.h> #include <stm32h745i_discovery.h> #include <stm32h745i_discovery_sdram.h> #i...
305
1,831
<filename>logdevice/test/utils/IntegrationTestUtils.h<gh_stars>1000+ /** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * 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. */ #pragma once #inc...
27,167
1,570
// Copyright 2016 The SwiftShader 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 b...
1,018
819
/* Copyright 2017 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
2,117
9,782
/* * 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 * distribut...
1,298
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 "chrome/browser/extensions/api/webstore_private/extension_install_status.h" #include "base/memory/scoped_refptr.h" #include "base/values.h" #inc...
1,804
1,063
import torch import torch.nn as nn class Res(nn.Module): def __init__(self, H): super().__init__() self.u1 = nn.Linear(H, H) self.u2 = nn.Linear(H, H) self.v1 = nn.Linear(H, H) self.v2 = nn.Linear(H, H) self.w = nn.Linear(H, H) def forward(self, y): y ...
1,384
848
<reponame>PaulWang1905/tensorflow # Copyright 2017 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-...
3,324
605
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
1,286
631
/* * 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,241
6,197
package com.kickstarter.ui.views; import android.content.Context; import android.text.Html; import android.util.AttributeSet; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.widget.AppCompatTextView; public final class HtmlTextView extends AppCompatTextView { publ...
203
3,073
<reponame>louis-pre/NewsBlur import redis from django.conf import settings from django.shortcuts import render from django.views import View class Updates(View): def get(self, request): r = redis.Redis(connection_pool=settings.REDIS_FEED_UPDATE_POOL) data = { 'update_queue': r.sc...
611
1,729
<gh_stars>1000+ /************************************************************************ * file name : descriptors_tree_widget.cpp * ----------------- : * creation time : 2016/09/17 * author : <NAME> * email : <EMAIL> * ----------------- : * description : The file contains impl...
18,723
4,756
<reponame>fantasyRqg/mace // Copyright 2020 The MACE 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 // ...
535
4,216
/** * @file core/util/binding_details.hpp * @author <NAME> * * This defines the structure that holds documentation details for bindings. * * mlpack is free software; you may redistribute it and/or modify it under the * terms of the 3-clause BSD license. You should have received a copy of the * 3-clause BSD lic...
440
1,388
// Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // // $Id:$ // // Copyright (C) 1993-1996 by id Software, Inc. // // This source is available for distribution and/or modification // only under the terms of the DOOM Source Code License as // publish...
295
4,538
/* * Copyright (C) 2015-2020 Alibaba Group Holding Limited */ #ifndef AMP_TASK_H #define AMP_TASK_H #include <aos/kernel.h> #include <stdint.h> typedef void (*amp_engine_call_t)(void *data); typedef enum { AMP_TASK_MSG_CALLBACK = 0, /* default JSE callback */ AMP_TASK_MSG_EXIT = 1, AMP_TASK_MSG_TYPE_M...
545
1,068
<filename>md5/md5assert.h<gh_stars>1000+ #ifndef __ASSERT_H__ #define __ASSERT_H__ #define _str(x) #x #define str(x) _str(x) #ifndef NDEBUG extern VOID NORETURN _assert(LPCTSTR, UINT, LPCTSTR); #define assert(x) ((x) ? SetLastErrorEx(0, SLE_WARNING) : _assert(TEXT(__FILE__), __LINE__, TEXT(#x)...
188
918
<gh_stars>100-1000 /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "...
1,172
320
// Copyright 2020 <NAME> // // The contents of this file may be used under the terms of // the Apache License v2.0 with LLVM Exceptions. // // (See accompanying file LICENSE-Apache or copy at // https://llvm.org/foundation/relicensing/LICENSE.txt) // // Alternatively, the contents of this file may be used under ...
920
412
/* Copyright (c) 2011, pGina Team 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 notice, this list of conditions and the follow...
1,645
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/page_load_metrics/metrics_web_contents_observer.h" #include <algorithm> #include <ostream> #include <string> #include <utility> ...
9,209
3,301
<filename>core/src/main/java/com/alibaba/alink/common/sql/builtin/agg/StddevSampUdaf.java<gh_stars>1000+ package com.alibaba.alink.common.sql.builtin.agg; public class StddevSampUdaf extends BaseSummaryUdaf { public StddevSampUdaf() { super(); } public StddevSampUdaf(boolean dropLast) { s...
198
2,151
<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. #ifndef MEDIA_FILTERS_VIDEO_CADENCE_ESTIMATOR_H_ #define MEDIA_FILTERS_VIDEO_CADENCE_ESTIMATOR_H_ #include <stddef.h> #include <stdint.h>...
2,495
938
package slimeknights.tconstruct.library.tools.capability; import net.minecraft.entity.Entity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.nbt.CompoundNBT; import net.minecraft.nbt.INBT; import net.minecraft.util.Direction; import net.minecraft.util.ResourceLocation; import net.minecraftforge....
1,720
376
# Generated by Django 3.1 on 2019-09-22 20:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('good_flow_app', '0023_drop_index'), ] operations = [ migrations.AddIndex( model_name='testtable', index=models.Index( ...
243
675
<reponame>clayne/cpuinfo #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include <stddef.h> #include <string.h> #include <sys/system_properties.h> #include <linux/api.h> #include <arm/android/api.h> #include <arm/linux/api.h> #include <cpuinfo/log.h> #if CPUINFO_MOCK #include <cpuinfo-mock.h> static...
961
2,151
// 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 "content/public/browser/web_contents_binding_set.h" #include <utility> #include "base/logging.h" #include "content/browser/web_contents/web_con...
700
515
<reponame>ntoussaint/CTK import qt if (_testWrappedQInvokableInstance.value() != 0): qt.QApplication.exit(1) _testWrappedQInvokableInstance.setValue(74) if (_testWrappedQInvokableInstance.value() != 74): qt.QApplication.exit(1) qt.QApplication.exit(0)
104
307
"""Geometry class for PlotOptiX raytracer. Basic geometry properties and interface to underlaying data buffers. https://github.com/rnd-team-dev/plotoptix/blob/master/LICENSE.txt Have a look at examples on GitHub: https://github.com/rnd-team-dev/plotoptix. """ from typing import Optional, Union from ctypes import by...
2,021
2,151
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_ICON_H_ #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_ICON_H_ #include "base/macros.h" #include "base/time/time.h" #i...
1,626
372
<gh_stars>100-1000 /* * 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 ...
1,074
474
<gh_stars>100-1000 /* Copyright 2018 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 requir...
724
309
#include <vtkSmartPointer.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkActor.h> #include <vtkProperty.h> #include <vtkPolyDataMapper.h> #include <vtkStripper.h> #include <vtkCutter.h> #include <vtkPlane.h> #include <vtkSphereSource.h> #include <vtkPoints.h...
1,777
1,217
<filename>Modules/object_detection/py_nodes/stats/depth_single_est_stat.py #!/usr/bin/env python # -*- coding: utf-8 -*- import rospy from sensor_msgs.msg import Image from geometry_msgs.msg import Pose, Point, Quaternion from cv_bridge import CvBridge from std_msgs.msg import String from std_msgs.msg import Bool impo...
535
339
import math import os import re import json from convlab2.nlu.svm import sutils class tuples(object): def __init__(self, config): self.acts = json.loads(config.get("grammar", "acts")) # self.nonempty_acts = json.loads(config.get("grammar", "nonempty_acts")) # self.nonfull_acts = [act for ...
5,056
5,169
<filename>Specs/4/7/b/ConfettiView/0.1.5/ConfettiView.podspec.json { "name": "ConfettiView", "version": "0.1.5", "summary": "Add a magnificent Confetti to any view in your app", "description": "This pod allows you to add Confetti to any view youd like in a very clean and easy way. It was inspired by HouseParty ...
288
709
<reponame>security-geeks/jackhammer package com.olacabs.jackhammer.db; import com.olacabs.jackhammer.models.Filter; import com.olacabs.jackhammer.models.Finding; import com.olacabs.jackhammer.models.VulnerableType; import com.olacabs.jackhammer.models.mapper.FindingMapper; import com.olacabs.jackhammer.models.mapper.V...
835
534
{ "parent": "mekanism:block/factory/combining/advanced", "textures": { "front": "mekanism:block/factory/advanced/combining/front_active", "south": "mekanism:block/factory/advanced/combining/back_active", "west": "mekanism:block/factory/advanced/combining/right_active", "east": "mekanism:block/factor...
169
637
// // Copyright 2016 Google 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...
735
4,140
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
1,437
2,236
<filename>TABAnimatedDemo/TABAnimated/Decorate/DarkMode/TABAnimatedDarkModeImpl.h // // TABAnimatedDarkModeSwitchImpl.h // AnimatedDemo // // Created by tigerAndBull on 2020/5/5. // Copyright © 2020 tigerAndBull. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @protocol TABAnima...
163
1,144
package de.metas.rest_api.v1.ordercandidates.impl; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.Seria...
1,177
357
/* * Copyright © 2012-2015 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 required by applic...
257
430
<gh_stars>100-1000 #ifndef _PERLIOL_H #define _PERLIOL_H typedef struct { PerlIO_funcs *funcs; SV *arg; } PerlIO_pair_t; struct PerlIO_list_s { IV refcnt; IV cur; IV len; PerlIO_pair_t *array; }; struct _PerlIO_funcs { Size_t fsize; char *name; Size_t size; U32 kind; IV (*...
3,116
2,372
<gh_stars>1000+ // // 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 // notice, this list of conditions and the following disclaimer. // * Redist...
1,055
2,291
<gh_stars>1000+ package org.osmdroid.util; public interface IterableWithSize<T> extends Iterable<T> { int size(); }
45
1,526
<reponame>Hakunata/servicecomb-pack /* * 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, Vers...
6,748
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...
1,393
590
# coding: utf-8 """ https://algodaily.com/challenges/reverse-only-alphabetical """ # The Two-Pointer way. def reverse_only_alpha(s): left = 0 right = len(s) - 1 s_list = list(s) while left < right: if not s_list[left].isalpha(): left += 1 continue if not s_list...
253
434
{ "instance" : { "testCallbackFunctionalTest" : "JohanBrichau 4/1/2016 14:27", "testDelegationFunctionalTest" : "JohanBrichau 9/11/2018 12:15", "testFlowConvenienceFunctionalTest" : "JohanBrichau 9/11/2018 12:03", "testCallbackSecurityFunctionalTest" : "JohanBrichau 4/1/2016 14:46", "testFilterFunctionalTest...
528
301
/* * Copyright (c) 2018-2019 "Neo4j, Inc." [https://neo4j.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 * * Unless required ...
2,078
658
/* * Copyright 2011-2014 <NAME>. All rights reserved. * License: http://www.opensource.org/licenses/BSD-2-Clause */ // FPU math lib #ifndef FPU_MATH_H_HEADER_GUARD #define FPU_MATH_H_HEADER_GUARD #define _USE_MATH_DEFINES #include <math.h> #include <string.h> #ifndef M_PI #define M_PI 3.14159265358979323846 #end...
1,501
848
<filename>dsa/WAA-TRD/accel/classification-pre_jpeg/xf_pp_pipeline_accel.cpp<gh_stars>100-1000 /* * 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 * * ...
2,033
3,227
<gh_stars>1000+ namespace CGAL { namespace Barycentric_coordinates { /*! \ingroup PkgBarycentricCoordinates2RefConcepts \cgalConcept A concept that describes the set of methods that should be defined for all coordinate models used to parameterize the class `Generalized_barycentric_coordinates_2`. \cgalHasModel - `Wa...
874
886
<gh_stars>100-1000 package com.flowci.docker.domain; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.Setter; @Getter @AllArgsConstructor(staticName = "of") public final class SSHOption { /** * Private rsa key for remote host access */ private final String privateKey; priv...
163
3,631
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
1,488
1,408
<gh_stars>1000+ /* * Copyright (c) 2020, NVIDIA Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <stdint.h> #include <arch_helpers.h> #include <lib/mmio.h> #include <plat/common/platform.h> #include <platform_def.h> u_register_t plat_get_stack_protector_canary(void) { u_re...
260
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_ANDROID_METRICS_UKM_UTILS_FOR_TEST_H_ #define CHROME_BROWSER_ANDROID_METRICS_UKM_UTILS_FOR_TEST_H_ #include <stdint.h> #include "...
319
352
<filename>src/test/java/helloworld/behavioral/memento/HelloWorldMementoTest.java package helloworld.behavioral.memento; import org.junit.Test; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; /** * @author <EMAIL> */ public class HelloWorldMementoTest { @Test pu...
316
572
from app import Coluna def test_coluna_deve_ter_um_nome(): assert Coluna('Fazendo').nome == 'Fazendo'
44
348
{"nom":"Robertot","circ":"10ème circonscription","dpt":"Seine-Maritime","inscrits":174,"abs":73,"votants":101,"blancs":9,"nuls":4,"exp":88,"res":[{"nuance":"REM","nom":"<NAME>","voix":47},{"nuance":"FN","nom":"<NAME>","voix":41}]}
90
342
<filename>sentinel/server/__init__.py # coding=utf-8 from .server import APIServer
29
335
<filename>N/Noodle_verb.json<gh_stars>100-1000 { "word": "Noodle", "definitions": [ "Improvise or play casually on a musical instrument." ], "parts-of-speech": "Verb" }
83
1,463
#import <Foundation/Foundation.h> @class RCTBridge; @interface RNAppGlobals : NSObject { RCTBridge *appBridge; } @property (nonatomic, retain) RCTBridge *appBridge; + (id)sharedInstance; @end
75
412
#include <assert.h> int foo(int * A[]) { int * _A=A[0]; return _A[1]; } int main() { int Y[2]={42, 13}; int * A[1]={ 0 }; // should be Y instead of 0 for assertion to hold int x=foo(A); assert(x==13); return x; }
106
428
/** * Copyright 2008 - 2019 The Loon Game Engine 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 appl...
2,247
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.canvas.dnd; import org.eclipse.gef.EditPartViewer; import org.eclipse.swt.dnd.URLTransfer; /** * URL DnD listener * ...
181
1,380
<filename>app/src/main/java/com/github/jorgecastilloprz/fabprogresscircle/interactor/MockAction.java /* * Copyright (C) 2015 <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 * * ...
514
458
// Copyright 2015-2021 Swim 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 ...
2,086
8,772
<reponame>dgusoff/cas package org.apereo.cas.adaptors.x509.authentication; import lombok.Getter; import lombok.RequiredArgsConstructor; import java.security.GeneralSecurityException; import java.time.ZonedDateTime; /** * Exception describing an expired CRL condition. * * @author <NAME> * @since 3.4.6 */ @Getter...
518
335
{ "word": "Entertain", "definitions": [ "Provide (someone) with amusement or enjoyment.", "Receive (someone) as a guest and provide them with food and drink.", "Give attention or consideration to (an idea or feeling)" ], "parts-of-speech": "Verb" }
107
1,169
// -*- mode: java; c-basic-offset: 2; -*- // Copyright 2017 MIT, All rights reserved // Released under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0 package com.google.appinventor.client.utils; import com.google.appinventor.client.widgets.boxes.Box; import com.google.gwt.user.client.u...
1,119
1,062
/** * Copyright 2014 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
1,745
1,076
#include "defines.h" #include "IDirect3D9Proxy.h" #pragma pack(1) HINSTANCE hlThis = 0; HINSTANCE hlD3D9 = 0; FARPROC origProc[15] = {0}; BOOL WINAPI DllMain(HINSTANCE hInst, DWORD reason, LPVOID){ if (reason == DLL_PROCESS_ATTACH){ hlThis = hInst; //Get path to the original d3d9.dll char infoBuf[MAX_PATH]; ...
1,504
1,279
<filename>tests/translator/output/error_http_api_event_multiple_same_path.json<gh_stars>1000+ { "errors": [ { "errorMessage": "Resource with id [HttpApiFunction2] is invalid. Event with id [Api2] is invalid. API method 'x-amazon-apigateway-any-method' defined multiple times for path '$default'." } ], ...
184
310
{ "name": "<NAME>", "description": "A ham radio.", "url": "http://www.elecraft.com/k2_page.htm" }
44
2,107
/*- * BSD LICENSE * * Copyright (c) Intel Corporation. * All rights reserved. * * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above cop...
7,360
1,403
<reponame>DNCoelho/clipper /** NOTE: This file was slightly adapted from `container_rpc.hpp` within the C++ container source to meet R packaging requirements. */ #ifndef CLIPPER_CONTAINER_RPC_HPP #define CLIPPER_CONTAINER_RPC_HPP #include <atomic> #include <chrono> #include <iostream> #include <mutex> #include <n...
6,475
1,371
<reponame>lilotech/caffe-fast-rcnn #include <cstring> #include <vector> #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/vision_layers.hpp" #include "caffe/test/test_caffe_main.hpp" #include "caffe/test/test_gradient_check_util.hpp" namespace...
2,487
1,442
#include <kandinsky/point.h> #include <assert.h> KDPoint KDPoint::translatedBy(KDPoint other) const { assert((other.x() >= 0 && m_x <= KDCOORDINATE_MAX - other.x()) || (other.x() < 0 && m_x >= KDCOORDINATE_MIN - other.x())); assert((other.y() >= 0 && m_y <= KDCOORDINATE_MAX - other.y()) || (other.y() < 0 && m_y >=...
270
14,425
<reponame>bzhaoopenstack/hadoop<filename>hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/MD5MD5CRC32FileChecksum.java /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional info...
1,178
3,083
// Copyright 2011-2016 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
294
929
<filename>includes/acl/compression/compression_settings.h #pragma once //////////////////////////////////////////////////////////////////////////////// // The MIT License (MIT) // // Copyright (c) 2017 <NAME> & Animation Compression Library contributors // // Permission is hereby granted, free of charge, to any person...
2,071
12,718
/** * This file has no copyright assigned and is placed in the Public Domain. * This file is part of the mingw-w64 runtime package. * No warranty is given; refer to the file DISCLAIMER.PD within this package. */ #ifndef __REQUIRED_RPCNDR_H_VERSION__ #define __REQUIRED_RPCNDR_H_VERSION__ 440 #endif #include "rpc.h"...
2,752
1,189
<reponame>oertl/opentelemetry-java /* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.sdk.extension.aws.resource; import static org.assertj.core.api.Assertions.assertThat; import com.google.common.base.Charsets; import com.google.common.io.Files; import java...
563
404
<reponame>yash30401/sbt-android<filename>sbt-test/gradle-build/plaid/app/src/main/java/io/plaidapp/util/glide/DribbbleTarget.java /* * Copyright 2015 Google 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...
1,555
11,351
package com.netflix.discovery.util; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import com.netflix.appinfo.InstanceInfo; import com.netflix.discovery.shared.Application; import com.netflix.discovery.shared.Applications; /** * Collection of f...
1,566