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/dannyfrelink/project-1-2021/blob/master/js/modules/showMore.js
Github Open Source
Open Source
MIT
null
project-1-2021
dannyfrelink
JavaScript
Code
100
359
import { sections, pagesizeDiv, uls, buttons, navigationDivs } from './variables.js'; export default function showMore(e, search) { if (e) { window.location.hash = e.target.ariaLabel; } // Remove not selected sections sections.forEach(section => { section.classList.remove('hidden'); ...
41,622
https://github.com/neteinstein/AndroidArchitecture/blob/master/Architecture/ArchitectureSkeleton/src/android/academy/skeleton/connectors/ServerLayerXPTO.java
Github Open Source
Open Source
Apache-2.0
2,014
AndroidArchitecture
neteinstein
Java
Code
11
53
package android.academy.skeleton.connectors; import android.academy.skeleton.interfaces.ServerLayerInterface; public class ServerLayerXPTO implements ServerLayerInterface { }
40,564
https://github.com/jlopezloz/acashop/blob/master/src/Aca/Bundle/ShopBundle/Controller/ReceiptController.php
Github Open Source
Open Source
MIT
null
acashop
jlopezloz
PHP
Code
70
341
<?php namespace Aca\Bundle\ShopBundle\Controller; use Aca\Bundle\ShopBundle\Db\DBCommon; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Session\Session; use Aca\Bundle\ShopBundle\Shop\OrderComplete; class ReceiptController extends Controller { public function show...
52,945
https://github.com/jeyroik/extas-fields/blob/master/src/components/plugins/uninstall/UninstallFieldsTypesSamples.php
Github Open Source
Open Source
MIT
null
extas-fields
jeyroik
PHP
Code
51
169
<?php namespace extas\components\plugins\uninstall; use extas\components\fields\types\FieldTypeSample; /** * Class UninstallFieldsTypesSamples * * @package extas\components\plugins\uninstall * @author jeyroik <jeyroik@gmail.com> */ class UninstallFieldsTypesSamples extends UninstallSection { protected string...
42,902
https://github.com/commercetools/ui-kit/blob/master/packages/components/inputs/input-utils/src/index.ts
Github Open Source
Open Source
MIT
2,023
ui-kit
commercetools
TypeScript
Code
52
119
export { default as LocalizedInputToggle } from './localized-input-toggle'; export { default as MultilineInput } from './multiline-input'; export { default as messagesLocalizedInput } from './messages/localized-input'; export { default as messagesMultilineInput } from './messages/multiline-input'; export { default as a...
15,408
https://github.com/PaoloSalta/Leanplum-ReactNative-SDK/blob/master/ios/LeanplumInbox.swift
Github Open Source
Open Source
Apache-2.0
2,021
Leanplum-ReactNative-SDK
PaoloSalta
Swift
Code
204
782
// // LeanplumInbox.swift // Leanplum // // Created by Alik . Risco on 21.02.20. // Copyright © 2020 Facebook. All rights reserved. // import Foundation import Leanplum @objc(RNLeanplumInbox) class RNLeanplumInbox: RCTEventEmitter { var allSupportedEvents: [String] = [] @objc override static...
21,942
https://github.com/CanonicalBootStack/zaza/blob/master/unit_tests/test_zaza_charm_lifecycle_utils.py
Github Open Source
Open Source
ECL-2.0, Apache-2.0
null
zaza
CanonicalBootStack
Python
Code
382
1,940
# Copyright 2018 Canonical Ltd. # # 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...
38,748
https://github.com/crewjam/usermgr/blob/master/web/crud_test.go
Github Open Source
Open Source
MIT
2,016
usermgr
crewjam
Go
Code
526
3,027
package web import ( "fmt" "log" "net/http" "net/http/httptest" "strings" "github.com/crewjam/httperr" . "gopkg.in/check.v1" ) func (suite *TestWeb) TestCanGetUsers(c *C) { w := httptest.NewRecorder() r, _ := http.NewRequest("GET", "/users/", nil) suite.Server.Mux.ServeHTTP(w, r) c.Assert(w.Code, Equals,...
16,037
https://github.com/AudreyFrancisco/MultiLadderOperation/blob/master/framework/src/manager/TDeviceChipVisitor.cpp
Github Open Source
Open Source
BSD-4-Clause
null
MultiLadderOperation
AudreyFrancisco
C++
Code
968
2,913
#include "TDeviceChipVisitor.h" #include "AlpideDictionary.h" #include "TAlpide.h" #include "TDevice.h" #include "TChipConfig.h" #include "TReadoutBoard.h" #include "TReadoutBoardDAQ.h" #include "TReadoutBoardMOSAIC.h" #include <stdexcept> #include <iostream> using namespace std; #pragma mark - Constructors/destruct...
53,640
https://github.com/devgrok/daml/blob/master/ledger/ledger-api-test-tool/src/main/scala/com/daml/ledger/api/testtool/infrastructure/participant/ParticipantSession.scala
Github Open Source
Open Source
Apache-2.0
null
daml
devgrok
Scala
Code
338
1,166
// Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. // SPDX-License-Identifier: Apache-2.0 package com.daml.ledger.api.testtool.infrastructure.participant import com.daml.ledger.api.testtool.infrastructure.{ ChannelEndpoint, Endpoint, Errors, LedgerServices, Pa...
22,915
https://github.com/ygao9795/industrial_calibration/blob/master/ical_core/CMakeLists.txt
Github Open Source
Open Source
Apache-2.0
2,021
industrial_calibration
ygao9795
CMake
Code
176
1,157
cmake_minimum_required(VERSION 3.5.1) # Extract package name and version from package.xml find_package(ros_industrial_cmake_boilerplate REQUIRED) extract_package_metadata(pkg) project(${pkg_extracted_name} VERSION ${pkg_extracted_version} LANGUAGES CXX) find_package(Eigen3 REQUIRED) find_package(OpenCV REQUIRED) fin...
2,381
https://github.com/luisvt/redstone/blob/master/lib/src/processor.dart
Github Open Source
Open Source
MIT
2,021
redstone
luisvt
Dart
Code
914
3,484
library redstone.src.processor; import 'dart:async'; import 'dart:mirrors'; import 'package:di/di.dart'; import 'package:shelf/shelf.dart' as shelf; import 'metadata.dart'; import 'server_metadata.dart'; import 'server_context.dart'; import 'plugin.dart'; import 'route_processor.dart'; import 'request.dart'; import ...
52,405
https://github.com/llenroc/os-api/blob/master/os_api/backward.py
Github Open Source
Open Source
MIT
2,017
os-api
llenroc
Python
Code
833
2,500
import os import json import six import logging from babbage import BabbageException from flask import Blueprint, request, current_app from flask.ext.jsonpify import jsonify backwardAPI = Blueprint('BackwardAPI', __name__) TAXONOMIES = json.load(open(os.path.join(os.path.dirname(__file__), 'taxonomies.json'))) lo...
18,447
https://github.com/jezzlucena/electro-entertainment-system/blob/master/www/api/populate_db.php
Github Open Source
Open Source
MIT
2,020
electro-entertainment-system
jezzlucena
PHP
Code
523
2,816
<?php include 'db.php'; try { $db->exec("DROP TABLE projects"); } catch (Exception $e) {} $sql = "CREATE TABLE projects"; $sql.= "(id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,"; $sql.= "project_name TEXT NOT NULL,"; $sql.= "token TEXT NOT NULL,"; $...
35,008
https://github.com/ytakemon/raab_swisnf_2015/blob/master/code/chip_analysis/arid_coverage_aridpeaks_dt.sh
Github Open Source
Open Source
MIT
2,016
raab_swisnf_2015
ytakemon
Shell
Code
119
404
#!/bin/bash # use deeptools computematrix and heatmapper to show arid binding # at arid peaks bed=output/macs_peaks/cleaned/all_peaks_fordt.bed signal=$(find data/chip/processed/bw \( -name "arid*.bw" -o -name "snf5*.bw" \) ) matrix_fdir=output/dt_matfiles/ if [ ! -d $matrix_fdir ]; then mkdir -p $matrix_fdir fi f...
50,862
https://github.com/sunafajro/ls-backend/blob/master/client/controllers/SiteController.php
Github Open Source
Open Source
BSD-3-Clause
null
ls-backend
sunafajro
PHP
Code
554
2,126
<?php namespace client\controllers; use client\models\Auth; use client\models\LoginLog; use common\models\BasePollResponse as PollResponse; use common\models\BasePollQuestionResponse as QuestionResponse; use Yii; use client\models\forms\LoginForm; use client\models\Student; use common\models\BasePoll as Poll; use yii...
39,061
https://github.com/google/grr/blob/master/grr/core/grr_response_core/lib/util/chunked_test.py
Github Open Source
Open Source
Apache-2.0
2,023
grr
google
Python
Code
214
1,365
#!/usr/bin/env python import io from absl.testing import absltest from grr_response_core.lib.util import chunked class ReadWriteTest(absltest.TestCase): def testSingleChunk(self): buf = io.BytesIO() chunked.Write(buf, b"foo") buf.seek(0, io.SEEK_SET) self.assertEqual(chunked.Read(buf), b"foo") ...
28,372
https://github.com/Ursinus-CS476-F2020/ImplicitSurfaces/blob/master/marching_cubes.js
Github Open Source
Open Source
Apache-2.0
null
ImplicitSurfaces
Ursinus-CS476-F2020
JavaScript
Code
5,543
14,011
/* * Copyright 2010, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
13,324
https://github.com/sm4rtisan/spring-framework-5.0.2.RELEASE/blob/master/a-test/src/main/java/beans/LoginDao.java
Github Open Source
Open Source
Apache-2.0
null
spring-framework-5.0.2.RELEASE
sm4rtisan
Java
Code
16
58
package beans; import org.springframework.stereotype.Component; @Component public class LoginDao { public void login() { System.out.println("登录成功"); } }
18,948
https://github.com/brillgates/inventaris/blob/master/assets/plugin/datatables/media/js/dataTables.bootstrap.js
Github Open Source
Open Source
MIT
null
inventaris
brillgates
JavaScript
Code
521
1,485
y) stuff coming from _dayOfMonthOrdinalParse. // TODO: Remove "ordinalParse" fallback in next major release. this._dayOfMonthOrdinalParseLenient = new RegExp( (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + '|' + (/\d{1,2}/).source); } function mergeConfigs(parentConfig...
27,803
https://github.com/hironytic/Pboard/blob/master/Pboard/View/ValueViewController.swift
Github Open Source
Open Source
MIT
2,017
Pboard
hironytic
Swift
Code
1,813
5,407
// // ValueViewController.swift // Pboard // // Copyright (c) 2017 Hironori Ichimiya <hiron@hironytic.com> // // 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...
15,245
https://github.com/tvdias/meotv/blob/master/src/smali_classes2/com/github/davidmoten/rx2/observable/CachedObservable.smali
Github Open Source
Open Source
MIT
2,020
meotv
tvdias
Smali
Code
175
1,069
.class public final Lcom/github/davidmoten/rx2/observable/CachedObservable; .super Lio/reactivex/Observable; .source "CachedObservable.java" # annotations .annotation system Ldalvik/annotation/Signature; value = { "<T:", "Ljava/lang/Object;", ">", "Lio/reactivex/Observable<", ...
17,442
https://github.com/openslice/io.openslice.sol005nbi.osm5/blob/master/src/main/java/osm5/ns/yang/nfvo/mano/types/rev170208/nfvi/metrics/network/Incoming.java
Github Open Source
Open Source
Apache-2.0
null
io.openslice.sol005nbi.osm5
openslice
Java
Code
376
1,040
/*- * ========================LICENSE_START================================= * io.openslice.sol005nbi.osm5 * %% * Copyright (C) 2019 openslice.io * %% * 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 t...
11,446
https://github.com/Johnys/secret-friend/blob/master/backend/src/controllers/person.controller.js
Github Open Source
Open Source
MIT
2,018
secret-friend
Johnys
JavaScript
Code
82
280
import BaseController from './base.controller'; import PersonModel from '../models/person.model'; class PersonController extends BaseController { index(req, res) { super.bindResultModel(PersonModel.search(this.makeRegexFilter(req.query, ['name', 'email'])), res); } create(req, res) { const personModel =...
24,115
https://github.com/danielriley06/brewerytracker/blob/master/app/models/user.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,016
brewerytracker
danielriley06
Ruby
Code
12
50
class User < ActiveRecord::Base has_secure_password has_many :breweries extend Slugifiable::ClassMethods include Slugifiable::InstanceMethods end
15,123
https://github.com/pureworldnew/angular_laravel/blob/master/resources/views/emails/booking/confirmation.blade.php
Github Open Source
Open Source
MIT
null
angular_laravel
pureworldnew
PHP
Code
73
341
@extends('app') @section('content') <style> #confirmNavBox { margin-top: 200px; } </style> <div class="row"> <div class="col-sm-10 contentBoxHolder"> <div class="contentBox"> @include("partials.bookingBreadcrumbs") {!! $klarna...
44,971
https://github.com/wesenu/01.CSharp-Fundamentals/blob/master/Exam-Preparation/4th-Problems/4th-Problems.sln
Github Open Source
Open Source
MIT
2,016
01.CSharp-Fundamentals
wesenu
null
Spoken
644
5,888
 Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.24720.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dumbbell", "Dumbbell\Dumbbell.csproj", "{7361F28C-598D-405E-9943-F8B8E5CE3F41}" EndProject Project("{FAE04EC0...
12,424
https://github.com/jimfcarroll/dempsy/blob/master/dempsy-framework.core/src/main/java/net/dempsy/Infrastructure.java
Github Open Source
Open Source
Apache-2.0
2,020
dempsy
jimfcarroll
Java
Code
398
982
package net.dempsy; import java.util.Map; import net.dempsy.cluster.ClusterInfoSession; import net.dempsy.config.ClusterId; import net.dempsy.config.Node; import net.dempsy.monitoring.ClusterStatsCollector; import net.dempsy.monitoring.ClusterStatsCollectorFactory; import net.dempsy.monitoring.NodeStatsCollector; imp...
25,426
https://github.com/inthelamp/book-reviewer3/blob/master/client/src/__tests__/Message.test.js
Github Open Source
Open Source
MIT
null
book-reviewer3
inthelamp
JavaScript
Code
53
169
import renderer from "react-test-renderer"; import Message from "../components/Message"; import "../components/Message.css"; it("Component: Message rendering correctly", () => { const message = "Pass successfully"; const messageStyle = "success_message"; const tree = renderer .create(<Message message={messa...
20,033
https://github.com/BrisyIOS/TodayNewsSwift3.0/blob/master/TodayNews-Swift3.0/TodayNews-Swift3.0/Classes/Home/View/HomeThreeImageCell.swift
Github Open Source
Open Source
Apache-2.0
2,017
TodayNewsSwift3.0
BrisyIOS
Swift
Code
598
2,098
// // HomeThreeImageCell.swift // TodayNews-Swift3.0 // // Created by zhangxu on 2016/10/26. // Copyright © 2016年 zhangxu. All rights reserved. // import UIKit class HomeThreeImageCell: HomeListCommonCell { var homeListModel: HomeListModel? { didSet { // 取出可选类型中的数据 guard l...
12,126
https://github.com/panoptes/PEAS/blob/master/peas/__init__.py
Github Open Source
Open Source
MIT
2,017
PEAS
panoptes
Python
Code
74
289
import os import sys import yaml def load_config(): """ Returns the config information """ _config = dict() # This is global _config_file = '{}/config.yaml'.format(os.getenv('PEAS', '/var/panoptes/PEAS')) _local_config_file = '{}/config_local.yaml'.format(os.getenv('PEAS', '/var/panoptes/PEAS')) ...
3,541
https://github.com/rafareusch/tccreusch/blob/master/application/armDefines.h
Github Open Source
Open Source
MIT
null
tccreusch
rafareusch
C
Code
113
425
// TrustZone Protection Controller Registers #define TZPC_BASE 0x10001000 #define TZPC_DECPROT0_SET ((volatile unsigned char *) (TZPC_BASE + 0x804)) #define TZPC_DECPROT0_CLR ((volatile unsigned char *) (TZPC_BASE + 0x808)) // virtual memory translation table unsigned int translationTable[4096] __attribute__ (...
25,926
https://github.com/lsliangshan/vue-admin-mobile/blob/master/static/bower_components/vue-material/src/core/index.js
Github Open Source
Open Source
MIT
2,016
vue-admin-mobile
lsliangshan
JavaScript
Code
49
171
/* Code Components */ import MdTheme from './components/mdTheme'; import MdInkRipple from './components/mdInkRipple'; import CoreTheme from './stylesheets/core.theme'; /* Core Stylesheets */ import './stylesheets/core.scss'; export default function install(Vue) { if (install.installed) { console.warn('Vue Mater...
52,482
https://github.com/ln1778/xrpl/blob/master/dist/npm/models/transactions/NFTokenAcceptOffer.js
Github Open Source
Open Source
0BSD
null
xrpl
ln1778
JavaScript
Code
120
391
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateNFTokenAcceptOffer = void 0; const errors_1 = require("../../errors"); const common_1 = require("./common"); function validateBrokerFee(tx) { const value = (0, common_1.parseAmountValue)(tx.BrokerFee); if (Number.isNaN(...
49,668
https://github.com/dsccommunity/PostgreSqlDsc/blob/master/source/DSCResources/DSC_PostgreSqlScript/en-US/DSC_PostgreSqlScript.strings.psd1
Github Open Source
Open Source
MIT
2,021
PostgreSqlDsc
dsccommunity
PowerShell
Code
86
177
<# .SYNOPSIS The localized resource strings in English (en-US) for the resource DSC_PostgreSqlScript. #> ConvertFrom-StringData @' PsqlNotFound = Command line executable psql.exe not found at location {0}. Please ensure commandline option was installed from the PostgreSQL EDB installer. Ex...
5,399
https://github.com/santedb/santedb-server/blob/master/SanteDB.Persistence.Data.ADO/Data/SQL/Updates/20201128-PSQL.sql
Github Open Source
Open Source
Apache-2.0
2,019
santedb-server
santedb
SQL
Code
66
424
/** * <feature scope="SanteDB.Persistence.Data.ADO" id="20201128-01" name="Update:20201128-01" applyRange="1.1.0.0-1.2.0.0" invariantName="npgsql"> * <summary>Update: Register </summary> * <remarks>Adds policies which control impersination</remarks> * <isInstalled>select ck_patch('20201128-01')</isInstalled> * ...
45,244
https://github.com/KeyBridge/lib-niem/blob/master/src/main/java/gov/niem/release/niem/niem_core/ImageType.java
Github Open Source
Open Source
Apache-2.0
null
lib-niem
KeyBridge
Java
Code
233
668
/* * Copyright 2018 Key Bridge. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
22,884
https://github.com/Gattag/projector-client/blob/master/projector-agent-ij-injector/src/main/kotlin/org/jetbrains/projector/agent/ijInjector/IjLigaturesDisablerTransformer.kt
Github Open Source
Open Source
MIT
2,021
projector-client
Gattag
Kotlin
Code
402
1,085
/* * MIT License * * Copyright (c) 2019-2021 JetBrains s.r.o. * * 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, ...
40,169
https://github.com/jbgi/plutus/blob/master/cabal.project
Github Open Source
Open Source
2,018
plutus
jbgi
null
Spoken
43
181
packages: language-plutus-core plutus-core-interpreter plutus-exe core-to-plc wallet-api plutus-th plutus-use-cases optimization: 2 constraints: language-plutus-core +development , wallet-api +development , core-to-plc +development ...
45,226
https://github.com/eboxmaker/eboxFramework-rtt/blob/master/ebox/interface/i2c/i2c.cpp
Github Open Source
Open Source
MIT
2,022
eboxFramework-rtt
eboxmaker
C++
Code
345
1,087
#include "i2c.h" void I2c::beginTransmission(uint8_t address) { transmitting = 1; txAddress = address; txIndex = 0; txLength = 0; } // void I2c::beginTransmission(int address) { beginTransmission((uint8_t)address); } uint8_t I2c::endTransmission(void) { return endTransmission(true); } uint8...
31,393
https://github.com/hopehomehealth/kk/blob/master/application/models/Son_model.php
Github Open Source
Open Source
MIT
null
kk
hopehomehealth
PHP
Code
468
2,095
<?php class Son_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } public function total_son_reward($user_id) { $this->db->select_sum('money'); $this->db->where('user_id', $user_id); $this->db->where...
43,891
https://github.com/Gym/strava/blob/master/src/models/summaryClub.ts
Github Open Source
Open Source
MIT
2,022
strava
Gym
TypeScript
Code
42
115
import { ResourceState, SportType } from '../enums' export interface SummaryClub { id: number resource_state: ResourceState name: string profile_medium: string cover_photo: string cover_photo_small: string sport_type: SportType city: string state: string country: string private: boolean member_...
4,314
https://github.com/abhilashcb8/COKPME/blob/master/COKPME.owl
Github Open Source
Open Source
CC0-1.0
null
COKPME
abhilashcb8
null
Spoken
2,146
18,877
<?xml version="1.0"?> <rdf:RDF xmlns="http://www.iiitdwd.ac.in/ACB/K-COVID19-2#" xml:base="http://www.iiitdwd.ac.in/ACB/K-COVID19-2" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xml="http://w...
49,662
https://github.com/calfgz/dapeng-soa/blob/master/dapeng-transaction/dapeng-transaction-api/src/main/java/com/github/dapeng/transaction/api/GlobalTransactionTemplate.java
Github Open Source
Open Source
Apache-2.0
2,022
dapeng-soa
calfgz
Java
Code
230
606
/* * 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 may ...
12,845
https://github.com/CharlieJ0hn/AppToolkit/blob/master/renderer/src/pages/Main/Node/components/NpmRegistry/index.module.scss
Github Open Source
Open Source
MIT
2,022
AppToolkit
CharlieJ0hn
SCSS
Code
40
142
.row { margin-bottom: 32px; display: flex; align-items: center; .subTitle { font-size: 16px; font-weight: 500; } .select { min-width: 100%; } } .selectItemRender { display: flex; align-items: center; img { margin-left: 20px; } } .promptIcon { color: #f9ca24; margin-left: ...
4,949
https://github.com/simon596/FFTHomPy/blob/master/examples/lowRankTensorApproximations/setting.py
Github Open Source
Open Source
MIT
2,020
FFTHomPy
simon596
Python
Code
552
3,122
import numpy as np from ffthompy import Struct, Timer from ffthompy.materials import Material from ffthompy.tensorsLowRank.materials import LowRankMaterial try: from uq.decomposition import KL_Fourier except: import warnings warnings.warn('Package StoPy (https://github.com/vondrejc/StoPy) is not available;...
32,338
https://github.com/liaozhoubei/Android_Example/blob/master/taskdispatcher/src/main/java/com/example/taskdispatcher/example/net/OkHttpDNS.java
Github Open Source
Open Source
Apache-2.0
2,021
Android_Example
liaozhoubei
Java
Code
97
370
package com.example.taskdispatcher.example.net; import android.content.Context; import com.alibaba.sdk.android.httpdns.HttpDns; import com.alibaba.sdk.android.httpdns.HttpDnsService; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.Arrays; import java.util.List; import okhttp3.Dn...
758
https://github.com/machuanjia/ngx-editor/blob/master/demo/src/app/demo-thy-translate.ts
Github Open Source
Open Source
MIT
null
ngx-editor
machuanjia
TypeScript
Code
57
161
import { Injectable } from '@angular/core'; import { TranslateService } from '@ngx-translate/core'; import { Observable } from 'rxjs'; @Injectable() export class DemoThyTranslate { constructor(private translate: TranslateService) { } instant(key: string | Array<string>, interpolateParams?: Object): strin...
19,068
https://github.com/jarekankowski/pegasus_spyware/blob/master/sample4/decompiled_raw/smali/com/lenovo/feedback2/message/Message.smali
Github Open Source
Open Source
MIT
2,022
pegasus_spyware
jarekankowski
Smali
Code
411
1,870
.class public Lcom/lenovo/feedback2/message/Message; .super Ljava/lang/Object; .source "Message.java" # interfaces .implements Landroid/os/Parcelable; # static fields .field public static final CREATOR:Landroid/os/Parcelable$Creator; .annotation system Ldalvik/annotation/Signature; value = { ...
29,169
https://github.com/wkwk-dev/mexa/blob/master/contracts/6/test/MockFeeManager.sol
Github Open Source
Open Source
MIT
2,022
mexa
wkwk-dev
Solidity
Code
88
275
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "../interfaces/IFeeManager.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract MockFeeManager is IFeeManager,Ownable{ uint16 bp; mapping(address => bool) public tokenAllowed; constructor(uint16 _bp) public{ bp = _...
25,644
https://github.com/dbrugger/ibm-cloud-paks/blob/master/packages/ibm-products/src/components/EditInPlace/EditInPlace.stories.js
Github Open Source
Open Source
Apache-2.0
2,023
ibm-cloud-paks
dbrugger
JavaScript
Code
383
1,106
/** * Copyright IBM Corp. 2022, 2022 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React, { useState } from 'react'; import { getStoryTitle, prepareStory, } from '../../global/js/utils/story-helper'; import { acti...
28,441
https://github.com/viticm/plain/blob/master/framework/core/src/db/schema/postgres_builder.cc
Github Open Source
Open Source
MIT
2,022
plain
viticm
C++
Code
49
197
#include "pf/support/helpers.h" #include "pf/db/connection_interface.h" #include "pf/db/schema/grammars/grammar.h" #include "pf/db/schema/postgres_builder.h" using namespace pf_support; using namespace pf_db::schema; //Determine if the given table exists. bool PostgresBuilder::has_table(const std::string &a_table) { ...
13,698
https://github.com/LegalizeAdulthood/cimple/blob/master/src/providers/StringArray/module.cpp
Github Open Source
Open Source
MIT
2,020
cimple
LegalizeAdulthood
C++
Code
76
361
//============================================================================== // // PLEASE DO NOT EDIT; THIS FILE WAS AUTOMATICALLY GENERATED BY GENMOD 2.0.23 // //============================================================================== /* NOCHKSRC */ #include <cimple/cimple.h> using namespace cimple; CIMPL...
21,938
https://github.com/ray-milkey/onos-config/blob/master/pkg/store/configuration/configuration.go
Github Open Source
Open Source
Apache-2.0
2,022
onos-config
ray-milkey
Go
Code
1,051
3,050
// Copyright 2021-present Open Networking Foundation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
13,300
https://github.com/ApexCaptain/Koconut/blob/master/src/components/KoconutPrimitive.ts
Github Open Source
Open Source
Apache-2.0
null
Koconut
ApexCaptain
TypeScript
Code
553
1,484
`use strict`; import { KoconutYieldable, KoconutOpener, KoconutSequence, Sequence, Selector, Processor, } from '../module'; export class KoconutPrimitive<DataType> implements KoconutYieldable<DataType> { protected data: DataType | null; protected prevYieldable?: KoconutYieldable<any>; protected proc...
29,830
https://github.com/bd71/MilkVita/blob/master/MilkVitaOrganization/obj/Release/Package/PackageTmp/Views/Shop/Delete.cshtml
Github Open Source
Open Source
MIT
null
MilkVita
bd71
C#
Code
100
447
@model MilkVitaOrganization.Models.tbl_ShopList @{ ViewBag.Title = "Delete"; Layout = "~/Views/Shared/_Layout.cshtml"; } <h2>Delete</h2> <h3>Are you sure you want to delete this?</h3> <div> <h4>Shop List</h4> <hr /> <dl class="dl-horizontal"> <dt> @Html.DisplayNameFor(model =...
4,986
https://github.com/unice2345/c-primer-plus-5th-exercises/blob/master/exercises/chapter5/exercise_5.8_temperatures.c
Github Open Source
Open Source
Apache-2.0
null
c-primer-plus-5th-exercises
unice2345
C
Code
70
226
/* temperatures.c -- 打印华氏温度,摄氏温度和绝对温度 */ #include <stdio.h> void temperatures(double fahrenheit) { const double a = 1.8; const double b = 32.0; const double c = 273.16; double celsius = a * fahrenheit + b; double kelvin = celsius + c; printf("F is %.2f, c is %.2f, k is %.2f\n" , f...
35,075
https://github.com/little-pinecone/keycloak-spring-boot/blob/master/src/main/java/in/keepgrowing/keycloakspringboot/security/config/SecurityConfig.java
Github Open Source
Open Source
Unlicense
null
keycloak-spring-boot
little-pinecone
Java
Code
119
667
package in.keepgrowing.keycloakspringboot.security.config; import org.keycloak.adapters.springsecurity.KeycloakConfiguration; import org.keycloak.adapters.springsecurity.authentication.KeycloakAuthenticationProvider; import org.keycloak.adapters.springsecurity.config.KeycloakWebSecurityConfigurerAdapter; import org.sp...
14,087
https://github.com/nsip/sif3-naplan-adapter/blob/master/sif3-naplan-provider/src/main/java/sif3/au/naplan/provider/service/TestDataService.java
Github Open Source
Open Source
Apache-2.0
2,018
sif3-naplan-adapter
nsip
Java
Code
11
56
package sif3.au.naplan.provider.service; import sif3.au.naplan.api.model.NaplanResponse; public interface TestDataService extends NaplanService<NaplanResponse> { }
23,071
https://github.com/roman-rybalko/wcs/blob/master/web_construction_set/database/relational/user.php
Github Open Source
Open Source
BSD-2-Clause
null
wcs
roman-rybalko
PHP
Code
197
645
<?php namespace WebConstructionSet\Database\Relational; class User implements \WebConstructionSet\Database\User { private $table; public function __construct(\WebConstructionSet\Database\Relational $db, $tableName = 'users') { $this->table = new \WebConstructionSet\Database\Relational\TableWrapper($db, $tableNam...
3,960
https://github.com/beaubadilla/cpsc484_computer_graphics/blob/master/project-2-beaub-project2/gfxnumeric.hpp
Github Open Source
Open Source
MIT
2,020
cpsc484_computer_graphics
beaubadilla
C++
Code
201
555
/////////////////////////////////////////////////////////////////////////////// // gfxnumeric.hpp // // Numeric operations and constants for graphics programming. // // Students: this header is complete as provided; you do not need to edit this // file. /////////////////////////////////////////////////////////////////...
26,224
https://github.com/lutfiadysh/dart_classroom_laravel/blob/master/resources/views/layouts/navbars/navs/auth.blade.php
Github Open Source
Open Source
MIT
2,020
dart_classroom_laravel
lutfiadysh
Blade
Code
132
685
<!-- Navbar --> <nav class="navbar navbar-expand-lg navbar-transparent navbar-absolute fixed-top "> <div class="container-fluid"> <div class="navbar-wrapper"> <a class="navbar-brand" href="/home">{{ $activePage }}</a> </div> <button class="navbar-toggler" type="button" data-toggle="collapse" aria-co...
14,088
https://github.com/maxhuppertz/grad_school_code/blob/master/econ_666/prop/linreg.py
Github Open Source
Open Source
MIT
2,020
grad_school_code
maxhuppertz
Python
Code
1,224
2,811
################################################################################ ### Part 1: Setup ################################################################################ # Import necessary packages import numpy as np import pandas as pd from joblib import Parallel, delayed from multiprocessing import cpu_cou...
43,092
https://github.com/V4Fire/Client/blob/master/src/traits/i-lock-page-scroll/i-lock-page-scroll.ts
Github Open Source
Open Source
MIT
2,023
Client
V4Fire
TypeScript
Code
542
1,900
/* eslint-disable @typescript-eslint/no-unused-vars-experimental */ /*! * V4Fire Client Core * https://github.com/V4Fire/Client * * Released under the MIT license * https://github.com/V4Fire/Client/blob/master/LICENSE */ /** * [[include:traits/i-lock-page-scroll/README.md]] * @packageDocumentation */ import...
20,202
https://github.com/solutioninnovators/SI-Forms/blob/master/HiddenField/HiddenFieldUi.php
Github Open Source
Open Source
MIT
2,022
SI-Forms
solutioninnovators
PHP
Code
53
168
<?php namespace ProcessWire; class HiddenFieldUi extends FieldUi { public function fieldValidate() { if((int)$this->maxLength > 0) { if(strlen($this->value) > (int)$this->maxLength) { $this->error = __('Max length exceeded.'); } } // Filter text w/ ProcessWire's sanitizer @todo: move to proper filte...
35,852
https://github.com/jgall/cubezapp2/blob/master/assets/scripts/view/app/graph.js
Github Open Source
Open Source
BSD-2-Clause, LicenseRef-scancode-unknown-license-reference
2,015
cubezapp2
jgall
JavaScript
Code
36
119
(function() { function Graph() { this._element = $('#footer .stats-contents .graph'); } Graph.prototype.layout = function(left, width) { this._element.css({left: left, width: width}); }; Graph.prototype.setVisible = function(flag) { this._element.css({display: flag ? 'block' : 'none'}); ...
22,325
https://github.com/tjshep/opentitan/blob/master/hw/ip/keymgr/rtl/keymgr_reg_top.sv
Github Open Source
Open Source
Apache-2.0
null
opentitan
tjshep
null
Spoken
5,415
23,473
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // Register Top module auto-generated by `reggen` `include "prim_assert.sv" module keymgr_reg_top ( input clk_i, input rst_ni, // Below Regster interface can ...
9,969
https://github.com/john-bodley/datahub/blob/master/metadata-ingestion/src/datahub/metadata/com/linkedin/pegasus2avro/datajob/azkaban/__init__.py
Github Open Source
Open Source
Apache-2.0
null
datahub
john-bodley
Python
Code
7
29
from ......schema_classes import AzkabanJobTypeClass AzkabanJobType = AzkabanJobTypeClass
140
https://github.com/wnsrl7659/Project-ToyTank/blob/master/PAEngine/include/Grid.h
Github Open Source
Open Source
MIT
2,021
Project-ToyTank
wnsrl7659
C++
Code
225
685
/****************************************************************************** * Author : Ray An * Class : GAM 300 * Brief : (c) DigiPen Institute of Technology 2019 ******************************************************************************/ #pragma once #include <vector> #include <queue> class Grid ...
47,173
https://github.com/jordanmunk/BuddyCMS/blob/master/Buddy.WebApp/Content/assets/js/components/tables/table.js
Github Open Source
Open Source
MIT
2,018
BuddyCMS
jordanmunk
JavaScript
Code
164
464
// Builds the HTML Table out of JSON. function buildHtmlTable(json, selector) { var columns = addAllColumnHeaders(json, selector); var Tbody$ = $('<tbody/>'); for (var i = 0; i < json.length; i++) { var row$ = $('<tr/>'); for (var colIndex = 0; colIndex < columns.length; colIndex++) { ...
24,038
https://github.com/mikhail-khalizev/max/blob/master/source/MikhailKhalizev.Max/source/Program/Auto/z-100a-d247.cs
Github Open Source
Open Source
Apache-2.0
2,020
max
mikhail-khalizev
C#
Code
514
2,147
using System; using MikhailKhalizev.Processor.x86.BinToCSharp; namespace MikhailKhalizev.Max.Program { public partial class RawProgram { [MethodInfo("0x100a_d247-3f058dcb")] public void Method_100a_d247() { ii(0x100a_d247, 5); push(0x28); /* push 0...
30,176
https://github.com/micasa-acerman/letscook_mobile/blob/master/models/Dialog.ts
Github Open Source
Open Source
MIT
2,020
letscook_mobile
micasa-acerman
TypeScript
Code
15
68
export default interface Dialog { user_id:string, display_name:string, last_message_date:string, avatar:{ full:string, '96':string, media_id:number }, message:string }
41,563
https://github.com/TheMathy/RocketEngine/blob/master/RocketEngine/src/RocketEngine/Core/Objects/Camera.h
Github Open Source
Open Source
Apache-2.0
null
RocketEngine
TheMathy
C
Code
205
682
#pragma once #include "glm/glm.hpp" #include "glm/gtc/matrix_transform.hpp" #include "RocketEngine/Core/Objects/GameObject.h" #include "RocketEngine/Core/Window/Window.h" namespace RocketEngine { class Camera : public GameObject { public: Camera(Window& window, const glm::vec4& backgroundColor, f...
46,415
https://github.com/anhhq/anhhq.github.io/blob/master/bin/optimize-geojson.js
Github Open Source
Open Source
MIT
2,022
anhhq.github.io
anhhq
JavaScript
Code
53
265
const geojson = require('../tmp/admins.json') for (let i = 0; i < geojson.features.length; i++) { for (const key in geojson.features[i].properties) { if (null === geojson.features[i].properties[key] || '所属未定地' === geojson.features[i].properties[key] || geojson.features[i].properties[key].match(/支庁$/)) { ...
34,055
https://github.com/adaamz/nextras-orm-phpstan/blob/master/tests/testbox/Types/fixtures/Book.php
Github Open Source
Open Source
MIT
null
nextras-orm-phpstan
adaamz
PHP
Code
14
53
<?php declare(strict_types = 1); namespace NextrasTests\OrmPhpStan\Types; /** */ class Book extends \Nextras\Orm\Entity\Entity { }
26,857
https://github.com/storm-ptr/bark/blob/master/geometry/geometry_ops.hpp
Github Open Source
Open Source
MIT
2,019
bark
storm-ptr
C++
Code
131
465
// Andrew Naplavkov #ifndef BARK_GEOMETRY_GEOMETRY_OPS_HPP #define BARK_GEOMETRY_GEOMETRY_OPS_HPP #include <bark/geometry/geometry.hpp> #include <cmath> #include <stdexcept> namespace bark::geometry { inline double left(const box& val) { return val.min_corner().x(); } inline double right(const box& val) { ...
27,388
https://github.com/eric-erki/deeplearning4j/blob/master/contrib/attic/scalnet/src/test/scala/org/deeplearning4j/scalnet/examples/dl4j/feedforward/IrisCSVExample.scala
Github Open Source
Open Source
Apache-2.0
null
deeplearning4j
eric-erki
Scala
Code
306
1,057
/* * ****************************************************************************** * * Copyright (c) 2021 Deeplearning4j Contributors * * * * This program and the accompanying materials are made available under the * * terms of the Apache License, Version 2.0 which is available at * * https://www.apache.or...
22,495
https://github.com/wpi-arn-spring-2019/Turtlebot-3-Navigation/blob/master/catkin_ws/src/local_navigator/src/local_navigator.cpp
Github Open Source
Open Source
BSD-3-Clause
null
Turtlebot-3-Navigation
wpi-arn-spring-2019
C++
Code
1,053
4,894
#include <local_navigator.hpp> namespace Turtlebot { LocalNavigator::LocalNavigator(ros::NodeHandle&nh, ros::NodeHandle&pnh) { m_path_sub = nh.subscribe<nav_msgs::Path>("/global_path", 10, &LocalNavigator::pathCallback, this); m_pose_sub = nh.subscribe<geometry_msgs::PoseWithCovarianceStamped>("/pf_pose", 10,...
6,118
https://github.com/oonsamyi/flow/blob/master/tests/react_no_jsx_intrinsics/test.js
Github Open Source
Open Source
MIT
2,022
flow
oonsamyi
JavaScript
Code
9
26
// @flow declare var React: {createElement: React$CreateElement}; <div />;
14,204
https://github.com/abailly/jautomata/blob/master/jautomata-core/src/main/java/rationals/properties/TraceEquivalence.java
Github Open Source
Open Source
Apache-2.0
2,017
jautomata
abailly
Java
Code
599
1,623
/* * (C) Copyright 2005 Arnaud Bailly (arnaud.oqube@gmail.com), * Yves Roos (yroos@lifl.fr) and others. * * 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...
23,862
https://github.com/Roy-Susmita/BoiGhor/blob/master/database/seeds/ProductTableSeeder.php
Github Open Source
Open Source
MIT
2,021
BoiGhor
Roy-Susmita
PHP
Code
73
568
<?php use Illuminate\Database\Seeder; class ProductTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $product=new\App\Product([ 'imagePath'=>'https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcSLUzEwCY...
51,788
https://github.com/coder-clan/lock-redis/blob/master/src/main/java/org/coderclan/lock/redis/LockRedisAutoConfiguration.java
Github Open Source
Open Source
Apache-2.0
null
lock-redis
coder-clan
Java
Code
37
173
package org.coderclan.lock.redis; import org.coderclan.lock.LockService; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; /** * Created by aray.chou.cn(at)gmail(dot)com on...
53,779
https://github.com/AdedayoOpeyemi/space_travelers_hub/blob/master/src/components/RocketList.js
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,021
space_travelers_hub
AdedayoOpeyemi
JavaScript
Code
93
278
/* eslint-disable no-console */ /* eslint-disable react/destructuring-assignment */ import { React, useEffect } from 'react'; import { bindActionCreators } from 'redux'; import { useSelector, useDispatch } from 'react-redux'; import Rocket from './RocketItem'; import { loadRocketsData } from '../redux/rockets/rockets';...
41,441
https://github.com/Joel-Milligan/CITS3001-Project/blob/master/src-py/resistance/monte_simulation.py
Github Open Source
Open Source
MIT
null
CITS3001-Project
Joel-Milligan
Python
Code
625
1,625
from agent import Agent from random_agent import RandomAgent import random from typing import List from monte_node import Phase class SimulationGame: ''' A class for maintaining the state of a game of The Resistance. A agent oriented architecture is maintained where the game has a list of Agents and ...
21,693
https://github.com/lmenezes/x/blob/master/packages/x-components/src/utils/html.ts
Github Open Source
Open Source
Apache-2.0
2,022
x
lmenezes
TypeScript
Code
90
142
/** * Returns true if the two elements are the same, or if `b` is a child of `a`. * * @param a - The element to check if it is equal to `b` or if it contains `b`. * @param b - The element to check if it is equal to `a` or contained inside it. * @returns True if `a` is equal to `b` or if it contains `b`. * * @pub...
30,622
https://github.com/williamrlbrito/code-shopping/blob/master/_angular-app/src/app/models.ts
Github Open Source
Open Source
MIT
2,019
code-shopping
williamrlbrito
TypeScript
Code
26
57
export interface Category { id?: number; name: string; readonly slug?: string; active: boolean; readonly created_at?: { date: string }; readonly update_at?: { date: string }; }
16,767
https://github.com/GrowMoi/moi-front-end/blob/master/app/scripts/values/neurons-options.js
Github Open Source
Open Source
Apache-2.0
null
moi-front-end
GrowMoi
JavaScript
Code
1,396
5,937
(function() { 'use strict'; angular.module('moi') .value('NeuronsOptions', { 'root': { color: 'yellow' }, 'second-level-0': { color: 'blue' }, 'second-level-1': { color: 'green' }, 'second-level-2': { color: 'yellow' }, 'seco...
4,023
https://github.com/AldenVic/blackjack/blob/master/test/test_card.rb
Github Open Source
Open Source
MIT
2,014
blackjack
AldenVic
Ruby
Code
29
130
$LOAD_PATH << '../lib' require_relative '../lib/card' require_relative '../lib/blackjack_card_value' require 'minitest/spec' require 'minitest/autorun' describe Card do it "should initialize correctly" do card = Card.new(CardSuit::SPADE, BlackjackCardValue::FIVE) card.rank.must_equal BlackjackCardValue::F...
38,017
https://github.com/andyChenAn/caview/blob/master/src/styles/index.less
Github Open Source
Open Source
MIT
2,022
caview
andyChenAn
Less
Code
8
38
@import './custom.less'; @import './animate.less'; @import './iconfont/iconfont.css'; @import './components/index';
17,602
https://github.com/pkosiniak/offer-list-chrome-ext/blob/master/src/Modules/CellsCollection/modules/LinkCellItem/LinkListItem.tsx
Github Open Source
Open Source
MIT
null
offer-list-chrome-ext
pkosiniak
TypeScript
Code
74
238
import React from 'react'; import { OfferLink } from '../../../../types/job'; import EditLinkItem from './EditLinkItem'; import { ListItemPickFromExpandable } from '../../../Cells/shared/types'; import DisabledLinkItem from './DisableLinkItem'; interface ItemProps extends ListItemPickFromExpandable { link: OfferLin...
20,354
https://github.com/noscripter/lux/blob/master/src/packages/router/test/namespace.test.js
Github Open Source
Open Source
MIT
null
lux
noscripter
JavaScript
Code
270
798
// @flow import { expect } from 'chai'; import { it, describe, before, beforeEach } from 'mocha'; import Namespace from '../namespace'; import setType from '../../../utils/set-type'; import { getTestApp } from '../../../../test/utils/get-test-app'; import type Controller from '../../controller'; describe('module "r...
9,590
https://github.com/mouchtaris/jleon/blob/master/src/main/scala-2.12/gv/jleon/config/package.scala
Github Open Source
Open Source
MIT
2,017
jleon
mouchtaris
Scala
Code
66
164
package gv.jleon import com.typesafe.config.{ ConfigValue, ConfigFactory } package object config extends AnyRef with TypeAlias { protected[config] final object key { val mirrors = "mirrors" val storage = "storage" } final object Config { def apply(): Config = ConfigFactory.defaultApplication()...
25,024
https://github.com/papan-singh/cortx-motr-1/blob/master/lib/ut/atomic.c
Github Open Source
Open Source
Apache-2.0
2,022
cortx-motr-1
papan-singh
C
Code
909
2,583
/* -*- C -*- */ /* * Copyright (c) 2011-2020 Seagate Technology LLC and/or its Affiliates * * 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...
35,346
https://github.com/swarnend/lp-opt-tool/blob/master/ilit/utils/__init__.py
Github Open Source
Open Source
MIT, Apache-2.0, Intel
2,020
lp-opt-tool
swarnend
Python
Code
18
48
from .kl_divergence import KL_Divergence from .collect_layer_histogram import LayerHistogramCollector from .logger import log, info, debug, warn, warning, error, fatal
38,067
https://github.com/zesion21/blogWeb_font/blob/master/app/controller/typeController.php
Github Open Source
Open Source
Apache-2.0
null
blogWeb_font
zesion21
PHP
Code
77
315
<?php namespace app\controller; use app\BaseController; use app\model\Type; use app\Result\Result; use think\facade\Db; use think\db\exception\DataNotFoundException; use think\db\exception\DbException; use think\db\exception\ModelNotFoundException; use think\Exception; use think\Model; use think\response\Json; cla...
20,153
https://github.com/netsights/moebio_framework/blob/master/src/tools/graphic/DrawTexts.js
Github Open Source
Open Source
MIT
2,020
moebio_framework
netsights
JavaScript
Code
467
1,285
import StringList from "src/dataTypes/strings/StringList"; /** * @classdesc static Class with methods to render text in canvas * @namespace * @category drawing */ function DrawTexts() {} export default DrawTexts; DrawTexts.POINT_TO_PIXEL = 1.3333; DrawTexts.PIXEL_TO_POINT = 0.75; /** * @todo write docs */ Draw...
21,744
https://github.com/yudaprama/iso20022/blob/master/model/Counterparty9Choice.go
Github Open Source
Open Source
MIT
2,023
iso20022
yudaprama
Go
Code
65
190
package model // Choice between buyer and seller. type Counterparty9Choice struct { // Party that sells goods or services, or a financial instrument. Seller *PartyIdentificationAndAccount106 `xml:"Sellr"` // Party that buys goods or services, or a financial instrument. Buyer *PartyIdentificationAndAccount106 `xm...
52,765
https://github.com/TheMourningDawn/InfinityGoggles/blob/master/InfinityGoggles.ino
Github Open Source
Open Source
Apache-2.0
null
InfinityGoggles
TheMourningDawn
null
Spoken
1,943
5,426
// The googly eye effect is based on a physical model of a pendulum. // The pendulum motion is driven by accelerations in 2 axis. // Eye color varies with orientation of the magnetometer #include <Wire.h> #include <SPI.h> #include <Adafruit_Sensor.h> #include <Adafruit_LSM9DS0.h> #include <Adafruit_Simple_AHRS.h> #incl...
18,347
https://github.com/alltheplaces/alltheplaces/blob/master/locations/spiders/biedronka_pl.py
Github Open Source
Open Source
CC0-1.0, MIT
2,023
alltheplaces
alltheplaces
Python
Code
100
462
from scrapy import Spider from scrapy.http import JsonRequest from locations.categories import Extras, apply_yes_no from locations.dict_parser import DictParser from locations.hours import DAYS_FULL, OpeningHours class BiedronkaPLSpider(Spider): name = "biedronka_pl" item_attributes = {"brand": "Biedronka", ...
33,332
https://github.com/thaishdz/TrackTimeApp/blob/master/resources/views/partials/modals/delete.blade.php
Github Open Source
Open Source
MIT
2,018
TrackTimeApp
thaishdz
Blade
Code
110
504
<div class="modal modal-danger fade" id="delete"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">&times;</span></button> ...
50,557