max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
319
{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "https://raw.githubusercontent.com/todogroup/repolinter/master/rules/script-passes-config.json", "type": "object", "properties": { "schema": { "$ref": "http://json-schema.org/draft-07/schema" }, "glob": { "type": "string" }, "no...
251
739
import pyjd # this is dummy in pyjs from pyjamas import logging from pyjamas.ui.Button import Button from pyjamas.ui.RootPanel import RootPanel from pyjamas.ui.HTML import HTML from pyjamas.ui.DockPanel import DockPanel from pyjamas.ui import HasAlignment from pyjamas.ui.Hyperlink import Hyperlink from pyjamas.ui.Vert...
1,636
342
import toppra import pytest @pytest.fixture(name='path') def setup_geometric_path(): yield toppra.SplineInterpolator([0, 1, 2], [(0, 0), (1, 2), (2, 0)]) def test_initialzie(path): gridpoints = [0, 0.5, 1, 1.5, 2] velocities = [1, 2, 2, 1, 0] # xd = [1, 4, 4, 1, 0] # ud = [6.0, 0, -6.0, -2.0] ...
225
435
{ "copyright_text": "Creative Commons Attribution license (reuse allowed)", "description": "<NAME>\nhttps://kiwi.pycon.org/schedule/presentation/124/\nWhat would happen to all the cat videos if YouTube were to disappear? It would be a cat-atstrophe! GNU MediaGoblin is Python-based media publishing system for artist...
340
424
<filename>app/src/main/java/com/j256/ormlite/dao/RawRowObjectMapper.java package com.j256.ormlite.dao; import java.sql.SQLException; import com.j256.ormlite.field.DataType; import com.j256.ormlite.stmt.QueryBuilder; /** * Parameterized row mapper that takes output from the {@link GenericRawResults} and returns a T....
648
1,052
<filename>app/src/test/java/com/zegoggles/smssync/contacts/ContactGroupsTest.java package com.zegoggles.smssync.contacts; import com.zegoggles.smssync.mail.PersonRecord; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.RobolectricTestRunner; import static com.google.common.truth.Truth.as...
456
34,359
#pragma once #include "SampleMonarch.h" #include "SamplePeasant.h" #include "../../types/inc/utils.hpp" class AppState { public: bool areWeTheKing(const bool logPIDs = false); void initializeState(); static winrt::MonarchPeasantSample::Monarch instantiateMonarch(); void createMonarch(); ...
362
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Olfactometer", "definitions": [ "An instrument for measuring the intensity of an odour or the sensitivity of someone or something to an odour." ], "parts-of-speech": "Noun" }
93
669
<gh_stars>100-1000 /* * Copyright 2020 The TensorFlow Runtime 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 r...
3,785
2,843
package com.ycbjie.gank.presenter; import android.graphics.Color; import android.text.TextUtils; import com.yc.httpserver.ExceptionUtils; import com.ycbjie.gank.api.GanKModel; import com.ycbjie.gank.bean.bean.SearchResult; import com.ycbjie.gank.contract.GanKSearchContract; import io.reactivex.Observer; import io.re...
1,863
903
<gh_stars>100-1000 package org.develnext.jphp.core.compiler.jvm.statement.expr.value; import org.develnext.jphp.core.compiler.jvm.statement.ExpressionStmtCompiler; import org.develnext.jphp.core.compiler.jvm.statement.expr.BaseExprCompiler; import org.develnext.jphp.core.tokenizer.token.expr.value.IntegerExprToken; im...
247
461
<gh_stars>100-1000 class MapSum: class Node: def __init__(self): self.val = 0 self.next = dict() def __init__(self): """ Initialize your data structure here. """ self.root = MapSum.Node() def insert(self, key: str, val: int) -> None: ...
520
513
import os BASE_DIR = os.path.dirname(__file__) SAML_PATH = os.path.join(BASE_DIR, 'saml') TEMPLATE_PATH = os.path.join(BASE_DIR, 'templates')
66
636
import pytest from indy import libindy # noinspection PyUnusedLocal @pytest.mark.sync def test_set_runtime_config(): libindy.set_runtime_config('{"crypto_thread_pool_size": 2}')
68
2,542
<reponame>vishnuk007/service-fabric<filename>src/prod/test/FabricTest/FabricTestRuntimeManager.cpp // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license informati...
6,378
675
/** * @file greedy_single_tree_traverser_impl.hpp * @author <NAME> * * A simple greedy traverser which always chooses the child with the best score * and doesn't do backtracking. The RuleType class must implement the method * 'GetBestChild()'. * * mlpack is free software; you may redistribute it and/or modify ...
846
533
<gh_stars>100-1000 { "itemDisplayName": "Deploy a Linux Ubuntu VM and VM extensions to Azure Stack", "description": "This template deploys a Linux VM and also uses Customscript and OSPatchingforLinux Extensions. The VM is set with 2 managed disks; the OS disk and a data disk of 1 GB.", "summary": "This template d...
130
1,738
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license bel...
1,595
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...
723
514
<gh_stars>100-1000 { "pluginsFile": "tests/e2e/plugins/index.js", "env": { "API_URL": "http://localhost:3000" }, "numTestsKeptInMemory": 10 }
69
2,487
<reponame>lichongbing/lswagger package nl.jworks.markdown_to_asciidoc.util; import java.util.List; public class Joiner { public static String join(List<?> list, String delim) { int len = list.size(); if (len == 0) { return ""; } StringBuilder sb = new StringBuilder(lis...
246
1,031
/* Copyright (c) <2003-2016> <Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including...
1,363
891
<reponame>adaamz/datamodel-code-generator<filename>tests/data/expected/main/main_jsonschema_ids/__init__.py # generated by datamodel-codegen: # filename: Organization.schema.json # timestamp: 1985-10-26T08:21:00+00:00 from __future__ import annotations from typing import Optional from pydantic import BaseModel ...
223
1,473
<gh_stars>1000+ /* * Copyright 2014 NAVER 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 l...
506
530
<reponame>Yzubi/bladecoder-adventure-engine package com.bladecoder.engineeditor.undo; import com.badlogic.gdx.math.Vector2; import com.bladecoder.engine.model.BaseActor; import com.bladecoder.engine.model.Scene; import com.bladecoder.engine.model.SpriteActor; import com.bladecoder.engineeditor.Ctx; public class Undo...
302
890
import pytest from tests.smoke.organizations.admins.base_admin import BaseAdmin class TestAdmins(BaseAdmin): ADDITIONAL_ADMIN_EMAIL = "<EMAIL>" def setUp(self): # (if you are copying and pasting, update class title below) super(TestAdmins, self).setUp() def tearDown(self): # (if...
687
585
<filename>caffe2/operators/clip_op.h<gh_stars>100-1000 /** * Copyright (c) 2016-present, Facebook, 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/li...
847
6,969
""" # Explanation: - https://kartikkukreja.wordpress.com/2013/08/17/beating-binary-search-the-interpolation-search/ - https://www.geeksforgeeks.org/interpolation-search/ """ def interpolation_search(array, target): lo = 0 hi = len(array) - 1 while hi >= lo and target >= array[lo] and target <= a...
416
746
<filename>AndroidStudio/practice/fundamentals/1st/Layoutpractice/src/main/java/jp/mixi/practice/layout/MainActivity.java package jp.mixi.practice.layout; import android.content.Context; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; ...
1,227
1,144
/****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * * This program is free software, you can redistribute it and/or modify it * ...
1,589
14,668
<filename>components/speech/upstream_loader_client.h // Copyright 2020 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_SPEECH_UPSTREAM_LOADER_CLIENT_H_ #define COMPONENTS_SPEECH_UPSTREAM_LOADER_CLIENT_...
334
356
<gh_stars>100-1000 package com.zjb.volley.core.request; import android.net.Uri; import android.text.TextUtils; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Arrays; import java.util.Collectio...
4,103
1,428
package day4; javax.swing.JOptionPane; public class Fibonacci { public static void main(String[] args) { int n = Integer.parseInt(JOptionPane.showInputDialog("Enter number of terms :")); String serie = ""; int[] fibonacci = new int[n]; fibonacci[0] = 1; fibonacci[1] = 1; for(int i=2;i<n;...
378
430
import argparse import os import subprocess import faiss import numpy as np import pandas as pd import torch import torch.nn.functional as F from torchvision import transforms from tqdm import tqdm from cirtorch.datasets.genericdataset import ImagesFromList from cirtorch.datasets.testdataset import configdataset from...
2,944
2,053
/* * Copyright 2015 the original author or authors. * @https://github.com/scouter-project/scouter * * 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...
382
578
<filename>src/ui/Forward.h #pragma once #include <infra/Config.h> #include <infra/Forward.h> #include <type/Forward.h> #include <math/Forward.h> #include <ctx/Forward.h> #ifndef TWO_UI_EXPORT #define TWO_UI_EXPORT TWO_IMPORT #endif namespace two { namespace ui { export_ enum class PopupFlags : unsigned int; ...
1,357
322
<filename>eagle-security/eagle-security-common/src/main/java/org/apache/eagle/security/enrich/DataEnrichLCM.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 o...
445
2,338
// RUN: %clang_cc1 %s -flax-vector-conversions=none -ffreestanding -triple=x86_64-unknown-unknown -target-feature +avx512vp2intersect -target-feature +avx512vl -emit-llvm -o - -Wall -Werror | FileCheck %s // RUN: %clang_cc1 %s -flax-vector-conversions=none -ffreestanding -triple=i386-unknown-unknown -target-feature +av...
989
882
package water.api; import org.junit.Assert; import org.junit.Test; import water.Key; import water.TestUtil; import water.fvec.Frame; import java.util.Arrays; public class ConfusionMatrixTest extends TestUtil { final boolean debug = false; @Test public void testIdenticalVectors() { simpleCMTest( "...
7,320
1,444
package org.mage.test.cards.control; import mage.constants.EmptyNames; import mage.constants.PhaseStep; import mage.constants.Zone; import org.junit.Assert; import org.junit.Test; import org.mage.test.serverside.base.CardTestPlayerBase; /** * Tests the effect: - Exile target creature you control, then return that ca...
3,324
678
// // AboutViewController.h // iSH // // Created by <NAME> on 9/23/18. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface AboutViewController : UITableViewController @property BOOL includeDebugPanel; @end NS_ASSUME_NONNULL_END
99
778
<filename>applications/ShapeOptimizationApplication/custom_utilities/mapping/symmetry_revolution.h // ============================================================================== // KratosShapeOptimizationApplication // // License: BSD License // license: ShapeOptimizationApplication/licen...
582
806
<reponame>yinxtno1/aliyun-oss-test-demo package com.alibaba.sdk.android.oss.model; public class DeleteBucketLoggingResult extends OSSResult { }
55
3,212
/* * 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 ...
811
518
<reponame>e-ntro-py/desktop-app { "name": "Kaggle", "category": "Developer Tools", "start_url": "https://www.kaggle.com/", "icons": [ { "src": "https://cdn.filestackcontent.com/p4x2RC5ITeiF7DHdExiC", "platform": "browserx" } ], "theme_color": "#20BEFF", "scope": "https://www.kaggle.com...
173
422
// // Getdown - application installer, patcher and launcher // Copyright (C) 2004-2018 Getdown authors // https://github.com/threerings/getdown/blob/master/LICENSE package com.threerings.getdown.tools; import java.io.File; import java.io.IOException; import java.security.GeneralSecurityException; import org.apache.t...
947
23,901
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
1,374
387
""" #################################################################################################### # Copyright Info : Copyright (c) <NAME> @ Hikvision Research Institute. All rights reserved. # Filename : tp_r50_e2e_pretrain.py # Abstract : Model settings for text perceptron spotter end-to-en...
822
348
<gh_stars>100-1000 {"nom":"Labatmale","dpt":"Pyrénées-Atlantiques","inscrits":205,"abs":51,"votants":154,"blancs":24,"nuls":4,"exp":126,"res":[{"panneau":"1","voix":88},{"panneau":"2","voix":38}]}
83
890
<reponame>light1021/asylo /* * * Copyright 2020 Asylo 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 ...
461
820
/** * Copyright (C) 2013-2020 <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 applicable la...
1,543
5,079
<filename>apps/pig/src/pig/urls.py #!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Ve...
567
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Orbigny","circ":"3ème circonscription","dpt":"Indre-et-Loire","inscrits":546,"abs":290,"votants":256,"blancs":23,"nuls":9,"exp":224,"res":[{"nuance":"UDI","nom":"<NAME>","voix":126},{"nuance":"SOC","nom":"<NAME>","voix":98}]}
123
626
package org.jsmart.zerocode.core.yaml; import org.jsmart.zerocode.core.domain.HostProperties; import org.jsmart.zerocode.core.domain.JsonTestCase; import org.jsmart.zerocode.core.domain.Scenario; import org.jsmart.zerocode.core.tests.customrunner.TestOnlyZeroCodeUnitRunner; import org.junit.Test; import org.junit.runn...
493
20,325
{ "home": { "title": "Dobrodošli, Java Hipsteru!", "subtitle": "Ovo je početna stranica", "logged": { "message": "Prijavljeni ste kao korisnik \"{{username}}\"." }, "question": "Ako imate pitanja o JHipsteru:", "link": { "homepage": "JHipster p...
369
2,091
import numpy as np import scipy.stats as ss import scipy.special as sp from .family import Family from .flat import Flat from .normal import Normal from .gas_recursions import gas_recursion_exponential_orderone, gas_recursion_exponential_ordertwo from .gas_recursions import gasx_recursion_exponential_orderone, gasx_r...
5,277
5,272
// // LMJCALayerYSDHViewController.h // PLMMPRJK // // Created by HuXuPeng on 2017/10/23. // Copyright © 2017年 GoMePrjk. All rights reserved. // #import "LMJCALayerViewController.h" @interface LMJCALayerYSDHViewController : LMJCALayerViewController @end
101
921
# Copyright 2019 The Forseti Security 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 ap...
421
4,526
#ifndef OSRM_ENGINE_DATAFACADE_SHARED_MEMORY_ALLOCATOR_HPP_ #define OSRM_ENGINE_DATAFACADE_SHARED_MEMORY_ALLOCATOR_HPP_ #include "engine/datafacade/contiguous_block_allocator.hpp" #include "storage/shared_data_index.hpp" #include "storage/shared_memory.hpp" #include <memory> namespace osrm { namespace engine { name...
390
331
<gh_stars>100-1000 len(df[~df.Cancelled])
20
1,602
<reponame>jhh67/chapel /* Intel Atom/64 gmp-mparam.h -- Compiler/machine parameter header file. Copyright 2019 Free Software Foundation, Inc. This file is part of the GNU MP Library. The GNU MP Library is free software; you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General P...
6,090
2,226
<filename>src/server/ffplay/player.h #ifndef PLAYER_H #define PLAYER_H #include "types.h" #include <atomic> class Player { static VideoState* cur_stream; //Config config; static std::atomic_bool run; static double remaining_time; public: Player(); bool start(Config config); static void setVideoState(...
186
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 "services/network/public/cpp/network_isolation_key_mojom_traits.h" #include "base/unguessable_token.h" namespace...
558
311
<reponame>jurecuhalev/snowflake-connector-python<gh_stars>100-1000 // // Copyright (c) 2012-2021 Snowflake Computing Inc. All rights reserved. // #ifndef PC_TIMECONVERTER_HPP #define PC_TIMECONVERTER_HPP #include "IColumnConverter.hpp" #include "Python/Common.hpp" #include "Python/Helpers.hpp" #include "Util/time.hpp...
809
3,212
/* * 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 ...
1,063
719
<reponame>Shenzhen-Cloudatawalk-Technology-Co-Ltd/EdgeML // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include <stddef.h> #include "quantized_utils.h" void q15_v_add(const Q15_T* vec1, const Q15_T* vec2, ITER_T len, Q15_T* ret, SCALE_T scvec1, SCALE_T ...
22,897
799
<reponame>diCagri/content { "associatedToAll": false, "associatedTypes": [ "Shadow IT" ], "caseInsensitive": true, "cliName": "shadowitcloudaccounttype", "closeForm": false, "content": true, "editForm": true, "group": 0, "hidden": false, "id": "incident_shadowitclouda...
400
517
package ro.isdc.wro; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertSame; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import ro.isdc.wro.config.Context; /** * @author <NAME> */ public class TestWroRuntimeException { @BeforeClass public ...
344
348
{"nom":"Larroque","circ":"8ème circonscription","dpt":"Haute-Garonne","inscrits":309,"abs":70,"votants":239,"blancs":32,"nuls":0,"exp":207,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":117},{"nuance":"SOC","nom":"<NAME>","voix":90}]}
95
1,127
<reponame>ryanloney/openvino-1 // Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <gtest/gtest.h> #include <tests_common.hpp> #include <legacy/ie_layers_internal.hpp> #include <legacy/details/ie_cnn_network_iterator.hpp> #include <functional_test_utils/plugin...
9,129
999
<gh_stars>100-1000 # Copyright 2020 Netflix, 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...
8,996
365
from core.redis import rds from core.triage import Triage from core.parser import ScanParser from db.db_paths import COMMON_WEB_PATHS from core.logging import logger class Rule: def __init__(self): self.rule = 'VLN_92F9' self.rule_severity = 4 self.rule_description = 'This rule checks for open Git R...
638
681
{ "id":"google", "factoryAlias":"oauth2", "title":"Google", "subtitle":"", "factoryData":"type: google | userEndpoint: NONE | clientId: FIXME | clientSecret: FIXME", "enabled":true }
84
3,200
/** * Copyright 2021 Huawei Technologies 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...
2,566
1,449
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # Name: common/misc.py # Purpose: Everything that doesn't fit into anything else. # # Authors: <NAME> # <NAME> # # Copyright: Copyright © 2009-2020 <NAME> and the music21 Project #...
3,390
527
<gh_stars>100-1000 """yt-dlg __main__ file. __main__ file is a python 'executable' file which calls the youtube_dl_gui.app main() function in order to start the app. It can be used to start the app from the package directory OR it can be used to start the app from a different directory after you have installed the you...
290
324
/* * 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 ...
1,603
4,538
/** ****************************************************************************** * @file rtl8721d_otf.h * @author * @version V1.0.0 * @date 2016-05-17 * @brief This file contains all the functions prototypes for the flash run time decrypt firmware * library. **************************...
1,738
6,717
#include "RequestData.h" using namespace ApplicationInsights::core; RequestData::RequestData() : RequestData(L"Microsoft.ApplicationInsights.Request", L"RequestData") { } RequestData::RequestData(std::wstring envelopeName, std::wstring baseType) : Domain(envelopeName, baseType), m_ver(2) { } RequestData...
890
3,799
/* * Copyright 2017 The Android Open Source Project * * 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 applica...
561
3,861
#ifndef __PCCTS_ISTREAM_H__ #define __PCCTS_ISTREAM_H__ #ifdef PCCTS_USE_NAMESPACE_STD #include <istream> #else #include <istream.h> #endif #endif
81
779
<reponame>it-at-m/digiwf-json-schema<gh_stars>100-1000 package org.everit.json.schema.regexp; import static java.util.Objects.requireNonNull; import java.util.Optional; public interface Regexp { Optional<RegexpMatchingFailure> patternMatchingFailure(String input); } abstract class AbstractRegexp implements Re...
201
1,837
<reponame>xincao9/Zebra<filename>zebra-client/src/main/java/com/dianping/zebra/group/config/DefaultSystemConfigManager.java /* * Copyright (c) 2011-2018, <NAME>. All Rights Reserved. * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distribu...
1,936
765
/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Accellera licenses...
1,584
521
/* $Id: RTPathSplit.cpp $ */ /** @file * IPRT - RTPathSplit */ /* * Copyright (C) 2013-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify it under the terms of t...
2,236
368
<gh_stars>100-1000 /* * Copyright (c) 2016-2019 <NAME> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * includ...
2,877
2,073
<filename>Hadoop/apache-mahout-0.10.2-compile/math/src/main/java/org/apache/mahout/math/random/Missing.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 owners...
615
1,006
/**************************************************************************** * boards/arm/cxd56xx/common/src/cxd56_spisd.c * * 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...
1,168
568
package com.novoda.stickystaggered; import android.content.Context; import android.util.AttributeSet; import com.etsy.android.grid.StaggeredGridView; public class NovoStaggeredGridView extends StaggeredGridView { public NovoStaggeredGridView(Context context) { super(context); } public NovoStagge...
230
2,039
package org.nd4j.linalg.function; /** * BiConsumer is an operation that accepts two arguments and returns no result. * * @param <T> Type of first argument * @param <U> Type of second argument */ public interface BiConsumer<T, U> { /** * Perform the operation on the given arguments * * @param t...
138
7,482
/* * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef _HARDWARE_STRUCTS_PIO_H #define _HARDWARE_STRUCTS_PIO_H #include "hardware/address_mapped.h" #include "hardware/platform_defs.h" #include "hardware/regs/pio.h" typedef struct { io_rw_32 ctrl; io_ro_32...
601
6,140
import shutil, os, datetime import numpy as np import tensorflow as tf BUCKET = None # set from task.py PATTERN = 'of' # gets all files # Determine CSV, label, and key columns CSV_COLUMNS = 'weight_pounds,is_male,mother_age,plurality,gestation_weeks,key'.split(',') LABEL_COLUMN = 'weight_pounds' KEY_COLUMN = 'key' ...
2,583
3,508
package com.fishercoder.solutions; import java.util.HashMap; import java.util.Map; public class _705 { public static class Solution1 { class MyHashSet { Map<Integer, Integer> map; /** * Initialize your data structure here. */ public MyHashSet(...
467
435
<gh_stars>100-1000 { "description": "MVP: Minimum Viable Product. We all follow agile product development\nprocess, iterate fast, fail fast and in the disguise of a MVP we cut\ncorners to release a product to the market ASAP. In this process, their\nare several compromises we make in the tech set up and the codebase ...
373
340
<reponame>leha-bot/eve /** EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT **/ //================================================================================================== #include "test.hpp" #include <eve/constant/valmax.hpp> #include <eve/constant/v...
2,598
897
<reponame>zhcet19/NeoAlgo-1 // C program to find the Length of Longest Increasing Subsequence /* In this problem, given an array we have to find the length of the longest increasing subsequence that array can make. The problem can be solved using Dynamic Programming */ #include <stdio.h> #include <string.h> int length...
840
318
/* * This file is part of RebornCore, licensed under the MIT License (MIT). * * Copyright (c) 2021 TeamReborn * * 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, inc...
966
327
#ifndef RCTConvert_GCKMediaQueueItem_h #define RCTConvert_GCKMediaQueueItem_h #import <GoogleCast/GoogleCast.h> #import <React/RCTConvert.h> @interface RCTConvert (GCKMediaQueueItem) + (NSArray<GCKMediaQueueItem *> *)GCKMediaQueueItemArray:(id)json; + (GCKMediaQueueItem *)GCKMediaQueueItem:(id)json; + (nonnull id)fr...
165
453
<gh_stars>100-1000 /* Oki bug report [OKI002](gcc008_2) The following program is not executed. Error message is as follow. illegal trap: 0x12 pc=d000d954 d000d954 08000240 NOP */ #include <stdio.h> #include <stdarg.h> int func (int, ...); void main () { func (2, 1., 2., 3.); pass ("fu...
185
368
<filename>plugin_III/game_III/CPathFind.h /* Plugin-SDK (Grand Theft Auto 3) header file Authors: GTA Community. See more here https://github.com/DK22Pac/plugin-sdk Do not delete this comment block. Respect others' work! */ #pragma once #include "PluginBase.h" #include "CVector2D.h" #include "CPathNode...
2,718