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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c5bd4d3b64eb6bd036b9f5e78b463c58d2f38085 | 1,021 | py | Python | PictureColoring/MyUtils.py | chiihero/DeepLearning | 029d547ada401a00a1cc0b314cdb2fb8937062c9 | [
"Apache-2.0"
] | null | null | null | PictureColoring/MyUtils.py | chiihero/DeepLearning | 029d547ada401a00a1cc0b314cdb2fb8937062c9 | [
"Apache-2.0"
] | null | null | null | PictureColoring/MyUtils.py | chiihero/DeepLearning | 029d547ada401a00a1cc0b314cdb2fb8937062c9 | [
"Apache-2.0"
] | null | null | null | from keras.callbacks import TensorBoard,EarlyStopping,TerminateOnNaN,ReduceLROnPlateau,ModelCheckpoint
import os
import sys
import tensorflow as tf
import keras.backend.tensorflow_backend as KTF
file_abspath = os.path.abspath(sys.argv[0]) # exe所在文件地址
location = os.path.dirname(file_abspath) # exe所在文件夹目录地址
tbCallB... | 51.05 | 248 | 0.813908 | 136 | 1,021 | 5.926471 | 0.573529 | 0.040943 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019979 | 0.06856 | 1,021 | 19 | 249 | 53.736842 | 0.82755 | 0.021548 | 0 | 0 | 0 | 0 | 0.046231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c5be6868849918d06af4471aca57e790b36777ca | 8,545 | py | Python | tests/analysis/test_executor.py | shapiromatron/bmds-server | 0b2b79b521728582fa66100621e9ea03e251f9f1 | [
"MIT"
] | 1 | 2019-07-09T16:42:15.000Z | 2019-07-09T16:42:15.000Z | tests/analysis/test_executor.py | shapiromatron/bmds-server | 0b2b79b521728582fa66100621e9ea03e251f9f1 | [
"MIT"
] | 103 | 2016-11-14T15:58:53.000Z | 2022-03-07T21:01:03.000Z | tests/analysis/test_executor.py | shapiromatron/bmds-server | 0b2b79b521728582fa66100621e9ea03e251f9f1 | [
"MIT"
] | 2 | 2017-03-17T20:43:22.000Z | 2018-01-04T19:15:18.000Z | from copy import deepcopy
from bmds.bmds3.constants import ContinuousModelIds, DichotomousModelIds
from bmds.bmds3.types.priors import PriorClass
from bmds_server.analysis.executor import AnalysisSession
class TestAnalysisSession:
def test_default_dichotomous(self, bmds3_complete_dichotomous):
# assure ... | 45.452128 | 99 | 0.640609 | 937 | 8,545 | 5.697972 | 0.116329 | 0.101143 | 0.130361 | 0.095898 | 0.770182 | 0.715115 | 0.691515 | 0.643754 | 0.596366 | 0.565087 | 0 | 0.023511 | 0.243417 | 8,545 | 187 | 100 | 45.695187 | 0.80232 | 0.051375 | 0 | 0.516779 | 0 | 0 | 0.106564 | 0.031153 | 0 | 0 | 0 | 0 | 0.315436 | 1 | 0.060403 | false | 0 | 0.026846 | 0 | 0.09396 | 0.006711 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5bedaf2756a09941c7750735b35a4cb10278fa5 | 483 | py | Python | 1094.py | gabzin/beecrowd | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | 3 | 2021-12-15T20:27:14.000Z | 2022-03-01T12:30:08.000Z | 1094.py | gabzin/uri | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | null | null | null | 1094.py | gabzin/uri | 177bdf3f87bacfd924bd031a973b8db877379fe5 | [
"MIT"
] | null | null | null | tot=coe=rat=sap=0
for i in range(int(input())):
n,s=input().split()
n=int(n)
tot+=n
if s=='C':coe+=n
elif s=='R':rat+=n
elif s=='S':sap+=n
print(f"Total: {tot} cobaias\nTotal de coelhos: {coe}\nTotal de ratos: {rat}\nTotal de sapos: {sap}")
p=(coe/tot)*100
print("Percentual de coelhos: %.2f"%p,e... | 25.421053 | 101 | 0.585921 | 88 | 483 | 3.215909 | 0.363636 | 0.084806 | 0.116608 | 0.222615 | 0.328622 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031553 | 0.146998 | 483 | 18 | 102 | 26.833333 | 0.65534 | 0 | 0 | 0.166667 | 0 | 0.055556 | 0.36646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.388889 | 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 |
c5c1ceac12c3d4acf6d93b005cde760e9701d344 | 1,722 | py | Python | extras/createTestBlocksForReadBlkUpdate.py | Manny27nyc/BitcoinArmory | 1d02a6640d6257ab0c37013e5cd4b99681a5cfc3 | [
"MIT"
] | 505 | 2016-02-04T15:54:46.000Z | 2022-03-27T18:43:01.000Z | extras/createTestBlocksForReadBlkUpdate.py | jimmysong/BitcoinArmory | 1c7190176897a2e0f3e4e198ab2f199059bb2402 | [
"MIT"
] | 528 | 2016-02-06T19:50:12.000Z | 2022-01-15T10:21:16.000Z | extras/createTestBlocksForReadBlkUpdate.py | jimmysong/BitcoinArmory | 1c7190176897a2e0f3e4e198ab2f199059bb2402 | [
"MIT"
] | 208 | 2015-01-02T10:31:40.000Z | 2021-12-14T07:37:36.000Z | from sys import path
path.append('..')
from armoryengine import *
TheBDM.setBlocking(True)
TheBDM.setOnlineMode(True)
if not os.path.exists('testmultiblock'):
os.mkdir('testmultiblock')
fout = []
fout.append([0, 101, 'testmultiblock/blk00000.dat'])
fout.append([0, 102, 'testmultiblock/blk00000_test1.dat']) #... | 28.229508 | 89 | 0.662602 | 251 | 1,722 | 4.517928 | 0.386454 | 0.061728 | 0.029101 | 0.017637 | 0.03351 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076596 | 0.181185 | 1,722 | 60 | 90 | 28.7 | 0.72766 | 0.087108 | 0 | 0.088889 | 0 | 0 | 0.207294 | 0.143954 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.044444 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5c1e4e3885d653cd8bccb778237b0517bd6b7f7 | 369 | py | Python | dashboard/migrations/0034_auto_20201226_2150.py | BDALab/GENEActiv-sleep-analyses-system | f0458de041153f2dee240a53571149827de00a2e | [
"MIT"
] | null | null | null | dashboard/migrations/0034_auto_20201226_2150.py | BDALab/GENEActiv-sleep-analyses-system | f0458de041153f2dee240a53571149827de00a2e | [
"MIT"
] | null | null | null | dashboard/migrations/0034_auto_20201226_2150.py | BDALab/GENEActiv-sleep-analyses-system | f0458de041153f2dee240a53571149827de00a2e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-12-26 20:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0033_auto_20201226_2148'),
]
operations = [
migrations.RenameField(
model_name='sleepnight',
old_name='data',
... | 20.5 | 49 | 0.593496 | 40 | 369 | 5.3 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119231 | 0.295393 | 369 | 17 | 50 | 21.705882 | 0.696154 | 0.121951 | 0 | 0 | 1 | 0 | 0.170807 | 0.071429 | 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 |
c5c5651c307431ee7d13f20d6102f8ee5f585f1c | 6,331 | py | Python | party/migrations/0002_auto__chg_field_party_primaries_date__chg_field_party_qualifying_date_.py | daonb/okqa | 3babf225911294dec1249472a9a3f6141fa7d6a7 | [
"BSD-3-Clause"
] | null | null | null | party/migrations/0002_auto__chg_field_party_primaries_date__chg_field_party_qualifying_date_.py | daonb/okqa | 3babf225911294dec1249472a9a3f6141fa7d6a7 | [
"BSD-3-Clause"
] | null | null | null | party/migrations/0002_auto__chg_field_party_primaries_date__chg_field_party_qualifying_date_.py | daonb/okqa | 3babf225911294dec1249472a9a3f6141fa7d6a7 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Party.primaries_date'
db.alter_column('party_party', 'primaries_date', self.gf('django.db... | 65.947917 | 182 | 0.599905 | 695 | 6,331 | 5.329496 | 0.181295 | 0.088553 | 0.151188 | 0.215983 | 0.682775 | 0.664957 | 0.632289 | 0.572354 | 0.475972 | 0.361501 | 0 | 0.008166 | 0.187648 | 6,331 | 95 | 183 | 66.642105 | 0.712036 | 0.077555 | 0 | 0.111111 | 0 | 0 | 0.576844 | 0.296569 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.013889 | 0.055556 | 0 | 0.125 | 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 |
c5c89aef54358898a0e1bcf5928f0cc81d126d81 | 2,441 | py | Python | vmware.py | Sbaljepa/get_esxi_host_info | cb12bcc3712135e22fc456178349c51cbd480c03 | [
"MIT"
] | null | null | null | vmware.py | Sbaljepa/get_esxi_host_info | cb12bcc3712135e22fc456178349c51cbd480c03 | [
"MIT"
] | null | null | null | vmware.py | Sbaljepa/get_esxi_host_info | cb12bcc3712135e22fc456178349c51cbd480c03 | [
"MIT"
] | null | null | null | from con_esxi_host import *
from math import pow, ceil
class vmware:
def get_vm_info(self):
si = connect_to_host()
#global virtual
inv = si.RetrieveContent()
dc1 = inv.rootFolder.childEntity[0]
vmList = dc1.vmFolder.childEntity
virtual = []
for vm in... | 51.93617 | 107 | 0.603032 | 240 | 2,441 | 6.045833 | 0.354167 | 0.136458 | 0.093039 | 0.046864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013857 | 0.290455 | 2,441 | 46 | 108 | 53.065217 | 0.823903 | 0.163048 | 0 | 0 | 0 | 0 | 0.08002 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5cbbb0cba0072bbd3a2426dbea64e76c05e64a7 | 2,214 | py | Python | home/views.py | felixyin/qdqtrj_website | 43ae31af887cfe537d6f0cff5329dac619190210 | [
"MIT"
] | null | null | null | home/views.py | felixyin/qdqtrj_website | 43ae31af887cfe537d6f0cff5329dac619190210 | [
"MIT"
] | null | null | null | home/views.py | felixyin/qdqtrj_website | 43ae31af887cfe537d6f0cff5329dac619190210 | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.shortcuts import render
from django.views.decorators.cache import cache_page
from django.views.decorators.gzip import gzip_page
from django.views.generic import DetailView
from about.models import AboutItem
from blog.models import Article
from home.models import Home
f... | 41 | 95 | 0.677958 | 269 | 2,214 | 5.39777 | 0.263941 | 0.055096 | 0.068871 | 0.123967 | 0.523416 | 0.523416 | 0.480716 | 0.480716 | 0.480716 | 0.480716 | 0 | 0.002806 | 0.195122 | 2,214 | 53 | 96 | 41.773585 | 0.812009 | 0.007227 | 0 | 0.333333 | 0 | 0 | 0.147608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.309524 | 0.02381 | 0.452381 | 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 |
c5cc748812d8a678d614f011ee8f5b8566bed123 | 16,292 | py | Python | devel/.private/px_comm/lib/python2.7/dist-packages/px_comm/msg/_CameraInfo.py | akshastry/Neo_WS | 6c646227b1fedf4fb8cf700533ca8fc47f381b46 | [
"MIT"
] | 1 | 2021-08-31T03:07:52.000Z | 2021-08-31T03:07:52.000Z | devel/.private/px_comm/lib/python2.7/dist-packages/px_comm/msg/_CameraInfo.py | akshastry/Neo_WS | 6c646227b1fedf4fb8cf700533ca8fc47f381b46 | [
"MIT"
] | null | null | null | devel/.private/px_comm/lib/python2.7/dist-packages/px_comm/msg/_CameraInfo.py | akshastry/Neo_WS | 6c646227b1fedf4fb8cf700533ca8fc47f381b46 | [
"MIT"
] | null | null | null | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from px_comm/CameraInfo.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import std_msgs.msg
class CameraInfo(genpy.Message):
_md5... | 35.112069 | 201 | 0.60097 | 2,202 | 16,292 | 4.278383 | 0.127611 | 0.064537 | 0.049039 | 0.041503 | 0.641652 | 0.62435 | 0.600892 | 0.600892 | 0.591445 | 0.580618 | 0 | 0.013269 | 0.236742 | 16,292 | 463 | 202 | 35.187905 | 0.744351 | 0.080223 | 0 | 0.695761 | 1 | 0.002494 | 0.249511 | 0.049295 | 0 | 0 | 0.000674 | 0 | 0 | 1 | 0.024938 | false | 0 | 0.014963 | 0 | 0.074813 | 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 |
c5cca9d03c0d9fcd4b29b96bb68a691816ff964e | 3,567 | py | Python | search/models.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 4 | 2019-03-28T06:42:17.000Z | 2021-06-06T13:10:51.000Z | search/models.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 177 | 2018-09-28T14:21:56.000Z | 2022-03-30T21:45:26.000Z | search/models.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 8 | 2018-10-25T20:43:10.000Z | 2022-03-17T14:19:27.000Z | from itertools import chain
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.shortcuts import render
from wagtail.core.models import Page
from wagtail.search.models import Query
from about.models import AboutPage, AboutSubPage, CaseStudyPage, HistoryPage, PeoplePage
from contact.mode... | 37.547368 | 111 | 0.670311 | 411 | 3,567 | 5.681265 | 0.340633 | 0.072377 | 0.032548 | 0.038544 | 0.076231 | 0.029122 | 0 | 0 | 0 | 0 | 0 | 0.006744 | 0.251752 | 3,567 | 94 | 112 | 37.946809 | 0.868115 | 0.11326 | 0 | 0.059701 | 0 | 0 | 0.026718 | 0 | 0 | 0 | 0 | 0.010638 | 0 | 1 | 0.029851 | false | 0.014925 | 0.179104 | 0 | 0.313433 | 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 |
c5cf38192c894cd50c8e95291a53bb4a08d2bc9f | 334 | py | Python | desafio_005_antecessor_e_sucessor.py | VagnerGit/PythonCursoEmVideo | 3e80e12fbf21f5be08c554d77fa9073dc0a3145f | [
"MIT"
] | null | null | null | desafio_005_antecessor_e_sucessor.py | VagnerGit/PythonCursoEmVideo | 3e80e12fbf21f5be08c554d77fa9073dc0a3145f | [
"MIT"
] | null | null | null | desafio_005_antecessor_e_sucessor.py | VagnerGit/PythonCursoEmVideo | 3e80e12fbf21f5be08c554d77fa9073dc0a3145f | [
"MIT"
] | null | null | null | """
Exercício Python 5:
Faça um programa que leia um número Inteiro e
mostre na tela o seu sucessor e seu antecessor.
"""
n = int(input('digite um numero inteiro '))
#ant = n-1
#post = n+1
#print('O antecessor de {} é {} e posterior é {}' .format(n, ant, post))
print('{} o antercessor é {} o sucessor é {}'.format(n, (... | 27.833333 | 72 | 0.643713 | 59 | 334 | 3.644068 | 0.542373 | 0.037209 | 0.074419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018315 | 0.182635 | 334 | 11 | 73 | 30.363636 | 0.769231 | 0.610778 | 0 | 0 | 0 | 0 | 0.516667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c5d90016a90a331eb727c3cf478e5adf99c5cfde | 8,986 | py | Python | Tools/Scripts/webkitpy/tool/bot/commitqueuetask.py | VincentWei/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | 6 | 2017-05-31T01:46:45.000Z | 2018-06-12T10:53:30.000Z | Tools/Scripts/webkitpy/tool/bot/commitqueuetask.py | FMSoftCN/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | null | null | null | Tools/Scripts/webkitpy/tool/bot/commitqueuetask.py | FMSoftCN/mdolphin-core | 48ffdcf587a48a7bb4345ae469a45c5b64ffad0e | [
"Apache-2.0"
] | 2 | 2017-07-17T06:02:42.000Z | 2018-09-19T10:08:38.000Z | # Copyright (c) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | 38.076271 | 135 | 0.639217 | 1,080 | 8,986 | 5.15 | 0.285185 | 0.027508 | 0.021036 | 0.028767 | 0.30169 | 0.208558 | 0.159835 | 0.046926 | 0.024452 | 0.024452 | 0 | 0.001545 | 0.279769 | 8,986 | 235 | 136 | 38.238298 | 0.857849 | 0.305253 | 0 | 0.462963 | 0 | 0 | 0.149475 | 0.004681 | 0 | 0 | 0 | 0.004255 | 0 | 0 | null | null | 0.037037 | 0.012346 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5e54fc9fa5630a02a90b1f99c8ec0d552707d95 | 6,021 | py | Python | sqlalchemy/sqlalchemy-0.3.6+codebay/test/base/dependency.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 5 | 2015-04-16T08:36:17.000Z | 2017-05-12T17:20:12.000Z | sqlalchemy/sqlalchemy-0.3.6+codebay/test/base/dependency.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | null | null | null | sqlalchemy/sqlalchemy-0.3.6+codebay/test/base/dependency.py | nakedible/vpnease-l2tp | 0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c | [
"WTFPL"
] | 4 | 2015-03-19T14:39:51.000Z | 2019-01-23T08:22:55.000Z | from testbase import PersistTest
import sqlalchemy.topological as topological
import unittest, sys, os
from sqlalchemy import util
# TODO: need assertion conditions in this suite
class DependencySorter(topological.QueueDependencySorter):pass
class DependencySortTest(PersistTest):
def assert_sort(s... | 31.036082 | 235 | 0.51038 | 565 | 6,021 | 5.387611 | 0.235398 | 0.042707 | 0.068331 | 0.045992 | 0.293035 | 0.268397 | 0.207293 | 0.182326 | 0.169185 | 0.169185 | 0 | 0.054617 | 0.370536 | 6,021 | 193 | 236 | 31.196891 | 0.748549 | 0.051985 | 0 | 0.39521 | 0 | 0 | 0.088819 | 0.018957 | 0 | 0 | 0 | 0.005181 | 0.101796 | 0 | null | null | 0.005988 | 0.023952 | null | null | 0.023952 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c5e956eebd2928391f5d2ba00f6fd36130e8bbd1 | 894 | py | Python | hackerearth/Algorithms/Restoring trees/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerearth/Algorithms/Restoring trees/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerearth/Algorithms/Restoring trees/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
n = int(input())
start = list(map(int, inpu... | 26.294118 | 94 | 0.569351 | 125 | 894 | 4.072 | 0.448 | 0.098232 | 0.094303 | 0.058939 | 0.098232 | 0.098232 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.287472 | 894 | 33 | 95 | 27.090909 | 0.788069 | 0.297539 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c5eb3429d56063aad6eca63d3f25a6fb4eaf84b5 | 1,674 | py | Python | Sorting/Sorts.py | niranjan09/DataStructures_Algorithms | df2801f7ea48a39a55a6d79fd66ad200a2de0145 | [
"MIT"
] | null | null | null | Sorting/Sorts.py | niranjan09/DataStructures_Algorithms | df2801f7ea48a39a55a6d79fd66ad200a2de0145 | [
"MIT"
] | null | null | null | Sorting/Sorts.py | niranjan09/DataStructures_Algorithms | df2801f7ea48a39a55a6d79fd66ad200a2de0145 | [
"MIT"
] | null | null | null | import time
def swap(arr, i , j):
temp = arr[i]
arr[i] = arr[j]
arr[j] = temp
def selection_sort(arr):
for i in range(len(arr)):
for j in range(i+1, len(arr)):
if(arr[i] > arr[j]):
swap(arr, i, j)
return arr
def bubble_sort(arr):
swapped = True
while(swapped == True):
swapped = False
for i in ran... | 19.465116 | 53 | 0.599164 | 337 | 1,674 | 2.869436 | 0.148368 | 0.062048 | 0.057911 | 0.045502 | 0.26577 | 0.220269 | 0.088935 | 0.055843 | 0 | 0 | 0 | 0.024335 | 0.214456 | 1,674 | 85 | 54 | 19.694118 | 0.711027 | 0 | 0 | 0.178082 | 0 | 0 | 0.006571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.013699 | null | null | 0.082192 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c5f3bfd369153aa479d911c36ea48a47b9a4d56f | 485 | py | Python | waateax/users/migrations/0004_auto_20200910_1516.py | hendu25/waatea | 668707cd14d3336cd74d7043473f7094f5d0db6e | [
"MIT"
] | 4 | 2020-09-10T11:51:48.000Z | 2021-08-18T21:25:22.000Z | waateax/users/migrations/0004_auto_20200910_1516.py | hendu25/waatea | 668707cd14d3336cd74d7043473f7094f5d0db6e | [
"MIT"
] | 22 | 2020-09-10T11:14:22.000Z | 2021-08-24T14:58:58.000Z | waateax/users/migrations/0004_auto_20200910_1516.py | hendu25/waatea | 668707cd14d3336cd74d7043473f7094f5d0db6e | [
"MIT"
] | 3 | 2020-09-13T06:37:14.000Z | 2021-08-17T13:51:23.000Z | # Generated by Django 3.0.10 on 2020-09-10 13:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0003_user_mobile_phone'),
]
operations = [
migrations.AlterField(
model_name='user',
name='mobile_phone',
... | 24.25 | 111 | 0.618557 | 54 | 485 | 5.407407 | 0.740741 | 0.113014 | 0.10274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064607 | 0.265979 | 485 | 19 | 112 | 25.526316 | 0.755618 | 0.094845 | 0 | 0 | 1 | 0 | 0.141876 | 0.050343 | 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 |
c5fc1fd40bd0f609dfec322f4db82f5ebd97d46e | 704 | py | Python | ALGOs/Perceptron/logic_gates.py | iamharshit/ML_works | b0bb53c5a60312719d15e25b727c54cbab65b4af | [
"MIT"
] | 1 | 2016-11-29T04:28:09.000Z | 2016-11-29T04:28:09.000Z | ALGOs/Perceptron/logic_gates.py | iamharshit/ML_works | b0bb53c5a60312719d15e25b727c54cbab65b4af | [
"MIT"
] | null | null | null | ALGOs/Perceptron/logic_gates.py | iamharshit/ML_works | b0bb53c5a60312719d15e25b727c54cbab65b4af | [
"MIT"
] | null | null | null | #The input to the gate can only be 0 or 1
'''
Single Layer Perceptrons
'''
def AND_perceptron(x1,x2):
w1, w2, t = 1, 1, 2
return w1*x1 + w2*x2 >=t
def OR_perceptron(x1,x2):
w1, w2, t = 1, 1, 1
return w1*x1 + w2*x2 >=t
def AND_perceptron(x1):
w1, t = -1, 0
return w1*x1 >=t
'''
Multi Layer Per... | 20.705882 | 58 | 0.59233 | 148 | 704 | 2.709459 | 0.202703 | 0.054863 | 0.062344 | 0.074813 | 0.389027 | 0.389027 | 0.386534 | 0.25187 | 0 | 0 | 0 | 0.151685 | 0.241477 | 704 | 34 | 59 | 20.705882 | 0.599251 | 0.129261 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c5ffc77661b72f4eb6b28eeafca66a6e20e1570d | 6,897 | py | Python | src/sms_verifier/settings.py | ArieLevs/sms-verifier-backend | b687f0426e7fc871a7ba50d95499187e72089dce | [
"MIT"
] | null | null | null | src/sms_verifier/settings.py | ArieLevs/sms-verifier-backend | b687f0426e7fc871a7ba50d95499187e72089dce | [
"MIT"
] | 10 | 2020-02-12T02:51:31.000Z | 2022-02-10T13:33:43.000Z | src/sms_verifier/settings.py | ArieLevs/sms-verifier-backend | b687f0426e7fc871a7ba50d95499187e72089dce | [
"MIT"
] | 1 | 2022-02-22T18:56:22.000Z | 2022-02-22T18:56:22.000Z | """
Django settings for sms_verifier project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import ... | 27.810484 | 91 | 0.660577 | 759 | 6,897 | 5.776021 | 0.30303 | 0.04562 | 0.041058 | 0.038321 | 0.242245 | 0.216925 | 0.086907 | 0.063412 | 0.027372 | 0 | 0 | 0.01091 | 0.176019 | 6,897 | 247 | 92 | 27.923077 | 0.760514 | 0.148325 | 0 | 0.08284 | 1 | 0 | 0.478878 | 0.3612 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.035503 | 0.017751 | 0 | 0.017751 | 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 |
680818c94a5d8918261d5f2d00ab826a279d384e | 1,096 | py | Python | notebooks/tpot_exported_pipeline.py | rsouza/FGV_Intro_DS | 5c4da0a9476654516199708cb729231a21d99686 | [
"MIT"
] | 38 | 2018-02-28T17:33:00.000Z | 2022-01-21T22:30:11.000Z | Notebooks/tpot_exported_pipeline.py | rsouza/DataScience_Course | dd8018d616cf24a7b23c7b04ea1e2120261da3c0 | [
"MIT"
] | 17 | 2018-08-16T12:11:57.000Z | 2019-08-04T17:55:27.000Z | Notebooks/tpot_exported_pipeline.py | rsouza/DataScience_Course | dd8018d616cf24a7b23c7b04ea1e2120261da3c0 | [
"MIT"
] | 62 | 2018-02-20T12:58:13.000Z | 2022-03-03T11:10:16.000Z | import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.pipeline import make_pipeline, make_union
from tpot.builtins import StackingEstimator
from xgboost import XGBClassifier
from sklearn.preprocessing import FunctionTransformer
from copy import copy
# NOTE: Make sure ... | 40.592593 | 125 | 0.794708 | 152 | 1,096 | 5.526316 | 0.532895 | 0.039286 | 0.033333 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032393 | 0.126825 | 1,096 | 26 | 126 | 42.153846 | 0.84535 | 0.125 | 0 | 0 | 0 | 0 | 0.047071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.380952 | 0 | 0.380952 | 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 |
6813cdd606ade45f43873ba2c99142d90f8a961a | 16,267 | py | Python | wrt/wrt-packertool-android-tests/test.py | tiwanek/crosswalk-test-suite | 82d12e6187c81caeb56e12c5ec3483f35d939982 | [
"BSD-3-Clause"
] | null | null | null | wrt/wrt-packertool-android-tests/test.py | tiwanek/crosswalk-test-suite | 82d12e6187c81caeb56e12c5ec3483f35d939982 | [
"BSD-3-Clause"
] | null | null | null | wrt/wrt-packertool-android-tests/test.py | tiwanek/crosswalk-test-suite | 82d12e6187c81caeb56e12c5ec3483f35d939982 | [
"BSD-3-Clause"
] | null | null | null | import sys, os, os.path, time, shutil
import commands
from xml.etree.ElementTree import ElementTree
from xml.etree.ElementTree import Element
from xml.etree.ElementTree import SubElement as SE
import metacomm.combinatorics.all_pairs2
all_pairs = metacomm.combinatorics.all_pairs2.all_pairs2
totalNum = 0
failNum = 0
pa... | 40.165432 | 245 | 0.500645 | 1,645 | 16,267 | 4.903343 | 0.179331 | 0.017853 | 0.024176 | 0.017853 | 0.363501 | 0.251426 | 0.218696 | 0.160674 | 0.152864 | 0.103645 | 0 | 0.006874 | 0.320342 | 16,267 | 404 | 246 | 40.264851 | 0.722685 | 0.010942 | 0 | 0.316804 | 0 | 0.00551 | 0.247808 | 0.069399 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.030303 | 0.016529 | null | null | 0.143251 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6814898e651034adbd68ccc0b6b8b8dad8f99277 | 584 | py | Python | bigcommerce/resources/options.py | sebaacuna/bigcommerce-api-python | 59ef206d7296c196a0ae0400b6bf9bdb5c2f72af | [
"MIT"
] | null | null | null | bigcommerce/resources/options.py | sebaacuna/bigcommerce-api-python | 59ef206d7296c196a0ae0400b6bf9bdb5c2f72af | [
"MIT"
] | null | null | null | bigcommerce/resources/options.py | sebaacuna/bigcommerce-api-python | 59ef206d7296c196a0ae0400b6bf9bdb5c2f72af | [
"MIT"
] | null | null | null | from .base import *
class Options(ListableApiResource, CreateableApiResource, UpdateableApiResource, DeleteableApiResource):
resource_name = 'options'
def values(self, id=None):
if id:
return OptionValues.get(self.id, id, connection=self._connection)
else:
return Optio... | 32.444444 | 121 | 0.739726 | 53 | 584 | 8.018868 | 0.566038 | 0.042353 | 0.075294 | 0.122353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178082 | 584 | 17 | 122 | 34.352941 | 0.885417 | 0 | 0 | 0 | 0 | 0 | 0.049658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 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 |
a84368b717e48b36eb701f61e858302d7ec5883b | 277 | py | Python | djblog/comments/admin.py | rewalkerof/microblog | 2ef1652dcb9a7d35eed228f1d74587f4b0fa8912 | [
"MIT"
] | null | null | null | djblog/comments/admin.py | rewalkerof/microblog | 2ef1652dcb9a7d35eed228f1d74587f4b0fa8912 | [
"MIT"
] | null | null | null | djblog/comments/admin.py | rewalkerof/microblog | 2ef1652dcb9a7d35eed228f1d74587f4b0fa8912 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Comment
# Register your models here.
class CommentsAdmin(admin.ModelAdmin):
list_display = ['id', "user", "content", "timestamp"]
class Meta:
model = Comment
admin.site.register(Comment, CommentsAdmin)
| 18.466667 | 57 | 0.714801 | 32 | 277 | 6.15625 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180505 | 277 | 14 | 58 | 19.785714 | 0.867841 | 0.093863 | 0 | 0 | 0 | 0 | 0.088353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.714286 | 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 |
a8475c65df4075b3b08496dd18fcba18f180aafe | 4,306 | py | Python | pgoapi/protos/POGOProtos/Networking/Responses/SetAvatarResponse_pb2.py | PogoHop/pgoapi-hsvr | b5761159e0240bbb81ef6c257fe2eb1bc1ce2d47 | [
"MIT"
] | null | null | null | pgoapi/protos/POGOProtos/Networking/Responses/SetAvatarResponse_pb2.py | PogoHop/pgoapi-hsvr | b5761159e0240bbb81ef6c257fe2eb1bc1ce2d47 | [
"MIT"
] | null | null | null | pgoapi/protos/POGOProtos/Networking/Responses/SetAvatarResponse_pb2.py | PogoHop/pgoapi-hsvr | b5761159e0240bbb81ef6c257fe2eb1bc1ce2d47 | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: POGOProtos/Networking/Responses/SetAvatarResponse.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
... | 38.106195 | 529 | 0.760102 | 490 | 4,306 | 6.412245 | 0.293878 | 0.072565 | 0.092298 | 0.131763 | 0.328135 | 0.247931 | 0.203055 | 0.126034 | 0.101846 | 0.057288 | 0 | 0.035954 | 0.134464 | 4,306 | 112 | 530 | 38.446429 | 0.807083 | 0.065258 | 0 | 0.402174 | 1 | 0.01087 | 0.259278 | 0.221142 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076087 | 0 | 0.076087 | 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 |
a8498638fe63f75b8fb7831a168989a3237bda41 | 887 | py | Python | PP4E-Examples-1.4/Examples/PP4E/System/Threads/four-threads.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | PP4E-Examples-1.4/Examples/PP4E/System/Threads/four-threads.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | PP4E-Examples-1.4/Examples/PP4E/System/Threads/four-threads.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | """
four different ways to run an action in a thread; all print 4294967296,
but prints should be synchronized with a mutex here to avoid overlap
"""
import threading, _thread
def action(i):
print(i ** 32)
# subclass with state
class Mythread(threading.Thread):
def __init__(self, i):
self.i = i
... | 31.678571 | 83 | 0.621195 | 114 | 887 | 4.72807 | 0.473684 | 0.139147 | 0.06679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028213 | 0.280722 | 887 | 27 | 84 | 32.851852 | 0.816614 | 0.385569 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.357143 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a84c51e00e3c06ed946f2d73ff195ec6335ee4c9 | 8,007 | py | Python | argo/workflows/client/models/v1_pod_log_options.py | fvdnabee/argo-client-python | 0caa743442d37f2f2e3b30867398ed2708c1bf4d | [
"Apache-2.0"
] | 35 | 2019-10-25T09:19:36.000Z | 2022-03-04T11:22:27.000Z | argo/workflows/client/models/v1_pod_log_options.py | fvdnabee/argo-client-python | 0caa743442d37f2f2e3b30867398ed2708c1bf4d | [
"Apache-2.0"
] | 17 | 2019-10-30T03:49:20.000Z | 2020-07-02T15:54:50.000Z | argo/workflows/client/models/v1_pod_log_options.py | fvdnabee/argo-client-python | 0caa743442d37f2f2e3b30867398ed2708c1bf4d | [
"Apache-2.0"
] | 9 | 2019-11-06T13:30:08.000Z | 2021-06-12T03:00:05.000Z | # coding: utf-8
"""
Argo
Python client for Argo Workflows # noqa: E501
OpenAPI spec version: master
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class V1PodLogOptions(object):
"""NOTE: This class is auto generated... | 26.869128 | 170 | 0.585488 | 892 | 8,007 | 5.098655 | 0.140135 | 0.042216 | 0.147757 | 0.131926 | 0.432718 | 0.337951 | 0.306069 | 0.242964 | 0.08971 | 0.016711 | 0 | 0.023432 | 0.323092 | 8,007 | 297 | 171 | 26.959596 | 0.815683 | 0.333958 | 0 | 0.076336 | 1 | 0 | 0.0616 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.167939 | false | 0 | 0.022901 | 0 | 0.320611 | 0.015267 | 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 |
a854b2655b1079804920d693717c0a025c1256f9 | 129,043 | py | Python | benchmarks/Generators/Parser/SygusParser.py | yangdinglou/DryadSynth | 0e80c08c3f8a95c16c75b413b53b10fa30c945ce | [
"MIT"
] | 19 | 2020-07-06T01:01:28.000Z | 2022-03-09T19:22:25.000Z | benchmarks/Generators/Parser/SygusParser.py | yangdinglou/DryadSynth | 0e80c08c3f8a95c16c75b413b53b10fa30c945ce | [
"MIT"
] | 2 | 2020-09-20T12:26:54.000Z | 2021-11-22T21:48:08.000Z | benchmarks/Generators/Parser/SygusParser.py | yangdinglou/DryadSynth | 0e80c08c3f8a95c16c75b413b53b10fa30c945ce | [
"MIT"
] | null | null | null | # Generated from Sygus.g4 by ANTLR 4.7.1
# encoding: utf-8
from antlr4 import *
from io import StringIO
from typing.io import TextIO
import sys
def serializedATN():
with StringIO() as buf:
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3%")
buf.write("\u01ca\4\2\t\2\4\3\t\3\4\4\t\4\4... | 34.319947 | 166 | 0.586897 | 13,771 | 129,043 | 5.413115 | 0.083945 | 0.013012 | 0.009297 | 0.009015 | 0.656377 | 0.622719 | 0.608687 | 0.530063 | 0.456469 | 0.373135 | 0 | 0.077047 | 0.303488 | 129,043 | 3,759 | 167 | 34.329077 | 0.752325 | 0.000504 | 0 | 0.567776 | 1 | 0.063748 | 0.107429 | 0.082803 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153065 | false | 0.022767 | 0.001401 | 0.058494 | 0.323643 | 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 |
a8556da33787e277786e6a3792b993ea18601c17 | 1,870 | py | Python | keitaro/utils.py | Infvmous/keitaro | aeb7555bd8443da995705f26fd42e6e882f64dd4 | [
"MIT"
] | 1 | 2021-07-03T16:40:37.000Z | 2021-07-03T16:40:37.000Z | keitaro/utils.py | ysomad/keitaro | aeb7555bd8443da995705f26fd42e6e882f64dd4 | [
"MIT"
] | 1 | 2021-01-28T13:06:33.000Z | 2021-01-28T13:06:36.000Z | keitaro/utils.py | ysomad/keitaro | aeb7555bd8443da995705f26fd42e6e882f64dd4 | [
"MIT"
] | 1 | 2021-02-23T08:10:29.000Z | 2021-02-23T08:10:29.000Z | import random
from string import ascii_letters, digits
from urllib.parse import urlparse
def list_to_string(list_items, separator='\n'):
"""
Converts list items to string with separator
"""
return separator.join(list_items)
def string_to_list(string, separator='\n'):
"""
Converts string wit... | 26.338028 | 79 | 0.675401 | 251 | 1,870 | 4.836653 | 0.36255 | 0.054366 | 0.029654 | 0.034596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000695 | 0.231016 | 1,870 | 70 | 80 | 26.714286 | 0.843533 | 0.168449 | 0 | 0 | 0 | 0 | 0.047945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0.088235 | 0 | 0.470588 | 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 |
a8584dc2e1d7252f7eee5bae7caafe98b9817a57 | 5,304 | py | Python | tensorflow_1_x/7_kaggle/learntools/pandas/indexing_selecting_and_assigning.py | amitbcp/machine_learning_with_Scikit_Learn_and_TensorFlow | 37dda063e316503d53ac45f3b104a5cf1aaa4d78 | [
"MIT"
] | 11 | 2019-12-19T08:55:52.000Z | 2021-10-01T13:07:13.000Z | tensorflow_1_x/7_kaggle/learntools/pandas/indexing_selecting_and_assigning.py | amitbcp/Scikit_Learn_TensorFlow_Examples | 37dda063e316503d53ac45f3b104a5cf1aaa4d78 | [
"MIT"
] | 5 | 2019-10-09T01:41:19.000Z | 2022-02-10T00:19:01.000Z | tensorflow_1_x/7_kaggle/learntools/pandas/indexing_selecting_and_assigning.py | amitbcp/Scikit_Learn_TensorFlow_Examples | 37dda063e316503d53ac45f3b104a5cf1aaa4d78 | [
"MIT"
] | 7 | 2019-10-08T06:10:14.000Z | 2020-12-01T07:49:21.000Z | import pandas as pd
from learntools.core import *
reviews = pd.read_csv("../input/wine-reviews/winemag-data-130k-v2.csv", index_col=0)
# 1
class SelectDescCol(EqualityCheckProblem):
_var = 'desc'
_expected = (
reviews.description
)
#_solution = CS("desc = reviews.description")
# This ... | 35.36 | 289 | 0.6727 | 660 | 5,304 | 5.30303 | 0.3 | 0.051429 | 0.025143 | 0.024 | 0.345429 | 0.305429 | 0.275714 | 0.251429 | 0.233714 | 0.204 | 0 | 0.017585 | 0.19589 | 5,304 | 149 | 290 | 35.597315 | 0.803048 | 0.024698 | 0 | 0.396825 | 0 | 0.087302 | 0.609572 | 0.050184 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015873 | 0 | 0.420635 | 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 |
a862a94126909233a9d159eed285bf366dafeca1 | 1,739 | py | Python | distfromplane_demo.py | johnmgregoire/PythonCompositionPlots | e105c575463b7d4512d9aac18c7330d1a0dc2c14 | [
"BSD-3-Clause"
] | 4 | 2018-03-05T09:34:49.000Z | 2022-02-01T15:33:54.000Z | distfromplane_demo.py | johnmgregoire/PythonCompositionPlots | e105c575463b7d4512d9aac18c7330d1a0dc2c14 | [
"BSD-3-Clause"
] | null | null | null | distfromplane_demo.py | johnmgregoire/PythonCompositionPlots | e105c575463b7d4512d9aac18c7330d1a0dc2c14 | [
"BSD-3-Clause"
] | 2 | 2016-01-24T19:09:21.000Z | 2019-10-11T12:43:07.000Z | import pylab, numpy
from myquaternaryutility import QuaternaryPlot
q=QuaternaryPlot(211)
q2=QuaternaryPlot(212)
#t=numpy.linspace(0,1.,5)
#comps=[[a,b,c,d] for a in t for b in t for c in t for d in t if a+b+c+d==1.]
#comps=numpy.float32(comps)
t=numpy.linspace(0,1.,30)
comps=[[a,b,1.-a-b-(2.*a**2+b),2.*a**2+b] for a... | 31.618182 | 191 | 0.703278 | 278 | 1,739 | 4.377698 | 0.28777 | 0.01479 | 0.019721 | 0.00986 | 0.522597 | 0.455218 | 0.405916 | 0.354971 | 0.331964 | 0.331964 | 0 | 0.07871 | 0.108683 | 1,739 | 54 | 192 | 32.203704 | 0.706452 | 0.072455 | 0 | 0.216216 | 0 | 0 | 0.02236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054054 | null | null | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a867335bf7412afcc85944e531249bfc53f2c724 | 813 | py | Python | mopidy_spotify_tunigo/__init__.py | trygveaa/mopidy-spotify-tunigo | b33d6df81b8b827859c9288ebedfa71304b98d07 | [
"Apache-2.0"
] | 34 | 2015-02-28T14:19:22.000Z | 2019-09-19T14:55:32.000Z | mopidy_spotify_tunigo/__init__.py | trygveaa/mopidy-spotify-tunigo | b33d6df81b8b827859c9288ebedfa71304b98d07 | [
"Apache-2.0"
] | 6 | 2015-01-12T12:07:13.000Z | 2019-12-12T23:01:37.000Z | mopidy_spotify_tunigo/__init__.py | trygveaa/mopidy-spotify-tunigo | b33d6df81b8b827859c9288ebedfa71304b98d07 | [
"Apache-2.0"
] | 3 | 2015-05-22T17:24:43.000Z | 2017-04-11T17:57:42.000Z | from __future__ import unicode_literals
import os
from mopidy import config, ext
__version__ = '1.0.0'
class Extension(ext.Extension):
dist_name = 'Mopidy-Spotify-Tunigo'
ext_name = 'spotify_tunigo'
version = __version__
def get_default_config(self):
conf_file = os.path.join(os.path.dirn... | 26.225806 | 71 | 0.688807 | 98 | 813 | 5.408163 | 0.479592 | 0.049057 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006182 | 0.204182 | 813 | 30 | 72 | 27.1 | 0.812983 | 0 | 0 | 0 | 0 | 0 | 0.099631 | 0.02583 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.2 | 0 | 0.65 | 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 |
a86bd19cc05762dfd9e1c34a405531b5248d3abb | 7,553 | py | Python | mwlib/utoken.py | pediapress/mwlib | 1074fbc429e65180de09671dbc369ed1eeb2345d | [
"Unlicense"
] | 53 | 2015-02-17T16:20:06.000Z | 2022-03-18T09:22:00.000Z | mwlib/utoken.py | pediapress/mwlib | 1074fbc429e65180de09671dbc369ed1eeb2345d | [
"Unlicense"
] | 23 | 2015-01-30T16:26:20.000Z | 2022-03-11T23:26:03.000Z | mwlib/utoken.py | pediapress/mwlib | 1074fbc429e65180de09671dbc369ed1eeb2345d | [
"Unlicense"
] | 19 | 2015-01-21T13:55:46.000Z | 2019-02-23T23:14:31.000Z | #! /usr/bin/env python
# Copyright (c) 2007-2009 PediaPress GmbH
# See README.rst for additional licensing information.
# unified/universal token
import sys
import re
import _uscan as _mwscan
from mwlib.refine.util import resolve_entity, parseParams
def walknode(node, filt=lambda x: True):
if not isinstance(no... | 24.683007 | 94 | 0.558983 | 996 | 7,553 | 4.105422 | 0.258032 | 0.037662 | 0.029592 | 0.040352 | 0.106628 | 0.06652 | 0.030325 | 0.030325 | 0.030325 | 0.013695 | 0 | 0.01659 | 0.337614 | 7,553 | 305 | 95 | 24.763934 | 0.80072 | 0.021051 | 0 | 0.111111 | 0 | 0 | 0.056172 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0 | null | null | 0 | 0.017094 | null | null | 0.004274 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a86d72d1fa9d273bd8fa78ace8fa385b2f849513 | 4,826 | py | Python | pynmmso/listeners/trace_listener.py | wood-chris/pynmmso | e13f8139160421a9d3f7e650ad6f988c9244ca69 | [
"MIT"
] | 5 | 2019-06-01T06:21:25.000Z | 2021-11-17T18:43:43.000Z | pynmmso/listeners/trace_listener.py | wood-chris/pynmmso | e13f8139160421a9d3f7e650ad6f988c9244ca69 | [
"MIT"
] | null | null | null | pynmmso/listeners/trace_listener.py | wood-chris/pynmmso | e13f8139160421a9d3f7e650ad6f988c9244ca69 | [
"MIT"
] | 3 | 2019-10-01T11:24:06.000Z | 2021-09-23T17:20:03.000Z | from pynmmso.listeners.base_listener import BaseListener
class TraceListener(BaseListener):
"""
Listener used to trace the progress of the Nmmso algorithm.
Arguments
---------
level : int
The amount of detail to output in the trace. Level 1 is the least information and
level 5 is... | 37.123077 | 98 | 0.588065 | 579 | 4,826 | 4.709845 | 0.196891 | 0.072607 | 0.080675 | 0.044004 | 0.385039 | 0.343601 | 0.313165 | 0.239091 | 0.175284 | 0.143014 | 0 | 0.012489 | 0.30315 | 4,826 | 129 | 99 | 37.410853 | 0.798394 | 0.046622 | 0 | 0.193548 | 0 | 0 | 0.202016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.215054 | false | 0 | 0.010753 | 0 | 0.236559 | 0.225806 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a87166a60d65966ddedb5ce1324d6d79ae3b0c7c | 17,050 | py | Python | arghphot/arghphot.py | balbinot/arghphot | ebfa8da444d2b43d68248bb450dfdc49890e0794 | [
"MIT"
] | 1 | 2016-05-21T21:11:21.000Z | 2016-05-21T21:11:21.000Z | arghphot/arghphot.py | balbinot/arghphot | ebfa8da444d2b43d68248bb450dfdc49890e0794 | [
"MIT"
] | null | null | null | arghphot/arghphot.py | balbinot/arghphot | ebfa8da444d2b43d68248bb450dfdc49890e0794 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#-*- coding: utf-8 -*-
## temp imports
from matplotlib import pyplot as p
from matplotlib import cm
import tempfile
import numpy as np
from astropy.io import fits, ascii
from astropy.coordinates import SkyCoord
from astropy import units as u
from astropy import wcs
import aplpy
from pyraf impo... | 37.888889 | 125 | 0.528504 | 2,409 | 17,050 | 3.701121 | 0.202574 | 0.004711 | 0.014132 | 0.006169 | 0.290825 | 0.197959 | 0.169695 | 0.167003 | 0.152423 | 0.128197 | 0 | 0.031276 | 0.296774 | 17,050 | 449 | 126 | 37.973274 | 0.712344 | 0.077361 | 0 | 0.090909 | 0 | 0.002933 | 0.108046 | 0.006817 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038123 | null | null | 0.017595 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a8719a8d286f6a06b3cf89fb0e6e20d2209d3663 | 74,138 | py | Python | core/domain/exp_domain_test.py | imrk51/oppia | 615ce1dbdaffbb0c090c52d13ef6a3f7c1043d5c | [
"Apache-2.0"
] | null | null | null | core/domain/exp_domain_test.py | imrk51/oppia | 615ce1dbdaffbb0c090c52d13ef6a3f7c1043d5c | [
"Apache-2.0"
] | null | null | null | core/domain/exp_domain_test.py | imrk51/oppia | 615ce1dbdaffbb0c090c52d13ef6a3f7c1043d5c | [
"Apache-2.0"
] | 1 | 2021-08-04T13:03:16.000Z | 2021-08-04T13:03:16.000Z | # coding: utf-8
#
# Copyright 2014 The Oppia Authors. 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 requi... | 31.216 | 115 | 0.605614 | 7,278 | 74,138 | 5.894889 | 0.081204 | 0.031047 | 0.027504 | 0.03438 | 0.699811 | 0.640724 | 0.568468 | 0.523576 | 0.479151 | 0.456052 | 0 | 0.005174 | 0.30392 | 74,138 | 2,374 | 116 | 31.229149 | 0.826183 | 0.086798 | 0 | 0.720544 | 0 | 0 | 0.421204 | 0.019658 | 0 | 0 | 0 | 0.000421 | 0.074522 | 1 | 0.020645 | false | 0 | 0.005539 | 0.000504 | 0.039778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8767131fc92daf2b1e76889f0a46f8b914b9aa3 | 1,889 | py | Python | PyrogramBot/commands.py | Habdio/GROUP-AutoManageBot | 211ac78b0ce8a267ef9b77f881412ba87140d39b | [
"MIT"
] | null | null | null | PyrogramBot/commands.py | Habdio/GROUP-AutoManageBot | 211ac78b0ce8a267ef9b77f881412ba87140d39b | [
"MIT"
] | null | null | null | PyrogramBot/commands.py | Habdio/GROUP-AutoManageBot | 211ac78b0ce8a267ef9b77f881412ba87140d39b | [
"MIT"
] | null | null | null | from pyrogram import Client, filters
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
from pyrogram.types import CallbackQuery
import random
ALL_PIC = [
"https://telegra.ph/file/52b71d5a61c904c6a59d1.jpg",
"https://telegra.ph/file/28a00384a3be4f6c916ba.jpg",
"https://telegra.ph/file/eb654e5c7f... | 39.354167 | 218 | 0.629434 | 254 | 1,889 | 4.838583 | 0.440945 | 0.017087 | 0.056957 | 0.07323 | 0.143206 | 0.074858 | 0.016273 | 0.016273 | 0.016273 | 0 | 0 | 0.045884 | 0.215458 | 1,889 | 47 | 219 | 40.191489 | 0.745614 | 0 | 0 | 0.175 | 0 | 0.025 | 0.376919 | 0.014293 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8782932b4cb5b62f9cdd1eb887ce299cb47652d | 1,044 | py | Python | tests/sample_runbooks/set_variable.py | tuxtof/calm-dsl | 5af67435d8304b97e170a690068f2d5975e9bfe6 | [
"Apache-2.0"
] | 37 | 2019-12-23T15:23:20.000Z | 2022-03-15T11:12:11.000Z | tests/sample_runbooks/set_variable.py | gabybeitler/calm-dsl | bac453413cfcf800eef95d89d5a7323c83654a93 | [
"Apache-2.0"
] | 144 | 2020-03-09T11:22:09.000Z | 2022-03-28T21:34:09.000Z | tests/sample_runbooks/set_variable.py | gabybeitler/calm-dsl | bac453413cfcf800eef95d89d5a7323c83654a93 | [
"Apache-2.0"
] | 46 | 2020-01-23T14:28:04.000Z | 2022-03-09T04:17:10.000Z | """
Calm Runbook Sample for set variable task
"""
from calm.dsl.runbooks import read_local_file
from calm.dsl.runbooks import runbook, runbook_json
from calm.dsl.runbooks import RunbookTask as Task
from calm.dsl.runbooks import CalmEndpoint as Endpoint, basic_cred
CRED_USERNAME = read_local_file(".tests/runbook_tests... | 29.828571 | 84 | 0.749042 | 139 | 1,044 | 5.395683 | 0.381295 | 0.042667 | 0.058667 | 0.101333 | 0.264 | 0.197333 | 0 | 0 | 0 | 0 | 0 | 0.006522 | 0.118774 | 1,044 | 34 | 85 | 30.705882 | 0.808696 | 0.077586 | 0 | 0 | 0 | 0 | 0.223116 | 0.108543 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.095238 | 0.190476 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a87b6a507b0104731193175cfd2830a1d450aa86 | 873 | py | Python | tools/annotation/gPro_profile.py | hidelab/galaxy-central-hpc | 75539db90abe90377db95718f83cafa7cfa43301 | [
"CC-BY-3.0"
] | null | null | null | tools/annotation/gPro_profile.py | hidelab/galaxy-central-hpc | 75539db90abe90377db95718f83cafa7cfa43301 | [
"CC-BY-3.0"
] | null | null | null | tools/annotation/gPro_profile.py | hidelab/galaxy-central-hpc | 75539db90abe90377db95718f83cafa7cfa43301 | [
"CC-BY-3.0"
] | null | null | null | #!/usr/bin/env python
from anno_lib import gPro
import sys
##
# Runs the GOst profiler from g:Profiler
####
# jje 10152011
# Oliver Hofmann
# Bioinformatics Core
# Harvard School of Public Health
####
#term = "GO:0007050"
#gost_loc = "http://biit.cs.ut.ee/gprofiler/"
try:
idfile = sys.argv[1]
outfile = sys.argv[2... | 19.4 | 70 | 0.710195 | 142 | 873 | 4.253521 | 0.640845 | 0.057947 | 0.046358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027064 | 0.153494 | 873 | 44 | 71 | 19.840909 | 0.790257 | 0.31386 | 0 | 0 | 0 | 0 | 0.118182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a87ca034edbcf0ccd37f65c8627b5f05c80d33a3 | 5,135 | py | Python | deploy/proc_vector.py | loadwiki/insightface | a641d7c83efebbfd44e6d5ce591646a508744425 | [
"MIT"
] | null | null | null | deploy/proc_vector.py | loadwiki/insightface | a641d7c83efebbfd44e6d5ce591646a508744425 | [
"MIT"
] | null | null | null | deploy/proc_vector.py | loadwiki/insightface | a641d7c83efebbfd44e6d5ce591646a508744425 | [
"MIT"
] | null | null | null | import face_model
import argparse
import os
import cv2
import sys
import numpy as np
parser = argparse.ArgumentParser(description='face model test')
# general
parser.add_argument('--image-size', default='112,112', help='')
parser.add_argument('--enable-gpu', default=False, type=bool, help='enable to detect and inferen... | 34.006623 | 152 | 0.659007 | 828 | 5,135 | 3.879227 | 0.172705 | 0.047945 | 0.074097 | 0.031756 | 0.275218 | 0.169365 | 0.134496 | 0.118929 | 0.080635 | 0.080635 | 0 | 0.0226 | 0.198637 | 5,135 | 151 | 153 | 34.006623 | 0.757959 | 0.054333 | 0 | 0.147287 | 0 | 0.015504 | 0.171759 | 0.006606 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007752 | 0.046512 | null | null | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8811200a87031d7a49f84665c7e8ea51e4ccb14 | 648 | py | Python | django_test/articles/migrations/0008_auto_20200306_1955.py | MachineLearningIsEasy/python_lesson_22 | 7fe77da5fa611a54578d092207059f65b719ed8a | [
"MIT"
] | 1 | 2020-03-12T13:07:35.000Z | 2020-03-12T13:07:35.000Z | django_test/articles/migrations/0008_auto_20200306_1955.py | MachineLearningIsEasy/python_lesson_22 | 7fe77da5fa611a54578d092207059f65b719ed8a | [
"MIT"
] | null | null | null | django_test/articles/migrations/0008_auto_20200306_1955.py | MachineLearningIsEasy/python_lesson_22 | 7fe77da5fa611a54578d092207059f65b719ed8a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-03-06 19:55
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0007_auto_20200306_1946'),
]
operations = [
migrations.AlterField(
model_name='article',
... | 25.92 | 98 | 0.606481 | 70 | 648 | 5.5 | 0.628571 | 0.114286 | 0.12987 | 0.150649 | 0.244156 | 0.244156 | 0.244156 | 0 | 0 | 0 | 0 | 0.104255 | 0.274691 | 648 | 24 | 99 | 27 | 0.714894 | 0.069444 | 0 | 0.333333 | 1 | 0 | 0.126456 | 0.03827 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a881135e08ba4f471543f5c8dd4cdb32fe51f578 | 2,420 | py | Python | models/002_auth.py | ecohealthalliance/sicki | 390ab06cedc205a415d823339f5816730dcc4b72 | [
"Apache-2.0"
] | null | null | null | models/002_auth.py | ecohealthalliance/sicki | 390ab06cedc205a415d823339f5816730dcc4b72 | [
"Apache-2.0"
] | null | null | null | models/002_auth.py | ecohealthalliance/sicki | 390ab06cedc205a415d823339f5816730dcc4b72 | [
"Apache-2.0"
] | null | null | null | from gluon.tools import Auth
auth = Auth(db, hmac_key=Auth.get_or_create_key())
auth.settings.registration_requires_verification = False
auth.settings.registration_requires_approval = False
auth.settings.reset_password_requires_verification = True
auth.define_tables ()
admin_role = auth.id_group ("Administrator")
if... | 28.470588 | 113 | 0.634298 | 322 | 2,420 | 4.614907 | 0.251553 | 0.080754 | 0.042396 | 0.05249 | 0.453567 | 0.430013 | 0.353297 | 0.258412 | 0.235532 | 0.235532 | 0 | 0.009439 | 0.255785 | 2,420 | 84 | 114 | 28.809524 | 0.815658 | 0 | 0 | 0.5 | 0 | 0 | 0.070661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185714 | false | 0.014286 | 0.014286 | 0.028571 | 0.514286 | 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 |
a884c82cc571aa5061e58f71c9e99493a0106092 | 615 | py | Python | numpan/pan03.py | jaywoong/python | 99daedd5a9418b72b2d5c3b800080e730eb9b3ea | [
"Apache-2.0"
] | null | null | null | numpan/pan03.py | jaywoong/python | 99daedd5a9418b72b2d5c3b800080e730eb9b3ea | [
"Apache-2.0"
] | 1 | 2021-11-07T04:54:55.000Z | 2021-11-07T04:54:55.000Z | numpan/pan03.py | jaywoong/learn_pandas | 972ad015c142d5e88ea821694b7a95e6aeb4e172 | [
"Apache-2.0"
] | null | null | null | import pandas as pd;
import numpy as np;
data1 = ['A',2];
data2 = ['B',4];
df1 = pd.DataFrame([data1,data2]);
print(df1);
data = {'subject' : ['math', 'comp', 'phys', 'chem'],
'score': [100, 90, 85, 95],
'students': [94, 32, 83, 17]};
df2 = pd.DataFrame(data);
print(df2);
print(len(df2));
print(df2.s... | 21.964286 | 64 | 0.585366 | 99 | 615 | 3.636364 | 0.454545 | 0.122222 | 0.108333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119772 | 0.144715 | 615 | 27 | 65 | 22.777778 | 0.564639 | 0.014634 | 0 | 0 | 0 | 0 | 0.131012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a88abbaa6de226c43d73cf509cf13cab18de2ecb | 848 | py | Python | 05. DiagonalDifference/solution.py | avishkar2001/AlgorithmHackerRank | d9489ba329121cbbbbc28b15fb8570d7696cde88 | [
"MIT"
] | 11 | 2020-09-18T16:23:06.000Z | 2022-01-22T11:59:57.000Z | 05. DiagonalDifference/solution.py | avishkar2001/AlgorithmHackerRank | d9489ba329121cbbbbc28b15fb8570d7696cde88 | [
"MIT"
] | 1 | 2020-10-02T14:33:08.000Z | 2021-10-05T02:44:19.000Z | 05. DiagonalDifference/solution.py | avishkar2001/AlgorithmHackerRank | d9489ba329121cbbbbc28b15fb8570d7696cde88 | [
"MIT"
] | 11 | 2020-09-18T16:23:13.000Z | 2022-01-22T11:59:58.000Z | '''
Topic : Algorithms
Subtopic : Diagonal Difference
Language : Python
Problem Statement : Given a square matrix, calculate the absolute difference between the sums of its diagonals.
Url : https://www.hackerrank.com/challenges/diagonal-difference/problem
'''
#!/bin/python3
# Complete the 'diagonalD... | 32.615385 | 115 | 0.665094 | 135 | 848 | 4.162963 | 0.548148 | 0.053381 | 0.074733 | 0.092527 | 0.071174 | 0.02847 | 0.02847 | 0.02847 | 0.02847 | 0.02847 | 0 | 0.068571 | 0.174528 | 848 | 25 | 116 | 33.92 | 0.734286 | 0.517689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.375 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8908a5ec5616695737ca542359a44699f12cde8 | 6,722 | py | Python | gg_gui/gui/gg_start.py | ealcobaca/optimizer_pool | e93ac72c1547bc3813a0edf822d5fd453f22ce49 | [
"MIT"
] | 1 | 2022-03-10T21:46:07.000Z | 2022-03-10T21:46:07.000Z | gg_gui/gui/gg_start.py | ealcobaca/optimizer_pool | e93ac72c1547bc3813a0edf822d5fd453f22ce49 | [
"MIT"
] | null | null | null | gg_gui/gui/gg_start.py | ealcobaca/optimizer_pool | e93ac72c1547bc3813a0edf822d5fd453f22ce49 | [
"MIT"
] | 1 | 2022-03-10T21:46:09.000Z | 2022-03-10T21:46:09.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/GG_start.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from utilGui import Names
class Ui_main_window(object):
def setupUi(self... | 41.239264 | 74 | 0.666617 | 822 | 6,722 | 5.281022 | 0.205596 | 0.066575 | 0.072564 | 0.034554 | 0.366966 | 0.25455 | 0.156876 | 0.126699 | 0.110113 | 0.110113 | 0 | 0.048887 | 0.217941 | 6,722 | 162 | 75 | 41.493827 | 0.776869 | 0.045968 | 0 | 0.198413 | 1 | 0 | 0.05473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007937 | false | 0 | 0.015873 | 0 | 0.031746 | 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 |
a8945cb8801554f627e2ef91c6ad0ae2533363a4 | 603 | py | Python | deepchem/data/test_data_loader.py | n3011/deepchem | c316d998c462ce01032f0dae883856b400ea4765 | [
"MIT"
] | 2 | 2021-04-01T01:17:53.000Z | 2021-10-04T16:46:13.000Z | deepchem/data/test_data_loader.py | n3011/deepchem | c316d998c462ce01032f0dae883856b400ea4765 | [
"MIT"
] | 1 | 2020-07-13T18:59:49.000Z | 2020-07-13T18:59:49.000Z | deepchem/data/test_data_loader.py | n3011/deepchem | c316d998c462ce01032f0dae883856b400ea4765 | [
"MIT"
] | 1 | 2021-04-06T20:32:02.000Z | 2021-04-06T20:32:02.000Z | import os
from unittest import TestCase
from io import StringIO
import tempfile
import shutil
import deepchem as dc
class TestCSVLoader(TestCase):
def test_load_singleton_csv(self):
fin = tempfile.NamedTemporaryFile(mode='w', delete=False)
fin.write("smiles,endpoint\nc1ccccc1,1")
fin.close()
print... | 24.12 | 66 | 0.719735 | 78 | 603 | 5.512821 | 0.628205 | 0.048837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015968 | 0.169154 | 603 | 24 | 67 | 25.125 | 0.842315 | 0 | 0 | 0 | 0 | 0 | 0.069652 | 0.044776 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.421053 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a897a4fa8a48d750657c9f7f093c97c8595dcb6d | 3,094 | py | Python | src/test/aiml_tests/pattern_set_tests/test_pattern_set_aiml.py | narnikgamarnikus/program-y | 777b9a8a75ec787c037de9f11a8527875ff450b1 | [
"MIT"
] | null | null | null | src/test/aiml_tests/pattern_set_tests/test_pattern_set_aiml.py | narnikgamarnikus/program-y | 777b9a8a75ec787c037de9f11a8527875ff450b1 | [
"MIT"
] | null | null | null | src/test/aiml_tests/pattern_set_tests/test_pattern_set_aiml.py | narnikgamarnikus/program-y | 777b9a8a75ec787c037de9f11a8527875ff450b1 | [
"MIT"
] | null | null | null | import unittest
import os
from test.aiml_tests.client import TestClient
from programy.config.sections.brain.file import BrainFileConfiguration
class BasicTestClient(TestClient):
def __init__(self):
TestClient.__init__(self)
def load_configuration(self, arguments):
super(BasicTestClient, self)... | 50.721311 | 123 | 0.73788 | 403 | 3,094 | 5.471464 | 0.193548 | 0.12517 | 0.157823 | 0.184581 | 0.689796 | 0.654422 | 0.603628 | 0.530612 | 0.468481 | 0.399093 | 0 | 0 | 0.170976 | 3,094 | 60 | 124 | 51.566667 | 0.859649 | 0 | 0 | 0 | 0 | 0 | 0.257679 | 0 | 0 | 0 | 0 | 0 | 0.261905 | 1 | 0.190476 | false | 0 | 0.095238 | 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 |
a899d0bde8415bf24f5d7bf27bdd0c2ee8c0fdf1 | 391 | py | Python | clase 1/quiz 1/quiz 1 exe.py | amedina14/uip-iq17-pc3 | 89f04c0670079384cee40736d5c92175a8c586a5 | [
"MIT"
] | null | null | null | clase 1/quiz 1/quiz 1 exe.py | amedina14/uip-iq17-pc3 | 89f04c0670079384cee40736d5c92175a8c586a5 | [
"MIT"
] | null | null | null | clase 1/quiz 1/quiz 1 exe.py | amedina14/uip-iq17-pc3 | 89f04c0670079384cee40736d5c92175a8c586a5 | [
"MIT"
] | null | null | null | '''
Quiz 1:
Hacer un programa que lea una temperatura en farenheit y la convierta en celsius y si es mayor
a 100°C imprima "caliente". Si es menor a 0°C imprima "frio"
'''
tempF = int(input("TempF: "))
#(tempF - 32/(5/9))
tempC = (((tempF - 32)*5)/9)
print("\nLa temperatura en Celsius es " + str(tempC))
... | 23 | 95 | 0.629156 | 66 | 391 | 3.757576 | 0.590909 | 0.104839 | 0.072581 | 0.072581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055375 | 0.214834 | 391 | 17 | 96 | 23 | 0.745928 | 0.465473 | 0 | 0 | 0 | 0 | 0.268817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
a89e48cf3a4bd044b3bfeec924a6e17c47c0d752 | 543 | py | Python | setup.py | anderct105/Dataset_python | 9ab17eda584b6d65e6b37eb2c377f7634d375e8a | [
"MIT"
] | null | null | null | setup.py | anderct105/Dataset_python | 9ab17eda584b6d65e6b37eb2c377f7634d375e8a | [
"MIT"
] | null | null | null | setup.py | anderct105/Dataset_python | 9ab17eda584b6d65e6b37eb2c377f7634d375e8a | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='dataset',
version='0.0.1',
author='Ander Cejudo',
author_email='acejudo001@ikasle.ehu.eus',
packages=['dataset'],
url='Indicar una URL para el paquete...',
license='LICENSE.txt',
description='This package includes some basic functions to work with a dat... | 27.15 | 90 | 0.635359 | 72 | 543 | 4.736111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045767 | 0.195212 | 543 | 20 | 91 | 27.15 | 0.734554 | 0 | 0 | 0 | 0 | 0 | 0.466912 | 0.045956 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8a0133356f4f20d5bb0f1a7ef3b7ad354fcc592 | 1,891 | py | Python | task/bq2bq/executor/bumblebee/loader.py | pikochip/transformers | aa14f19efd2a83aebd7b0d3a296053283b98e624 | [
"Apache-2.0"
] | 34 | 2021-06-16T17:25:13.000Z | 2021-08-13T08:21:22.000Z | task/bq2bq/executor/bumblebee/loader.py | pikochip/transformers | aa14f19efd2a83aebd7b0d3a296053283b98e624 | [
"Apache-2.0"
] | 12 | 2021-08-10T10:08:48.000Z | 2022-03-09T10:14:29.000Z | task/bq2bq/executor/bumblebee/loader.py | pikochip/transformers | aa14f19efd2a83aebd7b0d3a296053283b98e624 | [
"Apache-2.0"
] | 4 | 2021-08-10T13:10:22.000Z | 2022-02-19T14:04:21.000Z | from bumblebee.bigquery_service import BigqueryService
from datetime import datetime
from abc import ABC
from abc import abstractmethod
from bumblebee.config import LoadMethod
class BaseLoader(ABC):
@abstractmethod
def load(self, query):
pass
class PartitionLoader(BaseLoader):
def __init__(sel... | 35.018519 | 105 | 0.673189 | 196 | 1,891 | 6.188776 | 0.204082 | 0.160758 | 0.140973 | 0.052762 | 0.545754 | 0.545754 | 0.484749 | 0.370157 | 0.323166 | 0.323166 | 0 | 0 | 0.260709 | 1,891 | 53 | 106 | 35.679245 | 0.867668 | 0 | 0 | 0.351351 | 0 | 0 | 0.005817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0.027027 | 0.135135 | 0.054054 | 0.513514 | 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 |
a8a04bb0a9831548bd868b09fed78c535d82ee0a | 250 | py | Python | Servus/home/urls.py | sug4rok/Servus | 9840d0e275085c08b99fc7662eb22f2ab253d8f8 | [
"MIT"
] | null | null | null | Servus/home/urls.py | sug4rok/Servus | 9840d0e275085c08b99fc7662eb22f2ab253d8f8 | [
"MIT"
] | null | null | null | Servus/home/urls.py | sug4rok/Servus | 9840d0e275085c08b99fc7662eb22f2ab253d8f8 | [
"MIT"
] | null | null | null | # coding=utf-8
from django.conf.urls import url
from .views import home, positioned, tiled
urlpatterns = [
url(r'^$', home),
url(r'home/$', home),
url(r'positioned-(?P<plan_id>[0-9]{1,4})/$', positioned),
url(r'tiled/$', tiled),
]
| 20.833333 | 61 | 0.608 | 39 | 250 | 3.897436 | 0.589744 | 0.105263 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024038 | 0.168 | 250 | 11 | 62 | 22.727273 | 0.701923 | 0.048 | 0 | 0 | 0 | 0 | 0.217021 | 0.153191 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8a3681ea625f23d752d8458f7791096844d0480 | 4,482 | py | Python | 2_CS_Medium/Leetcode/Interview_Easy/DLC_9_Other.py | andremichalowski/CSN1 | 97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b | [
"MIT"
] | null | null | null | 2_CS_Medium/Leetcode/Interview_Easy/DLC_9_Other.py | andremichalowski/CSN1 | 97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b | [
"MIT"
] | null | null | null | 2_CS_Medium/Leetcode/Interview_Easy/DLC_9_Other.py | andremichalowski/CSN1 | 97eaa66b324ef1850237dd6dcd6d8f71a1a2b64b | [
"MIT"
] | null | null | null | 1. Number of 1 Bits (HammingWeight):
https://leetcode.com/explore/interview/card/top-interview-questions-easy/99/others/565/
# Easy way
def hammingWeight(self, n: int) -> int:
return bin(n).count('1')
# Harder way - https://stackoverflow.com/questions/21237767/python-a-b-meaning
def hammingWeight... | 33.699248 | 141 | 0.555779 | 605 | 4,482 | 4.08595 | 0.328926 | 0.06068 | 0.010922 | 0.015777 | 0.217233 | 0.183252 | 0.154935 | 0.101537 | 0.070793 | 0.070793 | 0 | 0.030118 | 0.340696 | 4,482 | 133 | 142 | 33.699248 | 0.80643 | 0.34315 | 0 | 0.512821 | 0 | 0 | 0.008397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8a60a167cdfc1752d84114af1252a56c3863ffe | 4,701 | py | Python | fca/algorithms/incremental.py | ksiomelo/cubix | cd9e6dda6696b302a7c0d383259a9d60b15b0d55 | [
"Apache-2.0"
] | 3 | 2015-09-07T00:16:16.000Z | 2019-01-11T20:27:56.000Z | fca/algorithms/incremental.py | ksiomelo/cubix | cd9e6dda6696b302a7c0d383259a9d60b15b0d55 | [
"Apache-2.0"
] | null | null | null | fca/algorithms/incremental.py | ksiomelo/cubix | cd9e6dda6696b302a7c0d383259a9d60b15b0d55 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Holds implementation of Norris' algorithm"""
from copy import copy
from fca import Concept, ConceptSystem,ConceptLink
#from fca.algorithms.incremental import derivation
def add_object(object, intent, lattice):
sup_g = lattice.get_bottom_concept()
sup_g.intent | intent #{A... | 43.12844 | 137 | 0.496703 | 659 | 4,701 | 3.462822 | 0.230653 | 0.035057 | 0.013146 | 0.026293 | 0.134969 | 0.076687 | 0.055653 | 0.055653 | 0.018405 | 0 | 0 | 0.007987 | 0.360774 | 4,701 | 108 | 138 | 43.527778 | 0.747421 | 0.24782 | 0 | 0.121951 | 0 | 0 | 0.023478 | 0 | 0 | 0 | 0 | 0.009259 | 0 | 0 | null | null | 0 | 0.036585 | null | null | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a8a8041933930261f3a31462ef960ecbd49c2f5c | 461 | py | Python | demo/worlddata/migrations/0005_foods_hunger.py | MarsZone/DreamLand | 87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | demo/worlddata/migrations/0005_foods_hunger.py | MarsZone/DreamLand | 87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | demo/worlddata/migrations/0005_foods_hunger.py | MarsZone/DreamLand | 87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2017-07-06 08:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('worlddata', '0004_auto_20170628_1556'),
]
operations = [
migrations.AddFiel... | 21.952381 | 61 | 0.618221 | 51 | 461 | 5.411765 | 0.843137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.262473 | 461 | 20 | 62 | 23.05 | 0.711765 | 0.147505 | 0 | 0 | 1 | 0 | 0.110256 | 0.058974 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8ada55f883fca697cc8b38ca817ca0714f36859 | 4,079 | py | Python | deployutils/apps/django/backends/jwt_session_store.py | knivets/djaodjin-deployutils | e3ce90152f1187dd1cd3d63aa14a1aaff924248f | [
"BSD-2-Clause"
] | null | null | null | deployutils/apps/django/backends/jwt_session_store.py | knivets/djaodjin-deployutils | e3ce90152f1187dd1cd3d63aa14a1aaff924248f | [
"BSD-2-Clause"
] | null | null | null | deployutils/apps/django/backends/jwt_session_store.py | knivets/djaodjin-deployutils | e3ce90152f1187dd1cd3d63aa14a1aaff924248f | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2018, DjaoDjin inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and t... | 38.847619 | 78 | 0.68963 | 507 | 4,079 | 5.376726 | 0.431953 | 0.047689 | 0.018709 | 0.016875 | 0.067498 | 0.04989 | 0.04989 | 0.04989 | 0.04989 | 0.04989 | 0 | 0.003552 | 0.240745 | 4,079 | 104 | 79 | 39.221154 | 0.876655 | 0.470704 | 0 | 0 | 0 | 0 | 0.03426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0.086957 | 0.173913 | 0.021739 | 0.413043 | 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 |
a8ae061feeba3985c2e2f3b0364a2da97ebf2e9e | 211 | py | Python | muscles/neo4j/read_py2neo.py | Spanarchian/measure_group | 45eb1f2420cda02611e454f9cd9e568ccba9a4e9 | [
"MIT"
] | null | null | null | muscles/neo4j/read_py2neo.py | Spanarchian/measure_group | 45eb1f2420cda02611e454f9cd9e568ccba9a4e9 | [
"MIT"
] | null | null | null | muscles/neo4j/read_py2neo.py | Spanarchian/measure_group | 45eb1f2420cda02611e454f9cd9e568ccba9a4e9 | [
"MIT"
] | null | null | null |
from py2neo import Graph
grapher = Graph("bolt://localhost:7687", auth=("neo4j", "changeme"))
x = grapher.run("MATCH (a :Person) RETURN a.name, a.city, a.age").to_data_frame()
print(f"To_data_frame() :\n{x}")
| 30.142857 | 81 | 0.682464 | 35 | 211 | 4 | 0.742857 | 0.085714 | 0.157143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031746 | 0.104265 | 211 | 6 | 82 | 35.166667 | 0.708995 | 0 | 0 | 0 | 0 | 0 | 0.485714 | 0.1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8b12924de45222461a00e3c63814bfcde7cffa6 | 25,138 | py | Python | example/nsls2id.py | NSLS-II/aphla | ceb5410dc836a8fb16321b6dc5e10d442be765c5 | [
"BSD-3-Clause"
] | null | null | null | example/nsls2id.py | NSLS-II/aphla | ceb5410dc836a8fb16321b6dc5e10d442be765c5 | [
"BSD-3-Clause"
] | 1 | 2020-02-17T18:56:18.000Z | 2020-02-20T17:06:20.000Z | example/nsls2id.py | NSLS-II/aphla | ceb5410dc836a8fb16321b6dc5e10d442be765c5 | [
"BSD-3-Clause"
] | 1 | 2021-03-08T16:07:11.000Z | 2021-03-08T16:07:11.000Z | """
NSLS-II insertion device commissioning/operation
copyright (C) 2014, Yongjun Li, Yoshi Hidaka, Lingyun Yang
"""
import aphla as ap
import itertools
import numpy as np
import re
import h5py
_params = {
"dw100g1c08u":
{"unitsys": "phy",
"gap": (119.0, 147.0, 30, 0.1),
"cch": ("cch0", ... | 33.383798 | 105 | 0.584533 | 3,306 | 25,138 | 4.358742 | 0.187235 | 0.009577 | 0.016655 | 0.01499 | 0.412353 | 0.38508 | 0.368772 | 0.352186 | 0.329216 | 0.316794 | 0 | 0.034895 | 0.278383 | 25,138 | 752 | 106 | 33.428191 | 0.759482 | 0.048055 | 0 | 0.378685 | 0 | 0.004535 | 0.133626 | 0.007936 | 0 | 0 | 0 | 0.003989 | 0.004535 | 0 | null | null | 0.002268 | 0.013605 | null | null | 0.038549 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a8b4ca0aa758fa6b9fa0e302dfe53d2794b1c6f8 | 2,107 | py | Python | lab/migrations/0003_auto_20191202_1534.py | jtdub/prod2lab | 054c922f731ad377b83714194ef806325f79336a | [
"MIT"
] | 11 | 2019-11-20T02:05:30.000Z | 2021-08-22T13:15:14.000Z | lab/migrations/0003_auto_20191202_1534.py | jtdub/prod2lab | 054c922f731ad377b83714194ef806325f79336a | [
"MIT"
] | 12 | 2019-11-20T02:07:54.000Z | 2019-12-11T14:57:59.000Z | lab/migrations/0003_auto_20191202_1534.py | jtdub/prod2lab | 054c922f731ad377b83714194ef806325f79336a | [
"MIT"
] | 2 | 2019-11-20T02:05:33.000Z | 2019-11-28T01:29:20.000Z | # Generated by Django 2.2.8 on 2019-12-02 15:34
from django.db import migrations, models
import django.db.models.deletion
from lab.models import OperatingSystem
def initial_os_data(app, schema_editor):
data = [
{"os": "ios", "os_type": "cisco_ios", "term_length": "terminal length 0", "fetch_config": "sho... | 41.313725 | 123 | 0.613669 | 242 | 2,107 | 5.119835 | 0.355372 | 0.079903 | 0.087167 | 0.116223 | 0.346247 | 0.302663 | 0.254237 | 0.254237 | 0.221953 | 0.221953 | 0 | 0.030247 | 0.231134 | 2,107 | 50 | 124 | 42.14 | 0.734568 | 0.021357 | 0 | 0.04878 | 1 | 0 | 0.31165 | 0.011165 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.073171 | 0 | 0.170732 | 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 |
a8bbe7e825f46ffee0807079debe846ac5d0afca | 1,374 | py | Python | examples/mini_site/steps/stale_steps.py | xrg/behave_manners | 93cb570e04af870f3401048d26dd7f0e8350759e | [
"BSD-2-Clause"
] | 3 | 2020-02-02T11:11:44.000Z | 2021-11-17T22:21:18.000Z | examples/mini_site/steps/stale_steps.py | xrg/behave_manners | 93cb570e04af870f3401048d26dd7f0e8350759e | [
"BSD-2-Clause"
] | null | null | null | examples/mini_site/steps/stale_steps.py | xrg/behave_manners | 93cb570e04af870f3401048d26dd7f0e8350759e | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
from __future__ import print_function
from behave import given, when, then, step
from behave_manners.pagelems import DOMScope
from behave_manners.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
@when(u'I click to have the dropdown visible')
def click_dropdown1... | 33.512195 | 87 | 0.749636 | 195 | 1,374 | 5.071795 | 0.353846 | 0.141557 | 0.206269 | 0.133468 | 0.289181 | 0.262892 | 0.19818 | 0.125379 | 0.125379 | 0.125379 | 0 | 0.003373 | 0.136827 | 1,374 | 40 | 88 | 34.35 | 0.830523 | 0.015284 | 0 | 0.071429 | 0 | 0 | 0.188148 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 1 | 0.142857 | false | 0 | 0.178571 | 0 | 0.321429 | 0.142857 | 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 |
a8c7974a6483483179cdfc40e57d4d46564982cf | 1,995 | py | Python | tests/test_utils.py | initOS/dob-lib | a07ea11fb40d7bdc1714b96da52fbc89ed37fb7b | [
"Apache-2.0"
] | null | null | null | tests/test_utils.py | initOS/dob-lib | a07ea11fb40d7bdc1714b96da52fbc89ed37fb7b | [
"Apache-2.0"
] | null | null | null | tests/test_utils.py | initOS/dob-lib | a07ea11fb40d7bdc1714b96da52fbc89ed37fb7b | [
"Apache-2.0"
] | null | null | null | # © 2021 Florian Kantelberg (initOS GmbH)
# License Apache-2.0 (http://www.apache.org/licenses/).
import argparse
from unittest.mock import patch
import pytest
from doblib import utils
def test_merge():
assert utils.merge([1, 2], [3, 4]) == [1, 2, 3, 4]
assert utils.merge({1, 2}, {3, 4}) == {1, 2, 3, 4}
... | 27.708333 | 76 | 0.595489 | 307 | 1,995 | 3.80456 | 0.218241 | 0.039384 | 0.043664 | 0.101884 | 0.464897 | 0.384418 | 0.339041 | 0.253425 | 0.234589 | 0.160959 | 0 | 0.066074 | 0.211028 | 1,995 | 71 | 77 | 28.098592 | 0.675349 | 0.046617 | 0 | 0.08 | 0 | 0 | 0.082149 | 0 | 0 | 0 | 0 | 0 | 0.54 | 1 | 0.12 | false | 0 | 0.08 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8caad8563cecc8db84796425abde40bb649818d | 385 | py | Python | Timbuchalka/Section-4/conditions.py | Advik-B/Learn-Python | 66ac57259764e8f2c3c6513a8de6c106800d8abe | [
"MIT"
] | 6 | 2021-07-26T14:21:25.000Z | 2021-07-26T14:32:01.000Z | Timbuchalka/Section-4/conditions.py | Advik-B/Learn-Python | 66ac57259764e8f2c3c6513a8de6c106800d8abe | [
"MIT"
] | 2 | 2021-12-10T10:25:19.000Z | 2021-12-10T10:27:15.000Z | Timbuchalka/Section-4/conditions.py | Advik-B/Learn-Python | 66ac57259764e8f2c3c6513a8de6c106800d8abe | [
"MIT"
] | null | null | null | age = int(input("How old are you ?"))
#if age >= 16 and age <= 65:
#if 16 <= age <= 65:
if age in range(16,66):
print ("Have a good day at work.")
elif age > 100 or age <= 0:
print ("Nice Try. This program is not dumb.")
endkey = input ("Press enter to exit")
else:
print (f"Enjoy your free time, ... | 20.263158 | 84 | 0.592208 | 69 | 385 | 3.304348 | 0.710145 | 0.04386 | 0.061404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069444 | 0.251948 | 385 | 18 | 85 | 21.388889 | 0.722222 | 0.119481 | 0 | 0 | 0 | 0 | 0.489614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a8cfa6b65da313be457d7b1e85c1b549c3d118ce | 806 | py | Python | tests/test_reducer.py | nclarey/pyg-base | a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862 | [
"MIT"
] | null | null | null | tests/test_reducer.py | nclarey/pyg-base | a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862 | [
"MIT"
] | null | null | null | tests/test_reducer.py | nclarey/pyg-base | a7b90ea2ad4d740d8e7f8c4a7c9d341d36373862 | [
"MIT"
] | 1 | 2022-01-03T21:56:14.000Z | 2022-01-03T21:56:14.000Z | from pyg_base import reducer, reducing, dictable
import pytest
from operator import add, mul
from functools import reduce
def test_reducer():
assert reducer(add, [1,2,3,4]) == 10
assert reducer(mul, [1,2,3,4]) == 24
assert reducer(add, [1]) == 1
assert reducer(add, []) is None
with pytest.... | 26 | 48 | 0.580645 | 133 | 806 | 3.43609 | 0.300752 | 0.030635 | 0.045952 | 0.052516 | 0.223195 | 0.223195 | 0.223195 | 0.091904 | 0.091904 | 0 | 0 | 0.091503 | 0.240695 | 806 | 30 | 49 | 26.866667 | 0.655229 | 0 | 0 | 0 | 0 | 0 | 0.021092 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.090909 | false | 0 | 0.227273 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a8d39e7bc43d7332ddc41fbd99b4d1baa9f1a728 | 3,398 | py | Python | src/lh/service_directives.py | Plazmaz/LiquidHoney | eb983a3223b01e19a360132f9661d4c68cd3ae8c | [
"MIT"
] | 20 | 2019-03-24T19:27:59.000Z | 2021-06-11T18:03:02.000Z | src/lh/service_directives.py | Plazmaz/LiquidHoney | eb983a3223b01e19a360132f9661d4c68cd3ae8c | [
"MIT"
] | null | null | null | src/lh/service_directives.py | Plazmaz/LiquidHoney | eb983a3223b01e19a360132f9661d4c68cd3ae8c | [
"MIT"
] | 1 | 2020-04-10T17:12:37.000Z | 2020-04-10T17:12:37.000Z | from abc import ABC
class ProbeConfig(object):
def __init__(self):
self.directives = {}
def add_directive(self, directive):
name = directive.keyword
if name not in self.directives:
self.directives[name] = []
self.directives[name].append(directive)
def get_dire... | 26.546875 | 107 | 0.629488 | 430 | 3,398 | 4.795349 | 0.306977 | 0.074685 | 0.048012 | 0.047527 | 0.360815 | 0.340446 | 0.329292 | 0.266246 | 0.240543 | 0.240543 | 0 | 0.006759 | 0.259859 | 3,398 | 127 | 108 | 26.755906 | 0.813121 | 0.272219 | 0 | 0.269841 | 0 | 0 | 0.044187 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 1 | 0.253968 | false | 0.015873 | 0.015873 | 0.063492 | 0.47619 | 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 |
a8d51fd115f735ca8b9bacde53faaf9aede7e370 | 4,699 | py | Python | gaia_project/communication_layer.py | yogurt-company/gaia_ai | 1885059e99a96f45e6cc082b87c189829c4eaed9 | [
"MIT"
] | null | null | null | gaia_project/communication_layer.py | yogurt-company/gaia_ai | 1885059e99a96f45e6cc082b87c189829c4eaed9 | [
"MIT"
] | null | null | null | gaia_project/communication_layer.py | yogurt-company/gaia_ai | 1885059e99a96f45e6cc082b87c189829c4eaed9 | [
"MIT"
] | null | null | null | from traits.api import (HasPrivateTraits, Instance, List, Dict)
from .player import Player
from .board import GameBoard
from .tech_board import TechBoard
from gaia_project.faction_board.player_panel import PlayerPanel
from .layout import Layout
from .constants import BASIC_4P_SETUP
import pygame
import sys
class C... | 27.319767 | 76 | 0.685678 | 594 | 4,699 | 5.232323 | 0.255892 | 0.048263 | 0.041184 | 0.054054 | 0.14157 | 0.124196 | 0.111326 | 0.086873 | 0.086873 | 0.086873 | 0 | 0.000822 | 0.223239 | 4,699 | 171 | 77 | 27.479532 | 0.850685 | 0.048308 | 0 | 0.169643 | 0 | 0 | 0.015674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.160714 | false | 0.071429 | 0.080357 | 0 | 0.330357 | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a8d55f37a7ad9934a5f3c141465620693ff5ff0b | 2,710 | py | Python | dialogue-engine/test/programytest/security/linking/test_aiml.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 104 | 2020-03-30T09:40:00.000Z | 2022-03-06T22:34:25.000Z | dialogue-engine/test/programytest/security/linking/test_aiml.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 25 | 2020-06-12T01:36:35.000Z | 2022-02-19T07:30:44.000Z | dialogue-engine/test/programytest/security/linking/test_aiml.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 10 | 2020-04-02T23:43:56.000Z | 2021-05-14T13:47:01.000Z | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | 44.42623 | 126 | 0.761255 | 341 | 2,710 | 5.950147 | 0.501466 | 0.043371 | 0.012814 | 0.024643 | 0.070971 | 0.043371 | 0.043371 | 0.043371 | 0 | 0 | 0 | 0.007121 | 0.170849 | 2,710 | 60 | 127 | 45.166667 | 0.895861 | 0.391882 | 0 | 0.0625 | 0 | 0 | 0.09939 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 1 | 0.125 | false | 0.0625 | 0.1875 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a8d7f2fc85888b5e64602a155d1dd889102580a5 | 3,479 | py | Python | density_estimation.py | agilevaluechain/100-page-ml | 9236ec87b0cf563e0998d723be19e58155003a9d | [
"MIT"
] | 3 | 2019-02-12T16:46:23.000Z | 2020-12-02T15:39:38.000Z | density_estimation.py | a272573094/theMLbook | 9236ec87b0cf563e0998d723be19e58155003a9d | [
"MIT"
] | null | null | null | density_estimation.py | a272573094/theMLbook | 9236ec87b0cf563e0998d723be19e58155003a9d | [
"MIT"
] | 2 | 2019-07-22T15:28:58.000Z | 2019-10-14T16:07:51.000Z | import numpy as np
import scipy as sp
import matplotlib
import matplotlib.pyplot as plt
import math
from sklearn.neighbors import KernelDensity
import scipy.integrate as integrate
from sklearn.kernel_ridge import KernelRidge
matplotlib.rcParams['mathtext.fontset'] = 'stix'
matplotlib.rcParams['font.family'] = 'STIXG... | 33.451923 | 144 | 0.635527 | 579 | 3,479 | 3.75475 | 0.288428 | 0.00644 | 0.033119 | 0.068997 | 0.376725 | 0.369825 | 0.342226 | 0.340386 | 0.336707 | 0.304508 | 0 | 0.057666 | 0.167577 | 3,479 | 103 | 145 | 33.776699 | 0.693025 | 0.037655 | 0 | 0.08 | 0 | 0 | 0.135548 | 0.077199 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.106667 | null | null | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7633bcef8f558a190b0edf5806df25a3b35e668d | 1,188 | py | Python | config/wsgi.py | poblouin/budgetme-rest-api | 74d9237bc7b0a118255a659029637c5ed1a8b7a1 | [
"MIT"
] | 2 | 2018-03-07T09:43:07.000Z | 2018-03-11T04:50:41.000Z | config/wsgi.py | poblouin/budgetme-rest-api | 74d9237bc7b0a118255a659029637c5ed1a8b7a1 | [
"MIT"
] | 13 | 2017-12-28T02:44:09.000Z | 2020-06-05T21:13:13.000Z | config/wsgi.py | poblouin/budgetme-rest-api | 74d9237bc7b0a118255a659029637c5ed1a8b7a1 | [
"MIT"
] | null | null | null | """
WSGI config for budgetme project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from raven.contrib.django.raven_co... | 38.322581 | 78 | 0.795455 | 168 | 1,188 | 5.529762 | 0.517857 | 0.043057 | 0.086114 | 0.083961 | 0.131324 | 0.094726 | 0 | 0 | 0 | 0 | 0 | 0.002879 | 0.122896 | 1,188 | 30 | 79 | 39.6 | 0.888676 | 0.734007 | 0 | 0 | 0 | 0 | 0.161074 | 0.161074 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7635bfe6eba52bcc67cdc83102f247a92f82a569 | 1,276 | py | Python | sa/profiles/NAG/SNR/profile.py | xUndero/noc | 9fb34627721149fcf7064860bd63887e38849131 | [
"BSD-3-Clause"
] | 1 | 2019-09-20T09:36:48.000Z | 2019-09-20T09:36:48.000Z | sa/profiles/NAG/SNR/profile.py | ewwwcha/noc | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | [
"BSD-3-Clause"
] | null | null | null | sa/profiles/NAG/SNR/profile.py | ewwwcha/noc | aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# Vendor: NAG
# OS: SNR
# ---------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ------------------------------------------------------... | 30.380952 | 88 | 0.487461 | 118 | 1,276 | 5.135593 | 0.686441 | 0.034653 | 0.046205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.222571 | 1,276 | 41 | 89 | 31.121951 | 0.594758 | 0.302508 | 0 | 0 | 0 | 0 | 0.257437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.037037 | 0.037037 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7636eeaae62c9c102a883b907b773aecc04889f1 | 754 | py | Python | src/common/views.py | danpercic86/e-notary | ba15a9a80e2091593fb088feacfaf9574c816d6e | [
"Apache-2.0"
] | 6 | 2020-12-25T20:46:51.000Z | 2022-01-27T20:52:13.000Z | src/common/views.py | danpercic86/e-notary | ba15a9a80e2091593fb088feacfaf9574c816d6e | [
"Apache-2.0"
] | 3 | 2021-01-26T12:20:14.000Z | 2022-01-27T20:45:28.000Z | src/common/views.py | danpercic86/e-notary | ba15a9a80e2091593fb088feacfaf9574c816d6e | [
"Apache-2.0"
] | null | null | null | from django.db.models import QuerySet
from drf_spectacular.utils import extend_schema
from rest_framework import status
from rest_framework.viewsets import ModelViewSet
from common.models import Example
from common.serializers import ExampleSerializer
from common.utils import create_swagger_info
@create_swagger_info... | 30.16 | 65 | 0.753316 | 80 | 754 | 6.9375 | 0.4875 | 0.054054 | 0.061261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004792 | 0.169761 | 754 | 24 | 66 | 31.416667 | 0.881789 | 0 | 0 | 0 | 0 | 0 | 0.082228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.47619 | 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 |
763e6130c882fc4e05156ff0a6f93880ac497dc1 | 2,652 | py | Python | applications/terms_of_service/views.py | awwong1/apollo | 5571b5f222265bec3eed45b21e862636ccdc9a97 | [
"MIT"
] | null | null | null | applications/terms_of_service/views.py | awwong1/apollo | 5571b5f222265bec3eed45b21e862636ccdc9a97 | [
"MIT"
] | null | null | null | applications/terms_of_service/views.py | awwong1/apollo | 5571b5f222265bec3eed45b21e862636ccdc9a97 | [
"MIT"
] | null | null | null | from apollo.viewmixins import LoginRequiredMixin, StaffRequiredMixin, ActivitySendMixin
from applications.terms_of_service.models import TermsOfService
from django.contrib.messages.views import SuccessMessageMixin
from django.core.urlresolvers import reverse_lazy
from django.views.generic import ListView, DetailView, C... | 42.095238 | 123 | 0.77187 | 267 | 2,652 | 7.430712 | 0.269663 | 0.031754 | 0.063508 | 0.047883 | 0.487903 | 0.480847 | 0.465222 | 0.380544 | 0.277218 | 0.277218 | 0 | 0 | 0.146682 | 2,652 | 63 | 124 | 42.095238 | 0.876712 | 0 | 0 | 0.458333 | 0 | 0 | 0.197889 | 0.093856 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0 | 0.104167 | 0.041667 | 0.875 | 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 |
7644bc4bec765da9c73ffce65a56e216576e72d0 | 812 | py | Python | spacy-textdescriptives/subsetters.py | HLasse/spacy-textdescriptives | c079c6617ef266b54f28c51e619d2429a5dafb83 | [
"Apache-2.0"
] | null | null | null | spacy-textdescriptives/subsetters.py | HLasse/spacy-textdescriptives | c079c6617ef266b54f28c51e619d2429a5dafb83 | [
"Apache-2.0"
] | null | null | null | spacy-textdescriptives/subsetters.py | HLasse/spacy-textdescriptives | c079c6617ef266b54f28c51e619d2429a5dafb83 | [
"Apache-2.0"
] | null | null | null | """Helpers to subset an extracted dataframe"""
readability_cols = [
"flesch_reading_ease",
"flesch_kincaid_grade",
"smog",
"gunning_fog",
"automated_readability_index",
"coleman_liau_index",
"lix",
"rix",
]
dependency_cols = [
"dependency_distance_mean",
"dependency_distance_st... | 21.945946 | 46 | 0.699507 | 88 | 812 | 5.852273 | 0.488636 | 0.064078 | 0.099029 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185961 | 812 | 36 | 47 | 22.555556 | 0.779123 | 0.049261 | 0 | 0 | 0 | 0 | 0.626632 | 0.345953 | 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 |
764a1991418da83a2826386345ee15787a0bf609 | 759 | py | Python | notification/admin.py | horacexd/clist | 9759dfea97b86514bec9825d2430abc36decacf0 | [
"Apache-2.0"
] | 1 | 2020-04-28T09:10:53.000Z | 2020-04-28T09:10:53.000Z | notification/admin.py | horacexd/clist | 9759dfea97b86514bec9825d2430abc36decacf0 | [
"Apache-2.0"
] | 25 | 2021-03-28T15:20:02.000Z | 2021-03-28T16:02:48.000Z | notification/admin.py | VadVergasov/clist | 4afcdfe88250d224043b28efa511749347cec71c | [
"Apache-2.0"
] | null | null | null | from pyclist.admin import BaseModelAdmin, admin_register
from notification.models import Notification, Task
@admin_register(Notification)
class NotificationAdmin(BaseModelAdmin):
list_display = ['coder', 'method', 'before', 'period', 'last_time', 'modified']
list_filter = ['method']
search_fields = ['code... | 37.95 | 105 | 0.741765 | 82 | 759 | 6.5 | 0.487805 | 0.073171 | 0.093809 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126482 | 759 | 19 | 106 | 39.947368 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0.275362 | 0.073781 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0.071429 | 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 |
76501c0e0a4d032fa02c49003cd7b75a3d3f4eaf | 879 | py | Python | main.py | Elvira521feng/InfoNews | 5db22738446b1026db6479b91dc42c3aeba17060 | [
"MIT"
] | null | null | null | main.py | Elvira521feng/InfoNews | 5db22738446b1026db6479b91dc42c3aeba17060 | [
"MIT"
] | null | null | null | main.py | Elvira521feng/InfoNews | 5db22738446b1026db6479b91dc42c3aeba17060 | [
"MIT"
] | null | null | null | from flask import current_app
from flask_script import Manager
from flask_migrate import MigrateCommand
from info import create_app
# 创建应用
app = create_app("dev")
# 创建管理器
mgr = Manager(app)
# 添加迁移命令
mgr.add_command("mc", MigrateCommand)
# 生成超级管理员命令
@mgr.option("-u", dest="username")
@mgr.option("-p", dest="password"... | 21.439024 | 41 | 0.664391 | 114 | 879 | 4.964912 | 0.508772 | 0.047703 | 0.04947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220705 | 879 | 41 | 42 | 21.439024 | 0.826277 | 0.030717 | 0 | 0 | 0 | 0 | 0.061321 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0.133333 | 0.2 | 0 | 0.266667 | 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 |
7653939722f793ed976839ee4ae8d6af71343c7a | 810 | py | Python | fppv/cli.py | kdheepak/fppv | 5adfb5a6bc62ffcd56faa888ddfe173ae185656c | [
"BSD-3-Clause"
] | null | null | null | fppv/cli.py | kdheepak/fppv | 5adfb5a6bc62ffcd56faa888ddfe173ae185656c | [
"BSD-3-Clause"
] | null | null | null | fppv/cli.py | kdheepak/fppv | 5adfb5a6bc62ffcd56faa888ddfe173ae185656c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
"""cli module."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import click
import traceback
import importlib
from . import version
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
@click.command(context_settings=CONTE... | 23.142857 | 60 | 0.706173 | 93 | 810 | 5.752688 | 0.473118 | 0.056075 | 0.08972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145679 | 810 | 34 | 61 | 23.823529 | 0.773121 | 0.039506 | 0 | 0 | 0 | 0 | 0.084416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.347826 | 0 | 0.391304 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
765a451b98ec23f375bec8b799471dd2d577921c | 4,612 | py | Python | microdf/inequality.py | Peter-Metz/microdf | 6c5c6ff5cc87181d559553bdcc36dc95aa701cd4 | [
"MIT"
] | null | null | null | microdf/inequality.py | Peter-Metz/microdf | 6c5c6ff5cc87181d559553bdcc36dc95aa701cd4 | [
"MIT"
] | null | null | null | microdf/inequality.py | Peter-Metz/microdf | 6c5c6ff5cc87181d559553bdcc36dc95aa701cd4 | [
"MIT"
] | null | null | null | import numpy as np
import microdf as mdf
def gini(df, col, w=None, negatives=None):
"""Calculates Gini index.
:param df: DataFrame.
:param col: Name of column in df representing value.
:param w: Column representing weight in df.
:param negatives: An optional string indicating how to treat negati... | 31.589041 | 79 | 0.643322 | 755 | 4,612 | 3.823841 | 0.156291 | 0.03637 | 0.051957 | 0.067544 | 0.660201 | 0.613093 | 0.59231 | 0.575338 | 0.519917 | 0.48043 | 0 | 0.025419 | 0.24935 | 4,612 | 145 | 80 | 31.806897 | 0.808492 | 0.552689 | 0 | 0 | 0 | 0 | 0.010686 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.047619 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
765ea91849f86020b6b972615c1e086ac4542de7 | 3,209 | py | Python | interface/seed.py | matthewruttley/Bucketerer | 828ee949b1f53b8432cfe7cf7cae0f6eec7d677f | [
"MIT"
] | null | null | null | interface/seed.py | matthewruttley/Bucketerer | 828ee949b1f53b8432cfe7cf7cae0f6eec7d677f | [
"MIT"
] | null | null | null | interface/seed.py | matthewruttley/Bucketerer | 828ee949b1f53b8432cfe7cf7cae0f6eec7d677f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#Creates an ad bucket with a seed term/domain
from pymongo import MongoClient
from similarity import find_by_html, find_by_similarsites, create_connection, tokenize_clean
from tabulate import tabulate
verbose = False
def get_rank(c, domain):
"""Gets the alexa rank for a domain. Returns False i... | 28.149123 | 97 | 0.722655 | 494 | 3,209 | 4.489879 | 0.220648 | 0.04734 | 0.039675 | 0.016231 | 0.330478 | 0.298016 | 0.281785 | 0.281785 | 0.258792 | 0.16817 | 0 | 0.0085 | 0.156747 | 3,209 | 113 | 98 | 28.39823 | 0.81116 | 0.086008 | 0 | 0.276923 | 0 | 0 | 0.083927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046154 | null | null | 0.092308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7671557048679bb49752d923c9406604fe45cfb7 | 4,295 | py | Python | ee/cli/plugins/sync.py | quimica/easyengine | 07056759922a6e05949ca4b56ee94df6b2e580de | [
"MIT"
] | null | null | null | ee/cli/plugins/sync.py | quimica/easyengine | 07056759922a6e05949ca4b56ee94df6b2e580de | [
"MIT"
] | null | null | null | ee/cli/plugins/sync.py | quimica/easyengine | 07056759922a6e05949ca4b56ee94df6b2e580de | [
"MIT"
] | null | null | null | from cement.core.controller import CementBaseController, expose
from cement.core import handler, hook
from ee.core.fileutils import EEFileUtils
from ee.cli.plugins.sitedb import *
from ee.core.mysql import *
from ee.core.logging import Log
def ee_sync_hook(app):
# do something with the ``app`` object here.
pa... | 44.739583 | 94 | 0.469849 | 419 | 4,295 | 4.677804 | 0.324582 | 0.028571 | 0.036735 | 0.061224 | 0.242857 | 0.206122 | 0.093878 | 0.042857 | 0 | 0 | 0 | 0.007761 | 0.430035 | 4,295 | 95 | 95 | 45.210526 | 0.792892 | 0.101979 | 0 | 0.197183 | 0 | 0 | 0.100314 | 0.012048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056338 | false | 0.084507 | 0.084507 | 0 | 0.169014 | 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 |
767403c68c6963f4ac7af7065b349de0b68aecd1 | 4,307 | py | Python | reviewboard/scmtools/sshutils.py | smorley/reviewboard | 39dd1166fdec19d4fbced965b42a3a23a3b6b956 | [
"MIT"
] | 1 | 2019-01-16T11:59:40.000Z | 2019-01-16T11:59:40.000Z | reviewboard/scmtools/sshutils.py | smorley/reviewboard | 39dd1166fdec19d4fbced965b42a3a23a3b6b956 | [
"MIT"
] | null | null | null | reviewboard/scmtools/sshutils.py | smorley/reviewboard | 39dd1166fdec19d4fbced965b42a3a23a3b6b956 | [
"MIT"
] | null | null | null | import os
import urlparse
from django.utils.translation import ugettext_lazy as _
import paramiko
from reviewboard.scmtools.errors import AuthenticationError, \
BadHostKeyError, SCMError, \
UnknownHostKeyError
# A list of known SSH URL ... | 30.118881 | 79 | 0.602972 | 520 | 4,307 | 4.867308 | 0.301923 | 0.04109 | 0.03793 | 0.037535 | 0.161596 | 0.153299 | 0.13868 | 0.125247 | 0.125247 | 0.0968 | 0 | 0.00624 | 0.293011 | 4,307 | 142 | 80 | 30.330986 | 0.824959 | 0.01602 | 0 | 0.318182 | 0 | 0 | 0.125107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022727 | 0.056818 | null | null | 0.011364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
76803f5a83658d39e862a3ea11083cca906b0016 | 3,369 | py | Python | pymain.py | Farhad-Mrkm/NCE_ICC-2022 | 998db82536c2077dbdb157aa21af8c6b84957761 | [
"MIT"
] | 1 | 2022-01-18T02:08:30.000Z | 2022-01-18T02:08:30.000Z | pymain.py | Farhad-Mrkm/NCE_ICC-2022 | 998db82536c2077dbdb157aa21af8c6b84957761 | [
"MIT"
] | null | null | null | pymain.py | Farhad-Mrkm/NCE_ICC-2022 | 998db82536c2077dbdb157aa21af8c6b84957761 | [
"MIT"
] | null | null | null | # author__Farhad_Mirkarimi-*- coding: utf-8 -*-
import os
import h5py
import glob, os
import numpy as np
import matplotlib.pyplot as plt
from numpy import mean
from numpy import std
import torch
import torch.nn as nn
from tqdm.auto import tqdm, trange
from numpy.random import default_rng
import torch.nn.functional as F... | 63.566038 | 313 | 0.688038 | 471 | 3,369 | 4.717622 | 0.284501 | 0.081008 | 0.153015 | 0.054005 | 0.242124 | 0.180018 | 0.121062 | 0.059406 | 0 | 0 | 0 | 0.01976 | 0.158801 | 3,369 | 52 | 314 | 64.788462 | 0.764291 | 0.08222 | 0 | 0 | 0 | 0 | 0.201468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
76806ed1e58231dbb9592dc36161e9c8ee832dc4 | 3,245 | py | Python | libpySat/pySatTransformPolarMotion.py | grzeskokbol/pySatTools | 7518ce670866bfebd4eb3d2f390e885d83c2e9c9 | [
"MIT"
] | null | null | null | libpySat/pySatTransformPolarMotion.py | grzeskokbol/pySatTools | 7518ce670866bfebd4eb3d2f390e885d83c2e9c9 | [
"MIT"
] | null | null | null | libpySat/pySatTransformPolarMotion.py | grzeskokbol/pySatTools | 7518ce670866bfebd4eb3d2f390e885d83c2e9c9 | [
"MIT"
] | null | null | null |
import datetime
import numpy as np
import libpySat as pySat
from astropy import _erfa as erfa
from scipy.misc import derivative
from scipy import interpolate
class TransformPolarMotion:
def __init__(self,fxp,fyp):
self.fxp=fxp
self.fyp=fyp
self.epochSave = datetime.datetime.now()
... | 32.777778 | 93 | 0.600616 | 407 | 3,245 | 4.732187 | 0.272727 | 0.009346 | 0.010903 | 0.012461 | 0.454829 | 0.411215 | 0.339045 | 0.299585 | 0.294912 | 0.233645 | 0 | 0.052293 | 0.281048 | 3,245 | 98 | 94 | 33.112245 | 0.773253 | 0.182435 | 0 | 0.296296 | 0 | 0 | 0.004898 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.351852 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
7687b35a200e00e3a680b96e15c14d349cc8f6ec | 586 | py | Python | tests/test_sink.py | LauWien/smooth | 3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 5 | 2019-10-15T15:56:35.000Z | 2021-02-04T10:11:31.000Z | tests/test_sink.py | LauWien/smooth | 3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 121 | 2020-01-06T14:32:30.000Z | 2021-09-23T11:26:11.000Z | tests/test_sink.py | LauWien/smooth | 3d2ee96e3c2b2f9d5d805da1a920748f2dbbd538 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 6 | 2019-10-21T08:36:05.000Z | 2021-03-26T10:37:17.000Z | from smooth.components.component_sink import Sink
import oemof.solph as solph
def test_init():
s = Sink({})
assert hasattr(s, "input_max")
assert hasattr(s, "bus_in")
assert s.commodity_costs == 0
s = Sink({"name": "foo"})
assert s.name == "foo"
def test_add_to_oemof_model():
s = Sink({... | 26.636364 | 82 | 0.662116 | 84 | 586 | 4.440476 | 0.416667 | 0.107239 | 0.075067 | 0.080429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006303 | 0.187713 | 586 | 21 | 83 | 27.904762 | 0.777311 | 0 | 0 | 0 | 0 | 0 | 0.068259 | 0 | 0 | 0 | 0 | 0 | 0.4375 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
768d0d745dc0784b2a3c714af9a252bf04f94f52 | 358 | py | Python | fundamentos/exer027.py | edelvandro/Python | 152685590af873bf63fcc5a29cf3528e4cc31a3e | [
"MIT"
] | 1 | 2020-04-14T14:43:59.000Z | 2020-04-14T14:43:59.000Z | fundamentos/exer027.py | edelvandro/Python | 152685590af873bf63fcc5a29cf3528e4cc31a3e | [
"MIT"
] | null | null | null | fundamentos/exer027.py | edelvandro/Python | 152685590af873bf63fcc5a29cf3528e4cc31a3e | [
"MIT"
] | null | null | null | '''
Faça um programa que leia o nome completo de uma pessoa,
mostrando em seguida o primeiro e o último nome separadamente.
'''
entrada = str(input('Digite um nome completo: ')).strip()
print('Olá {}'.format(entrada))
nome = entrada.split()
print('Seu primeiro nome é: {}'.format(nome[0]))
print('Seu último nom... | 32.545455 | 66 | 0.678771 | 54 | 358 | 4.5 | 0.592593 | 0.098765 | 0.090535 | 0.123457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.156425 | 358 | 10 | 67 | 35.8 | 0.798013 | 0.332402 | 0 | 0 | 0 | 0 | 0.336323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
768f6ea4edae64dc3c5e980c6abcd8369f91dd60 | 1,057 | py | Python | DummyIntermediateDevices/connectiontable_dummy_intermediate.py | fretchen/synqs_devices | ec4bb24639e9d0d4cb707e1c2a6296a47dfe9f02 | [
"MIT"
] | null | null | null | DummyIntermediateDevices/connectiontable_dummy_intermediate.py | fretchen/synqs_devices | ec4bb24639e9d0d4cb707e1c2a6296a47dfe9f02 | [
"MIT"
] | 4 | 2020-04-06T14:20:58.000Z | 2020-04-17T10:47:11.000Z | DummyIntermediateDevices/connectiontable_dummy_intermediate.py | fretchen/synqs_devices | ec4bb24639e9d0d4cb707e1c2a6296a47dfe9f02 | [
"MIT"
] | 2 | 2020-04-10T08:56:28.000Z | 2020-09-06T20:08:29.000Z | """The sample file to be run in runmanager.
This is the minimal sample that you can load from runmanager to see if your
code is working properly.
"""
from labscript import *
# from user_devices.dummy_device.labscript_devices import DummyDevice
from labscript_devices.DummyPseudoclock.labscript_devices import DummyPse... | 34.096774 | 102 | 0.811731 | 125 | 1,057 | 6.568 | 0.4 | 0.073082 | 0.103532 | 0.105968 | 0.164434 | 0.164434 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0.099338 | 1,057 | 30 | 103 | 35.233333 | 0.853992 | 0.358562 | 0 | 0 | 0 | 0 | 0.124066 | 0.037369 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.176471 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7691b87c25055ca65fe6a4859ce2615cd80362d1 | 815 | py | Python | cloudmesh/sign/api.py | cloudmesh/cloudmesh.sign | 84ddaf3b9f29e62f87db35d5a06357a51906db12 | [
"Apache-2.0"
] | null | null | null | cloudmesh/sign/api.py | cloudmesh/cloudmesh.sign | 84ddaf3b9f29e62f87db35d5a06357a51906db12 | [
"Apache-2.0"
] | 10 | 2017-04-30T00:43:05.000Z | 2017-04-30T13:19:27.000Z | cloudmesh/sign/api.py | cloudmesh/extstreet | 84ddaf3b9f29e62f87db35d5a06357a51906db12 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
#import cv2
class Sign(object):
def __init__(self):
# not your location will not work easily / is not writeable
self.classifier = '/street-signal/classifier/stopsign_classifier.xml'
def hello(self, msg):
print ("Hello Sign", msg)
def ... | 29.107143 | 84 | 0.623313 | 107 | 815 | 4.626168 | 0.579439 | 0.056566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.263804 | 815 | 27 | 85 | 30.185185 | 0.798333 | 0.120245 | 0 | 0.2 | 0 | 0 | 0.166667 | 0.138418 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76996d0c6fee1f7994689e5e99ec874d21d739eb | 1,259 | py | Python | src/main.py | mdsanima-dev/mdsanima-rt-go | 6032efb8f9fd3dfeb1640fba47b0b8b7759d4572 | [
"Apache-2.0"
] | 2 | 2021-12-09T10:22:27.000Z | 2022-02-16T19:23:46.000Z | src/main.py | mdsanima-dev/mdsanima-rt-go | 6032efb8f9fd3dfeb1640fba47b0b8b7759d4572 | [
"Apache-2.0"
] | 60 | 2021-08-13T17:24:35.000Z | 2021-08-25T16:25:59.000Z | src/main.py | mdsanima-dev/mdsanima-rt-go | 6032efb8f9fd3dfeb1640fba47b0b8b7759d4572 | [
"Apache-2.0"
] | 1 | 2021-08-20T00:48:28.000Z | 2021-08-20T00:48:28.000Z | """
Main application MDSANIMA RT GO
"""
import kivy
from __init__ import __version__
kivy.require('2.0.0')
from kivy.uix.screenmanager import ScreenManager
from kivymd.app import MDApp
from plyer import notification
from __init__ import resource_path
from config.image import get_images
from config.setting import ... | 24.686275 | 62 | 0.68467 | 172 | 1,259 | 4.680233 | 0.395349 | 0.074534 | 0.059627 | 0.067081 | 0.078261 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018424 | 0.223987 | 1,259 | 50 | 63 | 25.18 | 0.805527 | 0.024623 | 0 | 0 | 0 | 0 | 0.102459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.333333 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
769a048a0a36fac60d8155d390abc6c865fbbb32 | 1,188 | py | Python | puzzler/puzzles/polysticks123.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | null | null | null | puzzler/puzzles/polysticks123.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | null | null | null | puzzler/puzzles/polysticks123.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | 1 | 2022-01-02T16:54:14.000Z | 2022-01-02T16:54:14.000Z | #!/usr/bin/env python
# $Id$
# Author: David Goodger <goodger@python.org>
# Copyright: (C) 1998-2015 by David J. Goodger
# License: GPL 2 (see __init__.py)
"""
Concrete polystick (orders 1 through 3) puzzles.
"""
from puzzler import coordsys
from puzzler.puzzles.polysticks import Polysticks123
class Polysticks123_... | 21.6 | 73 | 0.590067 | 170 | 1,188 | 4.035294 | 0.376471 | 0.023324 | 0.039359 | 0.065598 | 0.189504 | 0.166181 | 0.166181 | 0.145773 | 0.145773 | 0.145773 | 0 | 0.106522 | 0.225589 | 1,188 | 54 | 74 | 22 | 0.63913 | 0.186869 | 0 | 0.235294 | 0 | 0 | 0.03201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0 | 0.647059 | 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 |
76a3aadc66cb9b6a3ffc18d0b5d0424cb3f1bf19 | 1,435 | py | Python | tests/package_path_test.py | radiasoft/sirepo | db3d1737bab7a84d39d456c0e8913c88deff3c31 | [
"Apache-2.0"
] | 49 | 2015-07-29T14:11:29.000Z | 2021-12-10T15:24:26.000Z | tests/package_path_test.py | radiasoft/sirepo | db3d1737bab7a84d39d456c0e8913c88deff3c31 | [
"Apache-2.0"
] | 3,732 | 2015-08-03T22:07:26.000Z | 2022-03-31T22:48:33.000Z | tests/package_path_test.py | radiasoft/sirepo | db3d1737bab7a84d39d456c0e8913c88deff3c31 | [
"Apache-2.0"
] | 28 | 2015-11-20T16:23:46.000Z | 2021-09-20T07:22:48.000Z | # -*- coding: utf-8 -*-
u"""Using a sim type that lives in a package outside of sirepo.
:copyright: Copyright (c) 2021 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
"""
from __future__ import absolute_import, division, print_function
import contextlib
import pytest
de... | 28.137255 | 81 | 0.681533 | 199 | 1,435 | 4.698492 | 0.487437 | 0.064171 | 0.072727 | 0.08984 | 0.15508 | 0.126203 | 0 | 0 | 0 | 0 | 0 | 0.008913 | 0.218118 | 1,435 | 50 | 82 | 28.7 | 0.824421 | 0.145645 | 0 | 0.055556 | 0 | 0 | 0.128794 | 0.09598 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.333333 | 0 | 0.444444 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
76a644c9158839039d51c335089af8172474435d | 35,948 | py | Python | fanficdownloader/story.py | rodrigonz/rodrigodeoliveiracosta-ffdown | e28e20232e9cd6cef84aa9e830ed8de7dbb208ae | [
"Apache-2.0"
] | null | null | null | fanficdownloader/story.py | rodrigonz/rodrigodeoliveiracosta-ffdown | e28e20232e9cd6cef84aa9e830ed8de7dbb208ae | [
"Apache-2.0"
] | null | null | null | fanficdownloader/story.py | rodrigonz/rodrigodeoliveiracosta-ffdown | e28e20232e9cd6cef84aa9e830ed8de7dbb208ae | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2011 Fanficdownloader team
#
# 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 require... | 41.510393 | 169 | 0.537193 | 3,646 | 35,948 | 5.223533 | 0.191443 | 0.02116 | 0.005671 | 0.004043 | 0.245104 | 0.193594 | 0.160515 | 0.130008 | 0.113416 | 0.0911 | 0 | 0.001505 | 0.352926 | 35,948 | 865 | 170 | 41.558382 | 0.817248 | 0.173195 | 0 | 0.26248 | 0 | 0 | 0.088728 | 0.016103 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022544 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76a66cd1b58b111bec10cfd3ff837789c2aaac34 | 336 | py | Python | 2021/07/2021-07-2 The Treachery of Whales.py | dpustovarov/Advent-of-Code | 3a08944c26ca6428ecca98aed96777d70038b6ef | [
"MIT"
] | null | null | null | 2021/07/2021-07-2 The Treachery of Whales.py | dpustovarov/Advent-of-Code | 3a08944c26ca6428ecca98aed96777d70038b6ef | [
"MIT"
] | null | null | null | 2021/07/2021-07-2 The Treachery of Whales.py | dpustovarov/Advent-of-Code | 3a08944c26ca6428ecca98aed96777d70038b6ef | [
"MIT"
] | null | null | null | import sys, statistics
def solution(N):
m = int(round(statistics.mean(N))) # average for (n - i)**2
d = int(statistics.median(N)) # average for abs(n - i)
return min(sum((n - i)**2 + abs(n - i) for n in N) for i in range(m, d, (d > m) - (d < m))) // 2
print(solution([int(n) for n in sys.stdin.read(... | 37.333333 | 100 | 0.5625 | 62 | 336 | 3.048387 | 0.419355 | 0.042328 | 0.116402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.223214 | 336 | 8 | 101 | 42 | 0.712644 | 0.133929 | 0 | 0 | 0 | 0 | 0.003472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76a8df49a9b9a1d0460ba09a5a23cc25330a7581 | 213 | py | Python | app/__init__.py | PushyZqin/flask-restful-plugin | 7a142de96500910f5f7648d5edf8986afaa72b70 | [
"MIT"
] | 2 | 2018-11-28T13:49:18.000Z | 2018-11-29T11:13:40.000Z | app/__init__.py | PushyZqin/flask-restful-plugin | 7a142de96500910f5f7648d5edf8986afaa72b70 | [
"MIT"
] | null | null | null | app/__init__.py | PushyZqin/flask-restful-plugin | 7a142de96500910f5f7648d5edf8986afaa72b70 | [
"MIT"
] | null | null | null | #encoding:utf-8
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
import config
app = Flask(__name__)
app.config.from_object(config)
db = SQLAlchemy(app)
from app import req_demo, res_demo, models | 19.363636 | 42 | 0.807512 | 33 | 213 | 4.969697 | 0.484848 | 0.109756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005348 | 0.122066 | 213 | 11 | 42 | 19.363636 | 0.871658 | 0.065728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
76af968ed5c491f4545b0402bd5a825b42b19aab | 1,273 | py | Python | tierpsy/debugging/check_roi_flow.py | mgh17/tierpsy-tracker | a18c06aa80a5fb22fd51563d82c639b520742777 | [
"MIT"
] | 9 | 2021-01-11T10:49:21.000Z | 2022-02-28T15:48:00.000Z | tierpsy/debugging/check_roi_flow.py | mgh17/tierpsy-tracker | a18c06aa80a5fb22fd51563d82c639b520742777 | [
"MIT"
] | 18 | 2020-05-08T15:43:08.000Z | 2022-03-23T10:19:24.000Z | tierpsy/debugging/check_roi_flow.py | mgh17/tierpsy-tracker | a18c06aa80a5fb22fd51563d82c639b520742777 | [
"MIT"
] | 10 | 2019-12-18T12:10:12.000Z | 2022-01-05T09:12:47.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 17 17:59:36 2018
@author: avelinojaver
"""
import numpy as np
import cv2
from functools import partial
import json
from pathlib import Path
import pandas as pd
from tierpsy.analysis.ske_create.helperIterROI import generateMoviesROI
mask_file = ... | 28.931818 | 112 | 0.660644 | 161 | 1,273 | 4.993789 | 0.596273 | 0.078358 | 0.062189 | 0.08209 | 0.124378 | 0.124378 | 0.124378 | 0 | 0 | 0 | 0 | 0.046681 | 0.242734 | 1,273 | 44 | 113 | 28.931818 | 0.787344 | 0.139042 | 0 | 0 | 0 | 0 | 0.191529 | 0.134438 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
76b14bd5cac8768daf91adb9dc2873199856ee7c | 2,572 | py | Python | PP4E/Examples/PP4E/Integrate/Embed/prioredition-2x/Inventory/WithDbase/inventory.py | BeacherHou/Python-_Markdown- | 015d79a02d32f49395b80ca10919b3a09b72c4df | [
"MIT"
] | null | null | null | PP4E/Examples/PP4E/Integrate/Embed/prioredition-2x/Inventory/WithDbase/inventory.py | BeacherHou/Python-_Markdown- | 015d79a02d32f49395b80ca10919b3a09b72c4df | [
"MIT"
] | null | null | null | PP4E/Examples/PP4E/Integrate/Embed/prioredition-2x/Inventory/WithDbase/inventory.py | BeacherHou/Python-_Markdown- | 015d79a02d32f49395b80ca10919b3a09b72c4df | [
"MIT"
] | null | null | null | ############################################################################
# implement inventory/buyer databases as persistent shelve/pickle files;
# since the validations are already coded to use a function call interface,
# we just map those calls back to the shelve or pickled object here--no
# need to change ... | 35.232877 | 77 | 0.64619 | 345 | 2,572 | 4.808696 | 0.46087 | 0.012658 | 0.016878 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216952 | 2,572 | 72 | 78 | 35.722222 | 0.823734 | 0.529549 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068966 | null | null | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
76b63b1bac33101e8507f58ebdfd16790912e32c | 20,894 | py | Python | cdci_data_analysis/analysis/parameters.py | andreatramacere/cdci_data_analysis | 8ae34a7252d6baf011a3b99fbe4f6e624b63d7df | [
"MIT"
] | null | null | null | cdci_data_analysis/analysis/parameters.py | andreatramacere/cdci_data_analysis | 8ae34a7252d6baf011a3b99fbe4f6e624b63d7df | [
"MIT"
] | null | null | null | cdci_data_analysis/analysis/parameters.py | andreatramacere/cdci_data_analysis | 8ae34a7252d6baf011a3b99fbe4f6e624b63d7df | [
"MIT"
] | null | null | null | """
Overview
--------
general info about this module
Classes and Inheritance Structure
----------------------------------------------
.. inheritance-diagram::
Summary
---------
.. autosummary::
list of the module you want
Module API
----------
"""
from __future__ import absolute_import, division, print... | 27.348168 | 128 | 0.542117 | 2,385 | 20,894 | 4.531656 | 0.092243 | 0.03886 | 0.029145 | 0.020448 | 0.560881 | 0.510455 | 0.473168 | 0.452813 | 0.432272 | 0.425981 | 0 | 0.001706 | 0.354791 | 20,894 | 763 | 129 | 27.38401 | 0.800015 | 0.14296 | 0 | 0.535308 | 0 | 0 | 0.042756 | 0 | 0 | 0 | 0 | 0 | 0.006834 | 1 | 0.138952 | false | 0.061503 | 0.022779 | 0.031891 | 0.23918 | 0.004556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
76c632d8dcd5648691e6cdef8c48b528a22c1ea2 | 447 | py | Python | setup.py | sdimitro/savedump-workflows | 2f5b34f006d84c09918b2ade98c20902d411ed3f | [
"Apache-2.0"
] | 1 | 2021-03-27T14:10:55.000Z | 2021-03-27T14:10:55.000Z | setup.py | sdimitro/savedump-workflows | 2f5b34f006d84c09918b2ade98c20902d411ed3f | [
"Apache-2.0"
] | 9 | 2020-07-17T16:21:15.000Z | 2020-09-01T15:50:10.000Z | setup.py | sdimitro/savedump-workflows | 2f5b34f006d84c09918b2ade98c20902d411ed3f | [
"Apache-2.0"
] | 2 | 2020-08-03T17:53:56.000Z | 2020-08-12T21:49:12.000Z | #!/usr/bin/env python3
from setuptools import setup
setup(
name='savedump',
version="0.1.0",
packages=[
"savedump",
],
entry_points={
'console_scripts': ['savedump=savedump.savedump:main'],
},
author='Delphix Platform Team',
author_email='serapheim@delphix.com',
... | 19.434783 | 63 | 0.635347 | 51 | 447 | 5.509804 | 0.784314 | 0.113879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016997 | 0.210291 | 447 | 22 | 64 | 20.318182 | 0.779037 | 0.04698 | 0 | 0 | 0 | 0 | 0.447059 | 0.122353 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
76c6d2932401f4203f7334417d8df963804344f7 | 899 | py | Python | ex081.py | LucasBalbinoSS/Exercicios-Python-Mundo3 | 11799e9529ce4d9f20285b53206083310a076203 | [
"MIT"
] | null | null | null | ex081.py | LucasBalbinoSS/Exercicios-Python-Mundo3 | 11799e9529ce4d9f20285b53206083310a076203 | [
"MIT"
] | null | null | null | ex081.py | LucasBalbinoSS/Exercicios-Python-Mundo3 | 11799e9529ce4d9f20285b53206083310a076203 | [
"MIT"
] | null | null | null | listaNum = list()
contadorde5 = 0
while True:
num = int(input('Digite um número: '))
if num == 5:
contadorde5 += 1
listaNum.append(num)
continuar = str(input('Quer continuar? [ S / N ] ')).strip().upper()
print()
if continuar[0] == 'N':
break
while continuar[0] != 'S' and... | 24.972222 | 81 | 0.604004 | 122 | 899 | 4.45082 | 0.483607 | 0.044199 | 0.062615 | 0.077348 | 0.173112 | 0.173112 | 0.173112 | 0.173112 | 0.173112 | 0.173112 | 0 | 0.028571 | 0.221357 | 899 | 35 | 82 | 25.685714 | 0.747143 | 0 | 0 | 0.333333 | 0 | 0 | 0.394883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.407407 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4f11fa446f5c128d63dab17202cbfa4c6043f4c7 | 3,135 | py | Python | trainings/workshop1/step12/network_outage.py | jochenparm/moler | 0253d677e0ef150206758c7991197ba5687d0965 | [
"BSD-3-Clause"
] | 57 | 2018-02-20T08:16:47.000Z | 2022-03-28T10:36:57.000Z | trainings/workshop1/step12/network_outage.py | jochenparm/moler | 0253d677e0ef150206758c7991197ba5687d0965 | [
"BSD-3-Clause"
] | 377 | 2018-07-19T11:56:27.000Z | 2021-07-09T13:08:12.000Z | trainings/workshop1/step12/network_outage.py | jochenparm/moler | 0253d677e0ef150206758c7991197ba5687d0965 | [
"BSD-3-Clause"
] | 24 | 2018-04-14T20:49:40.000Z | 2022-03-29T10:44:26.000Z | import os.path
import time
from moler.config import load_config
from moler.device.device import DeviceFactory
from moler.util.moler_test import MolerTest
def outage_callback(device_name, ping_times):
MolerTest.info("Network outage on {}".format(device_name))
ping_times["lost_connection_time"] = time.time()
... | 38.231707 | 118 | 0.686124 | 423 | 3,135 | 4.756501 | 0.250591 | 0.058151 | 0.031312 | 0.045229 | 0.358847 | 0.288767 | 0.248012 | 0.225149 | 0.225149 | 0.225149 | 0 | 0.012229 | 0.191388 | 3,135 | 81 | 119 | 38.703704 | 0.78146 | 0.046252 | 0 | 0.041667 | 0 | 0 | 0.194683 | 0.00821 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.104167 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4f155a9ab823ba33ff35f3612ec2e684b44b8924 | 2,782 | py | Python | base/abstract/contextual_data.py | kefir/snakee | a17734d4b2d7dfd3e6c7b195baa128fbc84d197b | [
"MIT"
] | null | null | null | base/abstract/contextual_data.py | kefir/snakee | a17734d4b2d7dfd3e6c7b195baa128fbc84d197b | [
"MIT"
] | null | null | null | base/abstract/contextual_data.py | kefir/snakee | a17734d4b2d7dfd3e6c7b195baa128fbc84d197b | [
"MIT"
] | 2 | 2021-04-10T19:22:15.000Z | 2022-03-08T19:37:56.000Z | from abc import ABC
from typing import Union, Optional, Iterable, Any
try: # Assume we're a sub-module in a package.
from utils import arguments as arg
from base.interfaces.context_interface import ContextInterface
from base.interfaces.contextual_interface import ContextualInterface
from base.interfac... | 37.093333 | 105 | 0.700935 | 332 | 2,782 | 5.659639 | 0.271084 | 0.033528 | 0.045237 | 0.027142 | 0.349122 | 0.267163 | 0.090474 | 0.055349 | 0.055349 | 0.055349 | 0 | 0 | 0.216751 | 2,782 | 74 | 106 | 37.594595 | 0.862322 | 0.043853 | 0 | 0.129032 | 0 | 0 | 0.001882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.274194 | 0.064516 | 0.532258 | 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 |
4f1563734b81e35e89fdc77fb21035b9e52c5dfc | 1,880 | py | Python | snypy/snippets/rest/filters.py | sterapps/snypy-backend | e4733a1b7bf041c79c66ce74e64cc428d3c6ba5d | [
"MIT"
] | 2 | 2018-06-21T07:51:30.000Z | 2019-06-01T14:17:07.000Z | snypy/snippets/rest/filters.py | nezhar/snypy-backend | 0673b7dc7dc8b730639e0f634dcaa8b8178151e0 | [
"MIT"
] | 33 | 2018-05-10T10:37:46.000Z | 2021-10-30T11:07:22.000Z | snypy/snippets/rest/filters.py | sterapps/snypy-backend | e4733a1b7bf041c79c66ce74e64cc428d3c6ba5d | [
"MIT"
] | 3 | 2019-06-12T08:53:37.000Z | 2020-10-28T17:21:02.000Z | import django_filters
from snippets.models import File, Snippet, Label, SnippetLabel
class FileFilter(django_filters.FilterSet):
class Meta:
model = File
fields = [
'snippet',
'language',
]
class SnippetFilter(django_filters.FilterSet):
favorite = django_fi... | 24.102564 | 101 | 0.607447 | 190 | 1,880 | 5.794737 | 0.273684 | 0.129882 | 0.079927 | 0.076294 | 0.326975 | 0.292461 | 0.154405 | 0 | 0 | 0 | 0 | 0 | 0.293617 | 1,880 | 77 | 102 | 24.415584 | 0.829066 | 0.08617 | 0 | 0.307692 | 0 | 0 | 0.103851 | 0 | 0 | 0 | 0 | 0.012987 | 0 | 1 | 0.076923 | false | 0.019231 | 0.038462 | 0.038462 | 0.423077 | 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 |
4f15648cc786e557ca07ca52d78e1a5532cecf8b | 1,892 | py | Python | Packs/CommonWidgets/Scripts/MyToDoTasksWidget/MyToDoTasksWidget_test.py | satyakidroid/content | b5342c522d44aec8f31f4ee0fc8ad269ac970903 | [
"MIT"
] | null | null | null | Packs/CommonWidgets/Scripts/MyToDoTasksWidget/MyToDoTasksWidget_test.py | satyakidroid/content | b5342c522d44aec8f31f4ee0fc8ad269ac970903 | [
"MIT"
] | 51 | 2022-02-25T22:28:40.000Z | 2022-03-31T22:34:58.000Z | Packs/CommonWidgets/Scripts/MyToDoTasksWidget/MyToDoTasksWidget_test.py | satyakidroid/content | b5342c522d44aec8f31f4ee0fc8ad269ac970903 | [
"MIT"
] | null | null | null | import json
import demistomock as demisto
from MyToDoTasksWidget import get_open_to_do_tasks_of_current_user
def test_open_to_do_tasks_of_current_user(mocker):
'''
Given:
- Mock response of 'internalHttpRequest' to '/v2/statistics/widgets/query' that includes an open task and
a close task
... | 28.238806 | 113 | 0.493129 | 189 | 1,892 | 4.767196 | 0.481481 | 0.044395 | 0.026637 | 0.043285 | 0.166482 | 0.166482 | 0.166482 | 0.137625 | 0.073252 | 0.073252 | 0 | 0.07088 | 0.381078 | 1,892 | 66 | 114 | 28.666667 | 0.698548 | 0.146934 | 0 | 0.12 | 0 | 0 | 0.292884 | 0.048285 | 0 | 0 | 0 | 0.015152 | 0.04 | 1 | 0.02 | false | 0 | 0.06 | 0 | 0.08 | 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 |
4f1af3d08cbf530d538f0749b68ac8ba48af17e8 | 2,840 | py | Python | src/globus_cli/services/transfer/client.py | sirosen/temp-cli-test | 416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6 | [
"Apache-2.0"
] | 47 | 2016-04-21T19:51:17.000Z | 2022-02-25T14:13:30.000Z | src/globus_cli/services/transfer/client.py | sirosen/temp-cli-test | 416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6 | [
"Apache-2.0"
] | 421 | 2016-04-20T18:45:24.000Z | 2022-03-14T14:50:41.000Z | src/globus_cli/services/transfer/client.py | sirosen/temp-cli-test | 416fd3fea17b4c7c2cf35d6ccde63cb5719a1af6 | [
"Apache-2.0"
] | 20 | 2016-09-10T20:25:27.000Z | 2021-10-06T16:02:47.000Z | import logging
import textwrap
import uuid
from typing import Any, Dict, Tuple, Union
import click
from globus_sdk import GlobusHTTPResponse, TransferClient
from .data import display_name_or_cname
from .recursive_ls import RecursiveLsResponse
log = logging.getLogger(__name__)
class CustomTransferClient(TransferCli... | 35.949367 | 88 | 0.634859 | 334 | 2,840 | 5.257485 | 0.407186 | 0.068337 | 0.023918 | 0.020501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003477 | 0.291197 | 2,840 | 78 | 89 | 36.410256 | 0.868852 | 0.355282 | 0 | 0 | 0 | 0 | 0.053716 | 0.030169 | 0 | 0 | 0 | 0.012821 | 0 | 1 | 0.054054 | false | 0 | 0.216216 | 0 | 0.378378 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4f1e7496b3483e64bf6a8b20b24344e523b362a7 | 808 | py | Python | pyrene/main.py | krisztianfekete/pyrene | ad9f2fb979f06930399c9c8214c3fe3c2d6efa06 | [
"MIT"
] | null | null | null | pyrene/main.py | krisztianfekete/pyrene | ad9f2fb979f06930399c9c8214c3fe3c2d6efa06 | [
"MIT"
] | 2 | 2015-01-06T09:29:29.000Z | 2015-01-06T09:50:15.000Z | pyrene/main.py | krisztianfekete/pyrene | ad9f2fb979f06930399c9c8214c3fe3c2d6efa06 | [
"MIT"
] | null | null | null | # Py3 compatibility
from __future__ import print_function
from __future__ import unicode_literals
import tempfile
import os
import sys
import shutil
from .network import Network
from .util import Directory
from .shell import PyreneCmd
def main():
dot_pyrene = os.path.expanduser('~/.pyrene')
dot_pypirc = os.p... | 21.263158 | 64 | 0.659653 | 97 | 808 | 5.226804 | 0.474227 | 0.053254 | 0.063116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003247 | 0.237624 | 808 | 37 | 65 | 21.837838 | 0.819805 | 0.02104 | 0 | 0 | 0 | 0 | 0.043093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.333333 | 0 | 0.37037 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4f21df34e1d98ce1e3adaa44158d7fed8c12ff92 | 1,121 | py | Python | snippets/Sage/batchdel.py | JLLeitschuh/TIPL | 89c5d82932f89a2b4064d5d86ac83045ce9bc7d5 | [
"Apache-2.0"
] | 1 | 2019-11-22T11:02:52.000Z | 2019-11-22T11:02:52.000Z | snippets/Sage/batchdel.py | JLLeitschuh/TIPL | 89c5d82932f89a2b4064d5d86ac83045ce9bc7d5 | [
"Apache-2.0"
] | 4 | 2019-11-21T14:13:32.000Z | 2020-02-11T15:15:23.000Z | snippets/Sage/batchdel.py | JLLeitschuh/TIPL | 89c5d82932f89a2b4064d5d86ac83045ce9bc7d5 | [
"Apache-2.0"
] | 1 | 2020-02-11T06:19:45.000Z | 2020-02-11T06:19:45.000Z | import sys,os
from numpy import *
from subprocess import *
from glob import glob
doResume=1
showisq=1
showlen=0
rdelete=1
fixmasks=1
vmsFix=lambda wholeFile: '\\;'.join(wholeFile.split(';'))
megsize=lambda fileName: os.path.getsize(fileName)/1e6
if len(sys.argv)<2:
for rt,drs,files in os.walk(os.getcwd(),topdown=Fals... | 29.5 | 69 | 0.619982 | 160 | 1,121 | 4.325 | 0.41875 | 0.040462 | 0.052023 | 0.069364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018458 | 0.178412 | 1,121 | 37 | 70 | 30.297297 | 0.732899 | 0 | 0 | 0 | 0 | 0 | 0.06875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 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 | 1 | 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.