max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
746 | package org.protege.editor.owl.ui.editor;
import org.protege.editor.core.ui.util.InputVerificationStatusChangedListener;
import org.protege.editor.core.ui.util.VerifiedInputEditor;
import org.protege.editor.owl.OWLEditorKit;
import org.protege.editor.owl.ui.clsdescriptioneditor.ExpressionEditor;
import org.protege.edi... | 3,104 |
569 | /*
* Copyright 2011 Google 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 ... | 851 |
4,342 | <reponame>pormr/RxPY
#!/usr/bin/env python3
import sys
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
from configparser import ConfigParser
# General project metadata is stored in project.cfg
with open('projec... | 888 |
1,475 | /*
* 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 ... | 289 |
852 | #ifndef FWCore_MessageService_test_PSetTestClient_A_h
#define FWCore_MessageService_test_PSetTestClient_A_h
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/global/EDAnalyzer.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include <vector>
namespace edm {
class... | 285 |
310 | <reponame>dreeves/usesthis<filename>gear/software/i/inkscape.json
{
"name": "Inkscape",
"description": "An open-source vector graphics program.",
"url": "https://inkscape.org/en/"
} | 68 |
777 | <reponame>google-ar/chromium<filename>chrome_elf/nt_registry/nt_registry_unittest.cc
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome_elf/nt_registry/nt_registry.h"
#include <windows.h>... | 7,104 |
488 | <reponame>ouankou/rose
/// Test the MPI Determinism analysis against a single test case.
///
/// Run this program like any other ROSE-based tool, passing it a
/// source file or files to work on, and relevant compiler frontend
/// options. Specifically, the mpi.h distrubuted alongside this must
/// proceed any other in... | 1,513 |
787 | <reponame>mlouward/rust
{
"blurb": "Functions are fundamental units of code abstraction.",
"authors": [
"bobahop"
],
"contributors": []
}
| 58 |
782 | // Copyright (c) 2017-2020 Intel Corporation
//
// 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, merge,... | 622 |
345 | <filename>djangoerp/notifications/models.py
#!/usr/bin/env python
"""This file is part of the django ERP project.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN ... | 4,233 |
994 | package name.caiyao.microreader.presenter;
/**
* Created by 蔡小木 on 2016/4/22 0022.
*/
public interface IWeixinPresenter extends BasePresenter{
void getWeixinNews(int page);
void getWeixinNewsFromCache(int page);
}
| 86 |
854 | __________________________________________________________________________________________________
sample 44 ms submission
class Solution:
def nextGreaterElement(self, nums1: List[int], nums2: List[int]) -> List[int]:
stk=[]
d=dict()
for num in nums2:
while len(stk)>0 and num... | 610 |
381 | <reponame>cmeier76/JGiven<gh_stars>100-1000
package com.tngtech.jgiven.examples.userguide;
import com.tngtech.jgiven.annotation.ExtendedDescription;
import com.tngtech.jgiven.annotation.Hidden;
public class RocketMethods {
private RocketSimulator rocketSimulator;
private boolean rocketLaunched;
private S... | 452 |
1,408 | /*
* Copyright (C) 2018 Marvell International Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
* https://spdx.org/licenses
*/
#include <plat_marvell.h>
/* The power domain tree descriptor */
unsigned char marvell_power_domain_tree_desc[PLAT_MARVELL_CLUSTER_COUNT + 1];
/****************************************... | 862 |
3,372 | <filename>aws-java-sdk-config/src/main/java/com/amazonaws/services/config/model/RemediationParameterValue.java
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* ... | 2,271 |
7,629 | #include "config.h"
#include "sldns/sbuffer.h"
#include "sldns/wire2str.h"
#include "sldns/str2wire.h"
#include "util/data/dname.h"
#define SZ 1000
#define SZ2 100
int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t nr) {
char *bin = malloc(nr);
uint8_t *bout;
size_t len, len2;
memset(bin, 0, nr);
memcp... | 1,271 |
7,482 | <filename>bsp/m16c62p/drivers/uart.h
#ifndef __UART_H__
#define __UART_H__
#define BAUD_RATE 9600
void rt_hw_uart_init(void);
#endif
| 66 |
634 | <filename>modules/web/web-platform-impl/src/main/java/consulo/web/wm/impl/status/WebInfoAndProgressPanel.java
package consulo.web.wm.impl.status;
import com.intellij.openapi.wm.CustomStatusBarWidget;
import com.intellij.openapi.wm.StatusBar;
import consulo.localize.LocalizeValue;
import consulo.ui.Component;
import co... | 472 |
777 | <gh_stars>100-1000
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.components.signin.test.util;
import org.chromium.base.Callback;
/**
* A simple tool to make waiting for the res... | 922 |
4,772 | package example.repo;
import example.model.Customer1838;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1838Repository extends CrudRepository<Customer1838, Long> {
List<Customer1838> findByLastName(String lastName);
}
| 87 |
887 | <filename>gazebo/gui/ModelManipulator_TEST.cc
/*
* Copyright (C) 2016 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lice... | 1,940 |
755 | {
"author": "Microsoft Community",
"name": "Multi-Instance Advanced",
"description": "Vérifie la façon dont plusieurs instances de l’application sont lancées.",
"identity": "wts.Feat.MultiInstanceAdvanced.VB"
}
| 85 |
353 | <gh_stars>100-1000
package org.nutz.mock;
import java.lang.reflect.Field;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.nutz.ioc.Ioc;
import org.nutz.ioc.IocLoader;
import org.nutz.ioc.impl.NutIoc;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.combo.Co... | 1,158 |
568 | <reponame>jgtaylor123/novoda_spikes
package com.novoda.pianohero;
import java.util.Iterator;
import java.util.List;
public class Notes implements Iterable<Note> {
private final List<Note> notes;
public Notes(List<Note> notes) {
this.notes = notes;
}
public List<Note> asList() {
retu... | 467 |
348 | {"nom":"Mesvres","circ":"3ème circonscription","dpt":"Saône-et-Loire","inscrits":631,"abs":320,"votants":311,"blancs":43,"nuls":28,"exp":240,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":128},{"nuance":"LR","nom":"M. <NAME>","voix":112}]} | 100 |
1,240 | package com.eventyay.organizer.core.event.list;
import androidx.arch.core.executor.testing.InstantTaskExecutorRule;
import androidx.lifecycle.Observer;
import com.eventyay.organizer.core.presenter.TestUtil;
import com.eventyay.organizer.data.Preferences;
import com.eventyay.organizer.data.event.Event;
import com.even... | 1,746 |
2,904 | <reponame>Black-Swan-ICL/dowhy<filename>tests/causal_identifiers/test_backdoor_identifier.py
import pytest
from dowhy.causal_graph import CausalGraph
from dowhy.causal_identifier import CausalIdentifier
from .base import IdentificationTestGraphSolution, example_graph_solution
class TestBackdoorIdentification(object)... | 1,622 |
482 | <gh_stars>100-1000
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
... | 1,084 |
8,805 | <filename>ios/Pods/Headers/Public/UMCore/UMLogHandler.h<gh_stars>1000+
../../../../../node_modules/@unimodules/core/ios/UMCore/Protocols/UMLogHandler.h | 62 |
435 | <filename>pycon-de-2013/videos/interaktive-datenanalyse-und-visualisierung-mit-p.json
{
"alias": "video/2399/interaktive-datenanalyse-und-visualisierung-mit-p",
"category": "PyCon DE 2013",
"copyright_text": "",
"description": "",
"duration": 60,
"id": 2399,
"language": "deu",
"quality_notes": "",
"re... | 526 |
683 | @ParametersAreNonnullByDefault
package io.opentelemetry.instrumentation.api;
import javax.annotation.ParametersAreNonnullByDefault;
| 40 |
1,056 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 8,220 |
443 | """Unique Node.label
Revision ID: <KEY>
Revises: <KEY>
Create Date: 2013-12-18 12:42:30.583085
"""
# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '<KEY>'
from alembic import op
def upgrade():
op.create_unique_constraint('unq_node_label', 'node', ['label'])
def downgrade():
o... | 143 |
416 | //
// UTAdditions.h
//
// Copyright © 2020 Apple Inc. All rights reserved.
//
#ifndef __UNIFORMTYPEIDENTIFIERS_UTADDITIONS__
#define __UNIFORMTYPEIDENTIFIERS_UTADDITIONS__
#import <UniformTypeIdentifiers/UTDefines.h>
#import <UniformTypeIdentifiers/UTType.h>
#import <Foundation/Foundation.h>
__BEGIN_DECLS
NS_ASSU... | 2,027 |
591 | from typing import Union, Optional, Iterable
from ..base.seqlike import BaseSequenceLikeMixin
from .... import Document
from ...memory import DocumentArrayInMemory
class SequenceLikeMixin(BaseSequenceLikeMixin):
"""Implement sequence-like methods"""
def _insert_doc_at_idx(self, doc, idx: Optional[int] = Non... | 1,542 |
14,499 | <reponame>JacobBarthelmeh/infer
/*
* 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.
*/
package android.view;
public class View {
public <T extends View> T findViewById(int id) {
/... | 155 |
6,424 | <reponame>hwong557/tutorials
#include <torch/torch.h>
#include <torch/script.h>
#include <ATen/NamedTensorUtils.h>
using torch::Tensor;
using torch::DeviceType;
using torch::autograd::tensor_list;
using torch::autograd::AutogradContext;
// BEGIN myadd
Tensor myadd(const Tensor& self, const Tensor& other) {
static ... | 1,176 |
4,253 | package com.mashibing.eurekaserver;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotatio... | 320 |
317 | <reponame>yaozhang2016/deepwater
/*!
* Copyright (c) 2016 by Contributors
*/
#include <string>
#include <vector>
#include <map>
#include "initializer.h"
#include "network_def.hpp"
using namespace mxnet::cpp;
Symbol MLPSymbol() {
Symbol data = Symbol::Variable("data");
Symbol data_label = Symbol::Variable("soft... | 1,714 |
357 | /*
* Copyright © 2012-2015 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the “License”); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 32,308 |
683 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.instrumentation.api.instrumenter;
import java.time.Instant;
/**
* Extractor of the start time of request processing. A {@link StartTimeExtractor} should always use
* the same timestamp source as the corres... | 156 |
853 | package com.qwe7002.telegram_sms;
import android.util.Log;
import com.qwe7002.telegram_sms.config.proxy;
import java.util.ArrayList;
import java.util.List;
import io.paperdb.Paper;
public class update_to_version1 {
private final String TAG = "update_to_version1";
public void check_error() {
try {
... | 699 |
1,738 | <filename>dev/Gems/EMotionFX/Code/Tests/UI/CanAddMotionToMotionSet.cpp
/*
* 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 i... | 1,342 |
764 | {
"symbol": "WDT",
"account_name": "wdctoken1111",
"overview": {
"en": "WDswap is an on chain system of smart contracts on the EOS blockchain. Through Bancor protocol, an automatic decentralized exchange is built (first, spot trading is launched, and then lending, leverage, futures, options and othe... | 437 |
5,411 | /*
* Random Number Generator base classes
* (C) 1999-2009,2015,2016 <NAME>
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#ifndef BOTAN_RANDOM_NUMBER_GENERATOR_H_
#define BOTAN_RANDOM_NUMBER_GENERATOR_H_
#include <botan/secmem.h>
#include <botan/exceptn.h>
#include <botan/mutex.h>
#includ... | 3,707 |
372 | /* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
*/
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compli... | 2,392 |
423 | // {{{ MIT License
// Copyright 2017 <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, merge, p... | 2,726 |
514 | <gh_stars>100-1000
#include <stdint.h>
#include "microwatt_soc.h"
#include "io.h"
#define XICS_XIRR_POLL 0x0
#define XICS_XIRR 0x4
#define XICS_RESV 0x8
#define XICS_MFRR 0xC
#define bswap32(x) (uint32_t)__builtin_bswap32((uint32_t)(x))
uint8_t icp_read8(int offset)
{
return readb(XICS_ICP_BASE + off... | 408 |
190,993 | /* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 440 |
611 | <filename>vrlib/src/main/java/com/martin/ads/vrlib/filters/advanced/mx/BlackWhiteFilter.java
package com.martin.ads.vrlib.filters.advanced.mx;
import android.content.Context;
import com.martin.ads.vrlib.filters.base.SimpleFragmentShaderFilter;
/**
* Created by Ads on 2017/1/31.
* BlackWhiteFilter (黑白)
*/
public ... | 181 |
335 | /*
Copyright (C) 2020 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... | 703 |
995 | package ui.graphing.logical;
import core.document.graph.LogicalNode;
import ui.custom.fx.ActiveMenuItem;
import ui.dialog.ConnectionDetailsDialogFx;
import ui.graphing.graphs.LogicalFilterGraph;
public class CellLogicalHidable extends CellLogical {
public CellLogicalHidable(final LogicalFilterGraph owner, Logical... | 225 |
309 | <filename>src/Cxx/Medical/MedicalDemo1.cxx
// Derived from VTK/Examples/Cxx/Medical1.cxx
// This example reads a volume dataset, extracts an isosurface that
// represents the skin and displays it.
//
#include <vtkActor.h>
#include <vtkCamera.h>
#include <vtkMarchingCubes.h>
#include <vtkMetaImageReader.h>
#include <vt... | 1,568 |
2,023 | """
Enumerates active processes as seen under windows Task Manager on Win NT/2k/XP using PSAPI.dll
(new api for processes) and using ctypes.Use it as you please.
Based on information from http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q175030&ID=KB;EN-US;Q175030
By <NAME>
email <EMAIL>
license GPL
"""
from c... | 801 |
1,332 | <reponame>CrossNox/orbit
import unittest
class TestExample(unittest.TestCase):
def test(self):
pass
# ...or this way
def test_example():
pass
| 65 |
995 | <reponame>YuukiTsuchida/v8_embeded<filename>externals/boost/boost/process/detail/posix/pipe_in.hpp
// Copyright (c) 2006, 2007 <NAME>
// Copyright (c) 2008 <NAME>, <NAME>
// Copyright (c) 2009 <NAME>
// Copyright (c) 2010 <NAME>, <NAME>
// Copyright (c) 2011, 2012 <NAME>, <NAME>
//
// Distributed under the Boost ... | 1,021 |
1,405 | <gh_stars>1000+
package com.lenovo.safecenter.mmsutils;
import java.util.ArrayList;
import java.util.HashMap;
public class TyuMMSHeaders {
public static final int ADAPTATION_ALLOWED = 188;
public static final int ADDITIONAL_HEADERS = 176;
public static final int APPLIC_ID = 183;
public static final in... | 10,100 |
1,027 | from httpolice.citation import RFC
from httpolice.parse import auto, fill_names, many, maybe, pivot, skip, string1
from httpolice.structure import HSTSDirective, Parametrized
from httpolice.syntax.common import DIGIT
from httpolice.syntax.rfc7230 import OWS, quoted_string, token
# This has been slightly adapted to th... | 408 |
3,227 | // Copyright (c) 2003 INRIA Sophia-Antipolis (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL$
// $Id$
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
//
//
// Author(s) : <NAME>
#ifndef CGAL_INTERNAL_INTERSECTIONS_RAY_3_RAY_3_DO_INTERSECT_H
#defin... | 710 |
689 | <gh_stars>100-1000
#include "SafeFrame.h"
int main()
{
IContext *ctx = new SafeFrame;
for (int i = 0; i < 24; ++i)
{
ctx->setClock(i);
ctx->doAction(IContext::ActionType::Use);
ctx->doAction(IContext::ActionType::Phone);
ctx->doAction(IContext::ActionType::Alarm);
}
... | 168 |
2,389 | <reponame>Ankit01Mishra/java<gh_stars>1000+
/*
Copyright 2020 The Kubernetes 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 app... | 1,720 |
504 | package org.dayatang.security.api;
/**
* 权限查询服务
* Created by yyang on 2016/10/31.
*/
public interface SecurityQueryService {
/**
* 根据ID获取用户
* @param id 用户ID
* @return 用户存在则返回该用户,否则返回null
*/
UserInfo getUser(String id);
/**
* 根据用户名获取用户
* @param username 用户名
* @return ... | 1,245 |
505 | package com.zhengsr.tablib.callback;
/**
* @author by zhengshaorui on 2019/10/8
* Describe:
*/
public abstract class FlowListenerAdapter {
public abstract void notifyDataChanged();
public void resetAllTextColor(int viewId,int color) { }
public abstract void resetAllStatus();
}
| 93 |
435 | <gh_stars>100-1000
# greaseweazle/tools/reset.py
#
# Greaseweazle control script: Reset to power-on defaults.
#
# Written & released by <NAME> <<EMAIL>>
#
# This is free and unencumbered software released into the public domain.
# See the file COPYING for more details, or visit <http://unlicense.org>.
description = "R... | 362 |
2,027 | /*
* Copyright 2017-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 904 |
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 THIRD_PARTY_BLINK_RENDERER_MODULES_WEBCODECS_ENCODED_VIDEO_CHUNK_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_WEBCODECS_ENCODED_VIDEO_CHUNK_H_
#... | 562 |
5,169 | {
"name": "UIExtensions",
"version": "1.0.0",
"summary": "Extensions for developers",
"description": "Extensions for developers to reduce efforts of re-writing common codes each and everytime. Like setting sideview icons for 'UITextField', simple alerts with 'OK' button and so many other things.",
"homepage":... | 271 |
1,350 | <gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.servicebus;
import java.time.Duration;
import java.time.Instant;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import java.util.conc... | 20,965 |
993 | <reponame>no-name-xiaosheng/PaddleViT
# Copyright (c) 2021 PPViT 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... | 6,077 |
892 | <filename>advisories/github-reviewed/2021/06/GHSA-5mv9-q7fq-9394/GHSA-5mv9-q7fq-9394.json<gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-5mv9-q7fq-9394",
"modified": "2022-04-25T23:42:19Z",
"published": "2021-06-01T21:21:01Z",
"aliases": [
"CVE-2021-32635"
],
"summary": "Action Commands (r... | 1,309 |
384 | <filename>PracticeDemos/app/src/main/java/yifeiyuan/practice/practicedemos/viewdrager/ViewDragerActivity.java
package yifeiyuan.practice.practicedemos.viewdrager;
import android.os.Bundle;
import android.support.design.widget.AppBarLayout;
import android.support.v7.widget.Toolbar;
import android.widget.TextView;
impor... | 531 |
879 | package org.zstack.header.managementnode;
public interface PrepareDbInitialValueExtensionPoint {
void prepareDbInitialValue();
}
| 36 |
358 | # -*- coding:utf-8 -*-
from ..common.base import BaseObject,DAY_FINALIZE_TICK
from ..core.dac import MINUTE
class Minutes(MINUTE):
pass
#def day_finalize(self):
# self._next_is_new_day = True
class Minutes_Previous(object):
"""
#deprecated #2014-8-18日以前的版本
被SaveAgent每日初始化时创建新的Minu... | 2,333 |
587 | /*
* Copyright 2017-2020 Crown Copyright
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 530 |
357 | package com.vmware.identity.idm;
public class CrlDownloadException extends IDMException
{
/**
*
*/
private static final long serialVersionUID = 3325902801890343056L;
public CrlDownloadException(String message, Throwable t) {
super(message, t);
}
public CrlDownloadException(Str... | 138 |
1,367 | package com.wanjian.sak.layer.impl;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.widget.ImageView;
import com.wanjian.sak.converter.ISizeConverter;
import com.wanjian... | 442 |
348 | <filename>docs/data/leg-t2/029/02907072.json
{"nom":"Guilvinec","circ":"7ème circonscription","dpt":"Finistère","inscrits":2486,"abs":1369,"votants":1117,"blancs":115,"nuls":39,"exp":963,"res":[{"nuance":"REM","nom":"<NAME>","voix":538},{"nuance":"LR","nom":"<NAME>","voix":425}]} | 115 |
495 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import sys
from itertools import chain
from tempfile import NamedTemporaryFile
from petl.test.helpers import ieq
from petl.transform.sorts import sort
import petl as etl
from petl.io.pytables import fromhdf5,... | 3,512 |
49,076 | <reponame>spreoW/spring-framework
/*
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICE... | 494 |
532 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals, division, absolute_import
from builtins import (bytes, dict, int, list, object, range, str, # noqa
ascii, chr, hex, input, next, oct, open, pow, round, super, filter, map, zip)
from future import standard_library... | 190 |
665 | <filename>testing/MLDB-538_route_deadlock.py<gh_stars>100-1000
#
# MLDB-538_route_deadlock.py
# mldb.ai inc, 2015
# this file is part of mldb. copyright 2015 mldb.ai inc. all rights reserved.
#
from mldb import mldb
# surprisingly enough, this works: a python script calling a python script !
result = mldb.post("/v1/t... | 461 |
1,248 | /**
* 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... | 4,316 |
6,036 | <filename>orttraining/orttraining/training_ops/cpu/nn/pool_gradient_op.h
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "core/framework/op_kernel.h"
namespace onnxruntime {
namespace contrib {
std::vector<std::vector<int64_t>> InferOutputShapes(O... | 882 |
1,350 | <filename>sdk/core/azure-core/src/main/java/com/azure/core/util/AsyncCloseable.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.util;
import reactor.core.publisher.Mono;
/**
* Interface for close operations that are asynchronous.
*
* <p><s... | 711 |
473 | <reponame>marcostolosa/CVE-2021-3156
#!/usr/bin/python
'''
Exploit for CVE-2021-3156 on CentOS 7 by sleepya
Simplified version of exploit_userspec.py for easy understanding.
- Remove all checking code
- Fixed all offset (no auto finding)
Note: This exploit only work on sudo 1.8.23 on CentOS 7 with default configurati... | 2,834 |
14,668 | /*
* Copyright 2021 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 ... | 1,772 |
310 | package org.seasar.doma.internal.apt.processor.domain;
import java.math.BigDecimal;
import org.seasar.doma.Domain;
@Domain(valueType = Override.class)
public class UnsupportedValueTypeDomain {
private final BigDecimal value;
public UnsupportedValueTypeDomain(BigDecimal value) {
this.value = value;
}
pu... | 122 |
1,459 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
"""A simple test sandbox to play with creation of simulation environments"""
import networkx as nx
import yaml
from cyberbattle.simulation import model, model_test, actions_test
def main() -> None:
"""Simple environment sandbox"""
# C... | 399 |
335 | {
"word": "Coil",
"definitions": [
"Arrange (something long and flexible) in a coil.",
"Move or twist into the shape of a coil."
],
"parts-of-speech": "Verb"
} | 83 |
14,668 | <filename>tools/cygprofile/compare_orderfiles.py
#!/usr/bin/env vpython
# 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.
"""Compares two orderfiles, from filenames or a commit.
This shows some statistics a... | 2,972 |
5,169 | <filename>Specs/c/c/b/SYPopup/1.1.6-fix-window/SYPopup.podspec.json
{
"name": "SYPopup",
"version": "1.1.6-fix-window",
"summary": "Presenting custom views as a popup in iOS.",
"description": "为了解决多window切换的问题,fork原作者代码一份,项目自己维护",
"homepage": "https://github.com/coder-cjl/SYPopup",
"license": {
"type": ... | 339 |
836 | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 2,774 |
460 | /////////////////////////////////////////////////////////////////////////////
// Name: wx/os2/font.h
// Purpose: wxFont class
// Author: <NAME>
// Modified by:
// Created: 10/06/99
// RCS-ID: $Id: font.h 42273 2006-10-23 11:58:28Z ABX $
// Copyright: (c) <NAME>
// Licence: wxWindows licen... | 1,738 |
1,498 | /*
Copyright (c) 2013, Broadcom Europe Ltd
Copyright (c) 2013, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, t... | 2,099 |
722 | <filename>compute/tensor/src/gpu/mali/rnncell.cpp
// Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved.
// 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 restrictio... | 5,874 |
9,680 | import os
import torch
import pandas as pd
from sklearn.preprocessing import LabelEncoder
from torchvision.datasets.utils import download_url
class TitanicDataset(torch.utils.data.Dataset):
def __init__(self, root: str, train: bool = True):
filename = 'train.csv' if train else 'eval.csv'
if not os... | 499 |
14,668 | // 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 2,768 |
14,668 | <reponame>zealoussnow/chromium<filename>tools/binary_size/libsupersize/nm.py
#!/usr/bin/env python3
# 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.
"""Runs nm on specified .a and .o file, plus some analysi... | 5,696 |
5,169 | {
"name": "CountryPhoneNumberValidator",
"version": "0.1.1",
"summary": "A phone number validator based on Country dial code",
"description": "The library provides a view for inputing phone number with dial code, returns a country flag and\n validate if the dial code is valid for bthe phone number inputed \nT... | 426 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.