max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
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. #ifndef COMPONENTS_CAST_CERTIFICATE_CAST_CERT_VALIDATOR_H_ #define COMPONENTS_CAST_CERTIFICATE_CAST_CERT_VALIDATOR_H_ #include <memory> #include <string>...
1,455
346
pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): word = original.lower() first = word[0] new_word = word + first + pyg print pyg else: print 'empty'
87
517
/* * Copyright 2020 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 r...
626
5,169
<gh_stars>1000+ { "name": "KSOOnboarding", "version": "0.1.1", "summary": "KSOOnboarding is an iOS framework for on-boarding new users.", "description": "KSOOnboarding is an iOS framework for on-boarding new users. It can display a background image or video and provides flexible layout options. Each view consis...
468
319
<reponame>Celebrate-future/openimaj /** * Copyright (c) 2011, The University of Southampton and the individual contributors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * * Redistr...
1,464
589
package rocks.inspectit.agent.java.sensor.method.remote.client; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import rocks.inspectit.agent.java.hooking.IHook; import rocks.inspectit.agent.java.sensor.method.AbstractMethodSensor; import rocks.inspectit.agent.java.tracing.core.Cl...
650
338
/** * @file NumericalFactor.cpp * @brief Numerical jacobians Factor * @author <NAME> * @date Nov 6, 2018 */ #include <minisam/nonlinear/NumericalFactor.h> #include <minisam/core/Eigen.h> // traits for Eigen #include <minisam/core/Variables.h> namespace minisam { /* ***********************************...
811
1,607
<reponame>tendoasan/fastdex package fastdex.idea.models; import com.intellij.openapi.components.*; import com.intellij.util.xmlb.XmlSerializerUtil; import org.jetbrains.annotations.Nullable; /** * Created by huangyong on 17/2/14. */ @State( name = "FastdexConfigurationStorage", storages = @Storage(f...
317
1,338
<reponame>Kirishikesan/haiku<filename>src/apps/terminal/SmartTabView.h /* * Copyright 2007-2010, Haiku. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> (<EMAIL>) * <NAME> (<EMAIL>) */ #ifndef SMART_TAB_VIEW_H #define SMART_TAB_VIEW_H #include <TabView.h> class B...
969
586
<gh_stars>100-1000 #import <Foundation/Foundation.h> #import "RecursiveRelationship+CoreDataClass.h" @class FEMMapping; @interface RecursiveRelationship (Mapping) + (FEMMapping *)defaultMapping; @end
76
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-7jhv-xq3r-8h9q", "modified": "2022-05-01T07:44:25Z", "published": "2022-05-01T07:44:25Z", "aliases": [ "CVE-2006-7066" ], "details": "Microsoft Internet Explorer 6 on Windows XP SP2 allows remote attackers to cause a denial of service (crash)...
704
2,449
<filename>deploy-service/common/src/main/java/com/pinterest/deployservice/alerts/AlertAction.java package com.pinterest.deployservice.alerts; import com.pinterest.deployservice.bean.DeployBean; import com.pinterest.deployservice.bean.EnvironBean; /** * AlertAction is the base class for an action for an alert */ pu...
280
1,118
<filename>vendor/rinvex/countries/resources/translations/hm.json {"deu":{"common":"Heard und die McDonaldinseln","official":"Heard und McDonaldinseln"},"fin":{"common":"Heard ja McDonaldinsaaret","official":"Heard ja McDonaldinsaaret"},"fra":{"common":"Îles Heard-et-MacDonald","official":"Des îles Heard et McDonald"},"...
329
348
<reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t1/060/06007007.json<gh_stars>100-1000 {"nom":"Agnetz","circ":"7ème circonscription","dpt":"Oise","inscrits":2424,"abs":1043,"votants":1381,"blancs":28,"nuls":7,"exp":1346,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":593},{"nuance":"REM","nom":"<NAME>","...
323
575
// 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. #ifndef CHROME_BROWSER_WIN_UTIL_WIN_SERVICE_H_ #define CHROME_BROWSER_WIN_UTIL_WIN_SERVICE_H_ #include "chrome/services/util_win/public/mojom/util_win.mo...
226
4,339
/* * 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 ...
572
791
<reponame>fengjixuchui/soso #ifndef ALLOC_H #define ALLOC_H #include "common.h" #include "process.h" void initialize_kernel_heap(); void *ksbrk_page(int n); void *kmalloc(uint32_t size); void kfree(void *v_addr); void initialize_program_break(Process* process, uint32_t size); void *sbrk(Process* process, int n_bytes...
201
8,027
<filename>test/com/facebook/buck/testutil/TestJar.java /* * 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.o...
577
2,290
<reponame>pranayhere/ftgo-application package net.chrisrichardson.ftgo.orderservice; import net.chrisrichardson.ftgo.common.Address; import net.chrisrichardson.ftgo.common.Money; import net.chrisrichardson.ftgo.orderservice.domain.MenuItem; import net.chrisrichardson.ftgo.orderservice.domain.Restaurant; import net.chr...
662
1,058
// Copyright (c) 2020-2021 ByteDance, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, p...
908
324
<gh_stars>100-1000 from waliki.plugins import BasePlugin, register class TogetherJsPlugin(BasePlugin): slug = 'togetherjs' urls_page = [] register(TogetherJsPlugin)
58
2,338
typedef int (*debug_callee) (int); int no_debug_caller_intermediate(int input, debug_callee callee) { int return_value = 0; return_value = callee(input); return return_value; } int no_debug_caller (int input, debug_callee callee) { int return_value = 0; return_value = no_debug_caller_intermediate (input, ca...
134
5,169
<filename>Specs/5/8/6/SOComponentPods/0.1.2/SOComponentPods.podspec.json { "name": "SOComponentPods", "version": "0.1.2", "summary": "first SOComponentPods.", "description": "\"A short description of SOComponentPods A short description of SOComponentPods A short description of SOComponentPods\nA short descripti...
682
10,225
package org.acme; import io.quarkus.arc.profile.IfBuildProfile; import javax.enterprise.context.ApplicationScoped; import org.apache.commons.io.FileUtils; import org.apache.commons.collections4.MultiSet; public interface HelloService { String name(); default String classFounds() { String result = ""...
467
9,106
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include "dispatchQueue/dispatchQueue.h" #include "future/future.h" #include "future/futureWait.h" #include "motifCpp/libletAwareMemLeakDetection.h" #include "testCheck.h" #include "testExecutor.h" namespace FutureTests { TEST_CLA...
1,160
903
<filename>jphp-runtime/src/php/runtime/invoke/cache/PropertyCallCache.java<gh_stars>100-1000 package php.runtime.invoke.cache; import php.runtime.reflection.PropertyEntity; public class PropertyCallCache extends CallCache<PropertyEntity> { @Override public Item[] newArrayData(int length) { return new ...
156
679
<filename>main/svtools/inc/svtools/svlbitm.hxx<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 * r...
4,048
1,223
<gh_stars>1000+ /* Copyright 2016 Nidium Inc. All rights reserved. Use of this source code is governed by a MIT license that can be found in the LICENSE file. */ /* /!\ this class is not thread safe TODO: windows ('shlwapi') http://msdn.microsoft.com/en-us/library/windows/desktop/bb773559%28v=vs.85...
2,156
335
{ "word": "Baby", "definitions": [ "Comparatively small or immature of its kind.", "(of vegetables) picked before reaching their usual size." ], "parts-of-speech": "Adjective" }
80
892
{ "schema_version": "1.2.0", "id": "GHSA-f2rp-38vg-j3gh", "modified": "2021-03-18T23:43:39Z", "published": "2021-03-18T23:47:56Z", "aliases": [ "CVE-2021-21384" ], "summary": "Null characters not escaped", "details": "### Impact\n\nAnyone using _Shescape_ to defend against shell injection may still ...
1,291
329
<reponame>VasiliCekaskin/nmatrix<gh_stars>100-1000 public class MatrixGenerator { // Matrix from Array begin public static float[][] getMatrixFloat(float[] array, int row, int col) { float[][] matrix = new float[row][col]; for (int index=0, i=0; i < row ; i++){ for (int j=0; j < col; j++){ ...
508
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once namespace Communi...
2,271
2,279
<reponame>deining/stork<gh_stars>1000+ import os import sys import boto3 import time if "AWS_ACCESS_KEY_ID" not in os.environ or "AWS_SECRET_ACCESS_KEY" not in os.environ: print("Error: Environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` must be set in order to upload to AWS S3.") exit(1) no...
1,205
334
#!/usr/bin/env python # # // SPDX-License-Identifier: BSD-3-CLAUSE # # (C) Copyright 2018, Xilinx, Inc. # from os import mkdir as _mkdir from os.path import exists as _exists import caffe from xfdnn.rt.xdnn_rt_base import xdnnRT as _xdnnRT from xfdnn.rt.xdnn_opt import CPUTransform, HWEmuTransform, FPGATransform from...
2,006
7,235
<reponame>quaff/feign /** * Copyright 2012-2020 The Feign 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 a...
535
1,350
<filename>sdk/anomalydetector/azure-ai-anomalydetector/src/main/java/com/azure/ai/anomalydetector/models/DetectRequest.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.ai.anomalydetector.mo...
2,390
30,023
{ "domain": "ue_smart_radio", "name": "Logitech UE Smart Radio", "documentation": "https://www.home-assistant.io/integrations/ue_smart_radio", "codeowners": [], "iot_class": "cloud_polling" }
76
32,544
<gh_stars>1000+ package com.baeldung.persistence.dao; import com.baeldung.persistence.model.Foo; import org.springframework.stereotype.Repository; @Repository public class FooDao extends AbstractJpaDAO<Foo> implements IFooDao { public FooDao() { super(); setClazz(Foo.class); } // API }...
133
679
<filename>main/vcl/unx/kde4/KDESalFrame.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 ow...
5,365
348
<gh_stars>100-1000 {"nom":"Labastide-Paumès","circ":"8ème circonscription","dpt":"Haute-Garonne","inscrits":121,"abs":58,"votants":63,"blancs":10,"nuls":9,"exp":44,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":30},{"nuance":"SOC","nom":"<NAME>","voix":14}]}
109
426
<filename>include/carve/face_decl.hpp // Copyright 2006-2015 <NAME> (<EMAIL>). // // This file is part of the Carve CSG Library (http://carve-csg.com/) // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal i...
2,443
1,615
<filename>MLN-iOS/Example/Pods/Headers/Public/ArgoUI/NSAttributedString+MLNUIKit.h // // NSAttributedString+MLNUIKit.h // // // Created by MoMo on 2019/4/26. // #import <Foundation/Foundation.h> @class MLNUIStyleString; NS_ASSUME_NONNULL_BEGIN @interface NSAttributedString (MLNUIKit) @property (nonatomic, weak) M...
162
1,568
<gh_stars>1000+ from __future__ import print_function ''' Permuted multiples Problem 52 It can be seen that the number, 125874, and its double, 251748, contain exactly the same digits, but in a different order. Find the smallest positive integer, x, such that 2x, 3x, 4x, 5x, and 6x, contain the same digits. ''' i = 1...
230
416
// // GameController.h // GameController // // Copyright (c) 2012 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> #if TARGET_OS_IPHONE #import <UIKit/UIViewController.h> #else #import <AppKit/NSViewController.h> #endif #import <GameController/GCExtern.h> #import <GameController/GCColor.h> #i...
572
474
<reponame>ValuesFeng/AndroidPicturePicker<gh_stars>100-1000 package io.valuesfeng.picker.utils; import android.app.Activity; import android.content.ContentResolver; import android.content.Intent; import android.net.Uri; import java.util.ArrayList; import java.util.List; import io.valuesfeng.picker.ImageSelectActivit...
443
2,291
{ "id" : 137, "status" : "Fixed", "summary" : "osmdroid and andnav share many sources .. AND .jar does not contains osmdroid files.", "labels" : [ "Type-Defect", "Priority-Medium" ], "stars" : 0, "commentCount" : 3, "comments" : [ { "id" : 0, "commenterId" : 1778308742751796674, "content" : "F...
533
1,562
// // GADAdValue.h // Google Mobile Ads SDK // // Copyright 2019 Google LLC. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSInteger, GADAdValuePrecision) { /// An ad value with unknown precision. GADAdValuePrecisionUnknown = 0, /// An ad value estimated from aggregated data. GA...
340
371
# Copyright (c) 2020 BlenderNPR and contributors. MIT license. import os, time from itertools import chain from Malt.Parameter import Parameter, Type import bpy from BlenderMalt import malt_path_getter, malt_path_setter from . MaltProperties import MaltPropertyGroup from . import MaltPipeline def get_pipeline_graph...
20,142
348
{"nom":"Créteil","circ":"1ère circonscription","dpt":"Val-de-Marne","inscrits":13626,"abs":7849,"votants":5777,"blancs":588,"nuls":168,"exp":5021,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":3095},{"nuance":"LR","nom":"M. <NAME>","voix":1926}]}
102
32,544
<filename>gradle-5/java-exec/src/main/java/com/baeldung/gradle/exec/MainClass.java package com.baeldung.gradle.exec; public class MainClass { public static void main(String[] args) { System.out.println("Goodbye cruel world ..."); } }
97
856
// // Copyright © 2019 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #include "RefDepthToSpaceWorkload.hpp" #include "DepthToSpace.hpp" #include "RefWorkloadUtils.hpp" namespace armnn { void RefDepthToSpaceWorkload::Execute() const { Execute(m_Data.m_Inputs, m_Data.m_Outputs); } void RefDept...
396
30,023
"""Test reproduce state for Input text.""" from homeassistant.core import State from homeassistant.helpers.state import async_reproduce_state from homeassistant.setup import async_setup_component VALID_TEXT1 = "Test text" VALID_TEXT2 = "LoremIpsum" INVALID_TEXT1 = "This text is too long!" INVALID_TEXT2 = "Short" asy...
795
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.storage.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import...
605
2,146
#include <lcms2.h> int main() { }
18
1,276
<reponame>parallel101/course #include <set> #include <unordered_set> #include "printer.h" using namespace std; int main() { set<int> a = {1, 4, 2, 8, 5, 7}; unordered_set<int> b = {1, 4, 2, 8, 5, 7}; cout << "set: " << a << endl; cout << "unordered_set: " << b << endl; return 0; }
140
32,544
<reponame>DBatOWL/tutorials<filename>core-java-modules/core-java-collections-set/src/test/java/com/baeldung/set/SetOperationsUnitTest.java package com.baeldung.set; import static org.junit.Assert.*; import org.apache.commons.collections4.SetUtils; import org.junit.Test; import com.google.common.collect.Sets; import...
1,356
544
<filename>Data/include/Poco/Data/AutoTransaction.h // // AutoTransaction.h // // Library: Data // Package: DataCore // Module: AutoTransaction // // Forward header for the Transaction class. // // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL...
187
321
<filename>src/App/Editor/InspectorRegistry.cpp #include <Utopia/App/Editor/InspectorRegistry.h> #include <UECS/CmptType.h> #include <unordered_map> #include <functional> using namespace Ubpa::Utopia; struct InspectorRegistry::Impl { Visitor<void(void*, InspectContext)> inspector; }; InspectorRegistry::InspectorRe...
506
335
<gh_stars>100-1000 { "word": "Wilderness", "definitions": [ "An uncultivated, uninhabited, and inhospitable region.", "A neglected or abandoned area.", "A position of disfavour, especially in a political context." ], "parts-of-speech": "Noun" }
113
682
#pragma once #include <string> #include <vector> #include "tatum/TimingGraphFwd.hpp" #include "tatum/util/tatum_range.hpp" namespace tatum { /** * TimingAnalyzer represents an abstract interface for all timing analyzers, * which can be: * - updated (update_timing()) * - reset (reset_timing()). * * This is ...
725
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. #ifndef CHROME_BROWSER_MEDIA_WEBRTC_DESKTOP_MEDIA_PICKER_FACTORY_H_ #define CHROME_BROWSER_MEDIA_WEBRTC_DESKTOP_MEDIA_PICKE...
504
1,482
x = None # type: List[str, a] y = None # type: Dict[int, Any] # int x : source.python : source.python = : keyword.operator.assignment.python, source.python : source.python None : constant.language.python, source.python : source.python # ...
1,296
386
/* This file is a part of QVGE - Qt Visual Graph Editor (c) 2016-2020 <NAME> (<EMAIL>) It can be used freely, maintaining the information above. */ #pragma once #include <QtCore/QString> class CEditorScene; /** Common interface to file format serializers. */ class IFileSerializer { public: virtual QString desc...
224
517
<gh_stars>100-1000 package com.groupon.seleniumgridextras.tasks; import com.google.gson.JsonObject; import com.groupon.seleniumgridextras.config.RuntimeConfig; import com.groupon.seleniumgridextras.tasks.config.TaskDescriptions; import com.groupon.seleniumgridextras.utilities.FileIOUtility; import com.groupon.seleniu...
1,544
1,337
/* * Copyright (c) 2008-2016 Haulmont. * * 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 agr...
8,383
5,823
<gh_stars>1000+ // 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_FML_MAPPING_H_ #define FLUTTER_FML_MAPPING_H_ #include <initializer_list> #include <memory> #include <string> #include <ve...
1,941
773
import os import pandas as pd import collections import zipfile from six.moves import urllib from ..common.utils import logger def maybe_download_casas(zipfilename, url, filepathinzip, localpath): """Download the CASAS file if not present, and extract the relevant txt file.""" if os.path.exists(os.path.join(...
1,901
326
/*------------------------------------------------------------------------- * * gtm_txn.h * * * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 2010-2012 Postgres-XC Development Group * * $Post...
3,645
419
<reponame>namasikanam/MultipartyPSI /* * C++ class to implement a polynomial type and to allow * arithmetic on polynomials whose elements are float numbers * * WARNING: This class has been cobbled together for a specific use with * the MIRACL library. It is not complete, and may not work in other * applications...
588
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,658
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. #ifndef COMPONENTS_POLICY_CORE_COMMON_REMOTE_COMMANDS_TEST_SUPPORT_TESTING_REMOTE_COMMANDS_SERVER_H_ #define COMPONENTS_POLICY_CORE_COMMON_REMOTE_COMMANDS...
1,643
301
{ "name": "dlnacast", "version": "0.0.3", "description": "cast local media to your TV using UPnP/DLNA", "main": "index.js", "bin": { "dlnacast": "./index.js" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "https://github.c...
400
315
<filename>inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/controller/StorageController.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 ...
1,947
600
<filename>engine/source/gamelib/sprite.c /* * OpenBOR - http://www.chronocrash.com * ----------------------------------------------------------------------- * All rights reserved, see LICENSE in OpenBOR root for details. * * Copyright (c) 2004 - 2014 OpenBOR Team */ //////////////////////////////////////////////...
12,290
486
<filename>javatests/de/jflex/testcase/include/IncludeGoldenTest.java<gh_stars>100-1000 // test: include package de.jflex.testcase.include; import de.jflex.testing.testsuite.golden.AbstractGoldenTest; import de.jflex.testing.testsuite.golden.GoldenInOutFilePair; import de.jflex.util.scanner.ScannerFactory; import java...
585
5,813
/* * 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 ...
1,622
372
/* * 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 ...
1,546
2,890
package com.github.ltsopensource.autoconfigure.resolver; import com.github.ltsopensource.autoconfigure.AutoConfigContext; import com.github.ltsopensource.autoconfigure.PropertiesConfigurationFactory; import java.beans.PropertyDescriptor; import java.util.HashMap; import java.util.Map; /** * @author <NAME> (<EMAIL>)...
521
428
<filename>src/cpp/f00340_gameplantnode.hpp<gh_stars>100-1000 // class GamePlantNode { // }; class GamePlantNode { public: FIVector4 begPoint; FIVector4 endPoint; //FIVector4 ctrPoint; FIVector4 tangent; FIVector4 baseShoot; //float rotation; float shootLength; float begThickness; float endThickness; f...
642
17,242
// Copyright 2019 The MediaPipe 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 applicable law or a...
831
422
<reponame>hhoppe/Mesh-processing-library<gh_stars>100-1000 // -*- C++ -*- Copyright (c) Microsoft Corporation; see license.txt #include "libHh/EList.h" using namespace hh; int main() { { struct A { explicit A(int i) : _i(i) {} int _i; EListNode _node; }; EList list; A a1(1); a1...
765
1,239
#include "leptfuzz.h" extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { if(size<3) return 0; leptSetStdNullHandler(); PIX *pixs_payload = pixReadMemSpix(data, size); if(pixs_payload == NULL) return 0; PIX *pix1, *pix2, *pix3, *pix4, *pix5, *return_pix1, *payload_copy; pix1 = pixRead(...
1,041
8,747
<filename>components/mdns/host_test/main/main.c #include <stdio.h> #include "mdns.h" #include "esp_log.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" static const char *TAG = "mdns-test"; static void query_mdns_host(const char * host_name) { ESP_LOGI(TAG, "Query A: %s.local", host_name); struct...
778
1,738
<reponame>jeikabu/lumberyard /* * 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 provid...
4,435
1,572
/* * Copyright 2019 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 ...
3,487
5,169
<reponame>morizotter/Specs<filename>Specs/BPPhotoLibrarian/1.0.0/BPPhotoLibrarian.podspec.json { "name": "BPPhotoLibrarian", "version": "1.0.0", "summary": "Simple helpers for accessing the iOS photo library.", "homepage": "https://github.com/brianpartridge/BPPhotoLibrarian", "license": { "type": "MIT", ...
303
1,338
<reponame>Kirishikesan/haiku<gh_stars>1000+ #include <Application.h> #include <View.h> #include <Window.h> class MouseView : public BView { public: MouseView(BRect frame, bool noHistory); ~MouseView(); virtual void AttachedToWindow(); virtual void MouseMoved(BPoint point, uint32 transit, const BMessage *messa...
641
319
<reponame>imshyam/mintube package com.shapps.mintubeapp.adapter; import android.content.Context; import android.database.Cursor; import android.support.v4.widget.CursorAdapter; import android.support.v7.widget.SearchView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; impo...
675
550
<gh_stars>100-1000 import os import warnings from IPython import get_ipython from glue.core.hub import HubListener from glue.core import BaseData, Subset from glue.core import command from glue.core.command import ApplySubsetState from glue.core.state import save from glue.core import message as msg from glue.core.e...
7,281
2,587
package cn.hikyson.godeye.core.internal.modules.fps; import androidx.annotation.Keep; import java.io.Serializable; @Keep public class FpsConfig implements Serializable { public long intervalMillis; public FpsConfig(long intervalMillis) { this.intervalMillis = intervalMillis; } public FpsCon...
249
568
<gh_stars>100-1000 package com.jim.framework.web.service; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Created by jiang on 2016/12/22. */ public class BaseService { protected Logger logger = LoggerFactory.getLogger(getClass().getName()); }
108
301
package commons.model; import java.util.Map; import com.google.gson.annotations.SerializedName; public class Command { private String capabilityId; private String sensorId; @SerializedName("command") private Map<String, Object> properties; public String getCapabilityId() { return capabilityId; } public...
223
3,645
/* * Copyright (c) 2003 <NAME> <<EMAIL>> * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later ver...
8,672
10,225
package io.quarkus.restclient.deployment; import org.jboss.jandex.DotName; import io.quarkus.builder.item.MultiBuildItem; /** * Used to mark a custom annotation and its associated JAX-RS client provider */ public final class RestClientAnnotationProviderBuildItem extends MultiBuildItem { private final DotName ...
307
449
<gh_stars>100-1000 #!/bin/python3 import pandas as pd import numpy as np from pandas_datareader import data import matplotlib.pyplot as plt import h5py def load_financial_data(start_date, end_date,output_file): try: df = pd.read_pickle(output_file) print('File data found...reading GOOG data') e...
418
1,676
<filename>chat-sdk-core-ui/src/main/java/sdk/chat/ui/binders/MessageBinder.java package sdk.chat.ui.binders; import android.content.Context; import android.widget.TextView; import java.text.DateFormat; import java.text.SimpleDateFormat; import sdk.chat.core.types.MessageSendStatusFormatter; import sdk.chat.core.util...
418
3,974
<gh_stars>1000+ package io.cucumber.gherkin; import io.cucumber.messages.types.Envelope; import org.junit.Test; import static org.junit.Assert.assertNotNull; // This tests that the message library exposes its version. This test is hard to do in the // library itself since it requires running against a packaged versi...
160
19,628
package com.didichuxing.doraemonkit.aop.map; import android.location.Location; import com.amap.api.maps.LocationSource; import com.didichuxing.doraemonkit.kit.gpsmock.GpsMockManager; import com.didichuxing.doraemonkit.util.LogHelper; /** * ================================================ * 作 者:jint(金台) * 版 ...
501
6,717
/* Copyright (c) 2006-2007 <NAME> Copyright (c) 2015 Microsoft Corporation. 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 restriction, including without limitation ...
3,614
581
<reponame>ddiepo-pjr/phasar<gh_stars>100-1000 /****************************************************************************** * Copyright (c) 2017 <NAME>. * All rights reserved. This program and the accompanying materials are made * available under the terms of LICENSE.txt. * * Contributors: * <NAME> and othe...
1,709