identifier stringlengths 42 383 | collection stringclasses 1
value | open_type stringclasses 1
value | license stringlengths 0 1.81k | date float64 1.99k 2.02k ⌀ | title stringlengths 0 100 | creator stringlengths 1 39 | language stringclasses 157
values | language_type stringclasses 2
values | word_count int64 1 20k | token_count int64 4 1.32M | text stringlengths 5 1.53M | __index_level_0__ int64 0 57.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/OpenPeerPower/OpenPeerPower.github.io/blob/master/Gemfile | Github Open Source | Open Source | Apache-2.0 | 2,021 | OpenPeerPower.github.io | OpenPeerPower | Ruby | Code | 95 | 353 | source 'https://rubygems.org'
ruby '> 2.5.0'
group :development do
gem 'rake', '13.0.1'
gem 'jekyll', '4.0.0'
gem 'compass', '1.0.3'
gem 'sass-globbing', '1.1.5'
gem 'stringex', '2.8.5'
end
group :jekyll_plugins do
gem 'jekyll-paginate', '1.1.0'
gem 'jekyll-redirect-from', '0.16.0'
gem 'jekyll-sitema... | 1,153 |
https://github.com/gxing19/Design-Patterns-Java/blob/master/src/main/java/com/gxitsky/structural/bridge/message/IMessage.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | Design-Patterns-Java | gxing19 | Java | Code | 25 | 91 | package com.gxitsky.structural.bridge.message;
/**
* @author gxing
* @desc 消息接口(消息渠道 : 微信消息, 短信消息, 邮件消息)
* @date 2021/6/18
*/
public interface IMessage {
void send(String content);
}
| 45,182 |
https://github.com/pteczar/c_learning_1/blob/master/LinkedIN_Courses/LEarning C/build_a_string_challenge.c | Github Open Source | Open Source | MIT | 2,022 | c_learning_1 | pteczar | C | Code | 39 | 158 | #include <stdio.h>
#include <string.h>
int main(int argc, char const *argv[])
{
char first[64];
char second[64];
char buffer[200];
puts("Enter the first string: ");
fgets(first,64,stdin);
puts("Enter the second string: ");
fgets(second,64,stdin);
strcpy(buffer,first);
strcat(... | 6,846 |
https://github.com/khinthandarkyaw98/Python_Practice/blob/master/numpy_differences.py | Github Open Source | Open Source | MIT | null | Python_Practice | khinthandarkyaw98 | Python | Code | 105 | 217 | # means two successive elements
# [1, 2, 3, 4], the discrete difference would be
# [2 - 1, 3 - 2, 4 - 3] = [1, 1, 1]
# diff()
import numpy as np
arr = np.array([10, 15, 25, 5])
newarr = np.diff(arr)
print(newarr)
"""
We can perform this operation repeatedly by giving parameter n.
E.g. for [1, 2, 3, 4], the dis... | 34,503 |
https://github.com/szbalx/composum-assets/blob/master/manager/package/src/main/content/jcr_root/libs/composum/assets/manager/tabs/image/image.js | Github Open Source | Open Source | MIT | 2,017 | composum-assets | szbalx | JavaScript | Code | 63 | 294 | /**
*
*
*/
'use strict';
(function (window) {
window.assets = window.assets || {};
(function (assets, core) {
assets.ImageTab = assets.AbstractManagerTab.extend({
initialize: function(options) {
assets.AbstractManagerTab.prototype.initialize.apply(this, [option... | 46,334 |
https://github.com/cirope/mawidabp/blob/master/test/controllers/findings/answers_controller_test.rb | Github Open Source | Open Source | MIT | 2,021 | mawidabp | cirope | Ruby | Code | 116 | 447 | require 'test_helper'
class Findings::AnswersControllerTest < ActionController::TestCase
include ActionMailer::TestHelper
setup do
@finding = findings :unconfirmed_weakness
login
end
test 'create finding answer' do
assert_enqueued_emails 1 do
assert_difference '@finding.finding_answers.cou... | 15,154 |
https://github.com/mikljohansson/syndicate/blob/master/design/module/inventory/search.tpl | Github Open Source | Open Source | MIT | null | syndicate | mikljohansson | null | Spoken | 40 | 220 | <h1><?= tpl_text('Search the inventory') ?></h1>
<?
$this->append('tabs', array(
'uri' => tpl_link('inventory','search'),
'text' => tpl_text('Search'),
'selected' => null == $request[0],
'template' => tpl_design_path('module/inventory/search_pane.tpl')));
$this->append('tabs', array(
'uri' => tpl_link('inventory... | 7,359 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/u/undertaker/src/main/scala/typingsSlinky/undertaker/undertakerStrings.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 30 | 122 | package typingsSlinky.undertaker
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object undertakerStrings {
@js.native
sealed trait Tasks extends StObject
@scala.inlin... | 44,532 |
https://github.com/BRKsReginaldo/BuyEshop/blob/master/resources/assets/js/reactApp.js | Github Open Source | Open Source | MIT | null | BuyEshop | BRKsReginaldo | JavaScript | Code | 57 | 193 | import React from 'react'
import ReactDOM from 'react-dom'
import Root from './Root'
import {HttpLink} from "apollo-link-http"
import {ApolloClient} from "apollo-client"
import {InMemoryCache} from "apollo-cache-inmemory"
import {ApolloProvider} from "react-apollo"
import {BrowserRouter} from "react-router-dom"
const ... | 25,040 |
https://github.com/nimble-dev/nimble/blob/master/packages/nimble/tests/testthat/test-externalCalls.R | Github Open Source | Open Source | BSD-3-Clause, CC-BY-4.0, GPL-2.0-only, GPL-1.0-or-later, MPL-2.0, GPL-2.0-or-later | 2,023 | nimble | nimble-dev | R | Code | 938 | 2,191 | ## This test file also serves as a demo for experimental features: calling externally compiled code, and calling R functions from compiled nimbleFunctions.
## It covers rough draft functionality for calling external compiled functions and calling arbitrary R functions from within compiled nimbleFunction (including BUGS... | 33,630 |
https://github.com/wakaaz/squadone-BG/blob/master/resources/views/auth/login.blade.php | Github Open Source | Open Source | MIT | null | squadone-BG | wakaaz | PHP | Code | 223 | 1,048 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>{{ config('app.... | 38,335 |
https://github.com/phlahut/Wonder.js/blob/master/lib/js/test/tool/service/globalTemp/GlobalTempTool.js | Github Open Source | Open Source | MIT | 2,019 | Wonder.js | phlahut | JavaScript | Code | 20 | 63 | 'use strict';
function getFloat32Array1(param) {
return param[/* globalTempRecord */34][/* float16Array1 */0];
}
exports.getFloat32Array1 = getFloat32Array1;
/* No side effect */
| 49,627 |
https://github.com/Rtimee/Picker3D---Clone/blob/master/Assets/[Picker3D]/Scripts/Others/ObjectDetector.cs | Github Open Source | Open Source | MIT | null | Picker3D---Clone | Rtimee | C# | Code | 161 | 549 | using System.Collections.Generic;
using UnityEngine;
public class ObjectDetector : Singleton<ObjectDetector>
{
#region Variables
[SerializeField] private float _pushForce;
private List<Rigidbody> _myObjects;
private List<Rigidbody> _MyObjects { get { return _myObjects == null ? _myObjects = new List... | 27,116 |
https://github.com/MayuriniPriya/Library-Management-System/blob/master/LMS-BackEnd/app/Models/Book.php | Github Open Source | Open Source | MIT | 2,021 | Library-Management-System | MayuriniPriya | PHP | Code | 47 | 158 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Filters\BookFilter;
class Book extends Model
{
use HasFactory, SoftDeletes;
/**
* The attributes that are mass assignable.
... | 33,493 |
https://github.com/clifordunique/sagaGitlabMirror/blob/master/Assets/prefab/environment/crawlspace hor small 2.prefab | Github Open Source | Open Source | MIT | 2,020 | sagaGitlabMirror | clifordunique | Unity3D Asset | Code | 420 | 2,085 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &985715600473275223
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1165937811521669768, guid: 9a924d914b9fc4bb08de633895db7063,
type: 3}
prop... | 37,142 |
https://github.com/uvbs/FullSource/blob/master/Source/Source/Client/CheckGameCheatLib/CheckGameCheat.h | Github Open Source | Open Source | MIT | 2,019 | FullSource | uvbs | C | Code | 16 | 67 | #ifndef _CHECKGAMECHEAT_H_
#define _CHECKGAMECHEAT_H_
extern "C" BOOL HastaLaVistaBaby(LPCSTR account, LPCSTR role, LPCSTR region, LPCSTR server);
#endif
| 9,441 |
https://github.com/imgag/ngs-bits/blob/master/src/cppREST/ServerWrapper.h | Github Open Source | Open Source | MIT | 2,023 | ngs-bits | imgag | C++ | Code | 83 | 326 | #ifndef SERVERWRAPPER_H
#define SERVERWRAPPER_H
#include "cppREST_global.h"
#include <QObject>
#include <QFile>
#include <QSslCertificate>
#include <QSslKey>
#include <QSslConfiguration>
#include <QSslSocket>
#include <QStandardPaths>
#include <QTimer>
#include <QFileSystemWatcher>
#include "Log.h"
#include "SslServe... | 24,767 |
https://github.com/ungdev/intranet-2015/blob/master/public/js/login.js | Github Open Source | Open Source | MIT | null | intranet-2015 | ungdev | JavaScript | Code | 52 | 193 | 'use strict'
var $form = $('form')
var $user = $('input[type="text"]')
var $pwd = $('input[type="password"]')
$form.submit(function (e) {
e.preventDefault()
$
.ajax({
url : '/login',
method: 'post',
data : {
login: $user.val(),
p... | 41,759 |
https://github.com/Altanb1337/cherrysoda-engine/blob/master/Engine/CherrySoda/Components/Graphics/MeshGraphicsComponent.h | Github Open Source | Open Source | MIT | 2,021 | cherrysoda-engine | Altanb1337 | C++ | Code | 68 | 343 | #ifndef _CHERRYSODA_COMPONENTS_MESHGRAPHICSCOMPONENT_H_
#define _CHERRYSODA_COMPONENTS_MESHGRAPHICSCOMPONENT_H_
#include <CherrySoda/Components/Graphics/GraphicsComponent.h>
#include <CherrySoda/Graphics/Graphics.h>
#include <CherrySoda/Graphics/Mesh.h>
namespace cherrysoda {
template <class VERTEX_T>
class MeshGrap... | 48,671 |
https://github.com/alldatacenter/alldata/blob/master/studio/micro-services/datasophon/datasophon-common/src/main/java/com/datasophon/common/model/StartWorkerMessageConfirmed.java | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT | 2,023 | alldata | alldatacenter | Java | Code | 25 | 86 | package com.datasophon.common.model;
import lombok.Data;
import java.io.Serializable;
@Data
public class StartWorkerMessageConfirmed implements Serializable {
private Long deliveryId;
public StartWorkerMessageConfirmed(Long deliveryId) {
this.deliveryId = deliveryId;
}
}
| 46,238 |
https://github.com/ishenli/winnie-ui/blob/master/src/album/default.tpl | Github Open Source | Open Source | MIT | null | winnie-ui | ishenli | null | Spoken | 26 | 146 | <div class="${classPrefix}">
<a href="javascript:;" class="${classPrefix}-close j-dialog-close">x</a>
<div class="${classPrefix}-content mp-album">
<div class="handlers">
<span class="prev handler"><i class="iconfont">󰅮</i></span>
<span class="next handler"><i class="icon... | 21,077 |
https://github.com/SammyB428/WFC/blob/master/SRC/CNetScheduleJob.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,021 | WFC | SammyB428 | C++ | Code | 1,573 | 4,319 | /*
** Author: Samuel R. Blackburn
** Internet: wfc@pobox.com
**
** Copyright, 1995-2019, Samuel R. Blackburn
**
** "You can get credit for something or get it done, but not both."
** Dr. Richard Garwin
**
** BSD License follows.
**
** Redistribution and use in source and binary forms, with or without
** modification, a... | 47,540 |
https://github.com/DavidHigueraFerrez/reservaespacios-etsit/blob/master/www/tpl/Admin/Resources/manage_resources_access.tpl | Github Open Source | Open Source | MIT | null | reservaespacios-etsit | DavidHigueraFerrez | null | Spoken | 218 | 1,084 | {*
Copyright 2017-2019 Nick Korbel
This file is part of phpScheduleIt.
phpScheduleIt 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 version 3 of the License, or
(at your option) any later version.
phpSc... | 12,320 |
https://github.com/eolabs-io/guzzle-mws-middleware/blob/master/src/UrlSigner.php | Github Open Source | Open Source | MIT | 2,020 | guzzle-mws-middleware | eolabs-io | PHP | Code | 287 | 1,009 | <?php
namespace EoLabs\GuzzleMwsMiddleware;
use GuzzleHttp\Psr7;
use Psr\Http\Message\RequestInterface;
class UrlSigner
{
/** @var string */
private $secret;
/** @var Psr\Http\Message\RequestInterface */
private $request;
public function __construct(string $secret)
{
$this->setSecret($... | 45,111 |
https://github.com/balabhaskarpatnala/InstantDelivery/blob/master/InstantDelivery.Model/Packages/PackageCustomerDto.cs | Github Open Source | Open Source | MIT | 2,020 | InstantDelivery | balabhaskarpatnala | C# | Code | 18 | 46 | namespace InstantDelivery.Model.Packages
{
public class PackageCustomerDto : PackageDto
{
public string StatusDescription { get; set; }
}
}
| 36,124 |
https://github.com/HiveMP/cloud-build-framework/blob/master/index.ts | Github Open Source | Open Source | MIT | 2,020 | cloud-build-framework | HiveMP | TypeScript | Code | 22 | 65 | import { ConfigSchema } from "./src/configSchema";
const config = require("./config.json") as ConfigSchema;
process.argv = ["node", "gulp", config["gulp-task"]];
const run = require("gulp-cli");
run();
| 1,035 |
https://github.com/qsphan/the-omega-project/blob/master/code_gen/src/mmap-test.c | Github Open Source | Open Source | BSD-2-Clause | 2,021 | the-omega-project | qsphan | C | Code | 574 | 2,527 | // RelTuple and SetTuple are Tuple's of Relations
// RelTuple is Transformation: [i,j] -> [i,j]
// SetTuple is IS: [i,j]: 1 <= i,j <= n // corresponds to # of statements in codegen
// Relation is normal relation: [i,j], 0=0
// int is effort that will default as 0
#include <code_gen/mmap-codegen.h>
#error "This code... | 32,452 |
https://github.com/emailclue/emailclue-java/blob/master/src/main/java/com/emailclue/api/model/Clue.java | Github Open Source | Open Source | MIT | 2,017 | emailclue-java | emailclue | Java | Code | 160 | 519 | package com.emailclue.api.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
public class Clue {
private final Status status;
private final ErrorType errorType;
private final List<String> didYouMean;
private final... | 23,879 |
https://github.com/AMWA-TV/nmos-scalability/blob/master/install/SetupPart1.sh | Github Open Source | Open Source | Apache-2.0 | null | nmos-scalability | AMWA-TV | Shell | Code | 34 | 105 | #!/bin/bash -e
cd "$( dirname "${BASH_SOURCE[0]}" )"
sudo -E ./SetProxies.sh
sudo ./RenameVM.sh $1
sudo ./Patch.sh
set +e
sudo ./GuestAdditions.sh
read -p "Press ENTER to reboot now or CTRL-C to abort"
sudo shutdown -r now
| 19,360 |
https://github.com/neophytos-sk/phigita-star/blob/master/www/my/js/xinha/modules/FullScreen/full-screen-xxx-min.js | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,016 | phigita-star | neophytos-sk | JavaScript | Code | 69 | 1,063 |
function FullScreen(editor,args)
{this.editor=editor;editor._superclean_on=false;cfg=editor.config;cfg.registerButton
('fullscreen',this._lc("Maximize/Minimize Editor"),[_editor_url+cfg.imgURL+'ed_buttons_main.gif',8,0],true,function(e,objname,obj)
{e._fullScreen();if(e._isFullScreen)
{obj.swapImage([_editor_url+cfg.i... | 45,514 |
https://github.com/mekyz/GlsPdf/blob/master/src/main/java/com/gls/pojo/MapClickInfo.java | Github Open Source | Open Source | BSD-3-Clause | null | GlsPdf | mekyz | Java | Code | 198 | 664 | /**
* Copyright 2016 ECCloud Corporation. All rights reserved.
*
* --------------------------------------------------------
* 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露.
* 版权所有:贝恩国际
* --------------------------------------------------------
*/
package com.gls.pojo;
import java.util.List;
/**
*
* 文 件 名:MapClickInfo<... | 10,243 |
https://github.com/ubirch/ubirch-web-ui-rest/blob/master/src/main/scala/com/ubirch/webui/services/connector/janusgraph/GremlinConnectorForTests.scala | Github Open Source | Open Source | Apache-2.0 | null | ubirch-web-ui-rest | ubirch | Scala | Code | 42 | 151 | package com.ubirch.webui.services.connector.janusgraph
import gremlin.scala.{ ScalaGraph, TraversalSource }
import org.apache.tinkerpop.gremlin.process.traversal.Bindings
protected class GremlinConnectorForTests extends GremlinConnector {
implicit val graph: ScalaGraph = null //TinkerGraph.open().asScala
val g: ... | 44,957 |
https://github.com/barrientoserwin/sisLicoreria/blob/master/database/migrations/2021_04_28_233915_trigger_venta.php | Github Open Source | Open Source | MIT | null | sisLicoreria | barrientoserwin | PHP | Code | 165 | 543 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class TriggerVenta extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//Cuando se registrar una venta
... | 36,693 |
https://github.com/keys4words/oop/blob/master/xml/lxml_with_ns.py | Github Open Source | Open Source | Apache-2.0 | null | oop | keys4words | Python | Code | 68 | 294 | import xml.etree.ElementTree as et
XML_NS = {'xsi': 'http://www.w3.org/2001/XMLSchema-instance'}
root = et.parse('data/test_ns.xml')
# first variant
for person in root.findall('{http://example.com/persons}person'):
name = person.find('{http://example.com/persons}name').text
alias = person.find('{http://exampl... | 45,595 |
https://github.com/f4b6a3/tsid-creator/blob/master/src/test/java/com/github/f4b6a3/tsid/TsidFactoryTest.java | Github Open Source | Open Source | MIT | 2,023 | tsid-creator | f4b6a3 | Java | Code | 2,035 | 6,392 | package com.github.f4b6a3.tsid;
import static org.junit.Assert.*;
import java.nio.ByteBuffer;
import java.time.Clock;
import java.time.Instant;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.util.Arrays;
import java.util.Random;
import java.util.SplittableRandom;
import java.util.concurrent.ThreadL... | 14,160 |
https://github.com/czahoi/boxmoe-dove-/blob/master/module/fun-user.php | Github Open Source | Open Source | Apache-2.0 | 2,022 | boxmoe-dove- | czahoi | PHP | Code | 497 | 2,507 | <?php
//中文注册用户名
if( boxmoe_com('sign_zhcn') ){
function ludou_sanitize_user ($username, $raw_username, $strict) {
$username = wp_strip_all_tags( $raw_username );
$username = remove_accents( $username );
$username = preg_replace( '|%([a-fA-F0-9][a-fA-F0-9])|', '', $username );
$username = preg_replace( '/&.+?;/... | 14,370 |
https://github.com/yoship1639/MikuMikuWorld/blob/master/MikuMikuWorld_Walker/Scripts/HUD/Aiming.cs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | MikuMikuWorld | yoship1639 | C# | Code | 207 | 612 | using MikuMikuWorld.GameComponents;
using MikuMikuWorld.Scripts;
using MikuMikuWorld.Scripts.Player;
using OpenTK;
using OpenTK.Graphics;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MikuMikuWorld.Scripts.HUD
{
... | 33,576 |
https://github.com/zhaoxin94/Dassl.pytorch/blob/master/dassl/data/datasets/__init__.py | Github Open Source | Open Source | MIT | 2,022 | Dassl.pytorch | zhaoxin94 | Python | Code | 26 | 60 | from .build import DATASET_REGISTRY, build_dataset # isort:skip
from .base_dataset import Datum, DatasetBase # isort:skip
from .da import *
from .dg import *
from .ssl import *
| 13,877 |
https://github.com/Heyaoxing/rich/blob/master/code/backstage/src/test/java/com/vigekoo/ApplicationTests.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | rich | Heyaoxing | Java | Code | 46 | 223 | package com.vigekoo;
import com.alibaba.fastjson.JSON;
import com.vigekoo.modules.sys.service.SysGeneratorService;
import org.apache.commons.io.IOUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.Sp... | 34,065 |
https://github.com/amininger/Soar/blob/master/Core/SoarKernel/src/rete.h | Github Open Source | Open Source | Unlicense | 2,016 | Soar | amininger | C | Code | 823 | 2,134 | /*************************************************************************
* PLEASE SEE THE FILE "license.txt" (INCLUDED WITH THIS SOFTWARE PACKAGE)
* FOR LICENSE AND COPYRIGHT INFORMATION.
*************************************************************************/
/* ===============================================... | 30,210 |
https://github.com/Starmel/RxNetworkApiClient/blob/master/RxNetworkApiClient/Classes/BodyConverters/BodyConvertible.swift | Github Open Source | Open Source | MIT | 2,021 | RxNetworkApiClient | Starmel | Swift | Code | 27 | 56 | //
// Created by admin on 10.08.2018.
// Copyright (c) 2018 WebAnt. All rights reserved.
//
import Foundation
public protocol BodyConvertible {
func createBody() -> Data
}
| 24,496 |
https://github.com/gwdgithubnom/monkey-clever/blob/master/arithemtic4c/src/ai/N-Queen/Genetic.cpp | Github Open Source | Open Source | MIT | null | monkey-clever | gwdgithubnom | C++ | Code | 588 | 2,229 | #include "Genetic.h"
Genetic::Genetic(int numOfQueens, int initialGroupNum)
{
m_adaptive.resize(initialGroupNum, 0);
m_accumuAdaptive.resize(initialGroupNum, 0);
m_QueenNum = numOfQueens;
m_BestAdaptive = 0;
m_NotSuccess = true;
for (int i = numOfQueens - 1; i >= 1; --i)
{
m_BestAdaptive += i; // 计算最佳适应度
}... | 2,350 |
https://github.com/SSGoveia/lawn/blob/master/R/random.R | Github Open Source | Open Source | MIT | 2,018 | lawn | SSGoveia | R | Code | 227 | 574 | #' Generate random data
#'
#' Generates random [data-GeoJSON] data, including [data-Point]'s
#' and [data-Polygon]'s, for testing and experimentation
#'
#' @export
#'
#' @param type Type of features desired: 'points' or 'polygons'.
#' @param n (integer) Number of features to generate.
#' @param bbox A bounding box insi... | 34,815 |
https://github.com/daejunpark/c-semantics/blob/master/libc/includes/complex.h | Github Open Source | Open Source | MIT | 2,016 | c-semantics | daejunpark | C | Code | 11 | 47 | #ifndef _KCC_COMPLEX_H
#define _KCC_COMPLEX_H
#include <kcc_settings.h>
#error complex.h not supported
#endif
| 4,017 |
https://github.com/HollowS96/shipper-news-shipsy-hackathon/blob/master/shipper-news/src/root/root.service.ts | Github Open Source | Open Source | MIT | 2,019 | shipper-news-shipsy-hackathon | HollowS96 | TypeScript | Code | 32 | 112 | import { Injectable } from "@nestjs/common";
import { exec } from "child_process";
@Injectable()
export class RootService {
async getUptime(res){
return await new Promise((resolve,reject)=>{
exec('uptime',(error,stdout,stdin)=>{
if(error){
reject(error);
... | 10,718 |
https://github.com/tommasomontefusco/aurelia-kendoui-plugin/blob/master/sample/src/samples/chart/bullet-charts/binding-to-remote-data.js | Github Open Source | Open Source | MIT | 2,015 | aurelia-kendoui-plugin | tommasomontefusco | JavaScript | Code | 133 | 400 | export class BindingToRemoteData {
datasource = new kendo.data.DataSource({
transport: {
read: function(options) {
return System.import('samples/charts/bullet-charts/json/april-sales.json!json')
.then(data => options.success(data));
}
}
});
legend = {
visible: false
}
... | 48,049 |
https://github.com/blu-dev/DiceRollStatistics/blob/master/DiceRollStatistics/src/main.cpp | Github Open Source | Open Source | Apache-2.0 | null | DiceRollStatistics | blu-dev | C++ | Code | 363 | 1,256 | #include <iostream>
#include <iomanip>
#include <vector>
#include <cmath>
#define GET_TOTAL(x,y) (size_t)pow(x,y)
void fillCombinations(std::vector<std::vector<size_t>>& combinations, size_t callcount = 0);
std::vector<std::pair<size_t, size_t>> findDuplicates(std::vector<std::vector<std::size_t>>& combinations);
st... | 51,299 |
https://github.com/joinive/laravel-demo1/blob/master/test.php | Github Open Source | Open Source | MIT | null | laravel-demo1 | joinive | PHP | Code | 179 | 494 | <?php
/**
* Created by PhpStorm.
* User: Lenovo
* Date: 2018/11/25
* Time: 18:59
*/
for($i=0;$i<3;$i++) {
for($j=0;$j<5;$j++) {
while(true) {
$a = mt_rand(10, 99);
$b = mt_rand(10, 99);
$c = $a + $b ;
$g1 = $a % 10 ;
$g2 = $b % 10;
... | 30,333 |
https://github.com/juckele/Vivarium/blob/master/vivarium-net/src/main/java/io/vivarium/net/UUIDSerializer.java | Github Open Source | Open Source | MIT | 2,016 | Vivarium | juckele | Java | Code | 33 | 144 | package io.vivarium.net;
import java.io.IOException;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import io.vivarium.util.UUID;
public class UUIDSerializer extends JsonSerializer<UUID>
{
@Override... | 19,490 |
https://github.com/KuaileY/DungeonsGame/blob/master/DungeonsGame/Assets/scripts/features/components/gameLogicComonents/LoadGameComponent.cs | Github Open Source | Open Source | MIT | null | DungeonsGame | KuaileY | C# | Code | 13 | 40 | using Entitas;
using Entitas.CodeGenerator;
[Input,SingleEntity]
public sealed class LoadGameComponent : IComponent
{
}
| 16,910 |
https://github.com/xBrandonGx97/Shaiya-Project-v3/blob/master/app/controllers/Home.php | Github Open Source | Open Source | MIT | null | Shaiya-Project-v3 | xBrandonGx97 | PHP | Code | 248 | 903 | <?php
namespace App\Controllers;
use Framework\Core\CoreController as Controller;
use App\Models as Models;
use Classes\Utils as Utils;
use Illuminate\Database\Capsule\Manager as Eloquent;
class Home extends Controller
{
public function __construct(Utils\User $user)
{
$this->user = $user;
$th... | 21,675 |
https://github.com/testobsessed/PythonSliderPuzzle/blob/master/solve_by_walk_paths.py | Github Open Source | Open Source | CC-BY-4.0 | null | PythonSliderPuzzle | testobsessed | Python | Code | 191 | 660 | from slider_game import Board
import random
# An attempt at a brute force solution by recursively walking
# all paths.
#
# It doesn't work because there are too many possibilities.
class Solver:
def __init__(self, tile_config):
self.start_state = tile_config[:]
self.board = Board(tile_config)
... | 30,926 |
https://github.com/sveinbjornt/sagadb.org/blob/master/tpl/translated/en.translated.tpl | Github Open Source | Open Source | BSD-3-Clause | 2,020 | sagadb.org | sveinbjornt | null | Spoken | 11 | 26 | %%trans_date%% translation into English by %%trans%% from the original Icelandic '%%title_orig%%'. | 22,097 |
https://github.com/sodero/clib2-1/blob/master/library/usergroup/setegid.c | Github Open Source | Open Source | Unlicense, BSD-3-Clause | null | clib2-1 | sodero | C | Code | 42 | 191 | /*
* $Id: usergroup_setegid.c,v 1.3 2006-01-08 12:04:27 clib2devs Exp $
*/
#ifndef _USERGROUP_HEADERS_H
#include "usergroup_headers.h"
#endif /* _USERGROUP_HEADERS_H */
/****************************************************************************/
int setegid(gid_t g)
{
int result;
ENTER();
SHOWVALUE(g);
ass... | 10,833 |
https://github.com/TomasHofman/testsuite.next/blob/master/tests-configuration-batch/src/test/java/org/jboss/hal/testsuite/test/configuration/batch/ThreadPoolTest.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | testsuite.next | TomasHofman | Java | Code | 353 | 1,491 | /*
* Copyright 2015-2016 Red Hat, Inc, and individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 39,308 |
https://github.com/hmrc/safety-and-security-entry-declaration-frontend/blob/master/test/pages/transport/AddOverallDocumentPageSpec.scala | Github Open Source | Open Source | Apache-2.0 | null | safety-and-security-entry-declaration-frontend | hmrc | Scala | Code | 286 | 841 | /*
* Copyright 2022 HM Revenue & Customs
*
* 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 a... | 52,337 |
https://github.com/jan-ruzicka/tesseract-ocr-sf/blob/master/dict/dawg.h | Github Open Source | Open Source | Apache-2.0 | null | tesseract-ocr-sf | jan-ruzicka | C | Code | 892 | 2,467 | /* -*-C-*-
********************************************************************************
*
* File: dawg.h (Formerly dawg.h)
* Description:
* Author: Mark Seaman, SW Productivity
* Created: Fri Oct 16 14:37:00 1987
* Modified: Wed Jun 19 16:50:24 1991 (Mark Seaman) marks@hpgrlt
* Langua... | 42,774 |
https://github.com/cmenzi/stryker-net/blob/master/src/Stryker.Core/Stryker.Core.UnitTest/MutationTest/ReferenceProvider.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | stryker-net | cmenzi | C# | Code | 115 | 418 | using Microsoft.CodeAnalysis;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.IO;
namespace Stryker.Core.UnitTest.MutationTest
{
public class ReferenceProvider
{
public List<PortableExecutableReference> GetReferencedAssemblies()
{
va... | 2,389 |
https://github.com/wangliguang/myRNTools/blob/master/src/Scene/TypeTabScene.js | Github Open Source | Open Source | MIT | 2,018 | myRNTools | wangliguang | JavaScript | Code | 181 | 725 | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Button
} from 'react-native';
import TypeTab from '../tools/TypeTab';
import {
goBack,
} from '../Route';
import style from './Ty... | 31,177 |
https://github.com/autodotua/PowerSwitcher/blob/master/PowerSwitcher/Core/Wrappers/PowerSchemasWrapper.cs | Github Open Source | Open Source | MIT | 2,021 | PowerSwitcher | autodotua | C# | Code | 518 | 1,797 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Management;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
namespace PowerSwitcher.Wrappers
{
public class Win32PowSchemasWrapper
{
public Guid GetActiveGuid()
{
Guid acti... | 37,508 |
https://github.com/skillkit/go-alexa/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,019 | go-alexa | skillkit | Ignore List | Code | 1 | 11 | examples/lambda-eawsy/handler* | 15,590 |
https://github.com/alldatacenter/alldata/blob/master/olap/ByConity/src/QueryPlan/ReadFromCnchHive.cpp | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT | 2,023 | alldata | alldatacenter | C++ | Code | 476 | 1,847 | /*
* Copyright (2022) Bytedance Ltd. and/or its affiliates
* 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... | 15,391 |
https://github.com/isabella232/bosun-grafana-app/blob/master/src/datasource/datasource.js | Github Open Source | Open Source | MIT | 2,022 | bosun-grafana-app | isabella232 | JavaScript | Code | 1,196 | 3,901 | import TableModel from 'app/core/table_model';
import moment from 'moment';
export class BosunDatasource {
constructor(instanceSettings, $q, backendSrv, templateSrv, $sce, $rootScope) {
this.annotateUrl = instanceSettings.jsonData.annotateUrl;
this.openTSDBUrl = instanceSettings.jsonData.openTSDBU... | 28,066 |
https://github.com/daviddyess/website/blob/master/src/components/LanguageSelector.js | Github Open Source | Open Source | MIT | null | website | daviddyess | JavaScript | Code | 104 | 360 | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { ButtonGroup, Button, Dropdown } from 'react-bootstrap';
import { Language, Link } from 'gatsby-plugin-i18next';
export class PureLanguageSelector extends Component {
static propTypes = {
changeLng: PropTypes.func,
lng: Pro... | 17,952 |
https://github.com/joanm3/FinalGrid/blob/master/Assets/Underwater Shader/Shaders/Underwater-Terrain.shader | Github Open Source | Open Source | MIT | 2,017 | FinalGrid | joanm3 | GLSL | Code | 934 | 3,343 | Shader "Underwater/Terrain"
{
Properties
{
[HideInInspector] _Control ("Control (RGBA)", 2D) = "red" {}
[HideInInspector] _Splat3 ("Layer 3 (A)", 2D) = "white" {}
[HideInInspector] _Splat2 ("Layer 2 (B)", 2D) = "white" {}
[HideInInspector] _Splat1 ("Layer 1 (G)", 2D) = "white" {}
[HideInInspector] _Splat0 (... | 30,932 |
https://github.com/Paladin1412/house/blob/master/java/classes/com/facebook/common/memory/NoOpMemoryTrimmableRegistry.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | house | Paladin1412 | Java | Code | 66 | 262 | package com.facebook.common.memory;
public class NoOpMemoryTrimmableRegistry
implements MemoryTrimmableRegistry
{
private static NoOpMemoryTrimmableRegistry sInstance = null;
public static NoOpMemoryTrimmableRegistry getInstance()
{
try
{
if (sInstance == null) {
sInstance = new NoOpMe... | 10,360 |
https://github.com/PRETgroup/goFB/blob/master/goEFB/enforcer_example_waterboiler.go | Github Open Source | Open Source | MIT | null | goFB | PRETgroup | Go | Code | 370 | 1,437 | package main
//a policy begins with "require(condition)", which can be qualified with either
//until(time) or before(time), and must finished with a recover `code`;
//WaterBoilerEnforcer example of an Enforcer
var WaterBoilerEnforcer = Enforcer{
Name: "WaterBoilerEnforcer",
IO: IO{
Enforce: []IOLine{
{
Nam... | 15,878 |
https://github.com/rkuroiwa/kurotwi/blob/master/template/listmenu_list.tpl | Github Open Source | Open Source | MIT | null | kurotwi | rkuroiwa | null | Spoken | 7 | 65 | <div slug='{$item->slug}' id_str='{$item->id_str}'>
<span>{$item->slug}{if $item->mode=='private'}<span class='icon-lock'></span>{/if}</span>
</div>
| 33,181 |
https://github.com/FergusDeveloper/pyOCD/blob/master/scripts/generate_flash_algo.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | pyOCD | FergusDeveloper | Python | Code | 875 | 2,449 | #!/usr/bin/env python3
# pyOCD debugger
# Copyright (c) 2011-2020 Arm Limited
# SPDX-License-Identifier: Apache-2.0
#
# 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.o... | 38,171 |
https://github.com/firelab/windninja/blob/master/src/gui/cmake_gui.cpp | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-public-domain, BSD-2-Clause | 2,023 | windninja | firelab | C++ | Code | 404 | 1,164 | /******************************************************************************
*
* $Id$
*
* Project: WindNinja Qt GUI
* Purpose: main() function to initiate Qt GUI
* Author: Kyle Shannon <ksshannon@gmail.com>
*
******************************************************************************
*
* THIS SOFTWA... | 3,677 |
https://github.com/BramGruneir/loadgen/blob/master/tpch/query12.go | Github Open Source | Open Source | Apache-2.0 | 2,018 | loadgen | BramGruneir | Go | Code | 82 | 271 | package main
var query12 = `
SELECT
l_shipmode,
SUM(CASE
WHEN o_orderpriority = '1-URGENT'
or o_orderpriority = '2-HIGH'
THEN 1
ELSE 0
END) AS high_line_count,
SUM(CASE
WHEN o_orderpriority <> '1-URGENT'
AND o_orderpriority <> '2-HIGH'
THEN 1
ELSE 0
END) AS low_line_count
FROM
orders,
lineit... | 37,585 |
https://github.com/9000miles/Unreal.Net/blob/master/DotNetPlugin/Plugins/DotNet/Source/ThirdParty/DotnetInUE/Unreal.Tests/TestCodeWriter.cs | Github Open Source | Open Source | MIT | 2,021 | Unreal.Net | 9000miles | C# | Code | 136 | 452 | // Copyright (c) 2021 Keen Software House
// Licensed under the MIT license.
using System.IO;
using Unreal.Generation;
using Xunit;
namespace Unreal.Tests
{
public class TestCodeWriter
{
[Fact]
public void TestBlock()
{
var str = new StringWriter();
str.NewLine ... | 47,593 |
https://github.com/BYVoid/notes_extract/blob/master/ext/midi/midi_track.c | Github Open Source | Open Source | MIT | 2,013 | notes_extract | BYVoid | C | Code | 455 | 1,342 | /*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License
* as published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it... | 39,330 |
https://github.com/ResurrectionRemix/android_frameworks_base/blob/master/tools/bit/util.h | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unicode | 2,021 | android_frameworks_base | ResurrectionRemix | C++ | Code | 280 | 629 | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 43,350 |
https://github.com/szepeviktor/w3-total-cache-fixed/blob/master/lib/Minify/Minify/ImportProcessor.php | Github Open Source | Open Source | GPL-2.0-or-later, MIT | 2,018 | w3-total-cache-fixed | szepeviktor | PHP | Code | 825 | 2,227 | <?php
/**
* Class Minify_ImportProcessor
* @package Minify
*/
/**
* Linearize a CSS/JS file by including content specified by CSS import
* declarations. In CSS files, relative URIs are fixed.
*
* @imports will be processed regardless of where they appear in the source
* files; i.e. @imports commented out or in... | 1,314 |
https://github.com/gnoliyil/fuchsia/blob/master/src/graphics/display/drivers/intel-i915/power-unittest.cc | Github Open Source | Open Source | BSD-2-Clause | 2,022 | fuchsia | gnoliyil | C++ | Code | 578 | 2,561 | // Copyright 2022 The Fuchsia 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 "src/graphics/display/drivers/intel-i915/power.h"
#include <lib/mmio-ptr/fake.h>
#include <lib/mmio/mmio.h>
#include <zircon/pixelformat.h>
#inc... | 24,970 |
https://github.com/Snapecraft-Serverteam/CustomServerUtil-v2/blob/master/src/main/java/net/snapecraft/CustomServerUtilv2/essentials/sunCMD.java | Github Open Source | Open Source | MIT | null | CustomServerUtil-v2 | Snapecraft-Serverteam | Java | Code | 59 | 284 | package net.snapecraft.CustomServerUtilv2.essentials;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import net.snapecraft.CustomServerUtilv2.CustomServerUtilv2;
public class sunCMD implements CommandExecutor {
... | 26,285 |
https://github.com/Hiroaki-Tanaka-0606/BerryCurvature/blob/master/variables.hpp | Github Open Source | Open Source | MIT | 2,020 | BerryCurvature | Hiroaki-Tanaka-0606 | C++ | Code | 286 | 615 | #include <complex>
using namespace std;
//constants
int buffer_length; //length of buffer when reading one line from input file
char* fileName_default; //default name of input file
char** ordinalSuffix; //"st","nd","rd","th"
int fileName_length; //max length of file name (including '\0')
int matrixElement_length; //max... | 33,065 |
https://github.com/shamanDevel/jME3-OpenCL-Library/blob/master/src/main/java/org/shaman/jmecl/particles/ParticleController.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | jME3-OpenCL-Library | shamanDevel | Java | Code | 669 | 2,871 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.shaman.jmecl.particles;
import com.jme3.app.SimpleApplication;
import com.jme3.opencl.Buffer;
import com.jme3.opencl.Kerne... | 35,696 |
https://github.com/ardieMejia/myChatLive2/blob/master/resources/views/welcome.blade.php | Github Open Source | Open Source | MIT | 2,019 | myChatLive2 | ardieMejia | Blade | Code | 45 | 293 | <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/c... | 49,247 |
https://github.com/BachToTheFuture/haikuports/blob/master/dev-lang/python/patches/python-3.2b2.patch | Github Open Source | Open Source | MIT | 2,020 | haikuports | BachToTheFuture | null | Spoken | 616 | 3,276 | diff -urN Python-3.2b2/Lib/plat-haiku/regen Python-3.2b2-haiku/Lib/plat-haiku/regen
--- Python-3.2b2/Lib/plat-haiku/regen 1970-01-01 00:00:00.000000000 +0000
+++ Python-3.2b2-haiku/Lib/plat-haiku/regen 2010-11-22 11:11:57.509870080 +0000
@@ -0,0 +1,3 @@
+#! /bin/sh
+set -v
+python$EXE ../../Tools/scripts/h2py.py -i '(u... | 47,883 |
https://github.com/gcaufield/FitFileTools/blob/master/Dynastream.Fit/Fit/Profile/Types/SitUpExerciseName.cs | Github Open Source | Open Source | MIT | null | FitFileTools | gcaufield | C# | Code | 364 | 831 | #region Copyright
////////////////////////////////////////////////////////////////////////////////
// The following FIT Protocol software provided may be used with FIT protocol
// devices only and remains the copyrighted property of Garmin Canada Inc.
// The software is being provided on an "as-is" basis and as an acco... | 4,702 |
https://github.com/kinpa200296/cmdpy/blob/master/core/loader.py | Github Open Source | Open Source | MIT | null | cmdpy | kinpa200296 | Python | Code | 191 | 762 | import importlib
import logging
import pkgutil
logger = logging.getLogger('cmdpy.core.loader')
def inspect_package(pkg_name):
commands = []
for importer, name, is_pkg in pkgutil.iter_modules([pkg_name]):
fullname = '.'.join([pkg_name, name])
tmp = inspect_module(fullname)
try:
... | 26,477 |
https://github.com/KRoszyk/faimed3d/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,021 | faimed3d | KRoszyk | Makefile | Code | 61 | 222 | .ONESHELL:
SHELL := /bin/bash
SRC = $(wildcard ./*.ipynb)
DIST := python setup.py sdist bdist_wheel
all: faimed3d docs
faimed3d: $(SRC)
nbdev_build_lib
touch faimed3d
sync:
nbdev_update_lib
docs_serve: docs
cd docs && bundle exec jekyll serve
docs: $(SRC)
nbdev_build_docs
touch docs
test:
nbdev_test_nbs
... | 7,213 |
https://github.com/DataSciGeek/actor-platform/blob/master/actor-apps/app-android/src/main/java/im/actor/messenger/app/fragment/tour/TourFragment.java | Github Open Source | Open Source | MIT | 2,015 | actor-platform | DataSciGeek | Java | Code | 135 | 616 | package im.actor.messenger.app.fragment.tour;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
impo... | 34,351 |
https://github.com/kenferrara/pbis-open/blob/master/dcerpc/ncklib/cncthd.c | Github Open Source | Open Source | HP-1986, OLDAP-2.8, BSD-4-Clause-UC, BSD-2-Clause, Apache-2.0 | 2,020 | pbis-open | kenferrara | C | Code | 895 | 3,165 | /*
*
* (c) Copyright 1989 OPEN SOFTWARE FOUNDATION, INC.
* (c) Copyright 1989 HEWLETT-PACKARD COMPANY
* (c) Copyright 1989 DIGITAL EQUIPMENT CORPORATION
* To anyone who acknowledges that this file is provided "AS IS"
* without any express or implied warranty:
* permission to use, copy, modify, a... | 45,218 |
https://github.com/bocse/multumesc.org/blob/master/multumesc/src/main/java/com/bocse/multumesc/parser/SenatorPresenceParser.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | multumesc.org | bocse | Java | Code | 743 | 3,350 | package com.bocse.multumesc.parser;
import com.bocse.multumesc.data.Person;
import com.bocse.multumesc.data.Vote;
import com.gargoylesoftware.htmlunit.*;
import com.gargoylesoftware.htmlunit.html.DomElement;
import com.gargoylesoftware.htmlunit.html.HtmlForm;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import... | 7,967 |
https://github.com/ghilbing/Movies-CodePath-Final/blob/master/app/src/main/java/com/example/codepath/moviestmbd/Prefs.java | Github Open Source | Open Source | Apache-2.0 | null | Movies-CodePath-Final | ghilbing | Java | Code | 105 | 423 | package com.example.codepath.moviestmbd;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
/**
* Created by gretel on 9/16/17.
*/
public class Prefs {
public static int getCurrentSortMethod(Context context) {
String key = context.get... | 20,626 |
https://github.com/rafan/vespa/blob/master/linguistics/src/main/java/com/yahoo/language/process/StemMode.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | vespa | rafan | Java | Code | 147 | 305 | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.language.process;
/**
* An enum of the stemming modes which can be requested.
* Stemming implementation may support a smaller number of modes by mapping a mode to a more
* inclusi... | 30,063 |
https://github.com/flamez57/mysweet/blob/master/pc_shop/views/order/logistics.tpl | Github Open Source | Open Source | MIT | 2,019 | mysweet | flamez57 | null | Spoken | 329 | 2,829 | <!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8" />
<title>最家</title>
<?=\hl\HLView::css('public.css');?>
<?=\hl\HLView::css('myorder.css');?>
</head>
<body>
<!------------------------------head------------------------------>
<div class="head ding">
<div class="wrapper clearfix">
<div... | 43,997 |
https://github.com/kokizzu/UVa/blob/master/699/699.go | Github Open Source | Open Source | MIT | 2,022 | UVa | kokizzu | Go | Code | 179 | 503 | // UVa 699 - The Falling Leaves
package main
import (
"fmt"
"io"
"os"
)
const max = 200
type node struct {
n int
left, right *node
}
var (
low, high int
sums []int
in io.ReadCloser
)
func nextNumber() int {
var n int
fmt.Fscanf(in, "%d", &n)
return n
}
func sumTree(root *node, id... | 26,959 |
https://github.com/Yo-Chin/QuickSheet/blob/master/Editor/BaseMachine.cs | Github Open Source | Open Source | MIT | 2,021 | QuickSheet | Yo-Chin | C# | Code | 405 | 980 | ///////////////////////////////////////////////////////////////////////////////
///
/// BaseMachine.cs
///
/// (c)2014 Kim, Hyoun Woo
///
///////////////////////////////////////////////////////////////////////////////
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
n... | 29,602 |
https://github.com/Manuzor/ezEngine/blob/master/Code/Engine/Foundation/Math/Implementation/Angle_inl.h | Github Open Source | Open Source | CC-BY-3.0 | null | ezEngine | Manuzor | C | Code | 301 | 1,026 | #pragma once
template<typename Type>
EZ_FORCE_INLINE Type ezAngle::Pi()
{
return static_cast<Type>(3.1415926535897932384626433832795);
}
template<typename Type>
EZ_FORCE_INLINE Type ezAngle::DegToRadMultiplier()
{
return Pi<Type>() / (Type) 180;
}
template<typename Type>
EZ_FORCE_INLINE Type ezAngle::RadToDegMu... | 25,104 |
https://github.com/composer-synchronizer/composer-synchronizer/blob/master/src/Synchronizers/Nette2/resources/composer-synchronizer.neon | Github Open Source | Open Source | BSD-3-Clause | 2,018 | composer-synchronizer | composer-synchronizer | null | Spoken | 9 | 24 | # This file was created by composer-synchronizer/composer-synchronizer package
includes:
| 43,084 |
https://github.com/apache/flink/blob/master/flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecMatch.java | Github Open Source | Open Source | BSD-3-Clause, OFL-1.1, ISC, MIT, Apache-2.0 | 2,023 | flink | apache | Java | Code | 1,293 | 4,971 | /*
* 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 ... | 20,954 |
https://github.com/geolysis/gz3-base/blob/master/src/Mvc/Service/AbstractService.php | Github Open Source | Open Source | BSD-3-Clause | null | gz3-base | geolysis | PHP | Code | 126 | 416 | <?php
/**
* Gz3Base - Zend Framework Base Tweaks / Zend Framework Basis Anpassungen
* @package Gz3Base\Service
* @author Andreas Gerhards <ag.dialogue@yahoo.co.nz>
* @copyright ©2016-2017, Andreas Gerhards - All rights reserved
* @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause - Please check LICE... | 27,556 |
https://github.com/joschi/java-metadata/blob/master/docs/checksums/liberica/bellsoft-jdk8u382+6-macos-amd64.pkg.md5 | Github Open Source | Open Source | MIT | 2,023 | java-metadata | joschi | null | Spoken | 2 | 42 | 4f05f3e047e2d7b995228e691472fe25 bellsoft-jdk8u382+6-macos-amd64.pkg
| 47,417 |
https://github.com/happybin92/trino/blob/master/plugin/trino-hive/src/main/java/io/trino/plugin/hive/security/SemiTransactionalSqlStandardAccessControlMetastore.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | trino | happybin92 | Java | Code | 193 | 681 | /*
* 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
* distribut... | 26,837 |
https://github.com/tsukushibito/Daifugo/blob/master/Daifugo/RoleRank.cs | Github Open Source | Open Source | Apache-2.0 | null | Daifugo | tsukushibito | C# | Code | 14 | 49 | namespace Daifugo
{
public enum RoleRank
{
Daifugo,
Fugo,
Heimin,
Hinmin,
Daihinmin,
}
} | 41,369 |
https://github.com/sathishbabu123/CRFO-Web-Development/blob/master/src/components/landingPage.js | Github Open Source | Open Source | MIT | null | CRFO-Web-Development | sathishbabu123 | JavaScript | Code | 89 | 288 | import React from 'react';
import { Card, Box, makeStyles } from '@material-ui/core';
// import { Button } from '@material-ui/core/Button';
import Button from '@material-ui/core/Button';
const useStyles = makeStyles({
login: {
position: 'absolute',
left: '50%',
top: '50%',
transform: 'translate(-50%,... | 36,337 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.