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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fe07b0d65355435bfe80638b0233d70fcb2d730a | 6,277 | py | Python | sandia_hand/ros/sandia_hand_teleop/simple_grasp/simple_grasp.py | adarshrs/Drone-Simulator-for-ROS-Kinetic | a44eef1bcaacc55539325bba663f0c8abfd7c75b | [
"MIT"
] | null | null | null | sandia_hand/ros/sandia_hand_teleop/simple_grasp/simple_grasp.py | adarshrs/Drone-Simulator-for-ROS-Kinetic | a44eef1bcaacc55539325bba663f0c8abfd7c75b | [
"MIT"
] | null | null | null | sandia_hand/ros/sandia_hand_teleop/simple_grasp/simple_grasp.py | adarshrs/Drone-Simulator-for-ROS-Kinetic | a44eef1bcaacc55539325bba663f0c8abfd7c75b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# Software License Agreement (Apache License)
#
# Copyright 2013 Open Source Robotics Foundation
# Author: Morgan Quigley
#
# 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 ... | 37.142012 | 121 | 0.58563 | 1,354 | 6,277 | 2.602659 | 0.162482 | 0.074915 | 0.067253 | 0.057889 | 0.382804 | 0.323496 | 0.294268 | 0.248297 | 0.224177 | 0.191544 | 0 | 0.147444 | 0.196113 | 6,277 | 168 | 122 | 37.363095 | 0.550931 | 0.168552 | 0 | 0.059259 | 0 | 0 | 0.07341 | 0.004239 | 0 | 0 | 0 | 0.005952 | 0 | 0 | null | null | 0 | 0.044444 | null | null | 0.007407 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fe07d62ba16713663bde826dc0ce1fe3d2c478fc | 1,680 | py | Python | ui/ui_prestamo_libros.py | edzzn/Manejo_Liberia | c735d35b32fc53839acfc48d4e088e69983edf16 | [
"MIT"
] | null | null | null | ui/ui_prestamo_libros.py | edzzn/Manejo_Liberia | c735d35b32fc53839acfc48d4e088e69983edf16 | [
"MIT"
] | null | null | null | ui/ui_prestamo_libros.py | edzzn/Manejo_Liberia | c735d35b32fc53839acfc48d4e088e69983edf16 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'PrestamoDeLibros.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromU... | 31.111111 | 79 | 0.689881 | 195 | 1,680 | 5.8 | 0.415385 | 0.099027 | 0.070734 | 0.099027 | 0.205128 | 0.145004 | 0.145004 | 0.145004 | 0.145004 | 0.145004 | 0 | 0.033898 | 0.192262 | 1,680 | 53 | 80 | 31.698113 | 0.799558 | 0.113095 | 0 | 0.162162 | 1 | 0 | 0.045209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.135135 | false | 0 | 0.054054 | 0.081081 | 0.297297 | 0 | 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 |
fe0ae5c8386d6c3d6f937a81ff9888fef7e3e87d | 215 | py | Python | hwtest/automated/usb3_test.py | crvallance/wlanpi-hwtest | 8858ef6e8fa78767238b968b121b4d5ab2155701 | [
"MIT"
] | null | null | null | hwtest/automated/usb3_test.py | crvallance/wlanpi-hwtest | 8858ef6e8fa78767238b968b121b4d5ab2155701 | [
"MIT"
] | null | null | null | hwtest/automated/usb3_test.py | crvallance/wlanpi-hwtest | 8858ef6e8fa78767238b968b121b4d5ab2155701 | [
"MIT"
] | null | null | null | from hwtest.shell_utils import run_command
def test_linux_usb3hub():
"""
Test for Linux Foundation 3.0 root hub in `lsusb` output
"""
resp = run_command(["lsusb"])
assert "1d6b:0003" in resp
| 17.916667 | 60 | 0.665116 | 31 | 215 | 4.451613 | 0.774194 | 0.144928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054217 | 0.227907 | 215 | 11 | 61 | 19.545455 | 0.777108 | 0.260465 | 0 | 0 | 0 | 0 | 0.097902 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe0ede7a40a877fbc5bae0945b61462c0561098f | 5,249 | py | Python | experiments/cifar10_recon.py | coopersigrist/RecurrentNeuralSystem- | bd5bb680ec7f2166547709195f7bb3cd52cca5e8 | [
"MIT"
] | 3 | 2021-03-03T20:08:34.000Z | 2021-03-19T15:27:58.000Z | experiments/cifar10_recon.py | coopersigrist/RecurrentNeuralSystem- | bd5bb680ec7f2166547709195f7bb3cd52cca5e8 | [
"MIT"
] | null | null | null | experiments/cifar10_recon.py | coopersigrist/RecurrentNeuralSystem- | bd5bb680ec7f2166547709195f7bb3cd52cca5e8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""ReNS experiments - CIFAR10
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1byZ4xTfCK2x1Rhkxpl-Vv4sqA-bo4bis
# SETUP
"""
#@title Insatlling Pyorch
# !pip install torch
# !pip install torchvision
#@title Import Dependencies... | 29.994286 | 98 | 0.649076 | 704 | 5,249 | 4.725852 | 0.322443 | 0.035167 | 0.024046 | 0.032462 | 0.262699 | 0.253081 | 0.164713 | 0.151488 | 0.111211 | 0.091374 | 0 | 0.034099 | 0.212231 | 5,249 | 174 | 99 | 30.166667 | 0.770496 | 0.150124 | 0 | 0.113208 | 1 | 0 | 0.057718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009434 | false | 0 | 0.150943 | 0.009434 | 0.169811 | 0.009434 | 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 |
fe13f782ba0630659072cb056a27d408b76a7090 | 1,973 | py | Python | {{cookiecutter.repo_name}}/setup.py | ocesaulo/cookiecutter-ocn_sci | d41e826f56ba67cfde878ffc8188d497214a5f5b | [
"MIT"
] | null | null | null | {{cookiecutter.repo_name}}/setup.py | ocesaulo/cookiecutter-ocn_sci | d41e826f56ba67cfde878ffc8188d497214a5f5b | [
"MIT"
] | null | null | null | {{cookiecutter.repo_name}}/setup.py | ocesaulo/cookiecutter-ocn_sci | d41e826f56ba67cfde878ffc8188d497214a5f5b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
{%- set license_classifiers = {
'MIT license': 'License :: OSI Approved :: MIT License',
'BSD license': 'License :: OSI A... | 34.614035 | 103 | 0.667511 | 228 | 1,973 | 5.600877 | 0.447368 | 0.039154 | 0.070478 | 0.058731 | 0.062647 | 0.023493 | 0 | 0 | 0 | 0 | 0 | 0.005501 | 0.170806 | 1,973 | 56 | 104 | 35.232143 | 0.775061 | 0.053218 | 0 | 0 | 0 | 0 | 0.410103 | 0.118957 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02439 | 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 |
fe1823b5cc5e17b94ed66896e05441088fc1ee56 | 1,503 | py | Python | Class Work oop.py | fatimatswanya/fatimaCSC102 | cab70bd696d39a9e16bcb57e0180e872be4f49bc | [
"MIT"
] | null | null | null | Class Work oop.py | fatimatswanya/fatimaCSC102 | cab70bd696d39a9e16bcb57e0180e872be4f49bc | [
"MIT"
] | null | null | null | Class Work oop.py | fatimatswanya/fatimaCSC102 | cab70bd696d39a9e16bcb57e0180e872be4f49bc | [
"MIT"
] | null | null | null |
class Student:
studentLevel = 'first year computer science 2020/2021 session'
studentCounter = 0
registeredCourse='csc102'
def __init__(self, thename, thematricno, thesex,thehostelname,theage,thecsc102examscore):
self.name = thename
self.matricno = thematricno
self.sex = thesex
... | 26.368421 | 93 | 0.632069 | 158 | 1,503 | 5.987342 | 0.487342 | 0.02537 | 0.021142 | 0.027484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042572 | 0.265469 | 1,503 | 57 | 94 | 26.368421 | 0.814312 | 0 | 0 | 0.181818 | 0 | 0 | 0.186959 | 0.017299 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0.022727 | 0 | 0.022727 | 0.318182 | 0.227273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fe18f53bb174876b9174543e0887f93aad3f8c21 | 6,686 | py | Python | tests/test_disque.py | abdul-khalid/pydisque | a9b5caa6dac0621a0174d168f4a04c88d0e2f8b5 | [
"MIT"
] | 1 | 2019-02-28T09:48:22.000Z | 2019-02-28T09:48:22.000Z | tests/test_disque.py | abdul-khalid/pydisque | a9b5caa6dac0621a0174d168f4a04c88d0e2f8b5 | [
"MIT"
] | null | null | null | tests/test_disque.py | abdul-khalid/pydisque | a9b5caa6dac0621a0174d168f4a04c88d0e2f8b5 | [
"MIT"
] | null | null | null | """
Unit Tests for the pydisque module.
Currently, most of these tests require a fresh instance of
Disque to be valid and pass.
"""
import unittest
import json
import time
import random
import six
from pydisque.client import Client
from redis.exceptions import ResponseError
class TestDisque(unittest.TestCase):
... | 28.695279 | 76 | 0.588095 | 893 | 6,686 | 4.270997 | 0.195969 | 0.110121 | 0.051127 | 0.062926 | 0.455427 | 0.404562 | 0.369953 | 0.347142 | 0.272155 | 0.248034 | 0 | 0.017797 | 0.294047 | 6,686 | 232 | 77 | 28.818966 | 0.790254 | 0.147173 | 0 | 0.382353 | 0 | 0 | 0.053326 | 0 | 0 | 0 | 0 | 0.012931 | 0.191176 | 1 | 0.102941 | false | 0.007353 | 0.051471 | 0 | 0.169118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a3aceb33684c4eb53e7c078943f4c37d7dd1af91 | 4,321 | py | Python | airspace_surgery.py | wipfli/airspaces | c2e01615fa6a065895ed04b8f342a38732e9196b | [
"Apache-2.0"
] | 1 | 2021-12-28T23:40:51.000Z | 2021-12-28T23:40:51.000Z | airspace_surgery.py | wipfli/airspaces | c2e01615fa6a065895ed04b8f342a38732e9196b | [
"Apache-2.0"
] | 1 | 2021-01-30T13:15:14.000Z | 2021-02-07T14:50:27.000Z | airspace_surgery.py | wipfli/aviation | c2e01615fa6a065895ed04b8f342a38732e9196b | [
"Apache-2.0"
] | null | null | null | import glob
import json
path_in = './airspaces/'
path_out = './airspaces_processed/'
filenames = [path.split('/')[-1] for path in glob.glob(path_in + '*')]
remove = {
'france_fr.geojson': [
314327,
314187,
314360,
314359,
314362,
314361,
314364,
314... | 34.023622 | 125 | 0.532053 | 639 | 4,321 | 3.56964 | 0.197183 | 0.031565 | 0.078913 | 0.096887 | 0.187199 | 0.04954 | 0.022359 | 0.022359 | 0.022359 | 0.022359 | 0 | 0.200856 | 0.297153 | 4,321 | 126 | 126 | 34.293651 | 0.550214 | 0 | 0 | 0.090909 | 0 | 0 | 0.44573 | 0.010183 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018182 | 0 | 0.018182 | 0.063636 | 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 |
a3b256695d6b1472ade6817590ffa769163e8848 | 487 | py | Python | src/villages/migrations/0008_auto_20161228_2209.py | pwelzel/bornhack-website | af794e6a2fba06e09626259c7768feb30ff394be | [
"BSD-3-Clause"
] | null | null | null | src/villages/migrations/0008_auto_20161228_2209.py | pwelzel/bornhack-website | af794e6a2fba06e09626259c7768feb30ff394be | [
"BSD-3-Clause"
] | null | null | null | src/villages/migrations/0008_auto_20161228_2209.py | pwelzel/bornhack-website | af794e6a2fba06e09626259c7768feb30ff394be | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-28 22:09
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('villages', '0007_village_camp'),
]
operations = [
migrations.AlterField(
... | 22.136364 | 98 | 0.620123 | 56 | 487 | 5.321429 | 0.678571 | 0.080537 | 0.09396 | 0.147651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057221 | 0.246407 | 487 | 21 | 99 | 23.190476 | 0.754768 | 0.13963 | 0 | 0 | 1 | 0 | 0.110577 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3b459175d9e5a84e03ca2cd0f4e7e7f14be6f69 | 3,101 | py | Python | firmware/modulator.py | mfkiwl/OpenXcvr | 9bea6efd03cd246f16982f0fadafed684ac5ce1c | [
"MIT"
] | 14 | 2020-02-16T15:36:31.000Z | 2022-03-27T02:24:40.000Z | firmware/modulator.py | mfkiwl/OpenXcvr | 9bea6efd03cd246f16982f0fadafed684ac5ce1c | [
"MIT"
] | 1 | 2020-11-23T16:16:33.000Z | 2020-11-23T16:16:33.000Z | firmware/modulator.py | mfkiwl/OpenXcvr | 9bea6efd03cd246f16982f0fadafed684ac5ce1c | [
"MIT"
] | 4 | 2021-03-29T16:55:03.000Z | 2022-01-23T16:43:59.000Z | from baremetal import *
from math import pi, sin, cos
import sys
from scale import scale
from settings import *
from ssb import ssb_polar
def modulator(clk, audio, audio_stb, settings):
audio_bits = audio.subtype.bits
#AM modulation
am_mag = Unsigned(12).constant(0) + audio + 2048
am_phase = Signe... | 29.533333 | 117 | 0.633022 | 456 | 3,101 | 4.111842 | 0.258772 | 0.046933 | 0.056 | 0.036267 | 0.2528 | 0.1488 | 0.1488 | 0.074667 | 0.074667 | 0.0512 | 0 | 0.038737 | 0.234118 | 3,101 | 104 | 118 | 29.817308 | 0.750737 | 0.053209 | 0 | 0 | 0 | 0 | 0.027683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3b4f00010ceb5e0331d09eb4a19ef587eba8526 | 348 | py | Python | groundstation/broadcast_events/__init__.py | richo/groundstation | 7ed48dd355051ee6b71164fc801e3893c09d11db | [
"MIT"
] | 26 | 2015-06-18T20:17:07.000Z | 2019-09-26T09:55:35.000Z | groundstation/broadcast_events/__init__.py | richo/groundstation | 7ed48dd355051ee6b71164fc801e3893c09d11db | [
"MIT"
] | null | null | null | groundstation/broadcast_events/__init__.py | richo/groundstation | 7ed48dd355051ee6b71164fc801e3893c09d11db | [
"MIT"
] | 5 | 2015-07-20T01:52:47.000Z | 2017-01-08T09:54:07.000Z | from broadcast_ping import BroadcastPing
EVENT_TYPES = {
"PING": BroadcastPing,
}
class UnknownBroadcastEvent(Exception):
pass
def new_broadcast_event(data):
event_type, payload = data.split(" ", 1)
if event_type not in EVENT_TYPES:
raise UnknownBroadcastEvent(event_type)
return EVENT... | 23.2 | 47 | 0.732759 | 41 | 348 | 5.97561 | 0.560976 | 0.146939 | 0.130612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003534 | 0.186782 | 348 | 14 | 48 | 24.857143 | 0.862191 | 0 | 0 | 0 | 0 | 0 | 0.014368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.090909 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a3b8b5beaa0f8d8ecd98462fe75b978547dc1472 | 4,248 | py | Python | Python X/Dictionaries in python.py | nirobio/puzzles | fda8c84d8eefd93b40594636fb9b7f0fde02b014 | [
"MIT"
] | null | null | null | Python X/Dictionaries in python.py | nirobio/puzzles | fda8c84d8eefd93b40594636fb9b7f0fde02b014 | [
"MIT"
] | null | null | null | Python X/Dictionaries in python.py | nirobio/puzzles | fda8c84d8eefd93b40594636fb9b7f0fde02b014 | [
"MIT"
] | null | null | null | {
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"# dictionaries, look-up tables & key-value pairs\n",
"# d = {} OR d = dict()\n",
"# e.g. d = {\"George\": 24, \"Tom\": 32}\n",
"\n",
"d = {}\n",
"\n"
]
},
{
"cell_typ... | 18.88 | 354 | 0.439266 | 439 | 4,248 | 4.161731 | 0.246014 | 0.061303 | 0.085386 | 0.149425 | 0.490969 | 0.277504 | 0.277504 | 0.242474 | 0.08867 | 0.041598 | 0 | 0.078859 | 0.298493 | 4,248 | 224 | 355 | 18.964286 | 0.534228 | 0 | 0 | 0.392857 | 0 | 0.004464 | 0.535546 | 0.113701 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.049107 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a3bafb776906d3ce50f018766ee8f4cea08b123b | 1,059 | py | Python | container/pyf/graphqltypes/Event.py | Pompino/react-components-23KB | 3201a417c5160e1b77f29fc1eac74ae9dc10d6ad | [
"MIT"
] | 2 | 2021-10-30T18:18:33.000Z | 2021-12-01T10:21:28.000Z | container/pyf/graphqltypes/Event.py | Pompino/react-components-23KB | 3201a417c5160e1b77f29fc1eac74ae9dc10d6ad | [
"MIT"
] | null | null | null | container/pyf/graphqltypes/Event.py | Pompino/react-components-23KB | 3201a417c5160e1b77f29fc1eac74ae9dc10d6ad | [
"MIT"
] | null | null | null | from typing_extensions import Required
#from sqlalchemy.sql.sqltypes import Boolean
from graphene import ObjectType, String, Field, ID, List, DateTime, Mutation, Boolean, Int
from models.EventsRelated.EventModel import EventModel
from graphqltypes.Utils import extractSession
class EventType(ObjectType):
id = ID(... | 32.090909 | 90 | 0.700661 | 114 | 1,059 | 6.473684 | 0.412281 | 0.065041 | 0.069106 | 0.126016 | 0.406504 | 0.406504 | 0.406504 | 0.406504 | 0.406504 | 0.406504 | 0 | 0 | 0.206799 | 1,059 | 32 | 91 | 33.09375 | 0.878571 | 0.040604 | 0 | 0.333333 | 0 | 0 | 0.078818 | 0.078818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.166667 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a3bea3b575a46a0bd0557e3e985c4141109eee00 | 266 | py | Python | controllers/restart.py | Acidburn0zzz/helloworld | 9d88357658c55dadf9d4c6f923b63e8cb6207f75 | [
"MIT"
] | null | null | null | controllers/restart.py | Acidburn0zzz/helloworld | 9d88357658c55dadf9d4c6f923b63e8cb6207f75 | [
"MIT"
] | null | null | null | controllers/restart.py | Acidburn0zzz/helloworld | 9d88357658c55dadf9d4c6f923b63e8cb6207f75 | [
"MIT"
] | null | null | null | import os
from base import BaseHandler
class RestartHandler(BaseHandler):
def get(self):
if not self.authenticate(superuser=True):
return
os.system('touch ' + self.application.settings["restart_path"])
self.redirect(self.get_argument("next"))
| 22.166667 | 67 | 0.725564 | 33 | 266 | 5.787879 | 0.757576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 266 | 11 | 68 | 24.181818 | 0.852679 | 0 | 0 | 0 | 0 | 0 | 0.082707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a3c17e6746a0528783d5b0c338fdad4e4910e00a | 1,976 | py | Python | misc/python/materialize/checks/insert_select.py | guswynn/materialize | f433173ed71f511d91311769ec58c2d427dd6c3b | [
"MIT"
] | null | null | null | misc/python/materialize/checks/insert_select.py | guswynn/materialize | f433173ed71f511d91311769ec58c2d427dd6c3b | [
"MIT"
] | 157 | 2021-12-28T19:17:45.000Z | 2022-03-31T17:44:27.000Z | misc/python/materialize/checks/insert_select.py | guswynn/materialize | f433173ed71f511d91311769ec58c2d427dd6c3b | [
"MIT"
] | null | null | null | # Copyright Materialize, Inc. and contributors. All rights reserved.
#
# Use of this software is governed by the Business Source License
# included in the LICENSE file at the root of this repository.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software... | 34.666667 | 119 | 0.598684 | 217 | 1,976 | 5.304147 | 0.359447 | 0.104257 | 0.093831 | 0.119896 | 0.374457 | 0.315378 | 0.315378 | 0.180712 | 0.180712 | 0.180712 | 0 | 0.047619 | 0.330466 | 1,976 | 56 | 120 | 35.285714 | 0.822373 | 0.18168 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.173913 | 0.130435 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a3c2ca7e8eeb8a5b7daf690508f0da4c87ebd47d | 3,323 | py | Python | evaluation/wordpress/pull_docker_images_from_private_registry.py | seveirbian/gear-old | 8d3529a9bf42e652a9d7475c9d14e9a6afc69a76 | [
"Apache-2.0"
] | null | null | null | evaluation/wordpress/pull_docker_images_from_private_registry.py | seveirbian/gear-old | 8d3529a9bf42e652a9d7475c9d14e9a6afc69a76 | [
"Apache-2.0"
] | null | null | null | evaluation/wordpress/pull_docker_images_from_private_registry.py | seveirbian/gear-old | 8d3529a9bf42e652a9d7475c9d14e9a6afc69a76 | [
"Apache-2.0"
] | null | null | null | import sys
# package need to be installed, pip install docker
import docker
import time
import yaml
import os
import xlwt
auto = False
private_registry = "202.114.10.146:9999/"
# result
result = [["tag", "finishTime", "size", "data"], ]
class Puller:
def __init__(self, images):
self.images_to_pull =... | 27.46281 | 101 | 0.550707 | 387 | 3,323 | 4.599483 | 0.379845 | 0.033708 | 0.042697 | 0.026966 | 0.033708 | 0.033708 | 0.033708 | 0.033708 | 0 | 0 | 0 | 0.019091 | 0.337948 | 3,323 | 121 | 102 | 27.46281 | 0.79 | 0.0969 | 0 | 0 | 0 | 0 | 0.093311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3c978469e28670107c4646aa77b54f6269dda05 | 2,244 | py | Python | tests/test_prior.py | frodre/LMR | 4c00d3f9db96447e69bd3f426d59524f7b5f3ef5 | [
"BSD-3-Clause"
] | 17 | 2018-08-27T18:50:36.000Z | 2021-03-17T22:48:55.000Z | tests/test_prior.py | mingsongli/LMR | 4c00d3f9db96447e69bd3f426d59524f7b5f3ef5 | [
"BSD-3-Clause"
] | 5 | 2018-10-15T22:13:27.000Z | 2019-04-26T11:45:58.000Z | tests/test_prior.py | mingsongli/LMR | 4c00d3f9db96447e69bd3f426d59524f7b5f3ef5 | [
"BSD-3-Clause"
] | 11 | 2018-10-11T19:35:34.000Z | 2021-08-17T12:08:11.000Z | import sys
sys.path.append('../')
import LMR_config as cfg
import LMR_prior
import numpy as np
import pytest
def test_prior_seed():
cfg_obj = cfg.Config(**{'core':{'seed': 2}})
prior_cfg = cfg_obj.prior
prior_source = '20cr'
datadir_prior = 'data'
datafile_prior = '[vardef_template]_gridded_dat.... | 24.933333 | 60 | 0.685829 | 333 | 2,244 | 4.363363 | 0.216216 | 0.068135 | 0.035788 | 0.063317 | 0.75086 | 0.75086 | 0.695114 | 0.695114 | 0.695114 | 0.598761 | 0 | 0.041134 | 0.198307 | 2,244 | 89 | 61 | 25.213483 | 0.766537 | 0.020053 | 0 | 0.59375 | 0 | 0 | 0.058824 | 0.029184 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.03125 | false | 0 | 0.078125 | 0 | 0.109375 | 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 |
a3d28839e9a9ab62ac7936ca858e4cb438e092b3 | 16,562 | py | Python | tests/test_mag.py | jdddog/mag-archiver | 079e735e610d6b81b3ac8dc479d4f93bb0aacb11 | [
"Apache-2.0"
] | null | null | null | tests/test_mag.py | jdddog/mag-archiver | 079e735e610d6b81b3ac8dc479d4f93bb0aacb11 | [
"Apache-2.0"
] | null | null | null | tests/test_mag.py | jdddog/mag-archiver | 079e735e610d6b81b3ac8dc479d4f93bb0aacb11 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Curtin University
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 45.128065 | 112 | 0.676368 | 2,046 | 16,562 | 5.239003 | 0.116325 | 0.069969 | 0.028734 | 0.030133 | 0.736729 | 0.710234 | 0.680847 | 0.625618 | 0.599123 | 0.553037 | 0 | 0.042021 | 0.226965 | 16,562 | 366 | 113 | 45.251366 | 0.795204 | 0.101739 | 0 | 0.367089 | 0 | 0 | 0.117663 | 0.059641 | 0 | 0 | 0 | 0 | 0.244726 | 1 | 0.059072 | false | 0 | 0.037975 | 0 | 0.118143 | 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 |
a3d5083187f3606549524985d8222291ba30b943 | 4,199 | py | Python | tests/unit/transport/plugins/asyncssh/test_asyncssh_transport.py | carlmontanari/nssh | fa2277ea0b8fdb81de3064e1d48bad9264f0cd64 | [
"MIT"
] | 1 | 2020-02-09T17:43:43.000Z | 2020-02-09T17:43:43.000Z | tests/unit/transport/plugins/asyncssh/test_asyncssh_transport.py | carlmontanari/nssh | fa2277ea0b8fdb81de3064e1d48bad9264f0cd64 | [
"MIT"
] | null | null | null | tests/unit/transport/plugins/asyncssh/test_asyncssh_transport.py | carlmontanari/nssh | fa2277ea0b8fdb81de3064e1d48bad9264f0cd64 | [
"MIT"
] | null | null | null | import asyncio
from io import BytesIO
import pytest
from asyncssh.connection import SSHClientConnection
from asyncssh.stream import SSHReader
from scrapli.exceptions import ScrapliConnectionNotOpened, ScrapliTimeout
class DumbContainer:
def __init__(self):
self.preferred_auth = ()
def __getattr__(s... | 28.958621 | 96 | 0.740414 | 485 | 4,199 | 6.17732 | 0.208247 | 0.226969 | 0.080107 | 0.032043 | 0.641522 | 0.614152 | 0.524032 | 0.495327 | 0.495327 | 0.495327 | 0 | 0.001468 | 0.188616 | 4,199 | 144 | 97 | 29.159722 | 0.877898 | 0.138128 | 0 | 0.511111 | 0 | 0 | 0.049889 | 0.041574 | 0 | 0 | 0 | 0 | 0.122222 | 1 | 0.122222 | false | 0.011111 | 0.066667 | 0.011111 | 0.222222 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3d593a4708a16249302174780a07f2fdc88109b | 664 | py | Python | dataPresenter.py | thebouv/IUS-Hacktoberfest | 084634ec2feff3e81862d85b3938e1ae2c5aadff | [
"MIT"
] | 3 | 2019-09-30T18:25:12.000Z | 2019-10-01T21:47:41.000Z | dataPresenter.py | thebouv/IUS-Hacktoberfest | 084634ec2feff3e81862d85b3938e1ae2c5aadff | [
"MIT"
] | 3 | 2019-09-27T22:44:34.000Z | 2019-10-09T17:00:37.000Z | dataPresenter.py | thebouv/IUS-Hacktoberfest | 084634ec2feff3e81862d85b3938e1ae2c5aadff | [
"MIT"
] | 6 | 2019-09-28T04:17:16.000Z | 2019-10-08T18:47:26.000Z | from plotly.subplots import make_subplots
import plotly.graph_objects as go
import plotly.io as pio
from dataProcessor import parseLabels, parseLangs
import plotly.io as pio
import os
years = parseLabels()
langs = parseLangs()
#make the plotly results
fig = make_subplots(
rows=1, cols=2,
specs=[[{"type": "x... | 22.133333 | 89 | 0.680723 | 99 | 664 | 4.484848 | 0.525253 | 0.081081 | 0.063063 | 0.072072 | 0.085586 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016275 | 0.167169 | 664 | 29 | 90 | 22.896552 | 0.786618 | 0.034639 | 0 | 0.111111 | 0 | 0 | 0.040689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a3d7408e9bd4e19d03c2fd8dc2282dcab222a6b8 | 2,782 | py | Python | db/redis_db.py | Lifeistrange/WeiboSpider | 8aa3465487ef64bb6e9bb4bd503f182a1b38c292 | [
"MIT"
] | 1 | 2018-07-23T03:58:53.000Z | 2018-07-23T03:58:53.000Z | db/redis_db.py | 545314690/WeiboSpider-1.6.4 | d29cc9b926da5790768ddebdfdf9bf6c617a0e03 | [
"MIT"
] | null | null | null | db/redis_db.py | 545314690/WeiboSpider-1.6.4 | d29cc9b926da5790768ddebdfdf9bf6c617a0e03 | [
"MIT"
] | 2 | 2018-06-25T09:21:24.000Z | 2018-07-23T03:59:31.000Z | # coding:utf-8
import datetime
import json
import re
import redis
from config.conf import get_redis_args
redis_args = get_redis_args()
class Cookies(object):
rd_con = redis.StrictRedis(host=redis_args.get('host'), port=redis_args.get('port'),
password=redis_args.get('password'), d... | 36.12987 | 103 | 0.611431 | 349 | 2,782 | 4.653295 | 0.234957 | 0.105296 | 0.125616 | 0.061576 | 0.376232 | 0.361453 | 0.333128 | 0.297414 | 0.297414 | 0.2617 | 0 | 0.003423 | 0.264917 | 2,782 | 76 | 104 | 36.605263 | 0.790709 | 0.03271 | 0 | 0.237288 | 0 | 0 | 0.088202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118644 | false | 0.067797 | 0.084746 | 0 | 0.40678 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a3d86cad8d3203300d44bd218c5b17bca9639482 | 409 | py | Python | data/contacts.py | rgurevych/python_for_testers | 04023a5d6ea480f7828aa56e8a4094b744e05721 | [
"Apache-2.0"
] | null | null | null | data/contacts.py | rgurevych/python_for_testers | 04023a5d6ea480f7828aa56e8a4094b744e05721 | [
"Apache-2.0"
] | null | null | null | data/contacts.py | rgurevych/python_for_testers | 04023a5d6ea480f7828aa56e8a4094b744e05721 | [
"Apache-2.0"
] | null | null | null |
from models.contact import Contact
testdata = [Contact(first_name="Firstname", last_name="Lastname", mobile_phone="+12345678",
work_phone="12345", home_phone="67890", fax="55443322", email_1="email_1@email.com",
email_2="email_2@email.com", email_3="emai... | 51.125 | 116 | 0.577017 | 49 | 409 | 4.591837 | 0.612245 | 0.106667 | 0.097778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134021 | 0.288509 | 409 | 7 | 117 | 58.428571 | 0.639175 | 0 | 0 | 0 | 0 | 0 | 0.301471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3da86d4ce645eeb7110c2f1c12a4c42e43e9f77 | 2,681 | py | Python | cats/types.py | AdamBrianBright/cats-python | 163cbde06c0d56520c217c0d66ddca34c7e0f63b | [
"MIT"
] | 2 | 2021-10-04T05:39:03.000Z | 2021-10-07T06:44:19.000Z | cats/types.py | AdamBrianBright/cats-python | 163cbde06c0d56520c217c0d66ddca34c7e0f63b | [
"MIT"
] | 7 | 2021-08-17T17:50:23.000Z | 2021-08-31T08:44:13.000Z | cats/types.py | AdamBrianBright/cats-python | 163cbde06c0d56520c217c0d66ddca34c7e0f63b | [
"MIT"
] | 2 | 2021-10-01T20:58:25.000Z | 2021-10-04T05:40:35.000Z | from pathlib import Path
from types import GeneratorType
from typing import AsyncIterable, Iterable, TypeAlias
import ujson
from cats.errors import MalformedHeadersError
try:
from django.db.models import QuerySet, Model
except ImportError:
QuerySet = type('QuerySet', (list,), {})
Model = type('Model', (l... | 25.056075 | 98 | 0.631481 | 300 | 2,681 | 5.37 | 0.356667 | 0.037244 | 0.014898 | 0.019863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000974 | 0.234241 | 2,681 | 106 | 99 | 25.292453 | 0.783731 | 0.032824 | 0 | 0.092105 | 0 | 0 | 0.058207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171053 | false | 0 | 0.092105 | 0.118421 | 0.447368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a3dad87fce4f18faf3a3d29b5cefbd7b89d614d5 | 384 | py | Python | raven/utils/urlparse.py | MyCollege/raven | 9447f3a55ae7703afe84c3493625e3c3fb700700 | [
"BSD-3-Clause"
] | null | null | null | raven/utils/urlparse.py | MyCollege/raven | 9447f3a55ae7703afe84c3493625e3c3fb700700 | [
"BSD-3-Clause"
] | null | null | null | raven/utils/urlparse.py | MyCollege/raven | 9447f3a55ae7703afe84c3493625e3c3fb700700 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
try:
import urlparse as _urlparse
except ImportError:
from urllib import parse as _urlparse
def register_scheme(scheme):
for method in filter(lambda s: s.startswith('uses_'), dir(_urlparse)):
uses = getattr(_urlparse, method)
if scheme not in uses:
... | 22.588235 | 74 | 0.708333 | 48 | 384 | 5.416667 | 0.5625 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221354 | 384 | 16 | 75 | 24 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0.013021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a3db35b8c7d191b6f652e750b697cd40a1dc6c0c | 516 | py | Python | setup.py | stjordanis/MONeT-1 | 98a5c7d149ca19c8c64069dbd8f27ce7f97bf3af | [
"MIT"
] | 161 | 2020-10-28T02:21:50.000Z | 2022-03-11T05:06:16.000Z | setup.py | stjordanis/MONeT-1 | 98a5c7d149ca19c8c64069dbd8f27ce7f97bf3af | [
"MIT"
] | 4 | 2020-10-28T02:27:43.000Z | 2021-03-31T00:04:43.000Z | setup.py | stjordanis/MONeT-1 | 98a5c7d149ca19c8c64069dbd8f27ce7f97bf3af | [
"MIT"
] | 15 | 2020-10-28T02:32:12.000Z | 2021-12-23T13:20:23.000Z | import setuptools
setuptools.setup(
name="monet_memory_optimized_training",
version="0.0.1",
description="Memory Optimized Network Training Framework",
url="https://github.com/philkr/lowrank_conv",
packages=setuptools.find_packages(include = ['monet', 'monet.*', 'models', 'checkmate', 'gist']),
... | 32.25 | 101 | 0.655039 | 54 | 516 | 6.148148 | 0.777778 | 0.090361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01432 | 0.187985 | 516 | 15 | 102 | 34.4 | 0.778043 | 0 | 0 | 0 | 0 | 0 | 0.503876 | 0.060078 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3dc8e80c4d30f101894ef231d725a510807944b | 833 | py | Python | handypackages/subscribe/migrations/0001_initial.py | roundium/handypackages | b8a0e4952644144b31168f9a4ac8e743933d87c7 | [
"MIT"
] | 1 | 2019-07-31T11:40:06.000Z | 2019-07-31T11:40:06.000Z | handypackages/subscribe/migrations/0001_initial.py | roundium/handypackages | b8a0e4952644144b31168f9a4ac8e743933d87c7 | [
"MIT"
] | 10 | 2020-02-12T01:16:25.000Z | 2021-06-10T18:42:24.000Z | handypackages/subscribe/migrations/0001_initial.py | roundium/handypackages | b8a0e4952644144b31168f9a4ac8e743933d87c7 | [
"MIT"
] | 1 | 2019-07-31T11:40:18.000Z | 2019-07-31T11:40:18.000Z | # Generated by Django 2.2.1 on 2019-06-22 11:03
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='SubscribeModel',
fields=[
('id', models.Aut... | 29.75 | 114 | 0.57503 | 83 | 833 | 5.614458 | 0.626506 | 0.118026 | 0.064378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031034 | 0.303721 | 833 | 27 | 115 | 30.851852 | 0.772414 | 0.054022 | 0 | 0 | 1 | 0 | 0.156489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3e04f191bacc2a7d80fcd1ad9bb0b6bdef01714 | 788 | py | Python | 1.py | zweed4u/dailycodingproblem | 6e40eaad347e283f86a11adeff01c6426211a0be | [
"MIT"
] | null | null | null | 1.py | zweed4u/dailycodingproblem | 6e40eaad347e283f86a11adeff01c6426211a0be | [
"MIT"
] | null | null | null | 1.py | zweed4u/dailycodingproblem | 6e40eaad347e283f86a11adeff01c6426211a0be | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""
Good morning! Here's your coding interview problem for today.
This problem was recently asked by Google.
Given a list of numbers and a number k, return whether any two numbers from the list add up to k.
For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17.
Bonus: Can ... | 26.266667 | 97 | 0.593909 | 124 | 788 | 3.774194 | 0.580645 | 0.017094 | 0.021368 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041145 | 0.290609 | 788 | 29 | 98 | 27.172414 | 0.796064 | 0.467005 | 0 | 0.142857 | 0 | 0 | 0.138686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
a3f0b2c627b66a9afed0141c901b2c8dc3a62a08 | 1,265 | py | Python | peon/tests/test_project/test_file/test_function_def/test_functions/test_reflection_at_line.py | roch1990/peon | 0e9e40956c05138c0820fe380b354fdd1fe95e01 | [
"MIT"
] | 32 | 2020-05-18T14:02:59.000Z | 2022-02-06T15:00:12.000Z | peon/tests/test_project/test_file/test_function_def/test_functions/test_reflection_at_line.py | roch1990/peon | 0e9e40956c05138c0820fe380b354fdd1fe95e01 | [
"MIT"
] | 42 | 2020-05-22T20:29:08.000Z | 2021-03-10T21:24:23.000Z | peon/tests/test_project/test_file/test_function_def/test_functions/test_reflection_at_line.py | roch1990/peon | 0e9e40956c05138c0820fe380b354fdd1fe95e01 | [
"MIT"
] | 4 | 2020-07-02T06:32:42.000Z | 2022-01-24T22:46:02.000Z | import _ast
from peon.src.project.file.function_def.function import FunctionLint
class ReflectionAtLineFixture:
empty_node = _ast.Pass
is_instance_at_first_lvl = _ast.FunctionDef(id='isinstance', lineno=1)
type_at_first_lvl = _ast.FunctionDef(id='type', lineno=1)
is_instance_at_second_lvl = _ast.Func... | 30.119048 | 103 | 0.746245 | 160 | 1,265 | 5.46875 | 0.225 | 0.068571 | 0.082286 | 0.291429 | 0.654857 | 0.601143 | 0.541714 | 0.313143 | 0.164571 | 0 | 0 | 0.009234 | 0.143874 | 1,265 | 41 | 104 | 30.853659 | 0.798707 | 0 | 0 | 0.321429 | 0 | 0 | 0.022134 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.178571 | false | 0.035714 | 0.071429 | 0 | 0.464286 | 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 |
a3f0f192476289dad6988d88e198337f911d4da1 | 4,419 | py | Python | db2_funcs.py | Nama/A.T.S.P.-Website | 658db78da1b12c01ef9ead2dc44d1ecd97b178d8 | [
"MIT"
] | 4 | 2015-10-18T18:46:13.000Z | 2019-11-16T02:34:05.000Z | db2_funcs.py | Adventure-Terraria-Server-Project/A.T.S.P.-Website | 658db78da1b12c01ef9ead2dc44d1ecd97b178d8 | [
"MIT"
] | null | null | null | db2_funcs.py | Adventure-Terraria-Server-Project/A.T.S.P.-Website | 658db78da1b12c01ef9ead2dc44d1ecd97b178d8 | [
"MIT"
] | 2 | 2015-09-30T21:53:19.000Z | 2019-03-22T07:59:49.000Z | ###############################################################################
# #
'''Website Database-connection-related features''' #
# #
... | 33.992308 | 90 | 0.296673 | 324 | 4,419 | 3.938272 | 0.268519 | 0.076803 | 0.060345 | 0.076803 | 0.273511 | 0.22884 | 0.167712 | 0.125392 | 0.125392 | 0 | 0 | 0.012021 | 0.397601 | 4,419 | 129 | 91 | 34.255814 | 0.467318 | 0.009957 | 0 | 0.261538 | 0 | 0 | 0.129266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123077 | false | 0.015385 | 0.061538 | 0 | 0.261538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3fb5ed7db5f1e3f6fa910bcda6e0eacb2e1cb30 | 2,470 | py | Python | backends/fortify/summarize-fortify.py | tautschnig/one-line-scan | 24e1deedd595e3406eb8d5c69ff9629c5a87d0aa | [
"Apache-2.0"
] | 16 | 2018-05-21T09:53:01.000Z | 2022-02-15T08:48:11.000Z | backends/fortify/summarize-fortify.py | tautschnig/one-line-scan | 24e1deedd595e3406eb8d5c69ff9629c5a87d0aa | [
"Apache-2.0"
] | 6 | 2018-07-09T06:13:05.000Z | 2020-11-11T14:49:35.000Z | backends/fortify/summarize-fortify.py | tautschnig/one-line-scan | 24e1deedd595e3406eb8d5c69ff9629c5a87d0aa | [
"Apache-2.0"
] | 5 | 2019-05-27T19:51:48.000Z | 2021-12-14T13:04:49.000Z | #!/usr/bin/env python
#
# Copyright Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENS... | 33.835616 | 77 | 0.681781 | 358 | 2,470 | 4.703911 | 0.494413 | 0.035629 | 0.010689 | 0.011876 | 0.014252 | 0.014252 | 0 | 0 | 0 | 0 | 0 | 0.009305 | 0.173279 | 2,470 | 72 | 78 | 34.305556 | 0.815377 | 0.466397 | 0 | 0.105263 | 0 | 0 | 0.118513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
430006e2469bed3f7e4c977ba2de4f246799468c | 1,714 | py | Python | testsite/wsgi.py | stungkit/djaodjin-saas | 93c8631509ffd5b0fb91283cd4a4aeaf9826e97e | [
"BSD-2-Clause"
] | null | null | null | testsite/wsgi.py | stungkit/djaodjin-saas | 93c8631509ffd5b0fb91283cd4a4aeaf9826e97e | [
"BSD-2-Clause"
] | null | null | null | testsite/wsgi.py | stungkit/djaodjin-saas | 93c8631509ffd5b0fb91283cd4a4aeaf9826e97e | [
"BSD-2-Clause"
] | null | null | null | """
WSGI config for testsite project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION``... | 34.979592 | 80 | 0.748541 | 239 | 1,714 | 5.309623 | 0.539749 | 0.082742 | 0.042553 | 0.037825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171529 | 1,714 | 48 | 81 | 35.708333 | 0.893662 | 0.596266 | 0 | 0 | 0 | 0 | 0.145185 | 0.032593 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.210526 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4302245408f7928b493623fbaac5ca5daff6a97c | 229 | py | Python | kattis/Soda Slurper.py | jaredliw/python-question-bank | 9c8c246623d8d171f875700b57772df0afcbdcdf | [
"MIT"
] | 1 | 2021-04-08T07:49:15.000Z | 2021-04-08T07:49:15.000Z | kattis/Soda Slurper.py | jaredliw/leetcode-solutions | 9c8c246623d8d171f875700b57772df0afcbdcdf | [
"MIT"
] | null | null | null | kattis/Soda Slurper.py | jaredliw/leetcode-solutions | 9c8c246623d8d171f875700b57772df0afcbdcdf | [
"MIT"
] | 1 | 2022-01-23T02:12:24.000Z | 2022-01-23T02:12:24.000Z | # CPU: 0.06 s
possessed, found, condition = map(int, input().split())
possessed += found
count = 0
while possessed >= condition:
div, mod = divmod(possessed, condition)
count += div
possessed = div + mod
print(count)
| 22.9 | 55 | 0.663755 | 30 | 229 | 5.066667 | 0.566667 | 0.184211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021858 | 0.200873 | 229 | 9 | 56 | 25.444444 | 0.808743 | 0.048035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4304c73b6843ca7119c4f1f8d49418f514b2fb58 | 9,413 | py | Python | submodules/hal/analysis/constraintTurnover/turnoverModel.py | pbasting/cactus | 833d8ca015deecdfa5d0aca01211632cdaca9e58 | [
"MIT-0"
] | null | null | null | submodules/hal/analysis/constraintTurnover/turnoverModel.py | pbasting/cactus | 833d8ca015deecdfa5d0aca01211632cdaca9e58 | [
"MIT-0"
] | null | null | null | submodules/hal/analysis/constraintTurnover/turnoverModel.py | pbasting/cactus | 833d8ca015deecdfa5d0aca01211632cdaca9e58 | [
"MIT-0"
] | null | null | null | #!/usr/bin/env python
#Copyright (C) 2013 by Glenn Hickey
#
#Released under the MIT license, see LICENSE.txt
#!/usr/bin/env python
"""This is a two-state continuous time markov model: 0: unconstratined. 1: constrained. There are two transition rates to go between states. lossRate: 1->0 and gainRate: 0->1. Probabi... | 38.577869 | 282 | 0.566769 | 1,185 | 9,413 | 4.486076 | 0.211814 | 0.008653 | 0.031979 | 0.007524 | 0.382995 | 0.300038 | 0.233634 | 0.179458 | 0.160647 | 0.11851 | 0 | 0.030332 | 0.327526 | 9,413 | 243 | 283 | 38.736626 | 0.809479 | 0.17359 | 0 | 0.271277 | 0 | 0.005319 | 0.053083 | 0.00429 | 0 | 0 | 0 | 0 | 0.058511 | 0 | null | null | 0 | 0.053191 | null | null | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43064e88b72bbd60715e819272f83d07fbf6fa68 | 322 | py | Python | feed/migrations/0002_remove_player_finished_decks.py | kubapi/hater | fe4ef653e169143b9ea8cc17494e8e35b2a7bc76 | [
"MIT"
] | null | null | null | feed/migrations/0002_remove_player_finished_decks.py | kubapi/hater | fe4ef653e169143b9ea8cc17494e8e35b2a7bc76 | [
"MIT"
] | null | null | null | feed/migrations/0002_remove_player_finished_decks.py | kubapi/hater | fe4ef653e169143b9ea8cc17494e8e35b2a7bc76 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-06-13 19:58
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('feed', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='player',
name='finished_decks',
),
... | 17.888889 | 47 | 0.583851 | 34 | 322 | 5.441176 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084444 | 0.301242 | 322 | 17 | 48 | 18.941176 | 0.737778 | 0.139752 | 0 | 0 | 1 | 0 | 0.130909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4313de468396c7f2ca9e8be49eccd525b21cb61b | 309 | py | Python | test123.py | umousesonic/zinc | 9e170269d3b209a80ac79d5850894ddc1d95c62f | [
"BSD-3-Clause"
] | null | null | null | test123.py | umousesonic/zinc | 9e170269d3b209a80ac79d5850894ddc1d95c62f | [
"BSD-3-Clause"
] | null | null | null | test123.py | umousesonic/zinc | 9e170269d3b209a80ac79d5850894ddc1d95c62f | [
"BSD-3-Clause"
] | null | null | null | from runner import runner
if __name__ == '__main__':
r = runner()
p = 'public class main{public static void main (String[] args){' \
'public String StudentAnswer(String myInput){' \
'return "myOutput"; ' \
'}System.out.println("hello world!");}}'
print (r.sendCode(p, '')) | 34.333333 | 70 | 0.601942 | 35 | 309 | 5.085714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23301 | 309 | 9 | 71 | 34.333333 | 0.751055 | 0 | 0 | 0 | 0 | 0 | 0.53871 | 0.083871 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4318e19519ef3b4ec8fbfd551e4ad75ec635df69 | 9,102 | py | Python | src/transbigdata/CoordinatesConverter.py | cirno1w/transport | f088b4111992dd5ec6371db71cf1d26689cf8c26 | [
"BSD-3-Clause"
] | 1 | 2022-03-06T00:15:19.000Z | 2022-03-06T00:15:19.000Z | src/transbigdata/CoordinatesConverter.py | anitagraser/transbigdata | 0eb972c78f9154c0a3f780f197ef9af406b2bb71 | [
"BSD-3-Clause"
] | null | null | null | src/transbigdata/CoordinatesConverter.py | anitagraser/transbigdata | 0eb972c78f9154c0a3f780f197ef9af406b2bb71 | [
"BSD-3-Clause"
] | null | null | null |
import numpy as np
x_pi = 3.14159265358979324 * 3000.0 / 180.0
pi = 3.1415926535897932384626
a = 6378245.0
ee = 0.00669342162296594323
def gcj02tobd09(lng, lat):
"""
Convert coordinates from GCJ02 to BD09
Parameters
-------
lng : Series or number
Longitude
lat : Series or number
... | 28.267081 | 202 | 0.568556 | 1,216 | 9,102 | 4.234375 | 0.192434 | 0.051272 | 0.089726 | 0.042921 | 0.441833 | 0.408623 | 0.376966 | 0.357934 | 0.353661 | 0.353661 | 0 | 0.219756 | 0.297078 | 9,102 | 322 | 203 | 28.267081 | 0.585027 | 0.263349 | 0 | 0.415584 | 0 | 0 | 0.002607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.019481 | 0 | 0.162338 | 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 |
431a5970e46f202baf11c026a61fe4077fcce70d | 8,343 | py | Python | cloudify_rest_client/exceptions.py | aleixsanchis/cloudify-rest-client | 6acaadee8286ab647465824d3c8e13d4c43ca9ba | [
"Apache-2.0"
] | null | null | null | cloudify_rest_client/exceptions.py | aleixsanchis/cloudify-rest-client | 6acaadee8286ab647465824d3c8e13d4c43ca9ba | [
"Apache-2.0"
] | null | null | null | cloudify_rest_client/exceptions.py | aleixsanchis/cloudify-rest-client | 6acaadee8286ab647465824d3c8e13d4c43ca9ba | [
"Apache-2.0"
] | null | null | null | ########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. 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... | 31.364662 | 79 | 0.737744 | 869 | 8,343 | 6.932106 | 0.286536 | 0.041833 | 0.101096 | 0.049801 | 0.247344 | 0.229914 | 0.204847 | 0.173639 | 0.133466 | 0.097278 | 0 | 0.002261 | 0.204842 | 8,343 | 265 | 80 | 31.483019 | 0.905788 | 0.408366 | 0 | 0.084211 | 0 | 0 | 0.158084 | 0.134698 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0.031579 | 0.621053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
431a7feaee1aa406c7c2670e03999a74240a7466 | 475 | py | Python | api/error_handler.py | chuo06/palindrome | 57660301390d7b2b05780e1f6ab0343e43726619 | [
"MIT"
] | null | null | null | api/error_handler.py | chuo06/palindrome | 57660301390d7b2b05780e1f6ab0343e43726619 | [
"MIT"
] | 1 | 2015-10-22T16:56:55.000Z | 2015-10-22T16:56:55.000Z | api/error_handler.py | chuo06/palindrome | 57660301390d7b2b05780e1f6ab0343e43726619 | [
"MIT"
] | null | null | null | from functools import wraps
from werkzeug.exceptions import HTTPException
from api.exceptions import MessageNotFound
def api_error_handler(func):
@wraps(func)
def handle_errors(*args, **kwargs):
try:
return func(*args, **kwargs)
except MessageNotFound as e:
return e.mes... | 25 | 45 | 0.650526 | 52 | 475 | 5.865385 | 0.538462 | 0.104918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 0.286316 | 475 | 18 | 46 | 26.388889 | 0.882006 | 0 | 0 | 0 | 0 | 0 | 0.037895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.2 | 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 |
431a878ee70ba62b9e15ce81300906f432dc9b82 | 406 | py | Python | src/nile/core/run.py | kootsZhin/nile | 5b685158c06418a126229cfbcaeaaf78a38cd8a0 | [
"MIT"
] | 121 | 2021-10-30T08:42:44.000Z | 2022-03-31T13:17:58.000Z | src/nile/core/run.py | kootsZhin/nile | 5b685158c06418a126229cfbcaeaaf78a38cd8a0 | [
"MIT"
] | 56 | 2021-10-31T16:45:06.000Z | 2022-03-31T04:41:08.000Z | src/nile/core/run.py | kootsZhin/nile | 5b685158c06418a126229cfbcaeaaf78a38cd8a0 | [
"MIT"
] | 22 | 2021-11-18T11:24:56.000Z | 2022-03-30T08:15:18.000Z | """Command to run Nile scripts."""
import logging
from importlib.machinery import SourceFileLoader
from nile.nre import NileRuntimeEnvironment
def run(path, network):
"""Run nile scripts passing on the NRE object."""
logger = logging.getLogger()
logger.disabled = True
script = SourceFileLoader("scrip... | 27.066667 | 59 | 0.73399 | 47 | 406 | 6.319149 | 0.574468 | 0.047138 | 0.094276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165025 | 406 | 14 | 60 | 29 | 0.876106 | 0.17734 | 0 | 0 | 0 | 0 | 0.018576 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
431ad1cf3cfa9d05b69ae287dc97e25b7fff4c83 | 548 | py | Python | Python/Basic Data Types/Lists/Solution.py | PawarAditi/HackerRank | fcd9d1450ee293372ce5f1d4a3b7284ecf472657 | [
"MIT"
] | 219 | 2018-06-17T19:47:22.000Z | 2022-03-27T15:28:56.000Z | Python/Basic Data Types/Lists/Solution.py | PawarAditi/HackerRank | fcd9d1450ee293372ce5f1d4a3b7284ecf472657 | [
"MIT"
] | 2 | 2020-08-12T16:47:41.000Z | 2020-12-15T17:05:57.000Z | Python/Basic Data Types/Lists/Solution.py | PawarAditi/HackerRank | fcd9d1450ee293372ce5f1d4a3b7284ecf472657 | [
"MIT"
] | 182 | 2018-12-12T21:36:50.000Z | 2022-03-26T17:49:51.000Z | array = []
for _ in range(int(input())):
command = input().strip().split(" ")
cmd_type = command[0]
if (cmd_type == "print"):
print(array)
elif (cmd_type == "sort"):
array.sort()
elif (cmd_type == "reverse"):
array.reverse()
elif (cmd_type == "pop"):
array.pop()
... | 30.444444 | 54 | 0.541971 | 68 | 548 | 4.235294 | 0.338235 | 0.194444 | 0.229167 | 0.104167 | 0.152778 | 0.152778 | 0 | 0 | 0 | 0 | 0 | 0.012285 | 0.257299 | 548 | 18 | 54 | 30.444444 | 0.695332 | 0 | 0 | 0 | 0 | 0 | 0.069217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 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 |
431c1fde6c2d30474384ca5aeeb0ee0eb0db4a71 | 5,096 | py | Python | mundiapi/models/update_plan_request.py | hugocpolos/MundiAPI-PYTHON | 164545cc58bf18c946d5456e9ba4d55a378a339a | [
"MIT"
] | 10 | 2017-08-30T15:53:00.000Z | 2021-02-11T18:06:56.000Z | mundiapi/models/update_plan_request.py | hugocpolos/MundiAPI-PYTHON | 164545cc58bf18c946d5456e9ba4d55a378a339a | [
"MIT"
] | 4 | 2018-05-05T15:15:09.000Z | 2021-12-22T00:52:41.000Z | mundiapi/models/update_plan_request.py | hugocpolos/MundiAPI-PYTHON | 164545cc58bf18c946d5456e9ba4d55a378a339a | [
"MIT"
] | 7 | 2017-04-27T13:46:52.000Z | 2021-04-14T13:44:23.000Z | # -*- coding: utf-8 -*-
"""
mundiapi
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
class UpdatePlanRequest(object):
"""Implementation of the 'UpdatePlanRequest' model.
Request for updating a plan
Attributes:
name (string): Plan's n... | 35.144828 | 84 | 0.577119 | 476 | 5,096 | 6.014706 | 0.228992 | 0.06811 | 0.047153 | 0.037723 | 0.05344 | 0.020957 | 0 | 0 | 0 | 0 | 0 | 0.000903 | 0.348312 | 5,096 | 144 | 85 | 35.388889 | 0.861186 | 0.300432 | 0 | 0 | 1 | 0 | 0.156481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
432a6247ae50ed5ff0d32ef0b60b3d2a095bea22 | 1,441 | py | Python | vision_datasets/common/dataset_registry.py | shonohs/vision-datasets | bdd0ebf5c0c0561486ebb0b96600196b2b89f77c | [
"MIT"
] | null | null | null | vision_datasets/common/dataset_registry.py | shonohs/vision-datasets | bdd0ebf5c0c0561486ebb0b96600196b2b89f77c | [
"MIT"
] | null | null | null | vision_datasets/common/dataset_registry.py | shonohs/vision-datasets | bdd0ebf5c0c0561486ebb0b96600196b2b89f77c | [
"MIT"
] | null | null | null | import copy
import json
from .dataset_info import DatasetInfoFactory
class DatasetRegistry:
"""
A central registry of all available datasets
"""
def __init__(self, datasets_json: str):
self.datasets = [DatasetInfoFactory.create(d) for d in json.loads(datasets_json)]
def get_dataset_info(... | 36.948718 | 129 | 0.679389 | 180 | 1,441 | 5.183333 | 0.355556 | 0.064309 | 0.019293 | 0.015005 | 0.038585 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001821 | 0.238029 | 1,441 | 38 | 130 | 37.921053 | 0.847905 | 0.030534 | 0 | 0 | 0 | 0 | 0.03693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.25 | 0.035714 | 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 |
432b745399b0d0440cefd7ae239847b77b6d7688 | 3,009 | py | Python | crypt.py | ElyTgy/VaultDB | 9eef6f7298d26bd9a18d403971e1c3c6e7a2bf8a | [
"MIT"
] | 2 | 2021-09-27T07:40:21.000Z | 2021-10-04T17:32:40.000Z | crypt.py | ElyTgy/VaultDB | 9eef6f7298d26bd9a18d403971e1c3c6e7a2bf8a | [
"MIT"
] | 3 | 2021-10-01T17:47:20.000Z | 2021-10-21T07:57:13.000Z | crypt.py | ElyTgy/VaultDB | 9eef6f7298d26bd9a18d403971e1c3c6e7a2bf8a | [
"MIT"
] | 3 | 2021-09-26T13:26:05.000Z | 2021-10-22T02:53:20.000Z | # Importing Fernet class
from cryptography.fernet import Fernet
# Importing dump and load function
from pickle import dump,load
# To generate a strong pw
def generate_pw():
from random import choice
choices = list("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_-+=.,/<>?;:\\|[... | 30.393939 | 114 | 0.613825 | 393 | 3,009 | 4.671756 | 0.307888 | 0.030501 | 0.023965 | 0.030501 | 0.351852 | 0.333333 | 0.3061 | 0.294118 | 0.218954 | 0.218954 | 0 | 0.007692 | 0.30874 | 3,009 | 99 | 115 | 30.393939 | 0.875 | 0.384181 | 0 | 0.37037 | 1 | 0 | 0.113769 | 0.053092 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0.018519 | 0.074074 | 0 | 0.351852 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4331f36c8fbfd4af3f45057825bf7f902a91aa4d | 2,911 | py | Python | application/model/radar_score_20180117/score_calculate.py | ace-gabriel/chrome-extension | be0b7d7278f56f8218be7f734b3fb1e05a4f3eb9 | [
"MIT"
] | 4 | 2018-09-11T22:27:55.000Z | 2018-11-16T22:54:14.000Z | application/model/radar_score_20180117/score_calculate.py | ace-gabriel/chrome-extension | be0b7d7278f56f8218be7f734b3fb1e05a4f3eb9 | [
"MIT"
] | null | null | null | application/model/radar_score_20180117/score_calculate.py | ace-gabriel/chrome-extension | be0b7d7278f56f8218be7f734b3fb1e05a4f3eb9 | [
"MIT"
] | null | null | null | # coding: utf-8
import pickle
# import json
# import types
path = 'application/model/radar_score_20180117/'
def f(x, x_range, score):
bottom = 20
y = []
for i in x:
if i < x_range[0]:
pos = 0
else:
for j in range(len(x_range)):
if j == len(x_range) - 1 or \
i >= x_range[... | 27.72381 | 103 | 0.564411 | 417 | 2,911 | 3.788969 | 0.244604 | 0.063291 | 0.04557 | 0.032911 | 0.139873 | 0.049367 | 0.049367 | 0.049367 | 0.041772 | 0.041772 | 0 | 0.030894 | 0.277224 | 2,911 | 104 | 104 | 27.990385 | 0.720057 | 0.176572 | 0 | 0.063492 | 0 | 0 | 0.26043 | 0.016435 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015873 | null | null | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
43338fccc231cf2b75bc14f3df4523f468ef4c58 | 347 | py | Python | evetool/urls.py | Sult/evetool | 155db9f3b0ecc273fe3c75daf8f9c6f37cb3e47f | [
"MIT"
] | null | null | null | evetool/urls.py | Sult/evetool | 155db9f3b0ecc273fe3c75daf8f9c6f37cb3e47f | [
"MIT"
] | null | null | null | evetool/urls.py | Sult/evetool | 155db9f3b0ecc273fe3c75daf8f9c6f37cb3e47f | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
urlpatterns = [
# Examples:
# url(r'^$', 'evetool.views.home', name='home'),
url(r'^', include('users.urls')),
url(r'^', include('apis.urls')),
] + static(settings.STATIC_URL, document_... | 31.545455 | 67 | 0.691643 | 47 | 347 | 5.042553 | 0.425532 | 0.126582 | 0.177215 | 0.151899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135447 | 347 | 10 | 68 | 34.7 | 0.79 | 0.161383 | 0 | 0 | 0 | 0 | 0.072917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4336c7b257868aa7e53dc95e1f352acf6bc002a4 | 175 | py | Python | simple_exercises/lanesexercises/py_functions2/rep_ex3.py | ilante/programming_immanuela_englander | 45d51c99b09ae335a67e03ac5ea79fc775bdf0bd | [
"MIT"
] | null | null | null | simple_exercises/lanesexercises/py_functions2/rep_ex3.py | ilante/programming_immanuela_englander | 45d51c99b09ae335a67e03ac5ea79fc775bdf0bd | [
"MIT"
] | null | null | null | simple_exercises/lanesexercises/py_functions2/rep_ex3.py | ilante/programming_immanuela_englander | 45d51c99b09ae335a67e03ac5ea79fc775bdf0bd | [
"MIT"
] | null | null | null |
# 3. Define a function to check whether a number is even
def even(num):
if num%2 == 0:
return True
else:
return False
print(even(4))
print(even(-5))
| 15.909091 | 56 | 0.6 | 29 | 175 | 3.62069 | 0.758621 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040323 | 0.291429 | 175 | 10 | 57 | 17.5 | 0.806452 | 0.308571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0.285714 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
433c71e69aaf2d22844233c421ede8abdf861e77 | 241 | py | Python | linter.py | dndrsn/SublimeLinter-contrib-cspell | ba2335a9282335e52282ee93f3bb2a55f9536984 | [
"MIT"
] | null | null | null | linter.py | dndrsn/SublimeLinter-contrib-cspell | ba2335a9282335e52282ee93f3bb2a55f9536984 | [
"MIT"
] | null | null | null | linter.py | dndrsn/SublimeLinter-contrib-cspell | ba2335a9282335e52282ee93f3bb2a55f9536984 | [
"MIT"
] | null | null | null | from SublimeLinter.lint import Linter, STREAM_STDOUT
class CSpell(Linter):
cmd = 'cspell stdin'
defaults = {'selector': 'source'}
regex = r'^[^:]*:(?P<line>\d+):(?P<col>\d+) - (?P<message>.*)$'
error_stream = STREAM_STDOUT
| 26.777778 | 67 | 0.618257 | 30 | 241 | 4.866667 | 0.733333 | 0.164384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170124 | 241 | 8 | 68 | 30.125 | 0.73 | 0 | 0 | 0 | 0 | 0 | 0.323651 | 0.136929 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43468039289e0d25ecbf534436703bc05e6e79e6 | 5,156 | py | Python | python/app/plugins/http/Struts2/S2_052.py | taomujian/linbing | fe772a58f41e3b046b51a866bdb7e4655abaf51a | [
"MIT"
] | 351 | 2020-02-26T05:23:26.000Z | 2022-03-26T12:39:19.000Z | python/app/plugins/http/Struts2/S2_052.py | taomujian/linbing | fe772a58f41e3b046b51a866bdb7e4655abaf51a | [
"MIT"
] | 15 | 2020-03-26T07:31:49.000Z | 2022-03-09T02:12:17.000Z | python/app/plugins/http/Struts2/S2_052.py | taomujian/linbing | fe772a58f41e3b046b51a866bdb7e4655abaf51a | [
"MIT"
] | 99 | 2020-02-28T07:30:46.000Z | 2022-03-16T16:41:09.000Z | #!/usr/bin/env python3
from app.lib.utils.request import request
from app.lib.utils.encode import base64encode
from app.lib.utils.common import get_capta, get_useragent
class S2_052_BaseVerify:
def __init__(self, url):
self.info = {
'name': 'S2-052漏洞,又名CVE-2017-9805漏洞',
'descriptio... | 48.641509 | 138 | 0.413693 | 380 | 5,156 | 5.531579 | 0.439474 | 0.038059 | 0.068506 | 0.095147 | 0.227402 | 0.20647 | 0.161751 | 0.123216 | 0.123216 | 0.123216 | 0 | 0.027283 | 0.488169 | 5,156 | 106 | 139 | 48.641509 | 0.769231 | 0.014546 | 0 | 0.087912 | 0 | 0.065934 | 0.771519 | 0.225902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021978 | false | 0.010989 | 0.032967 | 0 | 0.098901 | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4346e00af4df20f2f609af7be11fe806991cbce3 | 905 | py | Python | UPD/extension/utils.py | RIDCorix/UPD | 8694d119181a4afffafbfbab510f697399c1ea13 | [
"MIT"
] | null | null | null | UPD/extension/utils.py | RIDCorix/UPD | 8694d119181a4afffafbfbab510f697399c1ea13 | [
"MIT"
] | null | null | null | UPD/extension/utils.py | RIDCorix/UPD | 8694d119181a4afffafbfbab510f697399c1ea13 | [
"MIT"
] | null | null | null | import sys
# def get_tools():
# manager = PluginManager()
# manager.setPluginPlaces(["plugins/file_cabinet"])
# manager.collectPlugins()
# return [plugin.plugin_object for plugin in manager.getAllPlugins()]
def get_tools():
import importlib
tools = ['file_cabinet', 'us', 'automator', 'main']
... | 34.807692 | 85 | 0.654144 | 102 | 905 | 5.588235 | 0.45098 | 0.112281 | 0.038596 | 0.059649 | 0.203509 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005626 | 0.214365 | 905 | 25 | 86 | 36.2 | 0.796062 | 0.222099 | 0 | 0 | 0 | 0 | 0.146132 | 0.067335 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
434716a29a916c0a3138b2d8297566e972c6c138 | 7,640 | py | Python | sgcache/control.py | vfxetc/sgcache | 670bfac2904373e19c2dac7504d2d7f87018833d | [
"BSD-3-Clause"
] | 13 | 2017-09-06T21:48:57.000Z | 2022-02-08T20:50:52.000Z | sgcache/control.py | vfxetc/sgcache | 670bfac2904373e19c2dac7504d2d7f87018833d | [
"BSD-3-Clause"
] | 1 | 2021-04-04T18:07:04.000Z | 2021-04-04T18:07:04.000Z | sgcache/control.py | vfxetc/sgcache | 670bfac2904373e19c2dac7504d2d7f87018833d | [
"BSD-3-Clause"
] | 1 | 2019-07-19T01:23:19.000Z | 2019-07-19T01:23:19.000Z | from __future__ import absolute_import
from select import select
import errno
import functools
import itertools
import json
import logging
import os
import socket
import threading
import time
import traceback
log = logging.getLogger(__name__)
from .utils import makedirs, unlink
class TimeOut(Exception):
pass
... | 27.383513 | 109 | 0.534817 | 890 | 7,640 | 4.446067 | 0.194382 | 0.02881 | 0.025777 | 0.024008 | 0.257266 | 0.196614 | 0.157695 | 0.144049 | 0.144049 | 0.109679 | 0 | 0.002698 | 0.369241 | 7,640 | 278 | 110 | 27.482014 | 0.818427 | 0.026963 | 0 | 0.373206 | 0 | 0 | 0.042272 | 0 | 0 | 0 | 0 | 0.003597 | 0 | 0 | null | null | 0.009569 | 0.062201 | 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 |
434721dba4ee0af8165b368cf20f7e199d6dcfdf | 502 | py | Python | lantz/drivers/tektronix/tds1002b.py | mtsolmn/lantz-drivers | f48caf9000ddd08f2abb837d832e341410af4788 | [
"BSD-3-Clause"
] | 4 | 2019-05-04T00:10:53.000Z | 2020-10-22T18:08:40.000Z | lantz/drivers/tektronix/tds1002b.py | mtsolmn/lantz-drivers | f48caf9000ddd08f2abb837d832e341410af4788 | [
"BSD-3-Clause"
] | 3 | 2019-07-12T13:44:17.000Z | 2020-10-22T19:32:08.000Z | lantz/drivers/tektronix/tds1002b.py | mtsolmn/lantz-drivers | f48caf9000ddd08f2abb837d832e341410af4788 | [
"BSD-3-Clause"
] | 9 | 2019-04-03T17:07:03.000Z | 2021-02-15T21:53:55.000Z | # -*- coding: utf-8 -*-
"""
lantz.drivers.tektronix.tds1012
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Implements the drivers to control an oscilloscope.
:copyright: 2015 by Lantz Authors, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from lantz.core import Feat, MessageBase... | 22.818182 | 68 | 0.633466 | 57 | 502 | 5.526316 | 0.77193 | 0.044444 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052369 | 0.201195 | 502 | 21 | 69 | 23.904762 | 0.733167 | 0.496016 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0.044444 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
4a2f4eecfe75a9c91356c84f877db3d3e9fc53fc | 2,139 | py | Python | iHome/house/models.py | yeyuning1/iHome | aceb87d786ab66cf74ff47f549ec73388d21c9e3 | [
"MIT"
] | 2 | 2019-08-13T07:34:35.000Z | 2019-08-13T08:11:46.000Z | iHome/house/models.py | yeyuning1/iHome | aceb87d786ab66cf74ff47f549ec73388d21c9e3 | [
"MIT"
] | null | null | null | iHome/house/models.py | yeyuning1/iHome | aceb87d786ab66cf74ff47f549ec73388d21c9e3 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
from utils.models import BaseModel
class House(BaseModel):
'''房屋信息'''
user = models.ForeignKey('users.User', on_delete=models.CASCADE, verbose_name='房屋用户')
area = models.ForeignKey('address.Area', on_delete=models.SET_NULL, null=True, verbo... | 41.941176 | 104 | 0.697522 | 260 | 2,139 | 5.523077 | 0.346154 | 0.206825 | 0.087744 | 0.116992 | 0.410864 | 0.268802 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0.179523 | 2,139 | 50 | 105 | 42.78 | 0.803419 | 0.033193 | 0 | 0.166667 | 0 | 0 | 0.087131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a31433e8acb3aa3c417194791048caf8fdb3d24 | 15,863 | py | Python | cltwit/main.py | Psycojoker/cltwit | 3164f263df60d608da124ceb7d1e56bbdde7c930 | [
"WTFPL",
"Unlicense"
] | null | null | null | cltwit/main.py | Psycojoker/cltwit | 3164f263df60d608da124ceb7d1e56bbdde7c930 | [
"WTFPL",
"Unlicense"
] | null | null | null | cltwit/main.py | Psycojoker/cltwit | 3164f263df60d608da124ceb7d1e56bbdde7c930 | [
"WTFPL",
"Unlicense"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Cltwit is a command line twitter utility
Author : Jérôme Launay
Date : 2013
"""
import os
import sys
import re
import getopt
import gettext
import sqlite3
import webbrowser
import ConfigParser
from sqlite2csv import sqlite2csv
from cltwitdb import cltwitdb
from utils... | 36.635104 | 140 | 0.566034 | 1,890 | 15,863 | 4.621164 | 0.234392 | 0.017518 | 0.012594 | 0.012022 | 0.272269 | 0.236432 | 0.178154 | 0.173918 | 0.154225 | 0.154225 | 0 | 0.011848 | 0.313623 | 15,863 | 432 | 141 | 36.719907 | 0.79032 | 0.100801 | 0 | 0.278638 | 0 | 0.003096 | 0.201855 | 0.004455 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.024768 | 0.049536 | null | null | 0.167183 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a38f4cdb8c158390444f36146a5ad23b2ae9c67 | 4,998 | py | Python | jenkinsapi/view.py | julienduchesne/jenkinsapi | 369dc54a8d5bb1f4e985c647378b9e1e62c26961 | [
"MIT"
] | null | null | null | jenkinsapi/view.py | julienduchesne/jenkinsapi | 369dc54a8d5bb1f4e985c647378b9e1e62c26961 | [
"MIT"
] | 52 | 2019-06-25T12:47:14.000Z | 2021-04-12T12:24:08.000Z | jenkinsapi/view.py | klauern/jenkinsapi | 605ad22a0109d3f51452c7abd23b0376a44682da | [
"MIT"
] | null | null | null | """
Module for jenkinsapi views
"""
import six
import logging
from jenkinsapi.jenkinsbase import JenkinsBase
from jenkinsapi.job import Job
from jenkinsapi.custom_exceptions import NotFound
log = logging.getLogger(__name__)
class View(JenkinsBase):
"""
View class
"""
def __init__(self, url, name,... | 30.290909 | 79 | 0.580232 | 656 | 4,998 | 4.181402 | 0.204268 | 0.051039 | 0.047393 | 0.030623 | 0.302588 | 0.233686 | 0.131243 | 0.089683 | 0.068538 | 0.034998 | 0 | 0.00324 | 0.320728 | 4,998 | 164 | 80 | 30.47561 | 0.804713 | 0.131253 | 0 | 0.108911 | 0 | 0 | 0.061435 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 1 | 0.207921 | false | 0 | 0.049505 | 0.09901 | 0.445545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4a41ae80cb8630870b8a540d9da1afa369fa489a | 2,875 | py | Python | supertokens_python/recipe_module.py | girish946/supertokens-python | ce0e7f6035941b3a8d3d1f7ae867224fd9c41c3c | [
"Apache-2.0"
] | 36 | 2021-10-05T17:06:07.000Z | 2022-03-29T14:11:39.000Z | supertokens_python/recipe_module.py | girish946/supertokens-python | ce0e7f6035941b3a8d3d1f7ae867224fd9c41c3c | [
"Apache-2.0"
] | 56 | 2021-09-02T08:24:29.000Z | 2022-03-30T07:29:07.000Z | supertokens_python/recipe_module.py | girish946/supertokens-python | ce0e7f6035941b3a8d3d1f7ae867224fd9c41c3c | [
"Apache-2.0"
] | 8 | 2022-01-28T14:49:55.000Z | 2022-03-26T01:28:38.000Z | # Copyright (c) 2021, VRAI Labs and/or its affiliates. All rights reserved.
#
# This software is licensed under the Apache License, Version 2.0 (the
# "License") as published by the Apache Software Foundation.
#
# You may not use this file except in compliance with the License. You may
# obtain a copy of the License at... | 34.638554 | 119 | 0.718261 | 378 | 2,875 | 5.240741 | 0.37037 | 0.030288 | 0.027764 | 0.036345 | 0.131247 | 0.061585 | 0 | 0 | 0 | 0 | 0 | 0.00354 | 0.213913 | 2,875 | 82 | 120 | 35.060976 | 0.873009 | 0.227826 | 0 | 0.192308 | 0 | 0 | 0.012693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.096154 | 0.211538 | 0.038462 | 0.480769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4a4408798c8290d4f3dfdd7e187e5ce0fde47eee | 1,018 | py | Python | 2015/main/13/part2.py | sgravrock/adventofcode | 1f5263ee242c8446ac1c08d2aef195a0a4595ccb | [
"MIT"
] | null | null | null | 2015/main/13/part2.py | sgravrock/adventofcode | 1f5263ee242c8446ac1c08d2aef195a0a4595ccb | [
"MIT"
] | null | null | null | 2015/main/13/part2.py | sgravrock/adventofcode | 1f5263ee242c8446ac1c08d2aef195a0a4595ccb | [
"MIT"
] | null | null | null | import sys
import itertools
def readfile(f):
result = {}
for line in f:
fields = line.rstrip().split(" ")
p1 = fields[0]
p2 = fields[10].replace(".", "")
n = int(fields[3])
if fields[2] == "lose":
n *= -1
result[(p1, p2)] = n
return result
def optimal(config):
add_self(config)
diners = set([k[0] f... | 23.674419 | 76 | 0.650295 | 163 | 1,018 | 3.97546 | 0.355828 | 0.046296 | 0.040123 | 0.024691 | 0.064815 | 0.064815 | 0.064815 | 0.064815 | 0 | 0 | 0 | 0.024823 | 0.168959 | 1,018 | 42 | 77 | 24.238095 | 0.741135 | 0 | 0 | 0 | 0 | 0 | 0.021611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057143 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a444c988302d74c981cef9771e8cb5c4e9d2945 | 29,855 | py | Python | networking/connection/stun_client.py | bcgrendel/python_networking | b4c847d9eeeea078868b8dcb3d385e02eb0b8e96 | [
"MIT"
] | null | null | null | networking/connection/stun_client.py | bcgrendel/python_networking | b4c847d9eeeea078868b8dcb3d385e02eb0b8e96 | [
"MIT"
] | null | null | null | networking/connection/stun_client.py | bcgrendel/python_networking | b4c847d9eeeea078868b8dcb3d385e02eb0b8e96 | [
"MIT"
] | null | null | null | import socket
import sys
import traceback
import struct
import threading;
from threading import Thread;
import time;
import datetime;
import json
#import buffered_message;
import hashlib
from Crypto.PublicKey import RSA
from connection_state import ConnectionState
# publickey = RSA.importKey(key_string)
import tcp;
im... | 38.374036 | 197 | 0.73589 | 4,073 | 29,855 | 5.138227 | 0.115394 | 0.052179 | 0.017202 | 0.009461 | 0.454224 | 0.377341 | 0.319381 | 0.282445 | 0.241638 | 0.226395 | 0 | 0.005943 | 0.165835 | 29,855 | 777 | 198 | 38.423423 | 0.834404 | 0.146341 | 0 | 0.300439 | 0 | 0 | 0.054777 | 0.003313 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.046053 | 0.032895 | null | null | 0.019737 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a4d871b786cc8a162c159d5da63831c271b0be6 | 956 | py | Python | experiments/nmt/utils/vocabulary_coverage.py | lvapeab/GroundHog_INMT | d5ad1d466eaf5040e99b9aaaa1b28c96402436ce | [
"BSD-3-Clause"
] | null | null | null | experiments/nmt/utils/vocabulary_coverage.py | lvapeab/GroundHog_INMT | d5ad1d466eaf5040e99b9aaaa1b28c96402436ce | [
"BSD-3-Clause"
] | null | null | null | experiments/nmt/utils/vocabulary_coverage.py | lvapeab/GroundHog_INMT | d5ad1d466eaf5040e99b9aaaa1b28c96402436ce | [
"BSD-3-Clause"
] | null | null | null | import cPickle
import argparse
parser = argparse.ArgumentParser(
"Computes the coverage of a shortlist in a corpus file")
parser.add_argument("--vocab",
required=True, help="Vocabulary to use (.pkl)")
parser.add_argument("--text",
required=True, help="Beam size, turn... | 28.117647 | 140 | 0.621339 | 141 | 956 | 4.078014 | 0.41844 | 0.104348 | 0.057391 | 0.045217 | 0.071304 | 0.071304 | 0.071304 | 0 | 0 | 0 | 0 | 0.008463 | 0.258368 | 956 | 33 | 141 | 28.969697 | 0.802539 | 0 | 0 | 0 | 0 | 0 | 0.191423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a54b5369073023cda9e88293fbf883952f8a99e | 493 | py | Python | notion/ctx.py | jfhbrook/notion-tools | dd7c7fb07f98deaf5bba236aa5b4ea3d09ff0f3d | [
"MIT"
] | 1 | 2022-01-19T22:24:35.000Z | 2022-01-19T22:24:35.000Z | notion/ctx.py | jfhbrook/notion-tools | dd7c7fb07f98deaf5bba236aa5b4ea3d09ff0f3d | [
"MIT"
] | 4 | 2021-12-28T05:15:49.000Z | 2021-12-28T05:18:25.000Z | notion/ctx.py | jfhbrook/notion-tools | dd7c7fb07f98deaf5bba236aa5b4ea3d09ff0f3d | [
"MIT"
] | null | null | null | from notion.client import NotionClient
from notion.settings import Settings
class Context:
def __init__(self):
self.settings = Settings.from_file()
self._client = None
def get_client(self):
if not self._client:
self.settings.validate()
self._client = NotionClie... | 27.388889 | 84 | 0.6714 | 58 | 493 | 5.5 | 0.413793 | 0.188088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002653 | 0.235294 | 493 | 17 | 85 | 29 | 0.843501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4a5d879c71ea4b0d47b4f6335a7e75debaa68573 | 1,368 | py | Python | modules/voxelman/config.py | Relintai/pandemonium_engine | 3de05db75a396b497f145411f71eb363572b38ae | [
"MIT",
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null | modules/voxelman/config.py | Relintai/pandemonium_engine | 3de05db75a396b497f145411f71eb363572b38ae | [
"MIT",
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null | modules/voxelman/config.py | Relintai/pandemonium_engine | 3de05db75a396b497f145411f71eb363572b38ae | [
"MIT",
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null |
def can_build(env, platform):
return True
def configure(env):
pass
def get_doc_classes():
return [
"WorldArea",
"VoxelLight",
"VoxelLightNode",
"VoxelLevelGenerator",
"VoxelLevelGeneratorFlat",
"VoxelSurfaceMerger",
"VoxelSurfaceSimple",
... | 18.739726 | 35 | 0.576754 | 65 | 1,368 | 12.046154 | 0.830769 | 0.015326 | 0.022989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.318713 | 1,368 | 72 | 36 | 19 | 0.840129 | 0 | 0 | 0.039216 | 0 | 0 | 0.506589 | 0.13104 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0.019608 | 0 | 0.058824 | 0.137255 | 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 |
4a6725140b49d63b56d6ce94163eb9cfc057133e | 4,295 | py | Python | content_generator/vitae.py | empiricalstateofmind/personal_website | cb361f9fd6bd1b1dc8dd39c87cc003d847ae4a2c | [
"MIT"
] | null | null | null | content_generator/vitae.py | empiricalstateofmind/personal_website | cb361f9fd6bd1b1dc8dd39c87cc003d847ae4a2c | [
"MIT"
] | 3 | 2015-09-10T09:26:29.000Z | 2015-10-30T10:47:33.000Z | content_generator/vitae.py | empiricalstateofmind/personal_website | cb361f9fd6bd1b1dc8dd39c87cc003d847ae4a2c | [
"MIT"
] | null | null | null | # Generate the vitae.json file used to populate the Vitae section of the website.
import pandas as pd
import re
from datetime import datetime
from collections import defaultdict
import json
# Publications
def create_publications(filepath):
publications = pd.read_excel(filepath, sheet_name='publicati... | 33.818898 | 102 | 0.563213 | 416 | 4,295 | 5.677885 | 0.302885 | 0.015241 | 0.018628 | 0.032176 | 0.15326 | 0.096528 | 0.049111 | 0.049111 | 0.049111 | 0.049111 | 0 | 0.002384 | 0.316414 | 4,295 | 127 | 103 | 33.818898 | 0.802112 | 0.043539 | 0 | 0.022727 | 1 | 0 | 0.132227 | 0.024384 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.056818 | 0 | 0.147727 | 0 | 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 |
4a6776593c88474050fcd17038b16a7c7bc8d4c6 | 7,509 | py | Python | cement/ext/ext_generate.py | tomekr/cement | fece8629c48bcd598fd61d8aa7457a5df4c4f831 | [
"BSD-3-Clause"
] | 826 | 2015-01-09T13:23:35.000Z | 2022-03-18T01:19:40.000Z | cement/ext/ext_generate.py | tomekr/cement | fece8629c48bcd598fd61d8aa7457a5df4c4f831 | [
"BSD-3-Clause"
] | 316 | 2015-01-14T10:35:22.000Z | 2022-03-08T17:18:10.000Z | cement/ext/ext_generate.py | tomekr/cement | fece8629c48bcd598fd61d8aa7457a5df4c4f831 | [
"BSD-3-Clause"
] | 112 | 2015-01-10T15:04:26.000Z | 2022-03-16T08:11:58.000Z | """
Cement generate extension module.
"""
import re
import os
import inspect
import yaml
import shutil
from .. import Controller, minimal_logger, shell
from ..utils.version import VERSION, get_version
LOG = minimal_logger(__name__)
class GenerateTemplateAbstractBase(Controller):
class Meta:
pass
de... | 35.088785 | 80 | 0.481555 | 754 | 7,509 | 4.669761 | 0.233422 | 0.023857 | 0.015337 | 0.011928 | 0.088043 | 0.077251 | 0.077251 | 0.077251 | 0.077251 | 0.077251 | 0 | 0.001276 | 0.373818 | 7,509 | 213 | 81 | 35.253521 | 0.747554 | 0.072446 | 0 | 0.149068 | 1 | 0 | 0.14475 | 0.005617 | 0 | 0 | 0 | 0.004695 | 0.031056 | 1 | 0.043478 | false | 0.006211 | 0.049689 | 0 | 0.142857 | 0.006211 | 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 |
4a71705f7aaede9643300a7a698cb26841f08adc | 1,936 | py | Python | tests/test_pandas.py | ONSdigital/ons_utils | 5ff0952c174984deb601af8ad4c21f26c7b24623 | [
"MIT"
] | null | null | null | tests/test_pandas.py | ONSdigital/ons_utils | 5ff0952c174984deb601af8ad4c21f26c7b24623 | [
"MIT"
] | null | null | null | tests/test_pandas.py | ONSdigital/ons_utils | 5ff0952c174984deb601af8ad4c21f26c7b24623 | [
"MIT"
] | 1 | 2022-03-17T08:03:17.000Z | 2022-03-17T08:03:17.000Z | """Tests for the pandas helpers in the pd_helpers.py module."""
import pytest
from pandas.testing import assert_frame_equal
from tests.conftest import create_dataframe
from ons_utils.pandas import *
def test_nested_dict_to_df():
"""Test for nested_dict_to_df."""
input_d = {
'bones': {
'f... | 22.776471 | 63 | 0.591426 | 231 | 1,936 | 4.770563 | 0.367965 | 0.044465 | 0.076225 | 0.108893 | 0.352087 | 0.297641 | 0.261343 | 0.261343 | 0.196007 | 0.123412 | 0 | 0.009642 | 0.25 | 1,936 | 84 | 64 | 23.047619 | 0.749311 | 0.178719 | 0 | 0.235294 | 0 | 0 | 0.140442 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 1 | 0.137255 | false | 0.117647 | 0.078431 | 0 | 0.254902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4a73d46ee78874a78fab6b3b0aaa918a453b1649 | 8,296 | py | Python | source/accounts/views.py | kishan2064/hashpy1 | 2f8c6fddb07e80e9a7b37a5632ed8ab8bf68d264 | [
"BSD-3-Clause"
] | null | null | null | source/accounts/views.py | kishan2064/hashpy1 | 2f8c6fddb07e80e9a7b37a5632ed8ab8bf68d264 | [
"BSD-3-Clause"
] | 5 | 2020-02-11T22:31:59.000Z | 2021-06-10T17:45:14.000Z | source/accounts/views.py | kishan2064/hashpy1 | 2f8c6fddb07e80e9a7b37a5632ed8ab8bf68d264 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib.auth import login, authenticate, REDIRECT_FIELD_NAME, get_user_model
from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.views import PasswordResetView as BasePasswordResetView, SuccessURLAllowedHostsMixin
from django.shortcuts impor... | 32.155039 | 118 | 0.690333 | 988 | 8,296 | 5.573887 | 0.184211 | 0.053931 | 0.027238 | 0.031959 | 0.345742 | 0.261304 | 0.231524 | 0.200291 | 0.166879 | 0.134193 | 0 | 0.001547 | 0.22095 | 8,296 | 257 | 119 | 32.280156 | 0.850534 | 0.039055 | 0 | 0.319527 | 0 | 0 | 0.090304 | 0.024491 | 0 | 0 | 0 | 0 | 0.011834 | 1 | 0.088757 | false | 0.053254 | 0.106509 | 0 | 0.473373 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4a78cf1db1ffe2307d7c782737a9e5d96a2685ca | 1,254 | py | Python | workbox/workbox/lib/helpers.py | pr3sto/workbox | 558147a1a387dcfbe03be0fbc366d1d793364da6 | [
"MIT"
] | null | null | null | workbox/workbox/lib/helpers.py | pr3sto/workbox | 558147a1a387dcfbe03be0fbc366d1d793364da6 | [
"MIT"
] | null | null | null | workbox/workbox/lib/helpers.py | pr3sto/workbox | 558147a1a387dcfbe03be0fbc366d1d793364da6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Template Helpers used in workbox"""
import logging
import socket
from datetime import datetime
from markupsafe import Markup
import psutil
import tg
log = logging.getLogger(__name__)
def current_year():
""" Return current year. """
now = datetime.now()
return now.strftime('%Y... | 22.392857 | 75 | 0.679426 | 161 | 1,254 | 5.15528 | 0.521739 | 0.028916 | 0.031325 | 0.043373 | 0.057831 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004975 | 0.198565 | 1,254 | 55 | 76 | 22.8 | 0.820896 | 0.184211 | 0 | 0 | 0 | 0 | 0.115189 | 0.0316 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0 | 0.225806 | 0 | 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 |
4a7c28f2d0e401facd4b7a43c6ef059a3a83d500 | 1,193 | py | Python | neutron/agent/ovsdb/native/helpers.py | congnt95/neutron | 6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1 | [
"Apache-2.0"
] | 1,080 | 2015-01-04T08:35:00.000Z | 2022-03-27T09:15:52.000Z | neutron/agent/ovsdb/native/helpers.py | congnt95/neutron | 6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1 | [
"Apache-2.0"
] | 24 | 2015-02-21T01:48:28.000Z | 2021-11-26T02:38:56.000Z | neutron/agent/ovsdb/native/helpers.py | congnt95/neutron | 6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1 | [
"Apache-2.0"
] | 1,241 | 2015-01-02T10:47:10.000Z | 2022-03-27T09:42:23.000Z | # Copyright (c) 2015 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 37.28125 | 78 | 0.776194 | 186 | 1,193 | 4.811828 | 0.537634 | 0.067039 | 0.02905 | 0.035754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014911 | 0.156748 | 1,193 | 31 | 79 | 38.483871 | 0.874751 | 0.487846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4a7c6a7695f0b0415525906b878d73cc448533e5 | 264 | py | Python | console_weather.py | AlBan52/API_weather | 86779a2da622ad7a4537070e5c28a04235415161 | [
"MIT"
] | null | null | null | console_weather.py | AlBan52/API_weather | 86779a2da622ad7a4537070e5c28a04235415161 | [
"MIT"
] | null | null | null | console_weather.py | AlBan52/API_weather | 86779a2da622ad7a4537070e5c28a04235415161 | [
"MIT"
] | null | null | null | import requests
locations = ['Лондон', 'Шереметьево', 'Череповец']
payload = {'mnTq': '', 'lang': 'ru'}
for location in locations:
response = requests.get(f'http://wttr.in/{location}', params=payload)
response.raise_for_status()
print(response.text)
| 26.4 | 73 | 0.681818 | 31 | 264 | 5.741935 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140152 | 264 | 9 | 74 | 29.333333 | 0.784141 | 0 | 0 | 0 | 0 | 0 | 0.231061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a82ccd998802091de5e9ed946344d30c5ebeba5 | 8,124 | py | Python | geopy/geocoders/google.py | ulope/geopy | 605d0d84137a93949ad03820fa31dc2dab77f089 | [
"MIT"
] | 1 | 2021-03-12T15:31:30.000Z | 2021-03-12T15:31:30.000Z | geopy/geocoders/google.py | ulope/geopy | 605d0d84137a93949ad03820fa31dc2dab77f089 | [
"MIT"
] | null | null | null | geopy/geocoders/google.py | ulope/geopy | 605d0d84137a93949ad03820fa31dc2dab77f089 | [
"MIT"
] | null | null | null | import logging
from urllib import urlencode
from urllib2 import urlopen
import simplejson
import xml
from xml.parsers.expat import ExpatError
from geopy.geocoders.base import Geocoder
from geopy import Point, Location, util
class Google(Geocoder):
"""Geocoder using the Google Maps API."""
def __init__(... | 41.238579 | 139 | 0.601674 | 970 | 8,124 | 4.959794 | 0.242268 | 0.041571 | 0.02328 | 0.02619 | 0.302432 | 0.276242 | 0.251299 | 0.215963 | 0.192683 | 0.192683 | 0 | 0.001709 | 0.279665 | 8,124 | 196 | 140 | 41.44898 | 0.820403 | 0.018218 | 0 | 0.269841 | 0 | 0 | 0.107027 | 0.03123 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.063492 | 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 |
4a85a5edb74a35f6879d8683f009ca6b7f10f18c | 194 | py | Python | migrations/20220114_03_Heqaz-insert-default-serverinfo.py | lin483/Funny-Nations | 2bb1cd23a3d5f1e4a4854c73ac27f62c98127ef6 | [
"MIT"
] | 126 | 2022-01-15T02:29:07.000Z | 2022-03-30T09:57:40.000Z | migrations/20220114_03_Heqaz-insert-default-serverinfo.py | lin483/Funny-Nations | 2bb1cd23a3d5f1e4a4854c73ac27f62c98127ef6 | [
"MIT"
] | 18 | 2022-01-11T22:24:35.000Z | 2022-03-16T00:13:01.000Z | migrations/20220114_03_Heqaz-insert-default-serverinfo.py | lin483/Funny-Nations | 2bb1cd23a3d5f1e4a4854c73ac27f62c98127ef6 | [
"MIT"
] | 25 | 2022-01-22T15:06:27.000Z | 2022-03-01T04:34:19.000Z | """
insert default serverInfo
"""
from yoyo import step
__depends__ = {'20220114_02_lHBKM-new-table-serverinfo'}
steps = [
step("INSERT INTO `serverInfo` (`onlineMinute`) VALUES (0);")
]
| 16.166667 | 65 | 0.695876 | 22 | 194 | 5.863636 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.149485 | 194 | 11 | 66 | 17.636364 | 0.715152 | 0.128866 | 0 | 0 | 0 | 0 | 0.565217 | 0.236025 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a866ef89141cc4c966674193758ad5f52e83702 | 551 | py | Python | Arknights/flags.py | AlaricGilbert/ArknightsAutoHelper | 9e2db0c4e0d1be30856df731ab192da396121d94 | [
"MIT"
] | null | null | null | Arknights/flags.py | AlaricGilbert/ArknightsAutoHelper | 9e2db0c4e0d1be30856df731ab192da396121d94 | [
"MIT"
] | 1 | 2019-09-10T13:58:24.000Z | 2019-09-10T13:58:24.000Z | Arknights/flags.py | AlaricGilbert/ArknightsAutoHelper | 9e2db0c4e0d1be30856df731ab192da396121d94 | [
"MIT"
] | null | null | null | TINY_WAIT = 1
SMALL_WAIT = 3
MEDIUM_WAIT = 5
BIG_WAIT = 10
SECURITY_WAIT = 15
BATTLE_FINISH_DETECT = 12
BATTLE_NONE_DETECT_TIME = 90
BATTLE_END_SIGNAL_MAX_EXECUTE_TIME = 15
# 关键动作的偏移
FLAGS_START_BATTLE_BIAS = (50, 25)
FLAGS_ENSURE_TEAM_INFO_BIAS = (25, 50)
# 正方形偏移
FLAGS_CLICK_BIAS_TINY = (3, 3)
FLAGS_CLICK_BIAS_SMAL... | 21.192308 | 44 | 0.751361 | 97 | 551 | 3.804124 | 0.43299 | 0.03252 | 0.189702 | 0.086721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094737 | 0.137931 | 551 | 25 | 45 | 22.04 | 0.682105 | 0.07078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
4a868fe7e98135f318566006794d9b95f620108a | 3,229 | py | Python | elasticsearch/client/shutdown.py | Conky5/elasticsearch-py | 93543a7fee51c0da6e898c9155bdb5f965c5bb53 | [
"Apache-2.0"
] | 4 | 2021-05-31T19:34:27.000Z | 2021-06-01T18:14:31.000Z | elasticsearch/client/shutdown.py | Conky5/elasticsearch-py | 93543a7fee51c0da6e898c9155bdb5f965c5bb53 | [
"Apache-2.0"
] | 22 | 2021-05-15T00:01:49.000Z | 2022-02-26T00:08:00.000Z | elasticsearch/client/shutdown.py | Conky5/elasticsearch-py | 93543a7fee51c0da6e898c9155bdb5f965c5bb53 | [
"Apache-2.0"
] | null | null | null | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use ... | 33.989474 | 85 | 0.637039 | 413 | 3,229 | 4.878935 | 0.346247 | 0.041687 | 0.014888 | 0.020844 | 0.451613 | 0.392556 | 0.392556 | 0.392556 | 0.392556 | 0.392556 | 0 | 0.001726 | 0.28244 | 3,229 | 94 | 86 | 34.351064 | 0.867933 | 0.531124 | 0 | 0.46875 | 0 | 0 | 0.116732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.0625 | 0.03125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4a89792f0a691e63a2efbaa3d996bdb8f827265c | 1,170 | py | Python | api/views/domain.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | 1 | 2019-08-06T07:31:40.000Z | 2019-08-06T07:31:40.000Z | api/views/domain.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | null | null | null | api/views/domain.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | null | null | null | from rest_framework.viewsets import ModelViewSet,GenericViewSet
from rest_framework.response import Response
from api.serializers.domain import *
from api.pagination.page import MyPageNumberPagination
from api.models import *
class MDomainListViewSet(ModelViewSet):
queryset = MasterDomainName.objects.all().order... | 35.454545 | 82 | 0.737607 | 132 | 1,170 | 6.356061 | 0.416667 | 0.047676 | 0.046484 | 0.040524 | 0.147795 | 0.102503 | 0.102503 | 0.102503 | 0.102503 | 0 | 0 | 0.00102 | 0.162393 | 1,170 | 32 | 83 | 36.5625 | 0.855102 | 0 | 0 | 0 | 0 | 0 | 0.029085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.208333 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4a92c1904e0ba01d29ac9f188cf088ddb5d2ab71 | 1,488 | py | Python | src/python/reduce_fps_parallel.py | blancKaty/alignmentFralework_and_classif | 192565a928dad0d98553e0602e91eed59c4a193d | [
"Apache-2.0"
] | null | null | null | src/python/reduce_fps_parallel.py | blancKaty/alignmentFralework_and_classif | 192565a928dad0d98553e0602e91eed59c4a193d | [
"Apache-2.0"
] | null | null | null | src/python/reduce_fps_parallel.py | blancKaty/alignmentFralework_and_classif | 192565a928dad0d98553e0602e91eed59c4a193d | [
"Apache-2.0"
] | 1 | 2019-10-05T05:40:08.000Z | 2019-10-05T05:40:08.000Z | import os
import shutil
import sys
import multiprocessing
import glob
def copy(source, dest):
shutil.copyfile(source, dest)
def main():
input_folder = sys.argv[1]
output_folder = sys.argv[2]
print 'input reduce fps : ' , sys.argv
fps = int(sys.argv[3]);
final_length=float(sys.argv[4]) ;
... | 24 | 72 | 0.608871 | 213 | 1,488 | 4.107981 | 0.319249 | 0.062857 | 0.034286 | 0.027429 | 0.100571 | 0.100571 | 0.100571 | 0 | 0 | 0 | 0 | 0.014273 | 0.24664 | 1,488 | 61 | 73 | 24.393443 | 0.76628 | 0.09543 | 0 | 0 | 0 | 0 | 0.072388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a93ca990a939c4bbe34b2ca2569173da90ecbc7 | 3,598 | py | Python | ansible/utils/module_docs_fragments/docker.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 1 | 2021-04-02T08:08:39.000Z | 2021-04-02T08:08:39.000Z | ansible/utils/module_docs_fragments/docker.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | ansible/utils/module_docs_fragments/docker.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 1 | 2020-05-03T01:13:16.000Z | 2020-05-03T01:13:16.000Z | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 38.276596 | 118 | 0.660645 | 476 | 3,598 | 4.930672 | 0.369748 | 0.019173 | 0.059651 | 0.024286 | 0.23562 | 0.224542 | 0.200682 | 0.200682 | 0.089476 | 0.089476 | 0 | 0.007029 | 0.288216 | 3,598 | 93 | 119 | 38.688172 | 0.90941 | 0.17871 | 0 | 0.388889 | 0 | 0.055556 | 0.971749 | 0.017699 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 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 |
4a9b559c6d7c0db14da8219dc9c4e053b7a27ff8 | 442 | bzl | Python | tools/mirrors.bzl | kkiningh/slime | 85853115e284bda35b3da10957823d23428b65d3 | [
"Apache-2.0"
] | null | null | null | tools/mirrors.bzl | kkiningh/slime | 85853115e284bda35b3da10957823d23428b65d3 | [
"Apache-2.0"
] | null | null | null | tools/mirrors.bzl | kkiningh/slime | 85853115e284bda35b3da10957823d23428b65d3 | [
"Apache-2.0"
] | null | null | null | DEFAULT_MIRRORS = {
"bitbucket": [
"https://bitbucket.org/{repository}/get/{commit}.tar.gz",
],
"buildifier": [
"https://github.com/bazelbuild/buildtools/releases/download/{version}/{filename}",
],
"github": [
"https://github.com/{repository}/archive/{commit}.tar.gz",
],
... | 29.466667 | 98 | 0.58371 | 43 | 442 | 5.976744 | 0.627907 | 0.058366 | 0.085603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190045 | 442 | 14 | 99 | 31.571429 | 0.717877 | 0 | 0 | 0.285714 | 0 | 0.071429 | 0.687783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a9cb65121c1db2693bb70ca50a62adb977ff292 | 2,059 | py | Python | 201805_ChIP_ATAC/codes_old/read_txt.py | ScrippsPipkinLab/GenomeTracks | 89824daceba82f7a52cf8a31149845548fe1aa76 | [
"CC0-1.0"
] | null | null | null | 201805_ChIP_ATAC/codes_old/read_txt.py | ScrippsPipkinLab/GenomeTracks | 89824daceba82f7a52cf8a31149845548fe1aa76 | [
"CC0-1.0"
] | 2 | 2020-12-09T02:41:54.000Z | 2020-12-09T02:45:43.000Z | 201805_ChIP_ATAC/codes_old/read_txt.py | ScrippsPipkinLab/GenomeTracks | 89824daceba82f7a52cf8a31149845548fe1aa76 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 6 21:15:23 2017
@author: yolandatiao
"""
import csv
import glob
import os
from astropy.io import ascii # For using ascii table to open csv
from astropy.table import Table, Column # For using astropy table functions
os.chdir("/Volumes/Huitian/... | 21.226804 | 78 | 0.629432 | 283 | 2,059 | 4.547703 | 0.39576 | 0.097902 | 0.032634 | 0.048951 | 0.154623 | 0.154623 | 0.082362 | 0.082362 | 0.034188 | 0 | 0 | 0.022059 | 0.207382 | 2,059 | 96 | 79 | 21.447917 | 0.766544 | 0.059252 | 0 | 0.074074 | 0 | 0 | 0.183099 | 0.087757 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4aa2559e81941797f8eb297eceb0ea501eab99d6 | 7,104 | py | Python | services/spotify-service.py | thk4711/mediamanager | 8f6d21c220767aa9ee5d65635d2993dba07eceed | [
"MIT"
] | null | null | null | services/spotify-service.py | thk4711/mediamanager | 8f6d21c220767aa9ee5d65635d2993dba07eceed | [
"MIT"
] | null | null | null | services/spotify-service.py | thk4711/mediamanager | 8f6d21c220767aa9ee5d65635d2993dba07eceed | [
"MIT"
] | 1 | 2022-02-07T08:09:15.000Z | 2022-02-07T08:09:15.000Z | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import time
import json
import os
import sys
import time
import urllib
import socket
import argparse
import requests
import lib.common as common
base_url = 'http://localhost:24879/player/'
#------------------------------------------------------------------------------#
# ... | 39.466667 | 91 | 0.366273 | 538 | 7,104 | 4.678439 | 0.29368 | 0.057211 | 0.035757 | 0.030195 | 0.191101 | 0.123957 | 0.123957 | 0.123957 | 0.09853 | 0.09853 | 0 | 0.007739 | 0.254223 | 7,104 | 179 | 92 | 39.687151 | 0.467346 | 0.433699 | 0 | 0.258065 | 0 | 0 | 0.163581 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0.016129 | 0.080645 | 0 | 0.201613 | 0.008065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4aa74af42d1bc1038ceab671898746be1f6af4af | 3,163 | py | Python | google/ads/google_ads/v0/proto/services/media_file_service_pb2_grpc.py | jwygoda/google-ads-python | 863892b533240cb45269d9c2cceec47e2c5a8b68 | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v0/proto/services/media_file_service_pb2_grpc.py | jwygoda/google-ads-python | 863892b533240cb45269d9c2cceec47e2c5a8b68 | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v0/proto/services/media_file_service_pb2_grpc.py | jwygoda/google-ads-python | 863892b533240cb45269d9c2cceec47e2c5a8b68 | [
"Apache-2.0"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.ads.google_ads.v0.proto.resources import media_file_pb2 as google_dot_ads_dot_googleads__v0_dot_proto_dot_resources_dot_media__file__pb2
from google.ads.google_ads.v0.proto.services import media_file_service_pb2 as google_dot... | 48.661538 | 163 | 0.812204 | 379 | 3,163 | 6.192612 | 0.21372 | 0.049851 | 0.051129 | 0.063911 | 0.695356 | 0.695356 | 0.676608 | 0.590541 | 0.590541 | 0.53856 | 0 | 0.009716 | 0.121404 | 3,163 | 64 | 164 | 49.421875 | 0.834833 | 0.093582 | 0 | 0.2 | 1 | 0 | 0.105728 | 0.063296 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.075 | 0 | 0.225 | 0 | 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 |
4aaa0313e4b848ea3e028c07ae2b856db9916524 | 715 | py | Python | arturtamborskipl/urls.py | arturtamborski/arturtamborskipl | 9b93be045f58d5802d9a61568d7ecfbb12042b59 | [
"MIT"
] | 1 | 2017-05-05T12:01:43.000Z | 2017-05-05T12:01:43.000Z | arturtamborskipl/urls.py | arturtamborski/arturtamborskipl | 9b93be045f58d5802d9a61568d7ecfbb12042b59 | [
"MIT"
] | null | null | null | arturtamborskipl/urls.py | arturtamborski/arturtamborskipl | 9b93be045f58d5802d9a61568d7ecfbb12042b59 | [
"MIT"
] | null | null | null | from django.conf.urls import url, include
from django.contrib import admin
from django.views.generic import RedirectView
from django.views.generic import TemplateView
from django.contrib.sitemaps.views import sitemap
from django.conf import settings
from blog.sitemaps import ArticleSitemap
urlpatterns = [
url(r'^... | 29.791667 | 103 | 0.721678 | 92 | 715 | 5.51087 | 0.380435 | 0.118343 | 0.055227 | 0.086785 | 0.110454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135664 | 715 | 23 | 104 | 31.086957 | 0.820388 | 0 | 0 | 0 | 0 | 0 | 0.131469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4aab427f1e96678aba34462ced9f7928129f2aef | 7,288 | py | Python | lib/reinteract/editor.py | jonkuhn/reinteract-jk | 319c8d930f142cf3c3b8693fbff1b84fd582387c | [
"BSD-2-Clause"
] | 1 | 2016-05-08T14:35:25.000Z | 2016-05-08T14:35:25.000Z | lib/reinteract/editor.py | jonkuhn/reinteract-jk | 319c8d930f142cf3c3b8693fbff1b84fd582387c | [
"BSD-2-Clause"
] | null | null | null | lib/reinteract/editor.py | jonkuhn/reinteract-jk | 319c8d930f142cf3c3b8693fbff1b84fd582387c | [
"BSD-2-Clause"
] | null | null | null | # Copyright 2008 Owen Taylor
#
# This file is part of Reinteract and distributed under the terms
# of the BSD license. See the file COPYING in the Reinteract
# distribution for full details.
#
########################################################################
import os
import gobject
import gtk
import pango
fr... | 29.387097 | 109 | 0.565587 | 748 | 7,288 | 5.240642 | 0.208556 | 0.028571 | 0.030612 | 0.020408 | 0.266582 | 0.144388 | 0.1 | 0.1 | 0.079082 | 0.079082 | 0 | 0.001366 | 0.296789 | 7,288 | 247 | 110 | 29.506073 | 0.763512 | 0.030873 | 0 | 0.325581 | 0 | 0 | 0.027515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017442 | 0.05814 | 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 |
4aadfd2d97ab81dd6472cc9d6d7741a3c62a553c | 2,316 | py | Python | server/server-flask/app/docs/admin/survey/survey.py | DSM-DMS/Project-DMS-Web | 73a5d8fc2310bca90169414abf50f541ca0724c7 | [
"MIT"
] | 11 | 2017-07-04T07:44:07.000Z | 2017-09-19T12:56:55.000Z | server/server-flask/app/docs/admin/survey/survey.py | DSM-DMS/DMS | 73a5d8fc2310bca90169414abf50f541ca0724c7 | [
"MIT"
] | null | null | null | server/server-flask/app/docs/admin/survey/survey.py | DSM-DMS/DMS | 73a5d8fc2310bca90169414abf50f541ca0724c7 | [
"MIT"
] | 2 | 2017-10-23T06:11:16.000Z | 2017-10-26T03:27:57.000Z | SURVEY_POST = {
'tags': ['설문조사 관리'],
'description': '설문조사 등록',
'parameters': [
{
'name': 'Authorization',
'description': 'JWT Token',
'in': 'header',
'type': 'str',
'required': True
},
{
'name': 'title',
... | 23.16 | 47 | 0.345423 | 161 | 2,316 | 4.931677 | 0.347826 | 0.13602 | 0.161209 | 0.167506 | 0.656171 | 0.47733 | 0.47733 | 0.395466 | 0.307305 | 0.307305 | 0 | 0.009967 | 0.480138 | 2,316 | 99 | 48 | 23.393939 | 0.649502 | 0 | 0 | 0.489796 | 0 | 0 | 0.330743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
4ab1c757764878f4d5cd5d264e6b8d82bbff63ba | 12,893 | py | Python | models.py | Bileonaire/api-ridemyway | af5a669c811356998e1935ace555ba955de1e8d0 | [
"MIT"
] | null | null | null | models.py | Bileonaire/api-ridemyway | af5a669c811356998e1935ace555ba955de1e8d0 | [
"MIT"
] | null | null | null | models.py | Bileonaire/api-ridemyway | af5a669c811356998e1935ace555ba955de1e8d0 | [
"MIT"
] | 1 | 2018-10-20T12:00:53.000Z | 2018-10-20T12:00:53.000Z | """Handles data storage for Users, rides and requests
"""
# pylint: disable=E1101
import datetime
from flask import make_response, jsonify, current_app
from werkzeug.security import generate_password_hash
import psycopg2
import config
from databasesetup import db
class User():
"""Contains user columns and method... | 39.307927 | 173 | 0.556891 | 1,458 | 12,893 | 4.757888 | 0.098765 | 0.069194 | 0.07669 | 0.097304 | 0.653453 | 0.624477 | 0.575032 | 0.535102 | 0.515064 | 0.43996 | 0 | 0.015788 | 0.317149 | 12,893 | 327 | 174 | 39.428135 | 0.772149 | 0.051656 | 0 | 0.534413 | 1 | 0.008097 | 0.197028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08502 | false | 0.032389 | 0.024292 | 0 | 0.255061 | 0 | 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 |
4ab456260f6c742ad312aaa99e3e2590ddc0675c | 731 | py | Python | olamundo.py/exercicios_refeitos/ex029.py | gabrielviticov/exercicios-python | 4068cb0029513f8ab8bd12fa3a9055f37b4040d4 | [
"MIT"
] | null | null | null | olamundo.py/exercicios_refeitos/ex029.py | gabrielviticov/exercicios-python | 4068cb0029513f8ab8bd12fa3a9055f37b4040d4 | [
"MIT"
] | null | null | null | olamundo.py/exercicios_refeitos/ex029.py | gabrielviticov/exercicios-python | 4068cb0029513f8ab8bd12fa3a9055f37b4040d4 | [
"MIT"
] | null | null | null | '''
ex029: Escreva um programa que leia a velocidade de uma carro. Se ele ultrapassar 80 km/h, mostre uma mensagem dizendo que ele foi multado. A multa vai custar R$ 7,00 por cada Km acima do limite.
'''
from colorise import set_color, reset_color
cor = {
'limpa':'\033[m',
'white':'\033[1;97m'
}
set_color(fg='... | 36.55 | 195 | 0.679891 | 112 | 731 | 4.366071 | 0.625 | 0.04908 | 0.0409 | 0.06135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041322 | 0.172367 | 731 | 19 | 196 | 38.473684 | 0.766942 | 0.266758 | 0 | 0.133333 | 0 | 0 | 0.386364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.066667 | 0 | 0.066667 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4ab62b5efbeb5c0a7886f27f8824551ce65f3eab | 256 | py | Python | fruit/mixin/drawable.py | felko/fruit | 4768fd333ac3b7c0bd6d339304b23e20e312d2d1 | [
"MIT"
] | 4 | 2017-06-14T14:50:05.000Z | 2019-07-29T16:51:24.000Z | fruit/mixin/drawable.py | felko/fruit | 4768fd333ac3b7c0bd6d339304b23e20e312d2d1 | [
"MIT"
] | null | null | null | fruit/mixin/drawable.py | felko/fruit | 4768fd333ac3b7c0bd6d339304b23e20e312d2d1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.4
# coding: utf-8
class Drawable:
"""
Base class for drawable objects.
"""
def draw(self):
"""
Returns a Surface object.
"""
raise NotImplementedError(
"Method `draw` is not implemented for {}".format(type(self)))
| 15.058824 | 64 | 0.648438 | 33 | 256 | 5.030303 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014563 | 0.195313 | 256 | 16 | 65 | 16 | 0.791262 | 0.375 | 0 | 0 | 0 | 0 | 0.282609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ab9a2726c38f9bfc3c6566bc523e4832e60605f | 2,808 | py | Python | website/website/apps/entry/admin.py | SimonGreenhill/Language5 | c59f502dda7be27fc338f0338cc3b03e63bad9c8 | [
"MIT"
] | 1 | 2020-08-17T05:56:16.000Z | 2020-08-17T05:56:16.000Z | website/website/apps/entry/admin.py | SimonGreenhill/Language5 | c59f502dda7be27fc338f0338cc3b03e63bad9c8 | [
"MIT"
] | 5 | 2020-06-05T17:51:56.000Z | 2022-01-13T00:42:51.000Z | website/website/apps/entry/admin.py | SimonGreenhill/Language5 | c59f502dda7be27fc338f0338cc3b03e63bad9c8 | [
"MIT"
] | 1 | 2015-02-23T22:54:00.000Z | 2015-02-23T22:54:00.000Z | from django.contrib import admin
from django.db.models import Count
from reversion.admin import VersionAdmin
from website.apps.lexicon.models import Lexicon
from website.apps.entry.models import Task, TaskLog, Wordlist, WordlistMember
from website.apps.core.admin import TrackedModelAdmin
class CheckpointListFilter(adm... | 33.428571 | 103 | 0.666667 | 317 | 2,808 | 5.791798 | 0.410095 | 0.03268 | 0.02451 | 0.014161 | 0.142702 | 0.103486 | 0.103486 | 0.103486 | 0.069717 | 0 | 0 | 0.00046 | 0.225071 | 2,808 | 83 | 104 | 33.831325 | 0.84329 | 0.160969 | 0 | 0.078431 | 0 | 0 | 0.109389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.117647 | 0.058824 | 0.823529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4abb4683ee2e4ff41f7985424a94c70975cdae94 | 356 | py | Python | src/modules/python.py | fest2bash/fest2bash | 008282f67d4d4415c27b3b9b6162daf54f8d6028 | [
"MIT"
] | null | null | null | src/modules/python.py | fest2bash/fest2bash | 008282f67d4d4415c27b3b9b6162daf54f8d6028 | [
"MIT"
] | null | null | null | src/modules/python.py | fest2bash/fest2bash | 008282f67d4d4415c27b3b9b6162daf54f8d6028 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import re
import sys
sys.dont_write_bytecode = True
from pprint import pprint
from base import BaseFest2Bash
class Fest2Bash(BaseFest2Bash):
def __init__(self, manifest):
super(Fest2Bash, self).__init__(manifest)
def generate(self, *args, **kw... | 19.777778 | 49 | 0.710674 | 46 | 356 | 5.282609 | 0.652174 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.182584 | 356 | 17 | 50 | 20.941176 | 0.814433 | 0.120787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.454545 | 0.090909 | 0.818182 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4abedd6e3a784e93e18495ecbb7c4ea6ddcaa98a | 3,255 | py | Python | apps/pyscrabble/pyscrabble-hatchet/setup.py | UWSysLab/diamond | 1beec323c084d9d477c770ca6b9625c8f5682a39 | [
"MIT"
] | 19 | 2016-08-22T23:54:24.000Z | 2021-03-19T08:08:35.000Z | apps/pyscrabble/pyscrabble-hatchet/setup.py | UWSysLab/diamond | 1beec323c084d9d477c770ca6b9625c8f5682a39 | [
"MIT"
] | 3 | 2020-12-02T18:29:32.000Z | 2021-06-23T20:26:09.000Z | apps/pyscrabble/pyscrabble-hatchet/setup.py | UWSysLab/diamond | 1beec323c084d9d477c770ca6b9625c8f5682a39 | [
"MIT"
] | 5 | 2017-01-25T19:31:49.000Z | 2018-07-25T05:08:19.000Z | # setup.py for pyscrabble
from distutils.core import setup
try:
import py2exe
HAS_PY2EXE = True
except ImportError:
HAS_PY2EXE = False
import glob
import os
import pkg_resources
import sys
from pyscrabble.constants import VERSION
from pyscrabble import util
from pyscrabble import dist
def fi... | 37.848837 | 118 | 0.580031 | 374 | 3,255 | 4.930481 | 0.363636 | 0.010846 | 0.027115 | 0.022777 | 0.097614 | 0.065076 | 0.065076 | 0.065076 | 0.045553 | 0 | 0 | 0.025248 | 0.257757 | 3,255 | 86 | 119 | 37.848837 | 0.737997 | 0.088786 | 0 | 0.16 | 0 | 0 | 0.360473 | 0.084899 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4abf8e0a8ee60fe90e1a20e373c9a2a3d84d695d | 3,504 | py | Python | ssbio/databases/pdbflex.py | JoshuaMeyers/ssbio | 624618602437e2c2e4adf90962adcef3af2d5b40 | [
"MIT"
] | 76 | 2017-03-06T02:50:38.000Z | 2022-02-08T08:08:48.000Z | ssbio/databases/pdbflex.py | JoshuaMeyers/ssbio | 624618602437e2c2e4adf90962adcef3af2d5b40 | [
"MIT"
] | 30 | 2017-03-09T14:54:05.000Z | 2021-10-06T10:57:45.000Z | ssbio/databases/pdbflex.py | JoshuaMeyers/ssbio | 624618602437e2c2e4adf90962adcef3af2d5b40 | [
"MIT"
] | 21 | 2017-09-01T23:00:31.000Z | 2022-02-23T14:04:30.000Z | import requests
import ssbio.utils
import os.path as op
# #### PDB stats
# Request flexibility data about one particular PDB.
#
# http://pdbflex.org/php/api/PDBStats.php?pdbID=1a50&chainID=A
#
# pdbID of structure you are interested in
# chainID of chain you are interested in
#
# [{"pdbID":"1a50",
# ... | 40.275862 | 161 | 0.627854 | 467 | 3,504 | 4.599572 | 0.289079 | 0.039106 | 0.041899 | 0.050279 | 0.538641 | 0.538641 | 0.502328 | 0.477654 | 0.398976 | 0.389199 | 0 | 0.051699 | 0.227169 | 3,504 | 87 | 162 | 40.275862 | 0.741507 | 0.434646 | 0 | 0.225806 | 0 | 0 | 0.157403 | 0.044156 | 0 | 0 | 0 | 0.011494 | 0.032258 | 1 | 0.096774 | false | 0 | 0.096774 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4abff12be5f57f68704691116cfaac62253e2192 | 1,065 | py | Python | api/insights/insights/infrastructure/mysql/read/modify_notes.py | manisharmagarg/qymatix | 0dc240970359429ae5105db79f9aebf1a99ba6fd | [
"Apache-2.0"
] | null | null | null | api/insights/insights/infrastructure/mysql/read/modify_notes.py | manisharmagarg/qymatix | 0dc240970359429ae5105db79f9aebf1a99ba6fd | [
"Apache-2.0"
] | null | null | null | api/insights/insights/infrastructure/mysql/read/modify_notes.py | manisharmagarg/qymatix | 0dc240970359429ae5105db79f9aebf1a99ba6fd | [
"Apache-2.0"
] | null | null | null | """
Modify Notes
"""
# pylint: disable=too-few-public-methods
from ...mysql.mysql_connection import MySqlConnection
from ...mysql.orm.autogen_entities import Task
class ModifyNotes(object):
"""
ModifyNotes responsible to update the record in db
"""
def __init__(self, db_name, notes_id, title=None, co... | 29.583333 | 68 | 0.642254 | 129 | 1,065 | 5.093023 | 0.395349 | 0.053272 | 0.033486 | 0.057839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.250704 | 1,065 | 35 | 69 | 30.428571 | 0.823308 | 0.160563 | 0 | 0 | 1 | 0 | 0.008343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ac08cf9f315cf058d8ec6ec1e3e396023b3a1de | 1,834 | py | Python | desktop/core/ext-py/pyasn1-0.4.6/tests/type/test_namedval.py | yetsun/hue | 2e48f0cc70e233ee0e1b40733d4b2a18d8836c66 | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/pyasn1-0.4.6/tests/type/test_namedval.py | yetsun/hue | 2e48f0cc70e233ee0e1b40733d4b2a18d8836c66 | [
"Apache-2.0"
] | 1,623 | 2015-01-01T08:06:24.000Z | 2022-03-30T19:48:52.000Z | desktop/core/ext-py/pyasn1-0.4.6/tests/type/test_namedval.py | yetsun/hue | 2e48f0cc70e233ee0e1b40733d4b2a18d8836c66 | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | #
# This file is part of pyasn1 software.
#
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pyasn1/license.html
#
import sys
try:
import unittest2 as unittest
except ImportError:
import unittest
from tests.base import BaseTestCase
from pyasn1.type import namedval
... | 31.084746 | 96 | 0.598691 | 259 | 1,834 | 4.19305 | 0.301158 | 0.064457 | 0.044199 | 0.051565 | 0.303867 | 0.289134 | 0.200737 | 0.116022 | 0.116022 | 0.116022 | 0 | 0.034843 | 0.217557 | 1,834 | 58 | 97 | 31.62069 | 0.721951 | 0.078517 | 0 | 0 | 0 | 0 | 0.045752 | 0 | 0 | 0 | 0 | 0 | 0.459459 | 1 | 0.189189 | false | 0 | 0.162162 | 0 | 0.378378 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
434e153d430f769d0af982184da673ab7f398f75 | 6,213 | py | Python | terra/terra/emails.py | dymaxionlabs/platform | 98fe893d4632d62fea3e2357f16d970014037cdf | [
"BSD-3-Clause"
] | null | null | null | terra/terra/emails.py | dymaxionlabs/platform | 98fe893d4632d62fea3e2357f16d970014037cdf | [
"BSD-3-Clause"
] | null | null | null | terra/terra/emails.py | dymaxionlabs/platform | 98fe893d4632d62fea3e2357f16d970014037cdf | [
"BSD-3-Clause"
] | null | null | null | import os
from datetime import date
from django.conf import settings
from django.core.mail import send_mail
from django.template.loader import render_to_string
from django.utils import translation
from django.utils.translation import ugettext as _
from mailchimp3 import MailChimp
class Email:
from_email = settin... | 27.860987 | 77 | 0.600998 | 663 | 6,213 | 5.39819 | 0.208145 | 0.073764 | 0.033529 | 0.034926 | 0.507404 | 0.488684 | 0.43392 | 0.4247 | 0.4247 | 0.381112 | 0 | 0.000671 | 0.280863 | 6,213 | 222 | 78 | 27.986486 | 0.800358 | 0.018831 | 0 | 0.502924 | 0 | 0 | 0.11298 | 0.029688 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181287 | false | 0 | 0.046784 | 0.116959 | 0.461988 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
4354188cd39459be1c39fa882aceb00bf1b969f5 | 1,683 | py | Python | actions/lib/Template_Parser.py | pjimmybrcd/campus_ztp_nps | 2ab266b32fbcddcbdf9031138aabc40942914c3a | [
"Apache-2.0"
] | null | null | null | actions/lib/Template_Parser.py | pjimmybrcd/campus_ztp_nps | 2ab266b32fbcddcbdf9031138aabc40942914c3a | [
"Apache-2.0"
] | null | null | null | actions/lib/Template_Parser.py | pjimmybrcd/campus_ztp_nps | 2ab266b32fbcddcbdf9031138aabc40942914c3a | [
"Apache-2.0"
] | null | null | null | """
Copyright 2016 Brocade Communications Systems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | 39.139535 | 91 | 0.699346 | 215 | 1,683 | 5.390698 | 0.506977 | 0.051769 | 0.064711 | 0.02761 | 0.029336 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00686 | 0.22044 | 1,683 | 42 | 92 | 40.071429 | 0.876524 | 0.434938 | 0 | 0.210526 | 0 | 0 | 0.032644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
43559b99540d7f4aefb586b6180111026c8c9f97 | 461 | py | Python | lca_writer/data/loader.py | line-mind/lca_writer | 0f356cf20285ba684826dfdd18b75d0f0ebea120 | [
"BSD-3-Clause"
] | 1 | 2022-02-10T21:32:54.000Z | 2022-02-10T21:32:54.000Z | lca_writer/data/loader.py | line-mind/lca_writer | 0f356cf20285ba684826dfdd18b75d0f0ebea120 | [
"BSD-3-Clause"
] | 1 | 2018-12-22T23:12:30.000Z | 2018-12-22T23:12:30.000Z | lca_writer/data/loader.py | line-mind/lca_writer | 0f356cf20285ba684826dfdd18b75d0f0ebea120 | [
"BSD-3-Clause"
] | 1 | 2019-10-09T07:03:09.000Z | 2019-10-09T07:03:09.000Z | import os
__all__ = ['DATA_FOLDER', 'load_data']
DATA_FOLDER = os.path.dirname(os.path.abspath(__file__))
def load_data(name):
"""
Loads an Excel form from the data folder with the specified name.
Parameters
----------
name : str
The name of the form without file extension.
"""
... | 20.954545 | 69 | 0.652928 | 63 | 461 | 4.555556 | 0.555556 | 0.139373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229935 | 461 | 21 | 70 | 21.952381 | 0.808451 | 0.383948 | 0 | 0 | 0 | 0 | 0.099206 | 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 |
4356793fe5f5eb5615052cdcbe88626695d774de | 841 | py | Python | app/v1/utils/mixins.py | pndemo/yummy-recipes-api | ae6729bd1c886ce9872d83488a6eaa99e92be513 | [
"MIT"
] | null | null | null | app/v1/utils/mixins.py | pndemo/yummy-recipes-api | ae6729bd1c886ce9872d83488a6eaa99e92be513 | [
"MIT"
] | 3 | 2019-12-20T23:17:20.000Z | 2022-03-21T22:16:25.000Z | app/v1/utils/mixins.py | pndemo/yummy-recipes-api | ae6729bd1c886ce9872d83488a6eaa99e92be513 | [
"MIT"
] | 1 | 2017-12-13T12:44:11.000Z | 2017-12-13T12:44:11.000Z | """ Model mixin classes for auth, category and recipe modules """
from app import db
# pylint: disable=C0103
# pylint: disable=E1101
class BaseMixin(object):
""" Define the 'BaseModel' mapped to all database tables. """
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
def save(self):
... | 29 | 81 | 0.67063 | 104 | 841 | 5.365385 | 0.557692 | 0.064516 | 0.053763 | 0.11828 | 0.168459 | 0.168459 | 0.168459 | 0.168459 | 0.168459 | 0 | 0 | 0.011923 | 0.20214 | 841 | 28 | 82 | 30.035714 | 0.819672 | 0.307967 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
435956da8c173c0f00fa6d13687b5307a4d9b2a5 | 499 | py | Python | sync_ends/main.py | nirav1997/sync_ends | 04e39ec26ac43ad4e6d4e1bdf685eb73c03b1dbb | [
"MIT"
] | null | null | null | sync_ends/main.py | nirav1997/sync_ends | 04e39ec26ac43ad4e6d4e1bdf685eb73c03b1dbb | [
"MIT"
] | null | null | null | sync_ends/main.py | nirav1997/sync_ends | 04e39ec26ac43ad4e6d4e1bdf685eb73c03b1dbb | [
"MIT"
] | null | null | null | import sys
sys.path.append("..")
from src.sync_ends_service import SyncEnd
from src.parser import Parser
def main():
# get the arguments from commadn line
parser = Parser()
collection_name, api_key, trigger_interval, slack_channel, slack_token = parser.get_argumenets()
sync_end = SyncEnd(api_key, co... | 22.681818 | 100 | 0.709419 | 67 | 499 | 4.940299 | 0.552239 | 0.042296 | 0.120846 | 0.163142 | 0.223565 | 0.223565 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198397 | 499 | 21 | 101 | 23.761905 | 0.8275 | 0.07014 | 0 | 0 | 0 | 0 | 0.021645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.285714 | 0.071429 | 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 |
4361fce279ba39aaf412d8930d6f84378c2aa668 | 460 | py | Python | python/modules_packages_libraries/models/animal_kigdom/animals.py | aloa04/practice | 0f11874a597450a70f3c6f01fe64b6aa9e9d5b9f | [
"Apache-2.0"
] | null | null | null | python/modules_packages_libraries/models/animal_kigdom/animals.py | aloa04/practice | 0f11874a597450a70f3c6f01fe64b6aa9e9d5b9f | [
"Apache-2.0"
] | null | null | null | python/modules_packages_libraries/models/animal_kigdom/animals.py | aloa04/practice | 0f11874a597450a70f3c6f01fe64b6aa9e9d5b9f | [
"Apache-2.0"
] | null | null | null | class Animal():
edad:int
patas:int
ruido:str
nombre: str
kgComida: float = 0
def __init__(self, edad, patas, ruido, nombre):
self.edad =edad
self.patas = patas
self.ruido = ruido
self.nombre = nombre
def comer(self, alimento):
self.kgComida += alimento... | 24.210526 | 57 | 0.595652 | 56 | 460 | 4.821429 | 0.375 | 0.111111 | 0.096296 | 0.140741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003021 | 0.280435 | 460 | 19 | 58 | 24.210526 | 0.812689 | 0 | 0 | 0 | 0 | 0 | 0.041215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0 | 0 | 0.5625 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4364633db5685f14b086dbb59f77e9958e56ad15 | 2,913 | py | Python | yampy/apis/groups.py | Kunal-Shah-Bose/yam-python | 1d24b4b5c4bfb512804183efe741a2f7a75889e5 | [
"Apache-2.0"
] | null | null | null | yampy/apis/groups.py | Kunal-Shah-Bose/yam-python | 1d24b4b5c4bfb512804183efe741a2f7a75889e5 | [
"Apache-2.0"
] | null | null | null | yampy/apis/groups.py | Kunal-Shah-Bose/yam-python | 1d24b4b5c4bfb512804183efe741a2f7a75889e5 | [
"Apache-2.0"
] | 1 | 2019-01-10T18:50:35.000Z | 2019-01-10T18:50:35.000Z | from yampy.apis.utils import ArgumentConverter, none_filter, stringify_booleans
from yampy.models import extract_id
class GroupsAPI(object):
"""
Provides an interface for accessing the groups related endpoints of the
Yammer API. You should not instantiate this class directly; use the
:meth:`yampy.Yam... | 28.281553 | 79 | 0.599725 | 338 | 2,913 | 4.985207 | 0.295858 | 0.08724 | 0.066469 | 0.047478 | 0.389911 | 0.308012 | 0.308012 | 0.255786 | 0.226706 | 0.123442 | 0 | 0.000994 | 0.309303 | 2,913 | 102 | 80 | 28.558824 | 0.836481 | 0.310333 | 0 | 0.372093 | 0 | 0 | 0.047647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.046512 | 0.023256 | 0.465116 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4368cab14b8dd0a73f5639ed6a1c9ef3a5f4c07f | 354 | py | Python | krispy/mod_user/models.py | jlaura/krispy | b1b2bf8a3e315608152c7dad15d384d0669f5e27 | [
"0BSD"
] | 2 | 2016-03-31T05:35:28.000Z | 2017-04-12T00:11:59.000Z | krispy/mod_user/models.py | jlaura/krispy | b1b2bf8a3e315608152c7dad15d384d0669f5e27 | [
"0BSD"
] | null | null | null | krispy/mod_user/models.py | jlaura/krispy | b1b2bf8a3e315608152c7dad15d384d0669f5e27 | [
"0BSD"
] | null | null | null | from app import db
from flask.ext.login import UserMixin
class User(UserMixin, db.Model):
__tablename__ = 'oauth2users'
id = db.Column(db.Integer, primary_key=True)
social_id = db.Column(db.String(64), nullable=False, unique=True)
nickname = db.Column(db.String(64), nullable=False)
email = db.Colum... | 29.5 | 69 | 0.717514 | 52 | 354 | 4.769231 | 0.519231 | 0.129032 | 0.16129 | 0.193548 | 0.354839 | 0.354839 | 0.25 | 0 | 0 | 0 | 0 | 0.023333 | 0.152542 | 354 | 11 | 70 | 32.181818 | 0.803333 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 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 |
4369ad9700348a9af2bc92b402bcac16112c9914 | 16,746 | py | Python | blog_app/blog/views.py | flxj/Django_blog | 01eb12553335115fee5faecafe8cacf2f0615135 | [
"MIT"
] | 1 | 2019-03-27T02:24:22.000Z | 2019-03-27T02:24:22.000Z | blog_app/blog/views.py | flxj/Django_blog | 01eb12553335115fee5faecafe8cacf2f0615135 | [
"MIT"
] | null | null | null | blog_app/blog/views.py | flxj/Django_blog | 01eb12553335115fee5faecafe8cacf2f0615135 | [
"MIT"
] | null | null | null | import markdown
from comments.forms import CommentForm,BookCommentForm,MovieCommentForm
from django.shortcuts import render, get_object_or_404
from.models import Post,Category,Tag, Book,Movie
#from django.http import HttpResponse
from django.views.generic import ListView, DetailView
from django.utils.text import slugif... | 33.967546 | 96 | 0.582706 | 1,813 | 16,746 | 5.184225 | 0.163817 | 0.044686 | 0.018725 | 0.024258 | 0.604107 | 0.571763 | 0.545803 | 0.528035 | 0.513565 | 0.498457 | 0 | 0.012035 | 0.320256 | 16,746 | 493 | 97 | 33.967546 | 0.81367 | 0.15341 | 0 | 0.746711 | 0 | 0 | 0.066185 | 0.0151 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0 | 0.026316 | 0.003289 | 0.325658 | 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 |
436c11b07a0ae268fa5c1da96fe20213b0b714a7 | 3,501 | py | Python | aiogram/types/inline_query.py | SvineruS/aiogram | 7892edf45302fa195544430ac5db11dcbcbf7ae6 | [
"MIT"
] | 1 | 2021-01-10T18:04:25.000Z | 2021-01-10T18:04:25.000Z | aiogram/types/inline_query.py | SvineruS/aiogram | 7892edf45302fa195544430ac5db11dcbcbf7ae6 | [
"MIT"
] | 5 | 2021-02-13T14:30:27.000Z | 2021-02-13T17:27:58.000Z | aiogram/types/inline_query.py | SvineruS/aiogram | 7892edf45302fa195544430ac5db11dcbcbf7ae6 | [
"MIT"
] | 1 | 2022-02-10T14:57:27.000Z | 2022-02-10T14:57:27.000Z | import typing
from . import base
from . import fields
from .inline_query_result import InlineQueryResult
from .location import Location
from .user import User
class InlineQuery(base.TelegramObject):
"""
This object represents an incoming inline query.
When the user sends an empty query, your bot could r... | 52.253731 | 118 | 0.625821 | 445 | 3,501 | 4.826966 | 0.32809 | 0.040968 | 0.083799 | 0.067039 | 0.15689 | 0.116387 | 0.070764 | 0.037244 | 0 | 0 | 0 | 0.004928 | 0.304484 | 3,501 | 66 | 119 | 53.045455 | 0.877207 | 0.053985 | 0 | 0 | 0 | 0 | 0.002805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.230769 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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.