max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,077
/** Copyright (c) 2015-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. */ #include <gtest/gtest.h> #include <plist/Objects.h> using plist::Real; using plist::Integer; using plist::String; ...
368
746
<reponame>zhiqwang/mmdeploy<gh_stars>100-1000 # Copyright (c) OpenMMLab. All rights reserved. from mmcv.utils import Registry from mmdeploy.utils.config_utils import Backend def __build_backend_wrapper_class(backend: Backend, registry: Registry): return registry.module_dict[backend.value] BACKEND_WRAPPER = Reg...
281
301
package com.sap.iot.starterkit.cert; import java.io.ByteArrayInputStream; import java.io.Closeable; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java....
5,002
303
#ifndef LILY_PKG_BUILTIN_H # define LILY_PKG_BUILTIN_H struct lily_symtab_; struct lily_import_entry_; void lily_init_builtin_package(struct lily_symtab_ *, struct lily_import_entry_ *); #endif
88
471
<filename>corehq/apps/custom_data_fields/migrations/0004_rename_tables.py<gh_stars>100-1000 # -*- coding: utf-8 -*- # Generated by Django 1.11.28 on 2020-04-26 14:24 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('custom_...
410
345
#include "pch.h" #include "App_Misc_GameInstallationDetector.h" #include "XivAlexanderCommon/Utils_Win32_Process.h" static std::string TestPublisher(const std::filesystem::path& path) { // See: https://docs.microsoft.com/en-US/troubleshoot/windows/win32/get-information-authenticode-signed-executables constexpr aut...
3,392
435
<reponame>amaajemyfren/data { "copyright_text": "Creative Commons Attribution license (reuse allowed)", "description": "In 1979, <NAME> and <NAME> coined the term \u201cPlanning Fallacy\u201d to describe plans and forecasts that are unrealistically close to best-case scenarios. These plans can be improved by consu...
471
377
<reponame>MC-JY/inception /* * Licensed to the Technische Universität Darmstadt under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The Technische Universität Darmstadt * licenses this file to you under ...
446
392
#include "config.h" #include "main.h" #include "network.h" #include "lua-ext.h" #include <regex.h> #include "cached-access.h" int lua_routed = 0; static char temp_buf[8192]; static char *v_p[100] = {0}; static int v_p_len[100] = {0}; static char *v_c[100] = {0}; static int v_p_count = 0; static char *v_p2[100] = {0}...
5,637
2,362
<reponame>lksnmnn/useWorker<gh_stars>1000+ { "unversionedId": "api-useworker", "id": "api-useworker", "isDocsHomePage": false, "title": "useWorker()", "description": "Import", "source": "@site/docs/useworker.md", "slug": "/api-useworker", "permalink": "/docs/api-useworker", "editUrl": "https://github....
246
346
{ "packagingVersion": "3.0", "name": "redis", "version": "3.2.9-0.0.1", "maintainer": "<EMAIL>", "description": "This is a single redis container, which is suited for HA setups. Redis is a popular in-memory data structure store, used as database, cache and message broker.. See documentation for more details: https...
304
6,263
import itertools import pytest import os from pipenv import environments from pipenv.utils import temp_environ @pytest.mark.environments @pytest.mark.parametrize( "arg, prefix, use_negation", list(itertools.product(("ENABLE_SOMETHING",), ("FAKEPREFIX", None), (True, False))), ) def test_get_from_env(arg, pref...
1,367
892
{ "schema_version": "1.2.0", "id": "GHSA-4f6h-p35h-c9p6", "modified": "2022-05-01T07:41:50Z", "published": "2022-05-01T07:41:50Z", "aliases": [ "CVE-2006-6817" ], "details": "AlstraSoft Web Host Directory allows remote attackers to obtain sensitive information by requesting any invalid URI, which reve...
340
1,062
// // Generated by class-dump 3.5b1 (64 bit) (Debug version compiled Dec 3 2019 19:59:57). // // Copyright (C) 1997-2019 <NAME>. // #import <IMAP/IMAPNetworkTaskOperation.h> @class IMAPDownloadCache, NSArray; @protocol IMAPMessageDataSource, IMAPSyncAttachmentsOperationDelegate; @interface IMAPSyncAttachmentsO...
472
313
/* * Copyright 2018 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
1,593
3,172
<filename>examples/PPO/scaler.py # Third party code # # The following code are copied or modified from: # https://github.com/pat-coady/trpo import numpy as np import scipy.signal __all__ = ['Scaler'] class Scaler(object): """ Generate scale and offset based on running mean and stddev along axis=0 offse...
1,023
710
""" 爬取微博评论,保存到文件中 https://m.weibo.cn/api/comments/show?id=4477013081328252&page=50 该接口能获取微博的前50页数据,每页10条, id 是某条微博的id https://m.weibo.cn/comments/hotflow?mid=4477013081328252&max_id=330569188932643&max_id_type=0 此接口能爬到所有评论信息, mid 是某条微博id, max_id 是上一个请求返回的分页参数, max_id_type 固定为0就好 """ from pymongo import MongoClient ...
1,081
2,151
<filename>third_party/blink/renderer/platform/graphics/canvas_metrics.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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_CANVAS_METRICS_H_ #define THI...
460
354
/*------------------------------------------------------------------------- * drawElements Quality Program OpenGL ES 2.0 Module * ------------------------------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not ...
4,850
4,537
<filename>3rdparty/stout/include/stout/os/windows/mktemp.hpp // 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...
972
880
/** * Copyright 2019 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
404
580
<filename>test/alignment.cpp // DynaMix // Copyright (c) 2013-2019 <NAME>, <NAME> // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // https://opensource.org/licenses/MIT // #include <dynamix/core.hpp> #include <dynamix/allocators.hpp> #include "doctest/doctest.h" TEST_S...
1,042
319
/* * Copyright (c) 2014, Regents of the University of California * 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 must retain the above copyright notice...
12,771
907
<reponame>h4ck3rb0b/linux-exploitation-course from pwn import * #context.log_level = "debug" printf_got = 0x804b00c puts_got = 0x0804b01c system_libc_offset = 0x40310 printf_libc_offset = 0x4d410 def main(): # p = process("./diapers") p = remote("localhost", 1343) p.recv(0x60) # Read the menu log...
808
746
<gh_stars>100-1000 package org.protege.editor.owl.model.selection.ontologies; import org.semanticweb.owlapi.model.OWLOntology; import java.util.Set; /** * Author: drummond<br> * http://www.cs.man.ac.uk/~drummond/<br><br> * The University Of Manchester<br> * Bio Health Informatics Group<br> * Date: Jun 6, 2008<...
162
2,392
// Copyright (C) 2014-2018 GeometryFactory Sarl // // This file is part of CGAL (www.cgal.org) // // $URL: https://github.com/CGAL/cgal/blob/v5.1/Installation/include/CGAL/Surface_mesh/Surface_mesh_fwd.h $ // $Id: Surface_mesh_fwd.h 8bb22d5 2020-03-26T14:23:37+01:00 <NAME> // SPDX-License-Identifier: LGPL-3.0-or-later...
286
331
<filename>benchmarks/Pandas/run.py #!/usr/bin/env python from __future__ import division, print_function import pandas as pd import time test_file = "test_01.csv" def run_timed(name, func, numRepeats=3): runtimes = [] for i in xrange(numRepeats): print("\n *** Running {} [Iteration: {}]".format(na...
1,111
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 Reliab...
354
1,615
<reponame>NVIDIAGameWorks/Falcor /*************************************************************************** # Copyright (c) 2015-21, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions ...
2,426
2,591
package liquibase.ui; import liquibase.ExtensibleObject; import liquibase.exception.LiquibaseException; import liquibase.plugin.Plugin; import java.io.PrintWriter; /** * Service for interacting with the user. */ public interface UIService extends ExtensibleObject, Plugin { int getPriority(); /** * S...
659
443
<reponame>Rahul18728/cerl /* ------------------------------------------------------------------------- // WINX: a C++ template GUI library - MOST SIMPLE BUT EFFECTIVE // // This file is a part of the WINX Library. // The use and distribution terms for this software are covered by the // Common Public License 1.0 ...
4,403
348
{"nom":"Marzan","circ":"4ème circonscription","dpt":"Morbihan","inscrits":1738,"abs":896,"votants":842,"blancs":11,"nuls":3,"exp":828,"res":[{"nuance":"REM","nom":"<NAME>","voix":379},{"nuance":"LR","nom":"Mme <NAME>","voix":170},{"nuance":"FI","nom":"Mme <NAME>","voix":112},{"nuance":"FN","nom":"Mme <NAME>","voix":88}...
255
941
<reponame>3cL1p5e7/ic<gh_stars>100-1000 import asyncio import io import shlex import subprocess import sys from asyncio.subprocess import PIPE import yaml # Run command directly, without invoking a shell def run(command, **kwargs): return ( subprocess.run(shlex.split(command), capture_output=True, check=...
1,542
3,307
<filename>contrib/c/dynet_c/softmax-builder.h #ifndef DYNET_C_SOFTMAX_BUILDER_H_ #define DYNET_C_SOFTMAX_BUILDER_H_ #include <dynet_c/define.h> #include <dynet_c/expr.h> #include <dynet_c/graph.h> #include <dynet_c/model.h> /** * Opaque type of SoftmaxBuilder. */ typedef struct dynetSoftmaxBuilder dynetSoftmaxBuild...
1,441
788
<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 licenses this file * to you under the Apache License, Version 2.0 (the ...
2,083
831
/* * The MIT License (MIT) * * Copyright (c) 2014-2019 <NAME> * * 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, ...
1,517
13,885
// Copyright (c) 2017 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...
5,959
17,703
namespace Envoy { // Directly calling waitFor on a condvar no good; need to inject TimeSystem. int waiting() { return condvar.waitFor(mutex, duration); } } // namespace Envoy
55
1,178
#ifndef _NET_PPP_DEFS_H #define _NET_PPP_DEFS_H 1 #define __need_time_t #include <time.h> #include <asm/types.h> #include <linux/ppp_defs.h> #endif /* net/ppp_defs.h */
87
3,372
/* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
5,298
3,269
<filename>Algo and DSA/LeetCode-Solutions-master/Python/next-palindrome-using-same-digits.py # Time: O(n) # Space: O(1) class Solution(object): def nextPalindrome(self, num): """ :type num: str :rtype: str """ def next_permutation(nums, begin, end): def reverse(...
771
2,151
<gh_stars>1000+ #!/usr/bin/env python # Copyright (c) 2012 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. import sys from idl_log import ErrOut, InfoOut, WarnOut from idl_option import GetOption, Option, ParseOptions fro...
3,257
721
package crazypants.enderio.machines.machine.teleport.packet; import com.enderio.core.common.util.NullHelper; import crazypants.enderio.api.teleport.IItemOfTravel; import io.netty.buffer.ByteBuf; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumHand; i...
604
892
<reponame>github/advisory-database<filename>advisories/unreviewed/2022/05/GHSA-jj77-9jr7-4mpq/GHSA-jj77-9jr7-4mpq.json { "schema_version": "1.2.0", "id": "GHSA-jj77-9jr7-4mpq", "modified": "2022-05-13T01:35:41Z", "published": "2022-05-13T01:35:41Z", "aliases": [ "CVE-2018-0187" ], "details": "A vulner...
598
575
// 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_CLOUD_DEVICES_COMMON_CLOUD_DEVICE_DESCRIPTION_H_ #define COMPONENTS_CLOUD_DEVICES_COMMON_CLOUD_DEVICE_DESCRIPTION_H_ #include <memory>...
535
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 THIRD_PARTY_BLINK_RENDERER_BINDINGS_MODULES_V8_V8_CONTEXT_SNAPSHOT_EXTERNAL_REFERENCES_H_ #define THIRD_PARTY_BLINK_RENDERER_BINDINGS_MODULES_V8_V...
406
517
/* * Copyright (c) 2008. All rights reserved. */ package ro.isdc.wro.extensions.processor; import java.io.File; import java.io.IOException; import java.net.URL; import org.junit.Test; import ro.isdc.wro.extensions.processor.js.DojoShrinksafeCompressorProcessor; import ro.isdc.wro.model.resource.ResourceType; impor...
395
852
<reponame>ckamtsikis/cmssw #include "CalibFormats/SiPixelObjects/interface/PixelFEDParameters.h" #include <ostream> using namespace pos; PixelFEDParameters::PixelFEDParameters() { fednumber_ = 0; crate_ = 0; vmebaseaddress_ = 0; } PixelFEDParameters::~PixelFEDParameters() {} unsigned int PixelFEDParameters::g...
430
348
<reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t1/041/04102084.json {"nom":"<NAME>","circ":"2ème circonscription","dpt":"Loir-et-Cher","inscrits":804,"abs":329,"votants":475,"blancs":2,"nuls":2,"exp":471,"res":[{"nuance":"LR","nom":"<NAME>","voix":200},{"nuance":"REM","nom":"<NAME>","voix":92},{"nuance...
309
380
package org.gluu.oxauth.model.event; import javax.enterprise.util.AnnotationLiteral; import javax.inject.Qualifier; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.*; import static java.lang.annotation.R...
248
1,392
# Generated by Django 3.2.13 on 2022-04-29 09:47 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("checkout", "0046_alter_checkout_line_pk"), ("warehouse", "0027_alter_reservation_models_checkout_line"), ] ...
1,077
1,851
<reponame>yoelhawa/viro // // VRONode.h // ViroRenderer // // Created by <NAME> on 11/15/15. // Copyright © 2015 Viro Media. 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 ...
14,733
5,871
<filename>scripts/genetic_algo/conf.py<gh_stars>1000+ import random selectors = { 'BTC-CUR': ['gdax.BTC-USD', 'gdax.BTC-EUR', 'gdax.BTC-GBP'], 'ETH-BTC': ['gdax.ETH-BTC'], 'ETH-EUR': ['gdax.ETH-EUR'], 'ETH-USD': ['gdax.ETH-USD'], 'ETH-CUR': ['gdax.ETH-USD', 'gdax.ETH-EUR'], } partitions = 2 select...
208
1,338
#include <../os/package/hpkg/PackageData.h>
17
16,461
<filename>ios/Exponent/Kernel/Services/EXPermissionsManager.h // Copyright 2019-present 650 Industries. All rights reserved. #import <ExpoModulesCore/EXSingletonModule.h> #import "EXScopedPermissions.h" NS_ASSUME_NONNULL_BEGIN @interface EXPermissionsManager : EXSingletonModule <EXPermissionsScopedModuleDelegate> @...
115
777
<reponame>google-ar/chromium<gh_stars>100-1000 // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/sync_preferences/pref_service_syncable.h" #include <stdint.h> #include <memory> #in...
7,819
1,077
import torch import os import math import torch.nn as nn from torch.nn import init import functools from torch.autograd import Variable import torch.nn.functional as F import numpy as np # from torch.utils.serialization import load_lua from lib.nn import SynchronizedBatchNorm2d as SynBN2d ##############################...
25,805
348
{"nom":"Nègrepelisse","circ":"1ère circonscription","dpt":"Tarn-et-Garonne","inscrits":3912,"abs":1935,"votants":1977,"blancs":45,"nuls":15,"exp":1917,"res":[{"nuance":"REM","nom":"<NAME>","voix":558},{"nuance":"FN","nom":"<NAME>","voix":444},{"nuance":"SOC","nom":"Mme <NAME>","voix":346},{"nuance":"LR","nom":"M. <NAME...
262
373
<gh_stars>100-1000 /** @file Super I/O Interface implementation. Copyright (c) 2010 - 2019 Intel Corporation. All rights reserved. <BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "SioDriver.h" /** Provides an interface to get a list of the current resources consumed by the device...
4,367
651
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
2,584
852
<reponame>ckamtsikis/cmssw #include <iostream> #include <string> #include "GeneratorInterface/HiGenCommon/interface/BaseHiGenEvtSelector.h" class HiGenEvtSelectorFactory { public: HiGenEvtSelectorFactory() { ; } virtual ~HiGenEvtSelectorFactory() { ; } static BaseHiGenEvtSelector* get(std::string, const edm::Pa...
122
348
{"nom":"Annezin","circ":"9ème circonscription","dpt":"Pas-de-Calais","inscrits":4542,"abs":2358,"votants":2184,"blancs":46,"nuls":16,"exp":2122,"res":[{"nuance":"FN","nom":"M. <NAME>","voix":539},{"nuance":"MDM","nom":"Mme <NAME>","voix":473},{"nuance":"FI","nom":"<NAME>","voix":322},{"nuance":"RDG","nom":"M. <NAME>","...
305
310
<filename>embedded-azurite/src/test/java/com/playtika/test/azurite/EmbeddedAzuriteBoostrapConfigurationTest.java package com.playtika.test.azurite; import com.azure.storage.blob.BlobContainerClient; import com.azure.storage.blob.BlobServiceClient; import com.azure.storage.blob.BlobServiceClientBuilder; import org.juni...
628
963
package com.vladmihalcea.book.hpjp.hibernate.identifier; import org.hibernate.cfg.AvailableSettings; import org.junit.Test; import javax.persistence.*; import java.util.Properties; public class PreferredPooledLoSequenceIdentifierTest extends AbstractPooledSequenceIdentifierTest { @Override protected Class<?...
446
1,229
<gh_stars>1000+ from dataclasses import dataclass from typing import Dict from typing import List, Optional from absl import logging from smart_arg import LateInit from smart_arg import arg_suite from smart_compose.utils import parsing_utils class Arg: """Helper class for cooperative multi-inheritance""" d...
3,354
347
package org.ovirt.engine.core.common.action; import org.ovirt.engine.core.compat.Guid; public class MaintenanceVdsParameters extends VdsActionParameters { private static final long serialVersionUID = -962696566094119431L; private boolean internal; private boolean stopGlusterService; public Maintenanc...
285
450
package com.kafkasprout.backend; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class StartZoo { private String path; private String OS; // Start Zookeeper Constructor public StartZoo(String path, String OS) { this.path = path; this.OS = OS; } ...
607
1,127
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include "kernel_base_opencl.h" #include "kernel_selector_params.h" namespace kernel_selector { //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ...
1,230
4,392
/*************************************************************************** Copyright (c) 2014, 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 must...
2,226
504
<reponame>tenglongcong/amgcl<filename>tests/test_solver_blaze.cpp #define BOOST_TEST_MODULE TestSolvers #include <boost/test/unit_test.hpp> #include <amgcl/backend/blaze.hpp> #include "test_solver.hpp" BOOST_AUTO_TEST_SUITE( test_solvers ) BOOST_AUTO_TEST_CASE(test_blaze_backend) { test_backend< amgcl::backend::...
175
2,215
# # Copyright (c) 2021 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause # """ Datasets for time series anomaly detection (TSAD). All the time series in these datasets have an...
898
657
<filename>components/dht/dht.h /* * Copyright (c) 2016 <NAME> <https://github.com/jsuiker> * Copyright (c) 2018 <NAME> <<EMAIL>> * * 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 co...
1,174
445
<gh_stars>100-1000 #pragma once struct PU; class QWidget; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// struct PrivData { QWidget* parent; void* user_data; }; // TODO: Should not be here struct PluginInstance { PrivData priv; ...
114
515
/*============================================================================= Library: CTK Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the ...
677
464
from .action import TaskRefuse, DisconnectionRefuse, ConnectionRefuse, TaskFail from .slave import Slave
26
1,016
package com.thinkbiganalytics.kylo.catalog.spark; /*- * #%L * Kylo Catalog for Spark 2 * %% * Copyright (C) 2017 - 2018 ThinkBig Analytics * %% * 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 Lic...
630
9,680
<reponame>dutxubo/nni<filename>examples/trials/kaggle-tgs-salt/loader.py # Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # 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 th...
5,018
369
<reponame>akshaya9/fosswebsite from promotion.models import JoinApplication def get_application_count(): return len(JoinApplication.objects.filter(is_rejected=False, is_approved=False)) # function to add application_list notification dot to all pages def application_processor(request): application_count = ...
111
1,388
<reponame>keyfour/AnimatedGraphView package com.razerdp.widget.animatedpieview.render; import android.graphics.Canvas; import android.support.annotation.Nullable; import com.razerdp.widget.animatedpieview.IPieView; import com.razerdp.widget.animatedpieview.manager.PieManager; /** * Created by 大灯泡 on 2018/2/1. * <p...
880
575
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MEDIA_GPU_V4L2_V4L2_VP9_ACCELERATOR_LEGACY_H_ #define MEDIA_GPU_V4L2_V4L2_VP9_ACCELERATOR_LEGACY_H_ #include <vector> #include "base/callback.h"...
777
8,747
/* Hello World Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <stdio.h> #i...
507
388
<reponame>OctaviantoVyan/jwswing<filename>LargeCellEditor/src/java/example/MainPanel.java // -*- mode:java; encoding:utf-8 -*- // vim:set fileencoding=utf-8: // @homepage@ package example; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import ...
3,633
338
<reponame>ayumi-cloud/browscap<gh_stars>100-1000 { "China-Tablet I101MTK": { "type": "tablet", "properties": { "Device_Name": "I101MTK", "Device_Code_Name": "I101MTK", "Device_Maker": "China Tablet", "Device_Pointing_Method": "touchscreen", "Device_Brand_Name": "China Tablet" ...
160
5,791
/* Copyright 2016 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 required by applicable law or agreed to in ...
1,614
344
/* * Copyright (c) 2020 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. All contribut...
432
605
//===-- Unittests for atof ------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
724
575
// Copyright (c) 2011 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 THIRD_PARTY_BLINK_PUBLIC_COMMON_LOADER_INTER_PROCESS_TIME_TICKS_CONVERTER_H_ #define THIRD_PARTY_BLINK_PUBLIC_COMMON_LOADER_INTER_PROCESS_TIME...
2,310
310
// Copyright (C) 2002-2011 <NAME> // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h #ifndef __C_IRR_DEVICE_CONSOLE_H_INCLUDED__ #define __C_IRR_DEVICE_CONSOLE_H_INCLUDED__ #include "IrrCompileConfig.h" #ifdef _IRR_COMPILE_WITH_CONSOLE_DEVICE_...
504
5,133
/* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.test.conversion.nativetypes; import org.mapstruct.ap.testutil.IssueKey; import org.mapstruct.ap.testutil.ProcessorTest; import org.mapstruct.ap.te...
619
1,780
package com.twitter.inject.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.RetentionPolicy.RUNTIME; @Retention(RUNTIME) @Target({ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD}) @MarkerAn...
126
937
package cyclops.function; import com.oath.cyclops.hkt.Higher; import lombok.AllArgsConstructor; import java.util.Comparator; import static cyclops.function.Ord.Ordering.*; public interface Ord<W,T> { public enum Ordering {LESS, EQUAL, MORE} Ordering compare(Higher<W,T> first, Higher<W,T> second); pu...
390
3,212
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
1,323
6,098
import sys import os sys.path.insert(1, os.path.join("..", "..", "..")) import h2o from tests import pyunit_utils from h2o.grid.grid_search import H2OGridSearch from h2o.estimators.gbm import H2OGradientBoostingEstimator def grid_resume(): train = h2o.import_file(path=pyunit_utils.locate("smalldata/iris/iris_whea...
565
30,023
"""Tests for the Airzone integration."""
11
1,968
<gh_stars>1000+ ////////////////////////////////////////////////////////////////////////////// // // This file is part of the Corona game engine. // For overview and more information on licensing please refer to README.md // Home page: https://github.com/coronalabs/corona // Contact: <EMAIL> // ///////////////////////...
1,470
3,673
<reponame>jaeh/IncludeOS #include <os.hpp> #include <kernel.hpp> bool os::is_booted() noexcept { return kernel::is_booted(); } const char* os::arch() noexcept { return Arch::name; } os::Panic_action os::panic_action() noexcept { return kernel::panic_action(); } void os::set_panic_action(Panic_action action) n...
296
2,372
uniform sampler3D ttt3D; uniform float extraNoiseScale = 1.0f; uniform float noiseScale = 0.03f; float noise(float p) { return texture3D(ttt3D, vec3(p*noiseScale*extraNoiseScale, 0.5, 0.5)).x; } float noise(float p, float q) { return texture3D(ttt3D, vec3(p*noiseScale*extraNoiseScale, q*noiseScale*extraNoise...
6,627
778
<reponame>rahulyesantharao/tuplex #!/usr/bin/env python3 #----------------------------------------------------------------------------------------------------------------------# # # # ...
1,011
956
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2015-2020 */ #ifndef _TXGBE_STATUS_H_ #define _TXGBE_STATUS_H_ /* Error Codes: * common error * module error(simple) * module error(detailed) * * (-256, 256): reserved for non-txgbe defined error code */ #define TERR_BASE (0x100) enum txgbe_error { TERR...
2,094
3,428
<reponame>ghalimi/stdlib {"id":"01024","group":"easy-ham-2","checksum":{"type":"MD5","value":"28499f419990c33e20cb2f0ea7c77653"},"text":"From <EMAIL> Tue Aug 13 10:31:12 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.co...
1,114