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/shingchuang/intelRSD/blob/master/PODM/SW/pod-manager/podm-business-services/src/main/java/com/intel/podm/business/redfish/Contexts.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | intelRSD | shingchuang | Java | Code | 606 | 2,674 | /*
* Copyright (c) 2015 Intel Corporation
*
* 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 ... | 30,996 |
https://github.com/EpamLifeSciencesTeam/cromwell/blob/master/engine/src/main/scala/cromwell/webservice/routes/MetadataRouteSupport.scala | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | 2,020 | cromwell | EpamLifeSciencesTeam | Scala | Code | 570 | 2,407 | package cromwell.webservice.routes
import akka.actor.{ActorRef, ActorRefFactory}
import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport._
import akka.http.scaladsl.marshalling.ToResponseMarshallable
import akka.http.scaladsl.model.StatusCodes
import akka.http.scaladsl.server.Directives._
import akka.http.sca... | 42,168 |
https://github.com/0xb4rt/tendermint-vue/blob/master/packages/vuex/lib/modules/common/env/env.js | Github Open Source | Open Source | Apache-2.0 | null | tendermint-vue | 0xb4rt | JavaScript | Code | 1,187 | 4,266 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _clientJs = _interopRequireDefault(require("@starport/client-js"));
var _SpVuexError = _interopRequireDefault(require("../../../errors/SpVuexError"));
function _interopRequireDefault(obj) { return obj && ... | 97 |
https://github.com/moon-client/kda/blob/master/src/main/kotlin/com/moon/kda/entity/embed/EmbedBuilder.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | kda | moon-client | Kotlin | Code | 214 | 553 | /*
* Copyright 2021 Moon Client
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 10,242 |
https://github.com/SandeepDEV20/IndoVisionLoanManagement/blob/master/application/controllers/api/Api_admin.php | Github Open Source | Open Source | MIT | null | IndoVisionLoanManagement | SandeepDEV20 | PHP | Code | 1,157 | 7,938 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
require APPPATH . '/libraries/REST_Controller.php';
//use chriskacerguis\RestServer\RestController;
class Api_admin extends REST_Controller
{
public function __construct()
{
parent::__construct();
$this->load->model('Common_mo... | 14,778 |
https://github.com/juadk/epinio/blob/master/internal/api/v1/configurationbinding/controller.go | Github Open Source | Open Source | Apache-2.0 | null | epinio | juadk | Go | Code | 29 | 42 | // Configurationbinding contains the API handlers to manage configuration bindings.
package configurationbinding
// Controller represents all functionality of the API related to configuration bindings
type Controller struct {
}
| 23,181 |
https://github.com/eswiss/geofeatures/blob/master/Example/Pods/Headers/Private/GeoFeatures/boost/function_types/is_member_function_pointer.hpp | Github Open Source | Open Source | BSL-1.0, Apache-2.0 | 2,016 | geofeatures | eswiss | C++ | Code | 1 | 23 | ../../../../../../../GeoFeatures/boost/function_types/is_member_function_pointer.hpp | 18,496 |
https://github.com/AudiusProject/audius-mobile-clien/blob/master/src/components/notifications/content/Remix.tsx | Github Open Source | Open Source | Apache-2.0 | 2,022 | audius-mobile-clien | AudiusProject | TypeScript | Code | 182 | 614 | import React from 'react'
import { StyleSheet, Text, View } from 'react-native'
import Track from 'app/models/Track'
import {
RemixCreate as RemixNotification,
Entity as EntityType
} from 'app/store/notifications/types'
import Entity from './Entity'
import TwitterShare from './TwitterShare'
import User from './U... | 38,388 |
https://github.com/BoomerangProject/EthereumIdentitySDK/blob/master/universal-login-example/src/css/layout/_base.sass | Github Open Source | Open Source | MIT | 2,018 | EthereumIdentitySDK | BoomerangProject | Sass | Code | 68 | 249 | *
box-sizing: border-box
-webkit-font-smoothing: antialiased
html
overflow-x: hidden
body
overflow-x: hidden
.container
width: 100%
max-width: 545px
margin: 0 auto
padding: 0 30px
.row
display: flex
.align-items-center
align-items: center
.separator
height: 4px
margin: 35px 0
border: n... | 41,722 |
https://github.com/NiklasZ/jspurefix/blob/master/src/types/FIX.5.0SP2/repo/application_message_report.ts | Github Open Source | Open Source | MIT | 2,022 | jspurefix | NiklasZ | TypeScript | Code | 103 | 247 | import { IStandardHeader } from './set/standard_header'
import { IApplIDReportGrp } from './set/appl_id_report_grp'
import { IStandardTrailer } from './set/standard_trailer'
/*
****************************************************************
* This message is used for three difference purposes: to reset *
* the ApplSe... | 9,683 |
https://github.com/studentutu/CSharpCodeProject/blob/master/Animation/TwoD/Frame/UVFrameAnimation.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | CSharpCodeProject | studentutu | C# | Code | 322 | 799 | /*************************************************************************
* Copyright (C) 2017-2019 Mogoson. All rights reserved.
*------------------------------------------------------------------------
* File : UVFrameAnimation.cs
* Description : Define sequence frames animation base on UV offset.... | 28,125 |
https://github.com/KevinVG/BTW-Attest-PHP-API/blob/master/src/Api/Exceptions.php | Github Open Source | Open Source | MIT | null | BTW-Attest-PHP-API | KevinVG | PHP | Code | 59 | 116 | <?PHP
namespace VatCertificates;
// Generic Exception
class Exception extends \Exception {}
// Auth Exceptions
class MissingXUserKeyException extends Exception {};
class InvalidXUserKeyException extends Exception {};
class AccountLimitReachedException extends Exception {};
class AccountExpiredException extends ... | 13,460 |
https://github.com/PrimaShouji/Prima2/blob/master/src/Prima/Game/FFXIV/FFLogs/FFLogsUtils.cs | Github Open Source | Open Source | Apache-2.0 | null | Prima2 | PrimaShouji | C# | Code | 69 | 247 | using System.Text.RegularExpressions;
namespace Prima.Game.FFXIV.FFLogs
{
public static class FFLogsUtils
{
private static readonly Regex IsLogLinkRegex = new(@"fflogs\.com\/reports\/", RegexOptions.Compiled | RegexOptions.IgnoreCase);
public static readonly Regex LogLinkToIdRegex = new(@"[a-... | 39,860 |
https://github.com/dvsa/olcs-backend/blob/master/module/Api/src/Entity/ReopenableInterface.php | Github Open Source | Open Source | MIT | 2,023 | olcs-backend | dvsa | PHP | Code | 24 | 79 | <?php
namespace Dvsa\Olcs\Api\Entity;
/**
* Reopenable interface
*
* @author Ian Lindsay <ian@hemera-business-services.co.uk>
*/
interface ReopenableInterface
{
public function reopen();
public function canReopen();
}
| 26,344 |
https://github.com/edgaradrian/iOS-Practices/blob/master/SwiftUI/Examples/MVVM/ListMoviesApp/ListMoviesApp/Models/Movie.swift | Github Open Source | Open Source | MIT | null | iOS-Practices | edgaradrian | Swift | Code | 75 | 188 | //
// Movie.swift
// ListMoviesApp
//
// Created by Edgar Adrián on 05/12/20.
//
import Foundation
struct MovieResponse: Codable {
let movies: [Movie]
private enum CodingKeys: String, CodingKey {
case movies = "Search"
}
}
struct Movie: Codable {
let title: String
let ye... | 19,498 |
https://github.com/clems4ever/GoGraphKB/blob/master/internal/knowledge/query_and_or_expression.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | GoGraphKB | clems4ever | Go | Code | 541 | 1,399 | package knowledge
import (
"fmt"
"strings"
)
// AndOrExpression represent a AND or OR expression
type AndOrExpression struct {
And bool // true for And and false for Or
Children []AndOrExpression
Expression string
}
func (aoe AndOrExpression) stringInternal(outer bool) string {
if aoe.Expression != ""... | 12,193 |
https://github.com/zxd95/vue-template/blob/master/stepValidate.js | Github Open Source | Open Source | MIT | 2,022 | vue-template | zxd95 | JavaScript | Code | 158 | 457 | /**
* @description 平台组mixin的方法 验证页面中的ref
*/
export default{
methods: {
stepValidate (filterFun) {
let refs = this.$refs
// console.log('stepValidate', refs)
let arr = Object.keys(refs).map(item => {
if (refs[item] instanceof Array) {
return refs[item]
} else {
... | 11,549 |
https://github.com/ksjoberg/dd-trace-dotnet/blob/master/src/Datadog.Trace.OpenTracing/ICodec.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | dd-trace-dotnet | ksjoberg | C# | Code | 17 | 66 | namespace Datadog.Trace.OpenTracing
{
internal interface ICodec
{
void Inject(global::OpenTracing.ISpanContext spanContext, object carrier);
global::OpenTracing.ISpanContext Extract(object carrier);
}
}
| 24,747 |
https://github.com/EMCECS/ecs-sync/blob/master/ecs-sync-model/src/main/java/com/emc/ecs/sync/rest/JobControlStatus.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | ecs-sync | EMCECS | Java | Code | 140 | 291 | /*
* Copyright (c) 2014-2017 Dell Inc. or its subsidiaries. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | 34,860 |
https://github.com/uncle-lv/simu/blob/master/setup.py | Github Open Source | Open Source | MIT | null | simu | uncle-lv | Python | Code | 42 | 250 | from setuptools import setup, find_packages
import pathlib
import setuptools
here = pathlib.Path(__file__).parent.resolve()
long_description = (here / 'README.md').read_text(encoding='utf-8')
setup(
name='simu',
version='0.0.1',
description='a simulation data generator',
long_description=long_descri... | 9,450 |
https://github.com/frantchico/igrp-catalogo/blob/master/IGRP-Template/src/main/webapp/images/IGRP/IGRP2.3/plugins/gis/v2/gis.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | igrp-catalogo | frantchico | JavaScript | Code | 192 | 815 | (function(){
var modules = {};
function MapController(dom){
var app = this,
dataURL = $(dom).data().configURL || false,
id = $(dom).attr('id') || 'map-'+$.IGRP.utils.unique();
app.dom = dom;
app.id = id;
$(app.dom).attr('id' ,id);
app.loading = function(v){
var ac... | 22,889 |
https://github.com/IntrepidPursuits/Android-Utils/blob/master/commonutils/src/main/java/io/intrepid/commonutils/PackageUtils.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | Android-Utils | IntrepidPursuits | Java | Code | 87 | 212 | package io.intrepid.commonutils;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.support.annotation.NonNull;
public class PackageUtils {
/**
* Checks if an app is installed and enabled
*
* @param context the con... | 41,160 |
https://github.com/NerveNetwork/nerve/blob/master/nerve/dex/src/main/java/network/nerve/dex/manager/DexService.java | Github Open Source | Open Source | MIT | 2,023 | nerve | NerveNetwork | Java | Code | 1,266 | 6,896 | package network.nerve.dex.manager;
import io.nuls.base.basic.AddressTool;
import io.nuls.base.basic.NulsByteBuffer;
import io.nuls.base.data.*;
import io.nuls.core.constant.TxType;
import io.nuls.core.core.annotation.Autowired;
import io.nuls.core.core.annotation.Component;
import io.nuls.core.crypto.HexUtil;
import i... | 45,975 |
https://github.com/Xhiny/qs_cmf/blob/master/app/Common/Conf/config.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | qs_cmf | Xhiny | PHP | Code | 245 | 1,446 | <?php
$common_config = array(
'AUTOLOAD_NAMESPACE' => array('Addons' => ADDON_PATH), //扩展模块列表
'SHOW_PAGE_TRACE' => false,
'USER_AUTH_GATEWAY' => '/Admin/Public/login',
'LOG_RECORD' => true,
'COOKIE_HTTPONLY' => true,
'JS_ERROR_LOG' => true,
'VAR_PATHINFO' => 'baobao_'... | 30,333 |
https://github.com/somsakra/line-api-cli-nodejs/blob/master/lib/apis/things-get-device-request.js | Github Open Source | Open Source | MIT | 2,019 | line-api-cli-nodejs | somsakra | JavaScript | Code | 32 | 102 | import ThingsRequest from './things-request';
export default class ThingsGetDeviceRequest extends ThingsRequest {
constructor(options) {
super(options);
}
/**
*
* @param {string} deviceId Device ID
*/
send(deviceId) {
return this.axios.get(
`${this.endpoint}/devices/${deviceId}`
);
... | 509 |
https://github.com/dzangolab/vue-accordion/blob/master/src/components/Accordion/ChevronDown.vue | Github Open Source | Open Source | MIT | 2,022 | vue-accordion | dzangolab | Vue | Code | 39 | 195 | <script>
export default {
name: 'ChevronDown',
}
</script>
<template>
<svg
width="1em"
height="1em"
viewBox="0 0 16 16"
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M1.646 4.646a.5.5 0 01.708 0L8 10.293l5.646-5.647a.5.5 0 01.708.708l-6 ... | 47,194 |
https://github.com/samkitano/kitano_js/blob/master/layouts/error.vue | Github Open Source | Open Source | MIT | 2,017 | kitano_js | samkitano | Vue | Code | 117 | 387 | <template lang="html">
<div class="Error-page">
<div class="Error-page__Container">
<h1 class="Error-page__Message" v-if="isConn">
ERROR: API appears to be down
</h1>
<h1 class="Error-page__Message" v-else>
{{ e.statusCode }} - {{ e.message }}
</h1>
<div class="Err... | 13,976 |
https://github.com/npocmaka/Windows-Server-2003/blob/master/net/tapi/rtc/phoenix/src/media/network.cpp | Github Open Source | Open Source | Unlicense | 2,021 | Windows-Server-2003 | npocmaka | C++ | Code | 1,241 | 5,426 | /*++
Copyright (C) Microsoft Corporation, 2001
Module Name:
CNetwork.cpp
Abstract:
This module wraps methods to access NAT traversal.
Author(s):
Qianbo Huai (qhuai) 01-Mar-2000
--*/
#include "stdafx.h"
CNetwork::CNetwork()
:m_dwNumLeaseItems(0)
,m_pIDirectPlayNATHelp(NULL)
{
for (int i... | 25,223 |
https://github.com/Thomas-Jensen/dragonlancers/blob/master/resources/lang/da/emails/stages/finalizing.php | Github Open Source | Open Source | MIT | null | dragonlancers | Thomas-Jensen | PHP | Code | 133 | 291 | <?php
return array(
/*
|--------------------------------------------------------------------------
|Finalizing stage Email Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used for the Dragon Lancers finalizing stag... | 25,436 |
https://github.com/ankushlt/testsigma/blob/master/server/src/main/java/com/testsigma/dto/DefaultDataGeneratorsEntityDTO.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | testsigma | ankushlt | Java | Code | 35 | 100 | package com.testsigma.dto;
import lombok.Data;
import java.util.Map;
@Data
public class DefaultDataGeneratorsEntityDTO {
private Long id;
private String classPackage;
private String className;
private String functionName;
private Integer lib;
private Map<String, Object> arguments;
private Map<String, S... | 28,947 |
https://github.com/Keldryn/Inventory-Pro/blob/master/Assets/Devdog/InventoryPro/Demos/Assets/Items/Items/Item_mace_#1_UFPSItemDatabase_PFB.prefab | Github Open Source | Open Source | MIT | 2,020 | Inventory-Pro | Keldryn | Unity3D Asset | Code | 1,084 | 4,537 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &184418
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 4
m_Component:
- 4: {fileID: 426680}
- 33: {fileID: 3302548}
- 135: {fileID: 13568634}
- 23: {fileID: 2392936}
- 82: {... | 27,292 |
https://github.com/Azurekuz/ThePress/blob/master/struct_storyProgress.js | Github Open Source | Open Source | MIT | null | ThePress | Azurekuz | JavaScript | Code | 380 | 1,025 | class struct_storyProgress{
constructor(context, x, y, curProgress, maxProgress, spriteID, fillID, width, height){
this.game = context; //Phaser reference
this.xLocation = x; //X location of the progress bar
this.yLocation = y; //Y location of the progress bar
this.curProgress = curP... | 3,604 |
https://github.com/lackita/fluent-plugin-utf8-validator/blob/master/fluent-plugin-utf8-validator.gemspec | Github Open Source | Open Source | Apache-2.0 | 2,015 | fluent-plugin-utf8-validator | lackita | Ruby | Code | 67 | 233 | # encoding: utf-8
Gem::Specification.new do |gem|
gem.name = "fluent-plugin-utf8-validator"
gem.version = "0.1.0"
gem.has_rdoc = false
gem.email = "cessien@athenahealth.com"
gem.homepage = "https://github.com/cessien/fluent-plugin-utf8-validator"
gem.description = "A Fluentd output pl... | 9,643 |
https://github.com/Andy1314Chen/DIFM-Paddle/blob/master/run.sh | Github Open Source | Open Source | Apache-2.0 | 2,021 | DIFM-Paddle | Andy1314Chen | Shell | Code | 45 | 140 | echo "Start Training..."
# train model with sample data or full data
python -u tools/trainer.py -m models/rank/difm/"$1".yaml
rm -rf tools/utils/__pycache__ models/rank/difm/__pycache__
echo "Start Testing..."
## infer model with sample data or full data
python -u tools/infer.py -m models/rank/difm/"$1".yaml
rm -rf ... | 33,674 |
https://github.com/teresy/fabric/blob/master/integration/runner/cryptogen_test.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | fabric | teresy | Go | Code | 109 | 544 | /*
Copyright IBM Corp All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package runner_test
import (
"io/ioutil"
"os"
"path/filepath"
"github.com/hyperledger/fabric/integration/runner"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/tedsuo/ifrit"
)
var _ = Describe("CryptoGen", ... | 16,433 |
https://github.com/wqzhou0208/MacacaLibrary/blob/master/locators/elementwaiter.py | Github Open Source | Open Source | MIT | 2,017 | MacacaLibrary | wqzhou0208 | Python | Code | 496 | 1,691 | # -*- coding: utf-8 -*-
from MacacaLibrary import utils
from robot.api import logger
from macaca import WebElement
class ElementWaiter(object):
def __init__(self):
self._strategies = {
'id': self._wait_by_id,
'name': self._wait_by_name,
'xpath': self._wait_by_xpath,
... | 9,898 |
https://github.com/Aviral14/MyDrive/blob/master/django_project/Dashboard/api/views.py | Github Open Source | Open Source | Unlicense | 2,019 | MyDrive | Aviral14 | Python | Code | 168 | 1,194 | from rest_framework.generics import ListAPIView,UpdateAPIView,CreateAPIView,DestroyAPIView
from Dashboard.models import Filedata
from .serializers import FiledataListSerializer,FiledataUpdateSerializer,FiledataCreateSerializer,FiledataDeleteSerializer
from rest_framework import exceptions
from rest_framework.permission... | 48,262 |
https://github.com/TaitoUnited/taito-templates/blob/master/infrastructure/gcp/taito-config.sh | Github Open Source | Open Source | Apache-2.0 | null | taito-templates | TaitoUnited | Shell | Code | 411 | 2,448 | #!/usr/bin/env bash
# shellcheck disable=SC2034
set -a
# Taito CLI
taito_version=1
taito_type=zone
# TODO: custom extension -> taito_extensions="./extension"
taito_plugins="
gcp-zone gcp-secrets
terraform-zone
kubectl-zone helm-zone
generate-secrets links-global custom
postgres-db mysql-db
"
# Labeling
tait... | 23,118 |
https://github.com/akinhwan/covid19-coronavirus-react-visualization/blob/master/src/components/PerCapitaSwitch.tsx | Github Open Source | Open Source | MIT | 2,020 | covid19-coronavirus-react-visualization | akinhwan | TSX | Code | 114 | 352 | import React from 'react';
import { observable, autorun } from 'mobx';
import useBooleanSwitch from './hooks/useBooleanSwitch';
import { observer } from 'mobx-react-lite';
import CheckBoxOutlineBlankOutlinedIcon from '@material-ui/icons/CheckBoxOutlineBlankOutlined';
import CheckBoxOutlinedIcon from '@material-ui/icons... | 16,197 |
https://github.com/700software/concord/blob/master/runtime/v2/runner/src/main/java/com/walmartlabs/concord/runtime/v2/runner/compiler/DefaultCompiler.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | concord | 700software | Java | Code | 226 | 601 | package com.walmartlabs.concord.runtime.v2.runner.compiler;
/*-
* *****
* Concord
* -----
* Copyright (C) 2017 - 2019 Walmart 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 ... | 2,050 |
https://github.com/rodriguesrenann/laravel-api-ead/blob/master/app/Http/Controllers/Api/SupportReplyController.php | Github Open Source | Open Source | MIT | null | laravel-api-ead | rodriguesrenann | PHP | Code | 45 | 197 | <?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Http\Requests\SupportReplyRequest;
use App\Http\Resources\SupportReplyCollection;
use App\Http\Resources\SupportReplyResource;
use App\Repositories\SupportReplyRepository;
use Illuminate\Http\Request;
class SupportReplyController ... | 9,088 |
https://github.com/jbshashank/tickets/blob/master/app/src/main/java/com/ayushya/spring/controller/logsController.java | Github Open Source | Open Source | MIT | null | tickets | jbshashank | Java | Code | 70 | 330 | package com.ayushya.spring.controller;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
impor... | 27,448 |
https://github.com/warriordog/BlazeLoader/blob/master/src/com/blazeloader/api/entity/ApiEntity.java | Github Open Source | Open Source | BSD-2-Clause | 2,021 | BlazeLoader | warriordog | Java | Code | 800 | 1,961 | package com.blazeloader.api.entity;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityList;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.BiomeG... | 30,061 |
https://github.com/ivanDannels/hasor/blob/master/src/extends-parent/toos-parent/org.more.toos.const/src/org/dev/toos/constcode/data/xml/XmlConstDao.java | Github Open Source | Open Source | Apache-2.0 | 2,013 | hasor | ivanDannels | Java | Code | 462 | 1,846 | package org.dev.toos.constcode.data.xml;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBException;
import org.dev.toos.constcode.data.ConstDao;
import org.dev.toos.constcode.data.xml.define.ConfigCodes;
import org.dev.toos.constcode.d... | 38,862 |
https://github.com/Roxas240/DNRLotto/blob/master/src/com/xemplar/utils/dnrlotto/server/domain/PaymentOverview.java | Github Open Source | Open Source | MIT | 2,018 | DNRLotto | Roxas240 | Java | Code | 190 | 726 | package com.xemplar.utils.dnrlotto.server.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xemplar.utils.dnrlotto.commo... | 40,403 |
https://github.com/Plan9-Archive/iru-depot/blob/master/stkvm.c | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,017 | iru-depot | Plan9-Archive | C | Code | 147 | 545 | /* Stack vm */
#include <stdio.h>
#include <stdint.h>
enum {
MAXPSTK = 64,
MAXRSTK = 64,
};
typedef struct Mach Mach;
typedef void (*Inst)(Mach*);
struct Mach {
uint64_t *psp;
uint64_t *rsp;
uint64_t w;
uint64_t *ip;
uint64_t pstk[MAXPSTK];
uint64_t rstk[MAXRSTK];
};
void
printpstk(Mach *mp)
{
uint64_t ... | 50,562 |
https://github.com/createuniverses/praxis/blob/master/GLEditor.cpp | Github Open Source | Open Source | MIT | 2,022 | praxis | createuniverses | C++ | Code | 3,760 | 14,636 | #include <GL/openglut.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <sys/stat.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include "UT_String.h"
#include "luaInterface.h"
#include "GLEditor.h"
#include "PolyGlyph.h"
#include "assert.h"
#include "PraxisText... | 12,864 |
https://github.com/radtek/old-code/blob/master/type-reflector/formatters/VBNodeFormatter.cs | Github Open Source | Open Source | MIT | 2,010 | old-code | radtek | C# | Code | 293 | 834 | //
// VBNodeFormatter.cs: Formats nodes with VB.NET syntax
//
// Author: Jonathan Pryor (jonpryor@vt.edu)
//
// (C) 2002 Jonathan Pryor
//
using System;
using System.Collections;
using System.IO;
using System.Diagnostics;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
namespace Mono... | 25,690 |
https://github.com/SlavaPihidko/Lunchpoint/blob/master/Lunchpoint/src/test/java/restaurants/utils/MainPgUtils.java | Github Open Source | Open Source | Apache-2.0 | null | Lunchpoint | SlavaPihidko | Java | Code | 103 | 760 | package restaurants.utils;
import restaurants.model.RestDataOfMainPage;
/**
* Created by Slava on 14.03.2017.
*/
public class MainPgUtils {
public static final RestDataOfMainPage restEditDataOfMainPg = new RestDataOfMainPage()
.withLng(30.39818839999998)
.withId(2219)
.withNameOfMain... | 6,078 |
https://github.com/SethosII/Lmod/blob/master/tools/Optiks_Option.lua | Github Open Source | Open Source | MIT | null | Lmod | SethosII | Lua | Code | 616 | 1,292 | ------------------------------------------------------------------------
-- This class contains the Option objects. There is one of these objects
-- for each option specified by Optiks:add_option.
-- @classmod Optiks_Option
require("strict")
------------------------------------------------------------------------
--... | 35,479 |
https://github.com/Djkusik/pentest_machine_builder/blob/master/common/helpers.py | Github Open Source | Open Source | MIT | null | pentest_machine_builder | Djkusik | Python | Code | 38 | 108 | from typing import Dict, List
argument_registry: Dict = {}
def register(flags: List[str], help: str, category: str):
def decorator_argument(func):
argument: Dict = {
'method': func,
'flags': flags,
'help': help,
'category': category
}
argume... | 13,053 |
https://github.com/ifn/durak/blob/master/durak.go | Github Open Source | Open Source | MIT | null | durak | ifn | Go | Code | 1,360 | 4,377 | package main
import (
"encoding/json"
"log"
"math/rand"
"net/http"
"os"
"regexp"
"runtime"
"time"
"github.com/gorilla/websocket"
sm "github.com/ifn/go-statemachine"
)
type DeskMsg struct {
Desk []string `json:"desk"`
}
type PlayerMsg struct {
Cmd sm.EventType `json:"command"`
Card string `json:"... | 43,310 |
https://github.com/dominicbeesley/cc65/blob/master/libsrc/bbc/crt0.s | Github Open Source | Open Source | Zlib | 2,022 | cc65 | dominicbeesley | GAS | Code | 303 | 964 | ;
; Startup code for cc65 (bbc normal library - not ROM)
;
; This must be the *first* file on the linker command line
;
.export _exit
.export __STARTUP__ : absolute = 1 ; Mark as startup
.import initlib, donelib
.import zerobss
.import callmain
.... | 24,100 |
https://github.com/Rahman123/polyfill-service/blob/master/polyfill-service-web/app/actions/Polyfills.js | Github Open Source | Open Source | MIT | 2,017 | polyfill-service | Rahman123 | JavaScript | Code | 139 | 477 | import {
getPolyfills,
getPolyfill,
getSupportStatus
} from './api';
export const LOAD_POLYFILLS = 'LOAD_POLYFILLS';
export const loadPolyfills = () => {
return (dispatch) => {
getPolyfills(
(data) => {
dispatch({
type: LOAD_POLYFILLS,
... | 16,400 |
https://github.com/mobify/spline/blob/master/dist/utilities/dimensions/_dimensions.scss | Github Open Source | Open Source | MIT | 2,019 | spline | mobify | SCSS | Code | 200 | 556 | // Dimension utils
// ===
//
// Apply fluid widths to components or sub-components.
// Base Width
// ---
//
// This is just a helper mixin to aid in creating the below mixins
//
// 1. Force elements to keep their explicit width when inside a flexbox to
// prevent them from growing or shrinking.
@mixin base-width($... | 11,111 |
https://github.com/Hailstones/AlgoTrading/blob/master/Algo/Algo.Common/Utilities.cs | Github Open Source | Open Source | MIT | null | AlgoTrading | Hailstones | C# | Code | 31 | 76 | using System;
namespace Algo.Common
{
public static class Utilities
{
public static bool ApproximatelyEquals(double a, double b, double epsilon = 1e-7)
{
return Math.Abs(a - b) < epsilon;
}
}
}
| 49,346 |
https://github.com/Rolthar/WindowsMRVRLA/blob/master/Assets/MideivalUnity/Medieval Town/Prefabs/ModularHouseElements/SM_WallElement_11.prefab | Github Open Source | Open Source | MIT | 2,018 | WindowsMRVRLA | Rolthar | Unity3D Asset | Code | 1,923 | 8,885 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 1769574174815848}
m_IsPrefabParent: ... | 41,314 |
https://github.com/RIPBackdoored/Deluxe-2.6-Discord-Bot-Deobf-Source-Code/blob/master/org/apache/commons/codec/Encoder.java | Github Open Source | Open Source | MIT | 2,020 | Deluxe-2.6-Discord-Bot-Deobf-Source-Code | RIPBackdoored | Java | Code | 25 | 70 | /*
* Decompiled with CFR <Could not determine version>.
*/
package org.apache.commons.codec;
import org.apache.commons.codec.EncoderException;
public interface Encoder {
public Object encode(Object var1) throws EncoderException;
}
| 18,249 |
https://github.com/MohammadAfandy/sirt/blob/master/controllers/KeluargaController.php | Github Open Source | Open Source | BSD-3-Clause | 2,021 | sirt | MohammadAfandy | PHP | Code | 598 | 2,020 | <?php
namespace app\controllers;
use Yii;
use app\models\Keluarga;
use app\models\KeluargaSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\web\UploadedFile;
use app\models\Warga;
use yii\helpers\ArrayHelper;
/**
* KeluargaController implements the CRUD actions f... | 14,842 |
https://github.com/JustGOGO/pentaho-kettle/blob/master/engine/test-src/org/pentaho/di/trans/steps/sort/SortRowsMetaInjectionTest.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,015 | pentaho-kettle | JustGOGO | Java | Code | 476 | 1,352 | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2015 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | 13,730 |
https://github.com/mlomnicki/automatic_foreign_key/blob/master/README.rdoc | Github Open Source | Open Source | MIT | 2,021 | automatic_foreign_key | mlomnicki | RDoc | Code | 875 | 1,882 | = Automatic Foreign Key
Automatic Foreign Key is an ActiveRecord extension that automatically generates foreign-key
constraints when creating tables. It uses SQL-92 syntax and as such should be
compatible with most databases that support foreign-key constraints.
As a bonus, the extension also allows you to create ind... | 2,594 |
https://github.com/ian-skinny-welsh/snooker-o/blob/master/app/models/AgeCat.scala | Github Open Source | Open Source | CC0-1.0 | null | snooker-o | ian-skinny-welsh | Scala | Code | 217 | 596 | package models
import enumeratum._
sealed abstract class AgeCat(handicap: Double) extends EnumEntry {
val getHandicapValue: Double = handicap
}
object AgeCat extends Enum[AgeCat] {
case object M10 extends AgeCat(0.7)
case object M12 extends AgeCat(0.74)
case object M14 extends AgeCat(0.8)
case object M16 ... | 586 |
https://github.com/uucyan/lgtm-cabinet/blob/master/assets/sass/variables/_color.sass | Github Open Source | Open Source | MIT | 2,022 | lgtm-cabinet | uucyan | Sass | Code | 61 | 262 | $color-white: #ffffff
$color-dark-brown: #573216
$color-text-gray: #606266
.wood-grain-dark-brown
background: repeating-radial-gradient(circle at -1000% 0%, rgba(116, 77, 48, 0.7), $color-dark-brown 7.5%, rgba(116, 77, 48, 0.9) 10%), repeating-radial-gradient(circle at -1000% 0%, $color-dark-brown, $color-dark-brown... | 31,350 |
https://github.com/MelvinG24/dust3d/blob/master/thirdparty/cgal/CGAL-5.1/include/CGAL/Curved_kernel_via_analysis_2/Sweep_curves_adapter_2.h | Github Open Source | Open Source | GPL-3.0-only, LGPL-2.1-or-later, LicenseRef-scancode-proprietary-license, GPL-1.0-or-later, LGPL-2.0-or-later, MIT, LicenseRef-scancode-free-unknown, LicenseRef-scancode-unknown-license-reference, MIT-0, LGPL-3.0-only, LGPL-3.0-or-later | 2,021 | dust3d | MelvinG24 | C++ | Code | 2,601 | 9,429 | // Copyright (c) 2007,2008,2009,2010,2011 Max-Planck-Institute Saarbruecken (Germany),
// and Tel-Aviv University (Israel). All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL: https://github.com/CGAL/cgal/blob/v5.1/Arrangement_on_surface_2/include/CGAL/Curved_kernel_via_analysis_2/Sweep_cur... | 46,611 |
https://github.com/yanzheyusam/COSI12b-Team07-Final-Project/blob/master/src/StoreAssistantManager/EmployeeDatabase.java | Github Open Source | Open Source | MIT | null | COSI12b-Team07-Final-Project | yanzheyusam | Java | Code | 271 | 625 |
/* The EmployeeDatabase stores Employee values */
package StoreAssistantManager;
public class EmployeeDatabase implements Database {
public Employee[] employees;
/**
* Constructor
*/
public EmployeeDatabase() {
employees = new Employee [100];
}
/**
* Method to copy the array
*/
public Employee[]... | 31,961 |
https://github.com/JLLeitschuh/vid/blob/master/vid-webpack-master/cypress/integration/iFrames/vnf.popup.e2e.ts | Github Open Source | Open Source | Apache-2.0 | null | vid | JLLeitschuh | TypeScript | Code | 1,805 | 13,426 | ///<reference path="../../../node_modules/cypress/types/index.d.ts"/>
describe('Vnf popup', function () {
describe('basic UI tests', () => {
beforeEach(() => {
cy.clearSessionStorage();
cy.setReduxState();
cy.preventErrorsOnLoading();
cy.initAAIMock();
cy.initVidMock();
... | 48,870 |
https://github.com/iYasha/studycobra/blob/master/src/tests/api/v1/test_swagger.py | Github Open Source | Open Source | MIT | null | studycobra | iYasha | Python | Code | 27 | 100 | from core.config import settings
from starlette.testclient import TestClient
def test_swagger_ok(client: TestClient) -> None:
docs_response = client.get(settings.docs_url)
assert docs_response.status_code == 200
openapi_response = client.get(settings.openapi_url)
assert openapi_response.status_code =... | 39,937 |
https://github.com/wix-incubator/rich-content-editor/blob/master/packages/plugin-file-upload/web/src/icons/errorIcon.tsx | Github Open Source | Open Source | MIT | 2,022 | rich-content-editor | wix-incubator | TypeScript | Code | 70 | 311 | /* eslint-disable max-len */
import React from 'react';
const ErrorIcon = props => (
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" {...props}>
<g fill="none" fillRule="evenodd" stroke="#F64D43">
<path
d="M9.333 18.148C4.46 18.148.52 14.208.52 9.333.519 4.46 4.45... | 7,546 |
https://github.com/NaluKit/nalu/blob/master/nalu-processor/src/main/java/com/github/nalukit/nalu/processor/model/MetaModel.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | nalu | NaluKit | Java | Code | 946 | 3,104 | /*
* Copyright (c) 2018 - Frank Hossfeld
*
* 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... | 28,095 |
https://github.com/andresbravom/TecnicasProgramacionAvanzada/blob/master/Design Patters/Comportamiento/Iterator/src/patrones/Iterator/Main.java | Github Open Source | Open Source | MIT | null | TecnicasProgramacionAvanzada | andresbravom | Java | Code | 41 | 207 | package patrones.Iterator;
import java.util.ListIterator;
import java.util.Vector;
public class Main {
public static void main(String[] args) {
Vector<String> vocales = new Vector<String>();
vocales.add("a");
vocales.add("e");
vocales.add("i");
vocales.add("o");
vocales.add("u");
ListIterator<St... | 16,928 |
https://github.com/ktos/ReMarkable.NET/blob/master/ReMarkable.NET/Util/StreamWatcher.cs | Github Open Source | Open Source | MIT | 2,022 | ReMarkable.NET | ktos | C# | Code | 288 | 686 | using System;
using System.IO;
using ReMarkable.NET.Unix.Driver.Generic;
namespace ReMarkable.NET.Util
{
/// <summary>
/// Provides a set of methods that allow a stream to be watched for new data to be written, and to have events
/// dispatched when new data is available and parsed from the stream... | 46,038 |
https://github.com/xvik/gradle-use-python-plugin/blob/master/src/test/groovy/ru/vyarus/gradle/plugin/python/cmd/PythonCliTest.groovy | Github Open Source | Open Source | MIT | 2,023 | gradle-use-python-plugin | xvik | Groovy | Code | 341 | 1,226 | package ru.vyarus.gradle.plugin.python.cmd
import org.gradle.api.Project
import org.gradle.api.logging.LogLevel
import ru.vyarus.gradle.plugin.python.AbstractTest
import ru.vyarus.gradle.plugin.python.util.PythonExecutionFailed
/**
* @author Vyacheslav Rusakov
* @since 18.11.2017
*/
class PythonCliTest extends Abs... | 14,771 |
https://github.com/damiens/Evil-DICOM/blob/master/EvilDICOM_CodeGen/CodeGenerator/CodeGenerator/Helpers/ExceptionHelper.cs | Github Open Source | Open Source | MIT | 2,022 | Evil-DICOM | damiens | C# | Code | 23 | 50 | namespace EvilDICOM.Core.Helpers
{
public class ExceptionHelper
{
public static string VRReadException = "Explicit VR syntax used but VR string is missing";
}
} | 40,018 |
https://github.com/mgottschlag/rp2040-pac/blob/master/src/i2c0/ic_fs_spklen.rs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | rp2040-pac | mgottschlag | Rust | Code | 841 | 1,905 | #[doc = "Register `IC_FS_SPKLEN` reader"]
pub struct R(crate::R<IC_FS_SPKLEN_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<IC_FS_SPKLEN_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<IC_FS_SPKLEN_SPEC>> for R {
#[inline(always)]
... | 20,459 |
https://github.com/frainzy1477/Pharmacy_System/blob/master/app/Http/Controllers/MainController.php | Github Open Source | Open Source | Unlicense | 2,020 | Pharmacy_System | frainzy1477 | PHP | Code | 40 | 143 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class MainController extends Controller
{
public function index() {
// if(auth()->user()->hasRole('super-admin')) {
// return redirect()->route('admin.index');
// } else if(auth()->user()->hasRole('pharmacy')) {
... | 27,477 |
https://github.com/Joseph960616/CellMigrationGym/blob/master/HDRL/Embryo/utils/utils.py | Github Open Source | Open Source | MIT | null | CellMigrationGym | Joseph960616 | Python | Code | 221 | 720 | import numpy as np
# from scipy.spatial.distance import pdist, squareform
def rgb2gray(rgb):
"""
Converting RGB image into Gray image
"""
return np.dot(rgb[...,:3], [0.2989, 0.5870, 0.1140])
def gray2twobit(gray):
"""
Converting gray image into 2bit data map
"""
twobit = np.zeros((gray... | 40,387 |
https://github.com/Siphalor/gif/blob/master/src/main/java/de/siphalor/giftit/util/IItem.java | Github Open Source | Open Source | MIT | null | gif | Siphalor | Java | Code | 13 | 48 | package de.siphalor.giftit.util;
public interface IItem {
void setMaxDamage(int maxDamage);
void setMaxCount(int maxCount);
}
| 18,236 |
https://github.com/woese/guara-crm/blob/master/spec/models/business_segment_spec.rb | Github Open Source | Open Source | MIT | 2,012 | guara-crm | woese | Ruby | Code | 14 | 33 | require 'spec_helper'
describe BusinessSegment do
pending "add some examples to (or delete) #{__FILE__}"
end
| 3,529 |
https://github.com/davisusanibar/arrow/blob/master/cpp/src/arrow/compute/row/encode_internal.cc | Github Open Source | Open Source | CC-BY-3.0, Apache-2.0, CC0-1.0, MIT | 2,021 | arrow | davisusanibar | C++ | Code | 3,201 | 12,266 | // 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... | 30,039 |
https://github.com/Costwen/blog_frontend/blob/master/src/components/Header.vue | Github Open Source | Open Source | MIT | null | blog_frontend | Costwen | Vue | Code | 112 | 531 | <template>
<div class="header">
<v-toolbar
color="#ffffff"
>
<v-toolbar-title>State selection</v-toolbar-title>
<v-spacer></v-spacer>
<v-autocomplete
v-model="select"
:loading="loading"
:items="items"
:se... | 47,226 |
https://github.com/kthoms/gerrit-rest-java-client/blob/master/src/main/java/com/urswolfer/gerrit/client/rest/GerritApiImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | gerrit-rest-java-client | kthoms | Java | Code | 379 | 1,645 | /*
* Copyright 2013-2021 Urs Wolfer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 9,815 |
https://github.com/Giovancruz/IoasysBooks/blob/master/src/App.js | Github Open Source | Open Source | MIT | null | IoasysBooks | Giovancruz | JavaScript | Code | 35 | 84 | import React, { useState, useEffect } from "react";
import Router from "routes/Router";
import { AuthProvider } from "contexts/auth";
const App = (props) => {
return (
<AuthProvider>
<Router />
</AuthProvider>
);
};
export default App;
| 20,757 |
https://github.com/cnork/referencesource/blob/master/System/net/System/Net/NetworkInformation/SystemUnicastIPAddressInformation.cs | Github Open Source | Open Source | MIT | 2,022 | referencesource | cnork | C# | Code | 544 | 1,819 |
/// <summary><para>
/// Provides support for ip configuation information and statistics.
///</para></summary>
///
namespace System.Net.NetworkInformation {
using System.Net;
using System.Net.Sockets;
using System;
using System.Runtime.InteropServices;
using System.Diagnostics.Co... | 38,551 |
https://github.com/Vibha-b/mvvm-framework/blob/master/WPF/System.Windows.Mvvm.Services.Dialog/DialogResult.cs | Github Open Source | Open Source | MIT | 2,020 | mvvm-framework | Vibha-b | C# | Code | 82 | 192 |
namespace System.Windows.Mvvm.Services.Dialog
{
/// <summary>
/// The result of a dialog.
/// </summary>
public enum DialogResult
{
/// <summary>
/// The dialog had no result.
/// </summary>
None = 0,
/// <summary>
/// The user clicked okay.
... | 33,083 |
https://github.com/harshnagoratela/tiny_boxes_local/blob/master/src/components/ColorsGrid.vue | Github Open Source | Open Source | MIT | 2,022 | tiny_boxes_local | harshnagoratela | Vue | Code | 146 | 516 | <template lang="pug">
.colors-grid
svg(:width="(2.2*(parseInt(shades))) + 'em'" :height="(2.2*(schemeH(scheme).length)) + 'em'")
g(v-for="h,i of schemeH(scheme)")
rect(v-for="s in parseInt(shades)" :x="2.2*(s-1)+'em'" :y="2.2*i+'em'" width="2.2em" height="2.2em"
:style="'fill: hs... | 1,709 |
https://github.com/CezaryDobrenko/PracaDyplomowa/blob/master/Online_class_register/backend/application/models/class_register_api/user/personal_note_model.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,021 | PracaDyplomowa | CezaryDobrenko | PHP | Code | 78 | 422 | <?php
class personal_note_model extends CI_Model{
public function __construct(){
parent::__construct();
//load database
$this->load->database();
//$this->db
}
public function get_all_note($student_id){
$this->db->select('tn.note_id, tn.note_comment, tn.note_created... | 30,107 |
https://github.com/06needhamt/intellij-community/blob/master/java/java-impl/src/com/intellij/application/options/JavaCompletionConfigurable.kt | Github Open Source | Open Source | Apache-2.0 | null | intellij-community | 06needhamt | Kotlin | Code | 88 | 327 | // Copyright 2000-2021 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.
package com.intellij.application.options
import com.intellij.application.options.editor.AutoImportOptionsConfigurable
import com.intellij.ide.DataManager
import com.intellij.java... | 43,088 |
https://github.com/linode/manager/blob/master/packages/manager/src/features/Kubernetes/KubernetesLanding/KubernetesLanding.tsx | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | manager | linode | TSX | Code | 526 | 2,032 | import { KubeNodePoolResponse } from '@linode/api-v4';
import * as React from 'react';
import { useHistory } from 'react-router-dom';
import { CircleProgress } from 'src/components/CircleProgress';
import { DocumentTitleSegment } from 'src/components/DocumentTitle';
import { ErrorState } from 'src/components/ErrorStat... | 42,142 |
https://github.com/https-github-com-goodman-ops/kresus/blob/master/server/models/migrations/1.js | Github Open Source | Open Source | MIT | 2,019 | kresus | https-github-com-goodman-ops | JavaScript | Code | 1,312 | 4,099 | import { Table } from 'typeorm';
import { UNKNOWN_ACCOUNT_TYPE, FETCH_STATUS_SUCCESS, UNKNOWN_OPERATION_TYPE } from '../../helpers';
import { datetimeType } from '../helpers';
function idColumn() {
return {
name: 'id',
type: 'integer',
isPrimary: true,
isGenerated: true,
gen... | 10,135 |
https://github.com/ministryofjustice/correspondence_tool_staff/blob/master/spec/services/stats/case_selector_spec.rb | Github Open Source | Open Source | MIT | 2,023 | correspondence_tool_staff | ministryofjustice | Ruby | Code | 543 | 1,975 | require "rails_helper"
# rubocop:disable RSpec/BeforeAfterAll
module Stats
describe CaseSelector do
before(:all) do
Timecop.freeze(Time.zone.local(2018, 2, 25, 12, 22, 33)) do
@period_start = Time.zone.local(2017, 6, 1, 10, 45, 33)
@period_end = Time.zone.local(2017, 6, 15, 23, 59, 59)
... | 40,191 |
https://github.com/gndgnd/pijockey-sound/blob/master/src/base.h | Github Open Source | Open Source | MIT | 2,015 | pijockey-sound | gndgnd | C | Code | 38 | 123 | /* -*- Mode: c; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
#ifndef INCLUDED_BASE_H
#define INCLUDED_BASE_H
/* semantics */
#define OPTIONAL
#define STATIC_ASSERT(cond) { extern int __static_assert[(cond) ? 1 : -1]; }
#define ARRAY_SIZEOF(arr) (sizeof(arr) / sizeof(arr[0]))
#endif
| 4,193 |
https://github.com/u-root/u-root/blob/master/pkg/libinit/net.go | Github Open Source | Open Source | BSD-3-Clause | 2,023 | u-root | u-root | Go | Code | 48 | 84 | // Copyright 2014-2019 the u-root Authors. All rights reserved
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package libinit
var osNetInit = func() {}
// NetInit is u-root network initialization.
func NetInit() {
osNetInit()
}
| 10,212 |
https://github.com/GrowthEase/-/blob/master/meeting-qt/meeting-ipc/nem_hosting_module/global/global.cpp | Github Open Source | Open Source | MIT | 2,022 | - | GrowthEase | C++ | Code | 1,275 | 6,155 | /**
* @copyright Copyright (c) 2021 NetEase, Inc. All rights reserved.
* Use of this source code is governed by a MIT license that can be found in the LICENSE file.
*/
#include "nem_hosting_module/global/global.h"
#include "nem_hosting_module/service/account_service.h"
#include "nem_hosting_module/servic... | 24,566 |
https://github.com/coma/spotify/blob/master/src/reducers/token.js | Github Open Source | Open Source | Unlicense | 2,016 | spotify | coma | JavaScript | Code | 80 | 263 | import { TOKEN_VALIDATING, TOKEN_VALIDATED, TOKEN_REFRESHED, TOKEN_INVALIDATED, TOKEN_DELETED } from '../actions/token';
import { INIT, VALIDATING, VALIDATED, INVALIDATED } from '../status';
export const initialState = {
status: INIT
};
export default function token (state = initialState, action = {}) {
swit... | 27,315 |
https://github.com/KaleabTessera/personal-site/blob/master/server/routes/middleware.js | Github Open Source | Open Source | MIT | null | personal-site | KaleabTessera | JavaScript | Code | 89 | 224 | const requireUser = (req, res, next) => {
if (!req.user) {
res.redirect('/login');
} else {
next();
}
};
const requireUserAPI = (req, res, next) => {
if (!req.user) {
res.json({
success: false,
error: 'Insufficient access privileges. Please authenticate your session.',
});
} else ... | 29,992 |
https://github.com/moulik-deepsource/react-flow/blob/master/src/container/FlowRenderer/index.tsx | Github Open Source | Open Source | MIT | null | react-flow | moulik-deepsource | TypeScript | Code | 212 | 869 | import React, { useCallback, useRef, memo, ReactNode, WheelEvent, MouseEvent } from 'react';
import { useStoreActions, useStoreState } from '../../store/hooks';
import useResizeHandler from '../../hooks/useResizeHandler';
import useGlobalKeyHandler from '../../hooks/useGlobalKeyHandler';
import useD3Zoom from '../../h... | 40,295 |
https://github.com/nathanawmk/fboss/blob/master/fboss/platform/weutil/WeutilDarwin.cpp | Github Open Source | Open Source | BSD-3-Clause | null | fboss | nathanawmk | C++ | Code | 170 | 592 | // (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
#include "fboss/platform/weutil/WeutilDarwin.h"
#include <folly/Conv.h>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <iterator>
#include "fboss/platform/helpers/utils.h"
#include "fboss/platform/weutil/prefdl/prefdl.h"
us... | 9,778 |
https://github.com/jojogreen/Orbital-Mechanix-Suite/blob/master/NetWinCharts/VBNetWinCharts/DemoModule.vb | Github Open Source | Open Source | Apache-2.0 | 2,021 | Orbital-Mechanix-Suite | jojogreen | Visual Basic | Code | 98 | 182 | ' <summary>
' Represents the function each demo chart module must provide
' </summary>
Interface DemoModule
' <summary>
' A human readable name for the module
' </summary>
Function getName() As String
' <summary>
' The number of demo charts generated by this module
' </summary>
Functio... | 18,949 |
https://github.com/micwin/ticino/blob/master/context/src/main/java/net/micwin/ticino/context/IContext.java | Github Open Source | Open Source | MIT | null | ticino | micwin | Java | Code | 221 | 372 |
package net.micwin.ticino.context ;
import java.util.* ;
/**
* A context for some elements.
* Implementors must overwrite inherited methods with their own, more specific
* type as return type. See {@link GenericContext} as example.
*/
public interface IContext<ElementType> {
/**
* Returns the theoretic... | 34,332 |
https://github.com/chethanbandi/pnr-server/blob/master/SQL/01_alter_pnr_stats.sql | Github Open Source | Open Source | Apache-2.0 | 2,014 | pnr-server | chethanbandi | SQL | Code | 19 | 55 | alter table PNR_STATS
add column status_code int,
add column status_message varchar(50),
add column user_agent varchar(250),
add column remote_addr varchar(20);
| 39,086 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.