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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
67a1b1bda488c54123130201c295bdd0d914c3cd | 27,375 | py | Python | Python/DSKY/dsky_kerbal.py | malaoudi/CollegeCoursesProjects | c3e01e68446fd080262bc5c50e31a960248700da | [
"MIT"
] | null | null | null | Python/DSKY/dsky_kerbal.py | malaoudi/CollegeCoursesProjects | c3e01e68446fd080262bc5c50e31a960248700da | [
"MIT"
] | null | null | null | Python/DSKY/dsky_kerbal.py | malaoudi/CollegeCoursesProjects | c3e01e68446fd080262bc5c50e31a960248700da | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# dsky.py
#
# Copyright 2013 Scott Thomson <scotty3785@gmail.com>
#
# This program 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 2 of t... | 36.744966 | 144 | 0.484347 | 2,933 | 27,375 | 4.496079 | 0.136379 | 0.07424 | 0.012512 | 0.015166 | 0.401835 | 0.292106 | 0.218321 | 0.163039 | 0.121635 | 0.112687 | 0 | 0.039703 | 0.380785 | 27,375 | 744 | 145 | 36.794355 | 0.738246 | 0.084566 | 0 | 0.334984 | 0 | 0 | 0.043962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008251 | 0.004951 | null | null | 0.021452 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
67a93195245539e735945e1673c4224bb41c291e | 6,632 | py | Python | dates.py | duanewhitty/dates | b56408d0c1281b642a1dda3694d71704acce578b | [
"CNRI-Python"
] | null | null | null | dates.py | duanewhitty/dates | b56408d0c1281b642a1dda3694d71704acce578b | [
"CNRI-Python"
] | null | null | null | dates.py | duanewhitty/dates | b56408d0c1281b642a1dda3694d71704acce578b | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/python
# Inspired by question by Websten from Udacity cs101 forums
#
def isLeapYear(year):
#Does the year end in 00, like 1800, 1900, etc. If it does is it divisible by 400? If it is then it is a
#leap year. Otherwise it is not a leap year. 1900 is not a a leap year because... | 32.831683 | 111 | 0.61339 | 872 | 6,632 | 4.662844 | 0.206422 | 0.04427 | 0.059026 | 0.054107 | 0.329316 | 0.283817 | 0.245942 | 0.148549 | 0.068372 | 0.035416 | 0 | 0.080254 | 0.310464 | 6,632 | 201 | 112 | 32.995025 | 0.808878 | 0.131031 | 0 | 0.258333 | 0 | 0 | 0.00863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008333 | 0 | null | null | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
67bafafc9e31e8d88f15a09c6118578f1ca4c60d | 6,709 | py | Python | Image_cls/Baseline/amb_attack.py | ZJZAC/Passport-aware-Normalization | e2c2b928678188c1b5440f7da2c529ace87f23ac | [
"MIT"
] | 16 | 2020-10-10T08:31:13.000Z | 2021-11-21T08:18:42.000Z | Image_cls/Baseline/amb_attack.py | ZJZAC/Passport-aware-Normalization | e2c2b928678188c1b5440f7da2c529ace87f23ac | [
"MIT"
] | 1 | 2021-06-10T12:28:16.000Z | 2021-06-10T13:17:56.000Z | Image_cls/Baseline/amb_attack.py | ZJZAC/Passport-aware-Normalization | e2c2b928678188c1b5440f7da2c529ace87f23ac | [
"MIT"
] | 5 | 2020-10-10T08:31:17.000Z | 2022-02-23T07:14:40.000Z | import json
import os
import time
import sys
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
import torch.nn.functional as F
from dataset import prepare_dataset
from experiments.utils import construct_passport_kwargs_from_dict
from models.alexnet_passport_private import AlexNetPassportPrivate... | 32.887255 | 103 | 0.572962 | 792 | 6,709 | 4.719697 | 0.22096 | 0.006956 | 0.020599 | 0.026485 | 0.355805 | 0.319155 | 0.290262 | 0.273141 | 0.26244 | 0.26244 | 0 | 0.021569 | 0.295126 | 6,709 | 203 | 104 | 33.049261 | 0.768873 | 0.05202 | 0 | 0.384615 | 0 | 0.012821 | 0.154998 | 0.016872 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012821 | false | 0.076923 | 0.115385 | 0 | 0.147436 | 0.032051 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
67bb8e147c115bc953bfa6966ce64c5113be6043 | 150 | py | Python | code/abc144_b_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/abc144_b_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/abc144_b_01.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | N=int(input())
flag=False
for i in range(1,10):
m=N/i
if m==int(m) and 1<=m<=9:
flag=True
break
print("Yes" if flag else "No") | 18.75 | 30 | 0.54 | 31 | 150 | 2.612903 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045872 | 0.273333 | 150 | 8 | 30 | 18.75 | 0.697248 | 0 | 0 | 0 | 0 | 0 | 0.033113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67bcf822b242358d0ba9fbeb8cc00f3007bb046b | 2,434 | py | Python | matplot/matplotlib5/bin/plot.py | ustutz/haxepython_visualization | 991f1c05f3064ff2d953572f6aecb37b44d05b1d | [
"MIT"
] | null | null | null | matplot/matplotlib5/bin/plot.py | ustutz/haxepython_visualization | 991f1c05f3064ff2d953572f6aecb37b44d05b1d | [
"MIT"
] | null | null | null | matplot/matplotlib5/bin/plot.py | ustutz/haxepython_visualization | 991f1c05f3064ff2d953572f6aecb37b44d05b1d | [
"MIT"
] | null | null | null | # Generated by Haxe 3.3.0
import matplotlib.pyplot as matplotlib_pyplot_Pyplot_Module
import numpy as numpy_Numpy_Module
class Main:
__slots__ = ()
@staticmethod
def main():
t1 = numpy_Numpy_Module.arange(0.0,5.0,0.1)
t2 = numpy_Numpy_Module.arange(0.0,5.0,0.02)
matplotlib_pyplot... | 24.09901 | 103 | 0.580115 | 285 | 2,434 | 4.6 | 0.291228 | 0.097635 | 0.097635 | 0.149504 | 0.40122 | 0.245614 | 0.213577 | 0.213577 | 0.213577 | 0.114416 | 0 | 0.03255 | 0.318406 | 2,434 | 101 | 104 | 24.09901 | 0.757685 | 0.009449 | 0 | 0.333333 | 1 | 0 | 0.007884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106667 | false | 0 | 0.026667 | 0.026667 | 0.373333 | 0 | 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 |
67bdcb8555740da35f2c45b87eefbba0707ae6c5 | 363 | py | Python | main/move-all-negative-elements-to-end/move-all-negative-elements-to-end.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/move-all-negative-elements-to-end/move-all-negative-elements-to-end.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/move-all-negative-elements-to-end/move-all-negative-elements-to-end.py | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | def get():
return int(raw_input())
def get_many():
n = get()
a = map(int, raw_input().split())
assert len(a) == n
return a
for t in xrange(get()):
a = []
b = []
for x in get_many():
(b if x < 0 else a).append(x)
if len(a) == 0 or len(b) == 0:
print
els... | 17.285714 | 39 | 0.4573 | 59 | 363 | 2.745763 | 0.457627 | 0.074074 | 0.135802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.363636 | 363 | 20 | 40 | 18.15 | 0.688312 | 0 | 0 | 0 | 0 | 0 | 0.002755 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | null | null | 0 | 0 | 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 |
67c316579726e75dd0ad6af09a8c0fbd6fa6da80 | 2,434 | py | Python | astropy/table/tests/test_subclass.py | jbkalmbach/astropy | 88ae8c615533efd1e60de4aded204943f66f881c | [
"BSD-3-Clause"
] | 1 | 2022-03-02T17:07:20.000Z | 2022-03-02T17:07:20.000Z | astropy/table/tests/test_subclass.py | jbkalmbach/astropy | 88ae8c615533efd1e60de4aded204943f66f881c | [
"BSD-3-Clause"
] | 11 | 2017-12-18T16:27:29.000Z | 2018-08-29T14:54:22.000Z | astropy/table/tests/test_subclass.py | jbkalmbach/astropy | 88ae8c615533efd1e60de4aded204943f66f881c | [
"BSD-3-Clause"
] | 1 | 2018-08-02T09:33:21.000Z | 2018-08-02T09:33:21.000Z | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from ... import table
from .. import pprint
class MyRow(table.Row):
def __str__(self):
return str(self.as_void())
class MyColumn(table.Column):
pass
class MyMaskedColumn(table.MaskedColumn):
pass
class ... | 24.585859 | 70 | 0.602712 | 332 | 2,434 | 4.349398 | 0.298193 | 0.088643 | 0.058864 | 0.066482 | 0.209834 | 0.144737 | 0.128116 | 0.122576 | 0.073407 | 0.054017 | 0 | 0.039017 | 0.231306 | 2,434 | 98 | 71 | 24.836735 | 0.732763 | 0.081348 | 0 | 0.203125 | 0 | 0 | 0.042438 | 0 | 0 | 0 | 0 | 0 | 0.28125 | 1 | 0.09375 | false | 0.0625 | 0.03125 | 0.03125 | 0.421875 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
67cb3eccb3028c2c6974dcce40e07e2e5831ebcc | 1,676 | py | Python | nn.py | piyush2896/Deep-Learning-Intro | af4cb2d8878a43b21d10150d397e95846de54b6b | [
"MIT"
] | null | null | null | nn.py | piyush2896/Deep-Learning-Intro | af4cb2d8878a43b21d10150d397e95846de54b6b | [
"MIT"
] | null | null | null | nn.py | piyush2896/Deep-Learning-Intro | af4cb2d8878a43b21d10150d397e95846de54b6b | [
"MIT"
] | null | null | null | from keras.layers import Conv2D, Dense, Flatten, Input, MaxPool2D
from keras.models import Model
def defin_model(input_shape, n_classes):
assert isinstance(input_shape, list) or isinstance(input_shape, tuple)
assert len(input_shape) == 3
x0 = Input(input_shape)
x = Conv2D(32, kernel_size=(3, 3), stri... | 41.9 | 93 | 0.637232 | 250 | 1,676 | 4.192 | 0.204 | 0.028626 | 0.115458 | 0.125954 | 0.634542 | 0.634542 | 0.634542 | 0.634542 | 0.634542 | 0.634542 | 0 | 0.068133 | 0.159308 | 1,676 | 39 | 94 | 42.974359 | 0.675656 | 0 | 0 | 0.518519 | 0 | 0 | 0.080549 | 0.01432 | 0 | 0 | 0 | 0 | 0.074074 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67d6c635f2890b66f4716153547bb9930e62b09a | 1,681 | py | Python | zmarkdown/preprocessors.py | zestedesavoir/Python-ZMarkdown | a1481fb4764aafc6051da859ee9280fa16868f65 | [
"BSD-3-Clause"
] | 11 | 2015-02-08T11:57:51.000Z | 2020-06-24T18:10:21.000Z | zmarkdown/preprocessors.py | zestedesavoir/Python-ZMarkdown | a1481fb4764aafc6051da859ee9280fa16868f65 | [
"BSD-3-Clause"
] | 88 | 2015-01-26T22:01:28.000Z | 2018-10-25T06:52:37.000Z | zmarkdown/preprocessors.py | zestedesavoir/Python-ZMarkdown | a1481fb4764aafc6051da859ee9280fa16868f65 | [
"BSD-3-Clause"
] | 15 | 2015-02-07T11:10:08.000Z | 2020-06-24T18:10:07.000Z | """
PRE-PROCESSORS
=============================================================================
Preprocessors work on source text before we start doing anything too
complicated.
"""
from __future__ import absolute_import
from __future__ import unicode_literals
from . import util
from . import odict
import re
def b... | 30.563636 | 77 | 0.649613 | 202 | 1,681 | 5.331683 | 0.490099 | 0.009285 | 0.008357 | 0.020427 | 0.01857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209399 | 1,681 | 54 | 78 | 31.12963 | 0.810384 | 0.46163 | 0 | 0.1 | 0 | 0 | 0.062731 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0.05 | 0.25 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
67d78af26bb6e94e615c8d825b5dc7cc60a1338a | 5,737 | py | Python | src/Encoder.py | laz08/arithmetic-coding | 19847860914efc796927ac97619f2db5717e6294 | [
"Apache-2.0"
] | null | null | null | src/Encoder.py | laz08/arithmetic-coding | 19847860914efc796927ac97619f2db5717e6294 | [
"Apache-2.0"
] | null | null | null | src/Encoder.py | laz08/arithmetic-coding | 19847860914efc796927ac97619f2db5717e6294 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import Utils
import sys, unicodedata, math, collections
from sets import Set
## txt: input string
## Src: Source of information (alphabet is the set of letters of 'str')
## k: precision of integers Alpha and Beta
def arithmeticEncode(txt, src, k):
######################... | 30.194737 | 149 | 0.443786 | 507 | 5,737 | 5.021696 | 0.246548 | 0.073449 | 0.051846 | 0.026709 | 0.369992 | 0.369992 | 0.369992 | 0.255302 | 0.255302 | 0.255302 | 0 | 0.020869 | 0.381907 | 5,737 | 189 | 150 | 30.354497 | 0.697124 | 0.118529 | 0 | 0.326923 | 0 | 0 | 0.015817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028846 | null | null | 0.019231 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67d8379d10498072df145de4862c293da65c0720 | 319 | py | Python | lib/nelsnmp/vendors/mappings.py | networklore/nelsnmp | 3b7d5defdcccbca283a757dd61745748ba098bbb | [
"Apache-2.0"
] | 7 | 2015-04-29T15:32:03.000Z | 2021-06-06T16:48:36.000Z | lib/nelsnmp/vendors/mappings.py | networklore/nelsnmp | 3b7d5defdcccbca283a757dd61745748ba098bbb | [
"Apache-2.0"
] | 17 | 2015-05-02T09:43:19.000Z | 2019-12-14T08:14:27.000Z | lib/nelsnmp/vendors/mappings.py | networklore/nelsnmp | 3b7d5defdcccbca283a757dd61745748ba098bbb | [
"Apache-2.0"
] | 13 | 2015-02-27T05:14:31.000Z | 2021-11-11T14:43:43.000Z |
vendor_map = {}
vendor_map['9'] = 'cisco'
vendor_map['11'] = 'hpe'
vendor_map['1916'] = 'extreme'
vendor_map['2011'] = 'huawei'
vendor_map['2352'] = 'ericsson'
vendor_map['2636'] = 'juniper'
vendor_map['6527'] = 'alcatel'
vendor_map['8072'] = 'net-snmp'
vendor_map['30065'] = 'arista'
vendor_map['43191'] = 'metamako'
| 24.538462 | 32 | 0.661442 | 43 | 319 | 4.651163 | 0.534884 | 0.495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129825 | 0.106583 | 319 | 12 | 33 | 26.583333 | 0.57193 | 0 | 0 | 0 | 0 | 0 | 0.320755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
67db445d54d9c90347a4cbd7ddb61dd686a66115 | 3,515 | py | Python | tests/base/test_base_recipe.py | candalfigomoro/grayskull | f35e9af1c6d86c2359387cea8343959e7a8ed34f | [
"Apache-2.0"
] | 86 | 2020-10-14T10:42:12.000Z | 2022-03-27T08:01:53.000Z | tests/base/test_base_recipe.py | candalfigomoro/grayskull | f35e9af1c6d86c2359387cea8343959e7a8ed34f | [
"Apache-2.0"
] | 174 | 2020-01-07T13:40:17.000Z | 2020-11-11T10:14:08.000Z | tests/base/test_base_recipe.py | candalfigomoro/grayskull | f35e9af1c6d86c2359387cea8343959e7a8ed34f | [
"Apache-2.0"
] | 19 | 2020-10-15T10:02:36.000Z | 2022-03-27T21:17:59.000Z | import os
from pytest import fixture
from grayskull.base.base_recipe import AbstractRecipeModel
class EmptyGray(AbstractRecipeModel):
def refresh_section(self, section="", **kwargs):
if section == "source":
self["source"]["sha256"] = "sha256_foo"
self["source"]["url"] = "URL"
... | 35.867347 | 87 | 0.662873 | 468 | 3,515 | 4.788462 | 0.166667 | 0.117805 | 0.066934 | 0.06158 | 0.533244 | 0.487729 | 0.43195 | 0.368585 | 0.368585 | 0.368585 | 0 | 0.025202 | 0.153343 | 3,515 | 97 | 88 | 36.237113 | 0.727823 | 0 | 0 | 0.275362 | 0 | 0 | 0.205974 | 0.017923 | 0 | 0 | 0 | 0 | 0.42029 | 1 | 0.130435 | false | 0 | 0.043478 | 0.014493 | 0.202899 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67dc4e8018a70c79b6b1fdfb45a7343028fcbaeb | 350 | py | Python | CursoPOOUber/Python/main.py | GaleedGutierrez/Curso-de-Programacion-Orientada-a-Objetos-POO | b6e52a69489fe478dc6bfb57b781e7acf6f2379c | [
"MIT"
] | null | null | null | CursoPOOUber/Python/main.py | GaleedGutierrez/Curso-de-Programacion-Orientada-a-Objetos-POO | b6e52a69489fe478dc6bfb57b781e7acf6f2379c | [
"MIT"
] | null | null | null | CursoPOOUber/Python/main.py | GaleedGutierrez/Curso-de-Programacion-Orientada-a-Objetos-POO | b6e52a69489fe478dc6bfb57b781e7acf6f2379c | [
"MIT"
] | null | null | null | from car import Car
if __name__=="__main__":
print("Hola Mundo")
car = Car()
car.id = 1
car.license = "AMQ123"
car.driver = "Andres Herrera"
car.passegenger = 4
print(vars(car))
car2 = Car()
car2.id = 2
car2.license = "QWE456"
car2.driver = "Andrea Fernandez"
car2.passege... | 23.333333 | 36 | 0.6 | 46 | 350 | 4.391304 | 0.543478 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062257 | 0.265714 | 350 | 15 | 37 | 23.333333 | 0.723735 | 0 | 0 | 0 | 0 | 0 | 0.17094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.133333 | 0.066667 | 0 | 0.066667 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
67de233bda48636c0e67886b514699d086c15350 | 3,317 | py | Python | examples/others/dock_demo.py | nkjith/appium-for-mac | b5c9ca882c10ff7668f7c1208a81bcb052aade34 | [
"Apache-2.0"
] | 179 | 2015-01-05T13:04:22.000Z | 2022-03-31T23:02:12.000Z | examples/others/dock_demo.py | nkjith/appium-for-mac | b5c9ca882c10ff7668f7c1208a81bcb052aade34 | [
"Apache-2.0"
] | 95 | 2015-01-02T11:39:19.000Z | 2022-03-19T07:03:12.000Z | examples/others/dock_demo.py | nkjith/appium-for-mac | b5c9ca882c10ff7668f7c1208a81bcb052aade34 | [
"Apache-2.0"
] | 66 | 2015-04-02T00:09:46.000Z | 2022-02-07T07:25:15.000Z | # coding=utf-8
from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.keys import Keys
from random import randint
import time
import utilities
global driver
defaultLoopDelay_sec = 1.00
defaultCommandDelay_sec = 0.100
defaultImplicitTimeout_sec = 3.000
defaultMouseSp... | 44.824324 | 186 | 0.753693 | 305 | 3,317 | 8.036066 | 0.363934 | 0.0408 | 0.069359 | 0.077519 | 0.420237 | 0.420237 | 0.420237 | 0.420237 | 0.388413 | 0.388413 | 0 | 0.012693 | 0.121194 | 3,317 | 74 | 187 | 44.824324 | 0.82813 | 0.475128 | 0 | 0 | 0 | 0 | 0.223577 | 0.028455 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | null | null | 0.113636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
67de9f9ae811928795181b77a60fe4b6122ab446 | 581 | py | Python | scheduling/models.py | luisza/vcl_django | 43d04f7951cb8805502e51f6f6360c7ec63215cc | [
"Apache-2.0"
] | null | null | null | scheduling/models.py | luisza/vcl_django | 43d04f7951cb8805502e51f6f6360c7ec63215cc | [
"Apache-2.0"
] | null | null | null | scheduling/models.py | luisza/vcl_django | 43d04f7951cb8805502e51f6f6360c7ec63215cc | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
from authentication.models import User
# Create your models here.
class Schedule(models.Model):
name = models.CharField(unique=True, max_length=25)
ownerid = models.ForeignKey(User, db_column='ownerid')
class Meta:
db_... | 24.208333 | 68 | 0.710843 | 65 | 581 | 6.2 | 0.507692 | 0.054591 | 0.054591 | 0.079404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00431 | 0.201377 | 581 | 23 | 69 | 25.26087 | 0.864224 | 0.041308 | 0 | 0.142857 | 0 | 0 | 0.068468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
67e2426415ffa9b16ebf5eb4de5b7a5ce6ce8af4 | 426 | py | Python | Maifa.py | underwatersaloon/NERO | 9877a245da9ac48d9a06c5ee2b4177077ee38902 | [
"MIT"
] | null | null | null | Maifa.py | underwatersaloon/NERO | 9877a245da9ac48d9a06c5ee2b4177077ee38902 | [
"MIT"
] | null | null | null | Maifa.py | underwatersaloon/NERO | 9877a245da9ac48d9a06c5ee2b4177077ee38902 | [
"MIT"
] | null | null | null |
import random
#설정
p = 'police'
d = 'doctor'
c = 'civilian'
m = 'mafia'
cjob = [p, d, c, c, c, c] #시민 팀
mjob = [m, m] #마피아 팀
player = {p1}
class gameset:
def wincheck ( cjob, mjob): #승패 체크
if len(a) < len(b):
return 1
elif len(b) == 0:
return 2
... | 10.923077 | 38 | 0.415493 | 56 | 426 | 3.160714 | 0.625 | 0.033898 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.460094 | 426 | 39 | 39 | 10.923077 | 0.747826 | 0.037559 | 0 | 0 | 0 | 0 | 0.061576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | 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 |
67ef9f474f41b07a468eacfa2fe3522f4eec3bb7 | 2,904 | py | Python | Winton Stock Market Challenge/stock-baseline.py | rupakc/Kaggle-Compendium | 61634ba742f9a0239f2d1e45973c4bb477ac6306 | [
"MIT"
] | 17 | 2018-01-11T05:49:06.000Z | 2021-08-22T16:50:10.000Z | Winton Stock Market Challenge/stock-baseline.py | Tuanlase02874/Machine-Learning-Kaggle | c31651acd8f2407d8b60774e843a2527ce19b013 | [
"MIT"
] | null | null | null | Winton Stock Market Challenge/stock-baseline.py | Tuanlase02874/Machine-Learning-Kaggle | c31651acd8f2407d8b60774e843a2527ce19b013 | [
"MIT"
] | 8 | 2017-11-27T06:58:50.000Z | 2021-08-22T16:50:13.000Z | import pandas as pd
from sklearn.ensemble import RandomForestRegressor
from sklearn.ensemble import BaggingRegressor
from sklearn.ensemble import ExtraTreesRegressor
from sklearn.ensemble import AdaBoostRegressor
from sklearn.ensemble import GradientBoostingRegressor
from sklearn.ensemble import RandomTreesEmbedding
fr... | 37.714286 | 106 | 0.78719 | 373 | 2,904 | 5.841823 | 0.308311 | 0.070675 | 0.052318 | 0.068839 | 0.049564 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012025 | 0.112259 | 2,904 | 76 | 107 | 38.210526 | 0.833204 | 0 | 0 | 0 | 0 | 0 | 0.07581 | 0.014128 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.275862 | null | null | 0.086207 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
67efde1cbd8c51d94d673771465c562552961dd1 | 750 | py | Python | Matplotlib/Types of Diseases Vs No of Patients.py | iSriBalaji/PracticeCodes | 8f76c36590814990a8fefa4e010b8c125049c862 | [
"MIT"
] | null | null | null | Matplotlib/Types of Diseases Vs No of Patients.py | iSriBalaji/PracticeCodes | 8f76c36590814990a8fefa4e010b8c125049c862 | [
"MIT"
] | null | null | null | Matplotlib/Types of Diseases Vs No of Patients.py | iSriBalaji/PracticeCodes | 8f76c36590814990a8fefa4e010b8c125049c862 | [
"MIT"
] | null | null | null | from matplotlib import pyplot as plt
plt.style.use('ggplot') #diff types of stylings available in matplotlib.
#plt.style.use('fivethirtyeight')
#plt.style.use('dark_background')
plt.bar([0.25,1.25,2.25,3.25,4.25],[50,40,70,80,20],
label="COVID-19",color='#355C7D',width=.25)
plt.bar([.75,1.75,2.75,3.75,4.75],[80,20... | 44.117647 | 77 | 0.712 | 140 | 750 | 3.8 | 0.528571 | 0.045113 | 0.06203 | 0.048872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138686 | 0.086667 | 750 | 16 | 78 | 46.875 | 0.637956 | 0.284 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
67f00199217a9fea95260f95cd1936d4a0de43e6 | 2,995 | py | Python | questions/bibles_api.py | vczhou/inductive | 17a23863243c5cafa5171654c18a43d8fa3d41ce | [
"Apache-2.0"
] | null | null | null | questions/bibles_api.py | vczhou/inductive | 17a23863243c5cafa5171654c18a43d8fa3d41ce | [
"Apache-2.0"
] | 2 | 2020-02-11T23:44:33.000Z | 2021-06-10T19:17:38.000Z | questions/bibles_api.py | vczhou/inductive | 17a23863243c5cafa5171654c18a43d8fa3d41ce | [
"Apache-2.0"
] | null | null | null | import requests
import json
class BiblesAPI():
_BIBLES_API_KEY = "xdCoUihEKWvpq994hRlGJwyurTTCQs7HOjTt5NAj"
_API_BASE_URL = "https://bibles.org/v2/"
_BIBLE_VERSION = "ESV"
_LANGUAGE = "eng"
def __init__(self, bible_version="ESV", language="eng"):
self._BIBLE_VERSION = bible_version
... | 34.034091 | 159 | 0.566277 | 315 | 2,995 | 5.184127 | 0.320635 | 0.066136 | 0.058788 | 0.029394 | 0.205756 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016846 | 0.286477 | 2,995 | 87 | 160 | 34.425287 | 0.747309 | 0.106845 | 0 | 0.126984 | 0 | 0 | 0.219631 | 0.074464 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.063492 | 0.031746 | 0 | 0.285714 | 0.079365 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
67f48481a5fb006872b784042ba25f4b11562b64 | 12,061 | py | Python | v1_7_0/lib/DxTimeflow.py | mcbrune/delphixpy-automation | f986dbf69809748a8c9721a19663c6f6fb66fc3c | [
"MIT"
] | 2 | 2017-01-18T20:27:33.000Z | 2017-07-25T14:23:29.000Z | v1_7_0/lib/DxTimeflow.py | mcbrune/delphixpy-automation | f986dbf69809748a8c9721a19663c6f6fb66fc3c | [
"MIT"
] | null | null | null | v1_7_0/lib/DxTimeflow.py | mcbrune/delphixpy-automation | f986dbf69809748a8c9721a19663c6f6fb66fc3c | [
"MIT"
] | null | null | null | """
List, create, destroy and refresh Delphix timeflows
"""
# TODO:
# implement debug flag
import re
import sys
from delphixpy.v1_7_0.exceptions import HttpError, JobError, RequestError
from delphixpy.v1_7_0.web import database
from delphixpy.v1_7_0.web import timeflow
from delphixpy.v1_7_0.web import snapshot
fro... | 37.927673 | 87 | 0.569356 | 1,243 | 12,061 | 5.329043 | 0.15527 | 0.039251 | 0.0625 | 0.031401 | 0.352959 | 0.311594 | 0.277174 | 0.185839 | 0.145079 | 0.145079 | 0 | 0.006999 | 0.360335 | 12,061 | 317 | 88 | 38.047319 | 0.851588 | 0.005141 | 0 | 0.271795 | 0 | 0 | 0.086143 | 0.010732 | 0 | 0 | 0 | 0.003155 | 0 | 0 | null | null | 0 | 0.097436 | null | null | 0.05641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
67fd9717659cb5a76e25262e34a1a65aa0aac46f | 245 | py | Python | LeetCode Problem Solving/two_sum.py | abhigyan709/dsalgo | 868448834b22e06e572b4a0b4ba85cb1b0c6d7ee | [
"MIT"
] | 1 | 2021-06-03T10:20:50.000Z | 2021-06-03T10:20:50.000Z | LeetCode Problem Solving/two_sum.py | abhigyan709/dsalgo | 868448834b22e06e572b4a0b4ba85cb1b0c6d7ee | [
"MIT"
] | null | null | null | LeetCode Problem Solving/two_sum.py | abhigyan709/dsalgo | 868448834b22e06e572b4a0b4ba85cb1b0c6d7ee | [
"MIT"
] | null | null | null | class SolutionTwoSum:
def twoSum(self, nums, target):
h = {}
for i, num in enumerate(nums):
n = target - num
if n not in h:
h[sum] = i
else:
return [h[n], i] | 27.222222 | 38 | 0.416327 | 30 | 245 | 3.4 | 0.633333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.481633 | 245 | 9 | 39 | 27.222222 | 0.80315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db003ad26303522145f9d801953cab2a699479b4 | 23,726 | py | Python | Amino_Predict_v1.py | Tavnos/AminoPredict | 7c24d47905608e1b97560a0bdf775517a18e940f | [
"Apache-2.0"
] | null | null | null | Amino_Predict_v1.py | Tavnos/AminoPredict | 7c24d47905608e1b97560a0bdf775517a18e940f | [
"Apache-2.0"
] | null | null | null | Amino_Predict_v1.py | Tavnos/AminoPredict | 7c24d47905608e1b97560a0bdf775517a18e940f | [
"Apache-2.0"
] | 1 | 2019-05-14T21:24:11.000Z | 2019-05-14T21:24:11.000Z | import random
def translate_n_seq():
dna_typed = []
rna_typed = []
dna_match = []
reader = 0
base_list = 'a','t','g','c','u'
ans1 = input("Random dna sequence? y/n")
if ans1 == 'y':
print("Choose length:")
seq_len = int(input())
input_seq = "".join(random.choices(ba... | 46.889328 | 197 | 0.504215 | 2,634 | 23,726 | 4.360668 | 0.07631 | 0.060073 | 0.102124 | 0.134163 | 0.546056 | 0.449591 | 0.417639 | 0.378722 | 0.290963 | 0.13042 | 0 | 0.019541 | 0.320577 | 23,726 | 505 | 198 | 46.982178 | 0.69299 | 0 | 0 | 0.274549 | 0 | 0 | 0.084633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006012 | false | 0.102204 | 0.002004 | 0 | 0.012024 | 0.04008 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db00f975c187c2cdcb76b811091426d96535b897 | 6,108 | py | Python | src/graph_transpiler/webdnn/backend/webgl/optimize_rules/split_texture/operators/split_reshape.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | 1 | 2021-04-09T15:55:35.000Z | 2021-04-09T15:55:35.000Z | src/graph_transpiler/webdnn/backend/webgl/optimize_rules/split_texture/operators/split_reshape.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | null | null | null | src/graph_transpiler/webdnn/backend/webgl/optimize_rules/split_texture/operators/split_reshape.py | steerapi/webdnn | 1df51cc094e5a528cfd3452c264905708eadb491 | [
"MIT"
] | null | null | null | from typing import NamedTuple, List, Sequence
from webdnn.graph.axis import Axis
from webdnn.graph.graph import Graph
from webdnn.graph.operators.concat import Concat
from webdnn.graph.operators.reshape import Reshape
from webdnn.graph.operators.split_axis import SplitAxis
from webdnn.graph.optimize_rule import Optimi... | 39.406452 | 108 | 0.537656 | 911 | 6,108 | 3.307355 | 0.11416 | 0.061069 | 0.05609 | 0.058414 | 0.592765 | 0.494524 | 0.473614 | 0.434783 | 0.376037 | 0.307335 | 0 | 0.026898 | 0.312213 | 6,108 | 154 | 109 | 39.662338 | 0.690312 | 0.011133 | 0 | 0.111111 | 0 | 0 | 0.026913 | 0 | 0 | 0 | 0 | 0.012987 | 0.013889 | 1 | 0.013889 | false | 0 | 0.138889 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db0409b3fa841c2a72d29779ec8c55649fc306ec | 3,204 | py | Python | harvester/settings.py | diogonal/SentimentAnalyser | 1709327a0e4db1ef14718197cd117c9edeca0efe | [
"MIT",
"Unlicense"
] | 1 | 2016-04-01T12:53:33.000Z | 2016-04-01T12:53:33.000Z | harvester/settings.py | diogonal/SentimentAnalyser | 1709327a0e4db1ef14718197cd117c9edeca0efe | [
"MIT",
"Unlicense"
] | null | null | null | harvester/settings.py | diogonal/SentimentAnalyser | 1709327a0e4db1ef14718197cd117c9edeca0efe | [
"MIT",
"Unlicense"
] | null | null | null | #########################################################################################################
#
# Author: Diego Montufar
# Date: Apr/2015
# Name: settings.py
# Description: Performs Sentiment, geo location and gender analysis for streamed tweets as they come.
# Logs will be written in a... | 43.890411 | 118 | 0.720974 | 399 | 3,204 | 5.706767 | 0.47619 | 0.052701 | 0.035134 | 0.047431 | 0.093544 | 0.036012 | 0.036012 | 0 | 0 | 0 | 0 | 0.030459 | 0.149501 | 3,204 | 72 | 119 | 44.5 | 0.805138 | 0.583645 | 0 | 0 | 0 | 0 | 0.291163 | 0.16186 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.055556 | 0 | 0 | 0.027778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
db087ec1cc2e2f51f49109fa35704704f1e2a852 | 402 | py | Python | dashboard/migrations/0007_auto_20160814_1956.py | alienmasterrace/clouditam.com | dab312d3ab4f09845d8355580a3806bfd4b9cbf4 | [
"Unlicense"
] | null | null | null | dashboard/migrations/0007_auto_20160814_1956.py | alienmasterrace/clouditam.com | dab312d3ab4f09845d8355580a3806bfd4b9cbf4 | [
"Unlicense"
] | null | null | null | dashboard/migrations/0007_auto_20160814_1956.py | alienmasterrace/clouditam.com | dab312d3ab4f09845d8355580a3806bfd4b9cbf4 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-14 16:56
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0006_auto_20160814_1756'),
]
operations = [
migrations.RenameModel(
... | 20.1 | 49 | 0.624378 | 43 | 402 | 5.604651 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108108 | 0.263682 | 402 | 19 | 50 | 21.157895 | 0.706081 | 0.164179 | 0 | 0 | 1 | 0 | 0.153153 | 0.069069 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db0dc42025fc376f35bce929ac4f9b7226167aab | 337 | py | Python | autotrello/linked_card.py | mbdevpl/autotrello | 6b347c794a1dd5e3bdf895dff10ff217be8dd6c0 | [
"Apache-2.0"
] | null | null | null | autotrello/linked_card.py | mbdevpl/autotrello | 6b347c794a1dd5e3bdf895dff10ff217be8dd6c0 | [
"Apache-2.0"
] | null | null | null | autotrello/linked_card.py | mbdevpl/autotrello | 6b347c794a1dd5e3bdf895dff10ff217be8dd6c0 | [
"Apache-2.0"
] | null | null | null | """Trello card linked to another Trello card."""
import trello # py-trello package
class LinkedCard: # pylint: disable = too-few-public-methods
"""Trello card linked to another for easy synchronization."""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.card: tr... | 28.083333 | 65 | 0.670623 | 42 | 337 | 5.190476 | 0.619048 | 0.183486 | 0.146789 | 0.165138 | 0.229358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198813 | 337 | 11 | 66 | 30.636364 | 0.807407 | 0.468843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 |
db142e8030fad75f3b260f6ab2d01184ba932066 | 150 | py | Python | hackerrank-algorithms-warmup/staircase.py | kargs/justeat-recruitmenttest | 7f5dd4cdb2b218088f65062bd19f7b50dcd22134 | [
"Apache-2.0"
] | null | null | null | hackerrank-algorithms-warmup/staircase.py | kargs/justeat-recruitmenttest | 7f5dd4cdb2b218088f65062bd19f7b50dcd22134 | [
"Apache-2.0"
] | null | null | null | hackerrank-algorithms-warmup/staircase.py | kargs/justeat-recruitmenttest | 7f5dd4cdb2b218088f65062bd19f7b50dcd22134 | [
"Apache-2.0"
] | 1 | 2019-03-12T15:05:04.000Z | 2019-03-12T15:05:04.000Z | #!/bin/python3
import sys
n = int(input().strip())
prin = "#"
for i in range(n):
print("{:>{align}}".format(prin, align=(n)))
prin += "#"
| 12.5 | 48 | 0.526667 | 21 | 150 | 3.761905 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.2 | 150 | 11 | 49 | 13.636364 | 0.65 | 0.086667 | 0 | 0 | 0 | 0 | 0.095588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 |
db15b174662849dcb39a67edb9a62021c17a3343 | 5,865 | py | Python | UCourse/ucourse/settings.py | Natsu1270/UCourse | e8c814d91e54f5f51e4a0fa2df177ebb59544dc2 | [
"MIT"
] | 1 | 2020-08-31T22:40:27.000Z | 2020-08-31T22:40:27.000Z | UCourse/ucourse/settings.py | Natsu1270/UCourse | e8c814d91e54f5f51e4a0fa2df177ebb59544dc2 | [
"MIT"
] | 13 | 2020-08-05T16:17:09.000Z | 2022-03-12T00:18:42.000Z | UCourse/ucourse/settings.py | Natsu1270/UCourse | e8c814d91e54f5f51e4a0fa2df177ebb59544dc2 | [
"MIT"
] | null | null | null | """
Django settings for ucourse project.
Generated by 'django-admin startproject' using Django 3.0.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
from... | 24.851695 | 91 | 0.684569 | 645 | 5,865 | 6.037209 | 0.424806 | 0.050077 | 0.039548 | 0.044941 | 0.163071 | 0.149974 | 0.109913 | 0.095532 | 0.057781 | 0.022085 | 0 | 0.009717 | 0.175277 | 5,865 | 235 | 92 | 24.957447 | 0.795328 | 0.204604 | 0 | 0.044872 | 1 | 0.00641 | 0.497195 | 0.34549 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.038462 | 0.019231 | 0 | 0.019231 | 0 | 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 |
db17813d12224ceead9317b3e87f224fe3c2b51a | 834 | py | Python | tests/test_api_v1_user.py | bearstech/pfsense-api | f188f3699c20d61f560c50de9aba703e2a0f1d38 | [
"Apache-2.0"
] | null | null | null | tests/test_api_v1_user.py | bearstech/pfsense-api | f188f3699c20d61f560c50de9aba703e2a0f1d38 | [
"Apache-2.0"
] | null | null | null | tests/test_api_v1_user.py | bearstech/pfsense-api | f188f3699c20d61f560c50de9aba703e2a0f1d38 | [
"Apache-2.0"
] | null | null | null | import unit_test_framework
class APIUnitTestUser(unit_test_framework.APIUnitTest):
url = "/api/v1/user"
get_payloads = [{}]
post_payloads = [
{
"disabled": True,
"username": "new_user",
"password": "changeme",
"descr": "NEW USER",
"authori... | 27.8 | 55 | 0.503597 | 72 | 834 | 5.666667 | 0.5 | 0.085784 | 0.110294 | 0.112745 | 0.240196 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03154 | 0.353717 | 834 | 30 | 56 | 27.8 | 0.725417 | 0 | 0 | 0.071429 | 0 | 0 | 0.34012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.035714 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
db1f913247a66144156105263835a57a1ec84f29 | 8,843 | py | Python | inst/tools/mxParser.py | JuKa87/OpenMx | f055df183ca433abd194e494a433142825666128 | [
"Apache-2.0"
] | null | null | null | inst/tools/mxParser.py | JuKa87/OpenMx | f055df183ca433abd194e494a433142825666128 | [
"Apache-2.0"
] | null | null | null | inst/tools/mxParser.py | JuKa87/OpenMx | f055df183ca433abd194e494a433142825666128 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import sys
import os
import string
import re
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
import mxAlgebraParser
matrices = {}
algebras = {}
defines = {}
title = None
valBuffer = ""
class MxMatrix:
name = None
type = None
free = False
unique = False
nrow = Non... | 34.275194 | 102 | 0.567907 | 948 | 8,843 | 5.292194 | 0.166667 | 0.009169 | 0.00897 | 0.007176 | 0.244568 | 0.170022 | 0.136735 | 0.106039 | 0.051425 | 0.051425 | 0 | 0.008845 | 0.271288 | 8,843 | 257 | 103 | 34.40856 | 0.769708 | 0.017867 | 0 | 0.217195 | 0 | 0.004525 | 0.105542 | 0.013711 | 0.004525 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022624 | null | null | 0.104072 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
db21186632258320e500caa88605b5bc6e242e26 | 5,429 | py | Python | src/chatbot/db.py | johnmelodyme/chatbot | 0abe20bdc291eec7dbf1df95c208f995a5b17106 | [
"MIT"
] | 1 | 2018-12-13T07:50:26.000Z | 2018-12-13T07:50:26.000Z | src/chatbot/db.py | johnmelodyme/chatbot | 0abe20bdc291eec7dbf1df95c208f995a5b17106 | [
"MIT"
] | null | null | null | src/chatbot/db.py | johnmelodyme/chatbot | 0abe20bdc291eec7dbf1df95c208f995a5b17106 | [
"MIT"
] | null | null | null | import threading
import sys
import time
import logging
import os
import traceback
from collections import defaultdict
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger('hr.chatbot.db')
SHARE_COLLECTION_NAME = 'runtime'
SHARE_COLLECTION_SIZE = 1e9
class MongoDBCollectionListener(object):
def hand... | 33.720497 | 79 | 0.591453 | 561 | 5,429 | 5.588235 | 0.278075 | 0.043062 | 0.024242 | 0.019139 | 0.163636 | 0.086762 | 0.049123 | 0.03445 | 0.03445 | 0.03445 | 0 | 0.009989 | 0.317738 | 5,429 | 160 | 80 | 33.93125 | 0.836393 | 0 | 0 | 0.255319 | 0 | 0 | 0.047523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06383 | null | null | 0.035461 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
db26d41f95f62f7dff5b3109e27a4f9f0f8a3233 | 1,005 | py | Python | TestFile/foldername.py | sparrow629/Lofter-image-Crawler | c2e0f2f7e602e74403f115bc4c990cf568551848 | [
"MIT"
] | 4 | 2017-02-24T05:56:48.000Z | 2021-01-07T21:16:03.000Z | TestFile/foldername.py | sparrow629/Lofter-image-Crawler | c2e0f2f7e602e74403f115bc4c990cf568551848 | [
"MIT"
] | null | null | null | TestFile/foldername.py | sparrow629/Lofter-image-Crawler | c2e0f2f7e602e74403f115bc4c990cf568551848 | [
"MIT"
] | 3 | 2016-11-27T15:04:23.000Z | 2021-01-07T21:16:05.000Z | #!/usr/bin/python
import re
import urllib
import os
def getHtml(url):
page = urllib.urlopen(url)
html = page.read()
return html
def foldername(html,url):
reg_month = r'<div class="month">(.*?)</div>'
month = re.compile(reg_month)
time_month = re.findall(month, html)
reg_date = r'<div class="date">(.*?)</div>'... | 28.714286 | 81 | 0.692537 | 151 | 1,005 | 4.509934 | 0.337748 | 0.017621 | 0.039648 | 0.058737 | 0.114537 | 0.114537 | 0.114537 | 0.114537 | 0 | 0 | 0 | 0.036364 | 0.124378 | 1,005 | 34 | 82 | 29.558824 | 0.7375 | 0.079602 | 0 | 0 | 0 | 0 | 0.261957 | 0.123913 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
db28ea86075c01e4a64cbf5045943a3775020b94 | 1,419 | py | Python | python/elasticsearch-snapshot.py | PushAppsPlatform/elasticsearch-scripts | 54197d624d60926e210db2c9d6a4c1a855dd2a75 | [
"MIT"
] | 4 | 2016-08-30T14:05:43.000Z | 2019-08-29T12:25:17.000Z | python/elasticsearch-snapshot.py | PushAppsPlatform/elasticsearch-scripts | 54197d624d60926e210db2c9d6a4c1a855dd2a75 | [
"MIT"
] | null | null | null | python/elasticsearch-snapshot.py | PushAppsPlatform/elasticsearch-scripts | 54197d624d60926e210db2c9d6a4c1a855dd2a75 | [
"MIT"
] | 3 | 2017-05-17T20:06:31.000Z | 2019-08-29T12:25:18.000Z | import sys
import elasticsearch
import curator
from optparse import OptionParser
def main(argv):
parser = OptionParser()
parser.add_option("-p", "--prefix", dest="prefix", action="store", help="prefix to indices filter ")
parser.add_option("-r", "--repository", dest="repository", action="store", help="rep... | 31.533333 | 114 | 0.637773 | 162 | 1,419 | 5.407407 | 0.432099 | 0.03653 | 0.034247 | 0.038813 | 0.107306 | 0.061644 | 0 | 0 | 0 | 0 | 0 | 0.009311 | 0.243129 | 1,419 | 44 | 115 | 32.25 | 0.806331 | 0.03735 | 0 | 0.125 | 0 | 0 | 0.155539 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | 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 |
db2c399a71802778f34450d785f3c64fc9679256 | 2,240 | py | Python | src/posts/views.py | fpoumian/yaba | 1b8df7ebf32b430c3f19e31e2feea91f0c9cdc38 | [
"MIT"
] | null | null | null | src/posts/views.py | fpoumian/yaba | 1b8df7ebf32b430c3f19e31e2feea91f0c9cdc38 | [
"MIT"
] | null | null | null | src/posts/views.py | fpoumian/yaba | 1b8df7ebf32b430c3f19e31e2feea91f0c9cdc38 | [
"MIT"
] | null | null | null | from django.shortcuts import render, get_object_or_404, redirect
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from .utils import get_posts_from_page, render_post_list
from tagging.views import TaggedObjectList
from django.views.generic import ListView, DetailView
from .models import Post
... | 31.111111 | 76 | 0.673214 | 258 | 2,240 | 5.736434 | 0.344961 | 0.037162 | 0.037838 | 0.048649 | 0.22027 | 0.104054 | 0.067568 | 0.067568 | 0.067568 | 0.067568 | 0 | 0.00288 | 0.225 | 2,240 | 71 | 77 | 31.549296 | 0.849654 | 0.092411 | 0 | 0.26087 | 0 | 0 | 0.055254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
db31c0efec333c8927b991856a2f2b39844ce0fb | 1,458 | py | Python | update/update_imperial.py | wowdd1/xlinkbook | f3de5a80c296c35e3012c3a1184b452d6fac1fd6 | [
"MIT"
] | 27 | 2016-07-11T21:16:41.000Z | 2021-07-23T23:10:42.000Z | update/update_imperial.py | honorpeter/xlinkBook | e6646603b06eb5ffa9d8e5f4980599b183fe427a | [
"MIT"
] | 1 | 2017-06-29T09:24:51.000Z | 2018-04-29T02:28:39.000Z | update/update_imperial.py | honorpeter/xlinkBook | e6646603b06eb5ffa9d8e5f4980599b183fe427a | [
"MIT"
] | 18 | 2016-10-21T08:19:51.000Z | 2020-11-04T05:09:11.000Z | #! /usr/bin/env python
from spider import *
class ImperialSpider(Spider):
def __init__(self):
Spider.__init__(self)
self.school = "imperial"
def doWork(self):
r = requests.get('http://www.imperial.ac.uk/study/pg/courses/by-department/')
soup = BeautifulSoup(r.text)
... | 33.136364 | 104 | 0.548011 | 180 | 1,458 | 4.272222 | 0.433333 | 0.062419 | 0.039012 | 0.044213 | 0.049415 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004032 | 0.319616 | 1,458 | 43 | 105 | 33.906977 | 0.771169 | 0.014403 | 0 | 0 | 0 | 0 | 0.118384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.03125 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
db32cae573516ff4308f9dec54a5b3aea5c1dfae | 1,407 | py | Python | property/admin.py | Araime/real-estate-agency | 45cb5c6af7697461d13f048c8206b3830b7bc174 | [
"MIT"
] | null | null | null | property/admin.py | Araime/real-estate-agency | 45cb5c6af7697461d13f048c8206b3830b7bc174 | [
"MIT"
] | null | null | null | property/admin.py | Araime/real-estate-agency | 45cb5c6af7697461d13f048c8206b3830b7bc174 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Flat, Complaint, Owner
class OwnersInline(admin.TabularInline):
model = Flat.owned_by.through
raw_id_fields = ('owner',)
class FlatAdmin(admin.ModelAdmin):
search_fields = ('town', 'address')
readonly_fields = ('created_at',)
list_display = (... | 23.847458 | 50 | 0.633262 | 152 | 1,407 | 5.598684 | 0.421053 | 0.023502 | 0.051704 | 0.063455 | 0.047004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234542 | 1,407 | 58 | 51 | 24.258621 | 0.790158 | 0 | 0 | 0.133333 | 0 | 0 | 0.183369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.044444 | 0.044444 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
db33ee8740b20dc82101479292d1013936d45fe8 | 2,763 | py | Python | src/rosdiscover/models/spawner.py | ChrisTimperley/rosdiscover | ce55a011bfda03b0dc70d543bbff5462fff16e8e | [
"Apache-2.0"
] | 1 | 2020-10-29T19:48:58.000Z | 2020-10-29T19:48:58.000Z | src/rosdiscover/models/spawner.py | ChrisTimperley/rosdiscover | ce55a011bfda03b0dc70d543bbff5462fff16e8e | [
"Apache-2.0"
] | 48 | 2020-06-02T19:59:27.000Z | 2021-07-27T02:07:05.000Z | src/rosdiscover/models/spawner.py | ChrisTimperley/rosdiscover | ce55a011bfda03b0dc70d543bbff5462fff16e8e | [
"Apache-2.0"
] | 1 | 2020-06-01T16:56:49.000Z | 2020-06-01T16:56:49.000Z | # -*- coding: utf-8 -*-
import argparse
import os
import typing as t
from loguru import logger
from roswire.name import namespace_join
from .plugins.controller_manager import ControllerManagerPlugin
from ..interpreter import model
@model('controller_manager', 'spawner')
def spawner(c):
parser = argparse.Argumen... | 46.05 | 140 | 0.7557 | 333 | 2,763 | 6.039039 | 0.393393 | 0.14371 | 0.059672 | 0.035803 | 0.186972 | 0.130283 | 0.089508 | 0.089508 | 0 | 0 | 0 | 0.010855 | 0.166486 | 2,763 | 59 | 141 | 46.830508 | 0.862353 | 0.230547 | 0 | 0 | 0 | 0 | 0.234626 | 0.118732 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.025641 | false | 0 | 0.179487 | 0 | 0.205128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
db39d4b54215c2f815ff67dc9d58ade4b35663d3 | 16,194 | py | Python | run_simulation.py | SirYetz/Containerized-Forecasting-Workflow | 4a0e9b64f31448bd84d98d72394417f5154e43ef | [
"MIT"
] | 6 | 2018-10-02T10:48:11.000Z | 2020-03-30T23:01:25.000Z | run_simulation.py | SirYetz/Containerized-Forecasting-Workflow | 4a0e9b64f31448bd84d98d72394417f5154e43ef | [
"MIT"
] | null | null | null | run_simulation.py | SirYetz/Containerized-Forecasting-Workflow | 4a0e9b64f31448bd84d98d72394417f5154e43ef | [
"MIT"
] | 3 | 2019-02-11T02:50:21.000Z | 2021-03-05T02:42:38.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
DESCRIPTION
Basic run script for IBM Containerized Forecasting Workflow
EXAMPLES
This script can be called with the following command line:
python run_simulation.py --start 2014-08-02 --end 2014-08-04 --length 48 \
--lat 53.343 --long -6.266 --hour 0
... | 49.522936 | 107 | 0.496912 | 1,678 | 16,194 | 4.710965 | 0.302741 | 0.044402 | 0.083871 | 0.021252 | 0.205693 | 0.170525 | 0.128273 | 0.105503 | 0.105503 | 0.094118 | 0 | 0.03049 | 0.410646 | 16,194 | 326 | 108 | 49.674847 | 0.797674 | 0.107138 | 0 | 0.14433 | 0 | 0 | 0.211566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025773 | null | null | 0.020619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e1d725b1864380e2f960ad7c6518d59de2ba9afa | 718 | py | Python | socialdistribution/api/migrations/0024_auto_20211204_1023.py | CMPUT404-Project-Group/CMPUT404-Group-Project | e541cc609f260d7221fe0be8975c5b2444d74af0 | [
"W3C-20150513"
] | null | null | null | socialdistribution/api/migrations/0024_auto_20211204_1023.py | CMPUT404-Project-Group/CMPUT404-Group-Project | e541cc609f260d7221fe0be8975c5b2444d74af0 | [
"W3C-20150513"
] | 44 | 2021-10-14T15:44:46.000Z | 2021-12-05T00:57:23.000Z | socialdistribution/api/migrations/0024_auto_20211204_1023.py | CMPUT404-Project-Group/Social-Distribution-CMPUT404-Group-Project | e541cc609f260d7221fe0be8975c5b2444d74af0 | [
"W3C-20150513"
] | 1 | 2021-12-07T01:14:14.000Z | 2021-12-07T01:14:14.000Z | # Generated by Django 3.2.8 on 2021-12-04 17:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0023_merge_20211130_1340'),
]
operations = [
migrations.AddField(
model_name='user',
name='profileImage',
... | 29.916667 | 215 | 0.591922 | 76 | 718 | 5.486842 | 0.697368 | 0.043165 | 0.057554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079777 | 0.249304 | 718 | 23 | 216 | 31.217391 | 0.693878 | 0.062674 | 0 | 0.117647 | 1 | 0 | 0.242921 | 0.035768 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e1e05c53bb1217e707b10558ccbebeb8fd0dd2cb | 7,781 | py | Python | ucpro_sdk/api/desktop/get_task_status_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | ucpro_sdk/api/desktop/get_task_status_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | ucpro_sdk/api/desktop/get_task_status_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: get_task_status.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.prot... | 39.100503 | 585 | 0.752217 | 918 | 7,781 | 6.101307 | 0.162309 | 0.047134 | 0.052491 | 0.028566 | 0.551687 | 0.528299 | 0.510802 | 0.510802 | 0.487949 | 0.487949 | 0 | 0.033533 | 0.122349 | 7,781 | 198 | 586 | 39.29798 | 0.786645 | 0.050251 | 0 | 0.647059 | 1 | 0.005882 | 0.206612 | 0.162444 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 0 | 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 |
e1e552302f6cdff3718e4838edb56155a3af04f7 | 2,864 | py | Python | docs/generate_mainpage.py | PatrickTorgerson/Envy | 1947bbdaf98a51e893674cd60a33fa634a2a6651 | [
"MIT"
] | null | null | null | docs/generate_mainpage.py | PatrickTorgerson/Envy | 1947bbdaf98a51e893674cd60a33fa634a2a6651 | [
"MIT"
] | 1 | 2021-08-20T01:53:47.000Z | 2021-08-23T00:51:30.000Z | docs/generate_mainpage.py | PatrickTorgerson/Envy | 1947bbdaf98a51e893674cd60a33fa634a2a6651 | [
"MIT"
] | null | null | null | ###################################################################################
#
# Envy Game Engine
# https://github.com/PatrickTorgerson/Envy
#
# Copyright (c) 2021 Patrick Torgerson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated d... | 50.245614 | 193 | 0.629539 | 357 | 2,864 | 5 | 0.459384 | 0.043137 | 0.033613 | 0.038095 | 0.107563 | 0.05042 | 0.05042 | 0.05042 | 0.05042 | 0.05042 | 0 | 0.001793 | 0.22102 | 2,864 | 57 | 194 | 50.245614 | 0.798297 | 0.525489 | 0 | 0 | 0 | 0.266667 | 0.476399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e1ea4bcef38af4ffdf01a43c9075bec87e6b948c | 2,474 | py | Python | internal/twirptest/source_relative/source_relative_pb2.py | lwc/twirp | f78d0380903d3a2da764e3698ff05a4ea9c41724 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2019-07-11T23:20:19.000Z | 2021-05-27T22:20:29.000Z | internal/twirptest/source_relative/source_relative_pb2.py | lwc/twirp | f78d0380903d3a2da764e3698ff05a4ea9c41724 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | internal/twirptest/source_relative/source_relative_pb2.py | lwc/twirp | f78d0380903d3a2da764e3698ff05a4ea9c41724 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: source_relative.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection a... | 27.797753 | 315 | 0.775263 | 306 | 2,474 | 5.980392 | 0.375817 | 0.091803 | 0.120219 | 0.153005 | 0.27541 | 0.198907 | 0.125683 | 0.101639 | 0 | 0 | 0 | 0.018987 | 0.105901 | 2,474 | 88 | 316 | 28.113636 | 0.808318 | 0.097817 | 0 | 0.19697 | 1 | 0.015152 | 0.275382 | 0.249326 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 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 |
e1f08752874d9f6fc468ddc3e39731ba8e4e7c3e | 345 | py | Python | eat_cpu.py | rs-gcp-practice/cloud-loadbalancer | 3ee2a490d4abfd40fcfc344e81330da84760797a | [
"MIT"
] | null | null | null | eat_cpu.py | rs-gcp-practice/cloud-loadbalancer | 3ee2a490d4abfd40fcfc344e81330da84760797a | [
"MIT"
] | null | null | null | eat_cpu.py | rs-gcp-practice/cloud-loadbalancer | 3ee2a490d4abfd40fcfc344e81330da84760797a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Produces load on all available CPU cores
"""
from multiprocessing import Pool
from multiprocessing import cpu_count
def f(x):
while True:
x*x
if __name__ == '__main__':
processes = cpu_count()
# print 'utilizing %d cores\n' % processes
pool = Pool(processes)
pool... | 20.294118 | 46 | 0.675362 | 47 | 345 | 4.744681 | 0.659574 | 0.170404 | 0.224215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211594 | 345 | 17 | 47 | 20.294118 | 0.819853 | 0.295652 | 0 | 0 | 0 | 0 | 0.034043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e1f0a9366f10ce21a8870e13432b634097057ffb | 309 | py | Python | setup.py | chao1224/n_gram_graph | 3acf580fe4b5835409abcbd566aadcba6f63fdb8 | [
"MIT"
] | 26 | 2019-11-17T16:35:31.000Z | 2021-09-26T00:46:47.000Z | setup.py | chao1224/n_gram_graph | 3acf580fe4b5835409abcbd566aadcba6f63fdb8 | [
"MIT"
] | 4 | 2019-03-18T05:25:33.000Z | 2021-08-23T14:00:28.000Z | setup.py | chao1224/n_gram_graph | 3acf580fe4b5835409abcbd566aadcba6f63fdb8 | [
"MIT"
] | 8 | 2019-03-18T05:25:57.000Z | 2020-11-17T04:18:04.000Z | from setuptools import setup, find_packages
setup(name='n_gram_graph',
version='0.1.2',
url='https://github.com/chao1224/n_gram_graph',
author='Shengchao Liu',
author_email='shengchao@cs.wisc.edu',
license='MIT',
packages=['n_gram_graph'],
zip_safe=False)
| 28.090909 | 54 | 0.63754 | 41 | 309 | 4.585366 | 0.756098 | 0.079787 | 0.159574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028926 | 0.216828 | 309 | 10 | 55 | 30.9 | 0.747934 | 0 | 0 | 0 | 0 | 0 | 0.354515 | 0.070234 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e1f653806203330f97d66b7093f63575ac6954bf | 8,555 | py | Python | main/check_scenario.py | crond-jaist/cyprom | 17b1df780671142e42f9e9447931380002f3d583 | [
"BSD-3-Clause"
] | 5 | 2019-06-12T02:24:28.000Z | 2021-07-04T21:39:57.000Z | main/check_scenario.py | crond-jaist/cyprom | 17b1df780671142e42f9e9447931380002f3d583 | [
"BSD-3-Clause"
] | null | null | null | main/check_scenario.py | crond-jaist/cyprom | 17b1df780671142e42f9e9447931380002f3d583 | [
"BSD-3-Clause"
] | 6 | 2019-06-12T02:24:44.000Z | 2021-07-04T21:40:06.000Z |
#############################################################################
# Functions related to scenario verification
#############################################################################
# Standard library imports
import os, glob
# Local imports
from character import decode
from storyboard import Story... | 39.790698 | 189 | 0.663238 | 1,101 | 8,555 | 5.072661 | 0.174387 | 0.049239 | 0.038675 | 0.026858 | 0.345927 | 0.209132 | 0.168487 | 0.143062 | 0.103312 | 0.069472 | 0 | 0.005473 | 0.209819 | 8,555 | 214 | 190 | 39.976636 | 0.82071 | 0.248042 | 0 | 0.344262 | 0 | 0.008197 | 0.22563 | 0 | 0 | 0 | 0 | 0.004673 | 0 | 0 | null | null | 0 | 0.040984 | null | null | 0.237705 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e1f7d789c060f29891496ef2d336bb6ab11a28ed | 2,605 | py | Python | is_core/templatetags/permissions.py | zamazaljiri/django-is-core | 1f0b2c5fe50d93e20aff4b5d41a7727259b421fd | [
"BSD-3-Clause"
] | null | null | null | is_core/templatetags/permissions.py | zamazaljiri/django-is-core | 1f0b2c5fe50d93e20aff4b5d41a7727259b421fd | [
"BSD-3-Clause"
] | null | null | null | is_core/templatetags/permissions.py | zamazaljiri/django-is-core | 1f0b2c5fe50d93e20aff4b5d41a7727259b421fd | [
"BSD-3-Clause"
] | null | null | null | from django.template.base import Node, TemplateSyntaxError, NodeList
from django.utils.functional import SimpleLazyObject
from is_core.utils.compatibility import Library
register = Library()
class Permissions:
permissions_validators = {}
def register_permission_validator(self, name, validator):
se... | 32.974684 | 98 | 0.67025 | 313 | 2,605 | 5.354633 | 0.284345 | 0.042959 | 0.02685 | 0.038783 | 0.108592 | 0.054893 | 0.054893 | 0.054893 | 0 | 0 | 0 | 0.002485 | 0.227639 | 2,605 | 78 | 99 | 33.397436 | 0.830517 | 0.016891 | 0 | 0.070175 | 0 | 0 | 0.033216 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0.017544 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c002302ae983c3f583c383a387496d2400232e0c | 3,247 | py | Python | ambassador/ambassador/config/acmapping.py | Guyzeroth/ambassador | 3cd648c1133aac76af3bc54ebe6bf8dfa1e541aa | [
"Apache-2.0"
] | null | null | null | ambassador/ambassador/config/acmapping.py | Guyzeroth/ambassador | 3cd648c1133aac76af3bc54ebe6bf8dfa1e541aa | [
"Apache-2.0"
] | null | null | null | ambassador/ambassador/config/acmapping.py | Guyzeroth/ambassador | 3cd648c1133aac76af3bc54ebe6bf8dfa1e541aa | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Datawire. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 38.2 | 88 | 0.59963 | 380 | 3,247 | 5.057895 | 0.507895 | 0.031217 | 0.013528 | 0.016649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003549 | 0.305821 | 3,247 | 84 | 89 | 38.654762 | 0.849157 | 0.566369 | 0 | 0 | 0 | 0 | 0.006441 | 0 | 0 | 0 | 0 | 0.011905 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c002c5c72b8139cc5555a599a15fc088a3d0ec1c | 3,342 | py | Python | src/primaires/meteo/config.py | vlegoff/tsunami | 36b3b974f6eefbf15cd5d5f099fc14630e66570b | [
"BSD-3-Clause"
] | 14 | 2015-08-21T19:15:21.000Z | 2017-11-26T13:59:17.000Z | src/primaires/meteo/config.py | vincent-lg/tsunami | 36b3b974f6eefbf15cd5d5f099fc14630e66570b | [
"BSD-3-Clause"
] | 20 | 2015-09-29T20:50:45.000Z | 2018-06-21T12:58:30.000Z | src/primaires/meteo/config.py | vlegoff/tsunami | 36b3b974f6eefbf15cd5d5f099fc14630e66570b | [
"BSD-3-Clause"
] | 3 | 2015-05-02T19:42:03.000Z | 2018-09-06T10:55:00.000Z | # -*-coding:Utf-8 -*
# Copyright (c) 2010-2017 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
... | 40.26506 | 79 | 0.751945 | 495 | 3,342 | 5.066667 | 0.553535 | 0.0311 | 0.013557 | 0.018341 | 0.086922 | 0.054226 | 0.054226 | 0.054226 | 0.054226 | 0.054226 | 0 | 0.019393 | 0.182226 | 3,342 | 82 | 80 | 40.756098 | 0.897914 | 0.471574 | 0 | 0 | 0 | 0 | 0.970012 | 0.012111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c00a70b92842230b8dd81ab42bddd8ea5a150581 | 631 | py | Python | config.py | Snedashkovsky/knowledge_graph_research | 2695850815fa2fcd28d43b371923601aaee68d6f | [
"MIT"
] | 4 | 2021-01-19T10:01:41.000Z | 2021-08-22T18:16:46.000Z | config.py | Snedashkovsky/knowledge_graph_research | 2695850815fa2fcd28d43b371923601aaee68d6f | [
"MIT"
] | null | null | null | config.py | Snedashkovsky/knowledge_graph_research | 2695850815fa2fcd28d43b371923601aaee68d6f | [
"MIT"
] | 1 | 2021-06-13T09:23:23.000Z | 2021-06-13T09:23:23.000Z | from clickhouse_driver import Client
from dotenv import dotenv_values
CLICKHOUSE_HOST = dotenv_values(".env")['CLICKHOUSE_HOST']
CLICKHOUSE_COMPRESSION = dotenv_values(".env")['CLICKHOUSE_COMPRESSION']
client = Client(host=CLICKHOUSE_HOST, compression=CLICKHOUSE_COMPRESSION)
execute = client.execute
IPFS_HOST = doten... | 33.210526 | 76 | 0.800317 | 80 | 631 | 5.9625 | 0.375 | 0.176101 | 0.188679 | 0.079665 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006826 | 0.071315 | 631 | 18 | 77 | 35.055556 | 0.807167 | 0 | 0 | 0 | 0 | 0 | 0.269414 | 0.0729 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c00b4485f0cb1c39f5f3926f8c0a020940674988 | 671 | py | Python | solutions/024/solve24.py | zsarge/ProjectEuler | 751b19df53483d517e6bf71ccc5fb9918ff50322 | [
"MIT"
] | null | null | null | solutions/024/solve24.py | zsarge/ProjectEuler | 751b19df53483d517e6bf71ccc5fb9918ff50322 | [
"MIT"
] | null | null | null | solutions/024/solve24.py | zsarge/ProjectEuler | 751b19df53483d517e6bf71ccc5fb9918ff50322 | [
"MIT"
] | 1 | 2021-06-07T18:45:07.000Z | 2021-06-07T18:45:07.000Z | # https://projecteuler.net/problem=24
# Run with: 'python solve24.py'
# using Python 3.6.9
# by Zack Sargent
# Prompt:
# A permutation is an ordered arrangement of objects.
# For example, 3124 is one possible permutation of
# the digits 1, 2, 3 and 4.
# If all of the permutations are listed numerically
# or alphabeti... | 29.173913 | 53 | 0.71386 | 107 | 671 | 4.457944 | 0.663551 | 0.031447 | 0.067086 | 0.092243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13578 | 0.187779 | 671 | 22 | 54 | 30.5 | 0.73945 | 0.791356 | 0 | 0 | 0 | 0 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c013fcf85daf479c6e42b95986ddd64dcd558783 | 2,014 | py | Python | output/main.py | zhangshyue/regex-library | 69a26b580bcc94f95dda3536cd790fb59c81a31b | [
"MIT"
] | null | null | null | output/main.py | zhangshyue/regex-library | 69a26b580bcc94f95dda3536cd790fb59c81a31b | [
"MIT"
] | null | null | null | output/main.py | zhangshyue/regex-library | 69a26b580bcc94f95dda3536cd790fb59c81a31b | [
"MIT"
] | null | null | null | # Builtin imports
import sys
import base64
# Internal imports
from root_pb2 import *
# External imports
import rich
LINES_SURROUNDING = 5
def retrieve_program_context(root: Root) -> list:
file_contents = open(root.file)
lines = list(file_contents.readlines())
context = []
if root.line_number > L... | 24.864198 | 172 | 0.677756 | 257 | 2,014 | 5.116732 | 0.303502 | 0.037262 | 0.063878 | 0.057795 | 0.277567 | 0.174144 | 0.174144 | 0.11635 | 0 | 0 | 0 | 0.006892 | 0.207547 | 2,014 | 81 | 173 | 24.864198 | 0.817043 | 0.155412 | 0 | 0.162791 | 0 | 0.023256 | 0.148036 | 0.120242 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162791 | false | 0.093023 | 0.093023 | 0 | 0.27907 | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c01b643bf8d8a7e1751e47d65c16bf8902d8bff1 | 7,759 | py | Python | design/mmc_ss/scr/gen_stub.py | hengfengzhang/soc_scripts | f589a9b19a040402ce669fe7c67263d3930cbfe4 | [
"MIT"
] | 12 | 2020-09-26T08:55:53.000Z | 2022-01-18T12:14:14.000Z | design/mmc_ss/scr/gen_stub.py | hengfengzhang/soc_scripts | f589a9b19a040402ce669fe7c67263d3930cbfe4 | [
"MIT"
] | null | null | null | design/mmc_ss/scr/gen_stub.py | hengfengzhang/soc_scripts | f589a9b19a040402ce669fe7c67263d3930cbfe4 | [
"MIT"
] | 2 | 2020-10-20T11:52:00.000Z | 2020-10-21T02:47:06.000Z | #!/usr/bin/python
#hengfengzhang
#20210721
import os
import sys
import re
import argparse
import shutil
def get_parse():
parser = argparse.ArgumentParser(description='''Generate stub file for top design with ready/rdy output tied high.
''')
parser.add_argument('-i', '--design' , metavar='design.v' , nargs='... | 31.54065 | 119 | 0.636422 | 1,144 | 7,759 | 4.026224 | 0.118881 | 0.078159 | 0.038211 | 0.023448 | 0.370169 | 0.282023 | 0.225141 | 0.170864 | 0.155667 | 0.145245 | 0 | 0.00468 | 0.228895 | 7,759 | 245 | 120 | 31.669388 | 0.765168 | 0.055162 | 0 | 0.319048 | 1 | 0 | 0.085191 | 0.00629 | 0.019048 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.02381 | 0 | 0.171429 | 0.038095 | 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 |
c02b977841dff84c4964389abcc0a5c9cd299522 | 1,256 | py | Python | 4th_year/2nd/AB/1920/lab/my_NeedlemanWunsch.py | FrancescoPenasa/Master-ComputerScience-UNITN | 980c6a3e6f01a7cb98a62bd39eda34912731c9eb | [
"MIT"
] | null | null | null | 4th_year/2nd/AB/1920/lab/my_NeedlemanWunsch.py | FrancescoPenasa/Master-ComputerScience-UNITN | 980c6a3e6f01a7cb98a62bd39eda34912731c9eb | [
"MIT"
] | null | null | null | 4th_year/2nd/AB/1920/lab/my_NeedlemanWunsch.py | FrancescoPenasa/Master-ComputerScience-UNITN | 980c6a3e6f01a7cb98a62bd39eda34912731c9eb | [
"MIT"
] | null | null | null | import sys
import numpy as np
seq1 = sys.argv[1]
seq2 = sys.argv[2]
inital_gap = sys.argv[3]
if (initial_gap == 'Y' or initial_gap == 'y')
initial_gap = True
else
initial_gap = False
boolean_modify = input('Do you want to modify the std weights: [Y|N] ')
if (boolean_modify == 'Y' or boolean_modify == 'y'):
match... | 25.12 | 71 | 0.577229 | 199 | 1,256 | 3.572864 | 0.331658 | 0.084388 | 0.045007 | 0.061885 | 0.202532 | 0.202532 | 0.106892 | 0 | 0 | 0 | 0 | 0.038919 | 0.263535 | 1,256 | 50 | 72 | 25.12 | 0.72973 | 0.082006 | 0 | 0.111111 | 0 | 0 | 0.080209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c036950ae55529163c53cbbba64ded6e0ea875b1 | 15,218 | py | Python | HFT_Toy_Example.py | VladyQuant/HFT_Toy_Example | afe6cc41c3b153a17a49d9de26cf52f90979bf70 | [
"MIT"
] | 1 | 2019-11-19T04:43:17.000Z | 2019-11-19T04:43:17.000Z | HFT_Toy_Example.py | VladyQuant/HFT_Toy_Example | afe6cc41c3b153a17a49d9de26cf52f90979bf70 | [
"MIT"
] | null | null | null | HFT_Toy_Example.py | VladyQuant/HFT_Toy_Example | afe6cc41c3b153a17a49d9de26cf52f90979bf70 | [
"MIT"
] | 1 | 2020-06-27T07:18:11.000Z | 2020-06-27T07:18:11.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue May 22 18:48:43 2018
@author: Vladimir Tsygankov
"""
from multiprocessing import Process, Manager
import time
import random
from copy import deepcopy
class Exchange:
"""
A Model of exchange matching engine. Generates order book and fills order... | 44.890855 | 142 | 0.556052 | 1,779 | 15,218 | 4.536818 | 0.170883 | 0.049065 | 0.017346 | 0.014125 | 0.279024 | 0.148309 | 0.114112 | 0.091686 | 0.039896 | 0.024037 | 0 | 0.026259 | 0.364371 | 15,218 | 339 | 143 | 44.890855 | 0.808126 | 0.143909 | 0 | 0.310811 | 0 | 0 | 0.007209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018018 | null | null | 0.018018 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c03700cb58ea77c221eda25b5c095f5530cda473 | 1,721 | py | Python | tools/decode/xdis/opcodes/opcode_25.py | G705-Ghilan/HackerMode | 6e799333fe6479a26c1f403eba318ae857a45cb6 | [
"MIT"
] | null | null | null | tools/decode/xdis/opcodes/opcode_25.py | G705-Ghilan/HackerMode | 6e799333fe6479a26c1f403eba318ae857a45cb6 | [
"MIT"
] | null | null | null | tools/decode/xdis/opcodes/opcode_25.py | G705-Ghilan/HackerMode | 6e799333fe6479a26c1f403eba318ae857a45cb6 | [
"MIT"
] | null | null | null | # (C) Copyright 2017, 2021 by Rocky Bernstein
"""
CPython 2.5 bytecode opcodes
This is a like Python 2.5's opcode.py with some additional classification
of stack usage, and opererand formatting functions.
"""
import xdis.opcodes.opcode_24 as opcode_24
from xdis.opcodes.base import (
def_op,
extended_format_AT... | 28.683333 | 73 | 0.744916 | 230 | 1,721 | 5.121739 | 0.373913 | 0.13073 | 0.091681 | 0.078098 | 0.300509 | 0.198642 | 0.105263 | 0.074703 | 0 | 0 | 0 | 0.021321 | 0.155142 | 1,721 | 59 | 74 | 29.169492 | 0.788858 | 0.213248 | 0 | 0 | 0 | 0 | 0.131343 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0 | false | 0 | 0.051282 | 0 | 0.051282 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c039753e59cf81120d3f3004e91858b902e39f65 | 635 | py | Python | students/K33401/Zolotov_Pavel/Lr3/classified/urls.py | emina13/ITMO_ICT_WebDevelopment_2021-2022 | 498a6138e352e7e0ca40d1eb301bc29416158f51 | [
"MIT"
] | null | null | null | students/K33401/Zolotov_Pavel/Lr3/classified/urls.py | emina13/ITMO_ICT_WebDevelopment_2021-2022 | 498a6138e352e7e0ca40d1eb301bc29416158f51 | [
"MIT"
] | null | null | null | students/K33401/Zolotov_Pavel/Lr3/classified/urls.py | emina13/ITMO_ICT_WebDevelopment_2021-2022 | 498a6138e352e7e0ca40d1eb301bc29416158f51 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import *
app_name = "classified"
urlpatterns = [
path('jobs/get', JobApiGetView.as_view()),
path('jobs/new', JobApiCreateView.as_view()),
path('industry/get', IndustryGetView.as_view()),
path('industry/new', IndustryApiCreateView.as_view()),
path('region/get', ... | 31.75 | 65 | 0.716535 | 74 | 635 | 6 | 0.391892 | 0.135135 | 0.202703 | 0.094595 | 0.099099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108661 | 635 | 19 | 66 | 33.421053 | 0.784452 | 0 | 0 | 0 | 0 | 0 | 0.198738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c04478c12eb29c658c89275a31145ce5ab279a84 | 7,595 | py | Python | research/generated.py | sylwekczmil/sevq | 374346c01fb7206df24a61fb40173c4ab13c87a1 | [
"MIT"
] | 1 | 2021-11-29T18:52:15.000Z | 2021-11-29T18:52:15.000Z | research/generated.py | sylwekczmil/sevq | 374346c01fb7206df24a61fb40173c4ab13c87a1 | [
"MIT"
] | 1 | 2021-11-24T19:26:41.000Z | 2021-11-24T19:28:25.000Z | research/generated.py | sylwekczmil/sevq | 374346c01fb7206df24a61fb40173c4ab13c87a1 | [
"MIT"
] | null | null | null | from collections import defaultdict
from matplotlib import pyplot as plt
import numpy as np
import pandas as pd
from evq.algorithm import EVQ
from matplotlib.image import imread
from scipy.stats import pearsonr
from sklearn import preprocessing
from sklearn.datasets import make_moons, make_blobs, make_circles
from skl... | 39.764398 | 108 | 0.603423 | 993 | 7,595 | 4.429003 | 0.16717 | 0.043656 | 0.027285 | 0.038199 | 0.738518 | 0.699409 | 0.699409 | 0.65166 | 0.64211 | 0.64211 | 0 | 0.020556 | 0.257011 | 7,595 | 190 | 109 | 39.973684 | 0.758816 | 0.04819 | 0 | 0.585366 | 0 | 0 | 0.135596 | 0.019529 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018293 | false | 0 | 0.091463 | 0 | 0.109756 | 0.012195 | 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 |
c047967fb1db6aabdec82c08d64a45c6bbe71f74 | 16,515 | py | Python | support/pycad/runtime/dbtrans.py | vicwjb/Pycad | 7391cd694b7a91ad9f9964ec95833c1081bc1f84 | [
"MIT"
] | 1 | 2020-03-25T03:27:24.000Z | 2020-03-25T03:27:24.000Z | support/pycad/runtime/dbtrans.py | vicwjb/Pycad | 7391cd694b7a91ad9f9964ec95833c1081bc1f84 | [
"MIT"
] | null | null | null | support/pycad/runtime/dbtrans.py | vicwjb/Pycad | 7391cd694b7a91ad9f9964ec95833c1081bc1f84 | [
"MIT"
] | null | null | null | from pycad.system import *
from . import dbdict, upopen
class dbtrans(object):
"""
事务简化类(上下文管理器) write by xsfhlzh
dbtrans(owner: typing.Union[acap.Document, acdb.Database, str] = None, commit: bool = True)
创建数据库事务,默认提交
owner: acap.Document or acdb.Database or str, 文档或数据库实例或dwg文件名, 默认创建空的数据库
... | 29.333925 | 102 | 0.553436 | 1,472 | 16,515 | 6.177989 | 0.247283 | 0.036288 | 0.037607 | 0.011876 | 0.168793 | 0.155047 | 0.150429 | 0.096107 | 0.0585 | 0.040246 | 0 | 0.002502 | 0.346533 | 16,515 | 562 | 103 | 29.386121 | 0.840067 | 0.001574 | 0 | 0.182353 | 0 | 0 | 0.043245 | 0.01212 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.008824 | 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 |
c04cdb05bbc2add2fd8ce461bc2e46ac1de700e1 | 679 | py | Python | Homework_2/ex_3.1.py | KseniyaKamneva/geekbrains_ds | ff79b8f157892bfcbdff80915369f1c03d57ee07 | [
"MIT"
] | null | null | null | Homework_2/ex_3.1.py | KseniyaKamneva/geekbrains_ds | ff79b8f157892bfcbdff80915369f1c03d57ee07 | [
"MIT"
] | null | null | null | Homework_2/ex_3.1.py | KseniyaKamneva/geekbrains_ds | ff79b8f157892bfcbdff80915369f1c03d57ee07 | [
"MIT"
] | 1 | 2021-11-22T12:57:16.000Z | 2021-11-22T12:57:16.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 1 00:28:27 2021
@author: Ксения Камнева
"""
seasons_dict = dict(winter='зима', spring='весна', summer='лето', autumn='осень')
while True:
try:
month = int(input('Введите число из диапазона 1-12: '))
except ValueError:
print('Неверный формат данных... | 27.16 | 81 | 0.631811 | 99 | 679 | 4.282828 | 0.565657 | 0.129717 | 0.113208 | 0.179245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052434 | 0.213549 | 679 | 25 | 82 | 27.16 | 0.741573 | 0.122239 | 0 | 0 | 0 | 0 | 0.225806 | 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 |
c04e318a8b703f71671d4cda9fb339170615d8d2 | 1,402 | py | Python | connect_db.py | L-Neo/data_utils | 6a9c90afc588315900f5bb136b167533cfc14fe5 | [
"MIT"
] | null | null | null | connect_db.py | L-Neo/data_utils | 6a9c90afc588315900f5bb136b167533cfc14fe5 | [
"MIT"
] | null | null | null | connect_db.py | L-Neo/data_utils | 6a9c90afc588315900f5bb136b167533cfc14fe5 | [
"MIT"
] | null | null | null | import os
from sqlalchemy import create_engine, inspect
from sqlalchemy.engine import url
from dotenv import find_dotenv, load_dotenv
# load the environment variables
load_dotenv(find_dotenv())
class DB:
"""
A class for connecting with a postgres database and listing its schemas and tables.
Args:
... | 36.894737 | 101 | 0.603424 | 166 | 1,402 | 4.96988 | 0.427711 | 0.054545 | 0.066667 | 0.09697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.308131 | 1,402 | 38 | 102 | 36.894737 | 0.850515 | 0.413695 | 0 | 0 | 0 | 0 | 0.029639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.235294 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c052ec254e02815911c7ea6d6a7d524f9ebd5d5e | 6,912 | py | Python | src/core/models.py | lesh1k/VKStalk | bcf10a944a0259efe7899cc3d15b056b7d148837 | [
"MIT"
] | 1 | 2021-09-26T08:10:05.000Z | 2021-09-26T08:10:05.000Z | src/core/models.py | lesh1k/VKStalk | bcf10a944a0259efe7899cc3d15b056b7d148837 | [
"MIT"
] | 1 | 2016-08-27T09:13:08.000Z | 2016-08-28T11:33:00.000Z | src/core/models.py | lesh1k/VKStalk | bcf10a944a0259efe7899cc3d15b056b7d148837 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from sqlalchemy import create_engine, Column, ForeignKey, Integer, String,\
Boolean, Unicode, Date, DateTime, and_, func
from sqlalchemy.orm import relationship, backref, sessionmaker
from sqlalchemy.engine.url import URL
from sqlalchemy.ext.declarative import declarative_bas... | 32.148837 | 80 | 0.610098 | 845 | 6,912 | 4.738462 | 0.231953 | 0.056943 | 0.01998 | 0.012987 | 0.307443 | 0.25974 | 0.24026 | 0.220779 | 0.187812 | 0.163836 | 0 | 0.001626 | 0.288339 | 6,912 | 214 | 81 | 32.299065 | 0.81236 | 0 | 0 | 0.368132 | 0 | 0 | 0.060619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065934 | 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 |
c0577c31257150214ad93a2f7d1e586ff5e40129 | 2,944 | py | Python | PiratePinball/MultiBall.py | OpenDisneyGames/PiratesPinball | 411728429083e2f36a691b8db7966f91a1ea6a1f | [
"Apache-2.0"
] | 3 | 2020-07-16T20:18:26.000Z | 2021-04-22T13:01:46.000Z | PiratePinball/MultiBall.py | OpenDisneyGames/PiratesPinball | 411728429083e2f36a691b8db7966f91a1ea6a1f | [
"Apache-2.0"
] | null | null | null | PiratePinball/MultiBall.py | OpenDisneyGames/PiratesPinball | 411728429083e2f36a691b8db7966f91a1ea6a1f | [
"Apache-2.0"
] | null | null | null | from pinballbase.PinballErrand import PinballErrand
from .PirateDisplay import PirateDisplay
from direct.showbase.ShowBaseGlobal import *
from direct.interval.IntervalGlobal import *
from pinballbase.PinballElements import *
import Localizer
class MultiBall(PinballErrand):
__module__ = __name__
def __init__(s... | 34.232558 | 129 | 0.650476 | 298 | 2,944 | 6.369128 | 0.318792 | 0.099579 | 0.05058 | 0.085353 | 0.199157 | 0.111697 | 0.093783 | 0.093783 | 0.093783 | 0.093783 | 0 | 0.018962 | 0.247622 | 2,944 | 86 | 130 | 34.232558 | 0.837923 | 0 | 0 | 0.211268 | 0 | 0 | 0.065535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.197183 | false | 0.070423 | 0.084507 | 0.014085 | 0.422535 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c057a2c772b5cc34752e9fe4269da9cd9afdb93b | 816 | py | Python | civictechindexadmin/data/migrations/0006_infer_github_name.py | giosce/CTI-website-backend | 9117a30b2d950492009e1626e9da44c509905edb | [
"MIT"
] | null | null | null | civictechindexadmin/data/migrations/0006_infer_github_name.py | giosce/CTI-website-backend | 9117a30b2d950492009e1626e9da44c509905edb | [
"MIT"
] | null | null | null | civictechindexadmin/data/migrations/0006_infer_github_name.py | giosce/CTI-website-backend | 9117a30b2d950492009e1626e9da44c509905edb | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-11-15 19:54
import re
from django.db import migrations
def backwards(apps, schema_editor):
pass
def forwards(apps, schema_editor):
# Fill in GitHub name using any available link to github.com
Link = apps.get_model('data', 'Link')
for link in Link.objects.filter(l... | 25.5 | 93 | 0.640931 | 102 | 816 | 5.019608 | 0.607843 | 0.039063 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031949 | 0.232843 | 816 | 31 | 94 | 26.322581 | 0.785942 | 0.127451 | 0 | 0 | 1 | 0 | 0.126939 | 0.050776 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.05 | 0.1 | 0 | 0.35 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c057eb3000fda1298dd6e4c446c16052e669ac15 | 2,856 | py | Python | app/robo_advisor.py | Ksl5/robo-advisor | 3063bc98beaf259e03c19a253417092abff5c0e6 | [
"MIT"
] | null | null | null | app/robo_advisor.py | Ksl5/robo-advisor | 3063bc98beaf259e03c19a253417092abff5c0e6 | [
"MIT"
] | null | null | null | app/robo_advisor.py | Ksl5/robo-advisor | 3063bc98beaf259e03c19a253417092abff5c0e6 | [
"MIT"
] | null | null | null | # app/robo_advisor.py
import requests
import json
import datetime
import os
import csv
from dotenv import load_dotenv
load_dotenv()
def to_usd(my_price):
return f"${my_price:,.2f}" #> $12,000.71
# Info inputs
#symbol = parsed_response["Meta Data"]["2. Symbol"]
api_key = os.environ.get("ALPHAVANTAGE_API_KEY")
s... | 30.063158 | 110 | 0.643557 | 379 | 2,856 | 4.664908 | 0.343008 | 0.063348 | 0.050905 | 0.062217 | 0.057692 | 0.040724 | 0.040724 | 0 | 0 | 0 | 0 | 0.013056 | 0.141807 | 2,856 | 95 | 111 | 30.063158 | 0.708282 | 0.189776 | 0 | 0.131148 | 0 | 0.016393 | 0.310345 | 0.065474 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.016393 | false | 0 | 0.098361 | 0.016393 | 0.131148 | 0.278689 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c057fedb366312b177a641ff58263c1306ced823 | 937 | py | Python | Compiler Design Lab/ChocoPy_LLVM_Compiler/compiler/astnodes/vardef.py | Abhishek-Aditya-bs/Lab-Projects-and-Assignments | fd2681a1c7453367a4df1790e58afb312f13998c | [
"MIT"
] | null | null | null | Compiler Design Lab/ChocoPy_LLVM_Compiler/compiler/astnodes/vardef.py | Abhishek-Aditya-bs/Lab-Projects-and-Assignments | fd2681a1c7453367a4df1790e58afb312f13998c | [
"MIT"
] | null | null | null | Compiler Design Lab/ChocoPy_LLVM_Compiler/compiler/astnodes/vardef.py | Abhishek-Aditya-bs/Lab-Projects-and-Assignments | fd2681a1c7453367a4df1790e58afb312f13998c | [
"MIT"
] | null | null | null | from .declaration import Declaration
from .expr import Expr
from .typedvar import TypedVar
from typing import List
class VarDef(Declaration):
def __init__(
self, location: List[int], var: TypedVar, value: Expr, isAttr: bool = False
):
super().__init__(location, "VarDef")
self.var = var... | 26.027778 | 83 | 0.638207 | 112 | 937 | 5.232143 | 0.276786 | 0.068259 | 0.087031 | 0.071672 | 0.170648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258271 | 937 | 35 | 84 | 26.771429 | 0.843165 | 0 | 0 | 0.142857 | 0 | 0 | 0.014941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c059000b140fbe747df59b3b9d99890f4804532a | 708 | py | Python | 086_defocus-deblurring-dual-pixel/01_h5_to_saved_model.py | IgiArdiyanto/PINTO_model_zoo | 9247b56a7dff37f28a8a7822a7ef4dd9adf7234d | [
"MIT"
] | 1,529 | 2019-12-11T13:36:23.000Z | 2022-03-31T18:38:27.000Z | 086_defocus-deblurring-dual-pixel/01_h5_to_saved_model.py | IgiArdiyanto/PINTO_model_zoo | 9247b56a7dff37f28a8a7822a7ef4dd9adf7234d | [
"MIT"
] | 200 | 2020-01-06T09:24:42.000Z | 2022-03-31T17:29:08.000Z | 086_defocus-deblurring-dual-pixel/01_h5_to_saved_model.py | IgiArdiyanto/PINTO_model_zoo | 9247b56a7dff37f28a8a7822a7ef4dd9adf7234d | [
"MIT"
] | 288 | 2020-02-21T14:56:02.000Z | 2022-03-30T03:00:35.000Z | import tensorflow as tf
from tensorflow.keras.models import load_model
model = load_model('defocus_deblurring_dp_l5_s512_f0.7_d0.4.hdf5')
tf.saved_model.save(model, 'saved_model')
'''
$ saved_model_cli show --dir saved_model --tag_set serve --signature_def serving_default
The given SavedModel SignatureDef contains t... | 33.714286 | 88 | 0.75 | 104 | 708 | 4.865385 | 0.576923 | 0.079051 | 0.059289 | 0.118577 | 0.332016 | 0.332016 | 0.332016 | 0.134387 | 0.134387 | 0 | 0 | 0.053333 | 0.152542 | 708 | 21 | 89 | 33.714286 | 0.79 | 0 | 0 | 0 | 0 | 0 | 0.300546 | 0.240437 | 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 |
c05ce99c5551df4a4328e21b092feb7909e6eb37 | 273 | py | Python | supervised_learning/0x02-tensorflow/3-calculate_accuracy.py | Naouali/holbertonschool-machine_learning | 60b7d50cd385bdf9c1372b6004308eec408d2670 | [
"MIT"
] | null | null | null | supervised_learning/0x02-tensorflow/3-calculate_accuracy.py | Naouali/holbertonschool-machine_learning | 60b7d50cd385bdf9c1372b6004308eec408d2670 | [
"MIT"
] | null | null | null | supervised_learning/0x02-tensorflow/3-calculate_accuracy.py | Naouali/holbertonschool-machine_learning | 60b7d50cd385bdf9c1372b6004308eec408d2670 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
calcualte accuracy
"""
import tensorflow as tf
def calculate_accuracy(y, y_pred):
"""
accuarcy function
"""
eq = tf.equal(tf.argmax(y_pred, 1), tf.argmax(y, 1))
acc = tf.reduce_mean(tf.cast(eq, tf.float32))
return acc
| 16.058824 | 56 | 0.6337 | 41 | 273 | 4.121951 | 0.634146 | 0.059172 | 0.106509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023148 | 0.208791 | 273 | 16 | 57 | 17.0625 | 0.759259 | 0.212454 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c05f1e17fe09ef7fd4f2eb29f937f0d6dffefa19 | 3,167 | py | Python | qikify/tests/test_controllers.py | brucedispassion/qikify | ed1384a1cbaf57fe4d570937e8a5859ab0858fde | [
"MIT"
] | 1 | 2019-09-07T12:16:12.000Z | 2019-09-07T12:16:12.000Z | qikify/tests/test_controllers.py | brucedispassion/qikify | ed1384a1cbaf57fe4d570937e8a5859ab0858fde | [
"MIT"
] | null | null | null | qikify/tests/test_controllers.py | brucedispassion/qikify | ed1384a1cbaf57fe4d570937e8a5859ab0858fde | [
"MIT"
] | 4 | 2017-01-09T02:44:43.000Z | 2022-02-15T03:30:32.000Z | import pandas
import numpy as np
from scipy.stats.stats import kurtosis
from scipy import c_, r_
from qikify.helpers.identify_outliers import identify_outliers
from qikify.controllers.KNN import KNN
from qikify.controllers.KDE import KDE
from qikify.controllers.LSFS import LSFS
from qikify.models.chip import Chip
fro... | 35.58427 | 79 | 0.619198 | 498 | 3,167 | 3.869478 | 0.323293 | 0.031136 | 0.037364 | 0.026985 | 0.154645 | 0.146341 | 0.117281 | 0.117281 | 0.080955 | 0.055008 | 0 | 0.057414 | 0.235554 | 3,167 | 88 | 80 | 35.988636 | 0.738538 | 0.253237 | 0 | 0 | 0 | 0 | 0.042888 | 0 | 0 | 0 | 0 | 0.022727 | 0.173077 | 1 | 0.076923 | false | 0 | 0.192308 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c062f35d90e5f762960e113eb934646bd47cdd6c | 1,309 | py | Python | src/example.py | kevinhillinger/resource-manager-python-manage-container-instances | 32c59a0b2fbb4cab1ac44c5181a0ec615b559872 | [
"MIT"
] | 1 | 2017-10-07T00:24:29.000Z | 2017-10-07T00:24:29.000Z | src/example.py | kevinhillinger/resource-manager-python-manage-container-instances | 32c59a0b2fbb4cab1ac44c5181a0ec615b559872 | [
"MIT"
] | null | null | null | src/example.py | kevinhillinger/resource-manager-python-manage-container-instances | 32c59a0b2fbb4cab1ac44c5181a0ec615b559872 | [
"MIT"
] | null | null | null | from haikunator import Haikunator
from common import AzureContext
from management import ContainerInstanceManager
# TODO: document this
haikunator = Haikunator()
def create_manager():
""" Creates the sample container instance manager (found in ./management).
remarks:
see README for information on ob... | 27.851064 | 121 | 0.689076 | 145 | 1,309 | 6.075862 | 0.524138 | 0.027242 | 0.057889 | 0.036322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009681 | 0.210848 | 1,309 | 46 | 122 | 28.456522 | 0.843175 | 0.317036 | 0 | 0 | 0 | 0 | 0.181287 | 0.038596 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.083333 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c0640ad585dccac9e256901a1cceba464c2526b2 | 282 | py | Python | aialm/agent.py | marvinren/aiautomation | 639f57f502104dd170dca24dd9ff15d80c031e21 | [
"MIT"
] | null | null | null | aialm/agent.py | marvinren/aiautomation | 639f57f502104dd170dca24dd9ff15d80c031e21 | [
"MIT"
] | null | null | null | aialm/agent.py | marvinren/aiautomation | 639f57f502104dd170dca24dd9ff15d80c031e21 | [
"MIT"
] | null | null | null | # coding:utf-8
from aiautomation.agent.agent import Agent
from aiautomation.utils.config import Config
import sys
import os
sys.path.insert(0, os.getcwd() + "/../")
config = Config("./config.yml")
agent = Agent(config)
agent.report_timer_thread_start()
agent.start_task_receive()
| 21.692308 | 44 | 0.762411 | 41 | 282 | 5.121951 | 0.536585 | 0.152381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.099291 | 282 | 12 | 45 | 23.5 | 0.818898 | 0.042553 | 0 | 0 | 0 | 0 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c064acf6cb7a4e6d795daca92a67076be48a640a | 8,349 | py | Python | ui/widgets/subpages/page2_x/pageUI.py | ArcherLuo233/election-s-prediction | 9da72cb855f6d61f9cdec6e15f7ca832629ba51a | [
"MIT"
] | null | null | null | ui/widgets/subpages/page2_x/pageUI.py | ArcherLuo233/election-s-prediction | 9da72cb855f6d61f9cdec6e15f7ca832629ba51a | [
"MIT"
] | 1 | 2022-01-26T01:23:26.000Z | 2022-01-26T01:23:34.000Z | ui/widgets/subpages/page2_x/pageUI.py | ArcherLuo233/election-s-prediction | 9da72cb855f6d61f9cdec6e15f7ca832629ba51a | [
"MIT"
] | 1 | 2021-11-08T10:58:23.000Z | 2021-11-08T10:58:23.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'page.ui'
#
# Created by: PyQt5 UI code generator 5.15.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, ... | 43.942105 | 115 | 0.674811 | 868 | 8,349 | 6.397465 | 0.184332 | 0.099946 | 0.057627 | 0.038898 | 0.515217 | 0.462633 | 0.395642 | 0.328111 | 0.321448 | 0.30344 | 0 | 0.019175 | 0.21296 | 8,349 | 189 | 116 | 44.174603 | 0.825902 | 0.032219 | 0 | 0.411429 | 1 | 0 | 0.042245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011429 | false | 0 | 0.005714 | 0 | 0.022857 | 0 | 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 |
c06b95de43602d7d6a2ce7c1da611554eece708b | 889 | py | Python | cloudmesh/oracle/command/oracle.py | asingam2017/cloudmesh-oracle | 09b897c756a94f6babd0ad4ff1007556037643d4 | [
"Apache-2.0"
] | null | null | null | cloudmesh/oracle/command/oracle.py | asingam2017/cloudmesh-oracle | 09b897c756a94f6babd0ad4ff1007556037643d4 | [
"Apache-2.0"
] | null | null | null | cloudmesh/oracle/command/oracle.py | asingam2017/cloudmesh-oracle | 09b897c756a94f6babd0ad4ff1007556037643d4 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from cloudmesh.common.console import Console
from cloudmesh.common.debug import VERBOSE
from cloudmesh.shell.command import PluginCommand
from cloudmesh.shell.command import command
class OracleCommand(PluginCommand):
# noinspection PyUnusedLocal
@command
def do_ora... | 21.166667 | 52 | 0.588301 | 91 | 889 | 5.681319 | 0.516484 | 0.10058 | 0.073501 | 0.096712 | 0.119923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.340832 | 889 | 41 | 53 | 21.682927 | 0.882253 | 0.231721 | 0 | 0 | 0 | 0 | 0.072391 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.5 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fbe54516e50e6861849254e70b02edf77dc1682e | 616 | py | Python | push_estimation/pushestpy/examples/visualizeRealPushGraphSoln.py | psodhi/tactile-pushing | 970dc02da5aca5c34444e5ae99554ca596f72fc8 | [
"BSD-3-Clause"
] | 6 | 2021-08-11T19:35:04.000Z | 2021-12-05T22:03:28.000Z | push_estimation/pushestpy/examples/visualizeRealPushGraphSoln.py | psodhi/tactile-pushing | 970dc02da5aca5c34444e5ae99554ca596f72fc8 | [
"BSD-3-Clause"
] | null | null | null | push_estimation/pushestpy/examples/visualizeRealPushGraphSoln.py | psodhi/tactile-pushing | 970dc02da5aca5c34444e5ae99554ca596f72fc8 | [
"BSD-3-Clause"
] | 1 | 2022-03-02T11:59:25.000Z | 2022-03-02T11:59:25.000Z | #!/usr/bin/env python
# Copyright (c) Facebook, Inc. and its affiliates.
import sys
sys.path.append("/usr/local/cython/")
import hydra
import pickle as pkl
import os
import math
import numpy as np
import matplotlib.pyplot as plt
import pushestpy.eval.qual_visualizer as qviz
BASE_PATH = os.path.abspath(os.path.join(... | 21.241379 | 77 | 0.741883 | 97 | 616 | 4.443299 | 0.546392 | 0.074246 | 0.046404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131494 | 616 | 28 | 78 | 22 | 0.805607 | 0.112013 | 0 | 0 | 0 | 0 | 0.12844 | 0.07156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.444444 | 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 |
fbf5a3f34946ff8618671b782d5f519469f1373d | 584 | py | Python | Easy/Strings/find-a-string-English.py | fotisk07/Hacker-Rank-Python | 0f94302afe4104e48baacbc995d157da7fbc076a | [
"MIT"
] | 3 | 2020-09-23T15:13:18.000Z | 2021-12-21T07:36:22.000Z | Easy/Strings/find-a-string-English.py | fotisk07/Hacker-Rank-Python | 0f94302afe4104e48baacbc995d157da7fbc076a | [
"MIT"
] | null | null | null | Easy/Strings/find-a-string-English.py | fotisk07/Hacker-Rank-Python | 0f94302afe4104e48baacbc995d157da7fbc076a | [
"MIT"
] | 3 | 2018-12-04T19:33:42.000Z | 2021-04-05T15:57:29.000Z | def count_substring(string, sub_string):
count=0
#print(len(string),len(sub_string))
for i in range(0, len(string)-len(sub_string)+1):
if string[i] == sub_string[0]:
flag=1
for j in range (0, len(sub_string)):
if string[i+j] != sub_string[j]:
... | 27.809524 | 53 | 0.525685 | 76 | 584 | 3.802632 | 0.289474 | 0.249135 | 0.124567 | 0.15917 | 0.346021 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023622 | 0.347603 | 584 | 20 | 54 | 29.2 | 0.734908 | 0.058219 | 0 | 0 | 0 | 0 | 0.014572 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.117647 | 0.058824 | 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 |
fbf5ad73f3f654a70e25d398a7bde65719a6fcee | 1,903 | py | Python | toolkit/apps/fabfile/server.py | CCE-IT/cce-toolkit | a3dc470bd8fd3f01615ff57198dfefc88d3aa50c | [
"BSD-3-Clause"
] | 8 | 2016-06-23T14:41:26.000Z | 2018-07-06T17:54:08.000Z | toolkit/apps/fabfile/server.py | cceit/cce-toolkit | a3dc470bd8fd3f01615ff57198dfefc88d3aa50c | [
"BSD-3-Clause"
] | null | null | null | toolkit/apps/fabfile/server.py | cceit/cce-toolkit | a3dc470bd8fd3f01615ff57198dfefc88d3aa50c | [
"BSD-3-Clause"
] | null | null | null | from .environment import __exec_cmd, __exec_setup_cmd
from .env_settings import project_name, git_link
from fabric.state import env
from .git_tools import git_checkout
def setup_project():
"""
Initial setup of service account, environment and repo
"""
create_service_account(project_name)
initial_p... | 27.985294 | 79 | 0.682081 | 243 | 1,903 | 5.016461 | 0.296296 | 0.07219 | 0.068909 | 0.049221 | 0.255127 | 0.208368 | 0.183757 | 0.159147 | 0.090238 | 0.090238 | 0 | 0 | 0.197057 | 1,903 | 67 | 80 | 28.402985 | 0.797775 | 0.172885 | 0 | 0.125 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0.03125 | 0.125 | 0 | 0.34375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fbf62f1037c9c2d854c1e44c15fe08f3828e841e | 3,442 | py | Python | Arduino Robot/PC_Clients/PythonRobotController/DirectPublishClient/DirectPublishClient.py | wso2-incubator/device-cloud-appliances | c91229cede8f0a302446a4ad0aaba7cfd86898cc | [
"Apache-2.0"
] | null | null | null | Arduino Robot/PC_Clients/PythonRobotController/DirectPublishClient/DirectPublishClient.py | wso2-incubator/device-cloud-appliances | c91229cede8f0a302446a4ad0aaba7cfd86898cc | [
"Apache-2.0"
] | null | null | null | Arduino Robot/PC_Clients/PythonRobotController/DirectPublishClient/DirectPublishClient.py | wso2-incubator/device-cloud-appliances | c91229cede8f0a302446a4ad0aaba7cfd86898cc | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
import termios, fcntl, sys, os
sys.path.append('BAMPythonPublisher')
sys.path.append('BAMPythonPublisher/gen-py')
from Publisher import *
from BAMPublisher import *
import serial
import time
import datetime
import thread
import time
BAM_IP = 'localhost' # IP address of the BAM/CEP server
BAM... | 27.536 | 525 | 0.651947 | 425 | 3,442 | 5.204706 | 0.428235 | 0.031646 | 0.037975 | 0.017631 | 0.034358 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016837 | 0.206275 | 3,442 | 124 | 526 | 27.758065 | 0.792826 | 0.141778 | 0 | 0.091954 | 0 | 0.011494 | 0.25655 | 0.145288 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022989 | 0.091954 | null | null | 0.08046 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
fbf91ff772891f9c67bc80394bcea2a4adf6bcf4 | 990 | py | Python | Python-Django scripts/list_HOBO_datasetContents.py | McDowellLab/ODM2queriesAndCZManagerScripts | bb17b9e14f31ef040aeb4c5140ea0d8ab861b591 | [
"MIT"
] | null | null | null | Python-Django scripts/list_HOBO_datasetContents.py | McDowellLab/ODM2queriesAndCZManagerScripts | bb17b9e14f31ef040aeb4c5140ea0d8ab861b591 | [
"MIT"
] | null | null | null | Python-Django scripts/list_HOBO_datasetContents.py | McDowellLab/ODM2queriesAndCZManagerScripts | bb17b9e14f31ef040aeb4c5140ea0d8ab861b591 | [
"MIT"
] | null | null | null |
import os
import csv
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "templatesAndSettings.settings.developmentNO")
application = get_wsgi_application()
from django.db.models import Q
import re
from django.core.exceptions import ObjectDoesNotExist
import datetime
from... | 31.935484 | 106 | 0.79899 | 124 | 990 | 6.298387 | 0.459677 | 0.051216 | 0.035851 | 0.046095 | 0.06146 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008009 | 0.117172 | 990 | 31 | 107 | 31.935484 | 0.885584 | 0.033333 | 0 | 0 | 0 | 0 | 0.07652 | 0.068134 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.48 | 0 | 0.48 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
fbfb097beedeaa11553b1d907589e881648c5e39 | 6,686 | py | Python | ratatosk/lib/annotation/annovar.py | percyfal/ratatosk | 71ee4741952219c1fccf9cb6c172a354610d499c | [
"Apache-2.0"
] | 6 | 2015-07-13T16:58:27.000Z | 2016-09-01T11:56:30.000Z | ratatosk/lib/annotation/annovar.py | percyfal/ratatosk | 71ee4741952219c1fccf9cb6c172a354610d499c | [
"Apache-2.0"
] | null | null | null | ratatosk/lib/annotation/annovar.py | percyfal/ratatosk | 71ee4741952219c1fccf9cb6c172a354610d499c | [
"Apache-2.0"
] | 4 | 2015-01-14T06:49:34.000Z | 2019-05-11T23:43:50.000Z | # Copyright (c) 2013 Per Unneberg
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 44.872483 | 192 | 0.676937 | 780 | 6,686 | 5.741026 | 0.266667 | 0.075034 | 0.11255 | 0.031264 | 0.319562 | 0.269763 | 0.194506 | 0.161679 | 0.078607 | 0.032604 | 0 | 0.018347 | 0.19294 | 6,686 | 148 | 193 | 45.175676 | 0.811527 | 0.121897 | 0 | 0.182692 | 0 | 0.057692 | 0.250513 | 0.026676 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105769 | false | 0.038462 | 0.086538 | 0.048077 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
22081eae26bca5d89789c756dbbd55ee22abf6df | 544 | py | Python | adafruit-circuitpython-bundle-py-20201107/examples/mprls_simpletest.py | rantler/AdaFruit | 9b0aa56ede9ac358b835162cad4c6531c09ba5b0 | [
"CC0-1.0"
] | 1 | 2020-04-13T16:10:53.000Z | 2020-04-13T16:10:53.000Z | adafruit-circuitpython-bundle-py-20201107/examples/mprls_simpletest.py | rantler/AdaFruit | 9b0aa56ede9ac358b835162cad4c6531c09ba5b0 | [
"CC0-1.0"
] | null | null | null | adafruit-circuitpython-bundle-py-20201107/examples/mprls_simpletest.py | rantler/AdaFruit | 9b0aa56ede9ac358b835162cad4c6531c09ba5b0 | [
"CC0-1.0"
] | null | null | null | import time
import board
import busio
import adafruit_mprls
i2c = busio.I2C(board.SCL, board.SDA)
# Simplest use, connect to default over I2C
mpr = adafruit_mprls.MPRLS(i2c, psi_min=0, psi_max=25)
# You can also specify both reset and eoc pins
"""
import digitalio
reset = digitalio.DigitalInOut(board.D5... | 23.652174 | 62 | 0.681985 | 80 | 544 | 4.525 | 0.5125 | 0.107735 | 0.088398 | 0.116022 | 0.21547 | 0.082873 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.215074 | 544 | 22 | 63 | 24.727273 | 0.814988 | 0.158088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
2211f10ec591c4c43d73e2bc8037e50b8c35c7ca | 4,800 | py | Python | apc_state_machine/state_machine/scripts/updateCollisionState.py | Juxi/apb-baseline | fd47a5fd78cdfd75c68601a40ca4726d7d20c9ce | [
"BSD-3-Clause"
] | 9 | 2017-02-06T10:24:56.000Z | 2022-02-27T20:59:52.000Z | apc_state_machine/state_machine/scripts/updateCollisionState.py | Juxi/apb-baseline | fd47a5fd78cdfd75c68601a40ca4726d7d20c9ce | [
"BSD-3-Clause"
] | null | null | null | apc_state_machine/state_machine/scripts/updateCollisionState.py | Juxi/apb-baseline | fd47a5fd78cdfd75c68601a40ca4726d7d20c9ce | [
"BSD-3-Clause"
] | 2 | 2017-10-15T08:33:37.000Z | 2019-03-05T07:29:38.000Z | import rospy
import smach
import smach_ros
import mission_plan.srv
from std_msgs.msg import String
from apc_msgs.srv import AttachObjectCollisionModel, AttachObjectCollisionModelRequest
from apc_msgs.srv import DetachObjectCollisionModel, DetachObjectCollisionModelRequest
class UpdateCollisionState(smach.State):
... | 49.484536 | 138 | 0.638542 | 585 | 4,800 | 4.94359 | 0.194872 | 0.052905 | 0.094053 | 0.052559 | 0.581259 | 0.53527 | 0.502075 | 0.482711 | 0.459198 | 0.448133 | 0 | 0.00768 | 0.240417 | 4,800 | 96 | 139 | 50 | 0.785518 | 0.095208 | 0 | 0.323944 | 0 | 0 | 0.260849 | 0.047784 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098592 | 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 |
22138053ea291e27946c00c73ce9bea9d407c1a3 | 5,596 | py | Python | scripts/load_items.py | sumedhpb/testrunner | 9ff887231c75571624abc31a3fb5248110e01203 | [
"Apache-2.0"
] | 14 | 2015-02-06T02:47:57.000Z | 2020-03-14T15:06:05.000Z | scripts/load_items.py | sumedhpb/testrunner | 9ff887231c75571624abc31a3fb5248110e01203 | [
"Apache-2.0"
] | 3 | 2019-02-27T19:29:11.000Z | 2021-06-02T02:14:27.000Z | scripts/load_items.py | sumedhpb/testrunner | 9ff887231c75571624abc31a3fb5248110e01203 | [
"Apache-2.0"
] | 108 | 2015-03-26T08:58:49.000Z | 2022-03-21T05:21:39.000Z | #!/usr/bin/env python
"""Load data into memcached and an on disk key value store."""
import time
import sys
import getopt
import pickle
import uuid
import random
import re
import mc_bin_client
import exceptions
import socket
from memcached.helper.data_helper import VBucketAwareMemcached
from membase.api.rest_client i... | 30.579235 | 128 | 0.550393 | 696 | 5,596 | 4.354885 | 0.24569 | 0.021115 | 0.008248 | 0.034642 | 0.284725 | 0.240845 | 0.240845 | 0.240845 | 0.240845 | 0.240845 | 0 | 0.016981 | 0.326483 | 5,596 | 182 | 129 | 30.747253 | 0.787211 | 0.055575 | 0 | 0.30137 | 0 | 0.006849 | 0.120959 | 0.007037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068493 | false | 0.068493 | 0.082192 | 0.013699 | 0.178082 | 0.068493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
22140234a0d5aae9106ad2fe520cfef8ccde387e | 951 | py | Python | setup.py | WireShoutLLC/piraguel | edbca6338d23735d7e1d6a63273f55851ef76518 | [
"MIT"
] | null | null | null | setup.py | WireShoutLLC/piraguel | edbca6338d23735d7e1d6a63273f55851ef76518 | [
"MIT"
] | null | null | null | setup.py | WireShoutLLC/piraguel | edbca6338d23735d7e1d6a63273f55851ef76518 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
def read_license():
with open("LICENSE") as f:
return f.read()
setup(
name='raguel',
packages=find_packages(),
version='0.1.0',
description='Python implementation of Raguel',
long_description="""Raguel description""",
license=read_lic... | 27.171429 | 71 | 0.607781 | 92 | 951 | 6.195652 | 0.684783 | 0.042105 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.253417 | 951 | 34 | 72 | 27.970588 | 0.795775 | 0 | 0 | 0.125 | 0 | 0 | 0.453207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | true | 0 | 0.03125 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2215052e3d63fb8033901595a2c7907df7b47eb6 | 7,008 | py | Python | dev/ideas/devices/cpp_standalone_run_example.py | rgerkin/brian2 | 34761a58b0d4c2275194e648449419b3dd73286b | [
"BSD-2-Clause"
] | 2 | 2020-03-20T13:30:19.000Z | 2020-03-20T13:30:57.000Z | dev/ideas/devices/cpp_standalone_run_example.py | rgerkin/brian2 | 34761a58b0d4c2275194e648449419b3dd73286b | [
"BSD-2-Clause"
] | null | null | null | dev/ideas/devices/cpp_standalone_run_example.py | rgerkin/brian2 | 34761a58b0d4c2275194e648449419b3dd73286b | [
"BSD-2-Clause"
] | null | null | null | '''
Run standard examples with C++ standalone
Prints some comparison output and plots some side-by-side comparison figures (not the original plots though)
'''
import os, re, shutil, multiprocessing, numpy, time
import traceback
from brian2.devices import device
from pylab import *
only_run_standalone = False
basepa... | 38.933333 | 155 | 0.534532 | 822 | 7,008 | 4.424574 | 0.246959 | 0.027495 | 0.034644 | 0.036294 | 0.315645 | 0.302722 | 0.289249 | 0.270003 | 0.23041 | 0.23041 | 0 | 0.008751 | 0.331478 | 7,008 | 180 | 156 | 38.933333 | 0.767556 | 0.099172 | 0 | 0.364286 | 0 | 0 | 0.133257 | 0.017452 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2218c6e23657efbd54abb802dc2c6030f7f84b2e | 870 | py | Python | setup.py | manics/jupyter-pyfilesystem | b5124aa894e075b5f3954ea80ea0a5e8691ce5cc | [
"MIT"
] | 5 | 2020-01-29T19:40:52.000Z | 2020-05-20T07:19:54.000Z | setup.py | manics/jupyter-pyfilesystem | b5124aa894e075b5f3954ea80ea0a5e8691ce5cc | [
"MIT"
] | null | null | null | setup.py | manics/jupyter-pyfilesystem | b5124aa894e075b5f3954ea80ea0a5e8691ce5cc | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name='jupyter-pyfilesystem',
version='0.0.5',
url='https://github.com/manics/jupyter-pyfilesystem',
author='Simon Li',
license='MIT',
description='Jupyter Notebook PyFilesystem Contents Manager',
long_description=open('README.md').read(),
long_descrip... | 28.064516 | 65 | 0.612644 | 83 | 870 | 6.325301 | 0.674699 | 0.072381 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.236782 | 870 | 30 | 66 | 29 | 0.778614 | 0 | 0 | 0.103448 | 0 | 0 | 0.454023 | 0.025287 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.034483 | 0 | 0.034483 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
221d91dede01b97732716e36ff24d2604c327f86 | 2,620 | py | Python | cog/models/doc.py | downiec/COG | cea8ceac701958b6af8e272698bfb08d89f62bf4 | [
"BSD-3-Clause"
] | 6 | 2016-03-10T19:38:17.000Z | 2021-02-23T09:34:59.000Z | cog/models/doc.py | downiec/COG | cea8ceac701958b6af8e272698bfb08d89f62bf4 | [
"BSD-3-Clause"
] | 602 | 2015-01-05T16:30:08.000Z | 2021-02-02T21:44:38.000Z | cog/models/doc.py | cedadev/COG | 6167f9114c7cf0422b34fb9f5f3f07f9657a7dbe | [
"BSD-3-Clause"
] | 18 | 2015-02-12T15:50:17.000Z | 2021-04-27T16:40:36.000Z | from django.db import models
from constants import APPLICATION_LABEL
from project import Project
from django.contrib.auth.models import User
import os
from django.conf import settings
from django.core.files.storage import FileSystemStorage
def get_upload_path(instance, filename):
"""Function to determine the uplo... | 42.258065 | 124 | 0.706107 | 335 | 2,620 | 5.423881 | 0.468657 | 0.029719 | 0.014309 | 0.038525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008122 | 0.201145 | 2,620 | 61 | 125 | 42.95082 | 0.86001 | 0.197328 | 0 | 0 | 0 | 0 | 0.061404 | 0.021672 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.179487 | null | null | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2227241023281484137e00f8eb4df08ab84d71f2 | 1,057 | py | Python | algoyoga_test.py | larion/algorithm-yoga | 7ab45a806b905ee51d9266822528ac74352bff3d | [
"Apache-2.0"
] | null | null | null | algoyoga_test.py | larion/algorithm-yoga | 7ab45a806b905ee51d9266822528ac74352bff3d | [
"Apache-2.0"
] | null | null | null | algoyoga_test.py | larion/algorithm-yoga | 7ab45a806b905ee51d9266822528ac74352bff3d | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python
class BaseTest(object):
""" Base class for the unit tests in each module. """
def __init__(self, modname, tests):
""" Initialize tester object. Takes a human readable module name and a
list of tests to perform on the module. This method is designed to be
called via s... | 37.75 | 82 | 0.569536 | 137 | 1,057 | 4.284672 | 0.474453 | 0.074957 | 0.040886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001427 | 0.336802 | 1,057 | 27 | 83 | 39.148148 | 0.835949 | 0.080416 | 0 | 0 | 0 | 0 | 0.133047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.277778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2229ba53a6feb823ec7f07d2f4e3d5cffd5fb025 | 1,314 | py | Python | Travel_blog/app/views/create.py | Irinkaaa/Travel_Blog_Django_Project | 6fb746a90bdbc3e08d34ee4693d7f98f70caf5cd | [
"MIT"
] | 1 | 2020-12-10T16:57:48.000Z | 2020-12-10T16:57:48.000Z | Travel_blog/app/views/create.py | Irinkaaa/Travel_Blog_Django_Project | 6fb746a90bdbc3e08d34ee4693d7f98f70caf5cd | [
"MIT"
] | null | null | null | Travel_blog/app/views/create.py | Irinkaaa/Travel_Blog_Django_Project | 6fb746a90bdbc3e08d34ee4693d7f98f70caf5cd | [
"MIT"
] | null | null | null | from Travel_blog.app.forms.create import DestinationFrom
from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse_lazy
from django.views.generic import CreateView
from Travel_blog.app.models import Destination
# def destination_create(request):
# if request.method == 'GET':
# ... | 32.85 | 80 | 0.656773 | 140 | 1,314 | 6.057143 | 0.407143 | 0.080189 | 0.070755 | 0.084906 | 0.117925 | 0.117925 | 0.117925 | 0.117925 | 0 | 0 | 0 | 0 | 0.237443 | 1,314 | 39 | 81 | 33.692308 | 0.846307 | 0.413242 | 0 | 0 | 0 | 0 | 0.06366 | 0.035809 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 0 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
22313bcbbb639b480ddf3600ba30943fad68e9b1 | 8,704 | py | Python | JLDiff.py | JEdward7777/JLDiff | 7a9fa496128d72524c94c5f659160fec7c0c3f1d | [
"BSD-2-Clause"
] | 1 | 2017-01-11T03:02:04.000Z | 2017-01-11T03:02:04.000Z | JLDiff.py | JEdward7777/JLDiff | 7a9fa496128d72524c94c5f659160fec7c0c3f1d | [
"BSD-2-Clause"
] | 3 | 2017-11-16T17:38:01.000Z | 2017-11-18T17:33:13.000Z | JLDiff.py | JEdward7777/JLDiff | 7a9fa496128d72524c94c5f659160fec7c0c3f1d | [
"BSD-2-Clause"
] | 1 | 2017-11-17T03:11:33.000Z | 2017-11-17T03:11:33.000Z | #!/usr/bin/python
#Copyright (c) 2016, Joshua Lansford @ LaserLinc
#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
# ... | 35.672131 | 119 | 0.543658 | 856 | 8,704 | 5.450935 | 0.286215 | 0.038577 | 0.030647 | 0.038577 | 0.330047 | 0.267467 | 0.195242 | 0.170381 | 0.149378 | 0.149378 | 0 | 0.013919 | 0.372702 | 8,704 | 243 | 120 | 35.81893 | 0.840659 | 0.169118 | 0 | 0.377143 | 0 | 0 | 0.072578 | 0.010963 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.051429 | 0.034286 | 0 | 0.091429 | 0.017143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
22341e52117914f203e3635948a336746eb78948 | 23,289 | py | Python | evalml/tests/utils_tests/test_gen_utils.py | BlockchainClimateInstitute/price_microservice | 11d1cff8965fe1befc997e9da3dc09efceed4579 | [
"BSD-3-Clause"
] | null | null | null | evalml/tests/utils_tests/test_gen_utils.py | BlockchainClimateInstitute/price_microservice | 11d1cff8965fe1befc997e9da3dc09efceed4579 | [
"BSD-3-Clause"
] | null | null | null | evalml/tests/utils_tests/test_gen_utils.py | BlockchainClimateInstitute/price_microservice | 11d1cff8965fe1befc997e9da3dc09efceed4579 | [
"BSD-3-Clause"
] | null | null | null | import inspect
import os
import warnings
from unittest.mock import MagicMock, patch
import numpy as np
import pandas as pd
import pytest
import woodwork as ww
from evalml.model_understanding.graphs import visualize_decision_tree
from evalml.pipelines.components import ComponentBase
from evalml.utils.gen_utils import ... | 47.143725 | 156 | 0.654129 | 2,955 | 23,289 | 4.84467 | 0.102538 | 0.030176 | 0.029966 | 0.034926 | 0.763272 | 0.7266 | 0.678681 | 0.632509 | 0.615605 | 0.597583 | 0 | 0.017808 | 0.230839 | 23,289 | 493 | 157 | 47.239351 | 0.781388 | 0.021856 | 0 | 0.38961 | 0 | 0 | 0.097045 | 0.019629 | 0 | 0 | 0 | 0 | 0.233766 | 1 | 0.096104 | false | 0.002597 | 0.137662 | 0.007792 | 0.264935 | 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 |
223a27008df892361cbf0e0214a08966d5284153 | 1,400 | py | Python | personal_portfolio/urls.py | sanaullahaq/personal_portfolio | 5e1c96d47400ae1c94b85f4af3d7ac0a63eaec7d | [
"MIT"
] | 2 | 2020-10-28T05:00:13.000Z | 2020-10-28T05:05:29.000Z | personal_portfolio/urls.py | sanaullahaq/personal_portfolio | 5e1c96d47400ae1c94b85f4af3d7ac0a63eaec7d | [
"MIT"
] | 8 | 2021-03-30T14:11:35.000Z | 2022-01-13T03:12:57.000Z | personal_portfolio/urls.py | sanaullahaq/personal_portfolio | 5e1c96d47400ae1c94b85f4af3d7ac0a63eaec7d | [
"MIT"
] | null | null | null | """personal_portfolio URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | 41.176471 | 115 | 0.71 | 209 | 1,400 | 4.722488 | 0.440191 | 0.050659 | 0.015198 | 0.024316 | 0.199595 | 0.118541 | 0.075988 | 0 | 0 | 0 | 0 | 0.00708 | 0.192857 | 1,400 | 33 | 116 | 42.424242 | 0.866372 | 0.517143 | 0 | 0 | 0 | 0 | 0.055046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.454545 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
223cab3b49b9a8581960800593a0e749455c08bb | 492 | py | Python | src/test_kernels.py | garydoranjr/mikernels | 9979631e57858eb21a5121c6e99cfa892c4944ad | [
"BSD-3-Clause"
] | null | null | null | src/test_kernels.py | garydoranjr/mikernels | 9979631e57858eb21a5121c6e99cfa892c4944ad | [
"BSD-3-Clause"
] | null | null | null | src/test_kernels.py | garydoranjr/mikernels | 9979631e57858eb21a5121c6e99cfa892c4944ad | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""
Script for testing kernel code before
running the experimental code.
"""
import numpy as np
from data import get_dataset
import kernel
def is_pos_def(K):
return np.all(np.linalg.eigvals(K) > 0)
def test_nsk(B):
k = kernel.by_name('nsk', base_kernel='rbf', gamma=1e-1, normalization='... | 18.923077 | 87 | 0.672764 | 80 | 492 | 3.9125 | 0.5875 | 0.063898 | 0.051118 | 0.057508 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01005 | 0.191057 | 492 | 25 | 88 | 19.68 | 0.776382 | 0.04065 | 0 | 0 | 0 | 0 | 0.070886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
223d0818e3df2eaccfdcc28d472105f13e1580bb | 39,520 | py | Python | chill/examples/cuda-chill/testcases/cudaize.py | CompOpt4Apps/Artifact-DataDepSimplify | 4fa1bf2bda2902fec50a54ee79ae405a554fc9f4 | [
"MIT"
] | 5 | 2019-05-20T03:35:41.000Z | 2021-09-16T22:22:13.000Z | chill/examples/cuda-chill/testcases/cudaize.py | CompOpt4Apps/Artifact-DataDepSimplify | 4fa1bf2bda2902fec50a54ee79ae405a554fc9f4 | [
"MIT"
] | null | null | null | chill/examples/cuda-chill/testcases/cudaize.py | CompOpt4Apps/Artifact-DataDepSimplify | 4fa1bf2bda2902fec50a54ee79ae405a554fc9f4 | [
"MIT"
] | null | null | null | #! /usr/bin/python
# THIS IS CUDAIZE.PY
import chill
import sys
import math
strided = 0
counted = 1
def print_code():
chill.print_code()
print ""
sys.stdout.flush()
def table_contains_key( table, key ): # use a dict for the 'table'?
return table.has_key(key) # (key in table)?
def print_arra... | 38.146718 | 174 | 0.527758 | 5,209 | 39,520 | 3.82511 | 0.084085 | 0.034931 | 0.045169 | 0.057817 | 0.469561 | 0.386851 | 0.302434 | 0.23729 | 0.18665 | 0.162911 | 0 | 0.014777 | 0.354453 | 39,520 | 1,035 | 175 | 38.183575 | 0.766228 | 0.388259 | 0 | 0.334831 | 0 | 0 | 0.053506 | 0.00097 | 0 | 0 | 0 | 0.001932 | 0 | 0 | null | null | 0.029213 | 0.006742 | null | null | 0.125843 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
223d718ad57bbaa699ee6832866a8d16374bfca7 | 675 | py | Python | tests/test_common.py | astropenguin/aste-xffts-merge | 48e87cbff94ebdfa98872d3839153553333fd4ab | [
"MIT"
] | null | null | null | tests/test_common.py | astropenguin/aste-xffts-merge | 48e87cbff94ebdfa98872d3839153553333fd4ab | [
"MIT"
] | 6 | 2021-07-28T06:48:39.000Z | 2021-10-09T14:39:00.000Z | tests/test_common.py | astropenguin/aste-xffts-merge | 48e87cbff94ebdfa98872d3839153553333fd4ab | [
"MIT"
] | null | null | null | # dependencies
import numpy as np
import pandas as pd
from xarray_dataclasses import asdataarray
# submodules
from aste_xffts_merge.common import Time, Chan
# test data
time = asdataarray(Time(pd.date_range("2000-01-01", periods=5)))
chan = asdataarray(Chan(np.arange(5)))
# test functions
def test_time_axis() -> ... | 23.275862 | 64 | 0.69037 | 98 | 675 | 4.632653 | 0.44898 | 0.088106 | 0.061674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023297 | 0.173333 | 675 | 28 | 65 | 24.107143 | 0.790323 | 0.071111 | 0 | 0 | 0 | 0 | 0.098071 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
223f3fc7d2a08ac643631ff03ce75dbfe33139bc | 1,084 | py | Python | conanfile.py | Templar-von-Midgard/libyaml-conan | 2cdcd7e86dfb6d6e8e8cc9bb25b1f8770d852d5e | [
"MIT"
] | null | null | null | conanfile.py | Templar-von-Midgard/libyaml-conan | 2cdcd7e86dfb6d6e8e8cc9bb25b1f8770d852d5e | [
"MIT"
] | null | null | null | conanfile.py | Templar-von-Midgard/libyaml-conan | 2cdcd7e86dfb6d6e8e8cc9bb25b1f8770d852d5e | [
"MIT"
] | null | null | null | from conans import ConanFile, CMake, tools
class LibyamlConan(ConanFile):
name = 'libyaml'
version = '0.2.2'
license = 'MIT'
author = 'Csonkás Kristóf Gyula csonkas.kristof@gmail.com'
url = 'https://github.com/Templar-von-Midgard/libyaml-conan'
description = 'LibYAML is a YAML parser and emitt... | 27.794872 | 77 | 0.623616 | 130 | 1,084 | 5.130769 | 0.561538 | 0.044978 | 0.041979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003645 | 0.240775 | 1,084 | 38 | 78 | 28.526316 | 0.806804 | 0 | 0 | 0 | 0 | 0 | 0.256458 | 0.023063 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0.032258 | 0.032258 | 0 | 0.580645 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2240e90cb27cb42dfade742291d1f2b3edd46ad6 | 231 | py | Python | wima/__init__.py | martyanov/wima | b9c7e4deefa0e962d2a63a3d18cdf14162e8d3b2 | [
"MIT"
] | null | null | null | wima/__init__.py | martyanov/wima | b9c7e4deefa0e962d2a63a3d18cdf14162e8d3b2 | [
"MIT"
] | null | null | null | wima/__init__.py | martyanov/wima | b9c7e4deefa0e962d2a63a3d18cdf14162e8d3b2 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
wima
====
Simple analytics for your projects.
:copyright: Copyright (c) 2014 Andrey Martyanov. All rights reserved.
:license: MIT, see LICENSE for more details.
"""
__version__ = '0.1.0'
| 16.5 | 73 | 0.636364 | 29 | 231 | 4.931034 | 0.862069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.238095 | 231 | 13 | 74 | 17.769231 | 0.767045 | 0.766234 | 0 | 0 | 0 | 0 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2244d763c48f1a720a1ccb5057cefa770ea41f39 | 892 | py | Python | parser/team02/proyec/ast/Ast.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/team02/proyec/ast/Ast.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/team02/proyec/ast/Ast.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | class Ast:
def __init__(self,sentencias):
self.labels = []
self.sentencias = sentencias
def exist_label(self,id):
for label in self.labels:
comparacion = label.id == id.id
if(comparacion):
return True
return False
def next... | 24.777778 | 50 | 0.485426 | 97 | 892 | 4.412371 | 0.28866 | 0.186916 | 0.070093 | 0.098131 | 0.182243 | 0.135514 | 0.135514 | 0.135514 | 0 | 0 | 0 | 0.007767 | 0.422646 | 892 | 35 | 51 | 25.485714 | 0.823301 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0 | 0.035714 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22463bc337fa4f7f1a4089a239ac958234602156 | 916 | py | Python | lib/network.py | Blacksorceres/KitHack | 7179dae13a9606a108a7b600b08286ab763083e6 | [
"MIT"
] | 1 | 2020-04-08T10:20:21.000Z | 2020-04-08T10:20:21.000Z | lib/network.py | Blacksorceres/KitHack | 7179dae13a9606a108a7b600b08286ab763083e6 | [
"MIT"
] | null | null | null | lib/network.py | Blacksorceres/KitHack | 7179dae13a9606a108a7b600b08286ab763083e6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#Copyright 2019 KITHACK
#Written by: Adrian Guillermo
#Facebook: Adrian Guillero
#Github: https://www.github.com/AdrMXR
import socket
import urllib
import uuid
print("\033[1;32m")
def local():
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
try:
s.co... | 20.818182 | 69 | 0.573144 | 129 | 916 | 4.03876 | 0.581395 | 0.046065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06867 | 0.2369 | 916 | 44 | 70 | 20.818182 | 0.676681 | 0.168122 | 0 | 0 | 0 | 0 | 0.153236 | 0 | 0 | 0 | 0.005284 | 0 | 0 | 0 | null | null | 0 | 0.1 | 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 |
224e95f23f757e96085a35c9923ef1460ba5cf82 | 5,407 | py | Python | coro/ssh/scp/__init__.py | mkushnir/shrapnel | ec85cefcd85e2a7e613375f4a37a80fa59cab135 | [
"MIT"
] | null | null | null | coro/ssh/scp/__init__.py | mkushnir/shrapnel | ec85cefcd85e2a7e613375f4a37a80fa59cab135 | [
"MIT"
] | null | null | null | coro/ssh/scp/__init__.py | mkushnir/shrapnel | ec85cefcd85e2a7e613375f4a37a80fa59cab135 | [
"MIT"
] | null | null | null | # Copyright (c) 2002-2012 IronPort Systems and Cisco Systems
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, mod... | 36.046667 | 79 | 0.694655 | 821 | 5,407 | 4.565164 | 0.350792 | 0.014674 | 0.017343 | 0.016009 | 0.160619 | 0.128869 | 0.11286 | 0.093116 | 0.082177 | 0.082177 | 0 | 0.005981 | 0.226928 | 5,407 | 149 | 80 | 36.288591 | 0.89067 | 0.98428 | 0 | 0 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
225111f2d9d04f852f1bc5f810edcc5426b75058 | 3,849 | py | Python | client/python/loss_nndemo1.py | zeehun/Crowd-ML | e6d8ed3da7f5454e72cd19a7e48d8521157690e7 | [
"Apache-2.0"
] | 17 | 2016-09-30T14:56:32.000Z | 2022-01-13T07:50:06.000Z | client/python/loss_nndemo1.py | zeehun/Crowd-ML | e6d8ed3da7f5454e72cd19a7e48d8521157690e7 | [
"Apache-2.0"
] | 26 | 2016-10-18T19:11:22.000Z | 2018-01-22T16:26:12.000Z | client/python/loss_nndemo1.py | zeehun/Crowd-ML | e6d8ed3da7f5454e72cd19a7e48d8521157690e7 | [
"Apache-2.0"
] | 10 | 2016-10-19T00:47:37.000Z | 2020-03-09T17:58:54.000Z | import numpy as np
from scipy.optimize import check_grad
## Two-layer NN with ReLU
# Two-layer NN, with 200 units per layer with ReLu ai = max(0,oi)
# X - (W01) - Layer1 - (W12) - Layer2 - (W23) - Output
# ((D+1)*nh) + ((nh+1)*nh) + ((nh+1)*K)
nh = 200
def getAvgGradient(w, X, y, L, K):
[N,D] = X.shape
W01,... | 27.690647 | 125 | 0.539621 | 721 | 3,849 | 2.848821 | 0.145631 | 0.029211 | 0.008763 | 0.011685 | 0.423077 | 0.359299 | 0.334469 | 0.310127 | 0.310127 | 0.274099 | 0 | 0.085432 | 0.236685 | 3,849 | 138 | 126 | 27.891304 | 0.613683 | 0.146272 | 0 | 0.114943 | 0 | 0 | 0.007068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022989 | null | null | 0.091954 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
225123f1b390fe8757641237e3057a325bdc750b | 987 | py | Python | scraper/storage_spiders/khonggiacom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/khonggiacom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/khonggiacom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='block-products']/div[@class='pro-frm-detail']/h1",
'price' : "//div[@class='block-products']/div[@class='pro-frm-detail'... | 36.555556 | 100 | 0.625127 | 125 | 987 | 4.84 | 0.56 | 0.079339 | 0.064463 | 0.104132 | 0.175207 | 0.135537 | 0.135537 | 0.135537 | 0.135537 | 0 | 0 | 0.004662 | 0.130699 | 987 | 26 | 101 | 37.961538 | 0.700466 | 0.121581 | 0 | 0 | 1 | 0.086957 | 0.49537 | 0.31713 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.