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
49f0cb5e7d179f4e49a3a3d5e3925cf9bdd8840d
3,540
py
Python
upwork_crawler/crawlers/login/crawler.py
mgiovani/upwork-crawler
8b166b3767872ba51428a87f0011ba148e77c5d5
[ "MIT" ]
1
2021-12-20T02:37:12.000Z
2021-12-20T02:37:12.000Z
upwork_crawler/crawlers/login/crawler.py
mgiovani/upwork-crawler
8b166b3767872ba51428a87f0011ba148e77c5d5
[ "MIT" ]
4
2021-03-15T16:10:37.000Z
2021-03-15T16:38:39.000Z
upwork_crawler/crawlers/login/crawler.py
mgiovani/upwork-crawler
8b166b3767872ba51428a87f0011ba148e77c5d5
[ "MIT" ]
null
null
null
import os from time import sleep from loguru import logger from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.sup...
36.875
168
0.685311
436
3,540
5.311927
0.321101
0.046632
0.033679
0.036701
0.129534
0.086356
0.027634
0
0
0
0
0.015068
0.231356
3,540
95
169
37.263158
0.83609
0.015819
0
0.0375
0
0.0125
0.162116
0.03363
0
0
0
0
0
1
0.1
false
0.1125
0.15
0.0125
0.35
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
49f4e8b9bde671c990c0569b8a436a6f051f4d1a
839
py
Python
sopel_SpiceBotSERV/SpiceBotCore/botsetup/welcome_setup.py
SpiceBot/SpiceBotSERV
19d254c694287af869f5390f71efd20a9fcf620f
[ "EFL-2.0" ]
null
null
null
sopel_SpiceBotSERV/SpiceBotCore/botsetup/welcome_setup.py
SpiceBot/SpiceBotSERV
19d254c694287af869f5390f71efd20a9fcf620f
[ "EFL-2.0" ]
null
null
null
sopel_SpiceBotSERV/SpiceBotCore/botsetup/welcome_setup.py
SpiceBot/SpiceBotSERV
19d254c694287af869f5390f71efd20a9fcf620f
[ "EFL-2.0" ]
null
null
null
# coding=utf8 from __future__ import unicode_literals, absolute_import, division, print_function import sopel import inspect from SpiceBotCore.spicebot import spicebot @sopel.module.event("001") @sopel.module.rule('.*') def welcome_setup_start(bot, trigger): initialise_irc_backend(bot) def initialise_irc_bac...
22.078947
82
0.737783
103
839
5.815534
0.533981
0.073456
0.053422
0.0601
0
0
0
0
0
0
0
0.005525
0.137068
839
37
83
22.675676
0.821823
0.071514
0
0.105263
0
0
0.032895
0
0
0
0
0
0
1
0.210526
false
0
0.210526
0
0.473684
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
0
1
0
0
0
0
0
0
0
1
49f7f846d4ae2730e39b2208c2e130ba389fdb2b
3,954
py
Python
venv/Lib/site-packages/test/test_cp4d_authenticator.py
jo2hu6/home-assistant
1f97943a97d511323f7bfb57facb3fe93840d726
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/test/test_cp4d_authenticator.py
jo2hu6/home-assistant
1f97943a97d511323f7bfb57facb3fe93840d726
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/test/test_cp4d_authenticator.py
jo2hu6/home-assistant
1f97943a97d511323f7bfb57facb3fe93840d726
[ "Apache-2.0" ]
null
null
null
import pytest import responses import time import jwt import json from ibm_cloud_sdk_core.authenticators import CloudPakForDataAuthenticator def test_iam_authenticator(): authenticator = CloudPakForDataAuthenticator( 'my_username', 'my_password', 'http://my_url') assert authenticator is not None as...
39.939394
165
0.685888
442
3,954
5.99095
0.262443
0.071752
0.081571
0.105363
0.600831
0.512085
0.441088
0.441088
0.354985
0.328927
0
0.022376
0.197522
3,954
98
166
40.346939
0.812165
0
0
0.175
0
0.0125
0.207132
0.014163
0
0
0
0
0.2375
1
0.0375
false
0.15
0.075
0
0.1125
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
49fd3ac2be965bd2086cbb19ecb764f772f2be23
191
py
Python
tryouts.py
gallifrei-hashcodle/pizzatask
74f2b062bca7c97592d5a9a228a40f5990790fd0
[ "MIT" ]
null
null
null
tryouts.py
gallifrei-hashcodle/pizzatask
74f2b062bca7c97592d5a9a228a40f5990790fd0
[ "MIT" ]
null
null
null
tryouts.py
gallifrei-hashcodle/pizzatask
74f2b062bca7c97592d5a9a228a40f5990790fd0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Mar 1 19:58:06 2018 @author: Filip """ import in_out as inout something = inout.read_task("Inputs/a_example.in") print(something["rides_list"])
15.916667
50
0.680628
31
191
4.064516
0.903226
0
0
0
0
0
0
0
0
0
0
0.07362
0.146597
191
11
51
17.363636
0.699387
0.387435
0
0
0
0
0.266055
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
49fe3ffc76dc7f182ed8b5bc7ff8fb3b09feb51c
1,815
py
Python
students/k33401/Litvak_Igor/Lr3/cities/migrations/0001_initial.py
aglaya-pill/ITMO_ICT_WebDevelopment_2021-2022
a63691317a72fb9b29ae537bc3d7766661458c22
[ "MIT" ]
null
null
null
students/k33401/Litvak_Igor/Lr3/cities/migrations/0001_initial.py
aglaya-pill/ITMO_ICT_WebDevelopment_2021-2022
a63691317a72fb9b29ae537bc3d7766661458c22
[ "MIT" ]
null
null
null
students/k33401/Litvak_Igor/Lr3/cities/migrations/0001_initial.py
aglaya-pill/ITMO_ICT_WebDevelopment_2021-2022
a63691317a72fb9b29ae537bc3d7766661458c22
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-01-23 10:37 from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AU...
41.25
178
0.621488
181
1,815
6.093923
0.381215
0.089755
0.090662
0.059837
0.49864
0.49864
0.49864
0.49864
0.49864
0.49864
0
0.021261
0.248485
1,815
43
179
42.209302
0.78739
0.024793
0
0.333333
1
0
0.114819
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.222222
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
b700edfca6dab620a5bbd0b94c033d48ecfd802d
414
py
Python
python/problem3.py
shubhamoy/project-euler-solutions
9af99c4371ff565d5d8b13fe2fbaaafa5a29da51
[ "MIT" ]
1
2016-05-14T15:58:03.000Z
2016-05-14T15:58:03.000Z
python/problem3.py
shubhamoy/project-euler-solutions
9af99c4371ff565d5d8b13fe2fbaaafa5a29da51
[ "MIT" ]
null
null
null
python/problem3.py
shubhamoy/project-euler-solutions
9af99c4371ff565d5d8b13fe2fbaaafa5a29da51
[ "MIT" ]
null
null
null
import math def isPrime(n): if n == 2: return 1 if n == 3: return 1 if n % 2 == 0: return 0 if n % 3 == 0: return 0 i = 5 w = 2 while i * i <= n: if n % i == 0: return 0 i += w w = 6 - w return 1 n = 600851475143 b = math.sqrt(n) i = 1 while(i<b): if(isPrime(i) == 1): if(n ...
14.275862
34
0.400966
74
414
2.243243
0.27027
0.108434
0.072289
0.120482
0
0
0
0
0
0
0
0.142222
0.456522
414
28
35
14.785714
0.595556
0
0
0
0
0
0.004831
0
0
0
0
0
0
0
null
null
0
0.043478
null
null
0.086957
0
0
0
null
0
0
0
0
0
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
b70d9e1a4c95fadb31d92545b8d84d2ead4a174f
488
py
Python
__init__.py
abaelhe/pydis
66189d7e14e93bfd747aad75736cb8fc100a991f
[ "MIT" ]
null
null
null
__init__.py
abaelhe/pydis
66189d7e14e93bfd747aad75736cb8fc100a991f
[ "MIT" ]
null
null
null
__init__.py
abaelhe/pydis
66189d7e14e93bfd747aad75736cb8fc100a991f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This file is part of tornadis library released under the MIT license. # See the LICENSE file for more information. from .client import Pydis, StrictRedis, Redis, PubSub, Script # noqa from .pubsub_server import PubsubServer, PubsubNamespace, PubsubManager #from .pip...
30.5
71
0.702869
56
488
6.035714
0.678571
0.094675
0.12426
0.159763
0.195266
0
0
0
0
0
0
0.002513
0.184426
488
15
72
32.533333
0.846734
0.403689
0
0
0
0
0.240283
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b7106f15e14fec06be332faedc399ead41593ef7
6,022
py
Python
tests/test_uds_document.py
esteng/decomp
a6996b379e4a5e1a70a28b2b6f86bf39160ee10b
[ "MIT" ]
48
2019-10-01T13:33:24.000Z
2022-02-14T13:58:57.000Z
tests/test_uds_document.py
esteng/decomp
a6996b379e4a5e1a70a28b2b6f86bf39160ee10b
[ "MIT" ]
15
2019-10-01T15:01:36.000Z
2021-05-25T17:23:22.000Z
tests/test_uds_document.py
esteng/decomp
a6996b379e4a5e1a70a28b2b6f86bf39160ee10b
[ "MIT" ]
9
2020-03-02T17:54:17.000Z
2021-06-17T19:53:53.000Z
import pytest test_document_name = 'answers-20111105112131AA6gIX6_ans' test_document_genre = 'answers' test_document_timestamp = '20111105112131' test_document_text = 'My dad just does n\'t understand ? Ugh my dad is so stupid ... he just does n\'t understand anything ! I have 5 sisters and so including my mom ... h...
71.690476
1,040
0.697277
813
6,022
5.03321
0.270603
0.041056
0.090909
0.053763
0.502688
0.384409
0.351173
0.335044
0.330645
0.330645
0
0.117992
0.123215
6,022
83
1,041
72.554217
0.657008
0
0
0.1875
0
0.078125
0.539024
0.197111
0
0
0
0
0
1
0.09375
false
0
0.015625
0.03125
0.203125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b71a692179cb766208801ace7addcfb217c03339
1,104
py
Python
src/analise3.py
jnascimentocode/desafio-data-science
6e9f0cafc4feff0bb69498300f1c6fff67934362
[ "MIT" ]
null
null
null
src/analise3.py
jnascimentocode/desafio-data-science
6e9f0cafc4feff0bb69498300f1c6fff67934362
[ "MIT" ]
null
null
null
src/analise3.py
jnascimentocode/desafio-data-science
6e9f0cafc4feff0bb69498300f1c6fff67934362
[ "MIT" ]
null
null
null
import pandas as pd import os from upload_dados import * import seaborn as sns import matplotlib.pyplot as plt os.system('cls') #3. Existem correlações entre as características de um anúncio e seu faturamento? # a. Quais? Explique # filtrando todos os dados somente dos anuncios alugados data_df = data_df.loc[data_d...
39.428571
163
0.711051
157
1,104
4.878981
0.643312
0.031332
0.031332
0
0
0
0
0
0
0
0
0.00308
0.117754
1,104
27
164
40.888889
0.783368
0.224638
0
0.117647
0
0
0.277647
0.075294
0
0
0
0.037037
0
1
0
false
0
0.294118
0
0.294118
0.352941
0
0
0
null
0
0
0
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
b71bf01277a8373633f894c04a7a3f0739f13832
460
py
Python
exercicios/ex011.py
grievous0/Python_exercises
d1bef850c6d0205ff55c6a059e2bff382871853e
[ "MIT" ]
null
null
null
exercicios/ex011.py
grievous0/Python_exercises
d1bef850c6d0205ff55c6a059e2bff382871853e
[ "MIT" ]
null
null
null
exercicios/ex011.py
grievous0/Python_exercises
d1bef850c6d0205ff55c6a059e2bff382871853e
[ "MIT" ]
null
null
null
# Faça um programa que leia a largura e a altura de uma parede em metros, calcule a sua área e a quantidade de tinta necessária para pintá-la, sabendo que cada litro de tinta pinta uma área de 2 metros quadrados. b = float(input('Insira a largura da parede: ')) h = float(input('Insira a altura da parede: ')) a = b * h ...
65.714286
212
0.719565
86
460
3.848837
0.523256
0.063444
0.096677
0.102719
0
0
0
0
0
0
0
0.010582
0.178261
460
7
213
65.714286
0.865079
0.456522
0
0
0
0
0.546185
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
b7225f3408fc61ed098c987c2e0f134561c3c873
1,300
py
Python
Ebooks/forms.py
Akash4307/Wise-master
5f484e3791a8e4361d8bcad570ac2661636a5cfc
[ "Apache-2.0" ]
null
null
null
Ebooks/forms.py
Akash4307/Wise-master
5f484e3791a8e4361d8bcad570ac2661636a5cfc
[ "Apache-2.0" ]
8
2021-03-18T21:30:54.000Z
2022-03-02T14:56:55.000Z
Ebooks/forms.py
Akash4307/Wise-master
5f484e3791a8e4361d8bcad570ac2661636a5cfc
[ "Apache-2.0" ]
null
null
null
from django import forms from .models import PdfInfo class UserForm(forms.ModelForm): PdfName = forms.CharField(widget = forms.TextInput( attrs={ 'placeholder':'Pdf Book Name', 'class': 'form-control' } )) PdfPrice = forms.CharField(widget = forms.TextI...
18.84058
68
0.486154
97
1,300
6.515464
0.412371
0.110759
0.158228
0.197785
0.338608
0.338608
0.338608
0.18038
0.18038
0
0
0
0.398462
1,300
69
69
18.84058
0.808184
0
0
0.340909
0
0
0.238278
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.204545
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
b723ff65f9bf9d19add776837972f1233d829383
2,737
py
Python
scrum/roadmap/feature.py
chris-sanders/cdk-scripts
2ce3575c64862c1b1300708e6a5efa27b6f36add
[ "Apache-2.0" ]
null
null
null
scrum/roadmap/feature.py
chris-sanders/cdk-scripts
2ce3575c64862c1b1300708e6a5efa27b6f36add
[ "Apache-2.0" ]
null
null
null
scrum/roadmap/feature.py
chris-sanders/cdk-scripts
2ce3575c64862c1b1300708e6a5efa27b6f36add
[ "Apache-2.0" ]
null
null
null
import re from roadmap.logging import Logger class BaseFeature: def __init__(self, name, release, status=None): self.name = name self.release = release self.status = status def __repr__(self): return f"{self.release}:{self.name}:{self.status.value}" class RoadmapFeature(Bas...
27.928571
83
0.588235
320
2,737
4.821875
0.2625
0.041478
0.028516
0.04407
0.102398
0.102398
0.073882
0.073882
0.073882
0.073882
0
0.001556
0.295579
2,737
97
84
28.216495
0.798755
0.02521
0
0.144737
0
0
0.09865
0.058515
0
0
0
0.010309
0
1
0.171053
false
0
0.026316
0.065789
0.434211
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
b72763b7257be8441deb54f0a7966f362f1e0339
1,700
py
Python
python/pyspark/streaming/snappy/snappydstream.py
wiltonlazary/snappydata
ade39e6fb846101e43f85cedcb6721cacfe531c1
[ "Apache-2.0" ]
1,058
2016-02-02T05:50:23.000Z
2021-02-19T01:04:08.000Z
python/pyspark/streaming/snappy/snappydstream.py
wiltonlazary/snappydata
ade39e6fb846101e43f85cedcb6721cacfe531c1
[ "Apache-2.0" ]
723
2016-01-30T15:48:21.000Z
2020-12-08T12:20:39.000Z
python/pyspark/streaming/snappy/snappydstream.py
wiltonlazary/snappydata
ade39e6fb846101e43f85cedcb6721cacfe531c1
[ "Apache-2.0" ]
219
2016-01-29T06:29:22.000Z
2021-02-03T08:54:07.000Z
# # Copyright (c) 2017-2019 TIBCO Software Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you # # may not use this file except in compliance with the License. You # may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
36.170213
71
0.731176
229
1,700
5.358079
0.585153
0.0489
0.02119
0.02608
0.05705
0.05705
0
0
0
0
0
0.00885
0.202353
1,700
46
72
36.956522
0.896018
0.620588
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.166667
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
b7285ad42a33ccb7cf7e4c753d0bfe19e2b34bd6
3,176
py
Python
prepare_features.py
dfalci/deep_pt_srl
6cfb209a96aa987aebf02aa1f6d321dceb822ca4
[ "BSD-2-Clause" ]
6
2018-03-20T12:41:30.000Z
2021-08-29T14:25:05.000Z
prepare_features.py
dfalci/deep_pt_srl
6cfb209a96aa987aebf02aa1f6d321dceb822ca4
[ "BSD-2-Clause" ]
1
2019-11-29T12:05:57.000Z
2020-05-12T17:05:52.000Z
prepare_features.py
dfalci/deep_pt_srl
6cfb209a96aa987aebf02aa1f6d321dceb822ca4
[ "BSD-2-Clause" ]
1
2018-02-28T04:51:31.000Z
2018-02-28T04:51:31.000Z
# -*- coding: utf-8; -*- # Copyright (c) 2017, Daniel Falci - danielfalci@gmail.com # Laboratory for Advanced Information Systems - LAIS # # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # *...
44.111111
125
0.775819
417
3,176
5.865707
0.52518
0.006541
0.0139
0.018806
0.10139
0.081766
0.055601
0.055601
0.055601
0.055601
0
0.010662
0.143577
3,176
72
126
44.111111
0.888603
0.53432
0
0
0
0
0.266391
0.022084
0
0
0
0
0
0
null
null
0
0.2
null
null
0.366667
0
0
0
null
0
0
0
0
0
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
b72bc0ab75f586d4a867187641781b1af792ff8d
519
py
Python
imagepy/menus/File/save_plg.py
dada1437903138/imagepy
65d9ce088894eef587054e04018f9d34ff65084f
[ "BSD-4-Clause" ]
1,178
2017-05-25T06:59:01.000Z
2022-03-31T11:38:53.000Z
imagepy/menus/File/save_plg.py
TomisTony/imagepy
3c378ebaf72762b94f0826a410897757ebafe689
[ "BSD-4-Clause" ]
76
2017-06-10T17:01:50.000Z
2021-12-23T08:13:29.000Z
imagepy/menus/File/save_plg.py
TomisTony/imagepy
3c378ebaf72762b94f0826a410897757ebafe689
[ "BSD-4-Clause" ]
315
2017-05-25T12:59:53.000Z
2022-03-07T22:52:21.000Z
# -*- coding: utf-8 -*- """ Created on Mon Dec 5 03:19:13 2016 @author: yxl """ from sciapp.action import dataio from sciapp.action import Simple class SaveImage(dataio.ImageWriter): title = 'Save' def load(self, ips): self.filt = [i for i in sorted(dataio.WriterManager.names())] return True class WindowCaptu...
22.565217
63
0.699422
76
519
4.736842
0.710526
0.055556
0.088889
0.122222
0
0
0
0
0
0
0
0.027273
0.152216
519
23
64
22.565217
0.790909
0.136802
0
0
0
0
0.056689
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0
0.769231
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
b72e565446c3ae5835efa8f0949957b3895f3ea2
2,348
py
Python
Machine Learning Scientist with Python Track/16. Introduction to Deep Learning with Keras/ch1_exercises.py
MuhammadAlBarham/datacamp
65c180163b1ad235c79d85d4926e586a15a5f78f
[ "MIT" ]
7
2020-09-14T00:26:19.000Z
2022-02-08T20:53:52.000Z
Machine Learning Scientist with Python Track/16. Introduction to Deep Learning with Keras/ch1_exercises.py
MuhammadAlBarham/datacamp
65c180163b1ad235c79d85d4926e586a15a5f78f
[ "MIT" ]
null
null
null
Machine Learning Scientist with Python Track/16. Introduction to Deep Learning with Keras/ch1_exercises.py
MuhammadAlBarham/datacamp
65c180163b1ad235c79d85d4926e586a15a5f78f
[ "MIT" ]
8
2021-01-12T15:23:20.000Z
2022-03-17T12:06:00.000Z
# Exercise_1 # Import the Sequential model and Dense layer from keras.models import Sequential from keras.layers import Dense # Create a Sequential model model = Sequential() # Add an input layer and a hidden layer with 10 neurons model.add(Dense(10, input_shape=(2,), activation="relu")) # Add a 1-neuron output lay...
24.715789
66
0.649915
321
2,348
4.676012
0.280374
0.053298
0.086609
0.079947
0.386409
0.350433
0.178548
0.139907
0.139907
0.075949
0
0.02409
0.133731
2,348
94
67
24.978723
0.713864
0.385009
0
0.628571
0
0
0.064585
0
0
0
0
0
0
0
null
null
0
0.114286
null
null
0.057143
0
0
0
null
0
0
0
0
0
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
b740d94096f210e873978f212d4f39f64156cc29
729
py
Python
flamingo/core/plugins/rst/file.py
ejoerns/flamingo
1d61c99c9ad34dd0a2a652f80783226051e07238
[ "Apache-2.0" ]
null
null
null
flamingo/core/plugins/rst/file.py
ejoerns/flamingo
1d61c99c9ad34dd0a2a652f80783226051e07238
[ "Apache-2.0" ]
null
null
null
flamingo/core/plugins/rst/file.py
ejoerns/flamingo
1d61c99c9ad34dd0a2a652f80783226051e07238
[ "Apache-2.0" ]
null
null
null
from docutils.parsers.rst import Directive, directives from docutils.nodes import raw from .base import parse_rst def file(context): class File(Directive): required_arguments = 1 has_content = True def run(self): filename = self.arguments[0] _, _, link = context.c...
24.3
68
0.552812
74
729
5.324324
0.513514
0.060914
0
0
0
0
0
0
0
0
0
0.004149
0.33882
729
29
69
25.137931
0.813278
0
0
0
0
0
0.042524
0
0
0
0
0
0
1
0.15
false
0
0.15
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b741bb2379c1670cb76b4725a94c61905bcbb518
1,648
py
Python
B4S1 - Computer Vision/Homework 02.py
abc1236762/UniversityHomework
688f6fc45d610f84c0c24a6d5ab75ea70ea6a59f
[ "MIT" ]
null
null
null
B4S1 - Computer Vision/Homework 02.py
abc1236762/UniversityHomework
688f6fc45d610f84c0c24a6d5ab75ea70ea6a59f
[ "MIT" ]
4
2021-03-28T14:06:09.000Z
2021-03-28T14:06:10.000Z
B4S1 - Computer Vision/Homework 02.py
abc1236762/UniversityHomework
688f6fc45d610f84c0c24a6d5ab75ea70ea6a59f
[ "MIT" ]
1
2020-04-29T16:00:32.000Z
2020-04-29T16:00:32.000Z
import cv2 as cv import numpy as np img = cv.imread('gear_tooth.png', cv.IMREAD_GRAYSCALE)[26:147, 48:252] img_a = cv.threshold(img, 0xE1, 0xFF, cv.THRESH_BINARY)[1] cv.imshow('(a)', img_a) kernel_dot = cv.getStructuringElement(cv.MORPH_ELLIPSE, (3, 3)) kernel_hole = cv.getStructuringElement(cv.MORPH_ELLIPSE, (30, 3...
31.692308
73
0.750607
291
1,648
3.969072
0.233677
0.055411
0.151515
0.181818
0.245022
0.067532
0.067532
0
0
0
0
0.034251
0.096481
1,648
51
74
32.313725
0.741437
0
0
0
0
0
0.023058
0
0
0
0.004854
0
0
1
0
false
0
0.054054
0
0.054054
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
3f778719fa8ebb91ec5b8652be0e510eab813d27
3,169
py
Python
dags/kube_operator_demo.py
badal-io/composer-demo
647fe8b667d0968e72dee34bd3f98868233e763a
[ "Apache-2.0" ]
null
null
null
dags/kube_operator_demo.py
badal-io/composer-demo
647fe8b667d0968e72dee34bd3f98868233e763a
[ "Apache-2.0" ]
null
null
null
dags/kube_operator_demo.py
badal-io/composer-demo
647fe8b667d0968e72dee34bd3f98868233e763a
[ "Apache-2.0" ]
null
null
null
"""An example DAG demonstrating Kubernetes Pod Operator.""" # [START composer_kubernetespodoperator] import datetime from airflow import models from airflow.contrib.kubernetes import secret from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator # A Secret is an object that contains a sm...
34.824176
83
0.611549
370
3,169
5.154054
0.418919
0.012585
0.042475
0.036182
0.036707
0.036707
0.036707
0
0
0
0
0.006233
0.291259
3,169
91
84
34.824176
0.842832
0.351846
0
0.245614
0
0
0.182446
0.014793
0
0
0
0
0
1
0
false
0.070175
0.070175
0
0.070175
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
0
0
0
1
0
0
0
0
0
1
3f7a4def4108ee7aa6d89107b27f9e3623cacdcc
937
py
Python
exercism/python/robot-name/robot_name.py
shanavas786/coding-fu
2f29781ab793b5932a951259afffbbe0078e8a8a
[ "CC0-1.0" ]
1
2021-02-12T03:49:13.000Z
2021-02-12T03:49:13.000Z
exercism/python/robot-name/robot_name.py
shanavas786/coding-fu
2f29781ab793b5932a951259afffbbe0078e8a8a
[ "CC0-1.0" ]
null
null
null
exercism/python/robot-name/robot_name.py
shanavas786/coding-fu
2f29781ab793b5932a951259afffbbe0078e8a8a
[ "CC0-1.0" ]
null
null
null
import random from string import ascii_uppercase, digits class Robot(object): NAMES = set() def __init__(self): self.name = Robot._generate_uniq_name() def reset(self): """ Resets name and removes it from tracker """ old_name = self.name self.name = Robot....
23.425
62
0.589114
108
937
4.87037
0.435185
0.102662
0.129278
0.079848
0.212928
0.110266
0
0
0
0
0
0.003077
0.306297
937
39
63
24.025641
0.806154
0.110993
0
0.272727
1
0
0.017038
0
0
0
0
0
0
1
0.181818
false
0
0.090909
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3f7d6ec54aac2ef4370c0d8097857fdaa7c36dd9
4,815
py
Python
get-us-census-block/custom-recipes/get_us_census_block_id_from_lat_lon/recipe.py
gbetegon88/dataiku-contrib
4683a9e08a3706a163810bf104bf6464025e235e
[ "Apache-2.0" ]
93
2015-10-28T13:15:45.000Z
2022-03-07T01:16:24.000Z
get-us-census-block/custom-recipes/get_us_census_block_id_from_lat_lon/recipe.py
gbetegon88/dataiku-contrib
4683a9e08a3706a163810bf104bf6464025e235e
[ "Apache-2.0" ]
130
2015-11-13T17:41:41.000Z
2022-03-30T16:37:44.000Z
get-us-census-block/custom-recipes/get_us_census_block_id_from_lat_lon/recipe.py
gbetegon88/dataiku-contrib
4683a9e08a3706a163810bf104bf6464025e235e
[ "Apache-2.0" ]
88
2015-10-29T09:36:23.000Z
2021-12-13T20:14:08.000Z
# -*- coding: utf-8 -*- import dataiku import pandas as pd, numpy as np from dataiku import pandasutils as pdu import requests import time from dataiku.customrecipe import * import sys print ('## Running Plugin v0.4.0 ##') input_name = get_input_names_for_role('input')[0] # Recipe out output_ = get_output_names_f...
30.474684
229
0.544341
613
4,815
4.004894
0.254486
0.044807
0.06721
0.028513
0.18167
0.129532
0.106721
0.106721
0.068839
0.068839
0
0.00913
0.317549
4,815
157
230
30.66879
0.737979
0.043406
0
0.07
0
0.01
0.242549
0
0
0
0
0
0
0
null
null
0
0.07
null
null
0.06
0
0
0
null
0
0
0
0
0
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
3f86b64f284b2877c24d9e46903d494395ec0ecc
12,285
py
Python
configs/common/cores/arm/O3_PostK.py
bgerofi/riken_simulator
419368da94612e073d321a6abc4d6fe8e2349871
[ "BSD-3-Clause" ]
25
2020-05-22T05:09:34.000Z
2022-02-21T15:57:56.000Z
configs/common/cores/arm/O3_PostK.py
bgerofi/riken_simulator
419368da94612e073d321a6abc4d6fe8e2349871
[ "BSD-3-Clause" ]
null
null
null
configs/common/cores/arm/O3_PostK.py
bgerofi/riken_simulator
419368da94612e073d321a6abc4d6fe8e2349871
[ "BSD-3-Clause" ]
7
2020-05-26T05:44:52.000Z
2022-02-01T01:57:36.000Z
# Copyright (c) 2012 The Regents of The University of Michigan # 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 ...
39
78
0.634432
1,394
12,285
5.502869
0.304878
0.174554
0.043801
0.056968
0.436449
0.402685
0.366184
0.342328
0.342328
0.331378
0
0.041414
0.260969
12,285
314
79
39.124204
0.803503
0.187464
0
0.37037
0
0
0.102531
0
0
0
0.001008
0
0
1
0.00823
false
0
0.004115
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
3f8abb809c3b0b369777168530717e3ec82deeff
3,547
py
Python
CreeDictionary/tests/utils_tests/test_paradigm_filler.py
aaronfay/cree-intelligent-dictionary
5119aa819a48d0ce21c002af284bd2a28a77b15b
[ "Apache-2.0" ]
null
null
null
CreeDictionary/tests/utils_tests/test_paradigm_filler.py
aaronfay/cree-intelligent-dictionary
5119aa819a48d0ce21c002af284bd2a28a77b15b
[ "Apache-2.0" ]
null
null
null
CreeDictionary/tests/utils_tests/test_paradigm_filler.py
aaronfay/cree-intelligent-dictionary
5119aa819a48d0ce21c002af284bd2a28a77b15b
[ "Apache-2.0" ]
null
null
null
""" Tests importing the NA layouts. Note: if the upstream layouts change, so will these tests! """ from string import Template import pytest from paradigm import EmptyRow, Heading, InflectionCell, Label, TitleRow from utils import ParadigmSize, WordClass from utils.paradigm_filler import ParadigmFiller, import_freque...
36.193878
87
0.644488
419
3,547
5.365155
0.396181
0.007117
0.084075
0.087189
0.204626
0.129004
0.114769
0.05516
0.05516
0.05516
0
0.001774
0.205526
3,547
97
88
36.56701
0.795245
0.15647
0
0.0625
0
0
0.210383
0.057036
0
0
0
0.010309
0.125
1
0.0625
false
0
0.109375
0
0.1875
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
3f90946a0b6e65e183f90903b0dd0a43968dc7a7
1,807
py
Python
harstorage/controllers/combine.py
dominicmcginnis/harstorage
d8680268fbe8b2094af567bef372c3f102cde93f
[ "Apache-2.0" ]
null
null
null
harstorage/controllers/combine.py
dominicmcginnis/harstorage
d8680268fbe8b2094af567bef372c3f102cde93f
[ "Apache-2.0" ]
null
null
null
harstorage/controllers/combine.py
dominicmcginnis/harstorage
d8680268fbe8b2094af567bef372c3f102cde93f
[ "Apache-2.0" ]
null
null
null
from pylons import request, response from pylons import config from pylons.decorators.rest import restrict from harstorage.lib.base import BaseController class CombineController(BaseController): """ Combine multiple static text resources (CSS, JavaScript) into single file """ @restrict("GET") ...
29.622951
74
0.501937
163
1,807
5.539877
0.398773
0.039867
0.057586
0.084164
0.571429
0.571429
0.571429
0.571429
0.571429
0.571429
0
0.005607
0.407858
1,807
60
75
30.116667
0.838318
0.132263
0
0.702703
0
0
0.085398
0.014342
0
0
0
0
0
1
0.054054
false
0
0.108108
0
0.297297
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3f93c220ed62f0bad8bb4cfafdad8d1a29e32c78
4,850
py
Python
LimPy/run_langevin_parallel.py
UWPRG/LimPy
2a2979306ec4264de31d5ce1d2f8a59bd6eb7e9c
[ "BSD-2-Clause" ]
1
2017-11-08T00:53:03.000Z
2017-11-08T00:53:03.000Z
LimPy/run_langevin_parallel.py
UWPRG/LimPy
2a2979306ec4264de31d5ce1d2f8a59bd6eb7e9c
[ "BSD-2-Clause" ]
null
null
null
LimPy/run_langevin_parallel.py
UWPRG/LimPy
2a2979306ec4264de31d5ce1d2f8a59bd6eb7e9c
[ "BSD-2-Clause" ]
2
2019-01-09T06:59:10.000Z
2019-01-18T14:58:50.000Z
"""This is a script to run the langevin integrator in parallel.""" import langevin_functions as lf from simulate1D import simulate_1Dsystem from simulate2D import simulate_2Dsystem from statistical_functions import perform_ks_analysis import os from mpi4py import MPI import sys import pandas as pd import pdb import n...
37.022901
91
0.529897
514
4,850
4.85214
0.276265
0.052927
0.042101
0.040096
0.360064
0.321572
0.259022
0.259022
0.222133
0.222133
0
0.016592
0.353814
4,850
130
92
37.307692
0.779196
0
0
0.306306
0
0
0.062823
0
0
0
0
0
0
0
null
null
0
0.099099
null
null
0.018018
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3f98b63e761730423fcdbcadc7679743a5f598f1
487
py
Python
setup.py
windschord/airport_weather
d78ba06d37ebcbd5d634445d4438376e468bbb08
[ "MIT" ]
null
null
null
setup.py
windschord/airport_weather
d78ba06d37ebcbd5d634445d4438376e468bbb08
[ "MIT" ]
null
null
null
setup.py
windschord/airport_weather
d78ba06d37ebcbd5d634445d4438376e468bbb08
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='airport weather', version='0.1', description='airport weather', long_description=__doc__, author='windschord.com', author_email='support@windschord.com', url='http://www.windschord.com', packages = find_packages(), ...
30.4375
61
0.650924
51
487
5.980392
0.72549
0.127869
0
0
0
0
0
0
0
0
0
0.005181
0.207392
487
16
62
30.4375
0.784974
0
0
0
0
0
0.260246
0.045082
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
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
3f9920bfa0b49eb448e4371ba1b00e166337bd9d
1,316
py
Python
Back-End/Python/Basics/Part -2 - Iteration & Generators/05 - Context Managers/02_File_ctx_protocol_ie.py
ASHISHKUMAR2411/Programming-CookBook
9c60655d64d21985ccb4196360858d98344701f9
[ "MIT" ]
25
2021-04-28T02:51:26.000Z
2022-03-24T13:58:04.000Z
Back-End/Python/Basics/Part -2 - Iteration & Generators/05 - Context Managers/02_File_ctx_protocol_ie.py
ASHISHKUMAR2411/Programming-CookBook
9c60655d64d21985ccb4196360858d98344701f9
[ "MIT" ]
1
2022-03-03T23:33:41.000Z
2022-03-03T23:35:41.000Z
Back-End/Python/Basics/Part -2 - Iteration & Generators/05 - Context Managers/02_File_ctx_protocol_ie.py
ASHISHKUMAR2411/Programming-CookBook
9c60655d64d21985ccb4196360858d98344701f9
[ "MIT" ]
15
2021-05-30T01:35:20.000Z
2022-03-25T12:38:25.000Z
class File: def __init__(self, name, mode): self.name = name self.mode = mode def __enter__(self): print('opening file...') self.file = open(self.name, self.mode) return self.file def __exit__(self, exc_type, exc_value, exc_traceback): print('closing file.....
20.5625
59
0.571429
180
1,316
3.988889
0.216667
0.066852
0.066852
0.062674
0.707521
0.683844
0.683844
0.683844
0.683844
0.683844
0
0.00627
0.272796
1,316
64
60
20.5625
0.743992
0.097264
0
0.634146
0
0
0.117997
0
0
0
0
0
0
1
0.170732
false
0
0
0
0.341463
0.292683
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3f9977fc3ec953ecd9f75aa792559e5d6c544824
3,099
py
Python
sleekxmpp/plugins/xep_0016/stanza.py
E-Tahta/sleekxmpp
ed067c9412835c5fe44bf203936262bcec09ced4
[ "BSD-3-Clause" ]
499
2015-01-04T21:45:16.000Z
2022-02-14T13:04:08.000Z
sleekxmpp/plugins/xep_0016/stanza.py
E-Tahta/sleekxmpp
ed067c9412835c5fe44bf203936262bcec09ced4
[ "BSD-3-Clause" ]
159
2015-01-02T19:09:47.000Z
2020-02-12T08:29:54.000Z
sleekxmpp/plugins/xep_0016/stanza.py
E-Tahta/sleekxmpp
ed067c9412835c5fe44bf203936262bcec09ced4
[ "BSD-3-Clause" ]
209
2015-01-07T16:23:16.000Z
2022-01-26T13:02:20.000Z
from sleekxmpp.xmlstream import ET, ElementBase, register_stanza_plugin class Privacy(ElementBase): name = 'query' namespace = 'jabber:iq:privacy' plugin_attrib = 'privacy' interfaces = set() def add_list(self, name): priv_list = List() priv_list['name'] = name self.append...
29.798077
75
0.604066
365
3,099
4.942466
0.191781
0.077605
0.054324
0.066519
0.394678
0.394678
0.374723
0.345898
0.345898
0.303769
0
0
0.272991
3,099
103
76
30.087379
0.80071
0
0
0.3
0
0
0.14424
0
0
0
0
0
0
1
0.125
false
0
0.0125
0
0.5625
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
3f9c42423bc9e3d142121f2c8300875bf61816ee
5,698
py
Python
modules/dashboard/messages.py
CSavvy/coursebuilder
3025e0278a95de89c1bc7f1628f3b2b877998479
[ "Apache-2.0", "MIT" ]
null
null
null
modules/dashboard/messages.py
CSavvy/coursebuilder
3025e0278a95de89c1bc7f1628f3b2b877998479
[ "Apache-2.0", "MIT" ]
null
null
null
modules/dashboard/messages.py
CSavvy/coursebuilder
3025e0278a95de89c1bc7f1628f3b2b877998479
[ "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
39.027397
80
0.777466
795
5,698
5.430189
0.342138
0.078758
0.111188
0.154042
0.307853
0.2511
0.227241
0.227241
0.218902
0.177438
0
0.001608
0.126887
5,698
145
81
39.296552
0.866131
0.105827
0
0.18
0
0
0.61237
0
0
0
0
0
0
1
0.01
false
0
0.03
0
0.05
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
3fad00ab97f7e5c1e71a9d49397dde7878fe0deb
1,007
py
Python
analysis/inlining_overrides.py
fyquah95/fyp-worker-dispatcher
1ebf764e41202d18ccd1013ec2270caa6c44565a
[ "RSA-MD", "CECILL-B" ]
null
null
null
analysis/inlining_overrides.py
fyquah95/fyp-worker-dispatcher
1ebf764e41202d18ccd1013ec2270caa6c44565a
[ "RSA-MD", "CECILL-B" ]
null
null
null
analysis/inlining_overrides.py
fyquah95/fyp-worker-dispatcher
1ebf764e41202d18ccd1013ec2270caa6c44565a
[ "RSA-MD", "CECILL-B" ]
null
null
null
""" Translates decisions that can be generated as an override """ import sexpdata import constants import inlining_tree def trace_item_from_path(component): print(component) if component[0] == "function": return [ "Apply", sexp_of_apply(component[1], component[1]) ] elif component[0] == "declara...
26.5
87
0.66137
131
1,007
4.870229
0.427481
0.037618
0.040752
0.053292
0
0
0
0
0
0
0
0.013889
0.213505
1,007
37
88
27.216216
0.791667
0.056604
0
0.16
1
0
0.055202
0
0
0
0
0
0.16
1
0.08
false
0
0.12
0
0.32
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3fb1111f08f7f72b7e75add5dbc13c1c981c407f
3,280
py
Python
mozurestsdk/commerce/settings/locationusage.py
Mozu/mozu-python-sdk
9cc918aca7db3639264184e5266e8e508a08a7dd
[ "Apache-2.0" ]
1
2021-03-22T12:38:42.000Z
2021-03-22T12:38:42.000Z
mozurestsdk/commerce/settings/locationusage.py
Mozu/mozu-python-sdk
9cc918aca7db3639264184e5266e8e508a08a7dd
[ "Apache-2.0" ]
null
null
null
mozurestsdk/commerce/settings/locationusage.py
Mozu/mozu-python-sdk
9cc918aca7db3639264184e5266e8e508a08a7dd
[ "Apache-2.0" ]
2
2015-09-30T19:49:00.000Z
2015-09-30T19:51:03.000Z
""" This code was generated by Codezu. Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. """ from mozurestsdk.mozuclient import default as default_client from mozurestsdk.mozuurl import MozuUrl; from mozurestsdk.urllocation import UrlLocation from mozure...
36.043956
476
0.726524
382
3,280
6.222513
0.314136
0.037863
0.028607
0.026504
0.548591
0.53639
0.524611
0.524611
0.474127
0.400926
0
0
0.185976
3,280
91
477
36.043956
0.890262
0.496037
0
0.357143
1
0
0.182113
0.143876
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3fb207c8478a626b499d8e8c0cc4f04eb4301f8b
346
py
Python
Python_Examples/classes-and-objects.py
hackersatcambridge/workshop-intro-to-programming
2c044cbada6bf6f3453c2720a3d7a5f42a7d4d21
[ "MIT" ]
1
2021-11-23T23:12:35.000Z
2021-11-23T23:12:35.000Z
Python_Examples/classes-and-objects.py
hackersatcambridge/workshop-intro-to-programming
2c044cbada6bf6f3453c2720a3d7a5f42a7d4d21
[ "MIT" ]
2
2018-10-30T22:17:58.000Z
2018-10-30T22:20:57.000Z
Python_Examples/classes-and-objects.py
hackersatcambridge/workshop-intro-to-programming
2c044cbada6bf6f3453c2720a3d7a5f42a7d4d21
[ "MIT" ]
null
null
null
class Student: def __init__(self, name, age, catchPhrase): self.name = name self.age = age self.catchPhrase = catchPhrase def speak(self): print("Hi I am " + self.name + " and I am " + str(self.age) + " years old, " + self.catchPhrase) student = Student("Rick", 60, "Wubba lubba ...
34.6
104
0.606936
46
346
4.478261
0.478261
0.116505
0
0
0
0
0
0
0
0
0
0.007752
0.254335
346
10
105
34.6
0.790698
0
0
0
0
0
0.15562
0
0
0
0
0
0
1
0.222222
false
0
0
0
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3fb3cf9576486c141d5e234fd68ad1cf4cc3fe55
274
py
Python
Training/config.py
asagar60/TableNet-pytorch
cd6431a1dd091da1c0e590df8b919b12405f2cf0
[ "MIT" ]
14
2021-08-06T06:21:03.000Z
2022-03-28T21:35:02.000Z
Training/config.py
asagar60/TableNet-pytorch
cd6431a1dd091da1c0e590df8b919b12405f2cf0
[ "MIT" ]
3
2021-10-19T13:31:19.000Z
2022-02-22T04:16:22.000Z
Training/config.py
asagar60/TableNet-pytorch
cd6431a1dd091da1c0e590df8b919b12405f2cf0
[ "MIT" ]
8
2021-08-19T12:21:20.000Z
2022-03-01T10:55:42.000Z
import torch SEED = 0 DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu") LEARNING_RATE = 0.0001 EPOCHS = 100 BATCH_SIZE = 2 WEIGHT_DECAY = 3e-4 DATAPATH = 'F:/Deep Learning/appliedai_submissions/Self Case Study/Case Study 2/processed_data_v2.csv'
30.444444
102
0.748175
44
274
4.5
0.795455
0.090909
0
0
0
0
0
0
0
0
0
0.059829
0.145985
274
9
102
30.444444
0.786325
0
0
0
0
0
0.359551
0.217228
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3fb9c2d3d874343b34835c84252c2bfd42554088
172
py
Python
Xian/week 9/23.py
Eurydia/Xian-assignment
4a7e4bcd3d4999ea7429054fec1792064c96ff30
[ "MIT" ]
null
null
null
Xian/week 9/23.py
Eurydia/Xian-assignment
4a7e4bcd3d4999ea7429054fec1792064c96ff30
[ "MIT" ]
null
null
null
Xian/week 9/23.py
Eurydia/Xian-assignment
4a7e4bcd3d4999ea7429054fec1792064c96ff30
[ "MIT" ]
null
null
null
m, n = map(int, input().split()) for i in range(m): val = [x for x in range((i*n)+1, ((i+1)*n)+1)] if i % 2 == 1: val = reversed(val) print(*val)
19.111111
50
0.459302
33
172
2.393939
0.515152
0.177215
0
0
0
0
0
0
0
0
0
0.042017
0.30814
172
8
51
21.5
0.621849
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
3fbd3211c450643610be8d3c43f7f45124d8aad5
288
py
Python
examples/20_intel-backlight.py
zentropi/python-zentropi
96cf714b1e0eeb7ee887298eca0f1c92e8b6958e
[ "BSD-3-Clause" ]
14
2017-04-21T05:47:02.000Z
2018-10-23T21:28:19.000Z
examples/20_intel-backlight.py
zentropi/python-zentropi
96cf714b1e0eeb7ee887298eca0f1c92e8b6958e
[ "BSD-3-Clause" ]
22
2017-04-11T23:35:16.000Z
2017-05-20T04:32:44.000Z
examples/20_intel-backlight.py
zentropi/python-zentropi
96cf714b1e0eeb7ee887298eca0f1c92e8b6958e
[ "BSD-3-Clause" ]
5
2017-04-05T23:21:05.000Z
2017-10-29T15:28:05.000Z
import subprocess from zentropi import Agent a = Agent('intel-backlight') @a.on_event('intel-backlight') async def backlight(frame): value = frame.data.get("value") subprocess.run(['intel_backlight', str(value)]) a.run( 'ws://localhost:26514/', token='test-token', )
16.941176
51
0.680556
38
288
5.105263
0.605263
0.216495
0
0
0
0
0
0
0
0
0
0.020408
0.149306
288
16
52
18
0.771429
0
0
0
0
0
0.28125
0.072917
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3fbf86d787f4bfe4ed800497c0a800c9cac81fd8
2,608
py
Python
sjsclient/tests/functional/base.py
spark-jobserver/python-sjsclient
777bcf28f1da42ac48fa6617a91fd4c8f0b98397
[ "Apache-2.0" ]
42
2015-12-15T07:46:31.000Z
2021-04-16T20:18:27.000Z
sjsclient/tests/functional/base.py
spark-jobserver/python-sjsclient
777bcf28f1da42ac48fa6617a91fd4c8f0b98397
[ "Apache-2.0" ]
39
2015-11-23T10:17:19.000Z
2020-02-18T14:07:23.000Z
sjsclient/tests/functional/base.py
spark-jobserver/python-sjsclient
777bcf28f1da42ac48fa6617a91fd4c8f0b98397
[ "Apache-2.0" ]
10
2015-12-19T02:01:00.000Z
2019-05-30T20:13:53.000Z
# -*- coding: utf-8 -*- import os import time import requests import testtools from sjsclient import client from sjsclient import exceptions test_ctx = os.getenv("TESTSJS_SPARK_TEST_CTX") test_py_ctx = "{}_py".format(test_ctx) test_java_ctx = "{}_java".format(test_ctx) class TestFunctionalSJS(testtools.TestCase):...
29.303371
71
0.691718
324
2,608
5.25
0.246914
0.089947
0.061728
0.081129
0.223398
0.101705
0.07231
0
0
0
0
0.002908
0.208972
2,608
88
72
29.636364
0.821619
0.008052
0
0.119403
0
0
0.123791
0.111025
0
0
0
0
0
1
0.134328
false
0.059701
0.089552
0.044776
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
0
0
0
0
0
1
0
0
0
0
0
1
3fc0f7599aae2167e025c6c3e7b02dc70586df5b
918
py
Python
tests/test_language.py
waiteperspectives/Morelia
e6e6180d688c6bdf538f6b43a97755c76329646a
[ "MIT" ]
17
2015-11-18T02:49:47.000Z
2019-12-22T08:46:26.000Z
tests/test_language.py
waiteperspectives/Morelia
e6e6180d688c6bdf538f6b43a97755c76329646a
[ "MIT" ]
230
2015-04-28T16:48:20.000Z
2022-03-25T13:01:07.000Z
tests/test_language.py
waiteperspectives/Morelia
e6e6180d688c6bdf538f6b43a97755c76329646a
[ "MIT" ]
8
2015-04-16T07:45:35.000Z
2019-06-20T17:09:49.000Z
from unittest import TestCase from morelia import verify class LanguageTest(TestCase): def setUp(self): self.executed = [] def test_supports_languages_other_than_english(self): source = """# language: pl Właściwość: obsługa języków obcych Scenariusz: Dopasowuje kroki...
27.818182
66
0.639434
97
918
5.917526
0.556701
0.10453
0.094077
0.111498
0
0
0
0
0
0
0
0
0.279956
918
32
67
28.6875
0.868381
0.072985
0
0
0
0
0.389978
0
0
0
0
0
0.041667
1
0.208333
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3fc164a9b9bbd6a28010cf3f1bbdf03d4d74a044
3,079
py
Python
src/xlsxgenerator.py
Darshan-Ramesh/EmpRecognition
c85775659bcbb79f62de29a7a764cc72f1de0674
[ "MIT" ]
null
null
null
src/xlsxgenerator.py
Darshan-Ramesh/EmpRecognition
c85775659bcbb79f62de29a7a764cc72f1de0674
[ "MIT" ]
null
null
null
src/xlsxgenerator.py
Darshan-Ramesh/EmpRecognition
c85775659bcbb79f62de29a7a764cc72f1de0674
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import os import glob as glob import csv, json class XlsxGenerator(): """ A class to generate excel file containing the emperor names and the image name read from a folder Attributes ---------- rootfolder_path : str Parent folder path ima...
32.410526
139
0.598246
391
3,079
4.575448
0.355499
0.054779
0.022359
0.011738
0.050307
0
0
0
0
0
0
0.00866
0.287431
3,079
95
140
32.410526
0.806746
0.280611
0
0
1
0
0.105727
0.015174
0.020833
0
0
0
0
1
0.083333
false
0
0.104167
0
0.229167
0.104167
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
3fc59ffb3c36cd0c8969b890b6a444d726fd4cdf
1,237
py
Python
peak_memory/peak_memory_mac.py
wkkxixi/rivuletpy
4d99a021925c110dbb7716848dcad2ecf466df77
[ "BSD-3-Clause" ]
1
2018-05-03T07:05:52.000Z
2018-05-03T07:05:52.000Z
peak_memory/peak_memory_mac.py
wkkxixi/MEIT
4d99a021925c110dbb7716848dcad2ecf466df77
[ "BSD-3-Clause" ]
3
2018-06-13T04:29:00.000Z
2018-06-13T06:59:41.000Z
peak_memory/peak_memory_mac.py
wkkxixi/MEIT
4d99a021925c110dbb7716848dcad2ecf466df77
[ "BSD-3-Clause" ]
null
null
null
''' You need to generate the output file by running: top -l 0 -pid [process id] -stats pid,mem > [outputfile.txt] ''' import argparse parser = argparse.ArgumentParser(description='Run to find peak memory.') parser.add_argument( '-f', '--file', type=str, default=None, required...
27.488889
72
0.544058
147
1,237
4.503401
0.469388
0.045317
0.05136
0.054381
0.1571
0.07855
0.07855
0.07855
0
0
0
0.013095
0.320938
1,237
44
73
28.113636
0.775
0.090542
0
0.176471
1
0
0.151434
0
0
0
0
0
0
1
0
false
0
0.029412
0
0.029412
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3fc5b0b8cef459c0ec080fef6cd9544db7048fa9
3,776
py
Python
testing/scripts/test_alibi_detect_server.py
ryoyop/seldon-core
83717e88717a4030d7f76f87c3a3b713cd73d276
[ "Apache-2.0" ]
null
null
null
testing/scripts/test_alibi_detect_server.py
ryoyop/seldon-core
83717e88717a4030d7f76f87c3a3b713cd73d276
[ "Apache-2.0" ]
60
2021-06-18T03:25:51.000Z
2022-03-28T04:07:46.000Z
testing/scripts/test_alibi_detect_server.py
ryoyop/seldon-core
83717e88717a4030d7f76f87c3a3b713cd73d276
[ "Apache-2.0" ]
null
null
null
import json import logging import time import uuid from subprocess import run import pytest import requests from tenacity import RetryError, Retrying, stop_after_attempt, wait_fixed from seldon_core.batch_processor import start_multithreaded_batch_worker from seldon_e2e_utils import ( API_ISTIO_GATEWAY, creat...
30.451613
87
0.576271
455
3,776
4.624176
0.23956
0.053232
0.062738
0.028517
0.730989
0.709125
0.674905
0.63403
0.591255
0.591255
0
0.022451
0.280456
3,776
123
88
30.699187
0.751932
0
0
0.57732
0
0
0.24947
0.066737
0
0
0
0
0.164948
1
0.020619
false
0
0.103093
0
0.164948
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3fcd6fb9f0fede88546246689b9f9b98f056dee6
4,225
py
Python
lib/muchos/config/decorators.py
ata18/fluo-muchos
ee7c767b6fa4c0f714fedf8c5326fb2508f21953
[ "Apache-2.0" ]
null
null
null
lib/muchos/config/decorators.py
ata18/fluo-muchos
ee7c767b6fa4c0f714fedf8c5326fb2508f21953
[ "Apache-2.0" ]
null
null
null
lib/muchos/config/decorators.py
ata18/fluo-muchos
ee7c767b6fa4c0f714fedf8c5326fb2508f21953
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
34.631148
101
0.668402
542
4,225
4.98893
0.302583
0.025888
0.024038
0.018861
0.201923
0.117234
0.117234
0.065089
0.036982
0.036982
0
0.00282
0.244497
4,225
121
102
34.917355
0.844298
0.293491
0
0.2125
0
0
0.046653
0
0
0
0
0
0
1
0.2125
false
0
0.0375
0.0625
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
3fd3bf23a6212aed80ecd1b230b45131779df5ed
1,058
py
Python
lib/pom/Home.py
ihayasaka/snap_scraper
e770a49a3795af647e719cd7b0a0c3c3b7337ed3
[ "MIT" ]
null
null
null
lib/pom/Home.py
ihayasaka/snap_scraper
e770a49a3795af647e719cd7b0a0c3c3b7337ed3
[ "MIT" ]
null
null
null
lib/pom/Home.py
ihayasaka/snap_scraper
e770a49a3795af647e719cd7b0a0c3c3b7337ed3
[ "MIT" ]
null
null
null
from lib.util.Logger import get_module_logger class Home: def __init__(self, driver): self.driver = driver self.logger = get_module_logger(__name__) def get_top_area_wrap(self): return self.driver.find_element_by_id('top_area_wrap') def get_city_list(self): return self.g...
30.228571
106
0.654064
151
1,058
4.245033
0.311258
0.093604
0.068643
0.043682
0.071763
0
0
0
0
0
0
0.002445
0.226843
1,058
34
107
31.117647
0.781174
0
0
0
0
0.04
0.092628
0.05104
0
0
0
0
0
1
0.24
false
0
0.08
0.08
0.56
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
3fd5a82a8f1cbd8e0298cb3bada2810e660f4edd
31,331
py
Python
pyleecan/Classes/OutLoss.py
Eomys/Pyleecan
4d7f0cbabf0311006963e7a2f435db2ecd901118
[ "Apache-2.0" ]
4
2017-11-27T10:14:34.000Z
2018-09-20T11:30:32.000Z
pyleecan/Classes/OutLoss.py
Eomys/Pyleecan
4d7f0cbabf0311006963e7a2f435db2ecd901118
[ "Apache-2.0" ]
null
null
null
pyleecan/Classes/OutLoss.py
Eomys/Pyleecan
4d7f0cbabf0311006963e7a2f435db2ecd901118
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # File generated according to Generator/ClassesRef/Output/OutLoss.csv # WARNING! All changes made in this file will be lost! """Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Output/OutLoss """ from os import linesep from sys import getsizeof fro...
35.362302
106
0.514123
3,462
31,331
4.403813
0.07539
0.039683
0.021251
0.022432
0.440837
0.356684
0.275285
0.208973
0.182999
0.144235
0
0.001271
0.397338
31,331
885
107
35.40226
0.806165
0.08723
0
0.322537
1
0
0.089297
0.002481
0
0
0
0
0.00135
1
0.040486
false
0.010796
0.052632
0
0.153846
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
3fd885c2a718ce29c793357490bedb9352c60c29
909
py
Python
tests/functions/test_logsumexp.py
nlp-greyfoss/metagrad
0f32f177ced1478f0c75ad37bace9a9fc4044ba3
[ "MIT" ]
7
2022-01-27T05:38:02.000Z
2022-03-30T01:48:00.000Z
tests/functions/test_logsumexp.py
nlp-greyfoss/metagrad
0f32f177ced1478f0c75ad37bace9a9fc4044ba3
[ "MIT" ]
null
null
null
tests/functions/test_logsumexp.py
nlp-greyfoss/metagrad
0f32f177ced1478f0c75ad37bace9a9fc4044ba3
[ "MIT" ]
2
2022-02-22T07:47:02.000Z
2022-03-22T08:31:59.000Z
import numpy as np import torch import metagrad.functions as F from metagrad.tensor import Tensor def test_simple_logsumexp(): x = np.array([0, 1, 2], np.float32) mx = Tensor(x, requires_grad=True) y = F.logsumexp(mx) tx = torch.tensor(x, requires_grad=True) ty = torch.logsumexp(tx, -1) as...
21.139535
74
0.645765
148
909
3.905405
0.324324
0.020761
0.103806
0.131488
0.633218
0.633218
0.633218
0.633218
0.633218
0.633218
0
0.027624
0.20352
909
42
75
21.642857
0.770718
0.007701
0
0.461538
0
0
0
0
0
0
0
0
0.153846
1
0.076923
false
0
0.153846
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3fdadd0d9710dd9a2d9b2fdd4faa2d4d4d85c133
2,835
py
Python
ansible_bender/builders/base.py
gordonmessmer/ansible-bender
ba7eb21432dc9a409aca52bd3c24c32186d96a02
[ "MIT" ]
513
2019-03-20T11:49:27.000Z
2022-03-21T18:14:17.000Z
ansible_bender/builders/base.py
gordonmessmer/ansible-bender
ba7eb21432dc9a409aca52bd3c24c32186d96a02
[ "MIT" ]
167
2019-03-27T12:23:01.000Z
2022-03-29T08:42:16.000Z
ansible_bender/builders/base.py
gordonmessmer/ansible-bender
ba7eb21432dc9a409aca52bd3c24c32186d96a02
[ "MIT" ]
68
2019-03-20T20:05:16.000Z
2022-03-27T15:34:48.000Z
""" Base class for builders """ from enum import Enum class BuildState(Enum): NEW = "new" IN_PROGRESS = "in_progress" DONE = "done" FAILED = "failed" class Builder: ansible_connection = "default-value" name = "default-value" def __init__(self, build, debug=False): """ :p...
24.025424
80
0.554497
321
2,835
4.794393
0.358255
0.02729
0.025341
0.025991
0.075374
0.038986
0
0
0
0
0
0.006431
0.341799
2,835
117
81
24.230769
0.818328
0.35485
0
0
0
0
0.182073
0.065126
0
0
0
0
0
1
0.35
false
0
0.025
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3fe7b8564fc73e38b1977d7b5044556845d90b4a
4,410
py
Python
bentoml/utils/__init__.py
kmr0877/BentoML
6f2435baf89145f29a4007f124fe9329d46b2a6a
[ "Apache-2.0" ]
null
null
null
bentoml/utils/__init__.py
kmr0877/BentoML
6f2435baf89145f29a4007f124fe9329d46b2a6a
[ "Apache-2.0" ]
null
null
null
bentoml/utils/__init__.py
kmr0877/BentoML
6f2435baf89145f29a4007f124fe9329d46b2a6a
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Atalaya Tech, Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, ...
29.597315
87
0.735374
617
4,410
5.004862
0.372771
0.01943
0.032383
0.01943
0.107513
0.068653
0.068653
0.068653
0.04987
0.04987
0
0.005519
0.178231
4,410
148
88
29.797297
0.846578
0.238095
0
0.197674
0
0
0.058024
0.023572
0
0
0
0
0.011628
1
0.162791
false
0
0.186047
0
0.546512
0.011628
0
0
0
null
0
0
0
0
0
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
3fe935bf93c34d7fcf6dca497f9a6050cf448ec9
533
py
Python
example/layers/feedforward.py
Achazwl/BMTrain
776c10b21886f12137641c56b12ebf8d601aa9e0
[ "Apache-2.0" ]
19
2022-03-14T12:30:23.000Z
2022-03-31T11:52:29.000Z
example/layers/feedforward.py
Achazwl/BMTrain
776c10b21886f12137641c56b12ebf8d601aa9e0
[ "Apache-2.0" ]
1
2022-03-24T02:11:32.000Z
2022-03-24T02:14:17.000Z
example/layers/feedforward.py
Achazwl/BMTrain
776c10b21886f12137641c56b12ebf8d601aa9e0
[ "Apache-2.0" ]
5
2022-03-18T02:03:02.000Z
2022-03-29T13:19:09.000Z
import torch import bmtrain as bmt from layers import Linear class Feedforward(bmt.DistributedModule): def __init__(self, dim_model : int, dim_ff : int, bias : bool = True, dtype = None) -> None: super().__init__() self.w_in = Linear(dim_model, dim_ff, bias = bias, dtype=dtype) self.w_out ...
31.352941
96
0.660413
78
533
4.282051
0.423077
0.05988
0.041916
0.107784
0.131737
0
0
0
0
0
0
0
0.217636
533
16
97
33.3125
0.800959
0
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.272727
0.090909
0.636364
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
3febc04f7a95293dba751facdab465ea897c28a7
1,537
py
Python
decor.py
Saiyam-Sandhir/colorama2
467e6406e471a57601b70557347b1e201f65e27b
[ "Apache-2.0" ]
null
null
null
decor.py
Saiyam-Sandhir/colorama2
467e6406e471a57601b70557347b1e201f65e27b
[ "Apache-2.0" ]
null
null
null
decor.py
Saiyam-Sandhir/colorama2
467e6406e471a57601b70557347b1e201f65e27b
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) Saiyam Jain 2021. All rights reserved. Copyrights licensed under the Apache License 2.0. See the accompanying LICENSE file for terms. """ #importing sys module import sys #inserting the path of the package Colorama2 of SimpleDBMS in order to make use of modules in it sys.path.insert(0, "G:...
39.410256
172
0.676643
200
1,537
5.18
0.45
0.034749
0.061776
0.073359
0.198842
0.146718
0
0
0
0
0
0.009683
0.260898
1,537
38
173
40.447368
0.902289
0.519193
0
0.153846
0
0
0.073099
0.046784
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.307692
0.461538
0
0
0
null
0
0
0
0
0
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
3fec590b1115175c834a19b256bca4e2a6c5228f
670
py
Python
tests/test_config.py
cffbots/ewatercycle
29571aace32fcea8f70948259e33a62c9c834808
[ "Apache-2.0" ]
18
2021-03-25T08:25:32.000Z
2022-03-25T09:23:09.000Z
tests/test_config.py
cffbots/ewatercycle
29571aace32fcea8f70948259e33a62c9c834808
[ "Apache-2.0" ]
323
2016-08-11T12:13:58.000Z
2022-03-30T11:29:04.000Z
tests/test_config.py
cffbots/ewatercycle
29571aace32fcea8f70948259e33a62c9c834808
[ "Apache-2.0" ]
4
2018-06-27T11:47:23.000Z
2022-02-02T14:14:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for the ewatercycle_parametersetdb module. """ from ewatercycle.parametersetdb.config import YamlConfig, fetch def test_fetch(yaml_config_url): result = fetch(yaml_config_url) assert "PEQ_Hupsel.dat" in result class TestYamlConfig: def test_constr...
23.928571
73
0.701493
90
670
4.966667
0.466667
0.178971
0.174497
0.080537
0.210291
0
0
0
0
0
0
0.001848
0.192537
670
27
74
24.814815
0.824399
0.135821
0
0.153846
0
0
0.070053
0
0
0
0
0
0.230769
1
0.230769
false
0
0.076923
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
1
0
0
0
0
0
0
0
1
3fec9423ade622b069f912f50e34a0ab9ed2b6fc
802
py
Python
vea/tools/video_show.py
AP-Atul/Video-Editing-Automation
cadf3e66f208737c1a273b958c4654a3d08f4f71
[ "MIT" ]
18
2020-01-14T08:25:02.000Z
2021-12-31T02:04:11.000Z
vea/tools/video_show.py
AP-Atul/Video-Editing-Automation
cadf3e66f208737c1a273b958c4654a3d08f4f71
[ "MIT" ]
null
null
null
vea/tools/video_show.py
AP-Atul/Video-Editing-Automation
cadf3e66f208737c1a273b958c4654a3d08f4f71
[ "MIT" ]
1
2021-02-06T21:39:15.000Z
2021-02-06T21:39:15.000Z
from threading import Thread import cv2 class VideoShow: # Class that continuously shows a frame using a dedicated thread. # Since it works in the thread other than the main UI Thread the # video playback is faster and would be difficult to analyze. # I haven't used it in the the video editing autom...
26.733333
70
0.628429
112
802
4.464286
0.580357
0.088
0.06
0
0
0
0
0
0
0
0
0.007055
0.293017
802
29
71
27.655172
0.87478
0.370324
0
0.125
0
0
0.012048
0
0
0
0
0
0
1
0.25
false
0
0.125
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
3fee4db78bf86af90cd494498eb947fbdcb584e0
3,879
py
Python
generate_snippets.py
stratusjerry/vscode-saltstack
a077c6b93a4b5729e6e1f0e4532a97ca749c8c04
[ "MIT" ]
26
2018-01-20T22:27:08.000Z
2021-11-09T07:32:08.000Z
generate_snippets.py
stratusjerry/vscode-saltstack
a077c6b93a4b5729e6e1f0e4532a97ca749c8c04
[ "MIT" ]
15
2018-11-06T13:03:17.000Z
2022-03-29T18:52:08.000Z
generate_snippets.py
stratusjerry/vscode-saltstack
a077c6b93a4b5729e6e1f0e4532a97ca749c8c04
[ "MIT" ]
8
2018-07-25T23:44:39.000Z
2022-03-29T17:53:43.000Z
''' generate_snippets uses salt-call equivalent to list existing states and their functions. Basic autocomplete snippets are then configured for each state. If the snippet has been further edited, the script will not touch them. Thus, the resulting workflow is to run generate_snippets on new salt releases to capture an...
38.79
110
0.659964
501
3,879
4.922156
0.295409
0.047445
0.042579
0.065288
0.211679
0.121249
0.121249
0.121249
0.121249
0.052311
0
0.001323
0.220418
3,879
99
111
39.181818
0.814153
0.198763
0
0.149254
1
0
0.127255
0
0
0
0
0
0
1
0.044776
false
0
0.044776
0
0.119403
0.074627
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
b2011bbf49cc2c75ee7744b829f3669d32ac577f
4,439
py
Python
src/collections.py
khelsabeck/crimtools_22
59eeab87651fc185084dd39efae3d515b2a1ff0a
[ "MIT" ]
null
null
null
src/collections.py
khelsabeck/crimtools_22
59eeab87651fc185084dd39efae3d515b2a1ff0a
[ "MIT" ]
null
null
null
src/collections.py
khelsabeck/crimtools_22
59eeab87651fc185084dd39efae3d515b2a1ff0a
[ "MIT" ]
null
null
null
''' file convictiondate.py author Keith Helsabeck These are the collections (for a D's pending charges and crim record). NB: a D can be charged more than once with crimes/charges having identical data. IE: John Doe is charged with two counts of larceny on the same date from the same incident, or Jane Doe is ch...
37.618644
72
0.674927
533
4,439
4.93621
0.313321
0.050171
0.028506
0.018244
0.171798
0.154314
0.13607
0.068415
0.040289
0.040289
0
0
0.266276
4,439
118
73
37.618644
0.807799
0.553954
0
0.093023
0
0
0.041096
0
0
0
0
0
0
1
0.209302
false
0
0.069767
0
0.348837
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
b204ccf9405eeb6df66e3fdba56eb34512a8301f
459
py
Python
source/demo-app-config/setup.py
awslabs/real-time-analytics-spark-streaming
5473763dd209c4ba3b8d4fee48800be5e97a1524
[ "Apache-2.0" ]
28
2017-05-12T20:27:14.000Z
2021-10-06T23:26:08.000Z
source/demo-app-config/setup.py
aws-solutions/real-time-analytics-spark-streaming
5473763dd209c4ba3b8d4fee48800be5e97a1524
[ "Apache-2.0" ]
6
2019-06-27T20:16:13.000Z
2020-07-14T19:55:47.000Z
source/demo-app-config/setup.py
awslabs/real-time-analytics-spark-streaming
5473763dd209c4ba3b8d4fee48800be5e97a1524
[ "Apache-2.0" ]
20
2017-05-16T00:39:05.000Z
2021-09-22T14:45:45.000Z
# coding: utf-8 from setuptools import setup, find_packages setup( name='demo_app_config', version='1.1', description='AWS Solution Helper Custom Resource', author='AWS Solutions Development', license='ASL', zip_safe=False, packages=['demo_app_config'], package_dir={'demo_app_config': ...
21.857143
54
0.631808
53
459
5.283019
0.811321
0.075
0.139286
0
0
0
0
0
0
0
0
0.02521
0.222222
459
20
55
22.95
0.759104
0.028322
0
0.117647
0
0
0.371622
0
0
0
0
0
0
1
0
true
0
0.058824
0
0.058824
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
b747dbd2c2369a6c24d6475f101c0a4399e0cb76
7,636
py
Python
models.py
apoorvkhurasia/texpredict
abadbb1feca1fc970c1180641aaa00a268bb5692
[ "BSD-3-Clause" ]
null
null
null
models.py
apoorvkhurasia/texpredict
abadbb1feca1fc970c1180641aaa00a268bb5692
[ "BSD-3-Clause" ]
null
null
null
models.py
apoorvkhurasia/texpredict
abadbb1feca1fc970c1180641aaa00a268bb5692
[ "BSD-3-Clause" ]
null
null
null
import os import shutil from abc import ABC, abstractmethod from typing import List import numpy as np from PIL.Image import Image from joblib import dump, load from sklearn.neighbors import KNeighborsClassifier from sklearn.neural_network import MLPClassifier from sklearn.preprocessing import StandardScaler import f...
38.565657
80
0.65021
965
7,636
4.977202
0.173057
0.036644
0.043723
0.023319
0.688528
0.680616
0.657298
0.657298
0.645846
0.618572
0
0.001774
0.261917
7,636
197
81
38.761421
0.850426
0.128078
0
0.632353
0
0
0.06935
0
0
0
0
0
0
1
0.132353
false
0.036765
0.095588
0
0.272059
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b74d695604091a7715f47dfd2b06c91c90f77198
690
py
Python
feincms/content/file/models.py
duointeractive/feincms
29b6bc197e854ec69bfb9a4923f029803c8d8f50
[ "BSD-3-Clause" ]
null
null
null
feincms/content/file/models.py
duointeractive/feincms
29b6bc197e854ec69bfb9a4923f029803c8d8f50
[ "BSD-3-Clause" ]
null
null
null
feincms/content/file/models.py
duointeractive/feincms
29b6bc197e854ec69bfb9a4923f029803c8d8f50
[ "BSD-3-Clause" ]
1
2020-06-27T11:12:21.000Z
2020-06-27T11:12:21.000Z
from django.db import models from django.template.loader import render_to_string from django.utils.translation import ugettext_lazy as _ class FileContent(models.Model): # You should probably use `feincms.content.medialibrary.models.MediaFileContent` # instead. title = models.CharField(max_length=200) ...
28.75
84
0.666667
79
690
5.64557
0.632911
0.067265
0.06278
0
0
0
0
0
0
0
0
0.005576
0.22029
690
23
85
30
0.82342
0.126087
0
0
0
0
0.126878
0.041736
0
0
0
0
0
1
0.066667
false
0
0.2
0.066667
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
b74e295807b9ec4999e102ca755e76c69650b41a
1,043
py
Python
test/transform/test_numeric.py
marrow/schema
e2b16ec45329a646156388936c2e779ddcd8fa77
[ "MIT" ]
3
2016-09-03T07:00:50.000Z
2021-06-19T18:52:56.000Z
test/transform/test_numeric.py
marrow/schema
e2b16ec45329a646156388936c2e779ddcd8fa77
[ "MIT" ]
6
2015-01-23T19:32:04.000Z
2019-10-23T15:36:48.000Z
test/transform/test_numeric.py
marrow/schema
e2b16ec45329a646156388936c2e779ddcd8fa77
[ "MIT" ]
2
2015-11-13T20:02:17.000Z
2018-01-30T12:01:47.000Z
from marrow.schema.testing import TransformTest from marrow.schema.transform.type import Integer, integer, Decimal, decimal, Number, number INTS = ('1', '5', '-27') FLOTS = ('1.5', '-27.0', '0.0', '-0.0') INV = ('a', 'fourty two', '0x27') class TestIntegerNative(TransformTest): transform = integer.native valid =...
24.833333
91
0.701822
148
1,043
4.945946
0.263514
0.043716
0.054645
0.076503
0.338798
0.338798
0.338798
0.338798
0.275956
0.275956
0
0.018141
0.154362
1,043
41
92
25.439024
0.811791
0
0
0.115385
0
0
0.033557
0
0
0
0.003835
0
0
1
0
false
0
0.076923
0
0.884615
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
b75251f5ab84b2fccf3a05c33fc6fef8d63d3806
20,890
py
Python
staticconf/config.py
tzhu-yelp/PyStaticConfiguration
229733270bc0dc0d9690ba850dbfb470e535c212
[ "Apache-2.0" ]
38
2015-01-02T00:56:27.000Z
2021-10-01T03:15:06.000Z
staticconf/config.py
tzhu-yelp/PyStaticConfiguration
229733270bc0dc0d9690ba850dbfb470e535c212
[ "Apache-2.0" ]
40
2015-01-20T22:04:01.000Z
2021-06-29T22:25:34.000Z
staticconf/config.py
tzhu-yelp/PyStaticConfiguration
229733270bc0dc0d9690ba850dbfb470e535c212
[ "Apache-2.0" ]
26
2015-02-12T08:09:21.000Z
2021-08-18T23:02:51.000Z
""" Store configuration in :class:`ConfigNamespace` objects and provide tools for reloading, and displaying help messages. Configuration Reloading ----------------------- Configuration reloading is supported using a :class:`ConfigFacade`, which composes a :class:`ConfigurationWatcher` and a :class:`ReloadCallbackCha...
33.264331
85
0.657061
2,536
20,890
5.256703
0.167192
0.009602
0.008251
0.009977
0.180257
0.134123
0.106969
0.078239
0.049734
0.049734
0
0.000714
0.262326
20,890
627
86
33.317384
0.864374
0.411106
0
0.180887
0
0
0.021551
0
0
0
0
0
0
1
0.238908
false
0.006826
0.027304
0.05802
0.453925
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
b7558283d74e67a02aeb0d868a11b9c9003be14d
390
py
Python
src-django/api/migrations/0020_remove_element_numeric.py
protocolbuilder/sana.protocol_builder
e84e90202d604617899f0c4e7b34a93755d13171
[ "BSD-3-Clause" ]
6
2015-06-05T22:41:10.000Z
2017-09-06T07:08:09.000Z
src-django/api/migrations/0020_remove_element_numeric.py
protocolbuilder/sana.protocol_builder
e84e90202d604617899f0c4e7b34a93755d13171
[ "BSD-3-Clause" ]
406
2015-01-11T05:50:07.000Z
2018-01-05T23:01:04.000Z
src-django/api/migrations/0020_remove_element_numeric.py
m-socha/sana.protocol_builder
7b054bbab5ed981bd7bbc357e9657024f3e380e7
[ "BSD-3-Clause" ]
9
2015-10-12T23:39:31.000Z
2018-07-11T20:59:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.3 on 2016-03-08 05:27 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0019_auto_20160308_0349'), ] operations = [ migrations.RemoveField( ...
19.5
47
0.610256
43
390
5.325581
0.837209
0
0
0
0
0
0
0
0
0
0
0.112676
0.271795
390
19
48
20.526316
0.693662
0.171795
0
0
1
0
0.125
0.071875
0
0
0
0
0
1
0
false
0
0.166667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b755f7087dc7bfe58e8f8041d0d72e4fd27e05b4
353
py
Python
Chapter 08 - Reading and Writing Files/shelveDemo.py
nicolabc/Automate-The-Boring-Stuff
947235315bcfd26e0fd4dc3d843e11d256cf012c
[ "MIT" ]
null
null
null
Chapter 08 - Reading and Writing Files/shelveDemo.py
nicolabc/Automate-The-Boring-Stuff
947235315bcfd26e0fd4dc3d843e11d256cf012c
[ "MIT" ]
null
null
null
Chapter 08 - Reading and Writing Files/shelveDemo.py
nicolabc/Automate-The-Boring-Stuff
947235315bcfd26e0fd4dc3d843e11d256cf012c
[ "MIT" ]
null
null
null
import os,sys,shelve if __name__ == '__main__': shelfFile = shelve.open('mydata') cats = ['Zophie', 'Pooka', 'Simon'] shelfFile['cats'] = cats shelfFile.close() shelfFile = shelve.open('mydata') print(shelfFile['cats']) print(list(shelfFile.keys())) print(list(shelfFile.values())) ...
23.533333
39
0.626062
39
353
5.461538
0.512821
0.140845
0.178404
0.234742
0
0
0
0
0
0
0
0
0.192635
353
15
40
23.533333
0.747368
0
0
0.333333
0
0
0.124294
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.25
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
b7565cfd64d43de2cc1d7483222c16308022dcbe
8,706
py
Python
src_whole/AHDE_process_data.py
david-yoon/detecting-incongruity
2e121fdba0da3a6a0c63df0c46a101a789fe7565
[ "MIT" ]
36
2018-11-25T21:43:10.000Z
2022-03-13T10:47:50.000Z
src_whole/AHDE_process_data.py
david-yoon/detecting-incongruity
2e121fdba0da3a6a0c63df0c46a101a789fe7565
[ "MIT" ]
1
2019-06-16T07:45:47.000Z
2019-10-14T06:00:29.000Z
src_whole/AHDE_process_data.py
david-yoon/detecting-incongruity
2e121fdba0da3a6a0c63df0c46a101a789fe7565
[ "MIT" ]
5
2018-12-09T06:40:19.000Z
2019-10-17T22:07:58.000Z
# coding: utf-8 """ what : AHDE data process """ import numpy as np import random import pickle from tqdm import tqdm class ProcessData: def __init__(self, is_test, params, data_path='../data/', evaluation_file_name=''): print 'IS_TEST = ' + str(is_test) self.params = ...
37.205128
130
0.546175
1,070
8,706
4.173832
0.126168
0.044783
0.0618
0.060905
0.355575
0.314151
0.314151
0.277429
0.265114
0.256382
0
0.005221
0.339995
8,706
233
131
37.364807
0.772015
0.030094
0
0.169355
0
0
0.042215
0
0
0
0
0
0
0
null
null
0
0.032258
null
null
0.080645
0
0
0
null
0
0
0
0
0
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
b757d00bad1ee94ece255d149ff738aaa23aa9cd
4,987
py
Python
designate/backend/base.py
NeCTAR-RC/designate
99874f5c608954df9c988740e3cbf0d3b6b7a269
[ "Apache-2.0" ]
1
2015-02-26T03:23:13.000Z
2015-02-26T03:23:13.000Z
designate/backend/base.py
NeCTAR-RC/designate
99874f5c608954df9c988740e3cbf0d3b6b7a269
[ "Apache-2.0" ]
null
null
null
designate/backend/base.py
NeCTAR-RC/designate
99874f5c608954df9c988740e3cbf0d3b6b7a269
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 Managed I.T. # # Author: Kiall Mac Innes <kiall@managedit.ie> # # 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 r...
32.809211
79
0.637858
600
4,987
5.215
0.256667
0.063279
0.07031
0.049856
0.418664
0.364653
0.167466
0.153404
0.153404
0.153404
0
0.002191
0.267897
4,987
151
80
33.02649
0.854834
0.328454
0
0.328571
0
0
0.08481
0
0
0
0
0
0
1
0.3
false
0.028571
0.071429
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b757e835efb724e0ed40f52f1c0508ac66719ebf
1,814
py
Python
python/find_kth_element.py
shub0/leetcode
8221d10f201d001abcb15b27c9cf4b8cd5060f1f
[ "BSD-3-Clause" ]
null
null
null
python/find_kth_element.py
shub0/leetcode
8221d10f201d001abcb15b27c9cf4b8cd5060f1f
[ "BSD-3-Clause" ]
null
null
null
python/find_kth_element.py
shub0/leetcode
8221d10f201d001abcb15b27c9cf4b8cd5060f1f
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/python ''' Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For example, Given [3,2,1,5,6,4] and k = 2, return 5. Note: You may assume k is always valid, 1 <= k <= array's length. ''' class Solution: # @para...
29.258065
141
0.535832
234
1,814
4.059829
0.380342
0.105263
0.073684
0.075789
0.118947
0.067368
0.067368
0
0
0
0
0.017227
0.359978
1,814
61
142
29.737705
0.801034
0.063396
0
0
0
0
0.043601
0
0
0
0
0
0
0
null
null
0
0.04878
null
null
0.04878
0
0
0
null
0
0
0
0
0
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
b75e997f9de5bc024cde6528f4a957fcd8bb982d
3,001
py
Python
fn_proofpoint_trap/setup.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
65
2017-12-04T13:58:32.000Z
2022-03-24T18:33:17.000Z
fn_proofpoint_trap/setup.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
48
2018-03-02T19:17:14.000Z
2022-03-09T22:00:38.000Z
fn_proofpoint_trap/setup.py
nickpartner-goahead/resilient-community-apps
097c0dbefddbd221b31149d82af9809420498134
[ "MIT" ]
95
2018-01-11T16:23:39.000Z
2022-03-21T11:34:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages import glob import ntpath def get_module_name(module_path): """ Return the module name of the module path """ return ntpath.split(module_path)[1].split(".")[0] def snake_to_camel(word): """ Convert a wor...
50.864407
156
0.717428
327
3,001
6.360856
0.449541
0.121154
0.123077
0.075
0.124038
0.124038
0.124038
0.043269
0
0
0
0.007854
0.193935
3,001
59
157
50.864407
0.852005
0.042652
0
0.06383
0
0
0.671358
0.38107
0
0
0
0
0
1
0.042553
false
0
0.06383
0
0.148936
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
b763f9bac4dcc696bc6889e448534b66e0dd4412
43,075
py
Python
LoMeshApp.py
LoMesh-ORG/LoMesh-PCUI
c6ab74009e847513080c736e1f86358c329c857a
[ "Apache-2.0" ]
null
null
null
LoMeshApp.py
LoMesh-ORG/LoMesh-PCUI
c6ab74009e847513080c736e1f86358c329c857a
[ "Apache-2.0" ]
2
2020-09-08T03:15:33.000Z
2020-09-08T03:57:36.000Z
LoMeshApp.py
LoMesh-ORG/LoMesh-PCUI
c6ab74009e847513080c736e1f86358c329c857a
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # # GUI module generated by PAGE version 5.2 # in conjunction with Tcl version 8.6 # Dec 11, 2021 09:19:08 PM EST platform: Windows NT import sys try: import Tkinter as tk except ImportError: import tkinter as tk try: import ttk py3 = False except ...
52.78799
96
0.701637
4,718
43,075
6.281899
0.082238
0.044537
0.020582
0.062622
0.51876
0.161043
0.078008
0.035664
0.031041
0.017275
0
0.065289
0.167591
43,075
815
97
52.852761
0.761295
0.013001
0
0.038621
1
0
0.079454
0
0
0
0
0
0
1
0.005517
false
0
0.011034
0
0.01931
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
b76a7d6f934bae2062a7e1c9807caddec9b6983a
446
py
Python
demo/demo/doctype/conference_room/conference_room.py
SunilBGovind/frappe_demo_dev
df86f151c8ff43db7c0a6c7981e9247893bdc309
[ "MIT" ]
null
null
null
demo/demo/doctype/conference_room/conference_room.py
SunilBGovind/frappe_demo_dev
df86f151c8ff43db7c0a6c7981e9247893bdc309
[ "MIT" ]
null
null
null
demo/demo/doctype/conference_room/conference_room.py
SunilBGovind/frappe_demo_dev
df86f151c8ff43db7c0a6c7981e9247893bdc309
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2019, Sunil Govind and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class ConferenceRoom(Document): def before_save(self): self.room_capacity = "Seating Capac...
34.307692
70
0.775785
59
446
5.677966
0.610169
0.179104
0.071642
0.119403
0.340299
0.340299
0.340299
0.340299
0.340299
0.340299
0
0.01269
0.116592
446
13
71
34.307692
0.837563
0.298206
0
0.285714
0
0
0.110032
0
0
0
0
0
0
1
0.285714
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
1
0
0
0
0
0
0
0
1
b76f7be109fff4e835d383477520132632d7f0a9
1,384
py
Python
src/rust/iced-x86-py/src/iced_x86/OpAccess.py
clayne/iced
dcd3db725b1137fec4d2bda9b17587cead49bf4d
[ "MIT" ]
1,018
2018-09-07T20:12:43.000Z
2021-01-17T18:41:10.000Z
src/rust/iced-x86-py/src/iced_x86/OpAccess.py
clayne/iced
dcd3db725b1137fec4d2bda9b17587cead49bf4d
[ "MIT" ]
127
2018-09-07T19:33:48.000Z
2021-01-17T22:20:33.000Z
src/rust/iced-x86-py/src/iced_x86/OpAccess.py
clayne/iced
dcd3db725b1137fec4d2bda9b17587cead49bf4d
[ "MIT" ]
146
2018-09-09T12:38:30.000Z
2021-01-18T23:37:11.000Z
# SPDX-License-Identifier: MIT # Copyright (C) 2018-present iced project and contributors # ⚠️This file was generated by GENERATOR!🦹‍♂️ # pylint: disable=invalid-name # pylint: disable=line-too-long # pylint: disable=too-many-lines """ Operand, register and memory access """ import typing if typing.TYPE_CHECKING: ...
26.615385
348
0.724711
207
1,384
4.821256
0.483092
0.08016
0.078156
0.09018
0.118236
0.078156
0.054108
0
0
0
0
0.012931
0.16185
1,384
51
349
27.137255
0.842241
0.260116
0
0
1
0
0
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
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
b7704af74073f523cd85e48f6f223d348ea3b917
8,739
py
Python
src/emulator/emulator.py
Nicholas1126/hydra
da6dcc781e30ffe694088078ac206209527e9604
[ "MIT" ]
1
2020-11-18T16:13:04.000Z
2020-11-18T16:13:04.000Z
src/emulator/emulator.py
Nicholas1126/hydra
da6dcc781e30ffe694088078ac206209527e9604
[ "MIT" ]
null
null
null
src/emulator/emulator.py
Nicholas1126/hydra
da6dcc781e30ffe694088078ac206209527e9604
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os import sys import tempfile import shutil import errno import argparse import subprocess import copy import binascii import hashlib import common as c import syscalls import utils import checker def emulate(syscall, argv, ret): if syscall == "SYS_mkdir": ...
29.325503
85
0.560362
1,082
8,739
4.397412
0.24122
0.052543
0.070618
0.083228
0.147751
0.088272
0.051702
0.025641
0.025641
0.025641
0
0.008298
0.296716
8,739
297
86
29.424242
0.765864
0.057673
0
0.165992
0
0
0.107704
0.005355
0.008097
0
0
0
0
0
null
null
0
0.060729
null
null
0.08502
0
0
0
null
0
0
0
0
0
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
b7778c837e913bfc0395f6c7cdce5afecb7536d4
1,032
py
Python
unical_accounts/migrations/0004_auto_20190815_2356.py
omizrahi99/uniAuth
be33d3be10f82e955deffe7ad4b34eeafca4195a
[ "Apache-2.0" ]
null
null
null
unical_accounts/migrations/0004_auto_20190815_2356.py
omizrahi99/uniAuth
be33d3be10f82e955deffe7ad4b34eeafca4195a
[ "Apache-2.0" ]
null
null
null
unical_accounts/migrations/0004_auto_20190815_2356.py
omizrahi99/uniAuth
be33d3be10f82e955deffe7ad4b34eeafca4195a
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.4 on 2019-08-15 23:56 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('unical_accounts', '0003_auto_20190730_1101'), ] operations = [ migrations....
35.586207
136
0.638566
115
1,032
5.573913
0.53913
0.037442
0.043682
0.068643
0.190328
0.190328
0.190328
0.190328
0.190328
0.190328
0
0.047194
0.24031
1,032
28
137
36.857143
0.770408
0.043605
0
0.090909
1
0
0.156345
0.02335
0
0
0
0
0
1
0
false
0
0.136364
0
0.272727
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
b7784a4af60cbfce753a9b0fbea504c0beb8c465
1,653
py
Python
gouda/strategies/resize.py
NaturalHistoryMuseum/gouda
d748522dbf80c26f71e3e301ef4883b2f8d1f2a8
[ "MIT" ]
23
2015-12-09T20:12:10.000Z
2021-10-01T16:39:36.000Z
gouda/strategies/resize.py
NaturalHistoryMuseum/gouda
d748522dbf80c26f71e3e301ef4883b2f8d1f2a8
[ "MIT" ]
27
2016-03-01T07:59:41.000Z
2016-12-21T09:24:03.000Z
gouda/strategies/resize.py
NaturalHistoryMuseum/gouda
d748522dbf80c26f71e3e301ef4883b2f8d1f2a8
[ "MIT" ]
3
2015-07-22T18:12:17.000Z
2019-11-29T10:43:57.000Z
import cv2 import numpy as np from gouda.util import debug_print def _unsharpmask(img): img = np.array(img, copy=True) blur = cv2.GaussianBlur(img, (0, 0), 10) return cv2.addWeighted(img, 3, blur, -2, 0) def resize(img, engine, minimum_pixels=10): # Entire image at different fractions of original ...
33.734694
81
0.563218
205
1,653
4.492683
0.463415
0.084691
0
0
0
0
0
0
0
0
0
0.033241
0.344828
1,653
48
82
34.4375
0.817175
0.201452
0
0.0625
0
0
0.064024
0
0
0
0
0.020833
0
1
0.0625
false
0
0.09375
0
0.25
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
b77d09e3e2ed9cb34d407993e08f87f1467bd705
5,039
py
Python
simple_messaging_api.py
audacious-software/-Simple-Messaging-Django-Twilio
475fbb04740c126e23bfcc2934b1447627979c05
[ "Apache-2.0" ]
null
null
null
simple_messaging_api.py
audacious-software/-Simple-Messaging-Django-Twilio
475fbb04740c126e23bfcc2934b1447627979c05
[ "Apache-2.0" ]
null
null
null
simple_messaging_api.py
audacious-software/-Simple-Messaging-Django-Twilio
475fbb04740c126e23bfcc2934b1447627979c05
[ "Apache-2.0" ]
null
null
null
# pylint: disable=line-too-long, no-member import importlib import json import mimetypes import time from io import BytesIO import requests from twilio.rest import Client from django.conf import settings from django.core import files from django.http import HttpResponse from django.utils import timezone from simp...
33.370861
207
0.614011
499
5,039
5.985972
0.292585
0.060261
0.0462
0.058252
0.283227
0.27854
0.213257
0.213257
0.213257
0.170405
0
0.00285
0.303632
5,039
150
208
33.593333
0.84839
0.029966
0
0.257426
0
0
0.063882
0.026618
0
0
0
0
0
1
0.019802
false
0.059406
0.178218
0
0.227723
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
b77d24ddf79e589843301d01581edfa76af51f6b
784
py
Python
logthis.py
hiteshd/Service-Specific-Intrusion-Detection
f7ff7725ca972a13e760f37b7bbcbe67fe507b83
[ "Apache-2.0" ]
4
2016-07-06T09:57:15.000Z
2018-02-19T01:37:09.000Z
logthis.py
hiteshd/Service-Specific-Intrusion-Detection
f7ff7725ca972a13e760f37b7bbcbe67fe507b83
[ "Apache-2.0" ]
null
null
null
logthis.py
hiteshd/Service-Specific-Intrusion-Detection
f7ff7725ca972a13e760f37b7bbcbe67fe507b83
[ "Apache-2.0" ]
null
null
null
#!/bin/python import datetime def detected(pattern,msg): foo=open("DETECTIONS.LOG","a") logthis=str(datetime.datetime.today())+" | "+str(pattern)+" | "+str(msg)+"\n" foo.write(logthis) foo.close() def log(coming_from,msg): foo=open("LOG_IDS_TOTAL.LOG","a") logthis=str(datetime.datetime.today())+" | "+str(comin...
28
165
0.594388
103
784
4.446602
0.291262
0.061135
0.09607
0.209607
0.606987
0.606987
0.554585
0.495633
0.144105
0
0
0
0.079082
784
27
166
29.037037
0.634349
0.015306
0
0.47619
0
0
0.2607
0.140078
0
0
0
0
0
1
0.190476
false
0
0.047619
0
0.238095
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
b7803fb9a91163197f5755278eaee67b3985926f
342
py
Python
Vault/setup.py
vikasmunshi/python-scripts
146872364c035e5a451af3af826fc3f221c7379e
[ "MIT" ]
null
null
null
Vault/setup.py
vikasmunshi/python-scripts
146872364c035e5a451af3af826fc3f221c7379e
[ "MIT" ]
null
null
null
Vault/setup.py
vikasmunshi/python-scripts
146872364c035e5a451af3af826fc3f221c7379e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # vault/setup.py: # from setuptools import setup setup( name="vault", version="0.0.1", author="Vikas Munshi", author_email="vikas.munshi@gmail.com", description="secured secrets", packages=['vault', ], install_requires=['pycryptodome>=3.6.1'...
20.117647
62
0.625731
45
342
4.711111
0.777778
0.103774
0
0
0
0
0
0
0
0
0
0.038732
0.169591
342
16
63
21.375
0.707746
0.175439
0
0
0
0
0.350181
0.079422
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
b7821186c2f30d5acf69d247bf5ff8d7c5c6cc46
22,380
py
Python
alphabot-ppl/follow_path.py
Dspatharakis/alphabot-ppl
1f234548bf3fc7d447663f94cfa49591724563b0
[ "MIT" ]
null
null
null
alphabot-ppl/follow_path.py
Dspatharakis/alphabot-ppl
1f234548bf3fc7d447663f94cfa49591724563b0
[ "MIT" ]
null
null
null
alphabot-ppl/follow_path.py
Dspatharakis/alphabot-ppl
1f234548bf3fc7d447663f94cfa49591724563b0
[ "MIT" ]
null
null
null
from grid_nav import * import os import subprocess from self_locator import * from micro_controller import * import yaml import math import json import time import signal import sys import requests import numpy as numpy import csv CONFIG = yaml.load(open("../config.yaml")) INITIAL_TIME = time.time() # Example Diagr...
42.709924
338
0.553485
3,346
22,380
3.59205
0.138075
0.007987
0.012979
0.032449
0.435727
0.395291
0.361844
0.326317
0.301939
0.282303
0
0.050303
0.246738
22,380
523
339
42.791587
0.662653
0.175112
0
0.299233
0
0.002558
0.163292
0.041866
0
0
0
0.001912
0
0
null
null
0
0.035806
null
null
0.150895
0
0
0
null
0
0
0
0
0
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
b78fde2e84d08045c47a9849935177e98d1ac7db
1,509
py
Python
decisiontrees/utils.py
Nicusor97/DecisionTree
bafe4b90289d598dec1bff60dbbeb8e24c69f293
[ "MIT" ]
null
null
null
decisiontrees/utils.py
Nicusor97/DecisionTree
bafe4b90289d598dec1bff60dbbeb8e24c69f293
[ "MIT" ]
null
null
null
decisiontrees/utils.py
Nicusor97/DecisionTree
bafe4b90289d598dec1bff60dbbeb8e24c69f293
[ "MIT" ]
null
null
null
"""Helpers that will be used in the project""" import csv def convertTypes(value): """Helper to convert the type into float or int. Args: value(str): The value that will be converted to float or int. Returns: The converted value. """ value = value.strip() try: r...
23.952381
85
0.629556
204
1,509
4.627451
0.367647
0.029661
0.033898
0.034958
0.120763
0.120763
0
0
0
0
0
0.006487
0.284957
1,509
62
86
24.33871
0.868397
0
0
0
0
0
0.002962
0
0
0
0
0
0
0
null
null
0
0.033333
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
b79bf0d307e1277565d15c63cc29b7efb5871f73
2,062
py
Python
task/tagger/distill/HintDistill.py
ssunqf/nlp-exp
f4ebc77d2f7b85b95a12d2cb47196a950c8a1a1f
[ "Apache-2.0" ]
4
2019-11-07T12:13:53.000Z
2019-12-16T17:43:57.000Z
task/tagger/distill/HintDistill.py
ssunqf/nlp-exp
f4ebc77d2f7b85b95a12d2cb47196a950c8a1a1f
[ "Apache-2.0" ]
null
null
null
task/tagger/distill/HintDistill.py
ssunqf/nlp-exp
f4ebc77d2f7b85b95a12d2cb47196a950c8a1a1f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3.6 # -*- coding: utf-8 -*- # knowledge distill # https://github.com/dkozlov/awesome-knowledge-distillation from typing import List import torch import torch.nn as nn from torch.autograd import Variable from ..train.model import Tagger from model.nlp.task.task import Task, Loader, TaskConfig fro...
26.101266
98
0.679922
276
2,062
4.822464
0.427536
0.030053
0.045079
0.06311
0.037566
0
0
0
0
0
0
0.02795
0.219205
2,062
78
99
26.435897
0.798758
0.066925
0
0
0
0
0.022941
0
0
0
0
0
0
1
0.06383
false
0
0.148936
0
0.680851
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
b79c51e10e3ce86c7c468baadcc7e3e700487ab4
971
py
Python
src/injecta/config/ConfigLoader.py
pyfony/injecta
3262fe53f6d2d7b8dfa372bfa628f1ed02f4479f
[ "MIT" ]
3
2021-09-27T12:55:00.000Z
2022-01-31T19:13:23.000Z
src/injecta/config/ConfigLoader.py
pyfony/injecta
3262fe53f6d2d7b8dfa372bfa628f1ed02f4479f
[ "MIT" ]
null
null
null
src/injecta/config/ConfigLoader.py
pyfony/injecta
3262fe53f6d2d7b8dfa372bfa628f1ed02f4479f
[ "MIT" ]
1
2021-03-04T09:12:05.000Z
2021-03-04T09:12:05.000Z
import yaml from pathlib import Path class TaggedServices(yaml.YAMLObject): yaml_loader = yaml.SafeLoader yaml_tag = "!tagged" def __init__(self, val): self.val = val @classmethod def from_yaml(cls, loader, node): return cls(node.value) class TaggedAliasedService(yaml.YAMLObjec...
24.275
68
0.652935
128
971
4.710938
0.398438
0.066335
0.059701
0.079602
0.344942
0.344942
0.344942
0.344942
0.344942
0.175788
0
0.004071
0.240989
971
39
69
24.897436
0.814111
0
0
0.222222
0
0
0.046344
0
0
0
0
0
0
1
0.185185
false
0
0.074074
0.074074
0.62963
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
b79c5c30624a19293fd4e9890fc9d5209ef1703a
8,082
py
Python
superbed/superanno.py
menghaowei/bio-playground
c9d79b46750eee5f16e86ee6aa183c02681d86e7
[ "MIT" ]
124
2015-01-09T16:55:03.000Z
2022-03-24T16:59:20.000Z
superbed/superanno.py
Nextomics/bio-playground
35787a489667e2ef2e3309e7fe56308d8709a924
[ "MIT" ]
16
2016-08-12T05:35:00.000Z
2021-11-16T03:38:35.000Z
superbed/superanno.py
brentp/bio-playground
1982a222328bca7b675dedaa3887600a7d3dad74
[ "MIT" ]
105
2015-01-21T00:45:13.000Z
2022-03-01T02:05:43.000Z
""" %prog [options] files """ import optparse import os.path as op import os import sys from pybedtools import BedTool import collections from toolshed import reader def simplify_bed(fbed, has_header): """ create a bed with no header and 6 columns. retain strand info. """ line_gen = reader(fbed...
32.457831
82
0.551844
1,115
8,082
3.918386
0.21435
0.0103
0.018311
0.0206
0.150378
0.123827
0.101625
0.088808
0.041199
0
0
0.007772
0.299555
8,082
248
83
32.58871
0.763999
0.050359
0
0.164021
0
0
0.112663
0
0
0
0
0.008065
0.010582
0
null
null
0
0.042328
null
null
0.010582
0
0
0
null
0
0
0
0
0
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
b79c756ba56213af9c0b39524dfed27de0a3be7c
333
py
Python
onlineshopping/myshopping/migrations/0005_remove_userprofile_dob.py
SarahMohamedAbdAlkader/DjangoEcommerceProject
edfe3071e5ee301702ff8e55a513efbb8feadab8
[ "MIT" ]
1
2021-01-27T03:20:45.000Z
2021-01-27T03:20:45.000Z
onlineshopping/myshopping/migrations/0005_remove_userprofile_dob.py
SarahMohamedAbdAlkader/DjangoEcommerceProject
edfe3071e5ee301702ff8e55a513efbb8feadab8
[ "MIT" ]
null
null
null
onlineshopping/myshopping/migrations/0005_remove_userprofile_dob.py
SarahMohamedAbdAlkader/DjangoEcommerceProject
edfe3071e5ee301702ff8e55a513efbb8feadab8
[ "MIT" ]
1
2020-03-24T21:28:31.000Z
2020-03-24T21:28:31.000Z
# Generated by Django 3.0.3 on 2020-03-20 16:00 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('myshopping', '0004_auto_20200320_1549'), ] operations = [ migrations.RemoveField( model_name='userprofile', name='DOB', ...
18.5
50
0.597598
35
333
5.571429
0.828571
0
0
0
0
0
0
0
0
0
0
0.131356
0.291291
333
17
51
19.588235
0.694915
0.135135
0
0
1
0
0.164336
0.08042
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b7a12645d8e3229ad897d9358d24ad8870c4b5a8
2,520
py
Python
Protocols/migrations/0001_initial.py
jackyjingyi/dapsa
40036143e593b875522c666700c9c6322b38c498
[ "MIT" ]
3
2019-06-17T11:39:14.000Z
2019-07-02T08:45:09.000Z
Protocols/migrations/0001_initial.py
jackyjingyi/dapsa
40036143e593b875522c666700c9c6322b38c498
[ "MIT" ]
null
null
null
Protocols/migrations/0001_initial.py
jackyjingyi/dapsa
40036143e593b875522c666700c9c6322b38c498
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-06-14 15:59 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Protocol', fields=[ ...
50.4
151
0.618254
259
2,520
5.830116
0.34749
0.101987
0.029139
0.037748
0.135099
0.104636
0.104636
0.104636
0.104636
0.104636
0
0.017745
0.239683
2,520
49
152
51.428571
0.770355
0.017857
0
0.261905
1
0
0.190861
0.011727
0
0
0
0
0
1
0
false
0
0.047619
0
0.142857
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
b7ae214f9e410f8ad0aa45c4d7fbb15d6e413536
317
py
Python
experiments/nmt/test/diff.py
ihsgnef/GroundHog
8aa8fefead5b8dc93546df8666f2b83293760294
[ "BSD-3-Clause" ]
565
2015-01-01T05:44:48.000Z
2022-03-18T18:24:36.000Z
experiments/nmt/test/diff.py
janchorowski/GroundHog
68d01c90becbf31a487be18985defb0c95f2b522
[ "BSD-3-Clause" ]
32
2015-01-29T18:36:10.000Z
2018-02-27T10:37:04.000Z
experiments/nmt/test/diff.py
janchorowski/GroundHog
68d01c90becbf31a487be18985defb0c95f2b522
[ "BSD-3-Clause" ]
265
2015-01-02T05:49:40.000Z
2021-12-24T06:21:26.000Z
#!/usr/bin/env python import sys f1 = open(sys.argv[1]) f2 = open(sys.argv[2]) res = 0 for l1, l2 in zip(f1, f2): v1 = float(l1.strip()) v2 = float(l2.strip()) rel_diff = abs(v1 - v2) / abs(v1) if rel_diff > 10 ** -4: print "Difference: {} vs {}".format(v1, v2) res = 1 sys.exit(res)
21.133333
51
0.548896
56
317
3.071429
0.607143
0.081395
0.127907
0
0
0
0
0
0
0
0
0.09322
0.255521
317
14
52
22.642857
0.635593
0.063091
0
0
0
0
0.067568
0
0
0
0
0
0
0
null
null
0
0.083333
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b7b8b0b26a89640a38dbe24f32aa48dd5ad35f67
735
py
Python
assistant/shopify_sync/migrations/0008_auto_20200910_0449.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
assistant/shopify_sync/migrations/0008_auto_20200910_0449.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
assistant/shopify_sync/migrations/0008_auto_20200910_0449.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-09-10 04:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shopify_sync', '0007_eventstore'), ] operations = [ migrations.AddField( model_name='eventstore', name='error_data', ...
30.625
205
0.601361
75
735
5.786667
0.626667
0.082949
0.105991
0.124424
0.18894
0.18894
0
0
0
0
0
0.036166
0.247619
735
23
206
31.956522
0.748644
0.058503
0
0.352941
1
0
0.215942
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b7bd9bb928f40d15db74b2cc701c34cc1eb0643a
9,854
py
Python
hfcuda/argparser.py
IBM/hf
5245b5e879e1f6a2c17759e0cd3477c6eda945e5
[ "Apache-2.0" ]
1
2021-11-01T12:54:28.000Z
2021-11-01T12:54:28.000Z
hfcuda/argparser.py
IBM/hf
5245b5e879e1f6a2c17759e0cd3477c6eda945e5
[ "Apache-2.0" ]
null
null
null
hfcuda/argparser.py
IBM/hf
5245b5e879e1f6a2c17759e0cd3477c6eda945e5
[ "Apache-2.0" ]
4
2020-06-29T15:20:15.000Z
2022-01-20T18:52:51.000Z
# ====================================== # IBM Corporation (C) 2018 # Nelson Mimura Gonzalez # nmimura@us.ibm.com # ====================================== # ------------------------------------------------------------------------------ # Argument parser for Python. # ---------------------------------------------------...
35.574007
80
0.392328
819
9,854
4.678877
0.161172
0.049322
0.076722
0.031315
0.382046
0.335595
0.318894
0.277923
0.207985
0.186848
0
0.003349
0.333266
9,854
276
81
35.702899
0.579909
0.280597
0
0.40113
0
0
0.068583
0
0
0
0
0
0
0
null
null
0
0.00565
null
null
0.084746
0
0
0
null
0
0
0
0
0
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
b7bea6a57f9957c69215d1174cba94fd44597721
35,174
py
Python
lib/slave/moin.py
dpla/zen
4bd3c3621aa8fa82e22b2514b93a0978a3179771
[ "Apache-2.0" ]
3
2016-01-31T02:55:07.000Z
2022-03-17T17:49:49.000Z
lib/slave/moin.py
dpla/zen
4bd3c3621aa8fa82e22b2514b93a0978a3179771
[ "Apache-2.0" ]
null
null
null
lib/slave/moin.py
dpla/zen
4bd3c3621aa8fa82e22b2514b93a0978a3179771
[ "Apache-2.0" ]
null
null
null
# -*- coding: iso-8859-1 -*- # """ """ #Other ideas: http://textalyser.net/ # https://digitalresearchtools.pbworks.com/w/page/17801708/Text-Analysis-Tools # import cStringIO import hashlib import datetime from gettext import gettext as _ from functools import partial from itertools import islice, dropwhile from ...
44.077694
179
0.657332
4,673
35,174
4.814466
0.155789
0.023469
0.012446
0.01689
0.33363
0.308205
0.274469
0.247933
0.222286
0.19135
0
0.005755
0.224342
35,174
797
180
44.132999
0.818862
0.247655
0
0.175355
0
0.007109
0.111571
0.027297
0
0
0
0.006274
0
0
null
null
0.004739
0.078199
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
b7c1d20c77bad679af60158b5eb70c26c072e83e
17,919
py
Python
client_apis/python/openapi_client/models/role.py
alikins/galaxy-api-swaggerhub
5d6d4070cd6964c6d6217cad6743de89cf4eac24
[ "MIT" ]
null
null
null
client_apis/python/openapi_client/models/role.py
alikins/galaxy-api-swaggerhub
5d6d4070cd6964c6d6217cad6743de89cf4eac24
[ "MIT" ]
3
2020-07-17T10:18:45.000Z
2022-01-22T05:24:05.000Z
client_apis/python/openapi_client/models/role.py
alikins/galaxy-api-swaggerhub
5d6d4070cd6964c6d6217cad6743de89cf4eac24
[ "MIT" ]
null
null
null
# coding: utf-8 """ Galaxy 3.2 API (wip) Galaxy 3.2 API (wip) # noqa: E501 The version of the OpenAPI document: 1.2.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Role(object): """NOTE: This class is auto generated by OpenAPI Genera...
27.273973
376
0.575758
2,180
17,919
4.590826
0.070183
0.070344
0.083933
0.08813
0.528577
0.423761
0.380895
0.263189
0.141487
0.052958
0
0.025091
0.328311
17,919
656
377
27.315549
0.806414
0.33378
0
0.081272
1
0
0.12715
0.00215
0
0
0
0
0
1
0.169611
false
0
0.045936
0
0.321555
0.007067
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
b7c28b864f753906f1be4b62483c1fda1814174a
287
py
Python
answers/answer07.py
sharmas1ddharth/numpy-practise-questions
8c8e63687f6bb32b17744313262efd7425d2314c
[ "MIT" ]
null
null
null
answers/answer07.py
sharmas1ddharth/numpy-practise-questions
8c8e63687f6bb32b17744313262efd7425d2314c
[ "MIT" ]
null
null
null
answers/answer07.py
sharmas1ddharth/numpy-practise-questions
8c8e63687f6bb32b17744313262efd7425d2314c
[ "MIT" ]
null
null
null
import numpy as np arr = np.array([[1, 2, 3], [4, 1, 2], [1, 8, 2]]) sequence_to_count = '1, 2' sequence_count = repr(arr).count(sequence_to_count) print(f"number of times the sequence {sequence_to_count} comes in original array is : {sequence_count}")
28.7
104
0.623693
46
287
3.717391
0.543478
0.035088
0.263158
0
0
0
0
0
0
0
0
0.050459
0.240418
287
10
104
28.7
0.733945
0
0
0
0
0
0.340278
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
b7c52211d36b4eece49ba9302aa3ae6fd3929359
260
py
Python
tree.py
serhii73/PyTricks
cae22a0960a7bf9a39c7fb3227e283c3b86bd05b
[ "MIT" ]
3,271
2015-03-19T11:27:39.000Z
2022-03-19T03:00:37.000Z
tree.py
serhii73/PyTricks
cae22a0960a7bf9a39c7fb3227e283c3b86bd05b
[ "MIT" ]
78
2015-03-19T09:45:09.000Z
2020-12-24T08:47:15.000Z
tree.py
serhii73/PyTricks
cae22a0960a7bf9a39c7fb3227e283c3b86bd05b
[ "MIT" ]
531
2015-03-19T11:12:52.000Z
2022-03-23T15:07:07.000Z
#! /usr/bin/env python3 """ See description here https://gist.github.com/hrldcpr/2012250 """ from collections import defaultdict tree = lambda: defaultdict(tree) users = tree() users['harold']['username'] = 'chopper' users['matt']['password'] = 'hunter2'
17.333333
39
0.7
31
260
5.870968
0.83871
0.164835
0
0
0
0
0
0
0
0
0
0.039301
0.119231
260
14
40
18.571429
0.755459
0.323077
0
0
0
0
0.238095
0
0
0
0
0
0
1
0
false
0.2
0.2
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
0
0
0
0
1
0
0
0
0
0
1
b7cbcbe4d6705d457aa59a61d82a23e7408281a6
10,531
py
Python
py/ext/las_str/SimplexMod.py
LeoRya/py-orbit
340b14b6fd041ed8ec2cc25b0821b85742aabe0c
[ "MIT" ]
17
2018-02-09T23:39:06.000Z
2022-03-04T16:27:04.000Z
py/ext/las_str/SimplexMod.py
LeoRya/py-orbit
340b14b6fd041ed8ec2cc25b0821b85742aabe0c
[ "MIT" ]
22
2017-05-31T19:40:14.000Z
2021-09-24T22:07:47.000Z
py/ext/las_str/SimplexMod.py
LeoRya/py-orbit
340b14b6fd041ed8ec2cc25b0821b85742aabe0c
[ "MIT" ]
37
2016-12-08T19:39:35.000Z
2022-02-11T19:59:34.000Z
#!/usr/bin/env python # # Copyright (c) 2001 Vivake Gupta (v@omniscia.org). All rights reserved. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at yo...
38.155797
119
0.566233
1,281
10,531
4.627635
0.240437
0.055668
0.026991
0.038462
0.362686
0.324055
0.278509
0.20361
0.190283
0.171559
0
0.019317
0.346216
10,531
275
120
38.294545
0.841685
0.238249
0
0.401515
0
0
0.006673
0
0
0
0
0
0
0
null
null
0
0.022727
null
null
0.015152
0
0
0
null
0
0
0
0
0
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
b7d2573c62a1508ccf06a7929d5e7f1aa09fa8d4
411
py
Python
myapp/migrations/0013_url_name.py
abhisheksaxena1998/Emergency-Blood-Plasma-Notification-System
d71e1ba46e9f91df8c991df0cfaf81c2111db713
[ "MIT" ]
4
2020-12-03T05:46:27.000Z
2020-12-12T12:56:59.000Z
myapp/migrations/0013_url_name.py
abhisheksaxena1998/Emergency-Blood-Plasma-Notification-System
d71e1ba46e9f91df8c991df0cfaf81c2111db713
[ "MIT" ]
4
2020-12-03T05:44:20.000Z
2020-12-03T08:55:53.000Z
myapp/migrations/0013_url_name.py
abhisheksaxena1998/Emergency-Blood-Plasma-Notification-System
d71e1ba46e9f91df8c991df0cfaf81c2111db713
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-08-28 12:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myapp', '0012_auto_20200828_1720'), ] operations = [ migrations.AddField( model_name='url', name='name', ...
21.631579
84
0.600973
47
411
5.148936
0.851064
0
0
0
0
0
0
0
0
0
0
0.117845
0.277372
411
18
85
22.833333
0.69697
0.109489
0
0
1
0
0.120879
0.063187
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
b7d4a38de7e5bc464d19fba2017bcd8c2bf8027c
1,518
py
Python
twitmining/migrations/0009_auto_20180527_1357.py
nhlr21/socialmining
cc1ed19d1a3cae3228834bb51d4eae21b43cb8c3
[ "MIT" ]
4
2018-10-22T23:51:34.000Z
2019-10-30T15:11:50.000Z
twitmining/migrations/0009_auto_20180527_1357.py
nhlr21/socialmining
cc1ed19d1a3cae3228834bb51d4eae21b43cb8c3
[ "MIT" ]
null
null
null
twitmining/migrations/0009_auto_20180527_1357.py
nhlr21/socialmining
cc1ed19d1a3cae3228834bb51d4eae21b43cb8c3
[ "MIT" ]
1
2020-03-10T16:00:19.000Z
2020-03-10T16:00:19.000Z
# Generated by Django 2.0.3 on 2018-05-27 13:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('twitmining', '0008_auto_20180408_1813'), ] operations = [ migrations.CreateModel( name='RelevantTweet', fields=[ ...
29.764706
114
0.549407
140
1,518
5.828571
0.428571
0.066176
0.102941
0.132353
0.41299
0.41299
0.280637
0.280637
0.115196
0
0
0.042157
0.328063
1,518
50
115
30.36
0.757843
0.029644
0
0.409091
1
0
0.109449
0.015636
0
0
0
0
0
1
0
false
0
0.022727
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b7d4d5230630ab18429843728bc63738ec045bee
614
py
Python
glue_vispy_viewers/extern/vispy/ext/gzip_open.py
jzuhone/glue-vispy-viewers
d940705f4ba95f8d7a9a74d37fb68c71080b490a
[ "BSD-2-Clause" ]
3
2018-05-09T17:55:53.000Z
2019-07-22T09:14:41.000Z
glue_vispy_viewers/extern/vispy/ext/gzip_open.py
jzuhone/glue-vispy-viewers
d940705f4ba95f8d7a9a74d37fb68c71080b490a
[ "BSD-2-Clause" ]
19
2015-06-16T14:33:22.000Z
2015-07-27T21:18:15.000Z
graphViz/vispy/ext/gzip_open.py
onecklam/ethereum-graphviz
6993accf0cb85e23013bf7ae6b04145724a6dbd2
[ "Apache-2.0" ]
1
2021-09-15T08:52:26.000Z
2021-09-15T08:52:26.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. from gzip import GzipFile # Python < 2.7 doesn't have context handling class gzip_open(GzipFile): def __enter__(self): if hasattr(GzipFile, '__enter__'): ...
30.7
74
0.64658
76
614
4.842105
0.618421
0.048913
0.092391
0.081522
0.173913
0.173913
0.173913
0
0
0
0
0.015251
0.252443
614
19
75
32.315789
0.786492
0.29316
0
0.166667
0
0
0.039627
0
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.666667
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
b7d9bc84d49a0e2446ce8874aef0a65e15d490b3
1,102
py
Python
houseplants/houseplants_api/migrations/0001_initial.py
galihmelon/houseplants-server-pyramid
d0f37beea2cf963184c888da143fc995bb2436e2
[ "MIT" ]
null
null
null
houseplants/houseplants_api/migrations/0001_initial.py
galihmelon/houseplants-server-pyramid
d0f37beea2cf963184c888da143fc995bb2436e2
[ "MIT" ]
null
null
null
houseplants/houseplants_api/migrations/0001_initial.py
galihmelon/houseplants-server-pyramid
d0f37beea2cf963184c888da143fc995bb2436e2
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-09 19:42 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Plant', fields=[ ...
32.411765
118
0.576225
109
1,102
5.688073
0.550459
0.03871
0.045161
0.070968
0.264516
0.264516
0.264516
0.264516
0.264516
0.264516
0
0.022989
0.289474
1,102
33
119
33.393939
0.768838
0.040835
0
0.384615
1
0
0.09763
0.019905
0
0
0
0
0
1
0
false
0
0.076923
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b7dd74a7abdf082dc49389a5f1866279d61db9e3
2,549
py
Python
contrib/samples/openvino/tf-slim/tf-slim.py
xieqihui/pipelines
a39ae8eb779e69e4e85e424abba8ecac3f60435f
[ "Apache-2.0" ]
1
2019-06-20T19:39:39.000Z
2019-06-20T19:39:39.000Z
contrib/samples/openvino/tf-slim/tf-slim.py
xieqihui/pipelines
a39ae8eb779e69e4e85e424abba8ecac3f60435f
[ "Apache-2.0" ]
21
2020-01-28T22:48:55.000Z
2022-03-08T22:48:12.000Z
contrib/samples/openvino/tf-slim/tf-slim.py
xieqihui/pipelines
a39ae8eb779e69e4e85e424abba8ecac3f60435f
[ "Apache-2.0" ]
1
2019-09-19T11:03:18.000Z
2019-09-19T11:03:18.000Z
import kfp.dsl as dsl @dsl.pipeline( name='Prediction pipeline', description='Generate slim models and optimize them with OpenVINO' ) def tf_slim_optimize( model_name = dsl.PipelineParam(name='model-name', value='resnet_v1_50'), num_classes = dsl.PipelineParam(name='num-classes', value=1000), ...
45.517857
144
0.660651
319
2,549
4.996865
0.297806
0.090339
0.112923
0.033877
0.205772
0.146173
0.146173
0.146173
0.09473
0.065245
0
0.020048
0.178109
2,549
55
145
46.345455
0.740811
0
0
0.06
1
0
0.385249
0.117693
0
0
0
0
0
1
0.02
false
0
0.04
0
0.06
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
b7e1dd839291db0d013a89ef7131d267d0038616
9,570
py
Python
tests/test_shellinter.py
yiannisha/dbmanage
9e1e36e2b59e7e369595f4804bef2c2a7ec0ec56
[ "Apache-2.0" ]
null
null
null
tests/test_shellinter.py
yiannisha/dbmanage
9e1e36e2b59e7e369595f4804bef2c2a7ec0ec56
[ "Apache-2.0" ]
10
2021-11-06T18:12:54.000Z
2021-12-01T18:49:29.000Z
tests/test_shellinter.py
yiannisha/dbmanage
9e1e36e2b59e7e369595f4804bef2c2a7ec0ec56
[ "Apache-2.0" ]
null
null
null
""" Unittests for shellinter.py """ from dbmanage import shellinter import os import getpass import json from subprocess import Popen, PIPE import unittest from tests.test_utils import get_pass, read_temp_file class Test(unittest.TestCase): def setUp(self) -> None: """ Sets up tests """ # S...
37.529412
157
0.527273
1,036
9,570
4.769305
0.250965
0.024287
0.011334
0.012953
0.414289
0.364906
0.333536
0.268772
0.268772
0.268772
0
0.006215
0.361129
9,570
254
158
37.677165
0.80193
0.250888
0
0.355556
0
0.007407
0.195321
0.040079
0
0
0
0.003937
0.037037
1
0.044444
false
0.103704
0.051852
0
0.103704
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
b7e4538346ed0b9a9a6233162c4130d14284fccb
887
py
Python
bld/libs/builder/src/steps/checkunversionedfiles.py
webbers/dongle.net
784bc584bd74b28a1c580835bf776d76cf371c79
[ "MIT" ]
2
2017-07-31T15:57:01.000Z
2020-02-21T09:31:11.000Z
bld/libs/builder/src/steps/checkunversionedfiles.py
webbers/dongle.net
784bc584bd74b28a1c580835bf776d76cf371c79
[ "MIT" ]
null
null
null
bld/libs/builder/src/steps/checkunversionedfiles.py
webbers/dongle.net
784bc584bd74b28a1c580835bf776d76cf371c79
[ "MIT" ]
null
null
null
import os import StCommon from StBuild import CStBuild from Reporters import * from Steps import * import re #-------------------------------------------------------------------- class CheckUnversionedFilesSteps( AbstractStep ): def __init__( self, baseDir ): AbstractStep.__init__( self, "Check Unversioned...
30.586207
82
0.543405
85
887
5.482353
0.541176
0.118026
0.055794
0.085837
0
0
0
0
0
0
0
0.003125
0.278467
887
28
83
31.678571
0.725
0.076663
0
0
0
0
0.145655
0
0
0
0
0
0
0
null
null
0
0.285714
null
null
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
b7f786f894c8ef13509a33186b8d31eca477b06f
715
py
Python
gpytorch/utils/log_deprecation.py
yushangdi/gpytorch
3234046ecb672965af8765d47eb016f85b729bb0
[ "MIT" ]
null
null
null
gpytorch/utils/log_deprecation.py
yushangdi/gpytorch
3234046ecb672965af8765d47eb016f85b729bb0
[ "MIT" ]
null
null
null
gpytorch/utils/log_deprecation.py
yushangdi/gpytorch
3234046ecb672965af8765d47eb016f85b729bb0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from ..kernels import ( CosineKernel, IndexKernel, MaternKernel, PeriodicKernel, RBFKernel, ScaleKernel, SpectralMixtureKernel, ) from ..likelihoods import GaussianLikelihood, MultitaskGaussianLikelihood MODULES_WITH_LOG_PARAMS = [ CosineKernel, IndexKernel,...
22.34375
97
0.723077
66
715
7.742424
0.757576
0.09002
0.136986
0.191781
0.35225
0.35225
0.35225
0
0
0
0
0.001764
0.206993
715
31
98
23.064516
0.899471
0.029371
0
0.538462
0
0
0.27417
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
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
b7fab44412801c79a3338b6c0b9e391c6ee571d7
884
py
Python
lesson-03b.py
mvecchione145/python-quickstart
bc8e23a6bea0d534b7f46508bcd6e49a10d97665
[ "MIT" ]
null
null
null
lesson-03b.py
mvecchione145/python-quickstart
bc8e23a6bea0d534b7f46508bcd6e49a10d97665
[ "MIT" ]
null
null
null
lesson-03b.py
mvecchione145/python-quickstart
bc8e23a6bea0d534b7f46508bcd6e49a10d97665
[ "MIT" ]
null
null
null
# --STEP LIST-- # 1. Run this script. # In your command line terminal window execute the following line: # python lesson-03b.py # * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * # The results should look like this: # -- object -- # <__main_...
19.644444
119
0.544118
94
884
5.010638
0.510638
0.050955
0
0
0
0
0
0
0
0
0
0.011976
0.244344
884
44
120
20.090909
0.693114
0.461538
0
0.157895
0
0
0.137555
0
0
0
0
0
0
1
0.105263
false
0
0
0.052632
0.210526
0.578947
0
0
0
null
0
0
0
0
0
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
4d0004bf59172b9756e75461d1d9b766520d6309
382
py
Python
Sympy/SympyCombinatorics.py
SymmetricChaos/FiniteFields
65258e06b7f04ce15223c1bc0c2384ef5e9cec1a
[ "MIT" ]
1
2021-08-22T15:03:59.000Z
2021-08-22T15:03:59.000Z
Sympy/SympyCombinatorics.py
SymmetricChaos/NumberTheory
65258e06b7f04ce15223c1bc0c2384ef5e9cec1a
[ "MIT" ]
null
null
null
Sympy/SympyCombinatorics.py
SymmetricChaos/NumberTheory
65258e06b7f04ce15223c1bc0c2384ef5e9cec1a
[ "MIT" ]
null
null
null
from sympy.combinatorics import Permutation, symmetric from sympy.interactive import init_printing S = [4,0,1,3,2] P = Permutation(S) print(f"Direction Notation:\n{P.list()}") print(f"\nOne Line Notation:\n{P}") print(f"\nNumber of Permutations:{P.cardinality}") print(f"\nIs Even: {P.is_even}") print(f"Is Odd: {P.is_o...
31.833333
54
0.719895
65
382
4.184615
0.507692
0.132353
0.073529
0
0
0
0
0
0
0
0
0.017143
0.08377
382
12
55
31.833333
0.76
0
0
0
0
0
0.407311
0.127937
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.727273
0
0
0
null
0
0
0
0
0
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
4d0025dc37e1cc8ca2e0c9c6c302dbbcbcfa3392
6,721
py
Python
tests/test_normalized_component.py
hunter-packages/fruit
71d9ada48f7bf1749ce2889250955404582a7c6b
[ "Apache-2.0" ]
1
2018-08-29T11:10:35.000Z
2018-08-29T11:10:35.000Z
tests/test_normalized_component.py
hunter-packages/fruit
71d9ada48f7bf1749ce2889250955404582a7c6b
[ "Apache-2.0" ]
1
2018-08-29T11:29:53.000Z
2018-08-29T11:29:53.000Z
tests/test_normalized_component.py
hunter-packages/fruit
71d9ada48f7bf1749ce2889250955404582a7c6b
[ "Apache-2.0" ]
2
2020-10-01T04:19:30.000Z
2021-07-01T07:50:22.000Z
#!/usr/bin/env python3 # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
32.468599
143
0.638298
653
6,721
6.454824
0.248086
0.043179
0.049822
0.043179
0.522894
0.488019
0.424911
0.396916
0.38363
0.370819
0
0.005826
0.233894
6,721
206
144
32.626214
0.812779
0.097158
0
0.6
0
0.006452
0.716669
0.360317
0
0
0
0.004854
0
1
0.03871
false
0
0.012903
0
0.090323
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
4d06afae3b25fee09e45c9f20bca563cb0fe5393
4,714
py
Python
View/cadastro_finalizadoras.py
felipezago/ControleEstoque
229659c4f9888fd01df34375ec92af7a1f734d10
[ "MIT" ]
null
null
null
View/cadastro_finalizadoras.py
felipezago/ControleEstoque
229659c4f9888fd01df34375ec92af7a1f734d10
[ "MIT" ]
null
null
null
View/cadastro_finalizadoras.py
felipezago/ControleEstoque
229659c4f9888fd01df34375ec92af7a1f734d10
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'cadastro_finalizadoras.ui' # # Created by: PyQt5 UI code generator 5.14.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_ct_FormProdutos(object): def setupUi(self, ct_Form...
41.350877
98
0.705134
567
4,714
5.700176
0.261023
0.037129
0.055693
0.034035
0.375928
0.262686
0.208849
0.132426
0.068069
0.068069
0
0.037402
0.160585
4,714
113
99
41.716814
0.779378
0.041578
0
0.24
1
0
0.191088
0.009311
0
0
0
0
0
1
0.02
false
0
0.01
0
0.04
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
4d0a31edd3059549aa22ec84990223b01153df14
6,943
py
Python
scripts/preprocess.py
hansheng0512/Scanned-document-classification-using-deep-learning
486ceb0cc09ad82ee089b5d08f490524051c0b14
[ "MIT" ]
38
2020-03-26T13:04:01.000Z
2021-07-14T16:45:41.000Z
scripts/preprocess.py
arpan65/Scanned-Document-Classification
debf8c45b8ac6e018a4fd6af950e5d6fa942cca7
[ "MIT" ]
5
2020-06-09T13:18:24.000Z
2021-07-21T08:30:29.000Z
scripts/preprocess.py
arpan65/Scanned-Document-Classification
debf8c45b8ac6e018a4fd6af950e5d6fa942cca7
[ "MIT" ]
26
2020-01-06T16:14:03.000Z
2021-07-21T07:50:32.000Z
import warnings warnings.filterwarnings("ignore") import shutil import os import tarfile import pandas as pd import matplotlib import matplotlib.pyplot as plt import seaborn as sns import numpy as np import pickle from sklearn.manifold import TSNE from sklearn import preprocessing import pandas as pd from...
39.225989
120
0.660089
985
6,943
4.549239
0.211168
0.01339
0.02678
0.046865
0.424682
0.404151
0.351261
0.322696
0.307521
0.307521
0
0.021962
0.186807
6,943
177
121
39.225989
0.771697
0.089875
0
0.314465
0
0
0.087928
0
0
0
0
0
0
0
null
null
0
0.232704
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