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/danbrellis/marylandnature/blob/master/wp-content/plugins/events-maker/includes/class-listing.php
Github Open Source
Open Source
MIT
2,022
marylandnature
danbrellis
PHP
Code
1,651
5,344
<?php if ( ! defined( 'ABSPATH' ) ) exit; /** * Events_Maker_Listing Class. */ class Events_Maker_Listing { public function __construct() { //actions add_action( 'manage_posts_custom_column', array( $this, 'add_new_event_columns_content' ), 10, 2 ); add_action( 'restrict_manage_posts', array( $this, 'filter...
51,921
https://github.com/jasonb5/cdms/blob/master/Lib/cdmsobj.py
Github Open Source
Open Source
BSD-3-Clause
2,020
cdms
jasonb5
Python
Code
2,860
7,320
""" CDMS module-level functions and definitions """ from . import cdmsNode import cdtime import glob import os import re import string import sys # import types # import internattr # Data types CdChar = cdmsNode.CdChar CdByte = cdmsNode.CdByte CdShort = cdmsNode.CdShort CdInt = cdmsNode.CdInt CdLong = cdmsNode.CdLon...
30,253
https://github.com/nasa/SCRD/blob/master/Code/SCRD_BRE/src/java/ejb/gov/opm/scrd/services/impl/reporting/DailySuspenseReportRequest.java
Github Open Source
Open Source
Apache-2.0
2,015
SCRD
nasa
Java
Code
73
186
/* * Copyright (C) 2014 TopCoder Inc., All Rights Reserved. */ package gov.opm.scrd.services.impl.reporting; import gov.opm.scrd.entities.application.ReportRequest; /** * This class represents the request for the daily suspense report. <p> <strong>Thread-safety:</strong> This class * is * mutable and not thread ...
597
https://github.com/infolabs/django-edw-fluent/blob/master/edw_fluent/plugins/hottag/tasks/update_hot_tags.py
Github Open Source
Open Source
MIT
2,022
django-edw-fluent
infolabs
Python
Code
415
1,546
# -*- coding: utf-8 -*- from __future__ import unicode_literals from celery import shared_task from datetime import timedelta from bs4 import BeautifulSoup from django.utils import timezone from edw_fluent.plugins.hottag.utils import turncat from edw_fluent.plugins.hottag.models import HotTag from edw_fluent.plugi...
9,732
https://github.com/DimchoLakov/MyOnlineShop-Domain-Driven-Design/blob/master/MyOnlineShop/MyOnlineShop.Domain/Catalog/Specifications/Categories/CategoryByIsActiveSpecification.cs
Github Open Source
Open Source
MIT
2,021
MyOnlineShop-Domain-Driven-Design
DimchoLakov
C#
Code
50
185
namespace MyOnlineShop.Domain.Catalog.Specifications.Categories { using MyOnlineShop.Domain.Catalog.Models.Categories; using MyOnlineShop.Domain.Common; using System; using System.Linq.Expressions; public class CategoryByIsActiveSpecification : Specification<Category> { private readonl...
50,182
https://github.com/SpikeLavender/algorithm/blob/master/src/main/java/com/natsumes/leetcode/list/ListNode.java
Github Open Source
Open Source
Apache-2.0
null
algorithm
SpikeLavender
Java
Code
202
557
package com.natsumes.leetcode.list; import java.util.ArrayList; import java.util.List; /** * @author hetengjiao */ public class ListNode { int val; ListNode next; boolean hasCycle; ListNode() { } ListNode(int val) { this.val = val; this.hasCycle = false; } List...
44,617
https://github.com/shahkairav/cs3205_computer_networks/blob/master/A1/src/Makefile
Github Open Source
Open Source
MIT
null
cs3205_computer_networks
shahkairav
Makefile
Code
19
48
run: gcc -w -g server.c -o server gcc -w -g client.c -o client clean: rm -rf server client MAILSERVER/
41,631
https://github.com/aws/amazon-cloudwatch-agent/blob/master/cfg/aws/aws_sdk_logging_test.go
Github Open Source
Open Source
MIT
2,023
amazon-cloudwatch-agent
aws
Go
Code
132
628
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT package aws import ( "testing" "github.com/aws/aws-sdk-go/aws" ) func TestSetSDKLogLevel(t *testing.T) { cases := []struct { sdkLogLevelString string expectedVal aws.LogLevelType }{ // sdkLogLevelSt...
42,277
https://github.com/nullcore1024/rma4go/blob/master/Makefile
Github Open Source
Open Source
MIT
null
rma4go
nullcore1024
Makefile
Code
10
24
all: go build . clean: rm -rf rma4go *.json data
47,900
https://github.com/iantal/AndroidPermissions/blob/master/apks/playstore_apps/com_ubercab/app/smali_classes5/-$$Lambda$abhn$5lcsTpY3Aflg027pvLFLCRELuZ8.smali
Github Open Source
Open Source
Apache-2.0
2,019
AndroidPermissions
iantal
Smali
Code
60
302
.class public final synthetic L-$$Lambda$abhn$5lcsTpY3Aflg027pvLFLCRELuZ8; .super Ljava/lang/Object; .source "lambda" # interfaces .implements Lacfy; # instance fields .field private final synthetic f$0:Labhn; # direct methods .method public synthetic constructor <init>(Labhn;)V .locals 0 invoke-direct {p...
44,629
https://github.com/mdqyy/cnn_autopooling/blob/master/visualize.m
Github Open Source
Open Source
BSD-2-Clause, BSD-3-Clause
2,013
cnn_autopooling
mdqyy
MATLAB
Code
264
573
% visualize : plots sqrt(M) x sqrt(M) pixel images of % handwritten digits % % INPUTS % inputData : a 1 x N cell array, where each element is an % sqrt(M) x sqrt(M) image % plotTitle : string, specifying the title for the plot % % where N is th...
11,137
https://github.com/rogerjdeangelis/utl_symbolic_determination_of_moments_of_a_beta_like_distribution/blob/master/utl_symbolic_determination_of_moments_of_a_beta_like_distribution.sas
Github Open Source
Open Source
MIT
null
utl_symbolic_determination_of_moments_of_a_beta_like_distribution
rogerjdeangelis
null
Spoken
853
2,625
Symbolic determination of moments of a beta like distribution I was gven the density below and was asked to compute the first three moments. Mean, Stdev and Skewness INPUT ===== ( x**2 ( 1 - x**2 ) ) **2 PDF(x) = 105 * ----------------------------- 8 CDF(x) = 15...
33,338
https://github.com/nemerosa/ontrack/blob/master/ontrack-extension-notifications/src/main/java/net/nemerosa/ontrack/extension/notifications/webhooks/auth/BasicWebhookAuthenticator.kt
Github Open Source
Open Source
MIT
2,023
ontrack
nemerosa
Kotlin
Code
102
472
package net.nemerosa.ontrack.extension.notifications.webhooks.auth import com.fasterxml.jackson.databind.JsonNode import net.nemerosa.ontrack.json.parse import net.nemerosa.ontrack.model.annotations.APIDescription import net.nemerosa.ontrack.model.annotations.APILabel import net.nemerosa.ontrack.model.form.Form import...
13,058
https://github.com/aeternity/sdk-terraform/blob/master/Makefile
Github Open Source
Open Source
ISC
null
sdk-terraform
aeternity
Makefile
Code
50
236
BUCKET = beer.aepps.com REGION = eu-central-1 DOMAIN = beer.aepps.com WORK_DIR = letsencrypt EMAIL = aeternity@apeunit.com certificate: $(WORK_DIR) letsencrypt --agree-tos -a letsencrypt-s3front:auth \ -i letsencrypt-s3front:installer \ --letsencrypt-s3front:auth-s3-bucket ${BUCKET} \ --letsencrypt-s3front:a...
29,862
https://github.com/CAFA1/afl/blob/master/qemu_mode/qemu-2.10.0/target/ppc/machine.c
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-generic-cla, GPL-2.0-only, LGPL-2.1-only, GPL-1.0-or-later, LGPL-2.0-or-later, LGPL-2.1-or-later, LicenseRef-scancode-other-copyleft, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause
2,020
afl
CAFA1
C
Code
2,101
8,555
#include "qemu/osdep.h" #include "qemu-common.h" #include "cpu.h" #include "exec/exec-all.h" #include "hw/hw.h" #include "hw/boards.h" #include "sysemu/kvm.h" #include "helper_regs.h" #include "mmu-hash64.h" #include "migration/cpu.h" #include "qapi/error.h" #include "kvm_ppc.h" static int cpu_load_old(QEMUFile *f, vo...
33,540
https://github.com/p2pderivatives/cfd-go/blob/master/apis/key/key.go
Github Open Source
Open Source
MIT
2,021
cfd-go
p2pderivatives
Go
Code
665
2,235
package key import ( cfd "github.com/p2pderivatives/cfd-go" "github.com/p2pderivatives/cfd-go/config" cfdErrors "github.com/p2pderivatives/cfd-go/errors" "github.com/p2pderivatives/cfd-go/types" "github.com/pkg/errors" ) // go generate comment //go:generate -command mkdir mock //go:generate mockgen -source key.g...
11,411
https://github.com/hismightiness/dnnextensions/blob/master/Modules/WillStrohl.ContactCollector/Entities/ContactInfoCollection.vb
Github Open Source
Open Source
MIT
2,021
dnnextensions
hismightiness
Visual Basic
Code
433
1,051
' ' Will Strohl (will.strohl@gmail.com) ' http://www.willstrohl.com ' 'Copyright (c) 2015, Will Strohl '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 ...
51,208
https://github.com/pjeziorowski/qovery-go/blob/master/model_environment_databases_current_metric_response_cpu.go
Github Open Source
Open Source
MIT
2,022
qovery-go
pjeziorowski
Go
Code
1,209
3,086
/* * [BETA] Qovery API * * - Qovery is the fastest way to deploy your full-stack apps on any Cloud provider. - ℹ️ The API is in Beta and still in progress. Some endpoints are not available yet. * * API version: 1.0.0 * Contact: support+api+documentation@qovery.com */ // Code generated by OpenAPI Generator (http...
12,309
https://github.com/EagleDev-io/flutter_repository/blob/master/test/restful_repository_test.dart
Github Open Source
Open Source
MIT
2,022
flutter_repository
EagleDev-io
Dart
Code
415
1,481
import 'dart:convert'; import 'package:dartz/dartz.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:http/http.dart' show Client, Response; import 'package:mockito/mockito.dart'; import 'package:repository/repository.dart'; import './spies/codable_spy.dart'; import './spies/json_codec_spy.dart';...
14,680
https://github.com/zar-network/zar-network/blob/master/x/authority/genesis.go
Github Open Source
Open Source
Apache-2.0
2,019
zar-network
zar-network
Go
Code
89
282
package authority import sdk "github.com/cosmos/cosmos-sdk/types" type GenesisState struct { AuthorityKey sdk.AccAddress `json:"authority_key" yaml:"authority_key"` } func NewGenesisState(authorityKey sdk.AccAddress) GenesisState { return GenesisState{ AuthorityKey: authorityKey, } } func DefaultGenesisState()...
18,947
https://github.com/xenia-project/elemental-forms/blob/master/src/el/value.h
Github Open Source
Open Source
Zlib
2,015
elemental-forms
xenia-project
C++
Code
621
1,478
/** ****************************************************************************** * Elemental Forms : a lightweight user interface framework * ****************************************************************************** * Copyright 2015 Ben Vanik. All rights reserved. Licensed as BSD 3-clause. ...
16,762
https://github.com/lyind/undertow-cors-filter/blob/master/src/main/java/com/stijndewitt/undertow/cors/AllowAll.java
Github Open Source
Open Source
LicenseRef-scancode-free-unknown, CC-BY-4.0, LicenseRef-scancode-unknown-license-reference
2,019
undertow-cors-filter
lyind
Java
Code
183
359
package com.stijndewitt.undertow.cors; /** * A really simple CORS policy that just allows all requests, meaning the filter * will add CORS headers to all requests that have provided an Origin header. * * @see #AllowAll(String) * @see #isAllowed * @see Policy */ public class AllowAll implements Policy { /** ...
45,755
https://github.com/abelbordonado/Akkadu_Challenges/blob/master/full-stack-engineer/submissions/abel_bordonado/server/dist/app.js
Github Open Source
Open Source
MIT
null
Akkadu_Challenges
abelbordonado
JavaScript
Code
307
994
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const compression_1 = __importDefault(require("compression")); // compresses requests const body_parser_...
17,349
https://github.com/5ctechforgood/projectcaring/blob/master/piwik/core/DataAccess/Actions.php
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, GPL-3.0-or-later, LGPL-2.0-or-later, LGPL-2.1-or-later, GPL-3.0-only, GPL-1.0-or-later, MIT
2,018
projectcaring
5ctechforgood
PHP
Code
94
239
<?php /** * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ namespace Piwik\DataAccess; use Piwik\Db; use Piwik\Common; /** * Data Access Object for operations dealing with the log_action table. */ class Actions { /** ...
21,162
https://github.com/ChristopherCanfield/beverage-machine-simulation/blob/master/src/main/java/edu/bu/met/cs665/bev/controller/AmericanoBeverage.java
Github Open Source
Open Source
Apache-2.0
2,019
beverage-machine-simulation
ChristopherCanfield
Java
Code
53
169
package edu.bu.met.cs665.bev.controller; /** * Contains information required to brew an americano. * * @author Christopher D. Canfield */ public class AmericanoBeverage extends CoffeeBeverage { private final Recipe recipe; public AmericanoBeverage() { super("Americano"); Recipe.Builder rb = ne...
14,743
https://github.com/araguaci/react-configure/blob/master/src/components/pages/demo-react-router/DemoReactRouter.jsx
Github Open Source
Open Source
MIT
2,020
react-configure
araguaci
JavaScript
Code
154
535
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { BrowserRouter as Router, Route, Link, Switch } from 'react-router-dom'; import LoadableImage from './LoadableImage'; import Text from './Text'; import UserList from './UserList'; import UserProfile from './UserProfile'; const propTy...
39,861
https://github.com/TropicalSunshine/Pooto-Flight-Data/blob/master/node_modules/@uifabric/utilities/lib/IPoint.d.ts
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,020
Pooto-Flight-Data
TropicalSunshine
TypeScript
Code
20
44
/** * Point interface. * * @public * {@docCategory IPoint} */ export interface IPoint { x: number; y: number; }
1,934
https://github.com/agathu87/Q-A-Board/blob/master/app/components/update-question.js
Github Open Source
Open Source
MIT
2,017
Q-A-Board
agathu87
JavaScript
Code
44
161
import Ember from 'ember'; export default Ember.Component.extend({ showUpdateQuestion: false, actions: { showUpdateQuestion() { this.set('showUpdateQuestion', true) }, hideUpdateQuestion() { this.set('showUpdateQuestion', false), this.set('actualQuestion', '') }, updateQuest...
18,529
https://github.com/eaglesakura/army-knife/blob/master/army-knife/src/main/java/com/eaglesakura/armyknife/android/extensions/AppCompatDialogExtensions.kt
Github Open Source
Open Source
MIT
null
army-knife
eaglesakura
Kotlin
Code
95
292
package com.eaglesakura.armyknife.android.extensions import android.app.Dialog import androidx.appcompat.app.AlertDialog import androidx.lifecycle.Lifecycle /** * AlertDialog link to Lifecycle. * When lifecycle on destroy, then dismiss this dialog. * * @author @eaglesakura * @link https://github.com/eaglesakura/...
29,133
https://github.com/boostchicken/twitch4j/blob/master/rest-helix/src/main/java/com/github/twitch4j/helix/TwitchHelix.java
Github Open Source
Open Source
MIT
null
twitch4j
boostchicken
Java
Code
5,561
12,081
package com.github.twitch4j.helix; import com.github.twitch4j.helix.domain.*; import com.github.twitch4j.helix.webhooks.domain.WebhookRequest; import com.netflix.hystrix.HystrixCommand; import feign.*; import java.util.Date; import java.util.List; import java.util.UUID; /** * Twitch - Helix API */ public interface...
42,366
https://github.com/alphagov/atc/blob/master/db/dbfakes/fake_pipeline.go
Github Open Source
Open Source
Apache-2.0
null
atc
alphagov
Go
Code
6,542
28,556
// Code generated by counterfeiter. DO NOT EDIT. package dbfakes import ( "sync" "time" "code.cloudfoundry.org/lager" "github.com/concourse/atc" "github.com/concourse/atc/db" "github.com/concourse/atc/db/algorithm" "github.com/concourse/atc/db/lock" ) type FakePipeline struct { IDStub func() int iDMu...
48,386
https://github.com/bmaupin/civ5save-editor/blob/master/src/components/DemoButton.js
Github Open Source
Open Source
MIT
2,023
civ5save-editor
bmaupin
JavaScript
Code
127
465
import App from './App'; import Civ5Save from 'civ5save'; import Icon from 'material-ui/Icon'; import { ListItem, ListItemIcon, ListItemText } from 'material-ui/List'; import React from 'react'; const DEMO_SAVE_FILE = 'demo/demo.Civ5Save'; export default function DemoButton(props) { function getFileBlob(url) { ...
12,559
https://github.com/jayrulez/NazaraEngine/blob/master/src/Nazara/Core/MemoryManager.cpp
Github Open Source
Open Source
BSD-3-Clause-Clear, Apache-2.0, MIT
2,020
NazaraEngine
jayrulez
C++
Code
1,083
4,035
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Core module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Core/MemoryManager.hpp> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #i...
52,890
https://github.com/AlexsandroCampos/LP2/blob/master/primeiro bimestre/metodo-hashcode/Carro.java
Github Open Source
Open Source
MIT
null
LP2
AlexsandroCampos
Java
Code
70
154
public class Carro{ private String modelo; private String cor; public Carro(){ this.modelo =""; this.cor =""; } public Carro(String modelo, String cor){ this.modelo = modelo; this.cor = cor; } public int hashCode(){ final int prime = 31; int resultado = 1; resultado = prime...
43,576
https://github.com/gtfierro/taglib-experiments/blob/master/Makefile
Github Open Source
Open Source
BSD-3-Clause
null
taglib-experiments
gtfierro
Makefile
Code
7
30
.PHONY: generate-tag-shims generate-tag-shims: poetry run python generate.py
36,127
https://github.com/bububa/opentaobao/blob/master/model/tmallnr/AlibabaLsyCrmCustomerAddNewResultDo.go
Github Open Source
Open Source
Apache-2.0
2,023
opentaobao
bububa
Go
Code
34
162
package tmallnr // AlibabaLsyCrmCustomerAddNewResultDo 结构体 type AlibabaLsyCrmCustomerAddNewResultDo struct { // 错误信息 ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"` // 错误码 ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` // 出参对象 Data *NrtRecordDto `json:"data,omitempty" xml:"d...
3,596
https://github.com/qiuwenhuifx/PolarDB-for-PostgreSQL/blob/master/external/polar_csn/Makefile
Github Open Source
Open Source
Apache-2.0
2,022
PolarDB-for-PostgreSQL
qiuwenhuifx
Makefile
Code
47
176
# contrib/polar_worker/Makefile MODULE_big = polar_csn OBJS = polar_csn.o EXTENSION = polar_csn DATA = polar_csn--1.0.sql REGRESS = polar_csn TEMP_CONFIG = "polar_csn.conf" NO_INSTALLCHECK = 1 ifdef USE_PGXS PG_CONFIG = pg_config PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) else subdir = external/polar_csn t...
29,096
https://github.com/mkilchhofer/nebraska/blob/master/frontend/src/js/components/Activity/List.tsx
Github Open Source
Open Source
Apache-2.0
null
nebraska
mkilchhofer
TypeScript
Code
108
314
import MuiList from '@material-ui/core/List'; import { makeStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import React from 'react'; import { Activity } from '../../api/apiDataTypes'; import { makeLocaleTime } from '../../utils/helpers'; import Item from './Item'; cons...
43,681
https://github.com/CodeTripper/communiK/blob/master/src/main/java/in/codetripper/communik/domain/template/adapter/NotificationTemplatePersistenceAdaptor.java
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,022
communiK
CodeTripper
Java
Code
241
943
/* * Copyright 2019 CodeTripper * * 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 writ...
17,309
https://github.com/MonoCross/MonoCross/blob/master/Android/MXObservingListActivityView.cs
Github Open Source
Open Source
MIT
2,020
MonoCross
MonoCross
C#
Code
269
667
using System; using Android.App; using Android.Content; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; using MonoCross.Navigation; namespace MonoCross.Droid { /// <summary> /// Abstract class for implementing a ListActivity that observes it's Model /// </summary> ...
27,054
https://github.com/Hero-Rambo/Doraemon/blob/master/commons/service.rest.client/src/test/java/io/usa/doraemon/commons/api/service/rest/client/RestServiceTest.java
Github Open Source
Open Source
Apache-2.0
null
Doraemon
Hero-Rambo
Java
Code
279
1,196
package io.usa.doraemon.commons.api.service.rest.client; import java.net.URLEncoder; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.databind.ObjectMapper; import io.usa.doraemon.commons.api.service.api.ServiceResult; import io.usa.dorae...
34,287
https://github.com/pauldijou/awestruct/blob/master/spec/haml_handler_spec.rb
Github Open Source
Open Source
MIT
2,012
awestruct
pauldijou
Ruby
Code
170
688
require 'awestruct/handlers/file_handler' require 'awestruct/handlers/haml_handler' require 'hashery/open_cascade' describe Awestruct::Handlers::HamlHandler do before :all do @site = OpenCascade.new :encoding=>false, :dir=>Pathname.new( File.dirname(__FILE__) + '/test-data/handlers' ) end def handler_fil...
4,158
https://github.com/sirredbeard/unofficial-webapp-office-poc1/blob/master/snap/gui/excel.desktop
Github Open Source
Open Source
MIT
2,020
unofficial-webapp-office-poc1
sirredbeard
null
Spoken
12
85
[Desktop Entry] Version=2.0 Name=Excel GenericName=Excel Comment=Excel Type=Application Icon=${SNAP}/meta/gui/excel.png Exec=unofficial-webapp-office.excel Terminal=false Keywords=Excel,spreadsheet Categories=Office;Spreadsheet
17,165
https://github.com/smeenai/llvm-project/blob/master/llvm/test/CodeGen/RISCV/unaligned-load-store.ll
Github Open Source
Open Source
NCSA, LLVM-exception, Apache-2.0
2,023
llvm-project
smeenai
LLVM
Code
1,795
5,772
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc -mtriple=riscv32 -verify-machineinstrs < %s \ ; RUN: | FileCheck -check-prefixes=ALL,SLOW,RV32I %s ; RUN: llc -mtriple=riscv64 -verify-machineinstrs < %s \ ; RUN: | FileCheck -check-prefixes=ALL,SLOW,RV64I %s ; RUN: llc -mtripl...
12,630
https://github.com/nfantoni/uml-to-code/blob/master/src/main/java/it/nfantoni/utils/worker/Dao.java
Github Open Source
Open Source
MIT
null
uml-to-code
nfantoni
Java
Code
848
5,110
package it.nfantoni.utils.worker; import it.nfantoni.utils.entities.Association; import it.nfantoni.utils.entities.Attributes; import it.nfantoni.utils.entities.Entity; import it.nfantoni.utils.settings.Settings; import it.nfantoni.utils.sql.SqlUtilities; import it.nfantoni.utils.string.StringUtils; import sun.misc.IO...
46,139
https://github.com/leonavery/worm-CPM/blob/master/worm4/worm4b/sim_2000_60/Params.mk
Github Open Source
Open Source
MIT
null
worm-CPM
leonavery
Makefile
Code
6
54
BASENAME=worm4b MORPHEUSFILE=$(BASENAME).xml CMSTRENGTH=2000 MKTEMP=60 TFINAL=01500 MORPHEUS=morpheus
55,981
https://github.com/JacksonMossman/IntroToPhysics/blob/master/PhysicsScene/Spring.h
Github Open Source
Open Source
MIT
null
IntroToPhysics
JacksonMossman
C
Code
151
361
#pragma once #include "RigidBody.h" #include <Gizmos.h> ///Summary ///Connects Two Rigidbodys and adds a force to keep them together class Spring : public PhysicsObject { private: RigidBody* m_body1;//!< One of the Bodys Connected with this spring RigidBody* m_body2;//!< The other Body Connected with a spring glm:...
47,336
https://github.com/globocom/huskyCI/blob/master/api/token/token_test.go
Github Open Source
Open Source
BSD-3-Clause
2,023
huskyCI
globocom
Go
Code
1,768
7,079
// Copyright 2019 Globo.com authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package token_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" // "encoding/base64" "errors" "hash" "time" . "github.com/globoco...
54,603
https://github.com/specs-feup/specs-hw/blob/master/BinaryTranslation/src/pt/up/fe/specs/binarytranslation/instruction/ast/nodes/base/operand/BareOperandASTNode.java
Github Open Source
Open Source
Apache-2.0
2,022
specs-hw
specs-feup
Java
Code
205
478
/** * Copyright 2021 SPeCS. * * 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 writi...
37,655
https://github.com/jie-cao/satifs/blob/master/src/server/block_service.h
Github Open Source
Open Source
MIT
null
satifs
jie-cao
C
Code
19
72
// // Created by Jie Cao on 7/31/20. // #ifndef SATIFS_BLOCK_SERVICE_H #define SATIFS_BLOCK_SERVICE_H class block_service { }; #endif //SATIFS_BLOCK_SERVICE_H
30,909
https://github.com/huridocs/uwazi/blob/master/app/react/Layout/specs/Icon.spec.js
Github Open Source
Open Source
MIT
2,023
uwazi
huridocs
JavaScript
Code
149
486
import React from 'react'; import { shallow } from 'enzyme'; import { Icon as UIIcon } from 'UI'; import { Icon } from '../Icon'; describe('Icon', () => { let component; let props; describe('Fontawesome', () => { beforeEach(() => { props = { data: { _id: 'iconid', type: 'Icons', label: 'iconla...
55,264
https://github.com/NEWPLAN/AIOS/blob/master/lib/libc/misc/sub.mk
Github Open Source
Open Source
Apache-2.0
null
AIOS
NEWPLAN
Makefile
Code
13
74
LIBC_OBJ+=misc/basename.o \ misc/dirname.o \ misc/localeconv.o \ misc/setlocale.o \ misc/dirent.o \ misc/pwd.o \ misc/grp.o
35,428
https://github.com/jichenghu/levelset-light/blob/master/test/Makefile
Github Open Source
Open Source
BSD-2-Clause
2,018
levelset-light
jichenghu
Makefile
Code
103
354
# (C) Copyright Kirill Lykov 2013. # # Distributed under the FreeBSD Software License (See accompanying file license.txt) # # Make file for oni2avi. Check include and lib pathes before runing. SHELL = /bin/sh .SUFFIXES: .cpp .u .IGNORE: ROOT = runtest EXE = $(ROOT) UNAME := $(shell uname) CC = g++ INCLUDES = -I...
29,323
https://github.com/codewithkyle/restfully-realtime-prototype/blob/master/server/utils.js
Github Open Source
Open Source
MIT
null
restfully-realtime-prototype
codewithkyle
JavaScript
Code
41
116
function buildSuccessResponse(data = null){ return { success: true, data: data, error: null, }; } function buildErrorResponse(error, data = null){ return { success: false, data: data, error: error, }; } function clone(object){ return JSON.parse(JSON....
12,719
https://github.com/irvingpop/habitat-core-plans/blob/master/node6/plan.sh
Github Open Source
Open Source
Apache-2.0
null
habitat-core-plans
irvingpop
Shell
Code
51
247
source "../node/plan.sh" pkg_name=node6 pkg_origin=core pkg_version=6.11.5 pkg_description="Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine." pkg_upstream_url=https://nodejs.org/ pkg_license=('MIT') pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" pkg_source=https://nodejs.org/dist/...
50,309
https://github.com/IcedOtaku/FakeGithub/blob/master/FakeGithub/FakeGithub/Discover/Model/AutoGenerated/CollectionsModel.h
Github Open Source
Open Source
MIT
2,022
FakeGithub
IcedOtaku
C
Code
111
387
// To parse this JSON: // // NSError *error; // CollectionsModel *collectionsModel = [CollectionsModel fromJSON:json encoding:NSUTF8Encoding error:&error]; #import <Foundation/Foundation.h> @class CollectionsModel; NS_ASSUME_NONNULL_BEGIN #pragma mark - Top-level marshaling functions CollectionsModel *_Nullabl...
15,638
https://github.com/FANsZL/hive/blob/master/itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/metadata/TestSemanticAnalyzerHookLoading.java
Github Open Source
Open Source
Apache-2.0
2,022
hive
FANsZL
Java
Code
244
740
/* * 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 ...
19,860
https://github.com/chen0040/cpp-steering-behaviors/blob/master/3DSLoader/Model_3DS.cpp
Github Open Source
Open Source
MIT
2,021
cpp-steering-behaviors
chen0040
C++
Code
605
2,355
#include "Model_3DS.h" #include "../GLExtension/glxs.h" #include <sstream> #ifndef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS #endif // Load 3DS model CModel3DS::CModel3DS(std::string filename) { m_TotalFaces = 0; m_model = lib3ds_file_load(filename.c_str()); // If loading the model failed, we throw...
50,498
https://github.com/lanbetatester/verium/blob/master/src/scrypt.h
Github Open Source
Open Source
MIT
2,017
verium
lanbetatester
C
Code
142
483
#ifndef SCRYPT_H #define SCRYPT_H #include <stdlib.h> #include <stdint.h> static const int Nsize = 1048576; void scrypt_N_1_1_256(const void *input, char *output, void *scratchpad); void scrypt_N_1_1_256_sp_generic(const void *input, char *output, void *scratchpad); #if defined(USE_SSE2) extern void scrypt_detect_ss...
894
https://github.com/dtux0986/om-starter-wp-theme/blob/master/less/navigation.less
Github Open Source
Open Source
Apache-2.0
2,017
om-starter-wp-theme
dtux0986
Less
Code
40
155
/** * Navigation * -------------------------------------------------- */ .o-wrapper { .o-mobile-navigation { } .site-header { &.layout-1 { .o-main-navigation { .o-main-navigation__inner { .clearfix(); .o-main-menu { ul { li { a { } } } } ...
31,025
https://github.com/ocaml/ocaml-lsp/blob/master/lsp/src/string_zipper.ml
Github Open Source
Open Source
ISC
2,023
ocaml-lsp
ocaml
OCaml
Code
1,553
3,408
open! Import module Range = Types.Range type invalid_utf = | Malformed of string | Insufficient_input exception Invalid_utf of invalid_utf let () = Printexc.register_printer (function | Invalid_utf (Malformed s) -> Some (sprintf "malformed %S" s) | Invalid_utf Insufficient_input -> Some "insufficie...
12,142
https://github.com/BreederBai/FMT-Firmware/blob/master/target/pixhawk/fmu-v5/board/rotation.c
Github Open Source
Open Source
Apache-2.0
2,022
FMT-Firmware
BreederBai
C
Code
152
331
/****************************************************************************** * Copyright 2022 The Firmament Authors. 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 ...
56,566
https://github.com/school-engagements/pikater/blob/master/src/org/pikater/core/ontology/subtrees/externalagent/GetExternalAgentJar.java
Github Open Source
Open Source
Apache-2.0
null
pikater
school-engagements
Java
Code
42
139
package org.pikater.core.ontology.subtrees.externalagent; import jade.content.AgentAction; import jade.content.onto.annotations.Slot; public class GetExternalAgentJar implements AgentAction { private static final long serialVersionUID = 8319731892913650189L; private String type; @Slot(mandatory = true) public ...
47,316
https://github.com/Tiankx1003/Scala/blob/master/spark-demo/scala/src/main/scala/com/tian/onclass/day05/onclass/implicitdemo/ImplicitDemo4.scala
Github Open Source
Open Source
Apache-2.0
2,020
Scala
Tiankx1003
Scala
Code
52
158
package com.tian.onclass.day05.onclass.implicitdemo /** * 隐式类 * * @author tian * 2019/9/9 11:51 */ object ImplicitDemo4 { def main(args: Array[String]): Unit = { // implicit def int2RichData1(day:Int) = new RichData1() val ago = "" 1 days ago } /* 构造器只接收一个参数...
56,124
https://github.com/Bullgator351/throneteki/blob/master/server/game/cards/11.2-TMoW/TheWall.js
Github Open Source
Open Source
MIT
2,018
throneteki
Bullgator351
JavaScript
Code
145
560
const DrawCard = require('../../drawcard.js'); class TheWall extends DrawCard { setupCardAbilities(ability) { this.persistentEffect({ match: card => card.getType() === 'character', effect: [ ability.effects.loseFaction('stark'), ability.effects.loseFa...
19,836
https://github.com/Osedea/laravel-openapi-schema-generator/blob/master/src/Rygilles/OpenApiGenerator/OpenApi/JSONSchema.php
Github Open Source
Open Source
MIT
2,019
laravel-openapi-schema-generator
Osedea
PHP
Code
214
718
<?php namespace Rygilles\OpenApiGenerator\OpenApi; /** * A basic representation of a JSON Schema object * @todo Real "JSON Schema Specification Wright Draft 00." integration * * @version 3.0.0 * @see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#schemaObject * @see http://json-sche...
34,995
https://github.com/ElliotSanchez/mSchoolOnline/blob/master/module/Admin/src/Admin/STMath/Progress/Factory.php
Github Open Source
Open Source
BSD-3-Clause
null
mSchoolOnline
ElliotSanchez
PHP
Code
112
488
<?php namespace Admin\STMath\Progress; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; use Zend\Db\ResultSet\ResultSet; use Zend\Db\TableGateway\TableGateway; use Admin\STMath\Progress\Entity as STMathProgress; use Admin\STMath\Progress\Table as STMathProgressTable; use Ad...
53,105
https://github.com/JackGrence/FuzzInspector/blob/master/Makefile
Github Open Source
Open Source
Apache-2.0
2,021
FuzzInspector
JackGrence
Makefile
Code
2
12
http: ./visrun.sh
4,835
https://github.com/Energinet-DataHub/geh-metering-point/blob/master/source/Energinet.DataHub.MeteringPoints.ApplyDBMigrationsApp/Scripts/Model/202110211630 Change FromGrid and ToGrid datatypes.sql
Github Open Source
Open Source
Apache-2.0
2,022
geh-metering-point
Energinet-DataHub
SQL
Code
18
57
ALTER TABLE [ExchangeMeteringPoints] ALTER COLUMN [FromGrid] UNIQUEIDENTIFIER NOT NULL ALTER TABLE [ExchangeMeteringPoints] ALTER COLUMN [ToGrid] UNIQUEIDENTIFIER NOT NULL
2,298
https://github.com/nissoh/proxy/blob/master/lib/commonjs/index.d.ts
Github Open Source
Open Source
MIT
2,017
proxy
nissoh
TypeScript
Code
26
66
import { Stream } from 'most'; export interface Proxy<T> { attach(stream: Stream<T>): Stream<T>; stream: Stream<T>; } export declare function proxy(): Proxy<any>; export declare function proxy<T>(): Proxy<T>;
21,990
https://github.com/fengwk/auto-mapper/blob/master/annotation/src/main/java/fun/fengwk/automapper/annotation/DBType.java
Github Open Source
Open Source
Apache-2.0
2,022
auto-mapper
fengwk
Java
Code
13
42
package fun.fengwk.automapper.annotation; /** * @author fengwk */ public enum DBType { MYSQL; }
42,906
https://github.com/jotaen/klog/blob/master/src/app/commands/testutil_test.go
Github Open Source
Open Source
MIT
2,022
klog
jotaen
Go
Code
368
1,199
package commands import ( . "github.com/jotaen/klog/src" "github.com/jotaen/klog/src/app" "github.com/jotaen/klog/src/app/lib" "github.com/jotaen/klog/src/app/lib/terminalformat" "github.com/jotaen/klog/src/parser" "github.com/jotaen/klog/src/parser/reconciling" gotime "time" ) func NewTestingContext() Testing...
22,543
https://github.com/arokettu/php-random-polyfill/blob/master/src/Arokettu/Random/MathGMP.php
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,023
php-random-polyfill
arokettu
PHP
Code
556
1,607
<?php /** * @copyright Copyright © 2022 Anton Smirnov * @license BSD-3-Clause https://spdx.org/licenses/BSD-3-Clause.html * * @noinspection PhpComposerExtensionStubsInspection * @noinspection PhpReturnDocTypeMismatchInspection * @noinspection PhpIncompatibleReturnTypeInspection */ declare(strict_types=1); nam...
56,369
https://github.com/LevDoesCode/UoL/blob/master/CM2010 Software Design and Development/Topic 4/11.2.7 Try and catch/exception.js
Github Open Source
Open Source
MIT
null
UoL
LevDoesCode
JavaScript
Code
27
83
try { verifyUser(); console.log("After verifyUser"); } catch (exception) { console.log("Exception caught"); console.log("Name: " + exception.name); // Type of exception console.log("Message: " + exception.message); } console.log("I'm still running..");
26,522
https://github.com/zedmyls/flutter_app/blob/master/lib/app/modules/guide/bindings/guide_binding.dart
Github Open Source
Open Source
MIT
2,022
flutter_app
zedmyls
Dart
Code
20
71
import 'package:get/get.dart'; import '../controllers/guide_controller.dart'; class GuideBinding extends Bindings { @override void dependencies() { Get.lazyPut<GuideController>( () => GuideController(), ); } }
10,179
https://github.com/briamjimenez/ayed-2019-1/blob/master/laboratorios/lab4/primalyti(delos 2 tiempos ).py
Github Open Source
Open Source
MIT
2,019
ayed-2019-1
briamjimenez
Python
Code
109
316
from sys import stdin def is_prime(numero): for o in numero : is_prime_2(o) def is_prime_2(o): d = 2 while d * d <= o: if o % d == 0: print ("no") return d += 1 print("si") ##def primality(numero): ## for o in numero: ## cont = 0 ## ...
43,731
https://github.com/MuditSri-2908/Capstone-Vison/blob/master/Capstone/app/src/main/java/com/example/android/capstone/ui/adapter/TagAdapter.java
Github Open Source
Open Source
Apache-2.0
2,021
Capstone-Vison
MuditSri-2908
Java
Code
95
385
package com.example.android.capstone.ui.adapter; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.example.android.capstone.R; import com.example.android.capstone.ui.util.TagViewHolder; ...
25,883
https://github.com/idchlife/browser-game-engine/blob/master/scripts/app/cell-placeable/item/AbstractItem.js
Github Open Source
Open Source
MIT
2,017
browser-game-engine
idchlife
JavaScript
Code
23
64
import AbstractPlaceable from '../AbstractPlaceable.js' class AbstractItem extends AbstractPlaceable { constructor() { super(); this.objectType = 'takeable'; this.renderable = true; } } export default AbstractItem
46,553
https://github.com/maomeng-dev/homingleopards-home/blob/master/layout/view/layout/footer.php
Github Open Source
Open Source
MIT
2,017
homingleopards-home
maomeng-dev
PHP
Code
78
456
<footer> <div class="page-wrap clearfix"> <ul class="pull-right footer-link"> <!-- <li><a href="#" target="_blank" title="我们是谁" rel="noopener">我们是谁</a></li>--> <!-- <li><a href="#" target="_blank" title="联系我们" rel="noopener">联系我们</a></li>--> <!-- <li><a href="#" target="_bla...
23,763
https://github.com/SHIELDJY/ZhixinTongde_WJ100/blob/master/CDK_Projects/ASH067476_Code/zhixintongde/Makefile
Github Open Source
Open Source
Apache-2.0
null
ZhixinTongde_WJ100
SHIELDJY
Makefile
Code
47
242
.PHONY: clean All All: @echo "----------Building project:[ zhixintongde - BuildSet ]----------" @ @make -f "zhixintongde.mk" MakeIntermediateDirs && make -f "zhixintongde.mk" -j 4 @echo Executing Post Build commands ... @export CDKPath="D:/software/C-Sky/CDK" ProjectPath="E:/Documents/GitHub/ZhixinTongde_WJ100/CD...
44,238
https://github.com/clayne/cbmc/blob/master/src/linking/remove_internal_symbols.h
Github Open Source
Open Source
BSD-4-Clause
null
cbmc
clayne
C
Code
56
234
/*******************************************************************\ Module: Remove symbols that are internal only Author: Daniel Kroening \*******************************************************************/ /// \file /// Remove symbols that are internal only #ifndef CPROVER_LINKING_REMOVE_INTERNAL_SYMBOLS_H #de...
1,322
https://github.com/c13n-io/c13n-go/blob/master/Makefile
Github Open Source
Open Source
MIT
2,022
c13n-go
c13n-io
Makefile
Code
449
1,963
.PHONY: clean distclean fmt tidy vendor proto proto-doc mock dev test testlib btcd build-itest lib-utest lib-itest testbackend lint all TARGET := c13n MODULE_NAME = github.com/c13n-io/c13n-go SHELL = /bin/bash include make/release_flags.mk SERVICE_DIR = rpc/services PROTO_IMPORT_PATHS := --proto_path=. --proto_pat...
33,160
https://github.com/kaoecoito/odoo-brasil/blob/master/l10n_br_account/models/cst.py
Github Open Source
Open Source
MIT
2,022
odoo-brasil
kaoecoito
Python
Code
925
2,045
# © 2016 Danimar Ribeiro, Trustcode # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). CST_ICMS = [ ('00', '00 - Tributada Integralmente'), ('10', '10 - Tributada e com cobrança do ICMS por substituição tributária'), # noqa ('20', '20 - Com redução de base de cálculo'), ('30', '30 - ...
2,672
https://github.com/gnusmas12/MyTested.AspNet.TV/blob/master/src/Domain-Driven Design in a Nutshell/Code/Application/Common/Contracts/IQueryRepository.cs
Github Open Source
Open Source
MIT
2,021
MyTested.AspNet.TV
gnusmas12
C#
Code
16
55
namespace CarRentalSystem.Application.Common.Contracts { using Domain.Common; public interface IQueryRepository<in TEntity> where TEntity : IAggregateRoot { } }
9,445
https://github.com/vongocnghia1610/FreshFood_Flutter/blob/master/lib/src/pages/products/create_product_screen.dart
Github Open Source
Open Source
MIT
2,022
FreshFood_Flutter
vongocnghia1610
Dart
Code
1,191
4,763
import 'dart:async'; import 'dart:convert'; import 'dart:io'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_phosphor_icons/flutter_phosphor_icons.dart'; import 'package:freshfood/src/models/group_product.dart'; import 'p...
42,467
https://github.com/vishalbelsare/cpmpy/blob/master/cpmpy/transformations/__init__.py
Github Open Source
Open Source
Apache-2.0
2,022
cpmpy
vishalbelsare
Python
Code
77
142
""" Methods to transform CPMpy expressions in simpler CPMpy expressions Input and output are always CPMpy expressions, so transformations can be chained and called multiple times, as needed. A transformation can not modify expressions in place but in that case should create and return new expressi...
25,716
https://github.com/DeadlyCrush/DeadlyTrade/blob/master/POExileDirection/DeadlyOverlay/LabyOverlayForm.cs
Github Open Source
Open Source
MIT
2,022
DeadlyTrade
DeadlyCrush
C#
Code
601
2,349
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace POExileDirection { public partial class LabyOverlayForm : Form { ...
44,338
https://github.com/gitter-badger/zep/blob/master/demos/demo_qt/mainwindow.h
Github Open Source
Open Source
MIT
null
zep
gitter-badger
C
Code
42
195
#pragma once #include <QMainWindow> #include <memory> #include <repl/mode_repl.h> #include <orca/mode_orca.h> QT_FORWARD_DECLARE_CLASS(QDockWidget) QT_FORWARD_DECLARE_CLASS(QMenu) QT_FORWARD_DECLARE_CLASS(QToolbar) class MainWindow : public QMainWindow, public Zep::IZepReplProvider { public: Q_OBJECT public: ...
51,967
https://github.com/embedSky/go-filecoin/blob/master/tools/fast/series/create_miner_with_ask.go
Github Open Source
Open Source
Apache-2.0, MIT
2,019
go-filecoin
embedSky
Go
Code
83
266
package series import ( "context" "math/big" "github.com/filecoin-project/go-filecoin/porcelain" "github.com/filecoin-project/go-filecoin/tools/fast" ) // CreateStorageMinerWithAsk setups a miner and sets an ask price. The created ask is // returned. The node will be mining as well. func CreateStorageMinerWithAs...
53,782
https://github.com/TimTheToad/CrazyCanvas/blob/master/LambdaEngine/Include/ECS/ECSVisualizer.h
Github Open Source
Open Source
MIT
2,021
CrazyCanvas
TimTheToad
C++
Code
27
105
#pragma once namespace LambdaEngine { class JobScheduler; class ECSVisualizer { public: ECSVisualizer(JobScheduler* pJobScheduler); ~ECSVisualizer() = default; void Render(); private: JobScheduler* m_pJobScheduler; bool m_Enabled = false; }; }
19,913
https://github.com/RowlandOti/StrippedProgressBar/blob/master/library/src/main/java/com/rowland/strippedprogressbar/api/traits/ProgressView.kt
Github Open Source
Open Source
Unlicense
null
StrippedProgressBar
RowlandOti
Kotlin
Code
261
603
package com.rowland.strippedprogressbar.api.traits /*Views which implement this interface visually display ongoing progress to users*/ interface ProgressView { /** * @return the amount of progress displayed to the user */ /** * Updates the amount of progress displayed to the user. * *...
27,298
https://github.com/gazfaris/dot_julia/blob/master/packages/QHull/yeRSS/test/polyhedron.jl
Github Open Source
Open Source
MIT
2,021
dot_julia
gazfaris
Julia
Code
30
177
using Polyhedra const polyhedra_test = joinpath(dirname(dirname(pathof(Polyhedra))), "test") include(joinpath(polyhedra_test, "solvers.jl")) include(joinpath(polyhedra_test, "utils.jl")) include(joinpath(polyhedra_test, "polyhedra.jl")) @testset "Polyhedra tests" begin polyhedratest(QHull.Library(lp_solver), ["ju...
4,350
https://github.com/wiseleyb/wysihat-advanced-toolbar/blob/master/src/wysihat/advanced_toolbar.js
Github Open Source
Open Source
MIT
2,009
wysihat-advanced-toolbar
wiseleyb
JavaScript
Code
1,511
3,886
/** section: wysihat * class WysiHat.AdvancedToolbar **/ WysiHat.AdvancedToolbar = Class.create((function() { /** * new WysiHat.AdvancedToolbar(editor) * - editor (WysiHat.Editor): the editor object that you want to attach to * * Creates a toolbar element above the editor. The WysiHat.AdvancedToolbar...
19,378
https://github.com/zhangbo1997/Graph-Based-Malware-Prediction/blob/master/Data/benign/b4/smali/com/urbanairship/push/embedded/Config$Helium.smali
Github Open Source
Open Source
MIT
null
Graph-Based-Malware-Prediction
zhangbo1997
Smali
Code
152
572
.class public Lcom/urbanairship/push/embedded/Config$Helium; .super Ljava/lang/Object; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/urbanairship/push/embedded/Config; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x9 name = "Helium" .e...
7,499
https://github.com/odaymichael/Wurfel-Engine/blob/master/com/BombingGames/MainMenu/MenuItem.java
Github Open Source
Open Source
BSD-3-Clause
2,020
Wurfel-Engine
odaymichael
Java
Code
142
453
package com.BombingGames.MainMenu; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input.Buttons; import com.badlogic.gdx.graphics.Camera; import com.badlogic.gdx.graphics.g2d.Sprite; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g2d.TextureRegion; /** *A menu item is an ob...
36,642
https://github.com/InsideZhou/southern-quiet/blob/master/framework-amqp-rabbit/src/main/java/me/insidezhou/southernquiet/amqp/rabbit/AmqpAutoConfiguration.java
Github Open Source
Open Source
BSD-3-Clause
2,021
southern-quiet
InsideZhou
Java
Code
415
2,500
package me.insidezhou.southernquiet.amqp.rabbit; import com.fasterxml.jackson.databind.ObjectMapper; import me.insidezhou.southernquiet.util.GoldenRatioAmplifier; import me.insidezhou.southernquiet.util.Metadata; import org.springframework.amqp.core.AcknowledgeMode; import org.springframework.amqp.rabbit.annotation.En...
43,548
https://github.com/VinayaSathyanarayana/courselit/blob/master/packages/app/components/Public/BaseLayout/Template.js
Github Open Source
Open Source
MIT
2,021
courselit
VinayaSathyanarayana
JavaScript
Code
165
475
import React from "react"; import PropTypes from "prop-types"; import { Divider, Grid } from "@material-ui/core"; import { useRouter } from "next/router"; import Section from "./Section"; import { makeStyles } from "@material-ui/styles"; const useStyles = makeStyles((theme) => ({ mainContent: { maxWidth: 1240, ...
41,720
https://github.com/shibafu528/Yukari/blob/master/Yukari/src/test/java/shibafu/yukari/stub/FakeTextStatus.kt
Github Open Source
Open Source
Apache-2.0
2,021
Yukari
shibafu528
Kotlin
Code
23
76
package shibafu.yukari.stub import shibafu.yukari.twitter.statusimpl.FakeStatus public class FakeTextStatus(id: Long, private val text: String) : FakeStatus(id) { public override fun getText(): String = this.text }
4,844
https://github.com/lbowes/vehicle-dynamics-simulation/blob/master/src/Tyre.cpp
Github Open Source
Open Source
MIT
2,023
vehicle-dynamics-simulation
lbowes
C++
Code
96
402
#include "Tyre.h" namespace Internal { Tyre::Tyre(double wheelRimRadius) : /* Called by Wheel::Wheel */ mAxialInertia((glm::pi<double>() * mRubberDensity * mTreadWidth) / 2.0 * (pow(wheelRimRadius + mDepth, 4) - pow(wheelRimRadius, 4))) { } void Tyre::update(glm::dvec2 wheelVelocity_wheel, double verticalLo...
23,087
https://github.com/rogamoore/sulu/blob/master/src/Sulu/Bundle/AdminBundle/Resources/js/components/Icon/Icon.js
Github Open Source
Open Source
MIT
2,017
sulu
rogamoore
JavaScript
Code
91
268
// @flow import 'font-awesome/css/font-awesome.min.css'; import React from 'react'; import classNames from 'classnames'; type Props = { className?: string, onClick?: () => void, name: string, }; export default class Icon extends React.PureComponent<Props> { handleClick = (event: SyntheticEvent<HTMLEle...
20,878