max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
370
<gh_stars>100-1000 package tw.skyarrow.ehreader.receiver; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import tw.skyarrow.ehreader.R; import tw.skyarrow.ehreader.util.Down...
669
702
/* * Copyright ConsenSys AG. * * 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...
931
778
<reponame>troels/compute-runtime /* * Copyright (C) 2020-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once extern "C" { ZE_APIEXPORT ze_result_t ZE_APICALL zeDeviceGet_Tracing(ze_driver_handle_t hDriver, uint32_t *pCount, ze_device_handle_t *phDevi...
1,636
2,775
{ "title": { "zh": "经典热力图", "en": "heatmap" }, "demos": [ { "filename": "heatmap.js", "title": "经典热力图2D", "screenshot":"https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*QstiQq4JBOIAAAAAAAAAAABkARQnAQ" }, { "filename": "heatmap_purple.js", "title": "经典热力图2D", ...
378
2,248
<gh_stars>1000+ from the_import import ProvincialClass as pc, imported_func class Abra(): def __init__(self): self.cadabra() def cadabra(self): print("cadabra") def b(): Abra() b() pc() HiddenClass() # this is probably too defensive imported_func()
116
879
package com.bookstore; import com.bookstore.service.BookstoreService; import com.vladmihalcea.sql.SQLStatementCountValidator; import static com.vladmihalcea.sql.SQLStatementCountValidator.assertDeleteCount; import static com.vladmihalcea.sql.SQLStatementCountValidator.assertInsertCount; import static com.vladmihalcea....
678
1,150
///* // * Copyright (c) 2016 <NAME> (<EMAIL>) // */ // //package com.kaedea.frontia.demo.apis; // //import android.content.Context; //import moe.studio.behavior.video.LoginApi; // // ///** // * Created by kaede on 2015/12/7. // */ //public class LoginApiImpl extends LoginApi { // @Override // public boolean isLogined()...
162
357
<reponame>minatoyuichiro/Blueqat import cmath from math import pi import random from typing import Callable, List import pytest import numpy as np from blueqat import Circuit from blueqat.gate import OneQubitGate, Mat1Gate, HGate, UGate, PhaseGate, RXGate, RYGate, RZGate from blueqat.circuit_funcs import circuit_to_u...
1,649
841
/* * Copyright (c) 2016 <NAME> * Copyright (c) 2013-2016 the Civetweb developers * Copyright (c) 2004-2013 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction...
618
442
<filename>spring-context/src/test/java/org/springframework/context/annotation/AnnotationBeanNameGeneratorTests.java /* * Copyright 2002-2019 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 m...
2,197
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...
1,272
1,863
// // 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 conditions and the following disclaimer. // * Redistributions in bin...
923
679
<reponame>Grosskopf/openoffice /************************************************************** * * 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...
569
505
package de.rieckpil.blog; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; @RestController @RequestMapping("/todos") public class TodoController { private ...
185
1,338
<reponame>Kirishikesan/haiku /* ** Copyright 2004, <NAME> (<EMAIL>). ** Distributed under the terms of the MIT License. ** */ #ifndef _TEST_H #define _TEST_H #include <stdio.h> class AssertStatistics { private: AssertStatistics(); public: static AssertStatistics* GetInstance(); void AssertFailed() { fAsserti...
480
650
<filename>Userland/Utilities/chown.cpp /* * Copyright (c) 2018-2020, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/String.h> #include <AK/Vector.h> #include <grp.h> #include <pwd.h> #include <stdio.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> int main(int argc, cha...
893
2,095
<reponame>Mu-L/rsocket-java<filename>rsocket-core/src/main/java/io/rsocket/DuplexConnection.java /* * Copyright 2015-2020 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...
1,003
2,542
<reponame>vishnuk007/service-fabric // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // --------------------------------------------------------...
467
2,086
#include "strm.h" #include "khash.h" KHASH_MAP_INIT_INT64(env, strm_value); typedef khash_t(env) strm_env; strm_env *globals; static int env_set(strm_env *env, strm_string name, strm_value val) { int r; khiter_t k; assert(env != globals || !strm_event_loop_started); if (!strm_str_intern_p(name)) { name =...
1,233
442
<reponame>yuweihn/jmqtt package org.jmqtt.bus.enums; /** * cluster event code */ public enum ClusterEventCodeEnum { MQTT_CLEAR_SESSION("MQTT_CLEAR_SESSION"), DISPATCHER_CLIENT_MESSAGE("DISPATCHER_CLIENT_MESSAGE"), ; private String code; ClusterEventCodeEnum(String code) { this.code...
178
351
package com.talosvfx.talos.editor.widgets.ui; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.ui.Skin; import com.badlogic.gdx.scenes.scene2d.ui.Table; import com.badlogic.gdx.scenes.scene2d.ui.TextField; import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener; import com.talos...
1,302
745
/******************************************************************************* * * MIT License * * Copyright (c) 2017 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
832
565
#include "numerics/polynomial.hpp" #include <tuple> #include "base/macros.hpp" #include "geometry/frame.hpp" #include "geometry/grassmann.hpp" #include "geometry/named_quantities.hpp" #include "gtest/gtest.h" #include "numerics/polynomial_evaluators.hpp" #include "quantities/constants.hpp" #include "quantities/named...
9,717
4,054
<filename>modules/lwjgl/driftfx/src/main/java/org/eclipse/fx/drift/internal/GPUSyncUtil.java<gh_stars>1000+ package org.eclipse.fx.drift.internal; import java.time.Duration; public class GPUSyncUtil { public static enum WaitSyncResult { AREADY_SIGNALED, TIMEOUT_EXPIRED, CONDITION_SATISFIED, WAIT_FAILED } ...
918
1,998
from .teams_conversation_bot import TeamsConversationBot __all__ = ["TeamsConversationBot"]
30
14,668
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_HEURISTIC_STYLUS_PALM_DETECTION_FILTER_H_ #define UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_HEURISTIC_STYLUS_PALM_DETE...
1,022
6,156
/* * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #im...
809
348
<gh_stars>100-1000 {"nom":"Brie","circ":"1ère circonscription","dpt":"Aisne","inscrits":46,"abs":20,"votants":26,"blancs":5,"nuls":0,"exp":21,"res":[{"nuance":"REM","nom":"<NAME>","voix":15},{"nuance":"FN","nom":"<NAME>","voix":6}]}
96
496
<reponame>yuanboshe/Nebula /******************************************************************************* * Project: Nebula * @file Timer.hpp * @brief * @author Bwar * @date: 2018年8月5日 * @note * Modify history: ******************************************************************************/ #ifndef ...
415
1,144
package org.adempiere.mm.attributes.countryattribute.impl; /* * #%L * de.metas.swat.base * %% * Copyright (C) 2015 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either...
950
336
<reponame>nattangwiwat/Mayan-EDMS-recitation from django import forms from django.utils.html import escape from django.utils.translation import ugettext_lazy as _ from mayan.apps.views.forms import DetailForm from .models import Key class KeyDetailForm(DetailForm): def __init__(self, *args, **kwargs): i...
711
892
{ "schema_version": "1.2.0", "id": "GHSA-pw59-4qgf-jxr8", "modified": "2022-04-04T21:27:42Z", "published": "2021-06-18T22:04:32Z", "aliases": [ "CVE-2020-17522" ], "summary": "Cache Manipulation Attack in Apache Traffic Control", "details": "When ORT (now via atstccfg) generates ip_allow.config file...
1,115
864
<reponame>romainreignier/control-toolbox /********************************************************************************************************************** This file is part of the Control Toolbox (https://github.com/ethz-adrl/control-toolbox), copyright by ETH Zurich. Licensed under the BSD-2 license (see LICENSE...
1,452
427
<reponame>sabaalmas/Java-Coding-Problems<filename>Chapter07/P161_GenericTypesOfMethodsFieldsExceptions/src/modern/challenge/Seed.java package modern.challenge; public class Seed { }
66
445
# Make sure to update package.json, too! # version_info = (4, 5, 0, 'dev') version_info = (4, 4, 0) __version__ = '.'.join(map(str, version_info))
58
1,240
package com.eventyay.organizer.core.speaker.list; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androi...
1,587
361
{ "description": "o365-exchange-techniques - Office365/Exchange related techniques by @johnLaTwC and @inversecos", "icon": "map", "kill_chain_order": { "tactics": [ "Recon", "Initial Access", "Discovery", "Compromise", "Persistence", "Expansion", "Actions on Intent" ...
220
544
from office365.runtime.paths.resource_path import ResourcePath from office365.sharepoint.base_entity import BaseEntity from office365.sharepoint.directory.group import Group class GroupAndUserStatus(BaseEntity): @property def group(self): """Get a Group""" return self.properties.get("Group", ...
151
1,045
<gh_stars>1000+ /*************************************************************************************************** Tencent is pleased to support the open source community by making RapidView available. Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MITLicense (the "L...
474
22,040
<filename>spacy/tests/lang/tr/test_parser.py from spacy.tokens import Doc def test_tr_noun_chunks_amod_simple(tr_tokenizer): text = "<NAME>" heads = [1, 1] deps = ["amod", "ROOT"] pos = ["ADJ", "NOUN"] tokens = tr_tokenizer(text) doc = Doc( tokens.vocab, words=[t.text for t in tokens],...
9,190
3,252
<filename>tests/utils/test_text.py<gh_stars>1000+ # Copyright (c) Facebook, Inc. and its affiliates. import os import unittest import mmf.utils.text as text_utils import numpy as np import torch from mmf.common.registry import registry from mmf.common.sample import Sample, SampleList from mmf.utils.configuration impor...
3,845
938
{ "replace": false, "values": [ "#tconstruct:slimy_nylium/ichor", "#tconstruct:slimy_nylium/blood" ] }
56
28,899
<gh_stars>1000+ """Tests for Table Schema integration.""" from collections import OrderedDict import json import sys import numpy as np import pytest from pandas.core.dtypes.dtypes import ( CategoricalDtype, DatetimeTZDtype, PeriodDtype, ) import pandas as pd from pandas import DataFrame import pandas._t...
15,680
432
package us.parr.bookish.model; import us.parr.bookish.entity.EntityDef; import java.util.List; public class Section extends ContainerWithTitle { public Section(EntityDef def, String title, String anchor, List<OutputModelObject> elements, List<Container...
312
678
<reponame>bzxy/cydia<gh_stars>100-1000 /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/IMCore.framework/IMCore */ /* iOSOpenDev: commented-out (since file not found) #import <Marco/_FZServicePropertyRequiredEmailDomain.h> */ __attribute__((visibility("hidden"))) ...
362
348
{"nom":"Dargnies","circ":"3ème circonscription","dpt":"Somme","inscrits":898,"abs":506,"votants":392,"blancs":51,"nuls":25,"exp":316,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":224},{"nuance":"REM","nom":"M. <NAME>","voix":92}]}
95
318
package testng.groupThreadParallel; /* * 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,...
1,128
717
# -*- coding: utf-8 -*- import struct from PyQt5.QtGui import QQuaternion, QVector3D class VmdBoneFrame(): def __init__(self, frame=0): self.name = '' self.frame = frame self.position = QVector3D(0, 0, 0) self.rotation = QQuaternion() def write(self, fout): fout.write(...
1,407
567
# Generated by Django 2.0.3 on 2018-03-28 22:40 from django.conf import settings from django.db import migrations class Migration(migrations.Migration): atomic = False dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("todo", "0005_auto_20180212_2325"), ] o...
150
3,508
<reponame>Anshul1507/Leetcode package com.fishercoder; import com.fishercoder.solutions._165; import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.assertEquals; public class _165Test { private static _165.Solution1 solution1; @BeforeClass public static void setup() { solutio...
250
354
<filename>CalendarFXView/src/main/java/impl/com/calendarfx/view/MonthSheetViewSkin.java<gh_stars>100-1000 /* * Copyright (C) 2017 <NAME> Software & Consulting (dlsc.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ...
7,809
14,668
<gh_stars>1000+ // 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 "components/payments/content/can_make_payment_query_factory.h" #include "base/memory/singleton.h" #include "components/keyed_ser...
443
1,045
<gh_stars>1000+ import org.luaj.vm2.Globals; import org.luaj.vm2.LuaThread; import org.luaj.vm2.LuaValue; import org.luaj.vm2.lib.jse.JsePlatform; /** Example that continually launches coroutines, and illustrates how to make * sure the orphaned coroutines are cleaned up properly. * * Main points: * <ul><li>Each coro...
723
679
<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 license...
870
778
/* * Copyright (C) 2020-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once extern "C" { ZE_APIEXPORT ze_result_t ZE_APICALL zeModuleCreate_Tracing(ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_module_desc_t *desc, ...
4,005
1,444
package org.mage.test.cards.single.iko; import mage.constants.PhaseStep; import mage.constants.Zone; import org.junit.Test; import org.mage.test.serverside.base.CardTestPlayerBase; /** * @author JayDi85 */ public class GenesisUltimatumTest extends CardTestPlayerBase { @Test public void test_Playable() { ...
731
1,338
<reponame>Kirishikesan/haiku /* * Copyright 2003-2012 Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. */ #ifndef _STDIO_POST_H_ #define _STDIO_POST_H_ /* "Private"/inline functions of our BeOS compatible stdio implementation */ /* ToDo: this is a work in progress to make our std...
335
778
<gh_stars>100-1000 package org.aion.zero.impl.sync; import java.math.BigInteger; import org.aion.p2p.INode; /** Facilitates passing peer information to the API without relying on the p2p module interfaces. */ public class NodeWrapper { INode peer; public NodeWrapper(INode peer) { this.peer = peer; ...
436
1,244
<reponame>caiohamamura/libcxx //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------...
303
3,519
<filename>LibOVRProxy/OVR_CAPI.cpp<gh_stars>1000+ #define ovr_GetRenderDesc ovr_GetRenderDesc2 #define ovr_SubmitFrame ovr_SubmitFrame2 #include "OVR_CAPI.h" #undef ovr_GetRenderDesc #undef ovr_SubmitFrame #include "Extras/OVR_Math.h" typedef struct OVR_ALIGNAS(4) ovrEyeRenderDescPre117_ { ovrEyeType Eye; ovrFovPort...
1,501
303
#include <stdio.h> int print_hash_value = 1; static void platform_main_begin(void) { } static unsigned crc32_tab[256]; static unsigned crc32_context = 0xFFFFFFFFUL; static void crc32_gentab (void) { unsigned crc; unsigned poly = 0xEDB88320UL; int i, j; for (i = 0; i < 256; i++) { crc = i; for (j = 8; j > 0; j--...
11,795
611
<filename>tensorflow_gnn/graph/schema_utils.py """Misc graph tensor utilities.""" from typing import Any, Iterator, Optional, Text, Tuple, Union import tensorflow as tf from tensorflow_gnn.graph import adjacency from tensorflow_gnn.graph import graph_constants as gc from tensorflow_gnn.graph import graph_tensor as gt...
2,803
443
#pragma once #include "inexor/vulkan-renderer/io/octree_parser.hpp" #include <cstdint> #include <memory> #include <utility> // forward declaration namespace inexor::vulkan_renderer::world { class Cube; } // namespace inexor::vulkan_renderer::world // forward declaration namespace inexor::vulkan_renderer::io { class...
402
388
<reponame>kysko/music-synthesizer-for-android /* * Copyright 2011 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 * * ...
2,452
379
<reponame>joelostblom/dash-docs """ Original Demo: http://js.cytoscape.org/demos/cose-layout/ Note: This implementation looks different from the original implementation, although the input parameters are exactly the same. """ import requests import json import dash from dash.dependencies import Input, Output import d...
1,295
708
<reponame>Edelweiss35/deep-machine-learning<filename>dml/tool/normalize.py from __future__ import division import numpy as np import scipy as sp __all__ = [ 'normalize', 'disnormalize', 'normalize_by_extant', 'featurenormal' ] def featurenormal(X,axis=0): ''' X is N*M axis==0: columns axis==1: rows ''' m...
867
1,346
package com.ctrip.platform.dal.daogen.entity; import com.ctrip.platform.dal.dao.DalPojo; import com.ctrip.platform.dal.dao.annotation.Database; import com.ctrip.platform.dal.dao.annotation.Type; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import ...
1,262
1,249
<gh_stars>1000+ #ifndef DEBUG_HPP #define DEBUG_HPP #ifndef WAYFIRE_PLUGIN #include "config.h" #endif #define nonull(x) ((x) ? (x) : ("nil")) #include <wayfire/util/log.hpp> #include <bitset> namespace wf { /** * Print the current stacktrace at runtime. * * @param fast_mode If fast_mode is true, the stacktrac...
636
310
<reponame>dreeves/usesthis { "name": "Jazz Bass", "description": "An electric bass.", "url": "https://en.wikipedia.org/wiki/Fender_Jazz_Bass" }
61
743
<filename>hermes-management/src/main/java/pl/allegro/tech/hermes/management/infrastructure/query/parser/ParseException.java package pl.allegro.tech.hermes.management.infrastructure.query.parser; public class ParseException extends RuntimeException { public ParseException(String message) { super(message); ...
141
777
<reponame>google-ar/chromium<filename>components/cryptauth/ble/bluetooth_low_energy_weave_packet_generator.cc // Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/cryptauth/ble/bluetooth...
2,367
385
<filename>Curves, Markov and Bayes/UniversalityGainsLosses.py #!/usr/bin/env python3 # -*- coding: utf-8 -*- # http://github.com/timestocome # references # # http://www2.math.uu.se/~takis/ # https://www.quantamagazine.org/in-mysterious-pattern-math-and-nature-converge-20130205/ import numpy as np import panda...
1,503
1,144
package org.adempiere.ad.trx.api.impl; import com.google.common.collect.ImmutableList; import lombok.NonNull; import org.adempiere.ad.trx.api.ITrx; import org.adempiere.ad.trx.api.ITrxRunConfig; import org.adempiere.ad.trx.api.ITrxRunConfig.OnRunnableFail; import org.adempiere.ad.trx.api.ITrxRunConfig.OnRunnableSucces...
3,960
576
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
18,513
977
<filename>.vscode/cSpell.json // cSpell Settings { // Version of the setting file. Always 0.1 "version": "0.1", // language - current active spelling language "language": "en", // words - list of words to be always considered correct "words": [ "neopixel", "microbit", "T...
396
14,668
<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 MOJO_PUBLIC_CPP_BINDINGS_SEQUENCE_LOCAL_SYNC_EVENT_WATCHER_H_ #define MOJO_PUBLIC_CPP_BINDINGS_SEQUENCE_LOCAL_SYNC_EVENT_WATCHER_H...
809
782
/* * Copyright (c) 2021, <NAME>. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * 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...
801
411
<filename>intTests/test0027_crucible_llvm/test.c<gh_stars>100-1000 #include <stdlib.h> #include <stdio.h> uint32_t add_nums32( uint32_t x, uint32_t y ) { return (x+y); } uint64_t add_nums64( uint64_t x, uint64_t y ) { return (x+y); } int main() { printf("%u + %u = %u\n", 12U, 30U, add_nums32( 12U, 30U ) ); p...
201
868
/* * Copyright 2016 <NAME> * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by appl...
2,854
368
<filename>server/src/push_server/push_app.h // // push_app.h // my_push_server // // Created by luoning on 14-11-4. // Copyright (c) 2014年 luoning. All rights reserved. // #ifndef __my_push_server__push_app__ #define __my_push_server__push_app__ #include <stdio.h> #include "type/base_type.h" #include "socket/epol...
305
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "delegatedstatusrequest.h" #include "statusdelegator.h" #include <vespa/storageframework/generic/component/component.h> namespace storage { namespace distributor { class StatusReporterDeleg...
308
432
<filename>sys/dev/pccard/exca/excareg.h /* $NetBSD: i82365reg.h,v 1.3 1998/12/20 17:53:28 nathanw Exp $ */ /* $FreeBSD: src/sys/dev/exca/excareg.h,v 1.5 2005/01/06 01:42:40 imp Exp $ */ /*- * Copyright (c) 2002 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * m...
7,885
1,444
<reponame>bTest2018/AnimeTaste<filename>src/main/java/com/zhan_dui/utils/m3u8/ElementBuilder.java package com.zhan_dui.utils.m3u8; import java.net.URI; /** * @author dkuffner */ class ElementBuilder { private double duration; private URI uri; private PlaylistInfo playlistInfo; private EncryptionInfo...
938
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...
1,037
2,633
import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.ServletRequestEvent; import javax.servlet.ServletRequestListener; import javax.servlet.ServletRequestAttributeEvent; import javax.servlet.ServletRequestAttributeListener; import javax.servlet.annotation.WebServlet; import javax.se...
918
4,168
from common import get_patch_version if __name__ == '__main__': patch_version = get_patch_version() print(f"release-{patch_version - 1}", end="")
56
993
package com.netflix.servo.publish.atlas; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonGenerator; import com.netflix.servo.Metric; import com.netflix.servo.tag.BasicTagList; import com.netflix.servo.tag.TagList; import org.testng.annotations.Test; import java.io.StringWriter; i...
666
1,959
<reponame>cherry003/xamarin-android package com.xamarin.android.test.binding.resolveimport; public class Lib3 { public String field1; public void foo () {} }
57
353
#include <assert.h> #include <fcntl.h> #include <stdlib.h> #include <string.h> #include "../md4.h" #include "../extern.h" int main(int argc, char *argv[]) { int fd; struct opts opts; size_t sz; struct flist *fl; memset(&opts, 0, sizeof(struct opts)); assert(2 == argc); fd = open(argv[1], O_NONBLOCK | ...
215
1,056
<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 * ...
6,556
3,651
package com.orientechnologies.orient.core.sql.executor; import com.orientechnologies.orient.core.command.OCommandContext; import com.orientechnologies.orient.core.db.record.OIdentifiable; import com.orientechnologies.orient.core.sql.parser.OMatchPathItem; import com.orientechnologies.orient.core.sql.parser.ORid; impor...
917
885
<filename>interactive/tsconfig.json { "extends": "./.nuxt/tsconfig.json", "compilerOptions": { "strict": true, "strictNullChecks": true, "types": [ "vite/client" ] } }
90
585
#include "Colour.h" #include "../Interop/Interop.hpp" #include "Gfx.h" #include <cassert> using namespace OpenLoco::Interop; namespace OpenLoco::Colour { loco_global<uint8_t[32][8], 0x01136BA0> _colour_map_a; loco_global<uint8_t[32][8], 0x01136C98> _colour_map_b; void initColourMap() { // TO...
780
9,136
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: vector.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _...
17,119
453
#include "mlfq.h" #include <std/array_l.h> #include <std/array_m.h> #include <std/math.h> #include <kernel/util/spinlock/spinlock.h> #include <kernel/drivers/pit/pit.h> #define MLFQ_QUEUE_COUNT 4 #define MLFQ_PRIO_HIGH_QUANTUM 10 #define MLFQ_PRIO_LOW_QUANTUM 200 #define MLFQ_BOOST_INTERVAL 1000 typedef struct mlfq_e...
4,630
777
<filename>content/public/test/mock_special_storage_policy.h // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PUBLIC_TEST_MOCK_SPECIAL_STORAGE_POLICY_H_ #define CONTENT_PUBLIC_TEST_MOCK_SP...
921
1,706
<reponame>LiuZhiYong0718/Notes-master package com.lguipeng.notes.adpater; import android.animation.Animator; import android.animation.ObjectAnimator; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.Vie...
1,872
1,557
<filename>examples/symbolic/division-by-zero-3-35.c uint64_t main() { uint64_t a; uint64_t* x; x = malloc(8); *x = 0; // touch memory read(0, x, 1); *x = *x - 48; // division by zero if the input is '0' (== 48 == b00110000) a = 41 + (1 / *x); // division by zero if the input is '2' (== 50 == b0...
217
5,964
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkOSFile.h" #include "SkString.h" #include "Test.h" /** * Test SkOSPath::Join, SkOSPath::Basename, and SkOSPath::Dirname. * Will use SkOSPath::Join to append fi...
1,388
8,629
<reponame>pdv-ru/ClickHouse #include <Parsers/ASTIdentifier_fwd.h> #include <Parsers/ASTRenameQuery.h> #include <Parsers/CommonParsers.h> #include <Parsers/ParserRenameQuery.h> namespace DB { /// Parse database.table or table. static bool parseDatabaseAndTable( ASTRenameQuery::Table & db_and_table, IParser::Po...
1,672