max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
860
<filename>samza-kafka/src/test/java/org/apache/samza/storage/TestTransactionalStateTaskBackupManager.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 owner...
4,298
14,668
<gh_stars>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. #include "content/browser/renderer_host/document_service_echo_impl.h" namespace content { DocumentServiceEchoImpl::DocumentServiceEchoIm...
301
1,702
package com.example.zipkin.sleuth; import org.springframework.cloud.sleuth.Tracer; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class Controller { private final Tracer tracer; public Controller(Tracer tracer)...
183
348
{"nom":"Ménoire","circ":"1ère circonscription","dpt":"Corrèze","inscrits":96,"abs":38,"votants":58,"blancs":10,"nuls":1,"exp":47,"res":[{"nuance":"SOC","nom":"<NAME>","voix":34},{"nuance":"REM","nom":"<NAME>","voix":13}]}
91
2,842
// example/C/demo.c // Copyright 2017 KITT.AI (author: <NAME>) #include <assert.h> #include <pa_ringbuffer.h> #include <pa_util.h> #include <portaudio.h> #include <stdio.h> #include <stdlib.h> #include <signal.h> #include "snowboy-detect-c-wrapper.h" // Pointer to the ring buffer memory. char* g_ringbuffer; // Rin...
2,973
841
<reponame>jason19990099/majiabao package com.gzsll.hupu.ui.gallery; import android.net.Uri; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import com.facebook.drawee.backends.pipeline.Fresco; ...
2,051
473
<reponame>pingjuiliao/cb-multios /* * Copyright (C) <NAME> <<EMAIL>> * * 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 ...
23,124
1,644
// Copyright 2017 The Nomulus Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by a...
325
423
<filename>Artifacts/linux-install-docker/Artifactfile.json { "$schema": "https://raw.githubusercontent.com/Azure/azure-devtestlab/master/schemas/2016-11-28/dtlArtifacts.json", "title": "Docker Community Edition", "publisher": "Microsoft", "description": "Install Docker CE on Linux. -- NOTE: Docker CE wi...
279
1,883
/* Copyright (c) 2014-2015 NicoHood See the readme for credit to other people. 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,303
2,380
/** * * Copyright 2021 <NAME> * * This file is part of smack-repl. * * smack-repl 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 3 of the License, or * (at your option) any later versi...
1,127
1,968
<filename>external/Angle/Project/src/libGLESv2/renderer/Query11.cpp #include "precompiled.h" // // Copyright (c) 2013 The ANGLE 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. // // Query11.cpp: Defines the rx::Query11 class ...
1,397
8,772
package org.apereo.cas.support.saml.web.idp.profile.sso; import org.apereo.cas.util.EncodingUtils; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import lombok.val; import org.opensaml.messaging.decoder.MessageDecodingException; import org.opensaml.saml....
337
5,823
<filename>shell/platform/glfw/glfw_event_loop.cc // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "flutter/shell/platform/glfw/glfw_event_loop.h" #include <GLFW/glfw3.h> #include <atomic> #incl...
463
317
<gh_stars>100-1000 #include "Angle.h" #include <cmath> Angle::Angle() : m_Angle(0) { } Angle::Angle(float angle) { m_Angle = angle; Normalize360(); } Angle::~Angle() { } Angle Angle::operator=(const float& rhs) { m_Angle = rhs; Normalize360(); return *this; } Angle Angle::operator+(const Angle...
713
508
<reponame>sjquant/trading_calendars from unittest import TestCase import pandas as pd from pytz import UTC from .test_trading_calendar import NoDSTExchangeCalendarTestBase from trading_calendars.exchange_calendar_xphs import XPHSExchangeCalendar class XPHSCalendarTestCase(NoDSTExchangeCalendarTestBase, TestCase): ...
2,946
1,520
package org.cnodejs.android.md.ui.widget; import android.content.Context; import android.os.Build; import android.support.annotation.AttrRes; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.annotation.RequiresApi; import android.support.annotation.StyleRes;...
546
32,544
<gh_stars>1000+ package com.baeldung.toggle; import javax.persistence.Entity; import javax.persistence.Id; @Entity public class Employee { @Id private long id; private double salary; public Employee() { } public Employee(long id, double salary) { this.id = id; this.salary = ...
256
418
package com.king.wanandroid.bean; import java.util.List; /** * @author Jenly <a href="mailto:<EMAIL>">Jenly</a> */ public class NaviBean { private int cid; private String name; private List<ArticleBean> articles; public int getCid() { return cid; } public void setCid(int cid) {...
632
587
<gh_stars>100-1000 /* * Copyright 2016-2020 Crown Copyright * * 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 ...
379
631
<reponame>snowdensb/braindump import unittest import json from base64 import b64encode from flask import url_for from app import create_app, db from app.models import User, Note, Notebook class ApiBaseTestCase(unittest.TestCase): @property def headers(self): return self.set_token_headers(self.get_aut...
997
550
from .autocomplete_widget import * # noqa from .dialogs import * # noqa from .colors import * # noqa from .decorators import * # noqa from .helpers import * # noqa from .mixins import * # noqa from .mime import * # noqa from .python_list_model import * # noqa from .threading import * # noqa from .app import * ...
127
778
package org.aion.p2p.impl.one.msg; import java.io.UnsupportedEncodingException; import org.aion.p2p.Msg; import org.aion.p2p.Ver; /** * @author chris * <p>Test versioning */ public final class Hello extends Msg { private String msg; public Hello(String _msg) { super(Ver.VTEST, (byte) 0, (byte...
270
1,034
/** ****************************************************************************** * @file adv7533_reg.h * @author MCD Application Team * @brief This file contains all the constants parameters for the ADV7533 * which is the HDMI bridge between DSI and HDMI ****************************...
1,785
2,151
// 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. #include "cc/base/histograms.h" #include <stdint.h> #include <algorithm> #include <cmath> #include <cstring> #include <limits> #include "base/lazy_inst...
1,002
528
#include <iostream> #include <stdlib.h> #include <string> #ifdef _WIN32 #include <windows.h> #else #include <unistd.h> #endif #include "board_shim.h" #include "data_filter.h" using namespace std; int main (int argc, char *argv[]) { BoardShim::enable_dev_board_logger (); struct BrainFlowInputParams params;...
1,030
348
<gh_stars>100-1000 {"nom":"Temple-Laguyon","dpt":"Dordogne","inscrits":31,"abs":5,"votants":26,"blancs":5,"nuls":2,"exp":19,"res":[{"panneau":"1","voix":15},{"panneau":"2","voix":4}]}
82
6,852
///////////////////////////////////////////////////////////////////////////////// // Copyright (c) Electronic Arts Inc. All rights reserved. ///////////////////////////////////////////////////////////////////////////////// #ifndef EASTL_ATOMIC_INTERNAL_COMPILER_GCC_STORE_H #define EASTL_ATOMIC_INTERNAL_COMPILER_GCC_S...
1,619
348
<filename>docs/data/leg-t2/049/04907217.json {"nom":"Montreuil-sur-Maine","circ":"7ème circonscription","dpt":"Maine-et-Loire","inscrits":520,"abs":285,"votants":235,"blancs":21,"nuls":6,"exp":208,"res":[{"nuance":"MDM","nom":"<NAME>","voix":130},{"nuance":"LR","nom":"M. <NAME>","voix":78}]}
124
364
package ca.uhn.fhir.rest.api; /*- * #%L * HAPI FHIR - Core Library * %% * Copyright (C) 2014 - 2021 Smile CDR, 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...
272
984
{ "name": "KindEditor", "filename": "kindeditor.min.js", "description": "KindEditor是一套开源的在线HTML编辑器,主要用于让用户在网站上获得所见即所得编辑效果,开发人员可以用KindEditor把传统的多行文本输入框(textarea)替换为可视化的富文本输入框。KindEditor使用JavaScript编写,可以无缝地与Java、.NET、PHP、ASP等程序集成,比较适合在CMS、商城、论坛、博客、Wiki、电子邮件等互联网应用上使用。", "version": "4.1.10", "homepage": "http://k...
466
488
<gh_stars>100-1000 // unlike t0231.cc, this does compile in g++, but only because the // '*p' allows for delay in instantiating A<B> during the compilation // process; since we do not delay instantiating class templates in // elsa/ccparse, this does NOT compile template <class T> struct A { // NOTE: 'q' is not a typ...
182
532
<reponame>caixiaomao/yue-library package ai.yue.library.base.config.properties; import java.util.List; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.web.cors.CorsConfiguration; import lombok.Data; /** * 跨域自动配置属性 * * @author ylyue * @since 20...
439
376
extern zend_class_entry *ice_http_request_requestinterface_ce; ZEPHIR_INIT_CLASS(Ice_Http_Request_RequestInterface); ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ice_http_request_requestinterface_hasrequest, 0, 1, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RET...
2,160
435
<gh_stars>100-1000 { "description": "Pythran is an open source compiler for scientific kernels written in Python.\n\nIts goal is to turn scientific kernels written in Python into native modules that runs much faster, take advantage of SIMD instruction units, multi-cores, get rid of the GIL without sacrifying high-lev...
632
3,633
import argparse import logging import os import glob from collections import namedtuple import re from typing import Tuple from tqdm import tqdm from random import choices, shuffle BsfInfo = namedtuple('BsfInfo', 'id, tag, start_idx, end_idx, token') log = logging.getLogger(__name__) log.setLevel(logging.INFO) def ...
3,876
647
<reponame>oceanbupt/GBDT_Simple_Tutorial """ Created on :2019/03/28 @author: Freeman, feverfc1994 """ import abc import math import logging import pandas as pd from GBDT.decision_tree import Tree from GBDT.loss_function import SquaresError, BinomialDeviance, MultinomialDeviance from GBDT.tree_plot import plot_tree, pl...
4,525
377
<filename>src/jpa-engine/core/src/test/java/com/impetus/kundera/entity/photographer/PhotographerUni_M_M_1_1.java<gh_stars>100-1000 /******************************************************************************* * * Copyright 2012 Impetus Infotech. * * * * Licensed under the Apache License, Version 2.0 (the "Licen...
1,135
325
/* SPDX-License-Identifier: BSD-3-Clause * * Copyright(c) 2016 Intel Corporation. All rights reserved. * * Author: <NAME> <<EMAIL>> */ #ifdef __SOF_SPINLOCK_H__ #ifndef __ARCH_SPINLOCK_H__ #define __ARCH_SPINLOCK_H__ typedef struct { } spinlock_t; static inline void arch_spinlock_init(spinlock_t *lock) { } sta...
245
11,356
<reponame>Bpowers4/turicreate /* Copyright © 2017 Apple Inc. All rights reserved. * * Use of this source code is governed by a BSD-3-clause license that can * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause */ #include <toolkits/factorization/factorization_model_sgd_interface.hpp...
1,164
4,283
/* * Copyright 2021 Hazelcast Inc. * * Licensed under the Hazelcast Community License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://hazelcast.com/hazelcast-community-license * * Unless required by applicable law or agree...
17,009
2,143
<filename>archunit/src/main/java/com/tngtech/archunit/library/GeneralCodingRules.java<gh_stars>1000+ /* * Copyright 2014-2022 TNG Technology Consulting GmbH * * 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...
6,033
816
/* * Copyright 2016-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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
894
423
import pathlib import subprocess from abc import ABC, abstractmethod from typing import Sequence from .exceptions import CommandNotFoundError, RunTargetFileNotSupported from .reporter import Reporter class CommandBase(ABC): @property @abstractmethod def name(self) -> str: ... @abstractmethod...
531
1,847
// Copyright (c) 2020 The Orbit 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 "ClientData/FunctionUtils.h" #include <absl/strings/str_join.h> #include <filesystem> #include "ObjectUtils/Address.h" #include "OrbitBase/Lo...
1,155
1,768
<reponame>zwergziege/tlaplus<filename>toolbox/org.lamport.tla.toolbox/src/org/lamport/tla/toolbox/ui/expression/CurrentSpecTester.java package org.lamport.tla.toolbox.ui.expression; import org.eclipse.core.expressions.PropertyTester; import org.lamport.tla.toolbox.spec.Spec; import org.lamport.tla.toolbox.tool.Too...
489
2,313
/* * Copyright (c) 2021 Arm Limited. * * SPDX-License-Identifier: MIT * * 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 ...
8,619
1,444
<filename>Mage/src/main/java/mage/constants/ZoneDetail.java package mage.constants; /** * * @author LevelX2 */ public enum ZoneDetail { NONE, TOP, BOTTOM, CHOOSE }
81
365
<filename>intern/cycles/util/util_progress.h /* * Copyright 2011-2013 Blender 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 ...
3,218
1,405
package com.tendcloud.tenddata; import android.os.Handler; import android.os.HandlerThread; import android.os.SystemClock; import android.util.Log; import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /* access modifiers changed from: package-private */ public fina...
4,146
1,337
<gh_stars>1000+ /* * Copyright (c) 2008-2016 Haulmont. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
871
854
__________________________________________________________________________________________________ sample 1 ms submission class Solution { public int calculate(String s) { if( s == null || s.length() == 0 ) return 0; return calculate21( s.toCharArray(), 0, new int[]{0}); } private int c...
2,892
1,056
<filename>ide/html.indexing/src/org/netbeans/modules/html/editor/api/index/HtmlIndex.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 ASF l...
5,128
6,741
<gh_stars>1000+ # -*- coding: utf-8 -*- import sys from pathlib import Path if str(Path().resolve().parent.parent) not in sys.path: sys.path.insert(1, str(Path().resolve().parent.parent)) import numpy as np from scipy.signal import find_peaks from constants import DEFAULT_MAX_GAIN, DEFAULT_TREBLE_F_LOWER, DEFAULT_...
9,353
884
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. from datetime import datetime, timezone from typing import cast, Dict, List, Optional, TYPE_CHECKING from cdm.enums import CdmObjectType from cdm.utilities import...
2,998
623
package com.netease.nim.uikit.common.util.log.sdk; import android.text.TextUtils; import android.util.Log; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; /** * 日志格式 * <p> * Created by huangjun on 2017/3/8. */ class LogFormat { /** * *****...
919
1,235
#pragma once namespace libholojsunittest { class BlobTests { public: // Test that console.log works as expected static void CreateFromArrayBufferView(); static void CreateFromString(); static void CreateFromArrayBufferNoType(); static void CreateFromArrayBufferWithType(); static void CreateF...
152
350
package ar.rulosoft.custompref; /* * Copyright (C) 2013 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...
1,151
1,561
# # Copyright (c) 2015 Cossack Labs 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 # # Unless required by applicable law or agreed to i...
901
530
/* * Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved. * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The contents of this file are subject to the terms of either the Universal Permissive License * v 1.0 as shown at http://oss.oracle.com/licenses/upl * * or the...
6,391
2,211
// Copyright (c) 2014 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "xwalk/experimental/native_file_system/virtual_root_provider.h" #include <algorithm> #include <cctype> #include <string> #include "base/lazy_i...
305
2,151
/* * Copyright (c) 2018, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at w...
1,712
387
<reponame>Jaikishan-Saroj-786/jpf-core<filename>src/tests/gov/nasa/jpf/test/java/io/PrintStreamTest.java<gh_stars>100-1000 /* * Copyright (C) 2014, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The Java Pathfinder co...
450
848
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
2,134
8,657
<reponame>Nitrillo/h2o<gh_stars>1000+ /* * Copyright (c) 2015 DeNA Co., Ltd. * * 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 * ri...
9,503
460
/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (<EMAIL>) ** ** This file is part of the Qt3Support module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ...
1,568
9,782
/* * 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 * distribut...
1,816
608
<reponame>etheory/vstgui<gh_stars>100-1000 // This file is part of VSTGUI. It is subject to the license terms // in the LICENSE file found in the top-level directory of this // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE #include "uieditcontroller.h" #if VSTGUI_LIVE_EDITING #include "uieditvi...
20,291
552
#include "stdafx.h" #include "MainFramework.h" #include <iostream> #include <EtCore/FileSystem/FileUtil.h> #include <Common/linkerHelper.h> #include <Runtime/_generated/compiled_package.h> void SetDebuggingOptions(); //--------------------------------- // main // // Entry point into the framework. // int main(...
539
728
/* * Copyright (c) 2015 <NAME> <<EMAIL>> * All Rights Reserved. */ package me.zhanghai.android.patternlock.sample.app; import android.os.Bundle; import me.zhanghai.android.patternlock.sample.R; import me.zhanghai.android.patternlock.sample.util.ThemeUtils; public class MainActivity extends ThemedAppCompatActivit...
188
1,189
<reponame>radcortez/opentelemetry-java /* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.exporter.otlp.internal; import io.opentelemetry.context.internal.shaded.WeakConcurrentMap; import io.opentelemetry.proto.common.v1.internal.InstrumentationLibrary; impor...
1,097
13,249
/* * Copyright 2015-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...
1,317
3,181
<gh_stars>1000+ /* * SPDX-FileCopyrightText: 2020, microG Project Team * SPDX-License-Identifier: Apache-2.0 AND CC-BY-4.0 * Notice: Portions of this file are reproduced from work created and shared by Google and used * according to terms described in the Creative Commons 4.0 Attribution License. * ...
263
1,056
<filename>apisupport/apisupport.ant/test/unit/src/org/netbeans/modules/apisupport/project/CompilationDependencyTest.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 ...
2,621
1,718
#!/usr/bin/env python3 def write_bus_ports(f, ada_bits, adb_bits, dia_bits, dob_bits): ada_conn = [".ADA%d(%s)" % (i, ada_bits[i]) for i in range(len(ada_bits))] adb_conn = [".ADB%d(%s)" % (i, adb_bits[i]) for i in range(len(adb_bits))] dia_conn = [".DIA%d(%s)" % (i, dia_bits[i]) for i in range(len(dia_bit...
1,931
933
<filename>include/perfetto/ext/tracing/core/shared_memory_arbiter.h /* * Copyright (C) 2018 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 * * htt...
2,935
1,666
#ifndef _WIN32 const char* dlopen_pong(void); __attribute__((visibility("default"))) const char* dlopen_ping(void) { return dlopen_pong(); } #endif // _WIN32
68
645
<reponame>TermuxArch/dom-distiller // 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. package org.chromium.distiller.webdocument; import com.google.gwt.dom.client.Document; import com.google.gwt.dom.clien...
3,224
5,166
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX - License - Identifier: Apache - 2.0 #include <iostream> #include <string> #include <aws/core/Aws.h> #include <aws/acm/ACMClient.h> #include <aws/acm/model/RequestCertificateRequest.h> #include <aws/core/utils/Outcome.h> #include <awsdoc/acm...
4,958
8,805
/* (c) 2015 NumScale SAS (c) 2015 LRI UMR 8623 CNRS/University Paris Sud XI (c) 2015 <NAME> <glenjofe -at- gmail.com> Distributed under the Boost Software License, Version 1.0. http://boost.org/LICENSE_1_0.txt */ #ifndef BOOST_ALIGN_ASSUME_ALIGNED_HPP #define BOOST_ALIGN_ASSUME_ALIGNED_HPP #include <bo...
343
628
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-08-28 21:02 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields import osf.models.base class Migration(migrations.Migration):...
2,544
1,030
import stan def test_normal_build(): """Build (compile) a simple model.""" program_code = "parameters {real y;} model {y ~ normal(0,1);}" posterior = stan.build(program_code) assert posterior is not None def test_normal_sample(): """Sample from normal distribution.""" program_code = "paramet...
646
1,438
package com.dexvis.dex.task.vis.prefuse; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.TreeMap; import javax.swing.JFrame; import org.simpleframework.xml.Root; import prefuse.data.Graph; import prefuse.data.Schema; import prefuse.data.Tree; import com.dexvis...
1,261
620
{ "name": "core.tcpsocket wrapper integration tests", "app": { "script": [ "freedom-module.static.js" ] }, "dependencies": { "loggingcontroller": { "url": "lib/loggingprovider/freedom-module.json", "api": "loggingcontroller" }, "logginglistener": { "url": "lib/logging...
193
501
<reponame>QuESt-Calculator/pyscf #!/usr/bin/env python # Copyright 2014-2020 The PySCF Developers. 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.apac...
7,071
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Monbrun","circ":"2ème circonscription","dpt":"Gers","inscrits":282,"abs":151,"votants":131,"blancs":8,"nuls":4,"exp":119,"res":[{"nuance":"REM","nom":"<NAME>","voix":68},{"nuance":"SOC","nom":"<NAME>","voix":51}]}
108
494
<reponame>Netflix/astyanax /** * Copyright 2013 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 b...
1,327
347
<reponame>hbraha/ovirt-engine<gh_stars>100-1000 package org.ovirt.engine.ui.webadmin.section.main.presenter.tab.host; import org.ovirt.engine.core.common.businessentities.VDS; import org.ovirt.engine.core.common.businessentities.gluster.GlusterServerService; import org.ovirt.engine.ui.common.presenter.AbstractSubTabPr...
841
6,717
<reponame>crossmob/WinObjC /** * OpenAL cross platform audio library * Copyright (C) 1999-2007 by authors. * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of ...
18,878
1,147
<gh_stars>1000+ # Copyright (C) 2020 THL A29 Limited, a Tencent company. # All rights reserved. # Licensed under the BSD 3-Clause License (the "License"); you may # not use this file except in compliance with the License. You may # obtain a copy of the License at # https://opensource.org/licenses/BSD-3-Clause # Unless ...
173
344
<gh_stars>100-1000 { "settings": { "item_pool_value": "balanced", "triforce_hunt": true, "triforce_goal_per_world": 100, "shuffle_scrubs": "low", "starting_hearts": 20 }, "item_pool": { "Triforce Piece": 150 } }
113
1,566
#include <sqlite_orm/sqlite_orm.h> #include <catch2/catch.hpp> using namespace sqlite_orm; TEST_CASE("issue525") { struct User { int id; std::string firstName; std::string lastName; int birthDate; std::unique_ptr<std::string> imageUrl; int typeId; }; struct...
777
323
from parsl.config import Config from parsl.channels import LocalChannel from parsl.providers import GridEngineProvider from parsl.executors import HighThroughputExecutor from .user_opts import user_opts def fresh_config(): return Config( executors=[ HighThroughputExecutor( lab...
446
947
<filename>src/script/pegins.cpp<gh_stars>100-1000 // Copyright (c) 2020-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // ELEMENTS #include <primitives/transaction.h> #include <script/pegins.h>...
294
622
<reponame>ahakingdom/Rusthon '''load three.js library''' # sudo npm install -g three import three def main(): v1 = new( three.Vector3(1,2,3) ) TestError( len(v1)==3 ) TestError( v1.x==1 ) TestError( v1.y==2 ) TestError( v1.z==3 )
107
485
# -*- coding: utf-8 -*- # Author: <NAME> <<EMAIL>> # License: BSD 2 clause import random import numpy as np import torch.utils.data as data from abc import ABC, abstractmethod import torch class BaseDataset(data.Dataset, ABC): def __init__(self, opt): self.opt = opt @staticmethod def modify_c...
202
1,968
<filename>platform/android/ndk/Rtt_AndroidImageProvider.cpp ////////////////////////////////////////////////////////////////////////////// // // 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 //...
1,673
1,454
/* * Copyright (C) 2016 <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...
716
313
/* * Copyright 2021 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...
302
302
<filename>machina/envs/skill_env.py import gym import numpy as np class SkillEnv(gym.Wrapper): def __init__(self, env, num_skill=4): gym.Wrapper.__init__(self, env) self.num_skill = num_skill self.skill = 0 self.real_observation_space = env.observation_space low = np.hstack...
598