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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d34e30b6df787b40a317242e08a1546399c80eb9 | 8,097 | py | Python | Panel_Method_Geometry.py | Prajwal-Prathiksh/Panel_Methods | 387275a2791f616e5cd53e1713c409acc47f8f0a | [
"MIT"
] | 41 | 2019-10-13T02:20:01.000Z | 2022-03-16T10:43:46.000Z | Panel_Method_Geometry.py | wissenschaftler48/Panel_Methods | a7d05d865e90bff36af06451b911bd4fa50df049 | [
"MIT"
] | null | null | null | Panel_Method_Geometry.py | wissenschaftler48/Panel_Methods | a7d05d865e90bff36af06451b911bd4fa50df049 | [
"MIT"
] | 22 | 2019-10-23T12:54:19.000Z | 2022-03-03T06:08:33.000Z | # PANEL METHOD GEOMETRY
# Written by: JoshTheEngineer
# Started: 01/24/19
# Updated: 01/24/19 - Started code in MATLAB
# - Works as expected
# 02/03/19 - Transferred code to Python
# - Works as expected
import numpy as np
import math as m
import matplotlib.pyplot ... | 73.609091 | 130 | 0.350253 | 712 | 8,097 | 3.974719 | 0.266854 | 0.039576 | 0.022968 | 0.040636 | 0.121555 | 0.036042 | 0.036042 | 0.036042 | 0.036042 | 0 | 0 | 0.021681 | 0.584167 | 8,097 | 109 | 131 | 74.284404 | 0.81883 | 0.293813 | 0 | 0.042857 | 0 | 0 | 0.031709 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.057143 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3532d4a503f13f609463ce3c41e79d57d6dff9b | 3,150 | py | Python | dnanexus/rampage/rampage-mad-qc/src/rampage-mad-qc.py | vallurumk/long-rna-seq-pipeline | 9cc6d99df4619ca21ebefaa285f695aa3f8847f3 | [
"MIT"
] | 94 | 2015-03-25T21:58:28.000Z | 2022-03-24T02:30:28.000Z | dnanexus/rampage/rampage-mad-qc/src/rampage-mad-qc.py | jianzuoyi/long-rna-seq-pipeline | 9cc6d99df4619ca21ebefaa285f695aa3f8847f3 | [
"MIT"
] | 7 | 2015-06-22T23:47:29.000Z | 2020-03-05T20:47:50.000Z | dnanexus/rampage/rampage-mad-qc/src/rampage-mad-qc.py | jianzuoyi/long-rna-seq-pipeline | 9cc6d99df4619ca21ebefaa285f695aa3f8847f3 | [
"MIT"
] | 59 | 2015-05-14T22:14:51.000Z | 2021-09-09T04:20:26.000Z | #!/usr/bin/env python
# Runs "mean absolute deviation" QC metrics on two long-RNA-seq gene quantifications
import os, subprocess, json
import dxpy
def divide_on_common(str_a,str_b):
'''Divides each string into [common_prefix,variable_middle,common_ending] and returns as set (parts_a,parts_b).'''
parts_a = [''... | 38.414634 | 118 | 0.656508 | 511 | 3,150 | 3.767123 | 0.270059 | 0.029091 | 0.015584 | 0.016623 | 0.147013 | 0.085195 | 0.064416 | 0.064416 | 0.064416 | 0.064416 | 0 | 0.018987 | 0.19746 | 3,150 | 81 | 119 | 38.888889 | 0.742484 | 0.223175 | 0 | 0 | 0 | 0 | 0.110314 | 0.010762 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.036364 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d355099b9af3cb53c4b8fa91133bf891c0a58578 | 1,009 | py | Python | survol/ontologies/WMI_RDFS.py | rchateauneu/survol | ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78 | [
"BSD-3-Clause"
] | 9 | 2017-10-05T23:36:23.000Z | 2021-08-09T15:40:03.000Z | survol/ontologies/WMI_RDFS.py | rchateauneu/survol | ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78 | [
"BSD-3-Clause"
] | 21 | 2018-01-02T09:33:03.000Z | 2018-08-27T11:09:52.000Z | survol/ontologies/WMI_RDFS.py | rchateauneu/survol | ba66d3ec453b2d9dd3a8dabc6d53f71aa9ba8c78 | [
"BSD-3-Clause"
] | 4 | 2018-06-23T09:05:45.000Z | 2021-01-22T15:36:50.000Z | #!/usr/bin/env python
"""Displays the WMI classes and attributes of this Windows machine."""
# This creates an RDFS ontology out of the WMI classes of a Windows machine.
# It does not depend on a Survol installation.
# However, its classes and properties will overlap Survol's if it is installed.
# Also, because they... | 30.575758 | 107 | 0.755203 | 149 | 1,009 | 4.872483 | 0.590604 | 0.049587 | 0.035813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010601 | 0.158573 | 1,009 | 32 | 108 | 31.53125 | 0.844523 | 0.456888 | 0 | 0 | 0 | 0 | 0.042831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d356bd0688d977b69e7c694d773c9f2b528f025f | 2,781 | py | Python | ctapipe/reco/mock.py | rdelosreyes/myctapipe | dad0784b60de986d5ee871e7b61a951e948998d6 | [
"BSD-3-Clause"
] | null | null | null | ctapipe/reco/mock.py | rdelosreyes/myctapipe | dad0784b60de986d5ee871e7b61a951e948998d6 | [
"BSD-3-Clause"
] | null | null | null | ctapipe/reco/mock.py | rdelosreyes/myctapipe | dad0784b60de986d5ee871e7b61a951e948998d6 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Utilities to generate mock (fake) reconstruction inputs for testing purposes.
Example:
.. code-block:: python
>>> from ctapipe.io import camera
>>> geom = camera.make_rectangular_camera_geometry(20,20)
>>> showermodel = generate_2d_showe... | 30.9 | 102 | 0.668824 | 372 | 2,781 | 4.870968 | 0.395161 | 0.036424 | 0.030905 | 0.041943 | 0.057395 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017098 | 0.221863 | 2,781 | 89 | 103 | 31.247191 | 0.82024 | 0.605178 | 0 | 0 | 1 | 0 | 0.048832 | 0.048832 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.142857 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3589ce46dd956251df22b4707049d7e7eb7d314 | 512 | py | Python | recursion/uniquebinarysearchtrees.py | mengyangbai/leetcode | e7a6906ecc5bce665dec5d0f057b302a64d50f40 | [
"MIT"
] | null | null | null | recursion/uniquebinarysearchtrees.py | mengyangbai/leetcode | e7a6906ecc5bce665dec5d0f057b302a64d50f40 | [
"MIT"
] | null | null | null | recursion/uniquebinarysearchtrees.py | mengyangbai/leetcode | e7a6906ecc5bce665dec5d0f057b302a64d50f40 | [
"MIT"
] | null | null | null | class Solution:
def numTrees(self, n):
"""
:type n: int
:rtype: int
"""
G = [0]*(n+1)
G[0], G[1] = 1, 1
for i in range(2, n+1):
for j in range(1, i+1):
G[i] += G[j-1] * G[i-j]
return G[n]
class MathSolution(object):
... | 20.48 | 39 | 0.365234 | 77 | 512 | 2.428571 | 0.285714 | 0.032086 | 0.160428 | 0.171123 | 0.470588 | 0.342246 | 0.342246 | 0.342246 | 0.342246 | 0 | 0 | 0.062044 | 0.464844 | 512 | 25 | 40 | 20.48 | 0.620438 | 0.095703 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 |
d35fcaa15bcdbfa219b9eb1f6ce83fad288ed3b7 | 4,159 | py | Python | pysnmp-with-texts/PACKETFRONT-SMI.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/PACKETFRONT-SMI.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/PACKETFRONT-SMI.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module PACKETFRONT-SMI (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/PACKETFRONT-SMI
# Produced by pysmi-0.3.4 at Wed May 1 14:36:10 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | 99.02381 | 505 | 0.787208 | 491 | 4,159 | 6.663951 | 0.413442 | 0.062347 | 0.109108 | 0.008557 | 0.30379 | 0.15709 | 0.15709 | 0.154034 | 0.124694 | 0.109413 | 0 | 0.057483 | 0.09233 | 4,159 | 41 | 506 | 101.439024 | 0.809272 | 0.077903 | 0 | 0 | 0 | 0.060606 | 0.379247 | 0.0115 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.212121 | 0 | 0.212121 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d360538f34ddf8c94c81d326a9b1089115c60bcd | 9,285 | py | Python | LDA-Aspect/src/sem_lda.py | harishraman94/Airline-TopicSentimentAnalysis | a94be0c0a61f972d3f9bf69d9103db94f34f781f | [
"MIT"
] | null | null | null | LDA-Aspect/src/sem_lda.py | harishraman94/Airline-TopicSentimentAnalysis | a94be0c0a61f972d3f9bf69d9103db94f34f781f | [
"MIT"
] | null | null | null | LDA-Aspect/src/sem_lda.py | harishraman94/Airline-TopicSentimentAnalysis | a94be0c0a61f972d3f9bf69d9103db94f34f781f | [
"MIT"
] | null | null | null | import nltk
from nltk.corpus import wordnet
from nltk.wsd import lesk
import operator
import pandas as pd
import time
from nltk.corpus import stopwords
from nltk.stem.wordnet import WordNetLemmatizer
import string
import gensim
from gensim import corpora
start_time = time.time()
num_sem_words = 10
k... | 44.855072 | 2,958 | 0.608724 | 1,503 | 9,285 | 3.631404 | 0.204258 | 0.029132 | 0.023818 | 0.011726 | 0.264566 | 0.251008 | 0.21125 | 0.198058 | 0.198058 | 0.198058 | 0 | 0.06648 | 0.191599 | 9,285 | 207 | 2,959 | 44.855072 | 0.660671 | 0.021863 | 0 | 0.396552 | 0 | 0 | 0.269088 | 0.002368 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011494 | false | 0.011494 | 0.063218 | 0 | 0.086207 | 0.04023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3651d8a927e5e05d2ba165ed0aeb6318f577b7c | 844 | py | Python | discovered/test.py | peterfraedrich/discovered | fdbcf067dcc3360c5d4791bc8b64279c24bfd3b6 | [
"MIT"
] | null | null | null | discovered/test.py | peterfraedrich/discovered | fdbcf067dcc3360c5d4791bc8b64279c24bfd3b6 | [
"MIT"
] | null | null | null | discovered/test.py | peterfraedrich/discovered | fdbcf067dcc3360c5d4791bc8b64279c24bfd3b6 | [
"MIT"
] | null | null | null | #!/usr/bin/env
from __future__ import print_function
from pprint import pprint
import discovered
sd = discovered.ServiceDiscovery()
print('register service')
x = sd.register_service(service_name='redis', endpoint='localhost:6379', endpoint_type='keystore', backend='redis', description='redis keystore')
pprint(x)
p... | 19.181818 | 145 | 0.733412 | 126 | 844 | 4.753968 | 0.34127 | 0.055092 | 0.053422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007916 | 0.101896 | 844 | 44 | 146 | 19.181818 | 0.782322 | 0.015403 | 0 | 0 | 0 | 0 | 0.226233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.096774 | 0.645161 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
d36d29041210cbaef366c4af3bb622c2a2cd2576 | 433 | py | Python | app/.glp/glp.py | mateusnssn/cryptinpyc | 55386ce1b7e875af32cb9c0ffc3034b207399e19 | [
"Apache-2.0"
] | null | null | null | app/.glp/glp.py | mateusnssn/cryptinpyc | 55386ce1b7e875af32cb9c0ffc3034b207399e19 | [
"Apache-2.0"
] | null | null | null | app/.glp/glp.py | mateusnssn/cryptinpyc | 55386ce1b7e875af32cb9c0ffc3034b207399e19 | [
"Apache-2.0"
] | null | null | null | #!/bin/python3
def generate_prime_numbers(lim):
"""
Generates prime numbers above 100 10**100
"""
start = 10**100
l = []
for num in range(start, lim):
for n in range(2, num):
if num % n == 0:
print("Not found")
break
else: # If the mo... | 24.055556 | 58 | 0.526559 | 59 | 433 | 3.79661 | 0.59322 | 0.160714 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082734 | 0.357968 | 433 | 18 | 59 | 24.055556 | 0.723022 | 0.224018 | 0 | 0 | 1 | 0 | 0.028125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d36dd6636f224b6fe666a860669d41004a5bc3ab | 673 | py | Python | DRF/api/urls.py | iliyas01/test-repo | 7dc1d97dd43fa11f7ca5cc860ea5060d29ef1df8 | [
"MIT"
] | null | null | null | DRF/api/urls.py | iliyas01/test-repo | 7dc1d97dd43fa11f7ca5cc860ea5060d29ef1df8 | [
"MIT"
] | null | null | null | DRF/api/urls.py | iliyas01/test-repo | 7dc1d97dd43fa11f7ca5cc860ea5060d29ef1df8 | [
"MIT"
] | null | null | null |
from django.contrib import admin
from django.urls import path,include
from .views import *
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register('article',ArticleViewSet,basename='article')
urlpatterns = [
#path('article/',views.article_list,name='articles'),
# path('ar... | 26.92 | 60 | 0.701337 | 80 | 673 | 5.8125 | 0.4125 | 0.094624 | 0.064516 | 0.068817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123328 | 673 | 25 | 61 | 26.92 | 0.788136 | 0.430906 | 0 | 0 | 0 | 0 | 0.100796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d372dddb8d2b6365e0ea4bbb08b4be89e9ad50b8 | 6,571 | py | Python | nltk_contrib/tiger/demo.py | peresolb/nltk_contrib | 15d82cb187f0a859fa1366fb0d69dc25c365a3ff | [
"Apache-2.0"
] | null | null | null | nltk_contrib/tiger/demo.py | peresolb/nltk_contrib | 15d82cb187f0a859fa1366fb0d69dc25c365a3ff | [
"Apache-2.0"
] | null | null | null | nltk_contrib/tiger/demo.py | peresolb/nltk_contrib | 15d82cb187f0a859fa1366fb0d69dc25c365a3ff | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright © 2007-2008 Stockholm TreeAligner Project
# Author: Torsten Marek <shlomme@gmx.net>
# Licensed under the GNU GPLv2
from __future__ import with_statement
# TODO: convert traces
import sys
import os
import tempfile
from optparse import OptionParser
from itertools import count
from nl... | 33.35533 | 151 | 0.596104 | 828 | 6,571 | 4.514493 | 0.271739 | 0.032103 | 0.017121 | 0.010701 | 0.043606 | 0.011771 | 0.011771 | 0.011771 | 0.011771 | 0 | 0 | 0.006565 | 0.281388 | 6,571 | 196 | 152 | 33.52551 | 0.784837 | 0.051743 | 0 | 0.045752 | 0 | 0 | 0.091128 | 0.003536 | 0 | 0 | 0 | 0.005102 | 0 | 0 | null | null | 0 | 0.065359 | null | null | 0.019608 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d3743dcfb7f986b0023f50e0297da6dac56acd1a | 1,859 | py | Python | transaction-optimizer/Settings.py | akvelon/Bitcoin-Transaction-Optimization | e3740fe37869a0b84a472b19dbc5d879ec857837 | [
"Apache-2.0"
] | 5 | 2019-03-21T12:57:56.000Z | 2019-09-15T00:00:35.000Z | transaction-optimizer/Settings.py | akvelon/Bitcoin-Transaction-Optimization | e3740fe37869a0b84a472b19dbc5d879ec857837 | [
"Apache-2.0"
] | 25 | 2019-04-01T09:23:10.000Z | 2022-02-10T00:10:23.000Z | transaction-optimizer/Settings.py | akvelon/Bitcoin-Transaction-Optimization | e3740fe37869a0b84a472b19dbc5d879ec857837 | [
"Apache-2.0"
] | 1 | 2019-03-15T13:54:51.000Z | 2019-03-15T13:54:51.000Z | """
Copyright 2019 Akvelon Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | 40.413043 | 307 | 0.636902 | 259 | 1,859 | 4.490347 | 0.440154 | 0.134136 | 0.154772 | 0.185727 | 0.320722 | 0.300086 | 0.300086 | 0.184867 | 0.127257 | 0 | 0 | 0.014665 | 0.229693 | 1,859 | 45 | 308 | 41.311111 | 0.797486 | 0.297472 | 0 | 0.205882 | 0 | 0 | 0.20431 | 0.106145 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.029412 | 0.029412 | 0 | 0.470588 | 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 |
d376fb53c3bde38188f48eb6f751bbe8fcb15e4b | 491 | py | Python | ch03/3.2.1.7.py | AaronZhengkk/SpiderBook | 48f82e4627f88f366bbaff71f01bac6412f78eca | [
"MIT"
] | 990 | 2017-04-20T07:58:39.000Z | 2022-03-28T08:52:46.000Z | ch03/3.2.1.7.py | AaronZhengkk/SpiderBook | 48f82e4627f88f366bbaff71f01bac6412f78eca | [
"MIT"
] | 119 | 2017-06-20T12:57:11.000Z | 2021-04-27T04:58:34.000Z | ch03/3.2.1.7.py | AaronZhengkk/SpiderBook | 48f82e4627f88f366bbaff71f01bac6412f78eca | [
"MIT"
] | 583 | 2017-05-12T04:05:45.000Z | 2022-03-18T02:40:13.000Z | #coding:utf-8
'''
使用ProxyHandler在程序中动态设置代理
import urllib2
proxy = urllib2.ProxyHandler({'http': '127.0.0.1:8087'})
opener = urllib2.build_opener([proxy,])
urllib2.install_opener(opener)
response = urllib2.urlopen('http://www.zhihu.com/')
print response.read()
'''
'''
直接调用 opener 的 open方法代替全局的 urlopen方法
import urllib... | 22.318182 | 56 | 0.729124 | 65 | 491 | 5.461538 | 0.430769 | 0.101408 | 0.101408 | 0.140845 | 0.630986 | 0.630986 | 0.630986 | 0.450704 | 0.450704 | 0.450704 | 0 | 0.064732 | 0.087576 | 491 | 22 | 57 | 22.318182 | 0.727679 | 0.519348 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d38100691ea345da071c3ec4c51f8acc5b264cce | 573 | py | Python | config.py | realityone/MentalUs | 1c9c267efc258e274839d8e040a42272821d6e3f | [
"Apache-2.0"
] | null | null | null | config.py | realityone/MentalUs | 1c9c267efc258e274839d8e040a42272821d6e3f | [
"Apache-2.0"
] | null | null | null | config.py | realityone/MentalUs | 1c9c267efc258e274839d8e040a42272821d6e3f | [
"Apache-2.0"
] | null | null | null | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
MENTALUS_TITLE = 'MentalUs'
SECRET_KEY = '123456'
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
@staticmethod
def init_app(app):
pass
class DevConfig(Config):
DEBUG = True
SQLALCHEMY_DATABASE_URI = 'sqli... | 19.758621 | 81 | 0.675393 | 65 | 573 | 5.738462 | 0.553846 | 0.064343 | 0.112601 | 0.144772 | 0.235925 | 0.235925 | 0.235925 | 0.235925 | 0 | 0 | 0 | 0.012959 | 0.191972 | 573 | 28 | 82 | 20.464286 | 0.792657 | 0 | 0 | 0 | 0 | 0 | 0.118674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.052632 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d3817f4b4ad63821217ec4085d818f9ec8d25681 | 1,552 | py | Python | tests/fields/test_int64.py | Pr0Ger/protobuf3 | be47d387f873226561e78171adff73fd38712ae5 | [
"MIT"
] | 9 | 2015-11-08T14:32:01.000Z | 2017-11-14T04:27:51.000Z | tests/fields/test_int64.py | Pr0Ger/protobuf3 | be47d387f873226561e78171adff73fd38712ae5 | [
"MIT"
] | 9 | 2015-01-15T18:05:24.000Z | 2017-06-28T07:43:15.000Z | tests/fields/test_int64.py | Pr0Ger/protobuf3 | be47d387f873226561e78171adff73fd38712ae5 | [
"MIT"
] | 5 | 2015-11-08T14:32:03.000Z | 2020-01-27T17:09:23.000Z | from unittest import TestCase
from protobuf3.fields.int64 import Int64Field
from protobuf3.message import Message
class TestInt64Field(TestCase):
def setUp(self):
class Int64TestMessage(Message):
a = Int64Field(field_number=1)
self.msg_cls = Int64TestMessage
def test_get(self):
... | 25.032258 | 77 | 0.606959 | 217 | 1,552 | 4.202765 | 0.24424 | 0.122807 | 0.098684 | 0.114035 | 0.558114 | 0.551535 | 0.433114 | 0.319079 | 0.289474 | 0.289474 | 0 | 0.082384 | 0.26482 | 1,552 | 61 | 78 | 25.442623 | 0.716915 | 0 | 0 | 0.190476 | 0 | 0.047619 | 0.094716 | 0.082474 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.238095 | false | 0 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d38c65c0b64fd8f041d60cdbd1e573b914af9f4d | 1,381 | py | Python | p5/Project Files/enron_outliers.py | priyankaswadi/Udacity-Data-Analyst-Nanodegree | 52989f7e447e69c6fb08119f4e39a4500dcdf571 | [
"Apache-2.0"
] | null | null | null | p5/Project Files/enron_outliers.py | priyankaswadi/Udacity-Data-Analyst-Nanodegree | 52989f7e447e69c6fb08119f4e39a4500dcdf571 | [
"Apache-2.0"
] | null | null | null | p5/Project Files/enron_outliers.py | priyankaswadi/Udacity-Data-Analyst-Nanodegree | 52989f7e447e69c6fb08119f4e39a4500dcdf571 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Code to plot outliers plots
import pickle
import sys
import matplotlib.pyplot
sys.path.append("../tools/")
from feature_format import featureFormat
### read in data dictionary, convert to numpy array
data_dict = pickle.load( open("../final_project/my_dataset.pkl", "r") )
features = ["salary", "bonus... | 34.525 | 85 | 0.712527 | 227 | 1,381 | 4.23348 | 0.365639 | 0.133195 | 0.037461 | 0.049948 | 0.166493 | 0.166493 | 0.166493 | 0.166493 | 0.166493 | 0.166493 | 0 | 0.016543 | 0.124547 | 1,381 | 39 | 86 | 35.410256 | 0.778329 | 0.14265 | 0 | 0 | 0 | 0 | 0.119149 | 0.026383 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d39bcadb4a001d28bcd9fcba100dc7a9de13a18c | 501 | py | Python | community/polls/migrations/0011_alter_challenge_commentblob.py | evinjaff/speedrunsunchained | 335a127e6deffc280009ca86f2c4dd148c1629f0 | [
"BSD-3-Clause-Clear"
] | 1 | 2022-03-21T03:01:14.000Z | 2022-03-21T03:01:14.000Z | community/polls/migrations/0011_alter_challenge_commentblob.py | evinjaff/speedrunsunchained | 335a127e6deffc280009ca86f2c4dd148c1629f0 | [
"BSD-3-Clause-Clear"
] | 13 | 2022-03-21T18:07:43.000Z | 2022-03-28T15:58:56.000Z | community/polls/migrations/0011_alter_challenge_commentblob.py | evinjaff/speedrunsunchained | 335a127e6deffc280009ca86f2c4dd148c1629f0 | [
"BSD-3-Clause-Clear"
] | null | null | null | # Generated by Django 4.0.2 on 2022-03-12 07:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('polls', '0010_challenge_commentblob_alter_challenge_game_sub_id'),
]
operations = [
migrations.AlterField(
model_name='challenge... | 26.368421 | 128 | 0.642715 | 57 | 501 | 5.491228 | 0.789474 | 0.095847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057895 | 0.241517 | 501 | 18 | 129 | 27.833333 | 0.765789 | 0.08982 | 0 | 0 | 1 | 0 | 0.317181 | 0.118943 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d3ab5cae194dd8bf83256a5bd9e6a72e80196de5 | 914 | py | Python | scraper/storage_spiders/shopbubucom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/shopbubucom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/shopbubucom.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='detail-product-content-name']",
'price' : "//div[@class='detail-product-content-box']/div[@class='price']",
'categor... | 33.851852 | 79 | 0.630197 | 109 | 914 | 5.174312 | 0.559633 | 0.085106 | 0.074468 | 0.111702 | 0.198582 | 0.099291 | 0.099291 | 0 | 0 | 0 | 0 | 0.00507 | 0.136761 | 914 | 26 | 80 | 35.153846 | 0.709759 | 0.131291 | 0 | 0 | 1 | 0 | 0.453856 | 0.252845 | 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 |
d3aff6e86b7862379bf22571d93399eb7754086c | 2,597 | py | Python | run_training.py | Myyyr/transseg2d | 7664653dec0bf63d96ad3c76fc225d2d7f607e41 | [
"Apache-2.0"
] | null | null | null | run_training.py | Myyyr/transseg2d | 7664653dec0bf63d96ad3c76fc225d2d7f607e41 | [
"Apache-2.0"
] | null | null | null | run_training.py | Myyyr/transseg2d | 7664653dec0bf63d96ad3c76fc225d2d7f607e41 | [
"Apache-2.0"
] | null | null | null | #from mmseg.apis import inference_segmentor, init_segmentor, show_result_pyplot
from mmseg.core.evaluation import get_palette
import mmcv
from mmcv import Config
import matplotlib.pyplot as plt
import os.path as osp
import numpy as np
from PIL import Image
from mmcv.utils import print_log
from mmseg.datasets.builder im... | 31.670732 | 123 | 0.767424 | 401 | 2,597 | 4.765586 | 0.44389 | 0.037677 | 0.026164 | 0.029827 | 0.106227 | 0.078493 | 0.078493 | 0.03663 | 0.03663 | 0 | 0 | 0.024626 | 0.124374 | 2,597 | 82 | 124 | 31.670732 | 0.815743 | 0.474394 | 0 | 0 | 0 | 0 | 0.105302 | 0.053771 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.388889 | 0 | 0.388889 | 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 |
6c94c673fa6ebefdce1114ab3b0f04cbc73e8757 | 2,920 | py | Python | cli/prog/host.py | rushk014/manager | 24d04043ec6159dbed68f5fb26123669d8e70eb6 | [
"Apache-2.0"
] | 19 | 2022-01-17T02:48:03.000Z | 2022-03-29T09:16:08.000Z | cli/prog/host.py | rushk014/manager | 24d04043ec6159dbed68f5fb26123669d8e70eb6 | [
"Apache-2.0"
] | null | null | null | cli/prog/host.py | rushk014/manager | 24d04043ec6159dbed68f5fb26123669d8e70eb6 | [
"Apache-2.0"
] | 16 | 2022-01-14T18:12:28.000Z | 2022-03-28T04:58:14.000Z | import click
from prog.cli import request
from prog.cli import show
from prog import client
from prog import output
from prog import utils
def _list_display_format(host):
f = "id"
if f in host:
fo = output.key_output(f)
host[fo] = host[f][:output.SHORT_ID_LENGTH]
f = "interfaces"
if h... | 29.2 | 115 | 0.630822 | 406 | 2,920 | 4.37931 | 0.258621 | 0.020247 | 0.040495 | 0.035996 | 0.278403 | 0.249156 | 0.226659 | 0.197413 | 0.197413 | 0.197413 | 0 | 0.002157 | 0.206164 | 2,920 | 99 | 116 | 29.494949 | 0.764884 | 0.031164 | 0 | 0.302632 | 0 | 0 | 0.155627 | 0.01104 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0.065789 | 0.078947 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6c9e2e534de657aa3afc82f82c39a0f5a4eab39e | 544 | py | Python | naivepdf/decoder/ascii_85_decoder.py | naivefeeling/naivepdf | 5b82bc105120f5b6dcee4a87b3fa0157a8b15995 | [
"MIT"
] | null | null | null | naivepdf/decoder/ascii_85_decoder.py | naivefeeling/naivepdf | 5b82bc105120f5b6dcee4a87b3fa0157a8b15995 | [
"MIT"
] | 1 | 2020-08-14T13:24:19.000Z | 2020-08-14T13:24:19.000Z | naivepdf/decoder/ascii_85_decoder.py | naivefeeling/naivepdf | 5b82bc105120f5b6dcee4a87b3fa0157a8b15995 | [
"MIT"
] | null | null | null | import struct
def ascii_85_decode(data):
decoded = b''
n = b = 0
for c in data:
if b'!' <= c <= b'u':
n += 1
b = b * 85 + (ord(c) - 33)
if n == 5:
decoded += struct.pack('>L', b)
n = b = 0
elif c == b'z':
decod... | 23.652174 | 53 | 0.340074 | 74 | 544 | 2.459459 | 0.378378 | 0.032967 | 0.032967 | 0.043956 | 0.21978 | 0.21978 | 0 | 0 | 0 | 0 | 0 | 0.074627 | 0.507353 | 544 | 22 | 54 | 24.727273 | 0.604478 | 0 | 0 | 0.1 | 0 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c9e894e5856ae65e8d3d48fde4692660cafb3cc | 2,124 | py | Python | examples/blog/accounts-3.py | jim-easterbrook/guild | 50a4629224c55670ac194458c23b482826fc46df | [
"Apache-2.0"
] | 19 | 2015-03-04T16:27:29.000Z | 2022-01-29T19:08:23.000Z | examples/blog/accounts-3.py | jim-easterbrook/guild | 50a4629224c55670ac194458c23b482826fc46df | [
"Apache-2.0"
] | 3 | 2015-02-18T15:04:19.000Z | 2015-10-21T11:16:21.000Z | examples/blog/accounts-3.py | jim-easterbrook/guild | 50a4629224c55670ac194458c23b482826fc46df | [
"Apache-2.0"
] | 6 | 2015-03-09T12:51:53.000Z | 2020-03-01T13:09:04.000Z | #!/usr/bin/python
import random
from guild.actor import *
class InsufficientFunds(ActorException):
pass
class Account(Actor):
def __init__(self, balance=10):
super(Account, self).__init__()
self.balance = balance
@actor_function
def deposit(self, amount):
# This is a functi... | 26.55 | 73 | 0.643597 | 236 | 2,124 | 5.707627 | 0.34322 | 0.089829 | 0.066815 | 0.06533 | 0.083148 | 0.057906 | 0.057906 | 0 | 0 | 0 | 0 | 0.018832 | 0.25 | 2,124 | 79 | 74 | 26.886076 | 0.826742 | 0.033898 | 0 | 0.035088 | 0 | 0 | 0.084878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017544 | 0.035088 | null | null | 0.175439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6ca0afa87b8e5a2d3f940e4908377f8b76a1ef86 | 6,924 | py | Python | find_overlap.py | LukeHebert/GeneMutationalBurdenAnalysis_WES | 34036534dcdd60a1274a3391a79f57b1dbe91fc1 | [
"MIT"
] | null | null | null | find_overlap.py | LukeHebert/GeneMutationalBurdenAnalysis_WES | 34036534dcdd60a1274a3391a79f57b1dbe91fc1 | [
"MIT"
] | null | null | null | find_overlap.py | LukeHebert/GeneMutationalBurdenAnalysis_WES | 34036534dcdd60a1274a3391a79f57b1dbe91fc1 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
'''
Authors (alphabetica): Paul Hillman
Date begun: 07/17/2019
Description:
Takes a folder of stat_summary files and counts the number of qualifying genes from each person in each file
Need files with sample_IDs and files with stat_summaries
'''
#IMPORT PACKAGES & COLLECT INPUT FILES
import ... | 35.326531 | 176 | 0.657135 | 1,060 | 6,924 | 4.107547 | 0.149057 | 0.082683 | 0.059715 | 0.027561 | 0.580845 | 0.50735 | 0.450161 | 0.372072 | 0.347726 | 0.33808 | 0 | 0.018336 | 0.165078 | 6,924 | 196 | 177 | 35.326531 | 0.734821 | 0.183853 | 0 | 0.451128 | 0 | 0 | 0.156489 | 0.043702 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015038 | null | null | 0.037594 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6ca424ec9f71cb9fb5d0d092ffa0a494216d69c7 | 741 | py | Python | post/admin.py | bramvankooten/dienst2 | de318782840ab052345dd6c2ee8be42f4fb0666d | [
"Apache-2.0"
] | 1 | 2017-09-07T15:32:46.000Z | 2017-09-07T15:32:46.000Z | post/admin.py | bramvankooten/dienst2 | de318782840ab052345dd6c2ee8be42f4fb0666d | [
"Apache-2.0"
] | 182 | 2015-05-10T15:08:25.000Z | 2021-12-17T19:38:02.000Z | post/admin.py | bramvankooten/dienst2 | de318782840ab052345dd6c2ee8be42f4fb0666d | [
"Apache-2.0"
] | 4 | 2018-02-27T20:29:13.000Z | 2021-10-30T20:53:55.000Z | from __future__ import unicode_literals
from django.contrib import admin
from post.models import *
@admin.register(Category)
class CategoryAdmin(admin.ModelAdmin):
"""CategoryAdmin"""
search_fields = ("name",)
list_display = ("name", "grouping", "counting")
@admin.register(Contact)
class SourceAdmin(... | 22.454545 | 77 | 0.678812 | 74 | 741 | 6.608108 | 0.445946 | 0.079755 | 0.06544 | 0.0818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160594 | 741 | 32 | 78 | 23.15625 | 0.786174 | 0.047233 | 0 | 0.111111 | 0 | 0 | 0.17971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ca4a6bf83ad10de3325ffcbfec2d83e71eeecdd | 642 | py | Python | geode/vector/test_register.py | jjqcat/geode | 157cc904c113cc5e29a1ffe7c091a83b8ec2cf8e | [
"BSD-3-Clause"
] | 75 | 2015-02-08T22:04:31.000Z | 2022-02-26T14:31:43.000Z | geode/vector/test_register.py | bantamtools/geode | d906f1230b14953b68af63aeec2f7b0418d5fdfd | [
"BSD-3-Clause"
] | 15 | 2015-01-08T15:11:38.000Z | 2021-09-05T13:27:22.000Z | geode/vector/test_register.py | bantamtools/geode | d906f1230b14953b68af63aeec2f7b0418d5fdfd | [
"BSD-3-Clause"
] | 22 | 2015-03-11T16:43:13.000Z | 2021-02-15T09:37:51.000Z | from geode.vector import *
from numpy import *
def test_register():
random.seed(217301)
for _ in xrange(10):
for d in 2,3:
X0 = random.randn(10,d)
t = random.randn(d)
A = random.randn(d,d)
r,_ = linalg.qr(A)
if linalg.det(r)<0:
r[0] = -r[0]
X1 = t + Matrix(r)*X0
... | 27.913043 | 50 | 0.560748 | 112 | 642 | 3.133929 | 0.392857 | 0.159544 | 0.216524 | 0.145299 | 0.230769 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 0.070362 | 0.26947 | 642 | 22 | 51 | 29.181818 | 0.678038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238095 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.142857 | 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 |
6ca90777597ccd14685c3c5b5a67766f5541d4eb | 3,459 | py | Python | killerbee/zbwardrive/zbwardrive.py | rfmcpherson/killerbee_temp | 3835dbf7fc3c52b9ebe1e0606b149d549c942d09 | [
"BSD-3-Clause"
] | null | null | null | killerbee/zbwardrive/zbwardrive.py | rfmcpherson/killerbee_temp | 3835dbf7fc3c52b9ebe1e0606b149d549c942d09 | [
"BSD-3-Clause"
] | null | null | null | killerbee/zbwardrive/zbwardrive.py | rfmcpherson/killerbee_temp | 3835dbf7fc3c52b9ebe1e0606b149d549c942d09 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# ZBWarDrive
# rmspeers 2010-13
# ZigBee/802.15.4 WarDriving Platform
import logging
from subprocess import call
from time import sleep
from usb import USBError
from db import ZBScanDB
from killerbee import KillerBee, kbutils
from scanning import doScan
def goodLat(lat):
return lat > -18... | 30.078261 | 119 | 0.604221 | 409 | 3,459 | 5.026895 | 0.347188 | 0.126459 | 0.058366 | 0.042802 | 0.176556 | 0.151265 | 0.151265 | 0.097276 | 0.097276 | 0.053502 | 0 | 0.02706 | 0.294883 | 3,459 | 114 | 120 | 30.342105 | 0.815908 | 0.084417 | 0 | 0.341463 | 0 | 0 | 0.10225 | 0 | 0 | 0 | 0 | 0.008772 | 0 | 0 | null | null | 0 | 0.109756 | null | null | 0.097561 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6cacedf1b2dcd18b2bde38441b634a82a02bfbba | 4,548 | py | Python | tests/test_cli_latest.py | theowhy/cum | fe91124705fa8e93a1a7be7b547227f6064ca736 | [
"Apache-2.0"
] | 163 | 2015-07-14T09:46:24.000Z | 2022-03-20T10:20:21.000Z | tests/test_cli_latest.py | kozec/cum | 892f9281357863bbf91bdc68c081c6f09ec7ac5a | [
"Apache-2.0"
] | 63 | 2015-08-01T16:14:20.000Z | 2021-07-05T07:24:58.000Z | tests/test_cli_latest.py | kozec/cum | 892f9281357863bbf91bdc68c081c6f09ec7ac5a | [
"Apache-2.0"
] | 22 | 2015-07-26T13:00:59.000Z | 2022-03-08T22:37:32.000Z | from unittest import mock
import cumtest
import datetime
import time
class TestCLILatest(cumtest.CumCLITest):
SERIES_KWARGS = {'url': ('https://manga.madokami.al/Manga/K/KA/KANG/'
'Kangoku%20Gakuen'),
'alias': 'kangoku-gakuen', 'name': 'Kangoku Gakuen'}
CHAPTE... | 36.095238 | 79 | 0.622911 | 542 | 4,548 | 5.142066 | 0.184502 | 0.047363 | 0.069968 | 0.057409 | 0.743093 | 0.684248 | 0.656261 | 0.656261 | 0.633297 | 0.617869 | 0 | 0.032716 | 0.240545 | 4,548 | 125 | 80 | 36.384 | 0.774175 | 0 | 0 | 0.469388 | 0 | 0.010204 | 0.168646 | 0.024186 | 0 | 0 | 0 | 0 | 0.173469 | 1 | 0.091837 | false | 0 | 0.040816 | 0 | 0.163265 | 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 |
6cb259ee99b998cb1f88b1680b7b550816cabe30 | 831 | py | Python | Calibrate/CameraCalibrated.py | spider-tronix/Portable_Braille | 58a3046f6137058a542251dd52acfd7c593e0bd4 | [
"MIT"
] | null | null | null | Calibrate/CameraCalibrated.py | spider-tronix/Portable_Braille | 58a3046f6137058a542251dd52acfd7c593e0bd4 | [
"MIT"
] | null | null | null | Calibrate/CameraCalibrated.py | spider-tronix/Portable_Braille | 58a3046f6137058a542251dd52acfd7c593e0bd4 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
#K&D for the wide angle camera used
DIM=(1920, 1080)
K=np.array([[1276.399158532128, 0.0, 930.054799272954], [0.0, 1274.1510638009997, 510.7404213142207], [0.0, 0.0, 1.0]])
D=np.array([[0.10664484858106192], [-2.4113027405249046], [12.185556649445054], [-20.93957191606188]])
cap = cv2.Vi... | 34.625 | 119 | 0.679904 | 127 | 831 | 4.417323 | 0.606299 | 0.017825 | 0.010695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.260197 | 0.144404 | 831 | 23 | 120 | 36.130435 | 0.528833 | 0.064982 | 0 | 0 | 0 | 0 | 0.018065 | 0 | 0 | 0 | 0.005161 | 0 | 0 | 1 | 0 | false | 0 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6cb5291a3de506312e035b668ccf54fcbea7022f | 1,226 | py | Python | answers/SIDTK365/Day 28/question1.py | vishaljha2121/30-DaysOfCode-March-2021 | 27922819b4e0a3c1072822f8df22b7a0873fe72c | [
"MIT"
] | 22 | 2021-03-16T14:07:47.000Z | 2021-08-13T08:52:50.000Z | answers/SIDTK365/Day 28/question1.py | vishaljha2121/30-DaysOfCode-March-2021 | 27922819b4e0a3c1072822f8df22b7a0873fe72c | [
"MIT"
] | 174 | 2021-03-16T21:16:40.000Z | 2021-06-12T05:19:51.000Z | answers/SIDTK365/Day 28/question1.py | vishaljha2121/30-DaysOfCode-March-2021 | 27922819b4e0a3c1072822f8df22b7a0873fe72c | [
"MIT"
] | 135 | 2021-03-16T16:47:12.000Z | 2021-06-27T14:22:38.000Z | def helper(N):
if (N <= 2):
print ("NO")
return
value = (N * (N + 1)) // 2
if(value%2==1):
print ("NO")
return
s1 = []
s2 = []
if (N%2==0):
shift = True
start = 1
last = N
while (start < last):
if (shift):
... | 21.508772 | 35 | 0.334421 | 141 | 1,226 | 2.907801 | 0.248227 | 0.019512 | 0.043902 | 0.080488 | 0.068293 | 0.068293 | 0.068293 | 0 | 0 | 0 | 0 | 0.063047 | 0.534258 | 1,226 | 56 | 36 | 21.892857 | 0.654991 | 0 | 0 | 0.173077 | 0 | 0 | 0.00571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0 | 0 | 0 | 0.057692 | 0.134615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6cb78df7236e6a752fa3d3e6d8d06c9b7dce31e7 | 2,504 | py | Python | CreateDeviceIdentity.py | spethso/Raspberry-RoomTemperature-AzureIoTHub | f4734b85f5e80bb3378b828bbb46d3b3fdd8d16c | [
"MIT"
] | null | null | null | CreateDeviceIdentity.py | spethso/Raspberry-RoomTemperature-AzureIoTHub | f4734b85f5e80bb3378b828bbb46d3b3fdd8d16c | [
"MIT"
] | null | null | null | CreateDeviceIdentity.py | spethso/Raspberry-RoomTemperature-AzureIoTHub | f4734b85f5e80bb3378b828bbb46d3b3fdd8d16c | [
"MIT"
] | null | null | null | import sys
import iothub_service_client
from iothub_service_client import IoTHubRegistryManager, IoTHubRegistryManagerAuthMethod
from iothub_service_client import IoTHubDeviceStatus, IoTHubError
import json
connectionData = json.load(open('connectionData.json'))
CONNECTION_STRING = connectionData["connection_string"]
... | 51.102041 | 180 | 0.684904 | 243 | 2,504 | 6.823045 | 0.308642 | 0.054885 | 0.078408 | 0.103136 | 0.034982 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00802 | 0.203275 | 2,504 | 49 | 181 | 51.102041 | 0.823058 | 0 | 0 | 0.069767 | 0 | 0 | 0.3002 | 0.110978 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.116279 | 0 | 0.186047 | 0.488372 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6cbca6565beead92e223712026916e2c2fd03a8a | 7,740 | py | Python | client/game_cron/perfaggregate.py | isabella232/zperfmon | c509f40f0f56d36723ba3f0c96c985517a55e775 | [
"Apache-2.0"
] | 54 | 2015-02-10T07:20:06.000Z | 2021-12-23T03:28:29.000Z | client/game_cron/perfaggregate.py | zynga/zperfmon | c509f40f0f56d36723ba3f0c96c985517a55e775 | [
"Apache-2.0"
] | 1 | 2016-10-10T06:00:20.000Z | 2016-10-10T06:00:20.000Z | client/game_cron/perfaggregate.py | isabella232/zperfmon | c509f40f0f56d36723ba3f0c96c985517a55e775 | [
"Apache-2.0"
] | 37 | 2015-01-27T12:28:45.000Z | 2021-01-04T11:10:52.000Z | #!/usr/bin/python
#
# Copyright 2013 Zynga Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 30.116732 | 91 | 0.656202 | 1,087 | 7,740 | 4.50966 | 0.274149 | 0.05712 | 0.051408 | 0.02448 | 0.366177 | 0.341697 | 0.305386 | 0.291514 | 0.272746 | 0.24235 | 0 | 0.005918 | 0.257752 | 7,740 | 256 | 92 | 30.234375 | 0.847346 | 0.262532 | 0 | 0.449275 | 0 | 0.007246 | 0.110294 | 0.004644 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.036232 | 0.086957 | null | null | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6cbdf3a579da0e3e1152d4c678c3fc0985319f0b | 1,185 | py | Python | vumi/transports/opera/utils.py | seidu626/vumi | 62eae205a07029bc7ab382086715694548001876 | [
"BSD-3-Clause"
] | 199 | 2015-01-05T09:04:24.000Z | 2018-08-15T17:02:49.000Z | vumi/transports/opera/utils.py | seidu626/vumi | 62eae205a07029bc7ab382086715694548001876 | [
"BSD-3-Clause"
] | 187 | 2015-01-06T15:22:38.000Z | 2018-07-14T13:15:29.000Z | vumi/transports/opera/utils.py | seidu626/vumi | 62eae205a07029bc7ab382086715694548001876 | [
"BSD-3-Clause"
] | 86 | 2015-01-31T02:47:08.000Z | 2018-12-01T11:59:47.000Z | from collections import namedtuple
import xml.etree.ElementTree as ET
OPERA_TIMESTAMP_FORMAT = "%Y%m%dT%H:%M:%S"
def parse_receipts_xml(receipt_xml_data):
tree = ET.fromstring(receipt_xml_data)
return map(receipt_to_namedtuple, tree.findall('receipt'))
def receipt_element_to_dict(element):
"""
Turn... | 26.333333 | 77 | 0.672574 | 166 | 1,185 | 4.60241 | 0.349398 | 0.02356 | 0.045812 | 0.078534 | 0.34555 | 0.125654 | 0.125654 | 0.125654 | 0.125654 | 0.125654 | 0 | 0.006122 | 0.172996 | 1,185 | 44 | 78 | 26.931818 | 0.773469 | 0.303797 | 0 | 0 | 0 | 0 | 0.041005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6cca6aad23b03c1cf39024c6cd88e1f2d586d24a | 4,069 | py | Python | init/generate_init_file.py | kevguitar/Robustness | ab83a09a82fcc7f8ee10027b3ccb24194731b4ac | [
"MIT"
] | null | null | null | init/generate_init_file.py | kevguitar/Robustness | ab83a09a82fcc7f8ee10027b3ccb24194731b4ac | [
"MIT"
] | null | null | null | init/generate_init_file.py | kevguitar/Robustness | ab83a09a82fcc7f8ee10027b3ccb24194731b4ac | [
"MIT"
] | null | null | null | """
generate_init_file.py (05/09/2018)
Generates an init file with unit covariance matrix and the simplest possible
inital quantites and stores it under "./new_[datdim].init.txt".
"""
import argparse
import numpy as np
# Reads the data dimension as a parser argument passed in the shell.
parser = argparse.ArgumentPars... | 30.825758 | 80 | 0.543868 | 531 | 4,069 | 4.067797 | 0.26742 | 0.04213 | 0.048148 | 0.051852 | 0.293981 | 0.257407 | 0.236111 | 0.142593 | 0.127315 | 0.127315 | 0 | 0.043262 | 0.306955 | 4,069 | 131 | 81 | 31.061069 | 0.722695 | 0.152372 | 0 | 0.45 | 1 | 0 | 0.181474 | 0.008447 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02 | 0 | 0.02 | 0 | 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 |
6cce570eaac211b3c4a0f0364260bf59d64b790a | 4,630 | py | Python | api/mon/backends/zabbix/containers/base.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 97 | 2016-11-15T14:44:23.000Z | 2022-03-13T18:09:15.000Z | api/mon/backends/zabbix/containers/base.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 334 | 2016-11-17T19:56:57.000Z | 2022-03-18T10:45:53.000Z | api/mon/backends/zabbix/containers/base.py | klebed/esdc-ce | 2c9e4591f344247d345a83880ba86777bb794460 | [
"Apache-2.0"
] | 33 | 2017-01-02T16:04:13.000Z | 2022-02-07T19:20:24.000Z | import re
from django.utils.six import text_type
from zabbix_api import ZabbixAPIError
from api.mon.constants import MON_OBJ_NOTHING, MON_OBJ_CREATED, MON_OBJ_UPDATED, MON_OBJ_DELETED
from api.mon.backends.zabbix.utils import parse_zabbix_result
from api.mon.backends.zabbix.exceptions import InternalMonitoringError, ... | 34.296296 | 120 | 0.664795 | 577 | 4,630 | 5.041594 | 0.246101 | 0.034032 | 0.044001 | 0.022001 | 0.299416 | 0.202131 | 0.168443 | 0.144723 | 0.144723 | 0.114472 | 0 | 0.002271 | 0.239093 | 4,630 | 134 | 121 | 34.552239 | 0.823446 | 0.102376 | 0 | 0.244898 | 0 | 0 | 0.070303 | 0.007758 | 0 | 0 | 0 | 0 | 0.010204 | 1 | 0.193878 | false | 0 | 0.061224 | 0.061224 | 0.561224 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6cd13490d23e15c0f68e4e993431f013c7ea196a | 491 | py | Python | test_code/test2_gather_nd.py | jie311/miemiedetection | b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6 | [
"Apache-2.0"
] | 65 | 2021-12-30T03:30:52.000Z | 2022-03-25T01:44:32.000Z | test_code/test2_gather_nd.py | jie311/miemiedetection | b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6 | [
"Apache-2.0"
] | 1 | 2021-12-31T01:51:35.000Z | 2022-01-01T14:42:37.000Z | test_code/test2_gather_nd.py | jie311/miemiedetection | b0e7a45717fe6c9cf9bf3c0f47d47a2e6c68b1b6 | [
"Apache-2.0"
] | 7 | 2021-12-31T09:25:06.000Z | 2022-03-10T01:25:09.000Z |
import numpy as np
import torch
import paddle
from mmdet.models.ops import gather_nd
'''
'''
dic = np.load('aa22.npz')
pred_scores = torch.Tensor(dic['pred_scores'])
gt_labels_ind = torch.Tensor(dic['gt_labels_ind']).to(torch.int64)
bbox_cls_scores = torch.Tensor(dic['bbox_cls_scores'])
bbox_cls_scores222 = gather... | 19.64 | 101 | 0.729124 | 79 | 491 | 4.265823 | 0.43038 | 0.103858 | 0.124629 | 0.118694 | 0.124629 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027149 | 0.099796 | 491 | 24 | 102 | 20.458333 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0.115063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6cd358fa13722ee1946fb11bd78f1a86ae77de2e | 4,302 | py | Python | ghPublish/base_html.py | MiteshNinja/ghPublish | aa3ec8fd2187efd99cffc1a5a76eda4ff2a3b636 | [
"MIT"
] | 5 | 2016-06-21T16:11:29.000Z | 2016-06-28T12:29:30.000Z | ghPublish/base_html.py | MiteshNinja/ghPublish | aa3ec8fd2187efd99cffc1a5a76eda4ff2a3b636 | [
"MIT"
] | 1 | 2016-10-01T05:52:09.000Z | 2016-10-01T05:52:09.000Z | ghPublish/base_html.py | MiteshNinja/ghPublish | aa3ec8fd2187efd99cffc1a5a76eda4ff2a3b636 | [
"MIT"
] | 1 | 2017-09-29T19:30:14.000Z | 2017-09-29T19:30:14.000Z | html = """\
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>$title</title>
<style media="screen">
html {
background-color: #dfdfdf;
color: #333;
}
body {
max-width: 750px;
margin: ... | 35.85 | 83 | 0.496513 | 412 | 4,302 | 5.184466 | 0.398058 | 0.066948 | 0.121723 | 0.075375 | 0.031835 | 0.031835 | 0 | 0 | 0 | 0 | 0 | 0.075963 | 0.366574 | 4,302 | 119 | 84 | 36.151261 | 0.70789 | 0 | 0 | 0.017241 | 0 | 0 | 0.996746 | 0.095072 | 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 |
6cd7105e0e604dee902c2167dac07e93be7b9864 | 1,176 | py | Python | app.py | PaulRaUnite/dsl_lab2 | 779f2acd9bff40b54ec987cedbbfdded5662e98f | [
"MIT"
] | null | null | null | app.py | PaulRaUnite/dsl_lab2 | 779f2acd9bff40b54ec987cedbbfdded5662e98f | [
"MIT"
] | null | null | null | app.py | PaulRaUnite/dsl_lab2 | 779f2acd9bff40b54ec987cedbbfdded5662e98f | [
"MIT"
] | null | null | null | from loader import parse_grammar
def main():
while True:
print("Input filename with grammar or q to exit")
filename = input()
if filename == "q":
break
print("Input filename with test sequences")
testname = input()
grammar_file = open(filename)
g... | 28.682927 | 90 | 0.513605 | 127 | 1,176 | 4.661417 | 0.472441 | 0.040541 | 0.060811 | 0.074324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.392857 | 1,176 | 40 | 91 | 29.4 | 0.829132 | 0 | 0 | 0.111111 | 0 | 0 | 0.161565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.111111 | 0.027778 | 0 | 0.055556 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6cda342109145dc36e3381e20d0aba6dc815ddb1 | 621 | py | Python | Python/natas15-chars.py | shreyaschavhan/pentesting-scripts | b82d68b5df4d3f6f79622bfcaab773d6ffbda763 | [
"MIT"
] | null | null | null | Python/natas15-chars.py | shreyaschavhan/pentesting-scripts | b82d68b5df4d3f6f79622bfcaab773d6ffbda763 | [
"MIT"
] | null | null | null | Python/natas15-chars.py | shreyaschavhan/pentesting-scripts | b82d68b5df4d3f6f79622bfcaab773d6ffbda763 | [
"MIT"
] | null | null | null | # brute forcing password of natas 15
import requests
characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
username = "natas15"
password = "AwWj0w5cvxrZiONgZ9J5stNVkmxdk39J"
user_exists = "This user exists."
char_exists = ""
for char in characters:
url = 'http://natas15.natas.labs.ov... | 25.875 | 134 | 0.710145 | 65 | 621 | 6.707692 | 0.584615 | 0.068807 | 0.073395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046784 | 0.173913 | 621 | 23 | 135 | 27 | 0.803119 | 0.05475 | 0 | 0 | 0 | 0.076923 | 0.415385 | 0.160684 | 0.076923 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.230769 | 0.076923 | 0 | 0.076923 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6ce1d81f50e7a7a66e5e802ada8145ff66a2e7bd | 1,404 | py | Python | ObitSystem/ObitSD/share/scripts/scriptSelectOTF.py | sarrvesh/Obit | e4ce6029e9beb2a8c0316ee81ea710b66b2b7986 | [
"Linux-OpenIB"
] | 5 | 2019-08-26T06:53:08.000Z | 2020-10-20T01:08:59.000Z | ObitSystem/ObitSD/share/scripts/scriptSelectOTF.py | sarrvesh/Obit | e4ce6029e9beb2a8c0316ee81ea710b66b2b7986 | [
"Linux-OpenIB"
] | null | null | null | ObitSystem/ObitSD/share/scripts/scriptSelectOTF.py | sarrvesh/Obit | e4ce6029e9beb2a8c0316ee81ea710b66b2b7986 | [
"Linux-OpenIB"
] | 8 | 2017-08-29T15:12:32.000Z | 2022-03-31T12:16:08.000Z | # Program to select a section of OTF data
import OTF, OTFUtil, OSystem, Image, OErr, InfoList
# Init Obit
err=OErr.OErr()
ObitSys=OSystem.OSystem ("OTFSelect", 1, 103, 1, ["None"], 1, ["../PythonData/"], 1, 0, err)
OErr.printErrMsg(err, "Error with Obit startup")
# Files
disk = 1
inFile = "GCLbandBothOTF.fits" ... | 29.87234 | 92 | 0.710114 | 191 | 1,404 | 5.219895 | 0.418848 | 0.084253 | 0.108325 | 0.069208 | 0.052156 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023275 | 0.143162 | 1,404 | 46 | 93 | 30.521739 | 0.805486 | 0.131766 | 0 | 0 | 0 | 0 | 0.18807 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032258 | null | null | 0.16129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6ceacb3ff4b54a8ea3fdb99ccd761e22679c11e5 | 508 | py | Python | WordsRestService/WordsRestService/urls.py | ernestocasanova/WordsRestService | ac60aaf773abfa174da8730082df005df5afc7f0 | [
"MIT"
] | null | null | null | WordsRestService/WordsRestService/urls.py | ernestocasanova/WordsRestService | ac60aaf773abfa174da8730082df005df5afc7f0 | [
"MIT"
] | null | null | null | WordsRestService/WordsRestService/urls.py | ernestocasanova/WordsRestService | ac60aaf773abfa174da8730082df005df5afc7f0 | [
"MIT"
] | null | null | null | from datetime import datetime
from django.conf.urls import url, include
import django.contrib.auth.views
from django.contrib import admin
admin.autodiscover()
from rest_framework import routers
from app.api import views
router = routers.DefaultRouter()
router.register(r'api/v1/words', views.WordsViewSet)
urlpatterns... | 29.882353 | 80 | 0.757874 | 71 | 508 | 5.366197 | 0.422535 | 0.102362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002193 | 0.102362 | 508 | 17 | 81 | 29.882353 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.139489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6cee65b0b0ecab8ceafd5697bb66677395a2cb5b | 533 | py | Python | serverless-slack-bot/lambda_function.py | Kishanshah147/code_snippets | 4210848c9d6da8bf64798ecc3a59b91805f2825b | [
"MIT"
] | null | null | null | serverless-slack-bot/lambda_function.py | Kishanshah147/code_snippets | 4210848c9d6da8bf64798ecc3a59b91805f2825b | [
"MIT"
] | null | null | null | serverless-slack-bot/lambda_function.py | Kishanshah147/code_snippets | 4210848c9d6da8bf64798ecc3a59b91805f2825b | [
"MIT"
] | null | null | null | import json
import urllib3
def lambda_handler(event, context):
http = urllib3.PoolManager()
data = {"text": "sample message from lambda_handler"}
r = http.request("POST", "https://hooks.slack.com/services/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", body = json.dumps(data), headers = {"Cont... | 24.227273 | 186 | 0.639775 | 56 | 533 | 6.053571 | 0.732143 | 0.076696 | 0.076696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046005 | 0.225141 | 533 | 21 | 187 | 25.380952 | 0.774818 | 0.026266 | 0 | 0 | 0 | 0 | 0.368932 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0.083333 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6cf649a69dd483f8247775d318a5f5eaffca439e | 4,499 | py | Python | example/refresh.py | shizzor/flask-praetorian | 08151a4ccef86d37ed40b365bf574c484014afe9 | [
"MIT"
] | 1 | 2018-06-13T06:34:01.000Z | 2018-06-13T06:34:01.000Z | example/refresh.py | TileThePlane/flask-praetorian | 92aab900d69857e3c82d55f5636c7fa7e1b18cd6 | [
"MIT"
] | null | null | null | example/refresh.py | TileThePlane/flask-praetorian | 92aab900d69857e3c82d55f5636c7fa7e1b18cd6 | [
"MIT"
] | null | null | null | import flask
import flask_cors
import flask_praetorian
import flask_sqlalchemy
import tempfile
db = flask_sqlalchemy.SQLAlchemy()
guard = flask_praetorian.Praetorian()
cors = flask_cors.CORS()
# A generic user model that might be used by an app powered by flask-praetorian
class User(db.Model):
id = db.Column(db.... | 28.11875 | 79 | 0.666593 | 579 | 4,499 | 5.046632 | 0.317789 | 0.041068 | 0.017112 | 0.021903 | 0.164613 | 0.065708 | 0.065708 | 0 | 0 | 0 | 0 | 0.009195 | 0.202267 | 4,499 | 159 | 80 | 28.295597 | 0.80496 | 0.267837 | 0 | 0.202128 | 0 | 0 | 0.121375 | 0.007251 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095745 | false | 0.074468 | 0.053191 | 0.042553 | 0.319149 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9f065175b9de0ca2d4642a117fc16f379ca84a0d | 1,625 | py | Python | scripts/getOrbitCycleFiles.py | hysds/eosUtils | a0e7bbb7cca445ce81630d3797c1bc50fd337f83 | [
"Apache-2.0"
] | null | null | null | scripts/getOrbitCycleFiles.py | hysds/eosUtils | a0e7bbb7cca445ce81630d3797c1bc50fd337f83 | [
"Apache-2.0"
] | null | null | null | scripts/getOrbitCycleFiles.py | hysds/eosUtils | a0e7bbb7cca445ce81630d3797c1bc50fd337f83 | [
"Apache-2.0"
] | null | null | null | #-----------------------------------------------------------------------------
# Name: getOrbitCycleFiles.py
# Purpose: Get orbit cycle files.
#
# Author: Gerald Manipon
#
# Created: Fri Apr 14 10:12:36 2006
# Copyright: (c) 2006, California Institute of Technology.
# U.S. Government ... | 41.666667 | 125 | 0.612308 | 199 | 1,625 | 4.994975 | 0.603015 | 0.028169 | 0.022133 | 0.034205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027166 | 0.161846 | 1,625 | 39 | 126 | 41.666667 | 0.702643 | 0.299077 | 0 | 0 | 0 | 0.095238 | 0.27039 | 0.150709 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9f08e3c4481879f129eb0d5d5e5cd796950b843a | 1,889 | py | Python | fed_learn/args_helper.py | praneshnangare/federated | 1410a0049bb7d40ba77bb2ec0f23d7ebfcfb7799 | [
"MIT"
] | null | null | null | fed_learn/args_helper.py | praneshnangare/federated | 1410a0049bb7d40ba77bb2ec0f23d7ebfcfb7799 | [
"MIT"
] | null | null | null | fed_learn/args_helper.py | praneshnangare/federated | 1410a0049bb7d40ba77bb2ec0f23d7ebfcfb7799 | [
"MIT"
] | null | null | null | import argparse
import json
def get_args():
parser = argparse.ArgumentParser()
parser.add_argument("-n", "--name", help="Name of the experiment", type=str, required=True)
parser.add_argument("-oe", "--overwrite-experiment", help="Overwrite existing experiment", action="store_true",
... | 48.435897 | 117 | 0.651138 | 255 | 1,889 | 4.698039 | 0.345098 | 0.09015 | 0.170284 | 0.183639 | 0.275459 | 0.075125 | 0.075125 | 0.075125 | 0 | 0 | 0 | 0.012995 | 0.185283 | 1,889 | 38 | 118 | 49.710526 | 0.765432 | 0 | 0 | 0.133333 | 0 | 0 | 0.253573 | 0.024881 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.066667 | 0 | 0.233333 | 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 |
9f17ae2d8bfff85b9f0165ede5f869232e723d5f | 8,214 | py | Python | CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/gis/_impl/_certificates.py | moazzamwaheed2017/carparkapi | e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a | [
"MIT"
] | null | null | null | CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/gis/_impl/_certificates.py | moazzamwaheed2017/carparkapi | e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a | [
"MIT"
] | 9 | 2020-02-03T15:50:10.000Z | 2022-03-02T07:11:34.000Z | CarParkArcGisApi/CarParkArcGisApi/env/Lib/site-packages/arcgis/gis/_impl/_certificates.py | moazzamwaheed2017/carparkapi | e52ae1b2aed47321ce9d22ba6cd0b85fa60a417a | [
"MIT"
] | null | null | null | from arcgis._impl.common._mixins import PropertyMap
###########################################################################
class CertificateManager(object):
"""
The `CertificateManager` provides the administor the ability to
register and unregister certficates with the `GIS`. This resource is
avai... | 48.317647 | 151 | 0.3701 | 570 | 8,214 | 5.235088 | 0.240351 | 0.042225 | 0.022118 | 0.013405 | 0.353552 | 0.333445 | 0.333445 | 0.312332 | 0.279826 | 0.266756 | 0 | 0.002063 | 0.232773 | 8,214 | 169 | 152 | 48.60355 | 0.471438 | 0.622961 | 0 | 0.223881 | 0 | 0 | 0.084975 | 0.018883 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119403 | false | 0 | 0.044776 | 0 | 0.38806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f1e023aabb3dae3c4f0ee470058d051f6099c8b | 447 | py | Python | PhoneSearch/base/migrations/0007_alter_phone_performance.py | samirul/djangosearch | d0c01975114a85c9b250d32daa455aaaa7455151 | [
"MIT"
] | null | null | null | PhoneSearch/base/migrations/0007_alter_phone_performance.py | samirul/djangosearch | d0c01975114a85c9b250d32daa455aaaa7455151 | [
"MIT"
] | null | null | null | PhoneSearch/base/migrations/0007_alter_phone_performance.py | samirul/djangosearch | d0c01975114a85c9b250d32daa455aaaa7455151 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2022-01-17 04:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0006_phone_sar_phone_sareu'),
]
operations = [
migrations.AlterField(
model_name='phone',
name='... | 23.526316 | 92 | 0.597315 | 47 | 447 | 5.531915 | 0.787234 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066456 | 0.293065 | 447 | 18 | 93 | 24.833333 | 0.756329 | 0.096197 | 0 | 0 | 1 | 0 | 0.148438 | 0.067708 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f1f646e0e127643b30029e21ef9a7dba44d843e | 524 | py | Python | 2021/Day1/day1.py | Brollof/Advent-of-Code | c9cdf52660acc997aa7947509ca9933adcf11ca8 | [
"Beerware"
] | null | null | null | 2021/Day1/day1.py | Brollof/Advent-of-Code | c9cdf52660acc997aa7947509ca9933adcf11ca8 | [
"Beerware"
] | null | null | null | 2021/Day1/day1.py | Brollof/Advent-of-Code | c9cdf52660acc997aa7947509ca9933adcf11ca8 | [
"Beerware"
] | null | null | null | with open("inp1.txt") as file:
data = file.read()
depths = [int(line) for line in data.splitlines()]
depth_inc_cnt = 0
for i in range(1, len(depths)):
if depths[i] > depths[i - 1]:
depth_inc_cnt += 1
print(f"Part 1: {depth_inc_cnt}")
assert depth_inc_cnt == 1832
depth_windowed_inc_cnt = 0
for i in... | 22.782609 | 57 | 0.652672 | 94 | 524 | 3.425532 | 0.351064 | 0.149068 | 0.136646 | 0.236025 | 0.385093 | 0.279503 | 0.173913 | 0.173913 | 0.173913 | 0.173913 | 0 | 0.052506 | 0.200382 | 524 | 22 | 58 | 23.818182 | 0.71599 | 0 | 0 | 0 | 0 | 0 | 0.120229 | 0.045802 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.133333 | 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 |
9f20286a6f340a9f932004b75e6e37b44131f9ca | 5,885 | py | Python | cauliflowervest/server/handlers/apple_firmware_test.py | isabella232/cauliflowervest | d3f52501ebed8b9a392350c8e177bbc602a6a09d | [
"Apache-2.0"
] | 292 | 2015-01-03T02:26:18.000Z | 2022-03-05T22:54:51.000Z | cauliflowervest/server/handlers/apple_firmware_test.py | google/cauliflowervest | d3f52501ebed8b9a392350c8e177bbc602a6a09d | [
"Apache-2.0"
] | 15 | 2015-01-30T18:48:40.000Z | 2019-06-27T08:47:05.000Z | cauliflowervest/server/handlers/apple_firmware_test.py | isabella232/cauliflowervest | d3f52501ebed8b9a392350c8e177bbc602a6a09d | [
"Apache-2.0"
] | 61 | 2015-01-24T09:23:58.000Z | 2022-03-08T14:12:14.000Z | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 36.78125 | 79 | 0.734579 | 683 | 5,885 | 6.143485 | 0.289898 | 0.049809 | 0.059581 | 0.051716 | 0.289323 | 0.229266 | 0.229266 | 0.190181 | 0.190181 | 0.190181 | 0 | 0.011682 | 0.15633 | 5,885 | 159 | 80 | 37.012579 | 0.833434 | 0.107732 | 0 | 0.258929 | 0 | 0 | 0.121154 | 0.062106 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.116071 | false | 0.169643 | 0.151786 | 0.008929 | 0.303571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9f26b062dda190832f869a665388d9a93aed22b4 | 510 | py | Python | src/app/config.py | dennismwagiru/task-runner | b57bdc48e4b3e486a57681f85e0019e49ad1fa09 | [
"MIT"
] | 1 | 2021-05-15T16:49:26.000Z | 2021-05-15T16:49:26.000Z | src/app/config.py | dennismwagiru/task-runner | b57bdc48e4b3e486a57681f85e0019e49ad1fa09 | [
"MIT"
] | null | null | null | src/app/config.py | dennismwagiru/task-runner | b57bdc48e4b3e486a57681f85e0019e49ad1fa09 | [
"MIT"
] | null | null | null | import os
class Config(object):
"""Parent configuration class."""
DEBUG = False
SECRET = os.getenv('SECRET')
CELERY_BROKER_URL = 'redis://localhost:6379',
CELERY_RESULT_BACKEND = 'redis://localhost:6379'
class DevelopmentConfig(Config):
"""Configurations for Development."""
DEBUG = True
... | 18.888889 | 52 | 0.67451 | 50 | 510 | 6.78 | 0.54 | 0.082596 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.2 | 510 | 26 | 53 | 19.615385 | 0.811275 | 0.168627 | 0 | 0.133333 | 0 | 0 | 0.166667 | 0.107843 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9f2f500d02e314084528918a4d50cf977119c223 | 684 | py | Python | dockertarpusher/command_line.py | tsbkw/dockerregistrypusher | d57d7d27c66ee1b2387e4500467c5417e1913e47 | [
"MIT"
] | 12 | 2019-07-02T15:34:06.000Z | 2022-02-08T11:35:54.000Z | dockertarpusher/command_line.py | tsbkw/dockerregistrypusher | d57d7d27c66ee1b2387e4500467c5417e1913e47 | [
"MIT"
] | 4 | 2020-04-28T07:56:01.000Z | 2021-04-29T09:40:56.000Z | dockertarpusher/command_line.py | tsbkw/dockerregistrypusher | d57d7d27c66ee1b2387e4500467c5417e1913e47 | [
"MIT"
] | 9 | 2019-09-17T11:18:24.000Z | 2022-02-23T02:56:58.000Z | import dockertarpusher
import sys
def main():
if(len(sys.argv) < 3):
print("Arguments required: {REGISTRYURL} {TARPATH} [LOGIN] [PASSWORD] --noSslVerify")
print("Example: http://localhost:5000 tests/busybox.tar")
sys.exit(1)
url = sys.argv[1]
tarpath = sys.argv[2]
login = None
... | 32.571429 | 125 | 0.621345 | 84 | 684 | 5.059524 | 0.464286 | 0.131765 | 0.056471 | 0.084706 | 0.061176 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022989 | 0.236842 | 684 | 21 | 126 | 32.571429 | 0.791188 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.2 | 0.1 | 0 | 0.15 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9f33c02ceb98ce816e9eae1b120464511f7ef34d | 1,813 | py | Python | tests/test_stabrnd.py | ComplexNetTSP/CooperativeNetworking | ce74982820ee25c0e68e321976dd03fcfd952d9a | [
"MIT"
] | 12 | 2017-03-23T03:41:29.000Z | 2021-05-29T03:20:52.000Z | tests/test_stabrnd.py | ComplexNetTSP/CooperativeNetworking | ce74982820ee25c0e68e321976dd03fcfd952d9a | [
"MIT"
] | null | null | null | tests/test_stabrnd.py | ComplexNetTSP/CooperativeNetworking | ce74982820ee25c0e68e321976dd03fcfd952d9a | [
"MIT"
] | 10 | 2016-01-20T15:28:06.000Z | 2021-06-25T13:52:46.000Z | #-------------------------------------------------------------------------------
# Copyright (c) 2012 Vincent Gauthier.
#
# 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,... | 39.413043 | 80 | 0.662438 | 238 | 1,813 | 4.962185 | 0.554622 | 0.074513 | 0.022015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029275 | 0.170987 | 1,813 | 45 | 81 | 40.288889 | 0.756487 | 0.672366 | 0 | 0 | 0 | 0 | 0.108392 | 0.04021 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.133333 | false | 0.066667 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9f368d68660553ee0e2c836d15fc2e7020bb52d9 | 2,833 | py | Python | simulations/old/analysis/analyze-spinning-groups.py | hawkrobe/fish | 2000e46c397f7c95bba8ecb0c6afd26013929ff8 | [
"MIT"
] | 1 | 2015-12-11T16:51:08.000Z | 2015-12-11T16:51:08.000Z | simulations/old/analysis/analyze-spinning-groups.py | hawkrobe/fish | 2000e46c397f7c95bba8ecb0c6afd26013929ff8 | [
"MIT"
] | 3 | 2020-02-11T21:36:11.000Z | 2020-11-01T21:25:17.000Z | simulations/old/analysis/analyze-spinning-groups.py | hawkrobe/couzin_replication | ff491639954f0652d6b4b2a318477bb54c38fadf | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import scipy
import os, sys
import matplotlib.pyplot as plt
import pylab
sys.path.append("../utils/")
from utils import *
from stats import *
from parse import *
in_dir = '../../processed/'
wait_dir = '../../processed-waits-all/'
threshold = 10*8 # x seconds * 8 ticks/second
... | 28.616162 | 91 | 0.59054 | 447 | 2,833 | 3.630872 | 0.317673 | 0.017252 | 0.025878 | 0.017252 | 0.240912 | 0.200246 | 0.134319 | 0.110906 | 0.110906 | 0.110906 | 0 | 0.021998 | 0.229792 | 2,833 | 98 | 92 | 28.908163 | 0.721815 | 0.151077 | 0 | 0.151515 | 0 | 0 | 0.072712 | 0.010865 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9f4183a7a471d48d8699e0cea092ead72ef3fbf4 | 451 | py | Python | Week2/hammingdistance.py | arvinddoraiswamy/mybioinfo | e964fa20f1bdea06d2ef26f6ea8ad57847985929 | [
"MIT"
] | null | null | null | Week2/hammingdistance.py | arvinddoraiswamy/mybioinfo | e964fa20f1bdea06d2ef26f6ea8ad57847985929 | [
"MIT"
] | null | null | null | Week2/hammingdistance.py | arvinddoraiswamy/mybioinfo | e964fa20f1bdea06d2ef26f6ea8ad57847985929 | [
"MIT"
] | null | null | null | import sys
import os
#Adding directory to the path where Python searches for modules
module_folder = os.path.dirname('/opt/Courses/TechCourses/Bioinformatics/code/')
sys.path.insert(0, module_folder)
#Importing genemanipulating module. This has a lot of common functions.
import genemanip
if __name__ == "__main__":
... | 28.1875 | 80 | 0.776053 | 57 | 451 | 5.947368 | 0.754386 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012887 | 0.13969 | 451 | 15 | 81 | 30.066667 | 0.860825 | 0.292683 | 0 | 0 | 0 | 0 | 0.236593 | 0.141956 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.3 | 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 |
9f41885ef4980da1f529c701da55bce3e1535d59 | 4,343 | py | Python | edges_update.py | mknw/empathy-synchronous-dyad | d287a3bf5bbbbb94badfee3e1f50b9c141a3dfd9 | [
"MIT"
] | null | null | null | edges_update.py | mknw/empathy-synchronous-dyad | d287a3bf5bbbbb94badfee3e1f50b9c141a3dfd9 | [
"MIT"
] | null | null | null | edges_update.py | mknw/empathy-synchronous-dyad | d287a3bf5bbbbb94badfee3e1f50b9c141a3dfd9 | [
"MIT"
] | null | null | null | '''
Calculates the next time step for the state of the nodes
'''
import numpy as np
'''
The attribute state in every node defines the last state of the node. At the dictionary activityTimeLine we have the
evolution of the values for the state over time.
'''
def edges_update(graph, t, delta = 0.2):
# set dictiona... | 41.759615 | 130 | 0.581395 | 546 | 4,343 | 4.452381 | 0.210623 | 0.070341 | 0.097902 | 0.131633 | 0.494447 | 0.46812 | 0.422871 | 0.352118 | 0.320444 | 0.285068 | 0 | 0.016569 | 0.291273 | 4,343 | 103 | 131 | 42.165049 | 0.773229 | 0 | 0 | 0.193548 | 0 | 0 | 0.078615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032258 | null | null | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f454edd39bc4ecac171e665456f067652265840 | 815 | py | Python | gfworkflow/__main__.py | andersonbrands/gfworkflow | 81c646fd53b8227691bcd3e236f538fee0d9d93c | [
"MIT"
] | null | null | null | gfworkflow/__main__.py | andersonbrands/gfworkflow | 81c646fd53b8227691bcd3e236f538fee0d9d93c | [
"MIT"
] | null | null | null | gfworkflow/__main__.py | andersonbrands/gfworkflow | 81c646fd53b8227691bcd3e236f538fee0d9d93c | [
"MIT"
] | null | null | null | import logging
import sys
from typing import List
from gfworkflow import logger, R, logger_handler
from gfworkflow.cli import cli
def _create_file_handler() -> logging.FileHandler:
R.path.log_folder.mkdir(parents=True, exist_ok=True)
file_handler = logging.FileHandler(filename=R.path.log_file, mode='a')
... | 22.027027 | 83 | 0.669939 | 108 | 815 | 4.805556 | 0.5 | 0.127168 | 0.065511 | 0.111753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001541 | 0.203681 | 815 | 36 | 84 | 22.638889 | 0.798151 | 0 | 0 | 0.08 | 0 | 0.04 | 0.115337 | 0.031902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.08 | 0.2 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9f66f8ea3853c54893a888b9fe357c0539ffc15d | 5,056 | py | Python | challenge/agoda_cancellation_prediction.py | noamkari/IML.HUJI | 6708f8983dbbcddaba6caf7c759d6a24e0198e96 | [
"MIT"
] | null | null | null | challenge/agoda_cancellation_prediction.py | noamkari/IML.HUJI | 6708f8983dbbcddaba6caf7c759d6a24e0198e96 | [
"MIT"
] | null | null | null | challenge/agoda_cancellation_prediction.py | noamkari/IML.HUJI | 6708f8983dbbcddaba6caf7c759d6a24e0198e96 | [
"MIT"
] | null | null | null | from datetime import datetime
from sklearn.model_selection import train_test_split
from IMLearn import BaseEstimator
from challenge.agoda_cancellation_estimator import AgodaCancellationEstimator
import numpy as np
import pandas as pd
def load_data(filename: str, have_true_val: bool = True):
"""
Load Agoda bo... | 33.483444 | 114 | 0.626384 | 619 | 5,056 | 4.82391 | 0.332795 | 0.037508 | 0.036169 | 0.048225 | 0.157736 | 0.105492 | 0.054923 | 0.034159 | 0.034159 | 0.034159 | 0 | 0.015056 | 0.277492 | 5,056 | 150 | 115 | 33.706667 | 0.802354 | 0.233782 | 0 | 0.026667 | 0 | 0 | 0.17959 | 0.07514 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.04 | false | 0 | 0.08 | 0 | 0.146667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f67f28425f4ad39c250c2e0fa5fb6151b5c9f27 | 781 | py | Python | tests/testrand.py | schmittner/ctypescrypto | 7e21d26a30e736daa3de4fa693382241a2d794d2 | [
"MIT"
] | 21 | 2015-01-13T21:10:38.000Z | 2022-02-09T16:28:36.000Z | tests/testrand.py | schmittner/ctypescrypto | 7e21d26a30e736daa3de4fa693382241a2d794d2 | [
"MIT"
] | 22 | 2015-06-29T07:37:44.000Z | 2021-06-27T14:03:16.000Z | tests/testrand.py | schmittner/ctypescrypto | 7e21d26a30e736daa3de4fa693382241a2d794d2 | [
"MIT"
] | 20 | 2015-04-21T09:11:31.000Z | 2021-06-26T20:19:52.000Z | from ctypescrypto.rand import *
import unittest
class TestRand(unittest.TestCase):
def test_bytes(self):
b=bytes(100)
self.assertEqual(len(b),100)
b2=bytes(100)
self.assertNotEqual(b,b2)
def test_pseudo_bytes(self):
b=pseudo_bytes(100)
self.assertEqual(len(b),100... | 26.931034 | 54 | 0.635083 | 96 | 781 | 5 | 0.354167 | 0.072917 | 0.1 | 0.095833 | 0.616667 | 0.616667 | 0.4 | 0.283333 | 0 | 0 | 0 | 0.044983 | 0.259923 | 781 | 28 | 55 | 27.892857 | 0.785467 | 0.065301 | 0 | 0.25 | 0 | 0 | 0.123796 | 0.112792 | 0 | 0 | 0 | 0 | 0.208333 | 1 | 0.208333 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f6964c686da1d863644c9efb3d3ec8af8f55f06 | 7,733 | py | Python | day1/kapua-python-client/swagger_client/models/credential_creator.py | liang-faan/SmartIOT-Diec | 8336a4b558295295f10a82cf350d8b7ff3fb9f5c | [
"MIT"
] | 5 | 2019-05-30T02:55:16.000Z | 2020-03-03T14:18:23.000Z | day1/kapua-python-client/swagger_client/models/credential_creator.py | liang-faan/SmartIOT-Diec | 8336a4b558295295f10a82cf350d8b7ff3fb9f5c | [
"MIT"
] | 3 | 2019-12-27T00:53:23.000Z | 2020-02-17T05:29:19.000Z | day1/kapua-python-client/swagger_client/models/credential_creator.py | liang-faan/SmartIOT-Diec | 8336a4b558295295f10a82cf350d8b7ff3fb9f5c | [
"MIT"
] | 4 | 2019-06-04T06:26:14.000Z | 2021-01-07T04:25:32.000Z | # coding: utf-8
"""
Eclipse Kapua REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
i... | 29.972868 | 155 | 0.605845 | 875 | 7,733 | 5.142857 | 0.155429 | 0.044444 | 0.122667 | 0.108 | 0.496444 | 0.377778 | 0.325556 | 0.307333 | 0.163333 | 0.121111 | 0 | 0.016397 | 0.305961 | 7,733 | 257 | 156 | 30.089494 | 0.822061 | 0.311781 | 0 | 0.082645 | 1 | 0 | 0.091598 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14876 | false | 0.008264 | 0.024793 | 0 | 0.297521 | 0.016529 | 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 |
9f69ccc45dbc69d8123c58c6aba7422342b05f92 | 1,510 | py | Python | test/fourier-FS-test.py | yehuohan/ln-ss | e5db6ea616515d0da8d44dfec70e449c6e7dd572 | [
"MIT"
] | 1 | 2019-12-13T09:13:26.000Z | 2019-12-13T09:13:26.000Z | test/fourier-FS-test.py | yehuohan/ln-ss | e5db6ea616515d0da8d44dfec70e449c6e7dd572 | [
"MIT"
] | null | null | null | test/fourier-FS-test.py | yehuohan/ln-ss | e5db6ea616515d0da8d44dfec70e449c6e7dd572 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys,os
sys.path.append(os.getcwd() + '/../')
import lnss.fourier as fourier
import numpy as np
import scipy as sp
import sympy as sy
from sympy import Piecewise, integrate, fourier_series, symbols, DiracDelta
from sympy import Sum, exp, cos, sin, pi, I, Abs, oo
from sympy.plotting import... | 32.12766 | 94 | 0.645695 | 294 | 1,510 | 3.255102 | 0.380952 | 0.014629 | 0.037618 | 0.045977 | 0.16092 | 0.147335 | 0.111808 | 0.111808 | 0.106583 | 0.060606 | 0 | 0.036378 | 0.144371 | 1,510 | 46 | 95 | 32.826087 | 0.704334 | 0.037748 | 0 | 0 | 0 | 0 | 0.077985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.305556 | 0 | 0.333333 | 0.138889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9f69ee869c49c061104f5843d2b9d9cf865976e7 | 26,361 | py | Python | home_application/tests.py | yang-wu/cmp | 6d6236ab8c24768373a483c5d0836263d08e5852 | [
"Apache-2.0"
] | 3 | 2019-04-09T03:22:52.000Z | 2021-09-09T02:13:04.000Z | home_application/tests.py | yang-wu/cmp | 6d6236ab8c24768373a483c5d0836263d08e5852 | [
"Apache-2.0"
] | null | null | null | home_application/tests.py | yang-wu/cmp | 6d6236ab8c24768373a483c5d0836263d08e5852 | [
"Apache-2.0"
] | 1 | 2019-03-31T15:26:12.000Z | 2019-03-31T15:26:12.000Z | #! coding=utf-8
from django.db.models import Q
import django.utils.timezone as timezone
import json
import time
import datetime
import sys
import boto3
from .models import Instance, Tcmpaccount
from common.utils import random_id
reload(sys)
sys.setdefaultencoding("utf-8")
class CloudManager(object):
def __init_... | 41.253521 | 159 | 0.554873 | 2,581 | 26,361 | 5.52654 | 0.169702 | 0.025869 | 0.011848 | 0.014582 | 0.232614 | 0.182768 | 0.154164 | 0.126893 | 0.106001 | 0.081744 | 0 | 0.007765 | 0.301354 | 26,361 | 638 | 160 | 41.318182 | 0.766737 | 0.018626 | 0 | 0.240631 | 0 | 0 | 0.156516 | 0.013526 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017751 | 0.021696 | null | null | 0.003945 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9f79f56ea417b015533d25ed019c157b0ad28d16 | 542 | py | Python | page_objects/Gnod_Home_Page.py | akkuldn/Gnode-Tests | 9a610c1a8e09efec643b67dbb878e9ea1e0cee09 | [
"MIT"
] | null | null | null | page_objects/Gnod_Home_Page.py | akkuldn/Gnode-Tests | 9a610c1a8e09efec643b67dbb878e9ea1e0cee09 | [
"MIT"
] | null | null | null | page_objects/Gnod_Home_Page.py | akkuldn/Gnode-Tests | 9a610c1a8e09efec643b67dbb878e9ea1e0cee09 | [
"MIT"
] | 1 | 2020-01-10T14:40:20.000Z | 2020-01-10T14:40:20.000Z | """
This redirects us to the Home page of the Gnod website.
URL: http://www.gnod.com/
"""
from .Base_Page import Base_Page
from .Productchart_Objects import Productchart_Objects
from .GnodMusic_Objects import GnodMusic_Objects
from .Moviemap_Objects import Moviemap_Objects
class Gnod_Home_Page(Base_Page,Productchart_O... | 31.882353 | 88 | 0.741697 | 75 | 542 | 5.173333 | 0.453333 | 0.061856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186347 | 542 | 17 | 89 | 31.882353 | 0.879819 | 0.313653 | 0 | 0 | 0 | 0 | 0.193833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9f7e0e71baf22de278d719056a9c71cacafbd46f | 556 | py | Python | public/code/change.py | xrachitx/audioRecordJS | bc16d736a4ccb613b8032b927cea48b2a7185447 | [
"Apache-2.0"
] | null | null | null | public/code/change.py | xrachitx/audioRecordJS | bc16d736a4ccb613b8032b927cea48b2a7185447 | [
"Apache-2.0"
] | null | null | null | public/code/change.py | xrachitx/audioRecordJS | bc16d736a4ccb613b8032b927cea48b2a7185447 | [
"Apache-2.0"
] | null | null | null | import wave, struct, math, random
from pydub import AudioSegment
from scipy.io.wavfile import read
import matplotlib.pyplot as plt
import argparse
import os
parser = argparse.ArgumentParser()
parser.add_argument("fileAddr",help = "The file for which downsampling and bitrate adjustment needs to be done",type= str)
ar... | 27.8 | 122 | 0.751799 | 83 | 556 | 4.975904 | 0.674699 | 0.058111 | 0.043584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.122302 | 556 | 20 | 123 | 27.8 | 0.829918 | 0.089928 | 0 | 0 | 0 | 0 | 0.170635 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9f8cdcb096b44a18dffc7be43f748c325a8d5923 | 1,341 | py | Python | program/transformer/conditions_reducer.py | mmsbrggr/polar | 34348baf6992232e47cee7a4d56b5a96567c50b8 | [
"MIT"
] | 2 | 2021-10-06T13:29:24.000Z | 2021-11-11T19:42:43.000Z | program/transformer/conditions_reducer.py | mmsbrggr/polar | 34348baf6992232e47cee7a4d56b5a96567c50b8 | [
"MIT"
] | 1 | 2022-01-26T15:58:28.000Z | 2022-01-28T13:47:28.000Z | program/transformer/conditions_reducer.py | mmsbrggr/polar | 34348baf6992232e47cee7a4d56b5a96567c50b8 | [
"MIT"
] | 2 | 2021-10-01T15:08:52.000Z | 2022-03-15T14:10:06.000Z | from typing import List, Dict
from symengine.lib.symengine_wrapper import Symbol
from .transformer import Transformer
from program import Program
from program.assignment import Assignment, PolyAssignment
from program.condition import Atom
class ConditionsReducer(Transformer):
"""
Transforms all condition at... | 38.314286 | 113 | 0.713647 | 159 | 1,341 | 5.855346 | 0.415094 | 0.070892 | 0.064447 | 0.053706 | 0.066595 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000946 | 0.211782 | 1,341 | 34 | 114 | 39.441176 | 0.879849 | 0.144668 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.26087 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9f8cdd821f21d313f0a162bcb243d68855172e76 | 284 | py | Python | Ene-Jun-2019/Luis Ornelas/Segundo Parcial/Ejercicio 3/Ejercicio3-Parcial2-DB.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 41 | 2017-09-26T09:36:32.000Z | 2022-03-19T18:05:25.000Z | Ene-Jun-2019/Luis Ornelas/Segundo Parcial/Ejercicio 3/Ejercicio3-Parcial2-DB.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 67 | 2017-09-11T05:06:12.000Z | 2022-02-14T04:44:04.000Z | Ene-Jun-2019/Luis Ornelas/Segundo Parcial/Ejercicio 3/Ejercicio3-Parcial2-DB.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 210 | 2017-09-01T00:10:08.000Z | 2022-03-19T18:05:12.000Z | import sqlite3
conexion = sqlite3.connect('RandUser.db')
cursor = conexion.cursor()
cursor.execute('''
CREATE TABLE Users(
Gender TEXT NOT NULL,
First TEXT NOT NULL,
Last TEXT NOT NULL,
Location TEXT NOT NULL,
Email TEXT NOT NULL)
''')
conexion.close()
| 17.75 | 41 | 0.669014 | 37 | 284 | 5.135135 | 0.540541 | 0.184211 | 0.289474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009132 | 0.228873 | 284 | 15 | 42 | 18.933333 | 0.858447 | 0 | 0 | 0 | 0 | 0 | 0.591549 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 |
9f914caa324eee26adb119e9a185435ae5c73a7d | 275 | py | Python | Class Work/Quiz 2/Static.py | Pondorasti/CS-1.1 | f685e3422f1170e709a6cb983289aa5df31288a4 | [
"MIT"
] | null | null | null | Class Work/Quiz 2/Static.py | Pondorasti/CS-1.1 | f685e3422f1170e709a6cb983289aa5df31288a4 | [
"MIT"
] | null | null | null | Class Work/Quiz 2/Static.py | Pondorasti/CS-1.1 | f685e3422f1170e709a6cb983289aa5df31288a4 | [
"MIT"
] | null | null | null | class Sword():
def __init__(self, name, damage):
self.damage = damage
self.name = name
@staticmethod
def showAbilities():
print("Swords can only attack orcs and elves, and do zero damage agains magic armour.")
Sword.showAbilities()
| 22.916667 | 95 | 0.643636 | 33 | 275 | 5.242424 | 0.666667 | 0.092486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265455 | 275 | 11 | 96 | 25 | 0.856436 | 0 | 0 | 0 | 0 | 0 | 0.283636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f91b1277eac740d8bc5eb7292b1863a1ba0d2a0 | 325 | py | Python | OTP GENERATOR INT.py | saiajay1/4-Digits-OTP-Generator | 19975cc4b9d488661c5c7e68e4da46ff6fdf84b1 | [
"MIT"
] | null | null | null | OTP GENERATOR INT.py | saiajay1/4-Digits-OTP-Generator | 19975cc4b9d488661c5c7e68e4da46ff6fdf84b1 | [
"MIT"
] | null | null | null | OTP GENERATOR INT.py | saiajay1/4-Digits-OTP-Generator | 19975cc4b9d488661c5c7e68e4da46ff6fdf84b1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# GITHUB USERNAME SAIAJAY1
import math, random
def generateOTP() :
digits = "0123456789"
OTP = ""
for i in range(4) :
OTP += digits[math.floor(random.random() * 10)]
return OTP
if __name__ == "__main__" :
print("OTP of 4 digits:", generateOTP())
# MADE BY AJAY ... | 19.117647 | 50 | 0.646154 | 45 | 325 | 4.488889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062257 | 0.209231 | 325 | 17 | 51 | 19.117647 | 0.723735 | 0.24 | 0 | 0 | 1 | 0 | 0.139344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f9b0b3c1bee1db8afde5ccb7c628192aab8b7dd | 610 | py | Python | tests/test_basics.py | Edinburgh-Genome-Foundry/easy_dna | 70ab5a244166fe2f47ca29c166d9988de3bf4bc3 | [
"MIT"
] | 6 | 2019-10-08T16:59:38.000Z | 2022-02-09T04:09:01.000Z | tests/test_basics.py | Edinburgh-Genome-Foundry/easy_dna | 70ab5a244166fe2f47ca29c166d9988de3bf4bc3 | [
"MIT"
] | 5 | 2020-01-30T15:38:40.000Z | 2020-02-14T13:33:12.000Z | tests/test_basics.py | Edinburgh-Genome-Foundry/easy_dna | 70ab5a244166fe2f47ca29c166d9988de3bf4bc3 | [
"MIT"
] | null | null | null | from easy_dna import (
dna_pattern_to_regexpr,
record_with_different_sequence,
sequence_to_biopython_record,
annotate_record,
list_common_enzymes,
)
def test_record_with_different_sequence():
record = sequence_to_biopython_record("ATGCATGCATGC")
annotate_record(record, (0, 5), label="my_la... | 30.5 | 75 | 0.768852 | 79 | 610 | 5.506329 | 0.43038 | 0.068966 | 0.131034 | 0.186207 | 0.151724 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015238 | 0.139344 | 610 | 19 | 76 | 32.105263 | 0.813333 | 0 | 0 | 0 | 0 | 0 | 0.059016 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.2 | 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 |
9f9bcdc4af4b9daf46f0ae73b1ceb5146feb0758 | 10,309 | py | Python | datablend/core/blend/blender.py | bahp/datablend | f0b69a012af6ea7cedc9210d46b3047d8e0bf504 | [
"FTL",
"RSA-MD",
"CECILL-B"
] | null | null | null | datablend/core/blend/blender.py | bahp/datablend | f0b69a012af6ea7cedc9210d46b3047d8e0bf504 | [
"FTL",
"RSA-MD",
"CECILL-B"
] | 1 | 2021-05-26T13:09:08.000Z | 2021-05-26T13:09:08.000Z | datablend/core/blend/blender.py | bahp/datablend | f0b69a012af6ea7cedc9210d46b3047d8e0bf504 | [
"FTL",
"RSA-MD",
"CECILL-B"
] | null | null | null | # Libraries
import re
import ast
import yaml
import json
import copy
import logging
import numpy as np
import pandas as pd
import logging.config
# Specific
from pathlib import Path
# Own libraries
from datablend.utils.pandas import save_xlsx
from datablend.utils.pandas import save_df_dict
from datablend.core.blend.co... | 28.636111 | 86 | 0.568047 | 1,197 | 10,309 | 4.849624 | 0.208855 | 0.01447 | 0.023428 | 0.018605 | 0.475797 | 0.445134 | 0.371748 | 0.356589 | 0.319208 | 0.286133 | 0 | 0.004318 | 0.34853 | 10,309 | 359 | 87 | 28.715877 | 0.860036 | 0.336987 | 0 | 0.368056 | 0 | 0 | 0.047419 | 0 | 0 | 0 | 0 | 0.013928 | 0 | 1 | 0.090278 | false | 0.027778 | 0.138889 | 0 | 0.326389 | 0.034722 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9f9ffb738f0935501e2a111cfc73719491533c19 | 1,397 | py | Python | BetterNN.py | CapezOnMyBack/Maturit-tsarbeit | d4a3bc6290054706d784fdb2792a18567f45bc2d | [
"MIT"
] | null | null | null | BetterNN.py | CapezOnMyBack/Maturit-tsarbeit | d4a3bc6290054706d784fdb2792a18567f45bc2d | [
"MIT"
] | null | null | null | BetterNN.py | CapezOnMyBack/Maturit-tsarbeit | d4a3bc6290054706d784fdb2792a18567f45bc2d | [
"MIT"
] | null | null | null | from typing import List
import numpy as np
from scipy.special import softmax
from config import wr
class Network:
@classmethod
def new(cls, weights, biases, architecture):
network = cls(architecture, False)
network.weights = weights
network.biases = biases
return network
... | 27.94 | 88 | 0.56335 | 161 | 1,397 | 4.826087 | 0.335404 | 0.10296 | 0.065637 | 0.081081 | 0.151866 | 0.151866 | 0.092664 | 0.092664 | 0.092664 | 0 | 0 | 0.012646 | 0.264137 | 1,397 | 49 | 89 | 28.510204 | 0.743191 | 0.083035 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.151515 | false | 0 | 0.121212 | 0.030303 | 0.393939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9fb41390eb31cb526ab9992e027c41734885c565 | 7,211 | py | Python | evennia/accounts/migrations/0001_initial.py | Jaykingamez/evennia | cf7cab1fea99ede3efecb70a65c3eb0fba1d3745 | [
"BSD-3-Clause"
] | 1,544 | 2015-01-01T22:16:31.000Z | 2022-03-31T19:17:45.000Z | evennia/accounts/migrations/0001_initial.py | Jaykingamez/evennia | cf7cab1fea99ede3efecb70a65c3eb0fba1d3745 | [
"BSD-3-Clause"
] | 1,686 | 2015-01-02T18:26:31.000Z | 2022-03-31T20:12:03.000Z | evennia/accounts/migrations/0001_initial.py | Jaykingamez/evennia | cf7cab1fea99ede3efecb70a65c3eb0fba1d3745 | [
"BSD-3-Clause"
] | 867 | 2015-01-02T21:01:54.000Z | 2022-03-29T00:28:27.000Z | # -*- coding: utf-8 -*-
from django.db import models, migrations
import django.utils.timezone
import django.core.validators
class Migration(migrations.Migration):
dependencies = [("auth", "0001_initial"), ("typeclasses", "0001_initial")]
operations = [
migrations.CreateModel(
name="Acc... | 40.971591 | 255 | 0.412703 | 545 | 7,211 | 5.302752 | 0.359633 | 0.083737 | 0.043253 | 0.033218 | 0.202768 | 0.195156 | 0.168858 | 0.114187 | 0.085813 | 0.044983 | 0 | 0.008688 | 0.5052 | 7,211 | 175 | 256 | 41.205714 | 0.801289 | 0.002912 | 0 | 0.410714 | 0 | 0.029762 | 0.248331 | 0.00946 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.005952 | 0.017857 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9fbd6883d53eb7c09612367675c514bbfe675cb2 | 4,617 | py | Python | lib/bango/tests/test_forms.py | muffinresearch/solitude | 6cb37f591956111b54e5c4098602be21c8f4b438 | [
"BSD-3-Clause"
] | null | null | null | lib/bango/tests/test_forms.py | muffinresearch/solitude | 6cb37f591956111b54e5c4098602be21c8f4b438 | [
"BSD-3-Clause"
] | null | null | null | lib/bango/tests/test_forms.py | muffinresearch/solitude | 6cb37f591956111b54e5c4098602be21c8f4b438 | [
"BSD-3-Clause"
] | null | null | null | import json
import mock
from nose.tools import eq_, ok_
from ..forms import (CreateBankDetailsForm,
CreateBillingConfigurationForm as BillingForm, EventForm,
PriceForm, VatNumberForm)
from .samples import (event_notification, good_bank_details,
good_bill... | 32.0625 | 78 | 0.632878 | 532 | 4,617 | 5.31015 | 0.233083 | 0.049558 | 0.046726 | 0.044602 | 0.423363 | 0.362478 | 0.274336 | 0.174867 | 0.112566 | 0.080708 | 0 | 0.003129 | 0.238467 | 4,617 | 143 | 79 | 32.286713 | 0.800341 | 0.004765 | 0 | 0.293578 | 0 | 0 | 0.116264 | 0.013063 | 0 | 0 | 0 | 0.006993 | 0.055046 | 1 | 0.201835 | false | 0 | 0.082569 | 0 | 0.321101 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9fc157befb83ca253b1c909a924cf07c6351e512 | 2,833 | py | Python | neon/transforms/logistic.py | zhenglab/neon | ba5b008a03001c2a2e38a1e688b4f265c6461539 | [
"Apache-2.0"
] | 3 | 2017-02-02T05:20:48.000Z | 2021-07-07T16:50:41.000Z | neon/transforms/logistic.py | tambetm/neon | 1597082ad0bab59102f1ceb20feb08c5a0bf9d04 | [
"Apache-2.0"
] | null | null | null | neon/transforms/logistic.py | tambetm/neon | 1597082ad0bab59102f1ceb20feb08c5a0bf9d04 | [
"Apache-2.0"
] | null | null | null | # ----------------------------------------------------------------------------
# Copyright 2014 Nervana Systems Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... | 37.773333 | 78 | 0.620191 | 326 | 2,833 | 5.349693 | 0.346626 | 0.052179 | 0.029817 | 0.041284 | 0.383601 | 0.365826 | 0.294725 | 0.294725 | 0.268349 | 0.268349 | 0 | 0.005698 | 0.256618 | 2,833 | 74 | 79 | 38.283784 | 0.822412 | 0.632192 | 0 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9fc1c509fd9d10b6c882e2927499351c58b31459 | 993 | py | Python | employees/admin.py | carv-silva/employeeLabs | b6c465c4081951ddaa83715234feb1c4a7861da4 | [
"MIT"
] | null | null | null | employees/admin.py | carv-silva/employeeLabs | b6c465c4081951ddaa83715234feb1c4a7861da4 | [
"MIT"
] | null | null | null | employees/admin.py | carv-silva/employeeLabs | b6c465c4081951ddaa83715234feb1c4a7861da4 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib import admin
from employees.models import Employee, Department, Payroll
class Departments(admin.ModelAdmin):
list_display = ('id', 'name', 'budget', 'description')
list_display_links = ('id', 'name')
search_fields = ('name', 'description')
# registro ... | 22.568182 | 70 | 0.677744 | 105 | 993 | 6.27619 | 0.390476 | 0.100152 | 0.086495 | 0.118361 | 0.406677 | 0.291351 | 0.103187 | 0 | 0 | 0 | 0 | 0 | 0.183283 | 993 | 43 | 71 | 23.093023 | 0.812577 | 0.118832 | 0 | 0.315789 | 0 | 0 | 0.187935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.736842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9fc9813579226c6d9e8c810ec7854a021ec51ac4 | 5,398 | py | Python | usermanagementorg/views_group_insert_user.py | shagun30/djambala-2 | 06f14e3dd237d7ebf535c62172cfe238c3934f4d | [
"BSD-3-Clause"
] | null | null | null | usermanagementorg/views_group_insert_user.py | shagun30/djambala-2 | 06f14e3dd237d7ebf535c62172cfe238c3934f4d | [
"BSD-3-Clause"
] | null | null | null | usermanagementorg/views_group_insert_user.py | shagun30/djambala-2 | 06f14e3dd237d7ebf535c62172cfe238c3934f4d | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
/dms/usermanagementorg/views_group_insert_user.py
.. loescht User mit dem entsprechenden User-Namen
Django content Management System
Hans Rauch
hans.rauch@gmx.net
Die Programme des dms-Systems koennen frei genutzt und den spezifischen
Beduerfnissen entsprechend angepasst werden.
... | 38.014085 | 111 | 0.686921 | 721 | 5,398 | 4.918169 | 0.314841 | 0.041455 | 0.043429 | 0.062042 | 0.190073 | 0.124083 | 0.075014 | 0.027073 | 0 | 0 | 0 | 0.013158 | 0.197481 | 5,398 | 141 | 112 | 38.283688 | 0.805402 | 0.165802 | 0 | 0.040404 | 0 | 0 | 0.075112 | 0.023094 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040404 | false | 0.010101 | 0.323232 | 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 |
9fcc087d0213d58c6eda41f9431cb07b11e01ece | 362 | py | Python | py_lecture/scripts/python_timer.py | yasutomo57jp/ros_lecture | 811afaded5a5780fa1291bd41196d80446da1e53 | [
"MIT"
] | 110 | 2018-11-13T15:04:35.000Z | 2022-03-27T20:48:03.000Z | py_lecture/scripts/python_timer.py | yasutomo57jp/ros_lecture | 811afaded5a5780fa1291bd41196d80446da1e53 | [
"MIT"
] | 4 | 2020-07-16T13:32:22.000Z | 2022-01-11T01:08:12.000Z | py_lecture/scripts/python_timer.py | yasutomo57jp/ros_lecture | 811afaded5a5780fa1291bd41196d80446da1e53 | [
"MIT"
] | 57 | 2019-07-02T23:43:17.000Z | 2022-03-27T20:47:28.000Z | #!/usr/bin/env python
import rospy
def timerCallback(event):
rospy.loginfo("timer callback")
def timer():
rospy.init_node('timer')
rospy.sleep(2.)
rospy.loginfo("sleep 2s")
rospy.Timer(rospy.Duration(2.0), timerCallback)
rospy.spin()
if __name__ == '__main__':
try:
timer()
... | 20.111111 | 51 | 0.657459 | 44 | 362 | 5.204545 | 0.613636 | 0.131004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013841 | 0.201657 | 362 | 18 | 52 | 20.111111 | 0.778547 | 0.055249 | 0 | 0 | 0 | 0 | 0.102339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9fcc1254a804afb304837828de33ef4e319d1ae3 | 353 | py | Python | FounderApp/permissions.py | idrissdjio/finder-api-app | e6290e440ffbd98b9f37c67d1ab8a0d8c80bc7ae | [
"MIT"
] | null | null | null | FounderApp/permissions.py | idrissdjio/finder-api-app | e6290e440ffbd98b9f37c67d1ab8a0d8c80bc7ae | [
"MIT"
] | null | null | null | FounderApp/permissions.py | idrissdjio/finder-api-app | e6290e440ffbd98b9f37c67d1ab8a0d8c80bc7ae | [
"MIT"
] | null | null | null | from rest_framework import permissions
from . import views
class Found_Permissions(permissions.BasePermission):
"""Allow the user to edit its own post"""
def has_object_permission(self, request, view, obj):
if request.method in permissions.SAFE_METHODS:
return True
return obj.us... | 27.153846 | 56 | 0.716714 | 46 | 353 | 5.369565 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209632 | 353 | 12 | 57 | 29.416667 | 0.885305 | 0.09915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 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 |
9fcd1743cd9ed672281ed388bf5bb69e59ff4b05 | 340 | py | Python | esp_coredump/corefile/soc_headers/esp32c3.py | espressif/esp-coredump | 612dd10a0b99a8af4c9922934f1d3134050ed8a7 | [
"Apache-2.0"
] | null | null | null | esp_coredump/corefile/soc_headers/esp32c3.py | espressif/esp-coredump | 612dd10a0b99a8af4c9922934f1d3134050ed8a7 | [
"Apache-2.0"
] | null | null | null | esp_coredump/corefile/soc_headers/esp32c3.py | espressif/esp-coredump | 612dd10a0b99a8af4c9922934f1d3134050ed8a7 | [
"Apache-2.0"
] | 1 | 2022-03-31T11:02:19.000Z | 2022-03-31T11:02:19.000Z | #
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
#
# SPDX-License-Identifier: Apache-2.0
#
SOC_IRAM_LOW = 0x4037c000
SOC_IRAM_HIGH = 0x403e0000
SOC_DRAM_LOW = 0x3fc80000
SOC_DRAM_HIGH = 0x3fce0000
SOC_RTC_DRAM_LOW = 0x50000000
SOC_RTC_DRAM_HIGH = 0x50002000
SOC_RTC_DATA_LOW = 0x50000000
SOC_RTC_DAT... | 22.666667 | 66 | 0.820588 | 50 | 340 | 5.18 | 0.52 | 0.092664 | 0.07722 | 0.146718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23588 | 0.114706 | 340 | 14 | 67 | 24.285714 | 0.624585 | 0.294118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.34188 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c7c4296092d8d6b9bb5c2a9a99e20a531afff2b | 486 | py | Python | sshtools_pkg/rmdir.py | nicolasawelsh/sshtools | c34d1496f030e652cc0f5c0e86231d5b4dd14057 | [
"MIT"
] | null | null | null | sshtools_pkg/rmdir.py | nicolasawelsh/sshtools | c34d1496f030e652cc0f5c0e86231d5b4dd14057 | [
"MIT"
] | null | null | null | sshtools_pkg/rmdir.py | nicolasawelsh/sshtools | c34d1496f030e652cc0f5c0e86231d5b4dd14057 | [
"MIT"
] | null | null | null | from stat import S_ISDIR
import posixpath
def rmdir(sftp, remote_path, level=0):
# Recursively delete remote dir
for file in sftp.listdir_attr(remote_path):
filepath = posixpath.join(remote_path, file.filename)
if S_ISDIR(file.st_mode):
rmdir(sftp, filepath, level=(level... | 28.588235 | 66 | 0.639918 | 61 | 486 | 4.95082 | 0.508197 | 0.165563 | 0.139073 | 0.178808 | 0.284768 | 0.284768 | 0.284768 | 0 | 0 | 0 | 0 | 0.005666 | 0.273663 | 486 | 16 | 67 | 30.375 | 0.849858 | 0.059671 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
4c84479fd636eb8c21b18fb7b7319487f75b0ba6 | 13,165 | py | Python | backend/document/config.py | linearcombination/InterleavedResourcesGenerator | 8c2f8ae30304eab5806e516c58158e6c3ddeaa2b | [
"MIT"
] | 1 | 2022-01-10T21:03:26.000Z | 2022-01-10T21:03:26.000Z | backend/document/config.py | linearcombination/InterleavedResourcesGenerator | 8c2f8ae30304eab5806e516c58158e6c3ddeaa2b | [
"MIT"
] | null | null | null | backend/document/config.py | linearcombination/InterleavedResourcesGenerator | 8c2f8ae30304eab5806e516c58158e6c3ddeaa2b | [
"MIT"
] | 1 | 2021-09-10T19:49:59.000Z | 2021-09-10T19:49:59.000Z | """This module provides configuration values used by the application."""
import logging
import os
from collections.abc import Mapping, Sequence
from logging import config as lc
from typing import Any, Optional, Union, final
import jinja2
import yaml
from pydantic import AnyHttpUrl, BaseModel, BaseSettings, EmailStr, H... | 42.060703 | 224 | 0.658033 | 1,728 | 13,165 | 4.84838 | 0.277199 | 0.017904 | 0.021485 | 0.011817 | 0.221294 | 0.161256 | 0.114825 | 0.073048 | 0.065887 | 0.046789 | 0 | 0.009051 | 0.21109 | 13,165 | 312 | 225 | 42.195513 | 0.797612 | 0.296772 | 0 | 0.021739 | 0 | 0.016304 | 0.32214 | 0.112848 | 0 | 0 | 0 | 0.00641 | 0 | 1 | 0.038043 | false | 0.005435 | 0.048913 | 0.005435 | 0.554348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4c85adbb8011ac474ed353a0c878b261787c1ee5 | 593 | py | Python | update_rrd.py | mattlqx/poolpi | 5b343d41920222a4cc5b502da6a23b8b07db57f9 | [
"MIT"
] | 4 | 2017-07-18T20:49:43.000Z | 2019-01-14T14:19:54.000Z | update_rrd.py | mattlqx/poolpi | 5b343d41920222a4cc5b502da6a23b8b07db57f9 | [
"MIT"
] | null | null | null | update_rrd.py | mattlqx/poolpi | 5b343d41920222a4cc5b502da6a23b8b07db57f9 | [
"MIT"
] | 1 | 2019-05-22T01:59:03.000Z | 2019-05-22T01:59:03.000Z | #!/usr/bin/python
from temperature import TemperatureProbe
from location import temperature_probes
import os
import rrdtool
# Update rrd with weather station and temperature probe data
args = [
'{rrd_dir}/temperature.rrd'.format(rrd_dir=os.path.dirname(__file__)),
'-t', ':'.join(temperature_probes.keys()),
... | 26.954545 | 82 | 0.682968 | 70 | 593 | 5.642857 | 0.528571 | 0.129114 | 0.086076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173693 | 593 | 21 | 83 | 28.238095 | 0.806122 | 0.126476 | 0 | 0 | 0 | 0 | 0.116279 | 0.04845 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c85fe7760a701fdce4aa600ab8b62ad9c8753bf | 1,501 | py | Python | recommend.py | shenweichen/onethink | 39ccd90652e451c570cfc7e4ca82cc711faa698c | [
"Apache-2.0"
] | 2 | 2016-09-23T15:35:14.000Z | 2018-06-18T02:03:45.000Z | recommend.py | shenweichen/Book-information-management-system-based-on-OneThink | 39ccd90652e451c570cfc7e4ca82cc711faa698c | [
"Apache-2.0"
] | null | null | null | recommend.py | shenweichen/Book-information-management-system-based-on-OneThink | 39ccd90652e451c570cfc7e4ca82cc711faa698c | [
"Apache-2.0"
] | null | null | null | #-*- coding:utf-8 -*-
import svdRec
import numpy as np
from numpy import *
import MySQLdb
import sys
def loadMatrixFromMysql(conn):
cur = conn.cursor()
cur.execute("select count(*) from ot_book")#读取书本的总数
totalbook=cur.fetchone()[0];
cur.execute("select count(*) from ot_member")#读取用户总数
totaluser=cur.fetchone()[0]... | 23.453125 | 74 | 0.712858 | 224 | 1,501 | 4.727679 | 0.366071 | 0.050992 | 0.062323 | 0.033994 | 0.367328 | 0.333333 | 0.073654 | 0 | 0 | 0 | 0 | 0.025392 | 0.107928 | 1,501 | 64 | 75 | 23.453125 | 0.765497 | 0.332445 | 0 | 0.1 | 0 | 0 | 0.171574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025 | 0.125 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c8a9710822aed2b10ef2c9084aef54a195f69c5 | 1,743 | py | Python | bajra/engines/postgres.py | Spratiher9/Bajra | c668ab8879356cca7eff8b8e66f28bae34f8f6e6 | [
"Apache-2.0"
] | null | null | null | bajra/engines/postgres.py | Spratiher9/Bajra | c668ab8879356cca7eff8b8e66f28bae34f8f6e6 | [
"Apache-2.0"
] | null | null | null | bajra/engines/postgres.py | Spratiher9/Bajra | c668ab8879356cca7eff8b8e66f28bae34f8f6e6 | [
"Apache-2.0"
] | null | null | null | from psycopg2 import connect as psycopg2_connect
from psycopg2.extras import RealDictCursor
from .base import EngineBase
class PostgreSQLEngine(EngineBase):
def __init__(self, dsn=None, host=None, port=5432,
user=None, password=None, database=None, **kwargs):
self._params = {
... | 28.112903 | 68 | 0.578887 | 187 | 1,743 | 5.272727 | 0.278075 | 0.111562 | 0.076065 | 0.054767 | 0.258621 | 0.207911 | 0.184584 | 0.184584 | 0.10142 | 0.10142 | 0 | 0.006568 | 0.301205 | 1,743 | 62 | 69 | 28.112903 | 0.802956 | 0 | 0 | 0.148936 | 0 | 0 | 0.050459 | 0.015482 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255319 | false | 0.042553 | 0.06383 | 0.06383 | 0.468085 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4c8b3e63eb866130002a01ab67faac8c67354363 | 1,127 | py | Python | Find Minimum in Rotated Array.py | lisnb/leetcode | 7875e4ff20412b663c59e57f76d08cd62b91481c | [
"MIT"
] | 2 | 2015-04-28T05:10:15.000Z | 2015-11-20T17:05:29.000Z | Find Minimum in Rotated Array.py | lisnb/leetcode | 7875e4ff20412b663c59e57f76d08cd62b91481c | [
"MIT"
] | null | null | null | Find Minimum in Rotated Array.py | lisnb/leetcode | 7875e4ff20412b663c59e57f76d08cd62b91481c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: LiSnB
# @Date: 2015-01-09 11:01:40
# @Last Modified by: LiSnB
# @Last Modified time: 2015-01-09 11:21:54
# @Email: lisnb.h@gmail.com
"""
# @comment here:
"""
class Solution:
# @param num, a list of integer
# @return an integer
def findMin(self,... | 21.264151 | 76 | 0.508429 | 180 | 1,127 | 3.138889 | 0.333333 | 0.19823 | 0.127434 | 0.035398 | 0.286726 | 0.226549 | 0.014159 | 0 | 0 | 0 | 0 | 0.099869 | 0.324756 | 1,127 | 53 | 77 | 21.264151 | 0.642576 | 0.306122 | 0 | 0.083333 | 0 | 0 | 0.01071 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4c949f524a4ea1edcd517df3a7c52317ce52e0b8 | 1,897 | py | Python | chb/app/JumpTable.py | psifertex/CodeHawk-Binary | 1711d7b16d32a2e9ffa9d22af483182b3f9ded77 | [
"MIT"
] | null | null | null | chb/app/JumpTable.py | psifertex/CodeHawk-Binary | 1711d7b16d32a2e9ffa9d22af483182b3f9ded77 | [
"MIT"
] | null | null | null | chb/app/JumpTable.py | psifertex/CodeHawk-Binary | 1711d7b16d32a2e9ffa9d22af483182b3f9ded77 | [
"MIT"
] | null | null | null | # ------------------------------------------------------------------------------
# Access to the CodeHawk Binary Analyzer Analysis Results
# Author: Henny Sipma
# ------------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2016-2020 Kestrel Technology LLC
#
#... | 43.113636 | 80 | 0.619926 | 247 | 1,897 | 4.724696 | 0.526316 | 0.075407 | 0.022279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005175 | 0.185029 | 1,897 | 43 | 81 | 44.116279 | 0.749677 | 0.739589 | 0 | 0 | 0 | 0 | 0.040685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0 | 0.076923 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c94e0c60a012be28d5ee230a21c06cbdbf5cc59 | 1,145 | py | Python | comment_fold.py | mapsiter/CommentFold | 07d165fc1829714b9f609a5007d726df3f100173 | [
"MIT"
] | 3 | 2019-06-22T06:36:29.000Z | 2019-10-12T23:04:03.000Z | comment_fold.py | usernamelectro/CommentFold | 62befcc48959cf072aa38e98997e62e778098f27 | [
"MIT"
] | 1 | 2019-04-26T13:47:12.000Z | 2019-05-01T12:16:28.000Z | comment_fold.py | usernamelectro/CommentFold | 62befcc48959cf072aa38e98997e62e778098f27 | [
"MIT"
] | 1 | 2021-06-13T18:52:19.000Z | 2021-06-13T18:52:19.000Z | import sublime
import sublime_plugin
def char_at(view, point):
return view.substr(sublime.Region(point, point + 1))
def is_space(view, point):
return char_at(view, point).isspace()
def is_newline(view, point):
return char_at(view, point) == "\n"
class CommentFoldCommand(sublime_plugin.TextCommand):
... | 26.022727 | 61 | 0.591266 | 149 | 1,145 | 4.422819 | 0.362416 | 0.068285 | 0.045524 | 0.068285 | 0.282246 | 0.206373 | 0.206373 | 0 | 0 | 0 | 0 | 0.005038 | 0.30655 | 1,145 | 43 | 62 | 26.627907 | 0.824937 | 0.09869 | 0 | 0.071429 | 0 | 0 | 0.01751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.071429 | 0.107143 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
4c991ae0e384070a5efb8ad0fba91e309ce20855 | 1,096 | py | Python | api/api/utils/marshmallow.py | coreyjwhite/flext | 86b2614a3db203512627c7cd12f8ecc9fcface90 | [
"MIT"
] | null | null | null | api/api/utils/marshmallow.py | coreyjwhite/flext | 86b2614a3db203512627c7cd12f8ecc9fcface90 | [
"MIT"
] | null | null | null | api/api/utils/marshmallow.py | coreyjwhite/flext | 86b2614a3db203512627c7cd12f8ecc9fcface90 | [
"MIT"
] | null | null | null | """Injection of generated marshmallow schemas into SQLAlchemy model classes.
Adapted from https://marshmallow-sqlalchemy.readthedocs.io/en/latest/recipes.html#automatically-generating-schemas-for-sqlalchemy-models
"""
from marshmallow_sqlalchemy import ModelConversionError, SQLAlchemyAutoSchema
def setup_schema(db)... | 35.354839 | 136 | 0.644161 | 109 | 1,096 | 6.165138 | 0.559633 | 0.081845 | 0.044643 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270073 | 1,096 | 30 | 137 | 36.533333 | 0.84 | 0.25365 | 0 | 0 | 1 | 0 | 0.152605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.294118 | 0 | 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 |
4c9a55006a46521d17c9bfc46f3398c27232a507 | 2,696 | py | Python | install/app_store/tk-multi-loader2/v1.18.0/python/tk_multi_loader/ui/open_publish_form.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | null | null | null | install/app_store/tk-multi-loader2/v1.18.0/python/tk_multi_loader/ui/open_publish_form.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | null | null | null | install/app_store/tk-multi-loader2/v1.18.0/python/tk_multi_loader/ui/open_publish_form.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | 1 | 2020-02-15T10:42:56.000Z | 2020-02-15T10:42:56.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'open_publish_form.ui'
#
# by: pyside-uic 0.2.15 running on PySide 1.2.2
#
# WARNING! All changes made in this file will be lost!
from sgtk.platform.qt import QtCore, QtGui
class Ui_OpenPublishForm(object):
def setupUi(self, OpenPu... | 49.018182 | 133 | 0.732567 | 295 | 2,696 | 6.572881 | 0.332203 | 0.074265 | 0.075812 | 0.063435 | 0.203198 | 0.12687 | 0.036101 | 0 | 0 | 0 | 0 | 0.024746 | 0.160608 | 2,696 | 54 | 134 | 49.925926 | 0.832081 | 0.073813 | 0 | 0 | 1 | 0 | 0.079952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.02381 | 0 | 0.095238 | 0 | 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 |
4ca0d4e34187b6d522318de3233c491aaf2aaecf | 1,679 | py | Python | general_util/mixin.py | SparkJiao/pytorch-transformers-template | c64d55f346534b204ac35e814db03221a0856d84 | [
"MIT"
] | 1 | 2022-03-04T08:27:52.000Z | 2022-03-04T08:27:52.000Z | general_util/mixin.py | SparkJiao/pytorch-transformers-template | c64d55f346534b204ac35e814db03221a0856d84 | [
"MIT"
] | null | null | null | general_util/mixin.py | SparkJiao/pytorch-transformers-template | c64d55f346534b204ac35e814db03221a0856d84 | [
"MIT"
] | null | null | null | from collections import defaultdict
from typing import Dict, List, Tuple
import torch
from general_util.average_meter import LogMetric, AverageMeter
from general_util.logger import get_child_logger
logger = get_child_logger("Mixin")
class LogMixin:
eval_metrics: LogMetric = None
def init_metric(self, *met... | 27.080645 | 83 | 0.632519 | 206 | 1,679 | 4.961165 | 0.34466 | 0.075342 | 0.073386 | 0.013699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262061 | 1,679 | 61 | 84 | 27.52459 | 0.824859 | 0.019059 | 0 | 0 | 0 | 0 | 0.05228 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 1 | 0.15 | false | 0 | 0.125 | 0.025 | 0.45 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
4ca8e2af7e5dd823599423982706b498fdf2639a | 4,288 | py | Python | applications/hw2/controllers/default.py | hooshingschaefer/webapps | f812fc6eaec4d9620e660e33af473539c3f33c31 | [
"BSD-3-Clause"
] | null | null | null | applications/hw2/controllers/default.py | hooshingschaefer/webapps | f812fc6eaec4d9620e660e33af473539c3f33c31 | [
"BSD-3-Clause"
] | null | null | null | applications/hw2/controllers/default.py | hooshingschaefer/webapps | f812fc6eaec4d9620e660e33af473539c3f33c31 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
# -------------------------------------------------------------------------
# This is a sample controller
# - index is the default action of any application
# - user is required for authentication and authorization
... | 31.529412 | 168 | 0.540112 | 539 | 4,288 | 4.181818 | 0.282004 | 0.02795 | 0.053682 | 0.039042 | 0.464508 | 0.413931 | 0.401508 | 0.379769 | 0.330524 | 0.295918 | 0 | 0.003949 | 0.291278 | 4,288 | 135 | 169 | 31.762963 | 0.737743 | 0.151353 | 0 | 0.341772 | 0 | 0 | 0.05013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.025316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4cae0637217069ad6421723c136e1ff257ea7699 | 439 | py | Python | crops/migrations/0004_crop_gardens.py | LukasBaecker/be-stadtlabor | 5ef8ba36825f77a7785e2b050f4aa6f89b8f352d | [
"MIT"
] | 1 | 2021-10-30T10:52:00.000Z | 2021-10-30T10:52:00.000Z | crops/migrations/0004_crop_gardens.py | LukasBaecker/be-stadtlabor-studyproject | 5ef8ba36825f77a7785e2b050f4aa6f89b8f352d | [
"MIT"
] | 1 | 2021-11-20T17:18:01.000Z | 2021-11-20T17:18:01.000Z | crops/migrations/0004_crop_gardens.py | LukasBaecker/be-stadtlabor | 5ef8ba36825f77a7785e2b050f4aa6f89b8f352d | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2022-01-18 20:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gardens', '0007_auto_20211231_2258'),
('crops', '0003_auto_20211205_1004'),
]
operations = [
migrations.AddField(
model_na... | 21.95 | 62 | 0.601367 | 46 | 439 | 5.586957 | 0.804348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144654 | 0.275626 | 439 | 19 | 63 | 23.105263 | 0.663522 | 0.09795 | 0 | 0 | 1 | 0 | 0.21066 | 0.116751 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cafcc3da645344c3d9aa58c2146cd35add9b565 | 584 | py | Python | tests/test_resource.py | capaximperii/Alyke | acb266dc5cd137d0423873c1368089c2d1d67f37 | [
"MIT"
] | null | null | null | tests/test_resource.py | capaximperii/Alyke | acb266dc5cd137d0423873c1368089c2d1d67f37 | [
"MIT"
] | null | null | null | tests/test_resource.py | capaximperii/Alyke | acb266dc5cd137d0423873c1368089c2d1d67f37 | [
"MIT"
] | null | null | null | from resource import Resource
def dummy_compute_digest(path):
return "digest"
class TestResource(object):
def setup(self):
self.resource = Resource('/tmp/a', dummy_compute_digest)
def teardown(self):
print ("Resource teardown")
def test_get(self):
self.resource.compute_digest... | 26.545455 | 64 | 0.630137 | 70 | 584 | 5.128571 | 0.385714 | 0.167131 | 0.133705 | 0.128134 | 0.194986 | 0.194986 | 0 | 0 | 0 | 0 | 0 | 0.004535 | 0.244863 | 584 | 22 | 65 | 26.545455 | 0.809524 | 0 | 0 | 0.117647 | 0 | 0 | 0.099145 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.294118 | false | 0 | 0.058824 | 0.058824 | 0.470588 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4cb68b0dd0b158a1c15397f9772a6d6cb86267a7 | 2,520 | py | Python | dpkt/vrrp.py | lkash/test | 5631eeaaa7e1bd5f6ce7b3c08f1c9b6b7fc2ec1c | [
"BSD-3-Clause"
] | null | null | null | dpkt/vrrp.py | lkash/test | 5631eeaaa7e1bd5f6ce7b3c08f1c9b6b7fc2ec1c | [
"BSD-3-Clause"
] | null | null | null | dpkt/vrrp.py | lkash/test | 5631eeaaa7e1bd5f6ce7b3c08f1c9b6b7fc2ec1c | [
"BSD-3-Clause"
] | null | null | null | # $Id: vrrp.py 88 2013-03-05 19:43:17Z andrewflnr@gmail.com $
# -*- coding: utf-8 -*-
"""Virtual Router Redundancy Protocol."""
import dpkt
from decorators import deprecated
class VRRP(dpkt.Packet):
__hdr__ = (
('_v_type', 'B', 0x21),
('vrid', 'B', 0),
('priority', 'B', 0),
('coun... | 23.333333 | 90 | 0.513889 | 358 | 2,520 | 3.460894 | 0.310056 | 0.048426 | 0.072639 | 0.077482 | 0.169492 | 0.114609 | 0.100081 | 0.08071 | 0.043584 | 0 | 0 | 0.065363 | 0.289683 | 2,520 | 107 | 91 | 23.551402 | 0.626816 | 0.149603 | 0 | 0.15493 | 0 | 0.014085 | 0.103019 | 0.053666 | 0 | 0 | 0.012458 | 0 | 0.140845 | 0 | null | null | 0 | 0.028169 | null | null | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4cb7302f2e60f0ebe937638c81e838ca81e87122 | 75,288 | py | Python | scripts/forest.py | aeron15/OmicsIntegrator_fork | 9a8f17d99716d9ce8dd9fc5c866ec05de0cd87bb | [
"BSD-2-Clause",
"MIT"
] | 30 | 2016-04-01T17:37:59.000Z | 2021-12-02T13:50:13.000Z | scripts/forest.py | aeron15/OmicsIntegrator_fork | 9a8f17d99716d9ce8dd9fc5c866ec05de0cd87bb | [
"BSD-2-Clause",
"MIT"
] | 24 | 2016-04-02T12:34:32.000Z | 2018-12-18T17:07:59.000Z | scripts/forest.py | aeron15/OmicsIntegrator_fork | 9a8f17d99716d9ce8dd9fc5c866ec05de0cd87bb | [
"BSD-2-Clause",
"MIT"
] | 18 | 2016-06-15T02:17:09.000Z | 2021-05-27T20:09:53.000Z | #Written by Amanda Daigle
#Ernest Fraenkel's lab
#MIT Biological Engineering
#2013-2014
import sys, argparse, random, copy, os
import subprocess, tempfile
import networkx as nx
from operator import itemgetter
import multiprocessing as mp
def score(value, mu, musquared):
"""
Helper function for use in assig... | 51.391126 | 126 | 0.568099 | 8,315 | 75,288 | 5.128563 | 0.107998 | 0.009145 | 0.006191 | 0.004784 | 0.388777 | 0.320373 | 0.290287 | 0.2534 | 0.240925 | 0.212292 | 0 | 0.014133 | 0.343999 | 75,288 | 1,464 | 127 | 51.42623 | 0.849298 | 0.114148 | 0 | 0.344795 | 0 | 0.004776 | 0.206349 | 0.012472 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011461 | 0.004776 | null | null | 0.04298 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4cb89d296136c8b5f8a07f0bd7ae0686a327f1fb | 1,404 | py | Python | blog/views.py | taher356/special-system | 74d302d406aae7f3e2a06a7277e963c4c68249bf | [
"MIT"
] | 1 | 2022-01-08T18:59:29.000Z | 2022-01-08T18:59:29.000Z | blog/views.py | taher356/django-blog | 74d302d406aae7f3e2a06a7277e963c4c68249bf | [
"MIT"
] | null | null | null | blog/views.py | taher356/django-blog | 74d302d406aae7f3e2a06a7277e963c4c68249bf | [
"MIT"
] | null | null | null | from django.shortcuts import render,get_object_or_404
from blog.models import PostModel
from django.core.paginator import Paginator,EmptyPage,PageNotAnInteger
# Create your views here.
def blog_view(request,**kwargs):
posts = PostModel.objects.filter(status=1)
if kwargs.get('cat_name')!=None :
posts... | 35.1 | 84 | 0.70584 | 182 | 1,404 | 5.313187 | 0.302198 | 0.086867 | 0.1303 | 0.167528 | 0.369183 | 0.239917 | 0.204757 | 0.1303 | 0.1303 | 0.1303 | 0 | 0.010248 | 0.165954 | 1,404 | 40 | 85 | 35.1 | 0.815542 | 0.016382 | 0 | 0.28125 | 0 | 0 | 0.104348 | 0.015217 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.09375 | 0.03125 | 0.34375 | 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 |
4cbe864117ad49943eca2627b2b4a372afd22dad | 5,286 | py | Python | venv/lib/python3.6/site-packages/ansible_collections/cisco/mso/plugins/modules/mso_rest.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 1 | 2020-01-22T13:11:23.000Z | 2020-01-22T13:11:23.000Z | venv/lib/python3.6/site-packages/ansible_collections/cisco/mso/plugins/modules/mso_rest.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | 12 | 2020-02-21T07:24:52.000Z | 2020-04-14T09:54:32.000Z | venv/lib/python3.6/site-packages/ansible_collections/cisco/mso/plugins/modules/mso_rest.py | usegalaxy-no/usegalaxy | 75dad095769fe918eb39677f2c887e681a747f3a | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2020, Anvitha Jain (@anvitha-jain) <anvjain@cisco.com>
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'met... | 28.26738 | 134 | 0.630533 | 627 | 5,286 | 5.208931 | 0.362041 | 0.024495 | 0.01684 | 0.022045 | 0.185854 | 0.155236 | 0.115432 | 0.115432 | 0.095836 | 0.095836 | 0 | 0.006059 | 0.250662 | 5,286 | 186 | 135 | 28.419355 | 0.81848 | 0.060726 | 0 | 0.25 | 0 | 0 | 0.665456 | 0.038539 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006579 | false | 0.026316 | 0.032895 | 0 | 0.039474 | 0.006579 | 0 | 0 | 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 |
4cbf999db7c8969dc446f03632c8e19f86f85e81 | 1,311 | py | Python | tests/test_socialbot.py | skalanux/socialbot | c1406bd0d9bcb76283c7543fae2284282ce41e31 | [
"BSD-3-Clause"
] | null | null | null | tests/test_socialbot.py | skalanux/socialbot | c1406bd0d9bcb76283c7543fae2284282ce41e31 | [
"BSD-3-Clause"
] | null | null | null | tests/test_socialbot.py | skalanux/socialbot | c1406bd0d9bcb76283c7543fae2284282ce41e31 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_socialbot
----------------------------------
Tests for `socialbot` module.
"""
import unittest
import threading
import requests
from socialbot.main import SlackBotHandler
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from socialbot.plugins.fac... | 25.211538 | 147 | 0.617086 | 136 | 1,311 | 5.838235 | 0.529412 | 0.04534 | 0.035264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01751 | 0.215866 | 1,311 | 51 | 148 | 25.705882 | 0.754864 | 0.032037 | 0 | 0 | 0 | 0 | 0.20017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.193548 | null | null | 0.290323 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4cc82eb3eb92abf0add75428493b71c10a7a3891 | 295 | py | Python | Formatting_Strings/What_day_is_today?.py | RKiddle/python_reg_expressions | 9e89c1c59677ffa19a4c64a37e92bbea33fad88e | [
"MIT"
] | null | null | null | Formatting_Strings/What_day_is_today?.py | RKiddle/python_reg_expressions | 9e89c1c59677ffa19a4c64a37e92bbea33fad88e | [
"MIT"
] | null | null | null | Formatting_Strings/What_day_is_today?.py | RKiddle/python_reg_expressions | 9e89c1c59677ffa19a4c64a37e92bbea33fad88e | [
"MIT"
] | null | null | null | # Import datetime
from datetime import datetime
# Assign date to get_date
get_date = datetime.now()
# Add named placeholders with format specifiers
message = "Good morning. Today is {today:%B %d, %Y}. It's {today:%H:%M} ... time to work!"
# Format date
print(message.format(today=get_date))
| 24.583333 | 90 | 0.722034 | 46 | 295 | 4.565217 | 0.630435 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152542 | 295 | 11 | 91 | 26.818182 | 0.84 | 0.332203 | 0 | 0 | 0 | 0.25 | 0.40625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cc8f265135a524bc398d5a901d6d7c330df738e | 658 | py | Python | users/models.py | PIBBNG/API | 1c7942ccaaca2842c8a44b50c159214693ff213c | [
"MIT"
] | 1 | 2019-12-24T15:20:17.000Z | 2019-12-24T15:20:17.000Z | users/models.py | PIBBNG/API | 1c7942ccaaca2842c8a44b50c159214693ff213c | [
"MIT"
] | null | null | null | users/models.py | PIBBNG/API | 1c7942ccaaca2842c8a44b50c159214693ff213c | [
"MIT"
] | null | null | null | from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin
from django.contrib.postgres.fields import ArrayField
from django.db import models
class CustomUser(AbstractBaseUser, PermissionsMixin):
name = models.CharField(help_text= "Nome do usuario", max_length=255, blank=True, defau... | 47 | 111 | 0.772036 | 78 | 658 | 6.371795 | 0.525641 | 0.060362 | 0.06841 | 0.092555 | 0.112676 | 0.112676 | 0 | 0 | 0 | 0 | 0 | 0.015652 | 0.12614 | 658 | 14 | 112 | 47 | 0.848696 | 0 | 0 | 0 | 0 | 0 | 0.094082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0.090909 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4ccb15cea9197b0f903e296441b0c3b16b396db4 | 13,127 | py | Python | map_profile/migrations/0001_initial.py | aaronhu922/map_profile | 9c08c840e77a63c7addc7dcb918263f748f7fdb7 | [
"Apache-2.0"
] | null | null | null | map_profile/migrations/0001_initial.py | aaronhu922/map_profile | 9c08c840e77a63c7addc7dcb918263f748f7fdb7 | [
"Apache-2.0"
] | null | null | null | map_profile/migrations/0001_initial.py | aaronhu922/map_profile | 9c08c840e77a63c7addc7dcb918263f748f7fdb7 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.1 on 2021-01-10 03:39
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='MapTestC... | 64.665025 | 190 | 0.620096 | 961 | 13,127 | 8.297607 | 0.255983 | 0.117381 | 0.112867 | 0.150489 | 0.272385 | 0.175947 | 0.14911 | 0.130048 | 0.124781 | 0.108478 | 0 | 0.01207 | 0.248953 | 13,127 | 202 | 191 | 64.985149 | 0.796734 | 0.003428 | 0 | 0.133333 | 1 | 0 | 0.281957 | 0.186927 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015385 | 0 | 0.035897 | 0 | 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 |
4ccd40f286d03230e543c0026370a67a7911da67 | 8,702 | py | Python | conans/test/functional/toolchains/apple/test_xcodedeps_components.py | Mu-L/conan | 7c24ec4bbd6e8c16cdcd879403aae742689bc36a | [
"MIT"
] | 1 | 2019-11-04T17:23:09.000Z | 2019-11-04T17:23:09.000Z | conans/test/functional/toolchains/apple/test_xcodedeps_components.py | Mu-L/conan | 7c24ec4bbd6e8c16cdcd879403aae742689bc36a | [
"MIT"
] | null | null | null | conans/test/functional/toolchains/apple/test_xcodedeps_components.py | Mu-L/conan | 7c24ec4bbd6e8c16cdcd879403aae742689bc36a | [
"MIT"
] | null | null | null | import os
import platform
import textwrap
import pytest
from conans.test.utils.tools import TestClient
@pytest.mark.skipif(platform.system() != "Darwin", reason="Only for MacOS")
@pytest.mark.tool_cmake
@pytest.mark.tool_xcodebuild
@pytest.mark.tool_xcodegen
def test_xcodedeps_components():
"""
tcp/1.0 is a... | 38 | 107 | 0.632268 | 1,060 | 8,702 | 5.071698 | 0.173585 | 0.009301 | 0.030692 | 0.042969 | 0.467076 | 0.376116 | 0.321243 | 0.222284 | 0.165365 | 0.098028 | 0 | 0.010346 | 0.233624 | 8,702 | 228 | 108 | 38.166667 | 0.795771 | 0.064468 | 0 | 0.193182 | 0 | 0.005682 | 0.668932 | 0.179684 | 0 | 0 | 0 | 0 | 0.085227 | 1 | 0.011364 | false | 0 | 0.051136 | 0 | 0.0625 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.