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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0cf06391e6f2a764c326e6202976fa1d9cdb5819 | 669 | py | Python | rpycore/libraries/components/archived/Standary Components Library/body_tube.py | roguextech/ICL-Rocketry-RocketPy | 789cad455ab64fd5a01fb8bf27852950408b3691 | [
"MIT"
] | null | null | null | rpycore/libraries/components/archived/Standary Components Library/body_tube.py | roguextech/ICL-Rocketry-RocketPy | 789cad455ab64fd5a01fb8bf27852950408b3691 | [
"MIT"
] | null | null | null | rpycore/libraries/components/archived/Standary Components Library/body_tube.py | roguextech/ICL-Rocketry-RocketPy | 789cad455ab64fd5a01fb8bf27852950408b3691 | [
"MIT"
] | null | null | null | # Body tube standard template definition
from component import Component
class BodyTube(Component):
def __init__(self,
name = "Body Tube",
top_position = [0, 0, 0],
material = "",
density = 0,
mass = 0,
length =... | 20.90625 | 42 | 0.42003 | 55 | 669 | 4.927273 | 0.472727 | 0.059041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024169 | 0.505232 | 669 | 32 | 43 | 20.90625 | 0.794562 | 0.09716 | 0 | 0 | 0 | 0 | 0.014975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.045455 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
0cf4b4b55cdeaeb2dc8bb893756eb1b6a734a4a3 | 7,815 | py | Python | wishes/parser.py | htmue/python-wishes | b0238525465ba9e3ee4fbc9a26e40d663dfb6740 | [
"Unlicense"
] | null | null | null | wishes/parser.py | htmue/python-wishes | b0238525465ba9e3ee4fbc9a26e40d663dfb6740 | [
"Unlicense"
] | null | null | null | wishes/parser.py | htmue/python-wishes | b0238525465ba9e3ee4fbc9a26e40d663dfb6740 | [
"Unlicense"
] | null | null | null | # -*- coding:utf-8 -*-
# Created by Hans-Thomas on 2011-05-11.
#=============================================================================
# parser.py --- Parse features
#=============================================================================
from __future__ import print_function, unicode_literals
import os... | 32.974684 | 110 | 0.599232 | 857 | 7,815 | 5.283547 | 0.179697 | 0.068021 | 0.069567 | 0.04174 | 0.123454 | 0.041961 | 0.02076 | 0.02076 | 0.02076 | 0.02076 | 0 | 0.00283 | 0.27652 | 7,815 | 236 | 111 | 33.114407 | 0.798019 | 0.042482 | 0 | 0.128492 | 0 | 0 | 0.020067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234637 | false | 0.005587 | 0.044693 | 0.005587 | 0.357542 | 0.011173 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0cf70a94e65f68508adb3238d549bf000a5baf38 | 9,751 | py | Python | wowgic/old_builds/wowgic_flask_3Mar/resources/intercom.py | chelladurai89/wowgicbackend2.0 | 888676e055abec1f06f1b94e889b577c8bb3bf21 | [
"Apache-2.0"
] | null | null | null | wowgic/old_builds/wowgic_flask_3Mar/resources/intercom.py | chelladurai89/wowgicbackend2.0 | 888676e055abec1f06f1b94e889b577c8bb3bf21 | [
"Apache-2.0"
] | null | null | null | wowgic/old_builds/wowgic_flask_3Mar/resources/intercom.py | chelladurai89/wowgicbackend2.0 | 888676e055abec1f06f1b94e889b577c8bb3bf21 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
#===============================================================================
# File Name : intercom.py
# Date : 12-02-2015
# Input Files : Nil
# Author : Satheesh <sathishsms@gmail.com>
# Description :
# How to run :twit_test.py -l info
# :twit_test... | 42.580786 | 115 | 0.62609 | 1,038 | 9,751 | 5.861272 | 0.33526 | 0.028928 | 0.006575 | 0.010191 | 0.088429 | 0.063116 | 0.063116 | 0.063116 | 0.048323 | 0.032873 | 0 | 0.00965 | 0.266742 | 9,751 | 228 | 116 | 42.767544 | 0.841259 | 0.374936 | 0 | 0.096 | 0 | 0 | 0.135936 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096 | false | 0.064 | 0.096 | 0 | 0.28 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
0cfe2ce04305df18c90f365f3d3a1eccb102fc0c | 528 | py | Python | direzione/migrations/0007_auto_20200208_1304.py | andywar65/rpnew_root | 9281cb16783313a1cd23b1394f2bad485ac1b33d | [
"BSD-2-Clause"
] | null | null | null | direzione/migrations/0007_auto_20200208_1304.py | andywar65/rpnew_root | 9281cb16783313a1cd23b1394f2bad485ac1b33d | [
"BSD-2-Clause"
] | null | null | null | direzione/migrations/0007_auto_20200208_1304.py | andywar65/rpnew_root | 9281cb16783313a1cd23b1394f2bad485ac1b33d | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 3.0.2 on 2020-02-08 12:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('direzione', '0006_delete_conventionupload'),
]
operations = [
migrations.AlterField(
model_name='institutional',
nam... | 27.789474 | 180 | 0.602273 | 59 | 528 | 5.305085 | 0.830508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058968 | 0.229167 | 528 | 18 | 181 | 29.333333 | 0.710074 | 0.085227 | 0 | 0 | 1 | 0 | 0.222453 | 0.058212 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0cfffdb52aed111012573fcfa4d51b59284c81cd | 1,375 | py | Python | PythonAuxiliaryFunctions/files_IO/write_file.py | MauriceKarrenbrock/PythonAuxiliaryFunctions | c843456fbeb5bce22f32436534c05c928e42c831 | [
"BSD-3-Clause"
] | null | null | null | PythonAuxiliaryFunctions/files_IO/write_file.py | MauriceKarrenbrock/PythonAuxiliaryFunctions | c843456fbeb5bce22f32436534c05c928e42c831 | [
"BSD-3-Clause"
] | null | null | null | PythonAuxiliaryFunctions/files_IO/write_file.py | MauriceKarrenbrock/PythonAuxiliaryFunctions | c843456fbeb5bce22f32436534c05c928e42c831 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#############################################################
# Copyright (c) 2020-2020 Maurice Karrenbrock #
# #
# This software is open-source and is distributed under the #
# BSD 3-Clause "New" or "Revised" License ... | 29.255319 | 91 | 0.561455 | 167 | 1,375 | 4.562874 | 0.419162 | 0.062992 | 0.047244 | 0.070866 | 0.666667 | 0.616798 | 0.616798 | 0.616798 | 0.404199 | 0.404199 | 0 | 0.009862 | 0.262545 | 1,375 | 46 | 92 | 29.891304 | 0.741617 | 0.658909 | 0 | 0.333333 | 0 | 0 | 0.073469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b2f6778aae97f51da53324081fe6dd4faafb2b8 | 249 | py | Python | dashboard/wsgi.py | enolfc/horizon-aggregator | f1ac34de9661b7f0bf688b0ebea4462141ce0cb2 | [
"MIT"
] | null | null | null | dashboard/wsgi.py | enolfc/horizon-aggregator | f1ac34de9661b7f0bf688b0ebea4462141ce0cb2 | [
"MIT"
] | 1 | 2021-11-30T10:29:52.000Z | 2021-12-03T07:35:51.000Z | dashboard/wsgi.py | enolfc/horizon-aggregator | f1ac34de9661b7f0bf688b0ebea4462141ce0cb2 | [
"MIT"
] | 1 | 2021-11-29T13:55:59.000Z | 2021-11-29T13:55:59.000Z | from flask import Flask, render_template
from update_endpoints import read_endpoints
app = Flask(__name__)
@app.route("/")
def main():
return render_template("dashboard.html", endpoints=read_endpoints())
if __name__ == "__main__":
main()
| 20.75 | 72 | 0.742972 | 31 | 249 | 5.419355 | 0.548387 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136546 | 249 | 11 | 73 | 22.636364 | 0.781395 | 0 | 0 | 0 | 0 | 0 | 0.092369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0b365bc7cec8cc79c7fc129263b0e3c34f14992f | 386 | py | Python | pyhidra/gui.py | flammi/pyhidra | e69f7061cd382a1a12b8338684850882d94dd24c | [
"MIT"
] | 10 | 2022-03-01T00:31:55.000Z | 2022-03-30T07:17:35.000Z | pyhidra/gui.py | flammi/pyhidra | e69f7061cd382a1a12b8338684850882d94dd24c | [
"MIT"
] | 8 | 2022-03-01T17:30:12.000Z | 2022-03-31T19:31:37.000Z | pyhidra/gui.py | flammi/pyhidra | e69f7061cd382a1a12b8338684850882d94dd24c | [
"MIT"
] | 4 | 2022-03-01T03:12:50.000Z | 2022-03-23T15:47:00.000Z | import os
import sys
def gui():
"""
Starts the Ghidra GUI
"""
if not "GHIDRA_INSTALL_DIR" in os.environ:
import tkinter.messagebox
msg = "GHIDRA_INSTALL_DIR not set.\nPlease see the README for setup instructions"
tkinter.messagebox.showerror("Improper Setup", msg)
sys.e... | 24.125 | 89 | 0.663212 | 47 | 386 | 5.361702 | 0.638298 | 0.103175 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246114 | 386 | 15 | 90 | 25.733333 | 0.865979 | 0.054404 | 0 | 0 | 0 | 0 | 0.30086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0b3f09c11612fce82529a4851e3d93812edcd381 | 362 | py | Python | examples/contour_parallel.py | mikedh/pypocketing | dbc474c966092cf1861f0507c6d358ebc33d4809 | [
"MIT"
] | 10 | 2018-11-14T04:54:20.000Z | 2020-02-15T05:32:20.000Z | examples/contour_parallel.py | mikedh/pypocketing | dbc474c966092cf1861f0507c6d358ebc33d4809 | [
"MIT"
] | null | null | null | examples/contour_parallel.py | mikedh/pypocketing | dbc474c966092cf1861f0507c6d358ebc33d4809 | [
"MIT"
] | 1 | 2020-07-14T01:21:12.000Z | 2020-07-14T01:21:12.000Z | import trimesh
import pocketing
import matplotlib.pyplot as plt
if __name__ == '__main__':
path = trimesh.load('../models/wrench.dxf')
poly = path.polygons_full[0]
# generate tool paths
toolpaths = pocketing.contour.contour_parallel(poly, .05)
# visualize by plotting
for tool in toolpaths:
... | 20.111111 | 61 | 0.679558 | 46 | 362 | 5.130435 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 0.212707 | 362 | 17 | 62 | 21.294118 | 0.817544 | 0.11326 | 0 | 0 | 1 | 0 | 0.08805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 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 |
0b45aa6bd79a882264b94232105ca37a0d090ab3 | 1,000 | py | Python | Password Generator/password_generator.py | zaydu98/python-mini-project | 660d78001385192e87dd71d378f3314d07f6a678 | [
"MIT"
] | 1 | 2022-02-09T06:40:37.000Z | 2022-02-09T06:40:37.000Z | Password Generator/password_generator.py | Afif-Shadman/python-mini-project | 30559c9a2973ff8ae3db746fb827a835c848209b | [
"MIT"
] | null | null | null | Password Generator/password_generator.py | Afif-Shadman/python-mini-project | 30559c9a2973ff8ae3db746fb827a835c848209b | [
"MIT"
] | 1 | 2022-01-06T16:35:43.000Z | 2022-01-06T16:35:43.000Z | import random
from tkinter import *
from tkinter import messagebox
import pyperclip
gui = Tk()
gui.title('Password Generator')
gui.geometry('250x200')
gui.resizable(0,0)
def process():
length = int(string_pass.get())
lower = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q'... | 34.482759 | 142 | 0.544 | 151 | 1,000 | 3.582781 | 0.569536 | 0.055453 | 0.062847 | 0.014787 | 0.096118 | 0.096118 | 0.096118 | 0.096118 | 0.096118 | 0.096118 | 0 | 0.026506 | 0.17 | 1,000 | 28 | 143 | 35.714286 | 0.625301 | 0 | 0 | 0 | 0 | 0 | 0.166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.347826 | 0.173913 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b45ca4343f7c1de2b22b48ab5a1f9800d5c68fe | 519 | py | Python | server.py | agringeri/hello-world | 069aa2983a02c6290cc9ec2b46dcb057d8a86c2c | [
"Apache-2.0"
] | null | null | null | server.py | agringeri/hello-world | 069aa2983a02c6290cc9ec2b46dcb057d8a86c2c | [
"Apache-2.0"
] | null | null | null | server.py | agringeri/hello-world | 069aa2983a02c6290cc9ec2b46dcb057d8a86c2c | [
"Apache-2.0"
] | null | null | null | from flask import Flask
PORT = 8000
app = Flask(__name__)
@app.route("/")
def root():
result = "Hello, world!\n".encode("utf-8")
return result
@app.route("/user/<username>")
def show_user(username):
return ("Hello, %s\n" % username).encode("utf-8")
@app.route("/user/<username>/<message>")
def show_user... | 23.590909 | 86 | 0.649326 | 78 | 519 | 4.115385 | 0.423077 | 0.074766 | 0.093458 | 0.124611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024664 | 0.140655 | 519 | 21 | 87 | 24.714286 | 0.695067 | 0 | 0 | 0 | 0 | 0 | 0.254335 | 0.050096 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0.133333 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
0b4f079f76c58fec9676d582ee4be97980c1b9c8 | 4,552 | py | Python | robotchallenge/Robot/robot.py | sheecegardezi/RobotChallenge | afce5d48d0f4bfe6e14e824be0c3f20b01337b3f | [
"Apache-2.0"
] | null | null | null | robotchallenge/Robot/robot.py | sheecegardezi/RobotChallenge | afce5d48d0f4bfe6e14e824be0c3f20b01337b3f | [
"Apache-2.0"
] | 2 | 2022-03-02T15:25:00.000Z | 2022-03-03T05:18:12.000Z | robotchallenge/Robot/robot.py | sheecegardezi/RobotChallenge | afce5d48d0f4bfe6e14e824be0c3f20b01337b3f | [
"Apache-2.0"
] | null | null | null | from robotchallenge.constants import ROTATE_DIRECTIONS, DIRECTIONS
from robotchallenge.constants import DIRECTION_STEP_MAPPING, DIRECTION_ROTATION_MAPPING
class Robot:
"""
Robot class
It stores the current position and direction of the robot
It also has methods to move the robot and rotate it
It a... | 36.416 | 101 | 0.650703 | 544 | 4,552 | 5.21875 | 0.128676 | 0.10074 | 0.045791 | 0.056358 | 0.594576 | 0.486087 | 0.434308 | 0.402254 | 0.383586 | 0.365974 | 0 | 0.0012 | 0.267575 | 4,552 | 124 | 102 | 36.709677 | 0.85033 | 0.275923 | 0 | 0.117647 | 0 | 0 | 0.066876 | 0.007663 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.039216 | 0.019608 | 0.392157 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b5491dc87b402e5cce06591f69c16b40e886a22 | 1,665 | py | Python | tests/env_test.py | CanLi1/or-gym | b2809bea1ada53069cbdbb4eee12cf258536e8cc | [
"MIT"
] | 180 | 2020-08-11T17:40:38.000Z | 2022-03-31T02:16:50.000Z | tests/env_test.py | CanLi1/or-gym | b2809bea1ada53069cbdbb4eee12cf258536e8cc | [
"MIT"
] | 18 | 2020-08-09T19:01:33.000Z | 2022-03-17T15:58:34.000Z | tests/env_test.py | CanLi1/or-gym | b2809bea1ada53069cbdbb4eee12cf258536e8cc | [
"MIT"
] | 46 | 2020-08-24T07:41:55.000Z | 2022-03-28T10:39:16.000Z | #!usr/bin/env python
'''
Tests to ensure environments load and basic functionality
is satisfied.
'''
import or_gym
from or_gym.version import ENV_LIST
import traceback
def pytest_generate_tests(metafunc):
idlist = []
argvalues = []
for scenario in metafunc.cls.scenarios:
idlist.append(scenario[0]... | 30.272727 | 72 | 0.592793 | 203 | 1,665 | 4.704434 | 0.448276 | 0.065969 | 0.040838 | 0.023037 | 0.081675 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008726 | 0.311712 | 1,665 | 55 | 73 | 30.272727 | 0.824607 | 0.107508 | 0 | 0.05 | 1 | 0 | 0.056195 | 0 | 0 | 0 | 0 | 0 | 0.075 | 1 | 0.1 | false | 0 | 0.075 | 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 |
0b5d0c3c2fbbabdd30180e3f09c1b5d757d0fbe7 | 1,596 | py | Python | clickhouse_mysql/pumper.py | ygnuss/clickhouse-mysql-data-reader | 10e9c15d78ac6e9b61fe23254bf73b0f806e8bd8 | [
"MIT"
] | 1 | 2021-07-21T07:54:35.000Z | 2021-07-21T07:54:35.000Z | clickhouse_mysql/pumper.py | ygnuss/clickhouse-mysql-data-reader | 10e9c15d78ac6e9b61fe23254bf73b0f806e8bd8 | [
"MIT"
] | 1 | 2021-09-13T10:21:22.000Z | 2021-09-13T10:21:22.000Z | clickhouse_mysql/pumper.py | ygnuss/clickhouse-mysql-data-reader | 10e9c15d78ac6e9b61fe23254bf73b0f806e8bd8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class Pumper(object):
"""
Pump data - read data from reader and push into writer
"""
reader = None
writer = None
def __init__(self, reader=None, writer=None):
self.reader = reader
self.writer = writer
if self.reader:
... | 23.820896 | 75 | 0.567043 | 162 | 1,596 | 5.358025 | 0.302469 | 0.082949 | 0.064516 | 0.096774 | 0.281106 | 0.09447 | 0.09447 | 0.09447 | 0 | 0 | 0 | 0.000929 | 0.325188 | 1,596 | 66 | 76 | 24.181818 | 0.805014 | 0.237469 | 0 | 0.074074 | 0 | 0 | 0.069458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0 | 0 | 0 | 0.37037 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b5e9584391a80dcdfcc349a853e5aa13f0a2aa5 | 4,516 | py | Python | src/Honeybee_RADParameters.py | rdzeldenrust/Honeybee | e91e58badc1c9b082596d2cf97baeccdb6d7d0af | [
"CC-BY-3.0"
] | 1 | 2016-03-04T09:47:42.000Z | 2016-03-04T09:47:42.000Z | src/Honeybee_RADParameters.py | rdzeldenrust/Honeybee | e91e58badc1c9b082596d2cf97baeccdb6d7d0af | [
"CC-BY-3.0"
] | null | null | null | src/Honeybee_RADParameters.py | rdzeldenrust/Honeybee | e91e58badc1c9b082596d2cf97baeccdb6d7d0af | [
"CC-BY-3.0"
] | null | null | null | # By Mostapha Sadeghipour Roudsari
# Sadeghipour@gmail.com
# Honeybee started by Mostapha Sadeghipour Roudsari is licensed
# under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
"""
Radiance Parameters - Standard
Check here for more details: http://radsite.lbl.gov/radiance/refer/Notes/rpict_options.ht... | 46.556701 | 313 | 0.635961 | 579 | 4,516 | 4.863558 | 0.44905 | 0.034801 | 0.004261 | 0.012784 | 0.084872 | 0.084872 | 0.064631 | 0.064631 | 0.036222 | 0.036222 | 0 | 0.047208 | 0.28233 | 4,516 | 96 | 314 | 47.041667 | 0.82166 | 0.073295 | 0 | 0.055556 | 0 | 0 | 0.173051 | 0.030096 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027778 | 0.083333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b6bae000008243f2f3bd089a13ea73b17fe163b | 3,241 | py | Python | tests/app/migrations/0016_customimageitem.py | dldevinc/paper-uploads | 9414b6e6fbaa52eadacd9852ce3c4d84c6c2c939 | [
"BSD-3-Clause"
] | 3 | 2020-06-05T10:43:05.000Z | 2022-02-22T16:46:16.000Z | tests/app/migrations/0016_customimageitem.py | dldevinc/paper-uploads | 9414b6e6fbaa52eadacd9852ce3c4d84c6c2c939 | [
"BSD-3-Clause"
] | 2 | 2021-04-03T12:25:20.000Z | 2022-02-02T06:10:46.000Z | tests/app/migrations/0016_customimageitem.py | dldevinc/paper-uploads | 9414b6e6fbaa52eadacd9852ce3c4d84c6c2c939 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-06 10:04
import django.core.files.storage
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import paper_uploads.models.fields.image
import paper_uploads.models.mixins
import paper_uploads.models.utils
class Migration(migrati... | 67.520833 | 229 | 0.688985 | 366 | 3,241 | 5.937158 | 0.374317 | 0.07087 | 0.057984 | 0.077312 | 0.297285 | 0.249425 | 0.16751 | 0.16751 | 0.068109 | 0.068109 | 0 | 0.027988 | 0.184202 | 3,241 | 47 | 230 | 68.957447 | 0.793873 | 0.013885 | 0 | 0 | 1 | 0 | 0.212273 | 0.041327 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.170732 | 0 | 0.243902 | 0 | 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 |
0b78a6f3b6b12cb3b9dc9b14679e09c8f7b5bcad | 352 | py | Python | projects/code_combat/4_Backwoods_Forest/162-Hit_and_Freeze/hit_and_freeze.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | projects/code_combat/4_Backwoods_Forest/162-Hit_and_Freeze/hit_and_freeze.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | projects/code_combat/4_Backwoods_Forest/162-Hit_and_Freeze/hit_and_freeze.py | only-romano/junkyard | b60a25b2643f429cdafee438d20f9966178d6f36 | [
"MIT"
] | null | null | null | def inAttackRange(enemy):
return hero.distanceTo(enemy) <= 3
while True:
enemy = hero.findNearestEnemy()
if hero.canCast("chain-lightning")
hero.cast("chain-lightning", enemy)
elif inAttackRange(enemy):
if hero.isReady("cleave"):
hero.cleave(enemy)
else:
... | 27.076923 | 44 | 0.596591 | 37 | 352 | 5.675676 | 0.540541 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003953 | 0.28125 | 352 | 12 | 45 | 29.333333 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0.105882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b8636cf279af07598296c455133cbb86d987cc8 | 3,463 | py | Python | plotting/plot_pub_densities.py | sjforeman/RadioFisher | fe25f969de9a700c5697168ba9e0d2645c55ed81 | [
"AFL-3.0"
] | 3 | 2020-12-05T11:28:47.000Z | 2021-07-09T02:42:21.000Z | plotting/plot_pub_densities.py | sjforeman/RadioFisher | fe25f969de9a700c5697168ba9e0d2645c55ed81 | [
"AFL-3.0"
] | null | null | null | plotting/plot_pub_densities.py | sjforeman/RadioFisher | fe25f969de9a700c5697168ba9e0d2645c55ed81 | [
"AFL-3.0"
] | 2 | 2021-07-09T02:42:23.000Z | 2021-11-30T06:37:47.000Z | #!/usr/bin/python
"""
Process EOS Fisher matrices and overplot results for several rf.experiments.
"""
import numpy as np
import pylab as P
from rfwrapper import rf
import matplotlib.patches
import matplotlib.cm
from units import *
from mpi4py import MPI
import os
cosmo = rf.experiments.cosmo
#names = ["GBT", "BING... | 30.113043 | 136 | 0.642506 | 607 | 3,463 | 3.487644 | 0.336079 | 0.036845 | 0.042513 | 0.043458 | 0.294757 | 0.243741 | 0.21351 | 0.12565 | 0.056684 | 0.056684 | 0 | 0.028592 | 0.19203 | 3,463 | 114 | 137 | 30.377193 | 0.72802 | 0.203581 | 0 | 0.138889 | 0 | 0 | 0.087891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0b8974ba3768fbcab445f34119c1a90dd89fd88f | 1,096 | py | Python | Python3/0936-Stamping-The-Sequence/soln.py | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | Python3/0936-Stamping-The-Sequence/soln.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | Python3/0936-Stamping-The-Sequence/soln.py | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution:
def movesToStamp(self, stamp, target):
"""
:type stamp: str
:type target: str
:rtype: List[int]
"""
ns, nt = len(stamp), len(target)
if nt < ns or stamp[0] != target[0] or stamp[-1] != target[-1]:
return []
target = list(tar... | 32.235294 | 71 | 0.367701 | 116 | 1,096 | 3.474138 | 0.353448 | 0.019851 | 0.039702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025926 | 0.507299 | 1,096 | 34 | 72 | 32.235294 | 0.72037 | 0.047445 | 0 | 0.068966 | 0 | 0 | 0.00398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
0b8a5c6fe9bfe510085ae2e51cfacd8a7253430b | 2,106 | py | Python | bin/python/utils/image_utils.py | fffy2366/image-processing | e1170b3f670e23e5728caa2716c96b90216ce4b3 | [
"MIT"
] | 38 | 2017-03-08T14:21:51.000Z | 2022-02-23T07:14:24.000Z | bin/python/utils/image_utils.py | haigemsa/image-processing | e1170b3f670e23e5728caa2716c96b90216ce4b3 | [
"MIT"
] | null | null | null | bin/python/utils/image_utils.py | haigemsa/image-processing | e1170b3f670e23e5728caa2716c96b90216ce4b3 | [
"MIT"
] | 16 | 2016-07-20T01:40:21.000Z | 2022-02-23T07:14:26.000Z | # -*- coding: utf-8 -*-
'''
http://blog.csdn.net/zhangtaolmq/article/details/38438037
'''
__author__ = 'feng'
from PIL import Image
import os
from PIL import *
curdir="/Users/fengxuting/Downloads/"
os.chdir(curdir)
class ImageUtils:
# 灰度化
def faceBlankWhite(filename):
image_file = Image.open(cur... | 23.931818 | 79 | 0.518519 | 266 | 2,106 | 4.030075 | 0.353383 | 0.011194 | 0.013993 | 0.01959 | 0.162313 | 0.098881 | 0.098881 | 0.098881 | 0.098881 | 0.098881 | 0 | 0.08061 | 0.346154 | 2,106 | 87 | 80 | 24.206897 | 0.697894 | 0.097341 | 0 | 0.181818 | 0 | 0 | 0.091557 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018182 | 0.054545 | null | null | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0b96fbe59b25a77f47eb0432216167e7bea2e6ad | 27,662 | py | Python | ietf/codestand/requests/views.py | wpjesus/codematch | eee7405259cce9239ea0545a2a1300ee1accfe94 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2015-09-02T19:53:12.000Z | 2015-09-02T19:53:12.000Z | ietf/codestand/requests/views.py | wpjesus/codematch | eee7405259cce9239ea0545a2a1300ee1accfe94 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ietf/codestand/requests/views.py | wpjesus/codematch | eee7405259cce9239ea0545a2a1300ee1accfe94 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import get_object_or_404
from django.forms.models import modelform_factory
from django.db.models import Count
from django.http import Http404, HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from django.conf import settings
from django.core.paginator import Paginator... | 41.41018 | 121 | 0.625551 | 3,125 | 27,662 | 5.36256 | 0.1024 | 0.051796 | 0.071369 | 0.023272 | 0.529777 | 0.434837 | 0.389008 | 0.325277 | 0.307555 | 0.289056 | 0 | 0.003161 | 0.290868 | 27,662 | 667 | 122 | 41.472264 | 0.851142 | 0.158268 | 0 | 0.375824 | 0 | 0 | 0.039629 | 0.010816 | 0 | 0 | 0 | 0.010495 | 0 | 1 | 0.01978 | false | 0 | 0.030769 | 0 | 0.074725 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
0b9a34dda7a5a209a7532c2cca6a165ec0d237f9 | 9,104 | py | Python | src/tasker/storages/basic.py | chenrz925/tasker | d41aa1bd76b2f2f834d14b92183da3aa8179721e | [
"Apache-2.0"
] | 2 | 2020-07-17T16:55:21.000Z | 2020-07-19T02:34:46.000Z | src/tasker/storages/basic.py | chenrz925/tasker | d41aa1bd76b2f2f834d14b92183da3aa8179721e | [
"Apache-2.0"
] | null | null | null | src/tasker/storages/basic.py | chenrz925/tasker | d41aa1bd76b2f2f834d14b92183da3aa8179721e | [
"Apache-2.0"
] | null | null | null | __all__ = [
'Storage',
'DictStorage',
'StorageView',
'CommonStorageView',
'ForkStorageView',
'ReduceStorageView',
'MapStorageView',
]
from abc import ABCMeta, abstractmethod
from collections import OrderedDict
from sys import stderr
from typing import Text, Any
class Storage(metaclass=ABC... | 34.61597 | 110 | 0.649275 | 1,075 | 9,104 | 5.098605 | 0.100465 | 0.146506 | 0.09615 | 0.049808 | 0.707535 | 0.623974 | 0.534939 | 0.469257 | 0.340631 | 0.317278 | 0 | 0 | 0.239126 | 9,104 | 262 | 111 | 34.748092 | 0.791252 | 0 | 0 | 0.527094 | 0 | 0 | 0.17344 | 0.017904 | 0 | 0 | 0 | 0 | 0.019704 | 1 | 0.221675 | false | 0.004926 | 0.019704 | 0.083744 | 0.477833 | 0.009852 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0bad39a6c1e72c4389ba0b3bc6fc9bc0f49cc9f2 | 869 | py | Python | demands/models.py | rkprajapat/construction-crm | ae70238862f3048e4b1b849f9c16bf1bdf867a28 | [
"MIT"
] | null | null | null | demands/models.py | rkprajapat/construction-crm | ae70238862f3048e4b1b849f9c16bf1bdf867a28 | [
"MIT"
] | 11 | 2020-02-12T00:51:32.000Z | 2022-03-11T23:57:22.000Z | demands/models.py | rkprajapat/construction-crm | ae70238862f3048e4b1b849f9c16bf1bdf867a28 | [
"MIT"
] | null | null | null | from django.db import models
from datetime import date
from projects.models import Unit
status_choices = [
('Open', 'Open'),
('Closed', 'Closed')
]
class Demand(models.Model):
unit = models.ForeignKey(Unit, on_delete=models.CASCADE, blank=False, related_name='demand')
status = models.CharField(max_le... | 33.423077 | 96 | 0.701956 | 114 | 869 | 5.184211 | 0.45614 | 0.067682 | 0.060914 | 0.081218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.171461 | 869 | 25 | 97 | 34.76 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.065593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0.05 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0bad778810011deb400cbe568d9dddf4df9792c4 | 78,684 | py | Python | vnpy/trader/gateway/ctpGateway/ctpGateway.py | frikyalong/vnpy | d8ea554e34ff285c97cc2ddb4e881a1f0a6f02d3 | [
"MIT"
] | 1 | 2018-11-05T07:34:36.000Z | 2018-11-05T07:34:36.000Z | vnpy/trader/gateway/ctpGateway/ctpGateway.py | frikyalong/vnpy | d8ea554e34ff285c97cc2ddb4e881a1f0a6f02d3 | [
"MIT"
] | null | null | null | vnpy/trader/gateway/ctpGateway/ctpGateway.py | frikyalong/vnpy | d8ea554e34ff285c97cc2ddb4e881a1f0a6f02d3 | [
"MIT"
] | null | null | null | # encoding: UTF-8
'''
vn.ctp的gateway接入
考虑到现阶段大部分CTP中的ExchangeID字段返回的都是空值
vtSymbol直接使用symbol
'''
print('loading ctpGateway.py')
import os
import json
# 加载经booster编译转换的SO API库
from vnpy.trader.gateway.ctpGateway.vnctpmd import MdApi
from vnpy.trader.gateway.ctpGateway.vnctptd import TdApi
print(u'loaded vnctpmd/vnctpt... | 35.879617 | 146 | 0.462279 | 6,358 | 78,684 | 5.637936 | 0.167034 | 0.026112 | 0.03264 | 0.029683 | 0.389193 | 0.320761 | 0.285332 | 0.226162 | 0.200636 | 0.182838 | 0 | 0.007963 | 0.292931 | 78,684 | 2,193 | 147 | 35.879617 | 0.636344 | 0.207666 | 0 | 0.439871 | 0 | 0 | 0.06907 | 0.011107 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138015 | false | 0.096045 | 0.016142 | 0 | 0.188862 | 0.008071 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0bb81790ea1de35c440c973326edd202f3c9da9e | 1,760 | py | Python | src/apps/ecidadania/voting/forms.py | sdaityari/e-cidadania | 2fc7f312145e7cd674033f3d765ff9ff8d4fb23c | [
"Apache-2.0"
] | 40 | 2015-03-26T20:46:16.000Z | 2022-02-28T09:15:30.000Z | src/apps/ecidadania/voting/forms.py | zixtor/e-cidadania | 2fc7f312145e7cd674033f3d765ff9ff8d4fb23c | [
"Apache-2.0"
] | 1 | 2017-07-29T09:44:12.000Z | 2017-08-08T16:27:22.000Z | src/apps/ecidadania/voting/forms.py | zixtor/e-cidadania | 2fc7f312145e7cd674033f3d765ff9ff8d4fb23c | [
"Apache-2.0"
] | 19 | 2015-01-13T20:40:49.000Z | 2021-11-02T03:53:39.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2013 Clione Software
# Copyright (c) 2010-2013 Cidadania S. Coop. Galega
#
# 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.or... | 29.333333 | 78 | 0.702841 | 227 | 1,760 | 5.39207 | 0.559471 | 0.04902 | 0.044118 | 0.056373 | 0.04902 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01294 | 0.209659 | 1,760 | 59 | 79 | 29.830508 | 0.867002 | 0.482955 | 0 | 0.25 | 0 | 0 | 0.029343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0bbb1a62db62fd3757b01c301f942d754c250660 | 1,147 | py | Python | jetblue_ml.py | stanley98yu/yhackssp-jetblueml | 8e3572ceeef06dc8f2caa17edff4e335c4aa6603 | [
"MIT"
] | null | null | null | jetblue_ml.py | stanley98yu/yhackssp-jetblueml | 8e3572ceeef06dc8f2caa17edff4e335c4aa6603 | [
"MIT"
] | null | null | null | jetblue_ml.py | stanley98yu/yhackssp-jetblueml | 8e3572ceeef06dc8f2caa17edff4e335c4aa6603 | [
"MIT"
] | null | null | null | import tflearn
from tflearn.layers.conv import conv_2d, max_pool_2d
from tflearn.layers.core import input_data, dropout, fully_connected
from tflearn.layers.estimator import regression
import pickle
pathPickle = 'data.p'
pathModel = 'model.tflearn'
size = .01
X, Y = pickle.load(open(pathPickle, 'rb'))
network = tfle... | 42.481481 | 126 | 0.774194 | 156 | 1,147 | 5.576923 | 0.397436 | 0.128736 | 0.131034 | 0.193103 | 0.391954 | 0.391954 | 0.391954 | 0.391954 | 0.391954 | 0.391954 | 0 | 0.031519 | 0.087184 | 1,147 | 27 | 127 | 42.481481 | 0.799427 | 0 | 0 | 0.318182 | 0 | 0 | 0.087108 | 0.020906 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.227273 | 0 | 0.227273 | 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 |
0bbec556e65cb61b83ae50188f8a10e51d7f9a81 | 260 | py | Python | PythonKata/switch-reveser/switch_reveser.py | MasherJames/Javascript-Algorithms | 5ea3e21dde34e513745ca84220ed6503c0bc0222 | [
"MIT"
] | 3 | 2019-01-16T10:06:51.000Z | 2019-07-04T17:07:29.000Z | PythonKata/switch-reveser/switch_reveser.py | MasherJames/Javascript-Algorithms | 5ea3e21dde34e513745ca84220ed6503c0bc0222 | [
"MIT"
] | 6 | 2020-02-23T20:44:38.000Z | 2020-07-18T21:57:32.000Z | PythonKata/switch-reveser/switch_reveser.py | MasherJames/Data-Structures-and-Algorithms | 5ea3e21dde34e513745ca84220ed6503c0bc0222 | [
"MIT"
] | null | null | null | def switch_reversing(lst):
if not all(type(x) == type(lst[0]) for x in lst):
return lst
else:
if type(lst[0]) == int:
return lst[::-1]
elif type(lst[0]) == str:
return [element.upper() for element in lst] | 32.5 | 55 | 0.523077 | 39 | 260 | 3.461538 | 0.512821 | 0.155556 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022857 | 0.326923 | 260 | 8 | 55 | 32.5 | 0.748571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.5 | 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 |
e7e47e3ba7a553cd6aca002e6559b52dddda7165 | 1,690 | py | Python | program_top/components/zmq_io_interface.py | xunquant/fish_quant_trader | 40ecb81d1e51b80ccbff89753ff9e0ca8329d20c | [
"MIT"
] | 7 | 2016-11-05T22:27:00.000Z | 2020-01-09T15:57:16.000Z | program_top/components/zmq_io_interface.py | xunquant/fish_quant_trader | 40ecb81d1e51b80ccbff89753ff9e0ca8329d20c | [
"MIT"
] | 1 | 2016-08-18T14:00:25.000Z | 2016-08-18T14:00:25.000Z | program_top/components/zmq_io_interface.py | xunquant/fish_quant_trader | 40ecb81d1e51b80ccbff89753ff9e0ca8329d20c | [
"MIT"
] | 5 | 2016-08-19T04:31:25.000Z | 2018-08-16T15:35:07.000Z | # -*- coding: utf-8 -*-
from zmq.eventloop.zmqstream import ZMQStream
from zmq import Context,PULL,PUSH
from program_top.utilities.ip_and_socket import get_local_ip
from program_top.components import component_base
class zmq_listen_connection(object):
'''zmq监听连接'''
def __init__(self,port_number,callback_function):
... | 27.704918 | 106 | 0.777515 | 231 | 1,690 | 5.21645 | 0.341991 | 0.058091 | 0.063071 | 0.076349 | 0.205809 | 0.205809 | 0.205809 | 0.205809 | 0.058091 | 0 | 0 | 0.003287 | 0.1 | 1,690 | 61 | 107 | 27.704918 | 0.788955 | 0.062722 | 0 | 0.25641 | 0 | 0 | 0.053247 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.205128 | 0.102564 | 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 |
e7e4fb7b4f2924b265d588cf254c4956b551ce86 | 14,813 | py | Python | tests/test_python.py | vmagamedov/kinko | b65f8ae97bbf5d056781e90e22d2a369f440ed4c | [
"BSD-3-Clause"
] | 5 | 2015-11-18T20:31:14.000Z | 2016-05-05T07:43:21.000Z | tests/test_python.py | vmagamedov/kinko | b65f8ae97bbf5d056781e90e22d2a369f440ed4c | [
"BSD-3-Clause"
] | 5 | 2016-03-17T14:42:30.000Z | 2016-06-27T13:31:26.000Z | tests/test_python.py | vmagamedov/kinko | b65f8ae97bbf5d056781e90e22d2a369f440ed4c | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
from __future__ import unicode_literals
import difflib
from textwrap import dedent
from kinko.types import StringType, ListType, VarNamedArgs, Func, Record, Option
from kinko.types import IntType, Union, Markup, NamedArg, BoolType
from kinko.compat import _exec_in, PY3, text_type_name
from kinko.loo... | 29.045098 | 80 | 0.424627 | 1,375 | 14,813 | 4.522909 | 0.124364 | 0.124457 | 0.180093 | 0.106609 | 0.540762 | 0.487377 | 0.408265 | 0.381573 | 0.360347 | 0.324007 | 0 | 0.010856 | 0.415446 | 14,813 | 509 | 81 | 29.102161 | 0.707357 | 0.001013 | 0 | 0.239216 | 0 | 0.003922 | 0.105345 | 0.03106 | 0 | 0 | 0 | 0 | 0.113725 | 1 | 0.117647 | false | 0 | 0.047059 | 0 | 0.168627 | 0.003922 | 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 |
e7e8d6958756df38784ebc794e2831150de96803 | 1,575 | py | Python | flexget/tests/test_only_new.py | sillygreen89/Flexget | 60f24ab0dda7b94c87ba43451921c50c3cef391f | [
"MIT"
] | 1 | 2018-05-02T21:14:50.000Z | 2018-05-02T21:14:50.000Z | flexget/tests/test_only_new.py | sillygreen89/Flexget | 60f24ab0dda7b94c87ba43451921c50c3cef391f | [
"MIT"
] | null | null | null | flexget/tests/test_only_new.py | sillygreen89/Flexget | 60f24ab0dda7b94c87ba43451921c50c3cef391f | [
"MIT"
] | null | null | null | from __future__ import unicode_literals, division, absolute_import
from builtins import * # pylint: disable=unused-import, redefined-builtin
class TestOnlyNew(object):
config = """
tasks:
test:
mock:
- {title: 'title 1', url: 'http://localhost/title1'}
only... | 47.727273 | 119 | 0.652698 | 209 | 1,575 | 4.77512 | 0.440191 | 0.06012 | 0.044088 | 0.076152 | 0.218437 | 0.189379 | 0.189379 | 0.152305 | 0.114228 | 0.114228 | 0 | 0.008326 | 0.23746 | 1,575 | 32 | 120 | 49.21875 | 0.822648 | 0.239365 | 0 | 0.142857 | 0 | 0 | 0.440336 | 0 | 0 | 0 | 0 | 0.03125 | 0.190476 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e7e9a83884330210ff06a4f5e5a5aaba33bdf0fe | 2,500 | py | Python | yukon/io/iface/__init__.py | UAVCAN/Yukon | 6ec438391e6984d53e4ae1c855b5dfb0b7fa93bb | [
"MIT"
] | 17 | 2018-12-23T18:53:04.000Z | 2020-09-13T18:32:54.000Z | yukon/io/iface/__init__.py | UAVCAN/Yukon | 6ec438391e6984d53e4ae1c855b5dfb0b7fa93bb | [
"MIT"
] | 44 | 2018-12-23T21:06:05.000Z | 2020-08-19T04:30:25.000Z | yukon/io/iface/__init__.py | UAVCAN/Yukon | 6ec438391e6984d53e4ae1c855b5dfb0b7fa93bb | [
"MIT"
] | 7 | 2018-12-23T05:50:17.000Z | 2020-09-03T02:39:21.000Z | # Copyright (C) 2021 UAVCAN Consortium <uavcan.org>
# This software is distributed under the terms of the MIT License.
# Author: Pavel Kirienko <pavel@uavcan.org>
from __future__ import annotations
import sys
import typing
import dataclasses
import pyuavcan
from org_uavcan_yukon.io.frame import Frame_0_1 as DCSFrame... | 32.467532 | 105 | 0.7156 | 297 | 2,500 | 5.892256 | 0.505051 | 0.096 | 0.061714 | 0.020571 | 0.062857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005525 | 0.2036 | 2,500 | 76 | 106 | 32.894737 | 0.87343 | 0.2108 | 0 | 0.232558 | 0 | 0 | 0.020525 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162791 | false | 0 | 0.186047 | 0 | 0.604651 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e7ee0c25ad548180dfceeb344a1f8309a4f7dbdf | 802 | py | Python | src/test/builder_importer_test.py | popop12342/corpus-builber | cd38f1f82088c93445881a134ca80b639abac9c0 | [
"MIT"
] | null | null | null | src/test/builder_importer_test.py | popop12342/corpus-builber | cd38f1f82088c93445881a134ca80b639abac9c0 | [
"MIT"
] | null | null | null | src/test/builder_importer_test.py | popop12342/corpus-builber | cd38f1f82088c93445881a134ca80b639abac9c0 | [
"MIT"
] | null | null | null | import unittest
import random
from corpus_builder.builder_importer import from_text_file
from corpus_builder.builder import CorpusBuilder
class TestBuilderImporter(unittest.TestCase):
def test_file_reader(self):
builder = from_text_file('simple_domain.txt')
self.assertIsInstance(builder, CorpusBui... | 34.869565 | 65 | 0.741895 | 90 | 802 | 6.333333 | 0.366667 | 0.05614 | 0.084211 | 0.1 | 0.354386 | 0.354386 | 0.354386 | 0.354386 | 0.287719 | 0.287719 | 0 | 0 | 0.168329 | 802 | 22 | 66 | 36.454545 | 0.854573 | 0 | 0 | 0.294118 | 0 | 0 | 0.084894 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.176471 | false | 0 | 0.294118 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e7f3440b947fc76a5320a035fd5acd4b3dd0320b | 590 | py | Python | ddlparse/__init__.py | cyubachi/ddlparse | 72b12c524484c701205c16fb25979de949cdd491 | [
"BSD-3-Clause"
] | null | null | null | ddlparse/__init__.py | cyubachi/ddlparse | 72b12c524484c701205c16fb25979de949cdd491 | [
"BSD-3-Clause"
] | null | null | null | ddlparse/__init__.py | cyubachi/ddlparse | 72b12c524484c701205c16fb25979de949cdd491 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2018 Shinichi Takii, shinichi.takii@gmail.com
#
# This module is part of python-ddlparse and is released under
# the BSD License: https://opensource.org/licenses/BSD-3-Clause
from .ddlparse import *
__copyright__ = 'Copyright (C) 2018-2019 Shinichi Takii'
__version__ ... | 32.777778 | 79 | 0.70339 | 72 | 590 | 5.361111 | 0.597222 | 0.202073 | 0.072539 | 0.108808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03629 | 0.159322 | 590 | 17 | 80 | 34.705882 | 0.741935 | 0.345763 | 0 | 0 | 0 | 0 | 0.493404 | 0.063325 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
e7f50ffb81ff54da1bc1b60f0f38e505ce3bb990 | 31,750 | py | Python | PyLibFTDI/_LibFT4222-64.py | paretech/PyLibFTDI | b0c3a1196e36a3820b950f1fd0cbd3a917365322 | [
"Unlicense"
] | 2 | 2019-03-04T16:10:28.000Z | 2020-01-29T22:36:53.000Z | PyLibFTDI/_LibFT4222-64.py | paretech/PyLibFTDI | b0c3a1196e36a3820b950f1fd0cbd3a917365322 | [
"Unlicense"
] | null | null | null | PyLibFTDI/_LibFT4222-64.py | paretech/PyLibFTDI | b0c3a1196e36a3820b950f1fd0cbd3a917365322 | [
"Unlicense"
] | null | null | null | # generated by 'clang2py'
# flags '-c -d -l ftd2xx64.dll -l LibFT4222-64.dll LibFT4222.h -vvv -o _LibFT4222-64.py'
# -*- coding: utf-8 -*-
#
# TARGET arch is: []
# WORD_SIZE is: 4
# POINTER_SIZE is: 8
# LONGDOUBLE_SIZE is: 8
#
import ctypes
c_int128 = ctypes.c_ubyte*16
c_uint128 = c_int128
void = None
if ctypes.sizeo... | 49.301242 | 214 | 0.807307 | 4,073 | 31,750 | 5.800147 | 0.100417 | 0.051304 | 0.076194 | 0.048679 | 0.4931 | 0.281959 | 0.166314 | 0.137191 | 0.105444 | 0.096766 | 0 | 0.13382 | 0.102331 | 31,750 | 643 | 215 | 49.377916 | 0.695063 | 0.129039 | 0 | 0.015873 | 1 | 0 | 0.194448 | 0.098179 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011338 | false | 0 | 0.004535 | 0.004535 | 0.045351 | 0 | 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 |
e7f72c2321f3ed312ef07d3def5ce605ee903db0 | 3,673 | py | Python | conduit/data/datamodules/vision/cmnist.py | wearepal/conduit | a16e575181c0464aa63ee4c029eac19021ce79ba | [
"MIT"
] | null | null | null | conduit/data/datamodules/vision/cmnist.py | wearepal/conduit | a16e575181c0464aa63ee4c029eac19021ce79ba | [
"MIT"
] | 5 | 2022-03-18T12:54:45.000Z | 2022-03-30T19:14:16.000Z | conduit/data/datamodules/vision/cmnist.py | wearepal/conduit | a16e575181c0464aa63ee4c029eac19021ce79ba | [
"MIT"
] | 1 | 2022-03-24T03:52:44.000Z | 2022-03-24T03:52:44.000Z | """ColoredMNIST data-module."""
from functools import partial
from typing import Any, Dict, List, Optional
import albumentations as A # type: ignore
from albumentations.pytorch.transforms import ToTensorV2 # type: ignore
import attr
import numpy as np
from pytorch_lightning import LightningDataModule
from ranzen imp... | 38.260417 | 97 | 0.683093 | 439 | 3,673 | 5.571754 | 0.316629 | 0.033115 | 0.02453 | 0.02085 | 0.176206 | 0.137367 | 0.137367 | 0.137367 | 0.057236 | 0.040065 | 0 | 0.008421 | 0.224068 | 3,673 | 95 | 98 | 38.663158 | 0.849825 | 0.117343 | 0 | 0.08 | 0 | 0 | 0.006832 | 0.006832 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.053333 | false | 0 | 0.173333 | 0.013333 | 0.426667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e7fdf09746300b5dd5458742a78cea9bc173968c | 17,212 | py | Python | abcdeep/hook.py | Conchylicultor/AbcDeep | 6fcfc03a1a516ccd760201bb004098e6f6fe0e7e | [
"Apache-2.0"
] | 1 | 2017-09-10T14:13:39.000Z | 2017-09-10T14:13:39.000Z | abcdeep/hook.py | Conchylicultor/AbcDeep | 6fcfc03a1a516ccd760201bb004098e6f6fe0e7e | [
"Apache-2.0"
] | null | null | null | abcdeep/hook.py | Conchylicultor/AbcDeep | 6fcfc03a1a516ccd760201bb004098e6f6fe0e7e | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Conchylicultor. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 35.270492 | 236 | 0.610098 | 2,039 | 17,212 | 4.997057 | 0.240314 | 0.022083 | 0.014035 | 0.012563 | 0.180194 | 0.155953 | 0.148592 | 0.112572 | 0.069389 | 0.040239 | 0 | 0.003551 | 0.296479 | 17,212 | 487 | 237 | 35.342916 | 0.837889 | 0.36765 | 0 | 0.193548 | 0 | 0.004032 | 0.070313 | 0.002246 | 0 | 0 | 0 | 0.026694 | 0 | 1 | 0.153226 | false | 0.008065 | 0.032258 | 0.004032 | 0.25 | 0.024194 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f0068b0fb0dc24159740ea34c9f1c01e44cf58c9 | 236 | py | Python | python/mongoClear.py | WorldViews/FlowerGarden | af274812bd4de1b0bb1e1f17898cc2f7853c65a1 | [
"CC0-1.0"
] | 2 | 2020-06-05T07:50:29.000Z | 2020-06-05T20:53:55.000Z | python/mongoClear.py | WorldViews/FlowerGarden | af274812bd4de1b0bb1e1f17898cc2f7853c65a1 | [
"CC0-1.0"
] | 4 | 2020-07-07T16:51:39.000Z | 2021-03-08T03:11:50.000Z | python/mongoClear.py | WorldViews/FlowerGarden | af274812bd4de1b0bb1e1f17898cc2f7853c65a1 | [
"CC0-1.0"
] | 1 | 2020-07-27T08:29:19.000Z | 2020-07-27T08:29:19.000Z |
import pymongo
def clear():
print("Remove Flowers")
client = pymongo.MongoClient('localhost', 27017)
print(client)
db = client.db1
print(db)
flowers = db.flowers
print(flowers)
flowers.remove()
clear() | 16.857143 | 52 | 0.644068 | 27 | 236 | 5.62963 | 0.481481 | 0.118421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033149 | 0.233051 | 236 | 14 | 53 | 16.857143 | 0.80663 | 0 | 0 | 0 | 0 | 0 | 0.097458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.181818 | 0.363636 | 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 |
f00836fb64fb5ca5cff73a6154acd17b6c46dafb | 6,856 | py | Python | src/papilotte/api/factoids.py | gvasold/papilotte | 7683da0a56daf77450f962caaf58b7cfe3acf408 | [
"Apache-2.0"
] | 3 | 2019-10-28T08:27:32.000Z | 2021-03-01T02:30:26.000Z | src/papilotte/api/factoids.py | gvasold/papilotte | 7683da0a56daf77450f962caaf58b7cfe3acf408 | [
"Apache-2.0"
] | null | null | null | src/papilotte/api/factoids.py | gvasold/papilotte | 7683da0a56daf77450f962caaf58b7cfe3acf408 | [
"Apache-2.0"
] | null | null | null | """Handles all methods on .../persons
"""
from connexion import problem
from flask import current_app as app
from flask import request
from papilotte.exceptions import (CreationException, DeletionError,
ReferentialIntegrityError, InvalidIdError)
from papilotte.api import is_valid_id, ... | 38.088889 | 136 | 0.630688 | 827 | 6,856 | 5.116082 | 0.26844 | 0.046088 | 0.036871 | 0.043489 | 0.350035 | 0.312219 | 0.282203 | 0.26944 | 0.201844 | 0.201844 | 0 | 0.012166 | 0.256709 | 6,856 | 179 | 137 | 38.301676 | 0.818093 | 0.297112 | 0 | 0.361111 | 0 | 0 | 0.247611 | 0.044115 | 0 | 0 | 0 | 0.011173 | 0 | 1 | 0.074074 | false | 0 | 0.046296 | 0 | 0.305556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
f00baa729d247f6cfe4d4e4afe91612037a4ddfe | 7,016 | py | Python | vagrant/catalog/webserverpractice.py | gavmcnamara/music-catalog-api | 41087cbab7e04a327cf2870e67d2a69b97006db6 | [
"MIT"
] | null | null | null | vagrant/catalog/webserverpractice.py | gavmcnamara/music-catalog-api | 41087cbab7e04a327cf2870e67d2a69b97006db6 | [
"MIT"
] | null | null | null | vagrant/catalog/webserverpractice.py | gavmcnamara/music-catalog-api | 41087cbab7e04a327cf2870e67d2a69b97006db6 | [
"MIT"
] | null | null | null |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import cgi
# import CRUD Operations from Lesson 1
from tables import Base, Genre, Band
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
# Create session and connect to DB
engine = create_engine('sqlite:///genresofmusic.db')
Bas... | 41.761905 | 124 | 0.496864 | 662 | 7,016 | 5.194864 | 0.220544 | 0.041873 | 0.04071 | 0.036639 | 0.651934 | 0.581564 | 0.553649 | 0.498982 | 0.498982 | 0.473393 | 0 | 0.01191 | 0.377708 | 7,016 | 168 | 125 | 41.761905 | 0.775767 | 0.044185 | 0 | 0.58209 | 0 | 0.022388 | 0.203823 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007463 | 0.037313 | null | null | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f010c4f71441ee6216675974cea69279261778a9 | 642 | py | Python | test/test_cluster.py | timgates42/kafka-python | 3861e16ea4ef8d60bc6ffc51c0183da33c629642 | [
"Apache-2.0"
] | 4,389 | 2015-06-12T06:00:10.000Z | 2022-03-31T20:41:42.000Z | test/test_cluster.py | timgates42/kafka-python | 3861e16ea4ef8d60bc6ffc51c0183da33c629642 | [
"Apache-2.0"
] | 1,595 | 2015-12-02T20:58:22.000Z | 2022-03-27T07:28:03.000Z | test/test_cluster.py | timgates42/kafka-python | 3861e16ea4ef8d60bc6ffc51c0183da33c629642 | [
"Apache-2.0"
] | 1,115 | 2015-12-02T23:17:52.000Z | 2022-03-30T03:34:29.000Z | # pylint: skip-file
from __future__ import absolute_import
import pytest
from kafka.cluster import ClusterMetadata
from kafka.protocol.metadata import MetadataResponse
def test_empty_broker_list():
cluster = ClusterMetadata()
assert len(cluster.brokers()) == 0
cluster.update_metadata(MetadataResponse[0... | 27.913043 | 63 | 0.663551 | 75 | 642 | 5.546667 | 0.506667 | 0.064904 | 0.115385 | 0.165865 | 0.298077 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029014 | 0.194704 | 642 | 22 | 64 | 29.181818 | 0.775629 | 0.143302 | 0 | 0.285714 | 0 | 0 | 0.022018 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.357143 | 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 |
f0118cddee28b79cc7188e26eacb97ab7f23b4b0 | 1,551 | py | Python | src/nidmm/metadata/enums_addon.py | dan-davello/nimi-python | 8d89e4cfb205f789630cf7725f0c3d57bfe7d755 | [
"MIT"
] | null | null | null | src/nidmm/metadata/enums_addon.py | dan-davello/nimi-python | 8d89e4cfb205f789630cf7725f0c3d57bfe7d755 | [
"MIT"
] | null | null | null | src/nidmm/metadata/enums_addon.py | dan-davello/nimi-python | 8d89e4cfb205f789630cf7725f0c3d57bfe7d755 | [
"MIT"
] | null | null | null | # These dictionaries are applied to the generated enums dictionary at build time
# Any changes to the API should be made here. attributes.py is code generated
# We are not code genning enums that have been marked as obsolete prior to the initial
# Python API bindings release
# We also do not codegen enums associated w... | 41.918919 | 116 | 0.685364 | 183 | 1,551 | 5.644809 | 0.546448 | 0.067764 | 0.077444 | 0.108422 | 0.300097 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018639 | 0.204384 | 1,551 | 36 | 117 | 43.083333 | 0.818477 | 0.482914 | 0 | 0.12 | 1 | 0 | 0.465057 | 0.148666 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f018deecc5b8334f68b4d41c5523bbfd50c210c7 | 319 | py | Python | nombre.py | Danieldevop/Python-examples | 9ff038c80c6a2edc82ffafbf74a33084d64ff7a8 | [
"MIT"
] | null | null | null | nombre.py | Danieldevop/Python-examples | 9ff038c80c6a2edc82ffafbf74a33084d64ff7a8 | [
"MIT"
] | null | null | null | nombre.py | Danieldevop/Python-examples | 9ff038c80c6a2edc82ffafbf74a33084d64ff7a8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
x = int(raw_input("escribe un número: "))
y = int(raw_input("escribe otro número "))
name = raw_input("cuál es tu nombre?")
if (name == "daniel"):
suma = x + y
print("hola " + name + "!")
print("la suma de los números es: " + str(suma))
else:
print("no has puesto el nombre correcto!!!") | 26.583333 | 49 | 0.60815 | 50 | 319 | 3.82 | 0.66 | 0.125654 | 0.115183 | 0.188482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003876 | 0.191223 | 319 | 12 | 50 | 26.583333 | 0.736434 | 0.065831 | 0 | 0 | 0 | 0 | 0.441077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f01d5c6831f40e23eac66b99e84afe1a3b31f157 | 1,267 | py | Python | setup.py | Timokasse/rediscache | e5bef0da973bdf53efaaea99b0ed9b41bb331ade | [
"Apache-2.0"
] | null | null | null | setup.py | Timokasse/rediscache | e5bef0da973bdf53efaaea99b0ed9b41bb331ade | [
"Apache-2.0"
] | null | null | null | setup.py | Timokasse/rediscache | e5bef0da973bdf53efaaea99b0ed9b41bb331ade | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
def readme():
with open('README.md') as readmemd:
return readmemd.read()
setup(
name = 'rediscache',
packages = ['rediscache'],
version = '0.1.0',
description = 'Utilities to show execution time during development of a module',
long_d... | 32.487179 | 108 | 0.621942 | 131 | 1,267 | 5.961832 | 0.732824 | 0.005122 | 0.06146 | 0.084507 | 0.099872 | 0.099872 | 0 | 0 | 0 | 0 | 0 | 0.007269 | 0.239937 | 1,267 | 38 | 109 | 33.342105 | 0.803738 | 0.039463 | 0 | 0.058824 | 0 | 0 | 0.514403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | true | 0 | 0.029412 | 0 | 0.088235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f01d60c250bad776456bc90e3f5b31900827b479 | 464 | py | Python | environments/base/topics/python/pandas_repl.py | borismattijssen/dotfiles | d5761498f8e932c8bdec90112fec23de14aa03b7 | [
"MIT"
] | null | null | null | environments/base/topics/python/pandas_repl.py | borismattijssen/dotfiles | d5761498f8e932c8bdec90112fec23de14aa03b7 | [
"MIT"
] | null | null | null | environments/base/topics/python/pandas_repl.py | borismattijssen/dotfiles | d5761498f8e932c8bdec90112fec23de14aa03b7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import pandas as pd
import code
import os
if len(sys.argv) > 1:
f = sys.argv[1]
f_str = f
else:
f = sys.stdin
f_str = 'stdin'
df = pd.read_csv(f)
pd.set_option('display.max_columns', None)
pd.set_option('display.max_rows', None)
pd.set_option('display.width', 1000)
os... | 21.090909 | 82 | 0.681034 | 79 | 464 | 3.886076 | 0.56962 | 0.039088 | 0.107492 | 0.175896 | 0.221498 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01519 | 0.148707 | 464 | 21 | 83 | 22.095238 | 0.762025 | 0.043103 | 0 | 0 | 0 | 0 | 0.232506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.235294 | 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 |
f0292226963babc20149bf44cb4a78e4bf925c21 | 6,254 | py | Python | backend/app/tests/services/test_car.py | BartlomiejRasztabiga/Rentally | ba70199d329895a5295ceddd0ecc4c61928890dd | [
"MIT"
] | 2 | 2021-01-11T23:24:29.000Z | 2021-01-12T09:55:58.000Z | backend/app/tests/services/test_car.py | BartlomiejRasztabiga/Rentally | ba70199d329895a5295ceddd0ecc4c61928890dd | [
"MIT"
] | null | null | null | backend/app/tests/services/test_car.py | BartlomiejRasztabiga/Rentally | ba70199d329895a5295ceddd0ecc4c61928890dd | [
"MIT"
] | null | null | null | from decimal import Decimal
from sqlalchemy.orm import Session
from app import services
from app.models.car import AcType, CarType, DriveType, FuelType, GearboxType
from app.schemas import CarCreateDto, CarUpdateDto
from app.schemas.cars_search_query import (
AvailabilityDatesRange,
CarsSearchQuery,
Numbe... | 30.656863 | 87 | 0.65702 | 825 | 6,254 | 4.704242 | 0.126061 | 0.041742 | 0.03968 | 0.03427 | 0.570729 | 0.491626 | 0.461994 | 0.451172 | 0.425148 | 0.36537 | 0 | 0.022727 | 0.254237 | 6,254 | 203 | 88 | 30.807882 | 0.809391 | 0 | 0 | 0.502959 | 0 | 0 | 0.011033 | 0 | 0 | 0 | 0 | 0 | 0.142012 | 1 | 0.035503 | false | 0.053254 | 0.065089 | 0 | 0.100592 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f02d8c0d2c7649a79a8b2dafa85c95e0427b6523 | 264 | py | Python | BreakPoint.py | Adeleet/mProfiler-py | a24c63007ae9619b828047eb5e37844f615e609f | [
"MIT"
] | null | null | null | BreakPoint.py | Adeleet/mProfiler-py | a24c63007ae9619b828047eb5e37844f615e609f | [
"MIT"
] | null | null | null | BreakPoint.py | Adeleet/mProfiler-py | a24c63007ae9619b828047eb5e37844f615e609f | [
"MIT"
] | null | null | null | from time import time
class BreakPoint:
def __init__(self):
self.start_time = time()
def end(self):
self.end_time = time()
def get_start(self):
return self.start_time
def get_end(self):
if not hasattr(self,) | 17.6 | 32 | 0.598485 | 36 | 264 | 4.138889 | 0.416667 | 0.14094 | 0.174497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.306818 | 264 | 15 | 33 | 17.6 | 0.814208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | 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 |
f030d3454cb7c614b8d5a3f23289b2b49232d5fc | 30,197 | py | Python | win/devkit/plug-ins/scripted/pyJsonAttrPatternFactory.py | leegoonz/Maya-devkit | b81fe799b58e854e4ef16435426d60446e975871 | [
"ADSL"
] | 10 | 2018-03-30T16:09:02.000Z | 2021-12-07T07:29:19.000Z | win/devkit/plug-ins/scripted/pyJsonAttrPatternFactory.py | leegoonz/Maya-devkit | b81fe799b58e854e4ef16435426d60446e975871 | [
"ADSL"
] | null | null | null | win/devkit/plug-ins/scripted/pyJsonAttrPatternFactory.py | leegoonz/Maya-devkit | b81fe799b58e854e4ef16435426d60446e975871 | [
"ADSL"
] | 9 | 2018-06-02T09:18:49.000Z | 2021-12-20T09:24:35.000Z | """
To use, make sure that pyJsonAttrPatternFactory.py is in your MAYA_PLUG_IN_PATH
then do the following:
import maya
maya.cmds.loadPlugin("pyJsonAttrPatternFactory.py")
maya.cmds.listAttrPatterns(patternType=True)
// Return: ["json"]
"""
import os
import sys
import json
import traceback
import maya.api.... | 42.352034 | 124 | 0.665695 | 3,261 | 30,197 | 6.158234 | 0.203925 | 0.018126 | 0.011353 | 0.010308 | 0.286774 | 0.232497 | 0.202221 | 0.191316 | 0.171646 | 0.127577 | 0 | 0.002857 | 0.188562 | 30,197 | 712 | 125 | 42.411517 | 0.816716 | 0.191509 | 0 | 0.195 | 0 | 0 | 0.159294 | 0.015607 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0025 | 0.02 | null | null | 0.005 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f030d61db3b1bf13816d933cfec9146f6f41a417 | 1,615 | py | Python | main_site_content/views.py | corwin-cole/lunas-picture-box | af0870bea27b01abdd64260bc4e0d40423580fb2 | [
"MIT"
] | null | null | null | main_site_content/views.py | corwin-cole/lunas-picture-box | af0870bea27b01abdd64260bc4e0d40423580fb2 | [
"MIT"
] | null | null | null | main_site_content/views.py | corwin-cole/lunas-picture-box | af0870bea27b01abdd64260bc4e0d40423580fb2 | [
"MIT"
] | null | null | null | from collections import OrderedDict
from operator import itemgetter
from django.views.generic import DetailView
from .models import MainSiteContent
from photos.models import Photo
from blog.models import BlogPost
class MainSiteView(DetailView):
"""
Single view class, convenient for an entire one-page site.
... | 35.888889 | 98 | 0.671207 | 201 | 1,615 | 5.323383 | 0.482587 | 0.033645 | 0.018692 | 0.031776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009076 | 0.249536 | 1,615 | 44 | 99 | 36.704545 | 0.873762 | 0.258204 | 0 | 0 | 0 | 0 | 0.04418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.222222 | 0 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f0374ecd5b0521b94b2a3cf900c177ef65db490c | 1,554 | py | Python | quickstart/handlers/fork_caller/lambda_func.py | nmittal18/working_open_lambda | a6b280d107a01ad1366a2ca0ccbb6f4dce736f52 | [
"Apache-2.0"
] | null | null | null | quickstart/handlers/fork_caller/lambda_func.py | nmittal18/working_open_lambda | a6b280d107a01ad1366a2ca0ccbb6f4dce736f52 | [
"Apache-2.0"
] | null | null | null | quickstart/handlers/fork_caller/lambda_func.py | nmittal18/working_open_lambda | a6b280d107a01ad1366a2ca0ccbb6f4dce736f52 | [
"Apache-2.0"
] | null | null | null | import requests
import sys
import json
import os
import time
from subprocess import call
def child():
time.sleep(5)
payload = json.dumps({"name":"Neha"})
r = requests.post("http://172.17.0.1:8081/runLambda/hello", data=payload)
#fg = open("hello_output", 'wb')
#fg.write(str(r.status_code))
#fg.write(st... | 29.884615 | 207 | 0.560489 | 233 | 1,554 | 3.643777 | 0.373391 | 0.047114 | 0.023557 | 0.025913 | 0.188457 | 0.188457 | 0.143698 | 0.143698 | 0.143698 | 0.143698 | 0 | 0.019455 | 0.173102 | 1,554 | 51 | 208 | 30.470588 | 0.641245 | 0.287645 | 0 | 0 | 0 | 0 | 0.216834 | 0.041171 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | 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 |
f039463951ef84b237e0510df6e23eedee5c86e9 | 9,199 | py | Python | 5_i.py | paarthgupta/Color-Blindness-Detection-Data-Analytics | f94e5d22366f0e3b4d633f3287b45e66f98bca2a | [
"MIT"
] | null | null | null | 5_i.py | paarthgupta/Color-Blindness-Detection-Data-Analytics | f94e5d22366f0e3b4d633f3287b45e66f98bca2a | [
"MIT"
] | null | null | null | 5_i.py | paarthgupta/Color-Blindness-Detection-Data-Analytics | f94e5d22366f0e3b4d633f3287b45e66f98bca2a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#"""Untitled1.ipynb
#Automatically generated by Colaboratory.
#Original file is located at
# https://colab.research.google.com/drive/105QoVdeDZbSv4YOPECOv3ZPRNU0Z1jhi
#"""
#from google.colab import drive
#drive.mount('/content/gdrive')
import sys
from bitarray import bitarray
import pand... | 23.587179 | 111 | 0.531688 | 1,406 | 9,199 | 3.3734 | 0.192745 | 0.038794 | 0.006325 | 0.018554 | 0.182374 | 0.091292 | 0.082437 | 0.067468 | 0.067468 | 0.017289 | 0 | 0.057902 | 0.333515 | 9,199 | 389 | 112 | 23.647815 | 0.715707 | 0.10599 | 0 | 0.13 | 1 | 0 | 0.036815 | 0.005993 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03 | false | 0.006667 | 0.03 | 0 | 0.15 | 0.023333 | 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 |
f039ee5758d7b1a272f81345f0f9d2b43b192002 | 751 | py | Python | 79.py | kumaya/dcp | ffcd5f82382a201eaf5a83d39823e0b1da8203f7 | [
"Apache-2.0"
] | null | null | null | 79.py | kumaya/dcp | ffcd5f82382a201eaf5a83d39823e0b1da8203f7 | [
"Apache-2.0"
] | null | null | null | 79.py | kumaya/dcp | ffcd5f82382a201eaf5a83d39823e0b1da8203f7 | [
"Apache-2.0"
] | null | null | null | # Given an array of integers, write a function to determine whether the array
# could become non-decreasing by modifying at most 1 element.
#
# For example, given the array [10, 5, 7], you should return true, since
# we can modify the 10 into a 1 to make the array non-decreasing.
#
# Given the array [10, 5, 1], you sho... | 28.884615 | 77 | 0.635153 | 125 | 751 | 3.752 | 0.472 | 0.06823 | 0.055437 | 0.063966 | 0.10661 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039855 | 0.26498 | 751 | 25 | 78 | 30.04 | 0.809783 | 0.521971 | 0 | 0 | 0 | 0 | 0.022857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f0429e4cd4021b37fc445130c2c2127d625ffc14 | 1,599 | py | Python | portality/scripts/article_cleanup_sync.py | glauberm/doaj | dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7 | [
"Apache-2.0"
] | null | null | null | portality/scripts/article_cleanup_sync.py | glauberm/doaj | dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7 | [
"Apache-2.0"
] | null | null | null | portality/scripts/article_cleanup_sync.py | glauberm/doaj | dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7 | [
"Apache-2.0"
] | null | null | null | """
For each article in the DOAJ index:
* Checks that it has a corresponding journal, deletes it otherwise
* Ensures that the article in_doaj status is the same as the journal's
* Applies the journal's information to the article metadata as needed
"""
from datetime import datetime
from portality.core import... | 38.071429 | 160 | 0.711069 | 224 | 1,599 | 4.991071 | 0.513393 | 0.034884 | 0.019678 | 0.039356 | 0.055456 | 0.055456 | 0 | 0 | 0 | 0 | 0 | 0.000778 | 0.195747 | 1,599 | 41 | 161 | 39 | 0.868585 | 0 | 0 | 0 | 0 | 0.038462 | 0.319611 | 0.016467 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.192308 | null | null | 0.192308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f049ced6e57f0a74e9f8913dbd235398b7034d09 | 1,281 | py | Python | setup.py | pneff/whoarder | 535bbb0df5586d264317bd464a147ca32b369c8e | [
"MIT"
] | null | null | null | setup.py | pneff/whoarder | 535bbb0df5586d264317bd464a147ca32b369c8e | [
"MIT"
] | null | null | null | setup.py | pneff/whoarder | 535bbb0df5586d264317bd464a147ca32b369c8e | [
"MIT"
] | 1 | 2021-07-29T00:32:41.000Z | 2021-07-29T00:32:41.000Z | from setuptools import setup, find_packages
def readme():
with open('README.rst') as f:
return f.read()
setup(name='whoarder',
version='0.3.1',
description="whoarder converts your Kindle's 'My Clippings.txt' file to a more pleasant, sortable, filterable HTML file",
long_description=readme(),
... | 32.025 | 125 | 0.628415 | 138 | 1,281 | 5.753623 | 0.710145 | 0.071788 | 0.094458 | 0.065491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.227166 | 1,281 | 39 | 126 | 32.846154 | 0.792929 | 0 | 0 | 0.055556 | 0 | 0.027778 | 0.501171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | true | 0 | 0.027778 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f04da1824fcefff0a3734739f4c1a86854458aa0 | 1,038 | py | Python | config.py | Hugo0/boilerplate | 7af597201009c81586e68823f40f1187dcdb2f11 | [
"MIT"
] | 1 | 2021-06-02T12:22:56.000Z | 2021-06-02T12:22:56.000Z | config.py | Hugo0/boilerplate | 7af597201009c81586e68823f40f1187dcdb2f11 | [
"MIT"
] | null | null | null | config.py | Hugo0/boilerplate | 7af597201009c81586e68823f40f1187dcdb2f11 | [
"MIT"
] | null | null | null | ################################################
# Config file.
################################################
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
DEBUG = False
TESTING = False
ENV = ''
# get some environment variables (don't put secret keys in )
SECRET_... | 26.615385 | 64 | 0.609827 | 118 | 1,038 | 5.20339 | 0.474576 | 0.07329 | 0.09772 | 0.09772 | 0.125407 | 0.087948 | 0 | 0 | 0 | 0 | 0 | 0.002387 | 0.192678 | 1,038 | 39 | 65 | 26.615385 | 0.73031 | 0.259152 | 0 | 0 | 0 | 0 | 0.113293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.95 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f04e5dd7e2041f4636adf9ba5b6efb96e9bbbbec | 281 | py | Python | test/simple_server/ping.py | malachi-iot/mc-coap | 425b5b77e1474a9ad34aaf6d56df8bd76a1acf39 | [
"MIT"
] | 3 | 2019-11-15T19:38:41.000Z | 2020-08-08T14:46:14.000Z | test/simple_server/ping.py | malachi-iot/mc-coap | 425b5b77e1474a9ad34aaf6d56df8bd76a1acf39 | [
"MIT"
] | null | null | null | test/simple_server/ping.py | malachi-iot/mc-coap | 425b5b77e1474a9ad34aaf6d56df8bd76a1acf39 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from coapthon.client.helperclient import HelperClient
host = "127.0.0.1"
port = 5683
path = "basic"
client = HelperClient(server=(host,port))
print "Issuing request"
response = client.get(path)
print "Got response"
print response.pretty_print()
client.stop()
| 17.5625 | 53 | 0.747331 | 39 | 281 | 5.358974 | 0.641026 | 0.172249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040323 | 0.117438 | 281 | 15 | 54 | 18.733333 | 0.802419 | 0.05694 | 0 | 0 | 0 | 0 | 0.155894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f0515c4f8bbada418809671bb303d1f4539adcd8 | 2,251 | py | Python | src/DocClustering/testClu.py | jd-s/DocClustering | a7d4acff8464f960558cf9cc6d03de78d07d56bf | [
"Apache-2.0"
] | null | null | null | src/DocClustering/testClu.py | jd-s/DocClustering | a7d4acff8464f960558cf9cc6d03de78d07d56bf | [
"Apache-2.0"
] | null | null | null | src/DocClustering/testClu.py | jd-s/DocClustering | a7d4acff8464f960558cf9cc6d03de78d07d56bf | [
"Apache-2.0"
] | null | null | null |
import random
def clustering(run):
newcluster=[]
for i in range(0,run):
rand=random.randint(0, len(cluster.G.nodes()))
if str(rand) in cluster.docList:
if cluster.docList[str(rand)].externalid.rstrip() in list1.list:
colorDoc = dict((key, value) for key, value in c... | 38.810345 | 140 | 0.564194 | 267 | 2,251 | 4.756554 | 0.168539 | 0.125984 | 0.119685 | 0.062992 | 0.705512 | 0.672441 | 0.645669 | 0.645669 | 0.645669 | 0.645669 | 0 | 0.017286 | 0.306086 | 2,251 | 58 | 141 | 38.810345 | 0.795775 | 0.009329 | 0 | 0.428571 | 0 | 0 | 0.006295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.02381 | 0 | 0.071429 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f05340a2a20c8db6cc6c2486a50eb9be04035900 | 4,482 | py | Python | testing/timeit_read_audio.py | ddcas/singing-language-identification | d104419b196d56d4de37cff47c32e88e28c58690 | [
"MIT"
] | null | null | null | testing/timeit_read_audio.py | ddcas/singing-language-identification | d104419b196d56d4de37cff47c32e88e28c58690 | [
"MIT"
] | null | null | null | testing/timeit_read_audio.py | ddcas/singing-language-identification | d104419b196d56d4de37cff47c32e88e28c58690 | [
"MIT"
] | null | null | null | """
This script compares the performance of different audio
reading methods from diverse Python libraries
"""
import timeit
import argparse
def test_performance(args):
# read audio using ffmpeg as a subprocess
setup_ffmpeg = '''
def pcm2float(sig, dtype='float32'):
"""Convert P... | 30.080537 | 79 | 0.512718 | 502 | 4,482 | 4.492032 | 0.320717 | 0.007982 | 0.018625 | 0.03459 | 0.129933 | 0.104656 | 0.072727 | 0.072727 | 0.072727 | 0.072727 | 0 | 0.011832 | 0.377733 | 4,482 | 149 | 80 | 30.080537 | 0.796701 | 0.045515 | 0 | 0.241379 | 0 | 0.008621 | 0.726765 | 0.039311 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008621 | false | 0 | 0.060345 | 0 | 0.103448 | 0.060345 | 0 | 0 | 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 |
f05a49f534a601a963822805eb32ca63c7d16dcb | 2,373 | py | Python | tests/test_search.py | ckear1989/github | d7ddf7df7d4fac9c5a30931c052f5891f211f5ab | [
"MIT"
] | null | null | null | tests/test_search.py | ckear1989/github | d7ddf7df7d4fac9c5a30931c052f5891f211f5ab | [
"MIT"
] | null | null | null | tests/test_search.py | ckear1989/github | d7ddf7df7d4fac9c5a30931c052f5891f211f5ab | [
"MIT"
] | null | null | null | """
Test search functionality of ghh object.
There is an issue with this module.
The api only allows 30 searches per hour and this suite hits that limit.
So the solution is to somehow extend that limit, or (for now) comment out
some tests :(
"""
import pytest
def test_invalid_search(ghh):
"""
Test searching ... | 28.590361 | 76 | 0.697851 | 347 | 2,373 | 4.51585 | 0.25072 | 0.14933 | 0.063816 | 0.108488 | 0.639438 | 0.56605 | 0.546905 | 0.437779 | 0.413529 | 0.357371 | 0 | 0.023597 | 0.196376 | 2,373 | 82 | 77 | 28.939024 | 0.798112 | 0.329962 | 0 | 0.259259 | 0 | 0 | 0.032698 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 1 | 0.259259 | false | 0 | 0.037037 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f05b0ea62b3954ad743f7590fbf01414f466291d | 12,589 | py | Python | opentaxii/persistence/manager.py | eclecticiq/OpenTAXII | d04d0fcc65809cf8fd7baf0c69019c45c4243080 | [
"BSD-3-Clause"
] | 84 | 2018-04-16T18:35:27.000Z | 2022-03-02T15:50:22.000Z | opentaxii/persistence/manager.py | eclecticiq/OpenTAXII | d04d0fcc65809cf8fd7baf0c69019c45c4243080 | [
"BSD-3-Clause"
] | 90 | 2018-04-18T08:56:50.000Z | 2022-03-30T12:42:21.000Z | opentaxii/persistence/manager.py | eclecticiq/OpenTAXII | d04d0fcc65809cf8fd7baf0c69019c45c4243080 | [
"BSD-3-Clause"
] | 54 | 2018-05-05T03:10:39.000Z | 2022-03-11T16:26:49.000Z | import structlog
from opentaxii.local import context
from opentaxii.signals import (
CONTENT_BLOCK_CREATED, INBOX_MESSAGE_CREATED,
SUBSCRIPTION_CREATED)
log = structlog.getLogger(__name__)
class PersistenceManager(object):
'''Manager responsible for persisting and retrieving data.
Manager uses API i... | 35.562147 | 79 | 0.655255 | 1,411 | 12,589 | 5.698795 | 0.119773 | 0.055714 | 0.087551 | 0.052232 | 0.470961 | 0.432906 | 0.380301 | 0.338515 | 0.32098 | 0.289765 | 0 | 0.000108 | 0.266503 | 12,589 | 353 | 80 | 35.66289 | 0.870695 | 0.476289 | 0 | 0.086957 | 0 | 0 | 0.017554 | 0.01663 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208696 | false | 0 | 0.026087 | 0 | 0.452174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f05dbae5cbce58cc87ec041830fdfe2a030f264e | 2,698 | py | Python | applications/biblioteca/controllers/default.py | ivek/web2py-biblio-cesc | c56821c4b1475e0d615b68b641bdffe557dc5244 | [
"BSD-3-Clause"
] | null | null | null | applications/biblioteca/controllers/default.py | ivek/web2py-biblio-cesc | c56821c4b1475e0d615b68b641bdffe557dc5244 | [
"BSD-3-Clause"
] | null | null | null | applications/biblioteca/controllers/default.py | ivek/web2py-biblio-cesc | c56821c4b1475e0d615b68b641bdffe557dc5244 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
# -------------------------------------------------------------------------
# This is a sample controller
# - index is the default action of any application
# - user is required for authentication and authoriz... | 35.038961 | 121 | 0.601927 | 305 | 2,698 | 5.288525 | 0.47541 | 0.043397 | 0.078115 | 0.078115 | 0.032238 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000932 | 0.204596 | 2,698 | 76 | 122 | 35.5 | 0.750699 | 0.481097 | 0 | 0 | 0 | 0 | 0.07208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0 | 0.030303 | 0.424242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f063dc0d4ec5089b681818077510c5958f6e0b9a | 4,700 | py | Python | bitglitter/config/configmodels.py | eurekaX696/BitGlitter-Python | c13176084ae71af959d8e551886055cdc1827391 | [
"MIT"
] | 1 | 2022-02-27T22:02:41.000Z | 2022-02-27T22:02:41.000Z | bitglitter/config/configmodels.py | eurekaX696/BitGlitter-Python | c13176084ae71af959d8e551886055cdc1827391 | [
"MIT"
] | null | null | null | bitglitter/config/configmodels.py | eurekaX696/BitGlitter-Python | c13176084ae71af959d8e551886055cdc1827391 | [
"MIT"
] | null | null | null | from sqlalchemy import Boolean, Column, Integer, String
from multiprocessing import cpu_count
from pathlib import Path
from bitglitter.config.config import engine, session, SqlBaseClass
class Config(SqlBaseClass):
__abstract__ = False
__tablename__ = 'config'
read_path = Column(String, default=str(Path(... | 37.301587 | 116 | 0.690213 | 556 | 4,700 | 5.544964 | 0.241007 | 0.0506 | 0.071359 | 0.042815 | 0.316899 | 0.228349 | 0.214077 | 0.149205 | 0.109633 | 0.109633 | 0 | 0.010196 | 0.207021 | 4,700 | 125 | 117 | 37.6 | 0.817011 | 0.044894 | 0 | 0.208333 | 0 | 0 | 0.048726 | 0.005364 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114583 | false | 0 | 0.041667 | 0.041667 | 0.614583 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f06675344a419d83ea0889b01ca5fcf31b07dd57 | 1,994 | py | Python | examples/ordering.py | ekimekim/girc | 505ec0eb3c0a46adfad62383d9634fe971a430d5 | [
"MIT"
] | 1 | 2016-02-09T10:04:29.000Z | 2016-02-09T10:04:29.000Z | examples/ordering.py | ekimekim/girc | 505ec0eb3c0a46adfad62383d9634fe971a430d5 | [
"MIT"
] | null | null | null | examples/ordering.py | ekimekim/girc | 505ec0eb3c0a46adfad62383d9634fe971a430d5 | [
"MIT"
] | null | null | null |
"""
This example shows how you can refer to other handlers when delcaring a handler in order
to guarentee an ordering between them.
It sets up 5 handlers: A, B, C, D, and "hello".
It specifies that:
B should be after A
B should be before "sync", ie. before any future messages are processed.
sync=True is mainly us... | 27.694444 | 95 | 0.733701 | 343 | 1,994 | 4.239067 | 0.399417 | 0.074278 | 0.057772 | 0.055021 | 0.18707 | 0.136864 | 0.050894 | 0.050894 | 0.050894 | 0 | 0 | 0.004828 | 0.169007 | 1,994 | 71 | 96 | 28.084507 | 0.872661 | 0.609328 | 0 | 0.071429 | 0 | 0 | 0.143019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f066aeb48c08245c93489093632b225eb7a7c29b | 609 | py | Python | app/settings.py | sunwei/flask-saml2-okta | bae37b119c7b8f7ace66df6d0fe3b88c2e0199d3 | [
"MIT"
] | 1 | 2020-03-02T22:14:47.000Z | 2020-03-02T22:14:47.000Z | app/settings.py | sunwei/flask-saml2-okta | bae37b119c7b8f7ace66df6d0fe3b88c2e0199d3 | [
"MIT"
] | null | null | null | app/settings.py | sunwei/flask-saml2-okta | bae37b119c7b8f7ace66df6d0fe3b88c2e0199d3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Application configuration settings for different environment"""
import os
class SecretKey(object):
SECRET_KEY = os.environ.get('APP_SECRET', 'i-fell-not-good')
class AppDirectory(object):
APP_DIR = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.abspath(os.pa... | 17.911765 | 68 | 0.669951 | 78 | 609 | 5.115385 | 0.564103 | 0.06015 | 0.0401 | 0.075188 | 0.195489 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002037 | 0.19376 | 609 | 33 | 69 | 18.454545 | 0.810591 | 0.136289 | 0 | 0.277778 | 0 | 0 | 0.075145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f066d6d6bf811e577e39cddf9b86d8431ce85592 | 479 | py | Python | smpp_client/settings_production.py | m4rtinpf/smpp-client | 58f3b891121050861176e7c1ad9b4198d757d1f6 | [
"MIT"
] | null | null | null | smpp_client/settings_production.py | m4rtinpf/smpp-client | 58f3b891121050861176e7c1ad9b4198d757d1f6 | [
"MIT"
] | 1 | 2022-02-23T20:04:03.000Z | 2022-02-23T20:04:03.000Z | smpp_client/settings_production.py | m4rtinpf/smpp-client | 58f3b891121050861176e7c1ad9b4198d757d1f6 | [
"MIT"
] | null | null | null | """
Production settings.
"""
from pathlib import Path
import os
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.getenv('DJANGO_SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
# DEBUG = True
# todo fix
ALLOWED_HOSTS = ['*']
# Static fil... | 19.958333 | 66 | 0.732777 | 69 | 479 | 4.985507 | 0.666667 | 0.078488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004878 | 0.14405 | 479 | 23 | 67 | 20.826087 | 0.834146 | 0.561587 | 0 | 0 | 0 | 0 | 0.182741 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f076c9acae1d6278c780b64d665bfc89ded3d80c | 2,312 | py | Python | src/tests/test_3_web.py | mlebeur/mygene.info | e71ca89c2b1c546c260101286ad5419503fd6653 | [
"Apache-2.0"
] | null | null | null | src/tests/test_3_web.py | mlebeur/mygene.info | e71ca89c2b1c546c260101286ad5419503fd6653 | [
"Apache-2.0"
] | null | null | null | src/tests/test_3_web.py | mlebeur/mygene.info | e71ca89c2b1c546c260101286ad5419503fd6653 | [
"Apache-2.0"
] | null | null | null |
from biothings.tests.web import BiothingsTestCase
class TestMygeneWeb(BiothingsTestCase):
def test_301_status(self):
self.request('/status')
def test_302_status(self):
self.request('/status', method='HEAD')
def test_311_static(self):
self.request('/favicon.ico')
def test_... | 34.507463 | 89 | 0.612024 | 268 | 2,312 | 5.100746 | 0.365672 | 0.112655 | 0.051207 | 0.041697 | 0.221653 | 0.144111 | 0.119971 | 0.089247 | 0.089247 | 0.089247 | 0 | 0.038572 | 0.248702 | 2,312 | 66 | 90 | 35.030303 | 0.748417 | 0.012111 | 0 | 0.040816 | 0 | 0 | 0.253181 | 0.0509 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.22449 | false | 0 | 0.020408 | 0 | 0.265306 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f07b27594ab8662ceefc605ecc06234a3426a941 | 20,758 | py | Python | src/wormhole_transit_relay/test/test_transit_server.py | sigwinch28/magic-wormhole-transit-relay | c6445321d78bc7f3a795cdf7c71a45731dcffbee | [
"MIT"
] | null | null | null | src/wormhole_transit_relay/test/test_transit_server.py | sigwinch28/magic-wormhole-transit-relay | c6445321d78bc7f3a795cdf7c71a45731dcffbee | [
"MIT"
] | null | null | null | src/wormhole_transit_relay/test/test_transit_server.py | sigwinch28/magic-wormhole-transit-relay | c6445321d78bc7f3a795cdf7c71a45731dcffbee | [
"MIT"
] | null | null | null | from __future__ import print_function, unicode_literals
from binascii import hexlify
from twisted.trial import unittest
from twisted.internet import protocol, reactor, defer
from twisted.internet.endpoints import clientFromString, connectProtocol
from .common import ServerBase
from .. import transit_server
class Accum... | 38.158088 | 82 | 0.615088 | 2,501 | 20,758 | 5.022791 | 0.131148 | 0.050151 | 0.034628 | 0.070928 | 0.685719 | 0.675768 | 0.644643 | 0.631587 | 0.631587 | 0.617099 | 0 | 0.032952 | 0.279266 | 20,758 | 543 | 83 | 38.228361 | 0.806697 | 0.144619 | 0 | 0.65099 | 0 | 0 | 0.054595 | 0.001243 | 0 | 0 | 0 | 0 | 0.111386 | 1 | 0.069307 | false | 0 | 0.017327 | 0.00495 | 0.113861 | 0.002475 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2b3f22c847c676adf4ce06488441bf595979107 | 1,370 | py | Python | scripts/dedup.py | GooglingTheCancerGenome/bamsurgeon | 39244ecc34c0856e086ea7fa43767710054f7c5e | [
"MIT"
] | 180 | 2015-04-08T08:46:22.000Z | 2022-03-18T12:32:54.000Z | scripts/dedup.py | cgpu/bamsurgeon | d611518cdd88858ec75ed73b2d7b2dae5728e41a | [
"MIT"
] | 159 | 2015-02-02T18:26:04.000Z | 2022-03-29T12:22:33.000Z | scripts/dedup.py | cgpu/bamsurgeon | d611518cdd88858ec75ed73b2d7b2dae5728e41a | [
"MIT"
] | 76 | 2015-02-03T19:06:40.000Z | 2022-03-31T14:39:25.000Z | #!/bin/env python
import sys
pad = 10000
class Interval:
def __init__(self,chr,start,end,etc):
self.chr = chr
self.start = int(start)
self.end = int(end)
self.info = etc
def cmp(self,ivl):
if self.chr == ivl.chr:
if (self.start <= ivl.start and self.end >= ... | 25.849057 | 118 | 0.50219 | 199 | 1,370 | 3.39196 | 0.271357 | 0.051852 | 0.053333 | 0.057778 | 0.182222 | 0.154074 | 0.154074 | 0.088889 | 0 | 0 | 0 | 0.018391 | 0.364964 | 1,370 | 52 | 119 | 26.346154 | 0.757471 | 0.011679 | 0 | 0.186047 | 0 | 0 | 0.003695 | 0 | 0.023256 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023256 | null | null | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b2bb9b01f5f5a069db9b7422aa1cc27e7d2883ea | 1,202 | py | Python | lego/apps/polls/views.py | HoboKristian/lego | 2729dcef770ad1105f53e087c07ece3f9e9dbc67 | [
"MIT"
] | null | null | null | lego/apps/polls/views.py | HoboKristian/lego | 2729dcef770ad1105f53e087c07ece3f9e9dbc67 | [
"MIT"
] | 2 | 2021-02-02T23:09:32.000Z | 2021-06-10T23:43:39.000Z | lego/apps/polls/views.py | HoboKristian/lego | 2729dcef770ad1105f53e087c07ece3f9e9dbc67 | [
"MIT"
] | null | null | null | from rest_framework import decorators, viewsets
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from lego.apps.permissions.api.views import AllowedPermissionsMixin
from lego.apps.polls.models import Poll
from lego.apps.polls.serializers import (
DetailedPollSeria... | 35.352941 | 84 | 0.724626 | 122 | 1,202 | 7.032787 | 0.483607 | 0.027972 | 0.059441 | 0.039627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184692 | 1,202 | 33 | 85 | 36.424242 | 0.87551 | 0 | 0 | 0 | 0 | 0 | 0.054077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 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 |
b2bdb2d35347609bbbdfa4f627448bed122cebeb | 3,620 | py | Python | tests/test_scopingscontainer.py | TheGoldfish01/pydpf-core | 75ca8a180454f94cedafbc68c1d6f20dcfc4c795 | [
"MIT"
] | 11 | 2021-01-31T15:50:02.000Z | 2021-10-01T23:15:38.000Z | tests/test_scopingscontainer.py | TheGoldfish01/pydpf-core | 75ca8a180454f94cedafbc68c1d6f20dcfc4c795 | [
"MIT"
] | 46 | 2021-01-14T05:00:50.000Z | 2021-10-06T18:30:37.000Z | tests/test_scopingscontainer.py | TheGoldfish01/pydpf-core | 75ca8a180454f94cedafbc68c1d6f20dcfc4c795 | [
"MIT"
] | 3 | 2021-06-30T07:18:30.000Z | 2021-09-15T08:43:11.000Z | # -*- coding: utf-8 -*-
import weakref
import pytest
from ansys.dpf.core import Scoping, ScopingsContainer
@pytest.fixture()
def elshape_body_sc():
"""Returns a scopings continer with 20 scoping split on body and elshape"""
sc = ScopingsContainer()
sc.labels = ["elshape", "body"]
for i in range(0, 20... | 33.211009 | 88 | 0.617956 | 515 | 3,620 | 4.137864 | 0.139806 | 0.078836 | 0.059127 | 0.079305 | 0.747067 | 0.709057 | 0.680901 | 0.613327 | 0.583294 | 0.580479 | 0 | 0.035883 | 0.237845 | 3,620 | 108 | 89 | 33.518519 | 0.736499 | 0.025414 | 0 | 0.505882 | 0 | 0 | 0.057638 | 0 | 0 | 0 | 0 | 0 | 0.317647 | 1 | 0.117647 | false | 0 | 0.035294 | 0 | 0.164706 | 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 |
b2bdb67d12e8de707897c11bb12cfb3e49554932 | 663 | py | Python | setup.py | testing-cabal/testdoc | f0940e6c8fd4eecfe0d9de582f5daa0eaf6c695f | [
"MIT"
] | 3 | 2015-07-12T14:05:38.000Z | 2016-01-11T23:52:34.000Z | setup.py | testing-cabal/testdoc | f0940e6c8fd4eecfe0d9de582f5daa0eaf6c695f | [
"MIT"
] | null | null | null | setup.py | testing-cabal/testdoc | f0940e6c8fd4eecfe0d9de582f5daa0eaf6c695f | [
"MIT"
] | null | null | null | #!/usr/bin/python
from distutils.core import setup
import testdoc
setup(
name='testdoc',
license='MIT',
version=testdoc.__version__,
description="Tool to convert Python unit tests into documentation.",
author="Jonathan Lange",
author_email='jml@mumak.net',
url='https://launchpad.net/testd... | 31.571429 | 78 | 0.647059 | 75 | 663 | 5.64 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24736 | 663 | 20 | 79 | 33.15 | 0.847695 | 0.024133 | 0 | 0 | 0 | 0 | 0.49226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2c3d9c280a28936880b21144b98e4aef4c68a64 | 16,822 | py | Python | DMSCFEDA/end2end_engine.py | tshi04/DMSC_FEDA | 4ca989e45c16aa39ea041c55a414ccd6917d940e | [
"MIT"
] | 1 | 2020-12-16T15:50:08.000Z | 2020-12-16T15:50:08.000Z | DMSCFEDA/end2end_engine.py | tshi04/DMSC_FEDA | 4ca989e45c16aa39ea041c55a414ccd6917d940e | [
"MIT"
] | null | null | null | DMSCFEDA/end2end_engine.py | tshi04/DMSC_FEDA | 4ca989e45c16aa39ea041c55a414ccd6917d940e | [
"MIT"
] | null | null | null | '''
@author Tian Shi
Please contact tshi@vt.edu
'''
import glob
import json
import os
import pickle
import re
import shutil
import time
from pprint import pprint
import numpy as np
import torch
from torch.autograd import Variable
from LeafNATS.data.utils import create_batch_memory, load_vocab_pretrain
from LeafNATS.e... | 36.411255 | 84 | 0.534479 | 1,886 | 16,822 | 4.505832 | 0.11824 | 0.069663 | 0.03389 | 0.037656 | 0.704401 | 0.684279 | 0.667922 | 0.656037 | 0.643446 | 0.63156 | 0 | 0.003532 | 0.360361 | 16,822 | 462 | 85 | 36.411255 | 0.786245 | 0.032933 | 0 | 0.684507 | 0 | 0 | 0.05119 | 0.008354 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03662 | false | 0 | 0.042254 | 0 | 0.087324 | 0.078873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2c6bb15a3860197779866c156ada58a26bf690f | 1,750 | py | Python | py_aoc/18.py | dnase/aoc_2018 | 2031e0326a1b5acf12df6f5cb52526bc118b50d9 | [
"Apache-2.0"
] | null | null | null | py_aoc/18.py | dnase/aoc_2018 | 2031e0326a1b5acf12df6f5cb52526bc118b50d9 | [
"Apache-2.0"
] | null | null | null | py_aoc/18.py | dnase/aoc_2018 | 2031e0326a1b5acf12df6f5cb52526bc118b50d9 | [
"Apache-2.0"
] | null | null | null | from collections import defaultdict
from util import get_data
import subprocess as sp
def parsefunc(s):
return s.strip()
def get_plot(seq):
plot = defaultdict(lambda: '.')
for y, line in enumerate(seq):
for x, c in enumerate(line):
plot[(x, y)] = c
return plot
def num_adjacent(xy,... | 27.777778 | 122 | 0.468 | 257 | 1,750 | 3.128405 | 0.233463 | 0.039801 | 0.022388 | 0.019901 | 0.325871 | 0.325871 | 0.294776 | 0.294776 | 0.220149 | 0.220149 | 0 | 0.032146 | 0.342286 | 1,750 | 62 | 123 | 28.225806 | 0.666377 | 0 | 0 | 0.192308 | 0 | 0 | 0.02 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057692 | null | null | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b2cd97fadf53e5d868b2f1917f4b5fb0e3685b1a | 1,682 | py | Python | iocms/classroom/serializers.py | Gaurav-Zaiswal/iw-acad-iocms-be | a133f120eed93433925608f08c5145d2d0d1db39 | [
"MIT"
] | null | null | null | iocms/classroom/serializers.py | Gaurav-Zaiswal/iw-acad-iocms-be | a133f120eed93433925608f08c5145d2d0d1db39 | [
"MIT"
] | null | null | null | iocms/classroom/serializers.py | Gaurav-Zaiswal/iw-acad-iocms-be | a133f120eed93433925608f08c5145d2d0d1db39 | [
"MIT"
] | 2 | 2021-09-16T04:44:59.000Z | 2021-09-16T05:45:31.000Z | from rest_framework import serializers
from rest_framework import response
from .models import Classroom, ClassroomStudents
from users.serializers import UserSerializer, TeacherSerializer, StudentSerializer
class ClassroomCreateSerializer(serializers.ModelSerializer):
class Meta:
model = Classroom
... | 32.980392 | 94 | 0.719382 | 158 | 1,682 | 7.436709 | 0.246835 | 0.061277 | 0.105532 | 0.119149 | 0.673191 | 0.639149 | 0.639149 | 0.597447 | 0.597447 | 0.597447 | 0 | 0 | 0.1956 | 1,682 | 50 | 95 | 33.64 | 0.868441 | 0 | 0 | 0.666667 | 0 | 0 | 0.090042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2cffb3a1aa0ac13f9ec16147e5555cdb0f99ce8 | 17,030 | py | Python | Course-2-Regression/week-6-local-regression-assignment-blank.py | emetnatbelt/Machine-Learning-Univ-Washington1 | 6e6f9cd69b69157f5c09eed299ab120bf6764de3 | [
"MIT"
] | 20 | 2017-04-06T08:50:58.000Z | 2021-11-01T13:43:22.000Z | Course-2-Regression/week-6-local-regression-assignment-blank.py | emetnatbelt/Machine-Learning-Univ-Washington | 6e6f9cd69b69157f5c09eed299ab120bf6764de3 | [
"MIT"
] | null | null | null | Course-2-Regression/week-6-local-regression-assignment-blank.py | emetnatbelt/Machine-Learning-Univ-Washington | 6e6f9cd69b69157f5c09eed299ab120bf6764de3 | [
"MIT"
] | 24 | 2016-06-01T21:28:17.000Z | 2021-10-02T03:17:11.000Z |
# coding: utf-8
# # Predicting house prices using k-nearest neighbors regression
# In this notebook, you will implement k-nearest neighbors regression. You will:
# * Find the k-nearest neighbors of a given query input
# * Predict the output for the query input using the k-nearest neighbors
# * Choose the best v... | 40.839329 | 447 | 0.731298 | 2,696 | 17,030 | 4.556009 | 0.174703 | 0.015876 | 0.020109 | 0.010421 | 0.298624 | 0.216234 | 0.154441 | 0.145648 | 0.115933 | 0.095416 | 0 | 0.022262 | 0.18761 | 17,030 | 416 | 448 | 40.9375 | 0.865558 | 0.723488 | 0 | 0.048544 | 0 | 0 | 0.052328 | 0.0051 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029126 | null | null | 0.223301 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b2d5670c772853ee3dbe5c86b9a8a009db10a8fb | 8,053 | py | Python | gnuradio-3.7.13.4/gr-wxgui/python/wxgui/scopesink_gl.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | 1 | 2021-03-09T07:32:37.000Z | 2021-03-09T07:32:37.000Z | gnuradio-3.7.13.4/gr-wxgui/python/wxgui/scopesink_gl.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | null | null | null | gnuradio-3.7.13.4/gr-wxgui/python/wxgui/scopesink_gl.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | null | null | null | #
# Copyright 2008,2010,2012 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, or (at your option)
# any later ve... | 33.554167 | 99 | 0.681361 | 1,154 | 8,053 | 4.467938 | 0.239168 | 0.05159 | 0.025213 | 0.017455 | 0.188906 | 0.107642 | 0.078937 | 0.067688 | 0.043638 | 0.035687 | 0 | 0.015946 | 0.190115 | 8,053 | 239 | 100 | 33.694561 | 0.774609 | 0.190115 | 0 | 0.080247 | 0 | 0 | 0.015902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.067901 | null | null | 0.006173 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b2d731eff6121a8f6056a8c6f1de4645ebf38acd | 2,917 | py | Python | Light AN (Basic Tarif)/Brainy_Lesson_1_Python_Syntax.py | BrainyHaron/Python_lessons | 246237114968dfe4df1a8b37e2c50d5be827db1f | [
"MIT"
] | null | null | null | Light AN (Basic Tarif)/Brainy_Lesson_1_Python_Syntax.py | BrainyHaron/Python_lessons | 246237114968dfe4df1a8b37e2c50d5be827db1f | [
"MIT"
] | null | null | null | Light AN (Basic Tarif)/Brainy_Lesson_1_Python_Syntax.py | BrainyHaron/Python_lessons | 246237114968dfe4df1a8b37e2c50d5be827db1f | [
"MIT"
] | null | null | null | print('Task 1')
x = int(input('Add_First_Num '))
y = int(input('Add_Second_Num '))
print('Sum_Num:', x + y, '\n''Diff_Num:', x - y, '\n''Mult_Num:', x * y)
print('\n''Task 2')
for x in range (10, 26):
print(x+(x+1))
print('\n''Task 3')
for x in range(100, 151):
if x % 5 == 0:
print (x)
print('\... | 18.579618 | 109 | 0.540624 | 528 | 2,917 | 2.901515 | 0.227273 | 0.078329 | 0.052219 | 0.057441 | 0.259138 | 0.100522 | 0.052219 | 0.052219 | 0.052219 | 0.052219 | 0 | 0.096337 | 0.242029 | 2,917 | 156 | 110 | 18.698718 | 0.596563 | 0 | 0 | 0.105769 | 0 | 0 | 0.212204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009615 | 0 | 0.009615 | 0.413462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2dccd8fecf2dc73a16cd6ce728f73f6fe9e277e | 1,193 | py | Python | python123/hamlet.py | xmyl/website-login | cbff5af2bb6fa8350bdc9e7cbf4a3733956a34b2 | [
"MIT"
] | null | null | null | python123/hamlet.py | xmyl/website-login | cbff5af2bb6fa8350bdc9e7cbf4a3733956a34b2 | [
"MIT"
] | null | null | null | python123/hamlet.py | xmyl/website-login | cbff5af2bb6fa8350bdc9e7cbf4a3733956a34b2 | [
"MIT"
] | null | null | null | #!/usr/bin python3
# -*- coding: utf-8 -*-
# 文本词频统计
# 请统计hamlet.txt文件中出现的英文单词情况,统计并输出出现最多的10个单词,注意:
# (1) 单词不区分大小写,即单词的大小写或组合形式一样;... | 38.483871 | 190 | 0.334451 | 97 | 1,193 | 6.402062 | 0.608247 | 0.019324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019305 | 0.131601 | 1,193 | 30 | 191 | 39.766667 | 0.3639 | 0.54736 | 0 | 0 | 0 | 0 | 0.105461 | 0.060264 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.166667 | 0.055556 | 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 |
b2ebd826f123314e35b1159bdc7ca2167be56c83 | 5,394 | py | Python | python/foglamp/services/core/api/backup_restore.py | praveen-garg/FogLAMP | abdec78b59c562513478d64402cdfc9681dc9dc0 | [
"Apache-2.0"
] | 1 | 2017-08-16T22:34:27.000Z | 2017-08-16T22:34:27.000Z | python/foglamp/services/core/api/backup_restore.py | praveen-garg/FogLAMP | abdec78b59c562513478d64402cdfc9681dc9dc0 | [
"Apache-2.0"
] | 35 | 2017-07-05T06:26:35.000Z | 2017-12-28T12:27:00.000Z | python/foglamp/services/core/api/backup_restore.py | praveen-garg/FogLAMP | abdec78b59c562513478d64402cdfc9681dc9dc0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# FOGLAMP_BEGIN
# See: http://foglamp.readthedocs.io/
# FOGLAMP_END
"""Backup and Restore Rest API support"""
from aiohttp import web
# TODO: remove this and call actual class methods
from unittest.mock import MagicMock
Backup = MagicMock()
__author__ = "Vaibhav Singhal"
__copyright__ = "Cop... | 39.661765 | 117 | 0.584909 | 620 | 5,394 | 4.948387 | 0.216129 | 0.091265 | 0.023468 | 0.046936 | 0.566167 | 0.515971 | 0.493481 | 0.46708 | 0.448827 | 0.407432 | 0 | 0.028993 | 0.271042 | 5,394 | 135 | 118 | 39.955556 | 0.751272 | 0.094179 | 0 | 0.463415 | 0 | 0 | 0.308491 | 0.060142 | 0 | 0 | 0 | 0.044444 | 0 | 1 | 0 | false | 0 | 0.02439 | 0 | 0.097561 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b2ed756e19c0b1d25edb73521cbc9495469a95c2 | 417 | py | Python | wa_simulator/chrono/__init__.py | WisconsinAutonomous/wa_simulator | 405a086b16f262fc82513ca9b23fd040e6375945 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5 | 2021-02-14T03:56:07.000Z | 2021-12-16T04:46:54.000Z | wa_simulator/chrono/__init__.py | WisconsinAutonomous/wa_simulator | 405a086b16f262fc82513ca9b23fd040e6375945 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-02-05T19:30:55.000Z | 2021-02-05T19:51:21.000Z | wa_simulator/chrono/__init__.py | WisconsinAutonomous/wa_simulator | 405a086b16f262fc82513ca9b23fd040e6375945 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2021-09-20T21:21:12.000Z | 2022-01-09T20:49:46.000Z | """
Requires the `PyChrono <https://projectchrono.org/pychrono/>`_ library.
"""
from wa_simulator._import import _import, _get_files
from wa_simulator import *
try:
# Try to import chrono
# Will through exception if failed
import pychrono as chrono
import pychrono.vehicle as veh
except Exception as e:... | 19.857143 | 71 | 0.726619 | 58 | 417 | 4.931034 | 0.568966 | 0.083916 | 0.104895 | 0.146853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191847 | 417 | 20 | 72 | 20.85 | 0.848665 | 0.302158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
b2f310f875cf2539ecd21cf5d2f4772f4c1423ed | 1,886 | py | Python | XIO/XIO_info.py | jsburg/xdsme | 3fc9ed185ab78e1a42306edf24e681981eacd221 | [
"BSD-3-Clause"
] | 16 | 2016-05-20T11:19:40.000Z | 2021-01-01T19:44:23.000Z | XIO/XIO_info.py | jsburg/xdsme | 3fc9ed185ab78e1a42306edf24e681981eacd221 | [
"BSD-3-Clause"
] | 4 | 2017-03-10T00:51:11.000Z | 2021-02-07T17:18:46.000Z | XIO/XIO_info.py | jsburg/xdsme | 3fc9ed185ab78e1a42306edf24e681981eacd221 | [
"BSD-3-Clause"
] | 9 | 2016-12-15T16:00:06.000Z | 2021-09-10T08:34:14.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# XIO.py
# Maintained by P.Legrand
# 14th April 2005
#
import os
import sys
import XIO
def _print_autopar(parDict):
K = parDict.keys()
K.sort()
for k in K:
print "%s = %s" % (k, parDict[k])
def _test1(filename):
#dc = XIO.Collect(filename)
try... | 26.942857 | 79 | 0.553022 | 225 | 1,886 | 4.546667 | 0.368889 | 0.095797 | 0.046921 | 0.078201 | 0.203324 | 0.203324 | 0 | 0 | 0 | 0 | 0 | 0.013077 | 0.310711 | 1,886 | 69 | 80 | 27.333333 | 0.773846 | 0.060976 | 0 | 0.232143 | 0 | 0 | 0.135488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053571 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2f6612b3a950a3e2e2ac5f393fa04e8be9bb224 | 5,224 | py | Python | gateway/gateway/dependencies/response.py | bgoesswein/implementation_backend | 546018eb5dba79b823e3cfb20472271e02045789 | [
"Apache-2.0"
] | null | null | null | gateway/gateway/dependencies/response.py | bgoesswein/implementation_backend | 546018eb5dba79b823e3cfb20472271e02045789 | [
"Apache-2.0"
] | 5 | 2021-02-08T20:29:22.000Z | 2022-03-11T23:44:17.000Z | gateway/gateway/dependencies/response.py | bgoesswe/implementation_backend | 546018eb5dba79b823e3cfb20472271e02045789 | [
"Apache-2.0"
] | null | null | null | """ ResponseParser, APIException """
from flask import make_response, jsonify, send_file, request, redirect
from flask.wrappers import Response
from uuid import uuid4
from typing import Union
class APIException(Exception):
"""APIException if a Exception in the API gateway or one of the services raises
or a H... | 29.851429 | 115 | 0.568913 | 615 | 5,224 | 4.723577 | 0.226016 | 0.016867 | 0.043373 | 0.053701 | 0.177625 | 0.120138 | 0.084682 | 0.084682 | 0.033046 | 0.033046 | 0 | 0.004016 | 0.332695 | 5,224 | 174 | 116 | 30.022989 | 0.829317 | 0.353369 | 0 | 0.044776 | 0 | 0.014925 | 0.069863 | 0 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.164179 | false | 0 | 0.059701 | 0 | 0.38806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b2f6c7415367e0d3ff03af90e548cafc97f5aa48 | 3,175 | py | Python | eland/tests/dataframe/test_to_csv_pytest.py | mesejo/eland | d1444f8e094ef11ce4fa6713a521245b68a842d7 | [
"Apache-2.0"
] | null | null | null | eland/tests/dataframe/test_to_csv_pytest.py | mesejo/eland | d1444f8e094ef11ce4fa6713a521245b68a842d7 | [
"Apache-2.0"
] | 1 | 2020-05-06T01:34:25.000Z | 2020-05-06T01:34:25.000Z | eland/tests/dataframe/test_to_csv_pytest.py | mesejo/eland | d1444f8e094ef11ce4fa6713a521245b68a842d7 | [
"Apache-2.0"
] | 1 | 2020-05-06T01:31:18.000Z | 2020-05-06T01:31:18.000Z | # Licensed to Elasticsearch B.V under one or more agreements.
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information
# File called _pytest for PyCharm compatability
import ast
import time
import pandas as pd
from pandas.testing impo... | 34.89011 | 108 | 0.642205 | 436 | 3,175 | 4.401376 | 0.266055 | 0.069307 | 0.056279 | 0.053153 | 0.498176 | 0.425221 | 0.425221 | 0.425221 | 0.425221 | 0.425221 | 0 | 0.006127 | 0.280315 | 3,175 | 90 | 109 | 35.277778 | 0.833698 | 0.19622 | 0 | 0.396825 | 0 | 0 | 0.079103 | 0.030697 | 0 | 0 | 0 | 0.011111 | 0.047619 | 1 | 0.031746 | false | 0 | 0.142857 | 0 | 0.190476 | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b2f703fac37fdc02504e73bd136a406c41586962 | 3,200 | py | Python | untitled2.py | WOLF-huo/object_detection_dianziweilan | f0659b6cb3dacf986fdeca5c77097d6eff9e102a | [
"MIT"
] | 1 | 2019-04-18T02:04:02.000Z | 2019-04-18T02:04:02.000Z | untitled2.py | WOLF-huo/object_detection_dianziweilan | f0659b6cb3dacf986fdeca5c77097d6eff9e102a | [
"MIT"
] | null | null | null | untitled2.py | WOLF-huo/object_detection_dianziweilan | f0659b6cb3dacf986fdeca5c77097d6eff9e102a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 25 14:36:21 2019
@author: huoqi
"""
import cv2
import numpy as np
coor_x,coor_y = -1, -1 # 初始值并无意义,只是为了能够使用np.row_stack函数
"""定义视频编码器
FourCC全称Four-Character Codes,代表四字符代码 (four character code),
它是一个32位的标示符,其实就是typedef unsigned int FOURCC;
是一种独立标示视频数据流格式的四字符代码。
因此cv2.Vid... | 33.333333 | 123 | 0.6725 | 470 | 3,200 | 4.444681 | 0.385106 | 0.03686 | 0.02585 | 0.028722 | 0.107707 | 0.048827 | 0.048827 | 0.022978 | 0.022978 | 0.022978 | 0 | 0.051846 | 0.162188 | 3,200 | 96 | 124 | 33.333333 | 0.727341 | 0.103125 | 0 | 0.071429 | 0 | 0.014286 | 0.073802 | 0.022411 | 0 | 0 | 0.003091 | 0.010417 | 0 | 1 | 0.014286 | false | 0 | 0.028571 | 0 | 0.042857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b2fa4eb4c02850b75ff053ffae9d295cba479f25 | 1,275 | py | Python | utils/db_models.py | qu4nt/ragnarok-map-efficiency | 752ef596a1596730cf00f81b86af85bf56690b4b | [
"BSD-3-Clause"
] | null | null | null | utils/db_models.py | qu4nt/ragnarok-map-efficiency | 752ef596a1596730cf00f81b86af85bf56690b4b | [
"BSD-3-Clause"
] | 2 | 2021-12-20T14:13:12.000Z | 2021-12-20T15:52:14.000Z | utils/db_models.py | qu4nt/ragnarok-map-efficiency | 752ef596a1596730cf00f81b86af85bf56690b4b | [
"BSD-3-Clause"
] | null | null | null | from pathlib import Path
from sqlalchemy import create_engine
from sqlalchemy.orm import declarative_base, Session
from sqlalchemy import Column, Integer, String, DateTime, Boolean
BASE_DIR = Path.cwd()
engine = create_engine('sqlite:///data/originsro.sqlite3', echo=True)
Base = declarative_base()
session = Session(... | 26.5625 | 69 | 0.698039 | 154 | 1,275 | 5.597403 | 0.448052 | 0.167053 | 0.062645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000979 | 0.199216 | 1,275 | 48 | 70 | 26.5625 | 0.843291 | 0.061176 | 0 | 0 | 0 | 0 | 0.066331 | 0.047019 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.117647 | 0.029412 | 0.882353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b2ff7c7dc762da20b19c3d1b47188625b708f011 | 1,091 | py | Python | BasicQueryExpansion-master/past_rocchio_py2.7/parser.py | mrinmoy-sadhukhan/LDA-topic-kafka | 5d11625c88ffeec86a1fef41e038da970643365a | [
"Apache-2.0"
] | null | null | null | BasicQueryExpansion-master/past_rocchio_py2.7/parser.py | mrinmoy-sadhukhan/LDA-topic-kafka | 5d11625c88ffeec86a1fef41e038da970643365a | [
"Apache-2.0"
] | null | null | null | BasicQueryExpansion-master/past_rocchio_py2.7/parser.py | mrinmoy-sadhukhan/LDA-topic-kafka | 5d11625c88ffeec86a1fef41e038da970643365a | [
"Apache-2.0"
] | null | null | null | '''
Created on Sep 25, 2012
@author: johnterzis
Parser takes raw json output from BingClient and parses the result list of dictionaries, placing
significant components into a Document List
e.g.
if json document, exampleResults, is passed into contructor
exampleResults['d]['results'] is list of 10 dictionaries, eac... | 23.717391 | 131 | 0.609533 | 120 | 1,091 | 5.508333 | 0.55 | 0.102874 | 0.054463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010336 | 0.290559 | 1,091 | 46 | 132 | 23.717391 | 0.843669 | 0.042163 | 0 | 0 | 0 | 0 | 0.115328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6507a69ac747104076edde343d9d0216cedbdf95 | 967 | py | Python | backend/venv/lib/python3.6/site-packages/ics/parsers/attendee_parser.py | HalmonLui/square-hackathon | 62d5be7a229f9e39e27a546c164facd779d28aa4 | [
"MIT"
] | 3 | 2020-06-13T02:47:29.000Z | 2020-06-20T17:34:15.000Z | backend/venv/lib/python3.6/site-packages/ics/parsers/attendee_parser.py | HalmonLui/square-hackathon | 62d5be7a229f9e39e27a546c164facd779d28aa4 | [
"MIT"
] | 2 | 2020-06-14T20:29:26.000Z | 2020-06-14T20:29:34.000Z | backend/venv/lib/python3.6/site-packages/ics/parsers/attendee_parser.py | HalmonLui/square-hackathon | 62d5be7a229f9e39e27a546c164facd779d28aa4 | [
"MIT"
] | 1 | 2020-09-04T01:45:39.000Z | 2020-09-04T01:45:39.000Z | from ics.parsers.parser import Parser
from ics.utils import unescape_string
class PersonParser(Parser):
def parse_cn(person: "Person", value):
if value:
person.common_name = unescape_string(value)
def parse_dir(person: "Person", value):
if value:
person.dir = unescape_... | 27.628571 | 55 | 0.643226 | 111 | 967 | 5.45045 | 0.252252 | 0.161983 | 0.138843 | 0.145455 | 0.565289 | 0.386777 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2606 | 967 | 34 | 56 | 28.441176 | 0.846154 | 0 | 0 | 0.28 | 0 | 0 | 0.051706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.08 | 0 | 0.44 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
65095ec4fd834f3965924d6eb8d69c1a43e3cff6 | 18,341 | py | Python | Experiments/01-Python-Got-Pulse/bled112.py | tnikolaou/angel-sdk | cdd961bb40793af55bdc2b6022002e2278b65bf8 | [
"BSD-3-Clause"
] | 78 | 2016-02-16T15:29:57.000Z | 2019-12-21T17:43:41.000Z | Experiments/01-Python-Got-Pulse/bled112.py | tnikolaou/angel-sdk | cdd961bb40793af55bdc2b6022002e2278b65bf8 | [
"BSD-3-Clause"
] | 3 | 2016-04-07T16:59:47.000Z | 2021-08-13T11:48:04.000Z | Experiments/01-Python-Got-Pulse/bled112.py | tnikolaou/angel-sdk | cdd961bb40793af55bdc2b6022002e2278b65bf8 | [
"BSD-3-Clause"
] | 67 | 2016-02-18T12:21:32.000Z | 2019-02-21T01:25:43.000Z | #!/usr/bin/python
#
# Copyright (c) 2015, Seraphim Sense Ltd.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted
# provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this... | 38.612632 | 99 | 0.647784 | 1,928 | 18,341 | 5.952282 | 0.198651 | 0.063437 | 0.045051 | 0.039212 | 0.370077 | 0.329035 | 0.286598 | 0.272395 | 0.223074 | 0.178547 | 0 | 0.05047 | 0.239464 | 18,341 | 475 | 100 | 38.612632 | 0.772242 | 0.101467 | 0 | 0.242424 | 0 | 0 | 0.010528 | 0 | 0 | 0 | 0.037652 | 0 | 0.00551 | 0 | null | null | 0 | 0.022039 | null | null | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
650a2b10539dde8ab9422ea2916143d5e32fa170 | 6,283 | py | Python | sha512hash.py | tiwarishubham635/Optimized-AES-Visualizer | 8d99fe56ac5d5d9b5afa1c034e939041afb80753 | [
"MIT"
] | null | null | null | sha512hash.py | tiwarishubham635/Optimized-AES-Visualizer | 8d99fe56ac5d5d9b5afa1c034e939041afb80753 | [
"MIT"
] | null | null | null | sha512hash.py | tiwarishubham635/Optimized-AES-Visualizer | 8d99fe56ac5d5d9b5afa1c034e939041afb80753 | [
"MIT"
] | null | null | null | import copy
import time
def to_ascii(string):
ans = ""
for char in string:
tmp = bin(ord(char))[2:]
tmp = "0"*(8-len(tmp))+tmp
ans += tmp
return ans
def ascii_to_string(bin_string):
ans = ""
for i in range(0, len(bin_string), 8):
bin_str = "0b" + bin_string[i:i+8]
... | 33.962162 | 108 | 0.590323 | 801 | 6,283 | 4.574282 | 0.280899 | 0.010917 | 0.011463 | 0.009007 | 0.051856 | 0.042031 | 0.042031 | 0.042031 | 0.031114 | 0.031114 | 0 | 0.255708 | 0.268025 | 6,283 | 184 | 109 | 34.146739 | 0.540987 | 0.136559 | 0 | 0.047244 | 0 | 0 | 0.004085 | 0 | 0 | 0 | 0.295079 | 0 | 0.023622 | 1 | 0.07874 | false | 0 | 0.015748 | 0.03937 | 0.133858 | 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 |
650b37e551052874e5a2ee2e0132e984dfb84924 | 1,452 | py | Python | demos/demo_simulate_teststand.py | hboshnak/robot_properties_teststand | 4d7885daeda181422ad93ea00e896312c8e70a7e | [
"BSD-3-Clause"
] | 7 | 2019-11-05T01:35:56.000Z | 2021-07-21T13:53:31.000Z | demos/demo_simulate_teststand.py | hboshnak/robot_properties_teststand | 4d7885daeda181422ad93ea00e896312c8e70a7e | [
"BSD-3-Clause"
] | 1 | 2019-11-21T13:12:06.000Z | 2019-11-21T13:12:06.000Z | demos/demo_simulate_teststand.py | hboshnak/robot_properties_teststand | 4d7885daeda181422ad93ea00e896312c8e70a7e | [
"BSD-3-Clause"
] | 6 | 2019-10-17T19:08:28.000Z | 2021-07-21T13:53:33.000Z | #!/usr/bin/env python
"""demo_simulate_teststand
Simple demo showing how the simulation setup works.
License: BSD 3-Clause License
Copyright (C) 2018-2019, New York University , Max Planck Gesellschaft
Copyright note valid unless otherwise stated in individual files.
All rights reserved.
"""
import time
import nump... | 30.25 | 88 | 0.722452 | 202 | 1,452 | 5.059406 | 0.60396 | 0.035225 | 0.04501 | 0.058708 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022279 | 0.196281 | 1,452 | 47 | 89 | 30.893617 | 0.85347 | 0.402204 | 0 | 0 | 0 | 0 | 0.031616 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0 | false | 0 | 0.217391 | 0 | 0.217391 | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
6512ccab7370eec24f4512da0c97fdf66078ff18 | 798 | py | Python | bibutil/fuzzy_match.py | snehasish/bibutils | 38c7f3e96fcd96a6ac53663b8811e05abfc8801e | [
"MIT"
] | 1 | 2016-11-05T20:42:48.000Z | 2016-11-05T20:42:48.000Z | bibutil/fuzzy_match.py | snehasish/bibutils | 38c7f3e96fcd96a6ac53663b8811e05abfc8801e | [
"MIT"
] | null | null | null | bibutil/fuzzy_match.py | snehasish/bibutils | 38c7f3e96fcd96a6ac53663b8811e05abfc8801e | [
"MIT"
] | null | null | null | from fuzzywuzzy import fuzz
def main(bibs):
# sortedbibs = sorted(bibs.entries, key = lambda x : int(x['year']), reverse=True)
sortedbibs = bibs.entries
clusterbibs = []
while len(sortedbibs) > 0:
similarbibs = set()
p = sortedbibs.pop(0)
similarbibs.add(tuple(p.items()))
... | 26.6 | 86 | 0.508772 | 95 | 798 | 4.273684 | 0.505263 | 0.054187 | 0.093596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013592 | 0.354637 | 798 | 29 | 87 | 27.517241 | 0.774757 | 0.100251 | 0 | 0 | 0 | 0 | 0.033661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6513ece18b66f60b7645c96c3394616ae9ea66c6 | 5,725 | py | Python | read_sormas_export.py | ophcode/SORMAS | 98cd5824effc42367d8ba7782b657bbee50d2f09 | [
"CC0-1.0"
] | 2 | 2021-08-22T14:36:20.000Z | 2021-09-21T13:58:51.000Z | read_sormas_export.py | ophcode/SORMAS | 98cd5824effc42367d8ba7782b657bbee50d2f09 | [
"CC0-1.0"
] | null | null | null | read_sormas_export.py | ophcode/SORMAS | 98cd5824effc42367d8ba7782b657bbee50d2f09 | [
"CC0-1.0"
] | null | null | null | """
Sammlung von Funktionen, um den SORMAS-Export auszulesen und damit zu arbeiten.
Funktionsweise:
SORMAS -> Statistik -> Datenbank Export-> Alle SORMAS-Daten auswählen -> Entpacken, in "sormas_export" umbenennen und in Ordner von Skript packen. Dann Skript starten.
Erstellt ein Dictionary (S), in dem alle tabelle... | 51.576577 | 207 | 0.649083 | 806 | 5,725 | 4.508685 | 0.295285 | 0.00743 | 0.017611 | 0.007705 | 0.315905 | 0.305999 | 0.279582 | 0.266924 | 0.260319 | 0.259769 | 0 | 0.01048 | 0.2 | 5,725 | 111 | 208 | 51.576577 | 0.782751 | 0 | 0 | 0.325301 | 0 | 0.012048 | 0.19166 | 0.039689 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.048193 | null | null | 0.060241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6514db1f938b228c7684df4a35dd109022938967 | 311 | py | Python | Projects/Cannes/WiFi/extract.py | ShipJ/Code | 6ee1e207381447d0427cce4121f2e40ce65c13fa | [
"MIT"
] | null | null | null | Projects/Cannes/WiFi/extract.py | ShipJ/Code | 6ee1e207381447d0427cce4121f2e40ce65c13fa | [
"MIT"
] | null | null | null | Projects/Cannes/WiFi/extract.py | ShipJ/Code | 6ee1e207381447d0427cce4121f2e40ce65c13fa | [
"MIT"
] | null | null | null | from Code.Projects.Tracking.Tracking3 import read_redshift
from Code.config import get_pwd
def extract():
raw = read_redshift(get_pwd(), query)
query = "SELECT DISTINCT 'tablename' FROM 'pg_table_def' WHERE 'schemaname' = 'public' ORDER BY 'tablename'"
data = read_redshift(get_pwd(), query)
print data | 25.916667 | 108 | 0.758842 | 44 | 311 | 5.181818 | 0.613636 | 0.157895 | 0.131579 | 0.157895 | 0.201754 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003717 | 0.135048 | 311 | 12 | 109 | 25.916667 | 0.843866 | 0 | 0 | 0 | 0 | 0.142857 | 0.314103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
65187e13b2284ac85af479a064d759880633677b | 761 | py | Python | tests/test_cosem.py | Layty/dlms-cosem | 95b67054a1dfb928e960547b0246b7b6794f0594 | [
"MIT"
] | 1 | 2021-08-20T09:19:07.000Z | 2021-08-20T09:19:07.000Z | tests/test_cosem.py | Layty/dlms-cosem | 95b67054a1dfb928e960547b0246b7b6794f0594 | [
"MIT"
] | null | null | null | tests/test_cosem.py | Layty/dlms-cosem | 95b67054a1dfb928e960547b0246b7b6794f0594 | [
"MIT"
] | null | null | null | from dlms_cosem import cosem
class TestObis:
def test_obis_to_dotted(self):
obis = cosem.Obis(1, 0, 1, 8, 0, 255)
assert obis.dotted_repr() == "1.0.1.8.0.255"
def test_obis_from_dotted(self):
obis = cosem.Obis.from_dotted("1.0.1.8.0.255")
assert obis == cosem.Obis(1, 0, 1, 8, ... | 31.708333 | 77 | 0.596583 | 136 | 761 | 3.183824 | 0.191176 | 0.036952 | 0.04157 | 0.055427 | 0.759815 | 0.692841 | 0.658199 | 0.658199 | 0.56351 | 0.489607 | 0 | 0.141623 | 0.239159 | 761 | 23 | 78 | 33.086957 | 0.606218 | 0 | 0 | 0.235294 | 0 | 0 | 0.106439 | 0.055191 | 0 | 0 | 0 | 0 | 0.294118 | 1 | 0.294118 | false | 0 | 0.058824 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
651b6e1e05168bfcc8c934035a9d66051a2126df | 1,118 | py | Python | tools/csbot.py | OrangeFlash81/pyuoyweek | cafc66a3ffb7372a5f19f6f9be42510304746004 | [
"BSD-3-Clause"
] | null | null | null | tools/csbot.py | OrangeFlash81/pyuoyweek | cafc66a3ffb7372a5f19f6f9be42510304746004 | [
"BSD-3-Clause"
] | null | null | null | tools/csbot.py | OrangeFlash81/pyuoyweek | cafc66a3ffb7372a5f19f6f9be42510304746004 | [
"BSD-3-Clause"
] | null | null | null | """
csbot.py
generates the command for [csbot](https://github.com/HackSoc/csbot/)'s
`!termdates` plugin to set the three upcoming terms.
Usage: `python3 tools/csbot.py`
"""
# messy import code to allow us to import from parent
import os.path as path, sys
dirname = path.dirname(path.realpath(__file__)... | 34.9375 | 126 | 0.681574 | 170 | 1,118 | 4.458824 | 0.464706 | 0.039578 | 0.031662 | 0.079156 | 0.195251 | 0.16095 | 0.16095 | 0.100264 | 0.100264 | 0 | 0 | 0.001072 | 0.165474 | 1,118 | 32 | 127 | 34.9375 | 0.811361 | 0.266547 | 0 | 0 | 1 | 0 | 0.057789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0.055556 | 0.333333 | 0.055556 | 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 |
651fe84db0ca92b2a36384f7167ebe3d5a012cef | 397 | py | Python | medium_PrimeTime.py | GabrielGhe/CoderbyteChallenges | 5601dbc24c95a65fed04896de2f534417c2e730d | [
"MIT"
] | 1 | 2020-11-04T15:30:18.000Z | 2020-11-04T15:30:18.000Z | medium_PrimeTime.py | GabrielGhe/CoderbyteChallenges | 5601dbc24c95a65fed04896de2f534417c2e730d | [
"MIT"
] | null | null | null | medium_PrimeTime.py | GabrielGhe/CoderbyteChallenges | 5601dbc24c95a65fed04896de2f534417c2e730d | [
"MIT"
] | null | null | null | ###################################
# Finds if num is a prime number #
###################################
def PrimeTime(num):
#1 is not a prime
if num == 1:
return "false"
#it should only go up to it's sqrt
limit = num**.5
#from 2 to limit
for x in range(2, int(limit) + 1):
if num % x == 0:
... | 19.85 | 36 | 0.468514 | 56 | 397 | 3.303571 | 0.625 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023891 | 0.261965 | 397 | 19 | 37 | 20.894737 | 0.607509 | 0.241814 | 0 | 0.222222 | 0 | 0 | 0.062222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
6523f285ee1723b32168d2ee5f943c2bd8c066fd | 465 | py | Python | tpl/vpykit/pyutilib.virtualenv/scripts/update.py | USEPA/Water-Security-Toolkit | 6b6b68e0e1b3dcc8023b453ab48a64f7fd740feb | [
"BSD-3-Clause"
] | 3 | 2019-06-10T18:04:14.000Z | 2020-12-05T18:11:40.000Z | scripts/update.py | PyUtilib/pyutilib.virtualenv | 701d2041f779e37a8761326214fc19eb8a0a353a | [
"BSD-3-Clause"
] | null | null | null | scripts/update.py | PyUtilib/pyutilib.virtualenv | 701d2041f779e37a8761326214fc19eb8a0a353a | [
"BSD-3-Clause"
] | 2 | 2020-09-24T19:04:14.000Z | 2020-12-05T18:11:43.000Z | #!/usr/bin/env python
import sys
from os.path import join, abspath, dirname
from inspect import getfile, currentframe
here = dirname( abspath( getfile( currentframe() ) ) )
base = abspath( join( here, '..' ) )
# NOTE: insert this pyutilib.virtualenv path *second*.
# '' (the CWD) should always be first.
sys.path.... | 29.0625 | 73 | 0.72043 | 63 | 465 | 5.253968 | 0.539683 | 0.163142 | 0.126888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002506 | 0.141935 | 465 | 15 | 74 | 31 | 0.827068 | 0.245161 | 0 | 0 | 0 | 0 | 0.106322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6527ee5c562f2cdcb80bb016a54ab574b9eab672 | 9,317 | py | Python | pipeline/utils/metadata.py | nmiles2718/hst_cosmic_rays | 5f86e496451f80cd9981e3b6c9f89918c18dd360 | [
"BSD-3-Clause"
] | 1 | 2020-07-15T16:39:34.000Z | 2020-07-15T16:39:34.000Z | pipeline/utils/metadata.py | spacetelescope/hst_cosmic_rays | 5dd6620da7d50ae4d03ae68b58f8b23e64b117f3 | [
"BSD-3-Clause"
] | 4 | 2020-09-20T17:49:54.000Z | 2021-07-31T00:44:36.000Z | pipeline/utils/metadata.py | spacetelescope/hst_cosmic_rays | 5dd6620da7d50ae4d03ae68b58f8b23e64b117f3 | [
"BSD-3-Clause"
] | 1 | 2020-07-28T18:32:26.000Z | 2020-07-28T18:32:26.000Z | #!/usr/bin/env python
"""
This module contains the :py:class:`~utils.metadata.GenerateMetadata`
that is used to extract the following information from each observation:
* Date of the observation (YYYY-MM-DD HH:MM:SS)
* Latitude, longitude, and altitude of HST through the course of the observation
* WCS informati... | 33.514388 | 122 | 0.558764 | 1,066 | 9,317 | 4.762664 | 0.26454 | 0.049636 | 0.014182 | 0.008273 | 0.071302 | 0.063423 | 0.039393 | 0.017333 | 0.017333 | 0.017333 | 0 | 0.00768 | 0.343136 | 9,317 | 277 | 123 | 33.635379 | 0.821895 | 0.254481 | 0 | 0.107595 | 1 | 0 | 0.102494 | 0.012245 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082278 | false | 0 | 0.06962 | 0 | 0.189873 | 0 | 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 |
652c5c98044cf00fc8c16eccccbb425a6af37635 | 1,401 | py | Python | test/serial/newlib_blocked.py | cHemingway/test | 7fcbd56ad6fe5368b927ea146363bf3d69cd7617 | [
"Apache-2.0"
] | 24 | 2020-07-24T18:33:58.000Z | 2022-03-23T21:00:19.000Z | test/serial/newlib_blocked.py | cHemingway/test | 7fcbd56ad6fe5368b927ea146363bf3d69cd7617 | [
"Apache-2.0"
] | 4 | 2020-07-27T05:44:26.000Z | 2021-09-02T16:05:47.000Z | test/serial/newlib_blocked.py | cHemingway/test | 7fcbd56ad6fe5368b927ea146363bf3d69cd7617 | [
"Apache-2.0"
] | 1 | 2020-07-25T15:13:20.000Z | 2020-07-25T15:13:20.000Z | import argparse
import os
from metal.serial import Engine, Exit
from subprocess import PIPE, Popen
from metal.serial.generate import generate
from metal.serial.newlib import build_newlib_hook
parser = argparse.ArgumentParser()
parser.add_argument('binary', help='The binary that runs on target')
parser.ad... | 28.591837 | 106 | 0.666667 | 199 | 1,401 | 4.572864 | 0.422111 | 0.03956 | 0.074725 | 0.054945 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008945 | 0.201999 | 1,401 | 49 | 107 | 28.591837 | 0.805009 | 0 | 0 | 0 | 1 | 0 | 0.154779 | 0 | 0 | 0 | 0 | 0 | 0.242424 | 1 | 0.060606 | false | 0 | 0.181818 | 0 | 0.30303 | 0 | 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 |
65356b30aff564b6da9a543e02163997b83fda6a | 2,055 | py | Python | plotTPD_data programs/test.py | mannyfin/IRAS | a164856e80320c90e2decdfb3ded4b75a10d5061 | [
"BSD-3-Clause"
] | null | null | null | plotTPD_data programs/test.py | mannyfin/IRAS | a164856e80320c90e2decdfb3ded4b75a10d5061 | [
"BSD-3-Clause"
] | null | null | null | plotTPD_data programs/test.py | mannyfin/IRAS | a164856e80320c90e2decdfb3ded4b75a10d5061 | [
"BSD-3-Clause"
] | null | null | null | import pandas as pd
import numpy as np
import holoviews as hv
# hv.extension('bokeh')
def read_files(file):
# TODO Fix search into the dictionary for increased speed
"""
1. Reads in the files and does quick cleaning
2. sets the temperature as the index
:param file: .txt file of the data
:retur... | 32.109375 | 122 | 0.643796 | 312 | 2,055 | 4.089744 | 0.400641 | 0.15674 | 0.075235 | 0.087774 | 0.201411 | 0.201411 | 0.168495 | 0.126176 | 0.043887 | 0 | 0 | 0.025141 | 0.225791 | 2,055 | 64 | 123 | 32.109375 | 0.77687 | 0.319221 | 0 | 0.2 | 0 | 0.033333 | 0.155261 | 0.071376 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.033333 | false | 0 | 0.1 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6536229e70b9f00445414be8349fe8193d7b562e | 634 | py | Python | Exercise4/Exercise5/exercise5_main.py | Ssteevooh/Object-Oriented-Programming | be39b2721f43605bb214d7acc89128455c48c80d | [
"MIT"
] | null | null | null | Exercise4/Exercise5/exercise5_main.py | Ssteevooh/Object-Oriented-Programming | be39b2721f43605bb214d7acc89128455c48c80d | [
"MIT"
] | null | null | null | Exercise4/Exercise5/exercise5_main.py | Ssteevooh/Object-Oriented-Programming | be39b2721f43605bb214d7acc89128455c48c80d | [
"MIT"
] | null | null | null | # File name: exercise5_main.py
# Author: Steve Hommy
# Description: Main function for CellPhone Class
# Importing Cellphone class into main file
from exercise5_cellphoneClass import Cellphone
def main():
cellphone = Cellphone()
cellphone.set_manufact()
cellphone.set_model()
cellphone.set_retail_pric... | 22.642857 | 56 | 0.716088 | 77 | 634 | 5.74026 | 0.467532 | 0.108597 | 0.090498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00381 | 0.171924 | 634 | 27 | 57 | 23.481481 | 0.838095 | 0.214511 | 0 | 0 | 0 | 0 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 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 |
653c2f728afbb9a39bdb10a401b3d09ad0938ee8 | 1,066 | py | Python | PortLoader.py | britzlieg/BSilenceScan | 56130081d0d253f879d5c8ade4e060172d05d954 | [
"MIT"
] | null | null | null | PortLoader.py | britzlieg/BSilenceScan | 56130081d0d253f879d5c8ade4e060172d05d954 | [
"MIT"
] | null | null | null | PortLoader.py | britzlieg/BSilenceScan | 56130081d0d253f879d5c8ade4e060172d05d954 | [
"MIT"
] | null | null | null | #coding: utf-8
import csv
import json
def mergeName(first,second):
if first == second:
return first
return first + ", " + second
port_services = {}
with open('service-names-port-numbers.csv') as f:
f_csv = csv.reader(f)
headers = next(f_csv)
for row in f_csv:
key = row[1]
... | 29.611111 | 78 | 0.601313 | 140 | 1,066 | 4.378571 | 0.314286 | 0.23491 | 0.171289 | 0.065253 | 0.22186 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010165 | 0.261726 | 1,066 | 36 | 79 | 29.611111 | 0.768742 | 0.012195 | 0 | 0 | 0 | 0 | 0.129155 | 0.02849 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.172414 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.