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
1e9b7538277d5d67a1c81518f7a6a0a540188fa4
612
py
Python
src/compas_assembly/ghpython/__init__.py
BlockResearchGroup/compas_assembly
6a257e1afaf304f9ddad02baed2396e5bacf91f8
[ "MIT" ]
8
2019-01-30T18:08:07.000Z
2021-06-25T09:35:01.000Z
src/compas_assembly/ghpython/__init__.py
BlockResearchGroup/compas_assembly
6a257e1afaf304f9ddad02baed2396e5bacf91f8
[ "MIT" ]
6
2019-07-17T11:29:45.000Z
2020-03-20T13:32:38.000Z
src/compas_assembly/ghpython/__init__.py
BlockResearchGroup/compas_assembly
6a257e1afaf304f9ddad02baed2396e5bacf91f8
[ "MIT" ]
18
2019-01-29T09:02:40.000Z
2021-12-09T09:52:25.000Z
""" ******************************************************************************** compas_assembly.ghpython ******************************************************************************** .. currentmodule:: compas_assembly.ghpython This package defines various classes and functions for working with assemblies in R...
18.545455
80
0.54085
43
612
7.44186
0.674419
0.0875
0.1375
0
0
0
0
0
0
0
0
0
0.133987
612
32
81
19.125
0.603774
0.714052
0
0
0
0
0.150602
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1eb18fd8037421486c601f72c91051acd1e06da6
3,113
py
Python
tests/test_spark_offline_store.py
kevjumba/feast-spark-offline-store
a75e9c2e687a41c59667b53acb5352d08de15ea9
[ "MIT" ]
null
null
null
tests/test_spark_offline_store.py
kevjumba/feast-spark-offline-store
a75e9c2e687a41c59667b53acb5352d08de15ea9
[ "MIT" ]
null
null
null
tests/test_spark_offline_store.py
kevjumba/feast-spark-offline-store
a75e9c2e687a41c59667b53acb5352d08de15ea9
[ "MIT" ]
null
null
null
import os import pandas as pd from datetime import datetime from feast import FeatureStore from example_feature_repo.example import ( driver, driver_hourly_stats_view, customer, customer_daily_profile_view, ) def test_end_to_end_one_feature_view(feature_store: FeatureStore): try: # apply...
30.821782
94
0.613877
352
3,113
5.119318
0.292614
0.09323
0.04717
0.038291
0.686459
0.673696
0.673696
0.673696
0.673696
0.673696
0
0.014201
0.298747
3,113
100
95
31.13
0.811269
0.099904
0
0.324324
0
0
0.204798
0.076262
0
0
0
0
0.040541
1
0.040541
false
0
0.067568
0
0.108108
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1eb27d42192256c8c0e2085a04524f455f863071
1,791
py
Python
pseudo_dojo/core/release.py
henriquemiranda/pseudo_dojo
40e26ca5139909b891581a07e12f375e921f6aad
[ "CC-BY-4.0" ]
null
null
null
pseudo_dojo/core/release.py
henriquemiranda/pseudo_dojo
40e26ca5139909b891581a07e12f375e921f6aad
[ "CC-BY-4.0" ]
null
null
null
pseudo_dojo/core/release.py
henriquemiranda/pseudo_dojo
40e26ca5139909b891581a07e12f375e921f6aad
[ "CC-BY-4.0" ]
null
null
null
# coding: utf-8 """Release data for the pseudo_dojo project.""" from __future__ import division, print_function, unicode_literals # Name of the package for release purposes. This is the name which labels # the tarballs and RPMs made by distutils, so it's best to lowercase it. name = 'pseudo_dojo' # version informati...
31.421053
90
0.743719
247
1,791
5.194332
0.554656
0.046765
0.024942
0.0265
0
0
0
0
0
0
0
0.00334
0.164154
1,791
56
91
31.982143
0.853707
0.353992
0
0
0
0
0.319061
0
0
0
0
0.017857
0
1
0
false
0
0.052632
0
0.052632
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
1
0
0
0
0
0
0
0
0
0
0
1
1ebb7bf50ff953772b0f363981961118ba5c3165
619
py
Python
SSh/remote_cmd_for_fun.py
Zureno/DubleDableDo
174df3b9fd76ff5cd7c303811ed900c845ae460b
[ "MIT" ]
null
null
null
SSh/remote_cmd_for_fun.py
Zureno/DubleDableDo
174df3b9fd76ff5cd7c303811ed900c845ae460b
[ "MIT" ]
null
null
null
SSh/remote_cmd_for_fun.py
Zureno/DubleDableDo
174df3b9fd76ff5cd7c303811ed900c845ae460b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import threading import paramiko import subprocess from cowpy import cow def ssh_command(ip,user,passwd,command): cow_cli = cow.get_cow('turtle') cheese = cow_cli() msg = cheese.milk("Hi there!!. Do you like my new SSH-client") print(msg) client = paramiko.SSHClient() client.set_missing_h...
28.136364
63
0.767367
93
619
4.935484
0.612903
0.087146
0
0
0
0
0
0
0
0
0
0.019749
0.100162
619
21
64
29.47619
0.804309
0.033926
0
0
0
0
0.127303
0
0
0
0
0
0
1
0.055556
false
0.111111
0.222222
0
0.333333
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1ebba243cefab18255dc6158d6f7d13e74c61a55
382
py
Python
vue_backend/upload/migrations/0003_image_is_cover.py
hanson190505/coteam
8bd01f4edc2a0b2a65dc18d68e36efb11cbdf576
[ "MIT" ]
1
2021-03-18T17:04:52.000Z
2021-03-18T17:04:52.000Z
vue_backend/upload/migrations/0003_image_is_cover.py
hanson190505/coteam
8bd01f4edc2a0b2a65dc18d68e36efb11cbdf576
[ "MIT" ]
11
2020-04-03T04:16:24.000Z
2022-03-26T10:36:49.000Z
vue_backend/upload/migrations/0003_image_is_cover.py
hanson190505/coteam
8bd01f4edc2a0b2a65dc18d68e36efb11cbdf576
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-12-03 02:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('upload', '0002_image_pack_number'), ] operations = [ migrations.AddField( model_name='image', name='is_cover', ...
20.105263
49
0.594241
42
382
5.285714
0.809524
0
0
0
0
0
0
0
0
0
0
0.073801
0.290576
382
18
50
21.222222
0.745387
0.117801
0
0
1
0
0.122388
0.065672
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1ebf0b5dfd59a1bbdb8e38978810635f2428fa8e
6,228
py
Python
run.py
MosesOpiyo/password_locker
907e2f027854d6cbe7985ee502142b7707822e53
[ "MIT" ]
null
null
null
run.py
MosesOpiyo/password_locker
907e2f027854d6cbe7985ee502142b7707822e53
[ "MIT" ]
null
null
null
run.py
MosesOpiyo/password_locker
907e2f027854d6cbe7985ee502142b7707822e53
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.8 from user import User from credentials import Credentials def create_user(name,email,phone_number,password): ''' Function to create a new contact ''' new_user = User(name,email,phone_number,password) return new_user def create_credential(platform_name,username,user_password...
36.421053
152
0.515575
622
6,228
5
0.196141
0.046302
0.032154
0.017363
0.109325
0.086817
0.076527
0
0
0
0
0.002095
0.386802
6,228
171
153
36.421053
0.812255
0.062299
0
0.115044
0
0.00885
0.220091
0.046913
0
0
0
0
0
1
0.123894
false
0.185841
0.017699
0.026549
0.221239
0.362832
0
0
0
null
0
0
0
0
0
0
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
1ec3fab64cc9c3d4f0eb467cc20c705b18a7a0df
2,835
py
Python
xooa_test/test_blockchain.py
Xooa/xooa-python-sdk
b364a576b324d1dfaaa383586c38586d855ed95f
[ "Apache-2.0" ]
6
2019-07-19T19:45:45.000Z
2021-12-16T13:18:01.000Z
xooa_test/test_blockchain.py
Xooa/xooa-python-sdk
b364a576b324d1dfaaa383586c38586d855ed95f
[ "Apache-2.0" ]
null
null
null
xooa_test/test_blockchain.py
Xooa/xooa-python-sdk
b364a576b324d1dfaaa383586c38586d855ed95f
[ "Apache-2.0" ]
null
null
null
# # Python SDK for Xooa # # Copyright 2018 Xooa # # 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 t...
34.156627
289
0.723457
351
2,835
5.586895
0.356125
0.035696
0.033656
0.048955
0.418154
0.331464
0.235594
0.198878
0.119327
0.072412
0
0.025843
0.194709
2,835
82
290
34.573171
0.833114
0.218342
0
0.346154
0
0
0.143573
0.121696
0
0
0
0
0.115385
1
0.153846
false
0.153846
0.096154
0
0.269231
0.038462
0
0
0
null
0
0
0
0
0
0
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
1eca6568fe60f1917a8d73cb0e5641be744e649d
1,375
py
Python
flask_wxapp/__init__.py
codeif/Flask-WXApp
ff6be5d07cffb507df7e6aa8b83c4c8a5ab94973
[ "MIT" ]
63
2017-02-25T04:06:18.000Z
2022-02-16T00:49:23.000Z
flask_wxapp/__init__.py
codeif/Flask-WXApp
ff6be5d07cffb507df7e6aa8b83c4c8a5ab94973
[ "MIT" ]
1
2020-02-08T03:44:52.000Z
2020-02-08T16:13:48.000Z
flask_wxapp/__init__.py
codeif/Flask-WXApp
ff6be5d07cffb507df7e6aa8b83c4c8a5ab94973
[ "MIT" ]
15
2017-02-20T02:46:16.000Z
2019-09-27T04:20:23.000Z
# -*- coding: utf-8 -*- import os import binascii import base64 import json import requests from Crypto.Cipher import AES class WXApp(object): def __init__(self, app=None): if app is not None: self.init_app(app) def init_app(self, app): self.appid = app.config['WX_APPID'] ...
27.5
76
0.634909
173
1,375
4.878613
0.433526
0.059242
0.026066
0.054502
0
0
0
0
0
0
0
0.023787
0.235636
1,375
49
77
28.061224
0.779258
0.050182
0
0
0
0
0.114704
0.04542
0
0
0
0
0
1
0.181818
false
0
0.181818
0.030303
0.515152
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
1ed50b69652e3f18b9468c8a18b10b671bb3f3ee
12,599
py
Python
fedot/core/composer/gp_composer/gp_composer.py
Kwentar/FEDOT
97a561698c0aa006aa627fc56965a0bc251a4ed8
[ "BSD-3-Clause" ]
null
null
null
fedot/core/composer/gp_composer/gp_composer.py
Kwentar/FEDOT
97a561698c0aa006aa627fc56965a0bc251a4ed8
[ "BSD-3-Clause" ]
null
null
null
fedot/core/composer/gp_composer/gp_composer.py
Kwentar/FEDOT
97a561698c0aa006aa627fc56965a0bc251a4ed8
[ "BSD-3-Clause" ]
null
null
null
import gc import platform from dataclasses import dataclass from functools import partial from multiprocessing import set_start_method from typing import (Any, Callable, List, Optional, Tuple, Union) from deap import tools from fedot.core.chains.chain import Chain from fedot.core.chains.chain_validation import valida...
42.853741
118
0.696404
1,408
12,599
6.015625
0.213068
0.035419
0.027627
0.017355
0.168359
0.090673
0.060449
0.042503
0.01039
0.01039
0
0.001564
0.238908
12,599
293
119
43
0.881739
0.154457
0
0.112245
0
0
0.046996
0.011367
0
0
0
0.010239
0
1
0.081633
false
0
0.127551
0.005102
0.331633
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1ed6ccbf43d0da087bfab9c22f11ecf7271355ef
809
py
Python
egghead/python/functions.py
broox9/learning
bd2078f4b77cf456a352835864afe53ac1fa3466
[ "MIT" ]
null
null
null
egghead/python/functions.py
broox9/learning
bd2078f4b77cf456a352835864afe53ac1fa3466
[ "MIT" ]
3
2020-09-04T03:25:36.000Z
2021-05-06T22:45:17.000Z
egghead/python/functions.py
broox9/learning
bd2078f4b77cf456a352835864afe53ac1fa3466
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # implicit None return def say_hi(): print("hey there") # implicit artument return "name" def yell_name(name='Adrienne'): """ this is a doc string also this function returns the arg by default """ print("YO {0} ".format(name.upper())) # scoping def add(num1=0, num2=0...
23.114286
112
0.650185
121
809
4.31405
0.619835
0.019157
0.068966
0.08046
0.099617
0
0
0
0
0
0
0.018692
0.206428
809
34
113
23.794118
0.794393
0.485785
0
0
0
0
0.193029
0
0
0
0
0
0
1
0.307692
false
0
0
0.076923
0.461538
0.307692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
1edd6120c9646f7f4861d6ae6e0662c4e359ff2a
2,433
py
Python
functions/warm_function_vpc.py
jamesshapiro/aws-habit-tracker
bbae9866dc4ce744832e42d02a997fc9bebda517
[ "MIT" ]
null
null
null
functions/warm_function_vpc.py
jamesshapiro/aws-habit-tracker
bbae9866dc4ce744832e42d02a997fc9bebda517
[ "MIT" ]
null
null
null
functions/warm_function_vpc.py
jamesshapiro/aws-habit-tracker
bbae9866dc4ce744832e42d02a997fc9bebda517
[ "MIT" ]
null
null
null
import boto3 import os import requests import datetime import json import asyncio import time cognito_client = boto3.client('cognito-idp') website_url = os.environ['WEBSITE_URL'] test_username = os.environ['TEST_USERNAME'] test_password = os.environ['TEST_PASSWORD'] app_client_id = os.environ['APP_CLIENT_ID'] api_ur...
28.290698
183
0.63173
307
2,433
4.775244
0.32899
0.030696
0.037517
0.038881
0.182128
0.119372
0.119372
0.119372
0.119372
0.119372
0
0.011646
0.223592
2,433
85
184
28.623529
0.764426
0.047267
0
0.136986
0
0.013699
0.174157
0.062662
0
0
0
0
0
1
0.068493
false
0.082192
0.09589
0
0.232877
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1ee0ec86f088e9ea42031be11345e2681946263a
3,325
py
Python
Dangerous/Golismero/misc/template_plugin.py
JeyZeta/Dangerous-
824ea6b571eda98bb855f176361e9b35dfda578e
[ "MIT" ]
null
null
null
Dangerous/Golismero/misc/template_plugin.py
JeyZeta/Dangerous-
824ea6b571eda98bb855f176361e9b35dfda578e
[ "MIT" ]
null
null
null
Dangerous/Golismero/misc/template_plugin.py
JeyZeta/Dangerous-
824ea6b571eda98bb855f176361e9b35dfda578e
[ "MIT" ]
1
2018-07-04T18:35:16.000Z
2018-07-04T18:35:16.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __license__ = """ GoLismero 2.0 - The web knife - Copyright (C) 2011-2014 Authors: [AUTHOR OF PLUGIN] Golismero project site: https://github.com/golismero Golismero project mail: contact@golismero-project.com This program is free software; you can redistribute it and/...
31.074766
169
0.685113
421
3,325
5.344418
0.489311
0.086667
0.106667
0.062222
0.166222
0.024889
0
0
0
0
0
0.008382
0.174737
3,325
106
170
31.367925
0.811589
0.593684
0
0
0
0
0.684579
0.022586
0
0
0
0.009434
0
1
0.083333
false
0.041667
0.041667
0.041667
0.208333
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
1ee1c64038e5faad1e63374a1410183c223ae588
403
py
Python
antioch/core/migrations/0008_auto_20190728_1001.py
philchristensen/antioch
7fe27c961ae81b7655c6428038c85eefad27e980
[ "MIT" ]
15
2015-10-07T06:30:22.000Z
2022-03-07T19:44:55.000Z
antioch/core/migrations/0008_auto_20190728_1001.py
philchristensen/antioch
7fe27c961ae81b7655c6428038c85eefad27e980
[ "MIT" ]
2
2016-10-17T05:04:58.000Z
2018-09-10T02:36:15.000Z
antioch/core/migrations/0008_auto_20190728_1001.py
philchristensen/antioch
7fe27c961ae81b7655c6428038c85eefad27e980
[ "MIT" ]
2
2018-07-30T12:58:33.000Z
2018-11-26T03:17:34.000Z
# Generated by Django 2.1.10 on 2019-07-28 14:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0007_auto_20190721_1312'), ] operations = [ migrations.AlterField( model_name='verb', name='ref', ...
21.210526
74
0.600496
46
403
5.152174
0.847826
0
0
0
0
0
0
0
0
0
0
0.12069
0.280397
403
18
75
22.388889
0.696552
0.114144
0
0
1
0
0.095775
0.064789
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1ee4f0e3a4ca8db3237372f799aa180ec654dcb4
975
py
Python
log.py
austinmroczek/pauser
4e81808be98d3495ad93c3270a8a43584b62b8cd
[ "MIT" ]
1
2019-06-30T08:33:34.000Z
2019-06-30T08:33:34.000Z
log.py
austinmroczek/pauser
4e81808be98d3495ad93c3270a8a43584b62b8cd
[ "MIT" ]
null
null
null
log.py
austinmroczek/pauser
4e81808be98d3495ad93c3270a8a43584b62b8cd
[ "MIT" ]
null
null
null
class Log: def __init__(self, newFile): self.fileName = "logs/" + newFile # check that "logs" folder exists and create it if necessary import os if not os.path.isdir("logs"): os.makedirs("logs") # TODO: error checking on file...does it exist, is...
31.451613
80
0.552821
112
975
4.776786
0.625
0.04486
0
0
0
0
0
0
0
0
0
0
0.351795
975
31
81
31.451613
0.846519
0.228718
0
0
0
0
0.067024
0
0
0
0
0.032258
0
1
0.15
false
0
0.1
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
1
0
0
0
0
0
0
0
0
0
0
1
1ee56e8fd5f78f298e6140409261b2bcac17aa45
614
py
Python
scratchh.py
ylfzr/ADGM
a29907ca75f9536f6632004ace17e959a66c542d
[ "MIT" ]
null
null
null
scratchh.py
ylfzr/ADGM
a29907ca75f9536f6632004ace17e959a66c542d
[ "MIT" ]
null
null
null
scratchh.py
ylfzr/ADGM
a29907ca75f9536f6632004ace17e959a66c542d
[ "MIT" ]
null
null
null
import cPickle as pkl import gzip # dataset = 'mnist_aug.pkl' # f = open(dataset, 'rb') # mnist_aug = pkl.load(f) # f.close() # x_train = mnist_aug['x_train'] # target_train = mnist_aug['target_train'] # x_test = mnist_aug['x_test'] # target_test = mnist_aug['target_test'] # # print x_train.shape dataset = 'data/mni...
25.583333
51
0.723127
108
614
3.814815
0.240741
0.116505
0.053398
0.043689
0.097087
0.097087
0.097087
0
0
0
0
0.011132
0.12215
614
24
52
25.583333
0.753247
0.395765
0
0
0
0
0.069252
0.063712
0
0
0
0
0
0
null
null
0
0.2
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9490d14de3f388845b63b51f1763940a5f244430
873
py
Python
Programming-Basics-with-Python-April-2019/09_nested_conditional_statements_exercise/04_new_house.py
marinakolova/Python-Courses
eb95c782307be561b5026c5adafaa001b04caf4f
[ "MIT" ]
null
null
null
Programming-Basics-with-Python-April-2019/09_nested_conditional_statements_exercise/04_new_house.py
marinakolova/Python-Courses
eb95c782307be561b5026c5adafaa001b04caf4f
[ "MIT" ]
null
null
null
Programming-Basics-with-Python-April-2019/09_nested_conditional_statements_exercise/04_new_house.py
marinakolova/Python-Courses
eb95c782307be561b5026c5adafaa001b04caf4f
[ "MIT" ]
null
null
null
type_of_flowers = input() count = int(input()) budget = int(input()) prices = { "Roses": 5.00, "Dahlias": 3.80, "Tulips": 2.80, "Narcissus": 3.00, "Gladiolus": 2.50 } price = count * prices[type_of_flowers] if type_of_flowers == "Roses" and count > 80: price -= 0.10 * price elif type_of_flowe...
26.454545
105
0.647194
136
873
4
0.352941
0.088235
0.191176
0.110294
0.283088
0.165441
0.165441
0.165441
0
0
0
0.063676
0.208477
873
32
106
27.28125
0.723589
0
0
0.074074
0
0.037037
0.250859
0
0
0
0
0
0
1
0
false
0
0
0
0
0.074074
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
949119aaa209bc1a13ebb576593991a93d589040
609
py
Python
speedtest.py
BOEM25/News-Bot
6014019291d83b9584ba70234dfccb67c323e4b1
[ "MIT" ]
null
null
null
speedtest.py
BOEM25/News-Bot
6014019291d83b9584ba70234dfccb67c323e4b1
[ "MIT" ]
null
null
null
speedtest.py
BOEM25/News-Bot
6014019291d83b9584ba70234dfccb67c323e4b1
[ "MIT" ]
null
null
null
""" Watch out with the size parameter, it will kill your RAM """ import random import time size = 1000 def generate_list(size): test = [] for i in range(size): test.append(random.randint(0, size)) return test def find(test, id): for i in range(len(test)): if test[i] == id: ...
19.03125
56
0.642036
95
609
4.073684
0.410526
0.082687
0.082687
0.056848
0.180879
0.180879
0.180879
0.180879
0.180879
0
0
0.012685
0.223317
609
32
57
19.03125
0.805497
0.091954
0
0.190476
1
0
0.104396
0
0
0
0
0
0
1
0.095238
false
0
0.095238
0
0.333333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
949ce9a294efbff121a6336a080bd62595b26a72
700
py
Python
complexModules/migrations/0004_rounddetails.py
BVPIEEE/hackathon_portal
0a67704ae42d5680c6f4d05ca9c63a1f06f556c0
[ "Apache-2.0" ]
3
2020-04-07T12:25:59.000Z
2020-04-16T18:21:27.000Z
complexModules/migrations/0004_rounddetails.py
BVPIEEE/hackathon_portal
0a67704ae42d5680c6f4d05ca9c63a1f06f556c0
[ "Apache-2.0" ]
3
2021-03-30T12:57:08.000Z
2021-09-22T18:48:35.000Z
complexModules/migrations/0004_rounddetails.py
BVPIEEE/hackathon_portal
0a67704ae42d5680c6f4d05ca9c63a1f06f556c0
[ "Apache-2.0" ]
1
2020-04-16T18:21:38.000Z
2020-04-16T18:21:38.000Z
# Generated by Django 3.0.4 on 2020-04-05 13:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('complexModules', '0003_auto_20200404_1209'), ] operations = [ migrations.CreateModel( name='roundDetails', ...
29.166667
115
0.544286
63
700
5.904762
0.714286
0.120968
0.107527
0
0
0
0
0
0
0
0
0.065539
0.324286
700
23
116
30.434783
0.72093
0.064286
0
0
1
0
0.146032
0.036508
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
949d16104e2a4e6cd24e8769a61769eddcc6fb17
1,885
py
Python
app/core/entity/resources.py
cedar-technologies/skpcrm
e4c3b0985b2c918b90882ab684529fd3a4a98629
[ "Apache-2.0" ]
1
2019-01-04T20:19:00.000Z
2019-01-04T20:19:00.000Z
app/core/entity/resources.py
cedar-technologies/skpcrm
e4c3b0985b2c918b90882ab684529fd3a4a98629
[ "Apache-2.0" ]
50
2018-12-30T06:18:31.000Z
2019-01-29T06:15:00.000Z
app/core/entity/resources.py
cedar-technologies/skpcrm
e4c3b0985b2c918b90882ab684529fd3a4a98629
[ "Apache-2.0" ]
2
2018-12-27T03:19:21.000Z
2018-12-29T21:41:55.000Z
# coding: utf-8 # -*- coding: utf-8 -*- # vim: set fileencoding=utf-8 : """ Entity Related HTTP resources ======================== File contains HTTP resources for an Entity module """ from flask import request, abort from sqlalchemy.exc import IntegrityError from app.core.entity.models import EntityType ...
27.318841
81
0.677984
247
1,885
5.020243
0.279352
0.201613
0.084677
0.058065
0.357258
0.25
0.25
0.25
0.177419
0.177419
0
0.017834
0.196817
1,885
68
82
27.720588
0.801189
0.091247
0
0.217391
0
0
0.162626
0.035482
0
0
0
0
0
1
0.086957
false
0
0.108696
0.021739
0.282609
0.086957
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
94a4e070c8ea499913c58add9c25b53d53f927d3
620
py
Python
manage.py
stefpiatek/flask-mdt-app
6d98b0f8b504a949861332ea5fc108c78bbbf701
[ "MIT" ]
null
null
null
manage.py
stefpiatek/flask-mdt-app
6d98b0f8b504a949861332ea5fc108c78bbbf701
[ "MIT" ]
null
null
null
manage.py
stefpiatek/flask-mdt-app
6d98b0f8b504a949861332ea5fc108c78bbbf701
[ "MIT" ]
null
null
null
#!flask\Scripts\python.exe import os from flask_debugtoolbar import DebugToolbarExtension from flask_script import Manager, Shell from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate, MigrateCommand from mdt_app import create_app, db app = create_app(os.getenv('FLASK_CONFIG') or 'default') migra...
24.8
68
0.791935
84
620
5.571429
0.416667
0.076923
0.068376
0
0
0
0
0
0
0
0
0
0.112903
620
24
69
25.833333
0.850909
0.040323
0
0
0
0
0.057239
0
0
0
0
0
0
1
0.0625
false
0
0.375
0.0625
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
94a7091b25f3db87ffc422a57ac4b753de55e228
887
py
Python
apps/images/migrations/0003_auto_20210702_1604.py
asenattime/devops_backend
687cb747339d414b974b8c140736314a84fbd77d
[ "MIT" ]
53
2021-07-14T03:11:39.000Z
2021-09-23T10:39:14.000Z
apps/images/migrations/0003_auto_20210702_1604.py
asenattime/devops_backend
687cb747339d414b974b8c140736314a84fbd77d
[ "MIT" ]
null
null
null
apps/images/migrations/0003_auto_20210702_1604.py
asenattime/devops_backend
687cb747339d414b974b8c140736314a84fbd77d
[ "MIT" ]
10
2021-07-14T06:29:14.000Z
2021-09-23T00:25:35.000Z
# Generated by Django 2.2 on 2021-07-02 16:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('images', '0002_image_status'), ] operations = [ migrations.AddField( model_name='image', name='branch', fi...
30.586207
129
0.591883
100
887
5.11
0.52
0.105675
0.135029
0.158513
0.21135
0.21135
0
0
0
0
0
0.033846
0.267193
887
28
130
31.678571
0.752308
0.048478
0
0.409091
1
0
0.129454
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
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
94abc70589d57d48d8f8e4afbbf4030468cf4abe
6,514
py
Python
python/webapp-userreg-flask-mysql/test/unit/test_authentication.py
parijatmishra/learn
e69e3e866d7a35940f405e94e00cb90059413dab
[ "Apache-2.0" ]
null
null
null
python/webapp-userreg-flask-mysql/test/unit/test_authentication.py
parijatmishra/learn
e69e3e866d7a35940f405e94e00cb90059413dab
[ "Apache-2.0" ]
8
2020-09-04T20:14:10.000Z
2022-03-08T22:43:37.000Z
python/webapp-userreg-flask-mysql/test/unit/test_authentication.py
parijatmishra/learn
e69e3e866d7a35940f405e94e00cb90059413dab
[ "Apache-2.0" ]
null
null
null
import re from flask import url_for from app import create_app, db from app.models import User from nose.tools import * from app import mail import config class TestAuthentication: def setUp(self): config.SERVER_NAME = 'localhost' config.WTF_CSRF_ENABLED = False config.TESTING = True ...
41.490446
100
0.64584
866
6,514
4.711316
0.180139
0.080882
0.058824
0.066667
0.634804
0.592647
0.530147
0.49902
0.472549
0.308333
0
0.002028
0.243015
6,514
156
101
41.75641
0.82539
0.095947
0
0.387387
0
0
0.169364
0.004089
0
0
0
0
0.297297
1
0.054054
false
0.108108
0.063063
0.009009
0.135135
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
94aedec3611f551984e4cfc664289817ac93c838
2,791
py
Python
src/trusted/service_runtime/osx/run_mig.py
cohortfsllc/cohort-cocl2-sandbox
0ac6669d1a459d65a52007b80d5cffa4ef330287
[ "BSD-3-Clause" ]
6
2015-02-06T23:41:01.000Z
2015-10-21T03:08:51.000Z
src/trusted/service_runtime/osx/run_mig.py
cohortfsllc/cohort-cocl2-sandbox
0ac6669d1a459d65a52007b80d5cffa4ef330287
[ "BSD-3-Clause" ]
null
null
null
src/trusted/service_runtime/osx/run_mig.py
cohortfsllc/cohort-cocl2-sandbox
0ac6669d1a459d65a52007b80d5cffa4ef330287
[ "BSD-3-Clause" ]
1
2019-10-02T08:41:50.000Z
2019-10-02T08:41:50.000Z
#!/usr/bin/python # Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Generate a mig server and client pair from migs.def # Emitting: # nacl_exc_server.c # nacl_exc.h import os import re im...
29.378947
79
0.669652
423
2,791
4.271868
0.404255
0.05036
0.054787
0.049806
0.05202
0.02767
0
0
0
0
0
0.01151
0.221784
2,791
94
80
29.691489
0.820442
0.414905
0
0.078431
1
0
0.123982
0
0
0
0
0
0.039216
1
0.058824
false
0.019608
0.098039
0
0.156863
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
94b8d58c05b29d45d314d0092495ad4fbe489092
1,142
py
Python
sample_movielens.py
tranlyvu/recommender
4985c355d54ee22ba48f4891077fd7e12bd21b47
[ "Apache-2.0" ]
8
2019-03-14T07:53:51.000Z
2021-06-22T06:19:32.000Z
sample_movielens.py
tranlyvu/recommender-engine
4985c355d54ee22ba48f4891077fd7e12bd21b47
[ "Apache-2.0" ]
3
2018-01-16T06:48:55.000Z
2020-05-04T01:43:14.000Z
sample_movielens.py
tranlyvu/recommender-engine
4985c355d54ee22ba48f4891077fd7e12bd21b47
[ "Apache-2.0" ]
1
2019-03-14T07:53:59.000Z
2019-03-14T07:53:59.000Z
from recommender_engine import make_recommendation """ This sample used movielens datasets @ http://files.grouplens.org/datasets/movielens/ml-10m.zip """ def make_preference_space_MovieLens(path): """ create preference space for Movielens data set """ movies = {} for line in open(path + '/movies.dat'): (movi...
28.55
95
0.696147
130
1,142
5.853846
0.523077
0.21682
0.049934
0.073587
0.044678
0
0
0
0
0
0
0.007503
0.183012
1,142
40
96
28.55
0.808146
0.140981
0
0
0
0
0.072727
0
0
0
0
0
0
1
0.090909
false
0
0.045455
0
0.181818
0.045455
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
94bb21641b3f782c6ae0d6f79f650fb4cc5657be
367
py
Python
database.py
OscarPalominoC/polls-station
17d3abcc612f4d13b4ad4ec67824c95c99e87ee5
[ "MIT" ]
null
null
null
database.py
OscarPalominoC/polls-station
17d3abcc612f4d13b4ad4ec67824c95c99e87ee5
[ "MIT" ]
null
null
null
database.py
OscarPalominoC/polls-station
17d3abcc612f4d13b4ad4ec67824c95c99e87ee5
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base SQL_DATABASE_URL = "mysql+pymysql://test:Test123456!@127.0.0.1:3306/pollings" engine = create_engine(SQL_DATABASE_URL) SessionLocal = sessionmaker(autocommit=False, autoflush=F...
33.363636
78
0.80654
47
367
6.12766
0.574468
0.145833
0.097222
0
0
0
0
0
0
0
0
0.04878
0.106267
367
11
79
33.363636
0.829268
0
0
0
0
0
0.156425
0.156425
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
94bd4093112189f9b0f21027aabee58eec3b48f7
557
py
Python
programme/migrations/0072_programme_language_skills.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
13
2015-11-29T12:19:12.000Z
2021-02-21T15:42:11.000Z
programme/migrations/0072_programme_language_skills.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
23
2015-04-29T19:43:34.000Z
2021-02-10T05:50:17.000Z
programme/migrations/0072_programme_language_skills.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
11
2015-09-20T18:59:00.000Z
2020-02-07T08:47:34.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2018-04-29 16:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('programme', '0071_auto_20180417_2245'), ] operations = [ migrations.AddField( model_name='programme', ...
29.315789
185
0.648115
64
557
5.53125
0.765625
0.118644
0.101695
0
0
0
0
0
0
0
0
0.077283
0.233393
557
18
186
30.944444
0.751756
0.122083
0
0
1
0
0.3107
0.047325
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
94bdde697f90006e0313cf1340d073c639a4ef91
1,459
py
Python
maxProfit.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
maxProfit.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
maxProfit.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
class Solution(object): def maxProfit(self, prices): profit = 0 for i in range(len(prices)): for j in range(i + 1, len(prices)): if prices[j] - prices[i] > profit: profit = prices[j] - prices[i] return profit def maxProfit2(self, prices): ...
31.717391
88
0.507197
184
1,459
4.021739
0.282609
0.094595
0.081081
0.028378
0.072973
0.056757
0.056757
0
0
0
0
0.029834
0.379712
1,459
46
89
31.717391
0.787845
0.106923
0
0.057143
0
0
0.002308
0
0
0
0
0
0
0
null
null
0
0
null
null
0.028571
0
0
0
null
0
0
0
0
0
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
94bfd88e16041acdb0f2bd9a6b08052ef59dd637
617
py
Python
Proyecto2/Proyecto2/Web/migrations/0009_auto_20181023_1900.py
wolfghost9898/Archivos
c3c0089df211bf2673bd9f119d149d0d9ed3a9e8
[ "Apache-2.0" ]
null
null
null
Proyecto2/Proyecto2/Web/migrations/0009_auto_20181023_1900.py
wolfghost9898/Archivos
c3c0089df211bf2673bd9f119d149d0d9ed3a9e8
[ "Apache-2.0" ]
null
null
null
Proyecto2/Proyecto2/Web/migrations/0009_auto_20181023_1900.py
wolfghost9898/Archivos
c3c0089df211bf2673bd9f119d149d0d9ed3a9e8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import datetime class Migration(migrations.Migration): dependencies = [ ('Web', '0008_auto_20181021_1956'), ] operations = [ migrations.AlterField( model_name='userprofil...
23.730769
76
0.598055
59
617
6.050847
0.728814
0.112045
0.140056
0.162465
0
0
0
0
0
0
0
0.056433
0.28201
617
25
77
24.68
0.749436
0.034036
0
0.210526
0
0
0.102694
0.038721
0
0
0
0
0
1
0
false
0
0.157895
0
0.315789
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
94cc91070fec72587cdb121f2b9eb3421c932ac4
1,054
py
Python
Beginner/Day5/functiondemo2.py
vishipayyallore/LearningPython_2019
f72d5af61ad96721442b7ebfc33518c2a879eb64
[ "MIT" ]
null
null
null
Beginner/Day5/functiondemo2.py
vishipayyallore/LearningPython_2019
f72d5af61ad96721442b7ebfc33518c2a879eb64
[ "MIT" ]
null
null
null
Beginner/Day5/functiondemo2.py
vishipayyallore/LearningPython_2019
f72d5af61ad96721442b7ebfc33518c2a879eb64
[ "MIT" ]
null
null
null
import datetime from utilitiesmodule import * def displayDetails(title, value, today = datetime.datetime.now()): banner(length=100, message=f'{title} | {today}') print(f"Length: {len(value)}") print(f"Value: {value}") def displayDetails_v2(title, value, today = None): if(today is None): to...
23.422222
66
0.6537
127
1,054
5.393701
0.346457
0.043796
0.061314
0.183942
0.693431
0.693431
0.693431
0.426277
0.280292
0.280292
0
0.068235
0.193548
1,054
44
67
23.954545
0.737647
0
0
0.444444
0
0
0.164137
0
0
0
0
0
0
1
0.111111
false
0
0.074074
0
0.185185
0.148148
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
94cf47fdcd18ed6c9af2f9d22ee2b74736894d1a
719
py
Python
devops-console/apps/orgs/mixins.py
lilinghell/devops
1b2890d3f2d9f6e15e5b32d0910bc4768f065adc
[ "Apache-2.0" ]
4
2019-12-06T06:19:33.000Z
2021-12-23T13:05:06.000Z
devops-console/apps/orgs/mixins.py
lilinghell/devops
1b2890d3f2d9f6e15e5b32d0910bc4768f065adc
[ "Apache-2.0" ]
8
2020-03-15T03:40:38.000Z
2022-03-12T00:50:27.000Z
devops-console/apps/orgs/mixins.py
lilinghell/devops
1b2890d3f2d9f6e15e5b32d0910bc4768f065adc
[ "Apache-2.0" ]
null
null
null
from .models import Organization class OrgMembershipSerializerMixin: def run_validation(self, initial_data=None): initial_data['organization'] = str(self.context['org'].id) return super().run_validation(initial_data) class OrgMembershipModelViewSetMixin: """ 处理前获取机构信息,返回上下文增加机构信息 ""...
27.653846
68
0.667594
78
719
6
0.461538
0.070513
0.047009
0.068376
0
0
0
0
0
0
0
0
0.201669
719
25
69
28.76
0.815331
0.029207
0
0
0
0
0.058737
0
0
0
0
0
0
1
0.2
false
0
0.066667
0
0.733333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
94e4bb39a19611a2e5dff910b5ac25fed610a5a7
379
py
Python
recipes/views.py
USPCodeLabSanca/on.boarding-2021.2---Filtro-de-Receitas
273c0f852c66ecec840dc8db4bd3894ef727beb0
[ "MIT" ]
1
2021-09-15T01:36:55.000Z
2021-09-15T01:36:55.000Z
recipes/views.py
USPCodeLabSanca/on.boarding-2021.2---Filtro-de-Receitas
273c0f852c66ecec840dc8db4bd3894ef727beb0
[ "MIT" ]
null
null
null
recipes/views.py
USPCodeLabSanca/on.boarding-2021.2---Filtro-de-Receitas
273c0f852c66ecec840dc8db4bd3894ef727beb0
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import Http404 from .models import Recipe from bson.objectid import ObjectId def recipe_detail_view(request, id): try: recipe = Recipe.objects.get(_id=ObjectId(id)) except: raise Http404 context = { 'recipe': recipe } ...
21.055556
59
0.683377
46
379
5.565217
0.565217
0.078125
0
0
0
0
0
0
0
0
0
0.020619
0.23219
379
17
60
22.294118
0.859107
0
0
0
0
0
0.068783
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
94e6c6e0b799e46356faa37a76c3ce4b645d67ee
677
py
Python
challenge/settings/prod_example.py
kiloreven/challenge
66a6ceb110ee65638f555a723ef909d5c227f862
[ "MIT" ]
null
null
null
challenge/settings/prod_example.py
kiloreven/challenge
66a6ceb110ee65638f555a723ef909d5c227f862
[ "MIT" ]
19
2016-05-16T19:42:17.000Z
2020-02-15T19:07:10.000Z
challenge/settings/prod_example.py
kiloreven/challenge
66a6ceb110ee65638f555a723ef909d5c227f862
[ "MIT" ]
1
2020-02-15T19:12:21.000Z
2020-02-15T19:12:21.000Z
from challenge.settings.base import * DEBUG = False # Need to set allowed hostnames when running with DEBUG=False. # See https://docs.djangoproject.com/en/1.7/ref/settings/#allowed-hosts ALLOWED_HOSTS = ['challenge.example.com'] # These persons will be emailed with exception information when running with DEBUG=False...
30.772727
109
0.766617
90
677
5.722222
0.666667
0.058252
0.058252
0.07767
0.264078
0.264078
0.264078
0.264078
0.264078
0.264078
0
0.031667
0.113737
677
21
110
32.238095
0.826667
0.589365
0
0
0
0
0.481203
0.432331
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
94ecb8d142fab004d2a937e10751684b71a597b6
4,175
py
Python
tests/data.py
dasdachs/series-cli
1593af25af316d4fa030e80366c581fc508e8bc4
[ "MIT" ]
1
2018-12-17T15:54:38.000Z
2018-12-17T15:54:38.000Z
tests/data.py
dasdachs/series-cli
1593af25af316d4fa030e80366c581fc508e8bc4
[ "MIT" ]
1
2021-06-02T00:23:19.000Z
2021-06-02T00:23:19.000Z
tests/data.py
dasdachs/series-cli
1593af25af316d4fa030e80366c581fc508e8bc4
[ "MIT" ]
null
null
null
"""Fixed and parsed data for testing""" SERIES = { "_links": { "nextepisode": { "href": "http://api.tvmaze.com/episodes/664353"}, "previousepisode": { "href": "http://api.tvmaze.com/episodes/631872"}, "self": { "href": "http://api.tvmaze.com/shows/60"} }, "externals": { "im...
40.931373
226
0.61509
541
4,175
4.722736
0.532348
0.02818
0.039922
0.033268
0.153033
0.122896
0.091585
0.069667
0
0
0
0.055257
0.241437
4,175
101
227
41.336634
0.7515
0.054132
0
0.151163
0
0.023256
0.71144
0.012768
0
0
0
0
0
1
0.011628
false
0
0
0
0.023256
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
94f5fe094e32ec0de129e44af84582d3e1a9f8ef
256
py
Python
py-qr-gen.py
dark3hackers/python-qrcode-genaretor
e4a1031896b540c1da97663fff155b93784849d9
[ "MIT" ]
null
null
null
py-qr-gen.py
dark3hackers/python-qrcode-genaretor
e4a1031896b540c1da97663fff155b93784849d9
[ "MIT" ]
null
null
null
py-qr-gen.py
dark3hackers/python-qrcode-genaretor
e4a1031896b540c1da97663fff155b93784849d9
[ "MIT" ]
null
null
null
import pyqrcode import png from pyqrcode import QRCode s = input("Url: ") url = pyqrcode.create(s) url.svg("code.svg", scale = 8) url.png("code.png" , scale = 6) print("images is saved as 'code.png' and 'code.svg'") print("Thanks For uaing this tool :)")
23.272727
53
0.6875
43
256
4.093023
0.581395
0.159091
0
0
0
0
0
0
0
0
0
0.009174
0.148438
256
10
54
25.6
0.798165
0
0
0
0
0
0.367188
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
94f6f8256c5e06a8676a6561eccbe1106e16b7f0
1,916
py
Python
example/nmt/code/helper.py
star-whale/starwhale
11cfe86d3a0c2972b508812d101f1b32e4166706
[ "Apache-2.0" ]
13
2022-03-09T15:27:29.000Z
2022-03-29T06:12:47.000Z
example/nmt/code/helper.py
star-whale/starwhale
11cfe86d3a0c2972b508812d101f1b32e4166706
[ "Apache-2.0" ]
7
2022-03-14T08:59:39.000Z
2022-03-30T00:50:40.000Z
example/nmt/code/helper.py
star-whale/starwhale
11cfe86d3a0c2972b508812d101f1b32e4166706
[ "Apache-2.0" ]
9
2022-03-10T08:12:44.000Z
2022-03-26T15:00:13.000Z
import time import math import unicodedata import torch import re try: from .config import MAX_LENGTH, EOS_token except ImportError: from config import MAX_LENGTH, EOS_token def asMinutes(s): m = math.floor(s / 60) s -= m * 60 return '%dm %ds' % (m, s) def timeSince(since, percent): now = ti...
23.654321
77
0.636743
268
1,916
4.488806
0.402985
0.029925
0.01995
0.031588
0.054863
0.054863
0.054863
0
0
0
0
0.017276
0.214509
1,916
81
78
23.654321
0.78206
0.073069
0
0
0
0
0.071066
0
0
0
0
0
0
1
0.181818
false
0
0.145455
0.090909
0.509091
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
94f904fe53b11fd8fd0d3370f6f7dd5e19fc7551
415
py
Python
generate/build_tools/forge/defaults.py
flamencist/browser-extensions
cc2424ce69c718f9f6b1fb0e6cd19759ba384591
[ "BSD-3-Clause" ]
102
2015-01-09T22:12:00.000Z
2021-04-21T01:18:51.000Z
generate/build_tools/forge/defaults.py
flamencist/browser-extensions
cc2424ce69c718f9f6b1fb0e6cd19759ba384591
[ "BSD-3-Clause" ]
17
2015-01-24T22:30:47.000Z
2020-11-19T01:13:32.000Z
generate/build_tools/forge/defaults.py
flamencist/browser-extensions
cc2424ce69c718f9f6b1fb0e6cd19759ba384591
[ "BSD-3-Clause" ]
33
2015-01-15T16:11:15.000Z
2021-06-11T12:15:29.000Z
'Project-wide default values' import sys from os import path FORGE_ROOT = path.dirname(path.dirname(__file__)) CONFIG_FILE = path.join(FORGE_ROOT, 'forge_build.json') PASSWORD = "your password" SRC_DIR = 'src' APP_CONFIG_FILE = path.join(SRC_DIR, 'config.json') IDENTITY_FILE = path.join(SRC_DIR, 'identity.json') LOCA...
27.666667
55
0.780723
62
415
4.903226
0.419355
0.098684
0.118421
0.118421
0.118421
0
0
0
0
0
0
0
0.101205
415
14
56
29.642857
0.815013
0.06506
0
0
0
0
0.262651
0
0
0
0
0
0
1
0
false
0.083333
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
a2057fcd6ff8d4b89e530548ae5ca9547fdb9a61
6,362
py
Python
pkgparse/registry/base.py
marcus-crane/pkgparse
f5d88ae04e6601446f5a836b4690c48c71db8879
[ "MIT" ]
9
2017-03-09T05:26:25.000Z
2017-06-23T17:09:59.000Z
pkgparse/registry/base.py
marcus-crane/pkgparse
f5d88ae04e6601446f5a836b4690c48c71db8879
[ "MIT" ]
9
2016-07-14T01:52:17.000Z
2018-04-11T22:47:13.000Z
pkgparse/registry/base.py
marcus-crane/pkgparse
f5d88ae04e6601446f5a836b4690c48c71db8879
[ "MIT" ]
4
2016-09-14T06:31:34.000Z
2017-06-23T17:10:01.000Z
import sys import requests from pkgparse import settings class BaseRegistry: def __init__(self): """ This function is called whenever a new BaseRegistry class is created and these variables also pass onto inheriting classes. Inheriting classes need to create a definition for th...
34.389189
78
0.612543
799
6,362
4.81602
0.360451
0.035083
0.035343
0.005198
0.017152
0
0
0
0
0
0
0.003455
0.31751
6,362
184
79
34.576087
0.882773
0.448287
0
0.180556
0
0
0.141985
0
0
0
0
0.01087
0
1
0.083333
false
0
0.041667
0
0.222222
0.013889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
a20b28dc6a8b767dcd31ebbe9adf583508115bb2
3,362
py
Python
kuri_object_tracking/scripts/Obstacle.py
kucars/kuri_mbzirc_challenge_3
9942aae773eb4d32971b43223e4fea1554c1c8c8
[ "BSD-3-Clause" ]
4
2019-03-02T12:55:51.000Z
2019-07-23T08:45:17.000Z
kuri_object_tracking/scripts/Obstacle.py
kucars/kuri_mbzirc_challenge_3
9942aae773eb4d32971b43223e4fea1554c1c8c8
[ "BSD-3-Clause" ]
2
2019-07-23T08:40:18.000Z
2019-07-23T13:22:18.000Z
kuri_object_tracking/scripts/Obstacle.py
kucars/kuri_mbzirc_challenge_3
9942aae773eb4d32971b43223e4fea1554c1c8c8
[ "BSD-3-Clause" ]
2
2018-06-08T01:40:13.000Z
2019-07-23T11:24:22.000Z
#Copyright (c) 2016, Buti Al Delail #All rights reserved. # #Redistribution and use in source and binary forms, with or without #modification, are permitted provided that the following conditions are met: # #* Redistributions of source code must retain the above copyright notice, this # list of conditions and the foll...
34.306122
79
0.661214
500
3,362
4.422
0.376
0.043419
0.047038
0.025328
0.31479
0.29308
0.29308
0.29308
0.29308
0.29308
0
0.009766
0.238548
3,362
97
80
34.659794
0.853906
0.437835
0
0.5625
0
0
0
0
0
0
0
0.010309
0
1
0.0625
false
0
0.078125
0
0.203125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
a216ec7391ec81921cd5567a3fea31529d59155a
2,754
py
Python
tests/requester_test.py
whois-api-llc/whois-history-py
4f65596be52d844f7d49937390db6c53052f556f
[ "MIT" ]
null
null
null
tests/requester_test.py
whois-api-llc/whois-history-py
4f65596be52d844f7d49937390db6c53052f556f
[ "MIT" ]
null
null
null
tests/requester_test.py
whois-api-llc/whois-history-py
4f65596be52d844f7d49937390db6c53052f556f
[ "MIT" ]
null
null
null
from mock import patch, Mock from whoishistory import Requester import unittest import requests import io _user_agent = "test-user-agent" def mocked_requests(*args, **kwargs): class MockResponse(requests.Response): def __init__(self, body, status_code): super().__init__() self.st...
35.766234
113
0.588962
292
2,754
5.421233
0.226027
0.079596
0.075805
0.085281
0.688566
0.65319
0.621605
0.621605
0.621605
0.621605
0
0.021635
0.244735
2,754
76
114
36.236842
0.739423
0
0
0.403226
0
0.064516
0.320988
0.056645
0
0
0
0
0.064516
1
0.129032
false
0.032258
0.080645
0
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a21ea4cba7dad1d3c9044bd4c78ff1e3f3b93a7d
239
py
Python
Contest/dp/a/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/dp/a/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
Contest/dp/a/main.py
mpses/AtCoder
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 n, *h = map(int, open(0).read().split()) dp = [0] * n dp[0] = 0 a = abs for i in range(1, n): dp[i] = min(dp[i], dp[i-1] + a(h[i] - h[i-1])) dp[i+1] = min(dp[i+1], dp[i-1] + a(h[i] - h[i-2])) print(dp[n-1])
21.727273
54
0.468619
60
239
1.866667
0.383333
0.160714
0.142857
0.089286
0.223214
0.160714
0.160714
0.160714
0
0
0
0.068421
0.205021
239
10
55
23.9
0.521053
0.087866
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
1
null
0
0
0
0
0
0
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
a2223bc6acedcd275df5efa44d354296a92c83fb
7,630
py
Python
recipes/Python/425345_Generic_commandline/recipe-425345.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/425345_Generic_commandline/recipe-425345.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/425345_Generic_commandline/recipe-425345.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
# -- coding: iso8859-1 """Generic option parser class. This class can be used to write code that will parse command line options for an application by invoking one of the standard Python library command argument parser modules optparse or getopt. The class first tries to use optparse. It it is not there (< Python 2.3)...
33.318777
97
0.519528
853
7,630
4.565064
0.232122
0.034926
0.014124
0.016692
0.181048
0.132512
0.091166
0.050591
0.042116
0.042116
0
0.004693
0.357667
7,630
228
98
33.464912
0.789839
0.061992
0
0.248
0
0
0.093233
0
0
0
0
0
0
0
null
null
0
0.048
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a2247513acf2154c0228b1c01bcedaba8beea8c1
7,337
py
Python
openapi-python-client/openapi_client/models/process_instance_modification_dto.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
openapi-python-client/openapi_client/models/process_instance_modification_dto.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
openapi-python-client/openapi_client/models/process_instance_modification_dto.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Camunda BPM REST API OpenApi Spec for Camunda BPM REST API. # noqa: E501 The version of the OpenAPI document: 7.13.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from openapi_client.configuration import Configuration clas...
35.790244
243
0.658989
813
7,337
5.785978
0.186962
0.039116
0.072704
0.102041
0.550595
0.497024
0.493197
0.317815
0.302509
0.236395
0
0.015894
0.262505
7,337
204
244
35.965686
0.853447
0.431784
0
0.090909
1
0
0.071489
0.025248
0
0
0
0
0
1
0.159091
false
0
0.045455
0
0.363636
0.022727
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
a2251ace37565d2e1e9beffd3f05bb03df204819
5,520
py
Python
wolfbot/color_sensor_ISL29125.py
sunil3590/TIM
5c8de80d631a4dea0f604091467dba7a7201de48
[ "MIT" ]
1
2019-01-12T14:35:54.000Z
2019-01-12T14:35:54.000Z
wolfbot/color_sensor_ISL29125.py
sunil3590/TIM
5c8de80d631a4dea0f604091467dba7a7201de48
[ "MIT" ]
null
null
null
wolfbot/color_sensor_ISL29125.py
sunil3590/TIM
5c8de80d631a4dea0f604091467dba7a7201de48
[ "MIT" ]
null
null
null
import os import csv import sys sys.path.append('/wolfbot/agent/i2c/') from Adafruit_I2C import Adafruit_I2C from ISL29125_const import * from operator import sub from operator import abs #from operator import int #based on SparkFunISL29125.cpp class color_senser(Adafruit_I2C): # Initialize - returns true if succ...
27.878788
112
0.627717
750
5,520
4.464
0.269333
0.043907
0.02957
0.035544
0.239546
0.196237
0.073775
0.057646
0.057646
0.045699
0
0.035643
0.278261
5,520
197
113
28.020305
0.804719
0.240761
0
0.111111
0
0
0.058442
0
0
0
0.003608
0
0
0
null
null
0
0.059829
null
null
0.025641
0
0
0
null
0
0
0
0
0
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
bf4ac2704800d35f21eb780ae851cdf66e2c6d7e
2,065
py
Python
cmd/dump.py
vancebs/EasyCoding3
e78db51096ba07ef1b274becca4817a00ca0ef31
[ "Apache-2.0" ]
null
null
null
cmd/dump.py
vancebs/EasyCoding3
e78db51096ba07ef1b274becca4817a00ca0ef31
[ "Apache-2.0" ]
null
null
null
cmd/dump.py
vancebs/EasyCoding3
e78db51096ba07ef1b274becca4817a00ca0ef31
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # coding=utf-8 from cmd.base.Cmd import Cmd from script.util.Printer import Printer class dump(Cmd): _INIT_WORK_DIR: bool = False _RESTORE_WORK_DIR: bool = False _HELP_MESSAGE = ( 'dump configures', ) def on_run(self, *params) -> bool: Printer.yellow_line('====...
45.888889
77
0.6523
251
2,065
5.227092
0.318725
0.192073
0.256098
0.050305
0.094512
0.094512
0.094512
0.094512
0
0
0
0.000614
0.211622
2,065
44
78
46.931818
0.805283
0.014044
0
0
0
0
0.172566
0
0
0
0
0
0
1
0.027778
false
0
0.055556
0
0.222222
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bf4b9128e606be7e6c43ca56d5687f7b3e357451
2,742
py
Python
events/models.py
fehernandez12/the-star-rover
171975b125f531bf808131486e73aaaa45af1d66
[ "MIT" ]
1
2021-08-12T03:32:19.000Z
2021-08-12T03:32:19.000Z
events/models.py
fehernandez12/the-star-rover
171975b125f531bf808131486e73aaaa45af1d66
[ "MIT" ]
1
2021-08-15T15:06:10.000Z
2021-08-15T15:06:10.000Z
events/models.py
fehernandez12/the-star-rover
171975b125f531bf808131486e73aaaa45af1d66
[ "MIT" ]
null
null
null
import uuid from datetime import date from django.db import models from django_countries.fields import CountryField from employees.models import DirectiveEmployee, RegularEmployee # Dependency Injection SOLO_GROUP = ( ('soloist', 'Soloist'), ('group', 'Group'), ) # Create your models here. class Event(models....
33.851852
100
0.726477
325
2,742
5.990769
0.273846
0.039548
0.064715
0.086287
0.431947
0.418079
0.307139
0.24756
0.24756
0.24756
0
0.00873
0.164478
2,742
80
101
34.275
0.841117
0.036834
0
0.241935
0
0
0.049162
0
0
0
0
0
0
1
0
false
0.016129
0.080645
0
0.790323
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
bf4cfcbe233fe46c686734ce71720786ab31d2e4
679
py
Python
studygroupsreducer.py
ColinClark/IntroToHadoopAndMapReduce
200e0db0d40da8dea3d33ba8e978b9949f96c679
[ "Apache-2.0" ]
null
null
null
studygroupsreducer.py
ColinClark/IntroToHadoopAndMapReduce
200e0db0d40da8dea3d33ba8e978b9949f96c679
[ "Apache-2.0" ]
null
null
null
studygroupsreducer.py
ColinClark/IntroToHadoopAndMapReduce
200e0db0d40da8dea3d33ba8e978b9949f96c679
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys import csv def write_record(the_id, user_ids, writer): writer.writerow([the_id, user_ids]) reader = csv.reader(sys.stdin, delimiter='\t') writer = csv.writer(sys.stdout, delimiter='\t', quotechar='"',quoting=csv.QUOTE_MINIMAL) current_id = None user_ids = [] for line in reader: ...
23.413793
88
0.646539
103
679
4.019417
0.378641
0.118357
0.086957
0.108696
0.15942
0.15942
0.15942
0
0
0
0
0.005769
0.234168
679
28
89
24.25
0.790385
0.023564
0
0.210526
0
0
0.007576
0
0
0
0
0
0
0
null
null
0
0.105263
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bf4f99218e115d585d65200d617ed27525c3af50
737
wsgi
Python
pystil.wsgi
arthru/pystil
60e02da290fa7e0596dc94ed0a0a3c6c293cee78
[ "BSD-3-Clause" ]
null
null
null
pystil.wsgi
arthru/pystil
60e02da290fa7e0596dc94ed0a0a3c6c293cee78
[ "BSD-3-Clause" ]
null
null
null
pystil.wsgi
arthru/pystil
60e02da290fa7e0596dc94ed0a0a3c6c293cee78
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import os import sys import site VENV_SITE_DIR = "/srv/venv/pystil/lib/python2.6/site-packages/" site.addsitedir( VENV_SITE_DIR ) from os.path import dirname, abspath path = dirname( abspath( __file__ ) ) if path not in sys.path: sys.path.append(path) import werkzeug.contrib.fixers from pysti...
25.413793
76
0.748982
109
737
4.926606
0.440367
0.134078
0.040968
0
0
0
0
0
0
0
0
0.004532
0.101764
737
28
77
26.321429
0.806647
0.122117
0
0
0
0
0.21118
0.161491
0
0
0
0
0
1
0
false
0
0.388889
0
0.388889
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
bf502289806f46ec6c602a846b1c3a13dd9b5dc2
3,469
py
Python
swat/tests/cas/test_casa.py
kesmit13/python-swat
94a663036dba11832d0f23d0057a430eee43cd1e
[ "Apache-2.0" ]
null
null
null
swat/tests/cas/test_casa.py
kesmit13/python-swat
94a663036dba11832d0f23d0057a430eee43cd1e
[ "Apache-2.0" ]
null
null
null
swat/tests/cas/test_casa.py
kesmit13/python-swat
94a663036dba11832d0f23d0057a430eee43cd1e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # # Copyright SAS Institute # # 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 b...
34.009804
85
0.652061
453
3,469
4.916115
0.403974
0.026942
0.016165
0.025595
0.181859
0.133812
0.113157
0.07903
0.07903
0.07903
0
0.007474
0.228596
3,469
101
86
34.346535
0.824738
0.275007
0
0.148148
0
0
0.139246
0.01244
0
0
0
0
0.203704
1
0.074074
false
0.055556
0.092593
0
0.203704
0.018519
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
bf50ed470a9787e831bde7fb944a0f3579317a14
8,479
py
Python
src/terial/pairs/compute_pairs.py
keunhong/photoshape
6e795512e059bc5a6bdac748fda961f66d51c6f6
[ "PostgreSQL" ]
81
2018-10-10T06:55:41.000Z
2022-03-01T04:18:23.000Z
src/terial/pairs/compute_pairs.py
keunhong/photoshape
6e795512e059bc5a6bdac748fda961f66d51c6f6
[ "PostgreSQL" ]
17
2018-10-22T04:50:59.000Z
2022-02-12T00:29:11.000Z
src/terial/pairs/compute_pairs.py
keunhong/photoshape
6e795512e059bc5a6bdac748fda961f66d51c6f6
[ "PostgreSQL" ]
16
2018-11-20T06:57:32.000Z
2021-12-24T07:09:37.000Z
""" gF Generates exemplar-shape pairs. """ from pathlib import Path import click as click import collections import numpy as np import sqlalchemy as sa import torch from torch.utils.data import DataLoader from torch.utils.data.dataset import Dataset from torch.utils.data.sampler import SequentialSampler from tqdm impo...
35.476987
80
0.609978
1,042
8,479
4.771593
0.215931
0.026146
0.013073
0.015286
0.123492
0.059936
0.047064
0.018101
0
0
0
0.007692
0.279396
8,479
238
81
35.62605
0.806056
0.070409
0
0.069364
1
0
0.087313
0.014211
0
0
0
0
0
1
0.046243
false
0
0.075145
0.00578
0.156069
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
bf52d229a87737019766a00950802fee4f3af6fd
1,903
py
Python
fdws/awesome/articles.py
sabrina1210/AwesomeWiki
9a3b83902f62595367b49e935a9188dcf9b3be12
[ "Apache-2.0" ]
1
2020-12-22T16:28:06.000Z
2020-12-22T16:28:06.000Z
fdws/awesome/articles.py
sabrina1210/AwesomeWiki
9a3b83902f62595367b49e935a9188dcf9b3be12
[ "Apache-2.0" ]
1
2020-11-18T15:00:26.000Z
2020-11-18T15:00:26.000Z
fdws/awesome/articles.py
sabrina1210/AwesomeWiki
9a3b83902f62595367b49e935a9188dcf9b3be12
[ "Apache-2.0" ]
null
null
null
import multicorn import redis import requests, re, json, sys from slugify import slugify class HackerNews(multicorn.ForeignDataWrapper): def __init__(self, options, columns): super(HackerNews, self).__init__(options,columns) self.columns = columns self.options = options self.redis =...
34.6
138
0.602207
221
1,903
5.045249
0.41629
0.03139
0.023318
0.026906
0.107623
0.068161
0.068161
0.068161
0
0
0
0.023686
0.290068
1,903
55
139
34.6
0.801628
0.091435
0
0
0
0
0.136232
0
0
0
0
0.018182
0
1
0.052632
false
0
0.105263
0
0.184211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
bf57729a58942aa3d60a785b81cad19cba3aac4b
2,992
py
Python
psec/cvv.py
knovichikhin/psec
6b549c650cde21191539cdfc6a9d95e99f9268fc
[ "MIT" ]
7
2021-07-04T13:56:58.000Z
2022-02-22T10:46:02.000Z
psec/cvv.py
knovichikhin/psec
6b549c650cde21191539cdfc6a9d95e99f9268fc
[ "MIT" ]
2
2021-06-04T02:25:36.000Z
2021-08-08T17:21:44.000Z
psec/cvv.py
knovichikhin/psec
6b549c650cde21191539cdfc6a9d95e99f9268fc
[ "MIT" ]
null
null
null
import binascii as _binascii from psec import des as _des from psec import tools as _tools __all__ = ["generate_cvv"] def generate_cvv( cvk: bytes, pan: str, expiry: str, service_code: str, ) -> str: r"""Generate Visa/MasterCard Card Verification Value. Parameters ---------- cvk : b...
32.521739
80
0.636698
418
2,992
4.480861
0.354067
0.058729
0.033636
0.041644
0.358783
0.323545
0.191671
0.13401
0.13401
0.051255
0
0.046544
0.274733
2,992
91
81
32.879121
0.81659
0.56885
0
0
1
0
0.140526
0
0
0
0
0
0
1
0.033333
false
0
0.1
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
bf656ee704d607769667bc272d19817acc173d14
3,093
py
Python
Platforms/Web/Processing/Api/Discord/Commands/errors.py
The-CJ/Phaazebot
83a9563d210718071d4e2cdcca3b212c87abaf51
[ "MIT" ]
2
2017-09-14T08:07:55.000Z
2021-05-18T05:05:05.000Z
Platforms/Web/Processing/Api/Discord/Commands/errors.py
The-CJ/Phaazebot
83a9563d210718071d4e2cdcca3b212c87abaf51
[ "MIT" ]
111
2018-04-15T14:32:14.000Z
2021-03-28T21:06:29.000Z
Platforms/Web/Processing/Api/Discord/Commands/errors.py
The-CJ/Phaazebot
83a9563d210718071d4e2cdcca3b212c87abaf51
[ "MIT" ]
1
2018-04-15T13:24:44.000Z
2018-04-15T13:24:44.000Z
from typing import TYPE_CHECKING if TYPE_CHECKING: from Platforms.Web.main_web import PhaazebotWeb import json from aiohttp.web import Response from Utils.Classes.extendedrequest import ExtendedRequest async def apiDiscordCommandExists(cls:"PhaazebotWeb", WebRequest:ExtendedRequest, **kwargs) -> Response: """ Opti...
26.895652
107
0.6602
382
3,093
5.264398
0.206806
0.049727
0.04177
0.059672
0.744406
0.686226
0.686226
0.686226
0.523123
0.523123
0
0.013544
0.14064
3,093
114
108
27.131579
0.74304
0.013256
0
0.542373
0
0
0.268369
0.030914
0
0
0
0
0
1
0
true
0
0.084746
0
0.135593
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
bf6c37a4a4863879f0036a485506d852bad7b637
716
py
Python
deepxde/backend/backend.py
fabyayu/deepxde
89880a4c61586512c87cabd1e7a3bdbaedf0feab
[ "Apache-2.0" ]
null
null
null
deepxde/backend/backend.py
fabyayu/deepxde
89880a4c61586512c87cabd1e7a3bdbaedf0feab
[ "Apache-2.0" ]
null
null
null
deepxde/backend/backend.py
fabyayu/deepxde
89880a4c61586512c87cabd1e7a3bdbaedf0feab
[ "Apache-2.0" ]
null
null
null
"""This file defines the unified tensor framework interface required by DeepXDE. The principles of this interface: * There should be as few interfaces as possible. * The interface is used by DeepXDE system so it is more important to have clean definition rather than convenient usage. * Default arguments should be av...
39.777778
81
0.789106
111
716
5.081081
0.657658
0.056738
0.049645
0.085106
0
0
0
0
0
0
0
0
0.171788
716
17
82
42.117647
0.951096
0.972067
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bf6f3ed77ee389f025ea29aec726fb5558cd78db
28,106
py
Python
main.py
Mohammedshoaib2187/Basic-Desktop-Assistance
9d22f22476bfb2e014a7d3247c61ac2a0494996c
[ "MIT" ]
null
null
null
main.py
Mohammedshoaib2187/Basic-Desktop-Assistance
9d22f22476bfb2e014a7d3247c61ac2a0494996c
[ "MIT" ]
null
null
null
main.py
Mohammedshoaib2187/Basic-Desktop-Assistance
9d22f22476bfb2e014a7d3247c61ac2a0494996c
[ "MIT" ]
null
null
null
import pyttsx3 import speech_recognition as sr import datetime import wikipedia import webbrowser import os import requests import smtplib import socket from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase from email import encoders imp...
38.713499
130
0.544617
3,348
28,106
4.513441
0.164576
0.033353
0.057971
0.026206
0.477665
0.432334
0.3919
0.370591
0.339025
0.325392
0
0.013463
0.331388
28,106
725
131
38.766897
0.790656
0.057425
0
0.367876
0
0.032815
0.237339
0.079567
0
0
0
0
0
0
null
null
0.036269
0.048359
null
null
0.020725
0
0
0
null
0
0
0
0
0
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
bf76456740f9f25b43a9bdcdead6c626559d7642
722
py
Python
nester_pre/__init__.py
immark/nester_pre
0808879a849a9e483c1921deae88770b83edf57b
[ "MIT" ]
2
2016-10-05T19:19:34.000Z
2016-10-07T02:01:13.000Z
nester_pre/__init__.py
immark/nester_pre
0808879a849a9e483c1921deae88770b83edf57b
[ "MIT" ]
null
null
null
nester_pre/__init__.py
immark/nester_pre
0808879a849a9e483c1921deae88770b83edf57b
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (C) 2015 Mark Ma # Author: Mark Ma <maanyng@yahoo.com.tw> # License: MIT # For license information, see LICENSE.TXT """ The nester_pre is an open source Python library for nested data processing. It provided a function to print item of list, whether list is nested or not. """ # Copyr...
24.066667
78
0.745152
102
722
4.862745
0.588235
0.03629
0.060484
0.068548
0
0
0
0
0
0
0
0.008375
0.17313
722
29
79
24.896552
0.822446
0.493075
0
0
0
0
0.161383
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
bf796962834af7e3f2c02763abd3b3a678934d2c
570
py
Python
ScriptAutoExcel.py
sbellinkx/AutoVoorblad
0070f465b3b078938ab17b3247e7dc99bcaf3f33
[ "MIT" ]
null
null
null
ScriptAutoExcel.py
sbellinkx/AutoVoorblad
0070f465b3b078938ab17b3247e7dc99bcaf3f33
[ "MIT" ]
null
null
null
ScriptAutoExcel.py
sbellinkx/AutoVoorblad
0070f465b3b078938ab17b3247e7dc99bcaf3f33
[ "MIT" ]
null
null
null
from openpyxl import Workbook import os import pandas as pd cwd = os.path.abspath('') files = os.listdir(cwd) from tkinter import Tk # from tkinter import Tk for Python 3.x from tkinter.filedialog import askopenfilename df = pd.DataFrame() for file in files: if file.endswith(".xlsx"): df = df.appe...
31.666667
97
0.72807
91
570
4.538462
0.659341
0.079903
0.082324
0.09201
0
0
0
0
0
0
0
0.002132
0.177193
570
18
98
31.666667
0.878465
0.296491
0
0
0
0
0.012563
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
bf8719874e42b4cd7909f542f14f7acba2db9337
414
py
Python
Boolean/Do_Not_Compare_Different_Types.py
obareau/python_travaux_pratiques
2205f4c253e96e409b56f5c23d6e23387ab46524
[ "MIT" ]
1
2021-11-01T12:45:50.000Z
2021-11-01T12:45:50.000Z
Boolean/Do_Not_Compare_Different_Types.py
obareau/python_travaux_pratiques
2205f4c253e96e409b56f5c23d6e23387ab46524
[ "MIT" ]
null
null
null
Boolean/Do_Not_Compare_Different_Types.py
obareau/python_travaux_pratiques
2205f4c253e96e409b56f5c23d6e23387ab46524
[ "MIT" ]
null
null
null
x = 12 y = 3 print(x > y) # True x = "12" y = "3" print(x > y) # ! False / Why it's false ? print(x < y) # ! True # x = 12 # y = "3" # print(x > y) x2 = "45" y2 = "321" print(x2 > y2) # True x2 = "45" y2 = "621" X2_Length = len(x2) Y2_Length = len(y2) print(X2_Length < Y2_Length) # True print( ord('4') ) # 52...
13.8
42
0.502415
77
414
2.649351
0.363636
0.196078
0.137255
0.073529
0.25
0.25
0.25
0.22549
0.22549
0.22549
0
0.151316
0.2657
414
29
43
14.275862
0.519737
0.231884
0
0.2
0
0
0.059406
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
bf8a65efc12a7196d4cc987d6358f43c7786e785
230
py
Python
napster/music/urls.py
mauricio-chavez/napster-ingenieria-software
f156fcd265a0560a9e1d0ec37f4c1cf285e41eb5
[ "MIT" ]
null
null
null
napster/music/urls.py
mauricio-chavez/napster-ingenieria-software
f156fcd265a0560a9e1d0ec37f4c1cf285e41eb5
[ "MIT" ]
1
2020-03-04T23:35:28.000Z
2020-03-04T23:35:28.000Z
napster/music/urls.py
mauricio-chavez/napster-ingenieria-software
f156fcd265a0560a9e1d0ec37f4c1cf285e41eb5
[ "MIT" ]
null
null
null
"""Music app URL configuration""" from django.urls import path from . import views urlpatterns = [ path('', views.IndexView.as_view(), name='index'), path('top_songs', views.TopSongsView.as_view(), name='top_songs'), ]
20.909091
70
0.686957
30
230
5.133333
0.633333
0.077922
0.12987
0
0
0
0
0
0
0
0
0
0.143478
230
10
71
23
0.781726
0.117391
0
0
0
0
0.116751
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
bf8bfdd9874e81313f66210146092399ed1b8b73
19,000
py
Python
programmes/models.py
MTES-MCT/appel
3b840ccea600ef31cfea57721fe5e6edbdbc2c79
[ "MIT" ]
null
null
null
programmes/models.py
MTES-MCT/appel
3b840ccea600ef31cfea57721fe5e6edbdbc2c79
[ "MIT" ]
null
null
null
programmes/models.py
MTES-MCT/appel
3b840ccea600ef31cfea57721fe5e6edbdbc2c79
[ "MIT" ]
null
null
null
import uuid from django.db import models from django.db.models.signals import pre_save from django.dispatch import receiver from core.models import IngestableModel from core import model_utils class Zone123bis(models.TextChoices): Zone1 = "1", "01" Zone2 = "2", "02" Zone3 = "3", "03" Zone1bis = "1bi...
33.333333
90
0.681
2,210
19,000
5.615837
0.149321
0.027717
0.031907
0.042543
0.521553
0.453308
0.424543
0.388687
0.376601
0.356377
0
0.013671
0.210789
19,000
569
91
33.391916
0.813605
0.006842
0
0.305677
0
0
0.145076
0.008269
0
0
0
0
0
1
0.093886
false
0
0.024017
0.087336
0.661572
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
bf92807a214728123219765edd782e7c54a70a17
2,547
py
Python
archive/nucleus_encoder/results/18/tmp.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
23
2018-08-23T03:58:37.000Z
2022-02-23T05:04:54.000Z
archive/nucleus_encoder/results/18/tmp.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
archive/nucleus_encoder/results/18/tmp.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
import numpy as np import theano import theano.tensor as T #a = T.tensor3('a'); #b = T.matrix('b'); #f = theano.function([a, b], T.sum(a * b, axis=2)); #print f([[[1, 2], \ # [3, 4]], \ # \ # [[5, 6], \ # [7, 8]]], \ # \ # [[1, 2], \ # [3, 4]]); #a = T.matr...
24.970588
91
0.462112
428
2,547
2.714953
0.182243
0.025818
0.10327
0.096386
0.413941
0.330465
0.305508
0.305508
0.2642
0.209983
0
0.060874
0.200236
2,547
101
92
25.217822
0.509573
0.794268
0
0.142857
0
0
0.09417
0
0
0
0
0
0
0
null
null
0
0.214286
null
null
0.357143
0
0
0
null
0
0
0
0
0
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
bf92ea9c2f6174f06fcb74159a26b4ea1b30578f
534
py
Python
Chapter6/Exercise15.py
NoahNacho/Python-project-tests
38e43f011159232fab29d2bb1be969cb5000e635
[ "MIT" ]
2
2021-07-02T03:07:38.000Z
2021-07-21T14:47:20.000Z
Chapter6/Exercise15.py
NoahNacho/python-solving-problems-examples
38e43f011159232fab29d2bb1be969cb5000e635
[ "MIT" ]
null
null
null
Chapter6/Exercise15.py
NoahNacho/python-solving-problems-examples
38e43f011159232fab29d2bb1be969cb5000e635
[ "MIT" ]
null
null
null
import sys def is_even(n): if (n % 2) == 0: return True else: return False def is_odd(n): if is_even(n): return False else: return True def test(did_pass): """ Print the result of a test. """ linenum = sys._getframe(1).f_lineno # Get the caller's line...
19.777778
73
0.565543
84
534
3.47619
0.47619
0.068493
0.092466
0.089041
0.09589
0
0
0
0
0
0
0.029491
0.301498
534
27
74
19.777778
0.753351
0.11236
0
0.333333
0
0
0.094218
0
0
0
0
0
0
1
0.142857
false
0.095238
0.047619
0
0.380952
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
bf9c831c7a3ade62f051bc0bffb3e4bd1c9c44de
2,489
py
Python
annomathtex/annomathtex/config.py
philsMINT/AnnotaTeX
cf893ccf31bd8ee78e15c4dd7a21d05c8c0663a7
[ "Apache-2.0" ]
3
2021-04-14T13:31:12.000Z
2022-02-13T00:33:37.000Z
annomathtex/annomathtex/config.py
philsMINT/AnnotaTeX
cf893ccf31bd8ee78e15c4dd7a21d05c8c0663a7
[ "Apache-2.0" ]
10
2019-07-26T08:10:07.000Z
2021-06-10T17:53:43.000Z
annomathtex/annomathtex/config.py
philsMINT/AnnoMathTeX
cf893ccf31bd8ee78e15c4dd7a21d05c8c0663a7
[ "Apache-2.0" ]
2
2020-02-21T10:35:31.000Z
2020-05-27T06:13:35.000Z
import os import re from .settings.common import PROJECT_ROOT #Limit of the number of recommendations that are returned recommendations_limit = 10 arxiv_evaluation_file_path = os.path.join(PROJECT_ROOT, 'annomathtex', 'recommendation', 'evaluation_files', 'Evaluation_list_all.rtf') wikipedia_evaluation_file_path = os....
45.254545
135
0.743672
339
2,489
5.112094
0.176991
0.207732
0.103866
0.138488
0.652626
0.606463
0.376803
0.271783
0.231968
0.231968
0
0.000901
0.108076
2,489
54
136
46.092593
0.77973
0.220169
0
0.133333
0
0
0.176592
0.011911
0
0
0
0
0
1
0.166667
false
0
0.1
0.066667
0.433333
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
bf9ebd99ca039a7e458d0711b314f20c8da471ee
161
py
Python
listeven.py
Krishna-Aaseri/Python_Logical_Questions
c0f025a56dbbf85426142adb423b25fa7b034adb
[ "MIT" ]
null
null
null
listeven.py
Krishna-Aaseri/Python_Logical_Questions
c0f025a56dbbf85426142adb423b25fa7b034adb
[ "MIT" ]
null
null
null
listeven.py
Krishna-Aaseri/Python_Logical_Questions
c0f025a56dbbf85426142adb423b25fa7b034adb
[ "MIT" ]
null
null
null
num = [3,5,6,7,3,3,6,2,1] i = 0 sum = 0 while i < len(num): sum = sum + num[i] i = i + 1 print sum if sum%2==0: print "even h",sum else: print "odd hain",sum
14.636364
25
0.559006
40
161
2.25
0.475
0.044444
0
0
0
0
0
0
0
0
0
0.112903
0.229814
161
11
26
14.636364
0.612903
0
0
0
0
0
0.08642
0
0
0
0
0
0
0
null
null
0
0
null
null
0.272727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bfa139f81da2c36e28b8529fc4be220136108b9c
1,570
py
Python
database/utils/twitter_scraper.py
Sapphirine/Reddit-Behavioral-Mapping
e769b8d9623d08a47bb2624c630a1936ab569d6a
[ "Apache-2.0" ]
1
2016-06-10T17:35:06.000Z
2016-06-10T17:35:06.000Z
database/utils/twitter_scraper.py
Sapphirine/Reddit-Behavioral-Mapping
e769b8d9623d08a47bb2624c630a1936ab569d6a
[ "Apache-2.0" ]
null
null
null
database/utils/twitter_scraper.py
Sapphirine/Reddit-Behavioral-Mapping
e769b8d9623d08a47bb2624c630a1936ab569d6a
[ "Apache-2.0" ]
null
null
null
#Import the necessary methods from tweepy library from tweepy.streaming import StreamListener from tweepy import OAuthHandler from tweepy import Stream import time import sys #Variables that contains the user credentials to access Twitter API access_token = "1534389271-ck2opVGCmXelDUy80ym8qRNd1cHF6PwtYOxFLWb" access_...
34.130435
101
0.722293
177
1,570
6.225989
0.491525
0.049909
0.029038
0.039927
0
0
0
0
0
0
0
0.027821
0.175796
1,570
45
102
34.888889
0.823802
0.434395
0
0
0
0
0.220571
0.194286
0
0
0
0
0
0
null
null
0
0.238095
null
null
0.095238
0
0
0
null
0
0
0
0
0
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
bfa25b931d0caf6992fd7cc58092e39d2944a020
6,511
py
Python
mundiapi/models/create_plan_request.py
hugocpolos/MundiAPI-PYTHON
164545cc58bf18c946d5456e9ba4d55a378a339a
[ "MIT" ]
10
2017-08-30T15:53:00.000Z
2021-02-11T18:06:56.000Z
mundiapi/models/create_plan_request.py
hugocpolos/MundiAPI-PYTHON
164545cc58bf18c946d5456e9ba4d55a378a339a
[ "MIT" ]
4
2018-05-05T15:15:09.000Z
2021-12-22T00:52:41.000Z
mundiapi/models/create_plan_request.py
hugocpolos/MundiAPI-PYTHON
164545cc58bf18c946d5456e9ba4d55a378a339a
[ "MIT" ]
7
2017-04-27T13:46:52.000Z
2021-04-14T13:44:23.000Z
# -*- coding: utf-8 -*- """ mundiapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ import mundiapi.models.create_plan_item_request import mundiapi.models.create_pricing_scheme_request class CreatePlanRequest(object): """Implementation of the 'CreatePla...
37.854651
194
0.590078
621
6,511
6.020934
0.215781
0.069537
0.036106
0.025675
0.072747
0.056165
0
0
0
0
0
0.000924
0.335125
6,511
171
195
38.076023
0.862786
0.291046
0
0
1
0
0.14316
0
0
0
0
0
0
1
0.019048
false
0
0.019048
0
0.07619
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
bfa3a247989c251b3822043b7b1956a8aa581018
65,978
py
Python
DnD.py
RichardScottOZ/DnD-encounter-simulator-site
17eea11ad54647f029570c410e8fcc5ac388438d
[ "MIT" ]
2
2019-06-12T15:39:40.000Z
2021-12-28T10:57:23.000Z
DnD.py
RichardScottOZ/DnD-encounter-simulator-site
17eea11ad54647f029570c410e8fcc5ac388438d
[ "MIT" ]
1
2021-12-28T11:28:40.000Z
2021-12-28T11:28:40.000Z
DnD.py
RichardScottOZ/DnD-encounter-simulator-site
17eea11ad54647f029570c410e8fcc5ac388438d
[ "MIT" ]
5
2017-11-25T07:33:51.000Z
2021-12-28T10:56:35.000Z
# -*- coding: UTF-8 -*- __author__ = "Matteo" __copyright__ = "Don't blame me for a TPK" __email__ = "matteo.ferla on the gmail" __date__ = '23/08/15' import random import math import warnings #N="\n" N = "<br/>" TARGET = 'enemy alive weakest' # target='enemy alive weakest', target='enemy alive random', target='enemy...
45.221385
1,406
0.552336
8,153
65,978
4.397032
0.14142
0.029457
0.014561
0.007364
0.202739
0.1443
0.094284
0.074033
0.06268
0.047114
0
0.023692
0.323168
65,978
1,458
1,407
45.252401
0.778417
0.205265
0
0.180884
0
0.048304
0.125732
0.000892
0.003083
0
0
0.002743
0
1
0.071942
false
0.012333
0.006167
0.012333
0.141829
0.018499
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
bfafff9708442edb11f9771d8deb3698bb7bd28f
7,353
py
Python
game.py
SammedDoshi03/hangmangame
dab6086bf5f26dfa767dd2c9fc9411fa17bf52ae
[ "MIT" ]
null
null
null
game.py
SammedDoshi03/hangmangame
dab6086bf5f26dfa767dd2c9fc9411fa17bf52ae
[ "MIT" ]
null
null
null
game.py
SammedDoshi03/hangmangame
dab6086bf5f26dfa767dd2c9fc9411fa17bf52ae
[ "MIT" ]
1
2020-10-23T18:24:19.000Z
2020-10-23T18:24:19.000Z
import random from words import category, other_list_of_words, movies_list, flowers_list # Getting Random Value(Word) From File(dist.py) and Converting(Returning) into Upper Format def get_random_world(): print("Please select the category for your word:") i = 1 for cat in category: print(i,":",ca...
28.280769
91
0.324765
512
7,353
4.527344
0.275391
0.042278
0.034513
0.03365
0.207506
0.131579
0.057377
0.057377
0
0
0
0.004194
0.578403
7,353
259
92
28.389961
0.743548
0.137903
0
0.204301
0
0
0.112129
0
0
0
0
0
0
1
0.053763
false
0
0.021505
0
0.107527
0.150538
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bfb527d3e7e4bd73d46babc32610155c2e4ed8fb
929
py
Python
hackerrank/Algorithms/Chocolate Game/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerrank/Algorithms/Chocolate Game/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerrank/Algorithms/Chocolate Game/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
#!/bin/python3 import os # # Complete the chocolateGame function below. # def chocolateGame(arr): # # Write your code here. # from collections import defaultdict prefixes = (defaultdict(int), defaultdict(int)) iter_arr = iter(arr) loses = 0 prev = next(iter_arr) curr_xor = [prev,...
19.765957
51
0.561895
127
929
3.968504
0.433071
0.069444
0.071429
0.10119
0.113095
0
0
0
0
0
0
0.023988
0.282024
929
46
52
20.195652
0.731634
0.083961
0
0
0
0
0.026066
0
0
0
0
0.021739
0
1
0.035714
false
0
0.071429
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
bfc978726615643f990d8ba9d11c0ff2e43f47e3
301
py
Python
corehq/apps/hqwebapp/migrations/0005_delete_apikeysettings.py
akshita-sh/commcare-hq
236b25ff9cd1a634fc5586e0f9e29473c8ac71b8
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/hqwebapp/migrations/0005_delete_apikeysettings.py
akshita-sh/commcare-hq
236b25ff9cd1a634fc5586e0f9e29473c8ac71b8
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/hqwebapp/migrations/0005_delete_apikeysettings.py
akshita-sh/commcare-hq
236b25ff9cd1a634fc5586e0f9e29473c8ac71b8
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2.13 on 2020-08-21 12:34 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('hqwebapp', '0004_apikeysettings'), ] operations = [ migrations.DeleteModel( name='ApiKeySettings', ), ]
17.705882
48
0.611296
30
301
6.1
0.8
0
0
0
0
0
0
0
0
0
0
0.092166
0.27907
301
16
49
18.8125
0.751152
0.152824
0
0
1
0
0.162055
0
0
0
0
0
0
1
0
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bfc9d8edeb169cf415951774ac9fa0cd89a5533a
339
py
Python
samples/python-azurefunction/RetrieveSecret/__init__.py
lcartel-ms/azure-functions-extension
12f0eb61db847d7c86ab90663833418b03875c28
[ "MIT" ]
null
null
null
samples/python-azurefunction/RetrieveSecret/__init__.py
lcartel-ms/azure-functions-extension
12f0eb61db847d7c86ab90663833418b03875c28
[ "MIT" ]
null
null
null
samples/python-azurefunction/RetrieveSecret/__init__.py
lcartel-ms/azure-functions-extension
12f0eb61db847d7c86ab90663833418b03875c28
[ "MIT" ]
null
null
null
import logging import json import azure.functions as func def main (payload, secret) -> None: logging.info('Python function processed a RetrieveSecret request from the Dapr Runtime.') secret_dict = json.loads(secret) for key in secret_dict: logging.info("Stored secret: Key = " + key + ', Value = '...
33.9
93
0.707965
46
339
5.152174
0.652174
0.126582
0
0
0
0
0
0
0
0
0
0
0.19174
339
10
94
33.9
0.864964
0
0
0
0
0
0.305882
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
bfcbc6e80ad5164238648793481eafd53ab27cf3
1,832
py
Python
generate_square.py
AJBrodie/inflowProject
5cb5f7a7a991ffa09ed4c28ff6e44be0bd09640e
[ "BSD-2-Clause" ]
6
2015-03-30T13:22:50.000Z
2022-01-05T17:36:26.000Z
generate_square.py
AJBrodie/inflowProject
5cb5f7a7a991ffa09ed4c28ff6e44be0bd09640e
[ "BSD-2-Clause" ]
null
null
null
generate_square.py
AJBrodie/inflowProject
5cb5f7a7a991ffa09ed4c28ff6e44be0bd09640e
[ "BSD-2-Clause" ]
6
2015-04-10T18:19:32.000Z
2019-10-28T08:12:52.000Z
from __future__ import print_function, absolute_import, division from numpy import * def GenerateSquare(nx, dx, ny, dy): nodelist = {} id_counter = 0 for j in range(0, ny): for i in range(0, nx): x = i * dx y = j * dy nodelist.update({id_counter: array([x, y])}...
29.548387
81
0.552402
255
1,832
3.819608
0.196078
0.073922
0.036961
0.067762
0.50924
0.476386
0.427105
0.383984
0.338809
0.338809
0
0.038088
0.326419
1,832
61
82
30.032787
0.751216
0.15393
0
0.263158
1
0
0
0
0
0
0
0
0
1
0.026316
false
0
0.052632
0
0.105263
0.026316
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
bfcc267dfa520091cd209b0cf4e83c516884eed0
488
py
Python
visviva.py
Jakezarda/Solarsim
54fd077dec5e4efe5f2c5bfae2e3b701178a2f9c
[ "MIT" ]
null
null
null
visviva.py
Jakezarda/Solarsim
54fd077dec5e4efe5f2c5bfae2e3b701178a2f9c
[ "MIT" ]
null
null
null
visviva.py
Jakezarda/Solarsim
54fd077dec5e4efe5f2c5bfae2e3b701178a2f9c
[ "MIT" ]
null
null
null
import numpy as np import xlrd databook = xlrd.open_workbook('planetdata2.xlsx') datasheet = databook.sheet_by_name('Sheet1') a = datasheet.row_values(15) p = datasheet.row_values(13) r = datasheet.row_values(16) v = np.zeros(8) for i in range(0,8): v[i] = ((2*np.pi*a[i])/p[i])*np.sqrt(2*(a[i]/r[i])-1) f ...
21.217391
88
0.594262
90
488
3.155556
0.488889
0.126761
0.190141
0.077465
0.091549
0.091549
0
0
0
0
0
0.039312
0.165984
488
22
89
22.181818
0.658477
0
0
0.133333
0
0
0.102459
0.043033
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0.066667
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bfce2f80b9d08a163d34ea67bd9e99bde4924b20
566
py
Python
Python Programs/reverse-alphabet-triangle-pattern.py
muhammad-masood-ur-rehman/Skillrack
71a25417c89d0efab40ee6229ccd758b26ae4312
[ "CC0-1.0" ]
2
2021-06-26T21:50:59.000Z
2021-09-18T04:55:51.000Z
Python Programs/reverse-alphabet-triangle-pattern.py
muhammad-masood-ur-rehman/Skillrack
71a25417c89d0efab40ee6229ccd758b26ae4312
[ "CC0-1.0" ]
null
null
null
Python Programs/reverse-alphabet-triangle-pattern.py
muhammad-masood-ur-rehman/Skillrack
71a25417c89d0efab40ee6229ccd758b26ae4312
[ "CC0-1.0" ]
null
null
null
Reverse Alphabet Triangle Pattern The program must accept an integer N as the input. The program must print the desired pattern as shown in the Example Input/Output section. Boundary Condition(s): 2 <= N <= 26 Example Input/Output 1: Input: 5 Output: ----a ---ba --cba -dcba edcba Example Input/Output 2: Input: 4 Outpu...
18.258065
139
0.639576
95
566
3.821053
0.452632
0.099174
0.14876
0.066116
0.088154
0
0
0
0
0
0
0.029083
0.210247
566
30
140
18.866667
0.780761
0
0
0.133333
0
0
0.00354
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
bfcf4f5fb5dfc474d64d4d4aaa2f252566e7d0c3
803
py
Python
stopwatch-template.py
jeffbrown3340/python-stopwatch
e3906b202b2c7e40045ba2f6239fce85d1d64f32
[ "MIT" ]
null
null
null
stopwatch-template.py
jeffbrown3340/python-stopwatch
e3906b202b2c7e40045ba2f6239fce85d1d64f32
[ "MIT" ]
null
null
null
stopwatch-template.py
jeffbrown3340/python-stopwatch
e3906b202b2c7e40045ba2f6239fce85d1d64f32
[ "MIT" ]
null
null
null
# template for "Stopwatch: The Game" import simplegui # define global variables # define helper function format that converts time # in tenths of seconds into formatted string A:BC.D def format(t): return str(t) # define event handlers for buttons; "Start", "Stop", "Reset" def start_button(): print "Star...
19.119048
61
0.724782
113
803
5.061947
0.530973
0.057692
0.083916
0.076923
0
0
0
0
0
0
0
0.012177
0.181818
803
41
62
19.585366
0.858447
0.478207
0
0
0
0
0.113022
0
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.214286
0
0
0
null
0
0
0
0
0
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
bfd047aa9bbeab9596e24bc73ee6b9e7c5664a0a
1,384
py
Python
tests/conftest.py
milosta/objconf
7d8ffbe0cd89cc1330b6228d3a59c0d7fe41a648
[ "Apache-2.0" ]
3
2021-08-28T08:06:39.000Z
2021-10-01T18:05:05.000Z
tests/conftest.py
milosta/objconf
7d8ffbe0cd89cc1330b6228d3a59c0d7fe41a648
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
milosta/objconf
7d8ffbe0cd89cc1330b6228d3a59c0d7fe41a648
[ "Apache-2.0" ]
null
null
null
import io import os import pytest import json import yaml from objconf import Config from objconf import Attribute TESTING_DATA_DIR = 'assets' def data_path_join(file: str, data_dir: str = TESTING_DATA_DIR) -> str: return os.path.join(os.path.dirname(os.path.realpath(__file__)), data_dir, file) @pytest.fixtur...
25.163636
89
0.688584
190
1,384
4.778947
0.294737
0.055066
0.070485
0.072687
0.154185
0.154185
0.154185
0.088106
0.088106
0.088106
0
0.006404
0.21026
1,384
54
90
25.62963
0.824337
0
0
0.162162
0
0
0.058526
0
0
0
0
0
0.162162
1
0.162162
false
0
0.189189
0.054054
0.648649
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
bfd30eea7fb68dbc8b9ac58b1f7269250e2e434c
3,226
py
Python
lightweight.py
tartakovsky/lightweight-charts-jupyter-bridge
df1924754373a9da410efbe29325b67f263ee823
[ "MIT" ]
null
null
null
lightweight.py
tartakovsky/lightweight-charts-jupyter-bridge
df1924754373a9da410efbe29325b67f263ee823
[ "MIT" ]
null
null
null
lightweight.py
tartakovsky/lightweight-charts-jupyter-bridge
df1924754373a9da410efbe29325b67f263ee823
[ "MIT" ]
1
2022-03-31T21:57:50.000Z
2022-03-31T21:57:50.000Z
import pandas as pd import json from IPython.display import Javascript, display def plot(data, config): init() inject(data) inject(config, name='config') render() ### Internal utils def _ix_to_time(ix): if isinstance(ix, pd.Timestamp): return int(ix.strftime('%s')) else: ...
30.149533
122
0.566026
357
3,226
5.044818
0.408964
0.034981
0.033315
0.011105
0.116602
0.116602
0.116602
0.074403
0.074403
0.074403
0
0.009735
0.299442
3,226
107
123
30.149533
0.787168
0.071606
0
0.094118
0
0.035294
0.631861
0.129183
0
0
0
0
0
1
0.117647
false
0
0.035294
0.035294
0.211765
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
bfd3ebc5e241998903f1f35c100b33d4e0000164
3,811
py
Python
python/runner.py
NightKey/RaspberryPiGui
3d8def30712b6840f10c5ef5a88533161b6b032a
[ "BSD-3-Clause" ]
1
2020-05-20T16:22:09.000Z
2020-05-20T16:22:09.000Z
python/runner.py
NightKey/RaspberryPiGui
3d8def30712b6840f10c5ef5a88533161b6b032a
[ "BSD-3-Clause" ]
null
null
null
python/runner.py
NightKey/RaspberryPiGui
3d8def30712b6840f10c5ef5a88533161b6b032a
[ "BSD-3-Clause" ]
1
2020-09-14T16:02:50.000Z
2020-09-14T16:02:50.000Z
import subprocess from platform import system from version import version_info from os import system as run from os import path, remove from sys import argv from time import sleep interpreter = 'python' if system() == 'Windows' else 'python3' version_file = '../version' def read_version(): """ Reads the versi...
40.542553
132
0.505642
422
3,811
4.518957
0.319905
0.047195
0.037756
0.050341
0.294704
0.19979
0.19979
0.083901
0
0
0
0.005616
0.392548
3,811
94
133
40.542553
0.818143
0.180268
0
0.409639
0
0
0.150876
0
0
0
0
0
0
1
0.024096
false
0.060241
0.084337
0
0.120482
0.096386
0
0
0
null
0
0
0
0
0
0
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
bfd5b64d1e2f7def0e9cc241cf367ad8e66a2598
1,544
py
Python
beaker/services/account.py
allenai/beaker-py
99c8d7f6e9938807ca5405964ef35633a19e8d68
[ "Apache-2.0" ]
null
null
null
beaker/services/account.py
allenai/beaker-py
99c8d7f6e9938807ca5405964ef35633a19e8d68
[ "Apache-2.0" ]
20
2021-12-16T13:23:07.000Z
2022-03-31T16:40:02.000Z
beaker/services/account.py
allenai/beaker-py
99c8d7f6e9938807ca5405964ef35633a19e8d68
[ "Apache-2.0" ]
null
null
null
from typing import List from ..data_model import * from ..exceptions import * from ..util import cached_property from .service_client import ServiceClient class AccountClient(ServiceClient): """ Accessed via :data:`Beaker.account <beaker.Beaker.account>`. """ @cached_property(ttl=3 * 60) def nam...
29.132075
92
0.611399
175
1,544
5.331429
0.457143
0.041801
0.057878
0.090032
0.245445
0.245445
0.245445
0.245445
0.245445
0.245445
0
0.00542
0.283031
1,544
52
93
29.692308
0.837398
0.343912
0
0
0
0
0.05896
0.035838
0
0
0
0
0
1
0.190476
false
0
0.238095
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
bfd96df33affdadc83b649043c90e9c70de64222
1,953
py
Python
app/errors/handlers.py
techouse/nordend
9129c5dc75f338ba0b4fc6c6a8b6bfdc334264d4
[ "MIT" ]
null
null
null
app/errors/handlers.py
techouse/nordend
9129c5dc75f338ba0b4fc6c6a8b6bfdc334264d4
[ "MIT" ]
1
2020-03-03T07:58:56.000Z
2020-03-03T07:58:56.000Z
app/errors/handlers.py
techouse/nordend
9129c5dc75f338ba0b4fc6c6a8b6bfdc334264d4
[ "MIT" ]
null
null
null
from flask import render_template, request from .. import db, status from . import errors from ..api.errors import error_response as api_error_response def wants_json_response(): return request.accept_mimetypes["application/json"] >= request.accept_mimetypes["text/html"] @errors.app_errorhandler(status.HTTP_400...
37.557692
96
0.800307
277
1,953
5.238267
0.162455
0.124052
0.077188
0.110958
0.766368
0.536182
0.283253
0.283253
0.283253
0.283253
0
0.041332
0.108039
1,953
51
97
38.294118
0.791619
0
0
0.297297
0
0
0.058884
0
0
0
0
0
0
1
0.189189
false
0
0.108108
0.027027
0.648649
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
449adf3d137cf47606046d30276390b7f080aa3b
2,064
py
Python
tweetags/auth.py
ibrahim45/twitter-hashtag-selector
2fc694110b3994a82d2e8ef9a4c6f52531cb9bc9
[ "MIT" ]
1
2019-10-19T17:41:53.000Z
2019-10-19T17:41:53.000Z
tweetags/auth.py
ibrahim45/twitter-hashtag-selector
2fc694110b3994a82d2e8ef9a4c6f52531cb9bc9
[ "MIT" ]
4
2019-10-19T10:29:13.000Z
2019-11-03T19:55:18.000Z
tweetags/auth.py
ibrahim45/twitter-hashtag-selector
2fc694110b3994a82d2e8ef9a4c6f52531cb9bc9
[ "MIT" ]
3
2019-10-19T06:28:18.000Z
2019-10-26T15:42:02.000Z
#!/usr/bin/env python """Python inteerface to access twitter api.""" from future.standard_library import install_aliases # To clear the python2/python3 dependancy. install_aliases() import os import base64 import requests from urllib.parse import quote_plus from api import tweetags_api from rest import TweetagsRestA...
40.470588
114
0.718023
279
2,064
5.09319
0.333333
0.100633
0.084448
0.05278
0.240676
0.211119
0.073188
0.073188
0.073188
0.073188
0
0.009042
0.196221
2,064
50
115
41.28
0.847498
0.321705
0
0
0
0
0.158301
0.074903
0
0
0
0
0
1
0.083333
false
0.041667
0.333333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
449be6b58ab6fbf1a259840cffdaff73ed75ab15
3,506
py
Python
module1-introduction-to-sql/assignment/rpg_queries.py
jonathanmendoza-tx/DS-Unit-3-Sprint-2-SQL-and-Databases
7976332b75b8c81b2dd06682c3be1acd390dbd8c
[ "MIT" ]
null
null
null
module1-introduction-to-sql/assignment/rpg_queries.py
jonathanmendoza-tx/DS-Unit-3-Sprint-2-SQL-and-Databases
7976332b75b8c81b2dd06682c3be1acd390dbd8c
[ "MIT" ]
null
null
null
module1-introduction-to-sql/assignment/rpg_queries.py
jonathanmendoza-tx/DS-Unit-3-Sprint-2-SQL-and-Databases
7976332b75b8c81b2dd06682c3be1acd390dbd8c
[ "MIT" ]
null
null
null
import sqlite3 import pandas as pd !wget https://github.com/jonathanmendoza-tx/DS-Unit-3-Sprint-2-SQL-and-Databases/blob/master/module1-introduction-to-sql/rpg_db.sqlite3?raw=true -O rpg_db.sqlite3 #create connection conn = sqlite3.connect('rpg_db.sqlite3') cur = conn.cursor() def question_one(): query_characters =...
23.373333
162
0.756418
514
3,506
4.865759
0.198444
0.009596
0.048381
0.061575
0.381447
0.336665
0.310276
0.154338
0.12475
0.092763
0
0.01235
0.122362
3,506
149
163
23.530201
0.800455
0.004849
0
0.207547
0
0
0.395929
0.127294
0
0
0
0
0
0
null
null
0
0.018868
null
null
0.132075
0
0
0
null
0
0
0
0
0
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
449cdf44e6fcc2d71527b3deb888416e7f86d576
4,746
py
Python
hw-5.py
daviscuen/Astr-119-hw-5
35c266181dc3e1d123388ff49fac237d5600a5ae
[ "MIT" ]
null
null
null
hw-5.py
daviscuen/Astr-119-hw-5
35c266181dc3e1d123388ff49fac237d5600a5ae
[ "MIT" ]
1
2018-11-20T04:40:05.000Z
2018-11-20T04:40:05.000Z
hw-5.py
daviscuen/Astr-119-hw-5
35c266181dc3e1d123388ff49fac237d5600a5ae
[ "MIT" ]
null
null
null
%matplotlib inline import matplotlib.pyplot as plt import numpy as np def dydx(x,y): #d2y/dx2 = -y so z = dydx and then d2y/dx2 = dz/dx = -y # set y = y[0] # set z = y[1] y_derivs = np.zeros(2) y_derivs[0] = y[1] y_derivs[1] = -1*y[0] return y_derivs def cashk...
19.214575
112
0.480405
804
4,746
2.721393
0.252488
0.051188
0.028793
0.035649
0.109689
0.069013
0.069013
0.063985
0.063985
0.063985
0
0.120026
0.343447
4,746
247
113
19.214575
0.582157
0.069532
0
0.097222
0
0.006944
0.043003
0
0
0
0
0
0
0
null
null
0
0.013889
null
null
0.020833
0
0
0
null
0
0
0
0
0
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
449f8110dd7c9a0ce0d1edca45a4262dc1d56044
3,176
py
Python
fractal/contrib/rabbitmq/event_bus.py
douwevandermeij/fractal
66b04892b4d6fd8ee6a0c07b6e230f4321165085
[ "MIT" ]
2
2021-08-12T05:19:08.000Z
2022-01-29T16:22:37.000Z
fractal/contrib/rabbitmq/event_bus.py
douwevandermeij/fractal
66b04892b4d6fd8ee6a0c07b6e230f4321165085
[ "MIT" ]
null
null
null
fractal/contrib/rabbitmq/event_bus.py
douwevandermeij/fractal
66b04892b4d6fd8ee6a0c07b6e230f4321165085
[ "MIT" ]
null
null
null
import json import logging import threading from typing import List, Type from fractal.contrib.rabbitmq.utils import setup_rabbitmq_connection from fractal.core.command_bus.command_bus import CommandBus from fractal.core.event_sourcing.event import ReceivingEvent from fractal.core.event_sourcing.event_bus import Event...
30.834951
90
0.576511
313
3,176
5.619808
0.309904
0.051165
0.03411
0.054576
0.175099
0.130756
0.093235
0.062536
0.062536
0.062536
0
0
0.346033
3,176
102
91
31.137255
0.846895
0.021725
0
0.26087
0
0
0.054768
0.02384
0
0
0
0.009804
0
1
0.043478
false
0.065217
0.097826
0
0.163043
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
44a3c93d6bfc152b7bfef4ac0e305b58e7e2821b
2,577
py
Python
examples/why_we_need_lie_exponential.py
SebastianoF/calie
187318fa340b6d2fbf8c5dbc643304b66e9d1c44
[ "BSD-3-Clause" ]
null
null
null
examples/why_we_need_lie_exponential.py
SebastianoF/calie
187318fa340b6d2fbf8c5dbc643304b66e9d1c44
[ "BSD-3-Clause" ]
null
null
null
examples/why_we_need_lie_exponential.py
SebastianoF/calie
187318fa340b6d2fbf8c5dbc643304b66e9d1c44
[ "BSD-3-Clause" ]
null
null
null
""" We consider a randomly generated svf v in the Lie algebra. We then consider its inverse in the lie Algebra: -v The composition in the Lie algebra does not exist. But we apply the numerical method anyway to see what may happen. v dot (-v) and (-v) dot v does not return the approximated identity (in green). Afterwa...
43.677966
120
0.726038
456
2,577
3.747807
0.245614
0.04213
0.057929
0.089526
0.373318
0.284377
0.258631
0.152136
0.118198
0.04447
0
0.01626
0.188591
2,577
58
121
44.431034
0.801052
0.272798
0
0
1
0
0.085975
0
0
0
0
0
0
1
0
false
0
0.206897
0
0.206897
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
44a4452e67ba708de346e682440a2ae9ae584d84
7,288
py
Python
tests/api/cluster/test_user.py
ministryofjustice/analytics-platform-control-panel-public
289143280ed79a05be470d57dc3b1fd9179758cf
[ "MIT" ]
null
null
null
tests/api/cluster/test_user.py
ministryofjustice/analytics-platform-control-panel-public
289143280ed79a05be470d57dc3b1fd9179758cf
[ "MIT" ]
93
2021-08-09T16:09:59.000Z
2022-03-28T16:13:31.000Z
tests/api/cluster/test_user.py
ministryofjustice/analytics-platform-control-panel-public
289143280ed79a05be470d57dc3b1fd9179758cf
[ "MIT" ]
2
2021-03-30T15:13:24.000Z
2021-04-11T06:26:09.000Z
from unittest.mock import call, patch, MagicMock import pytest from controlpanel.api import cluster from controlpanel.api.models.user import User def test_iam_role_name(users): assert cluster.User(users['normal_user']).iam_role_name == 'test_user_bob' def test_create(aws, helm, settings, users): user = us...
33.431193
80
0.657382
961
7,288
4.753382
0.138398
0.064799
0.049912
0.031305
0.763573
0.721979
0.685639
0.662872
0.630473
0.596322
0
0.001934
0.219676
7,288
217
81
33.585253
0.801301
0.113749
0
0.597403
0
0
0.231707
0.193538
0
0
0
0
0.155844
1
0.077922
false
0
0.025974
0
0.103896
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
44aee89354ca1a8cd4b06bb8d0e4bd20e4b8758a
1,909
py
Python
library/ftx/asyncronous/futures.py
danyanyam/ftx
32076bc1135e5a1e2bc800f4fff8dff9d7da18f1
[ "MIT" ]
2
2021-09-23T22:59:24.000Z
2021-09-24T05:49:35.000Z
library/ftx/asyncronous/futures.py
danyanyam/ftx
32076bc1135e5a1e2bc800f4fff8dff9d7da18f1
[ "MIT" ]
null
null
null
library/ftx/asyncronous/futures.py
danyanyam/ftx
32076bc1135e5a1e2bc800f4fff8dff9d7da18f1
[ "MIT" ]
null
null
null
import datetime as dt from library.ftx.base import AsyncBaseApiClass class Futures(AsyncBaseApiClass): def __init__(self, api_key: str, secret_key: str, subaccount_name: str = ''): super().__init__(api_key, secret_key, subaccount_name) async def list_all_futures(self): """ https://docs.ftx.c...
51.594595
163
0.705605
261
1,909
4.923372
0.203065
0.04358
0.06537
0.081712
0.480934
0.452918
0.34786
0.205447
0.205447
0.205447
0
0
0.152436
1,909
37
163
51.594595
0.79419
0
0
0
0
0.05
0.149189
0.117978
0
0
0
0
0
1
0.05
false
0
0.1
0
0.55
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
44b21497e4023e56cee900f519e2b3327c38e367
39,804
py
Python
topoflow/utils/CMI_base.py
mintproject/topoflow
3c19d4546129280d97eb021d1990697456c547b5
[ "MIT" ]
27
2016-01-20T11:10:39.000Z
2021-09-29T19:31:51.000Z
topoflow/utils/CMI_base.py
mintproject/topoflow
3c19d4546129280d97eb021d1990697456c547b5
[ "MIT" ]
1
2016-03-30T17:28:42.000Z
2016-03-30T17:28:42.000Z
topoflow/utils/CMI_base.py
mintproject/topoflow
3c19d4546129280d97eb021d1990697456c547b5
[ "MIT" ]
14
2015-03-20T04:41:43.000Z
2021-05-31T23:09:54.000Z
# # NOTE: This is not currently used. See emeli.py in frameworks folder. # # Copyright (c) 2010-2012, Scott D. Peckham # # February 2012 (Complete CMI, starting from CSDMS_base.py.) # #----------------------------------------------------------------------- # # Notes: This file defines a "base class" with a C...
42.389776
101
0.383554
3,350
39,804
4.348657
0.151642
0.034596
0.041529
0.023064
0.342875
0.262974
0.234349
0.206617
0.160008
0.145319
0
0.004522
0.277811
39,804
938
102
42.434968
0.502261
0.642197
0
0.214612
0
0.004566
0.135338
0.046523
0
0
0
0
0
0
null
null
0.009132
0.018265
null
null
0.164384
0
0
0
null
0
0
0
0
0
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
44bfcc2c70b8c26f2b9d2b07b6455cdb5480ed66
1,187
py
Python
setup.py
EnTeQuAk/komber
08703c1c13c5ec6b055b96ee7aac832c8b3059a9
[ "0BSD" ]
1
2017-04-23T06:50:27.000Z
2017-04-23T06:50:27.000Z
setup.py
EnTeQuAk/komber
08703c1c13c5ec6b055b96ee7aac832c8b3059a9
[ "0BSD" ]
null
null
null
setup.py
EnTeQuAk/komber
08703c1c13c5ec6b055b96ee7aac832c8b3059a9
[ "0BSD" ]
null
null
null
import os setupargs = {} try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='komber', version='0.1', description='Helper library to ease the use of kombu.', long_description='', author='Christopher Grebs', author_email='christopher.grebs@...
31.236842
70
0.624263
119
1,187
6.159664
0.630252
0.181446
0.238745
0.070941
0
0
0
0
0
0
0
0.010929
0.229149
1,187
37
71
32.081081
0.790164
0
0
0
0
0
0.512216
0.032856
0
0
0
0
0
1
0
false
0
0.114286
0
0.114286
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
44cdae543583717dab760c398725a9d921e27125
8,068
py
Python
python-broker/tacgrpc/grpc_pb2.py
pascalwhoop/broker-adapter
c5f3813b49a29a52c5b40963bc3d018eb4789dda
[ "Apache-2.0" ]
1
2018-02-27T09:12:22.000Z
2018-02-27T09:12:22.000Z
python-broker/tacgrpc/grpc_pb2.py
pascalwhoop/broker-adapter
c5f3813b49a29a52c5b40963bc3d018eb4789dda
[ "Apache-2.0" ]
3
2018-02-26T22:04:56.000Z
2018-03-17T20:21:04.000Z
python-broker/tacgrpc/grpc_pb2.py
pascalwhoop/broker-adapter
c5f3813b49a29a52c5b40963bc3d018eb4789dda
[ "Apache-2.0" ]
1
2018-02-26T20:22:41.000Z
2018-02-26T20:22:41.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: grpc.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _mess...
30.911877
809
0.745538
949
8,068
6.079031
0.205479
0.034668
0.031201
0.026694
0.400589
0.349454
0.34252
0.312012
0.263651
0.263651
0
0.040211
0.130764
8,068
260
810
31.030769
0.782404
0.036192
0
0.553097
1
0.004425
0.195031
0.129119
0
0
0
0
0
1
0
false
0
0.030973
0
0.030973
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
44dd8f4cf2c3a7f0f2e3791866a5cc10513bcae9
673
py
Python
Farm/script.sage.py
killua4564/2021-Crypto-CTF
37f9a21db92f3bb8de2a88ced8184e5ad36865e6
[ "MIT" ]
null
null
null
Farm/script.sage.py
killua4564/2021-Crypto-CTF
37f9a21db92f3bb8de2a88ced8184e5ad36865e6
[ "MIT" ]
null
null
null
Farm/script.sage.py
killua4564/2021-Crypto-CTF
37f9a21db92f3bb8de2a88ced8184e5ad36865e6
[ "MIT" ]
null
null
null
# This file was *autogenerated* from the file script.sage from sage.all_cmdline import * # import sage library _sage_const_62 = Integer(62); _sage_const_64 = Integer(64); _sage_const_0 = Integer(0) from base64 import * import string ALPHABET = string.printable[:_sage_const_62 ] + '\\=' F = list(GF(_sage_const_64...
24.035714
86
0.726597
95
673
4.915789
0.473684
0.134904
0.06424
0
0
0
0
0
0
0
0
0.060345
0.138187
673
27
87
24.925926
0.744828
0.111441
0
0
1
0
0.113176
0.101351
0
0
0
0
0
1
0.066667
false
0
0.2
0.066667
0.333333
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
44ddf9d1bca375edc83611a0e9b1190a644b09d0
878
py
Python
CrittersProto/generator/maracaws.py
nickjbenson/Kami
2c9614f66055bea02f660f41c3aa5a00083331b8
[ "MIT" ]
1
2018-02-26T13:51:23.000Z
2018-02-26T13:51:23.000Z
CrittersProto/generator/maracaws.py
nickjbenson/Kami
2c9614f66055bea02f660f41c3aa5a00083331b8
[ "MIT" ]
null
null
null
CrittersProto/generator/maracaws.py
nickjbenson/Kami
2c9614f66055bea02f660f41c3aa5a00083331b8
[ "MIT" ]
null
null
null
##################################################################### # # hummingloop.py # # Copyright (c) 2015, Nick Benson # Modifications by benchan # # Released under the MIT License (http://opensource.org/licenses/MIT) # ##################################################################### from baseGenerator impo...
25.085714
69
0.539863
94
878
4.861702
0.56383
0.098468
0.052516
0
0
0
0
0
0
0
0
0.023426
0.222096
878
34
70
25.823529
0.645681
0.17426
0
0
0
0
0
0
0
0
0
0
0
1
0.1875
false
0
0.125
0.125
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
44def70cfd256455c2ab65efe6e6e5150fbb197c
1,035
py
Python
api/resolve_address/serializers.py
NicWesJam/cidSign
372cf001baa1f38cae79bae144110839520cc223
[ "MIT" ]
null
null
null
api/resolve_address/serializers.py
NicWesJam/cidSign
372cf001baa1f38cae79bae144110839520cc223
[ "MIT" ]
null
null
null
api/resolve_address/serializers.py
NicWesJam/cidSign
372cf001baa1f38cae79bae144110839520cc223
[ "MIT" ]
null
null
null
# from django.contrib.auth.models import User, Group from .models import Domain, LinkedAddress from rest_framework import serializers class LinkedAddressSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = LinkedAddress fields = ['address', 'address_type', 'created', 'updated', ...
35.689655
115
0.7343
93
1,035
8.075269
0.408602
0.197071
0.074567
0.122503
0.327563
0.327563
0.327563
0.234354
0.234354
0.234354
0
0
0.164251
1,035
29
116
35.689655
0.868208
0.144928
0
0.421053
0
0
0.1359
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.578947
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
44e23ae8c8b67f50ebdd435d5b0c6b8a1ee886ae
17,244
py
Python
cardlist.py
sami-farih/temporis_5_helper
4a796f4c2113637faf01cf9da980a0e5d08df11e
[ "MIT" ]
null
null
null
cardlist.py
sami-farih/temporis_5_helper
4a796f4c2113637faf01cf9da980a0e5d08df11e
[ "MIT" ]
null
null
null
cardlist.py
sami-farih/temporis_5_helper
4a796f4c2113637faf01cf9da980a0e5d08df11e
[ "MIT" ]
null
null
null
from globalvars import * from globalfunctions import * class CardList: def __init__(self, cards_): cards = set(cards_) assert len(set([c.id for c in cards])) == len(cards), "ids en double." self.cards = cards self.crafts = None self.th = None def display(self, sort_ind...
34.766129
111
0.481211
1,936
17,244
4.126033
0.118285
0.029294
0.024787
0.038057
0.748373
0.701302
0.679644
0.637707
0.60303
0.590761
0
0.007361
0.401241
17,244
496
112
34.766129
0.766295
0
0
0.653753
0
0.009685
0.150478
0.008524
0
0
0
0
0.002421
1
0.046005
false
0.009685
0.004843
0.007264
0.096852
0.004843
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
44e5b1245838ef3c385b5f167a3f7aa8fa869d0e
1,138
py
Python
setup.py
Cofense/triage-sdk-python
b6b7dbda74e08dc1bacdc33bf1bbf6e6a74e8a29
[ "MIT" ]
null
null
null
setup.py
Cofense/triage-sdk-python
b6b7dbda74e08dc1bacdc33bf1bbf6e6a74e8a29
[ "MIT" ]
null
null
null
setup.py
Cofense/triage-sdk-python
b6b7dbda74e08dc1bacdc33bf1bbf6e6a74e8a29
[ "MIT" ]
null
null
null
import setuptools import pathlib def read_readme(): with open(pathlib.Path(__file__).parent / "README.md") as f: return f.read() setuptools.setup( name="cofense_triage", version="0.1.0", author="Eddie Lebow", author_email="oss@cofense.com", maintainer="Cofense, Inc.", maintainer_...
28.45
64
0.646749
119
1,138
6.02521
0.672269
0.072524
0.041841
0.050209
0
0
0
0
0
0
0
0.005637
0.220562
1,138
39
65
29.179487
0.802706
0
0
0.057143
0
0
0.442882
0
0
0
0
0
0
1
0.028571
true
0
0.057143
0
0.114286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
44e689adc02eeaa5c323575f384dda9eb2e5d80b
850
py
Python
autograd/util.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2017-11-27T21:37:46.000Z
2017-11-27T21:37:46.000Z
autograd/util.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
autograd/util.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2019-03-05T16:40:21.000Z
2019-03-05T16:40:21.000Z
import sys def subvals(x, ivs): x_ = list(x) for i, v in ivs: x_[i] = v return tuple(x_) def subval(x, i, v): x_ = list(x) x_[i] = v return tuple(x_) if sys.version_info >= (3,): def func(f): return f else: def func(f): return f.im_func # -------------------- deprecation warn...
26.5625
71
0.615294
128
850
3.921875
0.546875
0.015936
0.017928
0.035857
0.207171
0.059761
0
0
0
0
0
0.017673
0.201176
850
31
72
27.419355
0.721649
0.076471
0
0.25
0
0
0.172414
0
0
0
0
0
0
1
0.208333
false
0
0.125
0.083333
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
1
0
0
0
0
0
0
0
1
44ee8574b61e449755079c46f289fa53972729ae
15,084
py
Python
perception/BasicAromaticity.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
perception/BasicAromaticity.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
perception/BasicAromaticity.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
from frowns.FrownsError import FrownsError # XXX FIX ME # this would be much better moved into a class structure # a lot of data structures are used between the functions NEVER = -1 MAYBE = 0 AROMATIC = 1 AROMATIC_ATOMS = {'N':1, 'C':1, 'S':1, 'O':1} AROMATIC_PYROLE_ATOMS = {'C':1, 'N':1, 'O':1, 'S':1} AROMATIC_5_...
36.172662
115
0.550981
1,756
15,084
4.710706
0.188497
0.020309
0.013056
0.011605
0.124396
0.069512
0.041344
0.013056
0
0
0
0.014899
0.368138
15,084
416
116
36.259615
0.853006
0.276319
0
0.290043
0
0
0.027294
0.005356
0
0
0
0
0.012987
0
null
null
0.008658
0.012987
null
null
0.025974
0
0
0
null
0
0
0
0
0
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
44f67a349e0f82626e9be3f338c8a4870d63e763
5,294
py
Python
service/crawled_products_service.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
null
null
null
service/crawled_products_service.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
service/crawled_products_service.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
#!/usr/bin/env python # encoding: utf-8 """ crawled_products_service.py Created by Toan Vinh Luu on 2014-01-29. Copyright (c) 2014 __local.ch AG__. All rights reserved. """ import sys import os import time import requests, json import config from common.logger import logging def getItems(start, limit, sincedays = N...
29.411111
163
0.475066
456
5,294
5.447368
0.326754
0.012077
0.021739
0.019324
0.203704
0.203704
0.181159
0.082126
0.082126
0.082126
0
0.011564
0.379297
5,294
179
164
29.575419
0.74437
0.214771
0
0.12037
0
0
0.118976
0.007028
0
0
0
0
0
0
null
null
0
0.055556
null
null
0.009259
0
0
0
null
0
0
0
0
0
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
44fbbb706a102d549c2d4b1bc763eefbfa83b9ed
4,006
py
Python
rcsdk/http/response.py
vyshakhbabji/ringcentral-python-sdk-with-slate-sample-code
489f35c779b7a2f617c767c489deefcfb8f446f7
[ "MIT" ]
null
null
null
rcsdk/http/response.py
vyshakhbabji/ringcentral-python-sdk-with-slate-sample-code
489f35c779b7a2f617c767c489deefcfb8f446f7
[ "MIT" ]
null
null
null
rcsdk/http/response.py
vyshakhbabji/ringcentral-python-sdk-with-slate-sample-code
489f35c779b7a2f617c767c489deefcfb8f446f7
[ "MIT" ]
null
null
null
# !/usr/bin/env python # encoding: utf-8 import json from email.feedparser import FeedParser from .headers import * UNAUTHORIZED_STATUS = 401 class Response(Headers): def __init__(self, status, body, headers=None): # TODO Add statusText """ Builds response by parsing raw response on-the-wire....
26.706667
120
0.561158
464
4,006
4.704741
0.325431
0.022904
0.017865
0.023362
0.08612
0.035731
0
0
0
0
0
0.006632
0.322516
4,006
150
121
26.706667
0.797716
0.167748
0
0.04878
0
0
0.14684
0
0
0
0
0.013333
0.012195
1
0.134146
false
0.02439
0.04878
0
0.353659
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
781654c7d9d3d5f0ce637398943b8cc9a4b6c8b3
1,604
py
Python
estimate_ideology.py
asavage1/twitter-ideology
55cd73a68568e5683a360497a4f10b5325f68d9a
[ "MIT" ]
1
2021-01-18T21:43:14.000Z
2021-01-18T21:43:14.000Z
estimate_ideology.py
asavage1/twitter-ideology
55cd73a68568e5683a360497a4f10b5325f68d9a
[ "MIT" ]
null
null
null
estimate_ideology.py
asavage1/twitter-ideology
55cd73a68568e5683a360497a4f10b5325f68d9a
[ "MIT" ]
1
2021-01-18T21:43:33.000Z
2021-01-18T21:43:33.000Z
import numpy as np import rpy2.robjects as robjects robjects.r['load'](r'/path/to/refdataCA.rdata') # TODO: Edit path to file refdataCAr = robjects.r['refdataCA'] def supplementaryRows(res, points): svphi = np.array(res['sv'][:res['nd']]) supcol = np.where(np.isnan(res['colmass'])) res['colmass'][supco...
30.846154
79
0.592893
216
1,604
4.393519
0.398148
0.073762
0.125395
0.037935
0
0
0
0
0
0
0
0.026807
0.232544
1,604
51
80
31.45098
0.74411
0.087282
0
0
0
0
0.096088
0.016472
0
0
0
0.019608
0
1
0.054054
false
0.027027
0.054054
0
0.189189
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
78167d87fad9fdf748a6e8ef83dc3210340b0ef3
541
py
Python
Python3/223.rectangle-area.py
canhetingsky/LeetCode
67f4eaeb5746d361056d08df828c653f89dd9fdd
[ "MIT" ]
1
2019-09-23T13:25:21.000Z
2019-09-23T13:25:21.000Z
Python3/223.rectangle-area.py
canhetingsky/LeetCode
67f4eaeb5746d361056d08df828c653f89dd9fdd
[ "MIT" ]
6
2019-10-25T10:17:50.000Z
2019-11-17T05:07:19.000Z
Python3/223.rectangle-area.py
canhetingsky/LeetCode
67f4eaeb5746d361056d08df828c653f89dd9fdd
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=223 lang=python3 # # [223] Rectangle Area # # @lc code=start class Solution: def computeArea(self, A: int, B: int, C: int, D: int, E: int, F: int, G: int, H: int) -> int: overlap = max(min(C, G) - max(A, E), 0) * max(min(D, H) - max(B, F), 0) total = (A - C) * (B - D) + (E...
25.761905
97
0.582255
93
541
3.387097
0.548387
0.038095
0.126984
0
0
0
0
0
0
0
0
0.073892
0.249538
541
20
98
27.05
0.70197
0.434381
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1