max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
3,084 | <reponame>ixjf/Windows-driver-samples
/*++
Copyright (c) 2005 Microsoft Corporation
All rights reserved.
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTIC... | 861 |
23,325 | /*
* Copyright (C) 2021 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 1,914 |
335 | <gh_stars>100-1000
{
"word": "Casualty",
"definitions": [
"A person killed or injured in a war or accident.",
"A person or thing badly affected by an event or situation.",
"The department of a hospital providing immediate treatment for emergency cases.",
"(chiefly in insurance) a... | 134 |
1,127 | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "gtest/gtest.h"
#include "ngraph/ngraph.hpp"
#include "ngraph/op/util/attr_types.hpp"
#include "ngraph/opsets/opset7.hpp"
#include "util/visitor.hpp"
using namespace std;
using namespace ngraph;
using ngraph::test::NodeBui... | 315 |
12,711 | {"type":"tag","loc":{"start":{"line":1,"column":1},"filename":"/cases/attrs.unescaped.pug","end":{"line":1,"column":7}},"val":"script"}
{"type":"start-attributes","loc":{"start":{"line":1,"column":7},"filename":"/cases/attrs.unescaped.pug","end":{"line":1,"column":8}}}
{"type":"attribute","loc":{"start":{"line":1,"colu... | 733 |
626 | <gh_stars>100-1000
package org.jsmart.zerocode.core.domain;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Validator {
private final String field;
... | 375 |
372 | /* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
* -*- mode: c, c-basic-offset: 4 -*- */
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... | 3,458 |
629 | <gh_stars>100-1000
/*
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "buildorders/base.h"
#include "fivepool.h"
#include "gameutils/game.h"
#include "modules.h"
#include "player.... | 2,335 |
742 | /*------------------------------------
///\ Plywood C++ Framework
\\\/ https://plywood.arc80.com/
------------------------------------*/
#pragma once
#include <ply-math/Core.h>
#include <ply-math/Vector.h>
namespace ply {
// You are expected to pass in a value between -1 and 1
// It maps the value linearly from... | 310 |
322 | ///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (C) 2021, LAAS-CNRS, University of Edinburgh
// Copyright note valid unless otherwise stated in individual files.
// All rights reserved.
//////////////////////////////////////////////////////////////... | 1,765 |
587 | /*
* Copyright 2020 Crown Copyright
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 1,586 |
965 | <gh_stars>100-1000
#ifndef GTKMM_EXAMPLE_Window_H
#define GTKMM_EXAMPLE_Window_H
#include <gtkmm/button.h>
#include <gtkmm/window.h>
class Window : public Gtk::Window
{
public:
Window();
virtual ~Window();
protected:
//Signal handlers:
void on_button_clicked();
//Member widgets:
Gtk::Button m_button;
}... | 145 |
515 | <reponame>luiz158/caelum-stella<filename>stella-faces/src/main/java/br/com/caelum/stella/faces/validation/StellaCPFValidatorTagHandler.java
package br.com.caelum.stella.faces.validation;
import javax.faces.validator.Validator;
import com.sun.facelets.FaceletContext;
import com.sun.facelets.tag.TagAttribute;
import co... | 459 |
494 | <filename>astyanax-core/src/main/java/com/netflix/astyanax/util/BlockingConcurrentWindowCounter.java<gh_stars>100-1000
/*******************************************************************************
* Copyright 2011 Netflix
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this... | 766 |
4,054 | <reponame>Anlon-Burke/vespa<gh_stars>1000+
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.application;
import org.w3c.dom.Document;
import javax.xml.transform.TransformerException;
import java.io.IOException;
/**
* Performs pre-proce... | 154 |
2,606 | <filename>src/main/java/weixin/popular/bean/datacube/getcardmembercardinfo/package-info.java
/**
* 微信卡券-卡券管理-统计卡券数据-拉取会员卡概况数据接口
* @author Moyq5
*
*/
package weixin.popular.bean.datacube.getcardmembercardinfo; | 140 |
1,350 | <filename>sdk/resourcemanager/azure-resourcemanager-monitor/src/main/java/com/azure/resourcemanager/monitor/fluent/PrivateLinkScopesClient.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.r... | 6,418 |
450 | <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
... | 5,907 |
517 | <reponame>kant/gratipay.com
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from gratipay.testing import BrowserHarness
class Tests(BrowserHarness):
def check(self, status, has_request_button, has_check_button):
self.make_participant('alice', cl... | 501 |
345 | import unittest
from programy.clients.events.console.config import ConsoleConfiguration
from programy.config.brain.securities import BrainSecuritiesConfiguration
from programy.config.file.yaml_file import YamlConfigurationFile
from programytest.config.brain.test_security import BrainSecurityConfigurationTests
class ... | 666 |
1,168 | <reponame>wcalandro/kythe<filename>kythe/cxx/common/file_vname_generator.h
/*
* Copyright 2014 The Kythe 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
*
... | 868 |
571 | <reponame>taellinglin/butano
/*
* Copyright (c) 2020-2021 <NAME> <EMAIL>
* zlib License, see LICENSE file.
*/
#ifndef BN_SPRITE_ACTIONS_H
#define BN_SPRITE_ACTIONS_H
/**
* @file
* bn::sprite_ptr actions header file.
*
* @ingroup sprite
* @ingroup action
*/
#include "bn_sprite_ptr.h"
#include "bn_fixed_point... | 25,868 |
2,151 | <reponame>zipated/src
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... | 776 |
407 | <reponame>iuskye/SREWorks
package com.alibaba.tesla.authproxy.service.impl;
import com.alibaba.tesla.authproxy.Constants;
import com.alibaba.tesla.authproxy.lib.exceptions.AuthProxyThirdPartyError;
import com.alibaba.tesla.authproxy.lib.exceptions.PrivateSmsSignatureForbidden;
import com.alibaba.tesla.authproxy.lib.ex... | 4,285 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-rhm9-p9w5-fwm7",
"modified": "2022-04-22T18:32:23Z",
"published": "2021-02-10T01:32:27Z",
"aliases": [
"CVE-2020-36242"
],
"summary": "Symmetrically encrypting large values can lead to integer overflow",
"details": "cryptography is a package designed to expos... | 1,255 |
1,829 | <reponame>useaname/thinking-in-spring-boot-samples
/*
* 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 Apach... | 1,066 |
1,337 | /*
* Copyright (c) 2008-2017 Haulmont.
*
* 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... | 3,848 |
1,669 | package me.ele.lancet.plugin;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Jude on 4/4/17.
*/
public class ClassFileUtil {
public static final String MetaDir = (new File("").getAbsolutePath().contains("sample-test")?"":"sample-test/") ... | 1,333 |
308 | import flask
from tests.utils import assert_span_http_status_code
from . import BaseFlaskTestCase
class FlaskErrorhandlerTestCase(BaseFlaskTestCase):
def test_default_404_handler(self):
"""
When making a 404 request
And no user defined error handler is defined
We crea... | 5,545 |
10,225 | package io.quarkus.vault.runtime;
import static io.quarkus.vault.runtime.StringHelper.bytesToString;
import static io.quarkus.vault.runtime.StringHelper.stringToBytes;
import static java.util.Base64.getDecoder;
import static java.util.Base64.getEncoder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize... | 488 |
706 | # Copyright 2021 The TensorFlow 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 agreed to ... | 3,045 |
947 | /**********************************************************************
* Copyright (c) 2016 <NAME> *
* Distributed under the MIT software license, see the accompanying *
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
****************************************... | 391 |
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.
#include "components/site_isolation/pref_names.h"
namespace site_isolation {
namespace prefs {
// A list of origins that were heuristically determined t... | 329 |
452 | package pl.altkom.asc.lab.micronaut.poc.auth;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.UUID;
import io.micronaut.data.annotation.Id;
import io.micronaut.data.annotation.MappedEntity;
@MappedEntity
record InsuranceAgent(
@Id UUID id,
String login,
Str... | 292 |
615 | /**
* @file query_lm.cpp
* @author <NAME>
*/
#include <iostream>
#include "meta/analyzers/tokenizers/icu_tokenizer.h"
#include "meta/analyzers/tokenizers/whitespace_tokenizer.h"
#include "meta/lm/language_model.h"
#include "meta/lm/mph_language_model.h"
#include "meta/logging/logger.h"
#include "meta/util/algorith... | 1,546 |
1,392 | <reponame>eanknd/saleor
import pytest
from django.utils import timezone
from freezegun import freeze_time
from .....page.models import Page
from .....tests.utils import dummy_editorjs
from ....tests.utils import get_graphql_content
QUERY_PAGE_WITH_SORT = """
query ($sort_by: PageSortingInput!) {
pages(fir... | 1,369 |
2,151 | // 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.
#ifndef IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_CHROME_ACTIVITY_ITEM_THUMBNAIL_GENERATOR_H_
#define IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_CHROME_ACTIVIT... | 303 |
7,886 | <filename>litho-it/src/test/resources/processor/sections/FullGroupSection.java
package com.facebook.litho.sections.processor.integration.resources;
import android.widget.TextView;
import androidx.annotation.AttrRes;
import androidx.annotation.Nullable;
import androidx.annotation.StringRes;
import androidx.annotation.V... | 7,510 |
1,900 | /*
* Copyright Terracotta, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 1,961 |
878 | <reponame>lfkdsk/JustWeEngine
package com.lfk.justweengine.utils.blueTooth;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.... | 4,238 |
421 | <gh_stars>100-1000
// System::Windows::Forms::DataGridTableStyle.ResetHeaderBackColor
/*
The following example demonstrates the 'ResetHeaderBackColor' method of 'DataGridTableStyle' class.
It adds a 'DataGrid' and two buttons to a form. Then it creates a 'DataGridTableStyle' and maps it to the table of
'DataGrid'... | 1,792 |
372 | /*
* 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 distributed under t... | 2,585 |
4,170 | <filename>docs/codesnippets/194_top_x_of_user.py
from itertools import islice
from math import ceil
from instaloader import Instaloader, Profile
PROFILE = ... # profile to download from
X_percentage = 10 # percentage of posts that should be downloaded
L = Instaloader()
profile = Profile.from_username(L.co... | 263 |
546 | <reponame>you-ri/LiliumToonGraph<filename>Packages/jp.lilium.toongraph/package.json
{
"name": "jp.lilium.toongraph",
"version": "0.5.0-preview.5",
"unity": "2020.2",
"author": "You-Ri",
"displayName": "Lilium ToonGraph",
"dependencies": {
"com.unity.render-pipelines.universal": "10.3.1"
},
"descript... | 157 |
1,840 | /**
* Copyright Pravega 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 agreed to... | 1,502 |
2,816 | <reponame>AldoMyrtaj/duckdb
//===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/parser/parsed_data/parse_info.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/common/comm... | 142 |
849 | package milkman.ui.plugin;
import java.util.List;
/**
* this is an interface that can be used in request- and response-aspect-editors.
* If any of those implement this interface, a list of registered contentTypePlugins will be
* injected before doing anything else with those editors.
*/
public interface ContentTypeAw... | 104 |
980 | <reponame>HeeroYui/jcodec
package org.jcodec.containers.mp4.boxes;
import java.nio.ByteBuffer;
import org.jcodec.common.io.NIOUtils;
import org.jcodec.platform.Platform;
/**
* This class is part of JCodec ( www.jcodec.org ) This software is distributed
* under FreeBSD License
*
* @author The JCodec project
*
... | 488 |
687 | <filename>core/src/test/java/io/kestra/core/runners/WorkerTest.java<gh_stars>100-1000
package io.kestra.core.runners;
import com.google.common.collect.ImmutableMap;
import io.kestra.core.models.executions.LogEntry;
import io.micronaut.context.ApplicationContext;
import io.micronaut.test.extensions.junit5.annotation.Mi... | 2,170 |
854 | __________________________________________________________________________________________________
sample 120 ms submission
static const auto speedup = []()
{
std::ios::sync_with_stdio(false);
std::cin.tie(NULL);
return 0;
}();
class TrieNode
{
public:
int num;
vector<TrieNode*> next;
TrieNode... | 4,054 |
2,347 | <gh_stars>1000+
{
"$schema": "node_modules/ng-packagr/ng-package.schema.json",
"dest": "build",
"lib": {
"entryFile": "src/index.ts",
"umdModuleIds": {
"@sentry/browser": "Sentry",
"@sentry/utils": "Sentry.util"
}
},
"whitelistedNonPeerDependencies": ["@sentry/browser", "@sentry/utils"... | 174 |
416 | /*
* xlibc/stdio/fflush.c
*/
#include <errno.h>
#include <stdio.h>
int fflush(FILE * f)
{
if (!f)
return EINVAL;
if(!f->write)
return EINVAL;
return __stdio_write_flush(f);
}
| 102 |
502 | <reponame>jackx22/fixflow
/**
* Copyright 1996-2013 Founder International Co.,Ltd.
*
* 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/LICEN... | 1,919 |
6,199 | <reponame>eddiejames/GameNetworkingSockets
//========= Copyright Valve LLC, All rights reserved. ========================
#include "crypto.h"
#include "crypto_25519.h"
#include <tier0/dbg.h>
#ifdef STEAMNETWORKINGSOCKETS_CRYPTO_25519_OPENSSL
#include <openssl/evp.h>
#if OPENSSL_VERSION_NUMBER < 0x10101000
// https:/... | 2,379 |
3,603 | <gh_stars>1000+
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, softw... | 1,023 |
365 | <filename>dhash/dhblock_keyhash_srv.h
#include <dhblock_replicated_srv.h>
class dhblock_keyhash_srv : public dhblock_replicated_srv
{
void real_store (chordID key, str od, str nd, u_int32_t exp, cb_dhstat cb);
void real_repair (blockID key, ptr<location> me, u_int32_t *myaux, ptr<location> them, u_int32_t *theirau... | 253 |
318 | // __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may not use this f... | 3,586 |
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.
#include "chrome/browser/android/profile_key_util.h"
#include "chrome/browser/android/profile_key_startup_accessor.h"
#include "chrome/browser/profiles/p... | 253 |
1,236 | /***************************************************************************
*
* Copyright (c) 2014 Baidu, 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
*
... | 533 |
2,151 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_SOCKET_SSL_CLIENT_SOCKET_H_
#define NET_SOCKET_SSL_CLIENT_SOCKET_H_
#include <stdint.h>
#include <string>
#include <vector>
#include "b... | 1,722 |
407 | <gh_stars>100-1000
package com.alibaba.tesla.appmanager.server.repository;
import com.alibaba.tesla.appmanager.server.repository.condition.ProductReleaseAppRelQueryCondition;
import com.alibaba.tesla.appmanager.server.repository.domain.ProductReleaseAppRelDO;
import java.util.List;
public interface ProductReleaseApp... | 222 |
310 | {
"name": "rikaikun",
"description": "A Chrome extension for translating Japanese.",
"url": "https://chrome.google.com/webstore/detail/rikaikun/jipdnfibhldikgcjhfnomkfpcebammhp?hl=en"
} | 73 |
2,236 | #import <UIKit/UIKit.h>
#import "BaseCollectionCell.h"
NS_ASSUME_NONNULL_BEGIN
@interface ImageCollectionViewCell : BaseCollectionCell
@property (nonatomic, strong) UIImageView *imgV;
@end
NS_ASSUME_NONNULL_END
| 80 |
348 | <gh_stars>100-1000
{"nom":"Sainte-Agathe-d'Aliermont","dpt":"Seine-Maritime","inscrits":254,"abs":65,"votants":189,"blancs":11,"nuls":3,"exp":175,"res":[{"panneau":"2","voix":126},{"panneau":"1","voix":49}]} | 88 |
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 ... | 4,049 |
14,668 | // 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 <list>
#include "chrome/browser/ui/views/payments/payment_request_browsertest_base.h"
#include "chrome/browser/ui/views/payments/payment_request... | 546 |
654 | {
"manifest_version": 2,
"name": "Show me the React!",
"short_name": "See React!",
"description": "Highlight React components on the page.",
"version": "1.1",
"icons": {
"600": "images/react.png",
"128": "images/react-128.png",
"112": "images/react-112.png",
"48": "images/react-48.png",
... | 284 |
335 | {
"word": "Sociology",
"definitions": [
"The study of the development, structure, and functioning of human society."
],
"parts-of-speech": "Noun"
} | 67 |
17,104 | <reponame>jonetomtom/mars
#include "boost/utility/result_of.hpp"
#include "comm\platform_comm.h"
#include "runtime2cs.h"
#include "comm\xlogger\xlogger.h"
#include "runtime_utils.h"
namespace mars {
using namespace Platform;
using namespace std;
//static Runtime2Cs_Comm^ Singleton();
Runtime2C... | 374 |
449 | #ifndef GEEF_OID_H
#define GEEF_OID_H
#include "erl_nif.h"
#include <git2.h>
ERL_NIF_TERM geef_oid_fmt(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]);
ERL_NIF_TERM geef_oid_parse(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]);
int geef_oid_bin(ErlNifBinary *bin, const git_oid *id);
#endif
| 161 |
45,293 | package test;
public @interface AnnotationWithField {
String text();
int ANSWER = 42;
}
| 35 |
5,954 | import javax.swing.JFrame;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacv.*;
import org.bytedeco.opencv.opencv_core.*;
import org.bytedeco.opencv.opencv_imgproc.*;
import static org.bytedeco.opencv.global.opencv_core.*;
import static org.bytedeco.opencv.global.opencv_imgproc.*;
import static org.bytedeco.op... | 2,674 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Mélecey","circ":"2ème circonscription","dpt":"Haute-Saône","inscrits":120,"abs":45,"votants":75,"blancs":16,"nuls":4,"exp":55,"res":[{"nuance":"FN","nom":"M. <NAME>","voix":36},{"nuance":"REM","nom":"M. <NAME>","voix":19}]} | 117 |
2,017 | package com.dream.service.impl;
import com.dream.mapper.BrowseMapper;
import com.dream.po.Browse;
import com.dream.po.BrowseExample;
import com.dream.service.BrowseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
p... | 311 |
852 | #ifndef ALL_LMF
#define ALL_LMF
#include "OnlineDB/EcalCondDB/interface/LMFColor.h"
#include "OnlineDB/EcalCondDB/interface/LMFColoredTable.h"
#include "OnlineDB/EcalCondDB/interface/LMFCorrCoefDat.h"
#include "OnlineDB/EcalCondDB/interface/LMFCorrVers.h"
#include "OnlineDB/EcalCondDB/interface/LMFDat.h"
#include "Onl... | 497 |
3,508 | package com.fishercoder.solutions;
public class _1750 {
public static class Solution1 {
public int minimumLength(String s) {
int i = 0;
int j = s.length() - 1;
if (s.charAt(i) == s.charAt(j)) {
while (i < j && s.charAt(i) == s.charAt(j)) {
... | 477 |
2,350 | #if defined(__ARM_ARCH_5TE__)
#include "pyconfig_armeabi.h"
#elif defined(__ARM_ARCH_7A__) && !defined(__ARM_PCS_VFP)
#include "pyconfig_armeabi_v7a.h"
#elif defined(__ARM_ARCH_7A__) && defined(__ARM_PCS_VFP)
#include "pyconfig_armeabi_v7a_hard.h"
#elif defined(__aarch64__)
#include "pyconfig_arm64_v8a.h"
#elif defined... | 275 |
460 | <reponame>jacklovejia/shop
package com.tasly.user.db.reposity;
import com.tasly.user.db.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* Created by dulei on 18/1/8.
*/
public interface UserReposity extends JpaRepository<User,Long> {
}
| 106 |
320 | # -*- coding: UTF-8 -*-
from basic import BasicCtrl
class ScoreCtrl(BasicCtrl):
def post(self):
try:
self.datum('posts').submit(
'update posts set post_rank = post_rank + 1, post_plus = post_plus + 1 where post_id = ? limit 1', (self.input('poid'),))
self.flash(... | 176 |
839 | <filename>systests/ws-rm/src/test/java/org/apache/cxf/systest/ws/rm/CachedOutMessageTest.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 AS... | 1,995 |
314 | <filename>Multiplex/IDEHeaders/IDEHeaders/IDEFoundation/IDEArchivePackagerEntitlementsMerger.h
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "CDStructures.h"
@interface IDEArchivePackagerEntitlementsMerger : NSObject
{
}
+ ... | 200 |
388 | <filename>libraries/botframework-connector/botframework/connector/auth/user_token_client.py
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from abc import ABC, abstractmethod
from base64 import b64encode
from json import dumps
from typing import Dict, List
from botbuilde... | 2,063 |
313 | /*
* Copyright (c) 2020, the mcl_3dl authors
* 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 l... | 3,226 |
782 | package com.octo.android.sample.model;
public interface Computer {
int getResult();
}
| 30 |
852 | <filename>GeneratorInterface/Pythia8Interface/test/pythia8test/chi.c
#include <stdio.h>
#include <math.h>
int main(void)
{
double y, dy, y0, dy0;
double chi;
scanf("%lE%lE%lE%lE", &y, &dy, &y0, &dy0);
if (dy == 0. && dy0 == 0.)
chi = -1.;
else
chi = (y - y0) / sqrt(dy*dy + dy0*dy0);
printf... | 370 |
311 | <gh_stars>100-1000
import logging
from decimal import Decimal
from django.utils.translation import ugettext as _
from django.contrib.auth import get_user_model
from rest_framework import serializers
from oscar.core.loading import get_model
from oscarapi.basket import operations
from oscarapi.utils.settings import ov... | 3,530 |
348 | {"nom":"Ensisheim","circ":"4ème circonscription","dpt":"Haut-Rhin","inscrits":5772,"abs":3459,"votants":2313,"blancs":50,"nuls":7,"exp":2256,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":753},{"nuance":"FN","nom":"M. <NAME>","voix":413},{"nuance":"LR","nom":"<NAME>","voix":305},{"nuance":"REG","nom":"<NAME>","voix":... | 327 |
1,405 | package com.network.android;
import android.content.Context;
import android.os.Handler;
import com.network.android.c.a.a;
import com.network.media.r;
/* access modifiers changed from: package-private */
public final class b implements Runnable {
/* renamed from: a reason: collision with root package name */
... | 398 |
355 | /*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser Gen... | 1,456 |
5,964 | /*
* Copyright (C) 2011 Google Inc. 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 conditio... | 10,335 |
313 | <reponame>sagarpahwa/qiskit-aer
/**
* This code is part of Qiskit.
*
* (C) Copyright IBM 2018, 2019.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LI... | 1,380 |
369 | {
"externalDevices": {
"/Sidewinder2Device": {
"deviceName": "microsoft0",
"server": "localhost:3884",
"descriptor": "external-devices/device-descriptors/Sidewinder2.json"
}
}
}
| 122 |
1,004 | import d6tflow
import luigi
import tensorflow as tf
from d6tflow.targets.h5 import H5KerasTarget
from d6tflow.tasks.h5 import TaskH5Keras
# define workflow
class TaskGetTrainData(d6tflow.tasks.TaskPickle): # save dataframe as pickle
def run(self):
mnist = tf.keras.datasets.mnist
data = {}
... | 953 |
5,169 | {
"name": "GZStackViewController",
"module_name": "StackViewController",
"version": "1.0.2",
"summary": "Protocol powered approach of creating fully featured StackViewControllers in Swift3",
"description": "UIKit has UITableViewController for UITableView, as well as having UICollectionViewController for UICol... | 286 |
381 | <reponame>briandooley/aerogear-unifiedpush-server
/**
* JBoss, Home of Professional Open Source
* Copyright Red Hat, Inc., and individual 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 ... | 833 |
354 | <gh_stars>100-1000
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms... | 2,593 |
9,228 | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from parlai.core.worlds import World, validate
from parlai.chat_service.services.messenger.worlds import (
SimpleMess... | 1,353 |
315 | package com.alibaba.boot.velocity;
import org.apache.velocity.app.Velocity;
import org.springframework.boot.autoconfigure.velocity.VelocityAutoConfiguration;
import org.springframework.boot.autoconfigure.velocity.VelocityProperties;
/**
* {@link VelocityConstants}
*
* @author <a href="mailto:<EMAIL>">Mercy</a>
* ... | 1,072 |
4,606 | from ..connecting_solids.complex_pipeline import (
diamond,
find_highest_calorie_cereal,
)
# start_op_test
def test_find_highest_calorie_cereal():
cereals = [
{"name": "hi-cal cereal", "calories": 400},
{"name": "lo-cal cereal", "calories": 50},
]
result = find_highest_calorie_cere... | 232 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 3,535 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.