max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
348 | <reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/072/07202224.json
{"nom":"Nuillé-le-Jalais","circ":"2ème circonscription","dpt":"Sarthe","inscrits":367,"abs":216,"votants":151,"blancs":12,"nuls":6,"exp":133,"res":[{"nuance":"SOC","nom":"<NAME>","voix":100},{"nuance":"REM","nom":"<NAME>","voix":33}]} | 137 |
1,463 | import os
import sys
import pytransform
#-----------------------------------------------------------
#
# Part 1: check internet time by ntp server
#
#-----------------------------------------------------------
def check_expired_date_by_ntp():
from ntplib import NTPClient
from time import mktime, strptime
... | 617 |
717 | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <mariana-trench/AbstractTreeDomain.h>
#include <mariana-trench/AccessPathTreeDomain.h>
#include <mariana-t... | 198 |
884 | <filename>hijack/tests/test_app/urls.py
from django.contrib import admin
from django.urls import include, path
from django.views.generic import TemplateView
from . import views
app_name = "test_app"
urlpatterns = [
path("hijack/", include("hijack.urls", namespace="hijack")),
path("users/", views.UserListView.... | 219 |
37,508 | <gh_stars>1000+
# flake8: noqa
from selfdrive.car import dbc_dict
from cereal import car
Ecu = car.CarParams.Ecu
MAX_ANGLE = 87. # make sure we never command the extremes (0xfff) which cause latching fault
class CAR:
FUSION = "FORD FUSION 2018"
DBC = {
CAR.FUSION: dbc_dict('ford_fusion_2018_pt', 'ford_fusion_2... | 132 |
605 | <reponame>LaudateCorpus1/llvm-project<gh_stars>100-1000
"""Look up enum type information and check for correct display."""
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
class CPP11EnumTypesTestCase(TestBase):
mydir = TestBase... | 1,004 |
456 | <filename>ReactCommon/fabric/components/text/paragraph/ParagraphProps.h
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <limits>
#include <memory>
#include... | 402 |
6,717 | // $Id: cassowary_scm.cc,v 1.30 2000/03/12 21:40:58 gjb Exp $
// Copyright (C) 1998-2000 <NAME>, <<EMAIL>>
//
// A Guile Scheme wrapper for the Cassowary Constraint Solving Toolkit
//
// TODO
// Catch internal errors throughout
// convenience wrappers (e.g., cl-half)
// expression-side-effecting
// standard strength va... | 22,105 |
1,590 | {
"parameters": {
"url": "acrapi.azurecr-test.io",
"service": "someregistry.azurecr.io",
"scope": "registry:catalog:*"
},
"responses": {
"200": {
"body": {
"access_token": "<KEY>
}
}
}
}
| 124 |
674 | /**
* Copyright (c) 2014 <NAME> (<EMAIL>)
* <p>
* 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, modify, merg... | 3,546 |
14,425 | <reponame>bogthe/hadoop
/*
* 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 ... | 1,149 |
327 | <gh_stars>100-1000
package de.fhpotsdam.unfolding.examples.image;
import processing.core.PApplet;
import processing.core.PImage;
import de.fhpotsdam.unfolding.UnfoldingMap;
import de.fhpotsdam.unfolding.geo.Location;
import de.fhpotsdam.unfolding.providers.Microsoft;
import de.fhpotsdam.unfolding.utils.DebugDisplay;
i... | 769 |
1,585 | <filename>ompi/mca/topo/example/topo_example_component.c
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.... | 1,209 |
2,268 | <reponame>joshmartel/source-sdk-2013
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef IMOVEHELPER_H
#define IMOVEHELPER_H
#ifdef _WIN32
#pragma once
#endif
//---... | 991 |
399 | <filename>IOIOBridge/src/main/java/ioio/bridge/Main.java
package ioio.bridge;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.net.SocketTimeoutException;
import purejavacomm.CommPort;
import purejavacomm.CommPortIdentifier;
import purejavacomm.N... | 3,872 |
660 | <reponame>neonkingfr/TinySpline<gh_stars>100-1000
#include <testutils.h>
void eval_domain_min(CuTest *tc)
{
___SETUP___
tsBSpline spline = ts_bspline_init();
tsDeBoorNet net = ts_deboornet_init();
tsReal min, max, dist, *result = NULL;
___GIVEN___
C(ts_bspline_new_with_control_points(
7, 2, 3, TS_CLAMPED, &sp... | 4,667 |
1,111 | <gh_stars>1000+
from kivy.uix.screenmanager import Screen
class KitchenSinkBottomAppBar(Screen):
def callback_for_bottom_app_bar(self, app, text, value):
if value and app.data_screens["Bottom App Bar"]["object"]:
toolbar = self.ids.bottom_toolbar
if text == "Off":
t... | 370 |
2,512 | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import numpy as np
import torch
from vissl.data.collators import register_collator
def _blend_images(images, mixing_factor):
assert len(i... | 1,394 |
335 | <reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000
{
"word": "Piece",
"definitions": [
"A portion of an object or of material, produced by cutting, tearing, or breaking the whole.",
"An item used in constructing something.",
"An item forming part of a set.",
"A financial share."... | 284 |
327 | package com.ittianyu.mobileguard.activity;
import android.Manifest;
import com.ittianyu.mobileguard.activity.base.BaseContactsActivity;
import com.ittianyu.mobileguard.domain.ContactBean;
import com.ittianyu.mobileguard.engine.ContactsEngine;
import java.util.List;
/**
* show contacts list
*/
public class Contact... | 231 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t1/059/05916414.json
{"nom":"Montigny-en-Ostrevent","circ":"16ème circonscription","dpt":"Nord","inscrits":3402,"abs":1921,"votants":1481,"blancs":26,"nuls":11,"exp":1444,"res":[{"nuance":"FN","nom":"Mme <NAME>","voix":429},{"nuance":"MDM","nom":"Mme <NAME... | 267 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"<NAME>","circ":"4ème circonscription","dpt":"Hérault","inscrits":182,"abs":78,"votants":104,"blancs":9,"nuls":8,"exp":87,"res":[{"nuance":"REM","nom":"<NAME>","voix":53},{"nuance":"FN","nom":"<NAME>","voix":34}]} | 109 |
665 | /** script_output.cc
<NAME>, 13 October 2015
Copyright (c) 2015 mldb.ai inc. All rights reserved.
This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
*/
#include "script_output.h"
#include "mldb/types/structure_description.h"
#include "mldb/types/vector_description.h"
#include "ml... | 2,855 |
14,668 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/bindings/modules/v8/serialization/serialized_script_value_for_modules_factory.h"
#include "third_party/blink/rendere... | 805 |
1,141 | from functools import partial
import click
b = partial(click.style, bold=True)
blue = partial(click.style, bold=True, fg="blue")
green = partial(click.style, bold=True, fg="green")
red = partial(click.style, bold=True, fg="red")
yellow = partial(click.style, bold=True, fg="yellow")
def lecho(label, text, style=b):
... | 155 |
1,273 | package org.broadinstitute.hellbender.tools.walkers.annotator;
import com.google.common.primitives.Ints;
import htsjdk.variant.variantcontext.VariantContext;
import org.broadinstitute.barclay.help.DocumentedFeature;
import org.broadinstitute.hellbender.utils.MathUtils;
import org.broadinstitute.hellbender.utils.Utils;... | 573 |
6,132 | # pylint:disable=import-outside-toplevel
from typing import Dict, Any, Union, TYPE_CHECKING
from .. import KnowledgeBasePlugin
if TYPE_CHECKING:
from angr.knowledge_base import KnowledgeBase
from angr.analyses.decompiler.structured_codegen import BaseStructuredCodeGenerator
from angr.analyses.decompiler.d... | 824 |
428 | package loon.action.node;
import loon.LTexture;
import loon.action.sprite.ISprite;
import loon.geom.RectBox;
public class SpriteToNode extends LNNode {
private ISprite obj ;
public SpriteToNode(ISprite spr){
this.obj = spr;
}
@Override
public float getWidth() {
return obj.getWidth();
}
@Override
pub... | 341 |
1,531 | /**
* Copyright 2012-2015 <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 ... | 2,429 |
335 | {
"word": "Weatherboard",
"definitions": [
"Each of a series of horizontal boards nailed to outside walls with edges overlapping to keep out the rain."
],
"parts-of-speech": "Noun"
} | 72 |
471 | # Generated by Django 1.11.14 on 2018-07-30 18:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('locations', '0015_create_related_locations'),
]
operations = [
migrations.AddField(
model_name='locationrelation',
... | 175 |
21,795 | <filename>hystrix-core/src/main/java/com/netflix/hystrix/metric/sample/HystrixThreadPoolUtilization.java<gh_stars>1000+
/**
* Copyright 2016 Netflix, Inc.
* <p/>
* 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 c... | 715 |
435 | <gh_stars>100-1000
package datawave.query.jexl.visitors;
import datawave.query.jexl.JexlASTHelper;
import datawave.query.jexl.JexlNodeFactory;
import datawave.query.jexl.nodes.QueryPropertyMarker;
import org.apache.commons.jexl2.parser.ASTAndNode;
import org.apache.commons.jexl2.parser.JexlNode;
import java.util.List... | 708 |
1,253 | {
"name": "MINMAX",
"keywords": "minimum, maximum, autoreset",
"description": "MINMAX library for Arduino. Simple peak finder ( minimum and maximum) in signal.",
"authors":
[
{
"name": "<NAME>",
"email": "<EMAIL>",
"maintainer": true
}
],
"repository":
{
"type": "git",
... | 210 |
5,169 | {
"name": "UILeezelt",
"version": "1.0.0",
"summary": "UILeezelt is pod for uicolors and ui text field extension",
"description": "'UILeezelt is pod for uicolors specific to our apps and ui text field extension to shake text field when entry is wrong '",
"homepage": "https://github.com/MuhammadHuzaifa2/UILeez... | 281 |
1,174 | <filename>components/sensors/sensor_hub/hal/light_sensor_hal.c
// Copyright 2020-2021 Espressif Systems (Shanghai) PTE 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://w... | 4,408 |
335 | {
"word": "Misunderstand",
"definitions": [
"Fail to interpret or understand (something) correctly.",
"Fail to interpret or understand the words or actions of (someone) correctly."
],
"parts-of-speech": "Verb"
} | 87 |
417 | <reponame>mfkiwl/TeenyUSB
/*
* _______ _ _ _____ ____
* |__ __| | | | |/ ____| _ \
* | | ___ ___ _ __ _ _| | | | (___ | |_) |
* | |/ _ \/ _ \ '_ \| | | | | | |\___ \| _ <
* | | __/ __/ | | | |_| | |__| |___... | 2,708 |
562 | <gh_stars>100-1000
#include "tcpd.h"
#include <stdio.h>
int main (int argc, char *argv[])
{
struct request_info req;
request_init(&req, RQ_DAEMON, argv[0], RQ_FILE, 0, 0);
printf("host_acces: %d\n", hosts_access(&req));
return 0;
}
| 118 |
1,127 | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <cstdint>
#include <cmath>
#include <numeric>
#include <iostream>
#include <runtime/pwl.h>
#include <backend/gna_types.h>
#include "nnet_base_matcher.hpp"
class PWLQuantizationMetricsMatcher : public ::test... | 3,545 |
1,958 | <gh_stars>1000+
// 96 Unique Binary Search Trees
/**
* Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
*
* For example,
* Given n = 3, there are a total of 5 unique BST's.
*
* 1 3 3 2 1
* \ / / / \ \
* 3 2 1 1... | 664 |
434 | <reponame>hhb584520/inclavare-containers<gh_stars>100-1000
#include "kvm/fdt.h"
#include "kvm/kvm.h"
#include "kvm/kvm-cpu.h"
#include "kvm/util.h"
#include "arm-common/gic.h"
#include "arm-common/pmu.h"
#ifdef CONFIG_ARM64
static int set_pmu_attr(struct kvm *kvm, int vcpu_idx,
struct kvm_device_attr *attr)
{
int... | 1,002 |
22,481 | """Support for BT Smart Hub (Sometimes referred to as BT Home Hub 6)."""
from collections import namedtuple
import logging
from btsmarthub_devicelist import BTSmartHub
import voluptuous as vol
from homeassistant.components.device_tracker import (
DOMAIN,
PLATFORM_SCHEMA as PARENT_PLATFORM_SCHEMA,
DeviceSc... | 1,280 |
338 | <gh_stars>100-1000
#ifndef CAMERA_HPP
#define CAMERA_HPP
#include "Config.hpp"
#include "myvk/Buffer.hpp"
#include "myvk/DescriptorSet.hpp"
#include <cinttypes>
#include <glm/glm.hpp>
#define PIF 3.14159265358979323846f
struct GLFWwindow;
class Camera {
public:
glm::vec3 m_position{0.0f, 0.0f, 0.0f};
float m_yaw{... | 598 |
646 | <reponame>rclsilver/utask
#!/usr/bin/env python
import json
import os
content = {
k: v for k, v in os.environ.items()
}
print(json.dumps(content))
| 65 |
4,081 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | 524 |
3,631 | <reponame>targeter21/drools<filename>kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNContextFEELCtxWrapper.java
/*
* Copyright 2016 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.
... | 930 |
1,928 | <filename>dpark/bagel.py
from __future__ import absolute_import
import sys
import time
import operator
from dpark.utils.log import get_logger
logger = get_logger(__name__)
class Vertex:
def __init__(self, id_, value, outEdges, active):
self.id = id_
self.value = value
self.outEdges = out... | 1,963 |
394 | <gh_stars>100-1000
package net.earthcomputer.multiconnect.protocols.v1_8.mixin;
import net.earthcomputer.multiconnect.api.Protocols;
import net.earthcomputer.multiconnect.impl.ConnectionInfo;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.LadderBlock;
import net.min... | 730 |
14,668 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_LANGUAGE_CORE_BROWSER_LANGUAGE_PREFS_H_
#define COMPONENTS_LANGUAGE_CORE_BROWSER_LANGUAGE_PREFS_H_
#include <set>
#include <string>
#i... | 836 |
5,169 | {
"name": "ADDeviceTool",
"version": "1.0",
"summary": "快速获取Apple设备类型",
"description": "快速获取Apple设备类型",
"homepage": "https://github.com/tiancanfei/ADDeviceTool",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"天蚕飞": "<EMAIL>"
},
"platforms": {
"ios": "8.0"
},
"sour... | 283 |
1,816 | /*********************************************************
* Copyright (C) 2011-2017, 2019-2021 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation ver... | 7,109 |
1,210 |
from .SolutionChecker import BgoldSolutionChecker
from .Solver import BgoldSolver
from pycoin.coins.bitcoin.Tx import Tx as BaseTx
class Tx(BaseTx):
Solver = BgoldSolver
SolutionChecker = BgoldSolutionChecker
| 73 |
1,056 | <filename>ide/schema2beans/src/org/netbeans/modules/schema2beansdev/SchemaRep.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 licenses... | 87,675 |
663 | <reponame>tdimnet/integrations-core
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from six import PY2
def initialize_instance(values, **kwargs):
v2_endpoint = values.get('openmetrics_endpoint')
v1_endpoint = values.get('prometheus_url')
... | 305 |
2,338 | <filename>lldb/unittests/Utility/TimerTest.cpp
//===-- TimerTest.cpp -----------------------------------------------------===//
//
// 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 LLV... | 1,524 |
420 | <filename>tests/seahub/tags/models/test_filetag_manager.py
from seahub.tags.models import FileTag, FileUUIDMap
from seahub.test_utils import BaseTestCase
from seaserv import seafile_api
class FileTagManagerTest(BaseTestCase):
def setUp(self):
self.login_as(self.user)
self.repo = seafile_api.get_r... | 1,090 |
303 | {"id":84302,"line-1":"Lobito","line-2":"Angola","attribution":"©2016 CNES / Astrium, Cnes/Spot Image, DigitalGlobe","url":"https://www.google.com/maps/@-12.346328,13.549527,16z/data=!3m1!1e3"} | 82 |
454 | package io.vertx.up.fn;
import io.vertx.up.exception.ZeroException;
@FunctionalInterface
public interface ZeroActuator {
void execute() throws ZeroException;
}
| 54 |
1,755 | /*
* Copyright(C) 1999-2020 National Technology & Engineering Solutions
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
* NTESS, the U.S. Government retains certain rights in this software.
*
* See packages/seacas/LICENSE for details
*/
#include "exodusII.h"
/**
\deprecated Use ex_get_bl... | 1,198 |
309 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
""" The Boltzmann-Gumbel Exploration (BGE) index policy, a different formulation of the :class:`Exp3` policy with an optimally tune decreasing sequence of temperature parameters :math:`\gamma_t`.
- Reference: Section 4 of [Boltzmann Exploration Done Right, N.Cesa-Bianchi & C.... | 1,264 |
953 | <reponame>savek-cc/dependency-track
package org.dependencytrack.policy;
import org.dependencytrack.PersistenceCapableTest;
import org.dependencytrack.model.Component;
import org.dependencytrack.model.Policy;
import org.dependencytrack.model.PolicyCondition;
import org.junit.Assert;
import org.junit.Before;
import org.... | 2,225 |
875 | /**
* 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... | 958 |
679 | <filename>main/scripting/workben/ifc/scripting/_XScriptSecurity.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
... | 5,808 |
3,428 | {"id":"01746","group":"easy-ham-1","checksum":{"type":"MD5","value":"06fb7b96d18dae121abb94e8a7624f4b"},"text":"Return-Path: <EMAIL>\nDelivery-Date: Tue Sep 10 17:36:57 2002\nFrom: <EMAIL> (Skip Montanaro)\nDate: Tue, 10 Sep 2002 11:36:57 -0500\nSubject: [Spambayes] timtest broke?\nMessage-ID: <<EMAIL>>\n\n\nAfter my l... | 429 |
11,356 | <gh_stars>1000+
/*=============================================================================
Copyright (c) 2001-2007 <NAME>
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)
=================================... | 943 |
392 | <gh_stars>100-1000
/*******************************************************************************
* Copyright (c) 2015, 2016
*
* 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 rest... | 1,192 |
335 | <gh_stars>100-1000
{
"word": "Cannon",
"definitions": [
"A large, heavy piece of artillery, typically mounted on wheels, formerly used in warfare.",
"A heavy automatic gun that fires shells from an aircraft or tank.",
"A stroke in which the cue ball strikes two balls successively.",
... | 148 |
8,451 | /*******************************************************************************
* ___ _ ____ ____
* / _ \ _ _ ___ ___| |_| _ \| __ )
* | | | | | | |/ _ \/ __| __| | | | _ \
* | |_| | |_| | __/\__ \ |_| |_| | |_) |
* \__\_\\__,_|\___||___/\__|____/|____/
*
* Copyright (c... | 4,662 |
8,755 | #include "wled.h"
#define MAX_3_CH_LEDS_PER_UNIVERSE 170
#define MAX_4_CH_LEDS_PER_UNIVERSE 128
#define MAX_CHANNELS_PER_UNIVERSE 512
/*
* E1.31 handler
*/
//DDP protocol support, called by handleE131Packet
//handles RGB data only
void handleDDPPacket(e131_packet_t* p) {
int lastPushSeq = e131LastSequenceNumber[... | 3,420 |
471 | <reponame>kaydoh/geoq<filename>geoq/accounts/admin.py
# This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and
# is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012)
from reversion.admin import VersionAdmin
from django.contri... | 1,277 |
360 | <reponame>ktanishqk/py-earth
import pickle
import numpy
from nose.tools import assert_equal, assert_true
from .base import BaseContainer
from pyearth._types import BOOL
from pyearth._basis import (HingeBasisFunction, SmoothedHingeBasisFunction,
ConstantBasisFunction)
class Container(Base... | 1,065 |
948 | /*
* Copyright (c) 2016, SICS, Swedish ICT AB.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list ... | 1,729 |
789 | // Copyright (c) 2019 PaddlePaddle 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... | 3,345 |
13,111 | <filename>oap-server/server-storage-plugin/storage-influxdb-plugin/src/main/java/org/apache/skywalking/oap/server/storage/plugin/influxdb/TableMetaInfo.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for ... | 2,212 |
410 | <reponame>InstantWebP2P/node-android
package com.iwebpp.io;
public final class SEP {
}
| 36 |
491 | <reponame>rahulchaudhary2244/encog-java-core<filename>src/main/java/org/encog/mathutil/rbf/RadialBasisFunction.java
/*
* 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 ... | 683 |
663 | from __future__ import division
from __future__ import print_function
import time
import argparse
import pickle
import os
import torch.optim as optim
from torch.optim import lr_scheduler
from utils import *
from modules import *
parser = argparse.ArgumentParser()
parser.add_argument('--no-cuda', action='store_true'... | 4,160 |
789 | <reponame>tdeboer-ilmn/hail
import logging
import asyncio
import pytest
from hailtop.config import get_deploy_config
from hailtop.auth import service_auth_headers
from hailtop.httpx import client_session
import hailtop.utils as utils
logging.basicConfig(level=logging.INFO)
log = logging.getLogger(__name__)
sha = 'd6... | 520 |
523 | <filename>UAlbertaBot/Source/research/CombatData.h
#pragma once
#include "Common.h"
#include "BWAPI.h"
#include "GameCommander.h"
#include "..\..\AdversarialSearch\source\Timer.h"
#include "..\..\AdversarialSearch\source\GameState.h"
#include "..\..\AdversarialSearch\source\Player.h"
#include "..\..\AdversarialSearch\... | 562 |
451 | <filename>tests/resources/simple_cacm_corpus.json
{"id": "CACM-2636", "contents": "Generation of Random Correlated Normal Variables (Algorithm R425) CACM June, 1974 Page, R. L. CA740610 JB January 17, 1978 2:57 PM 2636 5 2636 2636 5 2636 2636 5 2636\n"}
{"id": "CACM-2274", "contents": "Generating English Discourse from... | 529 |
392 | <reponame>aschwinfinityofficialnet/PermissionsEx<gh_stars>100-1000
/*
* PermissionsEx
* Copyright (C) zml and PermissionsEx contributors
*
* 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
... | 1,091 |
333 | <filename>src/main/java/com/alipay/api/response/AlipayBossFncGfsettlePaycontractCloseResponse.java<gh_stars>100-1000
package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.boss.fnc.gfsettle.paycontract.close response.
*
* @author auto create
* @since 1.0, 2021-0... | 205 |
4,465 | <gh_stars>1000+
/*
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS... | 548 |
435 | package org.apache.lucene.queryparser.flexible.core.nodes;
import org.apache.lucene.queryparser.flexible.core.parser.EscapeQuerySyntax;
/**
*
*/
public class EscapedNodes {
public static String getEscapedTerm(FieldQueryNode node, EscapeQuerySyntax escaper) {
return node.getTermEscaped(escaper).toString... | 118 |
1,338 | <gh_stars>1000+
#include <BufferProducer.h>
#include <MediaEventLooper.h>
class ProducerNode : public virtual BBufferProducer, BMediaEventLooper
{
public:
ProducerNode();
~ProducerNode();
protected:
/* functionality of BMediaNode */
virtual BMediaAddOn* AddOn(
int32 * internal_id) const;
virtual void NodeRe... | 1,045 |
614 | package com.androidwind.androidquick.demo.features.module.db.ormlite;
import io.reactivex.Observable;
import io.reactivex.ObservableOnSubscribe;
import io.reactivex.Observer;
import io.reactivex.disposables.Disposable;
/**
* @author ddnosh
* @website http://blog.csdn.net/ddnosh
*/
public class UserManager {
p... | 763 |
7,746 | /*++
Copyright (c) 2012 Microsoft Corporation
Module Name:
distribute_forall_tactic.cpp
Abstract:
<abstract>
Author:
<NAME> (leonardo) 2012-02-18.
--*/
#include "tactic/tactical.h"
#include "ast/ast_util.h"
#include "ast/rewriter/rewriter_def.h"
#include "ast/rewriter/var_subst.h"
class distribute_f... | 2,507 |
12,278 | // Copyright <NAME> 2013-2017
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#ifndef BOOST_HANA_TEST_AUTO_SLICE_HPP
#define BOOST_HANA_TEST_AUTO_SLICE_HPP
#include <boost/hana/assert.hpp>
#include <boost/hana/equal.hpp>
#... | 3,760 |
1,417 | <filename>hydrus/core/networking/HydrusNATPunch.py
import os
import shutil
import socket
import subprocess
import threading
import traceback
from hydrus.core import HydrusConstants as HC
from hydrus.core import HydrusData
from hydrus.core import HydrusExceptions
from hydrus.core import HydrusText
from hydrus.core impo... | 8,169 |
2,151 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.components.invalidation;
import android.accounts.Account;
import android.content.Intent;
import android.os.Build;
import com.google... | 1,374 |
335 | /*
Copyright (C) 2017 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms of the Modified BSD License... | 1,855 |
2,739 | <reponame>paalkr/wal-e
from wal_e.worker.pg import PgBackupStatements
from wal_e.worker.pg import PgControlDataParser
from wal_e.worker.pg.wal_transfer import WalSegment
from wal_e.worker.pg.wal_transfer import WalTransferGroup
from wal_e.worker.upload import PartitionUploader
from wal_e.worker.upload import WalUploade... | 289 |
4,036 | <reponame>vadi2/codeql
package org.mvel2.compiler;
import java.io.Serializable;
import org.mvel2.integration.VariableResolverFactory;
public interface ExecutableStatement extends Accessor, Serializable {
public Object getValue(Object staticContext, VariableResolverFactory factory);
} | 81 |
2,757 | """distutils.cmd
Provides the Command class, the base class for the command classes
in the distutils.command package.
"""
__revision__ = "$Id$"
import sys, os, re
from distutils.errors import DistutilsOptionError
from distutils import util, dir_util, file_util, archive_util, dep_util
from distutils import... | 8,136 |
434 | package com.toly1994.ds4android.activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;
import com.toly1994.ds4android.analyze.gold12.ZRandom;
import com.toly1994.ds4android.view.QueueView;
import com.toly1994.ds4android.view.other.CtrlClickAdapter;
public cl... | 546 |
306 | <filename>src/test/java/org/threeten/extra/chrono/TestJulianChronology.java
/*
* Copyright (c) 2007-present, <NAME> & <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:
*
* * Redist... | 13,884 |
4,071 | <gh_stars>1000+
package com.github.ompc.greys.core.command;
import com.github.ompc.greys.core.command.annotation.Cmd;
import com.github.ompc.greys.core.server.Session;
import com.github.ompc.greys.core.util.SimpleDateFormatHolder;
import com.github.ompc.greys.core.textui.TKv;
import com.github.ompc.greys.core.textui.T... | 4,070 |
315 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 47,553 |
319 | /**
* Copyright (c) 2011, The University of Southampton and the individual contributors.
* 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 source code must retain ... | 3,803 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.