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
f95969e5274454c89e1f512e9e3893dfdf0ca196
737
py
Python
automated_logging/migrations/0019_auto_20210504_1247.py
rewardz/django-automated-logging
3f7c578b42de1e5ddc72cac79014715fc7dffa46
[ "MIT" ]
null
null
null
automated_logging/migrations/0019_auto_20210504_1247.py
rewardz/django-automated-logging
3f7c578b42de1e5ddc72cac79014715fc7dffa46
[ "MIT" ]
null
null
null
automated_logging/migrations/0019_auto_20210504_1247.py
rewardz/django-automated-logging
3f7c578b42de1e5ddc72cac79014715fc7dffa46
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2021-05-04 03:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('automated_logging', '0018_decoratoroverrideexclusiontest_foreignkeytest_fullclassbasedexclusiontest_fulldecoratorbasedexclusio'), ] operations = [ ...
30.708333
139
0.662144
70
737
6.842857
0.614286
0.083507
0.104384
0.121086
0.334029
0.334029
0.334029
0.334029
0.334029
0.334029
0
0.032316
0.244233
737
23
140
32.043478
0.827648
0.058345
0
0.470588
1
0
0.32948
0.151734
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
f95b45ce076430bae5232cdd5ec93fdf00431354
2,037
py
Python
libdiscid/tests/common.py
phw/python-libdiscid
fac3ca94057c7da2857af2fd7bd099f726a02869
[ "MIT" ]
null
null
null
libdiscid/tests/common.py
phw/python-libdiscid
fac3ca94057c7da2857af2fd7bd099f726a02869
[ "MIT" ]
null
null
null
libdiscid/tests/common.py
phw/python-libdiscid
fac3ca94057c7da2857af2fd7bd099f726a02869
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2013 Sebastian Ramacher <sebastian+dev@ramacher.at> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation th...
31.338462
79
0.716249
293
2,037
4.924915
0.590444
0.060984
0.018018
0.023562
0
0
0
0
0
0
0
0.113901
0.198331
2,037
64
80
31.828125
0.769749
0.557683
0
0.129032
0
0
0.042334
0.032037
0
0
0
0
0
1
0
false
0
0.032258
0
0.935484
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
f95ba865fff759b92ca23cecc5920a5a1660850c
1,881
py
Python
train_teachers.py
offthewallace/DP_CNN
e7f4607cbb890a348d088b515c4aa7093fadb878
[ "MIT" ]
9
2018-02-28T06:09:23.000Z
2022-03-15T13:42:47.000Z
train_teachers.py
offthewallace/DP_CNN
e7f4607cbb890a348d088b515c4aa7093fadb878
[ "MIT" ]
null
null
null
train_teachers.py
offthewallace/DP_CNN
e7f4607cbb890a348d088b515c4aa7093fadb878
[ "MIT" ]
4
2018-01-21T06:42:10.000Z
2020-08-17T09:07:42.000Z
#Author: Wallace He from __future__ import absolute_import from __future__ import division from __future__ import print_function import glob import keras from keras.models import Sequential from keras.models import model_from_json from keras.models import load_model import partition import train_CNN def train_teach...
31.35
105
0.698033
253
1,881
4.960474
0.418972
0.047809
0.038247
0.050199
0.05259
0.05259
0.05259
0
0
0
0
0.004129
0.227539
1,881
59
106
31.881356
0.859601
0.290271
0
0
0
0
0.088258
0.018419
0
0
0
0
0
1
0.033333
false
0
0.333333
0
0.4
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f95e41290f52dc02f46f6b46f92ae4c07e63dc68
9,528
py
Python
run.py
magechaP/passwordlocker2.0
e0ae82aa650c4f1cd285f319ec16de38ba0670ea
[ "Unlicense", "MIT" ]
null
null
null
run.py
magechaP/passwordlocker2.0
e0ae82aa650c4f1cd285f319ec16de38ba0670ea
[ "Unlicense", "MIT" ]
null
null
null
run.py
magechaP/passwordlocker2.0
e0ae82aa650c4f1cd285f319ec16de38ba0670ea
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python3.6 import random #importing random module from user import User #importing class User from credential import Credential #importing class Credential def create_credential(username,accountname,password): """ create_credential function that creates an instance of the class credential ...
46.478049
260
0.524244
890
9,528
5.503371
0.206742
0.04267
0.032666
0.01715
0.197836
0.115966
0.105757
0.068191
0.033483
0.033483
0
0.002277
0.400819
9,528
204
261
46.705882
0.855666
0.120172
0
0.140496
0
0.041322
0.251101
0.015786
0
0
0
0
0
1
0.115702
false
0.264463
0.024793
0
0.223141
0.198347
0
0
0
null
0
0
0
0
0
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
f96819f7fca3841f9dba660989413c0f8440f951
183
py
Python
agent/tandem/agent/models/connection_state.py
geoffxy/tandem
81e76f675634f1b42c8c3070c73443f3f68f8624
[ "Apache-2.0" ]
732
2018-03-11T03:35:17.000Z
2022-01-06T12:22:03.000Z
agent/tandem/agent/models/connection_state.py
geoffxy/tandem
81e76f675634f1b42c8c3070c73443f3f68f8624
[ "Apache-2.0" ]
21
2018-03-11T02:28:22.000Z
2020-08-30T15:36:40.000Z
plugin/tandem_lib/agent/tandem/agent/models/connection_state.py
typeintandem/vim
e076a9954d73ccb60cd6828e53adf8da76462fc6
[ "Apache-2.0" ]
24
2018-03-14T05:37:17.000Z
2022-01-18T14:44:42.000Z
import enum class ConnectionState(enum.Enum): PING = "ping" SEND_SYN = "syn" WAIT_FOR_SYN = "wait" OPEN = "open" RELAY = "relay" UNREACHABLE = "unreachable"
16.636364
33
0.617486
21
183
5.238095
0.571429
0.127273
0
0
0
0
0
0
0
0
0
0
0.262295
183
10
34
18.3
0.814815
0
0
0
0
0
0.169399
0
0
0
0
0
0
1
0
false
0
0.125
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f96e0469991c8e15ab4a23bec3525036f33b7b33
12,081
py
Python
tests/test_core.py
sobamchan/lineflow
708a875c090b7df48c9eca3f630915a9c6e5bbd6
[ "MIT" ]
null
null
null
tests/test_core.py
sobamchan/lineflow
708a875c090b7df48c9eca3f630915a9c6e5bbd6
[ "MIT" ]
null
null
null
tests/test_core.py
sobamchan/lineflow
708a875c090b7df48c9eca3f630915a9c6e5bbd6
[ "MIT" ]
null
null
null
from unittest import TestCase from unittest.mock import patch, Mock import lineflow from lineflow import Dataset from lineflow.core import ConcatDataset, ZipDataset from lineflow.core import RandomAccessConcat, RandomAccessZip class RandomAccessConcatTestCase(TestCase): def setUp(self): self.n = 5 ...
35.017391
92
0.632067
1,517
12,081
4.847067
0.09822
0.080511
0.039168
0.02992
0.747178
0.711002
0.677683
0.639739
0.595403
0.56154
0
0.008932
0.258588
12,081
344
93
35.119186
0.811991
0.021687
0
0.596154
0
0
0.032941
0.018376
0
0
0
0
0.303846
1
0.176923
false
0
0.030769
0.015385
0.234615
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
f97211763e2fc9e54ef976a18d06e39b22339ef9
567
py
Python
saleor/product/migrations/0125_auto_20200916_1511.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/product/migrations/0125_auto_20200916_1511.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/product/migrations/0125_auto_20200916_1511.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
# Generated by Django 3.1.1 on 2020-09-16 15:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("product", "0124_auto_20200909_0904"), ] operations = [ migrations.AlterModelOptions( name="productvariant", options=...
24.652174
80
0.59612
56
567
5.910714
0.75
0.108761
0
0
0
0
0
0
0
0
0
0.07598
0.280423
567
22
81
25.772727
0.735294
0.079365
0
0.125
1
0
0.171154
0.044231
0
0
0
0
0
1
0
false
0
0.0625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f974a1282e8728c135564243668674955a9e7d22
943
py
Python
lintcode/NineChapters/03/binary-tree-level-order-traversal-ii.py
shootsoft/practice
49f28c2e0240de61d00e4e0291b3c5edd930e345
[ "Apache-2.0" ]
null
null
null
lintcode/NineChapters/03/binary-tree-level-order-traversal-ii.py
shootsoft/practice
49f28c2e0240de61d00e4e0291b3c5edd930e345
[ "Apache-2.0" ]
null
null
null
lintcode/NineChapters/03/binary-tree-level-order-traversal-ii.py
shootsoft/practice
49f28c2e0240de61d00e4e0291b3c5edd930e345
[ "Apache-2.0" ]
null
null
null
__author__ = 'yinjun' """ Definition of TreeNode: class TreeNode: def __init__(self, val): this.val = val this.left, this.right = None, None """ class Solution: """ @param root: The root of binary tree. @return: buttom-up level order in a list of lists of integers """ def leve...
18.86
65
0.45175
106
943
3.943396
0.462264
0.019139
0.07177
0.076555
0
0
0
0
0
0
0
0.013436
0.447508
943
50
66
18.86
0.788868
0.128314
0
0.173913
0
0
0.009077
0
0
0
0
0.02
0
1
0.043478
false
0
0
0
0.173913
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
f976fcf3758aba64e0576f78efb657866db8fe14
17,596
py
Python
tools/contourlet_transform/tools/dfilters.py
yilinshao/CoT-Contourlet-Transformer
44d36a05f81ec168e3ccd8b9438ddaee6283189e
[ "MIT" ]
4
2021-12-21T07:45:01.000Z
2021-12-21T09:15:47.000Z
tools/contourlet_transform/tools/dfilters.py
yilinshao/CoT-Contourlet-Transformer
44d36a05f81ec168e3ccd8b9438ddaee6283189e
[ "MIT" ]
null
null
null
tools/contourlet_transform/tools/dfilters.py
yilinshao/CoT-Contourlet-Transformer
44d36a05f81ec168e3ccd8b9438ddaee6283189e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PyContourlet # # A Python library for the Contourlet Transform. # # Copyright (C) 2011 Mazay Jiménez # # 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 ...
37.759657
103
0.436065
2,496
17,596
3.072917
0.161458
0.026728
0.028683
0.034681
0.549153
0.522555
0.489961
0.487223
0.462712
0.440678
0
0.214032
0.39168
17,596
465
104
37.84086
0.502522
0.260741
0
0.505338
0
0
0.009984
0
0
0
0
0
0
1
0.003559
false
0
0.024911
0
0.092527
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f98574c16f4148423e98de5b6034c5f75d3ac988
217
py
Python
toolbox/util/normalize.py
Yilin1010/DeleteKnowledge
49b7e0e3a2247e482ba8876762719e4adb3074c6
[ "Apache-2.0" ]
null
null
null
toolbox/util/normalize.py
Yilin1010/DeleteKnowledge
49b7e0e3a2247e482ba8876762719e4adb3074c6
[ "Apache-2.0" ]
null
null
null
toolbox/util/normalize.py
Yilin1010/DeleteKnowledge
49b7e0e3a2247e482ba8876762719e4adb3074c6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue May 24 11:14:03 2016 @author: Wajih-PC """ import numpy as np def normalize(x,mu,sigma): x = np.subtract(x,mu) x = np.true_divide(x,sigma) return x
19.727273
36
0.580645
37
217
3.378378
0.756757
0.048
0
0
0
0
0
0
0
0
0
0.080745
0.258065
217
11
37
19.727273
0.695652
0.354839
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f9867c0f2c0b8271efb4f277dc9a847054941a6b
1,070
py
Python
34_Find_First_and_Last_Position_of_Element_in_Sorted_Array.py
yuqingchen/Leetcode
6cbcb36e66a10a226ddb0966701e61ce4c2434d4
[ "MIT" ]
1
2019-12-12T20:16:08.000Z
2019-12-12T20:16:08.000Z
34_Find_First_and_Last_Position_of_Element_in_Sorted_Array.py
yuqingchen/Leetcode
6cbcb36e66a10a226ddb0966701e61ce4c2434d4
[ "MIT" ]
null
null
null
34_Find_First_and_Last_Position_of_Element_in_Sorted_Array.py
yuqingchen/Leetcode
6cbcb36e66a10a226ddb0966701e61ce4c2434d4
[ "MIT" ]
null
null
null
class Solution: def searchRange(self, nums: List[int], target: int) -> List[int]: left, right = self.first(nums, target), self.last(nums, target) return [left, right] def last(self, nums, target) : if not nums : return -1 left, right = 0, len(nums) -1 whi...
29.722222
71
0.44486
119
1,070
4
0.193277
0.113445
0.10084
0.067227
0.689076
0.689076
0.487395
0.487395
0.487395
0.487395
0
0.020513
0.453271
1,070
36
72
29.722222
0.793162
0
0
0.764706
0
0
0
0
0
0
0
0
0
1
0.088235
false
0
0
0
0.382353
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
f98d3f6b60f1e702d811a09d53f295688785eb0a
3,755
py
Python
fabfile/s3_copy.py
MadeInHaus/django-template
73d3bdb85e9b1b2723a1de67d6765ce0647dce3a
[ "MIT" ]
1
2015-06-18T22:37:28.000Z
2015-06-18T22:37:28.000Z
fabfile/s3_copy.py
MadeInHaus/django-template
73d3bdb85e9b1b2723a1de67d6765ce0647dce3a
[ "MIT" ]
11
2015-01-07T16:58:55.000Z
2022-01-27T16:22:22.000Z
fabfile/s3_copy.py
MadeInHaus/django-template
73d3bdb85e9b1b2723a1de67d6765ce0647dce3a
[ "MIT" ]
null
null
null
from fabric.decorators import task, roles from haus_vars import APP_INFO, parse_vars from fabric.api import run, execute from fabric.context_managers import cd from heroku import create_fixture_on_s3, grab_fixture_on_s3 import cStringIO def copyBucket(srcBucketName, dstBucketName, aws_key, aws_secret, folder_name...
40.376344
170
0.694541
503
3,755
4.872763
0.232604
0.026928
0.034272
0.02856
0.492044
0.382701
0.30763
0.30763
0.285598
0.240718
0
0.008005
0.201598
3,755
92
171
40.815217
0.80954
0
0
0.263889
0
0
0.1588
0.030594
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f999e5eac5ca0101fdb8157a0b22f62d11306d51
403
py
Python
accounts/migrations/0005_addtocart_cart_useremail.py
noelsj007/ecommerceweb
e00edfe9110d2cc54deebd97043e0aa152c8afd4
[ "Unlicense" ]
null
null
null
accounts/migrations/0005_addtocart_cart_useremail.py
noelsj007/ecommerceweb
e00edfe9110d2cc54deebd97043e0aa152c8afd4
[ "Unlicense" ]
null
null
null
accounts/migrations/0005_addtocart_cart_useremail.py
noelsj007/ecommerceweb
e00edfe9110d2cc54deebd97043e0aa152c8afd4
[ "Unlicense" ]
null
null
null
# Generated by Django 3.0.8 on 2020-08-11 14:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0004_addtocart'), ] operations = [ migrations.AddField( model_name='addtocart', name='cart_useremail', ...
21.210526
66
0.60794
43
403
5.604651
0.837209
0
0
0
0
0
0
0
0
0
0
0.075601
0.277916
403
18
67
22.388889
0.752577
0.111663
0
0
1
0
0.126404
0
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
f99d843d5eb26f48db07153b199bcf310e6ecade
1,256
pyw
Python
python/discord.pyw
hentai-burner/mastur-beta
2893a4ef3ee4aae5a9a78141badae4e6544fb071
[ "MIT" ]
null
null
null
python/discord.pyw
hentai-burner/mastur-beta
2893a4ef3ee4aae5a9a78141badae4e6544fb071
[ "MIT" ]
null
null
null
python/discord.pyw
hentai-burner/mastur-beta
2893a4ef3ee4aae5a9a78141badae4e6544fb071
[ "MIT" ]
null
null
null
import time import os import pathlib import sys from subprocess import call #TODO: Maybe make a pip_handler file idk def pip_install(packageName: str): try: call(f'py -m pip install {packageName}') except: call(f'pip install {packageName}') try: from pypresence import prese...
27.304348
84
0.621815
171
1,256
4.438596
0.520468
0.065876
0.083004
0
0
0
0
0
0
0
0
0.010905
0.269904
1,256
45
85
27.911111
0.816794
0.296178
0
0.206897
0
0
0.209639
0
0
0
0
0.022222
0
1
0.068966
false
0
0.206897
0
0.275862
0.034483
0
0
0
null
0
0
0
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
f9a664bbf396891165319f919889de28be4868a4
212
py
Python
mine/collatz.py
zahessi/unileaks
3ed2462e11f8e3decc64ed8faceee42438ec06ff
[ "MIT" ]
null
null
null
mine/collatz.py
zahessi/unileaks
3ed2462e11f8e3decc64ed8faceee42438ec06ff
[ "MIT" ]
null
null
null
mine/collatz.py
zahessi/unileaks
3ed2462e11f8e3decc64ed8faceee42438ec06ff
[ "MIT" ]
null
null
null
n = input("Мы будем проверять теорию коллатца. Введите число") def collatz(num): num = int(num) if not num: return None while num != 1: num = num/2 if num % 2 == 0 else 3*num + 1 collatz(n)
21.2
62
0.603774
36
212
3.555556
0.638889
0.09375
0
0
0
0
0
0
0
0
0
0.039216
0.278302
212
9
63
23.555556
0.797386
0
0
0
0
0
0.231132
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.142857
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
f9a9b8479139b00ee0e9e3f90eb6496c035fb7c6
1,270
py
Python
tlh/data/pointer.py
notyourav/the-little-hat
f52b38b18b762e704b36cef06c07656348ea6995
[ "MIT" ]
null
null
null
tlh/data/pointer.py
notyourav/the-little-hat
f52b38b18b762e704b36cef06c07656348ea6995
[ "MIT" ]
null
null
null
tlh/data/pointer.py
notyourav/the-little-hat
f52b38b18b762e704b36cef06c07656348ea6995
[ "MIT" ]
2
2021-10-05T20:40:12.000Z
2022-01-05T00:17:36.000Z
from dataclasses import dataclass from tlh.const import RomVariant from intervaltree import IntervalTree, Interval @dataclass class Pointer: rom_variant: RomVariant = None address: int = 0 points_to: int = 0 certainty: int = 0 author: str = '' note: str = '' class PointerList: def __init_...
30.97561
87
0.659843
154
1,270
5.305195
0.311688
0.102815
0.062424
0.106487
0.369645
0.293758
0.168911
0.115055
0
0
0
0.006148
0.231496
1,270
41
88
30.97561
0.830943
0
0
0
0
0
0
0
0
0
0
0
0
1
0.193548
false
0
0.096774
0.064516
0.645161
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
f9ad826a4941dde9f3abe0bd1c8c6c6ea3cdfc2e
554
py
Python
tests/testapp/models.py
jcass77/django-yearlessdate
19ed3ecb16efe33eea6f02138bb4365447cb2ea7
[ "BSD-3-Clause" ]
16
2016-09-23T07:09:40.000Z
2022-01-13T13:22:31.000Z
tests/testapp/models.py
jcass77/django-yearlessdate
19ed3ecb16efe33eea6f02138bb4365447cb2ea7
[ "BSD-3-Clause" ]
8
2017-12-06T08:32:12.000Z
2021-05-13T15:31:21.000Z
tests/testapp/models.py
jcass77/django-yearlessdate
19ed3ecb16efe33eea6f02138bb4365447cb2ea7
[ "BSD-3-Clause" ]
16
2016-03-04T07:55:56.000Z
2021-04-16T15:14:26.000Z
from django.db import models from djangoyearlessdate.models import YearlessDateField, YearField from djangoyearlessdate.helpers import YearlessDate class YearlessDateModel(models.Model): """Sample model for testing YearlessDateField. """ yearless_date = YearlessDateField() optional_yearless_date = Yea...
30.777778
88
0.772563
58
554
7.275862
0.517241
0.085308
0.080569
0.104265
0.151659
0.151659
0
0
0
0
0
0.004211
0.142599
554
17
89
32.588235
0.884211
0.151625
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f9bd66223ae9916274f6536d0f5a42a245f694b0
847
py
Python
tech/CCI.py
A1eXFei/StockMarket3
01000d0731395868c4477982c6ed6c632c9a7427
[ "Apache-2.0" ]
null
null
null
tech/CCI.py
A1eXFei/StockMarket3
01000d0731395868c4477982c6ed6c632c9a7427
[ "Apache-2.0" ]
null
null
null
tech/CCI.py
A1eXFei/StockMarket3
01000d0731395868c4477982c6ed6c632c9a7427
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import talib as ta import numpy as np from util import StockUtil as su from tech import StockTechIndicator class CCI(StockTechIndicator): def __init__(self): StockTechIndicator.__init__(self) def calculate(self, stock_code, date, time_period=14): cci = 0.0 data...
32.576923
129
0.641086
123
847
4.154472
0.479675
0.078278
0.076321
0.066536
0.09002
0
0
0
0
0
0
0.034639
0.216057
847
26
130
32.576923
0.73494
0.024793
0
0.105263
0
0
0.047273
0
0
0
0
0
0
0
null
null
0
0.210526
null
null
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f9beae7adf6d3836aaf0918cb0eb1c2fed9c5001
938
py
Python
timeit/timeit_np_ufunc.py
Dennis-van-Gils/DvG_Arduino_lock-in_amp
4576aa529413c93c6e4d6152802349f5f0c3ee16
[ "MIT" ]
9
2020-07-02T15:23:18.000Z
2022-03-04T03:32:04.000Z
timeit/timeit_np_ufunc.py
Dennis-van-Gils/DvG_Arduino_lock-in_amp
4576aa529413c93c6e4d6152802349f5f0c3ee16
[ "MIT" ]
3
2019-04-22T22:53:56.000Z
2021-11-02T20:13:43.000Z
timeit/timeit_np_ufunc.py
Dennis-van-Gils/DvG_Arduino_lock-in_amp
4576aa529413c93c6e4d6152802349f5f0c3ee16
[ "MIT" ]
2
2021-11-05T14:34:22.000Z
2022-03-04T03:32:06.000Z
# -*- coding: utf-8 -*- """ Created on Thu Dec 6 21:22:33 2018 @author: vangi """ from timeit import timeit setup = ''' import numpy as np np.random.seed(0) N_array = 200000 a_np = np.random.randn(N_array) b_np = np.random.randn(N_array) c_np = np.empty(N_array) def no_ufunc(a_np, b_np, c_np): c_np = a_np * ...
22.333333
83
0.635394
179
938
3.089385
0.256983
0.070524
0.065099
0.097649
0.64557
0.578662
0.502712
0.502712
0.352622
0.287523
0
0.053876
0.188699
938
42
83
22.333333
0.672799
0.078891
0
0.115385
0
0
0.703617
0.107351
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.269231
0
0
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
f9cf4cff9f1ee36f3f46ec1c7c81c7f6a57782b0
1,536
py
Python
transformer_2/data/processing/__init__.py
mingruimingrui/Transformer2
2b44289ee7c7312d699f2261c1e4ebccce0f21e2
[ "MIT" ]
null
null
null
transformer_2/data/processing/__init__.py
mingruimingrui/Transformer2
2b44289ee7c7312d699f2261c1e4ebccce0f21e2
[ "MIT" ]
1
2020-06-01T02:13:10.000Z
2020-06-01T02:13:10.000Z
transformer_2/data/processing/__init__.py
mingruimingrui/Transformer2
2b44289ee7c7312d699f2261c1e4ebccce0f21e2
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import unicode_literals # Registry from transformer_2.data.processing._registry import PROCESSOR_REGISTRY, \ BaseProcessor, register_processor, Compose, make_processor_from_list # Generic processors from transformer_2.data.processing.general import HtmlUnesca...
34.909091
77
0.802734
140
1,536
8.535714
0.35
0.100418
0.107113
0.133891
0.580753
0.45523
0.125523
0.125523
0.125523
0.125523
0
0.005895
0.116536
1,536
43
78
35.72093
0.874724
0.067708
0
0
0
0
0.245442
0.033661
0
0
0
0
0
1
0
false
0
0.357143
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f9d231776637662c74f12d56ca75ccd899e7d32a
7,223
py
Python
pydmc/pydmc.py
TeradataInteractiveAmericas/pydmc
817899311f7908436fba7e1fc553a019bafadcb6
[ "MIT" ]
1
2017-02-16T13:55:32.000Z
2017-02-16T13:55:32.000Z
pydmc/pydmc.py
TeradataInteractiveAmericas/pydmc
817899311f7908436fba7e1fc553a019bafadcb6
[ "MIT" ]
null
null
null
pydmc/pydmc.py
TeradataInteractiveAmericas/pydmc
817899311f7908436fba7e1fc553a019bafadcb6
[ "MIT" ]
null
null
null
""" PyDMC API Client """ import requests class DMC: def __init__(self,user,pwrd,host,v=5,content='json',accept='json'): self.user = user self.pwrd = pwrd self.host = "%s/api/rest/v%d" % (host,v) self.content = content self.accept = accept self.headers = { ...
29.72428
131
0.5668
785
7,223
5.118471
0.188535
0.006969
0.00672
0.005973
0.436536
0.414136
0.389497
0.389497
0.377551
0.377551
0
0.00316
0.299045
7,223
242
132
29.847107
0.79044
0.051364
0
0.447059
0
0
0.150426
0.025095
0
0
0
0.004132
0
0
null
null
0.017647
0.017647
null
null
0.094118
0
0
0
null
0
0
0
0
0
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
f9d3186f39a6e3865241f7bef73bfedbb15ea7d5
832
py
Python
COE/contents/building/__init__.py
Python-Project-Cheap-Empire/cheap-of-empire
44aaae29e4fadc9df46734f529031ce8c4bb3475
[ "MIT" ]
null
null
null
COE/contents/building/__init__.py
Python-Project-Cheap-Empire/cheap-of-empire
44aaae29e4fadc9df46734f529031ce8c4bb3475
[ "MIT" ]
2
2022-01-31T21:05:15.000Z
2022-01-31T21:08:11.000Z
COE/contents/building/__init__.py
Python-Project-Cheap-Empire/cheap-of-empire
44aaae29e4fadc9df46734f529031ce8c4bb3475
[ "MIT" ]
1
2022-02-04T12:05:14.000Z
2022-02-04T12:05:14.000Z
from .archery_range import ArcheryRange from .barrack import Barrack from .building import Building from .dock import Dock from .farm import Farm from .granary import Granary from .market import Market from .military_building import MilitaryBuilding from .stable import Stable from .storage_building import StorageBuildi...
23.111111
51
0.740385
89
832
6.786517
0.348315
0.092715
0
0
0
0
0
0
0
0
0
0
0.179087
832
35
52
23.771429
0.884334
0
0
0
0
0
0.176683
0
0
0
0
0
0
1
0
false
0
0.470588
0
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f9d69be77fcbae4d67f52431660566569a03abe1
268
py
Python
src/cell.py
ViktorBusk/Machine-Learning-Number-Prediction
f9863ccdb623ed3bf83ca26faae310d56f087c4f
[ "MIT" ]
null
null
null
src/cell.py
ViktorBusk/Machine-Learning-Number-Prediction
f9863ccdb623ed3bf83ca26faae310d56f087c4f
[ "MIT" ]
null
null
null
src/cell.py
ViktorBusk/Machine-Learning-Number-Prediction
f9863ccdb623ed3bf83ca26faae310d56f087c4f
[ "MIT" ]
null
null
null
import pygame class Cell: def __init__(self, pos, dimensions, color): self.pos = pos self.dimensions = dimensions self.color = color def draw(self, screen): pygame.draw.rect(screen, self.color, ((self.pos), (self.dimensions)))
26.8
77
0.630597
33
268
5
0.393939
0.127273
0.145455
0
0
0
0
0
0
0
0
0
0.246269
268
10
77
26.8
0.816832
0
0
0
0
0
0
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
f9d7b799633ebd72932c23f0a6056d0edfbe48dc
2,194
py
Python
kblight.py
marklr/system76-kbdlight-cli
03ba5ce04c7abd7b125e6777aac7cf19c6651f51
[ "MIT" ]
null
null
null
kblight.py
marklr/system76-kbdlight-cli
03ba5ce04c7abd7b125e6777aac7cf19c6651f51
[ "MIT" ]
null
null
null
kblight.py
marklr/system76-kbdlight-cli
03ba5ce04c7abd7b125e6777aac7cf19c6651f51
[ "MIT" ]
null
null
null
#!/bin/env python3 import sys import plac import webcolors import os _COLOR_FILTERS = { '#': '', '(': '', ')': '', } LIGHT_CONTROLS = { 'left': '/sys/class/leds/system76::kbd_backlight/color_left', 'center': '/sys/class/leds/system76::kbd_backlight/color_center', 'right': '/sys/class/leds/sys...
26.119048
91
0.592981
294
2,194
4.278912
0.323129
0.072337
0.028617
0.047695
0.159777
0.159777
0.159777
0.071542
0.071542
0.071542
0
0.004292
0.256609
2,194
83
92
26.433735
0.767014
0.020055
0
0.190476
0
0
0.216946
0.081937
0
0
0
0
0
1
0.063492
false
0.063492
0.063492
0
0.174603
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f9ddbc50ba159c971816ef0bfcfea8bf2513c89c
5,972
py
Python
reporte.py
InoveProyectos/Buscador-Alquileres-Python
78379da88db7957cdc8c804e0491f2a796e2c706
[ "Unlicense" ]
1
2020-05-13T04:29:44.000Z
2020-05-13T04:29:44.000Z
reporte.py
InoveProyectos/Buscador-Alquileres-Python
78379da88db7957cdc8c804e0491f2a796e2c706
[ "Unlicense" ]
null
null
null
reporte.py
InoveProyectos/Buscador-Alquileres-Python
78379da88db7957cdc8c804e0491f2a796e2c706
[ "Unlicense" ]
3
2020-05-13T18:25:34.000Z
2020-11-24T16:19:37.000Z
#!/usr/bin/env python ''' Reporte búsqueda de alquileres de Inmuebles --------------------------- Autor: Inove Coding School Version: 1.0 Descripcion: Este script realiza reportes de los datos adquiridos de alquileres de inmuebles Reporte Nº 0: Visualizar todos los reportes juntos de estudio por ambientes y...
39.289474
146
0.641996
817
5,972
4.596083
0.307222
0.021305
0.034621
0.036751
0.333156
0.236485
0.187483
0.152064
0.121172
0.099867
0
0.036631
0.236604
5,972
152
147
39.289474
0.787015
0.295881
0
0.141176
0
0
0.151651
0
0
0
0
0.013158
0
1
0.011765
false
0
0.082353
0
0.105882
0.011765
0
0
0
null
0
0
0
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
f9de9cbd50628088d488c6c5b4c6b194981f73ef
3,043
py
Python
imap.py
cynsky/voyage_data_emails
3cc3b1364248dd3fed56e4c9f4c3ad619c6650ae
[ "MIT" ]
1
2020-09-22T16:24:31.000Z
2020-09-22T16:24:31.000Z
imap.py
cynsky/voyage_data_emails
3cc3b1364248dd3fed56e4c9f4c3ad619c6650ae
[ "MIT" ]
null
null
null
imap.py
cynsky/voyage_data_emails
3cc3b1364248dd3fed56e4c9f4c3ad619c6650ae
[ "MIT" ]
null
null
null
""" Read voyage data emails. """ import email from imaplib import IMAP4_SSL import logging OK = 'OK' logger = logging.getLogger(__name__) class EmailCheckError(Exception): pass class EmailServer: def __init__(self, server, username, password): self.password = password self.server = server self.username...
20.019737
73
0.692737
436
3,043
4.692661
0.286697
0.047898
0.050831
0.033724
0.150538
0.129032
0.043988
0.043988
0
0
0
0.009748
0.19093
3,043
151
74
20.152318
0.821284
0.308906
0
0.169492
0
0
0.202148
0
0
0
0
0
0
1
0.118644
false
0.084746
0.050847
0
0.254237
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
f9e3c2c814e617eb1250bbe52b5026a15b1d2778
366
py
Python
Python by Harish/Class 1/Loops.py
kai92a/Learning_Python
5195aeb950e21150838c44d7c6af87cd86d31301
[ "MIT" ]
null
null
null
Python by Harish/Class 1/Loops.py
kai92a/Learning_Python
5195aeb950e21150838c44d7c6af87cd86d31301
[ "MIT" ]
null
null
null
Python by Harish/Class 1/Loops.py
kai92a/Learning_Python
5195aeb950e21150838c44d7c6af87cd86d31301
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Sep 2 03:02:57 2021 @author: sgaa_ """ print ("for loop") for i in range (1,20): print (i) print ("while loop") i=1 while i<12: print (i) i+=1 if 1 in range(2,5): print ("Yes 1 is in the range") elif 3 in range (3,5): print ("Yes 1 is in range 2") el...
14.64
41
0.565574
72
366
2.861111
0.486111
0.135922
0.07767
0.097087
0.135922
0.135922
0
0
0
0
0
0.108209
0.26776
366
24
42
15.25
0.660448
0.202186
0
0.142857
0
0
0.299296
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
dda9ad1f88ac589e37e334d17add8aea6f4a5cd4
2,694
py
Python
main.py
vojtsek/twitter-sentiment
8f3fbb7be8ac9c0e786b5a58253a24ee8b3f5dae
[ "MIT" ]
null
null
null
main.py
vojtsek/twitter-sentiment
8f3fbb7be8ac9c0e786b5a58253a24ee8b3f5dae
[ "MIT" ]
null
null
null
main.py
vojtsek/twitter-sentiment
8f3fbb7be8ac9c0e786b5a58253a24ee8b3f5dae
[ "MIT" ]
null
null
null
#!/usr/bin/env python import logging import json import os import os.path as path from collections import OrderedDict import argparse import tweepy from tweepy import Stream import twitter_config from tweet_writer_listener import TweetWriterListener CITIES = ['San Francisco', 'New York', 'Boston', 'Los Angeles', '...
32.071429
99
0.682257
349
2,694
5.103152
0.438395
0.026951
0.037058
0.015722
0.113981
0.033127
0
0
0
0
0
0.004153
0.19562
2,694
83
100
32.457831
0.81772
0.017075
0
0.032258
0
0
0.137944
0
0
0
0
0
0
0
null
null
0.016129
0.16129
null
null
0.016129
0
0
0
null
0
0
0
0
0
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
ddb4c04468f28635f43140d7b43e540cbcb4c57d
632
py
Python
main.py
jalexray/CSV-Empty-Finder
69d545ec9a757d331dbd2b1b298842de2c079129
[ "MIT" ]
null
null
null
main.py
jalexray/CSV-Empty-Finder
69d545ec9a757d331dbd2b1b298842de2c079129
[ "MIT" ]
null
null
null
main.py
jalexray/CSV-Empty-Finder
69d545ec9a757d331dbd2b1b298842de2c079129
[ "MIT" ]
null
null
null
# imports import csv # open the file with open("example.csv") as file: reader = csv.reader(file) # prep to store names of columns titleRow = reader.next() #rest = [row for row in reader] columnList = {} for row in reader: iterator = 0 cellList = [] for cell in row: if cell == "": cellList.app...
20.387097
76
0.629747
82
632
4.853659
0.47561
0.030151
0.040201
0.070352
0
0
0
0
0
0
0
0.00813
0.221519
632
30
77
21.066667
0.800813
0.264241
0
0
0
0
0.030837
0
0
0
0
0
0
0
null
null
0
0.058824
null
null
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ddb942c43951bea6ec9329f93418d8030cd886cd
249
py
Python
src/methods/defs.py
karlotness/nn-benchmark
65ddb2f3d9934db5718417fd800278a97f627ba2
[ "MIT" ]
13
2021-08-04T21:07:50.000Z
2022-02-17T20:16:41.000Z
src/methods/defs.py
karlotness/nn-benchmark
65ddb2f3d9934db5718417fd800278a97f627ba2
[ "MIT" ]
null
null
null
src/methods/defs.py
karlotness/nn-benchmark
65ddb2f3d9934db5718417fd800278a97f627ba2
[ "MIT" ]
1
2021-10-03T00:37:05.000Z
2021-10-03T00:37:05.000Z
from collections import namedtuple import torch NONLINEARITIES = { "tanh": torch.nn.Tanh, "relu": torch.nn.ReLU, } TimeDerivative = namedtuple("TimeDerivative", ["dq_dt", "dp_dt"]) StepPrediction = namedtuple("StepPrediction", ["q", "p"])
22.636364
65
0.698795
27
249
6.37037
0.592593
0.081395
0
0
0
0
0
0
0
0
0
0
0.136546
249
10
66
24.9
0.8
0
0
0
0
0
0.192771
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ddc3d50c63fd6d2bc041dad2539a4d22872461ff
699
py
Python
accounts/views.py
airmoor/learnweb
5867eadaca45b847f6fba8fd0be8a8ccdaeceea0
[ "MIT" ]
null
null
null
accounts/views.py
airmoor/learnweb
5867eadaca45b847f6fba8fd0be8a8ccdaeceea0
[ "MIT" ]
null
null
null
accounts/views.py
airmoor/learnweb
5867eadaca45b847f6fba8fd0be8a8ccdaeceea0
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.decorators import login_required from django.urls import reverse_lazy from django.views import generic, View class SignUp(generic.CreateView): form_class = UserCreationForm success_url = revers...
27.96
64
0.726753
85
699
5.835294
0.458824
0.100806
0.068548
0.084677
0
0
0
0
0
0
0
0
0.184549
699
24
65
29.125
0.870175
0
0
0
0
0
0.081545
0.035765
0
0
0
0
0
1
0.055556
false
0
0.277778
0
0.722222
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
ddcc7c8aaeb73f494f7fe3439f603884d9bf5226
480
py
Python
ontask/migrations/0056_auto_20190323_1122.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
33
2017-12-02T04:09:24.000Z
2021-11-07T08:41:57.000Z
ontask/migrations/0056_auto_20190323_1122.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
189
2017-11-16T04:06:29.000Z
2022-03-11T23:35:59.000Z
ontask/migrations/0056_auto_20190323_1122.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
30
2017-11-30T03:35:44.000Z
2022-01-31T03:08:08.000Z
# Generated by Django 2.1.7 on 2019-03-23 00:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ontask', '0055_action_nrows_all_false'), ] operations = [ migrations.AlterField( model_name='action', name='nrows_al...
25.263158
132
0.641667
57
480
5.263158
0.754386
0.053333
0.086667
0
0
0
0
0
0
0
0
0.052778
0.25
480
18
133
26.666667
0.780556
0.09375
0
0
1
0
0.21709
0.062356
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
ddd0869ac7a679df101a618ba69ece08f889a431
596
py
Python
rlunch/lunch/migrations/0002_talk_how_was_it.py
acdh-oeaw/django-generic-apps
4af63a8a95826ede787347fc86951e933ccdbc6c
[ "MIT" ]
null
null
null
rlunch/lunch/migrations/0002_talk_how_was_it.py
acdh-oeaw/django-generic-apps
4af63a8a95826ede787347fc86951e933ccdbc6c
[ "MIT" ]
null
null
null
rlunch/lunch/migrations/0002_talk_how_was_it.py
acdh-oeaw/django-generic-apps
4af63a8a95826ede787347fc86951e933ccdbc6c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2017-02-02 14:22 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('vocabs', '0002_auto_20170202_1030'), ('lunch', '0001...
25.913043
129
0.644295
71
596
5.225352
0.71831
0.06469
0.075472
0.118598
0
0
0
0
0
0
0
0.078091
0.22651
596
22
130
27.090909
0.726681
0.112416
0
0
1
0
0.148289
0.043726
0
0
0
0
0
1
0
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ddd11496dad00035846edb605bc410d5d8e9ecb5
1,549
py
Python
cyborg/accelerator/drivers/nic/base.py
NeCTAR-RC/cyborg
e0fab29181467c0c72667ea26a8b04c53b238ddb
[ "Apache-2.0" ]
37
2017-03-23T02:10:35.000Z
2021-11-25T07:57:36.000Z
cyborg/accelerator/drivers/nic/base.py
openstack/nomad
8cd846a16c2da04c2f204b02b90db814e32acd63
[ "Apache-2.0" ]
null
null
null
cyborg/accelerator/drivers/nic/base.py
openstack/nomad
8cd846a16c2da04c2f204b02b90db814e32acd63
[ "Apache-2.0" ]
27
2017-07-14T02:26:24.000Z
2022-01-19T07:55:10.000Z
# Copyright 2020 Intel, 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.788462
75
0.672692
197
1,549
5.243655
0.548223
0.058083
0.025169
0.030978
0
0
0
0
0
0
0
0.011054
0.240801
1,549
51
76
30.372549
0.867347
0.568108
0
0.285714
0
0
0.082616
0
0
0
0.010327
0
0
1
0.214286
false
0
0
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ddd886a1ce049e2677d31fc3b30fe240938605cc
208
py
Python
day 5 2nd.py
shalini-22/Letsupgrade-Python-essentials
fda98097be08dbb9bfbba6e0622954c6eba0f7f3
[ "MIT" ]
null
null
null
day 5 2nd.py
shalini-22/Letsupgrade-Python-essentials
fda98097be08dbb9bfbba6e0622954c6eba0f7f3
[ "MIT" ]
null
null
null
day 5 2nd.py
shalini-22/Letsupgrade-Python-essentials
fda98097be08dbb9bfbba6e0622954c6eba0f7f3
[ "MIT" ]
null
null
null
def prime_num(n): if n>1: for i in range (2,n): if n%i==0: return False return True lst_prime=list(filter(prime_num,range(1,2500))) print(len(lst_prime))
26
48
0.533654
34
208
3.147059
0.617647
0.149533
0.074766
0
0
0
0
0
0
0
0
0.058394
0.341346
208
8
49
26
0.722628
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
dde38c8eda97903a41ce2ff61801ff8773e4a599
1,124
py
Python
dns.py
bernd-wechner/OpenWRT-Tools
4ca2eb0d0774e0d97b48a485fa18a4d4bbc3f108
[ "Unlicense" ]
3
2017-06-12T11:03:56.000Z
2021-04-11T20:09:47.000Z
dns.py
bernd-wechner/OpenWRT-Tools
4ca2eb0d0774e0d97b48a485fa18a4d4bbc3f108
[ "Unlicense" ]
null
null
null
dns.py
bernd-wechner/OpenWRT-Tools
4ca2eb0d0774e0d97b48a485fa18a4d4bbc3f108
[ "Unlicense" ]
1
2021-08-25T02:39:40.000Z
2021-08-25T02:39:40.000Z
#!/usr/bin/python # # identify the DNS servers used on the WAN interface. # # Tries to find the owner of the DNS as well. # # DNS spoofing is one of the entry points for malware. I haven't seen it since I dumped # Windows at home but in past have seen malware that would change the DNS config on # the router. Kind of ...
30.378378
109
0.669929
178
1,124
4.151685
0.511236
0.073072
0.032476
0
0
0
0
0
0
0
0
0.002315
0.231317
1,124
37
110
30.378378
0.853009
0.379893
0
0.272727
0
0
0.143895
0.030523
0
0
0
0
0
0
null
null
0
0.045455
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
dde74c584ce2a956ca4842502658de5be6e68e74
4,035
py
Python
systrade/models/strategies.py
pdghawk/systrade
2200b950a3172f22a424c9e547aa6fa982f54c46
[ "BSD-3-Clause" ]
1
2022-02-09T20:16:51.000Z
2022-02-09T20:16:51.000Z
systrade/models/strategies.py
pdghawk/systrade
2200b950a3172f22a424c9e547aa6fa982f54c46
[ "BSD-3-Clause" ]
null
null
null
systrade/models/strategies.py
pdghawk/systrade
2200b950a3172f22a424c9e547aa6fa982f54c46
[ "BSD-3-Clause" ]
null
null
null
""" The strategies module provides utilities for designing trading strategies Notes ------ All strategies should inherit from BaseStrategy, and provide a get_order_list method. For details of the requirements of this method, see its docstring in base/BaseStrategy, or in the method within SimpleStrategy in this module....
44.340659
91
0.601983
488
4,035
4.860656
0.430328
0.023187
0.025295
0.012648
0.083474
0.06914
0.05312
0
0
0
0
0.005531
0.327881
4,035
90
92
44.833333
0.8691
0.464436
0
0.2
0
0
0.07489
0
0
0
0
0.011111
0
1
0.075
false
0
0.15
0.025
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ddea413a66b41dee24d47cda24474b0ccba4f292
1,955
py
Python
pyinterfaces/enum/ENUM_USAGE.py
OaklandPeters/pyinterfaces
c60efaad92e8d2e1ec25df718dfb43f034a083bb
[ "MIT" ]
null
null
null
pyinterfaces/enum/ENUM_USAGE.py
OaklandPeters/pyinterfaces
c60efaad92e8d2e1ec25df718dfb43f034a083bb
[ "MIT" ]
null
null
null
pyinterfaces/enum/ENUM_USAGE.py
OaklandPeters/pyinterfaces
c60efaad92e8d2e1ec25df718dfb43f034a083bb
[ "MIT" ]
null
null
null
""" Provides example of how I would like `enum` to be used. Implementation details: (1) Uses Metaclass for two reasons: (1.1) So that the subclasses can be iterable (we want class objects, not instance objects) (1.2) To automatically collect Enumeratee enum.Enumerator EnumSet, Partition, Basis Produc...
29.621212
130
0.707417
258
1,955
5.325581
0.503876
0.050946
0.055313
0.030568
0
0
0
0
0
0
0
0.006317
0.190281
1,955
65
131
30.076923
0.861655
0.571867
0
0
0
0
0.164794
0
0
0
0
0.015385
0
1
0.045455
false
0
0.045455
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ddee87075899569423a1b5f9ff3b0f5185a1f91c
3,677
py
Python
noname.py
schellenberg/lyric-grabber-for-plex
f449b480d4c234ff9d358fc7d9a0e729e9ed45e5
[ "MIT" ]
26
2019-09-30T02:29:05.000Z
2022-01-17T20:10:54.000Z
noname.py
schellenberg/lyric-grabber-for-plex
f449b480d4c234ff9d358fc7d9a0e729e9ed45e5
[ "MIT" ]
5
2019-10-02T18:53:48.000Z
2020-05-06T14:07:25.000Z
noname.py
schellenberg/lyric-grabber-for-plex
f449b480d4c234ff9d358fc7d9a0e729e9ed45e5
[ "MIT" ]
6
2019-09-30T13:04:22.000Z
2022-03-24T17:47:16.000Z
# -*- coding: utf-8 -*- ########################################################################### ## Python code generated with wxFormBuilder (version Oct 26 2018) ## http://www.wxformbuilder.org/ ## ## PLEASE DO *NOT* EDIT THIS FILE! ########################################################################### impor...
39.537634
213
0.689421
471
3,677
5.22293
0.269639
0.058943
0.062602
0.045528
0.402846
0.35935
0.313821
0.209756
0.152846
0.111382
0
0.018496
0.117759
3,677
92
214
39.967391
0.739827
0.044058
0
0
1
0
0.058107
0
0
0
0
0
0
1
0.046512
false
0.023256
0.046512
0
0.116279
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
ddefc795048cf6d437ec89f16bc748675c74df14
1,371
py
Python
feature_extraction/cli.py
widoptimization-willett/feature-extraction
25e963e3383673aad6aedfd504e69a1df7f47f9a
[ "Apache-2.0" ]
null
null
null
feature_extraction/cli.py
widoptimization-willett/feature-extraction
25e963e3383673aad6aedfd504e69a1df7f47f9a
[ "Apache-2.0" ]
null
null
null
feature_extraction/cli.py
widoptimization-willett/feature-extraction
25e963e3383673aad6aedfd504e69a1df7f47f9a
[ "Apache-2.0" ]
null
null
null
import json import click from tqdm import tqdm import numpy as np from PIL import Image from skimage.exposure import rescale_intensity from . import extraction, pipeline np.seterr(all='raise') @click.command() @click.argument('pipeline_manifest', required=True) @click.argument('files', nargs=-1, required=True) # un...
32.642857
106
0.745441
196
1,371
5.112245
0.535714
0.047904
0
0
0
0
0
0
0
0
0
0.006785
0.140044
1,371
41
107
33.439024
0.843087
0.247994
0
0
0
0
0.060725
0
0
0
0
0.02439
0.04
1
0.04
false
0
0.28
0
0.32
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
ddf5245a022beb682381f18774e07b7d784a9065
1,150
py
Python
Tests/test_protected_views.py
ShavImigne/PlayChess
1eb0dcaf1d58b02bdc880f8e51857a87696ee461
[ "MIT" ]
12
2018-05-02T13:13:41.000Z
2022-03-13T15:37:29.000Z
Tests/test_protected_views.py
ShavImigne/PlayChess
1eb0dcaf1d58b02bdc880f8e51857a87696ee461
[ "MIT" ]
24
2018-05-03T13:06:56.000Z
2019-08-13T14:49:03.000Z
Tests/test_protected_views.py
ShavImigne/PlayChess
1eb0dcaf1d58b02bdc880f8e51857a87696ee461
[ "MIT" ]
17
2018-05-03T13:46:40.000Z
2021-06-26T13:57:05.000Z
from .client import client from .config import db_pass, db_user import string import random def test_login_logout(client): return_login_status = client.post('/login', data={"username": db_user, "password": db_pass}) # Redirected to home assert return_login_status.status_code==302 # Now that user is lo...
41.071429
112
0.736522
169
1,150
4.786982
0.372781
0.086527
0.080346
0.063041
0.31026
0
0
0
0
0
0
0.027083
0.165217
1,150
27
113
42.592593
0.815625
0.22087
0
0
0
0
0.065315
0
0
0
0
0
0.277778
1
0.055556
false
0.111111
0.222222
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ddf773cd5e3b923f5c8398a0b49c16c0818baa89
1,575
py
Python
Tiny-Blockchain/Blockchain.py
gusjasponde/Tiny-Blockchain
e1abe11f70b845cc461afd329c54d5d7d79fd9c8
[ "MIT" ]
2
2021-04-17T17:36:45.000Z
2021-06-22T21:48:54.000Z
Tiny-Blockchain/Blockchain.py
gusjasponde/Tiny-Blockchain
e1abe11f70b845cc461afd329c54d5d7d79fd9c8
[ "MIT" ]
null
null
null
Tiny-Blockchain/Blockchain.py
gusjasponde/Tiny-Blockchain
e1abe11f70b845cc461afd329c54d5d7d79fd9c8
[ "MIT" ]
1
2017-10-24T00:53:49.000Z
2017-10-24T00:53:49.000Z
import hashlib import json import datetime import Util #Defining the block into our blockchain class Block: def __init__(self, index, timestamp, data, previous_hash): self.index = index self.timestamp = timestamp.isoformat() self.data = data self.previous_hash = previous_hash ...
30.288462
129
0.675556
208
1,575
4.918269
0.317308
0.070381
0.048876
0.039101
0
0
0
0
0
0
0
0.010518
0.215238
1,575
51
130
30.882353
0.817152
0.07746
0
0
0
0
0.05521
0
0
0
0
0
0
0
null
null
0
0.105263
null
null
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ddfeb380f562b06f02d54e1879c575812aad04dd
1,282
py
Python
publication_backbone/views/promotion.py
Excentrics/publication-backbone
65c9820308b09a6ae1086c265f8d49e36f3724b9
[ "BSD-3-Clause" ]
6
2016-05-19T14:59:51.000Z
2020-03-19T10:08:29.000Z
publication_backbone/views/promotion.py
Excentrics/publication-backbone
65c9820308b09a6ae1086c265f8d49e36f3724b9
[ "BSD-3-Clause" ]
null
null
null
publication_backbone/views/promotion.py
Excentrics/publication-backbone
65c9820308b09a6ae1086c265f8d49e36f3724b9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from publication_backbone.views.publication import PublicationListHybridView from publication_backbone import conf as config #============================================================================== # PromotionListHybridView #===============================================================...
42.733333
132
0.620125
134
1,282
5.679104
0.410448
0.099869
0.060447
0.070959
0.141919
0
0
0
0
0
0
0.000935
0.165367
1,282
30
132
42.733333
0.71028
0.212949
0
0
0
0
0.087487
0
0
0
0
0
0
1
0.176471
false
0
0.117647
0.058824
0.647059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fb00e00f9183ef8f33d3c9279268db8384609198
2,785
py
Python
astwro/tools/pickstat.py
majkelx/astwro
4a9bbe3e4757c4076ad7c0d90cf08e38dab4e794
[ "MIT" ]
6
2017-06-15T20:34:51.000Z
2020-04-15T14:21:43.000Z
astwro/tools/pickstat.py
majkelx/astwro
4a9bbe3e4757c4076ad7c0d90cf08e38dab4e794
[ "MIT" ]
18
2017-08-15T20:53:55.000Z
2020-10-05T23:40:34.000Z
astwro/tools/pickstat.py
majkelx/astwro
4a9bbe3e4757c4076ad7c0d90cf08e38dab4e794
[ "MIT" ]
2
2017-11-06T15:33:53.000Z
2020-10-02T21:06:05.000Z
#! /usr/bin/env python # coding=utf-8 from __future__ import print_function, division from scipy.stats import sigmaclip from astwro.pydaophot import daophot from astwro.pydaophot import fname from astwro.pydaophot import allstar from astwro.starlist import read_dao_file from astwro.starlist import write_ds9_regions ...
34.8125
99
0.65386
379
2,785
4.617414
0.403694
0.028571
0.038857
0.042857
0.053714
0.053714
0
0
0
0
0
0.003819
0.247756
2,785
79
100
35.253165
0.831504
0.13465
0
0
0
0
0.281784
0
0
0
0
0.012658
0
1
0.08
false
0
0.18
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
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
fb065d69e3fc3e1cb562662179076e51434cc538
7,933
py
Python
portality/settings.py
genonfire/portality
1d94382fa0e6685f106ae18d4a44f4f4b5946771
[ "MIT" ]
2
2018-01-16T04:01:57.000Z
2020-04-06T14:07:11.000Z
portality/settings.py
genonfire/portality
1d94382fa0e6685f106ae18d4a44f4f4b5946771
[ "MIT" ]
null
null
null
portality/settings.py
genonfire/portality
1d94382fa0e6685f106ae18d4a44f4f4b5946771
[ "MIT" ]
1
2017-12-31T02:45:38.000Z
2017-12-31T02:45:38.000Z
# -*- coding: utf-8 -*- """ Django settings for portality project. Generated by 'django-admin startproject' using Django 1.8.17. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/...
27.167808
83
0.63343
939
7,933
5.198083
0.401491
0.037287
0.01639
0.030731
0.137062
0.08236
0.060438
0.060438
0.01639
0
0
0.011563
0.193243
7,933
291
84
27.261168
0.751094
0.182151
0
0.014151
1
0.009434
0.370186
0.202484
0
0
0
0
0
1
0
false
0.023585
0.014151
0
0.014151
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
fb0c48302e90f96e57473fb786d4ea50f4be0f46
190
py
Python
cbot/__init__.py
wangyitao/cbot
6b2500f5118ddd5ef581f31104e70e5a57b72f7d
[ "MIT" ]
8
2018-10-18T09:15:36.000Z
2019-09-01T04:42:59.000Z
cbot/__init__.py
wangyitao/cbot
6b2500f5118ddd5ef581f31104e70e5a57b72f7d
[ "MIT" ]
1
2018-10-19T06:35:38.000Z
2018-10-19T06:35:38.000Z
cbot/__init__.py
wangyitao/cbot
6b2500f5118ddd5ef581f31104e70e5a57b72f7d
[ "MIT" ]
5
2018-10-19T05:56:26.000Z
2019-09-01T04:43:11.000Z
from .main import CBot __version__ = '0.1.0' __author__ = 'Felix Wang' __email__ = 'felix2@foxmail.com' __url__ = 'https://github.com/wangyitao/cbot' __all__ = ( 'CBot', )
15.833333
46
0.636842
23
190
4.391304
0.826087
0
0
0
0
0
0
0
0
0
0
0.026667
0.210526
190
11
47
17.272727
0.646667
0
0
0
0
0
0.393258
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fb176c1fa7c1a70a322d3da71abe867bb4b0b96a
2,431
py
Python
spacy/tests/regression/test_issue999.py
cmgreivel/spaCy
a31506e06060c559abfeda043503935691af2e98
[ "MIT" ]
88
2018-05-06T17:28:23.000Z
2022-03-06T20:19:16.000Z
spacy/tests/regression/test_issue999.py
cmgreivel/spaCy
a31506e06060c559abfeda043503935691af2e98
[ "MIT" ]
12
2018-07-19T15:11:57.000Z
2021-08-05T11:58:29.000Z
spacy/tests/regression/test_issue999.py
cmgreivel/spaCy
a31506e06060c559abfeda043503935691af2e98
[ "MIT" ]
10
2018-07-28T22:43:04.000Z
2020-11-22T22:58:21.000Z
from __future__ import unicode_literals import os import random import contextlib import shutil import pytest import tempfile from pathlib import Path import pathlib from ...gold import GoldParse from ...pipeline import EntityRecognizer from ...language import Language try: unicode except NameError: unicode ...
29.646341
88
0.633073
326
2,431
4.58589
0.472393
0.03612
0.028094
0.03612
0.073579
0.073579
0.049498
0.049498
0.049498
0
0
0.013356
0.260798
2,431
81
89
30.012346
0.818587
0.128342
0
0.032258
0
0
0.082696
0
0
0
0
0.012346
0.016129
1
0.048387
false
0
0.193548
0.016129
0.258065
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
fb2280120f9263888a0811988826a4305d6b98aa
3,525
py
Python
bananas/transformers/running_stats.py
owahltinez/bananas
4d37af1713b7f166ead3459a7004748f954d336e
[ "MIT" ]
null
null
null
bananas/transformers/running_stats.py
owahltinez/bananas
4d37af1713b7f166ead3459a7004748f954d336e
[ "MIT" ]
null
null
null
bananas/transformers/running_stats.py
owahltinez/bananas
4d37af1713b7f166ead3459a7004748f954d336e
[ "MIT" ]
null
null
null
""" Threshold-based transformers """ from typing import Dict, Iterable, Union from ..changemap.changemap import ChangeMap from ..utils.arrays import flatten, shape_of_array from .base import ColumnHandlingTransformer class RunningStats(ColumnHandlingTransformer): """ A helpful transformer that does not perfo...
36.340206
102
0.588652
430
3,525
4.604651
0.390698
0.017677
0.032323
0.022727
0.091919
0.064646
0
0
0
0
0
0.016942
0.296738
3,525
96
103
36.71875
0.781767
0.323404
0
0.04
0
0
0.037786
0
0
0
0
0.020833
0
1
0.08
false
0
0.08
0
0.2
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
fb22dc5bf5bd9013f1aaf4889e65a75279b6e791
197
py
Python
1-beginner/1013.py
alenvieira/uri-online-judge-solutions
ca5ae7064d84af4dae12fc37d4d14ee441e49d06
[ "MIT" ]
null
null
null
1-beginner/1013.py
alenvieira/uri-online-judge-solutions
ca5ae7064d84af4dae12fc37d4d14ee441e49d06
[ "MIT" ]
null
null
null
1-beginner/1013.py
alenvieira/uri-online-judge-solutions
ca5ae7064d84af4dae12fc37d4d14ee441e49d06
[ "MIT" ]
null
null
null
line = input() (a, b, c) = [int(i) for i in line.split(' ')] greatest1 = (a + b + abs(a - b)) / 2 greatest2 = int((greatest1 + c + abs(greatest1 - c)) / 2) print('{} eh o maior'.format(greatest2))
32.833333
57
0.568528
33
197
3.393939
0.575758
0.053571
0
0
0
0
0
0
0
0
0
0.044304
0.19797
197
5
58
39.4
0.664557
0
0
0
0
0
0.071066
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
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
fb3473188063f91e4e0dd179c38bc4a0e03e103e
4,523
py
Python
backend/tests/date_arr_test.py
byamba3/mobilemetrics-backend
2e6c53325ecff842bde8c8fe19de220e8f90cb1d
[ "Unlicense" ]
null
null
null
backend/tests/date_arr_test.py
byamba3/mobilemetrics-backend
2e6c53325ecff842bde8c8fe19de220e8f90cb1d
[ "Unlicense" ]
1
2018-08-14T21:26:02.000Z
2018-08-14T21:26:16.000Z
backend/tests/date_arr_test.py
byamba3/mobilemetrics-backend
2e6c53325ecff842bde8c8fe19de220e8f90cb1d
[ "Unlicense" ]
null
null
null
import datetime from calendar import monthrange import calendar import numpy as np ####### #For generate origin repayment schedule date and days columns ####### start_day = 1 start_month = 1 start_year = 2012 num_installment = 12 installment_time_period = 'months' change_col_idx = 1 change_row_idx = 2 change_val = 10...
35.335938
137
0.689808
719
4,523
3.995828
0.168289
0.063348
0.050122
0.037591
0.599373
0.465019
0.409328
0.37661
0.364079
0.341107
0
0.025704
0.191466
4,523
127
138
35.614173
0.759913
0.084015
0
0.293478
1
0
0.050926
0
0
0
0
0.007874
0
1
0.032609
false
0
0.043478
0
0.163043
0.065217
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
fb3a87c53bf0b6e09c757714ba3aaf427f9aff41
1,720
py
Python
aws_lambda/lambda.py
bluthen/utilbula_list
dbe4dfd273c7fa37553d91c5bde8744794ccba70
[ "Apache-2.0" ]
null
null
null
aws_lambda/lambda.py
bluthen/utilbula_list
dbe4dfd273c7fa37553d91c5bde8744794ccba70
[ "Apache-2.0" ]
null
null
null
aws_lambda/lambda.py
bluthen/utilbula_list
dbe4dfd273c7fa37553d91c5bde8744794ccba70
[ "Apache-2.0" ]
null
null
null
import json import base64 import boto3 import uuid import traceback def valid_uuid(uuid_str): try: val = uuid.UUID(uuid_str, version=4) return True except ValueError: return False def lambda_handler(event, context): # TODO implement print(event, context) method = event['...
27.741935
97
0.568023
203
1,720
4.763547
0.37931
0.132368
0.034126
0.071355
0.11789
0
0
0
0
0
0
0.034618
0.261047
1,720
61
98
28.196721
0.7262
0.073256
0
0.111111
0
0
0.205419
0.031506
0
0
0
0.016393
0
1
0.044444
false
0
0.111111
0
0.355556
0.044444
0
0
0
null
0
0
0
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
fb3db8f6cafb78c9e368cf61c425d4648f50a4a0
8,109
py
Python
R2Py/pre_data_chk.py
OpenBookProjects/ipynb
72a28109e8e30aea0b9c6713e78821e4affa2e33
[ "MIT" ]
6
2015-06-08T12:50:14.000Z
2018-11-20T10:05:01.000Z
R2Py/pre_data_chk.py
OpenBookProjects/ipynb
72a28109e8e30aea0b9c6713e78821e4affa2e33
[ "MIT" ]
null
null
null
R2Py/pre_data_chk.py
OpenBookProjects/ipynb
72a28109e8e30aea0b9c6713e78821e4affa2e33
[ "MIT" ]
8
2016-01-26T14:12:50.000Z
2021-02-20T14:24:09.000Z
# -*- coding: utf-8 -*- '''check and clean and export as .csv - 150602 pike aTimeLogger2 date into .csv - 150601 make handlog export all date into *_all.csv - 150525 make handlog wxport 2types files ''' import os import sys import fnmatch def _load_timeline(flines,fpath): _titles = flines[0] _exp = ""...
30.715909
82
0.436305
1,053
8,109
3.076923
0.155745
0.023457
0.012963
0.012346
0.262037
0.150309
0.105247
0.066049
0.044444
0.021605
0
0.028053
0.402146
8,109
263
83
30.8327
0.640264
0.081761
0
0.235294
0
0
0.072367
0.01371
0
0
0
0
0
0
null
null
0.034314
0.014706
null
null
0.014706
0
0
0
null
0
0
0
0
0
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
348cdede6c52f1578247987d1f2b6285625e722a
1,800
py
Python
scripts/gan/conditional_dcgan/gen_data_from_img.py
hiroyasuakada/ros_start
10221ad2bcaefa4aaadc6c90424a3751126ac256
[ "MIT" ]
null
null
null
scripts/gan/conditional_dcgan/gen_data_from_img.py
hiroyasuakada/ros_start
10221ad2bcaefa4aaadc6c90424a3751126ac256
[ "MIT" ]
null
null
null
scripts/gan/conditional_dcgan/gen_data_from_img.py
hiroyasuakada/ros_start
10221ad2bcaefa4aaadc6c90424a3751126ac256
[ "MIT" ]
null
null
null
# generate data from bag images from PIL import Image from pathlib import Path import os, glob # manipulate file or directory import numpy as np class DataArrangement(object): def __init__(self): self.path = Path(__file__).parent self.current_directories = ['not_traking', 'traking'] self...
36.734694
97
0.566111
208
1,800
4.649038
0.307692
0.113754
0.045502
0.046536
0.109617
0
0
0
0
0
0
0.003273
0.321111
1,800
48
98
37.5
0.788052
0.081111
0
0
1
0
0.051578
0.013956
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.222222
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
348dadc81585ed38d6f51d902f482767add11796
2,484
py
Python
backend/apps/cmdb/models/field.py
codelieche/erp
96861ff63a63a93918fbd5181ffb2646446d0eec
[ "MIT" ]
null
null
null
backend/apps/cmdb/models/field.py
codelieche/erp
96861ff63a63a93918fbd5181ffb2646446d0eec
[ "MIT" ]
29
2020-06-05T19:57:11.000Z
2022-02-26T13:42:36.000Z
backend/apps/cmdb/models/field.py
codelieche/erp
96861ff63a63a93918fbd5181ffb2646446d0eec
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from django.db import models from account.models import User # from cmdb.types import get_instance from cmdb.models import Model class Field(models.Model): """ 资产模型的字段 """ code = models.SlugField(verbose_name="字段", max_length=40) name = models.CharField(verbose_name="字段(中文...
38.8125
107
0.667069
296
2,484
5.472973
0.405405
0.115432
0.040123
0.052469
0
0
0
0
0
0
0
0.005081
0.207729
2,484
63
108
39.428571
0.818089
0.267311
0
0
0
0
0.049438
0
0
0
0
0
0
1
0.035714
false
0
0.107143
0
0.75
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
3495b6bc67d0421d48767015a4e9b3c968d3cfd4
3,468
py
Python
2016/qualification/sol.py
victorWeiFreelancer/Hashcode
e9cac8531f07962fedbfba6605acfa6e6067747d
[ "MIT" ]
null
null
null
2016/qualification/sol.py
victorWeiFreelancer/Hashcode
e9cac8531f07962fedbfba6605acfa6e6067747d
[ "MIT" ]
null
null
null
2016/qualification/sol.py
victorWeiFreelancer/Hashcode
e9cac8531f07962fedbfba6605acfa6e6067747d
[ "MIT" ]
null
null
null
import sys import math from time import gmtime, strftime sys.dont_write_bytecode = True class Position(): def __init__(self, x, y): super().__init__() self.x, self.y = x, y def distance(pos1, pos2): return ((pos1.x - pos2.x)**2 + (pos1.y - pos2.y)**2 )**0.5 class Warehouse(object): def __...
30.421053
83
0.531142
462
3,468
3.891775
0.218615
0.046719
0.066741
0.050056
0.545606
0.444939
0.318687
0.219132
0.194661
0.137931
0
0.013547
0.297578
3,468
114
84
30.421053
0.724548
0.0594
0
0.303371
0
0
0.005218
0
0
0
0
0
0
0
null
null
0
0.033708
null
null
0.011236
0
0
0
null
0
0
0
0
0
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
3496f98bc54d566d0b2f81898c8f900cd96ce375
2,313
py
Python
app/__init__.py
doshmajhan/python-idp
55be99afd02de4e8b0840c0a2236906d4b9a1827
[ "MIT" ]
1
2021-06-13T18:29:20.000Z
2021-06-13T18:29:20.000Z
app/__init__.py
doshmajhan/python-idp
55be99afd02de4e8b0840c0a2236906d4b9a1827
[ "MIT" ]
1
2022-03-30T05:37:09.000Z
2022-03-30T05:37:09.000Z
app/__init__.py
doshmajhan/python-idp
55be99afd02de4e8b0840c0a2236906d4b9a1827
[ "MIT" ]
null
null
null
from flask import Flask from flask_restful import Api from saml2 import saml, samlp from saml2.config import IdPConfig from saml2.mdstore import MetadataStore from saml2.server import Server from app.config import config from app.database import db from app.resources.idp_config import IdpConfigResource from app.resour...
31.684932
87
0.736273
297
2,313
5.579125
0.276094
0.038021
0.076041
0.06035
0.102595
0.102595
0.102595
0
0
0
0
0.002092
0.173368
2,313
72
88
32.125
0.86454
0.143104
0
0.04
0
0
0.075051
0.043103
0
0
0
0.013889
0
1
0.04
false
0
0.3
0
0.38
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
349bc17ddf478dd5dde43f9722c96d91cc6f8502
548
py
Python
test/torch/differential_privacy/test_pate.py
amitkarn3/PythnSyft
8eaa637e1ca54c963281e847556cb14b4a76b46b
[ "Apache-1.1" ]
null
null
null
test/torch/differential_privacy/test_pate.py
amitkarn3/PythnSyft
8eaa637e1ca54c963281e847556cb14b4a76b46b
[ "Apache-1.1" ]
null
null
null
test/torch/differential_privacy/test_pate.py
amitkarn3/PythnSyft
8eaa637e1ca54c963281e847556cb14b4a76b46b
[ "Apache-1.1" ]
null
null
null
import numpy as np from syft.frameworks.torch.differential_privacy import pate def test_base_dataset(): num_teachers, num_examples, num_labels = (100, 50, 10) preds = (np.random.rand(num_teachers, num_examples) * num_labels).astype(int) # fake preds indices = (np.random.rand(num_examples) * num_labels)....
30.444444
95
0.717153
83
548
4.46988
0.542169
0.088949
0.113208
0.161725
0.377358
0.377358
0
0
0
0
0
0.033113
0.173358
548
17
96
32.235294
0.785872
0.041971
0
0
0
0
0
0
0
0
0
0
0.090909
1
0.090909
false
0
0.181818
0
0.272727
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
34a032f572f524fc63d35b7eac84530ba6ee0e35
7,130
py
Python
orchestrator/cots/gdal/gdal_rasterize.py
spacebel/MAJA
3e5d20bc9c744c610e608cfcf1f4c5c738d4de9e
[ "Apache-2.0" ]
57
2020-09-30T08:51:22.000Z
2021-12-19T20:28:30.000Z
orchestrator/cots/gdal/gdal_rasterize.py
spacebel/MAJA
3e5d20bc9c744c610e608cfcf1f4c5c738d4de9e
[ "Apache-2.0" ]
34
2020-09-29T21:27:22.000Z
2022-02-03T09:56:45.000Z
orchestrator/cots/gdal/gdal_rasterize.py
spacebel/MAJA
3e5d20bc9c744c610e608cfcf1f4c5c738d4de9e
[ "Apache-2.0" ]
14
2020-10-11T13:17:59.000Z
2022-03-09T15:58:19.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2020 Centre National d'Etudes Spatiales (CNES) # # 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 # # ...
33.317757
119
0.55021
731
7,130
5.19015
0.29959
0.015814
0.019768
0.024249
0.236162
0.189773
0.189773
0.189773
0.170005
0.143648
0
0.004123
0.319635
7,130
213
120
33.474178
0.777984
0.338008
0
0.163265
0
0.010204
0.087322
0.012608
0
0
0
0.014085
0
1
0.081633
false
0.020408
0.061224
0
0.204082
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
34a40b68218e951dfdb50b23863e768a1098e44d
1,531
py
Python
wssnet/utility/tawss_utils.py
EdwardFerdian/WSSNet
b5d2916348e834a5dc5d0c06b001059b2a020080
[ "MIT" ]
2
2022-02-15T12:41:02.000Z
2022-03-15T04:46:10.000Z
wssnet/utility/tawss_utils.py
EdwardFerdian/WSSNet
b5d2916348e834a5dc5d0c06b001059b2a020080
[ "MIT" ]
null
null
null
wssnet/utility/tawss_utils.py
EdwardFerdian/WSSNet
b5d2916348e834a5dc5d0c06b001059b2a020080
[ "MIT" ]
null
null
null
import numpy as np from scipy.integrate import simps def get_wss_magnitude(wss_vector): if (wss_vector.shape[-1] != 3): return wss_vector return np.sum(wss_vector ** 2, axis=-1) ** 0.5 def get_tawss(wss, dt): x = np.arange(0, len(wss)) x = np.asarray(x) * dt wss_int = simps(wss, x, axis=...
24.301587
67
0.573481
257
1,531
3.225681
0.167315
0.227986
0.118215
0.09047
0.585042
0.499397
0.419783
0.373945
0.373945
0.323281
0
0.045614
0.255389
1,531
62
68
24.693548
0.681579
0.028086
0
0.394737
0
0
0
0
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.342105
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
34af9cb845a017d27fd9e7390bfebe5569ce5eaf
1,325
py
Python
freezer_api/policy.py
ctpegasus/freezer-api
b784327252ac6132a4d3b87c50e9a99c70d6c938
[ "Apache-2.0" ]
null
null
null
freezer_api/policy.py
ctpegasus/freezer-api
b784327252ac6132a4d3b87c50e9a99c70d6c938
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
freezer_api/policy.py
ctpegasus/freezer-api
b784327252ac6132a4d3b87c50e9a99c70d6c938
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
""" (c) Copyright 2015-2016 Hewlett-Packard Enterprise Company L.P. 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...
27.604167
72
0.706415
178
1,325
5.207865
0.617978
0.064725
0.028047
0.03452
0.056095
0
0
0
0
0
0
0.012512
0.215849
1,325
47
73
28.191489
0.879692
0.443774
0
0
0
0
0.020576
0
0
0
0
0
0
1
0.190476
false
0
0.190476
0
0.52381
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
34b3e94aca6273776ec69ea9dd2046fec59f31b5
434
py
Python
src/pyonms.py
mmahacek/PyONMS
72ef0c2717044db66e4b99fe9820a69f435f44fd
[ "MIT" ]
null
null
null
src/pyonms.py
mmahacek/PyONMS
72ef0c2717044db66e4b99fe9820a69f435f44fd
[ "MIT" ]
null
null
null
src/pyonms.py
mmahacek/PyONMS
72ef0c2717044db66e4b99fe9820a69f435f44fd
[ "MIT" ]
null
null
null
# pyonms.py from dao import api, alarms, events, nodes class pyonms(): def __init__(self, hostname, username, password): self.hostname = hostname self.api = api.API(hostname=hostname, username=username, password=password) self.nodes = nodes.Nodes(self.api) self.events = events.Eve...
27.125
83
0.665899
54
434
5.203704
0.333333
0.099644
0.078292
0
0
0
0
0
0
0
0
0
0.223502
434
15
84
28.933333
0.833828
0.020737
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0.2
0.1
0.1
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
34b84d492bd695fe750bb5aa931064fc3ca9b938
31,261
py
Python
scripts/regression_test.py
seonmokim/cryptominisat2
706738236fa5553a6e3623f06806d5fded377220
[ "MIT" ]
null
null
null
scripts/regression_test.py
seonmokim/cryptominisat2
706738236fa5553a6e3623f06806d5fded377220
[ "MIT" ]
null
null
null
scripts/regression_test.py
seonmokim/cryptominisat2
706738236fa5553a6e3623f06806d5fded377220
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import with_statement # Required in 2.5 import subprocess import os import fnmatch import gzip import re import commands import getopt import sys import signal import resource import time import struct import random from random import choice from subproces...
34.504415
122
0.530949
3,293
31,261
4.976921
0.17522
0.012203
0.012813
0.008969
0.236134
0.197022
0.164623
0.137104
0.111294
0.103484
0
0.013774
0.36368
31,261
905
123
34.542541
0.810125
0.080708
0
0.268817
0
0.001536
0.171192
0.011657
0
0
0
0
0.00768
0
null
null
0.001536
0.02765
null
null
0.101382
0
0
0
null
0
0
0
0
0
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
34bac3615a35d59de02e3b0769b794431fef838e
548
py
Python
resource/index.py
TintypeMolly/Yuzuki
94dc874c4000ac918f0b52846927311b3f25ce2c
[ "MIT" ]
6
2015-01-09T06:32:15.000Z
2015-08-15T13:23:34.000Z
resource/index.py
TintypeMolly/Yuzuki
94dc874c4000ac918f0b52846927311b3f25ce2c
[ "MIT" ]
73
2015-01-08T11:38:34.000Z
2015-09-10T09:55:08.000Z
resource/index.py
TintypeMolly/Yuzuki
94dc874c4000ac918f0b52846927311b3f25ce2c
[ "MIT" ]
11
2015-01-09T06:26:12.000Z
2015-03-26T13:16:19.000Z
# -*- coding: utf-8 -*- from helper.resource import YuzukiResource from helper.template import render_template from config.config import SITE_DESCRIPTION from helper.content import markdown_convert_file class Index(YuzukiResource): def render_GET(self, request): with open("page/index") as f: c...
32.235294
61
0.656934
61
548
5.721311
0.540984
0.08596
0.108883
0
0
0
0
0
0
0
0
0.002439
0.251825
548
16
62
34.25
0.84878
0.038321
0
0
0
0
0.095238
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.538462
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
34bbecbef412ab4c340ef6c39922f83c94f745b1
214
py
Python
parrot2.py
AmitSuresh/learning-python
f1ea5b9f3659f21504b1b0e452c03239b03cde85
[ "MIT" ]
null
null
null
parrot2.py
AmitSuresh/learning-python
f1ea5b9f3659f21504b1b0e452c03239b03cde85
[ "MIT" ]
null
null
null
parrot2.py
AmitSuresh/learning-python
f1ea5b9f3659f21504b1b0e452c03239b03cde85
[ "MIT" ]
null
null
null
p="\nTell me something, and I will repeat it back to you" p+="\nEnter 'quit' to end the program." active = True while active: message=input(p) if message =='quit': active = False else: print(message)
23.777778
58
0.663551
34
214
4.176471
0.764706
0
0
0
0
0
0
0
0
0
0
0
0.21028
214
9
59
23.777778
0.840237
0
0
0
0
0
0.439614
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
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
34bff1450311d256bf20dadcb095880fb22acb44
933
py
Python
pins/admin.py
boyombo/smsbet
66c20494b729c930edec553fe71e2084222acc4a
[ "MIT" ]
null
null
null
pins/admin.py
boyombo/smsbet
66c20494b729c930edec553fe71e2084222acc4a
[ "MIT" ]
null
null
null
pins/admin.py
boyombo/smsbet
66c20494b729c930edec553fe71e2084222acc4a
[ "MIT" ]
null
null
null
from random import choice from django.contrib import admin from pins.models import Batch, Pin from pins.forms import BatchForm def gen_randomdigits(size=10): return ''.join([choice('1234567890') for i in range(size)]) class BatchAdmin(admin.ModelAdmin): list_display = ('count', 'used', 'created_on', 'down...
23.923077
69
0.622722
112
933
5.0625
0.553571
0.028219
0.067019
0.091711
0
0
0
0
0
0
0
0.020498
0.267953
933
38
70
24.552632
0.809663
0
0
0
0
0
0.083601
0
0
0
0
0
0
1
0.074074
false
0.037037
0.148148
0.037037
0.518519
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
34c843d990ddc136afa91e10afc82afbaed4398e
5,300
py
Python
MessagePassingRPC/rpc_client.py
asgokhale/DistributedSystemsCourse
9ae24ed65e7a7ef849c7e39ec5a1a8cc5973c12f
[ "Apache-2.0" ]
4
2022-01-16T17:36:49.000Z
2022-02-07T16:57:33.000Z
MessagePassingRPC/rpc_client.py
asgokhale/DistributedSystemsCourse
9ae24ed65e7a7ef849c7e39ec5a1a8cc5973c12f
[ "Apache-2.0" ]
null
null
null
MessagePassingRPC/rpc_client.py
asgokhale/DistributedSystemsCourse
9ae24ed65e7a7ef849c7e39ec5a1a8cc5973c12f
[ "Apache-2.0" ]
1
2022-01-25T23:51:51.000Z
2022-01-25T23:51:51.000Z
############################################## # # Author: Aniruddha Gokhale # # Created: Spring 2022 # # Purpose: demonstrate a basic remote procedure call-based client # # A RPC uses message passing under the hood but provides a more # type-safe and intuitive way for users to make invocations on the remote # side bec...
37.588652
132
0.658679
702
5,300
4.934473
0.356125
0.028291
0.013857
0.008661
0.168014
0.137991
0.122402
0.122402
0.122402
0.122402
0
0.003133
0.216981
5,300
140
133
37.857143
0.831566
0.536415
0
0.047619
0
0
0.276259
0
0
0
0
0
0
1
0.142857
false
0.095238
0.047619
0
0.261905
0.285714
0
0
0
null
0
0
0
0
0
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
34cc917b6b0a55b388657d87b459c3107ab03a8f
2,108
py
Python
src_Python/EtabsAPIbface1/EtabsAPIe_eUnits.py
fjmucho/APIdeEtabsYPython
a5c7f7fe1861c4ac3c9370ef06e291f94c6fd523
[ "MIT" ]
null
null
null
src_Python/EtabsAPIbface1/EtabsAPIe_eUnits.py
fjmucho/APIdeEtabsYPython
a5c7f7fe1861c4ac3c9370ef06e291f94c6fd523
[ "MIT" ]
null
null
null
src_Python/EtabsAPIbface1/EtabsAPIe_eUnits.py
fjmucho/APIdeEtabsYPython
a5c7f7fe1861c4ac3c9370ef06e291f94c6fd523
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- """Description: """ import os import sys import comtypes.client try: ETABSObject = comtypes.client.GetActiveObject("CSI.ETABS.API.ETABSObject") print("Coneccion exitosa!.\nadjuntando a una instancia existente.") except (OSError, comtypes.COMError): ...
31.939394
85
0.693074
314
2,108
4.477707
0.449045
0.134424
0.078236
0.085349
0.180654
0.087482
0.087482
0.062589
0.062589
0.062589
0
0.025
0.165085
2,108
66
86
31.939394
0.773864
0.350569
0
0.088235
0
0
0.241379
0.03605
0
0
0
0.015152
0
1
0
false
0
0.088235
0
0.088235
0.088235
0
0
0
null
0
0
0
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
34d4e4b6e7b86d15d1faa785806544997cfd4d94
1,756
py
Python
testing/session.py
edchelstephens/django-rest-utils
15cee427149217d1e53384281894f91e9653b6b4
[ "BSD-3-Clause" ]
1
2022-02-20T01:37:25.000Z
2022-02-20T01:37:25.000Z
testing/session.py
edchelstephens/django-rest-utils
15cee427149217d1e53384281894f91e9653b6b4
[ "BSD-3-Clause" ]
null
null
null
testing/session.py
edchelstephens/django-rest-utils
15cee427149217d1e53384281894f91e9653b6b4
[ "BSD-3-Clause" ]
null
null
null
from typing import Any, Optional from django.contrib.sessions.middleware import SessionMiddleware class SessionTestMixin: """Session Test mixin.""" def is_session_empty(self, request) -> int: """Check if request.session is empty.""" return len(request.session.values()) == 0 def assertSes...
35.12
98
0.649772
201
1,756
5.616915
0.343284
0.198406
0.088574
0.038973
0.345438
0.292294
0.242693
0.193091
0.100974
0.100974
0
0.000747
0.238041
1,756
50
99
35.12
0.843049
0.21754
0
0.153846
0
0
0.0997
0.035982
0
0
0
0
0.153846
1
0.230769
false
0
0.076923
0
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
34d967b2599f558aa7f42f79ee2207cb821523d7
2,930
py
Python
test/integration/test_integration_halo.py
cloudpassage/provision_csp_accounts
a99fd6322116d5482bc183c4084a9066d81bc0b3
[ "BSD-3-Clause" ]
2
2020-02-11T21:47:55.000Z
2021-01-16T02:49:06.000Z
test/integration/test_integration_halo.py
cloudpassage/provision_csp_accounts
a99fd6322116d5482bc183c4084a9066d81bc0b3
[ "BSD-3-Clause" ]
2
2019-05-31T22:30:46.000Z
2020-02-11T21:31:38.000Z
test/integration/test_integration_halo.py
cloudpassage/provision_csp_accounts
a99fd6322116d5482bc183c4084a9066d81bc0b3
[ "BSD-3-Clause" ]
1
2020-02-11T21:05:34.000Z
2020-02-11T21:05:34.000Z
import cloudpassage import provisioner import pytest import os here_dir = os.path.abspath(os.path.dirname(__file__)) fixture_dir = os.path.join(here_dir, "../fixture") class TestIntegrationHalo(object): def instantiate_halo_object(self, config): """Return an instance of the provisioner.Halo object.""" ...
41.267606
91
0.695904
323
2,930
6.024768
0.318885
0.04111
0.033916
0.061665
0.35149
0.33556
0.305242
0.248715
0.192189
0.192189
0
0.034528
0.219113
2,930
70
92
41.857143
0.815997
0.143345
0
0.22
0
0
0.091315
0.068588
0
0
0
0
0.16
1
0.18
false
0.06
0.08
0
0.32
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
34dbc736ddc462f2c6d882b037aad3cf68384021
16,484
py
Python
ASHMC/courses/management/commands/populate_from_csv.py
haaksmash/Webfront
8eb942394c568c681a83bc2c375d7552f4b3a30c
[ "Apache-2.0" ]
null
null
null
ASHMC/courses/management/commands/populate_from_csv.py
haaksmash/Webfront
8eb942394c568c681a83bc2c375d7552f4b3a30c
[ "Apache-2.0" ]
null
null
null
ASHMC/courses/management/commands/populate_from_csv.py
haaksmash/Webfront
8eb942394c568c681a83bc2c375d7552f4b3a30c
[ "Apache-2.0" ]
null
null
null
''' Created on Apr 16, 2012 @author: Haak Saxberg ''' from django.core.management.base import BaseCommand, CommandError from django.core.exceptions import ObjectDoesNotExist from django.db.utils import IntegrityError from ...models import Campus, Course, Professor, Section, Meeting, Timeslot, Day, Semester,\ ...
44.672087
127
0.473186
1,593
16,484
4.824859
0.215945
0.015613
0.014052
0.021077
0.129586
0.100442
0.081447
0.047359
0.025241
0.025241
0
0.006463
0.418042
16,484
368
128
44.793478
0.794746
0.144989
0
0.151163
0
0
0.133753
0.001717
0
0
0
0
0
0
null
null
0.003876
0.01938
null
null
0.050388
0
0
0
null
0
0
0
0
0
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
34dcd15230933fd8287950f334911c981fecf57b
858
py
Python
Alura/MLClassificacao2/A4V4_Classificando_email.py
EduardoMoraesRitter/Alura
c0f5e7e9807e8e1d1dc46e6b847df8a8085783a6
[ "MIT" ]
null
null
null
Alura/MLClassificacao2/A4V4_Classificando_email.py
EduardoMoraesRitter/Alura
c0f5e7e9807e8e1d1dc46e6b847df8a8085783a6
[ "MIT" ]
null
null
null
Alura/MLClassificacao2/A4V4_Classificando_email.py
EduardoMoraesRitter/Alura
c0f5e7e9807e8e1d1dc46e6b847df8a8085783a6
[ "MIT" ]
null
null
null
import pandas as pd classificacoes = pd.read_csv('email.csv') textosPuros = classificacoes['email'] textosQuebrados = textosPuros.str.lower().str.split(' ') dicionario = set() for lista in textosQuebrados: dicionario.update(lista) totalPalavras = len(dicionario) tuplas = list(zip(dicionario, range(totalPalavras)...
28.6
80
0.749417
99
858
6.434343
0.393939
0.10989
0.089482
0.160126
0.131868
0
0
0
0
0
0
0.006748
0.136364
858
29
81
29.586207
0.852901
0.181818
0
0
0
0
0.02149
0
0
0
0
0
0
1
0.052632
false
0
0.052632
0
0.157895
0.105263
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
34e6e2e24b84eeef879d6258960994f7f583e7ce
2,525
py
Python
control/thrust_vectoring.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
70
2015-11-16T18:04:01.000Z
2022-03-05T09:04:02.000Z
control/thrust_vectoring.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
1
2016-08-03T05:13:19.000Z
2016-08-03T06:19:39.000Z
control/thrust_vectoring.py
cuauv/software
5ad4d52d603f81a7f254f365d9b0fe636d03a260
[ "BSD-3-Clause" ]
34
2015-12-15T17:29:23.000Z
2021-11-18T14:15:12.000Z
import math import numpy as np FULL_RANGE = 1024 class VectoringThrusterData(object): def __init__(self, position, axis, start, angle, offset, _reversed = False): vector_axis = np.array(axis) vector_1 = np.array(start) self.vector_axis = vector_axis / np.linalg.norm(vector_axis) self.force_1 = vecto...
34.589041
79
0.670099
383
2,525
4.248042
0.344648
0.04917
0.036878
0.039336
0.206515
0.105716
0.079902
0
0
0
0
0.027013
0.237624
2,525
72
80
35.069444
0.818182
0.306535
0
0
0
0
0
0
0
0
0
0.013889
0.025641
1
0.102564
false
0
0.051282
0.051282
0.25641
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
34ebc2d0c5cd30f9146703ef59fd7175839c43d2
4,028
py
Python
test/unit3/test_docstring.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
2,671
2015-01-03T08:23:25.000Z
2022-03-31T06:15:48.000Z
test/unit3/test_docstring.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
972
2015-01-05T08:11:00.000Z
2022-03-29T13:47:15.000Z
test/unit3/test_docstring.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
845
2015-01-03T19:53:36.000Z
2022-03-29T18:34:22.000Z
import unittest def banana(): "Yellow" return 42 def orange(): "Oran" "ge" def blackbirds(): 4 + 20 # Not a docstring def do_nothing(): pass def make_adder(n): "Function adding N" def add(x): "Compute N + X" return n + x return add class Strawberry: "Deli...
24.711656
82
0.638034
477
4,028
4.964361
0.266247
0.177365
0.080236
0.035473
0.223395
0.124578
0.087416
0.065456
0.032939
0
0
0.005732
0.263654
4,028
162
83
24.864198
0.79265
0.10427
0
0.065421
0
0
0.106012
0
0
0
0
0
0.280374
1
0.28972
false
0.028037
0.046729
0
0.46729
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
34f37412bfc46db2a069f8207380b8ab7bc124d7
207
py
Python
day_1/fibonacci.py
Ishaan-99-cyber/ml-workshop-wac-1
186d4b6544c7e55cea052312934e455a51d1698a
[ "MIT" ]
6
2020-12-24T07:10:58.000Z
2021-04-11T09:19:18.000Z
day_1/fibonacci.py
Ishaan-99-cyber/ml-workshop-wac-1
186d4b6544c7e55cea052312934e455a51d1698a
[ "MIT" ]
null
null
null
day_1/fibonacci.py
Ishaan-99-cyber/ml-workshop-wac-1
186d4b6544c7e55cea052312934e455a51d1698a
[ "MIT" ]
6
2020-12-24T09:42:25.000Z
2021-01-26T01:34:38.000Z
# 1 1 2 3 5 8 13 21 .... # f(n) = f(n - 1) + f(n - 2) # f(0) = f(1) = 1 def fibonacci(n: int): if n == 0 or n == 1: return 1 return fibonacci(n - 1) + fibonacci(n - 2) print(fibonacci(5))
17.25
46
0.468599
43
207
2.255814
0.395349
0.061856
0
0
0
0
0
0
0
0
0
0.15
0.323672
207
11
47
18.818182
0.542857
0.31401
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
34fdc3e2fc15cdbce1665add1d016bcc03924a78
1,928
py
Python
monitor/redisplay_monitor.py
perone/redisplay
32a8902fafec1af6ecfb12b57f8412dc7018940d
[ "MIT" ]
20
2015-01-14T22:52:27.000Z
2018-02-20T20:34:22.000Z
monitor/redisplay_monitor.py
perone/redisplay
32a8902fafec1af6ecfb12b57f8412dc7018940d
[ "MIT" ]
null
null
null
monitor/redisplay_monitor.py
perone/redisplay
32a8902fafec1af6ecfb12b57f8412dc7018940d
[ "MIT" ]
null
null
null
from __future__ import division import time import json from collections import deque import serial import redis import numpy as np def build_update_basic(info): basic_info = { "cmd": "update_basic", "clients" : "%d" % info["connected_clients"], "memory" : info["used_memory_human"], ...
25.706667
70
0.618776
255
1,928
4.329412
0.305882
0.070652
0.059783
0.048913
0.231884
0.129529
0.129529
0.078804
0.078804
0
0
0.015884
0.248963
1,928
75
71
25.706667
0.746547
0
0
0.101695
0
0
0.173147
0.02592
0
0
0
0
0
0
null
null
0
0.118644
null
null
0.033898
0
0
0
null
0
0
0
0
0
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
550139e4cbbe8d6698266d6e274ba52d8ab1332c
549
py
Python
challenges/03_analysis/A_re.py
deniederhut/workshop_pyintensive
f8f494081c6daabeae0724aa058c2b80fe42878b
[ "BSD-2-Clause" ]
1
2016-10-04T00:04:56.000Z
2016-10-04T00:04:56.000Z
challenges/03_analysis/A_re.py
deniederhut/workshop_pyintensive
f8f494081c6daabeae0724aa058c2b80fe42878b
[ "BSD-2-Clause" ]
8
2015-12-26T05:49:39.000Z
2016-05-26T00:10:57.000Z
challenges/03_analysis/A_re.py
deniederhut/workshop_pyintensive
f8f494081c6daabeae0724aa058c2b80fe42878b
[ "BSD-2-Clause" ]
null
null
null
#!/bin/env python # In this challenge, we are going to use regular expressions to manipulate # text data import re # 1. Compile a regular expression that matches URLs P_URL = re.compile(r'http://dlab\.berkeley\.edu', flags=re.I) # 2. Using that pattern, write a function that pulls all of the URLs out of a document...
26.142857
113
0.71949
91
549
4.318681
0.703297
0.050891
0
0
0
0
0
0
0
0
0
0.004673
0.220401
549
20
114
27.45
0.913551
0.47541
0
0
0
0
0.091873
0
0
0
0
0
0.111111
0
null
null
0
0.111111
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
550c5f11985d3fc31fb9561d9cb991332777ee6d
2,598
py
Python
source/extras/Mesa/src/mesa/glapi/gl_offsets.py
binaryblob01/zfree86
e80ea992d87501b8e3e2d7c07a414591c2e11c70
[ "Xnet", "X11" ]
1
2021-09-08T21:13:25.000Z
2021-09-08T21:13:25.000Z
source/extras/Mesa/src/mesa/glapi/gl_offsets.py
binaryblob01/zfree86
e80ea992d87501b8e3e2d7c07a414591c2e11c70
[ "Xnet", "X11" ]
null
null
null
source/extras/Mesa/src/mesa/glapi/gl_offsets.py
binaryblob01/zfree86
e80ea992d87501b8e3e2d7c07a414591c2e11c70
[ "Xnet", "X11" ]
1
2021-01-22T00:19:47.000Z
2021-01-22T00:19:47.000Z
#!/usr/bin/env python # (C) Copyright IBM Corporation 2004 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # on the...
29.191011
91
0.736336
393
2,598
4.748092
0.496183
0.04716
0.016077
0.025723
0.030011
0
0
0
0
0
0
0.017972
0.164742
2,598
88
92
29.522727
0.841935
0.484219
0
0.090909
0
0
0.140857
0
0
0
0
0
0
0
null
null
0
0.136364
null
null
0.272727
0
0
0
null
0
0
0
0
0
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
55180aff035712fdcf712454876146f0f9f3d598
180
py
Python
Python_2/FOR e IN/programa -- Soma dos Pares.py
NicolasGandolfi/Exercicios-Python
935fe3577c149192f9e29568e9798e970a620131
[ "MIT" ]
null
null
null
Python_2/FOR e IN/programa -- Soma dos Pares.py
NicolasGandolfi/Exercicios-Python
935fe3577c149192f9e29568e9798e970a620131
[ "MIT" ]
null
null
null
Python_2/FOR e IN/programa -- Soma dos Pares.py
NicolasGandolfi/Exercicios-Python
935fe3577c149192f9e29568e9798e970a620131
[ "MIT" ]
null
null
null
s=0 c=0 for n in range(6): num=int(input('digite o {}º número:'.format(n+1))) if num%2==0: s+=num c+=1 print('a soma dos {} números pares é {}'.format(c,s))
22.5
54
0.533333
37
180
2.594595
0.675676
0
0
0
0
0
0
0
0
0
0
0.051852
0.25
180
8
55
22.5
0.659259
0
0
0
0
0
0.287293
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
551845565ec5d90acf0eee28224a4ae202f9477d
3,736
py
Python
backend/FlaskAPI/mf_get_table_data.py
steruel/CovalentMFFPrototype
275ade0fa0a2ce3c80ed3aaac3a861dd0e273622
[ "MIT" ]
null
null
null
backend/FlaskAPI/mf_get_table_data.py
steruel/CovalentMFFPrototype
275ade0fa0a2ce3c80ed3aaac3a861dd0e273622
[ "MIT" ]
null
null
null
backend/FlaskAPI/mf_get_table_data.py
steruel/CovalentMFFPrototype
275ade0fa0a2ce3c80ed3aaac3a861dd0e273622
[ "MIT" ]
null
null
null
# coding: utf-8 # In[1]: ##Includes from flask import request, url_for from flask_api import FlaskAPI, status, exceptions from flask_cors import CORS, cross_origin from flask import Blueprint, render_template, abort import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.rea...
27.072464
159
0.738758
516
3,736
5.139535
0.24031
0.033937
0.067873
0.095023
0.553167
0.483786
0.483786
0.428356
0.39819
0.354449
0
0.013948
0.117238
3,736
137
160
27.270073
0.790176
0.224839
0
0.441558
0
0.012987
0.184459
0.091355
0
0
0
0
0
0
null
null
0
0.116883
null
null
0.064935
0
0
0
null
0
0
0
0
0
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
9b34dab60e953e0b05289a4632892770d19cd60e
533
py
Python
ex039/exercicio039.py
ArthurAlesi/Python-Exercicios-CursoEmVideo
ed0f0086ddbc0092df9d16ec2d8fdbabcb480cdd
[ "MIT" ]
null
null
null
ex039/exercicio039.py
ArthurAlesi/Python-Exercicios-CursoEmVideo
ed0f0086ddbc0092df9d16ec2d8fdbabcb480cdd
[ "MIT" ]
null
null
null
ex039/exercicio039.py
ArthurAlesi/Python-Exercicios-CursoEmVideo
ed0f0086ddbc0092df9d16ec2d8fdbabcb480cdd
[ "MIT" ]
null
null
null
# faça um programa q leia o ano de nascimento de um jovem e informe de # acordo com sua idade se ele ainda vai se alistar ao serviço miliar, # se é a hora de se alistar ou se ja passsou do tempo do alistamento from datetime import date hoje = date.today().year print(hoje) nascimento = int(input("Diga o ano que voce na...
33.3125
70
0.72045
97
533
3.958763
0.57732
0.117188
0.0625
0.0625
0.098958
0
0
0
0
0
0
0.009479
0.208255
533
15
71
35.533333
0.900474
0.380863
0
0
0
0
0.380368
0
0
0
0
0
0
1
0
false
0.090909
0.090909
0
0.090909
0.363636
0
0
0
null
0
0
0
0
0
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
9b40ad333c949a389ee209ebc469efbe2a1da3d3
8,525
py
Python
electrumx/lib/script.py
Electrum-RVN-SIG/electrumx-ravencoin
6b888a9246257037c95cdaffcce3386181050398
[ "MIT" ]
11
2021-04-03T21:29:44.000Z
2022-03-28T09:37:34.000Z
electrumx/lib/script.py
Electrum-RVN-SIG/electrumx-ravencoin
6b888a9246257037c95cdaffcce3386181050398
[ "MIT" ]
4
2021-05-14T13:10:01.000Z
2021-12-03T15:12:23.000Z
electrumx/lib/script.py
Electrum-RVN-SIG/electrumx-ravencoin
6b888a9246257037c95cdaffcce3386181050398
[ "MIT" ]
4
2021-04-05T22:07:06.000Z
2021-09-23T08:04:48.000Z
# Copyright (c) 2016-2017, Neil Booth # # All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation ...
26.892744
110
0.598827
1,134
8,525
4.322751
0.401235
0.053244
0.019992
0.0204
0.091391
0.074255
0.049164
0.036312
0.036312
0.036312
0
0.079329
0.32129
8,525
316
111
26.977848
0.767888
0.222287
0
0.063636
0
0
0.00858
0
0
0
0.073541
0
0.031818
1
0.045455
false
0
0.013636
0.022727
0.695455
0.009091
0
0
0
null
0
0
0
0
0
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
9b49b82dae00206e28c1ae751fd26cec3f45c20f
1,052
py
Python
eregs_core/migrations/0006_analysisparagraph_analysissection_footnote.py
cfpb/eregs-2.0
820bd56fa5265ee25f88fe8dce4c7aa092e5d6a3
[ "CC0-1.0" ]
1
2019-02-25T21:43:36.000Z
2019-02-25T21:43:36.000Z
eregs_core/migrations/0006_analysisparagraph_analysissection_footnote.py
cfpb/eregs-2.0
820bd56fa5265ee25f88fe8dce4c7aa092e5d6a3
[ "CC0-1.0" ]
46
2017-03-16T21:58:49.000Z
2017-09-05T16:21:29.000Z
eregs_core/migrations/0006_analysisparagraph_analysissection_footnote.py
cfpb/eregs-2.0
820bd56fa5265ee25f88fe8dce4c7aa092e5d6a3
[ "CC0-1.0" ]
7
2017-06-07T14:56:46.000Z
2021-02-20T10:50:48.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-03 17:48 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('eregs_core', '0005_appendix_definition_paragraph_reference_...
23.909091
95
0.497148
82
1,052
6.195122
0.573171
0.070866
0.147638
0.129921
0.352362
0.352362
0.352362
0.352362
0.267717
0.267717
0
0.032558
0.386882
1,052
43
96
24.465116
0.755039
0.064639
0
0.583333
1
0
0.190622
0.069317
0
0
0
0
0
1
0
false
0
0.083333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9b4eebb09566e097a91f5dda6e303d168c9b41e8
337
py
Python
app/migrations/0024_auto_20190801_2013.py
olivierpons/evalr
7c76474ad41769804965a11550501321d7b1889b
[ "MIT" ]
null
null
null
app/migrations/0024_auto_20190801_2013.py
olivierpons/evalr
7c76474ad41769804965a11550501321d7b1889b
[ "MIT" ]
null
null
null
app/migrations/0024_auto_20190801_2013.py
olivierpons/evalr
7c76474ad41769804965a11550501321d7b1889b
[ "MIT" ]
null
null
null
# Generated by Django 2.2.3 on 2019-08-01 18:13 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('app', '0023_auto_20190801_2011'), ] operations = [ migrations.RenameModel( old_name='MotVoice', new_name='ExpressionVoice', ...
18.722222
47
0.602374
36
337
5.5
0.833333
0
0
0
0
0
0
0
0
0
0
0.129167
0.287834
337
17
48
19.823529
0.695833
0.133531
0
0
1
0
0.168966
0.07931
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
9b57a3de7044f1cb8c387a458b45c232a75ebe2f
700
py
Python
maze/model/stack.py
cleuton/pythondrops
8190567fc3c0b54b4cb2465d989f1bc992ca89da
[ "Apache-2.0" ]
8
2018-06-15T05:37:41.000Z
2021-05-23T23:40:45.000Z
maze/model/stack.py
cleuton/pythondrops
8190567fc3c0b54b4cb2465d989f1bc992ca89da
[ "Apache-2.0" ]
2
2018-06-15T05:39:59.000Z
2019-08-30T01:16:30.000Z
maze/model/stack.py
cleuton/pythondrops
8190567fc3c0b54b4cb2465d989f1bc992ca89da
[ "Apache-2.0" ]
5
2018-06-15T05:37:42.000Z
2019-08-29T10:19:22.000Z
from collections import namedtuple class _Entry(namedtuple('_Entry', 'value next')): def _repr_assist(self, postfix): r = repr(self.value) + postfix if self.next is not None: return self.next._repr_assist(', ' + r) return r class Stack(object): def __init__(self): s...
31.818182
61
0.594286
95
700
4.2
0.336842
0.157895
0.090226
0.065163
0.095238
0.095238
0
0
0
0
0
0
0.284286
700
22
62
31.818182
0.796407
0
0
0
0
0
0.072753
0
0
0
0
0
0
1
0.25
false
0
0.05
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
9b5b1c2f681b75f91aedc79ae49917274c836bb0
761
py
Python
client codes/client v2/get_code_when_free.py
nathaniel-security/Localhost-distributed-computing-engine
4643c22f563a969ccaf1062da17696819e00ab9a
[ "MIT" ]
null
null
null
client codes/client v2/get_code_when_free.py
nathaniel-security/Localhost-distributed-computing-engine
4643c22f563a969ccaf1062da17696819e00ab9a
[ "MIT" ]
null
null
null
client codes/client v2/get_code_when_free.py
nathaniel-security/Localhost-distributed-computing-engine
4643c22f563a969ccaf1062da17696819e00ab9a
[ "MIT" ]
null
null
null
from client_database_connection import mycursor from ftp import * from config import free config = json.loads(open('config.json').read()) node_id = config['node id'] local_path = config['local path'] while free: sql = "SELECT code_id FROM code_node where node_id = " + node_id mycursor.execute(...
22.382353
69
0.680683
104
761
4.788462
0.394231
0.060241
0.052209
0.080321
0
0
0
0
0
0
0
0
0.218134
761
33
70
23.060606
0.836975
0
0
0.090909
0
0
0.185695
0
0
0
0
0
0
1
0
false
0.090909
0.136364
0
0.136364
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
9b6bba0de98dfc7b9557b30776b8cee5fb813b43
445
py
Python
app/accounts/migrations/0003_auto_20190323_1709.py
NjengaSaruni/Accountant-Web-Server
e77124307f235a4a446e1251d2830d7587cb8719
[ "MIT" ]
null
null
null
app/accounts/migrations/0003_auto_20190323_1709.py
NjengaSaruni/Accountant-Web-Server
e77124307f235a4a446e1251d2830d7587cb8719
[ "MIT" ]
19
2018-12-10T20:06:21.000Z
2021-06-10T21:03:31.000Z
app/accounts/migrations/0003_auto_20190323_1709.py
NjengaSaruni/Accountant-Web-Server
e77124307f235a4a446e1251d2830d7587cb8719
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-03-23 17:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0002_auto_20190113_1602'), ] operations = [ migrations.AlterField( model_name='user', name='created_at',...
23.421053
106
0.626966
52
445
5.211538
0.846154
0
0
0
0
0
0
0
0
0
0
0.094512
0.262921
445
18
107
24.722222
0.731707
0.101124
0
0
1
0
0.198492
0.057789
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
9b739e9baaf2f66a5a0221be7c0052b516ff1db9
1,324
py
Python
scripts/gen-go-pylons.py
KinSai1975/Menira.py
ca275ce244ee4804444e1827ba60010a55acc07c
[ "BSD-3-Clause" ]
118
2015-01-04T06:55:14.000Z
2022-01-14T08:32:41.000Z
scripts/gen-go-pylons.py
KinSai1975/Menira.py
ca275ce244ee4804444e1827ba60010a55acc07c
[ "BSD-3-Clause" ]
21
2015-01-03T02:16:28.000Z
2021-03-24T06:10:57.000Z
scripts/gen-go-pylons.py
KinSai1975/Menira.py
ca275ce244ee4804444e1827ba60010a55acc07c
[ "BSD-3-Clause" ]
53
2015-01-04T03:21:08.000Z
2021-08-04T20:52:01.000Z
#!/usr/bin/env python """Generate go-pylons.py""" import sys import textwrap import virtualenv filename = 'go-pylons.py' after_install = """\ import os, subprocess def after_install(options, home_dir): etc = join(home_dir, 'etc') ## TODO: this should all come from distutils ## like distutils.sysconfig.get...
25.461538
63
0.614804
178
1,324
4.38764
0.44382
0.071703
0.098592
0.107554
0.149808
0.149808
0.09475
0.09475
0.09475
0.09475
0
0.005859
0.226586
1,324
51
64
25.960784
0.756836
0.031722
0
0.1
1
0
0.568966
0.068966
0
0
0
0
0
1
0.05
false
0
0.1
0
0.15
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9b73b142beb25313894454214e85b3ed177d34f5
3,173
py
Python
cweqgen/sphinx/utils.py
cwinpy/cweqgen
b76634f0cdd62ede3295c584027ff911897590be
[ "MIT" ]
2
2022-01-14T18:09:15.000Z
2022-01-15T22:37:29.000Z
cweqgen/sphinx/utils.py
cwinpy/cweqgen
b76634f0cdd62ede3295c584027ff911897590be
[ "MIT" ]
null
null
null
cweqgen/sphinx/utils.py
cwinpy/cweqgen
b76634f0cdd62ede3295c584027ff911897590be
[ "MIT" ]
null
null
null
import os import pkg_resources import shutil from ..equations import equations from ..definitions import EQN_DEFINITIONS def generate_equations_doc(docfile): """ Helper function to automatically generate a documentation page containing all the available equations within cweqgen. Parameters -----...
22.188811
98
0.570753
341
3,173
5.234604
0.378299
0.036975
0.028571
0.02577
0.094118
0.058263
0.058263
0.058263
0.058263
0
0
0.006717
0.29625
3,173
142
99
22.34507
0.792656
0.139931
0
0.202247
1
0
0.302905
0.02716
0
0
0
0
0
1
0.022472
false
0
0.05618
0
0.078652
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
9b7594f95dc3f33774a8b817bdaeb1f8a8797812
3,624
py
Python
employee-project/src/FileIO.py
NischayaSharma/python-codes
f2216002a82f17a9103544f6ba361ed31eb85654
[ "MIT" ]
null
null
null
employee-project/src/FileIO.py
NischayaSharma/python-codes
f2216002a82f17a9103544f6ba361ed31eb85654
[ "MIT" ]
null
null
null
employee-project/src/FileIO.py
NischayaSharma/python-codes
f2216002a82f17a9103544f6ba361ed31eb85654
[ "MIT" ]
null
null
null
import os; import sys; FileName='FileIO.txt' def fileInput(fw,numOfEmployees): #Getting the value of counter frc = open(os.path.dirname(os.path.realpath(__file__))+"/counter.txt","r"); counter = int(frc.read()); frc.close(); #Taking input and writing to the file for i in range(counter,numOfE...
30.2
213
0.63521
477
3,624
4.765199
0.247379
0.052794
0.051474
0.073911
0.534096
0.452706
0.431588
0.374835
0.344039
0.344039
0
0.004577
0.216336
3,624
119
214
30.453782
0.795775
0.120585
0
0.518987
0
0.025316
0.18557
0
0
0
0
0
0
0
null
null
0
0.025316
null
null
0.050633
0
0
0
null
0
0
0
0
0
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
9b7cbdab3a8e39b99a930ed638449c9b5895940a
803
py
Python
src/python_parser/config.py
ttu/cubersensors-iot-azure
cdec18bb99f2316ed65179090f0f66b8791f57ca
[ "Apache-2.0" ]
1
2016-05-29T10:53:09.000Z
2016-05-29T10:53:09.000Z
src/python_parser/config.py
ttu/cubersensors-iot-azure
cdec18bb99f2316ed65179090f0f66b8791f57ca
[ "Apache-2.0" ]
null
null
null
src/python_parser/config.py
ttu/cubersensors-iot-azure
cdec18bb99f2316ed65179090f0f66b8791f57ca
[ "Apache-2.0" ]
1
2018-03-02T05:19:08.000Z
2018-03-02T05:19:08.000Z
# keys file is not included in repository import keys ROOT = "http://api.cubesensors.com" AUTH = "%s/auth" % ROOT RES = "%s/v1" % ROOT logger_name = "cubesensors_parser" # Define if should use event hub or insert data straight to db use_event_hub = False # CubeSensors config consumer_key = keys.cube_consumer_key co...
25.09375
62
0.808219
121
803
5.033058
0.446281
0.065681
0.036125
0.062397
0
0
0
0
0
0
0
0.001416
0.120797
803
32
63
25.09375
0.86119
0.184309
0
0
0
0
0.118462
0
0
0
0
0
0
1
0
false
0.052632
0.052632
0
0.052632
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9b7e283a083204b48c0d43c9af36980bb2c2c080
811
py
Python
operations/constant.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
operations/constant.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
operations/constant.py
anon-cand/nexpreval
e033bb9f5f25c74c44d0eb29748bf48193c185ae
[ "MIT" ]
null
null
null
from operations.operation import Operation class Constant(Operation): """ Class to represent a constant """ TAG = 'default' __slots__ = 'value' def __init__(self, value = None): self.value = value def __hash__(self): return hash(self.value) def __call__(self): ...
23.852941
63
0.588163
92
811
4.98913
0.48913
0.137255
0.052288
0
0
0
0
0
0
0
0
0
0.320592
811
33
64
24.575758
0.833031
0.183724
0
0
0
0
0.07084
0
0
0
0
0
0
1
0.222222
false
0
0.055556
0.055556
0.611111
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
9b81731e40409f7877598e1a56186915df1cedd5
573
py
Python
pycess/wsgi.py
pycess/pycess
07fa4cdd59fff5d51686bd6a769d78ece38a41d5
[ "BSD-2-Clause-FreeBSD" ]
1
2015-07-07T02:36:12.000Z
2015-07-07T02:36:12.000Z
pycess/wsgi.py
pycess/pycess
07fa4cdd59fff5d51686bd6a769d78ece38a41d5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
pycess/wsgi.py
pycess/pycess
07fa4cdd59fff5d51686bd6a769d78ece38a41d5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
""" WSGI config for pycess project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pycess.settings") from django.core.wsg...
26.045455
79
0.788831
81
573
5.419753
0.567901
0.127563
0.123007
0.08656
0.113895
0
0
0
0
0
0
0
0.115183
573
21
80
27.285714
0.865878
0.369983
0
0
0
0
0.142045
0.0625
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9b830f6c20e0821da065a595dcea7c80e7322901
4,238
py
Python
tests/test_ann.py
mtezzele/EZyRB
30e6db72d444a3a1713f0af63ceb0585350a7ecf
[ "MIT" ]
39
2016-06-30T08:21:47.000Z
2022-03-18T16:05:30.000Z
tests/test_ann.py
mtezzele/EZyRB
30e6db72d444a3a1713f0af63ceb0585350a7ecf
[ "MIT" ]
38
2016-09-21T08:45:27.000Z
2022-03-07T13:48:59.000Z
tests/test_ann.py
mtezzele/EZyRB
30e6db72d444a3a1713f0af63ceb0585350a7ecf
[ "MIT" ]
47
2016-05-20T12:44:39.000Z
2022-03-05T05:01:19.000Z
import numpy as np import torch.nn as nn from torch import Tensor, from_numpy from unittest import TestCase from ezyrb import ANN np.random.seed(17) def get_xy(): npts = 20 dinput = 4 inp = np.random.uniform(-1, 1, size=(npts, dinput)) out = np.array([ np.sin(inp[:, 0]) + np.sin(inp[:, 1]**2...
30.710145
82
0.558046
646
4,238
3.534056
0.171827
0.021025
0.052562
0.059133
0.468682
0.431888
0.412615
0.412615
0.39159
0.312308
0
0.071358
0.285748
4,238
137
83
30.934307
0.682854
0.016753
0
0.377358
0
0
0
0
0
0
0
0
0.235849
1
0.150943
false
0.056604
0.04717
0
0.216981
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
9b9103f77dd912b77e605c95f3235abd9dcb9a29
15,630
py
Python
src/utils.py
asrashley/dash-live
1ffbc57896e4e46855a42af6ef79a1865ebfce55
[ "Apache-2.0" ]
2
2019-11-02T06:26:29.000Z
2020-05-15T16:54:20.000Z
src/utils.py
asrashley/dash-live
1ffbc57896e4e46855a42af6ef79a1865ebfce55
[ "Apache-2.0" ]
1
2020-01-20T17:20:54.000Z
2020-01-21T08:38:30.000Z
src/utils.py
asrashley/dash-live
1ffbc57896e4e46855a42af6ef79a1865ebfce55
[ "Apache-2.0" ]
null
null
null
############################################################################# # # 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 # # ...
32.63048
130
0.55675
1,992
15,630
4.324297
0.187249
0.019503
0.009403
0.020896
0.194335
0.137567
0.087532
0.074762
0.053285
0.027397
0
0.014243
0.290275
15,630
478
131
32.698745
0.762283
0.061228
0
0.187335
0
0.007916
0.070248
0.015467
0.002639
0
0
0
0.005277
0
null
null
0.010554
0.029024
null
null
0.002639
0
0
0
null
0
0
0
0
0
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
9b921382771a3e80faea212dc2044b24ad49e32b
6,623
py
Python
src/client/app/__init__.py
ZackPashkin/toloka-kit
8f650e5d8cdded1949ca633cf78f9b851ce839bb
[ "Apache-2.0" ]
153
2021-02-06T13:41:11.000Z
2022-03-19T17:51:01.000Z
src/client/app/__init__.py
ZackPashkin/toloka-kit
8f650e5d8cdded1949ca633cf78f9b851ce839bb
[ "Apache-2.0" ]
29
2021-01-15T12:54:37.000Z
2022-02-07T07:45:32.000Z
src/client/app/__init__.py
ZackPashkin/toloka-kit
8f650e5d8cdded1949ca633cf78f9b851ce839bb
[ "Apache-2.0" ]
17
2021-01-29T15:20:04.000Z
2022-01-30T07:21:03.000Z
__all__ = [ 'AppProject', 'App', 'AppItem', 'AppItemsCreateRequest', 'AppBatch', 'AppBatchCreateRequest' ] import datetime import decimal from enum import unique from typing import Dict, Any, List from ..primitives.base import BaseTolokaObject from ..project.field_spec import FieldSpec from ......
30.380734
118
0.653782
777
6,623
5.481338
0.239382
0.059873
0.073961
0.04649
0.274712
0.233623
0.195821
0.143226
0.10425
0.10425
0
0
0.276008
6,623
217
119
30.520737
0.888217
0.489506
0
0.382979
0
0
0.065978
0.013995
0
0
0
0
0
1
0
false
0
0.085106
0
0.691489
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
9b93e34b4881434ea8a11345bd79b7ea4e4e91b3
2,184
py
Python
lib/python2.7/site-packages/pyami/primefactor.py
leschzinerlab/myami-3.2-freeHand
974b8a48245222de0d9cfb0f433533487ecce60d
[ "MIT" ]
6
2018-05-10T19:12:53.000Z
2021-05-19T21:11:56.000Z
pyami/primefactor.py
vosslab/ctfeval
6cfc648f91c318c3a46a959e4771c3d16d8e741a
[ "Apache-2.0" ]
1
2017-04-15T11:04:39.000Z
2017-04-17T20:21:53.000Z
pyami/primefactor.py
vossman/ctfeval
6cfc648f91c318c3a46a959e4771c3d16d8e741a
[ "Apache-2.0" ]
1
2019-09-05T20:58:37.000Z
2019-09-05T20:58:37.000Z
#!/usr/bin/env python import sys import math maxprime = 12 twomult = 2**2 #==================== def prime_factors(n): """ Return the prime factors of the given number. """ # < 1 is a special case if n <= 1: return [1] factors = [] lastresult = n while True: if lastresult == 1: break c = 2 while True...
18.991304
63
0.594322
311
2,184
4.118971
0.302251
0.046838
0.018735
0.032787
0.231069
0.212334
0.212334
0.212334
0.212334
0.212334
0
0.034065
0.20696
2,184
114
64
19.157895
0.705543
0.181777
0
0.363636
0
0
0.017522
0
0
0
0
0
0
0
null
null
0
0.025974
null
null
0.038961
0
0
0
null
0
0
0
0
0
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
9b96be5064867858493bac891020397805ad69fe
251
py
Python
igphotoprofile.py
raflimkamal/python_project
6d3321612226fa15b9fcafe4a301160f63d81213
[ "MIT" ]
null
null
null
igphotoprofile.py
raflimkamal/python_project
6d3321612226fa15b9fcafe4a301160f63d81213
[ "MIT" ]
null
null
null
igphotoprofile.py
raflimkamal/python_project
6d3321612226fa15b9fcafe4a301160f63d81213
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[2]: pip install instaloader # In[4]: import instaloader # In[6]: ig = instaloader.Instaloader() dp = input("Enter Insta Username:") ig.download_profile(dp, profile_pic_only = True) # In[ ]:
8.366667
48
0.649402
35
251
4.571429
0.742857
0.1625
0
0
0
0
0
0
0
0
0
0.019802
0.195219
251
29
49
8.655172
0.772277
0.247012
0
0
0
0
0.117318
0
0
0
0
0
0
0
null
null
0
0.2
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
9ba65d1715a7fcfaf9934b6a6bcb75b319f1120c
413
py
Python
mysite/blog/views.py
josonle/LearningDjango
62558aa141c5872c2380e5daa336da199a54b0e1
[ "MIT" ]
1
2019-02-19T07:38:02.000Z
2019-02-19T07:38:02.000Z
mysite/blog/views.py
josonle/LearningDjango
62558aa141c5872c2380e5daa336da199a54b0e1
[ "MIT" ]
null
null
null
mysite/blog/views.py
josonle/LearningDjango
62558aa141c5872c2380e5daa336da199a54b0e1
[ "MIT" ]
null
null
null
from django.shortcuts import render,get_object_or_404 from .models import BlogArticles # Create your views here. def blog_title(request): blogs=BlogArticles.objects.all() return render(request,"blog/titles.html",{"blogs":blogs}) def article(request,a_id): blog=get_object_or_404(BlogArticles,id=a_id) publish_time=...
34.416667
80
0.79661
62
413
5.129032
0.483871
0.056604
0.069182
0.08805
0
0
0
0
0
0
0
0.015666
0.072639
413
12
80
34.416667
0.814621
0.05569
0
0
0
0
0.125964
0
0
0
0
0
0
1
0.222222
false
0
0.222222
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
1
0
0
0
0
0
0
0
1
9bac9dcd120d634f437ebef6f5de2fb78cd0ef74
741
py
Python
app/model/user_signup.py
dwdraugr/YADS
c8036d8196a3158636aaa4f1910033e70ec8ecb4
[ "Apache-2.0" ]
3
2019-09-02T11:26:58.000Z
2019-12-06T15:54:38.000Z
app/model/user_signup.py
dwdraugr/YADS
c8036d8196a3158636aaa4f1910033e70ec8ecb4
[ "Apache-2.0" ]
null
null
null
app/model/user_signup.py
dwdraugr/YADS
c8036d8196a3158636aaa4f1910033e70ec8ecb4
[ "Apache-2.0" ]
null
null
null
import app.model.model as model import hashlib class UserSignup(model.Model): def __init__(self): super(UserSignup, self).__init__() def signup(self, username, password, email): cursor = self.matchadb.cursor(dictionary=True) query = [ username, email, ]...
35.285714
94
0.584345
83
741
5.108434
0.542169
0.091981
0.099057
0
0
0
0
0
0
0
0
0.011407
0.290148
741
21
95
35.285714
0.794677
0
0
0
0
0
0.180593
0
0
0
0
0
0
1
0.111111
false
0.166667
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9bb204788fee823d3cdd79e26af5c6bd4b825e8a
3,866
py
Python
feature_options.py
soarsmu/HERMES
9b38eedd1f7fcc3321048cc25d15c38268e6fd0b
[ "MIT" ]
2
2022-01-15T11:31:40.000Z
2022-03-09T11:27:28.000Z
feature_options.py
soarsmu/HERMES
9b38eedd1f7fcc3321048cc25d15c38268e6fd0b
[ "MIT" ]
null
null
null
feature_options.py
soarsmu/HERMES
9b38eedd1f7fcc3321048cc25d15c38268e6fd0b
[ "MIT" ]
null
null
null
import click class ExperimentOption(): def __init__(self): self.data_set_size = -1 self.ignore_number = True self.use_github_issue = True self.use_jira_ticket = True self.use_comments = True self.use_bag_of_word = True self.positive_weights = [0.5] s...
51.546667
99
0.693999
469
3,866
5.324094
0.166311
0.224269
0.140969
0.080096
0.311173
0.057669
0
0
0
0
0
0.003665
0.223745
3,866
74
100
52.243243
0.828391
0.022504
0
0
0
0
0.12179
0
0
0
0
0
0
1
0.030303
false
0
0.015152
0
0.075758
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