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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0ecb577a1af149e6c6549c2dd354934e917c9ccc | 2,891 | h | C | include/usb_pd_dpm.h | IssacAlegre/chrome-ec | 19c3731dfd5250bfadaa90940f108476444d49b1 | [
"BSD-3-Clause"
] | null | null | null | include/usb_pd_dpm.h | IssacAlegre/chrome-ec | 19c3731dfd5250bfadaa90940f108476444d49b1 | [
"BSD-3-Clause"
] | null | null | null | include/usb_pd_dpm.h | IssacAlegre/chrome-ec | 19c3731dfd5250bfadaa90940f108476444d49b1 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright 2020 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
* Device Policy Manager implementation
* Refer to USB PD 3.0 spec, version 2.0, sections 8.2 and 8.3
*/
#ifndef __CROS_EC_USB_DPM_H
#define ... | 25.8125 | 79 | 0.717399 |
b1a575c8d5c5eed81e615134536a5f6ee1762929 | 234 | h | C | demo_XTFMDB/DisplayCell.h | Akateason/XTFMDB | 75f57f97c69a9d98edba547e849bc0bebbd007e1 | [
"MIT"
] | 29 | 2017-05-05T01:09:52.000Z | 2020-07-05T11:17:39.000Z | demo_XTFMDB/DisplayCell.h | Akateason/XTFMDB | 75f57f97c69a9d98edba547e849bc0bebbd007e1 | [
"MIT"
] | 6 | 2017-05-05T01:35:54.000Z | 2019-01-08T03:21:02.000Z | demo_XTFMDB/DisplayCell.h | Akateason/XTFMDB | 75f57f97c69a9d98edba547e849bc0bebbd007e1 | [
"MIT"
] | 6 | 2017-05-10T07:03:28.000Z | 2020-07-05T11:17:47.000Z | //
// DisplayCell.h
// demo_XTFMDB
//
// Created by teason23 on 2017/5/4.
// Copyright © 2017年 teaason. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface DisplayCell : UITableViewCell
- (void)configure:(id)model;
@end
| 15.6 | 51 | 0.688034 |
6b2426805982684b8462529019f1a5746ca724bb | 390 | sql | SQL | sql/immutable/01-address.sql | warncke/immutable-commerce | 18adb9c5489265bbb4bd0ce46172048fefe9578e | [
"MIT"
] | null | null | null | sql/immutable/01-address.sql | warncke/immutable-commerce | 18adb9c5489265bbb4bd0ce46172048fefe9578e | [
"MIT"
] | null | null | null | sql/immutable/01-address.sql | warncke/immutable-commerce | 18adb9c5489265bbb4bd0ce46172048fefe9578e | [
"MIT"
] | null | null | null | CREATE TABLE `address` (
`addressId` binary(16) NOT NULL,
`accountId` binary(16) DEFAULT NULL,
`sessionId` binary(16) NOT NULL,
`addressData` mediumtext NOT NULL,
`addressType` varchar(255) DEFAULT NULL,
`addressCreateTime` datetime(6) NOT NULL,
PRIMARY KEY (`addressId`),
KEY `accountId` (`accountId`),
... | 32.5 | 43 | 0.712821 |
185385b42c4069985b3b5d0627dc0503694b1f41 | 407 | rb | Ruby | spec/rubyspec/core/numeric/odd_spec.rb | roblander/opal | 39f78566949ca42b02de39a7948bf4ddf5a07df5 | [
"MIT"
] | 1 | 2015-11-05T20:33:53.000Z | 2015-11-05T20:33:53.000Z | spec/rubyspec/core/numeric/odd_spec.rb | roblander/opal | 39f78566949ca42b02de39a7948bf4ddf5a07df5 | [
"MIT"
] | null | null | null | spec/rubyspec/core/numeric/odd_spec.rb | roblander/opal | 39f78566949ca42b02de39a7948bf4ddf5a07df5 | [
"MIT"
] | null | null | null | describe "Numeric#odd?" do
it "is false for zero" do
0.odd?.should be_false
end
it "is false for even positive Fixnums" do
4.odd?.should be_false
end
it "is false for even negative Fixnums" do
(-4).odd?.should be_false
end
it "is true for odd positive Fixnums" do
5.odd?.should be_true
... | 19.380952 | 44 | 0.668305 |
1f6893ebd4e4224a5dcf6d0a18feb4dc2b779eb8 | 7,813 | css | CSS | szgd/szgd-wechat-web/target/szgd-wechat-web/resources/template/cms/thkjy/css/style.css | huachao0410/myJavaDemo | 99ee3951e677c12d616f596cc3fa6e6d87221e84 | [
"Apache-2.0"
] | null | null | null | szgd/szgd-wechat-web/target/szgd-wechat-web/resources/template/cms/thkjy/css/style.css | huachao0410/myJavaDemo | 99ee3951e677c12d616f596cc3fa6e6d87221e84 | [
"Apache-2.0"
] | null | null | null | szgd/szgd-wechat-web/target/szgd-wechat-web/resources/template/cms/thkjy/css/style.css | huachao0410/myJavaDemo | 99ee3951e677c12d616f596cc3fa6e6d87221e84 | [
"Apache-2.0"
] | null | null | null | /*header*/
.header_outside{width: 100%; height: 50px;}
.header{position: fixed;top: 0; left: 0; z-index: 99; width: 100%; height: 50px; background: #12b7f5;}
.header .menu_icon_open{display: block; position: absolute;left: 0; top: 0; z-index: 22; width: 50px;height: 50px; text-align: center;line-height: 40px; color: #f... | 58.30597 | 199 | 0.716242 |
cb315730bf316573ab4eedc9ef121b533fd92afb | 1,036 | go | Go | amass/sources/arquivo.go | mikailtunc/Amass | fffcca4461d95cc95a4f2221e22239acb7d03e9a | [
"Apache-2.0"
] | null | null | null | amass/sources/arquivo.go | mikailtunc/Amass | fffcca4461d95cc95a4f2221e22239acb7d03e9a | [
"Apache-2.0"
] | null | null | null | amass/sources/arquivo.go | mikailtunc/Amass | fffcca4461d95cc95a4f2221e22239acb7d03e9a | [
"Apache-2.0"
] | 1 | 2021-08-14T18:04:48.000Z | 2021-08-14T18:04:48.000Z | // Copyright 2017 Jeff Foley. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
package sources
import "github.com/OWASP/Amass/amass/core"
// Arquivo is data source object type that implements the DataSource interface.
type Arquivo struct {
BaseDa... | 26.564103 | 97 | 0.73166 |
a18ee9fb9bcfa03b6cf0b9303e64f19e9e76b324 | 327 | sql | SQL | app/SQL/ajuste_salida_tipo.sql | abimael93/zapateria | d874e68d7b2e7b8c874cb4d7fff204ef515c9220 | [
"MIT"
] | null | null | null | app/SQL/ajuste_salida_tipo.sql | abimael93/zapateria | d874e68d7b2e7b8c874cb4d7fff204ef515c9220 | [
"MIT"
] | null | null | null | app/SQL/ajuste_salida_tipo.sql | abimael93/zapateria | d874e68d7b2e7b8c874cb4d7fff204ef515c9220 | [
"MIT"
] | null | null | null | INSERT INTO `zapateria`.`ajuste_salida_tipo` (`nombre`, `exclusivo_sistema`, `descripcion`) VALUES ('Devolución', 'N', 'Producto devuelto hacia el proveedor');
INSERT INTO `zapateria`.`ajuste_salida_tipo` (`nombre`, `exclusivo_sistema`, `descripcion`) VALUES ('Producción', 'N', 'Producto necesario para algún proceso/ta... | 109 | 166 | 0.752294 |
4a527b9ef6a99301c532b1a519ba2e16d92ad2fe | 633 | js | JavaScript | src/Header/Header.js | c-jordi/Antwork | e35b4b0ffd2063fbd2f6e29e17872cf3e90227fa | [
"MIT"
] | 1 | 2020-05-05T12:48:16.000Z | 2020-05-05T12:48:16.000Z | src/Header/Header.js | c-jordi/Antwork | e35b4b0ffd2063fbd2f6e29e17872cf3e90227fa | [
"MIT"
] | 4 | 2021-03-10T14:50:31.000Z | 2022-02-27T03:09:46.000Z | src/Header/Header.js | c-jordi/Antwork | e35b4b0ffd2063fbd2f6e29e17872cf3e90227fa | [
"MIT"
] | null | null | null | import React from "react";
import { BrowserRouter as Router, Link } from "react-router-dom";
import "./Header.css";
import ControlBar from "../ControlBar";
const Header = () => {
return (
<div className="header">
<div className="icon">
<span role="img" aria-label="Antwork">
🐜
</span>
</div>
<... | 18.617647 | 65 | 0.565561 |
7bc3aa3e0ce0700ac99793849a625feb1d66f776 | 671 | css | CSS | src/app/app.component.css | darendal/ostara | 1f00a14f4ab49aa0fa8dd48f07d21e754cc57d30 | [
"Apache-2.0"
] | null | null | null | src/app/app.component.css | darendal/ostara | 1f00a14f4ab49aa0fa8dd48f07d21e754cc57d30 | [
"Apache-2.0"
] | 3 | 2021-05-11T06:53:56.000Z | 2022-03-02T07:46:59.000Z | src/app/app.component.css | darendal/ostara | 1f00a14f4ab49aa0fa8dd48f07d21e754cc57d30 | [
"Apache-2.0"
] | null | null | null | .logo{
width: 90px;
margin-bottom: 0;
}
.wrap-branding{
display: block;
width: 100%;
top: 0;
left: 0;
padding: 20px 0 15px;
text-align: center;
transition: all .5s ease-in-out;
z-index: 9;
}
.nav {
justify-content: center;
text-align: center;
}
.sidebar {
flex: 0 0 12em;
}
.title-bar {
ju... | 13.156863 | 40 | 0.608048 |
0bb6a5d642c93c26a0b0cbe953e0b9d6df9f6ced | 524 | js | JavaScript | src/components/GameOfLife/GameOfLife.js | stefanwille/react-gameoflife | 65682067832b7fd08a5f3f7038086b606f44ae82 | [
"MIT"
] | null | null | null | src/components/GameOfLife/GameOfLife.js | stefanwille/react-gameoflife | 65682067832b7fd08a5f3f7038086b606f44ae82 | [
"MIT"
] | null | null | null | src/components/GameOfLife/GameOfLife.js | stefanwille/react-gameoflife | 65682067832b7fd08a5f3f7038086b606f44ae82 | [
"MIT"
] | null | null | null | import React from 'react'
import HeadLine from 'components/HeadLine/HeadLine'
import Controls from 'components/Controls/Controls'
import Board from 'components/Board/Board'
import Dimensions from 'components/Dimensions/Dimensions'
import PlayLoop from 'components/PlayLoop/PlayLoop'
import './GameOfLife.scss'
const G... | 20.153846 | 57 | 0.696565 |
217d246671db25b05a61f58edab621aaa32610d3 | 757 | sql | SQL | src/EdFi.AnalyticsMiddleTier.DataStandard33/Indexes/MSSQL/0001-Index-Grade-Create.sql | jleiva-gap/Ed-Fi-Analytics-Middle-Tier | e9cfb3545ee40c330cab1286b5cbdbd1417bc696 | [
"Apache-2.0"
] | 5 | 2020-05-27T14:29:49.000Z | 2022-01-10T06:26:17.000Z | src/EdFi.AnalyticsMiddleTier.DataStandard33/Indexes/MSSQL/0001-Index-Grade-Create.sql | jleiva-gap/Ed-Fi-Analytics-Middle-Tier | e9cfb3545ee40c330cab1286b5cbdbd1417bc696 | [
"Apache-2.0"
] | 41 | 2020-05-04T22:46:00.000Z | 2022-03-29T16:46:12.000Z | src/EdFi.AnalyticsMiddleTier.DataStandard33/Indexes/MSSQL/0001-Index-Grade-Create.sql | jleiva-gap/Ed-Fi-Analytics-Middle-Tier | e9cfb3545ee40c330cab1286b5cbdbd1417bc696 | [
"Apache-2.0"
] | 9 | 2020-06-21T18:12:52.000Z | 2021-12-02T16:55:11.000Z | -- SPDX-License-Identifier: Apache-2.0
-- Licensed to the Ed-Fi Alliance under one or more agreements.
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
-- See the LICENSE and NOTICES files in the project root for more information.
IF NOT EXISTS (SELECT * FROM sys.indexes WHERE NA... | 58.230769 | 134 | 0.805812 |
35cb0b95eb8ab7de23bd8cecd4b371610c69f84e | 7,687 | lua | Lua | system_drive/libs/window.lua | poeticAndroid/homegirl_pro | 224f7060423ed3d615baf0116029c9cf8eeb6c3d | [
"MIT"
] | 7 | 2020-05-09T06:12:53.000Z | 2021-05-29T02:50:45.000Z | system_drive/libs/window.lua | poeticAndroid/homegirl_pro | 224f7060423ed3d615baf0116029c9cf8eeb6c3d | [
"MIT"
] | 1 | 2020-08-16T13:44:11.000Z | 2020-08-18T09:35:59.000Z | system_drive/libs/window.lua | poeticAndroid/homegirl_pro | 224f7060423ed3d615baf0116029c9cf8eeb6c3d | [
"MIT"
] | null | null | null | local Widget = require("widget")
local Window = Widget:extend()
do
function Window:constructor(title, left, top, width, height, parent)
self.children = {}
self:attachto(nil, parent, parent)
self:size(width, height)
self:position(left, top)
self:title(title)
end
function Window:attachto(...)
... | 28.261029 | 82 | 0.605958 |
c66c209af731970bf59a8e4f14b9474866b8b913 | 922 | rb | Ruby | lib/archangel_posts/engine.rb | archangel/archangel_posts | 41c465bd2f8b5ca101d1c9f88510e158a53ad35f | [
"MIT"
] | null | null | null | lib/archangel_posts/engine.rb | archangel/archangel_posts | 41c465bd2f8b5ca101d1c9f88510e158a53ad35f | [
"MIT"
] | null | null | null | lib/archangel_posts/engine.rb | archangel/archangel_posts | 41c465bd2f8b5ca101d1c9f88510e158a53ad35f | [
"MIT"
] | null | null | null | module ArchangelPosts
class Engine < ::Rails::Engine
require "archangel"
isolate_namespace Archangel
engine_name "archangel_posts"
config.generators do |g|
g.test_framework :rspec,
fixtures: false,
view_specs: false,
helper_s... | 28.8125 | 77 | 0.596529 |
b650548ec3f39f4fca2c37282c163177d1c9a14b | 631 | rb | Ruby | ee/app/services/ee/applications/create_service.rb | 0vert1m3/test | 2efa557754bb7c8b2f0cd75e4d6c12e06d134f32 | [
"MIT"
] | null | null | null | ee/app/services/ee/applications/create_service.rb | 0vert1m3/test | 2efa557754bb7c8b2f0cd75e4d6c12e06d134f32 | [
"MIT"
] | null | null | null | ee/app/services/ee/applications/create_service.rb | 0vert1m3/test | 2efa557754bb7c8b2f0cd75e4d6c12e06d134f32 | [
"MIT"
] | 2 | 2019-11-28T19:12:40.000Z | 2020-11-04T05:29:58.000Z | module EE
module Applications
# rubocop:disable Gitlab/ModuleWithInstanceVariables
module CreateService
def execute(request)
super.tap do |application|
audit_event_service(request.remote_ip).for_user(application.name).security_event
end
end
def audit_event_service(... | 30.047619 | 90 | 0.570523 |
97d647435a896334265b8467605a2fe3d354e33b | 128 | sql | SQL | src/test/resources/boundary4.test_42.sql | jdkoren/sqlite-parser | 9adf75ff5eca36f6e541594d2e062349f9ced654 | [
"MIT"
] | 131 | 2015-03-31T18:59:14.000Z | 2022-03-09T09:51:06.000Z | src/test/resources/boundary4.test_42.sql | jdkoren/sqlite-parser | 9adf75ff5eca36f6e541594d2e062349f9ced654 | [
"MIT"
] | 20 | 2015-03-31T21:35:38.000Z | 2018-07-02T16:15:51.000Z | src/test/resources/boundary4.test_42.sql | jdkoren/sqlite-parser | 9adf75ff5eca36f6e541594d2e062349f9ced654 | [
"MIT"
] | 43 | 2015-04-28T02:01:55.000Z | 2021-06-06T09:33:38.000Z | -- boundary4.test
--
-- db eval {
-- UPDATE t1 SET rowid=a, a=rowid, x=z, z=x
-- }
UPDATE t1 SET rowid=a, a=rowid, x=z, z=x | 21.333333 | 47 | 0.570313 |
c42787066617e25c95da296ab2889e14134d9002 | 1,952 | h | C | FreeBSD/contrib/llvm/tools/lldb/include/lldb/Breakpoint/BreakpointIDList.h | TigerBSD/FreeBSD-Custom-ThinkPad | 3d092f261b362f73170871403397fc5d6b89d1dc | [
"0BSD"
] | 4 | 2016-08-22T22:02:55.000Z | 2017-03-04T22:56:44.000Z | FreeBSD/contrib/llvm/tools/lldb/include/lldb/Breakpoint/BreakpointIDList.h | TigerBSD/FreeBSD-Custom-ThinkPad | 3d092f261b362f73170871403397fc5d6b89d1dc | [
"0BSD"
] | 21 | 2016-08-11T09:43:43.000Z | 2017-01-29T12:52:56.000Z | FreeBSD/contrib/llvm/tools/lldb/include/lldb/Breakpoint/BreakpointIDList.h | TigerBSD/TigerBSD | 3d092f261b362f73170871403397fc5d6b89d1dc | [
"0BSD"
] | null | null | null | //===-- BreakpointIDList.h --------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 23.518072 | 127 | 0.623975 |
1f880f681f5ff376997de35606d3f926b1167848 | 5,236 | html | HTML | app/views/lfd-home-ordering/v3/test-choice.html | uk-gov-mirror/nhsdigital.nhs-antibody-testing-registration-prototype | 3085f9ba81d016a3060b7a9ff6d000ebd52530f5 | [
"MIT"
] | 7 | 2020-08-26T08:40:34.000Z | 2022-01-05T19:26:52.000Z | app/views/lfd-home-ordering/v3/test-choice.html | uk-gov-mirror/nhsdigital.nhs-antibody-testing-registration-prototype | 3085f9ba81d016a3060b7a9ff6d000ebd52530f5 | [
"MIT"
] | 3 | 2020-11-26T16:21:58.000Z | 2021-05-12T09:49:39.000Z | app/views/lfd-home-ordering/v3/test-choice.html | uk-gov-mirror/nhsdigital.nhs-antibody-testing-registration-prototype | 3085f9ba81d016a3060b7a9ff6d000ebd52530f5 | [
"MIT"
] | 19 | 2020-06-11T10:31:39.000Z | 2022-03-30T10:15:59.000Z | {% set version = "v3" %}
{% set pageTitle = "How do you want to get the coronavirus test?" %}
{% extends "includes/layout.html" %}
{% block beforeContent %}
<div class="govuk-phase-banner">
<p class="govuk-phase-banner__content">
<strong class="govuk-tag govuk-phase-banner__content__tag">
alpha
... | 55.702128 | 242 | 0.540489 |
4118163215955ea20a7a9337d04632245968123a | 1,310 | h | C | modules/ngx_tcp_ssl_module.h | chobits/nginx_tcp_proxy_module | 213b59d26ff9ec4a37030666e3e317b4c243d722 | [
"Unlicense"
] | 1,074 | 2015-01-06T07:47:36.000Z | 2022-03-29T20:28:10.000Z | modules/ngx_tcp_ssl_module.h | chobits/nginx_tcp_proxy_module | 213b59d26ff9ec4a37030666e3e317b4c243d722 | [
"Unlicense"
] | 80 | 2015-01-22T02:40:38.000Z | 2022-01-24T01:04:08.000Z | modules/ngx_tcp_ssl_module.h | chobits/nginx_tcp_proxy_module | 213b59d26ff9ec4a37030666e3e317b4c243d722 | [
"Unlicense"
] | 286 | 2015-01-06T23:52:47.000Z | 2022-03-29T02:47:49.000Z |
#ifndef _NGX_TCP_SSL_H_INCLUDED_
#define _NGX_TCP_SSL_H_INCLUDED_
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_tcp.h>
typedef struct {
ngx_flag_t enable;
ngx_ssl_t ssl;
ngx_flag_t prefer_server_ciphers;
ngx_uint_t ... | 24.716981 | 58 | 0.509924 |
dd1ceea118ab3f26da3035d5115b14faafc67fa9 | 846 | go | Go | mdl/retention/t_bc_test.go | kld123509945/gofem | 7670324a6a6bf4a859a78d0db4b1eb67e81847db | [
"BSD-3-Clause"
] | 1 | 2020-06-24T07:55:38.000Z | 2020-06-24T07:55:38.000Z | mdl/retention/t_bc_test.go | kld123509945/gofem | 7670324a6a6bf4a859a78d0db4b1eb67e81847db | [
"BSD-3-Clause"
] | null | null | null | mdl/retention/t_bc_test.go | kld123509945/gofem | 7670324a6a6bf4a859a78d0db4b1eb67e81847db | [
"BSD-3-Clause"
] | 1 | 2020-10-13T13:22:18.000Z | 2020-10-13T13:22:18.000Z | // Copyright 2016 The Gofem Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package retention
import (
"testing"
"github.com/cpmech/gosl/chk"
"github.com/cpmech/gosl/plt"
)
func Test_bc01(tst *testing.T) {
//verbose()
chk.Pr... | 20.634146 | 131 | 0.646572 |
b2bd4f949111e868e7c604ca11722af37078a8f7 | 1,889 | rs | Rust | panic_examples/closures/rustc_234/test1.rs | ani003/prusti_panic_test | a1d26a5506a719704ab86942d45efff10651b06e | [
"MIT"
] | null | null | null | panic_examples/closures/rustc_234/test1.rs | ani003/prusti_panic_test | a1d26a5506a719704ab86942d45efff10651b06e | [
"MIT"
] | null | null | null | panic_examples/closures/rustc_234/test1.rs | ani003/prusti_panic_test | a1d26a5506a719704ab86942d45efff10651b06e | [
"MIT"
] | null | null | null | fn main() {
let _ = (0..1).map(Some);
}
/*
thread 'rustc' panicked at 'DefId::expect_local: `DefId(2:40546 ~ core[734c]::option::Option::Some::{constructor#0})` isn't local', /rustc/8007b506ac5da629f223b755f5a5391edd5f6d01/compiler/rustc_span/src/def_id.rs:234:43
stack backtrace:
0: rust_begin_unwind
... | 57.242424 | 220 | 0.784013 |
32c8f31b9bf18e1374337cbac35262c6899aa168 | 86 | kt | Kotlin | library-store-coroutines/src/test/java/ru/fabit/storecoroutines/order/OrderState.kt | FabitMobile/store-coroutines | a9d053e5b1918faa5f3c33efe59af16e128bc3f6 | [
"MIT"
] | null | null | null | library-store-coroutines/src/test/java/ru/fabit/storecoroutines/order/OrderState.kt | FabitMobile/store-coroutines | a9d053e5b1918faa5f3c33efe59af16e128bc3f6 | [
"MIT"
] | null | null | null | library-store-coroutines/src/test/java/ru/fabit/storecoroutines/order/OrderState.kt | FabitMobile/store-coroutines | a9d053e5b1918faa5f3c33efe59af16e128bc3f6 | [
"MIT"
] | null | null | null | package ru.fabit.storecoroutines.order
data class OrderState(
val value: String
) | 17.2 | 38 | 0.77907 |
85d1d13a76fe375430d96b2b341507ec5740d438 | 11,559 | js | JavaScript | redpwn/2021/pwn/empires/mojojs/gen/third_party/blink/public/mojom/interest_group/restricted_interest_group_store.mojom.js | ruhan-islam/ctf-archives | 8c2bf6a608c821314d1a1cfaa05a6cccef8e3103 | [
"MIT"
] | 1 | 2021-11-02T20:53:58.000Z | 2021-11-02T20:53:58.000Z | redpwn/2021/pwn/empires/mojojs/gen/third_party/blink/public/mojom/interest_group/restricted_interest_group_store.mojom.js | ruhan-islam/ctf-archives | 8c2bf6a608c821314d1a1cfaa05a6cccef8e3103 | [
"MIT"
] | null | null | null | redpwn/2021/pwn/empires/mojojs/gen/third_party/blink/public/mojom/interest_group/restricted_interest_group_store.mojom.js | ruhan-islam/ctf-archives | 8c2bf6a608c821314d1a1cfaa05a6cccef8e3103 | [
"MIT"
] | null | null | null | // third_party/blink/public/mojom/interest_group/restricted_interest_group_store.mojom.js is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'... | 39.99654 | 151 | 0.763215 |
bcc92458c391c8085583fce51cfa1038a1f33f6c | 1,072 | js | JavaScript | frontend/app/src/_services/user.service.js | dnguyenngoc/film | e1dcf447d298f7666194ad308cb7c2686cad9962 | [
"BSD-2-Clause"
] | 1 | 2020-11-28T18:58:47.000Z | 2020-11-28T18:58:47.000Z | frontend/app/src/_services/user.service.js | dnguyenngoc/film | e1dcf447d298f7666194ad308cb7c2686cad9962 | [
"BSD-2-Clause"
] | null | null | null | frontend/app/src/_services/user.service.js | dnguyenngoc/film | e1dcf447d298f7666194ad308cb7c2686cad9962 | [
"BSD-2-Clause"
] | null | null | null | // import { authHeader } from '../_helpers';
import config from 'config';
export const userService = {
login,
logout
};
function login(username, password) {
const requestOptions = {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ username, pa... | 28.210526 | 110 | 0.623134 |
8efbbbcb9aabf6db05a2c1f3377b25ca1fa926e9 | 471 | rb | Ruby | app/models/concerns/user_capabilities.rb | clacroix12/catalog-api | 15be3ab8961a64bbdbd3d2d356cde01891700d05 | [
"Apache-2.0"
] | 2 | 2020-05-05T21:58:57.000Z | 2020-09-04T13:51:56.000Z | app/models/concerns/user_capabilities.rb | clacroix12/catalog-api | 15be3ab8961a64bbdbd3d2d356cde01891700d05 | [
"Apache-2.0"
] | 358 | 2019-11-15T21:04:10.000Z | 2022-01-21T01:47:49.000Z | app/models/concerns/user_capabilities.rb | clacroix12/catalog-api | 15be3ab8961a64bbdbd3d2d356cde01891700d05 | [
"Apache-2.0"
] | 10 | 2020-02-19T16:19:19.000Z | 2021-04-14T16:20:45.000Z | module UserCapabilities
include Pundit
extend ActiveSupport::Concern
included do
attribute :metadata, ActiveRecord::Type::Json.new
end
class_methods do
def policy_class
@policy_class ||= "#{self}Policy".constantize
end
end
private
def user_capabilities
return nil if user_contex... | 17.444444 | 69 | 0.738854 |
71bfef80486fba5c6d181919493667fdf5ccafa5 | 227 | kt | Kotlin | src/main/kotlin/armada/engine/api/TheatreData.kt | fr33r4ng3r/armada | 90610d9ab60248f42630a90ab110f0c9ac4b0cc0 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/main/kotlin/armada/engine/api/TheatreData.kt | fr33r4ng3r/armada | 90610d9ab60248f42630a90ab110f0c9ac4b0cc0 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/main/kotlin/armada/engine/api/TheatreData.kt | fr33r4ng3r/armada | 90610d9ab60248f42630a90ab110f0c9ac4b0cc0 | [
"Apache-2.0",
"MIT"
] | null | null | null | package armada.engine.api
data class TheatreData(val gridWidth: Int, val gridHeight: Int, val numberOfShips: Int, val ships: List<ShipData>) {
data class ShipData(val descriptor: String, val width: Int, val length: Int)
}
| 37.833333 | 116 | 0.753304 |
c4f3f2ff2b3beb7b020d479852a3b6514dd8b23d | 563 | swift | Swift | workspaces/ios-javascript/JavascriptWrapper/SetTimeout.swift | philips-software/cogito | e84ddb4fb1e9ae95652595f3111c43eebb6e4982 | [
"MIT"
] | 17 | 2018-08-15T08:53:18.000Z | 2022-02-17T10:10:52.000Z | workspaces/ios-javascript/JavascriptWrapper/SetTimeout.swift | philips-software/cogito | e84ddb4fb1e9ae95652595f3111c43eebb6e4982 | [
"MIT"
] | 105 | 2018-09-21T13:42:22.000Z | 2022-02-26T21:31:51.000Z | workspaces/ios-javascript/JavascriptWrapper/SetTimeout.swift | philips-software/cogito | e84ddb4fb1e9ae95652595f3111c43eebb6e4982 | [
"MIT"
] | 7 | 2018-08-07T06:58:35.000Z | 2019-04-09T05:22:54.000Z | import JavaScriptCore
public extension JSContext {
public func addSetTimeout() -> JSContext {
self.globalObject.setValue(setTimeout, forProperty: "setTimeout")
return self
}
}
fileprivate let setTimeout: @convention(block) (JSValue?, JSValue?) -> Void = { callback, milliseconds in
var dela... | 29.631579 | 105 | 0.676732 |
6ee17b533d12addc33dc420f2573dceab7b2d519 | 4,098 | html | HTML | application/shop/view/shop_info/dispatchArea.html | tsingStar/tpybt | a91453802fc612761825160f4e63d3710b1c5111 | [
"Apache-2.0"
] | null | null | null | application/shop/view/shop_info/dispatchArea.html | tsingStar/tpybt | a91453802fc612761825160f4e63d3710b1c5111 | [
"Apache-2.0"
] | null | null | null | application/shop/view/shop_info/dispatchArea.html | tsingStar/tpybt | a91453802fc612761825160f4e63d3710b1c5111 | [
"Apache-2.0"
] | null | null | null | {include file='pub/header'/}
<title>小区列表</title>
</head>
<body class="pos-r">
<div>
<nav class="breadcrumb">{$breadNav} <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
href="javascript:location.replace(location.href);" title="刷新"><i
... | 33.590164 | 119 | 0.418009 |
dd66aeadc83afe26033cefc1913ea0c459cc15c2 | 4,345 | swift | Swift | OktoIDE/Pods/Prestyler/Prestyler/Classes/Extensions.swift | MediBoss/OktoIDE | e34fa137b5f093c32b7f2ad7a016f5ecacf4cf36 | [
"Apache-2.0"
] | null | null | null | OktoIDE/Pods/Prestyler/Prestyler/Classes/Extensions.swift | MediBoss/OktoIDE | e34fa137b5f093c32b7f2ad7a016f5ecacf4cf36 | [
"Apache-2.0"
] | 2 | 2019-07-08T23:43:09.000Z | 2019-07-17T16:43:50.000Z | OktoIDE/Pods/Prestyler/Prestyler/Classes/Extensions.swift | mediassumani/OktoIDE | e34fa137b5f093c32b7f2ad7a016f5ecacf4cf36 | [
"Apache-2.0"
] | null | null | null | //
// StringExtension.swift
// Pods-Prestyler_Example
//
// Created by Ilya Krupko on 28/02/2019.
//
import Foundation
/// Prestyler uses a public extension to provide access to string formatting. Next methods can be used for every string.
public extension String {
/// Convert string to attributed string by ... | 35.040323 | 120 | 0.588953 |
559619a6f9f6780fbcd4571407fd564c05405520 | 703 | html | HTML | app/user/templates/registration/password_reset_form.html | duboisR/django-stripe | add707f91ca43522ca19b7b735196ddc16aad651 | [
"MIT"
] | null | null | null | app/user/templates/registration/password_reset_form.html | duboisR/django-stripe | add707f91ca43522ca19b7b735196ddc16aad651 | [
"MIT"
] | null | null | null | app/user/templates/registration/password_reset_form.html | duboisR/django-stripe | add707f91ca43522ca19b7b735196ddc16aad651 | [
"MIT"
] | null | null | null | {% extends 'base.html' %}
{% block extend_title %}Forgot PWD |{% endblock %}
{% block content %}
<div class="col-6 mx-auto pt-5">
<div class="border rounded p-4">
<h3 class="mb-5 text-center">Forgot password</h3>
<form method="post">
{% csrf_token %}
<div class="form-grou... | 30.565217 | 109 | 0.536273 |
47908c0cbc123206fb23a6e466b7b81e41a1e7af | 306 | htm | HTML | dist/gameserver/data/html-en/quests/_194_SevenSignsMammonsContract/colin_q194_12a.htm | Arodev76/L2Advanced | 12625a32ea7114b9d1d1ac0238da8422d714fc17 | [
"MIT"
] | 7 | 2018-02-05T10:28:56.000Z | 2020-08-06T06:35:54.000Z | dist/gameserver/data/html-en/quests/_194_SevenSignsMammonsContract/colin_q194_12a.htm | Kryspo/L2jRamsheart | 98c39d754f5aba1806f92acc9e8e63b3b827be49 | [
"MIT"
] | 3 | 2020-02-26T06:49:17.000Z | 2020-03-05T05:11:05.000Z | dist/gameserver/data/html-en/quests/_194_SevenSignsMammonsContract/colin_q194_12a.htm | Kryspo/L2jRamsheart | 98c39d754f5aba1806f92acc9e8e63b3b827be49 | [
"MIT"
] | 12 | 2018-02-12T20:58:07.000Z | 2020-06-07T02:44:42.000Z | !Secret Agent Collin:
There - you're a child again. Now hurry and bring me a belonging from the old woman, all right?
Now the transformation won't last long, so move fast, and steer clear of water! You'll also want to use some of your movement skills to get you there before the illusion wears off.
Go!
| 38.25 | 180 | 0.761438 |
5ae222da8ce3145238c55a2bbf4a71a4f81e8c8a | 5,657 | rs | Rust | layout21raw/src/bbox.rs | colepoirier/Layout21 | 227c0a317619176e9b4ca87aa23cbd99526f260c | [
"BSD-3-Clause"
] | null | null | null | layout21raw/src/bbox.rs | colepoirier/Layout21 | 227c0a317619176e9b4ca87aa23cbd99526f260c | [
"BSD-3-Clause"
] | null | null | null | layout21raw/src/bbox.rs | colepoirier/Layout21 | 227c0a317619176e9b4ca87aa23cbd99526f260c | [
"BSD-3-Clause"
] | null | null | null | //!
//! # Rectangular Bounding Boxes and Associated Trait
//!
// Crates.io
use serde::{Deserialize, Serialize};
// Local imports
use crate::{
geom::{Point, Shape},
Int, Rect,
};
/// # Axis-Aligned Rectangular Bounding Box
///
/// Points `p0` and `p1` represent opposite corners of a bounding rectangle.
/// `p... | 33.473373 | 89 | 0.574156 |
e71a9018506274fe3929425ceb0e6a2195c9ffbd | 734 | js | JavaScript | 7-kyu/Find the Square Root/index.js | ayessetova/codeW | fa5479162a19b863047ea318ad728c86946a3f46 | [
"MIT"
] | 314 | 2017-12-08T16:51:31.000Z | 2022-03-30T01:59:49.000Z | 7-kyu/Find the Square Root/index.js | ayessetova/codeW | fa5479162a19b863047ea318ad728c86946a3f46 | [
"MIT"
] | 4 | 2018-04-27T03:54:20.000Z | 2020-12-06T20:13:40.000Z | 7-kyu/Find the Square Root/index.js | ayessetova/codeW | fa5479162a19b863047ea318ad728c86946a3f46 | [
"MIT"
] | 141 | 2017-12-18T18:19:13.000Z | 2022-03-29T12:16:38.000Z | /*
Title:
Find the Square Root
Description:
Create a Function that takes one parameter and returns its square root rounded to 5 decimal places.
You are not allowed to use the Math.sqrt() or the Math.pow() methods.
Notes:
Trailing zeros should be left out. For example
squareRoot(39) // => 6... | 24.466667 | 103 | 0.685286 |
f056ae8251838894808d67cd460616e37f606b9f | 1,938 | js | JavaScript | src/components/Articles/ArticlesLarge.js | DomenART/stroydrevgroup | 11015d96f819bb1d8570a64aedcc7fce9d06edbb | [
"MIT"
] | 1 | 2019-05-23T22:57:03.000Z | 2019-05-23T22:57:03.000Z | src/components/Articles/ArticlesLarge.js | DomenART/stroydrevgroup | 11015d96f819bb1d8570a64aedcc7fce9d06edbb | [
"MIT"
] | null | null | null | src/components/Articles/ArticlesLarge.js | DomenART/stroydrevgroup | 11015d96f819bb1d8570a64aedcc7fce9d06edbb | [
"MIT"
] | null | null | null | import React, { Component } from 'react'
import classNames from 'classnames'
import urlParse from 'url-parse'
import Link from '../UI/Link'
import SvgIcon from '../UI/SvgIcon'
import styles from './ArticlesLarge.module.sass'
class ArticlesLarge extends Component {
render() {
const { title, link, thumbnail,... | 34 | 75 | 0.437049 |
5fb2dc0ed4ef9c084300299a5e6ce1b8fb549683 | 1,713 | css | CSS | assets/css/style.css | khnguyen94/NBA-Trivia | 573a04ae73306940b2f559749b58e5d35df6b944 | [
"MIT"
] | null | null | null | assets/css/style.css | khnguyen94/NBA-Trivia | 573a04ae73306940b2f559749b58e5d35df6b944 | [
"MIT"
] | null | null | null | assets/css/style.css | khnguyen94/NBA-Trivia | 573a04ae73306940b2f559749b58e5d35df6b944 | [
"MIT"
] | null | null | null | html {
height: 100%;
}
body {
background-image: url("../images/court-background.jpg");
background-repeat: no-repeat;
background-size: 100rem;
background-attachment: fixed;
background-position: center;
height: 100%;
}
#app-wrapper {
height: 90%;
box-sizing: border-box;
margin: 2... | 16.314286 | 60 | 0.598949 |
e9532f24592c48ae3041a15182ad502ad19ce5a4 | 3,734 | rs | Rust | src/lib.rs | 1011X/inkml | f2fea66841307f7220acdccbd0963ec942ca4175 | [
"MIT"
] | null | null | null | src/lib.rs | 1011X/inkml | f2fea66841307f7220acdccbd0963ec942ca4175 | [
"MIT"
] | null | null | null | src/lib.rs | 1011X/inkml | f2fea66841307f7220acdccbd0963ec942ca4175 | [
"MIT"
] | null | null | null | // TODO:
// + what will the api look like?
// + will it be like the xml and svg crates, i.e. with events?
// + or more "high-level" than that?
// + ...or both?
// + is an api like svg's necessary if xml-rs can already achieve the same thing?
// + how will the data be presented?
// + what fields will be public... | 24.728477 | 83 | 0.491162 |
f0430557dbfd094f1b6f8f4b8c1e8e82129f2452 | 6,822 | js | JavaScript | dist/models/state-models.js | a9udn9u/last-step | 7e7e95ed52f8f8af9cb0621ac618859f95843cc1 | [
"MIT"
] | 2 | 2017-03-28T00:16:40.000Z | 2018-11-18T06:24:54.000Z | dist/models/state-models.js | a9udn9u/last-step | 7e7e95ed52f8f8af9cb0621ac618859f95843cc1 | [
"MIT"
] | null | null | null | dist/models/state-models.js | a9udn9u/last-step | 7e7e95ed52f8f8af9cb0621ac618859f95843cc1 | [
"MIT"
] | null | null | null | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("~/utils");
/**
* Simple 1-to-M mapping
*/
class OneToMany extends Map {
constructor() {
super();
}
}
/**
* Target to sources mapping
*/
class TargetToSources extends OneToMany {
/**
* Key i... | 100.323529 | 4,970 | 0.880827 |
cb6d2278c36538a57e3c5dbd40ff6e59281167a7 | 3,505 | go | Go | main.go | kscarlett/nginx-log-generator | afd35e6114802159da59685f758a7c082ec5e434 | [
"MIT"
] | 37 | 2020-01-09T13:40:39.000Z | 2022-03-16T12:33:34.000Z | main.go | kscarlett/nginx-log-generator | afd35e6114802159da59685f758a7c082ec5e434 | [
"MIT"
] | 1 | 2022-03-24T16:51:21.000Z | 2022-03-24T16:51:21.000Z | main.go | kscarlett/nginx-log-generator | afd35e6114802159da59685f758a7c082ec5e434 | [
"MIT"
] | 5 | 2020-11-21T19:55:37.000Z | 2021-12-13T09:29:22.000Z | package main
import (
"fmt"
"strings"
"time"
"github.com/brianvoe/gofakeit/v6"
"github.com/caarlos0/env/v6"
)
type config struct {
Rate float32 `env:"RATE" envDefault:"1"`
IPv4Percent int `env:"IPV4_PERCENT" envDefault:"100"`
StatusOkPercent int `env:"STATUS_OK_PERCENT" envDefault:"... | 26.156716 | 193 | 0.679315 |
0ee04d971595e99d456de4640f915ca4e86c3100 | 3,041 | h | C | include/book.h | hdp1213/billionaire | 96a2138665c9f546971a6a732ee5f56609a7f598 | [
"MIT"
] | null | null | null | include/book.h | hdp1213/billionaire | 96a2138665c9f546971a6a732ee5f56609a7f598 | [
"MIT"
] | null | null | null | include/book.h | hdp1213/billionaire | 96a2138665c9f546971a6a732ee5f56609a7f598 | [
"MIT"
] | null | null | null | #ifndef _BOOK_H_
#define _BOOK_H_
#include <stdlib.h>
#include <stdbool.h>
#include <json-c/json.h>
#include "card_location.h"
#include "utils.h"
#define OFFER_INDEX_OFFSET 2
#define MAX_PARTICIPANTS 2
typedef struct book book;
typedef struct offer offer;
/**
* Struct storing current offers.
*/
struct book {
... | 20.273333 | 76 | 0.699112 |
5a948b17bf5c78c6101424ac9c19a5ada0957d8a | 17,644 | pck | SQL | dataplots/THERM_00/120/aS120_gr3.700_mu0.104_T1.090.pck | PedroMDuarte/hubbard-lda3 | 485b290c7bff97143f6f865b88131620f63282d7 | [
"Unlicense",
"MIT"
] | 2 | 2020-12-20T03:05:02.000Z | 2021-01-18T13:50:33.000Z | dataplots/THERM_00/120/aS120_gr3.700_mu0.104_T1.090.pck | liangjj/hubbard-lda3 | 47c3257140da265cd9e74be1a8a04b45844cba48 | [
"Unlicense",
"MIT"
] | null | null | null | dataplots/THERM_00/120/aS120_gr3.700_mu0.104_T1.090.pck | liangjj/hubbard-lda3 | 47c3257140da265cd9e74be1a8a04b45844cba48 | [
"Unlicense",
"MIT"
] | 6 | 2015-04-24T08:18:27.000Z | 2021-02-06T12:26:31.000Z | (dp0
S'gr'
p1
F3.7
sS'k111'
p2
NsS't111'
p3
cnumpy.core.multiarray
_reconstruct
p4
(cnumpy
ndarray
p5
(I0
tp6
S'b'
p7
tp8
Rp9
(I1
(I80
tp10
cnumpy
dtype
p11
(S'f8'
p12
I0
I1
tp13
Rp14
(I3
S'<'
p15
NNNI-1
I-1
I0
tp16
bI00
S'`{,\x1f\xff\xb3\xb5?+\xd3\xbds\xbe\r\xb5?\xbb\xb4\xbb\x13\x93r\xb4?\x00\xcd\x8d\xcb}\xd7\xb3?\x05... | 70.294821 | 1,952 | 0.705849 |
28a04347113095a03f086fc1cb50fcfa10a4b5c3 | 366 | kt | Kotlin | zircon.core/src/commonMain/kotlin/org/hexworks/zircon/api/extensions/TileExtensions.kt | EnderL2000/zircon | fd3857d42c0d03f73b720876250be70ae6b9d788 | [
"MIT"
] | null | null | null | zircon.core/src/commonMain/kotlin/org/hexworks/zircon/api/extensions/TileExtensions.kt | EnderL2000/zircon | fd3857d42c0d03f73b720876250be70ae6b9d788 | [
"MIT"
] | null | null | null | zircon.core/src/commonMain/kotlin/org/hexworks/zircon/api/extensions/TileExtensions.kt | EnderL2000/zircon | fd3857d42c0d03f73b720876250be70ae6b9d788 | [
"MIT"
] | null | null | null | package org.hexworks.zircon.api.extensions
import org.hexworks.zircon.api.data.Tile
fun List<Tile>.transform(tileTransformer: (Tile) -> Tile): List<Tile> {
return this.map(tileTransformer::invoke)
}
fun List<Tile>.transformIndexed(transformer: (Int, Tile) -> Tile): List<Tile> {
return this.mapIndexed { index... | 30.5 | 79 | 0.73224 |
6c45d8720237f3f673b225f2631cd7d031215a6a | 739 | lua | Lua | secure-boot-genkey.lua | oc-t35/secure-boot-lua-BIOS | 250bcc4ec56d90d0ec98a2038c715c8f6a5801c0 | [
"Unlicense"
] | null | null | null | secure-boot-genkey.lua | oc-t35/secure-boot-lua-BIOS | 250bcc4ec56d90d0ec98a2038c715c8f6a5801c0 | [
"Unlicense"
] | null | null | null | secure-boot-genkey.lua | oc-t35/secure-boot-lua-BIOS | 250bcc4ec56d90d0ec98a2038c715c8f6a5801c0 | [
"Unlicense"
] | null | null | null | local io = require("io")
local component = require("component")
local data
for d in component.list("data") do
d = component.proxy(d)
if d.generateKeyPair ~= nil then
data = d
end
end
if data == nil then
print("You need a T3 data card for secure boot!")
return
end
print("generating keypair")
local pub, priv = dat... | 21.735294 | 50 | 0.691475 |
4c00a61ce18e0e6bf38c4294d512c9e1642981fe | 1,121 | kt | Kotlin | Boats_to_Save_People_v1.kt | xiekc/leetcode | 56dc65850ac68752f7c6f50f8b35eb23bfafed93 | [
"MIT"
] | null | null | null | Boats_to_Save_People_v1.kt | xiekc/leetcode | 56dc65850ac68752f7c6f50f8b35eb23bfafed93 | [
"MIT"
] | null | null | null | Boats_to_Save_People_v1.kt | xiekc/leetcode | 56dc65850ac68752f7c6f50f8b35eb23bfafed93 | [
"MIT"
] | null | null | null | class Solution {
fun numRescueBoats(people: IntArray, limit: Int): Int {
people.sort()
var left = 0
var right = people.size - 1
var result = 0
while (right >= left) {
var sum = 0
var count = 0
while (right >= left && sum + people[right] <= ... | 30.297297 | 101 | 0.482605 |
9c0464d3febf40d0d8a4cd5697b9e27ca24b15b7 | 2,912 | js | JavaScript | src/domains/components/SlaveZone.js | mighteejim/manager | 86365b7142a78956e04821c0cb9e0adadaf0de3c | [
"BSD-3-Clause"
] | null | null | null | src/domains/components/SlaveZone.js | mighteejim/manager | 86365b7142a78956e04821c0cb9e0adadaf0de3c | [
"BSD-3-Clause"
] | null | null | null | src/domains/components/SlaveZone.js | mighteejim/manager | 86365b7142a78956e04821c0cb9e0adadaf0de3c | [
"BSD-3-Clause"
] | null | null | null | import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { replace } from 'react-router-redux';
import { Card, CardHeader } from 'linode-components/cards';
import { Table } from 'linode-components/tables';
import { ButtonCell } from 'linode... | 26.472727 | 70 | 0.522665 |
e75d78dc593546abf19c8fe4e2fb9a014bc568c0 | 543 | js | JavaScript | src/IntlProvider/IntlProvider.js | marciobarrios/react-intl-number | 90f7aa8523a74597a457a3c0528d756b8f2155c3 | [
"MIT"
] | 14 | 2019-05-24T08:35:11.000Z | 2022-03-15T19:14:29.000Z | src/IntlProvider/IntlProvider.js | marciobarrios/react-intl-number | 90f7aa8523a74597a457a3c0528d756b8f2155c3 | [
"MIT"
] | 1 | 2020-01-02T01:56:04.000Z | 2020-09-09T08:13:34.000Z | src/IntlProvider/IntlProvider.js | marciobarrios/react-intl-number | 90f7aa8523a74597a457a3c0528d756b8f2155c3 | [
"MIT"
] | 2 | 2020-04-17T07:38:10.000Z | 2021-03-25T23:17:11.000Z | import React, { createContext, useContext, useMemo, useState } from "react"
import { defaultIntlConfig } from "../helpers"
const IntlContext = createContext()
const useIntl = () => useContext(IntlContext)
const IntlProvider = props => {
const [config, setConfig] = useState({
...defaultIntlConfig,
...props.... | 20.884615 | 75 | 0.64825 |
7b5a0b89a17c16da59692c35254c3c9ca8b26aae | 181 | rb | Ruby | app/controllers/spree/products_controller_decorator.rb | sammieValsangkar/solidus_searchkick | d69deb716d5b7a10127baa52ac0d483a5118b460 | [
"MIT"
] | null | null | null | app/controllers/spree/products_controller_decorator.rb | sammieValsangkar/solidus_searchkick | d69deb716d5b7a10127baa52ac0d483a5118b460 | [
"MIT"
] | null | null | null | app/controllers/spree/products_controller_decorator.rb | sammieValsangkar/solidus_searchkick | d69deb716d5b7a10127baa52ac0d483a5118b460 | [
"MIT"
] | null | null | null | Spree::ProductsController.class_eval do
def autocomplete
keywords = params[:keywords] ||= nil
json = Spree::Product.autocomplete(keywords)
render json: json
end
end
| 22.625 | 48 | 0.723757 |
6aa33a9eaf72d6f8047c0dfc95b5f3b78df84cdc | 5,807 | kt | Kotlin | component/component-kaiheila-parent/kaiheila-core/src/main/java/love/forte/simbot/kaiheila/api/ApiDataRequestUtil.kt | 58563528/simpler-robot | ad8efda7936559edf8e7bd00f46ad08719a28c6d | [
"Apache-2.0"
] | 259 | 2020-09-25T01:31:18.000Z | 2022-03-31T02:06:34.000Z | component/component-kaiheila-parent/kaiheila-core/src/main/java/love/forte/simbot/kaiheila/api/ApiDataRequestUtil.kt | Maousuki/simpler-robot | a17fe3793e26fa1219d49f2afdb3b52c784a87c6 | [
"Apache-2.0"
] | 186 | 2020-11-19T15:17:17.000Z | 2022-03-09T02:07:42.000Z | component/component-kaiheila-parent/kaiheila-core/src/main/java/love/forte/simbot/kaiheila/api/ApiDataRequestUtil.kt | Maousuki/simpler-robot | a17fe3793e26fa1219d49f2afdb3b52c784a87c6 | [
"Apache-2.0"
] | 37 | 2020-10-09T06:47:06.000Z | 2022-03-31T02:00:35.000Z | /*
*
* * Copyright (c) 2021. ForteScarlet All rights reserved.
* * Project simple-robot
* * File MiraiAvatar.kt
* *
* * You can contact the author through the following channels:
* * github https://github.com/ForteScarlet
* * gitee https://gitee.com/ForteScarlet
* * email ForteScarlet@163.com
*... | 30.403141 | 122 | 0.62218 |
f6ce5e61633cafff7ec54c3d2e632647f5696371 | 685 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/am9511/c/sccz80/cam32_sccz80_fmul.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_fmul.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_fmul.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; float __fmul(float left, float right)
SECTION code_clib
SECTION code_fp_am9511
PUBLIC cam32_sccz80_fmul
EXTERN cam32_sccz80_switch_arg, cam32_sccz80_readl
EXTERN asm_am9511_fmul
; multiply two sccz80 floats
;
; enter : stack = sccz80_float left, sccz80_float right, ret
;
; exit : DEHL = scc... | 26.346154 | 86 | 0.654015 |
74453b146b3de21f5ef837486eafa505ce78af8a | 420 | rs | Rust | src/map/generator/mod.rs | DeeUnderscore/cubeglobe | 47b48b6038a736a47f0d96ce25d128aebb26fef6 | [
"0BSD"
] | 8 | 2018-12-11T06:59:16.000Z | 2021-11-09T11:44:11.000Z | src/map/generator/mod.rs | DeeUnderscore/cubeglobe | 47b48b6038a736a47f0d96ce25d128aebb26fef6 | [
"0BSD"
] | 1 | 2021-04-01T23:53:46.000Z | 2021-04-01T23:53:46.000Z | src/map/generator/mod.rs | DeeUnderscore/cubeglobe | 47b48b6038a736a47f0d96ce25d128aebb26fef6 | [
"0BSD"
] | 2 | 2019-01-07T02:21:52.000Z | 2021-01-12T22:41:39.000Z | //! Generators for procedurally generating [`IsoMap`s](struct.IsoMap.html)
mod tergenone;
mod tergentwo;
mod testing;
pub use map::generator::testing::TestingGenerator;
pub use map::generator::tergenone::TerGenOne;
pub use map::generator::tergentwo::TerGenTwo;
use map::IsoMap;
/// A generator capable of returning a... | 23.333333 | 74 | 0.735714 |
c5dc4fa8b04ed23ddc621a9465fcc221c0355a86 | 114 | sql | SQL | insertRoles.sql | kristin-green-and-associates/aws-aurora-data-api-response-formatter | 0f15a65371d63b4f07e43013a1dfa9569a74c8e9 | [
"MIT"
] | null | null | null | insertRoles.sql | kristin-green-and-associates/aws-aurora-data-api-response-formatter | 0f15a65371d63b4f07e43013a1dfa9569a74c8e9 | [
"MIT"
] | null | null | null | insertRoles.sql | kristin-green-and-associates/aws-aurora-data-api-response-formatter | 0f15a65371d63b4f07e43013a1dfa9569a74c8e9 | [
"MIT"
] | null | null | null | INSERT INTO Role (RoleID, RoleName) VALUES
(1, "Administrators"),
(2, "Managers"),
(3, "Sales Associates");
| 22.8 | 42 | 0.649123 |
752884e2e1360b084c50ca23cbf298cdc7a3c546 | 317 | h | C | src/process/fdop.h | leaningtech/cheerp-musl | ed96bd0bd6b9b0a578b6552114ac1d225db54a26 | [
"MIT"
] | 2 | 2022-02-22T17:11:22.000Z | 2022-03-13T21:57:46.000Z | src/process/fdop.h | leaningtech/cheerp-musl | ed96bd0bd6b9b0a578b6552114ac1d225db54a26 | [
"MIT"
] | null | null | null | src/process/fdop.h | leaningtech/cheerp-musl | ed96bd0bd6b9b0a578b6552114ac1d225db54a26 | [
"MIT"
] | null | null | null | #define FDOP_CLOSE 1
#define FDOP_DUP2 2
#define FDOP_OPEN 3
#define FDOP_CHDIR 4
#define FDOP_FCHDIR 5
struct fdop {
struct fdop *next, *prev;
int cmd, fd, srcfd, oflag;
mode_t mode;
char path[];
};
//#define malloc __libc_malloc
//#define calloc __libc_calloc
#define realloc undef
//#define free __libc_free
| 17.611111 | 30 | 0.747634 |
653d695cd3021eadcb097d2dd9fa97ca942ec702 | 10,454 | py | Python | etc/check-python.py | maxzheng/auto-update | 7d9afa139f890ff9a6bbeb01549a311bdb5168d0 | [
"MIT"
] | 7 | 2018-08-22T21:03:54.000Z | 2022-02-04T20:31:20.000Z | etc/check-python.py | maxzheng/auto-update | 7d9afa139f890ff9a6bbeb01549a311bdb5168d0 | [
"MIT"
] | null | null | null | etc/check-python.py | maxzheng/auto-update | 7d9afa139f890ff9a6bbeb01549a311bdb5168d0 | [
"MIT"
] | 2 | 2019-04-24T20:49:01.000Z | 2019-10-30T17:45:19.000Z | #!/usr/bin/env python
import argparse
import os
import platform
import re
import shutil
import subprocess
import sys
SUPPORTED_VERSIONS = ('3.6', '3.7')
IS_DEBIAN = platform.system() == 'Linux' and os.path.exists('/etc/debian_version')
IS_OLD_UBUNTU = (IS_DEBIAN and os.path.exists('/etc/lsb-release')
... | 34.730897 | 117 | 0.583604 |
8ca9ba845d478f56e88d64dbe2da8f0ea5549fa4 | 460 | asm | Assembly | data/pokemon/base_stats/hoenn/swablu.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | null | null | null | data/pokemon/base_stats/hoenn/swablu.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | null | null | null | data/pokemon/base_stats/hoenn/swablu.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | null | null | null | db 0 ; 333 DEX NO
db 45, 40, 60, 50, 40, 75
; hp atk def spd sat sdf
db NORMAL, FLYING ; type
db 255 ; catch rate
db 74 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 20 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/hoenn/swablu/front.di... | 20.909091 | 51 | 0.663043 |
f1ac7aa41b580c8db42419cec8a769b053dbac2f | 415 | rb | Ruby | db/migrate/20201206183348_add_taxon_images_credit.rb | MattBlissett/bionomia | 90d9026d5f9357b7e40ad93b6908723ae4ea292c | [
"MIT"
] | 8 | 2020-06-21T11:36:31.000Z | 2021-12-15T02:21:42.000Z | db/migrate/20201206183348_add_taxon_images_credit.rb | MattBlissett/bionomia | 90d9026d5f9357b7e40ad93b6908723ae4ea292c | [
"MIT"
] | 135 | 2020-06-16T22:45:54.000Z | 2022-03-09T03:51:56.000Z | db/migrate/20201206183348_add_taxon_images_credit.rb | MattBlissett/bionomia | 90d9026d5f9357b7e40ad93b6908723ae4ea292c | [
"MIT"
] | 11 | 2020-06-21T11:36:34.000Z | 2021-12-06T18:49:46.000Z | class AddTaxonImagesCredit < ActiveRecord::Migration[6.0]
def up
unless column_exists? :taxon_images, :credit
add_column :taxon_images, :credit, :string
add_column :taxon_images, :licenseURL, :string
end
end
def down
if column_exists? :taxon_images, :credit
remove_column :taxon_imag... | 25.9375 | 57 | 0.710843 |
7932ee22245535cb2f3a6aaa3cca03f8b87a4bd8 | 6,704 | kt | Kotlin | src/test/kotlin/com/github/vertical_blank/sqlformatter/N1qlFormatterTest.kt | Willam2004/sql-formatter | bb9d26533e417378730aed91fc3e75f0994d1fb5 | [
"MIT"
] | 106 | 2019-06-04T13:57:09.000Z | 2022-03-17T12:44:45.000Z | src/test/kotlin/com/github/vertical_blank/sqlformatter/N1qlFormatterTest.kt | Willam2004/sql-formatter | bb9d26533e417378730aed91fc3e75f0994d1fb5 | [
"MIT"
] | 42 | 2019-04-04T16:42:27.000Z | 2022-03-01T14:13:35.000Z | src/test/kotlin/com/github/vertical_blank/sqlformatter/N1qlFormatterTest.kt | Willam2004/sql-formatter | bb9d26533e417378730aed91fc3e75f0994d1fb5 | [
"MIT"
] | 25 | 2019-10-02T07:29:29.000Z | 2022-01-21T02:46:27.000Z | package com.github.vertical_blank.sqlformatter
import com.github.vertical_blank.sqlformatter.features.supportsBetween
import com.github.vertical_blank.sqlformatter.features.supportsJoin
import com.github.vertical_blank.sqlformatter.features.supportsOperators
import com.github.vertical_blank.sqlformatter.features.suppo... | 30.894009 | 100 | 0.459427 |
3d069350c98ac23bcf102b03abe21bdf895724a4 | 10,091 | sql | SQL | MySQL_POOL/pysical_model.sql | jimjimliu/LOL_Match_Prediction | 9764ee897f7d1811477ad33926504877fa4873e6 | [
"MIT"
] | 3 | 2020-10-06T23:32:59.000Z | 2020-11-22T01:58:39.000Z | MySQL_POOL/pysical_model.sql | jimjimliu/LOL_Match_Prediction | 9764ee897f7d1811477ad33926504877fa4873e6 | [
"MIT"
] | null | null | null | MySQL_POOL/pysical_model.sql | jimjimliu/LOL_Match_Prediction | 9764ee897f7d1811477ad33926504877fa4873e6 | [
"MIT"
] | 1 | 2021-05-17T06:16:08.000Z | 2021-05-17T06:16:08.000Z | --create database RIOT;
-- table to store all summoner information
create table `all_league_entry`(
`id` int not null auto_increment unique key,
`leagueId` varchar(255) comment 'league game ID',
`queueType` varchar(255) comment 'game queue type. i.e. rank solo5x5',
`tier` TINYTEXT comment 'rank tier. i... | 42.940426 | 81 | 0.724309 |
2c6d3738ccc354acdd3c973dcd255157c4f68c90 | 52 | sql | SQL | src/main/tsql/aggregation/the-blunder.sql | hiepluong2205/algo-champion | c451b8bd796d9f160ccff62d2a2d9d3d34a67685 | [
"MIT"
] | null | null | null | src/main/tsql/aggregation/the-blunder.sql | hiepluong2205/algo-champion | c451b8bd796d9f160ccff62d2a2d9d3d34a67685 | [
"MIT"
] | 2 | 2022-03-08T19:05:02.000Z | 2022-03-08T19:05:51.000Z | src/main/tsql/aggregation/the-blunder.sql | hiepluong2205/algo-champion | c451b8bd796d9f160ccff62d2a2d9d3d34a67685 | [
"MIT"
] | null | null | null | SELECT * FROM EMPLOYEES
WHERE
ORDER BY
GROUP BY
; | 10.4 | 24 | 0.730769 |
bb48183252c64fb06b8fcecff08251c140f9c874 | 1,795 | lua | Lua | lua/lualine/themes/idjo.lua | cocatrip/onedark.nvim | 3e104772992105b00c9be9c57424d1ad37bfdd5e | [
"MIT"
] | null | null | null | lua/lualine/themes/idjo.lua | cocatrip/onedark.nvim | 3e104772992105b00c9be9c57424d1ad37bfdd5e | [
"MIT"
] | null | null | null | lua/lualine/themes/idjo.lua | cocatrip/onedark.nvim | 3e104772992105b00c9be9c57424d1ad37bfdd5e | [
"MIT"
] | null | null | null | local c = require('idjo.colors')
local idjo_lualine = {
inactive = {
a = {fg = c.grey, bg = c.bg_d, gui = 'bold'},
b = {fg = c.grey, bg = c.bg_d},
c = {fg = c.grey, bg = c.bg_d},
x = {fg = c.grey, bg = c.bg_d},
y = {fg = c.grey, bg = c.bg_d},
z = {fg = c.grey, bg = ... | 32.053571 | 56 | 0.342061 |
bb15d390bd894ef866d42100987c982bbb511f48 | 1,486 | rb | Ruby | app/models/tag.rb | ipfs-shipyard/ecosystem-dashboard | d4de15e3eb451c268beae7ff90050a157faa0ea9 | [
"Apache-2.0",
"MIT"
] | 15 | 2020-08-13T18:28:41.000Z | 2022-03-16T02:37:42.000Z | app/models/tag.rb | web-developer77/ruby-ecosystem | 9b45c4699b23bac31fea4d914f8055da2292aef8 | [
"Apache-2.0",
"MIT"
] | 225 | 2020-06-05T15:44:08.000Z | 2022-03-29T17:02:44.000Z | app/models/tag.rb | web-developer77/ruby-ecosystem | 9b45c4699b23bac31fea4d914f8055da2292aef8 | [
"Apache-2.0",
"MIT"
] | 6 | 2020-06-15T19:31:56.000Z | 2021-05-19T03:17:19.000Z | class Tag < ApplicationRecord
include Releaseable
belongs_to :repository
validates_presence_of :name, :sha, :repository
validates_uniqueness_of :name, scope: :repository_id
scope :published, -> { where('published_at IS NOT NULL') }
after_commit :save_packages
def save_packages
repository.try(:save... | 19.051282 | 71 | 0.696501 |
b2c5e558b71549ec4885e41eca936b455678ffaf | 1,555 | py | Python | api/client/src/pcluster_client/sigv4_auth.py | maclema/aws-parallelcluster | ade6e5e76201ee43c6e222fcd1c2891aba938838 | [
"Apache-2.0"
] | 415 | 2018-11-13T15:02:15.000Z | 2022-03-31T15:26:06.000Z | api/client/src/pcluster_client/sigv4_auth.py | maclema/aws-parallelcluster | ade6e5e76201ee43c6e222fcd1c2891aba938838 | [
"Apache-2.0"
] | 2,522 | 2018-11-13T16:16:27.000Z | 2022-03-31T13:57:10.000Z | api/client/src/pcluster_client/sigv4_auth.py | yuleiwan/aws-parallelcluster | aad2a3019ef4ad08d702f5acf41b152b3f7a0b46 | [
"Apache-2.0"
] | 164 | 2018-11-14T22:47:46.000Z | 2022-03-22T11:33:22.000Z | """Sigv4 Signing Support"""
# Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy
# of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or i... | 39.871795 | 85 | 0.659807 |
afb2b542b324f10f1730b7826ccd52f9fa679ba5 | 1,039 | rb | Ruby | recipes/default.rb | johnbellone/mesos-cluster-cookbook | 587dbeb5a25428eafbc9cba9d035ad23e056399f | [
"Apache-2.0"
] | 1 | 2015-08-06T01:33:52.000Z | 2015-08-06T01:33:52.000Z | recipes/default.rb | johnbellone/mesos-cluster-cookbook | 587dbeb5a25428eafbc9cba9d035ad23e056399f | [
"Apache-2.0"
] | null | null | null | recipes/default.rb | johnbellone/mesos-cluster-cookbook | 587dbeb5a25428eafbc9cba9d035ad23e056399f | [
"Apache-2.0"
] | null | null | null | #
# Cookbook: mesos-cluster
# License: Apache 2.0
#
# Copyright (C) 2015 Bloomberg Finance L.P.
#
include_recipe 'build-essential::default'
include_recipe 'selinux::permissive'
node.default['java']['jdk_version'] = '7'
node.default['java']['accept_license_agreement'] = true
include_recipe 'java::default', 'maven::defa... | 29.685714 | 68 | 0.714148 |
745763e48dbe4ef8fa198c206a9245ed6c7c3d7c | 155 | sql | SQL | src/test/resources/sql/create_function/d179eb70.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 66 | 2018-06-15T11:34:03.000Z | 2022-03-16T09:24:49.000Z | src/test/resources/sql/create_function/d179eb70.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 13 | 2019-03-19T11:56:28.000Z | 2020-08-05T04:20:50.000Z | src/test/resources/sql/create_function/d179eb70.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 28 | 2019-01-05T19:59:02.000Z | 2022-03-24T11:55:50.000Z | -- file:rangetypes.sql ln:396 expect:true
create function anyarray_anyrange_func(a anyarray, r anyrange)
returns anyelement as 'select $1[1] + lower($2)
| 38.75 | 62 | 0.767742 |
0785e1b9ca79af7bf14d4e956edf97088bcf2ca0 | 136 | kt | Kotlin | compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/genericInReceiver.kt | Mu-L/kotlin | 5c3ce66e9979d2b3592d06961e181fa27fa88431 | [
"ECL-2.0",
"Apache-2.0"
] | 45,293 | 2015-01-01T06:23:46.000Z | 2022-03-31T21:55:51.000Z | compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/genericInReceiver.kt | Seantheprogrammer93/kotlin | f7aabf03f89bdd39d9847572cf9e0051ea42c247 | [
"ECL-2.0",
"Apache-2.0"
] | 3,386 | 2015-01-12T13:28:50.000Z | 2022-03-31T17:48:15.000Z | compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/genericInReceiver.kt | Seantheprogrammer93/kotlin | f7aabf03f89bdd39d9847572cf9e0051ea42c247 | [
"ECL-2.0",
"Apache-2.0"
] | 6,351 | 2015-01-03T12:30:09.000Z | 2022-03-31T20:46:54.000Z | fun test_1(a: String, s: String) {
val pair = s.let(a::to)
}
fun test_2(a: String, s: String) {
val pair = s.let { a.to(it) }
} | 19.428571 | 34 | 0.558824 |
701053625669410e31dfb732c90d83f42e4979b7 | 3,690 | go | Go | pkg/notifications/reweigh_requested.go | pshrabstein/mymove | 480fe4105383461b3037d7f0be92484422050d31 | [
"MIT"
] | null | null | null | pkg/notifications/reweigh_requested.go | pshrabstein/mymove | 480fe4105383461b3037d7f0be92484422050d31 | [
"MIT"
] | 115 | 2022-01-04T01:21:00.000Z | 2022-03-31T11:27:16.000Z | pkg/notifications/reweigh_requested.go | pshrabstein/mymove | 480fe4105383461b3037d7f0be92484422050d31 | [
"MIT"
] | null | null | null | package notifications
import (
"bytes"
"fmt"
html "html/template"
"strings"
text "text/template"
"github.com/gofrs/uuid"
"go.uber.org/zap"
"github.com/transcom/mymove/pkg/appcontext"
"github.com/transcom/mymove/pkg/assets"
"github.com/transcom/mymove/pkg/models"
)
var (
reweighRequestedRawTextTemplate = ... | 33.853211 | 129 | 0.754201 |
e7894e01aa2c71682ed23fafe2136b7242e4eaac | 663 | js | JavaScript | src/components/FeaturedArt/AbstractCollection.js | magic8baller/sifis-portfolio-1 | 0a5e0874ef4bcba57ffa5ee9a9838d1d165109e0 | [
"MIT"
] | 1 | 2019-09-15T17:57:04.000Z | 2019-09-15T17:57:04.000Z | src/components/FeaturedArt/AbstractCollection.js | magic8baller/sifis-portfolio-1 | 0a5e0874ef4bcba57ffa5ee9a9838d1d165109e0 | [
"MIT"
] | 7 | 2021-03-09T17:18:41.000Z | 2022-02-26T17:37:43.000Z | src/components/FeaturedArt/AbstractCollection.js | magic8baller/sifis-portfolio-1 | 0a5e0874ef4bcba57ffa5ee9a9838d1d165109e0 | [
"MIT"
] | null | null | null | import {Link} from "gatsby";
import React from 'react';
import styles from '../../css/items.module.css';
import {useAbstract} from '../../hooks';
import {Artwork} from '../Artwork';
import Title from '../StyledTitle';
const AbstractCollection = () => {
const artworks = useAbstract()
return (
<main className={sty... | 25.5 | 72 | 0.665158 |
969ccd2d585e04155dab0552f197aa8e293c4a13 | 6,824 | html | HTML | gltf-asset-test.html | ZeaInc/gltf-loader | 437f633eab5ac507190ba5fa3fb1100e9a20c97c | [
"MIT"
] | 2 | 2021-04-26T20:53:24.000Z | 2021-04-29T03:39:00.000Z | gltf-asset-test.html | ZeaInc/gltf-loader | 437f633eab5ac507190ba5fa3fb1100e9a20c97c | [
"MIT"
] | 2 | 2021-05-17T08:06:18.000Z | 2021-11-01T16:56:22.000Z | gltf-asset-test.html | ZeaInc/gltf-loader | 437f633eab5ac507190ba5fa3fb1100e9a20c97c | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html>
<head>
<title>GLTF Loader Test</title>
<link rel="stylesheet" href="./testing-e2e/styles/tachyons.min.css" />
<link rel="stylesheet" href="./testing-e2e/styles/main.css" />
<script src="https://cdn.jsdelivr.net/npm/@zeainc/zea-engine/dist/index.umd.js"></script>
<script src=... | 31.302752 | 115 | 0.552902 |
0bb73302438f93d70fc86fc3be95e9990747a4a0 | 882 | js | JavaScript | config.js | inbitcoin/ccoinsd | 82e5cfd2ca77844b33035dfe6f6bc7584ee5c311 | [
"Apache-2.0"
] | null | null | null | config.js | inbitcoin/ccoinsd | 82e5cfd2ca77844b33035dfe6f6bc7584ee5c311 | [
"Apache-2.0"
] | null | null | null | config.js | inbitcoin/ccoinsd | 82e5cfd2ca77844b33035dfe6f6bc7584ee5c311 | [
"Apache-2.0"
] | null | null | null | var log = require('loglevel')
var config = {
env: 'production',
testnet: false,
cexplorer: {
url: 'https://cexplorer.example.com',
},
logLevel: 'info',
port: 8080,
}
function moduleExists(name) {
try {
return require.resolve(name)
} catch (e) {
return false
}
}
var localConfig = { cexpl... | 25.941176 | 101 | 0.701814 |
0bf046105267ff115611416395b08effef2f6aec | 6,417 | js | JavaScript | src/common/mocks/FormListMock.js | caiohsramos/usp-smped-front | e8e54b17b53c86e59b01cf6e0f01e27f55b9251b | [
"MIT"
] | null | null | null | src/common/mocks/FormListMock.js | caiohsramos/usp-smped-front | e8e54b17b53c86e59b01cf6e0f01e27f55b9251b | [
"MIT"
] | null | null | null | src/common/mocks/FormListMock.js | caiohsramos/usp-smped-front | e8e54b17b53c86e59b01cf6e0f01e27f55b9251b | [
"MIT"
] | null | null | null | export const formList = [
{
_id: "5bc7740798d99800109c3504",
version: "1",
owner: "user",
name: "Palestra sobre acessibilidade para web no IME.",
office: "smped",
activity: "Palestra",
axis: "",
fields: [
{
label: "campo 1",... | 26.516529 | 63 | 0.399875 |
4a626492a1d9becaa50733879d5ef78abd1c2d77 | 780 | js | JavaScript | bear-ts-express/build/server/src/routes/user/user.routes.js | thoughtbit/node-web-starter | 394b773479c9331d6ca69c70ebfeaa5554e216ac | [
"MIT"
] | 4 | 2018-11-26T02:06:16.000Z | 2021-06-07T05:20:59.000Z | bear-ts-express/build/server/src/routes/user/user.routes.js | thoughtbit/node-web-starter | 394b773479c9331d6ca69c70ebfeaa5554e216ac | [
"MIT"
] | null | null | null | bear-ts-express/build/server/src/routes/user/user.routes.js | thoughtbit/node-web-starter | 394b773479c9331d6ca69c70ebfeaa5554e216ac | [
"MIT"
] | null | null | null | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express = require("express");
const ctrl = require("./user.controller");
const passport = require("passport");
let router = express.Router();
router.get('/', function (req, res, next) {
res.send('Hello World!');
});
/**
* OAuth auth... | 39 | 119 | 0.683333 |
5c436043a2e188642b06e97382e7a7059fef77d5 | 2,294 | h | C | 004_motion_detector/include/DataReader.h | DreamWaterFound/Codes | e7d80eb8bfd7d6f104abd18724cb4bface419233 | [
"WTFPL"
] | 13 | 2019-02-28T14:28:23.000Z | 2021-12-04T04:55:19.000Z | 004_motion_detector/include/DataReader.h | DreamWaterFound/Codes | e7d80eb8bfd7d6f104abd18724cb4bface419233 | [
"WTFPL"
] | 1 | 2019-09-07T09:00:50.000Z | 2019-12-04T02:13:25.000Z | 004_motion_detector/include/DataReader.h | DreamWaterFound/Codes | e7d80eb8bfd7d6f104abd18724cb4bface419233 | [
"WTFPL"
] | 1 | 2020-03-11T16:47:31.000Z | 2020-03-11T16:47:31.000Z | /**
* @file DataReader.h
* @author guoqing (1337841346@qq.com)
* @brief 数据库阅读器类的声明
* @version 0.1
* @date 2019-01-05
*
* @copyright Copyright (c) 2019
*
*/
#ifndef __DATA_READER_H__
#define __DATA_READER_H__
#include "common.h"
/**
* @brief 读取数据集CDW-2014的类
*
*/
class DataReader
{
public:
/**
... | 15.82069 | 55 | 0.528771 |
065553903342d96e156bb5d7c9e4f3aeac3c6aea | 7,347 | rs | Rust | src/router.rs | explodingcamera/rust-http-server-from-scratch | 109fc07f42910f997fb032e5e81a8d31eb6032dd | [
"MIT"
] | null | null | null | src/router.rs | explodingcamera/rust-http-server-from-scratch | 109fc07f42910f997fb032e5e81a8d31eb6032dd | [
"MIT"
] | null | null | null | src/router.rs | explodingcamera/rust-http-server-from-scratch | 109fc07f42910f997fb032e5e81a8d31eb6032dd | [
"MIT"
] | null | null | null | use anyhow::Result;
use futures::future::BoxFuture;
use parking_lot::Mutex;
use std::{collections::BTreeMap, fmt::Debug, sync::Arc};
use tokio::net::TcpStream;
// https://stackoverflow.com/questions/27883509/can-you-clone-a-closure
use crate::{
http_request::{Method, Request},
http_response::ResponseBuilder,
... | 29.388 | 122 | 0.55179 |
08e52ff0d0e06a524ca896483eaab38db681ff4f | 455 | sql | SQL | Miscellaneous/StoredProcedures/Backup_2015 March 24/h3giUpgradeGetPreviousContractEndDate.sql | Foxpips/LayeredArchitecture | c75f83e8591ad78c7a5d3175c29ea0b0cb88e91f | [
"MIT"
] | 3 | 2015-04-10T14:39:41.000Z | 2021-02-22T20:53:05.000Z | Miscellaneous/StoredProcedures/Backup_2015 March 25/h3giUpgradeGetPreviousContractEndDate.sql | Foxpips/LayeredArchitecture | c75f83e8591ad78c7a5d3175c29ea0b0cb88e91f | [
"MIT"
] | null | null | null | Miscellaneous/StoredProcedures/Backup_2015 March 25/h3giUpgradeGetPreviousContractEndDate.sql | Foxpips/LayeredArchitecture | c75f83e8591ad78c7a5d3175c29ea0b0cb88e91f | [
"MIT"
] | 1 | 2015-11-05T14:37:38.000Z | 2015-11-05T14:37:38.000Z |
CREATE PROCEDURE [dbo].[h3giUpgradeGetPreviousContractEndDate]
@orderref INT
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
select hu.contractEndDate from h3giOrderheader hoh
left outer join h3giUpgrade hu
on hoh.UpgradeID ... | 21.666667 | 65 | 0.76044 |
19228a61f238e0a828d6f9c5b6b56b5770023c13 | 415 | asm | Assembly | programs/oeis/104/A104147.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/104/A104147.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/104/A104147.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A104147: Number of cubes <= n-th prime.
; 2,2,2,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9
seq $0,6005 ; The odd prime numbers together with 1.
seq $0,48766 ; Integer... | 59.285714 | 201 | 0.583133 |
7e15334cb40065237be2385c489d3b5d1b50a440 | 2,971 | css | CSS | style/style.css | Snehabhatt61/e-commerce-page | 4407cc774c91839eae52b07028860c7192dfd6fa | [
"MIT"
] | null | null | null | style/style.css | Snehabhatt61/e-commerce-page | 4407cc774c91839eae52b07028860c7192dfd6fa | [
"MIT"
] | null | null | null | style/style.css | Snehabhatt61/e-commerce-page | 4407cc774c91839eae52b07028860c7192dfd6fa | [
"MIT"
] | null | null | null | html {
font-size: 14px;
}
body {
font-family: 'Open Sans', sans-serif;
text-align: left;
margin: 0;
padding: 0;
overflow: auto;
max-width: 100%;
overflow-x: hidden;
}
:focus {
outline: none;
}
:hover {
outline: none;
}
a:hover {
text-decoration: none;
color: black;
... | 18.006061 | 50 | 0.602154 |
54dc62bde9c12405e01de23c4b56463c4d99e039 | 7,924 | kt | Kotlin | imitate/src/main/java/com/engineer/imitate/ui/fragments/SlideFragment.kt | YuMENGQI/AndroidAnimationExercise | 43c6d1f417ecebd29d929063326ea3a43e82d16f | [
"Apache-2.0"
] | 1,566 | 2016-10-20T15:42:10.000Z | 2022-03-31T23:28:43.000Z | imitate/src/main/java/com/engineer/imitate/ui/fragments/SlideFragment.kt | YuMENGQI/AndroidAnimationExercise | 43c6d1f417ecebd29d929063326ea3a43e82d16f | [
"Apache-2.0"
] | 11 | 2017-07-20T10:22:28.000Z | 2020-04-09T06:14:53.000Z | imitate/src/main/java/com/engineer/imitate/ui/fragments/SlideFragment.kt | YuMENGQI/AndroidAnimationExercise | 43c6d1f417ecebd29d929063326ea3a43e82d16f | [
"Apache-2.0"
] | 318 | 2016-10-20T15:41:59.000Z | 2022-03-22T03:46:19.000Z | package com.engineer.imitate.ui.fragments
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.ItemTouchHelper
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.recyclerview.widget.Recycle... | 61.426357 | 740 | 0.747855 |
fa024f1a480b20e24b4f0af9855f1161f6df9bfd | 1,432 | kt | Kotlin | komock-core/src/main/kotlin/ua/com/lavi/komock/model/ByteResource.kt | laviua/komock | 2cddcc088373fc468d54a2c40a150ee1bde64700 | [
"Apache-2.0"
] | 11 | 2017-01-21T19:10:41.000Z | 2022-02-13T18:11:51.000Z | komock-core/src/main/kotlin/ua/com/lavi/komock/model/ByteResource.kt | laviua/komock | 2cddcc088373fc468d54a2c40a150ee1bde64700 | [
"Apache-2.0"
] | 22 | 2017-01-22T20:50:01.000Z | 2019-10-25T19:17:13.000Z | komock-core/src/main/kotlin/ua/com/lavi/komock/model/ByteResource.kt | laviua/komock | 2cddcc088373fc468d54a2c40a150ee1bde64700 | [
"Apache-2.0"
] | 1 | 2017-11-08T23:03:16.000Z | 2017-11-08T23:03:16.000Z | package ua.com.lavi.komock.model
import org.eclipse.jetty.util.resource.Resource
import java.io.ByteArrayInputStream
import java.io.File
import java.io.InputStream
import java.net.URL
import java.nio.channels.ReadableByteChannel
/**
* Created by Oleksandr Loushkin
*/
class ByteResource(private val content: ByteArr... | 18.842105 | 65 | 0.622905 |
e2784eca801886f85d93d10bfc662a3661dd9dc5 | 1,087 | swift | Swift | Landmarks/Landmarks/CalculatorView.swift | togbaliberty/iOS-Swift-Tutorials | 7b1b21ce3de02f7a2da3e0dfd6abd9d4939b7d49 | [
"MIT"
] | null | null | null | Landmarks/Landmarks/CalculatorView.swift | togbaliberty/iOS-Swift-Tutorials | 7b1b21ce3de02f7a2da3e0dfd6abd9d4939b7d49 | [
"MIT"
] | null | null | null | Landmarks/Landmarks/CalculatorView.swift | togbaliberty/iOS-Swift-Tutorials | 7b1b21ce3de02f7a2da3e0dfd6abd9d4939b7d49 | [
"MIT"
] | null | null | null | //
// ContentView.swift
// Landmarks
//
// Created by Togba Liberty on 3/30/20.
// Copyright © 2020 Togba Liberty. All rights reserved.
//
import SwiftUI
struct CalculatorView: View {
var body: some View {
VStack {
TemplateUIKitMap()
.edgesIgnoringSafeArea(.top)
... | 23.630435 | 56 | 0.447102 |
0e60e981ddcf7e93ce654ef991077faf1396f783 | 1,259 | html | HTML | reports/reports/templates/report_item.html | tomaszpiotro/honeypot_reports | 79f59b4967dff6ba52e70309ad668c136a8c0c3d | [
"MIT"
] | null | null | null | reports/reports/templates/report_item.html | tomaszpiotro/honeypot_reports | 79f59b4967dff6ba52e70309ad668c136a8c0c3d | [
"MIT"
] | null | null | null | reports/reports/templates/report_item.html | tomaszpiotro/honeypot_reports | 79f59b4967dff6ba52e70309ad668c136a8c0c3d | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html>
<style>
body {background-color:lightgray}
h1 {color:blue}
p {color:green}
table, th, td{ border: thin solid darkblue;
text-align: center;
border-collapse: collapse;
margin: auto;}
</style>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>... | 23.314815 | 48 | 0.515488 |
db6fc1d485d1692f8de994e2cefb4bf3999176c2 | 100 | sql | SQL | protocol_derivations.sql | sanders41/clintrial_queries | 22f9e149a17277cd45d8d55236b9d4b4ec1ac8c0 | [
"MIT"
] | null | null | null | protocol_derivations.sql | sanders41/clintrial_queries | 22f9e149a17277cd45d8d55236b9d4b4ec1ac8c0 | [
"MIT"
] | null | null | null | protocol_derivations.sql | sanders41/clintrial_queries | 22f9e149a17277cd45d8d55236b9d4b4ec1ac8c0 | [
"MIT"
] | null | null | null | SELECT *
FROM ctsdd.derivation
WHERE protocol = 'ENTER PROTOCOL NAME'
ORDER BY panel,
deriv_name;
| 16.666667 | 38 | 0.77 |
6e313ee4c42e5f5a96c735d1c5a3ef5adc2018ae | 1,013 | html | HTML | angular/src/app/car/car-details/car-details.component.html | idreeshaddad/SimpleTaxiAngular | a41abbb24e3f4add55efd20dddcf5ba0fe8a041e | [
"MIT"
] | null | null | null | angular/src/app/car/car-details/car-details.component.html | idreeshaddad/SimpleTaxiAngular | a41abbb24e3f4add55efd20dddcf5ba0fe8a041e | [
"MIT"
] | null | null | null | angular/src/app/car/car-details/car-details.component.html | idreeshaddad/SimpleTaxiAngular | a41abbb24e3f4add55efd20dddcf5ba0fe8a041e | [
"MIT"
] | null | null | null | <div class="container my-4">
<h1 class="page-title">Car Details</h1>
<hr>
<button mat-raised-button [routerLink]="['/cars']">Back to list</button>
<hr>
<div class="row mb-3">
<div class="col-md-2 font-weight-bold">Plate Number</div>
<div class="col-md-10">{{detailsCar?.plateNumber}}... | 34.931034 | 76 | 0.558736 |
3e8b85de38103808b26476457831826e9799283c | 12,706 | h | C | ext/phalcon/mvc/model/query.zep.h | frqnck/cphalcon | 9c66927d02a04bfa87f0a6517a761744e376df42 | [
"BSD-3-Clause"
] | 3 | 2016-07-25T09:17:38.000Z | 2020-11-24T09:52:24.000Z | ext/phalcon/mvc/model/query.zep.h | frqnck/cphalcon | 9c66927d02a04bfa87f0a6517a761744e376df42 | [
"BSD-3-Clause"
] | null | null | null | ext/phalcon/mvc/model/query.zep.h | frqnck/cphalcon | 9c66927d02a04bfa87f0a6517a761744e376df42 | [
"BSD-3-Clause"
] | null | null | null |
extern zend_class_entry *phalcon_mvc_model_query_ce;
ZEPHIR_INIT_CLASS(Phalcon_Mvc_Model_Query);
PHP_METHOD(Phalcon_Mvc_Model_Query, __construct);
PHP_METHOD(Phalcon_Mvc_Model_Query, setDI);
PHP_METHOD(Phalcon_Mvc_Model_Query, getDI);
PHP_METHOD(Phalcon_Mvc_Model_Query, setUniqueRow);
PHP_METHOD(Phalcon_Mvc_Model_Qu... | 49.248062 | 139 | 0.871242 |
12917d89ae30517aad489aa325e22f703250f98b | 965 | h | C | src/trunk/apps/tools/inventory/fdsnxml2inv/fdsnxml/xml.h | yannikbehr/seiscomp3 | ebb44c77092555eef7786493d00ac4efc679055f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 94 | 2015-02-04T13:57:34.000Z | 2021-11-01T15:10:06.000Z | src/trunk/apps/tools/inventory/fdsnxml2inv/fdsnxml/xml.h | yannikbehr/seiscomp3 | ebb44c77092555eef7786493d00ac4efc679055f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 233 | 2015-01-28T15:16:46.000Z | 2021-08-23T11:31:37.000Z | src/trunk/apps/tools/inventory/fdsnxml2inv/fdsnxml/xml.h | yannikbehr/seiscomp3 | ebb44c77092555eef7786493d00ac4efc679055f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 95 | 2015-02-13T15:53:30.000Z | 2021-11-02T14:54:54.000Z | /***************************************************************************
* Copyright (C) 2013 by gempa GmbH
*
* Author: Jan Becker
* Email: jabe@gempa.de $
*
***************************************************************************/
#ifndef __SEISCOMP_FDSNXML_XML_H__
#define __SEISCOMP_FDSNXML_XML_H... | 20.531915 | 77 | 0.366839 |
7bb86895a791ef433a35424e6556c42e4777493a | 348 | rb | Ruby | node/recipes/npm.rb | kawashita86/symfonyaws-chef-master | a83bf3b3b2258e05097625aaabd8368dbda8369b | [
"MIT"
] | null | null | null | node/recipes/npm.rb | kawashita86/symfonyaws-chef-master | a83bf3b3b2258e05097625aaabd8368dbda8369b | [
"MIT"
] | null | null | null | node/recipes/npm.rb | kawashita86/symfonyaws-chef-master | a83bf3b3b2258e05097625aaabd8368dbda8369b | [
"MIT"
] | null | null | null | node[:deploy].each do |app_name, deploy|
execute "npm" do
cwd "#{deploy[:deploy_to]}/current"
command "npm install"
environment "HOME" => "#{deploy[:deploy_to]}/current"
user deploy[:user]
group deploy[:group]
only_if do File.exists?("#{deploy[:deploy_to]}/current/pac... | 31.636364 | 81 | 0.609195 |
c43b4590ad288c7d65ba1a18c06a2d9ed17d30b5 | 1,122 | h | C | Applications/HomeUIService/HSEntitlementContext.h | lechium/iOS1351Headers | 6bed3dada5ffc20366b27f7f2300a24a48a6284e | [
"MIT"
] | 2 | 2021-11-02T09:23:27.000Z | 2022-03-28T08:21:57.000Z | Applications/HomeUIService/HSEntitlementContext.h | lechium/iOS1351Headers | 6bed3dada5ffc20366b27f7f2300a24a48a6284e | [
"MIT"
] | null | null | null | Applications/HomeUIService/HSEntitlementContext.h | lechium/iOS1351Headers | 6bed3dada5ffc20366b27f7f2300a24a48a6284e | [
"MIT"
] | 1 | 2022-03-28T08:21:59.000Z | 2022-03-28T08:21:59.000Z | //
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import <objc/NSObject.h>
@class NSString;
@interface HSEntitlementContext : NSObject
{
_Bool _isEntitledForHomeKitSPI; // 8 = 0x8
_Bool ... | 40.071429 | 189 | 0.789661 |
e2c697153bde33786eaa21b2a624914c9509e833 | 3,888 | kt | Kotlin | app/src/main/java/com/szymonstasik/kalkulatorsredniejwazonej/history/HistoryWeightedAverageAdapter.kt | DeNatur/Weighted_Average_Calculator_Mobile_App | 5e4fee0a5a2f363f4173e68ed1e0d4adcdf4a7fe | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/szymonstasik/kalkulatorsredniejwazonej/history/HistoryWeightedAverageAdapter.kt | DeNatur/Weighted_Average_Calculator_Mobile_App | 5e4fee0a5a2f363f4173e68ed1e0d4adcdf4a7fe | [
"Apache-2.0"
] | null | null | null | app/src/main/java/com/szymonstasik/kalkulatorsredniejwazonej/history/HistoryWeightedAverageAdapter.kt | DeNatur/Weighted_Average_Calculator_Mobile_App | 5e4fee0a5a2f363f4173e68ed1e0d4adcdf4a7fe | [
"Apache-2.0"
] | null | null | null | package com.szymonstasik.kalkulatorsredniejwazonej.history
import android.app.Dialog
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import android.view.Window
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.DiffUtil
import androidx.recycl... | 40.082474 | 108 | 0.689558 |
f21f3a680a7b222679e70d19c1ea00a08b1f59b7 | 2,758 | asm | Assembly | ugbc/src/hw/tms9918/cls_text.asm | spotlessmind1975/ugbasic | 1df3c8fde8e80b479ece86b4ff2b97b599d57ff4 | [
"Apache-2.0"
] | 10 | 2021-10-03T13:44:25.000Z | 2022-03-10T23:53:32.000Z | ugbc/src/hw/tms9918/cls_text.asm | spotlessmind1975/ugbasic | 1df3c8fde8e80b479ece86b4ff2b97b599d57ff4 | [
"Apache-2.0"
] | 379 | 2021-08-12T09:46:09.000Z | 2022-03-27T11:29:12.000Z | ugbc/src/hw/tms9918/cls_text.asm | spotlessmind1975/ugbasic | 1df3c8fde8e80b479ece86b4ff2b97b599d57ff4 | [
"Apache-2.0"
] | 2 | 2021-11-08T19:37:50.000Z | 2021-11-20T22:27:12.000Z | ; /*****************************************************************************
; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
; *****************************************************************************
; * Copyright 2021-2022 Marco Spedaletti (asimov@mclink.it)
; *
; * Licens... | 38.84507 | 80 | 0.47752 |
0e5206b53d2c3a743332c73e7ddb388de6e380d6 | 76 | html | HTML | profile/index.html | amanks-20/IITK-homepage | 0576ba5f0568ae9a0b9cc0ee0815d40742ba78b0 | [
"MIT"
] | null | null | null | profile/index.html | amanks-20/IITK-homepage | 0576ba5f0568ae9a0b9cc0ee0815d40742ba78b0 | [
"MIT"
] | null | null | null | profile/index.html | amanks-20/IITK-homepage | 0576ba5f0568ae9a0b9cc0ee0815d40742ba78b0 | [
"MIT"
] | null | null | null | <script>
window.location.replace("https://amanks-20.github.io/");
</script>
| 19 | 56 | 0.710526 |
f61c6749e0ea065b25ca11bf1d81273e3b8e63d0 | 456 | lua | Lua | gateway/plugins/property_rate_limiting/plugin.lua | wuwenhui0917/gateway | bf312118a09ffb1b918f6c754b1b6c9b479f3256 | [
"MIT"
] | null | null | null | gateway/plugins/property_rate_limiting/plugin.lua | wuwenhui0917/gateway | bf312118a09ffb1b918f6c754b1b6c9b479f3256 | [
"MIT"
] | null | null | null | gateway/plugins/property_rate_limiting/plugin.lua | wuwenhui0917/gateway | bf312118a09ffb1b918f6c754b1b6c9b479f3256 | [
"MIT"
] | null | null | null | local _M = {}
_M.name = 'property-rate-limiting-plugin'
_M.api_name = 'property-rate-limiting-api'
_M.require_prefix = 'gateway.plugins.property_rate_limiting.';
_M.plug_reponse_header_prefix = 'X-PropertyRateLimiting-Remaining-';
_M.table_name = 'property_rate_limiting'
_M.shared_dict_rw_lock_name = 'property_rate_li... | 35.076923 | 68 | 0.813596 |
3e6525f0518eb16f41a5dbfc72067ce7da8284bd | 1,703 | h | C | Example/Pods/Target Support Files/ZDFoundation/ZDFoundation-umbrella.h | jj89757hhb/ZDUIKit | 97badec54c2d13d027880623885ad6439874f24c | [
"MIT"
] | null | null | null | Example/Pods/Target Support Files/ZDFoundation/ZDFoundation-umbrella.h | jj89757hhb/ZDUIKit | 97badec54c2d13d027880623885ad6439874f24c | [
"MIT"
] | null | null | null | Example/Pods/Target Support Files/ZDFoundation/ZDFoundation-umbrella.h | jj89757hhb/ZDUIKit | 97badec54c2d13d027880623885ad6439874f24c | [
"MIT"
] | null | null | null | #ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "NSDate+ZDExtend.h"
#import "NSMutableArray+ZDSafe.h"
#import "NSMutableDictionary+ZDSafe.h"
#import "NSNotificationC... | 27.031746 | 66 | 0.790957 |
15a02ae692611f54efa3051594e439097aa18c46 | 197 | rb | Ruby | handlers/basecamp_project_todolist_todo_create_v1/test/simple_input.rb | kineticdata/peripherals-basecamp | 1f7a4523807597f037d8a8defda2ec74e773beba | [
"MIT"
] | null | null | null | handlers/basecamp_project_todolist_todo_create_v1/test/simple_input.rb | kineticdata/peripherals-basecamp | 1f7a4523807597f037d8a8defda2ec74e773beba | [
"MIT"
] | null | null | null | handlers/basecamp_project_todolist_todo_create_v1/test/simple_input.rb | kineticdata/peripherals-basecamp | 1f7a4523807597f037d8a8defda2ec74e773beba | [
"MIT"
] | null | null | null | {
'info' =>
{
'username'=>'',
'password'=>'',
'user_id'=>''
},
'parameters' =>
{
'project_name' => '',
'todolist_name' => '',
'content'=>'',
'due_at'=>''
}
} | 13.133333 | 26 | 0.380711 |
0518cd7ea251e12fd62137962aa09da221709ef3 | 6,831 | rb | Ruby | tests/unit/utils/unit_tests_string_utils.rb | rh-messaging/cli-proton-ruby | b640931713600d63e1937162ae5dc21656f841d8 | [
"Apache-2.0"
] | 1 | 2017-11-10T16:56:48.000Z | 2017-11-10T16:56:48.000Z | tests/unit/utils/unit_tests_string_utils.rb | rh-messaging/cli-proton-ruby | b640931713600d63e1937162ae5dc21656f841d8 | [
"Apache-2.0"
] | 42 | 2018-02-08T13:03:50.000Z | 2021-02-01T14:22:09.000Z | tests/unit/utils/unit_tests_string_utils.rb | rh-messaging/cli-proton-ruby | b640931713600d63e1937162ae5dc21656f841d8 | [
"Apache-2.0"
] | 2 | 2017-11-10T16:56:51.000Z | 2018-02-23T12:55:13.000Z | #!/usr/bin/env ruby
#--
# Copyright 2017 Red Hat 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 ... | 28.227273 | 88 | 0.776314 |
651f360c505b719ccafc01d1fe50f1f24c9b71d7 | 117 | py | Python | pype/modules/idle_manager/__init__.py | simonebarbieri/pype | a6dc83aa1300738749cbe8e5e2e6d2d1794e0289 | [
"MIT"
] | null | null | null | pype/modules/idle_manager/__init__.py | simonebarbieri/pype | a6dc83aa1300738749cbe8e5e2e6d2d1794e0289 | [
"MIT"
] | null | null | null | pype/modules/idle_manager/__init__.py | simonebarbieri/pype | a6dc83aa1300738749cbe8e5e2e6d2d1794e0289 | [
"MIT"
] | null | null | null | from .idle_module import (
IdleManager,
IIdleManager
)
__all__ = (
"IdleManager",
"IIdleManager"
)
| 10.636364 | 26 | 0.632479 |
6e4c3b094110ed3e732fde6003f00947b123595c | 1,016 | swift | Swift | fujiko/fujiko/Bases/ViewModel.swift | tickboxs/Swift-RxSwift-MVVM-Architecture | 12346ba9ba97aa0af079efd05c9f23872a575685 | [
"MIT"
] | 4 | 2020-09-07T09:22:48.000Z | 2021-11-18T05:53:44.000Z | fujiko/fujiko/Bases/ViewModel.swift | tickboxs/Swift-RxSwift-MVVM-Architecture | 12346ba9ba97aa0af079efd05c9f23872a575685 | [
"MIT"
] | null | null | null | fujiko/fujiko/Bases/ViewModel.swift | tickboxs/Swift-RxSwift-MVVM-Architecture | 12346ba9ba97aa0af079efd05c9f23872a575685 | [
"MIT"
] | 1 | 2021-11-22T05:47:25.000Z | 2021-11-22T05:47:25.000Z | //
// ViewModel.swift
// fujiko
//
// Created by Charlie Cai on 9/3/20.
// Copyright © 2020 tickboxs. All rights reserved.
//
import Foundation
import RxSwift
import Swinject
protocol DisposeBagable {
var disposeBag: DisposeBag { get }
}
protocol ViewModelType {
associatedtype Input
associatedty... | 22.577778 | 81 | 0.670276 |
0bcec35720facc60f6052c501eed08d234013ce4 | 6,291 | js | JavaScript | js/libs/oj/v5.1.0/min/ojpulltorefresh.js | cyberscythelibrary/apachejet | f01fc9d26528ffcae98e27ec91ccda6d1957e64a | [
"UPL-1.0"
] | 1 | 2020-04-13T11:21:32.000Z | 2020-04-13T11:21:32.000Z | js/libs/oj/v5.0.0/min/ojpulltorefresh.js | eedorenko/ojetdevops | 6cfcf1926bf09c607512f2f1480fa8e0c6e33f77 | [
"UPL-1.0"
] | null | null | null | js/libs/oj/v5.0.0/min/ojpulltorefresh.js | eedorenko/ojetdevops | 6cfcf1926bf09c607512f2f1480fa8e0c6e33f77 | [
"UPL-1.0"
] | 1 | 2018-04-24T07:13:21.000Z | 2018-04-24T07:13:21.000Z | /**
* @license
* Copyright (c) 2014, 2018, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
"use strict";define(["ojs/ojcore","jquery","promise","ojs/ojcomponentcore"],function(e,t){e.PullToRefreshUtils={},e.PullToRefreshUtils.setupPullToRefresh=function(l,a,s){var o,n,r,i,u,d,... | 1,048.5 | 6,157 | 0.736608 |
f418d213a280a623690fe9b0c844ea616a11faa4 | 2,233 | sql | SQL | docs/database/dump/votoelettronico_votiespressi.sql | gbrsni/votoElettronico | 484229206c511dde3531d2abd58f4885831f8f47 | [
"MIT"
] | null | null | null | docs/database/dump/votoelettronico_votiespressi.sql | gbrsni/votoElettronico | 484229206c511dde3531d2abd58f4885831f8f47 | [
"MIT"
] | null | null | null | docs/database/dump/votoelettronico_votiespressi.sql | gbrsni/votoElettronico | 484229206c511dde3531d2abd58f4885831f8f47 | [
"MIT"
] | null | null | null | -- MySQL dump 10.13 Distrib 8.0.27, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: votoelettronico
-- ------------------------------------------------------
-- Server version 8.0.27
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS... | 41.351852 | 136 | 0.724586 |
bbcd8dd208d07d67b1d26b05c7f248fae203575e | 614 | swift | Swift | sample/ViewController.swift | Parvinderjit/CheckboxList | ff938ebbc3c78ac576f9183844d69c10b3963255 | [
"MIT"
] | null | null | null | sample/ViewController.swift | Parvinderjit/CheckboxList | ff938ebbc3c78ac576f9183844d69c10b3963255 | [
"MIT"
] | null | null | null | sample/ViewController.swift | Parvinderjit/CheckboxList | ff938ebbc3c78ac576f9183844d69c10b3963255 | [
"MIT"
] | null | null | null | //
// ViewController.swift
// sample
//
// Created by Parvinder on 20/12/21.
// Copyright © 2021 Kyle Somers. All rights reserved.
//
import UIKit
import CheckboxList
class ViewController: UIViewController {
@IBOutlet private weak var list: ChecklistView!
override func viewDidLoad() {
super.viewD... | 21.172414 | 61 | 0.614007 |
6532631e7c9cbad3268bcb207c447017749491f6 | 894 | py | Python | drs4Calibration/drs4Calibration_version_0/config.py | fact-project/DrsTemperatureCalibration | 3702ee390c16cf2c5930d4a0f24c1354d036d645 | [
"MIT"
] | null | null | null | drs4Calibration/drs4Calibration_version_0/config.py | fact-project/DrsTemperatureCalibration | 3702ee390c16cf2c5930d4a0f24c1354d036d645 | [
"MIT"
] | null | null | null | drs4Calibration/drs4Calibration_version_0/config.py | fact-project/DrsTemperatureCalibration | 3702ee390c16cf2c5930d4a0f24c1354d036d645 | [
"MIT"
] | null | null | null | from drs4Calibration.drs4Calibration_version_0.constants import NRCELL, ROI
# Dont shuffle drsValueTypes
# The order have to be the same as the of the 'RUNIDs'
# in the drsFiles
drsValueTypes = ['Baseline',
'Gain',
'TriggerOffset']
renamedDrsValueTypes = ['Baseline',
... | 31.928571 | 75 | 0.589485 |
187014dc8ecf9cb305e87fd7f6c149590effdc2d | 7,195 | rs | Rust | rust/xaynet-server/src/state_machine/requests.rs | xaynetwork/xaynet | ae6a7b2127599b8ac9cd663a5259d2ff01392fe0 | [
"Apache-2.0"
] | 142 | 2020-07-15T09:29:45.000Z | 2022-03-26T16:23:25.000Z | rust/xaynet-server/src/state_machine/requests.rs | xaynetwork/xaynet | ae6a7b2127599b8ac9cd663a5259d2ff01392fe0 | [
"Apache-2.0"
] | 482 | 2020-07-14T08:03:23.000Z | 2022-03-28T07:26:22.000Z | rust/xaynet-server/src/state_machine/requests.rs | xaynetwork/xaynet | ae6a7b2127599b8ac9cd663a5259d2ff01392fe0 | [
"Apache-2.0"
] | 15 | 2020-07-16T07:26:34.000Z | 2022-02-05T13:04:49.000Z | //! This module provides the the `StateMachine`, `Request`, `RequestSender` and `RequestReceiver`
//! types.
use std::{
pin::Pin,
task::{Context, Poll},
};
use derive_more::From;
use displaydoc::Display;
use futures::{future::FutureExt, Stream};
use thiserror::Error;
use tokio::sync::{mpsc, oneshot};
use trac... | 34.927184 | 104 | 0.64517 |
f01114fcd31b24a944a91cf16636601c7b3cffa8 | 6,134 | py | Python | src/func.py | yygr/datascience_utility | aa6aa37508e46ab3568805dd1bb514ef10652240 | [
"MIT"
] | null | null | null | src/func.py | yygr/datascience_utility | aa6aa37508e46ab3568805dd1bb514ef10652240 | [
"MIT"
] | null | null | null | src/func.py | yygr/datascience_utility | aa6aa37508e46ab3568805dd1bb514ef10652240 | [
"MIT"
] | null | null | null | from pdb import set_trace
from time import time
import matplotlib.pyplot as plt
import numpy as np
from numpy import random
from scipy.stats import chi2
import renom as rm
class Enc(rm.Model):
def __init__(
self, pre, latent_dim,
output_act = None,
):
self.pre = pre
self.l... | 31.137056 | 80 | 0.5 |
6b63cec15dee3ebc3a5c5738cc244d58f9da22db | 1,754 | h | C | source/extensions/filters/common/mutation_rules/mutation_rules.h | DmitriyLashko1978/envoy | d76d44494f2c91ae3fcc288ae914ebecaadffb0f | [
"Apache-2.0"
] | null | null | null | source/extensions/filters/common/mutation_rules/mutation_rules.h | DmitriyLashko1978/envoy | d76d44494f2c91ae3fcc288ae914ebecaadffb0f | [
"Apache-2.0"
] | 27 | 2022-02-02T22:32:58.000Z | 2022-03-31T22:37:08.000Z | source/extensions/filters/common/mutation_rules/mutation_rules.h | beautytiger/envoy | e675f3e65757befe9462f43c5603193e47cfc047 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "envoy/config/common/mutation_rules/v3/mutation_rules.pb.h"
#include "envoy/http/header_map.h"
#include "source/common/common/regex.h"
#include "absl/strings/string_view.h"
namespace Envoy {
namespace Extensions {
namespace Filters {
namespace Common {
namespace MutationRules {
enum class Che... | 35.795918 | 100 | 0.77195 |
5c4301951d2d47d332694d9c1e00ce7b42db22ad | 15,374 | c | C | mi8/drivers/staging/qcacld-3.0/core/mac/src/cfg/cfg_param_name.c | wqk317/mi8_kernel_source | e3482d1a7ea6021de2fc8f3178496b4b043bb727 | [
"MIT"
] | null | null | null | mi8/drivers/staging/qcacld-3.0/core/mac/src/cfg/cfg_param_name.c | wqk317/mi8_kernel_source | e3482d1a7ea6021de2fc8f3178496b4b043bb727 | [
"MIT"
] | null | null | null | mi8/drivers/staging/qcacld-3.0/core/mac/src/cfg/cfg_param_name.c | wqk317/mi8_kernel_source | e3482d1a7ea6021de2fc8f3178496b4b043bb727 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2011-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all
* copies.
*
* THE SOFTWARE IS ... | 46.02994 | 72 | 0.882854 |