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/baraja-core/shop-product/blob/master/src/ProductManagerAccessor.php | Github Open Source | Open Source | MIT | 2,022 | shop-product | baraja-core | PHP | Code | 12 | 46 | <?php
declare(strict_types=1);
namespace Baraja\Shop\Product;
interface ProductManagerAccessor
{
public function get(): ProductManager;
}
| 19,107 |
https://github.com/Bytesu/react-native-file-selector/blob/master/android/src/main/java/com/dimorinny/sample/SampleFragment.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | react-native-file-selector | Bytesu | Java | Code | 245 | 941 | package com.dimorinny.sample;
import android.Manifest;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.Fragment;
import ... | 11,906 |
https://github.com/franckblais/sdkpackage/blob/master/src/org.scn.community.basics/res/SegmentedButton/aps/SegmentedButtonPropertyPage.js | Github Open Source | Open Source | Apache-2.0 | 2,015 | sdkpackage | franckblais | JavaScript | Code | 1,508 | 9,161 |
/**
* Generated ZTL Class for Segmented Button
*
* DO NOT EDIT
*/
sap.designstudio.sdk.PropertyPage.subclass("org.scn.community.basics.SegmentedButtonPropertyPage", function() {
var that = this;
that.init = function () {
that._content = new sap.ui.commons.layout.VerticalLayout({
width : "100%"
});
th... | 43,396 |
https://github.com/arpg/torch/blob/master/tests/ActivationCostFunction.cpp | Github Open Source | Open Source | Apache-2.0 | 2,018 | torch | arpg | C++ | Code | 133 | 662 | #include <gtest/gtest.h>
#include <torch/Torch.h>
#include <lynx/lynx.h>
namespace torch
{
namespace testing
{
TEST(ActivationCostFunction, Gradient)
{
Scene scene;
std::shared_ptr<EnvironmentLight> light;
light = scene.CreateEnvironmentLight();
light->SetRowCount(3);
light->SetRadiance(0.1f, 0.1f, 0.1f);... | 31,171 |
https://github.com/misha-plus/power-start/blob/master/web/src/App.js | Github Open Source | Open Source | MIT | 2,018 | power-start | misha-plus | JavaScript | Code | 473 | 1,599 | import React, { Component } from 'react';
import './App.css';
import 'semantic-ui-css/semantic.min.css';
import {
Button, Card, Image, Dimmer, Loader, Icon, Header, Message, Divider, Container
} from 'semantic-ui-react'
import axios from 'axios';
import AddModal from './AddModal'
import MachineCard from './MachineCa... | 27,747 |
https://github.com/sotnikov-link/jquery.yp/blob/master/jquery.yp.js | Github Open Source | Open Source | MIT | null | jquery.yp | sotnikov-link | JavaScript | Code | 479 | 2,003 | (function () {
var conf = {
debug: true,
};
if (conf.debug) window.yp_api = [];
var api = {
ready: false,
event_type_for_ready: 'onApiReady.yt',
$waiting : [] // Массив $элементов ожидающие готовности API
};
// Функция будет вызвана после загрузки API YouTube, вызывает для всех
// ожида... | 44,034 |
https://github.com/mtoqeerpk/seismic-simulation-complex-media/blob/master/shared_modules/plot_utils.py | Github Open Source | Open Source | MIT | 2,022 | seismic-simulation-complex-media | mtoqeerpk | Python | Code | 131 | 505 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Nov 13 17:04:43 2018
@author: bmoseley
"""
# This module defines various plotting helper variables and functions.
from matplotlib.colors import LinearSegmentedColormap
import numpy as np
rkb = {'red': ((0.0, 1.0, 1.0),
(0.5, ... | 26,646 |
https://github.com/juliosueiras/Winter2015Class/blob/master/PROG20799/c_program/cint/cint/cling/lib/Interpreter/ChainedConsumer.h | Github Open Source | Open Source | MIT | 2,015 | Winter2015Class | juliosueiras | C++ | Code | 265 | 1,122 | //------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id: ChainedConsumer.h 43889 2012-04-22 10:51:58Z vvassilev $
// author: Axel Naumann <axel@cern.ch>
//-----------------------------------------------------------------------------... | 11,923 |
https://github.com/CK-LinoPro/language-ext/blob/master/LanguageExt.Core/Class Instances/Monoid/MPatch.cs | Github Open Source | Open Source | MIT | 2,022 | language-ext | CK-LinoPro | C# | Code | 419 | 1,309 | using LanguageExt.TypeClasses;
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Text;
using System.Threading.Tasks;
namespace LanguageExt.ClassInstances
{
/// <summary>
/// Monoid instance for Patch
/// </summary>
public struct MPatch<EqA, A> : Monoid<Pa... | 30,306 |
https://github.com/Filippo79/laravel-boolean/blob/master/app/Http/Controllers/Admin/PhotoController.php | Github Open Source | Open Source | MIT | null | laravel-boolean | Filippo79 | PHP | Code | 78 | 289 | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
class PhotoController extends Controller
{
public function store(Request $request) {
// dd($request->all());
$data = $request->all();
// pe... | 14,685 |
https://github.com/JaneliaSciComp/osgpyplusplus/blob/master/src/modules/osg/generated_code/ProxyNode.pypp.hpp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | osgpyplusplus | JaneliaSciComp | C++ | Code | 15 | 64 | // This file has been generated by Py++.
#ifndef ProxyNode_hpp__pyplusplus_wrapper
#define ProxyNode_hpp__pyplusplus_wrapper
void register_ProxyNode_class();
#endif//ProxyNode_hpp__pyplusplus_wrapper
| 48,391 |
https://github.com/amritmaj/description2erd/blob/master/main.py | Github Open Source | Open Source | MIT | 2,016 | description2erd | amritmaj | Python | Code | 157 | 763 | from mainwindow import Ui_MainWindow
from PyQt5 import QtWidgets, QtCore, QtGui
from PyQt5.QtCore import QObject, pyqtSignal
from PyQt5.QtGui import *
import nltk.data
import nltk
import mkdb
import gexp
sentences = []
def copyText():
ui.textEdit_Output.setPlainText(ui.textEdit_Input.toPlainText())
def sentence... | 45,762 |
https://github.com/Patriciaahp/usuarios2/blob/master/resources/views/users/shared/_navbar.blade.php | Github Open Source | Open Source | MIT | null | usuarios2 | Patriciaahp | PHP | Code | 330 | 1,461 | <nav class="navbar navbar-expand-sm navbar-light bg-dark container-fluid">
<div class="col col-2"></div>
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="teal" class="bi bi-bricks"
viewBox="0 0 16 16">
<path
d="M0 .5A.5.5 0 0 1 .5 0h15a.5.5 0 0 1 .5.5v3a.5.5 0 0 ... | 45,853 |
https://github.com/Hub9959/pixiu/blob/master/app/views/widgets/_header.html.slim | Github Open Source | Open Source | MIT | 2,015 | pixiu | Hub9959 | null | Spoken | 58 | 259 | meta charset="utf-8"
meta http-equiv="X-UA-Compatible" content="IE=edge"
meta name="viewport" content="width=device-width, initial-scale=1"
meta name="keywords" content="#{site_info 'keywords'}"
meta name="description" content="#{site_info 'description'}"
meta name="author" content="jitang.zheng@gmail.com"
link href='#... | 44,725 |
https://github.com/Rfam/rfam-website/blob/master/PfamScripts/pfamqc/pqc-taxonomy.pl | Github Open Source | Open Source | Apache-2.0 | 2,023 | rfam-website | Rfam | Perl | Code | 631 | 1,740 | #!/usr/bin/env perl
# pqc-taxonomy.pl
#
# Author: rdf
# Maintainer: $Author$
# Version: $Revision$
# Created: Apr 8, 2010
# Last Modified: $Date$
=head1 NAME
pqc-taxonomy.pl - gives the taxonomic distribution of the family
=cut
=head1 DESCRIPTION
This goes through the alignment, uploads the... | 30,229 |
https://github.com/RajeshMaster/larainvoice/blob/master/app/Model/Salesplus.php | Github Open Source | Open Source | MIT | null | larainvoice | RajeshMaster | PHP | Code | 558 | 2,327 | <?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
use DB;
use Session;
use Input;
use Auth;
use Carbon\Carbon;
class Salesplus extends Model {
public static function getfilcnt($dtmnfrm,$dtmnto,$rg) {
$sql = "SELECT count(quot_date) as qdate FROM dev_invoices_registration
WHERE SUBSTR(quot_dat... | 18,777 |
https://github.com/SAP/marmolata-frp-dive/blob/master/implementations/selfrx/shared/src/main/scala/com/sap/marmolata/react/impls/selfrx/debugger/updatelogger/RecordingLogUpdates.scala | Github Open Source | Open Source | Apache-2.0 | 2,018 | marmolata-frp-dive | SAP | Scala | Code | 217 | 648 | package com.sap.marmolata.react.impls.selfrx.debugger.updatelogger
import java.util.Date
import com.sap.marmolata.react.api.ReactiveLibrary
import com.sap.marmolata.react.impls.selfrx._
final class OurRecordingSliceBuilder(val parent: Option[OurRecordingSliceBuilder]) extends RecordingSliceBuilder {
var children: ... | 29,191 |
https://github.com/msaligane/opentitan_soc/blob/master/tb/opentitan_soc_top_tb.sv | Github Open Source | Open Source | Apache-2.0 | 2,021 | opentitan_soc | msaligane | null | Spoken | 110 | 519 | module opentitan_soc_top_tb #(
parameter logic [31:0] JTAG_ID = 32'h 0000_0001,
parameter logic DirectDmiTap = 1'b1
)();
logic clk_i;
logic rst_ni;
logic uart_tx;
logic uart_rx;
logic gpio_i;
logic gpio_o;
real CLOCK = 10;
opentitan_soc_top #(
.JTAG_ID (JTAG_ID),
.DirectDmiTap (DirectDmiTap)
)
ot_soc_top... | 44,288 |
https://github.com/Tomash667/carpg/blob/master/source/quests/Quest_Mine.h | Github Open Source | Open Source | MIT | 2,023 | carpg | Tomash667 | C++ | Code | 202 | 650 | #pragma once
//-----------------------------------------------------------------------------
#include "Quest.h"
//-----------------------------------------------------------------------------
// Investor wants to have cave cleared so mine can be build.
// Reward can be gold or monthly payment.
// After some time mine... | 53,580 |
https://github.com/prog-fun/exchange-apis/blob/master/data-bots/src/main/java/org/progfun/bots/gdax/GdaxHandler.java | Github Open Source | Open Source | MIT | 2,018 | exchange-apis | prog-fun | Java | Code | 257 | 733 | package org.progfun.bots.gdax;
import java.util.LinkedList;
import java.util.List;
import org.progfun.Channel;
import org.progfun.Exchange;
import org.progfun.Logger;
import org.progfun.Market;
import org.progfun.Subscription;
import org.progfun.websocket.WebSocketHandler;
import org.progfun.websocket.Parser;
/**
* ... | 49,150 |
https://github.com/Closery/ExampleBlog-laravel/blob/master/app/Http/Controllers/Auth/LoginController.php | Github Open Source | Open Source | MIT | 2,021 | ExampleBlog-laravel | Closery | PHP | Code | 45 | 170 | <?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class LoginController extends Controller
{
public function __construct()
{
$this->middleware(['guest']);
}
public function Index() {
return view('auth.login');
}
... | 38,861 |
https://github.com/DaedalusGame/EmbersRekindled/blob/master/src/api/java/thaumcraft/api/casters/IFocusElement.java | Github Open Source | Open Source | MIT | 2,021 | EmbersRekindled | DaedalusGame | Java | Code | 24 | 79 | package thaumcraft.api.casters;
public interface IFocusElement {
public String getKey();
public String getResearch();
public EnumUnitType getType();
enum EnumUnitType {
EFFECT, MEDIUM, MOD, PACKAGE;
}
}
| 34,501 |
https://github.com/cea-trust-platform/trust-code/blob/master/src/VEF/Champs/Champ_Generique_Tparoi_VEF.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | trust-code | cea-trust-platform | C++ | Code | 945 | 3,514 | /****************************************************************************
* Copyright (c) 2015 - 2016, CEA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code mus... | 29,701 |
https://github.com/FosolSolutions/coevent/blob/master/app/src/hooks/api/interfaces/IResponseError.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | coevent | FosolSolutions | TypeScript | Code | 21 | 55 | import { IValidationError } from '.';
export interface IResponseError {
type: string;
title: string;
status: number;
traceId?: string;
errors: IValidationError[];
}
| 7,899 |
https://github.com/familom/meteor/blob/master/src/cluster/resources_tracker.cpp | Github Open Source | Open Source | BSD-2-Clause | null | meteor | familom | C++ | Code | 180 | 577 | #include "resources_tracker.h"
#include <cassert>
#include <stdexcept>
#include <string>
namespace Meteor {
ResourcesTracker::ResourcesTracker(size_t numResources)
: NumResources(numResources)
{
}
/// @throw runtime_error
void ResourcesTracker::ValidateResource(const Resource& resource) {
if (resource >= N... | 51,400 |
https://github.com/guoxiaocong431X/cmp/blob/master/_libs/cmp_core/inc.v5.globalerror.example.php | Github Open Source | Open Source | MIT | 2,015 | cmp | guoxiaocong431X | PHP | Code | 134 | 1,188 | <?php
//------------------------------------------------------------------------------------------------
function global_error_handler($file,$line,$message,$trace,$errno){
return array("errmsg"=>$message,"errno"=>$errno,"trace"=>$trace,"line"=>$line,"file"=>$file);
}
function global_error_handler2($ex){
return global... | 17,059 |
https://github.com/ahdiatahsan/dipanegarabot/blob/master/resources/views/layouts/admin/app.blade.php | Github Open Source | Open Source | MIT | 2,019 | dipanegarabot | ahdiatahsan | Blade | Code | 725 | 4,234 | <!DOCTYPE html>
<html lang="en">
@include('layouts.admin.head')
<body
class="kt-quick-panel--right kt-demo-panel--right kt-offcanvas-panel--right kt-header--fixed kt-header-mobile--fixed kt-subheader--fixed kt-subheader--enabled kt-subheader--solid kt-aside--enabled kt-aside--fixed kt-page--loading">
<!-- begin:... | 15,624 |
https://github.com/RickyRivas/my-stripe-demo/blob/master/public/css/pages/_home.scss | Github Open Source | Open Source | MIT | null | my-stripe-demo | RickyRivas | SCSS | Code | 72 | 219 | // -----------------------------------------------------------------------------
// This file contains styles that are specific to the home page.
// -----------------------------------------------------------------------------
/* Main Container CSS */
@media (min-width: 0px) {
.landing-section {
position: relativ... | 9,568 |
https://github.com/jhrabows/autopipes/blob/master/soapserver/src/test/java/org/autopipes/server/service/StorageJpaServiceTest.java | Github Open Source | Open Source | MIT | null | autopipes | jhrabows | Java | Code | 209 | 1,066 | package org.autopipes.server.service;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.i... | 43,420 |
https://github.com/lichongbing/im_server_taobao/blob/master/http/app/im/model/mongo/ChatList.php | Github Open Source | Open Source | PHP-3.0 | 2,021 | im_server_taobao | lichongbing | PHP | Code | 136 | 492 | <?php
namespace app\im\model\mongo;
use think\Model;
class ChatList extends Model
{
/** 设置数据库配置 */
protected $connection = 'mongo';
/** 自动完成 */
protected $auto = ['last_chat_time'];
protected $insert = [
'top' => 0,
'top_time' => 0,
'no_reader_num' => 1,
'ignore' => 0,
'status' => 0,
'is_disturb'... | 13,717 |
https://github.com/Raikee/English-engine/blob/master/TextClassifier/Checkwords.js | Github Open Source | Open Source | MIT | null | English-engine | Raikee | JavaScript | Code | 71 | 204 | //file for checking if a word is a coding word
var fs = require("fs");
var WordRef = (function () {
function blank(fname) {
fs.readFile("/TextClassifier/CodingWords.txt", "UTF-8", function(err, data) {
if (err) throw err;
this.file = data;
this.words = data.split("\n");... | 52,123 |
https://github.com/kevwan/kitex/blob/master/pkg/remote/trans/netpollmux/shared_map_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | kitex | kevwan | Go | Code | 358 | 981 | /*
* Copyright 2021 CloudWeGo 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 agre... | 38,125 |
https://github.com/weseek/growi/blob/master/tools/replacer/src/App.tsx | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | growi | weseek | TSX | Code | 106 | 350 | import { ChangeEventHandler, useState } from 'react'
import './App.css'
function replaceImport(str: string): string {
const regex = /import {[\s\n]*([^}]+)[\s\n]*} from 'reactstrap';/;
return str.replace(regex, (_match, group: string) => {
const modules = group
.split(',')
.map(mod => mod.trim()... | 8,010 |
https://github.com/xwp93922/guoc/blob/master/common/widgets/views/NewLinkPager.php | Github Open Source | Open Source | BSD-3-Clause | null | guoc | xwp93922 | PHP | Code | 48 | 252 | <ul class="example-takePage-bar" >
<li class="example-takePage-item"><a class="example_takePage_btn" href="<?= $pagination->createUrl($prePage['page']) ?>" style="color:inherit"><span class="fy_st"><<</span></a></li>
<?php foreach( $buttons as $val ){ ?>
<li class="example-takePage-item <?php if( $val['ac... | 48,653 |
https://github.com/Kartm/simple-animal-husbandry/blob/master/Farmer/Animal/Sheep.php | Github Open Source | Open Source | MIT | 2,020 | simple-animal-husbandry | Kartm | PHP | Code | 25 | 88 | <?php
namespace Farmer\Animal {
class Sheep extends \Farmer\Animal\Animal
{
public function __construct()
{
$exchangeArray = array(Rabbit::class => (double)(6),
Pig::class => (double)(1/2));
parent::__construct($exchangeArray);
}
}
}
| 29,007 |
https://github.com/GustaveHooghmoed/LanternServer/blob/master/src/main/java/org/lanternpowered/server/transformer/data/FastValueContainerCheckerClassVisitor.java | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,017 | LanternServer | GustaveHooghmoed | Java | Code | 712 | 1,697 | /*
* This file is part of LanternServer, licensed under the MIT License (MIT).
*
* Copyright (c) LanternPowered <https://www.lanternpowered.org>
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a c... | 52,654 |
https://github.com/nfischer/shelljs-plugin-tr/blob/master/test/test.js | Github Open Source | Open Source | MIT | 2,020 | shelljs-plugin-tr | nfischer | JavaScript | Code | 294 | 1,333 | /* globals describe, it */
var pluginTr = require('..');
var shell = require('shelljs'); // recommended
require('should');
// override console.error() to cover up common.error() calls
console.error = function () { };
describe('plugin-tr', function () {
it('does not get added to the shelljs instance', function () ... | 48,062 |
https://github.com/GeoffreyBoulay/bazaarvoice_seo_sdk_java/blob/master/src/test/java/com/bazaarvoice/seo/sdk/BVManagedUIContent_StoriesTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | bazaarvoice_seo_sdk_java | GeoffreyBoulay | Java | Code | 177 | 619 | /*
* ===========================================================================
* Copyright 2014 Bazaarvoice, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.ap... | 29,598 |
https://github.com/burakkirbag/dotnet-stack/blob/master/backend/Startup.cs | Github Open Source | Open Source | MIT | null | dotnet-stack | burakkirbag | C# | Code | 182 | 786 | //using System.Threading.Tasks;
using FluentValidation.AspNetCore;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.AspNetCore.Mvc;
//using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.Extensi... | 13,881 |
https://github.com/FarGroup/FarManager/blob/master/far/scrbuf.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,023 | FarManager | FarGroup | C++ | Code | 2,358 | 8,308 | /*
scrbuf.cpp
Буферизация вывода на экран, весь вывод идет через этот буфер
*/
/*
Copyright © 1996 Eugene Roshal
Copyright © 2000 Far Group
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistribu... | 13,949 |
https://github.com/kriasoft/site-sdk/blob/master/Tests/Core.UnitTests/Services/EmailServiceTest.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | site-sdk | kriasoft | C# | Code | 57 | 190 | namespace App.UnitTests.Services
{
using System;
using System.Net;
using App.Services;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public class EmailServiceTest
{
[TestMethod]
public void Sends_an_Email()
{
// Arrange
var ... | 28,804 |
https://github.com/48355746/fap.hcm.webapp/blob/master/js/hcm.webapp.js | Github Open Source | Open Source | MIT | 2,017 | fap.hcm.webapp | 48355746 | JavaScript | Code | 18 | 120 | //服务器信息
var hcmServerAddressConst="hcmServerAddress";
//身份token
var hcmIdentityTokenConst="identityToken";
//人员信息
var hcmEmployeeInfoConst="employeeInfo";
//通讯录缓存
var hcmContactsConst="f7Contacts";
//站内信
var hcmf7MessagesConst="f7Messages";
//hcm业务审批
var hcmf7AppListConst="f7AppList";
| 39,747 |
https://github.com/emaphp/eMapper/blob/master/tests/eMapper/Reflection/ResultMapTest.php | Github Open Source | Open Source | MIT | null | eMapper | emaphp | PHP | Code | 261 | 2,080 | <?php
namespace eMapper\Reflection;
use eMapper\Reflection\Profiler;
use Omocha\Omocha;
/**
* Tests parsing result map annotations through the Profiler class
*
* @author emaphp
* @group reflection
*/
class ResultMapTest extends \PHPUnit_Framework_TestCase {
public function testTypeHandlerAnnotations() {
$pr... | 4,383 |
https://github.com/danilolc/pk2/blob/master/src/game/mapclass.hpp | Github Open Source | Open Source | MIT | 2,023 | pk2 | danilolc | C++ | Code | 527 | 1,788 | //#########################
//Pekka Kana 2
//Copyright (c) 2003 Janne Kivilahti
//#########################
#pragma once
#include "engine/platform.hpp"
#include "engine/PFile.hpp"
typedef struct {
int left, top, right, bottom;
} MAP_RECT;
#define PK2MAP_LAST_VERSION "1.3"
#define PK2MAP_MAP_WIDTH 256
#define P... | 33,654 |
https://github.com/choerodon/choerodon-front-agile/blob/master/agile/src/app/agile/dashboard/EpicProgress/index.scss | Github Open Source | Open Source | Apache-2.0 | 2,021 | choerodon-front-agile | choerodon | SCSS | Code | 20 | 75 | .c7n-agile-dashboard-epicProgress {
height: calc(100% - 58px);
.loading-wrap {
height: calc(100% - 58px);
display: flex;
justify-content: center;
align-items: center;
}
}
| 14,226 |
https://github.com/hoongbin/sdk-ios/blob/master/BetaDataSDK/Classes/BetaDataExceptionHandler.h | Github Open Source | Open Source | MIT | 2,020 | sdk-ios | hoongbin | Objective-C | Code | 38 | 129 | //
// BetaDataExceptionHandler.h
// BetaDataSDK
//
// Created by Zhou Kang on 2017/5/26.
// Copyright © 2015-2018 Beta Data Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@class BetaDataSDK;
@interface BetaDataExceptionHandler : NSObject
+ (instancetype)sharedHandler;
- (void)addSensorsAnalytics... | 53,113 |
https://github.com/guxiaoliang/IMeiwei/blob/master/IMeiWei/DBUtility/DbHelperOra.cs | Github Open Source | Open Source | Apache-2.0 | null | IMeiwei | guxiaoliang | C# | Code | 1,198 | 5,500 | using System;
using System.Collections;
using System.Collections.Specialized;
using System.Data;
using System.Data.OracleClient;
using System.Configuration;
namespace Maticsoft.DBUtility
{
/// <summary>
/// Copyright (C) Maticsoft
/// 数据访问基础类(基于Oracle)
/// 可以用户可以修改满足自己项目的需要。
/// </summary>
public abstract cl... | 37,204 |
https://github.com/BrianLewis7/Stashpic/blob/master/public/modules/photos/controllers/photos.client.controller.js | Github Open Source | Open Source | MIT | 2,015 | Stashpic | BrianLewis7 | JavaScript | Code | 295 | 998 | 'use strict';
//note addition of $http
angular.module('photos').controller('PhotosController', ['$scope', '$stateParams', '$http', '$location', 'Authentication', 'Socket', 'Photos',
function($scope, $stateParams, $http, $location, Authentication, Socket, Photos) {
$scope.authentication = Authentication;
$sco... | 51,809 |
https://github.com/zhuchunshu/BotPro/blob/master/app/Jobs/BotPro/RunJob.php | Github Open Source | Open Source | Apache-2.0 | null | BotPro | zhuchunshu | PHP | Code | 102 | 358 | <?php
namespace App\Jobs\BotPro;
use Exception;
use App\BotPro\Bootstrap;
use App\Services\BotCore;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Contr... | 45,896 |
https://github.com/jamesyli/repose-6.2.2.0/blob/master/repose-aggregator/components/filters/rate-limiting/src/main/java/org/openrepose/filters/ratelimiting/util/combine/CombinedLimitsTransformer.java | Github Open Source | Open Source | Apache-2.0 | null | repose-6.2.2.0 | jamesyli | Java | Code | 196 | 741 | package org.openrepose.filters.ratelimiting.util.combine;
import org.apache.commons.pool.ObjectPool;
import org.openrepose.commons.utils.transform.StreamTransform;
import org.openrepose.commons.utils.transform.xslt.AbstractXslTransform;
import org.openrepose.commons.utils.transform.xslt.XsltTransformationException;
im... | 52,048 |
https://github.com/62mkv/intellij-community/blob/master/java/java-impl/src/com/intellij/codeInsight/editorActions/JavaQuoteHandler.java | Github Open Source | Open Source | Apache-2.0 | null | intellij-community | 62mkv | Java | Code | 421 | 1,631 | // Copyright 2000-2019 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.codeInsight.editorActions;
import com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil;
import com.intellij.openapi.editor.Document;
import com.intell... | 49,671 |
https://github.com/thevpc/nuts/blob/master/core/nuts-runtime/src/main/java/net/thevpc/nuts/runtime/core/terminals/DefaultWriteTypeProcessor.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | nuts | thevpc | Java | Code | 300 | 1,016 | package net.thevpc.nuts.runtime.core.terminals;
import net.thevpc.nuts.*;
import java.util.function.Supplier;
import java.util.logging.Level;
public class DefaultWriteTypeProcessor {
private String askMessage;
private Object[] askMessageParams;
private String logMessage;
private Object[] logMessagePa... | 11,453 |
https://github.com/9inpachi/react-circular-menu/blob/master/src/CircleMenu/StyledCircleMenu.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | react-circular-menu | 9inpachi | TypeScript | Code | 56 | 170 | import styled from 'styled-components';
interface StyleProps {
menuActive: boolean;
}
export const StyledCircleMenu = styled.div`
position: relative;
`;
export const StyledCircleBackdrop = styled.div<StyleProps>`
display: ${props => props.menuActive ? 'block' : 'none'};
position: fixed;
left: 0;
top: 0;
... | 41,380 |
https://github.com/grotontrailtracker/GTNTracker/blob/master/GTNTracker/GTNTracker/Models/TrailDefModel.cs | Github Open Source | Open Source | MIT | null | GTNTracker | grotontrailtracker | C# | Code | 55 | 127 | using System.Collections.Generic;
using GTNTracker.Types;
namespace GTNTracker.Models
{
public class TrailDefModel
{
public string Identifier { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public bool DeveloperMode { get; set; }
... | 17,737 |
https://github.com/Htoob/snobot-2017/blob/master/Simulator/2017MockWpi/snobot_sim/com/snobot/simulator/motor_sim/motors/MakeTransmission.java | Github Open Source | Open Source | MIT | 2,017 | snobot-2017 | Htoob | Java | Code | 59 | 249 | package com.snobot.simulator.motor_sim.motors;
import com.snobot.simulator.motor_sim.DcMotorModel;
public class MakeTransmission
{
public static DcMotorModel makeTransmission(DcMotorModel motor, int num_motors, double gear_reduction, double efficiency)
{
DcMotorModel output = new DcMotorModel(
... | 13,952 |
https://github.com/svittala/forcedotcom-sfdc-simple/blob/master/force-app/main/default/aura/ldsShowContact/ldsShowContact.cmp | Github Open Source | Open Source | Apache-2.0 | 2,018 | forcedotcom-sfdc-simple | svittala | Gerber Image | Code | 57 | 347 | <aura:component implements="force:hasRecordId,flexipage:availableForRecordHome">
<aura:attribute name="contactRecord" type="Object"/>
<aura:attribute name="recordLoadError" type="String"/>
<force:recordData aura:id="recordLoader"
recordId="{!v.recordId}"
fields="Name,Description,Phone,... | 32,103 |
https://github.com/swc-project/swc/blob/master/crates/swc_ecma_minifier/tests/terser/compress/dead_code/dead_code_const_declaration/input.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | swc | swc-project | JavaScript | Code | 16 | 47 | var unused;
const CONST_FOO = false;
if (CONST_FOO) {
console.log("unreachable");
var moo;
function bar() {}
}
| 2,853 |
https://github.com/zip14/CMP-balti/blob/master/resources/views/mails/contactMailPlain.blade.php | Github Open Source | Open Source | MIT | null | CMP-balti | zip14 | PHP | Code | 8 | 35 | Numele și prenumele: {{$data->name}}
E-mail: {{$data->email}}
Mesaj: {{$data->message}} | 26,808 |
https://github.com/georgevella/shipbot/blob/master/src/Shipbot.SlackIntegration/Events/ISlackEventHandler.cs | Github Open Source | Open Source | MIT | 2,021 | shipbot | georgevella | C# | Code | 30 | 110 | using System.Threading.Tasks;
using Slack.NetStandard.EventsApi.CallbackEvents;
namespace Shipbot.SlackIntegration.Events
{
public interface ISlackEventHandler : ISlackPayloadProcessor<ICallbackEvent>
{
}
public interface ISlackEventHandler<in T> : ISlackEventHandler
where T: ICal... | 10,288 |
https://github.com/jmherzog-de/Ethernet-Datalogger/blob/master/docs/html/search/defines_0.js | Github Open Source | Open Source | MIT | null | Ethernet-Datalogger | jmherzog-de | JavaScript | Code | 5 | 176 | var searchData=
[
['_5f_5fprog_5ftypes_5fcompat_5f_5f_1116',['__PROG_TYPES_COMPAT__',['../dhcp__client_8c.html#a00167d1f0bf80faa62c6d8952f540f82',1,'__PROG_TYPES_COMPAT__(): dhcp_client.c'],['../ip__arp__udp__tcp_8c.html#a00167d1f0bf80faa62c6d8952f540f82',1,'__PROG_TYPES_COMPAT__(): ip_arp_udp_tcp.c']]]
];
| 35,810 |
https://github.com/retondo/profitwell/blob/master/src/resources/plans.js | Github Open Source | Open Source | MIT | 2,021 | profitwell | retondo | JavaScript | Code | 51 | 140 | class Plans {
constructor (client) {
this.client = client
}
list () {
return this.client.get('plans/')
}
get (id) {
return this.client.get(`plans/${id}/`)
}
create ({ id, name }) {
return this.client.post('plans/', { id, name })
}
update (id, { name }) {
return this.client.put(... | 636 |
https://github.com/shairez/angular-app/blob/master/client/src/app/admin/users/admin-users.js | Github Open Source | Open Source | MIT | 2,015 | angular-app | shairez | JavaScript | Code | 70 | 281 | angular.module('admin-users', ['admin-users-edit', 'services.crud'])
.config(['crudRouteProvider', function (crudRouteProvider) {
var adminUser = ['AuthenticationService', function(AuthenticationService) {
return AuthenticationService.requireAdminUser();
}];
crudRouteProvider.routesFor('Users', 'admin')
... | 38,237 |
https://github.com/Msms-NJ/fa_management_server/blob/master/autoapp.py | Github Open Source | Open Source | MIT | null | fa_management_server | Msms-NJ | Python | Code | 25 | 67 | # -*- coding: utf-8 -*-
"""Create an application instance."""
from fa_management_server.app import create_app
# from fa_management_server.extensions import make_celery
app = create_app()
# celery = make_celery(app)
| 37,557 |
https://github.com/autonomic-ai/aws-okta/blob/master/lib/session/sessions.go | Github Open Source | Open Source | MIT | null | aws-okta | autonomic-ai | Go | Code | 71 | 255 | package session
import "github.com/99designs/keyring"
func New(kr keyring.Keyring) *KeyringSessionCache {
return &KeyringSessionCache{keyring: kr}
}
type KeyringSessionCache struct {
keyring keyring.Keyring
}
func (s *KeyringSessionCache) Get(key string) ([]byte, error) {
keyringItem, err := s.keyring.Get(key)
... | 16,577 |
https://github.com/kelicto/DesignStandard/blob/master/KeLi.ModelDesign.DWF/Entities/LightConvexHull.cs | Github Open Source | Open Source | MIT | null | DesignStandard | kelicto | C# | Code | 46 | 97 | namespace KeLi.ModelDesign.DWF.Entities
{
public class LightConvexHull : LightEntity
{
public double X { get; set; }
public double Y { get; set; }
public double StartWidth { get; set; }
public double EndWidth { get; set; }
public double Convex { get; set; }
}
} | 32,224 |
https://github.com/943432216/thinkpz/blob/master/app/portal/controller/AdminVideoController.php | Github Open Source | Open Source | Apache-2.0 | null | thinkpz | 943432216 | PHP | Code | 17 | 57 | <?php
namespace app\portal\controller;
use cmf\controller\AdminBaseController;
class AdminVideoController extends AdminBaseController {
public function index()
{
$this->fetch();
}
} | 36,396 |
https://github.com/HalidCisse/eStation/blob/master/EStationCore/Model/Sale/Views/CompanyCard.cs | Github Open Source | Open Source | MIT | 2,016 | eStation | HalidCisse | C# | Code | 77 | 221 | using System;
using eStationCore.Model.Common.Enums;
using eStationCore.Model.Sale.Entity;
namespace eStationCore.Model.Sale.Views
{
public class CompanyCard
{
public CompanyCard(Company company)
{
CompanyGuid = company.CompanyGuid;
PhoneNumber = $"Tel : {company.Addre... | 38,109 |
https://github.com/teckler/salesbot/blob/master/slackforce/modules/case.js | Github Open Source | Open Source | MIT | null | salesbot | teckler | JavaScript | Code | 116 | 391 | var nforce = require('nforce'),
org = require('./auth').org,
CASE_TOKEN = process.env.SLACK_CASE_TOKEN;
function execute(req, res) {
if (req.body.token != CASE_TOKEN) {
res.send("Invalid token");
return;
}
var params = req.body.text.split(":");
var subject = params[0];
va... | 41,717 |
https://github.com/KKams/discord-bot-template/blob/master/events/debug.js | Github Open Source | Open Source | MIT | 2,020 | discord-bot-template | KKams | JavaScript | Code | 11 | 20 | module.exports = async (client, info) => {
// Your code
} | 40,927 |
https://github.com/reportportal/commons-dao/blob/master/src/main/java/com/epam/ta/reportportal/jooq/tables/records/JClustersRecord.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | commons-dao | reportportal | Java | Code | 509 | 1,719 | /*
* This file is generated by jOOQ.
*/
package com.epam.ta.reportportal.jooq.tables.records;
import com.epam.ta.reportportal.jooq.tables.JClusters;
import javax.annotation.processing.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record5;
import org.jooq.Row5;
import org.jooq.impl.Upd... | 49,979 |
https://github.com/heguoxing98/knoss-pcmanager/blob/master/ppro/PrivacyProtection/KCommandLine.h | Github Open Source | Open Source | Apache-2.0 | 2,020 | knoss-pcmanager | heguoxing98 | C++ | Code | 130 | 599 | #ifndef __KCommandLine_h__
#define __KCommandLine_h__
#include <atlstr.h>
#include <vector>
typedef struct tagCmdParamData
{
CString strCmd;
std::vector<CString> vecParam;
} KCmdParamData;
class KCommandLine
{
public:
KCommandLine()
{
int _argc = __argc;
TCHAR** _argv = __targv;
KCmdParamData data;
data... | 21,516 |
https://github.com/polyethene/IronAHK/blob/master/Rusty/Linux/X11/XColor.cs | Github Open Source | Open Source | BSD-2-Clause | 2,017 | IronAHK | polyethene | C# | Code | 96 | 285 | using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace IronAHK.Rusty.Linux.X11
{
[StructLayout(LayoutKind.Sequential)]
internal struct XStandardColormap
{
internal IntPtr colormap;
internal IntPtr red_max;
internal IntPt... | 10,099 |
https://github.com/google-code/alkes/blob/master/alkes/src/sys/win32/MemoryMapImpl_win32.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,015 | alkes | google-code | C++ | Code | 433 | 1,096 | /*
* Copyright (c) 2009-2010, okazoh_tk. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of condit... | 2,841 |
https://github.com/ArturoL-ES/jm2/blob/master/Procfile | Github Open Source | Open Source | MIT | 2,017 | jm2 | ArturoL-ES | null | Spoken | 5 | 20 | web: java -Dserver.port=$PORT -jar api/target/*.jar
| 44,833 |
https://github.com/airalab/airapkgs/blob/master/pkgs/development/php-packages/xdebug/default.nix | Github Open Source | Open Source | MIT | 2,022 | airapkgs | airalab | null | Spoken | 49 | 172 | { buildPecl, lib }:
buildPecl {
pname = "xdebug";
version = "3.0.4";
sha256 = "1bvjmnx9bcfq4ikp02kiqg0f7ccgx4mkmz5d7g6v0d263x4r0wmj";
doCheck = true;
checkTarget = "test";
zendExtension = true;
meta = with lib; {
description = "Provides functions for function traces and profiling";
license = ... | 47,518 |
https://github.com/huijiewei/agile-react/blob/master/src/app/admin/components/upload/FileUpload.tsx | Github Open Source | Open Source | MIT | 2,022 | agile-react | huijiewei | TypeScript | Code | 42 | 128 | import { BaseUpload, FileUploadProps } from '@admin/components/upload/_Upload';
import { forwardRef } from '@chakra-ui/react';
const FileUpload = forwardRef<FileUploadProps, 'div'>((props, ref) => {
const { buttonText = '上传文件', ...restProps } = props;
return <BaseUpload buttonText={buttonText} ref={ref} apiEndpoi... | 33,607 |
https://github.com/sazas/football/blob/master/agents/main.py | Github Open Source | Open Source | Apache-2.0 | null | football | sazas | Python | Code | 77 | 299 | import os
import sys
#model_name = "11_vs_11_easy_stochastic_v2"
model_name = "simple_ppo2"
KAGGLE_PATH = "/kaggle_simulations/agent"
if os.path.exists(KAGGLE_PATH):
# On kaggle
sys.path.insert(1, KAGGLE_PATH)
path = KAGGLE_PATH + f"/saved_models/{model_name}/{model_name}"
else:
sys.path.insert(1, "/ho... | 3,085 |
https://github.com/hjyssg/ShiguReader/blob/master/src/client/style/Pagination.scss | Github Open Source | Open Source | MIT | 2,023 | ShiguReader | hjyssg | SCSS | Code | 120 | 461 | @import "vars.scss";
.pagination-container {
@include flex_center_display
}
.pagination {
border-radius: 2px;
font-weight: 500;
margin-bottom: 10px;
.fa-ellipsis-h {
color: #212529;
}
.pagination-item {
position: relative;
display: block;
margin-left: -1px... | 1,661 |
https://github.com/yytdfc/cpp-torch/blob/master/example/basic/CMakeLists.txt | Github Open Source | Open Source | Apache-2.0 | 2,017 | cpp-torch | yytdfc | CMake | Code | 16 | 126 | cmake_minimum_required(VERSION 2.8)
if(NOT CPPTORCH_FOUND)
find_package(cpptorch REQUIRED)
endif()
set(demo_SRC "main.cpp")
add_executable(cpptorch_demo ${demo_SRC})
target_include_directories(cpptorch_demo PRIVATE ${CPPTORCH_INCLUDE_DIR})
target_link_libraries(cpptorch_demo ${CPPTORCH_LIBRARIES})
| 17,937 |
https://github.com/sirian/js/blob/master/packages/logger/src/LogRecord.ts | Github Open Source | Open Source | MIT | 2,019 | js | sirian | TypeScript | Code | 92 | 240 | import {DateTime} from "@sirian/datetime";
import {LogLevel} from "./AbstractLogger";
export interface LogRecordInit {
args: any[];
datetime?: DateTime;
channel?: string;
level?: LogLevel;
extra?: Record<string, any>;
}
export class LogRecord implements LogRecordInit {
public args: any[];
... | 21,184 |
https://github.com/hardik0899/Competitive_Programming/blob/master/Kattis/tomography.cpp | Github Open Source | Open Source | MIT | 2,020 | Competitive_Programming | hardik0899 | C++ | Code | 175 | 541 | #define __USE_MINGW_ANSI_STDIO 0
#include <iostream>
#include <iomanip>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <algorithm>
#include <queue>
#include <map>
#include <unordered_map>
#include <set>
#include <unordered_set>
#include <stack>
#include <deque>
#include <string.h>
#include <sstream>
... | 40,929 |
https://github.com/GTAResources/modloader/blob/master/src/shared/datalib/detail/stream/kstream.hpp | Github Open Source | Open Source | MIT | 2,018 | modloader | GTAResources | C++ | Code | 2,718 | 7,364 | /*
* Copyright (C) 2014 Denilson das MercÍs Amorim (aka LINK/2012)
* Licensed under the Boost Software License v1.0 (http://opensource.org/licenses/BSL-1.0)
*
*/
#pragma once
#include <ios>
#include <cctype>
#include <datalib/detail/stream/fwd.hpp>
#include <datalib/detail/stream/memorybuf.hpp>
namespace datalib... | 31,392 |
https://github.com/MostafaUddin82/openvswitch_1_9_android/blob/master/utilities/ovs-dpctl.8 | Github Open Source | Open Source | Apache-2.0 | 2,015 | openvswitch_1_9_android | MostafaUddin82 | null | Spoken | 1,078 | 2,784 | .de IQ
. br
. ns
. IP "\\$1"
..
.TH ovs\-dpctl 8 "August 2009" "Open vSwitch" "Open vSwitch Manual"
.ds PN ovs\-dpctl
.
.SH NAME
ovs\-dpctl \- administer Open vSwitch datapaths
.
.SH SYNOPSIS
.B ovs\-dpctl
[\fIoptions\fR] \fIcommand \fR[\fIswitch\fR] [\fIargs\fR\&...]
.
.SH DESCRIPTION
.PP
The \fBovs\-dpctl\fR progr... | 22,062 |
https://github.com/suifengpiaobo/Schooner-3D/blob/master/Schooner 3D/src/com/supermercerbros/gameengine/objects/BasicMaterial.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | Schooner-3D | suifengpiaobo | Java | Code | 242 | 640 | /*
* Copyright 2012 Dan Mercer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 27,263 |
https://github.com/redaEnnakouri/Manga-Web/blob/master/resources/views/sitemap/index.blade.php | Github Open Source | Open Source | MIT | 2,022 | Manga-Web | redaEnnakouri | PHP | Code | 22 | 122 | @php
echo '<?xml version="1.0" encoding="UTF-8"?>';
@endphp
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
@foreach ($map as $index)
<sitemap>
<loc>{{ $index['loc'] }}</loc>
<lastmod>{{ $index['lastmod'] }}</lastmod>
</sitemap>
@endforeach
</sitemapindex> | 37,700 |
https://github.com/Mccreeeee/Deep_Learning_Text_Recognition_APP/blob/master/app/src/main/java/com/example/dell/myui/utils/CheckLoginStatus.java | Github Open Source | Open Source | MIT | 2,019 | Deep_Learning_Text_Recognition_APP | Mccreeeee | Java | Code | 46 | 193 | package com.example.dell.myui.utils;
import android.content.Context;
import android.content.SharedPreferences;
import static android.content.Context.MODE_PRIVATE;
public class CheckLoginStatus {
public static boolean isLogin(Context context){
//获取保存的用户名和账号
SharedPreferences sp = context.getShared... | 12,096 |
https://github.com/wangthomas/okta-sdk-nodejs/blob/master/test/unit/policy-rule-factory.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | okta-sdk-nodejs | wangthomas | JavaScript | Code | 40 | 148 | const expect = require('chai').expect;
const PolicyRuleFactory = require('../../src/factories/PolicyRuleFactory');
describe('Policy Factory', () => {
const prf = new PolicyRuleFactory;
it('has the correct mapping', async () => {
expect(prf.getMapping()).to.have.property('SIGN_ON');
expect(prf.getMapping... | 12,590 |
https://github.com/crazyit/libcore-1.0.91/blob/master/libCore/src/main/java/com/fanwe/library/adapter/viewholder/SDViewHolder.java | Github Open Source | Open Source | Apache-2.0 | null | libcore-1.0.91 | crazyit | Java | Code | 286 | 940 | package com.fanwe.library.adapter.viewholder;
import android.app.Activity;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;
import com.fanwe.library.adapter.SDAdapter;
public abstract class SDViewHolder<T> implements
View.OnClickListener,
View.OnLongClickListe... | 44,550 |
https://github.com/ExpediaGroup/styx/blob/master/components/common/src/main/java/com/hotels/styx/common/http/handler/StaticBodyHttpHandler.java | Github Open Source | Open Source | Apache-2.0, EPL-1.0, MIT, BSD-3-Clause | 2,023 | styx | ExpediaGroup | Java | Code | 241 | 671 | /*
Copyright (C) 2013-2022 Expedia Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 35,233 |
https://github.com/etf1/go-config/blob/master/loader.go | Github Open Source | Open Source | MIT | 2,022 | go-config | etf1 | Go | Code | 150 | 496 | package config
import (
"context"
"log"
"github.com/heetch/confita"
"github.com/heetch/confita/backend"
"github.com/heetch/confita/backend/flags"
"github.com/etf1/go-config/dotenv"
"github.com/etf1/go-config/env"
)
type Loader struct {
backends []backend.Backend
}
func (cb *Loader) AppendBackends(backends ... | 16,123 |
https://github.com/spekter2308/forum.local/blob/master/resources/views/threads/create.blade.php | Github Open Source | Open Source | MIT | null | forum.local | spekter2308 | PHP | Code | 123 | 515 | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Create a new thread</div>
<div class="card-body">
... | 1,497 |
https://github.com/lboehm/open-ux-tools/blob/master/packages/odata-service-writer/src/index.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | open-ux-tools | lboehm | TypeScript | Code | 495 | 1,506 | import { join } from 'path';
import { create as createStorage } from 'mem-fs';
import type { Editor } from 'mem-fs-editor';
import { create } from 'mem-fs-editor';
import { render } from 'ejs';
import type { FioriToolsProxyConfigBackend as ProxyBackend } from '@sap-ux/ui5-config';
import { UI5Config } from '@sap-ux/ui5... | 6,959 |
https://github.com/kazuw0401/CCFinalTask/blob/master/database/migrations/2019_12_18_122131_create_carts_table.php | Github Open Source | Open Source | MIT | null | CCFinalTask | kazuw0401 | PHP | Code | 57 | 256 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCartsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('carts', function ... | 21,436 |
https://github.com/kuhnchris/monorepo-old-projects/blob/master/c/tsanalyzer/src/Makefile | Github Open Source | Open Source | ISC | 2,021 | monorepo-old-projects | kuhnchris | Makefile | Code | 71 | 296 | include ../Makefile.global
DIRS = ts captions/ARIB
OBJ = main.o tsutils.o bitutils.o
TSOBJ = ts/adaption_field.o ts/MPEG_transport_stream.o ts/program_association_section.o ts/transport_packet.o ts/PES_packet.o ts/CA_section.o ts/CA_descriptor.o ts/TS_program_map_section.o ts/descriptor.o ts/ARIB_caption_statement.o t... | 46,316 |
https://github.com/gemini-hlsw/ocs/blob/master/bundle/edu.gemini.shared.gui/src/main/scala/edu/gemini/shared/gui/SizePreference.scala | Github Open Source | Open Source | BSD-2-Clause | 2,023 | ocs | gemini-hlsw | Scala | Code | 372 | 901 | package edu.gemini.shared.gui
import java.awt.{Point, Dimension}
import java.util.prefs.Preferences
/**
* Class to store sizing preferences for windows / other components.
* User: sraaphor
*/
object SizePreference {
// The default value if the preferences are not set.
private val DEFAULT_WIDTH = -1
private ... | 33,114 |
https://github.com/department-of-veterans-affairs/vets-api/blob/master/modules/covid_research/config/routes.rb | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,023 | vets-api | department-of-veterans-affairs | Ruby | Code | 23 | 76 | # frozen_string_literal: true
CovidResearch::Engine.routes.draw do
namespace :volunteer, defaults: { format: :json } do
post 'create', to: 'submissions#create'
post 'update', to: 'submissions#update'
end
end
| 34,110 |
https://github.com/rspieldenner/gradle/blob/master/subprojects/dependency-management/src/test/groovy/org/gradle/internal/component/model/ComponentAttributeMatcherTest.groovy | Github Open Source | Open Source | Apache-2.0 | null | gradle | rspieldenner | Groovy | Code | 534 | 1,590 | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1,210 |
https://github.com/joaoalexandre5/Formula1API/blob/master/Sources/Formula1API/Models/QualifyingResults.swift | Github Open Source | Open Source | MIT | 2,021 | Formula1API | joaoalexandre5 | Swift | Code | 162 | 353 | //
// QualifyingResults.swift
//
//
// Created by Giovanni Noa on 6/3/20.
//
import Foundation
/// Codable struct, used for serializing JSON from the QualifyingResults endpoint.
public struct QualifyingResults: Codable {
public let data: QualifyingResultsData
enum CodingKeys: String, CodingKey {
... | 10,422 |
https://github.com/dikdom/z88dk/blob/master/libsrc/target/sms/clear_vram.asm | Github Open Source | Open Source | ClArtistic | 2,022 | z88dk | dikdom | Assembly | Code | 101 | 360 |
SECTION code_clib
PUBLIC clear_vram
PUBLIC _clear_vram
EXTERN l_tms9918_disable_interrupts
EXTERN l_tms9918_enable_interrupts_jp
include "sms.hdr"
;==============================================================
; Clear VRAM
;========================================... | 52,397 |
https://github.com/ShaoCorn/leetcode-solutions/blob/master/questions/maximum-binary-tree/Solution.py | Github Open Source | Open Source | MIT | 2,021 | leetcode-solutions | ShaoCorn | Python | Code | 291 | 592 | """
You are given an integer array nums with no duplicates. A maximum binary tree can be built recursively from nums using the following algorithm:
Create a root node whose value is the maximum value in nums.
Recursively build the left subtree on the subarray prefix to the left of the maximum value.
Recursively build... | 15,888 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.