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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e54f62c870a9dbb8ed2efdd9157e383da0e7bd6e | 7,975 | py | Python | project/rating/views.py | sparcopen/opencon-2015-app-code | 8947e17376845e249dbdf3abc9548fd0c92cb217 | [
"MIT"
] | 1 | 2015-11-13T02:10:57.000Z | 2015-11-13T02:10:57.000Z | project/rating/views.py | sparcopen/opencon-2015-app-code | 8947e17376845e249dbdf3abc9548fd0c92cb217 | [
"MIT"
] | 1 | 2016-10-18T11:17:11.000Z | 2016-11-11T00:43:26.000Z | project/rating/views.py | sparcopen/opencon-2015-app-code | 8947e17376845e249dbdf3abc9548fd0c92cb217 | [
"MIT"
] | 1 | 2015-11-13T02:13:54.000Z | 2015-11-13T02:13:54.000Z | """
Application view.
"""
from datetime import datetime
from django.http import Http404
from django.shortcuts import render, redirect
from django.views.generic import View
from application.models import Application
from .forms import Step1RateForm, Step2RateForm, TerminateForm, ApproveForm
from .models import User
... | 29.868914 | 85 | 0.551473 | 778 | 7,975 | 5.51671 | 0.145244 | 0.052423 | 0.027959 | 0.025163 | 0.701305 | 0.677074 | 0.674511 | 0.657735 | 0.657735 | 0.642824 | 0 | 0.008595 | 0.358119 | 7,975 | 266 | 86 | 29.981203 | 0.82985 | 0.078245 | 0 | 0.666667 | 0 | 0 | 0.081573 | 0.005877 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.038889 | 0 | 0.194444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e552efbabfebf6be9d82d9d3963e5f859594b913 | 667 | py | Python | muted/component/exit.py | ann884511/mule | ddc3da77188fe25f346ba0c341a83cd5ad94143e | [
"MIT"
] | 1 | 2019-06-06T07:21:09.000Z | 2019-06-06T07:21:09.000Z | muted/component/exit.py | ann884511/mule | ddc3da77188fe25f346ba0c341a83cd5ad94143e | [
"MIT"
] | null | null | null | muted/component/exit.py | ann884511/mule | ddc3da77188fe25f346ba0c341a83cd5ad94143e | [
"MIT"
] | null | null | null |
from __future__ import annotations
from typing import Mapping
from typing import Optional
from config.config import CONFIG
from facet.facet import Facet
from logcat.logcat import LogCat
class Exit(Facet):
DATA_PATH = CONFIG.EXIT
_cache = {}
@LogCat.log_func
def __init__(
self,
**kw... | 18.027027 | 44 | 0.611694 | 83 | 667 | 4.722892 | 0.409639 | 0.068878 | 0.09949 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295352 | 667 | 36 | 45 | 18.527778 | 0.834043 | 0.010495 | 0 | 0.12 | 0 | 0 | 0.003044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.24 | 0.04 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e5578dc23debe700d18ebef85e016664b68b8f9e | 662 | py | Python | src/parser/parser.py | mint-forge/python-scripts | 94a028e92f648ea686c211286d4c0e08b01c2f08 | [
"MIT"
] | null | null | null | src/parser/parser.py | mint-forge/python-scripts | 94a028e92f648ea686c211286d4c0e08b01c2f08 | [
"MIT"
] | null | null | null | src/parser/parser.py | mint-forge/python-scripts | 94a028e92f648ea686c211286d4c0e08b01c2f08 | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup
class Parser(object):
def __init__(self, html: str) -> None:
self.html = html
@property
def soup(self):
return BeautifulSoup(self.html, 'html.parser')
@property
def links(self):
data = []
ls = self.soup.find_all('a')
for link ... | 19.470588 | 54 | 0.471299 | 66 | 662 | 4.636364 | 0.530303 | 0.143791 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005038 | 0.400302 | 662 | 33 | 55 | 20.060606 | 0.765743 | 0 | 0 | 0.148148 | 0 | 0 | 0.063444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185185 | false | 0 | 0.037037 | 0.111111 | 0.407407 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
e558ef55ca90c97207449384304eb518fc640b34 | 731 | py | Python | okta/models/app/AppCredentials.py | xmercury-qb/okta-sdk-python | a668a963b13fc61177b36c5438c6ec5fa6f17c4e | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-09-09T12:59:19.000Z | 2020-09-09T12:59:19.000Z | okta/models/app/AppCredentials.py | xmercury-qb/okta-sdk-python | a668a963b13fc61177b36c5438c6ec5fa6f17c4e | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2018-01-05T20:23:12.000Z | 2019-03-06T12:00:58.000Z | okta/models/app/AppCredentials.py | xmercury-qb/okta-sdk-python | a668a963b13fc61177b36c5438c6ec5fa6f17c4e | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2018-11-08T19:32:46.000Z | 2021-03-30T06:35:48.000Z | from okta.models.app.UserNameTemplate import UserNameTemplate
from okta.models.user.Password import Password
class AppCredentials:
types = {
'scheme': str,
'userNameTemplate': UserNameTemplate,
'userName': str,
'password': Password
}
def __init__(self):
# Determi... | 27.074074 | 119 | 0.660739 | 80 | 731 | 5.9875 | 0.525 | 0.033403 | 0.058455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27907 | 731 | 26 | 120 | 28.115385 | 0.908918 | 0.341997 | 0 | 0 | 0 | 0 | 0.080508 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.214286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e55991ff3f57197cb99bce9b93b22d263e09d672 | 788 | py | Python | selenium_test/sele_test_bing_translator.py | ivanlevsky/cowabunga-potato | ab317582b7b8f99d7be3ea4f5edbe9829fc398fb | [
"MIT"
] | null | null | null | selenium_test/sele_test_bing_translator.py | ivanlevsky/cowabunga-potato | ab317582b7b8f99d7be3ea4f5edbe9829fc398fb | [
"MIT"
] | null | null | null | selenium_test/sele_test_bing_translator.py | ivanlevsky/cowabunga-potato | ab317582b7b8f99d7be3ea4f5edbe9829fc398fb | [
"MIT"
] | null | null | null | from selenium_test.selenium_utils import *
import time
def select_languages(from_lang, to_lang):
element = driver.find_element_by_id('tta_srcsl')
select_element_by_value(element,from_lang)
element = driver.find_element_by_id('tta_tgtsl')
select_element_by_value(element,to_lang)
def send_translate_tex... | 28.142857 | 65 | 0.769036 | 119 | 788 | 4.714286 | 0.445378 | 0.096257 | 0.121212 | 0.171123 | 0.345811 | 0.249554 | 0.249554 | 0.249554 | 0 | 0 | 0 | 0.001437 | 0.116751 | 788 | 27 | 66 | 29.185185 | 0.804598 | 0 | 0 | 0 | 0 | 0 | 0.13486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e55b9a0f910c59546676a00a6f808965e74d4e85 | 1,706 | py | Python | web/cgi-bin/index.py | sncodeGit/footloose-VPC | 099a300250f90becabc449ce19e56382e7685c41 | [
"Apache-2.0"
] | null | null | null | web/cgi-bin/index.py | sncodeGit/footloose-VPC | 099a300250f90becabc449ce19e56382e7685c41 | [
"Apache-2.0"
] | null | null | null | web/cgi-bin/index.py | sncodeGit/footloose-VPC | 099a300250f90becabc449ce19e56382e7685c41 | [
"Apache-2.0"
] | 1 | 2020-12-14T02:32:33.000Z | 2020-12-14T02:32:33.000Z | #!/usr/bin/env python3
import subprocess
import sys
import os
import cgi, cgitb
#
from jinja2 import Environment, FileSystemLoader
# Import config.py
with open('/etc/footloose-vpc/footloose-vpc.conf') as f:
config_path = f.read().split('\n')[0]
sys.path.insert(0, config_path)
import config as cfg
# Import module... | 31.592593 | 105 | 0.685815 | 255 | 1,706 | 4.380392 | 0.298039 | 0.026858 | 0.044763 | 0.085049 | 0.331244 | 0.263205 | 0.207699 | 0.068039 | 0.068039 | 0.068039 | 0 | 0.009675 | 0.151817 | 1,706 | 53 | 106 | 32.188679 | 0.762267 | 0.040445 | 0 | 0.186047 | 0 | 0 | 0.161152 | 0.022672 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.093023 | 0.209302 | 0 | 0.209302 | 0.046512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e55db18a5cce29811faf61d7cbad6c94205871bb | 1,129 | py | Python | Foundation/class.py | youaresherlock/PythonPractice | 2e22d3fdcb26353cb0d8215c150e84d11bc9a022 | [
"Apache-2.0"
] | null | null | null | Foundation/class.py | youaresherlock/PythonPractice | 2e22d3fdcb26353cb0d8215c150e84d11bc9a022 | [
"Apache-2.0"
] | null | null | null | Foundation/class.py | youaresherlock/PythonPractice | 2e22d3fdcb26353cb0d8215c150e84d11bc9a022 | [
"Apache-2.0"
] | 1 | 2019-11-05T01:10:15.000Z | 2019-11-05T01:10:15.000Z | #!usr/bin/python
# -*- coding:utf8 -*-
class people:
# 定义基本属性
job = "gopher"
def __init__(self, name, age, weight):
self.name = name
self.age = age
# 注意__xx是私有变量,self._weight外部是可以直接访问到的
self.__weight = weight # 私有变量,翻译成了self._A__name = "python"
def speak(self):
... | 18.508197 | 85 | 0.621789 | 136 | 1,129 | 4.941176 | 0.455882 | 0.071429 | 0.053571 | 0.066964 | 0.114583 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0.010477 | 0.23915 | 1,129 | 60 | 86 | 18.816667 | 0.771828 | 0.317095 | 0 | 0.090909 | 0 | 0 | 0.087075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0 | 0 | 0.409091 | 0.318182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e56e88976dd4afdf758a44cc1444e3d2b84923c3 | 6,290 | py | Python | fit_cluster_isochrone.py | kcotar/Gaia_clusters_potential | aee2658c40446891d31528f8dec3cec899b63c68 | [
"MIT"
] | null | null | null | fit_cluster_isochrone.py | kcotar/Gaia_clusters_potential | aee2658c40446891d31528f8dec3cec899b63c68 | [
"MIT"
] | null | null | null | fit_cluster_isochrone.py | kcotar/Gaia_clusters_potential | aee2658c40446891d31528f8dec3cec899b63c68 | [
"MIT"
] | null | null | null | from get_isochrone import one_iso
from astropy.table import Table
from astropy.coordinates import SkyCoord
from dustmaps.bayestar import BayestarWebQuery, BayestarQuery
from os import system, chdir
import astropy.units as un
import numpy as np
import matplotlib.pyplot as plt
magnitudes = {
'gaia_g': ('tab_mag_odfnew/... | 51.557377 | 215 | 0.681558 | 1,052 | 6,290 | 3.851711 | 0.213878 | 0.127838 | 0.092547 | 0.094768 | 0.441757 | 0.431145 | 0.430158 | 0.380306 | 0.336377 | 0.33465 | 0 | 0.058855 | 0.10318 | 6,290 | 121 | 216 | 51.983471 | 0.659458 | 0.111606 | 0 | 0.090909 | 0 | 0.011364 | 0.177917 | 0.05009 | 0 | 0 | 0 | 0.008264 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.056818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e571e654d6e8e09a486dfec879d7eba026df4d67 | 367 | py | Python | pylem/tests/test_misspell.py | sokirko74/pylem | 68d62ce5452b6b80f2c2ef3345b4160c09e24bdf | [
"MIT"
] | null | null | null | pylem/tests/test_misspell.py | sokirko74/pylem | 68d62ce5452b6b80f2c2ef3345b4160c09e24bdf | [
"MIT"
] | null | null | null | pylem/tests/test_misspell.py | sokirko74/pylem | 68d62ce5452b6b80f2c2ef3345b4160c09e24bdf | [
"MIT"
] | null | null | null | from pylem import MorphanHolder, MorphLanguage
import unittest
class TestMisspell(unittest.TestCase):
def test_sokirko(self):
holder = MorphanHolder(MorphLanguage.Russian)
res = holder.correct_misspell("сакирко")
self.assertGreater(len(res), 0)
self.assertTrue(res[0], "СОКИРКО")
... | 24.466667 | 53 | 0.700272 | 39 | 367 | 6.333333 | 0.692308 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006734 | 0.190736 | 367 | 14 | 54 | 26.214286 | 0.824916 | 0 | 0 | 0 | 0 | 0 | 0.059946 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e57252a1a16ebc46161a07e5d4fd56fe34c17984 | 1,256 | py | Python | app/src/pipelines/stages/hadoopcsvmatchreplace.py | FKrauss/Data-Pipeline | 8617f25494c5dacc9cf441682c439ba1e6e96a05 | [
"Apache-2.0"
] | 63 | 2015-01-13T15:27:52.000Z | 2021-04-22T09:00:52.000Z | app/src/pipelines/stages/hadoopcsvmatchreplace.py | jnelly79/Data-Pipeline | 0bdd1664bc9ff5e36928c4609ef6127ef1e1fb3f | [
"Apache-2.0"
] | 1 | 2021-03-21T10:12:28.000Z | 2021-03-21T10:12:28.000Z | app/src/pipelines/stages/hadoopcsvmatchreplace.py | jnelly79/Data-Pipeline | 0bdd1664bc9ff5e36928c4609ef6127ef1e1fb3f | [
"Apache-2.0"
] | 28 | 2015-01-30T11:48:47.000Z | 2021-10-09T18:36:02.000Z | # Copyright 2013 Google Inc. 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... | 32.205128 | 74 | 0.754777 | 171 | 1,256 | 5.520468 | 0.608187 | 0.063559 | 0.027542 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.171975 | 1,256 | 38 | 75 | 33.052632 | 0.9 | 0.59793 | 0 | 0 | 0 | 0 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e57670a923a7f0db2f8c17a62463cd864ad302e2 | 3,656 | py | Python | assignments/05-python-tictactoe/tictactoe.py | fortwatts/biosys-analytics | d616a98198fbb00a861d58c6c184891ff9659980 | [
"MIT"
] | 1 | 2019-01-15T16:30:25.000Z | 2019-01-15T16:30:25.000Z | assignments/05-python-tictactoe/tictactoe.py | fortwatts/biosys-analytics | d616a98198fbb00a861d58c6c184891ff9659980 | [
"MIT"
] | null | null | null | assignments/05-python-tictactoe/tictactoe.py | fortwatts/biosys-analytics | d616a98198fbb00a861d58c6c184891ff9659980 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Author : George S. Watts <gwatts@email.arizona.edu>
Date : 2019-02-07
Purpose: tictactoe script using commandline flagged arguments that takes a state, cell, and player and determines if there's a winner
"""
import argparse
import sys
import re
# -------------------------------... | 30.466667 | 134 | 0.50465 | 451 | 3,656 | 4.042129 | 0.305987 | 0.019199 | 0.021942 | 0.016456 | 0.111355 | 0.044981 | 0.044981 | 0.044981 | 0 | 0 | 0 | 0.021124 | 0.274891 | 3,656 | 119 | 135 | 30.722689 | 0.666541 | 0 | 0 | 0.181818 | 0 | 0.012987 | 0.215396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038961 | null | null | 0.168831 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e576e9b4de80fa073f19363bd830211af0f20638 | 798 | py | Python | examples/error_handling.py | DanielIzquierdo/osisoftpy | c86fbf36a5a6dd7bcd51eebeaddd9eeec1a9b276 | [
"Apache-2.0"
] | 10 | 2018-09-10T20:58:47.000Z | 2021-06-24T21:55:55.000Z | examples/error_handling.py | DanielIzquierdo/osisoftpy | c86fbf36a5a6dd7bcd51eebeaddd9eeec1a9b276 | [
"Apache-2.0"
] | null | null | null | examples/error_handling.py | DanielIzquierdo/osisoftpy | c86fbf36a5a6dd7bcd51eebeaddd9eeec1a9b276 | [
"Apache-2.0"
] | 7 | 2018-07-01T00:31:58.000Z | 2021-03-10T05:05:40.000Z | # Import library
import osisoftpy
# Authenticate
webapi = osisoftpy.webapi('https://dev.dstcontrols.com/piwebapi/')#, authtype='basic', username='ABCDEF', password='1234567890')
# Get points
point_list = webapi.points(query='name:SINU*')
point_list2 = webapi.points(query='name:CDT*')
for individual_point in point_lis... | 39.9 | 128 | 0.718045 | 99 | 798 | 5.646465 | 0.535354 | 0.214669 | 0.060823 | 0.075134 | 0.089445 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025111 | 0.151629 | 798 | 20 | 129 | 39.9 | 0.800591 | 0.146617 | 0 | 0 | 0 | 0 | 0.16568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e57d5eeb414dab2013bad6414be068a571ae496a | 1,113 | py | Python | main.py | andrewschreiber/numpy-saliency | 2e788a1150f6e160f2271cbb4f20747559f243c0 | [
"MIT"
] | 10 | 2019-07-30T02:36:21.000Z | 2020-12-22T06:35:40.000Z | main.py | andrewschreiber/numpy-saliency | 2e788a1150f6e160f2271cbb4f20747559f243c0 | [
"MIT"
] | 6 | 2019-08-09T02:17:38.000Z | 2022-03-11T23:56:24.000Z | main.py | andrewschreiber/numpy-saliency | 2e788a1150f6e160f2271cbb4f20747559f243c0 | [
"MIT"
] | 2 | 2019-08-03T08:38:26.000Z | 2020-06-29T12:58:47.000Z | from model.network import LeNet5
from saliency.vanilla_gradient import save_vanilla_gradient
from model.data import mnist_train_test_sets
import numpy as np
# Get MNIST dataset, preprocessed
train_images, train_labels, test_images, test_labels = mnist_train_test_sets()
# Load net and 98% acc weights
net = LeNet5(weig... | 39.75 | 78 | 0.781671 | 170 | 1,113 | 4.841176 | 0.364706 | 0.060753 | 0.065614 | 0.043742 | 0.128797 | 0.080194 | 0.080194 | 0 | 0 | 0 | 0 | 0.016667 | 0.137466 | 1,113 | 27 | 79 | 41.222222 | 0.840625 | 0.584906 | 0 | 0 | 0 | 0 | 0.042411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e58fc44b6647842969b869f6f0b5fb7ef98d51c0 | 890 | py | Python | GeneMethyl Package/setup.py | JoonHyeongPark/IMMethyl | bb4aa43475460b0ce0dd8b46606f3e61c672ee8f | [
"MIT"
] | null | null | null | GeneMethyl Package/setup.py | JoonHyeongPark/IMMethyl | bb4aa43475460b0ce0dd8b46606f3e61c672ee8f | [
"MIT"
] | null | null | null | GeneMethyl Package/setup.py | JoonHyeongPark/IMMethyl | bb4aa43475460b0ce0dd8b46606f3e61c672ee8f | [
"MIT"
] | null | null | null | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name = "GeneMethyl",
version = "1.0.0",
author = "Joon-Hyeong Park",
author_email = "clearclouds@snu.ac.kr",
description = "By this package, you can simply calculate the epigenetic res... | 52.352941 | 446 | 0.741573 | 115 | 890 | 5.669565 | 0.704348 | 0.092025 | 0.03681 | 0.092025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004098 | 0.177528 | 890 | 16 | 447 | 55.625 | 0.886612 | 0 | 0 | 0 | 0 | 0.071429 | 0.621281 | 0.024027 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e595d1f53aafe6f84689b2c5a84e039e3b662d70 | 3,740 | py | Python | smip/parser.py | jonathanvanschenck/smip | 189a5a6dab743927a2d8d82504e7a1e92dfed564 | [
"MIT"
] | null | null | null | smip/parser.py | jonathanvanschenck/smip | 189a5a6dab743927a2d8d82504e7a1e92dfed564 | [
"MIT"
] | null | null | null | smip/parser.py | jonathanvanschenck/smip | 189a5a6dab743927a2d8d82504e7a1e92dfed564 | [
"MIT"
] | null | null | null | """
What do I need to do?
1) take a non-standard string and form a standard string reference
2) take a range and create a standard string reference
3) take either lookup or query a range via BSW
"""
import biblescrapeway as bsw
class Parser:
def __init__(self, string):
self.range_litwst = string
... | 31.965812 | 116 | 0.534492 | 459 | 3,740 | 4.246187 | 0.22658 | 0.052335 | 0.033864 | 0.035916 | 0.381221 | 0.355054 | 0.259107 | 0.162648 | 0.139559 | 0.139559 | 0 | 0.003665 | 0.343316 | 3,740 | 116 | 117 | 32.241379 | 0.789902 | 0.202139 | 0 | 0.380952 | 0 | 0 | 0.021601 | 0 | 0 | 0 | 0 | 0.008621 | 0 | 0 | null | null | 0 | 0.015873 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e5a9e19b0c0e7587a4c98940f4b0dde40eb76ab0 | 630 | py | Python | Python/Code/Python3-Base/09_Functional/Decorator1.py | hiloWang/notes | 64a637a86f734e4e80975f4aa93ab47e8d7e8b64 | [
"Apache-2.0"
] | 2 | 2020-10-08T13:22:08.000Z | 2021-07-28T14:45:41.000Z | Python/Python3-Base/09_Functional/Decorator1.py | flyfire/Programming-Notes-Code | 4b1bdd74c1ba0c007c504834e4508ec39f01cd94 | [
"Apache-2.0"
] | null | null | null | Python/Python3-Base/09_Functional/Decorator1.py | flyfire/Programming-Notes-Code | 4b1bdd74c1ba0c007c504834e4508ec39f01cd94 | [
"Apache-2.0"
] | 6 | 2020-08-20T07:19:17.000Z | 2022-03-02T08:16:21.000Z | #########################
# 装饰器:一般的装饰器
#########################
import time
def time_track(func):
# args为了保证可以接收不定参数的调用
# kwargs为了保证可以装饰 **kwargs的函数调用
def wrapper(*args, **kwargs):
start = time.time()
print("call function %s at %f" % (func.__name__, start))
result = func(*args, *... | 18.529412 | 64 | 0.580952 | 74 | 630 | 4.743243 | 0.445946 | 0.102564 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01222 | 0.220635 | 630 | 33 | 65 | 19.090909 | 0.702648 | 0.144444 | 0 | 0.111111 | 0 | 0 | 0.105372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.055556 | 0.444444 | 0.388889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e5a9fdaf9bd33743e3ead291d0e45e772fc19a59 | 3,771 | py | Python | admin/internet_archive/views.py | gaybro8777/osf.io | 30408511510a40bc393565817b343ef5fd76ab14 | [
"Apache-2.0"
] | 628 | 2015-01-15T04:33:22.000Z | 2022-03-30T06:40:10.000Z | admin/internet_archive/views.py | gaybro8777/osf.io | 30408511510a40bc393565817b343ef5fd76ab14 | [
"Apache-2.0"
] | 4,712 | 2015-01-02T01:41:53.000Z | 2022-03-30T14:18:40.000Z | admin/internet_archive/views.py | Johnetordoff/osf.io | de10bf249c46cede04c78f7e6f7e352c69e6e6b5 | [
"Apache-2.0"
] | 371 | 2015-01-12T16:14:08.000Z | 2022-03-31T18:58:29.000Z | from django.views.generic import TemplateView, View, FormView
from django.contrib import messages
from osf.management.commands.archive_registrations_on_IA import (
archive_registrations_on_IA,
)
from osf.management.commands.populate_internet_archives_collections import (
populate_internet_archives_collections,
... | 36.259615 | 106 | 0.717582 | 434 | 3,771 | 6.018433 | 0.262673 | 0.057427 | 0.044028 | 0.057427 | 0.446784 | 0.446784 | 0.417688 | 0.417688 | 0.396248 | 0.361026 | 0 | 0 | 0.187218 | 3,771 | 103 | 107 | 36.61165 | 0.852202 | 0.012994 | 0 | 0.35443 | 0 | 0 | 0.145587 | 0.057589 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101266 | false | 0 | 0.139241 | 0.037975 | 0.544304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e5b2e43542c740b4df157659a16342037295f072 | 4,843 | py | Python | vagrant/catalog/lotsofitems.py | sxw031/fullstack-nanodegree-vm | ce4b7cfd3d1c147298dcf1ca3b4ad897837dc62e | [
"MIT"
] | null | null | null | vagrant/catalog/lotsofitems.py | sxw031/fullstack-nanodegree-vm | ce4b7cfd3d1c147298dcf1ca3b4ad897837dc62e | [
"MIT"
] | null | null | null | vagrant/catalog/lotsofitems.py | sxw031/fullstack-nanodegree-vm | ce4b7cfd3d1c147298dcf1ca3b4ad897837dc62e | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Category, CategoryItems, User
engine = create_engine('sqlite:///catalogitems.db')
# Bind the engine to the metadata of the Base class so that the
# declaratives can be accessed through a DBSession instance
Ba... | 36.413534 | 194 | 0.780714 | 636 | 4,843 | 5.937107 | 0.341195 | 0.075742 | 0.063559 | 0.083422 | 0.472722 | 0.424258 | 0.424258 | 0.365466 | 0.304555 | 0.136123 | 0 | 0.023354 | 0.115837 | 4,843 | 133 | 195 | 36.413534 | 0.858477 | 0.19141 | 0 | 0.514706 | 0 | 0.014706 | 0.367719 | 0.006415 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e5b53974a987913ccdf5cda8b2a1d2cab12d0fa8 | 10,724 | py | Python | src/smokedetectoroptimization/optimizer.py | russelldj/detector-placement-module | aacb49efdaccb3dd5dea8f4bb44a155a0e5d199c | [
"MIT"
] | null | null | null | src/smokedetectoroptimization/optimizer.py | russelldj/detector-placement-module | aacb49efdaccb3dd5dea8f4bb44a155a0e5d199c | [
"MIT"
] | 4 | 2020-07-22T03:05:06.000Z | 2020-11-15T19:57:17.000Z | src/smokedetectoroptimization/optimizer.py | russelldj/detector-placement-module | aacb49efdaccb3dd5dea8f4bb44a155a0e5d199c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Most optimization functions should be accessible from this file
"""
import argparse
import sys
import logging
import pdb
import os
from collections import defaultdict
import numpy as np
from scipy.optimize import differential_evolution
import matplotlib.pyplot as plt
from tqdm import trang... | 35.746667 | 122 | 0.651343 | 1,191 | 10,724 | 5.651553 | 0.256087 | 0.047987 | 0.025999 | 0.016639 | 0.185856 | 0.166246 | 0.118259 | 0.103996 | 0.084683 | 0.084683 | 0 | 0.0049 | 0.276856 | 10,724 | 299 | 123 | 35.866221 | 0.863056 | 0.195729 | 0 | 0.181319 | 0 | 0 | 0.11316 | 0.005831 | 0 | 0 | 0 | 0.013378 | 0 | 1 | 0.043956 | false | 0 | 0.076923 | 0 | 0.148352 | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e5b7daa2d0aa3d32c5720c9dad2f8af95f9d3f07 | 2,926 | py | Python | my_first_blog_project/blog_kid/blog/views.py | mohammad716e/python_training | 0654623c603c775ed2cbdc3919dc815891c8fdeb | [
"MIT"
] | null | null | null | my_first_blog_project/blog_kid/blog/views.py | mohammad716e/python_training | 0654623c603c775ed2cbdc3919dc815891c8fdeb | [
"MIT"
] | null | null | null | my_first_blog_project/blog_kid/blog/views.py | mohammad716e/python_training | 0654623c603c775ed2cbdc3919dc815891c8fdeb | [
"MIT"
] | null | null | null | from blog.models import Post,comment
from django.shortcuts import render,get_object_or_404,redirect
from django.utils import timezone
from django.views.generic import (TemplateView,
CreateView,ListView,DetailView,UpdateView)
from django.contrib.auth.mixins import LoginRequiredMixin
from blog.forms import PostForm,comme... | 28.970297 | 95 | 0.683185 | 374 | 2,926 | 5.168449 | 0.374332 | 0.037248 | 0.028453 | 0.036213 | 0.320745 | 0.274185 | 0.274185 | 0.241076 | 0.241076 | 0.205898 | 0 | 0.006435 | 0.203349 | 2,926 | 100 | 96 | 29.26 | 0.822823 | 0 | 0 | 0.393939 | 0 | 0 | 0.081038 | 0.033932 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.106061 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e5c9795c8185ae2376baba70e9cb5b9201156df8 | 4,209 | py | Python | u8timeseries/tests/test_timeseries.py | unit8co/unit8timeseries-viscon | bfb9e5c8b8a51c04b823b501039eb8b2fc215cf3 | [
"Apache-2.0"
] | 2 | 2019-10-11T12:03:03.000Z | 2021-04-25T19:17:59.000Z | u8timeseries/tests/test_timeseries.py | unit8co/u8timeseries-viscon | bfb9e5c8b8a51c04b823b501039eb8b2fc215cf3 | [
"Apache-2.0"
] | null | null | null | u8timeseries/tests/test_timeseries.py | unit8co/u8timeseries-viscon | bfb9e5c8b8a51c04b823b501039eb8b2fc215cf3 | [
"Apache-2.0"
] | null | null | null | import unittest
import pandas as pd
from timeseries import TimeSeries
class TimeSeriesTestCase(unittest.TestCase):
__test__ = True
pd_series1 = pd.Series(range(10), index=pd.date_range('20130101', '20130110'))
series1: TimeSeries = TimeSeries(pd_series1)
def test_creation(self):
with self.a... | 44.776596 | 110 | 0.655738 | 497 | 4,209 | 5.420523 | 0.197183 | 0.097996 | 0.077951 | 0.051967 | 0.52487 | 0.342613 | 0.256867 | 0.200445 | 0.111359 | 0.089087 | 0 | 0.113156 | 0.21264 | 4,209 | 93 | 111 | 45.258065 | 0.699759 | 0.069375 | 0 | 0.131148 | 0 | 0 | 0.08679 | 0 | 0 | 0 | 0 | 0 | 0.409836 | 1 | 0.098361 | false | 0 | 0.04918 | 0 | 0.213115 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e5d61f54a183b059e4a0f05171c890e47c5f8c73 | 1,097 | py | Python | Step_6a_scatterplots.py | open-risk/Academy-Course-DAT31018 | 551e9128ef2c07302552ad3fa554ebee69aa8f14 | [
"Apache-2.0"
] | 3 | 2020-08-30T06:18:41.000Z | 2021-08-09T01:34:39.000Z | Step_6a_scatterplots.py | open-risk/Academy-Course-DAT31018 | 551e9128ef2c07302552ad3fa554ebee69aa8f14 | [
"Apache-2.0"
] | null | null | null | Step_6a_scatterplots.py | open-risk/Academy-Course-DAT31018 | 551e9128ef2c07302552ad3fa554ebee69aa8f14 | [
"Apache-2.0"
] | 2 | 2020-07-11T18:13:13.000Z | 2021-03-01T09:25:32.000Z | # (c) 2019 Open Risk (https://www.openriskmanagement.com)
#
# This code is licensed under the Apache 2.0 license a copy of which is included
# in the source distribution of the course. This is notwithstanding any licenses of
# third-party software included in this distribution. You may not use this file except in
# com... | 39.178571 | 96 | 0.775752 | 173 | 1,097 | 4.884393 | 0.612717 | 0.047337 | 0.035503 | 0.056805 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013874 | 0.145852 | 1,097 | 27 | 97 | 40.62963 | 0.88794 | 0.714676 | 0 | 0 | 0 | 0 | 0.255034 | 0.161074 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e5da438dc9beef87020d18c4f8163b1c149b5d03 | 17,525 | py | Python | shared.py | facebookresearch/mpcfp | cb29797aa4f2ce524dd584ecf47c863fd9f414a6 | [
"MIT"
] | 5 | 2020-11-18T23:55:17.000Z | 2022-01-14T07:15:35.000Z | shared.py | facebookresearch/mpcfp | cb29797aa4f2ce524dd584ecf47c863fd9f414a6 | [
"MIT"
] | null | null | null | shared.py | facebookresearch/mpcfp | cb29797aa4f2ce524dd584ecf47c863fd9f414a6 | [
"MIT"
] | 2 | 2021-11-06T14:06:13.000Z | 2022-01-14T07:16:29.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# =============================================================================
#
# This file contains a simple PyTorc... | 29.855196 | 79 | 0.588645 | 2,195 | 17,525 | 4.533485 | 0.154897 | 0.052256 | 0.029545 | 0.024822 | 0.411114 | 0.329113 | 0.295649 | 0.267109 | 0.23887 | 0.215456 | 0 | 0.011265 | 0.290842 | 17,525 | 586 | 80 | 29.906143 | 0.789427 | 0.154922 | 0 | 0.318519 | 0 | 0 | 0.008987 | 0 | 0 | 0 | 0 | 0.003413 | 0.007407 | 1 | 0.212346 | false | 0 | 0.012346 | 0.088889 | 0.439506 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e5dc6f250445bd272052e9e58d00514212811881 | 719 | py | Python | alpaca/utils/datasets/saver.py | kra5h/alpaca | 0e014f12bfa6601e5bb2c57c4da083c270560d6c | [
"Apache-2.0"
] | 14 | 2020-03-04T14:16:23.000Z | 2021-12-26T17:47:55.000Z | alpaca/utils/datasets/saver.py | kra5h/alpaca | 0e014f12bfa6601e5bb2c57c4da083c270560d6c | [
"Apache-2.0"
] | 5 | 2020-07-07T15:27:57.000Z | 2020-11-09T14:11:06.000Z | alpaca/utils/datasets/saver.py | kra5h/alpaca | 0e014f12bfa6601e5bb2c57c4da083c270560d6c | [
"Apache-2.0"
] | 5 | 2020-03-14T18:27:53.000Z | 2021-12-26T17:49:18.000Z | import os
import os.path as path
import numpy as np
class DataSaver:
def __init__(self, data_dir):
self.data_dir = data_dir
def save(self, x, y, name=""):
if not (path.exists(self.data_dir)):
os.makedirs(self.data_dir)
np.save(path.join(self.data_dir, f"x_{name}.npy"), x)
... | 31.26087 | 61 | 0.623088 | 124 | 719 | 3.379032 | 0.258065 | 0.150358 | 0.210024 | 0.152745 | 0.315036 | 0.315036 | 0.315036 | 0.295943 | 0.267303 | 0 | 0 | 0 | 0.232267 | 719 | 22 | 62 | 32.681818 | 0.759058 | 0 | 0 | 0 | 0 | 0 | 0.066759 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e5e05800f3e61abaeff2a08a0928e9c102e11f28 | 5,626 | py | Python | resource/pypi/cryptography-1.7.1/src/_cffi_src/openssl/asn1.py | hipnusleo/Laserjet | f53e0b740f48f2feb0c0bb285ec6728b313b4ccc | [
"Apache-2.0"
] | null | null | null | resource/pypi/cryptography-1.7.1/src/_cffi_src/openssl/asn1.py | hipnusleo/Laserjet | f53e0b740f48f2feb0c0bb285ec6728b313b4ccc | [
"Apache-2.0"
] | null | null | null | resource/pypi/cryptography-1.7.1/src/_cffi_src/openssl/asn1.py | hipnusleo/Laserjet | f53e0b740f48f2feb0c0bb285ec6728b313b4ccc | [
"Apache-2.0"
] | null | null | null | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import absolute_import, division, print_function
INCLUDES = """
#include <openssl/asn1.h>
"""
TYPES = """
type... | 34.09697 | 80 | 0.747245 | 811 | 5,626 | 4.799014 | 0.165228 | 0.087359 | 0.061665 | 0.030832 | 0.258736 | 0.172919 | 0.061408 | 0 | 0 | 0 | 0 | 0.047389 | 0.152328 | 5,626 | 164 | 81 | 34.304878 | 0.768715 | 0.03075 | 0 | 0.039063 | 0 | 0.015625 | 0.96859 | 0.389593 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.007813 | 0 | 0.007813 | 0.023438 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e5ee5eeb957040b9940bb279505c1c763dcf94a5 | 3,757 | py | Python | src/linear.py | garydoranjr/mikernels | 9979631e57858eb21a5121c6e99cfa892c4944ad | [
"BSD-3-Clause"
] | null | null | null | src/linear.py | garydoranjr/mikernels | 9979631e57858eb21a5121c6e99cfa892c4944ad | [
"BSD-3-Clause"
] | null | null | null | src/linear.py | garydoranjr/mikernels | 9979631e57858eb21a5121c6e99cfa892c4944ad | [
"BSD-3-Clause"
] | null | null | null | """
Implements Linear L1-SVM
"""
import numpy as np
from cvxopt import matrix as cvxmat, spmatrix, sparse
from cvxopt.solvers import lp, options
import kernel as klib
class L1SVM(object):
def __init__(self, **parameters):
self.C = parameters.pop('C', 1.0)
self.scale_C = parameters.pop('scale_C', ... | 28.462121 | 70 | 0.525952 | 534 | 3,757 | 3.627341 | 0.305243 | 0.024781 | 0.025813 | 0.015488 | 0.107383 | 0.053175 | 0.020134 | 0.020134 | 0.020134 | 0.020134 | 0 | 0.010244 | 0.324461 | 3,757 | 131 | 71 | 28.679389 | 0.752955 | 0.047378 | 0 | 0.060241 | 0 | 0 | 0.051713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060241 | null | null | 0.024096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e5eff5b5fb86ea190d2b81541e543f75078be433 | 599 | py | Python | db/locations/management/commands/load_counties.py | heigeo/climata-viewer | 8fc4e0326f23195e28f6f127cbbe50bcaec258fd | [
"MIT"
] | 12 | 2015-01-22T20:26:08.000Z | 2020-03-15T08:50:17.000Z | db/locations/management/commands/load_counties.py | heigeo/climata-viewer | 8fc4e0326f23195e28f6f127cbbe50bcaec258fd | [
"MIT"
] | null | null | null | db/locations/management/commands/load_counties.py | heigeo/climata-viewer | 8fc4e0326f23195e28f6f127cbbe50bcaec258fd | [
"MIT"
] | 2 | 2015-05-19T03:29:36.000Z | 2018-03-02T19:10:17.000Z | from django.core.management.base import BaseCommand
from climata.fips import state_counties
from locations.models import County, State
class Command(BaseCommand):
args = "<state>"
help = "Import FIPS county codes"
def handle(self, state, **options):
counties = state_counties(state)
for fi... | 31.526316 | 57 | 0.649416 | 69 | 599 | 5.594203 | 0.521739 | 0.067358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255426 | 599 | 18 | 58 | 33.277778 | 0.865471 | 0 | 0 | 0 | 0 | 0 | 0.051753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e5f06c66fe0472643f33baf540d4772a1265374f | 3,522 | py | Python | lib/JumpScale/lib/mysql/MySQLFactory.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | 1 | 2015-10-26T10:38:13.000Z | 2015-10-26T10:38:13.000Z | lib/JumpScale/lib/mysql/MySQLFactory.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | null | null | null | lib/JumpScale/lib/mysql/MySQLFactory.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | null | null | null | from JumpScale import j
import _mysql
import time
import calendar
from htmllib import HTMLParser
from formatter import AbstractFormatter, DumbWriter
from cStringIO import StringIO
import JumpScale.lib.html
class MySQLFactory():
"""
"""
def __init__(self):
self.clients={}
def getClient(self,i... | 30.894737 | 89 | 0.521295 | 373 | 3,522 | 4.790885 | 0.297587 | 0.035255 | 0.033576 | 0.023503 | 0.133184 | 0.006715 | 0 | 0 | 0 | 0 | 0 | 0.010426 | 0.373651 | 3,522 | 113 | 90 | 31.168142 | 0.799637 | 0.016752 | 0 | 0.157303 | 0 | 0 | 0.048738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.033708 | 0.089888 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e5f1d369b12d6dc2c9be30f34023c8c3c8785293 | 354 | py | Python | setup.py | TK-21st/Neuroballad | 6d4800e969c35b0f2d64897db24b734a9daaa160 | [
"BSD-3-Clause"
] | null | null | null | setup.py | TK-21st/Neuroballad | 6d4800e969c35b0f2d64897db24b734a9daaa160 | [
"BSD-3-Clause"
] | null | null | null | setup.py | TK-21st/Neuroballad | 6d4800e969c35b0f2d64897db24b734a9daaa160 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup
from setuptools import find_packages
setup(name='Neuroballad',
version='0.1.0',
description='Neural Circuit Simulation for Python',
author='Mehmet Kerem Turkcan',
author_email='mkt2126@columbia.edu',
url='',
download_url='',
license='BSD-3-Clause'... | 25.285714 | 57 | 0.672316 | 41 | 354 | 5.707317 | 0.756098 | 0.119658 | 0.17094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02847 | 0.206215 | 354 | 13 | 58 | 27.230769 | 0.80427 | 0 | 0 | 0 | 0 | 0 | 0.293785 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e5f5fa76fd84deafe46373e3ee78f7abc05a72c0 | 10,910 | py | Python | qb/qbmonetary/qbmonetary_search.py | QBMonetary/qbmonetary | b064b49c4e5667211f9e3f687fdd15da03be9f7e | [
"MIT"
] | 26 | 2015-03-15T17:05:49.000Z | 2020-05-06T06:42:54.000Z | qb/qbmonetary/qbmonetary_search.py | QBMonetary/qbmonetary | b064b49c4e5667211f9e3f687fdd15da03be9f7e | [
"MIT"
] | 19 | 2015-06-18T10:29:59.000Z | 2022-02-10T02:46:15.000Z | qb/qbmonetary/qbmonetary_search.py | QBMonetary/qbmonetary | b064b49c4e5667211f9e3f687fdd15da03be9f7e | [
"MIT"
] | 20 | 2015-10-31T16:32:54.000Z | 2022-02-05T14:10:32.000Z | import mock
import unittest
from .helper import _ResourceMixin
class SearchTest(_ResourceMixin, unittest.TestCase):
def _getTargetClass(self):
from .. import Search
return Search
@mock.patch('requests.get')
def test_charge(self, api_call):
class_ = self._getTargetClass()
... | 37.108844 | 86 | 0.408433 | 804 | 10,910 | 5.427861 | 0.231343 | 0.096242 | 0.134739 | 0.055454 | 0.573327 | 0.511457 | 0.422319 | 0.351054 | 0.332264 | 0.332264 | 0 | 0.06051 | 0.453162 | 10,910 | 293 | 87 | 37.235495 | 0.670969 | 0 | 0 | 0.375451 | 0 | 0 | 0.724931 | 0.069386 | 0 | 0 | 0 | 0 | 0.119134 | 1 | 0.018051 | false | 0 | 0.01444 | 0 | 0.039711 | 0.00722 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e5f79b83a799f2441da1b76633222a23e1e0d12c | 305 | py | Python | python/p001.py | lucaschen321/project-euler-solutions | 721a1d6a82c082cc24197fec2500118848ee8433 | [
"MIT"
] | null | null | null | python/p001.py | lucaschen321/project-euler-solutions | 721a1d6a82c082cc24197fec2500118848ee8433 | [
"MIT"
] | null | null | null | python/p001.py | lucaschen321/project-euler-solutions | 721a1d6a82c082cc24197fec2500118848ee8433 | [
"MIT"
] | null | null | null | #
# Solution to Project Euler Problem 1
# by Lucas Chen
#
# Answer: 233168
#
NUM = 1000
# Compute sum of the naturals that are a multiple of 3 or 5 and less than [NUM]
def compute():
return sum(i for i in range(1, NUM) if i % 3 == 0 or i % 5 == 0)
if __name__ == "__main__":
print(compute())
| 16.944444 | 79 | 0.636066 | 54 | 305 | 3.444444 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.252459 | 305 | 17 | 80 | 17.941176 | 0.736842 | 0.465574 | 0 | 0 | 0 | 0 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
e5f7e328916cddc796ab0cb63247399ec8bef901 | 948 | py | Python | class5/collateral/disable_cmd_verify.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | 11 | 2020-09-16T06:53:16.000Z | 2021-08-24T21:27:37.000Z | class5/collateral/disable_cmd_verify.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | null | null | null | class5/collateral/disable_cmd_verify.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | 5 | 2020-10-18T20:25:59.000Z | 2021-10-20T16:27:00.000Z | import os
from getpass import getpass
import yaml
from netmiko import ConnectHandler
def load_devices(device_file="lab_devices.yml"):
device_dict = {}
with open(device_file) as f:
device_dict = yaml.safe_load(f)
return device_dict
if __name__ == "__main__":
# Code so automated tests will ru... | 26.333333 | 85 | 0.67616 | 117 | 948 | 5.205128 | 0.521368 | 0.082102 | 0.078818 | 0.075534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012295 | 0.227848 | 948 | 35 | 86 | 27.085714 | 0.819672 | 0.128692 | 0 | 0 | 0 | 0 | 0.109489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.173913 | 0.173913 | 0 | 0.26087 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e5faf37155fc6839b828a54789332d36c2f0b405 | 1,312 | py | Python | src/CommentCrawling.py | nlpproject-2019/NLP_project | d679b87567593d31090f076e436f62a8a8f3da78 | [
"MIT"
] | 1 | 2020-03-10T09:35:22.000Z | 2020-03-10T09:35:22.000Z | src/CommentCrawling.py | nlpproject-2019/NLP_project | d679b87567593d31090f076e436f62a8a8f3da78 | [
"MIT"
] | 4 | 2019-06-02T08:44:27.000Z | 2019-06-04T07:49:14.000Z | src/CommentCrawling.py | nlpproject-2019/NLP_project | d679b87567593d31090f076e436f62a8a8f3da78 | [
"MIT"
] | 1 | 2020-05-16T12:42:53.000Z | 2020-05-16T12:42:53.000Z | #-*- coding:utf-8 -*-
import time
import requests
import credential
from bs4 import BeautifulSoup
from selenium import webdriver
binary= './chromedriver'
driver=webdriver.Chrome(binary)
f = open('./data/50.txt', 'a')
driver.get('https://pann.nate.com/talk/c20005')
driver.find_element_by_xpath('//*[@id="GnbWrap"]/div... | 32.8 | 77 | 0.652439 | 189 | 1,312 | 4.37037 | 0.449735 | 0.054479 | 0.082324 | 0.09201 | 0.326877 | 0.150121 | 0.087167 | 0.087167 | 0.087167 | 0 | 0 | 0.021101 | 0.169207 | 1,312 | 39 | 78 | 33.641026 | 0.736697 | 0.03811 | 0 | 0.064516 | 0 | 0 | 0.195238 | 0.045238 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0.064516 | 0.16129 | 0 | 0.193548 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e5fe6ae4fa0b5fb5e57669821c9a4a7a756067a2 | 828 | py | Python | src/maths.py | fdesjardins/surface-estimation-and-image-relighting | fb5aa44612076f7ee59da891edc61268eb4c05ad | [
"MIT"
] | 9 | 2017-06-14T09:58:27.000Z | 2020-12-18T03:22:06.000Z | src/maths.py | fdesjardins/svm-surface-estimation-and-relighting | fb5aa44612076f7ee59da891edc61268eb4c05ad | [
"MIT"
] | null | null | null | src/maths.py | fdesjardins/svm-surface-estimation-and-relighting | fb5aa44612076f7ee59da891edc61268eb4c05ad | [
"MIT"
] | 2 | 2020-01-19T01:06:59.000Z | 2021-08-08T10:32:34.000Z | import itertools
import numpy as np
def jitter(data, depth):
'''generates indices of the vertices for every
possible mesh configuration for the given depth.'''
return [a for a in
itertools.product([0,1], repeat=len(data))]
def mapVertices(vertices, all_indices, depths):
'''given indices (l... | 30.666667 | 69 | 0.588164 | 115 | 828 | 4.208696 | 0.434783 | 0.061983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033113 | 0.270531 | 828 | 27 | 70 | 30.666667 | 0.768212 | 0.231884 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f901c837526cc1589f933124413f7e8ba4833504 | 4,664 | py | Python | shiftmca.py | agaricusb/shiftmca | a71e1cfcc1f9c020a765b6336946a0d8320f55ca | [
"BSD-3-Clause"
] | null | null | null | shiftmca.py | agaricusb/shiftmca | a71e1cfcc1f9c020a765b6336946a0d8320f55ca | [
"BSD-3-Clause"
] | null | null | null | shiftmca.py | agaricusb/shiftmca | a71e1cfcc1f9c020a765b6336946a0d8320f55ca | [
"BSD-3-Clause"
] | null | null | null | # shiftmca.py - shift Minecraft region files (.mca) by a fixed number of regions
from cStringIO import StringIO
import gzip
import itertools
import zlib
import os
import struct
import logging
logging.basicConfig(level=logging.DEBUG)
import sys
sys.path.append("..")
import pymclevel
import numpy
# amount to shift X ... | 29.897436 | 95 | 0.61235 | 578 | 4,664 | 4.851211 | 0.318339 | 0.015692 | 0.025678 | 0.024608 | 0.163338 | 0.106633 | 0.054922 | 0.027104 | 0 | 0 | 0 | 0.026339 | 0.267367 | 4,664 | 155 | 96 | 30.090323 | 0.794264 | 0.237136 | 0 | 0.021277 | 0 | 0 | 0.061844 | 0.029504 | 0 | 0 | 0.001135 | 0.006452 | 0 | 0 | null | null | 0.010638 | 0.106383 | null | null | 0.031915 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f903c2de9fd9335273e380e5ff77ef256927fe9f | 1,242 | py | Python | accounts/migrations/0001_initial.py | UmarSyal/port_proj--news | c91a5aa6e07521fabedbc7ed25c36c0fb927510f | [
"MIT"
] | null | null | null | accounts/migrations/0001_initial.py | UmarSyal/port_proj--news | c91a5aa6e07521fabedbc7ed25c36c0fb927510f | [
"MIT"
] | null | null | null | accounts/migrations/0001_initial.py | UmarSyal/port_proj--news | c91a5aa6e07521fabedbc7ed25c36c0fb927510f | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-11-06 22:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('news... | 38.8125 | 171 | 0.645733 | 137 | 1,242 | 5.693431 | 0.467153 | 0.051282 | 0.071795 | 0.112821 | 0.25641 | 0.25641 | 0.217949 | 0.217949 | 0.217949 | 0.217949 | 0 | 0.019812 | 0.227858 | 1,242 | 31 | 172 | 40.064516 | 0.793535 | 0.036232 | 0 | 0 | 1 | 0 | 0.156485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f906f4234d84412867f22274a38932fe314d56fc | 2,495 | py | Python | Intento_orb.py | vpythonfcfm/pelotita-semicircunferencia | d918cb21426e3b0879f31bda8c747e4aaad17301 | [
"MIT"
] | 1 | 2018-05-07T15:04:44.000Z | 2018-05-07T15:04:44.000Z | Intento_orb.py | vpythonfcfm/pelotita-semicircunferencia | d918cb21426e3b0879f31bda8c747e4aaad17301 | [
"MIT"
] | null | null | null | Intento_orb.py | vpythonfcfm/pelotita-semicircunferencia | d918cb21426e3b0879f31bda8c747e4aaad17301 | [
"MIT"
] | 1 | 2018-04-25T15:06:49.000Z | 2018-04-25T15:06:49.000Z | #Importaciones
from vpython import *
import numpy as np
#PROBLEMA describe bien la orbita , pero no se cierra por el error acumulado que se genera con el metodo
#tambien note que los ejes polares no se notan pues su magnitud es pequeña c/r al tamaño de la luna (es decir , estan dentro de ella)
#Variables
G=6.67**... | 41.583333 | 134 | 0.718236 | 457 | 2,495 | 3.864333 | 0.33698 | 0.056625 | 0.024915 | 0.052095 | 0.229898 | 0.164213 | 0.1359 | 0.071348 | 0.071348 | 0.071348 | 0 | 0.04993 | 0.141082 | 2,495 | 60 | 135 | 41.583333 | 0.774148 | 0.319038 | 0 | 0.045455 | 0 | 0 | 0.008663 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9087f54e3d447beef0b0a6808ea7be7f6b3e098 | 211 | py | Python | 19.armstrong.py | A-Little-Hat/Python-Basics | f7e5177ecedbda990c157e4cb9977b254e551a21 | [
"MIT"
] | null | null | null | 19.armstrong.py | A-Little-Hat/Python-Basics | f7e5177ecedbda990c157e4cb9977b254e551a21 | [
"MIT"
] | 1 | 2021-04-24T07:46:27.000Z | 2021-04-24T07:46:27.000Z | 19.armstrong.py | A-Little-Hat/Python-Basics | f7e5177ecedbda990c157e4cb9977b254e551a21 | [
"MIT"
] | 1 | 2021-05-20T19:03:14.000Z | 2021-05-20T19:03:14.000Z | n=int(input("enter a number "))
backup=n
num=0
while(n>0):
x=n%10
n=n//10
x=x**3
num+=x
if(num==backup):
print(num,"is a armstrong number")
else:
print(backup,"is not a armstrong number") | 17.583333 | 45 | 0.601896 | 41 | 211 | 3.097561 | 0.463415 | 0.047244 | 0.251969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042169 | 0.21327 | 211 | 12 | 45 | 17.583333 | 0.722892 | 0 | 0 | 0 | 0 | 0 | 0.287736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f90eddbdf335c28b02ee8b7d2554628b482beb35 | 10,106 | py | Python | zybot/app.py | sagarafr/telegram-starter | 4c397a5bf3e4c7da99f2467ba26f124e69e16cf8 | [
"Apache-2.0"
] | 1 | 2018-02-16T08:55:53.000Z | 2018-02-16T08:55:53.000Z | zybot/app.py | sagarafr/Zybot | 4c397a5bf3e4c7da99f2467ba26f124e69e16cf8 | [
"Apache-2.0"
] | null | null | null | zybot/app.py | sagarafr/Zybot | 4c397a5bf3e4c7da99f2467ba26f124e69e16cf8 | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 47.669811 | 120 | 0.525628 | 1,003 | 10,106 | 5.026919 | 0.208375 | 0.03213 | 0.033518 | 0.02261 | 0.405791 | 0.345299 | 0.312971 | 0.281634 | 0.262594 | 0.254264 | 0 | 0.000832 | 0.405403 | 10,106 | 211 | 121 | 47.895735 | 0.838243 | 0.232436 | 0 | 0.184466 | 0 | 0 | 0.013263 | 0 | 0 | 0 | 0 | 0.009479 | 0 | 1 | 0.15534 | false | 0.213592 | 0.038835 | 0 | 0.291262 | 0.009709 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f90fe2bf4e856ba96f4862a1b06dc9e2816f41a8 | 481 | py | Python | other/client.py | gaoziqi/s2c | e4f05f97062f4b88f17fb3b904dec63047832a20 | [
"MIT"
] | null | null | null | other/client.py | gaoziqi/s2c | e4f05f97062f4b88f17fb3b904dec63047832a20 | [
"MIT"
] | null | null | null | other/client.py | gaoziqi/s2c | e4f05f97062f4b88f17fb3b904dec63047832a20 | [
"MIT"
] | null | null | null | from socket import *
HOST = 'localhost'
PORT = 21567
BUFSIZ = 8
ADDR = (HOST, PORT)
tcpCliSock = socket(AF_INET, SOCK_STREAM)
tcpCliSock.connect(ADDR)
data = raw_input('>')
print 'shutdown'
tcpCliSock.send(data)
tcpCliSock.shutdown(SHUT_WR)
data = ""
while True:
try:
recv_data = tcpCliSock.recv(BUFSIZ... | 15.03125 | 43 | 0.64657 | 61 | 481 | 4.983607 | 0.590164 | 0.138158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01676 | 0.255717 | 481 | 31 | 44 | 15.516129 | 0.832402 | 0 | 0 | 0.086957 | 0 | 0 | 0.037422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f912c64b2b51b705f162ce2645762431149a4010 | 1,221 | py | Python | neuroConstruct/pythonScripts/RegenerateNml2.py | OpenSourceBrain/L5bPyrCellHayEtAl2011 | 23d938d8c4ba1fb83cdd99810ac324ae4f58bd7c | [
"MIT"
] | 4 | 2020-06-15T13:10:23.000Z | 2022-02-17T18:20:05.000Z | neuroConstruct/pythonScripts/RegenerateNml2.py | OpenSourceBrain/L5bPyrCellHayEtAl2011 | 23d938d8c4ba1fb83cdd99810ac324ae4f58bd7c | [
"MIT"
] | null | null | null | neuroConstruct/pythonScripts/RegenerateNml2.py | OpenSourceBrain/L5bPyrCellHayEtAl2011 | 23d938d8c4ba1fb83cdd99810ac324ae4f58bd7c | [
"MIT"
] | 1 | 2022-02-17T11:23:37.000Z | 2022-02-17T11:23:37.000Z | import sys
import os
try:
from java.io import File
except ImportError:
print "Note: this file should be run using ..\\..\\..\\nC.bat -python XXX.py' or '../../../nC.sh -python XXX.py'"
print "See http://www.neuroconstruct.org/docs/python.html for more details"
quit()
sys.path.append(os.environ["NC_HOM... | 30.525 | 117 | 0.654382 | 149 | 1,221 | 5.261745 | 0.624161 | 0.063776 | 0.061224 | 0.05102 | 0.104592 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030612 | 0.197379 | 1,221 | 39 | 118 | 31.307692 | 0.769388 | 0.054873 | 0 | 0.066667 | 0 | 0.033333 | 0.430556 | 0.192708 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9149ae982bf4188ee7f3eaeeeb827ddcb9da9f3 | 244 | py | Python | bot/handlers/inlines.py | Arwichok/asyncbot | 371c9f92b3c07881b054a99c1aefbca29da06983 | [
"MIT"
] | 14 | 2019-07-05T10:51:06.000Z | 2022-02-08T11:05:31.000Z | bot/handlers/inlines.py | Mo1far/Replicant | c864a305534dc223d9f4d0a51cd4732195a2a4e3 | [
"MIT"
] | 1 | 2019-10-10T10:48:18.000Z | 2022-01-23T19:25:19.000Z | bot/handlers/inlines.py | Mo1far/Replicant | c864a305534dc223d9f4d0a51cd4732195a2a4e3 | [
"MIT"
] | 7 | 2019-07-06T10:31:22.000Z | 2021-09-23T17:57:37.000Z | from aiogram import types
from bot.misc import dp
@dp.inline_handler()
async def example_echo(iq: types.InlineQuery):
await iq.answer(results=[],
switch_pm_text='To bot',
switch_pm_parameter='sp')
| 22.181818 | 46 | 0.635246 | 32 | 244 | 4.65625 | 0.75 | 0.107383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266393 | 244 | 10 | 47 | 24.4 | 0.832402 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f914ffe9edc66c7e3d769f148ab80641fb79e163 | 3,445 | py | Python | Seats/views.py | w-devin/Seat | a73d1135ac5f93bb358df0555035685affe91e35 | [
"Apache-2.0"
] | 3 | 2019-02-07T16:30:26.000Z | 2019-10-18T01:29:29.000Z | Seats/views.py | w-devin/Seat | a73d1135ac5f93bb358df0555035685affe91e35 | [
"Apache-2.0"
] | 1 | 2021-01-26T06:54:21.000Z | 2021-02-01T02:04:56.000Z | Seats/views.py | w-devin/Seat | a73d1135ac5f93bb358df0555035685affe91e35 | [
"Apache-2.0"
] | 1 | 2021-09-05T03:18:31.000Z | 2021-09-05T03:18:31.000Z | """
Routes and views for the flask application.
"""
from datetime import datetime
from flask import render_template, request, g, session, redirect
from Seats import app
from .db import show_seats, show_rooms, add_task, show_tasks, edit_task, Room, Admin, Task
@app.route('/')
def home():
"""Renders the home page.... | 28.237705 | 90 | 0.616836 | 461 | 3,445 | 4.475054 | 0.167028 | 0.066893 | 0.155114 | 0.063984 | 0.526903 | 0.475036 | 0.464372 | 0.464372 | 0.423655 | 0.423655 | 0 | 0.001869 | 0.223512 | 3,445 | 121 | 91 | 28.471074 | 0.769346 | 0.023512 | 0 | 0.377778 | 0 | 0 | 0.131267 | 0.006381 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0.066667 | 0.044444 | 0 | 0.322222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
f91ab6f7b3cd1885e76165a290d75e1757c86359 | 953 | py | Python | src/resources/base_resource.py | Delismachado/probable-journey | e9af22fe989795de3d277f5d9bcc90bc57cc0bf3 | [
"MIT"
] | null | null | null | src/resources/base_resource.py | Delismachado/probable-journey | e9af22fe989795de3d277f5d9bcc90bc57cc0bf3 | [
"MIT"
] | null | null | null | src/resources/base_resource.py | Delismachado/probable-journey | e9af22fe989795de3d277f5d9bcc90bc57cc0bf3 | [
"MIT"
] | null | null | null | from typing import Type
from flask_restful import Resource
from flask import request
from src.dao.base_dao import BaseDao
class BaseResource(Resource):
def __init__(self, dao: BaseDao, type_model: Type):
self.__dao = dao
self.__model_type = type_model
def get(self, id = None):
if id:
... | 24.435897 | 55 | 0.594963 | 130 | 953 | 4.076923 | 0.323077 | 0.118868 | 0.083019 | 0.073585 | 0.245283 | 0.118868 | 0.086792 | 0.086792 | 0 | 0 | 0 | 0.013657 | 0.308499 | 953 | 38 | 56 | 25.078947 | 0.790592 | 0 | 0 | 0.137931 | 0 | 0 | 0.002099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.137931 | 0 | 0.551724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f92d80df6d6f30cebd8621b36d085d72b30ed5c0 | 4,041 | py | Python | src/config/utils/del_projects.py | biswajit-mandal/contrail-controller | 80c4a7e8515f7296b18ba4c21a439bd3daefcc4a | [
"Apache-2.0"
] | 3 | 2019-01-11T06:16:40.000Z | 2021-02-24T23:48:21.000Z | src/config/utils/del_projects.py | biswajit-mandal/contrail-controller | 80c4a7e8515f7296b18ba4c21a439bd3daefcc4a | [
"Apache-2.0"
] | 2 | 2018-12-04T02:20:52.000Z | 2018-12-22T06:16:30.000Z | src/config/utils/del_projects.py | biswajit-mandal/contrail-controller | 80c4a7e8515f7296b18ba4c21a439bd3daefcc4a | [
"Apache-2.0"
] | 18 | 2017-01-12T09:28:44.000Z | 2019-04-18T20:47:42.000Z | #!/usr/bin/python
#
# Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
#
import argparse
import json
import re
import requests
from requests.auth import HTTPBasicAuth
import sys
import logging
logger = logging.getLogger(__name__)
class DeleteProjects(object):
def __init__(self, args_str = None):
... | 34.836207 | 130 | 0.605543 | 499 | 4,041 | 4.671343 | 0.316633 | 0.037752 | 0.058344 | 0.024453 | 0.187902 | 0.164736 | 0.11154 | 0.088374 | 0.088374 | 0.088374 | 0 | 0.017082 | 0.275674 | 4,041 | 115 | 131 | 35.13913 | 0.779296 | 0.103935 | 0 | 0.051282 | 0 | 0.012821 | 0.156425 | 0.021788 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064103 | false | 0.051282 | 0.089744 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
005beda268ced1f25d1d3f8758ddf61998d6abcb | 3,661 | py | Python | user/test/views/test_auth.py | umtdemr/foxwall | 7854806774486bed1895c114f14398cacc90449c | [
"MIT"
] | null | null | null | user/test/views/test_auth.py | umtdemr/foxwall | 7854806774486bed1895c114f14398cacc90449c | [
"MIT"
] | null | null | null | user/test/views/test_auth.py | umtdemr/foxwall | 7854806774486bed1895c114f14398cacc90449c | [
"MIT"
] | null | null | null | import pytest
pytestmark = pytest.mark.django_db
@pytest.mark.parametrize(
"email, username, password, status_code",
[
(None, "mediumgoals", "passwsord", 200),
("deneme@w.scom", None, "passwsord", 200),
("deneme@w.scom", "mediumgoals", "passwsord", 200),
("deneme@w.scom", Non... | 25.248276 | 79 | 0.546026 | 379 | 3,661 | 5.100264 | 0.218997 | 0.04656 | 0.047077 | 0.052768 | 0.414382 | 0.309364 | 0.221935 | 0.144335 | 0.127263 | 0.047594 | 0 | 0.014824 | 0.318219 | 3,661 | 144 | 80 | 25.423611 | 0.759615 | 0 | 0 | 0.304 | 0 | 0 | 0.203223 | 0.021579 | 0 | 0 | 0 | 0 | 0.064 | 1 | 0.032 | false | 0.168 | 0.008 | 0 | 0.064 | 0.024 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
005eaaddfc0037e10f772ca2b9b1847b8786f27a | 3,522 | py | Python | plugin/twilio/interface.py | alt-core/xmbot | dc595404aca6c59cc5fb9a187bb0fec7a0663b6b | [
"MIT"
] | null | null | null | plugin/twilio/interface.py | alt-core/xmbot | dc595404aca6c59cc5fb9a187bb0fec7a0663b6b | [
"MIT"
] | 1 | 2021-09-18T15:25:38.000Z | 2021-09-18T15:25:38.000Z | plugin/twilio/interface.py | alt-core/xmbot | dc595404aca6c59cc5fb9a187bb0fec7a0663b6b | [
"MIT"
] | null | null | null | # coding: utf-8
import twilio.rest
import hub
import commands
import utility
import context
import users
class TwilioPlugin_ActionContext(context.ActionContext):
def __init__(self, bot_name, interface, user, action, attrs):
context.ActionContext.__init__(self, bot_name, "twilio", interface, user, action... | 35.22 | 113 | 0.617547 | 411 | 3,522 | 5.077859 | 0.26764 | 0.030187 | 0.036895 | 0.021562 | 0.10254 | 0.061332 | 0.061332 | 0.061332 | 0.061332 | 0.061332 | 0 | 0.003152 | 0.279387 | 3,522 | 99 | 114 | 35.575758 | 0.819149 | 0.067291 | 0 | 0.128571 | 0 | 0 | 0.093435 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.142857 | false | 0.014286 | 0.085714 | 0.042857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0064c89caaf3cefbfb05804f689f432dfada8c7b | 4,510 | py | Python | elephants/test_strongdict.py | Schwarzschild/Elephants | b947e80bf0a1117e92b16f0fdbd9e9e89f1edd91 | [
"MIT"
] | 1 | 2016-06-22T00:25:34.000Z | 2016-06-22T00:25:34.000Z | elephants/test_strongdict.py | Schwarzschild/Elephants | b947e80bf0a1117e92b16f0fdbd9e9e89f1edd91 | [
"MIT"
] | 1 | 2015-05-01T13:04:00.000Z | 2015-05-01T13:04:00.000Z | elephants/test_strongdict.py | Schwarzschild/Elephants | b947e80bf0a1117e92b16f0fdbd9e9e89f1edd91 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
__author__ = 'Marc Schwarzschild'
from strongdict import StrongDict, memo, memo_until, nmemo
def test_simple():
'Testing strong dictionary.'
v = StrongDict()
v['One'] = 1
v[2] = 2
v['Three'] = 'Three'
assert v['One'] == 1
assert v[2] == 2
assert v['One'] == 1
assert v['Three'... | 18.04 | 78 | 0.597118 | 721 | 4,510 | 3.638003 | 0.230236 | 0.042699 | 0.058711 | 0.058711 | 0.288601 | 0.268014 | 0.21464 | 0.211971 | 0.200153 | 0.200153 | 0 | 0.022747 | 0.249446 | 4,510 | 249 | 79 | 18.11245 | 0.752142 | 0.084479 | 0 | 0.41989 | 0 | 0 | 0.152363 | 0 | 0 | 0 | 0 | 0 | 0.226519 | 0 | null | null | 0 | 0.027624 | null | null | 0.033149 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
006dea3a4477a09c78e90dd07e9d9ff1b3083c1c | 487 | py | Python | drug/migrations/0006_auto_20190604_2322.py | MubongwoNdasi/pms | 0cc5dcbc25b31e13631672e1a03c88e2ad46bc92 | [
"MIT"
] | null | null | null | drug/migrations/0006_auto_20190604_2322.py | MubongwoNdasi/pms | 0cc5dcbc25b31e13631672e1a03c88e2ad46bc92 | [
"MIT"
] | 8 | 2021-03-18T22:27:44.000Z | 2022-02-10T09:18:50.000Z | drug/migrations/0006_auto_20190604_2322.py | MubongwoNdasi/pms | 0cc5dcbc25b31e13631672e1a03c88e2ad46bc92 | [
"MIT"
] | 1 | 2021-09-20T06:37:41.000Z | 2021-09-20T06:37:41.000Z | # Generated by Django 2.2 on 2019-06-04 23:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('drug', '0005_auto_20190604_2308'),
]
operations = [
migrations.AlterField(
model_name='drugs',
name='image',
... | 25.631579 | 158 | 0.632444 | 57 | 487 | 5.280702 | 0.754386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081522 | 0.244353 | 487 | 18 | 159 | 27.055556 | 0.736413 | 0.088296 | 0 | 0 | 1 | 0 | 0.217195 | 0.104072 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00771cedc48caa5538e6a89e75c7320530d84b72 | 283 | py | Python | Calibration/HcalAlCaRecoProducers/python/alcastreamHcalDijetsOutput_cff.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | Calibration/HcalAlCaRecoProducers/python/alcastreamHcalDijetsOutput_cff.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | Calibration/HcalAlCaRecoProducers/python/alcastreamHcalDijetsOutput_cff.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
# output block for alcastream HCAL Dijets
# output module
# module alcastreamHcalDijetsOutput = PoolOutputModule
alcastreamHcalDijetsOutput = cms.PSet(
outputCommands = cms.untracked.vstring('drop *',
'keep *_DiJProd_*_*')
)
| 25.727273 | 55 | 0.75265 | 27 | 283 | 7.777778 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162544 | 283 | 10 | 56 | 28.3 | 0.886076 | 0.381625 | 0 | 0 | 0 | 0 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
007aeb37b5ac9c8ad0486463839cd1bbda66315d | 10,048 | py | Python | describe/spec/utils.py | jeffh/describe | 6a33ffecc3340b57e60bc8a7095521882ff9a156 | [
"MIT"
] | 3 | 2015-06-25T07:10:04.000Z | 2015-11-13T08:59:49.000Z | describe/spec/utils.py | jeffh/describe | 6a33ffecc3340b57e60bc8a7095521882ff9a156 | [
"MIT"
] | 1 | 2018-05-29T04:31:51.000Z | 2018-05-29T04:31:51.000Z | describe/spec/utils.py | jeffh/describe | 6a33ffecc3340b57e60bc8a7095521882ff9a156 | [
"MIT"
] | 1 | 2018-05-25T03:59:57.000Z | 2018-05-25T03:59:57.000Z | import types
import traceback
import inspect
import time
CURRENT_PACKAGE = __package__.split('.', 1)[0]
def str_traceback(error, tb):
"""Returns a string representation of the traceback.
"""
if not isinstance(tb, types.TracebackType):
return tb
return ''.join(traceback.format_exception(error... | 34.061017 | 115 | 0.595342 | 1,191 | 10,048 | 4.719563 | 0.22754 | 0.021349 | 0.01779 | 0.011564 | 0.195695 | 0.143035 | 0.094645 | 0.082903 | 0.050169 | 0.031667 | 0 | 0.008993 | 0.2917 | 10,048 | 294 | 116 | 34.176871 | 0.780807 | 0.395999 | 0 | 0.141844 | 0 | 0 | 0.08799 | 0.009372 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007092 | 0.028369 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
008c84a8cc2f219d1d0ff9a89554bce971725665 | 2,668 | py | Python | fluiddb/schema/main/patch_23.py | fluidinfo/fluiddb | b5a8c8349f3eaf3364cc4efba4736c3e33b30d96 | [
"Apache-2.0"
] | 3 | 2021-05-10T14:41:30.000Z | 2021-12-16T05:53:30.000Z | fluiddb/schema/main/patch_23.py | fluidinfo/fluiddb | b5a8c8349f3eaf3364cc4efba4736c3e33b30d96 | [
"Apache-2.0"
] | null | null | null | fluiddb/schema/main/patch_23.py | fluidinfo/fluiddb | b5a8c8349f3eaf3364cc4efba4736c3e33b30d96 | [
"Apache-2.0"
] | 2 | 2018-01-24T09:03:21.000Z | 2021-06-25T08:34:54.000Z | """
Rename the 'objects' table to 'dirty_objects' and make object_id not unique.
"""
STATEMENTS = [
"""
CREATE TABLE dirty_objects (
id SERIAL NOT NULL PRIMARY KEY,
object_id UUID NOT NULL,
update_time TIMESTAMP NOT NULL DEFAULT (now() AT TIME ZONE 'UTC'))
""",
"""
GRANT SE... | 29.977528 | 78 | 0.574213 | 309 | 2,668 | 4.728155 | 0.300971 | 0.071184 | 0.061602 | 0.068446 | 0.261465 | 0.195756 | 0.134155 | 0.084873 | 0.084873 | 0.084873 | 0 | 0.001168 | 0.358321 | 2,668 | 88 | 79 | 30.318182 | 0.85222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0090c00872b7f6f7f49a220574d25e72f82c4926 | 572 | py | Python | Query/db.py | duncanbackr/jit_analytics | 9c81ff294459ccda5f3d3ace40dd5f5b44cfa4d1 | [
"MIT"
] | null | null | null | Query/db.py | duncanbackr/jit_analytics | 9c81ff294459ccda5f3d3ace40dd5f5b44cfa4d1 | [
"MIT"
] | null | null | null | Query/db.py | duncanbackr/jit_analytics | 9c81ff294459ccda5f3d3ace40dd5f5b44cfa4d1 | [
"MIT"
] | null | null | null | import psycopg2
import config
from Query.sql import full_query
def latest_comments(okta_id, video_string="", fan_string="", limit=5000):
conn = psycopg2.connect(f"dbname= {config.DB_NAME} \
user={config.DB_USER} \
host={config.DB_HOST} \
... | 26 | 73 | 0.613636 | 71 | 572 | 4.71831 | 0.521127 | 0.095522 | 0.065672 | 0.101493 | 0.185075 | 0.185075 | 0.185075 | 0 | 0 | 0 | 0 | 0.03125 | 0.272727 | 572 | 22 | 74 | 26 | 0.774038 | 0.062937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.230769 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0096135b14a4fa6179ab6a16636e8a9424813887 | 574 | py | Python | xac/auditing/blockchain.py | amachefe/XAc | 5bf13fe06ccf9e11392eb40058c6a97a725b6e03 | [
"BSD-3-Clause"
] | null | null | null | xac/auditing/blockchain.py | amachefe/XAc | 5bf13fe06ccf9e11392eb40058c6a97a725b6e03 | [
"BSD-3-Clause"
] | null | null | null | xac/auditing/blockchain.py | amachefe/XAc | 5bf13fe06ccf9e11392eb40058c6a97a725b6e03 | [
"BSD-3-Clause"
] | null | null | null | # Experiments going on here
from bitcoinrpc.authproxy import AuthServiceProxy
import json
access = AuthServiceProxy("http://rpcusername:rpcpassword@127.0.0.1:8332")
def reconcile_transaction(txid, amount, type):
raw_transaction = access.getrawtransaction(txid, 1)
vector_out = raw_transaction['vout']
for ... | 30.210526 | 74 | 0.679443 | 68 | 574 | 5.602941 | 0.647059 | 0.104987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024775 | 0.226481 | 574 | 18 | 75 | 31.888889 | 0.833333 | 0.043554 | 0 | 0 | 0 | 0 | 0.115174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.071429 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
009e3f367454bc6a98fadb7a7f4a755c1eb397eb | 5,070 | py | Python | wiiclassic.py | dglaude/CircuitPython_WiiClassic | 5e4f7609ec8f436f77b24cdff69b9ac8a8077cec | [
"MIT",
"MIT-0",
"Unlicense"
] | 2 | 2021-01-11T20:59:03.000Z | 2022-01-10T05:34:26.000Z | wiiclassic.py | dglaude/CircuitPython_WiiClassic | 5e4f7609ec8f436f77b24cdff69b9ac8a8077cec | [
"MIT",
"MIT-0",
"Unlicense"
] | null | null | null | wiiclassic.py | dglaude/CircuitPython_WiiClassic | 5e4f7609ec8f436f77b24cdff69b9ac8a8077cec | [
"MIT",
"MIT-0",
"Unlicense"
] | 3 | 2021-01-11T22:30:44.000Z | 2022-02-06T21:14:54.000Z | # SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
# SPDX-FileCopyrightText: Copyright (c) 2021 John Furcean
#
# SPDX-License-Identifier: MIT
"""
`wiiclassic`
================================================================================
CircuitPython library for the Nintendo Wii Classic... | 29.823529 | 97 | 0.618935 | 639 | 5,070 | 4.744914 | 0.223787 | 0.082454 | 0.067282 | 0.094987 | 0.506926 | 0.419525 | 0.389182 | 0.246702 | 0.172164 | 0.12467 | 0 | 0.033474 | 0.251677 | 5,070 | 169 | 98 | 30 | 0.765683 | 0.329191 | 0 | 0.418367 | 0 | 0 | 0.006064 | 0 | 0 | 0 | 0.026076 | 0 | 0 | 1 | 0.204082 | false | 0 | 0.020408 | 0 | 0.418367 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00ab23c4eebb9d0507ef75988c5401809e258f0b | 450 | py | Python | picture_bed/migrations/0002_auto_20180604_1645.py | TechDailyGroup/news_app_web_api | f1255c70dfd3eaa49e77b67fb1392aa7f8c4e7fb | [
"Apache-2.0"
] | null | null | null | picture_bed/migrations/0002_auto_20180604_1645.py | TechDailyGroup/news_app_web_api | f1255c70dfd3eaa49e77b67fb1392aa7f8c4e7fb | [
"Apache-2.0"
] | 6 | 2021-06-02T02:04:38.000Z | 2022-03-12T00:34:28.000Z | picture_bed/migrations/0002_auto_20180604_1645.py | TechDailyGroup/news_app_web_api | f1255c70dfd3eaa49e77b67fb1392aa7f8c4e7fb | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.5 on 2018-06-04 08:45
from django.db import migrations, models
import picture_bed.models
class Migration(migrations.Migration):
dependencies = [
('picture_bed', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='picture',
... | 22.5 | 93 | 0.642222 | 51 | 450 | 5.509804 | 0.686275 | 0.106762 | 0.113879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05638 | 0.251111 | 450 | 19 | 94 | 23.684211 | 0.777448 | 0.1 | 0 | 0 | 1 | 0 | 0.091811 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00bc484183c383339dc4ff7f970e097dc1a51346 | 740 | py | Python | guests/management/commands/import_guests.py | lucywyman/wedding-website | 3c09cbf0ed57656480ddbcfc4eb2228793008666 | [
"Apache-2.0"
] | null | null | null | guests/management/commands/import_guests.py | lucywyman/wedding-website | 3c09cbf0ed57656480ddbcfc4eb2228793008666 | [
"Apache-2.0"
] | null | null | null | guests/management/commands/import_guests.py | lucywyman/wedding-website | 3c09cbf0ed57656480ddbcfc4eb2228793008666 | [
"Apache-2.0"
] | 1 | 2019-12-12T03:46:38.000Z | 2019-12-12T03:46:38.000Z | from django.core.management import BaseCommand
from guests import csv_import
from sys import stderr
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument('--file', type=str, help='File to import from.')
parser.add_argument('--url', type=str, help='URL to import from.')
... | 33.636364 | 76 | 0.616216 | 93 | 740 | 4.806452 | 0.430108 | 0.060403 | 0.076063 | 0.09396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001776 | 0.239189 | 740 | 21 | 77 | 35.238095 | 0.792185 | 0 | 0 | 0 | 0 | 0 | 0.181081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.529412 | 0 | 0.705882 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
00c2787336f9c359424c056848e862c70c5c9c05 | 690 | py | Python | takeaway/controllers/management.py | ShahinZeynalov/startapp | 3470666114dad3563393ea976cac8daa03611c41 | [
"MIT"
] | 1 | 2020-06-08T06:54:08.000Z | 2020-06-08T06:54:08.000Z | takeaway/controllers/management.py | ShahinZeynalov/startapp | 3470666114dad3563393ea976cac8daa03611c41 | [
"MIT"
] | null | null | null | takeaway/controllers/management.py | ShahinZeynalov/startapp | 3470666114dad3563393ea976cac8daa03611c41 | [
"MIT"
] | null | null | null | from .app import FastApiApp, FlaskApp, DjangoApp
import sys
class BaseComand:
def __init__(self,app,folder_name):
self.app = app
self.folder_name = folder_name
def start(self):
if self.app == "fastapi":
app = FastApiApp(self.app, self.folder_name)
... | 23.793103 | 56 | 0.518841 | 78 | 690 | 4.474359 | 0.371795 | 0.160458 | 0.148997 | 0.194842 | 0.312321 | 0.312321 | 0.312321 | 0.229226 | 0.229226 | 0.229226 | 0 | 0.002315 | 0.373913 | 690 | 28 | 57 | 24.642857 | 0.803241 | 0 | 0 | 0.157895 | 0 | 0 | 0.072464 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.263158 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00c40ac207a0de4008df8703041431ffe646d2e5 | 3,058 | py | Python | firefly/data_sources/ganglia_rrd.py | apetesh/firefly | fda4a14bb38094c582e349923d0c72b050cc0229 | [
"ISC"
] | 52 | 2015-01-04T17:35:00.000Z | 2020-11-07T23:46:59.000Z | firefly/data_sources/ganglia_rrd.py | apetesh/firefly | fda4a14bb38094c582e349923d0c72b050cc0229 | [
"ISC"
] | 4 | 2015-04-15T00:41:31.000Z | 2021-03-25T21:27:38.000Z | firefly/data_sources/ganglia_rrd.py | apetesh/firefly | fda4a14bb38094c582e349923d0c72b050cc0229 | [
"ISC"
] | 14 | 2015-04-10T09:00:34.000Z | 2020-07-23T09:25:53.000Z | import math
import os
import os.path
import subprocess
import tornado.web
import xml.etree.cElementTree as ET
import firefly.data_source
class GangliaRRD(firefly.data_source.DataSource):
"""Stats from Ganglia"""
DESC = "Ganglia Stats"
path_splitter = ""
def __init__(self, *args, **kwargs):
... | 34.75 | 102 | 0.565729 | 364 | 3,058 | 4.618132 | 0.348901 | 0.021416 | 0.030934 | 0.017847 | 0.173706 | 0.116597 | 0.089233 | 0 | 0 | 0 | 0 | 0.00373 | 0.298561 | 3,058 | 87 | 103 | 35.149425 | 0.779953 | 0.011445 | 0 | 0.059701 | 0 | 0 | 0.071795 | 0.008889 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.104478 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00c71c1c78001042ee40c71bb91f384f35a29168 | 4,800 | py | Python | src/red_mask_detection_node.py | isarlab-department-engineering/ros-traffic-light-detection | 1342990962aafd261f97546f4bd1210adc51cdc6 | [
"BSD-3-Clause"
] | 3 | 2019-08-12T03:14:07.000Z | 2022-03-16T16:46:23.000Z | src/red_mask_detection_node.py | isarlab-department-engineering/ros-traffic-light-detection | 1342990962aafd261f97546f4bd1210adc51cdc6 | [
"BSD-3-Clause"
] | null | null | null | src/red_mask_detection_node.py | isarlab-department-engineering/ros-traffic-light-detection | 1342990962aafd261f97546f4bd1210adc51cdc6 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#
# This script reads images from a ROS topic,
# converts them and elaborates to detect red and
# green LEDs (semaphore), eventually sending
# encoded strings to the redmask_detection_topic topic
#
# script by Andrea Fioroni - andrifiore@gmail.com
# GitHub repo: https://github.com/isarlab-depar... | 39.669421 | 118 | 0.665208 | 645 | 4,800 | 4.869767 | 0.334884 | 0.035657 | 0.021649 | 0.013372 | 0.146769 | 0.08978 | 0.066858 | 0.044572 | 0.044572 | 0.044572 | 0 | 0.025486 | 0.239792 | 4,800 | 120 | 119 | 40 | 0.835297 | 0.368125 | 0 | 0.15493 | 0 | 0 | 0.048148 | 0.007744 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.126761 | null | null | 0.042254 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00cfb99cbf2d9247283c0f13ef7444fd66237489 | 5,477 | py | Python | tests/test_repl_modules.py | fish2000/CLU | 80bc2df5f001b5639d79ba979e19ec77a9931425 | [
"BSD-3-Clause"
] | 1 | 2019-07-02T08:17:59.000Z | 2019-07-02T08:17:59.000Z | tests/test_repl_modules.py | fish2000/CLU | 80bc2df5f001b5639d79ba979e19ec77a9931425 | [
"BSD-3-Clause"
] | 13 | 2019-12-17T02:28:30.000Z | 2021-11-17T03:46:10.000Z | tests/test_repl_modules.py | fish2000/CLU | 80bc2df5f001b5639d79ba979e19ec77a9931425 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function
import pytest
mods = ('clu.all',
'clu.abstract',
'clu.constants.consts',
'clu.constants.polyfills',
'clu.config.base',
'clu.config.settings',
'clu.config.ns',
'clu.csv',
'clu.fs.appdirectories... | 39.978102 | 96 | 0.618222 | 611 | 5,477 | 5.412439 | 0.260229 | 0.019051 | 0.038101 | 0.043544 | 0.576958 | 0.547929 | 0.486241 | 0.462655 | 0.409435 | 0.38222 | 0 | 0.009588 | 0.295417 | 5,477 | 136 | 97 | 40.272059 | 0.84737 | 0.074311 | 0 | 0.340426 | 0 | 0 | 0.074426 | 0.017617 | 0 | 0 | 0 | 0 | 0.404255 | 1 | 0.042553 | false | 0 | 0.138298 | 0 | 0.191489 | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00d931e0bbc577e89798163d1c0106c3e7e156f4 | 140 | py | Python | LaserTagger/Constants.py | tech-srl/c3po | ce1e002bf9d026c10fbd2c178d454ebb76cb7a94 | [
"MIT"
] | 18 | 2020-11-13T02:43:58.000Z | 2022-01-04T08:11:05.000Z | LaserTagger/Constants.py | shaileshj2803/c3po | a673a0514ee8c800efa12574ef8da3fcb8ef73b7 | [
"MIT"
] | 2 | 2021-03-11T01:19:55.000Z | 2021-05-21T15:01:42.000Z | LaserTagger/Constants.py | shaileshj2803/c3po | a673a0514ee8c800efa12574ef8da3fcb8ef73b7 | [
"MIT"
] | 6 | 2021-02-25T06:07:06.000Z | 2021-05-21T23:44:45.000Z | PAD = 0
EOS = 1
BOS = 2
UNK = 3
UNK_WORD = '<unk>'
PAD_WORD = '<pad>'
BOS_WORD = '<s>'
EOS_WORD = '</s>'
NEG_INF = -10000 # -float('inf') | 12.727273 | 33 | 0.542857 | 25 | 140 | 2.84 | 0.56 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082569 | 0.221429 | 140 | 11 | 33 | 12.727273 | 0.568807 | 0.092857 | 0 | 0 | 0 | 0 | 0.134921 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00ddc3865221b6d2ddf0dd51b5895149df1b0e17 | 781 | py | Python | forms/migrations/0002_alter_requestform_currency_alter_requestform_pmode.py | yusufom/ERP | a1844d0ece0ab5fff748d75a3ac7a2a963e56576 | [
"Unlicense"
] | null | null | null | forms/migrations/0002_alter_requestform_currency_alter_requestform_pmode.py | yusufom/ERP | a1844d0ece0ab5fff748d75a3ac7a2a963e56576 | [
"Unlicense"
] | null | null | null | forms/migrations/0002_alter_requestform_currency_alter_requestform_pmode.py | yusufom/ERP | a1844d0ece0ab5fff748d75a3ac7a2a963e56576 | [
"Unlicense"
] | null | null | null | # Generated by Django 4.0.2 on 2022-03-10 17:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('forms', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='requestform',
name='currency',
... | 32.541667 | 212 | 0.580026 | 75 | 781 | 5.973333 | 0.613333 | 0.089286 | 0.111607 | 0.129464 | 0.196429 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0.045531 | 0.240717 | 781 | 23 | 213 | 33.956522 | 0.709949 | 0.057618 | 0 | 0.352941 | 1 | 0 | 0.247956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00e2c4abf1642fe4c41255db1135ea3bfaeb9809 | 3,247 | py | Python | ocr_new.py | Nadogan/Instagram_Poetry_Processing | b77b180b33b71a6a321f3b856a5fe1b6376b18bc | [
"Unlicense"
] | null | null | null | ocr_new.py | Nadogan/Instagram_Poetry_Processing | b77b180b33b71a6a321f3b856a5fe1b6376b18bc | [
"Unlicense"
] | null | null | null | ocr_new.py | Nadogan/Instagram_Poetry_Processing | b77b180b33b71a6a321f3b856a5fe1b6376b18bc | [
"Unlicense"
] | null | null | null | try:
from PIL import Image, ImageEnhance, ImageFilter
except ImportError:
import Image, ImageEnhance, ImageFilter
import pytesseract
#from spellchecker import SpellChecker
import re
from deskew import determine_skew
from skimage import io
from skimage.transform import rotate
from skimage.color import rgb2gray
from sk... | 25.769841 | 83 | 0.70465 | 459 | 3,247 | 4.95207 | 0.3878 | 0.029037 | 0.021117 | 0.025077 | 0.032556 | 0.013198 | 0 | 0 | 0 | 0 | 0 | 0.019887 | 0.179242 | 3,247 | 126 | 84 | 25.769841 | 0.833021 | 0.204188 | 0 | 0.29703 | 0 | 0 | 0.065861 | 0 | 0.009901 | 0 | 0 | 0 | 0 | 1 | 0.029703 | false | 0.19802 | 0.158416 | 0 | 0.267327 | 0.049505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
00e6cd88006e1f676fbd019133d2f7a9d1c4d13c | 290 | py | Python | Algorithms/Implementation/chocolate-feast.py | ekant1999/HackerRank | 084d4550b4eaf130837ab26a4efdbcaf8b667cdc | [
"MIT"
] | 9 | 2017-03-19T16:27:31.000Z | 2022-02-17T11:42:21.000Z | Algorithms/Implementation/chocolate-feast.py | ekant1999/HackerRank | 084d4550b4eaf130837ab26a4efdbcaf8b667cdc | [
"MIT"
] | null | null | null | Algorithms/Implementation/chocolate-feast.py | ekant1999/HackerRank | 084d4550b4eaf130837ab26a4efdbcaf8b667cdc | [
"MIT"
] | 6 | 2019-02-18T11:26:24.000Z | 2022-03-21T14:13:15.000Z | # Python 2
#!/bin/python
import sys
t = int(raw_input())
for i in range(t):
n,c,m = [int(j) for j in raw_input().split()]
wrappers = n/c
count = wrappers
while(wrappers >= m):
wrappers -= m
count += 1
wrappers += 1
print count | 17.058824 | 50 | 0.510345 | 42 | 290 | 3.47619 | 0.547619 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016043 | 0.355172 | 290 | 17 | 51 | 17.058824 | 0.764706 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00e80bef698e450f1be0052e284fb7d0522c39e2 | 4,753 | py | Python | testing/spring_testing/demka_cli.py | GeorgiyDemo/SpringBootChat | 298ed25df61c8dc613e8598d8bb225d8379b47ab | [
"MIT"
] | null | null | null | testing/spring_testing/demka_cli.py | GeorgiyDemo/SpringBootChat | 298ed25df61c8dc613e8598d8bb225d8379b47ab | [
"MIT"
] | 29 | 2021-02-21T19:57:18.000Z | 2021-08-22T13:37:25.000Z | testing/spring_testing/demka_cli.py | GeorgiyDemo/SpringBootChat | 298ed25df61c8dc613e8598d8bb225d8379b47ab | [
"MIT"
] | 1 | 2021-04-25T04:34:09.000Z | 2021-04-25T04:34:09.000Z | import requests
from typing import List
import time
from urllib.parse import quote
class DEMKACli:
URL = "http://127.0.0.1:8080"
@staticmethod
def registration(username, login, password):
"""Регистрация пользователя"""
r = requests.post(
f"{DEMKACli.URL}/user/register", json=... | 35.207407 | 158 | 0.586577 | 552 | 4,753 | 4.914855 | 0.253623 | 0.032436 | 0.032436 | 0.030962 | 0.202359 | 0.140435 | 0.103575 | 0.103575 | 0.081828 | 0.081828 | 0 | 0.003218 | 0.280875 | 4,753 | 134 | 159 | 35.470149 | 0.790521 | 0.042499 | 0 | 0.085714 | 0 | 0.009524 | 0.280266 | 0.098891 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0.057143 | 0.038095 | 0 | 0.152381 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
00e899ee6dc8a75efa0f06a544ba31484bb80bdd | 547 | py | Python | koku/api/migrations/0013_auto_20200226_1953.py | cgoodfred/koku | f1de8bc90d6a818c4f77af710cafe50dc1274700 | [
"Apache-2.0"
] | 2 | 2022-01-12T03:42:39.000Z | 2022-01-12T03:42:40.000Z | koku/api/migrations/0013_auto_20200226_1953.py | cgoodfred/koku | f1de8bc90d6a818c4f77af710cafe50dc1274700 | [
"Apache-2.0"
] | null | null | null | koku/api/migrations/0013_auto_20200226_1953.py | cgoodfred/koku | f1de8bc90d6a818c4f77af710cafe50dc1274700 | [
"Apache-2.0"
] | 1 | 2021-07-21T09:33:59.000Z | 2021-07-21T09:33:59.000Z | # Generated by Django 2.2.10 on 2020-02-26 19:53
import json
import pkgutil
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
dependencies = [("api", "0012_auto_20200225_2022")]
operations = [
migrations.AddField(
model_name="costmodelm... | 24.863636 | 109 | 0.636197 | 56 | 547 | 6.107143 | 0.732143 | 0.05848 | 0.070175 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07824 | 0.252285 | 547 | 21 | 110 | 26.047619 | 0.757946 | 0.084095 | 0 | 0 | 1 | 0 | 0.232465 | 0.046092 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00ebd84291eb063a28f663ac73c9f4e9715bb74f | 962 | py | Python | customer/migrations/0004_auto_20210826_0937.py | hhdMrLion/crm_api | 66df068821be36a17c3b0e0e9660b7f8408fa1bd | [
"Apache-2.0"
] | 1 | 2021-06-18T03:03:38.000Z | 2021-06-18T03:03:38.000Z | customer/migrations/0004_auto_20210826_0937.py | hhdMrLion/crm_api | 66df068821be36a17c3b0e0e9660b7f8408fa1bd | [
"Apache-2.0"
] | null | null | null | customer/migrations/0004_auto_20210826_0937.py | hhdMrLion/crm_api | 66df068821be36a17c3b0e0e9660b7f8408fa1bd | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.4 on 2021-08-26 09:37
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('customer', '0... | 35.62963 | 199 | 0.662162 | 110 | 962 | 5.609091 | 0.481818 | 0.051864 | 0.068071 | 0.106969 | 0.265802 | 0.265802 | 0.265802 | 0.155592 | 0.155592 | 0 | 0 | 0.025538 | 0.226611 | 962 | 26 | 200 | 37 | 0.803763 | 0.046778 | 0 | 0.2 | 1 | 0 | 0.106862 | 0.030371 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00ed44a49b0dc6bf624f6c8314e85121567366ee | 1,728 | py | Python | src/pybfms/backend.py | sv-bfms/bfm_core | 1852f254f153b3ba2e71fdfd89d9fe1aa11d884e | [
"Apache-2.0"
] | 11 | 2020-07-18T12:13:23.000Z | 2022-03-01T07:19:06.000Z | doc/source/pybfms/src/pybfms/backend.py | pybfms/pybfms-docs | b5ea7e2ea1bbb2dfeb8af5af81d38f6d3e60c1d0 | [
"Apache-2.0"
] | 1 | 2020-09-25T14:54:58.000Z | 2020-09-26T03:06:29.000Z | doc/source/pybfms/src/pybfms/backend.py | pybfms/pybfms-docs | b5ea7e2ea1bbb2dfeb8af5af81d38f6d3e60c1d0 | [
"Apache-2.0"
] | 1 | 2021-01-17T08:39:46.000Z | 2021-01-17T08:39:46.000Z | '''
Created on Feb 22, 2020
@author: ballance
'''
class Backend():
_inst = None
def event(self):
raise Exception("Backend.event() unimplemented")
def delay(self, time_ps, units=None):
raise Exception("Backend.delay() unimplemented")
def delta(self):
raise Ex... | 24.338028 | 72 | 0.597222 | 203 | 1,728 | 5.019704 | 0.256158 | 0.096173 | 0.144259 | 0.117763 | 0.312071 | 0.200196 | 0.200196 | 0.147203 | 0.147203 | 0.147203 | 0 | 0.006656 | 0.304398 | 1,728 | 70 | 73 | 24.685714 | 0.841098 | 0.024306 | 0 | 0.372093 | 0 | 0 | 0.139355 | 0.017419 | 0 | 0 | 0 | 0 | 0 | 1 | 0.302326 | false | 0 | 0.139535 | 0.046512 | 0.674419 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00ee4aeea2d8d19857513eb069c0b583409ad870 | 864 | py | Python | main.py | lishc/sample-python | 47bfd45c5e5192419c76bd16094078bcd5bce284 | [
"Apache-2.0"
] | null | null | null | main.py | lishc/sample-python | 47bfd45c5e5192419c76bd16094078bcd5bce284 | [
"Apache-2.0"
] | null | null | null | main.py | lishc/sample-python | 47bfd45c5e5192419c76bd16094078bcd5bce284 | [
"Apache-2.0"
] | null | null | null | #!flask/bin/python
# -- coding: utf-8 --
__author__ = 'cloudtogo'
from flask import render_template
from flask import Flask
import os
import ctypes
import sys
app = Flask(__name__)
reload(sys)
sys.setdefaultencoding('utf8')
###########################################################################... | 21.6 | 114 | 0.506944 | 89 | 864 | 4.696629 | 0.696629 | 0.078947 | 0.07177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014265 | 0.188657 | 864 | 39 | 115 | 22.153846 | 0.580599 | 0.30787 | 0 | 0 | 0 | 0 | 0.14653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
00f00d6111e0513148f0a2623beb2676c2a37d5d | 3,007 | py | Python | tests/test_bif/performance/018/conf.py | Xilinx/roast-xilinx | ce24becf31c90fb3c4562f4347bf0859af845c05 | [
"MIT"
] | 1 | 2021-09-01T15:29:08.000Z | 2021-09-01T15:29:08.000Z | tests/test_bif/performance/018/conf.py | Xilinx/roast-xilinx | ce24becf31c90fb3c4562f4347bf0859af845c05 | [
"MIT"
] | null | null | null | tests/test_bif/performance/018/conf.py | Xilinx/roast-xilinx | ce24becf31c90fb3c4562f4347bf0859af845c05 | [
"MIT"
] | 1 | 2021-11-18T13:11:21.000Z | 2021-11-18T13:11:21.000Z | #
# Copyright (c) 2020 Xilinx, Inc. All rights reserved.
# SPDX-License-Identifier: MIT
#
# Bif file format
from roast.component.bif.generate import Header, Component, Block
test_type = "uboot"
test_functionality = "performance"
Key_type = "RSA_UNCOMP"
static_images_path_conf = (
"/proj/ssw_xhd/verification/ssw-... | 30.07 | 103 | 0.556701 | 320 | 3,007 | 4.96875 | 0.315625 | 0.079245 | 0.10566 | 0.14717 | 0.56478 | 0.509434 | 0.455346 | 0.455346 | 0.372956 | 0.311321 | 0 | 0.006416 | 0.27436 | 3,007 | 99 | 104 | 30.373737 | 0.722273 | 0.032258 | 0 | 0.590909 | 1 | 0 | 0.301309 | 0.057851 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.011364 | 0 | 0.011364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00f03af15f66a616778772a888f841a30e356673 | 393 | py | Python | abc/abc117/abc117d.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | 1 | 2019-08-21T00:49:34.000Z | 2019-08-21T00:49:34.000Z | abc/abc117/abc117d.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | abc/abc117/abc117d.py | c-yan/atcoder | 940e49d576e6a2d734288fadaf368e486480a948 | [
"MIT"
] | null | null | null | N, K = map(int, input().split())
A = list(map(int, input().split()))
bcs = [0] * 41
for i in range(N):
a = A[i]
for j in range(41):
if a & (1 << j) != 0:
bcs[j] += 1
X = 0
for i in range(40, -1, -1):
if bcs[i] >= N - bcs[i]:
continue
t = 1 << i
if X + t <= K:
X ... | 17.086957 | 35 | 0.430025 | 74 | 393 | 2.283784 | 0.324324 | 0.16568 | 0.106509 | 0.195266 | 0.218935 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059761 | 0.361323 | 393 | 22 | 36 | 17.863636 | 0.613546 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
00f34131dc74a5fcb8451162ffa4ff586f9ff84c | 813 | py | Python | tests/test_basics.py | abhishekgupta5/gofers | 1f1e07ac5046a17bcf2d83d01b82e883d175fbb1 | [
"MIT"
] | null | null | null | tests/test_basics.py | abhishekgupta5/gofers | 1f1e07ac5046a17bcf2d83d01b82e883d175fbb1 | [
"MIT"
] | null | null | null | tests/test_basics.py | abhishekgupta5/gofers | 1f1e07ac5046a17bcf2d83d01b82e883d175fbb1 | [
"MIT"
] | null | null | null | #tests/tests_basics.py
import unittest
from flask import current_app
from app import create_app, db
class BasicTestCase(unittest.TestCase):
#setUp and teardown will be called before and after each test respectively
def setUp(self):
#Create app and configure it for testing
self.app = create_app... | 28.034483 | 78 | 0.675277 | 111 | 813 | 4.792793 | 0.432432 | 0.065789 | 0.078947 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242312 | 813 | 28 | 79 | 29.035714 | 0.863636 | 0.249693 | 0 | 0 | 0 | 0 | 0.023179 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.235294 | false | 0 | 0.176471 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
da98ed69095523ae07e03dd97b5afced9614465b | 2,295 | py | Python | src/arxiv_api.py | t-suzuki/arxiv_bot | 08745035c0d17b435fc53bd88b1f50622ae86477 | [
"MIT"
] | 1 | 2016-12-21T02:49:17.000Z | 2016-12-21T02:49:17.000Z | src/arxiv_api.py | t-suzuki/arxiv_bot | 08745035c0d17b435fc53bd88b1f50622ae86477 | [
"MIT"
] | null | null | null | src/arxiv_api.py | t-suzuki/arxiv_bot | 08745035c0d17b435fc53bd88b1f50622ae86477 | [
"MIT"
] | null | null | null | #!env python
# -*- coding: utf-8 -*-
# arXiv API wrapper with limited functionalities.
# reference: http://arxiv.org/help/api/index
import os
import sys
import time
import datetime
import urllib
import urllib2
import xml.etree.ElementTree
import dateutil.parser
import throttle
class ArXiv(object):
throttle_s = 2.... | 31.013514 | 103 | 0.545098 | 273 | 2,295 | 4.465201 | 0.377289 | 0.02461 | 0.02297 | 0.085316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006485 | 0.328105 | 2,295 | 73 | 104 | 31.438356 | 0.784047 | 0.057952 | 0 | 0.147541 | 0 | 0 | 0.091998 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.147541 | null | null | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
da9962a65ba0d084a2bd784e462ae21c822378c8 | 303 | py | Python | tests/utils/cookies/test_request_cookie.py | cbefus/Eynnyd | 1b25281af98c1360794806db21f52ddbe0bd2cad | [
"MIT"
] | 3 | 2019-08-24T19:01:52.000Z | 2020-01-21T00:39:07.000Z | tests/utils/cookies/test_request_cookie.py | cbefus/Eynnyd | 1b25281af98c1360794806db21f52ddbe0bd2cad | [
"MIT"
] | null | null | null | tests/utils/cookies/test_request_cookie.py | cbefus/Eynnyd | 1b25281af98c1360794806db21f52ddbe0bd2cad | [
"MIT"
] | null | null | null | import unittest
from eynnyd.internal.utils.cookies.request_cookie import RequestCookie
class TestRequestCookie(unittest.TestCase):
def test_properties(self):
cookie = RequestCookie("foo", "bar")
self.assertEqual("foo", cookie.name)
self.assertEqual("bar", cookie.value)
| 23.307692 | 70 | 0.722772 | 33 | 303 | 6.575758 | 0.666667 | 0.138249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168317 | 303 | 12 | 71 | 25.25 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0.039735 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
daa1aabff39fbbde1c7e8cc08583f9c98b05f96d | 1,593 | py | Python | breveIDE_windows_2.7.2_2/breveIDE_2.7.2/demos/Push/PushRegression.py | Lamouse/Evolutionary-Creativity | 9e9a4094285241d0541e0b87a3bd2c5e4ba804d3 | [
"MIT"
] | null | null | null | breveIDE_windows_2.7.2_2/breveIDE_2.7.2/demos/Push/PushRegression.py | Lamouse/Evolutionary-Creativity | 9e9a4094285241d0541e0b87a3bd2c5e4ba804d3 | [
"MIT"
] | null | null | null | breveIDE_windows_2.7.2_2/breveIDE_2.7.2/demos/Push/PushRegression.py | Lamouse/Evolutionary-Creativity | 9e9a4094285241d0541e0b87a3bd2c5e4ba804d3 | [
"MIT"
] | null | null | null |
# Note: this file was automatically converted to Python from the
# original steve-language source code. Please see the original
# file for more detailed comments and documentation.
import breve
class RegressionController( breve.Control ):
def __init__( self ):
breve.Control.__init__( self )
RegressionControll... | 26.114754 | 148 | 0.717514 | 170 | 1,593 | 6.623529 | 0.411765 | 0.056838 | 0.039076 | 0.042629 | 0.17762 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012204 | 0.177024 | 1,593 | 60 | 149 | 26.55 | 0.846682 | 0.155681 | 0 | 0.222222 | 0 | 0 | 0.035153 | 0.031414 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.027778 | 0.027778 | 0.361111 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
daa1c9c0831b65b1f9e791dd52949366f7830b50 | 10,814 | py | Python | pynotificator/__init__.py | higurashi-takuto/pynotify | 35ed9d94d87a0e27dee67e687fb174d4a1ddb923 | [
"MIT"
] | 7 | 2020-01-02T08:15:09.000Z | 2020-04-10T00:27:22.000Z | pynotificator/__init__.py | higurashi-takuto/pynotify | 35ed9d94d87a0e27dee67e687fb174d4a1ddb923 | [
"MIT"
] | 1 | 2020-12-18T22:46:10.000Z | 2020-12-18T22:46:10.000Z | pynotificator/__init__.py | higurashi-takuto/pynotificator | 35ed9d94d87a0e27dee67e687fb174d4a1ddb923 | [
"MIT"
] | 2 | 2020-02-01T09:21:07.000Z | 2020-04-09T16:00:41.000Z | import json
import platform
import subprocess
import time
import requests
from ._version import __version__ # noqa: F401
class NotificationError(Exception):
'''Notification Error'''
pass
class BaseNotification:
'''Notification Superclass'''
def set_typed_variable(self, value, specified_type):
... | 25.809069 | 79 | 0.568707 | 1,100 | 10,814 | 5.382727 | 0.156364 | 0.031583 | 0.029725 | 0.027022 | 0.305016 | 0.2633 | 0.23138 | 0.188988 | 0.162979 | 0.148117 | 0 | 0.002581 | 0.319216 | 10,814 | 418 | 80 | 25.870813 | 0.801684 | 0.287683 | 0 | 0.269841 | 0 | 0 | 0.078534 | 0.011053 | 0 | 0 | 0 | 0 | 0 | 1 | 0.201058 | false | 0.005291 | 0.037037 | 0.042328 | 0.386243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
daa2cea06e797922d02bf74c366551547c072f72 | 3,405 | py | Python | intent_parser/accessor/sbh_accessor.py | SD2E/experimental-intent-parser-mw | ebe0358f639505cb281a3e0c1c94e79a88d504e7 | [
"BSD-3-Clause"
] | null | null | null | intent_parser/accessor/sbh_accessor.py | SD2E/experimental-intent-parser-mw | ebe0358f639505cb281a3e0c1c94e79a88d504e7 | [
"BSD-3-Clause"
] | null | null | null | intent_parser/accessor/sbh_accessor.py | SD2E/experimental-intent-parser-mw | ebe0358f639505cb281a3e0c1c94e79a88d504e7 | [
"BSD-3-Clause"
] | null | null | null | import sbol2 as sbol
import tenacity
import threading
import traceback
class SBHAccessor:
def __init__(self, *, sbh_url):
self.shutdownThread = False
self.event = threading.Event()
self.lock = threading.Lock()
self.sbh = sbol.PartShop(sbh_url)
self.sbh_username = None
... | 26.601563 | 79 | 0.545668 | 362 | 3,405 | 5.019337 | 0.234807 | 0.069345 | 0.090809 | 0.088057 | 0.55311 | 0.482664 | 0.482664 | 0.402862 | 0.402862 | 0.402862 | 0 | 0.006106 | 0.374743 | 3,405 | 127 | 80 | 26.811024 | 0.847346 | 0.090162 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.068182 | 0.045455 | 0 | 0.215909 | 0.011364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
daa4d986be8c68a1334697c7b30099b50e7fc3c2 | 276 | py | Python | LeetCodeSolutions/LeetCode_0371.py | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | 24 | 2020-03-28T06:10:25.000Z | 2021-11-23T05:01:29.000Z | LeetCodeSolutions/LeetCode_0371.py | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | null | null | null | LeetCodeSolutions/LeetCode_0371.py | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | 8 | 2020-05-18T02:43:16.000Z | 2021-05-24T18:11:38.000Z | class Solution:
def getSum(self, a: int, b: int) -> int:
a &= 0xFFFFFFFF
b &= 0xFFFFFFFF
while b:
carry = a & b
a = a ^ b
b = ((carry) << 1) & 0xFFFFFFFF
return a if a < 0x80000000 else ~(a ^ 0xFFFFFFFF)
| 27.6 | 57 | 0.460145 | 34 | 276 | 3.735294 | 0.470588 | 0.173228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08805 | 0.423913 | 276 | 9 | 58 | 30.666667 | 0.710692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181159 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
daa8345ac6616934ce9799b950e2b97bd69e2385 | 2,813 | py | Python | train_code_v2/theano_toolkit/parameters.py | darongliu/Cross_Modal_Projection | b71c5031ce02edfd5cca7ba53b2c4e3bf5d0cd5c | [
"MIT"
] | null | null | null | train_code_v2/theano_toolkit/parameters.py | darongliu/Cross_Modal_Projection | b71c5031ce02edfd5cca7ba53b2c4e3bf5d0cd5c | [
"MIT"
] | null | null | null | train_code_v2/theano_toolkit/parameters.py | darongliu/Cross_Modal_Projection | b71c5031ce02edfd5cca7ba53b2c4e3bf5d0cd5c | [
"MIT"
] | null | null | null | from theano.tensor.shared_randomstreams import RandomStreams
import theano.tensor as T
import theano
import random
import numpy as np
from collections import OrderedDict
import cPickle as pickle
import inspect
class Parameters():
def __init__(self):
self.__dict__['params'] = {}
def __setattr__(self... | 27.578431 | 79 | 0.557412 | 317 | 2,813 | 4.548896 | 0.283912 | 0.061026 | 0.07767 | 0.083218 | 0.235784 | 0.174757 | 0.130374 | 0.130374 | 0 | 0 | 0 | 0.002675 | 0.335585 | 2,813 | 101 | 80 | 27.851485 | 0.76886 | 0 | 0 | 0.207317 | 0 | 0 | 0.046214 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.109756 | null | null | 0.036585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
daa8f39da42618aac2e28eaf6c086a3ee683b492 | 4,997 | py | Python | src/cacheout/manager.py | johnbergvall/cacheout | 37b441c93590d0bd8c623f2bde81f30c694ed537 | [
"MIT"
] | null | null | null | src/cacheout/manager.py | johnbergvall/cacheout | 37b441c93590d0bd8c623f2bde81f30c694ed537 | [
"MIT"
] | null | null | null | src/cacheout/manager.py | johnbergvall/cacheout | 37b441c93590d0bd8c623f2bde81f30c694ed537 | [
"MIT"
] | null | null | null | """The manager module provides the :class:`CacheManager` class."""
from threading import RLock
import typing as t
from .cache import Cache
class CacheManager:
"""
The cache manager provides an interface for accessing multiple caches indexed by name.
Each named cache is a separate cache instance with it... | 35.190141 | 99 | 0.598359 | 587 | 4,997 | 4.998296 | 0.274276 | 0.0409 | 0.027267 | 0.023177 | 0.080436 | 0.05726 | 0.037491 | 0.037491 | 0.037491 | 0.037491 | 0 | 0.002513 | 0.28337 | 4,997 | 141 | 100 | 35.439716 | 0.816811 | 0.498499 | 0 | 0.078431 | 0 | 0 | 0.071331 | 0.021491 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0.039216 | 0.431373 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
daab5c7d6848f32a5e865e09a4ecbf1f0ffb5acd | 5,936 | py | Python | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_tty_management_cmd_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_tty_management_cmd_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_tty_management_cmd_oper.py | tkamata-test/ydk-py | b637e7853a8edbbd31fbc05afa3aa4110b31c5f9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """ Cisco_IOS_XR_tty_management_cmd_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR tty\-management\-cmd package operational data.
This module contains definitions
for the following management objects\:
show\-users\: Show users statistics
Copyright (c) 2013\-2016 by Cisco Systems, Inc... | 27.105023 | 244 | 0.535209 | 636 | 5,936 | 4.809748 | 0.180818 | 0.049689 | 0.062112 | 0.104609 | 0.635175 | 0.606734 | 0.571429 | 0.512586 | 0.488395 | 0.488395 | 0 | 0.014734 | 0.382581 | 5,936 | 218 | 245 | 27.229358 | 0.819918 | 0.246799 | 0 | 0.576087 | 0 | 0.021739 | 0.141862 | 0.109363 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163043 | false | 0 | 0.086957 | 0.021739 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
daae925ed6fcdeaff9b666f6202e1011ebbeac03 | 11,313 | py | Python | cp2k_input_tools/generator.py | Zhu-Liu/cp2k-input-tools | 3c84e82554bc5cde687395499e3d6f9e2b50e13b | [
"MIT"
] | null | null | null | cp2k_input_tools/generator.py | Zhu-Liu/cp2k-input-tools | 3c84e82554bc5cde687395499e3d6f9e2b50e13b | [
"MIT"
] | null | null | null | cp2k_input_tools/generator.py | Zhu-Liu/cp2k-input-tools | 3c84e82554bc5cde687395499e3d6f9e2b50e13b | [
"MIT"
] | 1 | 2020-12-22T19:20:53.000Z | 2020-12-22T19:20:53.000Z | import re
import collections
import xml.etree.ElementTree as ET
import itertools
from . import DEFAULT_CP2K_INPUT_XML
class GeneratorError(Exception):
pass
class SectionNotFoundError(Exception):
pass
class KeywordNotFoundError(Exception):
pass
class SectionParametersNotFoundError(Exception):
pa... | 38.090909 | 128 | 0.57182 | 1,339 | 11,313 | 4.73637 | 0.227035 | 0.012772 | 0.019868 | 0.013876 | 0.176916 | 0.126459 | 0.103122 | 0.084516 | 0.07474 | 0.05298 | 0 | 0.00294 | 0.338637 | 11,313 | 296 | 129 | 38.219595 | 0.844694 | 0.245558 | 0 | 0.174699 | 0 | 0 | 0.129209 | 0.018798 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060241 | false | 0.060241 | 0.03012 | 0 | 0.216867 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dac0177c7705ea9ebb4818b4297ec5a6d67cf285 | 913 | py | Python | src/Advent_of_Code/2020/Day_15/Day_15_2.py | phungj/MSOE_Comp_Prog_Py | 95e7521b28d3dbcb6279e7baf03067ca27acbe37 | [
"MIT"
] | null | null | null | src/Advent_of_Code/2020/Day_15/Day_15_2.py | phungj/MSOE_Comp_Prog_Py | 95e7521b28d3dbcb6279e7baf03067ca27acbe37 | [
"MIT"
] | null | null | null | src/Advent_of_Code/2020/Day_15/Day_15_2.py | phungj/MSOE_Comp_Prog_Py | 95e7521b28d3dbcb6279e7baf03067ca27acbe37 | [
"MIT"
] | null | null | null | import os
file_path = os.path.join(os.path.dirname(__file__), "input.txt")
with open(file_path, 'r') as input:
all_lines = input.readlines()
starting_numbers = all_lines[0].split(",")
starting_numbers = [int(s) for s in starting_numbers]
spoken_numbers = {}
for i in range(len(starting_numbers)):
spoken_num... | 27.666667 | 81 | 0.721796 | 130 | 913 | 4.753846 | 0.338462 | 0.273463 | 0.090615 | 0.090615 | 0.211974 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030223 | 0.166484 | 913 | 32 | 82 | 28.53125 | 0.781866 | 0 | 0 | 0.090909 | 0 | 0 | 0.012048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0.045455 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dac2ec8ba6b4986210e1cad01f06d42a0fabbe38 | 606 | py | Python | Hackerrank/WC/13/cbrute.py | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | 2 | 2018-12-11T14:37:24.000Z | 2022-01-23T18:11:54.000Z | Hackerrank/WC/13/cbrute.py | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | Hackerrank/WC/13/cbrute.py | Mindjolt2406/Competitive-Programming | d000d98bf7005ee4fb809bcea2f110e4c4793b80 | [
"MIT"
] | null | null | null | from random import *
#n = randrange(5,10)
#k = randrange(1,12)
n = int(raw_input())
k1 = int(raw_input())
l = []
m = []
#for i in range(n): l.append(randrange(1,12))
l = map(int,raw_input().split())
prod = 1
count = 0
for i in range(1,n+1):
for j in range(n-i+1):
prod = 1
for k in range(j,i+j):
... | 20.896552 | 55 | 0.4967 | 113 | 606 | 2.637168 | 0.265487 | 0.11745 | 0.080537 | 0.110738 | 0.080537 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056075 | 0.293729 | 606 | 28 | 56 | 21.642857 | 0.640187 | 0.135314 | 0 | 0.083333 | 0 | 0 | 0.06142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dacb886317cb212fa3845105804b072855877058 | 475 | py | Python | translations.py | Hoksly/BottleBot | 16e586d09690239ab6cc75a5d9086e38d5eeb82c | [
"MIT"
] | null | null | null | translations.py | Hoksly/BottleBot | 16e586d09690239ab6cc75a5d9086e38d5eeb82c | [
"MIT"
] | null | null | null | translations.py | Hoksly/BottleBot | 16e586d09690239ab6cc75a5d9086e38d5eeb82c | [
"MIT"
] | null | null | null | UL = {}
MT = {
'start_message' : ['Welcome to the StolenBottle Bot. I was created to store and reproduce all content that you and '
'other users share with me.\n'
'Send me whatever you want (text, audio, text, etc.) and I will reply with something from mine archive.\n'... | 43.181818 | 129 | 0.522105 | 60 | 475 | 4.116667 | 0.783333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.385263 | 475 | 11 | 130 | 43.181818 | 0.84589 | 0 | 0 | 0 | 0 | 0.111111 | 0.653361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dacd1878b52bb0813fbf30c59ea775658d6cdb52 | 237 | py | Python | data/test.py | Yemeen/Arxiv-Generator | c3a36f77f6ef323020bc28d7b62fd0a9212a148d | [
"Apache-2.0"
] | 3 | 2018-03-25T23:36:00.000Z | 2018-07-20T02:10:00.000Z | data/test.py | Yemeen/Arxiv-Generator | c3a36f77f6ef323020bc28d7b62fd0a9212a148d | [
"Apache-2.0"
] | null | null | null | data/test.py | Yemeen/Arxiv-Generator | c3a36f77f6ef323020bc28d7b62fd0a9212a148d | [
"Apache-2.0"
] | null | null | null | import arxiv
import PyPDF2
# Query for a paper of interest, then download
numpapers = 1000
for x in xrange(1,numpapers):
paper = arxiv.query(search_query="cat:math.RT",max_results=numpapers)[x]
arxiv.download(paper, slugify=True)
| 18.230769 | 73 | 0.759494 | 37 | 237 | 4.810811 | 0.675676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029268 | 0.135021 | 237 | 12 | 74 | 19.75 | 0.839024 | 0.185654 | 0 | 0 | 0 | 0 | 0.058201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dacd65219992731377a86ac5ca90ad8bf0a8a773 | 15,569 | py | Python | archiv/forms.py | acdh-oeaw/mmp | 7ef8f33eafd3a7985328d374130f1cbe31f77df0 | [
"MIT"
] | 2 | 2021-06-02T11:27:54.000Z | 2021-08-25T10:29:04.000Z | archiv/forms.py | acdh-oeaw/mmp | 7ef8f33eafd3a7985328d374130f1cbe31f77df0 | [
"MIT"
] | 86 | 2021-01-29T12:31:34.000Z | 2022-03-28T11:41:04.000Z | archiv/forms.py | acdh-oeaw/mmp | 7ef8f33eafd3a7985328d374130f1cbe31f77df0 | [
"MIT"
] | null | null | null | # generated by appcreator
from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.layout import (
Submit,
Layout,
Fieldset
)
from crispy_forms.bootstrap import Accordion, AccordionGroup
from dal import autocomplete
from leaflet.forms.widgets import LeafletWidget
from vocabs.m... | 31.075848 | 78 | 0.501831 | 1,340 | 15,569 | 5.490299 | 0.111194 | 0.086992 | 0.045671 | 0.032622 | 0.73984 | 0.655838 | 0.6224 | 0.561234 | 0.503874 | 0.487835 | 0 | 0.002536 | 0.392061 | 15,569 | 500 | 79 | 31.138 | 0.774749 | 0.001477 | 0 | 0.643653 | 1 | 0 | 0.178011 | 0.0478 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035635 | false | 0 | 0.017817 | 0 | 0.113586 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dad1362920f692291c89a37da6fed75e0fbdca6f | 3,118 | py | Python | tests/templates.py | jpic/pytezos | 39327363235902de9355e667b8661345865bddd1 | [
"MIT"
] | null | null | null | tests/templates.py | jpic/pytezos | 39327363235902de9355e667b8661345865bddd1 | [
"MIT"
] | null | null | null | tests/templates.py | jpic/pytezos | 39327363235902de9355e667b8661345865bddd1 | [
"MIT"
] | null | null | null | michelson_coding_test_case = """from unittest import TestCase
from tests import get_data
from pytezos.michelson.micheline import micheline_to_michelson, michelson_to_micheline
class MichelsonCodingTest{case}(TestCase):
def setUp(self):
self.maxDiff = None
"""
test_michelson_parse = """
def tes... | 25.983333 | 88 | 0.64753 | 348 | 3,118 | 5.520115 | 0.189655 | 0.054659 | 0.062988 | 0.046851 | 0.445601 | 0.38886 | 0.317022 | 0.317022 | 0.29672 | 0.271213 | 0 | 0.000852 | 0.247274 | 3,118 | 120 | 89 | 25.983333 | 0.81764 | 0 | 0 | 0.383721 | 0 | 0 | 0.911831 | 0.356845 | 0 | 0 | 0 | 0 | 0.069767 | 1 | 0 | false | 0 | 0.139535 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dadb0307612a78a244fcc9029f69dd06fc2e3c8a | 1,952 | py | Python | creator_studio/creator_studio.py | asperduti/creator-studio-cli | 22f4ce246febca4c0983c0146cffdda99a47235d | [
"MIT"
] | 15 | 2020-05-22T23:41:23.000Z | 2021-09-22T19:14:52.000Z | creator_studio/creator_studio.py | asperduti/creator-studio-cli | 22f4ce246febca4c0983c0146cffdda99a47235d | [
"MIT"
] | 9 | 2020-04-25T19:20:47.000Z | 2021-08-06T12:41:19.000Z | creator_studio/creator_studio.py | asperduti/creator-studio-cli | 22f4ce246febca4c0983c0146cffdda99a47235d | [
"MIT"
] | 5 | 2020-11-24T18:55:14.000Z | 2021-07-11T21:39:17.000Z | from .login_util import is_user_loged, CREATOR_STUDIO_HOMEPAGE
from .login_util import login_user
from .browser import get_browser, save_cookies, load_cookies
from . import instagram
from . import facebook
class CreatorStudio:
"""Class to be instantiated to use te script."""
def __init__(self, email, password... | 37.538462 | 106 | 0.664447 | 241 | 1,952 | 5.157676 | 0.286307 | 0.097345 | 0.060338 | 0.045857 | 0.227675 | 0.201126 | 0.152856 | 0.111022 | 0.111022 | 0.111022 | 0 | 0 | 0.254098 | 1,952 | 52 | 107 | 37.538462 | 0.853709 | 0.033811 | 0 | 0.055556 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.138889 | 0 | 0.305556 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dadb6c70220fdacf3be77281d8d2c1e7ff0ac85b | 2,119 | py | Python | challenges/codility/lessons/q012/passing_cars_test.py | Joeffison/coding_challenges | 0f0c5c2c3dad3a5aabfb66d66c5b6a89bff374ea | [
"MIT"
] | 1 | 2018-02-27T15:53:17.000Z | 2018-02-27T15:53:17.000Z | challenges/codility/lessons/q012/passing_cars_test.py | Joeffison/coding_challenges | 0f0c5c2c3dad3a5aabfb66d66c5b6a89bff374ea | [
"MIT"
] | null | null | null | challenges/codility/lessons/q012/passing_cars_test.py | Joeffison/coding_challenges | 0f0c5c2c3dad3a5aabfb66d66c5b6a89bff374ea | [
"MIT"
] | 1 | 2021-04-18T09:43:21.000Z | 2021-04-18T09:43:21.000Z | #!/usr/bin/env python3
import random
import unittest
import numpy as np
from challenges.codility.lessons.q012.passing_cars_v001 import *
MAX_N = 100000
class PassingCarsTestCase(unittest.TestCase):
def test_description_examples(self):
self.assertEqual(5, solution([0, 1, 0, 1, 1]))
# Correctness
def t... | 24.356322 | 79 | 0.657857 | 302 | 2,119 | 4.350993 | 0.251656 | 0.171233 | 0.097412 | 0.146119 | 0.434551 | 0.377473 | 0.249619 | 0.205479 | 0.144597 | 0.144597 | 0 | 0.050204 | 0.1916 | 2,119 | 86 | 80 | 24.639535 | 0.716871 | 0.024068 | 0 | 0.122807 | 0 | 0 | 0.003876 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 1 | 0.22807 | false | 0.035088 | 0.070175 | 0 | 0.350877 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dae4a4541503c2fc6c50ea87a657a2b78bfa6331 | 2,889 | py | Python | code/general.py | hanseungwook/Stylized-ImageNet | f3d20056ce1ddd74ee6cdce6c16d20c624d33880 | [
"MIT"
] | 443 | 2018-11-29T22:36:14.000Z | 2022-03-31T09:07:39.000Z | code/general.py | hanseungwook/Stylized-ImageNet | f3d20056ce1ddd74ee6cdce6c16d20c624d33880 | [
"MIT"
] | 11 | 2019-07-15T11:09:12.000Z | 2021-09-14T09:20:14.000Z | code/general.py | hanseungwook/Stylized-ImageNet | f3d20056ce1ddd74ee6cdce6c16d20c624d33880 | [
"MIT"
] | 56 | 2018-11-30T06:47:16.000Z | 2022-03-13T06:21:02.000Z | #!/usr/env/python
"""
General definitions and paths
"""
import argparse
import os
from os.path import join as pjoin
###########################################################
# SETTINGS THAT NEED TO BE CHANGED BY USER
###########################################################
# TODO Dear user, please change th... | 37.519481 | 143 | 0.624091 | 348 | 2,889 | 5.002874 | 0.359195 | 0.051694 | 0.097645 | 0.051694 | 0.266514 | 0.197588 | 0.156232 | 0.116025 | 0.116025 | 0.116025 | 0 | 0.006449 | 0.194877 | 2,889 | 76 | 144 | 38.013158 | 0.742046 | 0.119072 | 0 | 0.047619 | 0 | 0 | 0.226003 | 0.071117 | 0 | 0 | 0 | 0.013158 | 0.119048 | 1 | 0.02381 | false | 0 | 0.071429 | 0 | 0.119048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dae84a59ad72fa2ad5df3fd0ca5f3485c61c3812 | 1,009 | py | Python | tests/btjanaka_test.py | btjanaka/btjanaka-pypi | 8c2c7689702aba2241c616fcfa65ae5b94920783 | [
"MIT"
] | 1 | 2022-03-15T08:17:15.000Z | 2022-03-15T08:17:15.000Z | tests/btjanaka_test.py | btjanaka/btjanaka-pypi | 8c2c7689702aba2241c616fcfa65ae5b94920783 | [
"MIT"
] | 1 | 2022-03-15T08:20:37.000Z | 2022-03-15T08:20:37.000Z | tests/btjanaka_test.py | btjanaka/btjanaka-pypi | 8c2c7689702aba2241c616fcfa65ae5b94920783 | [
"MIT"
] | null | null | null | """Tests for btjanaka."""
import btjanaka
def test_calls():
"""Try calling every method."""
for name, method in btjanaka.__dict__.items():
if not name.startswith("_") and callable(method):
method()
def test_counting():
"""Test counting - copy this to README."""
nums = [
l... | 33.633333 | 75 | 0.551041 | 118 | 1,009 | 4.652542 | 0.483051 | 0.200364 | 0.081967 | 0.065574 | 0.10929 | 0.10929 | 0 | 0 | 0 | 0 | 0 | 0.018301 | 0.241824 | 1,009 | 29 | 76 | 34.793103 | 0.699346 | 0.105055 | 0 | 0 | 0 | 0 | 0.011403 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
daee5af5fe86e0b6ad1db0cfcb549559816ab418 | 862 | py | Python | test/lang/c/test_synthesis.py | rakati/ppci-mirror | 8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2 | [
"BSD-2-Clause"
] | 161 | 2020-05-31T03:29:42.000Z | 2022-03-07T08:36:19.000Z | test/lang/c/test_synthesis.py | rakati/ppci-mirror | 8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2 | [
"BSD-2-Clause"
] | 74 | 2020-05-26T18:05:48.000Z | 2021-02-13T21:55:39.000Z | test/lang/c/test_synthesis.py | rakati/ppci-mirror | 8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2 | [
"BSD-2-Clause"
] | 19 | 2020-05-27T19:22:11.000Z | 2022-02-17T18:53:52.000Z | import unittest
import io
from ppci import ir
from ppci.irutils import verify_module
from ppci.lang.c import CBuilder
from ppci.lang.c.options import COptions
from ppci.arch.example import ExampleArch
from ppci.lang.c import CSynthesizer
class CSynthesizerTestCase(unittest.TestCase):
def test_hello(self):
... | 26.121212 | 54 | 0.646172 | 109 | 862 | 4.963303 | 0.477064 | 0.088725 | 0.066543 | 0.072089 | 0.07024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25406 | 862 | 32 | 55 | 26.9375 | 0.841369 | 0.044084 | 0 | 0 | 0 | 0 | 0.145833 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 1 | 0.038462 | false | 0 | 0.307692 | 0 | 0.384615 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
daf21883b3e1f7bc7129ae50932fe36b8e087814 | 304 | py | Python | pages/urls.py | Ashwin-Dev-P/Thumki-Final-Hosting | fcfe40000b688d419513831ece5400cb32caaa69 | [
"MIT"
] | 1 | 2022-01-09T10:23:22.000Z | 2022-01-09T10:23:22.000Z | pages/urls.py | Ashwin-Dev-P/dev-stores | fcfe40000b688d419513831ece5400cb32caaa69 | [
"MIT"
] | null | null | null | pages/urls.py | Ashwin-Dev-P/dev-stores | fcfe40000b688d419513831ece5400cb32caaa69 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('block_printing',views.block_printing,name='block_printing'),
]
urlpatterns = urlpatterns + static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT) | 30.4 | 88 | 0.805921 | 41 | 304 | 5.829268 | 0.414634 | 0.125523 | 0.117155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101974 | 304 | 10 | 88 | 30.4 | 0.875458 | 0 | 0 | 0 | 0 | 0 | 0.091803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
daf366e37ff4fa6195cf9599266911e3aae86ad6 | 294 | py | Python | worker/106.py | hoshimaemi/XZZ | 6d712906fa2f1fcf16155cfd5d89245ef8e0aff8 | [
"MIT"
] | 29 | 2020-02-27T13:49:48.000Z | 2021-02-26T15:44:14.000Z | worker/106.py | hoshimaemi/XZZ | 6d712906fa2f1fcf16155cfd5d89245ef8e0aff8 | [
"MIT"
] | 3 | 2021-03-30T11:31:49.000Z | 2021-12-07T12:11:56.000Z | worker/106.py | hoshimaemi/XZZ | 6d712906fa2f1fcf16155cfd5d89245ef8e0aff8 | [
"MIT"
] | 14 | 2020-02-29T07:25:12.000Z | 2021-01-03T05:12:25.000Z | import requests
from zzcore import StdAns
class Ans(StdAns):
AllowGroup = [959613860, 983250332]
def GETMSG(self):
seconds = int(requests.get("http://127.0.0.1:8095/").text)
m, s = divmod(seconds, 60)
h, m = divmod(m, 60)
return f'{h}小时{m}分钟{s}秒前有人来过。'
| 26.727273 | 66 | 0.605442 | 44 | 294 | 4.045455 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.238095 | 294 | 10 | 67 | 29.4 | 0.651786 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dafb58523bce9003814b907c487288c4ede6aabf | 5,986 | py | Python | dlp/risk_test.py | n0mer/python-docs-samples | 7f0be7574f360d3d481ce3aa06bc98d4b358a232 | [
"Apache-2.0"
] | 1 | 2020-12-07T18:57:14.000Z | 2020-12-07T18:57:14.000Z | dlp/risk_test.py | JeewanGautam/python-docs-samples | f0a4963b7e715068435b55671734e31abd4dc780 | [
"Apache-2.0"
] | 1 | 2022-01-14T23:28:27.000Z | 2022-01-14T23:28:27.000Z | dlp/risk_test.py | JeewanGautam/python-docs-samples | f0a4963b7e715068435b55671734e31abd4dc780 | [
"Apache-2.0"
] | 2 | 2020-06-07T07:03:00.000Z | 2021-04-10T18:22:25.000Z | # Copyright 2017 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, ... | 25.257384 | 87 | 0.677247 | 714 | 5,986 | 5.37395 | 0.221289 | 0.047433 | 0.103987 | 0.109461 | 0.644514 | 0.623664 | 0.600469 | 0.600469 | 0.587959 | 0.557467 | 0 | 0.002428 | 0.243234 | 5,986 | 236 | 88 | 25.364407 | 0.844592 | 0.108754 | 0 | 0.715084 | 0 | 0 | 0.085935 | 0.007898 | 0 | 0 | 0 | 0 | 0.106145 | 1 | 0.067039 | false | 0.011173 | 0.022346 | 0 | 0.089385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dafd8c2d01667a5f45fd1674b192f8885658dfb7 | 2,832 | py | Python | evaluate.py | pengzhiliang/MRBrainS_seg | 52c392edb0b3d3988cdf526002f2e6df5c8401fe | [
"MIT"
] | 46 | 2018-12-12T06:39:23.000Z | 2022-03-14T09:23:23.000Z | evaluate.py | liumindbdx/MRBrainS_seg | 52c392edb0b3d3988cdf526002f2e6df5c8401fe | [
"MIT"
] | 4 | 2019-10-30T09:20:20.000Z | 2020-06-11T11:51:17.000Z | evaluate.py | liumindbdx/MRBrainS_seg | 52c392edb0b3d3988cdf526002f2e6df5c8401fe | [
"MIT"
] | 9 | 2019-04-02T10:47:42.000Z | 2022-02-23T00:54:47.000Z | #-*-coding:utf-8-*-
'''
Created on Nov14 31,2018
@author: pengzhiliang
'''
import time
import numpy as np
import os
import os.path as osp
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from tqdm import tqdm
from torch.utils.data import Dataset,DataLoader
from torch.o... | 31.466667 | 93 | 0.684322 | 412 | 2,832 | 4.575243 | 0.390777 | 0.037135 | 0.012732 | 0.02069 | 0.049867 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023206 | 0.178319 | 2,832 | 90 | 94 | 31.466667 | 0.78685 | 0.129944 | 0 | 0 | 0 | 0 | 0.108927 | 0.03276 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.31746 | 0 | 0.31746 | 0.079365 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
97039fd779ad925fe9ecbf39d2ee8ff7862807e9 | 1,825 | py | Python | tasks/cluster_agent_cloudfoundry.py | Jeremyyang920/datadog-agent | 11e65147e366cbff7a0ae9f5feb8db9930173911 | [
"Apache-2.0"
] | 1,611 | 2017-09-28T15:07:39.000Z | 2022-03-31T18:23:05.000Z | tasks/cluster_agent_cloudfoundry.py | Jeremyyang920/datadog-agent | 11e65147e366cbff7a0ae9f5feb8db9930173911 | [
"Apache-2.0"
] | 3,946 | 2017-09-28T14:45:19.000Z | 2022-03-31T20:19:36.000Z | tasks/cluster_agent_cloudfoundry.py | Jeremyyang920/datadog-agent | 11e65147e366cbff7a0ae9f5feb8db9930173911 | [
"Apache-2.0"
] | 916 | 2017-10-17T23:18:48.000Z | 2022-03-30T09:26:14.000Z | """
Cluster Agent for Cloud Foundry tasks
"""
import os
from invoke import task
from .build_tags import get_default_build_tags
from .cluster_agent_helpers import build_common, clean_common, refresh_assets_common, version_common
# constants
BIN_PATH = os.path.join(".", "bin", "datadog-cluster-agent-cloudfoundry")
... | 25.347222 | 119 | 0.684932 | 234 | 1,825 | 5.166667 | 0.393162 | 0.08933 | 0.079404 | 0.033085 | 0.044665 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002839 | 0.227945 | 1,825 | 71 | 120 | 25.704225 | 0.855216 | 0.351781 | 0 | 0.16129 | 0 | 0 | 0.091248 | 0.075419 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.16129 | false | 0.032258 | 0.129032 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
97057b946caab5e28090989e6b272b719c7342d8 | 1,818 | py | Python | tony-history-server/xml_to_play_opts.py | erwa/TonY | 7bc1d5e7c8dce5eca9b355b8dac15ec2ba3a8951 | [
"BSD-2-Clause"
] | null | null | null | tony-history-server/xml_to_play_opts.py | erwa/TonY | 7bc1d5e7c8dce5eca9b355b8dac15ec2ba3a8951 | [
"BSD-2-Clause"
] | null | null | null | tony-history-server/xml_to_play_opts.py | erwa/TonY | 7bc1d5e7c8dce5eca9b355b8dac15ec2ba3a8951 | [
"BSD-2-Clause"
] | null | null | null | import xml.etree.ElementTree as ET
import sys
# This script parses tony-site.xml, then returns a string that
# includes all the necessary flags for Play to consume.
# Returns empty string if there's an unrecognizable key in
# tony-site.xml
if (len(sys.argv) < 2):
print("Usage: python xml_to_play_opts.py <path/to/... | 38.680851 | 81 | 0.60286 | 253 | 1,818 | 4.320158 | 0.316206 | 0.059469 | 0.107045 | 0.130833 | 0.401647 | 0.288198 | 0.249771 | 0.249771 | 0.202196 | 0.142726 | 0 | 0.018068 | 0.208471 | 1,818 | 47 | 82 | 38.680851 | 0.741487 | 0.10176 | 0 | 0.054054 | 0 | 0 | 0.350522 | 0.224678 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.054054 | 0.054054 | 0 | 0.054054 | 0.108108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.