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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
887ad1b6a09fd7cd401ad5b4a47a80e80503fdb2 | 3,177 | py | Python | software/robotClass.py | technovus-sfu/swarmbots | 6a50193a78056c0359c426b097b96e1c37678a55 | [
"MIT"
] | null | null | null | software/robotClass.py | technovus-sfu/swarmbots | 6a50193a78056c0359c426b097b96e1c37678a55 | [
"MIT"
] | 3 | 2018-02-05T23:21:02.000Z | 2018-05-03T02:58:50.000Z | software/robotClass.py | technovus-sfu/swarmbots | 6a50193a78056c0359c426b097b96e1c37678a55 | [
"MIT"
] | null | null | null | import serial
import string
import math
from itertools import chain
class robot:
address = "/dev/cu.HC-05-DevB"
speed = 0;
current_position = [0,0,0]
target_position = [0, 0]
distance = 0;
angle_diff = 0;
compliment = 0;
colorLower = [0,0,0]
colorUpper = [0,0,0]
ID = 0
# def __init__ (self):
# pass
#... | 27.868421 | 95 | 0.678942 | 486 | 3,177 | 4.339506 | 0.22428 | 0.081081 | 0.042674 | 0.031294 | 0.241821 | 0.217165 | 0.154576 | 0.154576 | 0.100522 | 0.071124 | 0 | 0.054455 | 0.173434 | 3,177 | 113 | 96 | 28.115044 | 0.748667 | 0.17847 | 0 | 0.068493 | 0 | 0 | 0.032458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109589 | false | 0 | 0.054795 | 0 | 0.315068 | 0.068493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
887d7ad21774f9d78fa33b58dec3b6e2af7b8b30 | 13,930 | py | Python | tests/test_api.py | vsoch/django-oci | e60b2d0501ddd45f6ca3596b126180bebb2e6903 | [
"Apache-2.0"
] | 5 | 2020-03-24T23:45:28.000Z | 2021-11-26T03:31:05.000Z | tests/test_api.py | vsoch/django-oci | e60b2d0501ddd45f6ca3596b126180bebb2e6903 | [
"Apache-2.0"
] | 14 | 2020-04-02T17:13:28.000Z | 2020-12-29T12:36:38.000Z | tests/test_api.py | vsoch/django-oci | e60b2d0501ddd45f6ca3596b126180bebb2e6903 | [
"Apache-2.0"
] | null | null | null | """
test_django-oci api
-------------------
Tests for `django-oci` api.
"""
from django.urls import reverse
from django.contrib.auth.models import User
from django_oci import settings
from rest_framework import status
from rest_framework.test import APITestCase
from django.test.utils import override_settings
from tim... | 37.245989 | 87 | 0.618808 | 1,646 | 13,930 | 5.106318 | 0.179222 | 0.026175 | 0.034265 | 0.030934 | 0.445687 | 0.404997 | 0.372873 | 0.3674 | 0.353599 | 0.310767 | 0 | 0.024093 | 0.264034 | 13,930 | 373 | 88 | 37.345845 | 0.795747 | 0.130366 | 0 | 0.280303 | 0 | 0 | 0.158076 | 0.044228 | 0 | 0 | 0 | 0 | 0.117424 | 1 | 0.056818 | false | 0.007576 | 0.056818 | 0 | 0.143939 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
887d7f78ede177237d678a89bcd14f2af84d31d3 | 1,492 | py | Python | LCSTPlotter.py | edwinstorres/LCST-Plotter | 1afbd251cc395461498e902069e90bb14e66b013 | [
"MIT"
] | null | null | null | LCSTPlotter.py | edwinstorres/LCST-Plotter | 1afbd251cc395461498e902069e90bb14e66b013 | [
"MIT"
] | null | null | null | LCSTPlotter.py | edwinstorres/LCST-Plotter | 1afbd251cc395461498e902069e90bb14e66b013 | [
"MIT"
] | null | null | null | #LCST Plotter
#Author: ESTC
import numpy
import streamlit
import matplotlib.pyplot as plt
import pandas
def launch_app():
streamlit.title("LCST Plotter")
global cation, anion, mw_cat, mw_an, datafile
cation = streamlit.text_input("Enter the abbreviation of the cation:")
# mw_cat = streaml... | 32.434783 | 81 | 0.661528 | 216 | 1,492 | 4.462963 | 0.398148 | 0.068465 | 0.112033 | 0.143154 | 0.232365 | 0.149378 | 0.149378 | 0.095436 | 0.095436 | 0 | 0 | 0.022556 | 0.197721 | 1,492 | 45 | 82 | 33.155556 | 0.781119 | 0.118633 | 0 | 0 | 0 | 0 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.117647 | 0 | 0.205882 | 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 |
887dda35242cbfb0d65a1b78e9d2c415c3d774ec | 13,039 | py | Python | hello.py | zarqabiqbal/RTDA-Real-Time-Data-Analysis-ML-Project- | 0659191afa6a8802647f46d0dc4f85f2044639e5 | [
"Apache-2.0"
] | null | null | null | hello.py | zarqabiqbal/RTDA-Real-Time-Data-Analysis-ML-Project- | 0659191afa6a8802647f46d0dc4f85f2044639e5 | [
"Apache-2.0"
] | null | null | null | hello.py | zarqabiqbal/RTDA-Real-Time-Data-Analysis-ML-Project- | 0659191afa6a8802647f46d0dc4f85f2044639e5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from flask import Flask, render_template, app, url_for,request
import tweepy # To consume Twitter's API
import pandas as pd # To handle data
import numpy as np # For number computing
from textblob import TextBlob
import re
import pandas as pa
from sklearn.tree import DecisionTr... | 37.90407 | 190 | 0.638162 | 1,637 | 13,039 | 4.976176 | 0.221747 | 0.035109 | 0.045176 | 0.029708 | 0.420329 | 0.359808 | 0.332065 | 0.312546 | 0.301743 | 0.279401 | 0 | 0.024531 | 0.227778 | 13,039 | 343 | 191 | 38.014577 | 0.784487 | 0.051461 | 0 | 0.310469 | 0 | 0.00361 | 0.129493 | 0.016552 | 0.00361 | 0 | 0 | 0 | 0 | 1 | 0.046931 | false | 0 | 0.064982 | 0.018051 | 0.173285 | 0.021661 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
888504477ef926e05cac253422a2f5fcc1a109ea | 4,031 | py | Python | main.py | sun624/Dogecoin_musk | 6dc48f03275321d29bb1ab131ecd14626bcc5170 | [
"MIT"
] | null | null | null | main.py | sun624/Dogecoin_musk | 6dc48f03275321d29bb1ab131ecd14626bcc5170 | [
"MIT"
] | null | null | null | main.py | sun624/Dogecoin_musk | 6dc48f03275321d29bb1ab131ecd14626bcc5170 | [
"MIT"
] | null | null | null | #! usr/bin/env python3
from os import times
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
import numpy... | 29.210145 | 170 | 0.690896 | 567 | 4,031 | 4.767196 | 0.412698 | 0.024417 | 0.031077 | 0.023307 | 0.018498 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01962 | 0.203423 | 4,031 | 137 | 171 | 29.423358 | 0.822174 | 0.151823 | 0 | 0.023529 | 0 | 0.011765 | 0.10009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070588 | false | 0 | 0.211765 | 0.023529 | 0.329412 | 0.011765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
88858e6eec8ef3e573592e88fd8baa705aa1f430 | 1,264 | py | Python | 064_minimum_path_sum.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | 2 | 2018-04-24T19:17:40.000Z | 2018-04-24T19:33:52.000Z | 064_minimum_path_sum.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | null | null | null | 064_minimum_path_sum.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | 3 | 2020-06-17T05:48:52.000Z | 2021-01-02T06:08:25.000Z | """
64. Minimum Path Sum
Given a m x n grid filled with non-negative numbers,
find a path from top left to bottom right
which minimizes the sum of all numbers along its path.
Note: You can only move either down or right at any point in time.
http://www.tangjikai.com/algorithms/leetcode-64-minimum-path-sum
Dynamic P... | 29.395349 | 75 | 0.530854 | 199 | 1,264 | 3.366834 | 0.472362 | 0.026866 | 0.035821 | 0.047761 | 0.050746 | 0.035821 | 0.035821 | 0.035821 | 0 | 0 | 0 | 0.021845 | 0.348101 | 1,264 | 42 | 76 | 30.095238 | 0.791262 | 0.478639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.1875 | 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 |
8886118689d4c63bf084bbb40abe034f4a2125d5 | 12,507 | py | Python | pants-plugins/structured/subsystems/r_distribution.py | cosmicexplorer/structured | ea452a37e265dd75d4160efa59a4a939bf8c0521 | [
"Apache-2.0"
] | null | null | null | pants-plugins/structured/subsystems/r_distribution.py | cosmicexplorer/structured | ea452a37e265dd75d4160efa59a4a939bf8c0521 | [
"Apache-2.0"
] | null | null | null | pants-plugins/structured/subsystems/r_distribution.py | cosmicexplorer/structured | ea452a37e265dd75d4160efa59a4a939bf8c0521 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import logging
import os
import re
import subprocess
import sys
from contextlib import contextmanager
from abc import abstractproperty
from pants.bin... | 33.352 | 93 | 0.691773 | 1,566 | 12,507 | 5.224138 | 0.184547 | 0.026403 | 0.014301 | 0.008556 | 0.210732 | 0.154504 | 0.1138 | 0.090331 | 0.071507 | 0.059039 | 0 | 0.004195 | 0.199488 | 12,507 | 374 | 94 | 33.441176 | 0.812924 | 0.040138 | 0 | 0.130137 | 0 | 0 | 0.121829 | 0.014686 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10274 | false | 0 | 0.061644 | 0.017123 | 0.318493 | 0.010274 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
88864f3fa8092982651eaeda9dbe085e135b834a | 5,121 | py | Python | src/test.py | yliuhz/PMAW | 23f4f3ec2ccb381be3d4b2edea0878e4015e1ae4 | [
"Apache-2.0"
] | 8 | 2021-12-02T02:25:55.000Z | 2022-03-18T23:41:42.000Z | src/test.py | yliuhz/PMAW | 23f4f3ec2ccb381be3d4b2edea0878e4015e1ae4 | [
"Apache-2.0"
] | null | null | null | src/test.py | yliuhz/PMAW | 23f4f3ec2ccb381be3d4b2edea0878e4015e1ae4 | [
"Apache-2.0"
] | null | null | null |
import torch
from torch import nn
import numpy as np
class convmodel(torch.nn.Module):
def __init__(self):
super().__init__()
self.conv1 = nn.Conv2d(3, 16, 3, 1, padding=1, bias=False)
self.conv2 = nn.Conv2d(16, 32, 3, 1, padding=1, bias=False)
self.linear = nn.Linear(32*10*10, 1, ... | 35.075342 | 81 | 0.610037 | 742 | 5,121 | 4.115903 | 0.283019 | 0.042567 | 0.015717 | 0.034381 | 0.227898 | 0.156189 | 0.12017 | 0.084479 | 0.060249 | 0.022921 | 0 | 0.044626 | 0.260496 | 5,121 | 146 | 82 | 35.075342 | 0.761817 | 0.32767 | 0 | 0.156627 | 0 | 0 | 0.010879 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 1 | 0.060241 | false | 0 | 0.060241 | 0 | 0.180723 | 0.13253 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
888a79727132fd019b0db67bf3741b80a00a7a59 | 29,630 | py | Python | src/mau/parsers/main_parser.py | Project-Mau/mau | 193d16633c1573227debf4517ebcaf07add24979 | [
"MIT"
] | 28 | 2021-02-22T18:46:52.000Z | 2022-02-21T15:14:05.000Z | src/mau/parsers/main_parser.py | Project-Mau/mau | 193d16633c1573227debf4517ebcaf07add24979 | [
"MIT"
] | 5 | 2021-02-23T09:56:13.000Z | 2022-03-13T09:47:42.000Z | src/mau/parsers/main_parser.py | Project-Mau/mau | 193d16633c1573227debf4517ebcaf07add24979 | [
"MIT"
] | 2 | 2021-02-23T09:11:45.000Z | 2021-03-13T11:08:21.000Z | import re
import copy
from mau.lexers.base_lexer import TokenTypes, Token
from mau.lexers.main_lexer import MainLexer
from mau.parsers.base_parser import (
BaseParser,
TokenError,
ConfigurationError,
parser,
)
from mau.parsers.text_parser import TextParser
from mau.parsers.arguments_parser import Argum... | 32.136659 | 104 | 0.583463 | 3,356 | 29,630 | 5.029201 | 0.145113 | 0.046214 | 0.027728 | 0.048228 | 0.232255 | 0.206067 | 0.145396 | 0.117075 | 0.111151 | 0.09859 | 0 | 0.003189 | 0.333277 | 29,630 | 921 | 105 | 32.171553 | 0.851177 | 0.29811 | 0 | 0.238532 | 0 | 0.002294 | 0.045046 | 0.003322 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061927 | false | 0 | 0.020642 | 0.002294 | 0.119266 | 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 |
888b41cc12274148e790e361bed90e406da76010 | 3,344 | py | Python | stereomag/nets.py | MandyMY/stereo-magnification | c18fa484484597dfa653f317459a503d9bf8d933 | [
"Apache-2.0"
] | null | null | null | stereomag/nets.py | MandyMY/stereo-magnification | c18fa484484597dfa653f317459a503d9bf8d933 | [
"Apache-2.0"
] | null | null | null | stereomag/nets.py | MandyMY/stereo-magnification | c18fa484484597dfa653f317459a503d9bf8d933 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# 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 ag... | 39.809524 | 78 | 0.650718 | 533 | 3,344 | 3.93621 | 0.300188 | 0.095329 | 0.046711 | 0.014299 | 0.157769 | 0.119161 | 0.027645 | 0.027645 | 0 | 0 | 0 | 0.081516 | 0.2186 | 3,344 | 83 | 79 | 40.289157 | 0.721393 | 0.32805 | 0 | 0 | 0 | 0 | 0.060027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.093023 | 0 | 0.139535 | 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 |
888c285859f9179b927cbdc06da726b52d44b5cf | 3,731 | py | Python | tests/test_init.py | ashb/freedesktop-icons | 10737b499bff9a22c853aa20822215c8e059a737 | [
"MIT"
] | 1 | 2021-06-02T11:11:50.000Z | 2021-06-02T11:11:50.000Z | tests/test_init.py | ashb/freedesktop-icons | 10737b499bff9a22c853aa20822215c8e059a737 | [
"MIT"
] | null | null | null | tests/test_init.py | ashb/freedesktop-icons | 10737b499bff9a22c853aa20822215c8e059a737 | [
"MIT"
] | null | null | null | from pathlib import Path
from unittest import mock
import pytest
from freedesktop_icons import Icon, Theme, lookup, lookup_fallback, theme_search_dirs
@pytest.mark.parametrize(
("env", "expected"),
(
("", [Path.home() / '.icons']),
("/foo:", [Path.home() / '.icons', Path('/foo/icons')]),
... | 35.198113 | 100 | 0.729027 | 498 | 3,731 | 5.184739 | 0.13253 | 0.086754 | 0.054222 | 0.08017 | 0.705655 | 0.662665 | 0.634005 | 0.634005 | 0.543377 | 0.543377 | 0 | 0 | 0.1316 | 3,731 | 105 | 101 | 35.533333 | 0.796914 | 0 | 0 | 0.364865 | 0 | 0 | 0.1777 | 0.05977 | 0 | 0 | 0 | 0 | 0.162162 | 1 | 0.108108 | false | 0 | 0.054054 | 0 | 0.162162 | 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 |
8890ba16069cecd8d4ab8ea601bde0d4759bc1b2 | 15,223 | py | Python | code/functions/et_import.py | behinger/etcomp | f30389da49c3416c7a723d44951d197d6e89d40e | [
"MIT"
] | 20 | 2018-08-08T07:08:46.000Z | 2022-03-07T14:49:06.000Z | code/functions/et_import.py | Tsehao/etcomp | 69485f751649090f3df589e40fb515e874be207b | [
"MIT"
] | 32 | 2017-12-05T14:05:48.000Z | 2020-10-20T10:29:43.000Z | code/functions/et_import.py | Tsehao/etcomp | 69485f751649090f3df589e40fb515e874be207b | [
"MIT"
] | 7 | 2018-12-09T22:53:10.000Z | 2021-11-10T09:13:04.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
import os
import logging
from functions.et_helper import findFile,gaze_to_pandas
import functions.et_parse as parse
import functions.et_make_df as make_df
import functions.et_helper as helper
import imp # for edfread reload
im... | 42.522346 | 200 | 0.670564 | 2,017 | 15,223 | 4.920178 | 0.241943 | 0.025393 | 0.016929 | 0.016324 | 0.371927 | 0.329303 | 0.280431 | 0.207477 | 0.135228 | 0.128376 | 0 | 0.018603 | 0.219602 | 15,223 | 358 | 201 | 42.522346 | 0.816751 | 0.312488 | 0 | 0.157895 | 0 | 0.023392 | 0.183931 | 0.037712 | 0 | 0 | 0 | 0.002793 | 0.011696 | 1 | 0.035088 | false | 0 | 0.140351 | 0 | 0.19883 | 0.005848 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
889138e8c38a61134d0f1c1dd8b79dfd0eb55e28 | 768 | py | Python | EXPERIMENT_5/loader.py | PRamoneda/RL_PianoFingering | d9a42c3cb0777c54c1b3e2355128479ef97e8e63 | [
"MIT"
] | 4 | 2021-09-24T13:44:22.000Z | 2022-03-23T14:03:51.000Z | EXPERIMENT_5/loader.py | PRamoneda/RL_PianoFingering | d9a42c3cb0777c54c1b3e2355128479ef97e8e63 | [
"MIT"
] | null | null | null | EXPERIMENT_5/loader.py | PRamoneda/RL_PianoFingering | d9a42c3cb0777c54c1b3e2355128479ef97e8e63 | [
"MIT"
] | 2 | 2022-02-14T10:01:10.000Z | 2022-03-31T15:40:06.000Z | import music21
KEY_TO_SEMITONE = {'c': 0, 'c#': 1, 'db': 1, 'd': 2, 'd#': 3, 'eb': 3, 'e': 4,
'f': 5, 'f#': 6, 'gb': 6, 'g': 7, 'g#': 8, 'ab': 8, 'a': 9,
'a#': 10, 'bb': 10, 'b': 11, 'x': None}
def parse_note(note):
n = KEY_TO_SEMITONE[note[:-1].lower()]
octave = int(no... | 21.333333 | 108 | 0.492188 | 120 | 768 | 3.075 | 0.566667 | 0.0271 | 0.070461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113346 | 0.28776 | 768 | 36 | 109 | 21.333333 | 0.561243 | 0.02474 | 0 | 0 | 0 | 0 | 0.061497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.04 | 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 |
88940ecc81bb7244f9aadc5c0b28b58ae24e3599 | 1,698 | py | Python | v2ex_daily.py | ZHLHZHU/v2ex | b8458b6834eb22fe337146251f2f1bcd2ecb1a92 | [
"MIT"
] | null | null | null | v2ex_daily.py | ZHLHZHU/v2ex | b8458b6834eb22fe337146251f2f1bcd2ecb1a92 | [
"MIT"
] | null | null | null | v2ex_daily.py | ZHLHZHU/v2ex | b8458b6834eb22fe337146251f2f1bcd2ecb1a92 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import re
import http.cookiejar
import urllib.request
# your v2ex cookie value for key [auth] after login
# refer README.md if cannot find cookie [auth]
V2EX_COOKIE = ''
V2EX_DOMAIN = r'v2ex.com'
V2EX_URL_START = r'https://' + V2EX_DOMAIN
V2EX_MISSION = V2EX_U... | 24.257143 | 92 | 0.636631 | 231 | 1,698 | 4.480519 | 0.4329 | 0.027053 | 0.046377 | 0.038647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030116 | 0.237338 | 1,698 | 69 | 93 | 24.608696 | 0.769112 | 0.080683 | 0 | 0 | 0 | 0.019231 | 0.146435 | 0.037251 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0.019231 | 0.173077 | 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 |
8894291bf420c1eeb84dea70fc3a6ddba70429ed | 2,309 | py | Python | read_env.py | sloria/read_env | 90c5a7b38d70f06cd96b5d9a7e68e422bb5bd605 | [
"MIT"
] | null | null | null | read_env.py | sloria/read_env | 90c5a7b38d70f06cd96b5d9a7e68e422bb5bd605 | [
"MIT"
] | 1 | 2017-07-18T20:49:43.000Z | 2017-07-20T15:14:10.000Z | read_env.py | sloria/read_env | 90c5a7b38d70f06cd96b5d9a7e68e422bb5bd605 | [
"MIT"
] | 1 | 2018-04-11T11:55:55.000Z | 2018-04-11T11:55:55.000Z | # -*- coding: utf-8 -*-
import re
import shlex
import os
import inspect
__version__ = '1.1.0'
try:
FileNotFoundError
except NameError: # Python 2
FileNotFoundError = IOError
ENV = '.env'
def read_env(path=None, environ=None, recurse=True):
"""Reads a .env file into ``environ`` (which defaults to ``os.e... | 30.381579 | 85 | 0.603291 | 314 | 2,309 | 4.378981 | 0.39172 | 0.052364 | 0.036364 | 0.049455 | 0.091636 | 0.091636 | 0.091636 | 0.091636 | 0.091636 | 0.064 | 0 | 0.006024 | 0.281074 | 2,309 | 75 | 86 | 30.786667 | 0.822289 | 0.214379 | 0 | 0.096154 | 0 | 0 | 0.037704 | 0.01238 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.134615 | 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 |
889bb7e2d51608191ee475ae210800ea251a72c4 | 2,535 | py | Python | trinity/contextgroup.py | g-r-a-n-t/trinity | f108b6cd34ed9aabfcf9e235badd91597650ecd5 | [
"MIT"
] | 14 | 2020-08-24T18:23:31.000Z | 2021-11-04T14:11:04.000Z | trinity/contextgroup.py | g-r-a-n-t/trinity | f108b6cd34ed9aabfcf9e235badd91597650ecd5 | [
"MIT"
] | 19 | 2020-08-25T15:57:05.000Z | 2021-07-07T00:49:45.000Z | trinity/contextgroup.py | g-r-a-n-t/trinity | f108b6cd34ed9aabfcf9e235badd91597650ecd5 | [
"MIT"
] | 7 | 2020-08-24T22:53:02.000Z | 2022-03-28T18:51:48.000Z | import asyncio
import sys
from types import TracebackType
from typing import Any, AsyncContextManager, List, Optional, Sequence, Tuple, Type
from trio import MultiError
from p2p.asyncio_utils import create_task
class AsyncContextGroup:
def __init__(self, context_managers: Sequence[AsyncContextManager[Any]]) ->... | 40.887097 | 100 | 0.613018 | 300 | 2,535 | 4.99 | 0.363333 | 0.032732 | 0.024048 | 0.034736 | 0.183033 | 0.132265 | 0.132265 | 0.132265 | 0.132265 | 0.132265 | 0 | 0.002269 | 0.304536 | 2,535 | 61 | 101 | 41.557377 | 0.846852 | 0.162919 | 0 | 0.222222 | 0 | 0 | 0.013258 | 0.013258 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.133333 | 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 |
889d4cf4c9e065bcd8eb21c034baa0e27279103e | 895 | py | Python | setup.py | sophilabs/trybox-django | 87776a75e995a903d08b06dc47ec54a7ce796400 | [
"MIT"
] | null | null | null | setup.py | sophilabs/trybox-django | 87776a75e995a903d08b06dc47ec54a7ce796400 | [
"MIT"
] | null | null | null | setup.py | sophilabs/trybox-django | 87776a75e995a903d08b06dc47ec54a7ce796400 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
VERSION = '0.2'
setup(
name='trybox-django',
version=VERSION,
description='TryBox:Django',
author='Sophilabs',
author_email='contact@sophilabs.com',
url='https://github.com/sophilabs/trybox-django',
download_url='http://github.com/sophilabs/trybo... | 34.423077 | 122 | 0.660335 | 95 | 895 | 6.157895 | 0.568421 | 0.123077 | 0.092308 | 0.123077 | 0.160684 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005487 | 0.185475 | 895 | 26 | 123 | 34.423077 | 0.796982 | 0 | 0 | 0 | 0 | 0.041667 | 0.53125 | 0.023438 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
889e2666b623f8c9aac578a42112779d0960a46c | 1,152 | py | Python | bflib/tables/gemsandjewelry/gemtype.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | 3 | 2017-10-28T11:28:38.000Z | 2018-09-12T09:47:00.000Z | bflib/tables/gemsandjewelry/gemtype.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | bflib/tables/gemsandjewelry/gemtype.py | ChrisLR/BasicDungeonRL | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | [
"MIT"
] | null | null | null | from bflib.items import gems
class GemTypeRow(object):
__slots__ = ["min_percent", "max_percent", "gem_type"]
def __init__(self, min_percent, max_percent, gem_type):
self.min_percent = min_percent
self.max_percent = max_percent
self.gem_type = gem_type
class GemTypeTable(object):
... | 32 | 74 | 0.623264 | 141 | 1,152 | 4.921986 | 0.531915 | 0.072046 | 0.073487 | 0.057637 | 0.07781 | 0.07781 | 0 | 0 | 0 | 0 | 0 | 0.070012 | 0.256076 | 1,152 | 35 | 75 | 32.914286 | 0.73979 | 0 | 0 | 0 | 0 | 0 | 0.026042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.034483 | 0.034483 | 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 |
88a1741eae3c2334f95c70dcecbe762feec732c9 | 1,964 | py | Python | tools/python/smessage_encryption.py | radetsky/themis | 18ea2e39a7258e23ca9a5bb642691a9431c63d0b | [
"Apache-2.0"
] | 1,561 | 2015-05-20T05:19:29.000Z | 2022-03-31T17:32:55.000Z | tools/python/smessage_encryption.py | radetsky/themis | 18ea2e39a7258e23ca9a5bb642691a9431c63d0b | [
"Apache-2.0"
] | 536 | 2015-05-20T13:57:08.000Z | 2022-03-15T18:02:59.000Z | tools/python/smessage_encryption.py | radetsky/themis | 18ea2e39a7258e23ca9a5bb642691a9431c63d0b | [
"Apache-2.0"
] | 141 | 2015-05-20T13:22:45.000Z | 2022-03-29T01:29:40.000Z | #
# Copyright (c) 2017 Cossack Labs Limited
#
# 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 i... | 33.288136 | 109 | 0.726578 | 277 | 1,964 | 5.043321 | 0.422383 | 0.057266 | 0.045812 | 0.048676 | 0.280601 | 0.263422 | 0.168933 | 0.108805 | 0.108805 | 0.108805 | 0 | 0.019289 | 0.155295 | 1,964 | 58 | 110 | 33.862069 | 0.822785 | 0.283605 | 0 | 0.285714 | 0 | 0.028571 | 0.145219 | 0.015816 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085714 | 0 | 0.085714 | 0.171429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
88a50848a3ac961cc89962bc6f936cbbfc7cd63c | 819 | py | Python | tests/apps/test_rpc.py | PyCN/pulsar | fee44e871954aa6ca36d00bb5a3739abfdb89b26 | [
"BSD-3-Clause"
] | 1,410 | 2015-01-02T14:55:07.000Z | 2022-03-28T17:22:06.000Z | tests/apps/test_rpc.py | PyCN/pulsar | fee44e871954aa6ca36d00bb5a3739abfdb89b26 | [
"BSD-3-Clause"
] | 194 | 2015-01-22T06:18:24.000Z | 2020-10-20T21:21:58.000Z | tests/apps/test_rpc.py | PyCN/pulsar | fee44e871954aa6ca36d00bb5a3739abfdb89b26 | [
"BSD-3-Clause"
] | 168 | 2015-01-31T10:29:55.000Z | 2022-03-14T10:22:24.000Z | '''Tests the rpc middleware and utilities. It uses the calculator example.'''
import unittest
from pulsar.apps import rpc
from pulsar.apps.http import HttpWsgiClient
class rpcTest(unittest.TestCase):
def proxy(self):
from examples.calculator.manage import Site
http = HttpWsgiClient(Site())
... | 30.333333 | 79 | 0.660562 | 108 | 819 | 4.972222 | 0.518519 | 0.083799 | 0.052142 | 0.052142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02648 | 0.216117 | 819 | 26 | 80 | 31.5 | 0.809969 | 0.086691 | 0 | 0.105263 | 0 | 0 | 0.078167 | 0.030997 | 0 | 0 | 0 | 0 | 0.263158 | 1 | 0.105263 | false | 0 | 0.210526 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
88a9377893db4fc2f5048d2336cea72ff934579e | 888 | py | Python | code/animation/sine-cosine.py | geo7/scientific-visualization-book | 71f6bac4db7ee2f26e88052fe7faa800303d8b00 | [
"BSD-2-Clause"
] | 2 | 2021-11-17T15:10:09.000Z | 2021-12-24T13:31:10.000Z | code/animation/sine-cosine.py | WuShichao/scientific-visualization-book | 389766215aa6b234ed1cf560a3768437d41d1d37 | [
"BSD-2-Clause"
] | 1 | 2021-12-12T11:37:48.000Z | 2021-12-12T11:39:00.000Z | code/animation/sine-cosine.py | WuShichao/scientific-visualization-book | 389766215aa6b234ed1cf560a3768437d41d1d37 | [
"BSD-2-Clause"
] | 2 | 2021-12-30T12:20:07.000Z | 2022-02-24T06:36:41.000Z | # ----------------------------------------------------------------------------
# Title: Scientific Visualisation - Python & Matplotlib
# Author: Nicolas P. Rougier
# License: BSD
# ----------------------------------------------------------------------------
import numpy as np
import matplotlib.pyplot as plt
import m... | 31.714286 | 78 | 0.566441 | 110 | 888 | 4.545455 | 0.554545 | 0.064 | 0.028 | 0.068 | 0.148 | 0.148 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.106982 | 888 | 27 | 79 | 32.888889 | 0.614124 | 0.281532 | 0 | 0 | 0 | 0 | 0.080696 | 0.061709 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 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 |
88ab2de7a369fd311ec763905e71a9bc7d4f2e49 | 2,773 | py | Python | main.py | ghostcodekc/leagueoflegends-block-chat | 0d68345964344410159d834cba81da4224196f87 | [
"MIT"
] | null | null | null | main.py | ghostcodekc/leagueoflegends-block-chat | 0d68345964344410159d834cba81da4224196f87 | [
"MIT"
] | null | null | null | main.py | ghostcodekc/leagueoflegends-block-chat | 0d68345964344410159d834cba81da4224196f87 | [
"MIT"
] | null | null | null | import yaml
import socket
import subprocess, ctypes, os, sys
from subprocess import Popen, DEVNULL
def read_yaml(file_path):
with open(file_path, "r") as f:
return yaml.safe_load(f)
def check_admin():
""" Force to start application with admin rights """
try:
isAdmin = ctypes.windll.shell32... | 36.012987 | 121 | 0.679769 | 371 | 2,773 | 4.843666 | 0.285714 | 0.140234 | 0.151363 | 0.133556 | 0.407902 | 0.318865 | 0.210907 | 0.14079 | 0.114636 | 0.057874 | 0 | 0.004608 | 0.217454 | 2,773 | 77 | 122 | 36.012987 | 0.823502 | 0.072124 | 0 | 0.227273 | 0 | 0.015152 | 0.237049 | 0.028257 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.060606 | 0 | 0.19697 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
88ac260681c50b787cb8306fb30da9bc778c277f | 5,623 | py | Python | src/Leorio/tokenization.py | majiajue/Listed-company-news-crawl-and-text-analysis | fd3b23814039cbe8fbb2e25cbadb68238e0d998b | [
"MIT"
] | 635 | 2018-02-25T08:45:06.000Z | 2022-03-30T10:05:23.000Z | src/Leorio/tokenization.py | NongMaYiSheng/Listed-company-news-crawl-and-text-analysis | fd3b23814039cbe8fbb2e25cbadb68238e0d998b | [
"MIT"
] | 5 | 2018-10-29T16:21:28.000Z | 2022-01-03T12:59:28.000Z | src/Leorio/tokenization.py | NongMaYiSheng/Listed-company-news-crawl-and-text-analysis | fd3b23814039cbe8fbb2e25cbadb68238e0d998b | [
"MIT"
] | 216 | 2018-02-26T09:27:15.000Z | 2022-03-30T10:05:26.000Z | import __init__
from Kite.database import Database
from Kite import config
from Kite import utils
import jieba
import pkuseg
import logging
logging.basicConfig(level=logging.INFO,
format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s',
datefmt='%a, %d %b ... | 44.626984 | 112 | 0.560377 | 617 | 5,623 | 4.776337 | 0.277147 | 0.054293 | 0.029861 | 0.023753 | 0.178487 | 0.147947 | 0.112657 | 0.112657 | 0.112657 | 0.112657 | 0 | 0.005982 | 0.345901 | 5,623 | 125 | 113 | 44.984 | 0.795269 | 0.135515 | 0 | 0.157895 | 0 | 0.010526 | 0.066529 | 0.005992 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.010526 | 0.126316 | 0 | 0.221053 | 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 |
88ade7f8dfd3c3fdb9f4bfa3e09536d509c88764 | 2,659 | py | Python | Server/app/docs/signup.py | Sporrow/Sporrow-Backend | a711f8a25c0b6fdbbeff0a980fbf39a470020e23 | [
"Apache-2.0"
] | null | null | null | Server/app/docs/signup.py | Sporrow/Sporrow-Backend | a711f8a25c0b6fdbbeff0a980fbf39a470020e23 | [
"Apache-2.0"
] | null | null | null | Server/app/docs/signup.py | Sporrow/Sporrow-Backend | a711f8a25c0b6fdbbeff0a980fbf39a470020e23 | [
"Apache-2.0"
] | null | null | null | from app.docs import SAMPLE_OBJECT_IDS
ID_DUPLICATION_CHECK_GET = {
'tags': ['회원가입'],
'description': '이메일이 이미 가입되었는지를 체크(중복체크)합니다.',
'parameters': [
{
'name': 'email',
'description': '중복을 체크할 이메일',
'in': 'path',
'type': 'str',
'required': ... | 22.158333 | 100 | 0.371944 | 205 | 2,659 | 4.765854 | 0.439024 | 0.085977 | 0.092119 | 0.116684 | 0.332651 | 0.269191 | 0.192426 | 0.104401 | 0.104401 | 0.104401 | 0 | 0.023224 | 0.449417 | 2,659 | 119 | 101 | 22.344538 | 0.644126 | 0 | 0 | 0.443478 | 0 | 0.008696 | 0.345995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.008696 | 0 | 0.008696 | 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 |
88b1ab4a72c456e8f8edbf2cf4dc0a0cd36b09d4 | 517 | py | Python | my_lambdata/my_mod.py | tatianaportsova/Lambdata_12 | 4cab1dc4f65d479b8f2919155c4bb6b58243d8db | [
"MIT"
] | null | null | null | my_lambdata/my_mod.py | tatianaportsova/Lambdata_12 | 4cab1dc4f65d479b8f2919155c4bb6b58243d8db | [
"MIT"
] | null | null | null | my_lambdata/my_mod.py | tatianaportsova/Lambdata_12 | 4cab1dc4f65d479b8f2919155c4bb6b58243d8db | [
"MIT"
] | null | null | null | # my_lambdata/my_mod.py
def enlarge(n):
"""
Param n is a number
Function will enlarge the number
"""
return n * 100
# this code breakes our ability to omport enlarge from other files
# print("HELLO")
# y = int(input("Please choose a number"))
# print(y, enlarge(y))
if __name__ == "__main__":
... | 21.541667 | 67 | 0.651838 | 80 | 517 | 4.0875 | 0.575 | 0.06422 | 0.067278 | 0.085627 | 0.318043 | 0.318043 | 0.318043 | 0.318043 | 0.318043 | 0.318043 | 0 | 0.007614 | 0.237911 | 517 | 23 | 68 | 22.478261 | 0.822335 | 0.60735 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
88b2a19329a06c11a7f27402a51fc753d23d3562 | 1,291 | py | Python | DB_resource/code/ci.py | DaiShuHeng/shiyizhonghua_resource | 6faa284292102ab97438f356cf9bf69d2472335b | [
"Apache-2.0"
] | null | null | null | DB_resource/code/ci.py | DaiShuHeng/shiyizhonghua_resource | 6faa284292102ab97438f356cf9bf69d2472335b | [
"Apache-2.0"
] | 1 | 2021-11-29T03:38:21.000Z | 2021-11-29T03:38:21.000Z | DB_resource/code/ci.py | DaiShuHeng/shiyizhonghua_resource | 6faa284292102ab97438f356cf9bf69d2472335b | [
"Apache-2.0"
] | 13 | 2021-11-06T03:17:45.000Z | 2021-12-02T15:12:54.000Z | # -*- coding: utf-8 -*-
"""
Author:by 王林清 on 2021/11/2 13:02
FileName:ci.py in shiyizhonghua_resource
Tools:PyCharm python3.8.4
"""
from util import get_time_str, get_json, get_file_path, save_json, \
save_split_json
if __name__ == '__main__':
dir_name = r'./../data/ci'
authors = {}
ci_jsons = []
... | 26.346939 | 68 | 0.473277 | 141 | 1,291 | 4.056738 | 0.48227 | 0.036713 | 0.034965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020752 | 0.402789 | 1,291 | 48 | 69 | 26.895833 | 0.721141 | 0.0945 | 0 | 0 | 0 | 0 | 0.122308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028571 | 0 | 0.028571 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
88b2a9e556e312a49635b929210b47f14c9cd821 | 2,307 | py | Python | tools/pfif-tools/app/settings.py | priyanshu-kumar02/personfinder | d5390b60709cd0ccaaade9a3b6224a60cd523ed9 | [
"Apache-2.0"
] | 561 | 2015-02-16T07:59:42.000Z | 2022-03-30T17:31:21.000Z | tools/pfif-tools/app/settings.py | Anthonymcqueen21/personfinder | ee7791fbc434eb4ec5cfad449288a1e884db5b1e | [
"Apache-2.0"
] | 591 | 2015-01-30T05:09:30.000Z | 2022-02-26T09:31:25.000Z | tools/pfif-tools/app/settings.py | Anthonymcqueen21/personfinder | ee7791fbc434eb4ec5cfad449288a1e884db5b1e | [
"Apache-2.0"
] | 258 | 2015-01-25T18:35:12.000Z | 2021-12-25T01:44:14.000Z | # Copyright 2019 Google Inc.
#
# 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,... | 26.825581 | 80 | 0.706545 | 313 | 2,307 | 5.134185 | 0.584665 | 0.037337 | 0.013068 | 0.019913 | 0.036092 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007605 | 0.201994 | 2,307 | 85 | 81 | 27.141176 | 0.865291 | 0.513654 | 0 | 0 | 0 | 0 | 0.391067 | 0.28897 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.026316 | 0 | 0.026316 | 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 |
88b4ec64c6302ef8adda35ec81fbd48bb0e0a469 | 2,379 | py | Python | tests/test_types.py | RodrigoDeRosa/related | 3799cde862b8c9500931706f5f1ce5576028f642 | [
"MIT"
] | 190 | 2017-05-25T11:57:15.000Z | 2022-03-17T01:44:53.000Z | tests/test_types.py | RodrigoDeRosa/related | 3799cde862b8c9500931706f5f1ce5576028f642 | [
"MIT"
] | 42 | 2017-06-11T14:05:11.000Z | 2021-12-14T21:12:07.000Z | tests/test_types.py | RodrigoDeRosa/related | 3799cde862b8c9500931706f5f1ce5576028f642 | [
"MIT"
] | 18 | 2018-01-05T08:47:30.000Z | 2022-01-28T06:24:05.000Z | # coding=utf-8
from related.types import TypedSequence, TypedMapping, TypedSet, ImmutableDict
from attr.exceptions import FrozenInstanceError
from related.converters import str_if_not_none
from collections import OrderedDict
import pytest
def test_immutable_dict():
immutable = ImmutableDict(dict(a=1))
with p... | 21.432432 | 78 | 0.628415 | 322 | 2,379 | 4.568323 | 0.204969 | 0.067981 | 0.10877 | 0.040789 | 0.375255 | 0.292998 | 0.260367 | 0.260367 | 0.260367 | 0.17811 | 0 | 0.015008 | 0.2438 | 2,379 | 110 | 79 | 21.627273 | 0.802112 | 0.005044 | 0 | 0.302632 | 0 | 0 | 0.018605 | 0 | 0 | 0 | 0 | 0 | 0.381579 | 1 | 0.065789 | false | 0 | 0.065789 | 0 | 0.131579 | 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 |
88b6a45922cec7be62ee13004dcced019e40a855 | 2,203 | py | Python | ex115Library/home.py | pepev123/PythonEx | 8f39751bf87a9099d7b733aa829988595dab2344 | [
"MIT"
] | null | null | null | ex115Library/home.py | pepev123/PythonEx | 8f39751bf87a9099d7b733aa829988595dab2344 | [
"MIT"
] | null | null | null | ex115Library/home.py | pepev123/PythonEx | 8f39751bf87a9099d7b733aa829988595dab2344 | [
"MIT"
] | null | null | null | def inicio():
print('\033[33m=' * 60)
print('MENU PRINCIPAL'.center(50))
print('=' * 60)
print('\033[34m1\033[m - \033[35mCadastrar nova pessoa\033[m')
print('\033[34m2\033[m - \033[35mVer pessoas cadastradas\033[m')
print('\033[34m3\033[m - \033[35mSair do Sistema\033[m')
print('\033[33m=\0... | 28.61039 | 77 | 0.523831 | 264 | 2,203 | 4.371212 | 0.329545 | 0.076257 | 0.057192 | 0.033795 | 0.361352 | 0.214038 | 0.199307 | 0.199307 | 0.081456 | 0.081456 | 0 | 0.094758 | 0.324557 | 2,203 | 77 | 78 | 28.61039 | 0.68078 | 0 | 0 | 0.478873 | 0 | 0 | 0.30127 | 0.011343 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084507 | false | 0 | 0 | 0 | 0.126761 | 0.338028 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
31eefe99531de5ae9af50c89852e0a1767f078c7 | 12,523 | py | Python | dpia/views/threats.py | ait-csr/dpia-tool | 458f106e25b1d3bd2f07fd9df18bde880f4edc4a | [
"MIT"
] | 4 | 2018-12-25T05:53:17.000Z | 2022-02-07T10:07:06.000Z | dpia/views/threats.py | ait-csr/dpia-tool | 458f106e25b1d3bd2f07fd9df18bde880f4edc4a | [
"MIT"
] | 9 | 2020-02-12T00:57:33.000Z | 2022-03-11T23:24:13.000Z | dpia/views/threats.py | CSR-AIT/dpia-tool | 458f106e25b1d3bd2f07fd9df18bde880f4edc4a | [
"MIT"
] | null | null | null | from dpia.modules import *
# @primary_assets_required
# @supporting_assets_required
@login_required
def threat_identification(request, q_id=None):
'''
Shows a list of the added supporting assets which are assigned to a primary asset.
The user here selects threats from the list of generic threats or adds a ... | 45.046763 | 231 | 0.649844 | 1,497 | 12,523 | 5.185705 | 0.137609 | 0.043282 | 0.019838 | 0.019838 | 0.600541 | 0.54296 | 0.498519 | 0.448023 | 0.404998 | 0.360943 | 0 | 0.004521 | 0.258245 | 12,523 | 277 | 232 | 45.209386 | 0.831198 | 0.19556 | 0 | 0.626316 | 0 | 0 | 0.131579 | 0.027627 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031579 | false | 0 | 0.005263 | 0 | 0.089474 | 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 |
31efc2692f61977bbe23784db9dd5034a2c6c959 | 1,153 | py | Python | Week 2/id_165/LeetCode_105_165.py | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | 1 | 2019-10-12T06:48:45.000Z | 2019-10-12T06:48:45.000Z | Week 2/id_165/LeetCode_105_165.py | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | 1 | 2019-12-01T10:02:03.000Z | 2019-12-01T10:02:03.000Z | Week 2/id_165/LeetCode_105_165.py | larryRishi/algorithm004-05 | e60d0b1176acd32a9184b215e36d4122ba0b6263 | [
"Apache-2.0"
] | null | null | null | # 根据一棵树的前序遍历与中序遍历构造二叉树。
#
# 注意:
# 你可以假设树中没有重复的元素。
#
# 例如,给出
#
# 前序遍历 preorder = [3,9,20,15,7]
# 中序遍历 inorder = [9,3,15,20,7]
#
# 返回如下的二叉树:
#
# 3
# / \
# 9 20
# / \
# 15 7
# Related Topics 树 深度优先搜索 数组
# leetcode submit region begin(Prohibit modification and deletion)
# Definition for a binary tree node... | 19.542373 | 90 | 0.608846 | 134 | 1,153 | 5.208955 | 0.455224 | 0.06447 | 0.10745 | 0.017192 | 0.020057 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032335 | 0.275802 | 1,153 | 58 | 91 | 19.87931 | 0.803593 | 0.356461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0 | 0 | 0.470588 | 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 |
31f50a275cce9e7222985c09de6a704fd2d856df | 1,575 | py | Python | pyACA/PitchTimeAmdf.py | ruohoruotsi/pyACA | 339e9395b65a217aa5965638af941b32d5c95454 | [
"MIT"
] | null | null | null | pyACA/PitchTimeAmdf.py | ruohoruotsi/pyACA | 339e9395b65a217aa5965638af941b32d5c95454 | [
"MIT"
] | null | null | null | pyACA/PitchTimeAmdf.py | ruohoruotsi/pyACA | 339e9395b65a217aa5965638af941b32d5c95454 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
computes the lag of the amdf function
Args:
x: audio signal
iBlockLength: block length in samples
iHopLength: hop length in samples
f_s: sample rate of audio data (unused)
Returns:
f frequency
t time stamp for the frequency value
"""
import numpy as np
impo... | 23.161765 | 97 | 0.581587 | 243 | 1,575 | 3.662551 | 0.36214 | 0.013483 | 0.040449 | 0.022472 | 0.07191 | 0.047191 | 0.047191 | 0.047191 | 0 | 0 | 0 | 0.024259 | 0.293333 | 1,575 | 67 | 98 | 23.507463 | 0.775382 | 0.256508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.068966 | 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 |
31f5cac689f164c99d0da2f1eb8dc6d483e34f4e | 6,878 | py | Python | trainfile/mfeam_shapenet-spix-disc.py | aabbcco/ssn-3d-pytorch | 3b5a1bb807ce751b03501772ed9da48ac7f9f30b | [
"MIT"
] | null | null | null | trainfile/mfeam_shapenet-spix-disc.py | aabbcco/ssn-3d-pytorch | 3b5a1bb807ce751b03501772ed9da48ac7f9f30b | [
"MIT"
] | null | null | null | trainfile/mfeam_shapenet-spix-disc.py | aabbcco/ssn-3d-pytorch | 3b5a1bb807ce751b03501772ed9da48ac7f9f30b | [
"MIT"
] | null | null | null | import os
import math
import numpy as np
import time
import torch
import torch.optim as optim
from torch.utils.data import DataLoader
from tensorboardX import SummaryWriter
import sys
sys.path.append(os.path.dirname("../"))
from lib.utils.meter import Meter
from models.model_MNFEAM import MFEAM_SSN
from lib.dataset.s... | 35.453608 | 112 | 0.577639 | 787 | 6,878 | 4.864041 | 0.27446 | 0.028213 | 0.053292 | 0.017241 | 0.177638 | 0.071055 | 0.071055 | 0.071055 | 0.071055 | 0.071055 | 0 | 0.009263 | 0.309392 | 6,878 | 193 | 113 | 35.637306 | 0.796632 | 0.153969 | 0 | 0.086957 | 0 | 0 | 0.093521 | 0.013758 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.108696 | 0 | 0.15942 | 0.007246 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
31f62416b0ccc5186e179c986b3ee82c422d3de0 | 5,226 | py | Python | venv/Lib/site-packages/networkx/algorithms/tests/test_structuralholes.py | amelliaaas/tugastkc4 | f442382c72379e911f3780543b95345a3b1c9407 | [
"Apache-2.0"
] | 10,024 | 2015-01-01T13:06:43.000Z | 2022-03-31T12:45:25.000Z | venv/Lib/site-packages/networkx/algorithms/tests/test_structuralholes.py | amelliaaas/tugastkc4 | f442382c72379e911f3780543b95345a3b1c9407 | [
"Apache-2.0"
] | 3,191 | 2015-01-01T18:13:11.000Z | 2022-03-31T22:06:00.000Z | venv/Lib/site-packages/networkx/algorithms/tests/test_structuralholes.py | amelliaaas/tugastkc4 | f442382c72379e911f3780543b95345a3b1c9407 | [
"Apache-2.0"
] | 3,272 | 2015-01-01T05:04:53.000Z | 2022-03-31T17:46:35.000Z | """Unit tests for the :mod:`networkx.algorithms.structuralholes` module."""
import math
import pytest
import networkx as nx
class TestStructuralHoles:
"""Unit tests for computing measures of structural holes.
The expected values for these functions were originally computed using the
proprietary software ... | 39 | 79 | 0.580559 | 721 | 5,226 | 4.072122 | 0.165049 | 0.168256 | 0.036785 | 0.049046 | 0.729223 | 0.652248 | 0.604223 | 0.541894 | 0.533038 | 0.452997 | 0 | 0.048554 | 0.259089 | 5,226 | 133 | 80 | 39.293233 | 0.709711 | 0.095484 | 0 | 0.301887 | 0 | 0 | 0.027079 | 0 | 0 | 0 | 0 | 0 | 0.283019 | 1 | 0.122642 | false | 0 | 0.028302 | 0 | 0.160377 | 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 |
31fb74a7001125577af1d8ec0c7f1936437a0db6 | 19,069 | py | Python | AssetAllocation.py | MomsLasanga/AssetAllocation | 3729da4f73402d9162c444636002a964f26e40eb | [
"CC0-1.0"
] | null | null | null | AssetAllocation.py | MomsLasanga/AssetAllocation | 3729da4f73402d9162c444636002a964f26e40eb | [
"CC0-1.0"
] | null | null | null | AssetAllocation.py | MomsLasanga/AssetAllocation | 3729da4f73402d9162c444636002a964f26e40eb | [
"CC0-1.0"
] | null | null | null | """
Asset Allocation
By Patrick Murrell
Created 6/17/2020
This program that takes a csv positions file from fidelity.com from a Roth IRA account that contains the
investments of SPAXX, FXNAX, FZILX, and FZROX. Since SPAXX is a Money Market fund then it is assumed that the money in
here is not meant to be calcul... | 60.536508 | 121 | 0.679637 | 2,468 | 19,069 | 5.079822 | 0.184765 | 0.017947 | 0.023052 | 0.031188 | 0.320491 | 0.228683 | 0.155141 | 0.090851 | 0.065327 | 0.036691 | 0 | 0.015168 | 0.235933 | 19,069 | 314 | 122 | 60.729299 | 0.845299 | 0.254182 | 0 | 0.059289 | 0 | 0 | 0.068123 | 0.003182 | 0.003953 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.019763 | 0 | 0.075099 | 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 |
31fb8c91aed632440a47a6131c0345c5540769ba | 919 | py | Python | setup.py | matsurih/pyknp | e4d0756868676a0c2058dbc0d8dfa77102fe0ba4 | [
"BSD-3-Clause"
] | null | null | null | setup.py | matsurih/pyknp | e4d0756868676a0c2058dbc0d8dfa77102fe0ba4 | [
"BSD-3-Clause"
] | null | null | null | setup.py | matsurih/pyknp | e4d0756868676a0c2058dbc0d8dfa77102fe0ba4 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
__author__ = 'Kurohashi-Kawahara Lab, Kyoto Univ.'
__email__ = 'contact@nlp.ist.i.kyoto-u.ac.jp'
__copyright__ = ''
__license__ = 'See COPYING'
import os
from setuptools import setup, find_packages
about = {}
here = os.path.abspath(os.path.dirname(__file__))
exec(open(os.path.join(here, 'pyknp'... | 27.029412 | 71 | 0.709467 | 115 | 919 | 5.156522 | 0.617391 | 0.10118 | 0.064081 | 0.10118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001264 | 0.139282 | 919 | 33 | 72 | 27.848485 | 0.74842 | 0.021763 | 0 | 0 | 0 | 0 | 0.25167 | 0.063474 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.074074 | 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 |
31fbbf24a86c0801f6f0f2045710204934802521 | 1,729 | py | Python | src/api/store/export.py | gregory-chekler/api | 11ecbea945e7eb6fa677a0c0bb32bda51ba15f28 | [
"MIT"
] | null | null | null | src/api/store/export.py | gregory-chekler/api | 11ecbea945e7eb6fa677a0c0bb32bda51ba15f28 | [
"MIT"
] | null | null | null | src/api/store/export.py | gregory-chekler/api | 11ecbea945e7eb6fa677a0c0bb32bda51ba15f28 | [
"MIT"
] | null | null | null | from database.models import Team, UserProfile
from _main_.utils.massenergize_errors import MassEnergizeAPIError, InvalidResourceError, ServerError, CustomMassenergizeError
from _main_.utils.massenergize_response import MassenergizeResponse
from _main_.utils.context import Context
class TeamStore:
def __init__(self):... | 29.810345 | 125 | 0.717178 | 210 | 1,729 | 5.7 | 0.261905 | 0.030075 | 0.071011 | 0.047619 | 0.387636 | 0.3467 | 0.31746 | 0.31746 | 0.292398 | 0.292398 | 0 | 0 | 0.188548 | 1,729 | 58 | 126 | 29.810345 | 0.853172 | 0 | 0 | 0.409091 | 0 | 0 | 0.007514 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.568182 | 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 |
31fbec348a03e3f7b7667b0fb7f3d122e939f326 | 1,125 | py | Python | valid_parentheses.py | fossilet/leetcode | 4cf787c74fc339dc6aee6a0b633ca15b38ac18a1 | [
"MIT"
] | 5 | 2015-12-10T14:19:02.000Z | 2021-07-02T01:23:34.000Z | valid_parentheses.py | fossilet/leetcode | 4cf787c74fc339dc6aee6a0b633ca15b38ac18a1 | [
"MIT"
] | null | null | null | valid_parentheses.py | fossilet/leetcode | 4cf787c74fc339dc6aee6a0b633ca15b38ac18a1 | [
"MIT"
] | 1 | 2015-10-01T01:43:14.000Z | 2015-10-01T01:43:14.000Z | """
https://oj.leetcode.com/problems/valid-parentheses/
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not.
"""
class Solution:
# @return ... | 30.405405 | 118 | 0.441778 | 126 | 1,125 | 3.880952 | 0.412698 | 0.114519 | 0.171779 | 0.139059 | 0.294479 | 0.294479 | 0.294479 | 0.294479 | 0.212679 | 0.132924 | 0 | 0 | 0.352 | 1,125 | 36 | 119 | 31.25 | 0.670782 | 0.264889 | 0 | 0.083333 | 0 | 0 | 0.052503 | 0 | 0 | 0 | 0 | 0 | 0.291667 | 1 | 0.041667 | false | 0 | 0 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31ffd8fdd3242dbfb70cd647f01afb511ece19be | 315 | py | Python | settings/tests/test_global_settings.py | stanwood/traidoo-api | 83e8599f2eb54352988bac27e2d4acd30734816d | [
"MIT"
] | 3 | 2020-05-05T12:12:09.000Z | 2020-05-08T08:48:16.000Z | settings/tests/test_global_settings.py | stanwood/traidoo-api | 83e8599f2eb54352988bac27e2d4acd30734816d | [
"MIT"
] | 160 | 2020-05-19T13:03:43.000Z | 2022-03-12T00:35:28.000Z | settings/tests/test_global_settings.py | stanwood/traidoo-api | 83e8599f2eb54352988bac27e2d4acd30734816d | [
"MIT"
] | null | null | null | import pytest
from model_bakery import baker
pytestmark = pytest.mark.django_db
def test_get_global_settings(client_anonymous):
settings = baker.make_recipe("settings.global_setting")
response = client_anonymous.get("/global_settings")
assert response.json() == {"productVat": settings.product_vat}
| 26.25 | 66 | 0.780952 | 39 | 315 | 6.025641 | 0.666667 | 0.076596 | 0.144681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120635 | 315 | 11 | 67 | 28.636364 | 0.848375 | 0 | 0 | 0 | 0 | 0 | 0.155556 | 0.073016 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 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 |
ee02c3e71989e00196fcabde81e3802364cd921e | 3,679 | py | Python | em_net/util/misc.py | weihuang527/superhuman_network | a89820bda4d0006198bac3bb5922a958ac87f2ae | [
"MIT"
] | null | null | null | em_net/util/misc.py | weihuang527/superhuman_network | a89820bda4d0006198bac3bb5922a958ac87f2ae | [
"MIT"
] | null | null | null | em_net/util/misc.py | weihuang527/superhuman_network | a89820bda4d0006198bac3bb5922a958ac87f2ae | [
"MIT"
] | null | null | null | import sys
import numpy as np
import h5py
import random
import os
from subprocess import check_output
# 1. h5 i/o
def readh5(filename, datasetname):
data=np.array(h5py.File(filename,'r')[datasetname])
return data
def writeh5(filename, datasetname, dtarray):
# reduce redundant
fid=h5py.File(filename,... | 33.144144 | 131 | 0.611579 | 597 | 3,679 | 3.710218 | 0.231156 | 0.026185 | 0.032506 | 0.036117 | 0.306998 | 0.21535 | 0.21535 | 0.210384 | 0.167043 | 0.13228 | 0 | 0.052189 | 0.192715 | 3,679 | 110 | 132 | 33.445455 | 0.693603 | 0.097037 | 0 | 0.194805 | 0 | 0 | 0.004202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116883 | false | 0 | 0.116883 | 0 | 0.311688 | 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 |
ee02e152f754c131475d2144d7eda38e3e662a80 | 3,277 | py | Python | Examples/VisualizationAlgorithms/Python/warpComb.py | satya-arjunan/vtk8 | ee7ced57de6d382a2d12693c01e2fcdac350b25f | [
"BSD-3-Clause"
] | 3 | 2015-07-28T18:07:50.000Z | 2018-02-28T20:59:58.000Z | Examples/VisualizationAlgorithms/Python/warpComb.py | satya-arjunan/vtk8 | ee7ced57de6d382a2d12693c01e2fcdac350b25f | [
"BSD-3-Clause"
] | 14 | 2015-04-25T17:54:13.000Z | 2017-01-13T15:30:39.000Z | Examples/VisualizationAlgorithms/Python/warpComb.py | satya-arjunan/vtk8 | ee7ced57de6d382a2d12693c01e2fcdac350b25f | [
"BSD-3-Clause"
] | 5 | 2020-10-02T10:14:35.000Z | 2022-03-10T07:50:22.000Z | #!/usr/bin/env python
# This example demonstrates how to extract "computational planes" from
# a structured dataset. Structured data has a natural, logical
# coordinate system based on i-j-k indices. Specifying imin,imax,
# jmin,jmax, kmin,kmax pairs can indicate a point, line, plane, or
# volume of data.
#
# In this ... | 35.236559 | 70 | 0.790357 | 435 | 3,277 | 5.926437 | 0.485057 | 0.023274 | 0.034135 | 0.00931 | 0.018619 | 0.018619 | 0 | 0 | 0 | 0 | 0 | 0.0541 | 0.103143 | 3,277 | 92 | 71 | 35.619565 | 0.823069 | 0.32072 | 0 | 0 | 0 | 0 | 0.014519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 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 |
ee05a479ec4cb10a4599fc18fc14885ce8e8c098 | 1,751 | py | Python | examples/console/a_in.py | Picarro-kskog/mcculw | 5a00dfbef2426772f0ec381f7795a2d5fd696a76 | [
"MIT"
] | null | null | null | examples/console/a_in.py | Picarro-kskog/mcculw | 5a00dfbef2426772f0ec381f7795a2d5fd696a76 | [
"MIT"
] | null | null | null | examples/console/a_in.py | Picarro-kskog/mcculw | 5a00dfbef2426772f0ec381f7795a2d5fd696a76 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, division, print_function
from builtins import * # @UnusedWildImport
from mcculw import ul
from mcculw.ul import ULError
from examples.console import util
from examples.props.ai import AnalogInputProps
use_device_detection = True
def run_example():
board_num = 0
if... | 29.677966 | 76 | 0.65791 | 235 | 1,751 | 4.604255 | 0.344681 | 0.066543 | 0.049908 | 0.036969 | 0.292052 | 0.214418 | 0.214418 | 0.15342 | 0.15342 | 0.15342 | 0 | 0.013333 | 0.271845 | 1,751 | 58 | 77 | 30.189655 | 0.835294 | 0.186179 | 0 | 0.111111 | 0 | 0 | 0.046643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.166667 | 0 | 0.25 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee05eaf652dcacea5d625e928ba76476b8f2f36d | 721 | py | Python | Communication_adaptor/OOCSI/main.py | tahir80/Crowd_of_Oz | a79e1e8a10b99879aeff83b00ef89b480c8d168c | [
"MIT"
] | null | null | null | Communication_adaptor/OOCSI/main.py | tahir80/Crowd_of_Oz | a79e1e8a10b99879aeff83b00ef89b480c8d168c | [
"MIT"
] | 3 | 2021-03-19T03:45:27.000Z | 2022-01-13T01:38:22.000Z | Communication_adaptor/OOCSI/main.py | tahir80/Crowd_of_Oz | a79e1e8a10b99879aeff83b00ef89b480c8d168c | [
"MIT"
] | 2 | 2020-02-19T13:58:03.000Z | 2022-01-17T19:42:02.000Z | from oocsi import OOCSI
from NAO_Speak import NAO_Speak # (file name followed by class name)
import unidecode
#################################
IP = "IP_OF_PEPPER_ROBOT"
text = ""
my_nao = NAO_Speak(IP, 9559)
##################################
def receiveEvent(sender, recipient, event):
print('from ', sender, ' ... | 25.75 | 69 | 0.599168 | 90 | 721 | 4.544444 | 0.555556 | 0.05868 | 0.0489 | 0.05868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011864 | 0.181692 | 721 | 27 | 70 | 26.703704 | 0.681356 | 0.195562 | 0 | 0 | 0 | 0 | 0.182711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.25 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ee06d5c5bec6e01c97e370a892a4bf6a429c5e09 | 8,161 | py | Python | CS305_Computer-Network/Lab6-cdn-dash/web_file_system_server.py | Eveneko/SUSTech-Courses | 0420873110e91e8d13e6e85a974f1856e01d28d6 | [
"MIT"
] | 4 | 2020-11-11T11:56:57.000Z | 2021-03-11T10:05:09.000Z | CS305_Computer-Network/Lab6-cdn-dash/web_file_system_server.py | Eveneko/SUSTech-Courses | 0420873110e91e8d13e6e85a974f1856e01d28d6 | [
"MIT"
] | null | null | null | CS305_Computer-Network/Lab6-cdn-dash/web_file_system_server.py | Eveneko/SUSTech-Courses | 0420873110e91e8d13e6e85a974f1856e01d28d6 | [
"MIT"
] | 3 | 2021-01-07T04:14:11.000Z | 2021-04-27T13:41:36.000Z | # encoding:utf-8
import asyncio
import os
import mimetypes
from urllib import parse
response = {
# 200: [b'HTTP/1.0 200 OK\r\n', # 正常的response
# b'Connection: close\r\n',
# b'Content-Type:text/html; charset=utf-8\r\n',
# b'\r\n'],
404: [b'HTTP/1.0 404 Not Found\r\n', # 请求文件不存在的r... | 36.433036 | 110 | 0.527754 | 1,056 | 8,161 | 3.989583 | 0.189394 | 0.020413 | 0.009969 | 0.022787 | 0.316639 | 0.239497 | 0.202943 | 0.145502 | 0.138856 | 0.138856 | 0 | 0.021739 | 0.306703 | 8,161 | 223 | 111 | 36.596413 | 0.72287 | 0.107585 | 0 | 0.299435 | 0 | 0 | 0.197398 | 0.026581 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011299 | false | 0.011299 | 0.022599 | 0 | 0.062147 | 0.045198 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee0caea10657e730ca0edcf6cea3ad5049994afa | 2,111 | py | Python | rally/rally-plugins/glance/glance_create_boot_delete.py | jsitnicki/browbeat | f5f9dcef2375a28fed8cc97f973eeecabd2114b7 | [
"Apache-2.0"
] | null | null | null | rally/rally-plugins/glance/glance_create_boot_delete.py | jsitnicki/browbeat | f5f9dcef2375a28fed8cc97f973eeecabd2114b7 | [
"Apache-2.0"
] | null | null | null | rally/rally-plugins/glance/glance_create_boot_delete.py | jsitnicki/browbeat | f5f9dcef2375a28fed8cc97f973eeecabd2114b7 | [
"Apache-2.0"
] | 1 | 2019-12-01T14:35:28.000Z | 2019-12-01T14:35:28.000Z | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed ... | 50.261905 | 98 | 0.732828 | 272 | 2,111 | 5.540441 | 0.426471 | 0.041805 | 0.031851 | 0.049768 | 0.067684 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002273 | 0.166272 | 2,111 | 41 | 99 | 51.487805 | 0.853977 | 0.252487 | 0 | 0 | 0 | 0 | 0.111893 | 0.025575 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.269231 | 0 | 0.346154 | 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 |
ee0cf6c256acb1e19d545ad5310115b214f0b6ae | 11,168 | py | Python | Evaluation/hbm_axpy_dot_based.py | jnice-81/FpgaHbmForDaCe | b80749524264b4884cbd852d2db825cf8a6007aa | [
"BSD-3-Clause"
] | null | null | null | Evaluation/hbm_axpy_dot_based.py | jnice-81/FpgaHbmForDaCe | b80749524264b4884cbd852d2db825cf8a6007aa | [
"BSD-3-Clause"
] | null | null | null | Evaluation/hbm_axpy_dot_based.py | jnice-81/FpgaHbmForDaCe | b80749524264b4884cbd852d2db825cf8a6007aa | [
"BSD-3-Clause"
] | null | null | null | from typing import List
import dace
from dace import subsets
from dace import memlet
from dace import dtypes
from dace.sdfg.sdfg import InterstateEdge, SDFG
from dace.sdfg.state import SDFGState
from dace.transformation.interstate.sdfg_nesting import NestSDFG
from dace.transformation.optimizer import Optimizer
from dac... | 46.92437 | 115 | 0.689201 | 1,642 | 11,168 | 4.4324 | 0.13581 | 0.042869 | 0.069662 | 0.039297 | 0.513053 | 0.471833 | 0.413438 | 0.369195 | 0.355455 | 0.327013 | 0 | 0.01232 | 0.171472 | 11,168 | 238 | 116 | 46.92437 | 0.774235 | 0.051218 | 0 | 0.151351 | 0 | 0 | 0.080659 | 0.017893 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.102703 | 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 |
ee0db8b98c1815168cdf176d5c487ac08d4df051 | 1,134 | py | Python | aiida_vasp/parsers/file_parsers/wavecar.py | muhrin/aiida-vasp | 641fdc2ccd40bdd041e59af1fa3e1dcf9b037415 | [
"MIT"
] | 1 | 2021-06-13T09:13:01.000Z | 2021-06-13T09:13:01.000Z | aiida_vasp/parsers/file_parsers/wavecar.py | muhrin/aiida-vasp | 641fdc2ccd40bdd041e59af1fa3e1dcf9b037415 | [
"MIT"
] | null | null | null | aiida_vasp/parsers/file_parsers/wavecar.py | muhrin/aiida-vasp | 641fdc2ccd40bdd041e59af1fa3e1dcf9b037415 | [
"MIT"
] | null | null | null | """
WAVECAR parser.
---------------
The file parser that handles the parsing of WAVECAR files.
"""
from aiida_vasp.parsers.file_parsers.parser import BaseFileParser
from aiida_vasp.parsers.node_composer import NodeComposer
class WavecarParser(BaseFileParser):
"""Add WAVECAR as a single file node."""
PARSABL... | 25.2 | 65 | 0.591711 | 121 | 1,134 | 5.347107 | 0.429752 | 0.068006 | 0.040185 | 0.061824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1,134 | 44 | 66 | 25.772727 | 0.798765 | 0.145503 | 0 | 0 | 0 | 0 | 0.066246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.071429 | 0 | 0.357143 | 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 |
ee0f6bdca365641ee9474e0436ab4c38b5187dad | 4,184 | py | Python | waflib/package.py | fannymagnet/cwaf | 60510f3596f1ee859ea73a50ee56dd636cde14b4 | [
"Apache-2.0"
] | null | null | null | waflib/package.py | fannymagnet/cwaf | 60510f3596f1ee859ea73a50ee56dd636cde14b4 | [
"Apache-2.0"
] | null | null | null | waflib/package.py | fannymagnet/cwaf | 60510f3596f1ee859ea73a50ee56dd636cde14b4 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
# encoding: utf-8
import re
import os
import subprocess
import json
class Package:
def __init__(self) -> None:
self.manager = ""
self.name = ""
self.version = ""
def toString(self):
print('package manager:' + self.manager)
print('package name:' ... | 28.462585 | 76 | 0.546845 | 452 | 4,184 | 4.884956 | 0.247788 | 0.048913 | 0.019928 | 0.027174 | 0.144022 | 0.103261 | 0.052536 | 0.052536 | 0.052536 | 0.052536 | 0 | 0.001459 | 0.344885 | 4,184 | 146 | 77 | 28.657534 | 0.804086 | 0.019598 | 0 | 0.158879 | 0 | 0 | 0.07176 | 0 | 0 | 0 | 0 | 0.006849 | 0 | 1 | 0.121495 | false | 0.009346 | 0.037383 | 0 | 0.196262 | 0.065421 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee0fd6c103aa5c0dda88b9b7d6ada7be67c461d9 | 16,951 | py | Python | excut/embedding/ampligraph_extend/EmbeddingModelContinue.py | mhmgad/ExCut | 09e943a23207381de3c3a9e6f70015882b8ec4af | [
"Apache-2.0"
] | 5 | 2020-11-17T19:59:49.000Z | 2021-09-23T23:10:39.000Z | excut/embedding/ampligraph_extend/EmbeddingModelContinue.py | mhmgad/ExCut | 09e943a23207381de3c3a9e6f70015882b8ec4af | [
"Apache-2.0"
] | null | null | null | excut/embedding/ampligraph_extend/EmbeddingModelContinue.py | mhmgad/ExCut | 09e943a23207381de3c3a9e6f70015882b8ec4af | [
"Apache-2.0"
] | null | null | null | from copy import deepcopy
import numpy as np
import tensorflow as tf
from ampligraph.datasets import NumpyDatasetAdapter, AmpligraphDatasetAdapter
from ampligraph.latent_features import SGDOptimizer, constants
from ampligraph.latent_features.initializers import DEFAULT_XAVIER_IS_UNIFORM
from ampligraph.latent_features... | 51.21148 | 128 | 0.610583 | 2,019 | 16,951 | 4.881129 | 0.203071 | 0.012684 | 0.012988 | 0.017047 | 0.290309 | 0.188432 | 0.149467 | 0.111923 | 0.096195 | 0.096195 | 0 | 0.006662 | 0.309303 | 16,951 | 330 | 129 | 51.366667 | 0.834985 | 0.2427 | 0 | 0.244565 | 0 | 0 | 0.070311 | 0.004074 | 0 | 0 | 0 | 0.006061 | 0 | 1 | 0.027174 | false | 0.016304 | 0.059783 | 0 | 0.097826 | 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 |
ee1052ee4cf13eb970ced19001be494a24ecb620 | 1,518 | py | Python | projects/Happy Times/num2txt.py | jsportland/jssmith.biz | 1184e4c0c011d0b9bfdbe8e813c08c2a9b436fdd | [
"MIT"
] | null | null | null | projects/Happy Times/num2txt.py | jsportland/jssmith.biz | 1184e4c0c011d0b9bfdbe8e813c08c2a9b436fdd | [
"MIT"
] | 7 | 2020-06-05T21:15:16.000Z | 2021-09-22T18:43:04.000Z | projects/Happy Times/num2txt.py | jsportland/jsportland.github.io | 1184e4c0c011d0b9bfdbe8e813c08c2a9b436fdd | [
"MIT"
] | null | null | null | # num2txt.py
# Jeff Smith
'''
Convert a given number into its text representation.
e.g. 67 becomes 'sixty-seven'. Handle numbers from 0-99.
'''
# Create dictionaries of number-text key pairs
ones = {0: '', 1: 'one', 2: 'two', 3: 'three', 4: 'four',
5: 'five', 6: 'six', 7: 'seven', 8: 'eight', 9: 'nine'}
twos... | 31.625 | 103 | 0.550725 | 220 | 1,518 | 3.8 | 0.490909 | 0.033493 | 0.011962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094897 | 0.264163 | 1,518 | 47 | 104 | 32.297872 | 0.653536 | 0.188406 | 0 | 0 | 0 | 0 | 0.284893 | 0.017241 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0 | 0 | 0.178571 | 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 |
ee1117aa879343fdc2d1539ab537208c88466d45 | 1,811 | py | Python | src/pointers/struct.py | ZeroIntensity/pointers.py | c41b0a131d9d538130cf61b19be84c6cdf251cb7 | [
"MIT"
] | 461 | 2022-03-10T03:05:30.000Z | 2022-03-31T17:53:32.000Z | src/pointers/struct.py | ZeroIntensity/pointers.py | c41b0a131d9d538130cf61b19be84c6cdf251cb7 | [
"MIT"
] | 7 | 2022-03-11T03:55:01.000Z | 2022-03-23T20:34:21.000Z | src/pointers/struct.py | ZeroIntensity/pointers.py | c41b0a131d9d538130cf61b19be84c6cdf251cb7 | [
"MIT"
] | 8 | 2022-03-10T19:30:37.000Z | 2022-03-23T20:35:11.000Z | import ctypes
from typing import get_type_hints, Any
from abc import ABC
from .c_pointer import TypedCPointer, attempt_decode
from contextlib import suppress
class Struct(ABC):
"""Abstract class representing a struct."""
def __init__(self, *args, **kwargs):
hints = get_type_hints(self.__cl... | 29.688525 | 102 | 0.59746 | 200 | 1,811 | 5.02 | 0.35 | 0.059761 | 0.023904 | 0.02988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29873 | 1,811 | 60 | 103 | 30.183333 | 0.790551 | 0.028713 | 0 | 0 | 0 | 0.023256 | 0.060284 | 0.037234 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162791 | false | 0 | 0.116279 | 0.046512 | 0.418605 | 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 |
ee12205ea3c9735342c4affa7e463d604044c45b | 7,062 | py | Python | docs/html_docs/get_classes_in_file.py | ACea15/pyNastran | 5ffc37d784b52c882ea207f832bceb6b5eb0e6d4 | [
"BSD-3-Clause"
] | 293 | 2015-03-22T20:22:01.000Z | 2022-03-14T20:28:24.000Z | docs/html_docs/get_classes_in_file.py | ACea15/pyNastran | 5ffc37d784b52c882ea207f832bceb6b5eb0e6d4 | [
"BSD-3-Clause"
] | 512 | 2015-03-14T18:39:27.000Z | 2022-03-31T16:15:43.000Z | docs/html_docs/get_classes_in_file.py | ACea15/pyNastran | 5ffc37d784b52c882ea207f832bceb6b5eb0e6d4 | [
"BSD-3-Clause"
] | 136 | 2015-03-19T03:26:06.000Z | 2022-03-25T22:14:54.000Z | from __future__ import print_function, unicode_literals
import os
from io import open
from pyNastran.utils.log import get_logger2
import shutil
IGNORE_DIRS = ['src', 'dmap', 'solver', '__pycache__',
'op4_old', 'calculix', 'bars', 'case_control',
'pch', 'old', 'solver', 'test', 'dev', 'bkp... | 35.487437 | 94 | 0.585387 | 864 | 7,062 | 4.543981 | 0.252315 | 0.041263 | 0.024452 | 0.024452 | 0.318136 | 0.226694 | 0.192053 | 0.147988 | 0.089913 | 0.089913 | 0 | 0.007029 | 0.254602 | 7,062 | 198 | 95 | 35.666667 | 0.738792 | 0.184792 | 0 | 0.107692 | 0 | 0 | 0.130519 | 0.007388 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053846 | false | 0 | 0.038462 | 0 | 0.123077 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee139bfd29a89a7a4a5d77d7a8c7900ad5b256b6 | 4,650 | py | Python | tests/utils/postprocess/test_top.py | ToucanToco/toucan-data-sdk | 1d82b7112231b65f8a310327b6d6673d137b7378 | [
"BSD-3-Clause"
] | 9 | 2017-12-21T23:09:10.000Z | 2020-08-20T13:53:24.000Z | tests/utils/postprocess/test_top.py | ToucanToco/toucan-data-sdk | 1d82b7112231b65f8a310327b6d6673d137b7378 | [
"BSD-3-Clause"
] | 144 | 2017-11-24T17:23:02.000Z | 2022-03-28T02:34:15.000Z | tests/utils/postprocess/test_top.py | ToucanToco/toucan-data-sdk | 1d82b7112231b65f8a310327b6d6673d137b7378 | [
"BSD-3-Clause"
] | 5 | 2018-03-07T13:22:01.000Z | 2021-05-31T11:53:07.000Z | import pandas as pd
from toucan_data_sdk.utils.postprocess import top, top_group
def test_top():
""" It should return result for top """
data = pd.DataFrame(
[
{'variable': 'toto', 'Category': 1, 'value': 100},
{'variable': 'toto', 'Category': 1, 'value': 200},
{'v... | 33.214286 | 96 | 0.476129 | 519 | 4,650 | 4.204239 | 0.208092 | 0.045371 | 0.070577 | 0.057745 | 0.711274 | 0.633364 | 0.508708 | 0.469753 | 0.425756 | 0.380843 | 0 | 0.078277 | 0.291183 | 4,650 | 139 | 97 | 33.453237 | 0.583738 | 0.065591 | 0 | 0.421053 | 0 | 0 | 0.277675 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 1 | 0.035088 | false | 0 | 0.017544 | 0 | 0.052632 | 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 |
ee14c24926c18fc83e37f709865f20c7c3816477 | 2,199 | py | Python | MoveRestructure.py | bsmarine/dicomConversionToNiftiHCC | ea8d4c922a299a2b9e1936bdb08c22d445e48db7 | [
"BSD-3-Clause"
] | 1 | 2021-06-25T17:13:37.000Z | 2021-06-25T17:13:37.000Z | MoveRestructure.py | bsmarine/dicomConversionToNiftiHCC | ea8d4c922a299a2b9e1936bdb08c22d445e48db7 | [
"BSD-3-Clause"
] | null | null | null | MoveRestructure.py | bsmarine/dicomConversionToNiftiHCC | ea8d4c922a299a2b9e1936bdb08c22d445e48db7 | [
"BSD-3-Clause"
] | 1 | 2021-07-08T22:27:57.000Z | 2021-07-08T22:27:57.000Z | import sys
import os
import SimpleITK as sitk
import pydicom
from slugify import slugify
import shutil
import argparse
def gen_dcm_identifiers(in_dir):
##Get Absolute Path For Every DCM File Recursively
dcms_path_list = [os.path.abspath(os.path.join(dire,dcm)) for dire,sub_dir,dcms in os.walk(in_dir) if 'dcm' ... | 36.04918 | 141 | 0.622556 | 325 | 2,199 | 4.052308 | 0.295385 | 0.059226 | 0.060744 | 0.069096 | 0.167046 | 0.167046 | 0.167046 | 0.167046 | 0.167046 | 0.167046 | 0 | 0.038346 | 0.241019 | 2,199 | 60 | 142 | 36.65 | 0.750749 | 0.065939 | 0 | 0.044444 | 0 | 0 | 0.072754 | 0.010254 | 0 | 0 | 0.02832 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.155556 | 0 | 0.222222 | 0.088889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee1671d5719714f90ce4ce8110a4344a83fa25b3 | 2,384 | py | Python | mesmerize_napari/cnmf_viz_gui.py | nel-lab/mesmerize-napari | 24f0c92c0c78eecdd063c82fe6d5ff8f1179fc1b | [
"Apache-2.0"
] | 1 | 2022-01-11T16:18:17.000Z | 2022-01-11T16:18:17.000Z | mesmerize_napari/cnmf_viz_gui.py | nel-lab/caiman-napari-prototype | 24f0c92c0c78eecdd063c82fe6d5ff8f1179fc1b | [
"Apache-2.0"
] | 12 | 2022-01-11T16:21:01.000Z | 2022-02-17T04:43:50.000Z | mesmerize_napari/cnmf_viz_gui.py | nel-lab/mesmerize-napari | 24f0c92c0c78eecdd063c82fe6d5ff8f1179fc1b | [
"Apache-2.0"
] | null | null | null | from PyQt5 import QtWidgets
from .cnmf_viz_pytemplate import Ui_VizualizationWidget
from .evaluate_components import EvalComponentsWidgets
from mesmerize_core.utils import *
from mesmerize_core import *
import caiman as cm
class VizWidget(QtWidgets.QDockWidget):
def __init__(self, cnmf_viewer, batch_item):
... | 38.451613 | 79 | 0.693792 | 300 | 2,384 | 5.233333 | 0.303333 | 0.063694 | 0.06242 | 0.050955 | 0.166879 | 0.094268 | 0.040764 | 0 | 0 | 0 | 0 | 0.000527 | 0.203859 | 2,384 | 61 | 80 | 39.081967 | 0.82666 | 0 | 0 | 0.04 | 0 | 0 | 0.042785 | 0.020973 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14 | false | 0 | 0.12 | 0 | 0.28 | 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 |
ee2135f4afd77e09b1a2e652846d3ab3f3aa9ee1 | 3,642 | py | Python | model/gastric_cancer_ResNet_cnn.py | bd-z/Gastric_Biopsy_Cancer_Detector | fac18b6484ff10b09b50eb6d81af9984f9fe3019 | [
"MIT"
] | 1 | 2022-01-08T14:19:31.000Z | 2022-01-08T14:19:31.000Z | model/gastric_cancer_ResNet_cnn.py | bd-z/Gastric_Biopsy_Cancer_Detector | fac18b6484ff10b09b50eb6d81af9984f9fe3019 | [
"MIT"
] | null | null | null | model/gastric_cancer_ResNet_cnn.py | bd-z/Gastric_Biopsy_Cancer_Detector | fac18b6484ff10b09b50eb6d81af9984f9fe3019 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 3 20:33:21 2021
@author: zhang
"""
import os
import numpy as np
import pandas as pd
import tensorflow as tf
from sklearn.model_selection import train_test_split
from sklearn.utils import shuffle
import tensorflow.keras as keras
from tensorflow.keras.preprocessing import ... | 23.197452 | 124 | 0.720209 | 536 | 3,642 | 4.740672 | 0.375 | 0.028335 | 0.044864 | 0.044864 | 0.090516 | 0.042503 | 0.042503 | 0.042503 | 0.042503 | 0.042503 | 0 | 0.027988 | 0.166118 | 3,642 | 156 | 125 | 23.346154 | 0.808693 | 0.175178 | 0 | 0.054054 | 0 | 0 | 0.08098 | 0.048656 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.175676 | 0 | 0.22973 | 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 |
ee245853feab4e3b1a6bbf63e986448df5eef06f | 2,280 | py | Python | esim_torch/test_single_pixel.py | Giamm9998/face_detection_on_sim_events | d0917a3fff9427f3b898834f37f7e5ff03c3c8e0 | [
"MIT"
] | null | null | null | esim_torch/test_single_pixel.py | Giamm9998/face_detection_on_sim_events | d0917a3fff9427f3b898834f37f7e5ff03c3c8e0 | [
"MIT"
] | null | null | null | esim_torch/test_single_pixel.py | Giamm9998/face_detection_on_sim_events | d0917a3fff9427f3b898834f37f7e5ff03c3c8e0 | [
"MIT"
] | null | null | null | import torch
import matplotlib.pyplot as plt
import numpy as np
import glob
import cv2
from esim_torch import EventSimulator_torch
def increasing_sin_wave(t):
return (400 * np.sin((t-t[0])*20*np.pi)*(t-t[0])+150).astype("uint8").reshape((-1,1,1))
if __name__ == "__main__":
c = 0.2
refractory_period_ns = ... | 33.043478 | 91 | 0.638158 | 340 | 2,280 | 4.082353 | 0.323529 | 0.07781 | 0.064842 | 0.017291 | 0.097983 | 0.051873 | 0 | 0 | 0 | 0 | 0 | 0.038631 | 0.205263 | 2,280 | 68 | 92 | 33.529412 | 0.727373 | 0.030263 | 0 | 0 | 0 | 0 | 0.094288 | 0.019492 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019608 | false | 0 | 0.117647 | 0.019608 | 0.156863 | 0.078431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee24a1450e91db84cc047da4850276c21c83ee5a | 6,642 | py | Python | load_csv.py | alexkchew/AppSciTools | 7fff312115bd109a5391adff9e0f9cdec8ebbdab | [
"MIT"
] | null | null | null | load_csv.py | alexkchew/AppSciTools | 7fff312115bd109a5391adff9e0f9cdec8ebbdab | [
"MIT"
] | null | null | null | load_csv.py | alexkchew/AppSciTools | 7fff312115bd109a5391adff9e0f9cdec8ebbdab | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
load_csv.py
This script controlls all load csv information.
Created on: Fri Jul 16 15:54:43 2021
Author: Alex K. Chew (alex.chew@schrodinger.com)
Copyright Schrodinger, LLC. All rights reserved.
"""
# Loading modules
import os
import pandas as pd
import numpy as n... | 33.545455 | 117 | 0.609907 | 805 | 6,642 | 4.823602 | 0.273292 | 0.019315 | 0.024723 | 0.011331 | 0.12104 | 0.058202 | 0.029874 | 0 | 0 | 0 | 0 | 0.005773 | 0.321891 | 6,642 | 198 | 118 | 33.545455 | 0.85635 | 0.448961 | 0 | 0.061538 | 0 | 0 | 0.096067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061538 | false | 0 | 0.061538 | 0 | 0.215385 | 0.107692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee256a737518580b47e962df223472702fb695b6 | 6,013 | py | Python | contest/forms.py | henryyang42/NTHUOJ_web | b197ef8555aaf90cba176eba61da5c919dab7af6 | [
"MIT"
] | null | null | null | contest/forms.py | henryyang42/NTHUOJ_web | b197ef8555aaf90cba176eba61da5c919dab7af6 | [
"MIT"
] | null | null | null | contest/forms.py | henryyang42/NTHUOJ_web | b197ef8555aaf90cba176eba61da5c919dab7af6 | [
"MIT"
] | null | null | null | '''
The MIT License (MIT)
Copyright (c) 2014 NTHUOJ team
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use,... | 38.793548 | 106 | 0.611342 | 671 | 6,013 | 5.362146 | 0.320417 | 0.023346 | 0.020845 | 0.026404 | 0.287104 | 0.280989 | 0.22179 | 0.22179 | 0.199555 | 0.199555 | 0 | 0.002356 | 0.29403 | 6,013 | 154 | 107 | 39.045455 | 0.84523 | 0.216697 | 0 | 0.285714 | 0 | 0 | 0.094723 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044643 | false | 0 | 0.089286 | 0 | 0.232143 | 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 |
ee27cbb1f5ab8ff62e70e97b161ec8429dba0d48 | 8,087 | py | Python | NeoML/Python/neoml/Dnn/ImageConversion.py | ndrewl/neoml | c87361fa8489c28a672cb8e1a447f47ba4c1dbc5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | NeoML/Python/neoml/Dnn/ImageConversion.py | ndrewl/neoml | c87361fa8489c28a672cb8e1a447f47ba4c1dbc5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | NeoML/Python/neoml/Dnn/ImageConversion.py | ndrewl/neoml | c87361fa8489c28a672cb8e1a447f47ba4c1dbc5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """ Copyright (c) 2017-2020 ABBYY Production 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 to in wr... | 33.143443 | 162 | 0.614319 | 1,028 | 8,087 | 4.749027 | 0.181907 | 0.018435 | 0.020279 | 0.014748 | 0.532773 | 0.481565 | 0.435887 | 0.364195 | 0.295371 | 0.295371 | 0 | 0.010853 | 0.259429 | 8,087 | 243 | 163 | 33.279835 | 0.804308 | 0.589836 | 0 | 0.428571 | 0 | 0 | 0.061385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174603 | false | 0 | 0.047619 | 0 | 0.380952 | 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 |
ee2a0ae02c4f7fec036fd44cc9fb937a9290c455 | 237 | py | Python | test.py | Torxed/python-pyson | 9bcbc256ec989832a0729fef06b797c9eceeaefa | [
"MIT"
] | 3 | 2020-11-03T03:40:53.000Z | 2021-01-30T08:37:16.000Z | test.py | Torxed/python-pyson | 9bcbc256ec989832a0729fef06b797c9eceeaefa | [
"MIT"
] | null | null | null | test.py | Torxed/python-pyson | 9bcbc256ec989832a0729fef06b797c9eceeaefa | [
"MIT"
] | null | null | null | import time
import random
import pyson
content = """
{
"time" : time.time(),
random.randint(0, 1) : "a random number",
"another_level" : {
"test" : 5
},
"main level" : True
}
"""
print(pyson.loads(content, globals(), locals())) | 13.941176 | 48 | 0.616034 | 30 | 237 | 4.833333 | 0.666667 | 0.110345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015544 | 0.185654 | 237 | 17 | 48 | 13.941176 | 0.735751 | 0 | 0 | 0 | 0 | 0 | 0.546218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 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 |
ee2b80f6a26a0a00b8f295285fad069f948e9400 | 808 | py | Python | output_generator/Output.py | selcukusta/codalyze-rest-api | 2aebb7d96ea0d601af3f8dd0a995bc730621407a | [
"MIT"
] | 2 | 2020-11-16T15:53:08.000Z | 2021-06-24T07:16:15.000Z | output_generator/Output.py | selcukusta/codalyze-rest-api | 2aebb7d96ea0d601af3f8dd0a995bc730621407a | [
"MIT"
] | null | null | null | output_generator/Output.py | selcukusta/codalyze-rest-api | 2aebb7d96ea0d601af3f8dd0a995bc730621407a | [
"MIT"
] | 1 | 2021-11-25T11:57:57.000Z | 2021-11-25T11:57:57.000Z | # -*- coding: utf-8 -*-
"""
This module extends the default output formatting to include HTML.
"""
import sys
import datetime
from jinja2 import Template
def html_output(source, header, thresholds):
source_file_dict = {"filename": source.filename}
func_list = []
for source_function in source.function_li... | 27.862069 | 68 | 0.643564 | 95 | 808 | 5.242105 | 0.536842 | 0.168675 | 0.084337 | 0.096386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003295 | 0.248762 | 808 | 28 | 69 | 28.857143 | 0.817133 | 0.110149 | 0 | 0 | 0 | 0 | 0.07173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.263158 | 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 |
ee2cb32d9eb1f15b26b978d44b78859a10f8c8d9 | 5,733 | py | Python | currnlp - deprecated.py | Elbitty/Elbitty | fafc1623ca002a6e499101b513696fecf1e894d1 | [
"MIT"
] | null | null | null | currnlp - deprecated.py | Elbitty/Elbitty | fafc1623ca002a6e499101b513696fecf1e894d1 | [
"MIT"
] | 3 | 2017-07-03T04:01:29.000Z | 2017-07-04T00:22:54.000Z | currnlp - deprecated.py | Elbitty/Elbitty | fafc1623ca002a6e499101b513696fecf1e894d1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import NLP
def calculate(tags):
tmp_str = " ".join(str(val) for val in tags)
tmp_tags = NLP.calculate_also_pos(tmp_str)
print(tmp_tags)
lst_query = ["USD", "KRW"]#기본 원달러 환율로 초기화
str_humanize = ["달러", "원"]#기본 원달러 환율로 초기화
indicator = 0
cursor = ... | 30.822581 | 72 | 0.451073 | 591 | 5,733 | 4.248731 | 0.177665 | 0.062127 | 0.159299 | 0.128634 | 0.623258 | 0.562326 | 0.562326 | 0.526483 | 0.526483 | 0.398248 | 0 | 0.063164 | 0.425606 | 5,733 | 185 | 73 | 30.989189 | 0.699362 | 0.012036 | 0 | 0.634731 | 0 | 0 | 0.034452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005988 | false | 0 | 0.005988 | 0 | 0.017964 | 0.011976 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee2dc666a79347b77adfd1d774a2855491600019 | 1,617 | py | Python | __main__.py | tinyurl-com-ItsBigBrainTimeXD/backend | 4d360ed02aa5475279af03e4f4300dde6ccc3391 | [
"MIT"
] | null | null | null | __main__.py | tinyurl-com-ItsBigBrainTimeXD/backend | 4d360ed02aa5475279af03e4f4300dde6ccc3391 | [
"MIT"
] | null | null | null | __main__.py | tinyurl-com-ItsBigBrainTimeXD/backend | 4d360ed02aa5475279af03e4f4300dde6ccc3391 | [
"MIT"
] | null | null | null | from multiprocessing import Lock
from flask import Flask, request, jsonify
from constants import HOST, PORT
from Database.database import Database
from handler.frontendHandler import frontend_handler
from handler.iotHandler import iot_handler
# Create the flask application
app = Flask(__name__)
db_name = 'test.db'
db... | 25.265625 | 68 | 0.685838 | 224 | 1,617 | 4.772321 | 0.334821 | 0.039289 | 0.022451 | 0.056127 | 0.265669 | 0.265669 | 0.265669 | 0.215154 | 0.215154 | 0.215154 | 0 | 0.003855 | 0.197897 | 1,617 | 63 | 69 | 25.666667 | 0.820355 | 0.16945 | 0 | 0.357143 | 0 | 0 | 0.070229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.142857 | 0 | 0.357143 | 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 |
ee2fea5e9be5798ddc9725b7766369f326b358d6 | 452 | py | Python | ex055.py | LucasLCarreira/Python | 03bd64837d74315687e567261a149f0176496348 | [
"MIT"
] | 1 | 2020-04-21T19:14:50.000Z | 2020-04-21T19:14:50.000Z | ex055.py | LucasLCarreira/Python | 03bd64837d74315687e567261a149f0176496348 | [
"MIT"
] | null | null | null | ex055.py | LucasLCarreira/Python | 03bd64837d74315687e567261a149f0176496348 | [
"MIT"
] | null | null | null | # Exercício Python 055
# Leia o peso de 5 pessoas, mostre o maior e o menor
maior = 0
menor = 0
for p in range(1, 6):
peso = int(input("Digite o peso:"))
if p == 1: #com o contador na primeira posição, o maior e o menor são iguais
maior = peso
menor = peso
else:
if peso > maior:
... | 25.111111 | 80 | 0.573009 | 74 | 452 | 3.5 | 0.472973 | 0.069498 | 0.054054 | 0.061776 | 0.100386 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029801 | 0.331858 | 452 | 17 | 81 | 26.588235 | 0.827815 | 0.298673 | 0 | 0 | 0 | 0 | 0.146965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
ee30562de746fae8c4e7f911bc276f4521628762 | 886 | py | Python | 1 - companies_list_downloader.py | B-Jugurtha/Project-01--Web-scraping---Data-cleaning | 981ec207c6c2d55efb10f137fec0bbf06df50cbb | [
"MIT"
] | null | null | null | 1 - companies_list_downloader.py | B-Jugurtha/Project-01--Web-scraping---Data-cleaning | 981ec207c6c2d55efb10f137fec0bbf06df50cbb | [
"MIT"
] | null | null | null | 1 - companies_list_downloader.py | B-Jugurtha/Project-01--Web-scraping---Data-cleaning | 981ec207c6c2d55efb10f137fec0bbf06df50cbb | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup as bs
from pathlib import Path
import os
import glob
import time
import random
import requests
pwd = os.getcwd()
page_counter = 1
URL = "https://www.example.com/companies/?page="
# Creating 'pages' folder if this one exists deletes it's content
try:
Path(pwd + '/pages').mkdir(paren... | 23.945946 | 81 | 0.667043 | 130 | 886 | 4.484615 | 0.561538 | 0.132075 | 0.041166 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019635 | 0.19526 | 886 | 36 | 82 | 24.611111 | 0.798036 | 0.071106 | 0 | 0 | 0 | 0 | 0.154689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.259259 | 0 | 0.259259 | 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 |
ee33559773aa94f6134aaa49252ad4b6b825ef37 | 791 | py | Python | tests/test_apps/test_covid_preprocessing.py | jtrauer/AuTuMN | 2e1defd0104bbecfe667b8ea5ecaf4bc6741905c | [
"BSD-2-Clause-FreeBSD"
] | 14 | 2020-03-11T06:15:30.000Z | 2022-03-09T03:38:35.000Z | tests/test_apps/test_covid_preprocessing.py | jtrauer/AuTuMN | 2e1defd0104bbecfe667b8ea5ecaf4bc6741905c | [
"BSD-2-Clause-FreeBSD"
] | 96 | 2020-01-29T05:10:29.000Z | 2022-03-31T01:48:46.000Z | tests/test_apps/test_covid_preprocessing.py | monash-emu/AuTuMN | fa3b81ef54cf561e0e7364a48f4ff96585dc3310 | [
"BSD-2-Clause-FreeBSD"
] | 10 | 2020-04-24T00:38:00.000Z | 2021-08-19T16:19:03.000Z | import numpy as np
from autumn.models.covid_19.detection import create_cdr_function
def test_cdr_intercept():
"""
Test that there is zero case detection when zero tests are performed
"""
for cdr_at_1000_tests in np.linspace(0.05, 0.5, 10):
cdr_function = create_cdr_function(1000.0, cdr_at_10... | 30.423077 | 89 | 0.672566 | 133 | 791 | 3.766917 | 0.368421 | 0.175649 | 0.071856 | 0.111776 | 0.487026 | 0.331337 | 0.331337 | 0.331337 | 0.331337 | 0.331337 | 0 | 0.100977 | 0.223767 | 791 | 25 | 90 | 31.64 | 0.714984 | 0.164349 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ee350ea74f60bf255d219e07c176125875586383 | 5,339 | py | Python | nessussearch.py | canidorichard/nessussearch | 7b4623f0b3a3fb60706eb39785ea4f7a1cebf800 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2020-06-30T15:53:03.000Z | 2020-06-30T15:53:03.000Z | nessussearch.py | canidorichard/nessussearch | 7b4623f0b3a3fb60706eb39785ea4f7a1cebf800 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | nessussearch.py | canidorichard/nessussearch | 7b4623f0b3a3fb60706eb39785ea4f7a1cebf800 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2020-08-05T23:25:36.000Z | 2020-09-26T10:01:18.000Z | #!/usr/bin/env python3
# Copyright (c) 2019, Richard Hughes All rights reserved.
# Released under the BSD license. Please see LICENSE.md for more information.
import sys
import os
import argparse
import glob
import xml.dom.minidom
import re
# Define command line arguments
parms=argparse.ArgumentParser()
parms.add_ar... | 33.36875 | 179 | 0.617906 | 661 | 5,339 | 4.919818 | 0.299546 | 0.01845 | 0.02952 | 0.01845 | 0.230935 | 0.135301 | 0.067036 | 0.067036 | 0.030135 | 0 | 0 | 0.006184 | 0.242742 | 5,339 | 159 | 180 | 33.578616 | 0.79817 | 0.145533 | 0 | 0.161905 | 0 | 0 | 0.175965 | 0.009482 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.057143 | 0 | 0.085714 | 0.180952 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee36deec1ce296c7314b585757c03cbcb17ed182 | 5,109 | py | Python | pykitml/fceux.py | RainingComputers/pykitml | 1c3e50cebcdb6c4da63979ef9a812b44d23a4857 | [
"MIT"
] | 34 | 2020-03-06T07:53:43.000Z | 2022-03-13T06:12:29.000Z | pykitml/fceux.py | RainingComputers/pykitml | 1c3e50cebcdb6c4da63979ef9a812b44d23a4857 | [
"MIT"
] | 6 | 2021-06-08T22:43:23.000Z | 2022-03-08T13:57:33.000Z | pykitml/fceux.py | RainingComputers/pykitml | 1c3e50cebcdb6c4da63979ef9a812b44d23a4857 | [
"MIT"
] | 1 | 2020-11-30T21:20:32.000Z | 2020-11-30T21:20:32.000Z | import warnings
import socket
class FCEUXServer:
'''
Server class for making NES bots. Uses FCEUX emulator.
Visit https://www.fceux.com for info. You will also need to
load client lua script in the emulator.
'''
def __init__(self, frame_func, quit_func=None, ip='localhost', port=1234):
... | 26.609375 | 78 | 0.533372 | 558 | 5,109 | 4.767025 | 0.317204 | 0.02406 | 0.018045 | 0.020301 | 0.07406 | 0.041353 | 0.025564 | 0 | 0 | 0 | 0 | 0.005481 | 0.357213 | 5,109 | 191 | 79 | 26.748691 | 0.804507 | 0.326287 | 0 | 0.027027 | 0 | 0 | 0.04991 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175676 | false | 0 | 0.027027 | 0 | 0.297297 | 0.067568 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee38deebe1bb8166653f041ac6b217f4fdba49db | 5,480 | py | Python | gossipcat/dev/CAT.py | Ewen2015/GossipCat | 6792c2ddee16515d9724583c9b57f332cff4b206 | [
"Apache-2.0"
] | 2 | 2017-12-17T06:24:43.000Z | 2018-01-17T08:27:52.000Z | gossipcat/dev/CAT.py | Ewen2015/GossipCat | 6792c2ddee16515d9724583c9b57f332cff4b206 | [
"Apache-2.0"
] | null | null | null | gossipcat/dev/CAT.py | Ewen2015/GossipCat | 6792c2ddee16515d9724583c9b57f332cff4b206 | [
"Apache-2.0"
] | 1 | 2017-12-12T16:00:48.000Z | 2017-12-12T16:00:48.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
author: Ewen Wang
email: wolfgangwong2012@gmail.com
license: Apache License 2.0
"""
import warnings
warnings.filterwarnings('ignore')
import random
random.seed(0)
import time
import json
import pandas as pd
import matplotlib.pyplot as plt
import catboo... | 33.82716 | 144 | 0.578102 | 633 | 5,480 | 4.913112 | 0.28594 | 0.028296 | 0.030868 | 0.025723 | 0.227653 | 0.137621 | 0.137621 | 0.07717 | 0.053376 | 0.053376 | 0 | 0.011114 | 0.310401 | 5,480 | 162 | 145 | 33.82716 | 0.811855 | 0.02792 | 0 | 0.243902 | 0 | 0 | 0.124012 | 0.003952 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0.01626 | 0.073171 | 0 | 0.186992 | 0.097561 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee39158935f040d9514500c148f834c9e0815920 | 4,698 | py | Python | kiss.py | QuantumEF/AX25-Chat | d2f8f8b5b3a968c6982dd013c5860aab461e4dc6 | [
"MIT"
] | null | null | null | kiss.py | QuantumEF/AX25-Chat | d2f8f8b5b3a968c6982dd013c5860aab461e4dc6 | [
"MIT"
] | null | null | null | kiss.py | QuantumEF/AX25-Chat | d2f8f8b5b3a968c6982dd013c5860aab461e4dc6 | [
"MIT"
] | 1 | 2020-09-16T03:19:18.000Z | 2020-09-16T03:19:18.000Z | #!/usr/bin/python
import sys
import socket
import asyncio
import select
from hexdump import hexdump
KISS_FEND = 0xC0 # Frame start/end marker
KISS_FESC = 0xDB # Escape character
KISS_TFEND = 0xDC # If after an escape, means there was an 0xC0 in the source message
KISS_TFESC = 0xDD # If after an escape, means... | 33.557143 | 108 | 0.686037 | 764 | 4,698 | 4.060209 | 0.269634 | 0.030948 | 0.032882 | 0.027079 | 0.401032 | 0.378788 | 0.378788 | 0.378788 | 0.3343 | 0.321083 | 0 | 0.036036 | 0.196679 | 4,698 | 140 | 109 | 33.557143 | 0.785904 | 0.278629 | 0 | 0.351852 | 0 | 0 | 0.017257 | 0 | 0 | 0 | 0.013091 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.046296 | 0 | 0.175926 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ee3cb7c19d0619f9abd1c5afe9d9065a4239aee4 | 7,451 | py | Python | Tree_test.py | nelliesnoodles/PythonBinaryTree | a5964cbb991cbd5007a5253bd48bc83eb56dc0ca | [
"MIT"
] | null | null | null | Tree_test.py | nelliesnoodles/PythonBinaryTree | a5964cbb991cbd5007a5253bd48bc83eb56dc0ca | [
"MIT"
] | null | null | null | Tree_test.py | nelliesnoodles/PythonBinaryTree | a5964cbb991cbd5007a5253bd48bc83eb56dc0ca | [
"MIT"
] | null | null | null | from random import randint
from BST_version_3 import BinaryTreeNode, BinaryTree
# I have to keep the build of lists under 3,000 total
# my computer starts to freak out about memory at 10,000
# it slows at 3000.
# recursion depth happens on count at 2000 items
def test_set():
oaktree = BinaryTree(50.5)
for i in range(... | 27.596296 | 80 | 0.68219 | 1,148 | 7,451 | 4.361498 | 0.212544 | 0.087877 | 0.034751 | 0.063711 | 0.196924 | 0.142201 | 0.12143 | 0.082485 | 0.069303 | 0.045936 | 0 | 0.087858 | 0.152194 | 7,451 | 269 | 81 | 27.698885 | 0.704765 | 0.086297 | 0 | 0.155738 | 0 | 0 | 0.067996 | 0 | 0 | 0 | 0 | 0 | 0.196721 | 1 | 0.020492 | false | 0 | 0.008197 | 0 | 0.028689 | 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 |
ee407797b83ac396b3980aeaad4d8b956d5e4e23 | 4,026 | py | Python | writeups/2020/CyberStakes/party-roppin/solve.py | welchbj/ctf | fd4e2cea692b134163cc9bd66c2b4796bdefed8c | [
"MIT"
] | 65 | 2019-10-07T01:29:16.000Z | 2022-03-18T14:20:40.000Z | writeups/2020/CyberStakes/party-roppin/solve.py | welchbj/ctf | fd4e2cea692b134163cc9bd66c2b4796bdefed8c | [
"MIT"
] | null | null | null | writeups/2020/CyberStakes/party-roppin/solve.py | welchbj/ctf | fd4e2cea692b134163cc9bd66c2b4796bdefed8c | [
"MIT"
] | 12 | 2020-05-04T01:16:53.000Z | 2022-01-02T14:33:41.000Z | #!/usr/bin/env python2
"""
Run exploit locally with:
./solve.py
./solve.py REMOTE HOST=challenge.acictf.com PORT=45110
"""
import ast
import struct
import subprocess
from pwn import *
PROG_PATH = './challenge'
PROT_RWX = constants.PROT_READ | constants.PROT_WRITE | constants.PROT_EXEC
EGG_SIZE = 0x1000
def init... | 23.682353 | 102 | 0.619722 | 574 | 4,026 | 4.167247 | 0.318815 | 0.057692 | 0.048913 | 0.053512 | 0.240803 | 0.182692 | 0.157191 | 0.070234 | 0 | 0 | 0 | 0.039769 | 0.225534 | 4,026 | 169 | 103 | 23.822485 | 0.727389 | 0.059364 | 0 | 0.179245 | 0 | 0 | 0.148011 | 0 | 0 | 0 | 0.017507 | 0 | 0.018868 | 1 | 0.084906 | false | 0 | 0.037736 | 0 | 0.198113 | 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 |
ee42ab06df137bb5158c466e211b9c061a500ecf | 1,485 | py | Python | utils/mongo_seed/csv_to_json.py | Abdoul1996/superteam2 | 3ba558f9dfd652007a1f80ee01543c266c87bc0d | [
"MIT"
] | null | null | null | utils/mongo_seed/csv_to_json.py | Abdoul1996/superteam2 | 3ba558f9dfd652007a1f80ee01543c266c87bc0d | [
"MIT"
] | null | null | null | utils/mongo_seed/csv_to_json.py | Abdoul1996/superteam2 | 3ba558f9dfd652007a1f80ee01543c266c87bc0d | [
"MIT"
] | null | null | null | from os import path
import csv
import json
import random
# Our dataset was created from http://www2.informatik.uni-freiburg.de/~cziegler/BX/ and reduced down to 1,000 records
# The CSV file has semicolon delimiters due to book titles containing commas
SCRIPT_DIR = path.dirname(path.realpath(__file__)) + '/'
DB_FILE =... | 38.076923 | 129 | 0.576431 | 180 | 1,485 | 4.6 | 0.5 | 0.057971 | 0.031401 | 0.041063 | 0.152174 | 0.10628 | 0.10628 | 0.10628 | 0.10628 | 0.10628 | 0 | 0.008629 | 0.297643 | 1,485 | 38 | 130 | 39.078947 | 0.785235 | 0.243771 | 0 | 0 | 0 | 0 | 0.203936 | 0.019678 | 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 |
ee46f59058bfd66eb8f015628cb6a304ce257ecc | 3,471 | py | Python | scripts/kinova_joy_teleop.py | Gregory-Baker/kinova_joy_teleop | 42666022662fdcf7985ca5d4598eecb5e18eb8b6 | [
"MIT"
] | null | null | null | scripts/kinova_joy_teleop.py | Gregory-Baker/kinova_joy_teleop | 42666022662fdcf7985ca5d4598eecb5e18eb8b6 | [
"MIT"
] | null | null | null | scripts/kinova_joy_teleop.py | Gregory-Baker/kinova_joy_teleop | 42666022662fdcf7985ca5d4598eecb5e18eb8b6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Node to convert joystick commands to kinova arm cartesian movements
"""
import rospy
from sensor_msgs.msg import Joy
#from geometry_msgs.msg import Pose
from kortex_driver.msg import TwistCommand, Finger, Empty, Pose
from kortex_driver.srv import SendGripperCommand, SendGripperCommandRequest... | 35.418367 | 135 | 0.675886 | 460 | 3,471 | 4.863043 | 0.26087 | 0.050067 | 0.043809 | 0.020116 | 0.219937 | 0.151095 | 0.088511 | 0.050961 | 0.050961 | 0.050961 | 0 | 0.014012 | 0.218669 | 3,471 | 97 | 136 | 35.783505 | 0.810841 | 0.091616 | 0 | 0.109375 | 0 | 0 | 0.091489 | 0.025821 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.015625 | 0.0625 | 0 | 0.09375 | 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 |
ee476c7b28e95c420c92669fa0909df9dee5dae3 | 576 | py | Python | ausgesondert/dammitJim.py | Coding-for-the-Arts/drawbot-samples-solutions | 7191610d6efd7d788056070e7826d255b7ef496b | [
"CC0-1.0"
] | null | null | null | ausgesondert/dammitJim.py | Coding-for-the-Arts/drawbot-samples-solutions | 7191610d6efd7d788056070e7826d255b7ef496b | [
"CC0-1.0"
] | null | null | null | ausgesondert/dammitJim.py | Coding-for-the-Arts/drawbot-samples-solutions | 7191610d6efd7d788056070e7826d255b7ef496b | [
"CC0-1.0"
] | null | null | null | kraftausdruecke = [
"Mist",
"Verdammt",
"Mannmannmann",
"Herrgottnochmal",
"Echt jetzt",
"Zum Teufel"
]
berufe = [
"Baggerführer",
"Velokurier",
"Tierärztin",
"Verkehrspolizist",
"Schreinerin",
"Apotheker",
"Komponist",
"Physikerin",
"Buchhändlerin"
]
... | 20.571429 | 59 | 0.604167 | 62 | 576 | 5.612903 | 0.774194 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239583 | 576 | 27 | 60 | 21.333333 | 0.794521 | 0.166667 | 0 | 0 | 0 | 0 | 0.383158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee4a673bdc3ecbf54bdd00a403e289703d72c886 | 2,429 | py | Python | python/652_find_duplicated_subtrees.py | liaison/LeetCode | 8b10a1f6bbeb3ebfda99248994f7c325140ee2fd | [
"MIT"
] | 17 | 2016-03-01T22:40:53.000Z | 2021-04-19T02:15:03.000Z | python/652_find_duplicated_subtrees.py | liaison/LeetCode | 8b10a1f6bbeb3ebfda99248994f7c325140ee2fd | [
"MIT"
] | null | null | null | python/652_find_duplicated_subtrees.py | liaison/LeetCode | 8b10a1f6bbeb3ebfda99248994f7c325140ee2fd | [
"MIT"
] | 3 | 2019-03-07T03:48:43.000Z | 2020-04-05T01:11:36.000Z | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def findDuplicateSubtrees(self, root: TreeNode) -> List[TreeNode]:
# set of all node strings
... | 26.402174 | 83 | 0.539728 | 258 | 2,429 | 4.883721 | 0.224806 | 0.105556 | 0.047619 | 0.038095 | 0.712698 | 0.634921 | 0.634921 | 0.552381 | 0.414286 | 0.414286 | 0 | 0.007952 | 0.378757 | 2,429 | 91 | 84 | 26.692308 | 0.827038 | 0.271717 | 0 | 0.5 | 0 | 0 | 0.008663 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ee4ac13afb88b80f6571f8b3cdd5af07771ebb6c | 3,391 | py | Python | main.py | rajanant49/Streamlit-Demo-App | 894e0e2dbdf33148bccc6abc791221f6e7b01036 | [
"Apache-2.0"
] | null | null | null | main.py | rajanant49/Streamlit-Demo-App | 894e0e2dbdf33148bccc6abc791221f6e7b01036 | [
"Apache-2.0"
] | null | null | null | main.py | rajanant49/Streamlit-Demo-App | 894e0e2dbdf33148bccc6abc791221f6e7b01036 | [
"Apache-2.0"
] | null | null | null | import streamlit as st
from PIL import Image
import cv2
import numpy as np
from sklearn import datasets
from sklearn.neighbors import KNeighborsClassifier
from sklearn.svm import SVC
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split
from sklearn.metrics import accu... | 30.54955 | 125 | 0.6243 | 444 | 3,391 | 4.585586 | 0.306306 | 0.035363 | 0.023576 | 0.020629 | 0.014735 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019646 | 0.249484 | 3,391 | 110 | 126 | 30.827273 | 0.780354 | 0.136538 | 0 | 0.09589 | 0 | 0 | 0.123198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041096 | false | 0 | 0.164384 | 0 | 0.246575 | 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 |
ee4ba609d0784a1c68fa7c4cd767173c1520196d | 3,485 | py | Python | Face-Pixelizer/res/python/src/pixelize.py | spil3141/Pixelizer-Face | c234fe998727435d88f4b860432945c2e6a957ef | [
"MIT"
] | null | null | null | Face-Pixelizer/res/python/src/pixelize.py | spil3141/Pixelizer-Face | c234fe998727435d88f4b860432945c2e6a957ef | [
"MIT"
] | null | null | null | Face-Pixelizer/res/python/src/pixelize.py | spil3141/Pixelizer-Face | c234fe998727435d88f4b860432945c2e6a957ef | [
"MIT"
] | null | null | null | """
python3 detect.py \
--model ${TEST_DATA}/mobilenet_ssd_v2_face_quant_postprocess_edgetpu.tflite
"""
import argparse
import os
import numpy as np
import tensorflow as tf
import numpy as np
import PIL
import matplotlib.pyplot as plt
import matplotlib.image as matimage
class ConvolutionalAutoencoder(tf.keras.mod... | 34.50495 | 100 | 0.667432 | 466 | 3,485 | 4.839056 | 0.309013 | 0.046563 | 0.051885 | 0.042129 | 0.231929 | 0.213304 | 0.155211 | 0.109091 | 0.109091 | 0.109091 | 0 | 0.025822 | 0.188809 | 3,485 | 101 | 101 | 34.504951 | 0.771843 | 0.119369 | 0 | 0.056338 | 0 | 0 | 0.133028 | 0.043906 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098592 | false | 0 | 0.112676 | 0.014085 | 0.28169 | 0.056338 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee4d585ac0fdab34831b9549bd00bfc84fbe7647 | 4,905 | py | Python | model_zoo/official/cv/centerface/postprocess.py | Vincent34/mindspore | a39a60878a46e7e9cb02db788c0bca478f2fa6e5 | [
"Apache-2.0"
] | 1 | 2021-07-03T06:52:20.000Z | 2021-07-03T06:52:20.000Z | model_zoo/official/cv/centerface/postprocess.py | Vincent34/mindspore | a39a60878a46e7e9cb02db788c0bca478f2fa6e5 | [
"Apache-2.0"
] | null | null | null | model_zoo/official/cv/centerface/postprocess.py | Vincent34/mindspore | a39a60878a46e7e9cb02db788c0bca478f2fa6e5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | 59.096386 | 119 | 0.589602 | 690 | 4,905 | 4.033333 | 0.447826 | 0.021559 | 0.028746 | 0.028746 | 0.158103 | 0.130075 | 0.112109 | 0.112109 | 0.091987 | 0.027309 | 0 | 0.078839 | 0.206116 | 4,905 | 82 | 120 | 59.817073 | 0.63585 | 0.136595 | 0 | 0.033898 | 0 | 0 | 0.268501 | 0.034393 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.084746 | 0 | 0.101695 | 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 |
ee4ea53c9f59142caa780fc1889e82f9447f0d50 | 1,231 | py | Python | myapp/multiplication.py | TomokiEmmei/kadai | eaf3c7430aa28ca9cc00bb0dbd219999e5ebb555 | [
"MIT"
] | null | null | null | myapp/multiplication.py | TomokiEmmei/kadai | eaf3c7430aa28ca9cc00bb0dbd219999e5ebb555 | [
"MIT"
] | null | null | null | myapp/multiplication.py | TomokiEmmei/kadai | eaf3c7430aa28ca9cc00bb0dbd219999e5ebb555 | [
"MIT"
] | null | null | null | """
2018.Jan
@author: Tomoki Emmei
description: program to show multiplication and addition table
"""
import sys #read command line argument
# Display the multiplication table
def kakezan(a,b):
Seki_tab=[[0 for i in range(a)] for j in range(b)]# array for the test
for i in range(1,b+1):
for j in range(... | 27.355556 | 77 | 0.570268 | 201 | 1,231 | 3.422886 | 0.323383 | 0.081395 | 0.034884 | 0.063953 | 0.409884 | 0.409884 | 0.409884 | 0.409884 | 0.351744 | 0.351744 | 0 | 0.021591 | 0.285134 | 1,231 | 44 | 78 | 27.977273 | 0.760227 | 0.312754 | 0 | 0.322581 | 0 | 0 | 0.061669 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.032258 | 0 | 0.193548 | 0.16129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee4f325d1a129d74b4f20d86d9a69e407bc823af | 1,524 | py | Python | iliad/integrators/states/riemannian_leapfrog_state.py | JamesBrofos/Iliad | 2220e1e519f479e402072f80f4bc67e419842c4e | [
"MIT"
] | 1 | 2022-03-24T20:32:54.000Z | 2022-03-24T20:32:54.000Z | iliad/integrators/states/riemannian_leapfrog_state.py | JamesBrofos/Iliad | 2220e1e519f479e402072f80f4bc67e419842c4e | [
"MIT"
] | null | null | null | iliad/integrators/states/riemannian_leapfrog_state.py | JamesBrofos/Iliad | 2220e1e519f479e402072f80f4bc67e419842c4e | [
"MIT"
] | null | null | null | from typing import Callable
import numpy as np
from iliad.integrators.states.lagrangian_leapfrog_state import LagrangianLeapfrogState
from iliad.integrators.fields import riemannian
from iliad.linalg import solve_psd
from odyssey.distribution import Distribution
class RiemannianLeapfrogState(LagrangianLeapfrogStat... | 41.189189 | 119 | 0.740157 | 188 | 1,524 | 5.835106 | 0.340426 | 0.082042 | 0.082042 | 0.038286 | 0.047402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177165 | 1,524 | 36 | 120 | 42.333333 | 0.874801 | 0.161417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ee5342a6017572637126ba2afb48e284377203df | 7,625 | py | Python | gui/qt/openswap_priceinfo.py | ComputerCraftr/openswap | 7de04aa80dab79bebe4b64483011dad70a48694c | [
"MIT"
] | 16 | 2018-11-05T13:19:02.000Z | 2021-04-06T12:11:49.000Z | gui/qt/openswap_priceinfo.py | ComputerCraftr/openswap | 7de04aa80dab79bebe4b64483011dad70a48694c | [
"MIT"
] | 9 | 2018-09-19T03:37:26.000Z | 2019-04-17T21:58:27.000Z | gui/qt/openswap_priceinfo.py | ComputerCraftr/openswap | 7de04aa80dab79bebe4b64483011dad70a48694c | [
"MIT"
] | 5 | 2018-11-05T13:19:02.000Z | 2020-10-20T09:15:54.000Z | from functools import partial
import math
from electroncash.i18n import _
from electroncash.address import Address
import electroncash.web as web
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from .util import *
from .qrtextedit import ShowQRTextEdit
from electroncash import bc... | 36.658654 | 83 | 0.617574 | 897 | 7,625 | 5.027871 | 0.188406 | 0.042572 | 0.041463 | 0.036585 | 0.503991 | 0.430377 | 0.368514 | 0.323725 | 0.255876 | 0.233259 | 0 | 0.014004 | 0.288262 | 7,625 | 207 | 84 | 36.835749 | 0.817026 | 0.056393 | 0 | 0.367816 | 0 | 0 | 0.005853 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0.005747 | 0.08046 | 0.005747 | 0.16092 | 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 |
ee54b64f9bc555511d62a6158fb2e8ffda3d1cc6 | 2,906 | py | Python | commons/triggering_training/retraining_defect_type_triggering.py | jibby0/service-auto-analyzer | 79a0dbf6650693a3559b484c51e97e6fac5cc3ba | [
"Apache-2.0"
] | null | null | null | commons/triggering_training/retraining_defect_type_triggering.py | jibby0/service-auto-analyzer | 79a0dbf6650693a3559b484c51e97e6fac5cc3ba | [
"Apache-2.0"
] | null | null | null | commons/triggering_training/retraining_defect_type_triggering.py | jibby0/service-auto-analyzer | 79a0dbf6650693a3559b484c51e97e6fac5cc3ba | [
"Apache-2.0"
] | null | null | null | """
* Copyright 2019 EPAM Systems
*
* 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,... | 47.639344 | 109 | 0.770131 | 394 | 2,906 | 5.258883 | 0.296954 | 0.100869 | 0.074324 | 0.114865 | 0.461873 | 0.408301 | 0.395753 | 0.326737 | 0.253861 | 0.225386 | 0 | 0.006939 | 0.156917 | 2,906 | 60 | 110 | 48.433333 | 0.838776 | 0.19649 | 0 | 0.171429 | 0 | 0 | 0.22948 | 0.216588 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171429 | false | 0 | 0.085714 | 0.028571 | 0.342857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ee5de97647ec1a5a844d776fae68ad8d234a3b9c | 2,790 | py | Python | tests/test_dvg_util_funcs.py | tos-kamiya/dvg | eb2df7f4b9850543098003a07f565227cdbf11fa | [
"BSD-2-Clause"
] | null | null | null | tests/test_dvg_util_funcs.py | tos-kamiya/dvg | eb2df7f4b9850543098003a07f565227cdbf11fa | [
"BSD-2-Clause"
] | null | null | null | tests/test_dvg_util_funcs.py | tos-kamiya/dvg | eb2df7f4b9850543098003a07f565227cdbf11fa | [
"BSD-2-Clause"
] | null | null | null | from typing import *
import unittest
import contextlib
import os
import sys
import tempfile
from dvg.dvg import prune_overlapped_paragraphs, expand_file_iter
@contextlib.contextmanager
def back_to_curdir():
curdir = os.getcwd()
try:
yield
finally:
os.chdir(curdir)
def touch(file_name: ... | 28.469388 | 103 | 0.506093 | 325 | 2,790 | 4.153846 | 0.209231 | 0.071111 | 0.082963 | 0.08 | 0.493333 | 0.408889 | 0.408889 | 0.368889 | 0.348148 | 0.348148 | 0 | 0.026805 | 0.344803 | 2,790 | 97 | 104 | 28.762887 | 0.711707 | 0 | 0 | 0.22973 | 0 | 0 | 0.020789 | 0 | 0 | 0 | 0 | 0 | 0.121622 | 1 | 0.054054 | false | 0 | 0.094595 | 0 | 0.162162 | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee6420717483b3976c5a090488575b8372f61f62 | 5,279 | py | Python | scenes/flip06_obstacle.py | spockthegray/mantaflow | df72cf235e14ef4f3f8fac9141b5e0a8707406b3 | [
"Apache-2.0"
] | 158 | 2018-06-24T17:42:13.000Z | 2022-03-12T13:29:43.000Z | scenes/flip06_obstacle.py | spockthegray/mantaflow | df72cf235e14ef4f3f8fac9141b5e0a8707406b3 | [
"Apache-2.0"
] | 5 | 2018-09-05T07:30:48.000Z | 2020-07-01T08:56:28.000Z | scenes/flip06_obstacle.py | spockthegray/mantaflow | df72cf235e14ef4f3f8fac9141b5e0a8707406b3 | [
"Apache-2.0"
] | 35 | 2018-06-13T04:05:42.000Z | 2022-03-29T16:55:24.000Z | #
# This FLIP example combines narrow band flip, 2nd order wall boundary conditions, and
# adaptive time stepping.
#
from manta import *
dim = 3
res = 64
#res = 124
gs = vec3(res,res,res)
if (dim==2):
gs.z=1
s = Solver(name='main', gridSize = gs, dim=dim)
narrowBand = 3
minParticles = pow(2,dim)
s... | 32.99375 | 154 | 0.722675 | 746 | 5,279 | 5.107239 | 0.345845 | 0.044619 | 0.030709 | 0.037795 | 0.135171 | 0.129659 | 0.065617 | 0.055643 | 0.04252 | 0.035171 | 0 | 0.03337 | 0.148513 | 5,279 | 159 | 155 | 33.201258 | 0.814238 | 0.227505 | 0 | 0.061856 | 0 | 0 | 0.021777 | 0.005444 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010309 | 0 | 0.010309 | 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 |
ee646ecd75eb338880899b14fe5eafbb53b55cd1 | 38,214 | py | Python | gewittergefahr/gg_io/myrorss_and_mrms_io.py | dopplerchase/GewitterGefahr | 4415b08dd64f37eba5b1b9e8cc5aa9af24f96593 | [
"MIT"
] | 26 | 2018-10-04T01:07:35.000Z | 2022-01-29T08:49:32.000Z | gewittergefahr/gg_io/myrorss_and_mrms_io.py | liuximarcus/GewitterGefahr | d819874d616f98a25187bfd3091073a2e6d5279e | [
"MIT"
] | 4 | 2017-12-25T02:01:08.000Z | 2018-12-19T01:54:21.000Z | gewittergefahr/gg_io/myrorss_and_mrms_io.py | liuximarcus/GewitterGefahr | d819874d616f98a25187bfd3091073a2e6d5279e | [
"MIT"
] | 11 | 2017-12-10T23:05:29.000Z | 2022-01-29T08:49:33.000Z | """IO methods for radar data from MYRORSS or MRMS.
MYRORSS = Multi-year Reanalysis of Remotely Sensed Storms
MRMS = Multi-radar Multi-sensor
"""
import os
import glob
import warnings
import numpy
import pandas
from netCDF4 import Dataset
from gewittergefahr.gg_io import netcdf_io
from gewittergefahr.gg_utils import ... | 42.365854 | 80 | 0.731041 | 5,447 | 38,214 | 4.69139 | 0.07729 | 0.030289 | 0.023284 | 0.030132 | 0.650231 | 0.531619 | 0.463724 | 0.418486 | 0.366322 | 0.326955 | 0 | 0.006491 | 0.197781 | 38,214 | 901 | 81 | 42.412875 | 0.827081 | 0.26506 | 0 | 0.240672 | 0 | 0.005597 | 0.036817 | 0.007334 | 0 | 0 | 0 | 0.00111 | 0.031716 | 1 | 0.026119 | false | 0 | 0.029851 | 0 | 0.089552 | 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 |
ee6793056d92226902cff484562e9055263810e1 | 10,325 | bzl | Python | config/bazel/repositories.bzl | nala-cub/coda | 581608cfc4d9b485182c6f5f40dd2ab7540cec66 | [
"Apache-2.0"
] | 1 | 2021-11-13T06:19:22.000Z | 2021-11-13T06:19:22.000Z | config/bazel/repositories.bzl | nala-cub/coda | 581608cfc4d9b485182c6f5f40dd2ab7540cec66 | [
"Apache-2.0"
] | 1 | 2021-12-21T17:56:58.000Z | 2021-12-21T18:16:27.000Z | config/bazel/repositories.bzl | nala-cub/coda | 581608cfc4d9b485182c6f5f40dd2ab7540cec66 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Cory Paik. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 43.200837 | 132 | 0.670799 | 980 | 10,325 | 6.880612 | 0.240816 | 0.03752 | 0.04894 | 0.04538 | 0.22008 | 0.159128 | 0.067477 | 0.049533 | 0.042118 | 0.042118 | 0 | 0.197186 | 0.194479 | 10,325 | 238 | 133 | 43.382353 | 0.613563 | 0.127554 | 0 | 0.243243 | 0 | 0.07027 | 0.5707 | 0.306724 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021622 | false | 0 | 0 | 0.005405 | 0.027027 | 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 |
ee699a71ac54286cafed23dd6c6819d85173b00b | 3,051 | py | Python | app/core/settings/settings.py | Radarslan/stocks | d0a1ca0808b5ac13c0ade4461832c1fb9bac8f0f | [
"MIT"
] | null | null | null | app/core/settings/settings.py | Radarslan/stocks | d0a1ca0808b5ac13c0ade4461832c1fb9bac8f0f | [
"MIT"
] | null | null | null | app/core/settings/settings.py | Radarslan/stocks | d0a1ca0808b5ac13c0ade4461832c1fb9bac8f0f | [
"MIT"
] | null | null | null | import json
import logging
import sys
from decouple import config
# general
ENVIRONMENT: str = config("ENVIRONMENT", "docker")
API_VERSION: str = config("API_VERSION", "/api")
PROJECT_NAME: str = config("PROJECT_NAME", "Stocks")
BACKEND_CORS_ORIGINS: str = config("BACKEND_CORS_ORIGINS", "*")
DATETIME_FORMAT = "%Y-%... | 25.855932 | 76 | 0.59587 | 356 | 3,051 | 4.837079 | 0.342697 | 0.041812 | 0.014518 | 0.017422 | 0.192799 | 0.140534 | 0.140534 | 0.140534 | 0.140534 | 0.140534 | 0 | 0.032129 | 0.265487 | 3,051 | 117 | 77 | 26.076923 | 0.736278 | 0.019993 | 0 | 0.22 | 0 | 0 | 0.488099 | 0.119343 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.01 | 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 |
ee6e8e289a9de7e4f9d0b9c903a761ab4c91411d | 4,049 | py | Python | Gathered CTF writeups/2017-11-04-hitcon/secret_server/attack.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | 1 | 2022-03-27T06:00:41.000Z | 2022-03-27T06:00:41.000Z | Gathered CTF writeups/2017-11-04-hitcon/secret_server/attack.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | null | null | null | Gathered CTF writeups/2017-11-04-hitcon/secret_server/attack.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | 1 | 2022-03-27T06:01:42.000Z | 2022-03-27T06:01:42.000Z | import base64
import hashlib
import re
import string
import itertools
from crypto_commons.netcat.netcat_commons import receive_until_match, nc, send, receive_until
from crypto_commons.symmetrical.symmetrical import set_byte_cbc, set_cbc_payload_for_block
def PoW(suffix, digest):
for prefix in itertools.product(... | 44.988889 | 141 | 0.594221 | 513 | 4,049 | 4.415205 | 0.231969 | 0.033996 | 0.067991 | 0.056512 | 0.29404 | 0.245475 | 0.184106 | 0.093598 | 0.093598 | 0.093598 | 0 | 0.046005 | 0.285997 | 4,049 | 89 | 142 | 45.494382 | 0.737461 | 0.022722 | 0 | 0.051948 | 0 | 0 | 0.057425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051948 | false | 0 | 0.090909 | 0 | 0.181818 | 0.103896 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee709ac2d49de9a25f6994afec04b8339c1c352a | 1,952 | py | Python | mindhome_alpha/erpnext/patches/v11_0/make_asset_finance_book_against_old_entries.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | mindhome_alpha/erpnext/patches/v11_0/make_asset_finance_book_against_old_entries.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | null | null | null | mindhome_alpha/erpnext/patches/v11_0/make_asset_finance_book_against_old_entries.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | # Copyright (c) 2017, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.utils.nestedset import rebuild_tree
def execute():
frappe.reload_doc('assets', 'doctype', 'asset_finance_book')
frappe.reload_doc('assets', 'docty... | 43.377778 | 111 | 0.76332 | 252 | 1,952 | 5.579365 | 0.31746 | 0.083215 | 0.064011 | 0.089616 | 0.440256 | 0.325036 | 0.199147 | 0.073969 | 0 | 0 | 0 | 0.003488 | 0.118852 | 1,952 | 45 | 112 | 43.377778 | 0.813953 | 0.050717 | 0 | 0.057143 | 0 | 0.028571 | 0.403566 | 0.149109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.085714 | 0 | 0.114286 | 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 |
ee70bc7fa006c6b656696699e7b20490a6b297e1 | 1,709 | py | Python | gui/web.py | irfanchahyadi/Scraping-komikid | 79db8f4e617b489a31f4c0161d665e0d3bd47d07 | [
"MIT"
] | 3 | 2021-06-20T15:26:42.000Z | 2021-09-13T08:20:47.000Z | gui/web.py | irfanchahyadi/Scraping-komikid | 79db8f4e617b489a31f4c0161d665e0d3bd47d07 | [
"MIT"
] | 1 | 2021-11-20T11:09:41.000Z | 2021-11-20T11:09:41.000Z | gui/web.py | irfanchahyadi/Scraping-komikid | 79db8f4e617b489a31f4c0161d665e0d3bd47d07 | [
"MIT"
] | 2 | 2021-09-04T11:49:13.000Z | 2021-11-03T11:01:47.000Z |
"""
Web GUI
Author: Irfan Chahyadi
Source: github.com/irfanchahyadi/Scraping-Manga
"""
# IMPORT REQUIRED PACKAGE
from flask import Flask, render_template, request, redirect, url_for, Response
import os, webbrowser, time
from gui import web_api
import main
app = Flask(__name__)
@app.route('/tes')
def tes():
return ... | 24.768116 | 136 | 0.675834 | 245 | 1,709 | 4.563265 | 0.420408 | 0.050089 | 0.059034 | 0.035778 | 0.042934 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013076 | 0.149795 | 1,709 | 68 | 137 | 25.132353 | 0.756366 | 0.060269 | 0 | 0.041667 | 0 | 0.020833 | 0.22417 | 0.028178 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.083333 | 0.020833 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ee7114274f05df3d5f9b0b4f95761fdb8ac8dbcd | 4,144 | py | Python | Python/index_finder.py | jgruselius/misc | ae4aa6c72cebed1ef0160f95488e3827fbf706c9 | [
"Apache-2.0"
] | 1 | 2018-09-28T12:12:17.000Z | 2018-09-28T12:12:17.000Z | Python/index_finder.py | jgruselius/misc | ae4aa6c72cebed1ef0160f95488e3827fbf706c9 | [
"Apache-2.0"
] | null | null | null | Python/index_finder.py | jgruselius/misc | ae4aa6c72cebed1ef0160f95488e3827fbf706c9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Author: Joel Gruselius, Dec 2018
# Script for checking index clashes
# Input one or several nucleotide sequences and print any matches found in
# the index reference file. This version is only good for checking for
# full matches.
# It is pretty useful though to list overlapping indexes in th... | 33.152 | 80 | 0.602799 | 583 | 4,144 | 4.171527 | 0.329331 | 0.037418 | 0.019737 | 0.019737 | 0.127467 | 0.067434 | 0.067434 | 0 | 0 | 0 | 0 | 0.007571 | 0.266892 | 4,144 | 124 | 81 | 33.419355 | 0.792956 | 0.133446 | 0 | 0.072165 | 0 | 0 | 0.162661 | 0.012856 | 0 | 0 | 0 | 0.008065 | 0 | 1 | 0.092784 | false | 0 | 0.072165 | 0.010309 | 0.226804 | 0.113402 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee721578168ba6c38ea84e55b427798b1b341a75 | 695 | py | Python | warehouse/tests.py | thegangtechnology/thairod-django | b073186a4b5bc42dfef99685b3da30abf8e42862 | [
"MIT"
] | null | null | null | warehouse/tests.py | thegangtechnology/thairod-django | b073186a4b5bc42dfef99685b3da30abf8e42862 | [
"MIT"
] | 3 | 2021-07-27T13:11:36.000Z | 2021-08-10T22:54:55.000Z | warehouse/tests.py | thegangtechnology/thairod-django | b073186a4b5bc42dfef99685b3da30abf8e42862 | [
"MIT"
] | null | null | null | from django.urls import reverse
from address.models import Address
from core.tests import BaseTestSimpleApiMixin
from thairod.utils.test_util import APITestCase
from warehouse.models import Warehouse
class WarehouseAPITestCase(BaseTestSimpleApiMixin, APITestCase):
def setUp(self):
self.model = Warehouse... | 31.590909 | 81 | 0.676259 | 76 | 695 | 6.131579 | 0.460526 | 0.051502 | 0.06867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01845 | 0.220144 | 695 | 21 | 82 | 33.095238 | 0.841328 | 0 | 0 | 0 | 0 | 0 | 0.100719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.294118 | 0 | 0.411765 | 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 |
ee7343721934bb1607af511c0969882332910b83 | 24,456 | py | Python | rsTools/utils/openMaya/deformer.py | robertstratton630/rigTools | cdc9530bf12ac46654860443c2c264fce619dbd0 | [
"MIT"
] | null | null | null | rsTools/utils/openMaya/deformer.py | robertstratton630/rigTools | cdc9530bf12ac46654860443c2c264fce619dbd0 | [
"MIT"
] | null | null | null | rsTools/utils/openMaya/deformer.py | robertstratton630/rigTools | cdc9530bf12ac46654860443c2c264fce619dbd0 | [
"MIT"
] | null | null | null | import maya.cmds as cmds
import re
import rsTools.utils.openMaya.dataUtils as dUtils
import maya.OpenMayaAnim as OpenMayaAnimOld
import maya.OpenMaya as OpenMayaOld
import maya.api.OpenMaya as om
import maya.api.OpenMayaAnim as oma
def isDeformer(deformer):
if not cmds.objExists(deformer):
return False
... | 33.45554 | 123 | 0.677257 | 2,505 | 24,456 | 6.608383 | 0.155689 | 0.011176 | 0.018606 | 0.011961 | 0.399964 | 0.362752 | 0.352906 | 0.342938 | 0.333756 | 0.301317 | 0 | 0.002334 | 0.22931 | 24,456 | 730 | 124 | 33.50137 | 0.875955 | 0.217697 | 0 | 0.44385 | 0 | 0 | 0.089999 | 0.001217 | 0.002674 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.018717 | 0 | 0.141711 | 0.016043 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee74b61615725492239c5444cd5387bf60c2f49c | 804 | py | Python | util/save_image_worker.py | zigonk/CMPC-Refseg | 0d59c90e9968ed836c695976ff90081e1c24378a | [
"MIT"
] | null | null | null | util/save_image_worker.py | zigonk/CMPC-Refseg | 0d59c90e9968ed836c695976ff90081e1c24378a | [
"MIT"
] | null | null | null | util/save_image_worker.py | zigonk/CMPC-Refseg | 0d59c90e9968ed836c695976ff90081e1c24378a | [
"MIT"
] | null | null | null | import logging
import os
from queue import Queue
from threading import Thread
from time import time
import cv2
class SaveThread(Thread):
def __init__(self, queue):
Thread.__init__(self)
self.queue = queue
def run(self):
while True:
# Get the work from the queue and expand t... | 27.724138 | 62 | 0.609453 | 102 | 804 | 4.568627 | 0.352941 | 0.120172 | 0.085837 | 0.060086 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003604 | 0.309701 | 804 | 29 | 63 | 27.724138 | 0.836036 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.24 | 0 | 0.48 | 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 |
ee777920db42ef90f8ce8a58fb13a346a19081f4 | 7,444 | py | Python | catalog/views.py | chancald/mask-ecommerce | 1907007e726f989b6d99546e1b03ad5891d65715 | [
"Apache-2.0"
] | null | null | null | catalog/views.py | chancald/mask-ecommerce | 1907007e726f989b6d99546e1b03ad5891d65715 | [
"Apache-2.0"
] | null | null | null | catalog/views.py | chancald/mask-ecommerce | 1907007e726f989b6d99546e1b03ad5891d65715 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render, get_object_or_404, redirect
from django.contrib import messages
from django.utils import timezone
from django.views.generic import ListView, DetailView, View
from .models import Item, Order, OrderItem, Address, Promo
from .forms import AddressForm, PromoForm
from django.http import ... | 42.537143 | 171 | 0.623052 | 894 | 7,444 | 5.038031 | 0.189038 | 0.036634 | 0.05595 | 0.071492 | 0.601021 | 0.541075 | 0.48468 | 0.471137 | 0.444494 | 0.444494 | 0 | 0.006102 | 0.273509 | 7,444 | 175 | 172 | 42.537143 | 0.826553 | 0.021628 | 0 | 0.482993 | 0 | 0.006803 | 0.130692 | 0.005916 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.054422 | 0 | 0.272109 | 0.006803 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee799216d33c9ed30924cce3dbebfa13f696710c | 7,220 | py | Python | taskq/consumer.py | ipsosante/django-taskq | 933893c51bf512983b1ca0fc0b8db523d37c9996 | [
"MIT"
] | null | null | null | taskq/consumer.py | ipsosante/django-taskq | 933893c51bf512983b1ca0fc0b8db523d37c9996 | [
"MIT"
] | 5 | 2018-11-22T13:42:10.000Z | 2019-09-16T13:00:41.000Z | taskq/consumer.py | ipsosante/django-taskq | 933893c51bf512983b1ca0fc0b8db523d37c9996 | [
"MIT"
] | null | null | null | import importlib
import logging
import threading
from time import sleep
import timeout_decorator
from django_pglocks import advisory_lock
from django.conf import settings
from django.db import transaction
from django.db.models import Q
from django.utils import timezone
from .constants import TASKQ_DEFAULT_CONSUMER_... | 34.380952 | 109 | 0.635457 | 875 | 7,220 | 5.025143 | 0.273143 | 0.021833 | 0.020014 | 0.022743 | 0.104389 | 0.043894 | 0.012281 | 0 | 0 | 0 | 0 | 0.002126 | 0.283241 | 7,220 | 209 | 110 | 34.545455 | 0.847536 | 0.165097 | 0 | 0.114286 | 0 | 0 | 0.055264 | 0.004747 | 0 | 0 | 0 | 0 | 0.007143 | 1 | 0.107143 | false | 0 | 0.157143 | 0.007143 | 0.307143 | 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 |
ee7b13e3f8add887be12393c811c00fdb0fd0ddc | 14,786 | py | Python | async_message_bus_test.py | ifurusato/ros | 77b1361e78f68f00ba2d3e3db908bb5ce0f973f5 | [
"MIT"
] | 9 | 2020-10-12T08:49:55.000Z | 2021-07-23T14:20:05.000Z | async_message_bus_test.py | fanmuzhi/ros | 04534a35901341c4aaa9084bff3d46851795357d | [
"MIT"
] | 12 | 2020-07-22T19:08:58.000Z | 2022-02-03T03:17:03.000Z | async_message_bus_test.py | fanmuzhi/ros | 04534a35901341c4aaa9084bff3d46851795357d | [
"MIT"
] | 3 | 2020-07-19T20:43:19.000Z | 2022-03-02T09:15:51.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020-2021 by Murray Altheim. All rights reserved. This file is part
# of the Robot Operating System project, released under the MIT License. Please
# see the LICENSE file included as part of this package.
#
# author: Murray Altheim
# created: 2021-02-24
# ... | 42.245714 | 178 | 0.540714 | 1,473 | 14,786 | 5.204345 | 0.205024 | 0.035612 | 0.035873 | 0.037177 | 0.331594 | 0.246282 | 0.170493 | 0.152231 | 0.126272 | 0.126272 | 0 | 0.005136 | 0.223049 | 14,786 | 349 | 179 | 42.366762 | 0.662169 | 0.249019 | 0 | 0.134021 | 0 | 0 | 0.129683 | 0.007589 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118557 | false | 0.010309 | 0.056701 | 0.010309 | 0.273196 | 0.010309 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee7ba2306ea22a03b64701fd0713ad3f2419cb98 | 2,113 | py | Python | terrain_gen.py | MrKren/TTA | 3a677337fbcca199a88c64248af89d0889b960dd | [
"MIT"
] | null | null | null | terrain_gen.py | MrKren/TTA | 3a677337fbcca199a88c64248af89d0889b960dd | [
"MIT"
] | null | null | null | terrain_gen.py | MrKren/TTA | 3a677337fbcca199a88c64248af89d0889b960dd | [
"MIT"
] | null | null | null | import pygame
import random
class Tile(pygame.sprite.Sprite):
"""Tile class that acts as a sprite"""
# Creates sprite tile with image
def __init__(self, original_image, mask_image):
super().__init__()
self.image = original_image
self.mask_image = mask_image
self.... | 30.185714 | 77 | 0.546143 | 273 | 2,113 | 4.025641 | 0.278388 | 0.065514 | 0.047316 | 0.051865 | 0.105551 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015487 | 0.358258 | 2,113 | 69 | 78 | 30.623188 | 0.794985 | 0.115476 | 0 | 0.090909 | 0 | 0 | 0.012938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0 | 0.045455 | 0 | 0.227273 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |