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/yacon/koala-framework/blob/master/Kwc/FulltextSearch/Box/Trl/Cc/Component.php
Github Open Source
Open Source
BSD-2-Clause
2,019
koala-framework
yacon
PHP
Code
7
39
<?php class Kwc_FulltextSearch_Box_Trl_Cc_Component extends Kwc_FulltextSearch_Box_Cc_Component { }
15,198
https://github.com/djangofan/logging-examples/blob/master/logging-logback/src/test/java/shuaicj/example/logging/logback/LogTest.java
Github Open Source
Open Source
MIT
2,017
logging-examples
djangofan
Java
Code
34
116
package shuaicj.example.logging.logback; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class LogTest { private static final Logger logger = LoggerFactory.getLogger(LogTest.class); @Test public void logback() throws Exception { logger.info("info in LogTest...
31,388
https://github.com/famished-tiger/Skeem/blob/master/spec/skeem_spec.rb
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,022
Skeem
famished-tiger
Ruby
Code
17
50
# frozen_string_literal: true RSpec.describe Skeem do it 'has a version number' do expect(Skeem::VERSION).not_to be nil end end
36,097
https://github.com/saltedfishclub/PolarCore/blob/master/src/main/java/cc/sfclub/transform/exception/PlatformNotFoundException.java
Github Open Source
Open Source
Apache-2.0
2,021
PolarCore
saltedfishclub
Java
Code
22
54
package cc.sfclub.transform.exception; public class PlatformNotFoundException extends NullPointerException { public PlatformNotFoundException(String s) { super("Platform " + s + " Not Found"); } }
27,279
https://github.com/sumitesh9/Competitive-Programming/blob/master/Python/ThreePilesOfCandies.py
Github Open Source
Open Source
MIT
2,020
Competitive-Programming
sumitesh9
Python
Code
8
51
q=int(input()) for i in range(0,q): a,b,c=map(int,input().split()) sum=(a+b+c)//2 print(sum)
18,336
https://github.com/derUli/ulicms/blob/master/dist/tests/models/content_models/CustomFieldsTest.php
Github Open Source
Open Source
OFL-1.1, LGPL-2.1-or-later, CC-BY-4.0, Unlicense, GPL-3.0-only, BSD-3-Clause, LGPL-2.1-only, BSD-4-Clause, BSD-3-Clause-Clear, LicenseRef-scancode-other-copyleft, GPL-1.0-or-later, LicenseRef-scancode-unknown-license-reference, GPL-2.0-or-later, GPL-2.0-only, Apache-2.0, BSD-2-Clause, MIT
2,023
ulicms
derUli
PHP
Code
215
963
<?php class CustomFieldsTest extends \PHPUnit\Framework\TestCase { protected function tearDown(): void { $id = $this->getFirstPage()->id; $type = $this->getFirstPage()->type; Database::pQuery('delete from {prefix}custom_fields where name in (?, ?) and content_id = ?', [ "{$type}...
14,861
https://github.com/acho9138/MyMeds/blob/master/server.js
Github Open Source
Open Source
MIT
null
MyMeds
acho9138
JavaScript
Code
181
626
// Node Libraries const express = require('express'); const mongoose = require('mongoose'); const passport = require('passport'); const session = require('express-session'); // const cron = require('node-cron'); const LocalStrategy = require('passport-local').Strategy; // Models const User = require('./models/user'); ...
34,757
https://github.com/smilefreak/plinkseq_utilities/blob/master/scripts/merge_unique.py
Github Open Source
Open Source
MIT
null
plinkseq_utilities
smilefreak
Python
Code
194
763
import argparse import pandas import sys phenotypes = {} def merge_phenotypes(sample_name, pheno_information,gout_header, diabetes_header): """ Merges using the diabetes dat, eg. l_split [1:], which is the the diabetes dataset we are using. """ try: temp_row = phenotypes[sample_name] ...
53,096
https://github.com/baldurk/renderdoc/blob/master/renderdoc/driver/metal/metal_hook_bridge.mm
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
renderdoc
baldurk
Objective-C++
Code
351
1,083
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2022-2023 Baldur Karlsson * * 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...
10,612
https://github.com/vnphu/node_real_football/blob/master/models/Size.js
Github Open Source
Open Source
MIT
null
node_real_football
vnphu
JavaScript
Code
54
146
module.exports = (sequelize, DataTypes) => { var Size = sequelize.define( 'Size', { id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true }, name: DataTypes.STRING }, { tableName: 'Size' // Model tableName will be the same as the model name } ) Size.associate =...
29,305
https://github.com/eurojet/mvchateoas/blob/master/src/main/webapp/browser/js/hal/http/client.js
Github Open Source
Open Source
MIT
2,015
mvchateoas
eurojet
JavaScript
Code
143
538
HAL.Http.Client = function(opts) { this.vent = opts.vent; $.ajaxSetup({ headers: { 'Accept': 'application/hal+json, application/json, */*; q=0.01' } }); }; HAL.Http.Client.prototype.get = function(url) { var self = this; this.vent.trigger('location-change', { url: url }); var aux = url.split('@'); if (aux...
27,942
https://github.com/uidops/manpages-openbsd/blob/master/man8/daily.8
Github Open Source
Open Source
BSD-2-Clause
2,021
manpages-openbsd
uidops
null
Spoken
1,063
2,087
.\" $OpenBSD: daily.8,v 1.29 2020/10/20 22:42:29 danj Exp $ .\" .\" Copyright (c) 2003 Jason McIntyre <jmc@openbsd.org> .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above .\" copyright notice and this permission notice...
18,960
https://github.com/LetterN/Railcraft/blob/master/src/main/java/mods/railcraft/world/level/block/ItemUnloaderBlock.java
Github Open Source
Open Source
FTL
2,021
Railcraft
LetterN
Java
Code
48
222
package mods.railcraft.world.level.block; import mods.railcraft.world.level.block.entity.ItemUnloaderBlockEntity; import net.minecraft.block.BlockState; import net.minecraft.util.Direction; import net.minecraft.world.IBlockReader; public class ItemUnloaderBlock extends ManipulatorBlock<ItemUnloaderBlockEntity> { p...
12,557
https://github.com/pvvx/RTL0B_WEB/blob/master/project/web/web_utils.c
Github Open Source
Open Source
MIT
2,018
RTL0B_WEB
pvvx
C
Code
2,681
7,573
/* * web_utils.c * * Created on: 25 дек. 2014 г. * Author: PV` */ #ifndef COMPILE_SCI // Use Single Compilation Unit "web" #include "user_config.h" #include "autoconf.h" #include "FreeRTOS.h" #include "task.h" #include "diag.h" #include "web/web_utils.h" #endif // COMPILE_SCI extern size_t rtl_strlen(const...
53,863
https://github.com/admariner/storage-api-php-client/blob/master/tests/Backend/Mixed/Workspaces/S3WorkspacesTest.php
Github Open Source
Open Source
MIT
2,021
storage-api-php-client
admariner
PHP
Code
1,124
4,858
<?php namespace Keboola\Test\Backend\Mixed\Workspaces; use Keboola\Csv\CsvFile; use Keboola\StorageApi\Client; use Keboola\StorageApi\ClientException; use Keboola\StorageApi\Workspaces; use Keboola\Test\Backend\Workspaces\Backend\WorkspaceBackendFactory; class S3WorkspacesTest extends BaseWorkSpacesTestCase { pu...
26,648
https://github.com/futurepress/epubjs-search/blob/master/epubsearch/epubparser.py
Github Open Source
Open Source
BSD-2-Clause-FreeBSD
2,020
epubjs-search
futurepress
Python
Code
422
1,454
from bs4 import BeautifulSoup import xml.etree.ElementTree as ET from lxml import etree import os class EpubParser(object): base = '' manifest = {} titles = {} spine = [] spineElementNum = str(6) #replace this with xml check for which child of root 'spine' is x 2 def __init__(self, path): ...
32,246
https://github.com/sebastiannicolajsen/medusa/blob/master/packages/medusa-plugin-add-ons/src/services/__mocks__/region.js
Github Open Source
Open Source
MIT
2,021
medusa
sebastiannicolajsen
JavaScript
Code
69
218
import { IdMap } from "medusa-test-utils" export const regions = { testRegion: { _id: IdMap.getId("world"), name: "Test Region", countries: ["DK", "US", "DE"], tax_rate: 0.25, payment_providers: ["default_provider", "unregistered"], fulfillment_providers: ["test_shipper"], currency_code: ...
36,434
https://github.com/negativetwelve/jolt/blob/master/packages/jolt-lodash/src/__tests__/lodash.spec.js
Github Open Source
Open Source
MIT
null
jolt
negativetwelve
JavaScript
Code
510
1,355
// Modules import _ from '../lodash'; /* eslint-disable no-undef */ describe('lodash', () => { // Checks that the extra functions are installed correctly. describe('installed functions', () => { describe('.pluralize', () => { it('should pluralize words', () => { expect(_.pluralize('world')).toE...
52,406
https://github.com/smberg/todo-planning/blob/master/database/migrations/2021_04_17_173345_create_job_tasks_table.php
Github Open Source
Open Source
MIT
null
todo-planning
smberg
PHP
Code
65
244
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Schema; use Symfony\Component\Console\Output\ConsoleOutput; class CreateJobTasksTable extends Migration { /** * Run the migrations. * ...
10,165
https://github.com/ballerina-platform/ballerina-lang/blob/master/misc/ls-extensions/modules/json-to-record-converter/src/main/java/module-info.java
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause, LicenseRef-scancode-mit-old-style, MPL-2.0, LicenseRef-scancode-unicode, MIT
2,023
ballerina-lang
ballerina-platform
Java
Code
50
388
module io.ballerina.LSExtensions.jsonToRecordConverter { uses org.ballerinalang.langserver.commons.service.spi.ExtendedLanguageServerService; uses org.ballerinalang.langserver.commons.registration.BallerinaServerCapability; uses org.ballerinalang.langserver.commons.registration.BallerinaClientCapability; ...
53,334
https://github.com/bsse1017kavi/Dissection-of-CodeRep/blob/master/src/results/bugged/Dataset3/6172.txt
Github Open Source
Open Source
Apache-2.0
2,019
Dissection-of-CodeRep
bsse1017kavi
Java
Code
1,365
4,305
/* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * unde...
23,696
https://github.com/stephenxs/sonic-utilities/blob/master/dump/plugins/acl_table.py
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, Apache-2.0
2,023
sonic-utilities
stephenxs
Python
Code
274
1,550
from dump.helper import create_template_dict from dump.match_infra import MatchRequest from swsscommon.swsscommon import SonicDBConfig from dump.match_helper import fetch_acl_counter_oid from .executor import Executor CFG_DB_SEPARATOR = SonicDBConfig.getSeparator("CONFIG_DB") ASIC_DB_SEPARATOR = SonicDBConfig.getSep...
48,526
https://github.com/vehar/CAL-BPM/blob/master/BPM.srcs/sources_1/edk/bpm/fourCordic.v
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, BSD-3-Clause-LBNL
2,021
CAL-BPM
vehar
Verilog
Code
394
1,154
// Multichannel rectangular to polar coordinate conversion. // Input consists of 8 values -- a signed I and Q value for each of 4 ADCs. // Output consists four sequential unsigned magnitude values. // Input has back pressure. // Output does not accept back pressure. // The CORDIC block must be one bit wider than the in...
32,408
https://github.com/oykaiwyh/jetlink_vue/blob/master/src/components/SearchForm/index.less
Github Open Source
Open Source
MIT
2,022
jetlink_vue
oykaiwyh
Less
Code
23
101
.antAdvancedSearchForm{ padding: 24px; .ant-form-item { display: flex; } .ant-form-item-control-wrapper { flex: 1; } @media(max-width: 575px){ .ant-form-item-label{ width: 25%; margin-top: 10px; } } }
28,394
https://github.com/Viincenttt/MollieApi/blob/master/src/Mollie.Api/JsonConverters/ListResponseJsonConverter.cs
Github Open Source
Open Source
MIT
2,023
MollieApi
Viincenttt
C#
Code
106
263
using System; using Newtonsoft.Json; namespace Mollie.Api.JsonConverters { using Newtonsoft.Json.Linq; public class ListResponseConverter : JsonConverter { public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { throw new NotImplementedException("Not i...
30,171
https://github.com/elongton/hasura_vue_practice/blob/master/vue/src/utils/jwt.ts
Github Open Source
Open Source
MIT
null
hasura_vue_practice
elongton
TypeScript
Code
45
177
import jwtDecode from "jwt-decode"; type JWT = { "https://hasura.io/jwt/claims": { "x-hasura-allowed-roles": [string]; "x-hasura-default-role": string; "x-hasura-user-id": string; [key: string]: number | string | [number] | [string]; }; iat: number; exp: number; }; export function idFromToken(...
28,577
https://github.com/mjlshen/osd-nix/blob/master/nix/oc.nix
Github Open Source
Open Source
MIT
null
osd-nix
mjlshen
null
Spoken
86
347
{ buildGo117Module , fetchFromGitHub , gpgme , libkrb5 , libassuan , clang }: buildGo117Module rec { pname = "oc"; # oc adm release info 4.10.13 --output=json | jq -r '.references.spec.tags[] | select (.name=="cli") | .annotations."io.openshift.build.commit.id"' version = "09f825e2ac8ddedf8bbc6bc82ffc5520560788a...
22,261
https://github.com/NavExplorer/navexplorer-indexer/blob/master/src/main/java/com/navexplorer/indexer/address/service/AddressTransactionService.java
Github Open Source
Open Source
MIT
null
navexplorer-indexer
NavExplorer
Java
Code
44
214
package com.navexplorer.indexer.address.service; import com.navexplorer.indexer.address.entity.AddressTransaction; import com.navexplorer.indexer.address.repository.AddressTransactionRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service publ...
20,527
https://github.com/wyshk2007/rustest/blob/master/src/main03.rs
Github Open Source
Open Source
MIT
null
rustest
wyshk2007
Rust
Code
74
353
#[macro_use] extern crate kiss_ui; use kiss_ui::callback::OnShow; use kiss_ui::container::Vertical; use kiss_ui::dialog::Dialog; use kiss_ui::progress::ProgressBar; use kiss_ui::text::Label; use kiss_ui::timer::Timer; fn main() { kiss_ui::show_gui(|| { let regular = ProgressBar::new(); let dashed =...
36,729
https://github.com/mindspore-ai/models/blob/master/research/cv/ProtoNet/src/IterDatasetGenerator.py
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-proprietary-license
2,023
models
mindspore-ai
Python
Code
296
943
# Copyright 2021 Huawei Technologies Co., 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...
31,567
https://github.com/jonhue/myg/blob/master/packages/checkbox/_mixins.scss
Github Open Source
Open Source
MIT
2,018
myg
jonhue
SCSS
Code
44
227
@mixin myg-checkbox { &.mdc-checkbox { margin: myg-spacing(-2); &::before { background-color: myg-theme__color(accent, base) !important; } .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate) ~ .mdc-checkbox__background { border-color: myg-theme__color(border) !importa...
37,352
https://github.com/rhapsodylabs/rhapsody-creator/blob/master/contracts/test/RhapsodyCreatorTest.sol
Github Open Source
Open Source
MIT
2,022
rhapsody-creator
rhapsodylabs
Solidity
Code
46
188
// SPDX-License-Identifier: CC-BY-NC-SA-4.0 pragma solidity ^0.8.0; import "../RhapsodyCreator.sol"; contract RhapsodyCreatorTest is RhapsodyCreator { constructor( uint256 _collectionSize, uint256 _maxPublicBatchPerAddress, uint256 _amountForPromotion, uint256 _mintPrice ) ...
20,027
https://github.com/UMEC/healthcare-workforce/blob/master/ui/src/scss/_global.scss
Github Open Source
Open Source
BSD-2-Clause
2,019
healthcare-workforce
UMEC
SCSS
Code
8
26
@import 'defaults'; @import 'variables'; @import 'functions'; @import 'typography';
36,963
https://github.com/appressoas/django_cradmin/blob/master/django_cradmin/apps/django_cradmin_styles/staticsources/django_cradmin_styles/styles/basetheme/4__components/_month-picker.scss
Github Open Source
Open Source
BSD-3-Clause
2,020
django_cradmin
appressoas
SCSS
Code
159
769
/** Month-picker Example: {type: isolated} <div class="container"> <br> <div class="month-picker"> <div class="month-picker__month">January</div> <div class="month-picker__month">February</div> <div class="month-picker__month">March</div> <div class="month-picker__month">Apr...
41,360
https://github.com/nick-paul/INN/blob/master/lib/mysql-connector-java-5.0.8/src/com/mysql/jdbc/SingleByteCharsetConverter.java
Github Open Source
Open Source
MIT
2,019
INN
nick-paul
Java
Code
1,053
2,385
/* Copyright (C) 2002-2004 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. There are special exceptions to the terms and conditions of the GPL as it is applied to this ...
45,663
https://github.com/pollob1563/susi_android/blob/master/app/src/main/java/org/fossasia/susi/ai/skills/feedback/adapters/recycleradapters/AllReviewsAdapter.kt
Github Open Source
Open Source
Apache-2.0
2,019
susi_android
pollob1563
Kotlin
Code
198
751
package org.fossasia.susi.ai.skills.feedback.adapters.recycleradapters import android.content.Context import android.support.annotation.NonNull import android.support.v7.widget.RecyclerView import android.text.TextUtils import android.view.LayoutInflater import android.view.ViewGroup import org.fossasia.susi.ai.R impo...
53,599
https://github.com/enrevol/ee-x/blob/master/src/unity/Runtime/Adjust/Internal/AdjustImplEditor.cs
Github Open Source
Open Source
MIT
null
ee-x
enrevol
C#
Code
56
147
using System.Threading.Tasks; namespace EE.Internal { public class AdjustImplEditor : IAdjust { public void Destroy() { } public void Initialize(AdjustConfig config) { } public void SetEnabled(bool enabled) { } public Task<string> GetAdvertisingIdentifier...
15,844
https://github.com/ehmicky/dev-tasks/blob/master/src/tasks/check/main.js
Github Open Source
Open Source
Apache-2.0
2,019
dev-tasks
ehmicky
JavaScript
Code
83
250
import gulp from 'gulp' import { JAVASCRIPT, MARKDOWN, JSON_YAML } from '../../files.js' import { getWatchTask } from '../../watch.js' import { jscpd } from './jscpd.js' import { lint, lintWatch } from './lint.js' export const check = gulp.parallel(lint(), jscpd) // TODO: add `jscpd` and `prettier` in watch mode con...
52,768
https://github.com/laura-dietz/taia-stream-eval/blob/master/data/cr/entity_stats/correctedAUC_entity_stats_Boris_Berezovsky_(businessman)_relevant+central_WEIGHTED.tsv
Github Open Source
Open Source
Apache-2.0
2,013
taia-stream-eval
laura-dietz
TSV
Code
45
324
helsinki disgraph2 0.857056975365 0.863557755947 0.843688309193 CWI google_dic_3 0.896557986736 0.859201490879 0.818490028381 hltcoe wordNER500 0.49112701416 0.461619526148 0.302897691727 igpi2012 ner_jaccard 0.391232997179 0.264191061258 0.243011787534 UMass_CIIR PC_RM10_1500 0.200051993132 0.187496930361 0.1638218909...
14,155
https://github.com/fuchen1994/bel-admin/blob/master/src/views/examination/SmartExam/components/DeviceModal.vue
Github Open Source
Open Source
MIT
2,019
bel-admin
fuchen1994
Vue
Code
265
1,214
<template> <app-form-modal :value="value" @input="value => $emit('input', value)" :title="`开始测试:${testNumber}`" :loading="formLoading" @on-ok="submit" @on-cancel="closeModal" > <div class="smartexam-device"> <Form ref="form" :model="form" :label-width="100" ...
15,041
https://github.com/SocraticGrid/KnowledgeManagementFramework/blob/master/Services/RegistriesService/src/main/java/mil/navy/med/dzreg/types/RegistryProfileType.java
Github Open Source
Open Source
Apache-2.0
2,013
KnowledgeManagementFramework
SocraticGrid
Java
Code
198
647
package mil.navy.med.dzreg.types; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.datatype.XMLGregorianCalendar; /...
17,321
https://github.com/zemial85/mysql/blob/master/mysql/12.sql
Github Open Source
Open Source
Unlicense
null
mysql
zemial85
SQL
Code
8
24
select MANAGER_ID, max(salary) from employees group by MANAGER_ID
27,725
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/s/sergeyzh/centos6-btsync/Dockerfile
Github Open Source
Open Source
MIT
2,018
dockerfiles-1
jsdelivrbot
Dockerfile
Code
63
273
FROM sergeyzh/centos6-epel MAINTAINER Sergey Zhukov, sergey@jetbrains.com ADD btsync_x64.tar.gz / ADD btsync.conf / # RUN /btsync --dump-sample-config > btsync.conf RUN sed -i 's/listening_port" : 0,/listening_port" : 8889,/' btsync.conf RUN sed -i 's|"dir" : "/home/user/bittorrent/sync_test",|"dir...
21,114
https://github.com/Tommmi/BrainDownload/blob/master/Brain/Brain/common/StringExtension.cs
Github Open Source
Open Source
MIT
null
BrainDownload
Tommmi
C#
Code
28
84
using System; using System.Collections.Generic; using System.Text; namespace DownloadToBrain.common { public static class StringExtension { public static string ReplaceLineFeeds(this string html) { return html.Replace("\n", "<br />"); } } }
51,461
https://github.com/tbarabas/Cinema/blob/master/Model/Specifications/AverageRateBiggerThanSpecification.cs
Github Open Source
Open Source
MIT
null
Cinema
tbarabas
C#
Code
47
147
using System; using System.Linq.Expressions; using Model.DomainModel; namespace Model.Specifications { public class AverageRateBetweenSpecification : AbstractRangeSpecification<Movie> { public AverageRateBetweenSpecification(int? minimum, int? maximum) : base(minimum, maximum) { ...
47,260
https://github.com/Setono/SyliusImageOptimizerPlugin/blob/master/src/Resources/views/admin/image_optimizer/index.html.twig
Github Open Source
Open Source
MIT
2,022
SyliusImageOptimizerPlugin
Setono
Twig
Code
46
187
{% extends '@SyliusAdmin/layout.html.twig' %} {% import '@SyliusUi/Macro/headers.html.twig' as headers %} {% block title %}{{ 'setono_sylius_image_optimizer.ui.image_optimizer'|trans }} {{ parent() }}{% endblock %} {% block content %} <div class="ui stackable two column grid"> <div class="column"> ...
37,345
https://github.com/modelica/Modelica_LinearSystems2/blob/master/Modelica_LinearSystems2/Controller/Examples/Components/package.mo
Github Open Source
Open Source
BSD-3-Clause
2,023
Modelica_LinearSystems2
modelica
Modelica
Code
37
91
within Modelica_LinearSystems2.Controller.Examples; package Components "Package of components of the systems used for demonstration purposes" extends Modelica.Icons.UtilitiesPackage; annotation ( Documentation(info="<html> <p> This package contains auxiliary models designed to build up test models for control...
26,475
https://github.com/renan-77/javaCalculator/blob/master/src/com/orenan/basics/Interface.java
Github Open Source
Open Source
MIT
null
javaCalculator
renan-77
Java
Code
1,228
4,070
package com.orenan.basics; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JTextField; import javax.swing.JButton; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class Interface { //Variables for the SWING things Buttons and Frame. private JFrame frame; ...
3,117
https://github.com/psmuga/Java_lab_1/blob/master/src/Study_Lab_1/Triangle.java
Github Open Source
Open Source
MIT
null
Java_lab_1
psmuga
Java
Code
147
432
package Study_Lab_1; import java.math.RoundingMode; import java.text.DecimalFormat; /** * Created by Piotr Smuga on 28.02.2017. */ public class Triangle extends Figure implements IPrint { double _sideA =0, _sideB=0, _sideC = 0; public Triangle(double sideA, double sideB, double sideC) throws Exception { ...
50,344
https://github.com/arturoacevedob/motion-bookmarks/blob/master/web/src/components/aside.js
Github Open Source
Open Source
MIT
2,021
motion-bookmarks
arturoacevedob
JavaScript
Code
109
301
import React from "react" import { useStaticQuery, graphql } from "gatsby" import { Link } from "gatsby" // Gets the query const getData = graphql` { site { siteMetadata { title } } } ` // Sets the query results to variables const Aside = () => { const { site: { siteMetadat...
732
https://github.com/buerokratt/ruuter/blob/master/src/test/java/ee/buerokratt/ruuter/domain/steps/http/HttpGetStepTest.java
Github Open Source
Open Source
MIT
null
ruuter
buerokratt
Java
Code
91
494
package ee.buerokratt.ruuter.domain.steps.http; import com.github.tomakehurst.wiremock.junit5.WireMockRuntimeInfo; import com.github.tomakehurst.wiremock.junit5.WireMockTest; import ee.buerokratt.ruuter.domain.ConfigurationInstance; import ee.buerokratt.ruuter.helper.MappingHelper; import ee.buerokratt.ruuter.helper.S...
42,740
https://github.com/foxytocin/GDV_ProjectGrandSlam/blob/master/ProjectSettings/InputManager.asset
Github Open Source
Open Source
MIT
2,022
GDV_ProjectGrandSlam
foxytocin
Unity3D Asset
Code
1,330
4,711
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!13 &1 InputManager: m_ObjectHideFlags: 0 serializedVersion: 2 m_Axes: - serializedVersion: 3 m_Name: Horizontal descriptiveName: descriptiveNegativeName: negativeButton: joystick 1 button 7 positiveButton: joystick 1 button 8 altNegativeB...
39,231
https://github.com/dream1993/web-/blob/master/Web/admin/js/ueditor.js
Github Open Source
Open Source
MIT
2,019
web-
dream1993
JavaScript
Code
9
32
$(function(){ var ue = UE.getEditor('baidu'){ autoWidth: true }; });
32,967
https://github.com/g-hostsolutions/ghApi/blob/master/src/decorators/users/user.decorator.ts
Github Open Source
Open Source
MIT
null
ghApi
g-hostsolutions
TypeScript
Code
55
147
import { createParamDecorator, ExecutionContext } from '@nestjs/common' export const AuthUser = createParamDecorator( (data: string, ctx: ExecutionContext) => { const request = ctx.switchToHttp().getRequest(), token = request.headers.authorization.replace('Bearer ', ''), user = request.user let ...
1,166
https://github.com/oxelson/gempak/blob/master/gempak/source/diaglib/dl/dlswtm.c
Github Open Source
Open Source
BSD-3-Clause
2,022
gempak
oxelson
C
Code
1,000
2,370
#include "lyrdiag.h" void dl_swtm ( char *uargs, char *glvl, char *stprm, int *iret ) /************************************************************************ * dl_swtm * * * * This subroutine computes the weighted mean of a scalar. * * * * dl_swtm ( uargs, glvl, stprm, iret ) * * ...
33,017
https://github.com/cfriedt/leetcode/blob/master/number-of-islands-test.cpp
Github Open Source
Open Source
MIT
2,021
leetcode
cfriedt
C++
Code
1,610
3,729
/* * Copyright (c) 2018 Christopher Friedt * * SPDX-License-Identifier: MIT */ #include <gtest/gtest.h> #include "number-of-islands.cpp" static void fixup(vector<vector<char>> &grid) { for (auto &row : grid) { for (auto &col : row) { if ('1' != col) { col = '0'; } } } } TEST(Numb...
20,775
https://github.com/achilleasa/dart_amqp/blob/master/test/lib/client_test.dart
Github Open Source
Open Source
MIT
2,023
dart_amqp
achilleasa
Dart
Code
626
1,997
library dart_amqp.test.client; import 'dart:async'; import 'dart:io'; import "package:test/test.dart"; import "package:dart_amqp/src/client.dart"; import "package:dart_amqp/src/protocol.dart"; import "package:dart_amqp/src/exceptions.dart"; import "mocks/mocks.dart" as mock; main({bool enableLogger = true}) { if...
7,615
https://github.com/Echo12/e12_tools_ace3/blob/master/Addons/e12_tools/functions/fnc_isAdmin.sqf
Github Open Source
Open Source
MIT
2,015
e12_tools_ace3
Echo12
SQF
Code
10
49
#include "script_component.hpp" PARAMS_1(_player); (_player getVariable[QGVAR(isadmin),false]) || ((name _player) in GVAR(settings_admins))
4,146
https://github.com/ProBeta1/catchimal/blob/master/Screens/AppNavigator.js
Github Open Source
Open Source
MIT
2,021
catchimal
ProBeta1
JavaScript
Code
60
172
import Login from "./Login"; import { createStackNavigator } from "react-navigation-stack"; import { createAppContainer } from "react-navigation"; import Home from "./Home"; import TakePic from "./TakePic" import AnimalList from "../Components/AnimalList"; const AppNavigator = createStackNavigator({ Login: { ...
44,173
https://github.com/keiki/apostrophe/blob/master/lib/nunjucksLoader.js
Github Open Source
Open Source
MIT
2,022
apostrophe
keiki
JavaScript
Code
547
1,299
// This is a nunjucks filesystem loader that allows absolute paths, and // also allows templates in other modules to be accessed, for instance: // // snippets:snippetMacros.html // // Only modules that use the assets mixin can be accessed in this way. // // The name under which you access the template is the name the m...
46,748
https://github.com/salilab/module_template/blob/master/Setup.cmake
Github Open Source
Open Source
Info-ZIP
null
module_template
salilab
CMake
Code
25
115
execute_process(COMMAND python setup_git.py RESULT_VARIABLE setup OUTPUT_VARIABLE toutput ERROR_VARIABLE error WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} OUTPUT_STRIP_TRAILING_WHITESPACE) if(NOT ${setup} EQUAL 0) message(FATAL_ERR...
27,151
https://github.com/Trehinos/thor2/blob/master/thor/Database/PdoTable/HasIdTrait.php
Github Open Source
Open Source
MIT
null
thor2
Trehinos
PHP
Code
68
207
<?php namespace Thor\Database\PdoTable; use Exception; use Thor\Database\PdoTable\{TableType\IntegerType, PdoTable\Attributes\PdoIndex, PdoTable\Attributes\PdoColumn}; /** * Adds an "id" column to a PdoRowInterface. * * @package Thor/Database/PdoTable * @copyright (2021) Sébastien Geldreich * @license MIT */ #...
9,553
https://github.com/iiitasan/superset/blob/master/superset-frontend/src/utils/urlUtils.ts
Github Open Source
Open Source
Apache-2.0
null
superset
iiitasan
TypeScript
Code
538
1,545
/** * 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...
31,487
https://github.com/FengchiW/SyndicateZero/blob/master/src/scenes/Splash.hpp
Github Open Source
Open Source
Zlib
null
SyndicateZero
FengchiW
C++
Code
24
70
#pragma once #include "SceneManager.hpp" class SplashScreen final : public Screen { public: SplashScreen(ScreenManager* screens); void Render(raylib::Window* window) override; void Update(const float dt) override; };
49,072
https://github.com/rioleo/TwitterNow/blob/master/mysql-schema.sql
Github Open Source
Open Source
MIT
2,011
TwitterNow
rioleo
SQL
Code
170
531
-- phpMyAdmin SQL Dump -- version 2.11.9.4 -- http://www.phpmyadmin.net -- -- Host: 10.6.186.64 -- Generation Time: Mar 31, 2011 at 12:43 PM -- Server version: 5.0.91 -- PHP Version: 5.2.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARAC...
21,278
https://github.com/iantal/AndroidPermissions/blob/master/apks/playstore_apps/com_idamob_tinkoff_android/source/com/bumptech/glide/load/engine/e.java
Github Open Source
Open Source
Apache-2.0
2,019
AndroidPermissions
iantal
Java
Code
24
75
package com.bumptech.glide.load.engine; import com.bumptech.glide.load.c; public abstract interface e { public abstract void a(c paramC, h<?> paramH); public abstract void a(d paramD, c paramC); }
29,041
https://github.com/neoneye/loda-programs/blob/master/oeis/141/A141895.asm
Github Open Source
Open Source
Apache-2.0
2,022
loda-programs
neoneye
Assembly
Code
60
441
; A141895: Primes congruent to 16 mod 21. ; Submitted by Christian Krause ; 37,79,163,331,373,457,499,541,709,751,877,919,1087,1129,1171,1213,1297,1381,1423,1549,1759,1801,2011,2053,2137,2179,2221,2347,2389,2473,2557,2683,2767,2851,3019,3061,3187,3229,3271,3313,3607,3691,3733,3943,4027,4111,4153,4363,4447,4657,4783,490...
28,130
https://github.com/oumingliang/vite-template/blob/master/src/utils/theme.ts
Github Open Source
Open Source
MIT
2,022
vite-template
oumingliang
TypeScript
Code
38
132
import {Theme, useSysStore} from "@store/sys" import {localStoreApi} from "@store/localStore/local" export const changeTheme = (themenName?:string):void=>{ const body = document.body const store = new localStoreApi() const useStore = useSysStore() const base = themenName|| store.get("z-theme") || Theme.light ...
31,962
https://github.com/jhutchings1/ld-find-code-refs/blob/master/internal/options/alias.go
Github Open Source
Open Source
Apache-2.0
null
ld-find-code-refs
jhutchings1
Go
Code
878
2,621
package options import ( "context" "encoding/json" "errors" "fmt" "io/ioutil" "os/exec" "path/filepath" "regexp" "strconv" "strings" "time" "github.com/iancoleman/strcase" "gopkg.in/yaml.v2" "github.com/launchdarkly/ld-find-code-refs/internal/helpers" "github.com/launchdarkly/ld-find-code-refs/interna...
17,499
https://github.com/JoinColony/colonyDapp/blob/master/src/modules/dashboard/components/ActionsPage/DetailsWidget/DetailsWidgetTeam/DetailsWidgetTeam.tsx
Github Open Source
Open Source
CC-BY-4.0
2,022
colonyDapp
JoinColony
TypeScript
Code
57
170
import React from 'react'; import { OneDomain } from '~data/index'; import ColorTag, { Color } from '~core/ColorTag'; import styles from './DetailsWidgetTeam.css'; const displayName = 'dashboard.ActionsPage.DetailsWidget.DetailsWidgetTeam'; interface Props { domain: OneDomain; } const DetailsWidgetTeam = ({ domai...
11,930
https://github.com/delta94/verify-login/blob/master/src/views/auth/GetOAuthCodeView.js
Github Open Source
Open Source
JSON, MIT
2,020
verify-login
delta94
JavaScript
Code
152
538
import React from "react"; import { Link as RouterLink, useNavigate } from "react-router-dom"; import * as Yup from "yup"; import { Formik } from "formik"; import { Box, Button, Checkbox, Container, FormHelperText, Link, TextField, Typography, makeStyles, } from "@material-ui/core"; import Page from "...
23,345
https://github.com/urlocaluwu/RocketPlugin/blob/master/source/External/BakkesModAdditions/include/utils/stackwalker.h
Github Open Source
Open Source
MIT
2,022
RocketPlugin
urlocaluwu
C
Code
3,250
11,993
/********************************************************************** * * StackWalker.h * https://github.com/JochenKalmbach/StackWalker * * Old location: http://stackwalker.codeplex.com/ * * * LICENSE (http://www.opensource.org/licenses/bsd-license.php) * * Copyright (c) 2005-2009, Jochen Kalmbach * Al...
34,612
https://github.com/Daikichibana/colegioFinalDAW/blob/master/database/migrations/2021_06_12_223505_asignacion_gestion_curso.php
Github Open Source
Open Source
MIT
null
colegioFinalDAW
Daikichibana
PHP
Code
59
274
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AsignacionGestionCurso extends Migration { /** * Run the migrations. * * @return void */ public function up() { // Schema::create('...
8,094
https://github.com/z88dk/z88dk/blob/master/libsrc/_DEVELOPMENT/font/fzx/zx/z80/__fzx_draw_reset.asm
Github Open Source
Open Source
ClArtistic
2,023
z88dk
z88dk
Assembly
Code
68
181
SECTION code_font SECTION code_font_fzx PUBLIC __fzx_draw_reset __fzx_draw_reset: ; must not modify: ix, b, e, af', hl ; hl = screen address ; dca= bitmap bytes inc l inc l cpl and (hl) ld (hl),a ; third byte to screen dec l ld a,c cpl and (hl) ...
46,390
https://github.com/quitstate/Master-in-Logic/blob/master/exercise33/exercise33.js
Github Open Source
Open Source
MIT
null
Master-in-Logic
quitstate
JavaScript
Code
78
266
class Clock { constructor() { this.date = new Date(); this.hours = this.date.getHours(); this.minutes = this.date.getMinutes(); this.seconds = this.date.getSeconds(); } update(seconds) { this.seconds += seconds; if (this.seconds >= 60) { this.minutes++; this.seconds = 0; }...
33,495
https://github.com/vallenti/shouter/blob/master/SimpleHttpServer/Models/Route.cs
Github Open Source
Open Source
Apache-2.0
null
shouter
vallenti
C#
Code
42
94
using SimpleHttpServer.Enums; using System; namespace SimpleHttpServer.Models { public class Route { public string Name { get; set; } public string UrlRegex { get; set; } public RequestMethod Method { get; set; } public Func<HttpRequest, HttpResponse> Callable { get; set; } ...
14,628
https://github.com/gaelrenoux/darwin/blob/master/darwin-core/src/main/scala/darwin/util/IncrementalTupleIterator.scala
Github Open Source
Open Source
Apache-2.0
2,018
darwin
gaelrenoux
Scala
Code
217
512
package darwin.util import scala.annotation.tailrec /** * This class counts on tuples of Int, increment a tuple starting with the leftmost element, reducing it to zero with * a leftover to the next if it reaches the limit for the current element. If there is no element left to apply the * leftover to, it will r...
15,079
https://github.com/lightningspirit/api.covid19pt.info/blob/master/dist/math/Growth/index.js
Github Open Source
Open Source
MIT
null
api.covid19pt.info
lightningspirit
JavaScript
Code
55
154
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = (n0, n1) => { if (n0 === 0 || isNaN(n0) || isNaN(n1)) return 0; if (n0 === Infinity && n1 === Infinity) return 0; if (n0 === Infinity) return -Infinity; if (n1 === Infinity) ret...
20,467
https://github.com/desspert/mogupro/blob/master/mogupro/game/src/Game/Field/cChunkMeshBuilder.cpp
Github Open Source
Open Source
MIT
null
mogupro
desspert
C++
Code
823
2,685
#include <Game/Field/cChunkMeshBuilder.h> #include <Game/Field/cBlock.h> #include <Game/Field/cChunk.h> #include <array> using namespace ci; using namespace ci::app; namespace Game { namespace Field { const std::array<GLfloat, 12> front_face { -BLOCK_SIZE / 2, -BLOCK_SIZE / 2, BLOCK_SIZE / 2, BLOCK_SIZE / 2...
683
https://github.com/retnoriansyah/tokap/blob/master/routes/web.php
Github Open Source
Open Source
MIT
null
tokap
retnoriansyah
PHP
Code
66
221
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
29,901
https://github.com/AMDmi3/termux-packages/blob/master/packages/cups/cups-desktop-Makefile.patch
Github Open Source
Open Source
Apache-2.0
2,022
termux-packages
AMDmi3
null
Spoken
116
549
--- src/desktop/Makefile 2020-04-27 18:04:29.000000000 +0000 +++ src-mod/desktop/Makefile 2020-07-05 14:29:13.280000000 +0000 @@ -62,23 +62,6 @@ $(INSTALL_DIR) -m 755 $(BUILDROOT)$(DBUSDIR)/system.d; \ $(INSTALL_DATA) cups.conf $(BUILDROOT)$(DBUSDIR)/system.d/cups.conf; \ fi - if test "x$(MENUDIR)" != x; then \...
45,202
https://github.com/Venryx/ui-debug-kit/blob/master/Source/Utils/PRNG.ts
Github Open Source
Open Source
MIT
2,022
ui-debug-kit
Venryx
TypeScript
Code
212
583
// from: https://stackoverflow.com/a/52171480 export function GetHashForString_cyrb53(str: String, seed = 0) { /* eslint-disable */ let h1 = 0xdeadbeef ^ seed, h2 = 0x41c6ce57 ^ seed; for (let i = 0, ch; i < str.length; i++) { ch = str.charCodeAt(i); h1 = Math.imul(h1 ^ ch, 2654435761); h2 = Math.imul(h2 ^ ...
34,059
https://github.com/hpcorona/maton-tools-stiletto/blob/master/src/com/maton/tools/stiletto/cmd/helper/CommandProcessMonitor.java
Github Open Source
Open Source
MIT
2,013
maton-tools-stiletto
hpcorona
Java
Code
117
372
package com.maton.tools.stiletto.cmd.helper; import org.eclipse.core.runtime.IProgressMonitor; public class CommandProcessMonitor implements IProgressMonitor { private static CommandProcessMonitor INSTANCE; public static CommandProcessMonitor getInstance() { if (INSTANCE == null) { INSTANCE = new CommandPr...
50,786
https://github.com/smsouls/Building-RESTful-Web-Services-with-Go/blob/master/Chapter03/multipleMiddleware.go
Github Open Source
Open Source
MIT
2,022
Building-RESTful-Web-Services-with-Go
smsouls
Go
Code
216
672
package main import ( "encoding/json" "log" "net/http" "strconv" "time" ) type city struct { Name string Area uint64 } // Middleware to check content type as JSON func filterContentType(handler http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { log.Println("...
14,857
https://github.com/inv2004/coinbase-pro-nim/blob/master/coinbase_pro.nimble
Github Open Source
Open Source
MIT
2,021
coinbase-pro-nim
inv2004
Nim
Code
33
92
# Package version = "0.1.3" author = "inv2004" description = "Coinbase pro client for Nim" license = "MIT" srcDir = "src" # Dependencies requires "nim >= 1.4.2" requires "ws" requires "decimal" requires "uuids"
7,297
https://github.com/IlyaFinkelshteyn/evlog/blob/master/tests/Evlog.UnitTests/Infrastructure/Queries/AllEventsQuery_Should.cs
Github Open Source
Open Source
MIT
null
evlog
IlyaFinkelshteyn
C#
Code
204
639
/** This file uses string constants from Divorce Separation Blues (Avett Brothers) Songwriters: Timothy Avett / Robert Crawford / Scott Avett Divorce Separation Blues lyrics © BMG Rights Management */ using System; using System.Collections.Generic; using System.Threading.Tasks; using Evlog.Domain.EventAggre...
10,537
https://github.com/mahabub-hossain/weaverfirst/blob/master/app/Http/Controllers/Admin/AttendanceController.php
Github Open Source
Open Source
MIT
null
weaverfirst
mahabub-hossain
PHP
Code
345
1,624
<?php namespace App\Http\Controllers\Admin; use Illuminate\Support\Facades\Input; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Preattendance; use App\User; use App\Department; use App\Attendance; use DB; class AttendanceController extends Controller { /** * Display a listing of t...
6,153
https://github.com/blinkace/pxp/blob/master/xbrl/model/taxonomy/concept.py
Github Open Source
Open Source
MIT
2,022
pxp
blinkace
Python
Code
165
616
from xbrl.const import NS from xbrl.xml import qname from xbrl.common import sqname from xbrl.xbrlerror import XBRLError from .datatype import Datatype, ComplexDatatype from enum import Enum, auto class PeriodType(Enum): INSTANT = auto() DURATION = auto() class Concept: def __init__(self, name, datatype,...
20,983
https://github.com/jnsmalm/kobingo.js/blob/master/src/graphics/vertex-specification.cpp
Github Open Source
Open Source
MIT
2,015
kobingo.js
jnsmalm
C++
Code
686
2,074
/*The MIT License (MIT) Copyright (c) 2016 Jens Malmborg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
52,325
https://github.com/jreyes/mirror/blob/master/app/src/main/java/com/vaporwarecorp/mirror/feature/common/view/VideoPlayerFragment.java
Github Open Source
Open Source
Apache-2.0
2,022
mirror
jreyes
Java
Code
309
1,033
/* * Copyright 2016 Johann Reyes * * 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...
20,156
https://github.com/JetBrains/android/blob/master/compose-ide-plugin/testSrc/com/android/tools/compose/debug/recomposition/ParamStateTest.kt
Github Open Source
Open Source
Apache-2.0
2,023
android
JetBrains
Kotlin
Code
189
599
/* * Copyright (C) 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
13,999
https://github.com/davidje13/collection-storage/blob/master/src/dynamodb/DynamoCollection.ts
Github Open Source
Open Source
MIT
null
collection-storage
davidje13
TypeScript
Code
1,544
4,795
import { DDB, DDBItem, DDBValue, escapeName, DDBProvisionedThroughput, } from './api/DDB'; import AWSError from './api/AWSError'; import type { IDable } from '../interfaces/IDable'; import BaseCollection from '../interfaces/BaseCollection'; import type { DBKeys } from '../interfaces/DB'; import { serialiseVal...
3,230
https://github.com/garybake/quizmaster/blob/master/app/models/answer.py
Github Open Source
Open Source
MIT
null
quizmaster
garybake
Python
Code
49
172
"""Holds Answer model.""" from .. import db class Answer(db.Model): """Model to hold answers to questions.""" __tablename__ = "answers" id = db.Column(db.Integer, primary_key=True) text = db.Column(db.String(64)) is_correct = db.Column(db.Boolean(), default=False) question_id = db.Column(db...
16,036
https://github.com/norzak/jsweet/blob/master/transpiler/src/test/java/source/nativestructures/OverloadWithNative.java
Github Open Source
Open Source
Apache-2.0
2,022
jsweet
norzak
Java
Code
86
323
package source.nativestructures; import static jsweet.util.Lang.$export; import java.util.Arrays; import java.util.List; import def.js.Array; public class OverloadWithNative { static Array<String> trace = new Array<>(); public static void main(String[] args) { new OverloadWithNative(Arrays.asList("a", "b")); ...
30,442
https://github.com/skynet1/Astra-SDK-for-haptic-hammer/blob/master/samples/c-api/ColorReaderEvent/CMakeFiles/ColorReaderEvent.dir/cmake_clean.cmake
Github Open Source
Open Source
Apache-2.0
null
Astra-SDK-for-haptic-hammer
skynet1
CMake
Code
17
104
file(REMOVE_RECURSE "../../bin/ColorReaderEvent" "../../bin/ColorReaderEvent.pdb" "CMakeFiles/ColorReaderEvent.dir/main.c.o" ) # Per-language clean rules from dependency scanning. foreach(lang C) include(CMakeFiles/ColorReaderEvent.dir/cmake_clean_${lang}.cmake OPTIONAL) endforeach()
47,355
https://github.com/Granjow/bullet-train-frontend/blob/master/mobile/app/screens/__MarkupScreen__.js
Github Open Source
Open Source
BSD-3-Clause
null
bullet-train-frontend
Granjow
JavaScript
Code
84
234
/** * Created by kylejohnson on 28/01/2017. */ import React, { Component } from 'react'; const MarkupScreen = class extends Component { static options(passProps) { return _.merge({}, global.navBarStyle, { topBar: { title: { text: 'Markup' } } }); } static propTypes = { componentId: propT...
15,243
https://github.com/wayfair/statsdcc/blob/master/.gitmodules
Github Open Source
Open Source
MIT
2,019
statsdcc
wayfair
Git Config
Code
16
90
[submodule "vendor/gtest-1.7.0"] path = vendor/gtest-1.7.0 url = https://github.com/google/googletest.git [submodule "vendor/cpplint"] path = vendor/cpplint url = https://github.com/tkruse/cpplint.git
16,778
https://github.com/ucdavis/Harvest/blob/master/Harvest.Core/Models/Settings/SparkpostSettings.cs
Github Open Source
Open Source
MIT
2,021
Harvest
ucdavis
C#
Code
78
158
using System; using System.Collections.Generic; using System.Text; namespace Harvest.Core.Models.Settings { public class SparkpostSettings { public string ApiKey { get; set; } public string DisableSend { get; set; } public string UserName { get; set; } public string Password { ...
16,168
https://github.com/koksyn/hexagonal-java-report-generator/blob/master/adapter/swapi-client/src/main/java/com/report/adapter/swapi/client/converter/StringUrlToLongIdConverter.java
Github Open Source
Open Source
MIT
2,022
hexagonal-java-report-generator
koksyn
Java
Code
43
164
package com.report.adapter.swapi.client.converter; import org.apache.commons.lang3.StringUtils; import org.modelmapper.AbstractConverter; public class StringUrlToLongIdConverter extends AbstractConverter<String, Long> { @Override protected Long convert(String url) { if(StringUtils.isBlank(url)) { ...
17,030
https://github.com/rohitativy/turicreate/blob/master/src/unity/toolkits/image/CMakeLists.txt
Github Open Source
Open Source
BSD-3-Clause
2,018
turicreate
rohitativy
CMake
Code
8
58
project(unity_toolkits) make_library(unity_image_export SOURCES image_fn_export.cpp REQUIRES unity_core EXTERNAL_VISIBILITY )
16,724