max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,150
<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. from yacs.config import CfgNode as CN from pyrobot.cfg.config import get_cfg_defaults _C = get_cfg_defaults() # whether th...
476
7,451
from ..objecttype import ObjectType from ..schema import Schema from ..uuid import UUID class Query(ObjectType): uuid = UUID(input=UUID()) def resolve_uuid(self, info, input): return input schema = Schema(query=Query) def test_uuidstring_query(): uuid_value = "dfeb3bcf-70fd-11e7-a61a-6003088f...
323
2,782
<reponame>mendskyz/Android package course.examples.contentproviders.stringcontentprovider; class DataRecord { private static int id; // Unique ID private final int _id; // Display Name private final String _data; DataRecord(String _data) { this._data = _data; this._id = id++; } String getData() { re...
136
7,892
<gh_stars>1000+ /* Copyright 2012-2016 <NAME> <http://drobilla.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THIS SOFTWARE IS PROVIDED "AS ...
14,505
5,169
<reponame>Gantios/Specs { "name": "Kekka", "version": "0.8.1", "summary": "Kekka (結果) means Result. This small framework is inspired from Haskell's monadic types.", "description": "This is a small framework with fundamental types like Result and Future\nwhich are expressed in pure functional way. This work is i...
412
4,403
package cn.hutool.poi.excel.sax; import cn.hutool.core.text.StrBuilder; import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.StrUtil; import cn.hutool.poi.excel.cell.FormulaCellValue; import cn.hutool.poi.excel.sax.handler.RowHandler; import org.apache.poi.ss.usermodel.BuiltinFormats; import org.apache.po...
3,873
852
import FWCore.ParameterSet.Config as cms from DQMOffline.Trigger.DiDispStaMuonMonitor_cfi import hltDiDispStaMuonMonitoring hltDiDispStaMuonCosmicMonitoring = hltDiDispStaMuonMonitoring.clone() hltDiDispStaMuonCosmicMonitoring.FolderName = cms.string('HLT/EXO/DiDispStaMuon/DoubleL2Mu23NoVtx_2Cha_CosmicSeed/') hltDiD...
1,270
511
/**************************************************************************** * * Copyright 2018 Samsung Electronics 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,590
2,189
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // // Copyright (c) 2011 The LevelDB Authors. All rights r...
5,137
863
#-*- coding:utf-8 -*- """ This module contains main implementations that encapsulate retrieval-related statistics about the quality of the recommender's recommendations. """ # Authors: <NAME> <<EMAIL>> # License: BSD Style. import operator import numpy as np from base import RecommenderEvaluator from metric...
12,139
23,901
<filename>eli5_retrieval_large_lm/check_flags.py<gh_stars>1000+ # 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...
935
34,359
/*++ Copyright (c) Microsoft Corporation Licensed under the MIT license. Module Name: - SettingsTab.h Abstract: - The SettingsTab is a tab whose content is a Settings UI control. They can coexist in a TabView with all other types of tabs, like the TerminalTab. There should only be at most one SettingsTa...
386
362
<reponame>google-admin/Accessibility-Test-Framework-for-Android /* * Copyright (C) 2015 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
13,161
2,023
import cStringIO import tokenize from collections import defaultdict, deque from decimal import Decimal from functools import partial __version__ = "1.1" __author__ = "<NAME>" __all__ = ["parse", "parseOne"] # For defining the default type for the defaultdict as to not use eval(type): # TODO: better method? TYPES =...
2,601
1,806
<reponame>yoav-orca/pants # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from abc import ABCMeta, abstractmethod from pathlib import Path from textwrap import dedent from typing import ClassVar, Iterable, List, Optional, Tuple, Type f...
2,601
2,111
/* * nvbio * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice,...
2,755
3,200
<reponame>GuoSuiming/mindspore<gh_stars>1000+ # 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 # # ...
879
340
package com.mikepenz.materialize; import android.app.Activity; import android.graphics.Color; import android.os.Build; import androidx.annotation.ColorInt; import androidx.annotation.ColorRes; import androidx.annotation.IdRes; import androidx.core.content.ContextCompat; import android.view.View; import android.view.Vi...
6,983
642
package com.jeesuite.springweb.ext.feign; import static feign.Util.CONTENT_ENCODING; import static feign.Util.CONTENT_LENGTH; import static feign.Util.ENCODING_DEFLATE; import static feign.Util.ENCODING_GZIP; import static java.lang.String.format; import java.io.IOException; import java.io.InputStream; import java.io...
2,389
763
package org.batfish.datamodel.packet_policy; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; import com.google.common.collect.ImmutableSet; import com.google.common.testing.EqualsTester; import org.apache.commons.lang3.SerializationUtils; import org.batfish.common.uti...
692
330
<gh_stars>100-1000 package org.enso.interpreter.node.expression.literal; import com.oracle.truffle.api.frame.VirtualFrame; import com.oracle.truffle.api.nodes.NodeInfo; import org.enso.compiler.core.IR; import org.enso.compiler.core.IR$Literal$Text; import org.enso.interpreter.node.ExpressionNode; import org.enso.inte...
467
14,668
// 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 COMPONENTS_CRONET_ANDROID_CRONET_INTEGRATED_MODE_STATE_H_ #define COMPONENTS_CRONET_ANDROID_CRONET_INTEGRATED_MODE_STATE_H_ #include "base/task/t...
317
376
#pragma once #include <Register/Utility.hpp> namespace Kvasir { //General Purpose Input_Output Port (PK) namespace PkData{ ///<PK Data Register using Addr = Register::Address<0x400c0a00,0xfffffffc,0x00000000,unsigned>; ///PK0 constexpr Register::FieldLocation<Addr,Register::maskFromRange...
1,263
1,792
package org.hongxi.whatsmars.common.profile; public class ProfileUtils { private static final String PROFILE_ENV_NAME = "PROFILE"; private static final String DEFAULT_PROFILE = "test"; public static String getProfile() { String profile = System.getProperty(PROFILE_ENV_NAME); return profil...
135
32,544
package com.baeldung.junit5.templates; public class UserIdGeneratorTestCase { private String displayName; private boolean isFeatureEnabled; private String firstName; private String lastName; private String expectedUserId; public UserIdGeneratorTestCase(String displayName, boolean isFeatureEnab...
344
3,432
<gh_stars>1000+ package org.telegram.abilitybots.api.sender; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.telegram.telegrambots.meta.api.methods.BotApiMethod; import org.telegram.telegrambots.meta.api.methods.send.SendMessage; import org.telegram.telegrambots.meta.api.objects....
718
1,351
<reponame>cmcfarlen/trafficserver<gh_stars>1000+ /** @file 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 A...
2,367
428
<reponame>ishine/pase<filename>setup.py from setuptools import setup setup( name='PASE', version='0.1.1-dev', packages=['pase', 'pase.models', 'pase.models.WorkerScheduler', 'pase.models.Minions'], )
91
438
<filename>src/languages/es-ES/fun/meme.json { "DESCRIPTION": "Envia un meme aleatorio.", "USAGE": "meme", "TITLE": "De {{SUBREDDIT}}", "FOOTER": "👍 {{UPVOTES}} 👎 {{DOWNVOTES}}" }
90
1,408
package com.pancm; /** * @author pancm * @Title: springboot-study * @Description: * @Version:1.0.0 * @Since:jdk1.8 * @date 2020/9/21 */ public class TaskTest { }
70
348
{"nom":"Saint-Sorlin-en-Valloire","circ":"4ème circonscription","dpt":"Drôme","inscrits":1589,"abs":754,"votants":835,"blancs":16,"nuls":3,"exp":816,"res":[{"nuance":"LR","nom":"Mme <NAME>","voix":250},{"nuance":"FN","nom":"M. <NAME>","voix":154},{"nuance":"REM","nom":"Mme <NAME>","voix":152},{"nuance":"SOC","nom":"<NA...
335
2,701
<gh_stars>1000+ /* * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * 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://w...
491
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...
2,055
872
<filename>934 Shortest Bridge.py<gh_stars>100-1000 #!/usr/bin/python3 """ In a given 2D binary array A, there are two islands. (An island is a 4-directionally connected group of 1s not connected to any other 1s.) Now, we may change 0s to 1s so as to connect the two islands together to form 1 island. Return the small...
1,468
907
// Copyright 2017 <NAME>. All rights reserved. // Use of this source code is governed by the MIT license that can be found in // the LICENSE file. zval *_value_init() { zval *tmp = malloc(sizeof(zval)); ZVAL_NULL(tmp); return tmp; } // Destroy and free engine value. void _value_destroy(engine_value *val) { zval_...
642
561
<reponame>ddesmond/gaffer<gh_stars>100-1000 ////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2019, Cinesite VFX Ltd. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
898
4,935
#ifndef ASYNC_BATON #define ASYNC_BATON #include <condition_variable> #include <memory> #include <mutex> #include <nan.h> #include "lock_master.h" #include "nodegit.h" #include "thread_pool.h" namespace nodegit { // Base class for Batons used for callbacks (for example, // JS functions passed as callback paramet...
854
308
from ddtrace import config from .. import trace_utils from ...constants import ANALYTICS_SAMPLE_RATE_KEY from ...constants import SPAN_MEASURED_KEY from ...ext import SpanTypes from ...ext import http from ...internal.compat import stringify from ..asyncio import context_provider CONFIG_KEY = "datadog_trace" REQUEST...
2,000
7,706
<filename>common/src/main/java/com/google/tsunami/common/version/Token.java /* * 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 * * http://www.apache.org/lic...
1,198
4,772
<reponame>fjacobs/spring-data-examples package example.repo; import example.model.Customer1646; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer1646Repository extends CrudRepository<Customer1646, Long> { List<Customer1646> findByLastName(String lastName);...
103
385
/* This file is generated from version {{revision}}. */ #pragma ACME revision * echo v2018.10 #pragma ACME revision acme/test/revision cat input.h | wc -c #pragma ACME stats wc wc -l #pragma ACME stats files ls dummy | wc -l // This particular file has exactly {{revision:acme/test/revision}} bytes, // while there...
132
945
/*========================================================================= * * Copyright NumFOCUS * * 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...
4,084
32,544
package com.baeldung.okhttp.download; import okhttp3.Call; import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Protocol; import okhttp3.Request; import okhttp3.Response; import okhttp3.ResponseBody; import org.jetbrains.annotations.NotNull; import org.junit.Test; import org.junit.runner.RunWith; impo...
953
4,333
<gh_stars>1000+ """Semantic adversarial examples """ from cleverhans.attacks.attack import Attack class Semantic(Attack): """ Semantic adversarial examples https://arxiv.org/abs/1703.06857 Note: data must either be centered (so that the negative image can be made by simple negation) or must be ...
512
877
<filename>framework/src/main/java/org/checkerframework/framework/type/DefaultTypeHierarchy.java package org.checkerframework.framework.type; import java.util.List; import java.util.Set; import javax.lang.model.element.AnnotationMirror; import javax.lang.model.element.ElementKind; import javax.lang.model.element.Execut...
15,725
519
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE from __future__ import absolute_import import pytest # noqa: F401 import numpy as np # noqa: F401 import awkward as ak # noqa: F401 pytestmark = pytest.mark.skipif( ak._util.py27, reason="No Python 2.7 support in Awkward 2...
68,799
1,338
/* * Copyright (c) 2015 <NAME> <<EMAIL>> * Copyright (c) 2002, 2003 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files or portions * thereof (the "Software"), to deal in the Software without restriction, * includ...
5,657
692
<reponame>lygttpod/RxHttpUtils package com.allen.rxhttputils.url; import java.util.HashMap; import java.util.Map; /** * <pre> * @author : Allen * e-mail : <EMAIL> * date : 2019/03/23 * desc : * </pre> */ public class AppUrlConfig { public static String DOUBAN_KEY = "douban_api"; ...
409
1,227
<filename>alibi_detect/utils/tensorflow/tests/test_data_tf.py<gh_stars>1000+ from itertools import product import numpy as np import pytest from alibi_detect.utils.tensorflow.data import TFDataset # test on numpy array and list n, f = 100, 5 shape = (n, f) xtype = [list, np.ndarray] shuffle = [True, False] batch_size ...
499
359
<filename>test_case/models/url.py<gh_stars>100-1000 # -*-coding:utf-8-*- """ 存储项目测试网站的地址 """ class Url: baseUrl = 'https://www.baidu.com'
86
8,805
<filename>ios/Pods/boost-for-react-native/boost/log/detail/trivial_keyword.hpp /* * Copyright <NAME> 2007 - 2015. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ /*! * \file tr...
516
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 below or t...
904
9,782
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
975
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...
12,195
1,155
/* * Orika - simpler, better and faster Java bean mapping * * Copyright (C) 2011-2013 Orika 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/lic...
1,666
3,125
<reponame>lllrrr2/jd-3 #!/bin/env python3 # -*- coding: utf-8 -* ''' cron: 0 59 23 * * 0 jd_15.py new Env('Faker群友家电15周年助力'); ''' # cron #不做浏览,只做助力 建议先运行jd_appliances.js 在运行此脚本 # export jd15_pins=["pt_pin1","pt_pin2"] from urllib.parse import unquote, quote import time, datetime, os, sys import requests, json, re, ...
6,374
2,298
<reponame>ryanrussell/pandas-ta # -*- coding: utf-8 -*- from .atr import atr from pandas_ta import Imports from pandas_ta.utils import get_drift, get_offset, verify_series def natr(high, low, close, length=None, scalar=None, mamode=None, talib=None, drift=None, offset=None, **kwargs): """Indicator: Normalized Ave...
974
4,124
<reponame>chenqixu/jstorm /** * 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...
1,413
348
<filename>docs/data/leg-t2/054/05401186.json {"nom":"Eulmont","circ":"1ère circonscription","dpt":"Meurthe-et-Moselle","inscrits":828,"abs":387,"votants":441,"blancs":28,"nuls":14,"exp":399,"res":[{"nuance":"SOC","nom":"Mme <NAME>","voix":203},{"nuance":"REM","nom":"Mme <NAME>","voix":196}]}
122
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,579
892
{ "schema_version": "1.2.0", "id": "GHSA-26gq-p245-cq98", "modified": "2021-12-16T00:02:49Z", "published": "2021-12-14T00:00:45Z", "aliases": [ "CVE-2021-39933" ], "details": "An issue has been discovered in GitLab CE/EE affecting all versions starting from 12.10 before 14.3.6, all versions starting f...
494
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 below or t...
4,089
892
{ "schema_version": "1.2.0", "id": "GHSA-fxg9-9cmj-2228", "modified": "2022-05-05T00:29:24Z", "published": "2022-05-05T00:29:24Z", "aliases": [ "CVE-2013-4863" ], "details": "The HomeAutomationGateway service in MiCasaVerde VeraLite with firmware 1.5.408 allows (1) remote attackers to execute arbitrar...
520
3,227
<reponame>ffteja/cgal<gh_stars>1000+ //============================================================================= #ifndef SURFACE_MESH_TYPES_H #define SURFACE_MESH_TYPES_H //== INCLUDES ================================================================= #include "Vector.h" //== CLASS DEFINITION =================...
208
348
{"nom":"Novillers","circ":"2ème circonscription","dpt":"Oise","inscrits":294,"abs":182,"votants":112,"blancs":13,"nuls":2,"exp":97,"res":[{"nuance":"REM","nom":"<NAME>","voix":53},{"nuance":"FN","nom":"<NAME>","voix":44}]}
88
3,428
<filename>lib/node_modules/@stdlib/datasets/spam-assassin/data/spam-2/00694.3aca5f2a3d0d2ccbc47ef868eb051abd.json {"id":"00694","group":"spam-2","checksum":{"type":"MD5","value":"3aca5f2a3d0d2ccbc47ef868eb051abd"},"text":"From <EMAIL> Mon Jun 24 17:49:41 2002\nReturn-Path: andrea_tedrickhuaa@hotmail.com\nDelivery-Date...
811
459
#include "vvc.h" #include <fs/systemlog.h> #include <math.h> #include <algorithm> #include "tsMuxer.h" #include "vodCoreException.h" #include "vod_common.h" using namespace std; static const int EXTENDED_SAR = 255; // ------------------------- VvcUnit ------------------- unsigned VvcUnit::extractUEGolombCode() {...
22,567
887
<gh_stars>100-1000 # coding=utf-8 import re import pytest xfail = pytest.mark.xfail def test_unicode_roundtrip(protocol_real): shell_id = protocol_real.open_shell(codepage=65001) command_id = protocol_real.run_command( shell_id, u'PowerShell', arguments=['-Command', 'Write-Host', u'こんにちは']) try: ...
1,468
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Crannes-en-Champagne","circ":"4ème circonscription","dpt":"Sarthe","inscrits":270,"abs":150,"votants":120,"blancs":5,"nuls":3,"exp":112,"res":[{"nuance":"SOC","nom":"M. <NAME>","voix":61},{"nuance":"LR","nom":"<NAME>","voix":51}]}
116
412
/*******************************************************************\ Module: Builtin functions for string concatenations Author: <NAME>, <NAME> \*******************************************************************/ /// \file /// Builtin functions for string concatenations #ifndef CPROVER_SOLVERS_STRINGS_STRING_CON...
502
1,025
//================================================================================== // Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved. // /// \author AMD Developer Tools Team /// \file gdGlobalDebugSettingsPage.cpp /// //==========================================================================...
9,053
3,428
<gh_stars>1000+ {"id":"00143","group":"easy-ham-1","checksum":{"type":"MD5","value":"4cae4623140fc349a57dac7ffd863227"},"text":"From <EMAIL> Tue Oct 8 10:55:45 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: zzzz@localhost.spamassassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby spamassassin.taint.or...
472
14,668
// 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 FUCHSIA_ENGINE_BROWSER_WEB_ENGINE_MEDIA_RESOURCE_PROVIDER_IMPL_H_ #define FUCHSIA_ENGINE_BROWSER_WEB_ENGINE_MEDIA_RESOURCE_PROVIDER_IMPL_H_ #incl...
601
601
<reponame>zaitanzaibao/austin package com.java3y.austin.support.pipeline; import com.java3y.austin.common.vo.BasicResultVO; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import lombok.experimental.Accessors; /** * 责任链上下文 * * @author 3y */ @Data @AllA...
355
5,169
<filename>Specs/SwiftBitmask/0.0.4/SwiftBitmask.podspec.json<gh_stars>1000+ { "name": "SwiftBitmask", "version": "0.0.4", "license": { "type": "WTFPL", "file": "LICENSE.md" }, "summary": "Generic Bitmask utility type, written in Swift.", "authors": { "<NAME>": "<EMAIL>" }, "homepage": "https...
264
1,292
switchApp("System Preferences.app") m = find("1257868050242.png").top().right().find("1257868062020.png") if m: click(m)
45
463
from typing import List, Union, Tuple, Optional from labml.internal.util.colors import StyleCode class Destination: def log(self, parts: List[Union[str, Tuple[str, Optional[StyleCode]]]], *, is_new_line: bool, is_reset: bool): raise NotImplementedError()
116
309
/** This file is part of Deformable Shape Tracking (DEST). Copyright(C) 2015/2016 <NAME> All rights reserved. This software may be modified and distributed under the terms of the BSD license.See the LICENSE file for details. */ #include <dest/dest.h> #include <opencv2/opencv.hpp> #include <tclap/CmdLine.h> #include...
2,504
5,411
// 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 "base/profiler/chrome_unwinder_android.h" #include "base/android/library_loader/anchor_functions.h" #include "base/debug/elf_reader.h" #include ...
2,244
1,903
<reponame>FMichelD/nodeeditor<filename>include/nodes/internal/QUuidStdHash.hpp #pragma once #include <functional> #include <QtCore/QUuid> #include <QtCore/QVariant> namespace std { template<> struct hash<QUuid> { inline std::size_t operator()(QUuid const& uid) const { return qHash(uid); } }; }
131
522
<filename>src/python/cupoch_pybind/visualization/utility.cpp /** * Copyright (c) 2020 Neka-Nat * 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 limit...
1,536
12,008
{ "method": "GET", "httpVersion": "HTTP/1.1", "url": "https://insomnia.rest/foo/bar", "comment": "My Request" }
51
521
<reponame>zai1208/fbc /* tiny LZW codec * Based on code by <NAME>, Dr. Dobb's Journal October, 1989 */ #include "fb_gfx.h" #include "fb_gfx_lzw.h" LZW_ENTRY fb_lzw_entry[TABLE_SIZE]; static unsigned char *decode_string(unsigned char *buffer, int code) { int index = 0; while (code > 255) { *buffer++ = fb_lzw_e...
736
1,104
<reponame>fly803/BaseProject package com.cg.baseproject.view; import android.animation.ValueAnimator; import android.content.Context; import android.graphics.Paint; import android.graphics.Rect; import android.util.AttributeSet; import android.view.animation.LinearInterpolator; import androidx.annotation.Nullable; im...
2,915
1,749
// // AEBlockChannel.h // TheAmazingAudioEngine // // Created by <NAME> on 20/12/2012. // // 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 ...
749
324
<reponame>tormath1/jclouds /* * 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 ...
7,346
2,293
# -*- coding: utf-8 -*- from os.path import expanduser from os.path import exists import json def get_storm_config(): config_file = expanduser("~/.stormssh/config") if exists(config_file): try: config_data = json.loads(open(config_file).read()) return config_data ex...
158
407
<reponame>iuskye/SREWorks package com.alibaba.tesla.authproxy.model.vo; import com.alibaba.tesla.authproxy.Constants; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.util.List; /** * 导入权限列表 VO * * @author <EMAIL> */ @Data @Builder @NoArgsC...
649
471
<reponame>madanagopaltcomcast/pxCore ///////////////////////////////////////////////////////////////////////////// // Name: wx/osx/carbon/private/mactext.h // Purpose: private wxMacTextControl base class // Author: <NAME> // Modified by: // Created: 03/02/99 // Copyright: (c) <NAME> // Licence: ...
690
543
<filename>excel/annotations/src/main/java/com/riiablo/excel/annotation/Schema.java package com.riiablo.excel.annotation; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Targe...
232
1,104
package com.cg.baseproject.encryption; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec; import java.security.NoSuchAlgorithmException; /** * @Description:主要功能:3DES对称加密(Triple DES、DESede,进行了三重DES加密的算法,对称加密算法) * @Prject: CommonUtilLib...
748
763
<reponame>zabrewer/batfish<gh_stars>100-1000 package org.batfish.common; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.base.MoreObjects; import java.nio.file.Path; import java.util.Objects; import java.util.SortedSet; public final c...
766
327
<filename>cola-cloud-services/cola-cloud-dict/cola-cloud-dict-client/src/main/java/com/honvay/cola/cloud/dict/client/jackson/JacksonDictConfiguration.java package com.honvay.cola.cloud.dict.client.jackson; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.module.SimpleModule; im...
610
3,058
/////////////////////////////////////////////////////////////////////////////// // Copyright (c) Electronic Arts Inc. All rights reserved. /////////////////////////////////////////////////////////////////////////////// #ifndef EASTL_STRING_MAP_H #define EASTL_STRING_MAP_H #if defined(EA_PRAGMA_ONCE_SUPPORTED) #pragm...
2,083
437
from .common import DtoObject class CurrentGameInfoDto(DtoObject): pass class FeaturedGamesDto(DtoObject): pass
43
786
package redis.embedded.ports; import redis.embedded.PortProvider; import redis.embedded.exceptions.RedisBuildingException; import java.util.Collection; import java.util.Iterator; import java.util.LinkedList; import java.util.List; public class PredefinedPortProvider implements PortProvider { private final List<I...
263
2,830
// Copyright 2018 Twitter, Inc. // Licensed under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0 package com.twitter.twittertext; import junit.framework.TestCase; public class TwitterTextParserTest extends TestCase { public void testparseTweetWithoutUrlExtraction() { assertEquals...
547
313
/******************************************************************************* Copyright (c) 2017, The OpenBLAS Project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code ...
9,429
320
<filename>test/testcases/execute/0002-operators.c<gh_stars>100-1000 int x; // TODO: // Should we generate test cases for these? // Should we do table based testing? // Test prec. // Test all types. // Test short circuits. int main() { x = 0; x = x + 2; // 2 x = x - 1; // 1 x = x * 6; // 6 ...
334
643
<filename>src/gorilla.h /* * Copyright 2018-2019 Redis Labs Ltd. and Contributors * * This file is available under the Redis Labs Source Available License Agreement */ #ifndef GORILLA_H #define GORILLA_H #include "consts.h" #include "generic_chunk.h" #include <stdbool.h> // bool #include <sys/types.h> // u_int...
580