max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
47,880
<filename>guava-testlib/src/com/google/common/collect/testing/DerivedGenerator.java /* * Copyright (C) 2012 The Guava 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:/...
366
302
<gh_stars>100-1000 // 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 req...
4,726
1,927
<reponame>alimy/scene<gh_stars>1000+ /* * Copyright (C) 2019 ByteDance 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 * * U...
693
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Ligand", "definitions": [ "An ion or molecule attached to a metal atom by coordinate bonding.", "A molecule that binds to another (usually larger) molecule." ], "parts-of-speech": "Noun" }
104
2,637
<reponame>vinh107108/amazon-freertos<filename>demos/device_defender_for_aws/defender_demo.c /* * FreeRTOS V202107.00 * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated docu...
12,185
473
<reponame>pingjuiliao/cb-multios #!/usr/bin/env python # # Copyright (C) 2014 <NAME> <<EMAIL>> # from generator.actions import Actions import random class Contact(): first = "" def genderToStr(self): return {"M":"Male","F":"Female","T":"Trans-Gender"}.setdefault(self.gender, "Other") def __init__(self, first=...
3,690
348
{"nom":"Tournefeuille","circ":"6ème circonscription","dpt":"Haute-Garonne","inscrits":20884,"abs":9153,"votants":11731,"blancs":95,"nuls":59,"exp":11577,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":5006},{"nuance":"FI","nom":"M. <NAME>","voix":1531},{"nuance":"LR","nom":"<NAME>","voix":1401},{"nuance":"SOC","nom":"...
360
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 ...
2,464
7,801
<reponame>jiqimaogou/kotlin /* * Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ #include "CoverageMappingC.h" #include <llvm/ProfileData/Coverage/CoverageMapping.h> #include <llvm/ProfileData/Coverage/CoverageMappingWri...
4,207
435
<gh_stars>100-1000 /** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. */ #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> /** FBMemoryProfilerPresenting Prot...
249
1,132
package javarepl; import com.googlecode.totallylazy.Pair; import com.googlecode.totallylazy.Sequence; import com.googlecode.totallylazy.Sequences; import com.googlecode.totallylazy.functions.Function1; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.lang.reflect.Invocation...
2,530
3,614
package com.central.common.resolver; import cn.hutool.core.util.StrUtil; import com.central.common.annotation.LoginClient; import com.central.common.constant.SecurityConstants; import lombok.extern.slf4j.Slf4j; import org.springframework.core.MethodParameter; import org.springframework.web.bind.support.WebDataBinderFa...
782
956
# This file is part of Scapy # See http://www.secdev.org/projects/scapy for more information # Copyright (C) <NAME> <<EMAIL>> # This program is published under a GPLv2 license # scapy.contrib.description = Python-Can CANSocket # scapy.contrib.status = loads """ Python-CAN CANSocket Wrapper. """ import time import st...
1,373
453
{ "plugins": [ ["proposal-unicode-property-regex", { "useUnicodeFlag": true }] ] }
50
348
<gh_stars>100-1000 {"nom":"Guéblange-lès-Dieuze","dpt":"Moselle","inscrits":133,"abs":30,"votants":103,"blancs":14,"nuls":8,"exp":81,"res":[{"panneau":"2","voix":53},{"panneau":"1","voix":28}]}
87
32,544
package com.baeldung.boot.jsp.repository.impl; import static org.junit.jupiter.api.Assertions.*; import java.util.*; import org.junit.jupiter.api.Test; import com.baeldung.boot.jsp.repository.BookRepository; import com.baeldung.boot.jsp.repository.model.BookData; public class InMemoryBookRepositoryUnitTest { ...
834
543
/* * Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
2,119
13,184
<filename>spm/Sources/IGListDiffKit/include/IGListIndexSetResult.h /* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <Foundation/Foundation.h> #import "IGListMoveIndex.h" ...
646
418
<filename>src/pretalx/person/migrations/0019_auto_20180821_1346.py<gh_stars>100-1000 # Generated by Django 2.0.8 on 2018-08-21 18:46 from django.db import migrations def fill_names(apps, schema_editor): User = apps.get_model("person", "User") for user in User.objects.all(): if not user.name: ...
253
14,668
<reponame>zealoussnow/chromium // 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/test/chromedriver/log_replay/devtools_log_reader.h" #include "base/base_paths.h" #include "base/files/file...
2,022
8,315
package com.airbnb.epoxy; import android.content.Context; import android.widget.FrameLayout; @ModelView(defaultLayout = 1) public class TextPropModelView extends FrameLayout { public TextPropModelView(Context context) { super(context); } @TextProp public void setTitle(CharSequence title) { } }
95
8,437
/* * Tencent is pleased to support the open source community by making QMUI_Android available. * * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the MIT License (the "License"); you may not use this file except in * compliance with the License. You may obtain ...
326
434
<reponame>marianopeck/Seaside-1 { "category" : "Seaside-GemStone-Email", "classinstvars" : [ ], "classvars" : [ "From", "To" ], "commentStamp" : "dkh 11/24/2009 11:18", "instvars" : [ ], "name" : "WAEmailErrorHandler", "pools" : [ ], "super" : "WAErrorHandler", "type" : "normal" }
150
839
<filename>testutils/src/test/java/org/apache/cxf/test/XPathAssertTest.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 information * regarding copyright ownership. The ASF...
919
955
import pkg_resources from nornir.init_nornir import InitNornir __version__ = pkg_resources.get_distribution("nornir").version __all__ = ("InitNornir", "__version__")
61
575
<reponame>sarang-apps/darshan_browser // 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 CONTENT_BROWSER_BACKGROUND_FETCH_STORAGE_GET_REGISTRATION_TASK_H_ #define CONTENT_BROWSER_BACKGROUND_FETCH_S...
784
14,668
// 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 <ppapi/c/pp_errors.h> #include <ppapi/c/pp_module.h> #include <ppapi/c/ppb.h> #include <ppapi/c/ppp.h> #include <ppapi/cpp/instance.h> #include <...
593
1,652
<filename>redis/redis-proxy-client/src/main/java/com/ctrip/framework/xpipe/redis/servlet/ProxyServletContextListener.java package com.ctrip.framework.xpipe.redis.servlet; import javax.servlet.ServletContext; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import javax.servlet.Ser...
396
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Saint-Michel-sur-Ternoise","circ":"1ère circonscription","dpt":"Pas-de-Calais","inscrits":732,"abs":377,"votants":355,"blancs":33,"nuls":6,"exp":316,"res":[{"nuance":"MDM","nom":"<NAME>","voix":201},{"nuance":"FN","nom":"<NAME>","voix":115}]}
121
1,743
<reponame>fordlaturnas/aws-serverless-airline-booking { "version": "0.2.0", "configurations": [ { "name": "Ingest Fn", "type": "node", "request": "attach", "address": "localhost", "port": 5858, // Location to where the transpiled JS...
879
2,146
<reponame>Costallat/hunter<gh_stars>1000+ #include <glog/logging.h> int main(int argc, char* argv[]) { google::InitGoogleLogging(argv[0]); FLAGS_logtostderr = 1; int num_cookies = 42; LOG(INFO) << "Found " << num_cookies << " cookies"; }
105
7,470
<reponame>asklar/hermes-windows<gh_stars>1000+ /* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #ifndef HERMES_VM_RUNTIMEMODULE_INLINE_H #define HERMES_VM_RUNTIMEMODULE_INLINE_H #...
403
393
<filename>cloud-stream-rabbitmq-consumer-8803/src/main/java/com/liuscoding/springcloud/StreamMQApplication8803.java package com.liuscoding.springcloud; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.eureka...
213
9,724
<gh_stars>1000+ // Copyright 2015 The Emscripten Authors. All rights reserved. // Emscripten is available under two separate licenses, the MIT license and the // University of Illinois/NCSA Open Source License. Both these licenses can be // found in the LICENSE file. #include <assert.h> #include <emscripten.h> exte...
192
746
<gh_stars>100-1000 #!/usr/bin/env impala-python # # 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 Lic...
2,163
2,143
package com.tngtech.archunit.testutils; import java.lang.annotation.Annotation; import com.tngtech.archunit.core.domain.JavaModifier; import static java.lang.String.format; public class ExpectedField { public static ExpectedField.Creator of(Class<?> owner, String fieldName) { return new ExpectedField.C...
491
1,936
#include "ceres-error-terms/inertial-error-term-eigen.h" #include <iostream> #include <imu-integrator/imu-integrator-eigen.h> #include <maplab-common/quaternion-math.h> #include "ceres-error-terms/parameterization/quaternion-param-eigen.h" namespace ceres_error_terms { template <typename Derived> void DrawSparsity...
5,929
2,073
<filename>pac4j-oauth/src/main/java/org/pac4j/scribe/builder/api/WeiboApi20.java package org.pac4j.scribe.builder.api; import com.github.scribejava.core.oauth2.bearersignature.BearerSignature; import com.github.scribejava.core.oauth2.bearersignature.BearerSignatureURIQueryParameter; import org.pac4j.scribe.extractors....
504
439
<filename>exercises/practice/queen-attack/.meta/src/reference/java/Queen.java final class Queen { private final int row; private final int column; Queen(final int row, final int column) { this.row = row; this.column = column; validatePosition(); } int getRow() { ...
348
1,687
public class Solution4 { // 参考资料:https://zhuanlan.zhihu.com/p/189500715 /** * @param board a 2D board containing 'X' and 'O' * @return void */ public void solve(char[][] board) { if (board == null || board.length == 0 || board[0].length == 0) { return; } ...
1,050
436
//------------------------------------------------------------------------------ // // Name: vadd.c // // Purpose: Elementwise addition of two vectors (c = a + b) // // HISTORY: Written by <NAME>, December 2009 // Updated by <NAME> and <NAME>, October 2012 // Updated by <NAME...
3,900
399
/*- * #%L * athena-elasticsearch * %% * Copyright (C) 2019 - 2020 Amazon Web Services * %% * 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/LIC...
5,021
5,169
<reponame>Gantios/Specs<gh_stars>1000+ { "name": "EasyDate", "version": "0.11", "summary": "Categoryes for making NSDates easy", "license": "MIT", "platforms": { "ios": "9.0", "osx": "10.10" }, "source": { "git": "https://github.com/BadChoice/EasyDate.git", "tag": "0.11" }, "dependenci...
268
348
<gh_stars>100-1000 {"nom":"Saint-Glen","circ":"3ème circonscription","dpt":"Côtes-d'Armor","inscrits":493,"abs":220,"votants":273,"blancs":6,"nuls":7,"exp":260,"res":[{"nuance":"LR","nom":"<NAME>","voix":151},{"nuance":"REM","nom":"<NAME>","voix":109}]}
103
12,366
// Copyright 2018 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 in ...
1,031
749
<reponame>liu12151407/OXChart package com.openxu.cview.xmstock.bean; import java.util.List; /** * autour : xiami * date : 2018/3/13 14:59 * className : ZhabanInfo * version : 1.0 * description : 炸板 */ public class ZhabanInfo { private List<List<String>> zhaban_line; private String zhaban_tag; publ...
303
884
/* * Copyright 2014 - 2021 Blazebit. * * 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 agre...
872
5,411
/* * This file is part of the CitizenFX project - http://citizen.re/ * * See LICENSE and MENTIONS in the root of the source tree for information * regarding licensing. */ // This file contains code adapted from the original GTA IV script hook, the // copyright notice for which follows below. /******************...
953
1,136
<filename>external/DCNv2/testcpu.py #!/usr/bin/env python from __future__ import absolute_import from __future__ import print_function from __future__ import division import time import torch import torch.nn as nn from torch.autograd import gradcheck from dcn_v2 import dcn_v2_conv, DCNv2, DCN from dcn_v2 import dcn_v...
4,456
337
/* * 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 ...
636
622
/* Copyright 2019 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...
285
1,292
/** * */ package org.sikuli.guide; import java.awt.Color; import java.awt.Point; import java.awt.Rectangle; public class Connector extends SikuliGuideArrow { public Connector(SikuliGuideComponent source, SikuliGuideComponent destination){ super(source, destination); // setForeground(Color.wh...
335
1,023
<filename>src/plugins/console/server/lib/spec_definitions/json/generated/cluster.remote_info.json { "cluster.remote_info": { "methods": [ "GET" ], "patterns": [ "_remote/info" ], "documentation": "https://opensearch.org/docs/latest/opensearch/rest-api/remote-info/" } }
130
674
<filename>libs/validators/__init__.py from .between import between # noqa from .domain import domain # noqa from .email import email # noqa from .extremes import Max, Min # noqa from .i18n import fi_business_id, fi_ssn # noqa from .iban import iban # noqa from .ip_address import ipv4, ipv6 # noqa from .length im...
204
851
<gh_stars>100-1000 /* * Copyright 2004 The WebRTC Project Authors. All rights reserved. * * 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. An additional intellectual property rights grant can be found * in the file PATENTS....
2,994
965
<gh_stars>100-1000 BEGIN_COM_MAP(CBeeper) COM_INTERFACE_ENTRY(IBeeper) COM_INTERFACE_ENTRY(IDispatch) COM_INTERFACE_ENTRY_TEAR_OFF(IID_ISupportErrorInfo, CBeeper2) END_COM_MAP()
84
1,775
_base_ = ['./hrnet_w32_coco_256x192.py'] # fp16 settings fp16 = dict(loss_scale='dynamic')
43
357
from .. import Circuit from .. import gate as g def flatten(c: Circuit) -> Circuit: """expands slice and multiple targets into single target""" n_qubits = c.n_qubits ops = [] for op in c.ops: if isinstance(op, (g.OneQubitGate, g.Reset)): ops += [op.create(t, op.params, None) for t ...
640
345
#pragma once #include <string> #include <memory> #include <vector> #include <nlohmann/json.hpp> #include "Sqex.h" #include "Sqex_Eqdp.h" #include "Sqex_EqpGmp.h" #include "Sqex_Est.h" #include "Sqex_Imc.h" namespace Sqex::ThirdParty::TexTools { struct ModPackEntry { std::string Name; std::string Author; std:...
2,544
5,169
{ "name": "XTencentOpenAPI", "version": "3.5.1", "summary": "A mirror of TencentOpenAPI.", "homepage": "https://wiki.connect.qq.com", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "tramp": "<EMAIL>" }, "source": { "git": "https://github.com/imotoboy/XTencentOpenAPI.git"...
436
1,061
package org.sword.wechat4j; import static org.junit.Assert.*; import org.junit.Test; import org.sword.wechat4j.message.CustomerMsg; import com.alibaba.fastjson.JSONObject; public class SendMsgTest { CustomerMsg senMsg = new CustomerMsg(""); @Test public void testSendText() { // String expected = "Hello Worl...
517
1,905
# -*- coding: utf-8 -*- import numpy as np import pandas as pd import graphviz import graphviz.backend from numpy.distutils.system_info import f2py_info from sklearn import tree from sklearn.datasets import load_boston, load_iris, load_wine, load_digits, load_breast_cancer, load_diabetes, fetch_mldata from matplotlib.f...
983
1,799
/* 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...
25,788
312
<reponame>nnnunnn/occa #ifndef OCCA_MODES_DPCPP_STREAM_HEADER #define OCCA_MODES_DPCPP_STREAM_HEADER #include <occa/internal/core/stream.hpp> #include <occa/internal/modes/dpcpp/polyfill.hpp> namespace occa { namespace dpcpp { class streamTag; class stream : public occa::modeStream_t { public: ...
290
530
package org.carlspring.strongbox.client; /** * This exception is thrown during the resolution or deployment of artifacts. * * @author mtodorov */ public class ArtifactTransportException extends Exception { public ArtifactTransportException() { } public ArtifactTransportException(String me...
410
1,602
<filename>third-party/qthread/qthread-src/src/queue.c #ifdef HAVE_CONFIG_H # include "config.h" #endif #include "qthread/qthread.h" #include "qt_alloc.h" #include "qt_mpool.h" #include "qt_asserts.h" #include "qt_debug.h" #include "qt_threadstate.h" #include "qt_qthread_mgmt.h" /* for qthread_internal_self() */ #in...
5,572
390
<gh_stars>100-1000 /* Copyright 2020-present Cornell University * * 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...
546
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,556
493
<gh_stars>100-1000 package com.jdh.microcraft.gui.mainmenu; import com.jdh.microcraft.Global; import com.jdh.microcraft.gfx.Font; import com.jdh.microcraft.gfx.Renderer; import com.jdh.microcraft.gui.DialogMenu; public class AboutMenu extends DialogMenu { public AboutMenu() { super( "ABOUT", ...
617
47,390
<filename>src/textord/tablerecog.h<gh_stars>1000+ /////////////////////////////////////////////////////////////////////// // File: tablerecog.h // Description: Functions to detect structure of tables. // Author: <NAME> // // (C) Copyright 2010, Google Inc. // Licensed under the Apache License, Version 2.0 (th...
4,436
1,338
// main.cpp #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <Application.h> #include <Bitmap.h> #include <Button.h> #include <Message.h> #include <MessageRunner.h> #include <Messenger.h> #include <View.h> #include <Window.h> #include "bitmap.h" enum { MSG_RESET = 'rset', MSG...
6,724
392
package com.platform.dao; import com.platform.entity.GroupBuyingVo; import java.util.List; import java.util.Map; /** * Dao * * @author xuyang * @email <EMAIL> * @date 2019-06-13 22:00:12 */ public interface GroupBuyingMapper extends BaseDao<GroupBuyingVo> { List<GroupBuyingVo> queryLoseList(Map map); }
120
2,112
/* * Copyright (c) Facebook, Inc. and 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 applic...
1,276
575
// 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 UI_GTK_NAV_BUTTON_PROVIDER_GTK_H_ #define UI_GTK_NAV_BUTTON_PROVIDER_GTK_H_ #include <map> #include "base/component_export.h" #include "ui/gfx/i...
533
522
<filename>src/algs/model/gametree/debug/AlphaBetaDebugNode.java<gh_stars>100-1000 package algs.model.gametree.debug; import algs.debug.Formatter; import algs.debug.IGraphEntity; import algs.debug.ISelectFont; /** * This node is used when depicting debugging information about an Alpha/Beta * node in the game tree pa...
1,105
575
<filename>chrome/browser/ui/webui/tab_strip/tab_before_unload_tracker.cc // 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. #include "chrome/browser/ui/webui/tab_strip/tab_before_unload_tracker.h" #include...
520
369
// Copyright (c) 2017-2021, Mudita <NAME>.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include "ThreadsModel.hpp" #include <AppWindow.hpp> #include <gui/widgets/Icon.hpp> #include <Image.hpp> #include <Label.hpp> #include <ListView.hpp> #include <Text.hp...
432
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. #include "test_print_preview_dialog_cloned_observer.h" #include "chrome/browser/printing/test_print_view_manager_for_request_preview.h" #include "content...
282
622
<filename>nifty-client/src/main/java/com/facebook/nifty/client/HttpClientChannel.java<gh_stars>100-1000 /* * Copyright (C) 2012-2016 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 L...
1,523
892
<filename>advisories/unreviewed/2022/05/GHSA-449q-v4j2-5h8p/GHSA-449q-v4j2-5h8p.json { "schema_version": "1.2.0", "id": "GHSA-449q-v4j2-5h8p", "modified": "2022-05-13T01:30:06Z", "published": "2022-05-13T01:30:06Z", "aliases": [ "CVE-2015-5320" ], "details": "Jenkins before 1.638 and LTS before 1.625....
536
1,080
#include "ping/parse.h" #include "ping/compose.h"
21
1,958
<filename>src/main/java/com/freetymekiyan/algorithms/other/StringDecompression.java<gh_stars>1000+ package com.freetymekiyan.algorithms.other; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.util.Stack; /** * input : abbaba4x[a]bb3x[abaa2x[bab]] * <p> *...
1,164
311
<gh_stars>100-1000 package io.github.zeleven.mua; public class FileEntity { private String name; private long lastModified; private String absolutePath; public FileEntity() { } public FileEntity(String name, long lastModified, String absolutePath) { this.name = name; ...
388
2,151
<filename>chrome/browser/ui/ash/accessibility/accessibility_controller_client_unittest.cc<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. #include "chrome/browser/ui/ash/accessibility/acc...
2,325
1,273
package org.broadinstitute.hellbender.utils.reference; import htsjdk.samtools.SAMSequenceDictionary; import htsjdk.samtools.SAMSequenceRecord; import org.broadinstitute.hellbender.utils.SimpleInterval; import java.util.List; import java.util.function.IntFunction; import java.util.function.ToIntFunction; /** * Class...
3,472
5,964
<reponame>wenfeifei/miniblink49<filename>third_party/WebKit/Source/core/events/PointerIdManager.h // 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 PointerIdManager_h #define PointerIdManager_h #...
398
428
<reponame>SmileyAG/bspsrc /* ** 2013 July 3 3 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than...
2,493
375
<gh_stars>100-1000 package io.lumify.dbpedia.mapreduce; import io.lumify.core.config.Configuration; import io.lumify.core.config.HashMapConfigurationLoader; import io.lumify.core.exception.LumifyException; import io.lumify.core.mapreduce.LumifyElementMapperBase; import io.lumify.core.model.properties.LumifyProperties;...
2,676
329
<filename>java/src/main/java/com/cloudera/api/model/ApiHdfsCloudReplicationArguments.java<gh_stars>100-1000 // Copyright (c) 2016 Cloudera, Inc. All rights reserved. package com.cloudera.api.model; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import com.cloudera.api.Ap...
923
379
<reponame>oimchat/oim-fx<filename>client/oim-client-ui-fx/src/main/java/com/oim/ui/fx/classics/find/FindGroupPane.java package com.oim.ui.fx.classics.find; import com.oim.fx.common.component.SearchBox; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.control.Button; import javafx...
735
739
""" * Copyright 2009 <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 writing, softwa...
615
2,069
<reponame>MatthewEskolin/Exceptionless [{"Id":null,"OrganizationId":null,"ProjectId":null,"StackId":null,"IsFirstOccurrence":false,"IsFixed":false,"IsHidden":false,"CreatedUtc":"0001-01-01T00:00:00","Idx":{},"Type":"usage","Source":"app.Dashboard.Recent.events.nextPage","Date":"2020-01-01T00:00:00-06:00","Tags":["UI"],...
311
45,293
<filename>compiler/tests-spec/testData/diagnostics/linked/sectionsMap.json<gh_stars>1000+ { "type-inference": [ "smart-casts/smart-cast-sink-stability", "local-type-inference", "smart-casts/smart-cast-types" ], "overload-resolution": [ "building-the-overload-candidate-set-ocs/operator-call", "...
1,810
1,374
<gh_stars>1000+ package def.dom; public class HTMLMenuElement extends HTMLElement { public java.lang.Boolean compact; public java.lang.String type; public static HTMLMenuElement prototype; public HTMLMenuElement(){} }
74
1,457
<gh_stars>1000+ // Copyright (c) Facebook, Inc. and its affiliates. // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include "esp/geo/Geo.h" #include <Magnum/Math/FunctionsBatch.h> #include <Magnum/Primitives/Circle.h> #include <Magnum/Trad...
6,008
635
<filename>tests/test_exponential_moving_average.py from __future__ import absolute_import import unittest import numpy as np from tests.sample_data import SampleData from pyti import exponential_moving_average class TestExponentialMovingAverage(unittest.TestCase): def setUp(self): """Create data to use f...
5,234
1,414
<filename>waterbox/bsnescore/bsnes/nall/hash/crc64.hpp #pragma once #include <nall/hash/hash.hpp> namespace nall::Hash { struct CRC64 : Hash { using Hash::input; CRC64(array_view<uint8_t> buffer = {}) { reset(); input(buffer); } auto reset() -> void override { checksum = ~0; } auto input(u...
483
1,253
// Create dynamic matrices // Implements basic operations #include <stdio.h> #include <stdlib.h> #include <assert.h> typedef struct { float *data; int rows, cols; } matrix_t; // Allocation and destruction matrix_t *create_matrix(float numbers[], int rows, int cols); void destroy_matrix(matrix_t *matrix); // ...
1,896
320
/* * Copyright (c) 2019- jMonkeyEngine * 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 lis...
3,680
370
<gh_stars>100-1000 package com.ifttt.sparklemotiondemo; import android.app.Activity; import android.os.Bundle; import android.support.v4.view.ViewPager; import com.ifttt.sparklemotion.Page; import com.ifttt.sparklemotion.SparkleMotion; import com.ifttt.sparklemotion.animations.RotationAnimation; /** * Demo Activity ...
379