max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,431
<gh_stars>1000+ import numpy as np def unitvec(vec): return (1.0 / np.linalg.norm(vec, ord=2)) * vec def distance(a, b, metric="cosine"): """ Calculate distance between two vectors based on a Metric Metrics: 1. cosine distance. Note that in word2vec all the norms are 1 so the dot product is the...
181
7,482
/* * Copyright (c) 2012, Freescale Semiconductor, Inc. * All rights reserved. * * THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT * S...
15,364
1,056
<filename>platform/core.multiview/src/org/netbeans/core/multiview/MultiViewHandlerDelegate.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 ownership. The...
477
369
<reponame>bitigchi/MuditaOS // Copyright (c) 2017-2021, Mudit<NAME>. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include "ThreadsModel.hpp" #include <BaseThreadItem.hpp> #include <ContactRecord.hpp> namespace gui { class ThreadItem : public BaseThreadI...
564
683
<gh_stars>100-1000 /* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.javaagent.instrumentation.tomcat.common; import org.apache.coyote.Request; import org.apache.coyote.Response; /** * Used to access servlet request/response classes from their Apache Coyot...
256
911
<reponame>ewjoachim/pythondotorg from django.conf import settings from django.views.generic.base import RedirectView, TemplateView from codesamples.models import CodeSample from downloads.models import Release class IndexView(TemplateView): template_name = "python/index.html" def get_context_data(self, **kw...
564
1,272
<reponame>tsweet77/avs-device-sdk<filename>AVSCommon/SDKInterfaces/include/AVSCommon/SDKInterfaces/DtmfObserverInterface.h /* * Copyright 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...
612
2,151
// Copyright 2009 The RE2 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 RE2_TESTING_EXHAUSTIVE_TESTER_H_ #define RE2_TESTING_EXHAUSTIVE_TESTER_H_ #include <stdint.h> #include <string> #include <vector> #include "util/uti...
1,376
1,041
/** * Provides type safe query criteria support for Ebean ORM queries. * <p> * 'Query beans' like QCustomer are generated using the <code>avaje-ebeanorm-typequery-generator</code> * for each entity bean type and can then be used to build queries with type safe criteria. * </p> * * <h2>Example - usage of QCus...
470
683
<reponame>laurit/opentelemetry-java-instrumentation /* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package test; import javax.inject.Named; import javax.ws.rs.GET; import javax.ws.rs.Path; @Path("/cdiHello") @Named("cdiHello") public class CdiRestResource { @GET public Stri...
140
1,168
/** * The MIT License * Copyright © 2010 JmxTrans team * * 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, mo...
808
711
<reponame>jingetiema2100/MicroCommunity package com.java110.fee.listener.tempCarFeeConfig; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.java110.core.annotation.Java110Listener; import com.java110.core.context.DataFlowContext; import com.java110.core.factory.GenerateCodeFact...
3,055
10,225
package io.quarkus.it.panache.reactive; import javax.persistence.Entity; import javax.persistence.NamedQuery; import io.quarkus.hibernate.reactive.panache.PanacheEntity; @Entity @NamedQuery(name = "NamedQueryWith2QueriesEntity.getAll1", query = "from NamedQueryWith2QueriesEntity") @NamedQuery(name = "NamedQueryWith2...
162
360
package com.idugalic.commandside.blog.web; import java.util.Date; import com.idugalic.common.blog.model.BlogPostCategory; /** * A web request data transfer object for {@link CreateBlogPostCommand} * * @author idugalic * */ public class CreateBlogPostRequest { private String title; private String rawCo...
608
313
package com.bin.david.smartchart.weather; /** * Created by huang on 2017/11/30. */ public class WeatherBean { private String date; private String week; private String fristWeather; private String lastWeather; private String wind; private String hightTemp; private String lowTemp; pu...
547
3,269
# Time: O(n^2) # Space: O(1) class Solution(object): def maxMatrixSum(self, matrix): """ :type matrix: List[List[int]] :rtype: int """ abs_total = sum(abs(x) for row in matrix for x in row) min_abs_val = min(abs(x) for row in matrix for x in row) neg_cnt = s...
204
416
// HMAccessory.h // HomeKit // // Copyright (c) 2013-2015 Apple Inc. All rights reserved. #import <Foundation/Foundation.h> #import <HomeKit/HMDefines.h> NS_ASSUME_NONNULL_BEGIN @class HMHome; @class HMRoom; @class HMService; @class HMCharacteristic; @class HMAccessoryCategory; @class HMAccessoryProfile; @protocol H...
2,967
301
<reponame>Eirenliel/PhotonFileValidator<gh_stars>100-1000 /* * MIT License * * Copyright (c) 2018 Bonosoft * * 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, includ...
3,268
700
<filename>Core/android/src/main/java/com/amazonaws/reactnative/core/AWSRNClientMarshaller.java<gh_stars>100-1000 // // Copyright 2010-2016 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...
3,861
1,546
/* * Copyright (C) 2019 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 app...
688
2,813
package org.jabref.gui.entryeditor; import java.util.Map; import java.util.Set; import javafx.beans.property.BooleanProperty; import javafx.beans.property.DoubleProperty; import javafx.beans.property.MapProperty; import javafx.beans.property.SimpleBooleanProperty; import javafx.beans.property.SimpleDoubleProperty; im...
2,049
3,534
#from retinaface import RetinaFace #this is not a must dependency import cv2 def build_model(): from retinaface import RetinaFace face_detector = RetinaFace.build_model() return face_detector def detect_face(face_detector, img, align = True): from retinaface import RetinaFace from retinaface.comm...
826
335
{ "word": "Exempt", "definitions": [ "Free (a person or organization) from an obligation or liability imposed on others." ], "parts-of-speech": "Verb" }
68
1,144
<reponame>dram/metasfresh<filename>backend/de.metas.adempiere.adempiere/base/src/main/java-gen/org/compiere/model/X_C_OrderLine_Detail.java // Generated Model - DO NOT CHANGE package org.compiere.model; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; import javax.annotation.Nullabl...
1,870
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...
2,311
870
<reponame>KikiManjaro/accumulo<filename>server/base/src/main/java/org/apache/accumulo/server/manager/balancer/BalancerEnvironmentImpl.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 informa...
1,609
14,668
/* 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. */ /* From pp_bool.idl modified Thu Nov 1 13:48:33 2012. */ #ifndef PPAPI_C_PP_BOOL_H_ #define PPAPI_C_PP_BOOL_H_ #include "ppapi/c/pp_macros.h" ...
523
3,058
<filename>Examples_3/Aura/src/Shaders/FSL/shader_defs.h /* * Copyright (c) 2018-2021 Confetti Interactive Inc. * * This is a part of Aura. * * This file(code) is licensed under a * Creative Commons Attribution-NonCommercial 4.0 International License * * (https://creativecommons.org/licenses/by-nc/4.0/legalcod...
2,782
3,428
<reponame>ghalimi/stdlib {"id":"00814","group":"easy-ham-1","checksum":{"type":"MD5","value":"6095f126eed33df37a63e3a37b2728fb"},"text":"From <EMAIL> Mon Sep 30 17:56:39 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>ass<EMAIL>int.<EMAIL>\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix)...
1,036
10,225
package io.quarkus.test.security; import java.util.Collections; import java.util.Set; import javax.annotation.PostConstruct; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; import io.quarkus.runtime.LaunchMode; import io.quarkus.security.identity.IdentityProviderManager; import io.quar...
580
1,350
<filename>sdk/automation/azure-resourcemanager-automation/src/main/java/com/azure/resourcemanager/automation/models/AdvancedSchedule.java<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package co...
1,217
410
<gh_stars>100-1000 // Copyright(c) 2017 POLYGONTEK // // 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...
4,913
310
<gh_stars>100-1000 { "name": "<NAME>", "description": "Audio mixing software.", "url": "https://www.vb-audio.com/Voicemeeter/banana.htm" }
59
1,091
<reponame>Shinkirou/onos /* * Copyright 2018-present Open Networking Foundation * * 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 * *...
1,892
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.messaging.eventhubs.models; import com.azure.core.annotation.Immutable; import com.azure.messaging.eventhubs.EventProcessorClient; import java.util.Objects; /** * This class contains inf...
503
30,785
<reponame>Dev-kishan1999/jadx package jadx.core.dex.nodes; import jadx.api.ICodeWriter; import jadx.core.codegen.RegionGen; import jadx.core.dex.attributes.IAttributeNode; import jadx.core.utils.exceptions.CodegenException; public interface IContainer extends IAttributeNode { /** * Unique id for use in 'toString(...
196
1,600
<reponame>beam2d/chainercv from __future__ import division import numpy as np import chainer from chainercv import transforms def mask_to_segm(mask, bbox, segm_size, index=None): """Crop and resize mask. This function requires cv2. Args: mask (~numpy.ndarray): See below. bbox (~numpy....
2,651
348
{"nom":"Perpignan","circ":"1ère circonscription","dpt":"Pyrénées-Orientales","inscrits":42979,"abs":26266,"votants":16713,"blancs":1060,"nuls":529,"exp":15124,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":8808},{"nuance":"FN","nom":"M. <NAME>","voix":6316}]}
106
688
<reponame>keremcubuk/react-native-electrode-bridge /* * Copyright 2017 WalmartLabs * * 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 * * ...
323
435
{ "copyright_text": null, "description": "Talk: Monolithic app to microservices transition is easy...\n\nMicroservices architecture is trendy right now ;) It's often a good choice for building sophisticated applications but on the other hand you have to be aware about difficulties with this architecture. What do yo...
622
5,169
{ "name": "DaV-Consultorio", "version": "0.0.2", "summary": "Integracao com o consultorio da Doutor ao Vivo", "description": "Como apoio ao desenvolvedor, a Doutor ao Vivo disponibiliza a sua sala de consultorio nativa.", "homepage": "https://www.doutoraovivo.com.br", "license": { "type": "MIT", "fi...
357
984
/* * Copyright DataStax, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
397
5,169
{ "name": "JHNoDataEmptyView", "summary": "A simple empty view for tableview and collectionview.", "version": "1.1.1", "license": { "type": "MIT" }, "authors": { "Haocold": "<EMAIL>" }, "homepage": "https://github.com/xjh093/JHNoDataEmptyViewForT-C", "platforms": { "ios": "8.0" }, "sou...
236
841
<gh_stars>100-1000 /* * Copyright 2017 Red Hat, Inc. and/or 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 * * Unl...
2,815
1,443
{ "copyright": "<NAME>", "url": "https://sascha.work", "email": "<EMAIL>", "format": "txt" }
45
1,056
/* * 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 ...
5,603
571
package com.univocity.trader.exchange.binance.futures.model.enums; public enum WorkingType { MARK_PRICE, CONTRACT_PRICE; }
55
742
<filename>components/misc/fnmatch.cpp #include <regex> #include "fnmatch.h" #include "../debug/Debug.h" #include "../utilities/String.h" namespace { // Converts fnmatch pattern to ECMAScript regex format. std::string PatternToECMA(const char *pattern) { std::string translated = pattern; translated = String::re...
477
596
/** * Copyright (C) 2012 <NAME> (<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/LICENSE-2.0 * * Unless required by applicable law...
734
1,374
package def.dom; public class StereoPannerNode extends AudioNode { public AudioParam pan; public static StereoPannerNode prototype; public StereoPannerNode(){} }
55
337
package com.amazmod.service.events.incoming; import com.huami.watch.transport.DataBundle; public class SyncSettings { private DataBundle dataBundle; public SyncSettings(DataBundle dataBundle) { this.dataBundle = dataBundle; } public DataBundle getDataBundle() { return dataBundle; ...
123
4,129
<reponame>whataa/booster package com.didiglobal.booster.instrument; import java.io.OutputStream; import java.io.PrintStream; /** * * @author neighbWang */ public final class ShadowSystem { public static final PrintStream out = new PrintStream(new OutputStream() { @Override public void write(fi...
157
2,813
package org.jabref.logic.importer.fetcher; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.Objects; import java.util.Optional; import java.util.stream.Collectors; import org.jabref.logic.importer.FulltextFetcher; import org.jabref.logic.net.URLDownload; import ...
3,029
1,444
package mage.cards.a; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.Mode; import mage.abilities.effects.Effect; import mage.abilities.effects.RestrictionEffect; import mage.abilities.effects.common.OpponentsCantCastChosenUntilNextTurnEffect; import mage.abilities.effects.common.ChooseACa...
1,098
1,375
<reponame>asb/opentitan<gh_stars>1000+ // Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_MASK_ROM_SIGVERIFY_KEYS_H_ #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_MASK_ROM_SIGVER...
669
764
{"symbol": "SGT","address": "0x24C19F7101c1731b85F1127EaA0407732E36EcDD","overview":{"en": ""},"email": "","website": "https://www.sharedstake.org/","state": "NORMAL","links": {"blog": "","twitter": "https://twitter.com/SharedStake","telegram": "","github": ""}}
100
6,958
<gh_stars>1000+ // // ReluTflite.cpp // MNNConverter // // Created by MNN on 2019/11/25. // Copyright © 2018, Alibaba Group Holding Limited // #include <stdio.h> #include "liteOpConverter.hpp" DECLARE_OP_COVERTER(ReluTflite); MNN::OpType ReluTflite::opType(bool quantizedModel) { return MNN::OpType_ReLU; } MNN...
1,187
383
<reponame>zuoxingdong/lagom import numpy as np from gym import RewardWrapper class SignClipReward(RewardWrapper): r""""Bin reward to {-1, 0, +1} by its sign. """ def reward(self, reward): return np.sign(reward) @pytest.mark.parametrize('env_id', ['CartPole-v1', 'Pendulum-v0', 'MountainCar-v0', ...
368
678
<reponame>bzxy/cydia /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/MIME.framework/MIME */ #import <MIME/MFBaseFilterDataConsumer.h> @interface MFUUDecoder : MFBaseFilterDataConsumer { unsigned _begin; // 12 = 0xc unsigned _end; // 16 = 0x10 unsigned _length...
271
2,400
/* * Copyright 2015 Red Hat, Inc. and/or 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 ap...
686
919
<filename>src/editor/rvsyntaxhighlighter.cpp #include "rvsyntaxhighlighter.h" #include "colors.h" namespace Ripes { RVSyntaxHighlighter::RVSyntaxHighlighter(QTextDocument* parent, std::shared_ptr<Assembler::Errors> errors, const std::set<QString>& supportedOpcodes) : Synt...
1,199
1,108
<filename>common/compat.h #ifndef _SDL_GPU_DEMO_COMMON_H__ #define _SDL_GPU_DEMO_COMMON_H__ #include "SDL_gpu.h" #ifdef SDL_GPU_USE_SDL2 #define SDL_GetKeyState SDL_GetKeyboardState #define KEY_UP SDL_SCANCODE_UP #define KEY_DOWN SDL_SCANCODE_DOWN #define KEY_LEFT SDL_SCANCODE_LEFT #define KEY_RIGHT SDL_SCANCODE_RIG...
534
310
<gh_stars>100-1000 package org.seasar.doma.it; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target({ElementType.TYPE, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface Run { ...
129
643
/* Copyright © 2011 MLstate This file is part of Opa. Opa is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License, version 3, as published by the Free Software Foundation. Opa is distributed in the hope that it will be useful, but WI...
303
590
# coding: utf-8 """ https://leetcode.com/problems/top-k-frequent-elements/ """ from collections import Counter from typing import List class Solution: def topKFrequent(self, nums: List[int], k: int) -> List[int]: counter = Counter(nums) output = [] for num, _ in counter.most_common(k): ...
152
3,269
<gh_stars>1000+ #ifndef SORBET_REWRITER_CONCERN_H #define SORBET_REWRITER_CONCERN_H #include "ast/ast.h" namespace sorbet::rewriter { /** * This class desugars things of the form * * module Foo * extend ActiveSupport::Concern * class_methods do * def a_class_method * end * end ...
298
771
#include "segmatch/points_neighbors_providers/impl/octree_points_neighbors_provider.hpp" namespace segmatch { // Instantiate OctreePointsNeighborsProvider for the template parameters used in the // application. template class OctreePointsNeighborsProvider<MapPoint>; // Add any other required instantiation here or in a...
134
1,067
<filename>WeChat/WeChat/Utils/Helper/MHMomentHelper.h // // MHMomentHelper.h // MHDevelopExample // // Created by senba on 2017/7/17. // Copyright © 2017年 CoderMikeHe. All rights reserved. // 微信朋友圈工具类 #import <Foundation/Foundation.h> @interface MHMomentHelper : NSObject /// 微信用到的 dateFormatter + (NSDateFormatte...
322
348
<filename>docs/data/leg-t2/027/02702238.json<gh_stars>100-1000 {"nom":"Ferrières-Haut-Clocher","circ":"2ème circonscription","dpt":"Eure","inscrits":824,"abs":433,"votants":391,"blancs":27,"nuls":9,"exp":355,"res":[{"nuance":"REM","nom":"<NAME>","voix":224},{"nuance":"FN","nom":"M. <NAME>","voix":131}]}
128
460
package org.wildfly.swarm.microprofile.health; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; import org.eclipse.microprofile.health.Liveness; import javax.enterprise.context.ApplicationScoped; @ApplicationScoped @Liveness public class TestUpLivenessHC...
151
5,279
<filename>sdks/java/io/thrift/src/test/java/org/apache/beam/sdk/io/thrift/TestThriftUnion.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 ownership. The ...
5,929
514
package no.priv.garshol.duke; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Collection; import java.util.List; import no.priv.garshol.duke.utils.JDBCUtils; /** * An abst...
4,556
525
# -*- coding: utf-8 -*- from crossplane.analyzer import register_external_directives from crossplane.lexer import register_external_lexer from crossplane.parser import register_external_parser from crossplane.builder import register_external_builder class CrossplaneExtension(object): directives = {} def regi...
309
831
<gh_stars>100-1000 package com.example.mylibrary1; import androidx.fragment.app.Fragment; public class FirstFragment extends Fragment { }
47
575
<filename>device/bluetooth/event_utils_winrt.h<gh_stars>100-1000 // 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 DEVICE_BLUETOOTH_EVENT_UTILS_WINRT_H_ #define DEVICE_BLUETOOTH_EVENT_UTILS_WINRT_...
1,031
516
<gh_stars>100-1000 package org.asciidoctor.integrationguide.extension; import org.asciidoctor.ast.StructuralNode; import org.asciidoctor.extension.BlockProcessor; import org.asciidoctor.ast.ContentModel; import org.asciidoctor.extension.Contexts; import org.asciidoctor.extension.Name; import org.asciidoctor.extension....
437
1,144
<filename>backend/de.metas.contracts/src/main/java-gen/de/metas/contracts/commission/model/X_C_MediatedCommissionSettings.java<gh_stars>1000+ /* * #%L * de.metas.contracts * %% * Copyright (C) 2021 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the ...
1,160
2,151
<filename>examples/peerconnection/server/peer_channel.h /* * Copyright 2011 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 ...
1,100
2,151
<filename>content/browser/memory/swap_metrics_delegate_uma.cc // Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/memory/swap_metrics_delegate_uma.h" #include "base/metrics/histog...
710
348
{"nom":"Eyvirat","circ":"3ème circonscription","dpt":"Dordogne","inscrits":226,"abs":111,"votants":115,"blancs":5,"nuls":14,"exp":96,"res":[{"nuance":"MDM","nom":"<NAME>","voix":59},{"nuance":"SOC","nom":"<NAME>","voix":37}]}
92
381
package com.tngtech.jgiven.junit.injection; import static org.assertj.core.api.Assertions.assertThat; import org.junit.Rule; import org.junit.Test; import com.tngtech.jgiven.Stage; import com.tngtech.jgiven.annotation.ExpectedScenarioState; import com.tngtech.jgiven.annotation.ProvidedScenarioState; import com.tngte...
651
1,271
<reponame>yuhonghong66/minpy """ Simple multi-layer perception neural network using Caffe Op through minpy and MXNet symbols """ import sys import mxnet as mx from minpy.nn import layers from minpy.nn.model import ModelBase from minpy.nn.solver import Solver from examples.utils.data_utils import get_CIFAR10_data from m...
1,902
1,652
<gh_stars>1000+ package com.ctrip.xpipe.redis.checker.healthcheck.clusteractions.beacon; import com.ctrip.xpipe.redis.checker.BeaconManager; import com.ctrip.xpipe.redis.checker.healthcheck.ClusterHealthCheckInstance; import com.ctrip.xpipe.redis.checker.healthcheck.ClusterInstanceInfo; import com.ctrip.xpipe.redis.c...
528
375
package org.archive.wayback.archivalurl.requestparser; import javax.servlet.http.HttpServletRequest; import junit.framework.TestCase; import org.archive.wayback.archivalurl.ArchivalUrlRequestParser; import org.archive.wayback.core.WaybackRequest; import org.archive.wayback.exception.BadQueryException; import org.arc...
2,574
365
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Part of drive_manager. Checks to see if our config file needs updating and updated it for us. """ VERSION = "V0.98 (2021-10-15)" import os import yaml from pathlib import Path import logging from system_logging import setup_logging from shutil import copyfile from flatte...
1,379
684
//------------------------------------------------------------------------------ // Copyright (c) 2018-2020 <NAME> // All rights reserved. // // https://michelemorrone.eu - https://BrutPitt.com // // twitter: https://twitter.com/BrutPitt - github: https://github.com/BrutPitt // // mailto:<EMAIL> - mailto:<...
34,156
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.eventgrid.models; import com.azure.resourcemanager.eventgrid.fluent.models.EventTypeInner; /** An immutable client-side represe...
565
1,269
<filename>graph4nlp/pytorch/modules/evaluation/meteor.py from graph4nlp.pytorch.modules.evaluation.base import EvaluationMetricBase from graph4nlp.pytorch.modules.evaluation.meteor_tool.meteor import Meteor class METEOR(EvaluationMetricBase): """ The METEOR evaluation metric class. Parameters ----...
575
764
<reponame>641589523/token-profile<gh_stars>100-1000 {"symbol": "SCV","address": "0x282417b21236Ac01a3A3d7ba304eD8d284f48b4D","overview":{"en": ""},"email": "<EMAIL>","website": "https://en.coinjinja.com/coinview","state": "NORMAL","links": {"blog": "https://medium.com/coinviewapp","twitter": "https://twitter.com/coinji...
147
1,085
<reponame>luxms/dremio-oss /* * Copyright (C) 2017-2019 Dremio Corporation * * 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 * * Unle...
1,420
1,536
<gh_stars>1000+ {"dependencies":[],"generated":{"js":"module.exports=\"d34ac906f23eff397f36460926feb55b.png\";"},"hash":"14efbe2fef1ef06d4ac5e16973e5dbc5","cacheData":{}}
73
370
/** @file safesyssocket.h * @brief #include <sys/socket.h> with portability workarounds. */ /* Copyright (C) 2012,2013,2014,2018,2019 <NAME> * * 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 Foundatio...
1,363
5,964
<reponame>wenfeifei/miniblink49<gh_stars>1000+ // Copyright 2015 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 "src/compiler/js-native-context-specialization.h" #include "src/accessors.h" #include "src/code...
15,940
809
/** * @file * @brief TWI communication for Lego AVR * * @date 26.09.10 * @author <NAME> * @author <NAME> */ #include <stdint.h> #include <embox/unit.h> #include <kernel/panic.h> #include <hal/reg.h> #include <hal/system.h> #include <drivers/at91sam7s256.h> #include <drivers/twi.h> EMBOX_UNIT_INIT(twi_init); ...
1,773
640
/* * CP/M GSX based graphics libraries * * stencil_render(int stencil_vector[], unsigned char intensity) * * <NAME> - 2021 * * $Id: stencil_render.c $ */ #include <cpm.h> //#include <graphics.h> extern void __LIB__ stencil_render(int stencil_vector[], unsigned char intensity) __smallc; extern int __LIB__ gsx...
1,556
23,439
/* * Copyright 1999-2020 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
830
777
// 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 NET_SPDY_HPACK_HPACK_DECODER_INTERFACE_H_ #define NET_SPDY_HPACK_HPACK_DECODER_INTERFACE_H_ // HpackDecoderInterface is the base class for HPACK ...
975
1,909
/* * Copyright 2019-2021 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
1,001
1,073
<filename>CONTRIB/LLVM/src/lib/Tg/Mips/MipsModuleISelDAGToDAG.cpp<gh_stars>1000+ //===----------------------------------------------------------------------===// // Instruction Selector Subtarget Control //===----------------------------------------------------------------------===// //===-----------------------------...
467
7,482
/* * Copyright (c) 2015, Xilinx Inc. and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ /* * @file cpu.h * @brief CPU primitives for libmetal. */ #ifndef __METAL_CPU__H__ #define __METAL_CPU__H__ # include <metal/processor/arm/cpu.h> #endif /* __METAL_CPU__H__ */
124