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/yasinahmed81/Crypto/blob/master/CryptoTests/NetworkServiceTests.swift
Github Open Source
Open Source
MIT
null
Crypto
yasinahmed81
Swift
Code
400
1,229
// // NetworkServiceTests.swift // CryptoTests // // Created by Yasin Ahmed on 08/02/2021. // import XCTest @testable import Crypto final class NetworkServiceTests: XCTestCase { var mockURLSession: MockURLSession! var networkService: Resourcable! override func setUp() { super.setUp() ...
48,014
https://github.com/NCIP/stats-application-commons/blob/master/src/gov/nih/nci/caintegrator/security/genepattern/EncryptionUtil.java
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, BSD-3-Clause
2,014
stats-application-commons
NCIP
Java
Code
312
1,105
/*L * Copyright SAIC * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/stats-application-commons/LICENSE.txt for details. */ package gov.nih.nci.caintegrator.security.genepattern; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.secur...
23,504
https://github.com/facebookresearch/theseus/blob/master/tests/theseus_tests/optimizer/autograd/test_sparse_backward.py
Github Open Source
Open Source
MIT
2,023
theseus
facebookresearch
Python
Code
228
833
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import pytest # noqa: F401 import torch from sksparse.cholmod import analyze_AAt from torch.autograd import gradcheck import theseus as th...
1,485
https://github.com/andrydwis/tugasakhir/blob/master/resources/views/components/index-submission.blade.php
Github Open Source
Open Source
MIT
null
tugasakhir
andrydwis
PHP
Code
446
1,859
<div class="pb-2"> <div id="wrapper_dropdown" class="flex w-full p-3 bg-gray-200 rounded-full hover:bg-gray-300"> <div class="flex items-center gap-4"> @role('admin') <a href="{{route('admin.course.submission.show', [$course, $slug])}}"> <div class="grid w-8 h-8 bg-gr...
18,942
https://github.com/flyghost/OneOS-V2.1.0/blob/master/components/fs/source/vfs_fs.c
Github Open Source
Open Source
Apache-2.0
null
OneOS-V2.1.0
flyghost
C
Code
1,620
5,830
/** *********************************************************************************************************************** * Copyright (c) 2021, China Mobile Communications Group Co.,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the ...
34,631
https://github.com/Terenine/emacs_libs/blob/master/bin/unset_current_project
Github Open Source
Open Source
MIT
2,013
emacs_libs
Terenine
Shell
Code
4
15
#!/bin/sh rm -f ~/.current_project
49,585
https://github.com/jparise/PINFuture/blob/master/PINFuture/Classes/PINFutureMap+Map.h
Github Open Source
Open Source
Apache-2.0
2,021
PINFuture
jparise
C
Code
55
250
// // PINFutureMap+Map.h // Pinterest // // Created by Chris Danford on 11/23/16. // Copyright © 2016 Pinterest. All rights reserved. // #import <Foundation/Foundation.h> #import "PINFuture.h" #import "PINFutureMap.h" NS_ASSUME_NONNULL_BEGIN @interface PINFutureMap<FromType, ToType> (Map) + (PINFuture<ToType> ...
50,673
https://github.com/Aman817/Linux-App/blob/master/lib/views/login.dart
Github Open Source
Open Source
MIT
2,020
Linux-App
Aman817
Dart
Code
399
1,680
import 'package:Linux_App/views/home.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:firebase_auth/firebase_auth.dart'; import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; class LoginPage extends StatefulWidget { LoginPage({Key key}) : super(key: key...
22,587
https://github.com/antoniaRohne/UnityProjects/blob/master/GTAbgabe1_ShotEmUp/Assets/Prefabs/AmmoPack.prefab
Github Open Source
Open Source
MIT
2,018
UnityProjects
antoniaRohne
Unity3D Asset
Code
292
1,358
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1001 &100100000 Prefab: m_ObjectHideFlags: 1 serializedVersion: 2 m_Modification: m_TransformParent: {fileID: 0} m_Modifications: [] m_RemovedComponents: [] m_ParentPrefab: {fileID: 0} m_RootGameObject: {fileID: 1841207592434654} m_IsPrefabParent: ...
50,056
https://github.com/rich-murphey/ballista/blob/master/rust/ballista/src/serde/logical_plan/to_proto.rs
Github Open Source
Open Source
Apache-2.0
2,021
ballista
rich-murphey
Rust
Code
1,140
4,028
// Copyright 2020 Andy Grove // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
15,489
https://github.com/sebastiaandekker/newdealseals-bedrock/blob/master/web/app/themes/Divi/includes/builder/module/woocommerce/AddToCart.php
Github Open Source
Open Source
MIT
null
newdealseals-bedrock
sebastiaandekker
PHP
Code
1,816
6,858
<?php /** * WooCommerce Modules: ET_Builder_Module_Woocommerce_Add_To_Cart class * * The ET_Builder_Module_Woocommerce_Add_To_Cart Class is responsible for rendering the * Add To Cart markup using the WooCommerce template. * * @package Divi\Builder * * @since 3.29 */ /** * Class representing WooCommerce Ad...
42,647
https://github.com/NASA-LIS/lisf-test/blob/master/lis/core/LIS_initialize_registries.F90
Github Open Source
Open Source
Apache-2.0
2,021
lisf-test
NASA-LIS
Fortran Free Form
Code
536
1,870
!-----------------------BEGIN NOTICE -- DO NOT EDIT----------------------- ! NASA Goddard Space Flight Center Land Information System (LIS) v7.2 ! ! Copyright (c) 2015 United States Government as represented by the ! Administrator of the National Aeronautics and Space Administration. ! All Rights Reserved. !-----------...
4,261
https://github.com/trungngotdt/CaesarCipher/blob/master/CaesarCipher/Cipher.cs
Github Open Source
Open Source
MIT
null
CaesarCipher
trungngotdt
C#
Code
126
307
 using System.Text; namespace CaesarCipher { public class Cipher { private string plaintext; private int k; private string ciphertext; public string Plaintext { get => plaintext; set => plaintext = value; } public int K { get => k; set => k = value; } public s...
19,163
https://github.com/NumEricR/VR-Friends-Rankings/blob/master/core/config.php
Github Open Source
Open Source
WTFPL
2,012
VR-Friends-Rankings
NumEricR
PHP
Code
114
512
<?php // Boats list to display $BOATS = array( /* Exemple : 'BOAT_NAME' => array('navigator' => 'PLAYER_FIRSTNAME', 'id' => ID), */ ); define(PAGE_TITLE, 'Classement Vend&eacute;e Globe - Virtual Regatta'); define(ERROR_MSG_MULTIPLES_TIMES_UPDATE, 'Les classements r&eacute;cup&eacute;r&eacute;s ne sont pas...
48,058
https://github.com/sghill/msl/blob/master/tests/src/test/cpp/util/MslContextTest.cpp
Github Open Source
Open Source
Apache-2.0
2,022
msl
sghill
C++
Code
267
1,183
/** * Copyright (c) 2016-2017 Netflix, Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
16,585
https://github.com/borbalher/core-ui-tools/blob/master/src/common/core/normalizer/index.js
Github Open Source
Open Source
MIT
2,021
core-ui-tools
borbalher
JavaScript
Code
263
934
class Normalizer { constructor(composer, coreString) { this.composer = composer this.coreString = coreString } denormalize(data, schemaName, entities) { const schema = this.composer.composeSchema(schemaName) let dto = {} for(const attribute in schema) { const isEntity ...
44,074
https://github.com/benzap/ketornah/blob/master/dist/out/ketornah_client/search.js
Github Open Source
Open Source
Apache-2.0
null
ketornah
benzap
JavaScript
Code
256
2,525
// Compiled by ClojureScript 1.9.495 {} goog.provide('ketornah_client.search'); goog.require('cljs.core'); goog.require('cuerdas.core'); goog.require('clojure.string'); goog.require('ketornah_client.sql'); goog.require('ketornah_client.utils'); ketornah_client.search.init_food_cost = (function ketornah_client$search$in...
16,734
https://github.com/forki/hs-art-extractor/blob/master/HsArtExtractor/Unity/Objects/CardDef.cs
Github Open Source
Open Source
MIT
2,020
hs-art-extractor
forki
C#
Code
289
972
using System; using System.IO; using HsArtExtractor.Util; namespace HsArtExtractor.Unity.Objects { public class CardDef { public FilePointer GameObject { get; private set; } public bool Enabled { get; private set; } public FilePointer MonoScript { get; private set; } public string Name { get; private set; }...
13,993
https://github.com/CodingSpiderFox/daycaptain-systemtest/blob/master/src/test/java/com/daycaptain/systemtest/backend/daytasks/CreateDayTaskTest.java
Github Open Source
Open Source
Apache-2.0
2,021
daycaptain-systemtest
CodingSpiderFox
Java
Code
327
1,628
package com.daycaptain.systemtest.backend.daytasks; import com.daycaptain.systemtest.backend.CollectionUtils; import com.daycaptain.systemtest.backend.DayCaptainSystem; import com.daycaptain.systemtest.backend.entity.Task; import org.junit.jupiter.api.Test; import org.threeten.extra.YearWeek; import java.net.URI; imp...
48,040
https://github.com/PichuChen/covid-19-taiwan-cdc-data/blob/master/fetch_inspections_summary.js
Github Open Source
Open Source
MIT
null
covid-19-taiwan-cdc-data
PichuChen
JavaScript
Code
62
553
// https://docs.google.com/spreadsheets/u/0/d/e/2CAIWO3el-HmgYwUDCtPq_lRifv9VeS5De_q1mFXBFN3IdI8fo4s9imGUqQGBwxlo-ETfBD_zxsbRQoCRyMg/gviz/chartiframe?oid=711912240 data = JSON.parse(chartData.chart.chartJson) rows = data.dataTable.rows 時間標籤 = rows.map(function(it){return it.c[0].f}) 嚴重特殊傳染性肺炎通報 = rows.map(function(i...
4,871
https://github.com/jamesvillarrubia/mtc-api/blob/master/database/factories/ModelFactory.php
Github Open Source
Open Source
MIT
null
mtc-api
jamesvillarrubia
PHP
Code
127
406
<?php /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | Here you may define all of your model factories. Model factories give | you a convenient way to create models for testing and seeding yo...
8,815
https://github.com/zlike/overreact-core/blob/master/packages/demo/src/components/people-container.js
Github Open Source
Open Source
MIT
2,022
overreact-core
zlike
JavaScript
Code
77
221
import React, { useMemo } from 'react'; import { useFetch, useDataRefId, } from '@microsoft/overreact'; import { peopleSpec } from '../hooks/people-spec'; import { PeopleView } from './people-view'; export function PeopleContainer(props) { const { userName } = props; const dataRefId = useDataRefId(); const...
15,834
https://github.com/g-bridge-etners/admin-web/blob/master/routes/main.js
Github Open Source
Open Source
MIT
null
admin-web
g-bridge-etners
JavaScript
Code
208
768
const express = require('express'); const ejs = require('ejs'); const fs = require('fs'); const router = express.Router(); const connection = require('../models/connection') const moment = require('moment'); const { RateLimiter } = require('limiter'); require('moment-timezone'); moment.tz.setDefault("Asia/Seoul"); c...
25,100
https://github.com/bm98/GLCD_FontCreator/blob/master/GLCD_FontCreator/GDI/gdiDrawing.cs
Github Open Source
Open Source
Apache-2.0
null
GLCD_FontCreator
bm98
C#
Code
243
539
/* Part of GLCD_FontCreator - Copyright 2015 Martin Burri 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 agree...
15,101
https://github.com/pablodavid97/tutoring-api/blob/master/src/controllers/profesor.controller.js
Github Open Source
Open Source
MIT
null
tutoring-api
pablodavid97
JavaScript
Code
79
230
const database = require('../models/connection-manager'); const { logger } = require('../utils/logger'); const profesor = database.profesor; const profesorController = {}; // SELECT * profesorController.find = async () => { try { const prof = await profesor.findAll(); return prof; } catch (error) { log...
32,251
https://github.com/maxschwe/PiCar/blob/master/pi/robot/servo.py
Github Open Source
Open Source
MIT
null
PiCar
maxschwe
Python
Code
75
294
import RPi.GPIO as GPIO import time from .robot_config import Config class Servo: def __init__(self, pin, init_pos=0): self.pin = pin self.cur_angle = init_pos GPIO.setup(self.pin, GPIO.OUT) self.out = GPIO.PWM(self.pin, 50) self.init(init_pos) def _conv_deg_duty(self,...
48,754
https://github.com/xenois/overlap2d-runtime-libgdx/blob/master/src/com/uwsoft/editor/renderer/systems/action/data/ParallelData.java
Github Open Source
Open Source
Apache-2.0
2,021
overlap2d-runtime-libgdx
xenois
Java
Code
31
97
package com.uwsoft.editor.renderer.systems.action.data; /** * Created by ZeppLondon on 10/23/15. */ public class ParallelData extends ActionData { public ActionData[] actionDatas; public boolean complete; public ParallelData(ActionData[] actionDatas) { this.actionDatas = actionDatas; } }
13,105
https://github.com/JetBrains/intellij-community/blob/master/java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/types/DfJvmIntegralType.java
Github Open Source
Open Source
Apache-2.0
2,023
intellij-community
JetBrains
Java
Code
413
1,567
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.codeInspection.dataFlow.types; import com.intellij.codeInspection.dataFlow.jvm.JvmPsiRangeSetUtil; import com.intellij.codeInspection.dataFlow.rangeSet.LongRangeSet; import com....
10,102
https://github.com/dgant/PurpleWave/blob/master/src/Planning/Plans/GamePlans/Protoss/Standard/PvZ/ProtossVsZerg.scala
Github Open Source
Open Source
MIT
2,022
PurpleWave
dgant
Scala
Code
30
145
package Planning.Plans.GamePlans.Protoss.Standard.PvZ import Planning.Plans.GamePlans.ModalGameplan class ProtossVsZerg extends ModalGameplan( // Openings new PvZ1BaseForgeTech, new PvZFFE, // Midgames new PvZBisu, new PvZ5GateGoon, new PvZCorsairReaver, // Late game new PvZLateGameReaver, new P...
26,075
https://github.com/cms-sw/cmssw/blob/master/Validation/GlobalHits/python/globalhits_prodhiststrip_cff.py
Github Open Source
Open Source
Apache-2.0
2,023
cmssw
cms-sw
Python
Code
29
77
# The following comments couldn't be translated into the new config version: # needed backend import FWCore.ParameterSet.Config as cms # actual producer from Validation.GlobalHits.globalhits_prodhiststrip_cfi import * DQMStore = cms.Service("DQMStore")
6,641
https://github.com/kunlabora/antwerp-ui_angular/blob/master/packages/ngx-agenda/src/lib/services/sorting.service.spec.ts
Github Open Source
Open Source
MIT
2,021
antwerp-ui_angular
kunlabora
TypeScript
Code
814
1,843
import { DateHelperService } from './date-helper.service'; import { SortingService } from './sorting.service'; import { EventInterface } from '../types/agenda.types'; describe('Sorting Service', () => { const dateHelper = new DateHelperService(); const sortingService = new SortingService(dateHelper); it('should...
37,393
https://github.com/p-g-krish/deepmac-tracker/blob/master/data/js/f0/b0/22/00/00/00.24.js
Github Open Source
Open Source
CC-BY-4.0, MIT
null
deepmac-tracker
p-g-krish
JavaScript
Code
9
83
deepmacDetailCallback("f0b022000000/24",[{"d":"2020-03-05","t":"add","s":"ieee-oui.csv","a":"1-13-21 Tanashioda, Chuo-Ku Sagamihara-City Kanagawa JP 252-0245","c":"JP","o":"TOHO Electronics INC."}]);
22,601
https://github.com/jbescos/jaxb-api/blob/master/spec/src/main/asciidoc/appI-changelog.adoc
Github Open Source
Open Source
BSD-3-Clause
2,022
jaxb-api
jbescos
AsciiDoc
Code
2,724
5,464
// // Copyright (c) 2020 Contributors to the Eclipse Foundation // [appendix] == Change Log === Changes in Version 3 * Changed specification version and license. * Package namespace changed to `jakarta.xml.bind.*`. * Customization schema namespace changed to `https://jakarta.ee/xml/ns/jaxb`, minimal supported versio...
9,978
https://github.com/polynomialchaos/basec/blob/master/src/Utils/include/basec/utils/utils_memory.h
Github Open Source
Open Source
MIT
null
basec
polynomialchaos
C
Code
215
588
/******************************************************************************* * @file utils_memory.h * @author Florian Eigentler * @brief * @version 1.0.0 * @date 2022-02-22 * @copyright Copyright (c) 2022 by Florian Eigentler. * This work is licensed under terms of the MIT license (<LICENSE>). ************...
8,558
https://github.com/keycloak/keycloak/blob/master/docs/documentation/tests/src/test/java/org/keycloak/documentation/test/utils/Constants.java
Github Open Source
Open Source
Apache-2.0, MIT, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause
2,023
keycloak
keycloak
Java
Code
37
110
package org.keycloak.documentation.test.utils; import java.util.concurrent.TimeUnit; public class Constants { public static final int HTTP_RETRY = 5; public static final int HTTP_CONNECTION_TIMEOUT = 30000; public static final int HTTP_READ_TIMEOUT = 300000; public static final long LINK_CHECK_EXPIRA...
33,031
https://github.com/markjoseph454/opdms/blob/master/public/js/mss/report.js
Github Open Source
Open Source
MIT
null
opdms
markjoseph454
JavaScript
Code
316
1,738
$(document).ready(function(){ $('.generatemssreport').submit(function(){ $('.submitclassificationgenerate').css('display', 'block'); }) }) $(document).ready(function(){ var tot_ref = 0; $('.refclass').each(function(index){ tot_ref += Number($(this).text()); }) $('.tot_ref').text(tot_ref); var tot_orig = 0; ...
49,618
https://github.com/yuanying/azash/blob/master/pkgs/books/book.go
Github Open Source
Open Source
Apache-2.0
null
azash
yuanying
Go
Code
446
1,489
package books import ( "encoding/json" "path/filepath" "regexp" "sort" "strings" "sync" "time" "github.com/go-logr/logr" "go.etcd.io/bbolt" ) var ( booksBucket = []byte("BOOKS") ) type BookList struct { log logr.Logger db *bbolt.DB cache []Book mux sync.Mutex } type Book struct { ID s...
16,803
https://github.com/SkynetRTN/afterglow-access-server/blob/master/afterglow_core/views/public_api/v1/catalogs.py
Github Open Source
Open Source
Apache-2.0
2,022
afterglow-access-server
SkynetRTN
Python
Code
130
326
""" Afterglow Core: API v1 catalog views """ from typing import Optional from flask import Response from .... import app, json_response from ....auth import auth_required from ....resources.catalogs import catalogs from ....schemas.api.v1 import CatalogSchema from ....errors.catalog import UnknownCatalogError from ....
11,457
https://github.com/rdbeazer/Linesiter/blob/master/Resources/libraries/Interfaces/IPlugin.vb
Github Open Source
Open Source
MIT
null
Linesiter
rdbeazer
Visual Basic
Code
46
109
Imports System Imports System.Threading Imports System.ComponentModel Public Interface IPlugin Sub Initialize(ByVal Host As IHost) ReadOnly Property DescriptiveName() As String ReadOnly Property Description() As String ReadOnly Property ToolboxName() As String Property CancelOp() As Boolean ...
24,369
https://github.com/kang-donghoon-eland/FigmaSharp/blob/master/samples/FigmaSharp.Views/Graphics/Views/RectangleExampleView.cs
Github Open Source
Open Source
MIT
2,021
FigmaSharp
kang-donghoon-eland
C#
Code
31
98
 using FigmaSharp; using FigmaSharp.Views.Cocoa; namespace BasicGraphics.Cocoa { public class RectangleExampleView : View { public RectangleExampleView() { Size = new Size(120, 120); //BorderRadius = 20; BackgroundColor = Color.White; } } }
43,458
https://github.com/ragnarokkrr/rgn_vm_containers/blob/master/vagrant_gluster_ubuntu/Vagrantfile
Github Open Source
Open Source
Apache-2.0
2,018
rgn_vm_containers
ragnarokkrr
Ruby
Code
437
1,969
# -*- mode: ruby -*- # vi: set ft=ruby : # GLUSTER_HOSTS = [ { name: 'gluster-node1', disk1: 'gluster-node1-osd1.vdi', disk2: 'gluster-node1-osd2.vdi', disk3: 'gluster-node1-osd3.vdi'}, { name: 'gluster-node2', disk1: 'gluster-node2-osd1.vdi', disk2: 'gluster-node2-osd2.vdi', disk3: 'gluster-node2-osd3.vdi'} , ...
47,311
https://github.com/bkw/multiredlock/blob/master/virt/apt.sh
Github Open Source
Open Source
MIT
null
multiredlock
bkw
Shell
Code
67
260
#!/bin/sh cat >/etc/apt/sources.list <<EOL deb http://archive.ubuntu.com/ubuntu trusty main universe deb http://archive.ubuntu.com/ubuntu trusty-updates main universe deb http://security.ubuntu.com/ubuntu trusty-security main universe EOL echo >/etc/apt/apt.conf.d/99translations <<EOL Acquire::Languages "none"; EOL ...
39,345
https://github.com/kwaiga/star-wars-backend/blob/master/test/app.e2e-spec.ts
Github Open Source
Open Source
MIT
null
star-wars-backend
kwaiga
TypeScript
Code
571
2,285
import { expect } from 'chai'; import 'chai-http'; import * as chai from 'chai'; import { CreateEpisodeDto } from '../src/episodes/dto/create-episode.dto'; import { EpisodesService } from '../src/episodes/episodes.service'; import { Test } from '@nestjs/testing'; import { TypeOrmModule } from '@nestjs/typeorm'; import ...
32,043
https://github.com/existeundelta/DeepLearningfromScratch2018/blob/master/3.7_Some_exercises_with_keras.ipynb
Github Open Source
Open Source
MIT
2,018
DeepLearningfromScratch2018
existeundelta
Jupyter Notebook
Code
362
1,187
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Some exercises with keras" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Exercice 1:\n", "CIFAR10 small image classification\n", "\n", "The dataset consist of 50,000 32x32 color trai...
3,349
https://github.com/brandonbraun653/Apollo/blob/master/lib/am335x_sdk/ti/starterware/include/date_time.h
Github Open Source
Open Source
MIT
2,022
Apollo
brandonbraun653
C
Code
668
1,414
/** * \file date_time.h * * \brief This file contains declarations of structures and enums * which represent Time and Date information. */ /** * * \copyright Copyright (C) 2013 Texas Instruments Incorporated - * http://www.ti.com/ */ /* * Redistribution and use in source an...
41,069
https://github.com/omingo-cn/keycloak-documentation-i18n/blob/master/i18n/po/ja_JP/authorization_services/topics/hello-world-before-start.ja_JP.po
Github Open Source
Open Source
Apache-2.0
2,020
keycloak-documentation-i18n
omingo-cn
Gettext Catalog
Code
242
1,008
# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Nomura Research Institute, Ltd. # This file is distributed under the same license as the keycloak-documentation-i18n package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: keycloak-documentation-i18n\n" "Last-Translator: Kohei Tam...
22,220
https://github.com/JoshKarpel/euler-python/blob/master/problems/007.py
Github Open Source
Open Source
MIT
2,017
euler-python
JoshKarpel
Python
Code
13
50
from problems import primes def solve(): return primes.find_n_primes(10001)[-1] if __name__ == '__main__': print(solve())
16,677
https://github.com/MananUpadhyay/ngraph/blob/master/src/ngraph/builder/quantization.cpp
Github Open Source
Open Source
Apache-2.0
2,018
ngraph
MananUpadhyay
C++
Code
558
2,472
//***************************************************************************** // Copyright 2017-2018 Intel 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://w...
26,645
https://github.com/yujie2623/app_push/blob/master/src/views/dashboard/index.vue
Github Open Source
Open Source
MIT
null
app_push
yujie2623
Vue
Code
1,065
4,744
<template> <div class="dashboard-container"> <div class="dashboard"> <el-row :gutter="20" :class="{ 'loading': loading }"> <el-col :span="6"> <router-link to="/server/server"> <div class="grid-content bg-purple dashboard-server"> <div class="serverImage"> ...
15,394
https://github.com/bcgov/sbc-pay/blob/master/jobs/payment-jobs/tasks/ejv_payment_task.py
Github Open Source
Open Source
Apache-2.0
2,023
sbc-pay
bcgov
Python
Code
1,051
3,361
# Copyright © 2019 Province of British Columbia # # 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 agr...
13,451
https://github.com/mastapegs/ji-cloud/blob/master/frontend/apps/crates/entry/module/legacy/play/src/base/activities/talk_type/dom.rs
Github Open Source
Open Source
Apache-2.0, MIT
null
ji-cloud
mastapegs
Rust
Code
211
959
use super::state::*; use crate::base::styles; use crate::config::HINT_TIME_MS; use dominator::{clone, html, with_node, Dom}; use futures_signals::signal::SignalExt; use std::rc::Rc; use utils::{ prelude::*, resize::{resize_info_signal, ResizeInfo}, }; use components::overlay::handle::OverlayHandle; use gloo_t...
15,488
https://github.com/msaad1311/PDEs-using-NN/blob/master/multiscale_HiTS-master/scripts/sequence_generation_exp/.ipynb_checkpoints/flower-checkpoint.ipynb
Github Open Source
Open Source
MIT
2,021
PDEs-using-NN
msaad1311
Jupyter Notebook
Code
1,150
5,132
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Flower (Video)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### created by Yuying Liu, 06/09/2020" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": ...
5,856
https://github.com/MateuVieira/bootcamp-gostack-desafio-02/blob/master/src/app/controllers/RecipientController.js
Github Open Source
Open Source
RSA-MD
null
bootcamp-gostack-desafio-02
MateuVieira
JavaScript
Code
443
1,085
import * as Yup from 'yup'; import Recipient from '../models/Recipient'; class RecipientController { async index(req, res) { const recipient = await Recipient.findAll(); return res.json(recipient); } async show(req, res) { // If the help of Yup builder a schema to validate the request fields co...
17,313
https://github.com/yupiik/tools-maven-plugin/blob/master/minisite-core/src/main/resources/yupiik-tools-maven-plugin/minisite/blog-list.adoc
Github Open Source
Open Source
Apache-2.0
2,022
tools-maven-plugin
yupiik
AsciiDoc
Code
4
19
= {{{title}}} {{{items}}} {{{links}}}
46,850
https://github.com/jussico/Reading-tips-2020-covid-edition/blob/master/ReadingTips/src/test/java/readingtips/database/BlogPostDaoTest.java
Github Open Source
Open Source
MIT
2,020
Reading-tips-2020-covid-edition
jussico
Java
Code
300
1,100
/* * 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. */ package readingtips.database; import java.util.Arrays; import java.util.List; import org.junit.Before; import org.junit.Test; import s...
34,563
https://github.com/prmsrswt/fund-disbursal-backend/blob/master/src/config.ts
Github Open Source
Open Source
MIT
2,021
fund-disbursal-backend
prmsrswt
TypeScript
Code
102
414
import dotenv from 'dotenv'; dotenv.config(); const { HOST, PORT, MONGO_URI, DB_NAME, JWT_SECRET, JWT_EXPIRY, REFRESH_EXPIRY, APP_ENV, SMTP_HOST, SMTP_USER, SMTP_PASS, STORAGE_BUCKET, STORAGE_SIGNED_URI_EXPIRY, STORAGE_PREFIX, } = process.env; const config = { host: HOST || 'localhost', ...
50,480
https://github.com/Csaba79-coder/thinThere/blob/master/src/main/java/backend/thinthere/repository/ExerciseRepository.java
Github Open Source
Open Source
MIT
null
thinThere
Csaba79-coder
Java
Code
36
179
package backend.thinthere.repository; import backend.thinthere.enums.Goal; import backend.thinthere.enums.MuscleGroup; import backend.thinthere.model.Exercise; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; import java.util.Optional; public interface ExerciseRepository extends J...
50,856
https://github.com/shahruslan/kuban-online/blob/master/src/Commands/ShowSpecialityListCommand.php
Github Open Source
Open Source
MIT
null
kuban-online
shahruslan
PHP
Code
82
310
<?php namespace KubanOnline\Commands; use KubanOnline\Service; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class ShowSpecialityListCommand extends Command { private Service $service; protected stat...
31,218
https://github.com/manuelc10/mobiles/blob/master/packages/react-component-library/src/components/RangeSlider/Slider.tsx
Github Open Source
Open Source
Apache-2.0
2,020
mobiles
manuelc10
TypeScript
Code
252
1,069
import React, { useState } from 'react' import classNames from 'classnames' import { Slider, SliderProps, Rail, Handles, Tracks, Ticks, } from 'react-compound-slider' import { Handle, Track, Tick } from './index' interface RangeSliderProps extends Omit<SliderProps, 'children' | 'disabled' | 'reversed'> {...
28,799
https://github.com/TravisSpomer/ivorytower.com/blob/master/src/routes/api/v1/hello.js
Github Open Source
Open Source
FSFAP
2,021
ivorytower.com
TravisSpomer
JavaScript
Code
17
56
export async function get() { return { body: { version: 0.0001, built: (new Date()).toISOString(), } } }
39,946
https://github.com/rwalter215/toy-problems/blob/master/toy_problems/CodeWars/Mean.js
Github Open Source
Open Source
MIT
null
toy-problems
rwalter215
JavaScript
Code
74
196
function mean(lst) { const result = []; let string = ''; let total = 0; for (let i = 0; i < lst.length; i++) { if (isNaN(lst[i])) { string += lst[i]; } else { total += Number(lst[i]); } } result[0] = total / 10; result[1] = string; return result; } mean(['u', '6', 'd', '1', 'i',...
6,513
https://github.com/kephircheek/wishlist/blob/master/static/components/ReservationCart.js
Github Open Source
Open Source
Apache-2.0
null
wishlist
kephircheek
JavaScript
Code
218
823
const ReservationCard = { components: { "input-copy-to-clipboard": InputCopyToClipboard }, props: { id: { type: String, required: true }, secret: { type: String, required: true }, title: String, link: String, }, computed: { cancellationCode() { ret...
22,556
https://github.com/ops4j/org.ops4j.pax.carrot/blob/master/pax-carrot-spring/src/main/java/org/ops4j/pax/carrot/spring/ApplicationContextHolder.java
Github Open Source
Open Source
Apache-1.1
null
org.ops4j.pax.carrot
ops4j
Java
Code
224
483
/* * Copyright 2013 Harald Wellmann * * 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 ...
1,397
https://github.com/solana-labs/solana/blob/master/sdk/bpf/c/inc/deserialize_deprecated.h
Github Open Source
Open Source
Apache-2.0
2,023
solana
solana-labs
C
Code
2
15
#include <sol/deserialize_deprecated.h>
46,887
https://github.com/fossabot/Cangol-appcore/blob/master/appcore/src/main/java/mobi/cangol/mobile/service/upgrade/UpgradeServiceImpl.java
Github Open Source
Open Source
Apache-2.0
null
Cangol-appcore
fossabot
Java
Code
813
2,702
/** * Copyright (c) 2013 Cangol * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or agr...
15,313
https://github.com/regularApproximation/newton/blob/master/c/src/datastructs/finite_automaton.cpp
Github Open Source
Open Source
BSD-2-Clause
null
newton
regularApproximation
C++
Code
40
186
#include "finite_automaton.h" #include <fa.h> // struct fa* FiniteAutomaton::EMPTY_LANGUAGE = fa_make_basic(0); // magic number 0 for empty language // FiniteAutomaton FiniteAutomaton::EMPTY_AUTOMATON = FiniteAutomaton(fa_make_basic(fa_basic::FA_EMPTY)); // FiniteAutomaton FiniteAutomaton::EPSILON_AUTOMATON = FiniteAu...
15,662
https://github.com/huynhnhatthiep/ftcoffee/blob/master/ftCoffee/src/main/webapp/resources/JS/CRUD/ChiTietBan.js
Github Open Source
Open Source
MIT
2,019
ftcoffee
huynhnhatthiep
JavaScript
Code
907
5,596
$(document).ready(function() { viewPriceList(); $("#inBill").click(function() { addChiTietBan(); inBill(); addVoucherLine($('#getTableNumberInBill').val()); setTimeout(() => { viewListIndex(); }, 500); }); $("#huyBan").click(function() { huyBan($('#nameTable').val()); setTimeout(() => { viewL...
14,486
https://github.com/AhmedAliGad/students/blob/master/resources/views/admin/services/_form.blade.php
Github Open Source
Open Source
MIT
null
students
AhmedAliGad
PHP
Code
293
1,162
<!-- Start Card Content --> <div class="card-content"> <div class="field is-horizontal"> <div class="field-label is-normal"> <label class="label required">اختيار الكلية</label> </div> <div class="field-body"> <div class="field"> <div class="control"> ...
36,141
https://github.com/mckennapsean/code-examples/blob/master/C/fileIO.c
Github Open Source
Open Source
MIT
2,022
code-examples
mckennapsean
C
Code
167
467
// changing case inspired by Cerolobo link below // read input from a file // must run in same directory as text file #include <stdio.h> // code for changing the case, by Cerolobo: // http://www.dreamincode.net/forums/topic/44152-making-the-first-letter-of-a-string-uppercase/ char caseup(char entry){ if(entry >= 'a...
50,139
https://github.com/damiancarrillo/palette/blob/master/palette/src/encoding/mod.rs
Github Open Source
Open Source
Apache-2.0, MIT
null
palette
damiancarrillo
Rust
Code
81
176
//! Various encoding traits, types and standards. use float::Float; use FromF64; pub use self::gamma::{F2p2, Gamma}; pub use self::linear::Linear; pub use self::srgb::Srgb; pub mod gamma; pub mod linear; pub mod pixel; pub mod srgb; /// A transfer function to and from linear space. pub trait TransferFn { /// Co...
20,001
https://github.com/wapache-org/greenplum-gpdb/blob/master/contrib/pgcrypto/sql/crypt-xdes.sql
Github Open Source
Open Source
PostgreSQL, Apache-2.0
2,022
greenplum-gpdb
wapache-org
SQL
Code
126
281
-- -- crypt() and gen_salt(): extended des -- SELECT crypt('', '_J9..j2zz'); SELECT crypt('foox', '_J9..j2zz'); -- check XDES handling of keys longer than 8 chars SELECT crypt('longlongpassword', '_J9..j2zz'); -- error, salt too short SELECT crypt('foox', '_J9..BWH'); -- error, count specified in the second argume...
1,476
https://github.com/Dynatrace-Adam-Gardner/keptn/blob/master/bridge/cypress/support/commands.ts
Github Open Source
Open Source
Apache-2.0
null
keptn
Dynatrace-Adam-Gardner
TypeScript
Code
62
252
/* eslint-disable import/no-extraneous-dependencies */ import 'cypress-file-upload'; /* eslint-enable import/no-extraneous-dependencies */ declare global { // eslint-disable-next-line @typescript-eslint/no-namespace namespace Cypress { // eslint-disable-next-line @typescript-eslint/no-unused-vars interface...
14,607
https://github.com/man-anr/db-project/blob/master/lecturer/quiz/multiple/result.php
Github Open Source
Open Source
MIT
2,021
db-project
man-anr
PHP
Code
292
1,380
<?php session_start(); include_once("../../../database/config.php"); include("../../../template/navs-lecturer.php"); $_SESSION['current_table'] = "quiz_marks"; $quiz_id = ""; $num_row = 0; ?> <!DOCTYPE html> <html lang="en"> <head> <title>Lecturer Dashboard</title> </head> <body class="bg-light "> ...
37,874
https://github.com/DataObjects-NET/dataobjects-net/blob/master/Orm/Xtensive.Orm/Orm/Rse/Providers/Executable/ExecutableRawProvider.cs
Github Open Source
Open Source
MIT
2,023
dataobjects-net
DataObjects-NET
C#
Code
146
497
// Copyright (C) 2008-2021 Xtensive LLC. // This code is distributed under MIT license terms. // See the License.txt file in the project root for more information. // Created by: Alexey Kochetov // Created: 2008.05.08 using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tas...
41,302
https://github.com/Novartis/cellxgene-gateway/blob/master/tests/test_dir_util.py
Github Open Source
Open Source
Apache-2.0
2,023
cellxgene-gateway
Novartis
Python
Code
55
424
import unittest from unittest.mock import MagicMock, patch from cellxgene_gateway.dir_util import ensure_dir_exists, make_annotations, make_h5ad class TestMakeH5ad(unittest.TestCase): def test_GIVEN_annotation_dir_THEN_returns_h5ad(self): self.assertEqual(make_h5ad("pbmc_annotations"), "pbmc.h5ad") cla...
2,753
https://github.com/fossabot/kargo/blob/master/log/logger.go
Github Open Source
Open Source
Apache-2.0
2,021
kargo
fossabot
Go
Code
327
915
package log import ( "fmt" "io" "os" "sync" log "github.com/sirupsen/logrus" pb "gopkg.in/cheggaaa/pb.v1" ) func init() { // Output to stdout instead of the default stderr log.SetOutput(os.Stdout) } type Logger interface { // Info outputs an info log message Info(s string, fields ...Field) // Warn output...
44,096
https://github.com/dwisuseno/tiket/blob/master/views/tiket/cektiket.php
Github Open Source
Open Source
BSD-3-Clause
null
tiket
dwisuseno
PHP
Code
134
683
<?php /* @var $this yii\web\View */ /* @var $searchModel app\models\TiketSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ use yii\helpers\Html; use kartik\export\ExportMenu; use kartik\grid\GridView; $this->title = 'Tiket'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="tiket-index"> <div c...
27,901
https://github.com/AlexXChina/zpublic/blob/master/pellets/z_win_utils/environment_var.hpp
Github Open Source
Open Source
Unlicense
2,015
zpublic
AlexXChina
C++
Code
381
1,523
/************************************************************************* * * * I|*j^3Cl|a "+!*% qt Nd gW * * l]{y+l?MM* !#Wla\NNP NW MM I| * * PW ?E| ...
48,226
https://github.com/maciejrosolowski/progressdatenbankderivate/blob/master/man/getData4o2p.min.Rd
Github Open Source
Open Source
MIT
2,020
progressdatenbankderivate
maciejrosolowski
R
Code
97
351
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/getData4o2p.min.R \name{getData4o2p.min} \alias{getData4o2p.min} \title{Get data on the oxygen saturation.} \usage{ getData4o2p.min(FRM_O2P) } \arguments{ \item{FRM_O2P}{data.table containing the table FRM_O2P from the database of the PROGRES...
46,942
https://github.com/Azure-Samples/active-directory-dotnet-demo-tdlr/blob/master/TDLR/Controllers/ErrorController.cs
Github Open Source
Open Source
MIT
2,019
active-directory-dotnet-demo-tdlr
Azure-Samples
C#
Code
42
113
using System.Web.Mvc; using System.Web; // The following libraries were added to this sample. using Microsoft.Owin.Security; namespace Tdlr.Controllers { public class ErrorController : Controller { public ActionResult ShowError(string errorMessage, string signIn) { ViewBag.SignIn ...
40,314
https://github.com/rethinkdb/rethinkdb-legacy/blob/master/src/unittest/geo_indexes.cc
Github Open Source
Open Source
Apache-2.0
2,019
rethinkdb-legacy
rethinkdb
C++
Code
1,496
5,819
// Copyright 2010-2015 RethinkDB, all rights reserved. #include <algorithm> #include "btree/keys.hpp" #include "concurrency/fifo_checker.hpp" #include "containers/counted.hpp" #include "debug.hpp" #include "random.hpp" #include "rdb_protocol/configured_limits.hpp" #include "rdb_protocol/datum.hpp" #include "rdb_protoc...
35,878
https://github.com/ahmedEid1/Casting-Agnecy/blob/master/api/movies_endpoints.py
Github Open Source
Open Source
Apache-2.0
null
Casting-Agnecy
ahmedEid1
Python
Code
131
649
from flask import request, jsonify, abort from auth.auth import requires_auth def setup_movies_endpoints(app, movie_model): # get all movies @app.route('/movies', methods=['GET']) @requires_auth("get:movies") def get_movies(): movies = [movie.format() for movie in movie_model.query.order_by()...
27,414
https://github.com/nao2b/jiji2/blob/master/sites/spec/specs/utils/observable-spec.js
Github Open Source
Open Source
Unlicense
2,022
jiji2
nao2b
JavaScript
Code
286
1,563
import Observable from "src/utils/observable" describe("Observable", () => { var target; beforeEach(() => { target = new Observable(); }); it("登録したObserverにイベントを通知できる", () => { const log = []; target.addObserver("a", (n, e) => log.push(e.value)); target.addObserver("a", (n, e) => log.push(e....
42,713
https://github.com/rammazzoti2000/Hacker-Rack-Challenges/blob/master/hackerranck_challenges/Extra/05_AngryProfessor.rb
Github Open Source
Open Source
MIT
2,020
Hacker-Rack-Challenges
rammazzoti2000
Ruby
Code
47
96
# AngryProfessor # Main Solution def angryProfessor(k, a) count = a.select { |i| i <= 0 }.count >= k ? 'NO' : 'YES' end # Alternative Solution def angryProfessor(k, a) count = a.select { |i| i <= 0 }.count count >= k ? 'NO' : 'YES' end
45,290
https://github.com/Junglebobo/poker/blob/master/test/test_chen.py
Github Open Source
Open Source
MIT
2,013
poker
Junglebobo
Python
Code
97
419
import unittest from pokeher.chen import * from pokeher.cards import * import pokeher.constants as C class ChenScoreTest(unittest.TestCase): def test_pair(self): """Tests that pairs are scored correctly""" twotwo = Hand(Card(2, C.HEARTS), Card(2, C.SPADES)) self.assertTrue(twotwo.is_pair...
29,028
https://github.com/rsyh93/mdir.js/blob/master/src/panel/sftp/socks/common/receivebuffer.ts
Github Open Source
Open Source
BSD-3-Clause
2,022
mdir.js
rsyh93
TypeScript
Code
160
462
class ReceiveBuffer { private buffer: Buffer; private offset: number; private originalSize: number; constructor(size: number = 4096) { this.buffer = Buffer.allocUnsafe(size); this.offset = 0; this.originalSize = size; } get length() { return this.offset; } ...
3,990
https://github.com/klc/translation/blob/master/src/TranslationFromDb.php
Github Open Source
Open Source
MIT
null
translation
klc
PHP
Code
43
140
<?php namespace KLC; use App\Models\Translation as TranslationModel; class TranslationFromDb extends DataChain { /** * @param array $params * @return string */ protected function handle($params): string { $translation = TranslationModel::where('language_id', $params['language_id']...
39,132
https://github.com/MatthewBelongia/tutorials/blob/master/spring-boot-modules/spring-boot-angular/src/main/java/com/baeldung/persistence/TestRepository.java
Github Open Source
Open Source
MIT
null
tutorials
MatthewBelongia
Java
Code
15
67
package com.baeldung.persistence; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface TestRepository extends JpaRepository<TestEntity, Long> { }
27,306
https://github.com/svebk/DeepSentiBank_memex/blob/master/workflows/dl-escorts-images/dl-escorts-images.py
Github Open Source
Open Source
BSD-2-Clause
2,017
DeepSentiBank_memex
svebk
Python
Code
310
1,125
import json from StringIO import StringIO from pyspark import SparkContext, SparkConf image_column = "image" def get_list_value(json_x,field_tuple): return [x["value"] for x in json_x if x["columnFamily"]==field_tuple[0] and x["qualifier"]==field_tuple[1]] def image_not_present(data): return True json_x...
29,151
https://github.com/aadil1/terrascan/blob/master/pkg/policies/opa/rego/gcp/google_container_node_pool/cosNodeImageUsed.rego
Github Open Source
Open Source
Apache-2.0
2,020
terrascan
aadil1
Open Policy Agent
Code
13
59
package accurics cosNodeImageUsed[api.id]{ api := input.google_container_node_pool[_] node := api.config.node_config[_] node.image_type != "cos" }
32,757
https://github.com/hashgraph/hedera-sdk-java/blob/master/sdk/src/main/java/com/hedera/hashgraph/sdk/TransactionReceiptQuery.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
hedera-sdk-java
hashgraph
Java
Code
671
1,870
/*- * * Hedera Java SDK * * Copyright (C) 2020 - 2023 Hedera Hashgraph, LLC * * 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 * *...
35,604
https://github.com/tazmanrising/IntiotgAngular/blob/master/abundalife/wwwroot/bloodtest/old_at_root_4_aug_2014/newsite/Create_User-old.aspx.cs
Github Open Source
Open Source
MIT
null
IntiotgAngular
tazmanrising
C#
Code
89
298
using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; namespace abun...
15,642
https://github.com/guoweiwen/AudioVedioPlayer/blob/master/app/src/main/java/com/wyman/videoaudioplayer/camera/CameraManager.java
Github Open Source
Open Source
Apache-2.0
null
AudioVedioPlayer
guoweiwen
Java
Code
271
1,169
package com.wyman.videoaudioplayer.camera; import android.hardware.Camera; import android.opengl.GLSurfaceView; import com.wyman.videoaudioplayer.filter.GPUFilter; import java.util.Collections; import java.util.Comparator; import java.util.List; import static android.hardware.Camera.Parameters.FOCUS_MODE_CONTINUOUS...
42,252
https://github.com/CESNET/perun/blob/master/perun-core/src/main/java/cz/metacentrum/perun/core/impl/modules/attributes/urn_perun_resource_attribute_def_def_defaultShell.java
Github Open Source
Open Source
BSD-2-Clause
2,023
perun
CESNET
Java
Code
355
1,226
package cz.metacentrum.perun.core.impl.modules.attributes; import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.AttributeDefinition; import cz.metacentrum.perun.core.api.AttributesManager; import cz.metacentrum.perun.core.api.Resource; import cz.metacentrum.perun.core.api.exceptions.Att...
19,843
https://github.com/lgoldstein/communitychest/blob/master/development/src/main/java/net/community/chest/net/proto/text/ssh/message/auth/UserAuthPasswordChangeReq.java
Github Open Source
Open Source
Apache-2.0
2,020
communitychest
lgoldstein
Java
Code
217
954
/* * */ package net.community.chest.net.proto.text.ssh.message.auth; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import net.community.chest.net.proto.text.ssh.SSHMsgCode; import net.community.chest.net.proto.text.ssh.SSHProtocol; import net.community.chest.net.proto.text.ss...
18,852
https://github.com/kubeflow/arena/blob/master/pkg/apis/serving/kserve_builder.go
Github Open Source
Open Source
Apache-2.0
2,023
arena
kubeflow
Go
Code
1,324
3,321
package serving import ( "fmt" "strings" "github.com/kubeflow/arena/pkg/apis/types" "github.com/kubeflow/arena/pkg/argsbuilder" ) type KServeJobBuilder struct { args *types.KServeArgs argValues map[string]interface{} argsbuilder.ArgsBuilder } func NewKServeJobBuilder() *KServeJobBuilder { args := &type...
29,085
https://github.com/peter-courcoux/zebra/blob/master/import/java/fulcrum-security-hivemind/src/main/java/org/apache/fulcrum/security/AbstractSecurityServiceTest.java
Github Open Source
Open Source
Apache-2.0
2,010
zebra
peter-courcoux
Java
Code
152
494
package org.apache.fulcrum.security; import junit.framework.TestCase; import org.apache.fulcrum.hivemind.RegistryManager; public class AbstractSecurityServiceTest extends TestCase { private SecurityService securityService; private UserManager userManager; private ModelManager modelManager; private G...
6,840
https://github.com/spraakbanken/sparv-pipeline/blob/master/sparv/core/config.py
Github Open Source
Open Source
MIT
2,022
sparv-pipeline
spraakbanken
Python
Code
1,363
3,681
"""Functions for parsing the Sparv configuration files.""" import copy import logging from collections import defaultdict from functools import reduce from pathlib import Path from typing import Any, Optional import yaml import yaml.scanner from sparv import util from sparv.core import paths, registry log = logging...
33,359
https://github.com/problem-frames/openpf/blob/master/decreasoner.macosx/software/relsat-dist/gmp-3.1/mpz/kronsz.c
Github Open Source
Open Source
BSD-3-Clause
2,019
openpf
problem-frames
C
Code
519
1,408
/* mpz_si_kronecker -- Kronecker/Jacobi symbol. */ /* Copyright (C) 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU MP Library. The GNU MP Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softwa...
48,660
https://github.com/switer/Zect/blob/master/lib/execute.js
Github Open Source
Open Source
MIT
2,020
Zect
switer
JavaScript
Code
178
491
/** * execute expression from template with specified Scope and ViewModel */ var util = require('./util') var __$compile__ = require('./compile') var __$compiledExprs___ = {} /** * Calc expression value */ function _execute($vm, $scope/*, expression, [label], [target]*/) { /** * $scope is passed when c...
41,754