max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,159 | <reponame>dyuri/vizzu-lib
#ifndef MATH_RATIO
#define MATH_RATIO
#include <cmath>
namespace Math
{
template <int denom>
class Ratio
{
public:
explicit Ratio(int i) : count(i) {}
explicit Ratio(double f) : count((int)round(f * denom)) {}
operator double () const {
return (double)count / denom;
}
bool operator... | 351 |
1,334 | # Generated by Django 3.1.7 on 2021-03-23 16:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("teams", "0004_teams_company"),
]
operations = [
migrations.RemoveField(
model_name="teams",
name="company",
),
]... | 145 |
2,381 | <filename>docker-java-api/src/main/java/com/github/dockerjava/api/model/Endpoint.java
package com.github.dockerjava.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import javax.annotation.CheckForNull;
import java.io.Serializable;
/**
* @sinc... | 700 |
2,542 | <gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stda... | 1,027 |
1,144 | <filename>openwrt-18.06/target/linux/adm5120/files-3.18/arch/mips/include/asm/mach-adm5120/adm5120_nand.h
/*
* ADM5120 NAND interface definitions
*
* This header file defines the hardware registers of the ADM5120 SoC
* built-in NAND interface.
*
* Copyright (C) 2007-2008 <NAME> <<EMAIL>>
*
* NAND interface... | 1,184 |
507 | # terrascript/pagerduty/d.py
# Automatically generated by tools/makecode.py ()
import warnings
warnings.warn(
"using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2
)
import terrascript
class pagerduty_business_service(terrascript.Data):
pass
class pagerduty_escalation_policy(terrascr... | 325 |
575 | <reponame>sarang-apps/darshan_browser
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/network/p2p/socket.h"
#include <utility>
#include "base/bind.h"
#include "base/metrics/hist... | 3,605 |
5,169 | <reponame>Gantios/Specs<gh_stars>1000+
{
"name": "Zoom",
"authors": "<NAME>",
"homepage": "https://get.fabric.io/crashlytics",
"libraries": [
"sqlite3",
"stdc++.6.0.9",
"z.1.2.5"
],
"license": {
"text": "",
"type": "Commercial"
},
"summary": "ZOOM iOS SDK",
"version": "1.0.2",
"s... | 366 |
1,338 | <filename>src/add-ons/kernel/file_systems/nfs4/RequestBuilder.h
/*
* Copyright 2012 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>, <EMAIL>
*/
#ifndef REQUESTBUILDER_H
#define REQUESTBUILDER_H
#include <SupportDefs.h>
#include "FileInfo.h"
#include "NF... | 1,626 |
480 | <gh_stars>100-1000
#
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 2005 <NAME> <<EMAIL>>
# Copyright (C) 2011 <NAME> <<EMAIL>>
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
# license at the users choice. A copy of both licenses are... | 3,127 |
571 | package me.devsaki.hentoid.views;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.ColorRe... | 1,800 |
822 | package com.zlm.hp.net.model;
/**
* @author zhangliangming
*/
public class HttpResult {
/**
*
*/
public static final int STATUS_SUCCESS = 0;
/**
*
*/
public static final int STATUS_ERROR = -1;
public static final int STATUS_NONET = -2;
public static final int STATUS_NOWI... | 428 |
471 | <filename>corehq/project_limits/rate_counter/rate_counter.py
import hashlib
import time
from django.core.cache import caches, DEFAULT_CACHE_ALIAS
from corehq.project_limits.rate_counter.interfaces import AbstractRateCounter
REDIS = caches[DEFAULT_CACHE_ALIAS]
LOCMEM = caches['locmem']
class SlidingWindowRateCounte... | 2,562 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Widowhood",
"definitions": [
"The state or period of being a widow or widower."
],
"parts-of-speech": "Noun"
} | 83 |
369 | /*
* Copyright (c) 2015, Freescale Semiconductor, Inc.
* Copyright 2016-2019 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
extern "C"
{
#include "fsl_common.h"
}
/********************************************
* Register List
*******************************************/
#... | 16,700 |
507 | # terrascript/data/hetznercloud/hcloud.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:18:06 UTC)
import terrascript
class hcloud_certificate(terrascript.Data):
pass
class hcloud_certificates(terrascript.Data):
pass
class hcloud_datacenter(terrascript.Data):
pass
class hcloud_datac... | 889 |
1,030 | {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Compute/virtualMachines"
},
{
"not": {
"field": "Microsoft.Compute/imageId",
"contains": "[concat('resourceGroups/',parameters('resourceGroupName'))]"
}
}
]
},
"then": {
"effect": "deny"
}
} | 154 |
12,278 | // Copyright 2017 The Abseil 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 agre... | 1,169 |
476 | <reponame>tejasvinu/hetu-core<gh_stars>100-1000
/*
* 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 la... | 1,847 |
32,544 | <reponame>DBatOWL/tutorials
package com.baeldung.softdelete;
import javax.persistence.EntityManager;
import org.hibernate.Filter;
import org.hibernate.Session;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class ProductService {
@Au... | 349 |
1,578 | <gh_stars>1000+
/**
******************************************************************************
* @file stm32f4xx_spi.c
* @author MCD Application Team
* @version V1.5.0
* @date 06-March-2015
* @brief This file provides firmware functions to manage the following
* functionalities of t... | 20,220 |
310 | <filename>doma-core/src/main/java/org/seasar/doma/internal/jdbc/sql/node/WhereClauseAwareNode.java
package org.seasar.doma.internal.jdbc.sql.node;
import org.seasar.doma.jdbc.SqlNode;
/**
* @author nakamura-to
* @since 2.3.0
*/
public interface WhereClauseAwareNode extends SqlNode {
WhereClauseNode getWhereClau... | 149 |
416 | package org.simpleflatmapper.reflect.primitive;
public interface LongSetter<T> {
void setLong(T target, long value) throws Exception;
}
| 47 |
4,124 | /*
* 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 ... | 732 |
314 | <filename>lib/utils/i2c/fdt_i2c_sifive.c
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2021 YADRO
*
* Authors:
* <NAME> <<EMAIL>>
*/
#include <sbi/riscv_io.h>
#include <sbi/sbi_error.h>
#include <sbi/sbi_timer.h>
#include <sbi_utils/fdt/fdt_helper.h>
#include <sbi_utils/i2c/fdt_i2c.h>
#define ... | 3,493 |
471 | <reponame>dimagilg/commcare-hq
import datetime
from django.conf import settings
from celery.schedules import crontab
from celery.task import periodic_task
from celery.utils.log import get_task_logger
from dimagi.utils.dates import DateSpan
from corehq.apps.data_analytics.gir_generator import GIRTableGenerator
from ... | 1,219 |
526 | /* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.datamanager.properties;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.ann... | 1,984 |
3,102 | // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
// REQUIRES: LP64
struct S {
int A[2];
};
// CHECK-NOT: llvm.global_ctor
int XX = (int)(long)&(((struct S*)0)->A[1]);
| 86 |
2,291 | <gh_stars>1000+
package org.osmdroid.samplefragments.milstd2525;
import android.graphics.Canvas;
import android.util.DisplayMetrics;
import android.util.SparseArray;
import org.osmdroid.api.IGeoPoint;
import org.osmdroid.util.BoundingBox;
import org.osmdroid.util.GeoPoint;
import org.osmdroid.util.PointReducer;
impor... | 5,785 |
2,144 | <reponame>WangCHX/pinot
/**
* 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,559 |
468 | #define GLI_INCLUDE_GL_AMD_DRAW_BUFFERS_BLEND
void glBlendFuncIndexedAMD(GLuint buf, GLenum[Main] src, GLenum[Main] dst);
void glBlendFuncSeparateIndexedAMD(GLuint buf, GLenum[Main] srcRGB, GLenum[Main] dstRGB, GLenum[Main] srcAlpha, GLenum[Main] dstAlpha);
void glBlendEquationIndexedAMD(GLuint buf, GLenum[Main] mode)... | 158 |
432 | <filename>data/tools/pallet.json
[
{
"slug": "pallet",
"name": "Pallet",
"description": "A tool to provision and maintain servers across various cloud platforms as well as virtual machine platforms, without any dependencies. Provides cloud and operating system independence.",
"tags": [
"linux",
... | 172 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.messaging.servicebus;
import com.azure.core.amqp.models.AmqpMessageBody;
import com.azure.core.amqp.models.AmqpMessageBodyType;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
... | 2,353 |
3,227 | <reponame>ffteja/cgal
namespace CGAL {
/*!
\ingroup kernel_classes
A model for a `Kernel` using homogeneous coordinates to represent the
geometric objects. In order for `Simple_homogeneous` to model Euclidean geometry
in \f$ E^2\f$ and/or \f$ E^3\f$, for some mathematical ring \f$ E\f$ (<I>e.g.</I>,
the integers \f$... | 432 |
435 | <gh_stars>100-1000
{
"copyright_text": "Standard YouTube License",
"description": "How is a software project like the USSR?\n\nUnfortunately, this is not a joke and the answer isn't funny. Software follows in a grand tradition of totalitarian regimes by creating a simplifying vision of how the world works, then for... | 437 |
1,906 | <reponame>Neoksi/Moxy
package target;
import com.arellomobile.mvp.MvpPresenter;
import com.arellomobile.mvp.PresenterBinder;
import com.arellomobile.mvp.presenter.PresenterField;
import com.arellomobile.mvp.presenter.PresenterType;
import java.util.ArrayList;
import java.util.List;
import presenter.EmptyViewPresente... | 372 |
704 | <gh_stars>100-1000
package org.jgroups.tests;
import org.jgroups.Global;
import org.jgroups.util.ObjectWrapper;
import org.jgroups.util.Util;
import org.testng.annotations.Test;
import java.io.IOException;
import java.util.Arrays;
/**
* Tests {@link org.jgroups.util.ObjectWrapper}
* @author <NAME>
* @since 5.0.0... | 726 |
361 | # -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------#
# Copyright © 2015-2016 VMware, Inc. All Rights Reserved. #
# #
# Licensed under the BSD 2-Clause License (the “License... | 2,304 |
1,389 | <reponame>mherod/welcome-coordinator<filename>app/src/main/java/com/redbooth/demo/MainActivity.java
/*
* Copyright <NAME> 2016 (@txusballesteros)
*
* This file is part of some open source application.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the... | 2,389 |
900 | package com.thedazzler.droidicon.typeface;
import android.content.Context;
import android.graphics.Typeface;
import android.util.Log;
/**
* Author: <NAME> (<EMAIL>), 2/3/15.
*/
public class UnicodeTypefaceHolder extends TypefaceHolder {
private static final String TAG = "UnicodeTypefaceHolder";
UnicodeTyp... | 467 |
410 | #ifndef TENSEAL_SERIALIZATION_H_
#define TENSEAL_SERIALIZATION_H_
#include <string>
#include "seal/seal.h"
namespace tenseal {
/**
* Saves a SEAL object to a string.
* Compatible SEAL types: Ciphertext, Plaintext, SecretKey, PublicKey,
*GaloisKeys, RelinKeys, EncryptionParameters, Modulus, BigUInt, IntArray.
**... | 429 |
1,693 | #ifndef SOFA_PBRPC_PROFILING_LINKER_H
#define SOFA_PBRPC_PROFILING_LINKER_H
#if defined(SOFA_PBRPC_PROFILING)
#include <gperftools/profiler.h>
void TCMallocGetHeapSample(std::string* writer);
#endif // SOFA_PBRPC_PROFILING
extern bool PROFILING_LINKER_FALSE;
class ProfilingLinker
{
public:
ProfilingLinker()
... | 306 |
787 | // OJ: https://leetcode.com/problems/scramble-string
// Author: github.com/lzl124631x
// Time: O(N^(N+1))
// Space: O(N^(N+1))
class Solution {
public:
bool isScramble(string s1, string s2) {
if (s1.size() != s2.size()) return false;
if (s1 == s2) return true;
for (int i = 1; i < s1.size(); ... | 389 |
777 | <reponame>google-ar/chromium<gh_stars>100-1000
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_H_
#define CONTENT_BROWSER_SERVICE_WORKER_E... | 4,235 |
340 | <filename>app/src/main/java/com/zhangyf/reward/MApplication.java
package com.zhangyf.reward;
import android.app.Application;
/**
* Created by zhangyf on 2017/5/26.
*/
public class MApplication extends Application{
@Override
public void onCreate() {
super.onCreate();
}
}
| 113 |
2,494 | <reponame>kundanjadhav/OpenProtocolMail<filename>build-android/localdeps/icu4c/source/common/cmutex.h
/*
**********************************************************************
* Copyright (C) 2013, International Business Machines
* Corporation and others. All Rights Reserved.
**************************************... | 421 |
3,495 | <reponame>AnthonyDiGirolamo/connectedhomeip
package build.chip.java.tests;
public class IncludedInChildSources2 {
IncludedInGrandchildSources includedInGrandchildSources;
}
| 51 |
364 | <gh_stars>100-1000
package rsc.publisher;
import java.util.*;
import java.util.concurrent.CancellationException;
import java.util.concurrent.atomic.*;
import java.util.function.*;
import org.reactivestreams.*;
import rsc.documentation.Operator;
import rsc.documentation.OperatorType;
import rsc.flow.Disposable;
impor... | 10,837 |
399 | #include "source/common/stream_info/stream_info_impl.h"
#include "test/test_common/simulated_time_system.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "library/common/stream_info/extra_stream_info.h"
namespace Envoy {
namespace StreamInfo {
static constexpr uint64_t SYSTEM_TIME_START_MS = 10000;
sta... | 2,385 |
416 | <reponame>khauser/SimpleFlatMapper<gh_stars>100-1000
package org.simpleflatmapper.test.map.mapper;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import org.junit.Assert;
import org.junit.Test;
import org.simpleflatmapper.converter.Context;
imp... | 27,021 |
407 | <gh_stars>100-1000
package com.alibaba.smart.framework.engine.service.query.impl;
import java.util.List;
import java.util.Map;
import com.alibaba.smart.framework.engine.configuration.ProcessEngineConfiguration;
import com.alibaba.smart.framework.engine.configuration.aware.ProcessEngineConfigurationAware;
import com.a... | 662 |
2,141 | import logging
from pathlib import Path
import pytest
from tests_util import executors_w_exception_logging
from ploomber import DAG
from ploomber.tasks import PythonCallable, SQLScript
from ploomber.products import File, SQLiteRelation
from ploomber.exceptions import (DAGBuildError, CallbackSignatureError,
... | 4,037 |
1,631 | <reponame>r4b3rt/JApiDocs
package result;
import java.util.List;
/**
* @author yeguozhong <EMAIL>
*/
public class SecondGeneric<M> {
private List<M> model;
public List<M> getModel() {
return model;
}
public void setModel(List<M> model) {
this.model = model;
}
}
| 133 |
1,909 | <reponame>grmkris/XChange<filename>xchange-bitstamp/src/main/java/org/knowm/xchange/bitstamp/dto/trade/BitstampOrderTransaction.java<gh_stars>1000+
package org.knowm.xchange.bitstamp.dto.trade;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math... | 709 |
347 | <filename>frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/renderer/NetworkFilterRenderer.java<gh_stars>100-1000
package org.ovirt.engine.ui.common.widget.renderer;
import org.ovirt.engine.core.common.businessentities.network.NetworkFilter;
import org.ovirt.engine.ui.common.CommonAp... | 255 |
775 | <gh_stars>100-1000
# Copyright (C) 2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
import importlib
import json
import os
import os.path as osp
from abc import ABC, abstractmethod
from collections import OrderedDict
from copy import deepcopy
from typing import List, Optional, Type
import pytest
from o... | 12,921 |
1,338 | /*
* Copyright 2012 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>, <EMAIL>
*/
#ifndef _BOARD_SAM460EX_BOARD_CONFIG_H
#define _BOARD_SAM460EX_BOARD_CONFIG_H
#define BOARD_NAME_PRETTY "ACube Sam460ex"
#define BOARD_CPU_TYPE_PPC440 1
#define BOARD_CPU_PP... | 255 |
326 | from django.core import serializers
from django.core.management.base import LabelCommand
from cbv import models
class Command(LabelCommand):
"""Dump the django cbv app data for a specific version."""
def handle_label(self, label, **options):
filtered_models = (
(models.ProjectVersion, "v... | 562 |
10,225 | package io.quarkus.it.cache;
import static io.restassured.RestAssured.given;
import static org.hamcrest.Matchers.is;
import org.junit.jupiter.api.Test;
import io.quarkus.test.junit.QuarkusTest;
@QuarkusTest
public class CaffeineTestCase {
@Test
public void test() {
given().when().get("/caffeine/has... | 195 |
1,144 | <gh_stars>1000+
/*
* This header provides constants for most PWM bindings.
*
* Most PWM bindings can include a flags cell as part of the PWM specifier.
* In most cases, the format of the flags cell uses the standard values
* defined in this header.
*/
#ifndef _DT_BINDINGS_PWM_PWM_H
#define _DT_BINDINGS_PWM_PWM_H... | 132 |
784 | package io.jboot.web.render;
import com.jfinal.captcha.CaptchaRender;
import com.jfinal.kit.StrKit;
import java.awt.*;
import java.awt.geom.QuadCurve2D;
import java.awt.image.BufferedImage;
public class JbootCaptchaRender extends CaptchaRender {
// 验证码随机字符数组
protected static char[] charArray = "1234567890ABC... | 1,706 |
1,338 | /*
* Copyright 2008, <NAME>, <<EMAIL>>. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <Catalog.h>
#include <ScrollView.h>
#include <String.h>
#include <Window.h>
#ifdef __HAIKU__
#include <Layout.h>
#endif
#include <pwd.h>
#include "LoginApp.h"
#include "LoginView.h"
#undef B_... | 2,853 |
443 | from __future__ import absolute_import, division
import uuid
from sqlalchemy import Column, ForeignKey, String
from sqlalchemy.orm import relationship
from sqlalchemy.schema import UniqueConstraint
from changes.config import db
from changes.constants import Result
from changes.db.types.enum import Enum
from changes.... | 426 |
678 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "MMUIViewController.h"
#import "ILinkEventExt.h"
#import "IWCCardPkgExt.h"
#import "IWCShareCardPkgExt.h"
#import "MMRefreshTableFooterDelegate.h"
#import "UITableViewDataSource.... | 1,234 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/ScreenReaderCore.framework/ScreenReaderCore
*/
#import <Foundation/NSCharacterSet.h>
@interface NSCharacterSet (SCRCCharacterSetExtras)
+ (id)whitespaceNewlineAndSpecialCharacterSet; // 0x40a5
+ (id)wordBreakCharac... | 114 |
443 | <reponame>vishalbelsare/chemicalx
"""Base classes for models and utilities."""
from abc import ABC, abstractmethod
from torch import nn
from chemicalx.data import DrugPairBatch
__all__ = [
"UnimplementedModel",
"Model",
]
class UnimplementedModel:
"""The base class for unimplemented ChemicalX models."... | 296 |
441 | //
// Copyright (c) 2017-2020 the rbfx project.
//
// 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, mer... | 1,863 |
325 | <gh_stars>100-1000
#include "LambdaFunctionWithCapturesBadCase2.hpp"
std::function<int(int, int)> createLambdaFunctionWithCapturesBadCase2()
{
int dummyInt1 = 45;
int dummyInt2 = -45;
// auto dummyLambda = [dummyInt1, dummyInt2] (int v1, int v2, float v3) { // <jet_tag: lamb_capt_diff_sign_bad:2>
// r... | 362 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 2,272 |
1,652 | <reponame>z131031231/x-pipe
package com.ctrip.xpipe.utils;
import com.ctrip.xpipe.api.utils.ControllableFile;
import com.ctrip.xpipe.exception.XpipeRuntimeException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import ... | 976 |
339 | #!/usr/bin/env python
from distribute_setup import use_setuptools
use_setuptools()
PROJECT = 'virtualenvwrapper-win'
AUTHOR = '<NAME>'
EMAIL = '<EMAIL>'
DESCRIPTION = ('Port of Doug Hellmann\'s virtualenvwrapper '
'to Windows batch scripts')
VERSION = '1.2.6'
PROJECT_URL = 'https://github.co... | 1,097 |
2,023 | from difflib import get_close_matches # for __getattr__
class Demo(object):
def __getattr__(self, name):
"""If a wrong method is called, this suggests methods with similar names."""
toRemove = """__delattr__ __dict__ __getattribute__ __module__ __new__
__reduce__ __copy__ __re... | 610 |
928 | {
"skip_files": [
"test",
"lib/level_web.ex",
"lib/level_web/endpoint.ex",
"lib/level_web/gettext.ex"
]
}
| 67 |
2,138 | <filename>src/main/java/org/jeecgframework/core/timer/DynamicTask.java
package org.jeecgframework.core.timer;
import java.io.IOException;
import java.net.UnknownHostException;
import java.util.List;
import javax.annotation.Resource;
import org.apache.log4j.Logger;
import org.jeecgframework.core.constant.Globals;
imp... | 4,682 |
777 | <filename>content/browser/profiler_controller_impl.h
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_PROFILER_CONTROLLER_IMPL_H_
#define CONTENT_BROWSER_PROFILER_CONTROLLER_I... | 819 |
713 | import bisect
class SnapshotArray(object):
def __init__(self, length):
"""
:type length: int
"""
self.array = [[[-1, 0]] for _ in range(length)]
self.currentSnapID = 0
self.length = length
def set(self, index, val):
"""
:type index: int
:... | 487 |
5,169 | {
"name": "NSData+MD5Digest",
"version": "1.0.0",
"license": {
"type": "MIT",
"file": "README.md"
},
"summary": "Add MD5 digest to NSData.",
"homepage": "https://github.com/siuying/NSData-MD5",
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": "https://github.com/siuying/NSData-MD... | 207 |
9,825 | # coding=utf-8
# Copyright 2018 The Dopamine 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... | 5,265 |
1,931 | import ast
from textwrap import dedent
import pytest
from wemake_python_styleguide.transformations.ast_tree import transform
@pytest.fixture(scope='session')
def parse_ast_tree(compile_code):
"""
Function to convert code to AST.
This helper mimics some transformations that generally
happen in diffe... | 291 |
5,169 | {
"name": "UIImage+InvertedImage",
"version": "1",
"summary": "Returns a new image that is the receiver with all colors inverted.",
"license": {
"type": "Public Domain"
},
"authors": {
"<NAME>": "<EMAIL>"
},
"platforms": {
"ios": null
},
"source": {
"git": "https://github.com/mxcl/UI... | 201 |
1,056 | <filename>platform/openide.util/src/org/openide/util/ChangeSupport.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 this file
... | 1,475 |
777 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_CATALOG_READER_H_
#define SERVICES_CATALOG_READER_H_
#include <map>
#include <memory>
#include <string>
#include "base/callback.h"
#inc... | 983 |
872 | #!/usr/bin/python3
"""
Given a collection of candidate numbers (candidates) and a target number
(target), find all unique combinations in candidates where the candidate numbers
sums to target.
Each number in candidates may only be used once in the combination.
Note:
All numbers (including target) will be p... | 754 |
2,201 | """
Copyright (c) 2018-2022 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 2,887 |
615 | <filename>src/library/tools/tune/toolslib.c
/* ************************************************************************
* Copyright 2013 Advanced Micro Devices, 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 obta... | 7,284 |
6,181 | <reponame>PLohrmannAMD/renderdoc
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
*... | 994 |
14,668 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_ANIMATION_COMPOSITOR_FLOAT_KEYFRAME_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_ANIMATION_COMPOSITOR_FLOAT_... | 485 |
9,959 | import lombok.With;
class SetterAndWithMethodJavadoc {
/**
* Some value.
* @param the new value
*/
@lombok.Setter @lombok.With int i;
/**
* Some other value.
*
* --- SETTER ---
* Set some other value.
* @param the new other value
*
* --- WITH ---
* Reinstantiate with some other value.
* @par... | 189 |
362 | package edu.uci.ics.jung.visualization.control;
import edu.uci.ics.jung.visualization.MultiLayerTransformer;
import edu.uci.ics.jung.visualization.VisualizationServer;
import edu.uci.ics.jung.visualization.transform.MutableAffineTransformer;
import java.awt.*;
import java.awt.geom.Point2D;
import org.slf4j.Logger;
imp... | 699 |
936 | /*
* Copyright 2020, Yahoo Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root for terms.
*/
package com.yahoo.elide.datastores.aggregation.metadata.enums;
import com.yahoo.elide.datastores.aggregation.timegrains.Day;
import com.yahoo.elide.datastores.aggregation.timegrains.Hou... | 471 |
375 | <gh_stars>100-1000
/*
* Copyright 2016 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.ide.eclipse.main.plugin.search;
import org.eclipse.jface.text.Position;
import org.eclipse.jface.viewers.StyledString;
imp... | 812 |
623 | <gh_stars>100-1000
package com.google.startupos.common.grpc_auth;
import com.google.auth.oauth2.GoogleCredentials;
import com.google.firebase.FirebaseApp;
import com.google.firebase.FirebaseOptions;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseToken;
import io.grpc.Metadata;
im... | 683 |
372 | <gh_stars>100-1000
/*
* 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 ... | 782 |
412 | package datart.server.base.params;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class DashboardCreateParam extends VizCreateParam {
private String id;
private String name;
private Double index;
private String parentId;
private String c... | 105 |
724 | <gh_stars>100-1000
{
"event-nodejs12": "{{ templatePath }}/event-nodejs12",
"event-nodejs10": "{{ templatePath }}/event-nodejs10",
"event-nodejs8": "{{ templatePath }}/event-nodejs8",
"event-nodejs6": "{{ templatePath }}/event-nodejs6",
"event-python3": "{{ templatePath }}/event-python3",
"event... | 813 |
1,473 | #!/usr/bin/env python
# coding=utf-8
from __future__ import division, print_function, unicode_literals
from collections import OrderedDict
from brainstorm.layers.base_layer import Layer
from brainstorm.structure.buffer_structure import StructureTemplate
from brainstorm.structure.construction import ConstructionWrappe... | 834 |
575 | // Copyright 2020 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.payments;
import android.content.Context;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import and... | 27,765 |
310 | {
"guid": "17B9CB18-EAC1-4D08-8BBE-96F5D777C303",
"name": "TBB Resumable Tasks SYCL",
"categories": ["Toolkit/oneAPI Libraries/oneTBB"],
"description": "This sample illustrates how computational kernel can be split for execution between CPU and GPU using Intel® oneTBB Resumable Task and parallel_for. The Intel®... | 514 |
318 | <reponame>maxerbubba/visionworkbench
// __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (t... | 2,018 |
2,098 | #ifndef __SEARCH_CTX_H
#define __SEARCH_CTX_H
#include <sched.h>
#include "redismodule.h"
#include "spec.h"
#include "concurrent_ctx.h"
#include "trie/trie_type.h"
#include <time.h>
#ifdef __cplusplus
extern "C" {
#endif
#if defined(__FreeBSD__)
#define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
#endif
/** Context passed... | 632 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.