hexsha stringlengths 40 40 | size int64 5 1.05M | ext stringclasses 98
values | lang stringclasses 21
values | max_stars_repo_path stringlengths 3 945 | max_stars_repo_name stringlengths 4 118 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 368k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 945 | max_issues_repo_name stringlengths 4 118 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 134k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 945 | max_forks_repo_name stringlengths 4 135 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 1.05M | avg_line_length float64 1 1.03M | max_line_length int64 2 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
07400126f265a84bfe7f3ebd9c5ddc72fffda1cf | 1,577 | css | CSS | app/styles/main.css | patelpriyam203/FE_Bloctime | 1b95ad1092a1d7b4fe7a7191dc69b03624881f9e | [
"Apache-2.0"
] | null | null | null | app/styles/main.css | patelpriyam203/FE_Bloctime | 1b95ad1092a1d7b4fe7a7191dc69b03624881f9e | [
"Apache-2.0"
] | null | null | null | app/styles/main.css | patelpriyam203/FE_Bloctime | 1b95ad1092a1d7b4fe7a7191dc69b03624881f9e | [
"Apache-2.0"
] | null | null | null | * {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
background-color: #FFFFFF;
font-family: 'Lato', sans-serif;
font-weight: 300;
font-size: 25px;
text-rendering: optimizeLegibility;
}
.row {
max-width: 1140px;
margin: 0 auto;
width: auto;
height: auto;
position: absolute;
to... | 17.32967 | 37 | 0.629042 |
c4fef3501d1e79063d25b709e2a8c0c0df6017e9 | 289 | cpp | C++ | Dataset/Leetcode/test/112/795.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/112/795.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/112/795.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
bool XXX(TreeNode* root, int sum) {
if(root==nullptr) return false;//空树
sum-=root->val;
if(root->left==nullptr&&root->right==nullptr) //叶节点
return sum==0;
return XXX(root->left,sum)||XXX(root->right,sum);
}
};
| 24.083333 | 59 | 0.557093 |
3f48d92a98b96e432692991fb3cf0b0ccf030344 | 589 | rb | Ruby | tools/generate_ticket_for_webpage.rb | nhoriguchi/ticket_cli | 040bab5d5f5549a62c42c579b9154f8770c2269d | [
"Apache-2.0"
] | null | null | null | tools/generate_ticket_for_webpage.rb | nhoriguchi/ticket_cli | 040bab5d5f5549a62c42c579b9154f8770c2269d | [
"Apache-2.0"
] | null | null | null | tools/generate_ticket_for_webpage.rb | nhoriguchi/ticket_cli | 040bab5d5f5549a62c42c579b9154f8770c2269d | [
"Apache-2.0"
] | null | null | null | require 'open-uri'
require 'nokogiri'
class GenerateTicketForWebsite
def self.run url
page_content = open(url).read
doc = Nokogiri::HTML(page_content)
return doc.at_css('title').text
end
end
url = ARGV[0]
proj = ARGV[1]
title = GenerateTicketForWebsite.run url
raise if proj == ""
template = "
---
Pr... | 15.5 | 48 | 0.689304 |
2c5d7fde761a09651f0f0812d45e53fdce8f2ceb | 8,257 | py | Python | discovery-provider/alembic/versions/5bcbe23f6c70_user_track_collection_mat_views.py | ppak10/audius-protocol | 4dd9df787cbd39f86c5623ce7899b3855b7b314e | [
"Apache-2.0"
] | null | null | null | discovery-provider/alembic/versions/5bcbe23f6c70_user_track_collection_mat_views.py | ppak10/audius-protocol | 4dd9df787cbd39f86c5623ce7899b3855b7b314e | [
"Apache-2.0"
] | null | null | null | discovery-provider/alembic/versions/5bcbe23f6c70_user_track_collection_mat_views.py | ppak10/audius-protocol | 4dd9df787cbd39f86c5623ce7899b3855b7b314e | [
"Apache-2.0"
] | null | null | null | """user-track-collection-mat-views
Revision ID: 5bcbe23f6c70
Revises: 2ff46a8686fa
Create Date: 2021-04-12 20:01:40.395480
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '5bcbe23f6c70'
down_revision = '2ff46a8686fa'
branch_labels = None
depends_on = None
def... | 34.548117 | 87 | 0.569335 |
316b73efd0d17de0c413c387c8038cfd237dbdba | 780 | ps1 | PowerShell | day-08/part-1.ps1 | martinkonopka/AdventOfCode2019 | a6b799b07881ecd48f1a4cf295c897ddd057c884 | [
"MIT"
] | 1 | 2019-12-01T19:07:36.000Z | 2019-12-01T19:07:36.000Z | day-08/part-1.ps1 | martinkonopka/AdventOfCode2019 | a6b799b07881ecd48f1a4cf295c897ddd057c884 | [
"MIT"
] | null | null | null | day-08/part-1.ps1 | martinkonopka/AdventOfCode2019 | a6b799b07881ecd48f1a4cf295c897ddd057c884 | [
"MIT"
] | null | null | null | param(
[string]$InputPath = ".\input.txt"
, [int]$LayerWidth = 25
, [int]$LayerHeight = 6
)
Get-Content -Path $InputPath `
| % { $_.ToCharArray() } `
| Group-Object -Property { [Math]::Floor($script:counter++ / ($script:LayerWidth * $script:LayerHeight)) } `
| % { [string]::new($_.Group) } `
| Sort-Object { (... | 43.333333 | 153 | 0.657692 |
c9e159f59a305214df41231cca74fb1287d0364a | 960 | tsx | TypeScript | src/layouts/index.tsx | dnjstrom/dnjstrom | 275f145292a1b9f49ad2b473d204d324fb22af6e | [
"MIT"
] | null | null | null | src/layouts/index.tsx | dnjstrom/dnjstrom | 275f145292a1b9f49ad2b473d204d324fb22af6e | [
"MIT"
] | null | null | null | src/layouts/index.tsx | dnjstrom/dnjstrom | 275f145292a1b9f49ad2b473d204d324fb22af6e | [
"MIT"
] | null | null | null | import React from "react"
import Helmet from "react-helmet"
import styled from "styled-components"
import "./main.css"
const App = styled.main`
max-width: 700px;
padding: 1.5rem;
margin: 0 auto;
a {
color: #2d9cdb;
text-decoration: none;
word-break: break-word;
&:hover {
text-decorati... | 19.2 | 117 | 0.607292 |
39fdbe3f49cdd69fe13872bd21b6441657a6f1c4 | 436 | swift | Swift | Shifu/Classes/Extensions/ArrayExtension.swift | horidream/shifu | 1764db27dbefb4d1bd061ca1702a4ddf2382489e | [
"MIT"
] | null | null | null | Shifu/Classes/Extensions/ArrayExtension.swift | horidream/shifu | 1764db27dbefb4d1bd061ca1702a4ddf2382489e | [
"MIT"
] | null | null | null | Shifu/Classes/Extensions/ArrayExtension.swift | horidream/shifu | 1764db27dbefb4d1bd061ca1702a4ddf2382489e | [
"MIT"
] | null | null | null | //
// ArrayExtension.swift
// aSong
//
// Created by Baoli Zhai on 2019/4/19.
// Copyright © 2019 Baoli Zhai. All rights reserved.
//
import Foundation
extension Array {
public func get( _ index: Int, _ defaultValue:Element? = nil) -> Element? {
var index = index;
if index < 0{
in... | 20.761905 | 79 | 0.584862 |
af1a32fba33d48fe9bf2f576a88c2ce3de8a8008 | 207 | py | Python | django_rest_auth_embedded/tests/urls/__init__.py | Volkova-Natalia/django_rest_auth_embedded | 43fe1d23f59332a7794365348989599cde44af6e | [
"MIT"
] | null | null | null | django_rest_auth_embedded/tests/urls/__init__.py | Volkova-Natalia/django_rest_auth_embedded | 43fe1d23f59332a7794365348989599cde44af6e | [
"MIT"
] | 1 | 2021-02-26T16:56:31.000Z | 2021-03-24T09:47:43.000Z | django_rest_auth_embedded/tests/urls/__init__.py | Volkova-Natalia/django_rest_auth_embedded | 43fe1d23f59332a7794365348989599cde44af6e | [
"MIT"
] | null | null | null | from .base import BaseUrlsTestCase
from .registration import RegistrationUrlsTestCase
from .login import LoginUrlsTestCase
from .logout import LogoutUrlsTestCase
from .auth_info import AuthInfoUrlsTestCase
| 29.571429 | 50 | 0.874396 |
05cadb5253d9cd0e235a0b2d81ea938d88b7e606 | 345 | sql | SQL | migrations/2021-05-29-114935_get_gurls/up.sql | ojhermann/guardian_backend | fa89dd96c02620fc06cd51886e47bddcd9493065 | [
"MIT"
] | null | null | null | migrations/2021-05-29-114935_get_gurls/up.sql | ojhermann/guardian_backend | fa89dd96c02620fc06cd51886e47bddcd9493065 | [
"MIT"
] | 2 | 2021-05-24T14:07:28.000Z | 2021-07-12T13:18:58.000Z | migrations/2021-05-29-114935_get_gurls/up.sql | ojhermann/guardian_backend | fa89dd96c02620fc06cd51886e47bddcd9493065 | [
"MIT"
] | null | null | null | -- Your SQL goes here
CREATE OR REPLACE FUNCTION public.get_gurls(start_id INTEGER, end_id INTEGER)
RETURNS SETOF gurl_response
AS $$
BEGIN
RETURN QUERY
SELECT g.id,
g.url,
g.created_at,
g.liked
FROM public.gurls as g
WHERE g.id >= start_id
AND g.id < end_id;
E... | 20.294118 | 77 | 0.631884 |
5bc9dffa7688d6b3635972a3e0a854f49dc37227 | 295 | css | CSS | src/components/Container/Container.css | mustang-roy/pokedex | 612e96ae3d7729a1d6ce532196863f0a6f8b74d0 | [
"Apache-2.0"
] | 1 | 2020-10-22T17:17:25.000Z | 2020-10-22T17:17:25.000Z | src/components/Container/Container.css | mustang-roy/pokedex | 612e96ae3d7729a1d6ce532196863f0a6f8b74d0 | [
"Apache-2.0"
] | 24 | 2020-10-21T15:03:15.000Z | 2020-10-24T10:58:47.000Z | src/components/Container/Container.css | mustang-roy/pokedex | 612e96ae3d7729a1d6ce532196863f0a6f8b74d0 | [
"Apache-2.0"
] | null | null | null | .container {
background-color: #dc0a2d;
display: flex;
flex-direction: column;
height: 100vh;
justify-content: space-between;
width: 100vw;
}
.main {
display: flex;
justify-content: center;
}
.main-screen {
display: flex;
}
.search-list {
display: flex;
width: 500px;
}
| 12.826087 | 33 | 0.657627 |
25bcc4d6cec2a0e178619bb9ddbe25ffe2ff4cca | 2,084 | cs | C# | GrimSearch.FileUtils/CharacterFiles/CharacterInfo.cs | hallgeirl/gd-item-search | 76359496f4a5e5a8b982bfe4254e8bc68e33ad58 | [
"MIT"
] | 7 | 2018-07-10T07:56:59.000Z | 2020-08-30T18:05:54.000Z | GrimSearch.FileUtils/CharacterFiles/CharacterInfo.cs | hallgeirl/gd-item-search | 76359496f4a5e5a8b982bfe4254e8bc68e33ad58 | [
"MIT"
] | 15 | 2018-05-21T06:00:38.000Z | 2019-07-26T11:54:24.000Z | GrimSearch.FileUtils/CharacterFiles/CharacterInfo.cs | hallgeirl/gd-item-search | 76359496f4a5e5a8b982bfe4254e8bc68e33ad58 | [
"MIT"
] | 1 | 2020-12-06T17:30:57.000Z | 2020-12-06T17:30:57.000Z | using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace GrimSearch.Utils.CharacterFiles
{
public class CharacterInfo
{
public string texture;
public UInt32 money;
public UInt32 lootMode;
public UInt32 currentTribute;
public byte isI... | 29.771429 | 70 | 0.535509 |
a42a57d4d019c7e7e06fd3be83c07d9408767579 | 4,255 | php | PHP | language_examples/delphix_curl.php | adeelmalik78/dxapikit | 11714f3f9ad0abb7308dd3aa4dad981b05f6ba74 | [
"Apache-2.0"
] | 2 | 2017-09-21T15:36:16.000Z | 2020-09-15T03:28:55.000Z | language_examples/delphix_curl.php | adeelmalik78/dxapikit | 11714f3f9ad0abb7308dd3aa4dad981b05f6ba74 | [
"Apache-2.0"
] | 1 | 2017-08-21T15:45:24.000Z | 2017-08-21T15:47:26.000Z | language_examples/delphix_curl.php | adeelmalik78/dxapikit | 11714f3f9ad0abb7308dd3aa4dad981b05f6ba74 | [
"Apache-2.0"
] | 6 | 2018-03-05T14:32:00.000Z | 2021-07-14T13:13:16.000Z | <?php
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// dis... | 34.04 | 117 | 0.572738 |
da8fac638c3b077538919c0dd0f21c4adccf4320 | 14,702 | php | PHP | templates/fonts/MiddleSaxonyText.php | briceparent/Shopsailors | c9a0a968521266fa073a4e444392d79d6d706d38 | [
"MIT"
] | 3 | 2017-11-24T02:29:53.000Z | 2021-02-12T07:35:35.000Z | templates/fonts/MiddleSaxonyText.php | briceparent/Shopsailors | c9a0a968521266fa073a4e444392d79d6d706d38 | [
"MIT"
] | null | null | null | templates/fonts/MiddleSaxonyText.php | briceparent/Shopsailors | c9a0a968521266fa073a4e444392d79d6d706d38 | [
"MIT"
] | 1 | 2017-03-19T18:57:08.000Z | 2017-03-19T18:57:08.000Z | <?php
/**
* Copyright Shopsailors (2009)
*
* briceparent@free.fr
*
* This file is a part of a computer program whose purpose is to create,
* administrate and use a shop over the web.
*
* This software is governed by the CeCILL license under French law and
* abiding by the rules of distribution of free... | 15.251037 | 76 | 0.311794 |
c94db5f4c87d78b4b9a522bff8f703e3f04794cf | 1,554 | ts | TypeScript | projects/helpers/pipes/test/br-phone.pipe.spec.ts | gdoor-sistemas/sak | eec871a6d9fd5ecebfa7d26d41747f975e6577b6 | [
"MIT"
] | null | null | null | projects/helpers/pipes/test/br-phone.pipe.spec.ts | gdoor-sistemas/sak | eec871a6d9fd5ecebfa7d26d41747f975e6577b6 | [
"MIT"
] | null | null | null | projects/helpers/pipes/test/br-phone.pipe.spec.ts | gdoor-sistemas/sak | eec871a6d9fd5ecebfa7d26d41747f975e6577b6 | [
"MIT"
] | null | null | null | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { Component } from '@angular/core';
import { BrPhonePipe } from '../src/br-phone.pipe';
import { Format } from '@gdoor/helpers';
@Component({template: `<span [innerHTML]="value | brPhone:link"></span>`})
class TestHostComponent {
public value:... | 29.884615 | 87 | 0.667954 |
b2e439f950ee724e944b2b3fbf4083c3ab6f422f | 1,182 | css | CSS | css/unslider.css | DemonHe/Exercise | 5da3cc4106dc5401ec5eb7f9650d535001628b11 | [
"MIT"
] | null | null | null | css/unslider.css | DemonHe/Exercise | 5da3cc4106dc5401ec5eb7f9650d535001628b11 | [
"MIT"
] | null | null | null | css/unslider.css | DemonHe/Exercise | 5da3cc4106dc5401ec5eb7f9650d535001628b11 | [
"MIT"
] | null | null | null | /**
* Here's where everything gets included. You don't need
* to change anything here, and doing so might break
* stuff. Here be dragons and all that.
*/
/**
* Default variables
*
* While these can be set with JavaScript, it's probably
* better and faster to just set them here, compile to
* CSS a... | 18.184615 | 58 | 0.656514 |
dac0b07369d14ae193a6ca370fa1b347567a6c50 | 292 | rb | Ruby | ObjectOriented/Objective.rb | GuilhermeHaetinger/RISKyBusiness | a7fcbc6396bd65eaee03c8b4decc79b1ae20ae6d | [
"MIT"
] | null | null | null | ObjectOriented/Objective.rb | GuilhermeHaetinger/RISKyBusiness | a7fcbc6396bd65eaee03c8b4decc79b1ae20ae6d | [
"MIT"
] | null | null | null | ObjectOriented/Objective.rb | GuilhermeHaetinger/RISKyBusiness | a7fcbc6396bd65eaee03c8b4decc79b1ae20ae6d | [
"MIT"
] | null | null | null | $LOAD_PATH << '.'
require 'singleton'
require 'Objective'
require './modules/Interface'
class Objective
include Interface
def initialize(name)
@name = name
end
def isObjectiveFulfilled(playerId)
Objective.api_not_implemented(self)
end
def getName()
@name
end
end | 14.6 | 39 | 0.712329 |
37d3677e91f4368f082649c4480f289f3be8c85f | 580 | dart | Dart | lib/src/client/client_options.dart | QiXi/game_socket | 17d975d05962be5e65f78d0d3977701ef673d8a1 | [
"MIT"
] | 8 | 2021-07-08T14:34:08.000Z | 2022-02-05T03:21:29.000Z | lib/src/client/client_options.dart | QiXi/game_socket | 17d975d05962be5e65f78d0d3977701ef673d8a1 | [
"MIT"
] | 1 | 2022-02-16T20:14:15.000Z | 2022-02-16T20:14:15.000Z | lib/src/client/client_options.dart | QiXi/game_socket | 17d975d05962be5e65f78d0d3977701ef673d8a1 | [
"MIT"
] | 4 | 2021-07-16T07:04:46.000Z | 2022-02-11T17:28:00.000Z | import '../../protocol.dart';
class ClientOptions {
final List<Schema?> _schemas = List.filled(256, null);
bool supportRawData;
int reconnectInterval = 1;
int maxReconnectAttempts = 3;
Duration? connectTimeout = Duration(seconds: 20);
bool disconnectOnHighPing = true;
int limitHighPing = 500;
ClientOp... | 23.2 | 56 | 0.693103 |
7e5e0f763a67b55ffbcb79e1588c9e20b08d2c84 | 1,184 | rb | Ruby | lib/adapters/wallaby/active_record/model_service_provider/validator.rb | wallaby-rails/wallaby-activerecord | 128eabf40182882122f41504823c32ccebbc0f24 | [
"MIT"
] | 2 | 2020-02-06T16:33:17.000Z | 2022-02-01T22:02:52.000Z | lib/adapters/wallaby/active_record/model_service_provider/validator.rb | wallaby-rails/wallaby-activerecord | 128eabf40182882122f41504823c32ccebbc0f24 | [
"MIT"
] | 1 | 2020-04-09T11:35:54.000Z | 2020-04-09T11:36:23.000Z | lib/adapters/wallaby/active_record/model_service_provider/validator.rb | wallaby-rails/wallaby-activerecord | 128eabf40182882122f41504823c32ccebbc0f24 | [
"MIT"
] | 1 | 2020-02-06T16:33:19.000Z | 2020-02-06T16:33:19.000Z | # frozen_string_literal: true
module Wallaby
class ActiveRecord
class ModelServiceProvider
# Validate values for record create / update
class Validator
# @param model_decorator [Wallaby::ModelDecorator]
def initialize(model_decorator)
@model_decorator = model_decorator
... | 29.6 | 75 | 0.613176 |
45b54bbd9600917663b68af3a511dd2a5dd1390f | 11,380 | py | Python | buildscripts/linter/git.py | MartinNeupauer/mongo | 6cc2dfe7edd312b8596355edef454e15988e350e | [
"Apache-2.0"
] | 1 | 2019-05-15T03:41:50.000Z | 2019-05-15T03:41:50.000Z | buildscripts/linter/git.py | MartinNeupauer/mongo | 6cc2dfe7edd312b8596355edef454e15988e350e | [
"Apache-2.0"
] | 2 | 2021-03-26T00:01:11.000Z | 2021-03-26T00:02:19.000Z | buildscripts/linter/git.py | MartinNeupauer/mongo | 6cc2dfe7edd312b8596355edef454e15988e350e | [
"Apache-2.0"
] | null | null | null | """Git Utility functions."""
from __future__ import absolute_import
from __future__ import print_function
import itertools
import os
import re
import subprocess
from typing import Any, Callable, List, Tuple
from buildscripts import moduleconfig
from buildscripts.resmokelib.utils import globstar
# Path to the modules... | 35.899054 | 99 | 0.618366 |
fdfb72295221706f4f4b5c3ffce58eb9ca67efa5 | 13,606 | ps1 | PowerShell | WS2012R2/lisa/setupscripts/StartVM.ps1 | leifei87/lis-test | 5fa93406f372902d8025efcd94442b9e3af8a1a4 | [
"Apache-2.0"
] | 1 | 2021-07-31T11:16:07.000Z | 2021-07-31T11:16:07.000Z | WS2012R2/lisa/setupscripts/StartVM.ps1 | leifei87/lis-test | 5fa93406f372902d8025efcd94442b9e3af8a1a4 | [
"Apache-2.0"
] | null | null | null | WS2012R2/lisa/setupscripts/StartVM.ps1 | leifei87/lis-test | 5fa93406f372902d8025efcd94442b9e3af8a1a4 | [
"Apache-2.0"
] | 1 | 2018-04-28T07:00:36.000Z | 2018-04-28T07:00:36.000Z | #####################################################################
#
# Linux on Hyper-V and Azure Test Code, ver. 1.0.0
# Copyright (c) Microsoft Corporation
#
# All rights reserved.
# Licensed under the Apache License, Version 2.0 (the ""License"");
# you may not use this file except in compliance with the License.... | 26.419417 | 160 | 0.619947 |
84b86d3228a6f3d3fa037cd59a6387faac75e130 | 400 | kt | Kotlin | compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.kt | jdemeulenaere/kotlin | bbdbc2896bc780b96ce43d9707d3735635e7dbad | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.kt | jdemeulenaere/kotlin | bbdbc2896bc780b96ce43d9707d3735635e7dbad | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | compiler/testData/diagnostics/tests/resolve/overloadConflicts/genericClash.kt | jdemeulenaere/kotlin | bbdbc2896bc780b96ce43d9707d3735635e7dbad | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | // !DIAGNOSTICS: -UNUSED_PARAMETER
interface A<T> {
fun foo(x: T)
fun foo(x: String)
fun <E> baz(x: E, y: String)
fun <E> baz(x: String, y: E)
}
fun <E> baz(x: E, y: String) {}
fun <E> baz(x: String, y: E) {}
fun bar(x: A<String>) {
x.<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!>("")
x.<!CANNOT_C... | 20 | 49 | 0.5575 |
79dce13cf4e07d3080acfa107dfa926203ec3761 | 81 | php | PHP | app/Admin/bootstrap.php | 17634062908/laravel-web | c573a9b17cfb24790e146db53ad58f2f4142733c | [
"MIT"
] | null | null | null | app/Admin/bootstrap.php | 17634062908/laravel-web | c573a9b17cfb24790e146db53ad58f2f4142733c | [
"MIT"
] | 1 | 2021-02-02T19:14:37.000Z | 2021-02-02T19:14:37.000Z | app/Admin/bootstrap.php | weiqiqaq/vue-admin | 811a6677f6b1688086c77d6b48c3980e7642d254 | [
"MIT"
] | null | null | null | <?php
//Admin::css(["https://unpkg.com/element-ui/lib/theme-chalk/index.css"]);
| 20.25 | 73 | 0.666667 |
dd7db3ac24fa956a04612db4a2291a7ca196b8c1 | 2,003 | java | Java | kmeans-computation/src/main/java/com/cloudera/oryx/kmeans/computation/evaluate/WeightVectorsFn.java | snavjot/oryx | 770b3c29289c622195c818522ee82ebffcdcda69 | [
"BSD-3-Clause"
] | 1 | 2019-06-27T11:34:14.000Z | 2019-06-27T11:34:14.000Z | kmeans-computation/src/main/java/com/cloudera/oryx/kmeans/computation/evaluate/WeightVectorsFn.java | BenediktSchackenberg/oryx | f358cdbb700f39c9870d84b2ad0e8ea2edc98692 | [
"BSD-3-Clause"
] | null | null | null | kmeans-computation/src/main/java/com/cloudera/oryx/kmeans/computation/evaluate/WeightVectorsFn.java | BenediktSchackenberg/oryx | f358cdbb700f39c9870d84b2ad0e8ea2edc98692 | [
"BSD-3-Clause"
] | 1 | 2021-03-24T12:40:39.000Z | 2021-03-24T12:40:39.000Z | /*
* Copyright (c) 2013, Cloudera, Inc. All Rights Reserved.
*
* Cloudera, Inc. licenses this file to you 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/LICE... | 31.296875 | 113 | 0.724913 |
436e821a1cb5e3c09f6b78d1f70f55ff4861e61d | 382 | ts | TypeScript | deno_runtime/_global/deno_event.ts | guobin211/design-patterns | 33f4e9661b91bc0e163b9a8e42a3321f88053956 | [
"MIT"
] | null | null | null | deno_runtime/_global/deno_event.ts | guobin211/design-patterns | 33f4e9661b91bc0e163b9a8e42a3321f88053956 | [
"MIT"
] | null | null | null | deno_runtime/_global/deno_event.ts | guobin211/design-patterns | 33f4e9661b91bc0e163b9a8e42a3321f88053956 | [
"MIT"
] | 1 | 2020-07-21T09:56:34.000Z | 2020-07-21T09:56:34.000Z | class ReactivePerson implements EventListenerObject {
constructor(public name = "jack", public age = 22) {}
handleEvent(evt: Event): void | Promise<void> {
return new Promise((resolve) => {
console.log(evt);
resolve();
});
}
}
const jack = new ReactivePerson();
addEventListener("click", (e)... | 22.470588 | 55 | 0.657068 |
033137ef34982aecff103599add74082c233e9e7 | 111 | sql | SQL | 09. Exam Prep/02. Exam - 24 April 2017/03. Update/Update.sql | pirocorp/Databases-Basics-MS-SQL-Server | 2049499b2b8f7d011be79abc0b326486258e4d0a | [
"MIT"
] | null | null | null | 09. Exam Prep/02. Exam - 24 April 2017/03. Update/Update.sql | pirocorp/Databases-Basics-MS-SQL-Server | 2049499b2b8f7d011be79abc0b326486258e4d0a | [
"MIT"
] | null | null | null | 09. Exam Prep/02. Exam - 24 April 2017/03. Update/Update.sql | pirocorp/Databases-Basics-MS-SQL-Server | 2049499b2b8f7d011be79abc0b326486258e4d0a | [
"MIT"
] | null | null | null | SELECT *
FROM Jobs
UPDATE Jobs
SET MechanicId = 3, [Status] = 'In Progress'
WHERE [Status] = 'Pending' | 15.857143 | 47 | 0.648649 |
1215a1e867eed82e8ef6ce9ed1073f13cb2b1188 | 412 | swift | Swift | Carthage/Checkouts/Spatial/SpatialExample/view/main/card/content/middle/MiddleContent.swift | eonist/ProgressIndicator | 9ea95314f497527b893a6b5449db7781d47ecf30 | [
"MIT"
] | 3 | 2018-11-25T12:00:44.000Z | 2022-01-23T04:40:26.000Z | Carthage/Checkouts/Spatial/SpatialExample/view/main/card/content/middle/MiddleContent.swift | eonist/ProgressIndicator | 9ea95314f497527b893a6b5449db7781d47ecf30 | [
"MIT"
] | null | null | null | Carthage/Checkouts/Spatial/SpatialExample/view/main/card/content/middle/MiddleContent.swift | eonist/ProgressIndicator | 9ea95314f497527b893a6b5449db7781d47ecf30 | [
"MIT"
] | null | null | null | import UIKit
import Spatial
class MiddleContent: UIView {
lazy var itemViews: [ItemView] = createItemViews()
override init(frame: CGRect) {
super.init(frame: frame)
self.backgroundColor = .yellow
_ = itemViews
}
/**
* Boilerplate
*/
@available(*, unavailable)
required init?(... | 21.684211 | 57 | 0.648058 |
0bd8045f2dbcf54caf11bd55a7c98fc6696f4f23 | 8,958 | cpp | C++ | TestRequirements/src/TestRequirements.cpp | parakhnr/TestHarness | d74c3e4b7f47f73dcc0e2dbfc152c05a7d8a22c7 | [
"MIT"
] | null | null | null | TestRequirements/src/TestRequirements.cpp | parakhnr/TestHarness | d74c3e4b7f47f73dcc0e2dbfc152c05a7d8a22c7 | [
"MIT"
] | null | null | null | TestRequirements/src/TestRequirements.cpp | parakhnr/TestHarness | d74c3e4b7f47f73dcc0e2dbfc152c05a7d8a22c7 | [
"MIT"
] | null | null | null |
/////////////////////////////////////////////////////////////////////////////
// TestRequirements.cpp - Tests for the all the requirements in project 3 //
// ----------------------------------------------------------------------- //
// Language: Visual C++, Visual Studio 2017 ... | 26.581602 | 133 | 0.598683 |
5bc1845522ba697bb87f6d07d928ccb900534e32 | 4,377 | css | CSS | packages/vue/src/main.css | LayreBoi/Client | 9d9ebc85bbfd25d35c7467c3a7efa901b16d8959 | [
"WTFPL"
] | null | null | null | packages/vue/src/main.css | LayreBoi/Client | 9d9ebc85bbfd25d35c7467c3a7efa901b16d8959 | [
"WTFPL"
] | null | null | null | packages/vue/src/main.css | LayreBoi/Client | 9d9ebc85bbfd25d35c7467c3a7efa901b16d8959 | [
"WTFPL"
] | null | null | null | .theme-dark {
--color-primary-300: 211,167,255; /* #D3A7FF */ /* Main Color */
--color-primary-400: 180,105,255; /* #B469FF */
--color-primary-500: 129,43,215; /* #812BD7 */
--color-background-200: 1,4,9; /* #010409 */
--color-background-300: 15,19,25; /... | 40.906542 | 82 | 0.495316 |
85cc5d0bed101ad52bd521e4dac794d6b0141881 | 1,842 | sql | SQL | Sql/Schema/Stored Procedures/Articles/Article_Add.sql | Datasilk/Saber-Collector | e66b4cc489f5a649d62489b2a38155fe1822505c | [
"Apache-2.0"
] | null | null | null | Sql/Schema/Stored Procedures/Articles/Article_Add.sql | Datasilk/Saber-Collector | e66b4cc489f5a649d62489b2a38155fe1822505c | [
"Apache-2.0"
] | null | null | null | Sql/Schema/Stored Procedures/Articles/Article_Add.sql | Datasilk/Saber-Collector | e66b4cc489f5a649d62489b2a38155fe1822505c | [
"Apache-2.0"
] | null | null | null | IF EXISTS (SELECT * FROM sys.objects WHERE type = 'P' AND name = 'Article_Add')
DROP PROCEDURE [dbo].[Article_Add]
GO
CREATE PROCEDURE [dbo].[Article_Add]
@feedId int = 0,
@subjects int = 0,
@subjectId int = 0,
@score smallint = 0,
@domain nvarchar(50),
@url nvarchar(250),
@title nvarchar(250),
@summary nvarc... | 38.375 | 201 | 0.724756 |
c6db7ea08d8a0eb8166bf1d9880432fa2239fd18 | 302 | lua | Lua | plugins/global_access_control/config.lua | lh83mail/ngr | 20821b956955714608b89bfce355299e11377800 | [
"Apache-2.0"
] | 97 | 2019-11-09T02:01:15.000Z | 2021-11-08T10:09:49.000Z | plugins/global_access_control/config.lua | lh83mail/ngr | 20821b956955714608b89bfce355299e11377800 | [
"Apache-2.0"
] | 21 | 2019-08-03T13:06:14.000Z | 2020-02-04T16:22:26.000Z | plugins/global_access_control/config.lua | lh83mail/ngr | 20821b956955714608b89bfce355299e11377800 | [
"Apache-2.0"
] | 33 | 2019-11-29T10:41:42.000Z | 2022-01-07T09:33:12.000Z | ---
--- 配置
--- Created by Go Go Easy Team.
--- DateTime: 2018/5/16 下午6:04
---
local _M = {}
_M.name = "global_access_control"
_M.small_error_types = {
-- see error_utils
gac = {
type_service_not_found = "ctl.no_service",
type_host_error = "ctl.host_error"
}
}
return _M
| 15.1 | 50 | 0.609272 |
e3df31fd6b1f7881ae450faabcc5eb46d3b87199 | 635 | swift | Swift | ChLayout/Extensions/UITableView+ChLayount.swift | sionyx/ChLayout | a24a93918141f9475edb0e0efada5b44e74e3f30 | [
"MIT"
] | 5 | 2020-02-04T15:39:13.000Z | 2021-04-17T20:32:51.000Z | ChLayout/Extensions/UITableView+ChLayount.swift | sionyx/ChLayout | a24a93918141f9475edb0e0efada5b44e74e3f30 | [
"MIT"
] | null | null | null | ChLayout/Extensions/UITableView+ChLayount.swift | sionyx/ChLayout | a24a93918141f9475edb0e0efada5b44e74e3f30 | [
"MIT"
] | null | null | null | //
// UITableView+ChLayount.swift
// ChLayout
//
// Created by Вадим Балашов on 05.05.2020.
// Copyright © 2020 sionyx.ru. All rights reserved.
//
import UIKit
extension UITableView {
public func allowsSelection(_ allowsSelection: Bool) -> Self {
self.allowsSelection = allowsSelection
return s... | 23.518519 | 90 | 0.680315 |
0d7ac01aeb02f6debe83a757cad5f57a6a7ebb1e | 735 | rb | Ruby | wsapi-with-faraday/rally-post-apikey-auth.rb | CustomAgile/ruby-rest-apps | a54668824376da7dd6893e4fa30f24f345a7e32f | [
"MIT"
] | null | null | null | wsapi-with-faraday/rally-post-apikey-auth.rb | CustomAgile/ruby-rest-apps | a54668824376da7dd6893e4fa30f24f345a7e32f | [
"MIT"
] | null | null | null | wsapi-with-faraday/rally-post-apikey-auth.rb | CustomAgile/ruby-rest-apps | a54668824376da7dd6893e4fa30f24f345a7e32f | [
"MIT"
] | null | null | null | require 'faraday'
require 'yaml'
require 'base64'
require 'json'
require 'pp'
config = YAML.load_file('./configs/rally.yml')
apikey = config['apikey']
workspace = config['workspace'].to_s
conn = Faraday.new(:url => 'https://rally1.rallydev.com/slm/webservice/v2.0') do |faraday|
faraday.request :url_encoded ... | 25.344828 | 90 | 0.67483 |
da47f2cd93c320630c68087103820467e57002f8 | 1,375 | php | PHP | src/Message/RecurringProfileAddResponse.php | joomdonation/omnipay-payflow-extended | 97464fa53bbaf945d16cbe5320d9530e6522b8fa | [
"MIT"
] | 1 | 2016-10-09T04:01:36.000Z | 2016-10-09T04:01:36.000Z | src/Message/RecurringProfileAddResponse.php | joomdonation/omnipay-payflow-extended | 97464fa53bbaf945d16cbe5320d9530e6522b8fa | [
"MIT"
] | null | null | null | src/Message/RecurringProfileAddResponse.php | joomdonation/omnipay-payflow-extended | 97464fa53bbaf945d16cbe5320d9530e6522b8fa | [
"MIT"
] | 6 | 2016-05-06T04:29:29.000Z | 2021-09-16T17:05:55.000Z | <?php
namespace Omnipay\PayflowExtended\Message;
use Omnipay\Payflow\Message\Response;
class RecurringProfileAddResponse extends Response
{
// this is the optional sale or authorization transaction
public function isSuccessful()
{
return isset($this->data['TRXR... | 30.555556 | 87 | 0.573818 |
da87d386ad5baaf0e09ebbdb6c81fb7672f1658b | 6,037 | php | PHP | Server/htdocs/AppController/commands_RSM/shared/classLbxConcepts_init.php | Redsauce/RSM-Core | 9fd0c674dc81d3d344a3d86e11c782f8b2d2f34c | [
"MIT"
] | 2 | 2017-12-14T17:21:58.000Z | 2020-09-27T09:31:13.000Z | Server/htdocs/AppController/commands_RSM/shared/classLbxConcepts_init.php | Redsauce/RSM-Core | 9fd0c674dc81d3d344a3d86e11c782f8b2d2f34c | [
"MIT"
] | null | null | null | Server/htdocs/AppController/commands_RSM/shared/classLbxConcepts_init.php | Redsauce/RSM-Core | 9fd0c674dc81d3d344a3d86e11c782f8b2d2f34c | [
"MIT"
] | null | null | null | <?php
// Database connection startup
require_once "../utilities/RSdatabase.php";
require_once "../utilities/RSMitemsManagement.php";
require_once "../utilities/RSMlistsManagement.php";
// definitions
$clientID = $GLOBALS['RS_POST']['clientID'];
$userID = $GLOBALS['RS_POST']['userID'];
$operationID = $GLOBALS['RS_POST'... | 59.772277 | 160 | 0.763956 |
23e0b37666294d49c13fc4ed06d6222ec1446fed | 1,093 | js | JavaScript | flow-admin/src/main/resources/static/assets/DeptTree.935e5a2c.js | hcxiaoliu/flow | 444a347e83e46708850f936cde89d279c5b376fb | [
"Apache-2.0"
] | null | null | null | flow-admin/src/main/resources/static/assets/DeptTree.935e5a2c.js | hcxiaoliu/flow | 444a347e83e46708850f936cde89d279c5b376fb | [
"Apache-2.0"
] | null | null | null | flow-admin/src/main/resources/static/assets/DeptTree.935e5a2c.js | hcxiaoliu/flow | 444a347e83e46708850f936cde89d279c5b376fb | [
"Apache-2.0"
] | null | null | null | import{_ as e}from"./Tree.vue_vue&type=style&index=0&lang.e8be757a.js";import{a as t}from"./system.79f5df33.js";import{k as r,r as a,I as s,K as n,o,n as i,q as l}from"./vendor.56d2c57f.js";import"./index.407e4786.js";import"./useContextMenu.553121b5.js";/* empty css */import"./useExpose.46777d04.js";var c... | 546.5 | 1,092 | 0.664227 |
964a5fb47c86e0aecd16630f65ac399191d273f5 | 614 | js | JavaScript | app/src/js/controllers/taskController.js | lightwish01/test-electron | 2fd7af23d48c458e0a90d85d36d90c7ae4d3d776 | [
"MIT"
] | null | null | null | app/src/js/controllers/taskController.js | lightwish01/test-electron | 2fd7af23d48c458e0a90d85d36d90c7ae4d3d776 | [
"MIT"
] | null | null | null | app/src/js/controllers/taskController.js | lightwish01/test-electron | 2fd7af23d48c458e0a90d85d36d90c7ae4d3d776 | [
"MIT"
] | null | null | null | 'use strict'
const db = require("../db/connection")
const taskModel = require("../db/tasks")
app.controller('taskController', function ($scope, $http, $timeout, $window) {
$scope.tasks = []
taskModel.createTable()
$scope.save = function(task) {
delete $scope.teste
taskModel.add({ task: t... | 21.928571 | 78 | 0.568404 |
bf85580bdedb5c99327c7d6556fa101680257790 | 5,986 | swift | Swift | DKMacLibrary/Classes/ExCalendars.swift | chorokichi/DKMacLibrary | d2eb4fb8b9c54f502d507d4dbebe10a06237e186 | [
"MIT"
] | null | null | null | DKMacLibrary/Classes/ExCalendars.swift | chorokichi/DKMacLibrary | d2eb4fb8b9c54f502d507d4dbebe10a06237e186 | [
"MIT"
] | null | null | null | DKMacLibrary/Classes/ExCalendars.swift | chorokichi/DKMacLibrary | d2eb4fb8b9c54f502d507d4dbebe10a06237e186 | [
"MIT"
] | null | null | null | //
// PTCalendars.swift
// PeopleTable
//
// Created by yuya on 2017/06/01.
// Copyright © 2017年 yuya. All rights reserved.
//
import Foundation
public protocol ExCalendarsProtocol {
associatedtype T
func getMarkedDay() -> RichDate<T>
func getFirstDay() -> RichDate<T>
func getLastDay() -> RichDate... | 32.010695 | 135 | 0.542432 |
df28c74a6c9312c1eaa17708998d4ec8aea4239d | 2,915 | rb | Ruby | app/models/copy_staging/serialize_work.rb | sciencehistory/scihist_digicoll | 2943d5eb5f261eae96ebe8c1253294bd4a8fefa2 | [
"Apache-2.0"
] | 4 | 2019-08-29T17:37:29.000Z | 2022-02-21T20:39:20.000Z | app/models/copy_staging/serialize_work.rb | sciencehistory/scihist_digicoll | 2943d5eb5f261eae96ebe8c1253294bd4a8fefa2 | [
"Apache-2.0"
] | 1,103 | 2018-11-28T18:53:17.000Z | 2022-03-31T15:13:27.000Z | app/models/copy_staging/serialize_work.rb | sciencehistory/scihist_digicoll | 2943d5eb5f261eae96ebe8c1253294bd4a8fefa2 | [
"Apache-2.0"
] | 2 | 2021-01-11T17:25:11.000Z | 2021-04-21T20:41:40.000Z | module CopyStaging
# Serializes a work as JSON, along with info on storage buckets files are stored in.
# Used by the scihist:copy_staging_work:serialize_work rake task, which is used by
# the `heroku:copy_data` rake task. This is normally run on a staging server.
#
# All of this is to copy works from staging... | 32.388889 | 127 | 0.678559 |
6d35fc89c330567a2d93dd7b41615be9841e62b1 | 2,287 | rs | Rust | proz_pooldance/src/resource.rs | maciejczyzewski/sem6 | a1ef556afef8c59b7148f0e6c2378ed0afc6910f | [
"MIT"
] | null | null | null | proz_pooldance/src/resource.rs | maciejczyzewski/sem6 | a1ef556afef8c59b7148f0e6c2378ed0afc6910f | [
"MIT"
] | 8 | 2021-06-08T21:07:23.000Z | 2022-03-12T00:20:10.000Z | proz_pooldance/src/resource.rs | maciejczyzewski/sem6 | a1ef556afef8c59b7148f0e6c2378ed0afc6910f | [
"MIT"
] | 1 | 2020-03-29T11:33:05.000Z | 2020-03-29T11:33:05.000Z | use crate::node::{broadcast, Message, Node};
use rand::Rng;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Resource {
pub code: String,
pub token: i32,
pub owner: i32,
pub status: String,
pub transfer_with: i32,
pub... | 25.988636 | 76 | 0.491911 |
2da9cd2bf4e50fba2ecf3ad663f87727a9e91bd1 | 145 | sql | SQL | Ren.CMS.Net/Source/Ren.CMS.Net-Modules/Ren.CMS.Net.Installer/InstallModule/Areas/Installer/Schema/nfcms_Permissionkeys.Table.sql | nfMalde/Ren.CMS.NET | 47173a06dee294dd4b17966b8b561f0b962f55e3 | [
"MIT"
] | null | null | null | Ren.CMS.Net/Source/Ren.CMS.Net-Modules/Ren.CMS.Net.Installer/InstallModule/Areas/Installer/Schema/nfcms_Permissionkeys.Table.sql | nfMalde/Ren.CMS.NET | 47173a06dee294dd4b17966b8b561f0b962f55e3 | [
"MIT"
] | null | null | null | Ren.CMS.Net/Source/Ren.CMS.Net-Modules/Ren.CMS.Net.Installer/InstallModule/Areas/Installer/Schema/nfcms_Permissionkeys.Table.sql | nfMalde/Ren.CMS.NET | 47173a06dee294dd4b17966b8b561f0b962f55e3 | [
"MIT"
] | null | null | null | CREATE TABLE ren_cms_Permissionkeys (
defaultVal VARCHAR (50) NOT NULL
, langLine VARCHAR (50) NOT NULL
, pkey VARCHAR (150) NOT NULL
)
| 24.166667 | 37 | 0.717241 |
cd726fc45f7d425ad7fa071af38093cc41c714cc | 965 | cs | C# | src/Web/Masa.Mc.Web.Admin/Store/NoticeState.cs | masastack/MASA.MC | 3b15e43a70b028e41a946bac767bed5d575b57c9 | [
"Apache-2.0"
] | null | null | null | src/Web/Masa.Mc.Web.Admin/Store/NoticeState.cs | masastack/MASA.MC | 3b15e43a70b028e41a946bac767bed5d575b57c9 | [
"Apache-2.0"
] | null | null | null | src/Web/Masa.Mc.Web.Admin/Store/NoticeState.cs | masastack/MASA.MC | 3b15e43a70b028e41a946bac767bed5d575b57c9 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) MASA Stack All rights reserved.
// Licensed under the Apache License. See LICENSE.txt in the project root for license information.
namespace Masa.Mc.Web.Admin.Store;
public class NoticeState
{
public bool IsRead => !Notices.Any(x => !x.IsRead);
public List<WebsiteMessageDto> Notices
{
... | 21.931818 | 98 | 0.568912 |
e2c5cc7c68696fcfd221d9ba74078c32e1c0b2ad | 2,311 | py | Python | scripts/filter_toptags.py | MTG/jamendo-dataset | 472a14524bc8f257c9ad921307180a80cc5fd1f3 | [
"Apache-2.0"
] | 2 | 2019-06-06T03:48:20.000Z | 2019-06-11T08:19:28.000Z | scripts/filter_toptags.py | MTG/jamendo-dataset | 472a14524bc8f257c9ad921307180a80cc5fd1f3 | [
"Apache-2.0"
] | 6 | 2019-05-15T13:20:21.000Z | 2019-06-06T17:06:02.000Z | scripts/filter_toptags.py | MTG/jamendo-dataset | 472a14524bc8f257c9ad921307180a80cc5fd1f3 | [
"Apache-2.0"
] | null | null | null | import argparse
import commons
import get_statistics
import util
def filter_tags(tracks, tags, tag_threshold, directory=None, tags_file=None):
if directory is not None:
util.mkdir_p(directory)
# TODO: refactor to properly handle and not disconnect category+tag
tags_merged = {}
tags_with_pref... | 39.169492 | 116 | 0.701428 |
e4636646189ee9a680737b2e169b49f579b29e60 | 2,414 | cc | C++ | hash.djb.native/binding.cc | bigeasy/hash | 48d2ca9f6dc9b37e1f5245e8849c230db01c4e68 | [
"MIT"
] | 10 | 2015-06-22T15:30:56.000Z | 2018-01-02T19:14:47.000Z | hash.djb.native/binding.cc | bigeasy/hash | 48d2ca9f6dc9b37e1f5245e8849c230db01c4e68 | [
"MIT"
] | 34 | 2015-05-12T21:29:46.000Z | 2022-02-07T06:27:24.000Z | hash.djb.native/binding.cc | bigeasy/hash | 48d2ca9f6dc9b37e1f5245e8849c230db01c4e68 | [
"MIT"
] | 1 | 2015-09-17T21:39:23.000Z | 2015-09-17T21:39:23.000Z | #include <node.h>
#include <node_buffer.h>
// #include <string_bytes.h>
#include <node_object_wrap.h>
#include <v8.h>
#include <stdio.h>
extern "C" {
typedef union {
void* buffer;
uint32_t number;
} hash_t;
extern hash_t hash_allocate (uint32_t seed);
extern void hash_free (hash_t hash);
extern int hash_block_... | 23.436893 | 94 | 0.6657 |
5fa3e3933f9d4c24b8d3df52b5e3a53fa44b3e6e | 1,644 | rb | Ruby | spec/support/lib/spec_shell.rb | sotownsend/plumbus | a608f4c637a9e519ea22f648267d3472a12997a7 | [
"MIT"
] | 1 | 2016-10-04T16:44:32.000Z | 2016-10-04T16:44:32.000Z | spec/support/lib/spec_shell.rb | sotownsend/plumbus | a608f4c637a9e519ea22f648267d3472a12997a7 | [
"MIT"
] | null | null | null | spec/support/lib/spec_shell.rb | sotownsend/plumbus | a608f4c637a9e519ea22f648267d3472a12997a7 | [
"MIT"
] | null | null | null | require 'open3'
class SpecShell
attr_accessor :stdout
attr_accessor :stderr
#Will execute right away
def initialize *args, timeout: 0.5
@timeout = timeout
@args = args
@stdout = []
@stderr = []
@exit_status = nil
@did_timeout = false
execute
end
def execute
Open3.popen3... | 18.266667 | 70 | 0.549878 |
e4049e064a6cfb9dbdf7cfbccf993857af77f8dc | 944 | cs | C# | C# OOP/Exams/CSharpOOPRetakeExam-18April2021/Easter/Repositories/EggRepository.cs | dimitar-yo-dimitrov/SoftUni-Software-Engineering | de1ea2871ec5b3853eaa1a93ccd0686d9dda0416 | [
"MIT"
] | null | null | null | C# OOP/Exams/CSharpOOPRetakeExam-18April2021/Easter/Repositories/EggRepository.cs | dimitar-yo-dimitrov/SoftUni-Software-Engineering | de1ea2871ec5b3853eaa1a93ccd0686d9dda0416 | [
"MIT"
] | null | null | null | C# OOP/Exams/CSharpOOPRetakeExam-18April2021/Easter/Repositories/EggRepository.cs | dimitar-yo-dimitrov/SoftUni-Software-Engineering | de1ea2871ec5b3853eaa1a93ccd0686d9dda0416 | [
"MIT"
] | null | null | null | using System.Collections.Generic;
using System.Linq;
using Easter.Models.Eggs.Contracts;
using Easter.Repositories.Contracts;
namespace Easter.Repositories
{
public class EggRepository : IRepository<IEgg>
{
private readonly List<IEgg> eggs;
public EggRepository()
{
this.eg... | 20.521739 | 70 | 0.525424 |
c4b421f980c2a384fcb3a9806084e3725979098a | 442 | cc | C++ | caffe2/opt/distributed_converter.cc | brooks-anderson/pytorch | dd928097938b6368fc7e2dc67721550d50ab08ea | [
"Intel"
] | 7 | 2021-05-29T16:31:51.000Z | 2022-02-21T18:52:25.000Z | caffe2/opt/distributed_converter.cc | stas00/pytorch | 6a085648d81ce88ff59d6d1438fdb3707a0d6fb7 | [
"Intel"
] | 1 | 2021-05-10T01:18:33.000Z | 2021-05-10T01:18:33.000Z | caffe2/opt/distributed_converter.cc | stas00/pytorch | 6a085648d81ce88ff59d6d1438fdb3707a0d6fb7 | [
"Intel"
] | 1 | 2021-12-26T23:20:06.000Z | 2021-12-26T23:20:06.000Z | #include "caffe2/opt/converter.h"
namespace caffe2 {
namespace {
using namespace nom;
using namespace nom::repr;
TRIVIAL_CONVERTER(Declare);
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
REGISTER_CONVERTER(Declare, DeclareConverter);
TRIVIAL_CONVERTER(Export);
// NOLINTNEXTLINE(cppcoreguidel... | 23.263158 | 69 | 0.807692 |
43a2eefd7eeb3f7070673487b70f2520d303ad30 | 39 | ts | TypeScript | app/@esri/calcite-ui-icons/js/caretSquareUp24F.d.ts | lizeidsness/minimalist | 57657f7b37d2251b95dafe92e1d3776301a3a1c0 | [
"Apache-2.0"
] | 3 | 2020-07-17T21:04:01.000Z | 2021-11-30T15:14:45.000Z | app/@esri/calcite-ui-icons/js/caretSquareUp24F.d.ts | lizeidsness/minimalist | 57657f7b37d2251b95dafe92e1d3776301a3a1c0 | [
"Apache-2.0"
] | 4 | 2020-04-16T19:24:25.000Z | 2021-11-29T20:15:32.000Z | app/@esri/calcite-ui-icons/js/caretSquareUp24F.d.ts | lizeidsness/minimalist | 57657f7b37d2251b95dafe92e1d3776301a3a1c0 | [
"Apache-2.0"
] | 5 | 2020-06-11T20:51:53.000Z | 2021-11-30T15:22:13.000Z | export const caretSquareUp24F: string;
| 19.5 | 38 | 0.846154 |
bdfeb0ceb81d3ab145ddc50a2fff9b6ca6bc29cf | 2,787 | swift | Swift | Mia/UI/WebView/WebViewModal.swift | fossabot/Mia | e67fd12abe1452eb2dafcfae3ec5609be413a3e3 | [
"MIT"
] | null | null | null | Mia/UI/WebView/WebViewModal.swift | fossabot/Mia | e67fd12abe1452eb2dafcfae3ec5609be413a3e3 | [
"MIT"
] | null | null | null | Mia/UI/WebView/WebViewModal.swift | fossabot/Mia | e67fd12abe1452eb2dafcfae3ec5609be413a3e3 | [
"MIT"
] | null | null | null | import UIKit
public class WebViewModal: UINavigationController {
public enum Theme {
case light
case dark
case color(UIColor, UIColor) // tint, buttons
}
weak var webViewDelegate: UIWebViewDelegate? = nil
public convenience init(urlString: String) {
var urlString = u... | 31.314607 | 176 | 0.627915 |
ef4695cf17e6cd7d56bf62e7540bbfcd315358de | 88 | php | PHP | resources/views/home.blade.php | shiivaa68/shop-admin | 107505b614dc8024451bcbe8e2889db54e525ad9 | [
"MIT"
] | null | null | null | resources/views/home.blade.php | shiivaa68/shop-admin | 107505b614dc8024451bcbe8e2889db54e525ad9 | [
"MIT"
] | null | null | null | resources/views/home.blade.php | shiivaa68/shop-admin | 107505b614dc8024451bcbe8e2889db54e525ad9 | [
"MIT"
] | null | null | null | @extends('layouts.admin')
@section('content')
<h3>
پنل مدیریت
</h3>
@endsection
| 8 | 25 | 0.636364 |
fa3b963e8bff7662eee819b9d93b379986e5926b | 3,241 | cpp | C++ | tests/utils_test.cpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | 7 | 2015-01-28T09:17:08.000Z | 2020-04-21T13:51:16.000Z | tests/utils_test.cpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | null | null | null | tests/utils_test.cpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | 1 | 2020-07-11T09:20:25.000Z | 2020-07-11T09:20:25.000Z | #include <utils/base64.hpp>
#include <utils/string.hpp>
#include <utils/scopeguard.hpp>
#include <utils/zlib.hpp>
#include <utils/time.hpp>
#include "catch.hpp"
TEST_CASE("Both", "[base64]")
{
std::string hello = "Coucou ici";
CHECK(base64_decode(base64_encode(reinterpret_cast<const unsigned char*>(hello.c_str())... | 24.930769 | 386 | 0.676026 |
b886fe138da5b970070e842133e46f478581999d | 130 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_sin.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_sin.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_sin.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_fp_am9511
PUBLIC cam32_sccz80_sin
EXTERN asm_am9511_sin_fastcall
defc cam32_sccz80_sin = asm_am9511_sin_fastcall
| 14.444444 | 47 | 0.884615 |
7704d3b6a6b121d5c22b841f7282967642d4a90f | 7,526 | py | Python | archivist_samples/synsation/jitsuinator.py | jitsuin-inc/archivist-samples | 26940fd1659aa9a1cd8b7aade668c107780ceadd | [
"MIT"
] | 2 | 2021-05-27T09:29:41.000Z | 2022-03-25T13:31:08.000Z | archivist_samples/synsation/jitsuinator.py | jitsuin-inc/archivist-samples | 26940fd1659aa9a1cd8b7aade668c107780ceadd | [
"MIT"
] | 14 | 2021-05-26T07:12:49.000Z | 2022-01-25T17:25:17.000Z | archivist_samples/synsation/jitsuinator.py | jitsuin-inc/archivist-samples | 26940fd1659aa9a1cd8b7aade668c107780ceadd | [
"MIT"
] | 1 | 2021-05-26T16:05:19.000Z | 2021-05-26T16:05:19.000Z | # Copyright 2019 Jitsuin, inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 30.593496 | 87 | 0.627425 |
cd6a10efbd3b27a61cd683bbd7adf99deabb1ef1 | 3,593 | cs | C# | FlowR/FlowR.Tests/TestBase.cs | Portor25/FlowR | eece86d64fee9a612f24487891a0f877cd77c1f3 | [
"Apache-2.0"
] | 1 | 2019-11-22T08:32:47.000Z | 2019-11-22T08:32:47.000Z | FlowR/FlowR.Tests/TestBase.cs | Portor25/FlowR | eece86d64fee9a612f24487891a0f877cd77c1f3 | [
"Apache-2.0"
] | null | null | null | FlowR/FlowR.Tests/TestBase.cs | Portor25/FlowR | eece86d64fee9a612f24487891a0f877cd77c1f3 | [
"Apache-2.0"
] | 4 | 2019-11-22T08:32:25.000Z | 2021-12-28T01:04:50.000Z | using MediatR;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Moq;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using FlowR.Microsoft.Extensions.Logging;
using FlowR.StepLibrary.Activities;
using Xuni... | 28.070313 | 149 | 0.60423 |
2ff68c81b54e463fb09babaf10ff193d2c90f9bb | 52,261 | py | Python | fortlab/resolver/kgsearch.py | grnydawn/fortlab | 524daa6dd7c99c1ca4bf6088a8ba3e1bcd096d5d | [
"MIT"
] | null | null | null | fortlab/resolver/kgsearch.py | grnydawn/fortlab | 524daa6dd7c99c1ca4bf6088a8ba3e1bcd096d5d | [
"MIT"
] | 1 | 2021-03-29T14:54:22.000Z | 2021-03-29T14:54:51.000Z | fortlab/resolver/kgsearch.py | grnydawn/fortlab | 524daa6dd7c99c1ca4bf6088a8ba3e1bcd096d5d | [
"MIT"
] | null | null | null | """Fortran statments and expressions supported by current KGen
Module content
---------------
"""
# kgen_search.py
from fortlab.kgutils import show_tree, logger
from fortlab.resolver.kgparse import KGGenType
import fortlab.resolver.Fortran2003 as Fortran2003
#from typedecl_statements import TypeDeclarationStatement,... | 43.843121 | 120 | 0.697384 |
356146ea4a3084a8f7b8c048beab069eb0e3d980 | 79 | sh | Shell | costar_simulation/robot/jaco_description/transformURDF.sh | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 66 | 2018-10-31T04:58:53.000Z | 2022-03-17T02:32:25.000Z | costar_simulation/robot/jaco_description/transformURDF.sh | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 8 | 2018-10-23T21:19:25.000Z | 2018-12-03T02:08:41.000Z | costar_simulation/robot/jaco_description/transformURDF.sh | cpaxton/costar_plan | be5c12f9d0e9d7078e6a5c283d3be059e7f3d040 | [
"Apache-2.0"
] | 25 | 2018-10-19T00:54:17.000Z | 2021-10-10T08:28:15.000Z | rosrun xacro xacro --inorder urdf/jaco_robot.urdf.xacro > urdf/jaco_robot.urdf
| 39.5 | 78 | 0.810127 |
a3209894be9188a6146fafca8382c1e55d3a5130 | 8,224 | java | Java | src/java/org/apache/nutch/crawl/AbstractFetchSchedule.java | NextCenturyCorporation/nutch | 241ad5a614aab9baf671caebbcf7ad0ffb809f61 | [
"Apache-2.0"
] | 1 | 2019-08-15T06:49:46.000Z | 2019-08-15T06:49:46.000Z | src/java/org/apache/nutch/crawl/AbstractFetchSchedule.java | NextCenturyCorporation/nutch | 241ad5a614aab9baf671caebbcf7ad0ffb809f61 | [
"Apache-2.0"
] | null | null | null | src/java/org/apache/nutch/crawl/AbstractFetchSchedule.java | NextCenturyCorporation/nutch | 241ad5a614aab9baf671caebbcf7ad0ffb809f61 | [
"Apache-2.0"
] | 1 | 2020-03-20T09:29:26.000Z | 2020-03-20T09:29:26.000Z | /**
* 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... | 34.995745 | 80 | 0.683731 |
c550fb165aa1d74a5f3e0a50bb83b25c8bce86e2 | 2,002 | sql | SQL | Homework/DBFundamentals/Databases Basics/10.ExamPrep24April2017/ExamExercises/ExamExercises/01. DDL.sql | GitHarr/SoftUni | 1c51efc70a97a1be17e2590a9243d01a9be343aa | [
"MIT"
] | null | null | null | Homework/DBFundamentals/Databases Basics/10.ExamPrep24April2017/ExamExercises/ExamExercises/01. DDL.sql | GitHarr/SoftUni | 1c51efc70a97a1be17e2590a9243d01a9be343aa | [
"MIT"
] | null | null | null | Homework/DBFundamentals/Databases Basics/10.ExamPrep24April2017/ExamExercises/ExamExercises/01. DDL.sql | GitHarr/SoftUni | 1c51efc70a97a1be17e2590a9243d01a9be343aa | [
"MIT"
] | null | null | null | CREATE TABLE Clients(
ClientId INT PRIMARY KEY IDENTITY,
FirstName VARCHAR(50) NOT NULL,
LastName VARCHAR(50) NOT NULL,
Phone VARCHAR(12) NOT NULL CHECK(LEN(Phone) = 12)
)
CREATE TABLE Mechanics(
MechanicId INT PRIMARY KEY IDENTITY,
FirstName VARCHAR(50) NOT NULL,
LastName VARCHAR(50) NOT NULL,
[Address] VARCHAR(255)... | 27.054054 | 73 | 0.765235 |
2fd36762448234362f7ae61b16d238480b32dac4 | 1,842 | py | Python | day13.py | jm-projects/AdventOfCode2021 | 5c6630bf6130d4a40da4bc585e86fc8f4fd89749 | [
"MIT"
] | null | null | null | day13.py | jm-projects/AdventOfCode2021 | 5c6630bf6130d4a40da4bc585e86fc8f4fd89749 | [
"MIT"
] | null | null | null | day13.py | jm-projects/AdventOfCode2021 | 5c6630bf6130d4a40da4bc585e86fc8f4fd89749 | [
"MIT"
] | null | null | null | from numpy.core.numeric import count_nonzero
import pandas as pd
import numpy as np
import re
data = pd.read_csv("data/day13.csv", header = None, dtype=str, delimiter= '\n')[0]
codes = [re.split("\s\S\S\s", word) for word in data.values][1:]
# Challenge 1
word = np.array(data.values)[0]
c_dic = {c[0]:c[1] for c in co... | 25.943662 | 82 | 0.555375 |
ef524c94ee56a0cce74b182b45c486443fda64af | 1,666 | js | JavaScript | src/components/Chef.js | jackowfish/MealScheduler | 6adf858401a72698bbb9707045d2468c352e07e0 | [
"MIT"
] | 1 | 2021-09-29T23:37:18.000Z | 2021-09-29T23:37:18.000Z | src/components/Chef.js | jackowfish/MealScheduler | 6adf858401a72698bbb9707045d2468c352e07e0 | [
"MIT"
] | null | null | null | src/components/Chef.js | jackowfish/MealScheduler | 6adf858401a72698bbb9707045d2468c352e07e0 | [
"MIT"
] | 1 | 2021-09-29T19:25:44.000Z | 2021-09-29T19:25:44.000Z | import React, { useEffect, useRef, useState } from 'react';
import { Container, Row, Col, Card,Button, ButtonGroup} from 'react-bootstrap';
import '../styles/Chef.css'
import MealForm from './MealForm.js'
const Chef = () => {
const [mealCreation, setMealCreation] = useState(false);
const addMealCreation = ()... | 30.851852 | 99 | 0.370348 |
b02792b02c8236cc65aca48706d7909a87e126ee | 1,170 | py | Python | flit_core/flit_core/tests/test_versionno.py | ksunden/flit | 5ed24842e614af813bd67ecf6ee918961fbf0ac2 | [
"BSD-3-Clause"
] | 1,642 | 2015-03-26T18:22:25.000Z | 2021-12-01T00:10:52.000Z | flit_core/flit_core/tests/test_versionno.py | ksunden/flit | 5ed24842e614af813bd67ecf6ee918961fbf0ac2 | [
"BSD-3-Clause"
] | 427 | 2015-03-16T20:22:17.000Z | 2021-12-01T14:15:38.000Z | flit_core/flit_core/tests/test_versionno.py | ksunden/flit | 5ed24842e614af813bd67ecf6ee918961fbf0ac2 | [
"BSD-3-Clause"
] | 110 | 2015-03-28T02:50:28.000Z | 2021-11-27T09:36:37.000Z | import pytest
from flit_core.common import InvalidVersion
from flit_core.versionno import normalise_version
def test_normalise_version():
nv = normalise_version
assert nv('4.3.1') == '4.3.1'
assert nv('1.0b2') == '1.0b2'
assert nv('2!1.3') == '2!1.3'
# Prereleases
assert nv('1.0B2') == '1.0b2... | 28.536585 | 83 | 0.573504 |
f3f3a9a9f3e3e2beb0efb89587475b7484efc41b | 1,615 | ts | TypeScript | libs/dashboards/src/lib/transformations/automated-response-summary/asset-group-by-trigger.transformation.ts | alertlogic/al-magma-console | 63aff315fc2de3e24527ea8b77bd4e466cfb5d84 | [
"MIT"
] | null | null | null | libs/dashboards/src/lib/transformations/automated-response-summary/asset-group-by-trigger.transformation.ts | alertlogic/al-magma-console | 63aff315fc2de3e24527ea8b77bd4e466cfb5d84 | [
"MIT"
] | 4 | 2021-11-01T14:33:45.000Z | 2021-11-22T17:23:46.000Z | libs/dashboards/src/lib/transformations/automated-response-summary/asset-group-by-trigger.transformation.ts | alertlogic/al-magma-console | 63aff315fc2de3e24527ea8b77bd4e466cfb5d84 | [
"MIT"
] | null | null | null | import { Widget as WidgetConfig, TableListConfig, ZeroStateReason } from '@al/ng-visualizations-components';
import { AlResponderAggregationsSummaryItem } from '@al/responder';
export const summarizeAssetGroup = (items: AlResponderAggregationsSummaryItem[]): number => {
let count = 0;
items.forEach(summary => {
... | 31.057692 | 108 | 0.688545 |
dda50025aca1dee1f038e562d298c86429139a44 | 5,762 | java | Java | src/main/java/com/baidu/hugegraph/structure/graph/Edge.java | imbaGeek/hugegraph-client | 451e08f98c97c0a8c16285af4ab370baac9c4efa | [
"Apache-2.0"
] | null | null | null | src/main/java/com/baidu/hugegraph/structure/graph/Edge.java | imbaGeek/hugegraph-client | 451e08f98c97c0a8c16285af4ab370baac9c4efa | [
"Apache-2.0"
] | null | null | null | src/main/java/com/baidu/hugegraph/structure/graph/Edge.java | imbaGeek/hugegraph-client | 451e08f98c97c0a8c16285af4ab370baac9c4efa | [
"Apache-2.0"
] | 1 | 2022-01-05T08:42:12.000Z | 2022-01-05T08:42:12.000Z | /*
* Copyright 2017 HugeGraph Authors
*
* 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, Ve... | 30.648936 | 79 | 0.606734 |
25b647933e0fe62385c8bd2289787ddf6ffbc995 | 419 | cs | C# | PushoverClient/PushOverRequestArguments.cs | diggforbeer/Pushover.NET | e1b03a9209f8c0e8961287b07972cdd356027721 | [
"MIT"
] | null | null | null | PushoverClient/PushOverRequestArguments.cs | diggforbeer/Pushover.NET | e1b03a9209f8c0e8961287b07972cdd356027721 | [
"MIT"
] | null | null | null | PushoverClient/PushOverRequestArguments.cs | diggforbeer/Pushover.NET | e1b03a9209f8c0e8961287b07972cdd356027721 | [
"MIT"
] | null | null | null | // ReSharper disable InconsistentNaming
namespace PushoverClient
{
public class PushoverRequestArguments
{
public string token { get; set; }
public string user { get; set; }
public string device { get; set; }
public string title { get; set; }
public string message { get;... | 29.928571 | 43 | 0.608592 |
eca61a31b49032fab9cb1146edfc0b4343e3ae2e | 2,254 | sql | SQL | Databases/Commerce.Database/Schema Objects/Schemas/dbo/Programmability/Stored Procedures/SetOfferActiveState.sql | BOONRewardsInc/rewards | 256f86bf7a17c997b7415752cd22ce95d41359ab | [
"MIT"
] | 13 | 2017-01-09T14:53:43.000Z | 2021-03-02T14:46:09.000Z | Databases/Commerce.Database/Schema Objects/Schemas/dbo/Programmability/Stored Procedures/SetOfferActiveState.sql | BOONRewardsInc/rewards | 256f86bf7a17c997b7415752cd22ce95d41359ab | [
"MIT"
] | 1 | 2019-01-15T02:36:09.000Z | 2019-01-15T02:36:09.000Z | Databases/Commerce.Database/Schema Objects/Schemas/dbo/Programmability/Stored Procedures/SetOfferActiveState.sql | BOONRewardsInc/rewards | 256f86bf7a17c997b7415752cd22ce95d41359ab | [
"MIT"
] | 12 | 2017-01-12T16:15:33.000Z | 2021-03-24T13:40:49.000Z | --
-- Copyright (c) Microsoft Corporation. All rights reserved.
-- Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
--
---------------------------------------------------------------------------------------------------------------------------------
-- SetOfferActiv... | 41.740741 | 129 | 0.585626 |
254768fd1fd67d8b826eeec87686694202631393 | 710 | js | JavaScript | src/DemoEntryPoint.js | caldera-design/s3-uploader | 217c1b4c2e472df8ff2600c2c9882c9daf0cb7f6 | [
"MIT"
] | 1 | 2018-07-02T19:38:31.000Z | 2018-07-02T19:38:31.000Z | src/DemoEntryPoint.js | caldera-design/s3-uploader | 217c1b4c2e472df8ff2600c2c9882c9daf0cb7f6 | [
"MIT"
] | null | null | null | src/DemoEntryPoint.js | caldera-design/s3-uploader | 217c1b4c2e472df8ff2600c2c9882c9daf0cb7f6 | [
"MIT"
] | null | null | null |
import React from 'react';
import { render } from 'react-dom';
import S3Uploader from './LibraryEntryPoint';
const styles = {
container: {
width: 300
},
uploadForm: {
border: '2px solid grey'
}
};
function RootComponent() {
return (
<div style={styles.container}>
... | 24.482759 | 81 | 0.552113 |
ddc99b37f1c20ab7d819813d8bc88cf1cd2730ff | 576 | java | Java | ses-app/ses-web-ros/src/main/java/com/redescooter/ses/web/ros/dao/base/OpeSysRoleDataMapper.java | moutainhigh/ses-server | e1ee6ac34499950ef4b1b97efa0aaf4c4fec67c5 | [
"MIT"
] | null | null | null | ses-app/ses-web-ros/src/main/java/com/redescooter/ses/web/ros/dao/base/OpeSysRoleDataMapper.java | moutainhigh/ses-server | e1ee6ac34499950ef4b1b97efa0aaf4c4fec67c5 | [
"MIT"
] | null | null | null | ses-app/ses-web-ros/src/main/java/com/redescooter/ses/web/ros/dao/base/OpeSysRoleDataMapper.java | moutainhigh/ses-server | e1ee6ac34499950ef4b1b97efa0aaf4c4fec67c5 | [
"MIT"
] | 2 | 2021-08-31T07:59:28.000Z | 2021-10-16T10:55:44.000Z | package com.redescooter.ses.web.ros.dao.base;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.redescooter.ses.web.ros.dm.OpeSysRoleData;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface OpeSysRoleDataMapper extends BaseMapper<OpeSysRoleData> {
int updateBatch(... | 32 | 74 | 0.798611 |
0f26de7f2f581b571e181be3e53c9b29c50eef8b | 7,562 | go | Go | pkg/api/api.go | Meetic/blackbeard | 540a46789704f828a2d1a8b0ea46f1cb051202dc | [
"Apache-2.0"
] | 27 | 2018-01-10T12:55:26.000Z | 2021-08-30T15:42:32.000Z | pkg/api/api.go | Meetic/blackbeard | 540a46789704f828a2d1a8b0ea46f1cb051202dc | [
"Apache-2.0"
] | 63 | 2017-12-05T09:51:28.000Z | 2021-01-27T17:05:57.000Z | pkg/api/api.go | Meetic/blackbeard | 540a46789704f828a2d1a8b0ea46f1cb051202dc | [
"Apache-2.0"
] | 2 | 2018-09-06T16:09:04.000Z | 2018-12-06T14:59:04.000Z | package api
import (
"strings"
"time"
"github.com/sirupsen/logrus"
"github.com/Meetic/blackbeard/pkg/playbook"
"github.com/Meetic/blackbeard/pkg/resource"
"github.com/Meetic/blackbeard/pkg/version"
)
// Api represents the blackbeard entrypoint by defining the list of actions
// blackbeard is able to perform.
... | 30.12749 | 111 | 0.747157 |
e14a1e138581df6545990d6e12d01020a0fa06fb | 286 | rb | Ruby | lib/facter/shinken_mongo_uri.rb | lermit/puppet-shinken | 84d281f523e72b62a415bf6733dd22d2e11be313 | [
"Apache-2.0"
] | 4 | 2015-05-27T10:40:02.000Z | 2016-02-29T08:15:56.000Z | lib/facter/shinken_mongo_uri.rb | lermit/puppet-shinken | 84d281f523e72b62a415bf6733dd22d2e11be313 | [
"Apache-2.0"
] | null | null | null | lib/facter/shinken_mongo_uri.rb | lermit/puppet-shinken | 84d281f523e72b62a415bf6733dd22d2e11be313 | [
"Apache-2.0"
] | null | null | null | Facter.add("shinken_mongo_uri") do
setcode do
ret = nil
if File.file?('/etc/shinken/modules/mongodb.cfg')
File.foreach('/etc/shinken/modules/mongodb.cfg') do |line|
if line.strip =~ /uri\s+(.*)/
ret = $1
end
end
end
ret
end
end
| 20.428571 | 64 | 0.562937 |
4d34279df9bec806a27a6f742d630a37f40793a7 | 519 | cs | C# | Assets/Scripts/PlayerStat.cs | smjy/unity_game | c3b644452d8f9f011ce1545eed7cf8fb6c1f0169 | [
"MIT"
] | null | null | null | Assets/Scripts/PlayerStat.cs | smjy/unity_game | c3b644452d8f9f011ce1545eed7cf8fb6c1f0169 | [
"MIT"
] | null | null | null | Assets/Scripts/PlayerStat.cs | smjy/unity_game | c3b644452d8f9f011ce1545eed7cf8fb6c1f0169 | [
"MIT"
] | null | null | null | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class PlayerStat : MonoBehaviour {
public static PlayerStat main;
[Header("玩家数据")]
[Tooltip("代码块")] public int code_blocks = 100;
[Tooltip("内存")] public float memory = 1024;
[Tooltip("姓名... | 21.625 | 61 | 0.626204 |
e672ce486714934bd7472f01ef325a7e6865b64d | 3,073 | c | C | ikbd/mouse.c | simonsunnyboy/stlibs4gcc | 53e997c26ddd5cde09e2ca9e6f66be4057326598 | [
"MIT"
] | 5 | 2016-05-16T07:36:03.000Z | 2020-08-12T22:32:55.000Z | ikbd/mouse.c | simonsunnyboy/stlibs4gcc | 53e997c26ddd5cde09e2ca9e6f66be4057326598 | [
"MIT"
] | null | null | null | ikbd/mouse.c | simonsunnyboy/stlibs4gcc | 53e997c26ddd5cde09e2ca9e6f66be4057326598 | [
"MIT"
] | null | null | null | /*
*
* IKBD 6301 interrupt routine
* (c) 2010/11/14 by Simon Sunnyboy / Paradize <marndt@asmsoftware.de>
* http://paradize.atari.org/
*
* mouse data collection
*
* derived from a similar routine Copyright (C) 2002 Patrice Mandin
*
* This library is free software; you can redistribute it and/or
* m... | 28.719626 | 100 | 0.674585 |
43c3aa29062bfee2e4b14b0844b1160b26dd65de | 922 | tsx | TypeScript | src/components/InfoButton.tsx | BancambiosDeFi/Bancambios-DEX | 690f60f87caea2a019bb611549a549198ba3349f | [
"Apache-2.0"
] | null | null | null | src/components/InfoButton.tsx | BancambiosDeFi/Bancambios-DEX | 690f60f87caea2a019bb611549a549198ba3349f | [
"Apache-2.0"
] | null | null | null | src/components/InfoButton.tsx | BancambiosDeFi/Bancambios-DEX | 690f60f87caea2a019bb611549a549198ba3349f | [
"Apache-2.0"
] | 1 | 2022-03-11T13:51:44.000Z | 2022-03-11T13:51:44.000Z | import React from 'react';
import { makeStyles } from '@mui/styles';
import { IconButton } from '@mui/material';
import { ReactComponent as InfoIcon } from '../assets/icons/info-icon.svg';
interface InfoButtonProps {
id: string;
popoverId: string | undefined;
handleClick: (event: React.MouseEvent<HTMLButtonEleme... | 23.05 | 83 | 0.626898 |
d7316a4cf531cb3d8e1d414700b0df4425c8ceaa | 746 | dart | Dart | example/src/fast_test.dart | kornel661/web-router | 580eec23b14ca75aefa39b62d70b79d4dfaf1a60 | [
"MIT"
] | null | null | null | example/src/fast_test.dart | kornel661/web-router | 580eec23b14ca75aefa39b62d70b79d4dfaf1a60 | [
"MIT"
] | 1 | 2015-03-21T20:54:48.000Z | 2015-03-21T20:54:48.000Z | example/src/fast_test.dart | kornel661/web-router | 580eec23b14ca75aefa39b62d70b79d4dfaf1a60 | [
"MIT"
] | null | null | null | /*
* SPA router
* Copyright (c) 2015 Kornel Maczyński.
* For other contributors, see Github.
*/
library fast_test;
import 'dart:async';
import 'package:polymer/polymer.dart';
import 'package:spa_router/spa_router.dart';
@CustomTag('fast-test')
class FastTest extends PolymerElement {
@published String urlA = "/... | 24.064516 | 57 | 0.674263 |
e74008e68a01d143286f495254c5052cabc015fe | 555 | lua | Lua | Commands/endGame.lua | petrroll/nota_houska_hlaa | 7e6ea0f83f7c8cf571a1b4f18544dac47e4c727d | [
"MIT"
] | null | null | null | Commands/endGame.lua | petrroll/nota_houska_hlaa | 7e6ea0f83f7c8cf571a1b4f18544dac47e4c727d | [
"MIT"
] | null | null | null | Commands/endGame.lua | petrroll/nota_houska_hlaa | 7e6ea0f83f7c8cf571a1b4f18544dac47e4c727d | [
"MIT"
] | null | null | null | function getInfo()
return {
onNoUnits = RUNNING, -- instant success
tooltip = "Ends game.",
parameterDefs = {}
}
end
-- get madatory module operators
VFS.Include("modules.lua") -- modules table
VFS.Include(modules.attach.data.path .. modules.attach.data.head) -- attach lib module
-- get other madatory depende... | 19.821429 | 86 | 0.697297 |
6c61023ae99d83e2245ccf899e620d29320d4114 | 555 | lua | Lua | lib/EntityAttribute/lua/EntityValueMap.lua | adriano-di-giovanni/reaves | 3423bbabfed9a1c4ae2be8431e8856f5a05cb568 | [
"MIT"
] | null | null | null | lib/EntityAttribute/lua/EntityValueMap.lua | adriano-di-giovanni/reaves | 3423bbabfed9a1c4ae2be8431e8856f5a05cb568 | [
"MIT"
] | null | null | null | lib/EntityAttribute/lua/EntityValueMap.lua | adriano-di-giovanni/reaves | 3423bbabfed9a1c4ae2be8431e8856f5a05cb568 | [
"MIT"
] | null | null | null | local EntityValueMap = {}
EntityValueMap.__index = EntityValueMap
function EntityValueMap:create(keyPrefix)
local instance = {
key = keyPrefix .. ':EntityValueMap'
}
setmetatable(instance, EntityValueMap)
return instance
end
function EntityValueMap:get(entityId)
return redis.call('HGET', s... | 24.130435 | 59 | 0.744144 |
b782063ee14e2fe3250be299d3f644e8aea6daa1 | 221 | cs | C# | src/Platforms/Android/SwankImplementation.cs | spektrummedia/swank | 81675c760e0eb6b5f0a704599783fe59bf2ccfcf | [
"MIT"
] | 8 | 2018-03-22T03:31:18.000Z | 2022-02-23T21:58:13.000Z | src/Platforms/Android/SwankImplementation.cs | spektrummedia/swank | 81675c760e0eb6b5f0a704599783fe59bf2ccfcf | [
"MIT"
] | 6 | 2018-03-13T17:08:40.000Z | 2019-12-05T14:49:31.000Z | src/Platforms/Android/SwankImplementation.cs | spektrumgeeks/swank | 81675c760e0eb6b5f0a704599783fe59bf2ccfcf | [
"MIT"
] | 4 | 2018-04-19T07:25:48.000Z | 2019-03-18T21:00:36.000Z | using CarouselView.FormsPlugin.Android;
namespace Plugin.Swank
{
public class SwankImplementation : ISwank
{
public static void Init()
{
CarouselViewRenderer.Init();
}
}
} | 18.416667 | 45 | 0.61086 |
c5364f42610fba271ed0e7c68e4a8cff35305a4a | 23 | css | CSS | src/components/markdown-renderer/markdown-renderer.css | web-component-org/markdown-renderer | aca2be75bacf8d7f13abc1578bf6d918c90b0cd4 | [
"MIT"
] | null | null | null | src/components/markdown-renderer/markdown-renderer.css | web-component-org/markdown-renderer | aca2be75bacf8d7f13abc1578bf6d918c90b0cd4 | [
"MIT"
] | null | null | null | src/components/markdown-renderer/markdown-renderer.css | web-component-org/markdown-renderer | aca2be75bacf8d7f13abc1578bf6d918c90b0cd4 | [
"MIT"
] | null | null | null | .markdown-renderer {
}
| 7.666667 | 20 | 0.695652 |
bb535ff7ba150be08b7c7439e10f420f9c089c98 | 1,997 | cs | C# | src/Uhuru.CloudFoundry.DEA/StagingInfo.cs | UhuruSoftware/vcap-dotnet | 8068834e62165fadc6727b0a9676a8f7363e38eb | [
"Apache-2.0",
"MIT"
] | 2 | 2016-05-25T20:24:06.000Z | 2018-05-15T12:10:21.000Z | src/Uhuru.CloudFoundry.DEA/StagingInfo.cs | UhuruSoftware/vcap-dotnet | 8068834e62165fadc6727b0a9676a8f7363e38eb | [
"Apache-2.0",
"MIT"
] | null | null | null | src/Uhuru.CloudFoundry.DEA/StagingInfo.cs | UhuruSoftware/vcap-dotnet | 8068834e62165fadc6727b0a9676a8f7363e38eb | [
"Apache-2.0",
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using YamlDotNet.RepresentationModel;
using YamlDotNet.RepresentationModel.Serialization;
namespace Uhuru.CloudFoundry.DEA
{
class StagingInfo
{
public static string getStartCommand(string stagingInf... | 30.723077 | 115 | 0.569354 |
2ffe7b0d97625dde8b31f2f082c39a509a37a416 | 326 | py | Python | Tests/image_tests/renderpasses/test_CameraAnimation.py | Nuclearfossil/Falcor | 667dc68a51bbaf87a2a063f4f0ef8928990ed203 | [
"BSD-3-Clause"
] | 62 | 2022-02-04T10:34:29.000Z | 2022-03-31T19:41:20.000Z | Tests/image_tests/renderpasses/test_CameraAnimation.py | Nuclearfossil/Falcor | 667dc68a51bbaf87a2a063f4f0ef8928990ed203 | [
"BSD-3-Clause"
] | 1 | 2021-02-18T16:38:38.000Z | 2021-02-18T16:38:38.000Z | Tests/image_tests/renderpasses/test_CameraAnimation.py | fromasmtodisasm/Falcor | 300aee1d7a9609e427f07e8887fd9bcb377426b0 | [
"BSD-3-Clause"
] | 4 | 2022-02-04T16:08:30.000Z | 2022-03-09T09:39:41.000Z | from helpers import render_frames
from graphs.ForwardRendering import ForwardRendering as g
from falcor import *
g.unmarkOutput("ForwardLightingPass.motionVecs")
m.addGraph(g)
m.loadScene("grey_and_white_room/grey_and_white_room.fbx")
ctx = locals()
# default
render_frames(ctx, 'default', frames=[1,16,64,128,256])
e... | 23.285714 | 58 | 0.797546 |
052bb9f7930756e3fe4c7a7c6e43906d7b8c36b2 | 1,031 | css | CSS | public/css/pages/stats.css | RajicDenis/GRAS---Website | c20b292f1091756c589f2bd045aed9d3ef867c8a | [
"MIT"
] | null | null | null | public/css/pages/stats.css | RajicDenis/GRAS---Website | c20b292f1091756c589f2bd045aed9d3ef867c8a | [
"MIT"
] | null | null | null | public/css/pages/stats.css | RajicDenis/GRAS---Website | c20b292f1091756c589f2bd045aed9d3ef867c8a | [
"MIT"
] | null | null | null | .site-title, .site-box {
background: #182C4F;
}
.st-txt {
width: 500px !important;
}
.hexa-box {
width: 50%;
}
#hexGrid {
overflow: visible;
}
.hexIn {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-... | 16.901639 | 42 | 0.622696 |
a3083ba0b0b723cafc603b76bef3045e1c1ab3ae | 454 | ts | TypeScript | cypress/support/test-setup.ts | PinkyJie/cypress-auto-stub-example | 2aae49f35209fa0e4b2594154bbba17a54776f62 | [
"MIT"
] | 54 | 2018-11-20T11:35:21.000Z | 2022-02-28T02:16:42.000Z | cypress/support/test-setup.ts | PinkyJie/cypress-auto-stub-example | 2aae49f35209fa0e4b2594154bbba17a54776f62 | [
"MIT"
] | 21 | 2019-04-26T01:01:50.000Z | 2022-02-17T22:07:47.000Z | cypress/support/test-setup.ts | PinkyJie/cypress-auto-stub-example | 2aae49f35209fa0e4b2594154bbba17a54776f62 | [
"MIT"
] | 16 | 2018-08-20T21:09:24.000Z | 2022-03-19T20:17:06.000Z | import {
setupCypressInterception,
writeRecordedAPIToFixture,
} from './utils/auto-stub';
import { getRunningConfig } from './utils/running-config';
before(() => {
cy._data = {};
getRunningConfig().then((runningConfig) => {
cy._config = runningConfig;
});
});
beforeEach(() => {
setupCypressInterceptio... | 18.916667 | 58 | 0.651982 |
3f8caf46b5d04f81ce9c3c83f9f660a27aa82a59 | 23,353 | php | PHP | zipfile/admin/includes/left.php | SonuVermaJattari/medkartteam | fbd678e91e7d47dbd790cacb4d2d93e706024616 | [
"MIT"
] | null | null | null | zipfile/admin/includes/left.php | SonuVermaJattari/medkartteam | fbd678e91e7d47dbd790cacb4d2d93e706024616 | [
"MIT"
] | null | null | null | zipfile/admin/includes/left.php | SonuVermaJattari/medkartteam | fbd678e91e7d47dbd790cacb4d2d93e706024616 | [
"MIT"
] | null | null | null | <aside class="left-side sidebar-offcanvas">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel -->
<a href="../index.php" >
<div class="user-panel">
<div class="pull-left image" style="text-align: center;margin-top: -47px;/* background-color: #f4f4f4; */... | 47.756646 | 265 | 0.388558 |
dda1dc8332418b31d121375d800441a97a49287a | 3,788 | py | Python | sktime/transformations/bootstrap/tests/test_mbb.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T02:45:39.000Z | 2021-12-22T02:45:39.000Z | sktime/transformations/bootstrap/tests/test_mbb.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | null | null | null | sktime/transformations/bootstrap/tests/test_mbb.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3 -u
# -*- coding: utf-8 -*-
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
"""Unit tests for Bootrstapping transformers."""
__author__ = ["ltsaprounis"]
import pandas as pd
import pytest
from sktime.datasets import load_airline
from sktime.transformations.bootstrap impo... | 29.826772 | 88 | 0.682946 |
dd9adb8aadde8adbcd4afd9371367ce0abdea115 | 467 | java | Java | src/com/winterwell/es/client/GetResponse.java | anitawoodruff/elasticsearch-java-client | 9292900509d147ce9e0abcc3d2390851893c5d57 | [
"MIT"
] | 10 | 2016-02-04T11:15:38.000Z | 2022-01-12T15:04:04.000Z | src/com/winterwell/es/client/GetResponse.java | anitawoodruff/elasticsearch-java-client | 9292900509d147ce9e0abcc3d2390851893c5d57 | [
"MIT"
] | 3 | 2017-10-16T16:27:49.000Z | 2020-04-28T08:02:32.000Z | src/com/winterwell/es/client/GetResponse.java | anitawoodruff/elasticsearch-java-client | 9292900509d147ce9e0abcc3d2390851893c5d57 | [
"MIT"
] | 3 | 2017-07-27T09:35:22.000Z | 2020-06-19T17:30:09.000Z | package com.winterwell.es.client;
import java.util.Map;
public interface GetResponse extends IESResponse {
/**
* @return the _source object from a Get request.
* NB: This is aware of the just-the-source GetRequestBuilder option
*/
Map<String, Object> getSourceAsMap();
/**
* @return the _source object f... | 22.238095 | 70 | 0.721627 |
4bcae65b8890e4a34cd1548041c8505aff6896f6 | 25,909 | rs | Rust | pallets/mnt-token/src/tests.rs | minterest-finance/minterest-chain-node | b932f0dfd3cda93a3de30e87c8463ad23116fea1 | [
"Apache-2.0"
] | 10 | 2021-03-03T12:14:25.000Z | 2021-05-19T10:01:36.000Z | pallets/mnt-token/src/tests.rs | minterest-finance/minterest-chain-node | b932f0dfd3cda93a3de30e87c8463ad23116fea1 | [
"Apache-2.0"
] | 28 | 2021-03-02T08:09:08.000Z | 2021-07-27T10:52:46.000Z | pallets/mnt-token/src/tests.rs | minterest-finance/minterest-chain-node | b932f0dfd3cda93a3de30e87c8463ad23116fea1 | [
"Apache-2.0"
] | 1 | 2021-07-07T11:33:50.000Z | 2021-07-07T11:33:50.000Z | #![cfg(test)]
use super::Error;
use crate::mock::*;
use crate::{MntPoolState, MntState};
use frame_support::{assert_noop, assert_ok};
use minterest_primitives::{Balance, CurrencyId, Rate};
use orml_traits::MultiCurrency;
use pallet_traits::MntManager;
use sp_arithmetic::FixedPointNumber;
use sp_runtime::{
traits::{On... | 34.499334 | 105 | 0.72716 |
74b519a7adf484769c802a530eb4d349cbb3f3b1 | 2,262 | css | CSS | app/public/css/error-page.css | gkapkowski/torus-website | a038e6f605b2c8c1fa418f2dbab97ac197689a3b | [
"MIT"
] | 2 | 2021-05-24T04:28:17.000Z | 2021-09-04T01:07:21.000Z | app/public/css/error-page.css | gkapkowski/torus-website | a038e6f605b2c8c1fa418f2dbab97ac197689a3b | [
"MIT"
] | null | null | null | app/public/css/error-page.css | gkapkowski/torus-website | a038e6f605b2c8c1fa418f2dbab97ac197689a3b | [
"MIT"
] | 3 | 2020-10-29T15:14:02.000Z | 2021-11-27T12:19:46.000Z | body {
margin: 0;
padding: 0;
font-family: Lato, sans-serif;
line-height: 1.2em;
color: #4a4a4a;
background-image: url('/images/footer_waves.png');
background-repeat: no-repeat;
background-position: center bottom;
}
.text-center {
text-align: center;
}
.error-container {
display: flex;
flex-dir... | 15.6 | 64 | 0.614943 |
a981a745ec6dbb530e783b25040f4fbe81178fff | 1,048 | html | HTML | tests/test.html | project-oak/arcsjs-core | ec70f5330136f20bc6e097c1c42c08ef2c604b8e | [
"BSD-3-Clause"
] | 1 | 2022-03-10T20:53:13.000Z | 2022-03-10T20:53:13.000Z | tests/test.html | project-oak/arcsjs-core | ec70f5330136f20bc6e097c1c42c08ef2c604b8e | [
"BSD-3-Clause"
] | 1 | 2022-03-31T06:14:00.000Z | 2022-03-31T06:14:00.000Z | tests/test.html | project-oak/arcsjs-core | ec70f5330136f20bc6e097c1c42c08ef2c604b8e | [
"BSD-3-Clause"
] | null | null | null | <!doctype html>
<!--
Copyright (c) 2022 Google LLC
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
-->
<style>
body, pre {
font-family: sans-serif;
/* font-family: monospace; */
font-size: 14... | 20.96 | 55 | 0.582061 |
ff610b454687a60a66a67f1d4320b175ed7a5e72 | 5,770 | py | Python | onadata/apps/api/tests/viewsets/test_team_viewset.py | gushil/kobocat | 5ce27ed5fbf969b2ce68e8a59dd97ced74686711 | [
"BSD-2-Clause"
] | 38 | 2017-02-28T05:39:40.000Z | 2019-01-16T04:39:04.000Z | onadata/apps/api/tests/viewsets/test_team_viewset.py | gushil/kobocat | 5ce27ed5fbf969b2ce68e8a59dd97ced74686711 | [
"BSD-2-Clause"
] | 48 | 2019-03-18T09:26:31.000Z | 2019-05-27T08:12:03.000Z | onadata/apps/api/tests/viewsets/test_team_viewset.py | gushil/kobocat | 5ce27ed5fbf969b2ce68e8a59dd97ced74686711 | [
"BSD-2-Clause"
] | 5 | 2017-02-22T12:25:19.000Z | 2019-01-15T11:16:40.000Z | import json
from onadata.apps.api.models import Team
from onadata.apps.api.tests.viewsets.test_abstract_viewset import\
TestAbstractViewSet
from onadata.apps.api.viewsets.team_viewset import TeamViewSet
class TestTeamViewSet(TestAbstractViewSet):
def setUp(self):
super(self.__class__, self).setUp()
... | 34.969697 | 77 | 0.583016 |
f448788c5c5567bc928c81d1b07dc0289c57826e | 892 | lua | Lua | Interface/AddOns/LittleWigs/Legion/CathedralOfEternalNight/Locales/zhCN.lua | ChinarG/Game-Wow-Plugins-Setting | e3fd3ddec1387c1f971dc195fec4fd9045d3105d | [
"Apache-2.0"
] | null | null | null | Interface/AddOns/LittleWigs/Legion/CathedralOfEternalNight/Locales/zhCN.lua | ChinarG/Game-Wow-Plugins-Setting | e3fd3ddec1387c1f971dc195fec4fd9045d3105d | [
"Apache-2.0"
] | null | null | null | Interface/AddOns/LittleWigs/Legion/CathedralOfEternalNight/Locales/zhCN.lua | ChinarG/Game-Wow-Plugins-Setting | e3fd3ddec1387c1f971dc195fec4fd9045d3105d | [
"Apache-2.0"
] | null | null | null | local L = BigWigs:NewBossLocale("Mephistroth", "zhCN")
if not L then return end
if L then
L.custom_on_time_lost = "暗影消退计时"
L.custom_on_time_lost_desc = "显示暗影消退为|cffff0000红色|r计时条。"
end
L = BigWigs:NewBossLocale("Domatrax", "zhCN")
if L then
L.custom_on_autotalk = "自动对话"
L.custom_on_autotalk_desc = "立即选择阿格拉玛之盾对话开始与多... | 26.235294 | 95 | 0.717489 |
dad96782ca95c250b62adcc1accdbfbbc98348e5 | 600 | ts | TypeScript | DFE_Personality_Dev/DFE_Personality_Dev/node_modules/adaptive-expressions/lib/builtinFunctions/sentenceCase.d.ts | danfernau/PersonalityAdaptiveChatbot | 1a1c9e6d6809f3fee62c4ccf63b0cba9c4245075 | [
"MIT"
] | null | null | null | DFE_Personality_Dev/DFE_Personality_Dev/node_modules/adaptive-expressions/lib/builtinFunctions/sentenceCase.d.ts | danfernau/PersonalityAdaptiveChatbot | 1a1c9e6d6809f3fee62c4ccf63b0cba9c4245075 | [
"MIT"
] | null | null | null | DFE_Personality_Dev/DFE_Personality_Dev/node_modules/adaptive-expressions/lib/builtinFunctions/sentenceCase.d.ts | danfernau/PersonalityAdaptiveChatbot | 1a1c9e6d6809f3fee62c4ccf63b0cba9c4245075 | [
"MIT"
] | null | null | null | /**
* @module adaptive-expressions
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { StringTransformEvaluator } from './stringTransformEvaluator';
/**
* Capitalizing only the first word and leave others lowercase.
*/
export declare class SentenceCase... | 27.272727 | 102 | 0.703333 |
3a932e6b7e70aecda44bdbb588a43889cffb5091 | 859 | dart | Dart | lib/util/game_intercafe/text_interface_component.dart | rezendegc/bonfire | 5843fa602e67c095584648497e2abb153233c63d | [
"MIT"
] | null | null | null | lib/util/game_intercafe/text_interface_component.dart | rezendegc/bonfire | 5843fa602e67c095584648497e2abb153233c63d | [
"MIT"
] | null | null | null | lib/util/game_intercafe/text_interface_component.dart | rezendegc/bonfire | 5843fa602e67c095584648497e2abb153233c63d | [
"MIT"
] | null | null | null | import 'dart:ui';
import 'package:bonfire/bonfire.dart';
import 'package:flame/text_config.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class TextInterfaceComponent extends InterfaceComponent {
String text;
final TextConfig textConfig;
TextInterfaceComponent({
@req... | 23.216216 | 57 | 0.654249 |
23a30020283e63da48ff2f003d9b03a6a58fe505 | 1,537 | js | JavaScript | src/store/modules/pedido/action.js | pizzajs/pizzajs-front-end | 9012c8fb03c6d64a3e8e587fbb33bfba85996f12 | [
"MIT"
] | null | null | null | src/store/modules/pedido/action.js | pizzajs/pizzajs-front-end | 9012c8fb03c6d64a3e8e587fbb33bfba85996f12 | [
"MIT"
] | 4 | 2021-03-10T12:07:02.000Z | 2022-02-18T23:32:11.000Z | src/store/modules/pedido/action.js | pizzajs/pizzajs-front-end | 9012c8fb03c6d64a3e8e587fbb33bfba85996f12 | [
"MIT"
] | 1 | 2020-08-04T22:07:39.000Z | 2020-08-04T22:07:39.000Z | //ACTIONS PIZZA
export function AdicionarPizzaProcess(pizza) {
return {
type: 'ADD_PIZZA_PROCESS',
payload: { pizza }
}
}
export function AdicionarPizza(pizza) {
return {
type: 'ADD_PIZZA',
payload: { pizza }
}
}
export function AdicionarPizzaCustomizada(pizza){
re... | 18.518072 | 91 | 0.599219 |
8ff844e7a243c783aeb98f8eebf6e843fe37e847 | 520 | asm | Assembly | MASM/p7.asm | saransh808/Random | 57522016ef5473dd8b7c29f34b3f80344379496e | [
"MIT"
] | null | null | null | MASM/p7.asm | saransh808/Random | 57522016ef5473dd8b7c29f34b3f80344379496e | [
"MIT"
] | null | null | null | MASM/p7.asm | saransh808/Random | 57522016ef5473dd8b7c29f34b3f80344379496e | [
"MIT"
] | null | null | null | data segment
dat db 10
data ends
display macro m1
mov ah,09h
lea dx,m1
int 21h
endm
code segment
assume cs:code, ds:data
start: mov ax,data
mov ds,ax
lea dx,[dat]
mov ah,0ah
int 21h
... | 15.757576 | 32 | 0.415385 |
67fc9614b3dcebc660247f398f47060c058a5559 | 12,626 | rs | Rust | tools/didc/src/main.rs | Psychedelic/candid | dc5584aac5899aa8f265c36ee647815fe18afb02 | [
"Apache-2.0"
] | null | null | null | tools/didc/src/main.rs | Psychedelic/candid | dc5584aac5899aa8f265c36ee647815fe18afb02 | [
"Apache-2.0"
] | null | null | null | tools/didc/src/main.rs | Psychedelic/candid | dc5584aac5899aa8f265c36ee647815fe18afb02 | [
"Apache-2.0"
] | null | null | null | use anyhow::{bail, Result};
use candid::{
parser::types::{IDLType, IDLTypes},
pretty_check_file, pretty_parse,
types::Type,
Error, IDLArgs, TypeEnv,
};
use std::collections::HashSet;
use std::path::PathBuf;
use structopt::clap::AppSettings;
use structopt::StructOpt;
#[derive(StructOpt)]
#[structopt(glo... | 36.597101 | 103 | 0.474259 |
12b7bdd1adc40c9abf56c3b2471e372b4c2a727b | 871 | cs | C# | src/GR.Extensions/GR.Ecommerce.Extension/GR.ECommerce.Payments/GR.Providers/GR.ECommerce.Paypal/GR.Paypal.Razor/Extensions/ServiceCollectionExtensions.cs | indrivo/GEAR | 5bfa35c0860effe204645af8efc2610fa3aca94f | [
"MIT"
] | 7 | 2019-10-21T08:52:00.000Z | 2021-09-03T22:22:36.000Z | src/GR.Extensions/GR.Ecommerce.Extension/GR.ECommerce.Payments/GR.Providers/GR.ECommerce.Paypal/GR.Paypal.Razor/Extensions/ServiceCollectionExtensions.cs | indrivo/GEAR | 5bfa35c0860effe204645af8efc2610fa3aca94f | [
"MIT"
] | null | null | null | src/GR.Extensions/GR.Ecommerce.Extension/GR.ECommerce.Payments/GR.Providers/GR.ECommerce.Paypal/GR.Paypal.Razor/Extensions/ServiceCollectionExtensions.cs | indrivo/GEAR | 5bfa35c0860effe204645af8efc2610fa3aca94f | [
"MIT"
] | 4 | 2019-10-18T16:19:50.000Z | 2021-09-03T22:22:37.000Z | using GR.Core.Extensions;
using GR.Paypal.Models;
using GR.Paypal.Razor.Helpers;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace GR.Paypal.Razor.Extensions
{
public static class ServiceCollectionExtensions
{
/// <summary>
/// Register paypal ... | 33.5 | 108 | 0.685419 |
2e338ca7be4c18296dd65642e2c9fe995351cde3 | 291 | sql | SQL | src/Persistence/MySQL/schema/patch-1000705.sql | frantzcy/snuze | da8bda3b1c194372b61f4ad3e16345f0fb046002 | [
"Apache-2.0"
] | 2 | 2020-02-14T23:10:10.000Z | 2021-01-29T13:18:26.000Z | src/Persistence/MySQL/schema/patch-1000705.sql | frantzcy/snuze | da8bda3b1c194372b61f4ad3e16345f0fb046002 | [
"Apache-2.0"
] | 7 | 2019-08-19T22:17:34.000Z | 2022-03-16T22:17:45.000Z | src/Persistence/MySQL/schema/patch-1000705.sql | frantzcy/snuze | da8bda3b1c194372b61f4ad3e16345f0fb046002 | [
"Apache-2.0"
] | 1 | 2022-03-16T00:58:51.000Z | 2022-03-16T00:58:51.000Z | /**
* These DDL statements implement the changes made to the Snuze MySQL schema in
* version: 1000705 (Snuze 0.7.5).
*/
--
ALTER TABLE `subreddits`
ADD COLUMN `coins` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0
AFTER `can_assign_user_flair`;
--
UPDATE `snuze` SET `schema_version` = 1000705;
| 26.454545 | 79 | 0.731959 |
dcc4794152cfb43a0542a5ead3ff25ed993b7e71 | 8,551 | swift | Swift | Forum/Misc/Network.swift | oscardhc/Forum | a753a34b8763196499341d6c5c9a56d0c69b1de4 | [
"MIT"
] | 16 | 2020-12-04T08:21:15.000Z | 2022-01-03T06:58:42.000Z | Forum/Misc/Network.swift | treehollow/Forum | a753a34b8763196499341d6c5c9a56d0c69b1de4 | [
"MIT"
] | 1 | 2020-12-04T09:23:43.000Z | 2020-12-04T10:03:32.000Z | Forum/Misc/Network.swift | oscardhc/Forum | a753a34b8763196499341d6c5c9a56d0c69b1de4 | [
"MIT"
] | 4 | 2021-01-07T03:22:29.000Z | 2021-04-13T08:42:19.000Z | //
// Network.swift
// Forum
//
// Created by Oscar on 2020/9/29.
//
import Foundation
import Socket
import UIKit
class Network {
static let e = JSONEncoder(), ip = "182.254.145.254", port: Int32 = 8080
static private func connect<T: Encodable>(_ d: T) -> [String: Any]? {
func singleConne... | 39.40553 | 261 | 0.520875 |
a37396e6ce379f8a51d3220313d4afb0ecdffcd2 | 595 | tsx | TypeScript | libs/ui/app/src/pages/index-page.tsx | platyplus/platydev | 1e4fb8bd3f6b83a74d91544ccdfbaa68bbf1fb7e | [
"MIT"
] | 9 | 2020-12-08T12:56:27.000Z | 2021-09-01T12:11:49.000Z | libs/ui/app/src/pages/index-page.tsx | platyplus/platydev | 1e4fb8bd3f6b83a74d91544ccdfbaa68bbf1fb7e | [
"MIT"
] | 7 | 2021-01-26T09:17:50.000Z | 2021-09-19T15:33:21.000Z | libs/ui/app/src/pages/index-page.tsx | platyplus/platydev | 1e4fb8bd3f6b83a74d91544ccdfbaa68bbf1fb7e | [
"MIT"
] | 6 | 2021-02-07T20:48:29.000Z | 2021-08-19T10:03:12.000Z | import { HeaderTitleWrapper } from '@platyplus/layout'
import { Link, Redirect } from 'react-router-dom'
import { useAuthenticated } from '@platyplus/hbp'
export const IndexPage: React.FC<{ title?: string }> = ({
title = 'Index page'
}) => {
const signedIn = useAuthenticated()
if (signedIn) {
return <Redirec... | 25.869565 | 57 | 0.626891 |
eb8ed19925fbcf7b48196bc48bd3968053c0dd65 | 4,081 | css | CSS | game/dist/css/main.css | vnjson/vtq-tpl | f83e93725ff6a69a8ff8055906e5ab2edb812c12 | [
"MIT"
] | null | null | null | game/dist/css/main.css | vnjson/vtq-tpl | f83e93725ff6a69a8ff8055906e5ab2edb812c12 | [
"MIT"
] | null | null | null | game/dist/css/main.css | vnjson/vtq-tpl | f83e93725ff6a69a8ff8055906e5ab2edb812c12 | [
"MIT"
] | null | null | null |
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
h3{
color: skyblue;
}
html, body{
user-select: none;
overflow: hidden;
background-image: url(../assets/background-1.jpg);
background-size: cover;
}
.wrapper{
font-family: 'Jura';
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
ali... | 14.679856 | 69 | 0.670424 |
4cfd79230d7bba5074f82f9c52921c1cb7017d99 | 2,489 | py | Python | day-24/part-2/thore.py | evqna/adventofcode-2020 | 526bb9c87057d02bda4de9647932a0e25bdb3a5b | [
"MIT"
] | 12 | 2020-11-30T19:22:18.000Z | 2021-06-21T05:55:58.000Z | day-24/part-2/thore.py | evqna/adventofcode-2020 | 526bb9c87057d02bda4de9647932a0e25bdb3a5b | [
"MIT"
] | 13 | 2020-11-30T17:27:22.000Z | 2020-12-22T17:43:13.000Z | day-24/part-2/thore.py | evqna/adventofcode-2020 | 526bb9c87057d02bda4de9647932a0e25bdb3a5b | [
"MIT"
] | 3 | 2020-12-01T08:49:40.000Z | 2022-03-26T21:47:38.000Z | from collections import Counter
from tool.runners.python import SubmissionPy
class ThoreSubmission(SubmissionPy):
def run(self, s):
"""
:param s: input in string format
:return: solution flag
"""
N_DAYS = 100
black_hexs = self.parse_start_grid(s)
for _ in ... | 27.054348 | 75 | 0.616312 |
8d8e19248b995245d1b4a70f8ffe00aa77e1d311 | 11,262 | sh | Shell | lib/junonia_web.sh | fprimex/zdesk-cli | 082578f79880b0329a4589272f975e44c4bd851c | [
"MIT"
] | 1 | 2020-05-08T02:54:21.000Z | 2020-05-08T02:54:21.000Z | lib/junonia_web.sh | fprimex/zdesk-cli | 082578f79880b0329a4589272f975e44c4bd851c | [
"MIT"
] | null | null | null | lib/junonia_web.sh | fprimex/zdesk-cli | 082578f79880b0329a4589272f975e44c4bd851c | [
"MIT"
] | null | null | null | #!/bin/sh
## -------------------------------------------------------------------
##
## junonia_web.sh - shell functions for web work
##
## -------------------------------------------------------------------
##
## Copyright (c) 2020 Brent W. Woodruff. All Rights Reserved.
##
## This file is provided to you under the Mo... | 27.072115 | 87 | 0.56997 |