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/werminghoff/Provenance/blob/master/Cores/Gambatte/GB/common/resample/src/chainresampler.cpp
Github Open Source
Open Source
BSD-3-Clause
2,022
Provenance
werminghoff
C++
Code
936
2,769
/*************************************************************************** * Copyright (C) 2008 by Sindre Aamås * * sinamas@users.sourceforge.net * * * * This pr...
3,942
https://github.com/austkao/VOOGASalad/blob/master/src/main/java/com.yeet.messenger/src/messenger/external/MenuStartEvent.java
Github Open Source
Open Source
MIT
null
VOOGASalad
austkao
Java
Code
19
42
package messenger.external; public class MenuStartEvent extends Event { @Override public String getName() { return "Menu Start Event"; } }
29,977
https://github.com/mandy8055/dataStructuresAndAlgoJava/blob/master/src/coding_bat_problems/recursion1/Problem22.java
Github Open Source
Open Source
MIT
2,021
dataStructuresAndAlgoJava
mandy8055
Java
Code
46
150
package coding_bat_problems.recursion1; // problem link: https://codingbat.com/prob/p161124 public class Problem22 { public int countAbc(String str) { // base case if(str.length() <= 2)return 0; // Main case if(str.startsWith("abc") || str.startsWith("aba")){ String ros...
37,760
https://github.com/xWriteCoder/Bozkurt/blob/master/src/main/java/tr/bozkurt/lang/LanguageManager.java
Github Open Source
Open Source
MIT
2,019
Bozkurt
xWriteCoder
Java
Code
172
639
package tr.bozkurt.lang; import tr.bozkurt.Logger; import tr.bozkurt.util.Utils; import java.io.IOException; import java.io.InputStream; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; public final class LanguageManager{ public static final String FALLBACK_LANGUAGE = "eng"...
12,366
https://github.com/BoldijarPaul/ubb/blob/master/app/src/test/java/com/ubb/app/XmlUnitTests.java
Github Open Source
Open Source
Apache-2.0
null
ubb
BoldijarPaul
Java
Code
200
1,065
package com.ubb.app; import com.shirwa.simplistic_rss.RssItem; import com.ubb.app.xml.XmlRssParser; import org.junit.Test; import java.util.List; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class XmlUnitTests { @Test public...
43,530
https://github.com/dkiltyhc/appian-locust-hc-fork/blob/master/tests/test_ui_reconciler.py
Github Open Source
Open Source
Apache-2.0
2,021
appian-locust-hc-fork
dkiltyhc
Python
Code
185
794
from appian_locust._ui_reconciler import UiReconciler import unittest class TestUiReconciler(unittest.TestCase): def setUp(self) -> None: self.reconciler: UiReconciler = UiReconciler() def test_reconcile_new_state_replace(self) -> None: # Given old_state = {"ui": {'#t': 'abc'}} ...
45,597
https://github.com/chrsjwilliams/DreamTeam/blob/master/DreamTeam/Assets/Scripts/Utils/GameEvent.cs
Github Open Source
Open Source
Unlicense
2,017
DreamTeam
chrsjwilliams
C#
Code
106
339
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityStandardAssets.Characters.FirstPerson; namespace GameEvents { public abstract class GameEvent { public delegate void Handler(GameEvent e); } public class TopicSelectedEvent : GameEvent { pub...
37,875
https://github.com/vikingz9065/vikingzgit/blob/master/myci.sql
Github Open Source
Open Source
MIT
null
vikingzgit
vikingz9065
SQL
Code
58
170
CREATE TABLE `ci_sessions`( `id` varchar(128) NOT NULL, `ip_address` varchar(45) NOT NULL, `timestamp` int(10) unsigned NOT NULL DEFAULT '0', `data` blob NOT NULL, PRIMARY KEY(`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `ci_sessions` ( `id` varchar(128) NOT NULL, `ip_ad...
49,843
https://github.com/gonzodepedro/silkopter/blob/master/q/src/video/Dynamic_Image.cpp
Github Open Source
Open Source
BSD-3-Clause
2,019
silkopter
gonzodepedro
C++
Code
3,958
12,271
#include "QStdAfx.h" #include "video/Dynamic_Image.h" using namespace q; using namespace video; Dynamic_Image::Dynamic_Image(Path const& path) : Resource(path) , m_format(Format::RGBA_8) , m_owns_data(true) , m_data_ptr(0) , m_pitch(0) { } void Dynamic_Image::allocate(Format format, math::vec2u32 const& size, ...
36,100
https://github.com/kemditkb/tutorial_shopping_cart/blob/master/src/containers/Home/components/Content.js
Github Open Source
Open Source
WTFPL
2,017
tutorial_shopping_cart
kemditkb
JavaScript
Code
233
1,030
import React, { Component } from 'react'; import { Container, Row, Col, Jumbotron, Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; import AlbumJson from './Album.json'; import Product from './Product'; import Cart from './Cart'; export default class Content extends Component { state = { m...
22,957
https://github.com/akabii/RazorPagesSample/blob/master/RazorPagesSample/Customers/InlinePageModels/_PageImports.cshtml
Github Open Source
Open Source
MIT
2,017
RazorPagesSample
akabii
HTML+Razor
Code
6
31
@using RazorPages @using Microsoft.EntityFrameworkCore @using Microsoft.AspNetCore.Mvc.RazorPages
38,228
https://github.com/milesaturpin/raft-baselines/blob/master/src/raft_baselines/classifiers/transformers_causal_lm_classifier.py
Github Open Source
Open Source
MIT
null
raft-baselines
milesaturpin
Python
Code
207
897
from typing import List, Mapping import datasets import torch from transformers import AutoModelForCausalLM from sentence_transformers import util from raft_baselines.classifiers.in_context_classifier import InContextClassifier from raft_baselines.utils.tokenizers import TransformersTokenizer from raft_baselines.util...
5,794
https://github.com/JeanMaximilienCadic/deepspeech2paddle-docker/blob/master/data/librispeech/librispeech.py
Github Open Source
Open Source
Apache-2.0
2,021
deepspeech2paddle-docker
JeanMaximilienCadic
Python
Code
408
1,897
"""Prepare Librispeech ASR datasets. Download, unpack and create manifest files. Manifest file is a json-format file with each line containing the meta data (i.e. audio filepath, transcript and audio duration) of each audio file in the data set. """ import distutils.util import os import sys import argparse import so...
2,021
https://github.com/juxd/nusmods/blob/master/www/src/js/selectors/moduleBank.js
Github Open Source
Open Source
MIT
null
nusmods
juxd
JavaScript
Code
127
401
// @flow import type { ModuleCode, ModuleCondensed, Semester } from 'types/modules'; import type { ModuleBank } from 'reducers/moduleBank'; import type { State } from 'reducers'; import type { SemTimetableConfig } from 'types/timetables'; import type { ModuleSelectListItem } from 'types/reducers'; import { getRequestM...
11,671
https://github.com/quantum-defence/MicroQiskit/blob/master/versions/MicroPython/microqiskit.py
Github Open Source
Open Source
Apache-2.0
2,021
MicroQiskit
quantum-defence
Python
Code
389
2,081
import random from math import cos,sin,pi r2=0.70710678118 class QuantumCircuit: def __init__(self,n,m=0): self.num_qubits=n self.num_clbits=m self.name = '' self.data=[] def __add__(self,self2): self3=QuantumCircuit(max(self.num_qubits,self2.num_qubits),max(self.num_clbits,self2.num_clbits)) ...
42,625
https://github.com/leidelosreyes/swappee/blob/master/resources/views/messages/mail.blade.php
Github Open Source
Open Source
MIT
null
swappee
leidelosreyes
PHP
Code
43
213
<div class="container mb-5 d-flex justify-content-around"> <div class="card" style="width:80%;"> <h3 class="card-header">Message</h3> <div class="card-body"> <div class="row"> <div class="col-12 text-center"> <h4 class="card-title">Hi <strong>{{ $name}...
32,127
https://github.com/sailfishos-flatpak/flatpak-runner/blob/master/fpk/__init__.py
Github Open Source
Open Source
BSD-3-Clause
2,021
flatpak-runner
sailfishos-flatpak
Python
Code
44
151
from .apps import refresh_apps as refresh_apps_impl from .extension import has_extension as has_extension_impl from .extension import remove_extension as remove_extension_impl from .extension import sync_extension as sync_extension_impl # externally available functions def has_extension(arch): return has_extensio...
37,412
https://github.com/Liuyuting5/AiyinYue/blob/master/爱悦台/resource/C/SearchViewController.m
Github Open Source
Open Source
MIT
2,015
AiyinYue
Liuyuting5
Objective-C
Code
963
4,673
// // SearchViewController.m // AiYueTai // // Created by qianfeng on 15/6/18. // Copyright (c) 2015年 qianfeng. All rights reserved. // #import "SearchViewController.h" #import "SearchModel.h" #import "searchCell.h" #import "DetailViewController.h" #import "LiveModel.h" @interface SearchViewController ()<UITableVi...
26,157
https://github.com/tslothorst/hangman-cpp/blob/master/game.cpp
Github Open Source
Open Source
MIT
null
hangman-cpp
tslothorst
C++
Code
175
547
#include "game.h" #include "iostream" #include "word.h" #include "gallow.h" game::game() { } game::~game() { } void game::play_game() { word w; gallow g; std::string word = w.word_to_guess(); std::cout << "Let's play hangman!\n Guess the word I picked:\n"; int wrong_count = ...
46,995
https://github.com/pstrikos/Pintos/blob/master/src/devices/batch-scheduler.c
Github Open Source
Open Source
MIT-Modern-Variant, LicenseRef-scancode-unknown-license-reference, MIT
2,020
Pintos
pstrikos
C
Code
585
1,525
/* Tests cetegorical mutual exclusion with different numbers of threads. * Automatic checks only catch severe problems like crashes. */ #include <stdio.h> #include "tests/threads/tests.h" #include "threads/malloc.h" #include "threads/synch.h" #include "threads/thread.h" #include "lib/random.h" //generate random numbe...
7,866
https://github.com/kenshinthebattosai/DotNetAnalytics.Google/blob/master/src/LinqAn.Google/Dimensions/CountryISOCode.cs
Github Open Source
Open Source
MIT
null
DotNetAnalytics.Google
kenshinthebattosai
C#
Code
76
199
using System.ComponentModel; namespace LinqAn.Google.Dimensions { /// <summary> /// The country ISO code of users, derived from IP addresses or Geographical IDs. Values are given as an ISO-3166-1 alpha-2 code. /// </summary> [Description("The country ISO code of users, derived from IP addresses or Geographical ID...
32,004
https://github.com/MironovVadim/vmironov/blob/master/chapter_004/src/test/java/ru/job4j/storage/TrashDecoratorTest.java
Github Open Source
Open Source
Apache-2.0
null
vmironov
MironovVadim
Java
Code
111
400
package ru.job4j.storage; import org.junit.Test; import ru.job4j.storage.food.Food; import ru.job4j.storage.food.Fruit; import java.util.ArrayList; import java.util.Date; import java.util.List; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * Test class. * @author Vadim Mor...
38,268
https://github.com/haterzlin/character-sheet/blob/master/src/components/VitalStat.vue
Github Open Source
Open Source
MIT
2,021
character-sheet
haterzlin
Vue
Code
345
1,036
<script> /** * Displays one stat with @param stat.id as a name of stat * Then @param scale number of points with css style @param stat.style * And init and fill css style depending on computed @param value while looking * at @param stat.defaultValue and @param stat.defaultModifier * @param stat {JSON} displayed ob...
37,224
https://github.com/dev-senior-com-br/senior-sam-node/blob/master/lib/model/lobby/IncidentTypeReactionEmail.ts
Github Open Source
Open Source
MIT
null
senior-sam-node
dev-senior-com-br
TypeScript
Code
59
148
import { BaseModel } from '../BaseModel'; export = class IncidentTypeReactionEmail extends BaseModel { /** * ID */ private _id: number; private set id(value: number) { this._id = value; } private get id() { return this._id; } /** * Email */ private _ema...
24,465
https://github.com/sontx/bottle-app/blob/master/app/src/main/java/com/blogspot/sontx/bottle/system/event/ChatChannelChangedEvent.java
Github Open Source
Open Source
Apache-2.0
2,017
bottle-app
sontx
Java
Code
15
70
package com.blogspot.sontx.bottle.system.event; import com.blogspot.sontx.bottle.model.bean.chat.Channel; import lombok.Data; @Data public class ChatChannelChangedEvent { private Channel channel; }
26,773
https://github.com/maze/go-gtfs-api/blob/master/shapes.go
Github Open Source
Open Source
MIT
2,013
go-gtfs-api
maze
Go
Code
117
376
package main import ( "menteslibres.net/gosexy/db" ) type Shape struct { ShapeId string `field:"shape_id"` PtSequence int `field:"shape_pt_sequence"` DistTraveled float64 `field:"shape_dist_traleved"` PtLat float64 `field:"shape_pt_lat"` PtLon float64 `field:"shape_pt_lon"` } const Sh...
26,817
https://github.com/y-spreen/NativeScript-Status-Bar/blob/master/sample/StatusBarSample/typings/tns-core-modules/ui/styling/stylers.d.ts
Github Open Source
Open Source
Apache-2.0
2,020
NativeScript-Status-Bar
y-spreen
TypeScript
Code
8
27
declare module "ui/styling/stylers" { export function _registerDefaultStylers(); }
23,767
https://github.com/cancervariants/variation-normalization/blob/master/variation/validators/single_nucleotide_variation_base.py
Github Open Source
Open Source
MIT
2,023
variation-normalization
cancervariants
Python
Code
830
2,363
"""The module for Single Nucleotide Variation Validation.""" from typing import List, Dict, Optional import logging from ga4gh.vrsatile.pydantic.vrs_models import CopyChange from variation.schemas.app_schemas import Endpoint from variation.schemas.classification_response_schema import Classification, \ Classifica...
7,288
https://github.com/JCCR/readium-js-viewer/blob/master/lib/versioning/UnpackagedVersioning.js
Github Open Source
Open Source
BSD-3-Clause
2,016
readium-js-viewer
JCCR
JavaScript
Code
86
336
define(['jquery', 'Readium'], function($, Readium){ var UnpackagedVersioning = { getVersioningInfo: function(callback){ var obj = { release: false, clean: false, devMode: true } var readiumVersion = Readium.version, versionInfo = {}; versionInfo.viewer = obj; version...
29,627
https://github.com/ali5ter/vmware_scripts/blob/master/tmc/terraform/standup/.gitignore
Github Open Source
Open Source
MIT
2,023
vmware_scripts
ali5ter
Ignore List
Code
4
14
.terraform* variables* plan terraform*
23,020
https://github.com/Horpey/diabPredict-timi/blob/master/src/pages/dashboard/Diagnose.vue
Github Open Source
Open Source
MIT
null
diabPredict-timi
Horpey
Vue
Code
700
3,182
<template> <div class> <div class="mt-2"> <div class="row"> <div class="col-md-7"> <div class="card" style="min-height: 494px;"> <div class="card-body mx-3"> <router-link to="/dashboard/patients" class="text-dark"> <span class="fa fa-arrow-left mr...
49,555
https://github.com/hasinilmalik/ANITA/blob/master/application/models/M_kategori.php
Github Open Source
Open Source
MIT
2,020
ANITA
hasinilmalik
PHP
Code
53
217
<?php class M_kategori extends CI_Model{ function get_kategori(){ $hasil=$this->db->query("SELECT * FROM kelas"); return $hasil; } function get_subkategori($id){ $hasil=$this->db->query("SELECT * FROM siswa WHERE id_kelas='$id'"); return $hasil->result(); } functi...
2,938
https://github.com/jamesjefferies/energy-sparks_analytics/blob/master/lib/dashboard/aggregation/amr_data.rb
Github Open Source
Open Source
MIT
null
energy-sparks_analytics
jamesjefferies
Ruby
Code
1,094
4,097
require_relative '../half_hourly_data' require_relative '../half_hourly_loader' class AMRData < HalfHourlyData attr_reader :economic_tariff, :accounting_tariff, :grid_carbon, :carbon_emissions def initialize(type) super(type) @lock_updates = false end def set_economic_tariff(meter_id, fuel_type, defa...
42,258
https://github.com/sasa27/Domoticz-Heatpump-Thermostat/blob/master/ThermostatRoom.lua
Github Open Source
Open Source
MIT
null
Domoticz-Heatpump-Thermostat
sasa27
Lua
Code
871
2,918
--thermostat for heat pump / AC -- heat only -- variables to edit ------ -------------------------------- local debugging = false --pour voir les logs dans la console log Dz ou false pour ne pas les voir local fixedTemp = 'thermostat' --domoticz button thermostat, used with force mode local mode ='selector' --domoti...
39,937
https://github.com/vpavkin/zio-keeper/blob/master/membership/src/main/scala/zio/membership/hyparview/messages.scala
Github Open Source
Open Source
Apache-2.0
null
zio-keeper
vpavkin
Scala
Code
410
1,612
package zio.membership.hyparview import upickle.default._ import zio.Chunk import zio.keeper.membership.{ ByteCodec, TaggedCodec } sealed trait ActiveProtocol[+T] object ActiveProtocol { implicit def tagged[T]( implicit c1: ByteCodec[Disconnect[T]], c2: ByteCodec[ForwardJoin[T]], c3: ByteCodec[Shu...
9,706
https://github.com/rawsonm88/Cowsay/blob/master/Cowsay/RegularExpressions.cs
Github Open Source
Open Source
MIT
2,021
Cowsay
rawsonm88
C#
Code
43
162
using System.Text.RegularExpressions; namespace Cowsay { internal static class RegularExpressions { internal static Regex Cow { get; } = new Regex(@"\$the_cow\s*=\s*<<""*EOC""*;*[\r\n]*(?<cow>[\s\S]+?)[\r\n]*EOC[\r\n]*", RegexOptions.Multiline); internal static Regex Eye { get; } = new Regex("...
31,551
https://github.com/dgolant/pence-to-sith/blob/master/Source/content_script.js
Github Open Source
Open Source
WTFPL
2,016
pence-to-sith
dgolant
JavaScript
Code
200
634
var observeDOM = (function(){ var MutationObserver = window.MutationObserver || window.WebKitMutationObserver, eventListenerSupported = window.addEventListener; return function(obj, callback){ if( MutationObserver ){ // define a new observer var obs = new MutationObserve...
50,234
https://github.com/hejiehui/xUnit/blob/master/com.xrosstools.xunit.editor/src/com/xrosstools/xunit/editor/io/UnitNodeDiagramFactory.java
Github Open Source
Open Source
Apache-2.0
2,023
xUnit
hejiehui
Java
Code
161
551
package com.xrosstools.xunit.editor.io; import org.w3c.dom.Document; import com.xrosstools.xunit.editor.model.UnitConstants; import com.xrosstools.xunit.editor.model.UnitNodeDiagram; /** * <xunit packageId name> * <description>...</description> * <imports> * <import packageId, name> * </imports> * <...
3,991
https://github.com/hexiaofeng/joyqueue/blob/master/joyqueue-server/joyqueue-broker-core/src/main/java/org/joyqueue/broker/config/Configuration.java
Github Open Source
Open Source
Apache-2.0
2,020
joyqueue
hexiaofeng
Java
Code
1,060
2,811
/** * Copyright 2019 The JoyQueue Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
18,703
https://github.com/jxc98728/cmu-tcp/blob/master/Vagrantfile
Github Open Source
Open Source
Apache-2.0
2,021
cmu-tcp
jxc98728
Ruby
Code
212
722
# -*- mode: ruby -*- # vi: set ft=ruby : $INSTALL_BASE = <<SCRIPT sudo apt-get update sudo DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential vim emacs tree tmux git gdb valgrind python-dev libffi-dev libssl-dev clang-format iperf3 tshark sudo DEBIAN_FRONTEND=noninteractive apt-get install -y pyth...
18,999
https://github.com/ARGOeu/argo-ams-library/blob/master/pymod/amsmsg.py
Github Open Source
Open Source
Apache-2.0
2,023
argo-ams-library
ARGOeu
Python
Code
354
978
import sys import json import inspect from base64 import b64encode, b64decode try: from collections.abc import Callable except ImportError: from collections import Callable from .amsexceptions import AmsMessageException class AmsMessage(Callable): """Abstraction of AMS Message AMS Message is consti...
7,498
https://github.com/sengeiou/freshDay-Market/blob/master/freshday-ware/src/main/java/com/haoliang/freshday/ware/dao/WareOrderTaskDetailDao.java
Github Open Source
Open Source
Apache-2.0
2,022
freshDay-Market
sengeiou
Java
Code
31
154
package com.haoliang.freshday.ware.dao; import com.haoliang.freshday.ware.entity.WareOrderTaskDetailEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 库存工作单 * * @author zhouhaoliang * @email 614136484@qq.com * @date 2021-04-06 15:43:36 */ @Mapper ...
48,037
https://github.com/Robscha11/vis_exc1/blob/master/node_modules/.cache/snowpack/build/d3-fetch@2.0.0/d3-fetch.js
Github Open Source
Open Source
MIT
null
vis_exc1
Robscha11
JavaScript
Code
265
709
import { dsvFormat, tsvParse, csvParse } from 'd3-dsv'; function responseBlob(response) { if (!response.ok) throw new Error(response.status + " " + response.statusText); return response.blob(); } function blob(input, init) { return fetch(input, init).then(responseBlob); } function responseArrayBuffer(response)...
704
https://github.com/TecArt/servicecatalog-development/blob/master/oscm-portal-unittests/javasrc/org/oscm/ui/beans/ReportIssueBeanTest.java
Github Open Source
Open Source
Apache-2.0
2,021
servicecatalog-development
TecArt
Java
Code
512
2,459
/******************************************************************************* * * Copyright FUJITSU LIMITED 2017 * ...
16,069
https://github.com/yothinn/employee-service/blob/master/src/modules/employee/controllers/controller.js
Github Open Source
Open Source
MIT
null
employee-service
yothinn
JavaScript
Code
507
1,619
'use strict'; var mongoose = require('mongoose'), model = require('../models/model'), mq = require('../../core/controllers/rabbitmq'), Employee = mongoose.model('Employee'), errorHandler = require('../../core/controllers/errors.server.controller'), _ = require('lodash'); const XLSX = require('xlsx'...
33,509
https://github.com/romchesko-pazzi/my-app/blob/master/src/components/EditableSpan/EditableSpan.tsx
Github Open Source
Open Source
MIT
null
my-app
romchesko-pazzi
TypeScript
Code
80
278
import React, {ChangeEvent, useState} from 'react'; export type EditableSpanPropsType = { name: string callback:(newTitle:string)=>void } export const EditableSpan = (props: EditableSpanPropsType) => { const {name,callback} = props; const [spanOrInput, setSpanOrInput] = useState(false) const [val...
27,941
https://github.com/egnitionHamburg/mopad/blob/master/client/src/business/auth.ts
Github Open Source
Open Source
MIT
2,018
mopad
egnitionHamburg
TypeScript
Code
123
390
import { ApolloLink, NextLink, Operation } from "apollo-link"; export class AuthenticationLink extends ApolloLink { constructor(private tokenStore: ISessionStore) { super(); } public request(operation: Operation, forward?: NextLink) { operation.setContext(({ headers }) => ({ he...
49,427
https://github.com/1619khze/apex/blob/master/src/main/java/org/apex/scheduler/SystemScheduler.java
Github Open Source
Open Source
MIT
2,021
apex
1619khze
Java
Code
313
676
/* * MIT License * * Copyright (c) 2020 1619kHz * * 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, ...
18,274
https://github.com/joneng2016/simulationmoise/blob/master/app/Models/StatisticSimulation.php
Github Open Source
Open Source
MIT
2,018
simulationmoise
joneng2016
PHP
Code
69
379
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class StatisticSimulation extends Model { public function __construct(){ $this->name_simulation = new \App\Models\NameSimulation; } public function insertStatistic($name_simulation,$average){ if($this->name_simulation->verifyIfExist($name_sim...
15,914
https://github.com/magefree/mage/blob/master/Mage/src/main/java/mage/game/permanent/token/JaceCunningCastawayIllusionToken.java
Github Open Source
Open Source
MIT
2,023
mage
magefree
Java
Code
173
643
package mage.game.permanent.token; import mage.constants.CardType; import mage.constants.SubType; import mage.MageInt; import mage.MageObject; import mage.abilities.TriggeredAbilityImpl; import mage.abilities.effects.common.SacrificeSourceEffect; import mage.constants.Zone; import mage.game.Game; import mage.game.eve...
49,544
https://github.com/ms2sato/isheeet/blob/master/fuel/app/classes/controller/introduction.php
Github Open Source
Open Source
MIT
null
isheeet
ms2sato
PHP
Code
54
221
<?php class Controller_Introduction extends Controller_Authenticated { public function action_index() { $data['introductions'] = Model_Introduction::find('all'); $this->template->title = "Introductions"; $this->template->content = View::forge('introduction/index', $data); } public function action_view($id ...
33,088
https://github.com/dlandi/xamarin.exposurenotification/blob/master/Xamarin.ExposureNotification/ExposureNotification.android.cs
Github Open Source
Open Source
MIT
null
xamarin.exposurenotification
dlandi
C#
Code
645
2,876
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading; using System.Threading.Tasks; using Android.App; using Android.Bluetooth; using Android.Gms.Common.Apis; using Android.Gms.Nearby.ExposureNotification; using Android.Runtime; using AndroidX.Work; using J...
31,828
https://github.com/simonscheider/mapmatching/blob/master/setup.py
Github Open Source
Open Source
MIT
2,022
mapmatching
simonscheider
Python
Code
10
53
from distutils.core import setup setup(name='mapmatcher', version='1.0', packages=['mapmatcher'], package_dir={'mapmatcher': 'mapmatcher'}, )
10,705
https://github.com/downplay/create-rogue-app/blob/master/games/hero/src/game/levels/Door.tsx
Github Open Source
Open Source
MIT
2,020
create-rogue-app
downplay
TypeScript
Code
123
284
import React from "react"; import { text, ContentAST } from "@hero/text"; import { Emoji } from "../../ui/Typography"; import { hasPosition, PositionState } from "../../mechanics/hasPosition"; import { hasTile, TileState } from "../../mechanics/hasTile"; import { entity } from "../../engine/entity"; import { canInterac...
48,452
https://github.com/daibinhua888/NeuronFramework/blob/master/NNeuronFramework/ConcreteNetwork/Core/GraphNode.cs
Github Open Source
Open Source
Apache-2.0
2,018
NeuronFramework
daibinhua888
C#
Code
339
1,103
using NNeuronFramework.ConcreteNetwork.Core.Operations; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NNeuronFramework.ConcreteNetwork.Core { public class GraphNode { public GraphNode() { this.Nexts = n...
31,299
https://github.com/TimofeyLuk/rs.ios-stage1-task1/blob/master/RSSchool_T1/RSSchool_T1/Exercises/5/PalindromeSolver.m
Github Open Source
Open Source
MIT
2,020
rs.ios-stage1-task1
TimofeyLuk
Objective-C
Code
149
433
#import "PalindromeSolver.h" @implementation PalindromeSolver // Complete the highestValuePalindrome function below. - (NSString *) highestValuePalindrome:(NSString *)s n:(NSNumber *)n k:(NSNumber *)k { NSMutableArray *arr = [[NSMutableArray alloc] initWithArray:@[]]; [s enumerateSubstringsInRange:(NSRan...
29,960
https://github.com/suhetao/srs.win/blob/master/trunk/win/lib/st/io_win.c
Github Open Source
Open Source
MIT
2,014
srs.win
suhetao
C
Code
1,845
6,131
/* * The contents of this file are subject to the Netscape Public * License Version 1.1 (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.mozilla.org/NPL/ * * Software distributed under the License is distributed on an "AS * IS" basi...
16,365
https://github.com/willsalz/example-bazel-monorepo/blob/master/book_sorting/main.py
Github Open Source
Open Source
MIT
2,022
example-bazel-monorepo
willsalz
Python
Code
38
107
import click @click.command() @click.option("--count", default=1, help="Number of greetings.") def cli(count): """ Stub program. TODO(Jonathon): Implement a more interesting program Example usage: bazel run //book_sorting:main -- --count 45 """ print("Hello world " * count) if __name__ == "__mai...
48,313
https://github.com/bobjiangps/python-spider-example/blob/master/scrapy_example/scrapy_gitee/scrapy_gitee/__init__.py
Github Open Source
Open Source
MIT
null
python-spider-example
bobjiangps
Python
Code
6
16
# scrapy crawl scrapy_gitee -o repo.csv
7,789
https://github.com/Azure/azureml-examples/blob/master/sdk/python/foundation-models/huggingface/inference/token-classification/token-classification-online-endpoint.ipynb
Github Open Source
Open Source
MIT
2,023
azureml-examples
Azure
Jupyter Notebook
Code
1,248
4,015
{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "## Deploy token-classification models from HuggingFaceHub to AzureML Online Endpoints\n", "\n", "This sample shows how to deploy `token-classification` models from the HuggingFaceHub to an online endpoint ...
16,404
https://github.com/consta-design-system/uikit/blob/master/src/components/UserSelect/__stand__/examples/UserSelectExampleItems/UserSelectExampleItems.tsx
Github Open Source
Open Source
MIT
2,023
uikit
consta-design-system
TSX
Code
98
321
import { Example } from '@consta/stand'; import React, { useState } from 'react'; import { UserSelect } from '../../../UserSelect'; type Item = { label: string; subLabel?: string; avatarUrl?: string; id: string | number; }; const items: Item[] = [ { label: 'Андрей Андреев', subLabel: 'andrey@gmail....
8,224
https://github.com/deciduously/taocp/blob/master/vol1/ch01/euclid.scm
Github Open Source
Open Source
BSD-3-Clause
null
taocp
deciduously
Scheme
Code
32
77
(import (rnrs)) (define gcd (lambda (m n) (if (and (>= m 0) (>= n 0)) (cond [(= n 0) m] [else (gcd n (mod m n))]) (- 1)))) (display (gcd 119 544))
6,682
https://github.com/lnmaurer/pyGSTi/blob/master/test/unit/tools/test_slicetools.py
Github Open Source
Open Source
Apache-2.0
2,020
pyGSTi
lnmaurer
Python
Code
142
509
from ..util import BaseCase import numpy as np from pygsti.tools.slicetools import * N = 100 slices = [] for i in range(1, N): for j in range(1, N): for k in [1, 2]: slices.append(slice(i, j, k)) class SliceToolsTester(BaseCase): def test_length(self): for s in slices: ...
43,022
https://github.com/PerfectusInc/zenshoppe-responsive-encart-template/blob/master/Theme/includes/templates/zenshoppe/templates/tpl_modules_listing_display_order.php
Github Open Source
Open Source
MIT
2,017
zenshoppe-responsive-encart-template
PerfectusInc
PHP
Code
254
889
<?php /** * Module Template * * @package templateSystem * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: tpl_modules_listing_display_order.php 3369 2006-04-03 23:09...
36,881
https://github.com/prosolotechnologies/prosolo/blob/master/prosolo-main/src/main/java/org/prosolo/services/nodes/data/resourceAccess/RestrictedAccessResult.java
Github Open Source
Open Source
BSD-3-Clause
null
prosolo
prosolotechnologies
Java
Code
67
207
package org.prosolo.services.nodes.data.resourceAccess; import java.io.Serializable; public class RestrictedAccessResult<T> implements Serializable { private static final long serialVersionUID = -3718705470521304506L; private final T resource; private final ResourceAccessData access; private RestrictedAccess...
12,703
https://github.com/sajustsmile/twitter-blockchain/blob/master/studio/node_modules/@sanity/types/parts/part.@sanity/components/build-snapshot/__legacy/@sanity/components/layer/LayerProvider.d.ts
Github Open Source
Open Source
Apache-2.0
2,021
twitter-blockchain
sajustsmile
TypeScript
Code
11
31
import React from 'react' export declare function LayerProvider({children}: {children: React.ReactNode}): JSX.Element
8,290
https://github.com/travisll/dotfiles.fish/blob/master/k9s/install.fish
Github Open Source
Open Source
MIT
2,021
dotfiles.fish
travisll
Fish
Code
30
183
#!/usr/bin/env fish if command -qs k9s switch (uname) case Darwin mkdir -p ~/Library/Preferences/k9s curl -sL https://raw.githubusercontent.com/derailed/k9s/master/skins/dracula.yml -o ~/Library/Preferences/k9s/skin.yml case Linux mkdir -p $XDG_CONFIG_HOME/k9s curl -sL https://raw.githubusercontent.com/derai...
38,119
https://github.com/jguerin4/Ascenseur-s-creed/blob/master/Assets/Scenes/ComboScene.unity.meta
Github Open Source
Open Source
CC-BY-3.0, CC-BY-4.0
2,015
Ascenseur-s-creed
jguerin4
Unity3D Asset
Code
6
39
fileFormatVersion: 2 guid: 8b0d8682864db184b961a8226c997ffc DefaultImporter: userData:
13,598
https://github.com/atdavidpark/gloo-mesh/blob/master/pkg/meshctl/commands/describe/destinations/describe_traffictarget.go
Github Open Source
Open Source
Apache-2.0
2,022
gloo-mesh
atdavidpark
Go
Code
376
1,570
package destinations import ( "bytes" "context" "fmt" "strings" "github.com/olekukonko/tablewriter" discoveryv1 "github.com/solo-io/gloo-mesh/pkg/api/discovery.mesh.gloo.solo.io/v1" "github.com/solo-io/gloo-mesh/pkg/meshctl/commands/describe/printing" "github.com/solo-io/gloo-mesh/pkg/meshctl/utils" v1 "gith...
9,636
https://github.com/r3volutionary/metaplex/blob/master/js/packages/web/src/actions/index.ts
Github Open Source
Open Source
Apache-2.0
null
metaplex
r3volutionary
TypeScript
Code
24
66
export * from './nft'; export * from './createVault'; export * from './makeAuction'; export * from './createExternalFractionPriceAccount'; export * from './deprecatedPopulatePrintingTokens'; export * from './addTokensToVault';
5,808
https://github.com/kimoapp/Jarvis.Framework/blob/master/Jarvis.Framework.Tests/ProjectionsTests/Atomic/LiveAtomicReadModelProcessorTests.cs
Github Open Source
Open Source
MIT
2,021
Jarvis.Framework
kimoapp
C#
Code
344
1,778
using Jarvis.Framework.Shared.Events; using Jarvis.Framework.Shared.ReadModel.Atomic; using Jarvis.Framework.Tests.ProjectionsTests.Atomic.Support; using NUnit.Framework; using System; using System.Threading.Tasks; namespace Jarvis.Framework.Tests.ProjectionsTests.Atomic { [TestFixture] public class LiveAtomi...
43,276
https://github.com/liorhson/artifactory-client-java/blob/master/api/src/main/java/org/jfrog/artifactory/client/model/repository/settings/ComposerRepositorySettings.java
Github Open Source
Open Source
Apache-2.0
null
artifactory-client-java
liorhson
Java
Code
16
54
package org.jfrog.artifactory.client.model.repository.settings; public interface ComposerRepositorySettings extends VcsRepositorySettings { // ** remote ** // String getComposerRegistryUrl(); }
30,379
https://github.com/hanson-young/reid-strong-baseline/blob/master/modeling/download.py
Github Open Source
Open Source
MIT
null
reid-strong-baseline
hanson-young
Python
Code
5
63
import torch.utils.model_zoo as model_zoo model_zoo.load_url('http://data.lip6.fr/cadene/pretrainedmodels/se_resnext50_32x4d-a260b3a4.pth')
41,328
https://github.com/ashkaushik0007/foodtriangle_beta/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,017
foodtriangle_beta
ashkaushik0007
Ignore List
Code
1
11
/src/app/app.config.ts
30,191
https://github.com/yosephtesfaye/mof/blob/master/src/main/resources/static/js/file.js
Github Open Source
Open Source
MIT
2,021
mof
yosephtesfaye
JavaScript
Code
91
493
$(document).ready(function() { $('#loader').hide(); $("#signup").on("click",function(){ $("#signup").prop("disabled",true); var name=$("#name").val(); var file=$("#file").val(); // Get form var form=$('#register-form')[0]; var data=new formData(form); data.append("name",name); $('#loader').show(); if(name == "" || fil...
31,124
https://github.com/nistefan/cmssw/blob/master/Calibration/HcalCalibAlgos/macros/install_OfflineMain.sh
Github Open Source
Open Source
Apache-2.0
null
cmssw
nistefan
Shell
Code
11
45
g++ -Wall -Wno-deprecated -I./ `root-config --cflags` OfflineMain.C -o OfflineMain.exe `root-config --libs`
11,109
https://github.com/foss-card-games/Solitairey/blob/master/ext/yui-unpack/yui/docs/assets/datatable/datatable-chkboxselect-tests.js
Github Open Source
Open Source
BSD-2-Clause, BSD-2-Clause-Views, BSD-3-Clause, MIT, GPL-1.0-or-later, LicenseRef-scancode-public-domain, LicenseRef-scancode-free-unknown
2,023
Solitairey
foss-card-games
JavaScript
Code
260
714
YUI.add('datatable-chkboxselect-tests', function(Y) { var suite = new Y.Test.Suite('datatable-chkboxselect example test suite'), Assert = Y.Assert; /** this sets the constrain checkbox to checked or not * The example code looks for chkbox.on('click')... attr checked == true * IE ...
38,132
https://github.com/ponyatov/replit/blob/master/docs/search/classes_b.js
Github Open Source
Open Source
MIT
null
replit
ponyatov
JavaScript
Code
6
64
var searchData= [ ['net',['Net',['../classmetaL_1_1Net.html',1,'metaL']]], ['number',['Number',['../classmetaL_1_1Number.html',1,'metaL']]] ];
34,144
https://github.com/martin-hughes/project_azalea/blob/master/test/dummy_libs/synch/kernel_mutexes.dummy.cpp
Github Open Source
Open Source
MIT
2,022
project_azalea
martin-hughes
C++
Code
270
869
// KLIB mutex dummy implementation for test scripts. // The mutex implementation in the main code relies upon the task scheduling system, which can't easily be emulated in // the test code. As such, create a dummy implementation here. //#define ENABLE_TRACING #include "klib/klib.h" #include <thread> #include <mutex> ...
29,186
https://github.com/git-gd/DarnTheLuck/blob/master/Views/Grant/Delete.cshtml
Github Open Source
Open Source
MIT
null
DarnTheLuck
git-gd
C#
Code
78
340
@model List<DarnTheLuck.ViewModels.DeleteGroupViewModel> @if (Model == null) { <h2>No Authorized Users Or Unclaimed Codes</h2> } else { <form method="post"> <div class="card"> <div class="card-header"> <h2 class="text-danger">Remove User Permissions:</h2> </div> ...
49,614
https://github.com/mlgill/mfoutparser/blob/master/mfoutparser/examples/output/mfout_singlefield_tag_header.tsv
Github Open Source
Open Source
BSD-3-Clause
2,015
mfoutparser
mlgill
TSV
Code
64
188
index tag value 0 modelfree_version 4.20 1 date Tue Jun 2 16:32:50 2015 2 input_file mfinput.3 3 model_file mfmodel.final 4 data_file ubiquitin.MFDATA 5 parameter_file ubiquitin.MFPAR 6 simulation_file none 7 optimization tval 8 seed -1985 9 search grid 10 diffusion isotropic 11 algorithm powell 12 simulations pred 13...
28,229
https://github.com/shmartel/azure-sdk-for-net/blob/master/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ApplicationGatewayAutoscaleConfiguration.Serialization.cs
Github Open Source
Open Source
MIT
2,021
azure-sdk-for-net
shmartel
C#
Code
91
374
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System.Text.Json; using Azure.Core; namespace Azure.ResourceManager.Network.Models { public partial class ApplicationGatewayAutoscaleConfiguration : IUtf8JsonSerializable ...
45,285
https://github.com/danylo-dubinin/xcom-zero-k-techrepo/blob/master/TargettingAI_Artemis.lua
Github Open Source
Open Source
MIT
null
xcom-zero-k-techrepo
danylo-dubinin
Lua
Code
626
2,315
function widget:GetInfo() return { name = "TargettingAI_Artemis", desc = "attempt to make Artemis not fire cheap aircraft with metal cost less than 270. Meant to be used with hold/return fire state. Version 1,00", author = "terve886", date = "2019", license...
49,035
https://github.com/AlexanderStanev/GameDatabase/blob/master/src/Web/GamesDatabase.Web/Areas/Administration/Views/Admin/Index.cshtml
Github Open Source
Open Source
MIT
2,022
GameDatabase
AlexanderStanev
C#
Code
80
348
@using Services.DataServices.Interfaces @inject IGenresService GenresService @inject IGamesService GamesService @inject IReviewsService ReviewsService <h2>Administration Panel</h2> <div class="row py-2"> <div class="col-sm-6"> <div class="py-2"> Currently there are <a asp-area="" asp-action="...
42,475
https://github.com/masmangan/taciturn-octo-kidney/blob/master/aula21/Jogo.cc
Github Open Source
Open Source
CC0-1.0
2,015
taciturn-octo-kidney
masmangan
C++
Code
169
412
// Jogo.cc // g++ Circulo.cc Jogo.cc -o Jogo #include <iostream> #include <vector> #include "Circulo.h" using namespace std; int main() { vector<Circulo> cs; cs.push_back( Circulo() ); cs.push_back( Circulo(100, 150, 30, 1) ); cs.push_back( Circulo(50, 70, 10, 2) ); int x, y; //bool acerto; ...
47,959
https://github.com/Mythie/prime/blob/master/packages/prime-ui/src/routes/settings/ChangePassword.tsx
Github Open Source
Open Source
MIT
2,020
prime
Mythie
TSX
Code
325
983
import { Form, Input, message } from 'antd'; import { FormComponentProps } from 'antd/lib/form'; import gql from 'graphql-tag'; import React from 'react'; import { Auth } from '../../stores/auth'; import { accountsPassword } from '../../utils/accounts'; import { client } from '../../utils/client'; type IProps = FormCo...
15,323
https://github.com/pdeoliveira/jhi-dotnetcore-cities/blob/master/src/World.Domain/Entities/AuditedEntityBase.cs
Github Open Source
Open Source
MIT
null
jhi-dotnetcore-cities
pdeoliveira
C#
Code
44
99
using System; using company.world.Domain.Interfaces; namespace company.world.Domain { public abstract class AuditedEntityBase : IAuditedEntityBase { public string CreatedBy { get; set; } public DateTime CreatedDate { get; set; } public string LastModifiedBy { get; set; } public ...
23,074
https://github.com/mohwa/emnida/blob/master/tests/unit/type/isNumber.spec.js
Github Open Source
Open Source
MIT
2,021
emnida
mohwa
JavaScript
Code
321
792
// eslint-disable-next-line import { isNumber } from '../../../lib/type'; describe('isNumber', () => { it('should be return true if 0', () => { // Given const v = 0; // When const result = isNumber(v); // Then expect(result).toEqual(true); }); it('should be return true if 1', () => { ...
19,741
https://github.com/lucasmpavelski/elmoead/blob/master/src/surrogate/benchmark/cec09_problems.cpp
Github Open Source
Open Source
MIT
2,020
elmoead
lucasmpavelski
C++
Code
2
13
#include "cec09_problems.h"
13,713
https://github.com/sentimentes/base-server/blob/master/src/main/java/com/wwls/modules/application/utils/CacheConfig.java
Github Open Source
Open Source
Apache-2.0
2,020
base-server
sentimentes
Java
Code
290
1,534
package com.wwls.modules.application.utils; import java.util.List; import com.wwls.common.utils.JedisUtils; /**** * @author xudongdong * @version 2016-07-02 * * 缓存的主键列表 * **/ public class CacheConfig { public static final String APP_INFO_MAP ="APP_INFO_MAP";//应用信息列表 public static final String APP_AUTHOR...
27,613
https://github.com/AshishSurgimap/Surgimap_laravel5/blob/master/resources/views/auth/login.blade.php
Github Open Source
Open Source
MIT
2,015
Surgimap_laravel5
AshishSurgimap
Blade
Code
130
602
@extends('app') @section('title', 'Login') @section('content') <div class="container-fluid"> <div class="row"> <div class= "header-login"> <div class="col-md-11 col-md-offset-1"> <span>Login</span> <hr> </div> </div> <div class="col-md-4 col-md-offset-1"> <div class="panel"> @if (count($er...
43,714
https://github.com/avaje-metric/avaje-metric-core/blob/master/src/main/java/io/avaje/metrics/core/noop/NoopTimedMetric.java
Github Open Source
Open Source
Apache-2.0
2,016
avaje-metric-core
avaje-metric
Java
Code
217
678
package io.avaje.metrics.core.noop; import io.avaje.metrics.MetricName; import io.avaje.metrics.TimedEvent; import io.avaje.metrics.TimedMetric; import io.avaje.metrics.statistics.MetricStatisticsVisitor; import java.util.Map; import java.util.function.Supplier; public class NoopTimedMetric implements TimedMetric { ...
42,060
https://github.com/Honey-9/Resume-Builder/blob/master/styles/globals.scss
Github Open Source
Open Source
MIT
null
Resume-Builder
Honey-9
SCSS
Code
195
646
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; } html { font-size: 80%; @media only screen and (min-width: 640px) { font-size: 80%; } @media only screen and (min-width: 768px) { font-size:...
16,099
https://github.com/iquipsys-positron/iqs-services-mqttgateway-node/blob/master/src/protocol/StatisticsMessage.ts
Github Open Source
Open Source
MIT
null
iqs-services-mqttgateway-node
iquipsys-positron
TypeScript
Code
90
232
import { IStream } from 'iqs-libs-protocols-node'; import { Message } from './Message'; import { CommStatistics } from './CommStatistics'; export class StatisticsMessage extends Message { public stats: CommStatistics[] = []; public constructor() { super(9); } public stream(stream: IStream): v...
44,908
https://github.com/tadeokondrak/kiss/blob/master/repo/libelf/build
Github Open Source
Open Source
MIT
2,019
kiss
tadeokondrak
Shell
Code
11
42
#!/bin/sh -e ./configure \ --prefix=/usr \ --disable-nls make make prefix="$1/usr" install
2,592
https://github.com/waldyrious/cosmopolitan/blob/master/libc/literal.h
Github Open Source
Open Source
0BSD
2,021
cosmopolitan
waldyrious
C
Code
81
427
#ifndef COSMOPOLITAN_LIBC_LITERAL_H_ #define COSMOPOLITAN_LIBC_LITERAL_H_ #ifdef __INT8_C #define INT8_C(c) __INT8_C(c) #define UINT8_C(c) __UINT8_C(c) #define INT16_C(c) __INT16_C(c) #define UINT16_C(c) __UINT16_C(c) #define INT32_C(c) __INT32_C(c) #define UINT32_C(c) __UINT32_C(c) #define INT64_C(c) __INT64_C(...
23,106
https://github.com/DF-Kyun/kie-docs/blob/master/docs/optaplanner-wb-es-docs/src/main/asciidoc/Workbench/AuthoringPlanningAssets-chapter.adoc
Github Open Source
Open Source
Apache-2.0
2,017
kie-docs
DF-Kyun
AsciiDoc
Code
8
51
[[_planner.authoringplanningassets]] = Authoring Planning Assets :imagesdir: .. include::AuthoringPlanningAssets/SolverEditor-section.adoc[leveloffset=+1]
28,173
https://github.com/webbestmaster/tangram-2/blob/master/res/tangram-old/ios/js/controllers/timer.js
Github Open Source
Open Source
MIT
null
tangram-2
webbestmaster
JavaScript
Code
130
439
(function (win) { var timer; timer = { init: function(){ this.node = $('.js-timer-wrapper', main.wrapper); this.countValue = 0; if (this.timeoutID !== undefined) { clearTimeout(this.timeoutID); } if (!info.timerIsActive && this.node) { this.node.style.display = 'none'; return; } ...
31,510
https://github.com/arunvc/incubator-pagespeed-mod/blob/master/net/instaweb/http/sync_fetcher_adapter_callback.cc
Github Open Source
Open Source
Apache-2.0
2,018
incubator-pagespeed-mod
arunvc
C++
Code
367
1,148
/* * 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 ...
27,166
https://github.com/Djohnnie/DotNet6-DotNetDeveloperDays-2021/blob/master/4-CSharp10Features/4-CSharp10Features.Records/Program.cs
Github Open Source
Open Source
Unlicense
2,021
DotNet6-DotNetDeveloperDays-2021
Djohnnie
C#
Code
130
322
 var p1 = new Person1 { Name = "Johnny Hooyberghs", Age = 36 }; Console.WriteLine(p1); var p2 = new Person2("Johnny Hooyberghs", 36); Console.WriteLine(p2); var p3 = p2 with { Age = 25 }; Console.WriteLine(p3); var p4 = new Person4("Johnny Hooyberghs", 36); p4.Age++; Console.WriteLine(p4); var p5 = new ...
41,883