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/xuhuiliang-maybe/ace_office/blob/master/modules/organizational_structure/profiles/code/profile_export_views.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | ace_office | xuhuiliang-maybe | Python | Code | 283 | 1,655 | # coding=utf-8
import traceback
from collections import defaultdict
from django.contrib.auth.models import User
from django.views.generic import View
from modules.share_module.download import download_file
from modules.share_module.export import ExportExcel
from modules.share_module.formater import true_false_formate... | 38,330 |
https://github.com/ULL-ESIT-GRADOII-TFG/ghshell/blob/master/test/test.js | Github Open Source | Open Source | MIT | null | ghshell | ULL-ESIT-GRADOII-TFG | JavaScript | Code | 17 | 39 | var assert = require('chai').assert;
var str = require('../index');
describe('#str', function () {
it ('Should be pending');
}); | 48,897 |
https://github.com/vippiv/reactefl/blob/master/src/api/mall.js | Github Open Source | Open Source | MIT | 2,020 | reactefl | vippiv | JavaScript | Code | 18 | 57 | import request from '../utils/request.js'
export function fetchGoods(query) {
return request({
url: '/mall/goods',
method: 'get',
params: query
})
} | 3,998 |
https://github.com/qudongGithub/client-sdk-android/blob/master/utils/src/main/java/org/web3j/utils/Convert.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | client-sdk-android | qudongGithub | Java | Code | 155 | 468 | package org.web3j.utils;
import java.math.BigDecimal;
/**
* Ethereum unit conversion functions.
*/
public final class Convert {
private Convert() { }
public static BigDecimal fromVon(String number, Unit unit) {
return fromVon(new BigDecimal(number), unit);
}
public static BigDecimal fromVo... | 21,606 |
https://github.com/tikilittle/Tiled2Unity/blob/master/tool/Tiled2Unity/src/ThirdParty/Ookii.Dialogs.Modified/src/Ookii.Dialogs.sln | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause | 2,015 | Tiled2Unity | tikilittle | null | Spoken | 110 | 854 |
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Windows Forms", "Windows Forms", "{68ED7CF2-8E33-460B-AF18-15143BF954F6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ookii.Dialogs", "Ookii.Dialogs\Ookii.Dialogs.c... | 17,544 |
https://github.com/pulse00/async-bundle/blob/master/Interceptor/AsyncInterceptor.php | Github Open Source | Open Source | MIT | 2,015 | async-bundle | pulse00 | PHP | Code | 252 | 785 | <?php
/*
* This file is part of the DubtureAsyncBundle package.
*
* (c) Robert Gruendler <robert@dubture.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Dubture\AsyncBundle\Interceptor;
use CG\Proxy\MethodIntercep... | 6,849 |
https://github.com/mpak2/phpjs/blob/master/_experimental/datetime/date_format.js | Github Open Source | Open Source | MIT | 2,018 | phpjs | mpak2 | JavaScript | Code | 46 | 113 | function date_format (obj, format) {
// http://kevin.vanzonneveld.net
// + original by: Brett Zamir (http://brett-zamir.me)
// - depends on: date() (and an object passed in which was created by the DateTime class--e.g., date_create)
// Note: finished but basically useless until date_create() is imp... | 20,625 |
https://github.com/siddharth-daftari/Expense-Management-System-data-sharding/blob/master/assignment1App1ForAssign3/Dockerfile | Github Open Source | Open Source | MIT | 2,017 | Expense-Management-System-data-sharding | siddharth-daftari | Dockerfile | Code | 18 | 49 | FROM python:2.7
COPY . /app1
WORKDIR /app1
RUN pip install -r requirements.txt
ENTRYPOINT ["python"]
EXPOSE 5001
CMD ["app.py"]
| 36,504 |
https://github.com/h-2/SeqAnHTS/blob/master/demos/dox/score/score.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | SeqAnHTS | h-2 | C++ | Code | 85 | 270 | #include <seqan/basic.h>
#include <seqan/sequence.h>
#include <seqan/stream.h> // for I/O
#include <seqan/align.h>
#include <seqan/score.h>
using namespace seqan;
int main()
{
StringSet<DnaString> stringSet;
appendValue(stringSet, "ACGTGGATCGGTGACTTACGGACTG");
appendValue(stringSet, "ACGTGTTGAGTGATTACGGA... | 54,423 |
https://github.com/aei1987/zxl-component/blob/master/zxl-orm-common/src/main/java/cn/zxl/orm/common/config/StringParser.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | zxl-component | aei1987 | Java | Code | 72 | 326 | package cn.zxl.orm.common.config;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser;
import org.springframework.beans.factory.xml.ParserContext;
import org.w3c.dom.Element;
import cn.zxl.common.StringUtil;
import cn.... | 35,946 |
https://github.com/pluswait/skyeye/blob/master/skyeye-promote/skyeye-service/src/main/java/com/skyeye/eve/service/SysDataBaseService.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | skyeye | pluswait | Java | Code | 35 | 129 | package com.skyeye.eve.service;
import com.skyeye.common.object.InputObject;
import com.skyeye.common.object.OutputObject;
public interface SysDataBaseService {
public void querySysDataBaseList(InputObject inputObject, OutputObject outputObject) throws Exception;
public void querySysDataBaseSelectList(InputObject... | 28,989 |
https://github.com/Mephostopilis/mall/blob/master/server/app/service/member/migrations/20210102234513_ums_member.down.sql | Github Open Source | Open Source | Apache-2.0 | 2,021 | mall | Mephostopilis | SQL | Code | 14 | 29 | -- ----------------------------
-- Table structure for ums_member
-- ----------------------------
DROP TABLE IF EXISTS `ums_member`; | 16,177 |
https://github.com/Sklenix/Employee-Management-System/blob/master/database/factories/EmployeeFactory.php | Github Open Source | Open Source | MIT, Apache-2.0 | 2,021 | Employee-Management-System | Sklenix | PHP | Code | 93 | 356 | <?php
namespace Database\Factories;
use App\Models\Employee;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
class EmployeeFactory extends Factory {
/* Nazev souboru: EmployeeFactory.php */
/* Autor: Pavel Sklenář (xsklen12) */
/* Tato ... | 51,879 |
https://github.com/trinath231349/ember-engine-external-admin/blob/master/addon/templates/temphome.hbs | Github Open Source | Open Source | MIT | null | ember-engine-external-admin | trinath231349 | null | Spoken | 16 | 82 | <h1>Template Manager</h1>
<ul>
{{#each model as |post|}}
<li>{{post.title}} - {{post.desc}}</li>
{{/each}}
</ul>
{{#link-to-external "home"}}Go home{{/link-to-external}}
{{outlet}}
| 6,408 |
https://github.com/BSVino/ViewbackMonitor/blob/master/tinker/glgui/picturebutton.h | Github Open Source | Open Source | BSD-4-Clause | 2,017 | ViewbackMonitor | BSVino | C | Code | 358 | 769 | /*
Copyright (c) 2012, Lunar Workshop, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. R... | 241 |
https://github.com/Rudge/javalin/blob/master/src/test/java/io/javalin/TestCors.kt | Github Open Source | Open Source | Apache-2.0 | 2,018 | javalin | Rudge | Kotlin | Code | 122 | 638 | /*
* Javalin - https://javalin.io
* Copyright 2017 David Åse
* Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
*/
package io.javalin
import com.mashape.unirest.http.Unirest
import io.javalin.util.TestUtil
import org.hamcrest.CoreMatchers.`is`
import org.hamcrest.CoreMatchers.nullVa... | 41,153 |
https://github.com/willieLjohnson/rrogue/blob/master/map.go | Github Open Source | Open Source | MIT | 2,021 | rrogue | willieLjohnson | Go | Code | 83 | 183 | package main
//GameMap holds all the level and aggregate information for the entire world.
type GameMap struct {
Dungeons []Dungeon
CurrentLevel Level
}
//NewGameMap creates a new set of maps for the entire game.
func NewGameMap() GameMap {
//Return a new game map of a single level for now
l := NewLevel()
le... | 49,155 |
https://github.com/tugrulkarakaya/ia-case-api/blob/master/src/main/java/uk/gov/hmcts/reform/iacaseapi/domain/handlers/postsubmit/AppealPayAndSubmittedConfirmation.java | Github Open Source | Open Source | MIT | null | ia-case-api | tugrulkarakaya | Java | Code | 335 | 1,478 | package uk.gov.hmcts.reform.iacaseapi.domain.handlers.postsubmit;
import static java.util.Objects.requireNonNull;
import static uk.gov.hmcts.reform.iacaseapi.domain.entities.AsylumCaseFieldDefinition.*;
import static uk.gov.hmcts.reform.iacaseapi.domain.entities.ccd.field.PaymentStatus.FAILED;
import static uk.gov.hmc... | 39,558 |
https://github.com/kyledrake/wrong/blob/master/test/adapters/rspec2/Gemfile | Github Open Source | Open Source | MIT | 2,012 | wrong | kyledrake | Ruby | Code | 17 | 78 | here = File.expand_path(File.dirname(__FILE__))
gem "rspec", "~> 2.0"
gem "rspec-core", "~> 2.0"
gem "rspec-expectations", "~> 2.0"
eval File.read("#{here}/../../../Gemfile")
| 45,922 |
https://github.com/Soullivaneuh/deprecation-detector/blob/master/src/RuleSet/Loader/FileLoader.php | Github Open Source | Open Source | MIT | 2,020 | deprecation-detector | Soullivaneuh | PHP | Code | 77 | 281 | <?php
namespace SensioLabs\DeprecationDetector\RuleSet\Loader;
use SensioLabs\DeprecationDetector\RuleSet\RuleSet;
use Symfony\Component\Finder\SplFileInfo;
/**
* Class FileLoader.
*
* @author Christopher Hertel <christopher.hertel@sensiolabs.de>
*/
class FileLoader implements LoaderInterface
{
/**
* {@... | 40,276 |
https://github.com/dccarter/suil/blob/master/libs/sawtooth/include/suil/sawtooth/message.hpp | Github Open Source | Open Source | MIT | 2,022 | suil | dccarter | C++ | Code | 114 | 474 | //
// Created by Mpho Mbotho on 2021-05-07.
//
#pragma once
#include <suil/base/exception.hpp>
#include <suil/base/utils.hpp>
#include <suil/base/string.hpp>
#include <suil/sawtooth/protos.hpp>
#include <libmill/libmill.hpp>
namespace suil::saw {
struct Message {
using Type = ::sawtooth::protos::Messag... | 39,686 |
https://github.com/Alcibiades586/roadrunner/blob/master/vcl_source/rrMemoLogger.cpp | Github Open Source | Open Source | Apache-2.0 | 2,013 | roadrunner | Alcibiades586 | C++ | Code | 51 | 195 | #pragma hdrstop
#include <vector>
#include "rrMemoLogger.h"
#include "rrUtils.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
using namespace std;
using namespace rr;
//Minimalistic logger to a memo...
TMemoLogger::TMemoLogger(TMemo* aMemo)
:
mMemo(aMemo)
{}... | 27,889 |
https://github.com/BuntsFidleyBits/Lostshard-ARCHIVE/blob/master/2.1 (2017-2018)/lostshard/src/main/java/com/lostshard/lostshard/objects/Wallet.java | Github Open Source | Open Source | MIT | 2,018 | Lostshard-ARCHIVE | BuntsFidleyBits | Java | Code | 27 | 131 | package com.lostshard.lostshard.Objects;
import java.util.UUID;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Type;
import org.hibernate.envers.Audited;
import com.lostshard.l... | 30,933 |
https://github.com/davelab6/figma-variable-fonts/blob/master/src/plugin/shared/utils.ts | Github Open Source | Open Source | MIT | 2,021 | figma-variable-fonts | davelab6 | TypeScript | Code | 89 | 266 | export const addSpaces = (path) => {
let newPath = path;
newPath = newPath.split('M').join(' M ');
newPath = newPath.split('m').join(' m ');
newPath = newPath.split('L').join(' L ');
newPath = newPath.split('l').join(' l ');
newPath = newPath.split('H').join(' H ');
newPath = newPath.split('h').join(' h '... | 32,586 |
https://github.com/totev/confomondo/blob/master/client/src/app/user/user.state.ts | Github Open Source | Open Source | MIT | 2,017 | confomondo | totev | TypeScript | Code | 24 | 59 | export interface UserState {
authenticated: boolean;
connected: boolean;
name: string;
}
export const initialUserState: UserState = {
authenticated: false,
connected: false,
name: null
}; | 15,715 |
https://github.com/jvaneikeren/orbital7.extensions/blob/master/src/Orbital7.Extensions.Attributes/AdditionalInformationAttribute.cs | Github Open Source | Open Source | MIT | 2,020 | orbital7.extensions | jvaneikeren | C# | Code | 47 | 128 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace System.ComponentModel.DataAnnotations
{
public class AdditionalInformationAttribute : Attribute
{
public string Value { get; private set; }
public AdditionalInformatio... | 19,037 |
https://github.com/tinaColemanNextCentury/owf/blob/master/grails-app/services/ozone/owf/grails/services/MergedDirectoryResourceService.groovy | Github Open Source | Open Source | Apache-2.0 | 2,019 | owf | tinaColemanNextCentury | Groovy | Code | 201 | 489 | package ozone.owf.grails.services
/*
* This service looks for the specified resource in two places.
* First, it looks in the external directory specified in fileRoot.
* If not found, it then looks where the file would be if it were static
* content from the war, as specified by urlRoot
* If neither location are... | 38,563 |
https://github.com/luuis/BulkJobs/blob/master/web/ayuda.jsp | Github Open Source | Open Source | MIT | null | BulkJobs | luuis | null | Spoken | 77 | 324 | <%@page contentType="text/html" pageEncoding="UTF-8"%>
<% Sesion sesion = (Sesion) session.getAttribute("sesion"); %>
<jsp:include page="template.header.jsp">
<jsp:param name="titulo" value="Centro de ayuda" />
</jsp:include>
<section class="one">
<div class="container">
<!--<center><img src="img/log... | 38,216 |
https://github.com/whaleforever/vue-ionicons/blob/master/.gitmodules | Github Open Source | Open Source | MIT | 2,018 | vue-ionicons | whaleforever | Git Config | Code | 15 | 59 | [submodule "ionicons"]
path = ionicons
url = git@github.com:ionic-team/ionicons.git
# url = https://github.com:ionic-team/ionicons.git
branch = 4.0
| 39,424 |
https://github.com/ivanDannels/hasor/blob/master/src/extends-parent/jetty-all/src/main/java/org/eclipse/jetty/util/log/JavaUtilLog.java | Github Open Source | Open Source | Apache-2.0 | 2,013 | hasor | ivanDannels | Java | Code | 379 | 1,193 | //
// ========================================================================
// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | 44,564 |
https://github.com/tiagomazzutti/dartlr/blob/master/test/functional/t004lexer_test.dart | Github Open Source | Open Source | Unlicense | 2,020 | dartlr | tiagomazzutti | Dart | Code | 160 | 582 | // Copyright (c) 2012, the ANTLR Dart backend project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library dartlr_tests;
import "package:unittest/unittest.dart";
import "package:dartlr/da... | 2,795 |
https://github.com/jbmyer94/iDaaS-EventBuilder/blob/master/src/main/java/io/connectedhealth_idaas/eventbuilder/pojos/clinical/fhir/MedicationStatementResource/Contained.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | iDaaS-EventBuilder | jbmyer94 | Java | Code | 153 | 414 | package io.connectedhealth_idaas.eventbuilder.pojos.clinical.fhir.MedicationStatementResource;
import io.connectedhealth_idaas.eventbuilder.pojos.clinical.fhir.MedicationResource.Code;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import java.util.List;
public class Contained {
public String... | 28,533 |
https://github.com/wulechuan/wulechuan-css-stylus-themes-for-htmls-via-markdowns/blob/master/.eslintrc.js | Github Open Source | Open Source | WTFPL | 2,022 | wulechuan-css-stylus-themes-for-htmls-via-markdowns | wulechuan | JavaScript | Code | 143 | 594 | module.exports = {
env: {
es6: true,
node: true,
},
extends: [
'eslint:recommended',
],
parserOptions: {
ecmaVersion: 2021,
ecmaFeatures: {
experimentalObjectRestSpread: true,
},
sourceType: 'module',
},
rules: {
'no... | 22,574 |
https://github.com/eresid/react-native-sudoku/blob/master/src/utils/formatTime.js | Github Open Source | Open Source | MIT | null | react-native-sudoku | eresid | JavaScript | Code | 48 | 92 | const formatTime = elapsed => {
const hour = Math.floor(elapsed / 60 / 60);
const minute = Math.floor(elapsed / 60 - hour * 60);
const second = elapsed % 60;
return [hour, minute, second].map(x => (x < 10 ? '0' + x : x)).join(':');
};
export default formatTime;
| 48,940 |
https://github.com/appcypher/requests/blob/master/tests/models/test_staff_model.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | requests | appcypher | Python | Code | 257 | 769 | from models import Staff
from errors import ClientError
from pytest import raises
def test_staff_model_saves_with_valid_data(valid_staff_model):
"""
Tests that data is saved in the db when model has valid data.
Args:
valid_staff_model (Model): a valid model created by a fixture
"""
query ... | 41,454 |
https://github.com/mirko-felice/DroneSecurity/blob/master/user-application/src/main/java/io/github/dronesecurity/userapplication/reporting/negligence/services/MaintainerNegligenceReportService.java | Github Open Source | Open Source | MIT | 2,021 | DroneSecurity | mirko-felice | Java | Code | 189 | 581 | /*
* Copyright (c) 2021-2022, Mirko Felice & Maxim Derevyanchenko. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for details.
*/
package io.github.dronesecurity.userapplication.reporting.negligence.services;
import io.github.dronesecurity.userapplication.auth.entities.... | 14,414 |
https://github.com/czagrzebski/VehicleConnect/blob/master/utils/gauge.py | Github Open Source | Open Source | MIT | null | VehicleConnect | czagrzebski | Python | Code | 59 | 147 | import kivy
import obd
from utils.obdutility import OBDUtility
from kivy.app import App
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.lang import Builder
from kivy.properties import StringProperty, ListProperty, ObjectProperty, NumericProperty
from kivy.uix.label import Label
from kivy.uix.button i... | 30,632 |
https://github.com/vash15/cordova-plugin-firebase/blob/master/scripts/android/helper.js | Github Open Source | Open Source | MIT | 2,020 | cordova-plugin-firebase | vash15 | JavaScript | Code | 957 | 3,247 | var fs = require("fs");
var path = require("path");
var parseString = require("xml2js").parseString;
var buildGradleFile = path.join("platforms", "android", "app", "build.gradle");
function rootBuildGradleExists() {
return fs.existsSync(buildGradleFile);
}
/*
* Helper function to read the build.gra... | 37,922 |
https://github.com/MeerkatLabs/sleekpromises/blob/master/test/promises/test_2_2_6_2.py | Github Open Source | Open Source | BSD-3-Clause | 2,015 | sleekpromises | MeerkatLabs | Python | Code | 267 | 1,677 | """
2.2.6: `then` may be called multiple times on the same promise.
https://github.com/promises-aplus/promises-tests/blob/2.1.1/lib/tests/2.2.6.js
"""
import mock
from test.promises.helpers import generate_rejected_test_case
other = {'other': 'other'}
sentinel = {'sentinel': 'sentinel'}
sentinel2 = {'sentinel2': 'sent... | 5,435 |
https://github.com/tomspost/OMN/blob/master/node_modules/string-hash-colour/string-hash-colour.js | Github Open Source | Open Source | MIT | 2,018 | OMN | tomspost | JavaScript | Code | 82 | 264 | var crc32 = require("easy-crc32")
, cp = require("colour-proximity");
module.exports = {
convert: convert
}
function convert(string, avoid){
crc = crc32.calculate(string);
hex = crc.toString(16);
if(avoid !== undefined){
if(avoid.avoid !== undefined){
if(avoid.proximity === undefined){
avoid.proximi... | 21,846 |
https://github.com/go-godin/cache/blob/master/cache.go | Github Open Source | Open Source | MIT | null | cache | go-godin | Go | Code | 40 | 91 | package cache
import (
"time"
)
// Cache defines an arbitrary cache implementation
type Cache interface {
Hash(data interface{}) string
Set(key string, data interface{}, ttl time.Duration) error
Get(key string, target interface{}) error
GetKeys(keyPattern string) ([]string, error)
Delete(keys ...string) error
}... | 51,683 |
https://github.com/litleleprikon/socket-io-vscode/blob/master/src/SocketIOConnectionFactory.ts | Github Open Source | Open Source | MIT | 2,022 | socket-io-vscode | litleleprikon | TypeScript | Code | 421 | 1,209 | import { connect } from 'socket.io-client';
import { parse, Url } from 'url';
import { SocketIOEventsCollector, IEvent, ErrorHandler, DisconnectHandler } from './SocketIOEventsCollector';
import { Disposable } from 'vscode';
import io = require('socket.io-client');
interface IErrors {
URLError: Error;
Connect... | 44,409 |
https://github.com/fewer/fewer/blob/master/packages/cli/src/utils.ts | Github Open Source | Open Source | MIT | 2,019 | fewer | fewer | TypeScript | Code | 592 | 1,527 | import fs from 'fs';
import mkdirp from 'mkdirp';
import path from 'path';
import execa from 'execa';
import ejs from 'ejs';
import { promisify } from 'util';
import enquirer from 'enquirer';
import prettier from 'prettier';
import sortBy from 'lodash/sortBy';
import getConfig from './getConfig';
const cwd = process.c... | 45,021 |
https://github.com/ciroceissler/sv_tb/blob/master/testbench/tests/test_base.sv | Github Open Source | Open Source | MIT | null | sv_tb | ciroceissler | null | Spoken | 5 | 14 | class test_base;
endclass : test_base
| 49,209 |
https://github.com/adamsikora/CipherBreaker/blob/master/app/src/main/java/cz/civilizacehra/cipherbreaker/DebinarizatorActivity.kt | Github Open Source | Open Source | Beerware | 2,019 | CipherBreaker | adamsikora | Kotlin | Code | 159 | 560 | package cz.civilizacehra.cipherbreaker
import android.os.Bundle
import android.widget.ImageView
import android.widget.RelativeLayout
import android.widget.TextView
class DebinarizatorActivity : DebaseatorActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... | 47,723 |
https://github.com/dimitriytiho/laravel_shop/blob/master/resources/views/shop/product_show.blade.php | Github Open Source | Open Source | MIT | 2,021 | laravel_shop | dimitriytiho | Blade | Code | 309 | 1,695 | {{--
Наследуем шаблон --}}
@extends('layouts.default')
{{--
Подключается блок header --}}
@section('header')
@include('inc.header')
@endsection
{{--
Вывод контента
--}}
@section('content')
<main class="main mb">
<div class="container product_show">
<section class="row mt-2 mb-5">
... | 32,733 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/p/preact/src/main/scala/typingsSlinky/preact/jsxCsstypeMod/ObjectFitProperty.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 112 | 754 | package typingsSlinky.preact.jsxCsstypeMod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
/* Rewritten from type alias, can be one of:
- typingsSlinky.preact.preactStrings.... | 18,906 |
https://github.com/ilham-bintang/mlp/blob/master/api/middleware/authorization.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | mlp | ilham-bintang | Go | Code | 187 | 727 | package middleware
import (
"encoding/json"
"fmt"
"net/http"
"strings"
"github.com/gojek/mlp/api/pkg/authz/enforcer"
)
func NewAuthorizer(enforcer enforcer.Enforcer) *Authorizer {
return &Authorizer{authEnforcer: enforcer}
}
type Authorizer struct {
authEnforcer enforcer.Enforcer
}
var methodMapping = map[s... | 1,744 |
https://github.com/simonghales/simonhales-react-v2/blob/master/src/components/Info/List/List.js | Github Open Source | Open Source | MIT | null | simonhales-react-v2 | simonghales | JavaScript | Code | 105 | 350 | import React from 'react'
import { IndexLink, Link } from 'react-router'
import classes from '../Info.scss'
class List extends React.Component {
constructor(props) {
super(props);
}
renderItems(items) {
let renderedItems = [];
for(let i = 0, len = items.length; i < len; i++) {
let item = it... | 41,382 |
https://github.com/tlively/wasm-bindgen/blob/master/crates/webidl-tests/namespace.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | wasm-bindgen | tlively | Rust | Code | 17 | 107 | use crate::generated::*;
use wasm_bindgen_test::*;
#[wasm_bindgen_test]
fn simple_namespace_test() {
assert_eq!(math_test::add_one(1), 2);
assert_eq!(math_test::pow(1.0, 100.0), 1.0);
assert_eq!(math_test::pow(10.0, 2.0), 100.0);
}
| 48,586 |
https://github.com/xware-gmbh/SeicentoSalary/blob/master/src/ch/xwr/seicentobookit/business/helper/AzureHelper.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | SeicentoSalary | xware-gmbh | Java | Code | 184 | 686 | package ch.xwr.seicentobookit.business.helper;
import java.net.URI;
import java.util.Properties;
import javax.servlet.ServletContext;
import com.vaadin.server.VaadinServlet;
import com.xdev.server.aa.openid.azure.AzurePopupConfig;
public class AzureHelper {
public static final String CALLBACK_URI = "appCallbackUr... | 42,522 |
https://github.com/JamieHunter/prolog/blob/master/src/test/java/org/jprolog/predicates/CompareTest.java | Github Open Source | Open Source | MIT | null | prolog | JamieHunter | Java | Code | 153 | 649 | package org.jprolog.predicates;
import org.jprolog.test.Given;
import org.jprolog.test.Matchers;
import org.jprolog.test.PrologTest;
import org.junit.jupiter.api.Test;
public class CompareTest {
protected Given reigns() {
// From "Programming in Prolog"
return PrologTest.given("reigns(rhodri, 844... | 49,012 |
https://github.com/TIngWeiKe/react-uml/blob/master/src/index.js | Github Open Source | Open Source | MIT | null | react-uml | TIngWeiKe | JavaScript | Code | 16 | 33 | export { default as Zoom } from "./component/Zoom";
export { default as SvgProvider } from "./component/SvgProvider";
| 44,993 |
https://github.com/Learn-Along/learn-go/blob/master/projects/dataframe/types/aggregation_test.go | Github Open Source | Open Source | MIT | 2,021 | learn-go | Learn-Along | Go | Code | 871 | 2,597 | package types
import "testing"
// MAX should return the maximum value (as a float64 value) in a given list of items
func TestMAX(t *testing.T) {
type testRecord struct {
input []interface{};
expected interface{}
}
testData := []testRecord{
{
input: []interface{}{"hi", "hello", "yoohoo", "salut"},
exp... | 2,502 |
https://github.com/a-menshchikov/phan/blob/master/tests/Phan/LanguageServer/MockProtocolStream.php | Github Open Source | Open Source | BSD-3-Clause, 0BSD, Apache-2.0, MIT | 2,022 | phan | a-menshchikov | PHP | Code | 98 | 309 | <?php
declare(strict_types=1);
namespace Phan\Tests\LanguageServer;
use Phan\LanguageServer\Protocol\Message;
use Phan\LanguageServer\ProtocolReader;
use Phan\LanguageServer\ProtocolWriter;
use Sabre\Event\Emitter;
use Sabre\Event\Loop;
use Sabre\Event\Promise;
/**
* A fake duplex protocol stream
*/
class MockPro... | 52,343 |
https://github.com/SAREhub/service-builder/blob/master/src/SAREhub/Plugin/ServiceBuilder/Recipe/RecipeArchiveDownloader.php | Github Open Source | Open Source | Apache-2.0 | null | service-builder | SAREhub | PHP | Code | 163 | 707 | <?php
namespace SAREhub\Plugin\ServiceBuilder\Recipe;
use Josantonius\File\File;
use PhpZip\ZipFile;
use PhpZip\ZipFileInterface;
class RecipeArchiveDownloader
{
/**
* @var Recipe
*/
private $recipe;
public function __construct(Recipe $recipe)
{
$this->recipe = $recipe;
}
... | 35,182 |
https://github.com/ygidtu/NetProphet_2.0/blob/master/CODE/parse_network_scores.py | Github Open Source | Open Source | MIT | null | NetProphet_2.0 | ygidtu | Python | Code | 146 | 559 | #!/usr/bin/env python
import sys
import os
import argparse
import numpy
import logging
def parse_args(argv):
''' A method for taking in command line arguments and specifying
help strings. '''
parser = argparse.ArgumentParser(description="Parse a NetProphet adjacency matrix")
parser.add_argument('-a',... | 19,931 |
https://github.com/tdm1223/Algorithm/blob/master/acmicpc.net/source/2703.cpp | Github Open Source | Open Source | MIT | 2,020 | Algorithm | tdm1223 | C++ | Code | 75 | 201 | // 2703. Cryptoquote
// 2021.12.19
// 문자열
#include<iostream>
#include<string>
using namespace std;
int main()
{
int n;
cin >> n;
cin.ignore();
while (n-- > 0)
{
string s;
getline(cin, s);
string b;
getline(cin, b);
for (int i = 0; i < s.size(); i++)
... | 25,573 |
https://github.com/waxx04/globexcart/blob/master/resources/views/pages/cart.blade.php | Github Open Source | Open Source | MIT | null | globexcart | waxx04 | PHP | Code | 92 | 496 | @extends('layouts.core')
@section('content')
<div class="boxx">
<div class="overlay-content">
<div class="cartWindow">
<div class="cartHead">
<span>CART</span>
</div>
<div class="cartBody">
<div class="cartTableCont">
<table class="cartTable">
<tr>
<th>ITEM DETAILS</th>
<t... | 27,977 |
https://github.com/SAP/openui5/blob/master/src/sap.ui.fl/test/sap/ui/fl/qunit/write/_internal/Storage.qunit.js | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | openui5 | SAP | JavaScript | Code | 5,259 | 22,851 | /* global QUnit */
sap.ui.define([
"sap/ui/fl/initial/_internal/StorageUtils",
"sap/ui/fl/initial/_internal/connectors/KeyUserConnector",
"sap/ui/fl/initial/_internal/connectors/LrepConnector",
"sap/ui/fl/initial/_internal/connectors/PersonalizationConnector",
"sap/ui/fl/initial/_internal/connectors/Utils",
"sap... | 39,764 |
https://github.com/ari-skyler/togethr/blob/master/src/containers/tickets.js | Github Open Source | Open Source | MIT | 2,020 | togethr | ari-skyler | JavaScript | Code | 155 | 548 | import React, { Component } from 'react'
import {connect} from 'react-redux'
import {addTickets, submitTicket, approveTicket, deleteTicket} from '../actions/tickets.js'
import Ticket from '../components/ticket.js'
import NewTicket from '../components/newTicket.js'
class Tickets extends Component {
componentDidMount... | 9,871 |
https://github.com/captador/habitat/blob/master/app/src/main/java/no/aegisdynamics/habitat/data/notifications/NotificationsServiceApi.java | Github Open Source | Open Source | MIT | 2,018 | habitat | captador | Java | Code | 75 | 213 | package no.aegisdynamics.habitat.data.notifications;
import android.content.Context;
import java.util.List;
/**
* Defines an interface to the service API that is used by this application. All notification data requests should
* be piped through this interface.
*/
interface NotificationsServiceApi {
interface... | 6,933 |
https://github.com/francois2metz/kinto-http.js/blob/master/src/index.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | kinto-http.js | francois2metz | JavaScript | Code | 74 | 179 | "use strict";
import "babel-polyfill";
import { EventEmitter } from "events";
import KintoClientBase from "./base";
export default class KintoClient extends KintoClientBase {
constructor(remote, options = {}) {
const events = options.events || new EventEmitter();
super(remote, Object.assign({ events }, o... | 11,995 |
https://github.com/schneiderl/problems-solved/blob/master/Hackerrank/algorithm/strings/super_reduced_string.js | Github Open Source | Open Source | Unlicense | null | problems-solved | schneiderl | JavaScript | Code | 193 | 602 | function processData(input) {
var n = input.length;
var prev = "";
var curr = "";
var c = 0;
var newStr = "";
var chars = [];
for (var i = 0; i < n; i++) {
curr = input.charAt(i);
if(i==0){
prev = curr;
}
if(curr!=prev){
var arr = new Array(2);
arr[0] = prev;
arr[1] = c;
chars.push(a... | 3,186 |
https://github.com/milicofelix/angular-review/blob/master/routes/api.php | Github Open Source | Open Source | MIT | 2,020 | angular-review | milicofelix | PHP | Code | 99 | 546 | <?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServicePr... | 20,459 |
https://github.com/attore-projects/attore/blob/master/core/src/main/scala/io/attore/core/common/PhysicalAddress.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | attore | attore-projects | Scala | Code | 171 | 419 | package io.attore.core.common
import io.attore.core.dispatch.ActorThread
import io.attore.core.message.{ExceptionMessage, Message, MessageChain, Reply}
/** Physical address is immutable, each address binding a house. An actor has one and only one physical address.
*
* @tparam M
* the message type that this ac... | 28,880 |
https://github.com/fengyua56/koa-web-kit/blob/master/services/Cache.js | Github Open Source | Open Source | MIT | null | koa-web-kit | fengyua56 | JavaScript | Code | 327 | 909 | const fs = require('fs');
const path = require('path');
const { logger } = require('../services/logger');
const { slugify } = require('../utils/common');
const makeDir = require('make-dir');
const DEFAULT_CACHE_DIR = path.join(__dirname, '../build/cache');
/**
* A simple cache implementation for SSR rendered conten... | 7,743 |
https://github.com/waterahr/HR-Net/blob/master/src/network/OEDC_GoogLenetSPP_lowerBody.py | Github Open Source | Open Source | Net-SNMP, Xnet | null | HR-Net | waterahr | Python | Code | 624 | 2,851 | """
There is a problem :
the angular feature must be sparse_categorical_crossentropy;
the radial feature should be used as a regression situation?
the radial feature must belong to same angular.
=>1\one solution(OEDCGoogLeNetSPP_lowerBody) is augular for coarse classification
and radial is for fine classification(not... | 35,610 |
https://github.com/djingwu/hybrid-development/blob/master/clbs/src/main/java/com/zw/ws/entity/adas/paramSetting/ZheDriverSurvey.java | Github Open Source | Open Source | MIT | 2,021 | hybrid-development | djingwu | Java | Code | 679 | 3,342 | package com.zw.ws.entity.adas.paramSetting;
import com.zw.adas.domain.define.setting.AdasAlarmParamSetting;
import com.zw.adas.domain.define.setting.query.AdasParamSettingForm;
import com.zw.protocol.msg.t808.T808MsgBody;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.HashMap;
import java.util.... | 54,370 |
https://github.com/phuong27102000/NTRU_HRSS_KEM_SV/blob/master/Draft_Phuong/SHA3_256/rho/rho.sv | Github Open Source | Open Source | MIT | null | NTRU_HRSS_KEM_SV | phuong27102000 | null | Spoken | 899 | 1,854 | `timescale 1ns/1ps
module testbench(a, out);
input[1600:1] a;
output[1600:1] out;
rho RHO (a, out);
initial begin
$dumpfile("dump.vcd");
$dumpvars(1);
end
endmodule
module rho(a, out);
input[1599:0] a;
output[1599:0] out;
assign out[63:0] = a[63:0];
genvar z;
g... | 37,782 |
https://github.com/asever77/netiveUIJS/blob/master/resources/js/ui.plugins.js | Github Open Source | Open Source | MIT | null | netiveUIJS | asever77 | JavaScript | Code | 20,000 | 61,116 | //utils module ;(function (win, doc, undefined) { 'use strict'; var $ui = win.$plugins, namespace = 'netiveUI.plugins'; /* ------------------------------------------------------------------------ * name : accordion tab * Ver. : v1.0.0 * date : 2018-12-21 * EXEC statement * - $plugins.uiAccordion({ option }); * - $plugi... | 13,929 |
https://github.com/jinjinwa/next-template/blob/master/styles/common/animate.less | Github Open Source | Open Source | MIT | 2,021 | next-template | jinjinwa | Less | Code | 28 | 104 | .example-enter {
opacity: 0.01;
}
.example-enter.example-enter-active {
opacity: 1;
transition: opacity 300ms ease-in-out;
}
.example-leave {
opacity: 0.01;
}
.example-leave.example-leave-active {
opacity: 0.01;
transition: opacity 200ms ease-in-out;
}
| 33,964 |
https://github.com/darthbinamira/bazel-intellij/blob/master/aswb/src_3_3/com/google/idea/blaze/android/sync/model/idea/BlazeClassJarProvider.java | Github Open Source | Open Source | Apache-2.0 | null | bazel-intellij | darthbinamira | Java | Code | 844 | 2,748 | /*
* Copyright 2016 The Bazel Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 14,459 |
https://github.com/stevetranby/labs-tilemaps/blob/master/unity-example/Assets/Packages/Orthello/Examples/0 - Simple Examples/TextSprites/OTTextPortago.cs | Github Open Source | Open Source | MIT | 2,021 | labs-tilemaps | stevetranby | C# | Code | 50 | 115 | using UnityEngine;
using System.Collections;
public class OTTextPortago : MonoBehaviour {
OTTextSprite text;
// Use this for initialization
void Start () {
text = GetComponent<OTTextSprite>();
}
int tick = 0;
// Update is called once per frame
void Update () {
text.text = "Another text to test this. \... | 12,751 |
https://github.com/matrix65537/lab/blob/master/algorithms/heap/heap.py | Github Open Source | Open Source | MIT | null | lab | matrix65537 | Python | Code | 192 | 748 | #!/usr/bin/python
#coding:utf8
class Heap(object):
def __init__(self, values = None, ismax = True):
#N记录当前有多少个节点
self.N = 0
self.d = [None]
#记录大顶堆还是小顶堆
self.__ismax = ismax
if values:
for v in values:
self.insert(v)
def less(self, i, ... | 34,150 |
https://github.com/mcneel/RaytracedBlendMaterial/blob/master/RaytracedBlendMaterial.sln | Github Open Source | Open Source | Apache-2.0 | 2,021 | RaytracedBlendMaterial | mcneel | null | Spoken | 112 | 778 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2009
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RaytracedBlendMaterial", "RaytracedBlendMaterial\RaytracedBlendMaterial.csproj", "{3D4C6802-CC84-4E73-82E7... | 39,212 |
https://github.com/obones/EVEopenHAB/blob/master/src/EOConfig.cpp | Github Open Source | Open Source | MIT | null | EVEopenHAB | obones | C++ | Code | 227 | 466 | /*
@file Config.cpp
@brief Contains Config definitions
@date 2021-08-18
@author Olivier Sannier
@section LICENSE
MIT License
Copyright (c) 2021 Olivier Sannier
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
... | 23,074 |
https://github.com/anistal/Hermes/blob/master/src/main/scala/com/stratio/khermes/helpers/KhermesConfig.scala | Github Open Source | Open Source | Apache-2.0 | 2,017 | Hermes | anistal | Scala | Code | 336 | 1,006 | /*
* Copyright (C) 2016 Stratio (http://stratio.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 20,940 |
https://github.com/ibrahimsharaf/allennlp/blob/master/allennlp/modules/similarity_functions/dot_product.py | Github Open Source | Open Source | Apache-2.0 | 2,017 | allennlp | ibrahimsharaf | Python | Code | 59 | 189 | from overrides import overrides
import torch
from allennlp.common import Params
from allennlp.modules.similarity_function import SimilarityFunction
@SimilarityFunction.register("dot_product")
class DotProductSimilarity(SimilarityFunction):
"""
This similarity function simply computes the dot product between ... | 21,631 |
https://github.com/ngtuna/serverless-kubeless/blob/master/lib/ingress.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | serverless-kubeless | ngtuna | JavaScript | Code | 478 | 1,366 | /*
Copyright 2017 Bitnami.
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 writing, software
... | 31,782 |
https://github.com/algteam/spacy_zh_model/blob/master/spacy/tests/regression/test_issue2800.py | Github Open Source | Open Source | MIT | 2,019 | spacy_zh_model | algteam | Python | Code | 87 | 292 | '''Test issue that arises when too many labels are added to NER model.'''
from __future__ import unicode_literals
import random
from ...lang.en import English
def train_model(train_data, entity_types):
nlp = English(pipeline=[])
ner = nlp.create_pipe("ner")
nlp.add_pipe(ner)
for entity_type in list(... | 40,660 |
https://github.com/JaruyotinN/SNP_13590264/blob/master/resources/js/pages/company/editcompany.vue | Github Open Source | Open Source | MIT | 2,020 | SNP_13590264 | JaruyotinN | Vue | Code | 479 | 2,336 | <template>
<div class="container" >
<form @submit.prevent="cheack" @keydown="form.onKeydown($event)">
<div class="mb-5">
<router-link :to="{ name: 'company'}">ย้อนกลับ</router-link>
</div>
<div class="card mt-5 mb-3">
<div class="col-md-10 m-auto">
<h... | 36,399 |
https://github.com/iamjoshbinder/plaso/blob/master/plaso/parsers/sqlite_plugins/kik_ios.py | Github Open Source | Open Source | Apache-2.0 | 2,017 | plaso | iamjoshbinder | Python | Code | 633 | 2,235 | # -*- coding: utf-8 -*-
"""This file contains a parser for the Kik database on iOS.
Kik messages on iOS devices are stored in an
SQLite database file named kik.sqlite.
"""
from dfdatetime import cocoa_time as dfdatetime_cocoa_time
from plaso.containers import events
from plaso.containers import time_events
from plas... | 30,713 |
https://github.com/sdierauf/sdierauf.github.io/blob/master/stuff/js/skateifier.js | Github Open Source | Open Source | MIT | 2,022 | sdierauf.github.io | sdierauf | JavaScript | Code | 260 | 742 | //this js is "skate of the art"
//bsifier.js Stefan Dierauf 2013
//Generates sciency jargon
var load = function() {
//binding
var button = document.getElementById("generate");
var opener = document.getElementById("opener");
var jargon = document.getElementById("jargon");
//holds openers
var openerArray = [
"Dude, t... | 6,615 |
https://github.com/kingwisdom/stemlab/blob/master/resources/views/admin/product/index.blade.php | Github Open Source | Open Source | MIT | null | stemlab | kingwisdom | PHP | Code | 247 | 1,152 | @extends('layouts.temp')
@section('titlePage')
View Products
@endsection
@section('content')
<section class="banner-area organic-breadcrumb">
<div class="container">
<div class="breadcrumb-banner d-flex flex-wrap align-items-center justify-content-end">
<div class="col-first">
<h1>Products</h1>
<nav class="d-f... | 48,530 |
https://github.com/cahirwpz/mimiker/blob/master/build/flags.mk | Github Open Source | Open Source | 2,023 | mimiker | cahirwpz | Makefile | Code | 43 | 125 | # vim: tabstop=8 shiftwidth=8 noexpandtab:
#
# This is a common makefile used to set the basic compilation flags.
#
ASFLAGS += -Wall -Wextra -Werror
WFLAGS += -Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes -Werror \
-Wno-missing-field-initializers
CFLAGS += -std=gnu11 -Og -ggdb3 -fomit-frame-pointer... | 52,924 | |
https://github.com/chirpeur/aliyun-oss-go-sdk/blob/master/sample/sign_url_test.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | aliyun-oss-go-sdk | chirpeur | Go | Code | 13 | 49 | package sample
import (
"log"
"testing"
)
func Test_signCallbackUrl(t *testing.T) {
log.Println(signCallbackUrl())
}
| 10,557 |
https://github.com/FawadJawaid/grade-your-code-fyp/blob/master/Implementation/GradeYourCode/moss/pl.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,019 | grade-your-code-fyp | FawadJawaid | PHP | Code | 120 | 448 | <?php
$username = "root";
$password = "admin";
$hostname = "localhost";
$db = "gyc";
//connection to the database
$dbhandle = mysqli_connect($hostname, $username, $password, $db)
or die("Unable to connect to MySQL");
//echo "Connected to MySQL<br>";
/*$selected = mysql_select_db("gyc",$dbhandle)
or die("Coul... | 40,216 |
https://github.com/z3ttee/tsradio/blob/master/streamer-v2/src/main/java/eu/tsalliance/streamer/listener/SocketOnChannelUpdateListener.java | Github Open Source | Open Source | MIT | null | tsradio | z3ttee | Java | Code | 84 | 351 | package eu.tsalliance.streamer.listener;
import eu.tsalliance.streamer.Core;
import eu.tsalliance.streamer.channel.Channel;
import eu.tsalliance.streamer.channel.ChannelHandler;
import eu.tsalliance.streamer.socket.SocketClient;
import io.socket.emitter.Emitter;
import org.json.simple.JSONObject;
import org.json.simpl... | 26,109 |
https://github.com/OndrejPontes/3scale-api-ruby/blob/master/lib/3scale/api/managers/mappings.rb | Github Open Source | Open Source | MIT | 2,017 | 3scale-api-ruby | OndrejPontes | Ruby | Code | 228 | 692 | module ThreeScale
module API
module Managers
class Mappings < DefaultManager
# @api public
# @return [Array<Hash>]
# @param [Fixnum] service_id Service ID
def list(service_id)
response = http_client.get("/admin/api/services/#{service_id}/proxy/mapping_rules")
... | 44,793 |
https://github.com/lechium/tvOS145Headers/blob/master/System/Library/PrivateFrameworks/OSAnalyticsPrivate.framework/OSASubmitter.h | Github Open Source | Open Source | MIT | 2,021 | tvOS145Headers | lechium | Objective-C | Code | 201 | 827 | /*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 28, 2021 at 9:11:51 PM Mountain Standard Time
* Operating System: Version 14.5 (Build 18L204)
* Image Source: /System/Library/PrivateFrameworks/OSAnalytic... | 39,040 |
https://github.com/14550508/ucsc-mit/blob/master/english/libraries/joomla/updater/adapters/extension.php | Github Open Source | Open Source | MIT | null | ucsc-mit | 14550508 | PHP | Code | 359 | 1,450 | <?php
/**
* @package Joomla.Platform
* @subpackage Updater
*
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die;
jimport('joomla.updater.updateadapter');
class... | 2,057 |
https://github.com/shadowezz/tp/blob/master/src/main/java/seedu/address/logic/parser/person/AddressBookParser.java | Github Open Source | Open Source | MIT | null | tp | shadowezz | Java | Code | 139 | 545 | package seedu.address.logic.parser.person;
import static seedu.address.commons.core.Messages.MESSAGE_UNKNOWN_COMMAND;
import seedu.address.logic.commands.person.AddCommand;
import seedu.address.logic.commands.person.ClearCommand;
import seedu.address.logic.commands.person.Command;
import seedu.address.logic.commands.... | 48,718 |
https://github.com/topherwhite/djsattic/blob/master/djsattic/temp/ext_ip_no_xml.php | Github Open Source | Open Source | Apache-2.0 | 2,014 | djsattic | topherwhite | PHP | Code | 4 | 22 | <?php
echo $_SERVER["HTTP_PC_REMOTE_ADDR"];
?> | 21,096 |
https://github.com/beck410/Library_App/blob/master/app/js/library/library.factories.js | Github Open Source | Open Source | MIT | null | Library_App | beck410 | JavaScript | Code | 153 | 623 | ;(function(){
'use strict';
angular.module('Library')
.factory('libFactory', function($http, $location, FIREBASE_URL){
function _libraryUrl(id){
if(id){
return FIREBASE_URL + 'books/' + id + '.json';
} else {
return FIREBASE_URL + 'books.json';
}
... | 350 |
https://github.com/librerpi/lk/blob/master/arch/x86/64/ops.S | Github Open Source | Open Source | MIT | 2,021 | lk | librerpi | Unix Assembly | Code | 199 | 458 | /*
* Copyright (c) 2009 Corey Tabaka
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
#include <lk/asm.h>
.text
/* This follows the x86-64 ABI, the parameters are stored in registers in the following order*/
/*
... | 36,306 |
https://github.com/gquerret/OpenEdge_Retired_Products/blob/master/dynamics/src/main/abl/af/sup/aftemxftrc.i | Github Open Source | Open Source | Apache-2.0 | 2,021 | OpenEdge_Retired_Products | gquerret | Assembly | Code | 127 | 275 | /*********************************************************************
* Copyright (C) 2000 by Progress Software Corporation. All rights *
* reserved. Prior versions of this work may contain portions *
* contributed by participants of Possenet. *
* ... | 39,747 |
https://github.com/mandykoh/rs-markov/blob/master/src/accumulator.rs | Github Open Source | Open Source | MIT | null | rs-markov | mandykoh | Rust | Code | 295 | 960 | /// An Accumulator for updating a [Model](struct.Model.html) with training data.
pub struct Accumulator<'a, TSymbol>
where
TSymbol: std::marker::Copy + std::hash::Hash + std::cmp::Eq,
{
model: &'a mut crate::Model<TSymbol>,
current_sequence: crate::Sequence<TSymbol>,
}
impl<'a, TSymbol> Accumulator<'a, TSy... | 22,614 |
https://github.com/bradparker/servant-beam-realworld-example-app/blob/master/package.nix | Github Open Source | Open Source | BSD-3-Clause | 2,022 | servant-beam-realworld-example-app | bradparker | null | Spoken | 215 | 754 | { mkDerivation, aeson, base-noprelude, beam-core, beam-postgres
, bytestring, case-insensitive, conduit, containers, data-default
, hspec, hspec-wai, hspec-wai-json, http-types
, insert-ordered-containers, jose, lens, monad-control, mtl
, optparse-applicative, postgresql-simple, relude, resource-pool
, scrypt, servant,... | 39,338 |
https://github.com/ilyas-muhammad/bookstore_user_api/blob/master/domain/users/user_dao.go | Github Open Source | Open Source | MIT | 2,020 | bookstore_user_api | ilyas-muhammad | Go | Code | 469 | 1,392 | package users
import (
"fmt"
"github.com/ilyas-muhammad/bookstore_user_api/datasources/mysql/users_db"
"github.com/ilyas-muhammad/bookstore_user_api/logger"
"github.com/ilyas-muhammad/bookstore_user_api/utils/dateutils"
"github.com/ilyas-muhammad/bookstore_user_api/utils/errors"
"github.com/ilyas-muhammad/bookst... | 40,476 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.