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/elep007/FoodCoupon_admin/blob/master/application/models/Setting_model.php
Github Open Source
Open Source
MIT
null
FoodCoupon_admin
elep007
PHP
Code
82
355
<?php class Setting_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } public function getSettingInfo() { $this->db->select('*') ->from('anas_setting as f'); $query = $th...
32,883
https://github.com/miloradbozic/hacktivat/blob/master/database/migrations/2017_05_26_184302_create_story_table.php
Github Open Source
Open Source
MIT
2,017
hacktivat
miloradbozic
PHP
Code
62
265
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateStoryTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('story', function (Blueprint $table) { $table...
52,892
https://github.com/jystadj/authelia/blob/master/internal/commands/storage.go
Github Open Source
Open Source
Apache-2.0
2,022
authelia
jystadj
Go
Code
913
3,242
package commands import ( "github.com/spf13/cobra" "github.com/authelia/authelia/v4/internal/configuration/schema" ) // NewStorageCmd returns a new storage *cobra.Command. func NewStorageCmd() (cmd *cobra.Command) { cmd = &cobra.Command{ Use: "storage", Short: "Manage the Authelia st...
18,266
https://github.com/WCry/demo/blob/master/spring-cloud/springboot-rabbitmq/provider/src/main/java/com/example/provider/rebbitmqprovider/RabbitMqDeadLetterQueueConfig.java
Github Open Source
Open Source
Apache-2.0
null
demo
WCry
Java
Code
138
939
package com.example.provider.rebbitmqprovider; import com.example.provider.constant.RabbitPropertiesConstant; import org.springframework.amqp.core.Binding; import org.springframework.amqp.core.Exchange; import org.springframework.amqp.core.ExchangeBuilder; import org.springframework.amqp.core.Queue; import org.springf...
37,653
https://github.com/codetojoy/gists/blob/master/java/egg_StackOverflow_63995240/Example.java
Github Open Source
Open Source
Apache-2.0
2,020
gists
codetojoy
Java
Code
251
742
import java.util.*; import java.util.regex.*; // requires JDK 11+ public class Example { private static final String ASTERISK = "*"; String replace(String regex, String replacement, String input) { String result = "N/A"; Matcher m = Pattern.compile(regex).matcher(input); if (m.f...
33,464
https://github.com/ramtej/qi4j-sdk/blob/master/libraries/rest-server/src/main/java/org/qi4j/library/rest/server/restlet/freemarker/ValueCompositeObjectWrapper.java
Github Open Source
Open Source
Apache-2.0
2,017
qi4j-sdk
ramtej
Java
Code
62
196
package org.qi4j.library.rest.server.restlet.freemarker; import freemarker.template.DefaultObjectWrapper; import freemarker.template.TemplateModel; import freemarker.template.TemplateModelException; import org.qi4j.api.value.ValueComposite; /** * ObjectWrapper implementation that adds support for ValueComposites, ex...
50,804
https://github.com/sharwell/repose/blob/master/project-set/commons/utilities/src/main/java/com/rackspace/papi/commons/util/io/ByteBufferOutputStream.java
Github Open Source
Open Source
Apache-2.0
null
repose
sharwell
Java
Code
53
180
package com.rackspace.papi.commons.util.io; import com.rackspace.papi.commons.util.io.buffer.ByteBuffer; import java.io.IOException; public class ByteBufferOutputStream extends OneTimeUseOutputStream { private final ByteBuffer sharedBuffer; public ByteBufferOutputStream(ByteBuffer sharedBuffer) { ...
18,564
https://github.com/AugmentedDesignLab/town-sim-py/blob/master/src/graph.py
Github Open Source
Open Source
BSD-3-Clause
2,021
town-sim-py
AugmentedDesignLab
Python
Code
606
1,872
# BSD 3-Clause License # # Copyright (c) 2019, Augmented Design Lab # All rights reserved. import argparse import numpy as np import sys from simulation import Simulation phase2threshold = 200000 phase3threshold = 80000 gridSize = 100 outputDir = None maNum = 10 miNum = 400 byNum = 2000 brNum = 1000 r1 = 3 r2 = 5 r3 ...
47,166
https://github.com/intenaintena/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM/Network/DIMSE/IOD/CFindSeriesIOD.cs
Github Open Source
Open Source
MIT
2,019
Evil-DICOM
intenaintena
C#
Code
297
975
#region using System.Collections.Generic; using EvilDICOM.Core; using EvilDICOM.Network.Enums; using S = System; using DF = EvilDICOM.Core.DICOMForge; using System.Linq; #endregion namespace EvilDICOM.Network.DIMSE.IOD { public class CFindSeriesIOD : AbstractDIMSEIOD { public CFindSeriesIOD() ...
50,187
https://github.com/noahsw/highlight-hunter/blob/master/OdessaGUIProject/UI Controls/CustomLinkLabel.Designer.cs
Github Open Source
Open Source
Apache-2.0
2,019
highlight-hunter
noahsw
C#
Code
271
1,273
namespace OdessaGUIProject.UI_Controls { sealed partial class CustomLinkLabel { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. ...
30,318
https://github.com/Mallikarjunamatla/food-nutrino/blob/master/src/main.js
Github Open Source
Open Source
MIT
2,021
food-nutrino
Mallikarjunamatla
JavaScript
Code
595
2,434
const usda = new Usda(); const getForm = document.getElementById('get'); let foodName = document.getElementById('foodName'); const profile = document.querySelector('#profile'); const loader = document.querySelector('#loader'); let userText=""; let prevVal ; let tot ; let pageVal = 1; //console.log(pageVal); getForm...
37,820
https://github.com/josephkirk/OpenPype/blob/master/openpype/lib/abstract_metaplugins.py
Github Open Source
Open Source
MIT
2,021
OpenPype
josephkirk
Python
Code
17
64
from abc import ABCMeta from pyblish.plugin import MetaPlugin, ExplicitMetaPlugin class AbstractMetaInstancePlugin(ABCMeta, MetaPlugin): pass class AbstractMetaContextPlugin(ABCMeta, ExplicitMetaPlugin): pass
24,814
https://github.com/reportportal/agent-java-cucumber/blob/master/src/test/resources/features/embedding/ArchiveEmbeddingFeature.feature
Github Open Source
Open Source
Apache-2.0
2,023
agent-java-cucumber
reportportal
Gherkin
Code
69
101
Feature: Archive embedding feature Scenario: Embed a correct mime type Archive Given I have a dummy step to attach an archive with correct mime type Scenario: Embed an incorrect mime type Archive Given I have a dummy step to attach an archive with incorrect mime type Scenario: Embed a partially correct...
36,466
https://github.com/hujunbiao/cashbox/blob/master/bc/murmel/src/walletlib.rs
Github Open Source
Open Source
Apache-2.0
2,021
cashbox
hujunbiao
Rust
Code
321
1,265
//! mod for rust-wallet use bitcoin::blockdata::opcodes; use bitcoin::blockdata::script::Builder; use bitcoin::hashes::hex::FromHex; use bitcoin::util::psbt::serialize::Serialize; use bitcoin::{Network, OutPoint, Script, SigHashType, Transaction, TxIn, TxOut}; use bitcoin_hashes::sha256d; use bitcoin_wallet::account:...
17,581
https://github.com/niu2x/gxm/blob/master/src/gxm.old/render/viewport.h
Github Open Source
Open Source
MIT
null
gxm
niu2x
C
Code
26
90
#ifndef GXM_RENDER2D_RENDER2D_H #define GXM_RENDER2D_RENDER2D_H namespace gxm::render2d { /** * @brief This class describes a viewport. */ class viewport { public: }; } // namespace gxm::render2d #endif
40,302
https://github.com/nutzam/zmxy/blob/master/src/main/java/com/antgroup/zmxy/openplatform/api/response/ZhimaCustomerPerformanceFeedbackResponse.java
Github Open Source
Open Source
MIT
2,020
zmxy
nutzam
Java
Code
61
229
package com.antgroup.zmxy.openplatform.api.response; import com.antgroup.zmxy.openplatform.api.internal.mapping.ApiField; import com.antgroup.zmxy.openplatform.api.ZhimaResponse; /** * ALIPAY API: zhima.customer.performance.feedback response. * * @author auto create * @since 1.0, 2016-12-22 17:42:59 */ public ...
52,904
https://github.com/demisto/content/blob/master/Packs/McAfee_Advanced_Threat_Defense/Integrations/McAfee_Advanced_Threat_Defense/McAfee_Advanced_Threat_Defense_test.py
Github Open Source
Open Source
MIT
2,023
content
demisto
Python
Code
861
3,941
import tempfile import pytest import demistomock as demisto integration_params = { 'baseUrl': ' http://demi.demi.com', 'username': 'bark', 'password': 'my_password' } FILE_UPLOAD_ERROR_ONLY_ONE_ARG = 'You must submit one and only one of the following: url, entryID' FILE_UPLOAD_ERROR_MUST_GIVE_BOTH_ARGS ...
25,874
https://github.com/KaptenJon/ComponentOne-WinForms-Samples/blob/master/NetFramework/FlexChart/CS/StockChart/ColorEx.cs
Github Open Source
Open Source
MIT
2,021
ComponentOne-WinForms-Samples
KaptenJon
C#
Code
504
1,301
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace StockChart { #region Structs // An HSB color public struct HsbColor { public double A; public double H; public double S; public double B; } #endregion public clas...
37,708
https://github.com/lgoe-ac/Hecke.jl/blob/master/src/NumFieldOrd/NfOrd/Clgp/FacBase_Euc.jl
Github Open Source
Open Source
BSD-2-Clause
2,022
Hecke.jl
lgoe-ac
Julia
Code
436
1,224
################################################################################ # # Factor base over (Euclidean) Rings # ################################################################################ # Note that T must admit gcd's and base must consist of elements x for which # valuation(_, x) is definied. # works...
45,298
https://github.com/SAProdhan/Laravel-blog/blob/master/app/Http/Controllers/PostController.php
Github Open Source
Open Source
MIT
null
Laravel-blog
SAProdhan
PHP
Code
253
1,280
<?php namespace App\Http\Controllers; use Illuminate\Support\Str; use Illuminate\Http\Request; use DB; class PostController extends Controller { public function writePost(){ $category = DB::table('categories')->get(); return view('post.writepost', compact('category')); } public function Add...
24,237
https://github.com/fangzhengjin/kkFileView/blob/master/src/main/java/cn/keking/config/AppBanner.java
Github Open Source
Open Source
Apache-2.0
null
kkFileView
fangzhengjin
Java
Code
208
502
//package cn.keking.config; // //import org.springframework.boot.Banner; //import org.springframework.core.env.Environment; // //import java.io.PrintStream; // ///** // * @author kl (http://kailing.pub) // * @since 2021/2/8 // */ //public class AppBanner implements Banner { // @Override // public void printBanner...
30,106
https://github.com/syslogg/contact_system/blob/master/Repository/UnitOfWork.cs
Github Open Source
Open Source
MIT
null
contact_system
syslogg
C#
Code
151
498
using System; using Repository.Interfaces; using Repository.Interfaces.Repositories; using System.Threading.Tasks; using Repository.Repositories; namespace Repository { public class UnitOfWork : IUnitOfWork { private IPersonRepository _personRepository = null; public IPersonRepository Person...
38,460
https://github.com/SIU-CS/JS-MultiSelect/blob/master/app/js/style/body/spaceIndent.js
Github Open Source
Open Source
MIT
2,018
JS-MultiSelect
SIU-CS
JavaScript
Code
107
386
define(['require', 'jquery', 'utility/nestedDepth'], function(require) { 'use strict'; var $, jquery; jquery = $ = require('jquery'); var nestedDepth = require('utility/nestedDepth'); var initIndentPercent = 1/6; /** * Sets the sapce indentor for the specified multiselect * @pa...
38,549
https://github.com/Heba10/learning-academy/blob/master/resources/views/admin/auth/login.blade.php
Github Open Source
Open Source
MIT
null
learning-academy
Heba10
PHP
Code
70
662
<!doctype html> <html > <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw...
4,209
https://github.com/fazzyhood/Secure-Web-Login/blob/master/views/register.jade
Github Open Source
Open Source
MIT
null
Secure-Web-Login
fazzyhood
null
Spoken
71
303
extends layout block content h2.page-header Register p All fields are required! (except profile photo) ul.errors if errors each error, i in errors li.alert.alert-danger #{error.msg} form(method='post', action='/users/register', enctype='multipart/form-data') .form-group label Name ...
2,546
https://github.com/liamnobel/GMEdit/blob/master/src/ui/liveweb/LiveWeb.hx
Github Open Source
Open Source
MIT
2,021
GMEdit
liamnobel
Haxe
Code
594
2,155
package ui.liveweb; import ace.AceStatusBar; import ace.AceWrap; import ace.extern.*; import editors.EditCode; import gml.file.GmlFile; import gml.*; import parsers.*; import haxe.Json; import js.html.KeyboardEvent; import js.html.SelectElement; import js.html.TextAreaElement; import js.lib.RegExp; import tools.Base64;...
47,253
https://github.com/dragonboy612/Angular_Knockout/blob/master/test/filter/onstop.coffee
Github Open Source
Open Source
MIT
2,021
Angular_Knockout
dragonboy612
CoffeeScript
Code
216
622
Test('filter-stop-0').run ($test, alight) -> $test.start 3 onstop = 0 alight.filters.test = init: (scope, raw, env) -> onChange: (v) -> env.setValue v + '-' + v onStop: -> onstop += 1 result = '' scope = name: 'linux' cd ...
30,480
https://github.com/fangningshao/chinese-poetry-corpus/blob/master/data/清/poems/孙宝仍.tsv
Github Open Source
Open Source
MIT
2,017
chinese-poetry-corpus
fangningshao
TSV
Code
4
109
北上留别祖道诸公(清·孙宝仍)  五言律诗 押歌韵 相送高台上,川原渺若何。渐辞青嶂远,转觉白云多。名士荣簪笏,幽人爱薜萝。临歧千种意,惆怅付骊歌。
36,918
https://github.com/logicpeters/dodecahelix/blob/master/java-eight/src/main/java/org/ddx/ds/heap/HeapException.java
Github Open Source
Open Source
MIT
null
dodecahelix
logicpeters
Java
Code
29
68
package org.ddx.ds.heap; /** * Exception thrown during add and remove in the Heap * <p> */ public class HeapException extends Exception { public HeapException(String s) { super(s); } }
47,903
https://github.com/cieldon32/react-graphql/blob/master/src/Sku/models/useEditModal.tsx
Github Open Source
Open Source
MIT
null
react-graphql
cieldon32
TypeScript
Code
79
211
import React, {useEffect, useState} from 'react'; import { Form, Modal, Input } from 'antd'; interface Props { title: string; value: any; onOk: (v: any) => void; onChange: (v: any) => void; } export const useEditModal = () => { const showModal = ({title, value, onOk, onChange}: Props) => { const change...
41,164
https://github.com/srtemp/OpenFPGA/blob/master/vpr7_x2p/vpr/SRC/fpga_x2p/backend_assistant/sdc_writer_utils.h
Github Open Source
Open Source
MIT
null
OpenFPGA
srtemp
C
Code
113
537
#ifndef SDC_WRITER_UTILS_H #define SDC_WRITER_UTILS_H #include <fstream> #include <string> #include "device_port.h" #include "module_manager.h" void print_sdc_file_header(std::fstream& fp, const std::string& usage); std::string generate_sdc_port(const BasicPort& port); void print_pnr_sdc_...
51,621
https://github.com/pulumi/pulumi-okta/blob/master/sdk/java/src/main/java/com/pulumi/okta/idp/SamlKeyArgs.java
Github Open Source
Open Source
BSD-3-Clause, Apache-2.0, MPL-2.0
2,023
pulumi-okta
pulumi
Java
Code
241
691
// *** WARNING: this file was generated by pulumi-java-gen. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package com.pulumi.okta.idp; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import java.lang.String; import java.util.List; import java.util.Obje...
43,766
https://github.com/l-vincent-l/APITaxi_models/blob/master/setup.py
Github Open Source
Open Source
MIT
2,017
APITaxi_models
l-vincent-l
Python
Code
72
280
from setuptools import find_packages, setup import APITaxi_models from os import path from codecs import open HERE = path.abspath(path.dirname(__file__)) def is_pkg(line): return line and not line.startswith(('--', 'git', '#')) with open(path.join(HERE, 'requirements.txt'), encoding='utf-8') as reqs: install...
13,745
https://github.com/jmthompson2015/vizzini/blob/master/game/illyriad/src/test/java/org/vizzini/illyriad/robot/CSVRobotImageInputFilterFormatTest.java
Github Open Source
Open Source
MIT
2,017
vizzini
jmthompson2015
Java
Code
314
1,199
package org.vizzini.illyriad.robot; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; import org.junit.Test; /** * Provides tests for the <code>CSV...
22,618
https://github.com/AjiCends/mipan/blob/master/app/Http/Controllers/OrderCostController.php
Github Open Source
Open Source
MIT
2,020
mipan
AjiCends
PHP
Code
479
1,729
<?php namespace App\Http\Controllers; use App\Produk; use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; class OrderCostController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { //...
5,613
https://github.com/mattoxb/codeProperty/blob/master/src/Errors.hs
Github Open Source
Open Source
2,021
codeProperty
mattoxb
Haskell
Code
57
114
module Errors (unsupported, panic) where genericUnsupportedMsg :: String specificUnsupportedMsg :: String -> String (genericUnsupportedMsg, specificUnsupportedMsg) = (prefix ++ " (perhaps a syntax error?)", \reason -> prefix ++ ": " ++ reason) where prefix = "CodeProperty encountered something it doesn't under...
511
https://github.com/wescoder/easy-carros-challenge/blob/master/api/security/jwt/create-jwt.test.js
Github Open Source
Open Source
MIT
2,021
easy-carros-challenge
wescoder
JavaScript
Code
381
977
import test from 'ava'; import subject from './create-jwt'; function almostEqual(t, input, expected, delta) { t.true(Math.abs(expected - input) < delta); } test.beforeEach(t => { Object.assign(t.context, { jwt: subject({ secret: 'dummySecret' }), }); }); test(` [sign] Should properly convert Javscript ...
43,440
https://github.com/vmarkushin/Arend/blob/master/base/src/main/java/org/arend/core/definition/Function.java
Github Open Source
Open Source
Apache-2.0
2,022
Arend
vmarkushin
Java
Code
11
42
package org.arend.core.definition; import org.arend.core.elimtree.Body; public interface Function { Body getBody(); }
17,348
https://github.com/Hollyberries/dog_of_the_day-cli/blob/master/lib/dog_of_the_day.rb
Github Open Source
Open Source
MIT
null
dog_of_the_day-cli
Hollyberries
Ruby
Code
12
44
require 'open-uri' require 'nokogiri' require 'pry' require_relative "./version" require_relative './cli' require_relative './dog'
25,464
https://github.com/N0hbdy/godot/blob/master/thirdparty/opus/silk/arm/arm_silk_map.c
Github Open Source
Open Source
CC-BY-3.0, Apache-2.0, MIT
2,022
godot
N0hbdy
C
Code
311
698
/*********************************************************************** Copyright (C) 2014 Vidyo 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 l...
31,325
https://github.com/NECTEC-WISRU/android-TanlabadSurvey/blob/master/app/src/main/java/org/tanrabad/survey/service/EntomologyRestService.java
Github Open Source
Open Source
Apache-2.0
2,021
android-TanlabadSurvey
NECTEC-WISRU
Java
Code
233
696
/* * Copyright (c) 2016 NECTEC * National Electronics and Computer Technology Center, Thailand * * 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/...
40,063
https://github.com/fangguanya/study/blob/master/Path Find/3.5.1/Assets/AstarPathfindingProject/ExampleScenes/Example11_RVO/RVOAgentPlacer.cs
Github Open Source
Open Source
MIT
null
study
fangguanya
C#
Code
311
939
using UnityEngine; using System.Collections; /** Places ROV agents in circles. * Used in a example scene */ public class RVOAgentPlacer : MonoBehaviour { public int agents = 100; public float ringSize = 100; public LayerMask mask; public GameObject prefab; public Vector3 goalOffset; public float re...
41,266
https://github.com/sxudong/MyBatis-3.5.2/blob/master/src/test/java/com/learn/chapter04/sqlElementTests.java
Github Open Source
Open Source
ECL-2.0, Apache-2.0
null
MyBatis-3.5.2
sxudong
Java
Code
450
1,957
package com.learn.chapter04; import com.learn.chapter04.sqlElement.mapper.RoleMapper; import com.learn.chapter04.sqlElement.pojo.Role; import com.learn.chapter04.sqlElement.util.SqlSessionFactoryUtil; import org.apache.ibatis.session.SqlSession; import org.apache.logging.log4j.LogManager; import org.apache.logging.log...
10,808
https://github.com/liwenliang/frontendtools/blob/master/public/main/eslint/template_vue3_ts/prettier.config.js
Github Open Source
Open Source
MIT
null
frontendtools
liwenliang
JavaScript
Code
12
33
module.exports = { endOfLine: "auto", // 结尾是 \n \r \n\r auto };
35,663
https://github.com/Kings3D/rmw-shell/blob/master/src/containers/SearchField/SearchField.js
Github Open Source
Open Source
MIT
null
rmw-shell
Kings3D
JavaScript
Code
187
585
import Icon from '@material-ui/core/Icon' import PropTypes from 'prop-types' import React, { Component } from 'react' import TextField from '@material-ui/core/TextField' import muiThemeable from '@material-ui/core/styles/muiThemeable' import { connect } from 'react-redux' import { fade } from '@material-ui/core/utils/c...
6,087
https://github.com/slaclab/surf/blob/master/xilinx/UltraScale/gthUs/rtl/Gthe3ChannelDummy.vhd
Github Open Source
Open Source
BSD-2-Clause, LicenseRef-scancode-unknown-license-reference
2,023
surf
slaclab
VHDL
Code
1,279
4,793
------------------------------------------------------------------------------- -- Company : SLAC National Accelerator Laboratory ------------------------------------------------------------------------------- -- Description: ------------------------------------------------------------------------------- -- This fil...
45,416
https://github.com/formidablejs/framework/blob/master/lib/Http/Response/JsonResponse.js
Github Open Source
Open Source
MIT
2,022
framework
formidablejs
JavaScript
Code
96
340
const Ψ__init__ = Symbol.for('#__init__'), Ψ__initor__ = Symbol.for('#__initor__'), Ψ__inited__ = Symbol.for('#__inited__'); Object.defineProperty(exports, "__esModule", {value: true}); /*body*/ class JsonResponse { [Ψ__init__]($$ = null){ var vφ; this.data = ($$ && (vφ = $$.data) !== undefined) ? (vφ) : {}; th...
8,432
https://github.com/Lombiq/Associativy-Core/blob/master/Extensions/SchemaBuilderExtensions.cs
Github Open Source
Open Source
BSD-2-Clause
2,019
Associativy-Core
Lombiq
C#
Code
90
320
using Associativy.Models; using Orchard.Data.Migration.Schema; namespace Associativy.Extensions { public static class SchemaBuilderExtensions { public static SchemaBuilder CreateNodeToNodeConnectorRecordTable<TNodeToNodeConnectorRecord>(this SchemaBuilder schemaBuilder) where TNodeToNodeCo...
32,380
https://github.com/amirulqayyum/SuperMan-ModdedFiles/blob/master/framework.jar.out/smali_classes3/com/samsung/android/codecsolution/SemCodecSolutionManager.smali
Github Open Source
Open Source
Apache-2.0
2,021
SuperMan-ModdedFiles
amirulqayyum
Smali
Code
506
3,220
.class public Lcom/samsung/android/codecsolution/SemCodecSolutionManager; .super Ljava/lang/Object; .source "SemCodecSolutionManager.java" # static fields .field private static final TAG:Ljava/lang/String; = "CodecSolutionManager" # instance fields .field private mService:Lcom/samsung/android/codecsolution/ICodecSo...
45,524
https://github.com/jongoodboy/site/blob/master/src/main/java/com/thinkgem/jeesite/mother/m/weixin/utlis/TokenTicket.java
Github Open Source
Open Source
Apache-2.0
2,018
site
jongoodboy
Java
Code
351
1,257
package com.thinkgem.jeesite.mother.m.weixin.utlis; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import com.thinkgem.jeesite.mother.m.weixin.ConfigUtil; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.cli...
20,345
https://github.com/Vladimir37/Hanako/blob/master/client/views/admin/admins.jade
Github Open Source
Open Source
MIT
2,021
Hanako
Vladimir37
null
Spoken
91
349
extends ../basis/layout block content h1 Admins menu h2 Total admins: #{count} section.admin_list_all h3 Add admin article.add_admin_form form(method="post") input(type="text" name="name" placeholder="Name/login" required) br input...
10,434
https://github.com/fekaduw/NHDDApp/blob/master/app/src/main/java/et/gov/fmoh/nhddapp/nhddapp/DrawFragment.java
Github Open Source
Open Source
Apache-2.0
null
NHDDApp
fekaduw
Java
Code
128
561
package et.gov.fmoh.nhddapp.nhddapp; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.design.widget.TabLayout; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.Frag...
32,480
https://github.com/AlexJuarez/learn-js/blob/master/leetcode-js-master/347-top-k-frequent-elements.js
Github Open Source
Open Source
MIT
2,022
learn-js
AlexJuarez
JavaScript
Code
97
267
/** * @param {number[]} nums * @param {number} k * @return {number[]} */ const topKFrequent = function(nums, k) { const hash = {} for(let i = 0; i < nums.length; i++) { if(hash.hasOwnProperty(nums[i])) hash[nums[i]]++ else hash[nums[i]] = 1 } const res = new Array() const keys = Object.keys(hash) ...
26,933
https://github.com/ME1312/SubServers-2/blob/master/SubServers.Client/Sponge/src/net/ME1312/SubServers/Client/Sponge/Event/SubNetworkDisconnectEvent.java
Github Open Source
Open Source
Apache-2.0
2,023
SubServers-2
ME1312
Java
Code
128
405
package net.ME1312.SubServers.Client.Sponge.Event; import net.ME1312.Galaxi.Library.Util; import net.ME1312.SubData.Client.DataClient; import net.ME1312.SubData.Client.Library.DisconnectReason; import net.ME1312.SubServers.Client.Sponge.Library.SubEvent; import org.spongepowered.api.event.cause.Cause; import org.spon...
12,651
https://github.com/jart/blink/blob/master/test/asm/adx.S
Github Open Source
Open Source
2,023
blink
jart
Unix Assembly
Code
66
243
#include "test/asm/mac.inc" .globl _start _start: mov $10,%r15 "test jit too": // unsigned addition with special flags // make -j8 o//blink o//test/asm/adx.elf // o//blink/blinkenlights o//test/asm/adx.elf mov $7,%eax # extended features xor %ecx,%ecx cpuid bt $19,%ebx # adx jnc "test not possible" .test "a...
39,460
https://github.com/candyninja001/pypad-old/blob/master/pypad/leader_skill/drumming_sound_ls.py
Github Open Source
Open Source
MIT
2,019
pypad-old
candyninja001
Python
Code
52
184
from . import LeaderSkill from ..skill_loader import SkillLoader from ..region import Region class DrummingSoundLS(LeaderSkill): _handle_types = {33} @classmethod def handles(cls, raw_skill) -> bool: return True def parse_args(self): pass def args_to_json(self): ...
47,975
https://github.com/MME-Aufgaben-im-Winter-2021/projects-crity-mme-2021-22/blob/master/app/src/screens/editor/ui/renderSchedule.js
Github Open Source
Open Source
MIT
2,022
projects-crity-mme-2021-22
MME-Aufgaben-im-Winter-2021
JavaScript
Code
562
1,664
import { assert, unused } from "../../../common/utils.js"; var renderSchedule; // We schedule render tasks, since rendering all pages at once makes us lag for large PDFs. // We prioritize the page in the viewer over the thumbnails. // https://stackoverflow.com/a/17386803 function canvasIsBlank(context) { let pix...
38,670
https://github.com/bigbirdcode/cliptools/blob/master/clean.py
Github Open Source
Open Source
MIT
null
cliptools
bigbirdcode
Python
Code
37
168
"""Delete Python cache and Pytest cache folders completely""" import pathlib import shutil for p in pathlib.Path('.').rglob('__pycache__'): shutil.rmtree(p) for p in pathlib.Path('.').rglob('*.egg-info'): shutil.rmtree(p) for p in pathlib.Path('.').glob('.pytest_cache'): shutil.rmtree(p) for p in pathlib....
17,946
https://github.com/ykomitov/Homeworks-TA/blob/master/13.Web-Services-and-Cloud/03.WCF.Services/ConsoleClientCountSubstrings/CountSubstringsService.cs
Github Open Source
Open Source
MIT
null
Homeworks-TA
ykomitov
C#
Code
148
738
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
8,035
https://github.com/opengauss-mirror/DataStudio/blob/master/code/datastudio/src/org.opengauss.mppdbide.presentation/src/org/opengauss/mppdbide/presentation/edittabledata/DSEditTableDataGridDataProvider.java
Github Open Source
Open Source
CC-BY-4.0
null
DataStudio
opengauss-mirror
Java
Code
3,546
11,309
/* * Copyright (c) 2022 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS...
1,726
https://github.com/anthonypz/focus-timer/blob/master/src/App.js
Github Open Source
Open Source
MIT
null
focus-timer
anthonypz
JavaScript
Code
351
1,195
import React, { useState, useEffect, useRef } from "react"; import TimerControls from "./components/TimerControls"; import TimerDisplay from "./components/TimerDisplay"; import bellSound from "../src/assets/bell.mp3"; function App() { const [sessionTimer, setSessionTimer] = useState(1500); const [sessionIsActive, ...
8,357
https://github.com/DWhistle/OpenSpaceHack/blob/master/backend/src/main/java/ru/dwhistle/tracker/controller/api/BugRequest.java
Github Open Source
Open Source
MIT
2,020
OpenSpaceHack
DWhistle
Java
Code
27
101
package ru.dwhistle.tracker.controller.api; import ru.dwhistle.tracker.backend.service.api.Bug; import ru.dwhistle.tracker.backend.service.api.User; import java.util.Date; public class BugRequest extends Bug { public transient int id; public transient Date creationTime; public transient User bugCreator; ...
8,912
https://github.com/yyudhistira/microservice/blob/master/src/main/java/net/yasri/microservice/web/model/BreadStyleEnum.java
Github Open Source
Open Source
MIT
2,021
microservice
yyudhistira
Java
Code
10
48
package net.yasri.microservice.web.model; public enum BreadStyleEnum { BLAND, STUFFED_DINNER_ROLLS, STUFFED }
2,065
https://github.com/spacefarm-co/Farmbot-Web-App/blob/master/frontend/farm_designer/plants/grid/__tests__/thunks_test.ts
Github Open Source
Open Source
MIT
2,021
Farmbot-Web-App
spacefarm-co
TypeScript
Code
128
428
const mockSaveAllReturnValue = { mock: "yep" }; jest.mock("../../../../api/crud", () => ({ saveAll: jest.fn(() => mockSaveAllReturnValue), destroy: jest.fn() })); import { saveGrid, stashGrid } from "../thunks"; import { buildResourceIndex, } from "../../../../__test_support__/resource_index_builder"; import { f...
50,736
https://github.com/joshzzl/POMDPy/blob/master/examples/rock_sample/rock_observation.py
Github Open Source
Open Source
MIT
null
POMDPy
joshzzl
Python
Code
152
603
from __future__ import print_function #from builtins import str from pomdpy.discrete_pomdp import DiscreteObservation class RockObservation(DiscreteObservation): """ Default behavior is for the rock observation to say that the rock is empty """ def __init__(self, is_good=False, is_empty=None, \ ...
9,333
https://github.com/dxalljm/landsystem/blob/master/frontend/controllers/NationController.php
Github Open Source
Open Source
BSD-3-Clause
2,019
landsystem
dxalljm
PHP
Code
388
1,166
<?php namespace frontend\controllers; use Yii; use app\models\Nation; use frontend\models\nationSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; use app\models\Logs; /** * NationController implements the CRUD actions for Nation model. */ class NationController extends ...
14,046
https://github.com/Thoybur-Rohman/MunchClustering-/blob/master/Task2/src/Task2_Double.java
Github Open Source
Open Source
Apache-2.0
null
MunchClustering-
Thoybur-Rohman
Java
Code
672
4,716
import java.util.ArrayList; import java.util.Collections; public class Task2_Double { private static UI rand = new UI(); public static void main (String[] args) { double[][] p38 = { {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, {0,0,1,0,0,0,0,0,0,0,0,0,0,...
40,636
https://github.com/jiclement/jclib/blob/master/documentation/doxygen/html/search/functions_2.js
Github Open Source
Open Source
MIT
null
jclib
jiclement
JavaScript
Code
5
116
var searchData= [ ['get',['get',['../classjclib_1_1CountedPointer.html#ad01d75e50436f7ee6b389c80511465ae',1,'jclib::CountedPointer::get()'],['../classjclib_1_1WeakPointer.html#adade4f82b6443201e18991fd0d9d4189',1,'jclib::WeakPointer::get()']]] ];
7,944
https://github.com/rju/peerthing/blob/master/scenarioeditor/src/de/peerthing/scenarioeditor/editor/forms/CaseForm.java
Github Open Source
Open Source
Apache-2.0
2,018
peerthing
rju
Java
Code
940
4,348
package de.peerthing.scenarioeditor.editor.forms; import org.eclipse.swt.SWT; import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyListener; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.graphics.Color; import org.eclipse....
24,675
https://github.com/Jack62300/blacksyndicate/blob/master/src/Controller/IndexController.php
Github Open Source
Open Source
Apache-2.0
null
blacksyndicate
Jack62300
PHP
Code
102
380
<?php namespace App\Controller; use App\Entity\Rules; use App\Entity\SiteNews; use App\Repository\RulesRepository; use App\Repository\SiteNewsRepository; use Symfony\Component\Routing\Annotation\Route; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; class IndexController extends AbstractController ...
2,071
https://github.com/gwt-jelement/gwt-jelement/blob/master/src/main/java/gwt/jelement/html/HTMLAreaElement.java
Github Open Source
Open Source
MIT
2,018
gwt-jelement
gwt-jelement
Java
Code
336
1,074
/* * Copyright 2017 Abed Tony BenBrahim <tony.benrahim@10xdev.com> * and Gwt-JElement project contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.o...
14,902
https://github.com/hectorz11/proyecto8/blob/master/app/views/template_masterpage.blade.php
Github Open Source
Open Source
MIT
null
proyecto8
hectorz11
PHP
Code
308
1,061
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta charset="utf-8"> <!-- incluira el ti...
12,548
https://github.com/Shadowrabbit/ArcanaChinese/blob/master/patch/items/generic/arcana_misc/arcana_misc_bunbun.item.patch
Github Open Source
Open Source
Apache-2.0
2,021
ArcanaChinese
Shadowrabbit
null
Spoken
21
104
[ { "op": "replace", "path": "/description", //"Bunbun!", "value": "\u8e66\u8e66\uff01" }, { "op": "replace", "path": "/shortdescription", // "Bunbun", "value": "\u8e66\u8e66\uff01" } ]
48,427
https://github.com/aristidjakaj/project/blob/master/public/assets/ecmascript/nav.js
Github Open Source
Open Source
MIT
2,018
project
aristidjakaj
JavaScript
Code
120
1,065
var firstTab=document.querySelector(`#newArrival-tab`); var secondTab=document.querySelector(`#bestSellers-tab`); var thirdTab=document.querySelector(`#mostWanted-tab`); var firstContent=document.querySelector(`#newArrival`); var secondContent=document.querySelector(`#bestSellers`); var thirdContent=document.querySelec...
43,935
https://github.com/hitscs/com.xyz.mybatis/blob/master/src/main/java/com/xyz/mybatis/core/proxy/MethodInvocation.java
Github Open Source
Open Source
Apache-2.0
2,017
com.xyz.mybatis
hitscs
Java
Code
169
613
package com.xyz.mybatis.core.proxy; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import com.xyz.mybatis.core.annotation.AnnotationUtils; import com.xyz.mybatis.core.annotation.Transactional; import com.xyz.mybatis.core.session.ConnectionHolder; import co...
9,467
https://github.com/gerald-yang/ubuntu-iotivity-demo/blob/master/iotivity-1.0.1/service/simulator/java/eclipse-plugin/ServiceProviderPlugin/src/oic/simulator/serviceprovider/view/AttributeEditingSupport.java
Github Open Source
Open Source
Apache-2.0
2,022
ubuntu-iotivity-demo
gerald-yang
Java
Code
700
2,266
/* * Copyright 2015 Samsung Electronics 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 * * Unless required b...
18,955
https://github.com/Go7hic/S2/blob/master/packages/s2-core/src/common/interface/events.ts
Github Open Source
Open Source
MIT
2,021
S2
Go7hic
TypeScript
Code
67
173
// 这里存放 emit 事件 透出的信息 import { Event } from '@antv/g-canvas'; import { Node } from '@/facet/layout/node'; export interface CellScrollPosition { scrollX: number; scrollY: number; thumbOffset?: number; } export type TargetLayoutNode = Node; export interface ListSortParams { sortFieldId: string; sortMethod: ...
44,477
https://github.com/marciusg/cSharpCoursePractice/blob/master/game_with_numbers/Game_With_Number/GUI/Button.cs
Github Open Source
Open Source
MIT
null
cSharpCoursePractice
marciusg
C#
Code
102
284
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Game_With_Number.GUI { class Button : GuiObject { private Frame _buttonFrame; private TextLine _label; private bool _isActive; public Button(int x, in...
25,529
https://github.com/marco-c/gecko-dev-comments-removed/blob/master/third_party/aom/aom_dsp/buf_ans.c
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, BSD-2-Clause
2,023
gecko-dev-comments-removed
marco-c
C
Code
160
686
#include <string.h> #include "aom_dsp/buf_ans.h" #include "aom_mem/aom_mem.h" #include "aom/internal/aom_codec_internal.h" void aom_buf_ans_alloc(struct BufAnsCoder *c, struct aom_internal_error_info *error) { c->error = error; assert(c->size > 1); AOM_CHECK_MEM_ERROR(error, c-...
28,792
https://github.com/NguyenHuy-pro/3dtfcom/blob/master/resources/views/manage/content/map/rule-land-rank/edit.blade.php
Github Open Source
Open Source
MIT
null
3dtfcom
NguyenHuy-pro
PHP
Code
171
823
<?php /** * Created by PhpStorm. * User: HUY * Date: 6/10/2016 * Time: 11:43 AM */ ?> @extends('manage.content.components.container.contain-action-10') @section('tf_m_c_action_content') <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 text-center"> <h3 class="tf-margin-30">Edit rule of land</h3> ...
31,743
https://github.com/Sebubu/ComplexNeuralNet/blob/master/src/main/java/Data/Helper.java
Github Open Source
Open Source
Unlicense
2,016
ComplexNeuralNet
Sebubu
Java
Code
109
350
package Data; import org.apache.commons.math3.complex.Complex; import org.apache.commons.math3.linear.FieldVector; import org.apache.commons.math3.linear.MatrixUtils; /** * Created by Severin on 25.04.2015. */ public class Helper { public static double max_value = 2; public static Complex transform(double r...
43,586
https://github.com/extrowerk/openmpt/blob/master/soundlib/plugins/dmo/Distortion.h
Github Open Source
Open Source
BSD-3-Clause
2,022
openmpt
extrowerk
C
Code
331
962
/* * Distortion.h * ------------ * Purpose: Implementation of the DMO Distortion DSP (for non-Windows platforms) * Notes : (currently none) * Authors: OpenMPT Devs * The OpenMPT source code is released under the BSD license. Read LICENSE for more details. */ #ifndef NO_PLUGINS #include "../PlugInterface.h" ...
35,322
https://github.com/michael-lins/webx/blob/master/webx/View.php
Github Open Source
Open Source
MIT
2,020
webx
michael-lins
PHP
Code
118
423
<?php namespace Longanime\Webx; class View { public $app; private $userHeaderView; private $userFooterView; public function __construct( $app ) { $this->app = $app; $project_path = explode( "/vendor", getcwd() )[0]; $this->userHeaderView = $proje...
11,849
https://github.com/coleh2/Robotics_2020_2021/blob/master/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/auxilary/controlmaps/ShootingTogglesControlMap.java
Github Open Source
Open Source
MIT
null
Robotics_2020_2021
coleh2
Java
Code
47
151
package org.firstinspires.ftc.teamcode.auxilary.controlmaps; public class ShootingTogglesControlMap extends ControlMap { public static String drive = "vector3(leftStickY, leftStickX, rightStickX)"; public static String fullIntake = "toggleBetween(leftTrigger, 0, 1)"; public static String lt = "leftTrigger"...
48,177
https://github.com/javagl/cesium-cpp/blob/master/Source/src/TilesTests/TilesTests.cpp
Github Open Source
Open Source
MIT
2,022
cesium-cpp
javagl
C++
Code
644
2,773
#include "TilesTests/TilesTests.h" #include "Common/Common.h" #include "Utils/Utils.h" #include <Cesium3DTilesSelection/registerAllTileContentTypes.h> #include <glm/gtx/string_cast.hpp> #include <spdlog/spdlog.h> namespace CesiumCpp { namespace TilesTests { void runCameraFlight(Cesium3DTilesSelection::Tileset &ti...
6,486
https://github.com/vxcontrol/vxcommon/blob/master/vxproto/structs.go
Github Open Source
Open Source
MIT
null
vxcommon
vxcontrol
Go
Code
1,444
3,769
package vxproto import ( "encoding/json" "errors" "strings" "github.com/golang/protobuf/proto" "github.com/vxcontrol/vxcommon/protocol" ) // ControlMessageType is type of message that used for modules communication type ControlMessageType int32 // Enumerate control message types const ( AgentConnected Cont...
11,678
https://github.com/thomasweng15/visual_foresight/blob/master/experiments/sim/ensemble_grasping/generate_tasks.py
Github Open Source
Open Source
MIT
2,022
visual_foresight
thomasweng15
Python
Code
92
416
from visual_mpc.sim.util.config_agent import CreateConfigAgent from visual_mpc.envs.mujoco_env.cartgripper_env.autograsp_env import AutograspCartgripperEnv from visual_mpc.policy.policy import DummyPolicy import os BASE_DIR = '/'.join(str.split(__file__, '/')[:-1]) current_dir = os.path.dirname(os.path.realpath(__fil...
17,389
https://github.com/wangJS2345/MYNim/blob/master/HYNim/configuration/HYCustomNotifiSender.h
Github Open Source
Open Source
MIT
null
MYNim
wangJS2345
C
Code
70
284
// // HYCustomNotifiSender.h // HYNim // // Created by wangJS on 2018/5/24. // Copyright © 2018年 SXHY. All rights reserved. // #import <Foundation/Foundation.h> #define NTESNotifyID @"id" #define NTESCustomContent @"content" #define NTESTeamMeetingMembers @"members" #define NTESTeamMeetingTeamId @"t...
44,903
https://github.com/lyliyongblue/JavaCoder/blob/master/019Reactor/demo/reactor-webflux-demo/src/main/java/com/liyong/webflux/demo/stream/StreamDemo1.java
Github Open Source
Open Source
Apache-2.0
null
JavaCoder
lyliyongblue
Java
Code
58
296
package com.liyong.webflux.demo.stream; import java.util.stream.IntStream; /** * * @author Administrator * */ public class StreamDemo1 { public static void main(String[] args) { int[] datas = {1, 3, 9}; /** * 流中的中间操作:返回值如果还是流,那么就是中间操作 * 流中的终止操作:返回值不在是流,就是终止操作 */ int sum = IntStream.of(datas).m...
8,426
https://github.com/ktaranov/SqlDiffFramework/blob/master/SqlDiffFramework/SqlDiffFramework/OptionsPanels/GeneralPanel.Designer.cs
Github Open Source
Open Source
MIT
2,017
SqlDiffFramework
ktaranov
C#
Code
586
2,490
namespace SqlDiffFramework.OptionsPanels { partial class GeneralPanel { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </su...
50,641
https://github.com/Abdelazizee/test/blob/master/resources/lang/en/cruds.php
Github Open Source
Open Source
MIT
null
test
Abdelazizee
PHP
Code
1,169
3,765
<?php return [ 'userManagement' => [ 'title' => 'User management', 'title_singular' => 'User management', ], 'permission' => [ 'title' => 'Permissions', 'title_singular' => 'Permission', 'fields' => [ 'id' => 'ID',...
25,712
https://github.com/AndyShaw2048/myproject/blob/master/app/FacebookInfo.php
Github Open Source
Open Source
MIT
null
myproject
AndyShaw2048
PHP
Code
22
76
<?php namespace App; use Illuminate\Database\Eloquent\Model; class FacebookInfo extends Model { protected $table = 'facebook_info'; public function ScriptInfo() { return $this->hasOne('App\Script','name','model'); } }
14,538
https://github.com/peytondodd/Rhino-HCF-and-framework/blob/master/rhinohcf/src/main/java/com/sergivb01/hcf/events/CaptureZone.java
Github Open Source
Open Source
Apache-2.0
2,018
Rhino-HCF-and-framework
peytondodd
Java
Code
291
1,150
package com.sergivb01.hcf.events; import com.google.common.collect.Maps; import com.sergivb01.util.cuboid.Cuboid; import org.apache.commons.lang3.time.DurationFormatUtils; import org.bukkit.configuration.serialization.ConfigurationSerializable; import org.bukkit.entity.Player; import javax.annotation.Nullable; import...
45,730
https://github.com/Samurus/mkmWebClient/blob/master/src/main/java/ch/softridge/cardmarket/autopricing/domain/model/Rarity.java
Github Open Source
Open Source
MIT
null
mkmWebClient
Samurus
Java
Code
94
282
package ch.softridge.cardmarket.autopricing.domain.model; import java.util.HashMap; import java.util.Map; /** * @author Kevin Zellweger * @Date 04.07.20 */ public enum Rarity { COMMON("common"), UNCOMMON("uncommon"), RARE("rare"), MYTHIC("mythicrare"); //Lookup table private static final Map<String, R...
30,077
https://github.com/twilio/voice-quickstart-android/blob/master/app/src/main/java/com/twilio/voice/quickstart/SoundPoolManager.java
Github Open Source
Open Source
MIT
2,023
voice-quickstart-android
twilio
Java
Code
250
786
package com.twilio.voice.quickstart; import android.content.Context; import android.media.AudioManager; import android.media.SoundPool; import android.os.Build; import static android.content.Context.AUDIO_SERVICE; public class SoundPoolManager { private boolean playing = false; private boolean loaded = fals...
42,424
https://github.com/a-savka-sap/fundamental-ngx/blob/master/libs/platform/src/lib/components/thumbnail/thumbnail.component.scss
Github Open Source
Open Source
Apache-2.0
2,021
fundamental-ngx
a-savka-sap
SCSS
Code
78
387
.fdp-thumbnail-container { $fdp-thumbnail-container-size: 33.125rem; $fdp-thumbnail-container-margin: 1rem; display: inline-flex; width: auto; height: auto; &.fdp-thumbnail-container--horizontal { display: block; .fdp-media-container { width: $fdp-thumbnail-container-size; height: $fdp-...
35,831
https://github.com/xyxiaoyou/snappy-store/blob/master/gemfire-core/src/main/java/com/gemstone/gemfire/management/GatewaySenderMXBean.java
Github Open Source
Open Source
Apache-2.0
2,020
snappy-store
xyxiaoyou
Java
Code
825
1,682
/* * Copyright (c) 2010-2015 Pivotal Software, Inc. 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 * * Unless req...
21,272
https://github.com/knyghtLyght/data-structures-and-algorithms/blob/master/Challenges/find_matches/find_matches/MyKTree.cs
Github Open Source
Open Source
MIT
2,020
data-structures-and-algorithms
knyghtLyght
C#
Code
204
476
using System; using System.Collections.Generic; using System.Text; namespace Find_matches { public class MyKTree { public Node Root { get; set; } public MyKTree(Node root) { Root = root; } public string BreadthFirst() { MyQueue stepQueu...
14,331
https://github.com/aws/aws-sdk-cpp/blob/master/generated/src/aws-cpp-sdk-sesv2/source/model/MetricDimensionName.cpp
Github Open Source
Open Source
Apache-2.0, MIT, JSON
2,023
aws-sdk-cpp
aws
C++
Code
153
669
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/sesv2/model/MetricDimensionName.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumParseOverflowContainer.h> using namespace Aws::Uti...
36,785
https://github.com/neerajmca28/kpmProcess/blob/master/application/views_tarun/support/list_replace_device.php
Github Open Source
Open Source
MIT
null
kpmProcess
neerajmca28
PHP
Code
465
2,139
<div class="layout-content"> <div class="layout-content-body"> <div class="row gutter-xs"> <div class="col-sm-10"> <h1 class="title-bar-title"> <span class="d-ib"> Device Change List </span> </h1> </div> <div class="col-sm-2"> ...
50,114