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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c99f0a23e9da75cb7d86a3ea0a9c7b74fb001bc7 | 6,592 | tsx | TypeScript | components/pageContent/homeContent/index.tsx | muclaud/profile-page | cc3e7358110c1f9f5661f544058afc02502959c3 | [
"0BSD"
] | 1 | 2021-12-17T13:23:21.000Z | 2021-12-17T13:23:21.000Z | components/pageContent/homeContent/index.tsx | muclaud/profile-page | cc3e7358110c1f9f5661f544058afc02502959c3 | [
"0BSD"
] | null | null | null | components/pageContent/homeContent/index.tsx | muclaud/profile-page | cc3e7358110c1f9f5661f544058afc02502959c3 | [
"0BSD"
] | null | null | null | import React from "react"
import TextAnimation from "components/animation/textAnimation"
import CardWithIcon from "components/pageContent/homeContent/cardWithIcon"
const HomeContent = (): JSX.Element => {
return (
<>
<div className="relative pt-16 flex content-center items-center justify-center min-h-scree... | 42.529032 | 154 | 0.544448 |
b9334c7b51634c7aa64d5671dc1159eab72bd3a5 | 3,220 | css | CSS | public/css/newStyle.css | nschenone/CSE_170_Final_Projet | 53c63454c26086b562336a503c8542c3e62f33c8 | [
"MIT"
] | null | null | null | public/css/newStyle.css | nschenone/CSE_170_Final_Projet | 53c63454c26086b562336a503c8542c3e62f33c8 | [
"MIT"
] | null | null | null | public/css/newStyle.css | nschenone/CSE_170_Final_Projet | 53c63454c26086b562336a503c8542c3e62f33c8 | [
"MIT"
] | null | null | null | :root {
--primary-color: #393F4D;
--secondary-color: #D4D4DC;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
height: 100%;
font-family: 'Roboto', sans-serif;
}
.container {
display: flex;
flex-direction: column;
padding: 0;
height: 100%;
width: 100... | 16.262626 | 45 | 0.581988 |
b6eb89066b50954533530948e76f07fbb807c1ea | 62 | dart | Dart | lib/theme/config.dart | ERNICommunity/erni-eats-fe | 05410780a9d5bed2c544a5935523d4690f69472c | [
"MIT"
] | null | null | null | lib/theme/config.dart | ERNICommunity/erni-eats-fe | 05410780a9d5bed2c544a5935523d4690f69472c | [
"MIT"
] | 26 | 2021-12-07T20:47:10.000Z | 2022-02-01T08:18:57.000Z | lib/theme/config.dart | ERNICommunity/erni-eats-fe | 05410780a9d5bed2c544a5935523d4690f69472c | [
"MIT"
] | null | null | null | import 'app-theme.dart';
AppTheme currentTheme = AppTheme();
| 15.5 | 35 | 0.741935 |
b608c72ba31ea7dbb8ba7f9de1316e504a930232 | 638 | gemspec | Ruby | radix.gemspec | Odebe/radix | ddb8c5d1bb970fa7c02d0746f64d7ffd91236e0d | [
"MIT"
] | null | null | null | radix.gemspec | Odebe/radix | ddb8c5d1bb970fa7c02d0746f64d7ffd91236e0d | [
"MIT"
] | null | null | null | radix.gemspec | Odebe/radix | ddb8c5d1bb970fa7c02d0746f64d7ffd91236e0d | [
"MIT"
] | null | null | null | # encoding: utf-8
require File.expand_path('../lib/radix/version', __FILE__)
Gem::Specification.new do |s|
s.name = 'radix'
s.version = Radix::VERSION
s.authors = ['Luis Lavena', 'Odebe']
s.license = 'MIT'
s.email = 'idunno'
s.homepage = 'https://github.com/Odebe/radix'
... | 33.578947 | 86 | 0.628527 |
2d047fd5880279a10d9968e401c04e9ab80e3b33 | 342 | css | CSS | src/app/ranked-option/ranked-option.component.css | blestander/electorate | d0219025417c4bbd01c11dce281ccc25479e1db3 | [
"Apache-2.0"
] | null | null | null | src/app/ranked-option/ranked-option.component.css | blestander/electorate | d0219025417c4bbd01c11dce281ccc25479e1db3 | [
"Apache-2.0"
] | 1 | 2022-03-02T08:17:32.000Z | 2022-03-02T08:17:32.000Z | src/app/ranked-option/ranked-option.component.css | blestander/electorate | d0219025417c4bbd01c11dce281ccc25479e1db3 | [
"Apache-2.0"
] | null | null | null | div {
margin-top: 2.5px;
margin-bottom: 2.5px;
padding: 2.5px;
border-radius: 2.5px;
text-align: center;
vertical-align: middle;
background-color: #7289DA;
cursor: all-scroll;
}
div:hover {
background-color: orangered
}
div.selected {
cursor: pointer;
}
input {
float: left;
... | 16.285714 | 31 | 0.619883 |
962b1fe7bbccedaab47e47b029a57b7686f65988 | 1,492 | rb | Ruby | lib/imgflip/log.rb | callumanderson/imgflip-cucumber | d0676042c09ee0c9743c7bb6fe298e88ab47cccc | [
"MIT"
] | null | null | null | lib/imgflip/log.rb | callumanderson/imgflip-cucumber | d0676042c09ee0c9743c7bb6fe298e88ab47cccc | [
"MIT"
] | null | null | null | lib/imgflip/log.rb | callumanderson/imgflip-cucumber | d0676042c09ee0c9743c7bb6fe298e88ab47cccc | [
"MIT"
] | null | null | null | require 'colorize'
require 'logger'
module Imgflip
class Log < Logger
def format_message(severity, timestamp, progname, msg)
if severity == 'DEBUG'
"#{Time.now.strftime('%Y-%m-%d %X')} [#{severity}][#{self.calling_method}][#{self.line_calling_method}] ::#{msg}\n"
elsif severity == 'WARN'
... | 37.3 | 146 | 0.595845 |
c51f92c8693d9c60667ab0718d3447ba5f75999e | 95 | css | CSS | public/projets_realises/css/style.css | OANDRE5/Simplon-Web | c7086ccb440e1e3f3cdc0478a92fef294a122bba | [
"MIT"
] | null | null | null | public/projets_realises/css/style.css | OANDRE5/Simplon-Web | c7086ccb440e1e3f3cdc0478a92fef294a122bba | [
"MIT"
] | 1 | 2021-02-02T19:20:19.000Z | 2021-02-02T19:20:19.000Z | public/projets_realises/css/style.css | OANDRE5/Simplon-Web | c7086ccb440e1e3f3cdc0478a92fef294a122bba | [
"MIT"
] | null | null | null | .marges
{
margin-left: 30%;
margin-right: 30%;
}
.bordure
{
border-radius: 15px;
} | 9.5 | 24 | 0.568421 |
4570bf32f8a781a6b0414d933b138680e67aec35 | 861 | py | Python | python/vision-ai/opencv/cv-image-base/image-gradient.py | media-tm/scrum-code | 170efdc57bc65bd3114faf4091b5e3faceb46c74 | [
"MIT"
] | null | null | null | python/vision-ai/opencv/cv-image-base/image-gradient.py | media-tm/scrum-code | 170efdc57bc65bd3114faf4091b5e3faceb46c74 | [
"MIT"
] | null | null | null | python/vision-ai/opencv/cv-image-base/image-gradient.py | media-tm/scrum-code | 170efdc57bc65bd3114faf4091b5e3faceb46c74 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
图像梯度原理:
OpenCV提供了三种不同的梯度滤波器(高通滤波器):Sobel,Scharr和Laplacian。
Sobel和Scharr是求一阶或二阶导数。
Scharr是对Sobel(使用小的卷积核求解梯度角度时)的优化,Laplacian是求二阶导数。
https://www.kancloud.cn/aollo/aolloopencv
'''
import cv2
import numpy
from matplotlib import pyplot as plt
img = cv2.imread('color-earth.png',0)
laplacian = cv... | 29.689655 | 52 | 0.729384 |
54bc15727861a9e686d27ad16915ff5488a0fd28 | 1,092 | css | CSS | client/src/components/settings/user-profile/profile/profile.css | AlfiyaRF/cloud-pipeline | 532c02a7e88928f42b28be87545aab93db404df5 | [
"Apache-2.0"
] | null | null | null | client/src/components/settings/user-profile/profile/profile.css | AlfiyaRF/cloud-pipeline | 532c02a7e88928f42b28be87545aab93db404df5 | [
"Apache-2.0"
] | null | null | null | client/src/components/settings/user-profile/profile/profile.css | AlfiyaRF/cloud-pipeline | 532c02a7e88928f42b28be87545aab93db404df5 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2017-2021 EPAM Systems, Inc. (https://www.epam.com/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 19.157895 | 76 | 0.677656 |
dfa6a25274eb7be6f381119da2f7e6a9d5bae850 | 5,563 | cs | C# | src/go2cs/Converter/Converter_IfStmt.cs | rgwood/go2cs | 9d9b931c53153bc1598268951de779ad9216e631 | [
"MIT"
] | 249 | 2018-06-02T10:42:32.000Z | 2022-03-23T20:54:45.000Z | src/go2cs/Converter/Converter_IfStmt.cs | rgwood/go2cs | 9d9b931c53153bc1598268951de779ad9216e631 | [
"MIT"
] | 14 | 2019-01-22T18:55:14.000Z | 2022-03-13T21:26:45.000Z | src/go2cs/Converter/Converter_IfStmt.cs | rgwood/go2cs | 9d9b931c53153bc1598268951de779ad9216e631 | [
"MIT"
] | 35 | 2018-08-01T18:04:30.000Z | 2022-02-23T03:25:25.000Z | //******************************************************************************************************
// Converter_Statement.cs - Gbtc
//
// Copyright © 2018, Grid Protection Alliance. All Rights Reserved.
//
// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See... | 47.144068 | 218 | 0.584217 |
a016db255cb8fe6eda177f3a5e9e225ab4b65ac7 | 354 | ts | TypeScript | src/themes/lightTheme.ts | vishnugopal/typed-themes-template | 66992cf8d4914437407e2471dc474b4ba4b918e1 | [
"MIT"
] | 7 | 2020-08-14T20:03:53.000Z | 2022-02-11T11:28:28.000Z | src/themes/lightTheme.ts | vishnugopal/typed-themes-template | 66992cf8d4914437407e2471dc474b4ba4b918e1 | [
"MIT"
] | null | null | null | src/themes/lightTheme.ts | vishnugopal/typed-themes-template | 66992cf8d4914437407e2471dc474b4ba4b918e1 | [
"MIT"
] | 3 | 2020-08-14T20:04:22.000Z | 2020-09-26T23:28:48.000Z | import Theme from './Theme';
const lightTheme: Theme = {
name: 'Light',
neutralColor: 'gray',
actionColor: 'blue',
secondaryActionColor: 'purple',
dangerColor: 'red',
warningColor: 'yellow',
successColor: 'green',
defaultIntensity: 200,
hoverIntensity: 300,
selectedIntensity: 60... | 20.823529 | 35 | 0.661017 |
c30d40ad35eafc406dfcaa2e22e86ebc596f0e7d | 806 | swift | Swift | Douyu/Douyu/Classes/Tools/NetWorkTools.swift | a178960320/MyDouyu | d76a92fdf6f0446e2f1de1234e544d2676e2eb9b | [
"MIT"
] | null | null | null | Douyu/Douyu/Classes/Tools/NetWorkTools.swift | a178960320/MyDouyu | d76a92fdf6f0446e2f1de1234e544d2676e2eb9b | [
"MIT"
] | null | null | null | Douyu/Douyu/Classes/Tools/NetWorkTools.swift | a178960320/MyDouyu | d76a92fdf6f0446e2f1de1234e544d2676e2eb9b | [
"MIT"
] | null | null | null | //
// NetWorkTools.swift
// Douyu
//
// Created by 住梦iOS on 2017/2/28.
// Copyright © 2017年 qiongjiwuxian. All rights reserved.
//
import UIKit
import Alamofire
enum MethodType{
case GET
case Post
}
class NetWorkTools{
class func requestData(type:MethodType,URLString:String,parameters:Parameters? = ... | 24.424242 | 169 | 0.62531 |
1298a72b720b7bdafd5a1d0a3389694bc8c68e8d | 1,006 | sql | SQL | third_party/ldbc/queries/sf10/q20.sql | graindb/graindb-demonstration | be901b3e66fc991ea3ecfbcfabdcd07af82dd2d7 | [
"MIT"
] | 1 | 2021-08-30T16:08:17.000Z | 2021-08-30T16:08:17.000Z | third_party/ldbc/queries/sf10/q20.sql | graindb/graindb-demonstration | be901b3e66fc991ea3ecfbcfabdcd07af82dd2d7 | [
"MIT"
] | 1 | 2021-12-12T03:36:02.000Z | 2021-12-12T03:36:02.000Z | third_party/ldbc/queries/sf10/q20.sql | graindb/graindb-demonstration | be901b3e66fc991ea3ecfbcfabdcd07af82dd2d7 | [
"MIT"
] | null | null | null | /* interactive-complex-13 */
WITH RECURSIVE search_graph AS (
SELECT 26388279067527::bigint AS link, 0 AS depth
--, ARRAY[26388279067527::bigint]::bigint[] AS path
UNION ALL
(WITH sg as (select link, depth from search_graph) -- Note: sg is only the diff produced in the previous iteration
SEL... | 35.928571 | 118 | 0.620278 |
4ce2dbaa4310fb00a988715555c7dadd782f286e | 406 | py | Python | semesterpage/migrations/0015_remove_options_homepage_slug.py | JakobGM/WikiLinks | 5743b1d4c3fefa66fcaa4d283436d2a3f0490604 | [
"MIT"
] | 6 | 2017-08-12T09:55:06.000Z | 2019-09-03T08:05:21.000Z | semesterpage/migrations/0015_remove_options_homepage_slug.py | JakobGM/WikiLinks | 5743b1d4c3fefa66fcaa4d283436d2a3f0490604 | [
"MIT"
] | 57 | 2017-08-11T23:05:07.000Z | 2022-03-11T23:32:12.000Z | semesterpage/migrations/0015_remove_options_homepage_slug.py | JakobGM/WikiLinks | 5743b1d4c3fefa66fcaa4d283436d2a3f0490604 | [
"MIT"
] | 1 | 2017-09-27T15:31:15.000Z | 2017-09-27T15:31:15.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-08-02 11:00
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('semesterpage', '0014_auto_20170802_1253'),
]
operations = [
migrations.RemoveField(... | 20.3 | 52 | 0.625616 |
3f6e201ec58279a7b323bbe6e09c98df37b9db7e | 23,531 | sql | SQL | conf/evolutions/default/1.sql | VuongTuanKhanh/DevC_2019_Sendo | 47a129e8d7099c8390799585f4373519d96c99c0 | [
"CC0-1.0"
] | null | null | null | conf/evolutions/default/1.sql | VuongTuanKhanh/DevC_2019_Sendo | 47a129e8d7099c8390799585f4373519d96c99c0 | [
"CC0-1.0"
] | null | null | null | conf/evolutions/default/1.sql | VuongTuanKhanh/DevC_2019_Sendo | 47a129e8d7099c8390799585f4373519d96c99c0 | [
"CC0-1.0"
] | null | null | null | # --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table agency (
id integer auto_increment not null,
agency_name varchar(255),
distribution_channel_id integer not null,
enable ... | 36.53882 | 78 | 0.539076 |
540b1e857fb8ff077a8cd029f21073a922111807 | 62 | css | CSS | wro4j-core/src/test/resources/ro/isdc/wro/model/resource/processor/jawrcss/expected/css3.css | changcheng/wro4j | 778e00e1be798f2cca9579450a88d55edd12a70a | [
"Apache-2.0"
] | 517 | 2015-03-25T17:19:51.000Z | 2022-03-02T15:44:08.000Z | wro4j-core/src/test/resources/ro/isdc/wro/model/resource/processor/jawrcss/expected/css3.css | changcheng/wro4j | 778e00e1be798f2cca9579450a88d55edd12a70a | [
"Apache-2.0"
] | 209 | 2015-03-25T21:07:40.000Z | 2021-12-18T19:03:28.000Z | wro4j-core/src/test/resources/ro/isdc/wro/model/resource/processor/jawrcss/expected/css3.css | changcheng/wro4j | 778e00e1be798f2cca9579450a88d55edd12a70a | [
"Apache-2.0"
] | 146 | 2015-03-30T11:16:54.000Z | 2022-03-22T02:18:21.000Z | ul.addobj a[href$='.pdf']{background-image:url(/img/pdf.png);} | 62 | 62 | 0.693548 |
dd59f31e9e3b0afbf2d67dceb53fc62abe1812aa | 11,840 | java | Java | jodd-db/src/main/java/jodd/db/oom/DbOomManager.java | zhiyongwang/jodd | 5af5518c1910ee64df4034540bf8f30a1771f15c | [
"BSD-2-Clause"
] | null | null | null | jodd-db/src/main/java/jodd/db/oom/DbOomManager.java | zhiyongwang/jodd | 5af5518c1910ee64df4034540bf8f30a1771f15c | [
"BSD-2-Clause"
] | null | null | null | jodd-db/src/main/java/jodd/db/oom/DbOomManager.java | zhiyongwang/jodd | 5af5518c1910ee64df4034540bf8f30a1771f15c | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2003-present, Jodd Team (http://jodd.org)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// th... | 29.526185 | 145 | 0.686402 |
4d1c800a0f24eedc8f750e03fac8d80b47a06bf3 | 2,227 | cs | C# | Facturama/Models/Retentions/Complements/ServiciosPlataformasTecnologicas.cs | rafa-dx/facturama-dotnet-sdk | 2bbbe66157522f627e736937223471f3e8f3d2aa | [
"Apache-2.0"
] | 2 | 2019-03-26T19:47:42.000Z | 2021-08-14T14:16:37.000Z | Facturama/Models/Retentions/Complements/ServiciosPlataformasTecnologicas.cs | rafa-dx/facturama-dotnet-sdk | 2bbbe66157522f627e736937223471f3e8f3d2aa | [
"Apache-2.0"
] | 1 | 2021-08-13T00:03:44.000Z | 2021-08-20T18:41:02.000Z | Facturama/Models/Retentions/Complements/ServiciosPlataformasTecnologicas.cs | rafa-dx/facturama-dotnet-sdk | 2bbbe66157522f627e736937223471f3e8f3d2aa | [
"Apache-2.0"
] | 8 | 2018-03-28T18:21:40.000Z | 2022-03-29T16:39:32.000Z | using System;
using System.Collections.Generic;
using System.Text;
namespace Facturama.Models.Retentions.Complementos.ServiciosPlataformasTecnologicas
{
public class ServiciosPlataformasTecnologicas
{
/// <summary>
/// Nodo requerido para detallar la información de los servicios prestados por
/// personas fís... | 34.796875 | 123 | 0.719802 |
0d8eef72719464cb8e3367d00f9a4609ff74de98 | 3,770 | dart | Dart | lib/model/forward_email_options.dart | ductranit/mailslurp-client-dart | 2ea7c02c74b9898f4fff1fc9de9fbc289b0c2044 | [
"MIT"
] | 1 | 2021-06-22T05:43:18.000Z | 2021-06-22T05:43:18.000Z | lib/model/forward_email_options.dart | ductranit/mailslurp-client-dart | 2ea7c02c74b9898f4fff1fc9de9fbc289b0c2044 | [
"MIT"
] | 1 | 2022-03-31T16:43:50.000Z | 2022-03-31T16:43:50.000Z | lib/model/forward_email_options.dart | ductranit/mailslurp-client-dart | 2ea7c02c74b9898f4fff1fc9de9fbc289b0c2044 | [
"MIT"
] | 2 | 2021-11-15T10:19:17.000Z | 2021-12-13T02:11:50.000Z | //
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.0
// ignore_for_file: unused_element, unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: lines_longer_than_80_chars
part of openapi.api;
class ForwardEmailOptions {
/// Returns a new [ForwardEmailOptions] instance... | 29.224806 | 129 | 0.61565 |
b04c4fa82b964be326bed724fb232deff833597a | 4,207 | py | Python | CST1101_WK07CL12_Functions_Examples_15-Mar-2021.py | ProfessorPatrickOnline/AlgorithmicProblemSolving | 8ddc2480a5922dde37140e64d48058930a546901 | [
"MIT"
] | 2 | 2021-03-15T16:33:01.000Z | 2021-03-24T19:31:30.000Z | CST1101_WK07CL12_Functions_Examples_15-Mar-2021.py | ProfessorPatrickOnline/AlgorithmicProblemSolving | 8ddc2480a5922dde37140e64d48058930a546901 | [
"MIT"
] | null | null | null | CST1101_WK07CL12_Functions_Examples_15-Mar-2021.py | ProfessorPatrickOnline/AlgorithmicProblemSolving | 8ddc2480a5922dde37140e64d48058930a546901 | [
"MIT"
] | 9 | 2021-03-15T12:38:26.000Z | 2021-03-15T16:45:26.000Z | # Topic - Functions: Examples and Exercises
# CST1101-OLXX Spr-2021 WK07CL12 Review
# by Professor Patrick PaSlattery@CityTech.CUNY.edu
### VOID FUNCTION
print("Example of a void function for its side effects")
# a simple function which prints whatever argument it receives
def print_void(argument):
"""T... | 32.361538 | 84 | 0.701925 |
07ae384693730b527165e22ce7894ba6f139a538 | 1,593 | rb | Ruby | lib/model_to_graphql/objects/belongs_to_union_type.rb | cannalogue/model_to_graphql | c4bb327c618bf97f98b09a3089362f9a4f5085c3 | [
"MIT"
] | 2 | 2019-02-13T16:46:52.000Z | 2019-12-15T22:20:08.000Z | lib/model_to_graphql/objects/belongs_to_union_type.rb | cannalogue/model_to_graphql | c4bb327c618bf97f98b09a3089362f9a4f5085c3 | [
"MIT"
] | 1 | 2019-11-06T05:09:22.000Z | 2019-11-06T05:09:22.000Z | lib/model_to_graphql/objects/belongs_to_union_type.rb | cannalogue/model_to_graphql | c4bb327c618bf97f98b09a3089362f9a4f5085c3 | [
"MIT"
] | 1 | 2019-09-13T15:19:37.000Z | 2019-09-13T15:19:37.000Z | # frozen_string_literal: true
module ModelToGraphql
module Objects
module BelongsToUnionType
def self.[](relation)
"#{self.name}::#{relation.name.capitalize}".constantize
end
def self.const_missing(name)
return self.const_get(name) if self.self_const_defined?(name)
rela... | 32.510204 | 112 | 0.539234 |
e79c75fca9bac3f48b2c85fbef68f7112b16d791 | 14,833 | dart | Dart | test/coap_message_api_test.dart | Sorunome/coap | 22f6714c01a84f0c80d17415172921cc8be0bf66 | [
"MIT"
] | 10 | 2018-07-20T08:34:25.000Z | 2021-12-24T17:43:28.000Z | test/coap_message_api_test.dart | Sorunome/coap | 22f6714c01a84f0c80d17415172921cc8be0bf66 | [
"MIT"
] | 52 | 2018-03-20T14:39:18.000Z | 2022-03-29T23:36:48.000Z | test/coap_message_api_test.dart | Sorunome/coap | 22f6714c01a84f0c80d17415172921cc8be0bf66 | [
"MIT"
] | 8 | 2019-11-17T08:37:29.000Z | 2022-03-25T04:37:38.000Z | /*
* Package : Coap
* Author : S. Hamblett <steve.hamblett@linux.com>
* Date : 20/09/2019
* Copyright : S.Hamblett
*/
import 'package:coap/coap.dart';
import 'package:coap/config/coap_config_logging.dart';
import 'package:test/test.dart';
// Note that nnot all API methods are tested here, some are tested in o... | 42.994203 | 210 | 0.739702 |
b4f2521454922bba2736fc5bceeae982fdf71732 | 409 | sql | SQL | openGaussBase/testcase/KEYWORDS/found/Opengauss_Function_Keyword_Found_Case0019.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/KEYWORDS/found/Opengauss_Function_Keyword_Found_Case0019.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/KEYWORDS/found/Opengauss_Function_Keyword_Found_Case0019.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | -- @testpoint:opengauss关键字found(非保留),作为外部数据源名
--关键字不带引号-成功
drop data source if exists found;
create data source found;
drop data source found;
--关键字带双引号-成功
drop data source if exists "found";
create data source "found";
drop data source "found";
--关键字带单引号-合理报错
drop data source if exists 'found';
create data source ... | 20.45 | 46 | 0.750611 |
ae761dd4e187ac5e0503c709d656eb3d6d49c171 | 375 | cs | C# | Assets/Game/Scripts/CreationHelper.cs | khanhdrag9/FallGuyClone | 6d0c2aa805eca66580a4cc9eef3d343f4ad93463 | [
"MIT"
] | null | null | null | Assets/Game/Scripts/CreationHelper.cs | khanhdrag9/FallGuyClone | 6d0c2aa805eca66580a4cc9eef3d343f4ad93463 | [
"MIT"
] | null | null | null | Assets/Game/Scripts/CreationHelper.cs | khanhdrag9/FallGuyClone | 6d0c2aa805eca66580a4cc9eef3d343f4ad93463 | [
"MIT"
] | null | null | null | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public static class CreationHelper
{
public static void SetLayer(Transform source, int layer, bool excluseParent)
{
if(!excluseParent)
source.gameObject.layer = layer;
foreach (Transform trans in sourc... | 23.4375 | 80 | 0.685333 |
e221440688c47b0def7b5153c35b1c8584777076 | 2,743 | py | Python | lessons/payments/clients/paypal.py | anuroop18/django-lessons-proj | 756582c31287582c211004d5b4e86fd570fed1f9 | [
"Apache-2.0"
] | null | null | null | lessons/payments/clients/paypal.py | anuroop18/django-lessons-proj | 756582c31287582c211004d5b4e86fd570fed1f9 | [
"Apache-2.0"
] | null | null | null | lessons/payments/clients/paypal.py | anuroop18/django-lessons-proj | 756582c31287582c211004d5b4e86fd570fed1f9 | [
"Apache-2.0"
] | 2 | 2021-08-24T23:42:46.000Z | 2022-01-14T14:03:45.000Z | import os
import paypalrestsdk
import yaml
from django.conf import settings
from lessons.payments import plans
BASE_DIR = os.path.join(
"..", # proj
"..", # land
os.path.dirname(__file__) # commands
)
ORDER_A_CONF_PATH = os.path.join("paypal", "order-annual.yml")
ORDER_M_CONF_PATH = os.path.join("payp... | 22.120968 | 66 | 0.610645 |
2fd7ccb0edcef982c78529cb3f2b6240607ff221 | 4,018 | py | Python | test/TestHttpdConf.py | bigio/mod_md | 5e34c14e2b7ad195f662290c26481cbc3a249fe0 | [
"Apache-2.0"
] | null | null | null | test/TestHttpdConf.py | bigio/mod_md | 5e34c14e2b7ad195f662290c26481cbc3a249fe0 | [
"Apache-2.0"
] | null | null | null | test/TestHttpdConf.py | bigio/mod_md | 5e34c14e2b7ad195f662290c26481cbc3a249fe0 | [
"Apache-2.0"
] | null | null | null | ###################################################################################################
# httpd test configuration generator
#
# (c) 2019 greenbytes GmbH
###################################################################################################
import os
from shutil import copyfile
from TestEnv i... | 29.328467 | 107 | 0.559731 |
8e67e0b8e40bb05f74bec025f806a196b0c1fdac | 30,116 | js | JavaScript | src/languages/igorpro.js | GerHobbelt/highlight.js | 61cf73430b1db8ca42226851bcd3290f5a8cf967 | [
"BSD-3-Clause"
] | null | null | null | src/languages/igorpro.js | GerHobbelt/highlight.js | 61cf73430b1db8ca42226851bcd3290f5a8cf967 | [
"BSD-3-Clause"
] | null | null | null | src/languages/igorpro.js | GerHobbelt/highlight.js | 61cf73430b1db8ca42226851bcd3290f5a8cf967 | [
"BSD-3-Clause"
] | null | null | null | /*
* Language: Igor Pro
* Author: Adam Light <adam@wavemetrics.com>,
* Thomas Braun <thomas.braun@byte-physics.de>
* Contributors:
* Category: scientific
* Description: Programming language used by Igor Pro (www.igorpro.net)
*/
export default function(hljs) {
var WAVE_DECLARATION = {
className: '... | 75.29 | 94 | 0.81133 |
7994f801073c80d5700db5581cfb30d15c6d5e86 | 7,501 | php | PHP | src/Core/Content/Product/SalesChannel/Price/ProductPriceDefinitionBuilder.php | szepeviktor/platform | 7f528ac45cda4cd374b71afa8615e5d793d45ba9 | [
"MIT"
] | null | null | null | src/Core/Content/Product/SalesChannel/Price/ProductPriceDefinitionBuilder.php | szepeviktor/platform | 7f528ac45cda4cd374b71afa8615e5d793d45ba9 | [
"MIT"
] | 19 | 2020-09-06T09:54:53.000Z | 2022-02-26T15:01:11.000Z | src/Core/Content/Product/SalesChannel/Price/ProductPriceDefinitionBuilder.php | franbow/shopware | 14114003c16bcb44ef9ddb8bbd113d85630287da | [
"MIT"
] | null | null | null | <?php declare(strict_types=1);
namespace Shopware\Core\Content\Product\SalesChannel\Price;
use Shopware\Core\Checkout\Cart\Price\Struct\CartPrice;
use Shopware\Core\Checkout\Cart\Price\Struct\PriceDefinitionCollection;
use Shopware\Core\Checkout\Cart\Price\Struct\QuantityPriceDefinition;
use Shopware\Core\Content\Pro... | 36.0625 | 121 | 0.625917 |
96ad185334f005ac928b339338c395d66566a68c | 2,002 | sql | SQL | finddb_schema/base_schema/create_measurements_table.sql | sjsafranek/find5 | c8d5bbbcfb4b33f420a83f07025bad9727474ce3 | [
"MIT"
] | 1 | 2019-08-17T00:48:06.000Z | 2019-08-17T00:48:06.000Z | finddb_schema/base_schema/create_measurements_table.sql | sjsafranek/find5 | c8d5bbbcfb4b33f420a83f07025bad9727474ce3 | [
"MIT"
] | null | null | null | finddb_schema/base_schema/create_measurements_table.sql | sjsafranek/find5 | c8d5bbbcfb4b33f420a83f07025bad9727474ce3 | [
"MIT"
] | null | null | null |
DROP TABLE IF EXISTS measurements CASCADE;
-- @table measurements
-- @description stores measurements collected by sensors at a given location
CREATE TABLE IF NOT EXISTS measurements (
id SERIAL PRIMARY KEY,
location_id VARCHAR(36) NOT NULL REFERENCES locations(id) ON DELETE CASCADE,
sens... | 39.254902 | 96 | 0.696803 |
b77e355a449d985fa8a1ac1c11900ec489b00fa8 | 3,114 | cpp | C++ | UVa 12833 - Daily Potato/sample/12833 - Daily Potato.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 12833 - Daily Potato/sample/12833 - Daily Potato.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 12833 - Daily Potato/sample/12833 - Daily Potato.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | #include <stdio.h>
#include <string.h>
#include <algorithm>
#include <vector>
using namespace std;
#define MAXL 262144
char S[MAXL], C[MAXL], T[MAXL];
int dp[MAXL], n, m;
int A[MAXL][26], SUM[MAXL][26];
void exbuild(char S[]) { // manacher's algorithm
n = strlen(S), m = 2 * n + 1;
int mx = 0, idx = 0;
int ans ... | 22.729927 | 106 | 0.423892 |
4412e2b15f3a96f14e75d4d6fa700dcaeab1d097 | 1,902 | py | Python | experiments/node_classification/gat/gat_train.py | yimengmin/wiki-cs-dataset | 4078c80e698c58e5cfb3ef19f2716f1032dced4d | [
"MIT"
] | 30 | 2020-07-05T12:04:24.000Z | 2021-12-08T13:08:33.000Z | experiments/node_classification/gat/gat_train.py | yimengmin/wiki-cs-dataset | 4078c80e698c58e5cfb3ef19f2716f1032dced4d | [
"MIT"
] | 4 | 2021-02-26T13:59:42.000Z | 2022-01-09T23:22:09.000Z | experiments/node_classification/gat/gat_train.py | yimengmin/wiki-cs-dataset | 4078c80e698c58e5cfb3ef19f2716f1032dced4d | [
"MIT"
] | 5 | 2020-07-07T09:21:57.000Z | 2021-07-14T13:32:42.000Z | import argparse
import torch.nn.functional as F
from .. import load_graph_data
from ..train import train_and_eval
from ..train import register_general_args
from .gat import GAT
def gat_model_fn(args, data):
heads = ([args.n_heads] * args.n_layers) + [args.n_out_heads]
return GAT(data.graph,
a... | 36.576923 | 73 | 0.608833 |
1a89f5a3e10370c1d8a6cbf9255a650cab0b4335 | 2,172 | py | Python | clock/clock.py | Shikkic/exercism.io.python | b7cd69dbe74886971c3a26dfb8b3c09013d87be2 | [
"MIT"
] | null | null | null | clock/clock.py | Shikkic/exercism.io.python | b7cd69dbe74886971c3a26dfb8b3c09013d87be2 | [
"MIT"
] | null | null | null | clock/clock.py | Shikkic/exercism.io.python | b7cd69dbe74886971c3a26dfb8b3c09013d87be2 | [
"MIT"
] | null | null | null |
class Clock():
# Set initial Clock state
def __init__(self, hours, minutes):
timeDic = self.calculateMinutes(minutes)
self.minutes = timeDic['minutes']
self.hours = self.calculateHour(hours + timeDic['hours'])
self.time = self.generateTimeString()
# Add minutes to the cl... | 28.96 | 75 | 0.598066 |
e058adfe3cd669f493c6bcb1ca7aee6597a5b30a | 1,139 | h | C | net/irda/irsir/crystal.h | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | net/irda/irsir/crystal.h | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | net/irda/irsir/crystal.h | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*****************************************************************************
*
* Copyright (c) 1998-1999 Microsoft Corporation
*
* @doc
* @module Crystal.h | IrSIR NDIS Miniport Driver
* @comm
*
*-----------------------------------------------------------------------------
*
* Aut... | 24.234043 | 79 | 0.403863 |
2c7129e6c67e09d9ed9cee18d0b3283fc670c17a | 2,341 | cpp | C++ | app/src/tags.cpp | anovotarsk/utag | 3c2b59af2a7056e724a01b31e50c788c08f67c67 | [
"MIT"
] | null | null | null | app/src/tags.cpp | anovotarsk/utag | 3c2b59af2a7056e724a01b31e50c788c08f67c67 | [
"MIT"
] | null | null | null | app/src/tags.cpp | anovotarsk/utag | 3c2b59af2a7056e724a01b31e50c788c08f67c67 | [
"MIT"
] | null | null | null | #include <tags.h>
/*
0 - Artist
1 - Title
2 - Album
3 - Genre
*/
MP3File::MP3File(std::string file) : m_path(file) {
int len;
std::string *s = strsplit(file, '/', &len);
m_name = s[len - 1];
delete [] s;
}
MP3File::~MP3File() {
}
std::string MP3File::getName() {
return m_name;
}
std::string MP... | 21.675926 | 65 | 0.579667 |
33af57c5ef2f2154751a3fab83e09526281d9b18 | 1,564 | h | C | editor/VandaEngine1/PublishProject.h | ehsankamrani/vandaengine | 854430e41db6df1f4fcad9c19718fd8dfcc2c3cb | [
"MIT"
] | 12 | 2021-06-22T11:28:12.000Z | 2022-03-21T00:56:33.000Z | editor/VandaEngine1/PublishProject.h | ehsankamrani/vandaengine | 854430e41db6df1f4fcad9c19718fd8dfcc2c3cb | [
"MIT"
] | null | null | null | editor/VandaEngine1/PublishProject.h | ehsankamrani/vandaengine | 854430e41db6df1f4fcad9c19718fd8dfcc2c3cb | [
"MIT"
] | 1 | 2018-10-05T08:17:29.000Z | 2018-10-05T08:17:29.000Z | //Copyright (C) 2022 Ehsan Kamrani
//This file is licensed and distributed under MIT license
#pragma once
#include "afxcmn.h"
#include "afxwin.h"
// CPublishProject dialog
class CPublishProject : public CDialog
{
DECLARE_DYNAMIC(CPublishProject)
public:
CPublishProject(CWnd* pParent = NULL); // standard const... | 25.225806 | 71 | 0.801151 |
662352b96b7ab0310edc50c9e45b24b0a7a4ed5b | 1,094 | py | Python | test codes/cython_test/cython_test_try_2/testing.py | DionEngels/MBxPython | 1f1bc7f3be86082a6f3f4dc0eaf162db00061b34 | [
"MIT"
] | null | null | null | test codes/cython_test/cython_test_try_2/testing.py | DionEngels/MBxPython | 1f1bc7f3be86082a6f3f4dc0eaf162db00061b34 | [
"MIT"
] | null | null | null | test codes/cython_test/cython_test_try_2/testing.py | DionEngels/MBxPython | 1f1bc7f3be86082a6f3f4dc0eaf162db00061b34 | [
"MIT"
] | null | null | null | import example_cy
import numpy as np
import mbx_fortran
import optimized_cy
import time
size = 9
height = 1
center_x = 4
center_y = 4
width_x = 2
width_y = 2
data = np.zeros((size, size), dtype=np.uint16)
num_loop = 10000
loops = list(range(0, num_loop))
start = time.time()
for loop in loops:
res_c = example_... | 24.863636 | 99 | 0.680987 |
f8e0d2b6b1b20d8a2ad970435294443f57d849b0 | 77 | sql | SQL | src/test/resources/sql/create_schema/956732ed.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_schema/956732ed.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_schema/956732ed.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 28 | 2019-01-05T19:59:02.000Z | 2022-03-24T11:55:50.000Z | -- file:rowsecurity.sql ln:1789 expect:true
CREATE SCHEMA regress_rls_schema
| 25.666667 | 43 | 0.831169 |
fb34c0ebf440bd5900c35a920d2ac64f5ab192b8 | 883 | swift | Swift | JASOONTests/Sources/JSON.swift | JulianAlonso/JASOON | 8262a878513591637479637635174794fbd1b3e3 | [
"MIT"
] | 3 | 2017-06-22T18:24:27.000Z | 2017-06-23T15:45:46.000Z | JASOONTests/Sources/JSON.swift | JulianAlonso/JASOON | 8262a878513591637479637635174794fbd1b3e3 | [
"MIT"
] | null | null | null | JASOONTests/Sources/JSON.swift | JulianAlonso/JASOON | 8262a878513591637479637635174794fbd1b3e3 | [
"MIT"
] | 1 | 2017-06-22T21:20:39.000Z | 2017-06-22T21:20:39.000Z | //
// ParsingTests.swift
// JASON
//
// Created by Julian Parkfy on 21/3/17.
// Copyright © 2017 Julian. All rights reserved.
//
@testable import JASOON
import XCTest
final class JSONTest: XCTestCase {
func testSolvingTypeIsSettedWhenCallingJSONInitializableConstructor() {
let data = "Object".dat... | 22.075 | 107 | 0.622877 |
d7847ec54b383fed61becfedc8ae47faef206b67 | 4,037 | dart | Dart | lib/portfolio_store.dart | adewaleafolabi/portfolio | d2dc401608f147c509e1a798e6a466442c5103b0 | [
"Unlicense"
] | null | null | null | lib/portfolio_store.dart | adewaleafolabi/portfolio | d2dc401608f147c509e1a798e6a466442c5103b0 | [
"Unlicense"
] | null | null | null | lib/portfolio_store.dart | adewaleafolabi/portfolio | d2dc401608f147c509e1a798e6a466442c5103b0 | [
"Unlicense"
] | 1 | 2019-02-27T00:14:01.000Z | 2019-02-27T00:14:01.000Z | import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:mobx/mobx.dart';
import 'package:portfolio/service/portfolio_data.dart';
import 'package:portfolio/service/portfolio_service.dart';
import 'package:random_color/random_color.dart';
part 'portfolio_store.g.dart';
class PortfolioStore = _Por... | 26.045161 | 76 | 0.681447 |
f173bb64946a53642caa87c14b75b23a0c3972b1 | 487 | rb | Ruby | lib/uiza/api_operation/list.rb | uizaio/api-wrapper-ruby | b0dee726769674f9076dbcba7a2f43f49375516f | [
"MIT"
] | null | null | null | lib/uiza/api_operation/list.rb | uizaio/api-wrapper-ruby | b0dee726769674f9076dbcba7a2f43f49375516f | [
"MIT"
] | null | null | null | lib/uiza/api_operation/list.rb | uizaio/api-wrapper-ruby | b0dee726769674f9076dbcba7a2f43f49375516f | [
"MIT"
] | 10 | 2019-02-11T04:37:56.000Z | 2019-10-25T08:38:36.000Z | module Uiza
module APIOperation
module List
def list params = {}
url = "https://#{Uiza.workspace_api_domain}/api/public/#{Uiza.api_version}/#{self::OBJECT_API_PATH}"
method = :get
headers = {"Authorization" => Uiza.authorization}
params["id"] = "" if self == Uiza::User
... | 30.4375 | 108 | 0.64271 |
1a2f56cf093b461b930e93a13c1778c2f4a7b13d | 1,915 | py | Python | image_visualizer.py | bokachsub/CarNDPY | e828427e96dbd1053478f33945eedc57007aed56 | [
"MIT"
] | null | null | null | image_visualizer.py | bokachsub/CarNDPY | e828427e96dbd1053478f33945eedc57007aed56 | [
"MIT"
] | null | null | null | image_visualizer.py | bokachsub/CarNDPY | e828427e96dbd1053478f33945eedc57007aed56 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import math, cv2, glob
import numpy as np
class ImageVisualizer:
# region vars
# endregion
def __init__(self, shape):
self.shape = shape
# to get a name of parameter variable to print a name in subplot
def param_to_str(self, obj, namespace):
return ... | 39.081633 | 97 | 0.627676 |
b0735c56d325e97b0fcfbc78aa1c07a7c7c45ee9 | 637 | py | Python | openstates/openstates-master/scripts/tn_109fix/tnfix.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/scripts/tn_109fix/tnfix.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/scripts/tn_109fix/tnfix.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | import sys
import plop
import pymongo
def main(state):
db = pymongo.MongoClient().fiftystates
index = plop.Index()
spec = dict(state=state)
print('adding bills')
for bill in db.bills.find(spec):
index.add_object(bill)
print('adding legislators')
for obj in db.legislators.find(spe... | 19.30303 | 42 | 0.643642 |
259b0e7dc3f841136ee3f6cdaa37d44eb50a9da3 | 1,112 | dart | Dart | lib/screens/explore/widgets/create_your_own_activity_button.dart | StefanSuess/Bsc-Project-Aiya | f7f1af8faa7b45260b5a8f3cc4c81bc6446e8d82 | [
"MIT"
] | null | null | null | lib/screens/explore/widgets/create_your_own_activity_button.dart | StefanSuess/Bsc-Project-Aiya | f7f1af8faa7b45260b5a8f3cc4c81bc6446e8d82 | [
"MIT"
] | null | null | null | lib/screens/explore/widgets/create_your_own_activity_button.dart | StefanSuess/Bsc-Project-Aiya | f7f1af8faa7b45260b5a8f3cc4c81bc6446e8d82 | [
"MIT"
] | 1 | 2021-06-07T17:13:00.000Z | 2021-06-07T17:13:00.000Z | import 'package:Aiya/constants.dart';
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:getwidget/components/button/gf_button.dart';
import 'package:getwidget/size/gf_size.dart';
import 'package:getwidget/types/gf_button_type.dart';
class CreateYou... | 29.263158 | 67 | 0.676259 |
0d75bc34193484867af80738c9d8ae6345c74b7c | 3,368 | cs | C# | ICSharpCode.SharpDevelop.Dom/Src/DiffUtility.cs | jbuedel/AgentRalphPlugin | 0a81a948ffc425f3e38713766a6f1577ac9e6376 | [
"BSD-3-Clause"
] | 6 | 2015-03-05T06:00:59.000Z | 2015-05-11T07:26:28.000Z | ICSharpCode.SharpDevelop.Dom/Src/DiffUtility.cs | jbuedel/AgentRalphPlugin | 0a81a948ffc425f3e38713766a6f1577ac9e6376 | [
"BSD-3-Clause"
] | 4 | 2015-01-22T20:38:16.000Z | 2017-02-22T13:34:26.000Z | ICSharpCode.SharpDevelop.Dom/Src/DiffUtility.cs | jbuedel/AgentRalphPlugin | 0a81a948ffc425f3e38713766a6f1577ac9e6376 | [
"BSD-3-Clause"
] | 5 | 2015-04-03T14:12:57.000Z | 2021-05-20T06:06:08.000Z | // <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Daniel Grunwald" email="daniel@danielgrunwald.de"/>
// <version>$Revision: 1661 $</version>
// </file>
using System;
using System.Collections;
using System.Collections.Generic;
... | 25.134328 | 101 | 0.5769 |
3952109feb06649c8830b9151ef3e96a63918193 | 1,043 | py | Python | cm_lex/Generate.py | UKPLab/acl2021-metaphor-generation-conceptual | 2db0c927ad2e89792030dbdcf0eddd78e18d8e85 | [
"Apache-2.0"
] | 6 | 2021-05-25T13:15:13.000Z | 2022-01-05T06:15:26.000Z | cm_lex/Generate.py | UKPLab/acl2021-metaphor-generation-conceptual | 2db0c927ad2e89792030dbdcf0eddd78e18d8e85 | [
"Apache-2.0"
] | 3 | 2021-07-25T23:17:29.000Z | 2021-09-26T14:00:23.000Z | cm_lex/Generate.py | UKPLab/acl2021-metaphor-generation-conceptual | 2db0c927ad2e89792030dbdcf0eddd78e18d8e85 | [
"Apache-2.0"
] | 1 | 2021-09-07T12:03:18.000Z | 2021-09-07T12:03:18.000Z | import sys, getopt
from LexicalReplacement import LexicalReplacement
from ModelTesting import Test
config = {"mappings":"../mappings/w2v_50.json",
"embeddings":"../models/w2v_50"}
def text_to_tests(texts):
for line in texts:
yield Test.from_tsv(line)
def generate(model, texts):
tests = ... | 21.285714 | 89 | 0.580058 |
200864ff829de5b9fcb14d779a385acc6889742b | 1,946 | py | Python | bricks/mortar/rpcapi.py | CloudBrewery/bricks-service | e905c324b062bfd8a8b3917c788849ea0d497e54 | [
"Apache-1.1"
] | null | null | null | bricks/mortar/rpcapi.py | CloudBrewery/bricks-service | e905c324b062bfd8a8b3917c788849ea0d497e54 | [
"Apache-1.1"
] | null | null | null | bricks/mortar/rpcapi.py | CloudBrewery/bricks-service | e905c324b062bfd8a8b3917c788849ea0d497e54 | [
"Apache-1.1"
] | null | null | null | """
Client side of the conductor RPC API.
"""
from oslo.config import cfg
from bricks.objects import base as objects_base
import bricks.openstack.common.rpc.proxy
cfg.CONF.set_default('allowed_rpc_exception_modules',
['bricks.common.exception',
'exceptions', ])
class Mort... | 29.938462 | 77 | 0.621788 |
52590f89663923f9e4ca3a93fc3979d1e65d89d8 | 14,665 | swift | Swift | Tests/ImagePipelineCacheTests.swift | b9software/Nuke | 32d188fbac904ad273495dbfcd501fea569a4a2b | [
"MIT"
] | 6,940 | 2015-03-17T11:53:13.000Z | 2022-03-31T19:00:42.000Z | Tests/ImagePipelineCacheTests.swift | b9software/Nuke | 32d188fbac904ad273495dbfcd501fea569a4a2b | [
"MIT"
] | 416 | 2015-06-25T10:00:27.000Z | 2022-03-30T12:48:46.000Z | Tests/ImagePipelineCacheTests.swift | b9software/Nuke | 32d188fbac904ad273495dbfcd501fea569a4a2b | [
"MIT"
] | 531 | 2015-06-25T04:49:35.000Z | 2022-03-31T03:59:16.000Z | // The MIT License (MIT)
//
// Copyright (c) 2015-2021 Alexander Grebenyuk (github.com/kean).
import XCTest
@testable import Nuke
class ImagePipelineCacheTests: XCTestCase {
var memoryCache: MockImageCache!
var diskCache: MockDataCache!
var dataLoader: MockDataLoader!
var pipeline: ImagePipeline!
... | 30.488565 | 88 | 0.6373 |
4cffef23ff14bd4681cca1472a6ec291126b10af | 9,518 | py | Python | notebooks/0.1_SVM_Multiclass_Approach.py | AlessandroVol23/kdd-cup-2019 | 7f140d1d6213dc0d05d07a2c8bff9fe949b72ed8 | [
"MIT"
] | 10 | 2019-07-24T19:14:59.000Z | 2022-01-04T06:35:27.000Z | notebooks/0.1_SVM_Multiclass_Approach.py | AlessandroVol23/kdd-cup-2019 | 7f140d1d6213dc0d05d07a2c8bff9fe949b72ed8 | [
"MIT"
] | 2 | 2020-07-02T15:53:45.000Z | 2020-07-29T04:40:33.000Z | notebooks/0.1_SVM_Multiclass_Approach.py | AlessandroVol23/kdd-cup-2019 | 7f140d1d6213dc0d05d07a2c8bff9fe949b72ed8 | [
"MIT"
] | 8 | 2019-07-21T20:05:09.000Z | 2021-12-28T03:03:40.000Z | # -*- coding: utf-8 -*-
"""
Created on Fri May 10 15:07:36 2019
@author: kuche_000
Multiclass Baselinemodels - KDD Cup
"""
# Packages
import pandas as pd
import numpy as np
import sklearn.svm
import sklearn.metrics as metrics
import sklearn.tree
import sklearn.ensemble
import time
import os
import pickle
from sklearn... | 34.610909 | 121 | 0.673041 |
c6c64629b86fa3174844343e399fb0565ca845d5 | 3,672 | py | Python | openpifpaf/export_onnx.py | taylormordan/openpifpaf | c516dded6554de51d1126fabb748cdd782993cb1 | [
"CC-BY-2.0"
] | null | null | null | openpifpaf/export_onnx.py | taylormordan/openpifpaf | c516dded6554de51d1126fabb748cdd782993cb1 | [
"CC-BY-2.0"
] | null | null | null | openpifpaf/export_onnx.py | taylormordan/openpifpaf | c516dded6554de51d1126fabb748cdd782993cb1 | [
"CC-BY-2.0"
] | null | null | null | """Export a checkpoint as an ONNX model.
Applies onnx utilities to improve the exported model and
also tries to simplify the model with onnx-simplifier.
https://github.com/onnx/onnx/blob/master/docs/PythonAPIOverview.md
https://github.com/daquexian/onnx-simplifier
"""
import argparse
import logging
import shutil
im... | 29.376 | 96 | 0.657952 |
8e95f97c2e6af8808f7fdfe752ccbbd8fec6e995 | 375 | js | JavaScript | node_modules/@iconify/icons-ic/outline-place.js | kagwicharles/Seniorproject-ui | 265956867c8a00063067f03e8772b93f2986c626 | [
"MIT"
] | null | null | null | node_modules/@iconify/icons-ic/outline-place.js | kagwicharles/Seniorproject-ui | 265956867c8a00063067f03e8772b93f2986c626 | [
"MIT"
] | null | null | null | node_modules/@iconify/icons-ic/outline-place.js | kagwicharles/Seniorproject-ui | 265956867c8a00063067f03e8772b93f2986c626 | [
"MIT"
] | 1 | 2021-09-28T19:15:17.000Z | 2021-09-28T19:15:17.000Z | var data = {
"body": "<path d=\"M12 12c-1.1 0-2-.9-2-2s.9-2 2-2s2 .9 2 2s-.9 2-2 2zm6-1.8C18 6.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14c4.05-3.7 6-6.8 6-9.14zM12 2c4.2 0 8 3.22 8 8.2c0 3.32-2.67 7.25-8 11.8c-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2z\" fill=\"currentColor\"/>",
"width": 24,
"height": 24... | 46.875 | 279 | 0.605333 |
b357ea7a98b7c2167eb8c26afbfc23ff4e5af43b | 1,074 | py | Python | user/models.py | farhad0085/django-money-management | d4622192d6b9df3f785abd5f4ef1bfcbf465d045 | [
"MIT"
] | null | null | null | user/models.py | farhad0085/django-money-management | d4622192d6b9df3f785abd5f4ef1bfcbf465d045 | [
"MIT"
] | null | null | null | user/models.py | farhad0085/django-money-management | d4622192d6b9df3f785abd5f4ef1bfcbf465d045 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
from common.currencies import CURRENCIES
class UserProfile(models.Model):
"""User profile for extending default django User model"""
user = models.OneTo... | 35.8 | 93 | 0.755121 |
6d6b3fa571c4663b26573794b41061cd77889473 | 322 | h | C | Sample application/iPhone/MobiPrint/StoresDownloadHandler.h | nanzhiwen666/thesis-code | fa7b8ef9c83e8437efdf5b4dd829049b49fed095 | [
"CC-BY-3.0"
] | null | null | null | Sample application/iPhone/MobiPrint/StoresDownloadHandler.h | nanzhiwen666/thesis-code | fa7b8ef9c83e8437efdf5b4dd829049b49fed095 | [
"CC-BY-3.0"
] | null | null | null | Sample application/iPhone/MobiPrint/StoresDownloadHandler.h | nanzhiwen666/thesis-code | fa7b8ef9c83e8437efdf5b4dd829049b49fed095 | [
"CC-BY-3.0"
] | null | null | null | #import <Foundation/Foundation.h>
@protocol StoresDownloadDelegate
- (void)storesRetrieved:(NSArray*)stores error:(NSString*)error;
@end
@interface StoresDownloadHandler : NSObject
- (id)initWithLocation:(NSString*)location resultDelegate:(id<StoresDownloadDelegate>)resultDelegate;
- (void)cancel;
- (void)go;
@en... | 20.125 | 101 | 0.785714 |
48dd157ba5607124e4089a18642579dfac4b10d1 | 974 | kt | Kotlin | picasso-sample/src/main/java/com/example/picasso/provider/PicassoContentProvider.kt | cbennett-mijem/picasso | b1722721b83cf5d3a59d5bea727abf42a6405e29 | [
"Apache-2.0"
] | 16,197 | 2015-01-01T02:56:36.000Z | 2022-03-31T09:35:18.000Z | picasso-sample/src/main/java/com/example/picasso/provider/PicassoContentProvider.kt | seanpm2001-libraries/picasso | d79a385e9808a5d88856033865fabfb8330226a0 | [
"Apache-2.0"
] | 1,373 | 2015-01-01T07:52:26.000Z | 2022-03-30T20:34:01.000Z | picasso-sample/src/main/java/com/example/picasso/provider/PicassoContentProvider.kt | seanpm2001-libraries/picasso | d79a385e9808a5d88856033865fabfb8330226a0 | [
"Apache-2.0"
] | 4,264 | 2015-01-01T07:27:49.000Z | 2022-03-31T14:29:55.000Z | package com.example.picasso.provider
import android.annotation.SuppressLint
import android.content.ContentProvider
import android.content.ContentValues
import android.content.Context
import android.net.Uri
class PicassoContentProvider : ContentProvider() {
override fun onCreate(): Boolean {
autoContext = conte... | 19.48 | 50 | 0.689938 |
63b3a8907e94e389b810366320acf90e5789fecb | 15,123 | sql | SQL | jasa_android.sql | farhanfarhan9/cms-jasa-android | 9d2fa63bfb50eca42258271bb320732bddfc9f84 | [
"MIT"
] | null | null | null | jasa_android.sql | farhanfarhan9/cms-jasa-android | 9d2fa63bfb50eca42258271bb320732bddfc9f84 | [
"MIT"
] | null | null | null | jasa_android.sql | farhanfarhan9/cms-jasa-android | 9d2fa63bfb50eca42258271bb320732bddfc9f84 | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 22, 2020 at 09:26 AM
-- Server version: 10.3.16-MariaDB
-- PHP Version: 7.3.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @O... | 38.579082 | 1,753 | 0.721616 |
5a14e61ba9c4061da24189008b5a98613f7382e0 | 1,817 | sh | Shell | shared-utils/verify_preflight-spokes.sh | kquinn1204/ztp-pipeline-relocatable | f3316bd0691b1bbc825c05c3180fb0328af7ea14 | [
"Apache-2.0"
] | null | null | null | shared-utils/verify_preflight-spokes.sh | kquinn1204/ztp-pipeline-relocatable | f3316bd0691b1bbc825c05c3180fb0328af7ea14 | [
"Apache-2.0"
] | null | null | null | shared-utils/verify_preflight-spokes.sh | kquinn1204/ztp-pipeline-relocatable | f3316bd0691b1bbc825c05c3180fb0328af7ea14 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env bash
set -o pipefail
set -o errexit
set -o nounset
set -m
# variables
# #########
# uncomment it, change it or get it from gh-env vars (default behaviour: get from gh-env)
# export KUBECONFIG=/root/admin.kubeconfig
# Load common vars
source ${WORKDIR}/shared-utils/common.sh
echo ">>>> Verify the DNS ... | 33.648148 | 123 | 0.563566 |
72b82fde1d66053c11362a13224fa97c42a3236b | 155 | cs | C# | BoidsECSTest/DefaultEcs/Components/Acceleration.cs | Ubiguchi/BoidsECSTest | 07c5ffb342f87f986e8ce46efc889b2f074582c8 | [
"MIT"
] | null | null | null | BoidsECSTest/DefaultEcs/Components/Acceleration.cs | Ubiguchi/BoidsECSTest | 07c5ffb342f87f986e8ce46efc889b2f074582c8 | [
"MIT"
] | 4 | 2020-05-28T10:21:31.000Z | 2020-05-28T14:05:45.000Z | BoidsECSTest/DefaultEcs/Components/Acceleration.cs | Ubiguchi/BoidsECSTest | 07c5ffb342f87f986e8ce46efc889b2f074582c8 | [
"MIT"
] | null | null | null | using Microsoft.Xna.Framework;
namespace BoidsECSTest.DefaultEcs.Components
{
public struct Acceleration
{
public Vector2 Value;
}
}
| 15.5 | 44 | 0.703226 |
dfa677035e30f1867fd78b99a0a8efb3538aeefe | 411 | cs | C# | carros_xamarin_clean/carros_xamarin_clean/AppSettings.cs | FagnerFun/carros_xamarin_clean | 6000a9f894b66a946108a9550df30570aa136430 | [
"MIT"
] | null | null | null | carros_xamarin_clean/carros_xamarin_clean/AppSettings.cs | FagnerFun/carros_xamarin_clean | 6000a9f894b66a946108a9550df30570aa136430 | [
"MIT"
] | null | null | null | carros_xamarin_clean/carros_xamarin_clean/AppSettings.cs | FagnerFun/carros_xamarin_clean | 6000a9f894b66a946108a9550df30570aa136430 | [
"MIT"
] | null | null | null | namespace carros_xamarin_clean
{
public class AppSettings
{
public const string AppCenterAndroidKey = "4ecc8208-e33f-496f-a80e-593094c7d35f";
public const string AppCenterIosKey = "368be960-56fc-42bf-913b-9f67df8ae414";
public const string ApiUrl = "https://carros-springboot.herokuapp.... | 31.615385 | 89 | 0.705596 |
af9846524a9e6c18615a0558cd330d32b5cd51d2 | 2,649 | py | Python | app/core/tests/test_models.py | therealak12/recipe-app-api | 1c0b2bf537e485871b7f9d3dccb57a145f7d3b06 | [
"Unlicense"
] | null | null | null | app/core/tests/test_models.py | therealak12/recipe-app-api | 1c0b2bf537e485871b7f9d3dccb57a145f7d3b06 | [
"Unlicense"
] | null | null | null | app/core/tests/test_models.py | therealak12/recipe-app-api | 1c0b2bf537e485871b7f9d3dccb57a145f7d3b06 | [
"Unlicense"
] | null | null | null | from unittest.mock import patch
from django.test import TestCase
from django.contrib.auth import get_user_model
from core import models
def sample_user(email='testemail@example.com', password='testpass'):
"""Create and return a sample user"""
return get_user_model().objects.create_user(email, password)
cl... | 30.802326 | 71 | 0.643639 |
572569676eeb26fa5efbda9dcbf18c723d25c57c | 3,022 | js | JavaScript | src/pluginManager.js | nicolasdao/userin | 22cd297ca18df9d35dcdf7b87b16113e5b5c8a62 | [
"BSD-3-Clause"
] | 5 | 2019-12-12T02:04:42.000Z | 2020-07-15T00:15:29.000Z | src/pluginManager.js | nicolasdao/userin | 22cd297ca18df9d35dcdf7b87b16113e5b5c8a62 | [
"BSD-3-Clause"
] | 6 | 2020-03-18T12:07:38.000Z | 2020-10-07T07:47:39.000Z | src/pluginManager.js | nicolasdao/userin | 22cd297ca18df9d35dcdf7b87b16113e5b5c8a62 | [
"BSD-3-Clause"
] | 1 | 2019-12-24T01:43:06.000Z | 2019-12-24T01:43:06.000Z | const passport = require('passport')
const { consentPageRequest, consentPageResponse, openIdConsentPageRequest, openIdConsentPageResponse} = require('./fipauthorize')
const passportManager = require('./passportManager')
const openIdServerManager = require('./openIdServerManager')
const { Postman } = require('./postman'... | 41.972222 | 149 | 0.713435 |
1a69f72b714d6cd02b7943fc217e43e81f7d8b6d | 94 | py | Python | order/user_order/apps.py | Virusuki/AWS_MSA_service_order | 5b95fe1c86d06434f46ff2cb6be7add9874120a3 | [
"Apache-2.0"
] | null | null | null | order/user_order/apps.py | Virusuki/AWS_MSA_service_order | 5b95fe1c86d06434f46ff2cb6be7add9874120a3 | [
"Apache-2.0"
] | null | null | null | order/user_order/apps.py | Virusuki/AWS_MSA_service_order | 5b95fe1c86d06434f46ff2cb6be7add9874120a3 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class UserOrderConfig(AppConfig):
name = 'user_order'
| 15.666667 | 33 | 0.765957 |
c6d60ab9d4ca744676616b6d969f8f91f8dc7254 | 3,209 | css | CSS | css/post.css | Duxinghua/duxinghua.github.io | a8c2c5dd8ec14b76e6ba8057b3a76b8f017a1753 | [
"Apache-2.0"
] | 7 | 2017-08-11T16:52:21.000Z | 2018-08-24T14:07:31.000Z | css/post.css | Duxinghua/duxinghua.github.io | a8c2c5dd8ec14b76e6ba8057b3a76b8f017a1753 | [
"Apache-2.0"
] | 6 | 2017-11-06T05:35:34.000Z | 2022-01-06T10:01:47.000Z | css/post.css | Duxinghua/duxinghua.github.io | a8c2c5dd8ec14b76e6ba8057b3a76b8f017a1753 | [
"Apache-2.0"
] | 4 | 2017-11-06T05:39:00.000Z | 2019-10-16T20:40:42.000Z | .content-bch{width:500px;margin:0 auto;text-align: center;}
.content-bch-p{padding-top: 10px;text-align: left;font-weight:340;}
.content-bch-t{padding-top: 10px;text-align: center;}
.box_1{
padding: 0px 20px;
border-width: 0px;
height: auto;
background: inherit;
background-color: inherit;
background-color: rgba(25... | 18.442529 | 137 | 0.707697 |
1a9112ce873a1df83ab24254abdca769bd461a08 | 2,681 | cs | C# | src/HotChocolate/Core/src/Types/Types/Descriptors/Definitions/OutputFieldDefinitionBase.cs | Drakkonite/hotchocolate | 8aa8aa81677fe1a1fe2c2ce3a6cd64898a4ca954 | [
"MIT"
] | 3,399 | 2018-06-27T06:45:08.000Z | 2022-03-31T21:16:35.000Z | src/HotChocolate/Core/src/Types/Types/Descriptors/Definitions/OutputFieldDefinitionBase.cs | Drakkonite/hotchocolate | 8aa8aa81677fe1a1fe2c2ce3a6cd64898a4ca954 | [
"MIT"
] | 3,835 | 2018-06-05T18:24:45.000Z | 2022-03-31T14:22:12.000Z | src/HotChocolate/Core/src/Types/Types/Descriptors/Definitions/OutputFieldDefinitionBase.cs | Drakkonite/hotchocolate | 8aa8aa81677fe1a1fe2c2ce3a6cd64898a4ca954 | [
"MIT"
] | 587 | 2018-06-05T19:58:55.000Z | 2022-03-28T02:53:02.000Z | using System;
using System.Collections.Generic;
using System.Linq;
using HotChocolate.Language;
#nullable enable
namespace HotChocolate.Types.Descriptors.Definitions
{
public class OutputFieldDefinitionBase
: FieldDefinitionBase<FieldDefinitionNode>
, ICanBeDeprecated
{
private List<Ar... | 29.461538 | 92 | 0.533383 |
ed158ba3c294470f2f57d5d7f8e3bcf60340176d | 563 | kt | Kotlin | core/src/main/kotlin/worlds/gregs/hestia/core/entity/npc/logic/systems/chunk/NpcChunkSubscriptionSystem.kt | Rune-Status/hestia | 71e70a27d7352d93eb109e6ba0c1617652a30b51 | [
"BSD-3-Clause"
] | 17 | 2018-11-13T19:16:27.000Z | 2022-01-02T06:27:19.000Z | core/src/main/kotlin/worlds/gregs/hestia/core/entity/npc/logic/systems/chunk/NpcChunkSubscriptionSystem.kt | Rune-Status/hestia | 71e70a27d7352d93eb109e6ba0c1617652a30b51 | [
"BSD-3-Clause"
] | 110 | 2019-12-04T17:41:34.000Z | 2020-03-15T19:03:16.000Z | core/src/main/kotlin/worlds/gregs/hestia/core/entity/npc/logic/systems/chunk/NpcChunkSubscriptionSystem.kt | Rune-Status/hestia | 71e70a27d7352d93eb109e6ba0c1617652a30b51 | [
"BSD-3-Clause"
] | 6 | 2018-11-13T19:16:17.000Z | 2022-03-02T05:48:29.000Z | package worlds.gregs.hestia.core.entity.npc.logic.systems.chunk
import net.mostlyoriginal.api.event.common.EventSystem
import worlds.gregs.hestia.core.entity.npc.api.Npc
import worlds.gregs.hestia.core.entity.npc.model.events.NpcChunkChanged
import worlds.gregs.hestia.core.world.movement.api.systems.ChunkSubscription
... | 40.214286 | 76 | 0.790409 |
f45fc47803ca44004daf1beed967b5fc1cec2c00 | 749 | ts | TypeScript | src/app/forms/flat/flat.module.ts | Shaman739/TemplateAngular | bab7a5904768c24bc225e6f1646e32c88457516c | [
"MIT"
] | null | null | null | src/app/forms/flat/flat.module.ts | Shaman739/TemplateAngular | bab7a5904768c24bc225e6f1646e32c88457516c | [
"MIT"
] | null | null | null | src/app/forms/flat/flat.module.ts | Shaman739/TemplateAngular | bab7a5904768c24bc225e6f1646e32c88457516c | [
"MIT"
] | null | null | null | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { GridModule } from '../../core/component/grid/grid.module';
import { HttpClientModule } from '@angular/common/http';
import { FlatEditComponent } from '.... | 46.8125 | 108 | 0.730307 |
c6c28edc9315f9e4f8c0296bc7ff152c9793bb81 | 622 | css | CSS | html04/case4/br_styles.css | jallen19/html04 | 4d0569f7ffbee0cf012e03c1341066f2fb1449b0 | [
"Unlicense"
] | null | null | null | html04/case4/br_styles.css | jallen19/html04 | 4d0569f7ffbee0cf012e03c1341066f2fb1449b0 | [
"Unlicense"
] | null | null | null | html04/case4/br_styles.css | jallen19/html04 | 4d0569f7ffbee0cf012e03c1341066f2fb1449b0 | [
"Unlicense"
] | null | null | null | @charset "utf-8";
/*
New Perspectives on HTML5 and CSS3, 7th Edition
Tutorial 4
Case Problem 4
Browyer Realty Layout Styles
Author:
Date:
Filename: br_styles.css
*/
html {
background: url(br_paper.png);
}
body {
height: 100%;
width:1200px;
margin-left:auto;
margi... | 14.809524 | 50 | 0.614148 |
f1ae4fd70757f9935d136b921f2015d382d0b4a0 | 95 | rb | Ruby | config/routes.rb | work-design/ruby_sdk | 44841e64023f269abb1ad2096ecc0776cf3548ee | [
"MIT"
] | null | null | null | config/routes.rb | work-design/ruby_sdk | 44841e64023f269abb1ad2096ecc0776cf3548ee | [
"MIT"
] | null | null | null | config/routes.rb | work-design/ruby_sdk | 44841e64023f269abb1ad2096ecc0776cf3548ee | [
"MIT"
] | null | null | null | Rails.application.routes.draw do
namespace :wd, defaults: { business: 'wd' } do
end
end
| 11.875 | 48 | 0.684211 |
e819c3cfdc1e226c1a4d299257659f9d04f4fe6c | 370 | ps1 | PowerShell | Allfiles/Labs/auth.ps1 | G-Eazy/AZ-204-DevelopingSolutionsforMicrosoftAzure | d97825bb36ea9d1aafbefcdab9fe52d2637d266b | [
"MIT"
] | null | null | null | Allfiles/Labs/auth.ps1 | G-Eazy/AZ-204-DevelopingSolutionsforMicrosoftAzure | d97825bb36ea9d1aafbefcdab9fe52d2637d266b | [
"MIT"
] | null | null | null | Allfiles/Labs/auth.ps1 | G-Eazy/AZ-204-DevelopingSolutionsforMicrosoftAzure | d97825bb36ea9d1aafbefcdab9fe52d2637d266b | [
"MIT"
] | null | null | null | clientID 3826d202-ef1e-405c-906f-e893f2e5bf1c
tennantID 4cfe372a-37a4-44f8-91b2-5faf34253c62
4cfe372a-37a4-44f8-91b2-5faf34253c62
aad_lab_user-20317034@LODSPRODMCA.onmicrosoft.com
aad_lab_user2@gregersorg.onmicrosoft.com
dotnet new mvc --auth SingleOrg --client-id <application_ID> --tenant-id <tenant_ID> --do... | 41.111111 | 108 | 0.810811 |
546f5b62b4bd918b8d699d991929b77033e854f2 | 718 | css | CSS | samples/AdaptiveCards.Blazor.Samples/wwwroot/theme.css | iAmBipinPaul/Blazor.AdaptiveCards | 3ba8769b8104f9362bdc4036abf13cfedd2a716f | [
"MIT"
] | 45 | 2019-10-10T07:52:56.000Z | 2022-01-12T16:21:43.000Z | samples/AdaptiveCards.Blazor.Samples/wwwroot/theme.css | iAmBipinPaul/Blazor.AdaptiveCards | 3ba8769b8104f9362bdc4036abf13cfedd2a716f | [
"MIT"
] | 16 | 2019-10-06T16:00:15.000Z | 2021-10-19T01:07:28.000Z | samples/AdaptiveCards.Blazor.Samples/wwwroot/theme.css | iAmBipinPaul/Blazor.AdaptiveCards | 3ba8769b8104f9362bdc4036abf13cfedd2a716f | [
"MIT"
] | 15 | 2019-10-22T17:07:05.000Z | 2022-01-25T15:10:41.000Z | .bd-navbar {
background-color: #5D2F91;
}
.bd-navbar .navbar-nav .nav-link {
color: white;
}
.slbImage {
padding: 2em 0;
}
.bd-toc-link {
padding: .25rem 1.0rem;
}
.bd-sidebar .nav > li > a {
padding: .25rem 1.0rem;
}
@media (max-width: 991.98px) {
.bd-navbar {
padding-r... | 14.958333 | 57 | 0.564067 |
1aa3236bf14f1a976e1df6829a06ab91bfbb45ff | 10,663 | py | Python | tests/sat/Models/c765.180.UNSAT.dimacs.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 19 | 2015-12-03T08:53:45.000Z | 2022-03-31T02:09:43.000Z | tests/sat/Models/c765.180.UNSAT.dimacs.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 80 | 2017-11-25T07:57:32.000Z | 2018-06-10T19:03:30.000Z | tests/sat/Models/c765.180.UNSAT.dimacs.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 6 | 2015-01-15T07:51:48.000Z | 2020-06-18T14:47:48.000Z | input = """
c num blocks = 1
c num vars = 180
c minblockids[0] = 1
c maxblockids[0] = 180
p cnf 180 765
43 -70 -94 0
80 70 -20 0
34 -89 37 0
-99 -140 153 0
-30 131 14 0
136 20 17 0
-125 -172 -114 0
19 -13 -126 0
127 -138 -142 0
-127 -84 79 0
-63 -13 50 0
-15 -118 17 0
6 65 -116 0
-30 -167 157 0
-156 -143 -12 0
38 -60 1... | 13.75871 | 22 | 0.596361 |
78404ffa33464f27a8bcaacd2ab9783411eff0bc | 5,469 | dart | Dart | lib/src/environment_specific/console_log_formatter_mixin.dart | PlugFox/l | ab19b9721f8c6b9410fc91278390bf476220deae | [
"WTFPL"
] | 23 | 2020-04-28T20:05:14.000Z | 2022-01-04T15:37:19.000Z | lib/src/environment_specific/console_log_formatter_mixin.dart | PlugFox/l | ab19b9721f8c6b9410fc91278390bf476220deae | [
"WTFPL"
] | 13 | 2020-05-06T09:48:20.000Z | 2022-03-30T11:31:44.000Z | lib/src/environment_specific/console_log_formatter_mixin.dart | PlugFox/l | ab19b9721f8c6b9410fc91278390bf476220deae | [
"WTFPL"
] | 3 | 2021-03-26T11:27:46.000Z | 2021-11-14T15:05:00.000Z | import 'package:meta/meta.dart';
import '../inner_zoned_mixin.dart';
import '../log_level.dart';
import 'message_formatting_pipeline.dart';
extension on StringBuffer {
void writeEsc(String value) {
this
..write(_esc)
..write(value);
}
String completeMessage(Object message) => (this
..wr... | 25.437209 | 80 | 0.6226 |
b723fefae922b73dde92aba04057afde83e6c55d | 215 | cs | C# | src/SqlStreamStore/Streams/ReadNextStreamPage.cs | rvdkooy/SqlStreamStore | 30e275fd3b44c55df41b9898ba58a070ff0be7ff | [
"MIT"
] | 1 | 2017-02-23T15:58:18.000Z | 2017-02-23T15:58:18.000Z | src/SqlStreamStore/Streams/ReadNextStreamPage.cs | rvdkooy/SqlStreamStore | 30e275fd3b44c55df41b9898ba58a070ff0be7ff | [
"MIT"
] | null | null | null | src/SqlStreamStore/Streams/ReadNextStreamPage.cs | rvdkooy/SqlStreamStore | 30e275fd3b44c55df41b9898ba58a070ff0be7ff | [
"MIT"
] | 1 | 2020-04-24T16:47:15.000Z | 2020-04-24T16:47:15.000Z | namespace SqlStreamStore.Streams
{
using System.Threading;
using System.Threading.Tasks;
public delegate Task<ReadStreamPage> ReadNextStreamPage(int nextVersion, CancellationToken cancellationToken);
} | 30.714286 | 114 | 0.804651 |
127938e8bf69ac6eaab0ed3aa3304497d41f7680 | 3,664 | cs | C# | AutoForms/Controls/ControlGroup.cs | patrickabadi/AutoForms | 52b9c08f54f23fbf1f0a9fc1b30ba788408247de | [
"MIT"
] | 23 | 2020-09-18T23:56:31.000Z | 2022-03-30T17:43:23.000Z | AutoForms/Controls/ControlGroup.cs | dev-thinks/AutoForms | 52b9c08f54f23fbf1f0a9fc1b30ba788408247de | [
"MIT"
] | null | null | null | AutoForms/Controls/ControlGroup.cs | dev-thinks/AutoForms | 52b9c08f54f23fbf1f0a9fc1b30ba788408247de | [
"MIT"
] | 3 | 2021-04-13T10:58:40.000Z | 2021-12-18T17:53:08.000Z | using AutoForms.Common;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Text;
using Xamarin.Forms;
namespace AutoForms.Controls
{
public class ControlGroup : ControlBase
{
protected Grid _grid;
protected Grid _controlGrid;
... | 30.789916 | 129 | 0.505731 |
1501790cdcf5c449c61865e0235f1daf46326582 | 7,092 | dart | Dart | packages/sensors/lib/sensors.dart | dannyalbuquerque/plugins | 9c3538b0ab6bb80ebf894d1d3c7a749232be5b0f | [
"BSD-3-Clause"
] | 1 | 2021-01-18T14:52:09.000Z | 2021-01-18T14:52:09.000Z | packages/sensors/lib/sensors.dart | dannyalbuquerque/plugins | 9c3538b0ab6bb80ebf894d1d3c7a749232be5b0f | [
"BSD-3-Clause"
] | null | null | null | packages/sensors/lib/sensors.dart | dannyalbuquerque/plugins | 9c3538b0ab6bb80ebf894d1d3c7a749232be5b0f | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 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.
import 'dart:async';
import 'package:flutter/services.dart';
const EventChannel _accelerometerEventChannel =
EventChannel('plugins.flutter.io/sensors... | 39.620112 | 85 | 0.729554 |
a366b889dd0bf916a7f0c37f363cc9228eb6991f | 643 | ts | TypeScript | src/components/inspector/panel/TransformPanel.ts | gastrodia/ReEditor | 212d1d4bc65de983b5769cc314833fa2e96e9355 | [
"MIT"
] | 1 | 2017-07-06T06:26:21.000Z | 2017-07-06T06:26:21.000Z | src/components/inspector/panel/TransformPanel.ts | gastrodia/wasp-ui-editor | 4abf747363dddc910303e059fbf5fad9a53f6c2f | [
"MIT"
] | null | null | null | src/components/inspector/panel/TransformPanel.ts | gastrodia/wasp-ui-editor | 4abf747363dddc910303e059fbf5fad9a53f6c2f | [
"MIT"
] | null | null | null | import $ = require('jquery');
import {Component, View, coreDirectives, formDirectives} from 'angular2/angular2';
import angular2 = require('angular2/angular2');
import ng2Helper = require('../../ng2-library/ng2Helper');
import Panel = require('./Panel');
import AnchorModeField = require('../field/AnchorModeField');
con... | 23.814815 | 82 | 0.702955 |
f4d7c189b06030e086ebcb7122c9fd866309ba42 | 893 | ts | TypeScript | src/lib/exportTypes/array.ts | paulgrotzke/parsing-lib | b0ba21226f2d37e6323b5d6b994da4305a35cae8 | [
"MIT"
] | null | null | null | src/lib/exportTypes/array.ts | paulgrotzke/parsing-lib | b0ba21226f2d37e6323b5d6b994da4305a35cae8 | [
"MIT"
] | null | null | null | src/lib/exportTypes/array.ts | paulgrotzke/parsing-lib | b0ba21226f2d37e6323b5d6b994da4305a35cae8 | [
"MIT"
] | null | null | null | import { string, number, boolean, bigInt, symbol, fn } from './primitives'
export const array = (
type: 'string' | 'number' | 'boolean' | 'bigInt' | 'symbol' | 'fn' | 'empty' | 'any' = 'any'
) => {
const dic = {
string: (val: string[]) => val.map((i) => string().parse(i)),
number: (val: number[]) => val.ma... | 37.208333 | 94 | 0.522956 |
3f41deff03b69f1d4b4ecb79b752b63d59f81eb0 | 4,274 | php | PHP | application/views/signup_view.php | richmartins/mtlaga | 6be6250d3c8f75da78677775d24727e7e9bdff0c | [
"MIT"
] | 2 | 2020-05-08T19:20:39.000Z | 2020-05-14T11:17:15.000Z | application/views/signup_view.php | richmartins/mtlaga | 6be6250d3c8f75da78677775d24727e7e9bdff0c | [
"MIT"
] | null | null | null | application/views/signup_view.php | richmartins/mtlaga | 6be6250d3c8f75da78677775d24727e7e9bdff0c | [
"MIT"
] | null | null | null | <?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<style>
.div_captcha_content{
display: flex;
flex-direction: column;
width: 100%;
}
.captcha_style_img {
display: flex;
align-items: center;
align-content: space-around;
justify-content: space-between;
margin: .4em 0;
}
.captcha_s... | 33.131783 | 99 | 0.542583 |
20f19f8db7ce73c00d929e588c839e08dc4f4e9e | 1,920 | py | Python | lib/aquilon/worker/commands/del_netgroup_whitelist.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 7 | 2015-07-31T05:57:30.000Z | 2021-09-07T15:18:56.000Z | lib/aquilon/worker/commands/del_netgroup_whitelist.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 115 | 2015-03-03T13:11:46.000Z | 2021-09-20T12:42:24.000Z | lib/aquilon/worker/commands/del_netgroup_whitelist.py | ned21/aquilon | 6562ea0f224cda33b72a6f7664f48d65f96bd41a | [
"Apache-2.0"
] | 13 | 2015-03-03T11:17:59.000Z | 2021-09-09T09:16:41.000Z | # -*- cpy-indent-level: 4; indent-tabs-mode: nil -*-
# ex: set expandtab softtabstop=4 shiftwidth=4:
#
# Copyright (C) 2014,2015,2016,2017 Contributor
#
# 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 Li... | 38.4 | 102 | 0.677083 |
445e2c5ecb9cc7cb721237a11314539fc60fcfa0 | 684 | lua | Lua | src/mod/elona/api/aspect/ItemBookAspect.lua | Ruin0x11/OpenNefia | 548f1a1442eca704bb1c16b1a1591d982a34919f | [
"MIT"
] | 109 | 2020-04-07T16:56:38.000Z | 2022-02-17T04:05:40.000Z | src/mod/elona/api/aspect/ItemBookAspect.lua | Ruin0x11/OpenNefia | 548f1a1442eca704bb1c16b1a1591d982a34919f | [
"MIT"
] | 243 | 2020-04-07T08:25:15.000Z | 2021-10-30T07:22:10.000Z | src/mod/elona/api/aspect/ItemBookAspect.lua | Ruin0x11/OpenNefia | 548f1a1442eca704bb1c16b1a1591d982a34919f | [
"MIT"
] | 15 | 2020-04-25T12:28:55.000Z | 2022-02-23T03:20:43.000Z | local IItemBook = require("mod.elona.api.aspect.IItemBook")
local Rand = require("api.Rand")
local ItemBookAspect = class.class("ItemBookAspect", { IItemBook })
function ItemBookAspect:init(item, params)
-- >>>>>>>> shade2/item.hsp:618 if iId(ci)=idBook :if iBookId(ci)=0:iBookId(ci)=i ..
if params.book_id then... | 32.571429 | 88 | 0.654971 |
6d866033f9cef6a25abfac495751ceeb36b4d4ca | 1,347 | c | C | code_guide/progs/20190728.review/draw_all_bst.c | YangXiaoHei/Interview_Question_Solutions | 7c7c99be248f68c38856d655ecb4c36358bef8b1 | [
"Apache-2.0"
] | null | null | null | code_guide/progs/20190728.review/draw_all_bst.c | YangXiaoHei/Interview_Question_Solutions | 7c7c99be248f68c38856d655ecb4c36358bef8b1 | [
"Apache-2.0"
] | null | null | null | code_guide/progs/20190728.review/draw_all_bst.c | YangXiaoHei/Interview_Question_Solutions | 7c7c99be248f68c38856d655ecb4c36358bef8b1 | [
"Apache-2.0"
] | null | null | null | #include "ds.h"
#define ENQUEUE(q, x) queue_enqueue(q, (long)(x))
#define DEQUEUE(q) ((treenode *)queue_dequeue(q))
queue *gen_all_bst(int start, int end)
{
// 这个 queue 用来装 start -> end 产生的所有形态
// 的二叉树的根节点
queue *q = queue_create();
if (start > end) {
ENQUEUE(q, NULL);
return q;
}
... | 26.411765 | 69 | 0.512249 |
09287b8b33c8eb599819ab960d8f3d72154a436d | 966 | swift | Swift | TdlibKit/Models/ResendMessages.swift | modestman/tdlib-swift | 0ef12cfe0d0a28db22e53e74d02c4f8e56b012cd | [
"MIT"
] | 21 | 2019-09-29T20:05:41.000Z | 2022-02-08T20:23:48.000Z | TdlibKit/Models/ResendMessages.swift | modestman/tdlib-swift | 0ef12cfe0d0a28db22e53e74d02c4f8e56b012cd | [
"MIT"
] | 3 | 2020-06-19T07:32:00.000Z | 2021-09-16T16:33:22.000Z | TdlibKit/Models/ResendMessages.swift | modestman/tdlib-swift | 0ef12cfe0d0a28db22e53e74d02c4f8e56b012cd | [
"MIT"
] | 5 | 2020-01-11T05:58:04.000Z | 2021-08-03T15:41:31.000Z | //
// ResendMessages.swift
// tl2swift
//
// Created by Code Generator
//
import Foundation
/// Resends messages which failed to send. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. If a message is re-... | 32.2 | 450 | 0.727743 |
15fba55f24f325312ca868f121a2ad230ad4aaa2 | 271 | rs | Rust | library/src/lib.rs | georgbramm/hope.rs | 6f8f96265a6886ae31a5285d0894fd228a265d11 | [
"MIT"
] | null | null | null | library/src/lib.rs | georgbramm/hope.rs | 6f8f96265a6886ae31a5285d0894fd228a265d11 | [
"MIT"
] | null | null | null | library/src/lib.rs | georgbramm/hope.rs | 6f8f96265a6886ae31a5285d0894fd228a265d11 | [
"MIT"
] | null | null | null | //! The backend library
//#![deny(missing_docs)]
pub mod bplus;
pub mod scheme;
pub mod elgamal;
pub mod paillier;
pub mod websocket;
pub use crate::scheme::*;
pub use crate::elgamal::*;
pub use crate::paillier::*;
pub use crate::bplus::*;
pub use crate::websocket::*;
| 18.066667 | 28 | 0.693727 |
d1ec29b4079aaa3ebbb46f3989bed4d462a06ddf | 1,201 | rs | Rust | src/verbose.rs | lmburns/parallel | dc127577a505c7f728fc2947bb6be4ebef215f7e | [
"MIT"
] | 1 | 2022-03-01T18:34:06.000Z | 2022-03-01T18:34:06.000Z | src/verbose.rs | lmburns/parallel | dc127577a505c7f728fc2947bb6be4ebef215f7e | [
"MIT"
] | null | null | null | src/verbose.rs | lmburns/parallel | dc127577a505c7f728fc2947bb6be4ebef215f7e | [
"MIT"
] | null | null | null | use itoa;
use std::io::{Stdout, Write};
pub fn total_inputs(stdout: &Stdout, threads: usize, inputs: usize) {
let mut stdout = stdout.lock();
let _ = stdout.write(b"parallel: processing ");
let _ = itoa::write(&mut stdout, inputs);
let _ = stdout.write(b" inputs on ");
let _ = itoa::write(&mut stdo... | 35.323529 | 80 | 0.611157 |
f7839a8bb8ca22c867f79528ccb8f2dedf3ab2be | 276 | rb | Ruby | lib/mimic/subject_methods.rb | joshuaflanagan/mimic | cf4f67fa504880d4033370e5fbc5896ab291d686 | [
"MIT"
] | null | null | null | lib/mimic/subject_methods.rb | joshuaflanagan/mimic | cf4f67fa504880d4033370e5fbc5896ab291d686 | [
"MIT"
] | null | null | null | lib/mimic/subject_methods.rb | joshuaflanagan/mimic | cf4f67fa504880d4033370e5fbc5896ab291d686 | [
"MIT"
] | null | null | null | module Mimic
def self.subject_methods(cls)
instance_method_names = cls.instance_methods.sort
instance_method_names -= Mimic.preserved_methods
instance_methods = instance_method_names.map do |method_name|
cls.instance_method(method_name)
end
end
end
| 25.090909 | 65 | 0.775362 |
652e39c39c00f85b2da90a92f1680221dd2035b4 | 6,080 | css | CSS | figma-site/css/privacy-policy-page.css | amnamir00070/amnamir00070.github.io | 0fc1c3505b2fe4be728299b7fc4ac762835be99d | [
"MIT"
] | 1 | 2021-02-01T03:55:37.000Z | 2021-02-01T03:55:37.000Z | figma-site/css/privacy-policy-page.css | amnamir00070/amnamir00070.github.io | 0fc1c3505b2fe4be728299b7fc4ac762835be99d | [
"MIT"
] | null | null | null | figma-site/css/privacy-policy-page.css | amnamir00070/amnamir00070.github.io | 0fc1c3505b2fe4be728299b7fc4ac762835be99d | [
"MIT"
] | 1 | 2021-09-14T04:22:15.000Z | 2021-09-14T04:22:15.000Z | @font-face {
font-family: Roboto;
src: url("fonts/Roboto-Light.ttf");
}
.background {
background: #F9FAFF;
font-family: Roboto;
padding: 0;
margin: 0;
}
.mob-body {
margin-top: 2rem;
}
.main-content {
width: 100%;
margin-right: auto;
margin-left: auto;
padding: 20px;
}
.g... | 19.179811 | 137 | 0.580921 |
924024ec7209383c9bc6552c26ac96b45d7dac5b | 2,250 | swift | Swift | Packages/ClientRuntime/Sources/Middleware/Steps/DeserializeStep.swift | awslabs/smithy-swift | 0faded826d80bd98f8c362daa6cab3d29a8f6340 | [
"Apache-2.0"
] | 7 | 2021-08-30T18:35:59.000Z | 2022-02-17T07:41:06.000Z | Packages/ClientRuntime/Sources/Middleware/Steps/DeserializeStep.swift | awslabs/smithy-swift | 0faded826d80bd98f8c362daa6cab3d29a8f6340 | [
"Apache-2.0"
] | 4 | 2021-09-17T22:26:30.000Z | 2022-03-16T01:09:52.000Z | Packages/ClientRuntime/Sources/Middleware/Steps/DeserializeStep.swift | awslabs/smithy-swift | 0faded826d80bd98f8c362daa6cab3d29a8f6340 | [
"Apache-2.0"
] | 3 | 2021-12-08T10:04:17.000Z | 2022-03-15T20:47:41.000Z | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0.
/// Reacts to the handler's response returned by the recipient of the request
/// message. Deserializes the response into a structured type or error above
/// stacks can react to.
///
/// Should only forward R... | 41.666667 | 116 | 0.568 |
c4ebcceb99ea1493cdca6d9dfd62fecda016417a | 6,732 | cpp | C++ | CQGLFlocking/src/CQGLFlocking.cpp | colinw7/CQDemos | a66452e0f963613ae351fea4d078552c19aa002b | [
"MIT"
] | 2 | 2019-12-22T09:49:25.000Z | 2021-12-23T02:22:34.000Z | CQGLFlocking/src/CQGLFlocking.cpp | colinw7/CQDemos | a66452e0f963613ae351fea4d078552c19aa002b | [
"MIT"
] | null | null | null | CQGLFlocking/src/CQGLFlocking.cpp | colinw7/CQDemos | a66452e0f963613ae351fea4d078552c19aa002b | [
"MIT"
] | 1 | 2019-04-01T13:35:49.000Z | 2019-04-01T13:35:49.000Z | #include <CQGLFlocking.h>
#include <CFlocking.h>
#include <CQMenu.h>
#include <CQGLControl.h>
#include <CGLTexture.h>
#include <QApplication>
#include <QTimer>
#include <QVBoxLayout>
#include "images/bird1.xpm"
#include "images/bird2.xpm"
#include "images/bird3.xpm"
#include "images/bird4.xpm"
int
main(int argc, cha... | 21.646302 | 93 | 0.670826 |
402403b08aa7cd1a284dea80ded09a7a32840c1f | 1,499 | rb | Ruby | lib/realm/messaging/formatting/pretty_terminal_message_formatter.rb | ashmoran/realm | 976eeba62941b70e4939bfcd3efe88809418ff7a | [
"MIT"
] | 1 | 2015-08-18T11:22:40.000Z | 2015-08-18T11:22:40.000Z | lib/realm/messaging/formatting/pretty_terminal_message_formatter.rb | ashmoran/realm | 976eeba62941b70e4939bfcd3efe88809418ff7a | [
"MIT"
] | null | null | null | lib/realm/messaging/formatting/pretty_terminal_message_formatter.rb | ashmoran/realm | 976eeba62941b70e4939bfcd3efe88809418ff7a | [
"MIT"
] | null | null | null | require 'term/ansicolor'
module Realm
module Messaging
module Formatting
class PrettyTerminalMessageFormatter
include Term::ANSIColor
# Because of the way AwesomePrint manages thread concurrency,
# we have to have something we can initialize for each format run
class Pretty... | 27.254545 | 77 | 0.547698 |
2a17220855cd1bb0a68d97fcb7fc471e59a9ed40 | 22,435 | rs | Rust | src/cxshaders_shared.rs | makepad/glui | 6245631deb59f35dcde69927909ff8d8fd6e4006 | [
"MIT"
] | 12 | 2019-02-12T22:48:21.000Z | 2020-09-16T21:55:25.000Z | src/cxshaders_shared.rs | makepad/glui | 6245631deb59f35dcde69927909ff8d8fd6e4006 | [
"MIT"
] | null | null | null | src/cxshaders_shared.rs | makepad/glui | 6245631deb59f35dcde69927909ff8d8fd6e4006 | [
"MIT"
] | null | null | null | // Shared shader-compiler code for generating GLSL and Metal shading language
use crate::shader::*;
//use crate::cxshaders::*;
#[derive(Clone)]
pub struct Sl{
pub sl:String,
pub ty:String
}
#[derive(Clone)]
pub struct SlErr{
pub msg:String
}
pub struct SlDecl{
pub name:String,
pub ty:String
}
#... | 31.073407 | 157 | 0.41667 |
0668c6129b2b5082713ba0743d218cf6eae01974 | 957 | dart | Dart | lib/functions/pickImageAndCrop.dart | WeWriteCodeWRC/coder_status | 84d4e243e9abac07f140c53d22e32e508fbf045c | [
"MIT"
] | 8 | 2021-08-25T16:13:01.000Z | 2022-03-29T04:28:16.000Z | lib/functions/pickImageAndCrop.dart | WeWriteCodeWRC/coder_status | 84d4e243e9abac07f140c53d22e32e508fbf045c | [
"MIT"
] | 3 | 2022-03-16T09:38:19.000Z | 2022-03-21T06:58:06.000Z | lib/functions/pickImageAndCrop.dart | WeWriteCodeWRC/coder_status | 84d4e243e9abac07f140c53d22e32e508fbf045c | [
"MIT"
] | 2 | 2021-11-19T15:42:37.000Z | 2021-12-07T04:47:37.000Z | import 'dart:io';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/painting.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
import 'package:image_cropper/image_cropper.dart';
import 'package:image_picker/image_picker.dart';
... | 30.870968 | 72 | 0.756531 |
e8d734a5a6f9c55c839888bbccf1404e13655658 | 1,134 | swift | Swift | iOS/PluginClasses/Errors/ErrorViewConfiguration.swift | applicaster/zapp-player-plugin-brightcove | e5198221ad65fb4c9d0aceb307f340ef4bb39c42 | [
"Apache-2.0"
] | null | null | null | iOS/PluginClasses/Errors/ErrorViewConfiguration.swift | applicaster/zapp-player-plugin-brightcove | e5198221ad65fb4c9d0aceb307f340ef4bb39c42 | [
"Apache-2.0"
] | 3 | 2018-10-17T11:48:34.000Z | 2019-05-31T06:56:14.000Z | iOS/PluginClasses/Errors/ErrorViewConfiguration.swift | applicaster/zapp-player-plugin-brightcove | e5198221ad65fb4c9d0aceb307f340ef4bb39c42 | [
"Apache-2.0"
] | null | null | null | //
// ErrorViewConfiguration.swift
// BrightcovePlayerPlugin
//
// Created by Roman Karpievich on 1/29/19.
//
import Foundation
private enum CustomConfiguration: String {
case videoPlayErrorMessage = "General_Error_Message"
case videoPlayErrorButtonText = "General_Error_Button"
case connectivityErrorMe... | 36.580645 | 117 | 0.773369 |
c68de9add5718f79dd1dd53174aec36a9976cd31 | 2,650 | py | Python | docker/deps/torchlayers/torchlayers/regularization.py | DenDen047/SpatialNetworks | 62a076d12af474b19b406e605d970662d9699cdf | [
"MIT"
] | 3 | 2019-12-15T23:29:11.000Z | 2020-05-08T03:26:20.000Z | docker/deps/torchlayers/torchlayers/regularization.py | DenDen047/SpatialNetworks | 62a076d12af474b19b406e605d970662d9699cdf | [
"MIT"
] | null | null | null | docker/deps/torchlayers/torchlayers/regularization.py | DenDen047/SpatialNetworks | 62a076d12af474b19b406e605d970662d9699cdf | [
"MIT"
] | 3 | 2019-12-30T15:49:57.000Z | 2020-04-30T08:06:18.000Z | import torch
from ._dev_utils import modules
class StochasticDepth(torch.nn.Module):
"""Randomly skip module during training with specified `p`, leaving inference untouched.
Originally proposed by Gao Huang et. al in
`Deep Networks with Stochastic Depth <www.arxiv.org/abs/1512.03385>`__.
Originally... | 36.805556 | 155 | 0.673585 |
05f5a3774dfdff522dee36b45d1f8e16494992e8 | 396 | py | Python | server/dq/migrations/0002_alter_downloadjob_priority.py | tomaso/download-queue | ac2f02427d129d525a8ca32299d085461ac9c20b | [
"Apache-2.0"
] | null | null | null | server/dq/migrations/0002_alter_downloadjob_priority.py | tomaso/download-queue | ac2f02427d129d525a8ca32299d085461ac9c20b | [
"Apache-2.0"
] | 5 | 2021-06-23T13:46:07.000Z | 2021-07-26T14:50:51.000Z | server/dq/migrations/0002_alter_downloadjob_priority.py | tomaso/download-queue | ac2f02427d129d525a8ca32299d085461ac9c20b | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2 on 2021-04-22 06:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("dq", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="downloadjob",
name="priority",
f... | 20.842105 | 71 | 0.603535 |
20e7ea4db004acfe47ec7c785de5574643a81c00 | 6,493 | py | Python | linear.py | PVirie/neatly_active_classifier | d83fe42c5ada770f5927ac8adaa453bd5eac6a6a | [
"MIT"
] | null | null | null | linear.py | PVirie/neatly_active_classifier | d83fe42c5ada770f5927ac8adaa453bd5eac6a6a | [
"MIT"
] | null | null | null | linear.py | PVirie/neatly_active_classifier | d83fe42c5ada770f5927ac8adaa453bd5eac6a6a | [
"MIT"
] | null | null | null | import torch
import os
class Conceptor:
def __init__(self, device, max_bases=-1, file_path=None):
print("init")
self.device = device
self.max_bases = max_bases
self.weights = []
self.importances = []
self.file_path = file_path
self.max_input_channel = 0
... | 32.959391 | 128 | 0.581549 |
f557bc935fd905c66c07e607fd551d2344b9176e | 724 | asm | Assembly | TP2/fun:fact.asm | kuoa/assembly-misc | 5992cedee5c486768fc9daeb653ffbbb17810f06 | [
"MIT"
] | null | null | null | TP2/fun:fact.asm | kuoa/assembly-misc | 5992cedee5c486768fc9daeb653ffbbb17810f06 | [
"MIT"
] | null | null | null | TP2/fun:fact.asm | kuoa/assembly-misc | 5992cedee5c486768fc9daeb653ffbbb17810f06 | [
"MIT"
] | null | null | null | .data
n: .word 5
.text
main:
addiu $29, $29, -8
sw $31, 4($29)
la $4, n # @n
lw $4, 0($4) # val n
jal fact
or $4, $2, $0
ori $2, $0, 1
syscall # print fact(n)
ori $2, $0, 10
syscall # exit
lw $31, 4($29)
addiu $29, $29, 8
jr $31
##############################################
fact:
addiu $2... | 12.482759 | 47 | 0.447514 |
1460a2abfae5ecb26ee47bd8767fa7d2464add88 | 5,617 | ts | TypeScript | src/app/App.ts | oimchat/oim-e | 2d764557a434f47d0dce6c947bfc2e3d5cbc799e | [
"Apache-2.0"
] | 3 | 2021-05-28T08:12:57.000Z | 2021-11-21T08:33:09.000Z | src/app/App.ts | oimchat/oim-web | b6efbcffc4576a4bfe8aa47a429b7fc462f1d181 | [
"Apache-2.0"
] | null | null | null | src/app/App.ts | oimchat/oim-web | b6efbcffc4576a4bfe8aa47a429b7fc462f1d181 | [
"Apache-2.0"
] | 4 | 2021-02-09T08:09:05.000Z | 2022-02-23T10:09:02.000Z | import AppContext from '@/app/base/context/AppContext';
import ConnectHandler from '@/app/base/net/ConnectHandler';
import auth from '@/app/common/auth/Auth';
import SystemNetController from '@/app/com/main/module/business/system/controller/SystemNetController';
import LoginController from '@/app/com/main/module/busine... | 37.952703 | 103 | 0.655688 |
4bdc221e0327722f39916db44bd5352c9dc306ac | 3,074 | h | C | aws-cpp-sdk-fms/include/aws/fms/model/PutAppsListResult.h | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-fms/include/aws/fms/model/PutAppsListResult.h | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-fms/include/aws/fms/model/PutAppsListResult.h | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/fms/FMS_EXPORTS.h>
#include <aws/fms/model/AppsListData.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE... | 28.728972 | 117 | 0.67339 |
d63441ce302555a2da9a23202b339a8218f922c1 | 517 | cs | C# | src/DND.Web.DynamicForms/Mvc/LookupTables/Notifications/LookupTablesNotifications.cs | davidikin45/DigitalNomadDaveAspNetCore | 99be5389605223aaa7be87d778eb1a66c0c08340 | [
"MIT"
] | null | null | null | src/DND.Web.DynamicForms/Mvc/LookupTables/Notifications/LookupTablesNotifications.cs | davidikin45/DigitalNomadDaveAspNetCore | 99be5389605223aaa7be87d778eb1a66c0c08340 | [
"MIT"
] | null | null | null | src/DND.Web.DynamicForms/Mvc/LookupTables/Notifications/LookupTablesNotifications.cs | davidikin45/DigitalNomadDaveAspNetCore | 99be5389605223aaa7be87d778eb1a66c0c08340 | [
"MIT"
] | null | null | null | using DND.Common.ApplicationServices.SignalR;
using DND.Common.SignalRHubs;
using DND.Domain.DynamicForms.LookupTables.Dtos;
using Microsoft.AspNetCore.SignalR;
namespace DND.Web.DynamicForms.Mvc.LookupTables.Notifications
{
public class LookupTablesNotifications : ISignalRHubMap
{
public void MapHub(... | 32.3125 | 119 | 0.758221 |
db76bb5201a18610ea6989e9a77356ea5e67809a | 1,353 | php | PHP | resources/views/admin/products/index.blade.php | alansslva/laravel-codedelivery | da451e8a6819de894e1f2802cebf6fa0b7bfafd4 | [
"MIT"
] | null | null | null | resources/views/admin/products/index.blade.php | alansslva/laravel-codedelivery | da451e8a6819de894e1f2802cebf6fa0b7bfafd4 | [
"MIT"
] | null | null | null | resources/views/admin/products/index.blade.php | alansslva/laravel-codedelivery | da451e8a6819de894e1f2802cebf6fa0b7bfafd4 | [
"MIT"
] | null | null | null | @extends('app')
@section('content')
<div class="container">
<h3>Produtos</h3>
<a href="{{ route('admin.products.create') }}">
<button class="btn">Criar Produto</button>
</a>
<table class="table">
<thead>
<tr>
<th>ID</th>
... | 26.529412 | 96 | 0.351072 |
cdb6e38acde832139ad3345864a292b1aa8c333b | 9,974 | cs | C# | src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Layers/CreateAndSaveKmlFile/CreateAndSaveKmlFile.xaml.cs | lboyd93/arcgis-runtime-samples-dotnet | e07e37a89b15f60fc9599646f1fdba4a2cbb476d | [
"Apache-2.0"
] | 2 | 2020-04-25T18:41:47.000Z | 2021-03-22T19:08:25.000Z | src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Layers/CreateAndSaveKmlFile/CreateAndSaveKmlFile.xaml.cs | munakbey/arcgis-runtime-samples-dotnet | 53b8e9b604341a84a83add346a1d1c0f5b5374f8 | [
"Apache-2.0"
] | null | null | null | src/WPF/ArcGISRuntime.WPF.Viewer/Samples/Layers/CreateAndSaveKmlFile/CreateAndSaveKmlFile.xaml.cs | munakbey/arcgis-runtime-samples-dotnet | 53b8e9b604341a84a83add346a1d1c0f5b5374f8 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Esri.
//
// 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... | 39.737052 | 167 | 0.580509 |
4575f1c3527e225921e38f6821449f2eb60bd89b | 58 | py | Python | dxm/lib/DxJobs/DxJobCounter.py | experiortec/dxm-toolkit | b2ab6189e163c62fa8d7251cd533d2a36430d44a | [
"Apache-2.0"
] | 5 | 2018-08-23T15:47:05.000Z | 2022-01-19T23:38:18.000Z | dxm/lib/DxJobs/DxJobCounter.py | experiortec/dxm-toolkit | b2ab6189e163c62fa8d7251cd533d2a36430d44a | [
"Apache-2.0"
] | 59 | 2018-10-15T10:37:00.000Z | 2022-03-22T20:49:25.000Z | dxm/lib/DxJobs/DxJobCounter.py | experiortec/dxm-toolkit | b2ab6189e163c62fa8d7251cd533d2a36430d44a | [
"Apache-2.0"
] | 12 | 2019-03-08T19:59:13.000Z | 2021-12-16T03:28:04.000Z | rows_total = 0
rows_masked = 0
ret = 0
profileret = 0
| 11.6 | 16 | 0.655172 |