max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,151
/* * Copyright (c) 2002 World Wide Web Consortium, * (Massachusetts Institute of Technology, Institut National de * Recherche en Informatique et en Automatique, Keio University). All * Rights Reserved. This program is distributed under the W3C's Software * Intellectual Property License. This program is distributed...
1,923
570
package cn.taroco.common.web.annotation; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * 角色拦截 * * @author liuht * 2019/4/24 11:37 */ @Target(ElementType.M...
272
317
// Released under the MIT License. See LICENSE for details. #ifndef BALLISTICA_PLATFORM_MIN_SDL_H_ #define BALLISTICA_PLATFORM_MIN_SDL_H_ // A bit of history: // // Ballistica originally used SDL as its sole library for events, // window-management, etc. on all platforms. This means a lot of the low level // event ha...
12,554
1,545
<reponame>pkumar-singh/bookkeeper /* * 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, Ve...
5,385
535
<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 ...
436
1,056
<reponame>timfel/netbeans /* * 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....
580
5,169
{ "name": "BNet", "version": "1.0.0", "summary": "Network Layer in swift", "description": "\"Adaptive network layer make the communication be easy-to-write\"", "homepage": "https://github.com/brkyvrkn/BNet", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "<NAME>": "<EMAIL>" ...
370
375
class InitClass(object): def add_suffix(self, text, suffix): return text + suffix
38
1,401
package com.github.jvmgo.classfile.constantpool; import com.github.jvmgo.classfile.ClassReader; /** * @Author: panda * @Date: 2018/10/3 0003 12:41 */ public class ConstantDoubleInfo implements ConstantInfo { private Double value; public ConstantDoubleInfo(ClassReader reader) { value = reader.next...
192
21,684
<gh_stars>1000+ // Copyright 2010-2014 RethinkDB, all rights reserved. #include "serializer/log/data_block_manager.hpp" #include <inttypes.h> #include <sys/uio.h> #include <functional> #include "arch/arch.hpp" #include "arch/runtime/coroutines.hpp" #include "concurrency/mutex.hpp" #include "concurrency/new_mutex.hpp...
28,458
681
{ "id":"orcid-v2-sandbox", "factoryAlias":"oauth2", "title":"ORCID Sandbox", "subtitle":"ORCiD - sandbox (v2)", "factoryData":"type: orcid | userEndpoint: https://api.sandbox.orcid.org/v2.0/{ORCID}/person | clientId: APP-HIV99BRM37FSWPH6 | clientSecret: <KEY>", "enabled":true }
138
799
<filename>Packs/ShiftManagement/Scripts/GetNumberOfUsersOnCall/GetNumberOfUsersOnCall_test.py import demistomock as demisto from GetNumberOfUsersOnCall import main, DemistoException import pytest USERS_ON_CALL = [ { 'Type': 1, 'Contents': [ { 'id': 'user1', ...
775
30,023
"""Tests for the Tesla Wall Connector integration."""
13
892
<reponame>westonsteimel/advisory-database-github<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-jhfm-52vf-4cqg", "modified": "2022-05-04T00:30:20Z", "published": "2022-05-04T00:30:20Z", "aliases": [ "CVE-2012-0446" ], "details": "Multiple cross-site scripting (XSS) vulnerabilities in Mozil...
814
777
<gh_stars>100-1000 /* * Copyright 2011 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 la...
1,120
335
<reponame>Safal08/Hacktoberfest-1<filename>P/Pedigree_noun.json { "word": "Pedigree", "definitions": [ "The record of descent of an animal, showing it to be pure-bred.", "A pure-bred animal.", "The recorded ancestry or lineage of a person or family.", "The history or provenance o...
173
737
<filename>rtbkit/core/monitor/monitor_provider.h /* monitor_provider.h -*- C++ -*- <NAME>, January 2013 Copyright (c) 2013 Datacratic. All rights reserved. Rest endpoint queried by the monitor in the provider processes */ #pragma once #include <memory> #inclu...
628
23,901
<filename>es_optimization/policies.py # 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/LICEN...
13,262
428
package org.loon.framework.javase.game.core; import java.awt.Image; import java.awt.Point; import java.awt.Window; import java.awt.event.FocusEvent; import java.awt.event.FocusListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListe...
4,358
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,610
348
<gh_stars>100-1000 {"nom":"Saint-Bonnet-le-Courreau","circ":"6ème circonscription","dpt":"Loire","inscrits":592,"abs":333,"votants":259,"blancs":2,"nuls":17,"exp":240,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":131},{"nuance":"LR","nom":"<NAME>","voix":109}]}
105
484
<reponame>aborodya/dawp # # Monte Carlo Simulation of BCC97 Model # 12_val/BCC97_simulation.py # # (c) Dr. <NAME> # Derivatives Analytics with Python # import sys import math import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt sys.path.append('11_cal') from H93_calibration import S0, kappa_r, th...
2,988
2,151
<gh_stars>1000+ // Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_DOWNLOAD_INTERNAL_COMMON_PARALLEL_DOWNLOAD_JOB_H_ #define COMPONENTS_DOWNLOAD_INTERNAL_COMMON_PARALLEL_DOWNLOAD_JOB_H_ ...
1,439
1,826
package com.vladsch.flexmark.parser.delimiter; import com.vladsch.flexmark.parser.InlineParser; import com.vladsch.flexmark.parser.core.delimiter.Delimiter; import com.vladsch.flexmark.util.ast.Node; /** * Custom delimiter processor for additional delimiters besides {@code _} and {@code *}. * <p> * Note that imple...
1,485
631
// Copyright 2018-2021 The Beam 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 by applicable law or...
662
308
<reponame>wvrfish/appcenter-sdk-apple<gh_stars>100-1000 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #import <Foundation/Foundation.h> #import "MSACAnalyticsTransmissionTarget.h" #import "MSACChannelDelegate.h" #import "MSACChannelGroupProtocol.h" #import "MSACUtilit...
336
2,144
#ifndef PM_DEBUG_H #define PM_DEBUG_H #pragma once void PM_ViewEntity( void ); void PM_DrawBBox(vec3_t mins, vec3_t maxs, vec3_t origin, int pcolor, float life); void PM_ParticleLine(vec3_t start, vec3_t end, int pcolor, float life, float vert); void PM_ShowClipBox( void ); #endif // PMOVEDBG_H
119
831
<reponame>phpc0de/idea-android package module0packageJava0; import org.junit.Test; public class Foo1Test { @Test public void testFoo0() { new Foo1().foo0(); } @Test public void testFoo1() { new Foo1().foo1(); } @Test public void testFoo2() { new Foo1().foo2(); } @Test public void ...
183
643
<gh_stars>100-1000 /* * Copyright 2018-2020 Redis Labs Ltd. and Contributors * * This file is available under the Redis Labs Source Available License Agreement */ #include "compaction.h" #include "compressed_chunk.h" #include "gorilla.h" #include "minunit.h" #include "parse_policies.h" #include "tsdb.h" #include <...
3,376
435
{ "description": "Topic Modelling is an information retrieval technique to identify key topics in a large corpus of text documents. It is a very handy technique to model unstructured textual data, and is used heavily in both industry and in research to both understand trends in textual data and analyse new documents ...
613
348
{"nom":"Tronget","circ":"1ère circonscription","dpt":"Allier","inscrits":681,"abs":232,"votants":449,"blancs":13,"nuls":11,"exp":425,"res":[{"nuance":"COM","nom":"<NAME>","voix":282},{"nuance":"REM","nom":"<NAME>","voix":143}]}
87
2,978
/* * Copyright Strimzi authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.strimzi.api.kafka.model.template; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Locale; publ...
475
627
/* * Copyright 2020-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this artifact or file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
449
376
#include <ros/ros.h> #include <image_transport/image_transport.h> #include <cv_bridge/cv_bridge.h> #include <nav_msgs/Odometry.h> #include <geometry_msgs/PoseArray.h> #include <nav_msgs/Path.h> #include <sensor_msgs/PointCloud2.h> #include <pcl_ros/point_cloud.h> #include <pcl/point_types.h> #include <msckf_mono/cor...
2,953
303
<filename>esp8266/scripts/main.py # This script is run on boot
21
1,142
""" HAKUNA MATATA """ from .convex_hull import ConvexHull from .delaunay import Delaunay3D from .kdtree import KDTree from .voxelgrid import VoxelGrid ALL_STRUCTURES = { 'convex_hull': ConvexHull, 'delaunay3D': Delaunay3D, 'kdtree': KDTree, 'voxelgrid': VoxelGrid }
130
1,683
<gh_stars>1000+ // ======================================================================== // $Id: Page.java,v 1.5 2004/09/23 02:15:15 gregwilkins Exp $ // Copyright 1996-2004 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // Licensed under the Apache License,...
4,228
465
<reponame>NetsanetGeb/marmaray /* * Copyright (c) 2019 Uber Technologies, Inc. * 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...
8,005
1,875
<filename>tests/src/test/java/org/teavm/classlib/java/io/InputStreamReaderTest.java /* * Copyright 2014 <NAME>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www...
1,249
304
#include <fstream> #include <sstream> #include <iostream> int main(int argc, char * argv[]) { if (argc < 2) { std::cout << "Error! no file supplied!" << std::endl; return -1; } std::ifstream myfile; myfile.open(argv[1]); std::stringstream data; data << myfile.rdbuf(); if (myfile.is_open()) { std::cout << ...
195
362
package net.ripe.db.whois.query.planner; import net.ripe.db.whois.common.dao.RpslObjectDao; import net.ripe.db.whois.common.ip.Ipv4Resource; import net.ripe.db.whois.common.iptree.Ipv4Tree; import net.ripe.db.whois.common.rpsl.ObjectType; import org.junit.jupiter.api.Test; import org.mockito.InjectMocks; import org.m...
425
32,544
<filename>patterns/clean-architecture/src/main/java/com/baeldung/pattern/cleanarchitecture/usercreation/UserRequestModel.java<gh_stars>1000+ package com.baeldung.pattern.cleanarchitecture.usercreation; class UserRequestModel { String name; String password; public UserRequestModel() { super(); ...
287
9,402
<filename>src/coreclr/pal/tests/palsuite/threading/DuplicateHandle/test3/test3.cpp // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*===================================================================== ** ** Source: test3.c (D...
1,933
695
name = "robustness" __version__ = "1.2.1.post2"
23
647
#ifndef GP_VIEW_PAGE_NODE_HH #define GP_VIEW_PAGE_NODE_HH #include <vector> #include "gp_view_plot_node.hh" #include "gp_version.hh" #include "DPC/DPC_page.hh" #include "DPV/UTILS/DPV_textbuffer.hh" extern "C"{ #include <X11/Intrinsic.h> } /** * This class represents an Gnuplot Page of plots for Trick Data Produc...
843
3,957
/* * Copyright 2018 <NAME>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
1,022
331
// // ChatLogContactViewController.h // Monal // // Created by <NAME> on 12/12/13. // // #import <UIKit/UIKit.h> #import "DataLayer.h" @interface ChatLogContactViewController : UITableViewController @property (nonatomic, strong) MLContact* contact; @property (nonatomic, strong) NSArray* tableData; @end
109
12,077
<gh_stars>1000+ from .. import Provider as CompanyProvider class Provider(CompanyProvider): formats = ( '{{company_prefix}}{{last_name}}{{company_category}}', '{{last_name}}{{company_category}}{{company_prefix}}', ) company_prefixes = ('株式会社', '有限会社', '合同会社') company_categories = ('水産...
297
571
package com.univocity.trader.indicators; import com.univocity.trader.candles.CandleHelper; import com.univocity.trader.indicators.base.TimeInterval; import org.junit.Test; import static org.junit.Assert.assertEquals; public class CommodityChannelIndexTest { private double[] values = new double[] { 23.98, 23.92,...
799
439
<reponame>JananiPalanisamy/java<filename>exercises/practice/atbash-cipher/.meta/config.json { "blurb": "Create an implementation of the atbash cipher, an ancient encryption system created in the Middle East.", "authors": [], "contributors": [ "c-thornton", "FridaTveit", "jackattack24", "jmluy", ...
447
351
<gh_stars>100-1000 /* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Portions Copyright (c) Microsoft Corporation. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache...
36,017
7,137
<reponame>java-app-scans/onedev package io.onedev.server.web.page.project.setting; import java.io.Serializable; public interface ContributedProjectSetting extends Serializable { }
57
2,695
<gh_stars>1000+ """Utilities Module for Amazon Lake Formation.""" import logging import time from math import inf from threading import Thread from typing import Any, Dict, List, Optional, Union import boto3 import botocore.exceptions from awswrangler import _utils, exceptions from awswrangler.catalog._utils import _...
4,921
14,668
<filename>vendor/chromium/mojo/public/cpp/base/memory_pressure_level_mojom_traits.cc<gh_stars>1000+ // 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. #include "mojo/public/cpp/base/memory_pressure_level_m...
750
2,350
<filename>jmh/src/main/java/org/roaringbitmap/iteration/BatchIteratorBenchmark.java package org.roaringbitmap.iteration; import org.openjdk.jmh.annotations.*; import org.roaringbitmap.*; import java.util.concurrent.TimeUnit; @BenchmarkMode(Mode.AverageTime) @OutputTimeUnit(TimeUnit.MILLISECONDS) @State(Scope.Benchm...
639
2,092
"""Common mixin classes for views.""" from django.contrib.auth.mixins import LoginRequiredMixin from vanilla import ListView class ListViewWithForm(ListView): """List view that also exposes a create form.""" def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) ...
208
386
<filename>src/main/java/eu/hansolo/fx/charts/data/TYChartItem.java<gh_stars>100-1000 /* * Copyright (c) 2017 by <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://ww...
1,340
12,278
<reponame>Harshitha91/Tmdb-react-native-node<gh_stars>1000+ /*! @file Defines `boost::hana::Iterable`. @copyright <NAME> 2013-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_CONCEPT_ITERABLE_HPP #defi...
494
2,167
from oso import Oso from .auth import register_models class SQLAlchemyOso(Oso): """The central object to manage application policy state, e.g. the policy data, and verify requests when using Oso with SQLAlchemy. Supports SQLAlchemy-specific functionality, including data filtering. Accepts a SQLAlch...
307
7,482
/**************************************************************************//** * * @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-02-26 klcheng First version * *************************...
1,305
1,240
<filename>SubEthaEdit-Mac/Source/DocumentMode.h // DocumentMode.h // SubEthaEdit // // Created by <NAME> on Mon Mar 22 2004. #import <Cocoa/Cocoa.h> #import "SEEStyleSheetSettings.h" enum { DocumentModeWrapModeWords = 0, DocumentModeWrapModeCharacters, }; enum { DocumentModeDocumentInfoCharacters = 0, D...
2,348
14,668
<filename>chromeos/ui/base/display_util.cc // 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 "chromeos/ui/base/display_util.h" #include "ui/display/display.h" namespace chromeos { OrientationTy...
1,676
1,493
/******************************************************************************* * Copyright 2017 Bstek * * 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/l...
671
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.jrt; /** * Invokes asynchronous JRT requests in a blocking method, that can be aborted by calling shutdown(). * This can be used when one would like to use invokeSync(), but when abortion is req...
572
562
<reponame>nameless-writer/become-yukarin<gh_stars>100-1000 from typing import List from typing import NamedTuple from typing import Optional class CBHGDiscriminatorModelConfig(NamedTuple): in_channels: int hidden_channels_list: List[int] class CBHGModelConfig(NamedTuple): in_channels: int conv_bank_...
304
1,470
package com.pichillilorenzo.flutter_inappwebview.types; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import java.util.Map; public class ContentWorld { @NonNull private String name; public static final ContentWorld PAGE = new ContentWorld("page"); public static final ContentWorld ...
471
9,819
import os from glob import glob from setuptools import setup from itertools import chain pkgname = 'jupyterthemes' major = 0 minor = 20 patch = 2 version = '.'.join([str(v) for v in [major, minor, patch]]) url = 'https://github.com/dunovank/jupyter-themes' download_url = '/'.join([url, 'tarball', 'v' + version]) # g...
1,178
319
from dataclasses import dataclass, field from typing import Any, List from starlette.datastructures import URL @dataclass class PageControl: number: int url: str @dataclass class Pagination: rows: List[Any] page: int page_size: int count: int page_controls: List[PageControl] = field(def...
973
370
#pragma once #include <Trinity.TSL.Parser.h> #include "Trinity.TSL.WrappedTokenType.h" using namespace System; namespace Trinity { namespace TSL { public ref class WrappedTokenInfo { public: WrappedTokenInfo(yytokentype t, int o1, int o2) { type...
475
488
<filename>src/midend/programAnalysis/distributedMemoryAnalysis/distributedVerificationExample/programVerification.h #ifndef PROGRAM_VERIFICATION_H #define PROGRAM_VERIFICATION_H class Conditions; class ProgramVerifier { public: bool verify(SgFunctionDeclaration *, Conditions *); std::string report(); }; Co...
148
2,151
<reponame>zipated/src // 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 "ui/views/controls/menu/menu_host.h" #include "base/auto_reset.h" #include "base/logging.h" #include "base/trace_event...
2,725
334
<reponame>rnevius/node-mapnik<filename>src/mapnik_vector_tile.cpp #include "utils.hpp" #include "mapnik_map.hpp" #include "mapnik_image.hpp" #if defined(GRID_RENDERER) #include "mapnik_grid.hpp" #endif #include "mapnik_feature.hpp" #include "mapnik_cairo_surface.hpp" #ifdef SVG_RENDERER #include <mapnik/svg/output/svg_...
8,159
746
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include "pch.h" #include "interop/global_factory.h" #include "media/audio_track_source.h" namespace Microsoft { namespace MixedReality { namespace WebRTC { AudioSourceAdapter::AudioSourceAdapter( rtc::scoped_refptr<webrtc::AudioSourceIn...
762
344
/* * 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 applic...
521
4,339
<filename>modules/ml/src/test/java/org/apache/ignite/ml/math/primitives/MathTestConstants.java /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The A...
819
1,338
<gh_stars>1000+ /* * Copyright 2013, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #ifndef AREA_INFO_H #define AREA_INFO_H #include <OS.h> #include <String.h> #include "Types.h" class AreaInfo { public: AreaInfo(); AreaInfo(const AreaInfo& other); AreaInfo(team_id ...
602
335
{ "word": "Magic", "definitions": [ "Having or apparently having supernatural powers.", "Very effective in producing the desired results.", "Wonderful; exciting." ], "parts-of-speech": "Adjective" }
90
688
<filename>Java/libraries/recognizers-text-number/src/main/java/com/microsoft/recognizers/text/number/NumberRecognizer.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.microsoft.recognizers.text.number; import com.microsoft.recognizers.text.Culture; impor...
4,359
411
<reponame>elihschiff/Submitty """Module to handle loading of migrations and modules.""" from collections import OrderedDict from importlib.machinery import SourceFileLoader import re def load_module(name, path): """ Load the migration file as a python module. :param name: Name of module :type name: s...
515
5,611
<gh_stars>1000+ import json import pytest from ..helpers import requires_api_version from .api_test import BaseAPIClientTest, url_prefix, fake_request class VolumeTest(BaseAPIClientTest): def test_list_volumes(self): volumes = self.client.volumes() assert 'Volumes' in volumes assert len(...
1,750
316
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`. package com.mapbox.mapboxsdk.style.layers; import androidx.annotation.ColorInt; import androidx.annotation.Keep; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.UiThread; im...
11,028
2,338
for (int c0 = 0; c0 <= 10; c0 += 1) { if (c0 <= 9) a(c0); if (c0 >= 1) b(c0 - 1); }
60
315
package com.apssouza.eventsourcing.aggregates; import com.apssouza.eventsourcing.commands.EmailCreateCommand; import com.apssouza.eventsourcing.commands.EmailDeleteCommand; import com.apssouza.eventsourcing.commands.EmailSendCommand; import com.apssouza.eventsourcing.entities.Email; import com.apssouza.infra.AppEvent;...
1,849
735
<gh_stars>100-1000 package com.mcxiaoke.next.samples.core; import android.os.Bundle; import android.os.SystemClock; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import butterknife.BindView; import butterknife.ButterKnif...
4,968
601
<gh_stars>100-1000 """This contains all of the WebSocket consumers used by the Reporting application.""" # Standard Libraries import json # 3rd Party Libraries from channels.generic.websocket import AsyncWebsocketConsumer class ReportConsumer(AsyncWebsocketConsumer): """ Handle notifications related to indi...
622
11,334
<reponame>zeljko-mirovic/spring-boot-admin<gh_stars>1000+ /* * Copyright 2014-2018 the original author or 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.ap...
548
3,913
<reponame>JasonSWFu/speechbrain def test_accumulatable_wer_stats(): from speechbrain.utils.edit_distance import accumulatable_wer_stats refs = [[[1, 2, 3], [4, 5, 6]], [[7, 8], [9]]] hyps = [[[1, 2, 4], [5, 6]], [[7, 8], [10]]] # Test basic functionality: stats = accumulatable_wer_stats(refs[0], hy...
1,043
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-gp9v-8hxx-pqxm", "modified": "2022-05-13T01:38:44Z", "published": "2022-05-13T01:38:44Z", "aliases": [ "CVE-2016-6562" ], "details": "On iOS and Android devices, the ShoreTel Mobility Client app version 172.16.31.10 fails to properly validate...
551
938
<gh_stars>100-1000 { "tool": "tconstruct:hand_axe", "text": [ { "text": "The Hand Axe is a precision chopping tool, effective on wood, plants, and leaves." }, { "text": "Expanders increase the circular radius of the axe.", "paragraph": true } ], "properties": [ "+6 Attack Damage", "0.9 Attack Sp...
126
379
// Copyright © 2012, Université catholique de Louvain // 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...
891
791
<reponame>ValtoForks/EtherealEngine #pragma once #include <string> #include <vector> class mesh; struct prefab; struct scene; class material; namespace gfx { struct texture; struct shader; } namespace audio { class sound; } namespace runtime { struct animation; } namespace ex { template <typename T> const std::ve...
902
3,227
<gh_stars>1000+ #ifndef VIEWER_H #define VIEWER_H #include <QMap> #include <CGAL/Qt/qglviewer.h> class Viewer : public CGAL::QGLViewer{ Q_OBJECT public: Viewer(QWidget* parent); virtual ~Viewer(); }; #endif //VIEWER_H
110
1,538
<gh_stars>1000+ // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "Li...
930
1,235
#pragma once namespace HoloJs { enum class ScriptHostErrorType { LoadingError }; }
35
14,668
<filename>third_party/blink/renderer/platform/scheduler/worker/worker_thread.cc // 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 "third_party/blink/renderer/platform/scheduler/worker/worker_thre...
2,327
310
{ "name": "QuickRes", "description": "Mac software for switching between screen resolutions.", "url": "https://www.thnkdev.com/QuickRes" }
46
1,288
#include "packager/mpd/base/mock_mpd_builder.h" #include "packager/mpd/base/media_info.pb.h" namespace shaka { namespace { const char kEmptyLang[] = ""; const MpdOptions kDefaultMpdOptions; } // namespace // Doesn't matter what values get passed to the super class' constructor. // All methods used for testing shoul...
445
1,144
package de.metas.banking.payment; import java.util.Collection; import java.util.List; import java.util.Optional; import java.util.Set; import org.compiere.model.IQuery; import org.compiere.model.I_C_PaySelection; import org.compiere.model.I_C_PaySelectionLine; import de.metas.banking.BankStatementAndLineAndRefId; im...
739
3,372
<reponame>rbalamohan/aws-sdk-java<gh_stars>1000+ /* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http:/...
5,718
777
<gh_stars>100-1000 // 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. #ifndef NET_SSL_SSL_PLATFORM_KEY_MAC_H_ #define NET_SSL_SSL_PLATFORM_KEY_MAC_H_ #include <Security/SecBase.h> #include "base/memory/r...
325