max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
416
#ifndef _exc_user_ #define _exc_user_ /* Module exc */ #include <string.h> #include <mach/ndr.h> #include <mach/boolean.h> #include <mach/kern_return.h> #include <mach/notify.h> #include <mach/mach_types.h> #include <mach/message.h> #include <mach/mig_errors.h> #include <mach/port.h> /* BEGIN MIG_STRNCPY_ZEROFILL C...
2,916
2,092
#define LOCK_NAME "ck_cas" #define LOCK_DEFINE static ck_spinlock_cas_t CK_CC_CACHELINE lock = CK_SPINLOCK_CAS_INITIALIZER #define LOCK ck_spinlock_cas_lock_eb(&lock) #define UNLOCK ck_spinlock_cas_unlock(&lock) #define LOCKED ck_spinlock_cas_locked(&lock)
109
2,603
<reponame>JVVJV/FreeRTOS /* ----> DO NOT REMOVE THE FOLLOWING NOTICE <---- Copyright (c) 2014-2015 Datalight, Inc. All Rights Reserved Worldwide. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Gener...
3,802
1,391
#include "stdinc.h" #include "dat.h" #include "fns.h" void usage(void) { fprint(2, "usage: printmap [-B blockcachesize] config\n"); threadexitsall("usage"); } Config conf; void threadmain(int argc, char *argv[]) { u32int bcmem; int fix; fix = 0; bcmem = 0; ARGBEGIN{ case 'B': bcmem = unittoull(ARGF()); ...
263
4,289
<gh_stars>1000+ package io.lbry.browser.tasks.file; import android.os.AsyncTask; import java.util.HashMap; import java.util.List; import java.util.Map; import io.lbry.browser.exceptions.ApiCallException; import io.lbry.browser.utils.Lbry; // Just run delete on the specified claim IDs (no need for a handler) public ...
440
14,668
// 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 "net/log/net_log_capture_mode.h" namespace net { bool NetLogCaptureIncludesSensitive(NetLogCaptureMode capture_mode) { return capture_mode >=...
149
313
/* * Copyright 2018 Netflix, 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 t...
993
882
# This is a probably temporary file to help Tomas profiling the RF. It uses the debug.json action RF. import urllib import urllib2 import json DEFAULT_SERVER = "http://localhost:54321/" KEY = "Key" KEY2 = "Key2" ERROR = "Error" COLUMNS = "columns" COLUMN_NAME = "name" CONTENTS = "contents" EXPR = "Expr" RESULT_KEY ...
1,439
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...
300
314
<gh_stars>100-1000 // // 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 IDESourceControlPersonPopover : NSPopover { } - (void)performClose:(id)arg1; - (void)close; @end
120
26,185
<filename>image-filters/code/com/catehuston/imagefilter/app/ImageFilterApp.java package com.catehuston.imagefilter.app; import java.io.File; import processing.core.PApplet; import com.catehuston.imagefilter.color.ColorHelper; import com.catehuston.imagefilter.color.PixelColorHelper; import com.catehuston.imagefilter...
1,549
621
<gh_stars>100-1000 /** * */ package com.vito16.shop.model; import lombok.Getter; import lombok.Setter; import javax.persistence.*; import java.io.Serializable; import java.util.Date; /** * 新闻 * @author Vito * @email <EMAIL> * @date 2013-7-18 * */ @Setter @Getter @Entity @Table(name = "t_news") public class...
246
892
{ "schema_version": "1.2.0", "id": "GHSA-wmgc-376w-w47j", "modified": "2022-05-01T06:47:37Z", "published": "2022-05-01T06:47:37Z", "aliases": [ "CVE-2006-1269" ], "details": "Buffer overflow in the parse function in parse.c in zoo 2.10 might allow local users to execute arbitrary code via long filenam...
699
480
<filename>simplebehavior/src/main/java/com/zoonref/viewbehavior/PercentageChildView.java<gh_stars>100-1000 package com.zoonref.viewbehavior; /** * Created by zoonooz on 15/1/2018 AD. * Interface for child view to let behavior send the progress */ public interface PercentageChildView { /** * This will be ...
169
862
/* * (c) Copyright 2020 Palantir Technologies Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
425
1,444
<filename>Mage.Sets/src/mage/sets/Antiquities.java package mage.sets; import mage.cards.ExpansionSet; import mage.constants.Rarity; import mage.constants.SetType; /** * @author North */ public final class Antiquities extends ExpansionSet { private static final Antiquities instance = new Antiquities(); pub...
4,912
14,668
// Copyright 2014 The Crashpad 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 ...
502
691
<gh_stars>100-1000 /* * Copyright 2016 <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...
815
443
<gh_stars>100-1000 from uuid import uuid4 from changes.config import db from changes.constants import Result, Status from changes.models.filecoverage import FileCoverage from changes.testutils import APITestCase class BuildCoverageTest(APITestCase): def test_error(self): fake_build_id = uuid4() ...
1,055
1,350
<filename>sdk/streamanalytics/azure-resourcemanager-streamanalytics/src/main/java/com/azure/resourcemanager/streamanalytics/implementation/SubscriptionQuotasListResultImpl.java<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (...
567
416
<filename>extension-admob/1,6,4/project/include/UIKit.framework/UICollectionViewFlowLayout.h #if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include(<UIKitCore/UICollectionViewFlowLayout.h>) // // UICollectionViewFlowLayout.h // UIKit // // Copyright (c) 2011-2018 Apple Inc. All rights ...
1,266
4,538
<reponame>wstong999/AliOS-Things /* * Copyright (C) 2015-2021 Alibaba Group Holding Limited */ #include <string.h> #include <stdint.h> #include "aos/kernel.h" #include "aos/cli.h" #include "cli_adapt.h" #include "cli_console.h" #if CLI_UAGENT_ENABLE #include "cli_uagent.h" #endif static aos_task_t cli_task; int32_...
603
12,718
/* * hidsdi.h * * Public interface for USB HID user space functions. * * Contributors: * Created by <NAME> <<EMAIL>> * Extended by <NAME> * * THIS SOFTWARE IS NOT COPYRIGHTED * * This source code is offered for use in the public domain. You may * use, modify or distribute it freely. * * This code is d...
1,050
349
{ "Logging": { "MSSqlServer": { "schema": "Logging", "tableName": "SeriLogs", "restrictedToMinimumLevel": "Warning" } }, "ApplicationName": "AutoLot.Api", "AllowedHosts": "*" }
99
785
<filename>app/src/main/java/com/ozj/baby/mvp/views/home/activity/MainActivity.java package com.ozj.baby.mvp.views.home.activity; import android.content.Intent; import android.graphics.Bitmap; import android.net.Uri; import android.os.Bundle; import android.support.design.widget.AppBarLayout; import android.support.des...
5,527
1,745
<reponame>Milerius/bsf<filename>Source/Foundation/bsfUtility/ThirdParty/simdpp/detail/insn/cmp_neq.h /* Copyright (C) 2011-2014 <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) *...
4,557
378
<reponame>ShermanMarshall/tomee<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...
1,809
348
{"nom":"Grandchamp","circ":"1ère circonscription","dpt":"Ardennes","inscrits":73,"abs":29,"votants":44,"blancs":7,"nuls":1,"exp":36,"res":[{"nuance":"LR","nom":"<NAME>","voix":29},{"nuance":"REM","nom":"<NAME>","voix":7}]}
88
2,816
<reponame>AldoMyrtaj/duckdb<gh_stars>1000+ /* * Legal Notice * * This document and associated source code (the "Work") is a part of a * benchmark specification maintained by the TPC. * * The TPC reserves all right, title, and interest to the Work as provided * under U.S. and international laws, including without...
2,230
347
<filename>frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/form/key_value/BaseKeyLineWidget.java package org.ovirt.engine.ui.common.widget.form.key_value; import org.gwtbootstrap3.client.ui.Row; import org.ovirt.engine.ui.common.widget.HasEditorDriver; import org.ovirt.engine.ui.com...
823
803
<gh_stars>100-1000 package com.lfk.justwetools.View.NewPaint.Graph; import android.graphics.Canvas; /** * Created by liufengkai on 15/10/23. */ public class DrawTriangle extends DrawBase { private Canvas mCancas; public DrawTriangle(Canvas canvas) { this.mCancas = canvas; } @Override p...
289
12,252
<filename>saml-core/src/main/java/org/keycloak/saml/processing/core/util/KeycloakKeySamlExtensionGenerator.java /* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use th...
1,020
1,805
<gh_stars>1000+ #include "stdafx.h" #include "cliques.h" ///////////////////////////////////////////////// // TCommunity implementation void TCliqueOverlap::GetRelativeComplement(const THashSet<TInt>& A, const THashSet<TInt>& B, THashSet<TInt>& Complement) { for (THashSet<TInt>::TIter it=A.BegI(); it<A.EndI();...
3,822
516
#include "stdafx.h" #include "Jobs.hpp" #include "List.hpp" #include "Vector.hpp" #include "Log.hpp" #include "Thread.hpp" #include <thread> #include "Timer.hpp" JobFlags operator|(JobFlags a, JobFlags b) { return (JobFlags)((uint8)a | (uint8)b); } JobFlags operator&(JobFlags a, JobFlags b) { return (JobFlags)((uint...
2,321
364
<gh_stars>100-1000 // // PDFFontCollection.h // GreatReader // // Created by <NAME> on 3/5/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @class PDFFont; @interface PDFFontCollection : NSObject - (instancetype)initWithCGPDFPage:(CGPDFPageRef)CGPDFPage; - (PDFFont *)fo...
136
529
<gh_stars>100-1000 /* apps/ciphers.c */ /* Copyright (C) 1995-1998 <NAME> (<EMAIL>) * All rights reserved. * * This package is an SSL implementation written * by <NAME> (<EMAIL>). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commer...
3,035
2,085
<reponame>Jette16/spacy-course<gh_stars>1000+ from spacy.lang.ja import Japanese from spacy.tokens import Token nlp = Japanese() # トークンを受け取り、文字列を反転させたものを返すゲッターを定義 def get_reversed(token): return token.text[::-1] # トークンの「reversed」プロパティ属性にget_reversedをゲッターとして登録 Token.set_extension("reversed", getter=get_reversed)...
287
4,964
from __future__ import print_function from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf import numpy as np import os import sys ###################################### ######### Necessary Flags ############ ###################################### tf.app.flags.DEFINE_string( 'test_dir...
3,365
1,444
<reponame>amc8391/mage package mage.cards.b; import mage.abilities.dynamicvalue.DynamicValue; import mage.abilities.dynamicvalue.common.CardsInControllerGraveyardCount; import mage.abilities.effects.common.DamageTargetEffect; import mage.abilities.effects.common.ExileTargetIfDiesEffect; import mage.cards.CardImpl; imp...
639
1,745
//********************************* bs::framework - Copyright 2018-2019 <NAME> ************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #include "Wrappers/BsScriptResources.h" #include "BsMonoManager.h" #include "...
1,295
1,000
# 加密参数相关。 # 具体http://s3.music.126.net/sep/s/2/core.js?5d6f8e4d01b4103ec9f246a2ef70e6d1在这个js中可以查看。 # 好吧,其实不用分析这个js,在这个git中可以找到https://github.com/xiyouMc/ncmbot,不过他是for python2的。 # 针对pyton3做了修改。 import os import json import base64 import random import hashlib import binascii try: from Cryptodome.Cipher import AES e...
1,289
9,491
<filename>hphp/runtime/ext/facts/test/logging-test.cpp /* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Fa...
2,670
893
from pyg2plot import Plot data = [ { "year": "1951 年", "value": 38 }, { "year": "1952 年", "value": 52 }, { "year": "1956 年", "value": 61 }, { "year": "1957 年", "value": 145 }, { "year": "1958 年", "value": 48 }, ] bar = Plot("Bar") bar.set_options({ "appendPadding": 32, "data": data, "xField": "value"...
183
648
{"resourceType":"DataElement","id":"PlanDefinition.goal.priority","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/PlanDefinition.goal.priority","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"id":"PlanDefinition.goal.priority","path":"PlanDe...
231
3,937
// Copyright (c) 2003-present, Jodd Team (http://jodd.org) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // th...
561
348
{"nom":"<NAME>","circ":"3ème circonscription","dpt":"Calvados","inscrits":288,"abs":172,"votants":116,"blancs":11,"nuls":4,"exp":101,"res":[{"nuance":"LR","nom":"<NAME>","voix":54},{"nuance":"MDM","nom":"<NAME>","voix":47}]}
90
1,738
<gh_stars>1000+ /* * 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 li...
2,904
6,224
/* * Copyright (c) 2021, <NAME> <<EMAIL>> * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_TIMER_RISCV_MACHINE_TIMER_H_ #define ZEPHYR_INCLUDE_DT_BINDINGS_TIMER_RISCV_MACHINE_TIMER_H_ /* Clock divider values */ #define RISCV_MACHINE_TIMER_DIVIDER_1 0 #define RISCV_MACHINE_TIMER_...
454
3,897
<filename>third_party/mbedtls/repo/include/psa/crypto_driver_common.h /** * \file psa/crypto_driver_common.h * \brief Definitions for all PSA crypto drivers * * This file contains common definitions shared by all PSA crypto drivers. * Do not include it directly: instead, include the header file(s) for * the type(...
650
7,137
<reponame>sasaie/onedev package io.onedev.server.model.support.role; import java.util.Collection; import io.onedev.server.OneDev; import io.onedev.server.entitymanager.SettingManager; import io.onedev.server.web.editable.annotation.Editable; @Editable(order=100, name="All") public class AllIssueFields implements Iss...
170
348
// // FKFlickrPhotosetsOrderSets.h // FlickrKit // // Generated by FKAPIBuilder. // Copyright (c) 2013 DevedUp Ltd. All rights reserved. http://www.devedup.com // // DO NOT MODIFY THIS FILE - IT IS MACHINE GENERATED #import "FKFlickrAPIMethod.h" typedef NS_ENUM(NSInteger, FKFlickrPhotosetsOrderSetsError) { FKF...
726
3,428
{"id":"00338","group":"easy-ham-2","checksum":{"type":"MD5","value":"150c1aef21dcd741036532b8dad9d694"},"text":"From <EMAIL> Mon Aug 12 11:07:15 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMTP...
1,308
1,093
/* * Copyright 2018 Snap 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 in wr...
1,711
11,259
extern struct event_loop g_event_loop; static struct { AXUIElementRef ref; AXObserverRef observer_ref; bool is_observing; } g_mission_control_observer; static CFStringRef kAXExposeShowAllWindows = CFSTR("AXExposeShowAllWindows"); static CFStringRef kAXExposeShowFrontWindows = CFSTR("AXExposeShowFrontWin...
1,299
812
package edu.stanford.nlp.sempre.freebase.lexicons; public abstract class ExtremeValueWrapper { public double distance; public abstract boolean add(double other); } class MinValueWrapper extends ExtremeValueWrapper { public MinValueWrapper(double max) { distance = max; } @Override public boolean add(d...
244
426
import os import html import pickle import numpy as np import xml.etree.cElementTree as ElementTree """ - all points: >> [[x1, y1, e1], ..., [xn, yn, en]] - indexed values >> [h1, ... hn] """ def distance(p1, p2, axis=None): return np.sqrt(np.sum(np.square(p1 - p2), axis=axis)) def clear_middle(pts): to_re...
2,348
849
<reponame>Aitend/magma /* Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BA...
385
1,056
<reponame>arusinha/incubator-netbeans<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...
2,849
3,239
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys try: from mock import patch except ImportError: from unittest.mock import patch from csvkit.utilities.csvcut import CSVCut, launch_new_instance from tests.utils import ColumnsTests, CSVKitTestCase, EmptyFileTests, NamesTests class TestCSVCut(CSVKitTe...
1,521
863
package fr.free.nrw.commons.leaderboard; import com.google.gson.Gson; import fr.free.nrw.commons.profile.leaderboard.LeaderboardResponse; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import okhttp3.HttpUrl; import okhttp3.OkHttpClient; import ...
1,351
517
package ro.isdc.wro.extensions.processor; import static org.junit.Assert.assertTrue; import java.io.File; import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; import java.net.URL; import java.util.concurrent.Callable; import org.junit.After; import org.junit.Before; import org.junit....
777
4,262
<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 "Lic...
4,189
407
package com.alibaba.tesla.appmanager.common.assembly; import com.alibaba.tesla.appmanager.common.exception.AppErrorCode; import com.alibaba.tesla.appmanager.common.exception.AppException; import com.alibaba.tesla.appmanager.common.util.ClassUtil; import com.github.pagehelper.Page; import com.github.pagehelper.PageInfo...
1,224
552
#include "stdafx.h" #include "EcsCommandBuffer.h" #include "EcsController.h" namespace et { namespace fw { //==================== // ECS Command Buffer //==================== // construct destruct ////////////////////// //------------------------- // EcsCommandBuffer::d-tor // EcsCommandBuffer::~EcsCommandBuffe...
1,927
2,381
package com.github.dockerjava.api.async; import java.io.Closeable; /** * Result callback */ public interface ResultCallback<A_RES_T> extends Closeable { class Adapter<A_RES_T> extends ResultCallbackTemplate<Adapter<A_RES_T>, A_RES_T> { @Override public void onNext(A_RES_T object) { } ...
282
305
<gh_stars>100-1000 /* * Copyright 2015 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
710
1,145
<reponame>claytonbrown/lmctfy<gh_stars>1000+ // Copyright 2013 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/LI...
1,071
619
{ "country_code": "CN", "parents": [ "CN", "<NAME>" ], "locale": "zh-Hans", "subdivisions": { "<NAME>": { "local_code": "固原市", "has_children": true }, "<NAME>": { "local_code": "石嘴山市", "has_children": true }, "<NAME>": { "local_code": "吴忠市", "has_children": true }, "<NAME>": { ...
263
334
package ru.evgeniy.dpitunnel; import android.Manifest; import android.app.ActivityManager; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.SharedPreferences; import android.content.res.AssetManager; imp...
6,953
682
""" Module to run ACE with its various options """ from pathlib import Path from vtr import verify_file, CommandRunner, paths # pylint: disable=too-many-arguments def run( circuit_file, old_netlist, output_netlist, output_activity_file, command_runner=CommandRunner(), temp_dir=Path("."), ...
1,233
535
/* * 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 ...
627
4,036
import java.util.*; public class Main { public static void arrays(String[] args) { // NOT OK: always true if (args.length >= 0) { System.out.println("At least zero arguments!!"); } // NOT OK: always true if (0 <= args.length) { System.out.p...
1,404
667
from argparse import ArgumentParser from ..utils import RED_TAG as RED from ..utils import RESET_TAG as RST from . import BaseAutoNLPCommand def login_command_factory(args): return LoginCommand(api_key=args.api_key) class LoginCommand(BaseAutoNLPCommand): @staticmethod def register_subcommand(parser: A...
408
4,606
from dagster import repository from .jobs import do_it_all @repository def my_repo(): return [do_it_all]
42
4,111
/* * 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 ...
792
984
<filename>phoenix-core/src/main/java/org/apache/phoenix/compile/ServerBuildTransformingTableCompiler.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 owner...
1,792
1,609
<reponame>kll5h/ShinetechOA package com.mossle.bpm.persistence.manager; import com.mossle.bpm.persistence.domain.BpmCategory; import com.mossle.core.hibernate.HibernateEntityDao; import org.springframework.stereotype.Service; @Service public class BpmCategoryManager extends HibernateEntityDao<BpmCategory> { }
117
950
#include <iostream> #include <cmath> using namespace std; bool isPrime(int n){ if(n < 2) return false; for(int i = 2; i <= sqrt(n); i++){ if(n % i == 0) return false; } return true; } int main(){ int n, cnt = 0; cin >> n; for(int i = 2; i <= n; i++) if(isPrime(i - 2) && isPrime(i)) cnt++; cout << cnt; r...
156
675
#include "shader_node_texture.h" #include "engine/core/util/StringUtil.h" #include "engine/core/render/base/shader/editor/data/shader_data_texture.h" namespace Echo { #ifdef ECHO_EDITOR_MODE ShaderNodeTexture::ShaderNodeTexture() : ShaderNode() { m_toolButton = new QToolButton(); m_toolButton->setFixedSize(75,...
1,656
381
import py from rpython.jit.backend.ppc.test.support import JitPPCMixin from rpython.jit.metainterp.test.test_float import FloatTests from rpython.jit.backend.detect_cpu import getcpuclass CPU = getcpuclass() class TestFloat(JitPPCMixin, FloatTests): # for the individual tests see # ====> ../../../metainterp/t...
177
4,036
<filename>cpp/ql/src/jsf/4.07 Header Files/JSF35-encompassing-bad.cpp void alpha(); #ifndef MY_FUNCTIONS_H void beta(); #define MY_FUNCTIONS_H void gamma(); void delta(); void epsilon(); #endif void omega();
86
2,179
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
2,850
1,253
<filename>scanner/rdesktop-fork-bd6aa6acddf0ba640a49834807872f4cc0d0a773/tests/brushtest.c /* by <NAME>, public domain for testing brush cache */ #include <windows.h> static HWND g_wnd; static HWND g_button; static HWND g_pulldown; /**********************************************************************...
2,589
4,772
<reponame>fjacobs/spring-data-examples package example.repo; import example.model.Customer1913; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer1913Repository extends CrudRepository<Customer1913, Long> { List<Customer1913> findByLastName(String lastName);...
103
6,989
<reponame>jochenater/catboost<filename>contrib/libs/re2/re2/testing/set_test.cc // Copyright 2010 The RE2 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 <stddef.h> #include <string> #include <vector> #include <utility> #i...
2,789
3,307
#define BOOST_TEST_MODULE TEST_RNN #include <dynet/dynet.h> #include <dynet/expr.h> #include <dynet/exec.h> #include <dynet/lstm.h> #include <dynet/fast-lstm.h> #include <dynet/gru.h> #include <dynet/grad-check.h> #include <dynet/param-init.h> #include <boost/test/unit_test.hpp> #include "test.h" #include <stdexcept> ...
2,174
348
{"nom":"Souvigné","circ":"5ème circonscription","dpt":"Indre-et-Loire","inscrits":605,"abs":361,"votants":244,"blancs":38,"nuls":6,"exp":200,"res":[{"nuance":"REM","nom":"<NAME>","voix":128},{"nuance":"LR","nom":"<NAME>","voix":72}]}
95
313
<filename>samples/code-samples/Shared/FakeData/Status-200.json {"status_id":8657467749695488,"text":"Fedagci al giag ojepevto cabaj nulzaf luc didduwdo voaskil wozvotfe rab hacigas dir how batemin sibala. #utu","user":{"user_id":1905702614335488,"name":"<NAME>","screen_name":"@ref","created_at":29459801,"followers_cou...
201
3,287
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
277
335
<gh_stars>100-1000 { "word": "Ubiquitous", "definitions": [ "Present, appearing, or found everywhere." ], "parts-of-speech": "Adjective" }
71
9,825
# coding=utf-8 # Copyright 2021 The Dopamine 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...
1,717
775
// This file is part of MicropolisJ. // Copyright (C) 2013 <NAME> // Portions Copyright (C) 1989-2007 Electronic Arts Inc. // // MicropolisJ is free software; you can redistribute it and/or modify // it under the terms of the GNU GPLv3, with additional terms. // See the README file, included in this distribution, for d...
1,481
377
/******************************************************************************* * * Copyright 2014 Impetus Infotech. * * * * 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 * * *...
2,386
3,269
<reponame>Priyansh2/LeetCode-Solutions // Time: O(nlogn) // Space: O(1) class Solution { public: int minPairSum(vector<int>& nums) { sort(begin(nums), end(nums)); int result = 0; for (int i = 0; i < size(nums) / 2; ++i) { result = max(result, nums[i] + nums[size(nums) - 1 - i])...
189
8,273
<filename>ortools/packing/vector_bin_packing_parser.h // Copyright 2010-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 /...
732
644
<gh_stars>100-1000 '''TensorFlow implementation of http://arxiv.org/pdf/1511.06434.pdf''' from __future__ import absolute_import, division, print_function import math import numpy as np from tensorflow.contrib import layers from tensorflow.contrib import losses from tensorflow.contrib.framework import arg_scope impo...
1,392
605
<reponame>titanous/libvim #include "libvim.h" #include "minunit.h" void test_setup(void) { vimKey("<Esc>"); vimKey("<Esc>"); vimExecute("e!"); vimInput("g"); vimInput("g"); vimInput("0"); } void test_teardown(void) {} MU_TEST(simple_replace) { vimInput("r"); vimInput("a"); char_u *line = vimBuffe...
450
644
<reponame>ActiveGymnastics/element-ios<filename>Riot/Modules/Contacts/Views/LocalContactsSectionHeaderContainerView.h /* Copyright 2014 OpenMarket Ltd Copyright 2020 Vector Creations Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License...
354
2,896
<reponame>turkron/litegraph.js #!/usr/bin/python import re, os, sys, time, tempfile, shutil import argparse from datetime import date compiler_path = "../node_modules/google-closure-compiler/compiler.jar" root_path = "./" #arguments parser = argparse.ArgumentParser(description='Deploy a JS app creating a minifyed ve...
1,454
630
package org.elasticsearch.river.mongodb.embed; import de.flapdoodle.embed.mongo.Command; import de.flapdoodle.embed.mongo.config.RuntimeConfigBuilder; public class TokuRuntimeConfigBuilder extends RuntimeConfigBuilder { public TokuRuntimeConfigBuilder defaults(Command command) { super.defaults(command); ...
146