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/thepercentageguy/Gravelbox/blob/master/Assets/Piston.cs | Github Open Source | Open Source | MIT | null | Gravelbox | thepercentageguy | C# | Code | 130 | 406 | using UnityEngine;
public class Piston : MonoBehaviour
{
protected bool isOn = false;
public float length = 10f;
public Transform piston;
protected float lerp = 0;
protected Vector2 currPos;
// Start is called before the first frame update
void Start()
{
currPos = piston.positi... | 30,732 |
https://github.com/omega87910/jetbot_app_communication/blob/master/APP/app/src/main/java/com/example/jetsonnanomaintest1/Guide.java | Github Open Source | Open Source | MIT | 2,021 | jetbot_app_communication | omega87910 | Java | Code | 629 | 3,135 | package com.example.jetsonnanomaintest1;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.util.Base64;
import andr... | 16,143 |
https://github.com/flashing99/hotel-set/blob/master/resources/views/backend/layouts/partials/sidebar.blade.php | Github Open Source | Open Source | MIT | null | hotel-set | flashing99 | PHP | Code | 333 | 1,347 |
<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="index3.html" class="brand-link">
<img src="/adminlte/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
style="opacity: .8">
<s... | 16,690 |
https://github.com/marcopennekamp/lore/blob/master/compiler/src/lore/compiler/cli/CliBuildOptionsParser.scala | Github Open Source | Open Source | MIT | 2,021 | lore | marcopennekamp | Scala | Code | 287 | 822 | package lore.compiler.cli
import lore.compiler.build.{BuildApi, BuildOptions, JsonBuildOptionsParser}
import scopt.{OParser, Read}
import java.nio.file.{Files, Path}
object CliBuildOptionsParser {
private implicit val pathReader: Read[Path] = Read.reads(Path.of(_))
private val cliParserBuilder = OParser.builde... | 52,994 |
https://github.com/EdwinBetanc0urt/npm-icon-gen/blob/master/src/lib/icns-generator.test.js | Github Open Source | Open Source | MIT | 2,018 | npm-icon-gen | EdwinBetanc0urt | JavaScript | Code | 195 | 658 | import assert from 'assert'
import Fs from 'fs'
import Path from 'path'
import Logger from './logger.js'
import GenerateICNS, { GetRequiredICNSImageSizes } from './icns-generator.js'
import Rewire from 'rewire'
/** @test {ICNSGenerator} */
describe('ICNSGenerator', () => {
const Module = Rewire('./icns-generator.js'... | 32,847 |
https://github.com/react-component/input-number/blob/master/index.js | Github Open Source | Open Source | MIT | 2,023 | input-number | react-component | JavaScript | Code | 12 | 23 | // export this package's api
import InputNumber from './src/';
export default InputNumber;
| 33,941 |
https://github.com/sysadmin29/laravel52/blob/master/resources/views/agent/tasks/index.blade.php | Github Open Source | Open Source | MIT | null | laravel52 | sysadmin29 | PHP | Code | 103 | 537 | @extends('layouts.app.app',['page_header' => 'Tasks'])
@section('main-content')
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<div class="box-title">
<h3 class="box-title"><a href="/agent/tasks/cr... | 28,384 |
https://github.com/yangjintao1/myfirstpro/blob/master/flink-libraries/flink-table/src/main/java/org/apache/flink/table/resource/common/NodePartialResProcessor.java | Github Open Source | Open Source | BSD-3-Clause | null | myfirstpro | yangjintao1 | Java | Code | 455 | 1,619 | /*
* 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 ... | 51,009 |
https://github.com/PhilibertJens/Pokebook/blob/master/Pokebook.api/Controllers/UserChatsController.cs | Github Open Source | Open Source | MIT | null | Pokebook | PhilibertJens | C# | Code | 214 | 920 | using AutoMapper;
using Microsoft.AspNetCore.Mvc;
using Pokebook.core.Data;
using Pokebook.core.Models;
using Pokebook.core.Models.DTO;
using Pokebook.core.Repositories;
using Pokebook.core.Repositories.Specific;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespac... | 1,130 |
https://github.com/twenzel/CGM/blob/master/src/Commands/MetafileElementList.cs | Github Open Source | Open Source | MIT | 2,021 | CGM | twenzel | C# | Code | 330 | 1,068 | namespace codessentials.CGM.Commands
{
/// <remarks>
/// Class=1, Element=11
/// </remarks>
public class MetafileElementList : Command
{
public const string DRAWINGSET = "DRAWINGSET";
public const string DRAWINGPLUS = "DRAWINGPLUS";
public const string VERSION2 = "VERSION2";... | 41,861 |
https://github.com/ALongLi/react-admin/blob/master/src/components/GlobalSearch/index.tsx | Github Open Source | Open Source | MIT | 2,023 | react-admin | ALongLi | TSX | Code | 77 | 235 | import type { SearchModalProps } from './components/SearchModal';
import { useRef } from 'react';
import { Tooltip } from 'antd';
import { Icon } from '@iconify/react';
import SearchModal from './components/SearchModal';
/**
* @description: 全局搜索菜单组件
*/
function GlobalSearch() {
const modalRef = useRef<SearchModalP... | 24,406 |
https://github.com/ziyuanjiang/P2CL/blob/master/analysis/iterationnode.cpp | Github Open Source | Open Source | BSD-2-Clause | null | P2CL | ziyuanjiang | C++ | Code | 145 | 554 | #include "iterationnode.hpp"
namespace p2cl{
IterationNode::IterationNode(std::string itName, int num, Node * upperLayer):Node(upperLayer), iNum("iterationNum", num)
{
this->itName = itName;
index = -1;
para.appendValue(itName, -1);
bodyNext = this;
para.connectSingle(&iNum);
}
IterationNode::Iteration... | 24,909 |
https://github.com/AndrewKinsman/imannotate/blob/master/app/app_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | imannotate | AndrewKinsman | Go | Code | 240 | 871 | package main
import (
"bytes"
"encoding/json"
"errors"
"net/http"
"net/http/httptest"
"testing"
"github.com/gin-gonic/gin"
"github.com/smileinnovation/imannotate/api/auth"
"github.com/smileinnovation/imannotate/api/user"
"github.com/smileinnovation/imannotate/app/server"
)
type TestAuthenticator struct{}
... | 45,534 |
https://github.com/JoshRobbinsPixo/OSSSpeechKit/blob/master/OSSSpeechKit/Classes/OSSVoice.swift | Github Open Source | Open Source | MIT | 2,022 | OSSSpeechKit | JoshRobbinsPixo | Swift | Code | 1,411 | 3,127 | // Copyright © 2018-2020 App Dev Guy. All rights reserved.
//
// This code is distributed under the terms and conditions of the MIT license.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the ... | 39,027 |
https://github.com/ytz3210/tmall-admin/blob/master/src/views/shop/goods/goodsEdit.js | Github Open Source | Open Source | MIT | 2,021 | tmall-admin | ytz3210 | JavaScript | Code | 922 | 3,819 | import editorImage from '@/components/Tinymce'
import plugins from '@/components/editContainer/plugins'
import toolbar from '@/components/editContainer/toolbar'
import goodsApi from '@/api/shop/goods'
import {getAttrBy} from '@/api/shop/attrVal'
import categoryApi from '@/api/shop/category'
import {getApiUrl} from '@/u... | 33,422 |
https://github.com/chaoyangcui/developtools_profiler/blob/master/host/ohosprofiler/src/test/java/ohos/devtools/views/layout/event/HomeWindowEventTest.java | Github Open Source | Open Source | Apache-2.0 | null | developtools_profiler | chaoyangcui | Java | Code | 230 | 617 | /*
* Copyright (c) 2021 Huawei Device Co., 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 35,100 |
https://github.com/wohhie/smartICEv2/blob/master/resources/views/layouts/invitations/index.blade.php | Github Open Source | Open Source | MIT | 2,021 | smartICEv2 | wohhie | PHP | Code | 165 | 778 | @extends('backend.layouts.starter')
@section('title') Invite User @endsection
@section('headIncludes')
<style type="text/css">
.kdb-copy {
background: gray;
padding: 2px 1px;
color: white;
}
</style>
@endsection
@section('bodyClass')class="hold-transition ... | 6,256 |
https://github.com/d0scoo1/naga_contracts/blob/master/mainnet/contracts/0x0e4245ccb9954ead73f8bab13607cd2d86efc84c_TheUnstableHorsesYard.sol | Github Open Source | Open Source | MIT | 2,023 | naga_contracts | d0scoo1 | Gerber Image | Code | 2,889 | 8,221 | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
pragma solidity ^0.8.0;
interface IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Appr... | 6,238 |
https://github.com/ks555/idlak/blob/master/src/html/structkaldi_1_1nnet3_1_1FirstElementIsEqualComparator.js | Github Open Source | Open Source | Apache-2.0 | null | idlak | ks555 | JavaScript | Code | 20 | 196 | var structkaldi_1_1nnet3_1_1FirstElementIsEqualComparator =
[
[ "FirstElementIsEqualComparator", "structkaldi_1_1nnet3_1_1FirstElementIsEqualComparator.html#a414ebc2c4f95f4d4343a4fb8f515d789", null ],
[ "operator()", "structkaldi_1_1nnet3_1_1FirstElementIsEqualComparator.html#a03915790f0cd681a3e67e9295113592f",... | 8,958 |
https://github.com/TillMacher/TaxonTableTools/blob/master/taxontabletools/__main__.py | Github Open Source | Open Source | MIT | 2,022 | TaxonTableTools | TillMacher | Python | Code | 7,779 | 34,540 | import glob, sys, os, pkgutil, ast, subprocess
import PySimpleGUI as sg
import numpy as np
import matplotlib.pyplot as plt
import plotly.express as px
from pathlib import Path
import webbrowser
from lastversion import lastversion
import feedparser
#######################################################################... | 31,363 |
https://github.com/extinctPencil/Swashbuckle.OData/blob/master/Swashbuckle.OData/Descriptions/CustomSwaggerRouteGenerator.cs | Github Open Source | Open Source | CC-BY-3.0 | null | Swashbuckle.OData | extinctPencil | C# | Code | 65 | 293 | using Microsoft.AspNet.OData.Routing;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Web.Http;
namespace Swashbuckle.OData.Descriptions
{
internal class CustomSwaggerRouteGenerator : ISwaggerRouteGenerator
{
public IEnumerable<SwaggerRoute> Genera... | 6,706 |
https://github.com/abiedny/MCTS-Cribbage/blob/master/src/CribbageStage.java | Github Open Source | Open Source | MIT | 2,020 | MCTS-Cribbage | abiedny | Java | Code | 27 | 58 | /**
* the four stages of a Cribbage hand. (Count happens automatically after the last play)
*
*/
public enum CribbageStage {
DEAL,
THROW,
CUT,
PLAY
}
| 17,231 |
https://github.com/Mohamed-Sharaby/Cotton-Thread/blob/master/app/Http/Controllers/Admin/GuestMessageController.php | Github Open Source | Open Source | MIT | null | Cotton-Thread | Mohamed-Sharaby | PHP | Code | 45 | 182 | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\Contact;
use App\Models\GuestMessage;
use Illuminate\Http\Request;
class GuestMessageController extends Controller
{
public function __construct()
{
$this->middleware('permission:GuestMessages');
}
... | 17,107 |
https://github.com/tobyhei/RedisSemaphore/blob/master/test/RedisSemaphoreTests/RedisSemaphoreTests.cs | Github Open Source | Open Source | MIT | null | RedisSemaphore | tobyhei | C# | Code | 123 | 433 | using RedisSemaphore;
using StackExchange.Redis;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Xunit;
namespace RedisSemaphoreTests
{
public class RedisSemaphoreTests
{
private static readonly ConnectionMultiplexer connection = ConnectionMultiplexer.Connect("localh... | 7,640 |
https://github.com/shieldwallets/falcon/blob/master/falcon/app/falcon/Presentation/Component/Receive/QRCodeView.swift | Github Open Source | Open Source | MIT | 2,022 | falcon | shieldwallets | Swift | Code | 312 | 842 | //
// QRCodeView.swift
// falcon
//
// Created by Federico Bond on 08/02/2021.
// Copyright © 2021 muun. All rights reserved.
//
import UIKit
protocol QRCodeViewDelegate: AnyObject {
func didTapQRCode()
}
class QRCodeView: UIImageView {
weak var delegate: QRCodeViewDelegate?
var data: Data? {
... | 41,384 |
https://github.com/ANTONanton1984451/petproject/blob/master/resources/js/components/service_components/Register.vue | Github Open Source | Open Source | MIT | null | petproject | ANTONanton1984451 | Vue | Code | 325 | 1,423 | <template>
<div class="component-wrapper">
<div v-if="!registerIsProcessed" class="d-flex flex-column">
<strong class="mb-5 title">
Регистрация
</strong>
<div class="my-2 row justify-content-around align-items-center">
<input v-model.trim="... | 28,320 |
https://github.com/webdna/spam-blocker/blob/master/src/records/PatternRecord.php | Github Open Source | Open Source | MIT | null | spam-blocker | webdna | PHP | Code | 73 | 208 | <?php
/**
* Spam Blocker plugin for Craft CMS 3.x
*
* Add regex tests to form field validation
*
* @link https://webdna.co.uk
* @copyright Copyright (c) 2021 webdna
*/
namespace webdna\spamblocker\records;
use webdna\spamblocker\SpamBlocker;
use Craft;
use craft\db\ActiveRecord;
/**
* @author webdna... | 52,111 |
https://github.com/cheerans/Microservices-Architecture/blob/master/MSApiGateway/src/main/java/com/ml/client/APIGatewayController.java | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | Microservices-Architecture | cheerans | Java | Code | 39 | 162 | package com.ml.client;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
... | 44,533 |
https://github.com/InfuseAI/primehub-admission/blob/master/publish.sh | Github Open Source | Open Source | Apache-2.0 | null | primehub-admission | InfuseAI | Shell | Code | 45 | 164 | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
$DIR/build.sh
# TAG=$(date +"%Y%m%d%H%M")
TAG=$(git rev-parse HEAD | cut -c1-10)
IMAGE="infuseai/primehub-admission:${TAG}"
if [ "${GITHUB_ACTIONS}" == "true" ]; then
echo "::set-output name=image_name::$IMAGE"
fi
echo "publish image... | 16,168 |
https://github.com/rahul2227/SIMPLE_BLOCKCHAIN_CPP/blob/master/BlockchainTest/BlockchainTest/Blockchain.h | Github Open Source | Open Source | MIT | null | SIMPLE_BLOCKCHAIN_CPP | rahul2227 | C | Code | 31 | 126 | #ifndef BLOCKCHAINTEST_BLOCKCHAIN_H
#define BLOCKCHAINTEST_BLOCKCHAIN_H
#include <cstdint>
#include <vector>
#include "Block.h"
using namespace std;
class Blockchain {
public:
Blockchain();
void AddBlock(Block bNew);
private:
uint32_t _nDifficulty;
vector<Block> _vChain;
Block _GetLastBlock() ... | 15,902 |
https://github.com/fixstars/turret/blob/master/turret/layers/lstm.py | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,019 | turret | fixstars | Python | Code | 389 | 1,554 | # -*- coding: utf-8 -*-
import numpy as np
from ..foundational import Weights
from .builtin import rnn
from .builtin import RNNOperation
from .builtin import RNNInputMode
from .builtin import RNNDirection
def _roundrobin(a, b):
result = []
for x, y in zip(a, b):
result.append(x)
result.appen... | 38,215 |
https://github.com/phpdave11/amazon-mws/blob/master/src/Feeds/Result/GetFeedSubmissionListResult.php | Github Open Source | Open Source | Apache-2.0 | null | amazon-mws | phpdave11 | PHP | Code | 112 | 422 | <?php
namespace SellerWorks\Amazon\Feeds\Result;
use SellerWorks\Amazon\Common\IterableResultInterface;
use SellerWorks\Amazon\Common\IterableResultTrait;
use SellerWorks\Amazon\Common\RecordIterator;
use SellerWorks\Amazon\Feeds\Request\GetFeedSubmissionListByNextTokenRequest;
/**
* GetFeedSubmissionList result ob... | 30,039 |
https://github.com/npm-fapingalot/api-hentaifox-com/blob/master/src/tag/tag.url.spec.ts | Github Open Source | Open Source | MIT | 2,019 | api-hentaifox-com | npm-fapingalot | TypeScript | Code | 65 | 273 | import { tags, groups, parodies, characters, artists } from './tag.url';
describe('#tags', () => {
test('Usage', () => {
expect(tags(2)).toBe('https://hentaifox.com/tags/pag/3/');
});
});
describe('#artists', () => {
test('Usage', () => {
expect(artists(2)).toBe('https://hentaifox.com/artists/pag/3/');
... | 31,506 |
https://github.com/YuqianJiang/bwi_experimental/blob/master/bwi_kr_execution/actasp/include/actasp/AspRule.h | Github Open Source | Open Source | BSD-3-Clause | 2,016 | bwi_experimental | YuqianJiang | C | Code | 49 | 189 | #ifndef actasp_AspRule_h__guard
#define actasp_AspRule_h__guard
#include <actasp/AspFluent.h>
#include <vector>
namespace actasp {
struct AspRule {
AspRule() : head(), body() {}
//implicit cast from fluent to rule
AspRule(const AspFluent& fluent) throw() {
body.push_back(fluent);
}
AspRule& operator<<... | 18,701 |
https://github.com/M9k/Progetto-P2/blob/master/MODEL/implementation/file_epub.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,021 | Progetto-P2 | M9k | C++ | Code | 120 | 503 | #include "../header/file_epub.h"
file_base* file_epub::clone() const
{
return new file_epub(*this);
}
int file_epub::getPicsNumber() const
{
return picsNumber;
}
void file_epub::setPicsNumber(int newPicsNumber)
{
picsNumber = newPicsNumber;
}
std::string file_epub::getInfo() const
{
std::string rit ... | 11,918 |
https://github.com/jrha/template-library-core/blob/master/components/lcmaps/schema.pan | Github Open Source | Open Source | Apache-2.0 | null | template-library-core | jrha | null | Spoken | 242 | 767 | # #
# Software subject to following license(s):
# Apache 2 License (http://www.opensource.org/licenses/apache2.0)
# Copyright (c) Responsible Organization
#
# #
# Current developer(s):
# David Groep <davidg@nikhef.nl>
#
# #
# Author(s): Jane SMITH, Joe DOE
#
# #
# lcmaps, 21.4.0-rc1, rc1_1, Wed Apr 28 2021
#
#... | 5,464 |
https://github.com/NickImpact/Nucleus/blob/master/nucleus-core/src/main/java/io/github/nucleuspowered/nucleus/modules/nickname/NicknameKeys.java | Github Open Source | Open Source | MIT | 2,021 | Nucleus | NickImpact | Java | Code | 54 | 195 | /*
* This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file
* at the root of this project for more details.
*/
package io.github.nucleuspowered.nucleus.modules.nickname;
import com.google.common.reflect.TypeToken;
import io.github.nucleuspowered.nucleus.services.impl.storage.da... | 49,629 |
https://github.com/clayne/screen/blob/master/pagai2/src/SMTpass.cc | Github Open Source | Open Source | Apache-2.0 | 2,016 | screen | clayne | C++ | Code | 3,610 | 15,631 | /**
* \file SMTpass.cc
* \brief Implementation of the SMTpass pass
* \author Julien Henry
*/
#include <sstream>
#include <vector>
#include <queue>
#include <iostream>
#include <string>
#include <limits>
#include <cmath>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include "llvm/Analysi... | 1,981 |
https://github.com/hellfish2/collective.generic.webbuilder/blob/master/src/collective/generic/webbuilder/tests/egg/setup.py | Github Open Source | Open Source | BSD-3-Clause | 2,015 | collective.generic.webbuilder | hellfish2 | Python | Code | 91 | 403 | from setuptools import setup, find_packages
import os
version = '1.0'
def read(rnames):
setupdir = os.path.dirname( os.path.abspath(__file__))
return open(
os.path.join(setupdir, *rnames)
).read()
long_description =''
setup(
name='cgwb.tp',
version=version,
description="Yet another ... | 27,483 |
https://github.com/zhicaizack/main/blob/master/src/test/java/seedu/address/logic/commands/NoteDeleteCommandTest.java | Github Open Source | Open Source | MIT | 2,018 | main | zhicaizack | Java | Code | 284 | 1,137 | package seedu.address.logic.commands;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import seedu.ad... | 14,128 |
https://github.com/remembrandt/remembrandt.github.io/blob/master/cxzxz/js/index.js | Github Open Source | Open Source | MIT | 2,017 | remembrandt.github.io | remembrandt | JavaScript | Code | 32 | 243 | $('.draggable-handler').mousedown(function(e){
drag = $(this).closest('.draggable')
drag.addClass('dragging')
drag.css('left', e.clientX-$(this).width()/2)
drag.css('top', e.clientY-$(this).height()/2 - 10)
$(this).on('mousemove', function(e){
drag.css('left', e.clientX-$(this).width()/2)
drag.css... | 49,212 |
https://github.com/azhuge233/SteamDB-FreeGames/blob/master/MyClass/LOG.py | Github Open Source | Open Source | MIT | 2,021 | SteamDB-FreeGames | azhuge233 | Python | Code | 53 | 215 | import logging
# log format
format = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
format_without_levelname = logging.Formatter('%(asctime)s - %(name)s - %(message)s')
# the root logger
logger = logging.getLogger()
logger.setLevel(logging.INFO)
# file Log
f_handler = logging.FileHandler(... | 23,207 |
https://github.com/phaustin/a448hub/blob/master/add_jovyan.sh | Github Open Source | Open Source | BSD-3-Clause | null | a448hub | phaustin | Shell | Code | 17 | 82 | #!/bin/bash -v
NB_USER=jovyan
NB_UID=2005
SHELL=/bin/bash
groupadd --gid ${NB_UID} ${NB_USER}
useradd --create-home --gid ${NB_UID} --no-log-init --uid ${NB_UID} ${NB_USER}
| 45,302 |
https://github.com/lphx/gulimall/blob/master/gulimall-member/src/main/java/com/atguigu/gulimall/member/service/GrowthChangeHistoryService.java | Github Open Source | Open Source | Apache-2.0 | null | gulimall | lphx | Java | Code | 36 | 182 | package com.atguigu.gulimall.member.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.util.PageUtils;
import com.atguigu.gulimall.member.entity.GrowthChangeHistoryEntity;
import java.util.Map;
/**
* 成长值变化历史记录
*
* @author lipenghong
* @email 1580780206@qq.com
* @date ... | 9,781 |
https://github.com/franciscolopezsancho/akkaserverless-java-sdk/blob/master/sdk/scala-sdk/src/main/scala/com/akkaserverless/scalasdk/impl/eventsourcedentity/EventSourcedEntityAdapters.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | akkaserverless-java-sdk | franciscolopezsancho | Scala | Code | 476 | 2,179 | /*
* Copyright 2021 Lightbend 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 ... | 24,628 |
https://github.com/amadeus4dev-examples/amadeus-php/blob/master/src/resources/AreaPolicy.php | Github Open Source | Open Source | MIT | 2,023 | amadeus-php | amadeus4dev-examples | PHP | Code | 145 | 418 | <?php
declare(strict_types=1);
namespace Amadeus\Resources;
/**
* Sub-resource in DiseaseAreaReport
* @see DiseaseAreaReport::getAreaPolicy()
*/
class AreaPolicy implements ResourceInterface
{
private ?string $date = null;
private ?string $text = null;
private ?string $status = null;
private ?stri... | 5,507 |
https://github.com/RG2N/Spigot-BT/blob/master/Bukkit/src/main/java/org/bukkit/block/Beehive.java | Github Open Source | Open Source | GPL-3.0-only, Apache-2.0 | 2,021 | Spigot-BT | RG2N | Java | Code | 88 | 212 | package org.bukkit.block;
import org.bukkit.Location;
import org.bukkit.entity.Bee;
import org.jetbrains.annotations.Nullable;
/**
* Represents a captured state of a bee hive.
*/
public interface Beehive extends EntityBlockStorage<Bee> {
/**
* Get the hive's flower location.
*
* @return flower l... | 18,619 |
https://github.com/OscarGame/blade/blob/master/Source/BladeFramework/source/ui/ViewportManager.h | Github Open Source | Open Source | MIT | 2,022 | blade | OscarGame | C | Code | 167 | 770 | /********************************************************************
created: 2013/04/23
filename: ViewportManager.h
author: Crazii
purpose:
*********************************************************************/
#ifndef __Blade_ViewportManager_h__
#define __Blade_ViewportManager_h__
#include <Singleton.h>
#in... | 13,203 |
https://github.com/WingedSeal/Datapack_Tools/blob/master/datapack.py | Github Open Source | Open Source | MIT | 2,021 | Datapack_Tools | WingedSeal | Python | Code | 11 | 28 | class Datapack:
def __init__(self, path: str) -> None:
self.path = path | 356 |
https://github.com/meze/task/blob/master/src/Entvalley/AppBundle/Resources/views/Task/view.html.twig | Github Open Source | Open Source | MIT | 2,013 | task | meze | Twig | Code | 4 | 22 | {% include "EntvalleyAppBundle:Task:index.html.twig" %}
| 32,652 |
https://github.com/yogioh123456/IndieFramework/blob/master/Assets/Scripts/Framework/UGUI/ShrinkText.cs | Github Open Source | Open Source | MIT | null | IndieFramework | yogioh123456 | C# | Code | 238 | 841 | using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// 勾选Best Fit后,只有超过文本框后才会缩小字号
/// </summary>
public class ShrinkText : Text
{
/// <summary>
/// 当前可见的文字行数
/// </summary>
public int VisibleLines { get; private set; }
private void _UseFitSettings()
{
... | 38,615 |
https://github.com/tinchodias/hunter/blob/master/src/Hunter.package/HNScopeBuilder.class/instance/visitSuper..st | Github Open Source | Open Source | MIT | 2,021 | hunter | tinchodias | null | Spoken | 3 | 10 | visiting
visitSuper: aNode
| 42,657 |
https://github.com/qiuchili/ggnn_graph_classification/blob/master/program_data/JavaProgramData/10/659.java | Github Open Source | Open Source | MIT | 2,018 | ggnn_graph_classification | qiuchili | Java | Code | 109 | 320 | /*************
* ???????
* ???2010.10.12
* ?????1000012923
**************/
int calc = new int(int*,int,int);
int main()
{
int k;
int[] h = new int[25];
int i = 0;
k = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));
while ((h[i] = Integer.parseInt(ConsoleInput.readToWhiteSpace(true))).length() > 0)
{
... | 2,719 |
https://github.com/BrunoRB/flow/blob/master/code/tests/codeception/acceptance/home/RegisterCept.php | Github Open Source | Open Source | MIT | 2,021 | flow | BrunoRB | PHP | Code | 36 | 168 | <?php
$I = new WebGuy\FlowSteps($scenario);
$I->wantTo('Register a new user');
$I->amOnPage('/home');
$I->click('a[href="/home/register"]');
$name = 'NewUser ' . rand();
$I->fillField('#name', $name);
$email = 'newuser@newuser' . rand() . '.com';
$I->fillField('#email', $email);
$password = 'newuserpassword';
$I... | 39,263 |
https://github.com/rjw57/tiw-computer/blob/master/emulator/src/mame/drivers/pcat_dyn.cpp | Github Open Source | Open Source | MIT | 2,022 | tiw-computer | rjw57 | C++ | Code | 729 | 5,067 | // license:BSD-3-Clause
// copyright-holders:Angelo Salese
/********************************************************************************************************************
Tournament Solitaire (c) 1995 Dynamo
Unmodified 486 PC-AT HW.
Jet Way Information Co. OP495SLC motherboard
- AMD Am486-DX40 CPU
- Trident ... | 26,017 |
https://github.com/doncat99/FinanceDataCenter/blob/master/findy/database/plugins/tu_share/meta/china_stock_meta_recorder.py | Github Open Source | Open Source | MIT | null | FinanceDataCenter | doncat99 | Python | Code | 251 | 975 | # -*- coding: utf-8 -*-
import time
import pandas as pd
import tushare as ts
from findy import findy_config
from findy.interface import Region, Provider, ChnExchange, EntityType
from findy.interface.writer import df_to_db
from findy.database.schema.meta.stock_meta import StockDetail
from findy.database.plugins.record... | 43,369 |
https://github.com/JoaquinConti/ecommerce/blob/master/src/containers/Footer/Footer.js | Github Open Source | Open Source | MIT | null | ecommerce | JoaquinConti | JavaScript | Code | 26 | 78 | import React from 'react'
import styles from './Footer.module.css'
export default function Footer() {
return (
<footer>
<span className={styles.Text}>Joaquin Conti ©<br/>
All rights reserved.</span>
</footer>
)
}
| 49,284 |
https://github.com/msfschaffner/vitetris/blob/master/src/hiscore.h | Github Open Source | Open Source | BSD-2-Clause, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause | 2,019 | vitetris | msfschaffner | C | Code | 85 | 209 | #include "int32t.h"
extern
struct hiscore {
char name[8];
int_least32_t score;
char startlevel;
char level;
short lines;
} hiscores[10];
#define ishiscore() (player1.score >= 12000 && \
player1.score > hiscores[9].score)
int readhiscores(const char *filename);
/* returns 0 if highscore could not be save... | 43,470 |
https://github.com/isglobal-brge/dsOmicsClient/blob/master/R/tolist.R | Github Open Source | Open Source | MIT | 2,023 | dsOmicsClient | isglobal-brge | R | Code | 114 | 288 | #' @title PLINK arguments in the DataSHIELD required format
#'
#' @description Writes PLINK commands in the DataSHIELD required format (e.g. remove --)
#'
#'
#' @param args PLINK arguments
#'
#' @return ...
#'
#' @author Yannick Marcon
#'
#'
tolist <- function(args) {
tokens <- strsplit(args, split = " ")[[1]]
... | 15,372 |
https://github.com/sboulema/GitBlamer/blob/master/GitBlamer/ToolWindows/CommitDetailsToolWindow.cs | Github Open Source | Open Source | MIT | 2,019 | GitBlamer | sboulema | C# | Code | 80 | 281 | namespace GitBlamer.ToolWindows
{
using System;
using System.Runtime.InteropServices;
using Microsoft.VisualStudio.Shell;
[Guid("84649ca3-0c6c-487b-a3d7-6356745c77d2")]
public class CommitDetailsToolWindow : ToolWindowPane
{
private readonly CommitDetailsToolWindowControl _control;
... | 21,713 |
https://github.com/mempoolexplorer/bitcoindAdapter/blob/master/src/main/java/com/mempoolexplorer/bitcoind/adapter/bitcoind/entities/results/TxIndex.java | Github Open Source | Open Source | MIT | null | bitcoindAdapter | mempoolexplorer | Java | Code | 25 | 103 | package com.mempoolexplorer.bitcoind.adapter.bitcoind.entities.results;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@NoArgsConstructor
public class TxIndex {
private boolean synced;
private int best_block_height;
}
| 38,182 |
https://github.com/SiamandMaroufi/PythonPOS/blob/master/views/static/js/report.js | Github Open Source | Open Source | MIT | 2,021 | PythonPOS | SiamandMaroufi | JavaScript | Code | 237 | 1,049 | var z=.7;
var AutoFitWidth =true;
function ZoomIn(){
z=z + 0.1;
Zoom(z);
}
function ZoomOut(){
z=z - 0.07;
Zoom(z);
}
function SetJkLeftPadding(){
var XKW= document.getElementById('XK').getClientRects()[0].width ;//$('#XK').width() * z;
var JKW= document.getElementById('JK').getClientRects()[0].width;... | 5,077 |
https://github.com/chadarutherford/HackerNewsClone/blob/master/HackerNewsClone/Support/Helpers/NetworkLoader.swift | Github Open Source | Open Source | MIT | null | HackerNewsClone | chadarutherford | Swift | Code | 99 | 278 | //
// NetworkLoader.swift
// HackerNewsClone
//
// Created by Chad Rutherford on 9/17/20.
//
import Foundation
protocol NetworkDataLoader {
func loadData(using url: URL, completion: @escaping (Data?, HTTPURLResponse?, Error?) -> Void)
func loadData(using request: URLRequest, completion: @escaping (Data?, HTTPURL... | 21,929 |
https://github.com/parttimenerd/nildumu/blob/master/src/main/java/nildumu/mih/InliningHandler.java | Github Open Source | Open Source | MIT | 2,021 | nildumu | parttimenerd | Java | Code | 185 | 653 | package nildumu.mih;
import nildumu.*;
import nildumu.util.DefaultMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* A call string based handler that just inlines a function.
* If a function was inlined in the current call path more than a defined number of times,
* then a... | 4,161 |
https://github.com/min1129/Aspose.PDF-for-C/blob/master/Examples/include/asposecpplib/system/multi_array.h | Github Open Source | Open Source | MIT | 2,018 | Aspose.PDF-for-C | min1129 | C | Code | 36 | 141 | #ifndef _multi_array_h_
#define _multi_array_h_
#define RESIZE_MARRAY(i, arr, N) \
for (size_t i=0; i<arr.size(); ++i) { \
arr[i].resize(N);
#define RESIZE_MARRAY_INIT(i, arr, N, def) \
for (size_t i=0; i<arr.size(); ++i) { \
arr[i].resize(N, def);
#define RESIZE_MARRAY_END() }
#endif | 1,575 |
https://github.com/changziming/VTour/blob/master/node_modules/grommet/components/Footer/stories/Social.js | Github Open Source | Open Source | MIT | 2,020 | VTour | changziming | JavaScript | Code | 190 | 797 | "use strict";
var _react = _interopRequireDefault(require("react"));
var _react2 = require("@storybook/react");
var _grommetIcons = require("grommet-icons");
var _grommet = require("grommet");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var Media = function Me... | 18,553 |
https://github.com/Mikkelbf/OpenMoBu/blob/master/Src/Projects/box_PoseTransform/boxPoseTransform.cxx | Github Open Source | Open Source | BSD-3-Clause | 2,022 | OpenMoBu | Mikkelbf | C++ | Code | 738 | 2,856 |
/////////////////////////////////////////////////////////////////////////////////////////
//
// boxPoseTransform.cxx
//
// Sergei <Neill3d> Solokhin 2014-2020
//
// GitHub page - https://github.com/Neill3d/OpenMoBu
// Licensed under The "New" BSD License - https ://github.com/Neill3d/OpenMoBu/blob/master/LICENSE
//
//... | 12,503 |
https://github.com/PabloMK7/CTGP-7_Launcher/blob/master/source/plgldr.h | Github Open Source | Open Source | MIT | 2,021 | CTGP-7_Launcher | PabloMK7 | C | Code | 30 | 138 | #pragma once
#include <3ds/types.h>
typedef struct
{
bool noFlash;
u32 lowTitleId;
char path[256];
u32 config[32];
} PluginLoadParameters;
Result plgLdrInit(void);
void plgLdrExit(void);
Result PLGLDR__IsPluginLoaderEnabled(bool *isEnabled);
Result PLGLDR__SetPluginLoaderState(b... | 28,385 |
https://github.com/PolicyStat/ckeditor-plugin-structured-headings/blob/master/tests/structuredheadings/setnumberingstyle.js | Github Open Source | Open Source | MIT | null | ckeditor-plugin-structured-headings | PolicyStat | JavaScript | Code | 615 | 2,211 | /* eslint-disable */
/* bender-tags: editor,unit */
/* bender-ckeditor-plugins: wysiwygarea,structuredheadings,toolbar,basicstyles,dialog,richcombo,undo */
/* eslint-enable */
// Clean up all instances been created on the page.
(function () {
var comboName = "NumStyles";
bender.editor = {
allowedForTests: "h... | 29,036 |
https://github.com/amwelch/a10sdk-python/blob/master/a10sdk/core/ip/ip_frag_stats.py | Github Open Source | Open Source | Apache-2.0 | 2,015 | a10sdk-python | amwelch | Python | Code | 868 | 2,756 | from a10sdk.common.A10BaseClass import A10BaseClass
class Stats(A10BaseClass):
"""This class does not support CRUD Operations please use parent.
:param icmpv6_rcv: {"description": "ICMPv6 Received", "format": "counter", "type": "number", "oid": "4", "optional": true, "size": "8"}
:param tcp_rcv: {"d... | 5,404 |
https://github.com/PenghaiZhang/openEQUELLA/blob/master/Source/Plugins/Core/com.equella.base/src/com/tle/common/settings/standard/DateFormatSettings.java | Github Open Source | Open Source | Apache-2.0, LGPL-3.0-only, LicenseRef-scancode-warranty-disclaimer, BSD-3-Clause, EPL-1.0, LGPL-2.0-or-later, Classpath-exception-2.0, LicenseRef-scancode-jdom, ICU, Apache-1.1, LGPL-2.1-only, LicenseRef-scancode-other-permissive, GPL-1.0-or-later, CPL-1.0, CDDL-1.0, MIT, LicenseRef-scancode-freemarker, GPL-2.0-only, N... | 2,023 | openEQUELLA | PenghaiZhang | Java | Code | 170 | 315 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | 49,780 |
https://github.com/tanisha007h/ScienceMotion-Static/blob/master/dna/movement.js | Github Open Source | Open Source | MIT | null | ScienceMotion-Static | tanisha007h | JavaScript | Code | 29 | 184 | $(document).on("mousemove", function (event) {
$("img.learn").css("width", event.pageX)
$("img.learn").css("height", event.pageY)
$("img.to").css("width", $('#top').width() - event.pageX)
$("img.to").css("height", event.pageY)
$("img.code").css("width", event.pageX)
$("img.code").css("height", $('#top').... | 20,812 |
https://github.com/radtek/Radiation-Review/blob/master/Common/misc/CommonImportCom/VistaDataFile.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,019 | Radiation-Review | radtek | C++ | Code | 870 | 1,979 | /*
This work was supported by the United States Member State Support Program to IAEA Safeguards;
the U.S. Department of Energy, Office of Nonproliferation and National Security, International
Safeguards Division; and the U.S. Department of Energy, Office of Safeguards and Security.
LA-CC-14-040. This software was expo... | 34,193 |
https://github.com/microsoft/vscode-apimanagement/blob/master/src/utils/requestUtil.ts | Github Open Source | Open Source | MIT, AFL-2.1, Unlicense, BSD-3-Clause, LGPL-2.1-or-later, LGPL-2.0-or-later, ISC, Apache-2.0, LGPL-2.0-only, BSD-2-Clause, LicenseRef-scancode-generic-cla | 2,023 | vscode-apimanagement | microsoft | TypeScript | Code | 183 | 514 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.md in the project root for license information.
*----------------------------------------------------------------... | 47,103 |
https://github.com/jorgefilipecosta/g2/blob/master/packages/components/src/VStack/__stories__/VStack.stories.js | Github Open Source | Open Source | MIT | 2,022 | g2 | jorgefilipecosta | JavaScript | Code | 105 | 382 | import React from 'react';
import { HStack } from '../../HStack';
import {
Badge,
Button,
Heading,
Placeholder,
Spacer,
Text,
View,
} from '../../index';
import { VStack } from '../index';
export default {
component: VStack,
title: 'Components/VStack',
};
export const _default = () => {
return (
<View cs... | 50,547 |
https://github.com/flomar/granturismotracker/blob/master/granturismotracker/database/database.py | Github Open Source | Open Source | MIT | null | granturismotracker | flomar | Python | Code | 850 | 3,167 | import re
from datetime import datetime, timedelta
from decimal import Decimal
from peewee import *
database = SqliteDatabase("granturismotracker.sqlite", pragmas={"foreign_keys": 1, "encoding": "UTF8"})
class Event(Model):
id = AutoField()
date_time = DateTimeField()
date_time_expiration = DateTimeFie... | 22,561 |
https://github.com/ToxicBakery/kotlin-native/blob/master/runtime/src/mm/cpp/ThreadData.hpp | Github Open Source | Open Source | Apache-2.0 | null | kotlin-native | ToxicBakery | C++ | Code | 136 | 403 | /*
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
#ifndef RUNTIME_MM_THREAD_DATA_H
#define RUNTIME_MM_THREAD_DATA_H
#include <pthread.h>
#include "GlobalsRegistry.hpp"
#include "StableRefRegistry.hpp"
#include "Threa... | 611 |
https://github.com/klesht/KevinLesht_Portfolio/blob/master/scss/_modal.scss | Github Open Source | Open Source | MIT | null | KevinLesht_Portfolio | klesht | SCSS | Code | 188 | 711 | .modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(#000, 0.8);
z-index: 10;
overflow-y: auto;
cursor: pointer;
visibility: hidden;
opacity: 0;
@include transition(opacity 0.3s);
h6 {
margin: 0;
padding-top: 1em;
... | 15,148 |
https://github.com/Hara-Yuma/sound-reactor/blob/master/package/bot.py | Github Open Source | Open Source | MIT | 2,021 | sound-reactor | Hara-Yuma | Python | Code | 366 | 1,673 | from discord import Embed, FFmpegPCMAudio, VoiceClient
from discord.ext import commands
from .data_manage import (
get_all_sound_data,
get_sound_file_path,
initialize,
regist_sound,
remove_sound,
update_description
)
class SoundReactor(commands.Bot):
"""BOT本体"""
def __init__(self, **c... | 40,329 |
https://github.com/chidokato/webnoithat/blob/master/app/Http/Controllers/c_section.php | Github Open Source | Open Source | MIT | 2,021 | webnoithat | chidokato | PHP | Code | 230 | 1,067 | <?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Auth;
use Illuminate\Http\Request;
use Image;
use File;
use App\seo;
use App\section;
use App\category;
use App\images;
class c_section extends Controller
{
public function getlist()
{
$section = section::orderBy('id','desc')->get();... | 51,846 |
https://github.com/sozuer53/BBC/blob/master/Server/BBC_API/src/BBC.Services/Services/SettingsService/Dto/SettingsListDto.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | BBC | sozuer53 | C# | Code | 22 | 61 | using System;
using System.Collections.Generic;
using System.Text;
namespace BBC.Services.Services.SettingsService.Dto
{
public class SettingsListDto
{
public string Value { get; set; }
}
}
| 28,706 |
https://github.com/sahana/eden_mobile/blob/master/www/config/settings.js | Github Open Source | Open Source | MIT | 2,022 | eden_mobile | sahana | JavaScript | Code | 395 | 1,039 | /**
* Sahana Eden Mobile - Configuration Settings and Defaults
*
* Copyright (c) 2016-2019 Sahana Software Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restrict... | 26,491 |
https://github.com/Symfony-Plugins/sfDoctrineShortUrlPlugin/blob/master/lib/form/sfShortUrlDecodeForm.class.php | Github Open Source | Open Source | MIT | 2,011 | sfDoctrineShortUrlPlugin | Symfony-Plugins | PHP | Code | 93 | 420 | <?php
class sfShortUrlDecodeForm extends sfForm
{
public function setup()
{
parent::setup();
$this->setWidgets(array(
'shorturl' => new sfWidgetFormInputText(),
));
$this->validatorSchema['shorturl'] = new sfValidatorAnd(
array(
new sfValidatorString(),
new sfVa... | 31,960 |
https://github.com/IIMarch/mxnet/blob/master/src/ndarray/ndarray_function.cc | Github Open Source | Open Source | Apache-2.0 | null | mxnet | IIMarch | C++ | Code | 213 | 487 | /*
* 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 ... | 37,179 |
https://github.com/robertodr/mold/blob/master/src/core/script_functions.inl | Github Open Source | Open Source | MIT | 2,021 | mold | robertodr | C++ | Code | 4,680 | 19,872 | #ifndef __MD_SCRIPT_FUNCTIONS_INL__
#define __MD_SCRIPT_FUNCTIONS_INL__
#define as_float(arg) (*((float*)((arg).ptr)))
#define as_float_arr(arg) ((float*)((arg).ptr))
#define as_int(arg) (*((int*)((arg).ptr)))
#define as_int_arr(arg) ((int*)((arg).ptr))
#define as_frange(arg) (*((frange_t*)((arg).ptr)))
#define as_... | 2,228 |
https://github.com/n1amr/dotfiles/blob/master/bin/ok-to-download | Github Open Source | Open Source | MIT | 2,023 | dotfiles | n1amr | Shell | Code | 97 | 341 | #!/bin/bash
set -eu
source ~/.dotfiles.env
main() {
SHOULD_IGNORE="${DOTFILES_ALLOW_DOWNLOAD_FOR_ALL:-false}"
if [[ "$SHOULD_IGNORE" == 'true' ]]; then
exit 0
fi
DOWNLOAD_CONNECTIONS_LIST_FILE="$DOTFILES_HOME/custom/config/dotfiles/safe-download-connections"
if [[ ! -f "$DOWNLOAD_CONNECT... | 43,565 |
https://github.com/Tura92/BO-Wizards/blob/master/.import/Spearman.png-ad70fd3b9fd253a6825880ba8ca39df1.md5 | Github Open Source | Open Source | MIT | 2,021 | BO-Wizards | Tura92 | null | Spoken | 2 | 53 | source_md5="e5c7618bce696cf635bc416a25fae44f"
dest_md5="73616ff3dc9d0a036ea50945368ce1e7"
| 39,713 |
https://github.com/npocmaka/Windows-Server-2003/blob/master/drivers/storage/volsnap/vss/tests/harness/common/vststparser.cxx | Github Open Source | Open Source | Unlicense | 2,021 | Windows-Server-2003 | npocmaka | C++ | Code | 141 | 524 | /*++
Copyright (c) 2000 Microsoft Corporation
Module Name:
vststparser.cxx
Abstract:
Implementation of CVsTstParser class
Brian Berkowitz [brianb] 06/07/2000
TBD:
Revision History:
Name Date Comments
brianb 06/07/2000 Created
--*/
#include <stdafx.h>
#include <bss... | 37,191 |
https://github.com/Enaldi/Block-Breaker-Unity-2D/blob/master/Assets/Scripts/LoseMusic.cs | Github Open Source | Open Source | BSD-2-Clause | null | Block-Breaker-Unity-2D | Enaldi | C# | Code | 137 | 264 | using UnityEngine;
using System.Collections;
public class LoseMusic : MonoBehaviour {
static LoseMusic instance = null; // Init as no MusicPlayer // This is an example of a singleton pattern.
//
// Before start
//
void Awake () {
Debug.Log ("Music player Awake " + GetInstanceID());
// Keep multiple in... | 11,646 |
https://github.com/jaskeerat789/camel/blob/master/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/RestOpenApiSupport.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | camel | jaskeerat789 | Java | Code | 1,857 | 6,455 | /*
* 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 ... | 47,984 |
https://github.com/Clemzd/active-collections/blob/master/active-collections/src/test/emn/fil/collection/set/SetTest.java | Github Open Source | Open Source | MIT | 2,014 | active-collections | Clemzd | Java | Code | 384 | 1,554 | package test.emn.fil.collection.set;
import java.util.ArrayList;
import java.util.function.Function;
import java.util.function.Predicate;
import org.junit.Assert;
import org.junit.Test;
import test.emn.fil.collection.object.OPersonne;
import emn.fil.collection.mutable.impl.Bag;
import emn.fil.collection.mutable.impl... | 51,162 |
https://github.com/EntelectChallenge/2015-SpaceInvaders-TestHarness/blob/master/SpaceInvaders/Aliens/Strategies/ShootRandomlyStrategy.cs | Github Open Source | Open Source | MIT | 2,018 | 2015-SpaceInvaders-TestHarness | EntelectChallenge | C# | Code | 183 | 629 | using System;
using System.Collections.Generic;
using SpaceInvaders.Core;
using SpaceInvaders.Entities;
namespace SpaceInvaders.Aliens.Strategies
{
public class ShootRandomlyStrategy : IShootStrategy
{
public ShootRandomlyStrategy(List<List<Alien>> waves)
{
Waves = waves;
}
... | 19,717 |
https://github.com/eaglexmw-gmail/adotcorporation/blob/master/MMD/Common/CommonLib/FilePath.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | adotcorporation | eaglexmw-gmail | C# | Code | 529 | 1,637 | using System;
using System.IO;
namespace MMD.Common.CommonLib
{
// for simplicity, this class assumes that directories end in a slash, and
// files don't. ie, c:\temp\ is a directory, whereas c:\temp is a file.
public class FilePath
{
// return the last leg of the path, either just the file name, or just the
... | 44,555 |
https://github.com/HairyPloper/GraduateThesisManager/blob/master/GraduateThesisManager/GraduateThesisManager.Web/Modules/Common/RegistrationStatus/RegistrationStatusColumns.cs | Github Open Source | Open Source | MIT | null | GraduateThesisManager | HairyPloper | C# | Code | 47 | 166 |
namespace GraduateThesisManager.Common.Columns
{
using Serenity;
using Serenity.ComponentModel;
using Serenity.Data;
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.IO;
[ColumnsScript("Common.RegistrationStatus")]
[BasedOnRow(typeof(Entiti... | 50,423 |
https://github.com/luiscarlosmarca/matixmedia/blob/master/resources/views/projects/briefs/edit.blade.php | Github Open Source | Open Source | MIT | null | matixmedia | luiscarlosmarca | PHP | Code | 65 | 387 | @extends('app')
@section('htmlheader_title')
Editar Brief del proyecto {{$brief->name}}
@endsection
@section('main-content')
<div class="container" >
@include('error')
<div class="row">
<div class="col-md-10 col-md-offset-1" >
<div class="panel panel-success">
<div class="panel-heading"><h2>Actul... | 23,430 |
https://github.com/CryptoSingh1337/spring-pet-clinic/blob/master/pet-clinic-data/src/main/java/com/saransh/springpetclinic/services/PetTypeService.java | Github Open Source | Open Source | Apache-2.0 | null | spring-pet-clinic | CryptoSingh1337 | Java | Code | 20 | 78 | package com.saransh.springpetclinic.services;
import com.saransh.springpetclinic.model.PetType;
/**
* Created by CryptoSingh1337 on 6/15/2021
*/
public interface PetTypeService extends CrudService<PetType, Long> {
}
| 23,505 |
https://github.com/NickCodes/demoWorldJS/blob/master/assets/scripts/world.js | Github Open Source | Open Source | Unlicense | 2,015 | demoWorldJS | NickCodes | JavaScript | Code | 70 | 238 | var world = function(window){
var world = window.world || {};
if (!('initialState' in world)){
world.initialState = true;
world.viewportWidth = 1440;
world.viewportHeight = 990;
world.obstacles = [];
}
world.init = function(){
console.log('World initializing');
world.renderer = new THREE.WebGLRenderer... | 6,240 |
https://github.com/waterfeeds/leetcode/blob/master/7_reverseInteger.go | Github Open Source | Open Source | MIT | null | leetcode | waterfeeds | Go | Code | 107 | 243 | package main
import (
"fmt"
)
func main() {
fmt.Println(reverse(123))
}
func reverse(x int) int {
if x == 0 {
return x
}
var reverseInt int
if x > 0 {
reverseInt = reversePositive(x)
} else {
reverseInt = -1*reversePositive(-1*x)
}
if reverseInt < -1 << 31 || reverseInt > 1<<31 - 1 {
return 0
}
... | 34,657 |
https://github.com/fo40225/nes-py/blob/master/nes_py/app/play_human.py | Github Open Source | Open Source | MIT | 2,019 | nes-py | fo40225 | Python | Code | 698 | 1,650 | """A method to play gym environments using human IO inputs."""
import gym
import pygame
def display_arr(screen, arr, video_size, transpose):
"""
Display an image to the pygame screen.
Args:
screen (pygame.Surface): the pygame surface to write frames to
arr (np.ndarray): numpy array repres... | 39,230 |
https://github.com/IvayloKodov/My-Projects/blob/master/BookShop/Server/BookShop.Server.Common/Models/Books/BookResponceModel.cs | Github Open Source | Open Source | MIT | null | My-Projects | IvayloKodov | C# | Code | 111 | 315 | namespace BookShop.Server.Common.Models.Books
{
using System.Collections.Generic;
using System.Linq;
using AutoMapper;
using Data.Models;
using Data.Models.Enums;
using Mappings.Contracts;
public class BookResponceModel : IMapFrom<Book>, IHaveCustomMappings
{
public int Id { ge... | 3,697 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.