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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08c3c73fb071c563aa6c6cb9106af9a4e78d2bdf | 1,416 | py | Python | bookmarks/bookmarks/models.py | tom-henderson/bookmarks | 5515bedf1008da3e97caf0ed5867bcf983b375b1 | [
"MIT"
] | 6 | 2017-01-09T22:59:31.000Z | 2022-01-06T01:40:57.000Z | bookmarks/bookmarks/models.py | tom-henderson/bookmarks | 5515bedf1008da3e97caf0ed5867bcf983b375b1 | [
"MIT"
] | 30 | 2016-09-13T07:30:26.000Z | 2022-02-07T22:49:03.000Z | bookmarks/bookmarks/models.py | tom-henderson/bookmarks | 5515bedf1008da3e97caf0ed5867bcf983b375b1 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
from django.dispatch import receiver
from django.conf import settings
from taggit.managers import TaggableManager
import requests
class Bookmark(models.Model):
title = models.CharField(max_length=200, blank=T... | 28.897959 | 74 | 0.631356 | 154 | 1,416 | 5.649351 | 0.545455 | 0.045977 | 0.029885 | 0.03908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007612 | 0.257768 | 1,416 | 48 | 75 | 29.5 | 0.820171 | 0.024718 | 0 | 0 | 0 | 0 | 0.082669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.189189 | 0.027027 | 0.486486 | 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 | 0 | 0 | 1 | 0 |
08c3ea3ed3c0d6241f479fa852ed05c431f46706 | 797 | py | Python | vernam cipher.py | BenMiller3/Vernam-Cipher | 19f7a447bc8080c8e275b96a85d359f4e187a4d3 | [
"MIT"
] | null | null | null | vernam cipher.py | BenMiller3/Vernam-Cipher | 19f7a447bc8080c8e275b96a85d359f4e187a4d3 | [
"MIT"
] | null | null | null | vernam cipher.py | BenMiller3/Vernam-Cipher | 19f7a447bc8080c8e275b96a85d359f4e187a4d3 | [
"MIT"
] | null | null | null | """
Vernam Cipher
Benjamin D. Miller
Takes a key, and a message
Encripts the message using the key
"""
def vernam(key,message):
message = str(message)
m = message.upper().replace(" ","") # Convert to upper case, remove whitespace
encrypt = ""
try:
key = int(key) # if the key... | 27.482759 | 91 | 0.567127 | 106 | 797 | 4.254717 | 0.566038 | 0.026608 | 0.039911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038321 | 0.312422 | 797 | 28 | 92 | 28.464286 | 0.784672 | 0.336261 | 0 | 0 | 0 | 0 | 0.070664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.117647 | 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 | 0 | 0 | 1 | 0 |
08c47e02acc3cf4c516e8edc1336ab1be1430cd8 | 421 | py | Python | utils.py | c0derabbit/talk | 26673fde934ef51e76002ea6ddc65bdb42720865 | [
"MIT"
] | null | null | null | utils.py | c0derabbit/talk | 26673fde934ef51e76002ea6ddc65bdb42720865 | [
"MIT"
] | 1 | 2017-05-25T20:37:54.000Z | 2017-05-26T07:33:00.000Z | utils.py | c0derabbit/talk | 26673fde934ef51e76002ea6ddc65bdb42720865 | [
"MIT"
] | null | null | null | from datetime import datetime as d
def stringify_date(date):
try:
return '{0}-{1}-{2}-{3}-{4}'.format(date.year, date.month, date.day, date.hour, date.minute)
except ValueError:
raise ValueError('Invalid date format', date)
def parse_date(date):
try:
return d.strptime(date, '%Y-%m-... | 30.071429 | 100 | 0.64133 | 61 | 421 | 4.393443 | 0.57377 | 0.089552 | 0.08209 | 0.126866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015015 | 0.209026 | 421 | 13 | 101 | 32.384615 | 0.78979 | 0 | 0 | 0.363636 | 0 | 0 | 0.199525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.454545 | 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 | 0 | 0 | 1 | 0 |
08c693a49ad9f776684155a7c2f26843f0a00070 | 3,694 | py | Python | fineract/objects/org.py | mobidevke/py-fineract | 712b0c20686accd7d7e0a2356ccaf59c5fe4f7dd | [
"Apache-2.0"
] | 7 | 2019-03-11T16:17:33.000Z | 2020-10-22T21:57:51.000Z | fineract/objects/org.py | mobidevke/py-fineract | 712b0c20686accd7d7e0a2356ccaf59c5fe4f7dd | [
"Apache-2.0"
] | 3 | 2019-11-05T20:22:16.000Z | 2019-12-11T17:09:04.000Z | fineract/objects/org.py | mobidevke/py-fineract | 712b0c20686accd7d7e0a2356ccaf59c5fe4f7dd | [
"Apache-2.0"
] | 2 | 2020-11-19T16:00:36.000Z | 2021-11-19T09:36:13.000Z | from fineract.objects.currency import Currency
from fineract.objects.fineract_object import FineractObject
from fineract.objects.types import ChargeTimeType, ChargeAppliesTo, ChargeCalculationType, ChargePaymentMode
class Office(FineractObject):
"""
This class represent an Office
"""
def _init_attrib... | 36.574257 | 117 | 0.647266 | 406 | 3,694 | 5.704434 | 0.152709 | 0.162349 | 0.047496 | 0.036269 | 0.503022 | 0.294041 | 0.247409 | 0.217185 | 0.202073 | 0.202073 | 0 | 0 | 0.252301 | 3,694 | 100 | 118 | 36.94 | 0.838523 | 0.032485 | 0 | 0.333333 | 0 | 0 | 0.067464 | 0.005978 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.041667 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
08c6e61cafacb0416494f10178b2d50c3d4b7ef8 | 1,736 | py | Python | Heap/PathWithMinEffort.py | karan2808/Python-Data-Structures-and-Algorithms | a4b39ddf7297541d90dc4efcaab883f928281abd | [
"MIT"
] | 2 | 2021-01-31T03:42:01.000Z | 2021-01-31T03:43:08.000Z | Heap/PathWithMinEffort.py | karan2808/Python-Data-Structures-and-Algorithms | a4b39ddf7297541d90dc4efcaab883f928281abd | [
"MIT"
] | null | null | null | Heap/PathWithMinEffort.py | karan2808/Python-Data-Structures-and-Algorithms | a4b39ddf7297541d90dc4efcaab883f928281abd | [
"MIT"
] | 1 | 2021-01-31T03:42:02.000Z | 2021-01-31T03:42:02.000Z | from heapq import heapify, heappop, heappush
class Solution:
def minimumEffortPath(self, heights):
# get the max rows and cols
m, n = len(heights), len(heights[0])
# make a heap to store the current min cost, x, and y
heap = [(0, 0, 0)]
# keep track of current cost
cu... | 36.166667 | 123 | 0.506336 | 246 | 1,736 | 3.528455 | 0.369919 | 0.011521 | 0.011521 | 0.02765 | 0.036866 | 0.036866 | 0.036866 | 0.036866 | 0.036866 | 0.036866 | 0 | 0.03814 | 0.38076 | 1,736 | 48 | 124 | 36.166667 | 0.769302 | 0.289747 | 0 | 0 | 0 | 0.037037 | 0.063987 | 0.020509 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.037037 | 0 | 0.222222 | 0.037037 | 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 | 0 | 1 | 0 |
08c9e9c176a984ea5d15821ab3616cd2313fc432 | 1,427 | wsgi | Python | vagrant/catalog/StuffMart.wsgi | cpwhidden/StuffMart | a192b8cad8942d0bfddb3af861f1e48c460e28cf | [
"MIT"
] | null | null | null | vagrant/catalog/StuffMart.wsgi | cpwhidden/StuffMart | a192b8cad8942d0bfddb3af861f1e48c460e28cf | [
"MIT"
] | null | null | null | vagrant/catalog/StuffMart.wsgi | cpwhidden/StuffMart | a192b8cad8942d0bfddb3af861f1e48c460e28cf | [
"MIT"
] | null | null | null | activate_this = '/var/www/html/venv/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))
import sys, os, logging
from flask_apscheduler import APScheduler
sys.path.insert(0, 'var/www/html/StuffMart/vagrant/catalog')
logging.basicConfig(stream=sys.stderr)
from server import flask as application
... | 34.804878 | 93 | 0.658725 | 135 | 1,427 | 6.8 | 0.474074 | 0.092593 | 0.065359 | 0.08061 | 0.061002 | 0.061002 | 0 | 0 | 0 | 0 | 0 | 0.008834 | 0.206727 | 1,427 | 41 | 94 | 34.804878 | 0.80212 | 0 | 0 | 0.105263 | 0 | 0 | 0.377451 | 0.291317 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.078947 | 0 | 0.078947 | 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 | 0 | 0 | 1 | 0 |
08ceeff12c2a6ee62212a18498cd6880997296e3 | 1,759 | py | Python | application/routes.py | N-A-Podgornov/CFT-MLC | ded9267c5b8053a15bdcc67be9f83097749cfb13 | [
"Apache-2.0"
] | null | null | null | application/routes.py | N-A-Podgornov/CFT-MLC | ded9267c5b8053a15bdcc67be9f83097749cfb13 | [
"Apache-2.0"
] | null | null | null | application/routes.py | N-A-Podgornov/CFT-MLC | ded9267c5b8053a15bdcc67be9f83097749cfb13 | [
"Apache-2.0"
] | null | null | null | import os
import shutil
from flask import render_template, redirect, url_for, request
from werkzeug.utils import secure_filename
from config import Config
from application import app
from application.model import Model
@app.route('/')
def index():
return redirect(url_for('submit'))
def allowed_file(filename):
... | 30.859649 | 106 | 0.704377 | 230 | 1,759 | 5.195652 | 0.286957 | 0.099582 | 0.076987 | 0.057741 | 0.220084 | 0.220084 | 0.189121 | 0.189121 | 0.145607 | 0.145607 | 0 | 0.001379 | 0.175668 | 1,759 | 56 | 107 | 31.410714 | 0.822759 | 0 | 0 | 0.097561 | 0 | 0 | 0.097783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0 | 0.170732 | 0.04878 | 0.414634 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
08cfc63dc9bcf57b5303ab14c053f28fd612cafc | 4,095 | py | Python | tests/test_onnxml_imputer_converter.py | vumichien/hummingbird | 8981e11ce2536167c329a5d9d20e81125a792fe4 | [
"MIT"
] | 2,772 | 2020-05-04T21:03:40.000Z | 2022-03-30T11:00:03.000Z | tests/test_onnxml_imputer_converter.py | vumichien/hummingbird | 8981e11ce2536167c329a5d9d20e81125a792fe4 | [
"MIT"
] | 486 | 2020-05-05T00:45:44.000Z | 2022-03-15T01:02:31.000Z | tests/test_onnxml_imputer_converter.py | vumichien/hummingbird | 8981e11ce2536167c329a5d9d20e81125a792fe4 | [
"MIT"
] | 232 | 2019-11-02T22:06:38.000Z | 2022-03-25T07:36:17.000Z | """
Tests onnxml Imputer converter
"""
import unittest
import warnings
import numpy as np
import torch
from sklearn.impute import SimpleImputer
from hummingbird.ml._utils import onnx_ml_tools_installed, onnx_runtime_installed, lightgbm_installed
from hummingbird.ml import convert
if onnx_runtime_installed():
imp... | 40.147059 | 125 | 0.70696 | 547 | 4,095 | 5.034735 | 0.20841 | 0.056645 | 0.036311 | 0.040668 | 0.631445 | 0.614742 | 0.614742 | 0.593682 | 0.593682 | 0.593682 | 0 | 0.013241 | 0.188523 | 4,095 | 101 | 126 | 40.544554 | 0.815528 | 0.080342 | 0 | 0.439394 | 0 | 0 | 0.086133 | 0 | 0 | 0 | 0 | 0 | 0.075758 | 1 | 0.090909 | false | 0 | 0.151515 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
08d1b0407331ee4e1921fc4b74a0794639337160 | 7,520 | py | Python | rs_etl.py | jlauman/data_engineering_project_03 | 722c0f5226ed29c00d6b33e64da5982fe0be69e0 | [
"MIT"
] | null | null | null | rs_etl.py | jlauman/data_engineering_project_03 | 722c0f5226ed29c00d6b33e64da5982fe0be69e0 | [
"MIT"
] | null | null | null | rs_etl.py | jlauman/data_engineering_project_03 | 722c0f5226ed29c00d6b33e64da5982fe0be69e0 | [
"MIT"
] | null | null | null | import configparser, os, glob, csv, json, hashlib, time
import pandas as pd
import psycopg2
from pprint import pprint
from rs_sql_queries import staging_events_insert, staging_songs_insert
from rs_sql_queries import insert_table_queries
import boto3
from botocore import UNSIGNED
from botocore.config import Config
DE... | 38.367347 | 173 | 0.529255 | 873 | 7,520 | 4.412371 | 0.255441 | 0.021807 | 0.020249 | 0.010125 | 0.310748 | 0.247923 | 0.204309 | 0.153167 | 0.153167 | 0.153167 | 0 | 0.01155 | 0.28617 | 7,520 | 196 | 174 | 38.367347 | 0.706036 | 0.140293 | 0 | 0.179856 | 0 | 0 | 0.116912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05036 | false | 0.007194 | 0.064748 | 0 | 0.122302 | 0.071942 | 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 | 0 | 1 | 0 |
08d50632dbe42cde10ed75ee126dd035ddf3804a | 3,480 | py | Python | src/frontend/function_transforms/pass_div_zero.py | mfeliu/gelpia | 30c6c1030165b26bf5f84613316f6fc2ce3ebe8b | [
"MIT"
] | null | null | null | src/frontend/function_transforms/pass_div_zero.py | mfeliu/gelpia | 30c6c1030165b26bf5f84613316f6fc2ce3ebe8b | [
"MIT"
] | null | null | null | src/frontend/function_transforms/pass_div_zero.py | mfeliu/gelpia | 30c6c1030165b26bf5f84613316f6fc2ce3ebe8b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
try:
from gelpia import bin_dir
except:
print("gelpia not found, gaol_repl must be in your PATH\n")
bin_dir = ""
from pass_utils import *
from output_flatten import flatten
import re
import sys
import subprocess
import os.path as path
def div_by_zero(exp, inputs, assigns, consts):
qu... | 23.355705 | 67 | 0.611207 | 486 | 3,480 | 4.13786 | 0.242798 | 0.062655 | 0.067131 | 0.071606 | 0.22178 | 0.204873 | 0.191447 | 0.160617 | 0.160617 | 0.14371 | 0 | 0.010929 | 0.263793 | 3,480 | 148 | 68 | 23.513514 | 0.774005 | 0.006034 | 0 | 0.238938 | 0 | 0 | 0.093117 | 0.007808 | 0 | 0 | 0 | 0 | 0.00885 | 1 | 0.053097 | false | 0.035398 | 0.097345 | 0 | 0.256637 | 0.168142 | 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 | 0 | 1 | 0 |
08d52a54cf446718a15b7b80b28b2ccd05586869 | 2,150 | py | Python | setup.py | bearroast/django-estimators | 5dd72694dab6725335214543a59104c4de504037 | [
"MIT"
] | 46 | 2016-09-13T06:33:30.000Z | 2022-01-08T00:55:37.000Z | setup.py | bearroast/django-estimators | 5dd72694dab6725335214543a59104c4de504037 | [
"MIT"
] | 14 | 2016-09-10T04:56:30.000Z | 2017-11-28T04:12:43.000Z | setup.py | bearroast/django-estimators | 5dd72694dab6725335214543a59104c4de504037 | [
"MIT"
] | 19 | 2016-09-20T23:53:26.000Z | 2022-01-08T00:55:39.000Z | import os
from pip.req import parse_requirements
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements(
os.... | 40.566038 | 88 | 0.670698 | 245 | 2,150 | 5.787755 | 0.563265 | 0.029619 | 0.070522 | 0.025388 | 0.049365 | 0.038082 | 0.038082 | 0 | 0 | 0 | 0 | 0.007009 | 0.203721 | 2,150 | 52 | 89 | 41.346154 | 0.821262 | 0.095349 | 0 | 0 | 0 | 0 | 0.527592 | 0.011346 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.068182 | 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 | 0 | 0 | 1 | 0 |
08d5314ae1e6b39701c18dfc2466ee45cde74ef6 | 7,517 | py | Python | ip_group.py | vectranetworks/csv-to-ip-group | f8f53f979c62c3db161fcb7fdc3b7ebb26842055 | [
"MIT"
] | null | null | null | ip_group.py | vectranetworks/csv-to-ip-group | f8f53f979c62c3db161fcb7fdc3b7ebb26842055 | [
"MIT"
] | null | null | null | ip_group.py | vectranetworks/csv-to-ip-group | f8f53f979c62c3db161fcb7fdc3b7ebb26842055 | [
"MIT"
] | null | null | null | import csv
import ipaddress
import logging.handlers
import sys
import argparse
try:
import vat.vectra as vectra
import requests
except Exception as error:
print('\nMissing import requirements: {}\n'.format(str(error)))
sys.exit(0)
LOG = logging.getLogger(__name__)
INVALID_CHARS = ['~', '#', '$', '^'... | 39.151042 | 118 | 0.596648 | 906 | 7,517 | 4.844371 | 0.258278 | 0.038961 | 0.01481 | 0.018455 | 0.248576 | 0.178628 | 0.152427 | 0.106175 | 0.052859 | 0.052859 | 0 | 0.014773 | 0.297592 | 7,517 | 191 | 119 | 39.356021 | 0.816477 | 0.214846 | 0 | 0.09434 | 0 | 0.009434 | 0.196857 | 0.015537 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066038 | false | 0 | 0.075472 | 0 | 0.198113 | 0.018868 | 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 | 0 | 1 | 0 |
08d5fc45e5a26919b46ae56fd9e3cb2d53ede3e7 | 512 | py | Python | BasicSyntax/DataType.py | Fjaxzhy/top.kagurayayoi.learn.Python | af2ad3b7da85fb0af1668d3751c0342b16d0966f | [
"MIT"
] | null | null | null | BasicSyntax/DataType.py | Fjaxzhy/top.kagurayayoi.learn.Python | af2ad3b7da85fb0af1668d3751c0342b16d0966f | [
"MIT"
] | 11 | 2021-03-29T08:50:16.000Z | 2021-03-31T08:46:55.000Z | BasicSyntax/DataType.py | Fjaxzhy/top.kagurayayoi.learn.Python | af2ad3b7da85fb0af1668d3751c0342b16d0966f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Python变量不需要声明数据类型
# 变量在使用前必须赋值
# 变量没有类型 类型指内存中对象的类型
# 不可变数据 Number / String / Tuple
# 可变数据 List / Dictionary / Set
# 数字 Number
# 整数 Int
IntNum = 100
# 浮点数 Float
FloatNum = 100.10
# 布尔值 Boolean // True:1 False:0
BoolNum = True
# 复数 Complex
ComplexNum = 1.00j
... | 14.628571 | 43 | 0.59375 | 75 | 512 | 4.053333 | 0.733333 | 0.019737 | 0.029605 | 0.039474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063452 | 0.230469 | 512 | 34 | 44 | 15.058824 | 0.708122 | 0.541016 | 0 | 0 | 0 | 0 | 0.142202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
08d6edb44ef1415e69d5e8564970749ce00f431c | 382 | py | Python | rename_smpls.py | Chartiza/bulls | e4e7895a37a0335572dea50f2cbaae2737b3cd5f | [
"MIT"
] | null | null | null | rename_smpls.py | Chartiza/bulls | e4e7895a37a0335572dea50f2cbaae2737b3cd5f | [
"MIT"
] | null | null | null | rename_smpls.py | Chartiza/bulls | e4e7895a37a0335572dea50f2cbaae2737b3cd5f | [
"MIT"
] | null | null | null | #!/usr/bin/python
sootv = {}
#Read file sootvetstviya
for l in open ("filesootv"):
data = l.strip().split("\t")
if data[0] not in sootv:
sootv[data[0]] = data[1]
#Read FinalReport file
for l in open('Ire30_GP'):
data = l.strip().split("\t")
if data[1] in sootv:
print(data[0]+"\t"+sootv[data[1]]... | 23.875 | 94 | 0.570681 | 67 | 382 | 3.238806 | 0.41791 | 0.092166 | 0.0553 | 0.092166 | 0.202765 | 0.202765 | 0.202765 | 0 | 0 | 0 | 0 | 0.037975 | 0.172775 | 382 | 16 | 95 | 23.875 | 0.648734 | 0.157068 | 0 | 0.222222 | 0 | 0 | 0.108197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 | 0 | 1 | 0 |
08d8e05ba83fd1eb90111af5408ae91ffdf11318 | 2,619 | py | Python | src/custom_arch/custom_alexnet.py | joeyseash/PruneTrain | 5adb367eb90b7e1e38251f8e3a8e7eb65b167aa0 | [
"Apache-2.0"
] | 1 | 2021-10-03T00:57:32.000Z | 2021-10-03T00:57:32.000Z | src/custom_arch/custom_alexnet.py | VictorSuciu/prunetrain | ef84a88ef8a34f8e79de783ffdb9d3b82545dc3b | [
"Apache-2.0"
] | null | null | null | src/custom_arch/custom_alexnet.py | VictorSuciu/prunetrain | ef84a88ef8a34f8e79de783ffdb9d3b82545dc3b | [
"Apache-2.0"
] | null | null | null | """
Copyright 2019 Sangkug Lym
Copyright 2019 The University of Texas at Austin
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 require... | 34.012987 | 104 | 0.658267 | 408 | 2,619 | 4.107843 | 0.375 | 0.050119 | 0.100835 | 0.050716 | 0.220167 | 0.203461 | 0.181981 | 0.146181 | 0.146181 | 0.124105 | 0 | 0.028004 | 0.154639 | 2,619 | 77 | 105 | 34.012987 | 0.728997 | 0.248186 | 0 | 0.170213 | 0 | 0 | 0.332478 | 0.023602 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0.06383 | 0 | 0.085106 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
08dc052ecc3d96e2ef3efe41624a974268f5c7b0 | 2,596 | py | Python | DIP/exercises/ex10/pca.py | apeyrard/sjtu-work | ca98fec3c83b81ed9091bdc968cb5ad8a74d1d6a | [
"MIT"
] | 1 | 2022-03-26T10:04:05.000Z | 2022-03-26T10:04:05.000Z | DIP/exercises/ex10/pca.py | apeyrard/sjtu-work | ca98fec3c83b81ed9091bdc968cb5ad8a74d1d6a | [
"MIT"
] | null | null | null | DIP/exercises/ex10/pca.py | apeyrard/sjtu-work | ca98fec3c83b81ed9091bdc968cb5ad8a74d1d6a | [
"MIT"
] | 1 | 2022-03-26T10:04:06.000Z | 2022-03-26T10:04:06.000Z | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import sys
import os
from PIL import Image
import numpy as np
size = None
matrix_x = None
for image in os.listdir('./washington'):
try:
print(image)
with Image.open(os.path.join('./washington',image)) as im:
imgVector = np.array(list(im.get... | 23.6 | 68 | 0.573575 | 393 | 2,596 | 3.737913 | 0.249364 | 0.061947 | 0.032675 | 0.022464 | 0.134105 | 0.123213 | 0.110279 | 0.050374 | 0.050374 | 0 | 0 | 0.022059 | 0.266564 | 2,596 | 109 | 69 | 23.816514 | 0.749475 | 0.057011 | 0 | 0.17284 | 0 | 0 | 0.020148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012346 | false | 0 | 0.049383 | 0 | 0.074074 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
08dc36bae83be55acec0ed61f76a33d11f4bb8a1 | 1,677 | py | Python | organisations/migrate-entities/script.py | jbarnes/aws-python-script-collection | bf2accf60b8c14af89fab3a210c4df6a3b2e0ba9 | [
"MIT"
] | null | null | null | organisations/migrate-entities/script.py | jbarnes/aws-python-script-collection | bf2accf60b8c14af89fab3a210c4df6a3b2e0ba9 | [
"MIT"
] | null | null | null | organisations/migrate-entities/script.py | jbarnes/aws-python-script-collection | bf2accf60b8c14af89fab3a210c4df6a3b2e0ba9 | [
"MIT"
] | null | null | null | import boto3
import sys
if __name__ == "__main__":
if len(sys.argv) > 2:
print("[ERROR] You have passed in an invalid target-id, example target-id is ou-zhz0-prn5fmbc")
sys.exit()
else:
print("[INFO] Valid argument detected, proceeding with account migration")
destination_id = ... | 35.680851 | 103 | 0.556947 | 180 | 1,677 | 5.033333 | 0.461111 | 0.09713 | 0.046358 | 0.05298 | 0.142384 | 0.081678 | 0.081678 | 0.081678 | 0 | 0 | 0 | 0.006358 | 0.34347 | 1,677 | 46 | 104 | 36.456522 | 0.81653 | 0.0322 | 0 | 0.114286 | 0 | 0.028571 | 0.303704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.028571 | 0.057143 | 0 | 0.057143 | 0.228571 | 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 | 0 | 1 | 0 |
08e07a97a9f3cede768ff174381cda6e3a2e9847 | 3,823 | py | Python | ProgrammersGuideExamples/provisioning.py | mrhorrible78/PyU4V | 5b9274fd6f5f80a4a6e7aa487e348fa91f6f315c | [
"MIT"
] | null | null | null | ProgrammersGuideExamples/provisioning.py | mrhorrible78/PyU4V | 5b9274fd6f5f80a4a6e7aa487e348fa91f6f315c | [
"MIT"
] | null | null | null | ProgrammersGuideExamples/provisioning.py | mrhorrible78/PyU4V | 5b9274fd6f5f80a4a6e7aa487e348fa91f6f315c | [
"MIT"
] | null | null | null | # The MIT License (MIT)
# Copyright (c) 2016 Dell Inc. or its subsidiaries.
# 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 ... | 43.443182 | 86 | 0.625948 | 469 | 3,823 | 4.976546 | 0.452026 | 0.037704 | 0.029135 | 0.034704 | 0.066838 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011074 | 0.291394 | 3,823 | 87 | 87 | 43.942529 | 0.850498 | 0.309181 | 0 | 0.037037 | 0 | 0 | 0.230153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.111111 | 0.092593 | 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 | 0 | 1 | 0 |
08e17200183b1b4c4b38978e4c91346462570f54 | 8,227 | py | Python | quickdraw-doodle-recognition/gcloud/common.py | yasserglez/kaggle_titanic | 7a4857ec9a99c31eb53a91dda3ad9ecd5b647278 | [
"MIT"
] | 2 | 2019-09-29T02:26:58.000Z | 2020-03-06T07:38:58.000Z | quickdraw-doodle-recognition/gcloud/common.py | yasserglez/kaggle_titanic | 7a4857ec9a99c31eb53a91dda3ad9ecd5b647278 | [
"MIT"
] | 2 | 2018-12-17T04:32:09.000Z | 2019-10-22T00:31:06.000Z | quickdraw-doodle-recognition/gcloud/common.py | yasserglez/kaggle | 7a4857ec9a99c31eb53a91dda3ad9ecd5b647278 | [
"MIT"
] | null | null | null | import struct
import itertools
import numpy as np
from bitarray import bitarray
RANDOM_SEED = 2387613
IMAGE_SIZE = 128
BATCH_SIZE = 2048
# Assign an integer to each word to be predicted.
WORD2LABEL = {
'The Eiffel Tower': 0,
'The Great Wall of China': 1,
'The Mona Lisa': 2,
'airplane': 3,
'alar... | 20.880711 | 95 | 0.519874 | 943 | 8,227 | 4.497349 | 0.852598 | 0.016977 | 0.012969 | 0.012733 | 0.011318 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161207 | 0.295004 | 8,227 | 393 | 96 | 20.933842 | 0.57 | 0.019813 | 0 | 0.005291 | 0 | 0 | 0.300074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010582 | false | 0.005291 | 0.010582 | 0 | 0.02381 | 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 | 0 | 0 | 1 | 0 |
08e511f1a5de576d29d0f24338c61be5e0fb82ee | 2,250 | py | Python | multiband_melgan/dataset.py | AppleHolic/multiband_melgan | e0864d0fc205c3bdf5e19c77753e105e29a2641b | [
"MIT"
] | 41 | 2020-06-24T08:07:23.000Z | 2022-01-24T16:39:54.000Z | multiband_melgan/dataset.py | AppleHolic/multiband_melgan | e0864d0fc205c3bdf5e19c77753e105e29a2641b | [
"MIT"
] | 2 | 2020-06-24T08:02:15.000Z | 2020-11-23T02:56:42.000Z | multiband_melgan/dataset.py | AppleHolic/multiband_melgan | e0864d0fc205c3bdf5e19c77753e105e29a2641b | [
"MIT"
] | 5 | 2020-07-03T04:00:50.000Z | 2020-11-04T03:24:48.000Z | import numpy as np
import librosa
import os
from pytorch_sound.data.meta.ljspeech import LJSpeechMeta
from torch.utils.data import Dataset, DataLoader
from typing import Tuple
class AudioDataset(Dataset):
def __init__(self, meta_frame, crop_length: int, seed: int = 1234):
self.meta_frame = meta_frame
... | 34.090909 | 106 | 0.679111 | 310 | 2,250 | 4.66129 | 0.290323 | 0.089965 | 0.058131 | 0.041522 | 0.160554 | 0.160554 | 0.160554 | 0.114879 | 0.062284 | 0 | 0 | 0.008046 | 0.226667 | 2,250 | 65 | 107 | 34.615385 | 0.822414 | 0.070667 | 0 | 0 | 0 | 0 | 0.021624 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 1 | 0.105263 | false | 0 | 0.157895 | 0.026316 | 0.368421 | 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 | 0 | 0 | 1 | 0 |
08e85c7f00798390cfd21fa3cd1b2758063f698c | 3,830 | py | Python | yasmss/sparkmapper/sparkmapper.py | AshirwadPradhan/yasmss | 8b8b7108a3a437f0c757f19225a0c2082dbbd488 | [
"MIT"
] | null | null | null | yasmss/sparkmapper/sparkmapper.py | AshirwadPradhan/yasmss | 8b8b7108a3a437f0c757f19225a0c2082dbbd488 | [
"MIT"
] | 2 | 2019-09-22T03:27:20.000Z | 2019-09-22T13:56:35.000Z | yasmss/sparkmapper/sparkmapper.py | AshirwadPradhan/yasmss | 8b8b7108a3a437f0c757f19225a0c2082dbbd488 | [
"MIT"
] | 2 | 2019-09-15T13:10:41.000Z | 2019-10-29T11:20:10.000Z | """Get the parsed query from the driver and apply transformation and action based on the
query template
"""
import time
import pyspark.sql.functions as f
from pyspark.sql import SparkSession
from pyspark.sql.types import IntegerType, StringType, StructField, StructType
import yaml
from schema import schema
with ... | 33.304348 | 91 | 0.621671 | 421 | 3,830 | 5.482185 | 0.35867 | 0.033362 | 0.020797 | 0.012998 | 0.166378 | 0.103986 | 0.103986 | 0.060659 | 0.060659 | 0.060659 | 0 | 0.001814 | 0.280157 | 3,830 | 114 | 92 | 33.596491 | 0.835328 | 0.07154 | 0 | 0.126582 | 0 | 0 | 0.068583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075949 | false | 0 | 0.075949 | 0 | 0.265823 | 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 | 0 | 0 | 1 | 0 |
08ea5997bb021488c38f1e74924d799e82ac53bd | 17,456 | py | Python | src/rangeen/_emotes.py | khera-shanu/Rangeen | 0a7f7699c0030d28fd42211c1fb33c89ced3e857 | [
"MIT"
] | null | null | null | src/rangeen/_emotes.py | khera-shanu/Rangeen | 0a7f7699c0030d28fd42211c1fb33c89ced3e857 | [
"MIT"
] | null | null | null | src/rangeen/_emotes.py | khera-shanu/Rangeen | 0a7f7699c0030d28fd42211c1fb33c89ced3e857 | [
"MIT"
] | null | null | null | class Emote:
smile = u"😄"
satisfied = u"😆"
blush = u"😊"
smiley = u"😃"
relaxed = u"☺️"
smirk = u"😏"
heart_eyes = u"😍"
kissing_heart = u"😘"
kissing_closed_eyes = u"😚"
flushed = u"😳"
relieved = u"😌"
grin = u"😁"
wink = u"😉"
stuck_out_tongue_winking_eye = u... | 21.261876 | 42 | 0.477601 | 2,942 | 17,456 | 2.990823 | 0.56968 | 0.007387 | 0.005114 | 0.00591 | 0.004546 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010665 | 0.32854 | 17,456 | 820 | 43 | 21.287805 | 0.66078 | 0 | 0 | 0 | 0 | 0 | 0.053678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.00122 | 0 | 0 | 1 | 0.00122 | 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 | 0 | 1 | 0 |
08f00026b0a8d4a6cccad1a88563ce7a5b83f749 | 1,522 | py | Python | src/config.py | DQiaole/ZITS | 5f7a060167790789d5e29a3d14d3c2ef8a34e765 | [
"Apache-2.0"
] | 40 | 2022-03-02T06:12:43.000Z | 2022-03-30T02:17:02.000Z | src/config.py | DQiaole/ZITS | 5f7a060167790789d5e29a3d14d3c2ef8a34e765 | [
"Apache-2.0"
] | 6 | 2022-03-06T03:53:14.000Z | 2022-03-31T06:36:34.000Z | src/config.py | DQiaole/ZITS | 5f7a060167790789d5e29a3d14d3c2ef8a34e765 | [
"Apache-2.0"
] | 5 | 2022-03-04T06:39:44.000Z | 2022-03-28T04:58:32.000Z | import os
import yaml
class Config(dict):
def __init__(self, config_path):
with open(config_path, 'r') as f:
self._yaml = f.read()
self._dict = yaml.load(self._yaml, Loader=yaml.FullLoader)
self._dict['PATH'] = os.path.dirname(config_path)
def __getattr__(self, na... | 35.395349 | 107 | 0.557819 | 180 | 1,522 | 4.555556 | 0.405556 | 0.073171 | 0.082927 | 0.092683 | 0.22439 | 0.22439 | 0.1 | 0.1 | 0 | 0 | 0 | 0.024598 | 0.305519 | 1,522 | 42 | 108 | 36.238095 | 0.751183 | 0.271353 | 0 | 0.125 | 0 | 0 | 0.171975 | 0.060055 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.0625 | 0 | 0.28125 | 0.21875 | 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 | 0 | 1 | 0 |
08f0432c93f8f390bd7d7a71479785cb462167ba | 8,786 | py | Python | examples/acados_python/test/generate_c_code.py | besticka/acados | 32767a19aed01a15b5e7b83ebc6ddbd669a47954 | [
"BSD-2-Clause"
] | null | null | null | examples/acados_python/test/generate_c_code.py | besticka/acados | 32767a19aed01a15b5e7b83ebc6ddbd669a47954 | [
"BSD-2-Clause"
] | null | null | null | examples/acados_python/test/generate_c_code.py | besticka/acados | 32767a19aed01a15b5e7b83ebc6ddbd669a47954 | [
"BSD-2-Clause"
] | null | null | null | #
# Copyright 2019 Gianluca Frison, Dimitris Kouzoupis, Robin Verschueren,
# Andrea Zanelli, Niels van Duijkeren, Jonathan Frey, Tommaso Sartor,
# Branimir Novoselnik, Rien Quirynen, Rezart Qelibari, Dang Doan,
# Jonas Koenemann, Yutao Chen, Tobias Schöls, Jonas Schlagenhauf, Moritz Diehl
#
# This file is part of acado... | 31.604317 | 178 | 0.669019 | 1,312 | 8,786 | 4.307165 | 0.260671 | 0.024067 | 0.012741 | 0.020527 | 0.236949 | 0.142984 | 0.099451 | 0.079632 | 0.060166 | 0.024067 | 0 | 0.01787 | 0.210221 | 8,786 | 277 | 179 | 31.718412 | 0.796512 | 0.214546 | 0 | 0.039548 | 0 | 0.00565 | 0.213629 | 0.037794 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.00565 | 0.045198 | 0 | 0.045198 | 0.016949 | 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 | 0 | 1 | 0 |
08f3eae9e91dde600e2781b52aa83909fff87587 | 1,560 | py | Python | prob_h.py | ShinjiKatoA16/icpc2017ucsy | de1954620036e8025b7b4c1b469e6b8c57af212e | [
"MIT"
] | null | null | null | prob_h.py | ShinjiKatoA16/icpc2017ucsy | de1954620036e8025b7b4c1b469e6b8c57af212e | [
"MIT"
] | null | null | null | prob_h.py | ShinjiKatoA16/icpc2017ucsy | de1954620036e8025b7b4c1b469e6b8c57af212e | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
'''
2017 ICPC at UCSY
Problem-H: Sum Square
'''
import sys
class TestCase():
pass
def parse_tc(tc):
'''
Input: Test Case
Update:
Return: None
'''
x = list(map(int,tc.infile.readline().split()))
tc.dataset = x[0]
tc... | 16.956522 | 69 | 0.501923 | 225 | 1,560 | 3.306667 | 0.328889 | 0.075269 | 0.064516 | 0.052419 | 0.219086 | 0.053763 | 0 | 0 | 0 | 0 | 0 | 0.02266 | 0.349359 | 1,560 | 91 | 70 | 17.142857 | 0.710345 | 0.114744 | 0 | 0.137255 | 0 | 0 | 0.007722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0.019608 | 0.019608 | 0 | 0.196078 | 0.098039 | 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 | 0 | 1 | 0 |
08f5c575bcbcd0ee74f875b6fd32a403f396576c | 6,819 | py | Python | neuralpredictors/layers/readouts/factorized.py | kellirestivo/neuralpredictors | 57205a90d2e3daa5f8746c6ef6170be9e35cb5f5 | [
"MIT"
] | 9 | 2020-11-26T18:22:32.000Z | 2022-01-22T15:51:52.000Z | neuralpredictors/layers/readouts/factorized.py | kellirestivo/neuralpredictors | 57205a90d2e3daa5f8746c6ef6170be9e35cb5f5 | [
"MIT"
] | 60 | 2020-10-21T15:32:28.000Z | 2022-02-25T10:38:16.000Z | neuralpredictors/layers/readouts/factorized.py | mohammadbashiri/neuralpredictors | 8e60c9ce91f83e3dcaa1b3dbe4422e1509ccbd5f | [
"MIT"
] | 21 | 2020-10-21T09:29:17.000Z | 2022-02-07T10:04:46.000Z | import torch
from torch import nn as nn
import numpy as np
from .base import Readout
class FullFactorized2d(Readout):
"""
Factorized fully connected layer. Weights are a sum of outer products between a spatial filter and a feature vector.
"""
def __init__(
self,
in_shape,
out... | 35.889474 | 120 | 0.60698 | 850 | 6,819 | 4.676471 | 0.208235 | 0.049308 | 0.006792 | 0.027673 | 0.223648 | 0.161006 | 0.088553 | 0.056604 | 0.034214 | 0.021132 | 0 | 0.006892 | 0.297844 | 6,819 | 189 | 121 | 36.079365 | 0.823308 | 0.114533 | 0 | 0.217687 | 0 | 0 | 0.065228 | 0.00354 | 0 | 0 | 0 | 0 | 0.013605 | 1 | 0.07483 | false | 0.013605 | 0.027211 | 0.013605 | 0.183673 | 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 | 0 | 0 | 1 | 0 |
08f7015d2835dcc1e926fd4acbcfff51249816e9 | 1,186 | py | Python | app/main/views.py | josphat-otieno/news-app | e6ff307230bd2cab787489fca4850004cd9bdbd0 | [
"MIT"
] | null | null | null | app/main/views.py | josphat-otieno/news-app | e6ff307230bd2cab787489fca4850004cd9bdbd0 | [
"MIT"
] | null | null | null | app/main/views.py | josphat-otieno/news-app | e6ff307230bd2cab787489fca4850004cd9bdbd0 | [
"MIT"
] | 1 | 2022-02-28T22:33:33.000Z | 2022-02-28T22:33:33.000Z | from flask import render_template,request, redirect, url_for
from . import main
from ..requests import get_articles, get_news_sources,get_top_headlines, get_news_category
@main.route('/')
def index():
'''
view root function that returns the idex page and its data
'''
title="Welcome to your favorite new... | 34.882353 | 120 | 0.729342 | 156 | 1,186 | 5.352564 | 0.339744 | 0.086228 | 0.035928 | 0.033533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164418 | 1,186 | 34 | 121 | 34.882353 | 0.842583 | 0.142496 | 0 | 0 | 0 | 0 | 0.181263 | 0.027495 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 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 | 0 | 0 | 1 | 0 |
3e92c270410556137345bdc66663f957e85d9d78 | 937 | py | Python | notebook/pypdf2_merge_page.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 174 | 2018-05-30T21:14:50.000Z | 2022-03-25T07:59:37.000Z | notebook/pypdf2_merge_page.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 5 | 2019-08-10T03:22:02.000Z | 2021-07-12T20:31:17.000Z | notebook/pypdf2_merge_page.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 53 | 2018-04-27T05:26:35.000Z | 2022-03-25T07:59:37.000Z | import PyPDF2
merger = PyPDF2.PdfFileMerger()
merger.append('data/src/pdf/sample1.pdf', pages=(0, 1))
merger.append('data/src/pdf/sample2.pdf', pages=(2, 4))
merger.merge(2, 'data/src/pdf/sample3.pdf', pages=(0, 3, 2))
merger.write('data/temp/sample_merge_page.pdf')
merger.close()
merger = PyPDF2.PdfFileMerger()
m... | 30.225806 | 85 | 0.741729 | 140 | 937 | 4.921429 | 0.264286 | 0.081277 | 0.11611 | 0.110305 | 0.703919 | 0.555878 | 0.477504 | 0.397678 | 0.397678 | 0.179971 | 0 | 0.039954 | 0.065101 | 937 | 30 | 86 | 31.233333 | 0.746575 | 0 | 0 | 0.2 | 0 | 0 | 0.318036 | 0.307364 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3e93e3456bdf96692c3deeb42d3cc140eb248959 | 1,983 | py | Python | examples/nlp/bert_squad_pytorch/data.py | gh-determined-ai/determined | 9a1ab33a3a356b69681b3351629fef4ab98ddb56 | [
"Apache-2.0"
] | 1,729 | 2020-04-27T17:36:40.000Z | 2022-03-31T05:48:39.000Z | examples/nlp/bert_squad_pytorch/data.py | ChrisW09/determined | 5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0 | [
"Apache-2.0"
] | 1,940 | 2020-04-27T17:34:14.000Z | 2022-03-31T23:02:28.000Z | examples/nlp/bert_squad_pytorch/data.py | ChrisW09/determined | 5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0 | [
"Apache-2.0"
] | 214 | 2020-04-27T19:57:28.000Z | 2022-03-29T08:17:16.000Z | from transformers.data.processors.squad import SquadV1Processor, SquadV2Processor
from transformers import squad_convert_examples_to_features
import urllib.request
import os
def load_and_cache_examples(data_dir: str, tokenizer, task, max_seq_length, doc_stride, max_query_length, evaluate=False):
if (task == "SQuAD... | 44.066667 | 122 | 0.670701 | 251 | 1,983 | 5.087649 | 0.302789 | 0.038371 | 0.05325 | 0.072044 | 0.440877 | 0.292874 | 0.292874 | 0.256852 | 0.256852 | 0.256852 | 0 | 0.015474 | 0.217852 | 1,983 | 44 | 123 | 45.068182 | 0.807866 | 0 | 0 | 0.097561 | 0 | 0.097561 | 0.185073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.097561 | 0 | 0.146341 | 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 | 0 | 0 | 1 | 0 |
3e9b7d58a68d506fe7a43a816c3f565b193865ec | 10,030 | py | Python | crawler_shopee.py | HariWu1995/ecommerce_crawlers | 578957dbbce2914f8af16c5f21c6529591a9f1d4 | [
"CC0-1.0"
] | null | null | null | crawler_shopee.py | HariWu1995/ecommerce_crawlers | 578957dbbce2914f8af16c5f21c6529591a9f1d4 | [
"CC0-1.0"
] | null | null | null | crawler_shopee.py | HariWu1995/ecommerce_crawlers | 578957dbbce2914f8af16c5f21c6529591a9f1d4 | [
"CC0-1.0"
] | null | null | null | import os
import sys
import time
from tqdm import tqdm as print_progress
import csv
import json
import logging
import numpy as np
import pandas as pd
import random
import cv2
from PIL import Image
from matplotlib import pyplot as plt
import re
import requests
from io import BytesIO
from bs4 impo... | 34.826389 | 131 | 0.598006 | 1,205 | 10,030 | 4.720332 | 0.217427 | 0.012307 | 0.031997 | 0.019691 | 0.357771 | 0.29448 | 0.236111 | 0.213432 | 0.201477 | 0.132911 | 0 | 0.01064 | 0.30658 | 10,030 | 287 | 132 | 34.947735 | 0.807189 | 0.074576 | 0 | 0.263158 | 0 | 0 | 0.133326 | 0.045967 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023923 | false | 0.009569 | 0.133971 | 0 | 0.167464 | 0.066986 | 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 | 0 | 1 | 0 |
3e9de159f87129c1ecdbf87d9939fc63a59cd88b | 1,360 | py | Python | Chapter 08/8.11_chaos_game.py | ACsBlack/Tkinter-GUI-Application-Development-Blueprints-Second-Edition | c6a045fbf5ba3ece5e8a02bbe33ac13bb57b2b8e | [
"MIT"
] | 120 | 2018-03-04T07:17:00.000Z | 2022-01-25T08:09:57.000Z | Chapter 08/8.11_chaos_game.py | ACsBlack/Tkinter-GUI-Application-Development-Blueprints-Second-Edition | c6a045fbf5ba3ece5e8a02bbe33ac13bb57b2b8e | [
"MIT"
] | 3 | 2019-03-24T09:32:43.000Z | 2020-07-28T07:35:49.000Z | Chapter 08/8.11_chaos_game.py | ACsBlack/Tkinter-GUI-Application-Development-Blueprints-Second-Edition | c6a045fbf5ba3ece5e8a02bbe33ac13bb57b2b8e | [
"MIT"
] | 81 | 2018-04-18T06:51:46.000Z | 2022-03-30T01:31:35.000Z | """
Code illustration: 8.11
Chaos Game
Tkinter GUI Application Development Blueprints
"""
import random
from tkinter import Tk, Canvas
import math
WIDTH = 800
HEIGHT = 500
v1 = (float(WIDTH/2), 0.0)
v2 = (0.00, float(HEIGHT))
v3 = (float(WIDTH), float(HEIGHT))
last_point = None
root = Tk()
canvas = Canvas(roo... | 21.25 | 75 | 0.605147 | 225 | 1,360 | 3.533333 | 0.306667 | 0.079245 | 0.05283 | 0.071698 | 0.183648 | 0.183648 | 0.077987 | 0 | 0 | 0 | 0 | 0.072797 | 0.232353 | 1,360 | 63 | 76 | 21.587302 | 0.688697 | 0.0625 | 0 | 0.044444 | 0 | 0 | 0.01105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.066667 | 0 | 0.222222 | 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 | 0 | 0 | 1 | 0 |
3e9e105d1fe756d9759cec38597f51f376c2fdd7 | 1,129 | py | Python | home/migrations/0010_auto_20150916_1146.py | taedori81/gentlecoffee | 62de8ff17c934afdfde188ecc6b9dbfb400d0682 | [
"BSD-3-Clause"
] | null | null | null | home/migrations/0010_auto_20150916_1146.py | taedori81/gentlecoffee | 62de8ff17c934afdfde188ecc6b9dbfb400d0682 | [
"BSD-3-Clause"
] | null | null | null | home/migrations/0010_auto_20150916_1146.py | taedori81/gentlecoffee | 62de8ff17c934afdfde188ecc6b9dbfb400d0682 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import wagtail.wagtailcore.fields
import wagtail.wagtailcore.blocks
import datetime
import wagtail.wagtailimages.blocks
class Migration(migrations.Migration):
dependencies = [
('home', '0009_subscrib... | 33.205882 | 266 | 0.648361 | 109 | 1,129 | 6.614679 | 0.568807 | 0.124827 | 0.099861 | 0.112344 | 0.162275 | 0.162275 | 0 | 0 | 0 | 0 | 0 | 0.030752 | 0.222321 | 1,129 | 33 | 267 | 34.212121 | 0.790433 | 0.018601 | 0 | 0.333333 | 0 | 0 | 0.10217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
3e9f73be09a575abe5d0c2f48b7beb177bd85283 | 793 | py | Python | setup.py | yoarch/replace | 5255810c019141f7de03b96c26a9b732d2218597 | [
"MIT"
] | null | null | null | setup.py | yoarch/replace | 5255810c019141f7de03b96c26a9b732d2218597 | [
"MIT"
] | null | null | null | setup.py | yoarch/replace | 5255810c019141f7de03b96c26a9b732d2218597 | [
"MIT"
] | null | null | null | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="replacefs",
version="1.2.0",
python_requires='>=3',
author="yoarch",
author_email="yo.managements@gmail.com",
description="Search and replace CLI tool for strings on the all system",
... | 28.321429 | 76 | 0.659521 | 90 | 793 | 5.6 | 0.722222 | 0.119048 | 0.075397 | 0.119048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007886 | 0.200504 | 793 | 27 | 77 | 29.37037 | 0.787066 | 0 | 0 | 0 | 0 | 0 | 0.435057 | 0.088272 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3ea0a1cb7ee908d792303d9bcee0623c9c0029ae | 774 | py | Python | ZD2.py | Novomlinov/Lab5 | bd86f277be60173472202329a86790ca08549c26 | [
"MIT"
] | null | null | null | ZD2.py | Novomlinov/Lab5 | bd86f277be60173472202329a86790ca08549c26 | [
"MIT"
] | null | null | null | ZD2.py | Novomlinov/Lab5 | bd86f277be60173472202329a86790ca08549c26 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
if __name__ == '__main__':
A = list(map(int, input().split()))
if len(A) != 10:
print("Неверный размер списка", file=sys.stderr)
exit(1)
s = 0
for item in A:
if not ((item % 2) == 0):
s += item
x... | 25.8 | 57 | 0.5 | 113 | 774 | 3.345133 | 0.469027 | 0.031746 | 0.026455 | 0.037037 | 0.089947 | 0.089947 | 0 | 0 | 0 | 0 | 0 | 0.045726 | 0.350129 | 774 | 30 | 58 | 25.8 | 0.705765 | 0.162791 | 0 | 0.16 | 0 | 0 | 0.048701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.16 | 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 | 0 | 1 | 0 |
3ea72258a32209376e761138207efecbaefac54c | 6,916 | py | Python | tf_agents/policies/categorical_q_policy.py | gregorgebhardt/agents | b6aeae5e0ed68dd4e4ec2ca73ef971254d3208f3 | [
"Apache-2.0"
] | null | null | null | tf_agents/policies/categorical_q_policy.py | gregorgebhardt/agents | b6aeae5e0ed68dd4e4ec2ca73ef971254d3208f3 | [
"Apache-2.0"
] | null | null | null | tf_agents/policies/categorical_q_policy.py | gregorgebhardt/agents | b6aeae5e0ed68dd4e4ec2ca73ef971254d3208f3 | [
"Apache-2.0"
] | 3 | 2019-09-08T22:05:56.000Z | 2020-05-27T08:27:15.000Z | # coding=utf-8
# Copyright 2018 The TF-Agents Authors.
#
# 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... | 41.915152 | 78 | 0.686669 | 933 | 6,916 | 4.831726 | 0.21865 | 0.051464 | 0.021295 | 0.026619 | 0.469831 | 0.412378 | 0.385537 | 0.378882 | 0.352706 | 0.33496 | 0 | 0.004192 | 0.24118 | 6,916 | 164 | 79 | 42.170732 | 0.854802 | 0.399942 | 0 | 0.282051 | 0 | 0 | 0.042028 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 1 | 0.064103 | false | 0 | 0.153846 | 0.012821 | 0.282051 | 0.012821 | 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 | 0 | 1 | 0 |
3ead938794e4c6cd2d0971d9e594b96ceaee54b7 | 6,852 | py | Python | interfaces/withdrawal_gui.py | firminoneto11/terceiro-projeto-curso-python | 685a0e6fafdc07a28a4e7589ac40db0de61737c0 | [
"MIT"
] | 1 | 2021-04-07T00:28:41.000Z | 2021-04-07T00:28:41.000Z | interfaces/withdrawal_gui.py | firminoneto11/terceiro-projeto-curso-python | 685a0e6fafdc07a28a4e7589ac40db0de61737c0 | [
"MIT"
] | null | null | null | interfaces/withdrawal_gui.py | firminoneto11/terceiro-projeto-curso-python | 685a0e6fafdc07a28a4e7589ac40db0de61737c0 | [
"MIT"
] | null | null | null | from tkinter import *
from interfaces.functions import centralize
from tkinter import messagebox
from interfaces.functions import update_session_data_csv, update_clients_csv, get_current_balance
class WithdrawalGUI:
def __init__(self, frame, label):
"""
This __init__ method initializes the sub wi... | 48.253521 | 120 | 0.597052 | 796 | 6,852 | 5.017588 | 0.291457 | 0.087631 | 0.059589 | 0.036054 | 0.24662 | 0.223085 | 0.154482 | 0.145468 | 0.127942 | 0.082123 | 0 | 0.020766 | 0.318301 | 6,852 | 141 | 121 | 48.595745 | 0.834297 | 0.236427 | 0 | 0.2375 | 0 | 0 | 0.146711 | 0.004529 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0375 | false | 0 | 0.05 | 0 | 0.1625 | 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 | 0 | 0 | 1 | 0 |
3eafedfb7f7bd2c80bdda6855f91326da49ebb9e | 3,068 | py | Python | backend/test/notification_tests/notification_rest_tests.py | raphaelrpl/portal | 9e84e52a73500390187d3fc7c4871cf8a3620231 | [
"MIT"
] | null | null | null | backend/test/notification_tests/notification_rest_tests.py | raphaelrpl/portal | 9e84e52a73500390187d3fc7c4871cf8a3620231 | [
"MIT"
] | null | null | null | backend/test/notification_tests/notification_rest_tests.py | raphaelrpl/portal | 9e84e52a73500390187d3fc7c4871cf8a3620231 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from datetime import datetime, date
from decimal import Decimal
from base import GAETestCase
from notification_app.notification_model import Notification
from routes.notifications import rest
from gaegraph.model import Node
from mock impor... | 38.835443 | 97 | 0.712842 | 358 | 3,068 | 5.863128 | 0.226257 | 0.085755 | 0.034302 | 0.062887 | 0.523583 | 0.439733 | 0.395903 | 0.395903 | 0.327299 | 0.283945 | 0 | 0.004806 | 0.186115 | 3,068 | 78 | 98 | 39.333333 | 0.835803 | 0.006845 | 0 | 0.446154 | 0 | 0 | 0.028581 | 0 | 0 | 0 | 0 | 0 | 0.323077 | 1 | 0.107692 | false | 0 | 0.138462 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3ebb613990f10c469e7937a90350ba7e43ef9d8e | 10,709 | py | Python | src/sparnn/layers/basic/conv_lstm_layer.py | JoeinChina/DeepWeather | 2677edc16d9865ec98401aaf121aaabd24974aaf | [
"MIT"
] | 1 | 2020-07-23T04:13:02.000Z | 2020-07-23T04:13:02.000Z | src/sparnn/layers/basic/conv_lstm_layer.py | JoeBuzh/DeepWeather | 2677edc16d9865ec98401aaf121aaabd24974aaf | [
"MIT"
] | null | null | null | src/sparnn/layers/basic/conv_lstm_layer.py | JoeBuzh/DeepWeather | 2677edc16d9865ec98401aaf121aaabd24974aaf | [
"MIT"
] | null | null | null |
import numpy
import logging
import theano
import theano.tensor as TT
from theano.gradient import grad_clip
from sparnn.utils import *
from sparnn.layers import Layer
logger = logging.getLogger(__name__)
class ConvLSTMLayer(Layer):
def __init__(self, layer_param):
super(ConvLSTMLayer, self).__init__(lay... | 59.494444 | 127 | 0.530488 | 1,381 | 10,709 | 3.781318 | 0.106445 | 0.045002 | 0.045576 | 0.0563 | 0.626388 | 0.579663 | 0.556492 | 0.53198 | 0.467254 | 0.458828 | 0 | 0.010209 | 0.359697 | 10,709 | 179 | 128 | 59.826816 | 0.751349 | 0.058362 | 0 | 0.321918 | 0 | 0 | 0.042002 | 0.004667 | 0 | 0 | 0 | 0 | 0.020548 | 1 | 0.034247 | false | 0 | 0.047945 | 0.006849 | 0.10274 | 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 | 0 | 0 | 1 | 0 |
3ebbdc540dc8fa6d2e3f28778c968adced8e307f | 779 | py | Python | build_script.py | lammda/mercari-solution | e6e216d33d19b62fdd4fb2a906bd904ede9c5aaa | [
"MIT"
] | 249 | 2018-03-31T13:08:55.000Z | 2022-02-23T16:13:16.000Z | build_script.py | arita37/mercari-solution | 374301ad1c32cbc93dcc40313d5d7bb9c5503746 | [
"MIT"
] | 1 | 2018-10-24T00:49:12.000Z | 2019-08-28T17:37:00.000Z | build_script.py | arita37/mercari-solution | 374301ad1c32cbc93dcc40313d5d7bb9c5503746 | [
"MIT"
] | 84 | 2018-03-31T20:32:10.000Z | 2022-03-06T10:56:58.000Z | import base64
import glob
import gzip
def build_script(submission_name):
script_template = open('script_template.tmpl')
script = open('script/script_{name}.py'.format(name=submission_name), 'wt')
file_data = {}
for fn in glob.glob('mercari/*.py') + glob.glob('mercari/*.pyx'):
content = open(f... | 31.16 | 114 | 0.661104 | 99 | 779 | 4.969697 | 0.444444 | 0.142276 | 0.085366 | 0.101626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015552 | 0.174583 | 779 | 24 | 115 | 32.458333 | 0.749611 | 0 | 0 | 0 | 0 | 0 | 0.141207 | 0.029525 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.222222 | 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 | 0 | 0 | 1 | 0 |
3ebd20504757b6e90b9dac2cead03c7e3e9835fc | 2,188 | py | Python | graphjson.py | suprfanz/flask-fb-neo4j-alchemy | 8ee5692bdbddc94342b38144d299e9d1a1b0b68d | [
"MIT"
] | 2 | 2018-03-09T03:10:49.000Z | 2020-10-22T10:28:03.000Z | graphjson.py | suprfanz/flask-fb-neo4j-alchemy | 8ee5692bdbddc94342b38144d299e9d1a1b0b68d | [
"MIT"
] | null | null | null | graphjson.py | suprfanz/flask-fb-neo4j-alchemy | 8ee5692bdbddc94342b38144d299e9d1a1b0b68d | [
"MIT"
] | null | null | null | """
graphjson module pull an event from neo4j and creates
graphjson formated file to be used with AlchemyJS
Written by Ray Bernard ray@suprfanz.com
"""
import json
from neo4j.v1 import GraphDatabase, basic_auth
from config import neo4j_dbip, neo4j_admin, neo4j_password
session = GraphDatabase.driver("bolt://{}:7687"... | 29.173333 | 112 | 0.664534 | 306 | 2,188 | 4.539216 | 0.326797 | 0.047516 | 0.069114 | 0.043197 | 0.267099 | 0.239741 | 0.239741 | 0.210943 | 0.210943 | 0.156228 | 0 | 0.010957 | 0.207495 | 2,188 | 74 | 113 | 29.567568 | 0.790081 | 0.153108 | 0 | 0.272727 | 0 | 0.090909 | 0.302174 | 0.064674 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.045455 | 0.068182 | 0 | 0.25 | 0.022727 | 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 | 0 | 1 | 0 |
3ebd492c672da94f9dbeb381a25939527becda92 | 2,507 | py | Python | dataset.py | kisom/aipnd-classifier | a361fc5f25402bbdfb23ddc08ad1b071fff50210 | [
"MIT"
] | null | null | null | dataset.py | kisom/aipnd-classifier | a361fc5f25402bbdfb23ddc08ad1b071fff50210 | [
"MIT"
] | null | null | null | dataset.py | kisom/aipnd-classifier | a361fc5f25402bbdfb23ddc08ad1b071fff50210 | [
"MIT"
] | null | null | null | """
dataset.py defines a container for a training dataset.
"""
import os
import torch
from torchvision import datasets, transforms
class Dataset:
"""
Dataset encapsulations training, validation, and testing datasets
from a single top-level directory.
"""
def __init__(self, data_dir, batchsize):
... | 32.986842 | 88 | 0.618668 | 269 | 2,507 | 5.6171 | 0.256506 | 0.027796 | 0.055592 | 0.073461 | 0.305096 | 0.243547 | 0.203839 | 0.203839 | 0.203839 | 0.203839 | 0 | 0.049587 | 0.276027 | 2,507 | 75 | 89 | 33.426667 | 0.78292 | 0.098125 | 0 | 0.169492 | 0 | 0 | 0.058495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.050847 | 0.016949 | 0.220339 | 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 | 0 | 0 | 1 | 0 |
3ebf6af93d750f46cb0ac8a35e125abd85daa7b2 | 710 | py | Python | mlps/core/data/cnvrtr/functions/IPTransferDivide.py | seculayer/automl-mlps | 80569909ec1c25db1ceafbb85b27d069d1a66aa3 | [
"Apache-2.0"
] | null | null | null | mlps/core/data/cnvrtr/functions/IPTransferDivide.py | seculayer/automl-mlps | 80569909ec1c25db1ceafbb85b27d069d1a66aa3 | [
"Apache-2.0"
] | 2 | 2022-03-31T07:39:59.000Z | 2022-03-31T07:40:18.000Z | mlps/core/data/cnvrtr/functions/IPTransferDivide.py | seculayer/AutoAPE-mlps | 80569909ec1c25db1ceafbb85b27d069d1a66aa3 | [
"Apache-2.0"
] | 1 | 2021-11-03T09:09:07.000Z | 2021-11-03T09:09:07.000Z | # -*- coding: utf-8 -*-
# Author : Manki Baek
# e-mail : bmg8551@seculayer.co.kr
# Powered by Seculayer © 2021 Service Model Team
from mlps.core.data.cnvrtr.ConvertAbstract import ConvertAbstract
class IPTransferDivide(ConvertAbstract):
def __init__(self, **kwargs):
super().__init__(**kwargs)
sel... | 24.482759 | 65 | 0.612676 | 87 | 710 | 4.793103 | 0.735632 | 0.014388 | 0.014388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045198 | 0.252113 | 710 | 28 | 66 | 25.357143 | 0.73823 | 0.214085 | 0 | 0 | 0 | 0 | 0.047187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.333333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3ec715aa850089a5f7b7b582922c73d2960606c8 | 778 | py | Python | tests/test_kubernetes_master.py | damoxc/charm-kubernetes-master | 624095b278e9f235a03d061132e9fdf029d45b71 | [
"Apache-2.0"
] | null | null | null | tests/test_kubernetes_master.py | damoxc/charm-kubernetes-master | 624095b278e9f235a03d061132e9fdf029d45b71 | [
"Apache-2.0"
] | null | null | null | tests/test_kubernetes_master.py | damoxc/charm-kubernetes-master | 624095b278e9f235a03d061132e9fdf029d45b71 | [
"Apache-2.0"
] | null | null | null | import pytest
from unittest import mock
from reactive import kubernetes_master
from charms.reactive import endpoint_from_flag, remove_state
from charmhelpers.core import hookenv
def patch_fixture(patch_target):
@pytest.fixture()
def _fixture():
with mock.patch(patch_target) as m:
yield m
... | 27.785714 | 76 | 0.767352 | 102 | 778 | 5.509804 | 0.401961 | 0.124555 | 0.074733 | 0.071174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156812 | 778 | 27 | 77 | 28.814815 | 0.856707 | 0 | 0 | 0 | 0 | 0 | 0.115681 | 0.07455 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0.190476 | false | 0 | 0.238095 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3ecbd115bcfdc5ce591f196d4fe1390310b89ddc | 576 | py | Python | example/runscripts/nhilton/run_batch_job.py | weegreenblobbie/pith-tool | 25708bd2354cc5d97eb0c0a0046ca4704e4ced0a | [
"MIT"
] | 2 | 2016-03-04T19:25:29.000Z | 2016-03-10T02:22:36.000Z | example/runscripts/nhilton/run_batch_job.py | weegreenblobbie/pith-tool | 25708bd2354cc5d97eb0c0a0046ca4704e4ced0a | [
"MIT"
] | 10 | 2016-03-01T03:23:17.000Z | 2017-04-27T00:37:09.000Z | example/runscripts/nhilton/run_batch_job.py | weegreenblobbie/pith-tool | 25708bd2354cc5d97eb0c0a0046ca4704e4ced0a | [
"MIT"
] | null | null | null | import argparse
from module_a.fun_1 import fun_1
from module_c.fun_4 import fun_4
from external_a.extra_fun import extra_fun
def main():
parser = argparse.ArgumentParser()
parser.add_argument(
'input_txt_file',
help = 'Some input file',
)
args = parser.parse_args()
print('Run... | 16 | 46 | 0.626736 | 82 | 576 | 4.085366 | 0.487805 | 0.035821 | 0.071642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013921 | 0.251736 | 576 | 35 | 47 | 16.457143 | 0.763341 | 0 | 0 | 0 | 0 | 0 | 0.168403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 0 | 0.238095 | 0.142857 | 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 | 0 | 1 | 0 |
3eccd3d6d89a4b4cb5aaf3d2889bce0836f4e413 | 395 | py | Python | DFS BFS/Leetcode 1436. Destination City.py | kaizhengny/LeetCode | 67d64536ab80f4966699fe7460d165f2a98d6a82 | [
"MIT"
] | 31 | 2020-06-23T00:40:04.000Z | 2022-01-08T11:06:24.000Z | DFS BFS/Leetcode 1436. Destination City.py | kaizhengny/LeetCode | 67d64536ab80f4966699fe7460d165f2a98d6a82 | [
"MIT"
] | null | null | null | DFS BFS/Leetcode 1436. Destination City.py | kaizhengny/LeetCode | 67d64536ab80f4966699fe7460d165f2a98d6a82 | [
"MIT"
] | 7 | 2020-04-30T08:46:03.000Z | 2021-08-28T16:25:54.000Z | class Solution:
def destCity(self, paths: List[List[str]]) -> str:
dic = collections.defaultdict(list)
for [x,y] in paths:
dic[x].append(y)
res = set()
stack = []
stack.append(paths[0][0])
while stack:
while dic[stack[-1]]:
... | 30.384615 | 54 | 0.473418 | 46 | 395 | 4.065217 | 0.521739 | 0.096257 | 0.096257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020325 | 0.377215 | 395 | 13 | 55 | 30.384615 | 0.739837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3eccf323bfafeef7616f6d78bb34226073a6758e | 3,039 | py | Python | i18n/listeners/proxyContainer/ListShouldContainSubListProxy.py | Rexmen/i18n | b615f2d1e06b58f4647f1b269fc37d7921bc5c4b | [
"MIT"
] | null | null | null | i18n/listeners/proxyContainer/ListShouldContainSubListProxy.py | Rexmen/i18n | b615f2d1e06b58f4647f1b269fc37d7921bc5c4b | [
"MIT"
] | null | null | null | i18n/listeners/proxyContainer/ListShouldContainSubListProxy.py | Rexmen/i18n | b615f2d1e06b58f4647f1b269fc37d7921bc5c4b | [
"MIT"
] | null | null | null | from .Proxy import Proxy
from robot.libraries.BuiltIn import BuiltIn
import sys
from robot.libraries.Screenshot import Screenshot
from robot.api import logger
import I18nListener as i18n
import ManyTranslations as ui
from robot.utils import unic
class ListShouldContainSubListProxy(Proxy):
def __init__(self, arg_fo... | 50.65 | 137 | 0.58901 | 374 | 3,039 | 4.513369 | 0.243316 | 0.061611 | 0.049763 | 0.028436 | 0.430095 | 0.347156 | 0.25237 | 0.182464 | 0.182464 | 0.150474 | 0 | 0.034163 | 0.325765 | 3,039 | 60 | 138 | 50.65 | 0.789653 | 0 | 0 | 0.153846 | 0 | 0 | 0.055592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.288462 | 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 | 0 | 0 | 1 | 0 |
3ecdb050826a3f9850819307adc5e13bc204f458 | 3,218 | py | Python | dl_bounds/src/experiments/exp_bad_minima_branchout.py | google/dl_bounds | b38fbd73f30d2fd8d1b57ad8706c07a223689365 | [
"Apache-2.0"
] | 12 | 2018-02-23T11:57:26.000Z | 2021-04-20T20:38:16.000Z | dl_bounds/src/experiments/exp_bad_minima_branchout.py | google/dl_bounds | b38fbd73f30d2fd8d1b57ad8706c07a223689365 | [
"Apache-2.0"
] | null | null | null | dl_bounds/src/experiments/exp_bad_minima_branchout.py | google/dl_bounds | b38fbd73f30d2fd8d1b57ad8706c07a223689365 | [
"Apache-2.0"
] | 7 | 2018-06-28T04:10:45.000Z | 2021-10-14T01:18:59.000Z | # coding=utf-8
# Copyright 2018 Google LLC
#
# 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 t... | 32.836735 | 75 | 0.724984 | 456 | 3,218 | 4.868421 | 0.390351 | 0.032432 | 0.027027 | 0.047297 | 0.093694 | 0.056757 | 0.043243 | 0.043243 | 0.043243 | 0 | 0 | 0.009549 | 0.186451 | 3,218 | 97 | 76 | 33.175258 | 0.838426 | 0.257924 | 0 | 0.103448 | 0 | 0 | 0.044346 | 0.009756 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.017241 | 0.172414 | 0 | 0.241379 | 0.017241 | 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 | 0 | 1 | 0 |
3ece59f5395837726a33f7c182a3a996e31afa97 | 699 | py | Python | World 1/If...Else/ex029 - Eletronic Radar.py | MiguelChichorro/PythonExercises | 3b2726e7d9ef92c1eb6b977088692c42a2a7b86e | [
"MIT"
] | 2 | 2021-04-23T19:18:06.000Z | 2021-05-15T17:45:21.000Z | World 1/If...Else/ex029 - Eletronic Radar.py | MiguelChichorro/PythonExercises | 3b2726e7d9ef92c1eb6b977088692c42a2a7b86e | [
"MIT"
] | 1 | 2021-05-14T00:29:23.000Z | 2021-05-14T00:29:23.000Z | World 1/If...Else/ex029 - Eletronic Radar.py | MiguelChichorro/PythonExercises | 3b2726e7d9ef92c1eb6b977088692c42a2a7b86e | [
"MIT"
] | 1 | 2021-05-14T00:19:33.000Z | 2021-05-14T00:19:33.000Z | from time import sleep
colors = {"clean": "\033[m",
"red": "\033[31m",
"green": "\033[32m",
"yellow": "\033[33m",
"blue": "\033[34m",
"purple": "\033[35m",
"cian": "\033[36m"}
v = float(input("Enter the car speed was: "))
tic = (v - 80) * 7
print("{}Loading...... | 38.833333 | 103 | 0.546495 | 98 | 699 | 3.897959 | 0.571429 | 0.143979 | 0.089005 | 0.120419 | 0.146597 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070909 | 0.213162 | 699 | 17 | 104 | 41.117647 | 0.623636 | 0 | 0 | 0 | 0 | 0 | 0.429185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0.235294 | 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 | 0 | 1 | 0 |
3ece62c6129ee74730b7e33194559a50dbbdff89 | 1,913 | py | Python | 687.longest-univalue-path.py | Lonitch/hackerRank | 84991b8340e725422bc47eec664532cc84a3447e | [
"MIT"
] | null | null | null | 687.longest-univalue-path.py | Lonitch/hackerRank | 84991b8340e725422bc47eec664532cc84a3447e | [
"MIT"
] | null | null | null | 687.longest-univalue-path.py | Lonitch/hackerRank | 84991b8340e725422bc47eec664532cc84a3447e | [
"MIT"
] | null | null | null | #
# @lc app=leetcode id=687 lang=python3
#
# [687] Longest Univalue Path
#
# https://leetcode.com/problems/longest-univalue-path/description/
#
# algorithms
# Easy (34.69%)
# Likes: 1312
# Dislikes: 351
# Total Accepted: 76.5K
# Total Submissions: 218.3K
# Testcase Example: '[5,4,5,1,1,5]'
#
# Given a binary tre... | 21.021978 | 78 | 0.504966 | 260 | 1,913 | 3.723077 | 0.396154 | 0.043388 | 0.009298 | 0.008264 | 0.066116 | 0.066116 | 0.053719 | 0 | 0 | 0 | 0 | 0.055927 | 0.373758 | 1,913 | 90 | 79 | 21.255556 | 0.74374 | 0.549399 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
3ecfb19dcb608f2b63fc8fd0aece69c83033985f | 6,085 | py | Python | scripts/wordnet.py | WladimirSidorenko/SentimentLexicon | 0d7203b7b7e3ca5d11759fdad656f775fa5d6e95 | [
"MIT"
] | 13 | 2016-08-03T18:46:02.000Z | 2022-02-22T22:30:19.000Z | scripts/wordnet.py | WladimirSidorenko/SentimentLexicon | 0d7203b7b7e3ca5d11759fdad656f775fa5d6e95 | [
"MIT"
] | 2 | 2019-10-22T13:03:48.000Z | 2019-12-05T21:41:36.000Z | scripts/wordnet.py | WladimirSidorenko/SentimentLexicon | 0d7203b7b7e3ca5d11759fdad656f775fa5d6e95 | [
"MIT"
] | 5 | 2019-12-25T13:53:18.000Z | 2020-06-05T20:47:31.000Z | #!/usr/bin/env python2.7
# -*- coding: utf-8; mode: python; -*-
"""
Module for reading and processing GemaNet files.
Constants:
POS - list of parts-of-speech present in GermaNet
RELTYPES - types of GermaNet relations
Classes:
Germanet - main class for processing GermaNet files
"""
#################################... | 35.794118 | 79 | 0.517173 | 694 | 6,085 | 4.425072 | 0.299712 | 0.021166 | 0.050798 | 0.032563 | 0.206447 | 0.164767 | 0.048193 | 0.032563 | 0.032563 | 0 | 0 | 0.011241 | 0.327527 | 6,085 | 169 | 80 | 36.005917 | 0.739247 | 0.307642 | 0 | 0 | 0 | 0 | 0.166968 | 0 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.022222 | false | 0 | 0.111111 | 0 | 0.144444 | 0.011111 | 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 | 0 | 1 | 0 |
3ed921fc020d2c520c2bb21c3fba179cbc45d373 | 2,836 | py | Python | ducky/asm/lexer.py | happz/ducky | 1c6a875ca5a7a9cc71836bad5b7e45cc398d42ad | [
"MIT"
] | 3 | 2015-04-25T18:25:37.000Z | 2017-08-31T20:52:29.000Z | ducky/asm/lexer.py | happz/ducky-legacy | 1c6a875ca5a7a9cc71836bad5b7e45cc398d42ad | [
"MIT"
] | 27 | 2015-01-06T21:59:22.000Z | 2016-11-12T07:31:39.000Z | ducky/asm/lexer.py | happz/ducky-legacy | 1c6a875ca5a7a9cc71836bad5b7e45cc398d42ad | [
"MIT"
] | 1 | 2017-05-14T18:52:34.000Z | 2017-05-14T18:52:34.000Z | import ply.lex
#
# Lexer setup
#
instructions = (
'NOP', 'INT', 'IPI', 'RETINT', 'CALL', 'RET', 'CLI', 'STI', 'HLT', 'RST', 'IDLE',
'PUSH', 'POP', 'INC', 'DEC', 'ADD', 'SUB', 'CMP', 'J', 'AND', 'OR', 'XOR', 'NOT',
'SHL', 'SHR', 'SHRS', 'LW', 'LS', 'LB', 'LI', 'LIU', 'LA', 'STW', 'STS', 'STB',
'MOV', 'SWP', 'MU... | 27.269231 | 112 | 0.563822 | 394 | 2,836 | 3.967005 | 0.532995 | 0.049264 | 0.023033 | 0.046065 | 0.159949 | 0.151631 | 0.114523 | 0.114523 | 0.114523 | 0.076136 | 0 | 0.006838 | 0.174894 | 2,836 | 103 | 113 | 27.533981 | 0.661111 | 0.052891 | 0 | 0 | 0 | 0.013699 | 0.256183 | 0.036176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082192 | false | 0 | 0.027397 | 0.027397 | 0.164384 | 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 | 0 | 0 | 1 | 0 |
3ed9a5ed8b96c7fface62084d850daafe13c098c | 1,478 | py | Python | flashcards/commands/sets.py | zergov/flashcards | 4d1b1c277585b95517ed6c00ceff7555c8c131eb | [
"MIT"
] | 21 | 2016-06-13T00:51:49.000Z | 2021-03-20T05:04:23.000Z | flashcards/commands/sets.py | zergov/flashcards | 4d1b1c277585b95517ed6c00ceff7555c8c131eb | [
"MIT"
] | 11 | 2016-06-10T10:17:57.000Z | 2020-01-30T15:14:35.000Z | flashcards/commands/sets.py | zergov/flashcards | 4d1b1c277585b95517ed6c00ceff7555c8c131eb | [
"MIT"
] | 4 | 2017-01-02T13:26:21.000Z | 2021-07-07T04:20:00.000Z | """
flashcards.commands.sets
~~~~~~~~~~~~~~~~~~~
Contains the commands and subcommands related to the sets resource.
"""
import os
import click
from flashcards import sets
from flashcards import storage
@click.group('sets')
def sets_group():
"""Command related to the StudySet object """
pass
@click.comma... | 25.482759 | 78 | 0.703654 | 196 | 1,478 | 5.19898 | 0.362245 | 0.054956 | 0.058881 | 0.052993 | 0.068695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17862 | 1,478 | 57 | 79 | 25.929825 | 0.839374 | 0.280108 | 0 | 0 | 0 | 0 | 0.199005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0.038462 | 0.153846 | 0 | 0.269231 | 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 | 0 | 0 | 1 | 0 |
3eda7f92aad073987eebca83a079837bb3553721 | 5,908 | py | Python | sdf/step.py | pschou/py-sdf | 0a269ed155d026e29429d76666fb63c95d2b4b2c | [
"MIT"
] | null | null | null | sdf/step.py | pschou/py-sdf | 0a269ed155d026e29429d76666fb63c95d2b4b2c | [
"MIT"
] | null | null | null | sdf/step.py | pschou/py-sdf | 0a269ed155d026e29429d76666fb63c95d2b4b2c | [
"MIT"
] | null | null | null | import numpy as np
import struct
import getpass
import struct
from datetime import datetime
edge_curve = {}
def _make_edge_curve(i,a,b,fp,v0,v1,s01):
a_str = struct.pack('<fff',a[0],a[1],a[2])
b_str = struct.pack('<fff',b[0],b[1],b[2])
f_val = a_str+b_str
r_val = b_str+a_str
if f_val in edge_curve... | 52.283186 | 164 | 0.488659 | 929 | 5,908 | 3.007535 | 0.158235 | 0.122763 | 0.100215 | 0.099857 | 0.419828 | 0.367215 | 0.307445 | 0.280601 | 0.271654 | 0.238726 | 0 | 0.071595 | 0.200914 | 5,908 | 112 | 165 | 52.75 | 0.520229 | 0.068382 | 0 | 0.067416 | 0 | 0 | 0.266035 | 0.068695 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022472 | false | 0.022472 | 0.05618 | 0 | 0.089888 | 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 | 0 | 0 | 1 | 0 |
3ee1169f26e39df8113aa1b6b00e7646bd86f543 | 6,100 | py | Python | ros/src/tl_detector/light_classification/tl_classifier.py | jkoloda/CarND-Capstone | 79ccd31930f5aab307a16db7b6c799a2ea54dc41 | [
"MIT"
] | null | null | null | ros/src/tl_detector/light_classification/tl_classifier.py | jkoloda/CarND-Capstone | 79ccd31930f5aab307a16db7b6c799a2ea54dc41 | [
"MIT"
] | null | null | null | ros/src/tl_detector/light_classification/tl_classifier.py | jkoloda/CarND-Capstone | 79ccd31930f5aab307a16db7b6c799a2ea54dc41 | [
"MIT"
] | null | null | null | from styx_msgs.msg import TrafficLight
import tensorflow as tf
import numpy as np
import rospy
import cv2
import os
MAX_IMAGE_WIDTH = 300
MAX_IMAGE_HEIGHT = 300
class TLClassifier(object):
"""Traffic light classifier based on a tensorflow model."""
def __init__(self, is_site=True):
"""Build, load a... | 32.972973 | 79 | 0.587869 | 697 | 6,100 | 4.949785 | 0.288379 | 0.031304 | 0.041739 | 0.030435 | 0.114783 | 0.102609 | 0.102609 | 0.063768 | 0.027246 | 0.027246 | 0 | 0.008264 | 0.325574 | 6,100 | 184 | 80 | 33.152174 | 0.830335 | 0.267541 | 0 | 0.069767 | 0 | 0 | 0.052242 | 0.024396 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.081395 | 0 | 0.22093 | 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 | 0 | 0 | 1 | 0 |
3ee194cecfeab3512df97384ab2ebd0feb3a1a32 | 3,554 | py | Python | esp.py | dries007/MicroPythonUtils | fba10989713f85ce4afa598c550737720df24648 | [
"MIT"
] | null | null | null | esp.py | dries007/MicroPythonUtils | fba10989713f85ce4afa598c550737720df24648 | [
"MIT"
] | null | null | null | esp.py | dries007/MicroPythonUtils | fba10989713f85ce4afa598c550737720df24648 | [
"MIT"
] | null | null | null | import os
import serial
import time
import binascii
import textwrap
import re
from wifi import WIFI_SSID, WIFI_PASS
def ctrl(key):
# Thank you https://github.com/zeevro/esp_file_sender/
return chr(ord(key.upper()) - ord('A') + 1)
class Esp:
def __init__(self, port, baudrate):
super().__init__()... | 32.018018 | 153 | 0.565841 | 504 | 3,554 | 3.884921 | 0.281746 | 0.020429 | 0.040858 | 0.035751 | 0.183861 | 0.139939 | 0.102145 | 0.083759 | 0.067416 | 0.029622 | 0 | 0.011499 | 0.241418 | 3,554 | 110 | 154 | 32.309091 | 0.714763 | 0.195273 | 0 | 0.058824 | 0 | 0.014706 | 0.181914 | 0.007389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0.044118 | 0.191176 | 0.014706 | 0.367647 | 0.014706 | 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 | 0 | 1 | 0 |
3ee1be975102fb088be8688d19317a0aa2d3e773 | 3,909 | py | Python | dev/tools/leveleditor/pandac/libpandaodeModules.py | CrankySupertoon01/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2021-02-13T22:40:50.000Z | 2021-02-13T22:40:50.000Z | dev/tools/leveleditor/pandac/libpandaodeModules.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2018-07-28T20:07:04.000Z | 2018-07-30T18:28:34.000Z | dev/tools/leveleditor/pandac/libpandaodeModules.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 2 | 2019-12-02T01:39:10.000Z | 2021-02-13T22:41:00.000Z | from extension_native_helpers import *
Dtool_PreloadDLL('libpandaode')
from libpandaode import *
from extension_native_helpers import *
Dtool_PreloadDLL('libpanda')
from libpanda import *
def convert(self):
if self.getClass() == OdeGeom.GCSphere:
return self.convertToSphere()
elif self.getClass() == Od... | 27.921429 | 53 | 0.724738 | 399 | 3,909 | 7.037594 | 0.210526 | 0.096154 | 0.081197 | 0.081909 | 0.452991 | 0.445869 | 0.445869 | 0.429131 | 0.429131 | 0.429131 | 0 | 0.006828 | 0.175748 | 3,909 | 139 | 54 | 28.122302 | 0.86468 | 0 | 0 | 0.431193 | 0 | 0 | 0.011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.091743 | false | 0 | 0.091743 | 0.036697 | 0.449541 | 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 | 0 | 0 | 1 | 0 |
3ee350f95efe4a8c2344a53f97be58f2e3f0dcc2 | 1,087 | py | Python | view_note.py | pushkar-anand/make-a-note | ca129dd1df1b62faad0c451e0818742bb1b1bc08 | [
"Apache-2.0"
] | 1 | 2018-10-02T07:09:29.000Z | 2018-10-02T07:09:29.000Z | view_note.py | pushkar-anand/make-a-note | ca129dd1df1b62faad0c451e0818742bb1b1bc08 | [
"Apache-2.0"
] | 3 | 2018-10-01T13:40:13.000Z | 2019-05-02T23:17:52.000Z | view_note.py | pushkar-anand/make-a-note | ca129dd1df1b62faad0c451e0818742bb1b1bc08 | [
"Apache-2.0"
] | 6 | 2018-10-02T07:09:30.000Z | 2019-06-09T17:09:49.000Z | import gi
import json
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class NewNoteWindow(Gtk.Window):
def __init__(self, nid):
Gtk.Window.__init__(self, title="Note")
with open('notes.json') as data_file:
data = json.load(data_file)
notes = data["notes"]
... | 30.194444 | 74 | 0.589696 | 146 | 1,087 | 4.260274 | 0.431507 | 0.101286 | 0.057878 | 0.054662 | 0.163987 | 0.096463 | 0.096463 | 0.096463 | 0 | 0 | 0 | 0.006386 | 0.279669 | 1,087 | 35 | 75 | 31.057143 | 0.787995 | 0.059798 | 0 | 0.076923 | 0 | 0 | 0.080313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.192308 | 0.038462 | 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 | 0 | 1 | 0 |
3ee37804938d5d76c8a9bfe4608d76c629788f81 | 4,588 | py | Python | homeserver/voice_control/voice_controller.py | miikama/home-server | 07a9dbb9438e3c316c37cb52ca3c709d0b059af1 | [
"MIT"
] | null | null | null | homeserver/voice_control/voice_controller.py | miikama/home-server | 07a9dbb9438e3c316c37cb52ca3c709d0b059af1 | [
"MIT"
] | 1 | 2019-11-30T10:59:28.000Z | 2019-11-30T10:59:28.000Z | homeserver/voice_control/voice_controller.py | miikama/home-server | 07a9dbb9438e3c316c37cb52ca3c709d0b059af1 | [
"MIT"
] | null | null | null |
from homeserver.voice_control.google_speech import GoogleVoiceRecognition
from homeserver.voice_control.snowboy.snowboydecoder import HotwordDetector, play_audio_file
#make the voicecontrol follow the device interface structure for control
from homeserver.interface import DeviceInterface, DeviceTarget
# import the ... | 24.275132 | 92 | 0.735833 | 577 | 4,588 | 5.691508 | 0.317158 | 0.023752 | 0.007308 | 0.015834 | 0.010962 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004231 | 0.175676 | 4,588 | 188 | 93 | 24.404255 | 0.864093 | 0.209024 | 0 | 0.067416 | 0 | 0 | 0.070641 | 0.007347 | 0 | 0 | 0 | 0.005319 | 0 | 1 | 0.123596 | false | 0 | 0.078652 | 0.011236 | 0.247191 | 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 | 0 | 0 | 1 | 0 |
3ee8fa63da0e0bfe5eb55277fd9f507afe7bfefe | 1,528 | py | Python | CondTools/SiPixel/test/SiPixelCPEGenericErrorParmReader_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 13 | 2015-11-30T15:49:45.000Z | 2022-02-08T16:11:30.000Z | CondTools/SiPixel/test/SiPixelCPEGenericErrorParmReader_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 640 | 2015-02-11T18:55:47.000Z | 2022-03-31T14:12:23.000Z | CondTools/SiPixel/test/SiPixelCPEGenericErrorParmReader_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 51 | 2015-08-11T21:01:40.000Z | 2022-03-30T07:31:34.000Z | import FWCore.ParameterSet.Config as cms
process = cms.Process("SiPixelCPEGenericErrorParmReaderTest")
process.load("CondCore.DBCommon.CondDBSetup_cfi")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.source = cms.Source("EmptySource")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked... | 40.210526 | 103 | 0.620419 | 130 | 1,528 | 7.246154 | 0.561538 | 0.063694 | 0.036093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00724 | 0.276832 | 1,528 | 37 | 104 | 41.297297 | 0.845249 | 0.116492 | 0 | 0 | 0 | 0 | 0.231626 | 0.193022 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0.038462 | 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 | 0 | 1 | 0 |
3eec09187c14d47ed9948ca3461f050626849937 | 31,103 | py | Python | carcassonne.py | pierre-dejoue/carcassonne | 046c39fd61f17072e6d75a48ef65afa7be82a973 | [
"MIT"
] | null | null | null | carcassonne.py | pierre-dejoue/carcassonne | 046c39fd61f17072e6d75a48ef65afa7be82a973 | [
"MIT"
] | null | null | null | carcassonne.py | pierre-dejoue/carcassonne | 046c39fd61f17072e6d75a48ef65afa7be82a973 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse
import boundary
import functools
import graphics
import itertools
import json
import operator
import os.path
import random
import re
import secrets
import sys
import traceback
from boundary import Boundary
from boundary import Domain
from boundary import Orientation
from boundary... | 36.764775 | 230 | 0.635051 | 3,985 | 31,103 | 4.727227 | 0.118444 | 0.012634 | 0.010086 | 0.00637 | 0.266907 | 0.179106 | 0.115777 | 0.074796 | 0.064232 | 0.037796 | 0 | 0.008826 | 0.271453 | 31,103 | 845 | 231 | 36.808284 | 0.822507 | 0.070347 | 0 | 0.197115 | 0 | 0 | 0.070754 | 0.004027 | 0 | 0 | 0 | 0 | 0.081731 | 1 | 0.125 | false | 0.001603 | 0.030449 | 0.028846 | 0.267628 | 0.030449 | 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 | 0 | 1 | 0 |
3eecad1535b44d09acd50ef4de76145c633066a1 | 2,890 | py | Python | project/classification/posture_classification/ops/data_processor.py | jh-lau/solid_ai_waddle | b966f2c6e8b6b48c62064d58461692231aa2116b | [
"MIT"
] | null | null | null | project/classification/posture_classification/ops/data_processor.py | jh-lau/solid_ai_waddle | b966f2c6e8b6b48c62064d58461692231aa2116b | [
"MIT"
] | null | null | null | project/classification/posture_classification/ops/data_processor.py | jh-lau/solid_ai_waddle | b966f2c6e8b6b48c62064d58461692231aa2116b | [
"MIT"
] | null | null | null | """
@Author : liujianhan
@Date : 2018/6/2 上午11:59
@Project : posture_classification
@FileName : data_processor.py
@Description : Placeholder
"""
import os
from typing import Tuple
import pandas as pd
from keras.applications.resnet50 import preprocess_input
from keras.preprocessing.ima... | 34.404762 | 80 | 0.664014 | 367 | 2,890 | 4.861035 | 0.275204 | 0.073991 | 0.075673 | 0.057175 | 0.447309 | 0.447309 | 0.339686 | 0.201794 | 0.201794 | 0.201794 | 0 | 0.012374 | 0.244983 | 2,890 | 83 | 81 | 34.819277 | 0.805225 | 0.124913 | 0 | 0.254237 | 0 | 0 | 0.064019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.118644 | 0 | 0.152542 | 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 | 0 | 0 | 1 | 0 |
3eedf65adf2ccf1a08d61e0dec0f3caf4fa9559f | 985 | py | Python | twitch_the_universim_chat/views.py | gaelfargeas/twitch_universim_streamer_chat | 4773bf30e6aab3d9f950ba027e7aa3e51278428c | [
"BSD-3-Clause"
] | null | null | null | twitch_the_universim_chat/views.py | gaelfargeas/twitch_universim_streamer_chat | 4773bf30e6aab3d9f950ba027e7aa3e51278428c | [
"BSD-3-Clause"
] | null | null | null | twitch_the_universim_chat/views.py | gaelfargeas/twitch_universim_streamer_chat | 4773bf30e6aab3d9f950ba027e7aa3e51278428c | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import render, redirect
from django.utils.datastructures import MultiValueDictKeyError
def index(request):
return render(request, "chat.html", {})
def logged(request):
try :
bot_name = request.POST["bot_name"]
streamer_name = request.POST["streamer_name"]
stream_... | 27.361111 | 62 | 0.631472 | 103 | 985 | 5.883495 | 0.330097 | 0.046205 | 0.062706 | 0.075908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260914 | 985 | 36 | 63 | 27.361111 | 0.832418 | 0 | 0 | 0.071429 | 0 | 0 | 0.21501 | 0.097363 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0.035714 | 0.392857 | 0.071429 | 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 | 0 | 1 | 0 |
3eef9508412716c264b3b444bb752f75ff044dba | 1,480 | py | Python | numba/exttypes/tests/test_extension_attributes.py | liuzhenhai/numba | 855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf | [
"BSD-2-Clause"
] | 1 | 2015-01-29T06:52:36.000Z | 2015-01-29T06:52:36.000Z | numba/exttypes/tests/test_extension_attributes.py | shiquanwang/numba | a41c85fdd7d6abf8ea1ebe9116939ddc2217193b | [
"BSD-2-Clause"
] | null | null | null | numba/exttypes/tests/test_extension_attributes.py | shiquanwang/numba | a41c85fdd7d6abf8ea1ebe9116939ddc2217193b | [
"BSD-2-Clause"
] | null | null | null | """
Test class attributes.
"""
import numba
from numba import *
from numba.testing.test_support import parametrize, main
def make_base(compiler):
@compiler
class Base(object):
value1 = double
value2 = int_
@void(int_, double)
def __init__(self, value1, value2):
se... | 20.555556 | 73 | 0.551351 | 161 | 1,480 | 4.888199 | 0.273292 | 0.050826 | 0.025413 | 0.034308 | 0.35324 | 0.07878 | 0.07878 | 0 | 0 | 0 | 0 | 0.045167 | 0.252027 | 1,480 | 71 | 74 | 20.84507 | 0.665763 | 0.145946 | 0 | 0.181818 | 0 | 0 | 0.00639 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0 | 0.068182 | 0.022727 | 0.431818 | 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 | 0 | 0 | 1 | 0 |
3ef2102b67623964df7f8e5b43fb31855632c83c | 1,386 | py | Python | tests/plugins/pull/test_poll.py | HazardDede/pnp | 469ca17254dcca1a4eefe0dc5ac574692a9ab38e | [
"MIT"
] | 4 | 2018-10-07T11:32:00.000Z | 2019-04-23T09:34:23.000Z | tests/plugins/pull/test_poll.py | HazardDede/pnp | 469ca17254dcca1a4eefe0dc5ac574692a9ab38e | [
"MIT"
] | null | null | null | tests/plugins/pull/test_poll.py | HazardDede/pnp | 469ca17254dcca1a4eefe0dc5ac574692a9ab38e | [
"MIT"
] | 1 | 2019-08-12T19:56:10.000Z | 2019-08-12T19:56:10.000Z | import time
from datetime import datetime
import pytest
from pnp.plugins.pull import StopPollingError
from pnp.plugins.pull.simple import CustomPolling
from . import make_runner, start_runner
@pytest.mark.asyncio
async def test_poll():
events = []
def callback(plugin, payload):
events.append(payload... | 24.75 | 110 | 0.683983 | 169 | 1,386 | 5.455621 | 0.325444 | 0.032538 | 0.035792 | 0.100868 | 0.443601 | 0.403471 | 0.403471 | 0.331887 | 0.121475 | 0.121475 | 0 | 0.008123 | 0.200577 | 1,386 | 55 | 111 | 25.2 | 0.824007 | 0 | 0 | 0.333333 | 0 | 0 | 0.02886 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 1 | 0.153846 | false | 0.025641 | 0.179487 | 0.025641 | 0.358974 | 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 | 0 | 0 | 1 | 0 |
3ef60e720154164bc72b950006e65765140586cd | 860 | py | Python | mlib/web/shadow_lib.py | mgroth0/mlib | 0442ed51eab417b6972f885605afd351892a3a9a | [
"MIT"
] | 1 | 2020-06-16T17:26:45.000Z | 2020-06-16T17:26:45.000Z | mlib/web/shadow_lib.py | mgroth0/mlib | 0442ed51eab417b6972f885605afd351892a3a9a | [
"MIT"
] | null | null | null | mlib/web/shadow_lib.py | mgroth0/mlib | 0442ed51eab417b6972f885605afd351892a3a9a | [
"MIT"
] | null | null | null | from mlib.proj.struct import Project
from mlib.web.html import HTMLPage, Hyperlink, HTMLImage
SKIPPED_SOURCE = [
'@log_invokation',
'global DOC',
'@staticmethod'
]
def scipy_doc_url(funname): return f'https://docs.scipy.org/doc/scipy/reference/generated/{funname}.html'
FUN_LINKS = {
'bilinear': 'https... | 27.741935 | 105 | 0.676744 | 110 | 860 | 5.163636 | 0.5 | 0.077465 | 0.038732 | 0.059859 | 0.151408 | 0.151408 | 0.151408 | 0.151408 | 0 | 0 | 0 | 0.001406 | 0.173256 | 860 | 30 | 106 | 28.666667 | 0.797468 | 0 | 0 | 0 | 0 | 0.04 | 0.337209 | 0.061628 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0.08 | 0.2 | 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 | 0 | 0 | 1 | 0 |
3efa82e7a5854f87ab9bf7282fade9ac7afa8bff | 3,607 | py | Python | markdown-journal.py | fire-wally/markdown-notebook | 8fe22f645d6aca65f5f02cf4a67993e809795396 | [
"Apache-2.0"
] | null | null | null | markdown-journal.py | fire-wally/markdown-notebook | 8fe22f645d6aca65f5f02cf4a67993e809795396 | [
"Apache-2.0"
] | null | null | null | markdown-journal.py | fire-wally/markdown-notebook | 8fe22f645d6aca65f5f02cf4a67993e809795396 | [
"Apache-2.0"
] | null | null | null | #!/usr/local/bin/python3
import sys
import os
import shutil
import markdown
class Page(object):
def __init__(self, filename, mtime):
self.file_name = filename
self.modified_at = mtime
def main(argv):
if len(argv) != 3:
print("USAGE: markdown-journal.py source-dir output-dir")
r... | 33.71028 | 108 | 0.640144 | 512 | 3,607 | 4.308594 | 0.230469 | 0.032638 | 0.036265 | 0.025385 | 0.329102 | 0.184044 | 0.119674 | 0.119674 | 0.119674 | 0.051677 | 0 | 0.003975 | 0.232881 | 3,607 | 107 | 109 | 33.71028 | 0.793278 | 0.065151 | 0 | 0.154762 | 0 | 0.02381 | 0.133671 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.22619 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3efdff5f0d2a7d90af9b5f718370bdc45e63e120 | 5,829 | py | Python | py/src/api_custo.py | Ennoriel/veille-pedagogique | 63f368ad1faee2f6fca86fff68ccccc7ac89f81b | [
"FSFAP"
] | null | null | null | py/src/api_custo.py | Ennoriel/veille-pedagogique | 63f368ad1faee2f6fca86fff68ccccc7ac89f81b | [
"FSFAP"
] | null | null | null | py/src/api_custo.py | Ennoriel/veille-pedagogique | 63f368ad1faee2f6fca86fff68ccccc7ac89f81b | [
"FSFAP"
] | null | null | null | from itertools import chain, combinations
from re import search
from urllib.parse import urlparse
from pymongo.errors import BulkWriteError
from tweepy import OAuthHandler, API
from yaml import load as yaml_load, BaseLoader
from objects.article import Article
from objects.hashtag import Hashtag
from objects.tweet imp... | 31.33871 | 111 | 0.731515 | 828 | 5,829 | 4.977053 | 0.262077 | 0.026693 | 0.020383 | 0.027178 | 0.174472 | 0.099248 | 0.089784 | 0.055326 | 0.055326 | 0.055326 | 0 | 0.002299 | 0.179276 | 5,829 | 186 | 112 | 31.33871 | 0.859114 | 0.252016 | 0 | 0.115385 | 0 | 0 | 0.053187 | 0.007263 | 0 | 0 | 0 | 0.005376 | 0 | 1 | 0.067308 | false | 0 | 0.144231 | 0 | 0.259615 | 0.028846 | 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 | 0 | 1 | 0 |
4108814557aaf45fa9bd2469a548f631f9648812 | 29,383 | py | Python | pauxy/walkers/thermal.py | pauxy-qmc/pauxy | 1da80284284769b59361c73cfa3c2d914c74a73f | [
"Apache-2.0"
] | 16 | 2020-08-05T17:17:17.000Z | 2022-03-18T04:06:18.000Z | pauxy/walkers/thermal.py | pauxy-qmc/pauxy | 1da80284284769b59361c73cfa3c2d914c74a73f | [
"Apache-2.0"
] | 4 | 2020-05-17T21:28:20.000Z | 2021-04-22T18:05:50.000Z | pauxy/walkers/thermal.py | pauxy-qmc/pauxy | 1da80284284769b59361c73cfa3c2d914c74a73f | [
"Apache-2.0"
] | 5 | 2020-05-18T01:03:18.000Z | 2021-04-13T15:36:29.000Z | import copy
import cmath
import numpy
import scipy.linalg
from pauxy.estimators.thermal import greens_function, one_rdm_from_G, particle_number
from pauxy.estimators.mixed import local_energy
from pauxy.walkers.stack import PropagatorStack
from pauxy.walkers.walker import Walker
from pauxy.utils.linalg import regularis... | 41.678014 | 130 | 0.510499 | 3,919 | 29,383 | 3.755295 | 0.089053 | 0.038527 | 0.028267 | 0.018074 | 0.712713 | 0.660121 | 0.612965 | 0.580281 | 0.566963 | 0.551063 | 0 | 0.028552 | 0.342035 | 29,383 | 704 | 131 | 41.737216 | 0.732685 | 0.143961 | 0 | 0.563265 | 0 | 0 | 0.03748 | 0.00084 | 0 | 0 | 0 | 0.00142 | 0.018367 | 1 | 0.02449 | false | 0 | 0.034694 | 0 | 0.077551 | 0.022449 | 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 | 0 | 1 | 0 |
4108de14460ec5d4d27312f76596c4d68c7d284a | 1,607 | py | Python | schedules_tools/batches/utils.py | RedHat-Eng-PGM/python-schedules-tools | 6166cdd0e5f7c08fba1c50f113ae6a6103460f9b | [
"MIT"
] | 1 | 2019-05-06T21:10:35.000Z | 2019-05-06T21:10:35.000Z | schedules_tools/batches/utils.py | RedHat-Eng-PGM/schedules-tools | fd96a9e1df4e53b8da3048c013af0cd2c290f9b5 | [
"MIT"
] | 5 | 2019-05-06T21:25:38.000Z | 2021-02-05T20:54:30.000Z | schedules_tools/batches/utils.py | RedHat-Eng-PGM/schedules-tools | fd96a9e1df4e53b8da3048c013af0cd2c290f9b5 | [
"MIT"
] | 1 | 2019-10-31T01:51:41.000Z | 2019-10-31T01:51:41.000Z | from collections import OrderedDict
import os
import re
from schedules_tools.schedule_handlers.smart_sheet import ScheduleHandler_smartsheet
import yaml
DEFAULT_TEMPLATE_DIR = os.path.join(os.path.dirname(__file__), 'templates')
DEPENDENCY_REGEX = re.compile(r'^{(?P<to>predecessor|\d+)}(?P<type>[F|S]+)?'
... | 31.509804 | 88 | 0.645924 | 193 | 1,607 | 5.15544 | 0.388601 | 0.055276 | 0.036181 | 0.030151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22962 | 1,607 | 50 | 89 | 32.14 | 0.803716 | 0 | 0 | 0 | 0 | 0 | 0.191039 | 0.065339 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.135135 | 0 | 0.243243 | 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 | 0 | 0 | 1 | 0 |
41122da858230ceb4c96eb4a8c7375d59b77bc28 | 8,148 | py | Python | kotti/testing.py | mete0r/Kotti | e89103cc57d5d2af8d60eb8208ae9d04c068f6e7 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | kotti/testing.py | mete0r/Kotti | e89103cc57d5d2af8d60eb8208ae9d04c068f6e7 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | kotti/testing.py | mete0r/Kotti | e89103cc57d5d2af8d60eb8208ae9d04c068f6e7 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Inheritance Diagram
-------------------
.. inheritance-diagram:: kotti.testing
"""
import os
from os.path import join, dirname
from unittest import TestCase
from pytest import mark
from pyramid import testing
from pyramid.events import NewResponse
from pyramid.security import ALL_PERMISS... | 26.627451 | 78 | 0.676976 | 934 | 8,148 | 5.729122 | 0.30621 | 0.021865 | 0.022426 | 0.010092 | 0.151 | 0.084844 | 0.072136 | 0.060923 | 0.04971 | 0.027285 | 0 | 0.003426 | 0.211831 | 8,148 | 305 | 79 | 26.714754 | 0.829804 | 0.100884 | 0 | 0.149254 | 0 | 0 | 0.16863 | 0.043288 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144279 | false | 0.019901 | 0.169154 | 0.029851 | 0.452736 | 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 | 0 | 0 | 1 | 0 |
4113d55c3875b03d32cbc830fabbfbb2cdd11046 | 694 | py | Python | leetcode/trees/level-order.py | vtemian/interviews-prep | ddef96b5ecc699a590376a892a804c143fe18034 | [
"Apache-2.0"
] | 8 | 2019-05-14T12:50:29.000Z | 2022-03-01T09:08:27.000Z | leetcode/trees/level-order.py | vtemian/interviews-prep | ddef96b5ecc699a590376a892a804c143fe18034 | [
"Apache-2.0"
] | 46 | 2019-03-24T20:59:29.000Z | 2019-04-09T16:28:43.000Z | leetcode/trees/level-order.py | vtemian/interviews-prep | ddef96b5ecc699a590376a892a804c143fe18034 | [
"Apache-2.0"
] | 1 | 2022-01-28T12:46:29.000Z | 2022-01-28T12:46:29.000Z | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def levelOrder(self, root: TreeNode) -> List[List[int]]:
if not root:
return []
result = []
queue = ... | 22.387097 | 60 | 0.487032 | 77 | 694 | 4.337662 | 0.428571 | 0.08982 | 0.08982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009479 | 0.391931 | 694 | 30 | 61 | 23.133333 | 0.781991 | 0.214697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
411e7327dfc8f59a57e3065bd00dbadcb1b1f18c | 302 | py | Python | mkdir.py | FunsomMars/Timg | 216c994fd0b100996e72f4cda4eace369c8452ef | [
"MIT"
] | null | null | null | mkdir.py | FunsomMars/Timg | 216c994fd0b100996e72f4cda4eace369c8452ef | [
"MIT"
] | null | null | null | mkdir.py | FunsomMars/Timg | 216c994fd0b100996e72f4cda4eace369c8452ef | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2019-07-23 22:47
# @Author : Simon Meng
# @Site :
# @File : mkdir.py
# @Software: PyCharm
import os
# Make a folder under the current path
def mkdir(path):
folder = os.path.exists(path)
if not folder:
os.makedirs(path)
| 17.764706 | 38 | 0.609272 | 45 | 302 | 4.088889 | 0.8 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06087 | 0.238411 | 302 | 16 | 39 | 18.875 | 0.73913 | 0.586093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
411fa137c5df36c387a70295ace27f0afc3352fe | 2,183 | py | Python | scripts/create-opencl-headers.py | molkoback/icemet-server | 9d7a29b38c711534923952d598fc37efff5db154 | [
"MIT"
] | null | null | null | scripts/create-opencl-headers.py | molkoback/icemet-server | 9d7a29b38c711534923952d598fc37efff5db154 | [
"MIT"
] | null | null | null | scripts/create-opencl-headers.py | molkoback/icemet-server | 9d7a29b38c711534923952d598fc37efff5db154 | [
"MIT"
] | 1 | 2020-09-16T15:33:23.000Z | 2020-09-16T15:33:23.000Z | import os
import sys
header_file_fmt = "{name}_ocl.hpp"
header_string = (
"#ifndef {definition}_OCL_HPP\n"
"#define {definition}_OCL_HPP\n"
"#include <opencv2/core/ocl.hpp>\n"
"const cv::ocl::ProgramSource& {module}_{name}_ocl() {{\n"
"static cv::ocl::ProgramSource source(\"{module}\", \"{name}\", \"{kernel}\", \"\");... | 27.987179 | 87 | 0.685295 | 322 | 2,183 | 4.456522 | 0.263975 | 0.04878 | 0.014634 | 0.023693 | 0.171429 | 0.110105 | 0.110105 | 0.05993 | 0 | 0 | 0 | 0.014815 | 0.134219 | 2,183 | 77 | 88 | 28.350649 | 0.744444 | 0 | 0 | 0.144928 | 0 | 0 | 0.148878 | 0.061383 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.028986 | 0 | 0.202899 | 0.028986 | 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 | 0 | 1 | 0 |
412189bdca83add7a6eee8aca45c35007f4cbdb4 | 256 | py | Python | models/mail_message.py | billhepeng/wx_tools | 64369531bd76a935eff547c50ff68150a240849d | [
"Apache-2.0"
] | 1 | 2021-01-19T02:49:14.000Z | 2021-01-19T02:49:14.000Z | models/mail_message.py | billhepeng/wx_tools | 64369531bd76a935eff547c50ff68150a240849d | [
"Apache-2.0"
] | null | null | null | models/mail_message.py | billhepeng/wx_tools | 64369531bd76a935eff547c50ff68150a240849d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
class MailMessage(models.Model):
_inherit = 'mail.message'
weixin_id = fields.Char('微信ID', required=False)
| 21.333333 | 74 | 0.703125 | 35 | 256 | 5.085714 | 0.914286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004762 | 0.179688 | 256 | 11 | 75 | 23.272727 | 0.842857 | 0.367188 | 0 | 0 | 0 | 0 | 0.101266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4122f41a65d52a80ce0e4e61b3b52bf36d00d875 | 3,143 | py | Python | concerned-coyotes/earlyinternet/news/tests.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 40 | 2020-08-02T07:38:22.000Z | 2021-07-26T01:46:50.000Z | concerned-coyotes/earlyinternet/news/tests.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 134 | 2020-07-31T12:15:45.000Z | 2020-12-13T04:42:19.000Z | concerned-coyotes/earlyinternet/news/tests.py | Vthechamp22/summer-code-jam-2021 | 0a8bf1f22f6c73300891fd779da36efd8e1304c1 | [
"MIT"
] | 101 | 2020-07-31T12:00:47.000Z | 2021-11-01T09:06:58.000Z | import datetime
import random
from django.test import TestCase
from django.utils.dateparse import parse_datetime
from .models import Article
class ArticleTestCase(TestCase):
def setUp(self) -> None:
self.article = Article.objects.create(
source="HackerNews",
author="Guido van Ro... | 39.2875 | 118 | 0.598473 | 340 | 3,143 | 5.464706 | 0.423529 | 0.072659 | 0.043057 | 0.029064 | 0.097955 | 0.03014 | 0.03014 | 0 | 0 | 0 | 0 | 0.046717 | 0.278078 | 3,143 | 79 | 119 | 39.78481 | 0.772146 | 0.054407 | 0 | 0.033333 | 0 | 0.016667 | 0.272976 | 0.017766 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.066667 | false | 0 | 0.083333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
412b47d093592288c113a1eac3194f68134c0446 | 11,406 | py | Python | data/transforms.py | raja21068/Federated-Learning-For-Medical-Images | aa30ce9d8106fd4039188fc56fa99bdc9f46f0e0 | [
"MIT"
] | 27 | 2021-03-05T05:56:35.000Z | 2022-03-30T03:15:43.000Z | data/transforms.py | DiahannWu/FL-MRCM | 946c981a044452333791b7da26609c0874da292c | [
"MIT"
] | 8 | 2021-03-08T10:41:19.000Z | 2021-12-30T04:53:21.000Z | data/transforms.py | DiahannWu/FL-MRCM | 946c981a044452333791b7da26609c0874da292c | [
"MIT"
] | 5 | 2021-03-28T14:02:30.000Z | 2022-01-11T08:31:42.000Z | """
Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
"""
import numpy as np
import torch
def to_tensor(data):
"""
Convert numpy array to PyTorch tensor. For complex arrays, the real and im... | 29.703125 | 115 | 0.608276 | 1,605 | 11,406 | 4.287227 | 0.135826 | 0.054353 | 0.037059 | 0.038657 | 0.580003 | 0.552681 | 0.515332 | 0.475658 | 0.471152 | 0.456765 | 0 | 0.018403 | 0.280642 | 11,406 | 383 | 116 | 29.780679 | 0.820232 | 0.521831 | 0 | 0.268293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081301 | 1 | 0.170732 | false | 0 | 0.01626 | 0 | 0.365854 | 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 | 0 | 0 | 1 | 0 |
f5aba0aa3a1bda30d3d5e14338fb55d72ab3b386 | 1,883 | py | Python | b5/lib/state.py | team23/b5 | 90f45e86966eeb7a259667bbe06a5555648d012d | [
"BSD-3-Clause"
] | 14 | 2018-11-24T23:33:35.000Z | 2022-02-04T23:46:49.000Z | b5/lib/state.py | team23/b5 | 90f45e86966eeb7a259667bbe06a5555648d012d | [
"BSD-3-Clause"
] | 3 | 2020-02-10T11:05:11.000Z | 2020-03-04T08:42:11.000Z | b5/lib/state.py | team23/b5 | 90f45e86966eeb7a259667bbe06a5555648d012d | [
"BSD-3-Clause"
] | 1 | 2020-02-11T19:45:13.000Z | 2020-02-11T19:45:13.000Z | import os
import tempfile
from types import TracebackType
from typing import Any, BinaryIO, Optional, TextIO, Type, Union
import yaml
class StoredState:
def __init__(self, state: "State") -> None:
self.state = state
if self.state.stored_name is not None:
raise RuntimeError('You may on... | 28.969231 | 115 | 0.60701 | 225 | 1,883 | 4.933333 | 0.368889 | 0.063063 | 0.063063 | 0.051351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001476 | 0.280404 | 1,883 | 64 | 116 | 29.421875 | 0.817712 | 0 | 0 | 0 | 0 | 0 | 0.088157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.1 | 0.08 | 0.46 | 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 | 0 | 0 | 1 | 0 |
f5ac35c88920717e7f434d347b3a61d75f1b9fd5 | 2,711 | py | Python | lines_ext.py | subhrajit02/handwritten-digit-recognision | 239a4bd1283393865d2655b91ad4674ce8450882 | [
"MIT"
] | null | null | null | lines_ext.py | subhrajit02/handwritten-digit-recognision | 239a4bd1283393865d2655b91ad4674ce8450882 | [
"MIT"
] | null | null | null | lines_ext.py | subhrajit02/handwritten-digit-recognision | 239a4bd1283393865d2655b91ad4674ce8450882 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
def rem_multi_lines(lines, thresh):
"""
to remove the multiple lines with close proximity
:param lines: initial list with all the lines(multiple in place of singular)
:param thresh: dist between two lines for them to be considered as same
:return: final list with sin... | 25.101852 | 88 | 0.560679 | 412 | 2,711 | 3.589806 | 0.291262 | 0.028398 | 0.016227 | 0.030426 | 0.0595 | 0.032454 | 0 | 0 | 0 | 0 | 0 | 0.048518 | 0.315751 | 2,711 | 107 | 89 | 25.336449 | 0.748787 | 0.239395 | 0 | 0.063492 | 0 | 0 | 0.005508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.031746 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f5acb14365decf5cb2d85dfdb8cc3ac0e9ffe41f | 1,553 | py | Python | examples/wmt/tools/scorer/nlm.py | godweiyang/ParaGen | 9665d1244ea38a41fc06b4e0a7f6411985e2221f | [
"Apache-2.0"
] | 50 | 2022-01-18T07:25:46.000Z | 2022-03-14T13:06:18.000Z | examples/wmt/tools/scorer/nlm.py | JiangtaoFeng/ParaGen | 509334bf16e3674e009bb9dc37ecc38ae3b5c977 | [
"Apache-2.0"
] | 2 | 2022-01-19T09:36:42.000Z | 2022-02-23T07:16:02.000Z | examples/wmt/tools/scorer/nlm.py | JiangtaoFeng/ParaGen | 509334bf16e3674e009bb9dc37ecc38ae3b5c977 | [
"Apache-2.0"
] | 6 | 2022-01-19T09:28:53.000Z | 2022-03-10T10:20:08.000Z | # Before running this command, you should firstly run:
# pip install fairseq
# pip install fastBPE
# wget https://dl.fbaipublicfiles.com/fairseq/models/lm/wmt19.en.tar.gz
# tar zxvf wmt19.en.tar.gz
import argparse
from itertools import islice
import numpy as np
from fairseq.models.transformer_lm import TransformerLang... | 36.116279 | 106 | 0.676755 | 234 | 1,553 | 4.363248 | 0.448718 | 0.020568 | 0.049951 | 0.023506 | 0.097943 | 0.097943 | 0.045054 | 0 | 0 | 0 | 0 | 0.013067 | 0.162267 | 1,553 | 42 | 107 | 36.97619 | 0.771714 | 0.251771 | 0 | 0.074074 | 0 | 0 | 0.124132 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.148148 | 0 | 0.148148 | 0.037037 | 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 | 0 | 1 | 0 |
f5accc4b43ec1556256e37986ed9a579a786c19a | 2,742 | py | Python | aioli_openapi/service.py | jimorie/aioli-openapi | 5a5ea6471d332adc8361ad39af7421e4686811fd | [
"MIT"
] | null | null | null | aioli_openapi/service.py | jimorie/aioli-openapi | 5a5ea6471d332adc8361ad39af7421e4686811fd | [
"MIT"
] | null | null | null | aioli_openapi/service.py | jimorie/aioli-openapi | 5a5ea6471d332adc8361ad39af7421e4686811fd | [
"MIT"
] | null | null | null | import warnings
from apispec import APISpec
from apispec.ext.marshmallow import MarshmallowPlugin
from aioli.service import BaseService
from aioli.controller import BaseHttpController
from aioli.exceptions import NoMatchFound
class OpenApiService(BaseService):
_specs = {}
def oas_schema(self, pkg):
... | 31.159091 | 106 | 0.496718 | 243 | 2,742 | 5.522634 | 0.358025 | 0.018629 | 0.016393 | 0.020864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00063 | 0.420861 | 2,742 | 87 | 107 | 31.517241 | 0.844458 | 0 | 0 | 0.076923 | 0 | 0 | 0.061999 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015385 | false | 0 | 0.107692 | 0 | 0.2 | 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 | 0 | 0 | 1 | 0 |
f5afafed15f47453d454c043799fdd7a4422ab1b | 1,863 | py | Python | src_old/tests/delete_migrations.py | rishikesh67/django-tenant-oracle-schemas | 918a64e842b678fc506eadbb4d7e51b0b38ab0a2 | [
"MIT"
] | null | null | null | src_old/tests/delete_migrations.py | rishikesh67/django-tenant-oracle-schemas | 918a64e842b678fc506eadbb4d7e51b0b38ab0a2 | [
"MIT"
] | 8 | 2019-12-04T23:26:11.000Z | 2022-02-10T09:42:18.000Z | src/tests/delete_migrations.py | rishikesh67/django-tenant-oracle-schemas | 918a64e842b678fc506eadbb4d7e51b0b38ab0a2 | [
"MIT"
] | 2 | 2019-06-26T05:31:16.000Z | 2019-07-01T12:22:50.000Z | import os
import glob
import shutil
import logging
# logging.basicConfig(level=logging.DEBUG)
# DEBUG:root:Skipping file /Users/hygull/Projects/Python3/DjangoTenantOracleSchemas/django-tenant-oracle-schemas/src/tenants/models.py
# logging.basicConfig(format='%(asctime)s %(message)s', level=logging.DEBUG)
# 2019-06-2... | 38.8125 | 139 | 0.7343 | 257 | 1,863 | 5.272374 | 0.319066 | 0.088561 | 0.070111 | 0.095941 | 0.505535 | 0.505535 | 0.505535 | 0.505535 | 0.505535 | 0.449446 | 0 | 0.031458 | 0.112721 | 1,863 | 47 | 140 | 39.638298 | 0.788264 | 0.411702 | 0 | 0.1 | 0 | 0 | 0.236431 | 0.079117 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.133333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f5b0b5d5e4ce7c8e9669a43f27a5226a60590d4f | 6,075 | py | Python | qa2nli/converters/processors.py | nli-for-qa/conversion | 588de7fbbcdeb9698fe888b6e3ece7dfadf25238 | [
"MIT"
] | null | null | null | qa2nli/converters/processors.py | nli-for-qa/conversion | 588de7fbbcdeb9698fe888b6e3ece7dfadf25238 | [
"MIT"
] | null | null | null | qa2nli/converters/processors.py | nli-for-qa/conversion | 588de7fbbcdeb9698fe888b6e3ece7dfadf25238 | [
"MIT"
] | 1 | 2021-07-04T01:59:56.000Z | 2021-07-04T01:59:56.000Z | from typing import Callable, List, Union, Optional, Dict, Tuple
import re
import spacy
import logging
import math
from enum import Enum
logger = logging.getLogger(__name__)
def remove_excess_space(inp: str) -> str:
return ' '.join(inp.split()).strip()
def get_spacy_model(model: str) -> spacy.language.Model:
... | 31.806283 | 82 | 0.597366 | 687 | 6,075 | 4.989811 | 0.243086 | 0.054551 | 0.032089 | 0.029172 | 0.222287 | 0.171237 | 0.114061 | 0.094516 | 0.094516 | 0.094516 | 0 | 0.002852 | 0.30749 | 6,075 | 190 | 83 | 31.973684 | 0.81198 | 0.059918 | 0 | 0.150376 | 0 | 0 | 0.066984 | 0.003878 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082707 | false | 0 | 0.052632 | 0.022556 | 0.323308 | 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 | 0 | 0 | 1 | 0 |
f5b0c54a48711381cd579c3094b7c9b18f185760 | 2,106 | py | Python | trphysx/data_utils/dataset_cylinder.py | zabaras/transformer-physx | eb28d09957641cc594b3e5acf4ace2e4dc193584 | [
"MIT"
] | 33 | 2020-10-15T06:43:36.000Z | 2022-03-24T10:46:12.000Z | trphysx/data_utils/dataset_cylinder.py | zabaras/transformer-physx | eb28d09957641cc594b3e5acf4ace2e4dc193584 | [
"MIT"
] | 2 | 2021-05-18T14:31:38.000Z | 2021-07-30T18:18:50.000Z | trphysx/data_utils/dataset_cylinder.py | zabaras/transformer-physx | eb28d09957641cc594b3e5acf4ace2e4dc193584 | [
"MIT"
] | 6 | 2020-12-01T05:54:01.000Z | 2022-03-25T21:22:09.000Z | """
=====
Distributed by: Notre Dame SCAI Lab (MIT Liscense)
- Associated publication:
url: https://arxiv.org/abs/2010.03957
doi:
github: https://github.com/zabaras/transformer-physx
=====
"""
import logging
import h5py
import torch
from .dataset_phys import PhysicalDataset
from ..embedding.embedding_model import Embe... | 37.607143 | 121 | 0.61396 | 269 | 2,106 | 4.710037 | 0.460967 | 0.028414 | 0.030781 | 0.040253 | 0.110497 | 0.033149 | 0 | 0 | 0 | 0 | 0 | 0.025325 | 0.268756 | 2,106 | 55 | 122 | 38.290909 | 0.797403 | 0.283476 | 0 | 0 | 0 | 0 | 0.052957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.172414 | 0 | 0.241379 | 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 | 0 | 0 | 1 | 0 |
f5b575448dfd3070de7e8cc30de61a51b143522f | 927 | py | Python | strategies/forest.py | aladics/DeepBugHunter | 564f2417eafc50e99de60d5d6c0a1b4193d1bf8b | [
"Apache-2.0"
] | 6 | 2019-03-01T13:17:09.000Z | 2022-03-07T04:07:04.000Z | strategies/forest.py | aladics/DeepBugHunter | 564f2417eafc50e99de60d5d6c0a1b4193d1bf8b | [
"Apache-2.0"
] | null | null | null | strategies/forest.py | aladics/DeepBugHunter | 564f2417eafc50e99de60d5d6c0a1b4193d1bf8b | [
"Apache-2.0"
] | 2 | 2020-08-02T07:36:00.000Z | 2021-01-13T15:04:00.000Z | import os
import math
import argparse
import dbh_util as util
from sklearn.ensemble import RandomForestClassifier
parser = argparse.ArgumentParser()
parser.add_argument('--n-estimators', type=int, default=10, help='The number of trees in the forest')
parser.add_argument('--max-depth', type=int, default=5, help='Max d... | 34.333333 | 103 | 0.73247 | 131 | 927 | 5.114504 | 0.51145 | 0.047761 | 0.076119 | 0.047761 | 0.098507 | 0.098507 | 0.098507 | 0 | 0 | 0 | 0 | 0.007576 | 0.145631 | 927 | 26 | 104 | 35.653846 | 0.838384 | 0.023732 | 0 | 0.111111 | 0 | 0 | 0.166482 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.277778 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
f5b7476abd3046a860b7d297b7e32e4ae0dcc3db | 9,476 | py | Python | vitrage_tempest_plugin/tests/e2e/test_overlapping_actions.py | openstack/vitrage-tempest-plugin | 69acc7f3ea26f8c3a652cdf9d1fd842dbf9af58f | [
"Apache-2.0"
] | 6 | 2018-08-02T12:11:09.000Z | 2019-03-05T11:45:09.000Z | vitrage_tempest_plugin/tests/e2e/test_overlapping_actions.py | openstack/vitrage-tempest-plugin | 69acc7f3ea26f8c3a652cdf9d1fd842dbf9af58f | [
"Apache-2.0"
] | null | null | null | vitrage_tempest_plugin/tests/e2e/test_overlapping_actions.py | openstack/vitrage-tempest-plugin | 69acc7f3ea26f8c3a652cdf9d1fd842dbf9af58f | [
"Apache-2.0"
] | 1 | 2018-08-22T12:29:54.000Z | 2018-08-22T12:29:54.000Z | # Copyright 2017 - Nokia
#
# 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, sof... | 40.495726 | 78 | 0.646264 | 1,113 | 9,476 | 5.165319 | 0.160827 | 0.087667 | 0.075144 | 0.058445 | 0.74326 | 0.695599 | 0.670725 | 0.612454 | 0.53505 | 0.47156 | 0 | 0.012658 | 0.274694 | 9,476 | 233 | 79 | 40.669528 | 0.823803 | 0.100042 | 0 | 0.621951 | 0 | 0 | 0.069822 | 0.029083 | 0 | 0 | 0 | 0 | 0.067073 | 1 | 0.036585 | false | 0 | 0.073171 | 0 | 0.115854 | 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 | 0 | 0 | 1 | 0 |
f5b80f86d6e5672de1791e2d08c1fbaf96195a02 | 4,137 | py | Python | clone_tests/clone_compilation_errors.py | dcz-purism/glib | eccd097166cdf7dfea9be17869868d45f8ef4ef6 | [
"MIT-0",
"MIT"
] | null | null | null | clone_tests/clone_compilation_errors.py | dcz-purism/glib | eccd097166cdf7dfea9be17869868d45f8ef4ef6 | [
"MIT-0",
"MIT"
] | null | null | null | clone_tests/clone_compilation_errors.py | dcz-purism/glib | eccd097166cdf7dfea9be17869868d45f8ef4ef6 | [
"MIT-0",
"MIT"
] | null | null | null | import json
import os
import subprocess
import sys
TEST_FILENAME = "tmp_py_file"
TEST_FOLDER = "clone_tests"
TESTS = [
("clone!( => move || {})",
"If you have nothing to clone, no need to use this macro!"),
("clone!(|| {})",
"If you have nothing to clone, no need to use this macro!"),
("cl... | 35.358974 | 117 | 0.578922 | 542 | 4,137 | 4.319188 | 0.335793 | 0.034173 | 0.047843 | 0.029047 | 0.248612 | 0.186245 | 0.148654 | 0.148654 | 0.127296 | 0.127296 | 0 | 0.004187 | 0.249456 | 4,137 | 116 | 118 | 35.663793 | 0.749758 | 0 | 0 | 0.068627 | 0 | 0.019608 | 0.427363 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.039216 | 0 | 0.156863 | 0.058824 | 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 | 0 | 1 | 0 |
f5b9371efb3fb18aace487077f47abfd7957e4b2 | 2,437 | py | Python | tests/test_tags.py | wbcsmarteezgithub/django-snakeoil | ae1a8dab9e14194e48963101ff3349f45aee0ccf | [
"BSD-2-Clause"
] | 1 | 2020-07-03T15:52:25.000Z | 2020-07-03T15:52:25.000Z | tests/test_tags.py | wbcsmarteezgithub/django-snakeoil | ae1a8dab9e14194e48963101ff3349f45aee0ccf | [
"BSD-2-Clause"
] | null | null | null | tests/test_tags.py | wbcsmarteezgithub/django-snakeoil | ae1a8dab9e14194e48963101ff3349f45aee0ccf | [
"BSD-2-Clause"
] | null | null | null | from __future__ import unicode_literals
from django.http import HttpRequest
from django.template import Context, Template, TemplateSyntaxError
from django.test import TestCase
from snakeoil.models import SeoUrl
from .models import TestModel
class GetSeoDataTagTests(TestCase):
def test_invalid_syntax(self):
... | 29.719512 | 66 | 0.531801 | 219 | 2,437 | 5.721461 | 0.223744 | 0.057462 | 0.099761 | 0.115722 | 0.66241 | 0.622506 | 0.598563 | 0.598563 | 0.598563 | 0.598563 | 0 | 0 | 0.330735 | 2,437 | 81 | 67 | 30.08642 | 0.76824 | 0 | 0 | 0.666667 | 0 | 0 | 0.214608 | 0.008617 | 0 | 0 | 0 | 0 | 0.079365 | 1 | 0.079365 | false | 0 | 0.095238 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f5ba98b5a8a467c1237f20ea32bee34cf54cde58 | 420 | py | Python | test/nn/conv/test_gravnet_conv.py | shrey-bansal/pytorch_geometric | 17108a08066b0a73530544d01719b186f2625ef2 | [
"MIT"
] | 2 | 2020-09-08T15:22:08.000Z | 2020-09-08T15:22:09.000Z | test/nn/conv/test_gravnet_conv.py | shrey-bansal/pytorch_geometric | 17108a08066b0a73530544d01719b186f2625ef2 | [
"MIT"
] | null | null | null | test/nn/conv/test_gravnet_conv.py | shrey-bansal/pytorch_geometric | 17108a08066b0a73530544d01719b186f2625ef2 | [
"MIT"
] | 1 | 2021-07-06T06:50:21.000Z | 2021-07-06T06:50:21.000Z | import torch
from torch_geometric.nn import GravNetConv
def test_gravnet_conv():
num_nodes, in_channels, out_channels = 20, 16, 32
x = torch.randn((num_nodes, in_channels))
conv = GravNetConv(in_channels, out_channels, space_dimensions=4,
propagate_dimensions=8, k=12)
assert co... | 32.307692 | 69 | 0.688095 | 58 | 420 | 4.672414 | 0.517241 | 0.088561 | 0.073801 | 0.132841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047478 | 0.197619 | 420 | 12 | 70 | 35 | 0.756677 | 0 | 0 | 0 | 0 | 0 | 0.059524 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0 | 0.222222 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
f5baf25c3fc1ee4bca1c0e0df333ed41bd65f476 | 2,216 | py | Python | base/CrossPlotter.py | pulsatrixwx/PulsatrixWx | aae6ac36e2460dcf7f4a592d709139cd0d6a2e91 | [
"MIT"
] | 3 | 2016-03-27T00:21:46.000Z | 2018-06-01T09:20:57.000Z | base/CrossPlotter.py | pulsatrixwx/PulsatrixWx | aae6ac36e2460dcf7f4a592d709139cd0d6a2e91 | [
"MIT"
] | null | null | null | base/CrossPlotter.py | pulsatrixwx/PulsatrixWx | aae6ac36e2460dcf7f4a592d709139cd0d6a2e91 | [
"MIT"
] | null | null | null | from datetime import datetime
from hootpy import HootPy
class CrossPlotter(HootPy):
"""
CrossPlotter
Purpose: Handles the plotting of cross section products.
Started: 14 June 2010 by Tim Supinie (tsupinie@ou.edu)
Completed: [not yet]
Modified: [not yet]
"""
def __init__(self,... | 28.410256 | 108 | 0.581679 | 229 | 2,216 | 5.458515 | 0.471616 | 0.048 | 0.0272 | 0.0448 | 0.064 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009472 | 0.333032 | 2,216 | 77 | 109 | 28.779221 | 0.836265 | 0.474729 | 0 | 0.148148 | 0 | 0 | 0.12527 | 0.032397 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.074074 | 0 | 0.407407 | 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 | 0 | 0 | 1 | 0 |
f5bb1ebe52102d71c8810bac844699880019ddf3 | 3,072 | py | Python | management/commands/syncldap.py | LUH-CHI/chiffee | 78ec85d36a6c757e5f56113089f1b56fdb0ed494 | [
"MIT"
] | 1 | 2018-03-22T09:53:06.000Z | 2018-03-22T09:53:06.000Z | management/commands/syncldap.py | LUH-CHI/chiffee | 78ec85d36a6c757e5f56113089f1b56fdb0ed494 | [
"MIT"
] | 4 | 2019-04-01T08:44:40.000Z | 2020-02-07T17:44:16.000Z | management/commands/syncldap.py | LUH-CHI/chiffee | 78ec85d36a6c757e5f56113089f1b56fdb0ed494 | [
"MIT"
] | 4 | 2018-05-04T12:01:50.000Z | 2019-10-11T09:47:33.000Z | import logging
import ldap
from django.conf import settings
from django.contrib.auth.models import Group
from django.core.management.base import BaseCommand
from django_auth_ldap.backend import LDAPBackend
from chiffee.models import User
logger = logging.getLogger('syncldap')
# This command synchronizes local data... | 36.571429 | 79 | 0.595378 | 380 | 3,072 | 4.681579 | 0.344737 | 0.035975 | 0.026981 | 0.022485 | 0.047218 | 0.025857 | 0.025857 | 0.025857 | 0 | 0 | 0 | 0.004282 | 0.315755 | 3,072 | 83 | 80 | 37.012048 | 0.842055 | 0.166341 | 0 | 0.101695 | 0 | 0 | 0.089839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0.016949 | 0.118644 | 0 | 0.220339 | 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 | 0 | 0 | 1 | 0 |
f5beb267f6635aef6117ff273b49cdca310125ca | 367 | py | Python | jp.atcoder/abc045/abc045_b/8983851.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc045/abc045_b/8983851.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc045/abc045_b/8983851.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
from collections import deque
a, b, c = sys.stdin.read().split()
def main():
deck = dict([("a", deque(a)), ("b", deque(b)), ("c", deque(c))])
p = "a"
while True:
if deck[p]:
p = deck[p].popleft()
else:
return p.upper()
if __name__ == ... | 17.47619 | 69 | 0.46594 | 48 | 367 | 3.395833 | 0.541667 | 0.07362 | 0.08589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.348774 | 367 | 20 | 70 | 18.35 | 0.682008 | 0 | 0 | 0 | 0 | 0 | 0.034582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 0.071429 | 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 | 0 | 1 | 0 |
f5bed273a043f28510a7c31520baff8cb6ddab43 | 16,504 | py | Python | src/pipelines/azureml/lightgbm_training.py | microsoft/lightgbm-benchmark | 286668d698d9d166857f924ecb775d5de224d489 | [
"MIT"
] | 13 | 2021-08-20T01:03:51.000Z | 2022-02-12T05:34:46.000Z | src/pipelines/azureml/lightgbm_training.py | microsoft/lightgbm-benchmark | 286668d698d9d166857f924ecb775d5de224d489 | [
"MIT"
] | 199 | 2021-08-21T21:18:53.000Z | 2022-03-27T23:08:44.000Z | src/pipelines/azureml/lightgbm_training.py | microsoft/lightgbm-benchmark | 286668d698d9d166857f924ecb775d5de224d489 | [
"MIT"
] | 4 | 2021-08-20T06:53:26.000Z | 2022-01-24T22:22:39.000Z | """
Runs LightGBM using distributed (mpi) training.
to execute:
> python src/pipelines/azureml/lightgbm_training.py --exp-config conf/experiments/lightgbm_training/cpu.yaml
"""
# pylint: disable=no-member
# NOTE: because it raises 'dict' has no 'outputs' member in dsl.pipeline construction
import os
import sys
import ... | 39.961259 | 154 | 0.673534 | 1,882 | 16,504 | 5.6339 | 0.195537 | 0.058851 | 0.027728 | 0.023767 | 0.311421 | 0.229935 | 0.1874 | 0.161841 | 0.117514 | 0.117514 | 0 | 0.001209 | 0.248303 | 16,504 | 412 | 155 | 40.058252 | 0.853458 | 0.249636 | 0 | 0.134199 | 0 | 0 | 0.098739 | 0.021158 | 0 | 0 | 0 | 0.002427 | 0 | 1 | 0.017316 | false | 0 | 0.069264 | 0 | 0.116883 | 0.008658 | 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 | 0 | 1 | 0 |
f5bf990b580312d748c5534bd056ce7638df5fe7 | 3,319 | py | Python | twinfield/metadata.py | zypp-io/twinfield | b4306e79f514ae691584c2d47ce072a3619469b8 | [
"Apache-2.0"
] | 4 | 2020-12-20T23:02:33.000Z | 2022-01-13T19:40:13.000Z | twinfield/metadata.py | zypp-io/twinfield | b4306e79f514ae691584c2d47ce072a3619469b8 | [
"Apache-2.0"
] | 9 | 2020-12-18T07:27:07.000Z | 2022-02-17T09:23:51.000Z | twinfield/metadata.py | zypp-io/twinfield | b4306e79f514ae691584c2d47ce072a3619469b8 | [
"Apache-2.0"
] | null | null | null | from xml.etree import ElementTree as Et
import pandas as pd
import requests
from twinfield.core import Base
from twinfield.exceptions import ServerError
from twinfield.messages import METADATA_XML
class Metadata(Base):
def __init__(self, access_token: str, code: str, company: str):
"""
This clas... | 27.658333 | 98 | 0.577584 | 355 | 3,319 | 5.31831 | 0.377465 | 0.034958 | 0.023835 | 0.023305 | 0.03072 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000446 | 0.323893 | 3,319 | 119 | 99 | 27.890756 | 0.840909 | 0.286231 | 0 | 0 | 0 | 0 | 0.133234 | 0.061912 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0.122449 | 0 | 0.326531 | 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 | 0 | 0 | 1 | 0 |
f5c4f96d849731c4a186b3fef06e21bef4391f32 | 1,177 | py | Python | test/device/test_brakes.py | uOstar/barista | ab62ec6320fb9b5e9c305f23be7fc7e828c25ab1 | [
"MIT"
] | 4 | 2017-11-05T19:37:23.000Z | 2018-06-18T13:18:11.000Z | test/device/test_brakes.py | uOstar/barista | ab62ec6320fb9b5e9c305f23be7fc7e828c25ab1 | [
"MIT"
] | 24 | 2017-11-05T19:22:08.000Z | 2018-06-14T13:50:39.000Z | test/device/test_brakes.py | uorocketry/barista | ab62ec6320fb9b5e9c305f23be7fc7e828c25ab1 | [
"MIT"
] | 1 | 2022-03-25T04:01:25.000Z | 2022-03-25T04:01:25.000Z | import pytest
from mock import patch
from app.device.brakes import Brakes
from app.utils.servo import Servo
from app.utils.exceptions import InvalidArguments
@patch.object(Servo, 'write')
@patch.object(Servo, '__init__')
def test_init_creates_servo_on_pin_21(servo_init_mock, servo_write_mock):
servo_init_mock.ret... | 28.02381 | 75 | 0.773152 | 177 | 1,177 | 4.717514 | 0.220339 | 0.143713 | 0.150898 | 0.136527 | 0.713772 | 0.644311 | 0.644311 | 0.57006 | 0.57006 | 0.57006 | 0 | 0.016683 | 0.13424 | 1,177 | 41 | 76 | 28.707317 | 0.802748 | 0 | 0 | 0.483871 | 0 | 0 | 0.033135 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 1 | 0.096774 | false | 0 | 0.16129 | 0 | 0.258065 | 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 | 0 | 0 | 1 | 0 |
f5c957427e5b93fcfc4229d7e7efbe7a5cf8ce25 | 601 | py | Python | 4 kyu/Most_frequently_used_words_in_a_text.py | jonathansnolan/Codewars | 9d6a3fd10ffb2c61ae292961f384067cdede0470 | [
"MIT"
] | null | null | null | 4 kyu/Most_frequently_used_words_in_a_text.py | jonathansnolan/Codewars | 9d6a3fd10ffb2c61ae292961f384067cdede0470 | [
"MIT"
] | null | null | null | 4 kyu/Most_frequently_used_words_in_a_text.py | jonathansnolan/Codewars | 9d6a3fd10ffb2c61ae292961f384067cdede0470 | [
"MIT"
] | null | null | null | from collections import Counter
def top_3_words(text):
text = text.lower()
count = ""
j = []
for u in text:
if ord(u) > 96 and ord(u) < 123 or ord(u) == 39:
count += u
else:
j.append(count)
count = ""
i = []
for k in j:
temp = ""
... | 22.259259 | 75 | 0.425957 | 88 | 601 | 2.886364 | 0.397727 | 0.094488 | 0.047244 | 0.062992 | 0.204724 | 0.204724 | 0.204724 | 0.204724 | 0.204724 | 0.204724 | 0 | 0.052478 | 0.429285 | 601 | 26 | 76 | 23.115385 | 0.688047 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.125 | 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 | 0 | 0 | 1 | 0 |
f5d03f80ba9950414b41050d76a8ec9d43425ee6 | 656 | py | Python | src/easy/plus_one_66.py | ahmet9cengiz/leetCode | 9e9a61f059072d7791dd19706b7a3e0d0a446669 | [
"MIT"
] | null | null | null | src/easy/plus_one_66.py | ahmet9cengiz/leetCode | 9e9a61f059072d7791dd19706b7a3e0d0a446669 | [
"MIT"
] | null | null | null | src/easy/plus_one_66.py | ahmet9cengiz/leetCode | 9e9a61f059072d7791dd19706b7a3e0d0a446669 | [
"MIT"
] | null | null | null | class Solution(object):
# Time Complexity: O(n)
@staticmethod
def plus_one(digits):
keep_going = True
for i, e in reversed(list(enumerate(digits))):
if keep_going:
if e == 9:
digits[i] = 0
else:
digits[i] +=... | 24.296296 | 69 | 0.464939 | 75 | 656 | 3.84 | 0.493333 | 0.125 | 0.076389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.432927 | 656 | 26 | 70 | 25.230769 | 0.752688 | 0.032012 | 0 | 0.190476 | 0 | 0 | 0.012638 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.190476 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
f5d07d12c4b5747b9b1b9f630c617df1ba338e16 | 1,607 | py | Python | timetracker/vms/test/models/test_client_admin_invite_model.py | comp523-jarvis/timetracker-web | af638f0b3aab8a69a974bdb9a18118198488657c | [
"Apache-2.0"
] | 1 | 2019-04-09T16:46:53.000Z | 2019-04-09T16:46:53.000Z | timetracker/vms/test/models/test_client_admin_invite_model.py | comp523-jarvis/timetracker-web | af638f0b3aab8a69a974bdb9a18118198488657c | [
"Apache-2.0"
] | 105 | 2018-10-12T17:57:20.000Z | 2020-06-05T19:35:21.000Z | timetracker/vms/test/models/test_client_admin_invite_model.py | comp523-jarvis/timetracker-web | af638f0b3aab8a69a974bdb9a18118198488657c | [
"Apache-2.0"
] | 1 | 2019-04-11T14:43:42.000Z | 2019-04-11T14:43:42.000Z | from django.conf import settings
from django.template.loader import render_to_string
from vms import models
def test_accept(client_admin_invite_factory, user_factory):
"""
Accepting the invitation should create a new client admin for the
user who accepts.
"""
invite = client_admin_invite_factory(... | 27.706897 | 72 | 0.701929 | 205 | 1,607 | 5.317073 | 0.331707 | 0.090826 | 0.109174 | 0.13211 | 0.111927 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002355 | 0.207218 | 1,607 | 57 | 73 | 28.192982 | 0.853218 | 0.178594 | 0 | 0.096774 | 0 | 0 | 0.137084 | 0.057845 | 0 | 0 | 0 | 0 | 0.258065 | 1 | 0.096774 | false | 0 | 0.096774 | 0 | 0.193548 | 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 | 0 | 0 | 1 | 0 |
f5d0bd552a2206b2e1b134ade80b6b88f2ce3b53 | 3,489 | py | Python | _from_pydot/lambdas/dev/pyppeteer.py | owasp-sbot/pbx-gs-python-utils | f448aa36c4448fc04d30c3a5b25640ea4d44a267 | [
"Apache-2.0"
] | 3 | 2018-12-14T15:43:46.000Z | 2019-04-25T07:44:58.000Z | _from_pydot/lambdas/dev/pyppeteer.py | owasp-sbot/pbx-gs-python-utils | f448aa36c4448fc04d30c3a5b25640ea4d44a267 | [
"Apache-2.0"
] | 1 | 2019-05-11T14:19:37.000Z | 2019-05-11T14:51:04.000Z | _from_pydot/lambdas/dev/pyppeteer.py | owasp-sbot/pbx-gs-python-utils | f448aa36c4448fc04d30c3a5b25640ea4d44a267 | [
"Apache-2.0"
] | 4 | 2018-12-27T04:54:14.000Z | 2019-05-11T14:07:47.000Z | import base64
import os
import asyncio
from pbx_gs_python_utils.utils.Process import Process
from osbot_aws.Dependencies import load_dependency
def run(event, context):
load_dependency("pyppeteer") # (on first run downloads a zip file from S3 to /tmp/lambdas-dependencies/pyppeteer/ whic... | 67.096154 | 162 | 0.509888 | 355 | 3,489 | 4.88169 | 0.419718 | 0.060012 | 0.051933 | 0.053664 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.429923 | 3,489 | 51 | 163 | 68.411765 | 0.862745 | 0.329321 | 0 | 0 | 0 | 0 | 0.071768 | 0.021617 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.206897 | 0 | 0.275862 | 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 | 0 | 0 | 1 | 0 |
f5d23a181d6fd76675487606efe26f43a22cb25e | 2,757 | py | Python | filter_plugins/net_textfsm_parse.py | iamroddo/ansible_helpers | 420b9d7a1bb637f52209aeeea4cd424d03cf4eef | [
"Apache-2.0"
] | 44 | 2017-05-19T19:55:39.000Z | 2022-02-08T17:21:22.000Z | filter_plugins/net_textfsm_parse.py | iamroddo/ansible_helpers | 420b9d7a1bb637f52209aeeea4cd424d03cf4eef | [
"Apache-2.0"
] | 2 | 2017-07-17T14:28:23.000Z | 2020-12-11T15:54:00.000Z | filter_plugins/net_textfsm_parse.py | iamroddo/ansible_helpers | 420b9d7a1bb637f52209aeeea4cd424d03cf4eef | [
"Apache-2.0"
] | 18 | 2017-07-27T07:58:34.000Z | 2021-06-06T04:06:33.000Z | """
Filter to convert results from network device show commands obtained from ios_command,
eos_command, et cetera to structured data using TextFSM templates.
"""
from __future__ import unicode_literals
from __future__ import print_function
import os
from textfsm.clitable import CliTableError
import textfsm.clitable a... | 32.821429 | 93 | 0.696772 | 351 | 2,757 | 5.273504 | 0.344729 | 0.077256 | 0.027012 | 0.038898 | 0.258239 | 0.197731 | 0.183684 | 0.183684 | 0.183684 | 0.183684 | 0 | 0.000459 | 0.210011 | 2,757 | 83 | 94 | 33.216867 | 0.849403 | 0.237214 | 0 | 0.132075 | 0 | 0 | 0.145419 | 0.012118 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0.037736 | 0.09434 | 0.018868 | 0.320755 | 0.018868 | 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 | 0 | 1 | 0 |
f5d2d84344ef95aeed5c0f078a4e133508f0ccd9 | 5,705 | py | Python | firebaseClient/firebaseClientGPIO.py | tabris2015/personCounter | 0cd7f8698afefdd9e913a97820b9ff9c01752274 | [
"MIT"
] | null | null | null | firebaseClient/firebaseClientGPIO.py | tabris2015/personCounter | 0cd7f8698afefdd9e913a97820b9ff9c01752274 | [
"MIT"
] | null | null | null | firebaseClient/firebaseClientGPIO.py | tabris2015/personCounter | 0cd7f8698afefdd9e913a97820b9ff9c01752274 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import threading
import Queue
import serial
import time
from datetime import datetime
from firebase import firebase
import sqlite3
from datetime import datetime, timedelta
from gpiozero import Button, LED
#///////////////////////////////////////////
import firebase_admin
from firebase_admin import c... | 26.784038 | 103 | 0.540053 | 573 | 5,705 | 5.207679 | 0.331588 | 0.053619 | 0.014745 | 0.021448 | 0.144102 | 0.128686 | 0.128686 | 0.128686 | 0.128686 | 0.128686 | 0 | 0.016566 | 0.333392 | 5,705 | 212 | 104 | 26.910377 | 0.768078 | 0.076775 | 0 | 0.322581 | 0 | 0 | 0.118618 | 0.010557 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03871 | false | 0 | 0.083871 | 0 | 0.135484 | 0.096774 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |