max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
348 | {"nom":"Robecq","circ":"9ème circonscription","dpt":"Pas-de-Calais","inscrits":1081,"abs":447,"votants":634,"blancs":14,"nuls":6,"exp":614,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":164},{"nuance":"FN","nom":"M. <NAME>","voix":163},{"nuance":"LR","nom":"<NAME>","voix":77},{"nuance":"FI","nom":"M. <NAME>","voix":6... | 303 |
347 | <filename>frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/action/ContextMenuPanelPopup.java
package org.ovirt.engine.ui.common.widget.action;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
public class ContextMenuPanelPopup extends Menu... | 335 |
861 | package cn.springcloud.gray.client.switcher;
public interface GraySwitcher {
boolean state();
boolean isEanbleGrayRouting();
public static class DefaultGraySwitcher implements GraySwitcher {
@Override
public boolean state() {
return true;
}
@Override
... | 167 |
435 | {
"alias": "video/648/static-analysis-of-python-extension-modules-using",
"category": "PyCon US 2012",
"copyright_text": "",
"description": "",
"duration": null,
"id": 648,
"language": "eng",
"quality_notes": "",
"recorded": "2012-03-09",
"slug": "static-analysis-of-python-extension-modules-using",
... | 359 |
688 | <reponame>frederikdangel/microservice-kubernetes
package com.ewolff.microservice.order.catalogstub;
import java.util.Arrays;
import org.springframework.context.annotation.Profile;
import org.springframework.hateoas.PagedModel;
import org.springframework.hateoas.PagedModel.PageMetadata;
import org.springframework.http... | 433 |
2,939 | <gh_stars>1000+
#include "lumen/EIR/Conversion/AggregateOpConversions.h"
namespace lumen {
namespace eir {
struct ConsOpConversion : public EIROpConversion<ConsOp> {
using EIROpConversion::EIROpConversion;
LogicalResult matchAndRewrite(
ConsOp op, ArrayRef<Value> operands,
ConversionPatternRe... | 2,400 |
784 | package com.alibaba.nacos.example.spring.boot;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@NacosPropertySource(dataId = "mysql.properties")... | 149 |
764 | <reponame>641589523/token-profile
{
"symbol": "EPARA",
"address": "0x7fc2a3a998E8a80dA7F2962C5A8803b641711e6c",
"overview":{
"en": "EPARA is a digital token issued on the Ethereum network and maintains a 1:1 exchange relationship with Para coins. E-PARA can be used in both ecosystems of Ethereum and Paral... | 539 |
12,278 | // Copyright 2018 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_OBJECTS_ALLOCATION_SITE_INL_H_
#define V8_OBJECTS_ALLOCATION_SITE_INL_H_
#include "src/objects/allocation-site.h"
#include "src/heap/heap-w... | 3,305 |
7,482 | /*
* @brief RTC tick to (a more) Universal Time
* Adds conversion functions to use an RTC that only provides a
* seconds capability to provide "struct tm" support.
*
* @note
* Copyright(C) NXP Semiconductors, 2014
* All rights reserved.
*
* @par
* Software that is described herein is for illustrative purposes... | 2,080 |
363 |
import os
import pytest
from collections import defaultdict
from hubblestack.exceptions import ArgumentValueError
import hubblestack.fdg.process
class TestProcess():
"""
Class used to test the functions in ``process.py``
"""
def test__compare_raises_exception_if_arguments_have_invalid_type(self):
... | 16,002 |
5,220 | /* Capstone testing regression */
/* By <NAME> <<EMAIL>>, 02-2019 */
#include "factory.h"
char *get_detail_arm64(csh *handle, cs_mode mode, cs_insn *ins)
{
cs_arm64 *arm64;
int i;
cs_regs regs_read, regs_write;
uint8_t regs_read_count, regs_write_count;
uint8_t access;
char *result;
result = (char *)malloc(s... | 1,915 |
1,384 | <reponame>efeslab/llvmlite
#ifndef LLVMPY_CORE_H_
#define LLVMPY_CORE_H_
#include "llvm-c/Core.h"
#include <cstring>
#include <cstdlib>
#if defined(_MSC_VER)
#define HAVE_DECLSPEC_DLL
#endif
#if defined(HAVE_DECLSPEC_DLL)
#define API_EXPORT(RTYPE) __declspec(dllexport) RTYPE
#else
#define API_EXPORT(RTY... | 317 |
763 | package org.batfish.dataplane.rib;
import javax.annotation.ParametersAreNonnullByDefault;
import org.batfish.datamodel.AnnotatedRoute;
import org.batfish.datamodel.KernelRoute;
/** RIB for storing {@link KernelRoute}s, which are identified solely by their network. */
@ParametersAreNonnullByDefault
public class Kernel... | 178 |
884 | <reponame>rt112000/CDM<filename>schemaDocuments/core/operationsCommon/Tables/Finance/EInvoice/WorksheetLine/CFDIWithholdingComplInterest_MX.1.0.cdm.json
{
"jsonSchemaSemanticVersion": "1.0.0",
"imports": [
{
"corpusPath": "cdm:/foundations.1.1.cdm.json"
},
{
"corpusPath": "/core/operationsCo... | 2,018 |
424 | <gh_stars>100-1000
import os
import sublime
import sublime_plugin
from ..lib import helpers
from ..lib import omnisharp
class OmniSharpAddFileToProjectEventListener(sublime_plugin.EventListener):
def on_post_save(self, view):
if not helpers.is_csharp(view):
return
omnisharp.get_respo... | 181 |
450 | <reponame>LiuLeif/onnc
//===- IStrStream.h -------------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef ONNC_SUPPORT_INTPUT_STRING_STREAM_H
#d... | 566 |
652 | <gh_stars>100-1000
"""
Tests for the parts of jsonschema related to the :validator:`format` property.
"""
from jsonschema.tests.compat import mock, unittest
from jsonschema import FormatError, ValidationError, FormatChecker
from jsonschema.validators import Draft4Validator
class TestFormatChecker(unittest.TestCase... | 918 |
339 | <filename>shared/binutils.h
#pragma once
#include <windows.h>
namespace Afx {
namespace BinUtils {
struct MemRange
{
static MemRange FromSize(DWORD address, DWORD size);
// inclusive
DWORD Start;
// exclusive
DWORD End;
MemRange();
MemRange(DWORD start, DWORD end);
bool IsEmpty(void) ... | 667 |
8,054 | #ifndef MARKDOWNTABLEHELPER_H
#define MARKDOWNTABLEHELPER_H
#include <QObject>
#include "markdowntable.h"
class QTimer;
namespace vte
{
class VTextEditor;
}
namespace vnotex
{
class MarkdownTableHelper : public QObject
{
Q_OBJECT
public:
MarkdownTableHelper(vte::VTextEditor *p_edito... | 410 |
884 | {
"manifestName": "WorksheetLine",
"entities": [
{
"type": "LocalEntity",
"entityName": "RetailLabelChangeJournalTrans",
"entityPath": "RetailLabelChangeJournalTrans.1.0.cdm.json/RetailLabelChangeJournalTrans"
}
],
"jsonSchemaSemanticVersion": "1.0.0",
"relationships": [
{
... | 995 |
711 | <reponame>jingetiema2100/MicroCommunity
package com.java110.api.bmo.smallWeChat.impl;
import com.alibaba.fastjson.JSONObject;
import com.java110.api.bmo.ApiBaseBMO;
import com.java110.api.bmo.smallWeChat.ISmallWechatAttrBMO;
import com.java110.core.context.DataFlowContext;
import com.java110.intf.store.ISmallWechatAtt... | 1,085 |
3,508 | <gh_stars>1000+
package com.fishercoder.solutions;
import java.util.ArrayList;
import java.util.List;
/**
* 1417. Reformat The String
*
* Given alphanumeric string s. (Alphanumeric string is a string consisting of lowercase English letters and digits).
* You have to find a permutation of the string where no lette... | 1,368 |
975 | /* Copyright (C) 2012 <NAME> <<EMAIL>>
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#include "utils/test_results.h"
#include "utils/test_reporter.h"
#include "insn/tests.h"
#include <simd... | 1,931 |
471 | <reponame>madanagopaltcomcast/pxCore<gh_stars>100-1000
/////////////////////////////////////////////////////////////////////////////
// Name: wx/msw/calctrl.h
// Purpose: wxCalendarCtrl control implementation for MSW
// Author: <NAME>
// Copyright: (C) 2008 <NAME> <<EMAIL>>
// Licence: wxWindows l... | 1,387 |
1,160 | <gh_stars>1000+
{
"op_stroff" : {
"+example" :
"""
ins = ida_ua.insn_t()
if ida_ua.decode_insn(ins, some_address):
path_len = 1
path = ida_pro.tid_array(path_len)
path[0] = ida_struct.get_struc_id("my_stucture_t")
ida_bytes.op_stroff(ins, 0, path.cast(), path_len, 0)
"""
}
}
| 163 |
32,544 | <reponame>DBatOWL/tutorials<filename>core-java-modules/core-java-lang-4/src/main/java/com/baeldung/javadocmemberreference/Person.java
package com.baeldung.javadocmemberreference;
import com.baeldung.vehicle.Car;
public class Person {
Person() {
}
/**
* Also, check the {@link #move() Move} method f... | 395 |
432 | package com.hccake.extend.pay.ali.enums;
import cn.hutool.core.util.StrUtil;
import com.fasterxml.jackson.annotation.JsonCreator;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.var;
/**
* 交易状态
*/
@Getter
@AllArgsConstructor
public enum TradeStatus {
/**
* 成功
*/
SUCCESS("TRADE_SUCCESS")... | 437 |
766 | """ Utils """
from typing import Dict
from typing import Optional
from typing import Sequence
from typing import Tuple
from typing import Union
import torch
from lightautoml.automl.base import AutoML
from lightautoml.dataset.roles import ColumnRole
from lightautoml.dataset.roles import TargetRole
from lightautoml.da... | 1,206 |
571 | <reponame>ufora/ufora<gh_stars>100-1000
# Copyright 2015 Ufora 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 r... | 404 |
1,233 | package com.github.mustachejava.reflect;
import java.util.List;
/**
* Simple specialization of Predicate
*/
public interface Guard {
boolean apply(List<Object> input);
}
| 51 |
348 | {"nom":"Baudres","circ":"2ème circonscription","dpt":"Indre","inscrits":369,"abs":170,"votants":199,"blancs":19,"nuls":11,"exp":169,"res":[{"nuance":"LR","nom":"<NAME>","voix":93},{"nuance":"MDM","nom":"Mme <NAME>","voix":76}]} | 91 |
965 | CObList list;
CAge* pa1;
CAge* pa2;
list.AddHead(pa1 = new CAge(21));
list.AddHead(pa2 = new CAge(40)); // List now contains (40, 21).
ASSERT(*(CAge*)list.RemoveTail() == CAge(21)); // Old tail
ASSERT(*(CAge*)list.GetTail() == CAge(40)); // New tail
delete pa1;
delete pa2; // Clean up memory. | 128 |
892 | <reponame>github/advisory-database
{
"schema_version": "1.2.0",
"id": "GHSA-9qv9-388v-rqg7",
"modified": "2022-05-13T01:15:24Z",
"published": "2022-05-13T01:15:24Z",
"aliases": [
"CVE-2011-0664"
],
"details": "Microsoft .NET Framework 2.0 SP1 and SP2, 3.5 Gold and SP1, 3.5.1, and 4.0, and Silverlight ... | 525 |
3,434 | <filename>jetcache-core/src/main/java/com/alicp/jetcache/support/JavaValueEncoder.java
package com.alicp.jetcache.support;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.lang.ref.WeakReference;
/**
* Created on 2016/10/4.
*
* @author <a href="mailto... | 931 |
363 | /* Copyright 2012 predic8 GmbH, www.predic8.com
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 agree... | 499 |
488 | <filename>projects/SATIrE/src/grato/GTextTransformation.h
// Copyright 2005,2006,2007 <NAME>, <NAME>
// $Id: GTextTransformation.h,v 1.2 2007-03-08 15:36:49 markus Exp $
// Author: <NAME>
#ifndef GTEXTTRANSFORM_H
#define GTEXTTRANSFORM_H
#include "GTextBackEnd.h"
class GTextTransformation : public GTextBackEnd {
pu... | 321 |
775 | <gh_stars>100-1000
/* Mode: -*- C++ -*- */
// vim: set ai ts=4 sw=4 expandtab
/* @BC
* Copyright (c) 1993
* by Microelectronics and Computer Technology Corporation (MCC)
* All Rights Reserved
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any ... | 4,173 |
499 | #pragma pack(push, 1)
struct LocateObjectRequest
{
short has_response;
short type;
long key;
short mode;
char name[1];
};
struct LocateObjectResponse
{
short has_response;
short success;
short error_code;
long key;
};
struct FreeLockRequest
{
short has_response;
short type;
long key;
};
struct FreeLockR... | 1,386 |
326 | <reponame>mbrenman/MBSimpleLoadingIndicator
//
// Podfile_Bridge_Header.h
//
//
// Created by <NAME> on 1/8/15.
//
//
#ifndef _Podfile_Bridge_Header_h
#define _Podfile_Bridge_Header_h
#import "MBLoadingIndicator.h"
#endif
| 98 |
1,467 | <filename>libs/common/array_size.hpp<gh_stars>1000+
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_COMMON_ARRAY_SIZE_HPP
#define IROHA_COMMON_ARRAY_SIZE_HPP
#ifdef IROHA_ARRAY_SIZE
#error IROHA_ARRAY_SIZE already defined.
#endif // IROHA_ARRAY_SIZE
... | 239 |
1,139 | <reponame>ghiloufibelgacem/jornaldev<filename>Spring/Spring-PropertySource-Annotation/src/main/java/com/journaldev/spring/DBConfiguration.java
package com.journaldev.spring;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframew... | 575 |
372 | /*
*
* (c) Copyright 1989 OPEN SOFTWARE FOUNDATION, INC.
* (c) Copyright 1989 HEWLETT-PACKARD COMPANY
* (c) Copyright 1989 DIGITAL EQUIPMENT CORPORATION
* To anyone who acknowledges that this file is provided "AS IS"
* without any express or implied warranty:
* permission to use, copy, modify, a... | 542 |
2,151 | <reponame>zipated/src<filename>chromeos/system/factory_ping_embargo_check.h<gh_stars>1000+
// Copyright 2018 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_SYSTEM_FACTORY_PING_EMBARGO_CHECK_H_
#define C... | 447 |
648 | {"resourceType":"DataElement","id":"AuditEvent.entity.detail.type","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/AuditEvent.entity.detail.type","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"id":"AuditEvent.entity.detail.type","path":"Aud... | 185 |
1,875 | /*
* Copyright 2017 <NAME>.
*
* 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 ... | 360 |
442 | #include <Bindings/obe/Events/Game/Game.hpp>
#include <Engine/Engine.hpp>
#include <Bindings/Config.hpp>
namespace obe::Events::Game::Bindings
{
void LoadClassEnd(sol::state_view state)
{
sol::table GameNamespace = state["obe"]["Events"]["Game"].get<sol::table>();
sol::usertype<obe::Events::G... | 783 |
1,150 | # Copyright (c) 2019 PaddlePaddle 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 applic... | 523 |
399 | <reponame>kosua20/Rendu
#include "system/System.hpp"
#include <nfd/nfd.h>
#include <GLFW/glfw3.h>
#ifndef _WIN32
# include <sys/stat.h>
#else
# undef APIENTRY
# include <Windows.h>
#endif
// On Windows, we can notify both AMD and Nvidia drivers that we prefer discrete GPUs.
#ifdef _WIN32
extern "C" {
// See https... | 1,228 |
18,621 | <reponame>delorenzosoftware/superset<filename>superset/common/query_context_factory.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 th... | 1,233 |
713 | <reponame>blueblueblue/infinispan
package org.infinispan.filter;
import org.infinispan.metadata.Metadata;
/**
* This interface is an optimization that can be used when a filter and converter are most efficiently used as the same
* object composing the filtering and conversion in the same method invocation.
* @auth... | 289 |
583 | #ifndef GRADIENTMATRIX_H
#define GRADIENTMATRIX_H
#include <QtGui>
class GradientMatrix : public QMatrix
{
public:
double height, width;
};
#endif // GRADIENTMATRIX_H
| 73 |
1,144 | <filename>backend/de.metas.adempiere.adempiere/base/src/main/java/org/compiere/apps/search/IUserQueryRestriction.java
package org.compiere.apps.search;
import org.compiere.model.MQuery.Operator;
import com.google.common.collect.ImmutableMap;
/*
* #%L
* de.metas.adempiere.adempiere.base
* %%
* Copyright (C) 2016 ... | 785 |
452 | <reponame>the-real-mrcs/firebase-admin-java
/*
* Copyright 2017 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
*
* Unl... | 535 |
3,402 | <reponame>ApacheSourceCode/kylin
/*
* 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, Ver... | 823 |
2,847 | from tests.testmodels import IntFields
from tortoise import Tortoise
from tortoise.contrib import test
from tortoise.expressions import Case, F, Q, When
from tortoise.functions import Coalesce
class TestCaseWhen(test.TestCase):
async def setUp(self):
self.intfields = [await IntFields.create(intnum=val) fo... | 3,020 |
593 | package org.ananas.runner.kernel.paginate;
import com.google.common.base.Preconditions;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.Map;
import org.ananas.runner.kernel.common.VariableRender;
import org.ananas.runner.kernel.errors... | 1,569 |
2,236 | //
// TABComponentLayer+TABDropLayer.h
// AnimatedDemo
//
// Created by tigerAndBull on 2020/4/19.
// Copyright © 2020 tigerAndBull. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TABComponentLayer.h"
NS_ASSUME_NONNULL_BEGIN
@interface TABComponentLayer (TABDropAnimation)
/**
* 该动画元素在豆瓣动画队列中的下标
*/
@... | 383 |
328 | <filename>multi_video_reid.py
# coding=utf-8
# multi-camera reid
# given sync camera group (will use homography to check spatial)
# and consecutive camera group
# for reid, use hungarian algo.
import argparse
import cv2
import json
import os
import numpy as np
from tqdm import tqdm
from sklearn.metrics.pairwise import... | 9,315 |
2,519 | // This file is made available under Elastic License 2.0.
// This file is based on code available under the Apache license here:
// https://github.com/apache/incubator-doris/blob/master/fe/fe-core/src/main/java/org/apache/doris/persist/PrivInfo.java
// Licensed to the Apache Software Foundation (ASF) under one
// or... | 2,380 |
594 | /* PR tree-optimization/19828 */
typedef __SIZE_TYPE__ size_t;
extern size_t strlen (const char *s);
extern int strncmp (const char *s1, const char *s2, size_t n);
extern void abort (void);
const char *a[16] = { "a", "bc", "de", "fgh" };
int
foo (char *x, const char *y, size_t n)
{
size_t i, j = 0;
for (i = 0; i ... | 285 |
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.
{
'targets': [
{
'target_name': 'app',
'dependencies': [
'<(EXTERNS_GYP):chrome_extensions',
'store'
],
'include... | 931 |
777 | <filename>chrome/browser/permissions/grouped_permission_infobar_delegate_android.h
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_PERMISSIONS_GROUPED_PERMISSION_INFOBAR_DELEGATE_... | 934 |
348 | {"nom":"Poggio-Mezzana","circ":"2ème circonscription","dpt":"Haute-Corse","inscrits":457,"abs":232,"votants":225,"blancs":15,"nuls":5,"exp":205,"res":[{"nuance":"REG","nom":"<NAME>","voix":138},{"nuance":"REM","nom":"<NAME>","voix":67}]} | 95 |
521 | <filename>third_party/virtualbox/src/VBox/Frontends/VirtualBox/shaders/mainOverlayNoDiscard.c<gh_stars>100-1000
/* $Id: mainOverlayNoDiscard.c $ */
#extension GL_ARB_texture_rectangle : enable
uniform sampler2DRect uDstTex;
uniform vec4 uDstClr;
void vboxCConv();
void main(void)
{
vec4 dstClr = texture2DRect(uDstTe... | 297 |
484 | //
// TUITextRenderer+Accessibility.h
// TwUI
//
// Created by <NAME> on 10/27/11.
// Copyright (c) 2011 Maybe Apps, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TUITextRenderer.h"
@interface TUITextRenderer (Accessibility)
@end
| 104 |
348 | <reponame>Amit0617/OpenMS
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
"version": "0.2.0",
"configurations": []
}
| 60 |
640 | <reponame>ahjelm/z88dk<gh_stars>100-1000
/*
* Enterprise 128 Mandelbrot demo
*
* Example on how to interface to EXOS with z88dk
* this program initializes a video channel and
* communicates to it via the ESCape sequences.
*
* To build:
* zcc +enterprise -lm -create-app mandel.c
*/
#include <stdio.h>
#in... | 772 |
1,602 | <reponame>jhh67/chapel
/*
This file is provided under a dual BSD/GPLv2 license. When using or
redistributing this file, you may do so under either license.
GPL LICENSE SUMMARY
Copyright(c) 2015 Intel Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of... | 2,111 |
488 | <reponame>NouamaneTazi/conv-emotion
import sys
import random
import logging
import numpy as np
import torch
import pickle
def set_seed(seed):
"""Sets random seed everywhere."""
torch.manual_seed(seed)
random.seed(seed)
np.random.seed(seed)
def get_logger(level=logging.INFO):
log = logging.getLo... | 338 |
464 | package dev.fiki.forgehax.api.events.render;
import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.gui.screen.inventory.ContainerScreen;
public class GuiContainerRenderEvent extends GuiRenderEvent {
GuiContainerRenderEvent(Screen gui, MatrixStack st... | 242 |
715 | <reponame>kihyuks/objax
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 1,602 |
790 | from __future__ import unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Place(models.Model):
name = models.CharField(max_length=50)
address = models.CharField(max_length=80)
def __str__(self):
return "%... | 497 |
1,016 | /*
* Copyright 2021 Red Hat, Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.o... | 5,815 |
1,799 | <gh_stars>1000+
// Copyright (c) 2019 PaddlePaddle 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
//
//... | 22,634 |
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.datalakestore.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.co... | 678 |
348 | <filename>docs/data/leg-t2/037/03704142.json<gh_stars>100-1000
{"nom":"Maillé","circ":"4ème circonscription","dpt":"Indre-et-Loire","inscrits":482,"abs":265,"votants":217,"blancs":20,"nuls":3,"exp":194,"res":[{"nuance":"REM","nom":"<NAME>","voix":109},{"nuance":"LR","nom":"<NAME>","voix":85}]} | 122 |
310 | <filename>gear/hardware/d/das-keyboard-4.json<gh_stars>100-1000
{
"name": "Das Keyboard 4",
"description": "A mechanical keyboard.",
"url": "https://www.daskeyboard.com/daskeyboard-4-ultimate/"
}
| 79 |
416 | package org.springframework.roo.classpath;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;
import org.springframework.roo.metadata.MetadataIdentificationUtils;
import org.springframework.roo.model.JavaType;
import org.springframework.roo.project.LogicalPath;
import org.springfram... | 2,169 |
829 | <filename>library/src/main/java/uk/co/alt236/bluetoothlelib/device/beacon/BeaconDevice.java
package uk.co.alt236.bluetoothlelib.device.beacon;
/**
*
*/
public interface BeaconDevice {
BeaconType getBeaconType();
}
| 82 |
6,837 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# thumbor imaging service
# https://github.com/thumbor/thumbor/wiki
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 globo.com <EMAIL>
from os.path import exists
from subprocess import PIPE, Popen
from thumbor.optimizer... | 1,023 |
4,268 | #!/usr/bin/env python
#
# Compatibility stub which now executes JS-based tooling.
#
# Should be Python2 and Python3 compatible.
import os
import sys
import time
import subprocess
import optparse
import yaml
import tempfile
def detect_nodejs():
try:
cmd = [ 'nodejs', '-e', 'console.log("test")' ]
... | 5,010 |
1,155 | //-----------------------------------------------------------------------------
// boost-libs variant/test/variant_comparison_test.cpp source file
// See http://www.boost.org for updates, documentation, and revision history.
//-----------------------------------------------------------------------------
//
// Copyright... | 1,913 |
2,338 | <reponame>mkinsner/llvm
//===- Builder.cpp - Builder definitions ----------------------------------===//
//
// 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
//
//===---... | 922 |
691 | /*
pbrt source code is Copyright(c) 1998-2016
<NAME>, <NAME>, and <NAME>.
This file is part of pbrt.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Redistributions of sour... | 916 |
1,264 | <gh_stars>1000+
/*
* Copyright 2018-2021 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/LICENSE-2.0
*
* Unle... | 833 |
724 | <filename>vega/algorithms/nas/fis/autogate_s1_trainer_callback.py<gh_stars>100-1000
# -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distribu... | 786 |
515 | package com.bj58.argo.thirdparty.jetty;
import java.nio.ByteBuffer;
import java.util.AbstractMap;
import java.util.Collections;
import java.util.Comparator;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
/* ------------------------------------------------------------ */
/** Map implementation O... | 2,257 |
342 | package sentinelgroup.io.sentinel.ui.fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import sentinelgroup.io.sentinel.R;
/**
* A simple {@link Fragment} subclass.
* Use the {@link VpnMapFragment... | 435 |
575 | // 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.
#include "third_party/blink/renderer/platform/scheduler/main_thread/deadline_task_runner.h"
#include <memory>
#include "base/bind.h"
#include "base/test... | 1,319 |
312 | #include <occa/internal/bin/occa.hpp>
int main(const int argc, const char **argv) {
occa::bin::buildOccaCommand().run(argc, argv);
return 0;
}
| 61 |
696 | /*
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.collect;
import java.io.File;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.lang.reflect.InvocationTargetException;
import... | 4,361 |
6,717 | <reponame>crossmob/WinObjC
//******************************************************************************
//
// Copyright (c) 2016 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IM... | 570 |
839 | /**
* 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 m... | 5,237 |
1,600 | <gh_stars>1000+
../../../../chapter-04/recipe-02/cxx-example/sum_integers.hpp | 33 |
1,284 | <reponame>javalover123/akhq
package org.akhq.modules.schemaregistry;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.confluent.kafka.schemaregistry.json.JsonSchema;
import org.akhq.configs.SchemaRegistryType;
import org.akhq.utils.Album;
import org.akhq.utils.ResourceTestUtil;
import org.json.JSONObject;... | 785 |
344 | <reponame>cclauss/archai
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
""" Script to prepare food101 dataset for pytorch dataloader.
This script assumes that one has downloaded and extracted the full food101 dataset from ETHZ.
Invoke the script as $ python food101.py --rootdir /path/t... | 1,209 |
339 | <gh_stars>100-1000
'''
(c) 2011, 2012 Georgia Tech Research Corporation
This source code is released under the New BSD license. Please see
http://wiki.quantsoftware.org/index.php?title=QSTK_License
for license details.
Created on Jan 1, 2011
@author:<NAME>
@contact: <EMAIL>
@summary: Contains tutorial for backtester... | 5,219 |
392 | <reponame>logzio/apollo
package io.logz.apollo.helpers;
import io.logz.apollo.ApolloApplication;
import io.logz.apollo.clients.ApolloTestAdminClient;
import io.logz.apollo.clients.ApolloTestClient;
import io.logz.apollo.configuration.ApiConfiguration;
import io.logz.apollo.configuration.ApolloConfiguration;
import io.... | 2,302 |
1,350 | <reponame>Shashi-rk/azure-sdk-for-java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.batchai.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jac... | 450 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.