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/nagrohan726/eclipse-workspace/blob/master/CoreJava/EventManagement/src/com/emc/managers/EventManagerImpl2.java | Github Open Source | Open Source | MIT | null | eclipse-workspace | nagrohan726 | Java | Code | 30 | 80 | package com.emc.managers;
import com.emc.entities.Event;
public class EventManagerImpl2 implements EventManager {
@Override
public Event create(long id) {
return new Event(id, "Mac Book Launch", "New Generation of Mac Books Launch");
}
}
| 44,679 |
https://github.com/nemanjajokic/quora-clone/blob/master/backend/src/main/java/io/neca/quoraclone/service/UserService.java | Github Open Source | Open Source | Apache-2.0 | null | quora-clone | nemanjajokic | Java | Code | 33 | 163 | package io.neca.quoraclone.service;
import io.neca.quoraclone.dao.UserRepository;
import io.neca.quoraclone.dto.UserView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
@Transaction... | 26,925 |
https://github.com/srjustice/kubos/blob/master/apis/novatel-oem6-api/src/tests/errors.rs | Github Open Source | Open Source | Apache-2.0 | null | kubos | srjustice | Rust | Code | 482 | 1,823 | //
// Copyright (C) 2018 Kubos Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License")
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | 3,198 |
https://github.com/drunkcod/DataBoss/blob/master/Source/DataBoss.DataPackage/Schema/TabularDataSchemaFieldConstraints.cs | Github Open Source | Open Source | MIT | 2,022 | DataBoss | drunkcod | C# | Code | 50 | 178 | using Newtonsoft.Json;
namespace DataBoss.DataPackage
{
public readonly struct TabularDataSchemaFieldConstraints
{
[JsonConstructor]
public TabularDataSchemaFieldConstraints(bool required, int? maxLength = null) {
this.IsRequired = required;
this.MaxLength = maxLength;
}
[JsonProperty("required", Def... | 26,737 |
https://github.com/ausaccessfed/identity-enhancement-service/blob/master/spec/routing/api_subject_role_assignments_routing_spec.rb | Github Open Source | Open Source | Apache-2.0 | null | identity-enhancement-service | ausaccessfed | Ruby | Code | 130 | 520 | # frozen_string_literal: true
require 'rails_helper'
RSpec.describe APISubjectRoleAssignmentsController, type: :routing do
let(:base) { { provider_id: '1', role_id: '2' } }
def action(name)
"api_subject_role_assignments##{name}"
end
context 'get /providers/:id/roles/:id/api_members' do
subject { { g... | 21,628 |
https://github.com/bossm0n5t3r/BOJ/blob/master/4153/BOJ_4153.py | Github Open Source | Open Source | MIT | 2,020 | BOJ | bossm0n5t3r | Python | Code | 33 | 100 | def sol():
while True:
lengths = sorted(list(map(int, input().split())))
if sum(lengths) == 0:
exit()
if lengths[0] ** 2 + lengths[1] ** 2 == lengths[2] ** 2:
print("right")
else:
print("wrong")
if __name__ == "__main__":
sol()
| 7,126 |
https://github.com/jackrestaki/Core-Scripts/blob/master/CoreScripts/Modules/InGameMenu/Components/PageNavigation.lua | Github Open Source | Open Source | Apache-2.0 | null | Core-Scripts | jackrestaki | Lua | Code | 760 | 2,739 | local CorePackages = game:GetService("CorePackages")
local InGameMenuDependencies = require(CorePackages.InGameMenuDependencies)
local Otter = InGameMenuDependencies.Otter
local Roact = InGameMenuDependencies.Roact
local RoactRodux = InGameMenuDependencies.RoactRodux
local UIBlox = InGameMenuDependencies.UIBlox
local... | 15,997 |
https://github.com/blmccavanagh/Team-Profile-Generator/blob/master/__tests__/Employee.test.js | Github Open Source | Open Source | MIT | null | Team-Profile-Generator | blmccavanagh | JavaScript | Code | 74 | 188 | const Employee = require('../lib/Employee');
test('The name property of the Employee to be a string', () => {
const employee = new Employee('Jane Doe', 1, 'janedoe@email.com');
expect(employee.name).toEqual('Jane Doe');
});
test('The id property of the Employee to be a number', () => {
const employee = n... | 36,014 |
https://github.com/khairanabila/pythonApps/blob/master/sendingEmailText.py | Github Open Source | Open Source | MIT | 2,021 | pythonApps | khairanabila | Python | Code | 141 | 401 | #!/usr/bin/python
import smtplib
import base64
filename = "myTextEmail.txt"
# Read a file and encode it into base64 format
fo = open(filename, "rb")
filecontent = fo.read()
encodedcontent = base64.b64encode(filecontent) # base64
sender = 'senderEmail@mail.com'
reciever = 'receiver@mail.com'
marker = "ZULKPERETES"... | 33,506 |
https://github.com/queueball/generate_flask_app/blob/master/gfl.py | Github Open Source | Open Source | Unlicense | null | generate_flask_app | queueball | Python | Code | 685 | 2,902 | #!/usr/local/bin/python3
import os
import pathlib
import random
import subprocess
import socket
import click
import yaml
VALUES = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
def generate_folders(output: str, module: str):
folders = [
(output,),
(output, module, "app"),
... | 39,507 |
https://github.com/Eduworks/ew/blob/master/ew.levr.base/src/main/java/com/eduworks/resolver/security/CruncherDecrypt.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,019 | ew | Eduworks | Java | Code | 593 | 1,709 | package com.eduworks.resolver.security;
import java.io.InputStream;
import java.security.GeneralSecurityException;
import java.util.Map;
import java.util.Random;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
import org.json.JSONException;
import org.json.JSONObject;
import com.eduworks.resolve... | 6,723 |
https://github.com/tingkelvin/LMTracker/blob/master/graph_construction.py | Github Open Source | Open Source | MIT | null | LMTracker | tingkelvin | Python | Code | 868 | 3,058 | import pandas as pd
# import matplotlib.pyplot as plt
import numpy as np
from tqdm import tqdm
import dgl
import torch
import torch.nn as nn
from csv import reader
from torch_geometric.data import HeteroData
import time
import os, datetime
computer2nodeid = dict()
user2nodeid = dict()
process2nodeid = dict()
ceiling_d... | 3,902 |
https://github.com/bwall/bamfdetect/blob/master/BAMF_Detect/modules/glassrat.py | Github Open Source | Open Source | MIT | 2,021 | bamfdetect | bwall | Python | Code | 90 | 387 | from common import Modules, data_strings, load_yara_rules, PEParseModule, ModuleMetadata, is_ip_or_domain
class glassrat(PEParseModule):
def __init__(self):
md = ModuleMetadata(
module_name="glassrat",
bot_name="GlassRAT",
description="Trojan",
authors=["Bri... | 4,319 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/a/angular-file-upload/src/main/scala/typingsSlinky/angularFileUpload/anon.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 360 | 1,508 | package typingsSlinky.angularFileUpload
import org.scalajs.dom.experimental.Headers
import org.scalajs.dom.raw.FormData
import typingsSlinky.angularFileUpload.mod.FileItem
import typingsSlinky.angularFileUpload.mod.Filter
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
imp... | 28,640 |
https://github.com/anuraagbaishya/uiautomator/blob/master/uiautomator/json_rpc_client.py | Github Open Source | Open Source | MIT | null | uiautomator | anuraagbaishya | Python | Code | 27 | 106 | from json_rpc_method import JsonRPCMethod
class JsonRPCClient(object):
def __init__(self, url, timeout=30, method_class=JsonRPCMethod):
self.url = url
self.timeout = timeout
self.method_class = method_class
def __getattr__(self, method):
return self.method_class(self.url, met... | 17,961 |
https://github.com/theletterf/collectd-spark/blob/master/test_spark_plugin.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | collectd-spark | theletterf | Python | Code | 1,284 | 7,110 | #!/usr/bin/env python
from unittest import TestCase
from mock import MagicMock, Mock, patch
import sample_html
import sample_responses
import spark_plugin
from spark_plugin import MetricRecord, SparkApplicationPlugin, SparkProcessPlugin
def mock_request_response(url, path, *args, **kwargs):
if path == spark_plu... | 6,442 |
https://github.com/ethician/dotfiles/blob/master/vim/vimrc.vim | Github Open Source | Open Source | Apache-2.0 | 2,020 | dotfiles | ethician | null | Spoken | 727 | 2,748 | "//////////////
"// Must Haves
set nocompatible
"///////////
"// Plugins
" https://vimawesome.com/
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin('~/.dotfiles/vim/vim/bundle')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdcommenter'
Plugin 'scrooloose/n... | 24,319 |
https://github.com/hpi-sam/ask-your-repository-web/blob/master/src/components/utility/ListEmpty.js | Github Open Source | Open Source | MIT | 2,019 | ask-your-repository-web | hpi-sam | JavaScript | Code | 30 | 87 | // @flow
import React from 'react';
import './ListEmpty.scss';
type Props = {
children: React$Node,
};
function ListEmpty(props: Props) {
return (
<div className="ListEmpty">
{props.children}
</div>
);
}
export default ListEmpty;
| 20,392 |
https://github.com/blturner/django-stardate/blob/master/stardate/parsers.py | Github Open Source | Open Source | BSD-3-Clause | null | django-stardate | blturner | Python | Code | 382 | 1,123 | import datetime
import logging
import pytz
import types
import yaml
from django.utils.timezone import is_aware, make_aware, utc
from dateutil import tz
from dateutil.parser import parse
from stardate.backends import BaseStardateParser
logger = logging.getLogger(__name__)
DELIMITER = "\n---\n\n"
TIMEFORMAT = '%Y-%m... | 43,170 |
https://github.com/DiefBell/WalrusBot2/blob/master/WalrusBot2/Modules/BackupModule.cs | Github Open Source | Open Source | MIT | 2,019 | WalrusBot2 | DiefBell | C# | Code | 47 | 134 | using Discord.Commands;
using System.Threading.Tasks;
namespace WalrusBot2.Modules
{
[DontAutoLoad]
[Group("groupname_changethis")]
public class BackupModule : ModuleBase<SocketCommandContext>
{
[Command] // default command
public async Task DefaultAsync()
=> await ReplyAs... | 17,848 |
https://github.com/alexrupom/rent-my-taxi/blob/master/application/views/admin/lists/add-new-driver.php | Github Open Source | Open Source | MIT | null | rent-my-taxi | alexrupom | PHP | Code | 64 | 357 |
<title>Add new driver</title>
<div id="right-container">
<form method="post" action="<?php echo site_url('Admin/new_driver');?>">
<ul class="new-driver-list">
<li>
<label>Name: </label>
<input type="text" name="name">
</li>
<li>
<label>Driver ID: </label>
<input type="int... | 43,137 |
https://github.com/cezar08/mvc_exemplo/blob/master/module/Application/src/Entity/User.php | Github Open Source | Open Source | BSD-3-Clause | null | mvc_exemplo | cezar08 | PHP | Code | 80 | 251 | <?php
/**
* Created by PhpStorm.
* User: unochapeco
* Date: 09/04/18
* Time: 21:02
*/
namespace Application\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Class User
* @package Application\Entity
*
* @ORM\Entity
* @ORM\Table(name="user")
*/
class User
{
/**
* @ORM\Id
* @ORM\GeneratedValue(s... | 2,193 |
https://github.com/isaacBats/auto_crud_laravel/blob/master/public/assets/js/weather.js | Github Open Source | Open Source | MIT | null | auto_crud_laravel | isaacBats | JavaScript | Code | 110 | 463 | $(function() {
// Add a few preload
$.getJSON('http://api.openweathermap.org/data/2.5/weather?q=antarctica antarctica&units=imperial', addLocation);
$.getJSON('http://api.openweathermap.org/data/2.5/weather?q=rajahmundry india&units=imperial', addLocation);
$.getJSON('http://api.openweathermap.org/d... | 6,258 |
https://github.com/esra01/ubaya-mulmed-1604A053-week2/blob/master/resources/views/pages/fla.blade.php | Github Open Source | Open Source | MIT | null | ubaya-mulmed-1604A053-week2 | esra01 | PHP | Code | 64 | 118 | <!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<img src="/img/fla.jpg">
is a variety of culinary preparations based on sweetened milk, cheese, or cream cooked with egg or egg yolk to thicken it, and sometimes also flour, corn starch, or gelatin. Depending on the recipe, custard may vary in consistency fr... | 37,180 |
https://github.com/ranjeesh-powerofn/LPC_1768_1769CMSIS_old_library/blob/master/keil_examples/USBHID/demo.c | Github Open Source | Open Source | Unlicense | null | LPC_1768_1769CMSIS_old_library | ranjeesh-powerofn | C | Code | 776 | 2,102 | /*----------------------------------------------------------------------------
* Name: DEMO.C
* Purpose: USB HID Demo
* Version: V1.20
*----------------------------------------------------------------------------
* This software is supplied "AS IS" without any warranties, express,
* im... | 11,643 |
https://github.com/worksolutions/bitrix-module-tools/blob/master/lib/tests/result.php | Github Open Source | Open Source | MIT | 2,021 | bitrix-module-tools | worksolutions | PHP | Code | 132 | 384 | <?php
/**
* @author Maxim Sokolovsky <sokolovsky@worksolutions.ru>
*/
namespace WS\Tools\Tests;
class Result {
private $success;
private $message;
private $trace;
/**
* @return mixed
*/
public function getMessage() {
return $this->message;
}
/**
* @param mixed $... | 35,409 |
https://github.com/samford/homebrew-xorg/blob/master/Formula/xorg-apps.rb | Github Open Source | Open Source | BSD-2-Clause | 2,021 | homebrew-xorg | samford | Ruby | Code | 121 | 887 | class XorgApps < Formula
desc "X.Org Applications"
homepage "https://www.x.org/"
### http://www.linuxfromscratch.org/blfs/view/svn/x/x7lib.html
url "https://gist.githubusercontent.com/maxim-belkin/6916a35b777799d4e71b213eaae8a980/raw/974f263825c96a43310fca7a8106d0c7c015b681/README.md"
version "20160522"
sh... | 641 |
https://github.com/RafaelMunareto/pertence_it_laravel_puro/blob/master/resources/views/pertence/404Personalizado.blade.php | Github Open Source | Open Source | MIT | null | pertence_it_laravel_puro | RafaelMunareto | PHP | Code | 54 | 274 |
@extends('layout')
@section('conteudo')
<section class="page_404">
<div class="container">
<div class="row">
<div class="col-sm-12 ">
<div class="col-sm-10 col-sm-offset-1 text-center">
<div class="four_zero_four_bg">
<h1 class="text-center... | 1,731 |
https://github.com/max-codeware/linmeric/blob/master/linmeric.gemspec | Github Open Source | Open Source | MIT | null | linmeric | max-codeware | Ruby | Code | 137 | 480 | # coding: utf-8
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "linmeric/version"
Gem::Specification.new do |spec|
spec.name = "linmeric"
spec.version = Linmeric::VERSION
spec.authors = ["Massimiliano Dal Mas"]
spec.email ... | 39,423 |
https://github.com/Simo2012/Fia/blob/master/src/SceauBundle/Resources/views/Emails/Questionnaires/base.html.twig | Github Open Source | Open Source | MIT | null | Fia | Simo2012 | Twig | Code | 373 | 1,676 | {% trans_default_domain 'emails_questionnaires' %}
{% set url = url('extranet_questionnaires_questionnaires') %}
{% set color = '#52ae35' %}
{% if html %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">... | 6,274 |
https://github.com/stelligent/nando_automation_demo/blob/master/docker-centos/docker.sh | Github Open Source | Open Source | MIT | 2,015 | nando_automation_demo | stelligent | Shell | Code | 67 | 283 | #!/bin/bash
REGION="$(wget -q http://169.254.169.254/latest/meta-data/placement/availability-zone -O - | sed -e 's/[a-zA-Z]$//')"
aws s3 cp "s3://nando-automation-demo/cloudformation.stack.name-${REGION}" .
echo
stackName=$(< "cloudformation.stack.name-${REGION}")
echo $stackName
echo
aws cloudformation describe-stack... | 8,034 |
https://github.com/htsign/kinx/blob/master/src/disasm/arch/mips/mstrings.c | Github Open Source | Open Source | MIT | 2,022 | kinx | htsign | C | Code | 78 | 344 | #include "mstrings.h"
const char *mips_registers[32] = {
"$zero", "$at", "$v0", "$v1",
"$a0", "$a1", "$a2", "$a3",
"$t0", "$t1", "$t2", "$t3",
"$t4", "$t5", "$t6", "$t7",
"$s0", "$s1", "$s2", "$s3",
"$s4", "$s5", "$s6", "$s7",
"$t8", "$t9", "$k0", "$k1",
"$gp", "$sp", "$fp", "$ra"
};
const char *mips_fp_regis... | 13,046 |
https://github.com/CodeTech201-G/test/blob/master/src/Config/routes.js | Github Open Source | Open Source | BSL-1.0 | null | test | CodeTech201-G | JavaScript | Code | 44 | 132 | import Login from '../Pages/Login';
import NotFound from '../Pages/NotFound';
import home from '../Pages/Home';
const routes = [
{
path: '/login',
component: Login,
isPrivate: false,
},
{
path: '/',
component: home,
isPrivate: false,
},
{
path: '/*',
component: NotFound,
isPrivate: true,
}
];
... | 8,007 |
https://github.com/kevin-y/gallery/blob/master/src/main/java/org/keviny/gallery/rdb/model/Account.java | Github Open Source | Open Source | Apache-2.0 | null | gallery | kevin-y | Java | Code | 290 | 813 | package org.keviny.gallery.rdb.model;
/**
* Created by Kevin YOUNG on 2015/5/8.
*/
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@E... | 7,973 |
https://github.com/dansantander/ruby-slackbot/blob/master/spec/newsbot_spec.rb | Github Open Source | Open Source | MIT | 2,020 | ruby-slackbot | dansantander | Ruby | Code | 164 | 498 | # spec/newsbot_spec.rb
require_relative './lib/commands/topic'
describe Topic do
let(:topic) { Topic.new }
describe 'search_topic' do
it 'returns the value of the key wich if there is a match with the input value ' do
expect(topic.search_topic('world')).to eql('https://rss.app/feeds/aPyh7dgZjMnh7LeP.xm... | 29,181 |
https://github.com/JimmyHavenith/pfe-mudo/blob/master/app/Auth.php | Github Open Source | Open Source | MIT | null | pfe-mudo | JimmyHavenith | PHP | Code | 11 | 30 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Auth extends Model
{
}
| 40,379 |
https://github.com/huayre/AppPanaderia/blob/master/public/js/data_table_config.js | Github Open Source | Open Source | MIT | null | AppPanaderia | huayre | JavaScript | Code | 9 | 65 | $(function(){
$('#MyTable').DataTable({
"language": {
"url": "https://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Spanish.json",
},
});
});
| 36,115 |
https://github.com/Bitwise-01/DataStructures/blob/master/Week 10/car/car/Car.cpp | Github Open Source | Open Source | MIT | 2,020 | DataStructures | Bitwise-01 | C++ | Code | 98 | 237 | #include "Car.h"
Car::Car(int carYear, std::string carMake) {
// preventing bad state
if (carYear > 0) {
year = carYear;
}
else {
year = 2001;
}
if (carMake != "" && carMake != " ") {
make = carMake;
}
else {
make = "Ferrari";
}
speed = 0;
}
int Car::getYear() {
return year;
}
int Car::getSpeed... | 22,602 |
https://github.com/Berger-and-Molland/xxe-autofix-tool/blob/master/XXE-autofix/spotbugs/spotbugsTestCases/src/java/ghIssues/issue463/Issue463.java | Github Open Source | Open Source | MIT | null | xxe-autofix-tool | Berger-and-Molland | Java | Code | 74 | 245 | package ghIssues.issue463;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
/**
* @see <a href="https://github.com/spotbugs/spotbugs/issues/463">GitHub issue</a>
*/
public class Issue463 {
private String value;
String getValue() {
return value;
}
@CanIgnoreReturnValue
Str... | 24,079 |
https://github.com/MarcoIeni/release-plz/blob/master/crates/release_plz_core/src/release.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | release-plz | MarcoIeni | Rust | Code | 354 | 1,175 | use std::path::PathBuf;
use anyhow::Context;
use cargo_metadata::Package;
use crates_index::Index;
use git_cmd::Repo;
use tracing::{info, instrument};
use url::Url;
use crate::{
cargo::{is_published, run_cargo, wait_until_published},
publishable_packages,
release_order::release_order,
};
#[derive(Debug)]... | 3,236 |
https://github.com/YamenJalamneh/Students-Training/blob/master/app/Http/Livewire/Users/Index.php | Github Open Source | Open Source | MIT | null | Students-Training | YamenJalamneh | PHP | Code | 34 | 173 | <?php
namespace App\Http\Livewire\Users;
use App\Models\User;
use Livewire\Component;
use Livewire\WithPagination;
class Index extends Component
{
use WithPagination;
protected $paginationTheme = 'bootstrap';
public function render()
{
$students=User::where('role','student')->count();
... | 76 |
https://github.com/azeemhassni/envalid/blob/master/src/Rules/Number.php | Github Open Source | Open Source | MIT | 2,020 | envalid | azeemhassni | PHP | Code | 63 | 166 | <?php
namespace azi\Rules;
use azi\Arguments;
use azi\Rules\Contracts\RuleInterface;
/**
* Class Number
*
* @package azi\Rules
*/
class Number implements RuleInterface
{
/**
* @param $field
* @param $value
* @param Arguments $args
* @return mixed
*/
public function validate($fi... | 17,397 |
https://github.com/Will9371/Character-Template/blob/master/Assets/Playcraft/Quality of Life/Lerp/_Remap/RemapToFloat.cs | Github Open Source | Open Source | MIT | 2,021 | Character-Template | Will9371 | C# | Code | 36 | 123 | using System;
using UnityEngine;
namespace Playcraft
{
[Serializable]
public class RemapToFloat
{
[SerializeField] Vector2 input;
[SerializeField] Vector2 output;
public float Remap(float value)
{
var percent = Mathf.InverseLerp(input.x, input.y, value);
... | 45,712 |
https://github.com/LunarWatcher/rainbow/blob/master/plugin/rainbow_main.vim | Github Open Source | Open Source | Apache-2.0 | null | rainbow | LunarWatcher | null | Spoken | 1,186 | 4,663 | " Copyright 2013 LuoChen (luochen1990@gmail.com). Licensed under the Apache License 2.0.
if exists('s:rainbow_loaded')
finish
endif
if !exists('g:rainbow_list')
let g:rainbow_blacklist = ["nerdtree", "startify"]
elseif exists('g:rainbow_list') && exists('g:rainbow_blacklist')
echoerr "Dunno what you're t... | 13,683 |
https://github.com/DonTsipa/fsd_study/blob/master/app/blocks/develop/roomcard/roomcard__slider.js | Github Open Source | Open Source | MIT | null | fsd_study | DonTsipa | JavaScript | Code | 204 | 691 | const sliders = document.querySelectorAll('.roomcard__slider');
sliders.forEach((slider) => {
const buttons = slider.querySelectorAll('.roomcard__paginationButton')
const slides = slider.querySelector('.roomcard__images')
buttons[0].classList.add('roomcard__paginationButton_active')
buttons.forEach((button, ind... | 26,388 |
https://github.com/chenggongchina/unity_study/blob/master/BehaviorTreeTest/Assets/Behavior Designer Formations/Scripts/Tasks/Skirmisher.cs | Github Open Source | Open Source | MIT | 2,022 | unity_study | chenggongchina | C# | Code | 233 | 704 | using UnityEngine;
using System.Collections.Generic;
using BehaviorDesigner.Runtime.Tasks;
using Tooltip = BehaviorDesigner.Runtime.Tasks.TooltipAttribute;
using HelpURL = BehaviorDesigner.Runtime.Tasks.HelpURLAttribute;
namespace BehaviorDesigner.Runtime.Formations.Tasks
{
[TaskCategory("Formations")]
[TaskD... | 46,348 |
https://github.com/wiraqutra/photrackjp/blob/master/trac/upgrades/db8.py | Github Open Source | Open Source | BSD-3-Clause | 2,017 | photrackjp | wiraqutra | Python | Code | 86 | 216 | import time
d = {'now':time.time()}
sql = [
#-- Separate between due and completed time for milestones.
"""CREATE TEMPORARY TABLE milestone_old AS SELECT * FROM milestone;""",
"""DROP TABLE milestone;""",
"""CREATE TABLE milestone (
name text PRIMARY KEY,
due integer, -- Due da... | 46,942 |
https://github.com/mengshalitsofi/family-rewards/blob/master/family-rewards-frontend/src/action.js | Github Open Source | Open Source | MIT | null | family-rewards | mengshalitsofi | JavaScript | Code | 57 | 221 | class Action {
constructor(action){
this.timestamp = action.timestamp
this.id = action.id
this.priceId = action.price_id
}
createElement() {
const li = document.createElement("li")
li.id = "li_" + this.id;
const ts = document.createElement("span")
ts.... | 46,785 |
https://github.com/vebdeveloper97/tune/blob/master/modules/api/migrations/m210501_113159_create_post_table.php | Github Open Source | Open Source | BSD-3-Clause | null | tune | vebdeveloper97 | PHP | Code | 118 | 468 | <?php
use yii\db\Migration;
/**
* Handles the creation of table `{{%post}}`.
* Has foreign keys to the tables:
*
* - `{{%user}}`
*/
class m210501_113159_create_post_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('{{%post}}', [
... | 25,072 |
https://github.com/yvettemuki/TypeFlow/blob/master/src/main/scala/com/github/notyy/typeflow/editor/Diff.scala | Github Open Source | Open Source | MIT | 2,022 | TypeFlow | yvettemuki | Scala | Code | 100 | 423 | package com.github.notyy.typeflow.editor
import com.github.notyy.typeflow.util.PlantUMLUtil
import com.typesafe.scalalogging.Logger
object Diff {
private val logger = Logger(Diff.getClass)
private val lsep: String = System.lineSeparator()
//TODO should be a Try
def execute(thisPlantUML: String, targetPlantU... | 33,370 |
https://github.com/bgalloway1/enroll/blob/master/script/ivl_tax_cover_letter_notice.rb | Github Open Source | Open Source | Unlicense, MIT | 2,020 | enroll | bgalloway1 | Ruby | Code | 96 | 433 | # frozen_string_literal: true
# rails runner script/ivl_tax_cover_letter_notice.rb, Example: rails runner script/ivl_tax_cover_letter_notice.rb -e production
begin
person = Person.all_consumer_roles.first
consumer_role = person.consumer_role
event_name = 'ivl_tax_cover_letter_notice'
event_kind = ApplicationEv... | 38,846 |
https://github.com/jeremy-vondee/Pie-CSS/blob/master/src/misc/_borders.scss | Github Open Source | Open Source | MIT | 2,021 | Pie-CSS | jeremy-vondee | SCSS | Code | 284 | 1,758 | .bor,
.border {
border-color: rgb(160, 160, 160);
}
.bor-left,
.border-left {
border: none;
border-left-color: rgb(160, 160, 160);
}
.bor-right,
.border-right {
border: none;
border-right-color: rgb(160, 160, 160);
}
.bor-top,
.border-top {
border-top-color: rgb(160, 160, 160);
}
.bor-bottom,
.border-bottom {... | 2,447 |
https://github.com/ravitejasc/compose-icons/blob/master/simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Jupyter.kt | Github Open Source | Open Source | MIT | 2,022 | compose-icons | ravitejasc | Kotlin | Code | 267 | 1,343 | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
impor... | 15,837 |
https://github.com/Strilanc/honeycomb_threshold/blob/master/src/probability_util_test.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | honeycomb_threshold | Strilanc | Python | Code | 441 | 1,845 | import math
from typing import Union
import numpy as np
import pytest
from probability_util import binary_search, log_binomial, log_factorial, least_squares_output_range, least_squares_slope_range, \
binary_intercept, least_squares_through_point
@pytest.mark.parametrize(
"arg,result",
{
0: 0,
... | 8,646 |
https://github.com/alerdenisov/OrionUO/blob/master/OrionUO/Wisp/WispPacketReader.h | Github Open Source | Open Source | MIT | 2,021 | OrionUO | alerdenisov | C | Code | 59 | 188 | // MIT License
#ifndef WISP_PR_H
#define WISP_PR_H
namespace Wisp
{
class CPacketReader : public Wisp::CDataReader
{
int MaxPacketStackSize = 5;
public:
CPacketReader();
virtual ~CPacketReader();
void Read(class CConnection *connection);
virtual int GetPacketSize(const vector<uint8_t> &packet,... | 21,886 |
https://github.com/hnxylc8818/StudentOnlineClient/blob/master/src/main/java/com/stuonline/UpdatePasswordActivity.java | Github Open Source | Open Source | Apache-2.0 | null | StudentOnlineClient | hnxylc8818 | Java | Code | 180 | 934 | package com.stuonline;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import com.alibaba.fastjson.TypeReference;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.http.RequestParams;
import com.lidroid.xutils.http.ResponseInfo;
import com.lidroid.xutils.view.annotation.ViewI... | 29,509 |
https://github.com/pratikpparikh/flutter_dynamic_widget/blob/master/lib/src/generated/classes/drawer_header.dart | Github Open Source | Open Source | MIT | 2,022 | flutter_dynamic_widget | pratikpparikh | Dart | Code | 116 | 280 | import '../base.dart';
class DrawerHeaderBase extends BaseWidget {
DrawerHeaderBase();
factory DrawerHeaderBase.fromJson(Map<String, dynamic> data) {
return DrawerHeaderBase();
}
@override
String get description => r"""
The top-most region of a material design drawer. The header's [child]... | 36,975 |
https://github.com/hilmysyarif/mahpasarv2/blob/master/app/Http/Controllers/Seller/ProductController.php | Github Open Source | Open Source | MIT | null | mahpasarv2 | hilmysyarif | PHP | Code | 333 | 1,188 | <?php
namespace App\Http\Controllers\Seller;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Model\ProductModel;
use App\Model\CategoryModel;
class ProductController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*... | 391 |
https://github.com/Niko191292/UdemyTF_Template/blob/master/Chapter4_NN/Chapter4_1_SingleLayerPerceptron/LogicOrPreceptron.py | Github Open Source | Open Source | MIT | null | UdemyTF_Template | Niko191292 | Python | Code | 244 | 783 | from typing import Tuple
import numpy as np
from numpy.core.fromnumeric import size
def get_dataset() -> Tuple[np.ndarray, np.ndarray]:
"""OR-Function dataset"""
x = np.array([[0, 0], [1, 0], [0, 1], [1, 1]]) # Input in das OR-Gatter
y = np.array([[0], [1], [1], [1]]) # Ergebnis eines OR-Gatters
ret... | 39,090 |
https://github.com/Siketyan/HookLab/blob/master/HookLab/Models/Notification.cs | Github Open Source | Open Source | Beerware | 2,019 | HookLab | Siketyan | C# | Code | 91 | 224 | using System;
using HookLab.Providers;
using Microsoft.AspNetCore.Http;
namespace HookLab.Models
{
public class Notification
{
public string Title { get; set; }
public string Content { get; set; }
public string Header { get; set; }
public string Sender { get; set; }
publ... | 42,395 |
https://github.com/sguazt/olio/blob/master/webapp/rails/trunk/vendor/plugins/rspec/lib/spec/example/configuration.rb | Github Open Source | Open Source | ECL-2.0, Apache-2.0, MIT | 2,021 | olio | sguazt | Ruby | Code | 741 | 1,869 | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 3,507 |
https://github.com/JieyangChen7/zfp/blob/master/cfp/include/cfparray1d.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | zfp | JieyangChen7 | C | Code | 539 | 2,139 | #ifndef CFP_ARRAY_1D
#define CFP_ARRAY_1D
#include <stddef.h>
#include "zfp.h"
typedef struct {
void* object;
} cfp_array1d;
typedef struct {
cfp_array1d array;
size_t x;
} cfp_ref1d;
typedef struct {
cfp_ref1d reference;
} cfp_ptr1d;
typedef struct {
cfp_array1d array;
size_t x;
} cfp_iter1d;
typedef... | 25,349 |
https://github.com/DanielLazarov/test_me-windows_phone_ui/blob/master/test_me-windows_phone_ui/test_me-windows_phone_ui/pages/browseTestsPage.xaml.cs | Github Open Source | Open Source | Apache-2.0 | null | test_me-windows_phone_ui | DanielLazarov | C# | Code | 302 | 1,151 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Cont... | 22,342 |
https://github.com/TommyTeaVee/LushMoods/blob/master/app/src/main/java/com/android/ui/loadSettings/LoadSettingsView.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | LushMoods | TommyTeaVee | Kotlin | Code | 369 | 1,331 | package com.android.ui.loadSettings
import android.media.MediaPlayer
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.res.ResourcesCompat
import androidx.fragment.app.Fragment
import androidx.lifecycl... | 32,622 |
https://github.com/navisyscz/mailer/blob/master/publish.sh | Github Open Source | Open Source | MIT | 2,022 | mailer | navisyscz | Shell | Code | 13 | 31 | #!/usr/bin/env bash
git push --follow-tags origin master
yarn build
npm publish --access public
| 36,363 |
https://github.com/MysterionRise/fonda/blob/master/src/main/java/com/epam/fonda/tools/impl/RNASeQC.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | fonda | MysterionRise | Java | Code | 734 | 2,668 | /*
* Copyright 2017-2021 Sanofi and EPAM Systems, Inc. (https://www.epam.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
*
* ... | 16,980 |
https://github.com/StavrosBizelis/NetworkDistributedDeferredShading/blob/master/Include/Common/SceneControl/LightSceneNode.h | Github Open Source | Open Source | MIT | null | NetworkDistributedDeferredShading | StavrosBizelis | C | Code | 191 | 610 | #pragma once
#include "Common/SceneControl/SceneNode.h"
namespace SceneControl
{
/// Abstract Light Class - dont use it as it is. Inherit from it and implement a light mesh
class LightSceneNode :
public SceneNode
{
protected:
// attenuation values
float m_constantAtt;
float m_linearAtt;
float m_quadraticA... | 43,267 |
https://github.com/jairocollante/sr/blob/master/webproject/taller2/carga_ini_v2_ok.py | Github Open Source | Open Source | MIT | null | sr | jairocollante | Python | Code | 953 | 4,177 | # -*- coding: utf-8 -*-
"""Taller-2-v1.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1LDZEszxVKFQpYykSMeJi7HkMEp6Kmi0z
"""
# Commented out IPython magic to ensure Python compatibility.
from time import time
tiempo_inicial = time()
import os
im... | 39,489 |
https://github.com/j-schumann/vrok-lib/blob/master/src/Service/Email.php | Github Open Source | Open Source | MIT | 2,016 | vrok-lib | j-schumann | PHP | Code | 615 | 1,548 | <?php
/**
* @copyright (c) 2014-16, Vrok
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
* @author Jakob Schumann <schumann@vrok.de>
*/
namespace Vrok\Service;
use Vrok\Mail\Message;
use Zend\Mail\Message as ZendMessage;
use Zend\Mail\Transport\TransportInterface;
use Zend\... | 37,973 |
https://github.com/13kAhmed/hbcur/blob/master/ANDROID APP/app/src/main/java/com/app/hbcu/activity/LoginWithPhoneActivity.kt | Github Open Source | Open Source | MIT | null | hbcur | 13kAhmed | Kotlin | Code | 390 | 1,822 | package com.app.hbcu.activity
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.*
import com.app.hbcu.R
import com.app.hbcu.model.user.UserLoginResponse
import com.app.hbcu.retrofit.ApiClient
import com.app.hbcu.retrofit.ApiInterface
import co... | 40,601 |
https://github.com/CloudifySource/Cloudify-iTests/blob/master/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/azure/LeakingCloudServiceTest.java | Github Open Source | Open Source | Apache-2.0 | null | Cloudify-iTests | CloudifySource | Java | Code | 238 | 890 | package org.cloudifysource.quality.iTests.test.cli.cloudify.cloud.azure;
import org.cloudifysource.esc.driver.provisioning.azure.client.MicrosoftAzureRestClient;
import org.cloudifysource.esc.driver.provisioning.azure.model.HostedService;
import org.cloudifysource.esc.driver.provisioning.azure.model.HostedServices;
im... | 32,118 |
https://github.com/powellblyth/flowers/blob/master/app/Nova/Filters/FilterByYear.php | Github Open Source | Open Source | MIT | null | flowers | powellblyth | PHP | Code | 161 | 516 | <?php
namespace App\Nova\Filters;
use App\Models\MembershipPurchase;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Http\Request;
use Laravel\Nova\Filters\Filter;
class FilterByYear extends Filter
{
/**
* The filter's component.
*
* @var string
*/
public $componen... | 8,120 |
https://github.com/mbrannstrom/pkts/blob/master/pkts-sip/src/main/java/io/pkts/packet/sip/impl/SipInitialLine.java | Github Open Source | Open Source | MIT | 2,022 | pkts | mbrannstrom | Java | Code | 755 | 1,700 | /**
*
*/
package io.pkts.packet.sip.impl;
import io.pkts.buffer.Buffer;
import io.pkts.buffer.ByteNotFoundException;
import io.pkts.packet.sip.SipMessage;
import io.pkts.packet.sip.SipParseException;
import java.io.IOException;
/**
* @author jonas@jonasborjesson.com
*/
public abstract class SipInitialLine exten... | 37,602 |
https://github.com/joshis1/C_Programming/blob/master/resources/Wireshark/WiresharkDissectorFoo/tools/rdps.py | Github Open Source | Open Source | MIT | 2,020 | C_Programming | joshis1 | Python | Code | 343 | 1,055 | #!/usr/bin/env python
#
# rdps.py
#
# Wireshark - Network traffic analyzer
# By Gerald Combs <gerald@wireshark.org>
# Copyright 1998 Gerald Combs
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
'''\
takes the file listed as the first argument and creates the file listed
as the second argument. It takes a PostScript fi... | 20,705 |
https://github.com/Scripta-Qumranica-Electronica/SQE_API_Connectors/blob/master/libs/go/api_catalogue.go | Github Open Source | Open Source | MIT | null | SQE_API_Connectors | Scripta-Qumranica-Electronica | Go | Code | 2,124 | 6,795 | /*
* SQE API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: v1
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package qumranica_api_connector
import (
_context "context"
_ioutil "io/ioutil"
_nethttp "net/... | 38,361 |
https://github.com/ArtemGordinsky/exercism/blob/master/rust/proverb/src/lib.rs | Github Open Source | Open Source | Unlicense | null | exercism | ArtemGordinsky | Rust | Code | 79 | 220 | #![crate_type = "lib"]
#![crate_name = "proverb"]
use std::string::String;
pub fn build_proverb(input: Vec<&str>) -> String {
let mut proverb = vec![];
for (i, item) in input.iter().enumerate() {
let next = input.get(i + 1);
if next.is_some() {
proverb.push(format!("For want of a... | 43,260 |
https://github.com/GarfieldGitHub/IFlySDK/blob/master/IFlySDK.podspec | Github Open Source | Open Source | MIT | null | IFlySDK | GarfieldGitHub | Ruby | Code | 76 | 311 | Pod::Spec.new do |s|
s.name = "IFlySDK"
s.version = "1.0"
s.summary = "IFlySDK."
s.description = "IFlySDK client on youshaqi"
s.homepage = "https://ai.baidu.com/docs#/ASR-iOS-SDK/dea30f2b"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "tangjj@1391.... | 11,542 |
https://github.com/cerealcommas/mashgraphics/blob/master/fabfile/utils.py | Github Open Source | Open Source | MIT | null | mashgraphics | cerealcommas | Python | Code | 53 | 153 | #!/usr/bin/env python
from fabric.api import prompt
def confirm(message):
"""
Verify a users intentions.
"""
answer = prompt(message, default="Not at all")
if answer.lower() not in ('y', 'yes', 'buzz off', 'screw you'):
exit()
def replace_in_file(filename, find, replace):
with open(f... | 42,456 |
https://github.com/tangxiangpi/InterStellar/blob/master/interstellar-lib/src/main/java/org/qiyi/video/mcg/arch/remote/IRemoteManagerRetriever.java | Github Open Source | Open Source | BSD-3-Clause | 2,021 | InterStellar | tangxiangpi | Java | Code | 43 | 180 | package org.qiyi.video.mcg.arch.remote;
import android.app.Activity;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.view.View;
/**
* Created by wangallen on 2018/4/17.
*/
public interface IRemoteManagerRetriever {
IRemoteMa... | 15,925 |
https://github.com/sudoforge/dotfiles/blob/master/nvim/.config/nvim/ftplugin/gitrebase.lua | Github Open Source | Open Source | Apache-2.0 | 2,021 | dotfiles | sudoforge | Lua | Code | 58 | 126 | -- Circuit break if this plugin has already completed
if vim.b.did_local_ftplugin == true then
return 0
end
-- Create an augroup for this module
vim.api.nvim_define_augroup("GitRebase", true)
-- Delete the buffer upon losing visibility
-- This exists to support terminating the buffer so that GIT_EDITOR completes
vim... | 19,821 |
https://github.com/fossabot/components/blob/master/src/directives/index.js | Github Open Source | Open Source | Apache-2.0 | null | components | fossabot | JavaScript | Code | 14 | 35 | import ClickOutside from '@/directives/ClickOutside'
export const plugin = {
ClickOutside
}
export default plugin
| 31,796 |
https://github.com/feronikanm/gojahit-client/blob/master/app/src/main/java/com/fero/skripsi/ui/pelanggan/auth/LoginPelangganActivity.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | gojahit-client | feronikanm | Kotlin | Code | 238 | 1,595 | package com.fero.skripsi.ui.pelanggan.auth
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import androidx.lifecycle.ViewModelProvider
import com.fero.skripsi.databinding.ActivityLoginPelangganBinding
import com.fero.skripsi.ui.main.Hom... | 5,434 |
https://github.com/MikeEckels/MicroAPI/blob/master/MicroAPI/pic18Pins.h | Github Open Source | Open Source | MIT | null | MicroAPI | MikeEckels | C | Code | 93 | 162 | // pic18Pins.h
// Eckels
//
// Macros and bitmasks specifically for pic18 Microcontroller
// BitMasks defining pins are specific to the expansion board.
// Pins reference the numbers on the headers.Four extra bits are
// appended onto these pins masks, defining the port they are associated with.
// Examples can be see... | 18,539 |
https://github.com/salazarwalter/hipatia/blob/master/default/app/models/modulo.php | Github Open Source | Open Source | BSD-3-Clause | null | hipatia | salazarwalter | PHP | Code | 255 | 1,071 | <?php
/**
*
*/
class Modulo extends ActiveRecord
{
public static $PRIVADO =array("N"=>"NO","S"=>"SI");
public function initialize()
{
$this->validates_presence_of("modulo",array("message"=>"Debe Ingresar el nombre del Módulo"));
$this->validates_presence_of("menu",array("message"=... | 26,204 |
https://github.com/sergiorb/askkit/blob/master/users/migrations/0005_notification.py | Github Open Source | Open Source | Apache-2.0 | null | askkit | sergiorb | Python | Code | 68 | 326 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0004_profile_token'),
]
operations = [
migrations.CreateModel(
name='Notification',
fields=... | 39,986 |
https://github.com/Aerieves/A2Angular/blob/master/src/app/activity.ts | Github Open Source | Open Source | MIT | null | A2Angular | Aerieves | TypeScript | Code | 36 | 94 | export class Activity {;
activityId: number;
activityDescription: string;
creationDate: Date;
constructor(obj?: any) {
this.creationDate = obj && obj.creationDate || null;
this.activityId = obj && obj.activityId || null;
this.activityDescription = obj && obj.activityDescription ... | 34,566 |
https://github.com/paulvancoller/A3S/blob/master/tests/za.co.grindrodbank.a3s.tests/Fakes/HttpResponseStreamWriterFactoryFake.cs | Github Open Source | Open Source | MIT | null | A3S | paulvancoller | C# | Code | 59 | 187 | /**
* *************************************************
* Copyright (c) 2019, Grindrod Bank Limited
* License MIT: https://opensource.org/licenses/MIT
* **************************************************
*/
using System;
using System.IO;
using System.Text;
using Microsoft.AspNetCore.Mvc.Infrastructure;
using Micr... | 400 |
https://github.com/zezulka/GpioDebuggerUi/blob/master/src/main/java/gui/userdata/I2cRequests.java | Github Open Source | Open Source | MIT | null | GpioDebuggerUi | zezulka | Java | Code | 50 | 189 | package gui.userdata;
import gui.userdata.xstream.AbstractXStreamListWrapper;
import gui.userdata.xstream.XmlUserdata;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
public final class I2cRequests
extends AbstractXStreamListWrapper<I2cRequestValueObject> {
public I2cRequests(List... | 8,034 |
https://github.com/Polumathes/twiliohoho/blob/master/src/public/app/controllers/userList.controller.js | Github Open Source | Open Source | MIT | 2,018 | twiliohoho | Polumathes | JavaScript | Code | 405 | 1,708 | "use strict";
app.controller("userListController", function(
$scope,
$state,
$interval,
$stateParams,
RESTService
) {
$scope.selectedUser = null;
RESTService.getUsers().then(
function(response) {
$scope.users = response.data.users;
},
function(err) {
console.log("Error to retrieve... | 35,721 |
https://github.com/Pixelaid-Team/Pixelaid/blob/master/views/kudos.hbs | Github Open Source | Open Source | MIT | 2,018 | Pixelaid | Pixelaid-Team | null | Spoken | 149 | 834 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Pixelaid | Kudos</title>
<link href="https://fonts.googleapis.com/css?family=Nova+Square|VT323" rel="stylesheet">
<link rel="stylesheet" href="./stylesheets/style.css">
<link rel="stylesheet" href="./stylesheets/canvas.css">
<link rel... | 7,283 |
https://github.com/AtlanticR/bio.utilities/blob/master/inst/sql/src/sql/BANK/GROUNDFISH/TABLES/CFTMPFSRS_SAMPLED.sql | Github Open Source | Open Source | MIT | null | bio.utilities | AtlanticR | SQL | Code | 85 | 352 | --------------------------------------------------------
-- DDL for Table CFTMPFSRS_SAMPLED
--------------------------------------------------------
CREATE TABLE "GROUNDFISH"."CFTMPFSRS_SAMPLED"
( "ID" NUMBER(10,0),
"TECHNICIAN" VARCHAR2(30 BYTE),
"TECHNICIAN_CODES" NUMBER(5,0)
) PCTFREE 10 PCTUSED 40 IN... | 42,643 |
https://github.com/wanfuxiong/find-friends-android/blob/master/app/src/main/java/com/wanfuxiong/findfriends/util/MyWebSocket.java | Github Open Source | Open Source | MIT | null | find-friends-android | wanfuxiong | Java | Code | 136 | 587 | package com.wanfuxiong.findfriends.util;
import android.util.Log;
import com.alibaba.fastjson.JSON;
import com.wanfuxiong.findfriends.pojo.Message;
import org.greenrobot.eventbus.EventBus;
import org.java_websocket.client.WebSocketClient;
import org.java_websocket.handshake.ServerHandshake;
import java.io.Serializa... | 23,906 |
https://github.com/angeal185/python-flask-material-design-cms/blob/master/cms/templates/Admin/manage-users.py | Github Open Source | Open Source | MIT | null | python-flask-material-design-cms | angeal185 | Python | Code | 89 | 424 | {%- extends "Admin/base.py" -%}
{%- block pagewrapper -%}
<div id="page-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Manage Users</h1>
<p>
<a href="/admin/users/add/"><button class="btn... | 4,926 |
https://github.com/varunanaidu/siap_metrotv/blob/master/application/views/pages/edit_order_page.php | Github Open Source | Open Source | MIT | null | siap_metrotv | varunanaidu | PHP | Code | 810 | 4,125 | <?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!-- Header -->
<div class="header bg-primary pb-6">
<div class="container-fluid">
<div class="header-body">
<div class="row align-items-center py-4">
<div class="col-lg-6 col-7">
<nav aria-label="breadcrumb" class="d-none d-md-inli... | 46,997 |
https://github.com/robertatakenaka/publicationstatsapi/blob/master/setup.py | Github Open Source | Open Source | BSD-2-Clause | null | publicationstatsapi | robertatakenaka | Python | Code | 60 | 274 | #!/usr/bin/env python
from setuptools import setup, find_packages
install_requires = [
'thriftpy==0.3.1',
'requests>=2.11.1'
]
tests_require = []
setup(
name="publicationstatsapi",
version="1.1.0",
description="Library that implements the endpoints of the Access Stats API",
author="SciELO",
... | 8,604 |
https://github.com/fantom-foundation-private/foodtech/blob/master/FantomWallet/src/views/Settings/AddWallet/index.js | Github Open Source | Open Source | MIT | 2,022 | foodtech | fantom-foundation-private | JavaScript | Code | 121 | 531 | import React, { Component } from 'react';
import {
Text,
View,
TouchableOpacity,
Image,
SafeAreaView,
StatusBar
} from 'react-native';
import styles from './styles';
import { CrossIcon, RightArrowIcon } from '../../../images';
import { NavigationService,routes } from "~/navigation/helpers";
const AddWallet... | 29,373 |
https://github.com/shahmanash/gbifse-ghost/blob/master/default.hbs | Github Open Source | Open Source | MIT | 2,017 | gbifse-ghost | shahmanash | null | Spoken | 240 | 875 | <!DOCTYPE html>
<html lang="en">
<head>
{{! Document Settings }}
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
{{! Page Meta }}
<title>{{meta_title}}{{#is "post, page"}} — {{@blog.title}}{{/is}}</title>
<meta name="description" content="{{meta_description}}" /... | 16,788 |
https://github.com/vegemouse/ac_theme/blob/master/scss/abstracts/_fonts.scss | Github Open Source | Open Source | MIT | null | ac_theme | vegemouse | SCSS | Code | 5 | 33 | // Google Fonts
@import url('https://fonts.googleapis.com/css?family=Average|Fjalla+One');
| 31,277 |
https://github.com/gebhartn/motive.js/blob/master/src/controllers/user.ts | Github Open Source | Open Source | MIT | null | motive.js | gebhartn | TypeScript | Code | 234 | 580 | import { PrismaClient, User } from '@prisma/client'
import { Request, Response } from 'express'
import * as bcrypt from 'bcryptjs'
import { wrap } from '../utils/middlewares'
const prisma = new PrismaClient()
export const UserController = {
//! =================================================
//! Register a new... | 36,041 |
https://github.com/fossabot/AMQP/blob/master/src/Model/Basic/Publish.php | Github Open Source | Open Source | MIT | null | AMQP | fossabot | PHP | Code | 241 | 615 | <?php
declare(strict_types = 1);
namespace Innmind\AMQP\Model\Basic;
final class Publish
{
private $message;
private $exchange = '';
private $routingKey = '';
private $mandatory = false;
private $immediate = false;
public function __construct(Message $message)
{
$this->message = $... | 40,558 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.