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/duarterafael/Conformitate/blob/master/MainProject/use-4.0.0-323/src/gui/org/tzi/use/gui/views/diagrams/waypoints/QualifierWayPoint.java
Github Open Source
Open Source
Apache-2.0
null
Conformitate
duarterafael
Java
Code
665
2,083
/* * USE - UML based specification environment * Copyright (C) 1999-2013 Mark Richters, University of Bremen * * This program 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 2 of the * Li...
48,877
https://github.com/abhishekjoshigamerz/LwcLaravelProject/blob/master/app/TalkingComicsModel/TalkingComicsModel.php
Github Open Source
Open Source
MIT
null
LwcLaravelProject
abhishekjoshigamerz
PHP
Code
21
133
<?php namespace App\TalkingComicsModel; use Illuminate\Database\Eloquent\Model; class TalkingComicsModel extends Model { protected $table="talking_comics_models"; protected $primarykey = "talking_comics_models_id"; protected $fillable = ['talkcomics_name','talkcomics_class_url','talkcomics_subject_url'...
23,333
https://github.com/Stillat/vscode-antlers-language-server/blob/master/server/src/suggestions/genericTypesSuggestions.ts
Github Open Source
Open Source
MIT
2,022
vscode-antlers-language-server
Stillat
TypeScript
Code
121
450
import { InsertTextFormat, CompletionItemKind, TextEdit, Range } from 'vscode-languageserver'; import { CompletionItem, MarkupKind } from 'vscode-languageserver-types'; import { ModifierManager } from '../antlers/modifierManager'; import { IScopeVariable } from '../antlers/scope/engine'; import { ISuggestionRequest } f...
33,331
https://github.com/NationalSecurityAgency/ghidra/blob/master/Ghidra/Debug/Debugger-agent-dbgeng/src/main/java/agent/dbgeng/model/impl/DbgModelTargetConnectorContainerImpl.java
Github Open Source
Open Source
GPL-1.0-or-later, GPL-3.0-only, Apache-2.0, LicenseRef-scancode-public-domain, LGPL-2.1-only, LicenseRef-scancode-unknown-license-reference
2,023
ghidra
NationalSecurityAgency
Java
Code
289
970
/* ### * IP: GHIDRA * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writin...
47,117
https://github.com/fengchangsheng/skeleton/blob/master/src/test/java/com.fcs/common/MybatisPlusConfig.java
Github Open Source
Open Source
MIT
2,021
skeleton
fengchangsheng
Java
Code
35
146
package com.fcs.common; import com.baomidou.mybatisplus.plugins.PaginationInterceptor; import org.springframework.boot.test.context.TestConfiguration; import org.springframework.context.annotation.Bean; /** * Created by Lucare.Feng on 2017/2/24. */ @TestConfiguration public class MybatisPlusConfig { /** *...
19,793
https://github.com/luiznd/tarefas/blob/master/module/Application/src/Application/Model/TaskItem.php
Github Open Source
Open Source
BSD-3-Clause
null
tarefas
luiznd
PHP
Code
167
551
<?php namespace Application\Model; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity */ class TaskItem { /** * @ORM\Id * @ORM\GeneratedValue("AUTO") * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=100) */ private $title; ...
696
https://github.com/brettschneider/python_dict_wrapper/blob/master/setup.py
Github Open Source
Open Source
MIT
2,021
python_dict_wrapper
brettschneider
Python
Code
37
192
#! /usr/bin/env python from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup( name='python-dict-wrapper', py_modules=['python_dict_wrapper'], version='1.1', description='Wraps Python dictionary keys as attributes', long_description=long_description...
44,964
https://github.com/Minionguyjpro/Ghostly-Skills/blob/master/sources/com/mopub/common/SharedPreferencesHelper.java
Github Open Source
Open Source
MIT
2,022
Ghostly-Skills
Minionguyjpro
Java
Code
48
180
package com.mopub.common; import android.content.Context; import android.content.SharedPreferences; public final class SharedPreferencesHelper { public static final String DEFAULT_PREFERENCE_NAME = "mopubSettings"; private SharedPreferencesHelper() { } public static SharedPreferences getSharedPrefer...
38,000
https://github.com/Swathi1253/logistics-business-network-gtt-samples/blob/master/lbn-gtt-template-tso/abap/zsrc/zgtt_sof.fugr.zgtt_sof_ote_shp_hd.abap
Github Open Source
Open Source
Apache-2.0
2,021
logistics-business-network-gtt-samples
Swathi1253
null
Spoken
1,759
7,844
FUNCTION zgtt_sof_ote_shp_hd. *"---------------------------------------------------------------------- *"*"Local Interface: *" IMPORTING *" REFERENCE(I_APPSYS) TYPE /SAPTRX/APPLSYSTEM *" REFERENCE(I_APP_OBJ_TYPES) TYPE /SAPTRX/AOTYPES *" REFERENCE(I_ALL_APPL_TABLES) TYPE TRXAS_TABCONTAINER *" REFERE...
23,867
https://github.com/aws-amplify/amplify-cli/blob/master/packages/amplify-e2e-tests/src/__tests__/function_2a.test.ts
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-warranty-disclaimer, MIT-0, CC0-1.0, MIT, BSD-3-Clause, 0BSD, ISC, CC-BY-SA-4.0, BSD-2-Clause
2,023
amplify-cli
aws-amplify
TypeScript
Code
264
1,030
import { addAuthWithDefault, addFunction, addS3StorageWithSettings, AddStorageSettings, amplifyPushAuth, amplifyPushForce, createNewProjectDir, deleteProject, deleteProjectDir, getProjectMeta, initJSProjectWithProfile, invokeFunction, overrideFunctionSrcNode, addAuthWithGroupsAndAdminAPI, ...
3,719
https://github.com/ostanik/social-lean/blob/master/Example/Pods/Target Support Files/Pods-SocialLean_Example/Pods-SocialLean_Example-umbrella.h
Github Open Source
Open Source
MIT
null
social-lean
ostanik
C
Code
28
115
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_SocialLean_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_SocialLean_Example...
40,799
https://github.com/KevinRNelson/composable/blob/master/utils/faucet-server/src/main.rs
Github Open Source
Open Source
Unlicense
null
composable
KevinRNelson
Rust
Code
318
1,288
use hmac::{Hmac, Mac, NewMac}; use sha2::Sha256; use sp_core::{crypto::Ss58Codec, sr25519, Pair}; use std::sync::Arc; use structopt::StructOpt; use subxt::{ClientBuilder, PairSigner}; use subxt_clients::picasso::api; use tide::{prelude::*, Error, Request}; #[derive(Debug, Deserialize, StructOpt, Clone)] struct Main { ...
21,536
https://github.com/michikeiser/ZbW.DocumentManagementSystem/blob/master/ZbW.Testing.Dms.Client/Model/MetadataItem.cs
Github Open Source
Open Source
Apache-2.0
null
ZbW.DocumentManagementSystem
michikeiser
C#
Code
16
43
namespace ZbW.Testing.Dms.Client.Model { internal class MetadataItem { // TODO: Write your Metadata properties here } }
12,136
https://github.com/truenas/ports/blob/master/devel/pcsc-ada/Makefile
Github Open Source
Open Source
BSD-2-Clause
2,023
ports
truenas
Makefile
Code
182
1,041
# Created by: John Marino <marino@FreeBSD.org> PORTNAME= pcsc-ada PORTVERSION= 0.7.3 PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://www.codelabs.ch/download/ DISTNAME= libpcscada-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Ada binding to PC/SC middleware (Smart card interface) LICENSE= LGPL21 LIB_...
5,902
https://github.com/shavz/bitcoin-api-full-stack/blob/master/3-frontend/007common-code/TheActualApp/NotLoggedInMode/InitialChoiceMode/index.js
Github Open Source
Open Source
BSD-3-Clause
2,020
bitcoin-api-full-stack
shavz
JavaScript
Code
101
301
import { createElement as e } from 'react'; import { setState } from '../../../reduxX'; import { story } from '../../../constants'; import { usefulComponents } from '../../../TheSource'; import Chaturanga from './Chaturanga'; // const getStyles = () => { // return { // }; // }; export default ({...
31,787
https://github.com/drymarev/algorithms-java/blob/master/percolation/src/main/java/PercolationStats.java
Github Open Source
Open Source
MIT
null
algorithms-java
drymarev
Java
Code
195
560
import edu.princeton.cs.algs4.StdIn; import edu.princeton.cs.algs4.StdOut; import edu.princeton.cs.algs4.StdRandom; import edu.princeton.cs.algs4.StdStats; public final class PercolationStats { private final int trials; private final double[] thresholds; public PercolationStats(int n, int trials) { if (n <...
9,410
https://github.com/pncolvr/timus/blob/master/Timus/views/textview/ELTextView.h
Github Open Source
Open Source
Apache-2.0
null
timus
pncolvr
C
Code
29
87
// // ELTextView.h // Timus // // Created by Emanuel Coelho on 07/11/13. // Copyright (c) 2013 Timus. All rights reserved. // #import "RPFloatingPlaceholderTextView.h" @interface ELTextView : RPFloatingPlaceholderTextView @end
11,919
https://github.com/LandRegistry/drv-flask-based-prototype/blob/master/service/static/lr-styleguide/sass/partials/_sg-icons.scss
Github Open Source
Open Source
MIT
null
drv-flask-based-prototype
LandRegistry
SCSS
Code
155
900
// GOV.UK icons .icon { background-position: 0 0; background-repeat: no-repeat; } .icon-calendar { width: 27px; height: 27px; background-image: url("/static/govuk_frontend_toolkit/images/icon-calendar.png"); @include device-pixel-ratio() { background-image: url("/static/govuk_frontend_toolkit/images/...
32,887
https://github.com/ACTCollaboration/moby2/blob/master/python/tod/tod.py
Github Open Source
Open Source
BSD-2-Clause
2,022
moby2
ACTCollaboration
Python
Code
1,624
4,740
from __future__ import print_function from __future__ import absolute_import from past.builtins import basestring import os import numpy as np # Local import moby2 import moby2.libactpol as libactpol from moby2.util import DirfileManager, mce, log from .array_data import ArrayData DET_DTYPE = 'float32' pointing_fi...
50,128
https://github.com/tunip3/xbox-live-api/blob/master/Source/Services/Multiplayer/WinRT/MultiplayerSessionConstants_WinRT.cpp
Github Open Source
Open Source
MIT
2,018
xbox-live-api
tunip3
C++
Code
88
489
// Copyright (c) Microsoft Corporation // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pch.h" #include "MultiplayerSessionConstants_WinRT.h" using namespace Windows::Foundation; using namespace Windows::Foundation::Collections; using namespace Microsoft...
49,427
https://github.com/tilok369/ambs-reporting-engine/blob/master/src/api/Ambs.Reporting/Ambs.Reporting.Engine/GraphModels/PieDataPoint.cs
Github Open Source
Open Source
MIT
null
ambs-reporting-engine
tilok369
C#
Code
35
74
 namespace Ambs.Reporting.Engine.GraphModels; public class PieDataPoint : IDataPoint { public double Y { get; set; } public string Label { get; set; } = string.Empty; public string Color { get; set; } = string.Empty; }
1,631
https://github.com/AzureMentor/allReady/blob/master/AllReadyApp/Web-App/AllReady/Areas/Admin/Features/Notifications/InitialRequestConfirmationsSentHandler.cs
Github Open Source
Open Source
MIT
2,019
allReady
AzureMentor
C#
Code
113
504
using System; using System.Linq; using System.Threading.Tasks; using AllReady.Hangfire.Jobs; using AllReady.Models; using Hangfire; using MediatR; using TimeZoneConverter; using Microsoft.EntityFrameworkCore; namespace AllReady.Areas.Admin.Features.Notifications { public class InitialRequestConfirmationsSentHandl...
29,597
https://github.com/polats/proxx/blob/master/src/main/bootstrap.tsx
Github Open Source
Open Source
Apache-2.0
null
proxx
polats
TypeScript
Code
168
381
/** * Copyright 2019 Google 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 ...
26,017
https://github.com/skyhacker2/TextSwitch/blob/master/Example/Pods/Target Support Files/Pods-TextSwitch_Example/Pods-TextSwitch_Example-dummy.m
Github Open Source
Open Source
MIT
2,015
TextSwitch
skyhacker2
Objective-C
Code
10
52
#import <Foundation/Foundation.h> @interface PodsDummy_Pods_TextSwitch_Example : NSObject @end @implementation PodsDummy_Pods_TextSwitch_Example @end
13,108
https://github.com/hebert992/TuPollaUSA/blob/master/app/Http/Controllers/ConfirmacionController.php
Github Open Source
Open Source
MIT
2,016
TuPollaUSA
hebert992
PHP
Code
71
273
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Session; use App\Http\Requests; use Illuminate\Foundation\Auth\User; class ConfirmacionController extends Controller { public function confirm($confirmation_code) { $code_confirmacion = $confirmation_cod...
46,081
https://github.com/joshwalawender/PypeIt/blob/master/pypeit/tests/test_pypeit.py
Github Open Source
Open Source
BSD-3-Clause
2,018
PypeIt
joshwalawender
Python
Code
158
750
""" Module to run tests on arsave """ import os import numpy as np import pytest from pypeit import msgs from pypeit.par.util import make_pypeit_file from pypeit import pypeitsetup from pypeit.pypeit import PypeIt def data_path(filename): data_dir = os.path.join(os.path.dirname(__file__), 'files') return os...
50,271
https://github.com/uPagge/vk-bot/blob/master/src/main/java/org/sadtech/vk/bot/sdk/service/convert/KeyBoardConvert.java
Github Open Source
Open Source
BSD-3-Clause
null
vk-bot
uPagge
Java
Code
256
1,293
package org.sadtech.vk.bot.sdk.service.convert; import com.vk.api.sdk.client.actors.GroupActor; import com.vk.api.sdk.client.actors.ServiceActor; import com.vk.api.sdk.objects.messages.Keyboard; import com.vk.api.sdk.objects.messages.KeyboardButton; import com.vk.api.sdk.objects.messages.KeyboardButtonAction; import c...
29,976
https://github.com/wbaby/MemoryModulePP/blob/master/MemoryModule/stdafx.h
Github Open Source
Open Source
MIT
2,022
MemoryModulePP
wbaby
C
Code
68
233
#pragma once #pragma warning (disable:4005) #ifndef WIN32_NO_STATUS #define WIN32_NO_STATUS #include <Windows.h> #undef WIN32_NO_STATUS #include <ntstatus.h> #endif #pragma warning (default:4005) //memory module base support #include "MemoryModule.h" //nt layer support #include "Native.h" //memory block pattern sea...
2,152
https://github.com/Dineth-75/Wifi-cap-file-cracker/blob/master/Wificracker.sh
Github Open Source
Open Source
MIT
2,021
Wifi-cap-file-cracker
Dineth-75
Shell
Code
52
109
#! /bin/bash echo Simple wifi Cracking Script in bash echo Written By: Dineth Nimsara echo NOTE: Make sure you have wordlists! echo Let us Begin: echo Choose a cap file: read cap echo Enter BSSID: read BSSID echo Provide Directory of Wordlist for Passwords: read wordlist aircrack-ng --bssid $BSSID $cap -w $wordlist...
46,058
https://github.com/DotNetOpenAuth/DotNetOpenAuth/blob/master/src/DotNetOpenAuth.BuildTasks/Purge.cs
Github Open Source
Open Source
MS-PL
2,018
DotNetOpenAuth
DotNetOpenAuth
C#
Code
333
928
//----------------------------------------------------------------------- // <copyright file="Purge.cs" company="Outercurve Foundation"> // Copyright (c) Outercurve Foundation. All rights reserved. // </copyright> //----------------------------------------------------------------------- namespace DotNetOpenAuth.B...
20,453
https://github.com/avoajaugochukwu/posthog/blob/master/posthog/migrations/0088_toolbar_disabled.py
Github Open Source
Open Source
MIT
2,022
posthog
avoajaugochukwu
Python
Code
60
264
# Generated by Django 3.0.7 on 2020-10-13 13:44 from django.db import migrations, models def forward(apps, schema_editor): User = apps.get_model("posthog", "User") for user in User.objects.exclude(toolbar_mode="toolbar"): user.toolbar_mode = "toolbar" user.save() def reverse(apps, schema_ed...
11,496
https://github.com/steveofficer/Fable/blob/master/src/Fable.Transforms/Global/Metadata.fs
Github Open Source
Open Source
MIT
2,022
Fable
steveofficer
null
Spoken
41
318
module Fable.Metadata let coreAssemblies = [| "Fable.Core" "FSharp.Core" "mscorlib" "netstandard" "System.Collections" "System.Collections.Concurrent" "System.ComponentModel" "System.ComponentModel.Primitives" "System.ComponentModel.TypeConverter" "System.Console" "System.Co...
49,993
https://github.com/brownman/brakeman/blob/master/lib/checks/check_mass_assignment.rb
Github Open Source
Open Source
MIT
2,011
brakeman
brownman
Ruby
Code
170
488
require 'checks/base_check' #Checks for mass assignments to models. # #See http://guides.rubyonrails.org/security.html#mass-assignment for details class CheckMassAssignment < BaseCheck Checks.add self def run_check return if mass_assign_disabled? tracker models = [] tracker.models.each do |name, m| ...
33,673
https://github.com/xiaowei20152012/LeeApp/blob/master/todo/picomponent/src/main/java/com/todo/pic/data/remote/RequestManager.java
Github Open Source
Open Source
Apache-2.0
null
LeeApp
xiaowei20152012
Java
Code
738
2,793
package com.todo.pic.data.remote; import com.basiclib.base.BaseApplication; import com.basiclib.util.NetworkUtils; import org.json.JSONException; import org.json.JSONObject; import java.io.IOException; import java.lang.reflect.Type; import okhttp3.Call; import okhttp3.Callback; import okhttp3.Interceptor; import ...
25,740
https://github.com/ivanliu1989/PyQuantTrader/blob/master/setup.py
Github Open Source
Open Source
MIT
2,019
PyQuantTrader
ivanliu1989
Python
Code
147
446
#!/usr/bin/env python # -*- coding: utf-8; py-indent-offset:4 -*- """ Created on Sat Jul 22 14:33:32 2017 @author: Ivan Liu """ import os.path import codecs # To use a consistent encoding from setuptools import setup, find_packages # Setup path here = os.path.abspath(os.path.dirname(__file__)) # Get long descripti...
22,749
https://github.com/wailamjonathanlee/predicting-alignment-algorithm-performance-using-machine-learning/blob/master/src/agg-results.py
Github Open Source
Open Source
MIT
2,021
predicting-alignment-algorithm-performance-using-machine-learning
wailamjonathanlee
Python
Code
58
272
#!/usr/bin/env python import os from alignclf import analyze from alignclf.utils import setup_logging if __name__ == '__main__': # use default logging setup_logging(default_path='') agg_result_dir = os.path.join('.', 'results-agg', '2018-12-03') for dirname in os.listdir(agg_result_dir): re...
26,554
https://github.com/bplaat/plaatworld2/blob/master/server/resources/views/livewire/admin/objects/item.blade.php
Github Open Source
Open Source
MIT
2,021
plaatworld2
bplaat
PHP
Code
520
3,104
<div class="column is-one-quarter"> <div class="card"> <div class="card-image"> <div style="position: relative; padding-top: 100%" wire:ignore> <canvas id="object-{{ $object->id}}-canvas" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></canvas> ...
8,748
https://github.com/zhaozeq/zus-cli/blob/master/lib/utils/getConfig/getConfig/debugLoader.js
Github Open Source
Open Source
MIT
null
zus-cli
zhaozeq
JavaScript
Code
44
183
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = _default; function _default(source, map) { var resourcePath = this.resourcePath; var debugLoader = process.env.DEBUG_LOADER; if (debugLoader && resourcePath.indexOf(debugLoader) > -1) { console.log(''); ...
38,627
https://github.com/chandresh/spree/blob/master/core/app/controllers/spree/base_controller.rb
Github Open Source
Open Source
BSD-3-Clause
2,011
spree
chandresh
Ruby
Code
7
21
class Spree::BaseController < ActionController::Base include SpreeBase end
14,678
https://github.com/asrulsibaoel/sinau-ngopi/blob/master/app/Model/Transaction.php
Github Open Source
Open Source
MIT
null
sinau-ngopi
asrulsibaoel
PHP
Code
35
164
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Transaction extends Model { use SoftDeletes; public $incrementing = false; protected $dates = ['deleted_at']; // public $fillable=['id','users_id','discount','tax','subtotal','...
39,979
https://github.com/tizian/Cendric2/blob/master/include/Beans/LevelitemLightBean.h
Github Open Source
Open Source
MIT
2,022
Cendric2
tizian
C
Code
30
86
#pragma once #include <iostream> #include "Beans/DatabaseBean.h" // a levelitem light bean, directly from the database struct LevelitemLightBean final : DatabaseBean { std::string item_id; sf::Vector2f light_offset; sf::Vector2f light_radius; float brightness; };
18,272
https://github.com/andrewjshilliday/valence-v1/blob/master/app/src/app/shared/themes/theme.service.ts
Github Open Source
Open Source
MIT
2,018
valence-v1
andrewjshilliday
TypeScript
Code
122
404
import { Injectable, Inject, EventEmitter } from '@angular/core'; import { THEMES, ACTIVE_THEME, Theme } from './symbols'; @Injectable() export class ThemeService { themeChange = new EventEmitter<Theme>(); constructor( @Inject(THEMES) public themes: Theme[], @Inject(ACTIVE_THEME) public theme: string) { cons...
50,633
https://github.com/koznobikhin/OzStringKit/blob/master/Tests/OzStringKitTests/AttributedStringTests.swift
Github Open Source
Open Source
MIT
2,020
OzStringKit
koznobikhin
Swift
Code
64
218
// // AttributedStringTests.swift // OzStringKit // // Created by Konstantin Oznobikhin on Mar 23, 2020. // Copyright © 2020 Konstantin Oznobikhin. All rights reserved. // import XCTest @testable import OzStringKit final class AttributedStringTests: XCTestCase { func testMutipleAttributes() { let test...
25,401
https://github.com/Flakebi/typos/blob/master/benchsuite/uut/scspell.sh
Github Open Source
Open Source
Apache-2.0, MIT
2,022
typos
Flakebi
Shell
Code
153
488
#!/usr/bin/env bash set -e UUT_DIR="scspell" SCSPELL_VERSION="2.2" if [[ $# -eq 0 ]]; then exit 1 fi command=$1 base_dir="/tmp/benchsuite" if [[ $# -ge 2 ]]; then base_dir=$2 fi root_dir="${base_dir}/$UUT_DIR" bin_dir=$root_dir/bin out_file="$bin_dir/scspell" log_path="${base_dir}/$UUT_DIR.log" function path()...
27,584
https://github.com/jandresvn/ReactLaravel/blob/master/app/Http/Controllers/Api/UserController.php
Github Open Source
Open Source
MIT
null
ReactLaravel
jandresvn
PHP
Code
330
1,385
<?php namespace App\Http\Controllers\Api; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\DB; use Caffeinated\Shinobi\Models\Role; use App\User; use Illuminate\Support\Facades\Auth; use Illuminate\Database\Query\Builder; use Illuminate\Validation\ValidationException; ...
48,545
https://github.com/backwardn/emgo/blob/master/egpath/src/stm32/examples/l1-discovery/heating/water.go
Github Open Source
Open Source
BSD-3-Clause
2,022
emgo
backwardn
Go
Code
356
1,253
package main import ( "sync/atomic" "delay" "stm32/hal/raw/tim" ) type counter struct { t *tim.TIM_Periph } func (c *counter) Init(t *tim.TIM_Periph) { c.t = t t.CKD().Store(2 << tim.CKDn) // Connect CC1 to TI1, setup input filter. t.CCMR1.StoreBits(tim.CC1S|tim.IC1F, 1<<tim.CC1Sn|0xf<<tim.IC1Fn) // Set f...
13,721
https://github.com/zero88/vertx-jooq-dsl/blob/master/spi/src/main/java/io/zero88/jooqx/spi/mysql/MySQLErrorConverter.java
Github Open Source
Open Source
Apache-2.0
2,022
vertx-jooq-dsl
zero88
Java
Code
58
252
package io.zero88.jooqx.spi.mysql; import java.sql.SQLException; import org.jetbrains.annotations.NotNull; import org.jooq.exception.DataAccessException; import io.vertx.mysqlclient.MySQLException; import io.zero88.jooqx.JooqErrorConverter; /** * MySQL error converter * * @see MySQLException * @since 1.0.0 */ ...
49,513
https://github.com/persalmi/chezmoi/blob/master/internal/chezmoi/format_test.go
Github Open Source
Open Source
MIT
2,021
chezmoi
persalmi
Go
Code
21
93
package chezmoi import ( "testing" "github.com/stretchr/testify/assert" ) func TestFormats(t *testing.T) { assert.Contains(t, Formats, "json") assert.Contains(t, Formats, "toml") assert.Contains(t, Formats, "yaml") }
7,597
https://github.com/mrimbeau/behandlungsjournal/blob/master/server/src/controller/indikator.controller.ts
Github Open Source
Open Source
MIT
2,016
behandlungsjournal
mrimbeau
TypeScript
Code
179
660
const Indikator = require('../models/indikator.model'); import * as mongoose from 'mongoose'; let ObjectId = mongoose.Types.ObjectId; module.exports.getAllIndicators = (request, response) => { Indikator.find({}, (err, docs) => { console.log('getAllIndicators: docs', docs); if (err) { return console.er...
6,239
https://github.com/mcrts-learning/mcrts-java/blob/master/java-init/week06/Decharge.java
Github Open Source
Open Source
Unlicense
null
mcrts-java
mcrts-learning
Java
Code
529
1,548
import java.util.Scanner; import java.util.Arrays; import java.text.DecimalFormat; public class Decharge { private static DecimalFormat df = new DecimalFormat("#.000"); /******************************************* * Completez le programme a partir d'ici. ***************************...
44,163
https://github.com/haiko21/LittleGPTracker/blob/master/sources/System/Console/Trace.cpp
Github Open Source
Open Source
BSD-3-Clause
2,022
LittleGPTracker
haiko21
C++
Code
129
489
#include "System/System/System.h" #include "Trace.h" #include <stdio.h> #include <stdarg.h> #include <string.h> Trace::Trace() :logger_(0) { } //------------------------------------------------------------------------------ void Trace::AddLine(const char* line) { if (logger_) { logger_->AddLine(line); ...
31,167
https://github.com/edusouza96/novobichoensaboado/blob/master/app/Services/BuySearchService.php
Github Open Source
Open Source
MIT
null
novobichoensaboado
edusouza96
PHP
Code
128
669
<?php namespace BichoEnsaboado\Services; use BichoEnsaboado\Models\Diary; use Illuminate\Support\Collection; use BichoEnsaboado\Enums\ServicesType; use BichoEnsaboado\Repositories\DiaryRepository; class BuySearchService { private $diaryRepository; public function __construct(DiaryRepository $diaryRepository...
46,748
https://github.com/Douglas890116/Atom/blob/master/src/ecrm-v/src/main/java/com/maven/controller/EmployeeMoneyChangeTypeController.java
Github Open Source
Open Source
Unlicense
2,019
Atom
Douglas890116
Java
Code
366
1,988
package com.maven.controller; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springf...
35,315
https://github.com/basilboli/kaf/blob/master/vendor/github.com/orlangure/gnomock/preset/kafka/preset.go
Github Open Source
Open Source
Apache-2.0
2,021
kaf
basilboli
Go
Code
782
2,292
// Package kafka provides a Gnomock Preset for Kafka. package kafka import ( "context" "encoding/json" "errors" "fmt" "io" "os" "time" "github.com/orlangure/gnomock" "github.com/segmentio/kafka-go" ) // The following ports are exposed by this preset: const ( BrokerPort = "broker" ZooKeeperPort = "zooke...
34,650
https://github.com/XenosEleatikos/MusicBrainz/blob/master/src/Filter/Property/AsinTrait.php
Github Open Source
Open Source
MIT
2,023
MusicBrainz
XenosEleatikos
PHP
Code
71
197
<?php namespace MusicBrainz\Filter\Property; use AskLucy\Expression\Clause\Term; use MusicBrainz\Value\ASIN; trait AsinTrait { use AbstractAdderTrait; /** * Returns the field name for the ASIN. * * @return string */ public static function asin(): string { return 'asin'; ...
26,747
https://github.com/GiftForGood/website/blob/master/src/pages/createDonation/components/CreateDonationPanel/components/LivePreviewDonation/index.js
Github Open Source
Open Source
MIT
2,020
website
GiftForGood
JavaScript
Code
164
536
import React, { useContext } from 'react'; import styled from 'styled-components'; // components import DonationCard from '@components/card/DonationCard'; import { Stack, Heading, Text } from '@kiwicom/orbit-components/lib'; // hooks import useUser from '@components/session/modules/useUser'; // context import { Do...
47,606
https://github.com/nlowe/aoc2020/blob/master/challenge/day6/a.go
Github Open Source
Open Source
MIT
2,021
aoc2020
nlowe
Go
Code
87
275
package day6 import ( "fmt" "math/bits" "github.com/nlowe/aoc2020/challenge" "github.com/spf13/cobra" ) func aCommand() *cobra.Command { return &cobra.Command{ Use: "a", Short: "Day 6, Problem A", Run: func(_ *cobra.Command, _ []string) { fmt.Printf("Answer: %d\n", partA(challenge.FromFile())) }, ...
33,790
https://github.com/ubiq/chfast-ubqhash/blob/master/test/benchmarks/progpow_benchmarks.cpp
Github Open Source
Open Source
Apache-2.0
2,022
chfast-ubqhash
ubiq
C++
Code
57
228
// Ethash: C/C++ implementation of Ethash, the Ethereum Proof of Work algorithm. // Copyright 2018 Pawel Bylica. // Licensed under the Apache License, Version 2.0. See the LICENSE file. #include <ethash/progpow-internal.hpp> #include <benchmark/benchmark.h> static void progpow_build_l1_cache(benchmark::State& state)...
45,121
https://github.com/chosti34/CompilerCreationTool/blob/master/CompilerCreationTool/CompilerCreationTool/MainFrame.cpp
Github Open Source
Open Source
MIT
null
CompilerCreationTool
chosti34
C++
Code
1,171
5,927
#include "pch.h" #include "MainFrame.h" #include "XpmImages.h" #include <wx/artprov.h> #include <wx/aui/auibar.h> #include <wx/aui/dockart.h> #include <wx/aboutdlg.h> using namespace std::literals::string_literals; namespace { wxMenuBar* CreateMenuBar() { wxMenuBar* menubar = new wxMenuBar; wxMenu* file = new wxMe...
27,282
https://github.com/hard-mode/jack-sanity/blob/master/lib/Container.js
Github Open Source
Open Source
MIT
2,015
jack-sanity
hard-mode
JavaScript
Code
64
196
var sanity = require(__dirname), EventEmitter = require('eventemitter2').EventEmitter2; var Container = function(controller) { var self = this; // Enable event API: EventEmitter.call(this); this.__proto__ = EventEmitter.prototype; self.close = function() { return controller.close(); }; self.isOpen = funct...
31,881
https://github.com/cryptophobic/ivydolls/blob/master/commands/TestController.php
Github Open Source
Open Source
BSD-3-Clause
null
ivydolls
cryptophobic
PHP
Code
443
1,609
<?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ */ namespace app\commands; use app\models\Abstractive\Simple\ItemsPack; use app\models\Category\CategoryDelete; use app\models\Category\CategoryEdit; use app\models\ObjFa...
6,454
https://github.com/ltiao/gp-dre/blob/master/docker/Dockerfile
Github Open Source
Open Source
MIT
2,020
gp-dre
ltiao
Dockerfile
Code
160
495
FROM tensorflow/tensorflow:2.3.0-gpu-jupyter MAINTAINER Louis Tiao <louistiao@gmail.com> ENV LC_ALL C.UTF-8 ENV LANG C.UTF-8 RUN echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections RUN apt-get update && apt-get install -y --no-install-recommends \ git-co...
45,907
https://github.com/sl413/miIO/blob/master/src/main/java/de/sg_o/app/miio/base/CommandExecutionException.java
Github Open Source
Open Source
Apache-2.0
2,020
miIO
sl413
Java
Code
211
508
/* * Copyright (c) 2018 Joerg Bayer * * 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 ...
31,562
https://github.com/jd615645/Class_DWP_HWs/blob/master/DWP_hw2_4103056002/main_enus.jade
Github Open Source
Open Source
Apache-2.0
null
Class_DWP_HWs
jd615645
null
Spoken
51
491
extends ./head_enus.jade block footer-css link(rel='stylesheet', href='./css/footer.css') block change a.active(href="./index.html") zh_tw/en_us block content #main-block h1 News hr ul li a(href='http://www.cs.nchu.edu.tw/v3x/news_read.php?nno=319311', target='_blank') 國立中興大學資訊科學與工程學系徵...
34,760
https://github.com/lingwei0604/easegress/blob/master/pkg/object/meshcontroller/ingresscontroller/ingresscontroller.go
Github Open Source
Open Source
Apache-2.0
2,021
easegress
lingwei0604
Go
Code
809
2,748
/* * Copyright (c) 2017, MegaEase * 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 ap...
38,403
https://github.com/gregretkowski/GoDeeper/blob/master/ansible/test/integration/godeeper/bats/verify_hello.bats
Github Open Source
Open Source
Apache-2.0
2,016
GoDeeper
gregretkowski
Shell
Code
12
28
@test "hello world test (imports pandas)" { python -c 'import pandas' }
8,525
https://github.com/WeeJang/fish-db/blob/master/src/sparql/sparqllexer.h
Github Open Source
Open Source
MIT
2,021
fish-db
WeeJang
C
Code
197
702
#ifndef _SPARQLLERER_H_ #define _SPARQLLERER_H_ #include <iostream> #include <string> #include "log.h" namespace sparql { class SPARQLLexer { public: // Token_T // Variable : "?id" // IRI : "<http://../.../>" // Identifier : "select","where" // String : "\"招商银行\"" // Number : 113.4 ...
7,615
https://github.com/pdv-ru/ClickHouse/blob/master/tests/queries/0_stateless/01912_bad_cast_join_fuzz.sql
Github Open Source
Open Source
Apache-2.0
2,022
ClickHouse
pdv-ru
SQL
Code
45
110
SELECT 1023 + l, * FROM ( SELECT toLowCardinality(toNullable(number)) AS l FROM system.numbers LIMIT 10 ) AS s1 ANY LEFT JOIN ( SELECT toLowCardinality(toNullable(number)) AS r FROM system.numbers LIMIT 7 ) AS s2 ON (l + 1023) = (r * 3) ORDER BY l, r;
41,428
https://github.com/FRC-4277/2021InfiniteRecharge/blob/master/src/main/java/frc/robot/commands/autonomous/galacticvideo/IntakeGalacticBallCommand.java
Github Open Source
Open Source
MIT
2,022
2021InfiniteRecharge
FRC-4277
Java
Code
308
1,130
package frc.robot.commands.autonomous.galacticvideo; import edu.wpi.first.wpilibj.Timer; import edu.wpi.first.wpilibj2.command.CommandBase; import frc.robot.Constants.GalacticSearchVideo; import frc.robot.subsystems.DriveTrain; import frc.robot.subsystems.Intake; import frc.robot.subsystems.VerticalHopper; import frc....
35,993
https://github.com/ludwigschubert/flow-simulator/blob/master/simulator/playground/tasks/greetings.py
Github Open Source
Open Source
Apache-2.0
null
flow-simulator
ludwigschubert
Python
Code
24
111
output = "/data/greetings/{name_file}-{salutation_file}-{x}.txt" # model = "/some/filepath/" x = [1,2,3] name = "/data/names/{name_file}.txt" salutation = "/data/salutations/{salutation_file}.txt" def main() -> str: return "{salutation} {name}!".format(salutation=salutation, name=name)
52,561
https://github.com/StAResComp/PeruCovid/blob/master/public/includes/export.php
Github Open Source
Open Source
Apache-2.0
null
PeruCovid
StAResComp
PHP
Code
60
153
<?php declare(strict_types=1); namespace PERUCOVID; /****f* export.php/export * NAME * ingest * SYNOPSIS * Export response as CSV * ARGUMENTS * responseID - integer - ID of response * RETURN VALUE * Array ****** */ function export(int $responseID) : array { //{{{ // connect to DB, getting data as numer...
27,437
https://github.com/allan-alb/es6-git-repos/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,021
es6-git-repos
allan-alb
Ignore List
Code
3
17
node_modules/ notes.txt yarn-error.log
35,785
https://github.com/chromiumembedded/cef/blob/master/libcef/browser/chrome/views/browser_platform_delegate_chrome_child_window.cc
Github Open Source
Open Source
BSD-3-Clause
2,023
cef
chromiumembedded
C++
Code
71
351
// Copyright 2022 The Chromium Embedded Framework Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "libcef/browser/chrome/views/browser_platform_delegate_chrome_child_window.h" #include "include/views/cef_browser_view.h" #in...
24,609
https://github.com/GindaChen/MLOS/blob/master/source/Mlos.UnitTest/SharedChannelTests.cpp
Github Open Source
Open Source
MIT
null
MLOS
GindaChen
C++
Code
950
3,413
//********************************************************************* // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root // for license information. // // @File: SharedChannelTests.cpp // // Purpose: // <description> // // Notes: //...
34,832
https://github.com/robertwahler/basic_app/blob/master/lib/basic_app.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,012
basic_app
robertwahler
Ruby
Code
64
215
require 'rbconfig' require 'basic_app/core' require 'basic_app/os' require 'basic_app/errors' require 'basic_app/assets' require 'basic_app/views' require 'basic_app/actions' require 'basic_app/app' require 'basic_app/settings' require 'basic_app/logger' # Master namespace module BasicApp # Contents of the VERSION ...
13,956
https://github.com/rphaeh/mx/blob/master/Sourcecode/private/mx/api/MarkData.cpp
Github Open Source
Open Source
MIT
2,019
mx
rphaeh
C++
Code
879
2,291
// MusicXML Class Library // Copyright (c) by Matthew James Briggs // Distributed under the MIT License #include "mx/api/MarkData.h" #include "mx/impl/Converter.h" #include "mx/core/Enums.h" namespace mx { namespace api { bool isMarkDynamic( MarkType markType ) { return ( markType ...
26,079
https://github.com/dubzzz/gnu-linux-tips/blob/master/remote-storage/ifupd-remote-storage.sh
Github Open Source
Open Source
MIT
2,021
gnu-linux-tips
dubzzz
Shell
Code
30
77
#!/bin/sh REMOTE=/etc/init.d/remote-storage if [ ! -x $REMOTE ]; then exit 0 fi $REMOTE status if [ $? -ne 0 ]; then $REMOTE stop $REMOTE start exit $? fi exit 0
10,186
https://github.com/sachsmc/causaloptim/blob/master/man/parse_effect.Rd
Github Open Source
Open Source
MIT
2,023
causaloptim
sachsmc
R
Code
157
304
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/text-parsing.R \name{parse_effect} \alias{parse_effect} \title{Parse text that defines a causal effect} \usage{ parse_effect(text) } \arguments{ \item{text}{Character string} } \value{ A nested list that contains the following components: \de...
45,574
https://github.com/JuliaTagBot/DSGE.jl/blob/master/src/packet/forecast_centric_packet.jl
Github Open Source
Open Source
BSD-3-Clause
null
DSGE.jl
JuliaTagBot
Julia
Code
300
978
""" ``` write_forecast_centric_packet(m, input_type, cond_type, output_vars = [:forecastobs, :forecastpseudo, :shockdecobs, :shockdecpseudo]; sections = [:estimation, :forecast] forecast_string = "", outdir = joinpath(saveroot(m), \"Packets\", spec(m), subspec(m))) ``` Write standard estimation and forecas...
37,432
https://github.com/sezarick/Soldering-Robot-Project/blob/master/Windows Software/Soldering Robot USB Config/Soldering Robot USB Config/MainWindow.xaml.cs
Github Open Source
Open Source
MIT
2,015
Soldering-Robot-Project
sezarick
C#
Code
1,646
7,118
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows...
30,830
https://github.com/orientechnologies/orientdb-studio/blob/master/src/app/administration/stats/security/auditing/auditing.component.ts
Github Open Source
Open Source
Apache-2.0
2,023
orientdb-studio
orientechnologies
TypeScript
Code
64
182
import { Component, OnDestroy, OnInit, Input } from "@angular/core"; import { MetricService } from "../../../../core/services"; declare const angular: any; @Component({ selector: "auditing-management", templateUrl: "./auditing.component.html", styles: [""] }) class AuditingComponent implements OnInit, OnDestroy...
38,616
https://github.com/rbrunckhorst/cpan-afs-command/blob/master/t/20_pts.t
Github Open Source
Open Source
LicenseRef-scancode-public-domain
2,013
cpan-afs-command
rbrunckhorst
Perl
Code
1,059
3,169
use strict; use English; use Test::More; use Test::Exception; use Data::Dumper; use Try::Tiny; use lib q{t/lib}; use Test::AFS::Command; use blib; use AFS::Command::PTS; if ( $ENV{AFS_COMMAND_DISABLE_TESTS} =~ /\bpts\b/ ) { plan skip_all => q{vos tests explicitly disabled}; } elsif ( $ENV{AFS_COMMAND_CELLNAME}...
27,430
https://github.com/dcma921811/Desarrollos/blob/master/SolucionPatronesDeDisennio/EjercicioUsuariosWinForms/FormNuevoUsuario.Designer.cs
Github Open Source
Open Source
Apache-2.0
null
Desarrollos
dcma921811
C#
Code
837
3,985
namespace EjercicioUsuariosWinForms { partial class FormNuevoUsuario { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </sum...
9,448
https://github.com/kontext-tech/docu/blob/master/src/Kontext.Docu.Web.Portals/Areas/BlogArea/Controllers/BlogPostController.cs
Github Open Source
Open Source
MIT
2,022
docu
kontext-tech
C#
Code
172
662
using Kontext.Data; using Kontext.Services; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System.Linq; using System.Threading.Tasks; namespace Kontext.Docu.Web.Portals.Areas.BlogArea.Controllers { [Area("BlogArea")] public class BlogPostController : Controller { priva...
46,699
https://github.com/Grauenwolf/DotNet-ORM-Cookbook/blob/master/ORM Cookbook/Recipes.EntityFrameworkCore/ConnectionSharing/ConnectionSharingScenario.cs
Github Open Source
Open Source
Unlicense
2,021
DotNet-ORM-Cookbook
Grauenwolf
C#
Code
172
653
using Microsoft.Data.SqlClient; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Storage; using Recipes.ConnectionSharing; using Recipes.EntityFrameworkCore.Entities; using System; namespace Recipes.EntityFrameworkCore.ConnectionSharing { public class ConnectionSharingScenario : IConnectio...
42,493
https://github.com/LineageOS/android_frameworks_av/blob/master/services/camera/libcameraservice/api2/DepthCompositeStream.cpp
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unicode
2,023
android_frameworks_av
LineageOS
C++
Code
2,976
10,327
/* * Copyright (C) 2018 The Android Open Source Project * * 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 app...
52,427
https://github.com/fcamlar/lego-battle/blob/master/mindstorms/lego.py
Github Open Source
Open Source
MIT
2,019
lego-battle
fcamlar
Python
Code
1,744
5,929
import time import logging import json import random import threading import math from enum import Enum from time import sleep from agt import AlexaGadget from ev3dev2.led import Leds from ev3dev2.sound import Sound from ev3dev2.motor import LargeMotor, OUTPUT_A, OUTPUT_B, OUTPUT_C, MoveTank, SpeedPercent, MediumMot...
3,508
https://github.com/dchote/gopicamera/blob/master/config/config.go
Github Open Source
Open Source
MIT
2,019
gopicamera
dchote
Go
Code
187
575
package config import ( "encoding/json" "fmt" "net" "os" //"strconv" ) type ConfigStruct struct { Camera struct { DeviceID int `json:"deviceID"` Name string `json:"name"` Rotate int `json:"rotate"` FlipHorizontal bool `json:"flipHorizontal"` FlipVertical boo...
17,146
https://github.com/dhaval48/laravel-crud-genarator-with-theme/blob/master/resources/js/components/common/paginate_link.vue
Github Open Source
Open Source
MIT
2,021
laravel-crud-genarator-with-theme
dhaval48
Vue
Code
103
496
<template> <div> <ul class="pagination" v-if="this.$parent.q == ''"> <li class="page-item" v-if='pagination.current_page > 1'> <a href="javascript:void(0);" aria-label="Previous" class="page-link" @click="getPageData(pagination.current_page - 1)"> ...
34,121
https://github.com/sivanWu0222/SwingDesktopPlatform/blob/master/src/free/FreeTableCellRenderer.java
Github Open Source
Open Source
Apache-2.0
null
SwingDesktopPlatform
sivanWu0222
Java
Code
107
378
package free; import java.awt.Color; import java.awt.Component; import javax.swing.BorderFactory; import javax.swing.JTable; import javax.swing.border.Border; import javax.swing.table.DefaultTableCellRenderer; public class FreeTableCellRenderer extends DefaultTableCellRenderer { private Color backgroundEven = Co...
35,098
https://github.com/e4nar/datetimepicker/blob/master/src/components/Calendar.vue
Github Open Source
Open Source
MIT
null
datetimepicker
e4nar
Vue
Code
792
3,045
<template> <div class="calendar"> <div class="header"> <template v-if="!isRange || isRange && isFrom"> <span class="chevron-container" @click="gotoMonth(-1)"> <b-icon-chevron-left></b-icon-chevron-left> </span> </template> ...
213
https://github.com/drkjam/yutani/blob/master/examples/breakout/wall.js
Github Open Source
Open Source
MIT
2,017
yutani
drkjam
JavaScript
Code
31
95
'use strict' class Wall extends Rectangle { constructor(x, y, width, height) { super(x, y, width, height) } draw(g) { super.draw(g, 2, 'rgba(0, 255, 255, 1.0)', 'rgba(0, 255, 255, 0.5)') } }
15,970
https://github.com/mrazza/path-data/blob/master/server/PathServices/Models/StopLocationType.cs
Github Open Source
Open Source
MIT
2,022
path-data
mrazza
C#
Code
25
62
namespace PathApi.Server.PathServices.Models { /// <summary> /// Location Types /// </summary> internal enum LocationType { Platform = 0, Station = 1, Entrance = 2 } }
46,145
https://github.com/johnathan99j/history-project/blob/master/_coffee/app/report.coffee
Github Open Source
Open Source
MIT
2,019
history-project
johnathan99j
CoffeeScript
Code
221
915
class ReportModel constructor: (opts) -> @title = opts.title @page_url = opts.page_url @message = opts.message @name = opts.name @url = opts.url buildJSON: => JSON.stringify title: @title page_url: @page_url message: @message name: @name save: (opts) -> FORM_U...
20,403
https://github.com/arcaneframework/framework/blob/master/alien/ArcaneInterface/modules/hpddm/src/alien/kernels/hpddm/HPDDMPrecomp.h
Github Open Source
Open Source
Apache-2.0
2,023
framework
arcaneframework
C++
Code
47
188
// -*- C++ -*- #ifndef ALIEN_HPDDMIMPL_HPDDMPRECOMP_H #define ALIEN_HPDDMIMPL_HPDDMPRECOMP_H /* Author : mesriy at Tue Jul 24 15:49:46 2012 * Generated by createNew */ #include <alien/utils/Precomp.h> #include <alien/AlienHPDDMPrecomp.h> #define BEGIN_HPDDMINTERNAL_NAMESPACE ...
33,945
https://github.com/Petlyura/goit-react-hw-08-phonebook/blob/master/src/components/Layout/Layout.module.scss
Github Open Source
Open Source
MIT
null
goit-react-hw-08-phonebook
Petlyura
SCSS
Code
24
67
.container { position: relative; width: 350px; margin: 0 auto; height: 100vh; } @media screen and (max-width: 330px) { .container { width: 315px; } }
24,209
https://github.com/ericphanson/ConvexTests/blob/master/GLPK/test.jl
Github Open Source
Open Source
MIT
2,022
ConvexTests
ericphanson
Julia
Code
14
53
using ConvexTests, GLPK @info "Starting GLPK tests" do_tests("GLPK", GLPK.Optimizer; exclude = [r"exp", r"sdp", r"socp"])
17,139
https://github.com/cdnjs/cdnjs/blob/master/ajax/libs/lato-font/2.0.0/scss/internal/_functions.scss
Github Open Source
Open Source
MIT
2,023
cdnjs
cdnjs
SCSS
Code
31
114
@function latoGetWeightForVariant($variant, $variants: $lato-variants) { @return map-get($variants, $variant); } @function latoGetFontNameForVariant($variant, $font-name: $lato-font-name) { // Exception for Medium variant. @if 'medium' == $variant { $font-name: 'Lato Medium'; } @return $font-name; }
52,016
https://github.com/mikelsv/msvcore2/blob/master/server/storm/listen-http-json.h
Github Open Source
Open Source
MIT
2,017
msvcore2
mikelsv
C
Code
37
175
void USEMSV_STORMSERVER_HTTPJSON_CALL(VString head, VString data, TString &ret); class listen_http_json : public listen_http{ virtual int AnalysSend(storm_work_el &wel){ VString data = post; TString ret; USEMSV_STORMSERVER_HTTPJSON_CALL(head, data, ret); CloseConnection(wel, ret); return 0; } ...
24,585
https://github.com/UnofficialJuliaMirror/COSMO.jl-1e616198-aa4e-51ec-90a2-23f7fbd31d8d/blob/master/examples/closest_correlation_matrix.jl
Github Open Source
Open Source
Apache-2.0
null
COSMO.jl-1e616198-aa4e-51ec-90a2-23f7fbd31d8d
UnofficialJuliaMirror
Julia
Code
223
808
# Test script to test solver with JuMP on a closest correlation matrix problem using COSMO, JuMP, LinearAlgebra, SparseArrays, Test, Random rng = Random.MersenneTwister(12345); # Original problem has the following format: # min_X 1/2 ||X-C||^2 # s.t. Xii = 1 # X ⪴ 0 # create a random test matrix C n = 8 ...
38,035