max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,006 | from .common import EWSAccountService, create_item_ids_element
from ..errors import ResponseMessageError
from ..util import create_element, MNS
class ExportItems(EWSAccountService):
"""MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/exportitems-operation"""
ERRORS_TO_CA... | 487 |
335 | <gh_stars>100-1000
{
"word": "Village",
"definitions": [
"A group of houses and associated buildings, larger than a hamlet and smaller than a town, situated in a rural area.",
"A self-contained district or community within a town or city, regarded as having features characteristic of village lif... | 149 |
3,073 | <filename>pkg/urbit/jets/e/shax.c
/* j/5/shax.c
**
*/
#include "all.h"
#include <urcrypt.h>
/* functions
*/
static u3_atom
_cqe_shay(u3_atom wid,
u3_atom dat)
{
c3_w len_w;
if ( !u3r_word_fit(&len_w, wid) ) {
return u3m_bail(c3__fail);
}
else {
c3_y out_y[32];
c3_y... | 2,370 |
844 | <gh_stars>100-1000
{
"github-username": "takshch",
"favourite-emoji": "😀",
"favourite-music": "https://soundcloud.com/maroon-5/what-lovers-do-feat-sza",
"favourite-color": "#fff"
} | 93 |
363 | /*
* 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,184 |
445 |
import re
import copy
import numpy as np
from astropy import _erfa as erfa
from astropy.utils.compat.misc import override__dir__
from astropy import units as u
from astropy.constants import c as speed_of_light
from astropy.wcs.utils import skycoord_to_pixel, pixel_to_skycoord
from astropy.utils.data_info import Mixi... | 31,157 |
1,405 | <filename>sample4/recompiled_java/sources/org/apache/commons/httpclient/methods/OptionsMethod.java
package org.apache.commons.httpclient.methods;
import java.util.Enumeration;
import java.util.StringTokenizer;
import java.util.Vector;
import org.apache.commons.httpclient.Header;
import org.apache.commons.httpclient.Ht... | 919 |
3,215 | import os
import sys
import time
import json
import unittest
import jc.parsers.stat
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
# Set the timezone on POSIX systems. Need to manually set for Windows tests
if not sys.platform.startswith('win32'):
os.environ['TZ'] = 'America/Los_Angeles'
time.tzset()
... | 1,712 |
6,098 | <reponame>ahmedengu/h2o-3<gh_stars>1000+
package water.parser;
import org.junit.*;
import java.io.File;
import water.Key;
import water.TestUtil;
import water.fvec.Frame;
import water.util.FileIntegrityChecker;
import water.util.FileUtils;
public class ParseProgressTest extends TestUtil {
// Attempt a multi-jvm par... | 559 |
921 | //-*****************************************************************************
//
// Copyright (c) 2013,
// <NAME> Imageworks Inc. and
// Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
/... | 1,891 |
417 | <reponame>Parcons/Torque3D<filename>Engine/source/core/util/str.cpp<gh_stars>100-1000
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associat... | 17,756 |
5,766 | //
// Cipher.h
//
// Library: Crypto
// Package: Cipher
// Module: Cipher
//
// Definition of the Cipher class.
//
// Copyright (c) 2008, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Crypto_Cipher_INCLUDED
#define Crypto_Cipher_INCLUDED
#incl... | 1,478 |
852 | <reponame>ckamtsikis/cmssw
#include "RecoEgamma/EgammaTools/interface/EgammaPCAHelper.h"
#include "DataFormats/HGCRecHit/interface/HGCRecHit.h"
#include "DataFormats/Math/interface/deltaPhi.h"
#include "DataFormats/ForwardDetId/interface/HGCalDetId.h"
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "... | 4,723 |
364 | package ca.uhn.fhir.interceptor.executor;
/*-
* #%L
* HAPI FHIR - Core Library
* %%
* Copyright (C) 2014 - 2021 Smile CDR, 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
*
... | 920 |
378 | <reponame>xinkang/Super4PCS<filename>src/super4pcs/algorithms/super4pcs.h<gh_stars>100-1000
// Copyright 2014 <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.apa... | 1,787 |
301 | <gh_stars>100-1000
"""
Functionality for skorch-based training.
"""
from .losses import CroppedLoss, mixup_criterion, TimeSeriesLoss
from .scoring import (CroppedTrialEpochScoring, PostEpochTrainScoring,
CroppedTimeSeriesEpochScoring, trial_preds_from_window_preds, predict_trials)
| 116 |
25,200 | /**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "matrix.h"
namespace fasttext {
Matrix::Matrix() : m_(0), n_(0) {}
Matrix::Matrix(int64_t m, int64_t... | 180 |
348 | <gh_stars>100-1000
"""Search implementation using a database of WiFi networks."""
from collections import defaultdict
from ichnaea.api.locate.constants import (
MAX_WIFI_CLUSTER_METERS,
MAX_WIFIS_IN_CLUSTER,
WIFI_MAX_ACCURACY,
WIFI_MIN_ACCURACY,
)
from ichnaea.api.locate.mac import (
aggregate_clu... | 1,325 |
2,863 | package spock.lang;
import org.spockframework.runtime.extension.ExtensionAnnotation;
import org.spockframework.runtime.extension.builtin.ResourceLockExtension;
import org.spockframework.runtime.model.parallel.ResourceAccessMode;
import org.spockframework.util.Beta;
import java.lang.annotation.*;
/**
* Allows to con... | 407 |
678 | <filename>WeChat-Headers/MMDumpReportData.h
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
@class NSMutableArray;
@interface MMDumpReportData : NSObject
{
NSMutableArray *m_uploadFilesArray;
unsigned lon... | 207 |
640 | <filename>books_and_notes/professional_courses/computer_organization_and_architecture/sources/hw/自己动手写CPU/tools/Bin2Mem/Bin2Mem.c<gh_stars>100-1000
#include <stdlib.h>
#include <stdio.h>
char *option_invalid = NULL;
char *option_file_in = NULL;
char *option_file_out = NULL;
FILE *file_in_descriptor = NULL;
... | 1,867 |
5,166 | <reponame>iconara/aws-doc-sdk-examples
/*
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package com.example.tags;
import software.amazon.awssdk.core.ResponseBytes;
import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.ser... | 3,056 |
372 | <filename>boon/src/main/java/org/boon/sort/UniversalComparator.java
/*
* Copyright 2013-2014 <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/L... | 2,455 |
5,169 | {
"name": "objrpc",
"version": "1.0.3",
"summary": "the gsrpc object-c injection runtimes",
"description": "A longer description of objrpc in Markdown format.\n\n* Think: Why did you write this? What is the focus? What does it do?\n* CocoaPods will be using this to generate tags, and improve search results.\n* ... | 353 |
734 | /*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
`---' `--' `... | 16,791 |
15,337 | <reponame>fairhopeweb/saleor
# Generated by Django 3.2.2 on 2021-06-17 16:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("discount", "0025_auto_20210506_0831"),
]
operations = [
migrations.AddField(
model_name="voucher",
... | 193 |
1,790 | /*
* Copyright (c) 2014, Cloudera, Inc. All Rights Reserved.
*
* Cloudera, Inc. licenses this file to you 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/LICE... | 1,143 |
891 | <gh_stars>100-1000
/*
* Copyright (C) 2008-2010 <NAME>
*
* This file is part of the JNR project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses... | 872 |
1,673 |
/*
!!DESCRIPTION!! forgetting to emit labels
!!ORIGIN!! Testsuite
!!LICENCE!! Public Domain
*/
/*
http://www.cc65.org/mailarchive/2014-10/11673.html
http://www.cc65.org/mailarchive/2014-10/11675.html
*/
#include <stdlib.h>
#include <stdio.h>
struct udata {
int (*u_sigvec[16])();
... | 376 |
5,169 | {
"name": "Crex",
"version": "0.1.0",
"summary": "Crex is an library for simple and type safe usage of Notification Center",
"description": "Crex is an library for simple and type safe usage of Notification Center. Posting extra information is so handy due to code completion.",
"homepage": "https://github.com... | 255 |
2,906 | """Contributed modules for Snorkel."""
| 11 |
763 | <reponame>zabrewer/batfish
package org.batfish.datamodel.vendor_family.f5_bigip;
import static org.junit.Assert.assertEquals;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.testing.EqualsTester;
import org.apache.commons.lang3.SerializationUtils... | 528 |
1,997 | /*
* Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" fil... | 3,101 |
526 | <reponame>FreddyZeng/iOSKeyPointExploration<gh_stars>100-1000
//
// HAI_goods_attr_info.h
// haitao
//
// Created by huangchengdu on 15/12/22.
// Copyright © 2015年 上海市配夸网络科技有限公司. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface HAI_goods_attr_info : NSObject
@end
| 146 |
2,151 | <reponame>rcoscali/libcxx
#ifndef TEST_SUPPORT_FILESYSTEM_INCLUDE_HPP
#define TEST_SUPPORT_FILESYSTEM_INCLUDE_HPP
#include <ciso646>
// Test against std::filesystem for STL's other than libc++
#ifndef _LIBCPP_VERSION
#define TEST_INCLUDE_STD_FILESYSTEM
#endif
#ifdef TEST_INCLUDE_STD_FILESYSTEM
#include <filesystem>
n... | 178 |
761 | /*
Copyright (c) 2016 <NAME>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to al... | 806 |
1,382 | <reponame>vankxr/liquid-dsp<filename>sandbox/firpfbch_synthesis_equivalence_test.c
//
// firpfbch_synthesis_equivalence_test.c
//
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include "liquid.internal.h"
#define DEBUG 1
int main() {
// options
unsigned int num_channels=4; // number of channel... | 2,784 |
839 | <reponame>AnEmortalKid/cxf
/**
* 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.... | 1,163 |
483 | <reponame>asad-awadia/nitrite-java
/*
* Copyright (c) 2017-2021 Nitrite 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
*
* http://www.apache.org/licenses/LICE... | 1,314 |
1,172 | // Copyright (C) 2005 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | 9,431 |
4,391 | # This sample tests the syntax handling for Python 3.11 exception groups
# as described in PEP 654.
def func1():
try:
pass
# This should generate an error if using Python 3.10 or earlier.
except* BaseException:
pass
# This should generate an error if using Python 3.10 or earlier.
... | 117 |
348 | {"nom":"Orgeux","circ":"2ème circonscription","dpt":"Côte-d'Or","inscrits":380,"abs":187,"votants":193,"blancs":4,"nuls":0,"exp":189,"res":[{"nuance":"LR","nom":"<NAME>","voix":99},{"nuance":"REM","nom":"<NAME>","voix":90}]} | 93 |
679 | <filename>main/svx/inc/svx/grafctrl.hxx
/**************************************************************
*
* 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 owners... | 2,021 |
5,871 | <reponame>shrin18/binaryen
#include <emscripten/em_asm.h>
int main() {
EM_ASM({ Module.print("Hello world"); });
int x = EM_ASM_INT({ return $0 + $1; }, 13, 27);
EM_ASM_({ Module.print("Got " + $0); }, x);
return 0;
}
| 99 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Roncourt","circ":"1ère circonscription","dpt":"Moselle","inscrits":718,"abs":464,"votants":254,"blancs":15,"nuls":6,"exp":233,"res":[{"nuance":"FN","nom":"<NAME>","voix":141},{"nuance":"REM","nom":"<NAME>","voix":92}]} | 115 |
778 | package org.aion.zero.impl.types;
import com.google.common.io.ByteStreams;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.Properties;
import java.util.regex.Patter... | 1,692 |
10,225 | package io.quarkus.config;
import java.util.Map;
import io.quarkus.runtime.annotations.StaticInitSafe;
import io.smallrye.config.common.MapBackedConfigSource;
@StaticInitSafe
public class StaticInitConfigSource extends MapBackedConfigSource {
public StaticInitConfigSource() {
super("", Map.of("config.sta... | 123 |
780 | <filename>projects/stage-1/middleware-frameworks/my-interceptor/src/main/java/org/geektimes/interceptor/AnnotatedInterceptor.java<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 additiona... | 4,017 |
322 | package com.imooc.lib_audio.mediaplayer.core;
import android.media.MediaPlayer;
import java.io.IOException;
public class CustomMediaPlayer extends MediaPlayer implements MediaPlayer.OnCompletionListener {
private Status mState = Status.IDLE;
private OnCompletionListener mListener;
public enum Status{
IDLE, IN... | 555 |
467 | <filename>external/source/armitage/src/ui/ATextField.java
package ui;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
import java.awt.*;
import java.awt.event.*;
/* A textfield with a popup menu to cut, copy, paste, and clear the textfield */
public class ATextField extends JTextField {... | 744 |
480 | <reponame>Dennisbonke/mlibc
#ifndef _SOCKET_H
#define _SOCKET_H
#include <abi-bits/gid_t.h>
#include <abi-bits/pid_t.h>
#include <bits/size_t.h>
#include <bits/posix/socklen_t.h>
#include <bits/ssize_t.h>
#include <abi-bits/uid_t.h>
#include <bits/posix/iovec.h>
#include <abi-bits/socket.h>
#include <stddef.h>
#ifd... | 1,359 |
774 | //
// BaseConsoleAdapter.java
//
// Lunar Unity Mobile Console
// https://github.com/SpaceMadness/lunar-unity-console
//
// Copyright 2015-2021 <NAME>, SpaceMadness.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You ma... | 1,211 |
622 | <filename>bayespy/inference/vmp/nodes/deterministic.py
################################################################################
# Copyright (C) 2013-2014 <NAME>
#
# This file is licensed under the MIT License.
################################################################################
import functools
i... | 5,576 |
939 | <gh_stars>100-1000
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 1,823 |
988 | /*
* PROGRAM: UTILITIES shared functions prototypes.
* MODULE: util_proto.h
* DESCRIPTION: Prototype header file for util.cpp
*
* The contents of this file are subject to the Interbase Public
* License Version 1.0 (the "License"); you may not use this file
* except in compliance ... | 452 |
453 | <filename>ChaseWhisply/src/main/java/fr/tvbarthel/games/chasewhisply/model/bonus/BonusEntryFactory.java
package fr.tvbarthel.games.chasewhisply.model.bonus;
import fr.tvbarthel.games.chasewhisply.R;
import fr.tvbarthel.games.chasewhisply.model.inventory.InventoryItemInformation;
public class BonusEntryFactory {
p... | 683 |
372 | <reponame>arithmetic1728/google-api-java-client-services
/*
* 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 ... | 1,953 |
502 | <reponame>xloya/iceberg<filename>spark/v3.2/spark/src/main/java/org/apache/iceberg/spark/CommitMetadata.java<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
* rega... | 681 |
335 | {
"word": "Hygroscopic",
"definitions": [
"(of a substance) tending to absorb moisture from the air.",
"Relating to humidity or its measurement."
],
"parts-of-speech": "Adjective"
} | 84 |
363 | /*
* 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,449 |
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 "ash/components/tether/notification_remover.h"
#include <memory>
#include "ash/components/tether/fake_active_host.h"
#include "... | 1,958 |
450 | package java.lang;
public class ArithmeticException extends Exception {
public ArithmeticException(String s) {
super(s);
}
}
| 48 |
435 | {
"copyright_text": "CC BY-NC-SA 4.0",
"description": "The talk will start with a brief introduction into what urllib3 is, what it accomplishes, and why it was created:\r\n\r\n\u201curllib3 is a tool that speaks a special language that lets you download puppy pictures from the Internet\u201d. That language that url... | 1,006 |
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_SIO_H
#define GBA_SIO_H
#include <mgba-util/common.h>
CXX_GUARD_... | 853 |
1,144 | /******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it *
... | 3,904 |
1,915 | // Copyright 2018 The casbin 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 a... | 8,766 |
433 | <gh_stars>100-1000
# -*- coding: utf-8 -*-
"""
cherry.api
~~~~~~~~~~~~
This module implements the cherry API.
:copyright: (c) 2018-2019 by <NAME>
:license: MIT License, see LICENSE for more details.
"""
from .base import load_data
from .trainer import Trainer
from .classifyer import Classify
from .performancer import... | 1,293 |
14,425 | /**
* 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... | 1,326 |
388 | package cn.wizzer.iot.mqtt;
import cn.wizzer.iot.model.IotDev;
import org.eclipse.paho.client.mqttv3.IMqttDeliveryToken;
import org.eclipse.paho.client.mqttv3.MqttCallback;
import org.eclipse.paho.client.mqttv3.MqttMessage;
import org.nutz.aop.interceptor.async.Async;
import org.nutz.dao.Dao;
import org.nutz.ioc.loade... | 742 |
1,584 | /*
* Copyright (c) 1991-2013 Kawahara Lab., Kyoto University
* Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology
* Copyright (c) 2005-2013 Julius project team, Nagoya Institute of Technology
* All rights reserved
*/
/* next_word functions */
#include "common.h"
#include "gen_next.h"
... | 2,359 |
343 | // Copyright 2015 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 applicable... | 3,880 |
1,800 | <reponame>anticrisis/go-sdl2
#if defined(__WIN32)
#include <SDL2/SDL_ttf.h>
#include <stdlib.h>
#else
#include <SDL_ttf.h>
#endif
| 69 |
1,100 | package com.xncoding.pos.service;
import com.xncoding.pos.dao.entity.Customer;
import com.xncoding.pos.dao.repository.CustomerRepository;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* CustomerService
*
* @author XiongNeng
* @version 1.0
* @since 20... | 558 |
1,025 | <filename>nlp/src/main/java/org/ocpsoft/prettytime/nlp/PrettyTimeParser.java
package org.ocpsoft.prettytime.nlp;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import j... | 2,847 |
1,514 | <reponame>fpmuniz/stepmania
/* LibTomCrypt, modular cryptographic library -- <NAME>
*
* LibTomCrypt is a library that provides various cryptographic
* algorithms in a highly modular and flexible manner.
*
* The library is free for all purposes without any express
* guarantee it works.
*/
/* Implements ECC over ... | 836 |
708 | <reponame>nairobi222/PopsTabView
package com.ccj.poptabview;
import java.util.HashMap;
import java.util.Map;
/**
* Created by chenchangjun on 17/7/26.
*/
public class PopsTabUtils {
/**
* 获取带逗号的string 例如 1,2,3,4,5,6
*
* @param paramsMap
* @return
*/
public static String mapToStrin... | 454 |
432 | <gh_stars>100-1000
/* $NetBSD: uplcom.c,v 1.21 2001/11/13 06:24:56 lukem Exp $ */
/*-
* Copyright (c) 2001-2003, 2005 <NAME> <<EMAIL>>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* ... | 11,822 |
2,151 | <filename>ios/chrome/browser/ui/ntp/ntp_util.h<gh_stars>1000+
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_NTP_NTP_UTIL_H_
#define IOS_CHROME_BROWSER_UI_NTP_NTP_UTIL_H_
... | 218 |
1,315 | #include "bamSortByCoordinate.h"
#include "BAMfunctions.h"
#include "BAMbinSortByCoordinate.h"
#include "BAMbinSortUnmapped.h"
#include "ErrorWarning.h"
#include "bam_cat.h"
void bamSortByCoordinate (Parameters &P, ReadAlignChunk **RAchunk, Genome &genome, Solo &solo) {
if (P.outBAMcoord) {//sort BAM if needed
... | 2,442 |
2,728 | <gh_stars>1000+
# 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.
#------------------------------------------------------... | 6,179 |
1,170 | <filename>VHGithubNotifier/View/VHPopUpButtonCell.h
//
// VHPopUpButtonCell.h
// VHGithubNotifier
//
// Created by viktorhuang on 2017/3/7.
// Copyright © 2017年 黄伟平. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface VHPopUpButtonCell : NSPopUpButtonCell
@end
| 120 |
450 | <filename>src/bin/gpoptutils/gpoptutils.c
/*
* 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 Lic... | 1,596 |
883 | <reponame>jerrywham/bludit
{
"plugin-data":
{
"name": "Compteur de visites",
"description": "Affichez le nombre de visites ou de visiteurs uniques dans la barre latérale de votre site."
},
"show-unique-visitors": "Afficher les visiteurs uniques"
} | 104 |
854 | <reponame>timxor/leetcode-journal
__________________________________________________________________________________________________
sample 52 ms submission
class Solution {
public:
vector<int> countBits(int num) {
vector<int> res(num+1,0);
for(int i=1;i<=num;i++){
res[i]=res[i>>1]+(i&1)... | 332 |
3,353 | <filename>jetty-util/src/main/java/org/eclipse/jetty/util/InetAddressSet.java<gh_stars>1000+
//
// ========================================================================
// Copyright (c) 1995-2021 Mort Bay Consulting Pty Ltd and others.
//
// This program and the accompanying materials are made available under the
//... | 757 |
318 | #include <stdlib.h>
#include <vector>
#include <set>
#include <functional>
#include <iostream>
#ifdef WITH_MAXFLOW_IBFS
# include <opengm/inference/auxiliary/minstcutibfs.hxx>
#endif
int main() {
#ifdef WITH_MAXFLOW_IBFS
typedef opengm::external::MinSTCutIBFS<int, int> MinStCutType;
MinStCutType g(5,2+3*2);
... | 344 |
1,747 | <gh_stars>1000+
/*-
* -\-\-
* Helios Services
* --
* Copyright (C) 2016 Spotify AB
* --
* 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/LICENS... | 379 |
548 | # Copyright 2019 ZTE corporation. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from . import repository
from .. import utilities
from ..models.irs.keras_model import KerasModel
from ..models.irs.tf_model import Input, TensorFlowModel
from ..keras_util import Config, get_inputs, get_outputs
@repository.... | 331 |
415 | //-----------------------------------------------------------------------------
// File: text.h
// Desc: class to enable drawing of text
// Copyright (C) 2005, <NAME>, <NAME>, UFRGS-Brasil
//-----------------------------------------------------------------------------
// This library is free software; you can redistrib... | 647 |
323 | /*
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 4,398 |
530 | package com.bladecoder.engineeditor.undo;
import com.bladecoder.engine.model.BaseActor;
import com.bladecoder.engine.model.Scene;
import com.bladecoder.engineeditor.Ctx;
import com.bladecoder.engineeditor.model.Project;
public class UndoDeleteActor implements UndoOp {
private BaseActor a;
private Scene s;
publi... | 196 |
11,902 | <filename>chia/wallet/key_val_store.py
from typing import Any
import aiosqlite
from chia.util.byte_types import hexstr_to_bytes
from chia.util.db_wrapper import DBWrapper
from chia.util.streamable import Streamable
class KeyValStore:
"""
Multipurpose persistent key-value store
"""
db_connection: ai... | 783 |
328 | <filename>app/src/main/java/com/stx/xhb/dmgameapp/data/entity/GameBean.java
package com.stx.xhb.dmgameapp.data.entity;
/**
* @author: xiaohaibin.
* @time: 2018/9/11
* @mail:<EMAIL>
* @github:https://github.com/xiaohaibin
* @describe: GameBean
*/
public class GameBean {
/**
* aid : 3712501
* arcurl ... | 521 |
7,789 | <filename>resilience4j-core/src/test/java/io/github/resilience4j/core/functions/OnceConsumerTest.java
package io.github.resilience4j.core.functions;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
import static org.assertj.core.api.Assertions.*;
/**
* C... | 481 |
2,144 | /**
* 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... | 1,744 |
3,459 | <filename>Real-Time Corruptor/BizHawk_RTC/libmupen64plus/mupen64plus-video-glide64mk2/src/Glide64/TexMod.h
/*
* Glide64 - Glide video plugin for Nintendo 64 emulators.
* Copyright (c) 2002 Dave2001
* Copyright (c) 2003-2009 Sergey 'Gonetz' Lipski
*
* This program is free software; you can redistribute it and/or modif... | 8,251 |
759 | <filename>Line/line_base.py
import pyecharts.options as opts
from pyecharts.charts import Line
from pyecharts.faker import Faker
c = (
Line()
.add_xaxis(Faker.choose())
.add_yaxis("商家A", Faker.values())
.add_yaxis("商家B", Faker.values())
.set_global_opts(title_opts=opts.TitleOpts(title="Line-基本示例"))... | 168 |
2,707 | package org.jetlinks.community.notify.manager.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.hswebframework.web.dict.EnumDict;
@Getter
@AllArgsConstructor
public enum NotifyState implements EnumDict<String> {
success("成功"),
error("失败");
private final String text;
@Overrid... | 147 |
14,965 | <filename>app/wails.json
{
"name": "xbar",
"outputfilename": "xbar",
"html": "frontend/public/index.html",
"js": "frontend/public/bundle.js",
"css": "frontend/public/bundle.css",
"frontend:build": "npm run build",
"frontend:install": "npm install"
}
| 121 |
2,223 | <filename>iPERCore/tools/human_digitalizer/smplx/body_models.py
# -*- coding: utf-8 -*-
# Max-Planck-Gesellschaft zur Förderung der Wissenschaften e.V. (MPG) is
# holder of all proprietary rights on this computer program.
# You can only use this computer program if you have closed
# a license agreement with MPG or you... | 21,303 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.