hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73422f0bb8751d2c792f44b2e91b64eb8563e69c | 459 | py | Python | launcher.py | Axelware/CD-bot | 8f923c09c3c8cfcff48813c6dd11ac50c410af72 | [
"MIT"
] | 2 | 2021-12-10T00:36:59.000Z | 2021-12-11T09:11:46.000Z | launcher.py | Axelware/CD-bot | 8f923c09c3c8cfcff48813c6dd11ac50c410af72 | [
"MIT"
] | 2 | 2021-12-10T01:53:10.000Z | 2021-12-10T09:06:01.000Z | launcher.py | Axelware/CD-bot | 8f923c09c3c8cfcff48813c6dd11ac50c410af72 | [
"MIT"
] | 1 | 2021-12-10T00:37:07.000Z | 2021-12-10T00:37:07.000Z | # Future
from __future__ import annotations
# Standard Library
import asyncio
import os
# Local
from cd.bot import CD
from cd.config import TOKEN
from cd.utilities.logger import setup_logger
setup_logger()
os.environ["JISHAKU_NO_UNDERSCORE"] = "True"
os.environ["JISHAKU_HIDE"] = "True"
os.environ["JISHAKU_NO_DM_TR... | 15.3 | 46 | 0.727669 | 66 | 459 | 4.878788 | 0.484848 | 0.055901 | 0.149068 | 0.111801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16122 | 459 | 29 | 47 | 15.827586 | 0.836364 | 0.063181 | 0 | 0 | 0 | 0 | 0.159624 | 0.103286 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
73478f83cb96cbc8df807a18b6eadf00aabfe4e9 | 1,405 | py | Python | Tree Node.py | sugia/leetcode | 6facec2a54d1d9f133f420c9bce1d1043f57ebc6 | [
"Apache-2.0"
] | null | null | null | Tree Node.py | sugia/leetcode | 6facec2a54d1d9f133f420c9bce1d1043f57ebc6 | [
"Apache-2.0"
] | null | null | null | Tree Node.py | sugia/leetcode | 6facec2a54d1d9f133f420c9bce1d1043f57ebc6 | [
"Apache-2.0"
] | null | null | null | '''
Given a table tree, id is identifier of the tree node and p_id is its parent node's id.
+----+------+
| id | p_id |
+----+------+
| 1 | null |
| 2 | 1 |
| 3 | 1 |
| 4 | 2 |
| 5 | 2 |
+----+------+
Each node in the tree can be one of three types:
Leaf: if the node is a leaf node.
Root: if the nod... | 23.813559 | 129 | 0.575089 | 245 | 1,405 | 3.277551 | 0.314286 | 0.052304 | 0.01868 | 0.041096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029352 | 0.296797 | 1,405 | 58 | 130 | 24.224138 | 0.783401 | 0.027046 | 0 | 0 | 0 | 0 | 0.078313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73479fd09f1982203e2f669ccf975ddd2287019c | 29,015 | py | Python | dmm2/common.py | primasanjaya/muat-github | 4603c6c960188643fb38d8dba82e0dcc1ba00b40 | [
"Apache-2.0"
] | null | null | null | dmm2/common.py | primasanjaya/muat-github | 4603c6c960188643fb38d8dba82e0dcc1ba00b40 | [
"Apache-2.0"
] | null | null | null | dmm2/common.py | primasanjaya/muat-github | 4603c6c960188643fb38d8dba82e0dcc1ba00b40 | [
"Apache-2.0"
] | 1 | 2022-03-22T15:35:57.000Z | 2022-03-22T15:35:57.000Z | import os, sys, datetime, gzip, operator
from itertools import imap
import numpy as np
import pandas as pd
SRC_DIR = os.path.dirname(os.path.abspath(__file__))
DEFAULT_PARAMETERS_NAME = 'dmm_config.json'
DEFAULT_DATA_CONFIG_NAME = 'data_config.json'
DEFAULT_MUTATION_CODING_NAME = 'mutation_codes.tsv'
DEFAULT_... | 45.478056 | 156 | 0.59552 | 3,817 | 29,015 | 4.296306 | 0.124443 | 0.015001 | 0.018294 | 0.011891 | 0.325935 | 0.283127 | 0.261784 | 0.236112 | 0.212391 | 0.197451 | 0 | 0.007997 | 0.301809 | 29,015 | 637 | 157 | 45.549451 | 0.801511 | 0.084336 | 0 | 0.21748 | 0 | 0.002033 | 0.050651 | 0.001879 | 0 | 0 | 0 | 0 | 0.012195 | 0 | null | null | 0 | 0.00813 | null | null | 0.002033 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
734949171f1b8ca983932aee44df8b73f1a83108 | 1,043 | py | Python | pymtl3/stdlib/basic_rtl/register_files.py | pymtl/pymtl3 | 1cb7ade157a20c8264e777c0992f4751236c085b | [
"BSD-3-Clause"
] | 152 | 2020-06-03T02:34:11.000Z | 2022-03-30T04:16:45.000Z | pymtl3/stdlib/basic_rtl/register_files.py | pymtl/pymtl3 | 1cb7ade157a20c8264e777c0992f4751236c085b | [
"BSD-3-Clause"
] | 33 | 2020-05-19T15:42:52.000Z | 2022-03-03T20:56:41.000Z | pymtl3/stdlib/basic_rtl/register_files.py | pymtl/pymtl3 | 1cb7ade157a20c8264e777c0992f4751236c085b | [
"BSD-3-Clause"
] | 22 | 2020-05-18T13:42:05.000Z | 2022-03-11T08:37:51.000Z | from pymtl3 import *
class RegisterFile( Component ):
def construct( s, Type, nregs=32, rd_ports=1, wr_ports=1,
const_zero=False ):
addr_type = mk_bits( max( 1, clog2( nregs ) ) )
s.raddr = [ InPort( addr_type ) for i in range( rd_ports ) ]
s.rdata = [ OutPort( Type ) for i in range( ... | 28.189189 | 64 | 0.5465 | 166 | 1,043 | 3.283133 | 0.289157 | 0.066055 | 0.099083 | 0.181651 | 0.557798 | 0.530275 | 0.456881 | 0.385321 | 0.095413 | 0.095413 | 0 | 0.01257 | 0.313519 | 1,043 | 36 | 65 | 28.972222 | 0.748603 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.037037 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7349d13d316ee1b45d132f830860a0667848ff2b | 1,717 | py | Python | tests/test_warc_lister.py | justinlittman/social-feed-tools | a22163fdf34e4bca2ffba61484d61738f9eb21c2 | [
"MIT"
] | 1 | 2018-02-27T09:52:26.000Z | 2018-02-27T09:52:26.000Z | tests/test_warc_lister.py | justinlittman/social-feed-tools | a22163fdf34e4bca2ffba61484d61738f9eb21c2 | [
"MIT"
] | null | null | null | tests/test_warc_lister.py | justinlittman/social-feed-tools | a22163fdf34e4bca2ffba61484d61738f9eb21c2 | [
"MIT"
] | null | null | null | from unittest import TestCase
import sf_warc_lister as lister
class TestReader(TestCase):
def test_parse_tumblr_url(self):
service, api_method, api_args = lister.parse_tumblr_url("http://api.tumblr.com/v2/blog/justinlittman-dev.tumblr.com/posts?oauth_body_hash=2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D&oauth_nonc... | 66.038462 | 488 | 0.757717 | 217 | 1,717 | 5.75576 | 0.354839 | 0.144115 | 0.086469 | 0.105685 | 0.233787 | 0.233787 | 0.098479 | 0.098479 | 0.098479 | 0 | 0 | 0.059633 | 0.111241 | 1,717 | 25 | 489 | 68.68 | 0.758847 | 0 | 0 | 0 | 0 | 0.142857 | 0.465347 | 0.029121 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.142857 | false | 0 | 0.095238 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
734e8e8adbd0eadadbdc54bf24a2cc082a0e0545 | 1,316 | py | Python | spyfall.py | Thalmann/SpyfallOnline | 1b9ff6ed93a3b3188ab25a8fc8cc31df797285e2 | [
"MIT"
] | null | null | null | spyfall.py | Thalmann/SpyfallOnline | 1b9ff6ed93a3b3188ab25a8fc8cc31df797285e2 | [
"MIT"
] | null | null | null | spyfall.py | Thalmann/SpyfallOnline | 1b9ff6ed93a3b3188ab25a8fc8cc31df797285e2 | [
"MIT"
] | null | null | null | from flask import Flask
from flask import render_template
from flask import request
from flask import redirect
from flask_wtf import Form
from wtforms.fields import SubmitField, StringField
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret'
class StartGameForm(Form):
"""Simple form when creating a new game... | 24.830189 | 80 | 0.679331 | 169 | 1,316 | 5.094675 | 0.284024 | 0.130081 | 0.162602 | 0.083624 | 0.255517 | 0.083624 | 0.083624 | 0 | 0 | 0 | 0 | 0 | 0.174012 | 1,316 | 52 | 81 | 25.307692 | 0.792088 | 0.028116 | 0 | 0.153846 | 0 | 0 | 0.136543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.153846 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
734facbf6bdca35434438cb1d140e152f9225c8b | 1,111 | py | Python | class/update.py | gfursin/ck-dissemination | 2850540134a2b1ef03c398b1ca63e8d7508197d5 | [
"CC-BY-4.0"
] | 1 | 2016-09-29T21:44:32.000Z | 2016-09-29T21:44:32.000Z | class/update.py | gfursin/ck-dissemination | 2850540134a2b1ef03c398b1ca63e8d7508197d5 | [
"CC-BY-4.0"
] | null | null | null | class/update.py | gfursin/ck-dissemination | 2850540134a2b1ef03c398b1ca63e8d7508197d5 | [
"CC-BY-4.0"
] | null | null | null | # Collective Mind
#
# See cM LICENSE.txt for licensing details.
# See cM COPYRIGHT.txt for copyright details.
#
# Developer(s): Grigori Fursin, started on 2011.09
# Misc scripts
import json
import os
px1='.cm'
px2='data.json'
px3=''
dirList=os.listdir('.')
for fn in dirList:
# Check if startswith
if fn.star... | 19.839286 | 60 | 0.514851 | 130 | 1,111 | 4.376923 | 0.530769 | 0.079086 | 0.089631 | 0.094903 | 0.267135 | 0.267135 | 0.193322 | 0.137083 | 0 | 0 | 0 | 0.023121 | 0.377138 | 1,111 | 55 | 61 | 20.2 | 0.799133 | 0.19532 | 0 | 0.46875 | 0 | 0 | 0.078143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
73533353e6101bd373d0cf47c07e8180f7612426 | 579 | py | Python | src/cms/models/media/document.py | digitalfabrik/coldaid-backend | b769510570d5921e30876565263813c0362994e2 | [
"Apache-2.0"
] | 4 | 2019-12-05T16:45:17.000Z | 2020-05-09T07:26:34.000Z | src/cms/models/media/document.py | digitalfabrik/coldaid-backend | b769510570d5921e30876565263813c0362994e2 | [
"Apache-2.0"
] | 56 | 2019-12-05T12:31:37.000Z | 2021-01-07T15:47:45.000Z | src/cms/models/media/document.py | digitalfabrik/coldaid-backend | b769510570d5921e30876565263813c0362994e2 | [
"Apache-2.0"
] | 2 | 2019-12-11T09:52:26.000Z | 2020-05-09T07:26:38.000Z | from django.db import models
class Document(models.Model):
description = models.CharField(max_length=255, blank=True)
document = models.FileField(upload_to='')
uploaded_at = models.DateTimeField(auto_now_add=True)
def __str__(self):
return self.document.name
# pylint: disable=arguments-... | 25.173913 | 62 | 0.644214 | 63 | 579 | 5.746032 | 0.666667 | 0.077348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006787 | 0.236615 | 579 | 22 | 63 | 26.318182 | 0.812217 | 0.055268 | 0 | 0 | 0 | 0 | 0.066055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0.066667 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7356007964ea17d29870a6134ad3683bc5a42d00 | 783 | py | Python | theama/feature/tests/test_image_features.py | DavidTorpey/theama | 809aed207a66a5e9b24afd78876b9b62796c6aba | [
"Apache-2.0"
] | null | null | null | theama/feature/tests/test_image_features.py | DavidTorpey/theama | 809aed207a66a5e9b24afd78876b9b62796c6aba | [
"Apache-2.0"
] | null | null | null | theama/feature/tests/test_image_features.py | DavidTorpey/theama | 809aed207a66a5e9b24afd78876b9b62796c6aba | [
"Apache-2.0"
] | null | null | null | """
Author: David Torpey
License: Apache 2.0
Redistribution Licensing:
- NumPy: https://www.numpy.org/license.html#
Module with unit tests for the image features.
"""
import unittest
import numpy as np
from theama.feature import compute_hog
from theama.utils.utils import load_lena
class ImageFeatureTest(unittes... | 21.162162 | 88 | 0.712644 | 105 | 783 | 5.171429 | 0.571429 | 0.066298 | 0.036832 | 0.069982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.195402 | 783 | 36 | 89 | 21.75 | 0.853968 | 0.205619 | 0 | 0 | 0 | 0 | 0.057003 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.266667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
735754d9526ea215f861e09c183426cffdbe3d01 | 1,963 | py | Python | handlers/search.py | gph03n1x/Hurricane | 629cc6838242a07f004773f243d3c4ce386ea3d8 | [
"MIT"
] | 1 | 2018-09-25T11:13:54.000Z | 2018-09-25T11:13:54.000Z | handlers/search.py | gph03n1x/Hurricane | 629cc6838242a07f004773f243d3c4ce386ea3d8 | [
"MIT"
] | null | null | null | handlers/search.py | gph03n1x/Hurricane | 629cc6838242a07f004773f243d3c4ce386ea3d8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Third party libraries
import tornado.web
# Engine libraries
from engine.search import DefaultSearch
class SearchHandler(tornado.web.RequestHandler):
def initialize(self, database, parser, options, logger):
"""
Initializes the database with parameters... | 34.438596 | 111 | 0.619969 | 227 | 1,963 | 5.281938 | 0.356828 | 0.06422 | 0.085071 | 0.087573 | 0.301084 | 0.301084 | 0.301084 | 0.301084 | 0.301084 | 0.220183 | 0 | 0.001416 | 0.280693 | 1,963 | 57 | 112 | 34.438596 | 0.847734 | 0.288844 | 0 | 0.4 | 0 | 0 | 0.063167 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.12 | false | 0 | 0.08 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7357ad451cf62dace3e46d4624559ac3838b7728 | 2,330 | py | Python | preprocessing/homography_converter/uNetXST_homographies/1_FRLR.py | HaloCsidez/Cam2BEV | c78807165bbab48a3bec70270b4ce1dfa34b5e27 | [
"MIT"
] | null | null | null | preprocessing/homography_converter/uNetXST_homographies/1_FRLR.py | HaloCsidez/Cam2BEV | c78807165bbab48a3bec70270b4ce1dfa34b5e27 | [
"MIT"
] | null | null | null | preprocessing/homography_converter/uNetXST_homographies/1_FRLR.py | HaloCsidez/Cam2BEV | c78807165bbab48a3bec70270b4ce1dfa34b5e27 | [
"MIT"
] | null | null | null | # ==============================================================================
# MIT License
#
# Copyright 2020 Institute for Automotive Engineering of RWTH Aachen University.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "S... | 55.47619 | 87 | 0.683262 | 284 | 2,330 | 5.602113 | 0.56338 | 0.055311 | 0.016342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304946 | 0.158369 | 2,330 | 41 | 88 | 56.829268 | 0.506374 | 0.562661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
735b9ce8cf31615ca0a99210e9fda0d2d4095b7e | 2,551 | py | Python | Vault7/Lost-in-Translation/windows/Resources/Ops/PyScripts/Connected/Connected.py | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | 46 | 2017-05-15T11:15:08.000Z | 2018-07-02T03:32:52.000Z | Vault7/Lost-in-Translation/windows/Resources/Ops/PyScripts/Connected/Connected.py | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | null | null | null | Vault7/Lost-in-Translation/windows/Resources/Ops/PyScripts/Connected/Connected.py | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | 24 | 2017-05-17T03:26:17.000Z | 2018-07-09T07:00:50.000Z |
import dsz.script
import os.path
import ops
import ops.env
import ops.project
import ops.networking.ifconfig
import ops.survey
import ops.survey.ifconfig
import json
import dsz
dsz.control.echo.Off()
dsz.ui.Echo(('-' * 50))
dsz.ui.Echo('Re-registering global wrappers for current target')
dsz.ui.Echo(('-'... | 48.132075 | 288 | 0.664053 | 369 | 2,551 | 4.560976 | 0.344173 | 0.020796 | 0.032086 | 0.019608 | 0.141414 | 0.048723 | 0.048723 | 0.048723 | 0.048723 | 0.048723 | 0 | 0.004138 | 0.147393 | 2,551 | 53 | 289 | 48.132075 | 0.769655 | 0 | 0 | 0.057692 | 0 | 0 | 0.323729 | 0.027211 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.192308 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7362f9561762977d52e35d235eeaff20f584cdf4 | 7,073 | py | Python | get_syscalls.py | libmir/mir-linux-kernel | 76220f087a9535c2ebcc23708c6fcea01f7dc43c | [
"BSL-1.0"
] | 10 | 2017-11-03T17:45:10.000Z | 2021-02-12T22:28:55.000Z | get_syscalls.py | libmir/mir-linux-kernel | 76220f087a9535c2ebcc23708c6fcea01f7dc43c | [
"BSL-1.0"
] | 3 | 2017-11-02T10:34:24.000Z | 2020-05-16T12:57:27.000Z | get_syscalls.py | libmir/mir-linux-kernel | 76220f087a9535c2ebcc23708c6fcea01f7dc43c | [
"BSL-1.0"
] | 3 | 2017-11-02T06:16:48.000Z | 2019-10-24T11:29:48.000Z | #!/usr/bin/env python
"""
Usage: python get_syscalls.py <all | specific architectures...>
Generate the "source/mir/linux/arch/<arch>/uapi/_asm/unistd.di' files by
this command in the containing folder. You will need to be connected
to the internet. Architecture names are written exactly as corresponding
version specif... | 37.031414 | 104 | 0.675668 | 1,049 | 7,073 | 4.42898 | 0.285987 | 0.051657 | 0.06328 | 0.056823 | 0.312312 | 0.246018 | 0.132587 | 0.109341 | 0.096858 | 0.096858 | 0 | 0.031245 | 0.140252 | 7,073 | 190 | 105 | 37.226316 | 0.732774 | 0.191998 | 0 | 0.226667 | 1 | 0 | 0.325766 | 0.150651 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0.013333 | 0.066667 | 0 | 0.126667 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7df60c931b4040554ef337fb4ec00efbdd109d90 | 7,537 | py | Python | beagle/individual.py | bjmorgan/beagle | ad94104b4f443504357aff474fcf9328ff9cd7c2 | [
"MIT"
] | null | null | null | beagle/individual.py | bjmorgan/beagle | ad94104b4f443504357aff474fcf9328ff9cd7c2 | [
"MIT"
] | null | null | null | beagle/individual.py | bjmorgan/beagle | ad94104b4f443504357aff474fcf9328ff9cd7c2 | [
"MIT"
] | null | null | null | from collections import Counter
import random
import numpy as np
def matches(vector, a):
"""
Returns indices where the elements of a vector match some value.
Args:
vector (ndarray(int)): A 1D numpy array describing a vector.
a (int): The value to match.
Returns:
list(int): A l... | 31.016461 | 106 | 0.531511 | 885 | 7,537 | 4.458757 | 0.20904 | 0.011657 | 0.022301 | 0.010137 | 0.293969 | 0.255955 | 0.233908 | 0.188545 | 0.148505 | 0.132793 | 0 | 0.022365 | 0.359294 | 7,537 | 242 | 107 | 31.144628 | 0.794782 | 0.597453 | 0 | 0.125 | 0 | 0 | 0.038821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.229167 | false | 0 | 0.0625 | 0.020833 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7df80e0351d5ecfcf304afbc834e80d522668d11 | 3,757 | py | Python | python/Pipeline/Utilities/CBASS_U_FourierPower.py | cardin-higley-lab/CBASS | 0d0b58497313027388351feffc79766f815b47b5 | [
"Apache-2.0"
] | null | null | null | python/Pipeline/Utilities/CBASS_U_FourierPower.py | cardin-higley-lab/CBASS | 0d0b58497313027388351feffc79766f815b47b5 | [
"Apache-2.0"
] | null | null | null | python/Pipeline/Utilities/CBASS_U_FourierPower.py | cardin-higley-lab/CBASS | 0d0b58497313027388351feffc79766f815b47b5 | [
"Apache-2.0"
] | null | null | null | def FourierPower(db1Trace, inSampleRate, varargin):
'''
STILL NOT IMPLEMENTED IN PYTHON!!!
[DBWINLENSEC, INNSTEP, BLDOPLOT]) computes the spectral power of DB1TRACE
over time. DB1TRACE is divided into segments whose length is specified by
DBWINLENSEC and INSAMPLERATE. INNSTEP controls the overl... | 39.135417 | 114 | 0.653447 | 453 | 3,757 | 5.419426 | 0.386313 | 0.01222 | 0.02444 | 0.032994 | 0.118941 | 0.087169 | 0.087169 | 0.051324 | 0.051324 | 0 | 0 | 0.041101 | 0.255257 | 3,757 | 96 | 115 | 39.135417 | 0.836312 | 0.174607 | 0 | 0.254545 | 0 | 0 | 0.048578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7df8972e9ab9df29f757ef878c5969a4c081406e | 3,005 | py | Python | captains_log/cli/entries_history.py | slothyrulez/python-captains-log | 0ae9d554166ffe64a90faadcc5a06b5f5ef91037 | [
"MIT"
] | null | null | null | captains_log/cli/entries_history.py | slothyrulez/python-captains-log | 0ae9d554166ffe64a90faadcc5a06b5f5ef91037 | [
"MIT"
] | null | null | null | captains_log/cli/entries_history.py | slothyrulez/python-captains-log | 0ae9d554166ffe64a90faadcc5a06b5f5ef91037 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import click, datetime, peewee
from captains_log.backend.init import init_database
from captains_log.backend.models import CaptainsLogDatabase, Category, Entry
from captains_log.renderer.history import SimpleHistoryRenderer, TabulatedHistoryRenderer, ColumnedHistoryRenderer
@click.command(shor... | 43.550725 | 127 | 0.651248 | 357 | 3,005 | 5.420168 | 0.37535 | 0.036176 | 0.035142 | 0.039276 | 0.19845 | 0.173643 | 0.173643 | 0.157623 | 0.134884 | 0.071318 | 0 | 0.000884 | 0.247255 | 3,005 | 69 | 128 | 43.550725 | 0.854553 | 0.297171 | 0 | 0.108108 | 0 | 0 | 0.134848 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.027027 | false | 0.027027 | 0.108108 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7df9fdc12df4ea883f021b36554cd6acfffc41e2 | 533 | py | Python | apps/files/urls.py | sasili-adetunji/flightify | 009def5bbaf3066df19ce3f48eacd6c8c055acdf | [
"MIT"
] | null | null | null | apps/files/urls.py | sasili-adetunji/flightify | 009def5bbaf3066df19ce3f48eacd6c8c055acdf | [
"MIT"
] | 3 | 2020-02-11T23:27:34.000Z | 2021-06-10T21:01:58.000Z | apps/files/urls.py | sasili-adetunji/flightify | 009def5bbaf3066df19ce3f48eacd6c8c055acdf | [
"MIT"
] | null | null | null | from django.conf.urls import url
from rest_framework.routers import SimpleRouter
from django.urls import path
from rest_framework.routers import DefaultRouter
from . import views
class OptionalSlashRouter(SimpleRouter):
def __init__(self, trailing_slash='/?'):
self.trailing_slash = trailing_slash
... | 22.208333 | 68 | 0.769231 | 59 | 533 | 6.728814 | 0.474576 | 0.098237 | 0.085642 | 0.120907 | 0.151134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138837 | 533 | 23 | 69 | 23.173913 | 0.864924 | 0 | 0 | 0 | 0 | 0 | 0.030019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7dfb1497d335595c1db9c2381aa6579530b415b0 | 2,499 | py | Python | Week 10/tw14_world series.py | andrewn488/OMSBA-5061 | 8e57fff45d8965b0423a6fe338bd74cedfe94ea0 | [
"MIT"
] | null | null | null | Week 10/tw14_world series.py | andrewn488/OMSBA-5061 | 8e57fff45d8965b0423a6fe338bd74cedfe94ea0 | [
"MIT"
] | null | null | null | Week 10/tw14_world series.py | andrewn488/OMSBA-5061 | 8e57fff45d8965b0423a6fe338bd74cedfe94ea0 | [
"MIT"
] | 1 | 2022-02-07T02:42:43.000Z | 2022-02-07T02:42:43.000Z | '''
FQ20 - OMSBA 5061 - Week 10
TW14: World Series
Maroon Team: Chequala Fuller, Tamalyn Tamura, Andrew Nalundasan
Description: Write the WorldSeries class that models a baseball
world series. Make a stab at the simulation, too, if you have time.
'''
import random
class WorldSeries(object):
... | 31.2375 | 97 | 0.541817 | 324 | 2,499 | 4.151235 | 0.311728 | 0.04684 | 0.053532 | 0.055762 | 0.262454 | 0.165056 | 0.052045 | 0.052045 | 0 | 0 | 0 | 0.036182 | 0.358543 | 2,499 | 79 | 98 | 31.632911 | 0.80287 | 0.042817 | 0 | 0.064516 | 0 | 0 | 0.096842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032258 | null | null | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7dfdaaaa3099e2c22d8037dedeff795e45b14f44 | 278 | py | Python | PycharmProjects/pythonteste/aula16a.py | caioalexleme/Curso_Python | 6394f60689531c7431765538f1b699aabbf4acb2 | [
"MIT"
] | 3 | 2021-07-09T20:41:47.000Z | 2021-11-17T10:25:01.000Z | PycharmProjects/pythonteste/aula16a.py | caioalexleme/Curso_Python | 6394f60689531c7431765538f1b699aabbf4acb2 | [
"MIT"
] | null | null | null | PycharmProjects/pythonteste/aula16a.py | caioalexleme/Curso_Python | 6394f60689531c7431765538f1b699aabbf4acb2 | [
"MIT"
] | 1 | 2021-09-09T20:24:07.000Z | 2021-09-09T20:24:07.000Z | a = (2, 5, 4)
b = (5, 8, 1, 2)
c = a + b
print(c)
print(len(c))
print(c.count(5))# Quantas vezes aparece o '5' dentro de 'c'
print(c.index(8)) #Em que posição está o valor '8'
pessoa = ('Gustavo', 39, 'M', 99.88)
print(pessoa)
del (pessoa) #Apaga a tupla 'pessoa'
print(pessoa)
| 23.166667 | 60 | 0.618705 | 56 | 278 | 3.071429 | 0.571429 | 0.104651 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074236 | 0.176259 | 278 | 11 | 61 | 25.272727 | 0.676856 | 0.33813 | 0 | 0.181818 | 0 | 0 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.545455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
7dfe4738a1f545a150b87e893eee414b21b4b042 | 1,715 | py | Python | sdk/python/pulumi_azure_native/machinelearningexperimentation/v20170501preview/_inputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/machinelearningexperimentation/v20170501preview/_inputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/machinelearningexperimentation/v20170501preview/_inputs.py | sebtelko/pulumi-azure-native | 711ec021b5c73da05611c56c8a35adb0ce3244e4 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | 32.358491 | 103 | 0.668805 | 216 | 1,715 | 5.083333 | 0.337963 | 0.178506 | 0.131148 | 0.046448 | 0.519126 | 0.370674 | 0.29326 | 0.140255 | 0.074681 | 0 | 0 | 0.000754 | 0.226822 | 1,715 | 52 | 104 | 32.980769 | 0.8273 | 0.289796 | 0 | 0.068966 | 1 | 0 | 0.121454 | 0.024823 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.172414 | 0 | 0.448276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7dfe6bf9ca8841147f1924f5e183927eed68eb9d | 7,760 | py | Python | etc/fix_mapsplice_bam.py | chaelir/bamsurgeon | a989a1400a4a0a84dcca73aa0ec63f8ff63955e6 | [
"MIT"
] | 1 | 2022-02-02T10:40:12.000Z | 2022-02-02T10:40:12.000Z | etc/fix_mapsplice_bam.py | gillet/bamsurgeon | 1520ca150d602e54fc096f48c673d14308e7a20c | [
"MIT"
] | null | null | null | etc/fix_mapsplice_bam.py | gillet/bamsurgeon | 1520ca150d602e54fc096f48c673d14308e7a20c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
''' Script for correcting broken mapsplice BAMs using pysam
Adam Ewing (ewingad@soe.ucsc.edu)
'''
import sys
import pysam
import os
import subprocess
from re import sub
def namesort_bam(bamfile):
sortbase = bamfile + ".namesort"
sortfn = sortbase + ".bam"
sortargs = ['samtools... | 31.290323 | 122 | 0.550258 | 991 | 7,760 | 4.236125 | 0.193744 | 0.051453 | 0.020962 | 0.035017 | 0.457122 | 0.380896 | 0.318723 | 0.231539 | 0.205812 | 0.153883 | 0 | 0.028087 | 0.339304 | 7,760 | 247 | 123 | 31.417004 | 0.790716 | 0.090464 | 0 | 0.624309 | 0 | 0 | 0.045427 | 0 | 0 | 0 | 0 | 0.004049 | 0.005525 | 0 | null | null | 0.022099 | 0.027624 | null | null | 0.027624 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b40157976b3d2dfa62add8eba2a1acdb5772b001 | 1,211 | py | Python | Screen.py | kdominiaq/chess | 6c420dbfece488f686778cfa659963320fcbf453 | [
"MIT"
] | null | null | null | Screen.py | kdominiaq/chess | 6c420dbfece488f686778cfa659963320fcbf453 | [
"MIT"
] | null | null | null | Screen.py | kdominiaq/chess | 6c420dbfece488f686778cfa659963320fcbf453 | [
"MIT"
] | 1 | 2021-12-13T21:57:55.000Z | 2021-12-13T21:57:55.000Z | """
TODO
- add description about the file.
"""
import pygame
from Board import Board
class Screen(Board):
"""
set caption also stores variables for initialize window (wth and hgt)
:return: none
"""
def __init__(self):
super().__init__()
# create instantiation of board
se... | 18.921875 | 75 | 0.572254 | 130 | 1,211 | 5.130769 | 0.384615 | 0.097451 | 0.071964 | 0.068966 | 0.095952 | 0.095952 | 0 | 0 | 0 | 0 | 0 | 0 | 0.321222 | 1,211 | 63 | 76 | 19.222222 | 0.811436 | 0.241123 | 0 | 0.181818 | 0 | 0 | 0.029114 | 0 | 0 | 0 | 0 | 0.015873 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4033c35c56e5a7d39d6c13eb703677125c28a96 | 2,919 | py | Python | dojo/unittests/tools/test_spotbugs_parser.py | axelpavageau/django-DefectDojo | 00b425742b783ada0f432241c2812ac1257feb73 | [
"BSD-3-Clause"
] | 1 | 2021-07-26T21:12:01.000Z | 2021-07-26T21:12:01.000Z | dojo/unittests/tools/test_spotbugs_parser.py | axelpavageau/django-DefectDojo | 00b425742b783ada0f432241c2812ac1257feb73 | [
"BSD-3-Clause"
] | 562 | 2019-06-21T18:44:38.000Z | 2022-03-28T18:09:08.000Z | dojo/unittests/tools/test_spotbugs_parser.py | axelpavageau/django-DefectDojo | 00b425742b783ada0f432241c2812ac1257feb73 | [
"BSD-3-Clause"
] | null | null | null | from django.test import TestCase
from dojo.tools.spotbugs.parser import SpotbugsParser
from dojo.models import Test
class TestSpotbugsParser(TestCase):
def test_no_findings(self):
parser = SpotbugsParser()
findings = parser.get_findings("dojo/unittests/scans/spotbugs/no_finding.xml", Test())
... | 41.112676 | 120 | 0.684138 | 332 | 2,919 | 5.828313 | 0.201807 | 0.079587 | 0.111628 | 0.148837 | 0.679587 | 0.64031 | 0.64031 | 0.64031 | 0.64031 | 0.64031 | 0 | 0.018158 | 0.207605 | 2,919 | 70 | 121 | 41.7 | 0.818418 | 0.027064 | 0 | 0.482143 | 0 | 0.017857 | 0.242595 | 0.202398 | 0 | 0 | 0 | 0 | 0.160714 | 1 | 0.160714 | false | 0 | 0.053571 | 0 | 0.232143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b40ab21a42d3ae56d9925d11985b27167dfb109e | 2,569 | py | Python | tests/evernote/test_auth.py | KostyaEsmukov/SyncToG | 053f4b1c8dfe20a1567d4b675a58ea3055a89bf3 | [
"MIT"
] | 8 | 2016-12-01T12:03:41.000Z | 2021-11-23T19:03:13.000Z | tests/evernote/test_auth.py | kostya0shift/SyncToGit | b3f2ec7e1167a0b032d4d40726de625d31a02354 | [
"MIT"
] | 1 | 2020-04-30T17:00:00.000Z | 2020-04-30T17:00:00.000Z | tests/evernote/test_auth.py | kostya0shift/SyncToGit | b3f2ec7e1167a0b032d4d40726de625d31a02354 | [
"MIT"
] | 1 | 2021-03-04T16:35:48.000Z | 2021-03-04T16:35:48.000Z | from contextlib import ExitStack
from unittest.mock import Mock, call, patch
import pytest
from evernote.api.client import EvernoteClient
import synctogit.evernote.auth
from synctogit.evernote.auth import InteractiveAuth
@pytest.fixture
def mock_prompt_toolkit():
with ExitStack() as st:
shortcuts = ["bu... | 28.865169 | 84 | 0.658622 | 303 | 2,569 | 5.339934 | 0.359736 | 0.086527 | 0.066749 | 0.051916 | 0.195303 | 0.137206 | 0.05686 | 0.05686 | 0 | 0 | 0 | 0.007064 | 0.228494 | 2,569 | 88 | 85 | 29.193182 | 0.809284 | 0.098871 | 0 | 0.048387 | 0 | 0 | 0.2132 | 0.030395 | 0 | 0 | 0 | 0.011364 | 0.048387 | 1 | 0.064516 | false | 0 | 0.096774 | 0.016129 | 0.177419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b410a4a4aa4bee84e55df1fa7589dc35bf9f835c | 1,103 | py | Python | tests/test_ansi_format.py | zycelium/python-ansiformat | 671f25002d61cef520c9f81ce6c9cd37fecaa4e0 | [
"BSD-3-Clause"
] | null | null | null | tests/test_ansi_format.py | zycelium/python-ansiformat | 671f25002d61cef520c9f81ce6c9cd37fecaa4e0 | [
"BSD-3-Clause"
] | null | null | null | tests/test_ansi_format.py | zycelium/python-ansiformat | 671f25002d61cef520c9f81ce6c9cd37fecaa4e0 | [
"BSD-3-Clause"
] | null | null | null | from zycelium.ansiformat import AnsiFormat
def test_no_formatting():
af = AnsiFormat()
astr = af("hello")
assert "'hello'" == astr.raw
def test_no_color():
af = AnsiFormat(term_colors=0)
astr = af("hello")
assert isinstance(astr, str)
assert r"'hello'" == astr.raw
def test_foreground_c... | 24.511111 | 52 | 0.669991 | 167 | 1,103 | 4.209581 | 0.239521 | 0.069701 | 0.109531 | 0.119488 | 0.716927 | 0.682788 | 0.682788 | 0.620199 | 0.514936 | 0.514936 | 0 | 0.043956 | 0.174977 | 1,103 | 44 | 53 | 25.068182 | 0.728571 | 0 | 0 | 0.366667 | 0 | 0 | 0.155938 | 0.108794 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.233333 | false | 0 | 0.033333 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4134d7a379510842d2a6dc253f9c3cf462b119b | 1,090 | py | Python | nonbonded/backend/database/models/engines.py | SimonBoothroyd/nonbonded | 3efbb7d943d936b47248975f9ad0d8a006ea8684 | [
"MIT"
] | 5 | 2020-05-11T18:25:00.000Z | 2022-01-27T10:55:09.000Z | nonbonded/backend/database/models/engines.py | SimonBoothroyd/nonbonded | 3efbb7d943d936b47248975f9ad0d8a006ea8684 | [
"MIT"
] | 88 | 2020-06-02T14:40:05.000Z | 2022-03-02T09:20:39.000Z | nonbonded/backend/database/models/engines.py | SimonBoothroyd/nonbonded | 3efbb7d943d936b47248975f9ad0d8a006ea8684 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Float, ForeignKey, Integer, String
from sqlalchemy.orm import relationship
from nonbonded.backend.database.models import Base
class ForceBalancePrior(Base):
__tablename__ = "force_balance_priors"
id = Column(Integer, primary_key=True, index=True)
parent_id = Column(Intege... | 31.142857 | 79 | 0.76055 | 125 | 1,090 | 6.408 | 0.384 | 0.146067 | 0.142322 | 0.179775 | 0.406991 | 0.367041 | 0.172285 | 0.172285 | 0.172285 | 0.172285 | 0 | 0 | 0.143119 | 1,090 | 34 | 80 | 32.058824 | 0.857602 | 0 | 0 | 0.1 | 0 | 0 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b413c7342dfee87a46dce4f194f4b3478135f091 | 1,087 | py | Python | scrapers/scrape_ne.py | helo89/covid_19 | ef08fda879ca1c7fa488e464f8136b3868280080 | [
"CC-BY-4.0"
] | null | null | null | scrapers/scrape_ne.py | helo89/covid_19 | ef08fda879ca1c7fa488e464f8136b3868280080 | [
"CC-BY-4.0"
] | null | null | null | scrapers/scrape_ne.py | helo89/covid_19 | ef08fda879ca1c7fa488e464f8136b3868280080 | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import scrape_common as sc
xls_url = 'https://www.ne.ch/autorites/DFS/SCSP/medecin-cantonal/maladies-vaccinations/Documents/Covid-19-Statistiques/COVID19_PublicationInternet.xlsx'
xls = sc.xlsdownload(xls_url, silent=True)
rows = sc.parse_xls(xls)
for i, row in enumerate... | 40.259259 | 152 | 0.663293 | 152 | 1,087 | 4.703947 | 0.585526 | 0.055944 | 0.118881 | 0.100699 | 0.075524 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012304 | 0.177553 | 1,087 | 26 | 153 | 41.807692 | 0.787472 | 0.147194 | 0 | 0 | 0 | 0.052632 | 0.427332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.473684 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
b413d05a50a145942a1cf0a1ca8c72dbae7e27e8 | 6,247 | py | Python | tests/integration_tests/travis/farm_setup.py | threefoldtech/jumpscale_lib9 | 03c1451133d777e5af106fcc6f75c1138bb997f2 | [
"Apache-2.0"
] | null | null | null | tests/integration_tests/travis/farm_setup.py | threefoldtech/jumpscale_lib9 | 03c1451133d777e5af106fcc6f75c1138bb997f2 | [
"Apache-2.0"
] | 220 | 2018-07-29T08:37:17.000Z | 2019-08-05T15:01:27.000Z | tests/integration_tests/travis/farm_setup.py | threefoldtech/jumpscale_lib9 | 03c1451133d777e5af106fcc6f75c1138bb997f2 | [
"Apache-2.0"
] | 1 | 2018-08-20T09:16:08.000Z | 2018-08-20T09:16:08.000Z | # python script for 0-core testcases
import os
from argparse import ArgumentParser
from subprocess import Popen, PIPE
import random
import uuid
import time
import shlex
from jumpscale import j
from termcolor import colored
from multiprocessing import Process, Manager
SETUP_ENV_SCRIPT = "tests/integration_tests/travis/... | 44.621429 | 142 | 0.630703 | 821 | 6,247 | 4.619976 | 0.311815 | 0.021091 | 0.031374 | 0.009491 | 0.225943 | 0.17875 | 0.163986 | 0.114158 | 0.100712 | 0.083311 | 0 | 0.011874 | 0.245078 | 6,247 | 139 | 143 | 44.942446 | 0.792409 | 0.030735 | 0 | 0.069565 | 0 | 0.008696 | 0.21921 | 0.040833 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104348 | false | 0.121739 | 0.086957 | 0.017391 | 0.278261 | 0.034783 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b414f9b0fca0811134d4aeb98595a415b7f7c71d | 619 | py | Python | pyrosim/material.py | jacksonsdean/evolutionary-robotics- | af333afb03dcb3759da233aecd93975dde17df7d | [
"MIT"
] | null | null | null | pyrosim/material.py | jacksonsdean/evolutionary-robotics- | af333afb03dcb3759da233aecd93975dde17df7d | [
"MIT"
] | null | null | null | pyrosim/material.py | jacksonsdean/evolutionary-robotics- | af333afb03dcb3759da233aecd93975dde17df7d | [
"MIT"
] | null | null | null | from pyrosim.commonFunctions import Save_Whitespace
class MATERIAL:
def __init__(self, name="Cyan", color_rgba=[0, 1, 1, 1]):
self.depth = 3
self.string1 = f'<material name="{name}">'
self.string2 = f' <color rgba="{color_rgba[0]} {color_rgba[1]} {color_rgba[2]} {color_rgba[3]}"/>'
... | 22.925926 | 109 | 0.583199 | 83 | 619 | 4.192771 | 0.313253 | 0.155172 | 0.155172 | 0.198276 | 0.298851 | 0.298851 | 0.298851 | 0.298851 | 0.201149 | 0 | 0 | 0.032397 | 0.252019 | 619 | 26 | 110 | 23.807692 | 0.719222 | 0 | 0 | 0.214286 | 0 | 0.071429 | 0.206785 | 0.033926 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b415bc8c37a5069d7a9a2f6b90f16f0b6401e908 | 1,522 | py | Python | envs/robot_real_example.py | AutodeskRoboticsLab/RLRoboticAssembly | 7f72266f626de53762482310f92f6b5c817085b3 | [
"MIT"
] | 21 | 2019-09-27T09:57:52.000Z | 2022-02-16T22:18:41.000Z | envs/robot_real_example.py | AutodeskRoboticsLab/RLRoboticAssembly | 7f72266f626de53762482310f92f6b5c817085b3 | [
"MIT"
] | 2 | 2020-11-23T08:51:38.000Z | 2021-11-18T06:57:22.000Z | envs/robot_real_example.py | AutodeskRoboticsLab/RLRoboticAssembly | 7f72266f626de53762482310f92f6b5c817085b3 | [
"MIT"
] | 3 | 2019-10-14T03:58:45.000Z | 2021-02-04T20:09:38.000Z | import utilities as util
# modules for interfacing with robot control and FT sensor
# from robot_control_interface import ControlInterface
# from ft_sensor_interface import FTInterface
class RobotRealExample():
def __init__(self):
# Connect the interfaces
self.robot_interface = ControlInterface... | 27.178571 | 67 | 0.666886 | 194 | 1,522 | 4.953608 | 0.340206 | 0.012487 | 0.093652 | 0.052029 | 0.183143 | 0.068678 | 0.068678 | 0 | 0 | 0 | 0 | 0.015652 | 0.244415 | 1,522 | 55 | 68 | 27.672727 | 0.82 | 0.130749 | 0 | 0.121212 | 0 | 0 | 0.003037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.030303 | 0.030303 | 0.393939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b418eec02b030d962e9db6c2f4c59b08c100d112 | 2,587 | py | Python | errormarker.py | inkytonik/SublimeSBT | 783c17827fbac8562acb3ae324e9cf3fb0324e90 | [
"MIT"
] | 46 | 2015-01-02T01:29:08.000Z | 2021-11-16T13:32:37.000Z | errormarker.py | inkytonik/SublimeSBT | 783c17827fbac8562acb3ae324e9cf3fb0324e90 | [
"MIT"
] | 10 | 2015-01-28T13:23:11.000Z | 2021-07-17T20:16:29.000Z | errormarker.py | inkytonik/SublimeSBT | 783c17827fbac8562acb3ae324e9cf3fb0324e90 | [
"MIT"
] | 7 | 2015-03-17T14:06:13.000Z | 2019-01-15T13:17:46.000Z | try:
from .highlighter import CodeHighlighter
from .util import delayed, maybe
except(ValueError):
from highlighter import CodeHighlighter
from util import delayed, maybe
class ErrorMarker(object):
def __init__(self, window, error_report, settings):
self._window = window
self._err... | 32.3375 | 94 | 0.656359 | 327 | 2,587 | 4.868502 | 0.201835 | 0.094221 | 0.039573 | 0.048995 | 0.362437 | 0.362437 | 0.300251 | 0.179648 | 0.179648 | 0.051508 | 0 | 0.004084 | 0.242752 | 2,587 | 79 | 95 | 32.746835 | 0.808576 | 0 | 0 | 0.253968 | 0 | 0 | 0.002319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.063492 | 0.015873 | 0.365079 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b41955b06abc784e7a7bc785efbc29e14f834d28 | 7,934 | py | Python | apps/node/src/app/main/users/user_ops.py | next-fernandocerezal/PyGrid | b82793b0beecd26338c102573a9891c2e86707c8 | [
"Apache-2.0"
] | 1 | 2021-10-05T18:57:02.000Z | 2021-10-05T18:57:02.000Z | apps/node/src/app/main/users/user_ops.py | next-fernandocerezal/PyGrid | b82793b0beecd26338c102573a9891c2e86707c8 | [
"Apache-2.0"
] | null | null | null | apps/node/src/app/main/users/user_ops.py | next-fernandocerezal/PyGrid | b82793b0beecd26338c102573a9891c2e86707c8 | [
"Apache-2.0"
] | null | null | null | import logging
from datetime import datetime, timedelta
from json import dumps, loads
from json.decoder import JSONDecodeError
from secrets import token_hex
import jwt
from bcrypt import checkpw, gensalt, hashpw
from flask import Response
from flask import current_app as app
from flask import request
from syft.codes i... | 28.437276 | 83 | 0.683136 | 1,056 | 7,934 | 4.938447 | 0.125947 | 0.067498 | 0.048514 | 0.037392 | 0.576031 | 0.488399 | 0.474593 | 0.447555 | 0.432598 | 0.373921 | 0 | 0.00295 | 0.230905 | 7,934 | 278 | 84 | 28.539568 | 0.851688 | 0.006806 | 0 | 0.530806 | 0 | 0 | 0.01625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056872 | false | 0.075829 | 0.075829 | 0 | 0.189573 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b41a1a6950d1760ff51fcb6ab26d4b12f1b3ecc9 | 384 | py | Python | scripts/model/permute_graph.py | angadgill/ML-Graph-Isomorphism | a53ab466a92617448f76b511c1cf01130585cda0 | [
"MIT"
] | 15 | 2016-02-11T20:38:10.000Z | 2022-03-11T08:09:21.000Z | scripts/model/permute_graph.py | angadgill/ML-Graph-Isomorphism | a53ab466a92617448f76b511c1cf01130585cda0 | [
"MIT"
] | 1 | 2019-05-02T19:13:01.000Z | 2019-05-10T14:39:03.000Z | scripts/model/permute_graph.py | angadgill/ML-Graph-Isomorphism | a53ab466a92617448f76b511c1cf01130585cda0 | [
"MIT"
] | 4 | 2018-01-24T06:06:58.000Z | 2021-07-08T02:28:58.000Z | __author__ = 'angad'
import random
def permute_graph(graph, permutations=1):
# Perform pair-wise permutations on the graph to generate an isomorphic graph
for _ in xrange(permutations):
[node1, node2] = random.sample(graph.nodes(), 2)
temp = graph.edge[node1]
graph.edge[node1] = graph.... | 25.6 | 81 | 0.669271 | 49 | 384 | 5.122449 | 0.591837 | 0.143426 | 0.111554 | 0.151394 | 0.14741 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.229167 | 384 | 14 | 82 | 27.428571 | 0.820946 | 0.195313 | 0 | 0 | 1 | 0 | 0.016393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b41d32950d81014424499b4ff9f29a083bdbd7b5 | 2,057 | py | Python | src/scripts/EnergiesWavepacket.py | WaveBlocks/WaveBlocks | 2af3730dcf27e54006ec602e696b4d4df25459d8 | [
"BSD-3-Clause"
] | null | null | null | src/scripts/EnergiesWavepacket.py | WaveBlocks/WaveBlocks | 2af3730dcf27e54006ec602e696b4d4df25459d8 | [
"BSD-3-Clause"
] | null | null | null | src/scripts/EnergiesWavepacket.py | WaveBlocks/WaveBlocks | 2af3730dcf27e54006ec602e696b4d4df25459d8 | [
"BSD-3-Clause"
] | null | null | null | """The WaveBlocks Project
Compute the kinetic and potential energies of the homogeneous wavepackets.
@author: R. Bourquin
@copyright: Copyright (C) 2010, 2011 R. Bourquin
@license: Modified BSD License
"""
from WaveBlocks import PotentialFactory
from WaveBlocks import HagedornWavepacket
def compute_energy(iom, blo... | 34.864407 | 106 | 0.724842 | 259 | 2,057 | 5.671815 | 0.471042 | 0.047651 | 0.034717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007827 | 0.192513 | 2,057 | 58 | 107 | 35.465517 | 0.87658 | 0.377735 | 0 | 0 | 0 | 0 | 0.04257 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.136364 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b41da69da871263d970febc9799cc8504fce288b | 475 | py | Python | working version coz cached/a2_weightsTable.py | cyrildarevo/genPassportScore | ff4a761f9b46606ac588ac92e089548a9e834557 | [
"MIT"
] | 4 | 2018-09-21T19:32:24.000Z | 2018-10-04T14:30:47.000Z | working version coz cached/a2_weightsTable.py | cyrildarevo/genPassportScore | ff4a761f9b46606ac588ac92e089548a9e834557 | [
"MIT"
] | 3 | 2020-02-11T08:00:32.000Z | 2020-02-11T08:00:32.000Z | working version coz cached/a2_weightsTable.py | cyrildarevo/genPassportScore | ff4a761f9b46606ac588ac92e089548a9e834557 | [
"MIT"
] | null | null | null | refTable = [{'desc': 'Freedom of Movement', 'templates': ['free'], 'weight': 1.0},
{'desc': 'Visa not Required', 'templates': ['yes', 'yes '], 'weight': 0.9},
{'desc': 'Visa on Arrival',
'templates': ['Optional', 'yes-no'],
'weight': 0.7},
{'desc': 'Electronic Visa', 'templates': ['yes2'], 'weight': 0.5},
{'des... | 59.375 | 82 | 0.56 | 61 | 475 | 4.360656 | 0.491803 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03163 | 0.134737 | 475 | 8 | 83 | 59.375 | 0.615572 | 0 | 0 | 0 | 0 | 0 | 0.548319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4238b5520e0b3a962e9c30ba742d46db8781571 | 1,065 | py | Python | corehq/ex-submodules/couchexport/management/commands/migrate_export_types.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | corehq/ex-submodules/couchexport/management/commands/migrate_export_types.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | 1 | 2022-03-12T01:03:25.000Z | 2022-03-12T01:03:25.000Z | corehq/ex-submodules/couchexport/management/commands/migrate_export_types.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | from django.core.management.base import LabelCommand, CommandError
from couchexport.models import SavedExportSchema
from optparse import make_option
class Command(LabelCommand):
help = "Migrates over custom exports by adding a default type property if not present."
args = "default_type"
label = "default ty... | 39.444444 | 105 | 0.63662 | 122 | 1,065 | 5.45082 | 0.598361 | 0.099248 | 0.045113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002564 | 0.267606 | 1,065 | 26 | 106 | 40.961538 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0.271362 | 0.030047 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b428ff292067cd5b5202f904eb8f6a3cf2a1746b | 946 | py | Python | run_download_weights.py | cvenoburi/IncidentsDataset | 5062dfeba98e8e0bf0ef42c05d1201d8366bc93f | [
"MIT"
] | 60 | 2020-08-24T03:43:27.000Z | 2022-03-31T02:32:34.000Z | run_download_weights.py | cvenoburi/IncidentsDataset | 5062dfeba98e8e0bf0ef42c05d1201d8366bc93f | [
"MIT"
] | 3 | 2020-10-23T08:45:58.000Z | 2021-09-22T09:02:08.000Z | run_download_weights.py | cvenoburi/IncidentsDataset | 5062dfeba98e8e0bf0ef42c05d1201d8366bc93f | [
"MIT"
] | 18 | 2020-08-24T06:52:43.000Z | 2022-03-19T17:16:17.000Z | import os
from tqdm import tqdm
from google_drive_downloader import GoogleDriveDownloader as gdd
file_id_to_filename = {
#
"1HCkYHzXV-nGjRy3iehrr6y90COgG67Jh": "resnet18_places365.pth.tar",
"1NZHVWK9T-n6mjpAIjrIRtILRV2KcJAlP": "resnet50_places365.pth.tar",
#
"1rkCIdcA2YDGMxEoVDk79cp27HakwQLGd": "e... | 41.130435 | 80 | 0.77907 | 106 | 946 | 6.566038 | 0.471698 | 0.068966 | 0.073276 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064982 | 0.121564 | 946 | 23 | 81 | 41.130435 | 0.772563 | 0 | 0 | 0 | 0 | 0 | 0.560976 | 0.541888 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b432482cf0f5d70d2510958d33aa57a97efb3dfa | 472 | py | Python | etc/setup.py | c4s4/sqlplus_commando | b922cbd6d9807f7d8e08dfd2fdd781ee6c89ebf0 | [
"Apache-2.0"
] | 3 | 2017-05-31T07:21:50.000Z | 2019-11-30T14:24:22.000Z | etc/setup.py | c4s4/sqlplus_commando | b922cbd6d9807f7d8e08dfd2fdd781ee6c89ebf0 | [
"Apache-2.0"
] | 3 | 2017-11-13T07:01:29.000Z | 2021-07-09T08:52:10.000Z | etc/setup.py | c4s4/sqlplus_commando | b922cbd6d9807f7d8e08dfd2fdd781ee6c89ebf0 | [
"Apache-2.0"
] | 1 | 2020-03-12T14:09:18.000Z | 2020-03-12T14:09:18.000Z | #!/usr/bin/env python
# encoding: UTF-8
from distutils.core import setup
setup(
name = 'sqlplus_commando',
version = 'VERSION',
author = 'Michel Casabianca',
author_email = 'casa@sweetohm.net',
packages = ['sqlplus_commando'],
url = 'http://pypi.python.org/pypi/sqlplus_commando/',
license ... | 29.5 | 73 | 0.688559 | 56 | 472 | 5.696429 | 0.75 | 0.188088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002564 | 0.173729 | 472 | 16 | 74 | 29.5 | 0.815385 | 0.076271 | 0 | 0 | 0 | 0 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b44988631a96515e9cb82c6f4f85b38ef4170c9e | 12,383 | py | Python | nicos_sinq/hrpt/nexus/nexus_templates.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | nicos_sinq/hrpt/nexus/nexus_templates.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | nicos_sinq/hrpt/nexus/nexus_templates.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | null | null | null | from nicos.nexus.elements import ConstDataset, DetectorDataset, \
DeviceAttribute, DeviceDataset, ImageDataset, NexusSampleEnv, \
NXAttribute, NXLink, NXScanLink, NXTime
from nicos.nexus.nexussink import NexusTemplateProvider
from nicos_sinq.nexus.specialelements import DevStat, OptionalDeviceDataset, \
Tw... | 62.540404 | 79 | 0.307841 | 545 | 12,383 | 6.862385 | 0.348624 | 0.048128 | 0.055615 | 0.058824 | 0.17246 | 0.136096 | 0.082086 | 0.050267 | 0.027273 | 0.027273 | 0 | 0.017842 | 0.606234 | 12,383 | 197 | 80 | 62.857868 | 0.74918 | 0.004442 | 0 | 0.1875 | 0 | 0 | 0.190329 | 0.062551 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005208 | false | 0 | 0.015625 | 0.005208 | 0.03125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b44ae23bb93bd666a0a724387461332df4020f66 | 1,003 | py | Python | tests/testapp/admin.py | ariannedee/django-admin-ordering | 408e0c2e6cbff128503ae5edc8e8ba893ce6c368 | [
"BSD-3-Clause"
] | null | null | null | tests/testapp/admin.py | ariannedee/django-admin-ordering | 408e0c2e6cbff128503ae5edc8e8ba893ce6c368 | [
"BSD-3-Clause"
] | null | null | null | tests/testapp/admin.py | ariannedee/django-admin-ordering | 408e0c2e6cbff128503ae5edc8e8ba893ce6c368 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from admin_ordering.admin import OrderableAdmin
from testapp import models
class Child1Inline(OrderableAdmin, admin.TabularInline):
model = models.Child1
ordering_field = "number"
admin.site.register(models.Parent1, inlines=[Child1Inline])
class Child2Inline(OrderableAdmi... | 23.325581 | 78 | 0.769691 | 102 | 1,003 | 7.460784 | 0.343137 | 0.124836 | 0.1682 | 0.194481 | 0.432326 | 0.319317 | 0.319317 | 0.178712 | 0.178712 | 0 | 0 | 0.02069 | 0.132602 | 1,003 | 42 | 79 | 23.880952 | 0.854023 | 0 | 0 | 0.26087 | 0 | 0 | 0.061815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.826087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b44c19d22443d1a1fc0d4c0816fe1181e6c77d1f | 1,022 | py | Python | src/insideblog/migrations/0001_initial.py | abhishek18620/django-forum | 7d4354645cdd5b2af5dfe3ee4a07fb6674f94a84 | [
"MIT"
] | null | null | null | src/insideblog/migrations/0001_initial.py | abhishek18620/django-forum | 7d4354645cdd5b2af5dfe3ee4a07fb6674f94a84 | [
"MIT"
] | null | null | null | src/insideblog/migrations/0001_initial.py | abhishek18620/django-forum | 7d4354645cdd5b2af5dfe3ee4a07fb6674f94a84 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-22 07:34
from __future__ import unicode_literals
from django.db import migrations, models
import django_mysql.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateMode... | 34.066667 | 116 | 0.617417 | 113 | 1,022 | 5.40708 | 0.584071 | 0.07365 | 0.08347 | 0.11784 | 0.072013 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041721 | 0.249511 | 1,022 | 29 | 117 | 35.241379 | 0.754889 | 0.066536 | 0 | 0 | 1 | 0 | 0.06204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b453f77370572835c88ce8d0138e1e1646fd360e | 5,449 | py | Python | annotation/white_effect/test/effect_gi.py | windfall-shogi/feature-annotation | 83ff7c3fa31e542221cf45186b2ea3ef2a10310f | [
"MIT"
] | null | null | null | annotation/white_effect/test/effect_gi.py | windfall-shogi/feature-annotation | 83ff7c3fa31e542221cf45186b2ea3ef2a10310f | [
"MIT"
] | null | null | null | annotation/white_effect/test/effect_gi.py | windfall-shogi/feature-annotation | 83ff7c3fa31e542221cf45186b2ea3ef2a10310f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from itertools import product
from pathlib import Path
import numpy as np
import tensorflow as tf
from dotenv import load_dotenv
from annotation.direction import PinDirection
from annotation.piece import Piece
from ..count import WhiteEffectCountLayer
from ..lo... | 40.066176 | 77 | 0.508901 | 639 | 5,449 | 4.181534 | 0.179969 | 0.067365 | 0.052395 | 0.011976 | 0.668413 | 0.665419 | 0.665419 | 0.664296 | 0.664296 | 0.645584 | 0 | 0.025849 | 0.389429 | 5,449 | 135 | 78 | 40.362963 | 0.777277 | 0.017618 | 0 | 0.577982 | 0 | 0 | 0.01066 | 0 | 0 | 0 | 0 | 0 | 0.082569 | 1 | 0.027523 | false | 0 | 0.110092 | 0 | 0.146789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b459a7e0cc1c08ef83007abc07b8879a1c201ab0 | 4,221 | py | Python | project/apps/ideas/migrations/0002_initial_seeds.py | skoczen/skoczen | 07d22029e7c9e21bc3322e26072471d01c059cc4 | [
"BSD-2-Clause"
] | null | null | null | project/apps/ideas/migrations/0002_initial_seeds.py | skoczen/skoczen | 07d22029e7c9e21bc3322e26072471d01c059cc4 | [
"BSD-2-Clause"
] | null | null | null | project/apps/ideas/migrations/0002_initial_seeds.py | skoczen/skoczen | 07d22029e7c9e21bc3322e26072471d01c059cc4 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
orm.Idea.objects.create(
title="Idea Incubator",
idea="Make ... | 42.636364 | 246 | 0.639659 | 559 | 4,221 | 4.806798 | 0.513417 | 0.023818 | 0.036472 | 0.052103 | 0.138817 | 0.086342 | 0.058802 | 0 | 0 | 0 | 0 | 0.005904 | 0.237621 | 4,221 | 98 | 247 | 43.071429 | 0.829086 | 0.013504 | 0 | 0.172414 | 0 | 0.091954 | 0.683421 | 0.069557 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022989 | false | 0 | 0.045977 | 0 | 0.114943 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b462f30d2fdf2b9123a19f3deacab3dfae37f04d | 1,285 | py | Python | test/mavsdk_tests/logger_helper.py | SaxionMechatronics/Firmware | 7393d5d7610dc8d2cb64d90a5359b6c561fb642a | [
"BSD-3-Clause"
] | 4,224 | 2015-01-02T11:51:02.000Z | 2020-10-27T23:42:28.000Z | test/mavsdk_tests/logger_helper.py | SaxionMechatronics/Firmware | 7393d5d7610dc8d2cb64d90a5359b6c561fb642a | [
"BSD-3-Clause"
] | 11,736 | 2015-01-01T11:59:16.000Z | 2020-10-28T17:13:38.000Z | test/mavsdk_tests/logger_helper.py | SaxionMechatronics/Firmware | 7393d5d7610dc8d2cb64d90a5359b6c561fb642a | [
"BSD-3-Clause"
] | 11,850 | 2015-01-02T14:54:47.000Z | 2020-10-28T16:42:47.000Z | #!/usr/bin/env python3
import re
import sys
import os
from enum import Enum
from functools import lru_cache
class color(Enum):
PURPLE = '\033[95m'
CYAN = '\033[96m'
DARKCYAN = '\033[36m'
BLUE = '\033[94m'
GREEN = '\033[92m'
YELLOW = '\033[93m'
RED = '\033[91m'
GRAY = '\033[90m'
BO... | 22.946429 | 71 | 0.610895 | 172 | 1,285 | 4.47093 | 0.52907 | 0.06762 | 0.049415 | 0.06502 | 0.06762 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093686 | 0.235798 | 1,285 | 55 | 72 | 23.363636 | 0.689409 | 0.2 | 0 | 0.117647 | 0 | 0 | 0.147295 | 0.03507 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.147059 | 0 | 0.735294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b4645867a5871329eda2654fe012f3930054bce7 | 335 | py | Python | jobsapp/migrations/0018_remove_freelancing_job_type.py | Sukriti-sood/Recruit-pursuit | 00c75d9101b94d8066c2648af3dd7a646d869df7 | [
"MIT"
] | null | null | null | jobsapp/migrations/0018_remove_freelancing_job_type.py | Sukriti-sood/Recruit-pursuit | 00c75d9101b94d8066c2648af3dd7a646d869df7 | [
"MIT"
] | 3 | 2021-10-07T14:21:52.000Z | 2021-10-19T16:44:09.000Z | jobsapp/migrations/0018_remove_freelancing_job_type.py | Sukriti-sood/Recruit-pursuit | 00c75d9101b94d8066c2648af3dd7a646d869df7 | [
"MIT"
] | 1 | 2021-10-12T08:49:30.000Z | 2021-10-12T08:49:30.000Z | # Generated by Django 3.1.2 on 2021-06-23 05:46
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('jobsapp', '0017_auto_20210622_2334'),
]
operations = [
migrations.RemoveField(
model_name='freelancing_job',
name='type',
... | 18.611111 | 47 | 0.6 | 36 | 335 | 5.444444 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130252 | 0.289552 | 335 | 17 | 48 | 19.705882 | 0.693277 | 0.134328 | 0 | 0 | 1 | 0 | 0.170139 | 0.079861 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b467ebb0a0ad9719f5290ca4decd076436dbf430 | 4,939 | py | Python | faulttree/faulttree.py | bornobob/ModelChecking | f49d7077e32d3a699d199289349c88ff18206382 | [
"MIT"
] | 2 | 2020-02-19T21:07:10.000Z | 2020-02-19T21:39:56.000Z | faulttree/faulttree.py | bornobob/ModelChecking | f49d7077e32d3a699d199289349c88ff18206382 | [
"MIT"
] | 9 | 2020-02-26T13:16:21.000Z | 2020-04-01T09:55:40.000Z | faulttree/faulttree.py | bornobob/ModelChecking | f49d7077e32d3a699d199289349c88ff18206382 | [
"MIT"
] | null | null | null | import collections
from faulttree.gates import BasicEvent
class FaultTree:
"""
The FaultTree class defines a complete FaultTree.
It has a Gate as its system, a number of basic events and a name.
"""
def __init__(self, name, system):
"""
The constructor for a FaultTree.
:pa... | 31.259494 | 74 | 0.589796 | 643 | 4,939 | 4.407465 | 0.211509 | 0.073747 | 0.047636 | 0.018349 | 0.233945 | 0.206422 | 0.164432 | 0.164432 | 0.142555 | 0.089626 | 0 | 0.002121 | 0.331646 | 4,939 | 157 | 75 | 31.458599 | 0.856407 | 0.378822 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.261538 | false | 0 | 0.030769 | 0.015385 | 0.523077 | 0.030769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b470f9f3340855ffc3df7db56956e5b5130f0960 | 1,647 | py | Python | tests/test_paths.py | jsodini/PyGitUtils | 3299c3109e98f00e2db3752f2163ed38e6efc392 | [
"Apache-2.0"
] | null | null | null | tests/test_paths.py | jsodini/PyGitUtils | 3299c3109e98f00e2db3752f2163ed38e6efc392 | [
"Apache-2.0"
] | null | null | null | tests/test_paths.py | jsodini/PyGitUtils | 3299c3109e98f00e2db3752f2163ed38e6efc392 | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 James Sodini
#
# 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,... | 37.431818 | 75 | 0.744991 | 248 | 1,647 | 4.677419 | 0.407258 | 0.051724 | 0.077586 | 0.067241 | 0.448276 | 0.444828 | 0.32069 | 0.260345 | 0.260345 | 0.260345 | 0 | 0.005739 | 0.153613 | 1,647 | 43 | 76 | 38.302326 | 0.826399 | 0.333333 | 0 | 0.2 | 0 | 0 | 0.078413 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.15 | 0 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b472b8b196bbf21b42939050d1cb4a5377574bce | 6,883 | py | Python | yauber_algo/_algo/tests/test_featurewiz_categorize.py | LongNguyen1012/yauber-algo | 40f7d805408a788e7f363ec02d3315ff379cc069 | [
"MIT"
] | 1 | 2019-02-09T15:34:34.000Z | 2019-02-09T15:34:34.000Z | yauber_algo/_algo/tests/test_featurewiz_categorize.py | LongNguyen1012/yauber-algo | 40f7d805408a788e7f363ec02d3315ff379cc069 | [
"MIT"
] | null | null | null | yauber_algo/_algo/tests/test_featurewiz_categorize.py | LongNguyen1012/yauber-algo | 40f7d805408a788e7f363ec02d3315ff379cc069 | [
"MIT"
] | 2 | 2018-10-10T16:01:59.000Z | 2018-11-27T16:50:56.000Z | import unittest
from yauber_algo.errors import *
class CategorizeTestCase(unittest.TestCase):
def test_categorize(self):
import yauber_algo.sanitychecks as sc
from numpy import array, nan, inf
import os
import sys
import pandas as pd
import numpy as np
from... | 31.573394 | 83 | 0.303501 | 725 | 6,883 | 2.812414 | 0.111724 | 0.086317 | 0.100049 | 0.102011 | 0.657675 | 0.64051 | 0.64051 | 0.614517 | 0.587543 | 0.587543 | 0 | 0.144095 | 0.54729 | 6,883 | 218 | 84 | 31.573395 | 0.51027 | 0.006828 | 0 | 0.52381 | 0 | 0 | 0.022987 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005291 | false | 0 | 0.047619 | 0 | 0.058201 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b474d0e3a9232c20ae05cba36fc43827ae3a3843 | 284 | py | Python | src/cocoa/toga_cocoa/widgets/internal/data.py | freespace/toga | 2ae96ddede34b5164b1be3d80a18aa87336f28f0 | [
"BSD-3-Clause"
] | 1,261 | 2019-03-31T16:28:47.000Z | 2022-03-31T09:01:23.000Z | src/cocoa/toga_cocoa/widgets/internal/data.py | freespace/toga | 2ae96ddede34b5164b1be3d80a18aa87336f28f0 | [
"BSD-3-Clause"
] | 597 | 2019-04-02T20:02:42.000Z | 2022-03-30T10:28:47.000Z | src/cocoa/toga_cocoa/widgets/internal/data.py | freakboy3742/toga | 3ae8b90fa397384d3df0378ca32449333494f282 | [
"BSD-3-Clause"
] | 318 | 2019-03-31T18:32:00.000Z | 2022-03-30T18:07:13.000Z | from toga_cocoa.libs import NSObject, objc_method
class TogaData(NSObject):
@objc_method
def copyWithZone_(self):
# TogaData is used as an immutable reference to a row
# so the same object can be returned as a copy.
self.retain()
return self
| 25.818182 | 61 | 0.676056 | 40 | 284 | 4.7 | 0.8 | 0.12766 | 0.191489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271127 | 284 | 10 | 62 | 28.4 | 0.908213 | 0.341549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b4767cfa89c130bd8ea99f9b279f198c33af4fbb | 5,330 | py | Python | plotutils/axpositioning/axpositioning.py | johndamen/plotutils | 60bc043314c823bbcb27740b22393f0fd2b58476 | [
"MIT"
] | null | null | null | plotutils/axpositioning/axpositioning.py | johndamen/plotutils | 60bc043314c823bbcb27740b22393f0fd2b58476 | [
"MIT"
] | null | null | null | plotutils/axpositioning/axpositioning.py | johndamen/plotutils | 60bc043314c823bbcb27740b22393f0fd2b58476 | [
"MIT"
] | null | null | null | from matplotlib.axes import Axes
from matplotlib.transforms import Bbox
class PositioningAxes(Axes):
"""
Class for editing axes position
"""
@classmethod
def from_axes(cls, fig, a, **kwargs):
return cls(fig, a.get_position().bounds, **kwargs)
def __init__(self, fig, bounds, lock_asp... | 30.112994 | 121 | 0.568668 | 740 | 5,330 | 3.998649 | 0.189189 | 0.047313 | 0.03954 | 0.042582 | 0.31024 | 0.259547 | 0.200068 | 0.174383 | 0.1122 | 0.1122 | 0 | 0.011169 | 0.311257 | 5,330 | 176 | 122 | 30.284091 | 0.794879 | 0.258724 | 0 | 0.194175 | 0 | 0 | 0.00431 | 0 | 0 | 0 | 0 | 0.005682 | 0 | 1 | 0.252427 | false | 0 | 0.019417 | 0.029126 | 0.427184 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b47c345bcee276759e203733ccb43998de4e8072 | 1,622 | py | Python | blueapps/core/exceptions/base.py | jiangming1/qq2100803 | 8621c469a5d293d97ea1c3daa949220c4902ee74 | [
"Apache-2.0"
] | null | null | null | blueapps/core/exceptions/base.py | jiangming1/qq2100803 | 8621c469a5d293d97ea1c3daa949220c4902ee74 | [
"Apache-2.0"
] | 3 | 2020-06-05T20:56:09.000Z | 2021-06-10T21:29:05.000Z | blueapps/core/exceptions/base.py | jiangming1/qq2100803 | 8621c469a5d293d97ea1c3daa949220c4902ee74 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
class BlueException(Exception):
MESSAGE = "app异常"
ERROR_CODE = 500
def __init__(self, message=None, error_code=None, *args):
super(BlueException, self).__init__(*args)
self.error_code = self.ERROR_CODE if error_code is None ... | 17.630435 | 79 | 0.717633 | 158 | 1,622 | 7.164557 | 0.398734 | 0.15106 | 0.022968 | 0.033569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053364 | 0.202836 | 1,622 | 91 | 80 | 17.824176 | 0.822119 | 0.012947 | 0 | 0.042553 | 0 | 0 | 0.062539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.021277 | 0 | 0.93617 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b47ed0f7873ee2b2fcc8958ddbbfd9861df2aa33 | 4,899 | py | Python | celltk/utils/wavelet_bgr.py | CovertLab/CellTK | 6834cda34398b48fe344335301ef7c6461d1813d | [
"MIT"
] | 4 | 2018-05-21T19:48:05.000Z | 2021-12-22T05:30:49.000Z | celltk/utils/wavelet_bgr.py | CovertLab/CellTK | 6834cda34398b48fe344335301ef7c6461d1813d | [
"MIT"
] | 3 | 2019-04-02T19:07:34.000Z | 2019-04-23T22:50:31.000Z | celltk/utils/wavelet_bgr.py | braysia/CellTK | 2dbe174a0e3d7d82fa58e4f12a0eb2ac6fb89751 | [
"MIT"
] | 13 | 2017-05-12T12:47:27.000Z | 2021-11-06T05:37:24.000Z | #!/usr/bin/python
#
# Wavelet based background removal as described in this publication:
# Galloway et al., An Iterative Algorithm for Background Removal in Spectroscopy by Wavelet Transforms, Applied Spectroscopy, 2009
#
# Hazen 01/15
#
import numpy
import pywt
class WaveletBGR(object):
def __init__(self, wavel... | 34.744681 | 130 | 0.59951 | 567 | 4,899 | 5.07231 | 0.27866 | 0.087622 | 0.020862 | 0.043115 | 0.32267 | 0.259388 | 0.259388 | 0.235744 | 0.235744 | 0.193324 | 0 | 0.013934 | 0.311492 | 4,899 | 140 | 131 | 34.992857 | 0.838719 | 0.09206 | 0 | 0.071429 | 0 | 0.014286 | 0.047974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81ed8824f7bbfe941b28c070cc038b20a7d408c3 | 625 | py | Python | scripts/preprocess_wikipedia_file.py | HugooB/top-2000-analysis | 8898f18e94a0f038e3f1a12be322fc681f4a275b | [
"MIT"
] | 3 | 2017-12-31T18:20:57.000Z | 2018-01-11T15:40:53.000Z | scripts/preprocess_wikipedia_file.py | HugooB/top-2000-analysis | 8898f18e94a0f038e3f1a12be322fc681f4a275b | [
"MIT"
] | 7 | 2018-01-14T07:57:49.000Z | 2018-03-13T12:07:44.000Z | scripts/preprocess_wikipedia_file.py | HugooB/top-2000-analysis | 8898f18e94a0f038e3f1a12be322fc681f4a275b | [
"MIT"
] | null | null | null | import pandas as pd
def read_xls(path):
return pd.read_excel(path, header=0)
def load_data():
# Read in file
data = read_xls("data/top2000_1999-2017_ready.xlsx")
# Replace * with 0
data.replace(to_replace='*', value=0, inplace=True)
# Capitalize each word
data['Artiest'] = data['Artiest'... | 23.148148 | 73 | 0.6592 | 90 | 625 | 4.355556 | 0.5 | 0.084184 | 0.114796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093439 | 0.1952 | 625 | 27 | 74 | 23.148148 | 0.685885 | 0.08 | 0 | 0 | 0 | 0 | 0.237762 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81f071bd3f407150b807a10c0f5f7b7557b427ff | 245 | py | Python | ninjadog/__init__.py | knowsuchagency/ninjadog | 54f0c98da1006d97b6e39d39d0e4e056288f52d0 | [
"MIT"
] | 26 | 2017-06-23T02:18:54.000Z | 2022-02-19T08:45:11.000Z | ninjadog/__init__.py | knowsuchagency/ninjadog | 54f0c98da1006d97b6e39d39d0e4e056288f52d0 | [
"MIT"
] | 21 | 2017-06-22T07:30:20.000Z | 2022-03-26T02:23:24.000Z | ninjadog/__init__.py | knowsuchagency/ninjadog | 54f0c98da1006d97b6e39d39d0e4e056288f52d0 | [
"MIT"
] | 2 | 2018-06-20T01:16:27.000Z | 2020-07-14T19:55:27.000Z | # -*- coding: utf-8 -*-
"""Top-level package for ninjadog."""
__author__ = """Stephan Fitzpatrick"""
__email__ = 'knowsuchagency@gmail.com'
__version__ = '0.5.2'
from ninjadog.ext.pyramid import includeme
from ninjadog.ninjadog import render
| 22.272727 | 42 | 0.726531 | 30 | 245 | 5.533333 | 0.833333 | 0.144578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018605 | 0.122449 | 245 | 10 | 43 | 24.5 | 0.753488 | 0.220408 | 0 | 0 | 0 | 0 | 0.259459 | 0.12973 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
81f0a53a97cfeb4b10bce9c269973d22f7af78b7 | 89,164 | py | Python | archive/new_plots/plot_figure_5.py | garudlab/mother_infant | 98a27c83bf5ece9497d5a030c6c9396a8c514781 | [
"BSD-2-Clause"
] | null | null | null | archive/new_plots/plot_figure_5.py | garudlab/mother_infant | 98a27c83bf5ece9497d5a030c6c9396a8c514781 | [
"BSD-2-Clause"
] | null | null | null | archive/new_plots/plot_figure_5.py | garudlab/mother_infant | 98a27c83bf5ece9497d5a030c6c9396a8c514781 | [
"BSD-2-Clause"
] | null | null | null | import matplotlib
matplotlib.use('Agg')
from utils import sample_utils, config, parse_midas_data, diversity_utils, gene_diversity_utils, temporal_changes_utils, substitution_rates_utils, stats_utils, sfs_utils, snps_utils
import os.path
import pylab
import sys
import numpy
import matplotlib.colors as colors
impor... | 42.237802 | 319 | 0.737248 | 12,702 | 89,164 | 4.836719 | 0.059597 | 0.013559 | 0.027736 | 0.012013 | 0.69596 | 0.617667 | 0.523634 | 0.438847 | 0.351162 | 0.303128 | 0 | 0.026086 | 0.128079 | 89,164 | 2,110 | 320 | 42.25782 | 0.764149 | 0.105827 | 0 | 0.164794 | 0 | 0 | 0.067193 | 0.01606 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005618 | 0.023408 | null | null | 0.008427 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81fa8759e14c2fc3d05e04467c91b2ce895d036b | 700 | py | Python | tests/alpha/motor_i2c_test.py | abbenson/ballbot | 44ea6abba026ec47c2dcd79450186d9ea43a9e7d | [
"BSD-2-Clause"
] | null | null | null | tests/alpha/motor_i2c_test.py | abbenson/ballbot | 44ea6abba026ec47c2dcd79450186d9ea43a9e7d | [
"BSD-2-Clause"
] | null | null | null | tests/alpha/motor_i2c_test.py | abbenson/ballbot | 44ea6abba026ec47c2dcd79450186d9ea43a9e7d | [
"BSD-2-Clause"
] | null | null | null | import pyDMCC
import time
from Adafruit_I2C import Adafruit_I2C
# Motor Direction Corrections
cape0mtr1 = 1
cape0mtr2 = -1
cape1mtr1 = -1
cape1mtr2 = 1
# Initialize DMCCs
dmccs = pyDMCC.autodetect()
pitch_motor_left = dmccs[0].motors[2]
pitch_motor_right = dmccs[1].motors[2]
roll_motor_left = dmccs[0].motors[1]
roll_... | 22.580645 | 42 | 0.791429 | 102 | 700 | 5.176471 | 0.372549 | 0.094697 | 0.151515 | 0.056818 | 0.401515 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067851 | 0.115714 | 700 | 30 | 43 | 23.333333 | 0.785137 | 0.098571 | 0 | 0 | 0 | 0 | 0.022329 | 0 | 0 | 0 | 0.012759 | 0 | 0 | 0 | null | null | 0 | 0.136364 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
81fb520b67cf567855bc424b87cdaaf3f499d81e | 6,684 | py | Python | SensorGateway/home/tinaja/downloads/pyserial-2.5/examples/rfc2217_server.py | TinajaLabs/makerfaire2015 | a9dc87912ea065d1181d7c21c6798bb30f139eb2 | [
"MIT"
] | 2 | 2015-02-24T18:04:57.000Z | 2016-12-12T01:07:07.000Z | SensorGateway/home/tinaja/downloads/pyserial-2.5/examples/rfc2217_server.py | TinajaLabs/makerfaire2015 | a9dc87912ea065d1181d7c21c6798bb30f139eb2 | [
"MIT"
] | null | null | null | SensorGateway/home/tinaja/downloads/pyserial-2.5/examples/rfc2217_server.py | TinajaLabs/makerfaire2015 | a9dc87912ea065d1181d7c21c6798bb30f139eb2 | [
"MIT"
] | 2 | 2016-05-21T14:01:44.000Z | 2022-01-27T20:04:09.000Z | #!/usr/bin/env python
# (C) 2009 Chris Liechti <cliechti@gmx.net>
# redirect data from a TCP/IP connection to a serial port and vice versa
# using RFC 2217
import sys
import os
import threading
import time
import socket
import serial
import serial.rfc2217
import logging
class Redirector:
def __init__(self, seri... | 32.604878 | 87 | 0.570467 | 759 | 6,684 | 4.952569 | 0.330698 | 0.026603 | 0.017292 | 0.015962 | 0.163873 | 0.104815 | 0.076616 | 0.05959 | 0.05959 | 0.03618 | 0 | 0.016863 | 0.325703 | 6,684 | 204 | 88 | 32.764706 | 0.817173 | 0.087672 | 0 | 0.21118 | 0 | 0 | 0.143745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055901 | null | null | 0.006211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c309ec55cb90b66e55e46145922032a328337c47 | 805 | py | Python | setup.py | swharden/PyOriginTools | 536fb8e11234ffdc27e26b1800e0358179ca7d26 | [
"MIT"
] | 11 | 2018-04-22T20:34:53.000Z | 2022-03-12T12:02:47.000Z | setup.py | swharden/PyOriginTools | 536fb8e11234ffdc27e26b1800e0358179ca7d26 | [
"MIT"
] | 3 | 2018-01-11T14:54:46.000Z | 2018-04-26T13:45:18.000Z | setup.py | swharden/PyOriginTools | 536fb8e11234ffdc27e26b1800e0358179ca7d26 | [
"MIT"
] | 3 | 2019-05-14T13:36:14.000Z | 2020-09-02T16:13:57.000Z | from setuptools import setup
# pull version from this file in a way that doesn't require importing
exec(open("PyOriginTools/version.py").read())
setup(
name='PyOriginTools',
version=__version__,
author='Scott W Harden',
author_email='SWHarden@gmail.com',
packages=[
'PyOriginTools',... | 28.75 | 78 | 0.638509 | 87 | 805 | 5.827586 | 0.758621 | 0.078895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.226087 | 805 | 28 | 79 | 28.75 | 0.802568 | 0.08323 | 0 | 0.08 | 0 | 0 | 0.457259 | 0.032564 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c30a3223d5946609c74c9815b25bf6d5473658cd | 5,787 | py | Python | components/studio/studio/settings.py | ScilifelabDataCentre/stackn | 00a65a16ff271f04548b3ff475c72dacbfd916df | [
"Apache-2.0"
] | null | null | null | components/studio/studio/settings.py | ScilifelabDataCentre/stackn | 00a65a16ff271f04548b3ff475c72dacbfd916df | [
"Apache-2.0"
] | null | null | null | components/studio/studio/settings.py | ScilifelabDataCentre/stackn | 00a65a16ff271f04548b3ff475c72dacbfd916df | [
"Apache-2.0"
] | null | null | null | """
Django settings for studio project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
AU... | 25.606195 | 91 | 0.69155 | 645 | 5,787 | 6.052713 | 0.403101 | 0.059939 | 0.034836 | 0.044826 | 0.177254 | 0.164191 | 0.08376 | 0.068391 | 0.030738 | 0 | 0 | 0.013325 | 0.170036 | 5,787 | 225 | 92 | 25.72 | 0.7995 | 0.228961 | 0 | 0.055172 | 1 | 0 | 0.478536 | 0.369634 | 0 | 0 | 0 | 0.004444 | 0 | 1 | 0 | false | 0.048276 | 0.034483 | 0 | 0.034483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c30ad84968ff118c99991c003fa88598989c58ac | 1,292 | py | Python | Reverse Engineering/resources/scripts/Install Commonly Used Utilities/debugserver.py | bzxy/cydia | f8c838cdbd86e49dddf15792e7aa56e2af80548d | [
"MIT"
] | 678 | 2017-11-17T08:33:19.000Z | 2022-03-26T10:40:20.000Z | Reverse Engineering/resources/scripts/Install Commonly Used Utilities/debugserver.py | chenfanfang/Cydia | 5efce785bfd5f1064b9c0f0e29a9cc05aa24cad0 | [
"MIT"
] | 22 | 2019-04-16T05:51:53.000Z | 2021-11-08T06:18:45.000Z | Reverse Engineering/resources/scripts/Install Commonly Used Utilities/debugserver.py | chenfanfang/Cydia | 5efce785bfd5f1064b9c0f0e29a9cc05aa24cad0 | [
"MIT"
] | 170 | 2018-06-10T07:59:20.000Z | 2022-03-22T16:19:33.000Z | #!/usr/bin/env python
import subprocess
import string
import os
Path = subprocess.check_output(['xcode-select', '-p'])
Path = Path + "/Platforms/iPhoneOS.platform/DeviceSupport"
Path = string.replace(Path, "\n", "")
print "Developer Images Located At:", Path
for Sub in os.listdir(Path):
SubDire = os.path.join(Path,... | 44.551724 | 156 | 0.696594 | 155 | 1,292 | 5.8 | 0.483871 | 0.03337 | 0.050056 | 0.044494 | 0.095662 | 0.095662 | 0.095662 | 0.095662 | 0.095662 | 0 | 0 | 0.006239 | 0.131579 | 1,292 | 28 | 157 | 46.142857 | 0.795009 | 0.092105 | 0 | 0 | 0 | 0 | 0.458512 | 0.159966 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | null | null | 0.26087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c31ab253cef2d37641a74fd8579206b3ab9fce1c | 686 | py | Python | python_exercises_folder/OOP/Enum.py | Kaique425/python_exercises | c203384d372d9ef7193300d6ce35857879d91839 | [
"MIT"
] | null | null | null | python_exercises_folder/OOP/Enum.py | Kaique425/python_exercises | c203384d372d9ef7193300d6ce35857879d91839 | [
"MIT"
] | null | null | null | python_exercises_folder/OOP/Enum.py | Kaique425/python_exercises | c203384d372d9ef7193300d6ce35857879d91839 | [
"MIT"
] | null | null | null | from enum import Enum, auto
""" Enum é muito utilizado quando se precisa escolher
um conjunto de dados, tipos ou comandos. """
class Direction(Enum):
"""O 'auto' atribui automaticamente um valor aos campos."""
right = auto()
left = auto()
up = auto()
down = auto()
def move(direction):
... | 23.655172 | 72 | 0.664723 | 89 | 686 | 5.044944 | 0.58427 | 0.173719 | 0.160356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212828 | 686 | 28 | 73 | 24.5 | 0.82963 | 0.169096 | 0 | 0 | 0 | 0 | 0.129103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.533333 | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c3241a8b92b5711a48de4e9c6ed884e2fb21ed06 | 2,920 | py | Python | options.py | eumario/godot-mono-builds | 29683d76fc6573cb65832aaa2d971bca4b1d9c76 | [
"MIT"
] | 40 | 2019-07-12T22:41:09.000Z | 2021-12-27T01:27:45.000Z | options.py | bruvzg/godot-mono-builds | bda87f2d2bd8e0cf742fcba395a226883b169069 | [
"MIT"
] | 44 | 2019-09-18T18:25:51.000Z | 2022-03-31T16:57:52.000Z | options.py | dj4156003/godot-mono-builds | c3b009bc82599e1bfe0d29243c4b48c831637eda | [
"MIT"
] | 26 | 2019-08-23T22:37:07.000Z | 2022-03-20T22:20:39.000Z |
from dataclasses import dataclass
from os.path import abspath
@dataclass
class BaseOpts:
verbose_make: bool
jobs: str
configure_dir: str
install_dir: str
mono_source_root: str
mxe_prefix: str
@dataclass
class RuntimeOpts(BaseOpts):
configuration: str
release: bool
enable_cxx: bo... | 23.934426 | 69 | 0.693836 | 385 | 2,920 | 4.922078 | 0.205195 | 0.046438 | 0.069657 | 0.092876 | 0.184697 | 0.088127 | 0 | 0 | 0 | 0 | 0 | 0.000441 | 0.222945 | 2,920 | 121 | 70 | 24.132231 | 0.834729 | 0.015068 | 0 | 0.142857 | 0 | 0 | 0.009746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.032967 | 0.054945 | 0.527473 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c32565a3000d0868e93a82fc67e9e1f249129979 | 2,585 | py | Python | prototype/python/genband.py | disa-mhembere/matree | a58d06ab17e4c350f902918d32c392d9d56806e1 | [
"Apache-2.0"
] | 1 | 2019-09-03T03:38:58.000Z | 2019-09-03T03:38:58.000Z | prototype/python/genband.py | disa-mhembere/monya | a58d06ab17e4c350f902918d32c392d9d56806e1 | [
"Apache-2.0"
] | 20 | 2018-07-16T03:57:51.000Z | 2018-09-21T05:41:33.000Z | prototype/python/genband.py | disa-mhembere/monya | a58d06ab17e4c350f902918d32c392d9d56806e1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2017 neurodata (http://neurodata.io/)
#
# 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... | 27.5 | 74 | 0.605029 | 382 | 2,585 | 4.026178 | 0.379581 | 0.050065 | 0.039012 | 0.055267 | 0.211964 | 0.170351 | 0.085826 | 0 | 0 | 0 | 0 | 0.027186 | 0.274275 | 2,585 | 93 | 75 | 27.795699 | 0.792644 | 0.290909 | 0 | 0.244898 | 0 | 0 | 0.052967 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 0 | null | null | 0 | 0.061224 | null | null | 0.204082 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c32ace46d1594f56ee23614a1200018b455065c8 | 2,862 | py | Python | weaver/processes/wps_process_base.py | crim-ca/weaver | 107fec5e19f20b77061b9405a764da911d2db8a2 | [
"Apache-2.0"
] | 16 | 2019-03-18T12:23:05.000Z | 2022-02-25T00:39:11.000Z | weaver/processes/wps_process_base.py | crim-ca/weaver | 107fec5e19f20b77061b9405a764da911d2db8a2 | [
"Apache-2.0"
] | 346 | 2019-03-06T21:05:04.000Z | 2022-03-31T13:38:37.000Z | weaver/processes/wps_process_base.py | crim-ca/weaver | 107fec5e19f20b77061b9405a764da911d2db8a2 | [
"Apache-2.0"
] | 5 | 2019-03-15T01:38:28.000Z | 2021-11-11T15:38:43.000Z | import os
from abc import abstractmethod
from time import sleep
from typing import TYPE_CHECKING
from pyramid.httpexceptions import HTTPBadGateway
from weaver.formats import CONTENT_TYPE_APP_JSON
from weaver.utils import get_cookie_headers, get_settings, request_extra
from weaver.wps.utils import get_wps_output_dir, ... | 39.75 | 112 | 0.665968 | 351 | 2,862 | 5.219373 | 0.353276 | 0.032751 | 0.026201 | 0.029476 | 0.067686 | 0.04476 | 0.04476 | 0 | 0 | 0 | 0 | 0.001407 | 0.255066 | 2,862 | 71 | 113 | 40.309859 | 0.85788 | 0.212788 | 0 | 0 | 0 | 0 | 0.034594 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.090909 | false | 0 | 0.25 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c33265ea3b80b6470248629e915ccd816a19f32e | 997 | py | Python | dc02/queue.py | corona10/dc_cnu | 4d2e7d7e6efd645122dd2aab4ddb17ae7b8095bb | [
"Apache-2.0"
] | null | null | null | dc02/queue.py | corona10/dc_cnu | 4d2e7d7e6efd645122dd2aab4ddb17ae7b8095bb | [
"Apache-2.0"
] | null | null | null | dc02/queue.py | corona10/dc_cnu | 4d2e7d7e6efd645122dd2aab4ddb17ae7b8095bb | [
"Apache-2.0"
] | null | null | null | class Queue(object):
def __init__(self):
self.q = []
def size(self):
return len(self.q)
def empty(self):
if len(self.q) is 0:
return True
return False
def put(self, data):
self.q.append(data)
def get(self):
data = self.q.pop(0)
... | 20.770833 | 69 | 0.462387 | 117 | 997 | 3.709402 | 0.299145 | 0.069124 | 0.036866 | 0.059908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004762 | 0.368104 | 997 | 47 | 70 | 21.212766 | 0.684127 | 0 | 0 | 0.176471 | 0 | 0 | 0.174524 | 0.062187 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.205882 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c33351859cfe43ba2067a3c3d4a25e88dc50c7e8 | 6,267 | py | Python | crudapi/production.py | deepak1725/BasicCrud | 17b68790011bed7a8a87e54d190208281258e7c7 | [
"MIT"
] | 4 | 2018-04-23T07:51:51.000Z | 2020-01-23T06:54:27.000Z | crudapi/production.py | deepak1725/BasicCrud | 17b68790011bed7a8a87e54d190208281258e7c7 | [
"MIT"
] | 11 | 2020-06-05T18:00:32.000Z | 2022-03-02T04:33:46.000Z | crudapi/production.py | deepak1725/BasicCrud | 17b68790011bed7a8a87e54d190208281258e7c7 | [
"MIT"
] | 1 | 2019-01-03T11:05:34.000Z | 2019-01-03T11:05:34.000Z | """
Django settings for crudapi project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
# from dja... | 27.12987 | 91 | 0.69124 | 675 | 6,267 | 6.226667 | 0.362963 | 0.058768 | 0.036403 | 0.041637 | 0.299072 | 0.233167 | 0.179872 | 0.165596 | 0.129669 | 0.100404 | 0 | 0.014462 | 0.183501 | 6,267 | 230 | 92 | 27.247826 | 0.806918 | 0.235839 | 0 | 0.135714 | 1 | 0 | 0.488847 | 0.385522 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.05 | 0.028571 | 0 | 0.028571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3335e239b5174ac4edf72f168d3754eeb61b7cb | 286 | py | Python | setup.py | fkochan/TSPy | bd48f0aef090956bd843c09d6fcaa1452e73f7b8 | [
"MIT"
] | null | null | null | setup.py | fkochan/TSPy | bd48f0aef090956bd843c09d6fcaa1452e73f7b8 | [
"MIT"
] | null | null | null | setup.py | fkochan/TSPy | bd48f0aef090956bd843c09d6fcaa1452e73f7b8 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name = "TSPy",
version = "0.1",
packages = find_packages(),
install_requires = [],
author = "fkochan",
description = "A Python wrapper for the TradeStation WebAPI",
url = "https://github.com/fkochan/TSPy"
) | 26 | 65 | 0.653846 | 33 | 286 | 5.575758 | 0.818182 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.216783 | 286 | 11 | 66 | 26 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.310105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c33377b22b6081047109c9983aa65ffeebdd97f6 | 1,268 | py | Python | crunchyroll_connect/utils/types.py | mastrHyperion98/crunchyroll-connect | 42351ee57ff977abca4eb3374112d64ddfdd3c4e | [
"MIT"
] | null | null | null | crunchyroll_connect/utils/types.py | mastrHyperion98/crunchyroll-connect | 42351ee57ff977abca4eb3374112d64ddfdd3c4e | [
"MIT"
] | null | null | null | crunchyroll_connect/utils/types.py | mastrHyperion98/crunchyroll-connect | 42351ee57ff977abca4eb3374112d64ddfdd3c4e | [
"MIT"
] | null | null | null | from enum import Enum
class RequestType(Enum):
LOGIN = 'login'
LOGOUT = 'logout'
CREATE_SESSION = 'start_session'
LIST_LOCALES = 'list_locales'
LIST_MEDIA = 'list_media'
LIST_COLLECTION = 'list_collections'
LIST_SERIES = 'list_series'
INFO = 'info'
CATEGORIES = 'categories'
AUT... | 21.133333 | 41 | 0.606467 | 127 | 1,268 | 5.944882 | 0.503937 | 0.029139 | 0.039735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272082 | 1,268 | 59 | 42 | 21.491525 | 0.817985 | 0 | 0 | 0 | 0 | 0 | 0.273659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019608 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c339d590939c25ac58e46fa1ee3391fab5b292a0 | 278 | py | Python | __version__.py | luxuncang/dtanys | f83113ef069e01ee420a7cacdf7130c230ad8f3f | [
"MIT"
] | 2 | 2021-05-14T08:54:10.000Z | 2021-12-03T11:30:17.000Z | __version__.py | luxuncang/dtanys | f83113ef069e01ee420a7cacdf7130c230ad8f3f | [
"MIT"
] | null | null | null | __version__.py | luxuncang/dtanys | f83113ef069e01ee420a7cacdf7130c230ad8f3f | [
"MIT"
] | null | null | null | __title__ = 'dtanys'
__description__ = 'Python structured data parser.'
__url__ = 'https://github.com/luxuncang/dtanys'
__version__ = '1.0.5'
__author__ = 'ShengXin Lu'
__author_email__ = 'luxuncang@qq.com'
__license__ = 'MIT'
__copyright__ = 'Copyright 2021 ShengXin Lu' | 34.75 | 51 | 0.741007 | 32 | 278 | 5.40625 | 0.78125 | 0.115607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029046 | 0.133094 | 278 | 8 | 52 | 34.75 | 0.688797 | 0 | 0 | 0 | 0 | 0 | 0.485294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c33c8b2d17d6909d2b9bb9b76a4c3e9f3281e5d9 | 4,553 | py | Python | monitoring.py | topnoom259/railblock | b164ae05d70a2c6af637bcf0f07c74f60f81e175 | [
"BSD-3-Clause"
] | 1 | 2018-11-09T08:53:23.000Z | 2018-11-09T08:53:23.000Z | monitoring.py | topnoom259/railblock | b164ae05d70a2c6af637bcf0f07c74f60f81e175 | [
"BSD-3-Clause"
] | null | null | null | monitoring.py | topnoom259/railblock | b164ae05d70a2c6af637bcf0f07c74f60f81e175 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# RaiBlocks Telegram bot
# @RaiWalletBot https://t.me/RaiWalletBot
#
# Source code:
# https://github.com/SergiySW/RaiWalletBot
#
# Released under the BSD 3-Clause License
#
#
# Run by cron sometimes or manually
#
from telegram.ext import Updater, CommandHandler, Mes... | 32.521429 | 190 | 0.712058 | 629 | 4,553 | 4.982512 | 0.290938 | 0.03829 | 0.024888 | 0.028079 | 0.23963 | 0.174218 | 0.162731 | 0.1321 | 0.1321 | 0.1321 | 0 | 0.008709 | 0.142543 | 4,553 | 139 | 191 | 32.755396 | 0.794057 | 0.128267 | 0 | 0.133333 | 0 | 0.011111 | 0.211128 | 0.014228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0.066667 | 0.1 | 0 | 0.144444 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c3424dd76ec4ba184f008a0e0a080c56c516d648 | 3,093 | py | Python | heasy/utility_scripts/generate_complete_lists.py | Simphi/heasy | c81b1a1c34feb6a1e6fd8feeea831108570d7736 | [
"Apache-2.0"
] | null | null | null | heasy/utility_scripts/generate_complete_lists.py | Simphi/heasy | c81b1a1c34feb6a1e6fd8feeea831108570d7736 | [
"Apache-2.0"
] | null | null | null | heasy/utility_scripts/generate_complete_lists.py | Simphi/heasy | c81b1a1c34feb6a1e6fd8feeea831108570d7736 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Copyright 2013 CSIR Meraka HLT and Multilingual Speech Technologies (MuST) North-West University
#
# 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
#
# ht... | 37.719512 | 100 | 0.637569 | 420 | 3,093 | 4.488095 | 0.32381 | 0.033422 | 0.050928 | 0.079576 | 0.52679 | 0.52679 | 0.52679 | 0.476393 | 0.454111 | 0.36817 | 0 | 0.004823 | 0.195603 | 3,093 | 81 | 101 | 38.185185 | 0.752814 | 0.288716 | 0 | 0.176471 | 0 | 0 | 0.273897 | 0.015931 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029412 | null | null | 0.205882 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c345e72194d66aa107c591540041466c1006a2fb | 1,598 | py | Python | winkie/pigeon_animator.py | kiview/winkie | f8bc81bf00ff4ab2eee08b2b6c1c73fa86d6cf26 | [
"Apache-2.0"
] | null | null | null | winkie/pigeon_animator.py | kiview/winkie | f8bc81bf00ff4ab2eee08b2b6c1c73fa86d6cf26 | [
"Apache-2.0"
] | null | null | null | winkie/pigeon_animator.py | kiview/winkie | f8bc81bf00ff4ab2eee08b2b6c1c73fa86d6cf26 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 01_pigeon_animator.ipynb (unless otherwise specified).
__all__ = ['PigeonAnimator', 'PigeonAnimatorFactory']
# Cell
import matplotlib
import matplotlib.pyplot as plt
plt.rc('animation', html='jshtml')
class PigeonAnimator:
"""Animates a pigeon skeleton using matplotlib... | 44.388889 | 182 | 0.631414 | 211 | 1,598 | 4.545024 | 0.393365 | 0.065693 | 0.031283 | 0.043796 | 0.139729 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019395 | 0.193367 | 1,598 | 36 | 182 | 44.388889 | 0.724593 | 0.094493 | 0 | 0 | 1 | 0 | 0.239583 | 0.014583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.090909 | 0 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c348d777165f4e75f56a741028703a0eaaecfc80 | 528 | py | Python | hackerrank/Algorithms/Kruskal - MST - Really Special Subtree/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerrank/Algorithms/Kruskal - MST - Really Special Subtree/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerrank/Algorithms/Kruskal - MST - Really Special Subtree/test.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | import unittest
import solution
class TestQ(unittest.TestCase):
def test_case_0(self):
self.assertEqual(solution.kruskals(
4,
[1, 1, 4, 2, 3, 3],
[2, 3, 1, 4, 2, 4],
[5, 3, 6, 7, 4, 5],
), 12)
def test_case_1(self):
self.assertEqual(sol... | 20.307692 | 43 | 0.445076 | 74 | 528 | 3.013514 | 0.432432 | 0.035874 | 0.098655 | 0.242152 | 0.313901 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171875 | 0.393939 | 528 | 25 | 44 | 21.12 | 0.525 | 0 | 0 | 0.105263 | 0 | 0 | 0.015152 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3502c74e7e9556f755d1ff97a8b0d702b0aa47d | 500 | py | Python | exercices/clock/clock.py | gkaeso/exercism-python | 00360effcc1eceadfdf6e342ff52bd6284b9bc87 | [
"MIT"
] | null | null | null | exercices/clock/clock.py | gkaeso/exercism-python | 00360effcc1eceadfdf6e342ff52bd6284b9bc87 | [
"MIT"
] | null | null | null | exercices/clock/clock.py | gkaeso/exercism-python | 00360effcc1eceadfdf6e342ff52bd6284b9bc87 | [
"MIT"
] | null | null | null | class Clock:
def __init__(self, hour, minute):
self.total: int = hour * 60 + minute # in minutes
def __repr__(self):
hour, minute = (self.total // 60) % 24, self.total % 60
return '{:02d}:{:02d}'.format(hour, minute)
def __eq__(self, other):
return repr(self) == repr(oth... | 26.315789 | 63 | 0.572 | 62 | 500 | 4.290323 | 0.33871 | 0.169173 | 0.105263 | 0.135338 | 0.473684 | 0.300752 | 0.300752 | 0.300752 | 0 | 0 | 0 | 0.034188 | 0.298 | 500 | 18 | 64 | 27.777778 | 0.723647 | 0.02 | 0 | 0.142857 | 0 | 0 | 0.026639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0 | 0 | 0.071429 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c351d43a115feeee56330cfcb1c45b35581b035c | 1,610 | py | Python | user_auth/urls.py | ploggingdev/hackerschat | f6d881e7bed0e634e9db6e788befa990ac581bbd | [
"MIT"
] | 3 | 2018-01-24T09:42:22.000Z | 2018-09-28T18:52:01.000Z | user_auth/urls.py | ploggingdev/hackerschat | f6d881e7bed0e634e9db6e788befa990ac581bbd | [
"MIT"
] | 6 | 2020-02-11T22:02:02.000Z | 2022-02-11T03:39:46.000Z | user_auth/urls.py | ploggingdev/hackerschat | f6d881e7bed0e634e9db6e788befa990ac581bbd | [
"MIT"
] | 3 | 2018-02-03T16:35:54.000Z | 2019-04-09T16:10:20.000Z | from django.urls import path, re_path, reverse_lazy
from django.contrib.auth import views as auth_views
from . import views
app_name = 'user_auth'
urlpatterns = [
path('register/', views.RegisterView.as_view(), name='register'),
path('profile/', views.ProfileView.as_view(), name='profile'),
re_path('profi... | 37.44186 | 169 | 0.687578 | 184 | 1,610 | 5.701087 | 0.304348 | 0.062917 | 0.06673 | 0.045758 | 0.176358 | 0.132507 | 0.132507 | 0.132507 | 0.132507 | 0.091516 | 0 | 0.003003 | 0.172671 | 1,610 | 43 | 170 | 37.44186 | 0.784535 | 0 | 0 | 0.390244 | 0 | 0 | 0.284916 | 0.152079 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.243902 | 0.073171 | 0 | 0.073171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c3526e35144bc641eeba9f2f134df6e3e779bbdf | 14,983 | py | Python | tests/test_converter.py | dpa-newslab/livebridge-scribblelive | db41c3f2c3d1c149505253d40493147ba5a3a42f | [
"Apache-2.0"
] | null | null | null | tests/test_converter.py | dpa-newslab/livebridge-scribblelive | db41c3f2c3d1c149505253d40493147ba5a3a42f | [
"Apache-2.0"
] | null | null | null | tests/test_converter.py | dpa-newslab/livebridge-scribblelive | db41c3f2c3d1c149505253d40493147ba5a3a42f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2016 dpa-infocom GmbH
#
# 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... | 51.311644 | 1,035 | 0.621237 | 1,787 | 14,983 | 5.09681 | 0.2507 | 0.047101 | 0.055336 | 0.074111 | 0.498573 | 0.449166 | 0.428744 | 0.384278 | 0.360123 | 0.309728 | 0 | 0.045552 | 0.219048 | 14,983 | 291 | 1,036 | 51.487973 | 0.732672 | 0.04158 | 0 | 0.428571 | 0 | 0.114286 | 0.477758 | 0.162111 | 0 | 0 | 0 | 0 | 0.15102 | 1 | 0.004082 | false | 0 | 0.020408 | 0 | 0.028571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3539dad94b0ba5f808f5f187b6df379800ed5d4 | 5,928 | py | Python | tests/unit/fields/test_field.py | metabolize-forks/booby | 4e15e4e263dc387420398f808ffb345b760364d4 | [
"Apache-2.0"
] | null | null | null | tests/unit/fields/test_field.py | metabolize-forks/booby | 4e15e4e263dc387420398f808ffb345b760364d4 | [
"Apache-2.0"
] | null | null | null | tests/unit/fields/test_field.py | metabolize-forks/booby | 4e15e4e263dc387420398f808ffb345b760364d4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from expects import *
from .._helpers import Spy, stub_validator
from booby import fields, errors, models
IRRELEVANT_VALUE = 'irrelevant value'
NUMERIC_STRING_VALUE = '137'
class TestOptions(object):
def test_should_be_passed_kwargs_dict(self):
... | 29.20197 | 90 | 0.691633 | 733 | 5,928 | 5.238745 | 0.186903 | 0.04375 | 0.066667 | 0.046875 | 0.551823 | 0.479688 | 0.431771 | 0.359896 | 0.359896 | 0.268229 | 0 | 0.003842 | 0.209683 | 5,928 | 202 | 91 | 29.346535 | 0.815795 | 0.003543 | 0 | 0.301587 | 0 | 0 | 0.016257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.261905 | false | 0.02381 | 0.031746 | 0.047619 | 0.420635 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c357ed09b8d465cad12644b322a7b9e99ccc1b50 | 238 | py | Python | server/dns/models.py | lengmoXXL/dnsmasq-server | 64efce13d74e551d0f8d0c17efdbc566bcfd0c19 | [
"Apache-2.0"
] | null | null | null | server/dns/models.py | lengmoXXL/dnsmasq-server | 64efce13d74e551d0f8d0c17efdbc566bcfd0c19 | [
"Apache-2.0"
] | 5 | 2021-03-18T22:34:42.000Z | 2021-09-22T18:22:05.000Z | server/dns/models.py | lengmoXXL/dnsmasq-server | 64efce13d74e551d0f8d0c17efdbc566bcfd0c19 | [
"Apache-2.0"
] | null | null | null | from django.db import models
# Create your models here.
class DNSRecord(models.Model):
ip = models.GenericIPAddressField()
host = models.CharField(max_length=255)
def __str__(self):
return f'{self.ip}:{self.host}' | 19.833333 | 43 | 0.693277 | 31 | 238 | 5.16129 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015544 | 0.189076 | 238 | 12 | 44 | 19.833333 | 0.813472 | 0.10084 | 0 | 0 | 0 | 0 | 0.098592 | 0.098592 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
c35b2676248df22a27085f6fe4efbd9601a55f8e | 10,284 | py | Python | gui/wellplot/subplots/ui_logPlotHeaders.py | adriangrepo/qreservoir | 20fba1b1fd1a42add223d9e8af2d267665bec493 | [
"MIT"
] | 2 | 2019-10-04T13:54:51.000Z | 2021-05-21T19:36:15.000Z | gui/wellplot/subplots/ui_logPlotHeaders.py | adriangrepo/qreservoir | 20fba1b1fd1a42add223d9e8af2d267665bec493 | [
"MIT"
] | 3 | 2019-11-19T17:06:09.000Z | 2020-01-18T20:39:54.000Z | gui/wellplot/subplots/ui_logPlotHeaders.py | adriangrepo/qreservoir | 20fba1b1fd1a42add223d9e8af2d267665bec493 | [
"MIT"
] | 2 | 2020-07-02T13:20:48.000Z | 2020-11-11T00:18:51.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'logPlotHeaders.ui'
#
# Created: Fri Apr 3 12:05:41 2015
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except... | 55.589189 | 104 | 0.724815 | 1,141 | 10,284 | 6.3383 | 0.127958 | 0.07052 | 0.024889 | 0.034845 | 0.488385 | 0.398507 | 0.310011 | 0.176438 | 0.176438 | 0.176438 | 0 | 0.045672 | 0.165403 | 10,284 | 184 | 105 | 55.891304 | 0.796924 | 0.021295 | 0 | 0.035503 | 1 | 0 | 0.062649 | 0.002387 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029586 | false | 0 | 0.005917 | 0.017751 | 0.059172 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c3642a3680d36128bb942b3ae0d2ba9fe8b7657e | 602 | py | Python | src/opendr/perception/face_recognition/algorithm/util/iterator.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 217 | 2020-04-10T16:39:36.000Z | 2022-03-30T15:39:04.000Z | src/opendr/perception/face_recognition/algorithm/util/iterator.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 79 | 2021-06-23T10:40:10.000Z | 2021-12-16T07:59:42.000Z | src/opendr/perception/face_recognition/algorithm/util/iterator.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 29 | 2021-12-16T09:26:13.000Z | 2022-03-29T15:19:18.000Z | from opendr.engine.datasets import DatasetIterator
import torch
import numpy as np
class FaceRecognitionDataset(DatasetIterator):
def __init__(self, pairs):
self.data = np.array([pairs[:, 0], pairs[:, 1]])
self.labels = pairs[:, 2]
def __getitem__(self, idx):
if torch.is_tensor(idx):
... | 27.363636 | 69 | 0.609635 | 73 | 602 | 4.849315 | 0.465753 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024664 | 0.259136 | 602 | 21 | 70 | 28.666667 | 0.769058 | 0 | 0 | 0 | 0 | 0 | 0.028239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0.058824 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c3659f3ba6a392abe08c1136b5ccc5f4cdcd8327 | 6,406 | py | Python | bag_2_db_mysql.py | tzmhuang/Database4Bag | e186f7086f78211a6eac830d48bb99ab5c64849d | [
"Apache-2.0"
] | null | null | null | bag_2_db_mysql.py | tzmhuang/Database4Bag | e186f7086f78211a6eac830d48bb99ab5c64849d | [
"Apache-2.0"
] | null | null | null | bag_2_db_mysql.py | tzmhuang/Database4Bag | e186f7086f78211a6eac830d48bb99ab5c64849d | [
"Apache-2.0"
] | null | null | null | class mysql_connector():
def __init__(self,user,password,host,database):
self.username = user
self.password = password
self.host = host
self.database = database
self.connection = mysql.connector.connect(
user = self.username,
password = self.passw... | 39.060976 | 146 | 0.601311 | 805 | 6,406 | 4.524224 | 0.207453 | 0.04201 | 0.023064 | 0.018946 | 0.300934 | 0.265513 | 0.258375 | 0.204833 | 0.149368 | 0.149368 | 0 | 0.015315 | 0.276303 | 6,406 | 164 | 147 | 39.060976 | 0.770276 | 0.110053 | 0 | 0.222222 | 0 | 0 | 0.077195 | 0.015368 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.031746 | 0 | null | null | 0.039683 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c36677e45e291376e8582d97050e49829e9e8cd5 | 2,041 | py | Python | testproject/django_file_form_example/tests/utils/test_utils.py | kosior/django-file-form | bc9ae606f55b297254e945c856d4878e45408af0 | [
"Apache-2.0"
] | 133 | 2015-01-22T09:01:58.000Z | 2022-03-24T07:24:52.000Z | testproject/django_file_form_example/tests/utils/test_utils.py | kosior/django-file-form | bc9ae606f55b297254e945c856d4878e45408af0 | [
"Apache-2.0"
] | 371 | 2015-01-14T01:34:45.000Z | 2022-03-23T12:16:01.000Z | testproject/django_file_form_example/tests/utils/test_utils.py | kosior/django-file-form | bc9ae606f55b297254e945c856d4878e45408af0 | [
"Apache-2.0"
] | 42 | 2015-01-21T11:24:42.000Z | 2022-03-22T12:10:01.000Z | import uuid
from datetime import datetime
from json import dumps
from pathlib import Path
from django.utils import timezone
from django.conf import settings
from django_file_form_example.models import Example, ExampleFile
def get_random_id():
return uuid.uuid4().hex
def encode_datetime(*args, **kwargs):
"... | 23.193182 | 81 | 0.696717 | 273 | 2,041 | 5.003663 | 0.333333 | 0.064422 | 0.04978 | 0.061493 | 0.165447 | 0.165447 | 0.102489 | 0.043924 | 0 | 0 | 0 | 0.00122 | 0.196962 | 2,041 | 87 | 82 | 23.45977 | 0.832215 | 0.035767 | 0 | 0 | 0 | 0 | 0.021561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.211538 | false | 0 | 0.134615 | 0.038462 | 0.480769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c375496d6ee8288ca58cac8444d068bd7368da55 | 2,718 | py | Python | parser/db_kamis_parser.py | JoonyoungYi/project-seesae | 75f912ea7ace0c9cee13704eae907ee0770cf3bd | [
"Apache-2.0"
] | null | null | null | parser/db_kamis_parser.py | JoonyoungYi/project-seesae | 75f912ea7ace0c9cee13704eae907ee0770cf3bd | [
"Apache-2.0"
] | null | null | null | parser/db_kamis_parser.py | JoonyoungYi/project-seesae | 75f912ea7ace0c9cee13704eae907ee0770cf3bd | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
from urllib import urlopen
from bs4 import BeautifulSoup
from datetime import date
from datetime import timedelta
from datetime import datetime
class KamisDataRetriever:
def __init__(self, retrieveCategory, retrieveItem, fromDate, kindCode = ''):
self.retrieveCategory = ret... | 40.567164 | 207 | 0.520235 | 267 | 2,718 | 5.262172 | 0.355805 | 0.085409 | 0.05694 | 0.04911 | 0.1879 | 0.112456 | 0.112456 | 0.112456 | 0.112456 | 0.112456 | 0 | 0.008168 | 0.369389 | 2,718 | 66 | 208 | 41.181818 | 0.810968 | 0.007358 | 0 | 0.25 | 0 | 0.016667 | 0.056676 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | null | null | 0 | 0.083333 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c375901c69b2d337eb4068cfc3e74860994ef3be | 32,736 | py | Python | processing_provider/Survey_Estimate3dCoord.py | geodourados/lftools | 4b9d703513bd3d49ac7952014575bf95492a2d90 | [
"MIT"
] | 1 | 2022-03-28T22:18:09.000Z | 2022-03-28T22:18:09.000Z | processing_provider/Survey_Estimate3dCoord.py | geodourados/lftools | 4b9d703513bd3d49ac7952014575bf95492a2d90 | [
"MIT"
] | null | null | null | processing_provider/Survey_Estimate3dCoord.py | geodourados/lftools | 4b9d703513bd3d49ac7952014575bf95492a2d90 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Survey_Estimate3dCoord.py
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU Gen... | 49.75076 | 590 | 0.570626 | 4,207 | 32,736 | 4.410506 | 0.15189 | 0.053355 | 0.034762 | 0.046349 | 0.583077 | 0.559903 | 0.535058 | 0.520884 | 0.506225 | 0.498302 | 0 | 0.038048 | 0.244501 | 32,736 | 657 | 591 | 49.826484 | 0.711871 | 0.031922 | 0 | 0.458111 | 0 | 0.158645 | 0.622655 | 0.067138 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024955 | false | 0 | 0.016043 | 0.01426 | 0.094474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c37a997c4a1982a31a74a436b5a187c7e3b15e38 | 371 | py | Python | src/models/utils.py | panpiort8/CatAutoEncoderCompressor | 880de9e354de13e87f81714a50115c9d7e23453f | [
"MIT"
] | null | null | null | src/models/utils.py | panpiort8/CatAutoEncoderCompressor | 880de9e354de13e87f81714a50115c9d7e23453f | [
"MIT"
] | null | null | null | src/models/utils.py | panpiort8/CatAutoEncoderCompressor | 880de9e354de13e87f81714a50115c9d7e23453f | [
"MIT"
] | null | null | null | import torch
from src.models import CAECStochastic, CAECUniform
def make_model(cfg):
model_cls = CAECStochastic if cfg.model_cls == 'CAECStochastic' else CAECUniform
model = model_cls(cfg)
if hasattr(cfg, 'checkpoint'):
model.load_state_dict(torch.load(cfg.checkpoint, map_location='cpu'))
mod... | 28.538462 | 84 | 0.725067 | 49 | 371 | 5.346939 | 0.530612 | 0.091603 | 0.083969 | 0.19084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172507 | 371 | 13 | 85 | 28.538462 | 0.85342 | 0 | 0 | 0 | 0 | 0 | 0.072581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c37c64dad0a2644ceb99003d9f761a536f240abd | 1,177 | py | Python | src/route.py | xiaojieluo/webnav | c9811c629e98d6ec1dd9c5dd97c587c68ab54685 | [
"MIT"
] | null | null | null | src/route.py | xiaojieluo/webnav | c9811c629e98d6ec1dd9c5dd97c587c68ab54685 | [
"MIT"
] | null | null | null | src/route.py | xiaojieluo/webnav | c9811c629e98d6ec1dd9c5dd97c587c68ab54685 | [
"MIT"
] | null | null | null | from src.handler import IndexHandler as Index
from src.handler import UserHandler as User
from src.handler import TaskHandler as Task
# from server.handler import ArticleHandler as Article
# from server.handler import PageHandler as Page
# from server.handler import AdminHandler as Admin
route = [
(r'/', Index.ind... | 25.042553 | 80 | 0.612574 | 147 | 1,177 | 4.897959 | 0.265306 | 0.058333 | 0.058333 | 0.083333 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008239 | 0.175021 | 1,177 | 46 | 81 | 25.586957 | 0.733265 | 0.487681 | 0 | 0.111111 | 0 | 0 | 0.2513 | 0.17331 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c37f2f2b3b41063cdd737cb5d8e41b51563f835e | 538 | py | Python | app/tests/evaluation_tests/test_results.py | kant/grand-challenge.org | 608266ae3376448fc56c3bb4e34138ab81a45e2a | [
"Apache-2.0"
] | null | null | null | app/tests/evaluation_tests/test_results.py | kant/grand-challenge.org | 608266ae3376448fc56c3bb4e34138ab81a45e2a | [
"Apache-2.0"
] | null | null | null | app/tests/evaluation_tests/test_results.py | kant/grand-challenge.org | 608266ae3376448fc56c3bb4e34138ab81a45e2a | [
"Apache-2.0"
] | null | null | null | import pytest
from tests.factories import ChallengeFactory, ResultFactory
@pytest.mark.django_db
def test_public_private_default():
c = ChallengeFactory()
r1 = ResultFactory(job__submission__challenge=c)
assert r1.published == True
c.evaluation_config.auto_publish_new_results = False
c.evaluat... | 22.416667 | 64 | 0.749071 | 67 | 538 | 5.761194 | 0.58209 | 0.067358 | 0.134715 | 0.181347 | 0.217617 | 0.217617 | 0 | 0 | 0 | 0 | 0 | 0.013544 | 0.17658 | 538 | 23 | 65 | 23.391304 | 0.857788 | 0.107807 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c381648e71c8062f3e2e3844d6d53271cada2dc5 | 5,181 | py | Python | calculate_fCOS/calc_fCOS_C4pct_run_driver.py | Timothy-W-Hilton/COS_Spatial_Analyses | dfb6f99f8c7181739c2079936dce83a4d86f5c1f | [
"MIT"
] | null | null | null | calculate_fCOS/calc_fCOS_C4pct_run_driver.py | Timothy-W-Hilton/COS_Spatial_Analyses | dfb6f99f8c7181739c2079936dce83a4d86f5c1f | [
"MIT"
] | null | null | null | calculate_fCOS/calc_fCOS_C4pct_run_driver.py | Timothy-W-Hilton/COS_Spatial_Analyses | dfb6f99f8c7181739c2079936dce83a4d86f5c1f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# the above shebang uses a virtualenv if one is running, otherwise the
# system python
"""Short example of using python to perform the environment variable
management, etc. needed to use the I/O API fortran library.
Using python has the advantage of providing access to
stem_pytools.ecampbell300... | 37.543478 | 79 | 0.588882 | 678 | 5,181 | 4.333333 | 0.374631 | 0.033696 | 0.013615 | 0.023145 | 0.104152 | 0.038802 | 0.023145 | 0.023145 | 0 | 0 | 0 | 0.033978 | 0.261533 | 5,181 | 137 | 80 | 37.817518 | 0.733926 | 0.091102 | 0 | 0.08 | 0 | 0.01 | 0.194349 | 0.030094 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.03 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ee3acbda9b89f8e2aaee91a56531b2bd7bac185 | 1,771 | py | Python | play/mine_sweeper_matrix.py | wlmgithub/ecar | 55e8f085485d898db760189e42071a5614023f2d | [
"MIT"
] | null | null | null | play/mine_sweeper_matrix.py | wlmgithub/ecar | 55e8f085485d898db760189e42071a5614023f2d | [
"MIT"
] | null | null | null | play/mine_sweeper_matrix.py | wlmgithub/ecar | 55e8f085485d898db760189e42071a5614023f2d | [
"MIT"
] | null | null | null | """
rows = 6
columns = 4
bombs = 2
1 1 1 0
1 -1 1 0
1 2 2 1
0 1 -1 1
0 1 1 1
0 0 0 0
"""
import random
def pick_one_position(rows, columns, bombs):
i = random.choice(range(rows))
j = random.choice(range(columns))
return [i, j]
def get_positions(rows, columns, bombs):
... | 21.597561 | 99 | 0.528515 | 250 | 1,771 | 3.664 | 0.288 | 0.068777 | 0.087336 | 0.017467 | 0.234716 | 0.173581 | 0.020742 | 0.017467 | 0 | 0 | 0 | 0.04565 | 0.344438 | 1,771 | 81 | 100 | 21.864198 | 0.743325 | 0.204404 | 0 | 0.05 | 0 | 0 | 0.012987 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.075 | false | 0 | 0.025 | 0 | 0.2 | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ee556a114a2a3056878cc691a3ca721145c05d5 | 7,770 | py | Python | src/models/fcn.py | shendu-sw/TFR-HSS-Benchmark | 3fbc93ff548d924050e2de5070007197f04be7f4 | [
"MIT"
] | 7 | 2021-08-24T10:01:28.000Z | 2021-12-29T07:13:17.000Z | src/models/fcn.py | idrl-lab/TFR-HSS-Benchmark | 3fbc93ff548d924050e2de5070007197f04be7f4 | [
"MIT"
] | null | null | null | src/models/fcn.py | idrl-lab/TFR-HSS-Benchmark | 3fbc93ff548d924050e2de5070007197f04be7f4 | [
"MIT"
] | 1 | 2021-08-25T01:38:39.000Z | 2021-08-25T01:38:39.000Z | # encoding: utf-8
import torch
from torch import nn
from torch.nn import functional as F
from .util.backbone import *
__all__ = [
"FCN_VGG",
"FCN_AlexNet",
"FCN_ResNet18",
"FCN_ResNet34",
"FCN_ResNet50",
"FCN_ResNet101",
"FCN_ResNet152",
]
class Conv3x3GNReLU(nn.Module):
def __init_... | 31.585366 | 88 | 0.624196 | 970 | 7,770 | 4.749485 | 0.124742 | 0.07901 | 0.035815 | 0.044932 | 0.683308 | 0.637074 | 0.636423 | 0.636423 | 0.602127 | 0.602127 | 0 | 0.058107 | 0.260232 | 7,770 | 245 | 89 | 31.714286 | 0.743389 | 0.027928 | 0 | 0.39548 | 0 | 0 | 0.017532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073446 | false | 0 | 0.022599 | 0 | 0.169492 | 0.00565 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ee8eefb5a9fcab96882cc55e679b07ef35aca56 | 2,028 | py | Python | djangocli/utils/concurrent.py | ZhuoZhuoCrayon/djangocli | c5b40c46922b70d066141c65c60bf19c809f3197 | [
"MIT"
] | 5 | 2021-03-08T02:39:02.000Z | 2021-09-10T03:40:29.000Z | djangocli/utils/concurrent.py | ZhuoZhuoCrayon/djangocli | c5b40c46922b70d066141c65c60bf19c809f3197 | [
"MIT"
] | 80 | 2021-03-05T15:17:37.000Z | 2021-11-15T01:46:59.000Z | djangocli/utils/concurrent.py | ZhuoZhuoCrayon/djangocli | c5b40c46922b70d066141c65c60bf19c809f3197 | [
"MIT"
] | 1 | 2021-09-10T03:49:40.000Z | 2021-09-10T03:49:40.000Z | # -*- coding: utf-8 -*-
import sys
from concurrent.futures import as_completed
from concurrent.futures.thread import ThreadPoolExecutor
from multiprocessing import cpu_count, get_context
from typing import Any, Callable, Dict, List
from django.conf import settings
def batch_call(
func: Callable,
params_list:... | 28.166667 | 82 | 0.683432 | 256 | 2,028 | 5.171875 | 0.304688 | 0.128399 | 0.108761 | 0.066465 | 0.503021 | 0.489426 | 0.44864 | 0.44864 | 0.44864 | 0.379154 | 0 | 0.001895 | 0.219428 | 2,028 | 71 | 83 | 28.56338 | 0.834491 | 0.157791 | 0 | 0.452381 | 0 | 0 | 0.011642 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.047619 | false | 0 | 0.142857 | 0 | 0.261905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ee9a843554d605e10d46112e3c9f2c231617f34 | 434 | py | Python | github/migrations/0003_repository_name.py | h3nnn4n/git-o-matic-9k | d8241cc768591e0f41c02b2057d7b56697a4cc86 | [
"MIT"
] | null | null | null | github/migrations/0003_repository_name.py | h3nnn4n/git-o-matic-9k | d8241cc768591e0f41c02b2057d7b56697a4cc86 | [
"MIT"
] | null | null | null | github/migrations/0003_repository_name.py | h3nnn4n/git-o-matic-9k | d8241cc768591e0f41c02b2057d7b56697a4cc86 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-03 11:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('github', '0002_auto_20201003_1003'),
]
operations = [
migrations.AddField(
model_name='repository',
name='name',
... | 21.7 | 63 | 0.596774 | 46 | 434 | 5.5 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110032 | 0.288018 | 434 | 19 | 64 | 22.842105 | 0.708738 | 0.103687 | 0 | 0 | 1 | 0 | 0.111111 | 0.059432 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5eed2d2e89ed228cc3dcf46136caaca4167df4bd | 660 | py | Python | src/frontend/readinglist/migrations/0002_auto_20200609_1848.py | fausecteam/faustctf-2020-marsu | 8ad6892dc76b79b0e508fd6a39ff2825dba1c4f4 | [
"0BSD"
] | null | null | null | src/frontend/readinglist/migrations/0002_auto_20200609_1848.py | fausecteam/faustctf-2020-marsu | 8ad6892dc76b79b0e508fd6a39ff2825dba1c4f4 | [
"0BSD"
] | null | null | null | src/frontend/readinglist/migrations/0002_auto_20200609_1848.py | fausecteam/faustctf-2020-marsu | 8ad6892dc76b79b0e508fd6a39ff2825dba1c4f4 | [
"0BSD"
] | null | null | null | # Generated by Django 2.2.11 on 2020-06-09 18:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('readinglist', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='paper',
old_name='metadata',
... | 23.571429 | 57 | 0.554545 | 59 | 660 | 6.050847 | 0.661017 | 0.07563 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044743 | 0.322727 | 660 | 27 | 58 | 24.444444 | 0.753915 | 0.069697 | 0 | 0.238095 | 1 | 0 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ef304c711a863611a70cc6b126ae4fd2521847e | 1,021 | py | Python | test/customHookTest.py | FXTD-ODYSSEY/QBinder | b4b288e7c0ef09d2382e3d6678a5c41950257b76 | [
"MIT"
] | 13 | 2020-11-29T15:02:57.000Z | 2022-02-11T03:12:25.000Z | test/customHookTest.py | FXTD-ODYSSEY/QBinder | b4b288e7c0ef09d2382e3d6678a5c41950257b76 | [
"MIT"
] | 8 | 2020-11-30T02:47:56.000Z | 2021-05-19T03:44:16.000Z | test/customHookTest.py | FXTD-ODYSSEY/QtConfig | 978cddf26c0305677b65b04d206138970cb73762 | [
"MIT"
] | 2 | 2020-11-30T01:59:19.000Z | 2021-12-17T06:44:54.000Z | # -*- coding: utf-8 -*-
"""
"""
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
__author__ = "timmyliang"
__email__ = "820472580@qq.com"
__date__ = "2021-01-30 22:16:52"
import os
import sys
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)
DI... | 17.016667 | 44 | 0.691479 | 143 | 1,021 | 4.594406 | 0.433566 | 0.082192 | 0.073059 | 0.05175 | 0.070015 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029976 | 0.183154 | 1,021 | 59 | 45 | 17.305085 | 0.757794 | 0.020568 | 0 | 0.131579 | 0 | 0 | 0.09798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0 | 0.315789 | 0 | 0.421053 | 0.184211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5ef4da61a3627f9c0bc615ce5cb56052a28c64d1 | 2,579 | py | Python | tensorflow/contrib/autograph/pyct/anno_test.py | Zwysilence/tensorflow | b55001be83da044bb21d539d433dec6231eaec55 | [
"Apache-2.0"
] | 8 | 2017-03-20T12:04:21.000Z | 2021-06-24T20:34:30.000Z | tensorflow/contrib/autograph/pyct/anno_test.py | Zwysilence/tensorflow | b55001be83da044bb21d539d433dec6231eaec55 | [
"Apache-2.0"
] | 4 | 2019-08-14T22:32:51.000Z | 2020-03-09T14:59:18.000Z | tensorflow/contrib/autograph/pyct/anno_test.py | Zwysilence/tensorflow | b55001be83da044bb21d539d433dec6231eaec55 | [
"Apache-2.0"
] | 2 | 2018-11-03T01:19:26.000Z | 2021-04-23T02:34:07.000Z | # Copyright 2017 The TensorFlow Authors. 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.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 30.341176 | 80 | 0.669639 | 350 | 2,579 | 4.837143 | 0.371429 | 0.041347 | 0.07974 | 0.073833 | 0.347312 | 0.193739 | 0.135854 | 0.135854 | 0.135854 | 0.135854 | 0 | 0.012975 | 0.163242 | 2,579 | 84 | 81 | 30.702381 | 0.771548 | 0.287321 | 0 | 0.170213 | 0 | 0 | 0.050605 | 0 | 0 | 0 | 0 | 0.011905 | 0.361702 | 1 | 0.06383 | false | 0 | 0.12766 | 0 | 0.212766 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ef7b568aabefbd9768a1f6d798c08dc49bd31da | 451 | py | Python | tddspry/django/settings.py | dgladkov/tddspry | d604331b87eae0dd01b68a5388298884c998e3ec | [
"BSD-3-Clause"
] | 4 | 2015-03-04T16:35:54.000Z | 2021-01-08T04:17:37.000Z | tddspry/django/settings.py | dgladkov/tddspry | d604331b87eae0dd01b68a5388298884c998e3ec | [
"BSD-3-Clause"
] | null | null | null | tddspry/django/settings.py | dgladkov/tddspry | d604331b87eae0dd01b68a5388298884c998e3ec | [
"BSD-3-Clause"
] | null | null | null | from django.conf import settings
from django.test import TestCase
from nose.util import resolve_name
__all__ = ('IP', 'PORT', 'SITE', 'DjangoTestCase')
IP = getattr(settings, 'TDDSPRY_IP', '127.0.0.1')
PORT = getattr(settings, 'TDDSPRY_PORT', 8088)
SITE = 'http://%s:%s/' % (IP, PORT)
DjangoTestCase = getattr(sett... | 25.055556 | 65 | 0.733925 | 57 | 451 | 5.631579 | 0.491228 | 0.140187 | 0.205607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 0.124169 | 451 | 17 | 66 | 26.529412 | 0.787342 | 0 | 0 | 0 | 0 | 0 | 0.18847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ef9753f6bcd4b2e0d62e71919aae59aff5d12fd | 171 | py | Python | SPOJ/Random/ONEZERO/test.py | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | SPOJ/Random/ONEZERO/test.py | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | SPOJ/Random/ONEZERO/test.py | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | mx = 0
for i in xrange(1, 100):
j = 1
while True:
num = i * j
s = str(num)
if s.count('1') + s.count('0') == len(s):
mx = max(mx, j)
break
j += 1
print mx
| 14.25 | 43 | 0.491228 | 36 | 171 | 2.333333 | 0.555556 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076271 | 0.309942 | 171 | 11 | 44 | 15.545455 | 0.635593 | 0 | 0 | 0 | 0 | 0 | 0.011696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f01a5ab459311cfd58115e323d49f0632c79fc6 | 3,020 | py | Python | multitestanalysis.py | mlsamsom/PyFrictionTools | bfcb54fbd4fa4dd1235727f278dcc091648d1a35 | [
"MIT"
] | null | null | null | multitestanalysis.py | mlsamsom/PyFrictionTools | bfcb54fbd4fa4dd1235727f278dcc091648d1a35 | [
"MIT"
] | null | null | null | multitestanalysis.py | mlsamsom/PyFrictionTools | bfcb54fbd4fa4dd1235727f278dcc091648d1a35 | [
"MIT"
] | null | null | null | import pandas as pd
import os
import filehandling as fh
import testanalysis as ta
import frictionstats as fs
from scipy import stats
def get_immediate_subdirectories(a_dir):
return [name for name in os.listdir(a_dir)
if os.path.isdir(os.path.join(a_dir, name))]
def concat_dfs(directory,... | 27.207207 | 99 | 0.644371 | 408 | 3,020 | 4.551471 | 0.404412 | 0.053312 | 0.02154 | 0.018309 | 0.132472 | 0.132472 | 0.132472 | 0.099085 | 0.06462 | 0.06462 | 0 | 0.005289 | 0.248676 | 3,020 | 110 | 100 | 27.454545 | 0.813134 | 0.039404 | 0 | 0.111111 | 0 | 0 | 0.149416 | 0.032972 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018519 | 0.111111 | null | null | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6f08f7954b956a9635145fd114faf5891c6cf561 | 517 | py | Python | auto-learner/__main__.py | arash-eghtesadi/auto-learner | 3583eeac0a067832cddb20d4e09ff8e6b39f0f02 | [
"BSD-3-Clause"
] | null | null | null | auto-learner/__main__.py | arash-eghtesadi/auto-learner | 3583eeac0a067832cddb20d4e09ff8e6b39f0f02 | [
"BSD-3-Clause"
] | null | null | null | auto-learner/__main__.py | arash-eghtesadi/auto-learner | 3583eeac0a067832cddb20d4e09ff8e6b39f0f02 | [
"BSD-3-Clause"
] | null | null | null | # -*- encoding: utf-8 -*-
# auto-learner v0.1.0
# my machine learning project
# Copyright © 2018, Arash Eghtesadi.
# See /LICENSE for licensing information.
"""
Main routine of auto-learner.
:Copyright: © 2018, Arash Eghtesadi.
:License: BSD (see /LICENSE).
"""
__all__ = ('main',)
def main():
"""Main routine o... | 20.68 | 76 | 0.653772 | 69 | 517 | 4.695652 | 0.652174 | 0.135802 | 0.08642 | 0.117284 | 0.320988 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028436 | 0.183752 | 517 | 24 | 77 | 21.541667 | 0.734597 | 0.531915 | 0 | 0 | 0 | 0 | 0.484444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6f1046cb7de1a96cc711bf53cf1caddfd03bee76 | 977 | py | Python | tEvash/tevash_02.py | techartorg/Advent_of_Code_2020 | ae21164bc126352e7a2e9c9c6a0017ccb9d946cc | [
"MIT"
] | 3 | 2020-11-16T15:20:11.000Z | 2020-12-11T17:01:42.000Z | tEvash/tevash_02.py | techartorg/Advent_of_Code_2020 | ae21164bc126352e7a2e9c9c6a0017ccb9d946cc | [
"MIT"
] | null | null | null | tEvash/tevash_02.py | techartorg/Advent_of_Code_2020 | ae21164bc126352e7a2e9c9c6a0017ccb9d946cc | [
"MIT"
] | 1 | 2020-12-13T04:42:44.000Z | 2020-12-13T04:42:44.000Z | import re
inputs = []
with open("inputs_2.txt") as f:
for line in f.readlines():
inputs.append(line.strip().replace(":", ""))
def count_valid_passwords_1(inputs):
valid = 0
for line in inputs:
# split based on - and " " (spaces)
minimum, maximum, letter, password = re.split(r"[-\s]", line)
if password.cou... | 27.914286 | 87 | 0.667349 | 150 | 977 | 4.26 | 0.38 | 0.062598 | 0.118936 | 0.068858 | 0.525822 | 0.381847 | 0.381847 | 0.29734 | 0.29734 | 0.29734 | 0 | 0.018564 | 0.172979 | 977 | 35 | 88 | 27.914286 | 0.772277 | 0.176049 | 0 | 0.26087 | 0 | 0 | 0.06367 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.391304 | 0.043478 | 0 | 0.130435 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.