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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2337364c0621a583c614f2512a6c4987548f574f | 437 | py | Python | leetcode/python/happy_number.py | haonancool/OnlineJudge | 43e9e7fb30ed1ed80c08ef54d32aaa6ae5652064 | [
"Apache-2.0"
] | null | null | null | leetcode/python/happy_number.py | haonancool/OnlineJudge | 43e9e7fb30ed1ed80c08ef54d32aaa6ae5652064 | [
"Apache-2.0"
] | null | null | null | leetcode/python/happy_number.py | haonancool/OnlineJudge | 43e9e7fb30ed1ed80c08ef54d32aaa6ae5652064 | [
"Apache-2.0"
] | null | null | null | class Solution(object):
def isHappy(self, n):
"""
:type n: int
:rtype: bool
"""
table = set()
while n != 1:
if n in table:
return False
else:
table.add(n)
sum = 0
while n > 0:
... | 23 | 34 | 0.340961 | 44 | 437 | 3.386364 | 0.590909 | 0.080537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037234 | 0.569794 | 437 | 19 | 35 | 23 | 0.755319 | 0.057208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.266667 | 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 |
233ed42bf0115e5edc1f5fad0d0fd1255e0ee7ed | 24,372 | py | Python | model.py | jgasthaus/gpu_python | ae044d616e22cfa10479bd5717148e91cdca5bb5 | [
"BSD-2-Clause"
] | 1 | 2016-01-27T21:52:54.000Z | 2016-01-27T21:52:54.000Z | model.py | jgasthaus/gpu_python | ae044d616e22cfa10479bd5717148e91cdca5bb5 | [
"BSD-2-Clause"
] | null | null | null | model.py | jgasthaus/gpu_python | ae044d616e22cfa10479bd5717148e91cdca5bb5 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2008-2011, Jan Gasthaus
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions... | 38.260597 | 81 | 0.575127 | 3,377 | 24,372 | 4.034054 | 0.129405 | 0.036703 | 0.016516 | 0.008735 | 0.393452 | 0.315276 | 0.24532 | 0.207664 | 0.177788 | 0.159143 | 0 | 0.016223 | 0.309536 | 24,372 | 636 | 82 | 38.320755 | 0.793321 | 0.127975 | 0 | 0.283753 | 0 | 0.002288 | 0.040685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004577 | 0.009153 | 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 |
233ff6c005185d4e5c1c1893c6042a130f890b7d | 343 | py | Python | nadlogar/documents/migrations/0007_remove_documentsort_html_fragment.py | ul-fmf/nadlogar | 4b3eb4dd0be7dba20a075b2e4bd425ffc64756e3 | [
"MIT"
] | 9 | 2019-12-19T12:11:58.000Z | 2022-02-01T15:00:16.000Z | nadlogar/documents/migrations/0007_remove_documentsort_html_fragment.py | ul-fmf/nadlogar | 4b3eb4dd0be7dba20a075b2e4bd425ffc64756e3 | [
"MIT"
] | 58 | 2019-12-18T15:07:17.000Z | 2022-01-04T12:21:44.000Z | nadlogar/documents/migrations/0007_remove_documentsort_html_fragment.py | ul-fmf/nadlogar | 4b3eb4dd0be7dba20a075b2e4bd425ffc64756e3 | [
"MIT"
] | 7 | 2019-12-18T13:29:37.000Z | 2021-07-17T13:01:30.000Z | # Generated by Django 3.2.6 on 2021-09-24 07:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("documents", "0006_auto_20210924_0613"),
]
operations = [
migrations.RemoveField(
model_name="documentsort",
name="html_fragm... | 19.055556 | 49 | 0.609329 | 36 | 343 | 5.666667 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126016 | 0.282799 | 343 | 17 | 50 | 20.176471 | 0.703252 | 0.131195 | 0 | 0 | 1 | 0 | 0.192568 | 0.077703 | 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 |
2343415fb0bf26dd085e1bfe9473a5a15110089a | 2,162 | py | Python | utils/split_evids_by_cluster.py | davmre/sigvisa | 91a1f163b8f3a258dfb78d88a07f2a11da41bd04 | [
"BSD-3-Clause"
] | null | null | null | utils/split_evids_by_cluster.py | davmre/sigvisa | 91a1f163b8f3a258dfb78d88a07f2a11da41bd04 | [
"BSD-3-Clause"
] | null | null | null | utils/split_evids_by_cluster.py | davmre/sigvisa | 91a1f163b8f3a258dfb78d88a07f2a11da41bd04 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from optparse import OptionParser
from sigvisa.treegp.gp import GP, GPCov
from sigvisa import Sigvisa
from sigvisa.source.event import get_event
from sigvisa.treegp.cover_tree import VectorTree
import pyublas
def main():
parser = OptionParser()
s = Sigvisa()
cursor = s.dbconn.... | 38.607143 | 147 | 0.676226 | 300 | 2,162 | 4.683333 | 0.37 | 0.049822 | 0.042705 | 0.027046 | 0.05694 | 0.05694 | 0.05694 | 0.05694 | 0 | 0 | 0 | 0.006893 | 0.194727 | 2,162 | 55 | 148 | 39.309091 | 0.800115 | 0 | 0 | 0 | 0 | 0 | 0.157262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.189189 | null | null | 0.054054 | 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 |
234480e438bd2c85ca7ae34d5da8cd88c72c878b | 1,048 | py | Python | fias/fiAS_track.py | cristina-mt/fias | ce264754997e14a403a9a1d3c5c6c0af646d4463 | [
"BSD-3-Clause"
] | null | null | null | fias/fiAS_track.py | cristina-mt/fias | ce264754997e14a403a9a1d3c5c6c0af646d4463 | [
"BSD-3-Clause"
] | null | null | null | fias/fiAS_track.py | cristina-mt/fias | ce264754997e14a403a9a1d3c5c6c0af646d4463 | [
"BSD-3-Clause"
] | null | null | null | # =================================================
# GUI program to analyse STEM images of filamentous structures: TRACKING
# -----------------------------------------------------------------------------
# Version 1.0
# Created: November 7th, 2017
# Last modification: January 8th, 2019
# author: @Cristina_MT
# ... | 27.578947 | 80 | 0.592557 | 121 | 1,048 | 5.008264 | 0.561983 | 0.039604 | 0.046205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046223 | 0.153626 | 1,048 | 37 | 81 | 28.324324 | 0.636979 | 0.330153 | 0 | 0 | 0 | 0 | 0.112805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.380952 | 0 | 0.47619 | 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 |
234e687b4c2d9a30aa4b74e5c45d432bddf763ca | 27,529 | py | Python | server/graphManager.py | zhanghuijun-hello/Detangler | 255c8f82fbdaa36365db1bb86fd1bf42483f9d29 | [
"MIT",
"X11",
"Unlicense"
] | 5 | 2015-07-29T22:19:09.000Z | 2021-09-26T09:57:59.000Z | server/graphManager.py | zhanghuijun-hello/Detangler | 255c8f82fbdaa36365db1bb86fd1bf42483f9d29 | [
"MIT",
"X11",
"Unlicense"
] | null | null | null | server/graphManager.py | zhanghuijun-hello/Detangler | 255c8f82fbdaa36365db1bb86fd1bf42483f9d29 | [
"MIT",
"X11",
"Unlicense"
] | 5 | 2015-12-02T14:59:38.000Z | 2020-02-15T17:57:07.000Z | #!/usr/bin/env python
'''
**************************************************************************
* This class performs most of the graph manipulations.
* @authors Benjamin Renoust, Guy Melancon
* @created May 2012
**************************************************************************
'''
import json
impo... | 44.689935 | 209 | 0.518471 | 2,569 | 27,529 | 5.535617 | 0.140522 | 0.047817 | 0.013501 | 0.044863 | 0.404894 | 0.355601 | 0.307995 | 0.27804 | 0.26721 | 0.242318 | 0 | 0.004183 | 0.374768 | 27,529 | 615 | 210 | 44.762602 | 0.822043 | 0.128483 | 0 | 0.448378 | 0 | 0 | 0.056543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017699 | null | null | 0.020649 | 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 |
235d6ef789a7fcfed4e828ec3bd555a9f55c0dc4 | 1,207 | py | Python | notebooks/beaconrunner2050/ASAPValidator.py | casparschwa/beaconrunner | d5430e08b120462beea19f65a4cf335ec9eb9134 | [
"MIT"
] | 11 | 2020-07-06T12:36:17.000Z | 2021-04-22T11:00:18.000Z | notebooks/beaconrunner2050/ASAPValidator.py | casparschwa/beaconrunner | d5430e08b120462beea19f65a4cf335ec9eb9134 | [
"MIT"
] | 3 | 2021-09-22T16:04:35.000Z | 2021-09-22T16:05:25.000Z | notebooks/beaconrunner2050/ASAPValidator.py | casparschwa/beaconrunner | d5430e08b120462beea19f65a4cf335ec9eb9134 | [
"MIT"
] | 12 | 2021-05-24T15:21:04.000Z | 2022-03-28T17:50:37.000Z | from typing import Optional
import specs
import validatorlib as vlib
class ASAPValidator(vlib.BRValidator):
# Always $lash and prosper!
validator_behaviour = "asap"
def attest(self, known_items) -> Optional[specs.Attestation]:
# Not the moment to attest
if self.data.current_atte... | 32.621622 | 89 | 0.62966 | 146 | 1,207 | 5.068493 | 0.390411 | 0.086486 | 0.075676 | 0.072973 | 0.256757 | 0.154054 | 0.078378 | 0.078378 | 0 | 0 | 0 | 0.001185 | 0.300746 | 1,207 | 37 | 90 | 32.621622 | 0.875592 | 0.169014 | 0 | 0.263158 | 0 | 0 | 0.00402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.157895 | 0 | 0.736842 | 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 |
23624728d154d6219d7807790fecc8aef8e482f2 | 9,897 | py | Python | src/regenerate_distributions.py | Rumperuu/Threat-Intelligence-Service | c72e312c9b2ad7acc0f3b564f735944b437c298b | [
"CNRI-Python"
] | null | null | null | src/regenerate_distributions.py | Rumperuu/Threat-Intelligence-Service | c72e312c9b2ad7acc0f3b564f735944b437c298b | [
"CNRI-Python"
] | null | null | null | src/regenerate_distributions.py | Rumperuu/Threat-Intelligence-Service | c72e312c9b2ad7acc0f3b564f735944b437c298b | [
"CNRI-Python"
] | null | null | null | """
Distributions (Re)generation Script
This script generates likelihood and cost distributions based on threat
intelligence data stored in a connected Neo4j graph database. It attempts to
do so for every possible permutation of (size, industry) values.
These are then consumed by `montecarlo.py`, ... | 29.720721 | 118 | 0.651106 | 1,241 | 9,897 | 5.082998 | 0.288477 | 0.040425 | 0.036779 | 0.013316 | 0.307705 | 0.245878 | 0.219562 | 0.213538 | 0.188649 | 0.140457 | 0 | 0.010903 | 0.240073 | 9,897 | 332 | 119 | 29.810241 | 0.827018 | 0.297868 | 0 | 0.169154 | 1 | 0.004975 | 0.206138 | 0.003099 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029851 | false | 0 | 0.064677 | 0 | 0.119403 | 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 |
23677a38847faaff345e3e57ebe5e7c34aeac4a3 | 1,476 | py | Python | weeabot/info.py | Anonymousey/bongbot | 3498d379ef28206f3325691e340347baa14c2c97 | [
"MIT"
] | null | null | null | weeabot/info.py | Anonymousey/bongbot | 3498d379ef28206f3325691e340347baa14c2c97 | [
"MIT"
] | null | null | null | weeabot/info.py | Anonymousey/bongbot | 3498d379ef28206f3325691e340347baa14c2c97 | [
"MIT"
] | null | null | null | # vim: set ts=2 expandtab:
# -*- coding: utf-8 -*-
"""
Module: info.py
Desc: print current stream info
Author: on_three
Email: on.three.email@gmail.com
DATE: Sat, Oct 4th 2014
This could become very elaborate, showing stream status (up/down)
and number of viewers, etc, but at present i'm just going to
display... | 22.707692 | 79 | 0.674119 | 210 | 1,476 | 4.633333 | 0.52381 | 0.04111 | 0.024666 | 0.036999 | 0.071942 | 0.071942 | 0.071942 | 0 | 0 | 0 | 0 | 0.005988 | 0.207995 | 1,476 | 64 | 80 | 23.0625 | 0.826347 | 0.125339 | 0 | 0 | 0 | 0 | 0.077684 | 0.053672 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | 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 |
2369b489eab801857e1ed7ae2c6d1938141cf46b | 8,530 | py | Python | tests/test_rpc.py | thrau/pymq | 7b924d475af8efb1e67e48a323d3f715a589a116 | [
"MIT"
] | 9 | 2019-08-20T20:31:56.000Z | 2022-03-13T23:17:05.000Z | tests/test_rpc.py | thrau/pymq | 7b924d475af8efb1e67e48a323d3f715a589a116 | [
"MIT"
] | 9 | 2019-08-20T21:13:23.000Z | 2020-10-20T11:48:21.000Z | tests/test_rpc.py | thrau/pymq | 7b924d475af8efb1e67e48a323d3f715a589a116 | [
"MIT"
] | null | null | null | import logging
import time
from typing import List
import pytest
import pymq
from pymq import NoSuchRemoteError
from pymq.exceptions import RemoteInvocationError
from pymq.typing import deep_from_dict, deep_to_dict
logger = logging.getLogger(__name__)
class EchoCommand:
param: str
def __init__(self, param... | 28.817568 | 100 | 0.661782 | 1,040 | 8,530 | 5.160577 | 0.130769 | 0.051425 | 0.072853 | 0.063723 | 0.562698 | 0.453885 | 0.377119 | 0.29346 | 0.24483 | 0.185579 | 0 | 0.0088 | 0.227315 | 8,530 | 295 | 101 | 28.915254 | 0.805492 | 0.013247 | 0 | 0.333333 | 0 | 0 | 0.13182 | 0.052775 | 0 | 0 | 0 | 0.00339 | 0.107843 | 1 | 0.205882 | false | 0.004902 | 0.039216 | 0.063725 | 0.338235 | 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 |
2372e5c093d241cc7faa942820756f058a038286 | 4,530 | py | Python | spacetrading/create_svg/generate_planet_market.py | claudiobierig/doppeldenk | 770cd5322753450834ec393a0801de1d2de2bfa2 | [
"MIT"
] | 1 | 2020-11-08T12:32:36.000Z | 2020-11-08T12:32:36.000Z | spacetrading/create_svg/generate_planet_market.py | claudiobierig/doppeldenk | 770cd5322753450834ec393a0801de1d2de2bfa2 | [
"MIT"
] | 1 | 2021-06-04T22:23:30.000Z | 2021-06-04T22:23:30.000Z | spacetrading/create_svg/generate_planet_market.py | claudiobierig/doppeldenk | 770cd5322753450834ec393a0801de1d2de2bfa2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
generate the planet market
"""
from spacetrading.create_svg.svg_commands import Svg
from spacetrading.create_svg import generate_svg_symbols
def draw_planet(svg, planet, name, fill_colour):
"""
actually draw the planet market
"""
x_shift = 30
y_shift = [0, 30, 80]
x_... | 31.901408 | 87 | 0.593377 | 567 | 4,530 | 4.380952 | 0.21164 | 0.035427 | 0.072464 | 0.059179 | 0.427134 | 0.383655 | 0.325684 | 0.125201 | 0.125201 | 0.107085 | 0 | 0.030096 | 0.288521 | 4,530 | 141 | 88 | 32.12766 | 0.740614 | 0.017439 | 0 | 0.25 | 1 | 0 | 0.09327 | 0.010163 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0.008333 | 0.016667 | 0 | 0.041667 | 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 |
2375cf7ad137352d0c5065ecc52c2afbf6c29b7b | 1,858 | py | Python | src/parser.py | Nanoteck137/Clockwoot | a2b039b2095834d4ad0a03ab030492a70ac097f5 | [
"MIT"
] | 1 | 2019-06-07T00:23:06.000Z | 2019-06-07T00:23:06.000Z | src/parser.py | Nanoteck137/Clockwoot | a2b039b2095834d4ad0a03ab030492a70ac097f5 | [
"MIT"
] | null | null | null | src/parser.py | Nanoteck137/Clockwoot | a2b039b2095834d4ad0a03ab030492a70ac097f5 | [
"MIT"
] | null | null | null | from sly import Lexer, Parser
import vm
class MyLexer(Lexer):
tokens = {IDENTIFIER, NUMBER, SEMICOLON, PLUS, MINUS,
ASTERISK, FORWARD_SLASH, EQUALS, KEYWORD_VAR}
KEYWORD_VAR = r'var'
IDENTIFIER = r'[a-zA-Z_][a-zA-Z0-9_]*'
NUMBER = r'[0-9]+'
SEMICOLON = r';'
PLUS = r'\+'
MINU... | 23.820513 | 59 | 0.577503 | 218 | 1,858 | 4.825688 | 0.261468 | 0.136882 | 0.152091 | 0.119772 | 0.358365 | 0.273764 | 0.152091 | 0.152091 | 0.152091 | 0.072243 | 0 | 0.015672 | 0.278794 | 1,858 | 77 | 60 | 24.12987 | 0.769403 | 0 | 0 | 0.229508 | 0 | 0 | 0.120022 | 0.011841 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163934 | false | 0.065574 | 0.032787 | 0 | 0.42623 | 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 |
237f62f7caaf963fa09ab8afd9854d8138aec5f6 | 696 | py | Python | testfile/upsampling.py | otsubo/CIFAR-ConvolutionalAutoEncoder-Chainer | bbda81dc7b52f42e07e9daaff38ce7453b24e008 | [
"MIT"
] | 1 | 2020-10-18T03:33:16.000Z | 2020-10-18T03:33:16.000Z | testfile/upsampling.py | otsubo/CIFAR-ConvolutionalAutoEncoder-Chainer | bbda81dc7b52f42e07e9daaff38ce7453b24e008 | [
"MIT"
] | null | null | null | testfile/upsampling.py | otsubo/CIFAR-ConvolutionalAutoEncoder-Chainer | bbda81dc7b52f42e07e9daaff38ce7453b24e008 | [
"MIT"
] | 1 | 2019-12-03T10:19:17.000Z | 2019-12-03T10:19:17.000Z | # -*- coding: utf-8 -*-
"""
Created on Sat Jul 21 22:59:41 2018
@author: user
"""
import chainer
import numpy as np
import chainer.functions as F
x = np.arange(1, 37).reshape(1, 1, 6, 6).astype(np.float32)
x = chainer.Variable(x)
print(x)
pooled_x, indexes = F.max_pooling_2d(x, ksize=2, stride=2, return_indices=Tru... | 24 | 88 | 0.752874 | 113 | 696 | 4.504425 | 0.442478 | 0.117878 | 0.117878 | 0.076621 | 0.288802 | 0.259332 | 0.259332 | 0.259332 | 0.259332 | 0.259332 | 0 | 0.05297 | 0.104885 | 696 | 29 | 89 | 24 | 0.764045 | 0.20546 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.466667 | 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 |
2380742d81c7c52a33d552870a8c7044b79787a1 | 1,322 | py | Python | src/ui_templates/wizard_depend_depend_version.py | GandaG/fomod-designer | 0bd333f33286adfaebecd5c2561f3aadaa017de0 | [
"Apache-2.0"
] | 15 | 2016-05-31T22:41:19.000Z | 2022-01-13T07:51:43.000Z | src/ui_templates/wizard_depend_depend_version.py | GandaG/fomod-designer | 0bd333f33286adfaebecd5c2561f3aadaa017de0 | [
"Apache-2.0"
] | 42 | 2016-05-20T18:30:45.000Z | 2019-07-18T20:27:37.000Z | src/ui_templates/wizard_depend_depend_version.py | GandaG/fomod-editor | 0bd333f33286adfaebecd5c2561f3aadaa017de0 | [
"Apache-2.0"
] | 3 | 2016-10-16T18:23:28.000Z | 2018-11-24T12:08:09.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'resources/templates/wizard_depend_depend_version.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(s... | 37.771429 | 106 | 0.708775 | 147 | 1,322 | 6.292517 | 0.428571 | 0.087568 | 0.069189 | 0.04973 | 0.142703 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01385 | 0.180787 | 1,322 | 34 | 107 | 38.882353 | 0.840259 | 0.167171 | 0 | 0 | 1 | 0 | 0.053065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.181818 | 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 |
23823d970e12e704ee8efa4de2524ea2db2fa2ba | 957 | py | Python | myblog/blog/migrations/0001_initial.py | LikeLion-CAU-9th/spring-concept-blog | e1e16c5489a3b96d45d91bc43e15297270293dcb | [
"MIT"
] | null | null | null | myblog/blog/migrations/0001_initial.py | LikeLion-CAU-9th/spring-concept-blog | e1e16c5489a3b96d45d91bc43e15297270293dcb | [
"MIT"
] | null | null | null | myblog/blog/migrations/0001_initial.py | LikeLion-CAU-9th/spring-concept-blog | e1e16c5489a3b96d45d91bc43e15297270293dcb | [
"MIT"
] | 3 | 2021-08-10T19:00:18.000Z | 2021-08-11T00:53:09.000Z | # Generated by Django 3.2.2 on 2021-05-10 06:15
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
... | 35.444444 | 169 | 0.592476 | 104 | 957 | 5.346154 | 0.634615 | 0.057554 | 0.068345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026279 | 0.244514 | 957 | 26 | 170 | 36.807692 | 0.742739 | 0.047022 | 0 | 0 | 1 | 0 | 0.103297 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.315789 | 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 |
88bba0c5c1fe8347368f3e71bf8ff00b73e46934 | 846 | py | Python | tests/test_question_search_result_parsing.py | regardscitoyens/senapy | 84fb9c2228006b99c396f2c5e6a15ba6bae19873 | [
"MIT"
] | 6 | 2016-04-11T06:39:43.000Z | 2021-06-18T08:52:08.000Z | tests/test_question_search_result_parsing.py | regardscitoyens/senapy | 84fb9c2228006b99c396f2c5e6a15ba6bae19873 | [
"MIT"
] | 8 | 2016-05-31T19:46:50.000Z | 2019-08-30T13:20:27.000Z | tests/test_question_search_result_parsing.py | regardscitoyens/senapy | 84fb9c2228006b99c396f2c5e6a15ba6bae19873 | [
"MIT"
] | 3 | 2016-05-31T12:36:10.000Z | 2017-11-15T19:55:04.000Z | # -*- coding: utf-8 -*-
import codecs
from senapy.parsing.question_search_result_parser import parse_question_search_result
def test_parsing():
html = codecs.open('tests/resources/question_search_result.html', encoding='iso-8859-1')
url = 'http://www.senat.fr/basile/rechercheQuestion.do?off=30&rch=qa&de=201... | 47 | 177 | 0.751773 | 131 | 846 | 4.70229 | 0.618321 | 0.194805 | 0.12987 | 0.097403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062334 | 0.108747 | 846 | 17 | 178 | 49.764706 | 0.754642 | 0.024823 | 0 | 0 | 0 | 0.090909 | 0.376671 | 0.052248 | 0 | 0 | 0 | 0 | 0.454545 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 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 |
88beffc16b35e904c09d6505bf831f2d157a3465 | 1,981 | py | Python | ads_refine/create_refine_project.py | adsabs/refine-affiliations | b51290221d22400fa8fee6d5dac98c4930fbd7f3 | [
"OLDAP-2.6",
"Python-2.0"
] | 1 | 2015-02-06T05:44:26.000Z | 2015-02-06T05:44:26.000Z | ads_refine/create_refine_project.py | adsabs/refine-affiliations | b51290221d22400fa8fee6d5dac98c4930fbd7f3 | [
"OLDAP-2.6",
"Python-2.0"
] | null | null | null | ads_refine/create_refine_project.py | adsabs/refine-affiliations | b51290221d22400fa8fee6d5dac98c4930fbd7f3 | [
"OLDAP-2.6",
"Python-2.0"
] | null | null | null | #!/usr/bin/python2.6
import os
import sys
import time
from optparse import OptionParser
from google.refine import refine
from clean_ads_affiliations import clean_ads_affs
assert sys.hexversion >= 0x02060000
SERVER = 'http://adsx.cfa.harvard.edu:3333'
def create_refine_project(path, name, pretend=False, verbose=0):... | 31.951613 | 136 | 0.648662 | 247 | 1,981 | 4.991903 | 0.437247 | 0.043796 | 0.061638 | 0.034063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013871 | 0.23574 | 1,981 | 61 | 137 | 32.47541 | 0.800528 | 0.009591 | 0 | 0 | 0 | 0 | 0.188529 | 0 | 0 | 0 | 0.005311 | 0 | 0.022727 | 0 | null | null | 0 | 0.136364 | null | null | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88c2edc9c66f0cdca479957d50dd7215d509131a | 615 | py | Python | setup.py | manu-mannattil/clut2dtstyle | 4d4cbea540de9f3b3bde209fbe1f8696e441492d | [
"Unlicense"
] | 9 | 2018-09-13T04:27:23.000Z | 2022-01-02T23:34:20.000Z | setup.py | manu-mannattil/clut2dtstyle | 4d4cbea540de9f3b3bde209fbe1f8696e441492d | [
"Unlicense"
] | null | null | null | setup.py | manu-mannattil/clut2dtstyle | 4d4cbea540de9f3b3bde209fbe1f8696e441492d | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name="clut2dtstyle",
license="Unlicense",
version="0.1",
author="Manu Mannattil",
author_email="manu.mannattil@gmail.com",
description="Script to convert Hald CLUTs to darktable styles",
py_modules=["clut2dt... | 24.6 | 67 | 0.621138 | 64 | 615 | 5.890625 | 0.828125 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027368 | 0.227642 | 615 | 24 | 68 | 25.625 | 0.766316 | 0.069919 | 0 | 0 | 0 | 0 | 0.517544 | 0.094737 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.05 | 0 | 0.05 | 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 |
88c491334363ecfc6c68f1628bee0883ccd9f9e7 | 898 | py | Python | calendar_generator/migrations/0006_resetday.py | rectory-school/rectory-apps-updated | a6d47f6d5928f0c816eb45fd229da2f9f2fa2ff1 | [
"MIT"
] | null | null | null | calendar_generator/migrations/0006_resetday.py | rectory-school/rectory-apps-updated | a6d47f6d5928f0c816eb45fd229da2f9f2fa2ff1 | [
"MIT"
] | 30 | 2021-07-16T12:54:14.000Z | 2021-12-24T16:59:04.000Z | calendar_generator/migrations/0006_resetday.py | rectory-school/rectory-apps-updated | a6d47f6d5928f0c816eb45fd229da2f9f2fa2ff1 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-19 20:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('calendar_generator', '0005_alter_calendar_options'),
]
operations = [
migrations.CreateModel(
n... | 33.259259 | 127 | 0.601336 | 91 | 898 | 5.791209 | 0.571429 | 0.060721 | 0.079696 | 0.125237 | 0.174573 | 0.174573 | 0.174573 | 0.174573 | 0 | 0 | 0 | 0.028658 | 0.261693 | 898 | 26 | 128 | 34.538462 | 0.766214 | 0.050111 | 0 | 0 | 1 | 0 | 0.173913 | 0.089307 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.25 | 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 |
88cac1cf2db3436095332a2a6eb18693a59b0f08 | 1,004 | py | Python | 04_flask_intro/test/test_api.py | coryandrewtaylor/IntroToPython | 26eb6bbd8811aeb9181054162227638b19e254f1 | [
"MIT"
] | null | null | null | 04_flask_intro/test/test_api.py | coryandrewtaylor/IntroToPython | 26eb6bbd8811aeb9181054162227638b19e254f1 | [
"MIT"
] | 5 | 2020-04-17T17:12:28.000Z | 2021-03-07T23:47:13.000Z | 04_flask_intro/test/test_api.py | coryandrewtaylor/IntroToPython | 26eb6bbd8811aeb9181054162227638b19e254f1 | [
"MIT"
] | 7 | 2020-04-23T21:46:38.000Z | 2021-03-09T00:05:40.000Z | def test_greet_user(client, test_strings):
for s in test_strings:
_route = f"/api/v1/greeting/{s}"
r = client.get(_route)
assert r.status_code == 200
assert r.json == {"greeting": "Hello", "user": s}
def test_add_int_success(client, test_ints):
_data = {"add": test_ints}
r ... | 31.375 | 57 | 0.651394 | 155 | 1,004 | 3.941935 | 0.23871 | 0.091653 | 0.106383 | 0.139116 | 0.456628 | 0.456628 | 0.456628 | 0.456628 | 0.405892 | 0.405892 | 0 | 0.024661 | 0.192231 | 1,004 | 32 | 58 | 31.375 | 0.72873 | 0 | 0 | 0.375 | 0 | 0 | 0.119403 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.208333 | false | 0 | 0 | 0 | 0.208333 | 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 |
88da8643ac576a43d9d46ba217a9282045a5ba68 | 3,040 | py | Python | setup.py | ikalnytskyi/em | 3e7c20c16814bed86409212e0a2a9fee49398994 | [
"BSD-3-Clause"
] | null | null | null | setup.py | ikalnytskyi/em | 3e7c20c16814bed86409212e0a2a9fee49398994 | [
"BSD-3-Clause"
] | 1 | 2018-10-18T17:49:13.000Z | 2018-10-18T17:49:13.000Z | setup.py | ikalnytskyi/em | 3e7c20c16814bed86409212e0a2a9fee49398994 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
"""
Em
--
Em is a terminal tool that prints FILE(s), or standard input to standard
output and highlights the expressions that are matched the PATTERN.
The expression will be highlighted iff the terminal is ANSI-compatible.
Em is Cool
``````````
.. code:: bash
$ tail -f /p... | 23.937008 | 78 | 0.593421 | 357 | 3,040 | 4.943978 | 0.448179 | 0.086119 | 0.113314 | 0.040793 | 0.251558 | 0.182436 | 0.169972 | 0.169972 | 0.169972 | 0.169972 | 0 | 0.007947 | 0.254934 | 3,040 | 126 | 79 | 24.126984 | 0.771302 | 0.195395 | 0 | 0.293333 | 0 | 0 | 0.296174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0.053333 | 0.08 | 0 | 0.213333 | 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 |
88e6289afe035056ed74d3dd93dfce6766f5f5c7 | 401 | py | Python | tests/util.py | alexsilva/django-npm | 8d5c55c0219fda074ceabdd93b3806e65a008d9e | [
"MIT"
] | null | null | null | tests/util.py | alexsilva/django-npm | 8d5c55c0219fda074ceabdd93b3806e65a008d9e | [
"MIT"
] | null | null | null | tests/util.py | alexsilva/django-npm | 8d5c55c0219fda074ceabdd93b3806e65a008d9e | [
"MIT"
] | 1 | 2019-10-17T15:13:13.000Z | 2019-10-17T15:13:13.000Z | import os
from django.conf import settings
import django
def configure_settings():
settings.configure(
DEBUG=True,
INSTALLED_APPS=['npm'],
NPM_EXECUTABLE_PATH=os.environ.get('NPM_EXECUTABLE_PATH', 'npm'),
CACHES={
'default': {
'BACKEND': 'django.core.ca... | 21.105263 | 73 | 0.583541 | 40 | 401 | 5.7 | 0.65 | 0.114035 | 0.149123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.296758 | 401 | 18 | 74 | 22.277778 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0.204489 | 0.107232 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | true | 0 | 0.2 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88e81d74f7c94f8645b9faca1575d321f2ec48d6 | 2,683 | py | Python | rlxnix/plugins/efish/baseline.py | jgrewe/relacsed_nix | 8c5bf486018891baf886635608677faf2487fd48 | [
"BSD-3-Clause"
] | null | null | null | rlxnix/plugins/efish/baseline.py | jgrewe/relacsed_nix | 8c5bf486018891baf886635608677faf2487fd48 | [
"BSD-3-Clause"
] | 3 | 2021-11-04T17:32:35.000Z | 2021-11-07T11:10:35.000Z | rlxnix/plugins/efish/baseline.py | jgrewe/relacsed_nix | 8c5bf486018891baf886635608677faf2487fd48 | [
"BSD-3-Clause"
] | null | null | null | import logging
import numpy as np
from .efish_ephys_repro import EfishEphys
class Baseline(EfishEphys):
"""Represents the run of the Baseline repro of the efish plugin-set.
"""
_repro_name = "BaselineActivity"
def __init__(self, repro_run, traces, relacs_nix_version=1.1) -> None:
super().__i... | 33.962025 | 182 | 0.61312 | 351 | 2,683 | 4.575499 | 0.353276 | 0.024907 | 0.024284 | 0.02802 | 0.118306 | 0.073474 | 0.036115 | 0.036115 | 0 | 0 | 0 | 0.008529 | 0.300783 | 2,683 | 78 | 183 | 34.397436 | 0.847548 | 0.39508 | 0 | 0.151515 | 0 | 0 | 0.101156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0 | 0.090909 | 0 | 0.515152 | 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 |
88e86a165bc8af8615ecf882a5209b22de9aecc5 | 1,258 | py | Python | blogs/migrations/0001_initial.py | daniil-lebedev/N3code-site | bda415bd2140f582ae22101b55f34fc2786d7b45 | [
"MIT"
] | 3 | 2021-05-30T18:26:40.000Z | 2021-07-17T11:45:53.000Z | blogs/migrations/0001_initial.py | daniil-lebedev/N3code-site | bda415bd2140f582ae22101b55f34fc2786d7b45 | [
"MIT"
] | 5 | 2021-06-06T16:13:42.000Z | 2022-02-10T12:10:23.000Z | blogs/migrations/0001_initial.py | daniil-lebedev/N3code-site | bda415bd2140f582ae22101b55f34fc2786d7b45 | [
"MIT"
] | 8 | 2021-06-02T15:00:46.000Z | 2021-07-15T21:27:33.000Z | # Generated by Django 3.2.3 on 2021-05-17 15:31
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Blogs',
fields=[
... | 34 | 117 | 0.557234 | 124 | 1,258 | 5.564516 | 0.467742 | 0.052174 | 0.04058 | 0.063768 | 0.333333 | 0.333333 | 0.237681 | 0.237681 | 0.237681 | 0.237681 | 0 | 0.029445 | 0.298092 | 1,258 | 36 | 118 | 34.944444 | 0.751982 | 0.035771 | 0 | 0.344828 | 1 | 0 | 0.065235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.206897 | 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 |
88ef5220f71a9bb493ff8c46c52c8179ab59c4c0 | 507 | py | Python | server/accounts/migrations/0004_userdata_primaryfield.py | cristicismas/top-budget | d61db578287b2f77c12032045fca21e58c9ae1eb | [
"MIT"
] | null | null | null | server/accounts/migrations/0004_userdata_primaryfield.py | cristicismas/top-budget | d61db578287b2f77c12032045fca21e58c9ae1eb | [
"MIT"
] | 11 | 2019-12-05T15:21:40.000Z | 2021-10-05T22:08:17.000Z | server/accounts/migrations/0004_userdata_primaryfield.py | cristicismas/top-budget | d61db578287b2f77c12032045fca21e58c9ae1eb | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-09-25 14:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_auto_20190629_1623'),
]
operations = [
migrations.AddField(
model_name='userdata',
name='primaryFie... | 26.684211 | 164 | 0.619329 | 51 | 507 | 6.058824 | 0.784314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084833 | 0.232742 | 507 | 18 | 165 | 28.166667 | 0.709512 | 0.088757 | 0 | 0 | 1 | 0 | 0.245652 | 0.05 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 |
88f349a60a782c3197475116d0068eb5bfe4f4a8 | 2,229 | py | Python | src/SocketServer.py | iamyyl/DDNS | 537babb8a0f2debc65326f12ff3cc15d73692f98 | [
"Apache-2.0"
] | null | null | null | src/SocketServer.py | iamyyl/DDNS | 537babb8a0f2debc65326f12ff3cc15d73692f98 | [
"Apache-2.0"
] | null | null | null | src/SocketServer.py | iamyyl/DDNS | 537babb8a0f2debc65326f12ff3cc15d73692f98 | [
"Apache-2.0"
] | null | null | null | import socket
import select
fd_to_socket = {}
READ_ONLY = ( select.POLLIN | select.POLLPRI | select.POLLHUP | select.POLLERR)
READ_WRITE = (READ_ONLY|select.POLLOUT)
poller = select.poll()
server = None
IP = '127.0.0.1'
Port = 7002
def getAddress ():
return IP, Port
def initServer(ip=IP, port=Port):
global se... | 30.121622 | 79 | 0.544639 | 237 | 2,229 | 5.004219 | 0.341772 | 0.026981 | 0.067454 | 0.063238 | 0.077572 | 0.052277 | 0 | 0 | 0 | 0 | 0 | 0.018492 | 0.369224 | 2,229 | 74 | 80 | 30.121622 | 0.825036 | 0.032301 | 0 | 0.151515 | 0 | 0 | 0.004178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0.060606 | 0.030303 | 0.030303 | 0.151515 | 0.015152 | 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 |
88fcbd1db9da3e509077f5b7cc6ecfe05a708ea8 | 3,289 | py | Python | pyprika/__init__.py | muppetize/pyprika | c1a4c086ee99935f5e7cf7361a4552fe69fe4b44 | [
"MIT"
] | 7 | 2016-03-10T22:23:28.000Z | 2021-01-17T03:25:50.000Z | pyprika/__init__.py | muppetize/pyprika | c1a4c086ee99935f5e7cf7361a4552fe69fe4b44 | [
"MIT"
] | 1 | 2017-01-19T21:35:23.000Z | 2017-01-27T04:11:44.000Z | pyprika/__init__.py | muppetize/pyprika | c1a4c086ee99935f5e7cf7361a4552fe69fe4b44 | [
"MIT"
] | 4 | 2016-11-19T21:48:41.000Z | 2022-02-18T01:23:23.000Z | """
A Python package for recipe parsing and management.
"""
import yaml
try:
from cStringIO import StringIO
except ImportError:
from io import StringIO
from .exceptions import LoadError, ParseError, PyprikaError, FieldError # noqa
from .ingredient import Ingredient # noqa
from .quantity import Quantity # n... | 33.907216 | 79 | 0.644573 | 447 | 3,289 | 4.706935 | 0.33557 | 0.023764 | 0.019962 | 0.015209 | 0.125475 | 0.08365 | 0.03327 | 0.03327 | 0 | 0 | 0 | 0 | 0.270295 | 3,289 | 96 | 80 | 34.260417 | 0.876667 | 0.588325 | 0 | 0.060606 | 0 | 0 | 0.035867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.272727 | 0 | 0.515152 | 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 |
88fcc966d96adb9a2926e13a38e7ae9f04bcd664 | 1,202 | py | Python | tests/molecular/molecules/constructed_molecule/test_get_bond_infos.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | 21 | 2018-04-12T16:25:24.000Z | 2022-02-14T23:05:43.000Z | tests/molecular/molecules/constructed_molecule/test_get_bond_infos.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | 8 | 2019-03-19T12:36:36.000Z | 2020-11-11T12:46:00.000Z | tests/molecular/molecules/constructed_molecule/test_get_bond_infos.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | 5 | 2018-08-07T13:00:16.000Z | 2021-11-01T00:55:10.000Z | def test_get_bond_infos(case_data):
"""
Test :meth:`.ConstructedMolecule.get_bond_infos`.
Parameters
----------
case_data : :class:`.CaseData`
A test case. Holds the constructed molecule to test and the
correct number of new bonds.
Returns
-------
None : :class:`NoneTyp... | 23.568627 | 67 | 0.645591 | 141 | 1,202 | 5.148936 | 0.29078 | 0.235537 | 0.115702 | 0.066116 | 0.552342 | 0.30303 | 0.134986 | 0 | 0 | 0 | 0 | 0.002198 | 0.242928 | 1,202 | 50 | 68 | 24.04 | 0.795604 | 0.433444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 0 | 1 |
88febcb95df370f538bcc67acef3a199df882aef | 1,734 | py | Python | HEIC en JPG.py | PictorSomni/Image_manipulations | 7b91dd8514a2bb4383308c199e03e26539cef430 | [
"MIT"
] | null | null | null | HEIC en JPG.py | PictorSomni/Image_manipulations | 7b91dd8514a2bb4383308c199e03e26539cef430 | [
"MIT"
] | null | null | null | HEIC en JPG.py | PictorSomni/Image_manipulations | 7b91dd8514a2bb4383308c199e03e26539cef430 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#############################################################
# IMPORTS #
#############################################################
import os
from PIL import Image
import pyheif
#####################################################... | 36.893617 | 107 | 0.336794 | 123 | 1,734 | 4.642276 | 0.528455 | 0.084063 | 0.042032 | 0.056042 | 0.070053 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004132 | 0.302191 | 1,734 | 47 | 107 | 36.893617 | 0.467769 | 0.132065 | 0 | 0.071429 | 0 | 0 | 0.056745 | 0.026767 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.107143 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88ffda9c63fb74eb6eeb58819eb9951a55e13efa | 17,863 | py | Python | tplbuild/config.py | msg555/tplbuild | 1517fa97b17df4883f6885a7fb3ccfe017576e53 | [
"BSD-3-Clause"
] | null | null | null | tplbuild/config.py | msg555/tplbuild | 1517fa97b17df4883f6885a7fb3ccfe017576e53 | [
"BSD-3-Clause"
] | null | null | null | tplbuild/config.py | msg555/tplbuild | 1517fa97b17df4883f6885a7fb3ccfe017576e53 | [
"BSD-3-Clause"
] | null | null | null | import functools
import os
import ssl
import uuid
from typing import Any, Dict, List, Literal, Optional, Tuple
import jinja2
import pydantic
import yaml
from .exceptions import TplBuildException, TplBuildTemplateException
RESERVED_PROFILE_KEYS = {
"begin_stage",
"platform",
}
def _normalize_rel_path(path: ... | 40.141573 | 96 | 0.666014 | 2,381 | 17,863 | 4.925242 | 0.199496 | 0.023194 | 0.016884 | 0.020466 | 0.170547 | 0.12322 | 0.097041 | 0.091584 | 0.075467 | 0.066257 | 0 | 0.003792 | 0.247103 | 17,863 | 444 | 97 | 40.231982 | 0.868169 | 0.512232 | 0 | 0.156098 | 0 | 0.004878 | 0.107109 | 0.006844 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0.004878 | 0.043902 | 0 | 0.526829 | 0.004878 | 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 |
000066c365ae5f522b2bf93ad57e924347136b00 | 2,780 | py | Python | expr_parse_tree.py | PlaskED/z3-python | e433af3ce7ebc9547630e4528ce6d38d1a5aefd6 | [
"MIT"
] | null | null | null | expr_parse_tree.py | PlaskED/z3-python | e433af3ce7ebc9547630e4528ce6d38d1a5aefd6 | [
"MIT"
] | null | null | null | expr_parse_tree.py | PlaskED/z3-python | e433af3ce7ebc9547630e4528ce6d38d1a5aefd6 | [
"MIT"
] | null | null | null | from z3 import *
CONNECTIVE_OPS = [Z3_OP_NOT,Z3_OP_AND,Z3_OP_OR,Z3_OP_IMPLIES,Z3_OP_IFF,Z3_OP_ITE]
REL_OPS = [Z3_OP_EQ,Z3_OP_LE,Z3_OP_LT,Z3_OP_GE,Z3_OP_GT]
OPERATORS = CONNECTIVE_OPS + REL_OPS
# var is tuple (type, name)
def createVar(var):
t = var[0]
n = var[1]
if t=="int":
return Int('%s' % n)
elif t=="... | 24.60177 | 83 | 0.614748 | 418 | 2,780 | 3.997608 | 0.272727 | 0.026332 | 0.017953 | 0.008378 | 0.026332 | 0.026332 | 0 | 0 | 0 | 0 | 0 | 0.010237 | 0.226978 | 2,780 | 112 | 84 | 24.821429 | 0.767334 | 0.057194 | 0 | 0.057471 | 0 | 0 | 0.039373 | 0.00841 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011494 | null | null | 0.068966 | 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 |
000c601e3d23cebb7bc381bcb7e6d2611c317a74 | 1,608 | py | Python | medicine/users/views.py | walkeknow/medicine | b5f68ca0c820eb5d46852c3d72e926af59079745 | [
"MIT"
] | null | null | null | medicine/users/views.py | walkeknow/medicine | b5f68ca0c820eb5d46852c3d72e926af59079745 | [
"MIT"
] | null | null | null | medicine/users/views.py | walkeknow/medicine | b5f68ca0c820eb5d46852c3d72e926af59079745 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect, HttpResponseRedirect
from django.contrib import messages
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse
def user_... | 34.212766 | 71 | 0.643657 | 174 | 1,608 | 5.890805 | 0.350575 | 0.058537 | 0.066341 | 0.061463 | 0.091707 | 0.091707 | 0.091707 | 0.091707 | 0 | 0 | 0 | 0.000814 | 0.236318 | 1,608 | 46 | 72 | 34.956522 | 0.833876 | 0.167289 | 0 | 0.1875 | 0 | 0 | 0.104511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.1875 | 0 | 0.40625 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0011a0ed8ff671ab9d03956548a06f24d014ab20 | 600 | py | Python | src/collect/migrations/0006_alter_courseinfo_name.py | YanaPIIDXer/HorseRaceInfo | af5e8734d31da6e829371209366c0c58585ab373 | [
"MIT"
] | null | null | null | src/collect/migrations/0006_alter_courseinfo_name.py | YanaPIIDXer/HorseRaceInfo | af5e8734d31da6e829371209366c0c58585ab373 | [
"MIT"
] | null | null | null | src/collect/migrations/0006_alter_courseinfo_name.py | YanaPIIDXer/HorseRaceInfo | af5e8734d31da6e829371209366c0c58585ab373 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-14 19:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('collect', '0005_alter_courseinfo_name'),
]
operations = [
migrations.AlterField(
model_name='courseinfo',
name='name... | 31.578947 | 259 | 0.565 | 65 | 600 | 5.138462 | 0.861538 | 0.083832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044872 | 0.22 | 600 | 18 | 260 | 33.333333 | 0.668803 | 0.075 | 0 | 0 | 1 | 0 | 0.240506 | 0.047016 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 |
0015c071b2b5e64af9f371ce3c6931d15a42c7e7 | 296 | py | Python | python-basic/set/set_comprehension.py | nkhn37/python-tech-sample-source | e8aea7ed3d810494682b3c2dde952ddd0f7acf84 | [
"MIT"
] | null | null | null | python-basic/set/set_comprehension.py | nkhn37/python-tech-sample-source | e8aea7ed3d810494682b3c2dde952ddd0f7acf84 | [
"MIT"
] | null | null | null | python-basic/set/set_comprehension.py | nkhn37/python-tech-sample-source | e8aea7ed3d810494682b3c2dde952ddd0f7acf84 | [
"MIT"
] | null | null | null | """集合基礎
集合内包表記の使い方
[説明ページ]
https://tech.nkhn37.net/python-set-comprehension/#i
[内包表記まとめページ]
https://tech.nkhn37.net/python-comprehension/
"""
data = [10, 15, 20, 25, 30, 35, 40, 45, 50, 10, 15, 20, 25, 30]
# 集合内包表記
data_set = {dt for dt in data if dt % 2 == 0}
print(f'data_set : {data_set}')
| 19.733333 | 63 | 0.655405 | 51 | 296 | 3.745098 | 0.607843 | 0.109948 | 0.157068 | 0.188482 | 0.356021 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134921 | 0.148649 | 296 | 14 | 64 | 21.142857 | 0.623016 | 0.486486 | 0 | 0 | 0 | 0 | 0.144828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
001dcd97b7d4ca23335c414e226aaa113e8d7e20 | 4,418 | py | Python | src/smooth.py | DQSSSSS/FluidSimulation | 92ec2b45bc3ebaf39eeeec37f07fb7cc2988ce6d | [
"MIT"
] | null | null | null | src/smooth.py | DQSSSSS/FluidSimulation | 92ec2b45bc3ebaf39eeeec37f07fb7cc2988ce6d | [
"MIT"
] | 1 | 2021-11-12T03:16:59.000Z | 2021-11-12T04:47:50.000Z | src/smooth.py | DQSSSSS/FluidSimulation | 92ec2b45bc3ebaf39eeeec37f07fb7cc2988ce6d | [
"MIT"
] | null | null | null | import taichi as ti
PI = 3.1415926
# http://www.glowinggoo.com/sph/bin/kelager.06.pdf
@ti.data_oriented
class W_poly6:
@staticmethod
@ti.func
def W(r_vec, h):
r2 = r_vec.dot(r_vec)
r2 = ti.max(r2, 1e-10)
k = 0.0
if r2 <= h ** 2:
k = ((h ** 2) - r2) ** 3
... | 27.104294 | 125 | 0.4579 | 807 | 4,418 | 2.358116 | 0.099133 | 0.077772 | 0.044141 | 0.121387 | 0.809249 | 0.573305 | 0.456122 | 0.423542 | 0.393589 | 0.385181 | 0 | 0.088359 | 0.354459 | 4,418 | 162 | 126 | 27.271605 | 0.578892 | 0.016523 | 0 | 0.636364 | 0 | 0 | 0.001843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.007576 | 0 | 0.212121 | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 |
0020df4e44bafa386b7d0a3f1bc4997c91a46d31 | 747 | py | Python | Ezan.py | Jandro46t/Python | 4f604215df085ad18dabfa52fe7863bad97863ab | [
"Apache-2.0"
] | 2 | 2021-04-16T11:58:39.000Z | 2021-04-16T11:58:39.000Z | Ezan.py | Jandro46t/Python | 4f604215df085ad18dabfa52fe7863bad97863ab | [
"Apache-2.0"
] | null | null | null | Ezan.py | Jandro46t/Python | 4f604215df085ad18dabfa52fe7863bad97863ab | [
"Apache-2.0"
] | null | null | null | import requests
import json
url_sehir = "https://ezanvakti.herokuapp.com/sehirler/2"
r = requests.get(url_sehir)
j = r.json()
sehir_adi = input("Şehir:")
ilce_adi = input("İlçe:")
for sehir in j:
if sehir_adi == sehir["SehirAdi"]:
ID = sehir["SehirID"]
print(ID)
url_ilce = "https://ezanva... | 29.88 | 69 | 0.634538 | 110 | 747 | 4.227273 | 0.427273 | 0.090323 | 0.148387 | 0.167742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00335 | 0.200803 | 747 | 25 | 70 | 29.88 | 0.773869 | 0 | 0 | 0 | 0 | 0 | 0.276243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 0.12 | 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 |
0024d2528361880227a045d4f7462059c46deebc | 661 | py | Python | post/migrations/0003_auto_20201018_1851.py | hieudmg/django_bloom | 1c244a2f753ed6babb710c83bfd7c3610fef9bb4 | [
"MIT"
] | null | null | null | post/migrations/0003_auto_20201018_1851.py | hieudmg/django_bloom | 1c244a2f753ed6babb710c83bfd7c3610fef9bb4 | [
"MIT"
] | null | null | null | post/migrations/0003_auto_20201018_1851.py | hieudmg/django_bloom | 1c244a2f753ed6babb710c83bfd7c3610fef9bb4 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-10-18 11:51
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('post', '0002_auto_20200920_1217'),
]
operations = [
... | 23.607143 | 66 | 0.591528 | 64 | 661 | 5.921875 | 0.65625 | 0.05277 | 0.126649 | 0.147757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064935 | 0.301059 | 661 | 27 | 67 | 24.481481 | 0.755411 | 0.065053 | 0 | 0.238095 | 1 | 0 | 0.133117 | 0.037338 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.238095 | 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 |
00307ed891cc3bbf4d17b34c5cc7d2164137d3c2 | 17,263 | py | Python | channels/italiafilmvideohd.py | sodicarus/channels | d77402f4f460ea6daa66959aa5384aaffbff70b5 | [
"MIT"
] | null | null | null | channels/italiafilmvideohd.py | sodicarus/channels | d77402f4f460ea6daa66959aa5384aaffbff70b5 | [
"MIT"
] | null | null | null | channels/italiafilmvideohd.py | sodicarus/channels | d77402f4f460ea6daa66959aa5384aaffbff70b5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# ------------------------------------------------------------
# StreamOnDemand-PureITA / XBMC Plugin
# Canal para italiafilmvideohd
# http://www.mimediacenter.info/foro/viewtopic.php?f=36&t=7808
# ------------------------------------------------------------
import base64
import re
import urlpar... | 40.618824 | 154 | 0.553148 | 1,701 | 17,263 | 5.460905 | 0.164021 | 0.027129 | 0.029067 | 0.043923 | 0.616213 | 0.569598 | 0.525568 | 0.444827 | 0.404672 | 0.378835 | 0 | 0.006652 | 0.216301 | 17,263 | 424 | 155 | 40.714623 | 0.679947 | 0.109077 | 0 | 0.423333 | 0 | 0.01 | 0.273935 | 0.059984 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006667 | 0.04 | null | null | 0.003333 | 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 |
003742f13f9356a906c197142f7555948cd82cbe | 3,964 | py | Python | portfolio/Python/scrapy/bosch_russian/220volt.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | null | null | null | portfolio/Python/scrapy/bosch_russian/220volt.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | null | null | null | portfolio/Python/scrapy/bosch_russian/220volt.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | 5 | 2016-03-22T07:40:46.000Z | 2021-05-30T16:12:21.000Z | import csv
import os
import json
from string import join
from scrapy import log
from scrapy.spider import BaseSpider
from scrapy.selector import HtmlXPathSelector
from scrapy.http import Request, HtmlResponse, FormRequest
from scrapy.utils.url import urljoin_rfc
from product_spiders.items import Product, ProductLo... | 39.247525 | 184 | 0.693239 | 553 | 3,964 | 4.848101 | 0.269439 | 0.058187 | 0.065647 | 0.062663 | 0.430063 | 0.384931 | 0.300634 | 0.279746 | 0.279746 | 0.279746 | 0 | 0.006511 | 0.147578 | 3,964 | 100 | 185 | 39.64 | 0.786919 | 0.138244 | 0 | 0.225352 | 0 | 0.028169 | 0.197944 | 0.144493 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.140845 | 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 |
0039f4a3f7a0d18a245aaaaea7e026a31503a73d | 453 | py | Python | src/api/celery.py | Anfevazu/library-api-R5 | 6930226776d0146b7daa34151ee98457f202dbc5 | [
"MIT"
] | null | null | null | src/api/celery.py | Anfevazu/library-api-R5 | 6930226776d0146b7daa34151ee98457f202dbc5 | [
"MIT"
] | null | null | null | src/api/celery.py | Anfevazu/library-api-R5 | 6930226776d0146b7daa34151ee98457f202dbc5 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
import os
from celery import Celery
from django.conf import settings
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'config.settings.'+os.environ.get('APP_ENV', 'local'))
app = Celery('app')
app.config_from_object('django.conf:settings')
app.autodiscover_t... | 26.647059 | 76 | 0.739514 | 62 | 453 | 5.193548 | 0.548387 | 0.062112 | 0.10559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002538 | 0.130243 | 453 | 16 | 77 | 28.3125 | 0.814721 | 0 | 0 | 0 | 0 | 0 | 0.192053 | 0.048565 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.416667 | 0.083333 | 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 |
003d3548a8cf8ece40ea1e41ad2dd7fe0e795e6b | 398 | py | Python | heltour/tournament/migrations/0086_auto_20160901_2352.py | zbidwell/heltour | 3895142695096a81cc65c3fefb7d4501ed796f46 | [
"MIT"
] | 41 | 2016-08-17T19:58:42.000Z | 2021-11-08T10:52:07.000Z | heltour/tournament/migrations/0086_auto_20160901_2352.py | zbidwell/heltour | 3895142695096a81cc65c3fefb7d4501ed796f46 | [
"MIT"
] | 257 | 2016-08-17T22:29:05.000Z | 2022-01-13T00:42:05.000Z | heltour/tournament/migrations/0086_auto_20160901_2352.py | zbidwell/heltour | 3895142695096a81cc65c3fefb7d4501ed796f46 | [
"MIT"
] | 31 | 2016-09-23T23:36:14.000Z | 2022-01-14T17:05:08.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-09-01 23:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tournament', '0085_auto_20160901_2341'),
]
operations = [
migrations.AlterUniqueTogether(
name='gameselection',... | 19.9 | 59 | 0.600503 | 41 | 398 | 5.707317 | 0.902439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108844 | 0.261307 | 398 | 19 | 60 | 20.947368 | 0.687075 | 0.168342 | 0 | 0 | 1 | 0 | 0.185976 | 0.070122 | 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 |
004ed29e696ed2aef36a881fbaccde0ba220306d | 889 | py | Python | nanopores/geometries/W_3D_geo/params_geo.py | jhwnkim/nanopores | 98b3dbb5d36464fbdc03f59d224d38e4255324ce | [
"MIT"
] | 8 | 2016-09-07T01:59:31.000Z | 2021-03-06T12:14:31.000Z | nanopores/geometries/W_3D_geo/params_geo.py | jhwnkim/nanopores | 98b3dbb5d36464fbdc03f59d224d38e4255324ce | [
"MIT"
] | null | null | null | nanopores/geometries/W_3D_geo/params_geo.py | jhwnkim/nanopores | 98b3dbb5d36464fbdc03f59d224d38e4255324ce | [
"MIT"
] | 4 | 2017-12-06T17:43:01.000Z | 2020-05-01T05:41:14.000Z | """ --- geometry parameters for Wei et al stochastic sensing --- """
nm = 1e-0
# @TODO maybe include tolc in parent file
tolc = 1e-2*nm # tolerance for coordinate comparisons
dim = 3
# molecule radius
rMolecule = 5*nm
# effective pore radius ~ d^SAM_p/2
r0 = 13*nm
# aperture angle in degrees
angle = 40
# SiN mem... | 20.204545 | 68 | 0.730034 | 139 | 889 | 4.661871 | 0.589928 | 0.067901 | 0.087963 | 0.12963 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048343 | 0.185602 | 889 | 43 | 69 | 20.674419 | 0.846685 | 0.642295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 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 | 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 |
004faf5abb1b54060367d19932230f631232c8a0 | 254 | py | Python | Testing/send_test.py | jaronoff97/Flask-Boilerplate | f750f10274f84ba6682e65b3e9eb7d900813ee21 | [
"CC0-1.0"
] | null | null | null | Testing/send_test.py | jaronoff97/Flask-Boilerplate | f750f10274f84ba6682e65b3e9eb7d900813ee21 | [
"CC0-1.0"
] | null | null | null | Testing/send_test.py | jaronoff97/Flask-Boilerplate | f750f10274f84ba6682e65b3e9eb7d900813ee21 | [
"CC0-1.0"
] | null | null | null | import requests
sample_user = {"latitude" : 42.2561110, "longitude" : -71.0741010, "uid" : "0" , "first_name" : "alex", "last_name" : "iansiti"}
send_url = "http://flask-macoder.rhcloud.com/near"
r = requests.post(send_url, sample_user)
print(r.json()) | 36.285714 | 128 | 0.685039 | 36 | 254 | 4.666667 | 0.805556 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084444 | 0.114173 | 254 | 7 | 129 | 36.285714 | 0.662222 | 0 | 0 | 0 | 0 | 0 | 0.345098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
cc363d4217d466323d8e71cf244f2eebe4bc0f84 | 6,251 | py | Python | course_valve/valve_core.py | sharpblade4/course_valve | 52f1ad5600c17bb9fe876b6cf1ed91151ce41498 | [
"Apache-2.0"
] | null | null | null | course_valve/valve_core.py | sharpblade4/course_valve | 52f1ad5600c17bb9fe876b6cf1ed91151ce41498 | [
"Apache-2.0"
] | null | null | null | course_valve/valve_core.py | sharpblade4/course_valve | 52f1ad5600c17bb9fe876b6cf1ed91151ce41498 | [
"Apache-2.0"
] | null | null | null | from typing import Tuple, Pattern
from urllib.request import urlopen
import os
from ftplib import FTP
from tempfile import TemporaryDirectory
from hashlib import sha256
import re
from course_valve.valve_defs import (
TARGET_FTP,
ENCRYPTED_PASSWORD,
TARGET_FILE_NAME,
IDENTIFIER,
NO_IDENTIFIER,
F... | 41.125 | 99 | 0.648216 | 847 | 6,251 | 4.393152 | 0.171192 | 0.070949 | 0.027949 | 0.034399 | 0.328406 | 0.272507 | 0.239183 | 0.138672 | 0.083848 | 0.069874 | 0 | 0.00451 | 0.255159 | 6,251 | 151 | 100 | 41.397351 | 0.794674 | 0 | 0 | 0.090226 | 0 | 0 | 0.067029 | 0.030235 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.112782 | 0.06015 | 0.015038 | 0.338346 | 0.015038 | 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 |
cc3793708ffd8065396601385980cfad2d4740fe | 1,782 | py | Python | tests/test_base.py | mwibrow/vlnm | f3fc6ba1a207431bc12a457aab4ab847a584a66f | [
"AFL-3.0"
] | null | null | null | tests/test_base.py | mwibrow/vlnm | f3fc6ba1a207431bc12a457aab4ab847a584a66f | [
"AFL-3.0"
] | 4 | 2018-09-25T06:57:29.000Z | 2019-09-09T13:22:00.000Z | tests/test_base.py | mwibrow/vlnm | f3fc6ba1a207431bc12a457aab4ab847a584a66f | [
"AFL-3.0"
] | 1 | 2020-10-20T05:42:45.000Z | 2020-10-20T05:42:45.000Z | """
Tests for the base module
"""
from vlnm.normalizers.base import (
FormantGenericNormalizer,
FormantSpecificNormalizer,
FormantsTransformNormalizer,
Normalizer)
from tests.helpers import Helper
class TestBaseNormalizers(Helper.TestNormalizerBase):
"""
Tests for the base Normalizer class.
... | 32.4 | 90 | 0.685746 | 160 | 1,782 | 7.525 | 0.30625 | 0.034884 | 0.089701 | 0.10299 | 0.307309 | 0.242525 | 0.179402 | 0.179402 | 0 | 0 | 0 | 0 | 0.216611 | 1,782 | 54 | 91 | 33 | 0.862464 | 0.200337 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 1 | 0.206897 | false | 0 | 0.068966 | 0 | 0.344828 | 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 |
cc4f335d8706e5da167e24cbfe0bd8271e69c190 | 3,846 | py | Python | pgAdmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/foreign_data_wrappers/foreign_servers/user_mappings/tests/utils.py | WeilerWebServices/PostgreSQL | ae594ed077bebbad1be3c1d95c38b7c2c2683e8c | [
"PostgreSQL"
] | null | null | null | pgAdmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/foreign_data_wrappers/foreign_servers/user_mappings/tests/utils.py | WeilerWebServices/PostgreSQL | ae594ed077bebbad1be3c1d95c38b7c2c2683e8c | [
"PostgreSQL"
] | null | null | null | pgAdmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/foreign_data_wrappers/foreign_servers/user_mappings/tests/utils.py | WeilerWebServices/PostgreSQL | ae594ed077bebbad1be3c1d95c38b7c2c2683e8c | [
"PostgreSQL"
] | null | null | null | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2020, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
import os
import... | 33.736842 | 77 | 0.50286 | 375 | 3,846 | 4.944 | 0.296 | 0.065264 | 0.03452 | 0.038835 | 0.435814 | 0.435814 | 0.417476 | 0.417476 | 0.368932 | 0.368932 | 0 | 0.005417 | 0.375975 | 3,846 | 113 | 78 | 34.035398 | 0.767083 | 0.180707 | 0 | 0.414286 | 0 | 0 | 0.151139 | 0.009662 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0.085714 | 0.071429 | 0 | 0.157143 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cc4fff28ee4d94fb2b52c842939ccc5bea70cd6b | 1,467 | py | Python | src/litedesk/lib/airwatch/base.py | litedesk/litedesk-lib-airwatch | 19c47a50d606f966497a6e24fd892bca1bf11354 | [
"Apache-2.0"
] | 1 | 2016-12-22T07:10:45.000Z | 2016-12-22T07:10:45.000Z | src/litedesk/lib/airwatch/base.py | litedesk/litedesk-lib-airwatch | 19c47a50d606f966497a6e24fd892bca1bf11354 | [
"Apache-2.0"
] | null | null | null | src/litedesk/lib/airwatch/base.py | litedesk/litedesk-lib-airwatch | 19c47a50d606f966497a6e24fd892bca1bf11354 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2014, Deutsche Telekom AG - Laboratories (T-Labs)
#
# 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
#
# Unl... | 34.928571 | 92 | 0.656442 | 192 | 1,467 | 4.890625 | 0.552083 | 0.063898 | 0.051118 | 0.034079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.263804 | 1,467 | 41 | 93 | 35.780488 | 0.862037 | 0.410361 | 0 | 0 | 0 | 0 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | 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 |
cc539e34ac77acde6025be508c15b403c3e70d57 | 4,925 | py | Python | stanCode_projects/boggle_game/add2.py | lindcrj/stanCode_projects | 2ce2f7b51fb1e6940ab2b62b05edccfef66739b4 | [
"MIT"
] | null | null | null | stanCode_projects/boggle_game/add2.py | lindcrj/stanCode_projects | 2ce2f7b51fb1e6940ab2b62b05edccfef66739b4 | [
"MIT"
] | null | null | null | stanCode_projects/boggle_game/add2.py | lindcrj/stanCode_projects | 2ce2f7b51fb1e6940ab2b62b05edccfef66739b4 | [
"MIT"
] | null | null | null | """
File: add2.py
Name:
------------------------
TODO:
"""
import sys
class ListNode:
def __init__(self, data=0, pointer=None):
self.val = data
self.next = pointer
def add_2_numbers(l1: ListNode, l2: ListNode) -> ListNode:
#######################
# #
# TOD... | 27.361111 | 64 | 0.431878 | 590 | 4,925 | 3.445763 | 0.135593 | 0.070831 | 0.070339 | 0.075258 | 0.618298 | 0.557796 | 0.538613 | 0.504673 | 0.419085 | 0.407772 | 0 | 0.044637 | 0.413198 | 4,925 | 179 | 65 | 27.513966 | 0.658824 | 0.064772 | 0 | 0.55 | 0 | 0 | 0.063027 | 0.030626 | 0 | 0 | 0 | 0.011173 | 0 | 1 | 0.028571 | false | 0 | 0.007143 | 0 | 0.057143 | 0.135714 | 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 |
cc540b688ab45280f7ea07bb3f403f279507c6f1 | 1,261 | py | Python | backend/collages/__init__.py | dyachoksa/collage-generator | a5682869488f8e5ebbca56a58a7f425dada215ed | [
"MIT"
] | null | null | null | backend/collages/__init__.py | dyachoksa/collage-generator | a5682869488f8e5ebbca56a58a7f425dada215ed | [
"MIT"
] | null | null | null | backend/collages/__init__.py | dyachoksa/collage-generator | a5682869488f8e5ebbca56a58a7f425dada215ed | [
"MIT"
] | null | null | null | # Collage Generator Backend Application
import logging.config
from starlette.applications import Starlette
from starlette.middleware import Middleware
from starlette.middleware.authentication import AuthenticationMiddleware
from starlette.middleware.gzip import GZipMiddleware
from starlette_context import plugins
from... | 26.829787 | 77 | 0.780333 | 130 | 1,261 | 7.476923 | 0.430769 | 0.080247 | 0.070988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003724 | 0.148295 | 1,261 | 46 | 78 | 27.413043 | 0.901304 | 0.063442 | 0 | 0 | 0 | 0 | 0.022959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.342857 | 0 | 0.342857 | 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 |
cc575e937de9aeef001a485a8da20d00adb1974e | 2,298 | py | Python | codechef/long-challenge/may21/LKDNGOLF.py | ramanaditya/data-structure-and-algorithms | 8dcfeb011e76b2b38b54842e8ccc7a59728141f8 | [
"MIT"
] | 81 | 2020-05-22T14:22:04.000Z | 2021-12-18T10:11:23.000Z | codechef/long-challenge/may21/LKDNGOLF.py | techhub-community/data-structure-and-algorithms | 8dcfeb011e76b2b38b54842e8ccc7a59728141f8 | [
"MIT"
] | 4 | 2020-08-06T21:08:00.000Z | 2021-03-31T16:07:50.000Z | codechef/long-challenge/may21/LKDNGOLF.py | techhub-community/data-structure-and-algorithms | 8dcfeb011e76b2b38b54842e8ccc7a59728141f8 | [
"MIT"
] | 37 | 2020-05-22T14:25:21.000Z | 2021-12-30T03:13:13.000Z | """
[Golf](https://www.codechef.com/MAY21C/problems/LKDNGOLF)
It's a lockdown. You’re bored in your house and are playing golf in the hallway.
The hallway has N+2 tiles numbered from 0 to N+1 from left to right. There is a hole on tile number x. You hit the ball
standing on tile 0. When you hit the ball, it bounces a... | 29.088608 | 119 | 0.679721 | 454 | 2,298 | 3.453744 | 0.356828 | 0.049107 | 0.017219 | 0.024872 | 0.164541 | 0.15051 | 0.122449 | 0.122449 | 0.122449 | 0.122449 | 0 | 0.03809 | 0.234552 | 2,298 | 78 | 120 | 29.461538 | 0.845367 | 0.829417 | 0 | 0.117647 | 0 | 0 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc61c5747c8e80d78815a2359b70248eed632e99 | 495 | py | Python | app/main/__init__.py | ChegeDaniella/Pitches | 40b6bea69fe8774ca39e6199e9e80f32429503fd | [
"MIT"
] | null | null | null | app/main/__init__.py | ChegeDaniella/Pitches | 40b6bea69fe8774ca39e6199e9e80f32429503fd | [
"MIT"
] | null | null | null | app/main/__init__.py | ChegeDaniella/Pitches | 40b6bea69fe8774ca39e6199e9e80f32429503fd | [
"MIT"
] | null | null | null | from flask import Blueprint,Flask
main = Blueprint('main',__name__)
from app.main import views
from flask_bootstrap import Bootstrap
from flask_sqlalchemy import SQLAlchemy
bootstrap= Bootstrap()
db = SQLAlchemy()
def create_app():
app= Flask(__name__)
#initializing flask extensions
bootstrap.init_app(... | 16.5 | 43 | 0.739394 | 62 | 495 | 5.645161 | 0.33871 | 0.077143 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19798 | 495 | 29 | 44 | 17.068966 | 0.881612 | 0.109091 | 0 | 0 | 0 | 0 | 0.009153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 0 | 0.5 | 0.285714 | 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 |
cc64f175ff792df752b089599b18bdca929aecf6 | 922 | py | Python | tests/dsl/set_unit_test.py | chen0040/pysie | 5e5edeae214009b963405cb1e5c948980bb4ae93 | [
"MIT"
] | 2 | 2019-04-13T19:50:46.000Z | 2020-10-11T07:26:29.000Z | tests/dsl/set_unit_test.py | chen0040/pysie | 5e5edeae214009b963405cb1e5c948980bb4ae93 | [
"MIT"
] | null | null | null | tests/dsl/set_unit_test.py | chen0040/pysie | 5e5edeae214009b963405cb1e5c948980bb4ae93 | [
"MIT"
] | 1 | 2020-06-15T10:30:47.000Z | 2020-06-15T10:30:47.000Z | import unittest
from pysie.dsl.set import TernarySearchTrie
class TernarySearchTrieUnitTest(unittest.TestCase):
def test_map(self):
trie = TernarySearchTrie()
self.assertTrue(trie.is_empty())
trie.put('hello', 'world')
self.assertTrue(trie.contains_key('hello'))
self.asse... | 30.733333 | 54 | 0.614967 | 109 | 922 | 5.073395 | 0.40367 | 0.162749 | 0.17179 | 0.141049 | 0.260398 | 0.130199 | 0.130199 | 0 | 0 | 0 | 0 | 0.018362 | 0.232104 | 922 | 30 | 55 | 30.733333 | 0.762712 | 0 | 0 | 0 | 0 | 0 | 0.057421 | 0 | 0 | 0 | 0 | 0 | 0.458333 | 1 | 0.041667 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc676366b3fceddf1caf5ecfe78cd52bb3870d2d | 2,567 | py | Python | ecommerce/api/tests/views_tests.py | MayaraMachado/sns_and_sqs_project | 4fcc5bbb5f6841543ea8dda353dd85a43024f683 | [
"MIT"
] | 5 | 2020-06-22T21:29:54.000Z | 2021-11-01T20:12:04.000Z | ecommerce/api/tests/views_tests.py | MayaraMachado/sns_and_sqs_project | 4fcc5bbb5f6841543ea8dda353dd85a43024f683 | [
"MIT"
] | 5 | 2021-03-30T13:38:15.000Z | 2021-09-22T19:10:27.000Z | ecommerce/api/tests/views_tests.py | MayaraMachado/sns_and_sqs_project | 4fcc5bbb5f6841543ea8dda353dd85a43024f683 | [
"MIT"
] | null | null | null | import pytest
import json
from django.urls import reverse
def test_view_get_page_not_found(client):
response = client.get('/')
assert response.status_code == 404
def test_purchase_without_authentication(client, db):
url = reverse('purchase')
body = {
"products" : [
{
... | 35.652778 | 105 | 0.700818 | 307 | 2,567 | 5.589577 | 0.260586 | 0.073427 | 0.06993 | 0.083916 | 0.414918 | 0.350233 | 0.327506 | 0.187646 | 0.187646 | 0.141026 | 0 | 0.055423 | 0.184651 | 2,567 | 71 | 106 | 36.15493 | 0.764453 | 0 | 0 | 0.290323 | 0 | 0 | 0.136735 | 0.028048 | 0 | 0 | 0 | 0 | 0.145161 | 1 | 0.112903 | false | 0.096774 | 0.048387 | 0 | 0.16129 | 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 |
cc7140d5ec453c262b76c09e1ad92c183427766b | 237 | py | Python | backend/routers/home.py | b1team/Python-OCR | fe8237978ab0eec18db3bd674dae772ec7c48a3c | [
"MIT"
] | null | null | null | backend/routers/home.py | b1team/Python-OCR | fe8237978ab0eec18db3bd674dae772ec7c48a3c | [
"MIT"
] | null | null | null | backend/routers/home.py | b1team/Python-OCR | fe8237978ab0eec18db3bd674dae772ec7c48a3c | [
"MIT"
] | null | null | null | from flask import Blueprint, render_template
home_bp = Blueprint(
"home_bp",
__name__,
)
@home_bp.route("/")
def home():
return render_template("index.html", title="Chuyển ảnh thành văn bản", submit_localtion="/scanner")
| 18.230769 | 103 | 0.704641 | 31 | 237 | 5.064516 | 0.741935 | 0.11465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160338 | 237 | 12 | 104 | 19.75 | 0.788945 | 0 | 0 | 0 | 0 | 0 | 0.21097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.375 | 0.25 | 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 |
cc775b2e46440022feb26f05b0cd7bb859a90f65 | 3,516 | py | Python | ecua_vac.py | andradf/ecua_vac | acc7153bc8d0a7fcf08352f79c4112386dd72744 | [
"MIT"
] | null | null | null | ecua_vac.py | andradf/ecua_vac | acc7153bc8d0a7fcf08352f79c4112386dd72744 | [
"MIT"
] | null | null | null | ecua_vac.py | andradf/ecua_vac | acc7153bc8d0a7fcf08352f79c4112386dd72744 | [
"MIT"
] | null | null | null | import tweepy
import time
import pandas as pd
import datetime
import re
from auth import consumer_key,consumer_secret,key,secret,user_ID
def trimtweet(tweet):
if(tweet.length <= 280):
return tweet
return tweet.substring(0, 277) + "..."
# twitter auth process
auth = tweepy.OAuthHandler(consumer_key, c... | 44.506329 | 255 | 0.685154 | 533 | 3,516 | 4.388368 | 0.39212 | 0.023942 | 0.020522 | 0.015391 | 0.25823 | 0.25823 | 0.25823 | 0.25823 | 0.25823 | 0.236853 | 0 | 0.033477 | 0.209898 | 3,516 | 78 | 256 | 45.076923 | 0.808495 | 0.152446 | 0 | 0.237288 | 0 | 0.084746 | 0.28557 | 0.009103 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.101695 | null | null | 0.067797 | 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 |
cc78ed70d34e15e55d4c89613eb5c38a3da4d0ac | 1,277 | py | Python | py_lecture/scripts/rosbag_analisys_pose.py | yasutomo57jp/ros_lecture | 811afaded5a5780fa1291bd41196d80446da1e53 | [
"MIT"
] | 110 | 2018-11-13T15:04:35.000Z | 2022-03-27T20:48:03.000Z | py_lecture/scripts/rosbag_analisys_pose.py | yasutomo57jp/ros_lecture | 811afaded5a5780fa1291bd41196d80446da1e53 | [
"MIT"
] | 4 | 2020-07-16T13:32:22.000Z | 2022-01-11T01:08:12.000Z | py_lecture/scripts/rosbag_analisys_pose.py | yasutomo57jp/ros_lecture | 811afaded5a5780fa1291bd41196d80446da1e53 | [
"MIT"
] | 57 | 2019-07-02T23:43:17.000Z | 2022-03-27T20:47:28.000Z | #!/usr/bin/env python
import rosbag
import numpy as np
import matplotlib.pyplot as plt
import sys
import os
args = sys.argv
print(len(args))
assert len(args)>=2, "you must specify the argument."
# get path
filename=os.path.normpath(os.path.join(os.getcwd(),args[1]))
print(filename)
# read from bag file
bag = rosbag.... | 23.648148 | 74 | 0.651527 | 245 | 1,277 | 3.281633 | 0.367347 | 0.130597 | 0.029851 | 0.034826 | 0.049751 | 0.012438 | 0.012438 | 0.012438 | 0.012438 | 0 | 0 | 0.050279 | 0.158966 | 1,277 | 53 | 75 | 24.09434 | 0.698324 | 0.050901 | 0 | 0 | 0 | 0 | 0.065669 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0 | null | null | 0 | 0.121951 | null | null | 0.04878 | 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 |
cc7af5edf4c13756157ef5543e25175963fa44f3 | 1,748 | py | Python | ambra/temporal_feature_extraction.py | vene/ambra | e220dbb332b86ed60ecb025efbefbb33080118b7 | [
"BSD-2-Clause"
] | 1 | 2016-04-14T07:11:00.000Z | 2016-04-14T07:11:00.000Z | ambra/temporal_feature_extraction.py | vene/ambra | e220dbb332b86ed60ecb025efbefbb33080118b7 | [
"BSD-2-Clause"
] | null | null | null | ambra/temporal_feature_extraction.py | vene/ambra | e220dbb332b86ed60ecb025efbefbb33080118b7 | [
"BSD-2-Clause"
] | null | null | null | '''
Created on Dec 21, 2014
@author: Alina Maria Ciobanu
'''
import numpy
import re
TOKEN_NER_TAGS = ['DATE', 'NUMBER']
WIKI_NER_TAGS = ['PERSON', 'ORGANIZATION', 'LOCATION']
DEFAULT_YEAR_VALUE = 1858 # the mean of the lowest and highest value for all possible intervals, hardcoded for now
def get_tem... | 28.655738 | 115 | 0.627574 | 241 | 1,748 | 4.257261 | 0.33195 | 0.062378 | 0.070175 | 0.061404 | 0.376218 | 0.309942 | 0.280702 | 0.222222 | 0.072125 | 0.072125 | 0 | 0.025954 | 0.250572 | 1,748 | 60 | 116 | 29.133333 | 0.757252 | 0.049199 | 0 | 0.289474 | 0 | 0 | 0.072364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.026316 | 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 |
cc82f61e6c3b07e04c0a74f6e8e72511be3bc55f | 646 | py | Python | leetcode/978/978.py | OhYee/code-questions | 5f1c64422ecc21b0399d54e5ca7d0caa911a417f | [
"MIT"
] | null | null | null | leetcode/978/978.py | OhYee/code-questions | 5f1c64422ecc21b0399d54e5ca7d0caa911a417f | [
"MIT"
] | null | null | null | leetcode/978/978.py | OhYee/code-questions | 5f1c64422ecc21b0399d54e5ca7d0caa911a417f | [
"MIT"
] | null | null | null | class Solution:
def maxTurbulenceSize(self, arr: List[int]) -> int:
n = len(arr)
if n == 1:
return 1
def calc(a, b):
if a == b:
return 0
elif a > b:
return -1
else:
return 1
res = 0
... | 24.846154 | 55 | 0.351393 | 80 | 646 | 2.8375 | 0.35 | 0.092511 | 0.070485 | 0.123348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054983 | 0.549536 | 646 | 25 | 56 | 25.84 | 0.725086 | 0 | 0 | 0.24 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0 | 0 | 0.32 | 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 |
cc85a1c4d80d0d0402facd00a8044ff49b268555 | 443 | py | Python | osmaxx/excerptexport/migrations/0042_remove_outputfile_file_extension.py | tyrasd/osmaxx | da4454083d17b2ef8b0623cad62e39992b6bd52a | [
"MIT"
] | 27 | 2015-03-30T14:17:26.000Z | 2022-02-19T17:30:44.000Z | osmaxx/excerptexport/migrations/0042_remove_outputfile_file_extension.py | tyrasd/osmaxx | da4454083d17b2ef8b0623cad62e39992b6bd52a | [
"MIT"
] | 483 | 2015-03-09T16:58:03.000Z | 2022-03-14T09:29:06.000Z | osmaxx/excerptexport/migrations/0042_remove_outputfile_file_extension.py | tyrasd/osmaxx | da4454083d17b2ef8b0623cad62e39992b6bd52a | [
"MIT"
] | 6 | 2015-04-07T07:38:30.000Z | 2020-04-01T12:45:53.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-06-07 13:30
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('excerptexport', '0041_set_date_to_past_for_existing_exports_20160531_2235'),
]
operations = ... | 22.15 | 86 | 0.656885 | 50 | 443 | 5.5 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094955 | 0.239278 | 443 | 19 | 87 | 23.315789 | 0.721068 | 0.151242 | 0 | 0 | 1 | 0 | 0.24933 | 0.150134 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 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 |
cc8abb2907e577ffd204f1ea8583e97ab1d687f1 | 410 | py | Python | lib/googlecloudsdk/compute/subcommands/http_health_checks/__init__.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/compute/subcommands/http_health_checks/__init__.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/compute/subcommands/http_health_checks/__init__.py | IsaacHuang/google-cloud-sdk | 52afa5d1a75dff08f4f5380c5cccc015bf796ca5 | [
"Apache-2.0"
] | 2 | 2020-07-25T05:03:06.000Z | 2020-11-04T04:55:57.000Z | # Copyright 2014 Google Inc. All Rights Reserved.
"""Commands for reading and manipulating HTTP health checks."""
from googlecloudsdk.calliope import base
class HttpHealthChecks(base.Group):
"""Read and manipulate HTTP health checks for load balanced instances."""
HttpHealthChecks.detailed_help = {
'brief': ... | 27.333333 | 75 | 0.736585 | 48 | 410 | 6.270833 | 0.645833 | 0.099668 | 0.159468 | 0.139535 | 0.378738 | 0.378738 | 0.378738 | 0.378738 | 0.378738 | 0.378738 | 0 | 0.011869 | 0.178049 | 410 | 14 | 76 | 29.285714 | 0.881306 | 0.42439 | 0 | 0 | 0 | 0 | 0.315556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc8c3ccbb426c49972b991935c3bbbd09c451c5d | 52,014 | py | Python | pycofe/tasks/basic.py | ekr-ccp4/jsCoFE | b9424733fb567938927509bc667ef24ed60ddd8c | [
"MIT"
] | null | null | null | pycofe/tasks/basic.py | ekr-ccp4/jsCoFE | b9424733fb567938927509bc667ef24ed60ddd8c | [
"MIT"
] | null | null | null | pycofe/tasks/basic.py | ekr-ccp4/jsCoFE | b9424733fb567938927509bc667ef24ed60ddd8c | [
"MIT"
] | 1 | 2021-02-25T06:54:15.000Z | 2021-02-25T06:54:15.000Z | ##!/usr/bin/python
#
# ============================================================================
#
# 06.02.18 <-- Date of Last Modification.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ----------------------------------------------------------------------------
#
# BASIC TASK WRAPPER
#
# Command-line... | 40.103315 | 100 | 0.514381 | 5,301 | 52,014 | 4.880023 | 0.122618 | 0.035718 | 0.012989 | 0.012989 | 0.497739 | 0.423055 | 0.373149 | 0.341683 | 0.308477 | 0.287526 | 0 | 0.011408 | 0.339389 | 52,014 | 1,296 | 101 | 40.134259 | 0.741451 | 0.153497 | 0 | 0.392111 | 0 | 0.00116 | 0.074278 | 0.011449 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00116 | 0.034803 | null | null | 0.00116 | 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 |
cc8e8a561ef5687c9cc7d4a828c190e58f83f661 | 1,099 | py | Python | waitinglist/urls.py | konradb/django-waitinglist | 81e2b3ba81d96c377f4167b0bbd01bb023f7b97a | [
"MIT"
] | null | null | null | waitinglist/urls.py | konradb/django-waitinglist | 81e2b3ba81d96c377f4167b0bbd01bb023f7b97a | [
"MIT"
] | null | null | null | waitinglist/urls.py | konradb/django-waitinglist | 81e2b3ba81d96c377f4167b0bbd01bb023f7b97a | [
"MIT"
] | null | null | null | from django.conf.urls import url
from django.views.generic import TemplateView
from . import views
urlpatterns = [
url(r"^list_signup/$", views.list_signup, name="waitinglist_list_signup"),
url(r"^ajax_list_signup/$", views.ajax_list_signup, name="waitinglist_ajax_list_signup"),
url(r"^survey/thanks/$", ... | 57.842105 | 128 | 0.744313 | 145 | 1,099 | 5.372414 | 0.234483 | 0.231065 | 0.070603 | 0.065469 | 0.174583 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080983 | 1,099 | 18 | 129 | 61.055556 | 0.771287 | 0 | 0 | 0 | 0 | 0 | 0.450409 | 0.322111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 0 | 1 |
cc8eeef4e955218a7296a121d1dfb2153b85aa22 | 1,162 | py | Python | nokogiri/tqdm_load.py | nat-chan/nokogiri | 476c2989e2fbe80b2937923fbef0211459ec738f | [
"MIT"
] | null | null | null | nokogiri/tqdm_load.py | nat-chan/nokogiri | 476c2989e2fbe80b2937923fbef0211459ec738f | [
"MIT"
] | null | null | null | nokogiri/tqdm_load.py | nat-chan/nokogiri | 476c2989e2fbe80b2937923fbef0211459ec738f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pathlib import Path
from nokogiri.which_env import which_env
from pickle import Unpickler
class TQDMBytesReader(object):
def __init__(self, fd, tqdm, total, desc=''):
self.fd = fd
self.tqdm = tqdm(total=total)
self.tqdm.set_description(des... | 31.405405 | 77 | 0.60241 | 152 | 1,162 | 4.427632 | 0.361842 | 0.071322 | 0.038633 | 0.053492 | 0.106984 | 0.106984 | 0.106984 | 0.106984 | 0 | 0 | 0 | 0.003563 | 0.275387 | 1,162 | 37 | 78 | 31.405405 | 0.795724 | 0.037005 | 0 | 0.121212 | 0 | 0 | 0.001789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.151515 | 0.030303 | 0.515152 | 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 |
cc9b021bad66790ffb26790ca7f0b624083f6bad | 830 | py | Python | test_dataloader.py | dsoselia/Continual-Learning-Benchmark | b3393aa9eb9a6956a6560ee15904a2cdb046e4c7 | [
"MIT"
] | null | null | null | test_dataloader.py | dsoselia/Continual-Learning-Benchmark | b3393aa9eb9a6956a6560ee15904a2cdb046e4c7 | [
"MIT"
] | null | null | null | test_dataloader.py | dsoselia/Continual-Learning-Benchmark | b3393aa9eb9a6956a6560ee15904a2cdb046e4c7 | [
"MIT"
] | null | null | null | # %%
from collections import OrderedDict
import dataloaders.base
from dataloaders.datasetGen import SplitGen, PermutedGen
train_dataset, val_dataset = dataloaders.base.__dict__["CIFAR10"]('data', False)
# %%
print(train_dataset)
# %%
train_dataset_splits, val_dataset_splits, task_output_space = SplitGen(train_data... | 28.62069 | 98 | 0.474699 | 72 | 830 | 5.152778 | 0.527778 | 0.161725 | 0.080863 | 0.118598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.445783 | 830 | 28 | 99 | 29.642857 | 0.795652 | 0.020482 | 0 | 0 | 0 | 0 | 0.01737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cc9ccfbe858fbd860be65559e189e269ad336b72 | 4,631 | py | Python | zsalt/pretty_redshift.py | dmnielsen/zSALT | 938904ef8f331d5e047bd00a04a4424e982552e2 | [
"BSD-3-Clause"
] | null | null | null | zsalt/pretty_redshift.py | dmnielsen/zSALT | 938904ef8f331d5e047bd00a04a4424e982552e2 | [
"BSD-3-Clause"
] | null | null | null | zsalt/pretty_redshift.py | dmnielsen/zSALT | 938904ef8f331d5e047bd00a04a4424e982552e2 | [
"BSD-3-Clause"
] | null | null | null | import sys
import pyfits
import numpy as np
from PySpectrograph import Spectrum
from PySpectrograph.Utilities.fit import interfit
import pylab as pl
def ncor(x, y):
"""Calculate the normalized correlation of two arrays"""
d=np.correlate(x,x)*np.correlate(y,y)
if d<=0: return 0
return np.correlate(x,y)... | 30.668874 | 105 | 0.649536 | 743 | 4,631 | 3.982503 | 0.263795 | 0.075701 | 0.016898 | 0.015208 | 0.275093 | 0.243663 | 0.166948 | 0.135181 | 0.135181 | 0.111524 | 0 | 0.055063 | 0.172533 | 4,631 | 150 | 106 | 30.873333 | 0.717119 | 0.119197 | 0 | 0.085714 | 0 | 0 | 0.052245 | 0.005776 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.038095 | 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 |
cc9ffda493fbb21c5940dac2d68d30da4ab49dc6 | 12,522 | py | Python | cnn_theano_overlap.py | nanfeng1101/DBQA | 56b0a320e4641f46e80db78039d4ca79e9037d7e | [
"MIT"
] | 7 | 2017-08-14T02:40:04.000Z | 2019-04-24T13:44:44.000Z | cnn_theano_overlap.py | nanfeng1101/DBQA | 56b0a320e4641f46e80db78039d4ca79e9037d7e | [
"MIT"
] | null | null | null | cnn_theano_overlap.py | nanfeng1101/DBQA | 56b0a320e4641f46e80db78039d4ca79e9037d7e | [
"MIT"
] | 2 | 2018-05-19T01:26:38.000Z | 2019-12-04T07:58:09.000Z | #-*- coding:utf-8 -*-
__author__ = "ChenJun"
import theano
import theano.tensor as T
import numpy as np
import cPickle as pickle
from theano_models.qa_cnn import CNNModule
from theano_models.layers import InteractLayer, MLP, MLPDropout, BatchNormLayer
from theano_models.optimizer import Optimizer
from data_process.load... | 47.977011 | 169 | 0.645504 | 1,772 | 12,522 | 4.243792 | 0.132054 | 0.046676 | 0.019947 | 0.032846 | 0.391223 | 0.308511 | 0.29016 | 0.246941 | 0.226463 | 0.170479 | 0 | 0.021342 | 0.225443 | 12,522 | 260 | 170 | 48.161538 | 0.753995 | 0.041367 | 0 | 0.040609 | 0 | 0 | 0.08391 | 0.039572 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060914 | null | null | 0.071066 | 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 |
cca9c51d89c5109307f0fb8fc9ff82831401ed2e | 1,668 | py | Python | hard-gists/a027a9fc5aac66e6a382/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/a027a9fc5aac66e6a382/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/a027a9fc5aac66e6a382/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | # -*- coding: utf-8 -*-
# Author: Massimo Menichinelli
# Homepage: http://www.openp2pdesign.org
# License: MIT
#
import wx
import serial
# A new custom class that extends the wx.Frame
class MyFrame(wx.Frame):
def __init__(self, parent, title):
super(MyFrame, self).__init__(parent, title=title,
... | 23.492958 | 71 | 0.601918 | 211 | 1,668 | 4.654028 | 0.511848 | 0.02444 | 0.02444 | 0.026477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039049 | 0.293765 | 1,668 | 70 | 72 | 23.828571 | 0.794567 | 0.30036 | 0 | 0 | 0 | 0 | 0.066318 | 0.018325 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060606 | null | null | 0.030303 | 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 |
ccb4877c2d894de84894acf89db676779bb0786b | 1,212 | py | Python | census_data_downloader/tables/percapitaincome.py | JoeGermuska/census-data-downloader | 0098b9e522b78ad0e30301c9845ecbcc903c62e4 | [
"MIT"
] | 170 | 2019-04-01T01:41:42.000Z | 2022-03-25T21:22:06.000Z | census_data_downloader/tables/percapitaincome.py | JoeGermuska/census-data-downloader | 0098b9e522b78ad0e30301c9845ecbcc903c62e4 | [
"MIT"
] | 68 | 2019-03-31T22:52:43.000Z | 2021-08-30T16:33:54.000Z | census_data_downloader/tables/percapitaincome.py | JoeGermuska/census-data-downloader | 0098b9e522b78ad0e30301c9845ecbcc903c62e4 | [
"MIT"
] | 34 | 2019-04-02T17:57:16.000Z | 2022-03-28T17:22:35.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*
import collections
from census_data_downloader.core.tables import BaseTableConfig
from census_data_downloader.core.decorators import register
@register
class PerCapitaIncomeDownloader(BaseTableConfig):
# inflation adjusted
PROCESSED_TABLE_NAME = "percapitaincome"
... | 26.933333 | 65 | 0.782178 | 107 | 1,212 | 8.598131 | 0.46729 | 0.097826 | 0.141304 | 0.168478 | 0.359783 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0.028046 | 0.146865 | 1,212 | 44 | 66 | 27.545455 | 0.861702 | 0.113036 | 0 | 0.185185 | 0 | 0 | 0.155431 | 0.019663 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.740741 | 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 |
ccc1a90b2d04001d5b226461f9c2d2ad26294437 | 4,177 | py | Python | sdlc.py | phillipfurtado/mysearchengine | d28ad99b2729fba9df3f5f606c9aeafa2b257280 | [
"Apache-2.0"
] | null | null | null | sdlc.py | phillipfurtado/mysearchengine | d28ad99b2729fba9df3f5f606c9aeafa2b257280 | [
"Apache-2.0"
] | null | null | null | sdlc.py | phillipfurtado/mysearchengine | d28ad99b2729fba9df3f5f606c9aeafa2b257280 | [
"Apache-2.0"
] | null | null | null | import sys
import math
import operator
import re
from os import listdir
from os.path import isfile, join
from PIL import Image
IMAGE_WIDTH = 355
IMAGE_HEIGHT = 355
BORDER_DISCOUNT = 0.11
BLOCK_SIZE = 36
BLOCKS_SIZE = BLOCK_SIZE * BLOCK_SIZE
X_BLOCK_SIZE = IMAGE_WIDTH / BLOCK_SIZE;
Y_BLOCK_SIZE = IMAGE_HEIGHT / BLO... | 27.123377 | 142 | 0.627484 | 450 | 4,177 | 5.68 | 0.34 | 0.059859 | 0.015649 | 0.014085 | 0.219092 | 0.171362 | 0.171362 | 0.171362 | 0.171362 | 0.133803 | 0 | 0.01076 | 0.288006 | 4,177 | 153 | 143 | 27.300654 | 0.848689 | 0.002394 | 0 | 0.121212 | 0 | 0 | 0.116659 | 0.006241 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020202 | 0.070707 | null | null | 0.080808 | 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 |
ccc5fd6159d96d352e343e6b001e8aa4a53ede03 | 514 | py | Python | DGF/auth/_authenticator.py | LonguCodes/DGF | bd344eff34cbe6438f71631e2cc103f1c4584e09 | [
"MIT"
] | null | null | null | DGF/auth/_authenticator.py | LonguCodes/DGF | bd344eff34cbe6438f71631e2cc103f1c4584e09 | [
"MIT"
] | null | null | null | DGF/auth/_authenticator.py | LonguCodes/DGF | bd344eff34cbe6438f71631e2cc103f1c4584e09 | [
"MIT"
] | null | null | null | from django.conf import settings
from ..defaults import AUTHENTICATORS
from ..utils import get_module
authenticators = []
all_args = []
def collect_authenticators():
global authenticators, all_args
authenticators = list(map(get_module, getattr(settings, 'GRAHENE_ADDONS_AUTHENTICATORS', AUTHENTICATORS)))
... | 34.266667 | 110 | 0.774319 | 59 | 514 | 6.610169 | 0.440678 | 0.053846 | 0.107692 | 0.164103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145914 | 514 | 14 | 111 | 36.714286 | 0.888383 | 0 | 0 | 0 | 0 | 0 | 0.05642 | 0.05642 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.363636 | 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 |
cccac18c6d9e0d8ce330a9adb50aea424e46871f | 197 | py | Python | Function/xargs.py | tusharxoxoxo/Python-practice | 2d75750029655c65271fd51a8d175285719a62e6 | [
"MIT"
] | null | null | null | Function/xargs.py | tusharxoxoxo/Python-practice | 2d75750029655c65271fd51a8d175285719a62e6 | [
"MIT"
] | null | null | null | Function/xargs.py | tusharxoxoxo/Python-practice | 2d75750029655c65271fd51a8d175285719a62e6 | [
"MIT"
] | null | null | null | def increment(*numbers):
print(numbers)
def dance(*numbers):
total = 1
for number in numbers:
total *= number
return total
increment(3,4,5,6)
print(dance(1,2,3,4,5,6))
| 13.133333 | 26 | 0.614213 | 31 | 197 | 3.903226 | 0.516129 | 0.198347 | 0.049587 | 0.066116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073826 | 0.243655 | 197 | 14 | 27 | 14.071429 | 0.738255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.333333 | 0.222222 | 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 |
ccd003a4c9bdfc241fd64f093ae2afa4fde92196 | 2,198 | py | Python | Torrents/migrations/0001_initial.py | tabish-ali/torrent_site | 58e2e7f943a28b16134b26f450b54e9a066e7114 | [
"MIT"
] | 1 | 2019-12-17T07:36:46.000Z | 2019-12-17T07:36:46.000Z | Torrents/migrations/0001_initial.py | tabish-ali/torrent_site | 58e2e7f943a28b16134b26f450b54e9a066e7114 | [
"MIT"
] | null | null | null | Torrents/migrations/0001_initial.py | tabish-ali/torrent_site | 58e2e7f943a28b16134b26f450b54e9a066e7114 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-06-06 16:06
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Comments',
fields=[
('id', models.AutoField... | 41.471698 | 114 | 0.560055 | 208 | 2,198 | 5.740385 | 0.336538 | 0.053601 | 0.090452 | 0.120603 | 0.461474 | 0.416248 | 0.340871 | 0.340871 | 0.278894 | 0.278894 | 0 | 0.022595 | 0.295268 | 2,198 | 52 | 115 | 42.269231 | 0.748225 | 0.020473 | 0 | 0.422222 | 1 | 0 | 0.123199 | 0.019991 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022222 | 0 | 0.111111 | 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 |
ccd2091aa554752b80be765a8333a7d8212199e1 | 1,712 | py | Python | clu/constants/exceptions.py | fish2000/CLU | 80bc2df5f001b5639d79ba979e19ec77a9931425 | [
"BSD-3-Clause"
] | 1 | 2019-07-02T08:17:59.000Z | 2019-07-02T08:17:59.000Z | clu/constants/exceptions.py | fish2000/CLU | 80bc2df5f001b5639d79ba979e19ec77a9931425 | [
"BSD-3-Clause"
] | 13 | 2019-12-17T02:28:30.000Z | 2021-11-17T03:46:10.000Z | clu/constants/exceptions.py | fish2000/CLU | 80bc2df5f001b5639d79ba979e19ec77a9931425 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function
""" CLU’s Custom exception classes live here """
class BadDotpathWarning(Warning):
""" Conversion from a path to a dotpath resulted in a bad dotpath
… likely there are invalid characters like dashes in there.
"""
pass
class CDBError(Ex... | 28.065574 | 74 | 0.672313 | 191 | 1,712 | 5.958115 | 0.560209 | 0.063269 | 0.056239 | 0.035149 | 0.049209 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000767 | 0.238902 | 1,712 | 61 | 75 | 28.065574 | 0.869532 | 0.435748 | 0 | 0.310345 | 0 | 0 | 0.173859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.310345 | 0.034483 | 0 | 0.37931 | 0.034483 | 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 |
ccd5ca4d81ce2bd9480bed7ee3a94756e7ada584 | 6,543 | py | Python | utils/revOrm.py | NSLS-II/aphla | ceb5410dc836a8fb16321b6dc5e10d442be765c5 | [
"BSD-3-Clause"
] | null | null | null | utils/revOrm.py | NSLS-II/aphla | ceb5410dc836a8fb16321b6dc5e10d442be765c5 | [
"BSD-3-Clause"
] | 1 | 2020-02-17T18:56:18.000Z | 2020-02-20T17:06:20.000Z | utils/revOrm.py | NSLS-II/aphla | ceb5410dc836a8fb16321b6dc5e10d442be765c5 | [
"BSD-3-Clause"
] | 1 | 2021-03-08T16:07:11.000Z | 2021-03-08T16:07:11.000Z | #!/usr/bin/env python
import sys, time, os
sys.path.append('../src')
import numpy as np
import matplotlib.pylab as plt
import hla
from hla import caget, caput
def compare(o1, o2):
print o1
print o2
npoint, nbpm, ntrim = np.shape(o1._rawmatrix)
print "checking bpm"
for i in range(nbpm):
# ... | 31.917073 | 197 | 0.52346 | 1,037 | 6,543 | 3.257473 | 0.179364 | 0.010065 | 0.029603 | 0.0373 | 0.320012 | 0.243339 | 0.19627 | 0.094139 | 0.060983 | 0.048253 | 0 | 0.060228 | 0.276784 | 6,543 | 204 | 198 | 32.073529 | 0.653635 | 0.137246 | 0 | 0.151899 | 0 | 0 | 0.065457 | 0.013696 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031646 | null | null | 0.120253 | 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 |
ae9ff35726e01cb8b94b132adc55d816f0af6cd8 | 2,008 | py | Python | funda/spiders/FundaListings.py | royzwambag/funda-scraper | c288ae3521731d1fa12fbde7acc10d725048603a | [
"MIT"
] | 1 | 2021-02-21T22:42:43.000Z | 2021-02-21T22:42:43.000Z | funda/spiders/FundaListings.py | royzwambag/funda-scraper | c288ae3521731d1fa12fbde7acc10d725048603a | [
"MIT"
] | null | null | null | funda/spiders/FundaListings.py | royzwambag/funda-scraper | c288ae3521731d1fa12fbde7acc10d725048603a | [
"MIT"
] | 1 | 2021-12-01T12:18:54.000Z | 2021-12-01T12:18:54.000Z | import scrapy
from ..items import BasicHouseItem
from ..utils import generate_url
class FundaListingsSpider(scrapy.Spider):
name = 'funda_listings'
allowed_domains = ["funda.nl"]
custom_settings = {
"FEED_EXPORT_FIELDS": ["address", "zipcode", "price", "house_size", "plot_size", "rooms", "url", "i... | 44.622222 | 125 | 0.580677 | 222 | 2,008 | 5.108108 | 0.351351 | 0.095238 | 0.063492 | 0.060847 | 0.121693 | 0.075838 | 0.075838 | 0.075838 | 0.075838 | 0.075838 | 0 | 0.002046 | 0.26992 | 2,008 | 44 | 126 | 45.636364 | 0.771487 | 0 | 0 | 0 | 1 | 0.027027 | 0.297809 | 0.153884 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.081081 | 0.027027 | 0.27027 | 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 |
aea0f505ac0ae8958de0fe2ef7a2f11f420d2940 | 936 | py | Python | CodeFights2.py | sassy224/challenges | 3e4c9c6fe19351f2e47408967bf1bd3f4ca63bb7 | [
"MIT"
] | null | null | null | CodeFights2.py | sassy224/challenges | 3e4c9c6fe19351f2e47408967bf1bd3f4ca63bb7 | [
"MIT"
] | null | null | null | CodeFights2.py | sassy224/challenges | 3e4c9c6fe19351f2e47408967bf1bd3f4ca63bb7 | [
"MIT"
] | null | null | null | """
You are given a digital number written down on a sheet of paper.
Your task is to figure out if you rotate the given sheet of paper by 180 degrees would the number still look exactly the same.
input: "1"
output: false
input: "29562"
output: true
input: "77"
output: false
"""
def digital_number(number):
... | 21.767442 | 126 | 0.654915 | 151 | 936 | 3.94702 | 0.562914 | 0.130872 | 0.040268 | 0.013423 | 0.040268 | 0.040268 | 0.040268 | 0.040268 | 0.040268 | 0.040268 | 0 | 0.061761 | 0.186966 | 936 | 43 | 127 | 21.767442 | 0.720105 | 0 | 0 | 0 | 0 | 0 | 0.082353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | 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 |
aea745b7da47bd3d0550f56fe6d42adc49716eb3 | 268 | py | Python | Easy/find_the_distance_value_between_two_arrays.py | BrynjarGeir/LeetCode | dbd57e645c5398dec538b6466215b61491c8d1d9 | [
"MIT"
] | null | null | null | Easy/find_the_distance_value_between_two_arrays.py | BrynjarGeir/LeetCode | dbd57e645c5398dec538b6466215b61491c8d1d9 | [
"MIT"
] | null | null | null | Easy/find_the_distance_value_between_two_arrays.py | BrynjarGeir/LeetCode | dbd57e645c5398dec538b6466215b61491c8d1d9 | [
"MIT"
] | null | null | null | class Solution:
def findTheDistanceValue(self, arr1: List[int], arr2: List[int], d: int) -> int:
distance = 0
for element in arr1:
if not any(c for c in arr2 if abs(c-element) <= d):
distance += 1
return distance | 38.285714 | 84 | 0.559701 | 37 | 268 | 4.054054 | 0.594595 | 0.093333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033708 | 0.335821 | 268 | 7 | 85 | 38.285714 | 0.808989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 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 |
aeac7c6dc8a5f5e913ca2483b61751b8f3dca05f | 1,233 | py | Python | dynamo_consistency/dynamo/v1/siteinfo.py | dabercro/dynamo-consistency | f37dfebe781a833e9ae30869d8f57be79b4f583c | [
"MIT"
] | null | null | null | dynamo_consistency/dynamo/v1/siteinfo.py | dabercro/dynamo-consistency | f37dfebe781a833e9ae30869d8f57be79b4f583c | [
"MIT"
] | 1 | 2018-02-20T21:21:14.000Z | 2018-02-20T21:21:14.000Z | dynamo_consistency/dynamo/v1/siteinfo.py | dabercro/dynamo-consistency | f37dfebe781a833e9ae30869d8f57be79b4f583c | [
"MIT"
] | 2 | 2018-06-25T11:27:45.000Z | 2021-05-13T20:32:36.000Z | """
This module is for fetching information from dynamo about different sites
"""
from .inventory import _get_inventory
def _small_query(*args):
"""
This is a wrapper function for opening and closing inventory connection
:param args: arguments to pass to query
:returns: Result of the query
:rty... | 20.898305 | 83 | 0.652879 | 171 | 1,233 | 4.567251 | 0.432749 | 0.051216 | 0.06146 | 0.056338 | 0.074264 | 0.074264 | 0 | 0 | 0 | 0 | 0 | 0.003261 | 0.253852 | 1,233 | 58 | 84 | 21.258621 | 0.845652 | 0.434712 | 0 | 0 | 0 | 0 | 0.176667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
aeadb61a2cb83bca3659659ea3f7918d3b60f93f | 1,163 | py | Python | core/management/commands/onetime_fix_cover_paths.py | flaiming/bookfinder | 59154d106b62680668087e46eca9c0bf9cdaf336 | [
"MIT"
] | null | null | null | core/management/commands/onetime_fix_cover_paths.py | flaiming/bookfinder | 59154d106b62680668087e46eca9c0bf9cdaf336 | [
"MIT"
] | null | null | null | core/management/commands/onetime_fix_cover_paths.py | flaiming/bookfinder | 59154d106b62680668087e46eca9c0bf9cdaf336 | [
"MIT"
] | null | null | null | import shutil
import os
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from .models import BookCover, get_book_cover_image_path
class Command(BaseCommand):
help = ""
def handle(self, *args, **options):
qs = BookCover.objects.exclude(image__iregex=r"... | 31.432432 | 87 | 0.55632 | 136 | 1,163 | 4.588235 | 0.470588 | 0.078526 | 0.067308 | 0.054487 | 0.067308 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016497 | 0.322442 | 1,163 | 36 | 88 | 32.305556 | 0.775381 | 0.024076 | 0 | 0.133333 | 0 | 0 | 0.037037 | 0.026455 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.066667 | 0.166667 | 0 | 0.266667 | 0.066667 | 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 |
aeb200362d7e9aa9bfe424f4789c60841fc0fb5c | 316 | py | Python | app/utils/build_handled_query.py | msolorio/flask_world_api | a2d5394618b736aa7d5d5e75a422dbe9e5713533 | [
"MIT"
] | 1 | 2022-02-24T04:37:04.000Z | 2022-02-24T04:37:04.000Z | app/utils/build_handled_query.py | msolorio/flask_world_api | a2d5394618b736aa7d5d5e75a422dbe9e5713533 | [
"MIT"
] | null | null | null | app/utils/build_handled_query.py | msolorio/flask_world_api | a2d5394618b736aa7d5d5e75a422dbe9e5713533 | [
"MIT"
] | null | null | null | import traceback
from ..models import ServerError
def build_handled_query(query):
def handled_query(*kwargs, **args):
try:
return query(*kwargs, **args)
except:
print('Stack Trace ==>', traceback.format_exc())
return ServerError()
return handled_query
| 21.066667 | 60 | 0.617089 | 33 | 316 | 5.757576 | 0.575758 | 0.189474 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.278481 | 316 | 14 | 61 | 22.571429 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.047468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.7 | 0.1 | 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 |
aeb3088e188323526fd71e3f97c23bb2c556a657 | 1,095 | py | Python | backend/backend/views.py | synw/django-mqueue-livefeed | d4e8cc2a4c1014f1d7322c297f8f50db9ab8540f | [
"MIT"
] | 9 | 2016-08-30T16:15:15.000Z | 2022-03-22T17:17:01.000Z | backend/backend/views.py | synw/django-mqueue-livefeed | d4e8cc2a4c1014f1d7322c297f8f50db9ab8540f | [
"MIT"
] | null | null | null | backend/backend/views.py | synw/django-mqueue-livefeed | d4e8cc2a4c1014f1d7322c297f8f50db9ab8540f | [
"MIT"
] | 2 | 2017-01-20T22:03:53.000Z | 2017-12-20T11:43:38.000Z | from typing import Any, Dict, Union
from django.conf import settings
from django.http.response import HttpResponseBase, HttpResponseRedirect
from django.views.generic import TemplateView
from django.contrib.auth.views import LoginView, redirect_to_login
class LoginView(LoginView):
template_name = "login_form.html... | 36.5 | 84 | 0.689498 | 129 | 1,095 | 5.736434 | 0.472868 | 0.054054 | 0.040541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1,095 | 29 | 85 | 37.758621 | 0.844749 | 0.029224 | 0 | 0 | 0 | 0 | 0.072642 | 0.025472 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.227273 | 0 | 0.636364 | 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 |
aeb984e53fbe4f0422547372387cc06ffdabc996 | 1,512 | py | Python | alipay/aop/api/response/KoubeiServindustryLeadsRecordBatchqueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/response/KoubeiServindustryLeadsRecordBatchqueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/response/KoubeiServindustryLeadsRecordBatchqueryResponse.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.LeadsOrderInfo import LeadsOrderInfo
class KoubeiServindustryLeadsRecordBatchqueryResponse(AlipayResponse):
def __init__(self):
super(KoubeiServindustryL... | 35.162791 | 120 | 0.70172 | 172 | 1,512 | 5.784884 | 0.255814 | 0.110553 | 0.154774 | 0.198995 | 0.194975 | 0.106533 | 0 | 0 | 0 | 0 | 0 | 0.00085 | 0.221561 | 1,512 | 42 | 121 | 36 | 0.84452 | 0.027778 | 0 | 0.0625 | 0 | 0 | 0.043597 | 0.02861 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.09375 | 0.0625 | 0.375 | 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 |
aebbeb314ce75549bd49f12026710823e4b7c6f5 | 2,738 | py | Python | pycfg.py | rhum1s/scripting_tools | c354a8a3bd38ca8aeaaa91405aa1c4ce703ef36b | [
"MIT"
] | null | null | null | pycfg.py | rhum1s/scripting_tools | c354a8a3bd38ca8aeaaa91405aa1c4ce703ef36b | [
"MIT"
] | null | null | null | pycfg.py | rhum1s/scripting_tools | c354a8a3bd38ca8aeaaa91405aa1c4ce703ef36b | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
"""
PyCfg - R. Souweine, 2016.
"""
import sys
import os
import ConfigParser
from datetime import datetime
class Cfg():
def __init__(self, cfg_file, cfg_sections, debug=False):
"""
Lecture d'un fichier de configuation type.
"""
if os.path.isfile(cfg_file):
... | 34.225 | 88 | 0.528853 | 308 | 2,738 | 4.545455 | 0.318182 | 0.035 | 0.021429 | 0.042857 | 0.088571 | 0.064286 | 0.064286 | 0.064286 | 0.064286 | 0.064286 | 0 | 0.003352 | 0.346238 | 2,738 | 80 | 89 | 34.225 | 0.778771 | 0.04748 | 0 | 0 | 0 | 0 | 0.12064 | 0.01149 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075472 | null | null | 0.169811 | 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 |
aebf8e2ff0886eb00e8aeefe34ba66669b5dca4c | 513 | py | Python | clients/python/rest.py | BernardNotarianni/barrel-aof17 | 02b959aa38751f9912aa1b0dc5d112b76b727585 | [
"Apache-2.0"
] | 1 | 2017-09-11T00:35:49.000Z | 2017-09-11T00:35:49.000Z | clients/python/rest.py | BernardNotarianni/barrel-aof17 | 02b959aa38751f9912aa1b0dc5d112b76b727585 | [
"Apache-2.0"
] | null | null | null | clients/python/rest.py | BernardNotarianni/barrel-aof17 | 02b959aa38751f9912aa1b0dc5d112b76b727585 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import requests
import json
store = 'http://localhost:8080/source'
print "post a document"
doc = {'name': 'tom'}
headers = {'Content-Type': 'application/json'}
r = requests.post(store, headers=headers, data=json.dumps(doc))
print r.status_code
docid = r.json()['id']
revid = r.json()['rev']
p... | 18.321429 | 63 | 0.678363 | 75 | 513 | 4.6 | 0.466667 | 0.078261 | 0.104348 | 0.13913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009112 | 0.14425 | 513 | 27 | 64 | 19 | 0.776765 | 0.038986 | 0 | 0.1875 | 0 | 0 | 0.254065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.375 | 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 |
aec6b13b4c7b4c30dffc5f72de017a641a160409 | 2,232 | py | Python | authentication/strategy.py | mitodl/bootcamp-ecommerce | ba7d6aefe56c6481ae2a5afc84cdd644538b6d50 | [
"BSD-3-Clause"
] | 2 | 2018-06-20T19:37:03.000Z | 2021-01-06T09:51:40.000Z | authentication/strategy.py | mitodl/bootcamp-ecommerce | ba7d6aefe56c6481ae2a5afc84cdd644538b6d50 | [
"BSD-3-Clause"
] | 1,226 | 2017-02-23T14:52:28.000Z | 2022-03-29T13:19:54.000Z | authentication/strategy.py | mitodl/bootcamp-ecommerce | ba7d6aefe56c6481ae2a5afc84cdd644538b6d50 | [
"BSD-3-Clause"
] | 3 | 2017-03-20T03:51:27.000Z | 2021-03-19T15:54:31.000Z | """Custom strategy"""
from urllib.parse import urlencode
from django.db import transaction
from social_django.strategy import DjangoStrategy
from main import features
from profiles.models import LegalAddress, Profile
class BootcampDjangoStrategy(DjangoStrategy):
"""Abstract strategy for botcamp app"""
def ... | 35.428571 | 96 | 0.696237 | 277 | 2,232 | 5.469314 | 0.357401 | 0.039604 | 0.021122 | 0.044884 | 0.161716 | 0.148515 | 0.148515 | 0.148515 | 0.148515 | 0.148515 | 0 | 0 | 0.214606 | 2,232 | 62 | 97 | 36 | 0.864233 | 0.282258 | 0 | 0.090909 | 0 | 0 | 0.041317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.151515 | 0 | 0.69697 | 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 |
aec8d771cb10d5ba72ec5fd7b9d6f0e927a8f333 | 580 | py | Python | addons/swift/tests/utils.py | tsukaeru/RDM-osf.io | 2dc3e539322b6110e51772f8bd25ebdeb8e12d0e | [
"Apache-2.0"
] | 11 | 2018-12-11T16:39:40.000Z | 2022-02-26T09:51:32.000Z | addons/swift/tests/utils.py | tsukaeru/RDM-osf.io | 2dc3e539322b6110e51772f8bd25ebdeb8e12d0e | [
"Apache-2.0"
] | 52 | 2018-04-13T05:03:21.000Z | 2022-03-22T02:56:19.000Z | addons/swift/tests/utils.py | tsukaeru/RDM-osf.io | 2dc3e539322b6110e51772f8bd25ebdeb8e12d0e | [
"Apache-2.0"
] | 16 | 2018-07-09T01:44:51.000Z | 2021-06-30T01:57:16.000Z | # -*- coding: utf-8 -*-
from addons.base.tests.base import OAuthAddonTestCaseMixin, AddonTestCase
from addons.swift.provider import SwiftProvider
from addons.swift.serializer import SwiftSerializer
from addons.swift.tests.factories import SwiftAccountFactory
class SwiftAddonTestCase(OAuthAddonTestCaseMixin, AddonTestC... | 30.526316 | 73 | 0.753448 | 53 | 580 | 8.207547 | 0.54717 | 0.091954 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002049 | 0.158621 | 580 | 18 | 74 | 32.222222 | 0.889344 | 0.036207 | 0 | 0 | 0 | 0 | 0.075404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.733333 | 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 |
aec9ee64277ff4b007aad939e4ac17372b6cdf19 | 1,311 | py | Python | _grains/mac_sp.py | mosen/salt-osx | 818d4ae89bb2853b28999a8ddb883c0fe1b1a657 | [
"MIT"
] | 68 | 2015-02-11T00:53:54.000Z | 2021-11-06T16:07:17.000Z | _grains/mac_sp.py | Jaharmi/salt-osx | f6db606f04846d45935f3ed729e6243441cee360 | [
"MIT"
] | 13 | 2016-01-05T00:01:34.000Z | 2022-03-18T23:44:21.000Z | _grains/mac_sp.py | Jaharmi/salt-osx | f6db606f04846d45935f3ed729e6243441cee360 | [
"MIT"
] | 19 | 2015-04-09T20:58:55.000Z | 2020-11-04T06:39:06.000Z | # -*- coding: utf-8 -*-
'''
Mac hardware information, generated by system_profiler.
This is a separate grains module because it has a dependency on plistlib.
'''
import logging
import salt.utils
import salt.modules.cmdmod
log = logging.getLogger(__name__)
__virtualname__ = 'mac_sp'
try:
import plistlib
has... | 25.211538 | 97 | 0.723112 | 170 | 1,311 | 5.3 | 0.535294 | 0.048835 | 0.075472 | 0.044395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001867 | 0.183066 | 1,311 | 51 | 98 | 25.705882 | 0.839402 | 0.427918 | 0 | 0 | 1 | 0 | 0.104137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.208333 | 0 | 0.458333 | 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 |
aecd3d71119eb36cd9ff199e7ad910beb0a003d1 | 2,888 | py | Python | IO_supervisor.py | dwalley/SICXE | f3d019301e82712a1e94c6936b667bb5c93bbce0 | [
"MIT"
] | null | null | null | IO_supervisor.py | dwalley/SICXE | f3d019301e82712a1e94c6936b667bb5c93bbce0 | [
"MIT"
] | null | null | null | IO_supervisor.py | dwalley/SICXE | f3d019301e82712a1e94c6936b667bb5c93bbce0 | [
"MIT"
] | null | null | null | # Module which defines how the I/O system works
import sys, os
from Registers import *
from random import *
from binascii import *
class IO_supervisor(Registers):
def __init__(self,my_registers):
self.i_o = 'stuff'
self.num_devices = 2
# native OS files simulate devices
worki... | 30.723404 | 79 | 0.602147 | 393 | 2,888 | 4.246819 | 0.282443 | 0.059916 | 0.044937 | 0.045536 | 0.316357 | 0.256441 | 0.213301 | 0.213301 | 0.213301 | 0.213301 | 0 | 0.043907 | 0.29813 | 2,888 | 93 | 80 | 31.053763 | 0.779477 | 0.253463 | 0 | 0.188679 | 0 | 0 | 0.021127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075472 | 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 |
aecfa8737eda8f66522d65be9eaa0ff115eeee4b | 364 | py | Python | ProblemSolving/mini_max_sum.py | Akasan/HackerRankResult | 71549236975cae5e8303570ae352c0e93d0e22b5 | [
"MIT"
] | null | null | null | ProblemSolving/mini_max_sum.py | Akasan/HackerRankResult | 71549236975cae5e8303570ae352c0e93d0e22b5 | [
"MIT"
] | null | null | null | ProblemSolving/mini_max_sum.py | Akasan/HackerRankResult | 71549236975cae5e8303570ae352c0e93d0e22b5 | [
"MIT"
] | null | null | null | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the miniMaxSum function below.
def miniMaxSum(arr):
sorted_arr = sorted(arr)
min_sum = sum(sorted_arr[:-1])
max_sum = sum(sorted_arr[1:])
print(min_sum, max_sum)
if __name__ == '__main__':
arr = list(map(int, input... | 17.333333 | 50 | 0.678571 | 53 | 364 | 4.377358 | 0.566038 | 0.155172 | 0.103448 | 0.12931 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010135 | 0.186813 | 364 | 20 | 51 | 18.2 | 0.773649 | 0.145604 | 0 | 0 | 0 | 0 | 0.025974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.461538 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
aed70cd25520bf0f360431c3625a8328524dbc40 | 1,744 | py | Python | WideResNet2.py | styanddty/Wide-resnet-fashionMnist | f281f1e3e3c2b55be20620290d6e0535fcc70d98 | [
"MIT"
] | 4 | 2018-05-12T01:53:20.000Z | 2020-11-10T09:35:01.000Z | WideResNet2.py | styanddty/Wide-resnet-fashionMnist | f281f1e3e3c2b55be20620290d6e0535fcc70d98 | [
"MIT"
] | null | null | null | WideResNet2.py | styanddty/Wide-resnet-fashionMnist | f281f1e3e3c2b55be20620290d6e0535fcc70d98 | [
"MIT"
] | 1 | 2018-11-25T20:03:56.000Z | 2018-11-25T20:03:56.000Z | from utils import _conv2d, _bn, _block
import tensorflow as tf
def WideResNet(x, dropout, phase, layers, kval, scope, n_classes = 10): # Wide residual network
# 1 conv + 3 convblocks*(3 conv layers *1 group for each block + 2 conv layers*(N-1) groups for each block [total 1+N-1 = N groups]) = layers
# 3*2*(N... | 42.536585 | 145 | 0.612959 | 293 | 1,744 | 3.556314 | 0.307167 | 0.069098 | 0.051823 | 0.080614 | 0.31382 | 0.214012 | 0.194818 | 0.142994 | 0.111324 | 0.111324 | 0 | 0.060967 | 0.228784 | 1,744 | 41 | 146 | 42.536585 | 0.713755 | 0.267202 | 0 | 0.222222 | 0 | 0 | 0.011839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | null | null | 0.259259 | 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 |
aed80772e26b65068e4088dd2031244a8b43228b | 2,750 | py | Python | tests/testingutils.py | dnephin/Tron | bd0f763421c6de50551e9a4b0e4a1c0c8ceb450a | [
"Apache-2.0"
] | null | null | null | tests/testingutils.py | dnephin/Tron | bd0f763421c6de50551e9a4b0e4a1c0c8ceb450a | [
"Apache-2.0"
] | null | null | null | tests/testingutils.py | dnephin/Tron | bd0f763421c6de50551e9a4b0e4a1c0c8ceb450a | [
"Apache-2.0"
] | null | null | null | import logging
import functools
import mock
from testify import TestCase, setup
from testify import class_setup, class_teardown
from testify import teardown
import time
from tron.utils import timeutils
log = logging.getLogger(__name__)
# TODO: remove when replaced with tron.eventloop
class MockReactorTestCase(Test... | 28.645833 | 77 | 0.661091 | 344 | 2,750 | 5.020349 | 0.348837 | 0.044586 | 0.041691 | 0.037058 | 0.112334 | 0.039375 | 0.039375 | 0 | 0 | 0 | 0 | 0.001444 | 0.244727 | 2,750 | 95 | 78 | 28.947368 | 0.830043 | 0.156364 | 0 | 0.032258 | 0 | 0 | 0.034136 | 0 | 0 | 0 | 0 | 0.021053 | 0.032258 | 1 | 0.193548 | false | 0 | 0.129032 | 0 | 0.483871 | 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 |
aee1d58bc63210b255b76deaef25027f91fb2561 | 464 | py | Python | shop/store/migrations/0004_auto_20210328_2032.py | Mykytenkovladislav/book_shop_and_warehouse | 60852e5ed3869291e73623b8b8d7901d39d66c9d | [
"MIT"
] | null | null | null | shop/store/migrations/0004_auto_20210328_2032.py | Mykytenkovladislav/book_shop_and_warehouse | 60852e5ed3869291e73623b8b8d7901d39d66c9d | [
"MIT"
] | null | null | null | shop/store/migrations/0004_auto_20210328_2032.py | Mykytenkovladislav/book_shop_and_warehouse | 60852e5ed3869291e73623b8b8d7901d39d66c9d | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-28 20:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0003_auto_20210328_2029'),
]
operations = [
migrations.AlterField(
model_name='order',
name='shipped_date',... | 24.421053 | 125 | 0.62931 | 55 | 464 | 5.181818 | 0.8 | 0.077193 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090116 | 0.258621 | 464 | 18 | 126 | 25.777778 | 0.738372 | 0.096983 | 0 | 0 | 1 | 0 | 0.223022 | 0.055156 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 |
aee70f5de0ae2c6851fc83893a601e60e16a4182 | 19,651 | py | Python | aristotle/apps/marc/bots/aspbots.py | jermnelson/Discover-Aristotle | cc1ff79915d715801890a3a8642099304916adfa | [
"Apache-2.0"
] | 7 | 2015-03-13T09:56:16.000Z | 2021-05-03T13:39:05.000Z | aristotle/apps/marc/bots/aspbots.py | jermnelson/Discover-Aristotle | cc1ff79915d715801890a3a8642099304916adfa | [
"Apache-2.0"
] | 1 | 2021-04-06T16:30:00.000Z | 2021-04-06T16:43:57.000Z | aristotle/apps/marc/bots/aspbots.py | jermnelson/Discover-Aristotle | cc1ff79915d715801890a3a8642099304916adfa | [
"Apache-2.0"
] | 2 | 2015-12-18T16:51:07.000Z | 2016-02-26T09:56:42.000Z | import urlparse,urllib2,re
import datetime,logging
from marcbots import MARCImportBot
from pymarc import Field
class AlexanderStreetPressBaseBot(MARCImportBot):
"""
`AlexanderStreetPressBaseBot` encapsulates the basic
MARC record changes used by child classes.
"""
def __init__(self,ma... | 38.009671 | 125 | 0.558292 | 1,894 | 19,651 | 5.574446 | 0.151003 | 0.214056 | 0.096799 | 0.138284 | 0.628433 | 0.561754 | 0.528888 | 0.510324 | 0.481625 | 0.481436 | 0 | 0.036432 | 0.354689 | 19,651 | 516 | 126 | 38.083333 | 0.796152 | 0.223958 | 0 | 0.567568 | 0 | 0 | 0.084667 | 0.031937 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.023166 | 0 | 0.235521 | 0 | 0 | 0 | 0 | null | 1 | 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 | 0 | 0 | 1 |
aeebb225c84833a15d25e565e8ec5e80d876a03e | 3,564 | py | Python | Mod.py | christoffaloffagus/Clint-Bot-3000 | e2da367ceb7459d9c081a17c9e24ef08d76f3e53 | [
"MIT"
] | null | null | null | Mod.py | christoffaloffagus/Clint-Bot-3000 | e2da367ceb7459d9c081a17c9e24ef08d76f3e53 | [
"MIT"
] | null | null | null | Mod.py | christoffaloffagus/Clint-Bot-3000 | e2da367ceb7459d9c081a17c9e24ef08d76f3e53 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
from os import system
class Mod:
def __init__(self, client):
self.client = client
# ------------------------------- COMMANDS ------------------------------- #
# Commands need to have the @commands.command decorator
@commands.command(hidden=True, pass_co... | 26.796992 | 89 | 0.564534 | 419 | 3,564 | 4.73031 | 0.279236 | 0.0555 | 0.030272 | 0.050454 | 0.35217 | 0.25782 | 0.187689 | 0.187689 | 0.187689 | 0.047427 | 0 | 0.009671 | 0.274691 | 3,564 | 132 | 90 | 27 | 0.75706 | 0.5 | 0 | 0.238095 | 0 | 0 | 0.094328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.071429 | 0.071429 | 0 | 0.142857 | 0.119048 | 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 |
aef99003b57d71ccb53d2879735f4b65ddc02caf | 4,519 | py | Python | modules/friday/loginator.py | roshanmaind/Nico | 5495cf88111403f22e34e3b13badf7535ddd0b4d | [
"MIT"
] | 2 | 2019-03-14T01:06:37.000Z | 2020-06-04T04:35:36.000Z | modules/friday/loginator.py | roshanmaind/Nico | 5495cf88111403f22e34e3b13badf7535ddd0b4d | [
"MIT"
] | null | null | null | modules/friday/loginator.py | roshanmaind/Nico | 5495cf88111403f22e34e3b13badf7535ddd0b4d | [
"MIT"
] | 1 | 2020-02-11T09:54:12.000Z | 2020-02-11T09:54:12.000Z | from kivy.app import App
from kivy.config import Config
Config.set('graphics', 'width', '500')
Config.set('graphics', 'height', '640')
Config.set('graphics', 'resizable', False)
Config.set('kivy','window_icon','data/friday/res/icon.ico')
#from kivy.core.window import Window
from kivy.uix.screenmanager import ScreenMana... | 24.82967 | 106 | 0.652578 | 619 | 4,519 | 4.655897 | 0.210016 | 0.047189 | 0.041638 | 0.049965 | 0.489244 | 0.454545 | 0.396947 | 0.38272 | 0.362942 | 0.362942 | 0 | 0.01461 | 0.18212 | 4,519 | 181 | 107 | 24.966851 | 0.765152 | 0.010843 | 0 | 0.465753 | 0 | 0 | 0.119517 | 0.03111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041096 | false | 0.184932 | 0.047945 | 0 | 0.253425 | 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 |
aefcef00d9aee8a184d745a314bbf87059c90545 | 380 | py | Python | 13-Introduction to Data Visualization with Matplotlib/Chapter_3/05-Adding error-bars to a bar chart.py | Pegasus-01/Data-manipulation-and-merging-with-pandas | 5346678d25820d9fe352bd70294484ecd96fccf7 | [
"Apache-2.0"
] | 1 | 2021-05-08T11:09:27.000Z | 2021-05-08T11:09:27.000Z | 13-Introduction to Data Visualization with Matplotlib/Chapter_3/05-Adding error-bars to a bar chart.py | Pegasus-01/Data-manipulation-and-merging-with-pandas | 5346678d25820d9fe352bd70294484ecd96fccf7 | [
"Apache-2.0"
] | 1 | 2022-03-12T15:42:14.000Z | 2022-03-12T15:42:14.000Z | 13-Introduction to Data Visualization with Matplotlib/Chapter_3/05-Adding error-bars to a bar chart.py | Pegasus-01/Data-manipulation-and-merging-with-pandas | 5346678d25820d9fe352bd70294484ecd96fccf7 | [
"Apache-2.0"
] | 1 | 2021-04-30T18:24:19.000Z | 2021-04-30T18:24:19.000Z | fig, ax = plt.subplots()
# Add a bar for the rowing "Height" column mean/std
ax.bar("Rowing", mens_rowing["Height"].mean(), yerr=mens_rowing["Height"].std())
# Add a bar for the gymnastics "Height" column mean/std
ax.bar("Gymnastics", mens_gymnastics["Height"].mean(), yerr=mens_gymnastics["Height"].std())
# ... | 31.666667 | 93 | 0.684211 | 59 | 380 | 4.322034 | 0.40678 | 0.141176 | 0.054902 | 0.078431 | 0.290196 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134211 | 380 | 12 | 94 | 31.666667 | 0.775076 | 0.315789 | 0 | 0 | 0 | 0 | 0.207317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 |
aefede202bad9f729cfa7d6d686317776413a990 | 503 | py | Python | itests/pages/role_users.py | aneeq009/merou | 7a87b43aaf64244932fa460842132a2d9329e704 | [
"Apache-2.0"
] | 58 | 2017-05-26T06:46:24.000Z | 2022-03-25T20:55:51.000Z | itests/pages/role_users.py | aneeq009/merou | 7a87b43aaf64244932fa460842132a2d9329e704 | [
"Apache-2.0"
] | 74 | 2017-06-16T17:48:37.000Z | 2022-03-28T23:09:54.000Z | itests/pages/role_users.py | aneeq009/merou | 7a87b43aaf64244932fa460842132a2d9329e704 | [
"Apache-2.0"
] | 43 | 2017-05-20T22:11:51.000Z | 2022-03-25T00:24:56.000Z | from __future__ import annotations
from itests.pages.base import BaseModal, BasePage
class RoleUserViewPage(BasePage):
def click_disable_button(self) -> None:
button = self.find_element_by_id("disable-role-user")
button.click()
def get_disable_modal(self) -> DisableRoleUserModal:
ele... | 26.473684 | 61 | 0.739563 | 56 | 503 | 6.357143 | 0.571429 | 0.05618 | 0.08427 | 0.095506 | 0.106742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178926 | 503 | 18 | 62 | 27.944444 | 0.861985 | 0 | 0 | 0 | 0 | 0 | 0.057654 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.166667 | 0 | 0.583333 | 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 |
aefeff0d7e3ecd3fdcf33e006a4f377fb496e7f7 | 6,141 | py | Python | hybrid/GAN-Sentence/model.py | vishalbelsare/Deep-Learning-Tensorflow | 1590bfc7007aa53aaab72493e7d6f8154f3ec99b | [
"MIT"
] | 51 | 2017-08-04T12:54:49.000Z | 2022-03-04T08:23:46.000Z | hybrid/GAN-Sentence/model.py | Jeansding/Deep-Learning-Tensorflow | 1590bfc7007aa53aaab72493e7d6f8154f3ec99b | [
"MIT"
] | 3 | 2017-09-24T13:44:30.000Z | 2018-12-23T11:43:34.000Z | hybrid/GAN-Sentence/model.py | vishalbelsare/Deep-Learning-Tensorflow | 1590bfc7007aa53aaab72493e7d6f8154f3ec99b | [
"MIT"
] | 45 | 2017-08-04T02:36:32.000Z | 2022-03-04T08:23:50.000Z | import tensorflow as tf
import numpy as np
import parse
def lstm_cell(size_layer, state_is_tuple = True):
return tf.nn.rnn_cell.LSTMCell(size_layer, state_is_tuple = state_is_tuple)
def generate(sess, sequence, noise, model, tag, length_sentence, text_vocab):
sentence_generated = []
onehot = parse.embed_to_onehot(... | 63.309278 | 205 | 0.765511 | 943 | 6,141 | 4.676564 | 0.139979 | 0.040816 | 0.026531 | 0.036735 | 0.625397 | 0.577551 | 0.509977 | 0.452381 | 0.433333 | 0.370975 | 0 | 0.007828 | 0.10552 | 6,141 | 96 | 206 | 63.96875 | 0.795012 | 0 | 0 | 0.267442 | 1 | 0 | 0.021169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.034884 | 0.011628 | 0.174419 | 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 |
4e0e4eb43146dfe5157fdb0bd9781b0b55961a7f | 232 | py | Python | Day04/file_Closures.py | DongHenry/Py71 | 6e06cc4cda62daecba34ffbea4a8f03590a9098f | [
"MIT"
] | null | null | null | Day04/file_Closures.py | DongHenry/Py71 | 6e06cc4cda62daecba34ffbea4a8f03590a9098f | [
"MIT"
] | null | null | null | Day04/file_Closures.py | DongHenry/Py71 | 6e06cc4cda62daecba34ffbea4a8f03590a9098f | [
"MIT"
] | null | null | null | # 闭包
def func():
a = 1
b = 2
return a + b
def sum(a):
def add(b):
return a + b
return add
# add 函数名或函数的引用
# add() 函数的调用
num1 = func()
num2 = sum(2)
print(num2(5))
print(type(num1))
print(type(num2))
| 10.545455 | 20 | 0.534483 | 39 | 232 | 3.179487 | 0.435897 | 0.112903 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05625 | 0.310345 | 232 | 21 | 21 | 11.047619 | 0.71875 | 0.12069 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0.076923 | 0.461538 | 0.230769 | 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 |
4e10795466a7d1953a59fef51a1851c39d5083a4 | 2,131 | py | Python | cms_articles/migrations/0008_cms_3_4.py | snegovick/django-cms-articles | f7397bd5e303be6ed50bc53b71e27e40f4087f94 | [
"BSD-3-Clause"
] | 9 | 2016-04-18T15:59:50.000Z | 2019-09-12T07:11:15.000Z | cms_articles/migrations/0008_cms_3_4.py | snegovick/django-cms-articles | f7397bd5e303be6ed50bc53b71e27e40f4087f94 | [
"BSD-3-Clause"
] | 6 | 2019-01-22T17:53:48.000Z | 2020-07-19T17:35:31.000Z | cms_articles/migrations/0008_cms_3_4.py | snegovick/django-cms-articles | f7397bd5e303be6ed50bc53b71e27e40f4087f94 | [
"BSD-3-Clause"
] | 4 | 2017-02-10T17:19:30.000Z | 2020-02-02T16:58:20.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2017-02-25 11:38
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cms_articles', '0007_plugins'),
]
operations = [
... | 46.326087 | 236 | 0.670108 | 224 | 2,131 | 6.129464 | 0.383929 | 0.029133 | 0.040787 | 0.064093 | 0.458121 | 0.458121 | 0.458121 | 0.458121 | 0.458121 | 0.416606 | 0 | 0.012949 | 0.202722 | 2,131 | 45 | 237 | 47.355556 | 0.795174 | 0.031441 | 0 | 0.394737 | 1 | 0 | 0.237749 | 0.064532 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.157895 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.