max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
620
import os.path as osp # data locations prefix = './data' train_name = 'deepfashion_train' test_name = 'deepfashion_test' knn = 5 knn_method = 'faiss' train_data = dict( feat_path=osp.join(prefix, 'features', '{}.bin'.format(train_name)), label_path=osp.join(prefix, 'labels', '{}.meta'.format(train_name)), ...
685
334
import pytest from starlite import HTTPRouteHandler, MediaType, create_test_client, get def sync_handler() -> str: return "Hello World" @pytest.mark.parametrize( # type: ignore "handler", [ get("/", media_type=MediaType.TEXT, sync_to_thread=True)(sync_handler), get("/", media_type=Medi...
218
375
#ifndef BCM_SDHC26_BCM_SDHC_H_ #define BCM_SDHC26_BCM_SDHC_H_ #define MOD_NAME "bcm_sdhc" // Module name #define MOD_VERSION "1.0.0" // Module version number #define DEVICE_NAME "bcmsdhc" // Device name #define DEBUG // Default values for modules parameters - can override by passing a module parameter. #d...
1,566
686
/* Copyright (C) 1996-1997 Id Software, Inc. 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 (at your option) any later version. This program is distributed in th...
3,060
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 ...
1,820
3,227
// #define CGAL_PMP_SMOOTHING_DEBUG #define CGAL_PMP_COMPUTE_NORMAL_DEBUG #define CGAL_PMP_REMOVE_SELF_INTERSECTION_DEBUG #define CGAL_PMP_REMOVE_SELF_INTERSECTION_OUTPUT #include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Surface_mesh.h> #include <CGAL/Polygon_mesh_processing/repair.h> #in...
1,610
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Saint-Preuil","circ":"2ème circonscription","dpt":"Charente","inscrits":226,"abs":120,"votants":106,"blancs":14,"nuls":3,"exp":89,"res":[{"nuance":"LR","nom":"<NAME>","voix":46},{"nuance":"REM","nom":"Mme <NAME>","voix":43}]}
112
14,425
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
1,773
341
# Show the first rows of the GeoDataFrame districts.head()
17
460
/* * Copyright 2007-2009 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 requi...
536
1,755
/*========================================================================= Program: Visualization Toolkit Module: TestLineSource.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHO...
1,726
1,603
<reponame>ShubhamThakre/datahub from typing import Callable, List, Union import datahub.emitter.mce_builder as builder from datahub.configuration.common import ConfigModel, KeyValuePattern from datahub.configuration.import_resolver import pydantic_resolve_key from datahub.ingestion.api.common import PipelineContext fr...
1,578
688
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from .sequence import * from .resources import *
36
1,150
<gh_stars>1000+ { "administratorLogin": "hubert", "administratorLoginPassword": <PASSWORD>, "fullyQualifiedDomainName": "_SERVER_.database.windows.net", "id": "/subscriptions/54ff81a0-e7f6-4919-9053-4cdd1c5f5ae1/resourceGroups/hubert/providers/Microsoft.Sql/servers/hubert-sql-server", "identity": null, "kin...
205
475
<reponame>LiTingchang/photo<gh_stars>100-1000 /* * Copyright 2013 <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...
4,002
740
<filename>Sample Project/MYBlurIntroductionView-Example/MYViewController.h // // MYViewController.h // MYBlurIntroductionView-Example // // Created by <NAME> on 10/16/13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> #import "MYBlurIntroductionView.h" @interface MYViewController : ...
121
836
/* * Copyright (C) 2015 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 applic...
833
1,427
<filename>bench/allknn/AllKnn.java<gh_stars>1000+ /** * This file is modified from https://github.com/zoq/benchmarks/blob/master/methods/weka/allknn.py */ import java.io.*; import weka.core.*; import weka.core.neighboursearch.KDTree; import weka.core.converters.ConverterUtils.DataSource; /** * This class use the w...
1,258
837
package me.saket.dank.ui.user.messages; import android.content.ContentValues; import android.database.Cursor; import com.google.auto.value.AutoValue; import com.squareup.moshi.JsonAdapter; import net.dean.jraw.models.Message; import java.io.IOException; import io.reactivex.functions.Function; import me.saket.dank....
1,526
2,268
<gh_stars>1000+ //========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // //=============================================================================// #ifndef IHLTVDIRECTOR_H #define IHLTVDIRECTOR_H #ifdef _WIN32 #pragma once #endif class IHLTVServer; class KeyValues; class ...
347
777
<filename>third_party/WebKit/Source/platform/Histogram.h // 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 Histogram_h #define Histogram_h #include "base/metrics/histogram_base.h" #include "base/...
908
1,118
<reponame>harri-codes/Focus {"deu":{"common":"Timor-Leste","official":"Demokratische Republik Timor-Leste"},"fin":{"common":"Itä-Timor","official":"Itä-Timorin demokraattinen tasavalta"},"fra":{"common":"Timor oriental","official":"République démocratique du Timor oriental"},"hrv":{"common":"Istočni Timor","official":"...
327
2,269
package com.polidea.reactnativeble.converter; import com.facebook.react.bridge.Arguments; import com.facebook.react.bridge.ReadableArray; import com.facebook.react.bridge.WritableArray; import com.facebook.react.bridge.WritableMap; import com.polidea.multiplatformbleadapter.errors.BleError; public class BleErrorToJsO...
913
361
<gh_stars>100-1000 import warnings import math import numbers import torch import torch.nn as nn import torch.nn.functional as F from torch.nn import init, Parameter class GraphMultiTypeAttention(nn.Module): def __init__(self, in_features, hidden_features, out_features, bias=True, types=1): super(GraphMul...
943
909
/* The following code was generated by JFlex 1.4.3 on 6/22/21, 6:05 PM */ /* * Copyright 2000-2008 JetBrains s.r.o. * 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....
111,145
829
package com.rabtman.common.base.widget.loadsir; import android.content.Context; import android.view.View; import com.kingja.loadsir.callback.Callback; import com.rabtman.common.R; public class PlaceholderCallback extends Callback { @Override protected int onCreateView() { return R.layout.view_placeholder_pag...
135
1,350
<filename>sdk/eventhubs/microsoft-azure-eventhubs-eph/src/main/java/com/microsoft/azure/eventprocessorhost/BaseLease.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.microsoft.azure.eventprocessorhost; import java.util.Objects; /** * BaseLease class is...
1,893
861
package cn.springcloud.gray.server.resources.domain.mapper; import cn.springcloud.gray.server.module.HandleModule; import cn.springcloud.gray.server.module.domain.Handle; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Co...
287
843
<gh_stars>100-1000 import functools from django import forms from django.urls import reverse from django.utils.translation import gettext from rest_framework import status from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView impo...
5,586
704
package org.jgroups.protocols; import org.jgroups.*; import org.jgroups.protocols.pbcast.GMS; import org.jgroups.protocols.pbcast.NAKACK2; import org.jgroups.stack.Protocol; import org.jgroups.util.Digest; import org.jgroups.util.Util; import org.testng.annotations.Test; import java.util.*; /** * Tests the INJECT_...
3,986
778
<gh_stars>100-1000 // KRATOS __ __ _____ ____ _ _ ___ _ _ ____ // | \/ | ____/ ___|| | | |_ _| \ | |/ ___| // | |\/| | _| \___ \| |_| || || \| | | _ // | | | | |___ ___) | _ || || |\ | |_| | // |_| |_|_____|____/|_| |_|___|_| \_|\____| APPLICATION // // License: BSD Lice...
1,412
1,695
<filename>core/trino-main/src/main/java/io/trino/operator/output/UnnestingPositionsAppender.java /* * 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/L...
1,673
1,993
/* * Copyright 2013-2019 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
779
711
<reponame>luckymaosh/MicroCommunity<filename>java110-bean/src/main/java/com/java110/entity/user/Cust.java<gh_stars>100-1000 package com.java110.entity.user; import com.java110.entity.DefaultEntity; import java.util.Set; /** * 客户信息实体 * Created by wuxw on 2016/12/27. */ public class Cust extends DefaultEntity { ...
1,019
605
# RUN: %PYTHON %s | FileCheck %s from mlir.ir import * import mlir.dialects.builtin as builtin import mlir.dialects.std as std def run(f): print("\nTEST:", f.__name__) f() return f # CHECK-LABEL: TEST: testFromPyFunc @run def testFromPyFunc(): with Context() as ctx, Location.unknown() as loc: ctx.allow...
3,617
816
package com.jxtech.db.impl; import com.jxtech.app.jxlog.JxLog; import com.jxtech.app.jxlog.JxLogFactory; import com.jxtech.db.DBFactory; import com.jxtech.db.DataEdit; import com.jxtech.db.DataQuery; import com.jxtech.db.util.JxDataSourceUtil; import com.jxtech.jbo.JboIFace; import com.jxtech.jbo.JboSetIFace; import c...
3,966
335
{ "word": "Dop", "definitions": [ "A drink, especially of brandy or other spirits." ], "parts-of-speech": "Noun" }
63
559
/** * Copyright (c) 2016-2017 Netflix, 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 requir...
328
862
<reponame>harryfallows/atlasdb<gh_stars>100-1000 /* * (c) Copyright 2018 Palantir Technologies 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://...
856
302
<reponame>jaimergp/conda-recipes<filename>python/libsvm-kitware/run_test.py<gh_stars>100-1000 # http://stackoverflow.com/questions/4214868/an-example-using-python-bindings-for-svm-library-libsvm from svmutil import * svm_model.predict = lambda self, x: svm_predict([0], [x], self)[0][0] prob = svm_problem([1,-1], [[1,0...
198
1,043
<filename>micro-ip-tracker/src/test/java/com/oath/micro/server/ip/tracker/QueryIPRetrieverTest.java package com.oath.micro.server.ip.tracker; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; import j...
2,078
8,969
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #ifndef RUNTIME_VM_BITFIELD_H_ #define RUNTIME_VM_BITFIELD_H_ #include <type_traits> #include "platfo...
3,128
6,300
<reponame>meatherly/wails<gh_stars>1000+ #ifndef __FFENESTRI_LINUX_H__ #define __FFENESTRI_LINUX_H__ #include "common.h" #include "gtk/gtk.h" #include "webkit2/webkit2.h" #include <time.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include <stdarg.h> // References to assets extern const unsigned cha...
11,568
462
<gh_stars>100-1000 """Tests for pyhap.tlv.""" import pytest from pyhap import tlv def test_tlv_round_trip(): """Test tlv can round trip TLV8 data.""" message = tlv.encode( b"\x01", b"A", b"\x01", b"B", b"\x02", b"C", ) decoded = tlv.decode(message) ...
297
307
<filename>code/scpui/RocketSystemInterface.h<gh_stars>100-1000 #pragma once #include "globalincs/pstypes.h" // Our Assert conflicts with the definitions inside libRocket #pragma push_macro("Assert") #undef Assert #include <Rocket/Core/SystemInterface.h> #pragma pop_macro("Assert") namespace scpui { /** * @brief ...
613
587
<filename>line-bot-api-client/src/main/java/com/linecorp/bot/client/ManageAudienceClientImpl.java /* * Copyright 2019 LINE Corporation * * LINE Corporation licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may o...
2,406
8,805
<reponame>rudylee/expo<gh_stars>1000+ ../../../SDWebImage/SDWebImage/Core/SDWebImageCompat.h
39
335
{ "word": "Engine", "definitions": [ "A machine with moving parts that converts power into motion.", "A thing that is the agent or instrument of a particular process.", "A locomotive.", "A fire engine.", "A mechanical device or instrument, especially one used in warfare."...
131
310
<filename>gear/hardware/r/reference-cardioid-microphone.json { "name": "Reference Cardioid Microphone", "description": "A microphone.", "url": "http://manley.com/refcard.php" }
64
306
/* * Copyright (c) 2015 IBM Corporation and others. * * 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 applicab...
1,386
32,544
package com.baeldung.multiparttesting; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; impo...
211
852
import FWCore.ParameterSet.Config as cms MEplus11chamber1 = cms.PSet( xRanges = cms.vdouble(171.5, 191.5), yRanges = cms.vdouble(-10.0000000000004, 9.99999999999958), zRanges = cms.vdouble(609.65, 629.65), rRanges = cms.vdouble(), phiRanges = cms.vdouble(), etaRanges = cms.vdouble() ) MEplus11chamber3 ...
74,552
350
""" (C) Copyright 2019 IBM Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
2,059
2,970
# # Copyright 2018 Analytics Zoo Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
459
8,966
<filename>pwnlib/flag/__init__.py from __future__ import absolute_import from pwnlib.flag.flag import submit_flag __all__ = [ 'submit_flag', ]
56
606
<reponame>JetBrains/Arend<gh_stars>100-1000 package org.arend.ext.typechecking; import org.arend.ext.concrete.expr.*; import org.arend.ext.core.expr.CoreExpression; import org.arend.ext.error.*; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.List; public class C...
1,762
1,169
<filename>appx/src/main/java/com/zhengsr/viewpagerhelper/MainApplication.java package com.zhengsr.viewpagerhelper; import android.app.Application; /** * Created by zhengshaorui * time: 2018/9/16 */ public class MainApplication extends Application { @Override public void onCreate() { super.onCreat...
120
515
<filename>sbc-request-check/src/main/java/com/crossoverJie/request/check/anotation/CheckReqNo.java package com.crossoverJie.request.check.anotation; import java.lang.annotation.*; //作用于方法 @Target(ElementType.METHOD) //在运行时可以通过反射来获取。 @Retention(RetentionPolicy.RUNTIME) //用于生成JavaDoc文档 @Documented public @interface C...
160
648
<reponame>swrobel/fhir<gh_stars>100-1000 {"resourceType":"DataElement","id":"Patient.link","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/Patient.link","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":"Patient.link","short":"Link to an...
237
970
#! /usr/bin/env python # Copyright (c) 2019 Uber Technologies, 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 a...
6,105
575
<filename>content/browser/prerender/prerender_metrics.h<gh_stars>100-1000 // Copyright 2021 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 CONTENT_BROWSER_PRERENDER_PRERENDER_METRICS_H_ #define CONTENT_BROWSER_P...
311
478
<reponame>clayne/retrowrite import argparse import json import subprocess import os from multiprocessing import Pool def do_test(cmd): print("[!] Running on {}".format(cmd)) try: subprocess.check_call(cmd, shell=True) except subprocess.CalledProcessError: print("[x] Failed {}".format(cmd))...
964
852
<gh_stars>100-1000 #ifndef TopObjetcResolutionsMuon_h #define TopObjetcResolutionsMuon_h #include <cmath> namespace res { class HelperMuon { public: HelperMuon(){}; ~HelperMuon(){}; inline double pt(double pt, double eta); inline double eta(double pt, double eta); inline double phi(double pt,...
4,136
521
<gh_stars>100-1000 #ifndef _BITS_ERRFILE_H #define _BITS_ERRFILE_H /** * @addtogroup errfile Error file identifiers * @{ */ /** @} */ #endif /* _BITS_ERRFILE_H */
77
1,444
package mage.cards.c; import mage.abilities.Ability; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.common.delayed.AtTheBeginOfNextEndStepDelayedTriggeredAbility; import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilities.effects.ContinuousEffectImpl; import mage.abilities.effect...
1,283
2,151
// 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. #include "third_party/blink/renderer/core/css/properties/longhands/vertical_align.h" #include "third_party/blink/renderer/core/css/parser/css_parser_cont...
854
1,921
/** * @file * database.h **/ #pragma once #include <list> #include <vector> using std::vector; #ifdef DB_NDBM extern "C" { # include <ndbm.h> } #elif defined(DB_DBH) extern "C" { # define DB_DBM_HSEARCH 1 # include <db.h> } #elif defined(USE_SQLITE_DBM) # include "sqldbm.h" #else # error DBM interfaces ...
508
1,444
package mage.cards.h; import java.util.UUID; import mage.MageInt; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition; import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilities.dec...
776
21,382
if __name__ == "__main__": from ray.util.client.server.server import main main()
33
402
<reponame>syifarahmat/License3j<gh_stars>100-1000 package javax0.license3j; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import java.io.IOException; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; i...
2,356
2,977
import pytest import time import asyncio import os @pytest.fixture def preheat_mode(): return True @pytest.fixture def voila_notebook(notebook_directory): return os.path.join(notebook_directory, 'preheat', 'pre_heat.ipynb') NOTEBOOK_EXECUTION_TIME = 2 TIME_THRESHOLD = 1 async def send_request(sc, url, w...
1,434
634
<filename>modules/base/lang-impl-testing/src/test/java/com/intellij/util/EnvironmentUtilTest.java /* * Copyright 2000-2013 JetBrains s.r.o. * * 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 a...
401
603
<filename>venv/Lib/site-packages/numpy/typing/tests/data/pass/numerictypes.py import numpy as np np.maximum_sctype("S8") np.maximum_sctype(object) np.issctype(object) np.issctype("S8") np.obj2sctype(list) np.obj2sctype(list, default=None) np.obj2sctype(list, default=np.string_) np.issubclass_(np.int32, int) np.issu...
359
28,056
package com.alibaba.json.bvt.path; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.junit.Assert; import com.alibaba.fastjson.JSONPath; import junit.framework.TestCase; public class JSONPath_list extends TestCase { public void test_list_map() throws ...
260
419
{ "errcode": 0, "errmsg": "ok", "waybill_token": "<KEY>" }
41
2,605
// generating a random sequence of distinct elements #include <bits/stdc++.h> using namespace std; int rand(int a, int b) { return a + rand() % (b - a + 1); } int main(int argc, char* argv[]) { srand(atoi(argv[1])); // atoi(s) converts an array of chars to int int n = rand(2, 10); printf("%d\n", n); ...
263
5,169
{ "name": "LJTimerThread", "version": "1.0.2", "summary": "manager of timer operation tool LJTimerThread.", "description": "des cmanager of timer operation tool LJTimerThread.", "homepage": "https://github.com/codeLijin/LJTimerThread", "license": "MIT", "authors": { "Mrlijin": "<EMAIL>" }, "platfo...
224
370
<reponame>WillForan/garminexport from datetime import datetime from datetime import timedelta import logging import time import unittest from garminexport.retryer import ( Retryer, NoDelayStrategy, FixedDelayStrategy, ExponentialBackoffDelayStrategy, SuppressAllErrorStrategy, NeverStopStrategy ) class...
2,869
651
<reponame>Erhannis/spongycastle<gh_stars>100-1000 package org.spongycastle.pqc.crypto.newhope; import org.spongycastle.crypto.params.AsymmetricKeyParameter; import org.spongycastle.util.Arrays; public class NHPrivateKeyParameters extends AsymmetricKeyParameter { final short[] secData; public NHPrivateKey...
209
358
# Copyright (c) 2012-2021, <NAME> <<EMAIL>> # All rights reserved. # # See LICENSE file for full license. from .aws import Action as BaseAction from .aws import BaseARN service_name = "AWS Key Management Service" prefix = "kms" class Action(BaseAction): def __init__(self, action: str = None) -> None: su...
840
879
<gh_stars>100-1000 package com.bookstore.service; import com.bookstore.repository.AuthorRepository; import com.bookstore.entity.Author; import org.hibernate.Hibernate; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Service public class BookstoreService...
596
1,059
<gh_stars>1000+ /* SPDX-License-Identifier: BSD-2-Clause */ #include <tilck/common/basic_defs.h> #include <tilck/common/string_util.h> #include <tilck/common/printk.h> #include <tilck/kernel/sched.h> #include <tilck/kernel/cmdline.h> #include <tilck/kernel/self_tests.h> static int no_deadlock_set_elems; static int n...
1,942
347
package org.ovirt.engine.core.bll.aaa; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyLong...
2,352
14,668
// 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. #include "components/value_store/value_store_factory_impl.h" #include <memory> #include <string> #include "base/files/file_util.h" #include "components/...
437
880
<gh_stars>100-1000 /** * 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...
651
1,473
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package org.sleuthkit.autopsy.ingest; import java.util.ArrayList; import java.util.List; import java.util.Optional; import java.util.c...
2,255
765
//===-- PdbFPOProgramToDWARFExpression.h ------------------------*- C++ -*-===// // // 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 // //===---------------------------...
415
1,014
{ "GAGS.VI": { "short_name": "GURKTALER AG ST", "long_name": "Gurktaler Aktiengesellschaft", "summary": "Gurktaler Aktiengesellschaft produces and distributes herbal spirits and wines in Austria and internationally. The company is based in Vienna, Austria.", "currency": "EUR", ...
1,551
2,180
package org.archive.crawler.restlet.models; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import org.archive.crawler.restlet.Flash; @SuppressWarnings("serial") public class ViewModel extends LinkedHashMap<String,Object> { public...
319
480
<reponame>weicao/galaxysql /* * Copyright [2013-2021], Alibaba Group Holding Limited * * 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 ...
817
1,391
<filename>src/lib9/qlock.c #include <u.h> #include <libc.h> /* * The function pointers are supplied by the thread * library during its initialization. If there is no thread * library, there is no multithreading. */ int (*_lock)(Lock*, int, ulong); void (*_unlock)(Lock*, ulong); int (*_qlock)(QLock*, int, ulong);...
1,147
1,640
<reponame>IvoVargas/gitblit /* * Copyright (C) 2009 The Android Open Source Project * Copyright 2014 gitblit.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.ap...
775
491
/* * Encog(tm) Core v3.4 - Java Version * http://www.heatonresearch.com/encog/ * https://github.com/encog/encog-java-core * Copyright 2008-2017 Heaton Research, 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...
989
5,585
<gh_stars>1000+ { "name": "meschach", "version-string": "1.2b", "port-version": 5, "description": "Matrix computations in C", "homepage": "https://homepage.math.uiowa.edu/~dstewart/meschach", "supports": "windows & !uwp" }
98
588
<filename>third_party/boost/include/boost/atomic/detail/fp_ops_generic.hpp /* * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * * Copyright (c) 2018 <NAME> */ /*! * \file atomic/detail/fp_ops_generic.hpp *...
1,141
561
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2018, <NAME>. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of...
1,155
432
/* $OpenBSD: look.c,v 1.22 2010/09/07 19:58:09 marco Exp $ */ /* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME> at York University. * * Redistribution and use in source and binary forms, w...
2,513
2,144
<filename>pinot-query-runtime/src/test/java/org/apache/pinot/query/service/QueryServerTest.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. Th...
2,844
631
<reponame>JonZeolla/incubator-metron /** * 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...
1,608
381
<reponame>aaron8tang/qtrader from qtrader.agents.pretrainer.generator import generator import qtrader.agents.pretrainer.objectives from qtrader.agents.pretrainer.optimizer import optimizer
62