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/sai-public-user/new/blob/master/src/common/CustomTable/SharedStyles.js
Github Open Source
Open Source
MIT
2,019
new
sai-public-user
JavaScript
Code
347
1,161
import React from 'react'; import styled from 'styled-components'; const TableHeader = styled.tr ` min-height: 54px; max-height: 54px; padding-left: 0.5rem; background-color: #3c65ab; color: white; text-transform: uppercase; display: flex; flex-wrap: wrap; max-width: 99vw !important; flex-direction: column; `; const...
10,714
https://github.com/honzajscz/visual_profiler/blob/master/Source/VisualProfilerUITests/ViewModelsTest.cs
Github Open Source
Open Source
MIT
2,019
visual_profiler
honzajscz
C#
Code
87
383
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Moq; using NUnit.Framework; using VisualProfilerUI.Model.ContainingUnits; using VisualProfilerUI.Model.Criteria; using VisualProfilerUI.Model.CriteriaContexts; using VisualProfilerUI.Model.Values; namespace VisualProfilerUITes...
44,691
https://github.com/yidao2000/crm/blob/master/src/main/java/com/yunchuang/crm/config/message/Tfrom.java
Github Open Source
Open Source
Xerox, Intel
2,018
crm
yidao2000
Java
Code
144
358
package com.yunchuang.crm.config.message; /** * @author 尹冬飞 * @date 2015-07-27 10:25:30 */ public class Tfrom { private String no; private String pub; private String time; private String nonce; private String pubtoken; public String getNo() { return no; } public void setNo(String no) { this.no = no; ...
48,101
https://github.com/umer-rs/runelite/blob/master/runescape-client/src/main/java/OtlTokenResponse.java
Github Open Source
Open Source
BSD-2-Clause
2,022
runelite
umer-rs
Java
Code
17
98
import net.runelite.mapping.Implements; import net.runelite.mapping.ObfuscatedName; @Implements("OtlTokenResponse") @ObfuscatedName("com/jagex/oldscape/pub/RefreshAccessTokenResponse") public interface OtlTokenResponse { boolean isSuccess(); String getAccessToken(); String getRefreshToken(); }
18,708
https://github.com/alaingalvan/conan-vulkan-sdk/blob/master/conanfile.py
Github Open Source
Open Source
Apache-2.0
2,021
conan-vulkan-sdk
alaingalvan
Python
Code
114
519
from conans import ConanFile import os class VulkanSDKConan(ConanFile): name = 'vulkan-sdk' version = '1.0.46.0' description = "The official Vulkan SDK distributed by LunarG." author = "Alain Galvan (hi@alain.xyz)" license = 'Apache' url = 'https://github.com/alaingalvan/conan-vulkan-sdk.git'...
8,752
https://github.com/JaneMandy/CS/blob/master/org/apache/fop/afp/Completable.java
Github Open Source
Open Source
Apache-2.0
2,022
CS
JaneMandy
Java
Code
12
40
package org.apache.fop.afp; public interface Completable { void setComplete(boolean var1); boolean isComplete(); }
24,006
https://github.com/wagavulin/ropencv2/blob/master/dev-tools/run-extconf.sh
Github Open Source
Open Source
Apache-2.0
null
ropencv2
wagavulin
Shell
Code
35
168
#!/bin/bash script_dir=$(cd $(dirname ${BASH_SOURCE:-$0}); pwd) if [ ! -e $script_dir/settings.sh ]; then echo "Error: Could not find $script_dir/settings.sh" 1>&2 exit 1 fi . $script_dir/settings.sh export PKG_CONFIG_PATH=$opencv_install_dir/lib/pkgconfig opts="$opts --with-opt-include=$opencv_install_dir/in...
4,545
https://github.com/TeiNico/connector-examples/blob/master/java/database-update/src/main/sql/create-table.postgresql.sql
Github Open Source
Open Source
Apache-2.0
2,020
connector-examples
TeiNico
SQL
Code
21
44
create table if not exists case_event ( id serial primary key, case_id varchar(24) not null, created timestamp not null, type varchar(16));
11,946
https://github.com/FahmidAnabi/RoXtar-Tools/blob/master/QRCode/index.php
Github Open Source
Open Source
MIT
2,019
RoXtar-Tools
FahmidAnabi
Hack
Code
139
972
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="shortcut icon" type="img/favicon.png" href="http://localhost/RoXtar/favicon.ico"/> <title>Generate QR Code</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integri...
32,825
https://github.com/huangyuzai/takeaway/blob/master/src/components/header/AppHeader.vue
Github Open Source
Open Source
MIT
null
takeaway
huangyuzai
Vue
Code
623
2,765
<template> <div class="AppHeader"> <!-- 商品信息 --> <div class="headerContent"> <div class="avatar"> <img :src="seller.avatar" alt=""> </div> <div class="storeInfo"> <div class="storeTitle"> <span class="storeIcon"></span> <h1>{{seller.name}}</h1> </d...
46,668
https://github.com/RotanovPavel/Laravel/blob/master/resources/views/test.blade.php
Github Open Source
Open Source
MIT
2,019
Laravel
RotanovPavel
PHP
Code
335
1,617
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <link href="{{ asset('/css/main.css') }}" rel="stylesheet"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></scrip...
1,707
https://github.com/mahajanankur/express-boilerplate/blob/master/index.js
Github Open Source
Open Source
Apache-2.0
2,020
express-boilerplate
mahajanankur
JavaScript
Code
209
575
const express = require("express"); const bodyParser = require("body-parser"); const config = require("config"); const { ExpressLoggerFactory } = require("motifer"); const helmet = require("helmet"); const cors = require("cors"); const fs = require("fs"); const https = require('https'); //Controllers const welcomeContr...
6,816
https://github.com/signumsoftware/framework/blob/master/Extensions/Signum.Authorization.ActiveDirectory/Windows/WindowsAuthenticationController.cs
Github Open Source
Open Source
MIT
2,023
framework
signumsoftware
C#
Code
54
202
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Signum.API.Filters; using Signum.Authorization.AuthToken; namespace Signum.Authorization.ActiveDirectory.WindowsAuthentication; [ValidateModelFilter] public class WindowsAuthenticationController : ControllerBase { [HttpPost("api/auth/...
7,311
https://github.com/heymanhn/journey-web/blob/master/app/reducers/dropdowns.js
Github Open Source
Open Source
MIT
2,017
journey-web
heymanhn
JavaScript
Code
107
376
'use strict'; import _ from 'underscore'; import { combineReducers } from 'redux'; import { LOGOUT } from 'app/actions/auth'; import { SHOW_DROPDOWN, HIDE_DROPDOWN } from 'app/actions/dropdowns'; import { API_GET_TRIP_REQUEST } from 'app/actions/trips'; import { dropdownComponents, initialDropdownState } from ...
52,161
https://github.com/mrlazyg/dsa-nodejs/blob/master/Node-Express/UsingJade/app.js
Github Open Source
Open Source
MIT
2,020
dsa-nodejs
mrlazyg
JavaScript
Code
47
115
const express = require("express"); const app = express(); const PORT = process.env.PORT || 3000; app.use(express.static("public")); app.set("view engine", "jade"); // specify the engine name // JADE app.get("/", (req, res) => { res.render("sample"); // By default jade looks into 'views' dir }); app.listen(PORT, (...
35,694
https://github.com/kallisons/P50DepthAnalysis_v1.0/blob/master/RCode/Analysis_P50Depth_transect.R
Github Open Source
Open Source
MIT
2,016
P50DepthAnalysis_v1.0
kallisons
R
Code
519
3,867
#Analysis of Results: Geographic comparison of latitudinal gradients along the transect between 10 and 20 degrees N and between 20 degrees North and 59 degrees North #Change working directory to P50DepthAnalysis_v1.0/RCode using the setwd() command or using the Misc menu. #getwd() #shows the current working director...
16,265
https://github.com/wsaryada/yao/blob/master/src/yao4/gate/Gate.java
Github Open Source
Open Source
MIT, Unlicense
2,021
yao
wsaryada
Java
Code
280
2,075
package yao4.gate; import java.util.Random; import yao.Utils; public class Gate { byte[][] lut=new byte[16][]; public Gate(){} public Gate(byte[] l1,byte[] l2,byte[] l3,byte[] l4, byte[] l5,byte[] l6,byte[] l7,byte[] l8, byte[] l9,byte[] l10,byte[] l11,byte[] l12, byte[] l13,byte[] l14,byte[] l15...
37,459
https://github.com/Prateek-Thakare/beautiful-react-diagrams/blob/master/esm/shared/functions/getPathMidpoint.js
Github Open Source
Open Source
MIT
2,021
beautiful-react-diagrams
Prateek-Thakare
JavaScript
Code
43
151
/* beautiful-react-diagrams version: 0.5.1 */ var getPathMidpoint = function getPathMidpoint(pathElement) { if (pathElement.getTotalLength && pathElement.getPointAtLength) { var midpoint = pathElement.getTotalLength() / 2; var _pathElement$getPoint = pathElement.getPointAtLength(midpoint), x = _pathE...
51,603
https://github.com/s-mihara/applemusictweet/blob/master/app/Http/Controllers/DetailController.php
Github Open Source
Open Source
MIT
2,016
applemusictweet
s-mihara
PHP
Code
233
1,018
<?php namespace App\Http\Controllers; use App\Common\amtUtils; use App\Common\requestScopeUtils; use DB; use Input; define('SLA_ESCAPE', ' sla_escape '); class DetailController extends Controller { /** * 一覧初期表示 * * @return Response */ public function index($parentTitle) { /...
41,360
https://github.com/qiboda/NayukiYq/blob/master/NayukiYq/Include/NayukiYq/Common/Delegate/DelegateHandle.h
Github Open Source
Open Source
MIT
null
NayukiYq
qiboda
C
Code
107
309
#pragma once #include <NayukiYq/NayukiYq.h> class NAYUKIYQ_API DelegateHandle { public: enum class GenerateNewHandleType { GenerateNewHandle }; public: DelegateHandle() : mHandleId( 0u ) {} explicit DelegateHandle( GenerateNewHandleType ) : mHandleId( GenerateNewId() ) {}...
5,949
https://github.com/tal-tech/insight/blob/master/backend/cmd/api/internal/logic/tracealter/deletepagelogic.go
Github Open Source
Open Source
MIT
2,022
insight
tal-tech
Go
Code
225
832
package logic import ( "context" "errors" "strings" "tracking/cmd/api/internal/model" "tracking/cmd/api/internal/svc" "tracking/cmd/api/internal/types" "github.com/tal-tech/go-zero/core/logx" "github.com/tal-tech/go-zero/core/stores/sqlx" ) type DeletePageLogic struct { logx.Logger ctx context.Context ...
17,760
https://github.com/PedroLuisBernardos/INF5190/blob/master/app/main/__init__.py
Github Open Source
Open Source
Apache-2.0
null
INF5190
PedroLuisBernardos
Python
Code
21
44
# __init__.py # Defini le blueprint des autres routes from flask import Blueprint bp = Blueprint('main', __name__) from app.main import routes
10,189
https://github.com/Kinpzz/UDASOD-UPL/blob/master/tools/filter_csv_res.py
Github Open Source
Open Source
MIT
2,022
UDASOD-UPL
Kinpzz
Python
Code
104
396
import os src_csv_path = "" out_csv_file = "" orginal_metrics = [ 'sm', 'wfm', 'adp_fm', 'mean_fm', 'max_fm', 'adp_em', 'mean_em', 'max_em', 'mae' ] target_metrics = [ 'sm', 'wfm', 'mae' ] target_metrics = [ 'sm','wfm','mean_fm','max_fm','mean_em','max_em','mae' ] if __name__ == "_...
39,198
https://github.com/smessie/Nameless/blob/master/custom/panel_templates/Default/core/emails_edit_messages_preview.tpl
Github Open Source
Open Source
MIT
2,022
Nameless
smessie
null
Spoken
143
632
<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Email Preview</title> </head> <body> <style> body { font-family: arial; } .email { font-size: 0.85em; border: 1px s...
46,540
https://github.com/HQ20/solidity-parser-antlr/blob/master/test/utils.js
Github Open Source
Open Source
MIT
2,020
solidity-parser-antlr
HQ20
JavaScript
Code
137
396
const { assert } = require('chai') const parser = require('../src/index') function print(obj) { console.log(JSON.stringify(obj, null, 2)) } function parseContract(source, options = {}) { var ast = parser.parse(source, options) assert.isOk(ast.children[0]) return ast.children[0] } function parseNode(source, o...
20,817
https://github.com/FATMAP/liftie/blob/master/test/resorts/lesarcs.js
Github Open Source
Open Source
BSD-3-Clause, MIT, LicenseRef-scancode-visual-idiot, CC-BY-SA-3.0
2,023
liftie
FATMAP
JavaScript
Code
139
631
const lifts = require('../lifts'); lifts('lesarcs', 'html', { '2300': 'open', 'ARC EN CIEL': 'open', 'ARPETTE.': 'closed', 'CACHETTE.': 'open', 'MONT BLANC.': 'closed', 'CLOCHERET.': 'closed', 'COMBETTES.': 'open', 'MILLERETTE': 'closed', 'SNOWPARK': 'closed', 'TOMMELET': 'closed', 'VEZAILLE': 'o...
44,662
https://github.com/csu-anzai/verify-self-service/blob/master/spec/system/visit_user_journey_check_your_certificate_page_spec.rb
Github Open Source
Open Source
MIT
2,019
verify-self-service
csu-anzai
Ruby
Code
229
1,015
require 'rails_helper' RSpec.describe 'Check your certificate page', type: :system do include CertificateSupport before(:each) do login_certificate_manager_user end it 'shows check your certificate page for msa encryption and successfully goes to next page' do certificate = create(:msa_encryption_cer...
23,641
https://github.com/Axway-API-Management-Plus/ws-client-simple/blob/master/src/main/java/io/github/axway/apimplus/websocket/client/Endpoint.java
Github Open Source
Open Source
Apache-2.0
null
ws-client-simple
Axway-API-Management-Plus
Java
Code
209
671
package io.github.axway.apimplus.websocket.client; import java.io.IOException; import java.net.URI; import java.util.concurrent.atomic.AtomicInteger; import javax.websocket.ClientEndpoint; import javax.websocket.DeploymentException; import javax.websocket.OnClose; import javax.websocket.OnMessage; import javax.websoc...
51,847
https://github.com/feenkcom/zinc/blob/master/repository/Zinc-Resource-Meta-Core.package/ZnUrl.class/instance/isFile.st
Github Open Source
Open Source
MIT
2,022
zinc
feenkcom
null
Spoken
6
12
testing isFile ^ scheme = #file
24,027
https://github.com/djforth/react-search/blob/master/lib/components/filters_radio.js
Github Open Source
Open Source
MIT
null
react-search
djforth
JavaScript
Code
428
1,249
"use strict"; var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProp...
27,490
https://github.com/Magic-Solutions-DMCC/VDAnimation/blob/master/Sources/VDAnimation/SwiftUIAnimation/Bind.swift
Github Open Source
Open Source
MIT
2,021
VDAnimation
Magic-Solutions-DMCC
Swift
Code
45
109
// // Bind.swift // VDTransition // // Created by Данил Войдилов on 19.05.2021. // import Foundation @propertyWrapper struct Bind<T> { let get: () -> T let set: (T) -> Void var wrappedValue: T { get { get() } nonmutating set { set(newValue) } } }
34,233
https://github.com/Alliander/decentralized-auth/blob/master/raspberry-pi-client/src/modules/iota/kerl/kerl.js
Github Open Source
Open Source
Apache-2.0
2,021
decentralized-auth
Alliander
JavaScript
Code
288
944
// SOURCE: https://github.com/iotaledger/kerl/blob/master/javascript/kerl.js const CryptoJS = require('crypto-js'); const Converter = require('./converter'); function Kerl() { this.HASH_LENGTH = 243; this.BIT_HASH_LENGTH = 384; this.BYTE_HASH_LENGTH = this.BIT_HASH_LENGTH / 8; this.k = CryptoJS.algo.SHA3.cre...
43,083
https://github.com/blockspacer/keto/blob/master/src/modules/router_module/include/keto/router/RouterRegistry.hpp
Github Open Source
Open Source
MIT
2,018
keto
blockspacer
C++
Code
147
465
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: RouterRegistry.hpp * Author: ubuntu * * Created on March 30, 2018, 10:07 AM */ #ifndef ROUTERREGISTRY_HPP #define ...
22,110
https://github.com/PokhrelAnish/dsa.js-data-structures-algorithms-javascript/blob/master/lab/exercises/08-dynamic-programming/hanoi-tower.spec.js
Github Open Source
Open Source
MIT
2,022
dsa.js-data-structures-algorithms-javascript
PokhrelAnish
JavaScript
Code
60
282
const expect = require('chai').expect; const hanoiTower = require('./hanoi-tower'); describe('hanoiTower', function() { it('0', function () { expect(hanoiTower(0)).to.equal(0); }); it('1', function () { expect(hanoiTower(1)).to.equal(2); }); it('2', function () { expect(hanoiTower(2)).to.equal(...
4,003
https://github.com/cloudflare/go/blob/master/src/cmd/cgo/internal/testgodefs/testdata/anonunion.go
Github Open Source
Open Source
BSD-3-Clause, CC-BY-4.0, LicenseRef-scancode-google-patent-license-golang
2,023
go
cloudflare
Go
Code
100
161
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build ignore package main // This file tests that when cgo -godefs sees a struct with a field // that is an anonymous union, the first field in the union...
23,302
https://github.com/ayeh9/ecommerce_site/blob/master/parameters_8.py
Github Open Source
Open Source
BSD-3-Clause
null
ecommerce_site
ayeh9
Python
Code
1
56
password="pbkdf2(1000,20,sha512)$86a9a2cef4cf91c7$d101f64dcb1b07a6c1478e96b2c03c3b568445b4"
14,033
https://github.com/RVFractal/Fractal-UI/blob/master/dist/components/SegmentedControl/SegmentsSeparators.d.ts
Github Open Source
Open Source
MIT
2,021
Fractal-UI
RVFractal
TypeScript
Code
21
50
interface Props { values: number; selectedIndex?: number; } export declare const SegmentsSeparators: ({ values, selectedIndex }: Props) => JSX.Element; export {};
52,569
https://github.com/grohith327/simplegan/blob/master/simplegan/losses/infogan_loss.py
Github Open Source
Open Source
MIT
2,020
simplegan
grohith327
Python
Code
77
245
import tensorflow as tf __all__ = ["auxillary_loss"] def auxillary_loss(disc_target, disc_preds, cont_trg, cont_pred): r""" Args: disc_target (tensor): a tensor representing the discriminator target ouput disc_preds (tensor): a tensor representing the prediction of discriminator con...
34,520
https://github.com/fomkin/tofu/blob/master/core/src/main/scala/tofu/Context.scala
Github Open Source
Open Source
Apache-2.0
null
tofu
fomkin
Scala
Code
1,898
4,943
package tofu import cats.{Applicative, FlatMap, Functor, ~>} import cats.data.ReaderT import tofu.lift.{Lift, Unlift} import tofu.optics.{Contains, Equivalent, Extract} import tofu.syntax.funk._ /** Declares that [[F]] can provide value of type Ctx * * In other words this trait tells you that F is some kind of R...
47,396
https://github.com/xixihemaimai/-OA/blob/master/OAManage/OAManage/Classes/其他/分类/RSBaseViewController.h
Github Open Source
Open Source
Apache-2.0
2,023
-OA
xixihemaimai
Objective-C
Code
222
1,286
// // RSBaseViewController.h // OAManage // // Created by mac on 2018/11/5. // Copyright © 2018年 mac. All rights reserved. // #import <UIKit/UIKit.h> @class ZZQEmptyView,NetworkTool,RSUserModel; @interface RSBaseViewController : UIViewController<UITableViewDelegate,UITableViewDataSource> @property (nonatomic,str...
26
https://github.com/muffinista/chatterbot/blob/master/spec/direct_messages_spec.rb
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
chatterbot
muffinista
Ruby
Code
234
1,016
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "Chatterbot::DirectMessages" do let(:bot) { test_bot } describe "direct_message" do it "calls require_login" do expect(bot).to receive(:require_login).and_return(false) bot.direct_message("hello") end context "when...
49,288
https://github.com/arcus-azure/arcus.webapi/blob/master/src/Arcus.WebApi.Logging/Correlation/CorrelationMiddleware.cs
Github Open Source
Open Source
MIT
2,023
arcus.webapi
arcus-azure
C#
Code
255
761
using System; using System.Threading.Tasks; using Arcus.WebApi.Logging.Core.Correlation; using GuardNet; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; namespace Arcus.WebApi.Logging.Correlation { /// <summary> /// Correlate the incoming request with the outgoing response by using previo...
29,622
https://github.com/xlnwel/g2rl/blob/master/algo2/gail/nn.py
Github Open Source
Open Source
Apache-2.0
2,021
g2rl
xlnwel
Python
Code
87
340
import tensorflow as tf from core.module import Module from nn.func import Encoder, mlp from algo.ppo.nn import Actor, Value, PPO class Discriminator(Module): def __init__(self, config, name='discriminator'): super().__init__(name) config = config.copy() self._layers = mlp(**config, out_...
31,002
https://github.com/pg83/mix/blob/master/pkgs/lib/c++/std/mix.sh
Github Open Source
Open Source
MIT
2,022
mix
pg83
Shell
Code
150
598
{% extends '//mix/template/autohell.sh' %} {% block fetch %} http://mirror.koddos.net/gcc/releases/gcc-11.2.0/gcc-11.2.0.tar.xz 31c86f2ced76acac66992eeedce2fce2 {% endblock %} {% block lib_deps %} lib/c/naked/mix.sh {% endblock %} {% block bld_tool %} bld/python/mix.sh {% endblock %} {% block unpack %} {{super()}} ...
41,738
https://github.com/dakriy/Rosario-ROV/blob/master/ROVController/src/Frames/GraphFrame.cpp
Github Open Source
Open Source
MIT
2,019
Rosario-ROV
dakriy
C++
Code
719
2,450
#include "GraphFrame.h" #include "../Core/GlobalContext.h" #include "../Utilities/Utilities.h" #include "../Factories/TextFactory.h" #include <limits> #include <string> #include <iomanip> #include <sstream> #include <imgui-SFML.h> #include <imgui.h> Frames::GraphFrame::GraphFrame() : linesPerScreenTarget(13, 8) { win...
33,159
https://github.com/mjebrahimi/EasyCompressor/blob/master/src/EasyCompressor.LZ4/LZ4Compressor.cs
Github Open Source
Open Source
MIT
2,022
EasyCompressor
mjebrahimi
C#
Code
252
962
using System; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using K4os.Compression.LZ4; using K4os.Compression.LZ4.Streams; namespace EasyCompressor { /// <summary> /// LZ4 compressor /// </summary> public class LZ4Compressor : BaseCompressor { /...
34,401
https://github.com/ldd/samosa-search/blob/master/app/components/Sale/SaleBase.js
Github Open Source
Open Source
MIT
2,016
samosa-search
ldd
JavaScript
Code
85
377
import React from 'react'; import {baseUtils} from '../../base/base'; class SaleBase extends React.Component{ constructor(props){ super(props); this.state={ sale:{ loc: 0, price: 0, time: 0, confirmed: false, ...
35,113
https://github.com/ishkin/Proton/blob/master/IBM Proactive Technology Online/ProtonJ2SE/src/com/ibm/hrl/proton/runtime/metadata/IMetadataFacade.java
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,022
Proton
ishkin
Java
Code
57
253
package com.ibm.hrl.proton.runtime.metadata; import com.ibm.hrl.proton.metadata.inout.ConsumerProducerMetadata; public interface IMetadataFacade { public ContextMetadataFacade getContextMetadataFacade() ; public EPAManagerMetadataFacade getEpaManagerMetadataFacade(); public EventMetadataFacade getEventMetadataFaca...
25,760
https://github.com/conceptslearningmachine-FEIN-85-1759293/lms/blob/master/MEIClient/MKHIClient/Include/MKHIErrorException.h
Github Open Source
Open Source
Apache-2.0
2,019
lms
conceptslearningmachine-FEIN-85-1759293
C++
Code
75
258
/*++ /* SPDX-License-Identifier: Apache-2.0 */ /* * Copyright (C) 2009-2019 Intel Corporation */ /*++ @file: MKHIErrorException.h --*/ #ifndef __MKHI_ERROR_EXCEPTION_H #define __MKHI_ERROR_EXCEPTION_H #include <stdexcept> namespace Intel { namespace MEI_Client { namespace MKHI_Client { class MKHIErrorEx...
4,391
https://github.com/oxelson/gempak/blob/master/gempak/source/gemlib/tg/ctgcftm.c
Github Open Source
Open Source
BSD-3-Clause
2,022
gempak
oxelson
C
Code
217
513
#include "fortran_wrappers.h" void ctg_cftm ( int ifcast, char *ftype, char *ftime, int *iret ) /************************************************************************ * ctg_cftm * * * * This subroutine converts an integer grid forecast time into * * the character forecast type and time. The for...
45,344
https://github.com/micheljung/kotlin-grass/blob/master/settings.gradle.kts
Github Open Source
Open Source
Apache-2.0
2,021
kotlin-grass
micheljung
Kotlin
Code
6
49
rootProject.name = "kotlin-grass" include(":kotlin-grass-core") include(":kotlin-grass-parser") include(":kotlin-grass-date-time")
19,575
https://github.com/vincent03460/fortrend-web/blob/master/lib/symfony/vendor/propel-generator/templates/sql/base/pgsql/primarykey.tpl
Github Open Source
Open Source
MIT
null
fortrend-web
vincent03460
null
Spoken
14
38
<?php if ($table->hasPrimaryKey()) { ?> PRIMARY KEY (<?php echo $table->printPrimaryKey() ?>), <?php } ?>
2,105
https://github.com/DevenLu/opencv_contrib/blob/master/modules/wechat_qrcode/src/zxing/common/hybrid_binarizer.hpp
Github Open Source
Open Source
BSD-3-Clause-No-Nuclear-Warranty, Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,021
opencv_contrib
DevenLu
C++
Code
368
1,202
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Tencent is pleased to support the open source community by making WeChat QRCode available. // Copyright (C) 2020 THL A29...
12,628
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/a/aws-sdk/src/main/scala/typingsSlinky/awsSdk/opsworksMod/DescribeUserProfilesRequest.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
100
380
package typingsSlinky.awsSdk.opsworksMod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait DescribeUserProfilesRequest extends StObject { /** * An array...
20,492
https://github.com/tantangin/video-course/blob/master/themes/admin/azzara/pages/Video/Partials/_card-video.php
Github Open Source
Open Source
MIT
null
video-course
tantangin
PHP
Code
78
354
<!--Card--> <div class="card"> <!--Card image--> <video class="img-fluid video-here" controls playsinline muted loop> <source src="<?= base_url("assets/video/{$video->file}"); ?>" type="video/mp4"> </video> <!--Card content--> <div class="card-body"> <!--Title--> <h4 class="card-title"><?= $video-...
20,453
https://github.com/websvcPT/badger/blob/master/src/services/badge.js
Github Open Source
Open Source
MIT
2,019
badger
websvcPT
JavaScript
Code
112
356
import { BadgeFactory } from 'gh-badges'; const bas = {}; const bf = new BadgeFactory(); const defaultObj = { badgeName: '', label: null, message: null, style: 'plastic', labelColor: 'blue', color: 'lightgrey', link: null }; const requiredKeys = ['badgeName', 'label', 'message']; bas.bui...
14,523
https://github.com/packeted/OpenSpeechPlatform-UCSD/blob/master/Software/Build-Scripts/ews_php_embedded
Github Open Source
Open Source
BSD-2-Clause
2,020
OpenSpeechPlatform-UCSD
packeted
Shell
Code
151
405
#!/bin/bash echo echo echo "This script will use 'sudo' throughout at various times, invoke this" echo "as a user with sudo priveleges and enter your user password when prompted" echo echo OS=$(uname) echo Build and install EWS-PHP version on embedded device cd - sudo mkdir -p /opt sudo rsync -avr --exclude='vendor'...
37,086
https://github.com/epam/fix-antenna-net-core/blob/master/Tests/Tester.Tests/SelfTest/Updater/LazyUpdaterTest.cs
Github Open Source
Open Source
Apache-2.0
2,022
fix-antenna-net-core
epam
C#
Code
173
857
// Copyright (c) 2021 EPAM Systems // // 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 ...
44,882
https://github.com/HeRaNO/ChickenRibs/blob/master/MachineLearning/MNIST/datacheck.py
Github Open Source
Open Source
MIT
2,021
ChickenRibs
HeRaNO
Python
Code
34
124
''' datackeck.py:用于检查 MNIST 数据。 Author:HeRaNO ''' import gzip import pickle import numpy as np import collections f = gzip.open('mnist.pkl.gz', 'rb') training_data, vali_data, test_data = pickle.load(f, encoding = 'bytes') f.close() y = training_data[1] print(y) print(collections.Counter(y))
32,817
https://github.com/pluswerk/grumphp-typo3scan-task/blob/master/t3scan/vendor/twig/twig/src/Node/Expression/Binary/NotInBinary.php
Github Open Source
Open Source
MIT, BSD-3-Clause
2,020
grumphp-typo3scan-task
pluswerk
PHP
Code
36
173
<?php namespace Twig\Node\Expression\Binary; use Twig\Compiler; class NotInBinary extends AbstractBinary { public function compile(Compiler $compiler) { $compiler ->raw('!twig_in_filter(') ->subcompile($this->getNode('left')) ->raw(', ') ->subcompile($this->getNode('right')) ->raw(')') ; } public function ...
20,248
https://github.com/Torniojaws/vortech-api/blob/master/apps/releases/songs/getsongs.php
Github Open Source
Open Source
MIT
2,017
vortech-api
Torniojaws
PHP
Code
61
201
<?php namespace Apps\Releases\Songs; class GetSongs extends \Apps\Abstraction\CRUD { /** * Get the songs for the given ReleaseID * @param int $releaseID Is the release we look for */ public function get(int $releaseID) { $sql = $this->read->select()->from('ReleaseSongs') ...
29,856
https://github.com/thehcker/loginphp/blob/master/host/database.php
Github Open Source
Open Source
MIT
2,018
loginphp
thehcker
PHP
Code
32
94
<?php $host = 'localhost'; $user = 'root'; $password = ''; $db = 'mail'; $conn = mysql_connect($host,$user,$password); $mydb = mysql_select_db($db); if (!$conn && !$mydb) { echo 'There was an erro:' .mysql_error(); } ?>
17,008
https://github.com/dantin/poj/blob/master/leetcode/037-sudoku-solver/solution.c
Github Open Source
Open Source
BSD-3-Clause
null
poj
dantin
C
Code
572
1,461
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #define SIZE 9 struct object { char *board; int rows; int cols; }; struct stack { int row; int col; int value; }; char **make_2d(char *board, int rows, int cols) { int i, j; char **result = malloc(rows * ...
45,022
https://github.com/TheLens/realestate/blob/master/www/static/js/map.js
Github Open Source
Open Source
MIT
2,019
realestate
TheLens
JavaScript
Code
1,147
4,263
var map, dataLayer, neighborhoodLayer, mapboxLayer, satelliteLayer; var clicked = 0; var dropdownFocus = 0;//0 is standard. dropdown selection = 1 function updateMap(data, mapsearching, backforward, neighborhood_fit_bounds) { tablesorterOptions(); var center = map.getCenter(); var zoom = map.getZoom(); addDa...
1,840
https://github.com/populin/popul.in/blob/master/internal/constants/constants.go
Github Open Source
Open Source
MIT
2,017
popul.in
populin
Go
Code
52
120
package constants import "github.com/google/jsonapi" const ( // GeoJSON is the identifier for the GeoJSON media type GeoJSON = "application/geo+json" // JSONAPI is the identifier for the JSON API media type JSONAPI = jsonapi.MediaType // ESIndexGeography is the ElasticSearch Index ESIndexGeography = "populin" ...
39,227
https://github.com/IgniteUI/ERDashboard-Angular/blob/master/ERDashboard-angular/Models/Test.cs
Github Open Source
Open Source
MIT
2,020
ERDashboard-Angular
IgniteUI
C#
Code
96
209
using System; using System.Collections.Generic; namespace ERDashboard.Models { public partial class Test { public Test() { ComplaintTestResult = new HashSet<ComplaintTestResult>(); } public int Id { get; set; } public int? TestTypeId { get; set; } p...
19,560
https://github.com/shashanksingh28/code-similarity/blob/master/test/Java Examples in a Nutshell/1st Edition/Rot13Input.java
Github Open Source
Open Source
MIT
2,017
code-similarity
shashanksingh28
Java
Code
303
574
// This example is from _Java Examples in a Nutshell_. (http://www.oreilly.com) // Copyright (c) 1997 by David Flanagan // This example is provided WITHOUT ANY WARRANTY either expressed or implied. // You may study, use, modify, and distribute it for non-commercial purposes. // For any commercial use, see http://www.da...
46,753
https://github.com/midnightbr/Faculdade/blob/master/java/JARS/hibernate-release-5.6.0.Final/project/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/inlinedirtychecking/SamplingOrder.java
Github Open Source
Open Source
MIT
2,021
Faculdade
midnightbr
Java
Code
120
374
/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ package org.hibernate.test.bytecode.enhancement.lazy.proxy.inlinedirtychecking; im...
38,843
https://github.com/achreto/barrelfish/blob/master/kernel/arch/x86_32/pic.S
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-dco-1.1, MIT
2,021
barrelfish
achreto
Unix Assembly
Code
135
517
/* * Copyright (c) 2007, 2008, 2010, 2011, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group. */ // XXX: ...
32,761
https://github.com/smilingthax/unpdf/blob/master/unpdf/libnpdf/pages/page.cpp
Github Open Source
Open Source
MIT
2,019
unpdf
smilingthax
C++
Code
388
1,555
#include "page.h" #include <assert.h> #include "exception.h" //#include "../io/base.h" #include "../pdf/outpdf.h" // FIXME namespace PDFTools { Page::Page(PagesTree &parent) // {{{ : parent(parent), readref(0) { } // }}} Page::Page(PagesTree &parent,PDF &pdf,const Ref &ref,Dict &dict,const Dict &resources) //...
34,541
https://github.com/vincent1023/Hitachi_smart_app/blob/master/custom_components/Hitachi_smart_app/smarthome/const.py
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,021
Hitachi_smart_app
vincent1023
Python
Code
30
216
BASE_URL = "https://api.jci-Hitachi-smarthome.com/3.6" X_DK_API_Key = "23f26d38921dda92c1c2939e733bca5e" X_DK_Application_Id = "ODM-HITACHI-APP-168d7d31bbd2b7cbbd" Platform = 2 Version = "3.90.400" SECONDS_BETWEEN_REQUEST = 5 HTTP_EXPECTATION_FAILED = 417 EXCEPTION_COMMAND_NOT_FOUND = "無法透過CommandId取得Commmand" EXCEP...
32,954
https://github.com/MackenzieBrooks/Spring-Boot-Maven-Rest-Api/blob/master/src/main/java/mediasoft/dev/productapi/rest/CategoryRest.java
Github Open Source
Open Source
MIT
2,020
Spring-Boot-Maven-Rest-Api
MackenzieBrooks
Java
Code
118
511
package mediasoft.dev.productapi.rest; import mediasoft.dev.productapi.entities.Category; import mediasoft.dev.productapi.repositories.CategoryDAO; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import ja...
38,703
https://github.com/tebello-thejane/shift/blob/master/go.mod
Github Open Source
Open Source
MIT
2,019
shift
tebello-thejane
Go Module
Code
13
124
module github.com/luno/shift require ( github.com/go-sql-driver/mysql v1.4.1 github.com/luno/jettison v0.0.0-20191014084106-b0501ece4f1c github.com/luno/reflex v0.0.0-20191104111416-7b2be1af53f6 github.com/stretchr/testify v1.3.0 )
26,060
https://github.com/NicolasAnquetil/Ada2Famix/blob/master/src/LewisHW/LwsOperatorToken.extension.st
Github Open Source
Open Source
MIT
null
Ada2Famix
NicolasAnquetil
null
Spoken
18
45
Extension { #name : #LwsOperatorToken } { #category : #'*LewisHW-classifying' } LwsOperatorToken >> isOperator [ ^ true ]
45,129
https://github.com/WeWantAngular/on-the-road/blob/master/OnTheRoad/OnTheRoad.Domain/Models/ICategory.cs
Github Open Source
Open Source
MIT
2,017
on-the-road
WeWantAngular
C#
Code
17
44
namespace OnTheRoad.Domain.Models { public interface ICategory : IIdentifiable { string Name { get; set; } } }
3,561
https://github.com/zmyer/spring-cloud-task/blob/master/spring-cloud-task-core/src/main/java/org/springframework/cloud/task/repository/database/support/AbstractSqlPagingQueryProvider.java
Github Open Source
Open Source
Apache-2.0
null
spring-cloud-task
zmyer
Java
Code
579
1,438
/* * Copyright 2015 the original author or 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 applica...
48,586
https://github.com/Pandinosaurus/nnabla/blob/master/src/nbla_utils/nnp_impl_configs.cpp
Github Open Source
Open Source
Apache-2.0
2,023
nnabla
Pandinosaurus
C++
Code
210
576
// Copyright 2018,2019,2020,2021 Sony Corporation. // // 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...
49,185
https://github.com/pip-services3-python/pip-services3-datadog-python/blob/master/test/count/test_DataDogCounters.py
Github Open Source
Open Source
MIT
null
pip-services3-datadog-python
pip-services3-python
Python
Code
57
316
# -*- coding: utf-8 -*- import os from pip_services3_commons.config import ConfigParams from pip_services3_datadog.count.DataDogCounters import DataDogCounters from test.fixtures.CountersFixture import CountersFixture class TestDataDogCounters: _counters: DataDogCounters _fixture: CountersFixture def s...
34,101
https://github.com/NicoPuccio/UziScript/blob/master/st/PetitParser.package/PPParser.class/instance/max..st
Github Open Source
Open Source
MIT
null
UziScript
NicoPuccio
null
Spoken
20
41
operators-repeating max: anInteger "Answer a new parser that parses the receiver at most anInteger times." ^ self star setMax: anInteger
48,907
https://github.com/Nemobox-app/411/blob/master/phplib/Search/Elasticsearch.php
Github Open Source
Open Source
MIT
null
411
Nemobox-app
PHP
Code
947
3,206
<?php namespace FOO; /** * Class Elasticsearch_Search * Executes a query against an Elasticsearch cluster. * @package FOO */ abstract class Elasticsearch_Search extends Search { public static $TYPE = 'elasticsearch'; public static $CONFIG_KEY = 'elasticsearch'; public static $SOURCES = true; // R...
28,009
https://github.com/HewlettPackard/hpe-onesphere-fitbit/blob/master/app/providersComponent.js
Github Open Source
Open Source
Apache-2.0
2,018
hpe-onesphere-fitbit
HewlettPackard
JavaScript
Code
56
158
import { $ } from 'view'; const awsRating = $('#aws-rating'); const azureRating = $('#az-rating'); const privateCloudRating = $('#pc-rating'); const renderRatings = ratings => { ratings.forEach((el) => { switch (el.title) { case 'Azure': azureRating.text = el.rating; break; case 'AWS...
36,508
https://github.com/vblazhnovgit/crypto_gost3410/blob/master/lib/crypto_gost3410/group.rb
Github Open Source
Open Source
MIT
null
crypto_gost3410
vblazhnovgit
Ruby
Code
220
786
module CryptoGost3410 # Group # # @author vblazhnovgit class Group attr_reader :opts, :generator, :a, :b, :gx, :gy, :order, :p def initialize(opts) @opts = opts @name = opts.fetch(:name) @p = opts[:p] @a = opts[:a] @b = opts[:b] @gx = opts[:gx] @gy = opts[:gy] ...
15,966
https://github.com/sete20/youtube-clone/blob/master/app/Observers/videoObserver.php
Github Open Source
Open Source
MIT
null
youtube-clone
sete20
PHP
Code
94
304
<?php namespace App\Observers; use Illuminate\Filesystem\Filesystem; use App\Models\video; class videoObserver { /** * Handle the video "created" event. * * @param \App\Models\video $video * @return void */ public function created(video $video) { // } /** *...
37,248
https://github.com/mckarakasli/ocsturk-eticaret/blob/master/resources/views/layouts/frontend.blade.php
Github Open Source
Open Source
MIT
null
ocsturk-eticaret
mckarakasli
PHP
Code
179
1,404
<!doctype html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- CSRF Token --> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>{{ config('app.name', 'Test') }} | @yiel...
33,510
https://github.com/tonyweb13/angular.isltest/blob/master/pages/sports.php
Github Open Source
Open Source
MIT
2,018
angular.isltest
tonyweb13
Hack
Code
152
856
<div class="container"> <div class="margin-top" ng-controller="TabController as tab"> <h1 class="pageTitleImage titleSports"></h1> <div class="sports-game-buttons container-box box-main box-default margin-bottom"> <div class="sports-game-button sports-game-button1" ng-class="{ active:tab...
36,458
https://github.com/reels-research/iOS-Private-Frameworks/blob/master/PencilKit.framework/PKReplicaEntry.h
Github Open Source
Open Source
MIT
2,022
iOS-Private-Frameworks
reels-research
C
Code
93
360
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/PencilKit.framework/PencilKit */ @interface PKReplicaEntry : NSObject <NSCoding> { unsigned int _clock; PKDrawing * _drawing; bool _inUse; unsigned int _replicaUUIDIndex; unsigned int _subclock; } @property (nonatomic)...
16,392
https://github.com/moul/void-packages/blob/master/srcpkgs/alsa-plugins/patches/musl.patch
Github Open Source
Open Source
BSD-2-Clause
2,021
void-packages
moul
null
Spoken
26
143
--- arcam-av/arcam_av.c.orig 2015-05-13 18:42:27.594373337 +0200 +++ arcam-av/arcam_av.c 2015-05-13 18:42:38.945502875 +0200 @@ -31,6 +31,7 @@ #include <unistd.h> #include <sys/ipc.h> +#include <sys/select.h> #include <sys/shm.h> #include <sys/stat.h> #include <sys/stat.h>
227
https://github.com/SoftCactusTeam/Warcraft_Adventures/blob/master/Warcraft Heroes Beyond Time/Warcraft Heroes Beyond Time/GUIImage.cpp
Github Open Source
Open Source
MIT
2,020
Warcraft_Adventures
SoftCactusTeam
C++
Code
92
426
#include "GUIImage.h" #include "Application.h" #include "ModuleRender.h" GUIImage::GUIImage(fPoint localPos, SDL_Rect atlasRect, Module* listener, GUIElem* parent) : GUIElem(localPos, listener, atlasRect, GUIElemType::IMAGE, parent) {} GUIImage::~GUIImage() { DestroyChilds(); } bool GUIImage::Update(float dt) { i...
52,675
https://github.com/demohack/yute/blob/master/done/24-5-flask-feedback/forms.py
Github Open Source
Open Source
MIT
2,023
yute
demohack
Python
Code
103
397
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, FloatField, DateField, IntegerField from wtforms.validators import InputRequired, Length, Optional, Email, URL, ValidationError class RegisterUser(FlaskForm): username = StringField("Username", validators=[InputRequired(), Length(min=1...
4,538
https://github.com/JakubMaslanka/Reparify/blob/master/server/dist/data/dataAccess.js
Github Open Source
Open Source
MIT
null
Reparify
JakubMaslanka
JavaScript
Code
899
2,451
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const path_1 = __importDefault(require("path")); const fs_1 = __importDefault(require("fs")); const prom...
24,261
https://github.com/particleman314/TestAnywhere/blob/master/src/main/java/com/testanywhere/core/os/classes/processes/ProcessTable.java
Github Open Source
Open Source
MIT
2,018
TestAnywhere
particleman314
Java
Code
128
504
package com.testanywhere.core.os.classes.processes; import com.testanywhere.core.os.classes.support.machines.BaseMachineConstants; import com.testanywhere.core.utilities.logging.OutputDisplay; import com.testanywhere.core.utilities.logging.TextManager; import java.util.ArrayList; import java.util.Collection; public ...
48,845
https://github.com/TheTurkeyDev/NHLStatsAPI-Java/blob/master/examples/com/theprogrammingturkey/nhlapi/StarsExample.java
Github Open Source
Open Source
MIT
2,021
NHLStatsAPI-Java
TheTurkeyDev
Java
Code
371
1,656
package com.theprogrammingturkey.nhlapi; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import com.theprogrammingturkey.nhlapi.criteria.SerchCriteria; import com.theprogrammingturkey.nhlapi.data.GameData; import com.theprogrammingturkey...
6,384
https://github.com/Jay54520/Learn-Algorithms-With-Python/blob/master/049-把字符串转换成整数/test_str_to_int.py
Github Open Source
Open Source
Apache-2.0
2,020
Learn-Algorithms-With-Python
Jay54520
Python
Code
56
207
import unittest from .str_to_int import Solution s = Solution() class Test(unittest.TestCase): def test_empty(self): want = 0 got = s.StrToInt('') self.assertEqual(want, got) def test_positive(self): want = 123 got = s.StrToInt('+123') self.assertEqual(want, ...
51,902
https://github.com/D4rk1n/Console-Tetris/blob/master/Tetris/Tetris/Line.cpp
Github Open Source
Open Source
MIT
null
Console-Tetris
D4rk1n
C++
Code
8
33
#include "Line.h" Line::Line() { } Line::~Line() { }
44,908
https://github.com/serhii-yakymuk/a11y-example/blob/master/src/routes/Links/Links.js
Github Open Source
Open Source
MIT
null
a11y-example
serhii-yakymuk
JavaScript
Code
133
732
import React from 'react'; import './Links.css'; const Links = () => { return ( <div className="links-page"> <h1 id='article-title'>Useful Links</h1> <h2>Documentation and Information</h2> <ul> <li> <a href="https://www.w3.org/TR/wai-aria-1.1/" target="_blank" rel="noopener n...
22,921
https://github.com/comword/SpringInsuranceSystem/blob/master/static/js/customer/customerClaim-cn.js
Github Open Source
Open Source
MIT
2,019
SpringInsuranceSystem
comword
JavaScript
Code
1,594
6,857
Vue.component('navbar-indicator', { props: ['username'], data: function () { return { avatarPath: 'https://mdbootstrap.com/img/Photos/Avatars/avatar-2.jpg' } }, mounted: function () { }, template: navbar_indicator_template }); function table(){ $('#dtMaterialD...
34,415
https://github.com/hypertrace/view-generator-framework/blob/master/view-generator-framework/src/main/java/org/hypertrace/core/viewgenerator/service/ViewGenerationProcessTransformer.java
Github Open Source
Open Source
Apache-2.0
2,021
view-generator-framework
hypertrace
Java
Code
144
577
package org.hypertrace.core.viewgenerator.service; import static org.hypertrace.core.viewgenerator.service.ViewGeneratorConstants.OUTPUT_TOPIC_CONFIG_KEY; import static org.hypertrace.core.viewgenerator.service.ViewGeneratorConstants.VIEW_GENERATOR_CLASS_CONFIG_KEY; import java.util.List; import org.apache.avro.gener...
51,854
https://github.com/dongdapeng110/SharpDevelopTest/blob/master/src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/CSharp/TypeInference.cs
Github Open Source
Open Source
MIT
2,021
SharpDevelopTest
dongdapeng110
C#
Code
1,955
6,167
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using System.Collections.Generic; using System.Linq; namespace ICSharpCode.SharpDevelop.Dom.CSharp { /// <summ...
10,130
https://github.com/UWA-MakeItSimple/TestProject/blob/master/Assets/ResourceManager/Scipts/Test.cs
Github Open Source
Open Source
MIT
null
TestProject
UWA-MakeItSimple
C#
Code
421
1,748
using UnityEngine; using System.Collections; using UnityEngine.Networking; using System.IO; using System.Reflection; using System.Runtime.InteropServices; public class Test : MonoBehaviour { private Material blue; private Texture2D haha; private GameObject go; private GameObject instance1; priva...
33,958
https://github.com/sahirgomez1/CompilerGym/blob/master/examples/example_compiler_gym_service/service_py/example_service.py
Github Open Source
Open Source
MIT
2,022
CompilerGym
sahirgomez1
Python
Code
352
1,143
#! /usr/bin/env python3 # # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """An example CompilerGym service in python.""" import logging from pathlib import Path from typing import Optional,...
32,414