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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed357991abf2c2c65f389b291cda395333ae456a | 1,034 | py | Python | ursina/shaders/camera_grayscale.py | clayboone/ursina | 9aebd9403b924af260fbefbfd7cef5ad82feeff7 | [
"MIT"
] | 1 | 2020-09-04T14:32:33.000Z | 2020-09-04T14:32:33.000Z | ursina/shaders/camera_grayscale.py | clayboone/ursina | 9aebd9403b924af260fbefbfd7cef5ad82feeff7 | [
"MIT"
] | null | null | null | ursina/shaders/camera_grayscale.py | clayboone/ursina | 9aebd9403b924af260fbefbfd7cef5ad82feeff7 | [
"MIT"
] | 1 | 2020-09-04T14:32:41.000Z | 2020-09-04T14:32:41.000Z | from panda3d.core import Shader
camera_grayscale_shader = Shader.make('''
void vshader(float4 vtx_position : POSITION,
float2 vtx_texcoord0 : TEXCOORD0,
out float4 l_position : POSITION,
out float2 l_texcoord0 : TEXCOORD0,
uniform float4 texpad_tex,
uniform... | 24.046512 | 66 | 0.644101 | 133 | 1,034 | 4.75188 | 0.443609 | 0.063291 | 0.066456 | 0.085443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034794 | 0.249516 | 1,034 | 42 | 67 | 24.619048 | 0.779639 | 0.03675 | 0 | 0 | 0 | 0 | 0.678068 | 0.029175 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.068966 | 0 | 0 | 0 | 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 |
ed36667308e3003e1adc4bac76934a9f49d81712 | 434 | py | Python | tests/test_settings.py | MacHu-GWU/afwf_aws_tools-project | 91df7fa5e7bdd0a81bdb5efb9e0b49978527a18f | [
"BSD-2-Clause"
] | 6 | 2021-11-03T01:21:02.000Z | 2022-02-23T02:03:41.000Z | tests/test_settings.py | MacHu-GWU/afwf_aws_tools-project | 91df7fa5e7bdd0a81bdb5efb9e0b49978527a18f | [
"BSD-2-Clause"
] | 2 | 2021-08-04T20:51:17.000Z | 2021-11-02T22:02:35.000Z | tests/test_settings.py | MacHu-GWU/afwf_aws_tools-project | 91df7fa5e7bdd0a81bdb5efb9e0b49978527a18f | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
from aws_tools.settings import settings, SettingKeys, find_setting
class Test(object):
def test_read_all_aws_profile(self):
settings[SettingKeys._debug] = "debug"
def test_search_setting(self):
assert "aws" in find_setting("aws")[0]
if __name__ == "__m... | 21.7 | 66 | 0.675115 | 56 | 434 | 4.839286 | 0.625 | 0.140221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005666 | 0.186636 | 434 | 19 | 67 | 22.842105 | 0.76204 | 0.048387 | 0 | 0 | 0 | 0 | 0.077859 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.181818 | false | 0 | 0.272727 | 0 | 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 |
ed3bcd38916b7aec7a1f52fe8c2efcdcedfe38aa | 4,918 | py | Python | testCluster/calData.py | xx502003587/HWTest | 04a20c49bd13b0d7ab4cb0c9255fb7ddbe80bc5c | [
"Apache-2.0"
] | null | null | null | testCluster/calData.py | xx502003587/HWTest | 04a20c49bd13b0d7ab4cb0c9255fb7ddbe80bc5c | [
"Apache-2.0"
] | null | null | null | testCluster/calData.py | xx502003587/HWTest | 04a20c49bd13b0d7ab4cb0c9255fb7ddbe80bc5c | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
name = ['201601-citibike-tripdata.csv', '201602-citibike-tripdata.csv', '201603-citibike-tripdata.csv',
'201604-citibike-tripdata.csv', '201605-citibike-tripdata.csv', '201606-citib... | 26.874317 | 107 | 0.511997 | 672 | 4,918 | 3.691964 | 0.27381 | 0.077388 | 0.091898 | 0.044337 | 0.196695 | 0.125353 | 0.098751 | 0.090286 | 0.090286 | 0.045143 | 0 | 0.048591 | 0.292802 | 4,918 | 182 | 108 | 27.021978 | 0.66475 | 0.05429 | 0 | 0.112903 | 0 | 0 | 0.153986 | 0.085169 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032258 | null | null | 0.048387 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ed3d75886668492b847a7a2a3a7123adf20f7540 | 5,056 | py | Python | anneal/watershed_anneal.py | rhodges/watershed-priorities | e4fbb197f7b08f4be34d3275b79a55c7cd64c5e2 | [
"BSD-3-Clause"
] | null | null | null | anneal/watershed_anneal.py | rhodges/watershed-priorities | e4fbb197f7b08f4be34d3275b79a55c7cd64c5e2 | [
"BSD-3-Clause"
] | null | null | null | anneal/watershed_anneal.py | rhodges/watershed-priorities | e4fbb197f7b08f4be34d3275b79a55c7cd64c5e2 | [
"BSD-3-Clause"
] | null | null | null | import math
import sys
import os
from anneal import Annealer
from numpy import random
#-----------------------------------------------#
#-------------- Configuration ------------------#
#-----------------------------------------------#
shp = '../media/staticmap/data/huc6_4326.shp'
json_cache = './watersheds.json'
spec... | 28.404494 | 98 | 0.530261 | 578 | 5,056 | 4.567474 | 0.368512 | 0.023864 | 0.020455 | 0.015152 | 0.02803 | 0.02803 | 0 | 0 | 0 | 0 | 0 | 0.032593 | 0.332476 | 5,056 | 177 | 99 | 28.564972 | 0.74963 | 0.104826 | 0 | 0.101695 | 0 | 0 | 0.094237 | 0.010107 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008475 | 0.059322 | null | null | 0.09322 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ed4235c7b9947a491357cde1df16b5a28f35ce27 | 2,517 | py | Python | py/opcda/redis_lua.py | mabotech/mabo.io | 7f646db9d5ee3cd0b137866bf8eaf295890f134c | [
"MIT"
] | null | null | null | py/opcda/redis_lua.py | mabotech/mabo.io | 7f646db9d5ee3cd0b137866bf8eaf295890f134c | [
"MIT"
] | null | null | null | py/opcda/redis_lua.py | mabotech/mabo.io | 7f646db9d5ee3cd0b137866bf8eaf295890f134c | [
"MIT"
] | 1 | 2021-01-30T01:47:01.000Z | 2021-01-30T01:47:01.000Z | # -*- coding: utf-8 -*-
import os, sys
import redis
import time
import toml
import logging
from mako.template import Template
import traceback
#from conf import Conf
#conf = Conf("config/ak_client.toml")
conf_fn = "config/opc_monitor.toml"
with open(conf_fn, "r") as conf_fh:
cfg = toml.loads(conf_fh.read(... | 19.664063 | 86 | 0.484704 | 275 | 2,517 | 4.312727 | 0.323636 | 0.074199 | 0.032884 | 0.043002 | 0.128162 | 0.086003 | 0.086003 | 0.086003 | 0.086003 | 0.086003 | 0 | 0.008259 | 0.374652 | 2,517 | 128 | 87 | 19.664063 | 0.745235 | 0.090584 | 0 | 0.153846 | 0 | 0 | 0.085926 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.134615 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed45c3c1df999d418eab3be1bd7918b8b8f88f0b | 1,993 | py | Python | app/main/views/new_password.py | department-of-veterans-affairs/notification-admin | afba831a1e5e407cd7939df991d7438786da8afd | [
"MIT"
] | null | null | null | app/main/views/new_password.py | department-of-veterans-affairs/notification-admin | afba831a1e5e407cd7939df991d7438786da8afd | [
"MIT"
] | null | null | null | app/main/views/new_password.py | department-of-veterans-affairs/notification-admin | afba831a1e5e407cd7939df991d7438786da8afd | [
"MIT"
] | null | null | null | import json
from datetime import datetime
from flask import (
current_app,
flash,
redirect,
render_template,
session,
url_for,
)
from itsdangerous import SignatureExpired
from notifications_utils.url_safe_token import check_token
from app.main import main
from app.main.forms import NewPassword... | 36.907407 | 111 | 0.667837 | 272 | 1,993 | 4.705882 | 0.411765 | 0.046875 | 0.025781 | 0.046875 | 0.085938 | 0.048438 | 0.014063 | 0.014063 | 0 | 0 | 0 | 0.000645 | 0.221776 | 1,993 | 53 | 112 | 37.603774 | 0.824629 | 0.060712 | 0 | 0.045455 | 0 | 0 | 0.191546 | 0.026217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0.181818 | 0.204545 | 0 | 0.340909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ed473fb69ca5c33c3728453884254b1b55f99ec5 | 1,323 | py | Python | graph/connexion/checkpassword.py | JJS-X/PiOT | 4b5b50b1a08a39219cdd64f7f0d677b1f6c1a615 | [
"MIT"
] | null | null | null | graph/connexion/checkpassword.py | JJS-X/PiOT | 4b5b50b1a08a39219cdd64f7f0d677b1f6c1a615 | [
"MIT"
] | null | null | null | graph/connexion/checkpassword.py | JJS-X/PiOT | 4b5b50b1a08a39219cdd64f7f0d677b1f6c1a615 | [
"MIT"
] | null | null | null | import re
import sys
import crypt
import cherrypy
def checkpass(username, password):
passwd = open("/etc/shadow","r")
goodpassword = None
for line in passwd:
if username in line:
goodpassword = line
if not goodpassword is None:
table=goodpassword.split(":")
... | 28.76087 | 77 | 0.545729 | 150 | 1,323 | 4.813333 | 0.426667 | 0.088643 | 0.052632 | 0.074792 | 0.171745 | 0.171745 | 0 | 0 | 0 | 0 | 0 | 0.009688 | 0.297808 | 1,323 | 45 | 78 | 29.4 | 0.767492 | 0.243386 | 0 | 0.0625 | 0 | 0 | 0.117089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.25 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ed4be076bfd289556ef3f0051c258325e4820c2c | 11,350 | py | Python | tiny_video_nets/found_tvns.py | egonrian/google-research | 8177adbe9ca0d7e5a9463b54581fe6dd27be0974 | [
"Apache-2.0"
] | 3 | 2021-01-18T04:46:49.000Z | 2021-03-05T09:21:40.000Z | tiny_video_nets/found_tvns.py | Alfaxad/google-research | 2c0043ecd507e75e2df9973a3015daf9253e1467 | [
"Apache-2.0"
] | 7 | 2021-11-10T19:44:38.000Z | 2022-02-10T06:48:39.000Z | tiny_video_nets/found_tvns.py | Alfaxad/google-research | 2c0043ecd507e75e2df9973a3015daf9253e1467 | [
"Apache-2.0"
] | 4 | 2021-02-08T10:25:45.000Z | 2021-04-17T14:46:26.000Z | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 25.505618 | 74 | 0.474978 | 1,195 | 11,350 | 4.303766 | 0.12887 | 0.038888 | 0.038499 | 0.03111 | 0.701147 | 0.633677 | 0.607816 | 0.541318 | 0.463932 | 0.44021 | 0 | 0.098379 | 0.358767 | 11,350 | 444 | 75 | 25.563063 | 0.608272 | 0.060176 | 0 | 0.879433 | 0 | 0 | 0.386718 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed4ebc1b5fc1727ebd8aa711b5e2b537380bdfb1 | 7,675 | py | Python | test/IECoreScene/PrimitiveVariableTest.py | aitorvfx/cortex | c0c27794fc67ccfce68b064e284747165c49ef1c | [
"BSD-3-Clause"
] | 5 | 2015-09-13T14:49:30.000Z | 2017-02-04T21:04:59.000Z | test/IECoreScene/PrimitiveVariableTest.py | aitorvfx/cortex | c0c27794fc67ccfce68b064e284747165c49ef1c | [
"BSD-3-Clause"
] | 1 | 2018-11-07T19:40:15.000Z | 2018-11-07T19:40:15.000Z | test/IECoreScene/PrimitiveVariableTest.py | aitorvfx/cortex | c0c27794fc67ccfce68b064e284747165c49ef1c | [
"BSD-3-Clause"
] | 3 | 2015-02-03T17:13:40.000Z | 2022-01-07T15:55:00.000Z | ##########################################################################
#
# Copyright (c) 2010, Image Engine Design Inc. All rights reserved.
# Copyright (c) 2012, John Haddon. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that ... | 39.561856 | 165 | 0.709577 | 897 | 7,675 | 6.06243 | 0.221851 | 0.121368 | 0.052961 | 0.105921 | 0.608128 | 0.565649 | 0.49338 | 0.379367 | 0.278963 | 0.22214 | 0 | 0.028278 | 0.161433 | 7,675 | 193 | 166 | 39.766839 | 0.816656 | 0.212899 | 0 | 0.362069 | 0 | 0 | 0.001366 | 0 | 0 | 0 | 0 | 0 | 0.439655 | 1 | 0.068966 | false | 0 | 0.034483 | 0 | 0.112069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
ed5ae0be449b316ae5de55cabb28696e5c6a8338 | 369 | py | Python | myGalleryApp/migrations/0003_rename_image_image_boom.py | mireille1999/gallery_app | bbbd5607d99f79dfb27f166d4fb1b59e9898f172 | [
"Unlicense"
] | null | null | null | myGalleryApp/migrations/0003_rename_image_image_boom.py | mireille1999/gallery_app | bbbd5607d99f79dfb27f166d4fb1b59e9898f172 | [
"Unlicense"
] | null | null | null | myGalleryApp/migrations/0003_rename_image_image_boom.py | mireille1999/gallery_app | bbbd5607d99f79dfb27f166d4fb1b59e9898f172 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.2 on 2021-04-13 08:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('myGalleryApp', '0002_rename_aimage_image_image'),
]
operations = [
migrations.RenameField(
model_name='image',
old_name='Image... | 19.421053 | 59 | 0.593496 | 39 | 369 | 5.435897 | 0.769231 | 0.084906 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069498 | 0.298103 | 369 | 18 | 60 | 20.5 | 0.749035 | 0.116531 | 0 | 0 | 1 | 0 | 0.17284 | 0.092593 | 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 |
ed5fec4f66bd4b1458a382f968b5e3a33b1e648f | 1,024 | py | Python | Algorithms_medium/0991. Broken Calculator.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | 4 | 2020-08-11T20:45:15.000Z | 2021-03-12T00:33:34.000Z | Algorithms_medium/0991. Broken Calculator.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | Algorithms_medium/0991. Broken Calculator.py | VinceW0/Leetcode_Python_solutions | 09e9720afce21632372431606ebec4129eb79734 | [
"Xnet",
"X11"
] | null | null | null | """
0991. Broken Calculator
Medium
On a broken calculator that has a number showing on its display, we can perform two operations:
Double: Multiply the number on the display by 2, or;
Decrement: Subtract 1 from the number on the display.
Initially, the calculator is displaying the number X.
Return the minimum number... | 22.26087 | 95 | 0.644531 | 168 | 1,024 | 3.928571 | 0.386905 | 0.054545 | 0.033333 | 0.042424 | 0.063636 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074413 | 0.251953 | 1,024 | 46 | 96 | 22.26087 | 0.787206 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed6663e41173486bf1479dee0038df59ef0033a2 | 11,039 | py | Python | code/build_neo4j.py | ncats/neo4covid19 | 3662bbcbbd1d67f19876d58db73f94248f62a62b | [
"MIT"
] | null | null | null | code/build_neo4j.py | ncats/neo4covid19 | 3662bbcbbd1d67f19876d58db73f94248f62a62b | [
"MIT"
] | null | null | null | code/build_neo4j.py | ncats/neo4covid19 | 3662bbcbbd1d67f19876d58db73f94248f62a62b | [
"MIT"
] | 1 | 2020-10-05T21:21:34.000Z | 2020-10-05T21:21:34.000Z | # Author: Gergely Zahoranszky-Kohalmi, PhD
#
# Email: gergely.zahoranszky-kohalmi@nih.gov
#
# Organization: National Center for Advancing Translational Sciences (NCATS/NIH)
#
# Ref: https://groups.google.com/forum/#!topic/cytoscape-discuss/Nmm1zhVJpd4
# Ref: https://nbviewer.jupyter.org/github/idekerlab/py2cytoscape/bl... | 26.283333 | 503 | 0.674246 | 1,657 | 11,039 | 4.221485 | 0.134581 | 0.017155 | 0.044603 | 0.048034 | 0.7198 | 0.657899 | 0.631022 | 0.626876 | 0.616726 | 0.616726 | 0 | 0.006799 | 0.147296 | 11,039 | 419 | 504 | 26.346062 | 0.736322 | 0.302564 | 0 | 0.520548 | 0 | 0 | 0.260778 | 0.068236 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123288 | false | 0 | 0.041096 | 0.027397 | 0.239726 | 0.116438 | 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 |
ed689e6500b5e3d0b08cbd46aef798fd9ee35d0d | 1,607 | py | Python | recipe_blog/recipe/serializers.py | hossshakiba/recipe-blog-api | 755e4b4f10aa7b1918b260a5823900fb41bfff1b | [
"MIT"
] | 2 | 2021-07-07T21:20:48.000Z | 2021-08-17T04:36:41.000Z | recipe_blog/recipe/serializers.py | hossshakiba/recipe-blog-api | 755e4b4f10aa7b1918b260a5823900fb41bfff1b | [
"MIT"
] | null | null | null | recipe_blog/recipe/serializers.py | hossshakiba/recipe-blog-api | 755e4b4f10aa7b1918b260a5823900fb41bfff1b | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from rest_framework import serializers
from .models import Recipe
from recipe_blog.categories.models import Category
from recipe_blog.ingredients.models import Ingredient
class ListingField(serializers.RelatedField):
"""
Represent the name of related field inst... | 34.934783 | 82 | 0.66397 | 168 | 1,607 | 6.279762 | 0.505952 | 0.034123 | 0.088152 | 0.090995 | 0.070142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23771 | 1,607 | 46 | 83 | 34.934783 | 0.861224 | 0.088363 | 0 | 0.064516 | 0 | 0 | 0.121254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.16129 | 0 | 0.516129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ed6b175c407cb479c544bae5ae814c4260b3816c | 6,002 | py | Python | magenta/lib/basic_one_hot_encoder_test.py | NunoEdgarGFlowHub/magenta | 65bc65e084062554dff71171f751dd3c78be51fa | [
"Apache-2.0"
] | 1 | 2016-06-30T16:24:34.000Z | 2016-06-30T16:24:34.000Z | magenta/lib/basic_one_hot_encoder_test.py | NunoEdgarGFlowHub/magenta | 65bc65e084062554dff71171f751dd3c78be51fa | [
"Apache-2.0"
] | null | null | null | magenta/lib/basic_one_hot_encoder_test.py | NunoEdgarGFlowHub/magenta | 65bc65e084062554dff71171f751dd3c78be51fa | [
"Apache-2.0"
] | 1 | 2020-12-18T19:27:15.000Z | 2020-12-18T19:27:15.000Z | # Copyright 2016 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... | 42.567376 | 82 | 0.661613 | 815 | 6,002 | 4.555828 | 0.215951 | 0.064099 | 0.056289 | 0.07164 | 0.626448 | 0.626448 | 0.618099 | 0.618099 | 0.618099 | 0.618099 | 0 | 0.051259 | 0.252416 | 6,002 | 140 | 83 | 42.871429 | 0.776242 | 0.100966 | 0 | 0.632075 | 0 | 0 | 0.00372 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 1 | 0.056604 | false | 0 | 0.028302 | 0.009434 | 0.113208 | 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 |
ed72d97de85c82d46cac8c9c6ad48b55d06cd44b | 1,129 | py | Python | example_control.py | Gloriabhsfer/UR5_Controller | 3825d557c48e9b23b0b91cb56f79d72b74dce363 | [
"MIT"
] | null | null | null | example_control.py | Gloriabhsfer/UR5_Controller | 3825d557c48e9b23b0b91cb56f79d72b74dce363 | [
"MIT"
] | null | null | null | example_control.py | Gloriabhsfer/UR5_Controller | 3825d557c48e9b23b0b91cb56f79d72b74dce363 | [
"MIT"
] | null | null | null | import logging
import time
from RTIF.API import API
# this script demonstrate how to control the robot arm to a specified location
# by writing the angle of each joint.
#
# Notice: the default initial position is a singular position which we can only
# control the joint angle but cannot set tool location (the Invert K... | 35.28125 | 108 | 0.683791 | 139 | 1,129 | 5.467626 | 0.589928 | 0.026316 | 0.073684 | 0.076316 | 0.355263 | 0.355263 | 0.355263 | 0.355263 | 0.186842 | 0.186842 | 0 | 0.286523 | 0.217892 | 1,129 | 31 | 109 | 36.419355 | 0.574179 | 0.329495 | 0 | 0.25 | 0 | 0 | 0.028075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
ed751041d37772b9d0704862a574f152a5715c9e | 2,191 | py | Python | titanic/titanic_heuristic.py | SinghKaranbir/DataScience | a400cc4d537bc772a4f0097f3817c0cc9a477598 | [
"Apache-2.0"
] | 1 | 2020-04-24T18:43:58.000Z | 2020-04-24T18:43:58.000Z | titanic/titanic_heuristic.py | SinghKaranbir/DataScience | a400cc4d537bc772a4f0097f3817c0cc9a477598 | [
"Apache-2.0"
] | null | null | null | titanic/titanic_heuristic.py | SinghKaranbir/DataScience | a400cc4d537bc772a4f0097f3817c0cc9a477598 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import numpy as np
def gender_based_heuristic():
'''
Heuristic based on the gender of the passenger. In this heuristic, if passenger
is female then she survived else passenger didn't survive
'''
predictions = {}
titanic_df = pd.read_csv('data/titanic_data.csv')
for _, p... | 31.3 | 96 | 0.674578 | 261 | 2,191 | 5.490421 | 0.298851 | 0.043964 | 0.06141 | 0.031403 | 0.357292 | 0.357292 | 0.274948 | 0.274948 | 0.274948 | 0.249826 | 0 | 0.007647 | 0.224099 | 2,191 | 69 | 97 | 31.753623 | 0.835294 | 0.20356 | 0 | 0.475 | 0 | 0 | 0.163701 | 0.037367 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0.25 | 0.05 | 0 | 0.175 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ed776771cfc07286ff6474d4fe1d29f33b420dc2 | 1,312 | py | Python | ports/deskutils/calibre/dragonfly/patch-setup_build.py | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 31 | 2015-02-06T17:06:37.000Z | 2022-03-08T19:53:28.000Z | ports/deskutils/calibre/dragonfly/patch-setup_build.py | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 236 | 2015-06-29T19:51:17.000Z | 2021-12-16T22:46:38.000Z | ports/deskutils/calibre/dragonfly/patch-setup_build.py | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 52 | 2015-02-06T17:05:36.000Z | 2021-10-21T12:13:06.000Z | --- setup/build.py.orig 2021-02-18 15:47:43 UTC
+++ setup/build.py
@@ -8,7 +8,7 @@ __docformat__ = 'restructuredtext en'
import textwrap, os, shlex, subprocess, glob, shutil, sys, json
from collections import namedtuple
-from setup import Command, islinux, isbsd, isfreebsd, ismacos, ishaiku, SRC, iswindows
+from se... | 43.733333 | 129 | 0.602896 | 176 | 1,312 | 4.420455 | 0.488636 | 0.030848 | 0.046272 | 0.056555 | 0.262211 | 0.187661 | 0.187661 | 0.077121 | 0.077121 | 0 | 0 | 0.035468 | 0.226372 | 1,312 | 29 | 130 | 45.241379 | 0.731034 | 0 | 0 | 0 | 0 | 0 | 0.113567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | 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 |
ed78f86da6df102b859186604b7c6a349f49673e | 9,839 | py | Python | tests/share/util/test_mutable_graph.py | felliott/SHARE | 8fd60ff4749349c9b867f6188650d71f4f0a1a56 | [
"Apache-2.0"
] | null | null | null | tests/share/util/test_mutable_graph.py | felliott/SHARE | 8fd60ff4749349c9b867f6188650d71f4f0a1a56 | [
"Apache-2.0"
] | null | null | null | tests/share/util/test_mutable_graph.py | felliott/SHARE | 8fd60ff4749349c9b867f6188650d71f4f0a1a56 | [
"Apache-2.0"
] | null | null | null | import pytest
from share.util.graph import MutableGraph
work_id = '_:6203fec461bb4b3fa956772acbd9c50d'
org_id = '_:d486fd737bea4fbe9566b7a2842651ef'
person_id = '_:f4cec0271c7d4085bac26dbb2b32a002'
creator_id = '_:a17f28109536459ca02d99bf777400ae'
identifier_id = '_:a27f2810e536459ca02d99bf707400be'
@pytest.fixtur... | 65.15894 | 1,721 | 0.670698 | 1,072 | 9,839 | 5.92444 | 0.214552 | 0.06991 | 0.027712 | 0.032908 | 0.322784 | 0.194143 | 0.139978 | 0.135097 | 0.109274 | 0.109274 | 0 | 0.097743 | 0.16709 | 9,839 | 150 | 1,722 | 65.593333 | 0.677242 | 0.000407 | 0 | 0.082645 | 0 | 0.008264 | 0.443913 | 0.152853 | 0 | 0 | 0 | 0 | 0.165289 | 1 | 0.115702 | false | 0 | 0.016529 | 0.016529 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed7f060936a8a25ecbcef66ba070ed2027833392 | 627 | py | Python | abyssal_modules/migrations/0006_mutator_source_fk_part_2.py | kimnnmadsen/eve-abyssal-market | 1e07498b98be9282b969badff51d55258c72e7ed | [
"MIT"
] | 13 | 2018-08-23T14:27:22.000Z | 2020-12-07T12:35:38.000Z | abyssal_modules/migrations/0006_mutator_source_fk_part_2.py | kimnnmadsen/eve-abyssal-market | 1e07498b98be9282b969badff51d55258c72e7ed | [
"MIT"
] | 25 | 2018-10-09T14:37:33.000Z | 2020-05-15T20:21:48.000Z | abyssal_modules/migrations/0006_mutator_source_fk_part_2.py | kimnnmadsen/eve-abyssal-market | 1e07498b98be9282b969badff51d55258c72e7ed | [
"MIT"
] | 4 | 2021-08-12T05:34:05.000Z | 2022-01-06T05:28:36.000Z | # Generated by Django 2.0.9 on 2018-10-17 16:18
from django.db import migrations
def convert_mutator_source(apps, schema_editor):
Module = apps.get_model('abyssal_modules', 'Module')
InvType = apps.get_model('eve_sde', 'InvType')
for m in Module.objects.all():
m.mutator = InvType.objects.get(id=... | 25.08 | 61 | 0.684211 | 85 | 627 | 4.823529 | 0.564706 | 0.029268 | 0.097561 | 0.092683 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039683 | 0.196172 | 627 | 24 | 62 | 26.125 | 0.77381 | 0.07177 | 0 | 0 | 1 | 0 | 0.136207 | 0.05 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 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 |
ed7f5296cc2c5e28e5d3b2f0b9e3f89cfad6e586 | 2,393 | py | Python | json2zip.py | rivetin/PolicyGenerator | 6d286f63dc8966da7e9554e74d5f3a475c0ec072 | [
"MIT"
] | null | null | null | json2zip.py | rivetin/PolicyGenerator | 6d286f63dc8966da7e9554e74d5f3a475c0ec072 | [
"MIT"
] | null | null | null | json2zip.py | rivetin/PolicyGenerator | 6d286f63dc8966da7e9554e74d5f3a475c0ec072 | [
"MIT"
] | null | null | null | import json
import os
import shutil
from pprint import pprint
from docxtpl import DocxTemplate
from werkzeug.utils import secure_filename
def generate_zip(name):
dirname = os.path.dirname(__file__)
json_path = os.path.join(dirname, 'static', 'json', name)
if(os.path.isfile(json_path)):
json_file... | 33.236111 | 84 | 0.65023 | 330 | 2,393 | 4.433333 | 0.242424 | 0.065619 | 0.041012 | 0.06972 | 0.221463 | 0.155161 | 0.124402 | 0.124402 | 0.124402 | 0.06972 | 0 | 0.004341 | 0.229837 | 2,393 | 71 | 85 | 33.704225 | 0.789474 | 0.042206 | 0 | 0 | 1 | 0 | 0.075711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0.113208 | 0 | 0.226415 | 0.056604 | 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 |
ed7f640db0df0ad410d1d1d529fb36cc323cbfe7 | 7,376 | py | Python | interface.py | wangechimk/password-locker | 098e8ea3fd5f145416acd897f66e6e48ab94fad6 | [
"MIT"
] | null | null | null | interface.py | wangechimk/password-locker | 098e8ea3fd5f145416acd897f66e6e48ab94fad6 | [
"MIT"
] | null | null | null | interface.py | wangechimk/password-locker | 098e8ea3fd5f145416acd897f66e6e48ab94fad6 | [
"MIT"
] | null | null | null | from locker import User, Credentials
def function():
print(" __ __ __ ")
print("| | | | | | ")
print("| |__| | | | ")
print("| __ | | | ")
print("| | | | | | ")
print("|__| |__| |__| ")
function()
def create_user(username, password):
'''
Function to create a ... | 35.12381 | 142 | 0.539317 | 762 | 7,376 | 5.10105 | 0.199475 | 0.023154 | 0.030872 | 0.017494 | 0.289169 | 0.223051 | 0.187034 | 0.169025 | 0.169025 | 0.127605 | 0 | 0.004619 | 0.354257 | 7,376 | 209 | 143 | 35.291866 | 0.808944 | 0.075651 | 0 | 0.369863 | 0 | 0 | 0.299535 | 0.030448 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089041 | false | 0.260274 | 0.006849 | 0.006849 | 0.150685 | 0.376712 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ed841e75b2feba7d866bccecf6023c76b1baee60 | 911 | py | Python | setup.py | THofstee/hdlConvertor | 411e47d140dd8dfedbb767b9d239453891753da4 | [
"MIT"
] | null | null | null | setup.py | THofstee/hdlConvertor | 411e47d140dd8dfedbb767b9d239453891753da4 | [
"MIT"
] | null | null | null | setup.py | THofstee/hdlConvertor | 411e47d140dd8dfedbb767b9d239453891753da4 | [
"MIT"
] | null | null | null | from skbuild import setup
setup(
cmake_args= [
#'-DCMAKE_BUILD_TYPE=Debug'
],
name='hdlConvertor',
version='1.2',
description='VHDL and System Verilog parser written in c++',
url='https://github.com/Nic30/hdlConvertor',
author='Michal Orsak',
author_email='michal.o.socials@gmail... | 32.535714 | 64 | 0.607025 | 90 | 911 | 6.088889 | 0.733333 | 0.104015 | 0.069343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.239297 | 911 | 27 | 65 | 33.740741 | 0.777778 | 0.02854 | 0 | 0.08 | 0 | 0 | 0.563348 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ed8a02c34938f698e64ec9bca6829db61fb2ac30 | 2,366 | py | Python | votey/models.py | sanaerosen-yelp/votey | f5ec74d5b3d71d5f0e01409591d808648cfccd59 | [
"MIT"
] | null | null | null | votey/models.py | sanaerosen-yelp/votey | f5ec74d5b3d71d5f0e01409591d808648cfccd59 | [
"MIT"
] | null | null | null | votey/models.py | sanaerosen-yelp/votey | f5ec74d5b3d71d5f0e01409591d808648cfccd59 | [
"MIT"
] | null | null | null | from typing import List
from typing import Optional
from sqlalchemy.dialects.postgresql import UUID
from . import db
class Workspace(db.Model): # type: ignore
id: int = db.Column(db.Integer, primary_key=True)
team_id: str = db.Column(db.Text, nullable=False)
name: str = db.Column(db.Text, nullable=False... | 36.96875 | 86 | 0.662722 | 333 | 2,366 | 4.582583 | 0.165165 | 0.089122 | 0.104849 | 0.068152 | 0.534076 | 0.534076 | 0.517693 | 0.362385 | 0.302097 | 0.302097 | 0 | 0 | 0.205833 | 2,366 | 63 | 87 | 37.555556 | 0.812134 | 0.021555 | 0 | 0.153846 | 0 | 0 | 0.029437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096154 | false | 0 | 0.076923 | 0.019231 | 0.653846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
71ea5d969f04780eded57b2e2079b1dca16c1492 | 7,026 | py | Python | src/skmultiflow/data/base_stream.py | kushvarma/scikit-multiflow | 7f5154a915be842dc32146874f5d7ac3d9a14775 | [
"BSD-3-Clause"
] | 1 | 2020-04-16T10:17:03.000Z | 2020-04-16T10:17:03.000Z | src/skmultiflow/data/base_stream.py | jacobmontiel/scikit-multiflow | bfe504b4ca24b77e211fd55dc42844fc494671d7 | [
"BSD-3-Clause"
] | null | null | null | src/skmultiflow/data/base_stream.py | jacobmontiel/scikit-multiflow | bfe504b4ca24b77e211fd55dc42844fc494671d7 | [
"BSD-3-Clause"
] | null | null | null | from abc import ABCMeta, abstractmethod
from skmultiflow.core import BaseSKMObject
import warnings
class Stream(BaseSKMObject, metaclass=ABCMeta):
""" Base Stream class.
This abstract class defines the minimum requirements of a stream,
so that it can work along other modules in scikit-multiflow.
Rai... | 24.739437 | 94 | 0.56049 | 792 | 7,026 | 4.772727 | 0.185606 | 0.025132 | 0.034921 | 0.016931 | 0.426455 | 0.260582 | 0.206878 | 0.134921 | 0.118519 | 0.093651 | 0 | 0.005285 | 0.353686 | 7,026 | 283 | 95 | 24.826855 | 0.827131 | 0.380444 | 0 | 0.208791 | 0 | 0.010989 | 0.059964 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263736 | false | 0 | 0.032967 | 0 | 0.450549 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
71f394889edfeba16360c79e71cea39e02b23b13 | 1,038 | py | Python | selfattest_web/common/constants.py | sourabh-garg/selfattest | 6e66b0dc253ad8a2ac89f2b3a594f7256cc80500 | [
"MIT"
] | 3 | 2020-07-01T07:55:24.000Z | 2021-07-01T15:48:30.000Z | selfattest_web/common/constants.py | sourabh-garg/selfattest | 6e66b0dc253ad8a2ac89f2b3a594f7256cc80500 | [
"MIT"
] | 5 | 2021-03-19T08:46:23.000Z | 2021-09-08T02:14:24.000Z | selfattest_web/common/constants.py | sourabh-garg/selfattest | 6e66b0dc253ad8a2ac89f2b3a594f7256cc80500 | [
"MIT"
] | 1 | 2020-06-29T05:09:16.000Z | 2020-06-29T05:09:16.000Z | import enum
import uuid
from typing import List, Tuple
class Length:
'''
Changing constants may require DB migrations. Think before changing.
'''
UUID_LEN = 36
EMAIL = 64
class BaseIntEnum(enum.IntEnum):
@classmethod
def tokentype_from_string(cls, token_type: str) -> 'BaseIntEnum':
... | 22.565217 | 72 | 0.631985 | 124 | 1,038 | 5.16129 | 0.516129 | 0.070313 | 0.0625 | 0.084375 | 0.303125 | 0.303125 | 0.303125 | 0.303125 | 0.303125 | 0 | 0 | 0.008054 | 0.282274 | 1,038 | 45 | 73 | 23.066667 | 0.851007 | 0.310212 | 0 | 0.157895 | 0 | 0 | 0.036184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.157895 | 0 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
71f88bf60c61999751a4a21fe55bb78c0443d96a | 689 | py | Python | website/migrations/0069_auto_20180125_1919.py | CrowdcoinSA/crowdcoin-platform | 72d48d4a7ac4abe7d02e3f369ca62a29c402c9d9 | [
"MIT"
] | null | null | null | website/migrations/0069_auto_20180125_1919.py | CrowdcoinSA/crowdcoin-platform | 72d48d4a7ac4abe7d02e3f369ca62a29c402c9d9 | [
"MIT"
] | 7 | 2020-02-12T00:10:22.000Z | 2022-01-13T00:43:13.000Z | website/migrations/0069_auto_20180125_1919.py | CrowdcoinSA/crowdcoin-platform | 72d48d4a7ac4abe7d02e3f369ca62a29c402c9d9 | [
"MIT"
] | 1 | 2020-10-05T12:20:19.000Z | 2020-10-05T12:20:19.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-01-25 17:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('website', '0068_auto_20180125_1851'),
]
operations = [
migrations.AlterFiel... | 26.5 | 79 | 0.613933 | 77 | 689 | 5.285714 | 0.662338 | 0.09828 | 0.12285 | 0.142506 | 0.422604 | 0.422604 | 0.422604 | 0.19656 | 0 | 0 | 0 | 0.082677 | 0.2627 | 689 | 25 | 80 | 27.56 | 0.718504 | 0.098694 | 0 | 0.333333 | 1 | 0 | 0.140777 | 0.071197 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 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 |
71f9b3f9d3dd25c1d40a909ad8f1f212232ef312 | 1,680 | py | Python | TaskTool.py | nanshihui/FlexibleTask | 6594ca2f1de36fec691e26c4b06a9915dda69db5 | [
"MIT"
] | 1 | 2017-09-13T01:21:07.000Z | 2017-09-13T01:21:07.000Z | TaskTool.py | nanshihui/FlexibleTask | 6594ca2f1de36fec691e26c4b06a9915dda69db5 | [
"MIT"
] | null | null | null | TaskTool.py | nanshihui/FlexibleTask | 6594ca2f1de36fec691e26c4b06a9915dda69db5 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#coding:utf-8
from ThreadTool import ThreadTool
import datetime
class TaskTool:
def __init__(self,isThread=1,deamon=False,needfinishqueue=0,log=None):
self.threadtool=ThreadTool(isThread,deamon=deamon,needfinishqueue=needfinishqueue)
self.threadtool.add_task(self.task)
self.log=log
self.thre... | 23.013699 | 84 | 0.738095 | 261 | 1,680 | 4.578544 | 0.356322 | 0.175732 | 0.083682 | 0.080335 | 0.138912 | 0.048536 | 0 | 0 | 0 | 0 | 0 | 0.025136 | 0.12381 | 1,680 | 72 | 85 | 23.333333 | 0.786685 | 0.03869 | 0 | 0.034483 | 0 | 0 | 0.012477 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086207 | null | null | 0.051724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
71fb05950ffb76adfddb70032efa0658312ff59b | 259 | py | Python | foundation/www/index.py | prafful1234/foundation | 6fcb027e76eae8d307c3dd70436a9657ff681f01 | [
"MIT"
] | 59 | 2017-03-15T08:14:52.000Z | 2021-11-17T14:21:58.000Z | foundation/www/index.py | prafful1234/foundation | 6fcb027e76eae8d307c3dd70436a9657ff681f01 | [
"MIT"
] | 147 | 2017-01-25T10:44:47.000Z | 2020-11-05T04:24:22.000Z | foundation/www/index.py | prafful1234/foundation | 6fcb027e76eae8d307c3dd70436a9657ff681f01 | [
"MIT"
] | 134 | 2017-03-14T14:04:21.000Z | 2022-03-18T08:19:47.000Z | # See license.txt
from __future__ import unicode_literals
import frappe
def get_context(context):
out = {
"events": frappe.get_all("Portal Event", fields=["event_title", "event_date", "details", "route"], filters=[["published", "=", 1]])
}
return out
| 23.545455 | 133 | 0.694981 | 33 | 259 | 5.181818 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.135135 | 259 | 10 | 134 | 25.9 | 0.758929 | 0.057915 | 0 | 0 | 0 | 0 | 0.252066 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
71fbf57d75c6a4f808bbb186391cedeafe71cbfe | 9,637 | py | Python | zprime_search/test/TreeProducer.py | cdragoiu/particle_physics | 1814ea2f072ccfbf1412397b19a3b5dad7ddb639 | [
"MIT"
] | null | null | null | zprime_search/test/TreeProducer.py | cdragoiu/particle_physics | 1814ea2f072ccfbf1412397b19a3b5dad7ddb639 | [
"MIT"
] | null | null | null | zprime_search/test/TreeProducer.py | cdragoiu/particle_physics | 1814ea2f072ccfbf1412397b19a3b5dad7ddb639 | [
"MIT"
] | null | null | null | import sys
# running parameters -------------------------------------------------------------------------------
runType = 'data' # mc/data
inputFile = '/store/data/Run2012A/SingleElectron/AOD/13Jul2012-v1/0000/' + \
'001A2EB8-47D4-E111-B527-003048679070.root'
ntupleName = 'ntuple.root'
nrEvents = 30
if len... | 38.858871 | 100 | 0.740583 | 925 | 9,637 | 7.632432 | 0.370811 | 0.052975 | 0.023796 | 0.026346 | 0.16289 | 0.086402 | 0.086402 | 0.080312 | 0.061331 | 0.061331 | 0 | 0.025442 | 0.131265 | 9,637 | 247 | 101 | 39.016194 | 0.817845 | 0.083013 | 0 | 0.106952 | 0 | 0 | 0.261358 | 0.178896 | 0 | 0 | 0.000454 | 0 | 0 | 0 | null | null | 0 | 0.026738 | null | null | 0.005348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9c007c002a33937ca013641386e29cbe0773b005 | 675 | py | Python | tests/testapp/migrations/0001_initial.py | justquick/django-jsonfallback | 2c04a17674ca4ccb92fcf852e5c376c899b636d1 | [
"Apache-2.0"
] | 23 | 2018-10-22T10:53:32.000Z | 2021-05-03T09:40:56.000Z | tests/testapp/migrations/0001_initial.py | justquick/django-jsonfallback | 2c04a17674ca4ccb92fcf852e5c376c899b636d1 | [
"Apache-2.0"
] | 3 | 2018-12-09T19:10:21.000Z | 2020-06-11T14:50:25.000Z | tests/testapp/migrations/0001_initial.py | laymonage/django-jsonfallback | 6e70edd2dbab7d74230e4af48d160ea8c6a663fb | [
"Apache-2.0"
] | 3 | 2019-04-16T11:19:22.000Z | 2020-04-19T21:50:39.000Z | # Generated by Django 2.1.2 on 2018-10-16 19:46
import jsonfallback.fields
from django.core.serializers.json import DjangoJSONEncoder
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | 27 | 114 | 0.601481 | 66 | 675 | 6.106061 | 0.712121 | 0.08933 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031185 | 0.287407 | 675 | 24 | 115 | 28.125 | 0.806653 | 0.066667 | 0 | 0 | 1 | 0 | 0.028662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.388889 | 0 | 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 |
9c03559f8cf487a08eaef93cc0c1d8ec30ee9047 | 287 | py | Python | 2_EstruturaDecisao/03_media.py | gustavodoamaral/exercicios_python_brasil | 5f112b97fa3f667cb19d9de4367e7521ca58f48a | [
"MIT"
] | null | null | null | 2_EstruturaDecisao/03_media.py | gustavodoamaral/exercicios_python_brasil | 5f112b97fa3f667cb19d9de4367e7521ca58f48a | [
"MIT"
] | null | null | null | 2_EstruturaDecisao/03_media.py | gustavodoamaral/exercicios_python_brasil | 5f112b97fa3f667cb19d9de4367e7521ca58f48a | [
"MIT"
] | null | null | null | primeiraNota = float(input('Informe a primeira nota: '))
segundaNota = float(input('Informe a segunda nota: '))
media = (primeiraNota + segundaNota) / 2
if media >= 7 and media < 10:
print('Aprovado')
elif media < 7:
print('Reprovado')
else:
print('Aprovado com distinção') | 26.090909 | 56 | 0.679443 | 36 | 287 | 5.416667 | 0.611111 | 0.102564 | 0.174359 | 0.184615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.181185 | 287 | 11 | 57 | 26.090909 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0.305556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c07874decea082c557b1c7e64c8ef5268f926c3 | 1,304 | py | Python | psox/__main__.py | tulare/psox | 0fc8099a86034f7abecfac7369a71ad81edef5bc | [
"MIT"
] | null | null | null | psox/__main__.py | tulare/psox | 0fc8099a86034f7abecfac7369a71ad81edef5bc | [
"MIT"
] | null | null | null | psox/__main__.py | tulare/psox | 0fc8099a86034f7abecfac7369a71ad81edef5bc | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
import time
from . import *
from .synth import build_chord
from .ukulele import CHORDS as ukuleleChords
if __name__ == '__main__' :
def makeChord(chord, up=False, scale=20, length=1) :
sin = SoxSource(
effects = build_chord(ukuleleChords, chord, up, scale, length)
... | 24.603774 | 86 | 0.56365 | 164 | 1,304 | 4.420732 | 0.329268 | 0.111724 | 0.173793 | 0.248276 | 0.36 | 0.184828 | 0.184828 | 0.184828 | 0.184828 | 0.14069 | 0 | 0.011579 | 0.271472 | 1,304 | 52 | 87 | 25.076923 | 0.751579 | 0.036043 | 0 | 0.114286 | 0 | 0 | 0.041467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.114286 | 0 | 0.171429 | 0.057143 | 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 |
9c10d67f815ab8fc98d2725bf79b2119e45e3e05 | 1,128 | py | Python | examples/04-search/03-lemmata.py | PenTesting/pattern | 820cccf33c6ac4a4f1564a273137171cfa6ab7cb | [
"BSD-3-Clause"
] | 1 | 2020-12-18T01:07:50.000Z | 2020-12-18T01:07:50.000Z | examples/04-search/03-lemmata.py | PenTesting/pattern | 820cccf33c6ac4a4f1564a273137171cfa6ab7cb | [
"BSD-3-Clause"
] | null | null | null | examples/04-search/03-lemmata.py | PenTesting/pattern | 820cccf33c6ac4a4f1564a273137171cfa6ab7cb | [
"BSD-3-Clause"
] | 1 | 2017-04-15T21:35:34.000Z | 2017-04-15T21:35:34.000Z | import os, sys; sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", ".."))
from pattern.search import search, match
from pattern.en import parsetree
# This example demonstrates an interesting search pattern that mines for comparisons.
# Notice the use of the constraint "be".
# If the output from the ... | 34.181818 | 87 | 0.653369 | 175 | 1,128 | 4.188571 | 0.485714 | 0.032742 | 0.013643 | 0.024557 | 0.130969 | 0.130969 | 0.130969 | 0 | 0 | 0 | 0 | 0.009081 | 0.218972 | 1,128 | 32 | 88 | 35.25 | 0.822928 | 0.393617 | 0 | 0.210526 | 0 | 0 | 0.272593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.157895 | null | null | 0.263158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9c12dfea7cfeafae17867566a7b9b85efc2cf293 | 1,781 | py | Python | familytree/models.py | jdunjords/FamilyTree | 446f23aff329ab3b6edeaba2d60ed443410509a5 | [
"MIT"
] | null | null | null | familytree/models.py | jdunjords/FamilyTree | 446f23aff329ab3b6edeaba2d60ed443410509a5 | [
"MIT"
] | null | null | null | familytree/models.py | jdunjords/FamilyTree | 446f23aff329ab3b6edeaba2d60ed443410509a5 | [
"MIT"
] | null | null | null | from datetime import datetime
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from familytree import db, login_manager
from flask_login import UserMixin
from flask import current_app
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
# tablename: 'user'
cla... | 37.104167 | 77 | 0.743964 | 252 | 1,781 | 5.134921 | 0.333333 | 0.055641 | 0.069552 | 0.05255 | 0.233385 | 0.205564 | 0.205564 | 0.149923 | 0.149923 | 0.149923 | 0 | 0.008805 | 0.107243 | 1,781 | 48 | 78 | 37.104167 | 0.805031 | 0.20831 | 0 | 0.0625 | 0 | 0 | 0.088382 | 0.016393 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.03125 | 0.15625 | 0.0625 | 0.78125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c165802f7880ae1835db61e839dd743b3a50aa6 | 860 | py | Python | display_imgs.py | Jason-Adam/pytorch-cpp | f94c2dca17df81d58b3c1d8b9dcb90a8bd82d89b | [
"Unlicense"
] | null | null | null | display_imgs.py | Jason-Adam/pytorch-cpp | f94c2dca17df81d58b3c1d8b9dcb90a8bd82d89b | [
"Unlicense"
] | null | null | null | display_imgs.py | Jason-Adam/pytorch-cpp | f94c2dca17df81d58b3c1d8b9dcb90a8bd82d89b | [
"Unlicense"
] | null | null | null | """Script to generate images from model output"""
import argparse
import matplotlib.pyplot as plt
import torch
PARSER = argparse.ArgumentParser()
PARSER.add_argument("-i", "--sample-file", required=True)
PARSER.add_argument("-o", "--out-file", default="out.png")
PARSER.add_argument("-d", "--dimension", type=int, defa... | 34.4 | 81 | 0.725581 | 121 | 860 | 5.066116 | 0.578512 | 0.104405 | 0.083197 | 0.104405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014342 | 0.10814 | 860 | 24 | 82 | 35.833333 | 0.784876 | 0.05 | 0 | 0 | 1 | 0 | 0.070284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.157895 | 0.052632 | 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 |
9c16b67d3633c1704a76c2e66da87f3c1a600229 | 4,852 | py | Python | teether/project.py | ljhOfGithub/teether | 7c74dbe0853a527fcb8a458cbb6485d4dd07a375 | [
"Apache-2.0"
] | null | null | null | teether/project.py | ljhOfGithub/teether | 7c74dbe0853a527fcb8a458cbb6485d4dd07a375 | [
"Apache-2.0"
] | null | null | null | teether/project.py | ljhOfGithub/teether | 7c74dbe0853a527fcb8a458cbb6485d4dd07a375 | [
"Apache-2.0"
] | null | null | null | import logging
from collections import defaultdict
from teether.cfg.cfg import CFG
from teether.cfg.disassembly import generate_BBs
from teether.cfg.opcodes import external_data
from teether.evm.evm import run, run_symbolic
from teether.evm.exceptions import IntractablePath, ExternalData
from teether.explorer.forward ... | 36.757576 | 112 | 0.597279 | 619 | 4,852 | 4.549273 | 0.232633 | 0.027344 | 0.017045 | 0.035511 | 0.09304 | 0.041903 | 0.023438 | 0 | 0 | 0 | 0 | 0.002082 | 0.30709 | 4,852 | 131 | 113 | 37.038168 | 0.835515 | 0.027205 | 0 | 0.136364 | 1 | 0 | 0.026511 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127273 | false | 0 | 0.1 | 0.036364 | 0.345455 | 0 | 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 |
9c1832e2043601c63b689b77d35df2b376a15e7d | 504 | py | Python | tests/r/test_chain.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | tests/r/test_chain.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | tests/r/test_chain.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.chain import chain
def test_chain():
"""Test module chain.py by downloading
chain.csv and testing shape of
extracted data has 532 rows and... | 21 | 44 | 0.748016 | 72 | 504 | 4.958333 | 0.569444 | 0.084034 | 0.134454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019465 | 0.184524 | 504 | 23 | 45 | 21.913043 | 0.849148 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.466667 | 0 | 0.533333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9c18ca7cb9141e8999f7b1fc6791ac829cd4a07f | 6,682 | py | Python | g_python/hparsers.py | kSlideHH/G-Python | f7e604766db9b9ee693c92d4ffaef60f7f7fb263 | [
"MIT"
] | null | null | null | g_python/hparsers.py | kSlideHH/G-Python | f7e604766db9b9ee693c92d4ffaef60f7f7fb263 | [
"MIT"
] | null | null | null | g_python/hparsers.py | kSlideHH/G-Python | f7e604766db9b9ee693c92d4ffaef60f7f7fb263 | [
"MIT"
] | 1 | 2021-01-05T02:56:24.000Z | 2021-01-05T02:56:24.000Z | from enum import Enum
class HBubble(Enum):
NORMAL: 0
RED: 3
BLUE: 4
YELLOW: 5
GREEN: 6
BLACK: 7
ZOMBIE: 9
SKULL: 10
PINK: 12
PURPLE: 13
ORANGE: 14
HEART: 16
ROSE: 17
PIG: 19
DOG: 20
DUCK: 21
DRAGON: 22
STAFF: 23
BATS: 24
CONSOLE: 25
S... | 26.411067 | 111 | 0.590991 | 874 | 6,682 | 4.340961 | 0.2746 | 0.129151 | 0.061676 | 0.054823 | 0.45282 | 0.36136 | 0.355034 | 0.293622 | 0.207433 | 0.154454 | 0 | 0.024781 | 0.281353 | 6,682 | 252 | 112 | 26.515873 | 0.765306 | 0.01721 | 0 | 0.19797 | 0 | 0.005076 | 0.034309 | 0 | 0 | 0 | 0.002287 | 0 | 0 | 1 | 0.081218 | false | 0 | 0.005076 | 0.025381 | 0.563452 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c1a10ba9c62fe9cd961d62d136d02f7afe016cf | 866 | py | Python | lakegallery/api/serializers.py | TNRIS/lake-gallery | dcd4a34470515a2c1826b1c1741e9a8bc575b415 | [
"MIT"
] | 3 | 2018-03-10T16:40:04.000Z | 2021-03-21T02:24:24.000Z | lakegallery/api/serializers.py | TNRIS/lake-gallery | dcd4a34470515a2c1826b1c1741e9a8bc575b415 | [
"MIT"
] | 85 | 2017-10-03T15:31:46.000Z | 2022-03-11T23:15:16.000Z | lakegallery/api/serializers.py | TNRIS/lake-gallery | dcd4a34470515a2c1826b1c1741e9a8bc575b415 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User, Group
from rest_framework import serializers
from rest_framework_gis.serializers import GeoFeatureModelSerializer
from rest_framework.reverse import reverse
from map.models import MajorReservoirs
class ReservoirsSerializer(GeoFeatureModelSerializer):
class Meta:
... | 29.862069 | 69 | 0.709007 | 93 | 866 | 6.408602 | 0.494624 | 0.04698 | 0.08557 | 0.097315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214781 | 866 | 28 | 70 | 30.928571 | 0.876471 | 0 | 0 | 0.190476 | 0 | 0 | 0.070439 | 0.024249 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.238095 | 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 |
9c1a43aaadf3a12ce288511b1e18fb9adf7b23a4 | 491 | py | Python | web/core/migrations/0112_lotvalidationerror_tx.py | MTES-MCT/biocarburants | ff084916e18cdbdc41400f36fa6cc76a5e05900e | [
"MIT"
] | 4 | 2020-03-22T18:13:12.000Z | 2021-01-25T10:33:31.000Z | web/core/migrations/0112_lotvalidationerror_tx.py | MTES-MCT/carbure | 2876756b760ab4866fa783bb40e61a046eebb1ab | [
"MIT"
] | 20 | 2020-07-06T14:33:14.000Z | 2022-03-15T16:54:17.000Z | web/core/migrations/0112_lotvalidationerror_tx.py | MTES-MCT/biocarburants | ff084916e18cdbdc41400f36fa6cc76a5e05900e | [
"MIT"
] | 4 | 2020-04-03T12:19:12.000Z | 2021-06-15T12:20:57.000Z | # Generated by Django 3.0.7 on 2021-02-26 13:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0111_auto_20210226_0947'),
]
operations = [
migrations.AddField(
model_name='lotvalidat... | 24.55 | 119 | 0.647658 | 57 | 491 | 5.473684 | 0.701754 | 0.076923 | 0.089744 | 0.141026 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082447 | 0.234216 | 491 | 19 | 120 | 25.842105 | 0.74734 | 0.09165 | 0 | 0 | 1 | 0 | 0.148649 | 0.051802 | 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 |
9c211c6729326ede5ee80e3259d9678112140ecc | 2,144 | py | Python | parser_logic.py | avizmarlon/eml_email_parsing | 4ddbe0614f08ac857c46e4d56509e63eada91726 | [
"MIT"
] | null | null | null | parser_logic.py | avizmarlon/eml_email_parsing | 4ddbe0614f08ac857c46e4d56509e63eada91726 | [
"MIT"
] | null | null | null | parser_logic.py | avizmarlon/eml_email_parsing | 4ddbe0614f08ac857c46e4d56509e63eada91726 | [
"MIT"
] | null | null | null | import re
import os
from tkinter import *
from tkinter import Tk
from tkinter.filedialog import askdirectory
import time
# todo:
# make renaming temporary, file names go back to their original after the parsing computation is done
# or find a way to parse without needing to rename (probably using regex).
rootWindow =... | 28.586667 | 101 | 0.702425 | 322 | 2,144 | 4.586957 | 0.397516 | 0.027082 | 0.051456 | 0.020311 | 0.129993 | 0.101557 | 0.101557 | 0.063643 | 0.063643 | 0.063643 | 0 | 0.004522 | 0.174907 | 2,144 | 74 | 102 | 28.972973 | 0.830413 | 0.174907 | 0 | 0.125 | 0 | 0.017857 | 0.178977 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.107143 | 0.232143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9c21fa95bc0736e0ad04e33deb7437b774da5bb2 | 777 | py | Python | db/basic.py | dachenlian/weibospider | 4fe9e08efcca11573f485a2ddbad3b7bc422fa7c | [
"MIT"
] | 3,649 | 2017-10-22T12:08:22.000Z | 2022-03-27T06:29:28.000Z | db/basic.py | dachenlian/weibospider | 4fe9e08efcca11573f485a2ddbad3b7bc422fa7c | [
"MIT"
] | 146 | 2017-10-22T12:54:29.000Z | 2022-02-14T13:54:23.000Z | db/basic.py | dachenlian/weibospider | 4fe9e08efcca11573f485a2ddbad3b7bc422fa7c | [
"MIT"
] | 1,002 | 2017-10-25T03:44:17.000Z | 2022-03-24T08:49:59.000Z | import os
from sqlalchemy import (
create_engine, MetaData)
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from config import get_db_args
def get_engine():
args = get_db_args()
password = os.getenv('DB_PASS', args['password'])
connect_str = "{}+pymysq... | 27.75 | 111 | 0.648649 | 92 | 777 | 5.23913 | 0.423913 | 0.087137 | 0.037344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004839 | 0.202059 | 777 | 27 | 112 | 28.777778 | 0.772581 | 0 | 0 | 0 | 0 | 0 | 0.146718 | 0.055341 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.105263 | 0.263158 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9c2423791a5c33e81b692af2fd588b7d44c20e4b | 2,503 | py | Python | bitrue/exceptions.py | nerfherder1/python-bitrue-lab | 601ab7a9c116a05c15732d656a7cd8af046821fb | [
"MIT"
] | 8 | 2019-06-17T03:55:20.000Z | 2022-03-16T07:04:32.000Z | bitrue/exceptions.py | nerfherder1/python-bitrue-lab | 601ab7a9c116a05c15732d656a7cd8af046821fb | [
"MIT"
] | 7 | 2020-03-31T04:03:19.000Z | 2021-07-06T19:30:37.000Z | bitrue/exceptions.py | snub-fighter/python-bitrue-lab | 601ab7a9c116a05c15732d656a7cd8af046821fb | [
"MIT"
] | 4 | 2019-07-06T05:05:12.000Z | 2021-12-22T19:04:50.000Z | # coding=utf-8
class BitrueAPIException(Exception):
def __init__(self, response):
self.code = 0
try:
json_res = response.json()
except ValueError:
self.message = 'Invalid JSON error message from Bitrue: {}'.format(response.text)
else:
self.code ... | 29.797619 | 93 | 0.678386 | 251 | 2,503 | 6.458167 | 0.298805 | 0.074645 | 0.061073 | 0.09562 | 0.369525 | 0.262184 | 0.12955 | 0.037014 | 0 | 0 | 0 | 0.011311 | 0.222932 | 2,503 | 83 | 94 | 30.156627 | 0.822108 | 0.011586 | 0 | 0.264151 | 0 | 0 | 0.144071 | 0.031161 | 0 | 0 | 0 | 0 | 0 | 1 | 0.245283 | false | 0 | 0 | 0.075472 | 0.490566 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c28790e2b93f703d93df1f3c20f1922ec7822af | 3,002 | py | Python | src/pypyr/extra/poisson.py | joelphillips/pypyramid | be1b4760235d859755771e55c003396e02b72f91 | [
"BSD-3-Clause"
] | 1 | 2015-01-01T16:26:16.000Z | 2015-01-01T16:26:16.000Z | src/pypyr/extra/poisson.py | joelphillips/pypyramid | be1b4760235d859755771e55c003396e02b72f91 | [
"BSD-3-Clause"
] | null | null | null | src/pypyr/extra/poisson.py | joelphillips/pypyramid | be1b4760235d859755771e55c003396e02b72f91 | [
"BSD-3-Clause"
] | null | null | null | '''
Created on Oct 25, 2010
@author: joel
'''
import pypyr.functions as pf
import pypyr.utils as pu
import scipy.linalg as sl
import math
import pylab
import matplotlib.pyplot as mp
#import enthought.mayavi.mlab as emm
import numpy as np
def poisson(N, points):
''' Solves lap u = 1, on [0,1] with u=0 on boundar... | 30.632653 | 158 | 0.573618 | 483 | 3,002 | 3.538302 | 0.312629 | 0.078994 | 0.057929 | 0.04213 | 0.217671 | 0.177297 | 0.177297 | 0.152136 | 0.119368 | 0.08543 | 0 | 0.0565 | 0.215856 | 3,002 | 97 | 159 | 30.948454 | 0.669499 | 0.164224 | 0 | 0.033898 | 0 | 0 | 0.025528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.118644 | null | null | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9c29843a9d4c2c2fd643f2a001e67e2be131c5d5 | 332 | py | Python | setup.py | tmzint/pysnap | 41ba01e872ff83455ecfc601ef99b0f5a66e2493 | [
"MIT"
] | 1 | 2017-12-06T20:34:57.000Z | 2017-12-06T20:34:57.000Z | setup.py | tmzint/pysnap | 41ba01e872ff83455ecfc601ef99b0f5a66e2493 | [
"MIT"
] | null | null | null | setup.py | tmzint/pysnap | 41ba01e872ff83455ecfc601ef99b0f5a66e2493 | [
"MIT"
] | null | null | null | __author__ = 'timo merlin zint'
import sys
from setuptools import setup
# you may need setuptools instead of distutils
try:
import Xlib.display, gtk, getopt
except:
print ''
print 'pysnap requires python: xlib, gtk and getopt'
sys.exit(0)
setup(
# basic stuff here
scripts = [
'pysnap.... | 16.6 | 56 | 0.659639 | 43 | 332 | 5 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004065 | 0.259036 | 332 | 19 | 57 | 17.473684 | 0.869919 | 0.183735 | 0 | 0 | 0 | 0 | 0.257463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c2e246d91dd540e7003f35b31322fa094341747 | 4,967 | py | Python | tests/test_extensions/test_magiclink.py | pawamoy/pymdown-extensions | 90de4c0c52456751141e898af3941c729914a80e | [
"MIT"
] | null | null | null | tests/test_extensions/test_magiclink.py | pawamoy/pymdown-extensions | 90de4c0c52456751141e898af3941c729914a80e | [
"MIT"
] | null | null | null | tests/test_extensions/test_magiclink.py | pawamoy/pymdown-extensions | 90de4c0c52456751141e898af3941c729914a80e | [
"MIT"
] | null | null | null | """Test cases for MagicLink."""
from .. import util
class TestMagicLinkShortner(util.MdCase):
"""Test cases for repo link shortening."""
extension = [
'pymdownx.magiclink',
]
extension_configs = {
'pymdownx.magiclink': {
'repo_url_shortener': True
}
}
def... | 30.472393 | 275 | 0.593316 | 533 | 4,967 | 5.448405 | 0.123827 | 0.060606 | 0.077135 | 0.07438 | 0.774793 | 0.717287 | 0.685606 | 0.602273 | 0.551997 | 0.536157 | 0 | 0.017055 | 0.256292 | 4,967 | 162 | 276 | 30.660494 | 0.769085 | 0.127038 | 0 | 0.431373 | 0 | 0.098039 | 0.486085 | 0.08467 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.009804 | 0 | 0.245098 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c2eb9dcd7920d0e3d39f6f1c7fad23b324f7f0c | 4,504 | py | Python | music2.py | ydamirkol/music-player | 4d3e1f0de12edfa026236f51135bfbadcdef55ae | [
"MIT"
] | null | null | null | music2.py | ydamirkol/music-player | 4d3e1f0de12edfa026236f51135bfbadcdef55ae | [
"MIT"
] | null | null | null | music2.py | ydamirkol/music-player | 4d3e1f0de12edfa026236f51135bfbadcdef55ae | [
"MIT"
] | null | null | null | from tkinter import *
import pygame
from tkinter import filedialog
import time
from mutagen.mp3 import MP3
root = Tk()
root.title('Play Mode')
#felan directory khodeto mikhay bezar ta ye rahi vase gereftane directory barash peida konim
root.iconbitmap('D:\\computer\\cs@aut\\term2\\AP\\music player\\icons\... | 29.631579 | 107 | 0.736012 | 709 | 4,504 | 4.497884 | 0.218618 | 0.035121 | 0.050172 | 0.039511 | 0.483537 | 0.349326 | 0.326435 | 0.286297 | 0.286297 | 0.274694 | 0 | 0.020236 | 0.133215 | 4,504 | 152 | 108 | 29.631579 | 0.796619 | 0.073712 | 0 | 0.255319 | 0 | 0.010638 | 0.178554 | 0.120698 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053191 | 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 |
9c2f9ae2a4e74207e34b29b7af3d421d515cf07f | 13,391 | py | Python | netexec/oldcore.py | dogoncouch/netexec | 3a0d675dc65058e83aa215536363054a8b9b4286 | [
"MIT"
] | null | null | null | netexec/oldcore.py | dogoncouch/netexec | 3a0d675dc65058e83aa215536363054a8b9b4286 | [
"MIT"
] | null | null | null | netexec/oldcore.py | dogoncouch/netexec | 3a0d675dc65058e83aa215536363054a8b9b4286 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# MIT License
#
# Copyright (c) 2020 Dan Persons (dpersonsdev@gmail.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without lim... | 39.854167 | 80 | 0.511388 | 1,432 | 13,391 | 4.74162 | 0.236034 | 0.057732 | 0.02651 | 0.032548 | 0.27894 | 0.237261 | 0.221944 | 0.200147 | 0.198675 | 0.189249 | 0 | 0.004815 | 0.379583 | 13,391 | 335 | 81 | 39.973134 | 0.81247 | 0.183556 | 0 | 0.374449 | 0 | 0 | 0.163435 | 0.005355 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052863 | false | 0.061674 | 0.035242 | 0 | 0.092511 | 0.127753 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c31fbe9d0bb7fd146dab67ab540c3c5109bad8a | 909 | py | Python | smoke-test.py | jonathanpotter/thunderx-smoke | 4cb42256a81103a102bf6b33e2e127a519f9a65e | [
"Apache-2.0"
] | null | null | null | smoke-test.py | jonathanpotter/thunderx-smoke | 4cb42256a81103a102bf6b33e2e127a519f9a65e | [
"Apache-2.0"
] | null | null | null | smoke-test.py | jonathanpotter/thunderx-smoke | 4cb42256a81103a102bf6b33e2e127a519f9a65e | [
"Apache-2.0"
] | null | null | null | # From https://cs231n.github.io/python-numpy-tutorial/
#######################################################
# NumPy Array Math
import numpy as np
x = np.array([[1,2],[3,4]], dtype=np.float64)
y = np.array([[5,6],[7,8]], dtype=np.float64)
# Elementwise sum; both produce the array
# [[ 6.0 8.0]
# [10.0 12.0]]
pri... | 22.725 | 55 | 0.528053 | 139 | 909 | 3.453237 | 0.366906 | 0.033333 | 0.116667 | 0.158333 | 0.1375 | 0.108333 | 0 | 0 | 0 | 0 | 0 | 0.114973 | 0.177118 | 909 | 39 | 56 | 23.307692 | 0.526738 | 0.528053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
9c322c9630ae5b29b9d823477337e30dde84811e | 1,915 | py | Python | ravenframework/Models/Factory.py | dgarrett622/raven | f36cc108f7500b0e2717df4832b69b801b43960d | [
"Apache-2.0"
] | null | null | null | ravenframework/Models/Factory.py | dgarrett622/raven | f36cc108f7500b0e2717df4832b69b801b43960d | [
"Apache-2.0"
] | null | null | null | ravenframework/Models/Factory.py | dgarrett622/raven | f36cc108f7500b0e2717df4832b69b801b43960d | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Battelle Energy Alliance, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | 36.826923 | 115 | 0.753003 | 251 | 1,915 | 5.74502 | 0.50996 | 0.041609 | 0.018031 | 0.022191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00506 | 0.174413 | 1,915 | 51 | 116 | 37.54902 | 0.907021 | 0.480418 | 0 | 0 | 0 | 0 | 0.055085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.5 | 0 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c372df2802b8215ae8d134fead39910c7925d66 | 6,392 | py | Python | Algorithms/Reviews-Polarity-Inference/knnReviewClassification.py | MWTA/Text-Mining | d64250ed9f7d8f999bb925ec01c041062b1f4145 | [
"MIT"
] | null | null | null | Algorithms/Reviews-Polarity-Inference/knnReviewClassification.py | MWTA/Text-Mining | d64250ed9f7d8f999bb925ec01c041062b1f4145 | [
"MIT"
] | null | null | null | Algorithms/Reviews-Polarity-Inference/knnReviewClassification.py | MWTA/Text-Mining | d64250ed9f7d8f999bb925ec01c041062b1f4145 | [
"MIT"
] | null | null | null | from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.feature_extraction.text import CountVectorizer
from nltk.corpus import stopwords
from scipy import spatial
import re
import random
import operator
import itertools
import numpy as np
i... | 40.201258 | 143 | 0.705726 | 890 | 6,392 | 5.037079 | 0.339326 | 0.022306 | 0.01673 | 0.017845 | 0.174437 | 0.154807 | 0.120009 | 0.120009 | 0.120009 | 0.120009 | 0 | 0.008709 | 0.209637 | 6,392 | 158 | 144 | 40.455696 | 0.878662 | 0.409887 | 0 | 0.22 | 0 | 0 | 0.085669 | 0.019482 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.11 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9c41287d3a25253ff7a4998f103106b1088e0260 | 9,413 | py | Python | cpa/profiling/lsf.py | oba14/CellProfiler-Analyst | 7e194e72e8ce8440ce7c16196cb91c50052c2df1 | [
"MIT"
] | 1 | 2020-01-16T14:24:08.000Z | 2020-01-16T14:24:08.000Z | cpa/profiling/lsf.py | oba14/CellProfiler-Analyst | 7e194e72e8ce8440ce7c16196cb91c50052c2df1 | [
"MIT"
] | null | null | null | cpa/profiling/lsf.py | oba14/CellProfiler-Analyst | 7e194e72e8ce8440ce7c16196cb91c50052c2df1 | [
"MIT"
] | null | null | null | from __future__ import print_function
import types
import errno
import re
import random
import sys
import time
import pickle
import marshal
import os
import tempfile
import progressbar
import traceback
class LSF(object):
def __init__(self, njobs, directory=None, memory=None, job_array_name = 'CPA'):
self.n... | 38.264228 | 104 | 0.528949 | 1,097 | 9,413 | 4.397448 | 0.196901 | 0.042289 | 0.029022 | 0.04063 | 0.331468 | 0.242123 | 0.195896 | 0.156716 | 0.114428 | 0.08665 | 0 | 0.0053 | 0.358547 | 9,413 | 245 | 105 | 38.420408 | 0.79364 | 0.030171 | 0 | 0.248826 | 0 | 0 | 0.054508 | 0.002303 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065728 | null | null | 0.046948 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9c4756f16f8e4a5a717fd526a07c426fb69e5ec5 | 14,923 | py | Python | exptool/io/outcoef.py | MSPetersen/exptool | 5cede3fe39fff1281d8595ed7a799d2952b01802 | [
"BSD-3-Clause"
] | null | null | null | exptool/io/outcoef.py | MSPetersen/exptool | 5cede3fe39fff1281d8595ed7a799d2952b01802 | [
"BSD-3-Clause"
] | 15 | 2017-10-29T20:56:45.000Z | 2022-01-16T21:23:52.000Z | exptool/io/outcoef.py | MSPetersen/exptool | 5cede3fe39fff1281d8595ed7a799d2952b01802 | [
"BSD-3-Clause"
] | null | null | null | '''
outcoef.py
(broken out of exptool)
tools to read coefficient files and do rudimentary manipulation.
30 Apr 2020 first written
25 Aug 2021 revised for yaml headers
TODO:
-make a 'best guess' at number of outputs in yaml versions before allocating huge memory space
-add interpretive support (started)
'''
impor... | 27.998124 | 125 | 0.535214 | 1,910 | 14,923 | 4.126702 | 0.163351 | 0.03933 | 0.043263 | 0.062928 | 0.73116 | 0.7068 | 0.660873 | 0.64032 | 0.623192 | 0.599087 | 0 | 0.029195 | 0.336662 | 14,923 | 532 | 126 | 28.050752 | 0.767047 | 0.354486 | 0 | 0.551136 | 0 | 0 | 0.050294 | 0 | 0 | 0 | 0 | 0.00188 | 0 | 1 | 0.0625 | false | 0 | 0.028409 | 0.011364 | 0.113636 | 0.028409 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c4df91f22e0b89ed8ebd390b121a34507c8da73 | 16,276 | py | Python | intersight/models/storage_enclosure_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 21 | 2018-03-29T14:20:35.000Z | 2021-10-13T05:11:41.000Z | intersight/models/storage_enclosure_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 14 | 2018-01-30T15:45:46.000Z | 2022-02-23T14:23:21.000Z | intersight/models/storage_enclosure_all_of.py | sdnit-se/intersight-python | 551f7685c0f76bb8af60ec83ffb6f9672d49a4ae | [
"Apache-2.0"
] | 18 | 2018-01-03T15:09:56.000Z | 2021-07-16T02:21:54.000Z | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | 34.121593 | 1,052 | 0.649115 | 1,787 | 16,276 | 5.724678 | 0.130386 | 0.032845 | 0.147801 | 0.127273 | 0.547214 | 0.428935 | 0.394819 | 0.323754 | 0.192375 | 0.126784 | 0 | 0.014291 | 0.27771 | 16,276 | 476 | 1,053 | 34.193277 | 0.855903 | 0.433276 | 0 | 0.102804 | 0 | 0 | 0.088338 | 0.013263 | 0 | 0 | 0 | 0 | 0 | 1 | 0.158879 | false | 0 | 0.018692 | 0 | 0.28972 | 0.009346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c4e0ef7f4e3d852b8df4dc334b3ee00d922e60c | 6,783 | py | Python | RecoTracker/MkFit/python/customizeInitialStepOnly.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | RecoTracker/MkFit/python/customizeInitialStepOnly.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | RecoTracker/MkFit/python/customizeInitialStepOnly.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | import FWCore.ParameterSet.Config as cms
def removePath(process, pname):
if hasattr(process, pname):
process.schedule.remove(getattr(process, pname))
delattr(process, pname)
def customizeInitialStepOnly(process):
# Customize reconstruction
process.trackerClusterCheck.PixelClusterCollection... | 45.52349 | 123 | 0.756892 | 422 | 6,783 | 12.132701 | 0.402844 | 0.030469 | 0.039648 | 0.049219 | 0.096094 | 0.057813 | 0.057813 | 0.057813 | 0 | 0 | 0 | 0.004267 | 0.170721 | 6,783 | 148 | 124 | 45.831081 | 0.905956 | 0.034645 | 0 | 0.101695 | 0 | 0 | 0.199021 | 0.165672 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.008475 | 0 | 0.059322 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c53255fe8f0bda4793d9becabbbc6a6a72ed536 | 3,417 | py | Python | src/pilot/command_helper.py | calsoft-internal/JetPack | cf7eaeefb9ad1010b484ae84cfa1803fe5419067 | [
"Apache-2.0"
] | 1 | 2020-07-16T10:03:56.000Z | 2020-07-16T10:03:56.000Z | src/pilot/command_helper.py | calsoft-internal/JetPack | cf7eaeefb9ad1010b484ae84cfa1803fe5419067 | [
"Apache-2.0"
] | 4 | 2018-08-23T15:02:59.000Z | 2018-10-11T07:58:33.000Z | src/pilot/command_helper.py | digambar15/JetPack | 808d4a84076a3700b0ba9f07c512e99e81c5c9eb | [
"Apache-2.0"
] | 1 | 2020-04-13T10:19:07.000Z | 2020-04-13T10:19:07.000Z | #!/usr/bin/env python
# Copyright (c) 2016-2020 Dell Inc. or its subsidiaries.
#
# 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 r... | 35.59375 | 79 | 0.605209 | 379 | 3,417 | 5.361478 | 0.372032 | 0.043307 | 0.031496 | 0.03937 | 0.218012 | 0.192421 | 0.164862 | 0.164862 | 0.144685 | 0.144685 | 0 | 0.005334 | 0.286801 | 3,417 | 95 | 80 | 35.968421 | 0.828478 | 0.174715 | 0 | 0.292308 | 0 | 0 | 0.07484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.123077 | 0.046154 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c55f4e3483738eb3f9083673263033cecdb3282 | 1,669 | py | Python | main/admin.py | ashryaagr/SMS19 | 03148e03165e06e97196ed8221c19151a68db9ea | [
"MIT"
] | 1 | 2019-06-16T01:56:41.000Z | 2019-06-16T01:56:41.000Z | main/admin.py | ashryaagr/SMS19 | 03148e03165e06e97196ed8221c19151a68db9ea | [
"MIT"
] | 16 | 2019-03-01T20:25:40.000Z | 2022-02-10T11:15:37.000Z | main/admin.py | ashryaagr/SMS19 | 03148e03165e06e97196ed8221c19151a68db9ea | [
"MIT"
] | 11 | 2019-02-24T14:31:53.000Z | 2021-03-19T21:01:00.000Z | from django.contrib import admin
from main.models import Stock, Transaction, UserProfile, NewsPost, StockPurchased, Market
class TransactionAdmin(admin.ModelAdmin):
list_display = ('uid', 'owner', 'stock', 'units',
'cost', 'type', 'date_time',)
search_fields = ('owner__user__username',
... | 35.510638 | 112 | 0.698023 | 181 | 1,669 | 6.110497 | 0.325967 | 0.081374 | 0.103074 | 0.141049 | 0.240506 | 0.164557 | 0.103074 | 0.103074 | 0.103074 | 0.103074 | 0 | 0 | 0.165968 | 1,669 | 46 | 113 | 36.282609 | 0.79454 | 0 | 0 | 0.064516 | 0 | 0 | 0.250449 | 0.053925 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.064516 | 0.032258 | 0.645161 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c563692346c793a3761d9c3c288b84762838c31 | 365 | py | Python | src/graph_transpiler/webdnn/operator_shader_webgpu.py | milhidaka/webdnn2-tmp | 99780bcd67984e1865744d55036a67ea21bad85c | [
"MIT"
] | 1,967 | 2017-05-28T08:18:37.000Z | 2022-03-15T18:10:57.000Z | src/graph_transpiler/webdnn/operator_shader_webgpu.py | milhidaka/webdnn2-tmp | 99780bcd67984e1865744d55036a67ea21bad85c | [
"MIT"
] | 315 | 2017-05-28T05:34:34.000Z | 2022-01-13T03:19:35.000Z | src/graph_transpiler/webdnn/operator_shader_webgpu.py | milhidaka/webdnn2-tmp | 99780bcd67984e1865744d55036a67ea21bad85c | [
"MIT"
] | 175 | 2017-05-31T08:10:00.000Z | 2021-10-15T05:22:12.000Z | from webdnn.operator_shader import OperatorShader
class OperatorShaderWebGPU(OperatorShader):
ts_code: str
shader_name: str
glsl_code: str
def __init__(self, ts_code: str, shader_name: str, glsl_code: str) -> None:
super().__init__()
self.ts_code = ts_code
self.glsl_code = glsl... | 28.076923 | 79 | 0.69589 | 48 | 365 | 4.854167 | 0.375 | 0.103004 | 0.077253 | 0.128755 | 0.283262 | 0.283262 | 0.283262 | 0.283262 | 0.283262 | 0 | 0 | 0 | 0.224658 | 365 | 12 | 80 | 30.416667 | 0.823322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c578c27809fd1ad83d9a08f84be6a395781c27e | 1,823 | py | Python | cactus/tests/integration/s3/bucket.py | jacobmarshall-etc/Cactus | 398ed4a1f57d0aa84fe3b297d7d27d0703683637 | [
"BSD-3-Clause"
] | 2 | 2016-07-07T17:43:33.000Z | 2017-09-11T00:33:19.000Z | cactus/tests/integration/s3/bucket.py | jacobmarshall-etc/Cactus | 398ed4a1f57d0aa84fe3b297d7d27d0703683637 | [
"BSD-3-Clause"
] | null | null | null | cactus/tests/integration/s3/bucket.py | jacobmarshall-etc/Cactus | 398ed4a1f57d0aa84fe3b297d7d27d0703683637 | [
"BSD-3-Clause"
] | null | null | null | #coding:utf-8
from cactus.tests.integration.s3 import S3IntegrationTestCase
class BucketTestCase(S3IntegrationTestCase):
def test_create_bucket(self):
"""
Test that we properly create a bucket in AWS
"""
self.site.deployment_engine.bucket_name = "new"
bucket = self.site.dep... | 35.057692 | 76 | 0.655513 | 211 | 1,823 | 5.545024 | 0.274882 | 0.192308 | 0.107692 | 0.148718 | 0.437607 | 0.299145 | 0.299145 | 0.299145 | 0.299145 | 0.222222 | 0 | 0.007102 | 0.227647 | 1,823 | 51 | 77 | 35.745098 | 0.823864 | 0.088865 | 0 | 0.266667 | 0 | 0 | 0.045255 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.1 | false | 0 | 0.033333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c57cf1453fba1a2ef04d07de3dd9883d6733b9d | 689 | py | Python | SSR/monopoly/urls.py | gaoyi-ai/monopoly | 2cafe723c24b2048921ff1108e718b997c9beab8 | [
"MIT"
] | null | null | null | SSR/monopoly/urls.py | gaoyi-ai/monopoly | 2cafe723c24b2048921ff1108e718b997c9beab8 | [
"MIT"
] | null | null | null | SSR/monopoly/urls.py | gaoyi-ai/monopoly | 2cafe723c24b2048921ff1108e718b997c9beab8 | [
"MIT"
] | null | null | null | from django.contrib.auth import views as auth_views
from django.contrib.auth.decorators import login_required
from django.urls import path
from .views import *
urlpatterns = [
path('', login_required(JoinView.as_view()), name="join"),
path('join/<str:host_name>/', login_required(JoinView.as_view()), name="joi... | 40.529412 | 91 | 0.709724 | 92 | 689 | 5.130435 | 0.315217 | 0.076271 | 0.127119 | 0.088983 | 0.239407 | 0.165254 | 0.165254 | 0.165254 | 0 | 0 | 0 | 0 | 0.107402 | 689 | 16 | 92 | 43.0625 | 0.76748 | 0 | 0 | 0 | 0 | 0 | 0.181422 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9c5edf7e1413fac88459a4a1f0a892c92cc76fa8 | 4,381 | py | Python | src/cipher/encryptingstorage/encrypt_util.py | zopefoundation/cipher.encryptingstorage | 7f557a4ab3bdea225bae04f347a7af74ae265228 | [
"ZPL-2.1"
] | 3 | 2015-02-23T16:06:07.000Z | 2018-03-12T20:32:31.000Z | src/cipher/encryptingstorage/encrypt_util.py | zopefoundation/cipher.encryptingstorage | 7f557a4ab3bdea225bae04f347a7af74ae265228 | [
"ZPL-2.1"
] | 8 | 2016-02-02T09:42:45.000Z | 2021-09-27T10:59:04.000Z | src/cipher/encryptingstorage/encrypt_util.py | zopefoundation/cipher.encryptingstorage | 7f557a4ab3bdea225bae04f347a7af74ae265228 | [
"ZPL-2.1"
] | 4 | 2015-04-03T04:30:54.000Z | 2020-07-08T05:32:27.000Z | ##############################################################################
#
# Copyright (c) Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE... | 29.601351 | 79 | 0.640265 | 482 | 4,381 | 5.740664 | 0.325726 | 0.031803 | 0.025298 | 0.02313 | 0.238525 | 0.151066 | 0.119263 | 0.119263 | 0.028189 | 0 | 0 | 0.002677 | 0.232595 | 4,381 | 147 | 80 | 29.802721 | 0.820345 | 0.21228 | 0 | 0.308642 | 0 | 0 | 0.078468 | 0.0519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.123457 | 0.074074 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c652af0072b0b449f36a8634bd46bd17b118e47 | 3,028 | py | Python | office365/runtime/client_object.py | takatsugu-kato/Office365-REST-Python-Client | 143e21bbb891b712005d62c905cdd3d6649f3097 | [
"MIT"
] | null | null | null | office365/runtime/client_object.py | takatsugu-kato/Office365-REST-Python-Client | 143e21bbb891b712005d62c905cdd3d6649f3097 | [
"MIT"
] | null | null | null | office365/runtime/client_object.py | takatsugu-kato/Office365-REST-Python-Client | 143e21bbb891b712005d62c905cdd3d6649f3097 | [
"MIT"
] | null | null | null | class ClientObject(object):
"""Base client object"""
def __init__(self, context, resource_path=None, properties=None):
self._properties = {}
self._metadata = {}
if properties is not None:
for k, v in properties.items():
self.set_property(k, v, True)
s... | 30.897959 | 110 | 0.624835 | 342 | 3,028 | 5.25731 | 0.22807 | 0.072303 | 0.058398 | 0.050056 | 0.066185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280053 | 3,028 | 97 | 111 | 31.216495 | 0.824771 | 0.062417 | 0 | 0.175676 | 0 | 0 | 0.019908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243243 | false | 0 | 0 | 0.094595 | 0.472973 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c67b67cd3ecbe35c9f2a77a25e02a368e3c974c | 3,332 | py | Python | fcn.py | atharvamh/Road-Segmentation-from-Aerial-Images | 6bd86f124a69d8222e35b1198437c1d7a8f9a739 | [
"MIT"
] | null | null | null | fcn.py | atharvamh/Road-Segmentation-from-Aerial-Images | 6bd86f124a69d8222e35b1198437c1d7a8f9a739 | [
"MIT"
] | null | null | null | fcn.py | atharvamh/Road-Segmentation-from-Aerial-Images | 6bd86f124a69d8222e35b1198437c1d7a8f9a739 | [
"MIT"
] | 1 | 2020-07-12T14:47:45.000Z | 2020-07-12T14:47:45.000Z | from keras.models import Model,load_model
import tensorflow as tf
from keras.layers.core import Dropout
from keras.layers import Input,BatchNormalization,Cropping2D,Add,add
from keras.layers.convolutional import Conv2D,UpSampling2D,Conv2DTranspose
from keras.layers.pooling import MaxPooling2D
from keras.layers.merge im... | 43.842105 | 124 | 0.738595 | 496 | 3,332 | 4.889113 | 0.177419 | 0.085361 | 0.155876 | 0.164948 | 0.590928 | 0.566598 | 0.532371 | 0.532371 | 0.532371 | 0.49567 | 0 | 0.072075 | 0.071429 | 3,332 | 75 | 125 | 44.426667 | 0.7117 | 0 | 0 | 0.307692 | 0 | 0 | 0.064226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.211538 | 0 | 0.288462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c71bb397c714c2a8f1ba049708ca20dbc263f04 | 2,006 | py | Python | finalproject/convert.py | ZYM-PKU/Raspberry-3B | bca939a71575d7298d09a8f56cd697ddf63f34d5 | [
"MIT"
] | null | null | null | finalproject/convert.py | ZYM-PKU/Raspberry-3B | bca939a71575d7298d09a8f56cd697ddf63f34d5 | [
"MIT"
] | null | null | null | finalproject/convert.py | ZYM-PKU/Raspberry-3B | bca939a71575d7298d09a8f56cd697ddf63f34d5 | [
"MIT"
] | null | null | null | import os
import cv2
import glob
import torch
import argparse
import numpy as np
import torchvision.transforms as transforms
from net import vgg,FPnet,Decoder,testdecoder
from PIL import Image, ImageFile
from function import coral,change_color
from torchvision.utils import save_image
parser = argparse.ArgumentParser(... | 27.861111 | 86 | 0.724826 | 255 | 2,006 | 5.552941 | 0.403922 | 0.036723 | 0.036723 | 0.050847 | 0.222458 | 0.222458 | 0.173729 | 0.173729 | 0.144068 | 0.070621 | 0 | 0.012274 | 0.147059 | 2,006 | 71 | 87 | 28.253521 | 0.815313 | 0.324028 | 0 | 0 | 0 | 0 | 0.101351 | 0.018018 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.323529 | 0 | 0.441176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c769f9489afb5bf281bf5a03c2483d027e2dd16 | 1,443 | py | Python | API_FLASK/model/employees.py | ozeiasgodoy/api_flask_ssys | 36c5fe90495e49a27f56a197bc4ad1f61d30b521 | [
"MIT"
] | null | null | null | API_FLASK/model/employees.py | ozeiasgodoy/api_flask_ssys | 36c5fe90495e49a27f56a197bc4ad1f61d30b521 | [
"MIT"
] | null | null | null | API_FLASK/model/employees.py | ozeiasgodoy/api_flask_ssys | 36c5fe90495e49a27f56a197bc4ad1f61d30b521 | [
"MIT"
] | null | null | null | from datetime import datetime
from data import alchemy
class Employee(alchemy.Model):
__tablename__ = 'employee'
id = alchemy.Column(alchemy.Integer, primary_key = True)
name = alchemy.Column(alchemy.String(80))
email = alchemy.Column(alchemy.String(80))
department = alchemy.Column(alchemy.String(... | 29.44898 | 68 | 0.61885 | 176 | 1,443 | 4.931818 | 0.301136 | 0.089862 | 0.138249 | 0.089862 | 0.147465 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009294 | 0.254331 | 1,443 | 48 | 69 | 30.0625 | 0.797398 | 0 | 0 | 0.131579 | 0 | 0 | 0.042302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0 | 0.052632 | 0.078947 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c78fc5ec09df8c4a51851906b637e1e8133199e | 4,657 | py | Python | gino/json_support.py | jekel/gino | 5ef344e749018d06bfc3afe8d593f1535fad8e84 | [
"BSD-3-Clause"
] | null | null | null | gino/json_support.py | jekel/gino | 5ef344e749018d06bfc3afe8d593f1535fad8e84 | [
"BSD-3-Clause"
] | null | null | null | gino/json_support.py | jekel/gino | 5ef344e749018d06bfc3afe8d593f1535fad8e84 | [
"BSD-3-Clause"
] | null | null | null | from datetime import datetime
import sqlalchemy as sa
DATETIME_FORMAT = '%Y-%m-%dT%H:%M:%S.%f'
NONE = object()
class Hook:
def __init__(self, parent):
self.parent = parent
self.method = None
def __call__(self, method):
self.method = method
return self.parent
def call(se... | 26.764368 | 70 | 0.591797 | 556 | 4,657 | 4.771583 | 0.149281 | 0.044101 | 0.049755 | 0.040709 | 0.382963 | 0.364116 | 0.356201 | 0.267245 | 0.267245 | 0.25179 | 0 | 0 | 0.312862 | 4,657 | 173 | 71 | 26.919075 | 0.829063 | 0 | 0 | 0.390977 | 0 | 0 | 0.027056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.015038 | 0.06015 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c7a620773ff8304c683638c5d4bb651a42c8166 | 314 | py | Python | Task/Pascals-triangle/Python/pascals-triangle-2.py | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 5 | 2021-01-29T20:08:05.000Z | 2022-03-22T06:16:05.000Z | Task/Pascals-triangle/Python/pascals-triangle-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Pascals-triangle/Python/pascals-triangle-2.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2021-04-13T04:19:31.000Z | 2021-04-13T04:19:31.000Z | def scan(op, seq, it):
a = []
result = it
a.append(it)
for x in seq:
result = op(result, x)
a.append(result)
return a
def pascal(n):
def nextrow(row, x):
return [l+r for l,r in zip(row+[0,],[0,]+row)]
return scan(nextrow, range(n-1), [1,])
for row in pascal(4):
print(row)
| 17.444444 | 54 | 0.55414 | 57 | 314 | 3.052632 | 0.421053 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021645 | 0.264331 | 314 | 17 | 55 | 18.470588 | 0.731602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0.071429 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c7adc720fe15cdb43aa822e243f97090ffd5570 | 3,632 | py | Python | ros/src/twist_controller/twist_controller.py | GabrielDiodato/P11---Programming-a-Real-Self-Driving-Car | 00f4bc6a7d9c169a37703542a78166f8b1c857fa | [
"Apache-2.0"
] | 5 | 2018-11-13T17:11:05.000Z | 2021-11-04T23:27:08.000Z | ros/src/twist_controller/twist_controller.py | GabrielDiodato/P11---Programming-a-Real-Self-Driving-Car | 00f4bc6a7d9c169a37703542a78166f8b1c857fa | [
"Apache-2.0"
] | 5 | 2020-09-26T01:26:28.000Z | 2022-03-12T00:45:40.000Z | ros/src/twist_controller/twist_controller.py | GabrielDiodato/P11---Programming-a-Real-Self-Driving-Car | 00f4bc6a7d9c169a37703542a78166f8b1c857fa | [
"Apache-2.0"
] | 3 | 2019-01-06T15:35:33.000Z | 2021-03-11T23:02:27.000Z | import rospy
from pid import PID
from yaw_controller import YawController
from lowpass import LowPassFilter
GAS_DENSITY = 2.858
ONE_MPH = 0.44704
THROTTLE_KP = 0.3
THROTTLE_KI = 0.1
THROTTLE_KD = 0.005
THROTTLE_TAU = 0.5 # cut-off freq = 1/(2*pi*tau)
THROTTLE_TS = 0.2 # sample time (1/RATE)
class Controller(obje... | 33.321101 | 92 | 0.751377 | 507 | 3,632 | 5.128205 | 0.270217 | 0.069231 | 0.069231 | 0.019615 | 0.13 | 0.048846 | 0 | 0 | 0 | 0 | 0 | 0.015956 | 0.15446 | 3,632 | 108 | 93 | 33.62963 | 0.830674 | 0.250826 | 0 | 0.03125 | 0 | 0 | 0.133186 | 0.051508 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.0625 | 0.0625 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
92c075f185f0644693c7762f666a6582901c601a | 650 | py | Python | katas/kyu_4/strings_mix.py | the-zebulan/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 40 | 2016-03-09T12:26:20.000Z | 2022-03-23T08:44:51.000Z | katas/kyu_4/strings_mix.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | null | null | null | katas/kyu_4/strings_mix.py | akalynych/CodeWars | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | [
"MIT"
] | 36 | 2016-11-07T19:59:58.000Z | 2022-03-31T11:18:27.000Z | from collections import Counter
def mix(s1, s2):
d = {}
result = []
for i, string in enumerate((s1, s2), 1):
for k, v in Counter(string).iteritems():
if k.islower() and v > 1:
try:
value = d[k][0]
if v > value:
... | 30.952381 | 79 | 0.390769 | 85 | 650 | 2.988235 | 0.447059 | 0.055118 | 0.082677 | 0.062992 | 0.070866 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02514 | 0.449231 | 650 | 20 | 80 | 32.5 | 0.684358 | 0 | 0 | 0.111111 | 0 | 0 | 0.010769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | 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 |
92c08275edf958e85654d448f4cd615f60d73fa1 | 6,484 | py | Python | csdn_blog_migrater/csdn.py | davendw49/LifeScript | b0f91399fee5873a3d320253b0a7f92a3a189602 | [
"MIT"
] | 2 | 2020-05-10T09:15:47.000Z | 2021-09-24T12:35:30.000Z | csdn_blog_migrater/csdn.py | davendw49/LifeScript | b0f91399fee5873a3d320253b0a7f92a3a189602 | [
"MIT"
] | 2 | 2021-03-31T19:43:48.000Z | 2021-12-13T20:40:07.000Z | csdn_blog_migrater/csdn.py | davendw49/LifeScript | b0f91399fee5873a3d320253b0a7f92a3a189602 | [
"MIT"
] | null | null | null | import json
import uuid
import time
import requests
import datetime
from bs4 import BeautifulSoup
from lxml import etree
import re
import argparse
def request_get(url):
'''
get the request's response
para: url
warn: you need to change the headers data
'''
headers = {'User-Agent': 'User-Agent: M... | 44.108844 | 1,074 | 0.609655 | 823 | 6,484 | 4.646416 | 0.363305 | 0.01569 | 0.009414 | 0.018828 | 0.092312 | 0.041318 | 0.029812 | 0.015167 | 0 | 0 | 0 | 0.108799 | 0.251542 | 6,484 | 147 | 1,075 | 44.108844 | 0.679168 | 0.079581 | 0 | 0.085714 | 0 | 0.028571 | 0.347177 | 0.191803 | 0.019048 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.085714 | 0 | 0.190476 | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92c1187322cb1c19a6a66722cd45bdd58a408d01 | 980 | gyp | Python | src/datasync/datasync.gyp | izaman/tizen-extensions-crosswalk | e1373788f4e4e271e39b0fee66c26210e40dd86f | [
"Apache-2.0",
"BSD-3-Clause"
] | 10 | 2015-01-16T16:14:35.000Z | 2018-12-25T16:01:43.000Z | src/datasync/datasync.gyp | liyingzh/tizen-extensions-crosswalk | 5957945effafff02a507c35a4b7b4d5ee6ca14c1 | [
"Apache-2.0",
"BSD-3-Clause"
] | 35 | 2015-01-04T02:11:22.000Z | 2015-09-22T08:43:45.000Z | src/datasync/datasync.gyp | liyingzh/tizen-extensions-crosswalk | 5957945effafff02a507c35a4b7b4d5ee6ca14c1 | [
"Apache-2.0",
"BSD-3-Clause"
] | 14 | 2015-02-03T04:38:19.000Z | 2022-01-20T10:38:01.000Z | {
'includes':[
'../common/common.gypi',
],
'targets': [
{
'target_name': 'tizen_datasync',
'type': 'loadable_module',
'variables': {
'packages': [
'sync-agent',
],
},
'dependencies': [
'../tizen/tizen.gyp:tizen',
],
'includes': [
... | 22.272727 | 38 | 0.5 | 89 | 980 | 5.202247 | 0.404494 | 0.116631 | 0.064795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.331633 | 980 | 43 | 39 | 22.790698 | 0.70687 | 0 | 0 | 0.186047 | 0 | 0 | 0.537755 | 0.139796 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92c2b4ead3d567d71acf60e7033f5f3dcd219bf7 | 5,261 | py | Python | src/schoology-extractor/tests/api/test_paginated_result.py | stephenfuqua/Ed-Fi-X-Fizz | 94597eda585d4f62f69c12e2a58fa8e8846db11b | [
"Apache-2.0"
] | 3 | 2021-06-10T16:27:18.000Z | 2022-01-25T18:41:35.000Z | src/schoology-extractor/tests/api/test_paginated_result.py | stephenfuqua/Ed-Fi-X-Fizz | 94597eda585d4f62f69c12e2a58fa8e8846db11b | [
"Apache-2.0"
] | 40 | 2020-08-17T21:08:33.000Z | 2021-02-02T19:56:09.000Z | src/schoology-extractor/tests/api/test_paginated_result.py | stephenfuqua/Ed-Fi-X-Fizz | 94597eda585d4f62f69c12e2a58fa8e8846db11b | [
"Apache-2.0"
] | 10 | 2021-06-10T16:27:27.000Z | 2021-12-27T12:31:57.000Z | # SPDX-License-Identifier: Apache-2.0
# Licensed to the Ed-Fi Alliance under one or more agreements.
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
# See the LICENSE and NOTICES files in the project root for more information.
from unittest.mock import Mock
import pytest
from edf... | 33.297468 | 85 | 0.656719 | 596 | 5,261 | 5.365772 | 0.204698 | 0.164165 | 0.165103 | 0.052533 | 0.537836 | 0.446216 | 0.393996 | 0.32364 | 0.247029 | 0.235147 | 0 | 0.008866 | 0.271051 | 5,261 | 157 | 86 | 33.509554 | 0.825033 | 0.067858 | 0 | 0.298969 | 0 | 0 | 0.039533 | 0 | 0 | 0 | 0 | 0 | 0.134021 | 1 | 0.247423 | false | 0 | 0.041237 | 0.010309 | 0.329897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
92cb4451ed9391e1ea1d86d707e360135d03a24e | 2,094 | py | Python | examples/adspygoogle/dfa/v1_19/get_subnetworks.py | cherry-wb/googleads-python-lib | 24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04 | [
"Apache-2.0"
] | null | null | null | examples/adspygoogle/dfa/v1_19/get_subnetworks.py | cherry-wb/googleads-python-lib | 24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04 | [
"Apache-2.0"
] | null | null | null | examples/adspygoogle/dfa/v1_19/get_subnetworks.py | cherry-wb/googleads-python-lib | 24a1ecb7c1cca5af3624a3b03ebaa7f5147b4a04 | [
"Apache-2.0"
] | 2 | 2020-04-02T19:00:31.000Z | 2020-08-06T03:28:38.000Z | #!/usr/bin/python
#
# Copyright 2012 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 b... | 32.71875 | 80 | 0.710602 | 272 | 2,094 | 5.397059 | 0.536765 | 0.040872 | 0.049046 | 0.021798 | 0.046322 | 0.046322 | 0 | 0 | 0 | 0 | 0 | 0.009884 | 0.178606 | 2,094 | 63 | 81 | 33.238095 | 0.843605 | 0.380611 | 0 | 0 | 0 | 0 | 0.271834 | 0.024017 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | 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 |
92cc95c024b1c7da7976453a7d66c58195d85b80 | 1,348 | py | Python | tests/cases/coverage.py | nsauzede/py2many | 7a4c8d0bd200c287281fc397bedafd755a44fa64 | [
"MIT"
] | 2 | 2021-05-13T11:44:33.000Z | 2021-05-14T00:37:26.000Z | tests/cases/coverage.py | laszlo-kiss/py2many | 34569bc57f844ad4d68b7b9cf09316fbb71ccd88 | [
"MIT"
] | null | null | null | tests/cases/coverage.py | laszlo-kiss/py2many | 34569bc57f844ad4d68b7b9cf09316fbb71ccd88 | [
"MIT"
] | null | null | null | from typing import List
def do_pass():
pass
def inline_pass(): pass
def indexing():
sum = 0
a: List[int] = []
for i in range(10):
a.append(i)
sum += a[i]
return sum
def infer_bool(code: int):
return code in [1, 2, 4]
def show():
# assign
a1 = 10
#b1 = b2 = 1... | 16.439024 | 40 | 0.462166 | 204 | 1,348 | 2.990196 | 0.372549 | 0.016393 | 0.039344 | 0.072131 | 0.083607 | 0.083607 | 0 | 0 | 0 | 0 | 0 | 0.090476 | 0.376855 | 1,348 | 81 | 41 | 16.641975 | 0.635714 | 0.158754 | 0 | 0.074074 | 0 | 0 | 0.048301 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 1 | 0.092593 | false | 0.092593 | 0.018519 | 0.018519 | 0.148148 | 0.277778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
92d1de3db3f0eac153708eda8d9a282adefedd7f | 541 | py | Python | main.py | jcentauri/WatchTogether | 56ce93c9d1bfe1066817efb8cd9ecc1bd95d468e | [
"MIT"
] | null | null | null | main.py | jcentauri/WatchTogether | 56ce93c9d1bfe1066817efb8cd9ecc1bd95d468e | [
"MIT"
] | null | null | null | main.py | jcentauri/WatchTogether | 56ce93c9d1bfe1066817efb8cd9ecc1bd95d468e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import eventlet
import sass
import socketio
from src import backend, frontend
# if __name__ == '__main__':
print("Compiling SCSS...")
path = os.getcwd() + "/src/frontend/static/scss"
sass.compile(dirname=(path, path + "/compiled"), output_style='compressed')
print("Done compiling SCSS... | 25.761905 | 75 | 0.744917 | 74 | 541 | 5.324324 | 0.608108 | 0.015228 | 0.091371 | 0.13198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018828 | 0.116451 | 541 | 20 | 76 | 27.05 | 0.805439 | 0.243993 | 0 | 0 | 0 | 0 | 0.217284 | 0.061728 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
92d7cfccfebeb5c5d262a7c8976eb693afc52072 | 1,957 | py | Python | authors/apps/authentication/urls.py | andela/ah-backend-thanos | baf7f20a023cc3c3ecae0fcf91bb7d9165e79fc8 | [
"BSD-3-Clause"
] | null | null | null | authors/apps/authentication/urls.py | andela/ah-backend-thanos | baf7f20a023cc3c3ecae0fcf91bb7d9165e79fc8 | [
"BSD-3-Clause"
] | 42 | 2018-10-24T08:21:07.000Z | 2021-06-10T20:54:39.000Z | authors/apps/authentication/urls.py | andela/ah-backend-thanos | baf7f20a023cc3c3ecae0fcf91bb7d9165e79fc8 | [
"BSD-3-Clause"
] | 2 | 2018-11-05T08:56:42.000Z | 2019-05-03T12:40:43.000Z | from django.urls import path
from .views import (
LoginAPIView, RegistrationAPIView, AccountVerificationAPIView,
SendEmailPasswordReset, ResetPassword, OauthAPIView, OauthlLoginAPIView,
UnsubscribeNotifications, FacebookAPIView, GoogleAPIView, TwitterAPIView
)
from authors.apps.profiles.views import (
... | 39.938776 | 79 | 0.69954 | 203 | 1,957 | 6.600985 | 0.325123 | 0.062687 | 0.08209 | 0.044776 | 0.034328 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001209 | 0.154829 | 1,957 | 48 | 80 | 40.770833 | 0.808948 | 0.089934 | 0 | 0 | 0 | 0 | 0.29223 | 0.189189 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.157895 | 0.078947 | 0 | 0.078947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
92db6b3f21a7de795aa042965ec405caa7f3deb6 | 1,444 | py | Python | tests/core/test_csrf.py | girardinsamuel/core | 2f734d76f51a789766ccd09d0e91c356b94d74ae | [
"MIT"
] | 95 | 2018-02-22T23:54:00.000Z | 2021-04-17T03:39:21.000Z | tests/core/test_csrf.py | girardinsamuel/core | 2f734d76f51a789766ccd09d0e91c356b94d74ae | [
"MIT"
] | 840 | 2018-01-27T04:26:20.000Z | 2021-01-24T12:28:58.000Z | tests/core/test_csrf.py | girardinsamuel/core | 2f734d76f51a789766ccd09d0e91c356b94d74ae | [
"MIT"
] | 100 | 2018-02-23T00:19:55.000Z | 2020-08-28T07:59:31.000Z | from masonite.middleware import CsrfMiddleware
from masonite.testing import TestCase
from masonite.routes import Get, Post
class TestCsrf(TestCase):
def setUp(self):
super().setUp()
self.routes(only=[Get('/', 'ControllerTest@show').middleware('csrf'), Post('/test-route', 'ControllerTest@show').mi... | 35.219512 | 141 | 0.645429 | 160 | 1,444 | 5.625 | 0.38125 | 0.046667 | 0.043333 | 0.066667 | 0.126667 | 0.126667 | 0.126667 | 0.126667 | 0.126667 | 0.126667 | 0 | 0 | 0.203601 | 1,444 | 40 | 142 | 36.1 | 0.782609 | 0 | 0 | 0.064516 | 0 | 0 | 0.127424 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.225806 | false | 0 | 0.096774 | 0 | 0.354839 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
92df8efd1fb9cabd6b00e3c0a0656bc9efacb282 | 2,303 | py | Python | g_tools/ops/curve_ops_OUT.py | gmbk9/blbk | e371607ea4c66bcd35ed335e14246787e53738e5 | [
"MIT"
] | 4 | 2018-06-13T21:39:31.000Z | 2021-07-02T20:06:08.000Z | g_tools/ops/curve_ops_OUT.py | gmbk9/blbk | e371607ea4c66bcd35ed335e14246787e53738e5 | [
"MIT"
] | null | null | null | g_tools/ops/curve_ops_OUT.py | gmbk9/blbk | e371607ea4c66bcd35ed335e14246787e53738e5 | [
"MIT"
] | 1 | 2019-05-16T03:36:43.000Z | 2019-05-16T03:36:43.000Z | #importdefs
import bpy
from g_tools.bpy_itfc_funcs import curve_fs
from bpy_extras.io_utils import ImportHelper
from bpy.props import StringProperty, BoolProperty, EnumProperty, CollectionProperty
from bpy.types import Operator
#fdef
#opdef
class simple_hair_curve_op(bpy.types.Operator):
"""NODESC"""
bl_idn... | 29.525641 | 210 | 0.69518 | 305 | 2,303 | 4.934426 | 0.265574 | 0.046512 | 0.069767 | 0.071761 | 0.451827 | 0.308306 | 0.244518 | 0.122259 | 0.122259 | 0.122259 | 0 | 0.002182 | 0.204082 | 2,303 | 78 | 211 | 29.525641 | 0.818876 | 0.036908 | 0 | 0.28 | 0 | 0 | 0.103276 | 0.040946 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.72 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
92df959f46035d9c8b32d69d6c80c8c1955a1add | 984 | py | Python | Problemset/design-underground-system/design-underground-system.py | KivenCkl/LeetCode | fcc97c66f8154a5d20c2aca86120cb37b9d2d83d | [
"MIT"
] | 7 | 2019-05-08T03:41:05.000Z | 2020-12-22T12:39:43.000Z | Problemset/design-underground-system/design-underground-system.py | KivenCkl/LeetCode | fcc97c66f8154a5d20c2aca86120cb37b9d2d83d | [
"MIT"
] | 1 | 2021-07-19T03:48:35.000Z | 2021-07-19T03:48:35.000Z | Problemset/design-underground-system/design-underground-system.py | KivenCkl/LeetCode | fcc97c66f8154a5d20c2aca86120cb37b9d2d83d | [
"MIT"
] | 7 | 2019-05-10T20:43:20.000Z | 2021-02-22T03:47:35.000Z |
# @Title: 设计地铁系统 (Design Underground System)
# @Author: KivenC
# @Date: 2020-07-21 17:54:49
# @Runtime: 240 ms
# @Memory: 22.6 MB
class UndergroundSystem:
def __init__(self):
self.tmp = dict()
self.data = collections.defaultdict(lambda : [0, 0])
def checkIn(self, id: int, stationName: str, ... | 26.594595 | 74 | 0.64126 | 131 | 984 | 4.755725 | 0.480916 | 0.051364 | 0.067416 | 0.064205 | 0.099518 | 0.099518 | 0.099518 | 0.099518 | 0 | 0 | 0 | 0.03886 | 0.215447 | 984 | 36 | 75 | 27.333333 | 0.768135 | 0.336382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92ea61a74024f21bd526bce66b36f5e86f1075a5 | 346 | py | Python | aldryn_django/monkeypatches/hide_secrets_in_debug_mode.py | vinitkumar/aldryn-django | 8bb1830385cd7ef7963e7f68fe2a3688edbdd943 | [
"BSD-3-Clause"
] | 9 | 2019-01-28T16:03:19.000Z | 2021-07-15T16:43:56.000Z | aldryn_django/monkeypatches/hide_secrets_in_debug_mode.py | vinitkumar/aldryn-django | 8bb1830385cd7ef7963e7f68fe2a3688edbdd943 | [
"BSD-3-Clause"
] | 103 | 2019-01-25T10:15:30.000Z | 2022-03-24T15:21:34.000Z | aldryn_django/monkeypatches/hide_secrets_in_debug_mode.py | vinitkumar/aldryn-django | 8bb1830385cd7ef7963e7f68fe2a3688edbdd943 | [
"BSD-3-Clause"
] | 9 | 2015-11-27T15:11:38.000Z | 2018-12-18T16:08:42.000Z | """
hides some more secret variables in the debug error view of django
"""
def patch():
import re
from django.views import debug
signatures = (
'API|TOKEN|KEY|SECRET|PASS|PROFANITIES_LIST|SIGNATURE|'
'DSN|RESTARTER_PAYLOAD|REDIS_URL|EMAIL_URL|DATABASE_URL'
)
debug.HIDDEN_SETTINGS... | 21.625 | 66 | 0.699422 | 45 | 346 | 5.244444 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205202 | 346 | 15 | 67 | 23.066667 | 0.858182 | 0.190751 | 0 | 0 | 0 | 0 | 0.393382 | 0.393382 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
92eb9e7ba10d6237259411dfe466fbc39d6decb2 | 507 | py | Python | RQ3/Vehicle_case_study/swat_gen_mo/MyProblem.py | dgumenyuk/Environment_generation | 092fbecdc208f84aa58f2ccd3522262984e79cda | [
"MIT"
] | null | null | null | RQ3/Vehicle_case_study/swat_gen_mo/MyProblem.py | dgumenyuk/Environment_generation | 092fbecdc208f84aa58f2ccd3522262984e79cda | [
"MIT"
] | null | null | null | RQ3/Vehicle_case_study/swat_gen_mo/MyProblem.py | dgumenyuk/Environment_generation | 092fbecdc208f84aa58f2ccd3522262984e79cda | [
"MIT"
] | null | null | null |
from pymoo.model.problem import Problem
class MyProblem(Problem):
def __init__(self):
super().__init__(n_var=1, n_obj=2, n_constr=1, elementwise_evaluation=True)
def _evaluate(self, x, out, *args, **kwargs):
#print("Evaluation")
s = x[0]
s.eval_fitness()
#print(s.fit... | 26.684211 | 83 | 0.581854 | 70 | 507 | 4.014286 | 0.514286 | 0.142349 | 0.092527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018277 | 0.244576 | 507 | 18 | 84 | 28.166667 | 0.715405 | 0.230769 | 0 | 0 | 0 | 0 | 0.005195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92ec567eaec828798d2a0b00fde92c4a54b64fa7 | 813 | py | Python | commercialoperator/components/main/utils.py | wilsonc86/ledger | a60a681e547f37e4ac81cb93dffaf90aea8c8151 | [
"Apache-2.0"
] | null | null | null | commercialoperator/components/main/utils.py | wilsonc86/ledger | a60a681e547f37e4ac81cb93dffaf90aea8c8151 | [
"Apache-2.0"
] | null | null | null | commercialoperator/components/main/utils.py | wilsonc86/ledger | a60a681e547f37e4ac81cb93dffaf90aea8c8151 | [
"Apache-2.0"
] | null | null | null | import requests
import json
from django.conf import settings
from django.core.cache import cache
def retrieve_department_users():
try:
res = requests.get('{}/api/users?minimal'.format(settings.CMS_URL), auth=(settings.LEDGER_USER,settings.LEDGER_PASS), verify=False)
res.raise_for_status()
... | 30.111111 | 146 | 0.661747 | 105 | 813 | 4.980952 | 0.419048 | 0.107075 | 0.053537 | 0.06501 | 0.466539 | 0.466539 | 0.260038 | 0.260038 | 0.260038 | 0.260038 | 0 | 0.010903 | 0.210332 | 813 | 26 | 147 | 31.269231 | 0.803738 | 0 | 0 | 0.363636 | 0 | 0 | 0.087438 | 0.025862 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
92ec6db3796e0f7f6764471b4c1f227ded10d81e | 1,244 | py | Python | venv/lib/python3.9/site-packages/cachetools/mru.py | qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3 | 630dcef73e6a258b6e9a52f934e2dd912ce741f8 | [
"Apache-2.0"
] | 5 | 2022-01-20T22:59:04.000Z | 2022-02-06T06:11:35.000Z | venv/lib/python3.9/site-packages/cachetools/mru.py | qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3 | 630dcef73e6a258b6e9a52f934e2dd912ce741f8 | [
"Apache-2.0"
] | 10 | 2021-06-16T20:48:32.000Z | 2021-10-04T18:22:02.000Z | venv/lib/python3.9/site-packages/cachetools/mru.py | qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3 | 630dcef73e6a258b6e9a52f934e2dd912ce741f8 | [
"Apache-2.0"
] | 1 | 2021-05-31T18:23:02.000Z | 2021-05-31T18:23:02.000Z | import collections
from cachetools.cache import Cache
class MRUCache(Cache):
"""Most Recently Used (MRU) cache implementation."""
def __init__(self, maxsize, getsizeof=None):
Cache.__init__(self, maxsize, getsizeof)
self.__order = collections.OrderedDict()
def __getitem__(self, key, cac... | 30.341463 | 75 | 0.629421 | 147 | 1,244 | 4.891156 | 0.401361 | 0.06815 | 0.044506 | 0.066759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267685 | 1,244 | 40 | 76 | 31.1 | 0.789243 | 0.11254 | 0 | 0.137931 | 0 | 0 | 0.010064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
92ecedebf3b7262f948bd964e273c2994bd48667 | 5,212 | py | Python | examples/demo/markers.py | MatthieuDartiailh/vispy | 09d429be361a148b0614a192f56d4070c624072c | [
"BSD-3-Clause"
] | null | null | null | examples/demo/markers.py | MatthieuDartiailh/vispy | 09d429be361a148b0614a192f56d4070c624072c | [
"BSD-3-Clause"
] | null | null | null | examples/demo/markers.py | MatthieuDartiailh/vispy | 09d429be361a148b0614a192f56d4070c624072c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2014, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
# -----------------------------------------------------------------------------
"""
Marker shade... | 22.369099 | 79 | 0.542594 | 840 | 5,212 | 3.25119 | 0.153571 | 0.042475 | 0.035152 | 0.039546 | 0.527279 | 0.510436 | 0.470157 | 0.430612 | 0.353717 | 0.324423 | 0 | 0.06435 | 0.215848 | 5,212 | 232 | 80 | 22.465517 | 0.603866 | 0.082502 | 0 | 0.394595 | 0 | 0.113514 | 0.954927 | 0.115094 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.054054 | 0 | 0 | 0 | 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 |
92ee4aa9c85b53927ca0e66ebe81cae1ea01119f | 796 | py | Python | docs/tutorial/tut-nwchem/pre.py | felker/balsam | 2a4d2f217daa6265d31a6574ee0228ebedc6381c | [
"BSD-Source-Code"
] | 29 | 2019-03-26T20:54:59.000Z | 2021-02-12T20:25:35.000Z | docs/tutorial/tut-nwchem/pre.py | felker/balsam | 2a4d2f217daa6265d31a6574ee0228ebedc6381c | [
"BSD-Source-Code"
] | 25 | 2019-03-27T18:44:12.000Z | 2021-03-16T18:05:02.000Z | docs/tutorial/tut-nwchem/pre.py | felker/balsam | 2a4d2f217daa6265d31a6574ee0228ebedc6381c | [
"BSD-Source-Code"
] | 18 | 2019-08-13T19:43:07.000Z | 2021-02-24T22:48:57.000Z | #!/usr/bin/env python
'''Generate input file for NWChem'''
import numpy as np
from balsam.launcher.dag import current_job
def water_cartesian(r, theta):
cost = np.cos(np.radians(theta))
sint = np.sin(np.radians(theta))
O = ['O', 0.0, 0.0, 0.0]
H1 = ['H', r, 0.0, 0.0]
H2 = ['H', r*cost, r*sint, 0.... | 22.111111 | 62 | 0.599246 | 131 | 796 | 3.580153 | 0.480916 | 0.03838 | 0.03838 | 0.034115 | 0.012793 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042484 | 0.231156 | 796 | 36 | 63 | 22.111111 | 0.723856 | 0.06407 | 0 | 0.068966 | 1 | 0 | 0.259459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.068966 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92ee6a670dd522238057807f39a7d240b5faa445 | 350 | py | Python | users/migrations/0004_auto_20200409_0849.py | ujlbu4/vas3k.club | 1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e | [
"MIT"
] | 496 | 2020-04-24T04:20:32.000Z | 2022-03-31T21:55:57.000Z | users/migrations/0004_auto_20200409_0849.py | ujlbu4/vas3k.club | 1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e | [
"MIT"
] | 642 | 2020-04-24T11:54:13.000Z | 2022-03-26T15:41:06.000Z | users/migrations/0004_auto_20200409_0849.py | ujlbu4/vas3k.club | 1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e | [
"MIT"
] | 243 | 2020-04-24T11:49:11.000Z | 2022-03-24T18:38:48.000Z | # Generated by Django 3.0.4 on 2020-04-09 08:49
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0003_auto_20200409_0846'),
]
operations = [
migrations.AlterModelOptions(
name='tag',
options={'ordering': ['group'... | 19.444444 | 53 | 0.582857 | 36 | 350 | 5.583333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123506 | 0.282857 | 350 | 17 | 54 | 20.588235 | 0.677291 | 0.128571 | 0 | 0 | 1 | 0 | 0.161716 | 0.075908 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92fa32ffbadf53666aefa5a4d6370ca79fedabfc | 775 | py | Python | ibis_vega_transform/transforms/formula.py | xmnlab/ibis-vega-transform | 75b4c5e4a8452dbeb5a81e19eae817b4d9c64999 | [
"Apache-2.0"
] | 20 | 2019-08-12T17:18:10.000Z | 2021-09-15T15:38:28.000Z | ibis_vega_transform/transforms/formula.py | xmnlab/ibis-vega-transform | 75b4c5e4a8452dbeb5a81e19eae817b4d9c64999 | [
"Apache-2.0"
] | 63 | 2019-07-29T00:07:02.000Z | 2022-01-30T21:57:22.000Z | ibis_vega_transform/transforms/formula.py | isabella232/ibis-vega-transform | 6019825a05cefec153363ded01d5ded4a6befa75 | [
"Apache-2.0"
] | 6 | 2019-07-19T15:13:36.000Z | 2022-03-06T03:01:54.000Z | import ibis
from ibis_vega_transform.vegaexpr import eval_vegajs
def formula(transform: dict, expr: ibis.Expr) -> ibis.Expr:
"""
Apply a vega formula transform to an ibis expression.
https://vega.github.io/vega/docs/transforms/formula/
This transform evaluates a vega expression, which is not fully
... | 27.678571 | 66 | 0.685161 | 99 | 775 | 5.292929 | 0.474747 | 0.045802 | 0.068702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218065 | 775 | 27 | 67 | 28.703704 | 0.864686 | 0.572903 | 0 | 0 | 0 | 0 | 0.022472 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
130401db89928153e9bdb082f534645c4c343388 | 644 | py | Python | src/wlan/wifi.py | SebastianRoll/NDC-MicroPython | b8a366b02b5eb18b6f2a37f35050bf62cc95dae9 | [
"MIT"
] | 1 | 2018-09-29T12:28:11.000Z | 2018-09-29T12:28:11.000Z | src/wlan/wifi.py | SebastianRoll/NDC-MicroPython | b8a366b02b5eb18b6f2a37f35050bf62cc95dae9 | [
"MIT"
] | null | null | null | src/wlan/wifi.py | SebastianRoll/NDC-MicroPython | b8a366b02b5eb18b6f2a37f35050bf62cc95dae9 | [
"MIT"
] | 1 | 2019-06-09T17:05:51.000Z | 2019-06-09T17:05:51.000Z | import network
known_wlan = {
b'kubernetes lifeline': b"workwork",
b'HackheimWifi': b'TeletextFTW',
}
wlan = network.WLAN(network.STA_IF)
if not wlan.active() or not wlan.isconnected():
wlan.active(True)
for (ssid, bssid, channel, RSSI, authmode, hidden) in wlan.scan():
print(ssid)
pwd... | 28 | 70 | 0.565217 | 74 | 644 | 4.878378 | 0.513514 | 0.058172 | 0.099723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.299689 | 644 | 22 | 71 | 29.272727 | 0.800443 | 0.150621 | 0 | 0 | 0 | 0 | 0.107011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.0625 | 0 | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
13056d248ef4d1d06bc531e547e3c8df7ba2fe94 | 1,459 | py | Python | tests/generate_test_file.py | kost13/tern-to-markdown | 6affa36c4c6fd2bd05f2b95459b115a045c917e6 | [
"MIT"
] | null | null | null | tests/generate_test_file.py | kost13/tern-to-markdown | 6affa36c4c6fd2bd05f2b95459b115a045c917e6 | [
"MIT"
] | null | null | null | tests/generate_test_file.py | kost13/tern-to-markdown | 6affa36c4c6fd2bd05f2b95459b115a045c917e6 | [
"MIT"
] | null | null | null | """generate_test_file
Part of tern-to-markdown project.
Author: Lukasz Kostrzewa
License: MIT
This script generates light report file.
"""
import yaml
import logging
import re
from typing import Set
import argparse
import pickle
def setup_logger():
logger = logging.getLogger(__name__)
logger.setLevel(loggin... | 23.918033 | 81 | 0.649075 | 181 | 1,459 | 5.049724 | 0.524862 | 0.043764 | 0.041575 | 0.039387 | 0.111597 | 0.111597 | 0.111597 | 0.111597 | 0.111597 | 0.111597 | 0 | 0 | 0.242632 | 1,459 | 60 | 82 | 24.316667 | 0.827149 | 0.090473 | 0 | 0.190476 | 1 | 0 | 0.134848 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.309524 | 0 | 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 |
13074e9198a9a3bb3713ee1a77b3db08cbb53a1b | 2,630 | py | Python | mezzanine_seminars/admin/surveys.py | unplugstudio/mezzanine-webinars | 5490015573e3c0e0e4ca84a0e6e2296e1b40983d | [
"0BSD"
] | 1 | 2020-10-05T04:29:40.000Z | 2020-10-05T04:29:40.000Z | mezzanine_seminars/admin/surveys.py | unplugstudio/mezzanine-webinars | 5490015573e3c0e0e4ca84a0e6e2296e1b40983d | [
"0BSD"
] | null | null | null | mezzanine_seminars/admin/surveys.py | unplugstudio/mezzanine-webinars | 5490015573e3c0e0e4ca84a0e6e2296e1b40983d | [
"0BSD"
] | null | null | null | from __future__ import unicode_literals, absolute_import
import unicodecsv as csv
from copy import deepcopy
from django.conf.urls import url
from django.contrib import admin
from django.utils.module_loading import import_string
from django.shortcuts import get_list_or_404, HttpResponse
from mezzanine.core.admin imp... | 33.291139 | 79 | 0.701141 | 278 | 2,630 | 6.320144 | 0.428058 | 0.054639 | 0.022766 | 0.029596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002412 | 0.211787 | 2,630 | 78 | 80 | 33.717949 | 0.845152 | 0.038023 | 0 | 0.033898 | 0 | 0 | 0.162011 | 0.081405 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084746 | false | 0 | 0.186441 | 0.067797 | 0.576271 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1310533ed21477837b6c324ca09321ee46b72ebf | 919 | py | Python | generator.py | Mitrius/Multicore | f0b0ef11124975ec534c20523ed1f01110118bd0 | [
"MIT"
] | null | null | null | generator.py | Mitrius/Multicore | f0b0ef11124975ec534c20523ed1f01110118bd0 | [
"MIT"
] | null | null | null | generator.py | Mitrius/Multicore | f0b0ef11124975ec534c20523ed1f01110118bd0 | [
"MIT"
] | null | null | null | import sys
from random import random, randint
from scipy.linalg import eigh_tridiagonal
UPPER = 100
def generate_symmetric_matrix(size: int) -> list:
main_diag = [random()*UPPER for elem in range(size)]
sym_diag = [random() for elem in range(size-1)]
return (main_diag, sym_diag)
if __name__ == "__main_... | 30.633333 | 64 | 0.639826 | 137 | 919 | 4.080292 | 0.364964 | 0.075134 | 0.064401 | 0.096601 | 0.232558 | 0.168157 | 0.168157 | 0.085868 | 0 | 0 | 0 | 0.015428 | 0.224157 | 919 | 29 | 65 | 31.689655 | 0.768583 | 0 | 0 | 0 | 1 | 0 | 0.04679 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.227273 | 0.181818 | 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 |
13201d1b30369985de9a8f7b5d353118d764ae54 | 9,612 | py | Python | sensor-server/pi_camera/gui/PiCamUI.py | alanc98/SensorServer | 147d0b42e1ad272be6b9d480c1ce8253c43eb744 | [
"MIT"
] | null | null | null | sensor-server/pi_camera/gui/PiCamUI.py | alanc98/SensorServer | 147d0b42e1ad272be6b9d480c1ce8253c43eb744 | [
"MIT"
] | null | null | null | sensor-server/pi_camera/gui/PiCamUI.py | alanc98/SensorServer | 147d0b42e1ad272be6b9d480c1ce8253c43eb744 | [
"MIT"
] | null | null | null | #
# sensor server picam module GUI
#
from PyQt4 import QtGui
from PyQt4.QtCore import QThread, SIGNAL
import sys
import time
import zmq
import PiCamUIDesign
#
# Globals for this module
# The globals are needed between the GUI class and the Thread that receives
# ZeroMQ sub packets
# The GUI class connects t... | 38.91498 | 250 | 0.693508 | 1,137 | 9,612 | 5.516271 | 0.186456 | 0.037309 | 0.028699 | 0.018176 | 0.44611 | 0.325255 | 0.253029 | 0.246811 | 0.226244 | 0.206154 | 0 | 0.021842 | 0.209322 | 9,612 | 246 | 251 | 39.073171 | 0.803421 | 0.083541 | 0 | 0.302703 | 0 | 0 | 0.127647 | 0.070257 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032432 | null | null | 0.021622 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
132473bc3982831621717614da450f9a6fea7153 | 1,872 | py | Python | cms/tests/test_model_ministery_leader.py | leonardbillywoodiii/glidden_app | 6629464cbeafcbab504814dc9147c5dd53c11be5 | [
"MIT"
] | null | null | null | cms/tests/test_model_ministery_leader.py | leonardbillywoodiii/glidden_app | 6629464cbeafcbab504814dc9147c5dd53c11be5 | [
"MIT"
] | null | null | null | cms/tests/test_model_ministery_leader.py | leonardbillywoodiii/glidden_app | 6629464cbeafcbab504814dc9147c5dd53c11be5 | [
"MIT"
] | null | null | null | from django.test import TestCase
from faker import Faker
from cms.models import MinistryLeader
from .setup import (admin_user_setup, general_address_setup,
member_address_setup, user_setup, ministry_setup)
class MinisteryLeaderModelTests(TestCase):
def setUp(self):
self.user = user_... | 39.829787 | 74 | 0.683226 | 202 | 1,872 | 5.935644 | 0.212871 | 0.170142 | 0.255213 | 0.105088 | 0.358632 | 0.318599 | 0.311927 | 0.233528 | 0.175146 | 0.096747 | 0 | 0.00142 | 0.247863 | 1,872 | 46 | 75 | 40.695652 | 0.850142 | 0 | 0 | 0 | 0 | 0 | 0.005876 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.184211 | 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 |
132573206316bef489d6f742ab95f2608b59507e | 5,190 | py | Python | origin.py | jdthorpe/MCPH | c431bd5d9320d1165cabcba9e201a29f016fa362 | [
"MIT"
] | null | null | null | origin.py | jdthorpe/MCPH | c431bd5d9320d1165cabcba9e201a29f016fa362 | [
"MIT"
] | null | null | null | origin.py | jdthorpe/MCPH | c431bd5d9320d1165cabcba9e201a29f016fa362 | [
"MIT"
] | null | null | null | maxEventProcessCalls = 1000
class origin(Event):
# prevention
def prevent(self,by):
raise RuntimeError('cannot prevent an origin')
TimePrevented = property(lambda:float('inf'))
prevented = property(lambda:False)
# un-prevention
def unpreventALL(self): pass
def unprevent(self,by): pass
#... | 43.613445 | 130 | 0.547399 | 561 | 5,190 | 5.040998 | 0.349376 | 0.022631 | 0.024045 | 0.032532 | 0.142504 | 0.142504 | 0.099364 | 0.093352 | 0.093352 | 0.093352 | 0 | 0.002453 | 0.371676 | 5,190 | 118 | 131 | 43.983051 | 0.864765 | 0.208478 | 0 | 0.355932 | 0 | 0 | 0.071056 | 0.006845 | 0 | 0 | 0 | 0.008475 | 0 | 0 | null | null | 0.033898 | 0 | 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 |
1325f582926591d356c512ece6ad920d0ee9d197 | 4,631 | py | Python | config/settings/base.py | superdev0505/mtp-web | 8288765a89daaa7b02dfd7e78cc51c4f12d7fcce | [
"MIT"
] | null | null | null | config/settings/base.py | superdev0505/mtp-web | 8288765a89daaa7b02dfd7e78cc51c4f12d7fcce | [
"MIT"
] | null | null | null | config/settings/base.py | superdev0505/mtp-web | 8288765a89daaa7b02dfd7e78cc51c4f12d7fcce | [
"MIT"
] | null | null | null | import os
import datetime
from datetime import timedelta
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
ALLOWED_HOSTS = ['*']
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'dj... | 28.237805 | 91 | 0.698769 | 451 | 4,631 | 6.940133 | 0.445676 | 0.078914 | 0.04345 | 0.026837 | 0.113419 | 0.102556 | 0.052716 | 0.014377 | 0 | 0 | 0 | 0.011936 | 0.167782 | 4,631 | 164 | 92 | 28.237805 | 0.800208 | 0.090261 | 0 | 0.055118 | 0 | 0 | 0.574387 | 0.475125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.03937 | 0.023622 | 0 | 0.023622 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
132bab214f5bd6b64282308f3f0643a16ac0ef7a | 1,668 | py | Python | sdk/cognitivelanguage/azure-ai-language-conversations/samples/sample_authentication.py | praveenkuttappan/azure-sdk-for-python | 4b79413667b7539750a6c7dde15737013a3d4bd5 | [
"MIT"
] | 2,728 | 2015-01-09T10:19:32.000Z | 2022-03-31T14:50:33.000Z | sdk/cognitivelanguage/azure-ai-language-conversations/samples/sample_authentication.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 17,773 | 2015-01-05T15:57:17.000Z | 2022-03-31T23:50:25.000Z | sdk/cognitivelanguage/azure-ai-language-conversations/samples/sample_authentication.py | v-xuto/azure-sdk-for-python | 9c6296d22094c5ede410bc83749e8df8694ccacc | [
"MIT"
] | 1,916 | 2015-01-19T05:05:41.000Z | 2022-03-31T19:36:44.000Z | # coding=utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# ---------------------------------------------------------------------... | 35.489362 | 106 | 0.714029 | 184 | 1,668 | 6.293478 | 0.516304 | 0.069085 | 0.090674 | 0.041451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002088 | 0.138489 | 1,668 | 46 | 107 | 36.26087 | 0.803758 | 0.718825 | 0 | 0 | 0 | 0 | 0.129956 | 0.112335 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
132e7e9ab1cbdcd60270a67c26e19ac13a8515ba | 369 | py | Python | impl/nog/exc.py | HEG-INCIPIT/ARKetype | bd2ced291292fa6cc2f101f59a9614698dae5102 | [
"MIT"
] | 9 | 2020-02-26T00:45:09.000Z | 2021-11-07T23:07:06.000Z | impl/nog/exc.py | HEG-INCIPIT/ARKetype | bd2ced291292fa6cc2f101f59a9614698dae5102 | [
"MIT"
] | 213 | 2020-04-07T21:36:17.000Z | 2022-03-29T21:26:04.000Z | impl/nog/exc.py | HEG-INCIPIT/ARKetype | bd2ced291292fa6cc2f101f59a9614698dae5102 | [
"MIT"
] | 7 | 2020-04-07T20:04:51.000Z | 2021-08-19T01:11:55.000Z | class MinterError(Exception):
pass
class MinterNotSpecified(MinterError):
"""No minter is specified for shoulder.
"""
pass
class MinterPathError(MinterError):
def __init__(self, msg, path, ns):
super(MinterPathError, self).__init__(
'{}. path="{}", ns="{}"'.format(msg, path.... | 21.705882 | 92 | 0.623306 | 40 | 369 | 5.525 | 0.65 | 0.081448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230352 | 369 | 16 | 93 | 23.0625 | 0.778169 | 0.097561 | 0 | 0.222222 | 0 | 0 | 0.068323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.222222 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
13307fbed92cae2271a2321333e1e9e4ce6e8325 | 6,215 | py | Python | tests/extension/stream_/reduceadd_validready/test_stream_reduceadd_validready.py | akmaru/veriloggen | 74f998139e8cf613f7703fa4cffd571bbf069bbc | [
"Apache-2.0"
] | null | null | null | tests/extension/stream_/reduceadd_validready/test_stream_reduceadd_validready.py | akmaru/veriloggen | 74f998139e8cf613f7703fa4cffd571bbf069bbc | [
"Apache-2.0"
] | null | null | null | tests/extension/stream_/reduceadd_validready/test_stream_reduceadd_validready.py | akmaru/veriloggen | 74f998139e8cf613f7703fa4cffd571bbf069bbc | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from __future__ import print_function
import veriloggen
import stream_reduceadd_validready
expected_verilog = """
module test;
reg CLK;
reg RST;
reg ivalid;
wire iready;
wire ovalid;
reg oready;
reg signed [32-1:0] xdata;
reg signed [32-1:0] ydata;
wire signed ... | 22.6 | 92 | 0.569912 | 867 | 6,215 | 3.717416 | 0.109573 | 0.08036 | 0.016134 | 0.039094 | 0.461682 | 0.261558 | 0.174992 | 0.087496 | 0.068259 | 0.068259 | 0 | 0.064299 | 0.329364 | 6,215 | 274 | 93 | 22.682482 | 0.708973 | 0 | 0 | 0.407258 | 0 | 0 | 0.902494 | 0.01786 | 0 | 0 | 0 | 0 | 0.004032 | 1 | 0.004032 | false | 0 | 0.024194 | 0 | 0.028226 | 0.004032 | 0 | 0 | 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 |
1330eca55efb8855985d28930ce0959e5367727e | 2,876 | py | Python | doc/utils/checkfiledocs.py | spurious/portaudio-mirror | 1abdbbeb4ef08f4fdf6c6ee61640ee5bc53d31fe | [
"Unlicense"
] | 1 | 2015-02-15T18:00:24.000Z | 2015-02-15T18:00:24.000Z | doc/utils/checkfiledocs.py | spurious/portaudio-mirror | 1abdbbeb4ef08f4fdf6c6ee61640ee5bc53d31fe | [
"Unlicense"
] | null | null | null | doc/utils/checkfiledocs.py | spurious/portaudio-mirror | 1abdbbeb4ef08f4fdf6c6ee61640ee5bc53d31fe | [
"Unlicense"
] | 2 | 2015-01-27T02:01:20.000Z | 2020-02-15T15:14:16.000Z | import os
import os.path
import string
paRootDirectory = '../../'
paHtmlDocDirectory = os.path.join( paRootDirectory, "doc", "html" )
## Script to check documentation status
## this script assumes that html doxygen documentation has been generated
##
## it then walks the entire portaudio source tree and che... | 32.681818 | 130 | 0.611961 | 357 | 2,876 | 4.901961 | 0.397759 | 0.027429 | 0.037143 | 0.057143 | 0.114286 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0.000954 | 0.27121 | 2,876 | 87 | 131 | 33.057471 | 0.833969 | 0.301113 | 0 | 0 | 0 | 0 | 0.117428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.177778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
13375b191a411d992f3ecd87e168056660169708 | 7,067 | py | Python | sdk/python/pulumi_oci/identity/get_users.py | EladGabay/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2021-08-17T11:14:46.000Z | 2021-12-31T02:07:03.000Z | sdk/python/pulumi_oci/identity/get_users.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-09-06T11:21:29.000Z | 2021-09-06T11:21:29.000Z | sdk/python/pulumi_oci/identity/get_users.py | pulumi-oci/pulumi-oci | 6841e27d4a1a7e15c672306b769912efbfd3ba99 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2021-08-24T23:31:30.000Z | 2022-01-02T19:26:54.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 38.407609 | 177 | 0.666619 | 847 | 7,067 | 5.325856 | 0.20425 | 0.074485 | 0.067834 | 0.053203 | 0.177566 | 0.103525 | 0.080248 | 0.056528 | 0.041233 | 0.019951 | 0 | 0.000185 | 0.237159 | 7,067 | 183 | 178 | 38.617486 | 0.836579 | 0.268431 | 0 | 0.116071 | 1 | 0 | 0.15256 | 0.030594 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098214 | false | 0 | 0.0625 | 0.008929 | 0.267857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.