max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
2,745
<filename>models/shared_base.py import numpy as np import torch def size(p): return np.prod(p.size()) class SharedModel(torch.nn.Module): def __init__(self): torch.nn.Module.__init__(self) @property def num_parameters(self): return sum([size(param) for param in self.parameters()]) ...
215
311
<filename>src/snowflake/connector/cpp/ArrowIterator/TimeStampConverter.cpp // // Copyright (c) 2012-2021 Snowflake Computing Inc. All rights reserved. // #include "TimeStampConverter.hpp" #include "Python/Helpers.hpp" #include "Util/time.hpp" #include <memory> namespace sf { TimeStampBaseConverter::TimeStampBaseConve...
3,413
3,428
<reponame>ghalimi/stdlib {"id":"02246","group":"easy-ham-1","checksum":{"type":"MD5","value":"b353269018884d01ee252bca5bd419ef"},"text":"From <EMAIL> Fri Oct 4 11:01:52 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>ass<EMAIL>int.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) wit...
1,058
669
<gh_stars>100-1000 """ Copyright (c) Facebook, Inc. and its affiliates. """ import sys from os import curdir, sep import qrcode from PIL import Image from http.server import BaseHTTPRequestHandler, HTTPServer PORT = 8000 class HTTPHandler(BaseHTTPRequestHandler): def do_GET(self): if (self.path.endswith(".png")):...
481
3,041
class PytestEthereumError(Exception): """ Base class for all Pytest-Ethereum errors. """ pass class DeployerError(PytestEthereumError): """ Raised when the Deployer is unable to deploy a contract type. """ pass class LinkerError(PytestEthereumError): """ Raised when the Lin...
132
441
<gh_stars>100-1000 package org.beetl.ext.jfinal3; import org.beetl.core.GroupTemplate; import org.beetl.ext.web.WebRender; import com.jfinal.render.Render; public class JFinal3BeetlRender extends Render { GroupTemplate groupTemplate; public JFinal3BeetlRender( GroupTemplate groupTemplate,String view){ super(); ...
210
384
<filename>src/programs/mdrun/tests/mdruncomparison.h /* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 2016,2018,2019,2021, by the GROMACS development team, led by * <NAME>, <NAME>, <NAME>, and <NAME>, * and including many others, as listed in the AUTHORS file in the * top-leve...
1,703
412
char a[100]; int main() { char *p, *q; q = p; __CPROVER_assume(!__CPROVER_same_object(p, 0)); p++; assert(!__CPROVER_same_object(p, 0)); }
76
1,805
#include <sys/time.h> #include <float.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> //#include <proc/readproc.h> // need to install procps-devel-3.2.8-25.el6.i686 #include <sys/time.h> #include <sys/resource.h> /* void getcpumem(float *s...
438
406
<gh_stars>100-1000 import pytest import gevent import logging import time from struct import pack, unpack from volttron.platform import get_services_core, jsonapi from platform_driver.interfaces.modbus_tk.server import Server from platform_driver.interfaces.modbus_tk.client import Client, Field from platform_driver.in...
4,352
432
package io.activej.rpc.client.sender; import io.activej.rpc.client.sender.helper.RpcClientConnectionPoolStub; import io.activej.rpc.client.sender.helper.RpcSenderStub; import io.activej.rpc.hash.ShardingFunction; import org.junit.Before; import org.junit.Test; import java.net.InetSocketAddress; import java.util.concu...
1,311
1,178
/* * Copyright 2020 Makani Technologies LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
3,908
3,673
<gh_stars>1000+ #pragma once #ifndef INCLUDE_SOCKFD_HPP #define INCLUDE_SOCKFD_HPP #include <sys/socket.h> #include <net/inet> #include "fd.hpp" class SockFD : public FD { public: explicit SockFD(const int id) : FD(id) {} bool is_socket() override { return true; } }; struct sockaddr; typedef uint32_t s...
171
407
// MIT License // // Copyright (c) 2019 <NAME>, Chair for Embedded Security. All Rights reserved. // Copyright (c) 2021 Max Planck Institute for Security and Privacy. All Rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documenta...
2,845
1,895
<reponame>a759389099/mybatis-plus-samples<filename>mybatis-plus-sample-resultmap/src/main/java/com/baomidou/mybatisplus/samples/resultmap/mapper/ManMapper.java package com.baomidou.mybatisplus.samples.resultmap.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.samples.resu...
186
3,976
<filename>NKUCodingCat/0006/0006.py<gh_stars>1000+ #coding=utf-8 #拿以前代码改的 import re,sys,os path = os.path.split(os.path.realpath(__file__))[0]+"/" Fliter = re.compile("[^A-Za-z-\']|((?<![A-Za-z])[-\'])|([-\'](?![A-Za-z]))") Divider = re.compile("\s") File = open(path+"list.txt").read() ex = re.split("[\r\n]",File) ex.a...
416
3,442
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty 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.or...
1,202
2,023
""" Small scanf-implementation. Python has powerful regular expressions but sometimes they are totally overkill when you just want to parse a simple-formatted string. C programmers use the scanf-function for these tasks (see link below). This implementation of scanf translates the simple scanf-format into regular exp...
1,617
423
<filename>pysen/process_utils.py import contextlib import logging import subprocess import sys from concurrent.futures import ThreadPoolExecutor from typing import IO, List, Optional, Sequence, Tuple from .reporter import Reporter def _read_stream(stream: IO[str], reporter: Reporter, loglevel: int) -> str: ret: ...
967
2,035
package org.splitbrain.giraffe; import android.app.Activity; import android.app.AlertDialog; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.content.SharedPr...
3,664
892
<filename>advisories/unreviewed/2022/05/GHSA-r338-g5vj-mxfp/GHSA-r338-g5vj-mxfp.json { "schema_version": "1.2.0", "id": "GHSA-r338-g5vj-mxfp", "modified": "2022-05-13T01:14:47Z", "published": "2022-05-13T01:14:47Z", "aliases": [ "CVE-2019-1754" ], "details": "A vulnerability in the authorization subsy...
592
852
/// /// \class l1t::Stage2Layer2EGammaAlgorithmFirmwareImp1 /// /// \author: <NAME> /// /// Description: first iteration of stage 2 jet algo #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "L1Trigger/L1TCalorimeter/interface/Stage2Layer2EGammaAlgorithmFirmware.h" #include "L1Trigger/L1TCalorimeter/...
13,299
347
<reponame>sp4cerat/Game-GUI<filename>src/Bmp.h<gh_stars>100-1000 /////////////////////////////////////////// #pragma once /////////////////////////////////////////// #include "core.h" #include "mathlib/Vector.h" #include <stdio.h> #include <stdlib.h> #include <string.h> //#include "error.h" ////////////////////////////...
1,203
777
<reponame>Sun-Joong/aifh /* * Artificial Intelligence for Humans * Volume 2: Nature Inspired Algorithms * Java Version * http://www.aifh.org * http://www.jeffheaton.com * * Code repository: * https://github.com/jeffheaton/aifh * * Copyright 2014 by <NAME> * * Licensed under the Apache License, Version 2.0 (...
528
1,144
<gh_stars>1000+ /* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2009 Samsung Electrnoics * <NAME> <<EMAIL>> */ #ifndef _SYS_PROTO_H_ #define _SYS_PROTO_H_ u32 get_device_type(void); #endif
93
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. #include "base/strings/utf_string_conversions.h" #include "build/build_config.h" #include "chrome/browser/vr/model/toolbar_state.h" #include "chrome/brows...
594
1,056
/* * 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 ...
2,246
737
/* default_pipeline.h <NAME>, 26 February 2014 Copyright (c) 2014 Datacratic Inc. All rights reserved. */ namespace Datacratic { struct DefaultPipeline : public Pipeline { DefaultPipeline(); void run(); Connector * createConnector(IncomingPin * incoming, OutgoingPin * ...
384
4,262
/* * 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 ...
1,298
2,389
<gh_stars>1000+ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; import io.kubernetes.client.fluent.Nested; import java.util.ArrayList; import java.util.function.Predicate; import java.lang.Integer; import java.lang.Deprecated; import io.kubernetes.client.fluent.BaseFlu...
4,256
839
<reponame>spring-cloud/spring-cloud-function /* * Copyright 2020-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 the License at * * https://www.apache.org/li...
606
14,668
<gh_stars>1000+ // Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_UPDATER_UTIL_H_ #define CHROME_UPDATER_UTIL_H_ #include "base/files/file_path.h" #include "base/strings/string_piece.h" #i...
1,876
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "value_converter.h" #include <vespa/config/common/exceptions.h> #include <vespa/vespalib/locale/c.h> #include <vespa/vespalib/util/stringfmt.h> using namespace vespalib; using namespace vespalib::slime; n...
1,065
577
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """Test for sequence summary network.""" import importlib import numpy as np import pytest import torch from neural_sp.models.torch_utils import np2tensor from neural_sp.models.torch_utils import pad_list def make_args(**kwargs): args = dict( input_dim=80...
581
514
<filename>duke-core/src/test/java/no/priv/garshol/duke/utils/ObjectUtilsTest.java package no.priv.garshol.duke.utils; import java.util.Collection; import java.util.HashMap; import java.util.Map; import no.priv.garshol.duke.DukeConfigException; import no.priv.garshol.duke.comparators.QGramComparator; import org.junit...
2,058
1,886
<reponame>isabella232/cinder-1 // Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) #pragma once #include "Python.h" /* * This file defines the C interface to the strict module loader. */ #ifdef __cplusplus extern "C" { #endif typedef struct _ErrorInfo { PyObject* msg; PyObject* filen...
1,404
2,868
/* * Copyright (c) 2015-2020, Intel Corporation * * 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 f...
13,545
14,668
// 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. #include "third_party/blink/public/platform/web_encrypted_media_request.h" #include "third_party/blink/public/platform/web_media_key_system_configuration...
567
4,756
<filename>cpp/src/phonenumbers/base/memory/singleton_posix.h<gh_stars>1000+ // Copyright (C) 2013 The Libphonenumber 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://w...
534
450
<gh_stars>100-1000 /** * Locale specific code. */ package io.github.jhipster.config.locale;
35
2,706
/* Copyright (c) 2013-2015 <NAME> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef GBA_OVERRIDES_H #define GBA_OVERRIDES_H #include <mgba-util/common.h>...
308
4,879
<gh_stars>1000+ #ifndef MWMBottomMenuState_h #define MWMBottomMenuState_h typedef NS_ENUM(NSUInteger, MWMBottomMenuState) { MWMBottomMenuStateHidden, MWMBottomMenuStateInactive, MWMBottomMenuStateActive, MWMBottomMenuStateLayers }; #endif /* MWMBottomMenuState_h */
111
386
<reponame>ccoderJava/bus<filename>bus-image/src/main/java/org/aoju/bus/image/metric/internal/pdu/AAssociateRQAC.java<gh_stars>100-1000 /********************************************************************************* * * * The MIT License ...
5,215
722
<filename>asteroid/masknn/norms.py<gh_stars>100-1000 from functools import partial import torch from torch import nn from torch.nn.modules.batchnorm import _BatchNorm from typing import List from .. import complex_nn from ..utils.torch_utils import script_if_tracing EPS = 1e-8 def z_norm(x, dims: List[int], eps: fl...
2,406
3,702
<reponame>mondeique/metatron-discovery /* * 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...
752
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...
5,721
1,005
import torch from torch import nn from torch.nn import functional as F from models.networks import BaseNetwork ################################################################################## # Sequential Models ################################################################################## class ResBlocks(nn.M...
7,185
734
<reponame>adamnemecek/tracktion_engine<gh_stars>100-1000 /* ,--. ,--. ,--. ,--. ,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018 '-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software | | | | \ '-' \ `--.| \ \ | | ...
2,862
6,449
<gh_stars>1000+ /* * Copyright 2009-2016 Weibo, 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 req...
937
1,186
<gh_stars>1000+ from werkzeug import BaseRequest, BaseResponse, run_simple, wrap_file import meinheld def view_file(req): if not 'uploaded_file' in req.files: return BaseResponse('no file uploaded') f = req.files['uploaded_file'] return BaseResponse(wrap_file(req.environ, f), mimetype=f.content_typ...
404
380
<gh_stars>100-1000 from influxdb_client import InfluxDBClient, Point from influxdb_client.client.write_api import SYNCHRONOUS with InfluxDBClient(url="http://localhost:8086", token="<PASSWORD>", org="my-org") as client: """ Prepare data """ _point1 = Point("my_measurement").tag("location", "Prague").f...
333
5,937
<gh_stars>1000+ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //+----------------------------------------------------------------------------- // // // $TAG EN...
707
3,702
<filename>discovery-server/src/main/java/app/metatron/discovery/query/druid/filters/BoundFilter.java<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.a...
724
14,668
<gh_stars>1000+ // 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. // This is a shim that injects Chrome's ICU initialization sequence into // SQLite's shell. BUILD.gn uses this instead of building the sql...
276
739
<gh_stars>100-1000 #!/usr/bin/env python import pygtk pygtk.require('2.0') import gtk class UIManagerExample: ui = '''<ui> <menubar name="MenuBar"> <menu action="File"> <menuitem action="Quit"/> </menu> <menu action="Sound"> <menuitem action="Mute"/> </menu> <menu...
2,253
2,564
<reponame>WakeHao/CainCamera<gh_stars>1000+ package com.cgfay.caincamera.activity; import android.Manifest; import android.app.Dialog; import android.app.ProgressDialog; import android.graphics.SurfaceTexture; import android.opengl.GLSurfaceView; import android.os.Build.VERSION; import android.os.Build.VERSION_CODES; ...
5,189
2,908
<filename>socket-common-interface/src/main/java/com/xuhao/didi/socket/common/interfaces/common_interfacies/client/ISender.java package com.xuhao.didi.socket.common.interfaces.common_interfacies.client; import com.xuhao.didi.core.iocore.interfaces.ISendable; /** * Created by xuhao on 2017/5/16. */ public interface ...
227
1,521
/** Copyright 2020 Alibaba Group Holding Limited. 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 w...
3,981
393
<reponame>cosmin-ionita/rxjava2-jdbc package org.davidmoten.rx.jdbc; import static org.junit.Assert.assertEquals; import java.util.Collections; import org.junit.Test; import com.github.davidmoten.guavamini.Lists; public class SqlInfoTest { @Test public void testExpansionNoParameters() { SqlInfo s ...
467
2,151
<gh_stars>1000+ // Copyright 2016 The SwiftShader 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 // // U...
3,198
32,544
<reponame>DBatOWL/tutorials package com.baeldung.systemrules; import static org.junit.Assert.assertEquals; import java.util.Scanner; import org.junit.Rule; import org.junit.Test; import org.junit.contrib.java.lang.system.TextFromStandardInputStream; import static org.junit.contrib.java.lang.system.TextFromStandardIn...
355
1,006
/**************************************************************************** * arch/renesas/src/rx65n/rx65n_definitions.h * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding ...
48,941
311
<gh_stars>100-1000 /* * Copyright (c) 2009-2020, <NAME> * 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 li...
1,028
367
<filename>C++/Using a DLL/print.h #ifndef PRINT_H #define PRINT_H #include <iostream> using namespace std; // Here is our slightly modified "print.h" from the "PrintDLL" project // __declspec() "declare special" -- Is a Microsoft specific keyword that allows you // to "specify specific information" about a ...
244
335
{ "word": "Xhosa", "definitions": [ "a member of a South African people traditionally living in the province of Eastern Cape. They form the second largest ethnic group in South Africa after the Zulus." ], "parts-of-speech": "Noun" }
73
512
/* * Copyright 2017 XBMC Foundation. 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 a...
1,142
634
/* * Copyright 2000-2009 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
445
3,756
package com.imooc.interview.questions.java.concurrency.thread; import java.io.IOException; public class ProcessCreationQuestion { public static void main(String[] args) throws IOException { // 获取 Java Runtime Runtime runtime = Runtime.getRuntime(); Process process = runtime.exec("cmd /k ...
137
324
/* * 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 ...
1,883
5,852
/* * Copyright (c) Facebook, Inc. and its affiliates. * 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. */ #pragma once #include <folly/Memory.h> #include <folly/dynamic.h> #include <memory> #include <proxyg...
326
2,308
/** * Copyright 2016 vip.com. * <p> * 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 w...
704
1,142
#ifndef APP_GEOMEAN_H #define APP_GEOMEAN_H #include <cmath> template <typename It, typename Op> double geomean(It begin, It end, Op op) { double sum = 0.0; size_t count = 0; while (begin != end) { sum += std::log(op(*begin)); ++begin; ++count; } sum /= static_cast<double>...
225
556
<reponame>danra/scnlib #!/usr/bin/env python3 import subprocess import sys import os import math import shutil def convert_size(size_bytes): if size_bytes == 0: return '0 B' size_name = ('B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB') i = int(math.floor(math.log(size_bytes, 1024))) p = m...
338
5,411
<reponame>thorium-cfx/fivem // 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 MOJO_PUBLIC_CPP_BINDINGS_LIB_TRACING_HELPER_H_ #define MOJO_PUBLIC_CPP_BINDINGS_LIB_TRACING_HELPER_H_ #define MANGLE_...
266
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...
740
488
<reponame>ouankou/rose<gh_stars>100-1000 #include <vector> #include <cstdint> #include <iostream> // DQ (10/18/2017): Added string support. #include<string> class Container { private: std::vector<int> m_Values; public: Container(){} void storeValue(int value) { ...
379
785
<filename>app/src/main/java/com/ozj/baby/event/IncrementEvent.java package com.ozj.baby.event; /** * Created by YX201603-6 on 2016/5/26. */ public class IncrementEvent { public int position; public int count; public IncrementEvent(int count, int position) { this.count = count; this.posit...
134
3,508
<reponame>PraneshASP/Leetcode<gh_stars>1000+ package com.fishercoder.solutions; public class _900 { public static class Solution1 { public static class RLEIterator { int index; int[] array; public RLEIterator(int[] A) { index = 0; array ...
682
301
/* * Copyright (c) 2018-2019 "Neo4j, Inc." [https://neo4j.com] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
6,842
310
{ "name": "<NAME> 2 (iOS)", "description": "A two-player strategy game for iOS.", "url": "http://shauninman.com/horrorvacui2/" }
52
1,979
/* * 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 ...
20,838
504
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1997. All rights reserved. GEOWORKS CONFIDENTIAL PROJECT: PCGEOS MODULE: swat - ntcurses FILE: attrib.c AUTHOR: <NAME>, Apr 08, 1997 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date D...
737
346
#include "assert.h" int main() { typedef struct { int x, y, z; } A; int i = 1; A a[3]; a[i].x = 1; a[i+1].z = 2; a[i-1].y = 3; assert(a[1].x == 1); assert(a[0].y == 3); assert(a[2].z == 2); return 0; }
128
372
import re import argparse import matplotlib.pyplot as plt import numpy as np def running_mean(x, n): cumsum = np.cumsum(np.insert(x, 0, 0)) return (cumsum[n:] - cumsum[:-n]) / float(n) def main(): parser = argparse.ArgumentParser() parser.add_argument('log_files', type=str, nargs='+') parser.add...
2,814
587
// // SPDX-License-Identifier: BSD-3-Clause // Copyright (c) Contributors to the OpenEXR Project. // //----------------------------------------------------------------------------- // // ACES image file I/O. // //----------------------------------------------------------------------------- #include <Iex.h> #include <...
5,615
5,964
<reponame>wenfeifei/miniblink49 /* * 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. */ #include "config.h" #include "StringConcatenate.h" // This macro is helpful for testing how many intermediate Stri...
1,636
3,459
package io.requery.test.model; import io.requery.Column; import io.requery.Entity; import io.requery.Key; /** * Created by mluchi on 03/08/2017. */ @Entity(cacheable = false) public abstract class AbstractChildOneToOneNoCascade { @Key long id; @Column String attribute; }
108
1,883
# Simple script to convert files from the FDDB format into sigsets # Author: <NAME> import os import sys from xml.dom.minidom import Document if len(sys.argv) < 3: print 'Usage: fddbtoSigset.py fddbFileIn xmlSigsetFileOut' sys.exit(-1) inFileName = sys.argv[1] outFileName = sys.argv[2] assert(os.path.exists(...
619
2,759
<filename>src/yb/util/split.cc // Copyright (c) YugaByte, 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 appl...
1,266
2,568
<filename>entries/r/recurly.com.json { "Recurly": { "domain": "recurly.com", "url": "https://www.recurly.com/", "tfa": [ "sms", "custom-software" ], "documentation": "https://docs.recurly.com/docs/two-factor-authentication", "keywords": [ "payments" ] } }
150
12,718
<filename>lib/libc/musl/arch/arm/atomic_arch.h #include "libc.h" #if __ARM_ARCH_4__ || __ARM_ARCH_4T__ || __ARM_ARCH == 4 #define BLX "mov lr,pc\n\tbx" #else #define BLX "blx" #endif extern hidden uintptr_t __a_cas_ptr, __a_barrier_ptr; #if ((__ARM_ARCH_6__ || __ARM_ARCH_6K__ || __ARM_ARCH_6KZ__ || __ARM_ARCH_6ZK__)...
1,097
1,594
/* * Copyright 2014 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
3,398
5,249
<reponame>KaliberAI/TensorRT from polygraphy.tools.base.tool import *
26
5,169
{ "name": "LCText", "version": "0.0.3", "summary": "文本相关的工具类。", "homepage": "https://github.com/mlcldh/LCText", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "mlcldh": "<EMAIL>" }, "platforms": { "ios": "6.0" }, "source": { "git": "https://github.com/mlcldh/LCTe...
424
303
<reponame>didindinn/database-as-a-service import os REDIS_PORT = os.getenv('DBAAS_NOTIFICATION_BROKER_PORT', '6379') REDIS_HOST = os.getenv('REDIS_HOST', 'localhost') BROKER_URL = os.getenv( 'DBAAS_NOTIFICATION_BROKER_URL', 'redis://{}:{}/0'.format(REDIS_HOST, REDIS_PORT) ) CELERYD_TASK_TIME_LIMIT = 10800 CEL...
386
5,169
<reponame>ftapp/cocoapods { "name": "YJTableViewFactory", "version": "3.1.0", "summary": "UITableView工厂,可自动填充数据源,填充Cell,缓存高。", "homepage": "https://github.com/937447974/YJTableViewFactory", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "阳君": "<EMAIL>" }, "source": { "gi...
360
317
<gh_stars>100-1000 /*! * Copyright (c) 2016 by Contributors * \file MxNetCpp.h * \brief meta include file for mxnet.cpp * \author <NAME>, <NAME> */ #ifndef MXNETCPP_H_ #define MXNETCPP_H_ #include "executor.h" #include "symbol.h" #include "ndarray.h" #include "operator.h" #include "optimizer.h" #include "kvstor...
187
2,209
import unittest from test import test_support as support from test.test_support import import_module # Skip test if _thread or _tkinter wasn't built or idlelib was deleted. import_module('threading') # imported by idlelib.PyShell, imports _thread tk = import_module('Tkinter') # imports _tkinter idletest = import_mod...
270
534
package mekanism.client.jei.machine; import com.mojang.blaze3d.matrix.MatrixStack; import java.util.Collections; import java.util.Map; import java.util.WeakHashMap; import javax.annotation.Nullable; import mekanism.api.chemical.pigment.Pigment; import mekanism.api.chemical.pigment.PigmentStack; import mekanism.api.rec...
1,771
348
{"nom":"Bellegarde-en-Forez","circ":"6ème circonscription","dpt":"Loire","inscrits":1344,"abs":795,"votants":549,"blancs":31,"nuls":14,"exp":504,"res":[{"nuance":"LR","nom":"<NAME>","voix":269},{"nuance":"REM","nom":"<NAME>","voix":235}]}
94