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/whudddddd/WRFDA/blob/master/da/da_vtox_transforms/da_transform_vptox_adj.inc | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,009 | WRFDA | whudddddd | Assembly | Code | 292 | 1,141 | subroutine da_transform_vptox_adj(grid, vp, be, ep)
!--------------------------------------------------------------------------
! Purpose: Adjoint for Physical transform of variables
!--------------------------------------------------------------------------
implicit none
type (domain), intent(inout... | 36,152 |
https://github.com/Kushal-kothari/Cryptography-Network_Security/blob/master/ciphers/ColumnTranspositionCipher.py | Github Open Source | Open Source | MIT | 2,022 | Cryptography-Network_Security | Kushal-kothari | Python | Code | 71 | 211 | import numpy as np
from math import ceil
class ColumnTranspositionCipher:
def __init__(self, rows):
self.rows = rows
def encrypt(self, plaintext: str) -> str:
ciphertext = ''
for i in range(self.rows):
for j in range(i, len(plaintext), self.rows):
ciphertex... | 5,069 |
https://github.com/VIKTORVAV99/Upland-Travel-Bot/blob/master/src/utils/msToLongTime.ts | Github Open Source | Open Source | MIT | null | Upland-Travel-Bot | VIKTORVAV99 | TypeScript | Code | 91 | 195 | /**
* A utility function to convert milliseconds to the amount of days, hours, minutes and seconds and returns them.
* @param milliseconds
* @returns
*/
export function convertMs(milliseconds: number): {
days: number;
hours: number;
minutes: number;
seconds: number;
} {
const tot_sec = Math.floor(millisec... | 16,558 |
https://github.com/xiekc/leetcode/blob/master/Contains_Duplicate_II_v2.kt | Github Open Source | Open Source | MIT | null | leetcode | xiekc | Kotlin | Code | 86 | 238 | import java.util.*
class Solution {
fun containsNearbyDuplicate(nums: IntArray, k: Int): Boolean {
val map = HashMap<Int, Int>()
for (i in nums.indices) {
val last = map.getOrDefault(nums[i], -k - 1)
if (i - last <= k) {
return true
}
... | 19,816 |
https://github.com/vslavik/poedit/blob/master/deps/boost/libs/detail/test/is_sorted_test.cpp | Github Open Source | Open Source | GPL-1.0-or-later, MIT, BSL-1.0 | 2,023 | poedit | vslavik | C++ | Code | 469 | 1,891 | /*==============================================================================
Copyright (c) 2010-2011 Bryce Lelbach
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=========================================... | 7,443 |
https://github.com/CS2103JAN2017-F14-B3/main/blob/master/src/main/java/onlythree/imanager/commons/events/model/ViewListChangedEvent.java | Github Open Source | Open Source | MIT | 2,017 | main | CS2103JAN2017-F14-B3 | Java | Code | 55 | 164 | package onlythree.imanager.commons.events.model;
import onlythree.imanager.commons.events.BaseEvent;
//@@author A0135998H
/** Indicates the task tab in the model has changed*/
public class ViewListChangedEvent extends BaseEvent {
public final String typeOfListView;
public ViewListChangedEvent(String typeOfL... | 35,453 |
https://github.com/pluralsight/PSOperations/blob/master/PSOperationsTests/PSOperationsTests.swift | Github Open Source | Open Source | Apache-2.0 | 2,021 | PSOperations | pluralsight | Swift | Code | 2,538 | 8,336 | // swiftlint:disable file_length
import Foundation
@testable import PSOperations
import XCTest
struct TestCondition: OperationCondition {
struct Error: ConditionError {
typealias Condition = TestCondition
let failed: Bool
}
static let name = "TestCondition"
static let isMutuallyE... | 23,359 |
https://github.com/deannr/final-project-j3-deannr/blob/master/app/controllers/PerformanceController.java | Github Open Source | Open Source | CC0-1.0 | null | final-project-j3-deannr | deannr | Java | Code | 459 | 1,641 | package controllers;
import com.google.common.io.Files;
import models.*;
import play.data.DynamicForm;
import play.data.FormFactory;
import play.db.jpa.JPAApi;
import play.db.jpa.Transactional;
import play.mvc.Controller;
import play.mvc.Http;
import play.mvc.Result;
import javax.inject.Inject;
import javax.persisten... | 46,618 |
https://github.com/fbradyirl/openwebifpy/blob/master/tests/__init__.py | Github Open Source | Open Source | MIT | 2,021 | openwebifpy | fbradyirl | Python | Code | 10 | 21 | # -*- coding: utf-8 -*-
"""Unit test package for openwebif."""
| 40,695 |
https://github.com/AngelMilovski/SoftUniLearning/blob/master/01.ProgramingBasicWithJava/LoopsExercises/src/p07_LeftAndRightSum.java | Github Open Source | Open Source | MIT | 2,019 | SoftUniLearning | AngelMilovski | Java | Code | 81 | 216 | import java.util.Scanner;
public class p07_LeftAndRightSum {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = Integer.parseInt(scan.nextLine());
int leftSum = 0;
int rightSum = 0;
for (int i = 0; i < n * 2; i++){
int curre... | 33,979 |
https://github.com/yuler/store/blob/master/apps/mini/src/pages/home.ts | Github Open Source | Open Source | MIT | 2,022 | store | yuler | TypeScript | Code | 74 | 240 | import type {IApp} from '../app'
import enchangePage from '../enchange-page'
const $app = getApp<IApp>()
enchangePage({
data: {
bannerHeight: 333,
banners: [],
modules: [],
},
onLoad() {
// TODO: Fetch banners
const {banners, modules} = require('../api-mock/home')
this.setData({
ba... | 39,366 |
https://github.com/dominikpaulus/tvoe/blob/master/debian/tvoe.service | Github Open Source | Open Source | ISC, MIT | 2,019 | tvoe | dominikpaulus | null | Spoken | 22 | 155 | [Unit]
Description=DVB-S/S2 streaming server
ConditionPathExists=/etc/tvoe/tvoe.conf
[Service]
User=Debian-tvoe
ExecStart=/usr/bin/tvoe -f -c /etc/tvoe/tvoe.conf
Restart=on-failure
MemoryDenyWriteExecute=yes
PrivateTmp=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
Prot... | 614 |
https://github.com/marcellogpassos/salon/blob/master/app/Repositories/Exceptions/RepositoryException.php | Github Open Source | Open Source | MIT | null | salon | marcellogpassos | PHP | Code | 24 | 67 | <?php
/**
* Created by PhpStorm.
* User: 08417523464
* Date: 14/07/2016
* Time: 15:29
*/
namespace App\Repositories\Exceptions;
class RepositoryException extends \Exception {
} | 26,175 |
https://github.com/fossabot/legend-studio/blob/master/packages/legend-studio/src/components/editor/edit-panel/mapping-editor/MappingExplorer.tsx | Github Open Source | Open Source | Apache-2.0 | null | legend-studio | fossabot | TypeScript | Code | 1,315 | 5,292 | /**
* Copyright (c) 2020-present, Goldman Sachs
*
* 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 l... | 22,365 |
https://github.com/lukaszlaszko/di/blob/master/src/di/annotations_map.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | di | lukaszlaszko | C++ | Code | 39 | 138 | #include "annotations_map.hpp"
namespace di {
annotations_map& annotations_map::operator <<(const annotations_map& other)
{
for (auto& annotation_with_id : other.annotations_)
{
auto& annotation_id = annotation_with_id.first;
if (annotations_.find(annotation_id) == annotations_.end())
... | 45,681 |
https://github.com/mwongatemma/yams/blob/master/vm/provision.sh | Github Open Source | Open Source | BSD-3-Clause | 2,016 | yams | mwongatemma | Shell | Code | 344 | 1,228 | #!/bin/sh
POSTGRES_VER=9.3
DONEFILE="/root/.done"
if [ ! -f "${DONEFILE}" ]; then
# http://wiki.postgresql.org/wiki/Apt
wget -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo \
apt-key add - || exit 1
cp /vagrant/pgdg.list /etc/apt/sources.list.d/pgdg.list || exit 1
cp /vagrant/pgdg.pref /etc/a... | 7,165 |
https://github.com/LindseyB/CuppaTea/blob/master/Assets/Scripts/UI/StartButton.cs | Github Open Source | Open Source | WTFPL | 2,019 | CuppaTea | LindseyB | C# | Code | 135 | 573 | using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class StartButton : MonoBehaviour {
[SerializeField] private Color startColor;
[SerializeField] private Color hoverColor;
private Text buttonText;
private AudioListener audioListener;
void Start(){
audioListener = FindObjectOfType<Aud... | 27,318 |
https://github.com/fm-leader/style/blob/master/app/Http/Requests/ClientRequest.php | Github Open Source | Open Source | MIT | null | style | fm-leader | PHP | Code | 66 | 223 | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ClientRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the... | 10,162 |
https://github.com/kartben/NeuralNetworks/blob/master/examples/Backpropagation_Single_Xor_Gate/Backpropagation_Single_Xor_Gate.ino | Github Open Source | Open Source | LicenseRef-scancode-other-permissive | 2,019 | NeuralNetworks | kartben | C++ | Code | 239 | 517 | #define NumberOf(arg) ((unsigned int) (sizeof (arg) / sizeof (arg [0]))) //calculates the amount of layers (in this case 3)
#include <NeuralNetwork.h>
const unsigned int layers[] = {2,4,1}; //3 layers (1st)layer with 2 input neurons (2nd)layer with 4 hidden neurons and (3rd)layer with 1 output neuron
float *outputs; ... | 157 |
https://github.com/anishjha93/OfficeEyes/blob/master/src/main/java/com/mbcoder/officeeyes/service/SensorService.java | Github Open Source | Open Source | MIT | 2,019 | OfficeEyes | anishjha93 | Java | Code | 171 | 700 | package com.mbcoder.officeeyes.service;
import com.mbcoder.officeeyes.model.VibrationSensorData;
import com.mbcoder.officeeyes.model.entity.ActivityTime;
import com.mbcoder.officeeyes.model.slack.SlackResponse;
import com.mbcoder.officeeyes.repository.ActivityRepository;
import com.mbcoder.officeeyes.utils.PingPongUti... | 48,489 |
https://github.com/asynciot/sqlmanager/blob/master/conf/evolutions/device/1.sql | Github Open Source | Open Source | Apache-2.0 | null | sqlmanager | asynciot | SQL | Code | 415 | 1,288 | # --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table binaries (
id integer auto_increment not null,
t_create datetime(6),
data varbinary(255),
constraint pk_bin... | 25,514 |
https://github.com/cultofmetatron/electrode-github-oauth-apollo-example/blob/master/src/client/reducers/index.jsx | Github Open Source | Open Source | Apache-2.0 | null | electrode-github-oauth-apollo-example | cultofmetatron | null | Spoken | 158 | 442 | import {combineReducers} from "redux";
import Immutable from 'immutable';
const checkBox = (store, action) => {
if (action.type === "TOGGLE_CHECK") {
return {
checked: !store.checked
};
}
return store || {checked: false};
};
const number = (store, action) => {
if (action.type === "INC_NUMBER") ... | 30,143 |
https://github.com/sweat-pain-data/trainalyzr/blob/master/trainalyzr/io/storage/fit.py | Github Open Source | Open Source | MIT | null | trainalyzr | sweat-pain-data | Python | Code | 74 | 373 | import os.path
from fs import open_fs
from fs.errors import ResourceNotFound
def _filename_from_id(activity_id):
return "{0}.fit".format(activity_id)
def _id_from_filename(filename):
return int(os.path.basename(os.path.splitext(filename)[0]))
class FitStorage:
MISSING_FILE = ".missing"
def __init... | 30,388 |
https://github.com/TheCBKM/Etherm-Tokenization/blob/master/client/build/precache-manifest.29c09dd22218fe3e905f0dfa1e075ee7.js | Github Open Source | Open Source | MIT | null | Etherm-Tokenization | TheCBKM | JavaScript | Code | 36 | 264 | self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "ecf021ac7916734dd04252205b98f324",
"url": "/index.html"
},
{
"revision": "00d6f4e820105a1b3ec5",
"url": "/static/css/main.b100e6da.chunk.css"
},
{
"revision": "5bc12bd4c660b5bfe98f",
"url": "/static/js/2.... | 34,203 |
https://github.com/ryanbott/ryanbott/blob/master/web/craft/plugins/seomatic/resources/js/field.js | Github Open Source | Open Source | MIT | 2,022 | ryanbott | ryanbott | JavaScript | Code | 506 | 1,742 | /*
* Functionality for Seomatic MetaField fieldtype
* by Andrew Welch - http://nystudio107.com
*
* Depends on: jQuery
*/
;(function ( $, window, document, undefined ) {
var pluginName = "SeomaticFieldType",
defaults = {
};
// Plugin constructor
function Plugin( element, options ) {
... | 23,760 |
https://github.com/unitycoder/CGALDotNet/blob/master/CGALWrapper/Polylines/Polyline3_EIK.cpp | Github Open Source | Open Source | MIT | null | CGALDotNet | unitycoder | C++ | Code | 227 | 1,139 |
#include "Polyline3_EIK.h"
#include "Polyline3.h"
void* Polyline3_EIK_Create()
{
return Polyline3<EIK>::NewPolyline3();
}
void* Polyline3_EIK_CreateWithCount(int count)
{
return Polyline3<EIK>::NewPolyline3(count);
}
void Polyline3_EIK_Release(void* ptr)
{
Polyline3<EIK>::DeletePolyline3(ptr);
}
int Polyline3_E... | 53,932 |
https://github.com/JanCwik/SoftwarePraktikum/blob/master/frontend/src/api/ListeneintragBO.js | Github Open Source | Open Source | RSA-MD | 2,020 | SoftwarePraktikum | JanCwik | JavaScript | Code | 249 | 1,061 | import BusinessObject from "./BusinessObject";
export default class ListeneintragBO extends BusinessObject {
/** Damit direkt über diese KLasse ein Name angelegt werden kann,
muss der Parameter im Constructor entgegengenommen werden
und an die Superklasse NamedBO weitergegeben werden. */
constructor() ... | 38,820 |
https://github.com/notbaab/HEAT/blob/master/packets/PacketSerializer.h | Github Open Source | Open Source | MIT | 2,022 | HEAT | notbaab | C | Code | 126 | 547 | #pragma once
#include <functional>
#include <memory>
#include <unordered_map>
class StructuredDataReader;
class StructuredDataWriter;
class Packet;
class MessageSerializer;
using PacketConstructor = std::function<std::shared_ptr<Packet>(std::shared_ptr<MessageSerializer>)>;
// using PacketConstructor = std::function... | 13,982 |
https://github.com/drakonnan1st/JackBot/blob/master/actions/build/evochamber.py | Github Open Source | Open Source | MIT | null | JackBot | drakonnan1st | Python | Code | 114 | 435 | """Everything related to building logic for the evolution chamber goes here"""
from sc2.constants import EVOLUTIONCHAMBER
class BuildEvochamber:
"""Ok for now"""
def __init__(self, main):
self.controller = main
async def should_handle(self):
"""Builds the evolution chambers"""
lo... | 49,224 |
https://github.com/iucool/Web-Development/blob/master/htdocs/WebD/index.php | Github Open Source | Open Source | MIT | null | Web-Development | iucool | PHP | Code | 121 | 506 | <!DOCTYPE html>
<html>
<head>
<title>Display all products from Database</title>
</head>
<body>
<h2>Product Details</h2>
<table border="2">
<tr>
<td>Name</td>
<td>Descc</td>
<td>Price</td>
<td>Stock</td>
</tr>
<?php
$servername = "localhost";
$username = "ro... | 54,830 |
https://github.com/thasleemmji/myhotels/blob/master/app/Models/Booking.php | Github Open Source | Open Source | MIT | 2,019 | myhotels | thasleemmji | PHP | Code | 73 | 329 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Auth;
class Booking extends Model {
static function getBookings($status=null) {
if(!isUser()){//admin or manager
if($status==null){
$bookings = self::orderBy('id', 'DESC')->get();
}else {
$bookings = self::where(... | 50,600 |
https://github.com/alandixon/DarkWeather/blob/master/DarkWeather/DarkWeather/Weather/Daily.cs | Github Open Source | Open Source | MIT | 2,022 | DarkWeather | alandixon | C# | Code | 34 | 75 | using System.Collections.Generic;
namespace DarkWeather.Weather
{
public class Daily : IPrediction
{
public IList<Datum> data { get; set; }
public string icon { get; set; }
public string summary { get; set; }
}
}
| 49,504 |
https://github.com/PolyArch/treadle/blob/master/src/test/scala/treadle/primops/ShlShrDshlDshr.scala | Github Open Source | Open Source | Apache-2.0 | null | treadle | PolyArch | Scala | Code | 529 | 1,657 | // SPDX-License-Identifier: Apache-2.0
package treadle.primops
import firrtl.stage.FirrtlSourceAnnotation
import logger.LazyLogging
import org.scalatest.freespec.AnyFreeSpec
import org.scalatest.matchers.should.Matchers
import treadle.executable._
import treadle.utils.Render
import treadle.{BitTwiddlingUtils, Treadle... | 11,591 |
https://github.com/sndnv/stasis/blob/master/client/src/test/scala/stasis/test/specs/unit/client/tracking/TrackerViewSpec.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | stasis | sndnv | Scala | Code | 250 | 729 | package stasis.test.specs.unit.client.tracking
import stasis.client.tracking.TrackerView
import stasis.shared.ops.Operation
import stasis.test.specs.unit.UnitSpec
import scala.collection.immutable.Queue
class TrackerViewSpec extends UnitSpec {
"A TrackerView State" should "support updating server state" in {
v... | 8,628 |
https://github.com/goldamaier/assignment-client-side-web-engineering/blob/master/04-saga/app/containers/FormulaO/StyledC.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,017 | assignment-client-side-web-engineering | goldamaier | JavaScript | Code | 48 | 147 | import styled from 'styled-components';
export const Input = styled.input`
outline: none;
border-bottom: 1px dotted #999;
`;
export const Ul = styled.ul`
width: 50%;
max-width: 500px;
margin: 0;
list-style: none;
`;
export const ListItem = styled.li`
background-color: lightseagreen;
list-style: none;... | 51,047 |
https://github.com/stevanpecic/Phaser/blob/master/src/lib.rs | Github Open Source | Open Source | MIT | null | Phaser | stevanpecic | Rust | Code | 1,335 | 4,834 | extern crate float_cmp;
extern crate byteorder;
extern crate rand;
extern crate cpu_time;
use std::error::Error;
use std::fs::{File, OpenOptions, remove_file};
use std::io::{BufReader, BufWriter};
use std::io::prelude::*;
use std::path::Path;
use std::str;
use std::io;
use std::fmt;
use cpu_time::ProcessTime;
use std... | 56,132 |
https://github.com/iantal/AndroidPermissions/blob/master/apks/playstore_apps/com_spotify_music/app/smali_classes2/hvw.smali | Github Open Source | Open Source | Apache-2.0 | 2,019 | AndroidPermissions | iantal | Smali | Code | 1,064 | 7,101 | .class public final Lhvw;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field private static final f:Lcom/spotify/mobile/android/playlist/model/RootlistRequestPayload;
.field private static final g:Lcom/spotify/mobile/android/playlist/model/RootlistRequestPayload;
# instance fields
.field final a... | 42,146 |
https://github.com/retargetapp/pyoxr/blob/master/pyoxr/__init__.py | Github Open Source | Open Source | MIT | null | pyoxr | retargetapp | Python | Code | 416 | 1,489 | # -*- coding: utf-8 -*-
"""
Open Exchange Rates API for Python
"""
import requests
class OXRClient(object):
default_api = None
def __init__(self,
app_id,
api_base="https://openexchangerates.org/api/"):
self.api_base = api_base.rstrip("/")
self.app_id = app_... | 4,390 |
https://github.com/evaristofm/api_transacao/blob/master/flask_pdv/ext/resources/transacao.py | Github Open Source | Open Source | MIT | null | api_transacao | evaristofm | Python | Code | 65 | 273 | from flask_restful import Resource, marshal
from flask_pdv.ext.api import requests
from flask_pdv.ext.db.models import TransacaoModel
from flask_pdv.ext.db.schemas import transacao_field
from flask_pdv.ext.db import db
class Transacao(Resource):
def get(self):
transacao = TransacaoModel.query.all()
... | 35,885 |
https://github.com/olgaiv39/3davatars/blob/master/data_prepare/detect_3D_landmark.py | Github Open Source | Open Source | MIT | 2,021 | 3davatars | olgaiv39 | Python | Code | 827 | 3,600 | import cv2, os, importlib, math
import os.path as osp
import numpy as np
import scipy.io as scio
import tensorflow as tf
from numpy.linalg import inv, norm, lstsq
from numpy.linalg import matrix_rank as rank
from data_prepare_utils import write_lmk
fixed_pts = (
np.array(
[
73.3451,
... | 49,742 |
https://github.com/khamutov/intellij-scala/blob/master/scala/scala-impl/testdata/typeInference/bugs5/SCL3414B.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | intellij-scala | khamutov | Scala | Code | 38 | 82 | trait T {
def factorial(x: Int): Int
}
class Counter extends T {
// error: recursive method factorial needs result type
def factorial(x: Int) = {
if (x == 0) 1 else /*start*/x * factorial(x-1)/*end*/
}
}
//Int | 52,697 |
https://github.com/liliankcoimbra/AnotaCar/blob/master/AnotaCar/Models/Abastecimento.cs | Github Open Source | Open Source | MIT | 2,021 | AnotaCar | liliankcoimbra | C# | Code | 96 | 236 | using System;
using System.ComponentModel;
namespace AnotaCar.Models
{
public class Abastecimento
{
public int Id { get; set; }
public PostoCombustivel Posto { get; set; }
[DisplayName("Posto")]
public int PostoId { get; set; }
[DisplayName("Odômetro")]
public i... | 6,452 |
https://github.com/17602980528/MyBectShopManager/blob/master/BletcShop/HolidayActivertyVC.m | Github Open Source | Open Source | LicenseRef-scancode-public-domain | 2,017 | MyBectShopManager | 17602980528 | Objective-C | Code | 719 | 3,539 | //
// HolidayActivertyVC.m
// BletcShop
//
// Created by apple on 17/2/14.
// Copyright © 2017年 bletc. All rights reserved.
//
#import "HolidayActivertyVC.h"
#import "AdvertiseCell.h"
#import "ActivityModel.h"
#import "NewShopDetailVC.h"
#import "TopActiveCell.h"
@interface HolidayActivertyVC ()<UITableViewDelegat... | 18,533 |
https://github.com/yuk-tanaka/send_magazine/blob/master/app/Http/Controllers/WebApi/SendMagazineController.php | Github Open Source | Open Source | MIT | null | send_magazine | yuk-tanaka | PHP | Code | 137 | 558 | <?php
namespace App\Http\Controllers\WebApi;
use App\Http\Controllers\Controller;
use App\Http\Requests\WebApi\ImportCsvRequest;
use App\Http\Requests\WebApi\SendMagazineRequest;
use App\Services\ImportCSV\ImportedCSVException;
use Carbon\Carbon;
use Illuminate\Http\Response;
use Illuminate\Support\Collection;
use Im... | 42,132 |
https://github.com/aliali-art/laravel-project/blob/master/resources/views/users/loginuser.blade.php | Github Open Source | Open Source | MIT | 2,021 | laravel-project | aliali-art | Blade | Code | 100 | 587 | @extends("layout.backendmaster")
@section("backendcontent")
<div class="container">
<div class="col-lg-4 col-md-4 col-sm-3 col-xs-1"></div>
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-10 well" style="margin-top: 5%;">
<center><img src="assets/images/logo for banner tmp.png" alt="Logo" /><br>
<span style="colo... | 12,229 |
https://github.com/likuisuper/Java-Notes/blob/master/JavaSourceLearn/javafx-src/com/sun/media/jfxmedia/track/AudioTrack.java | Github Open Source | Open Source | Apache-2.0 | null | Java-Notes | likuisuper | Java | Code | 496 | 1,152 | /*
* Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.media.jfxmedia.track;
import java.lang.annotation.Native;
import java.util.Locale;
imp... | 50,869 |
https://github.com/open-mpi/ompi-www/blob/master/community/lists/users/2010/07/13553.php | Github Open Source | Open Source | BSD-3-Clause | 2,023 | ompi-www | open-mpi | PHP | Code | 771 | 2,745 | <?
$subject_val = "Re: [OMPI users] mpirun hang up randomly";
include("../../include/msg-header.inc");
?>
<!-- received="Fri Jul 9 05:20:41 2010" -->
<!-- isoreceived="20100709092041" -->
<!-- sent="Fri, 9 Jul 2010 03:20:29 -0600" -->
<!-- isosent="20100709092029" -->
<!-- name="Ralph Castain" -->
<!-- email="rhc_at_[... | 44,862 |
https://github.com/juelvaldivia/curriculumvitae/blob/master/src/index.js | Github Open Source | Open Source | MIT | null | curriculumvitae | juelvaldivia | JavaScript | Code | 62 | 194 | // se importan librerías incluyendo React
import React, { Suspense } from 'react'
import ReactDOM from 'react-dom'
import {
FirebaseAppProvider
} from 'reactfire';
import firebaseConfig from './services/firestore';
import 'firebase/performance';
const App = React.lazy(() => import('./containers/App'));
// React ... | 7,869 |
https://github.com/ctlove0523/huaweicloud-iot-common-java/blob/master/huaweicloud-iot-common-push/src/main/java/io/github/ctlove0523/common/push/dto/product/ServiceEvent.java | Github Open Source | Open Source | Apache-2.0 | null | huaweicloud-iot-common-java | ctlove0523 | Java | Code | 24 | 112 | package io.github.ctlove0523.common.push.dto.product;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class ServiceEvent {
@JsonProperty("event_type")
private String eventType;
private List<ServiceCommandPara> paras;... | 23,877 |
https://github.com/aakarshak9/Backup-Restore/blob/master/app/src/main/java/com/restore/backup/backup/BackupFile.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,020 | Backup-Restore | aakarshak9 | Java | Code | 312 | 878 | /*
*
* Created Aakarshak on 19/12/20 9:29 PM
* Copyright Ⓒ 2020. All rights reserved Ⓒ 2020
* Last modified: 19/12/20 8:06 PM
*
* 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
*... | 29,642 |
https://github.com/aarextiaokhiao/IvarK.github.io/blob/master/javascripts/mods/ngmm.js | Github Open Source | Open Source | MIT | 2,023 | IvarK.github.io | aarextiaokhiao | JavaScript | Code | 3,400 | 11,692 | function inNGM(x) {
return tmp.ngmX >= x && aarMod.ngmX >= x
}
function getGSAmount(offset=0) {
if (tmp.ri) return E(0)
let galaxies = getGSGalaxies() + offset
let y = getGSGalaxyExp(galaxies)
let z = getGSDimboostExp(galaxies)
let resetMult = getTotalDBs()
if (inNGM(4)) resetMult = resetMult + player.tdBoosts... | 17,227 |
https://github.com/OmniSharp/omnisharp-roslyn/blob/master/src/OmniSharp.MSBuild/Models/TargetFramework.cs | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | omnisharp-roslyn | OmniSharp | C# | Code | 49 | 128 | using NuGet.Frameworks;
namespace OmniSharp.MSBuild.Models
{
public class TargetFramework
{
public string Name { get; }
public string FriendlyName { get; }
public string ShortName { get; }
public TargetFramework(NuGetFramework framework)
{
Name = framework.... | 39,686 |
https://github.com/Mthandazo42/validating-binary-decompilation/blob/master/tests/program_translation_validation/single-source-benchmark/partialsums/main/mcsema/test.proposed.opt.ll | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, NCSA | 2,020 | validating-binary-decompilation | Mthandazo42 | LLVM | Code | 20,000 | 45,288 | ; ModuleID = 'mcsema/test.proposed.inline.ll' source_filename = "llvm-link" target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu-elf" %__bss_start_type = type <{ [8 x i8] }> %G_0x327__rip__4196577__type = type <{ [16 x i8] }> %G_0x40a__rip__4196350__type = type <{ [16 x i8] }... | 4,859 |
https://github.com/zwfushichun/Lab/blob/master/WPF/雷达扫描/Demo/MainWindow.xaml.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | Lab | zwfushichun | C# | Code | 349 | 1,247 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigati... | 30,532 |
https://github.com/S4M37/OneDriveJavaSDK/blob/master/src/main/java/de/tuberlin/onedrivesdk/file/OneFile.java | Github Open Source | Open Source | MIT | null | OneDriveJavaSDK | S4M37 | Java | Code | 652 | 1,502 | package de.tuberlin.onedrivesdk.file;
import de.tuberlin.onedrivesdk.OneDriveException;
import de.tuberlin.onedrivesdk.downloadFile.OneDownloadFile;
import de.tuberlin.onedrivesdk.drive.DrivePermission;
import de.tuberlin.onedrivesdk.drive.DriveUser;
import de.tuberlin.onedrivesdk.folder.OneFolder;
import com.google.c... | 42,916 |
https://github.com/at-icons/material/blob/master/icons/ShoppingIcon.js | Github Open Source | Open Source | MIT | 2,020 | material | at-icons | JavaScript | Code | 77 | 316 | import React from 'react'
const DEFAULT_SIZE = 24
export default ({
fill = 'currentColor',
width = DEFAULT_SIZE,
height = DEFAULT_SIZE,
style = {},
...props
}) => (
<svg
viewBox={ `0 0 ${ DEFAULT_SIZE } ${ DEFAULT_SIZE }` }
style={{ fill, width, height, ...style }}
{ ...props }
>
<path d... | 42,976 |
https://github.com/jnthn/intellij-community/blob/master/java/java-tests/testData/inspection/suspiciousArrayMethodCall/SuspiciousArrayMethodCall.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | intellij-community | jnthn | Java | Code | 142 | 446 | import java.util.*;
public class SuspiciousArrayMethodCall {
void test() {
int[][] data = new int[10][];
Arrays.fill(data, <warning descr="Element type is not compatible with array type">-1</warning>);
}
void testBoxing() {
int[] data = new int[10];
Arrays.fill(data, -1);
}
int findString(S... | 26,295 |
https://github.com/ponylang/ponyc/blob/master/examples/helloworld/main.pony | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-2-Clause | 2,023 | ponyc | ponylang | null | Spoken | 8 | 27 | actor Main
new create(env: Env) =>
env.out.print("Hello, world.")
| 45,166 |
https://github.com/jaceksan/tiger-slack-bot/blob/master/tiger/history.py | Github Open Source | Open Source | MIT | 2,022 | tiger-slack-bot | jaceksan | Python | Code | 218 | 610 | import time
import re
import random
class Cache:
def __init__(self):
self._cache = {}
def put(self, atom, user, ttl=90):
ts = time.time()
try:
users = self._cache[atom]
users.append((user, ts + ttl))
except KeyError:
self._cache[atom] = [(us... | 23,855 |
https://github.com/bgpsecurity/rpstir2/blob/master/src/rpstir2-sys/sysdb.go | Github Open Source | Open Source | BSD-3-Clause | 2,023 | rpstir2 | bgpsecurity | Go | Code | 4,152 | 14,106 | package sys
import (
"errors"
"math/rand"
"time"
"github.com/cpusoft/goutil/belogs"
"github.com/cpusoft/goutil/jsonutil"
"github.com/cpusoft/goutil/xormdb"
model "rpstir2-model"
"xorm.io/xorm"
)
var initSqls []string = []string{
`drop table if exists lab_rpki_conf`,
`drop table if exists lab_rpki_cer_aia`,... | 50,461 |
https://github.com/himynameisdave/postcss-playground/blob/master/src/css/layouts/layout/_layout.less | Github Open Source | Open Source | MIT | null | postcss-playground | himynameisdave | Less | Code | 41 | 126 | // layout layout
//
// layout layout classes.
//
// Markup: tests/fixtures/layout.hbs
//
// Styleguide layouts.layout
.l-grid {
display: flex;
flex-direction: row;
width: 100%;
}
.l-grid-col-1 {
flex: 1;
}
.l-grid-col-2 {
flex: 1;
@media @med1a-small {
flex: 2;
}
} | 3,920 |
https://github.com/emilia98/Technology-Fundamentals-PHP/blob/master/01. Basic Syntax, Conditional Statements & Loops - Lab/05.MonthPrinter_3.php | Github Open Source | Open Source | MIT | null | Technology-Fundamentals-PHP | emilia98 | PHP | Code | 34 | 98 | <?php
$month = intval(readline());
$months = array(
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
);
if($month < 1 || $month > 12)
echo "Error!";
else
echo $months[$month - 1]; | 10,370 |
https://github.com/shinesolutions/swagger-aem-osgi/blob/master/clients/swift2-deprecated/generated/OpenAPIClient/Classes/OpenAPIs/Models/ComDayCqMcmImplMCMConfigurationProperties.swift | Github Open Source | Open Source | Apache-2.0 | 2,021 | swagger-aem-osgi | shinesolutions | Swift | Code | 58 | 223 | //
// ComDayCqMcmImplMCMConfigurationProperties.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public class ComDayCqMcmImplMCMConfigurationProperties: JSONEncodable {
public var experienceIndirection: ConfigNodePropertyArray?
public var touchpointIndirection... | 13,325 |
https://github.com/sellendk/megamol/blob/master/vislib/src/net/CommServer.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | megamol | sellendk | C++ | Code | 637 | 2,593 | /*
* CommServer.cpp
*
* Copyright (C) 2006 - 2010 by Visualisierungsinstitut Universitaet Stuttgart.
* Alle Rechte vorbehalten.
*/
#include "vislib/net/CommServer.h"
#include "vislib/net/Socket.h"
#include "vislib/IllegalParamException.h"
#include "vislib/IllegalStateException.h"
#include "vislib/Trace.h"
#inclu... | 45,606 |
https://github.com/subhankhalid402/hcrew-api/blob/master/app/Http/Controllers/CurrencyController.php | Github Open Source | Open Source | MIT | null | hcrew-api | subhankhalid402 | PHP | Code | 202 | 622 | <?php
namespace App\Http\Controllers;
use App\Models\Currency;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
class CurrencyController extends Controller
{
public function store(Request $request)
{
// $validator = Validator::make($request->all(), [
// 'name' => 'req... | 39,887 |
https://github.com/Max-Zhenzhera/my_vocab_backend/blob/master/app/api/routes/__init__.py | Github Open Source | Open Source | MIT | 2,021 | my_vocab_backend | Max-Zhenzhera | Python | Code | 7 | 17 | from .api import router
__all__ = ['router']
| 27,944 |
https://github.com/kousikmitra/canvas-solution/blob/master/login.php | Github Open Source | Open Source | MIT | 2,019 | canvas-solution | kousikmitra | PHP | Code | 543 | 2,857 | <?php
require 'includes/common.php';
if(isset($_SESSION['user_id'])){
header('location:index.php');
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Sign Up</title>
<meta charset="utf-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="htt... | 44,885 |
https://github.com/robbyriverside/brief/blob/master/spec_test.go | Github Open Source | Open Source | MIT | null | brief | robbyriverside | Go | Code | 301 | 980 | package brief_test
import (
"strings"
"testing"
"github.com/robbyriverside/brief"
)
func TestChild(t *testing.T) {
tests := []struct {
Path []string
Found bool
}{
{
Path: []string{"head", "title"},
Found: true,
},
{
Path: []string{"body", "div:main"},
Found: true,
},
{
Path: []s... | 16,915 |
https://github.com/renedlog/vespa/blob/master/orchestrator/src/test/java/com/yahoo/vespa/orchestrator/model/ModelTestUtils.java | Github Open Source | Open Source | Apache-2.0 | null | vespa | renedlog | Java | Code | 403 | 1,744 | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.orchestrator.model;
import com.yahoo.jdisc.Metric;
import com.yahoo.jdisc.test.TestTimer;
import com.yahoo.test.ManualClock;
import com.yahoo.vespa.applicationmodel.Application... | 28,205 |
https://github.com/danielbak/cs253-ressources/blob/master/plugins/ex2/Makefile | Github Open Source | Open Source | MIT | null | cs253-ressources | danielbak | Makefile | Code | 48 | 162 | CC=gcc
CFLAGS=-Wall -g
OBJFLAGS= -g -c -fPIC
LIBFLAGS=-shared
All: Loader Hello.so Goodbye.so
Loader: Loader.c Loader.h
$(CC) $(CFLAGS) $(LOADERFLAGS) -o $@ $< -ldl
%.so: %.c
$(CC) $(OBJFLAGS) $^
$(CC) $(LIBFLAGS) -o $@ $*.o
rm -f $*.o
chmod a-x $@
.PHONY: clean
clean:
rm -f *.o *.so *~ Loader $(OBJS)
| 42,578 |
https://github.com/applehhhhroot/vagrant-kvm/blob/master/lib/vagrant-kvm/action/check_kvm.rb | Github Open Source | Open Source | MIT | 2,015 | vagrant-kvm | applehhhhroot | Ruby | Code | 78 | 176 | module VagrantPlugins
module ProviderKvm
module Action
# Checks that the libvirt/kvm/qemu environment is ready to be used.
class CheckKvm
def initialize(app, env)
@app = app
end
def call(env)
# This verifies that kvm/qemu is installed, the environment is
... | 7,491 |
https://github.com/bobmcwhirter/drools/blob/master/drools-core/src/test/java/org/drools/factmodel/InstancesHashcodedTest.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | drools | bobmcwhirter | Java | Code | 309 | 1,081 | /*
* Copyright (c) 2004-2006 Auster Solutions. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAI... | 19,207 |
https://github.com/willemlenaerts/sway/blob/master/js/domestic-bracket/js.js | Github Open Source | Open Source | Apache-2.0 | null | sway | willemlenaerts | JavaScript | Code | 4,122 | 21,049 | function buildBracket(view,country) {
///////////////////////////////////
// Import files
///////////////////////////////////
// Ajax url's
var games_graph_url = "http://www.sway-blog.be/data/pi-domestic-leagues/" + country + "/games_graph.json"
var ajax_call_games_graph = $.ajax({
url: games_graph_url,
dat... | 38,482 |
https://github.com/hack-ms/Berserkers/blob/master/app/services/populate/work_types.rb | Github Open Source | Open Source | MIT | null | Berserkers | hack-ms | Ruby | Code | 42 | 200 | class Populate::WorkTypes < BaseService
include BaseApi
ENDPOINT = "https://avancar.gov.br/avancar-web/populacomboTipo"
steps :get_work_types,
:create_work_types
def call
treat_exception do
process_steps
end
end
private
def get_work_types
@work_types = get(ENDPOINT)
end
... | 41,570 |
https://github.com/ronenhamias/pipeline/blob/master/.gen/pipeline/pipeline/model_secret_key_value_oracle.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | pipeline | ronenhamias | Go | Code | 73 | 197 | /*
* Pipeline API
*
* Pipeline is a feature rich application platform, built for containers on top of Kubernetes to automate the DevOps experience, continuous application development and the lifecycle of deployments.
*
* API version: latest
* Contact: info@banzaicloud.com
* Generated by: OpenAPI Generator (http... | 24,916 |
https://github.com/nortegac/test/blob/master/src/App.js | Github Open Source | Open Source | MIT | null | test | nortegac | JavaScript | Code | 46 | 122 | import "./App.css";
import React, { useState } from "react";
import { AppRouter } from './router/AppRouter';
import { UserContext } from "./context/UserContext";
function App() {
const [user, setUser] = useState(null);
return (
<main>
<UserContext.Provider value={{ user, setUser }}>
<AppRouter /... | 35,019 |
https://github.com/z234009184/GLCategories/blob/master/GLCategories/UIViewController+PopoverView/AnimationActionSheet.h | Github Open Source | Open Source | MIT | 2,017 | GLCategories | z234009184 | C | Code | 35 | 114 | //
// AnimationActionSheet.h
// LAB
//
// Created by 张国梁 on 16/9/9.
// Copyright © 2016年 LAB. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AnimationActionSheet : NSObject <UIViewControllerAnimatedTransitioning>
@property (assign, nonatomic, getter=isStartPresented) BOOL startPresented;
@end
| 31,143 |
https://github.com/ahsanranga72/Matrimony/blob/master/database/migrations/2019_09_30_114407_create_user_profiles_table.php | Github Open Source | Open Source | MIT | null | Matrimony | ahsanranga72 | PHP | Code | 113 | 925 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUserProfilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_profi... | 40,039 |
https://github.com/wenext-ops/LLForAndroid/blob/master/tenextll/src/main/java/com/tenext/auth/service/VerifyService.kt | Github Open Source | Open Source | MIT | 2,022 | LLForAndroid | wenext-ops | Kotlin | Code | 171 | 579 | package com.tenext.auth.service
import com.tenext.auth.callback.MyCallback
import com.tenext.auth.consts.RequestCode
import com.tenext.auth.impl.VerifyImpl
/**
* 验证码相关Service
*/
internal class VerifyService : BaseService(), VerifyImpl {
companion object {
const val register_type = "register"
co... | 17,832 |
https://github.com/zarechenskiy/kotlin/blob/master/compiler/testData/diagnostics/testsWithStdLib/annotations/annotationsWithJavaLangClassParameterOverload/valueArray.kt | Github Open Source | Open Source | Apache-2.0 | null | kotlin | zarechenskiy | Kotlin | Code | 38 | 184 | // !DIAGNOSTICS: -JAVA_LANG_CLASS_ARGUMENT_IN_ANNOTATION
// FILE: A.java
public @interface A {
Class<?>[] value();
}
// FILE: b.kt
A(javaClass<String>(), javaClass<Int>()) class MyClass1
A(*arrayOf(javaClass<String>(), javaClass<Int>())) class MyClass2
A(value = *arrayOf(javaClass<String>(), javaClass<Int>())) c... | 40,068 |
https://github.com/bcgov/mds/blob/master/services/core-web/src/components/Forms/reports/ReportHistorySubmissionSummary.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | mds | bcgov | JavaScript | Code | 129 | 559 | import React from "react";
import PropTypes from "prop-types";
import { Divider } from "antd";
import { formatDate } from "@common/utils/helpers";
import FormItemLabel from "@/components/common/FormItemLabel";
import CommentPanel from "@/components/common/comments/CommentPanel";
import { UploadedDocumentsTable } from "... | 934 |
https://github.com/patrickmaslen/bfrs/blob/master/bfrs/views.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | bfrs | patrickmaslen | Python | Code | 3,331 | 15,109 | import traceback
import collections
import os
import sys
from django.http import HttpResponse, HttpResponseRedirect, Http404, HttpResponseNotAllowed,FileResponse
from django.template.response import TemplateResponse
from django.core.urlresolvers import reverse
from django.views import generic
from django.views.generic... | 52,073 |
https://github.com/navikt/fp-felles/blob/master/felles/abac/src/main/java/no/nav/vedtak/sikkerhet/pdp/xacml/XacmlResponseWrapper.java | Github Open Source | Open Source | MIT | 2,020 | fp-felles | navikt | Java | Code | 362 | 1,660 | package no.nav.vedtak.sikkerhet.pdp.xacml;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import javax.json.JsonObject;
import javax.json.JsonValue;
import no.nav.vedtak.sikkerhet.abac.Decision;
public class XacmlResponseWrapper {
public static fina... | 53,762 |
https://github.com/dotnet/runtime/blob/master/src/libraries/System.Private.Xml/tests/XmlDocument/XmlNamedNodeMapTests/ItemTests.cs | Github Open Source | Open Source | MIT | 2,023 | runtime | dotnet | C# | Code | 107 | 363 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Xunit;
namespace System.Xml.XmlDocumentTests
{
public static class ItemTests
{
[Fact]
public static void ValidItemTest()
{
var xmlD... | 3,488 |
https://github.com/ngsutils/ngsutilsj/blob/master/src/test/io/compgen/ngsutils/support/TestNaturalSort.java | Github Open Source | Open Source | BSD-3-Clause | 2,020 | ngsutilsj | ngsutils | Java | Code | 187 | 599 | package io.compgen.ngsutils.support;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import io.compgen.common.StringUtils;
public class TestNaturalSort {
@Before
public void setUp() thro... | 16,496 |
https://github.com/raffiarmyda/E-Learning/blob/master/application/views/Partial/blank.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | E-Learning | raffiarmyda | PHP | Code | 62 | 254 |
<!DOCTYPE html>
<html style="background:gray; padding:50px;">
<head>
<?php echo @$head; ?>
</head>
<body>
<?php echo @$navbar; ?>
<div class="container" style="margin-top: 60px; padding:55px;">
<div class="row">
<div class="col-md-3">
<div class="list-group">
<?php echo @$sid... | 25,409 |
https://github.com/ElevateData/OpenTemenos-Transact/blob/master/src/Transact.Meta/MenuService.cs | Github Open Source | Open Source | MIT | null | OpenTemenos-Transact | ElevateData | C# | Code | 3,414 | 13,025 | //----------------------
// <auto-generated>
// Generated using the NSwag toolchain v13.14.5.0 (NJsonSchema v10.5.2.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------
#nullable enable
using OpenTemenos.Shared.Models;
#pragma warning disable 108 // Disable "CS0108 '{de... | 19,492 |
https://github.com/rahulsukla/procan/blob/master/cli.h | Github Open Source | Open Source | BSD-2-Clause | 2,009 | procan | rahulsukla | C | Code | 37 | 136 | extern pthread_mutex_t hangup_mutex;
extern int m_hangup;
extern pthread_mutex_t procsnap_mutex;
extern proc_statistics *procsnap;
extern int numprocsnap;
extern pthread_mutex_t procchart_mutex;
extern proc_averages *procavs;
extern int numprocavs;
extern pthread_mutex_t pconfig_mutex;
extern void* collector_thread... | 40,845 |
https://github.com/slaskawi/pnc/blob/master/docker-environment-driver/src/main/java/org/jboss/pnc/environment/docker/Generator.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,015 | pnc | slaskawi | Java | Code | 177 | 369 | /**
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Lice... | 6,944 |
https://github.com/fantome3/projet_acq/blob/master/resources/views/container/donation.blade.php | Github Open Source | Open Source | MIT | null | projet_acq | fantome3 | PHP | Code | 169 | 677 | @extends('layouts.template')
@section('content')
<!-- Content se referer au fichier home-blog-v5 ligne les plus importantes 1092 et 1178-->
<section id="page-content" class="sidebar-right">
<div class="container">
<div class="row">
<!-- post content -->
<div class="content col-lg-9"... | 29,967 |
https://github.com/lesstif/php-jira-rest-client/blob/master/src/Sprint/Sprint.php | Github Open Source | Open Source | Apache-2.0 | 2,023 | php-jira-rest-client | lesstif | PHP | Code | 112 | 408 | <?php
declare(strict_types=1);
namespace JiraRestApi\Sprint;
use DateTimeInterface;
use JiraRestApi\JsonSerializableTrait;
class Sprint implements \JsonSerializable
{
use JsonSerializableTrait;
public string $self;
public string $id;
public string $name;
public string $state;
public str... | 21,435 |
https://github.com/Navaneethsen/hipster/blob/master/hipster-core/src/test/java/es/usc/citius/lab/hipster/algorithm/DepthFirstSearchTest.java | Github Open Source | Open Source | Apache-2.0 | null | hipster | Navaneethsen | Java | Code | 260 | 1,253 | /**
* Copyright (C) 2013-2018 Centro de Investigación en Tecnoloxías da Información (CITIUS) (http://citius.usc.es)
*
* 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... | 13,342 |
https://github.com/princesehgal452/fleet-driver/blob/master/src/services/APIServices/GetNotifications/index.ts | Github Open Source | Open Source | MIT | null | fleet-driver | princesehgal452 | TypeScript | Code | 147 | 432 | import firebase from 'firebase/app';
import 'firebase/auth';
import axios from 'axios';
import config from '../../../../config';
import { ApiFail } from '../../../utils/ErrorService';
import { getTokenHeader } from '../GetTokenHeader';
import { IGetNotifications, IGetNotificationsHelper } from '../../../models/apiRespo... | 55,244 |
https://github.com/ykaragol/checkersmaster/blob/master/CheckersMaster/src/checkers/domain/Move.java | Github Open Source | Open Source | MIT | 2,022 | checkersmaster | ykaragol | Java | Code | 59 | 152 | package checkers.domain;
import checkers.sandbox.SquareState;
public class Move {
private double value = Double.NEGATIVE_INFINITY;
public int fromX;
public int fromY;
public int toX;
public int toY;
public boolean must = false;
public SquareState eat;
public Move next;
public boolean convert;
public Move ne... | 43,515 |
https://github.com/cmpsmarcio/quiz-covid-form/blob/master/src/components/styled-components/Label.jsx | Github Open Source | Open Source | MIT | null | quiz-covid-form | cmpsmarcio | null | Spoken | 18 | 46 | import styled from 'styled-components'
const Label = styled.label`
color: #646464;
font-weight: bold;
display: block;
`
export default Label | 25,518 |
https://github.com/Henbyr/JustTweak/blob/master/JustTweak/Classes/Protocols/TweakProvider.swift | Github Open Source | Open Source | Apache-2.0 | 2,021 | JustTweak | Henbyr | Swift | Code | 89 | 226 | //
// TweakProvider.swift
// Copyright (c) 2016 Just Eat Holding Ltd. All rights reserved.
//
import Foundation
public enum LogLevel: Int {
case error, debug, verbose
}
public typealias LogClosure = (String, LogLevel) -> Void
public protocol TweakProvider {
var logClosure: LogClosure? { set get }
func... | 26,088 |
https://github.com/fetchq/console/blob/master/ssr/feature/api-v1/routes/v1-document-drop.js | Github Open Source | Open Source | MIT | null | console | fetchq | JavaScript | Code | 196 | 639 | const schema = require('./v1-document-drop.schema');
const getMetricsToDecrease = ({ status_prev, version_prev }) => {
const queries = ['cnt', `v${version_prev}`];
switch (status_prev) {
case 3:
queries.push('cpl');
break;
case 2:
queries.push('act');
break;
case 1:
queri... | 16,541 |
https://github.com/jonfryd/sheeplifter/blob/master/src/dk/impact/sheeplifter/spatials/actors/ship/DriftAction.java | Github Open Source | Open Source | Unlicense | 2,019 | sheeplifter | jonfryd | Java | Code | 99 | 241 | package dk.impact.sheeplifter.spatials.actors.ship;
import com.jme.input.action.InputActionEvent;
import com.jme.input.action.KeyInputAction;
/**
* DriftAction defines the action that occurs by default each frame.
* It obtains the velocity of the vehicle and translates the vehicle by this value.
* @author Mark Pow... | 469 |
https://github.com/STMicroelectronics/EdgeSTSDK_Python/blob/master/edge_st_sdk/utils/edge_st_exceptions.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | EdgeSTSDK_Python | STMicroelectronics | Python | Code | 331 | 622 | ################################################################################
# COPYRIGHT(c) 2018 STMicroelectronics #
# #
# Redistribution and use in source and binary forms, with or without ... | 12,968 |
https://github.com/Marble879/Rofi-Network-Manager/blob/master/venv/lib/python3.9/site-packages/nmcli/nmcli.py | Github Open Source | Open Source | MIT | 2,021 | Rofi-Network-Manager | Marble879 | Python | Code | 424 | 1,106 | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is dis... | 54,533 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.