max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
4,200
/* * Copyright 2016 SimplifyOps, Inc. (http://simplifyops.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 ...
3,263
2,338
#define __CLC_FUNCTION atom_sub #include <clc/atom_decl_int64.inc>
29
892
<reponame>westonsteimel/advisory-database-github<filename>advisories/github-reviewed/2020/09/GHSA-f8mr-jv2c-v8mg/GHSA-f8mr-jv2c-v8mg.json<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-f8mr-jv2c-v8mg", "modified": "2021-11-19T15:27:56Z", "published": "2020-09-09T17:29:27Z", "aliases": [ "CVE-2...
1,385
816
<gh_stars>100-1000 # coding=utf-8 # Copyright 2019 The Google AI Language Team 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 # # ...
1,027
2,494
// Copyright & License details are available under JXCORE_LICENSE file #include "SpiderHelper.h" namespace jxcore { /* The class of the global object. */ static JSClass global_class = { "global", JSCLASS_HAS_PRIVATE | JSCLASS_HAS_RESERVED_SLOTS(3) | JSCLASS_IS_GLOBAL | JSCLASS_GLOBAL_FLAGS, ...
1,517
577
/* * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
1,022
798
/* * The MIT License * * Copyright (c) 2013 The Broad Institute * * 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...
509
764
{ "symbol": "YOU", "address": "0x1d32916CFA6534D261AD53E2498AB95505bd2510", "overview":{ "en": "YouSwap is an All-Eco DEX project created by the blockchain geek team in Silicon Valley, USA. It realizes multi-chain sharing of digital assets by constructing a multi-chain ecological deployment system. It pro...
1,166
377
/******************************************************************************* * * Copyright 2012 Impetus Infotech. * * * * 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 *...
1,422
376
<filename>src/net/zhuoweizhang/boardwalk/util/PlatformUtils.java<gh_stars>100-1000 package net.zhuoweizhang.boardwalk.util; import java.io.*; import java.util.*; import java.util.regex.*; /* Must not have Android dependencies. Reflection is OK. * Stuff that links directly to Android stuff goes in DroidUtils */ publ...
636
3,167
<filename>open_spiel/python/tests/higc_referee_test.py # Copyright 2019 DeepMind Technologies Ltd. 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.apac...
427
450
<gh_stars>100-1000 package com.amalbit.trail.util; public class AnimatorListener implements android.animation.Animator.AnimatorListener { @Override public void onAnimationStart(android.animation.Animator animation, boolean isReverse) { } @Override public void onAnimationEnd(android.animation.Animator anim...
211
346
#include <assert.h> #include <unistd.h> #include <plash.h> int main() { if (getuid()) pl_setup_user_ns(); assert(getuid() == 0); }
66
630
/* * Copyright (C) 2015, BMW Car IT GmbH * * Author: <NAME> <<EMAIL>> * * 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...
977
575
<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 "services/network/chunked_data_pipe_upload_data_stream.h" #include <stdint.h> #include <limits> #include <memory> #include ...
17,164
2,151
<gh_stars>1000+ // Copyright (c) 2013 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 UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ #in...
1,335
6,240
<reponame>Chen188/chalice<filename>tests/testlinter.py from pylint.checkers import BaseChecker from pylint.interfaces import IAstroidChecker from astroid.exceptions import InferenceError def register(linter): linter.register_checker(PatchChecker(linter)) linter.register_checker(MocksUseSpecArg(linter)) clas...
893
14,668
<reponame>zealoussnow/chromium // 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/predictors/network_hints_handler_impl.h" #include "base/memory/ptr_util.h" #include "chrome/brows...
1,192
13,006
/******************************************************************************* * Copyright (c) 2015-2019 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
497
1,706
<reponame>bjorn3/mrustc<gh_stars>1000+ /* * MRustC - Rust Compiler * - By <NAME> (Mutabah/thePowersGang) * * macro_rules/macro_rules.hpp * - Macros by example - `macro_rules!` */ #ifndef MACROS_HPP_INCLUDED #define MACROS_HPP_INCLUDED #include "parse/lex.hpp" #include "parse/tokentree.hpp" #include <common.hpp> ...
2,465
6,098
<filename>h2o-py/tests/testdir_parser/pyunit_NOFEATURE_orc_parser.py from builtins import str import sys sys.path.insert(1,"../../") import h2o from tests import pyunit_utils from random import randint """ This test takes all orc files collected by <NAME> and try to parse them into H2O frames. Due to test duration lim...
898
3,296
#include "case.h" #include "ccv_case.h" #include "ccv_nnc_case.h" #include <ccv.h> #include <nnc/ccv_nnc.h> #include <nnc/ccv_nnc_easy.h> TEST_SETUP() { ccv_nnc_init(); } TEST_CASE("index select a tensor") { float ap[] = { 1, 2, 2, 3, 3, 4, }; ccv_nnc_tensor_t* const a = ccv_nnc_tensor_new(ap, CPU_TENSOR_NH...
2,944
575
// 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 "chrome/chrome_cleaner/os/task_scheduler.h" #include <mstask.h> #include <oleauto.h> #include <security.h> #include <taskschd.h> #include <wrl/c...
15,194
679
<filename>main/unoxml/source/dom/notation.cxx /************************************************************** * * 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 ...
835
2,443
// Copyright (c) 2015-2019 The HomeKit ADK Contributors // // Licensed under the Apache License, Version 2.0 (the “License”); // you may not use this file except in compliance with the License. // See [CONTRIBUTORS.md] for the list of HomeKit ADK project authors. #include "HAPPlatform.h" HAP_RESULT_USE_CHECK float HA...
6,951
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...
2,358
4,813
# Generated by Django 2.2.1 on 2019-05-29 20:37 import json from django.db import migrations def normalize_webhook_values(apps, schema_editor): Channel = apps.get_model("api", "Channel") for ch in Channel.objects.filter(kind="webhook").only("value"): # The old format of url_down, url_up, post_data s...
1,068
575
<reponame>dark-richie/crashpad<filename>util/file/filesystem_posix.cc // Copyright 2017 The Crashpad 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 // // ...
1,295
442
<gh_stars>100-1000 from unittest import TestCase from mock import MagicMock from mock import patch from mock import mock_open import prepare from prepare import Prepare import config import bitcoin from mock import Mock class TestPrepare(TestCase): def setUp(self): self.context = Mock() self.prep...
1,242
349
package com.ray3k.skincomposer.dialog.scenecomposer.undoables; import com.ray3k.skincomposer.dialog.scenecomposer.DialogSceneComposer; import com.ray3k.skincomposer.dialog.scenecomposer.DialogSceneComposerModel; public class CellUniformUndoable implements SceneComposerUndoable { private DialogSceneComposerModel.S...
757
350
# (C) Copyright 2021 IBM Corp. # # 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...
15,745
5,823
// Copyright 2013 The Flutter 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 FLUTTER_SHELL_PLATFORM_LINUX_FL_BASIC_MESSAGE_CHANNEL_H_ #define FLUTTER_SHELL_PLATFORM_LINUX_FL_BASIC_MESSAGE_CHANNEL_H_ #if !defined(__FLUTTER_L...
2,819
375
<reponame>obrienben/openwayback /* * This file is part of the Wayback archival access software * (http://archive-access.sourceforge.net/projects/wayback/). * * Licensed to the Internet Archive (IA) by one or more individual * contributors. * * The IA licenses this file to You under the Apache License, Ve...
910
521
// // XApplication.h // // Created by <NAME> on January 6, 2001. // /* * Copyright (c) 2001 <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 Software without restr...
477
567
<reponame>sdepablos/bigquery-utils package com.google.bigquery; import static org.junit.Assert.*; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import org.apache.calcite.sql.parser.SqlParseException; import org.junit.Assert; import org.junit.Before; import org.junit.Test; public class CalcitePars...
1,102
1,473
<reponame>rd2281136306/pinpoint package com.navercorp.pinpoint.plugin.resin.interceptor; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import java.net.URLClassLoader; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import javax.s...
1,987
14,668
<reponame>chromium/chromium<gh_stars>1000+ // Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROMEOS_SERVICES_BLUETOOTH_CONFIG_INITIALIZER_H_ #define CHROMEOS_SERVICES_BLUETOOTH_CONFIG_INITIALIZE...
790
862
/* * (c) Copyright 2019 Palantir Technologies 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 ...
1,114
2,210
# import all APIs from .webgear import WebGear from .webgear_rtc import WebGear_RTC from .netgear_async import NetGear_Async __all__ = ["WebGear", "NetGear_Async", "WebGear_RTC"] __author__ = "<NAME> (@abhiTronix) <<EMAIL>>"
92
580
<gh_stars>100-1000 // Copyright 2016-2020 TriAxis Games L.L.C. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Kismet/BlueprintFunctionLibrary.h" #include "RuntimeMeshRenderable.h" #include "RuntimeMeshSlicer.generated.h" /** Options for creating cap geometry when slicing */ UENUM() enum class E...
851
380
<reponame>aviallon/waifu2x-converter-cpp<filename>src/modelHandler_simd_unroll4.hpp<gh_stars>100-1000 const unsigned char *w_cur = w_chunk_base; unsigned char *output_base0 = output + ((x0+0)*nOutputPlanes + oi0*OP_BLOCK_SIZE)*sizeof(float); unsigned char *output_base1 = output + ((x0+1)*nOutputPlanes + oi0*OP_BLOCK_SI...
17,297
15,337
<gh_stars>1000+ from typing import TYPE_CHECKING, Optional from django_countries import countries from .interface import ShippingMethodData if TYPE_CHECKING: from .models import ShippingMethod def default_shipping_zone_exists(zone_pk=None): from .models import ShippingZone return ShippingZone.objects....
582
12,077
<reponame>jacksmith15/faker<filename>faker/providers/currency/sv_SE/__init__.py<gh_stars>1000+ from .. import Provider as CurrencyProvider # Names taken from https://www.iban.se/currency-codes class Provider(CurrencyProvider): # Format: (code, name) currencies = ( ("AED", "UAE Dirham"), ("AFN...
3,222
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. #include "ui/events/ozone/evdev/touch_filter/edge_touch_filter.h" #include <stddef.h> #include <cmath> #include "base/logging.h" #include "base/macros....
656
312
package com.dfire.platform.alchemy.domain; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import javax.persistence.*; import javax.validation.constraints.*; import java.io.Serializable; import java.time.Instant; import java.util.HashSet; import java...
2,334
1,582
<filename>tests/test_oauth.py # encoding: utf-8 from tests.base import TestCase from webtest import TestApp import app as M from vilya.models.api_token import ApiToken class OAuthTest(TestCase): def test_login(self): app = TestApp(M.app) user_id = 'testuser' apikey = self._add_api_key() ...
312
2,787
<filename>src/overview/src/NIOverviewLogger.h // // Copyright 2011-2014 NimbusKit // // 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 // //...
1,480
1,993
<filename>brave/src/main/java/brave/propagation/ExtraFieldCustomizer.java /* * Copyright 2013-2020 The OpenZipkin 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...
352
4,695
<filename>package.json<gh_stars>1000+ { "name": "betwixt", "version": "1.6.1", "description": "Web Debugging Proxy based on Chrome DevTools Network panel", "main": "src/main.js", "scripts": { "start": "electron src/main.js", "test": "jshint src/lib/ src/*.js && jscs src/lib/ src/*.js" }, "reposito...
457
1,467
/* * Copyright 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://aws.amazon.com/apache2.0 * * or in the "license" file ...
815
590
<reponame>closeio/graphql-core from graphql.pyutils import Path def describe_path(): def add_path(): path = Path(None, 0, None) assert path.prev is None assert path.key == 0 prev, path = path, Path(path, 1, None) assert path.prev is prev assert path.key == 1 ...
390
310
/* * Copyright (c) 2014-2020, <NAME>, <EMAIL> * All rights reserved. * * Licensed under: MIT Licence * See LICENSE.TXT included with this code to read the full license agreement. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUD...
2,630
333
#ifndef __IRODS_POSTGRES_OBJECT_HPP__ #define __IRODS_POSTGRES_OBJECT_HPP__ // =-=-=-=-=-=-=- // irods includes #include "irods_database_object.hpp" // =-=-=-=-=-=-=- // boost includes #include <boost/shared_ptr.hpp> namespace irods { // =-=-=-=-=-=-=- // @brief const std::string POSTGRES_DATABASE_PLUGIN( "post...
780
2,151
<gh_stars>1000+ // Copyright 2018 The Feed 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 applicab...
3,732
1,570
<reponame>tonyh-fff/swiftshader<filename>src/System/Memory.cpp<gh_stars>1000+ // 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 ...
1,562
334
<reponame>raakasf/moderncpp #include <algorithm> #include <array> #include <chrono> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <memory> #include <random> #include <string> #include <vector> using namespace std; void sort_vector(vector<int> &v); void sort_selection(vector<...
5,932
605
<gh_stars>100-1000 #ifndef H7_H #define H7_H extern "C++" { class A {}; } class B : public A {}; #endif
54
310
package com.propertycross.mgwt.properties; import static com.google.gwt.safehtml.shared.UriUtils.fromString; import com.google.gwt.safehtml.shared.SafeUri; public final class Property { private final String guid; private final String title; private final String price; private final String formattedP...
1,761
17,085
/* Copyright (c) 2020 PaddlePaddle 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...
349
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Villeneuve","circ":"11ème circonscription","dpt":"Gironde","inscrits":325,"abs":164,"votants":161,"blancs":13,"nuls":1,"exp":147,"res":[{"nuance":"REM","nom":"<NAME>","voix":81},{"nuance":"FN","nom":"<NAME>","voix":66}]}
108
340
<filename>include/eve/detail/function/simd/common/compress_store_swizzle_mask_num.hpp //================================================================================================== /* EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT */ //================...
827
1,204
<filename>unit-tests/src/test/java/com/gs/collections/impl/collection/mutable/CollectionAdapterAsUnmodifiableTest.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 Li...
1,471
1,056
<filename>enterprise/web.core.syntax/src/org/netbeans/modules/web/core/syntax/completion/JspCompletionQuery.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 copyrigh...
15,645
401
<filename>qmlfrontend/game_view.h #ifndef GAMEVIEW_H #define GAMEVIEW_H #include <QQuickItem> #include <QPointer> #include <QScopedPointer> #include <QtGui/QOpenGLFunctions> #include <QtGui/QOpenGLShaderProgram> #include "engine_instance.h" class GameViewRenderer : public QObject, protected QOpenGLFunctions { Q_O...
474
5,607
<reponame>kfowler/micronaut-core /* * Copyright 2017-2020 original 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/LICENSE-2.0 * * Unless ...
1,097
5,079
from __future__ import absolute_import, unicode_literals import pytest from case import Mock, patch from celery.bin.migrate import migrate from celery.five import WhateverIO class test_migrate: @patch('celery.contrib.migrate.migrate_tasks') def test_run(self, migrate_tasks): out = WhateverIO() ...
325
370
<gh_stars>100-1000 #!/usr/bin/python import pcbmode.config as config from . import messages as msg from .module import Module class Board(): """ """ def __init__(self): self._module_dict = config.brd self._module_routing = config.rte module = Module(self._module_dict, ...
154
32,544
<reponame>DBatOWL/tutorials<filename>persistence-modules/hibernate-exceptions/src/test/java/com/baeldung/hibernate/entitynotfoundexception/EntityNotFoundExceptionIntegrationTest.java package com.baeldung.hibernate.entitynotfoundexception; import org.junit.After; import org.junit.Before; import org.junit.Test; import ...
562
2,576
<filename>eventsourcing/src/main/java/org/axonframework/eventsourcing/AbstractSnapshotTrigger.java package org.axonframework.eventsourcing; import java.io.Serializable; import org.axonframework.eventhandling.DomainEventMessage; import org.axonframework.eventhandling.EventMessage; import org.axonframework.messaging.un...
1,052
8,428
# third party from sqlalchemy import Column from sqlalchemy import ForeignKey from sqlalchemy import Integer from sqlalchemy import String # relative from . import Base class BinObjDataset(Base): __tablename__ = "bin_obj_dataset" id = Column(Integer(), primary_key=True, autoincrement=True) name = Column...
187
1,253
<gh_stars>1000+ #include<stdio.h> int a[1000000]; void merge(int low, int mid, int high){ int n1=mid-low+1; int n2=high-mid; int i,j,k; int left[1000000],right[1000000]; for(i=0;i<n1;i++) left[i]=a[low+i]; for(i=0;i<n2;i++) right[i]=a[mid+1+i]; i=0,j=0,k=low; while(i<n1 && j<n2){ if(left[i]<=right[j]){...
517
356
<reponame>majk1/netbeans-mmd-plugin /* * Copyright 2015-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 re...
3,407
777
// 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. #include "components/keyed_service/content/browser_context_dependency_manager.h" #include "extensions/browser/extension_registry_factory.h" #include "exte...
491
6,931
import numpy as np from statsmodels.base.model import Results import statsmodels.base.wrapper as wrap from statsmodels.tools.decorators import cache_readonly """ Elastic net regularization. Routines for fitting regression models using elastic net regularization. The elastic net minimizes the objective function -llf...
5,182
190,993
/* Copyright 2015 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...
3,253
1,104
/* =========================================================== * JFreeChart : a free chart library for the Java(tm) platform * =========================================================== * * (C) Copyright 2000-2009, by Object Refinery Limited and Contributors. * * Project Info: http://www.jfree.org/jfreech...
27,402
446
import numpy as np import pandas as pd def get_time_decay(uniq_weight, last=1.): """Calculate time decay weight Params ------ uniq_weight: pd.Series Sampling weight calculated label uniqueness last: float, default 1, no decay Parameter to detemine the slope and constant ...
276
5,730
<filename>src/main/java/org/ansj/app/extracting/domain/Token.java<gh_stars>1000+ package org.ansj.app.extracting.domain; import org.ansj.app.extracting.exception.RuleFormatException; import java.util.*; /** * Created by Ansj on 29/08/2017. */ public class Token { public static final String ALL = ":*" ; private...
903
1,724
#pragma once #include <libio/Reader.h> #include <libio/Scanner.h> #include <libutils/String.h> #include <libxml/Decl.h> #include <libxml/Node.h> namespace Xml { struct Doc { private: Node _root; Decl _decl; public: Decl &decl() { return _decl; } void decl(Decl decl) { _decl = decl; } Node &root...
170
11,533
<gh_stars>1000+ """ Sane List Extension for Python-Markdown ======================================= Modify the behavior of Lists in Python-Markdown to act in a sane manor. See <https://pythonhosted.org/Markdown/extensions/sane_lists.html> for documentation. Original code Copyright 2011 [<NAME>](http://achinghead.com...
640
454
""" Tests for the Hotjar template tags. """ import pytest from django.http import HttpRequest from django.template import Context, Template, TemplateSyntaxError from django.test import override_settings from utils import TagTestCase from analytical.templatetags.analytical import _load_template_nodes from analytical.te...
1,182
1,551
<filename>src/DBusObjectPath.h // Copyright 2017-2019 <NAME> // // This file is part of Gobbledegook. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file in the root of the source tree. // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
1,552
608
// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- /* * Copyright 2012 ZXing 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.or...
1,141
1,875
/* * Copyright 2020 <NAME>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
49,492
411
<filename>giraph-block-app/src/main/java/org/apache/giraph/block_app/framework/piece/global_comm/ReduceUtilsObject.java<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 informat...
700
696
/* * Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.product.swap; import java.io.Serializable; import java.time.LocalTime; import java.time.ZoneId; import java.util.Map; import java.util.NoSuchElementExcep...
5,747
540
<reponame>JoinCAD/CPP-Reflection /* ---------------------------------------------------------------------------- ** Copyright (c) 2016 <NAME>, All Rights Reserved. ** ** TypeInfo.hpp ** --------------------------------------------------------------------------*/ #pragma once #include "../Common/Compiler.h" #include "...
1,533
5,279
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
3,105
2,637
<gh_stars>1000+ /** @file usbc_reg.h * * @brief Automatically generated register structure * * (C) Copyright 2008-2019 Marvell International Ltd. All Rights Reserved * * MARVELL CONFIDENTIAL * The source code contained or described herein and all documents related to * the source code ("Material") are owned by Mar...
28,022
7,863
<gh_stars>1000+ /* vi:set ts=8 sts=4 sw=4 ft=objc: * * VIM - Vi IMproved by <NAME> * MacVim GUI port by <NAME> * * Do ":help uganda" in Vim to read copying and usage conditions. * Do ":help credits" in Vim to see a list of people who contributed. * See README.txt for an overview of the Vim source code. */ ...
1,736
772
{ "key": "rotationSpeed", "name": "rotationSpeed", "category": "Sprites", "syntax": "rotationSpeed" }
43
984
// Copyright (C) Microsoft Corporation. All rights reserved. #pragma once #pragma region Desktop Family or OneCore Family #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) EXTERN_C_START typedef enum _NET_PACKET_TX_CHECKSUM_ACTION { NetPacketTxChecksumActionPassthrough = 0, Net...
638
375
/* * Copyright (C) 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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
8,773
770
// Copyright (C) 2016 The Regents of the University of California (Regents). // 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...
962
1,174
<reponame>lijunru-hub/esp-iot-solution<gh_stars>1000+ // Copyright 2015-2016 Espressif Systems (Shanghai) PTE 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...
4,758
2,504
<reponame>nefeithu/behaviac // --------------------------------------------------------------------- // THIS FILE IS AUTO-GENERATED BY BEHAVIAC DESIGNER, SO PLEASE DON'T MODIFY IT BY YOURSELF! // --------------------------------------------------------------------- #include "behaviac_generated_behaviors_7.h" namespa...
54,829
743
<filename>hermes-management/src/main/java/pl/allegro/tech/hermes/management/api/auth/ManagementRights.java package pl.allegro.tech.hermes.management.api.auth; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import pl.allegro.tech.hermes.api.Group; import ...
1,493
1,272
<reponame>AndersSpringborg/avs-device-sdk<filename>AVSCommon/AVS/include/AVSCommon/AVS/Initialization/InitializationParameters.h /* * Copyright 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 complianc...
865
2,092
<filename>app/src/main/java/com/demo/widget/meis/MeiFireflyActivity.java package com.demo.widget.meis; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import com.demo.widget.R; im...
283
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. #ifndef ASH_WEBUI_DIAGNOSTICS_UI_BACKEND_INPUT_DATA_PROVIDER_KEYBOARD_H_ #define ASH_WEBUI_DIAGNOSTICS_UI_BACKEND_INPUT_DATA_PROVIDER_KEYBOARD_H_ #includ...
703