max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
373 | /**
*
* Copyright (C) 2021, Semihalf.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*
**/
#ifndef BOARD_DESCRIPTION_LIB_H__
#define BOARD_DESCRIPTION_LIB_H__
#define IO_WIN_ALR_OFFSET(WinId) (0xF06F0000 + 0x0 + (0x10 * (WinId)))
#define IO_WIN_AHR_OFFSET(WinId) (0xF06F0000 + 0x8 + (0x10 *... | 662 |
1,968 | //////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: <EMAIL>
//
///////////////////////////////////////... | 2,771 |
8,428 | # stdlib
from typing import Any
from typing import List
def listify(x: Any) -> List[Any]:
"""turns x into a list.
If x is a list or tuple, return as list.
if x is not a list: return [x]
if x is None: return []
Args:
x (Any): some object
Returns:
List[Any]: x, as a list
""... | 163 |
640 | #define VAR_START 0xc000
#define VAR_START_VTECH VAR_START
#include <vtech.h>
#define VAR_START_SERIAL VAR_START + 32
#include <softserial.h>
#define VAR_START_USER VAR_START + 40
extern byte c @ (VAR_START_USER + 0);
extern byte serBufLen @ (VAR_START_USER + 2);
extern byte keyBufLen @ (VAR_START_USER + 4);
... | 761 |
3,603 | /*
* 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
* distribut... | 1,677 |
6,969 | <reponame>MLinesCode/The-Complete-FAANG-Preparation
class Solution:
def solveSudoku(self, board: List[List[str]]) -> None:
"""
Do not return anything, modify board in-place instead.
"""
if not any(['.' in x for x in board]):
return
minset = set(range(10))
... | 719 |
425 | package de.taimos.pipeline.aws.cloudformation;
public interface ParameterProvider {
String[] getKeepParams();
String getParamsFile();
Object getParams();
}
| 52 |
348 | {"nom":"Colombo","dpt":"Français établis hors de France","inscrits":321,"abs":166,"votants":155,"blancs":5,"nuls":0,"exp":150,"res":[{"panneau":"1","voix":127},{"panneau":"2","voix":23}]} | 73 |
336 | <gh_stars>100-1000
/*
Esperanza EWS-103 sensor on 433.92Mhz
Copyright (C) 2015 <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 3 as
published by the Free Software Foundation.
*/
/*
No frame description was... | 1,830 |
903 | <filename>exts/jphp-sql-ext/src/main/java/org/develnext/jphp/ext/sql/classes/PSqlStatement.java
package org.develnext.jphp.ext.sql.classes;
import org.develnext.jphp.ext.sql.SqlExtension;
import php.runtime.Memory;
import php.runtime.annotation.Reflection;
import php.runtime.annotation.Reflection.Abstract;
import php.... | 2,807 |
2,441 | /*
* 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
* distribut... | 832 |
3,970 | //
// Something.h
// TestProject-App-OSX
//
// Created by <NAME> on 11/13/13.
// Copyright (c) 2013 Facebook, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface Something : NSObject
@end
| 78 |
5,385 | /**
* Copyright 2006-2016 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | 1,217 |
1,996 | <filename>libapp2sys/src/main/cpp/client.h
/**
* Hardcoder client implementation
*/
#include <stdatomic.h>
#include <string>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/file.h>
#include ... | 8,471 |
392 | #============================================
__author__ = "<NAME>"
__maintainer__ = "<NAME>"
#============================================
sc_ch_dict = {
0.5: [16, 32, 64, 128, 256, 1024],
1.0: [32, 64, 128, 256, 512, 1024],
1.25: [32, 80, 160, 320, 640, 1024],
1.5: [32... | 263 |
1,139 | <gh_stars>1000+
package com.journaldev.viewflipper;
import android.content.Context;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import andro... | 1,436 |
3,066 | /*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this f... | 641 |
5,813 | <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
* ... | 1,182 |
1,475 | <filename>geode-membership/src/main/java/org/apache/geode/distributed/internal/membership/gms/locator/PrimaryHandler.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 cop... | 1,731 |
987 | <reponame>seeker3600/CsWin32
{
"$schema": "..\\..\\src\\Microsoft.Windows.CsWin32\\settings.schema.json",
"emitSingleFile": true,
"comInterop": {
"preserveSigMethods": [
"IEnumDebugPropertyInfo.Next"
]
}
}
| 103 |
1,588 | <reponame>joskwanten/vernemq
#!/bin/env python
import os
import json
os.system("license_scout -c files/license_scout.yml")
license_json = 'vernemq-dependency-licenses.json'
with open(license_json, 'r') as f:
licenses = json.load(f)
f = open("3rd-party-licenses.txt","w")
f.write("3rd-party Licenses Summary\n")
f... | 475 |
797 | /*
The MIT License (MIT)
Copyright (c) 2015 <NAME> and Contributors
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... | 15,194 |
16,500 |
#ifndef _SYS_SOCKET_H_
#define _SYS_SOCKET_H_
/* Protocol families. */
#define PF_UNSPEC 0 /* Unspecified. */
#define PF_LOCAL 1 /* Local to host (pipes and file-domain). */
#define PF_UNIX PF_LOCAL /* POSIX name for PF_LOCAL. */
#define PF_FILE PF_LOCAL /* Another non-s... | 2,323 |
2,338 | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 467 |
743 | package pl.allegro.tech.hermes.tracker.frontend;
import pl.allegro.tech.hermes.api.TopicName;
import java.time.Clock;
import java.util.List;
public class PublishingMessageTracker implements PublishingTracker {
private final List<LogRepository> repositories;
private final Clock clock;
public PublishingM... | 415 |
1,350 | <reponame>Shashi-rk/azure-sdk-for-java<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.recoveryservicesbackup.models;
import com.azure.resourcemanager.recoveryse... | 292 |
6,036 | <reponame>lchang20/onnxruntime<gh_stars>1000+
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "gtest/gtest.h"
#include "test/providers/provider_test_utils.h"
namespace onnxruntime {
namespace test {
// scalar zero & scale with uint8
TEST(DequantizeLinearOpTest,... | 6,927 |
679 | /**************************************************************
*
* 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 y... | 23,994 |
1,006 | <filename>sched/paging/paging.h
/****************************************************************************
* sched/paging/paging.h
*
* 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... | 873 |
1,356 | <reponame>matheusamazonas/cardboard
/*
* 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 requ... | 4,149 |
1,821 | /*
* Copyright 2018- The Pixie 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 ag... | 1,985 |
319 | <filename>plugins/TKLiveSync/TKLiveSync/unzip.h<gh_stars>100-1000
//
// unzip.h
// TKLiveSync
//
// Created by <NAME> on 7/29/16.
// Copyright © 2016 Telerik. All rights reserved.
//
#ifndef unzip_h
#define unzip_h
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
// Copied from https://github.com/Nati... | 210 |
463 | <reponame>nilakhan/cups<filename>scheduler/sysman.h<gh_stars>100-1000
/*
* System management definitions for the CUPS scheduler.
*
* Copyright 2007-2017 by Apple Inc.
* Copyright 2006 by Easy Software Products.
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more information.
*/
/*
* Consta... | 655 |
1,144 | /*
* #%L
* de.metas.swat.base
* %%
* Copyright (C) 2020 metas GmbH
* %%
* 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 version 2 of the
* License, or (at your option) any later ... | 5,101 |
1,248 | <reponame>fabm3n/pretix
# Generated by Django 2.1 on 2019-01-12 15:12
import django.db.models.deletion
from django.db import migrations, models
import pretix.base.models.fields
class Migration(migrations.Migration):
dependencies = [
('pretixbase', '0104_auto_20181114_1526'),
]
operations = [
... | 318 |
356 | <reponame>majk1/netbeans-mmd-plugin<filename>mind-map/idea-mindmap/src/com/igormaznitsa/ideamindmap/lang/tokens/MMAttributes.java
package com.igormaznitsa.ideamindmap.lang.tokens;
public class MMAttributes extends MMElementType {
public MMAttributes() {
super("ATTRIBUTES");
}
@SuppressWarnings( {"HardCodedS... | 164 |
387 | # -*- coding: utf-8 -*-
"""
Plotting script that plots all kinds of distributions using the json file created by
measure_runtimes.py.
"""
import os
import json
import itertools
import collections
import matplotlib.pyplot as plt
from measure_runtimes import specs, output_file
#
# constants
#
plotdir = "data"
#
... | 1,067 |
2,023 | int main(int argc, char **argv)
{
char *p;
char *q;
int num = 0;
while(num < 512 ){
printf("%d\n", num);
p = calloc(128, 1);
q = calloc(128,1);
int i = 0;
while( i < num){
*(p+i) = 'a';
i++;
}
printf("zzzz\n");
... | 345 |
4,304 | #ifndef IFDEF_H
#define IFDEF_H
#include <platform.h>
#include "../ast/ast.h"
#include "../pass/pass.h"
PONY_EXTERN_C_BEGIN
// Normalise the given ifdef condition to canonical form.
// Also used for use command guards.
// Includes replacing TK_*s with ifdef specific versions.
// Returns: true on success, false if co... | 305 |
395 | <reponame>amixuse/Android-Disassembler
#ifndef CAPSTONE_SYSTEMZ_H
#define CAPSTONE_SYSTEMZ_H
/* Capstone Disassembly Engine */
/* By <NAME> <<EMAIL>>, 2014-2015 */
#ifdef __cplusplus
extern "C" {
#endif
#include "platform.h"
#ifdef _MSC_VER
#pragma warning(disable:4201)
#endif
/// Enums corresponding to SystemZ co... | 35,943 |
13,074 | package com.lmax.disruptor.util;
import java.lang.reflect.Field;
import java.security.AccessController;
import java.security.PrivilegedExceptionAction;
public class UnsafeAccess
{
private static final sun.misc.Unsafe THE_UNSAFE;
static
{
try
{
final PrivilegedExceptionAction<s... | 454 |
650 | <reponame>whutinfo/web_develop
{
"name" : "bootstrap-switch",
"description" : "Unofficial bootstrap switch",
"version" : "1.8.0",
"main" : "static/js/bootstrap-switch.js",
"ignore": [
"examples"
],
"dependencies": {
"jquery": "~1.9.0"
},
"scripts": [
"static/js/bootstrap... | 160 |
348 | <filename>docs/data/leg-t2/083/08308045.json
{"nom":"Correns","circ":"8ème circonscription","dpt":"Var","inscrits":672,"abs":333,"votants":339,"blancs":42,"nuls":6,"exp":291,"res":[{"nuance":"REM","nom":"<NAME>","voix":227},{"nuance":"FN","nom":"<NAME>","voix":64}]} | 108 |
973 | <gh_stars>100-1000
package com.xw.project.gracefulmovies.data.ao;
import android.text.TextUtils;
import java.util.List;
public class MovieStills {
public List<Stills> list;
////////////////////////////////////////////////////////////////////////////////////////////////
public static class Stills {
... | 259 |
746 | <filename>fe/src/main/java/org/apache/impala/analysis/ValidTupleIdExpr.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,126 |
1,127 | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "op/org.openvinotoolkit/group_norm.hpp"
#include "default_opset.hpp"
#include "ngraph/builder/reduce_ops.hpp"
#include "ngraph/builder/split.hpp"
#include "ngraph/node.hpp"
#include "ngraph/opsets/opset5.hpp"
#include "onn... | 1,799 |
341 | #ifndef fpst_H
#define fpst_H 1
#include <stdint.h>
#include <stdlib.h>
/** A trie */
#ifndef fpst_GLOBALS
typedef struct FPST FPST;
#endif
/** Type of the function pointer for `fpst_free()` */
typedef void (*FPST_FreeFn)(const char *key, uint32_t val);
/** Returns an empty trie */
FPST *fpst_new(void);
/**
* Dea... | 863 |
3,495 | <gh_stars>1000+
/*******************************************************************************
* (c) 2020, Cypress Semiconductor Corporation. All rights reserved.
*******************************************************************************
* This software, including source code, documentation and related materi... | 11,109 |
2,151 | <filename>test/win/system-include/test.gyp
{
'target_defaults': {
'msvs_settings': {
'VCCLCompilerTool': {
'WarningLevel': '4',
'WarnAsError': 'true',
},
},
'msvs_system_include_dirs': [
'$(ProjectName)', # Different for each target
'common', # Same for all target... | 276 |
1,444 | <reponame>amc8391/mage
package mage.game.command.emblems;
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.constants.TargetController;
import mage.constants.Zone;
import mage.game.command.Emblem;
/**
* @author TheElk801
*/
publi... | 302 |
1,062 | <reponame>icarazob/mr4c
/**
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.... | 6,626 |
3,999 | #ifndef H_LANG_PT
#define H_LANG_PT
// Thanks: SrDanielPonces
const char *STR_PT[] = { ""
// help
, "A Carregar..."
, "Press H for help"
, helpText
, "%s@@@"
"BAIXAS %d@@"
"PICKUPS %d@@"
"SEGREDOS %d de %d@@"
"TEMPO DEMORADO %s"
, "A salvar..."
, "Salvo!"
, "ERRO AO... | 6,657 |
12,887 | <gh_stars>1000+
package com.zhisheng.alert.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* Desc: alert rule
* Created by zhisheng on 2019/10/16 下午5:07
* blog:http://www.54tianzhisheng.cn/
* 微信公众号:zhisheng
*/
@Data
@AllArgsConstructor
@NoA... | 186 |
389 | /*
*
* Copyright 2010 Guidewire Software, Inc.
*
*/
package editor;
import gw.config.CommonServices;
import gw.lang.reflect.IAttributedFeatureInfo;
import gw.lang.reflect.IMetaType;
import gw.lang.reflect.IMethodInfo;
import gw.lang.reflect.IPropertyInfo;
import gw.lang.reflect.IRelativeTypeInfo;
import gw.lang.r... | 7,580 |
780 | <gh_stars>100-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 "... | 1,550 |
1,045 | <filename>pyexcel/exceptions.py
"""
pyexcel.exceptions
~~~~~~~~~~~~~~~~~~~
Exceptions appeared in pyexcel
:copyright: (c) 2015-2020 by Onni Software Ltd.
:license: New BSD License
"""
class UnknownParameters(Exception):
"""Unknown parameter(s) were given to the signature functions"""
pa... | 156 |
1,666 | // Copyright 2012 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_HEAP_OBJECTS_VISITING_INL_H_
#define V8_HEAP_OBJECTS_VISITING_INL_H_
#include "src/heap/objects-visiting.h"
#include "src/heap/array-buffer... | 3,341 |
421 | <reponame>hamarb123/dotnet-api-docs<gh_stars>100-1000
// <Snippet1>
#using <system.dll>
#using <system.runtime.remoting.dll>
#using "service.dll"
using namespace System;
using namespace System::Runtime::Remoting;
using namespace System::Runtime::Remoting::Lifetime;
using namespace System::Runtime::Remoting... | 652 |
1,144 | <filename>backend/de.metas.adempiere.adempiere/base/src/main/java/de/metas/organization/InstantAndOrgId.java
package de.metas.organization;
import lombok.EqualsAndHashCode;
import lombok.NonNull;
import lombok.ToString;
import java.time.Instant;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.uti... | 530 |
5,535 | <reponame>wapache-org/greenplum-gpdb<filename>gpcontrib/orafce/magic.c
#include "postgres.h"
#include "fmgr.h"
#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;
#endif
| 73 |
388 | <filename>openfda/deploy/tests/devicerecall/test_endpoint.py
from nose.tools import *
import requests
from openfda.tests.api_test_helpers import *
from nose.tools import *
def test_pma_parsed_out():
meta, results = fetch('/device/recall.json?search=product_res_number.exact:Z-0567-2013')
eq_(sorted(results[0]['pm... | 2,560 |
648 | <gh_stars>100-1000
{"resourceType":"DataElement","id":"ImagingObjectSelection.title","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/ImagingObjectSelection.title","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":"ImagingObjectSelection.... | 278 |
841 | <reponame>omolinab/jbpm
/*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 367 |
879 | package org.zstack.test.multinodes;
import org.zstack.header.message.APIMessage;
/**
*/
public class APISilentMsg extends APIMessage {
public static APISilentMsg __example__() {
APISilentMsg msg = new APISilentMsg();
return msg;
}
} | 107 |
988 | /*
* 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 ... | 824 |
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 CHROME_BROWSER_ASH_APP_MODE_WEB_APP_WEB_KIOSK_APP_LAUNCHER_H_
#define CHROME_BROWSER_ASH_APP_MODE_WEB_APP_WEB_KIOSK_APP_LAUNCHER_H_
#include <mem... | 1,519 |
434 | <reponame>nikosNalmpantis/examples
import os
from typing import Tuple, Dict, Optional
import torch
import numpy as np
import librosa as lr
import torchaudio
from jina import Executor, DocumentArray, requests, Document
from jina_commons import get_logger
from vggish.vggish_input import waveform_to_examples
from vggish... | 2,118 |
558 | /* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2015-2021 Micron Technology, Inc. All rights reserved.
*/
#ifndef HSE_PLATFORM_TIME_H
#define HSE_PLATFORM_TIME_H
/* clang-format off */
#ifndef HSE_HZ
#define HSE_HZ (1000)
#endif
#define MSEC_PER_SEC (1000L)
#define USEC_PER_SEC ... | 280 |
4,054 | <reponame>Anlon-Burke/vespa
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.content;
import com.yahoo.vespa.model.builder.xml.dom.ModelElement;
import com.yahoo.vespa.model.content.cluster.DomResourceLimitsBuilder;
import java.util... | 3,035 |
746 | package in.srain.cube.util;
public class CubeDebug {
public static boolean DEBUG_CACHE = false;
public static boolean DEBUG_IMAGE = false;
public static boolean DEBUG_REQUEST = false;
public static String DEBUG_REQUEST_LOG_TAG = "cube-request";
public static String DEBUG_IMAGE_LOG_TAG = "cube-im... | 247 |
1,105 | // Copyright Contributors to the Open Shading Language project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
#include <vector>
#include <string>
#include <cstdio>
#include <OpenImageIO/sysutil.h>
#include <OSL/oslconfig.h>
#include <OSL/oslclosure.h>
#i... | 1,741 |
1,110 | <filename>Classes/GSPreferencesModule.h
//
// GSPreferencesModule.h
// gfxCardStatus
//
// Created by <NAME> on 7/11/11.
// Copyright 2011 <NAME>. All rights reserved.
//
@protocol GSPreferencesModule
@required
- (NSString *)title;
- (NSString *)identifier;
- (NSImage *)image;
- (NSView *)view;
@optional
- (void... | 129 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/ToneLibrary.framework/ToneLibrary
*/
#import <ToneLibrary/ToneLibrary-Structs.h>
#import <ToneLibrary/XXUnknownSuperclass.h>
@class NSMutableArray, UIImage;
@interface TLVibrationRecorderProgressView : XXUnknownSup... | 752 |
5,964 | // Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/v8.h"
#include "src/interpreter/bytecode-source-info.h"
#include "test/unittests/test-utils.h"
namespace v8 {
namespace internal {
names... | 492 |
335 | <filename>code/src/mupen64plus-rsp-paraLLEl/lightning/check/carg.c
#include <lightning.h>
#include <stdio.h>
/* Simple test for arguments handling, that also shows how to use
* arguments to store values.
* Register arguments, if available, are very fast, but are also
* very volatile on some ports, because some ... | 7,173 |
3,764 | # coding=utf-8
from __future__ import unicode_literals
import io
from copy import deepcopy
from mock import patch
from snips_nlu_utils import hash_str
from snips_nlu.constants import (
DATA, ENTITY, RES_ENTITY, RES_INTENT, RES_INTENT_NAME,
RES_PROBA, RES_SLOTS, RES_VALUE, SLOT_NAME, TEXT, STOP_WORDS)
from sn... | 18,725 |
542 | <gh_stars>100-1000
#ifndef __FIOS_H__
#define __FIOS_H__
#define SCE_FIOS_FH_SIZE 80
#define SCE_FIOS_DH_SIZE 80
#define SCE_FIOS_OP_SIZE 168
#define SCE_FIOS_CHUNK_SIZE 64
#define SCE_FIOS_ALIGN_UP(val, align) (((val) + ((align) - 1)) & ~((align) - 1))
#define SCE_FIOS_STORAGE_SIZE(num, size) (((num) * (size)) + SCE... | 1,178 |
694 | #include "destructors.h"
Handle* HandleFactory::create() {
return new Handle(this);
}
BaseHandle* HandleFactory::createBase() {
return new BaseHandle(this);
}
DerivedHandle* HandleFactory::createDerived() {
return new DerivedHandle(this);
}
DerivedHandle2* HandleFactory::createDerived2() {
return new D... | 144 |
428 | /*
* Exceptions thrown by the interpreter
*/
extern char exAlt[]; /* alt send/recv on same chan */
extern char exBusy[]; /* channel busy */
extern char exModule[]; /* module not loaded */
extern char exCompile[]; /* compile failed */
extern char exCrange[]; /* constant range */
extern char exCctovflw[]; /* constan... | 405 |
1,338 | <reponame>Kirishikesan/haiku
/*****************************************************************************\
* Tseng Labs ET6000, ET6100 and ET6300 graphics driver for BeOS 5.
* Copyright (c) 2003-2004, <NAME>.
\*****************************************************************************/
#include "GlobalData.h"
#i... | 2,310 |
3,285 | /*
Copyright 2020 The OneFlow 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 agre... | 1,151 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Montgeron","circ":"8ème circonscription","dpt":"Essonne","inscrits":15318,"abs":7986,"votants":7332,"blancs":422,"nuls":124,"exp":6786,"res":[{"nuance":"REM","nom":"<NAME>","voix":3619},{"nuance":"DLF","nom":"M. <NAME>","voix":3167}]} | 117 |
335 | {
"word": "Nation",
"definitions": [
"A large body of people united by common descent, history, culture, or language, inhabiting a particular state or territory.",
"A North American Indian people or confederation of peoples."
],
"parts-of-speech": "Noun"
} | 96 |
2,338 | <gh_stars>1000+
//===- Ops.h - Standard MLIR Operations -------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===-----------... | 1,505 |
302 | #ifndef CONFIGINTERFACE_H
#define CONFIGINTERFACE_H
#include <QObject>
class ConfigInterface : public QObject {
Q_OBJECT
Q_PROPERTY(QString sql READ getTag WRITE setTag NOTIFY tagChanged)
Q_PROPERTY(QString description READ getDescription WRITE setDescription NOTIFY
descriptionChanged)
public:... | 246 |
877 | <filename>checker/tests/tainting/withdefault/package-info.java
@HasQualifierParameter(Tainted.class)
package withdefault;
import org.checkerframework.checker.tainting.qual.Tainted;
import org.checkerframework.framework.qual.HasQualifierParameter;
| 74 |
965 | <filename>docs/mfc/codesnippet/CPP/clistbox-class_31.cpp
// Find the pixel width of the largest item.
CString str;
CSize sz;
int dx = 0;
CDC* pDC = myListBox.GetDC();
for (int i = 0; i < myListBox.GetCount(); i++)
{
myListBox.GetText(i, str);
sz = pDC->GetTextExtent(str);
if (sz.cx > dx)
dx = sz.c... | 205 |
925 | #pragma once
#include <map>
#include <string>
#include "attribute_.h"
#include "converter.h"
#include "object.h"
class Completion;
class Watchers : public Object {
public:
Watchers();
void injectDependencies(Object* root);
void scanForChanges();
DynAttribute_<unsigned long> count_;
int watchCo... | 190 |
412 | class A {
boolean bar() {
return true;
}
}
class B extends A {
boolean bar() {
return false;
}
}
public class Test {
public boolean foo(A x) {
return x.bar();
}
}
| 77 |
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.red.nattable.edit;
import java.util.List;
import org.eclipse.swt.widgets.Composite;
/**
* @author <NAME>
*
*/... | 327 |
9,402 | <filename>src/coreclr/pal/tests/palsuite/c_runtime/swprintf/test1/test1.cpp
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*============================================================================
**
** Source: test1.c
**
*... | 394 |
2,452 | <filename>app/src/test/java/com/meiji/toutiao/Demo.java
package com.meiji.toutiao;
import org.junit.Test;
/**
* Created by Meiji on 2017/5/7.
*/
public class Demo {
@Test
public void main() {
}
}
| 93 |
692 |
#include <stdio.h>
#include <stdlib.h>
#include <BoxPartition.h>
/*--------------------------------------------------------------------*/
static int box_map_local_entry( const int box[][2] ,
const int ghost ,
int local_x ,
... | 7,556 |
665 | /* id.h -*- C++ -*-
<NAME>, 17 February 2012
Copyright (c) 2012 mldb.ai inc. All rights reserved.
This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
Basic ID type for binary IDs of all types.
*/
#pragma once
#include <s... | 4,365 |
1,384 | <gh_stars>1000+
package com.baeldung.persistence.dao;
import com.baeldung.persistence.model.User;
import com.baeldung.persistence.model.UserLocation;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UserLocationRepository extends JpaRepository<UserLocation, Long> {
UserLocation findB... | 119 |
607 | <gh_stars>100-1000
/*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012 <NAME> <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#pragma once
namespace stm32plus {
namespace display {
/**
* Fill a rectangle with the foreground colour
*/
t... | 2,107 |
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 CONTENT_BROWSER_FONT_ACCESS_FONT_ENUMERATION_CACHE_MAC_H_
#define CONTENT_BROWSER_FONT_ACCESS_FONT_ENUMERATION_CACHE_MAC_H_
#include <string>
#i... | 550 |
487 | /*
* tclPort.h --
*
* This header file handles porting issues that occur because
* of differences between systems. It reads in platform specific
* portability files.
*
* Copyright (c) 1994-1995 Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage and redistribution
* of this file,... | 273 |
422 | from urllib import parse
# Create your views here.
from apps.common.config import commonWebConfig
from apps.common.func.WebFunc import *
logger = logging.getLogger("django")
def businessLineModuleCheckPage(request):
context = {}
context["businessLine_module_check"] = "active"
return render(request, "myad... | 2,086 |
1,072 | /*
* Copyright 2016 Freelander
*
* 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 agr... | 2,806 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.