max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,538
<reponame>zmoon/scipy-lecture-notes<gh_stars>1000+ import numpy as np import fortran_module def some_function(input): """ Call a Fortran routine, and preserve input shape """ input = np.asarray(input) # fortran_module.some_function() only accepts 1-D arrays! output = fortran_module.some_functio...
180
1,607
<reponame>tendoasan/fastdex package fastdex.idea.views; import javax.swing.*; import java.awt.*; /** * Created by pengwei on 16/9/14. */ public class JTitle extends JLabel { public JTitle(String text) { super(text); setFont(new Font("微软雅黑", Font.BOLD, 15)); setBorder(BorderFactory.creat...
160
370
package com.vitco.app.util.graphic; import com.vitco.app.util.misc.ArrayUtil; import com.vitco.app.util.misc.IntegerTools; import gnu.trove.iterator.TIntIntIterator; import gnu.trove.iterator.TIntIterator; import gnu.trove.map.hash.TIntIntHashMap; import gnu.trove.map.hash.TIntObjectHashMap; import gnu.trove.set.hash....
10,734
368
<gh_stars>100-1000 // Generated by the protocol buffer compiler. DO NOT EDIT! #import "ProtocolBuffers.h" // @@protoc_insertion_point(imports) @class IMHeartBeat; @class IMHeartBeatBuilder; #ifndef __has_feature #define __has_feature(x) 0 // Compatibility with non-clang compilers. #endif // __has_feature #ifndef...
703
1,145
<reponame>agenttud/chatterino7 #pragma once #include <deque> namespace chatterino { class MessageContainer { public: MessageContainer(); }; } // namespace chatterino
62
369
// Copyright (c) 2017-2021, Mudita <NAME>.o.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include "AudioFormat.hpp" #include <cstdint> namespace audio { /** * @brief An abstract interface for classes implementing data connection * between two...
3,047
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...
5,589
2,890
package com.github.ltsopensource.core.support; import com.github.ltsopensource.core.exception.CronException; import java.text.ParseException; import java.util.Date; /** * @author <NAME> (<EMAIL>) on 5/27/15. */ public class CronExpressionUtils { private CronExpressionUtils() { } public static Date ge...
473
669
from . import embedding from . import encoder
12
1,738
<reponame>BadDevCode/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 pro...
2,347
60,067
<gh_stars>1000+ import torch import tensorrt as trt from torch.fx.experimental.fx2trt.fx2trt import tensorrt_converter from .helper_functions import mark_as_int8_layer @tensorrt_converter(torch.flatten) def torch_flatten(network, target, args, kwargs, name): # args/kwargs should have already been normalized to kw...
627
582
/******************************************************************************* * Copyright (c) 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is a...
1,381
627
import json import pytest from indy.anoncreds import issuer_create_and_store_credential_def from indy.ledger import build_get_cred_def_request, build_cred_def_request from plenum.common.exceptions import RequestNackedException from plenum.common.constants import TXN_METADATA, TXN_METADATA_ID from plenum.test.helper i...
1,806
1,261
import unittest from unittest.mock import MagicMock import toga import toga_dummy class TestIcon(unittest.TestCase): def setUp(self): # We need a test app to for icon loading to work self.app = toga.App( formal_name="Test App", app_id="org.beeware.test-app", fa...
651
554
<filename>tests/test_actions_db.py """test for actions_db module.""" import os import unittest from StringIO import StringIO try: # py3 from unittest import mock except ImportError: # py2 import mock import pytest import sqlite3 def test_simple_import(): """test simple import. the first error rais...
4,892
6,465
<gh_stars>1000+ package io.dropwizard.testing; import org.junit.jupiter.api.Test; import static io.dropwizard.testing.FixtureHelpers.fixture; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException; class FixtureHelpersTest { @Tes...
229
1,144
<gh_stars>1000+ /* * #%L * de.metas.salescandidate.base * %% * Copyright (C) 2021 metas GmbH * %% * This program 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 (...
726
1,603
from typing import List, Set from datahub.metadata.schema_classes import FabricTypeClass from datahub.utilities.urns.error import InvalidUrnError from datahub.utilities.urns.urn import Urn class DataFlowUrn(Urn): """ expected data flow urn format: urn:li:dataFlow:(<orchestrator>,<flow_id>,<env>). example: ...
1,312
348
{"nom":"Evricourt","circ":"6ème circonscription","dpt":"Oise","inscrits":129,"abs":70,"votants":59,"blancs":1,"nuls":0,"exp":58,"res":[{"nuance":"FN","nom":"M. <NAME>","voix":41},{"nuance":"REM","nom":"<NAME>","voix":17}]}
90
1,968
<filename>platform/android/ndk/Rtt_AndroidInputDeviceManager.cpp<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/...
769
423
{ "certificate": "<KEY>", "reason": 1 }
20
451
// File Automatically generated by eLiSe #include "StdAfx.h" #include "cREgDistDxDy_Four19x2.h" cREgDistDxDy_Four19x2::cREgDistDxDy_Four19x2(): cElCompiledFonc(2) { AddIntRef (cIncIntervale("Intr",0,20)); Close(false); } void cREgDistDxDy_Four19x2::ComputeVal() { double tmp0_ = mLocRegDistxy1_x - mLoc...
17,906
2,391
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef SCREEN_CONFIGURATION_H #define SCREEN_CONFIGURATION_H #define MAX_COLUMNS 5 #include <ncurses.h> #undef OK #define NCURSES_OK 0 #include <math.h> class ScreenConfiguration { public: enum sort {time,...
395
488
#ifndef ROSE_RSIM_Futex_H #define ROSE_RSIM_Futex_H /** Table of fast user-space mutex (futex) queues. This table is placed in the simulator's shared memory and protected by a * semaphore contained in the table. It's essentially a hash table containing a fixed number of QueueMember objects, each of * which repre...
2,396
977
// SHA-224. Adapted from LibTomCrypt. This code is Public Domain #include "sha224.hpp" #include <cstring> void sha_init(sha224_state& md) { md.md.curlen = 0; md.md.length = 0; md.md.state[0] = 0xc1059ed8UL; md.md.state[1] = 0x367cd507UL; md.md.state[2] = 0x3070dd17UL; md.md.state[3] = 0xf70e59...
365
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. package org.chromium.chrome.browser.browserservices.ui.trustedwebactivity; import dagger.Lazy; /** * An implementation of {@link Lazy} that hold a pre-...
211
412
public class VirtualFunctions { Object static_object; public static class A { public void f() { } } public static class B extends A{ public void f() { } } public static class C extends B { } public static void check(A a, B b, C c) { // multiple possibilities, one needs a cast ...
157
648
{"resourceType":"ConceptMap","id":"sc-goal-achievement","url":"http://hl7.org/fhir/ConceptMap/sc-goal-achievement","version":"4.0.1","name":"GoalAchievementStatusCanonicalMap","title":"Canonical Mapping for \"Goal achievement status\"","status":"draft","date":"2019-11-01T09:29:23+11:00","publisher":"HL7 International -...
364
391
/* * * Copyright (C) 2020 iQIYI (www.iqiyi.com) * * 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 ...
796
348
<filename>docs/data/leg-t2/041/04101067.json {"nom":"Cour-Cheverny","circ":"1ère circonscription","dpt":"Loir-et-Cher","inscrits":2212,"abs":1172,"votants":1040,"blancs":69,"nuls":14,"exp":957,"res":[{"nuance":"MDM","nom":"<NAME>","voix":654},{"nuance":"FN","nom":"M. <NAME>","voix":303}]}
122
607
<reponame>AIHZP/andysworkshop-stm32plus<gh_stars>100-1000 /* * This file is a part of the open source stm32plus library. * Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk> * Please see website for licensing terms. */ #pragma once namespace stm32plus { namespace usb { /** * Handle the ...
583
3,041
<filename>ethpm/assets/owned/output_v3.json {"contracts":{"Owned.sol":{"Owned":{"abi":[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"}],"devdoc":{"methods":{}},"evm":{"bytecode":{"linkReferences":{},"object":"6080604052348015600f57600080fd5b50600080546001600160a01b03191633179055603f80602f6000396000f3f...
1,079
357
#include <exception> #include <algorithm> #include <numeric> #include <random> #include <cmath> #include <mipp.h> #include <catch.hpp> template <typename T> void test_reg_fmsub() { T inputs1[mipp::N<T>()], inputs2[mipp::N<T>()], inputs3[mipp::N<T>()]; std::iota(inputs1, inputs1 + mipp::N<T>(), (T)1); std::iota(inpu...
3,620
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 Servi...
772
897
<reponame>Khushboo85277/NeoAlgo<gh_stars>100-1000 """ Purpose: Given a binary matrix of N*M order where 0 is the wall and 1 is the way. Find the shortest distance from a source cell to a destination cell, traversing through limited cells only. Also, you can move only up, down, left and right. If...
1,442
583
package ru.yandex.clickhouse.response.parser; import java.time.Instant; import java.time.LocalDate; import java.time.format.DateTimeParseException; import java.util.TimeZone; import ru.yandex.clickhouse.response.ClickHouseColumnInfo; final class ClickHouseLocalDateParser extends ClickHouseDateValueParser<LocalDate> ...
700
558
<filename>syncer-transmission/src/main/java/syncer/transmission/checkpoint/breakpoint/BreakPoint.java package syncer.transmission.checkpoint.breakpoint; import com.alibaba.fastjson.JSON; import lombok.extern.slf4j.Slf4j; import org.springframework.util.StringUtils; import syncer.common.config.BreakPointConfig; import ...
2,187
778
<reponame>qiongqiong-wu/XPush<gh_stars>100-1000 /* * Copyright (C) 2019 xuexiangjys(<EMAIL>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LI...
929
3,799
/* * Copyright 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
5,660
416
<reponame>andlimey/nusmods [ { "moduleCode": "ACC2002", "title": "Managerial Accounting", "semesters": [1, 2] }, { "moduleCode": "BFS1001", "title": "Personal Development & Career Management", "semesters": [1, 2] }, { "moduleCode": "CS1010S", "title": "Programming Methodology", "semesters": [1, 2] }...
268
1,817
<reponame>skylar-stark/springdoc-openapi /* * * * Copyright 2019-2020 the original author or 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 * * * * https...
807
566
<filename>args4j/test/org/kohsuke/args4j/spi/SettersTest.java package org.kohsuke.args4j.spi; import java.lang.reflect.Field; import junit.framework.Assert; import junit.framework.TestCase; /** * @author dantuch */ @SuppressWarnings({"static-method", "unused"}) public class SettersTest extends TestCase { priv...
439
437
<filename>ycsb-t/javacpp/src/main/java/org/bytedeco/javacpp/indexer/Indexable.java /* * Copyright (C) 2014 <NAME> * * This file is part of JavaCPP. * * JavaCPP 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 Founda...
572
2,111
<gh_stars>1000+ // This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2019 <NAME> <<EMAIL>> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one a...
6,105
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...
6,521
4,606
from dagster_graphql.schema import types def test_schema_naming_invariant(): violations = [] for type_ in types(): if type_.__name__ != f"Graphene{type_._meta.name}": # pylint: disable=protected-access violations.append( (type_.__name__, f"Graphene{type_._meta.name}") # p...
170
994
<gh_stars>100-1000 #include<bits/stdc++.h> using namespace std; long long int dp[1001][1024]; int main() { int n, MASK=0, i, j; string x; int s[14]; cin>>x; x = ' ' + x; cin>>n; for(i = 0; i < n; i++) { cin>>s[i]; MASK|=(1<<s[i]); } dp[0][0] = 1; for(i = 1; i<= x.length()-1; i++){ dp[i][0] = 1; ...
343
2,338
<reponame>acidburn0zzz/llvm-project // RUN: %clang_analyze_cc1 -Wno-format-security -Wno-pointer-to-int-cast -verify %s \ // RUN: -analyzer-checker=alpha.security.taint \ // RUN: -analyzer-checker=core \ // RUN: -analyzer-checker=alpha.security.ArrayBoundV2 \ // RUN: -analyzer-config \ // RUN: alpha.securit...
4,803
14,668
<gh_stars>1000+ // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/autofill_assistant/browser/service/java_service_request_sender.h" #include "base/android/jni_android.h" #include "ba...
805
879
package org.zstack.header.core; import java.lang.annotation.Retention; import java.lang.annotation.Target; /** * Created by xing5 on 2016/6/22. */ @Target(java.lang.annotation.ElementType.METHOD) @Retention(java.lang.annotation.RetentionPolicy.RUNTIME) public @interface ExceptionSafe { }
99
859
#include "pch.h" #include <activation.h> TEST_CASE("get_activation_factory") { // Compile-time test to ensure that get_activation_factory supports unprojected factory interfaces. auto factory = winrt::get_activation_factory<winrt::Windows::Foundation::Uri, ::IActivationFactory>(); REQUIRE(factory); }
107
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...
1,814
8,027
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
527
726
package com.yuyh.sprintnba.utils; import java.io.Serializable; public class NavigationEntity implements Serializable{ private int iconResId; private String name; public NavigationEntity(int iconResId, String name) { this.iconResId = iconResId; this.name = name; } public int get...
238
1,114
<filename>nx/source/kernel/barrier.c #include "kernel/barrier.h" void barrierInit(Barrier *b, u64 total) { b->count = 0; b->total = total - 1; mutexInit(&b->mutex); condvarInit(&b->condvar); } void barrierWait(Barrier *b) { mutexLock(&b->mutex); if (b->count++ == b->total) { b->count ...
224
649
package com.serenity.screenplay.platform.android.interactions; import static net.serenitybdd.screenplay.Tasks.instrumented; import java.util.Arrays; import java.util.Map; import java.util.stream.Collectors; import com.serenity.screenplay.platform.android.AndroidObject; import io.appium.java_client.android.nativekey...
527
737
/* file_reader_block.cc <NAME>, 10 January 2014 Copyright (c) 2014 Datacratic Inc. All rights reserved. */ TextLineDescription:: TextLineDescription() { } FileReaderBlock::FileReaderBlock() : lines(this, "lines"), folder("%{input-path}") { } void FileReaderBlock::run() { auto & env = getPipeline(...
384
348
<filename>docs/data/leg-t1/062/06212846.json {"nom":"Vermelles","circ":"12ème circonscription","dpt":"Pas-de-Calais","inscrits":3466,"abs":1940,"votants":1526,"blancs":32,"nuls":11,"exp":1483,"res":[{"nuance":"FN","nom":"<NAME>","voix":574},{"nuance":"REM","nom":"Mme <NAME>","voix":350},{"nuance":"FI","nom":"<NAME>","v...
315
421
<gh_stars>100-1000 import os import ujson import torch import random from collections import defaultdict, OrderedDict from colbert.parameters import DEVICE from colbert.modeling.colbert import ColBERT from colbert.utils.utils import print_message, load_checkpoint def load_model(args, do_print=True): colbert = C...
438
348
{"nom":"<NAME>","dpt":"Lot-et-Garonne","inscrits":367,"abs":66,"votants":301,"blancs":26,"nuls":22,"exp":253,"res":[{"panneau":"2","voix":127},{"panneau":"1","voix":126}]}
72
534
package mekanism.common.block.attribute; import java.util.HashMap; import java.util.Map; import mekanism.api.tier.ITier; import mekanism.common.MekanismLang; import mekanism.common.content.blocktype.BlockType; import mekanism.common.content.blocktype.BlockType.BlockTypeBuilder; public class AttributeTier<TIER extends...
375
398
from __future__ import absolute_import, division, print_function, unicode_literals
24
20,995
// Copyright 2021 the V8 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. #include "include/cppgc/allocation.h" #include "src/base/macros.h" #include "src/base/sanitizer/asan.h" #include "test/unittests/heap/cppgc/tests.h" #in...
568
2,406
<reponame>monroid/openvino<filename>model-optimizer/extensions/front/onnx/range_ext.py # Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from extensions.ops.range import Range from mo.front.extractor import FrontExtractorOp from mo.graph.graph import Node class RangeFrontExtractor(Fro...
196
702
<filename>montreal_forced_aligner/config/align_config.py import os import yaml from .base_config import BaseConfig, ConfigError, DEFAULT_PUNCTUATION, DEFAULT_CLITIC_MARKERS, \ DEFAULT_COMPOUND_MARKERS, DEFAULT_DIGRAPHS, DEFAULT_STRIP_DIACRITICS from ..features.config import FeatureConfig class AlignConfig(BaseCon...
1,902
411
<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 ...
1,523
4,036
<reponame>vadi2/codeql public class MyFragment extends Fragment { // OK: super class enforces reference equality private int anotherField; }
43
444
#/u/GoldenSights import traceback from dateutil.parser import parse as dateparse import string import datetime import time import praw import sqlite3 import re """ USER CONFIG """ USERAGENT = "" #Describe the bot and what it does. Include your username APP_ID = "" APP_SECRET = "" APP_URI = "" APP_REFRESH = "" # https...
6,551
2,151
<reponame>zipated/src // Copyright 2016 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 SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_H_ #define SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_H...
359
1,350
<filename>sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowTriggers.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.logic....
3,063
623
<gh_stars>100-1000 { "name": "hot-formula-parser", "description": "Formula parser", "main": "dist/formula-parser.js", "homepage": "https://github.com/handsontable/formula-parser", "repository": { "type": "git", "url": "https://github.com/handsontable/formula-parser.git" }, "authors": [ "Handso...
246
349
<filename>src/test/java/com/github/tomakehurst/wiremock/common/ProxySettingsTest.java /* * Copyright (C) 2018-2021 <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...
1,491
1,253
def sort(l): n = l[-1] prime = [True for i in range(n + 1)] p = 2 while (p * p <= n): if (prime[p] == True): for i in range(p ** 2, n + 1, p): prime[i] = False p += 1 prime[0]= False prime[1]= False for i in range(len(l)): ...
400
543
/* * Copyright (c) 1997, 1998, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
638
1,779
// // 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
1,715
348
<filename>docs/data/leg-t2/023/02301072.json<gh_stars>100-1000 {"nom":"Domeyrot","circ":"1ère circonscription","dpt":"Creuse","inscrits":215,"abs":110,"votants":105,"blancs":9,"nuls":5,"exp":91,"res":[{"nuance":"REM","nom":"<NAME>","voix":61},{"nuance":"LR","nom":"<NAME>","voix":30}]}
117
506
<reponame>Ashindustry007/competitive-programming<filename>atcoder/abc087/a.py #!/usr/bin/env python2 # https://abc087.contest.atcoder.jp/tasks/abc087_a x = input() a = input() b = input() x -= a print x % b
88
4,224
<filename>src/drivers/power_monitor/ina238/ina238.h /**************************************************************************** * * Copyright (C) 2021 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that th...
9,140
1,503
#ifndef NVUI_FONTDESC_HPP #define NVUI_FONTDESC_HPP #include <string> #include "hlstate.hpp" struct FontDesc { std::string name; double point_size; FontOptions base_options; }; #endif // NVUI_FONTDESC_HPP
94
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.containerregistry.fluent.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; impor...
1,454
787
<filename>jenetics.xml/src/test/java/io/jenetics/xml/Usage.java /* * Java Genetic Algorithm Library (@__identifier__@). * Copyright (c) @__year__@ <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 o...
629
5,169
<gh_stars>1000+ { "name": "Aurora", "platforms": { "ios": "8.0" }, "summary": "Pacific is an iOS bootstrap framework", "requires_arc": true, "version": "1.0.0", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "[<NAME>]": "[<EMAIL>]" }, "homepage": "http://totemv.com/d...
234
451
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2007 <NAME> // Copyright (C) 2009 <NAME> <<EMAIL>> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can...
2,434
669
// Copyright(c) 2019 - 2020, #Momo // 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, this // list of conditions...
9,722
850
/* * queue.c * Copyright (c) 2012 <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 ...
2,932
448
/* * Copyright 2017 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 to ...
762
303
<reponame>mr-c/LightZone /* Copyright (C) 2005-2011 <NAME> */ package com.lightcrafts.platform.macosx; /** * Launches the Mac OS X Help Viewer application to show our application's * help. * * @author <NAME> [<EMAIL>] */ public final class MacOSXHelp { ////////// public /////////////////////////////////////...
260
422
<gh_stars>100-1000 /* #version 450 core // // workgroup size defined with specialization constants. layout( local_size_x_id = 0 ) in; // // size of vector defined by a specialization constant layout( constant_id = 1 ) const uint n = 100; // // resources layout(set = 0, binding = 0) writeonly buffer X { float x[]; }...
6,727
5,169
<reponame>Gantios/Specs { "name": "IDK", "version": "0.0.4", "summary": "A short IDK.", "description": "This CocoaPods library helps you perform calculation.", "homepage": "https://github.com/ArchanJash/IDK", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "Archan": "<EMAIL>" ...
256
454
package io.vertx.tp.plugin.excel.cell; public class PureValue implements ExValue { @Override @SuppressWarnings("all") public Object to(Object value) { return value; } }
75
4,640
# 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 not u...
5,993
619
<reponame>moredu/upm<gh_stars>100-1000 /* * Author: <NAME> <<EMAIL>> * * Copyright (c) 2016 Intel Corporation. * * This program and the accompanying materials are made available under the * terms of the The MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MI...
564
2,305
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. ''' NNI example for supported iterative pruning algorithms. In this example, we show the end-to-end iterative pruning process: pre-training -> pruning -> fine-tuning. ''' import sys import argparse from tqdm import tqdm import torch from torchv...
2,172
463
<filename>org.hive2hive.core/src/main/java/org/hive2hive/core/network/data/IUserProfileModification.java package org.hive2hive.core.network.data; import org.hive2hive.core.exceptions.AbortModifyException; import org.hive2hive.core.model.versioned.UserProfile; public interface IUserProfileModification { /** * Modi...
215
777
/* * This file is part of the theme implementation for form controls in WebCore. * * Copyright (C) 2005 Apple Computer, Inc. * Copyright (C) 2008, 2009 Google, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as publis...
1,381
348
<gh_stars>100-1000 {"nom":"Lapte","circ":"1ère circonscription","dpt":"Haute-Loire","inscrits":1372,"abs":659,"votants":713,"blancs":32,"nuls":14,"exp":667,"res":[{"nuance":"LR","nom":"Mme <NAME>","voix":420},{"nuance":"REM","nom":"<NAME>","voix":247}]}
102
1,590
<reponame>libc16/azure-rest-api-specs { "parameters": { "accountName": "sampleacct", "resourceGroupName": "YourServiceNameClient", "api-version": "2019-12-01", "subscriptionId": "subid" }, "responses": { "200": { "body": { "location": "uswest", "id": "/subscriptions/subid...
212
2,151
/********************************************************** * Copyright 2009-2011 VMware, Inc. 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 * restrict...
3,119
417
<reponame>Pecon/Torque3D-1 //----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 ...
9,803
16,097
from .. import LinearExplainer from .. import KernelExplainer from .. import SamplingExplainer from ..explainers import other from .. import __version__ from . import measures from . import methods import sklearn import numpy as np import copy import functools import time import hashlib import os try: import dill a...
12,191