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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e14936576dce5aec3af4e1f2699d005f905c0b18 | 539 | py | Python | src/timer.py | DeanSellas/Guesser | 10d3cee9310ad9769b7e75dc81309201c00aa6fc | [
"MIT"
] | null | null | null | src/timer.py | DeanSellas/Guesser | 10d3cee9310ad9769b7e75dc81309201c00aa6fc | [
"MIT"
] | null | null | null | src/timer.py | DeanSellas/Guesser | 10d3cee9310ad9769b7e75dc81309201c00aa6fc | [
"MIT"
] | null | null | null | import time
class Timer():
def __init__(self, enable, Log):
self._enable = enable
self._startTime = 0
self._endTime = -1
self._dif = -1
self.Log = Log
def start(self):
self._startTime = time.time()
def end(self):
self._endTime = time.time()
... | 21.56 | 51 | 0.538033 | 66 | 539 | 4.136364 | 0.333333 | 0.190476 | 0.102564 | 0.131868 | 0.249084 | 0.249084 | 0.249084 | 0.249084 | 0.249084 | 0 | 0 | 0.019943 | 0.348794 | 539 | 25 | 52 | 21.56 | 0.757835 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.052632 | 0.052632 | 0.421053 | 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 |
e14bfe53b8e9b70f621d24f8117908d24ae758c5 | 1,101 | py | Python | ffiec/migrations/0004_metdivdemographics.py | cmc333333/mapusaurus | 1d7ccef90d0ed832d52f797cbe68057057cd0177 | [
"CC0-1.0"
] | null | null | null | ffiec/migrations/0004_metdivdemographics.py | cmc333333/mapusaurus | 1d7ccef90d0ed832d52f797cbe68057057cd0177 | [
"CC0-1.0"
] | 55 | 2018-02-09T04:11:31.000Z | 2018-07-04T18:30:29.000Z | ffiec/migrations/0004_metdivdemographics.py | cmc333333/mapusaurus | 1d7ccef90d0ed832d52f797cbe68057057cd0177 | [
"CC0-1.0"
] | null | null | null | # Generated by Django 2.1.4 on 2019-01-20 03:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('geo', '0002_auto_20190120_0352'),
('ffiec', '0003_lowpopulationdemographics'),
]
operations = [
mig... | 36.7 | 144 | 0.621253 | 103 | 1,101 | 6.456311 | 0.660194 | 0.03609 | 0.144361 | 0.066165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04401 | 0.257039 | 1,101 | 29 | 145 | 37.965517 | 0.768949 | 0.040872 | 0 | 0 | 1 | 0 | 0.229602 | 0.094877 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 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 |
e1516e841813e304df65c8aafa37a37270efb861 | 506 | py | Python | slack_message.py | skynet357/slack-utils | 620f4cd7a58ea3d69e742150bd6a475c94c2a424 | [
"Apache-2.0"
] | null | null | null | slack_message.py | skynet357/slack-utils | 620f4cd7a58ea3d69e742150bd6a475c94c2a424 | [
"Apache-2.0"
] | null | null | null | slack_message.py | skynet357/slack-utils | 620f4cd7a58ea3d69e742150bd6a475c94c2a424 | [
"Apache-2.0"
] | null | null | null | import os
import slack
#This will extract the token from evironment variable
client = slack.WebClient(token=os.environ['SLACK_API_TOKEN'])
#Posting message to slack channel
response = client.chat_postMessage( channel='#sams-cxo-general', text="Hello")
#Uploading a file to slack channel
response = client.fi... | 36.142857 | 82 | 0.752964 | 74 | 506 | 5.067568 | 0.540541 | 0.112 | 0.074667 | 0.117333 | 0.304 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006818 | 0.130435 | 506 | 14 | 83 | 36.142857 | 0.845455 | 0.304348 | 0 | 0 | 0 | 0 | 0.229167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e156ce855adf671cf6b68ae8e618c347ea82e45f | 1,108 | py | Python | Exercises/LinkedLists/DuplicateNumber.py | balajisomasale/Udacity_Data-Structures-and-algorithms | aa9a58e62c488e32920308ae14faad84e735a0dd | [
"MIT"
] | null | null | null | Exercises/LinkedLists/DuplicateNumber.py | balajisomasale/Udacity_Data-Structures-and-algorithms | aa9a58e62c488e32920308ae14faad84e735a0dd | [
"MIT"
] | null | null | null | Exercises/LinkedLists/DuplicateNumber.py | balajisomasale/Udacity_Data-Structures-and-algorithms | aa9a58e62c488e32920308ae14faad84e735a0dd | [
"MIT"
] | null | null | null | def duplicate_number(arr):
"""
:param - array containing numbers in the range [0, len(arr) - 2]
return - the number that is duplicate in the arr
"""
current_sum = 0
expected_sum = 0
for num in arr:
current_sum += num
for i in range(len(arr) - 1):
expected_su... | 19.785714 | 68 | 0.620036 | 170 | 1,108 | 3.882353 | 0.247059 | 0.157576 | 0.166667 | 0.181818 | 0.389394 | 0.354545 | 0.354545 | 0.354545 | 0.295455 | 0.231818 | 0 | 0.056086 | 0.243682 | 1,108 | 56 | 69 | 19.785714 | 0.731504 | 0.245487 | 0 | 0.3125 | 0 | 0 | 0.009901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.03125 | 0 | 0 | 0.09375 | 0.0625 | 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 |
e1578b95fd9696a1d79771d7647c2b2325e47328 | 393 | py | Python | ex010DescontoProdutos.py | GuSilva20/Primeiros-Codigos | 67deefb683b40c2c4fee1bb383730588635e9d85 | [
"MIT"
] | null | null | null | ex010DescontoProdutos.py | GuSilva20/Primeiros-Codigos | 67deefb683b40c2c4fee1bb383730588635e9d85 | [
"MIT"
] | null | null | null | ex010DescontoProdutos.py | GuSilva20/Primeiros-Codigos | 67deefb683b40c2c4fee1bb383730588635e9d85 | [
"MIT"
] | null | null | null | Produto = input('Produto: ')
Preco=float(input("Preço do produto em R$: ".format(Produto)))
Desconto = float(input("Desconto [%]: "))
desc = (Preco * Desconto)/100
PrecoDesconto = Preco - desc
print('A {} com desconto de {}% saira por {:.2f}R$'.format(Produto, Desconto, PrecoDesconto))
#Gabarito
print("com desconto ... | 32.75 | 93 | 0.679389 | 52 | 393 | 5.134615 | 0.442308 | 0.074906 | 0.104869 | 0.164794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.13486 | 393 | 11 | 94 | 35.727273 | 0.761765 | 0.020356 | 0 | 0 | 0 | 0 | 0.34375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.285714 | 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 |
e15be2cfd96dd827b2989c6a3f5de9dc274b5949 | 4,970 | py | Python | hard-gists/7365980/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/7365980/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/7365980/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | #!/usr/bin/python
import Image
import base64, zlib
# Jay Parlar convinced me to turn this data structure
# from a dictionary into an object.
class PackedImage(object):
def __init__(self, mode, size, data):
self.mode = mode
self.size = size
self.data = ''.join(data)
def unpack(self):
return Ima... | 44.375 | 79 | 0.637827 | 407 | 4,970 | 7.7543 | 0.592138 | 0.019011 | 0.007605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086063 | 0.275252 | 4,970 | 112 | 80 | 44.375 | 0.790117 | 0.153521 | 0 | 0 | 0 | 0 | 0.440727 | 0.434034 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.037037 | 0.012346 | 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 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e15f3c7948f4dfa3a4ac208b39b75253007e6421 | 402 | py | Python | net/Git/github.com/ungratefulson/mql4zmq/examples/mql4zmq_tickcollector.py | lionelyoung/OTMql4Zmq | 3297bda2b04407acf28164ea0fcc57090d45ad23 | [
"MIT"
] | 97 | 2015-04-07T07:45:37.000Z | 2021-11-14T17:39:42.000Z | examples/mql4zmq_tickcollector.py | ungratefulson/mql4zmq | a3d50462f55d7a1ffc40b48fb617384e065810d4 | [
"MIT"
] | 21 | 2015-04-02T17:41:05.000Z | 2017-07-18T15:04:42.000Z | examples/mql4zmq_tickcollector.py | ungratefulson/mql4zmq | a3d50462f55d7a1ffc40b48fb617384e065810d4 | [
"MIT"
] | 47 | 2015-04-07T07:46:06.000Z | 2021-07-12T08:52:05.000Z | # collect ticks and add matplotlib local timestamp as float
import zmq
from datetime import datetime
from matplotlib.dates import date2num
context = zmq.Context()
socket = context.socket(zmq.SUB)
socket.connect("tcp://127.0.0.1:2027")
socket.setsockopt(zmq.SUBSCRIBE,"tick")
while True:
string... | 22.333333 | 62 | 0.68408 | 52 | 402 | 5.288462 | 0.653846 | 0.094545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037383 | 0.201493 | 402 | 18 | 63 | 22.333333 | 0.819315 | 0.141791 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.3 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e1607b2e2e286799d7b0c878dfa9eeef83c24519 | 5,098 | py | Python | sdk/python/pulumi_aws/glacier/member.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/glacier/member.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/glacier/member.py | pulumi-bot/pulumi-aws | 756c60135851e015232043c8206567101b8ebd85 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import pulumi
import pulumi.runtime
class Member(pulumi.CustomResource):
"""
Provides a resource to manage a GuardDuty member.... | 48.552381 | 513 | 0.674186 | 588 | 5,098 | 5.581633 | 0.282313 | 0.051188 | 0.058501 | 0.054845 | 0.161182 | 0.085314 | 0.023157 | 0.023157 | 0 | 0 | 0 | 0.001299 | 0.244802 | 5,098 | 104 | 514 | 49.019231 | 0.851169 | 0.159278 | 0 | 0 | 1 | 0 | 0.241627 | 0.036782 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.032258 | 0 | 0.080645 | 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 |
e1643c3bf40253eb249f0b9acc42018fe53f522b | 14,406 | py | Python | blender/.blender/scripts/bpymodules/paths_eps2obj.py | visnz/sketchfab_download | 976f667d5c2c2864b2bad65aceac0dab5ce51b74 | [
"Apache-2.0"
] | 41 | 2021-02-18T05:56:26.000Z | 2021-12-06T07:58:15.000Z | blender/.blender/scripts/bpymodules/paths_eps2obj.py | visnz/sketchfab_download | 976f667d5c2c2864b2bad65aceac0dab5ce51b74 | [
"Apache-2.0"
] | 19 | 2021-02-18T05:59:03.000Z | 2022-01-13T01:00:52.000Z | blender/.blender/scripts/bpymodules/paths_eps2obj.py | visnz/sketchfab_download | 976f667d5c2c2864b2bad65aceac0dab5ce51b74 | [
"Apache-2.0"
] | 18 | 2021-02-22T13:32:56.000Z | 2022-01-22T12:38:29.000Z | #----------------------------------------------
# (c) jm soler juillet 2004-juin 2005 , released under Blender Artistic Licence
# for the Blender 2.34-2.37 Python Scripts Bundle.
#
# last update: 06/05/2007
#----------------------------------------------
# Page officielle :
# http://jmsoler.free.fr/didacticiel... | 31.801325 | 112 | 0.450507 | 1,899 | 14,406 | 3.36019 | 0.161664 | 0.017866 | 0.011754 | 0.011284 | 0.362012 | 0.285535 | 0.264849 | 0.239931 | 0.229118 | 0.212349 | 0 | 0.055401 | 0.278287 | 14,406 | 452 | 113 | 31.871681 | 0.558334 | 0.202554 | 0 | 0.311037 | 0 | 0.006689 | 0.056941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006689 | 0.023411 | null | null | 0.003344 | 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 |
e164967cff87f912a85100d16cc64cdc9cffe7a5 | 45,826 | py | Python | eyeconModel.py | jisung0920/EyeCon-Server | 321172a32022bc636ca2ee16ac780d81c2a6d161 | [
"MIT"
] | null | null | null | eyeconModel.py | jisung0920/EyeCon-Server | 321172a32022bc636ca2ee16ac780d81c2a6d161 | [
"MIT"
] | null | null | null | eyeconModel.py | jisung0920/EyeCon-Server | 321172a32022bc636ca2ee16ac780d81c2a6d161 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torchvision.transforms as transforms
import pandas as pd
import numpy as np
import math
import torch.nn.functional as F
transformImg = transforms.Compose([
transforms.Resize((224,224)),
transforms.ToTensor(),
transform... | 62.094851 | 123 | 0.708833 | 7,877 | 45,826 | 3.677161 | 0.027549 | 0.059658 | 0.043086 | 0.028586 | 0.805938 | 0.663283 | 0.543656 | 0.422924 | 0.402348 | 0.331538 | 0 | 0.148333 | 0.184699 | 45,826 | 737 | 124 | 62.179104 | 0.62692 | 0.005521 | 0 | 0.073965 | 0 | 0 | 0.002371 | 0.001427 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02071 | false | 0 | 0.010355 | 0 | 0.056213 | 0 | 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 |
e1651c52f90e3f7688118c742a531a6269082824 | 1,068 | py | Python | Lecture_2_game.py | wangwanglulu/pythonlecture2 | 16c17fc418b23f4407e680397ef5a8674dabd446 | [
"MIT"
] | null | null | null | Lecture_2_game.py | wangwanglulu/pythonlecture2 | 16c17fc418b23f4407e680397ef5a8674dabd446 | [
"MIT"
] | null | null | null | Lecture_2_game.py | wangwanglulu/pythonlecture2 | 16c17fc418b23f4407e680397ef5a8674dabd446 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
print('欢迎来到恋爱大冒险')
input()
print('请按回车键来进行游戏')
input()
print('经过三年的学习,我终于和同年级的暗恋的女生考上了同一所大学')
input()
print('开学第一天,我在食堂遇到她了,我应该')
input()
print('1.直接上去要微信\t2.以老乡的名义上去聊天\t3.继续吃饭')
option1=int(input('请做出选择:按数字1-3,然后回车\n')... | 20.941176 | 46 | 0.574906 | 133 | 1,068 | 4.616541 | 0.481203 | 0.162866 | 0.084691 | 0.110749 | 0.32899 | 0.32899 | 0.32899 | 0.234528 | 0.153094 | 0.153094 | 0 | 0.031133 | 0.248127 | 1,068 | 50 | 47 | 21.36 | 0.733499 | 0.065543 | 0 | 0.487805 | 0 | 0 | 0.376997 | 0.1459 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.04878 | 0 | 0 | 0 | 0.463415 | 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 |
e1688227845296f00904366051447c4f759251ff | 3,266 | py | Python | program_1.py | JuliaJobson/TFYA17 | fbe6375534a39c5d90fed3a95087c93d168f2acb | [
"MIT"
] | null | null | null | program_1.py | JuliaJobson/TFYA17 | fbe6375534a39c5d90fed3a95087c93d168f2acb | [
"MIT"
] | null | null | null | program_1.py | JuliaJobson/TFYA17 | fbe6375534a39c5d90fed3a95087c93d168f2acb | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import random
import os
import sys
import time
import numpy as np
<<<<<<< HEAD
import pickle
=======
>>>>>>> 05c5cf7657d15c38704fc7d148412ffb3c6ab12d
from qml.representations import get_slatm_mbtypes
from qml.kernels import get_local_kernels_gaussian
from qml.math import cho_solve
from math im... | 24.014706 | 94 | 0.649112 | 472 | 3,266 | 4.322034 | 0.307203 | 0.037745 | 0.029412 | 0.045098 | 0.271078 | 0.228922 | 0.156863 | 0.12451 | 0.052941 | 0.052941 | 0 | 0.020118 | 0.223821 | 3,266 | 135 | 95 | 24.192593 | 0.784615 | 0.210655 | 0 | 0.058824 | 0 | 0 | 0.063722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | null | null | 0.205882 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e16b632e543a4b6ef25355dabcbdcf7faa16e945 | 2,013 | py | Python | potator/extractors.py | otzhora/duplication | e06222533c3d135aaa39ccbfb6589a08a9616130 | [
"MIT"
] | 2 | 2021-12-30T17:47:29.000Z | 2022-03-29T10:13:44.000Z | potator/extractors.py | otzhora/potator | e06222533c3d135aaa39ccbfb6589a08a9616130 | [
"MIT"
] | null | null | null | potator/extractors.py | otzhora/potator | e06222533c3d135aaa39ccbfb6589a08a9616130 | [
"MIT"
] | null | null | null | import functools
from typing import List, Tuple
from potator.models import EntityData, File
from potator.tokenizer.buckwheat import get_identifiers_sequence_from_code, recognize_languages_dir
from potator.tokenizer.buckwheat.tokenizer import get_data_from_file
from potator.tokenizer.buckwheat.utils import FileData, Ob... | 44.733333 | 103 | 0.751118 | 250 | 2,013 | 5.752 | 0.244 | 0.027816 | 0.076495 | 0.060501 | 0.331015 | 0.176634 | 0 | 0 | 0 | 0 | 0 | 0.002989 | 0.168902 | 2,013 | 44 | 104 | 45.75 | 0.856545 | 0 | 0 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0.058824 | 0.558824 | 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 |
e179c6d9a51c90ac9aaf5af4203fba1436003255 | 247 | py | Python | AnalizeBonusViagem/Mundo1/exercicioMundo1/ex024Verificando as primeiras letras de um texto.py | D-Wolter/Pycharm-Projects | aeb3a2464cf6c6578e5b47b13b54ff3ebd6e52dd | [
"MIT"
] | null | null | null | AnalizeBonusViagem/Mundo1/exercicioMundo1/ex024Verificando as primeiras letras de um texto.py | D-Wolter/Pycharm-Projects | aeb3a2464cf6c6578e5b47b13b54ff3ebd6e52dd | [
"MIT"
] | null | null | null | AnalizeBonusViagem/Mundo1/exercicioMundo1/ex024Verificando as primeiras letras de um texto.py | D-Wolter/Pycharm-Projects | aeb3a2464cf6c6578e5b47b13b54ff3ebd6e52dd | [
"MIT"
] | null | null | null |
cidade = 'São francisco'
cidade2 = 'santo antonio'
cidade2 = cidade2.split()
print('santo' == cidade[0])
print('santo' == cidade2[0])
#solucao professor
cid = str(input('digite o nome de sua cidade')).strip()
print(cid[:5].upper() == 'SANTO')
| 19 | 55 | 0.663968 | 34 | 247 | 4.823529 | 0.647059 | 0.121951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032864 | 0.137652 | 247 | 12 | 56 | 20.583333 | 0.737089 | 0.068826 | 0 | 0 | 0 | 0 | 0.300885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
e17bc03f4071d778cd1cb6aea2e6a83dbb136494 | 11,768 | py | Python | cnns/foolbox/foolbox_2_3_0/models/base.py | anonymous-user-commits/perturb-net | 66fc7c4a1234fa34b92bcc85751f0a6e23d80a23 | [
"MIT"
] | 12 | 2021-07-27T07:18:24.000Z | 2022-03-09T13:52:20.000Z | cnns/foolbox/foolbox_2_3_0/models/base.py | anonymous-user-commits/perturb-net | 66fc7c4a1234fa34b92bcc85751f0a6e23d80a23 | [
"MIT"
] | 2 | 2021-08-03T09:21:33.000Z | 2021-12-29T14:25:30.000Z | cnns/foolbox/foolbox_2_3_0/models/base.py | anonymous-user-commits/perturb-net | 66fc7c4a1234fa34b92bcc85751f0a6e23d80a23 | [
"MIT"
] | 3 | 2021-11-18T14:46:40.000Z | 2022-01-03T15:47:23.000Z | import numpy as np
import abc
from abc import abstractmethod
import collections
def _create_preprocessing_fn(params):
if isinstance(params, collections.Mapping):
mean = params.get("mean", 0)
std = params.get("std", 1)
axis = params.get("axis", None)
flip_axis = params.get("flip_axi... | 30.645833 | 115 | 0.59101 | 1,463 | 11,768 | 4.69378 | 0.162679 | 0.038445 | 0.008301 | 0.01631 | 0.466579 | 0.417941 | 0.395224 | 0.365807 | 0.362313 | 0.344546 | 0 | 0.004478 | 0.316876 | 11,768 | 383 | 116 | 30.725849 | 0.849733 | 0.514361 | 0 | 0.252033 | 0 | 0 | 0.066532 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 1 | 0.203252 | false | 0 | 0.03252 | 0.065041 | 0.406504 | 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 |
e181315e7e219590c0ea367bb025b711da3c66ea | 653 | py | Python | nodes/rolling_circular_mean.py | willdickson/virtual_desert | 989e5b9e3f19e1c502795ae5033873365d325d1b | [
"MIT"
] | 1 | 2021-06-23T06:07:56.000Z | 2021-06-23T06:07:56.000Z | nodes/rolling_circular_mean.py | willdickson/virtual_desert | 989e5b9e3f19e1c502795ae5033873365d325d1b | [
"MIT"
] | null | null | null | nodes/rolling_circular_mean.py | willdickson/virtual_desert | 989e5b9e3f19e1c502795ae5033873365d325d1b | [
"MIT"
] | null | null | null | import numpy as np
class RollingCircularMean(object):
def __init__(self, size=800):
self.size = size
self.data = []
def insert_data(self,item):
self.data.append(np.deg2rad(item))
if len(self.data) > self.size:
self.data.pop(0)
def value(self):
if self.... | 26.12 | 84 | 0.526799 | 80 | 653 | 4.2125 | 0.45 | 0.142433 | 0.071217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018036 | 0.235835 | 653 | 24 | 85 | 27.208333 | 0.657315 | 0.143951 | 0 | 0 | 0 | 0 | 0 | 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 |
e18238599f7f49edac809b89d5e89319891ee838 | 811 | py | Python | faravdms/account/views.py | Quansah/faravdms_active | fd97464bb1528142d04bad15c1bcdb1d61e1dcbc | [
"Apache-2.0"
] | null | null | null | faravdms/account/views.py | Quansah/faravdms_active | fd97464bb1528142d04bad15c1bcdb1d61e1dcbc | [
"Apache-2.0"
] | null | null | null | faravdms/account/views.py | Quansah/faravdms_active | fd97464bb1528142d04bad15c1bcdb1d61e1dcbc | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import redirect, render
from django.http import HttpResponse
from django.contrib.auth.models import User, auth
from django.contrib import messages
# Create your views here.
def login(request):
if request.method == "POST":
username = request.POST['username']
password = request... | 28.964286 | 70 | 0.646116 | 90 | 811 | 5.822222 | 0.433333 | 0.076336 | 0.064886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254007 | 811 | 28 | 71 | 28.964286 | 0.866116 | 0.055487 | 0 | 0.095238 | 0 | 0 | 0.085079 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.095238 | 0.190476 | 0 | 0.47619 | 0.047619 | 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 |
e182ed1cfde1d37c9242758ee42827af07bfdc29 | 1,859 | py | Python | src/striga/core/lockable.py | ateska/striga | 451b5d9421e2e5fdf49b94c8f3d76e576abc5923 | [
"MIT"
] | null | null | null | src/striga/core/lockable.py | ateska/striga | 451b5d9421e2e5fdf49b94c8f3d76e576abc5923 | [
"MIT"
] | null | null | null | src/striga/core/lockable.py | ateska/striga | 451b5d9421e2e5fdf49b94c8f3d76e576abc5923 | [
"MIT"
] | null | null | null | import threading
class MRSWLock(object):
"Multi-read single-write lock object"
def __init__(self):
# critical-section lock & the data it protects
self.__rwOK = threading.Lock()
self.__nr = 0 # number readers actively reading (not just waiting)
self.__nw = 0 # number writers either waiting to writ... | 24.460526 | 77 | 0.671867 | 247 | 1,859 | 4.651822 | 0.275304 | 0.090513 | 0.052219 | 0.082681 | 0.407311 | 0.334204 | 0.308094 | 0.179286 | 0.179286 | 0.179286 | 0 | 0.010316 | 0.217859 | 1,859 | 75 | 78 | 24.786667 | 0.779917 | 0.123185 | 0 | 0.410714 | 0 | 0 | 0.109244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017857 | 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 |
e1830072980d99375d8f2528b5f7fbc415caaa04 | 6,783 | py | Python | cache/.mako.tmp/math_helper.tmpl.py | necromuralist/Bake-A-Pig-Like-A-Goat | 22b513fe0a8cbdcf813d6c663e7b8b58fb0e6fc9 | [
"MIT"
] | null | null | null | cache/.mako.tmp/math_helper.tmpl.py | necromuralist/Bake-A-Pig-Like-A-Goat | 22b513fe0a8cbdcf813d6c663e7b8b58fb0e6fc9 | [
"MIT"
] | null | null | null | cache/.mako.tmp/math_helper.tmpl.py | necromuralist/Bake-A-Pig-Like-A-Goat | 22b513fe0a8cbdcf813d6c663e7b8b58fb0e6fc9 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1591844202.310948
_enable_loop = True
_template_filename = '/home/athena/.virtualenvs/WiCCA/lib/py... | 46.77931 | 744 | 0.580422 | 797 | 6,783 | 4.564617 | 0.269762 | 0.080814 | 0.039582 | 0.038483 | 0.631666 | 0.593733 | 0.586036 | 0.56762 | 0.538208 | 0.5011 | 0 | 0.064439 | 0.263305 | 6,783 | 144 | 745 | 47.104167 | 0.663598 | 0.002949 | 0 | 0.729508 | 0 | 0.04918 | 0.353591 | 0.12523 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090164 | false | 0 | 0.008197 | 0.032787 | 0.188525 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e19768caf9d392b2ef04260911562d8a5108c7e2 | 1,415 | gyp | Python | linux/mapboxgl-app.gyp | free1978/mapbox-gl-native | 2a50fccd24e762d0de5a53bac358e5ddfea8d213 | [
"BSD-2-Clause"
] | 2 | 2017-02-28T22:41:54.000Z | 2020-02-13T20:54:55.000Z | linux/mapboxgl-app.gyp | free1978/mapbox-gl-native | 2a50fccd24e762d0de5a53bac358e5ddfea8d213 | [
"BSD-2-Clause"
] | null | null | null | linux/mapboxgl-app.gyp | free1978/mapbox-gl-native | 2a50fccd24e762d0de5a53bac358e5ddfea8d213 | [
"BSD-2-Clause"
] | null | null | null | {
'includes': [
'../common.gypi',
'../config.gypi',
],
'targets': [
{
'target_name': 'linuxapp',
'product_name': 'mapbox-gl',
'type': 'executable',
'sources': [
'./main.cpp',
'../common/settings_json.cpp',
'../common/settings_json.hpp',
'../commo... | 22.460317 | 50 | 0.405654 | 101 | 1,415 | 5.425743 | 0.485149 | 0.082117 | 0.062044 | 0.076642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004717 | 0.400707 | 1,415 | 62 | 51 | 22.822581 | 0.641509 | 0.014841 | 0 | 0.298246 | 0 | 0 | 0.478073 | 0.211359 | 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 |
e19bf3cb47e73568828faf307137ec1a427f6038 | 2,488 | py | Python | yat-master/pymodule/yat/test/ztools/install.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | yat-master/pymodule/yat/test/ztools/install.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | yat-master/pymodule/yat/test/ztools/install.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | #!/usr/bin/env python
# encoding=utf-8
"""
Copyright (c) 2021 Huawei Technologies Co.,Ltd.
openGauss is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFT... | 36.057971 | 128 | 0.644293 | 379 | 2,488 | 4.102902 | 0.395778 | 0.063023 | 0.083601 | 0.038585 | 0.27074 | 0.225723 | 0.210932 | 0.210932 | 0.210932 | 0.210932 | 0 | 0.013177 | 0.176447 | 2,488 | 68 | 129 | 36.588235 | 0.74573 | 0.014068 | 0 | 0.333333 | 0 | 0.047619 | 0.260982 | 0.063049 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.119048 | null | null | 0.095238 | 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 |
e19e268a664c6384e202cb97fcb1dbadf00e9c7e | 361 | py | Python | Week 3/ex4.py | rmit-s3559384-andrew-alvaro/IoT | ec444d0b037ddbd2e3aab01c34ea57fd2bd51d5f | [
"MIT"
] | null | null | null | Week 3/ex4.py | rmit-s3559384-andrew-alvaro/IoT | ec444d0b037ddbd2e3aab01c34ea57fd2bd51d5f | [
"MIT"
] | 1 | 2021-06-01T23:39:58.000Z | 2021-06-01T23:39:58.000Z | Week 3/ex4.py | AndrewAlvaro/IoT | ec444d0b037ddbd2e3aab01c34ea57fd2bd51d5f | [
"MIT"
] | null | null | null | from virtual_sense_hat import VirtualSenseHat
sense = VirtualSenseHat.getSenseHat()
# OR
# sense = VirtualSenseHat.getSenseHat(False)
temperature = sense.get_temperature()
sense.show_message('Temperature: {0:0.1f} *C'.format(temperature))
humidity = sense.get_humidity()
sense.show_message('Humidity: {0:0.0... | 25.785714 | 67 | 0.747922 | 43 | 361 | 6.139535 | 0.465116 | 0.147727 | 0.234848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018809 | 0.116343 | 361 | 13 | 68 | 27.769231 | 0.808777 | 0.124654 | 0 | 0 | 0 | 0 | 0.143333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e19e9a29358af7408c96fcfa4125417072c382af | 5,549 | py | Python | openstack/tests/unit/rds/v1/test_instance.py | wangrui1121/huaweicloud-sdk-python | 240abe00288760115d1791012d4e3c4592d77ad1 | [
"Apache-2.0"
] | 43 | 2018-12-19T08:39:15.000Z | 2021-07-21T02:45:43.000Z | openstack/tests/unit/rds/v1/test_instance.py | wangrui1121/huaweicloud-sdk-python | 240abe00288760115d1791012d4e3c4592d77ad1 | [
"Apache-2.0"
] | 11 | 2019-03-17T13:28:56.000Z | 2020-09-23T23:57:50.000Z | openstack/tests/unit/rds/v1/test_instance.py | wangrui1121/huaweicloud-sdk-python | 240abe00288760115d1791012d4e3c4592d77ad1 | [
"Apache-2.0"
] | 47 | 2018-12-19T05:14:25.000Z | 2022-03-19T15:28:30.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | 33.227545 | 78 | 0.655974 | 627 | 5,549 | 5.733652 | 0.331738 | 0.141864 | 0.142698 | 0.195271 | 0.196106 | 0.164673 | 0.139082 | 0.124618 | 0.124618 | 0.124618 | 0 | 0.045198 | 0.202559 | 5,549 | 166 | 79 | 33.427711 | 0.767232 | 0.094071 | 0 | 0.136 | 0 | 0 | 0.219741 | 0.069591 | 0 | 0 | 0 | 0 | 0.328 | 1 | 0.064 | false | 0 | 0.016 | 0 | 0.176 | 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 |
e1a0348f561a9bf18f7f4dd37d2b2b6ea75853be | 289 | py | Python | rx.py | chlds/extra | 8cd97eeca7b30d2ebe46cd2c19ecd5fb4400cff7 | [
"MIT"
] | null | null | null | rx.py | chlds/extra | 8cd97eeca7b30d2ebe46cd2c19ecd5fb4400cff7 | [
"MIT"
] | null | null | null | rx.py | chlds/extra | 8cd97eeca7b30d2ebe46cd2c19ecd5fb4400cff7 | [
"MIT"
] | null | null | null | import re
s = "Cooool, Python!"
ss = r"Co?"
mo = re.match(ss,s)
if mo: print(mo,type(mo))
ss = r"Co*"
mo = re.match(ss,s)
if mo: print(mo,type(mo))
ss = r"Co+"
mo = re.match(ss,s)
if mo: print(mo,type(mo))
# compile
sso = re.compile(ss)
mo = sso.match(s)
if mo: print(mo,type(mo))
| 12.041667 | 25 | 0.595156 | 62 | 289 | 2.774194 | 0.241935 | 0.069767 | 0.116279 | 0.232558 | 0.697674 | 0.697674 | 0.697674 | 0.593023 | 0.593023 | 0.593023 | 0 | 0 | 0.179931 | 289 | 23 | 26 | 12.565217 | 0.725738 | 0.024221 | 0 | 0.5 | 0 | 0 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.285714 | 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 |
e1a37b231c27a4ce8945a3c5ec932e75f35e236c | 1,457 | py | Python | CLScript/CloudLinuxPackages.py | uzairAK/serverom-panel | 3dcde05ad618e6bef280db7d3180f926fe2ab1db | [
"MIT"
] | null | null | null | CLScript/CloudLinuxPackages.py | uzairAK/serverom-panel | 3dcde05ad618e6bef280db7d3180f926fe2ab1db | [
"MIT"
] | null | null | null | CLScript/CloudLinuxPackages.py | uzairAK/serverom-panel | 3dcde05ad618e6bef280db7d3180f926fe2ab1db | [
"MIT"
] | null | null | null | #!/usr/local/CyberCP/bin/python
import sys
import os.path
import django
sys.path.append('/usr/local/CyberCP')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CyberCP.settings")
try:
django.setup()
except:
pass
from packages.models import Package
import argparse
import json
from CLScript.CLMain import CLMain
fr... | 26.981481 | 95 | 0.616335 | 154 | 1,457 | 5.701299 | 0.454545 | 0.034169 | 0.034169 | 0.038724 | 0.214123 | 0.159453 | 0.159453 | 0.159453 | 0.159453 | 0.159453 | 0 | 0 | 0.269732 | 1,457 | 53 | 96 | 27.490566 | 0.825188 | 0.02059 | 0 | 0.302326 | 0 | 0 | 0.096073 | 0.015428 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0.069767 | 0.186047 | 0 | 0.255814 | 0.023256 | 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 |
e1a6c0a29c25f728576b235c0d444adb907d4f27 | 10,412 | py | Python | neuroscout/populate/extract.py | jdkent/neuroscout | 67aaafdf883988e2048197dc9ce4559a28e3b7b6 | [
"BSD-3-Clause"
] | null | null | null | neuroscout/populate/extract.py | jdkent/neuroscout | 67aaafdf883988e2048197dc9ce4559a28e3b7b6 | [
"BSD-3-Clause"
] | null | null | null | neuroscout/populate/extract.py | jdkent/neuroscout | 67aaafdf883988e2048197dc9ce4559a28e3b7b6 | [
"BSD-3-Clause"
] | null | null | null | """ Feature extraction methods
Set of methods to extract features from stimuli in a dataset and generate
the associated predictors
"""
from flask import current_app
from ..core import cache
from ..database import db
import socket
from pathlib import Path
import datetime
from progressbar import progressbar
from ..utils... | 37.318996 | 80 | 0.631771 | 1,288 | 10,412 | 4.902174 | 0.208851 | 0.034843 | 0.03421 | 0.042129 | 0.22854 | 0.175166 | 0.157586 | 0.130187 | 0.100729 | 0.086791 | 0 | 0.002263 | 0.278429 | 10,412 | 278 | 81 | 37.453237 | 0.838147 | 0.207549 | 0 | 0.138728 | 1 | 0 | 0.040231 | 0.004512 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052023 | false | 0 | 0.080925 | 0 | 0.179191 | 0.034682 | 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 |
e1a9f858fb726dd44fc56e52a01d4c2545ffa80f | 3,650 | py | Python | azkaban_cli/tests/test_azkaban/test_login.py | hermancaldara/azkaban-cli | 597bd5a406c8a8d5e45e18f98f030069feb17b98 | [
"MIT"
] | 21 | 2019-03-14T16:39:30.000Z | 2021-10-05T17:37:06.000Z | azkaban_cli/tests/test_azkaban/test_login.py | hermancaldara/azkaban-cli | 597bd5a406c8a8d5e45e18f98f030069feb17b98 | [
"MIT"
] | 61 | 2018-11-19T23:06:47.000Z | 2020-11-05T11:40:39.000Z | azkaban_cli/tests/test_azkaban/test_login.py | hermancaldara/azkaban-cli | 597bd5a406c8a8d5e45e18f98f030069feb17b98 | [
"MIT"
] | 34 | 2019-09-30T21:08:59.000Z | 2021-12-23T16:18:14.000Z | from unittest import TestCase
from unittest.mock import patch, ANY
import requests
import responses
import azkaban_cli.azkaban
from azkaban_cli.exceptions import LoginError
class AzkabanLoginTest(TestCase):
def setUp(self):
"""
Creates an Azkaban instance for all login tests
"""
... | 33.796296 | 117 | 0.660274 | 429 | 3,650 | 5.496504 | 0.205128 | 0.08821 | 0.071247 | 0.036048 | 0.613232 | 0.602205 | 0.576336 | 0.562341 | 0.562341 | 0.544529 | 0 | 0.009691 | 0.236712 | 3,650 | 107 | 118 | 34.11215 | 0.836683 | 0.211507 | 0 | 0.462963 | 0 | 0 | 0.156538 | 0.026888 | 0 | 0 | 0 | 0 | 0.148148 | 1 | 0.111111 | false | 0.148148 | 0.111111 | 0 | 0.240741 | 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 |
e1ab73bca5dd3dc3c7a8e7dcce74eb69ffd19ebe | 463 | py | Python | phi/jax/__init__.py | eliasdjo/PhiFlow | dc88dca696d25a5ea5793aa48fae390469f0d829 | [
"MIT"
] | 556 | 2019-12-04T16:48:54.000Z | 2022-03-31T16:31:59.000Z | phi/jax/__init__.py | eliasdjo/PhiFlow | dc88dca696d25a5ea5793aa48fae390469f0d829 | [
"MIT"
] | 26 | 2019-12-12T16:54:06.000Z | 2022-03-14T19:44:36.000Z | phi/jax/__init__.py | eliasdjo/PhiFlow | dc88dca696d25a5ea5793aa48fae390469f0d829 | [
"MIT"
] | 93 | 2019-12-08T14:38:27.000Z | 2022-03-29T16:38:37.000Z | """
Jax integration.
Importing this module registers the Jax backend with `phi.math`.
Without this, Jax tensors cannot be handled by `phi.math` functions.
To make Jax the default backend, import `phi.jax.flow`.
"""
from phi import math as _math
from ._jax_backend import JaxBackend as _JaxBackend
JAX = _JaxBackend()... | 24.368421 | 70 | 0.74514 | 68 | 463 | 4.911765 | 0.558824 | 0.05988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144708 | 463 | 18 | 71 | 25.722222 | 0.843434 | 0.449244 | 0 | 0 | 0 | 0 | 0.004673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e1ac76cc9ca3d5b97b67ce59053457ac9b5c0f17 | 587 | py | Python | sound_features/extract_sounds.py | zhengx4/video_image_features | 08a980caffab1120dcf0ff689f31d78f61ea83fc | [
"MIT"
] | 5 | 2018-09-19T13:04:00.000Z | 2021-04-28T15:12:09.000Z | sound_features/extract_sounds.py | zhengx4/video_image_features | 08a980caffab1120dcf0ff689f31d78f61ea83fc | [
"MIT"
] | 1 | 2019-05-11T21:58:48.000Z | 2019-05-11T21:58:48.000Z | sound_features/extract_sounds.py | zhengx4/video_image_features | 08a980caffab1120dcf0ff689f31d78f61ea83fc | [
"MIT"
] | 2 | 2019-03-24T15:48:26.000Z | 2020-03-22T12:37:59.000Z | import __folder_params
import sys
sys.path.insert(0, __folder_params.home)
import utils
import subprocess
def extract_sounds_from_vids():
ivid = utils.get_files_iterator('video')
for v in ivid:
cm = 'ffmpeg -i {} -ab 160k -ac 2 -ar 44100 -vn {}'.format(
v, v.replace('.webm', '.wav'))
... | 26.681818 | 67 | 0.657581 | 89 | 587 | 4.033708 | 0.595506 | 0.066852 | 0.108635 | 0.175487 | 0.083565 | 0.083565 | 0 | 0 | 0 | 0 | 0 | 0.021413 | 0.204429 | 587 | 21 | 68 | 27.952381 | 0.747323 | 0.086882 | 0 | 0 | 0 | 0 | 0.134579 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.25 | 0 | 0.375 | 0.0625 | 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 |
e1ae094ade56c8620355984c4e7482bd16694408 | 541 | py | Python | django/sample/polls/migrations/0003_auto_20170717_1338.py | jyodroid/python_training | 7b17145faed6a005d44a08c2f72a60644705f1e1 | [
"Unlicense"
] | null | null | null | django/sample/polls/migrations/0003_auto_20170717_1338.py | jyodroid/python_training | 7b17145faed6a005d44a08c2f72a60644705f1e1 | [
"Unlicense"
] | null | null | null | django/sample/polls/migrations/0003_auto_20170717_1338.py | jyodroid/python_training | 7b17145faed6a005d44a08c2f72a60644705f1e1 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-17 18:38
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('polls', '0002_auto_20170717_0920'),
]
operations = [
migrations.RenameModel(
... | 21.64 | 48 | 0.584104 | 57 | 541 | 5.280702 | 0.701754 | 0.099668 | 0.086379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087302 | 0.301294 | 541 | 24 | 49 | 22.541667 | 0.708995 | 0.125693 | 0 | 0.117647 | 1 | 0 | 0.144681 | 0.048936 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 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 |
e1b76d387b9502ea5cef483b742ad5f619e576fc | 379 | py | Python | components.py | manavnarang/House-Price-Prediction | ca2c0b53341f5f60fdba810a39ff92647a7a18b5 | [
"BSD-3-Clause"
] | null | null | null | components.py | manavnarang/House-Price-Prediction | ca2c0b53341f5f60fdba810a39ff92647a7a18b5 | [
"BSD-3-Clause"
] | null | null | null | components.py | manavnarang/House-Price-Prediction | ca2c0b53341f5f60fdba810a39ff92647a7a18b5 | [
"BSD-3-Clause"
] | null | null | null |
class State:
def __init__(self):
self.StateId = 0
self.StateName = ""
class City:
def __init__(self):
self.CityId = 0
self.CityName = ""
self.StateId = 0
class Properties:
def __init__(self):
self.Area=0
self.Age=0
self... | 16.478261 | 27 | 0.51715 | 46 | 379 | 4 | 0.369565 | 0.190217 | 0.179348 | 0.244565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.382586 | 379 | 23 | 28 | 16.478261 | 0.747863 | 0 | 0 | 0.411765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0 | 0 | 0.352941 | 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 |
e1ba53499e402cf74fbfaf23ffe84576aed95012 | 8,760 | py | Python | 6.00.1x/pset7/ps7.py | NicholasAsimov/courses | d60981f25816445578eb9e89bbbeef2d38eaf014 | [
"MIT"
] | null | null | null | 6.00.1x/pset7/ps7.py | NicholasAsimov/courses | d60981f25816445578eb9e89bbbeef2d38eaf014 | [
"MIT"
] | null | null | null | 6.00.1x/pset7/ps7.py | NicholasAsimov/courses | d60981f25816445578eb9e89bbbeef2d38eaf014 | [
"MIT"
] | null | null | null | import random
import math
import string
class AdoptionCenter:
"""
The AdoptionCenter class stores the important information that a
client would need to know about, such as the different numbers of
species stored, the location, and the name. It also has a method to adopt a pet.
"""
def... | 41.714286 | 191 | 0.691553 | 1,176 | 8,760 | 4.973639 | 0.196429 | 0.071807 | 0.02462 | 0.035733 | 0.318003 | 0.268251 | 0.243118 | 0.178492 | 0.116772 | 0.099675 | 0 | 0.009679 | 0.245205 | 8,760 | 209 | 192 | 41.913876 | 0.874924 | 0.370548 | 0 | 0.317757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214953 | false | 0 | 0.028037 | 0.065421 | 0.504673 | 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 |
e1bf9aad12682005c10a26130de081d98cb878f4 | 158 | py | Python | python/chap_1/1.4.6.py | RyodoTanaka/Cording_Matrix | 7d357266c0b659495f226000418e9cdaee133ebf | [
"BSD-3-Clause"
] | null | null | null | python/chap_1/1.4.6.py | RyodoTanaka/Cording_Matrix | 7d357266c0b659495f226000418e9cdaee133ebf | [
"BSD-3-Clause"
] | null | null | null | python/chap_1/1.4.6.py | RyodoTanaka/Cording_Matrix | 7d357266c0b659495f226000418e9cdaee133ebf | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import cplotting as cplot
points=[3+1j, -1-4j]
for p in points:
cplot.quniver(p, -3+3j, 4)
cplot.show()
| 13.166667 | 30 | 0.613924 | 28 | 158 | 3.464286 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062016 | 0.183544 | 158 | 11 | 31 | 14.363636 | 0.689922 | 0.265823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 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 | 0 | 0 | 1 |
e1c3d2c6efaece70ccbf432dc29e85c19d1a472a | 293 | py | Python | account/urls.py | soltanoff/simple_file_server | 4e825358341fae0564fc498e8374a3d3cdda199e | [
"MIT"
] | 2 | 2018-06-15T11:39:42.000Z | 2019-08-14T20:55:15.000Z | account/urls.py | soltanoff/simple_file_server | 4e825358341fae0564fc498e8374a3d3cdda199e | [
"MIT"
] | 7 | 2018-12-04T07:35:24.000Z | 2022-03-11T23:12:10.000Z | account/urls.py | soltanoff/simple_file_server | 4e825358341fae0564fc498e8374a3d3cdda199e | [
"MIT"
] | null | null | null | from django.urls import path
from account.apps import AccountConfig
from account.views import CustomLoginView
from . import views
app_name = AccountConfig.name
urlpatterns = [
path(r'login/', CustomLoginView.as_view(), name='login'),
path(r'logout/', views.logout, name='logout'),
]
| 24.416667 | 61 | 0.74744 | 38 | 293 | 5.710526 | 0.473684 | 0.101382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133106 | 293 | 11 | 62 | 26.636364 | 0.854331 | 0 | 0 | 0 | 0 | 0 | 0.081911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 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 |
e1c8797e390091628d35e294a499d1cc8a80866e | 1,905 | py | Python | tools/line_endings.py | Nitrillo/emscripten | b3efd9328f940034e1cab45af23bf29541e0d8ff | [
"MIT"
] | 6 | 2015-07-27T13:03:22.000Z | 2020-02-20T18:30:29.000Z | tools/line_endings.py | TheGoozah/emscripten | 42fb486c53d627b203b77af6e5d0c088c0ad03ad | [
"MIT"
] | 2 | 2015-06-21T17:38:11.000Z | 2015-06-22T20:54:42.000Z | tools/line_endings.py | TheGoozah/emscripten | 42fb486c53d627b203b77af6e5d0c088c0ad03ad | [
"MIT"
] | 1 | 2021-02-28T05:57:34.000Z | 2021-02-28T05:57:34.000Z | import sys
# This function checks and prints out the detected line endings in the given file.
# If the file only contains either Windows \r\n line endings or Unix \n line endings, it returns 0.
# Otherwise, in the presence of old OSX or mixed/malformed line endings, a non-zero error code is returned.
def check_line_en... | 46.463415 | 128 | 0.671916 | 308 | 1,905 | 4.038961 | 0.324675 | 0.168006 | 0.078778 | 0.072347 | 0.251608 | 0.251608 | 0.251608 | 0.204984 | 0.204984 | 0.167203 | 0 | 0.00857 | 0.203675 | 1,905 | 40 | 129 | 47.625 | 0.81147 | 0.293963 | 0 | 0.151515 | 0 | 0 | 0.238594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030303 | null | null | 0.242424 | 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 |
e1cdc93ba07ed864a581503cc9f1baf3dcfb86d6 | 1,373 | py | Python | exercises/general/builder.py | angelptli/my_kivy_journey | 2718e3ef22f67a71e89cf297a34cb12825a2c3da | [
"MIT"
] | null | null | null | exercises/general/builder.py | angelptli/my_kivy_journey | 2718e3ef22f67a71e89cf297a34cb12825a2c3da | [
"MIT"
] | null | null | null | exercises/general/builder.py | angelptli/my_kivy_journey | 2718e3ef22f67a71e89cf297a34cb12825a2c3da | [
"MIT"
] | null | null | null | # File: builder.py
# Desc: Make Kivy look for a specifically named Kv file to load.
import kivy
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.properties import ObjectProperty
from kivy.lang import Builder
# Load Kv file with whatever path or filename. This looks only for whatever.kv.
Builder.l... | 26.921569 | 79 | 0.630007 | 179 | 1,373 | 4.77095 | 0.458101 | 0.037471 | 0.035129 | 0.023419 | 0.12178 | 0.12178 | 0.12178 | 0.12178 | 0.12178 | 0.12178 | 0 | 0 | 0.267298 | 1,373 | 50 | 80 | 27.46 | 0.848907 | 0.396941 | 0 | 0 | 0 | 0 | 0.109741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.208333 | 0.041667 | 0.541667 | 0.041667 | 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 |
e1d0eb5c568db30ff3e26d1f7ae2391e3d0988e4 | 245 | py | Python | Python/Alphabet Rangoli.py | vipmunot/HackerRank | 39d1beb97545592da5cec6e4b9ae0fce32f5ec39 | [
"MIT"
] | null | null | null | Python/Alphabet Rangoli.py | vipmunot/HackerRank | 39d1beb97545592da5cec6e4b9ae0fce32f5ec39 | [
"MIT"
] | null | null | null | Python/Alphabet Rangoli.py | vipmunot/HackerRank | 39d1beb97545592da5cec6e4b9ae0fce32f5ec39 | [
"MIT"
] | null | null | null | N=int(input())
for i in range (-(N-1),N):
for j in range (-2*(N-1),2*(N-1)+1):
if j%2==0 and (abs(j//2)+abs(i))< N:
print (chr(abs(j//2)+abs(i)+ord('a')),end='')
else:
print('-',end='')
print() | 30.625 | 59 | 0.408163 | 46 | 245 | 2.173913 | 0.434783 | 0.06 | 0.06 | 0.16 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057803 | 0.293878 | 245 | 8 | 60 | 30.625 | 0.520231 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 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 |
becc40787e6ff37271f555243cea31a251ad3cfb | 2,018 | py | Python | hwtLib/logic/binToOneHot.py | Nic30/hwtLib | 52fd28023c4a25f64da17bb4d7c3089d5c7348f4 | [
"MIT"
] | 24 | 2017-02-23T10:00:50.000Z | 2022-01-28T12:20:21.000Z | hwtLib/logic/binToOneHot.py | Nic30/hwtLib | 52fd28023c4a25f64da17bb4d7c3089d5c7348f4 | [
"MIT"
] | 32 | 2017-04-28T10:29:34.000Z | 2021-04-27T09:16:43.000Z | hwtLib/logic/binToOneHot.py | Nic30/hwtLib | 52fd28023c4a25f64da17bb4d7c3089d5c7348f4 | [
"MIT"
] | 8 | 2019-09-19T03:34:36.000Z | 2022-01-21T06:56:58.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from hwt.code import Concat
from hwt.interfaces.std import Signal, VectSignal
from hwt.math import log2ceil
from hwt.serializer.mode import serializeParamsUniq
from hwt.simulator.simTestCase import SimTestCase
from hwt.synthesizer.param import Param
from hwt.synthesizer.u... | 24.02381 | 90 | 0.630327 | 260 | 2,018 | 4.75 | 0.419231 | 0.045344 | 0.042105 | 0.011336 | 0.019433 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011318 | 0.255699 | 2,018 | 83 | 91 | 24.313253 | 0.810919 | 0.084242 | 0 | 0.037037 | 0 | 0 | 0.004384 | 0 | 0 | 0 | 0 | 0.012048 | 0.018519 | 1 | 0.111111 | false | 0 | 0.185185 | 0 | 0.37037 | 0.018519 | 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 |
bece4de0602548437431fb83ff23827dc2d9ce35 | 1,149 | py | Python | api/schedules/status_blockchains.py | bdeprez/machinaris | 233d6e60ae6526b999fb660d9b87a895341de96f | [
"Apache-2.0"
] | null | null | null | api/schedules/status_blockchains.py | bdeprez/machinaris | 233d6e60ae6526b999fb660d9b87a895341de96f | [
"Apache-2.0"
] | null | null | null | api/schedules/status_blockchains.py | bdeprez/machinaris | 233d6e60ae6526b999fb660d9b87a895341de96f | [
"Apache-2.0"
] | null | null | null | #
# Performs a REST call to controller (possibly localhost) of latest blockchain status.
#
import datetime
import http
import json
import os
import requests
import socket
import sqlite3
import traceback
from flask import g
from common.config import globals
from api.commands import chia_cli, mmx_cli
from api import ... | 28.02439 | 86 | 0.600522 | 124 | 1,149 | 5.459677 | 0.532258 | 0.031019 | 0.038405 | 0.062038 | 0.091581 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001284 | 0.322019 | 1,149 | 40 | 87 | 28.725 | 0.867779 | 0.073107 | 0 | 0 | 0 | 0 | 0.080113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.40625 | 0 | 0.4375 | 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 |
beceafb960254fe428319315038b1cc35b3706d4 | 4,548 | py | Python | model_analyzer/result/measurement.py | jishminor/model_analyzer | 8593a473bcc923f90a892cffe59fa9980b55c27f | [
"Apache-2.0"
] | null | null | null | model_analyzer/result/measurement.py | jishminor/model_analyzer | 8593a473bcc923f90a892cffe59fa9980b55c27f | [
"Apache-2.0"
] | null | null | null | model_analyzer/result/measurement.py | jishminor/model_analyzer | 8593a473bcc923f90a892cffe59fa9980b55c27f | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | 28.425 | 80 | 0.608619 | 548 | 4,548 | 4.846715 | 0.332117 | 0.065889 | 0.041416 | 0.036898 | 0.213855 | 0.163027 | 0.110316 | 0.053087 | 0.036145 | 0.036145 | 0 | 0.004896 | 0.326297 | 4,548 | 159 | 81 | 28.603774 | 0.861945 | 0.44657 | 0 | 0.041667 | 0 | 0 | 0.028773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.0625 | 0 | 0.479167 | 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 |
beceb79e29ec1917953e89fb04df46c5d7d31ef5 | 244 | py | Python | let_him_shine.py | fuzzythecat/eclass-got-talent | 3b12bf6a2780e04cc125a710e98186ec41647eac | [
"MIT"
] | 1 | 2019-12-09T08:45:31.000Z | 2019-12-09T08:45:31.000Z | let_him_shine.py | fuzzythecat/eclass-got-talent | 3b12bf6a2780e04cc125a710e98186ec41647eac | [
"MIT"
] | null | null | null | let_him_shine.py | fuzzythecat/eclass-got-talent | 3b12bf6a2780e04cc125a710e98186ec41647eac | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
from PyQt4.QtGui import QApplication
import modules.gui as gui
def main():
app = QApplication(sys.argv)
fig = gui.MainFrame()
app.exec_()
if __name__ == "__main__":
main()
| 16.266667 | 36 | 0.647541 | 33 | 244 | 4.515152 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010256 | 0.20082 | 244 | 14 | 37 | 17.428571 | 0.753846 | 0.155738 | 0 | 0 | 0 | 0 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 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 |
bedcef8422d5a9a17bf09e7f398906ad13ac23f9 | 17,623 | py | Python | utils/dact.py | WowCZ/strac | a55195a04ea4f1a4051fdcf11e83777b47ca83e1 | [
"Apache-2.0"
] | 3 | 2019-09-27T06:07:12.000Z | 2020-01-06T19:00:34.000Z | utils/dact.py | WowCZ/strac | a55195a04ea4f1a4051fdcf11e83777b47ca83e1 | [
"Apache-2.0"
] | null | null | null | utils/dact.py | WowCZ/strac | a55195a04ea4f1a4051fdcf11e83777b47ca83e1 | [
"Apache-2.0"
] | 1 | 2019-11-27T09:28:10.000Z | 2019-11-27T09:28:10.000Z | ###############################################################################
# PyDial: Multi-domain Statistical Spoken Dialogue System Software
###############################################################################
#
# Copyright 2015 - 2017
# Cambridge University Engineering Department Dialogue Systems Grou... | 33.440228 | 147 | 0.470805 | 1,988 | 17,623 | 4.061368 | 0.157948 | 0.029725 | 0.01895 | 0.019321 | 0.405128 | 0.378375 | 0.340228 | 0.300718 | 0.25997 | 0.240525 | 0 | 0.007474 | 0.35465 | 17,623 | 526 | 148 | 33.503802 | 0.702453 | 0.108097 | 0 | 0.522388 | 0 | 0 | 0.123761 | 0.028443 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00597 | 0.008955 | null | null | 0.01194 | 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 |
beddbee67e62c70f3ef95605031b97c390b8dcdd | 180 | py | Python | 1. blankGUI.py | spoonsandhangers/GUI_Not_OOP | 8fb35026233816370c681b1aee93d665dfa830fe | [
"CC0-1.0"
] | null | null | null | 1. blankGUI.py | spoonsandhangers/GUI_Not_OOP | 8fb35026233816370c681b1aee93d665dfa830fe | [
"CC0-1.0"
] | null | null | null | 1. blankGUI.py | spoonsandhangers/GUI_Not_OOP | 8fb35026233816370c681b1aee93d665dfa830fe | [
"CC0-1.0"
] | null | null | null | """
This is a basic window that closes when the cross is pressed.
"""
from tkinter import *
window = Tk()
window.title("My window")
window.geometry("600x600")
window.mainloop()
| 15 | 61 | 0.711111 | 26 | 180 | 4.923077 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039474 | 0.155556 | 180 | 11 | 62 | 16.363636 | 0.802632 | 0.338889 | 0 | 0 | 0 | 0 | 0.144144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 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 | 0 | 0 | 1 |
bee0e712c456e4621c6a5a431cb0f5f2b2b6ecbe | 813 | py | Python | data_collection/course_critique/course_critique_scraper.py | yashchitalia/jack-holmes | 1ce3c65c1477390fb15d99a14f608f62745548b1 | [
"Apache-2.0"
] | 1 | 2017-03-30T02:25:18.000Z | 2017-03-30T02:25:18.000Z | data_collection/course_critique/course_critique_scraper.py | yashchitalia/jack-holmes | 1ce3c65c1477390fb15d99a14f608f62745548b1 | [
"Apache-2.0"
] | null | null | null | data_collection/course_critique/course_critique_scraper.py | yashchitalia/jack-holmes | 1ce3c65c1477390fb15d99a14f608f62745548b1 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import numpy as np
import xlrd
import pickle as pkl
list_of_classes = [u'CS 6035', u'CS 6210', u'CSE 6220', u'CSE 6242', u'CS 6250', u'CS 6262', u'CS 6290', u'CS 6300', u'CS 6310', u'CS 6340', u'CS 6400', u'CS 6440', u'CS 6460', u'CS 6475', u'CS 4495', u'CS 6505', u'CS 6601', u'CS 7637', u'CS 7641'... | 45.166667 | 300 | 0.678967 | 142 | 813 | 3.732394 | 0.457746 | 0.107547 | 0.120755 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131934 | 0.179582 | 813 | 17 | 301 | 47.823529 | 0.662669 | 0 | 0 | 0 | 0 | 0 | 0.276753 | 0.060271 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.266667 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bee6f1914c532781869759c572db5a90dd3e0930 | 2,183 | py | Python | src/private/scripts/generateReport.py | victor-t/tblBuilder | e1a0d4f625931be4c7ad7d659ce5f0e06c58a7b2 | [
"MIT"
] | 2 | 2017-08-24T16:38:08.000Z | 2018-06-19T13:00:52.000Z | src/private/scripts/generateReport.py | victor-t/tblBuilder | e1a0d4f625931be4c7ad7d659ce5f0e06c58a7b2 | [
"MIT"
] | 3 | 2018-01-24T17:10:03.000Z | 2018-04-23T19:54:26.000Z | src/private/scripts/generateReport.py | victor-t/tblBuilder | e1a0d4f625931be4c7ad7d659ce5f0e06c58a7b2 | [
"MIT"
] | 2 | 2019-02-12T21:16:54.000Z | 2022-02-11T21:09:03.000Z | """
Generate Word reports using python. Two input values are required:
1) The report class name, for example: NtpAnimalHtmlTables
2) The JSON formatted context
Inputs can be passed either via the command line:
source ~/.virtualenvs/tblBuilder/bin/activate
cd ~/dev/tblBuilder/private/scripts
python genera... | 25.988095 | 81 | 0.650481 | 291 | 2,183 | 4.745704 | 0.395189 | 0.072411 | 0.04924 | 0.047791 | 0.155684 | 0.090514 | 0.090514 | 0.062274 | 0 | 0 | 0 | 0.012092 | 0.242327 | 2,183 | 83 | 82 | 26.301205 | 0.822854 | 0.271186 | 0 | 0.192308 | 1 | 0 | 0.142225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.115385 | 0 | 0.192308 | 0.019231 | 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 |
bee717fb89ba28f7b5018e333b5fbf2dee73b5f5 | 9,495 | py | Python | src/midibasis.py | ichaelm/MusicPrediction | df495410d5f956eb7656045363479ad378ef71f6 | [
"MIT"
] | null | null | null | src/midibasis.py | ichaelm/MusicPrediction | df495410d5f956eb7656045363479ad378ef71f6 | [
"MIT"
] | null | null | null | src/midibasis.py | ichaelm/MusicPrediction | df495410d5f956eb7656045363479ad378ef71f6 | [
"MIT"
] | null | null | null | # Attribute basis to MRL - (do not individually apply to MTP)
# http://www.music.mcgill.ca/~jason/mumt621/papers5/fujishima_1999.pdf ?
# https://www.jstor.org/stable/pdf/40285717.pdf
# Zicheng (Brian) Gao
from MusicRoll import *
import TensionModule
import PPMBasis
import numpy as np
import pickle
import pprint
fro... | 31.755853 | 126 | 0.681201 | 1,407 | 9,495 | 4.463397 | 0.297086 | 0.020701 | 0.017197 | 0.019108 | 0.176752 | 0.144745 | 0.099204 | 0.076274 | 0.022452 | 0.022452 | 0 | 0.029052 | 0.191575 | 9,495 | 299 | 127 | 31.755853 | 0.789083 | 0.294997 | 0 | 0.166667 | 0 | 0 | 0.029535 | 0.007384 | 0 | 0 | 0 | 0.010033 | 0.006173 | 1 | 0.080247 | false | 0 | 0.061728 | 0.024691 | 0.179012 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
beeb3a94084f5b6a7f43e71be7d81f8f4608a02e | 6,846 | py | Python | pyhole/core/utils.py | troytoman/pyhole | a35816e75e2be08e6000008b604737fff9b04ac6 | [
"Apache-2.0"
] | null | null | null | pyhole/core/utils.py | troytoman/pyhole | a35816e75e2be08e6000008b604737fff9b04ac6 | [
"Apache-2.0"
] | null | null | null | pyhole/core/utils.py | troytoman/pyhole | a35816e75e2be08e6000008b604737fff9b04ac6 | [
"Apache-2.0"
] | 1 | 2020-04-13T17:24:53.000Z | 2020-04-13T17:24:53.000Z | # Copyright 2010-2015 Josh Kearney
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | 23.365188 | 78 | 0.656004 | 876 | 6,846 | 4.925799 | 0.317352 | 0.020394 | 0.015295 | 0.009733 | 0.133488 | 0.075782 | 0.075782 | 0.064658 | 0.064658 | 0.048436 | 0 | 0.012334 | 0.230207 | 6,846 | 292 | 79 | 23.445205 | 0.806452 | 0.083552 | 0 | 0.184783 | 0 | 0 | 0.205183 | 0.003727 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027174 | 0.076087 | null | null | 0.01087 | 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 |
bef2b6e0e022f1d77ded203b5b4bc2a0109338d3 | 382 | py | Python | src/courses/migrations/0010_auto_20190424_1722.py | jcromerohdz/h2olearning | deedbe7ba2f1721d431b465b052ce0e130898611 | [
"MIT"
] | null | null | null | src/courses/migrations/0010_auto_20190424_1722.py | jcromerohdz/h2olearning | deedbe7ba2f1721d431b465b052ce0e130898611 | [
"MIT"
] | null | null | null | src/courses/migrations/0010_auto_20190424_1722.py | jcromerohdz/h2olearning | deedbe7ba2f1721d431b465b052ce0e130898611 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2019-04-24 17:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('courses', '0009_mycourses'),
]
operations = [
migrations.AlterModelOptions(
name='mycourses',
options={'verbose_name': 'My Cou... | 21.222222 | 88 | 0.609948 | 39 | 382 | 5.871795 | 0.692308 | 0.09607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064286 | 0.267016 | 382 | 17 | 89 | 22.470588 | 0.753571 | 0.112565 | 0 | 0 | 1 | 0 | 0.240356 | 0 | 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 |
bef7cf3e7ce9907c564c40f27d863518fde5dcc5 | 163 | py | Python | abc/abc216/b/main.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | 2 | 2022-01-22T07:56:58.000Z | 2022-01-24T00:29:37.000Z | abc/abc216/b/main.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | abc/abc216/b/main.py | tonko2/AtCoder | 5d617072517881d226d7c8af09cb88684d41af7e | [
"Xnet",
"X11",
"CECILL-B"
] | null | null | null | N = int(input())
C = set()
for _ in range(N):
S, T = map(str, input().split())
C.add(tuple([S, T]))
if len(C) == N:
print("No")
else:
print("Yes") | 16.3 | 36 | 0.490798 | 29 | 163 | 2.724138 | 0.724138 | 0.050633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245399 | 163 | 10 | 37 | 16.3 | 0.642276 | 0 | 0 | 0 | 0 | 0 | 0.030488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 1 | 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 | 0 | 0 | 1 |
befc3f221fd52f04d113fec36e7e1c002a5d5f18 | 4,625 | py | Python | bluebottle/geo/admin.py | jayvdb/bluebottle | 305fea238e6aa831598a8b227223a1a2f34c4fcc | [
"BSD-3-Clause"
] | null | null | null | bluebottle/geo/admin.py | jayvdb/bluebottle | 305fea238e6aa831598a8b227223a1a2f34c4fcc | [
"BSD-3-Clause"
] | null | null | null | bluebottle/geo/admin.py | jayvdb/bluebottle | 305fea238e6aa831598a8b227223a1a2f34c4fcc | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from django.contrib.contenttypes.admin import GenericStackedInline
from django.core.urlresolvers import reverse
from django.utils.html import format_html
from django.utils.translation import ugettext_lazy as _
from parler.admin import TranslatableAdmin
from bluebottle.geo.models import... | 30.228758 | 98 | 0.646054 | 472 | 4,625 | 6.131356 | 0.288136 | 0.031444 | 0.032827 | 0.044921 | 0.253628 | 0.232896 | 0.199032 | 0.14651 | 0.119558 | 0.078784 | 0 | 0.002212 | 0.218162 | 4,625 | 152 | 99 | 30.427632 | 0.798119 | 0 | 0 | 0.158879 | 0 | 0 | 0.168 | 0.023568 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065421 | false | 0.009346 | 0.074766 | 0.018692 | 0.551402 | 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 |
befce7dcad3fee62c732df8bec307de52565860c | 851 | py | Python | advent_of_code/utils/DoubleLinkedLIst.py | NJAPe/advent-of-code-2018 | 9fc4b8c6b32518fc39331465cf7773674081c7df | [
"MIT"
] | 1 | 2018-12-25T13:08:38.000Z | 2018-12-25T13:08:38.000Z | advent_of_code/utils/DoubleLinkedLIst.py | NJAPe/advent-of-code-2018 | 9fc4b8c6b32518fc39331465cf7773674081c7df | [
"MIT"
] | null | null | null | advent_of_code/utils/DoubleLinkedLIst.py | NJAPe/advent-of-code-2018 | 9fc4b8c6b32518fc39331465cf7773674081c7df | [
"MIT"
] | null | null | null | class DoubleLinkedList:
def __init__(self, value):
self.prev = self
self.next = self
self.value = value
def get_next(self):
return self.next
def get_prev(self):
return self.prev
def get_value(self):
return self.value
def move_clockwise(self, steps=... | 22.394737 | 46 | 0.564042 | 111 | 851 | 4.198198 | 0.198198 | 0.137339 | 0.103004 | 0.081545 | 0.334764 | 0.334764 | 0.23176 | 0.23176 | 0.23176 | 0.23176 | 0 | 0.003604 | 0.347826 | 851 | 37 | 47 | 23 | 0.836036 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0 | 0.1 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
beff0512998e2966c2ecbb77318e0b746ba5731c | 6,299 | py | Python | heroku_tools/heroku.py | yunojuno-archive/heroku-tools | c2cc89452568a4714f26fb928757af88541e15a2 | [
"MIT"
] | null | null | null | heroku_tools/heroku.py | yunojuno-archive/heroku-tools | c2cc89452568a4714f26fb928757af88541e15a2 | [
"MIT"
] | null | null | null | heroku_tools/heroku.py | yunojuno-archive/heroku-tools | c2cc89452568a4714f26fb928757af88541e15a2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Heroku API helper functions.
Heroku module uses the Envoy library to run the Heroku
Toolbelt CLI commands.
It also includes the HerokuRelease class, which encapsulates
the information returned from the API about a specific
application release.
"""
from dateutil import parser
from os import... | 30.283654 | 88 | 0.635815 | 783 | 6,299 | 5 | 0.296296 | 0.032184 | 0.021456 | 0.012261 | 0.096552 | 0.046488 | 0.046488 | 0.031162 | 0.031162 | 0.031162 | 0 | 0.005582 | 0.260518 | 6,299 | 207 | 89 | 30.429952 | 0.834908 | 0.010795 | 0 | 0.111111 | 0 | 0 | 0.144792 | 0.017282 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008547 | 0.051282 | 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 |
beff0f88d19703d2beffab45aaa250c28891639e | 758 | py | Python | test/assign-1.py | Macr0phag3/souse | 1752d0693074212da52904d5aeef565ea4869d52 | [
"MIT"
] | 4 | 2022-02-11T14:30:07.000Z | 2022-03-17T11:37:44.000Z | test/assign-1.py | Macr0phag3/souse | 1752d0693074212da52904d5aeef565ea4869d52 | [
"MIT"
] | null | null | null | test/assign-1.py | Macr0phag3/souse | 1752d0693074212da52904d5aeef565ea4869d52 | [
"MIT"
] | null | null | null | from requests import get
from builtins import set, tuple, list, frozenset
get.a1 = 1
get.a2 = "2"
get.b1 = set()
get.b2 = frozenset()
get.b3 = ()
get.b4 = tuple()
get.b5 = []
get.b6 = list()
get.c1 = {}
get.c2 = {1, "2", get}
get.c3 = {1: 3, None: 2, "1": "2", get: 3}
get.c4 = (1, "2", get)
get.c5 = (None, True, Fal... | 34.454545 | 431 | 0.671504 | 163 | 758 | 3.122699 | 0.478528 | 0.051081 | 0.070727 | 0.078585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119186 | 0.092348 | 758 | 21 | 432 | 36.095238 | 0.62064 | 0.565963 | 0 | 0 | 0 | 0 | 0.015337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.133333 | 0 | 0.133333 | 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 |
beffcbffb08fafe75948cc512538ad149e7ae18b | 332 | py | Python | openks/models/pytorch/mmd_modules/ThreeDJCG/lib/config_grounding.py | vivym/OpenKS | ea380782162de2e4c1a413f37ad12b85ccb7048a | [
"Apache-2.0"
] | null | null | null | openks/models/pytorch/mmd_modules/ThreeDJCG/lib/config_grounding.py | vivym/OpenKS | ea380782162de2e4c1a413f37ad12b85ccb7048a | [
"Apache-2.0"
] | null | null | null | openks/models/pytorch/mmd_modules/ThreeDJCG/lib/config_grounding.py | vivym/OpenKS | ea380782162de2e4c1a413f37ad12b85ccb7048a | [
"Apache-2.0"
] | 2 | 2021-11-18T06:55:55.000Z | 2021-12-29T15:21:07.000Z | import os
import sys
from easydict import EasyDict
from .config import CONF as CONF_BASE
import copy
CONF = copy.deepcopy(CONF_BASE)
print('Using Grounding Config')
# output
CONF.PATH.OUTPUT = os.path.join(CONF.PATH.BASE, "outputs/exp_grounding")
# train
CONF.TRAIN = EasyDict()
CONF.TRAIN.MAX_DES_LEN = 126
CONF.TRAI... | 19.529412 | 72 | 0.771084 | 53 | 332 | 4.735849 | 0.490566 | 0.10757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.126506 | 332 | 16 | 73 | 20.75 | 0.848276 | 0.036145 | 0 | 0 | 0 | 0 | 0.135647 | 0.066246 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
830672e9b8a5dff84841b3d7d52036bf563632c6 | 1,972 | py | Python | src/experiment.py | hmarechal/gcnet_stereo | 80f681ec6a52638c38f039d6117ee9475e55d7db | [
"MIT"
] | 5 | 2018-05-18T22:13:36.000Z | 2019-05-07T10:04:34.000Z | src/experiment.py | hmarechal/gcnet_stereo | 80f681ec6a52638c38f039d6117ee9475e55d7db | [
"MIT"
] | null | null | null | src/experiment.py | hmarechal/gcnet_stereo | 80f681ec6a52638c38f039d6117ee9475e55d7db | [
"MIT"
] | 5 | 2018-04-02T09:00:34.000Z | 2018-11-23T14:34:45.000Z | import json
from collections import OrderedDict
class Experiment():
@staticmethod
def from_config(config):
exp = Experiment()
exp.dataset = config['dataset']
exp.preprocessing= config['preprocessing']
exp.model = config['model']
exp.learning = config['learnin... | 22.930233 | 91 | 0.481744 | 176 | 1,972 | 5.261364 | 0.318182 | 0.075594 | 0.105832 | 0.116631 | 0.242981 | 0.242981 | 0.212743 | 0.179266 | 0.179266 | 0.095032 | 0 | 0.000907 | 0.440669 | 1,972 | 85 | 92 | 23.2 | 0.838622 | 0.04716 | 0 | 0.523077 | 0 | 0 | 0.039084 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061538 | false | 0.092308 | 0.030769 | 0 | 0.276923 | 0.030769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
830bccb63b1292eab80b5c506a60bcc650a6cb73 | 517 | py | Python | w03/e10.py | Luccifer/PythonCoruseraHSE | 653d6a24325789342f0d033717ba548dc6e90483 | [
"Unlicense"
] | 1 | 2020-01-12T12:55:07.000Z | 2020-01-12T12:55:07.000Z | w03/e10.py | Luccifer/PythonCourseraHSE | 653d6a24325789342f0d033717ba548dc6e90483 | [
"Unlicense"
] | null | null | null | w03/e10.py | Luccifer/PythonCourseraHSE | 653d6a24325789342f0d033717ba548dc6e90483 | [
"Unlicense"
] | null | null | null | # Квадратное уравнение - 1
def quadratic_equation_1(a, b, c):
d = b**2 - (4 * a * c)
if d == 0 and a != 0:
x = (- b / (2 * a))
ans = (round(x, 2), )
elif d > 0:
x1 = round((- b - d**0.5) / (2 * a), 6)
x2 = round((- b + d**0.5) / (2 * a), 5)
ans = (x2, x1) if x1 > x2... | 22.478261 | 47 | 0.435203 | 83 | 517 | 2.566265 | 0.361446 | 0.037559 | 0.169014 | 0.178404 | 0.300469 | 0.300469 | 0.103286 | 0 | 0 | 0 | 0 | 0.07855 | 0.359768 | 517 | 22 | 48 | 23.5 | 0.564955 | 0.046422 | 0 | 0 | 0 | 0 | 0.016293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.117647 | 0.058824 | 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 |
830c666cc2a29b4a14e07289360bf9a5a79495e3 | 433 | py | Python | prismacloud/api/posture/__init__.py | lsmithpanw/pcs-toolbox | c713569fe6bf067b9284fca48e7fb0dbc395f5a9 | [
"ISC"
] | 18 | 2021-12-17T16:45:46.000Z | 2022-03-10T19:16:32.000Z | prismacloud/api/posture/__init__.py | lsmithpanw/pcs-toolbox | c713569fe6bf067b9284fca48e7fb0dbc395f5a9 | [
"ISC"
] | 13 | 2021-12-17T16:12:18.000Z | 2022-03-15T16:48:38.000Z | prismacloud/api/posture/__init__.py | lsmithpanw/pcs-toolbox | c713569fe6bf067b9284fca48e7fb0dbc395f5a9 | [
"ISC"
] | 15 | 2021-12-17T17:12:39.000Z | 2022-03-11T23:00:12.000Z | """ Prisma Cloud CSPM API Class """
import sys
from .posture import *
from ._endpoints import *
from ._extended import *
mixin_classes_as_strings = list(filter(lambda x: x.endswith('PrismaCloudAPIMixin'), dir()))
mixin_classes = [getattr(sys.modules[__name__], x) for x in mixin_classes_as_strings]
# pylint: dis... | 28.866667 | 91 | 0.745958 | 57 | 433 | 5.421053 | 0.596491 | 0.15534 | 0.097087 | 0.116505 | 0.148867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136259 | 433 | 14 | 92 | 30.928571 | 0.826203 | 0.224018 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
831b792624a8a3d1e6128d6b936f43ab12a51fad | 1,694 | py | Python | examples/glitch_examples/make_simulated_data.py | pepCV/PyFstat | b30919962e9730e24d514e9e9fe89289a002d428 | [
"MIT"
] | 2 | 2020-01-28T08:29:29.000Z | 2020-01-28T13:29:24.000Z | examples/glitch_examples/make_simulated_data.py | GregoryAshton/PyFstat | 4f7a96d4aeb778b3b322b03897f7d65c0ccf1190 | [
"MIT"
] | null | null | null | examples/glitch_examples/make_simulated_data.py | GregoryAshton/PyFstat | 4f7a96d4aeb778b3b322b03897f7d65c0ccf1190 | [
"MIT"
] | null | null | null | from pyfstat import Writer, GlitchWriter
import numpy as np
outdir = "data"
# First, we generate data with a reasonably strong smooth signal
# Define parameters of the Crab pulsar as an example
F0 = 30.0
F1 = -1e-10
F2 = 0
Alpha = np.radians(83.6292)
Delta = np.radians(22.0144)
# Signal strength
h0 = 5e-24
# Proper... | 18.413043 | 79 | 0.662338 | 263 | 1,694 | 4.114068 | 0.296578 | 0.038817 | 0.049908 | 0.060998 | 0.312384 | 0.312384 | 0.312384 | 0.312384 | 0.312384 | 0.312384 | 0 | 0.091673 | 0.227273 | 1,694 | 91 | 80 | 18.615385 | 0.734912 | 0.155254 | 0 | 0.44 | 1 | 0 | 0.019663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026667 | 0 | 0.026667 | 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 |
83211d74b629a52e47427b7e6f1dd330e07dc752 | 1,015 | py | Python | tests/system_tests/test_podcast.py | viniarck/podcaststore-flask | 35f0cd43b07e63c7a9f26b305e9aebc24e3435d1 | [
"Apache-2.0"
] | null | null | null | tests/system_tests/test_podcast.py | viniarck/podcaststore-flask | 35f0cd43b07e63c7a9f26b305e9aebc24e3435d1 | [
"Apache-2.0"
] | null | null | null | tests/system_tests/test_podcast.py | viniarck/podcaststore-flask | 35f0cd43b07e63c7a9f26b305e9aebc24e3435d1 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
import requests
def base_url() -> str:
"""get base URL."""
return "http://localhost:5000/v1/"
@pytest.fixture()
def db_setup():
from podcaststore.app import db
# TODO segregate the DB locally
db.create_all()
yield db
db.drop_a... | 23.068182 | 72 | 0.57931 | 135 | 1,015 | 4.222222 | 0.496296 | 0.078947 | 0.078947 | 0.1 | 0.077193 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024324 | 0.270936 | 1,015 | 43 | 73 | 23.604651 | 0.745946 | 0.104434 | 0 | 0.074074 | 0 | 0 | 0.127232 | 0 | 0 | 0 | 0 | 0.023256 | 0.185185 | 1 | 0.148148 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8328d05273051779238aca0a8cb04895c2372003 | 295 | py | Python | usbq/exceptions.py | CarveSystems/usbq | 2accfa010b785721c0ba0199dae8e02d982114be | [
"MIT"
] | 63 | 2019-08-14T13:16:30.000Z | 2022-02-25T01:56:23.000Z | usbq/exceptions.py | CarveSystems/usbq | 2accfa010b785721c0ba0199dae8e02d982114be | [
"MIT"
] | 4 | 2019-12-03T20:01:44.000Z | 2022-01-01T08:56:35.000Z | usbq/exceptions.py | CarveSystems/usbq | 2accfa010b785721c0ba0199dae8e02d982114be | [
"MIT"
] | 7 | 2020-01-09T11:10:14.000Z | 2021-12-21T13:58:43.000Z | __all__ = ['USBQException', 'USBQInvocationError', 'USBQDeviceNotConnected']
class USBQException(Exception):
'Base of all USBQ exceptions'
class USBQInvocationError(USBQException):
'Error invoking USBQ'
class USBQDeviceNotConnected(USBQException):
'USBQ device not connected.'
| 21.071429 | 76 | 0.769492 | 25 | 295 | 8.92 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138983 | 295 | 13 | 77 | 22.692308 | 0.877953 | 0.250847 | 0 | 0 | 0 | 0 | 0.427119 | 0.074576 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.428571 | 0 | 1 | 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 | 0 | 0 | 1 |
832b6eabb2af743c821e8f81ccf21c99ba6faced | 1,746 | py | Python | Problems/Miscellaneous/5710. Number of Orders in the Backlog.py | BYJRK/LeetCode-Solutions | 008467e1717309066a519acb8623d2f84071b64a | [
"MIT"
] | null | null | null | Problems/Miscellaneous/5710. Number of Orders in the Backlog.py | BYJRK/LeetCode-Solutions | 008467e1717309066a519acb8623d2f84071b64a | [
"MIT"
] | null | null | null | Problems/Miscellaneous/5710. Number of Orders in the Backlog.py | BYJRK/LeetCode-Solutions | 008467e1717309066a519acb8623d2f84071b64a | [
"MIT"
] | null | null | null | from typing import List
import heapq
class Solution:
def getNumberOfBacklogOrders(self, orders: List[List[int]]) -> int:
buys = []
sells = []
for price, amount, _type in orders:
# buy, look for smallest sell
if _type == 0:
while sells and ... | 34.92 | 72 | 0.365979 | 167 | 1,746 | 3.808383 | 0.323353 | 0.055031 | 0.022013 | 0.034591 | 0.22956 | 0.191824 | 0.191824 | 0.116352 | 0.116352 | 0.116352 | 0 | 0.083028 | 0.530928 | 1,746 | 49 | 73 | 35.632653 | 0.693529 | 0.030928 | 0 | 0.372093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.046512 | 0 | 0.116279 | 0.046512 | 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 |
832b9ca4b622a15301c6079bd1e331055bc4c610 | 1,397 | py | Python | appdaemon/settings/apps/cube.py | monster1025/home-assistant | 194723e228a798b99693220ad332a2c55d06e248 | [
"Apache-2.0"
] | null | null | null | appdaemon/settings/apps/cube.py | monster1025/home-assistant | 194723e228a798b99693220ad332a2c55d06e248 | [
"Apache-2.0"
] | null | null | null | appdaemon/settings/apps/cube.py | monster1025/home-assistant | 194723e228a798b99693220ad332a2c55d06e248 | [
"Apache-2.0"
] | null | null | null | #cube_tap_twice
import appdaemon.plugins.hass.hassapi as hass
#
# This app reacts to xiaomi cube events
#
# Args:
#
# Release Notes
#
# Version 1.0:
# Initial Version
class Cube(hass.Hass):
def initialize(self):
self.listen_event(self.cube_flip90, "cube_flip90")
self.listen_event(self.cube_flip180, "cube_... | 29.723404 | 74 | 0.725841 | 207 | 1,397 | 4.603865 | 0.270531 | 0.051417 | 0.094439 | 0.119622 | 0.377754 | 0.232949 | 0.232949 | 0.232949 | 0.232949 | 0 | 0 | 0.018628 | 0.154617 | 1,397 | 47 | 75 | 29.723404 | 0.788315 | 0.08733 | 0 | 0 | 0 | 0 | 0.168379 | 0.016601 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.035714 | 0 | 0.321429 | 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 |
832be0dec23acfc70e7a71b1f3c52ff7ca72ed29 | 10,656 | py | Python | RaspberryYale.py | EddyTheB/RaspberryYale | 8391bf4fc82f64c1f369a9588a023948dd33fb18 | [
"Apache-2.0"
] | null | null | null | RaspberryYale.py | EddyTheB/RaspberryYale | 8391bf4fc82f64c1f369a9588a023948dd33fb18 | [
"Apache-2.0"
] | null | null | null | RaspberryYale.py | EddyTheB/RaspberryYale | 8391bf4fc82f64c1f369a9588a023948dd33fb18 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from sys import stdout, argv
from os import makedirs, path
from time import sleep
from datetime import datetime, timedelta
from apiclient import discovery, errors
from httplib2 import Http
from oauth2client import file, client, tools
from subprocess import Popen
import socket, ssl
... | 34.823529 | 162 | 0.649493 | 1,289 | 10,656 | 5.337471 | 0.293251 | 0.020785 | 0.004797 | 0.026163 | 0.142297 | 0.132703 | 0.095494 | 0.093459 | 0.093459 | 0.093459 | 0 | 0.006221 | 0.215559 | 10,656 | 306 | 163 | 34.823529 | 0.816844 | 0.114865 | 0 | 0.230769 | 0 | 0 | 0.187304 | 0.014816 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004049 | 0.05668 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
832ef0f40c6bc15ed58588d956da89f3b91b50b2 | 885 | py | Python | pedido/admin.py | santosgv/delivery | f5646bce6678ba3b2d4d5ae89573b8ba68931dc8 | [
"MIT"
] | null | null | null | pedido/admin.py | santosgv/delivery | f5646bce6678ba3b2d4d5ae89573b8ba68931dc8 | [
"MIT"
] | null | null | null | pedido/admin.py | santosgv/delivery | f5646bce6678ba3b2d4d5ae89573b8ba68931dc8 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import ItemPedido, Pedido, CupomDesconto
from django.http import HttpResponse
@admin.register(CupomDesconto)
class CupomDescontoAdmin(admin.ModelAdmin):
list_display = ('codigo', 'desconto', 'ativo')
readonly_fields=('usos',)
class itemPedidoInline(admin.Tabular... | 30.517241 | 138 | 0.692655 | 87 | 885 | 6.942529 | 0.597701 | 0.054636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001335 | 0.153672 | 885 | 29 | 139 | 30.517241 | 0.805073 | 0 | 0 | 0 | 0 | 0 | 0.215576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.809524 | 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 |
832f9cc8370b39f88f6c10c1439c4d2622492ec2 | 6,693 | py | Python | bcs-ui/backend/iam/permissions/resources/namespace.py | schneesu/bk-bcs | 40ac92c114ad79444c0594b5333d76ef64818d03 | [
"Apache-2.0"
] | 599 | 2019-06-25T03:20:46.000Z | 2022-03-31T12:14:33.000Z | bcs-ui/backend/iam/permissions/resources/namespace.py | schneesu/bk-bcs | 40ac92c114ad79444c0594b5333d76ef64818d03 | [
"Apache-2.0"
] | 537 | 2019-06-27T06:03:44.000Z | 2022-03-31T12:10:01.000Z | bcs-ui/backend/iam/permissions/resources/namespace.py | schneesu/bk-bcs | 40ac92c114ad79444c0594b5333d76ef64818d03 | [
"Apache-2.0"
] | 214 | 2019-06-25T03:26:05.000Z | 2022-03-31T07:52:03.000Z | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | 40.810976 | 115 | 0.720902 | 852 | 6,693 | 5.419014 | 0.278169 | 0.034871 | 0.018194 | 0.040936 | 0.270522 | 0.233268 | 0.19125 | 0.180853 | 0.171107 | 0.150964 | 0 | 0.009354 | 0.185418 | 6,693 | 163 | 116 | 41.06135 | 0.837491 | 0.172867 | 0 | 0.137255 | 0 | 0 | 0.11568 | 0.021382 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.098039 | 0.058824 | 0.578431 | 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 |
833bccfdc0470e68928451f441f3daedb0cb9563 | 795 | py | Python | api/migrations/0002_auto_20210808_1658.py | suhail-n/django-starter-blog | e841bc57c060df1f26318ac00aa649549ef9e937 | [
"MIT"
] | null | null | null | api/migrations/0002_auto_20210808_1658.py | suhail-n/django-starter-blog | e841bc57c060df1f26318ac00aa649549ef9e937 | [
"MIT"
] | null | null | null | api/migrations/0002_auto_20210808_1658.py | suhail-n/django-starter-blog | e841bc57c060df1f26318ac00aa649549ef9e937 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-08 16:58
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0001_initial'),
... | 29.444444 | 147 | 0.646541 | 90 | 795 | 5.577778 | 0.533333 | 0.047809 | 0.055777 | 0.087649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031301 | 0.236478 | 795 | 26 | 148 | 30.576923 | 0.795717 | 0.056604 | 0 | 0.2 | 1 | 0 | 0.081551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.3 | 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 |
834137fefc75386b8edfb67d59199e9fa855c698 | 508 | py | Python | example/shop/migrations/0002_alter_user_options_alter_user_stripe_customer_id.py | dinoperovic/django-salesman-stripe | 811940851b1d69d1acb95a24f146fd394554a344 | [
"BSD-3-Clause"
] | 3 | 2022-03-22T12:58:30.000Z | 2022-03-29T20:50:27.000Z | example/shop/migrations/0002_alter_user_options_alter_user_stripe_customer_id.py | dinoperovic/django-salesman-stripe | 811940851b1d69d1acb95a24f146fd394554a344 | [
"BSD-3-Clause"
] | null | null | null | example/shop/migrations/0002_alter_user_options_alter_user_stripe_customer_id.py | dinoperovic/django-salesman-stripe | 811940851b1d69d1acb95a24f146fd394554a344 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-21 13:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("shop", "0001_initial"),
]
operations = [
migrations.AlterModelOptions(
name="user",
options={},
),
m... | 22.086957 | 78 | 0.572835 | 51 | 508 | 5.607843 | 0.823529 | 0.055944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062678 | 0.309055 | 508 | 22 | 79 | 23.090909 | 0.752137 | 0.088583 | 0 | 0.125 | 1 | 0 | 0.091106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 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 |
8348fd94ee9f133fc00adb9d9ad4a463cdc1f05c | 11,732 | py | Python | prober.py | nmav/tls_prober | a8bafc2a147bdb0608d0026e796fe9cdf3889b8d | [
"MIT"
] | null | null | null | prober.py | nmav/tls_prober | a8bafc2a147bdb0608d0026e796fe9cdf3889b8d | [
"MIT"
] | null | null | null | prober.py | nmav/tls_prober | a8bafc2a147bdb0608d0026e796fe9cdf3889b8d | [
"MIT"
] | 1 | 2020-12-28T09:22:02.000Z | 2020-12-28T09:22:02.000Z | #!/usr/bin/env python
import sys
import logging
import os.path
from optparse import OptionParser
# Ensure we can see the pytls/tls subdir for the pytls submodule
sys.path.insert(1, os.path.join(os.path.dirname(__file__), 'pytls'))
from tls import *
from probes import *
import probe_db
__version__ = '0.0.4'
__autho... | 27.866983 | 92 | 0.647375 | 791 | 11,732 | 9.482933 | 0.57775 | 0.011998 | 0.019197 | 0.007599 | 0.017864 | 0.013065 | 0 | 0 | 0 | 0 | 0 | 0.056216 | 0.232782 | 11,732 | 420 | 93 | 27.933333 | 0.777136 | 0.017474 | 0 | 0.018041 | 0 | 0 | 0.078993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018041 | null | null | 0.033505 | 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 |
8349e6470117f5260bb601ea84d53eff7863f84e | 352 | py | Python | todos_commits_com_arquivos_alterados.py | LeanderCaesar/Teste | ce84e363a32fd6d906895d54c3384e2fa5e4a8bc | [
"MIT"
] | null | null | null | todos_commits_com_arquivos_alterados.py | LeanderCaesar/Teste | ce84e363a32fd6d906895d54c3384e2fa5e4a8bc | [
"MIT"
] | null | null | null | todos_commits_com_arquivos_alterados.py | LeanderCaesar/Teste | ce84e363a32fd6d906895d54c3384e2fa5e4a8bc | [
"MIT"
] | null | null | null | from pydriller import Repository
for commit in Repository('https://github.com/williamsartijose/Trabalho-Cadastro-de-Aluno.git').traverse_commits():
print(commit.hash)
print(commit.msg)
print(commit.author.name)
print("\n")
for file in commit.modified_files:
print(file.filename, ' ... | 32 | 115 | 0.684659 | 45 | 352 | 5.311111 | 0.666667 | 0.138075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 352 | 11 | 116 | 32 | 0.829861 | 0 | 0 | 0 | 0 | 0 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.666667 | 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 |
834ba27ae264d4a303fa70e5469a20af0466aa00 | 1,167 | py | Python | HLTrigger/Configuration/python/HLT_75e33/psets/options_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:24:46.000Z | 2021-11-30T16:24:46.000Z | HLTrigger/Configuration/python/HLT_75e33/psets/options_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 4 | 2021-11-29T13:57:56.000Z | 2022-03-29T06:28:36.000Z | HLTrigger/Configuration/python/HLT_75e33/psets/options_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:16:05.000Z | 2021-11-30T16:16:05.000Z | import FWCore.ParameterSet.Config as cms
options = cms.untracked.PSet(
FailPath = cms.untracked.vstring(),
IgnoreCompletely = cms.untracked.vstring(),
Rethrow = cms.untracked.vstring(),
SkipEvent = cms.untracked.vstring(),
allowUnscheduled = cms.obsolete.untracked.bool,
canDeleteEarly = cms.unt... | 40.241379 | 66 | 0.732648 | 108 | 1,167 | 7.916667 | 0.388889 | 0.252632 | 0.111111 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017276 | 0.156812 | 1,167 | 28 | 67 | 41.678571 | 0.851626 | 0 | 0 | 0.111111 | 0 | 0 | 0.007712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 0.037037 | 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 |
834fefeb1cc674bebea0d31475502d9b404d0f1c | 3,288 | py | Python | generate_index.py | hluwa/community-plugins | 7a07d66f38b8ca6018a106dff67929c7dd98bf8b | [
"MIT"
] | null | null | null | generate_index.py | hluwa/community-plugins | 7a07d66f38b8ca6018a106dff67929c7dd98bf8b | [
"MIT"
] | null | null | null | generate_index.py | hluwa/community-plugins | 7a07d66f38b8ca6018a106dff67929c7dd98bf8b | [
"MIT"
] | 1 | 2021-09-26T05:53:47.000Z | 2021-09-26T05:53:47.000Z | ''' Python script to generate a stub README.md files from a plugin.json file '''
import json
import argparse
import os
import sys
import configparser
from collections import OrderedDict
parser = argparse.ArgumentParser(description = 'Generate README.md index of all plugins')
parser.add_argument("-f", "--force", help =... | 37.363636 | 148 | 0.641727 | 407 | 3,288 | 5.142506 | 0.334152 | 0.0344 | 0.033445 | 0.024367 | 0.263736 | 0.212136 | 0.212136 | 0.172002 | 0.14429 | 0.119446 | 0 | 0.007391 | 0.177007 | 3,288 | 87 | 149 | 37.793103 | 0.766075 | 0.021898 | 0 | 0.178082 | 1 | 0 | 0.267768 | 0.049564 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.082192 | 0 | 0.082192 | 0.09589 | 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 |
8351b3a9e5ddb6317bc052c402079f2f62475f30 | 779 | py | Python | src/python/setup.py | Correct-Syntax/oiio-python | b9298c8e3302ae6b984b8faa0cfdb4a95b551372 | [
"MIT"
] | null | null | null | src/python/setup.py | Correct-Syntax/oiio-python | b9298c8e3302ae6b984b8faa0cfdb4a95b551372 | [
"MIT"
] | null | null | null | src/python/setup.py | Correct-Syntax/oiio-python | b9298c8e3302ae6b984b8faa0cfdb4a95b551372 | [
"MIT"
] | null | null | null | """A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
# Prefer setuptools over distutils
from setuptools import setup
from setuptools import find_packages
setup(
name="oiio",
version="PACKAGE_VERSION",
description="OpenI... | 24.34375 | 62 | 0.613607 | 81 | 779 | 5.851852 | 0.679012 | 0.046414 | 0.059072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003367 | 0.237484 | 779 | 31 | 63 | 25.129032 | 0.794613 | 0.319641 | 0 | 0 | 0 | 0 | 0.34357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8353c76fb5944677a7883fb80ba4a7498a46dc3c | 667 | py | Python | openvpp-agents/tests/test_unit.py | mtroeschel/isaac | 47eabfd5a91a61dfe94babe6537ff69d7d18ecd8 | [
"MIT"
] | 8 | 2018-02-09T11:59:09.000Z | 2021-12-02T16:49:48.000Z | openvpp-agents/tests/test_unit.py | mtroeschel/isaac | 47eabfd5a91a61dfe94babe6537ff69d7d18ecd8 | [
"MIT"
] | null | null | null | openvpp-agents/tests/test_unit.py | mtroeschel/isaac | 47eabfd5a91a61dfe94babe6537ff69d7d18ecd8 | [
"MIT"
] | 3 | 2018-06-05T18:53:07.000Z | 2020-10-27T20:25:57.000Z | def test_exposed(ua):
"""Test if the UnitAgent exposes all required methods."""
assert ua.update_forecast is ua.model.update_forecast
assert ua.init_negotiation is ua.planner.init_negotiation
assert ua.stop_negotiation is ua.planner.stop_negotiation
assert ua.set_schedule is ua.unit.set_schedule
... | 39.235294 | 76 | 0.74063 | 100 | 667 | 4.78 | 0.37 | 0.083682 | 0.150628 | 0.09205 | 0.104603 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012456 | 0.157421 | 667 | 16 | 77 | 41.6875 | 0.838078 | 0.182909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.727273 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.181818 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
835e7dd6d3b51a00ea45f07e359a17ca53032307 | 5,306 | py | Python | discordbio/models/user_details.py | apex2504/discordbio | 5d58ec1a8b91dab370f540cabbe86a9dcd0e0d6e | [
"MIT"
] | 1 | 2021-04-24T21:19:05.000Z | 2021-04-24T21:19:05.000Z | discordbio/models/user_details.py | apex2504/discordbio | 5d58ec1a8b91dab370f540cabbe86a9dcd0e0d6e | [
"MIT"
] | null | null | null | discordbio/models/user_details.py | apex2504/discordbio | 5d58ec1a8b91dab370f540cabbe86a9dcd0e0d6e | [
"MIT"
] | null | null | null | """
MIT License
Copyright (c) 2020 GamingGeek (Jake Ward)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge,... | 34.907895 | 109 | 0.664908 | 709 | 5,306 | 4.921016 | 0.272214 | 0.042992 | 0.012898 | 0.01605 | 0.244196 | 0.210375 | 0.18286 | 0.164517 | 0.137575 | 0.128404 | 0 | 0.002904 | 0.221259 | 5,306 | 151 | 110 | 35.139073 | 0.841481 | 0.265925 | 0 | 0.213592 | 0 | 0.009709 | 0.175434 | 0 | 0 | 0 | 0 | 0 | 0.038835 | 1 | 0.067961 | false | 0 | 0.029126 | 0.009709 | 0.533981 | 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 |
8362877a35000fdb9670b9f34fe0c04e5be769b3 | 576 | gyp | Python | chrome/test/security_tests/security_tests.gyp | nagineni/chromium-crosswalk | 5725642f1c67d0f97e8613ec1c3e8107ab53fdf8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 231 | 2015-01-08T09:04:44.000Z | 2021-12-30T03:03:10.000Z | chrome/test/security_tests/security_tests.gyp | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2015-07-21T08:02:01.000Z | 2015-07-21T08:02:01.000Z | chrome/test/security_tests/security_tests.gyp | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 268 | 2015-01-21T05:53:28.000Z | 2022-03-25T22:09:01.000Z | # Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
'target_name': 'security_tests',
'type': 'shared_library',
'source... | 25.043478 | 72 | 0.59375 | 67 | 576 | 4.940299 | 0.671642 | 0.1571 | 0.090634 | 0.151057 | 0.229607 | 0.229607 | 0 | 0 | 0 | 0 | 0 | 0.011468 | 0.243056 | 576 | 22 | 73 | 26.181818 | 0.747706 | 0.276042 | 0 | 0.111111 | 0 | 0 | 0.595642 | 0.31477 | 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 |
836404d18ff1d1091d4f719a55cc86945cea36f1 | 903 | py | Python | mac-ksp-5-eva-surface.py | quade-ksp/MacroPad | c06146cd35c04529a63427ff0933d3a1cfa81bb3 | [
"CC0-1.0"
] | 3 | 2021-08-31T20:29:31.000Z | 2022-03-29T14:12:50.000Z | mac-ksp-5-eva-surface.py | quade-ksp/MacroPad | c06146cd35c04529a63427ff0933d3a1cfa81bb3 | [
"CC0-1.0"
] | null | null | null | mac-ksp-5-eva-surface.py | quade-ksp/MacroPad | c06146cd35c04529a63427ff0933d3a1cfa81bb3 | [
"CC0-1.0"
] | null | null | null | # MACROPAD Hotkeys example: Universal Numpad
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
app = { # REQUIRED dict, must be named 'app'
"name": "KSP EVA Surface", # Application name
"macros": [ # List of button macros...
# COLOR LABEL KEY SEQUENCE
# 1s... | 31.137931 | 78 | 0.438538 | 78 | 903 | 5.064103 | 0.75641 | 0.055696 | 0.096203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153722 | 0.315615 | 903 | 28 | 79 | 32.25 | 0.485437 | 0.30897 | 0 | 0.210526 | 0 | 0 | 0.106209 | 0 | 0 | 0 | 0.169935 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0 | 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 |
8366413a9b4df104a73eed1de69de9b2a12f62e6 | 896 | py | Python | tests/test_cards.py | jstr0em/blackjack | 3473e487411ae53a5c8de09b20aa16173b27366c | [
"MIT"
] | null | null | null | tests/test_cards.py | jstr0em/blackjack | 3473e487411ae53a5c8de09b20aa16173b27366c | [
"MIT"
] | 2 | 2022-03-08T20:30:25.000Z | 2022-03-08T20:32:15.000Z | tests/test_cards.py | jstr0em/blackjack | 3473e487411ae53a5c8de09b20aa16173b27366c | [
"MIT"
] | null | null | null | from src.cards import Card, Cards, Deck
# test if we can add two cards together, which should yield a Cards object
def test_add_two_cards():
h2 = Card("Heart", "Two")
s2 = Card("Spade", "Two")
c2 = Card("Club", "Two")
cards = h2 + s2
# adding two Card objects shall create a Cards object
asser... | 28 | 80 | 0.652902 | 134 | 896 | 4.253731 | 0.38806 | 0.042105 | 0.02807 | 0.038596 | 0.207018 | 0.140351 | 0.140351 | 0 | 0 | 0 | 0 | 0.022189 | 0.245536 | 896 | 32 | 81 | 28 | 0.821006 | 0.337054 | 0 | 0.105263 | 0 | 0 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0.421053 | 1 | 0.105263 | false | 0 | 0.052632 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
83685bdff2894f4befc83cd5a215a049b1da02d4 | 1,544 | py | Python | tpdatasrc/tpgamefiles/scr/tpModifiers/rogue.py | edoipi/TemplePlus | f0e552289822fea908f16daa379fa568b1bd286d | [
"MIT"
] | null | null | null | tpdatasrc/tpgamefiles/scr/tpModifiers/rogue.py | edoipi/TemplePlus | f0e552289822fea908f16daa379fa568b1bd286d | [
"MIT"
] | null | null | null | tpdatasrc/tpgamefiles/scr/tpModifiers/rogue.py | edoipi/TemplePlus | f0e552289822fea908f16daa379fa568b1bd286d | [
"MIT"
] | null | null | null | from templeplus.pymod import PythonModifier
from toee import *
import tpdp
import char_class_utils
###################################################
def GetConditionName():
return "Rogue"
print "Registering " + GetConditionName()
classEnum = stat_level_rogue
classSpecModule = __import__('class015_rogue')
######... | 30.27451 | 93 | 0.740285 | 186 | 1,544 | 5.908602 | 0.360215 | 0.054595 | 0.068244 | 0.081893 | 0.380346 | 0.311192 | 0.311192 | 0.311192 | 0.311192 | 0.311192 | 0 | 0.026773 | 0.104922 | 1,544 | 51 | 93 | 30.27451 | 0.768452 | 0.045337 | 0 | 0.257143 | 0 | 0 | 0.038771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
836a5e43e284c18ebd30696abb3ed5d4d282fe3d | 2,731 | py | Python | jina/types/document/helper.py | arijitdas123student/jina | 54d916e362bde0391b0af0f12241d531b8453247 | [
"Apache-2.0"
] | 15,179 | 2020-04-28T10:23:56.000Z | 2022-03-31T14:35:25.000Z | jina/types/document/helper.py | manavshah123/jina | f18b04eb82d18a3c554e2892bbae4b95fc0cb13e | [
"Apache-2.0"
] | 3,912 | 2020-04-28T13:01:29.000Z | 2022-03-31T14:36:46.000Z | jina/types/document/helper.py | manavshah123/jina | f18b04eb82d18a3c554e2892bbae4b95fc0cb13e | [
"Apache-2.0"
] | 1,955 | 2020-04-28T10:50:49.000Z | 2022-03-31T12:28:34.000Z | import functools
from typing import Iterable, List
__all__ = ['DocGroundtruthPair']
if False:
from . import Document
class DocGroundtruthPair:
"""
Helper class to expose common interface to the traversal logic of the BaseExecutable Driver.
It is important to note that it checks the matching structur... | 32.129412 | 119 | 0.679238 | 323 | 2,731 | 5.628483 | 0.371517 | 0.023102 | 0.031353 | 0.036304 | 0.150715 | 0.150715 | 0.150715 | 0.066007 | 0.066007 | 0 | 0 | 0.002868 | 0.23398 | 2,731 | 84 | 120 | 32.511905 | 0.866157 | 0.414134 | 0 | 0.194444 | 0 | 0 | 0.053177 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.222222 | false | 0 | 0.083333 | 0 | 0.472222 | 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 |
55c8a5efeecb4246ad8ee6778bf926347ecabf57 | 784 | py | Python | day02/t002/views.py | BigwizLaoWang/qf-python | 1ae930c5e6ee953fd992c48444c023483f4091c1 | [
"Apache-2.0"
] | null | null | null | day02/t002/views.py | BigwizLaoWang/qf-python | 1ae930c5e6ee953fd992c48444c023483f4091c1 | [
"Apache-2.0"
] | null | null | null | day02/t002/views.py | BigwizLaoWang/qf-python | 1ae930c5e6ee953fd992c48444c023483f4091c1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from .models import FireCart
# Create your views here.
def my_carts(req):
data = FireCart.objects.filter(speed__lte=280).order_by("-speed")
result = {
"title":"火cart",
"carts":data
}
retu... | 23.058824 | 69 | 0.627551 | 98 | 784 | 4.816327 | 0.520408 | 0.158898 | 0.222458 | 0.127119 | 0.288136 | 0.127119 | 0 | 0 | 0 | 0 | 0 | 0.023217 | 0.230867 | 784 | 33 | 70 | 23.757576 | 0.759536 | 0.28699 | 0 | 0 | 0 | 0 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55cbc5aaa8447cb389d5a2bddbf2a9810aca0b49 | 4,654 | py | Python | periods/tests/management/commands/test_notify_upcoming_period.py | jessamynsmith/eggtimer-server | 5619f8d3fe6e6c813a62b0181a7e4b8fdbe79e9b | [
"MIT"
] | 43 | 2015-04-16T15:58:57.000Z | 2022-01-09T09:23:42.000Z | periods/tests/management/commands/test_notify_upcoming_period.py | jessamynsmith/eggtimer-server | 5619f8d3fe6e6c813a62b0181a7e4b8fdbe79e9b | [
"MIT"
] | 19 | 2015-05-26T14:56:46.000Z | 2021-06-10T20:19:43.000Z | periods/tests/management/commands/test_notify_upcoming_period.py | jessamynsmith/eggtimer-server | 5619f8d3fe6e6c813a62b0181a7e4b8fdbe79e9b | [
"MIT"
] | 16 | 2015-04-24T20:36:25.000Z | 2020-01-26T11:47:41.000Z | import datetime
import pytz
from django.conf import settings
from django.test import TestCase
from mock import ANY, patch
from periods import models as period_models
from periods.management.commands import notify_upcoming_period
from periods.tests.factories import FlowEventFactory
class TestCommand(TestCase):
E... | 41.553571 | 98 | 0.669961 | 604 | 4,654 | 4.968543 | 0.221854 | 0.042652 | 0.066644 | 0.061313 | 0.693436 | 0.686438 | 0.637454 | 0.637454 | 0.637454 | 0.607131 | 0 | 0.024925 | 0.215514 | 4,654 | 111 | 99 | 41.927928 | 0.797042 | 0 | 0 | 0.402439 | 0 | 0 | 0.24581 | 0.07456 | 0 | 0 | 0 | 0 | 0.097561 | 1 | 0.109756 | false | 0 | 0.097561 | 0 | 0.231707 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55cd74c7cdfd38fd3bb6b2a2f7d56ebdce1f8e8c | 693 | py | Python | nlp_gym/core_components/embeddings.py | lipucky/nlp-gym | d6d0175f038a777f0ed07586053e89fa9b1b6d2d | [
"MIT"
] | 120 | 2020-11-12T15:40:41.000Z | 2022-03-31T06:51:08.000Z | nlp_gym/core_components/embeddings.py | lipucky/nlp-gym | d6d0175f038a777f0ed07586053e89fa9b1b6d2d | [
"MIT"
] | 3 | 2021-09-09T02:49:12.000Z | 2022-03-08T11:20:41.000Z | nlp_gym/core_components/embeddings.py | lipucky/nlp-gym | d6d0175f038a777f0ed07586053e89fa9b1b6d2d | [
"MIT"
] | 13 | 2020-11-19T01:12:30.000Z | 2022-03-07T05:41:08.000Z | from flair.embeddings import DocumentPoolEmbeddings, WordEmbeddings
import flair
import torch
flair.device = torch.device('cpu')
class DocEmbeddings:
__instance = None
@staticmethod
def getInstance():
""" Static access method. """
if DocEmbeddings.__instance is None:
DocEmbedd... | 28.875 | 78 | 0.669553 | 63 | 693 | 7.111111 | 0.571429 | 0.234375 | 0.102679 | 0.111607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.249639 | 693 | 23 | 79 | 30.130435 | 0.861538 | 0.076479 | 0 | 0 | 0 | 0 | 0.054313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.470588 | 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 |
55d6d4a92d36d2ac6427e1a5778901c02573a5d1 | 264 | py | Python | backend/js_error_logger/urls.py | hens-virtuella-varld/django-js-error-logger | e600442bc74e04ac2f0e7deecb5d9642ea91156c | [
"MIT"
] | null | null | null | backend/js_error_logger/urls.py | hens-virtuella-varld/django-js-error-logger | e600442bc74e04ac2f0e7deecb5d9642ea91156c | [
"MIT"
] | null | null | null | backend/js_error_logger/urls.py | hens-virtuella-varld/django-js-error-logger | e600442bc74e04ac2f0e7deecb5d9642ea91156c | [
"MIT"
] | null | null | null | from django.urls import path, include
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
router.register(r'js_error', views.JSErrorViewSet)
app_name = "js_error_logger"
urlpatterns = [
path('', include(router.urls)),
]
| 18.857143 | 50 | 0.757576 | 34 | 264 | 5.735294 | 0.617647 | 0.112821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132576 | 264 | 13 | 51 | 20.307692 | 0.851528 | 0 | 0 | 0 | 0 | 0 | 0.087121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
55e34039e5c9167dc9f113af13b66f144faf19a9 | 14,638 | py | Python | utils/svd_tools/fit/scan_fit.py | teddydragoone/makehuman1.0.0alpha7 | 9aa7735a0a1ea83e52b1acc0fb8760057dd72d99 | [
"CC0-1.0"
] | 2 | 2016-11-23T16:37:15.000Z | 2018-02-13T04:18:23.000Z | utils/svd_tools/fit/scan_fit.py | Tomoyon/makehuman1.0.0alpha7 | 9aa7735a0a1ea83e52b1acc0fb8760057dd72d99 | [
"CC0-1.0"
] | null | null | null | utils/svd_tools/fit/scan_fit.py | Tomoyon/makehuman1.0.0alpha7 | 9aa7735a0a1ea83e52b1acc0fb8760057dd72d99 | [
"CC0-1.0"
] | null | null | null | import os.path
from scipy.linalg import pinv,svd
from scipy.spatial import KDTree
from scipy.optimize import leastsq
import numpy as np
import os
def rotX(angle):
cosa = np.cos(angle)
sina = np.sin(angle)
return np.array(
[[ 1.0 , 0.0 , 0.0 ],
[ 0.0 , cosa , sina ],
[ 0... | 33.268182 | 145 | 0.575693 | 2,002 | 14,638 | 4.088911 | 0.158841 | 0.008063 | 0.006963 | 0.006841 | 0.314439 | 0.290985 | 0.26582 | 0.221842 | 0.182385 | 0.149157 | 0 | 0.012297 | 0.311108 | 14,638 | 439 | 146 | 33.343964 | 0.799484 | 0.003552 | 0 | 0.197183 | 0 | 0 | 0.042597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.003521 | 0.03169 | null | null | 0.035211 | 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 |
55e62c0155b49bcc3ebd5989e8cb3202988fc150 | 736 | py | Python | tasks/EPAM/pytasks/task05-02.py | AleksNeStu/projects | 1a4c68dfbdcb77228f0f3617e58fd18fcb1f5dbb | [
"Apache-2.0"
] | 2 | 2022-01-19T18:01:35.000Z | 2022-02-06T06:54:38.000Z | tasks/EPAM/pytasks/task05-02.py | AleksNeStu/projects | 1a4c68dfbdcb77228f0f3617e58fd18fcb1f5dbb | [
"Apache-2.0"
] | null | null | null | tasks/EPAM/pytasks/task05-02.py | AleksNeStu/projects | 1a4c68dfbdcb77228f0f3617e58fd18fcb1f5dbb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'AleksNeStu'
# Task05-02:
# Create simple threaded http server like in *task02-01.py* which can be extended using decorator-based plug-in model for handing requests.
# Example:
# ```python
# >>> from datetime import datetime
# >>> from server import run, get_han... | 19.891892 | 139 | 0.646739 | 101 | 736 | 4.554455 | 0.683168 | 0.086957 | 0.078261 | 0.113043 | 0.295652 | 0.165217 | 0.165217 | 0.165217 | 0 | 0 | 0 | 0.070608 | 0.172554 | 736 | 37 | 140 | 19.891892 | 0.684729 | 0.661685 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
55e9e380b8343360d1fdf8eb67a91fdd20314b42 | 758 | py | Python | epcpy/epc_schemes/imovn.py | nedap/retail-epcpy | f5a454f2a06053f64bc42e6c6411fbd6cb47e745 | [
"MIT"
] | 2 | 2022-03-21T08:22:30.000Z | 2022-03-22T12:32:29.000Z | epcpy/epc_schemes/imovn.py | nedap/retail-epcpy | f5a454f2a06053f64bc42e6c6411fbd6cb47e745 | [
"MIT"
] | 1 | 2022-03-28T14:48:52.000Z | 2022-03-28T14:48:52.000Z | epcpy/epc_schemes/imovn.py | nedap/retail-epcpy | f5a454f2a06053f64bc42e6c6411fbd6cb47e745 | [
"MIT"
] | null | null | null | import re
from epcpy.epc_schemes.base_scheme import EPCScheme
from epcpy.utils.common import ConvertException
from epcpy.utils.regex import IMOVN_URI
IMOVN_URI_REGEX = re.compile(IMOVN_URI)
class IMOVN(EPCScheme):
"""IMOVN EPC scheme implementation.
IMOVN pure identities are of the form:
urn:epc:id... | 24.451613 | 75 | 0.700528 | 104 | 758 | 4.875 | 0.509615 | 0.071006 | 0.055227 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0134 | 0.212401 | 758 | 30 | 76 | 25.266667 | 0.835846 | 0.294195 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
55ec3f2ae1c7b654396a09e46d28ab649f1d473b | 1,970 | py | Python | python_dashboard/python_visualization_preprocessing.py | sduprey/open_data_platform | a20b5ab6a1ca99ae8aef11ac74a314114144d291 | [
"MIT"
] | 2 | 2019-12-03T13:35:31.000Z | 2019-12-03T13:35:37.000Z | python_dashboard/python_visualization_preprocessing.py | sduprey/open_data_platform | a20b5ab6a1ca99ae8aef11ac74a314114144d291 | [
"MIT"
] | null | null | null | python_dashboard/python_visualization_preprocessing.py | sduprey/open_data_platform | a20b5ab6a1ca99ae8aef11ac74a314114144d291 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import csv
import pandas as pd
import json
import pickle
import sys
reload(sys)
sys.setdefaultencoding('utf8')
def compare_var(tab1, tab2, var):
# assert max(tab1[var].value_counts()) == 1
# assert max(tab2[var].value_counts()) == 1
cond_1_in_2 = tab1[var].isin(tab2.IR... | 37.169811 | 122 | 0.714721 | 303 | 1,970 | 4.39934 | 0.277228 | 0.107277 | 0.144036 | 0.051763 | 0.324081 | 0.231058 | 0.127532 | 0.102026 | 0.102026 | 0.049512 | 0 | 0.021016 | 0.130457 | 1,970 | 52 | 123 | 37.884615 | 0.757151 | 0.15736 | 0 | 0.138889 | 0 | 0 | 0.225968 | 0.061798 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.138889 | 0 | 0.166667 | 0.444444 | 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 |
55ef985f2611ea14140227dd2dc5b0864fc4ee73 | 882 | py | Python | test/text/test_most_frequent_terms.py | krmuth/textplot | 889b949a637d99097ecec44ed4bfee53b1964dee | [
"MIT"
] | 99 | 2015-01-07T11:00:18.000Z | 2022-03-16T02:50:14.000Z | test/text/test_most_frequent_terms.py | krmuth/textplot | 889b949a637d99097ecec44ed4bfee53b1964dee | [
"MIT"
] | 4 | 2015-01-14T17:10:56.000Z | 2020-07-14T04:21:28.000Z | test/text/test_most_frequent_terms.py | krmuth/textplot | 889b949a637d99097ecec44ed4bfee53b1964dee | [
"MIT"
] | 36 | 2015-01-13T17:05:24.000Z | 2021-09-27T07:15:59.000Z |
from textplot.text import Text
from collections import OrderedDict
def test_most_frequent_terms():
"""
most_frequent_terms() should return the N most frequent terms.
"""
t = Text('aa bb bb cc cc cc')
# Top 2 words are 'cc' and 'bb'
assert t.most_frequent_terms(2) == set(['cc', 'bb'])
de... | 26.727273 | 78 | 0.666667 | 149 | 882 | 3.865772 | 0.47651 | 0.104167 | 0.147569 | 0.03125 | 0.215278 | 0.215278 | 0.215278 | 0.163194 | 0.163194 | 0.163194 | 0 | 0.026906 | 0.241497 | 882 | 32 | 79 | 27.5625 | 0.834081 | 0.538549 | 0 | 0 | 0 | 0 | 0.140056 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55f0459fd4bd25a9b91a45b83a83627036d6282c | 4,457 | py | Python | fitter/fit_functions.py | MarcoMuellner/APOLLO | 0011702f93bbf12367fcc30970ba9af25be00a8f | [
"MIT"
] | null | null | null | fitter/fit_functions.py | MarcoMuellner/APOLLO | 0011702f93bbf12367fcc30970ba9af25be00a8f | [
"MIT"
] | null | null | null | fitter/fit_functions.py | MarcoMuellner/APOLLO | 0011702f93bbf12367fcc30970ba9af25be00a8f | [
"MIT"
] | null | null | null | import numpy as np
from scipy import optimize
import logging
logger = logging.getLogger(__name__)
def scipyFit(x, y, method,p0 = None,boundaries = (-np.inf, np.inf),sigma = None):
if boundaries is not None and len(boundaries) != 2:
raise ValueError("Boundaries need to be a two 2D tuple")
if p0 is not... | 32.772059 | 120 | 0.642136 | 741 | 4,457 | 3.82861 | 0.195682 | 0.042651 | 0.024674 | 0.042298 | 0.47092 | 0.417695 | 0.373634 | 0.342615 | 0.342615 | 0.342615 | 0 | 0.021153 | 0.225712 | 4,457 | 136 | 121 | 32.772059 | 0.800927 | 0.420911 | 0 | 0 | 0 | 0 | 0.054647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.215686 | false | 0 | 0.058824 | 0.098039 | 0.490196 | 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 |
55f0844021b27f893546c4fe6ee953ce9314b27f | 1,658 | py | Python | linkace_cli/api/lists.py | vwheezy22/linkace-cli | 448cf7f2277ca14064978933d88fbc16de841db1 | [
"MIT"
] | 3 | 2021-01-01T12:53:48.000Z | 2022-01-07T19:27:51.000Z | linkace_cli/api/lists.py | vwheezy22/linkace-cli | 448cf7f2277ca14064978933d88fbc16de841db1 | [
"MIT"
] | 2 | 2021-04-05T08:41:09.000Z | 2021-04-05T19:21:49.000Z | linkace_cli/api/lists.py | vwheezy22/linkace-cli | 448cf7f2277ca14064978933d88fbc16de841db1 | [
"MIT"
] | 3 | 2021-01-06T03:50:06.000Z | 2021-04-05T08:19:25.000Z | from linkace_cli.api.base import APIBase
from linkace_cli import models
class Lists(APIBase):
"""CRUD interaction for all things list-based"""
def get(self, id: int = None, order_by: models.OrderBy = None, order_dir: models.OrderDir = None):
"""
Get all lists or a single list's details. The or... | 36.844444 | 102 | 0.612183 | 233 | 1,658 | 4.261803 | 0.300429 | 0.056395 | 0.050352 | 0.060423 | 0.225579 | 0.225579 | 0.134945 | 0.134945 | 0.076536 | 0 | 0 | 0 | 0.256936 | 1,658 | 44 | 103 | 37.681818 | 0.806006 | 0.133293 | 0 | 0.068966 | 0 | 0 | 0.100714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.068966 | 0.103448 | 0.482759 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
55f3a349f72e3cc1e376ce443698a8e4673025bc | 2,024 | py | Python | remider/tests/test_functional_notifcations_center.py | many7695/BetterMemorySugarBot | b3d897a3a4e5316959bdafb69218662a79cbe822 | [
"Apache-2.0"
] | null | null | null | remider/tests/test_functional_notifcations_center.py | many7695/BetterMemorySugarBot | b3d897a3a4e5316959bdafb69218662a79cbe822 | [
"Apache-2.0"
] | null | null | null | remider/tests/test_functional_notifcations_center.py | many7695/BetterMemorySugarBot | b3d897a3a4e5316959bdafb69218662a79cbe822 | [
"Apache-2.0"
] | null | null | null | from .base import FunctionalTest
from django.shortcuts import reverse
from django.test import override_settings
class NotificationCentrumTest(FunctionalTest):
@override_settings(SECRET_KEY="mycoolsecretkey")
def test_button(self):
self.browser.get(self.live_server_url + reverse("menu") + "?key=mycools... | 59.529412 | 113 | 0.753458 | 261 | 2,024 | 5.475096 | 0.229885 | 0.084675 | 0.094472 | 0.10077 | 0.752974 | 0.682295 | 0.6683 | 0.6683 | 0.6683 | 0.609517 | 0 | 0.00114 | 0.132905 | 2,024 | 33 | 114 | 61.333333 | 0.813105 | 0 | 0 | 0.4 | 0 | 0 | 0.128459 | 0.032609 | 0 | 0 | 0 | 0 | 0.233333 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55f54dc20d27a18ed57e93941269b3927402f2bd | 2,059 | py | Python | module/user/usersmadmingroup.py | arvin-chou/mc | b82305a4a91fe6150caa5423205a0798f3815724 | [
"MIT"
] | null | null | null | module/user/usersmadmingroup.py | arvin-chou/mc | b82305a4a91fe6150caa5423205a0798f3815724 | [
"MIT"
] | null | null | null | module/user/usersmadmingroup.py | arvin-chou/mc | b82305a4a91fe6150caa5423205a0798f3815724 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from sqlalchemy import Table, Column, Integer, String, \
MetaData, ForeignKey, ForeignKeyConstraint, UniqueConstraint
from sqlalchemy.orm import relationship, backref
from config.config import db, metadata
from schema.users import User
from schema.admingroup import AdminGroup
__tablena... | 40.372549 | 80 | 0.679456 | 219 | 2,059 | 6.13242 | 0.251142 | 0.134028 | 0.107223 | 0.120625 | 0.317945 | 0.267312 | 0.267312 | 0.110201 | 0.110201 | 0.053611 | 0 | 0.001776 | 0.179699 | 2,059 | 50 | 81 | 41.18 | 0.793369 | 0.345799 | 0 | 0 | 0 | 0 | 0.127163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.52 | 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 |
55f88947d51e430142d0c2c23f3eb7b5c9af56c7 | 4,186 | py | Python | iotprovision/aws/sandbox_provision.py | microchip-pic-avr-tools/iotprovision | 310806d6df4462484fe289a14957228a6f34ca48 | [
"MIT"
] | null | null | null | iotprovision/aws/sandbox_provision.py | microchip-pic-avr-tools/iotprovision | 310806d6df4462484fe289a14957228a6f34ca48 | [
"MIT"
] | null | null | null | iotprovision/aws/sandbox_provision.py | microchip-pic-avr-tools/iotprovision | 310806d6df4462484fe289a14957228a6f34ca48 | [
"MIT"
] | null | null | null | """
This script implements the "sandbox" AWS provisioning method, using device certificate from ECC.
It is intended to be invoked from iotprovison, but can also be run stand-alone.
"""
import os
from logging import getLogger
import hashlib
import binascii
from cryptography import x509
from cryptography.hazmat.primitive... | 44.531915 | 116 | 0.687291 | 493 | 4,186 | 5.602434 | 0.344828 | 0.080014 | 0.057929 | 0.06336 | 0.225561 | 0.135047 | 0.086169 | 0.062998 | 0 | 0 | 0 | 0.007304 | 0.247731 | 4,186 | 93 | 117 | 45.010753 | 0.8698 | 0.293359 | 0 | 0 | 0 | 0 | 0.084836 | 0.007777 | 0 | 0 | 0 | 0.010753 | 0 | 1 | 0.041667 | false | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
55f8ac6e5f1efa61d7f90a118835bff0fa948fae | 451 | py | Python | mirari/mirari/migrations/0017_organization_dashboard_logo_width.py | gcastellan0s/mirariapp | 24a9db06d10f96c894d817ef7ccfeec2a25788b7 | [
"MIT"
] | null | null | null | mirari/mirari/migrations/0017_organization_dashboard_logo_width.py | gcastellan0s/mirariapp | 24a9db06d10f96c894d817ef7ccfeec2a25788b7 | [
"MIT"
] | 18 | 2019-12-27T19:58:20.000Z | 2022-02-27T08:17:49.000Z | mirari/mirari/migrations/0017_organization_dashboard_logo_width.py | gcastellan0s/mirariapp | 24a9db06d10f96c894d817ef7ccfeec2a25788b7 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.5 on 2019-02-25 23:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mirari', '0016_auto_20181219_1659'),
]
operations = [
migrations.AddField(
model_name='organization',
name='DASHBOAR... | 23.736842 | 98 | 0.627494 | 50 | 451 | 5.52 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094955 | 0.252772 | 451 | 18 | 99 | 25.055556 | 0.724036 | 0.099778 | 0 | 0 | 1 | 0 | 0.158416 | 0.056931 | 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 |
55fc3f3d0b0b263b1268920b554408680cd21d63 | 1,506 | py | Python | app/tests/test_state.py | mike-wendt/unicorn-remote | e649c069482446f08b0baf579de05f065ad7ab89 | [
"MIT"
] | 37 | 2017-07-30T16:43:22.000Z | 2021-12-12T09:40:11.000Z | app/tests/test_state.py | kfechter/unicorn-remote | 39466cad9e7420b51ffa11fa7554756a934f2d24 | [
"MIT"
] | 7 | 2017-11-18T19:22:18.000Z | 2021-09-08T15:59:00.000Z | app/tests/test_state.py | kfechter/unicorn-remote | 39466cad9e7420b51ffa11fa7554756a934f2d24 | [
"MIT"
] | 8 | 2018-04-21T05:31:40.000Z | 2020-12-09T19:43:32.000Z | import unittest
import time
import app.programs.hd
import app.programs.original
from app.state import state, ProgramNotFound
class TestState(unittest.TestCase):
def tearDown(self):
if state._process is not None:
state._process.terminate()
def start_all(self, list):
for name, _ i... | 30.12 | 71 | 0.664675 | 193 | 1,506 | 4.937824 | 0.300518 | 0.051417 | 0.10703 | 0.088143 | 0.402938 | 0.253935 | 0.209864 | 0.209864 | 0.209864 | 0 | 0 | 0.007705 | 0.224436 | 1,506 | 49 | 72 | 30.734694 | 0.808219 | 0 | 0 | 0.108108 | 0 | 0 | 0.043825 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 1 | 0.243243 | false | 0 | 0.135135 | 0 | 0.405405 | 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 |
3607c310f8e290b678d746ed02d807fb6e744a26 | 463 | py | Python | apps/customers/public_views.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | apps/customers/public_views.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | apps/customers/public_views.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | from django.db.models import Q
from django.shortcuts import render, get_object_or_404
from .models import Customer
def community_view(request, slug):
if request.user.is_authenticated():
community = get_object_or_404(Customer, domain_url=slug + '.proven.cc')
else:
community = get_object_or_404(... | 38.583333 | 104 | 0.74946 | 64 | 463 | 5.171875 | 0.5 | 0.081571 | 0.099698 | 0.126888 | 0.314199 | 0.187311 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.144708 | 463 | 11 | 105 | 42.090909 | 0.813131 | 0 | 0 | 0 | 0 | 0 | 0.103672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 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 |
360a4f610f797768bc1a3fa7c60b4f0416cbe475 | 398 | py | Python | glue/viewers/common/python_export.py | sergiopasra/glue | c25a217a122a11818382672c99cb21f57a30636f | [
"BSD-3-Clause"
] | 1 | 2019-12-17T07:58:35.000Z | 2019-12-17T07:58:35.000Z | glue/viewers/common/python_export.py | sergiopasra/glue | c25a217a122a11818382672c99cb21f57a30636f | [
"BSD-3-Clause"
] | null | null | null | glue/viewers/common/python_export.py | sergiopasra/glue | c25a217a122a11818382672c99cb21f57a30636f | [
"BSD-3-Clause"
] | 1 | 2019-08-04T14:10:12.000Z | 2019-08-04T14:10:12.000Z | from __future__ import absolute_import, division, print_function
__all__ = ['code', 'serialize_options']
class code(str):
pass
def serialize_options(options):
result = []
for key, value in options.items():
if isinstance(value, code):
result.append(key + '=' + value)
else:
... | 22.111111 | 64 | 0.613065 | 44 | 398 | 5.272727 | 0.636364 | 0.137931 | 0.12931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253769 | 398 | 17 | 65 | 23.411765 | 0.781145 | 0 | 0 | 0 | 0 | 0 | 0.062814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0.083333 | 0.083333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
360a778739ec88c2d9be9e5ef6640c106eb97d73 | 938 | py | Python | apps/local_apps/tribes/templatetags/tribe_tags.py | google-code-export/django-hotclub | d783a5bbcc06816289565f3eae6d99461188ca4a | [
"MIT"
] | 3 | 2015-12-25T14:45:36.000Z | 2016-11-28T09:58:03.000Z | apps/local_apps/tribes/templatetags/tribe_tags.py | indro/t2c | 56482ad4aed150f29353e054db2c97b567243bf8 | [
"MIT"
] | null | null | null | apps/local_apps/tribes/templatetags/tribe_tags.py | indro/t2c | 56482ad4aed150f29353e054db2c97b567243bf8 | [
"MIT"
] | null | null | null | from django import template
from tribes.forms import TribeForm
register = template.Library()
def show_tribe_topic(topic):
return {"topic": topic}
register.inclusion_tag("tribes/topic_item.html")(show_tribe_topic)
def show_tribe(tribe):
return {"tribe": tribe}
register.inclusion_tag("tribes/tribe_item.html")(... | 32.344828 | 126 | 0.721748 | 121 | 938 | 5.338843 | 0.38843 | 0.102167 | 0.055728 | 0.080495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001274 | 0.163113 | 938 | 29 | 127 | 32.344828 | 0.821656 | 0 | 0 | 0 | 0 | 0 | 0.1459 | 0.046858 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | 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 |
360bbb90dfd0d02151db7a59fdd622533c16726c | 368 | py | Python | cafeteria/images/migrations/0016_auto_20190909_0258.py | devGW/PostApp | fda99fbc838ee809b1ff28445d66cbd48e2b5016 | [
"MIT"
] | null | null | null | cafeteria/images/migrations/0016_auto_20190909_0258.py | devGW/PostApp | fda99fbc838ee809b1ff28445d66cbd48e2b5016 | [
"MIT"
] | 1 | 2019-08-31T01:07:46.000Z | 2019-09-01T15:10:42.000Z | cafeteria/images/migrations/0016_auto_20190909_0258.py | devGW/PostApp | fda99fbc838ee809b1ff28445d66cbd48e2b5016 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-09-08 17:58
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('images', '0015_auto_20190909_0253'),
]
operations = [
migrations.RenameField(
model_name='comment',
old_name='refer',
... | 19.368421 | 47 | 0.589674 | 39 | 368 | 5.410256 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120155 | 0.298913 | 368 | 18 | 48 | 20.444444 | 0.697674 | 0.122283 | 0 | 0 | 1 | 0 | 0.165109 | 0.071651 | 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 |
360dbe6f73113a2adf9939669616b8d8ac9fc300 | 346 | py | Python | socket/base/base.py | PlusLius/awesome-python | beba4b8de8d863c10e4c0c7040b47e63ca24cf3f | [
"MIT"
] | null | null | null | socket/base/base.py | PlusLius/awesome-python | beba4b8de8d863c10e4c0c7040b47e63ca24cf3f | [
"MIT"
] | null | null | null | socket/base/base.py | PlusLius/awesome-python | beba4b8de8d863c10e4c0c7040b47e63ca24cf3f | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
# 引入socket模块
import socket
# 实例化socket
s = socket.socket()
# 获取本地主机名
host = socket.gethostname()
# 获取端口
port = 12345
# 绑定端口
s.bind((host,port))
# 监听端口
s.listen(5)
while True:
# 获取客户端socket
c,addr = s.accept()
print '连接地址',addr
# 想客户端发送消息
c.send('欢迎连接本服务器')
# 关... | 10.8125 | 28 | 0.578035 | 43 | 346 | 4.651163 | 0.744186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027668 | 0.268786 | 346 | 31 | 29 | 11.16129 | 0.762846 | 0.260116 | 0 | 0 | 0 | 0 | 0.049383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.