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/asboldyrev/apprise-notification-sdk/blob/master/src/Email.php
Github Open Source
Open Source
MIT
2,023
apprise-notification-sdk
asboldyrev
PHP
Code
152
499
<?php namespace Asboldyrev\AppriseNotificationSdk; class Email { protected $emails = []; public static function create( string $user, string $password, string $domain, string $from, int $port = 25, string|null $smtp = null ): self { return new self($user, $password, $domain, $from, $port, $smtp); ...
47,593
https://github.com/triffon/fp-2019-20/blob/master/exercises/computer-science-3/exercises/03.higher-order-functions/02-iterative-accumulate.rkt
Github Open Source
Open Source
MIT
2,021
fp-2019-20
triffon
null
Spoken
86
208
#lang racket (require rackunit) (require rackunit/text-ui) ; Функцията accumulate, която видяхме на упражнение. ; Да стане по итеративен начин. (define (accumulate operation null-value start end term next) (void) ) (define (id x) x) (define (inc x) (+ x 1)) (define tests (test-suite "Iterative accumulate tests"...
33,011
https://github.com/joubin/gitlabhq/blob/master/app/services/service_ping/build_payload_service.rb
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference, CC-BY-SA-4.0
2,022
gitlabhq
joubin
Ruby
Code
36
189
# frozen_string_literal: true module ServicePing class BuildPayloadService def execute return {} unless allowed_to_report? raw_payload end private def allowed_to_report? product_intelligence_enabled? && !User.single_user&.requires_usage_stats_consent? end def product_int...
9,465
https://github.com/leandro-huck/.NET-6-Polly/blob/master/RequestService/Controllers/RequestController.cs
Github Open Source
Open Source
MIT
null
.NET-6-Polly
leandro-huck
C#
Code
83
328
using Microsoft.AspNetCore.Mvc; using RequestService.Policies; namespace RequestService.Controller { [Route("api/v1/[controller]")] [ApiController] public class RequestController : ControllerBase { //private readonly ClientPolicy _clientPolicy; private readonly IHttpClientFactory _clie...
18,271
https://github.com/luis-m-gonzalez/ReviewManiacs/blob/master/aspnet-core/src/ReviewManiacs.Core/Localization/ReviewManiacsLocalizationConfigurer.cs
Github Open Source
Open Source
MIT
2,020
ReviewManiacs
luis-m-gonzalez
C#
Code
35
184
using Abp.Configuration.Startup; using Abp.Localization.Dictionaries; using Abp.Localization.Dictionaries.Xml; using Abp.Reflection.Extensions; namespace ReviewManiacs.Localization { public static class ReviewManiacsLocalizationConfigurer { public static void Configure(ILocalizationConfiguration local...
30,497
https://github.com/StephanEggermont/Bloc/blob/master/src/Bloc.package/BlElement.class/instance/invalidRect.from..st
Github Open Source
Open Source
MIT
null
Bloc
StephanEggermont
null
Spoken
72
147
change reporting invalidRect: aBlBounds from: anElement "Translate dirty reports from an Element. A rectangle is given in my own coordinates" "we are guarding owerselves from unnecessary computations of rectangle transformation" self isAttachedToSceneGraph ifFalse: [ ^ self ]. "transform provided rectangle to ...
48,708
https://github.com/martygelev/DriveSafe/blob/master/src/main/java/com/team14/carservice/web/AnonymousUserController.java
Github Open Source
Open Source
MIT
2,019
DriveSafe
martygelev
Java
Code
185
858
package com.team14.carservice.web; import com.team14.carservice.service.common.CustomerService; import com.team14.carservice.service.common.EmailService; import com.team14.carservice.service.common.PasswordResetTokenService; import com.team14.carservice.utils.GenericResponse; import org.springframework.beans.factory.a...
27,496
https://github.com/PlatinumTeam/MBWebchat/blob/master/src/LBChat/Command/Client/IdentifyCommand.php
Github Open Source
Open Source
MIT
2,015
MBWebchat
PlatinumTeam
PHP
Code
85
278
<?php namespace LBChat\Command\Client; use LBChat\ChatClient; use LBChat\ChatServer; use LBChat\Command\CommandFactory; class IdentifyCommand extends Command implements IClientCommand { const GUEST_LOGIN_NAME = "Guest"; protected $username; public function __construct(ChatServer $server, ChatClient $client, $use...
29,048
https://github.com/cul/oai-new-valid/blob/master/test/activerecord_provider/database/0001_oaipmh_tables.rb
Github Open Source
Open Source
CC0-1.0
2,019
oai-new-valid
cul
Ruby
Code
170
674
class OaipmhTables < ActiveRecord::Migration def self.up create_table :oai_tokens do |t| t.column :token, :string, :null => false t.column :created_at, :timestamp end create_table :oai_entries do |t| t.column :record_id, :integer, :null => false t.column :oai_token_id, :inte...
21,735
https://github.com/mikolajb/servedir/blob/master/internal/listing/listing.go
Github Open Source
Open Source
MIT
2,016
servedir
mikolajb
Go
Code
185
693
package listing import ( "fmt" "html/template" "io" ) const page = `<!DOCTYPE HTML><html><head><title>File downloader</title><style>body{font-size:2em;width:60%;margin-left:auto;margin-right:auto;margin-top:80px;}</style></head><body><a href="/files/">Browse</a> <a href="/upload/">Upload</a> <table style="widt...
6,848
https://github.com/gwd/go-gitdiff/blob/master/gitdiff/testdata/apply/text_fragment_change_single_noeol.patch
Github Open Source
Open Source
MIT
2,022
go-gitdiff
gwd
null
Spoken
31
136
diff --git a/gitdiff/testdata/apply/text_fragment_change_single_noeol.src b/gitdiff/testdata/apply/text_fragment_change_single_noeol.src --- a/gitdiff/testdata/apply/text_fragment_change_single_noeol.src +++ b/gitdiff/testdata/apply/text_fragment_change_single_noeol.src @@ -1 +1 @@ -line 1 \ No newline at end of file +...
4,962
https://github.com/palestar/medusa/blob/master/ThirdParty/fbxsdk/2009.3/include/fbxfilesdk/kfbxplugins/kfbxgeometrybase.h
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,023
medusa
palestar
C++
Code
1,077
2,429
/*! \file kfbxgeometrybase.h */ #ifndef FBXFILESDK_KFBXPLUGINS_KFBXGEOMETRYBASE_H #define FBXFILESDK_KFBXPLUGINS_KFBXGEOMETRYBASE_H /************************************************************************************** Copyright © 2001 - 2008 Autodesk, Inc. and/or its licensors. All Rights Reserved. The coded...
48,566
https://github.com/zhifengnetwork/ZF8007/blob/master/public/static/mobile/js/public.js
Github Open Source
Open Source
Apache-2.0
null
ZF8007
zhifengnetwork
JavaScript
Code
50
235
/* 返回只执行一次 */ var state = true; /*返回 按钮*/ function returnFun(){ if(!state){ return false; } /*返回上一页*/ if($('.lb_headWrap .lb_headWrap_return').attr('data-num') == 1 || $('.headWrap_lb .returnBut_lb').attr('data-num') == undefined ){ window.history.back(); console.log("返回上一页"); }else { /*页面跳转*/ window....
50,836
https://github.com/manveru/ver/blob/master/config/syntax/MIPS Assembler.rb
Github Open Source
Open Source
MIT
2,021
ver
manveru
Ruby
Code
130
1,613
# Encoding: UTF-8 {fileTypes: ["s", "mips", "spim", "asm"], keyEquivalent: "^~M", name: "MIPS Assembler", patterns: [{comment: "ok actually this are instructions, but one also could call them funtions…", match: /\b(?<_1>mul|abs|div|divu|mulo|mulou|neg|negu|not|rem|remu|rol|ror|li|seq|sge|sgeu|sgt...
20,291
https://github.com/zhaokaiwj/819/blob/master/app/Model/User.php
Github Open Source
Open Source
MIT
null
819
zhaokaiwj
PHP
Code
18
55
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class User extends Model { protected $table = "api_user"; public $timestamps =false; }
29,385
https://github.com/francetv/conbo-js/blob/master/src/conbo/data/Model.js
Github Open Source
Open Source
MIT
2,015
conbo-js
francetv
JavaScript
Code
1,697
4,628
/** * conbo.Model * * Create a new model, with defined attributes. A client id (`cid`) * is automatically generated and assigned for you. * * Derived from the Backbone.js class of the same name */ conbo.Model = conbo.Hash.extend ({ /** * Constructor: DO NOT override! (Use initialize instead) * @param optio...
12,691
https://github.com/YEEBING/YTools/blob/master/Helper.h
Github Open Source
Open Source
MIT
null
YTools
YEEBING
C
Code
616
3,380
#import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import <CoreLocation/CLLocation.h> #import <CoreLocation/CoreLocation.h> //判断设备类型 #define iPhone4 ([UIScreen mainScreen].bounds.size.height == 480) #define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640...
52,546
https://github.com/benhanks040888/ceramah/blob/master/app/views/site/about.blade.php
Github Open Source
Open Source
MIT
null
ceramah
benhanks040888
PHP
Code
123
461
@extends('layouts.master') @section('content') <div class="container main-container"> <div class="row content-about"> <figure class="col-xs-5 col-no-padding featured-image"> <img src="{{ assets_url('images/m-subuh.jpg') }}" alt="Muhammad Subuh Sumohadiwidjojo"> </figure> <div class="col...
44,872
https://github.com/Jaxelr/Minim/blob/master/tests/Unit/ExceptionFixture.cs
Github Open Source
Open Source
MIT
2,021
Minim
Jaxelr
C#
Code
57
182
using Minimig; using MinimigTests.Fakes; using Xunit; namespace MinimigTests.Unit { public class ExceptionFixture { [Theory] [InlineData("SampleMigrations\\SqlServer\\0001 - Add One and Two tables.sql")] public void Check_migration_exception(string filePath) { //Arr...
47,485
https://github.com/kasperdokter/Reo-compiler/blob/master/reo-compiler-lykos/src/main/java/nl/cwi/reo/pr/targ/java/autom/JavaAutomatonFactory.java
Github Open Source
Open Source
MIT
2,020
Reo-compiler
kasperdokter
Java
Code
328
1,257
package nl.cwi.reo.pr.targ.java.autom; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import nl.cwi.reo.pr.autom.AutomatonFactory; import nl.cwi.reo.pr.autom.AutomatonSpec; import nl.cwi.reo.pr.autom.ConstraintFactory; import nl.cwi.reo.pr.autom.LiteralFactory; import nl.cwi.reo.pr.autom....
10,804
https://github.com/rubythonode/girin/blob/master/packages/girin/src/metadata/ImplementsMetadata.ts
Github Open Source
Open Source
MIT
2,018
girin
rubythonode
TypeScript
Code
105
316
import { MetadataStorage } from "../index"; import { GraphQLInterfaceType } from "graphql"; export interface ImplementsMetadataConfig { meta?: MetadataStorage; definitionClass: Function; targetNameOrDefinitionClass: string | Function; } export class ImplementsMetadata { static create(config: ImplementsMetad...
17,501
https://github.com/fracpete/vfsjfilechooser2/blob/master/src/main/java/com/googlecode/vfsjfilechooser2/plaf/basic/AbstractVFSUIAction.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,022
vfsjfilechooser2
fracpete
Java
Code
308
668
/* * * Copyright (C) 2005-2008 Yves Zoundi * * 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 ...
37,510
https://github.com/guerraenrico/TodoVS/blob/master/src/components/dialogAdd/Done.jsx
Github Open Source
Open Source
MIT
2,018
TodoVS
guerraenrico
JavaScript
Code
57
192
import React from 'react'; import PropTypes from 'prop-types'; class Done extends React.Component { componentDidMount() { setTimeout(() => { const { onClose } = this.props; onClose(); }, 3000); } render() { return ( <div className="content-done-add"> <h2>Done!</h2> ...
27,235
https://github.com/SpringbootMall/apple/blob/master/src/main/java/com/apple/mall/dao/OrderItemMapper.java
Github Open Source
Open Source
MIT
2,019
apple
SpringbootMall
Java
Code
72
307
package com.apple.mall.dao; import com.apple.mall.entity.OrderItem; import org.apache.ibatis.annotations.Param; import java.util.List; public interface OrderItemMapper { int deleteByPrimaryKey(Long orderItemId); int insert(OrderItem record); int insertSelective(OrderItem record); OrderItem selectB...
4,841
https://github.com/pqrs-org/Vulkanon/blob/master/vulkanon/generator/data/code/vulkanon/l0_boss3-right.cpp
Github Open Source
Open Source
Unlicense
2,020
Vulkanon
pqrs-org
C++
Code
1,860
72,545
// XXX uniqID XXX c163d0c1eca8e02c382ac06659364b34 XXX #include <gba_types.h> #include "bullet.hpp" #include "fixed.hpp" #include "vulkanon/l0_boss3-right.hpp" extern const BulletStepFunc bullet_f9993b0513e93098fab121891b23ea6d_c163d0c1eca8e02c382ac06659364b34[] = { stepfunc_4fa44cf997ce9b24022060f4c792dd11_c163...
11,655
https://github.com/matheusfontana/dzquiz/blob/master/src/AppBundle/Entity/Question.php
Github Open Source
Open Source
MIT
null
dzquiz
matheusfontana
PHP
Code
286
970
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\ArrayCollection; /** * Question * * @ORM\Table(name="question", indexes={@ORM\Index(name="template_survey_id", columns={"template_survey_id"})}) * @ORM\Entity */ class ...
8,784
https://github.com/joechilly2/GamePrototype/blob/master/Game v0.01/Assets/Tiled2Unity/Prefabs/testarea.prefab
Github Open Source
Open Source
MIT
2,017
GamePrototype
joechilly2
Unity3D Asset
Code
5,608
22,529
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1 &183388 GameObject: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 100100000} serializedVersion: 5 m_Component: - component: {fileID: 418858} - component: {fileID: 11468596} m_Layer: 0 m_Name: Objects m_TagString: U...
22,247
https://github.com/htv2012/advent-of-code-2020/blob/master/day06.py
Github Open Source
Open Source
MIT
null
advent-of-code-2020
htv2012
Python
Code
89
274
#!/usr/bin/env python3 """ A Python skeleton script """ import functools def count_answer(group): group = group.replace("\n", "") return len(set(group)) def count_answer2(group): answers = [set(x) for x in group.split()] common = functools.reduce(set.intersection, answers) return len(common) d...
2,083
https://github.com/Waguy02/Boomer-Scripted/blob/master/cpp/subprojects/common/include/common/pruning/pruning_irep.hpp
Github Open Source
Open Source
MIT
2,022
Boomer-Scripted
Waguy02
C++
Code
93
200
/* * @author Michael Rapp (michael.rapp.ml@gmail.com) */ #pragma once #include "common/pruning/pruning.hpp" /** * Implements incremental reduced error pruning (IREP) for pruning classification rules. * * Given `n` conditions in the order of their induction, IREP allows to remove up to `n - 1` trailing condition...
27,885
https://github.com/OlesiaNazarenko/goit-react-hw-03-image-finder/blob/master/src/components/searchbar/Searchbar.jsx
Github Open Source
Open Source
MIT
null
goit-react-hw-03-image-finder
OlesiaNazarenko
null
Spoken
109
407
import React, {Component} from 'react'; import { toast} from 'react-toastify' import 'react-toastify/dist/ReactToastify.css' import { IoIosSearch } from "react-icons/io"; import s from '../searchbar/Searchbar.module.css'; // import PropTypes from 'prop-types'; toast.configure() export default class Searchbar extends ...
12,967
https://github.com/MIPT-ILab/compiler-tasks-2018/blob/master/pa4_codegen/cgen.cc
Github Open Source
Open Source
MIT
2,020
compiler-tasks-2018
MIPT-ILab
C++
Code
2,030
6,406
//************************************************************** // // Code generator SKELETON // // Read the comments carefully. Make sure to // initialize the base class tags in // `CgenClassTable::CgenClassTable' // // Add the label for the dispatch tables to // `IntEntry::code_def' // `Stri...
21,852
https://github.com/RAHULRAJSONU/spring_ACL/blob/master/src/main/java/com/security/service/impl/MenuServiceImpl.java
Github Open Source
Open Source
MIT
2,016
spring_ACL
RAHULRAJSONU
Java
Code
91
383
package com.security.service.impl; import com.security.model.Menu; import com.security.repository.MenuRepository; import com.security.service.MenuService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security....
52,556
https://github.com/jarvanh/HyperFT/blob/master/Prj-Android/app/src/main/cpp/tracking-lib.cpp
Github Open Source
Open Source
Apache-2.0
2,022
HyperFT
jarvanh
C++
Code
492
2,112
#include <jni.h> #include <string> #include <android/log.h> #include <opencv2/opencv.hpp> #include "LandmarkTracking.h" #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, "mytest",__VA_ARGS__) std::string jstring2str(JNIEnv *env, jstring jstr) { char *rtn = NULL; jclass clsstring = env->FindClass("ja...
35,652
https://github.com/jeffamstutz/rfManta/blob/master/scenes/csafe/src/CDTest.h
Github Open Source
Open Source
MIT
2,015
rfManta
jeffamstutz
C++
Code
3,528
12,560
//! Filename: CDTest.h /*! This file is a "bridge" between python code and c++ code to simplify dealing with templated classes, etc. for the csafe demo. */ #ifndef CDTEST_H #define CDTEST_H #include "CDGridSpheres.h" #include "CSAFEObject.h" #include <Model/Groups/RecursiveGrid.h> //#include <Model/Materials/Ambi...
27,100
https://github.com/ofabricio/pong/blob/master/pong.go
Github Open Source
Open Source
MIT
2,019
pong
ofabricio
Go
Code
219
683
package pong import ( "bytes" "io" "io/ioutil" "net/http" "os" "path/filepath" "strings" "gopkg.in/yaml.v2" ) func Default(next http.HandlerFunc) http.HandlerFunc { ex, err := os.Executable() if err != nil { panic(err) } data, err := ioutil.ReadFile(filepath.Dir(ex) + "/pong.yml") if err != nil { pa...
22,588
https://github.com/SergeyRyzhov/Moilly/blob/master/app/site/views/components/language-selector.jade
Github Open Source
Open Source
MIT
2,016
Moilly
SergeyRyzhov
null
Spoken
10
112
button#language-selector.mdl-button.mdl-js-button.mdl-button--icon i.material-icons more_vert ul.mdl-menu.mdl-menu--bottom-right.mdl-js-menu.mdl-js-ripple-effect(for='language-selector', data-bind='foreach: languages') li.mdl-menu__item a(data-bind='click:liveLink, text: title')
17,724
https://github.com/zjuday/14-WaitUntilEvent_WhileLoops/blob/master/src/m2_console_input.py
Github Open Source
Open Source
MIT
null
14-WaitUntilEvent_WhileLoops
zjuday
Python
Code
606
1,248
""" This module demonstrates lets you practice INPUT from the CONSOLE. Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Amanda Stouder, Aaron Wilkin, their colleagues, and Zachary Juday """ # DONE: 1. PUT YOUR NAME IN THE ABOVE LINE. import math def main(): """ TES...
30,610
https://github.com/feenkcom/gt4gemstone-old/blob/master/src/GtGs-ClientGemstone-Core.package/ByteArray.extension/instance/gtGsByteArrayMap.st
Github Open Source
Open Source
MIT
null
gt4gemstone-old
feenkcom
null
Spoken
69
123
*GtGs-ClientGemstone-Core gtGsByteArrayMap "return a ByteArray mapping each ascii value to a 1 if that ascii value is in the set, and a 0 if it isn't. Intended for use by primitives only" | map | map := ByteArray new: 256. 1 to: map size do: [ :index | map at: index put: 0 ]. self do: [ :ascii | map at: asc...
18,852
https://github.com/mathworks-ref-arch/matlab-azure-cli/blob/master/Software/MATLAB/app/system/generated/+az/+aks/update_credentials.m
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT, BSD-2-Clause
2,022
matlab-azure-cli
mathworks-ref-arch
MATLAB
Code
880
2,435
classdef update_credentials < azure.AzureBase % Copyright 2020, The MathWorks Inc. methods function this = update_credentials() % az aks update-credentials : Update credentials for a managed Kubernetes cluster, like service % principal. this.BaseCmd = 'az aks update...
43,430
https://github.com/BuildForSDGCohort2/znbox-management/blob/master/controller/Purchase.php
Github Open Source
Open Source
Apache-2.0
null
znbox-management
BuildForSDGCohort2
PHP
Code
241
728
<?php namespace controller; use connections\Database; use controller\QueryBuilder; class Purchase { public static function add($data) { $conn = Database::conn(); $sql = QueryBuilder::insert("purchase", $data); $stmt = $conn->prepare($sql); return ($stmt->execute() ? $stmt : null); } public static funct...
13,202
https://github.com/teo0781/ShareX-Media-Server/blob/master/app/Traits/MediaResource.php
Github Open Source
Open Source
MIT
null
ShareX-Media-Server
teo0781
PHP
Code
190
520
<?php namespace App\Traits; use Illuminate\Support\Arr; trait MediaResource { /** * Initializes the media resource trait. */ public function initializeMediaResource() { $this->append('resource_url'); $this->append('resource_api'); } /** * The route key name, allowi...
16,919
https://github.com/irfan-maulana-tkp/quran-offline/blob/master/src/lib/icons/SpeakerXMarkIcon.svelte
Github Open Source
Open Source
CC-BY-SA-4.0, MIT
2,023
quran-offline
irfan-maulana-tkp
null
Spoken
56
329
<script lang="ts"> import { CLASS_BY_SIZE, type IconSize } from './utils'; export let size: IconSize = 'md'; </script> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class={$$props.class || CLASS_BY_SIZE[size]} ><path stroke-linecap="round" ...
23,761
https://github.com/worning77/my-portfolio/blob/master/node_modules/@fortawesome/pro-light-svg-icons/faBusAlt.js
Github Open Source
Open Source
MIT
2,020
my-portfolio
worning77
JavaScript
Code
149
636
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'fal'; var iconName = 'bus-alt'; var width = 512; var height = 512; var ligatures = []; var unicode = 'f55e'; var svgPathData = 'M384 384c17.67 0 32-14.33 32-32s-14.33-32-32-32-32 14.33-32 32 14.33 32 32 32zm-256 0c17.67 0 32-14.3...
4,952
https://github.com/zackchen/Clink/blob/master/core/operators/one_hot.cc
Github Open Source
Open Source
Apache-2.0
2,021
Clink
zackchen
C++
Code
456
1,431
/* Copyright (c) 2021, Qihoo, 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 required by applicable law or ...
29,712
https://github.com/eichelb4rt/discord_bot_skeleton/blob/master/src/commands/Miscellaneous/Ping.ts
Github Open Source
Open Source
MIT
null
discord_bot_skeleton
eichelb4rt
TypeScript
Code
48
116
import { Message } from "discord.js" import PublicCommand from "../../interfaces/PublicCommand"; export default class Ping extends PublicCommand { name: string = "ping"; short_description: string = "it's the fucking ping man"; long_description: string = "it's the fucking ping man"; usage: string = "!pi...
12,699
https://github.com/harydj/kelurahancina/blob/master/application/controllers/Pengaduan.php
Github Open Source
Open Source
MIT
null
kelurahancina
harydj
PHP
Code
46
232
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Pengaduan extends CI_Controller { public function index() { $isi['data'] = $this->db->get('tbl_pengaduan'); $cek = $this->session->userdata('status'); if($cek == 'admin'){ $this->load->view('header'); $this->load->view('pengaduan_...
20,136
https://github.com/ChanMo/django-regions/blob/master/regions/models.py
Github Open Source
Open Source
MIT
2,020
django-regions
ChanMo
Python
Code
204
848
import json import urllib.request import urllib.parse import logging from django.conf import settings from django.contrib.gis.geos import Point from django.contrib.gis.db import models from django.utils.translation import gettext_lazy as _ logger = logging.getLogger(__name__) class RegionManager(models.Manager): ...
3,754
https://github.com/sciapp/sampledb/blob/master/sampledb/logic/schemas/validate.py
Github Open Source
Open Source
MIT
2,023
sampledb
sciapp
Python
Code
4,099
11,848
# coding: utf-8 """ Implementation of validate(instance, schema) """ import re import datetime import decimal import string import typing import math import json import plotly from flask_babel import _ import flask from .conditions import are_conditions_fulfilled from ...logic import actions, objects, datatypes, use...
31,167
https://github.com/paulushub/SVGImage/blob/master/Samples/CustomBrushesExample/MainWindowViewModel.cs
Github Open Source
Open Source
MIT
2,022
SVGImage
paulushub
C#
Code
114
438
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Windows.Media; namespace CustomBrushesExample { class MainWindowViewModel : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; protec...
34,081
https://github.com/Azure/azure-functions-host/blob/master/test/WebJobs.Script.Tests/Middleware/SystemTraceMiddlewareTests.cs
Github Open Source
Open Source
MIT, Apache-2.0
2,023
azure-functions-host
Azure
C#
Code
295
1,238
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using M...
38,390
https://github.com/moustakas/legacyhalos/blob/master/py/legacyhalos/redmapper/redmapper.py
Github Open Source
Open Source
MIT
2,023
legacyhalos
moustakas
Python
Code
504
1,695
""" legacyhalos.redmapper.redmapper =============================== Utility code specific to redMaPPer """ import numpy as np import legacyhalos.io import legacyhalos.misc from legacyhalos.redmapper import pzutils def compute_nofz(cat=None, nboot=None, seed=None, area=None, dz=0.2, descale=False, ver...
12,936
https://github.com/07ke/shadow-dashboard/blob/master/scripts/build-web-gui.sh
Github Open Source
Open Source
MIT
2,018
shadow-dashboard
07ke
Shell
Code
52
241
#!/bin/bash set -e # Download Web GUI zip FILENAME=$(curl 'https://api.github.com/repos/perqin/shadow-dashboard-web-gui/releases/latest' -q | python3 -c "import sys, json; print(json.load(sys.stdin)['assets'][0]['name'])") DIRNAME="${FILENAME%.*}" DOWNLOAD_URL=$(curl 'https://api.github.com/repos/perqin/shadow-dashbo...
36,825
https://github.com/Praxinos/ULIS3/blob/master/3rdparty/blend2d/src/blend2d/geometry.cpp
Github Open Source
Open Source
RSA-MD
2,022
ULIS3
Praxinos
C++
Code
299
834
// Blend2D - 2D Vector Graphics Powered by a JIT Compiler // // * Official Blend2D Home Page: https://blend2d.com // * Official Github Repository: https://github.com/blend2d/blend2d // // Copyright (c) 2017-2020 The Blend2D Authors // // This software is provided 'as-is', without any express or implied // warranty. I...
42,072
https://github.com/payfort/payfort-dotnet-sdk/blob/master/APS/APS.DotNetSDK/Configuration/OperationsConfiguration.cs
Github Open Source
Open Source
MIT
2,023
payfort-dotnet-sdk
payfort
C#
Code
27
85
using System.Text.Json.Serialization; namespace APS.DotNetSDK.Configuration { public class OperationsConfiguration { [JsonPropertyName("BaseUrl")] public string BaseUrl { get; set; } [JsonPropertyName("RequestUri")] public string RequestUri { get; set; } } }
34,245
https://github.com/menim/sketchbook-vs-gatsby/blob/master/src/i18n/locales/index.js
Github Open Source
Open Source
MIT
null
sketchbook-vs-gatsby
menim
JavaScript
Code
27
90
const localeData = [ ...require('react-intl/locale-data/ru'), ...require('react-intl/locale-data/uk'), ] module.exports = { localeData, languages: [ { value: 'ru', text: 'ru' }, { value: 'uk', text: 'ua' }, ], }
35,686
https://github.com/samyakjain7776/Charity-Website/blob/master/nologindonate.php
Github Open Source
Open Source
Apache-2.0
2,021
Charity-Website
samyakjain7776
PHP
Code
293
1,391
<?php error_reporting(E_ALL & ~E_NOTICE); require_once "nologinheader1.php"; if(isset($_POST['char'])) { $charity=$_POST['char']; $query = "select * from charities where id='$charity'"; $result = mysqli_query($link, $query); $row=mysqli_fetch_assoc($result); $name=$_SESSION['user1']; } else { echo "<meta ht...
17,299
https://github.com/andrudog7/brunchmadness.github.io/blob/master/Javascript/item.js
Github Open Source
Open Source
MIT
null
brunchmadness.github.io
andrudog7
JavaScript
Code
90
310
class Item { constructor(id, name, price, icon) { this.id = id; this.name = name; this.price = price; this.icon = icon; Item.all.push(this) } static all = [] } function fetchItems(){ fetch(`https://brunch-madness.herokuapp.com/items`) .then(response => respon...
7,971
https://github.com/PremierLangage/platon-server/blob/master/platon/views.py
Github Open Source
Open Source
LicenseRef-scancode-cecill-b-en, CECILL-B
2,021
platon-server
PremierLangage
Python
Code
67
349
from rest_framework import renderers from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.reverse import reverse @api_view(('GET',)) def api_root(request, format=None): return Response({ 'auth-sign-in': reverse('pl_auth:sign-in', request=request, ...
22,734
https://github.com/saldi7/Docker/blob/master/ccminer-verus/build.sh
Github Open Source
Open Source
MIT
null
Docker
saldi7
Shell
Code
68
160
#!/bin/bash . ./ccminer.conf GIT=$(which git) DOCKER=$(which docker) if [ -z "${DOCKER}" ]; then echo "ERROR: Docker does not seem to be installed. Please download and install Docker CE as outlined on https://docs.docker.com/engine/install/." exit 1 elif [ -z "${GIT}" ]; then echo "ERROR: git does not seem to...
9,218
https://github.com/Sing-Li/bluemix-buildpack-meteor-1/blob/master/bin/release
Github Open Source
Open Source
MIT
2,016
bluemix-buildpack-meteor-1
Sing-Li
Shell
Code
22
112
#!/usr/bin/env bash # bin/release <build-dir> echo "$MONGO_URL" echo "$ROOT_URL" echo "$PORT" .meteor/mteor_build/bin/node -v cat <<EOF --- addons: default_process_types: web: .meteor/meteor_build/bin/node .meteor/meteor_build/app/bundle/main.js EOF
41,687
https://github.com/CasualPokePlayer/ares/blob/master/mia/settings/settings.cpp
Github Open Source
Open Source
BSD-3-Clause
2,021
ares
CasualPokePlayer
C++
Code
60
199
Settings settings; auto Settings::serialize() -> string { string s; #define write(name) s.append(#name, ": ", name, "\n") write(createManifests); write(useDatabase); write(useHeuristics); write(recent); #undef write return s; } auto Settings::unserialize(const string& markup) -> void { *this = {}; ...
5,360
https://github.com/nicococo/ClusterSvdd/blob/master/scripts/test_clustersvdd.py
Github Open Source
Open Source
MIT
2,022
ClusterSvdd
nicococo
Python
Code
343
1,321
import matplotlib.pyplot as plt import matplotlib.pylab as pl import numpy as np from ClusterSVDD.svdd_primal_sgd import SvddPrimalSGD from ClusterSVDD.cluster_svdd import ClusterSvdd def generate_gaussians(datapoints, cluster, noise_frac=0.1, dims=2): mean_mul = 50. vars = [4.1, 4.1] num_noise = np.in...
45,144
https://github.com/kgary/ser422asu_public/blob/master/MVCExample/src/edu/asupoly/ser422/t6mvc2/service/UserDAO.java
Github Open Source
Open Source
CC0-1.0
2,021
ser422asu_public
kgary
Java
Code
128
420
package edu.asupoly.ser422.t6mvc2.service; import java.util.Vector; import java.util.Hashtable; import java.util.Map; import edu.asupoly.ser422.t6mvc2.model.Book; public class UserDAO { // Vectors and Hashtables are synchronized. private Map<String, Vector<Book>> users = null; private static UserDAO me = null; ...
51,937
https://github.com/mduc182/laraveltest/blob/master/Test/routes/web.php
Github Open Source
Open Source
MIT
2,020
laraveltest
mduc182
PHP
Code
66
241
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the Route...
15,104
https://github.com/evanboho/protobuf/blob/master/spec/lib/protobuf/field/message_field_spec.rb
Github Open Source
Open Source
MIT
2,017
protobuf
evanboho
Ruby
Code
181
569
require 'spec_helper' RSpec.describe Protobuf::Field::MessageField do let(:field_message) do Class.new(::Protobuf::Message) do optional :int32, :field, 1 end end let(:message) do Class.new(::Protobuf::Message) do optional FieldMessage, :message_field, 1 end end before do stu...
49,206
https://github.com/oliviertassinari/material-ui/blob/master/packages/mui-icons-material/lib/esm/HexagonSharp.js
Github Open Source
Open Source
MIT
2,022
material-ui
oliviertassinari
JavaScript
Code
25
100
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M17.2 3H6.8l-5.2 9 5.2 9h10.4l5.2-9z" }), 'HexagonSharp');
16,723
https://github.com/mkannwischer/PQClean/blob/master/crypto_sign/sphincs-haraka-256f-simple/aesni/thash_haraka_simplex4.c
Github Open Source
Open Source
OpenSSL, CC0-1.0, MIT
2,022
PQClean
mkannwischer
C
Code
320
1,968
#include <stdint.h> #include <string.h> #include "address.h" #include "haraka.h" #include "params.h" #include "thashx4.h" /** * 4-way parallel version of thash; takes 4x as much input and output */ #define thashx4_variant(name, inblocks) \ void PQCLEAN_...
3,593
https://github.com/hpi-swa-lab/SandBlocks-BlocksToTheRescue/blob/master/BlocksToTheRescue-Utility.package/FrameAdornmentMorph.class/instance/condition..st
Github Open Source
Open Source
MIT
2,020
SandBlocks-BlocksToTheRescue
hpi-swa-lab
null
Spoken
6
20
accessing condition: aBlockOrBoolean condition := aBlockOrBoolean.
8,419
https://github.com/georgewaraw/sunflowerain/blob/master/source/Ground.js
Github Open Source
Open Source
MIT
2,021
sunflowerain
georgewaraw
JavaScript
Code
217
555
import { Mesh, PlaneGeometry, NearestFilter, MirroredRepeatWrapping, MeshPhongMaterial } from "three"; import { Utility } from "Utility"; import { Game } from "Game"; const params = Object.freeze({ SIZE: [ 10000, 10000 ], FRAMES: 25, // JPGs: ground_0 ... ground_24 REPEAT: [ 1000, 1000 ], FPS: 15 }); const ...
10,594
https://github.com/elbeardmorez/mod/blob/master/quodlibet/embeddedartwidgetbar,.collapsed.album.auto-(un)select.all.diff
Github Open Source
Open Source
Unlicense
null
mod
elbeardmorez
null
Spoken
297
1,145
From d3bef65b2128c253cfa15cc555ba0094358c150e Mon Sep 17 00:00:00 2001 From: Pete Beardmore <pete.beardmore@msn.com> Date: Sat, 24 Mar 2018 23:17:08 +0000 Subject: embeddedartwidgetbar, collapsed album auto-(un)select all -ensure album checked state is consistent with respect to its songs' state --- .../quodlibet/ext...
29,678
https://github.com/tomwestman/loginpage/blob/master/angular-demo/app/app.js
Github Open Source
Open Source
MIT
2,015
loginpage
tomwestman
JavaScript
Code
49
155
(function(){ 'use strict'; // Declare app level module which depends on filters, and services angular.module('myApp', [ 'ui.router', 'login', 'activityFeed' ]) .config([ '$urlRouterProvider', //use this line for Providers // 'ActivityProvider', function($urlRouterProvider //use this line for Provid...
40,219
https://github.com/logicent/posdesk/blob/master/fuel/app/views/product/item/location/index.php
Github Open Source
Open Source
MIT
2,022
posdesk
logicent
PHP
Code
101
462
<h2>Listing <span class='muted'>Item Locations</span></h2> <br> <?php if ($item_locations): ?> <table class="table table-hover datatable"> <thead> <tr> <th>Item</th> <th>Location</th> <th>Quantity</th> <th>&nbsp;</th> </tr> </thead> <tbody> <?php foreach ($item_locations as $item): ?> <tr> <td...
50,407
https://github.com/Vthaore/EnergyPATHWAYS/blob/master/model_building_tools/db_to_file/extract_scenario_tree.py
Github Open Source
Open Source
MIT
2,021
EnergyPATHWAYS
Vthaore
Python
Code
377
1,612
import psycopg2.extras import json import re from collections import OrderedDict, Callable import energyPATHWAYS.config as cfg class DefaultOrderedDict(OrderedDict): # Source: http://stackoverflow.com/a/6190500/562769 def __init__(self, default_factory=None, *a, **kw): if (default_factory is not None a...
49,345
https://github.com/akademskig/super-system/blob/master/frontend/src/components/forms/RegisterForm/RegisterForm.module.scss
Github Open Source
Open Source
MIT
null
super-system
akademskig
SCSS
Code
59
199
@import '../../../styles/variables.scss'; .root { width: 300px; margin: auto; } .title { text-align: center; } .form { display: flex; flex-direction: column; justify-content: center; align-items: center; & > :nth-child(n) { margin-bottom: $padding-l; } & > :last-child { margin-bottom: 0; ...
13,211
https://github.com/RealShiftless/Clockwork.Ini/blob/master/Types/DataStoreType.cs
Github Open Source
Open Source
MIT
null
Clockwork.Ini
RealShiftless
C#
Code
166
456
using System; using System.Collections.Generic; using System.Text; namespace Clockwork.Ini.Types { class DataStoreType : IValueType { /* NAME */ public string Name => "DataStore"; /* PARSING */ public DynamicValue Parse(string str) { throw new Exception("D...
9,432
https://github.com/Granddevv/Codeigniter_MyLegal/blob/master/application/views/admin/dropdown/gender_list.php
Github Open Source
Open Source
MIT
2,019
Codeigniter_MyLegal
Granddevv
PHP
Code
274
1,503
<div class="row"> <div class="col-md-12"> <div class="header"> <h2>Gender Dropdown <a class="btn btn-primary pull-right" id="add_new_gender">Add New Gender</a></h2> </div> </div> <div class="col-md-12"> <table class="table table-bordered table-striped table-hover text-center"> <thead> <td>id</td> ...
42,082
https://github.com/EnEff-BIM/EnEffBIM-Framework/blob/master/SimModel_Python_API/simmodel_swig/SimModel/framework/SimFlowPlant_PlantComponent.hxx
Github Open Source
Open Source
MIT
2,017
EnEffBIM-Framework
EnEff-BIM
C++
Code
1,665
8,757
// Copyright (c) 2005-2014 Code Synthesis Tools CC // // This program was generated by CodeSynthesis XSD, an XML Schema to // C++ data binding compiler. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Fre...
27,083
https://github.com/ghsecuritylab/tomato_egg/blob/master/release/src/linux/linux/include/asm-arm/hardware/ep7312.h
Github Open Source
Open Source
FSFAP
2,022
tomato_egg
ghsecuritylab
C
Code
357
828
/* * linux/include/asm-arm/hardware/ep7312.h * * This file contains the hardware definitions of the EP7312 internal * registers. * * Copyright (C) 2003 Roland A.I. Rosier <roland.rosier@lycos.co.uk>. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Ge...
675
https://github.com/jordanbyron/connectwise-ruby-sdk/blob/master/lib/connectwise-ruby-sdk.rb
Github Open Source
Open Source
Apache-2.0
2,016
connectwise-ruby-sdk
jordanbyron
Ruby
Code
886
7,196
=begin #Connectwise REST API #ConnectWise API OpenAPI spec version: 1.0.0 Contact: platform@connectwise.com Generated by: https://github.com/swagger-api/swagger-codegen.git 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 ...
5,586
https://github.com/zhangzlyuyx/jeecms81/blob/master/src/src/main/java/com/jeecms/cms/action/member/ImageUploadAct.java
Github Open Source
Open Source
Apache-2.0
null
jeecms81
zhangzlyuyx
Java
Code
665
2,823
package com.jeecms.cms.action.member; import static com.jeecms.cms.Constants.TPLDIR_MEMBER; import java.awt.Color; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.Locale; import javax.servlet.http.HttpServletRequest; import org.apache.commons.io.FilenameUtils; impor...
48,816
https://github.com/ehultgre/03-Juicy-Brick-Breaker/blob/master/.import/paddle_long_2.png-6488e009958d84176ebaf54f24b2cfbb.md5
Github Open Source
Open Source
MIT
2,020
03-Juicy-Brick-Breaker
ehultgre
null
Spoken
2
57
source_md5="90d54adf826a47258750c6d6536b9f85" dest_md5="e8651c7fdfdb80a2098cd05df9e133c5"
29,311
https://github.com/fossabot/coraza-waf/blob/master/pkg/utils/utils.go
Github Open Source
Open Source
Apache-2.0
null
coraza-waf
fossabot
Go
Code
403
945
// Copyright 2021 Juan Pablo Tosso // // 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 ...
8,773
https://github.com/mulesoft-labs/raml-java-tools/blob/master/raml-to-pojo/src/main/java/org/raml/ramltopojo/GenerationContextImpl.java
Github Open Source
Open Source
Apache-2.0
2,022
raml-java-tools
mulesoft-labs
Java
Code
578
2,384
package org.raml.ramltopojo; import com.google.common.base.Optional; import com.google.common.collect.HashMultimap; import com.google.common.collect.SetMultimap; import com.squareup.javapoet.ClassName; import com.squareup.javapoet.JavaFile; import com.squareup.javapoet.TypeName; import com.squareup.javapoet.TypeSpec; ...
25,275
https://github.com/phajduk/dagger2-example/blob/master/app/src/main/java/net/pawelhajduk/daggerdemo/api/model/Repository.java
Github Open Source
Open Source
MIT
2,020
dagger2-example
phajduk
Java
Code
16
49
package net.pawelhajduk.daggerdemo.api.model; public class Repository { public String name; public int openIssues; public int watchers; }
32,252
https://github.com/darye/kopshelper/blob/master/kube-setup/manage-cluster/create
Github Open Source
Open Source
Unlicense
2,020
kopshelper
darye
Shell
Code
367
1,169
#!/bin/bash # requires # - AWS_REGION # - S3_BUCKET_NAME # - KUBE_CLUSTER_NAME # - KOPS_STATE_STORE # - NODE_COUNT # - NODE_SIZE # - MASTER_SIZE # - SSH_PUBLIC_KEY_FILE thisDirectory="${BASH_SOURCE%/*}" source $thisDirectory/../utility source $thisDirectory/../setup-vars source $thisDirectory/../build-vars if [ -e ...
17,851
https://github.com/aenniw/ESP8266/blob/master/libs/file_system/file_system.h
Github Open Source
Open Source
MIT
2,023
ESP8266
aenniw
C++
Code
683
2,582
#ifndef WEMOS_D1_FILESYSTEM_H_ #define WEMOS_D1_FILESYSTEM_H_ #include <FS.h> #include <ArduinoJson.h> #include <initializer_list> #include <service_log.h> //#include <EEPROM.h> #define CONFIG_IO_JSON "/json/config-io.json" void ICACHE_FLASH_ATTR set_wifi_config_reset(const bool); void ICACHE_FLASH_ATTR config_reset...
24,284
https://github.com/IpoLa/react-pro-sidebar/blob/master/src/scss/variables.scss
Github Open Source
Open Source
MIT
2,020
react-pro-sidebar
IpoLa
SCSS
Code
27
148
$sidebar-bg-color: #1d1d1d !default; $sidebar-color: #adadad !default; $sidebar-width: 270px !default; $sidebar-collapsed-width: 80px !default; $highlight-color: #d8d8d8 !default; $submenu-bg-color: #2b2b2b !default; $submenu-bg-color-collapsed: #2b2b2b !default; $icon-bg-color: #2b2b2b !default; $icon-size: 35px !defa...
2,134
https://github.com/bcgov/design-system-web-components/blob/master/src/components/bcgov-breadcrumb/bcgov-breadcrumb.spec.ts
Github Open Source
Open Source
Apache-2.0
2,022
design-system-web-components
bcgov
TypeScript
Code
101
524
import { BcgovBreadcrumb } from "./bcgov-breadcrumb"; import { newSpecPage } from "@stencil/core/testing"; describe("bcgov-breadcrumb", () => { it("builds", () => { expect(new BcgovBreadcrumb()).toBeTruthy(); }); it("Render BreadCrumb", async () => { const page = await newSpecPage({ components: [Bc...
40,621
https://github.com/arusinha/incubator-netbeans/blob/master/java/j2ee.persistence/test/unit/src/org/netbeans/modules/db/test/jdbcstub/ResultSetImpl.java
Github Open Source
Open Source
Apache-2.0
2,022
incubator-netbeans
arusinha
Java
Code
426
1,049
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
1,944
https://github.com/grddavies/TICC/blob/master/ticclib/__init__.py
Github Open Source
Open Source
BSD-2-Clause
2,021
TICC
grddavies
Python
Code
4
10
from .ticc import TICC
1,333
https://github.com/jianqili/llvm-semantics/blob/master/tests/old-tests/gcc-torture/20020406-1.ll
Github Open Source
Open Source
MIT
2,015
llvm-semantics
jianqili
LLVM
Code
2,758
8,530
; ModuleID = '/home/grosu/celliso2/c-semantics/tests/gcc-torture/20020406-1.c' target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" target triple = "x86_64-unknown-linux-gnu" %struct.DUPFFstruct = type { i32, ...
34,622
https://github.com/chatoxz/prodeyii/blob/master/_protected/models/Partido.php
Github Open Source
Open Source
BSD-3-Clause
null
prodeyii
chatoxz
PHP
Code
102
388
<?php namespace app\models; use Yii; use \app\models\base\Partido as BasePartido; /** * This is the model class for table "partido". */ class Partido extends BasePartido { /** * @inheritdoc */ public function rules() { return array_replace_recursive(parent::rules(), [ ...
39,442
https://github.com/plijnzaad/atropos/blob/master/atropos/commands/reports.py
Github Open Source
Open Source
CC0-1.0
null
atropos
plijnzaad
Python
Code
525
1,635
"""Interface to report generation. """ import importlib import os from atropos.io import STDOUT, STDERR, open_output from atropos.io.seqio import PAIRED SERIALIZERS = dict( json='t', yaml='t', pickle='b' ) class BaseReportGenerator(object): """Base class for command report generators. Args: ...
19,749
https://github.com/hmrc/common-transit-convention-guarantee-balance/blob/master/test/connectors/FakeBalanceRequestConnector.scala
Github Open Source
Open Source
Apache-2.0
2,022
common-transit-convention-guarantee-balance
hmrc
Scala
Code
159
412
/* * Copyright 2022 HM Revenue & Customs * * 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 a...
13,512
https://github.com/maxbottega/wheelie/blob/master/Assets/Scripts/SideCameraFollow.cs
Github Open Source
Open Source
Artistic-2.0
2,013
wheelie
maxbottega
C#
Code
50
125
using UnityEngine; using System.Collections; public class SideCameraFollow : MonoBehaviour { public Transform mTarget = null; public float mDistance = 10; // Use this for initialization void Start () { } // Update is called once per frame void Update () { transform.position = mTarget....
37,762
https://github.com/okjay/Alink/blob/master/core/src/main/java/com/alibaba/alink/operator/common/linear/unarylossfunc/HuberLossFunc.java
Github Open Source
Open Source
Apache-2.0
2,022
Alink
okjay
Java
Code
125
308
package com.alibaba.alink.operator.common.linear.unarylossfunc; /** * Huber loss function. * https://en.wikipedia.org/wiki/Huber_loss */ public class HuberLossFunc implements UnaryLossFunc { private static final long serialVersionUID = 618967763754853703L; private double delta; public HuberLossFunc(double delta...
35,800
https://github.com/turfmedia/github-watcher-web/blob/master/app/models/saved_result.rb
Github Open Source
Open Source
MIT
2,016
github-watcher-web
turfmedia
Ruby
Code
11
44
class SavedResult < ActiveRecord::Base belongs_to :project def reference repo_url.split('github.com/')[1] end end
36,568
https://github.com/aTiKhan/RDO.Net/blob/master/src/Data.WPF/Presenters/ValidationInfo.cs
Github Open Source
Open Source
MIT
2,021
RDO.Net
aTiKhan
C#
Code
236
638
using System.Collections; using System.Diagnostics; namespace DevZest.Data.Presenters { /// <summary> /// Represents the validation errors and status. /// </summary> public struct ValidationInfo { private sealed class DummyMessage : ValidationError { public static reado...
41,124
https://github.com/markusstephanides/Codemasters.F1_2020/blob/master/src/Enums/Track.cs
Github Open Source
Open Source
MIT
null
Codemasters.F1_2020
markusstephanides
C#
Code
93
230
using System; namespace Codemasters.F1_2020 { public enum Track { Melbourne = 0, PaulRicard = 1, Shanghai = 2, Sakhir = 3, //Bahrain Catalunya = 4, Monaco = 5, Montreal = 6, Silverstone = 7, Hockenheim = 8, Hungaroring = 9, ...
20,978
https://github.com/LucyWeltner/rails-cru-form_for-lab-online-web-ft-110419/blob/master/app/models/artist.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,020
rails-cru-form_for-lab-online-web-ft-110419
LucyWeltner
Ruby
Code
11
32
class Artist < ApplicationRecord has_many :songs has_many :genres, through: :songs end
25,908