max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
22,481 | <filename>homeassistant/components/smart_meter_texas/manifest.json
{
"domain": "smart_meter_texas",
"name": "Smart Meter Texas",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/smart_meter_texas",
"requirements": ["smart-meter-texas==0.4.7"],
"codeowners": ["@grahamwetzler"... | 133 |
1,144 | // Generated Model - DO NOT CHANGE
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
import javax.annotation.Nullable;
/** Generated Model for C_TaxCategory
* @author metasfresh (generated)
*/
@SuppressWarnings("unused")
public class X_C_TaxCategory extends org.compiere.model.PO ... | 1,064 |
848 | <filename>tensorflow/compiler/tests/variable_ops_test.py
# Copyright 2017 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.apach... | 9,809 |
14,668 | <filename>components/test/data/payments/kylepay.com/app.json
{
"name": "Pay with KylePay",
"short_name": "KylePay",
"icons": [{
"src": "icon.png",
"sizes": "48x48",
"type": "image/png"
}],
"serviceworker": {
"src": "app.js",
"use_cache": false,
"scope": "/webpay"
},
"payment": {
... | 180 |
587 | <reponame>sw96411/gaffer-tools
{
"class": "uk.gov.gchq.gaffer.operation.impl.get.GetAllElements",
"options": {
"gaffer.federatedstore.operation.graphIds": "propertyIndex"
}
} | 78 |
1,755 | <filename>Rendering/External/vtkExternalOpenGLRenderer.h
/*=========================================================================
Program: Visualization Toolkit
Module: vtkExternalOpenGLRenderer.h
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/C... | 1,230 |
1,141 | <filename>EHenTaiViewer/QJTipViewController.h
//
// QJTipViewController.h
// EHenTaiViewer
//
// Created by QinJ on 2017/11/30.
// Copyright © 2017年 kayanouriko. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface QJTipViewController : UIViewController
- (void)startAnimateWithTip:(NSString *)tip;
- (void)... | 136 |
2,151 | <filename>chrome/browser/ui/webui/interventions_internals/interventions_internals_page_handler_unittest.cc
// 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.
#include "chrome/browser/ui/webui/interventions... | 10,402 |
3,227 |
namespace CGAL {
/*!
\ingroup PkgSegmentDelaunayGraph2Ref
\cgalModels `SegmentDelaunayGraphFaceBase_2`
The class `Segment_Delaunay_graph_face_base_2` provides a model for the
`SegmentDelaunayGraphFaceBase_2` concept which is the face
base required by the `SegmentDelaunayGraphDataStructure_2`
concept.
\tparam Gt mu... | 330 |
354 | #include<bits/stdc++.h>
using namespace std;
void leftRotate(int arr[], int d, int n)
{
d = d % n; //handle if d >=n
int g_c_d = __gcd(d, n); // __gcd predefine method in c++.which takes two input and return gcd.
for (int i = 0; i < g_c_d; i++) {
int temp = arr[i]; ... | 594 |
1,306 | package io.github.biezhi.java8.growing.jdk8;
import java.util.Arrays;
import java.util.concurrent.ThreadLocalRandom;
/**
* 并行数组
*
* @author biezhi
* @date 2018/2/8
*/
public class ParallelArrays {
public static void main(String[] args) {
long[] arrayOfLong = new long[20000];
Arrays.parallel... | 328 |
403 | package io.craft.atom.nio.api;
import io.craft.atom.io.IoHandler;
import io.craft.atom.nio.NioAdaptiveBufferSizePredictorFactory;
import io.craft.atom.nio.NioConfig;
import io.craft.atom.nio.NioOrderedDirectChannelEventDispatcher;
import io.craft.atom.nio.spi.NioBufferSizePredictorFactory;
import io.craft.atom.nio.spi... | 1,927 |
982 | /*
* Copyright (C) 2019-2020 Red Hat, Inc.
*
* Written By: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met :
* 1. Redistributions of source code must retain the above copyright
* notice, th... | 1,421 |
6,989 | <gh_stars>1000+
# -*- coding: utf-8 -*-
import pickle
import random
from collections import deque
from copy import copy as shallow_copy
import pytest
from markupsafe import Markup
from jinja2._compat import range_type
from jinja2._compat import string_types
from jinja2.utils import consume
from jinja2.utils import ge... | 2,924 |
963 | <filename>core/src/test/java/com/vladmihalcea/book/hpjp/hibernate/transaction/spring/jpa/service/ReleaseAfterStatementForumService.java
package com.vladmihalcea.book.hpjp.hibernate.transaction.spring.jpa.service;
import com.vladmihalcea.book.hpjp.hibernate.forum.dto.PostDTO;
import com.vladmihalcea.book.hpjp.hibernate... | 220 |
395 | <gh_stars>100-1000
/**
* Copyright 2017-2019 The OpenTracing 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 b... | 473 |
1,334 | <gh_stars>1000+
package org.mockserver.model;
import java.util.Objects;
public class ExpectationId extends ObjectWithJsonToString {
private int hashCode;
private String id;
public String getId() {
return id;
}
public ExpectationId withId(String id) {
this.id = id;
return... | 408 |
2,421 | <gh_stars>1000+
/*
* Copyright 2012-2018 Chronicle Map Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | 781 |
1,091 | <filename>apps/openstacktelemetry/app/src/test/java/org/onosproject/openstacktelemetry/util/OpenstackTelemetryUtilTest.java
/*
* Copyright 2018-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.
*... | 892 |
799 | <gh_stars>100-1000
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
ALL_OPTION = 'All'
NO_CAMPAIGN_INCIDENTS_MSG = 'There is no Campaign Incidents in the Context'
NO_ID_IN_CONTEXT = 'There is no \"id\" key in the incidents'
def get_campaign_incidents():
"""
Get t... | 731 |
973 | /*_##########################################################################
_##
_## Copyright (C) 2016 Pcap4J.org
_##
_##########################################################################
*/
package org.pcap4j.packet;
import java.util.Arrays;
import org.pcap4j.packet.RadiotapPacket.RadiotapData;
imp... | 1,159 |
7,880 | import java.util.Scanner;
/**
* It provide some kind of BASIC language behaviour simulations.
*/
final class Basic {
public static int randomOf(int base) {
return (int)Math.round(Math.floor(base* Math.random() + 1));
}
/**
* The Console "simulate" the message error when input does not matc... | 576 |
348 | /*
* Copyright (c) 2012-2014, <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,
* this list of condi... | 4,361 |
1,475 | <gh_stars>1000+
/*
* 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... | 1,888 |
348 | <filename>docs/data/leg-t2/028/02802096.json
{"nom":"<NAME>","circ":"2ème circonscription","dpt":"Eure-et-Loir","inscrits":837,"abs":483,"votants":354,"blancs":23,"nuls":3,"exp":328,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":242},{"nuance":"REM","nom":"Mme <NAME>","voix":86}]} | 119 |
611 | <gh_stars>100-1000
// DejaLu
// Copyright (c) 2015 <NAME>. All rights reserved.
#include "HMIMAPFetchNextSourceSyncStep.h"
#include "HMMailDBUIDToFetchOperation.h"
#include "HMMailStorage.h"
using namespace hermes;
using namespace mailcore;
IMAPFetchNextSourceSyncStep::IMAPFetchNextSourceSyncStep()
{
mUidOp = N... | 1,185 |
6,304 | /*
* Copyright 2020 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkSVGFeBlend_DEFINED
#define SkSVGFeBlend_DEFINED
#include "modules/svg/include/SkSVGFe.h"
#include "modules/svg/include/SkSVGTypes.h"
class SkSVGFeBlend : public Sk... | 498 |
338 | package com.camnter.newlife.widget;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import and... | 3,283 |
4,036 |
class DifferentTypes {
SOME_TYPE i1;
SOME_TYPE i2;
SOME_TYPE i3;
SOME_TYPE i4;
SOME_TYPE i5;
SOME_TYPE i6;
SOME_TYPE i7;
SOME_TYPE i8;
SOME_TYPE i9;
};
class DifferentTypes2 {
SOME_TYPE i1;
SOME_TYPE i2;
SOME_TYPE i3;
SOME_TYPE i4;
SOME_TYPE i5;
SOME_TYPE i6... | 269 |
796 | <filename>src/net/zhuoweizhang/mcpelauncher/api/modpe/Enchantment.java
package net.zhuoweizhang.mcpelauncher.api.modpe;
public final class Enchantment {
// These names are taken from SpongeAPI
public static final int
PROTECTION = 0,
FIRE_PROTECTION = 1,
FEATHER_FALLING = 2,
BLAST_PROTECTION = 3,
PROJECTILE_PROT... | 334 |
1,742 | <gh_stars>1000+
## -*- encoding: utf-8 -*-
"""
This file (./nonlinear_doctest.sage) was *autogenerated* from ./nonlinear.tex,
with sagetex.sty version 2011/05/27 v2.3.1.
It contains the contents of all the sageexample environments from this file.
You should be able to doctest this file with:
sage -t ./nonlinear_doctest... | 7,607 |
1,521 | /**
* Copyright 2020 Alibaba Group Holding Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 4,064 |
695 | <reponame>mdiazmel/keops
#pragma once
#include "core/formulas/maths/Mult.h"
#include "core/formulas/maths/Square.h"
#include "core/formulas/maths/Sum.h"
namespace keops {
// Anisotropic (but diagonal) norm, if S::DIM == A::DIM:
// SqNormDiag<S,A> = sum_i s_i*a_i*a_i
template < class FS, class FA >
using SqNormDiag =... | 155 |
14,668 | <reponame>zealoussnow/chromium<gh_stars>1000+
// 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.chrome.browser.bookmarkswidget;
import org.chromium.chrome.browser.base.SplitCompatRem... | 220 |
682 | #ifndef SIMULATION_BUFFER_H
#define SIMULATION_BUFFER_H
#include <atomic>
#include <thread>
/**
* Odin use -1 internally, so we need to go back on forth
* TODO: change the default odin value to match both the Blif value and this buffer
*/
typedef signed char data_t;
#define BUFFER_SIZE 12 //use... | 2,149 |
2,266 | /*
* File : i2c-bit-ops.h
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either ve... | 637 |
397 | <filename>sample-chat-obj-c/sample-chat/Components/ChatScreen/ChatViewController.h
//
// ChatViewController.h
// samplechat
//
// Created by Injoit on 2/25/19.
// Copyright © 2019 Quickblox. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@class ChatAttachmentCell;
typedef NS_ENUM(NSUInt... | 328 |
326 | <filename>azure-devops/azext_devops/dev/common/git.py
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------... | 2,992 |
331 | <filename>presentation/src/main/java/com/freedom/lauzy/ticktockmusic/base/IBaseView.java
package com.freedom.lauzy.ticktockmusic.base;
/**
* Desc : IBaseView
* Author : Lauzy
* Date : 2017/7/3
* Blog : http://www.jianshu.com/u/e76853f863a9
* Email : <EMAIL>
*/
public interface IBaseView {
// Context context()... | 126 |
7,339 | <reponame>schalkventer/htm<filename>test/fixtures/esm/package.json
{
"name": "htm_dist_test",
"type": "module",
"private": true,
"description": "A package to test importing htm as ES modules in Node",
"dependencies": {
"htm": "file:htm.tgz",
"preact": "^10.4.1"
}
}
| 116 |
623 | package me.chanjar.jms.base.sender.disruptor;
public class PayloadEvent {
private Object payload;
public Object getPayload() {
return payload;
}
public void setPayload(Object payload) {
this.payload = payload;
}
}
| 81 |
2,133 | <reponame>uavosky/uavosky-qgroundcontrol
#include "../../../../../src/positioning/qgeocoordinate_p.h"
| 42 |
493 | <gh_stars>100-1000
"""
Version helper updates file version-helper.js
which takes care of injecting versions into rtd template.
After version-helper.js is updated,
script prints paths of old versions to be removed.
EXAMPLE
docs directory (sceptre.github.io) contains following directories
├── 1.5.0
├── 2.1.3
... | 863 |
471 | /////////////////////////////////////////////////////////////////////////////
// Name: graphics.cpp
// Purpose: Some benchmarks for measuring graphics operations performance
// Author: <NAME>
// Created: 2008-04-13
// Copyright: (c) 2008 <NAME> <<EMAIL>>
// Licence: wxWindows licence
/////////... | 8,089 |
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.
#include "net/ssl/ssl_platform_key_util.h"
#include <stddef.h>
#include "base/memory/ref_counted.h"
#include "net/cert/x509_certificate.h"
#include "net... | 801 |
7,137 | package io.onedev.server.web.component.watchstatus;
import io.onedev.server.web.page.base.BaseDependentCssResourceReference;
public class WatchStatusResourceReference extends BaseDependentCssResourceReference {
private static final long serialVersionUID = 1L;
public WatchStatusResourceReference() {
super(WatchS... | 105 |
30,023 | """Constants for the KNX integration."""
from __future__ import annotations
from enum import Enum
from typing import Final, TypedDict
from homeassistant.components.climate.const import (
PRESET_AWAY,
PRESET_COMFORT,
PRESET_ECO,
PRESET_NONE,
PRESET_SLEEP,
HVACAction,
HVACMode,
)
from homeas... | 1,602 |
6,684 | {
"pagination": {
"DescribeBackups": {
"input_token": "NextToken",
"output_token": "NextToken",
"limit_key": "MaxResults"
},
"DescribeDataRepositoryTasks": {
"input_token": "NextToken",
"output_token": "NextToken",
"limit_key": "MaxResults"
},
"DescribeFileSyste... | 450 |
357 | #include <iostream>
#include <stdlib.h>
#include <string>
#define num 8
#define MAXSIZE 100
using namespace std;
class coded_char
{
private:
char value;
double weight;
string code;
bool iscoded = false;
public:
coded_char(char value, double weight) :value(value), weight(weight){}
coded_char* left, *right;
vo... | 1,061 |
2,967 | <filename>src/core/os2/geniconv/os2cp.c
/*
Simple DirectMedia Layer
Copyright (C) 1997-2021 <NAME> <<EMAIL>>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted... | 4,813 |
11,094 | <filename>基础教程/A1-Python与基础知识/算法第一步/ExampleCodes/chapter16/16-4_16-5.py<gh_stars>1000+
def recursion_test(depth):
if depth <1000:
recursion_test(depth + 1)
return
# 下面是 代码16-5
recursion_test(1) | 135 |
412 | public class Test_binary3
{
public static void main(Boolean b)
{
String s = Long.toString(Long.MIN_VALUE + 1, 2);
if (b) {
assert(s.equals("-111111111111111111111111111111111111111111111111111111111111111"));
}
else {
assert(!s.equals("-1111111111111111111... | 178 |
2,430 | <reponame>PierreMesure/openaddresses
import json
import math
import sys
import logging
from esridump.dumper import EsriDumper
logging.basicConfig(level=logging.DEBUG)
outfile_name = sys.argv[1] if len(sys.argv) > 1 else 'medellin.geojson'
d = EsriDumper('https://www.medellin.gov.co/arcgis/rest/services/ServiciosPla... | 381 |
577 | <filename>examples/generation/docking_generation/guacamol_tdc/guacamol/guacamol/utils/math.py
from typing import List
import numpy as np
def arithmetic_mean(values: List[float]) -> float:
"""
Computes the arithmetic mean of a list of values.
"""
return sum(values) / len(values)
def geometric_mean(v... | 177 |
347 | <reponame>SAristeev/CUDALibrarySamples<filename>cuSPARSE/compression/compression_example.cpp
/*
* Copyright 1993-2021 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO LICENSEE:
*
* This source code and/or documentation ("Licensed Deliverables") are
* subject to NVIDIA intellectual property rights under U.S... | 6,458 |
400 | /*
* NASA Docket No. GSC-18,370-1, and identified as "Operating System Abstraction Layer"
*
* Copyright (c) 2019 United States Government as represented by
* the Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the... | 4,066 |
6,700 | # TODO Test browse()
from unittest import mock
import pytest
from mopidy.file import backend
from mopidy.internal import path
from tests import path_to_data_dir
@pytest.fixture
def config():
return {
"proxy": {},
"file": {
"show_dotfiles": False,
"media_dirs": [str(path_... | 420 |
3,586 | package com.linkedin.metadata.models;
import com.linkedin.data.schema.RecordDataSchema;
import com.linkedin.data.schema.TyperefDataSchema;
import com.linkedin.metadata.models.annotation.EntityAnnotation;
import java.util.List;
import java.util.Map;
public interface EntitySpec {
String getName();
EntityAnnot... | 245 |
1,350 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SubResource;
import com.azure.c... | 4,303 |
28,056 | <filename>src/test/java/com/alibaba/fastjson/deserializer/issue3804/TestIssue3804.java
package com.alibaba.fastjson.deserializer.issue3804;
import com.alibaba.fastjson.JSONValidator;
import org.junit.Test;
public class TestIssue3804 {
@Test
public void testIssue3804() {
//String textResponse="{\"error\... | 278 |
558 | package io.github.microcks.security;
import org.keycloak.KeycloakSecurityContext;
import org.keycloak.representations.AccessToken;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Arrays;
import java.util.List;
/**
* Simpler mappe for transforming KeyclaokSecurityContext token into UserInfo... | 636 |
12,252 | <filename>testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/broker/AbstractRoleMapperTest.java
package org.keycloak.testsuite.broker;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.not;
import static org.junit.Assert.assertThat;
import static org.keyclo... | 1,259 |
351 | <gh_stars>100-1000
package org.springframework.boot.loader.thin;
import java.io.File;
import java.util.List;
import java.util.Properties;
import org.assertj.core.api.Condition;
import org.eclipse.aether.graph.Dependency;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Disabled;
import org.junit.j... | 5,129 |
2,056 | from qira_log import *
import json
from qira_memory import *
regs = Memory()
mem = Memory()
def init():
dat = read_log("/tmp/qira_log")
for (address, data, clnum, flags) in dat:
if flags & IS_WRITE and flags & IS_MEM:
size = flags & SIZE_MASK
# support big endian
for i in range(0, size/8):
... | 300 |
1,139 | <filename>Android/ProgressDialog/app/src/main/java/com/journaldev/progressdialog/MainActivity.java
package com.journaldev.progressdialog;
import android.app.ProgressDialog;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.vi... | 1,233 |
3,282 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.tabmodel.document;
import android.app.Activity;
import android.content.Context;
import android.util.SparseArray;
imp... | 4,155 |
417 | <gh_stars>100-1000
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2020-2021 Alibaba Group Holding Limited.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apa... | 1,285 |
349 | /*
* initsync.h - Initial replica synchronization.
*/
#ifndef SIRIDB_INITSYNC_H_
#define SIRIDB_INITSYNC_H_
typedef struct siridb_initsync_s siridb_initsync_t;
#include <stdio.h>
#include <uv.h>
#include <inttypes.h>
#include <siri/db/db.h>
#include <siri/db/series.h>
#include <siri/net/pkg.h>
siridb_initsync_t * ... | 402 |
463 | <reponame>pblew/jmockit1
package mockit;
import org.junit.*;
import static org.junit.Assert.*;
public final class TestedAbstractClassTest
{
public abstract static class AbstractClass implements Runnable {
private final int value;
protected String name;
protected AbstractClass(int value) { this.v... | 851 |
7,158 | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | 1,421 |
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 CHROMEOS_SERVICES_DEVICE_SYNC_CRYPTAUTH_TASK_METRICS_LOGGER_H_
#define CHROMEOS_SERVICES_DEVICE_SYNC_CRYPTAUTH_TASK_METRICS_LOGGER_H_
#include <s... | 655 |
611 | <filename>src/test/java/fr/adrienbrault/idea/symfony2plugin/tests/doctrine/metadata/driver/DoctrinePhpAttributeMappingDriverTest.java
package fr.adrienbrault.idea.symfony2plugin.tests.doctrine.metadata.driver;
import com.jetbrains.php.lang.psi.PhpPsiElementFactory;
import fr.adrienbrault.idea.symfony2plugin.doctrine.m... | 1,086 |
3,755 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: MIT. See LICENSE
import frappe
def execute():
frappe.delete_doc_if_exists("DocType", "User Permission for Page and Report") | 69 |
1,351 | <filename>tests/gold_tests/logging/log-filter.test.py
'''
'''
# 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 und... | 1,272 |
357 | <reponame>wfu8/lightwave<filename>vmidentity/platform/src/main/java/com/vmware/identity/interop/ldap/certContext/CertInfoNative.java
/*
* Copyright (c) 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 wi... | 1,249 |
348 | {"nom":"Milhac","circ":"1ère circonscription","dpt":"Lot","inscrits":178,"abs":72,"votants":106,"blancs":9,"nuls":9,"exp":88,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":57},{"nuance":"REM","nom":"M. <NAME>","voix":31}]} | 90 |
877 | <filename>framework-test/src/main/java/org/checkerframework/framework/test/ImmutableTestConfiguration.java
package org.checkerframework.framework.test;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.... | 1,165 |
543 | <filename>core/src/com/riiablo/math/Fixed.java
package com.riiablo.math;
public final class Fixed {
private static final int[] DIVISOR = new int[Integer.SIZE];
static {
for (int i = 0; i < Integer.SIZE; i++) {
DIVISOR[i] = 1 << i;
}
}
public static int floatToIntBits(final float value, final int... | 265 |
1,531 | /*
* 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
* distri... | 562 |
505 | #include <string>
#include <iostream>
#include <sstream>
using namespace std;
#include "BlockDataManagerConfig.h"
#include "BDM_mainthread.h"
#include "BDM_Server.h"
int main(int argc, char* argv[])
{
ScrAddrFilter::init();
#ifdef _WIN32
WSADATA wsaData;
WORD wVersion = MAKEWORD(2, 0);
WSAStartup(wVers... | 588 |
416 | <reponame>benhunter/owasp-pysec
"""Various utilities fot sequences manipulation"""
from pysec.utils import xrange
def ioc(seq, shift=1):
"""Return the index of coincidence"""
match = 0
seq_len = len(seq)
for i in xrange(0, seq_len):
j = (i + shift) % seq_len
if seq[i] == seq[j]:
... | 185 |
442 | #include <Bindings/obe/obe.hpp>
#include <Exception.hpp>
#include <ObEngineCore.hpp>
#include <Bindings/Config.hpp>
namespace obe::Bindings
{
void LoadClassBaseException(sol::state_view state)
{
sol::table obeNamespace = state["obe"].get<sol::table>();
sol::usertype<obe::BaseExcep... | 647 |
14,668 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <stdint.h>
#include "gpu/GLES2/gl2extchromium.h"
#include "gpu/command_buffer/tests/gl_manager.... | 5,559 |
12,718 | <reponame>Bhuvanesh1208/ruby2.6.1
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef _STICOM_
#define _STICOM_
#include <pshpack8.h>
#define STI_... | 7,938 |
190,993 | /* Copyright 2017 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... | 848 |
307 |
#include "TestUtil.h"
#include "scripting/lua/LuaValue.h"
using namespace luacpp;
class LuaValueTest: public LuaStateTest {};
TEST_F(LuaValueTest, SetReference) {
ScopedLuaStackTest stackTest(L);
LuaValue val = LuaValue::createValue(L, "TestTest");
lua_pushnumber(L, 42.0);
val.setReference(UniqueLuaReferenc... | 177 |
16,483 | /*
* Copyright 1999-2019 Seata.io Group.
*
* 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... | 740 |
409 | """
# -*- coding: utf-8 -*-
-----------------------------------------------------------------------------------
# Author: <NAME>
# DoC: 2020.08.17
# email: <EMAIL>
-----------------------------------------------------------------------------------
# Description: This script for the KITTI dataset
"""
import sys
import ... | 1,587 |
407 | <reponame>iuskye/SREWorks
#!/usr/bin/env python
# encoding: utf-8
""" """
import types
import web
from web import Storage
from teslafaas.common.trace_id import get_upstream_trace
from teslafaas.container.webpy.bcc_factory import BCCFactory, BCCFactoryBase
from teslafaas.container.webpy.common.hooks import tesla_loadh... | 3,167 |
3,508 | <filename>src/test/java/com/fishercoder/_1746Test.java<gh_stars>1000+
package com.fishercoder;
import com.fishercoder.solutions._1746;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class _1746Test {
private static _1746.Solution1 solution1;
@BeforeC... | 653 |
14,668 | // 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.
#ifndef IOS_CHROME_BROWSER_UI_SETTINGS_PASSWORD_PASSWORD_DETAILS_PASSWORD_DETAILS_H_
#define IOS_CHROME_BROWSER_UI_SETTINGS_PASSWORD_PASSWORD_DETAILS_PASS... | 486 |
645 | <reponame>AlexShypula/stoke
// Copyright 2013-2016 Stanford University
//
// 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 requ... | 1,438 |
960 | /*
* Copyright (c) 2010 Google Inc.J
*
* 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... | 2,467 |
389 | package gw.specContrib.interfaceMethods.defaultMethods.javaInteraction;
import java.util.List;
public interface JavaInterface1 {
public default List foo() {
return null;
}
} | 63 |
612 | package com.mtcarpenter.mall.domain;
import com.mtcarpenter.mall.model.SmsCoupon;
import com.mtcarpenter.mall.model.SmsCouponHistory;
import com.mtcarpenter.mall.model.SmsCouponProductCategoryRelation;
import com.mtcarpenter.mall.model.SmsCouponProductRelation;
import lombok.Data;
import java.util.List;
/**
* @au... | 370 |
5,169 | {
"name": "AdGem",
"version": "1.3.5",
"summary": "Maximize ROI with engaging, reward-based ads using AdGem’s lightweight SDK.",
"homepage": "http://adgem.com",
"authors": {
"<NAME>": "<EMAIL>"
},
"license": {
"type": "Commerical",
"text": "LICENSE © 2019 AdGem. All rights reserved. LICENSE"
... | 225 |
997 | #ifndef PQCLEAN_SNTRUP761_CLEAN_CRYPTO_CORE_INV3SNTRUP761_H
#define PQCLEAN_SNTRUP761_CLEAN_CRYPTO_CORE_INV3SNTRUP761_H
#include <stdint.h>
#define PQCLEAN_SNTRUP761_CLEAN_crypto_core_inv3sntrup761_OUTPUTBYTES 762
#define PQCLEAN_SNTRUP761_CLEAN_crypto_core_inv3sntrup761_INPUTBYTES 761
#define PQCLEAN_SNTRUP761_CLEAN_... | 272 |
417 | /*
* 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 ... | 2,257 |
310 | {
"name": "MailChimp",
"description": "A templated mailing list system.",
"url": "https://mailchimp.com/"
} | 41 |
375 | <reponame>alex729/RED
/*
* Copyright 2016 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.services.event;
import org.osgi.service.event.Event;
public class Events {
public static <T> T get(final Event event, fi... | 227 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.