max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
356 | import os
import unittest
import numpy as np
from mcfly import storage, modelgen
from test_tools import safe_remove
class StorageSuite(unittest.TestCase):
"""Basic test cases."""
def test_savemodel(self):
""" Test whether a dummy model is saved """
model = create_dummy_model()
stor... | 748 |
631 | from capstone.x86_const import *
from collections import OrderedDict
import random
def patch(pt):
for func in pt.funcs():
dis = func.dis()
pops = OrderedDict()
first = True
for ins in reversed(dis):
if ins.id in (X86_INS_RET, X86_INS_LEAVE):
continue
... | 1,149 |
5,169 | {
"name": "SearchInTwitter",
"version": "1.0.0",
"summary": "this CocoaPod use to search twitter by string to get list of statuses",
"description": "Using this pod you can serch for Tweets string in Twitter and get list of statuses",
"homepage": "https://github.com/gal-m/SearchInTwitter.git",
"license": {
... | 257 |
1,127 | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gtest/gtest.h>
#include <string>
#include <memory>
#include <queue>
#include <ngraph/function.hpp>
#include <ngraph/opsets/opset8.hpp>
#include <ngraph/pass/manager.hpp>
#include <transformations/init_node_info.hpp>
#in... | 3,545 |
918 | /*
* 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 ... | 542 |
302 | #ifndef _LIBC_SYS_VFS_H
#define _LIBC_SYS_VFS_H 1
#include <sys/types.h>
#define fsid_t \
struct \
{ \
int __val[2]; \
}
struct statfs
{
__fsword_t f_type; /* Type of filesystem (see below) */
__fsword_t f_bsize; /* Optimal transfer block size */
fsblkcnt_t f_blocks; /*... | 506 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 435 |
739 | <reponame>gregomebije1/ZtM-Job-Board
{
"id": "404acb19-6ebb-4102-b53f-eeb8aed20f48",
"name": "<NAME>",
"img": "",
"email":"",
"links": {
"website": "https://dyakov.cc",
"linkedin": "https://www.linkedin.com/in/petar-dyakov",
"github": "https://github.com/PepoDyakov"
},
"jobTitle": "Web Develop... | 200 |
7,524 | <reponame>sijad/oni2<gh_stars>1000+
#pragma once
CAMLprim value oni2_wrapPointer();
void *oni2_unwrapPointer(value data);
| 54 |
1,900 | <gh_stars>1000+
/*
* Copyright Terracotta, 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 l... | 2,363 |
1,609 | <filename>src/main/java/com/mossle/plm/persistence/manager/PlmProjectManager.java<gh_stars>1000+
package com.mossle.plm.persistence.manager;
import com.mossle.core.hibernate.HibernateEntityDao;
import com.mossle.plm.persistence.domain.PlmProject;
import org.springframework.stereotype.Service;
@Service
public class ... | 139 |
381 | package chen.testchat.adapter;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.SectionIndexer;
import org.pointstone.cugappplat.baseadapter.BaseWrappedAdapter;
import org.pointstone.cugappplat.baseadapter.BaseWrappedViewHolder;
import java.util.List;
import chen.testchat.... | 2,067 |
338 | import logging
logger = logging.getLogger('raftos')
| 17 |
3,353 | //
// ========================================================================
// Copyright (c) 1995-2021 Mort Bay Consulting Pty Ltd and others.
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License v. 2.0 which is available at
// https://www.eclipse.org/... | 5,461 |
994 | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
long long int n, d, i, j, temp, c, ans;
string s;
int main()
{
cin>>d>>n;
c=0;
ans=0;
for(i=0;i<n;i++){
cin>>s;
temp=0;
for(j=0;j<s.length();j++){
if(s[j]=='1'){
temp++;
}
... | 404 |
372 | <filename>clients/google-api-services-androidenterprise/v1/1.31.0/com/google/api/services/androidenterprise/model/ManagedConfigurationsSettings.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 Lice... | 1,241 |
13,111 | /*
* 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 ... | 580 |
886 | /*
* Copyright (c) 2019 flow.ci
*
* 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... | 1,060 |
375 | <filename>web/plugins/auth-username-password/src/main/java/io/lumify/web/auth/usernamepassword/UsernamePasswordWebAppPlugin.java
package io.lumify.web.auth.usernamepassword;
import com.google.inject.Inject;
import io.lumify.core.config.Configuration;
import io.lumify.miniweb.Handler;
import io.lumify.miniweb.handlers.... | 915 |
8,844 | <filename>test/fixtures/python/corpus/print-statement.A.py<gh_stars>1000+
print a, b
print c
print 0 or 1
print 0 or 1, 1 or 0,
| 52 |
1,374 | <reponame>norzak/jsweet<filename>core-lib/es6/src/main/java/def/dom/SVGPathSegLinetoVerticalRel.java
package def.dom;
public class SVGPathSegLinetoVerticalRel extends SVGPathSeg {
public double y;
public static SVGPathSegLinetoVerticalRel prototype;
public SVGPathSegLinetoVerticalRel(){}
}
| 106 |
15,577 | <filename>src/Server/HTTP/ReadHeaders.cpp
#include <Server/HTTP/ReadHeaders.h>
#include <IO/ReadBuffer.h>
#include <IO/ReadHelpers.h>
#include <Poco/Net/NetException.h>
namespace DB
{
void readHeaders(
Poco::Net::MessageHeader & headers, ReadBuffer & in, size_t max_fields_number, size_t max_name_length, size_t ... | 1,079 |
318 | /*
Copyright 2017 <NAME>
<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 copy of the License at
<p>
http://www.apache.org/licenses/LICENSE-2.0
<p>
Unless required by applicable law or agreed to in wri... | 4,075 |
14,668 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SANDBOX_WIN_SRC_APP_CONTAINER_H_
#define SANDBOX_WIN_SRC_APP_CONTAINER_H_
#include "base/files/file_path.h"
#include "base/win/scoped_handle.h"
#... | 1,056 |
1,855 | <filename>SevenZip/CPP/7zip/UI/FileManager/PropertyName.cpp
// PropertyName.cpp
#include "StdAfx.h"
#include "../../../Common/IntToString.h"
#include "LangUtils.h"
#include "PropertyName.h"
UString GetNameOfProperty(PROPID propID, const wchar_t *name)
{
if (propID < 1000)
{
UString s = LangString(1000 + pr... | 200 |
1,374 | <reponame>norzak/jsweet
package def.dom;
public class WebGLRenderbuffer extends WebGLObject {
public static WebGLRenderbuffer prototype;
public WebGLRenderbuffer(){}
}
| 55 |
327 | <gh_stars>100-1000
#include "sequencer.h"
#include "imgui.h"
#include "imgui_internal.h"
#include <cstdlib>
namespace ImSequencer
{
static bool SequencerAddDelButton(ImDrawList* draw_list, ImVec2 pos, bool add = true)
{
ImGuiIO& io = ImGui::GetIO();
ImRect delRect(pos, ImVec2(pos.x + 16, pos.y... | 10,319 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 1,731 |
2,171 | <filename>src/test/unit/io/cmd_line_test.cpp
#include <stan/io/cmd_line.hpp>
#include <gtest/gtest.h>
#include <test/unit/util.hpp>
TEST(io_cmd_line, cmd_line_0) {
int argc = 0;
const char* argv[1];
argv[0] = "foo";
stan::io::cmd_line cl(argc, argv);
EXPECT_FALSE(cl.has_key("bar"));
std::string y;
EXPECT... | 1,058 |
835 | from ..._protos.public.registry import RegistryService_pb2
from . import _LockLevel
class Open(_LockLevel):
"""
Changes to the model version are allowed.
Examples
--------
.. code-block:: python
from verta.registry import lock
reg_model = client.create_registered_model("My Model... | 225 |
743 | package pl.allegro.tech.hermes.integration;
import com.jayway.awaitility.Duration;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import pl.allegro.tech.hermes.api.OAuthProvider;
import pl.allegro.tech... | 2,423 |
839 | <filename>rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/JaxWsImplementorInfo.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... | 6,656 |
335 | <reponame>Safal08/Hacktoberfest-1<gh_stars>100-1000
{
"word": "Omission",
"definitions": [
"Someone or something that has been left out or excluded.",
"The action of excluding or leaving out someone or something.",
"A failure to fulfil a moral or legal obligation."
],
"parts-of-s... | 127 |
325 | package com.box.l10n.mojito.smartling;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Configuration
@ConfigurationProperties("test.l10n.smartling")
public class SmartlingTestConfig {
public String projectId = null;
publ... | 235 |
4,879 | <gh_stars>1000+
typedef NS_ENUM(NSUInteger, MWMRouterResultCode) {
MWMRouterResultCodeNoError = 0,
MWMRouterResultCodeCancelled = 1,
MWMRouterResultCodeNoCurrentPosition = 2,
MWMRouterResultCodeInconsistentMWMandRoute = 3,
MWMRouterResultCodeRouteFileNotExist = 4,
MWMRouterResultCodeStartPointNotFound = 5,
... | 287 |
2,167 | <gh_stars>1000+
from flask import Flask
from oso import NotFoundError
from .models import users_db, Repository
from .oso import oso
app = Flask(__name__)
def serialize(r):
return str(r)
# implemented here to not polute code samples in model.md
class User:
@staticmethod
def get_current_user():
... | 332 |
1,481 | package apoc.redis;
import apoc.util.MissingDependencyException;
import apoc.util.Util;
import java.lang.reflect.Constructor;
import java.nio.charset.Charset;
import java.time.Duration;
import java.util.Collections;
import java.util.Map;
import static io.lettuce.core.RedisURI.DEFAULT_TIMEOUT;
public class RedisConf... | 1,129 |
1,825 | #import <Foundation/Foundation.h>
typedef NSString *AVAudioSessionLocation;
typedef NSString *NSNotificationName;
const AVAudioSessionLocation AVAudioSessionPolarPatternSubcardioid = @"Subcardioid";
const AVAudioSessionLocation AVAudioSessionOrientationTop = @"Top";
const AVAudioSessionLocation AVAudioSessionOrientat... | 280 |
382 | <gh_stars>100-1000
package com.fangxu.dota2helper.util;
import android.content.Context;
import android.widget.Toast;
/**
* Created by lenov0 on 2016/4/13.
*/
public class ToastUtil {
public static void showToast(Context context, String message) {
if (context != null) {
Toast.makeText(context... | 348 |
4,095 | <reponame>Tengboy/SeeWeather
package com.xiecc.seeWeather.modules.main.adapter;
import android.support.v4.content.ContextCompat;
import android.view.View;
import com.xiecc.seeWeather.R;
import java.util.HashMap;
import java.util.Map;
public class CardCityHelper {
public static final int SUNNY_CODE = 100;
pub... | 1,462 |
703 | <reponame>Tekh-ops/ezEngine
#pragma once
#include <Core/ResourceManager/ResourceHandle.h>
#include <PhysXPlugin/Components/PxComponent.h>
struct ezMsgPhysicsAddImpulse;
struct ezMsgPhysicsAddForce;
namespace physx
{
class PxArticulationLink;
class PxArticulation;
class PxAggregate;
class PxSphericalJoint;
... | 1,389 |
2,261 | img_norm_cfg = dict(
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
train_pipeline = [
dict(type='LoadImageFromFile', color_type='color_ignore_orientation'),
dict(
type='LoadTextAnnotations',
with_bbox=True,
with_mask=True,
poly2mask=False),
di... | 1,043 |
640 | <gh_stars>100-1000
/* DCT/CCC - display Drive Code Table data */
/*
Converted to z88dk by <NAME> from a MISOSYS C example
Original code was commented out rather than removed
To build:
zcc +trs80 -create-app -subtype=disk -O3 -DAMALLOC dct.c
zcc +trs80 -create-app -subtype=disk -DAMALLOC -compile... | 2,033 |
4,816 | <filename>src/llvmir2hll/support/valid_state.cpp
/**
* @file src/llvmir2hll/support/valid_state.cpp
* @brief Implementation of ValidState.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include "retdec/llvmir2hll/support/valid_state.h"
namespace retdec {
namespace llvmir2hll {
/**
* @brief ... | 282 |
2,144 | <filename>pinot-segment-local/src/main/java/org/apache/pinot/segment/local/utils/nativefst/automaton/Automaton.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 copy... | 6,736 |
1,375 | <gh_stars>1000+
#!/usr/bin/env python3
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
r"""Command-line tool to generate boilerplate DV testbench.
The generated objects are extended from dv_lib / cip_lib.
"""
import argp... | 2,322 |
568 | <reponame>JanStoltman/CompositeAndroid<gh_stars>100-1000
package com.pascalwelsch.compositeandroid.core;
public interface Removable {
void remove();
}
| 56 |
362 | <reponame>lostways/sncli
# Copyright (c) 2014 <NAME>
# Licensed under the MIT License
import urwid
class UserInput(urwid.Edit):
def __init__(self, config, caption, edit_text, callback_func, args):
self.config = config
self.callback_func = callback_func
self.callback_func_args = args... | 418 |
742 | <reponame>nuclearsandwich/fastrtps-debian
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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.apach... | 785 |
316 | from ipaddress import IPv4Network
from arango.typings import Json
from core.db.model import QueryModel
from core.query.model import FunctionTerm
def has_desired_change(cursor: str, fn: FunctionTerm) -> str:
return (
f"{cursor}.desired.{fn.property_path}!=null && "
+ f"{cursor}.reported.{fn.prope... | 1,009 |
460 | <filename>trunk/mac/BumpTop/VisualPhysicsActorAnimation.h
/*
* Copyright 2012 Google 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://w... | 1,120 |
713 | <reponame>pferraro/infinispan
package org.infinispan.server.configuration;
import java.util.Map;
import org.infinispan.commons.configuration.attributes.AttributeDefinition;
import org.infinispan.commons.configuration.attributes.AttributeSet;
import org.infinispan.commons.configuration.attributes.ConfigurationElement;... | 770 |
790 | """
25. Reverse lookups
This demonstrates the reverse lookup features of the database API.
"""
from django.db import models
class User(models.Model):
name = models.CharField(max_length=200)
def __unicode__(self):
return self.name
class Poll(models.Model):
question = models.CharField(max_length=... | 239 |
2,943 | /*
* Copyright 2015 LinkedIn 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, sof... | 248 |
3,486 | package com.thinkaurelius.titan.graphdb.types.vertices;
import com.thinkaurelius.titan.core.Cardinality;
import com.thinkaurelius.titan.core.PropertyKey;
import com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx;
import com.thinkaurelius.titan.graphdb.types.TypeDefinitionCategory;
import org.apache.tinkerpop.... | 395 |
601 | <filename>samples/js-display-list/config/config.json
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/config.2.0.schema.json",
"version": "2.0",
"externals": {
"@microsoft/sp-client-base": "node_modules/@microsoft/sp-client-base/dist/sp-client-base.js",
"@microsoft/sp-client-preview":... | 504 |
16,461 | <gh_stars>1000+
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, DevMenuRNGestureHandlerDirection) {
DevMenuRNGestureHandlerDirectionRight = 1,
DevMenuRNGestureHandlerDirectionLeft = 2,
DevMenuRNGestureHandlerDirectionUp = 4,
DevMenuRNGestureHandlerDirectionDown = 8,
};
| 114 |
329 | // Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... | 463 |
369 | /*
* Copyright © 2014 <NAME>, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 1,512 |
3,083 | typedef int (func)(const int *a, const int *b);
static func g;
/*
OUTPUT:
{
"includes": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 8105378401105136463,
"detailed_name": "static int g(const int *, const int *)",
"qual_name_offset": 11,
"short_name": "g",
"bases": [],
"vars... | 540 |
3,084 | /*++
Copyright (c) 2005 Microsoft Corporation
All rights reserved.
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
File Name:
pori... | 348 |
689 | <filename>code/Behavior/Command/DrawCommand.h
#pragma once
#include "Drawable.h"
#include "ICommand.h"
class DrawCommand : public ICommand
{
public:
DrawCommand(int x, int y, Drawable *drawable) : m_x(x), m_y(y), m_drawable(drawable) {}
virtual void execute() override
{
m_drawable->draw(m_x, m_y);
... | 171 |
310 | package org.seasar.doma.internal.jdbc.scalar;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Date;
import java.sql.NClob;
import java.sql.SQLXML;
import java.sql.Time;
import java.sql.Timestamp;
import java.time.LocalDate;
im... | 2,147 |
841 | <filename>resteasy-core/src/main/java/org/jboss/resteasy/plugins/server/servlet/HttpResponseFactory.java
package org.jboss.resteasy.plugins.server.servlet;
import org.jboss.resteasy.spi.HttpResponse;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
/**
* @author <a hr... | 173 |
948 | /*
* Copyright (c) 2013, ADVANSEE - http://www.advansee.com/
* <NAME> <<EMAIL>>
* 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 ... | 1,308 |
348 | {"nom":"Sarrazac","circ":"3ème circonscription","dpt":"Dordogne","inscrits":299,"abs":99,"votants":200,"blancs":26,"nuls":7,"exp":167,"res":[{"nuance":"MDM","nom":"<NAME>","voix":93},{"nuance":"SOC","nom":"<NAME>","voix":74}]} | 93 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Essey-lès-Nancy","circ":"1ère circonscription","dpt":"Meurthe-et-Moselle","inscrits":6129,"abs":3191,"votants":2938,"blancs":20,"nuls":18,"exp":2900,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":980},{"nuance":"DVD","nom":"<NAME>","voix":594},{"nuance":"SOC","nom":"Mm... | 370 |
3,428 | {"id":"00411","group":"spam-2","checksum":{"type":"MD5","value":"e606c6408dbcda1a60be16896197bace"},"text":"From <EMAIL> Mon Jun 24 17:05:40 2002\nReturn-Path: _rebeccallewellyn1__@yahoo.com\nDelivery-Date: Tue May 21 16:36:12 2002\nReceived: from mandark.labs.netnoteinc.com ([213.105.180.140]) by\n dogma.slashnull... | 1,625 |
17,702 | <filename>Source/Readers/HTKDeserializers/MLFUtils.h
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
#pragma once
#include <unordered_map>
#include <vector>
#include <string>
#include <boost/algorithm/strin... | 1,266 |
2,550 | //
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 4,049 |
4,994 | <filename>examples/ssd_detection/test.cpp<gh_stars>1000+
/*
Copyright (c) 2013, <NAME> and the respective contributors
All rights reserved.
Use of this source code is governed by a BSD-style license that can be found
in the LICENSE file.
*/
#include <cmath>
#include <iomanip>
#include <iostream>
#inclu... | 7,555 |
1,862 | #ifndef BLINKER_SERIAL_GPRS_H
#define BLINKER_SERIAL_GPRS_H
#if ARDUINO >= 100
#include <Arduino.h>
#else
#include <WProgram.h>
#endif
#include "../Blinker/BlinkerConfig.h"
#include "../Blinker/BlinkerDebug.h"
#include "../Blinker/BlinkerStream.h"
#include "../Blinker/BlinkerUtility.h"
#include "../Functions/... | 14,047 |
365 | <reponame>larskuhtz/massiv
#ifndef MASSIV_INCLUDE
#define MASSIV_INCLUDE
#if MASSIV_UNSAFE_CHECKS
#define INDEX_CHECK(name, s, f) (indexWith __FILE__ __LINE__ (name) (s) (f))
#else
#define INDEX_CHECK(name, s, f) ((f))
#endif
#endif
| 112 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace KtlInteropTest
{
... | 825 |
335 | <gh_stars>100-1000
{
"word": "Electrodeposit",
"definitions": [
"To cause (a metal) to be deposited from solution by electrolytic action; to apply (a coating of a metal) in this way, by making the article to be coated act as the cathode in an electrolytic cell where the metal forms the anode."
],
... | 117 |
488 | <reponame>maurizioabba/rose<gh_stars>100-1000
// t0433.cc
// matching out-of-line defn when arg type is dependent qualified
template <class T>
struct A {
typedef T some_type;
int foo1(some_type s);
int foo2(some_type s);
};
template <class T>
int A<T>::foo1(typename A<T>::some_type s)
{
return 2;
}
templa... | 319 |
414 | <reponame>huggingface/optimum<filename>optimum/runs_base.py<gh_stars>100-1000
import os
import subprocess
from contextlib import contextmanager
from time import perf_counter_ns
import numpy as np
import torch
import transformers
from datasets import Dataset
from tqdm import trange
import optuna
from optimum import ve... | 3,770 |
872 | #!/usr/bin/python3
"""
Given n pairs of parentheses, write a function to generate all combinations of
well-formed parentheses.
For example, given n = 3, a solution set is:
[
"((()))",
"(()())",
"(())()",
"()(())",
"()()()"
]
"""
from typing import List
class Solution:
def generateParenthesis(self, n: ... | 374 |
718 | <reponame>plutoyuxie/mmgeneration<gh_stars>100-1000
import torch
from mmgen.models.diffusions import UniformTimeStepSampler
def test_uniform_sampler():
sampler = UniformTimeStepSampler(10)
timesteps = sampler(2)
assert timesteps.shape == torch.Size([
2,
])
assert timesteps.max() < 10 and ... | 201 |
2,577 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2... | 1,926 |
879 | <filename>core/src/main/java/org/zstack/core/errorcode/ElaborationCategory.java<gh_stars>100-1000
package org.zstack.core.errorcode;
import org.zstack.header.rest.SDK;
/**
* Created by mingjian.deng on 2018/12/1.
*/
@SDK
public class ElaborationCategory {
private String category;
private Integer num;
p... | 336 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 1,725 |
1,097 | <gh_stars>1000+
/*
MIT License
Copyright (c) 2018-2020 <NAME>
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, me... | 18,011 |
2,003 | // Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "master/delete_table_procedure.h"
#include "master/master_env.h"
DECLARE_int32(tera_master_meta_retry_times);
namespace tera {
namespace master {... | 2,026 |
666 | <filename>modules/Gyoi_CveExplorerNVD.py
#!/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import re
import codecs
import json
import glob
import zipfile
import shutil
import ssl
import urllib3
import configparser
import pandas as pd
from urllib3.exceptions import InsecureRequestWarning
urll... | 10,955 |
15,947 | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 2,478 |
318 | <gh_stars>100-1000
/*
* Copyright Beijing 58 Information Technology Co.,Ltd.
*
* 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 li... | 482 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.http.netty;
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpMethod;
import com.azure.core.http.HttpRequest;
import com.azure.core.http.ProxyOptions;
import io.netty.channel.nio.... | 1,798 |
778 | <reponame>rahulyesantharao/tuplex
//--------------------------------------------------------------------------------------------------------------------//
// //
// Tupl... | 1,849 |
2,690 | # -*- test-case-name: flocker.node.agents.test.test_blockdevice -*-
# Copyright ClusterHQ Inc. See LICENSE file for details.
"""
This module implements the parts of a block-device based dataset
convergence agent that can be re-used against many different kinds of block
devices.
"""
import itertools
from uuid import ... | 29,693 |
407 | <reponame>iuskye/SREWorks
package com.elasticsearch.cloud.monitor.metric.mapping;
import com.elasticsearch.cloud.monitor.metric.common.blink.utils.Filter;
import com.elasticsearch.cloud.monitor.metric.common.pojo.CommonPojo.EsClusterConf;
import com.elasticsearch.cloud.monitor.metric.mapping.pojo.MetricMappingInfo;
im... | 7,579 |
3,672 | <reponame>ddc7451/RxFFmpeg<filename>rxffmpeg/src/main/java/io/microshow/rxffmpeg/RxFFmpegProgress.java
package io.microshow.rxffmpeg;
/**
* 进度封装
*/
public class RxFFmpegProgress {
public int state = 0;
/**
* 执行进度
*/
public int progress;
/**
* 执行的时间,相对于总时间 单位:微秒
*/
public lo... | 294 |
530 | <reponame>EnochPrime/node-zwave-js<gh_stars>100-1000
{
"manufacturer": "Fantem",
"manufacturerId": "0x016a",
"label": "FT101",
"description": "Cube",
"devices": [
{
"productType": "0x0001",
"productId": "0x0065",
"zwaveAllianceId": 2409
},
{
"productType": "0x0101",
"productId": "0x0065",
"... | 502 |
4,262 | /*
* 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 ... | 618 |
1,088 | <reponame>amznero/graph-learn<filename>graphlearn/include/dag_dataset.h<gh_stars>1000+
/* Copyright 2020 Alibaba Group Holding Limited. 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 Lice... | 532 |
17,702 | # Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE.md file in the project root
# for full license information.
# ==============================================================================
import gym
import numpy as np
from gym import spaces
from gym.utils import seeding
... | 1,729 |
1,133 | <reponame>mikesep/comdb2<filename>crc32c/crc32c.c
/*
Copyright 2015 <NAME>.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 copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unles... | 7,007 |
307 | package se.jiderhamn.classloader.leak.prevention.cleanup;
/**
* Test case for {@link ShutdownHookCleanUp}
* @author <NAME>
*/
public class ShutdownHookCleanUpTest extends ClassLoaderPreMortemCleanUpTestBase<ShutdownHookCleanUp> {
@Override
protected void triggerLeak() throws Exception {
Runtime.getRuntime()... | 143 |
1,088 | /* Copyright 2020 Alibaba Group Holding Limited. 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 o... | 1,792 |
1,192 | //===-- llvm/CodeGen/AllocationOrder.cpp - Allocation Order ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 665 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.