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/rezhajulio/zeroclickinfo-spice/blob/master/t/RenegoJobSearch.t
Github Open Source
Open Source
Apache-2.0
2,016
zeroclickinfo-spice
rezhajulio
Perl
Code
191
990
#!/usr/bin/env perl use strict; use warnings; use Test::More; use DDG::Test::Spice; use DDG::Test::Location; use DDG::Request; ddg_spice_test( [qw(DDG::Spice::RenegoJobSearch)], DDG::Request->new( query_raw => "manager berlin job", location => test_location("de") ) => test_spice( ...
8,300
https://github.com/doveylovey/sharding-sphere-v3.1.0/blob/master/sharding-sphere-example/sharding-jdbc-example/my-test-sharding-jdbc/src/main/java/com/study/mapper/BookMapper.java
Github Open Source
Open Source
Apache-2.0
null
sharding-sphere-v3.1.0
doveylovey
Java
Code
18
67
package com.study.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.study.entity.Book; /** * @author Administrator */ public interface BookMapper extends BaseMapper<Book> { }
20,539
https://github.com/malhuda/PatAnimeTracker/blob/master/application/controllers/SeriesController.php
Github Open Source
Open Source
Unlicense
2,017
PatAnimeTracker
malhuda
PHP
Code
310
999
<?php class SeriesController extends Zend_Controller_Action { public function indexAction() { $dbseries = new Application_Model_DbTable_Series(); $this->view->myepisodes = $dbseries->getMyEpisodes($this->userid); } public function crfetchAction() { $dbseries = new Application_Model_DbTable_Series(); i...
27,827
https://github.com/xwu2git/Video-Curation-Sample/blob/master/video/segment.py
Github Open Source
Open Source
MIT
2,022
Video-Curation-Sample
xwu2git
Python
Code
79
492
#!/usr/bin/python3 from tornado import web, gen from tornado.concurrent import run_on_executor from concurrent.futures import ThreadPoolExecutor from urllib.parse import unquote from subprocess import call import os class SegmentHandler(web.RequestHandler): def __init__(self, app, request, **kwargs): supe...
32,272
https://github.com/ministryofjustice/bichard7-next-infrastructure-modules/blob/master/modules/monitoring_cluster_ecs/templates/grafana.json.tpl
Github Open Source
Open Source
MIT
2,021
bichard7-next-infrastructure-modules
ministryofjustice
null
Spoken
211
1,087
[ { "name": "grafana", "image": "${grafana_image}", "essential": true, "cpu": ${application_cpu}, "memory": ${application_memory}, "user": "root", "dependsOn": [ ], "mountPoints": [ ], "portMappings": [ { "containerPort": 3000, "hostPort": 3000, ...
29,937
https://github.com/HackathonNicaragua/v-controls/blob/master/Hackathon2017/app/listapacientes.php
Github Open Source
Open Source
MIT
2,017
v-controls
HackathonNicaragua
PHP
Code
39
166
<?php namespace App; use Illuminate\Database\Eloquent\Model; class listapacientes extends Model { protected $fillable = ['Numero_Expediente', 'Nombres', 'Apellidos', 'Numero_Cedula', 'Numero_Inss', 'Edad', 'Lugar_Nacimiento', 'Religion' , 'Etnias' , 'Escolaridad', 'Sexo', 'Profesion', 'Direccion_Habitual', 'No...
1,029
https://github.com/aaroncnu/GeomFmaps_pytorch/blob/master/geomfmaps/utils.py
Github Open Source
Open Source
MIT
2,020
GeomFmaps_pytorch
aaroncnu
Python
Code
155
493
# stdlib from pathlib import Path # 3p import numpy as np import torch def read_off(file): file = open(file, "r") if file.readline().strip() != "OFF": raise "Not a valid OFF header" n_verts, n_faces, n_dontknow = tuple([int(s) for s in file.readline().strip().split(" ")]) verts = [[float(s) f...
2,568
https://github.com/Ngugisenior/supergiant/blob/master/cmd/ui/assets/src/assets/css/_layout.scss
Github Open Source
Open Source
Apache-2.0
null
supergiant
Ngugisenior
SCSS
Code
569
2,244
/* Layout Rules ========== Layout rules divide the page into sections. Layouts hold one or more modules together. */ #container, #sidebar, #content { height: 100%; margin: 0; } #container { /*display: table;*/ /*position: absolute;*/ } #sidebar, #content { /*display: table-cell;*/ box-sizing: b...
25,657
https://github.com/WordPress/WordPress-Coding-Standards/blob/master/WordPress/Tests/DateTime/CurrentTimeTimestampUnitTest.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
WordPress-Coding-Standards
WordPress
PHP
Code
148
377
<?php /** * Unit test class for WordPress Coding Standard. * * @package WPCS\WordPressCodingStandards * @link https://github.com/WordPress/WordPress-Coding-Standards * @license https://opensource.org/licenses/MIT MIT */ namespace WordPressCS\WordPress\Tests\DateTime; use PHP_CodeSniffer\Tests\Standards\Abstr...
20,367
https://github.com/Arsalan-parallel-solution/tribe/blob/master/resources/views/layouts/admin-app.blade.php
Github Open Source
Open Source
MIT
null
tribe
Arsalan-parallel-solution
PHP
Code
328
1,678
<!-- - var menuBorder = true--> <!DOCTYPE html> <html class="loading" lang="en" data-textdirection="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scal...
4,900
https://github.com/weyus/radiant-sheets-extension/blob/master/spec/models/javascript_page_spec.rb
Github Open Source
Open Source
MIT
2,011
radiant-sheets-extension
weyus
Ruby
Code
262
744
require File.dirname(__FILE__) + '/../spec_helper' describe JavascriptPage do dataset :javascripts let(:javascript){ pages(:js) } let(:site_js){ pages(:site_js) } subject{ javascript } its(:cache?) { should be_true } its(:sheet?) { should be_true } its(:virtual?) { should be_true } its(:layout) { sh...
16,148
https://github.com/MayankTahil/nitro-ide/blob/master/nitro-python-1.0/sample/MyFirstNitroApplication.py
Github Open Source
Open Source
Python-2.0, Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,017
nitro-ide
MayankTahil
Python
Code
320
1,078
#!/usr/bin/env python # # Copyright (c) 2008-2015 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:#www.apache.org/licenses/LICENSE-2.0 # # Unless re...
33,027
https://github.com/quarkusio/quarkus/blob/master/extensions/flyway/deployment/src/main/java/io/quarkus/flyway/FlywayCallbacksLocator.java
Github Open Source
Open Source
Apache-2.0
2,023
quarkus
quarkusio
Java
Code
448
1,325
package io.quarkus.flyway; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Opti...
29,791
https://github.com/nokia/osgi-microfeatures/blob/master/com.alcatel.as.ioh.impl/src/com/alcatel/as/ioh/socks/SocksParser.java
Github Open Source
Open Source
Apache-2.0
null
osgi-microfeatures
nokia
Java
Code
888
2,503
// Copyright 2000-2021 Nokia // // Licensed under the Apache License 2.0 // SPDX-License-Identifier: Apache-2.0 // package com.alcatel.as.ioh.socks; import java.util.function.*; import java.net.*; import java.nio.*; import alcatel.tess.hometop.gateways.reactor.*; public class SocksParser { private TcpClientCont...
16,221
https://github.com/ThirdIInc/Third-I-Portal/blob/master/hrsaas/src/org/struts/action/recruitment/DomainMasterAction.java
Github Open Source
Open Source
Apache-2.0
2,016
Third-I-Portal
ThirdIInc
Java
Code
787
3,495
package org.struts.action.recruitment; import org.struts.lib.ParaActionSupport; import org.paradyne.bean.Recruitment.DomainMaster; import org.paradyne.model.recruitment.DomainMasterModel; /** * Date:05-01-2009 * @author Pradeep * modified by Prasad */ public class DomainMasterAction extends ParaActionSupport { ...
38,008
https://github.com/mjwallin1/wookiee-spray/blob/master/src/test/scala/com/webtrends/harness/component/spray/command/SprayCommandResponseSpec.scala
Github Open Source
Open Source
Apache-2.0
2,016
wookiee-spray
mjwallin1
Scala
Code
131
489
package com.webtrends.harness.component.spray.command import akka.testkit.TestActorRef import com.webtrends.harness.command.{BaseCommandResponse, CommandResponse, CommandBean} import com.webtrends.harness.component.spray.route.RouteManager import com.webtrends.harness.component.spray.routes.BaseTestCommand import org....
51,248
https://github.com/dustin-decker/wes/blob/master/tests/test_main.py
Github Open Source
Open Source
Apache-2.0
2,017
wes
dustin-decker
Python
Code
23
94
import pytest import os from wes.main import load_db, load_projects_csv import sqlalchemy def test_load_db(tmpdir): databaseUri = 'sqlite:///' + os.path.join(str(tmpdir), 'endpoints.sqlite') assert type(load_db(databaseUri)) is sqlalchemy.orm.session.sessionmaker
43,331
https://github.com/finboxio/resolve-mjs/blob/master/.npmrc
Github Open Source
Open Source
MIT
2,019
resolve-mjs
finboxio
null
Spoken
5
37
node-options="--experimental-modules --es-module-specifier-resolution=node --loader ${PWD}/index.mjs --no-warnings"
32,018
https://github.com/NoPrejudiceNTolerance/sitejj/blob/master/anciens/views/connexion.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-dco-1.1
2,017
sitejj
NoPrejudiceNTolerance
PHP
Code
116
694
<!DOCTYPE html> <html lang='fr'> <head> <title>Connexion</title> <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link type="text/css" rel="stylesheet" href="http://savu.axelbrouland.fr/assets/css/materialize.min.css"> <link type="text/css" rel="stylesheet" href="http:...
38,047
https://github.com/yupmin/phystrix/blob/master/library/Odesk/Phystrix/RequestLog.php
Github Open Source
Open Source
Apache-2.0
2,020
phystrix
yupmin
PHP
Code
483
1,409
<?php /** * This file is a part of the Phystrix library * * Copyright 2013-2014 oDesk Corporation. All Rights Reserved. * * This file is 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 *...
37,272
https://github.com/xypine/rps/blob/master/.import/favicon.png-090949abde8974d2ccf751cced4008e4.md5
Github Open Source
Open Source
MIT
2,020
rps
xypine
null
Spoken
2
54
source_md5="621a06ca8bb4347587d9e9d7cebea62c" dest_md5="325cd63d9fa38660dbc66f443a1f649e"
7,724
https://github.com/developers-hub-org/unity-http-polling-api/blob/master/src/control.php
Github Open Source
Open Source
MIT
2,022
unity-http-polling-api
developers-hub-org
PHP
Code
35
302
<?php define('COMPANY_NAME', 'Developers Hub'); define('COMPANY_LOGO', 'https://upload.wikimedia.org/wikipedia/commons/c/c4/Unity_2021.svg'); define('COMPANY_EMAIL', 'demo@company.com'); define('CLIENT_VERSION', '1.0'); define('FORCE_CLIENTS_TO_UPDATE', false); define('ALLOW_MULTIPLE_ONLINE_SESS...
26,036
https://github.com/voximplant/apiclient-dotnet/blob/master/apiclient/Response/ClonedAdminRoleType.cs
Github Open Source
Open Source
MIT
2,021
apiclient-dotnet
voximplant
C#
Code
61
166
using System; using System.Collections.Generic; using Newtonsoft.Json; namespace Voximplant.API.Response { /// <summary> /// The cloned admin role info. /// </summary> public class ClonedAdminRoleType { /// <summary> /// The admin role ID. /// </summary> [JsonProper...
48,506
https://github.com/hwpang/learn134k/blob/master/l134k/settings.py
Github Open Source
Open Source
MIT
2,018
learn134k
hwpang
Python
Code
73
284
#!/usr/bin/env python # -*- coding:utf-8 -*- # Tensor settings tensor_settings = { 'padding_final_size': 30, 'add_extra_atom_attribute': True, 'add_extra_bond_attribute': True, } # Model settings model_settings = { 'embedding_size': 512, 'depth': 3, 'scale_output': 0.05, 'padding': True, ...
17,278
https://github.com/indrajohn/armadaorient/blob/master/application/models/admin/ProductAdmin.php
Github Open Source
Open Source
MIT
null
armadaorient
indrajohn
PHP
Code
102
374
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class ProductAdmin extends CI_Model{ public function insertProduct($produk){ $this->db->set($produk); $this->db->insert('tbl_product'); } public function getProduct(){ $data = $this->db->query("SELECT p.*,k.name as...
15,656
https://github.com/stevenweaver/tn93/blob/master/src/argparse_trim.hpp
Github Open Source
Open Source
MIT
2,022
tn93
stevenweaver
C++
Code
142
390
#ifndef ARGPARSE_H #define ARGPARSE_H #include <cstdarg> // argument defaults #define PROGNAME "selectreads" #define DEFAULT_AMBIG gaponly #define DEFAULT_START 0L #define DEFAULT_END 0xFFFFFF #define DEFAULT_COVERAGE 0.95 #define DE...
31,162
https://github.com/Karim-mo/eventify/blob/master/frontend/src/actions/userReducerActions.js
Github Open Source
Open Source
MIT
2,021
eventify
Karim-mo
JavaScript
Code
793
2,813
import { USER_LOGIN_FAIL, USER_LOGIN_REQUEST, USER_LOGIN_RESET, USER_LOGIN_SUCCESS, USER_REGISTRATION_FAIL, USER_REGISTRATION_REQUEST, USER_REGISTRATION_SUCCESS, USER_CART_ADD_FAIL, USER_CART_ADD_SUCCESS, USER_CART_ADD_REQUEST, USER_CART_FAIL, USER_CART_REMOVE_FAIL, USER_CART_REMOVE_REQUEST, USER_CART_REM...
26,449
https://github.com/npocmaka/Windows-Server-2003/blob/master/admin/netid/state.cpp
Github Open Source
Open Source
Unlicense
2,021
Windows-Server-2003
npocmaka
C++
Code
4,889
13,832
// Copyright (c) 1997-1999 Microsoft Corporation // // Tab state // // 03-31-98 sburns // 10-05-00 jonn changed to CredUIGetPassword #include "headers.hxx" #include "state.hpp" #include "resource.h" #include "cred.hpp" TCHAR const c_szWizardFilename[] = L"netplwiz.dll"; class Settings { public: // ...
51,090
https://github.com/covering/bk-cmdb/blob/master/src/ui/src/utils/tools.js
Github Open Source
Open Source
Apache-2.0
2,019
bk-cmdb
covering
JavaScript
Code
1,219
3,673
import moment from 'moment' import GET_VALUE from 'get-value' /** * 拍平列表 * @param {Array} properties - 模型属性 * @param {Array} list - 模型实例列表 * @return {Array} 拍平后的模型实例列表 */ export function getFullName (names) { if (!names) return '' const userList = window.CMDB_USER_LIST || [] // set in setup/preload.js ...
42,049
https://github.com/smelukov/react-hot-loader/blob/master/examples/all-possible-containers/src/components/ErrorBoundary.js
Github Open Source
Open Source
MIT
2,019
react-hot-loader
smelukov
JavaScript
Code
76
250
// @flow import React from 'react' const ErrorBoundary = ({ error, errorInfo, }: { error: any, errorInfo: Object, }) => ( <div style={{ margin: '20px auto', padding: '10px', background: 'white', border: '1px solid #555', borderRadius: '5px', width: '80%', }} > ...
32,199
https://github.com/craftingcode/php-beanstalk/blob/master/lib/Beanstalk/Command/Reserve.php
Github Open Source
Open Source
MIT
null
php-beanstalk
craftingcode
PHP
Code
418
842
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ namespace Beanstalk\Command; use Beanstalk\Command; use Beanstalk\Connection; use Beanstalk\Exception; use Beanstalk\Job; /** * Reserve command * * This will return a newly-reserved job. If no job is available to be reserved, * beanstalkd will ...
389
https://github.com/nhunght/mork_SmartOSC/blob/master/app/Http/Controllers/ProductController.php
Github Open Source
Open Source
MIT
null
mork_SmartOSC
nhunght
PHP
Code
368
1,245
<?php namespace App\Http\Controllers; use App\Http\Requests; use App\Http\Requests\ProductRequest; use App\Product; use App\category; use App\Color; use App\Size; use App\MapColor; use App\MapSize; use App\Image; use File; use Input; use Request; use DB; use App\Http\Controllers\Controller; use Illuminate\Support\Faca...
21,877
https://github.com/eCollobro/eCollabro/blob/master/eCollabro.Web/app/controllers/workflow/userTasksDashboardWidget.js
Github Open Source
Open Source
Apache-2.0
2,015
eCollabro
eCollobro
JavaScript
Code
76
294
//UserTasksController for Angular ecollabroApp.controller('userTasksDashboardWidgetController',['$scope', 'workflowService', function ($scope, workflowService) { $scope.userTasks = []; $scope.caption = "glyphicon glyphicon-chevron-down"; //Method initialize() $scope.initialize = function () { $...
36,149
https://github.com/YRXING/envoyingresscontroller/blob/master/vendor/github.com/go-chassis/go-chassis/third_party/forked/afex/hystrix-go/hystrix/reporter.go
Github Open Source
Open Source
MIT, ISC, Apache-2.0, BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,021
envoyingresscontroller
YRXING
Go
Code
150
385
package hystrix import ( "errors" "github.com/go-mesh/openlogging" "time" ) //Reporter receive a circuit breaker Metrics and sink it to monitoring system type Reporter func(cb *CircuitBreaker) error //ErrDuplicated means you can not install reporter with same name var ErrDuplicated = errors.New("duplicated report...
4,793
https://github.com/CU-Production/FlyCube-Demos/blob/master/3rdparty/FlyCube/src/Core/Fence/DXFence.cpp
Github Open Source
Open Source
MIT
2,022
FlyCube-Demos
CU-Production
C++
Code
63
369
#include "Fence/DXFence.h" #include <Device/DXDevice.h> #include <Utilities/DXUtility.h> #include <Utilities/FileUtility.h> #include <dxgi1_6.h> #include <directx/d3d12.h> DXFence::DXFence(DXDevice& device, uint64_t initial_value) : m_device(device) { ASSERT_SUCCEEDED(device.GetDevice()->CreateFence(initial_va...
51,227
https://github.com/matiasdesouza/webdev-tabalho-js/blob/master/views/beers/show.jade
Github Open Source
Open Source
MIT
null
webdev-tabalho-js
matiasdesouza
null
Spoken
46
416
div.col-sm-9.col-sm-offset-3 h3 <b>Dados da cerveja</b> form.form-horizontal.form(id="form-beer-visualizacao") div.form-group label.control-label.col-sm-1 Nome div.col-sm-10.col-lg-6 input.form-control(type='text', readonly='true', data-ng-model='beer.name') div.form-group label.control-label.co...
13,352
https://github.com/allthings-vip/iot-platform/blob/master/dos/dos-imp/src/main/java/allthings/iot/dos/dao/impl/IotDevicePassQueryDaoImpl.java
Github Open Source
Open Source
Apache-2.0
2,020
iot-platform
allthings-vip
Java
Code
80
346
package allthings.iot.dos.dao.impl; import allthings.iot.dos.dao.IotDevicePassQueryDao; import org.hibernate.Query; import org.hibernate.SQLQuery; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import javax.persistence.EntityManager; /** * @author ty...
28,952
https://github.com/google/closure-compiler/blob/master/contrib/externs/silverlight.js
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause, LicenseRef-scancode-generic-cla, GPL-1.0-or-later, MIT, CPL-1.0, NPL-1.1, MPL-1.1
2,023
closure-compiler
google
JavaScript
Code
236
1,136
/* * Copyright 2010 The Closure Compiler Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
745
https://github.com/JBannwarth/vrpn_logger/blob/master/tracked_object.hpp
Github Open Source
Open Source
MIT
null
vrpn_logger
JBannwarth
C++
Code
318
807
/* The MIT License (MIT) Copyright (c) 2015 Jérémie Bannwarth Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, me...
48,021
https://github.com/SpeksForks/dacast-api-php/blob/master/examples/channel/modify.php
Github Open Source
Open Source
MIT
2,019
dacast-api-php
SpeksForks
PHP
Code
29
95
<?php $api = new \Dacast\Api('YOUR_APIKEY'); $data = [ 'id' => 'SET_OWN_CHANNEL_ID', 'title' => 'New channel', 'description' => 'description of my new channel, it\'s awesome' ]; $channel = $api->live->modify($data); var_dump($channel);
9,638
https://github.com/katydid/katydid/blob/master/parser/proto/packed_test.go
Github Open Source
Open Source
Apache-2.0
2,022
katydid
katydid
Go
Code
393
1,318
// Copyright 2017 Walter Schulze // // 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...
36,658
https://github.com/smirnov-coder/skills-test-3/blob/master/src/WebUI/Helpers/JwtHelper.cs
Github Open Source
Open Source
MIT
null
skills-test-3
smirnov-coder
C#
Code
154
517
using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; using System.Text; using Microsoft.AspNetCore.Identity; using Microsoft.IdentityModel.Tokens; namespace WebUI.Helpers { /// <inheritdoc cref="IJwtHelper"/> public class JwtHel...
37,749
https://github.com/ctubbsii/accumulo/blob/master/core/src/main/java/org/apache/accumulo/core/iterators/user/LargeRowFilter.java
Github Open Source
Open Source
MIT, GPL-2.0-only, Apache-2.0
2,023
accumulo
ctubbsii
Java
Code
983
2,769
/* * 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 ...
49,898
https://github.com/CraftTweaker/CraftTweaker/blob/master/Common/src/main/java/com/blamejared/crafttweaker/api/bracket/CommandStringDisplayable.java
Github Open Source
Open Source
MIT
2,023
CraftTweaker
CraftTweaker
Java
Code
57
276
package com.blamejared.crafttweaker.api.bracket; import com.blamejared.crafttweaker.api.CraftTweakerConstants; import com.blamejared.crafttweaker.api.annotation.ZenRegister; import com.blamejared.crafttweaker_annotations.annotations.Document; import org.openzen.zencode.java.ZenCodeType; /** * This is a helper interf...
31,495
https://github.com/sdminonne/cert-policy-controller/blob/master/Makefile
Github Open Source
Open Source
Apache-2.0
2,021
cert-policy-controller
sdminonne
Makefile
Code
570
2,239
# IBM Confidential # OCO Source Materials # # (C) Copyright IBM Corporation 2018 All Rights Reserved # The source code for this program is not published or otherwise divested of its trade secrets, irrespective of what has been deposited with the U.S. Copyright Office. # Copyright (c) 2020 Red Hat, Inc. # Copyright Cont...
13,293
https://github.com/Derek316x/unit-3-final-project/blob/master/MagnetDrawDemo/CollectionView/GameViewController.h
Github Open Source
Open Source
MIT
2,015
unit-3-final-project
Derek316x
Objective-C
Code
36
139
// // GameViewController.h // Santa // // Copyright (c) 2015 Xiulan Shi. All rights reserved. // #import <UIKit/UIKit.h> #import <SpriteKit/SpriteKit.h> #import <AVFoundation/AVFoundation.h> #import "ThreeFingerDismissViewController.h" @interface GameViewController : ThreeFingerDismissViewController @property (...
20,707
https://github.com/fossabot/octosql/blob/master/execution/test_utils.go
Github Open Source
Open Source
MIT
null
octosql
fossabot
Go
Code
1,895
5,692
package execution import ( "context" "fmt" "log" "sort" "strconv" "strings" "testing" "github.com/pkg/errors" "github.com/cube2222/octosql" "github.com/cube2222/octosql/storage" ) type recordMultiSet struct { set []*Record count []int equalityFunc RecordEqualityFunc } func newMultiSet(...
17,415
https://github.com/GabrielBCarvalho/Evolutionary-Algorithm-Car/blob/master/Assets/Standard Assets/Vehicles/Car/Scripts/CarUserControl.cs
Github Open Source
Open Source
MIT
null
Evolutionary-Algorithm-Car
GabrielBCarvalho
C#
Code
708
2,414
using System; using UnityEngine; using UnityStandardAssets.CrossPlatformInput; using System.Collections; using System.Collections.Generic; using Random = UnityEngine.Random; namespace UnityStandardAssets.Vehicles.Car { [RequireComponent(typeof (CarController))] public class CarUserControl : MonoBehaviour ...
32,066
https://github.com/Its4me/choiser-front/blob/master/src/app/login/enter-right-login/enter-right-login.component.scss
Github Open Source
Open Source
MIT
2,019
choiser-front
Its4me
SCSS
Code
40
146
@import '../../var.scss'; .form-input{ width: 100%; } h2{ font-size: 3em; font-weight: bold; } .text{ margin: 1em 0; a{ color: $primary-t; } } .form-btn{ float: right; padding: 0 3em; } .form-forgot{ float: right; color: $primary-t; } .form-menu{ float: left; ma...
48,315
https://github.com/terjnh/energy-monitor-app/blob/master/page-components/Summary/index.jsx
Github Open Source
Open Source
MIT
null
energy-monitor-app
terjnh
null
Spoken
36
86
import { Spacer } from '@/components/Layout'; import styles from './Chart.module.css'; import { Chart } from './Chart'; export const Summary = () => { return ( <div className={styles.root}> <Spacer size={1} axis="vertical" /> <Chart /> </div> ) };
29,200
https://github.com/openlastchaos/lastchaos-source-client/blob/master/Common/Packet/ptype_old_do_action.h
Github Open Source
Open Source
Apache-2.0
2,022
lastchaos-source-client
openlastchaos
C
Code
90
314
#ifndef __PTYPE_OLD_DO_ACTION_H__ #define __PTYPE_OLD_DO_ACTION_H__ #include "ptype_base.h" #pragma pack(push, 1) ////////////////////////////////////////////////////////////////////////// namespace RequestClient { struct action : public pTypeBase { int targetIndex; char typevalue; char index; }; } namesp...
27,349
https://github.com/michaldivis/DarkHelpers/blob/master/DarkHelpers/Collections/NullDarkObservableCollectionSynchronizer.cs
Github Open Source
Open Source
MIT
null
DarkHelpers
michaldivis
C#
Code
28
97
using System; namespace DarkHelpers.Collections { internal class NullDarkObservableCollectionSynchronizer : IDarkObservableCollectionSynchronizer { public void EnableSynchronization(IDarkObservableCollection collection) { //do nothing } public void HandleAction(Act...
15,920
https://github.com/n-nakasato/SequenceMaker/blob/master/sequencemaker/Gui/USeqRecordType.cs
Github Open Source
Open Source
MIT
null
SequenceMaker
n-nakasato
C#
Code
376
1,524
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using SEQ_GEN.Settings; namespace SEQ_GEN.Gui { public partial class USeqRecordType : UserControl { public USeqRecordT...
35,304
https://github.com/Oyekunle-Mark/wailing-network/blob/master/route_main.go
Github Open Source
Open Source
MIT
null
wailing-network
Oyekunle-Mark
Go
Code
99
306
package main import ( "net/http" "github.com/Oyekunle-Mark/wailing-network/data" ) // GET /err?msg= // shows the error message page func err(writer http.ResponseWriter, request *http.Request) { vals := request.URL.Query() _, err := session(writer, request) if err != nil { generateHTML(writer, vals.Get("msg")...
22,798
https://github.com/JiuKim04/J-Drive/blob/master/BoardConfig/board_config.h
Github Open Source
Open Source
MIT
2,021
J-Drive
JiuKim04
C
Code
56
299
#ifndef BOARD_CONFIG_H_ #define BOARD_CONFIG_H_ #define HW_VER_MAJOR 1 #define HW_VER_MINOR 0 #define FW_VER_MAJOR 1 #define FW_VER_MINOR 0 #define MODEL_NUMBER 54025 #define ONBOARD_TEMP_COEFF 299e-4f #define DC_VOLTAGE_COEFF 756e-5f #define DELTA_T 0.000044425f #define SUPPLY_PROTECTION 2.0f #define FAST_MATH_...
31,315
https://github.com/Runalyze/glossary/blob/master/Resources/views/topics/monotony.html.twig
Github Open Source
Open Source
MIT
2,019
glossary
Runalyze
Twig
Code
187
464
{% extends "GlossaryBundle::_base.html.twig" %} {% import 'GlossaryBundle::_macro/references.html.twig' as ref %} {% import 'GlossaryBundle::_macro/see_also.html.twig' as see %} {% block glossaryHeader %} {% trans %}Monotony{% endtrans %} {% endblock %} {% block glossaryContent %} <p class="text"> {%...
9,604
https://github.com/KiameV/final-fantasy-vi-save-editor/blob/master/io/internal.go
Github Open Source
Open Source
MIT
2,022
final-fantasy-vi-save-editor
KiameV
Go
Code
157
609
package io import ( "ffvi_editor/global" "github.com/ncruces/zenity" ) func createDialog(fileType global.SaveFileType) (dir string, err error) { var ( title string filter zenity.FileFilters ) dir = GetConfig().SaveDir if dir == "" { dir = "." } switch fileType { /*case offsets.Snes9xSaveState15, offse...
15,332
https://github.com/kinigre/Marionette/blob/master/Marionette/Library/PackageCache/com.unity.render-pipelines.lightweight@6.9.1/Editor/2D/ShapeEditor/Selection/ISelection.cs
Github Open Source
Open Source
MIT
2,022
Marionette
kinigre
C#
Code
43
116
using System.Collections.Generic; namespace UnityEditor.Experimental.Rendering.LWRP.Path2D { internal interface ISelection<T> { int Count { get; } T activeElement { get; set; } T[] elements { get; set; } void Clear(); void BeginSelection(); void EndSelection(bool...
21,177
https://github.com/bitller/nova-manager/blob/master/app/Http/Controllers/Dashboard/Settings/CreditCardController.php
Github Open Source
Open Source
MIT
null
nova-manager
bitller
PHP
Code
40
125
<?php namespace App\Http\Controllers\Dashboard\Settings; use App\Http\Controllers\BaseController; /** * Allow user to manage credit card. * * @author Alexandru Bugarin <alexandru.bugarin@gmail.com> */ class CreditCardController extends BaseController { /** * Render credit card view. */ public ...
22,881
https://github.com/zach/dragonfly/blob/master/lib/dragonfly.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,010
dragonfly
zach
Ruby
Code
163
629
# AUTOLOAD EVERYTHING IN THE IMAGETASTIC DIRECTORY TREE # The convention is that dirs are modules # so declare them here and autoload any modules/classes inside them # All paths here are absolute def camelize(path) # e.g. 'test/this_one' => Test::ThisOne "#{path}". chomp('/'). gsub('/','::'). gsub(/([^...
29,980
https://github.com/chamodck/autopart.lk/blob/master/application/controllers/LanguageController.php
Github Open Source
Open Source
MIT
null
autopart.lk
chamodck
PHP
Code
29
205
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class LanguageController extends CI_Controller { public function changeLanguage($lan){ $this->load->helper('cookie'); if($lan=='Sinhala'){ $cookie=array('name'=>'language','value'=>'Sinhala','expire'=>time()+50400,'path'=>'/'); }else if($l...
32,979
https://github.com/mattonem/pharo-launcher/blob/master/src/PharoLauncher-Spec.package/PhLDeploymentScript.class/class/activateDeprecationWarnings.st
Github Open Source
Open Source
MIT
null
pharo-launcher
mattonem
null
Spoken
5
18
actions activateDeprecationWarnings Deprecation raiseWarning: true
44,174
https://github.com/Poobslag/turbofat/blob/master/.gitignore
Github Open Source
Open Source
MIT, CC-BY-NC-4.0, CC-BY-4.0
2,023
turbofat
Poobslag
Ignore List
Code
39
127
!.gitkeep # Exported artifacts: .zip, .pck project/export_presets.cfg project/export # Godot-specific ignores project/.import/ project/logs/ # Imported translations (automatically generated from CSV files) project/*.translation # Mono-specific ignores project/.mono/ project/data_*/ # IntelliJ-specific ignores .ide...
13,663
https://github.com/amritaravishankar/ML-Model-CI/blob/master/modelci/hub/converter/converter.py
Github Open Source
Open Source
Apache-2.0
null
ML-Model-CI
amritaravishankar
Python
Code
187
512
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Copyright (c) NTU_CAP 2021. 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/LIC...
45,103
https://github.com/marmysh/FDK/blob/master/FDK/SoftFX.Internal.Net/Codecs/FixCodec.cs
Github Open Source
Open Source
MIT
2,016
FDK
marmysh
C#
Code
18
58
namespace SoftFX.Internal.Codecs { public class FixCodec : Codec { public FixCodec() : base(new FixCodecProxyAdapter()) { } } }
45,949
https://github.com/XYGDeveloper/FreelyHealth_User/blob/master/FreelyHeath/Net/ResultApi.h
Github Open Source
Open Source
MIT
2,019
FreelyHealth_User
XYGDeveloper
Objective-C
Code
33
116
// // ResultApi.h // FreelyHeath // // Created by L on 2017/8/9. // Copyright © 2017年 深圳乐易住智能科技股份有限公司. All rights reserved. // #import "BaseApi.h" @class ResultModel; @interface ResultApi : BaseApi - (void)getmyfile:(NSMutableDictionary *)detail; @end
41,377
https://github.com/kapelner/QC_Math_369_Fall_2020/blob/master/demos/aic.R
Github Open Source
Open Source
MIT
2,020
QC_Math_369_Fall_2020
kapelner
R
Code
530
1,777
pacman::p_load(fitdistrplus, nimble, VaRES, data.table) plogistic = function(q, mu, sigma){VaRES::plogistic(q, mu, sigma)} set.seed(2) #Look at how much impact the AIC idea has had on science: #https://scholar.google.com/scholar?hl=en&as_sdt=0%2C39&q=A+new+look+at+the+statistical+model+identification&btnG= n = 50 x =...
49,602
https://github.com/intrigus/CN1WindowsPort/blob/master/src/gnu/xml/stream/XMLParser_ContentModel.cs
Github Open Source
Open Source
MIT
2,016
CN1WindowsPort
intrigus
C#
Code
134
635
// Automatically generated by xmlvm2csharp (do not edit). using org.xmlvm; namespace gnu.xml.stream { public abstract class XMLParser_2ContentModel: global::java.lang.Object { public static int _fEMPTY = 0; public static int _fANY = 1; public static int _fELEMENT = 2; public static int _fMIXED = 3; public int _fmi...
49,751
https://github.com/gsshch/Circular/blob/master/C++/Moving/testCircBuf.cpp
Github Open Source
Open Source
BSD-3-Clause
2,021
Circular
gsshch
C++
Code
1,776
6,688
// +--------------------------+ // | | // | Copyright (c) 2019 | // | Keith Cullen | // | | // +--------------------------+ #include "CircBuf.h" #include <gtest/gtest.h> #include <array> #include <thread> #include <utility> using namespace Circular::...
8,943
https://github.com/kstro96/GestorHospital/blob/master/GestorHospital/admin/admin.php
Github Open Source
Open Source
MIT
null
GestorHospital
kstro96
PHP
Code
57
357
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Medic first page</title> </head> <body> <tbody> <?php echo "<h1>Bienvenido administrador</h1>"; include_once dirname(__FILE__) . '/../co...
2,817
https://github.com/SAG-members/spaceage_guru/blob/master/application/logs/log-2017-11-01.php
Github Open Source
Open Source
MIT
null
spaceage_guru
SAG-members
PHP
Code
20,000
45,109
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> INFO - 2017-11-01 10:17:04 --> Config Class Initialized INFO - 2017-11-01 10:17:04 --> Hooks Class Initialized DEBUG - 2017-11-01 10:17:04 --> UTF-8 Support Enabled INFO - 2017-11-01 10:17:04 --> Utf8 Class Initialized INFO - 2017-11-01 10:17:04 -...
34,355
https://github.com/waikato-datamining/wai-spectralio/blob/master/src/wai/spectralio/serialisation/error/_ensure_errors.py
Github Open Source
Open Source
MIT
2,020
wai-spectralio
waikato-datamining
Python
Code
65
179
from functools import wraps from ._SerialisationError import SerialisationError def ensure_errors(function): """ Decorator which makes sure that any exceptions raised by the function are of the SerialisationError type or a sub-type. :param function: The function to decorate. :return: ...
12,586
https://github.com/jgolek/java-vis/blob/master/server/src/test/java/server/TestYaml.java
Github Open Source
Open Source
Apache-2.0
null
java-vis
jgolek
Java
Code
50
201
package server; import static org.junit.Assert.*; import org.junit.Test; import org.yaml.snakeyaml.DumperOptions; import org.yaml.snakeyaml.DumperOptions.ScalarStyle; import org.yaml.snakeyaml.Yaml; public class TestYaml { @Test public void testName() throws Exception { DumperOptions ops = new DumperOptions(...
18,651
https://github.com/atanana/chgk-duel/blob/master/webpack/test/results/resultsPresenter.js
Github Open Source
Open Source
MIT
null
chgk-duel
atanana
JavaScript
Code
277
1,135
const jsdom = require('mocha-jsdom'); const sinon = require('sinon'); const chai = require('chai'); const should = chai.should(); describe('resultsPresenter.js', function () { jsdom(); describe('socket interaction', function () { let socket; let resultsView; let resultsPresenter; ...
24,462
https://github.com/ayjazz/OESS/blob/master/nox/src/nox/netapps/tests/tests.cc
Github Open Source
Open Source
Apache-2.0
2,021
OESS
ayjazz
C++
Code
1,142
3,989
/* Copyright 2008 (C) Nicira, Inc. * * This file is part of NOX. * * NOX is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * N...
13,006
https://github.com/pwall567/javautil/blob/master/src/main/java/net/pwall/util/UserError.java
Github Open Source
Open Source
MIT
2,015
javautil
pwall567
Java
Code
529
948
/* * @(#) UserError.java * * javautil Java Utility Library * Copyright (c) 2013, 2014 Peter Wall * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including witho...
49,310
https://github.com/oirik/wcc/blob/master/main.go
Github Open Source
Open Source
Apache-2.0
null
wcc
oirik
Go
Code
740
2,265
package main import ( "bytes" "encoding/json" "flag" "fmt" "net/http" "os" "strconv" "strings" "sync" "time" "github.com/pkg/errors" "crypto/md5" "github.com/PuerkitoBio/goquery" "github.com/oirik/gosubcommand" ) var ( version string revision string ) const maxCheckCount = 5 func main() { gosub...
14,813
https://github.com/ethankhall/toolup/blob/master/src/bin/toolup-shim.rs
Github Open Source
Open Source
BSD-3-Clause
2,022
toolup
ethankhall
Rust
Code
79
287
use anyhow::Result as AnyResult; use std::env; use std::path::Path; use toolup::prelude::{exec, get_current_state, GlobalFolders}; #[tokio::main] async fn main() -> AnyResult<()> { dotenv::dotenv().ok(); human_panic::setup_panic!(); let global_folder = GlobalFolders::shim_from_env(); let mut args = Ve...
2,946
https://github.com/samxchan1021/vendure/blob/master/packages/admin-ui/src/lib/core/src/common/version.ts
Github Open Source
Open Source
MIT
null
vendure
samxchan1021
TypeScript
Code
11
32
// Auto-generated by the set-version.js script. export const ADMIN_UI_VERSION = '0.13.0';
43,933
https://github.com/muchirijohn/AVR-Examples/blob/master/seven_segment/seven_segment_basic/seven_segment_basic.c
Github Open Source
Open Source
Apache-2.0
null
AVR-Examples
muchirijohn
C
Code
138
480
/* * seven_segment_basic_drive.c * * Created: 8/8/2014 20:24:45 * Author: Muchiri john * License GPL */ #ifndef F_CPU #define F_CPU 8000000ul #endif #include <avr/io.h> #include <stdint.h> #include <util/delay.h> /* * initialize port registers */ static inline void init_segment() { DDRD = 0xFF; PORTD = 0x00; } uin...
18,638
https://github.com/YomZsamora/GitSearch/blob/master/src/app/repository.ts
Github Open Source
Open Source
Unlicense
2,022
GitSearch
YomZsamora
TypeScript
Code
52
113
export class Repository { // Our Repository object in this case will need the properties name, full_name, description, updated_at, html_url, clone_url, language and created_at to instantiate our Repository object. constructor(public name: string, public full_name: string, public description: string, public updated_a...
16,129
https://github.com/PacktPublishing/Data-Visualization--Representing-Information-on-Modern-Web/blob/master/Module 3/Chapter04/src/chapter1.js
Github Open Source
Open Source
MIT
2,022
Data-Visualization--Representing-Information-on-Modern-Web
PacktPublishing
JavaScript
Code
36
145
import {BasicBarChart} from './basic-bar-chart'; let data = require('./data/chapter1.json'); // Data from UNHCR, 2015.11.01: http://data.unhcr.org/api/population/regional.json let totalNumbers = data.filter((obj) => {return obj.population.length; }) .map((obj) => { return { name: obj.name, populatio...
1,822
https://github.com/harryworld/XVim2/blob/master/XVim2/XcodeHeader/IDEKit/IDETestReportSelectionDocumentLocation.h
Github Open Source
Open Source
MIT
2,019
XVim2
harryworld
Objective-C
Code
132
571
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Mar 30 2018 09:30:25). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import <DVTFoundation/DVTDocumentLocation.h> @class IDETest, NSString; @protocol IDETestReport_Test, IDETestReport_TestActivity, IDET...
26,777
https://github.com/TencentCloud/tencentcloud-sdk-cpp/blob/master/youmall/src/v20180228/model/DescribeFaceIdByTempIdResponse.cpp
Github Open Source
Open Source
Apache-2.0
2,023
tencentcloud-sdk-cpp
TencentCloud
C++
Code
613
2,927
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
23,545
https://github.com/bluegaspode/ickstream-java-common/blob/master/ickprotocol/core/src/main/java/com/ickstream/protocol/service/core/AddDeviceWithHardwareIdRequest.java
Github Open Source
Open Source
BSD-3-Clause
2,015
ickstream-java-common
bluegaspode
Java
Code
324
605
/* * Copyright (c) 2013-2014, ickStream GmbH * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list ...
10,815
https://github.com/google/google-ctf/blob/master/third_party/tomcrypt/src/ciphers/kseed.c
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, Apache-2.0
2,023
google-ctf
google
C
Code
925
12,170
/* LibTomCrypt, modular cryptographic library -- Tom St Denis * * LibTomCrypt is a library that provides various cryptographic * algorithms in a highly modular and flexible manner. * * The library is free for all purposes without any express * guarantee it works. */ /** @file kseed.c seed implementation of ...
33,046
https://github.com/zeknox/warvox/blob/master/test/unit/helpers/dial_jobs_helper_test.rb
Github Open Source
Open Source
BSD-3-Clause
2,015
warvox
zeknox
Ruby
Code
7
23
require 'test_helper' class DialJobsHelperTest < ActionView::TestCase end
22,726
https://github.com/cwcrypto/SSH.NET/blob/master/src/Renci.SshNet.Tests/Classes/Channels/ChannelDirectTcpipTest_Dispose_SessionIsConnectedAndChannelIsOpen.cs
Github Open Source
Open Source
MIT
2,022
SSH.NET
cwcrypto
C#
Code
528
2,284
using System; using System.Globalization; using System.Net; using System.Net.Sockets; using System.Threading; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; #if !FEATURE_SOCKET_DISPOSE using Renci.SshNet.Common; #endif // !FEATURE_SOCKET_DISPOSE using Renci.SshNet.Channels; using Renci.SshNet.Messages....
3,101
https://github.com/kubeflow/mxnet-operator/blob/master/pkg/controller.v1/mxnet/job_test.go
Github Open Source
Open Source
Apache-2.0
2,021
mxnet-operator
kubeflow
Go
Code
340
1,182
// Copyright 2018 The Kubeflow Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
31,137
https://github.com/LizAlfonso/lawyersoft/blob/master/resources/views/usuario/edit.blade.php
Github Open Source
Open Source
MIT
2,016
lawyersoft
LizAlfonso
Blade
Code
42
280
@extends('layouts.headerFooter') @section('content') {!!Form::model($user,['route'=> ['usuario.update',$user->id],'method'=>'PUT'])!!} <div class="container" > <div class="banner-data col-md-8"> <div class=" text-center "> <h1>Modificar Usuario</h1> </div> <br> @include('usuario.forms.use...
4,592
https://github.com/polinchw/celerio-angular-quickstart/blob/master/quickstart/src/main/generated-java/com/bpe/monitor/validation/impl/FixedLengthValidator.java
Github Open Source
Open Source
Apache-2.0
2,017
celerio-angular-quickstart
polinchw
Java
Code
70
231
/* * * Source code generated by Celerio, an Open Source code generator by Jaxio. * Template pack-angular:src/main/java/validation/impl/FixedLengthValidator.p.vm.java */ package com.bpe.monitor.validation.impl; import static org.apache.commons.lang.StringUtils.isEmpty; import javax.validation.ConstraintValidator;...
15,501
https://github.com/Workday/escalar/blob/master/src/main/scala/com/workday/esclient/EsIndexingMeta.scala
Github Open Source
Open Source
MIT
2,017
escalar
Workday
Scala
Code
510
1,336
/* * Copyright 2017 Workday, Inc. * * This software is available under the MIT license. * Please see the LICENSE.txt file in this project. */ package com.workday.esclient import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.google.common.annotations.VisibleForTesting import io.searchbox.indice...
51,131
https://github.com/MrNegativeTW/JustSendIt/blob/master/project/views/manualError.py
Github Open Source
Open Source
MIT
null
JustSendIt
MrNegativeTW
Python
Code
33
129
from flask import Blueprint, render_template, session, redirect, url_for, \ request, flash, g, jsonify, abort, send_file mod = Blueprint('manualError', __name__) @mod.route('/404', methods=['GET']) def manual_not_found(): return render_template('error.html', errorCode=404) @mod.route('/500', methods=['GET']...
41,200
https://github.com/muxiaobai/springboot-demo/blob/master/test-java-demo/src/main/java/io/github/muxiaobai/java/java/memoryTest/gcTest.java
Github Open Source
Open Source
Apache-2.0
2,020
springboot-demo
muxiaobai
Java
Code
45
184
package io.github.muxiaobai.java.java.memoryTest; public class gcTest { private static final int _1MB=1024*1024; public gcTest() { // TODO Auto-generated constructor stub } public static void main(String[] args) { // TODO Auto-generated method stub @SuppressWarnings("unused") byte[] allocation1,allocation2,...
48,160
https://github.com/lpi/codeforces-go/blob/master/main/1200-1299/1255C.go
Github Open Source
Open Source
MIT
2,022
codeforces-go
lpi
Go
Code
317
926
package main import ( "bufio" . "fmt" "io" ) // github.com/EndlessCheng/codeforces-go func Sol1255C(reader io.Reader, writer io.Writer) { in := bufio.NewReader(reader) out := bufio.NewWriter(writer) defer out.Flush() orderP3 := [6][3]int{{0, 1, 2}, {0, 2, 1}, {1, 0, 2}, {1, 2, 0}, {2, 0, 1}, {2, 1, 0}} var n...
30,990
https://github.com/brmayes/dailygraphics-kit/blob/master/graphic_templates/ai2html_graphic/js/graphic.js
Github Open Source
Open Source
MIT
null
dailygraphics-kit
brmayes
JavaScript
Code
202
604
// Global vars var pymChild = null; var isMobile = false; /* * Initialize the graphic. */ var onWindowLoaded = function() { pymChild = new pym.Child({}); //artboardResizer(); } /* * Hide/show artboards based on min/max width. * Use if you have weird sizes and the CSS is too cumbersome to edit. */ var ar...
15,287
https://github.com/matheusfrancisco/computer-engineering-at-UFSC/blob/master/6th Semester/Data comunication/Trabalho Comunicacao de Dados/Concluido enviado!! Sucesso/Prova3/bsp.m
Github Open Source
Open Source
MIT
2,019
computer-engineering-at-UFSC
matheusfrancisco
MATLAB
Code
27
175
load('ber0.mat'); load('ebno0.mat'); SNR=0:1:18; for n=1:length(SNR) data= randi([0 1],1,100); modS = pskmod(data,2); %scatterplot(bpskModulator,10) y= awgn(modS,SNR(n)); demoS = pskdemod(y,2); [ne(n),ratio(n)]= biterr(data,demoS); %err = comm.ErrorRate; %ber = err(data,demoS); end %semi...
34,326
https://github.com/cayduateam/bds/blob/master/resources/views/dashboard/product/edit.blade.php
Github Open Source
Open Source
MIT
null
bds
cayduateam
PHP
Code
5
50
@extends('dashboard.category.add') @section('category.name',$category->name) @section('edit_method') {{method_field('put')}} @endsection
14,759
https://github.com/mP1/walkingkooka-spreadsheet/blob/master/src/main/java/walkingkooka/spreadsheet/meta/SpreadsheetMetadataPropertyNameSpreadsheetDateParsePatterns.java
Github Open Source
Open Source
Apache-2.0
2,020
walkingkooka-spreadsheet
mP1
Java
Code
199
601
/* * Copyright 2019 Miroslav Pokorny (github.com/mP1) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
9,186
https://github.com/walsh9/lazy-cards/blob/master/app/styles/app.scss
Github Open Source
Open Source
MIT
2,017
lazy-cards
walsh9
SCSS
Code
37
123
// foundation @import 'normalize'; @import 'colors'; @import 'base'; @import 'mixins'; @import 'modal'; @import 'fonts'; // component classes @import 'menus'; @import 'simplemenu'; @import 'card'; @import 'text'; @import 'fancytext'; @import 'graphic'; @import 'borderselector'; @import 'borders'; @import 'emojiselecto...
116