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
f83f6977354074227de8507f3a2a55a87f9d6abe
5,752
py
Python
sdks/python/appcenter_sdk/models/BranchConfigurationToolsets.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/BranchConfigurationToolsets.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/BranchConfigurationToolsets.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class BranchConfigur...
29.497436
113
0.595271
611
5,752
5.518822
0.212766
0.054567
0.156584
0.131673
0.449585
0.433867
0.394721
0.262159
0.113286
0.11032
0
0.019653
0.318846
5,752
194
114
29.649485
0.84099
0.410814
0
0.071429
0
0
0.039344
0
0
0
0
0
0
1
0.166667
false
0
0.035714
0
0.357143
0.02381
0
0
0
null
0
0
0
0
0
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
1
0
f840464edc80ddc50844d1de4a6669b63272a7ea
1,156
py
Python
tests/cli/version_test.py
longhuei/floyd-cli
82709f1e301d7a56ac354e4615a354e2c36d71b8
[ "Apache-2.0" ]
162
2017-01-27T02:54:17.000Z
2022-03-03T09:06:28.000Z
tests/cli/version_test.py
longhuei/floyd-cli
82709f1e301d7a56ac354e4615a354e2c36d71b8
[ "Apache-2.0" ]
79
2017-02-17T08:58:39.000Z
2021-05-29T09:24:31.000Z
tests/cli/version_test.py
longhuei/floyd-cli
82709f1e301d7a56ac354e4615a354e2c36d71b8
[ "Apache-2.0" ]
43
2017-02-23T10:58:42.000Z
2022-01-17T10:29:31.000Z
from click.testing import CliRunner import unittest from mock import patch, Mock, PropertyMock from floyd.cli.version import upgrade class TestFloydVersion(unittest.TestCase): """ Tests cli utils helper functions """ def setUp(self): self.runner = CliRunner() @patch('floyd.cli.version.pi...
32.111111
98
0.702422
163
1,156
4.773006
0.355828
0.071979
0.100257
0.102828
0.40874
0.40874
0.40874
0.40874
0.40874
0.40874
0
0.047269
0.176471
1,156
35
99
33.028571
0.769958
0.027682
0
0.347826
0
0.086957
0.26083
0.108303
0
0
0
0
0.173913
1
0.130435
false
0
0.173913
0
0.347826
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
0
0
1
0
f8423088619bdfe61a95a3f318f27fab6ca0c75a
4,181
py
Python
offthedialbot/help.py
DJam98/bot
366a46bcca55098e1030a4f05d63e8872a791bf8
[ "MIT" ]
2
2020-08-31T15:45:07.000Z
2021-09-26T22:15:43.000Z
offthedialbot/help.py
DJam98/bot
366a46bcca55098e1030a4f05d63e8872a791bf8
[ "MIT" ]
17
2020-06-02T02:29:48.000Z
2021-10-13T23:47:44.000Z
offthedialbot/help.py
DJam98/bot
366a46bcca55098e1030a4f05d63e8872a791bf8
[ "MIT" ]
3
2020-05-31T23:17:10.000Z
2022-03-09T22:23:22.000Z
"""Contains HelpCommand class.""" import discord from discord.ext import commands from offthedialbot import utils class HelpCommand(commands.DefaultHelpCommand): """Set up help command for the bot.""" async def send_bot_help(self, mapping): """Send bot command page.""" list_commands = [ ...
38.712963
165
0.577613
479
4,181
4.941545
0.227557
0.034221
0.047317
0.048585
0.362907
0.31052
0.297
0.247571
0.215463
0.162653
0
0.000688
0.304233
4,181
107
166
39.074766
0.812994
0.026788
0
0.25
0
0.025
0.167284
0.028322
0
0
0
0
0
1
0.025
false
0
0.0375
0
0.1375
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
0
0
1
0
f8430cf263194ac34b0078e29e9eec8808714370
255
py
Python
ex10.6.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
ex10.6.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
ex10.6.py
Dikaeinstein/Think_Python
370cb5af25230ff20994206e2d8023fd1d4c2c74
[ "MIT" ]
null
null
null
def is_anagram ( word1, word2 ): ''' Returns True if word1 is 'anagram' of word2 or False if otherwise. word1: str word2: str ''' return sorted(word1) == sorted(word2) print(is_anagram("silence", "listen"))
19.615385
70
0.576471
31
255
4.677419
0.580645
0.186207
0
0
0
0
0
0
0
0
0
0.045198
0.305882
255
13
71
19.615385
0.774011
0.34902
0
0
0
0
0.093525
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
f8433cd21799446edb00e1ccf569de9f138f3e9c
3,017
py
Python
learning/modules/resnet/resnet_conditional.py
esteng/guiding-multi-step
3f0db0ba70b5851cc83878f4ed48cf82342a2ddf
[ "BSD-2-Clause" ]
null
null
null
learning/modules/resnet/resnet_conditional.py
esteng/guiding-multi-step
3f0db0ba70b5851cc83878f4ed48cf82342a2ddf
[ "BSD-2-Clause" ]
null
null
null
learning/modules/resnet/resnet_conditional.py
esteng/guiding-multi-step
3f0db0ba70b5851cc83878f4ed48cf82342a2ddf
[ "BSD-2-Clause" ]
null
null
null
import torch from torch import nn as nn from learning.modules.blocks import ResBlock, ResBlockConditional class ResNetConditional(nn.Module): def __init__(self, embed_size, channels, c_out): super(ResNetConditional, self).__init__() self.block1 = ResBlock(channels) # RF...
46.415385
86
0.552536
326
3,017
5.046012
0.236196
0.072948
0.175076
0.175076
0.187234
0
0
0
0
0
0
0.070265
0.349022
3,017
65
87
46.415385
0.767312
0.077229
0
0
0
0
0.004348
0
0
0
0
0
0
1
0.05
false
0
0.05
0
0.133333
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
f8459ec6a60f2e71cf7db3476a3460a08e1783eb
110
wsgi
Python
cryptovote/cryptovote.wsgi
cryptovoting/cryptovote
b236cf031a8f9dfa5cca54ff45003313275a0fc8
[ "MIT" ]
8
2019-05-14T02:41:34.000Z
2021-11-25T08:07:22.000Z
cryptovote/cryptovote.wsgi
cryptovoting/cryptovote
b236cf031a8f9dfa5cca54ff45003313275a0fc8
[ "MIT" ]
null
null
null
cryptovote/cryptovote.wsgi
cryptovoting/cryptovote
b236cf031a8f9dfa5cca54ff45003313275a0fc8
[ "MIT" ]
2
2019-05-14T20:20:07.000Z
2021-11-25T08:07:24.000Z
# Used for deploying on Apache with mod_wsgi from cryptovote.app import create_app application = create_app()
27.5
44
0.818182
17
110
5.117647
0.823529
0.206897
0
0
0
0
0
0
0
0
0
0
0.136364
110
3
45
36.666667
0.915789
0.381818
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
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
1
0
0
0
0
4
f845c07a85b4945884e014911b73cc010e95c5c2
802
py
Python
problems/203_remove-linked-list-elements.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
problems/203_remove-linked-list-elements.py
okuda-seminar/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
170
2021-05-11T14:03:05.000Z
2021-11-30T14:22:52.000Z
problems/203_remove-linked-list-elements.py
ryuji0123/review_leetcode
9774dbb85b836c3ebab4b24d77774ed05abb7a32
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=203 lang=python3 # # [203] Remove Linked List Elements # # @lc code=start # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def removeElements(self, head: ListNode, val: int)...
23.588235
67
0.55985
99
802
4.414141
0.424242
0.201373
0.171625
0.077803
0
0
0
0
0
0
0
0.015009
0.335411
802
33
68
24.30303
0.804878
0.34788
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.307692
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
f8470708904f8b5b4aa1dabc0a1785bf58a61c23
7,178
py
Python
qpricesim/model_code/QLearningAgent.py
ToFeWe/qpricesim
2d4312ed1d1356449f0c168835a0662b238a27bb
[ "MIT" ]
2
2022-03-22T12:16:37.000Z
2022-03-22T12:48:46.000Z
qpricesim/model_code/QLearningAgent.py
ToFeWe/qpricesim
2d4312ed1d1356449f0c168835a0662b238a27bb
[ "MIT" ]
null
null
null
qpricesim/model_code/QLearningAgent.py
ToFeWe/qpricesim
2d4312ed1d1356449f0c168835a0662b238a27bb
[ "MIT" ]
null
null
null
""" A module that defines the QLearning Agent for the pricing game as a class. Note that we have a numba version (for speed) which inherits everything from QLearningAgentBase. """ import numpy as np from numba import float64 from numba import int32 from numba import njit from numba.experimental import jitclass from ....
31.621145
97
0.633185
923
7,178
4.827736
0.208017
0.023564
0.070018
0.075404
0.212074
0.177962
0.125898
0.099865
0.098519
0.098519
0
0.003759
0.295765
7,178
226
98
31.761062
0.877745
0.563249
0
0
0
0
0.017907
0
0
0
0
0
0
1
0.149254
false
0
0.104478
0
0.373134
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
0
0
1
0
f848ba579a50c6fd3ee1c43bc3d139711769e3be
2,825
py
Python
Code/Test Code/UI Tests/move.py
mwyoung/Cornhole-Robot
830289fa30619ccec634b84b7cd81177e6b7740c
[ "MIT" ]
null
null
null
Code/Test Code/UI Tests/move.py
mwyoung/Cornhole-Robot
830289fa30619ccec634b84b7cd81177e6b7740c
[ "MIT" ]
null
null
null
Code/Test Code/UI Tests/move.py
mwyoung/Cornhole-Robot
830289fa30619ccec634b84b7cd81177e6b7740c
[ "MIT" ]
null
null
null
#!/usr/bin/python # with help from teleop_keyboard.py, # https://github.com/ros-teleop/teleop_twist_keyboard/blob/master/teleop_twist_keyboard.py # Graylin Trevor Jay and Austin Hendrix, BSD licensed import roslib; #roslib.load_manifest('teleop_move') import rospy from geometry_msgs.msg import Twist import sys, ...
25
92
0.524602
392
2,825
3.714286
0.313776
0.027473
0.024725
0.010989
0.235577
0.235577
0.230769
0.164835
0.152473
0.152473
0
0.036504
0.311504
2,825
112
93
25.223214
0.712082
0.285664
0
0.085714
0
0
0.078117
0
0
0
0
0
0
0
null
null
0
0.057143
null
null
0.085714
0
0
0
null
0
0
0
0
0
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
f84a7601115fccffa87d1679d8be58c1f83890a1
1,561
py
Python
stanCode_Projects/my_photoshop/shrink.py
wilson51678/sc-projects
a4b9a0c542449372181f6bd20d4ad81b87bfcb46
[ "MIT" ]
null
null
null
stanCode_Projects/my_photoshop/shrink.py
wilson51678/sc-projects
a4b9a0c542449372181f6bd20d4ad81b87bfcb46
[ "MIT" ]
null
null
null
stanCode_Projects/my_photoshop/shrink.py
wilson51678/sc-projects
a4b9a0c542449372181f6bd20d4ad81b87bfcb46
[ "MIT" ]
null
null
null
""" File: shrink.py Name: Wilson Wang 2020/08/05 ------------------------------- Create a new "out" image half the width and height of the original. Set pixels at x=0 1 2 3 in out , from x=0 2 4 6 in original, and likewise in the y direction. """ from simpleimage import SimpleImage def shrink(filename): ...
31.857143
95
0.632287
240
1,561
3.970833
0.35
0.062959
0.04617
0.008395
0.06086
0.050367
0
0
0
0
0
0.022609
0.263293
1,561
48
96
32.520833
0.806087
0.474055
0
0
0
0
0.055172
0
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f84a986b558a36ee9782c5da91c77b0601aa7b43
15,349
py
Python
src/genie/libs/parser/iosxe/show_ip_dhcp.py
komurzak-cisco/genieparser
e6cd6bb133bab7260b2b82da198fd14a4dec66c7
[ "Apache-2.0" ]
1
2021-07-26T02:56:27.000Z
2021-07-26T02:56:27.000Z
src/genie/libs/parser/iosxe/show_ip_dhcp.py
zhangineer/genieparser
d6abcb49bf6d39092d835d9490d817452920ae98
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/show_ip_dhcp.py
zhangineer/genieparser
d6abcb49bf6d39092d835d9490d817452920ae98
[ "Apache-2.0" ]
null
null
null
""" show ip dhcp database show ip dhcp snooping database show ip dhcp snooping database detail """ # Python import re # Metaparser from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import (Schema, Any, Optional, Or, And, Default, Use) # Pa...
37.436585
133
0.485699
1,509
15,349
4.799867
0.109344
0.046942
0.040039
0.048046
0.405633
0.359105
0.228773
0.143863
0.116526
0.094988
0
0.018199
0.369926
15,349
410
134
37.436585
0.730741
0.223272
0
0.441176
0
0.02521
0.273369
0.074509
0
0
0
0
0
1
0.012605
false
0
0.016807
0
0.084034
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
0
0
1
0
f84ba2d7e5aa592c0ac62dbc711d229b2f13adeb
848
py
Python
vpc_hyp2/Createservers.py
dhanraj-vedanth/IaaS_VPC_CDN
262dbc7db63d5e76398dadc8015256fb37986e36
[ "MIT" ]
null
null
null
vpc_hyp2/Createservers.py
dhanraj-vedanth/IaaS_VPC_CDN
262dbc7db63d5e76398dadc8015256fb37986e36
[ "MIT" ]
null
null
null
vpc_hyp2/Createservers.py
dhanraj-vedanth/IaaS_VPC_CDN
262dbc7db63d5e76398dadc8015256fb37986e36
[ "MIT" ]
null
null
null
import os import sys import json import ipaddress import paramiko def func_createcont(br,r,IP): print("\nMaking containers "+r) print("sudo docker run -itd --cap-add=NET_ADMIN --name "+r+" main-vm") os.system("sudo docker run -itd --cap-add=NET_ADMIN --name "+r+" main-vm") print("ovs-docker add-port "+...
33.92
78
0.650943
146
848
3.753425
0.294521
0.145985
0.153285
0.175182
0.75
0.680657
0.671533
0.49635
0.412409
0.288321
0
0.009972
0.17217
848
24
79
35.333333
0.770655
0
0
0
0
0
0.514151
0
0
0
0
0
0
1
0.047619
false
0
0.238095
0
0.285714
0.285714
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
f84d7afc084777032cfb27a9f3d492736584d51d
1,051
py
Python
backend/flaskr/__init__.py
DakyungAndEunji/2021-ICE-Capstone-Project
71761bf66bd170eae48a8084331ed1d00f9c184b
[ "MIT" ]
1
2021-05-11T04:08:58.000Z
2021-05-11T04:08:58.000Z
backend/flaskr/__init__.py
DakyungAndEunji/2021-ICE-Capstone-Project
71761bf66bd170eae48a8084331ed1d00f9c184b
[ "MIT" ]
11
2021-04-06T15:22:47.000Z
2021-06-01T05:13:43.000Z
backend/flaskr/__init__.py
DakyungAndEunji/2021-ICE-Capstone-Project
71761bf66bd170eae48a8084331ed1d00f9c184b
[ "MIT" ]
null
null
null
### flaskr/__init__.py import os from flask import Flask from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() def create_app(test_config = None): # create and configure the app app = Flask(__name__, instance_relative_config=True) app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:toor!@lo...
26.948718
104
0.698382
137
1,051
5.153285
0.510949
0.063739
0.080737
0.065156
0
0
0
0
0
0
0
0.006039
0.212179
1,051
39
105
26.948718
0.846618
0.163654
0
0
0
0
0.170872
0.127294
0
0
0
0
0
1
0.041667
false
0.041667
0.166667
0
0.25
0.041667
0
0
0
null
0
0
0
0
0
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
1
0
f84fd6a36061acc80024ef6237230dcd9e8feabc
7,228
py
Python
backend/ec2.py
yubinhong/AutoAws
92a3be4ba4ed582536af9eeaf5b5fbd5cee1035d
[ "MIT" ]
1
2020-02-21T07:40:46.000Z
2020-02-21T07:40:46.000Z
backend/ec2.py
yubinhong/AutoAws
92a3be4ba4ed582536af9eeaf5b5fbd5cee1035d
[ "MIT" ]
null
null
null
backend/ec2.py
yubinhong/AutoAws
92a3be4ba4ed582536af9eeaf5b5fbd5cee1035d
[ "MIT" ]
null
null
null
import boto3 import time class AwsEc2(object): def __init__(self, access_key, secret_key): self.access_key = access_key self.secret_key = secret_key self.client = boto3.client(service_name='ec2', region_name="ap-northeast-1", aws_access_key_id=self.access_key, ...
34.419048
119
0.445075
598
7,228
5.140468
0.198997
0.027651
0.029603
0.034157
0.496096
0.447625
0.400781
0.353286
0.353286
0.333116
0
0.009439
0.457665
7,228
209
120
34.583732
0.774745
0
0
0.468421
0
0
0.088443
0.006644
0
0
0
0
0
1
0.057895
false
0
0.010526
0
0.131579
0.010526
0
0
0
null
0
0
0
0
0
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
1
0
f851380879e61799e28a7ffd91239a32f370bf71
2,299
py
Python
control/voiceControl.py
Lluxent/CorporateClashUtility
36c5f724fb8e0050aab2b3a0bfb02c5b5d0c6272
[ "MIT" ]
2
2021-03-08T02:30:58.000Z
2021-03-17T12:57:33.000Z
control/voiceControl.py
Lluxent/CorporateClashUtility
36c5f724fb8e0050aab2b3a0bfb02c5b5d0c6272
[ "MIT" ]
null
null
null
control/voiceControl.py
Lluxent/CorporateClashUtility
36c5f724fb8e0050aab2b3a0bfb02c5b5d0c6272
[ "MIT" ]
null
null
null
import control import speech_recognition as sr def recognize_speech_from_mic(recognizer, microphone): """Transcribe speech from recorded from `microphone`. Returns a dictionary with three keys: "success": a boolean indicating whether or not the API request was successful "error": `Non...
33.808824
104
0.653763
255
2,299
5.85098
0.423529
0.030161
0.025469
0.029491
0
0
0
0
0
0
0
0
0.260983
2,299
68
105
33.808824
0.878164
0.373206
0
0.105263
0
0
0.19181
0
0
0
0
0
0
1
0.026316
false
0.026316
0.052632
0
0.105263
0.078947
0
0
0
null
0
0
0
0
0
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
1
0
f85295b6cbccfde4504d51121948d6ed5ff3e3c4
6,721
py
Python
lookatweb/rules/objects.py
ivbeg/lookatweb
b98e3ebd29c00e2f718c3392bb31b7202aa82a99
[ "BSD-3-Clause" ]
2
2018-01-18T13:22:29.000Z
2018-02-03T13:10:20.000Z
lookatweb/rules/objects.py
ivbeg/lookatweb
b98e3ebd29c00e2f718c3392bb31b7202aa82a99
[ "BSD-3-Clause" ]
null
null
null
lookatweb/rules/objects.py
ivbeg/lookatweb
b98e3ebd29c00e2f718c3392bb31b7202aa82a99
[ "BSD-3-Clause" ]
null
null
null
from .consts import * # Object matching by classid OBJECTS_CLSID_RULES = [ {'type' : RULETYPE_EQUAL, 'text' : 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000', 'entities' : [ {'name' : 'web:tech/flash'} ] }, {'type' : RULETYPE_EQUAL, 'text' : 'clsid:d27cdb6e-ae6d-11cf-96b8-44455354...
30.139013
112
0.494867
639
6,721
5.123631
0.247261
0.085522
0.174099
0.154551
0.69609
0.571167
0.431888
0.372022
0.357056
0.343311
0
0.040803
0.296236
6,721
222
113
30.274775
0.651374
0.016218
0
0.288557
0
0
0.456101
0.175901
0
0
0
0
0
1
0
false
0
0.004975
0
0.004975
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
0
0
1
0
f856a06399d0483aa5762d750435935c90b3dd55
6,020
py
Python
src/failprint/cli.py
pawamoy/woof
5c8eccfe5c1343b5a399b5794c486b3c0de67c78
[ "0BSD" ]
6
2020-10-14T07:22:31.000Z
2022-02-13T23:17:56.000Z
src/failprint/cli.py
pawamoy/woof
5c8eccfe5c1343b5a399b5794c486b3c0de67c78
[ "0BSD" ]
10
2020-04-29T12:29:43.000Z
2021-07-31T10:35:36.000Z
src/failprint/cli.py
pawamoy/woof
5c8eccfe5c1343b5a399b5794c486b3c0de67c78
[ "0BSD" ]
1
2021-08-07T03:23:41.000Z
2021-08-07T03:23:41.000Z
# Why does this file exist, and why not put this in `__main__`? # # You might be tempted to import things from `__main__` later, # but that will cause problems: the code will get executed twice: # # - When you run `python -m failprint` python will execute # `__main__.py` as a script. That means there won't be any # ...
36.707317
126
0.635382
770
6,020
4.849351
0.315584
0.026513
0.024103
0.02812
0.143278
0.129888
0.096679
0.096679
0.096679
0.074183
0
0.001324
0.247342
6,020
163
127
36.932515
0.822776
0.318106
0
0.152174
0
0.01087
0.333846
0
0
0
0
0
0
1
0.043478
false
0.032609
0.054348
0
0.141304
0.076087
0
0
0
null
0
0
0
0
0
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
1
0
f858848401df27fd04f2c1792b618ab879328af0
1,112
py
Python
siqbal/siqbal/doctype/item_label/item_label.py
smehata/siqbal
8b6a21fb63c050237593c49757065198c0e2c54a
[ "MIT" ]
1
2021-08-07T12:48:02.000Z
2021-08-07T12:48:02.000Z
siqbal/siqbal/doctype/item_label/item_label.py
smehata/siqbal
8b6a21fb63c050237593c49757065198c0e2c54a
[ "MIT" ]
null
null
null
siqbal/siqbal/doctype/item_label/item_label.py
smehata/siqbal
8b6a21fb63c050237593c49757065198c0e2c54a
[ "MIT" ]
4
2021-01-16T06:14:58.000Z
2022-02-07T06:36:41.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, RC and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class ItemLabel(Document): def on_submit(self): for d in self.get("items"): # Check for Price list...
37.066667
116
0.732914
177
1,112
4.322034
0.361582
0.247059
0.101961
0.044444
0.172549
0.172549
0
0
0
0
0
0.005269
0.146583
1,112
29
117
38.344828
0.800843
0.207734
0
0
0
0
0.163616
0
0
0
0
0
0
1
0.1
false
0
0.15
0
0.3
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
f859b964e5f9c3a181c35199baa7176223613982
1,308
py
Python
www.py
MurphyWan/Python_Flask
7ef61c8242b4edf05a1ce8c688564e7895017a76
[ "MIT" ]
1
2019-01-05T12:35:51.000Z
2019-01-05T12:35:51.000Z
www.py
MurphyWan/Python_Flask
7ef61c8242b4edf05a1ce8c688564e7895017a76
[ "MIT" ]
null
null
null
www.py
MurphyWan/Python_Flask
7ef61c8242b4edf05a1ce8c688564e7895017a76
[ "MIT" ]
null
null
null
# coding:utf-8 # author:MurphyWan # 蓝图放在www.py中 """ controller.py/index.py from flask import Blueprint route_index = Blueprint('index_page', __name__) @route_index.route("/") def index(): return "Hello World" """ from application import app ''' 统一拦截器 , 都放在这里 ''' from web.interceptors.Authinterceptor import * '...
29.727273
65
0.798165
177
1,308
5.677966
0.282486
0.125373
0.143284
0.199005
0
0
0
0
0
0
0
0.00084
0.08945
1,308
43
66
30.418605
0.842989
0.20948
0
0
0
0
0.047472
0
0
0
0
0
0
1
0
true
0
0.555556
0
0.555556
0.444444
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
1
0
1
0
1
1
0
5
f85a24e0d9a829e5ba4097a173e5c180ffe2795f
1,410
py
Python
Summarizing-Data-with-statistics-/code.py
Tushar23dhongade/ga-learner-dsmp-repo
cf5550a36d2f5d3a91940d7ac8a245d5040cd9d1
[ "MIT" ]
null
null
null
Summarizing-Data-with-statistics-/code.py
Tushar23dhongade/ga-learner-dsmp-repo
cf5550a36d2f5d3a91940d7ac8a245d5040cd9d1
[ "MIT" ]
null
null
null
Summarizing-Data-with-statistics-/code.py
Tushar23dhongade/ga-learner-dsmp-repo
cf5550a36d2f5d3a91940d7ac8a245d5040cd9d1
[ "MIT" ]
null
null
null
# -------------- #Header files import pandas as pd import numpy as np import matplotlib.pyplot as plt #path of the data file- path data=pd.read_csv(path) data["Gender"].replace("-","Agender",inplace=True) gender_count=data.Gender.value_counts() gender_count.plot(kind="bar") #Code starts here # ---...
20.434783
53
0.698582
212
1,410
4.415094
0.330189
0.053419
0.074786
0.021368
0.023504
0
0
0
0
0
0
0.012821
0.114894
1,410
68
54
20.735294
0.737179
0.137589
0
0
0
0
0.074588
0
0
0
0
0
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
0
0
0
0
0
0
0
0
0
0
1
0
f85c11db5b31e7e4088a63d0697d91e4986e3c85
6,962
py
Python
soc/python/checkDB.py
idea-fasoc/fasoc
5a1fc8cf980b24a48b17f4447f13fb50d49e366a
[ "MIT" ]
48
2019-09-16T09:49:54.000Z
2022-02-09T20:59:10.000Z
soc/python/checkDB.py
idea-fasoc/fasoc
5a1fc8cf980b24a48b17f4447f13fb50d49e366a
[ "MIT" ]
18
2019-10-15T04:17:35.000Z
2021-05-25T00:12:52.000Z
soc/python/checkDB.py
idea-fasoc/fasoc
5a1fc8cf980b24a48b17f4447f13fb50d49e366a
[ "MIT" ]
8
2019-10-15T17:27:41.000Z
2022-01-26T20:42:07.000Z
#!/usr/bin/env python3 #MIT License #Copyright (c) 2018 The University of Michigan #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights ...
44.063291
418
0.668342
894
6,962
5.042506
0.250559
0.046362
0.034605
0.048802
0.547915
0.547471
0.535492
0.512866
0.511979
0.487578
0
0.005441
0.234415
6,962
158
419
44.063291
0.840338
0.225223
0
0.65
0
0
0.118666
0.013413
0
0
0
0
0
1
0.008333
false
0
0.05
0
0.133333
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f85e27ad10e7814b11be2c93c0c4dca76deac4ea
2,222
py
Python
Piquant/Debug/script/matlplotlib_pyplot实操代码.py
QuantPengPeng/Piquant
88047831a3ce4eb5b67fc68c752243084ba90199
[ "MIT" ]
9
2019-04-07T06:17:50.000Z
2021-07-11T14:31:36.000Z
Piquant/Debug/script/matlplotlib_pyplot实操代码.py
QuantPengPeng/Piquant
88047831a3ce4eb5b67fc68c752243084ba90199
[ "MIT" ]
1
2019-05-17T01:57:07.000Z
2019-11-19T01:57:05.000Z
Piquant/Debug/script/matlplotlib_pyplot实操代码.py
QuantPengPeng/Piquant
88047831a3ce4eb5b67fc68c752243084ba90199
[ "MIT" ]
6
2019-04-15T07:17:26.000Z
2019-08-04T02:55:36.000Z
# coding: utf-8 # In[35]: import matplotlib.pyplot as plt from pylab import * import numpy as np main_image=plt.figure(figsize=(10,10)) subplots_adjust(hspace=0.3,wspace=0.3)#控制子图间的行间距、列间距 #子图1-单线 x_0=np.linspace(0,2*np.pi,20) #自变量X的取值范围 sub_image_1=plt.subplot(2,2,1) plt.xlabel('X value') plt.ylabel('Sin value')...
32.676471
165
0.729973
425
2,222
3.625882
0.317647
0.098637
0.029202
0.031149
0.19987
0.177807
0.107722
0.032446
0
0
0
0.057377
0.066607
2,222
67
166
33.164179
0.685632
0.077408
0
0.145833
0
0
0.111713
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f85ead752c9700ddc5fb73af13b5441235631493
2,190
py
Python
gencode/python/udmi/schema/event_audit.py
johnrandolph/udmi
5e9de32fc71de8d006cda2eba4d3372eaf24c7c0
[ "Apache-2.0" ]
1
2022-02-24T22:57:37.000Z
2022-02-24T22:57:37.000Z
gencode/python/udmi/schema/event_audit.py
johnrandolph/udmi
5e9de32fc71de8d006cda2eba4d3372eaf24c7c0
[ "Apache-2.0" ]
5
2022-02-24T21:32:24.000Z
2022-03-23T15:52:25.000Z
gencode/python/udmi/schema/event_audit.py
johnrandolph/udmi
5e9de32fc71de8d006cda2eba4d3372eaf24c7c0
[ "Apache-2.0" ]
null
null
null
"""Generated class for event_audit.json""" class Object0C54FB6D: """Generated schema class""" def __init__(self): self.subFolder = None self.subType = None @staticmethod def from_dict(source): if not source: return None result = Object0C54FB6D() result.subFolder = source.get('subFo...
23.548387
77
0.648402
266
2,190
5.244361
0.154135
0.068817
0.060215
0.048746
0.511828
0.511828
0.511828
0.461649
0.461649
0.461649
0
0.013174
0.237443
2,190
92
78
23.804348
0.822156
0.043379
0
0.586667
1
0
0.04243
0
0
0
0
0
0
1
0.133333
false
0
0.013333
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
f85f1ff5fdc55f6eaa86305ff1243afdf2c3c231
7,624
py
Python
colour/models/rgb.py
canavandl/colour
a453cd37b6135a9092d5ea5b2aafb8d19134bdff
[ "BSD-3-Clause" ]
1
2019-06-27T11:32:48.000Z
2019-06-27T11:32:48.000Z
colour/models/rgb.py
canavandl/colour
a453cd37b6135a9092d5ea5b2aafb8d19134bdff
[ "BSD-3-Clause" ]
null
null
null
colour/models/rgb.py
canavandl/colour
a453cd37b6135a9092d5ea5b2aafb8d19134bdff
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ RGB Colourspace Transformations =============================== Defines the *RGB* colourspace transformations: - :func:`XYZ_to_RGB` - :func:`RGB_to_XYZ` - :func:`RGB_to_RGB` See Also -------- `RGB Colourspaces IPython Notebook <http://nbviewer.ipython.org/gith...
31.766667
115
0.613458
852
7,624
5.2723
0.188967
0.097284
0.105744
0.020036
0.62333
0.503117
0.466162
0.42854
0.342832
0.307881
0
0.08627
0.251967
7,624
239
116
31.899582
0.701385
0.60585
0
0.206897
0
0
0.091166
0.012505
0
0
0
0
0
1
0.051724
false
0
0.068966
0
0.172414
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
0
0
1
0
f85f4b7c7b491177a0f091a1844ac24655fff102
1,768
py
Python
tests/assign_folds_test.py
turku-rad-ai/pe-detection
d9b49800de45a40030db72db65f4806b23d97a63
[ "Apache-2.0" ]
null
null
null
tests/assign_folds_test.py
turku-rad-ai/pe-detection
d9b49800de45a40030db72db65f4806b23d97a63
[ "Apache-2.0" ]
null
null
null
tests/assign_folds_test.py
turku-rad-ai/pe-detection
d9b49800de45a40030db72db65f4806b23d97a63
[ "Apache-2.0" ]
null
null
null
from typing import List import pandas as pd import pytest from preprocessing.assign_folds import assign_folds testdata = [ [ [ "patient1", "patient2", "patient3", "patient4", "patient5", "patient6", "patient7", ...
24.901408
99
0.526584
200
1,768
4.54
0.43
0.046256
0.006608
0.008811
0.121145
0.121145
0.121145
0.121145
0.121145
0.121145
0
0.041916
0.338801
1,768
70
100
25.257143
0.734816
0.084276
0
0.105263
0
0
0.221947
0.028518
0
0
0
0
0.087719
1
0.017544
false
0
0.070175
0
0.087719
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
0
0
1
0
f85fde926cda35a9fc74acc2b0acaa097f44bc32
456
py
Python
src/apps/notes/models.py
mentalnoteapp/backend-django-rest-framework
82d95fbe1aeb93b85105bf7ae94a3c13534f72cb
[ "MIT" ]
null
null
null
src/apps/notes/models.py
mentalnoteapp/backend-django-rest-framework
82d95fbe1aeb93b85105bf7ae94a3c13534f72cb
[ "MIT" ]
null
null
null
src/apps/notes/models.py
mentalnoteapp/backend-django-rest-framework
82d95fbe1aeb93b85105bf7ae94a3c13534f72cb
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models from apps.tags.models import Tag class Note(models.Model): owner = models.ForeignKey(User, related_name="notes") tags = models.ManyToManyField(Tag, related_name="notes", blank=True) created = models.DateTimeField(auto_now_add=True)...
26.823529
72
0.736842
62
456
5.274194
0.596774
0.061162
0.097859
0
0
0
0
0
0
0
0
0.007813
0.157895
456
16
73
28.5
0.84375
0
0
0
0
0
0.02193
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0.090909
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f86011337ef051c071ef0fd89e5bf4792bb54439
1,116
py
Python
tests/test_main.py
dadaloop82/viseron
1c6c446a4856e16c0e2ed6b9323d169fbdcae20f
[ "MIT" ]
399
2020-08-31T21:13:07.000Z
2022-03-31T18:54:26.000Z
tests/test_main.py
dadaloop82/viseron
1c6c446a4856e16c0e2ed6b9323d169fbdcae20f
[ "MIT" ]
157
2020-09-01T18:59:56.000Z
2022-03-25T07:14:19.000Z
tests/test_main.py
dadaloop82/viseron
1c6c446a4856e16c0e2ed6b9323d169fbdcae20f
[ "MIT" ]
53
2020-09-01T07:35:59.000Z
2022-03-28T23:21:16.000Z
"""Tests for __main__.py.""" # import logging from unittest.mock import MagicMock, patch import pytest import viseron.__main__ @pytest.fixture def mocked_viseron(mocker): """Mock Viseron class.""" mocker.patch("viseron.__main__.Viseron", return_value="Testing") def test_init(simple_config, mocked_viseron)...
27.219512
74
0.606631
113
1,116
5.495575
0.433628
0.141707
0.048309
0.070853
0.083736
0
0
0
0
0
0
0.003597
0.252688
1,116
40
75
27.9
0.741007
0.503584
0
0
0
0
0.097514
0.045889
0
0
0
0
0.083333
1
0.166667
false
0
0.25
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8626522d55b3754f7c28ddbfd44245ded575b28
11,950
py
Python
ironicclient/tests/unit/v1/test_allocation.py
ljmcgann/python-ironicclient
a5485dc29fe551e4cb5feaad52cd93d67b0ab53e
[ "Apache-2.0" ]
41
2015-01-29T20:10:48.000Z
2022-01-26T10:04:28.000Z
ironicclient/tests/unit/v1/test_allocation.py
ljmcgann/python-ironicclient
a5485dc29fe551e4cb5feaad52cd93d67b0ab53e
[ "Apache-2.0" ]
null
null
null
ironicclient/tests/unit/v1/test_allocation.py
ljmcgann/python-ironicclient
a5485dc29fe551e4cb5feaad52cd93d67b0ab53e
[ "Apache-2.0" ]
46
2015-01-19T17:46:52.000Z
2021-12-19T01:22:47.000Z
# 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, software # d...
33.194444
78
0.573138
1,159
11,950
5.771355
0.155306
0.087457
0.039468
0.041112
0.6418
0.561519
0.471221
0.433548
0.415159
0.415159
0
0.026983
0.283598
11,950
359
79
33.286908
0.754351
0.04569
0
0.493243
0
0
0.16033
0.050575
0
0
0
0
0.162162
1
0.064189
false
0
0.02027
0.003378
0.101351
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
0
0
1
0
f8629eacf541222ae1970586720f609c2d762f08
1,105
py
Python
api/routes/auth.py
rit-sse/api
4dbd04db98284225510d9ae8249514be80d4706a
[ "MIT" ]
1
2015-07-17T19:20:45.000Z
2015-07-17T19:20:45.000Z
api/routes/auth.py
rit-sse/api
4dbd04db98284225510d9ae8249514be80d4706a
[ "MIT" ]
33
2015-07-18T02:31:51.000Z
2015-08-04T02:07:41.000Z
api/routes/auth.py
rit-sse/api
4dbd04db98284225510d9ae8249514be80d4706a
[ "MIT" ]
7
2015-07-17T16:29:18.000Z
2021-08-31T01:03:53.000Z
from flask import session, redirect, url_for from flask.json import jsonify from api import app, oauth from api import models @app.route("/api/v2/login") def _get_api_v2_login(): redirect_uri = url_for("_get_api_v2_redirect", _external=True) return oauth.google.authorize_redirect(redirect_uri) @app.route("/...
27.625
83
0.656109
148
1,105
4.668919
0.324324
0.072359
0.057887
0.075253
0
0
0
0
0
0
0
0.012182
0.182805
1,105
39
84
28.333333
0.753045
0
0
0
0
0
0.175566
0
0
0
0
0
0
1
0.133333
false
0
0.133333
0
0.433333
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
0
0
1
0
f863fdd49bdc9fc91c5a6863a1a6f2c9cb1fed2c
418
py
Python
mybatis/column_generator.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
1
2018-09-19T06:27:14.000Z
2018-09-19T06:27:14.000Z
mybatis/column_generator.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
null
null
null
mybatis/column_generator.py
xliangwu/com.caveup.machine_learn
793131c4767f45d468a813752c07d02f623a7b99
[ "Apache-2.0" ]
null
null
null
def column_generator(): with open('columns.csv', encoding='utf-8') as f: for line in f: keyword = line.strip('\n') # <columnOverride column="tid" property="tid"/> # print(r'<columnOverride column="{}" property="{}"/>'.format(keyword,keyword)) print(r'<ignoreCo...
34.833333
91
0.586124
45
418
5.222222
0.622222
0.12766
0.170213
0
0
0
0
0
0
0
0
0.003106
0.229665
418
11
92
38
0.726708
0.294258
0
0
0
0
0.181507
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f86413e599720995225d5a002a0228bfbc9b7ed7
22,250
py
Python
ttslab/voices/afrikaans_default.py
jkleczar/ttslab
33fe0c3f88c1533816b2602b52e4162760d9c5f0
[ "BSD-3-Clause" ]
null
null
null
ttslab/voices/afrikaans_default.py
jkleczar/ttslab
33fe0c3f88c1533816b2602b52e4162760d9c5f0
[ "BSD-3-Clause" ]
null
null
null
ttslab/voices/afrikaans_default.py
jkleczar/ttslab
33fe0c3f88c1533816b2602b52e4162760d9c5f0
[ "BSD-3-Clause" ]
1
2019-02-25T10:27:41.000Z
2019-02-25T10:27:41.000Z
# -*- coding: utf-8 -*- """ This file contains language-specific implementation for an Afrikaans voice. The idea is that this file contains subclassed Voice and Phoneset implementations. This package ttslab/voices may then also contain speaker specific implementations e.g. "afrikaans_SPEAKER.py" """ fr...
52.352941
177
0.465573
2,048
22,250
4.884766
0.23291
0.034386
0.046381
0.056677
0.423531
0.367053
0.328669
0.30068
0.223011
0.162535
0
0.004858
0.389438
22,250
424
178
52.476415
0.731542
0.078876
0
0.119883
0
0
0.233684
0.011215
0
0
0
0.002358
0
1
0.046784
false
0.002924
0.020468
0.026316
0.204678
0.002924
0
0
0
null
0
0
0
0
0
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
1
0
f865843e860d96b7840567719ae0919a197d73ae
144,813
py
Python
scripts/Iodide/project_misc.py
tsherwen/sparse2spatial
6f5240c7641ad7a894476672b78c8184c514bf87
[ "MIT" ]
1
2020-01-14T21:40:29.000Z
2020-01-14T21:40:29.000Z
scripts/Iodide/project_misc.py
tsherwen/sparse2spatial
6f5240c7641ad7a894476672b78c8184c514bf87
[ "MIT" ]
null
null
null
scripts/Iodide/project_misc.py
tsherwen/sparse2spatial
6f5240c7641ad7a894476672b78c8184c514bf87
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ This module contains analysis done for the Ocean iodide (Oi!) project This includes presentation at conferences etc... """ import numpy as np import pandas as pd import sparse2spatial as s2s import sparse2spatial.utils as utils import matplotlib import matplotlib.pyplot...
38.048607
340
0.57818
19,545
144,813
4.102942
0.070811
0.008604
0.012557
0.018506
0.628404
0.593027
0.564059
0.539742
0.523469
0.501484
0
0.024791
0.28387
144,813
3,805
341
38.058607
0.748469
0.235414
0
0.539808
0
0.000417
0.122704
0.018779
0.000417
0
0
0.000526
0.001251
1
0.020008
false
0.000417
0.024177
0
0.047103
0.031263
0
0
0
null
0
0
0
0
0
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
1
0
f8675dfd4e125d168dde1ba9e29185bd73af107b
4,331
py
Python
writer/cashData/csvUtils.py
sifarone/gce_k8s_deployment
f596e17b9d0263ae24c61ebba9925af4719b4306
[ "MIT" ]
null
null
null
writer/cashData/csvUtils.py
sifarone/gce_k8s_deployment
f596e17b9d0263ae24c61ebba9925af4719b4306
[ "MIT" ]
null
null
null
writer/cashData/csvUtils.py
sifarone/gce_k8s_deployment
f596e17b9d0263ae24c61ebba9925af4719b4306
[ "MIT" ]
1
2021-01-24T17:07:37.000Z
2021-01-24T17:07:37.000Z
import pandas as pd from . import cashUtils as utils class ReadStockBhavDataCSV: def __init__(self, fileName): self.df = pd.read_csv(fileName) self.columns = self.df.columns def getCSVColumnList(self): return self.columns def getStockFlatData(self): ''' Returns a ...
36.091667
93
0.484184
365
4,331
5.575342
0.169863
0.140541
0.12973
0.183784
0.8
0.8
0.8
0.714496
0.680098
0.377396
0
0
0.406142
4,331
119
94
36.394958
0.791213
0.209651
0
0.5
0
0
0.121153
0
0
0
0
0
0
1
0.142857
false
0
0.035714
0.035714
0.321429
0
0
0
0
null
0
0
1
0
1
1
1
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
4
f8683ceaf922240bb0a9b5391ea9deb94effc25d
253
py
Python
programming/python_in_high_performance_computing/cyt_modules/cyt_setup.py
carlosevmoura/courses-notes
dc938625dd79267f9a262e7e6939205f63dda885
[ "MIT" ]
null
null
null
programming/python_in_high_performance_computing/cyt_modules/cyt_setup.py
carlosevmoura/courses-notes
dc938625dd79267f9a262e7e6939205f63dda885
[ "MIT" ]
null
null
null
programming/python_in_high_performance_computing/cyt_modules/cyt_setup.py
carlosevmoura/courses-notes
dc938625dd79267f9a262e7e6939205f63dda885
[ "MIT" ]
null
null
null
from distutils.core import Extension, setup from Cython.Build import cythonize from Cython.Compiler import Options Options.docstrings = False ext = Extension(name="cyt_module", sources=["cyt_module.pyx"]) setup( ext_modules = cythonize(ext), )
18.071429
62
0.766798
33
253
5.787879
0.606061
0.104712
0
0
0
0
0
0
0
0
0
0
0.134387
253
13
63
19.461538
0.872146
0
0
0
0
0
0.095238
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f86cbd077218ced0fe45ca2c5ef698554acc3ecd
18,995
py
Python
server_code.py
johnr0/TaleBrush-backend
f7429e10f328087444647d5dc6bf1f3a22ccfcce
[ "BSD-3-Clause" ]
1
2022-02-25T18:36:16.000Z
2022-02-25T18:36:16.000Z
server_code.py
johnr0/Generative-Input-NLP
9607cf2db2aa29f10d4b2179e25dc5bfc9b00288
[ "BSD-3-Clause" ]
null
null
null
server_code.py
johnr0/Generative-Input-NLP
9607cf2db2aa29f10d4b2179e25dc5bfc9b00288
[ "BSD-3-Clause" ]
null
null
null
from flask import request, url_for from flask_api import FlaskAPI, status, exceptions from flask_cors import CORS, cross_origin import torch import json import numpy as np import torch from modeling_gptneo import GPTNeoForCausalLM from modeling_gpt2 import GPT2LMHeadModel from transformers import ( GPTNeoConfig...
41.025918
140
0.588944
2,080
18,995
5.128846
0.164423
0.04162
0.03712
0.016873
0.452006
0.376078
0.340082
0.322553
0.300244
0.283933
0
0.016006
0.319137
18,995
463
141
41.025918
0.808861
0.118189
0
0.354167
0
0
0.075836
0.029168
0
0
0
0.00216
0
1
0.02381
false
0
0.044643
0
0.095238
0.059524
0
0
0
null
0
0
0
0
0
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
1
0
f86d0468889ac52f5ce1040fe21e913a6db95f94
20,391
py
Python
pymatflow/abinit/post/bands.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
6
2020-03-06T16:13:08.000Z
2022-03-09T07:53:34.000Z
pymatflow/abinit/post/bands.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
1
2021-10-02T02:23:08.000Z
2021-11-08T13:29:37.000Z
pymatflow/abinit/post/bands.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
1
2021-07-10T16:28:14.000Z
2021-07-10T16:28:14.000Z
""" post_bands: post_bands extract data from static-o_DS3_EBANDS.agr and it will build the kpoints length: xcoord_k from the high symmetry line and the corresponding basis for reciprocal space. b1 = 1 / a1, b2 = 1 / a2 and b3 = 1 / a3. """ import os import numpy as np import matplotlib.pypl...
51.492424
142
0.529106
2,816
20,391
3.760653
0.089134
0.086686
0.056657
0.051558
0.768839
0.737394
0.715014
0.709065
0.685836
0.671577
0
0.024399
0.324653
20,391
395
143
51.622785
0.744608
0.152126
0
0.565217
0
0.014493
0.223249
0.082138
0
0
0
0
0
1
0.025362
false
0.003623
0.01087
0
0.039855
0.036232
0
0
0
null
0
0
0
0
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
f86d356d798352c0185a9ec2592dc21b131a7ed8
337
py
Python
logconfig.py
Erick-Faster/gerbot-api
36d723c7e9df525b99fd4eff2da318e9046e7734
[ "Apache-2.0" ]
null
null
null
logconfig.py
Erick-Faster/gerbot-api
36d723c7e9df525b99fd4eff2da318e9046e7734
[ "Apache-2.0" ]
null
null
null
logconfig.py
Erick-Faster/gerbot-api
36d723c7e9df525b99fd4eff2da318e9046e7734
[ "Apache-2.0" ]
null
null
null
import logging import logging.config logging.config.fileConfig('./instance/logging.conf') # create logger logger = logging.getLogger('Cognitive-API') # 'application' code ''' logger.debug('debug message') logger.info('info message') logger.warning('warn message') logger.error('error message') logger.critical('criti...
19.823529
52
0.756677
40
337
6.375
0.5
0.203922
0
0
0
0
0
0
0
0
0
0
0.086053
337
17
53
19.823529
0.827922
0.094955
0
0
0
0
0.257143
0.164286
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
1
0
0
0
0
2
f86db685725dd6affbd6d16efda49f2dd028eb93
1,735
py
Python
tests/app/test_app_service.py
0604hx/buter
670584e7c39c985192684c9f68f52fc69c57049c
[ "MIT" ]
2
2017-11-21T10:00:47.000Z
2018-02-02T04:40:09.000Z
tests/app/test_app_service.py
0604hx/buter
670584e7c39c985192684c9f68f52fc69c57049c
[ "MIT" ]
1
2018-10-31T06:56:22.000Z
2018-11-01T00:58:16.000Z
tests/app/test_app_service.py
0604hx/buter
670584e7c39c985192684c9f68f52fc69c57049c
[ "MIT" ]
5
2017-12-14T01:07:21.000Z
2020-04-29T02:21:46.000Z
import json import unittest from buter.app.services import load_from_file, detect_app_name from buter.server import docker from buter.util.Utils import unzip from config import getConfig class AppServiceTest(unittest.TestCase): def setUp(self): """ 这里只需要初始化 server.docker 对象 :return: ...
30.982143
109
0.609222
227
1,735
4.488987
0.299559
0.041217
0.063788
0.047105
0.196271
0.170756
0.107949
0.107949
0.107949
0.107949
0
0.002996
0.230548
1,735
55
110
31.545455
0.7603
0.029971
0
0
0
0
0.145972
0.029679
0
0
0
0
0.078947
1
0.184211
false
0
0.157895
0
0.368421
0.131579
0
0
0
null
0
0
0
0
0
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
1
0
f86f8495a3b204ecbbc51199ca2187879cae3c8e
397
py
Python
code/level6.py
ab300819/PythonChallenge
4bcc91f8b11d0a5ec5720137bef55eec6b1f7581
[ "Apache-2.0" ]
null
null
null
code/level6.py
ab300819/PythonChallenge
4bcc91f8b11d0a5ec5720137bef55eec6b1f7581
[ "Apache-2.0" ]
null
null
null
code/level6.py
ab300819/PythonChallenge
4bcc91f8b11d0a5ec5720137bef55eec6b1f7581
[ "Apache-2.0" ]
null
null
null
# -*-coding:utf-8-*- __author__ = 'Mason' import re import zipfile z = zipfile.ZipFile('channel.zip', mode='r') number = '90052' comments = [] while True: text = z.read(number + '.txt') number = re.findall('([0-9]+)', text) print number try: number = number[0] comments.append(z.getinfo...
19.85
59
0.594458
50
397
4.64
0.64
0.077586
0
0
0
0
0
0
0
0
0
0.029221
0.224181
397
19
60
20.894737
0.724026
0.04534
0
0
0
0
0.100796
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f870be2bd112b621b44e0d7642b1d268ee31edf5
728
py
Python
subscriptions/subscription.py
iamsharmaapoorv/availability-checker
02fc28f495140f74fa38c02a3e4a5111e196151f
[ "MIT" ]
null
null
null
subscriptions/subscription.py
iamsharmaapoorv/availability-checker
02fc28f495140f74fa38c02a3e4a5111e196151f
[ "MIT" ]
null
null
null
subscriptions/subscription.py
iamsharmaapoorv/availability-checker
02fc28f495140f74fa38c02a3e4a5111e196151f
[ "MIT" ]
null
null
null
from products.product import Product from notifications.notification import Notification from clients.client import Client class Subscription: def __init__(self, product: Product, timing: int): self.notifications = [] self.product = product self.timing = timing def add_notification(se...
33.090909
67
0.696429
75
728
6.653333
0.36
0.11022
0.072144
0
0
0
0
0
0
0
0
0
0.228022
728
21
68
34.666667
0.8879
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.1875
0.0625
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
f871c0ad8b9204fef05550a10cc4ceb534586079
654
py
Python
joi2008yo/joi2008yo_e.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
joi2008yo/joi2008yo_e.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
joi2008yo/joi2008yo_e.py
Vermee81/practice-coding-contests
78aada60fa75f208ee0eef337b33b27b1c260d18
[ "MIT" ]
null
null
null
# https://atcoder.jp/contests/joi2008yo/tasks/joi2008yo_e R, C = list(map(int, input().split())) senbei_pos = [] ans = 0 for _ in range(R): pos = list(map(int, input().split())) senbei_pos.append(pos) for bit in range(2**R): total = 0 copied_pos = senbei_pos[:] # Rの上限が10なので10桁の2進数になるように0で埋める fl...
29.727273
66
0.59633
100
654
3.74
0.42
0.074866
0.053476
0.080214
0.15508
0.15508
0.15508
0
0
0
0
0.045082
0.253823
654
21
67
31.142857
0.721311
0.12844
0
0
0
0
0.007055
0
0
0
0
0
0
1
0
false
0
0
0
0
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
0
0
0
0
0
0
0
0
1
0
f8724ce5a5705922dd55fcf91b7512b691dc8ab7
2,850
py
Python
yttgmp3.py
RomaniukVadim/ytmp3_bot
ce3cc3cfa2098257e4ec22c019c8c33d31a73128
[ "WTFPL" ]
1
2018-03-27T00:08:26.000Z
2018-03-27T00:08:26.000Z
yttgmp3.py
RomaniukVadim/ytmp3_bot
ce3cc3cfa2098257e4ec22c019c8c33d31a73128
[ "WTFPL" ]
null
null
null
yttgmp3.py
RomaniukVadim/ytmp3_bot
ce3cc3cfa2098257e4ec22c019c8c33d31a73128
[ "WTFPL" ]
1
2020-06-04T02:49:20.000Z
2020-06-04T02:49:20.000Z
#!/usr/env python3 import requests import os import glob import telegram from time import sleep token = "token" bot = telegram.Bot(token=token) # Боту шлется ссылка на ютуб, он загоняет ее в bash комманду youtube-dl -x --audio-format mp3 <link>, шлет загруженный mp3 обратно клиенту class BotHandler: def __init__...
30.978261
138
0.597895
371
2,850
4.334232
0.291105
0.052239
0.052239
0.034826
0.166045
0.116915
0.087065
0.087065
0.087065
0.06592
0
0.01122
0.280702
2,850
91
139
31.318681
0.773171
0.054035
0
0.157895
0
0
0.121752
0
0
0
0
0
0
1
0.092105
false
0
0.065789
0
0.223684
0.039474
0
0
0
null
0
0
0
0
0
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
1
0
f873639a13e98ee3a4151d1be3542d91c969ac64
530
py
Python
djangobmf/contrib/team/views.py
dmatthes/django-bmf
3a97167de7841b13f1ddd23b33ae65e98dc49dfd
[ "BSD-3-Clause" ]
1
2020-05-11T08:00:49.000Z
2020-05-11T08:00:49.000Z
djangobmf/contrib/team/views.py
dmatthes/django-bmf
3a97167de7841b13f1ddd23b33ae65e98dc49dfd
[ "BSD-3-Clause" ]
null
null
null
djangobmf/contrib/team/views.py
dmatthes/django-bmf
3a97167de7841b13f1ddd23b33ae65e98dc49dfd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # ex:set fileencoding=utf-8: from __future__ import unicode_literals from djangobmf.views import ModuleCreateView from djangobmf.views import ModuleUpdateView from djangobmf.views import ModuleDetailView from .forms import BMFTeamUpdateForm from .forms import BMFTeamCreateForm class TeamCreateVie...
22.083333
44
0.828302
54
530
7.981481
0.481481
0.090487
0.12529
0.167053
0
0
0
0
0
0
0
0.002146
0.120755
530
23
45
23.043478
0.922747
0.081132
0
0.166667
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
1
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
1
0
1
0
0
3
f873731d39e77de62eb053df48244e290afd54de
1,038
py
Python
py/LSS/imaging/veto_masks/lrg/lrg_wise_mask_v1.py
echaussidon/LSS
205ce48a288acacbd41358e6d0215f4aff355049
[ "BSD-3-Clause" ]
null
null
null
py/LSS/imaging/veto_masks/lrg/lrg_wise_mask_v1.py
echaussidon/LSS
205ce48a288acacbd41358e6d0215f4aff355049
[ "BSD-3-Clause" ]
null
null
null
py/LSS/imaging/veto_masks/lrg/lrg_wise_mask_v1.py
echaussidon/LSS
205ce48a288acacbd41358e6d0215f4aff355049
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, print_function import sys, os, glob, time, warnings, gc # import matplotlib.pyplot as plt import numpy as np from astropy.table import Table, vstack, hstack import fitsio from astropy.io import fits from scipy.interpolate import interp1d output_path = '/global/cfs/cdirs/desi/users/ro...
33.483871
116
0.706166
198
1,038
3.565657
0.474747
0.025496
0.036827
0.050992
0.152975
0.152975
0.152975
0.152975
0.152975
0.152975
0
0.144114
0.124277
1,038
30
117
34.6
0.632563
0.055877
0
0
0
0.105263
0.19877
0.156762
0
0
0
0
0
1
0
false
0
0.368421
0
0.368421
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f87515fbbdca8d3d26053fb65bc3d5ece4d188b8
290
py
Python
cursoDePythonNaPratica/aula18 - telegram.py
wemerson-henrique/kivy
3cb6061a2d19b01e86c3738206f30c8a853763d4
[ "MIT" ]
null
null
null
cursoDePythonNaPratica/aula18 - telegram.py
wemerson-henrique/kivy
3cb6061a2d19b01e86c3738206f30c8a853763d4
[ "MIT" ]
null
null
null
cursoDePythonNaPratica/aula18 - telegram.py
wemerson-henrique/kivy
3cb6061a2d19b01e86c3738206f30c8a853763d4
[ "MIT" ]
null
null
null
import telepot # Não criei um bot no telegram ainda, dessa forma este codigo não funciona # TODO: Criar bot no telegram e pegar chave bot = telepot.Bot("Aqui vai minha chave do Telegram") def recebendoMsg(msg): print(msg['text']) bot.message_loop(recebendoMsg) while True: pass
20.714286
74
0.741379
45
290
4.755556
0.733333
0.046729
0.121495
0
0
0
0
0
0
0
0
0
0.17931
290
14
75
20.714286
0.89916
0.393103
0
0
0
0
0.206897
0
0
0
0
0.071429
0
1
0.142857
false
0.142857
0.142857
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
0
0
0
0
0
2
f875e138fd658884c3bfbd92197a369b04338ea0
4,590
py
Python
cembot/languages/EN.py
niksart/cembot
99ec3067bde5b8b72053dd18caa18742afba6a5e
[ "MIT" ]
null
null
null
cembot/languages/EN.py
niksart/cembot
99ec3067bde5b8b72053dd18caa18742afba6a5e
[ "MIT" ]
15
2018-08-30T13:56:27.000Z
2021-07-21T08:58:03.000Z
cembot/languages/EN.py
niksart/cembot
99ec3067bde5b8b72053dd18caa18742afba6a5e
[ "MIT" ]
null
null
null
# Support for english (EN) language def missing_translation(tr_id): return "MISSING TRANSLATION FOR STRING ID '" + str(tr_id) + "'" helper_commands = { "AUTHORIZE": "Usage:\n/authorize @<username>\n/authorize <user id>", "DEAUTHORIZE": "Usage:\n/deauthorize @<username>\n/deauthorize <user id>", "GIVEN": "Usage:\n...
49.891304
144
0.70305
628
4,590
4.921975
0.265924
0.02944
0.035587
0.048528
0.158848
0.146231
0.097703
0.025235
0.025235
0.025235
0
0.001053
0.172331
4,590
91
145
50.43956
0.808897
0.030065
0
0.0375
0
0.0375
0.735268
0.194332
0
0
0
0
0
1
0.0125
false
0
0
0.0125
0.025
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f87b501fc4a702c459b5a826cf1537ec0638bb2a
1,855
py
Python
core/migrations/0001_initial.py
SanjaLV/Tenis
ea714da10207723c27ff7204b4285ea6a773521b
[ "MIT" ]
null
null
null
core/migrations/0001_initial.py
SanjaLV/Tenis
ea714da10207723c27ff7204b4285ea6a773521b
[ "MIT" ]
null
null
null
core/migrations/0001_initial.py
SanjaLV/Tenis
ea714da10207723c27ff7204b4285ea6a773521b
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-03-31 10:31 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
37.1
132
0.581132
183
1,855
5.770492
0.415301
0.102273
0.05303
0.083333
0.386364
0.386364
0.291667
0.291667
0.291667
0.291667
0
0.018769
0.281941
1,855
49
133
37.857143
0.774024
0.024259
0
0.380952
1
0
0.073562
0
0
0
0
0
0
1
0
false
0
0.071429
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
f87cfb9c6282ebda75b44ea58b3afec144dcbcf4
448
py
Python
generator.py
iomintz/python-snippets
982861c173bf4bcd5d908514a9e8b1914a580a5d
[ "CC0-1.0" ]
2
2020-04-10T07:29:56.000Z
2020-05-27T03:45:21.000Z
generator.py
iomintz/python-snippets
982861c173bf4bcd5d908514a9e8b1914a580a5d
[ "CC0-1.0" ]
null
null
null
generator.py
iomintz/python-snippets
982861c173bf4bcd5d908514a9e8b1914a580a5d
[ "CC0-1.0" ]
2
2018-11-24T08:16:59.000Z
2019-02-24T04:41:30.000Z
#!/usr/bin/env python3 # encoding: utf-8 # Douglas Crockford's idea for making generators # basically "why do you need a `yield` keyword when you can just maintain some state" # in my view, a class would be a better way to do this, and indeed, in python, # that's how Iterators are defined. def iter(list): i = 0 def ...
22.4
85
0.683036
81
448
3.765432
0.753086
0.032787
0
0
0
0
0
0
0
0
0
0.022535
0.207589
448
19
86
23.578947
0.83662
0.622768
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.363636
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
0
0
0
0
0
0
0
0
1
0
f87d14c4254943a1783a77600bab62106f89c898
6,336
py
Python
pddlstream/ss/algorithms/fast_downward.py
zerongxi/Kitchen2D
2cbaa6c8ea8fbf5f5c3a5de34cb11efde4121793
[ "MIT" ]
35
2018-03-15T14:26:33.000Z
2022-02-09T15:37:59.000Z
pddlstream/ss/algorithms/fast_downward.py
zerongxi/Kitchen2D
2cbaa6c8ea8fbf5f5c3a5de34cb11efde4121793
[ "MIT" ]
1
2020-11-03T04:49:43.000Z
2020-11-17T16:42:48.000Z
pddlstream/ss/algorithms/fast_downward.py
zerongxi/Kitchen2D
2cbaa6c8ea8fbf5f5c3a5de34cb11efde4121793
[ "MIT" ]
12
2018-04-28T20:11:21.000Z
2021-09-18T22:24:46.000Z
from time import time from ss.utils import INF import sys import os import shutil TEMP_DIR = 'temp/' DOMAIN_INPUT = 'domain.pddl' PROBLEM_INPUT = 'problem.pddl' TRANSLATE_OUTPUT = 'output.sas' SEARCH_OUTPUT = 'sas_plan' ENV_VAR = 'FD_PATH' FD_BIN = 'bin' TRANSLATE_DIR = 'translate/' SEARCH_COMMAND = 'downward --inter...
34.064516
94
0.646938
882
6,336
4.43424
0.175737
0.042956
0.049859
0.07057
0.458706
0.424955
0.424955
0.417796
0.389159
0.364868
0
0.008309
0.202178
6,336
185
95
34.248649
0.765381
0
0
0.184932
0
0.041096
0.37863
0.269886
0
0
0
0
0
0
null
null
0
0.047945
null
null
0.034247
0
0
0
null
0
0
0
0
0
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
f881c0e0b875dfcd895b81b936783f36c735935f
564
py
Python
backend/external/docgen/request_token.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
backend/external/docgen/request_token.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
backend/external/docgen/request_token.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
import requests from api import config def get_docgen_token(): params = { "grant_type": "client_credentials", "client_id": config.COMMON_DOCGEN_CLIENT_ID, "client_secret": config.COMMON_DOCGEN_CLIENT_SECRET, "scope": "" } req = requests.post( config.COMMON_DOCGEN_S...
21.692308
64
0.615248
63
564
5.222222
0.587302
0.109422
0.164134
0.145897
0
0
0
0
0
0
0
0
0.269504
564
25
65
22.56
0.798544
0
0
0
0
0
0.198582
0.058511
0
0
0
0
0
1
0.05
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f88205db59ac35f6745b81386eb53c57775a1972
3,164
py
Python
gcode_gen/gcode.py
tulth/gcode_gen
d6e276f2074d4fe66755b2ae06c5b4d85583c563
[ "BSD-3-Clause" ]
null
null
null
gcode_gen/gcode.py
tulth/gcode_gen
d6e276f2074d4fe66755b2ae06c5b4d85583c563
[ "BSD-3-Clause" ]
null
null
null
gcode_gen/gcode.py
tulth/gcode_gen
d6e276f2074d4fe66755b2ae06c5b4d85583c563
[ "BSD-3-Clause" ]
null
null
null
''' Library for gcode commands objects that render to strings. ''' from .number import num2str from .point import XYZ class GcodePoint(XYZ): def __str__(self): ret_list = [] for label, val in zip(('X', 'Y', 'Z'), self.xyz): if val is not None: ret_list.append('{}{}'.for...
24.913386
71
0.60335
400
3,164
4.3925
0.27
0.072851
0.09391
0.034149
0.310188
0.187251
0.172453
0.172453
0.164485
0.164485
0
0.009125
0.23799
3,164
126
72
25.111111
0.719618
0.155499
0
0.214286
0
0
0.02662
0
0
0
0
0
0.028571
1
0.271429
false
0
0.028571
0.028571
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
1
0
0
2
f8825ad47b75cf630d4ad3f98bb97cd2847d852d
619
py
Python
tAPP/2/P3.py
ArvinZJC/UofG_PGT_PSD_Python
d90e9bb0b53b14c6b1d7e657c3c61e2792e0d9c4
[ "MIT" ]
null
null
null
tAPP/2/P3.py
ArvinZJC/UofG_PGT_PSD_Python
d90e9bb0b53b14c6b1d7e657c3c61e2792e0d9c4
[ "MIT" ]
null
null
null
tAPP/2/P3.py
ArvinZJC/UofG_PGT_PSD_Python
d90e9bb0b53b14c6b1d7e657c3c61e2792e0d9c4
[ "MIT" ]
null
null
null
''' Description: Problem 3 (rearrange the code) Version: 1.0.1.20210116 Author: Arvin Zhao Date: 2021-01-14 22:51:16 Last Editors: Arvin Zhao LastEditTime: 2021-01-16 04:11:18 ''' def get_data(): username = input('Enter your username: ') age = int(input('Enter your age: ')) data_tuple = (username, age) ...
20.633333
74
0.646204
88
619
4.409091
0.613636
0.141753
0.072165
0.103093
0
0
0
0
0
0
0
0.086957
0.219709
619
30
75
20.633333
0.716356
0.350565
0
0
0
0
0.131646
0
0
0
0
0
0
1
0.2
false
0
0
0
0.266667
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8825cac93ae51da9c9e342930c13e66cd5b1a63
1,046
py
Python
tf_trees/demo.py
hazimehh/google-research
81ff754d88f9ad479448c78d7ab615bef140423d
[ "Apache-2.0" ]
null
null
null
tf_trees/demo.py
hazimehh/google-research
81ff754d88f9ad479448c78d7ab615bef140423d
[ "Apache-2.0" ]
null
null
null
tf_trees/demo.py
hazimehh/google-research
81ff754d88f9ad479448c78d7ab615bef140423d
[ "Apache-2.0" ]
null
null
null
from tensorflow import keras # Make sure the tf_trees directory is in the search path. from tf_trees import TEL # The documentation of TEL can be accessed as follows print(TEL.__doc__) # We will fit TEL on the Boston Housing regression dataset. # First, load the dataset. from keras.datasets import boston_housing (x_t...
38.740741
82
0.772467
176
1,046
4.4375
0.511364
0.049936
0.057618
0.03073
0
0
0
0
0
0
0
0.012277
0.143403
1,046
26
83
40.230769
0.859375
0.515296
0
0
0
0
0.020161
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
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
0
0
0
0
0
0
0
0
1
0
f88367f68dcb96f708907ba780b8dfe0c11ecea5
725
py
Python
tests/utils_test.py
MartinThoma/nntoolkit
1f9eed7b6d6fdacc706060d9cbfefaa9c2d0dbf8
[ "MIT" ]
4
2015-01-26T17:56:05.000Z
2020-04-01T05:52:00.000Z
tests/utils_test.py
MartinThoma/nntoolkit
1f9eed7b6d6fdacc706060d9cbfefaa9c2d0dbf8
[ "MIT" ]
11
2015-01-06T10:34:36.000Z
2021-03-22T18:29:45.000Z
tests/utils_test.py
MartinThoma/nntoolkit
1f9eed7b6d6fdacc706060d9cbfefaa9c2d0dbf8
[ "MIT" ]
6
2015-01-02T15:02:27.000Z
2021-05-12T18:09:35.000Z
#!/usr/bin/env python # Core Library modules import argparse import os # Third party modules import pytest # First party modules import nntoolkit.utils as utils def test_is_valid_file(): parser = argparse.ArgumentParser() # Does exist path = os.path.realpath(__file__) assert utils.is_valid_file(pa...
20.714286
62
0.704828
93
725
5.301075
0.397849
0.085193
0.097363
0.103448
0.503043
0.288032
0.20284
0.20284
0.20284
0.20284
0
0
0.193103
725
34
63
21.323529
0.842735
0.183448
0
0.266667
0
0
0.083904
0.035959
0
0
0
0
0.133333
1
0.133333
false
0
0.266667
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8837ac94ce790820bfbaf796665ce3cc290523c
101
py
Python
ex1.py
luismachado/python_project_euler
79798ee00c18f4f8cc1b397aa7c92f8175a3ed33
[ "MIT" ]
null
null
null
ex1.py
luismachado/python_project_euler
79798ee00c18f4f8cc1b397aa7c92f8175a3ed33
[ "MIT" ]
null
null
null
ex1.py
luismachado/python_project_euler
79798ee00c18f4f8cc1b397aa7c92f8175a3ed33
[ "MIT" ]
null
null
null
sum = 0 for x in range(1,1000): if x%3 == 0 or x%5 == 0: sum += x print ("Total is:", sum)
14.428571
26
0.485149
22
101
2.227273
0.681818
0
0
0
0
0
0
0
0
0
0
0.144928
0.316832
101
7
27
14.428571
0.565217
0
0
0
0
0
0.09375
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
1
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
2
f885cb85cd328a59b1d3f0d46e987b871f1a5d6d
1,977
py
Python
apiser/10-grpc/src/utils/tools/zemail.py
hyhlinux/demo_vue
cf61d0ba21cce93b04951076c8c23c0fe693bb5b
[ "Apache-2.0" ]
null
null
null
apiser/10-grpc/src/utils/tools/zemail.py
hyhlinux/demo_vue
cf61d0ba21cce93b04951076c8c23c0fe693bb5b
[ "Apache-2.0" ]
2
2022-02-10T12:00:22.000Z
2022-03-02T02:31:40.000Z
apiser/10-grpc/src/utils/tools/zemail.py
hyhlinux/demo_vue
cf61d0ba21cce93b04951076c8c23c0fe693bb5b
[ "Apache-2.0" ]
null
null
null
import smtplib import os from email.mime.text import MIMEText from email.utils import formataddr from email.mime.image import MIMEImage from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.header import Header try: from src.config import CONFIG except ImportError: class...
29.954545
107
0.630754
250
1,977
4.864
0.352
0.074013
0.042763
0.027961
0.223684
0.185855
0.185855
0.185855
0.120066
0.120066
0
0.010081
0.247344
1,977
65
108
30.415385
0.807124
0.054628
0
0.148148
0
0
0.067633
0
0
0
0
0
0
1
0.111111
false
0.074074
0.185185
0
0.407407
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f8885de2c1bf956e3ffc0a2b8c32753cd240d5eb
2,679
py
Python
can_decoder/Frame.py
justinwald99/can_decoder
abfdd839856745f88b3fc3a58c8bedbdd05d5616
[ "MIT" ]
17
2020-08-18T02:34:57.000Z
2022-03-16T16:26:53.000Z
can_decoder/Frame.py
justinwald99/can_decoder
abfdd839856745f88b3fc3a58c8bedbdd05d5616
[ "MIT" ]
4
2020-09-09T04:18:28.000Z
2022-02-23T10:29:14.000Z
can_decoder/Frame.py
justinwald99/can_decoder
abfdd839856745f88b3fc3a58c8bedbdd05d5616
[ "MIT" ]
3
2021-08-18T18:30:43.000Z
2022-02-21T07:11:09.000Z
from typing import List, Optional from can_decoder.Signal import Signal class Frame(object): id = 0 # type: int size = 0 # type: int signals = None # type: List[Signal] multiplexer = None # type: Optional[Signal] def __init__( self, frame_id: int, fram...
29.43956
117
0.528182
297
2,679
4.649832
0.346801
0.031861
0.011586
0.028965
0
0
0
0
0
0
0
0.004332
0.39679
2,679
90
118
29.766667
0.850248
0.181411
0
0.122807
0
0.017544
0.052388
0
0
0
0
0.011111
0
1
0.105263
false
0.052632
0.035088
0.035088
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
0
0
0
0
0
2
f888a9124299142dae94af378de65454815c28dd
268
py
Python
Curso_de_Python_ Curso_em_Video/PythonTeste/operadoresAritmeticosEx007.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
Curso_de_Python_ Curso_em_Video/PythonTeste/operadoresAritmeticosEx007.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
Curso_de_Python_ Curso_em_Video/PythonTeste/operadoresAritmeticosEx007.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
largura = float(input('Digite a largura da parede: ')) altura = float(input('Digite a altura da parede: ')) area = largura * altura tinta = area / 2 print('A área da parede é de {}'.format(area)) print('Será necessário para pintar {} litros de tinta'.format(tinta))
29.777778
69
0.697761
41
268
4.560976
0.512195
0.128342
0.171123
0.181818
0
0
0
0
0
0
0
0.004444
0.160448
268
8
70
33.5
0.826667
0
0
0
0
0
0.466418
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
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
2
f888dc9c7ee0e666487347bc03cdcb3278274bed
174
py
Python
terraform.py
kyleslater/254-space-log
7496ff4e134b1a916580d8c0f8a0493e4863e9a2
[ "MIT" ]
null
null
null
terraform.py
kyleslater/254-space-log
7496ff4e134b1a916580d8c0f8a0493e4863e9a2
[ "MIT" ]
null
null
null
terraform.py
kyleslater/254-space-log
7496ff4e134b1a916580d8c0f8a0493e4863e9a2
[ "MIT" ]
null
null
null
#Kyle Slater import re def terraformable(content:str): pattern = re.compile("\"TerraformState\":\"Terraformable\"") matches = pattern.findall(content) return len(matches)
24.857143
61
0.752874
20
174
6.55
0.75
0
0
0
0
0
0
0
0
0
0
0
0.097701
174
7
62
24.857143
0.834395
0.063218
0
0
0
0
0.018405
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
1
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
2
f88a9c72050c19a376ad171a7a2391d21f7e3ac6
256
py
Python
bugzilla_service/bzservice_flask/app/tests/test_flaskr.py
5GEVE/5G-EVE-PORTAL-BACKEND-tsb
3fe3140b26d30e7e7ff1a034315183eaed60a599
[ "MIT" ]
null
null
null
bugzilla_service/bzservice_flask/app/tests/test_flaskr.py
5GEVE/5G-EVE-PORTAL-BACKEND-tsb
3fe3140b26d30e7e7ff1a034315183eaed60a599
[ "MIT" ]
3
2021-02-08T20:38:29.000Z
2021-06-02T00:55:43.000Z
file_storage_service/tests/test_flaskr.py
5GEVE/5G-EVE-PORTAL-BACKEND-fs
27d5d10fa39e3007cfee2e48e3b95047abf2c144
[ "MIT" ]
null
null
null
import os import tempfile import requests api_url = "http://127.0.0.1:8989" def test_no_token(): """Request home without token""" response = requests.get(api_url+"/isvalid") print(response.status_code) assert response.status_code == 401
23.272727
47
0.707031
37
256
4.72973
0.702703
0.068571
0.205714
0
0
0
0
0
0
0
0
0.060748
0.164063
256
11
48
23.272727
0.757009
0.101563
0
0
0
0
0.128889
0
0
0
0
0
0.125
1
0.125
false
0
0.375
0
0.5
0.125
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
f88aa3fcd8cfa698889ea39a72ffe01decd8c2ea
6,279
py
Python
translator-v2.py
g-h-0-S-t/translator
9e55b5b3a7d68b85aa718bc9eef064599b75f914
[ "MIT" ]
1
2021-07-22T14:06:08.000Z
2021-07-22T14:06:08.000Z
translator-v2.py
g-h-0-S-t/translator
9e55b5b3a7d68b85aa718bc9eef064599b75f914
[ "MIT" ]
null
null
null
translator-v2.py
g-h-0-S-t/translator
9e55b5b3a7d68b85aa718bc9eef064599b75f914
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # MIT License # # Copyright (c) 2021 gh0$t # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy,...
34.5
218
0.645963
818
6,279
4.887531
0.380196
0.032516
0.036018
0.04002
0.311406
0.295398
0.284392
0.263382
0.253127
0.24062
0
0.006637
0.136168
6,279
181
219
34.690608
0.730457
0.316929
0
0.430233
0
0.023256
0.303942
0.104955
0
0
0
0
0
1
0.011628
false
0.023256
0.104651
0
0.116279
0.116279
0
0
0
null
0
0
0
0
0
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
1
0
f88ab7cb09ff4cce53f828728ecd959e4a4ca37a
955
py
Python
djangoBackend/payment_module/migrations/0005_auto_20210924_0054.py
muhanzi/Django-REST-API
08b8b2bbd08a74589cca7b5fd4e1d604d9a6d7eb
[ "Apache-2.0" ]
null
null
null
djangoBackend/payment_module/migrations/0005_auto_20210924_0054.py
muhanzi/Django-REST-API
08b8b2bbd08a74589cca7b5fd4e1d604d9a6d7eb
[ "Apache-2.0" ]
null
null
null
djangoBackend/payment_module/migrations/0005_auto_20210924_0054.py
muhanzi/Django-REST-API
08b8b2bbd08a74589cca7b5fd4e1d604d9a6d7eb
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.2 on 2021-09-23 21:54 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('payment_module', '0004_auto_20210924_0009'), ] operations = [ migrations.RenameField( model_name='commission', old_name='age...
24.487179
54
0.536126
84
955
5.869048
0.47619
0.212982
0.263692
0.30426
0.551724
0.551724
0.458418
0
0
0
0
0.050243
0.353927
955
38
55
25.131579
0.748784
0.04712
0
0.59375
1
0
0.176211
0.02533
0
0
0
0
0
1
0
false
0
0.03125
0
0.125
0
0
0
0
null
1
1
1
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
4
f88e5bdd49e9b79ee78760de491336a0c465e929
935
py
Python
general/tfHelper.py
jbroot/SHGAN
9ed83f8356145adcbda219c0d9673e36109b0cb2
[ "MIT" ]
null
null
null
general/tfHelper.py
jbroot/SHGAN
9ed83f8356145adcbda219c0d9673e36109b0cb2
[ "MIT" ]
null
null
null
general/tfHelper.py
jbroot/SHGAN
9ed83f8356145adcbda219c0d9673e36109b0cb2
[ "MIT" ]
null
null
null
import tensorflow as tf import keras import numpy as np def get_bias_major_weights(model): weights = model.get_weights() biasMajor = [] for arrI in range(0, len(weights), 2): inWeights = weights[arrI] biasWeights = weights[arrI+1].reshape((1,-2)) l = np.concatenate((biasWeights, inW...
32.241379
73
0.698396
126
935
5.055556
0.420635
0.037677
0.028257
0.047096
0.169545
0.10675
0
0
0
0
0
0.020861
0.179679
935
28
74
33.392857
0.809648
0
0
0
0
0
0
0
0
0
0
0
0
1
0.173913
false
0
0.130435
0.043478
0.478261
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
0
0
1
0
f88f6e13c4185abcf8cceff79dbfda6d0f9a19ba
486
py
Python
wsgi/settings.py
zhemao/speakeasy
793bcca6d30fe31b1579bb8464f1eafacd6eb593
[ "BSD-2-Clause" ]
1
2022-02-02T10:40:59.000Z
2022-02-02T10:40:59.000Z
wsgi/settings.py
zhemao/speakeasy
793bcca6d30fe31b1579bb8464f1eafacd6eb593
[ "BSD-2-Clause" ]
null
null
null
wsgi/settings.py
zhemao/speakeasy
793bcca6d30fe31b1579bb8464f1eafacd6eb593
[ "BSD-2-Clause" ]
null
null
null
import os MONGO_HOST = os.getenv('OPENSHIFT_NOSQL_DB_HOST') MONGO_PORT = os.getenv('OPENSHIFT_NOSQL_DB_PORT') MONGO_USERNAME = os.getenv('OPENSHIFT_NOSQL_DB_USERNAME') MONGO_PASSWORD = os.getenv('OPENSHIFT_NOSQL_DB_PASSWORD') MONGO_DBNAME = 'speakeasy' PRIV_KEY_FILE = os.getenv('OPENSHIFT_DATA_DIR') + '/server_privat...
30.375
71
0.790123
75
486
4.68
0.36
0.136752
0.290598
0.250712
0.48433
0.210826
0.210826
0.210826
0
0
0
0
0.082305
486
15
72
32.4
0.786996
0
0
0
0
0
0.374486
0.205761
0
0
0
0
0
1
0
false
0.090909
0.090909
0
0.090909
0
0
0
0
null
0
1
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
1
0
0
0
0
0
3
f8900e5fac4e08162311478b3ed9cf017f5cb02c
10,047
py
Python
perl_io.py
hariguchi/perl_io
1deb367faa56081b68c4eda99d364f5b533a331e
[ "MIT" ]
null
null
null
perl_io.py
hariguchi/perl_io
1deb367faa56081b68c4eda99d364f5b533a331e
[ "MIT" ]
null
null
null
perl_io.py
hariguchi/perl_io
1deb367faa56081b68c4eda99d364f5b533a331e
[ "MIT" ]
null
null
null
r''' perl_io - Opens a file or pipe in the Perl style Copyright (c) 2016 Yoichi Hariguchi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rig...
33.602007
78
0.54902
1,335
10,047
4.043446
0.214232
0.008151
0.009448
0.008892
0.373101
0.314931
0.264357
0.24435
0.231753
0.187662
0
0.013059
0.336916
10,047
298
79
33.714765
0.797208
0.364686
0
0.412791
0
0
0.082019
0.007886
0
0
0
0
0.046512
1
0.087209
false
0
0.052326
0.017442
0.19186
0.087209
0
0
0
null
0
0
0
0
0
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
1
0
f89039eac3e7b46b0d707c6f7b3927ce103b2914
919
py
Python
app/controllers/config/system/logs.py
grepleria/SnitchDNS
24f98b01fd5fca9aa2c660d6ee15742f2e44915c
[ "MIT" ]
152
2020-12-07T13:26:53.000Z
2022-03-23T02:00:04.000Z
app/controllers/config/system/logs.py
grepleria/SnitchDNS
24f98b01fd5fca9aa2c660d6ee15742f2e44915c
[ "MIT" ]
16
2020-12-07T17:04:36.000Z
2022-03-10T11:12:52.000Z
app/controllers/config/system/logs.py
grepleria/SnitchDNS
24f98b01fd5fca9aa2c660d6ee15742f2e44915c
[ "MIT" ]
36
2020-12-09T13:04:40.000Z
2022-03-12T18:14:36.000Z
from .. import bp from flask import request, render_template, flash, redirect, url_for from flask_login import current_user, login_required from app.lib.base.provider import Provider from app.lib.base.decorators import admin_required @bp.route('/logs/errors', methods=['GET']) @login_required @admin_required def logs_...
26.257143
68
0.688792
131
919
4.633588
0.358779
0.138386
0.069193
0.046129
0.128501
0
0
0
0
0
0
0.010944
0.20457
919
34
69
27.029412
0.819425
0
0
0
0
0
0.062024
0.032644
0
0
0
0
0
1
0.038462
false
0
0.192308
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8905d54c870fed2c5b2b1831a4130a25651f566
5,539
py
Python
MR-OCP/mrcap/utils/downsample_atlas.py
justi/m2g
09e8b889889ee8d8fb08b9b6fcd726fb3d901644
[ "Apache-2.0" ]
12
2015-03-11T22:07:17.000Z
2016-01-29T21:24:29.000Z
MR-OCP/mrcap/utils/downsample_atlas.py
youngmook/m2g
09e8b889889ee8d8fb08b9b6fcd726fb3d901644
[ "Apache-2.0" ]
213
2015-01-30T16:02:57.000Z
2016-01-29T21:45:02.000Z
MR-OCP/mrcap/utils/downsample_atlas.py
youngmook/m2g
09e8b889889ee8d8fb08b9b6fcd726fb3d901644
[ "Apache-2.0" ]
5
2015-02-04T13:58:12.000Z
2016-01-29T21:24:46.000Z
#!/usr/bin/env python # Copyright 2014 Open Connectome Project (http://openconnecto.me) # # 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.582353
157
0.667268
871
5,539
4.167623
0.353617
0.027273
0.01157
0.011019
0.055647
0.025895
0.020937
0.020937
0.020937
0.014876
0
0.017804
0.209063
5,539
169
158
32.775148
0.810774
0.223326
0
0.022222
0
0.011111
0.146871
0.006398
0
0
0
0.005917
0.011111
0
null
null
0
0.111111
null
null
0.077778
0
0
0
null
0
0
0
0
0
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
f890b528c3dd1757b9098304393522baa32267a2
2,241
py
Python
tensorforce/agents/random_agent.py
matthewwilfred/tensorforce
0ba3d39ed88fb0a0a0bf4bf03e79150c0fe0d54c
[ "Apache-2.0", "MIT" ]
1
2021-08-23T19:49:03.000Z
2021-08-23T19:49:03.000Z
tensorforce/agents/random_agent.py
matthewwilfred/tensorforce
0ba3d39ed88fb0a0a0bf4bf03e79150c0fe0d54c
[ "Apache-2.0", "MIT" ]
null
null
null
tensorforce/agents/random_agent.py
matthewwilfred/tensorforce
0ba3d39ed88fb0a0a0bf4bf03e79150c0fe0d54c
[ "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2017 reinforce.io. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
30.283784
96
0.622936
266
2,241
5.105263
0.458647
0.064801
0.050074
0.023564
0
0
0
0
0
0
0
0.008511
0.265953
2,241
73
97
30.69863
0.817021
0.358322
0
0.111111
0
0
0.018868
0
0
0
0
0
0
1
0.111111
false
0
0.138889
0
0.388889
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f891f4ca2c23bac0817312243666f8fd196ddfcf
9,970
py
Python
selinum_basics.py
elithaxxor/craiglist_scraper
db35d06004e306229cd10d7678574763cf48c625
[ "MIT" ]
null
null
null
selinum_basics.py
elithaxxor/craiglist_scraper
db35d06004e306229cd10d7678574763cf48c625
[ "MIT" ]
null
null
null
selinum_basics.py
elithaxxor/craiglist_scraper
db35d06004e306229cd10d7678574763cf48c625
[ "MIT" ]
null
null
null
import os import re import time from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver import Chrome from s...
57.298851
1,381
0.768907
1,326
9,970
5.686275
0.21267
0.022546
0.036074
0.045093
0.665252
0.649602
0.616313
0.587268
0.548011
0.518966
0
0.133326
0.090471
9,970
173
1,382
57.630058
0.698169
0.671214
0
0.194444
0
0.041667
0.259845
0.147837
0
0
0
0.00578
0
1
0
false
0
0.166667
0
0.166667
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f893a81b68249d96ab59017996d9f35493423f0f
8,644
py
Python
training/MNISTFashionMicroservice/src/server/training.py
UMass-Rescue/CombinedTechStack
b3447b174d9798f3baf9bf6509b4cc14a5bd225a
[ "MIT" ]
null
null
null
training/MNISTFashionMicroservice/src/server/training.py
UMass-Rescue/CombinedTechStack
b3447b174d9798f3baf9bf6509b4cc14a5bd225a
[ "MIT" ]
32
2021-03-17T13:17:22.000Z
2021-05-04T14:25:31.000Z
training/MNISTFashionMicroservice/src/server/training.py
UMass-Rescue/CombinedTechStack
b3447b174d9798f3baf9bf6509b4cc14a5bd225a
[ "MIT" ]
1
2021-03-24T13:47:44.000Z
2021-03-24T13:47:44.000Z
import os import tempfile import shutil import requests import sys import logging import json from src.server.dependency import ModelData import tensorflow as tf class StreamToLogger(object): """ Fake file-like stream object that redirects writes to a logger instance. Source: https://stackoverflow.com/a/3...
32.618868
117
0.614762
1,056
8,644
4.822917
0.221591
0.033576
0.021206
0.023365
0.255252
0.224426
0.211467
0.176713
0.161005
0.156686
0
0.005174
0.284475
8,644
264
118
32.742424
0.81827
0.157219
0
0.104046
0
0
0.125935
0.006234
0
0
0
0
0
1
0.040462
false
0.00578
0.052023
0
0.121387
0.00578
0
0
0
null
0
0
0
0
0
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
1
0
f894286d87c8139bf9e7bda1448f050c5b02eb70
3,287
py
Python
app.py
pythonlittleboy/python_gentleman_crawler
751b624d22a5024746c256080ea0815a9986e3d7
[ "Apache-2.0" ]
1
2017-05-03T12:18:31.000Z
2017-05-03T12:18:31.000Z
app.py
pythonlittleboy/python_gentleman_crawler
751b624d22a5024746c256080ea0815a9986e3d7
[ "Apache-2.0" ]
null
null
null
app.py
pythonlittleboy/python_gentleman_crawler
751b624d22a5024746c256080ea0815a9986e3d7
[ "Apache-2.0" ]
1
2020-10-29T04:00:04.000Z
2020-10-29T04:00:04.000Z
from flask import Flask from flask import render_template from flask import request from model import MovieWebDAO import json from ml import Forcast app = Flask(__name__) @app.route('/') def hello_world(): return render_template('index.html') @app.route('/hello/') @app.route('/hello/<name>') def hello(name=None)...
31.009434
79
0.703377
403
3,287
5.672457
0.200993
0.052493
0.061242
0.052493
0.430009
0.430009
0.34252
0.34252
0.34252
0.34252
0
0.010172
0.132644
3,287
106
80
31.009434
0.791652
0.024947
0
0.220779
0
0
0.149189
0.015293
0
0
0
0
0
1
0.181818
false
0
0.077922
0.090909
0.454545
0.012987
0
0
0
null
0
0
0
0
0
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
1
0
f89a1bc1e1f90da376a0c1761bee56b1db485561
1,438
py
Python
remove_negative_from_positive_augmented_samples.py
DarkElement75/object-detection-experiments
fc638f361f76d7bbb6e5cde9a3480c656b486ad6
[ "MIT" ]
null
null
null
remove_negative_from_positive_augmented_samples.py
DarkElement75/object-detection-experiments
fc638f361f76d7bbb6e5cde9a3480c656b486ad6
[ "MIT" ]
null
null
null
remove_negative_from_positive_augmented_samples.py
DarkElement75/object-detection-experiments
fc638f361f76d7bbb6e5cde9a3480c656b486ad6
[ "MIT" ]
null
null
null
import h5py import numpy as np import cv2 def read_new(archive_dir): with h5py.File(archive_dir, "r", chunks=True, compression="gzip") as hf: """ Load our X data the usual way, using a memmap for our x data because it may be too large to hold in RAM, and loading Y as normal ...
35.95
112
0.632823
236
1,438
3.707627
0.40678
0.082286
0.059429
0.038857
0.162286
0.112
0
0
0
0
0
0.023299
0.253825
1,438
39
113
36.871795
0.792171
0
0
0
0
0
0.077154
0.029058
0
0
0
0
0
0
null
null
0
0.115385
null
null
0.076923
0
0
0
null
0
0
0
0
0
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
f89ade1e452186e4d101ccde6adaccc57996d66d
646
py
Python
Automate_Whatsapp_Sending_Text.py
IshvinaKapoor/Automate-WhatsApp
f499db0540c56b74152a368af1fa361ecea69806
[ "MIT" ]
null
null
null
Automate_Whatsapp_Sending_Text.py
IshvinaKapoor/Automate-WhatsApp
f499db0540c56b74152a368af1fa361ecea69806
[ "MIT" ]
null
null
null
Automate_Whatsapp_Sending_Text.py
IshvinaKapoor/Automate-WhatsApp
f499db0540c56b74152a368af1fa361ecea69806
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Automate WhatsApp - Sending WhatsApp message @author: DELL Ishvina Kapoor """ #importing the necessary modules import pywhatkit as pkt import getpass as gp #displaying a welcome message print("Automating Whatsapp!") #capturing the target phone number from the user phone_...
23.925926
96
0.716718
91
646
5.065934
0.692308
0.039046
0
0
0
0
0
0
0
0
0
0.013514
0.198142
646
27
97
23.925926
0.876448
0.47678
0
0
0
0
0.35906
0
0
0
0
0
0
1
0
false
0.285714
0.285714
0
0.285714
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
f89c748dd51197d30a5af7af230eb9f70959fb01
894
py
Python
transonic/analyses/beniget.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
transonic/analyses/beniget.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
transonic/analyses/beniget.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
import gast as ast from beniget import Ancestors, DefUseChains as DUC, UseDefChains from beniget.beniget import Def __all__ = ["Ancestors", "DefUseChains", "UseDefChains"] class DefUseChains(DUC): def visit_List(self, node): if isinstance(node.ctx, ast.Load): dnode = self.chains.setdefault...
29.8
64
0.659955
109
894
5.330275
0.513761
0.037866
0.05852
0.068847
0
0
0
0
0
0
0
0.004566
0.265101
894
29
65
30.827586
0.879756
0.187919
0
0
0
0
0.04577
0
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.529412
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
0
0
1
0
f89ffb26ee589ce79dc400f7f5cf4afa16b557b3
88
py
Python
view/resources/__init__.py
surfaceanalytics/inelasticscattering
da549dde788a55084c565bbc5f89ebf9cbae4263
[ "MIT" ]
null
null
null
view/resources/__init__.py
surfaceanalytics/inelasticscattering
da549dde788a55084c565bbc5f89ebf9cbae4263
[ "MIT" ]
3
2021-09-08T03:02:25.000Z
2022-03-12T01:00:06.000Z
view/resources/__init__.py
surfaceanalytics/inelasticscattering
da549dde788a55084c565bbc5f89ebf9cbae4263
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Sep 3 16:43:28 2020 @author: nicholls """
11
35
0.568182
14
88
3.571429
1
0
0
0
0
0
0
0
0
0
0
0.173913
0.215909
88
7
36
12.571429
0.550725
0.875
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
f8a219513d5df677c7712f374a4d0f79bdc2f13b
2,401
py
Python
2020/python/16.py
gcp825/advent_of_code
b4ea17572847e1a9044487041b3e12a0da58c94b
[ "MIT" ]
1
2021-12-29T09:32:08.000Z
2021-12-29T09:32:08.000Z
2020/python/16.py
gcp825/advent_of_code
b4ea17572847e1a9044487041b3e12a0da58c94b
[ "MIT" ]
null
null
null
2020/python/16.py
gcp825/advent_of_code
b4ea17572847e1a9044487041b3e12a0da58c94b
[ "MIT" ]
null
null
null
from collections import Counter def read_file(filepath): with open(filepath,'r') as f: a = [x for x in f.read().split('\n\n')] b = []; d = [] for x in [[x[0],x[1].split(' or ')] for x in [x.split(': ') for x in a[0].split('\n')]]: for y in x[1]: ...
24.752577
96
0.43107
332
2,401
3.045181
0.23494
0.043521
0.065282
0.041543
0.152324
0.06726
0.021761
0
0
0
0
0.024927
0.431903
2,401
96
97
25.010417
0.716276
0
0
0
0
0
0.015827
0
0
0
0
0
0
1
0.084746
false
0
0.016949
0
0.186441
0.016949
0
0
0
null
0
0
0
0
0
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
1
0
f8a565676ba40410367b887bd52120b87f5a4d60
9,512
py
Python
MODEL3.CNN.py
alhasacademy96/finalyearproject
1f8f21dea55e45807767e465c27b225e2fc5c082
[ "MIT" ]
2
2020-09-15T18:10:12.000Z
2021-01-25T21:54:04.000Z
MODEL3.CNN.py
alhasacademy96/finalyearproject
1f8f21dea55e45807767e465c27b225e2fc5c082
[ "MIT" ]
null
null
null
MODEL3.CNN.py
alhasacademy96/finalyearproject
1f8f21dea55e45807767e465c27b225e2fc5c082
[ "MIT" ]
null
null
null
# Author: Ibrahim Alhas - ID: 1533204. # MODEL 3: CNN with built-in tensorflow tokenizer. # This is the final version of the model (not the base). # Packages and libraries used for this model. # ** Install these if not installed already **. import numpy as np import pandas as pd import matplotlib.pyplot ...
37.746032
120
0.700694
1,349
9,512
4.842847
0.28762
0.012399
0.011021
0.014082
0.130874
0.087555
0.04041
0.04041
0.011021
0
0
0.017487
0.152334
9,512
251
121
37.896414
0.792757
0.312027
0
0.041379
0
0
0.107895
0.003684
0
0
0
0
0.006897
1
0
false
0
0.151724
0
0.151724
0.124138
0
0
0
null
0
0
0
0
0
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
1
0
f8a57061a44b4ce6c14481e8a79c00cddf4bc7c8
40,857
py
Python
tn/old_scripts/old_md_to_pdf/export_md_to_pdf.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
6
2015-07-27T21:50:39.000Z
2020-06-25T14:32:35.000Z
tn/old_scripts/old_md_to_pdf/export_md_to_pdf.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
89
2015-06-24T09:35:40.000Z
2022-02-13T14:40:31.000Z
tn/old_scripts/old_md_to_pdf/export_md_to_pdf.py
unfoldingWord-dev/tools
7251d64b4750f1615125dab3c09d6d00a9c284b4
[ "MIT" ]
12
2015-07-13T17:31:04.000Z
2021-08-06T06:50:21.000Z
#!/usr/bin/env python2 # -*- coding: utf8 -*- # # Copyright (c) 2017 unfoldingWord # http://creativecommons.org/licenses/MIT/ # See LICENSE file for details. # # Contributors: # Richard Mahn <rich.mahn@unfoldingword.org> """ This script generates the HTML tN documents for each book of the Bible """ from __future_...
49.46368
254
0.548303
5,124
40,857
4.215457
0.097775
0.016667
0.015741
0.0175
0.412222
0.338333
0.260046
0.212546
0.18963
0.15912
0
0.014075
0.290501
40,857
825
255
49.523636
0.731061
0.051913
0
0.165951
0
0.010014
0.140736
0.04654
0.002861
0
0
0
0
1
0.050072
false
0
0.031474
0.001431
0.130186
0.021459
0
0
0
null
0
0
0
0
0
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
1
0
f8a59fce72ffcde75ac9e9b378c6906ab092d7dd
2,565
py
Python
mudi/interp/bootstrap_aucell.py
getzlab/mudi
eda170119708e59920c23a03834af915ecca24ce
[ "MIT" ]
1
2021-11-04T00:08:00.000Z
2021-11-04T00:08:00.000Z
mudi/interp/bootstrap_aucell.py
getzlab/mudi
eda170119708e59920c23a03834af915ecca24ce
[ "MIT" ]
null
null
null
mudi/interp/bootstrap_aucell.py
getzlab/mudi
eda170119708e59920c23a03834af915ecca24ce
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from tqdm import tqdm import argparse from pyscenic.aucell import aucell from .aucell import create_gene_signatures from .aucell import assign_bootstrap def main(): parser = argparse.ArgumentParser(description='AUcell Bootstrapping.') parser.add_argument( '-i', '-...
28.5
91
0.617934
325
2,565
4.701538
0.347692
0.04712
0.089005
0.041885
0.109948
0
0
0
0
0
0
0.006205
0.246004
2,565
89
92
28.820225
0.783868
0.021053
0
0.226667
0
0
0.2083
0
0
0
0
0
0
1
0.013333
false
0
0.093333
0
0.106667
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8a65542e1ebb18eabea4f393380c912f8314bfc
696
py
Python
network/topo-custom.py
kstough/pox
152625fcd40fc5ddfce87b7632fd40777507205c
[ "Apache-2.0" ]
null
null
null
network/topo-custom.py
kstough/pox
152625fcd40fc5ddfce87b7632fd40777507205c
[ "Apache-2.0" ]
null
null
null
network/topo-custom.py
kstough/pox
152625fcd40fc5ddfce87b7632fd40777507205c
[ "Apache-2.0" ]
null
null
null
"""Custom topology example s7 ---- s8 ---- s9 / \ / \ / \ h1 h2 h3 h4 h5 h6 """ from mininet.topo import Topo print('Loading MyTopo') class MyTopo(Topo): "Simple topology example." def __init__(self): Topo.__init__(self) # Add hosts and switches h1, h2, h3, h4, h5, h6 = (se...
19.885714
79
0.570402
105
696
3.704762
0.428571
0.226221
0.100257
0.041131
0.061697
0.061697
0
0
0
0
0
0.07393
0.261494
696
34
80
20.470588
0.682879
0.211207
0
0
0
0
0.082585
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
0.058824
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f8a77e8060730c4c9bc76d9c5c083f084aed00b7
2,383
py
Python
test_alarms.py
ajaynema/rule-engine
99cd5d54dd45e1223d0eec2a65bc6d5f0ef3da51
[ "MIT" ]
null
null
null
test_alarms.py
ajaynema/rule-engine
99cd5d54dd45e1223d0eec2a65bc6d5f0ef3da51
[ "MIT" ]
null
null
null
test_alarms.py
ajaynema/rule-engine
99cd5d54dd45e1223d0eec2a65bc6d5f0ef3da51
[ "MIT" ]
null
null
null
from rule_condition import Condition from rule_action import Action from rule_template import RuleTemplate from rule_engine import RuleEngine from rule import Rule from rule_data import Data from rule_scope import Scope from action_handler_send_email import SendEmailHandler from action_handler_report_alarm import Repor...
29.419753
81
0.660512
283
2,383
5.367491
0.173145
0.131666
0.05135
0.052666
0.563529
0.563529
0.45293
0.45293
0.45293
0.45293
0
0.01849
0.182963
2,383
81
82
29.419753
0.761685
0
0
0.424242
0
0
0.192534
0.009648
0
0
0
0
0
1
0.090909
false
0
0.136364
0
0.227273
0.121212
0
0
0
null
0
0
0
0
0
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
1
0
f8a7cc80262619abcc2b85bf1530f105f8f8ce34
362
py
Python
agri/urls.py
Bhavesh0327/Agriblock
72015e1765214b153771dbc3868eae01fe8898b3
[ "MIT" ]
1
2020-10-01T08:28:57.000Z
2020-10-01T08:28:57.000Z
agri/urls.py
Bhavesh0327/Agriblock
72015e1765214b153771dbc3868eae01fe8898b3
[ "MIT" ]
14
2020-06-05T20:37:13.000Z
2022-02-26T22:51:36.000Z
agri/urls.py
Bhavesh0327/Agriblock
72015e1765214b153771dbc3868eae01fe8898b3
[ "MIT" ]
3
2020-01-29T04:34:28.000Z
2020-09-30T21:48:30.000Z
from django.urls import path from .views import * rest_urls = list(map(lambda x: path(x[0], x[1], name=x[2]), [ ('login/', login, 'login'), ('issue_asset/', issue_asset, 'issue_asset'), ('buy/', buy, 'buy'), ('get_assets/', get_assets, 'get_assets'), ('get_transactions/', get_transactions, 'get_tr...
25.857143
63
0.638122
49
362
4.489796
0.469388
0.136364
0.163636
0.181818
0.136364
0
0
0
0
0
0
0.009868
0.160221
362
13
64
27.846154
0.713816
0
0
0
0
0
0.262431
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f8a96eee4517afeca4532922b8ea2f6d38dc101a
4,898
py
Python
lib/utils_monai.py
octaviomtz/Growing-Neural-Cellular-Automata
a6f91661e35f7bd0d7b90ac4347f4d56c9351d0b
[ "MIT" ]
null
null
null
lib/utils_monai.py
octaviomtz/Growing-Neural-Cellular-Automata
a6f91661e35f7bd0d7b90ac4347f4d56c9351d0b
[ "MIT" ]
null
null
null
lib/utils_monai.py
octaviomtz/Growing-Neural-Cellular-Automata
a6f91661e35f7bd0d7b90ac4347f4d56c9351d0b
[ "MIT" ]
null
null
null
import os import numpy as np import monai import math import torch import glob from skimage.morphology import remove_small_holes, remove_small_objects from monai.transforms import ( LoadImaged, AddChanneld, Orientationd, Spacingd, ScaleIntensityRanged, SpatialPadd, RandAffined, RandCropB...
39.5
111
0.669661
658
4,898
4.74772
0.232523
0.034571
0.017286
0.029449
0.477273
0.440781
0.412612
0.37484
0.302497
0.302497
0
0.020102
0.197632
4,898
123
112
39.821138
0.774809
0.078808
0
0.284404
0
0
0.079697
0.023598
0
0
0
0
0.009174
1
0.06422
false
0
0.073395
0
0.201835
0.018349
0
0
0
null
0
0
0
0
0
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
1
0
f8ab0286f449987129eeade795e566330ff36d18
867
py
Python
api/leaderboard/tests/test_views.py
individuo7/wololo-tournaments-api
5be6284064373e99346d39c78844e454c41c501d
[ "MIT" ]
2
2019-12-09T10:19:36.000Z
2020-01-11T11:48:41.000Z
api/leaderboard/tests/test_views.py
individuo7/wololo-tournaments-api
5be6284064373e99346d39c78844e454c41c501d
[ "MIT" ]
null
null
null
api/leaderboard/tests/test_views.py
individuo7/wololo-tournaments-api
5be6284064373e99346d39c78844e454c41c501d
[ "MIT" ]
null
null
null
import json import pytest from unittest import TestCase from rest_framework.test import APIClient from ..models import Group, Prediction @pytest.mark.django_db class PredictionViewSetTest(TestCase): def setUp(self): self.client = APIClient() def test_prediction_list(self): response = self.cl...
27.967742
63
0.704729
103
867
5.805825
0.368932
0.06689
0.053512
0.060201
0.652174
0.575251
0.575251
0.575251
0.575251
0.575251
0
0.008584
0.193772
867
30
64
28.9
0.846924
0
0
0.521739
0
0
0.033449
0
0
0
0
0
0.173913
1
0.173913
false
0
0.217391
0
0.478261
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
0
0
1
0
f8ab70b04aa64ecaf4843be345aba0efec2cfc69
414
py
Python
sapextractor/utils/string_matching/distances.py
aarkue/sap-meta-explorer
613bf657bbaa72a3781a84664e5de7626516532f
[ "Apache-2.0" ]
2
2021-02-10T08:09:35.000Z
2021-05-21T06:25:34.000Z
sapextractor/utils/string_matching/distances.py
aarkue/sap-meta-explorer
613bf657bbaa72a3781a84664e5de7626516532f
[ "Apache-2.0" ]
null
null
null
sapextractor/utils/string_matching/distances.py
aarkue/sap-meta-explorer
613bf657bbaa72a3781a84664e5de7626516532f
[ "Apache-2.0" ]
3
2021-11-22T13:27:00.000Z
2022-03-16T22:08:51.000Z
import stringdist def levenshtein(stru1, stru2): """ Measures the Levenshtein distance between two strings Parameters --------------- stru1 First string stru2 Second string Returns --------------- levens_dist Levenshtein distance """ return stringd...
16.56
57
0.601449
38
414
6.526316
0.552632
0.16129
0.254032
0
0
0
0
0
0
0
0
0.033333
0.275362
414
24
58
17.25
0.793333
0.458937
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.2
0.2
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
f8acaa7460d221225a0bd79d4a5ca48dc091b0af
2,873
py
Python
components/aws/sagemaker/delete_simulation_app/src/robomaker_delete_simulation_app_spec.py
Strasser-Pablo/pipelines
a1d513eb412f3ffd44edf82af2fa7edb05c3b952
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/aws/sagemaker/delete_simulation_app/src/robomaker_delete_simulation_app_spec.py
Strasser-Pablo/pipelines
a1d513eb412f3ffd44edf82af2fa7edb05c3b952
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/aws/sagemaker/delete_simulation_app/src/robomaker_delete_simulation_app_spec.py
Strasser-Pablo/pipelines
a1d513eb412f3ffd44edf82af2fa7edb05c3b952
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
"""Specification for the RoboMaker delete. simulation application component.""" # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
32.280899
88
0.725374
264
2,873
7.818182
0.435606
0.061047
0.043605
0.037791
0.111434
0.059109
0.059109
0.059109
0.059109
0.059109
0
0.001767
0.211974
2,873
88
89
32.647727
0.909894
0.258615
0
0.135593
0
0
0.077947
0
0
0
0
0
0
1
0.067797
false
0
0.067797
0.050847
0.322034
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
0
0
1
0
f8aeac4c82055a9ca0856652e23d45a0af0bcf39
7,595
py
Python
ckanext-hdx_theme/ckanext/hdx_theme/util/jql_queries.py
alexandru-m-g/hdx-ckan
647f1f23f0505fa195601245b758edcaf4d25985
[ "Apache-2.0" ]
null
null
null
ckanext-hdx_theme/ckanext/hdx_theme/util/jql_queries.py
alexandru-m-g/hdx-ckan
647f1f23f0505fa195601245b758edcaf4d25985
[ "Apache-2.0" ]
null
null
null
ckanext-hdx_theme/ckanext/hdx_theme/util/jql_queries.py
alexandru-m-g/hdx-ckan
647f1f23f0505fa195601245b758edcaf4d25985
[ "Apache-2.0" ]
null
null
null
DOWNLOADS_PER_DATASET = ''' /* VER 1.2 used for total downloads from 2016-08-01 which is used to sort datasets by "most downloads" for the "XXX downloads" counter on /search and on each individual dataset gets all download events and counts occurrences of unique combinations of user, resource, and dataset, and day, t...
42.194444
493
0.688743
1,098
7,595
4.687614
0.143898
0.0408
0.054401
0.037303
0.770157
0.761609
0.736546
0.725277
0.705265
0.685059
0
0.015558
0.170639
7,595
180
494
42.194444
0.801556
0
0
0.819876
0
0.130435
0.958004
0.209057
0
0
0
0
0
1
0
false
0
0
0
0.099379
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
f8afd1b0a1d62c5e20c07db83d59c2c494f17348
13,343
py
Python
source/rttov_test/profile-datasets-py/div83/077.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
source/rttov_test/profile-datasets-py/div83/077.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
1
2022-03-12T12:19:59.000Z
2022-03-12T12:19:59.000Z
source/rttov_test/profile-datasets-py/div83/077.py
bucricket/projectMAScorrection
89489026c8e247ec7c364e537798e766331fe569
[ "BSD-3-Clause" ]
null
null
null
""" Profile ../profile-datasets-py/div83/077.py file automaticaly created by prof_gen.py script """ self["ID"] = "../profile-datasets-py/div83/077.py" self["Q"] = numpy.array([ 3.01408100e+00, 3.40341800e+00, 3.94918400e+00, 4.08209300e+00, 4.65722800e+00, 5.59385900e+00, 5.9688...
57.512931
92
0.566739
2,008
13,343
3.764442
0.462151
0.014684
0.008731
0.0127
0.014288
0.014288
0.007144
0.007144
0.007144
0.007144
0
0.700165
0.271378
13,343
231
93
57.761905
0.07735
0.00712
0
0
0
0
0.018818
0.002645
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
3
f8b003880b2b0c817a1e02d7db8475b7ea56eada
2,624
py
Python
xos/synchronizers/monitoring_channel/templates/sflow_pub_sub/sflow_sub_records.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/monitoring_channel/templates/sflow_pub_sub/sflow_sub_records.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
xos/synchronizers/monitoring_channel/templates/sflow_pub_sub/sflow_sub_records.py
xmaruto/mcord
3678a3d10c3703c2b73f396c293faebf0c82a4f4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import fnmatch import logging class sflow_sub_record: def __init__(self,scheme,app_id,app_ip,app_port,subscription_info,sub_info_filter): logging.debug("* Updating subscription_info ") self.scheme = scheme self.app_id = app_id self.ipaddress = app_ip self...
41
91
0.62843
326
2,624
4.751534
0.205521
0.092963
0.092963
0.046482
0.247902
0.113622
0.082634
0.051646
0
0
0
0
0.21875
2,624
63
92
41.650794
0.75561
0.006098
0
0.210526
0
0
0.210587
0.036824
0
0
0
0
0
1
0.087719
false
0
0.035088
0
0.22807
0.035088
0
0
0
null
0
0
0
0
0
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
1
0
f8b2fa45ad6aa0b508fe2d6b2b81fce66e566e4c
3,148
py
Python
scripts/gcorr/run_xfaster.py
SPIDER-CMB/xfaster
1b8e56d775f2c3a8693d1372ae461392c21da7ca
[ "MIT" ]
1
2021-03-25T14:15:44.000Z
2021-03-25T14:15:44.000Z
scripts/gcorr/run_xfaster.py
annegambrel/xfaster
03d5a2971d3cc19ae360d78995e3575f3f678d6e
[ "MIT" ]
7
2021-04-20T23:34:38.000Z
2021-08-24T00:00:53.000Z
scripts/gcorr/run_xfaster.py
SPIDER-CMB/xfaster
1b8e56d775f2c3a8693d1372ae461392c21da7ca
[ "MIT" ]
1
2021-05-18T16:43:54.000Z
2021-05-18T16:43:54.000Z
""" A script to run XFaster for gcorr calculation. Called by iterate.py. """ import os import xfaster as xf import argparse as ap from configparser import ConfigParser # Change XFaster options here to suit your purposes opts = dict( likelihood=False, residual_fit=False, foreground_fit=False, # change o...
28.618182
88
0.661055
459
3,148
4.385621
0.339869
0.017884
0.053651
0.025832
0.130651
0.068058
0.044213
0.032787
0.032787
0
0
0.005475
0.187738
3,148
109
89
28.880734
0.781776
0.120394
0
0.104651
0
0
0.288203
0
0
0
0
0
0.011628
1
0
false
0
0.046512
0
0.046512
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
0
0
1
0
f8b309e5e28868df32235aef95ba627c1ca50e48
1,888
py
Python
tests/examples/c_decisions/tests_decisions.py
MSGP117/acc-cosc-1336-spring-2022-MSGP117
46fdfa5da8f8eb887d2c79fe205b8a0064d6903d
[ "MIT" ]
null
null
null
tests/examples/c_decisions/tests_decisions.py
MSGP117/acc-cosc-1336-spring-2022-MSGP117
46fdfa5da8f8eb887d2c79fe205b8a0064d6903d
[ "MIT" ]
null
null
null
tests/examples/c_decisions/tests_decisions.py
MSGP117/acc-cosc-1336-spring-2022-MSGP117
46fdfa5da8f8eb887d2c79fe205b8a0064d6903d
[ "MIT" ]
1
2022-02-12T03:50:32.000Z
2022-02-12T03:50:32.000Z
import unittest from src.examples.c_decisions.decisions import is_letter_consonant, logical_op_precedence, num_is_not_in_range_or, number_is_in_range_and, test_config from src.examples.c_decisions.decisions import get_letter_grade from src.examples.c_decisions.decisions import logical_op_precedence from src.examples.c...
46.04878
150
0.743114
281
1,888
4.6121
0.174377
0.219907
0.04321
0.074074
0.462963
0.396605
0.37037
0.246914
0.195988
0.195988
0
0.044514
0.155191
1,888
41
151
46.04878
0.768025
0
0
0
0
0
0.011117
0
0
0
0
0
0.59375
1
0.21875
false
0
0.15625
0
0.40625
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
1
0
1
0
0
0
0
0
0
0
3
f8b46b6ff72b56497017d6f934899df81b96c51a
32
py
Python
badge/__init__.py
krisgesling/swag-badge-skill
7640264880d8ae14f9c49c3ba40c6e388e58dcaf
[ "Apache-2.0" ]
1
2021-01-24T01:42:15.000Z
2021-01-24T01:42:15.000Z
badge/__init__.py
krisgesling/swag-badge-skill
7640264880d8ae14f9c49c3ba40c6e388e58dcaf
[ "Apache-2.0" ]
null
null
null
badge/__init__.py
krisgesling/swag-badge-skill
7640264880d8ae14f9c49c3ba40c6e388e58dcaf
[ "Apache-2.0" ]
null
null
null
from .client import MQTT_Client
16
31
0.84375
5
32
5.2
0.8
0
0
0
0
0
0
0
0
0
0
0
0.125
32
1
32
32
0.928571
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
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
1
0
1
0
1
0
0
6
f8b5ae0ccaf93b252b0712f888f73a49ece568a6
23,824
py
Python
easy_server/_server_file.py
andy-maier/secureserveraccess
24f4817b2066401451840b3c7b308e1792eb3e60
[ "Apache-2.0" ]
1
2021-03-29T22:09:47.000Z
2021-03-29T22:09:47.000Z
easy_server/_server_file.py
andy-maier/secureserveraccess
24f4817b2066401451840b3c7b308e1792eb3e60
[ "Apache-2.0" ]
49
2021-03-29T20:13:28.000Z
2021-05-01T10:38:19.000Z
easy_server/_server_file.py
andy-maier/secureserveraccess
24f4817b2066401451840b3c7b308e1792eb3e60
[ "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 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
37.815873
80
0.580423
2,485
23,824
5.42495
0.126761
0.049774
0.025072
0.032639
0.546918
0.510496
0.478674
0.439137
0.410949
0.363029
0
0.000644
0.347759
23,824
629
81
37.875994
0.866916
0.331808
0
0.42522
0
0
0.207422
0.012573
0
0
0
0
0
1
0.035191
false
0.026393
0.017595
0
0.117302
0.002933
0
0
0
null
0
0
0
0
0
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
1
0
f8b628877707fa6132110ae047367879935e3268
444
py
Python
mezzanine_pagedown/defaults.py
eht16/mezzanine-pagedown
e6090f5713097e664e85b279a4a17febb73b00a1
[ "BSD-2-Clause" ]
94
2015-01-28T15:46:02.000Z
2020-11-02T12:56:15.000Z
mezzanine_pagedown/defaults.py
eht16/mezzanine-pagedown
e6090f5713097e664e85b279a4a17febb73b00a1
[ "BSD-2-Clause" ]
56
2015-04-05T03:18:41.000Z
2021-08-29T00:50:57.000Z
mezzanine_pagedown/defaults.py
eht16/mezzanine-pagedown
e6090f5713097e664e85b279a4a17febb73b00a1
[ "BSD-2-Clause" ]
38
2015-08-26T08:10:12.000Z
2021-06-11T19:36:31.000Z
from mezzanine.conf import register_setting register_setting( name="PAGEDOWN_SERVER_SIDE_PREVIEW", description="Render previews on the server using the same " "converter that generates the actual pages.", editable=False, default=False, ) register_setting( name="PAGEDOWN_MARKDOWN_E...
24.666667
73
0.725225
49
444
6.408163
0.673469
0.143312
0.121019
0.171975
0
0
0
0
0
0
0
0
0.193694
444
17
74
26.117647
0.877095
0
0
0.285714
0
0
0.443694
0.126126
0
0
0
0
0
1
0
true
0
0.071429
0
0.071429
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
1
0
0
0
0
0
0
2
f8b864241fa615529ec19943c7bf44bcc5c33cfb
4,274
py
Python
solutions/2021/day5/day5.py
teije01/adventofcode
2742985f8437e9784e7ec5430e3846a755b5d386
[ "MIT" ]
null
null
null
solutions/2021/day5/day5.py
teije01/adventofcode
2742985f8437e9784e7ec5430e3846a755b5d386
[ "MIT" ]
null
null
null
solutions/2021/day5/day5.py
teije01/adventofcode
2742985f8437e9784e7ec5430e3846a755b5d386
[ "MIT" ]
null
null
null
""" --- Day 5: Hydrothermal Venture --- You come across a field of hydrothermal vents on the ocean floor! These vents constantly produce large, opaque clouds, so it would be best to avoid them if possible. They tend to form in lines; the submarine helpfully produces a list of nearby lines of vents (your puzzle input)...
31.426471
111
0.653486
747
4,274
3.697456
0.281125
0.01231
0.010862
0.008689
0.227009
0.185373
0.144823
0.133961
0.115858
0.091238
0
0.071001
0.218999
4,274
135
112
31.659259
0.756441
0.63781
0
0.102564
0
0
0.07236
0.033246
0
0
0
0
0
1
0.153846
false
0
0.025641
0.102564
0.333333
0.051282
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
f8b88aa220e765ebad5849f646d7fa3f22e031df
1,316
py
Python
sort_array_by_parity_ii_alt.py
tusharsadhwani/leetcode
a17a8a7587c5654f05fcd13ae7cdf47263ab2ea8
[ "MIT" ]
6
2021-05-21T01:10:42.000Z
2021-12-16T16:12:30.000Z
sort_array_by_parity_ii_alt.py
tusharsadhwani/leetcode
a17a8a7587c5654f05fcd13ae7cdf47263ab2ea8
[ "MIT" ]
null
null
null
sort_array_by_parity_ii_alt.py
tusharsadhwani/leetcode
a17a8a7587c5654f05fcd13ae7cdf47263ab2ea8
[ "MIT" ]
null
null
null
from typing import Callable class Solution: def sortArrayByParityII(self, nums: list[int]) -> list[int]: # Crucial lesson: 2 pointer approach doesn't necessarily mean # the pointers should start at opposite ends of the array. evens, odds = 0, 1 end = len(nums) while evens <...
24.830189
77
0.50152
161
1,316
4.062112
0.372671
0.06422
0.110092
0.119266
0.097859
0
0
0
0
0
0
0.055952
0.361702
1,316
52
78
25.307692
0.722619
0.088146
0
0.170732
0
0
0
0
0
0
0
0
0.04878
1
0.04878
false
0
0.02439
0
0.121951
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
0
0
1
0
f8ba3fd25de458d4df99e4ca579804ce22c8dbdc
112
py
Python
database.py
anthonypang99/TakeNote
7da668d48b72ee825f3fb9f503f8d4d6fe2ff644
[ "MIT" ]
null
null
null
database.py
anthonypang99/TakeNote
7da668d48b72ee825f3fb9f503f8d4d6fe2ff644
[ "MIT" ]
null
null
null
database.py
anthonypang99/TakeNote
7da668d48b72ee825f3fb9f503f8d4d6fe2ff644
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy # Initialize the Flask-SQLAlchemy extension instance db = SQLAlchemy()
22.4
52
0.830357
13
112
7.076923
0.692308
0.326087
0
0
0
0
0
0
0
0
0
0
0.125
112
4
53
28
0.938776
0.446429
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
1
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
1
0
0
0
0
4
f8ba6e975ac143461562e6b418e4b0a0aee2b105
4,285
py
Python
alfred/Alfred.alfredpreferences/workflows/user.workflow.99DE3F5C-7CB4-4E0B-9195-7782AADC167B/converter/constants.py
karamfil/saphe
f1c56dcf11613808e07f462d50f20881aef7fbdc
[ "MIT" ]
2
2019-09-17T10:20:20.000Z
2020-02-10T11:46:33.000Z
alfred/Alfred.alfredpreferences/workflows/user.workflow.99DE3F5C-7CB4-4E0B-9195-7782AADC167B/converter/constants.py
karamfil/saphe
f1c56dcf11613808e07f462d50f20881aef7fbdc
[ "MIT" ]
null
null
null
alfred/Alfred.alfredpreferences/workflows/user.workflow.99DE3F5C-7CB4-4E0B-9195-7782AADC167B/converter/constants.py
karamfil/saphe
f1c56dcf11613808e07f462d50f20881aef7fbdc
[ "MIT" ]
null
null
null
import re UNITS_XML_FILE = 'poscUnits22.xml' UNITS_PICKLE_FILE = 'units.pickle' OUTPUT_DECIMALS = 6 SOURCE_PATTERN = r'^(?P<quantity>.*[\d.]+)\s*(?P<from>[^\d\s]([^\s]*|.+?))' SOURCE_RE = re.compile(SOURCE_PATTERN + '$', re.IGNORECASE | re.VERBOSE) FULL_PATTERN = r'(\s+as|\s+to|\s+in|\s*>|\s*=)\s(?P<to>[^\d\s][^\s...
22.792553
76
0.54189
499
4,285
4.559118
0.52505
0.008791
0.024176
0.015824
0.042637
0
0
0
0
0
0
0.019271
0.224971
4,285
187
77
22.914439
0.665763
0.094749
0
0
0
0.007092
0.335402
0.038014
0
0
0
0
0
1
0.014184
false
0
0.007092
0.007092
0.042553
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
0
0
1
0
f8bab3dc683ade4a29b7e25ca1a99e68f49ac849
462
py
Python
30/00/1.py
pylangstudy/201707
c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6
[ "CC0-1.0" ]
null
null
null
30/00/1.py
pylangstudy/201707
c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6
[ "CC0-1.0" ]
46
2017-06-30T22:19:07.000Z
2017-07-31T22:51:31.000Z
30/00/1.py
pylangstudy/201707
c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6
[ "CC0-1.0" ]
null
null
null
def RetT(): print('True'); return True def RetF(): print('False'); return False print('----- or -----') RetT() or RetF() RetF() or RetT() #第一引数が偽のときにのみ、第二引数が評価されます。 print('----- and -----') RetT() and RetF() #第一引数が真のときにのみ、第二引数が評価されます。 RetF() and RetT() #第一引数が真のときにのみ、第二引数が評価されます。 print('----- not -----') print(not Tr...
25.666667
53
0.645022
61
462
4.885246
0.262295
0.11745
0.080537
0.107383
0
0
0
0
0
0
0
0
0.12987
462
17
54
27.176471
0.741294
0.272727
0
0
0
0
0.160121
0
0
0
0
0
0
1
0.153846
true
0
0
0
0.153846
0.692308
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
2
f8bc9f66b7afd106a2727f0668012f3210c6ab27
1,548
py
Python
tests/test_click.py
maxmouchet/mtoolbox
977f3af1e3fe6e6403a26fcca3a30a1285eb28c2
[ "MIT" ]
null
null
null
tests/test_click.py
maxmouchet/mtoolbox
977f3af1e3fe6e6403a26fcca3a30a1285eb28c2
[ "MIT" ]
2
2020-07-19T21:03:34.000Z
2020-09-11T14:56:34.000Z
tests/test_click.py
maxmouchet/mtoolbox
977f3af1e3fe6e6403a26fcca3a30a1285eb28c2
[ "MIT" ]
null
null
null
from enum import Enum from pathlib import Path import click from mbox.click import EnumChoice, ParsedDate, PathParam class AF(Enum): IPv4 = 4 IPv6 = 6 def test_enum_choice(runner): @click.command() @click.option("--af", type=EnumChoice(AF, int)) def cmd(af): click.echo(af) result ...
24.1875
72
0.623385
205
1,548
4.639024
0.287805
0.113565
0.094637
0.105152
0.396425
0.329127
0.300736
0.214511
0.132492
0.132492
0
0.033828
0.217054
1,548
63
73
24.571429
0.750825
0
0
0.195652
0
0
0.132429
0.015504
0
0
0
0
0.217391
1
0.152174
false
0
0.086957
0
0.304348
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
0
0
1
0