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/kkalla/vedastr/blob/master/vedastr/models/bodies/registry.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | vedastr | kkalla | Python | Code | 10 | 27 | from vedastr.utils import Registry
COMPONENT = Registry('component')
BODIES = Registry('body')
| 19,526 |
https://github.com/msek986/koktel.rs/blob/master/resources/lang/en/home.php | Github Open Source | Open Source | MIT | null | koktel.rs | msek986 | PHP | Code | 91 | 221 | <?php
return [
'cta' => [
[
'name' => 'Cocktails that we love',
'text' => 'Some cocktails are simply timeless, from elegant Martini, to popular Negroni. With this clasics you will never be wrong.',
'btn' => 'Discover more',
'image_url' =>'popular.jpg',
... | 12,135 |
https://github.com/skr305/scene-ui/blob/master/dist/package/components/message/type.d.ts | Github Open Source | Open Source | MIT | 2,022 | scene-ui | skr305 | TypeScript | Code | 41 | 119 | export declare const messageProps: {
type: {
type: StringConstructor;
required: boolean;
};
duration: {
type: NumberConstructor;
required: boolean;
};
text: {
type: StringConstructor;
required: boolean;
};
showCloseButton: {
type: Boole... | 31 |
https://github.com/ThaumicTom/gbx-net/blob/master/GBX.NET/Engines/Game/CGamePlayerProfile.cs | Github Open Source | Open Source | Unlicense | null | gbx-net | ThaumicTom | C# | Code | 505 | 1,864 | using GBX.NET.Engines.Input;
using GBX.NET.Engines.MwFoundations;
namespace GBX.NET.Engines.Game
{
[Node(0x0308C000)]
public class CGamePlayerProfile : CMwNod
{
private string description;
public string OnlineLogin { get; set; }
public string OnlineSupportKey { get; set; }
... | 3,486 |
https://github.com/Nikolamba/OOD/blob/master/src/main/java/ru/job4j/total/figures/FigureEmpty.java | Github Open Source | Open Source | Apache-2.0 | null | OOD | Nikolamba | Java | Code | 30 | 84 | package ru.job4j.total.figures;
/**
* Пустая фигура на поле
* @author Nikolay Meleshkin (sol.of.f@mail.ru)
* @version 0.1
*/
public class FigureEmpty extends AbstractFigure {
public FigureEmpty() {
super(' ');
}
}
| 18,989 |
https://github.com/marciocesarcorrea/react-ui-boilerplate/blob/master/src/store/modules/layout/actions.ts | Github Open Source | Open Source | MIT | null | react-ui-boilerplate | marciocesarcorrea | TypeScript | Code | 27 | 118 | import { createAction } from "@reduxjs/toolkit";
export enum LayoutActionsTypes {
SIDEBAR_TOGGLE = "@layout/SIDEBAR_TOGGLE",
THEME_TOGGLE = "@layout/THEME_TOGGLE",
}
export const toggleSidebar = createAction<void>(LayoutActionsTypes.SIDEBAR_TOGGLE);
export const toggleTheme = createAction<void>(LayoutActionsTypes... | 8,700 |
https://github.com/rockduan/synopsys-detect/blob/master/detectable/src/test/java/com/synopsys/integration/detectable/detectables/go/functional/GoModParserTest.java | Github Open Source | Open Source | Apache-2.0 | null | synopsys-detect | rockduan | Java | Code | 221 | 745 | /**
* detectable
*
* Copyright (c) 2020 Synopsys, Inc.
*
* 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 ... | 42,778 |
https://github.com/hatone/vibee/blob/master/build/iphone/build/vibee.build/Debug-iphonesimulator/vibee.build/Objects-normal/i386/AQRecorder.d | Github Open Source | Open Source | Apache-2.0 | 2,012 | vibee | hatone | Makefile | Code | 21 | 187 | dependencies: \
/Users/kyoro/dev/Titanium\ Studio\ Workspace/vibee/build/iphone/Classes/AQRecorder.mm \
/Users/kyoro/dev/Titanium\ Studio\ Workspace/vibee/build/iphone/Classes/AQRecorder.h \
/Users/kyoro/dev/Titanium\ Studio\ Workspace/vibee/build/iphone/Classes/CAStreamBasicDescription.h \
/Users/kyoro/dev/Tit... | 12,587 |
https://github.com/electric-eloquence/fepper-drupal/blob/master/backend/drupal/core/lib/Drupal/Core/Routing/EnhancerInterface.php | Github Open Source | Open Source | LicenseRef-scancode-other-permissive, LicenseRef-scancode-other-copyleft, GPL-2.0-or-later, GPL-2.0-only, LicenseRef-scancode-unknown-license-reference, MIT | 2,023 | fepper-drupal | electric-eloquence | PHP | Code | 86 | 193 | <?php
namespace Drupal\Core\Routing;
use Symfony\Component\HttpFoundation\Request;
/**
* A route enhance service to determine route enhance rules.
*/
interface EnhancerInterface {
/**
* Updates the defaults for a route definition based on the request.
*
* @param array $defaults
* The defaults, map... | 12,597 |
https://github.com/AbigailMcP/gilded-rose-tech-test/blob/master/lib/aged_brie.rb | Github Open Source | Open Source | MIT | null | gilded-rose-tech-test | AbigailMcP | Ruby | Code | 35 | 92 | require_relative 'general_item'
class AgedBrie < GeneralItem
private
def update_quality
item.sell_in >= 0 ? item.quality += 1 : item.quality += 2
item.quality = 50 if item.quality > 50
end
def update_sell_in
item.sell_in -= 1
end
end
| 21,992 |
https://github.com/XilizaX/smooth/blob/master/include/smooth/gui/widgets/basic/scrollbar.h | Github Open Source | Open Source | Artistic-2.0 | 2,022 | smooth | XilizaX | C | Code | 200 | 586 | /* The smooth Class Library
* Copyright (C) 1998-2019 Robert Kausch <robert.kausch@gmx.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of "The Artistic License, Version 2.0".
*
* THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRA... | 22,622 |
https://github.com/LasseWolter/clowdr/blob/master/hasura/migrations/1610547863276_alter_table_public_Room_add_column_originatingEventId/down.sql | Github Open Source | Open Source | BSD-3-Clause | 2,022 | clowdr | LasseWolter | SQL | Code | 6 | 22 | ALTER TABLE "public"."Room" DROP COLUMN "originatingEventId";
| 7,003 |
https://github.com/lufylegend/lufylegend.js/blob/master/project/assets/plugin/mvc/controllers/PanelController.js | Github Open Source | Open Source | MIT | 2,022 | lufylegend.js | lufylegend | JavaScript | Code | 17 | 42 | import BaseController from './BaseController';
class PanelController extends BaseController {
constructor(data) {
super(data);
}
}
export default PanelController; | 26,546 |
https://github.com/kunicmarko20/Simple-Shop/blob/master/app/Resources/views/product/list.html.twig | Github Open Source | Open Source | MIT | null | Simple-Shop | kunicmarko20 | Twig | Code | 89 | 361 | {% extends 'layout.html.twig' %}
{% block body %}
<div class="row">
<div class="col-sm-12">
<a href="{{ path('product_new') }}" class="btn btn-primary pull-right js-add-new-product">
<span class="fa fa-plus"></span> New Product
</a>
<h1 class="text-cente... | 42,933 |
https://github.com/brian-nelson/stig-tools/blob/master/src/modules/System/ESC2.Module.System.Data/Repos/Operational/ImplementationGuideRepo.cs | Github Open Source | Open Source | MIT | null | stig-tools | brian-nelson | C# | Code | 77 | 278 | using System.Collections.Generic;
using ESC2.Library.Data.Constants;
using ESC2.Library.Data.Objects;
using ESC2.Module.System.Data.DataObjects.Operational;
namespace ESC2.Module.System.Data.Repos.Operational
{
public partial class ImplementationGuideRepo
{
public ImplementationGuide Get(
... | 9,979 |
https://github.com/sathi23/office-ui-fabric-react/blob/master/packages/office-ui-fabric-react/src/components/pickers/PeoplePicker/PeoplePickerPage.tsx | Github Open Source | Open Source | MIT | null | office-ui-fabric-react | sathi23 | TypeScript | Code | 255 | 739 | import * as React from 'react';
import { Link } from 'office-ui-fabric-react/lib/Link';
import {
ExampleCard,
ComponentPage,
IComponentDemoPageProps,
PropertiesTableSet
} from '@uifabric/example-app-base';
import { PeoplePickerTypesExample } from './examples/PeoplePicker.Types.Example';
const PeoplePickerTypes... | 29,911 |
https://github.com/ourochan/candescantNUI/blob/master/CCT.NUI.Core/ILocatable.cs | Github Open Source | Open Source | BSD-3-Clause | 2,019 | candescantNUI | ourochan | C# | Code | 24 | 71 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CCT.NUI.Core;
namespace CCT.NUI.Core
{
public interface ILocatable
{
Point Location { get; }
}
}
| 14,893 |
https://github.com/sumonchai/WaveApps-v1/blob/master/new/backup/config/conf.php | Github Open Source | Open Source | MIT | 2,019 | WaveApps-v1 | sumonchai | PHP | Code | 96 | 331 | <?php
$weburl = 'https://apps.wavenet.id';
$apptitle = 'Wavenet Management Tools';
$appname1 = 'Wave';
$appname2 = 'Apps';
$appname3 = 'W';
$appname4 = 'A';
$appname = 'WaveNet';
// Invoice Setting
$companyname = 'Wavenet Media Service';
$shortcompany = 'Wavenet';
$companyaddress = 'Jl.Parangtritis KM 6.5, Ngijo, Sewo... | 46,640 |
https://github.com/shapkarin/shapkarin.me/blob/master/src/Components/Formatted/index.js | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,023 | shapkarin.me | shapkarin | JavaScript | Code | 38 | 98 | import { Fragment } from 'react';
import PropTypes from 'prop-types';
const Formatted = function Formatted({ children }){
return children?.split('\n').map((line, id) => <Fragment key={id}>{ line }<br /></Fragment>) || null;
}
Formatted.propTypes = {
children: PropTypes.string.isRequired,
};
export default Format... | 15,148 |
https://github.com/strigazi/athena/blob/master/Simulation/SimulationJobOptions/share/susy/preInclude.MuonFullTruth.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | athena | strigazi | Python | Code | 147 | 705 | #################################################
# preInclude.MuonFullTruth.py
#
# preInclude fragment for simulation of LLP that
# decay in the muon spectrometer. This fragment
# will enable the standard truth strategies in
# the spectrometer, adding the full showers to
# the truth record. Because the muon system ... | 7,605 |
https://github.com/guoyu07/qxcmp-framework/blob/master/qxcmp-core/src/main/java/com/qxcmp/security/RoleService.java | Github Open Source | Open Source | MIT | 2,018 | qxcmp-framework | guoyu07 | Java | Code | 52 | 177 | package com.qxcmp.security;
import com.qxcmp.core.entity.AbstractEntityService;
import org.springframework.stereotype.Service;
import java.util.Optional;
/**
* 角色服务
*
* @author aaric
*/
@Service
public class RoleService extends AbstractEntityService<Role, Long, RoleRepository> {
public Optional<Role> findOn... | 37,476 |
https://github.com/VernonHawk/Biblio/blob/master/src/front-end/components/GenericForm/GenericForm.js | Github Open Source | Open Source | Apache-2.0 | null | Biblio | VernonHawk | JavaScript | Code | 154 | 450 | import React from "react";
import { Form } from "reactstrap";
import PropTypes from "prop-types";
import GenericFormGroup from "./GenericFormGroup";
const propTypes = {
params: PropTypes.arrayOf( PropTypes.shape({
id: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]).isRequired,
help: ... | 32,624 |
https://github.com/aberke/check-list/blob/master/app/models/list.py | Github Open Source | Open Source | MIT | 2,015 | check-list | aberke | Python | Code | 597 | 1,705 | #********************************************************************************
#--------------------------------------------------------------------------------
#
# Significance Labs
# Brooklyn, NYC
#
# Author: Alexandra Berke (aberke)
# Written: Summer 2014
#
#
# List Model
# _id {ObjectId}
# _cleaner {Obje... | 14,360 |
https://github.com/ml242/process/blob/master/prkng_process/__init__.py | Github Open Source | Open Source | MIT | 2,018 | process | ml242 | Python | Code | 23 | 80 | import os
from prkng_process.logger import set_level
__version__ = '1.2'
# get global config
spath = os.environ["PRKNG_SETTINGS"]
CONFIG = {}
execfile(spath, {}, CONFIG)
set_level(CONFIG["LOG_LEVEL"])
| 31,843 |
https://github.com/latipun7/aladine/blob/master/src/pages/detail/index.ts | Github Open Source | Open Source | MIT | 2,022 | aladine | latipun7 | TypeScript | Code | 7 | 16 | import Detail from './detail';
export default Detail;
| 29,656 |
https://github.com/gcdxuzhiwei/miniprogram-music/blob/master/cloudfunctions/getPlaylist/index.js | Github Open Source | Open Source | MIT | null | miniprogram-music | gcdxuzhiwei | JavaScript | Code | 94 | 550 | // 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init()
const db=cloud.database()
const rp=require('request-promise')
const URL='http://musicapi.xiecheng.live/personalized'
const playlistCollection=db.collection('playlist')
const MAX_LIMIT=100
// 云函数入口函数
exports.main = async (event, context) => {
const countR... | 8,114 |
https://github.com/communitybridge/easycla-api/blob/master/cla_groups/models.go | Github Open Source | Open Source | CC-BY-4.0, MIT | 2,019 | easycla-api | communitybridge | Go | Code | 57 | 244 | package cla_groups
import (
"database/sql"
)
// SQLCLAGroups represent row of cla.cla_groups table
type SQLCLAGroups struct {
ID sql.NullString `db:"id"`
CLAGroupName sql.NullString `db:"cla_group_name"`
ProjectID sql.NullString `db:"project_id"`
CreatedAt sql.NullInt64 `db:"created_at"`
Update... | 9,547 |
https://github.com/axtyax/joplin/blob/master/packages/server/src/routes/index/changes.ts | Github Open Source | Open Source | MIT | 2,022 | joplin | axtyax | TypeScript | Code | 248 | 984 | import { SubPath } from '../../utils/routeUtils';
import Router from '../../utils/Router';
import { AppContext } from '../../utils/types';
import { changeTypeToString, ChangeType } from '../../db';
import { createPaginationLinks, filterPaginationQueryParams, queryParamsToPagination } from '../../models/utils/pagination... | 30,814 |
https://github.com/zhaozhilong1993/demon/blob/master/install/tools/excel_sheet.py | Github Open Source | Open Source | Apache-2.0 | null | demon | zhaozhilong1993 | Python | Code | 903 | 3,473 | #!/usr/bin/env python
# encoding: utf-8
# Copyright (C) 2015 UnitedStack All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/li... | 1,844 |
https://github.com/microsoftgraph/msgraph-sdk-typescript/blob/master/src/models/attendanceRecord.ts | Github Open Source | Open Source | MIT | null | msgraph-sdk-typescript | microsoftgraph | TypeScript | Code | 589 | 1,336 | import {createAttendanceIntervalFromDiscriminatorValue} from './createAttendanceIntervalFromDiscriminatorValue';
import {createIdentityFromDiscriminatorValue} from './createIdentityFromDiscriminatorValue';
import {AttendanceInterval, Entity, Identity} from './index';
import {Parsable, ParseNode, SerializationWriter} fr... | 26,114 |
https://github.com/matyioe92/SlinkyTyped/blob/master/f/firebase/src/main/scala/typingsSlinky/firebase/mod/firebase/firestore/LogLevel.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | matyioe92 | Scala | Code | 56 | 292 | package typingsSlinky.firebase.mod.firebase.firestore
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
/* Rewritten from type alias, can be one of:
- typingsSlinky.firebase.f... | 8,360 |
https://github.com/rstens/hets/blob/master/Server/src/HETSAPI/Controllers/EquipmentAttachmentController.cs | Github Open Source | Open Source | Apache-2.0 | null | hets | rstens | C# | Code | 188 | 820 | using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.SwaggerGen;
using HETSAPI.Models;
using HETSAPI.Services;
using HETSAPI.Authorization;
namespace HETSAPI.Controllers
{
/// <summary>
/// Equipment Attachment Controller
/// </summary>
[ResponseCache(Location = ResponseCacheLocation.None, NoSt... | 26,670 |
https://github.com/EudyContreras/Chronox.NetCore/blob/master/Chronox/Utilities/ChronoxTimeSpanUtility.cs | Github Open Source | Open Source | MIT | 2,021 | Chronox.NetCore | EudyContreras | C# | Code | 931 | 3,346 | using Enumerations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Chronox.Utilities
{
public class ChronoxTimeSpanUtility
{
public static int MONTHS_IN_YEAR { get; private set; } = 12;
public static int DAYS_IN_... | 18,348 |
https://github.com/Clivern/Kraven/blob/master/app/middleware/api_funnel.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | Kraven | Clivern | Python | Code | 59 | 223 | """
Logging Middleware
"""
# local Django
from app.modules.util.helpers import Helpers
from app.modules.core.funnel import Funnel
class API_Funnel():
__helpers = None
__logger = None
__funnel = None
__roles = {
}
def __init__(self, get_response):
self.__helpers = Helpers()
... | 36,745 |
https://github.com/L-zhicong/BlogApi/blob/master/app/validate/admin/article/ArticleValidate.php | Github Open Source | Open Source | Apache-2.0 | null | BlogApi | L-zhicong | PHP | Code | 105 | 375 | <?php
namespace app\validate\admin\article;
use app\validate\BaseValidate;
/**
* Class Article
* @package app\qjzp\controller\article
* author:lzcong
* time:11:58
* comment:说明
* package:包命,命名空间
* todo todolis:类中还需要完善的功能列表
*/
class ArticleValidate extends BaseValidate
{
protected $failException = true;
... | 45,929 |
https://github.com/FWcloud916/simple-cart/blob/master/src/Facades/SimpleCart.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,022 | simple-cart | FWcloud916 | PHP | Code | 34 | 96 | <?php
namespace Fwcloud916\SimpleCart\Facades;
use Illuminate\Support\Facades\Facade;
class SimpleCart extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor(): string
{
return 'simple-cart';
}
}
| 1,447 |
https://github.com/namkisang/cyber-ops-with-bash/blob/master/ch05/winlogs.sh | Github Open Source | Open Source | MIT | 2,022 | cyber-ops-with-bash | namkisang | Shell | Code | 131 | 379 | #!/bin/bash -
#
# Cybersecurity Ops with bash
# winlogs.sh
#
# Description:
# Gather copies of Windows log files
#
# Usage:
# winlogs.sh [-z] [dir]
# -z Tar and zip the output
# dir Optional scratch directory for holding the log files
TGZ=0
if (( $# > 0 )) # <1>
then
if [[ ${1:0:2} == '-z' ]] # <2>... | 50,513 |
https://github.com/xuyongshuan/skb/blob/master/mobile/js/tools.js | Github Open Source | Open Source | MIT | 2,017 | skb | xuyongshuan | JavaScript | Code | 644 | 3,039 | var imgpath1 = "http://pic-img.shike8888.com/";
// var imgpath1 = "http://pic-test.shike8888.com/";
(function() {
var __Utils = {
format : function(data) {
var unicode = BASE64.decoder(data);
var str = '';
for (var i = 0, len = unicode.length; i < len; ++i) {
str += String.fromCharCode(unicode[i]);
... | 41,904 |
https://github.com/ilrein/react-widgets/blob/master/lib/Century.js | Github Open Source | Open Source | MIT | 2,016 | react-widgets | ilrein | JavaScript | Code | 492 | 1,572 | 'use strict';
exports.__esModule = true;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _class, _temp2... | 25,073 |
https://github.com/cfour-hi/lerna-ts-rollup/blob/master/packages/bar/lib/index.ts | Github Open Source | Open Source | MIT | 2,020 | lerna-ts-rollup | cfour-hi | TypeScript | Code | 11 | 21 | import Bar from './Bar';
export * from './types';
export default Bar;
| 47,343 |
https://github.com/rilldata/rill-developer/blob/master/svelte.config.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | rill-developer | rilldata | JavaScript | Code | 60 | 197 | import adapter from "@sveltejs/adapter-static";
import preprocess from "svelte-preprocess";
import { resolve } from "path";
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),... | 29,225 |
https://github.com/evilxmunkee/legendary-waffle/blob/master/htdocs/wiki/includes/specials/SpecialRunJobs.php | Github Open Source | Open Source | Apache-2.0 | null | legendary-waffle | evilxmunkee | PHP | Code | 570 | 1,322 | <?php
/**
* Implements Special:RunJobs
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is dis... | 23,698 |
https://github.com/sunilson/ProjectFinder/blob/master/App/plugins/cordova-plugin-local-notification/src/windows/LocalNotificationProxy/LocalNotificationProxy/LocalNotification/Options.cs | Github Open Source | Open Source | MIT | null | ProjectFinder | sunilson | C# | Code | 678 | 1,662 | /*
* Apache 2.0 License
*
* Copyright (c) Sebastian Katzer 2017
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apache License
* Version 2.0 (the 'License'). You may not use this file except in
* compliance with the License. Please obtain a... | 17,860 |
https://github.com/leegilmorecode/serverless-load-testing-artillery/blob/master/src/employee/get-employee/get-employee.schema.js | Github Open Source | Open Source | MIT | 2,021 | serverless-load-testing-artillery | leegilmorecode | JavaScript | Code | 22 | 60 | export const schema = {
type: "object",
required: ["id"],
maxProperties: 1,
minProperties: 1,
properties: {
id: {
type: "number",
},
},
};
| 15,551 |
https://github.com/fullset/penguinV/blob/master/src/image_function_simd.cpp | Github Open Source | Open Source | BSD-3-Clause | null | penguinV | fullset | C++ | Code | 18,552 | 54,814 | #include "image_function_simd.h"
#include "image_function.h"
#include "image_function_helper.h"
#include "parameter_validation.h"
#include "penguinv/cpu_identification.h"
#ifdef PENGUINV_AVX_SET
#include <immintrin.h>
#endif
#ifdef PENGUINV_SSE_SET
#include <emmintrin.h>
#endif
#ifdef PENGUINV_SSSE3_SET
#include <t... | 16,653 |
https://github.com/kmbuckeridge/UGrass_CUE_LUI/blob/master/CUEms.R | Github Open Source | Open Source | CC0-1.0 | 2,020 | UGrass_CUE_LUI | kmbuckeridge | R | Code | 2,832 | 11,341 | setwd("/Users/katebuckeridge/OneDrive - University of Edinburgh/R/UGrass/cue")
setwd("C:/Users/kbuckeri/OneDrive - University of Edinburgh/R/UGrass/cue") ## at work
library(ggplot2)
library(ggpubr)
library(gridExtra)
library(grid)
library(lattice)
library(forcats)
##### Fig. 1 is conceptual figure ###
##### Fig.2a ... | 39,269 |
https://github.com/smartrplace/tutorial/blob/master/src/powerviz-base/src/main/java/org/smartrfactory/contest/app/powerbizbase/config/PowervizBaseConfig.java | Github Open Source | Open Source | Apache-2.0 | null | tutorial | smartrplace | Java | Code | 40 | 189 | package org.smartrfactory.contest.app.powerbizbase.config;
import org.ogema.core.model.ResourceList;
import org.ogema.core.model.simple.StringResource;
import org.ogema.model.metering.ElectricityMeter;
import org.ogema.model.prototypes.Configuration;
/**
* The global configuration resource type for this app.
*/
pu... | 46,919 |
https://github.com/teranich/careful-reader/blob/master/src/utils/converter.ts | Github Open Source | Open Source | MIT | null | careful-reader | teranich | TypeScript | Code | 128 | 421 | import { FB2_XSL, FB2_META, FB2_COVER_IMAGE_XSL } from './xsl';
function convertWithXSL(text: string, xsl: string) {
const parser = new DOMParser();
const xsltProcessor = new XSLTProcessor();
const xml = parser.parseFromString(text, 'text/xml');
const parsedXsl = new window.DOMParser().parseFromString(... | 45,716 |
https://github.com/datalayer-externals/cassandra-elassandra/blob/master/docs/reference/settings/notification-settings.asciidoc | Github Open Source | Open Source | Apache-2.0 | 2,022 | cassandra-elassandra | datalayer-externals | AsciiDoc | Code | 1,572 | 4,136 | [role="xpack"]
[[notification-settings]]
=== {watcher} settings in Elasticsearch
[subs="attributes"]
++++
<titleabbrev>{watcher} Settings</titleabbrev>
++++
You configure `xpack.notification` settings in `elasticsearch.yml` to
send set up {watcher} and send notifications via
<<email-notification-settings,email>>,
<<h... | 18,255 |
https://github.com/fgrutsch/tapir/blob/master/server/zio-http4s-server/src/test/scala/sttp/tapir/server/http4s/ztapir/ZHttp4sTestServerInterpreter.scala | Github Open Source | Open Source | Apache-2.0 | 2,019 | tapir | fgrutsch | Scala | Code | 150 | 750 | package sttp.tapir.server.http4s.ztapir
import cats.data.NonEmptyList
import cats.effect.{IO, Resource}
import cats.syntax.all._
import org.http4s.blaze.server.BlazeServerBuilder
import org.http4s.server.websocket.WebSocketBuilder2
import org.http4s.{HttpApp, HttpRoutes}
import sttp.capabilities.WebSockets
import sttp... | 6,854 |
https://github.com/LyonsLab/Yerba/blob/master/scripts/work_queue_pool | Github Open Source | Open Source | BSD-2-Clause | 2,022 | Yerba | LyonsLab | Shell | Code | 213 | 568 | #!/bin/bash
### BEGIN INIT INFO
# Provides:catalog_server
# # Required-Start: $local_fs $syslog $remote_fs dbus
# # Required-Stop: $local_fs $syslog $remote_fs
# # Default-Start: 2 3 4 5
# # Default-Stop: 0 1 6
# # Short-Description: Start the cctools work_queue_pool
# ### END INIT INFO
WORKDIR=/opt/Yerba/work_queue_p... | 32,831 |
https://github.com/infohexode/LVCHubs-backend/blob/master/loyaltyReward/route.js | Github Open Source | Open Source | MIT | null | LVCHubs-backend | infohexode | JavaScript | Code | 94 | 348 | var express = require('express');
var router = express.Router();
var controller = require('./controller');
const authenticator = require('../helper/auth');
router.post('/add',authenticator.validateToken,(req, res, next) => {
return controller.add(req).then((result) => {
return res.status(200).json({ da... | 23,251 |
https://github.com/traDE4chor/trade-web-ui/blob/master/src/app/pipes/resolve-resource-id.pipe.spec.ts | Github Open Source | Open Source | Apache-2.0 | null | trade-web-ui | traDE4chor | TypeScript | Code | 24 | 75 | import { ResolveResourceIdPipe } from './resolve-resource-id.pipe';
describe('ResolveResourceIdPipe', () => {
it('create an instance', () => {
const pipe = new ResolveResourceIdPipe();
expect(pipe).toBeTruthy();
});
});
| 33,701 |
https://github.com/bclnet/GameEstate/blob/master/src/Estates/Red/GameEstate.Red.Format/Red/W3/RTTIConvert/STemporarilyPausedEffect.cs | Github Open Source | Open Source | MIT | null | GameEstate | bclnet | C# | Code | 117 | 413 | using System.IO;
using System.Runtime.Serialization;
using GameEstate.Red.Formats.Red.CR2W.Reflection;
using FastMember;
using static GameEstate.Red.Formats.Red.Records.Enums;
namespace GameEstate.Red.Formats.Red.Types
{
[DataContract(Namespace = "")]
[REDMeta]
public class STemporarilyPausedEffect : CVariable
{
... | 31,955 |
https://github.com/magefree/mage/blob/master/Mage.Sets/src/mage/cards/b/BorborygmosEnraged.java | Github Open Source | Open Source | MIT | 2,023 | mage | magefree | Java | Code | 157 | 705 |
package mage.cards.b;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.DiscardTargetCost;
import mage.abilities.effects.common.Dama... | 24,332 |
https://github.com/Doctor-wu/Tenon/blob/master/packages/tenon-node-framework/src/service/registry.ts | Github Open Source | Open Source | MIT | 2,022 | Tenon | Doctor-wu | TypeScript | Code | 6 | 10 |
export const serviceRegistry = new Map; | 11,141 |
https://github.com/bayological/axial-protocol/blob/master/contracts/Cliff.sol | Github Open Source | Open Source | MIT | 2,022 | axial-protocol | bayological | Solidity | Code | 284 | 732 | // SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
/**
* @title Cliff
* @dev A token holder ... | 16,192 |
https://github.com/TheKojuEffect/OpERP/blob/master/OpERP/src/main/java/devopsdistilled/operp/client/business/sales/panes/controllers/SalePaneController.java | Github Open Source | Open Source | MIT | 2,013 | OpERP | TheKojuEffect | Java | Code | 19 | 150 | package devopsdistilled.operp.client.business.sales.panes.controllers;
import devopsdistilled.operp.client.abstracts.EntityPaneController;
import devopsdistilled.operp.client.business.sales.panes.SalePane;
import devopsdistilled.operp.client.business.sales.panes.models.SalePaneModel;
import devopsdistilled.operp.serve... | 9,076 |
https://github.com/abpframework/abp-samples/blob/master/Ids2OpenId/src/Ids2OpenId.HttpApi.Client/Ids2OpenIdHttpApiClientModule.cs | Github Open Source | Open Source | MIT | 2,023 | abp-samples | abpframework | C# | Code | 58 | 341 | using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Account;
using Volo.Abp.FeatureManagement;
using Volo.Abp.Identity;
using Volo.Abp.Modularity;
using Volo.Abp.PermissionManagement;
using Volo.Abp.TenantManagement;
using Volo.Abp.SettingManagement;
using Volo.Abp.VirtualFileSystem;
namespace Ids2OpenId;
... | 21,138 |
https://github.com/bugsbunnyshah/braineous_dataplatform/blob/master/src/main/java/org/mitre/schemastore/porters/mappingImporters/UserMatchAnnotationDBImporter.java | Github Open Source | Open Source | Apache-2.0 | null | braineous_dataplatform | bugsbunnyshah | Java | Code | 737 | 2,541 | // Copyright 2008 The MITRE Corporation. ALL RIGHTS RESERVED.
package org.mitre.schemastore.porters.mappingImporters;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import org.mitre.schemastore.model.MappingCell;
import org.mitre.schemastore.model.ProjectSchema;
import org.mitre.sche... | 9,442 |
https://github.com/meltwater/mlabs-graphql/blob/master/lib/server/exec.js | Github Open Source | Open Source | MIT | 2,021 | mlabs-graphql | meltwater | JavaScript | Code | 159 | 401 | import { graphql } from 'graphql'
import createLogger from '@meltwater/mlabs-logger'
import { entries, isNilOrEmpty, isNotString } from '@meltwater/phi'
export default async ({
schema,
query,
root,
operationName,
context = {},
variables,
throwGqlErrors = true,
log = createLogger()
}) => {
for (const ... | 30,798 |
https://github.com/miren521/qirui_saas/blob/master/app/shop/controller/Account.php | Github Open Source | Open Source | FSFAP | 2,022 | qirui_saas | miren521 | PHP | Code | 777 | 4,231 | <?php
/**
* KirySaaS--------||bai T o o Y ||
* =========================================================
* ----------------------------------------------
* User Mack Qin
* Copy right 2019-2029 kiry 保留所有权利。
* ----------------------------------------------
* ========================================================... | 31,239 |
https://github.com/SaSaChu/SP/blob/master/cmd/libs/node/serve/Ready.js | Github Open Source | Open Source | MIT | null | SP | SaSaChu | JavaScript | Code | 68 | 228 | /**
* @author OA Wu <comdan66@gmail.com>
* @copyright Copyright (c) 2015 - 2019, Ginkgo
* @license http://opensource.org/licenses/MIT MIT License
* @link https://www.ioa.tw/
*/
const Display = require('../Display')
const Print = require('../Print')
module.exports = closure =>
Display.title... | 11,940 |
https://github.com/XinRan5312/ZCOriginal/blob/master/src/com/minjinsuo/zhongchou/model/Model_GetVfcode.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | ZCOriginal | XinRan5312 | Java | Code | 35 | 116 | package com.minjinsuo.zhongchou.model;
/**
* 获取验证码
*
* @author Jzc
*
*/
public class Model_GetVfcode {
private String vfcode;
public String getVfcode() {
return vfcode;
}
public void setVfcode(String vfcode) {
this.vfcode = vfcode;
}
}
| 41,092 |
https://github.com/Half-Shot/MagnetHS/blob/master/HalfShot.MagnetHS/Services/ClientServerAPIService/Requests/LoginRequest.cs | Github Open Source | Open Source | MIT | 2,021 | MagnetHS | Half-Shot | C# | Code | 98 | 273 | using System;
using HalfShot.MagnetHS.CommonStructures;
using HalfShot.MagnetHS.CommonStructures.Enums;
using System.Collections.Generic;
using System.Text;
namespace HalfShot.MagnetHS.ClientServerAPIService.Requests
{
[Serializable]
class LoginRequest
{
public string type { get; set; }
pu... | 49,957 |
https://github.com/emipa606/StorageCrates/blob/master/Source/CompressionMod/KompressionModThingDefs.cs | Github Open Source | Open Source | MIT | null | StorageCrates | emipa606 | C# | Code | 38 | 103 | using Verse;
namespace KompressionMod
{
// Token: 0x02000003 RID: 3
public class KompressionModThingDefs : ThingDef
{
// Token: 0x04000004 RID: 4
public string StoredStuff = "";
// Token: 0x04000005 RID: 5
public int StoredStuffAmmount = 0;
}
} | 12,958 |
https://github.com/folio-org/ui-quick-marc/blob/master/src/QuickMarcEditor/QuickMarcEditorRows/MaterialCharsField/MaterialCharsField.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | ui-quick-marc | folio-org | JavaScript | Code | 72 | 228 | import React from 'react';
import PropTypes from 'prop-types';
import { TYPE_SELECT_FIELD_PROPS } from './constants';
import { BytesField } from '../BytesField';
import useSelectField from '../useSelectField';
import getMaterialCharsFieldConfig from './getMaterialCharsFieldConfig';
const propTypes = {
name: PropTyp... | 29,219 |
https://github.com/Sumanth5591/BELLATRIX-Kotlin/blob/master/bellatrix.ios/src/main/java/solutions/bellatrix/ios/infrastructure/DriverService.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | BELLATRIX-Kotlin | Sumanth5591 | Kotlin | Code | 400 | 1,482 | /*
* Copyright 2021 Automate The Planet Ltd.
* Author: Anton Angelov
* 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 applic... | 17,380 |
https://github.com/simbelmas/istio/blob/master/tests/integration/security/ca_custom_root/trust_domain_alias_secure_naming_test.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | istio | simbelmas | Go | Code | 449 | 1,366 | // +build integ
// Copyright Istio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | 166 |
https://github.com/DataSciencePRDH/PILASPack/blob/master/PilasPack/man/testApiDownloadAll.Rd | Github Open Source | Open Source | MIT | 2,021 | PILASPack | DataSciencePRDH | R | Code | 82 | 201 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/testApiDownloadAll.R
\name{testApiDownloadAll}
\alias{testApiDownloadAll}
\title{Downloads the enteirity of the unique tests API}
\usage{
testApiDownloadAll(email, password)
}
\arguments{
\item{email}{Bioportal account email to be used to acc... | 21,851 |
https://github.com/Jackarelly/_Tareas/blob/master/ejericios_php/ejer1.php | Github Open Source | Open Source | MIT | 2,016 | _Tareas | Jackarelly | PHP | Code | 246 | 1,273 | <!DOCTYPE html>
<html lang="en">
<head>
<?php
$total = $_GET['res'];
?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
<title>Ceferina</title>
<!-- CSS -->
<link href="https://fonts.google... | 48,613 |
https://github.com/gurkenlabs/Java-space-game/blob/master/src/main/java/unicus/spacegame/spaceship/Engineering.java | Github Open Source | Open Source | MIT | 2,021 | Java-space-game | gurkenlabs | Java | Code | 307 | 776 | package unicus.spacegame.spaceship;
import unicus.spacegame.crew.*;
import static unicus.spacegame.utilities.Constants.*;
public class Engineering extends SpecialModule implements Workplace {
MainEngineeringJob job;
protected Engineering(ShipLoc loc) {
super(loc);
job = new MainEngineeringJ... | 13,722 |
https://github.com/Toaster192/.dotfiles/blob/master/.vim/autoload/functions.vim | Github Open Source | Open Source | MIT | 2,020 | .dotfiles | Toaster192 | Vim Script | Code | 641 | 1,944 | " vim-functions - Custom helper functions
" Maintainer: Alphonse Mariya <alphonse.mariya@hotmail.com>
" Version: 0.1.0
" License: MIT
" Location: autoload/functions.vim
let s:save_cpo = &cpo
set cpo&vim
" OS related variables
let s:is_win = has('win32') || has('win64')
let s:is_mac = !s:is_win && (has('mac') || has('... | 6,581 |
https://github.com/feff-tetsu/mapbox-vision-ios/blob/master/MapboxVision/VisionManager/VisionManagerProtocol.swift | Github Open Source | Open Source | MIT | 2,022 | mapbox-vision-ios | feff-tetsu | Swift | Code | 232 | 434 | import Foundation
/**
Protocol that provides an ability to use `VisionManager` and `VisionReplayManager` interchangeably by abstracting common functionality.
*/
public protocol VisionManagerProtocol: AnyObject {
/**
Performance configuration for machine learning models.
Default value is dynamic perform... | 6,051 |
https://github.com/juandadeveloper/dotfiles/blob/master/.vscode/extensions/formulahendry.docker-explorer-0.1.7/node_modules/applicationinsights/out/AutoCollection/CorrelationContextManager.d.ts | Github Open Source | Open Source | MIT | null | dotfiles | juandadeveloper | TypeScript | Code | 253 | 511 | export interface CorrelationContext {
operation: {
name: string;
id: string;
parentId: string;
};
/** Do not store sensitive information here.
* Properties here can be exposed in a future SDK release via outgoing HTTP headers for correlating data cross-component.
*/
cu... | 33,831 |
https://github.com/Zanthra/GTTS/blob/master/config.lua | Github Open Source | Open Source | MIT | 2,022 | GTTS | Zanthra | Lua | Code | 848 | 2,479 |
gtts_time_scale = 1.0
gtts_time_scale_inverse = 1.0
gtts_fluid_speed = false
if settings.startup["gtts-Target-FrameRate"] and settings.startup["gtts-Target-FrameRate"].value >= 6 and settings.startup["gtts-Target-FrameRate"].value <= 480 then
gtts_time_scale = 60.0 / settings.startup["gtts-Target-FrameRate"].value... | 30,563 |
https://github.com/IanWigle/UE4_CommandAndConquer_FAN_GAME/blob/master/Source/CommandAndConquer/Units/Buildings/Global/Helipad.cpp | Github Open Source | Open Source | MIT | 2,019 | UE4_CommandAndConquer_FAN_GAME | IanWigle | C++ | Code | 42 | 139 | // Fill out your copyright notice in the Description page of Project Settings.
#include "Helipad.h"
AHelipad::AHelipad()
{
m_Cost = 1500;
m_Power = -10;
m_BuildingID = BuildingID::VE_Helipad;
m_UnitArmor = UnitArmor::VE_Light;
m_UnitType = UnitType::VE_Building;
m_UnitName = "Helipad";
m_MaxHealth = 400;
m_... | 21,710 |
https://github.com/willem-vanheemstrasystems/java-headstart/blob/master/bucky/src/bucky/GUISixtyMain.java | Github Open Source | Open Source | MIT | null | java-headstart | willem-vanheemstrasystems | Java | Code | 7 | 19 | package bucky;
public class GUISixtyMain {
}
| 28,711 |
https://github.com/josejustino/movies4u/blob/master/src/config/index.ts | Github Open Source | Open Source | MIT | null | movies4u | josejustino | TypeScript | Code | 10 | 42 | export const API_KEY = process.env.REACT_APP_API_KEY;
export const BASE_URL = process.env.REACT_APP_BASE_URL;
| 43,588 |
https://github.com/mihailungu20/AplicatieLicenta/blob/master/resources/views/categorii/home.blade.php | Github Open Source | Open Source | MIT | null | AplicatieLicenta | mihailungu20 | PHP | Code | 106 | 575 | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-12 col-md-12">
<div class="card">
<div class="card-header">
Formular adaugare categorie
</div>
<div class="card-body">
<form>
@csrf
<div class="form-gr... | 30,601 |
https://github.com/apache/hadoop/blob/master/hadoop-common-project/hadoop-common/src/main/winutils/main.c | Github Open Source | Open Source | CC-PDDC, CC0-1.0, CC-BY-3.0, LicenseRef-scancode-unknown-license-reference, LGPL-2.1-only, LicenseRef-scancode-other-permissive, CDDL-1.0, GCC-exception-3.1, MIT, EPL-1.0, Classpath-exception-2.0, BSD-3-Clause, GPL-2.0-only, Apache-2.0, LicenseRef-scancode-public-domain, LicenseRef-scancode-jdom, CDDL-1.1, BSD-2-Clause... | 2,023 | hadoop | apache | C | Code | 472 | 1,535 | /**
* 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 ... | 32,109 |
https://github.com/prydin/wavefront-opentelemetry-exporter-java/blob/master/build.gradle | Github Open Source | Open Source | Apache-2.0 | 2,020 | wavefront-opentelemetry-exporter-java | prydin | Gradle | Code | 55 | 360 | plugins {
id 'groovy'
id 'java'
id 'com.github.johnrengelman.shadow' version '5.2.0'
}
group 'com.wavefront'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
project.tasks.assemble.dependsOn project.tasks.shadowJar
repositories {
mavenCentral()
}
dependencies {
compile 'com.wavefront:wavefront... | 48,807 |
https://github.com/niklaslundberg/Arbor.AspNetCore.Mvc.Formatting.X-www-form-urlencoded/blob/master/tests/Arbor.AspNetCore.Mvc.Formatting.HtmlForms.Tests.Unit/TestController.cs | Github Open Source | Open Source | MIT | 2,021 | Arbor.AspNetCore.Mvc.Formatting.X-www-form-urlencoded | niklaslundberg | C# | Code | 33 | 149 | using Microsoft.AspNetCore.Mvc;
namespace Arbor.AspNetCore.Mvc.Formatting.HtmlForms.Core.Tests.Unit
{
[Route("")]
public class TestController : Controller
{
[HttpPost]
[Route("")]
public IActionResult Index([FromBody] SampleClassWithCtor? sampleClassWithCtor)
{
... | 37,272 |
https://github.com/exeRogue/ussdwizardhelper/blob/master/app/src/main/java/exequiel/ussdwizardhelper/MainActivity.java | Github Open Source | Open Source | Apache-2.0 | null | ussdwizardhelper | exeRogue | Java | Code | 524 | 2,364 | package exequiel.ussdwizardhelper;
import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.res.ColorStateList;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.... | 7,835 |
https://github.com/ABorovtsov/tbot/blob/master/dac/orders_csv.py | Github Open Source | Open Source | MIT | null | tbot | ABorovtsov | Python | Code | 92 | 459 | import os
import pandas as pd
import datetime
class Orders:
def __init__(self, products_dac=None):
self.csv_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '../data/orders.csv'))
with open(self.csv_path, 'r', encoding='utf-8') as csv:
line = next(csv)
self.co... | 37,198 |
https://github.com/ditn/coil/blob/master/coil-default/src/main/java/coil/api/ImageViews.kt | Github Open Source | Open Source | Apache-2.0 | 2,019 | coil | ditn | Kotlin | Code | 353 | 1,026 | @file:JvmName("ImageViews")
@file:Suppress("unused", "NOTHING_TO_INLINE")
package coil.api
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.net.Uri
import android.widget.ImageView
import androidx.annotation.DrawableRes
import coil.Coil
import coil.ImageLoader
import coil.request... | 6,249 |
https://github.com/AdamTheLesser/mecco_artDirector/blob/master/lxserv/kelvin_quickScale.py | Github Open Source | Open Source | MIT | 2,018 | mecco_artDirector | AdamTheLesser | Python | Code | 221 | 1,013 | #python
import lx, lxu, modo, traceback
NAME_CMD = "kelvin.quickScale"
def get_active_layers():
"""Returns a list of all currently active mesh layers (regardless of selection state)."""
lyr_svc = lx.service.Layer ()
scan = lx.object.LayerScan (lyr_svc.ScanAllocate (lx.symbol.f_LAYERSCAN_ACTIVE))
ite... | 28,760 |
https://github.com/KrzysiekES/mc/blob/master/src/app/technology/technology-item/technology-item.interface.ts | Github Open Source | Open Source | MIT | null | mc | KrzysiekES | TypeScript | Code | 11 | 28 | export interface ITechnologyItem {
title: string,
text: string,
url?: string
} | 20,524 |
https://github.com/restimel/versou/blob/master/src/Types.d.ts | Github Open Source | Open Source | MIT | null | versou | restimel | TypeScript | Code | 307 | 718 | import * as L from 'leaflet';
/* List of common types used through the application */
/* {{{ Menu */
export type MenuType = '' | 'settings' | 'actions' | 'menuActions';
export type MenuPosition = 'left' | 'center' | 'right';
/* }}} */
/* {{{ Notification */
export interface NotificationSettings {
/** Try to se... | 10,221 |
https://github.com/lkmcl37/Simple-WordSeg-Greedy-Algorithm/blob/master/Training.java | Github Open Source | Open Source | MIT | null | Simple-WordSeg-Greedy-Algorithm | lkmcl37 | Java | Code | 194 | 664 | package training;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.HashMap;
public class Training {
... | 45,880 |
https://github.com/helyho/Voovan/blob/master/Common/src/main/java/org/voovan/tools/ioc/Context.java | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | Voovan | helyho | Java | Code | 686 | 2,538 | package org.voovan.tools.ioc;
import org.voovan.tools.AnnotataionScaner;
import org.voovan.tools.TEnv;
import org.voovan.tools.TFile;
import org.voovan.tools.TObject;
import org.voovan.tools.TString;
import org.voovan.tools.exception.IOCException;
import org.voovan.tools.ioc.annotation.Bean;
import org.voovan.tools.io... | 16,644 |
https://github.com/sedc-codecademy/skwd8-08-aspnetmvc/blob/master/g2/Class04/Class04.DemoApp/Class04.ViewsPart01/Views/Shared/_BookDetails.cshtml | Github Open Source | Open Source | MIT | null | skwd8-08-aspnetmvc | sedc-codecademy | C# | Code | 66 | 212 |
@model Book
@{
string availability = Model.IsAvailable ? "YES" : "NO";
//string colorCss = book.IsAvailable ? "green" : "red";
string colorClass = Model.IsAvailable ? "available" : "not-available";
bool isAdmin = false;
}
@if (isAdmin)
{
<li>
@Model.Title [@Model.ISBN] | Author: @Model.... | 16,934 |
https://github.com/fjyuan/Readtable/blob/master/Readtable/Data/Table.cs | Github Open Source | Open Source | MIT | 2,020 | Readtable | fjyuan | C# | Code | 316 | 869 | using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
namespace Readtable
{
public class Table<K, R> where R : IRecord<K>, new ()
{
string filename, datfile, binfile;
Dictionary<K, R> records;
public Table (string path)
{
records = new D... | 38,875 |
https://github.com/openlattice/lattice-ui-kit/blob/master/src/table/src/components/HeadCell.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | lattice-ui-kit | openlattice | JavaScript | Code | 145 | 407 | // @flow
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import type { Node } from 'react';
import { faSort, faSortUp, faSortDown } from '@fortawesome/pro-duotone-svg-icons';
import { Cell } from './styled';
import type { SortOrder } from '../../types';
type Props = {
cellStyle ? :Object;
childr... | 34,695 |
https://github.com/tmenier/Flurl/blob/master/src/Flurl.Http/Testing/HttpTest.cs | Github Open Source | Open Source | MIT | 2,023 | Flurl | tmenier | C# | Code | 401 | 1,160 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Net.Http;
using Flurl.Http.Configuration;
namespace Flurl.Http.Testing
{
/// <summary>
/// An object whose existence puts Flurl.Http into test mode where actual ... | 13,078 |
https://github.com/iorodeo/lia_video/blob/master/lia_web_interface/src/lia_web_interface/db_tools.py | Github Open Source | Open Source | Apache-2.0 | null | lia_video | iorodeo | Python | Code | 160 | 581 | """
Some tools for interacting with the Redis database
"""
import cPickle as pickle
import config
import config_tools
def init_db(db):
trial_values_default = config_tools.get_defaults(config.trial_values_info)
log_values_default = config_tools.get_defaults(config.log_values_info)
set_dict(db,'trial_values'... | 41,206 |
https://github.com/nathannau/efcore.pg/blob/master/src/EFCore.PG/Extensions/NpgsqlAlterDatabaseOperationAnnotations.cs | Github Open Source | Open Source | 2,021 | efcore.pg | nathannau | C# | Code | 150 | 715 | using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using Microsoft.EntityFrameworkCore.Migrations.Operations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
// ReSharper disable once CheckNamespace
namespace Microsoft.EntityFrameworkCore
{
/// <summary>
/// Extension metho... | 26,547 | |
https://github.com/vladn-ma/vladn-ovs-doc/blob/master/doxygen/ovs_all/html/classovs_1_1poller_1_1__SelectSelect.js | Github Open Source | Open Source | Apache-2.0 | null | vladn-ovs-doc | vladn-ma | JavaScript | Code | 35 | 316 | var classovs_1_1poller_1_1__SelectSelect =
[
[ "__init__", "classovs_1_1poller_1_1__SelectSelect.html#a5b8eb9a3de861512f300553ab654c1c1", null ],
[ "poll", "classovs_1_1poller_1_1__SelectSelect.html#ab9aba7c1ad09fe650fb8bb218e980354", null ],
[ "register", "classovs_1_1poller_1_1__SelectSelect.html#ae77173f... | 34,300 |
https://github.com/BlameDeng/Xue-ui/blob/master/src/form/cascader/cascader-item.vue | Github Open Source | Open Source | MIT | 2,021 | Xue-ui | BlameDeng | Vue | Code | 189 | 758 | <template>
<div class="x-cascader-item">
<div class="item-wrapper" v-if="source.children&&source.children.length">
<div v-for="item in source.children" :key="item.value" class="x-item">
<div @click="onClick(item)" class="x-label" :class="{active:selected.indexOf(item.label)>-1}">... | 38,419 |
https://github.com/KurchenkoDarij/SevenBible/blob/master/src/components/Main/commentaries/commentariesTopBar.vue | Github Open Source | Open Source | MIT | 2,022 | SevenBible | KurchenkoDarij | Vue | Code | 89 | 386 | <template>
<UIButtonset>
<ModuleSelector
module="commentaries"
:path="['modules', 'commentaries']"
:file-name="props.commentariesFileName"
/>
<q-separator vertical/>
<q-btn
class="grow-1"
:label="props.bookShortName + ' ' + props.chapterNumber"
no-caps
unelev... | 38,200 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.