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
d446d6c051e6412cd06569e1ae2b44acbcaa1e72
1,697
py
Python
bounties_api/std_bounties/migrations/0003_bountystate_event.py
tenthirtyone/BountiesAPI
2bb449a947d987072be24633ba36fbd67c0ab29b
[ "MIT" ]
45
2018-03-24T21:37:59.000Z
2021-11-12T11:53:04.000Z
bounties_api/std_bounties/migrations/0003_bountystate_event.py
tenthirtyone/BountiesAPI
2bb449a947d987072be24633ba36fbd67c0ab29b
[ "MIT" ]
192
2018-03-15T22:42:51.000Z
2022-02-12T11:42:20.000Z
bounties_api/std_bounties/migrations/0003_bountystate_event.py
tenthirtyone/BountiesAPI
2bb449a947d987072be24633ba36fbd67c0ab29b
[ "MIT" ]
27
2018-03-23T17:12:27.000Z
2021-12-06T02:21:26.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-04-18 22:15 from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('std_bounties',...
39.465116
128
0.597525
170
1,697
5.782353
0.435294
0.032553
0.042726
0.067141
0.513733
0.366226
0.274669
0.274669
0.274669
0.274669
0
0.034483
0.265174
1,697
42
129
40.404762
0.753809
0.04066
0
0.285714
1
0
0.142154
0.014154
0
0
0
0
0
1
0
false
0
0.114286
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d4473bb7f44a5fad9b82f6aae2bbca73863ed09b
626
py
Python
Long Repeat.py
Nonac/Checkio_Mission
1ea2e0d1aeeeb7087a9b1793662b47d1a9526f26
[ "Apache-2.0" ]
null
null
null
Long Repeat.py
Nonac/Checkio_Mission
1ea2e0d1aeeeb7087a9b1793662b47d1a9526f26
[ "Apache-2.0" ]
null
null
null
Long Repeat.py
Nonac/Checkio_Mission
1ea2e0d1aeeeb7087a9b1793662b47d1a9526f26
[ "Apache-2.0" ]
null
null
null
def long_repeat(line): """ length the longest substring that consists of the same char """ # your code here import re count = [] pattern = re.compile(r'((\w)\2+)') words = pattern.findall(line) for each in words:count.append(len(each[0])) if line == '':return 0 if len(cou...
29.809524
84
0.626198
88
626
4.329545
0.715909
0.07874
0.08399
0
0
0
0
0
0
0
0
0.014583
0.233227
626
20
85
31.3
0.779167
0.246006
0
0
0
0
0.175166
0
0
0
0
0.05
0.153846
1
0.076923
false
0
0.076923
0
0.153846
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d44a99dd0c441f9acc65c6d68613e3c718db6bc2
656
py
Python
00_04_profile_activities.py
stevenshave/NuclearSizeCheminformatics
e24fceb5340263b7c334507e51182dc28cc1cf9a
[ "MIT" ]
null
null
null
00_04_profile_activities.py
stevenshave/NuclearSizeCheminformatics
e24fceb5340263b7c334507e51182dc28cc1cf9a
[ "MIT" ]
null
null
null
00_04_profile_activities.py
stevenshave/NuclearSizeCheminformatics
e24fceb5340263b7c334507e51182dc28cc1cf9a
[ "MIT" ]
null
null
null
import json from pathlib import Path cpdid_to_activity=json.load(open("dat-cpdchemblid-to-activity.json")) target_ids=list(set([acitivity[0] for activities in cpdid_to_activity.values() for acitivity in activities])) acitity_records=list(set([(acitivity[1],acitivity[3]) for activities in cpdid_to_activity.values() for ...
28.521739
129
0.746951
102
656
4.637255
0.372549
0.236786
0.095137
0.084567
0.2537
0.2537
0.2537
0.2537
0.2537
0.2537
0
0.010292
0.11128
656
23
130
28.521739
0.801029
0.025915
0
0
0
0
0.112676
0.050078
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.285714
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
d44bc198c835337a13252374402b0b8769f3a8b1
237
py
Python
read_h5.py
Bruce-zxy/deep-study-pointnet2
729397946a42a1b3dabd49dc1df5f05adfe05d54
[ "MIT" ]
null
null
null
read_h5.py
Bruce-zxy/deep-study-pointnet2
729397946a42a1b3dabd49dc1df5f05adfe05d54
[ "MIT" ]
null
null
null
read_h5.py
Bruce-zxy/deep-study-pointnet2
729397946a42a1b3dabd49dc1df5f05adfe05d54
[ "MIT" ]
null
null
null
import random import h5py import numpy as np with h5py.File('./plant_train.h5', 'r') as f: data_full = f['data'][()] print(np.max(np.sqrt(np.sum(abs(data_full[20])**2, axis=-1)))) for key in f.keys(): print(f[key])
21.545455
66
0.603376
43
237
3.255814
0.651163
0.071429
0
0
0
0
0
0
0
0
0
0.036458
0.189873
237
10
67
23.7
0.692708
0
0
0
0
0
0.088608
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0.25
0
0
0
null
0
0
0
0
0
0
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
d4571df08b495207298fb5153e6574298e204623
1,151
py
Python
znfTruth/renameNewick.py
joelarmstrong/treeBuildingEvaluation
c606529a4503a13df650bd5fb775020ca01dc92a
[ "MIT" ]
null
null
null
znfTruth/renameNewick.py
joelarmstrong/treeBuildingEvaluation
c606529a4503a13df650bd5fb775020ca01dc92a
[ "MIT" ]
1
2020-10-13T09:17:33.000Z
2020-10-13T09:17:33.000Z
znfTruth/renameNewick.py
joelarmstrong/treeBuildingEvaluation
c606529a4503a13df650bd5fb775020ca01dc92a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys from sonLib.bioio import fastaRead from sonLib.nxnewick import NXNewick from sonLib.nxtree import NXTree import networkx as nx def induceTreeOnLeaves(nxtree, leaves): leaves = set(leaves) dg = nxtree.nxDg nodesToKeep = [] for node in dg.nodes(): succ = set([nxtr...
27.404762
102
0.67159
143
1,151
5.363636
0.468531
0.039113
0.028683
0
0
0
0
0
0
0
0
0.011828
0.192007
1,151
41
103
28.073171
0.812903
0.017376
0
0
0
0
0.009735
0
0
0
0
0
0
0
null
null
0
0.151515
null
null
0.030303
0
0
0
null
0
0
0
0
0
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
d45ce9d40e024bda0ebe09b8cf5581fe1820a65b
5,821
py
Python
cube_model.py
Lexseal/cube-solver
be8928734ecad4bde2ede9cac0207df9e20b8d91
[ "MIT" ]
null
null
null
cube_model.py
Lexseal/cube-solver
be8928734ecad4bde2ede9cac0207df9e20b8d91
[ "MIT" ]
null
null
null
cube_model.py
Lexseal/cube-solver
be8928734ecad4bde2ede9cac0207df9e20b8d91
[ "MIT" ]
null
null
null
from enum import IntEnum """ This file contains all the constants and basic convertions that describes a cube. """ class Facelets(IntEnum): ''' -------------- | U1 U2 U3 | | | | U4 U5 U6 | | | ...
25.871111
86
0.447861
886
5,821
2.799097
0.293454
0.050806
0.03871
0.017742
0.259274
0.25121
0.217742
0.194355
0.154032
0.128226
0
0.13461
0.372101
5,821
225
87
25.871111
0.543912
0.233809
0
0.036496
0
0
0.02287
0
0
0
0
0
0
1
0.036496
false
0.007299
0.007299
0
1.189781
0.029197
0
0
0
null
0
0
0
0
0
0
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
d463a74d48eb79171c971f0c05f13680e37bed7e
478
py
Python
qdesk/migrations/0009_auto_20200819_1720.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
qdesk/migrations/0009_auto_20200819_1720.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
qdesk/migrations/0009_auto_20200819_1720.py
Quanscendence/braynai
ab828ca95571c6dffef2b2392522e6a4160a2304
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-08-19 11:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('qdesk', '0008_auto_20200819_0815'), ] operations = [ migrations.AlterField( model_name='ticket', name='status', ...
25.157895
146
0.598326
50
478
5.62
0.78
0
0
0
0
0
0
0
0
0
0
0.088889
0.246862
478
18
147
26.555556
0.691667
0.089958
0
0
1
0
0.193995
0.053118
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
d46a82370313a6286e2e4d6686779c0039f593e9
8,311
py
Python
boxflow/interface/imagen.py
ioam/flowbox
197b51c665e0de5266c0710e904fdfb733c95375
[ "BSD-3-Clause" ]
15
2017-03-17T08:20:20.000Z
2021-04-24T16:32:52.000Z
boxflow/interface/imagen.py
ioam/flowbox
197b51c665e0de5266c0710e904fdfb733c95375
[ "BSD-3-Clause" ]
2
2017-10-10T10:08:36.000Z
2018-04-03T23:38:30.000Z
boxflow/interface/imagen.py
ioam/boxflow
197b51c665e0de5266c0710e904fdfb733c95375
[ "BSD-3-Clause" ]
null
null
null
# Module adapting imagen classes for use with boxflow # # from __future__ import absolute_import import os import base64 from PIL import Image from io import BytesIO import imagen from imagen import PatternGenerator, Gaussian from imagen import image from imagen import random from imagen.random import RandomGenerator...
33.37751
94
0.633257
995
8,311
5.19799
0.229146
0.082947
0.058005
0.04273
0.507541
0.49826
0.483759
0.483759
0.483759
0.470031
0
0.027818
0.243051
8,311
248
95
33.512097
0.794309
0.057514
0
0.341772
0
0
0.052359
0.002844
0
0
0
0
0
1
0.082278
false
0
0.107595
0.025316
0.556962
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
d472bd192a0cca10bd5b6ab6282cebb44c2f73f6
2,819
py
Python
api/models/item_transaction.py
bonybody/2020_hew_app
d09cdafd55348ed70424a443d8619114cae3d27f
[ "MIT" ]
1
2021-06-03T02:54:51.000Z
2021-06-03T02:54:51.000Z
deploy/api/src/models/item_transaction.py
bonybody/agri
d09cdafd55348ed70424a443d8619114cae3d27f
[ "MIT" ]
19
2021-01-01T09:48:51.000Z
2021-04-08T09:11:30.000Z
deploy/api/src/models/item_transaction.py
bonybody/agri
d09cdafd55348ed70424a443d8619114cae3d27f
[ "MIT" ]
1
2021-09-28T11:54:25.000Z
2021-09-28T11:54:25.000Z
from datetime import datetime import sys import os sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from database.database import db, ma from sqlalchemy import desc, and_, func from flask import current_app class ItemTransaction(db.Model): __tablename__ = 'item_transaction' ...
38.616438
113
0.660163
353
2,819
5.07932
0.243626
0.062465
0.044618
0.056888
0.436141
0.341885
0.204685
0.187395
0.187395
0.187395
0
0.001821
0.220646
2,819
72
114
39.152778
0.814292
0.007449
0
0.225806
0
0
0.056618
0.024632
0
0
0
0
0
1
0.129032
false
0
0.096774
0
0.516129
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
d479c3df8d2aa103ecccff03e6d61223eca1b625
9,258
py
Python
sdk/python/pulumi_vsphere/storage_drs_vm_override.py
donovanmuller/pulumi-vsphere
83c18fb177b41690416ef7517c512349b3da9be6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_vsphere/storage_drs_vm_override.py
donovanmuller/pulumi-vsphere
83c18fb177b41690416ef7517c512349b3da9be6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_vsphere/storage_drs_vm_override.py
donovanmuller/pulumi-vsphere
83c18fb177b41690416ef7517c512349b3da9be6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from . import _...
50.590164
134
0.666775
1,113
9,258
5.315364
0.157233
0.063895
0.052062
0.042596
0.684922
0.659229
0.632353
0.610717
0.584009
0.584009
0
0.000147
0.263664
9,258
182
135
50.868132
0.867684
0.432059
0
0.191011
1
0
0.171905
0.044045
0
0
0
0
0
1
0.101124
false
0.011236
0.05618
0.022472
0.258427
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
d47b63fb6b7f353187c245646e8191a731783c28
968
py
Python
scripts/create_user.py
fasashen/its_on
672e52405baf725d3ea5dac159efd48764bcb539
[ "MIT" ]
10
2020-01-27T19:23:39.000Z
2021-09-21T19:33:29.000Z
scripts/create_user.py
fasashen/its_on
672e52405baf725d3ea5dac159efd48764bcb539
[ "MIT" ]
7
2020-05-15T10:50:01.000Z
2020-05-15T10:55:57.000Z
scripts/create_user.py
fasashen/its_on
672e52405baf725d3ea5dac159efd48764bcb539
[ "MIT" ]
14
2020-05-13T07:49:11.000Z
2022-02-10T11:06:19.000Z
import click import pathlib import sys import sqlalchemy as sa from dynaconf import settings from passlib.handlers.sha2_crypt import sha256_crypt BASE_DIR = pathlib.Path(__file__).parent.parent sys.path.append(str(BASE_DIR.absolute())) from auth.models import users # noqa @click.command() @click.option('--login', ...
28.470588
86
0.642562
116
968
5.146552
0.491379
0.092127
0.056951
0.077052
0
0
0
0
0
0
0
0.009447
0.234504
968
33
87
29.333333
0.796221
0.004132
0
0
0
0
0.106029
0
0
0
0
0
0
1
0.037037
false
0.148148
0.259259
0
0.296296
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
d47d63ed77a3fd5a1ede9976491515910eb0597c
4,808
py
Python
experiment/tensorflow_sampling.py
sandeep06011991/GraphSAGE
3075a6c93baf118b436928ebaa983468df2c30d2
[ "MIT" ]
null
null
null
experiment/tensorflow_sampling.py
sandeep06011991/GraphSAGE
3075a6c93baf118b436928ebaa983468df2c30d2
[ "MIT" ]
null
null
null
experiment/tensorflow_sampling.py
sandeep06011991/GraphSAGE
3075a6c93baf118b436928ebaa983468df2c30d2
[ "MIT" ]
null
null
null
import numpy as np import sys,os from os import path sys.path.insert(0, os.getcwd()) def use_constant_adj_matrix(dataset,adj_matrix,train_nodes,gpu_avail,timeout): from graphsage.neigh_samplers import UniformNeighborSampler import tensorflow as tf a,b = (adj_matrix.shape) adj_matrix_constant = tf.cons...
37.858268
150
0.626248
630
4,808
4.587302
0.185714
0.065744
0.044983
0.035294
0.717647
0.679239
0.679239
0.679239
0.679239
0.679239
0
0.021898
0.230657
4,808
126
151
38.15873
0.759394
0
0
0.495798
0
0
0.06761
0
0
0
0
0
0
1
0.02521
false
0
0.084034
0
0.109244
0.02521
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
d48958aa5ddccc2067c502b0eb385e7a89b55a8e
255
py
Python
sqlcop/checks/__init__.py
freshbooks/sqlcop
05746944f7837a1c85cf2fe878fd43d15d9aee9a
[ "BSD-3-Clause" ]
6
2015-10-22T17:08:28.000Z
2018-11-28T06:53:41.000Z
sqlcop/checks/__init__.py
freshbooks/sqlcop
05746944f7837a1c85cf2fe878fd43d15d9aee9a
[ "BSD-3-Clause" ]
6
2015-10-21T18:41:54.000Z
2019-09-11T22:55:54.000Z
sqlcop/checks/__init__.py
freshbooks/sqlcop
05746944f7837a1c85cf2fe878fd43d15d9aee9a
[ "BSD-3-Clause" ]
1
2018-08-18T14:29:27.000Z
2018-08-18T14:29:27.000Z
import sqlparse def _patch(): from sqlalchemy.dialects.mysql.base import RESERVED_WORDS for key in list(sqlparse.keywords.KEYWORDS.keys()): if key.lower() not in RESERVED_WORDS: del sqlparse.keywords.KEYWORDS[key] _patch()
21.25
61
0.701961
33
255
5.30303
0.636364
0.148571
0.274286
0
0
0
0
0
0
0
0
0
0.203922
255
11
62
23.181818
0.862069
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.428571
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
00fddcc66d64098bf6885306e2ab6738aa448efe
2,519
py
Python
TurboStock/app/models/User.py
CLacaile/TurboStock
abc3a8e6260cecaa1e9bb93c682e6cb1de8b628d
[ "MIT" ]
null
null
null
TurboStock/app/models/User.py
CLacaile/TurboStock
abc3a8e6260cecaa1e9bb93c682e6cb1de8b628d
[ "MIT" ]
3
2020-01-10T15:20:49.000Z
2021-03-18T22:34:33.000Z
TurboStock/app/models/User.py
CLacaile/TurboStock
abc3a8e6260cecaa1e9bb93c682e6cb1de8b628d
[ "MIT" ]
null
null
null
from django.db import models from app.models import * class User(models.Model): """ This class is the base class for any user of the app. It should not be instanciated at any moment. Use CEO, AisleManager or StoreManager instead. Attributes: id (int): The ID of the user that is incremented a...
32.714286
97
0.597856
321
2,519
4.429907
0.271028
0.046414
0.035162
0.027426
0.305907
0.273558
0.199015
0.199015
0.199015
0.199015
0
0.011855
0.33029
2,519
76
98
33.144737
0.831061
0.265185
0
0.255319
0
0
0.015547
0
0
0
0
0
0
1
0.085106
false
0.042553
0.042553
0.042553
0.553191
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
2e0025fcecdb6d94b90ef6ecdcf1c27746fa04bb
397
py
Python
pylinprog/eigen.py
poracle100/poracle-experiments
2582e7a0b0380bac810d49a75eb33f7a0626d6d8
[ "Apache-2.0" ]
null
null
null
pylinprog/eigen.py
poracle100/poracle-experiments
2582e7a0b0380bac810d49a75eb33f7a0626d6d8
[ "Apache-2.0" ]
null
null
null
pylinprog/eigen.py
poracle100/poracle-experiments
2582e7a0b0380bac810d49a75eb33f7a0626d6d8
[ "Apache-2.0" ]
2
2021-03-29T08:13:34.000Z
2021-04-23T08:51:18.000Z
#!/usr/bin/python3 from numpy import array from numpy.linalg import eig from scipy.sparse import diags import numpy as np import sys import ast # define matrix args = sys.argv maind = ast.literal_eval(args[3]) second = ast.literal_eval(args[4]) k = array([ second, maind, second ]) offset = [-1, 0, 1] A = diags(k, ...
18.904762
34
0.707809
66
397
4.227273
0.575758
0.064516
0.100358
0.129032
0
0
0
0
0
0
0
0.018182
0.168766
397
20
35
19.85
0.827273
0.078086
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.352941
0
0.352941
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2e10f06ce42b1dfa3e4e357a084f746ad8b7617b
1,515
py
Python
src/hdusd/usd_nodes/nodes/usd_to_blender.py
VascoPi/BlenderUSDHydraAddon
80ee96e5cdb40b72a99063e4926b8259b0446ab6
[ "Apache-2.0" ]
212
2020-12-08T18:54:00.000Z
2022-03-31T21:52:12.000Z
src/hdusd/usd_nodes/nodes/usd_to_blender.py
VascoPi/BlenderUSDHydraAddon
80ee96e5cdb40b72a99063e4926b8259b0446ab6
[ "Apache-2.0" ]
62
2020-12-09T21:26:27.000Z
2022-03-29T12:10:36.000Z
src/hdusd/usd_nodes/nodes/usd_to_blender.py
VascoPi/BlenderUSDHydraAddon
80ee96e5cdb40b72a99063e4926b8259b0446ab6
[ "Apache-2.0" ]
23
2020-12-09T09:39:17.000Z
2022-03-21T19:59:54.000Z
# ********************************************************************** # Copyright 2020 Advanced Micro Devices, Inc # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
35.232558
83
0.623762
182
1,515
5.142857
0.60989
0.064103
0.027778
0.034188
0
0
0
0
0
0
0
0.006552
0.194059
1,515
42
84
36.071429
0.760033
0.490429
0
0
0
0
0.228723
0
0
0
0
0.02381
0
1
0.105263
false
0
0.157895
0
0.631579
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
2e163e3b97d3fc0722a396eeff5cec9b7e8924da
2,161
py
Python
flowvision/datasets/__init__.py
Oneflow-Inc/vision
352e9240f63118112ea174bb2d0b502fa54be16f
[ "BSD-3-Clause" ]
40
2021-10-19T02:34:56.000Z
2022-03-25T07:49:44.000Z
flowvision/datasets/__init__.py
Oneflow-Inc/vision
352e9240f63118112ea174bb2d0b502fa54be16f
[ "BSD-3-Clause" ]
53
2021-10-22T02:24:44.000Z
2022-03-31T04:20:47.000Z
flowvision/datasets/__init__.py
Oneflow-Inc/vision
352e9240f63118112ea174bb2d0b502fa54be16f
[ "BSD-3-Clause" ]
11
2022-01-06T02:57:07.000Z
2022-03-23T15:19:51.000Z
from .mnist import MNIST, FashionMNIST from .caltech import Caltech101, Caltech256 from .celeba import CelebA from .cifar import CIFAR10, CIFAR100 from .cityscapes import Cityscapes from .clevr import CLEVRClassification from .country211 import Country211 from .coco import CocoCaptions, CocoDetection from .dtd import D...
23.236559
46
0.714021
224
2,161
6.848214
0.316964
0.022164
0
0
0
0
0
0
0
0
0
0.053961
0.193892
2,161
92
47
23.48913
0.826636
0
0
0
0
0
0.198982
0
0
0
0
0
0
1
0
false
0
0.43956
0
0.43956
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
2e27a24c3540e047741b39bae13d90cc47ccab86
923
py
Python
tethysext/atcore/models/file_database/file_collection.py
Aquaveo/tethysext-atcore
7a83ccea24fdbbe806f12154f938554dd6c8015f
[ "BSD-3-Clause" ]
3
2020-11-05T23:50:47.000Z
2021-02-26T21:43:29.000Z
tethysext/atcore/models/file_database/file_collection.py
Aquaveo/tethysext-atcore
7a83ccea24fdbbe806f12154f938554dd6c8015f
[ "BSD-3-Clause" ]
7
2020-10-29T16:53:49.000Z
2021-05-07T19:46:47.000Z
tethysext/atcore/models/file_database/file_collection.py
Aquaveo/tethysext-atcore
7a83ccea24fdbbe806f12154f938554dd6c8015f
[ "BSD-3-Clause" ]
null
null
null
""" ******************************************************************************** * Name: file_collection.py * Author: glarsen * Created On: October 30, 2020 * Copyright: (c) Aquaveo 2020 ******************************************************************************** """ import uuid from sqlalchemy import Column, ...
32.964286
88
0.629469
92
923
6.163043
0.586957
0.074074
0.067019
0.088183
0
0
0
0
0
0
0
0.013415
0.111593
923
27
89
34.185185
0.678049
0.330444
0
0
0
0
0.135537
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2e2a01fbe9789d2dfc1fe890b2153b21c9b74f48
141
py
Python
A-Byte-of-Python/10_6_func_key.py
anklav24/Python-Education
49ebcfabda1376390ee71e1fe321a51e33831f9e
[ "Apache-2.0" ]
null
null
null
A-Byte-of-Python/10_6_func_key.py
anklav24/Python-Education
49ebcfabda1376390ee71e1fe321a51e33831f9e
[ "Apache-2.0" ]
null
null
null
A-Byte-of-Python/10_6_func_key.py
anklav24/Python-Education
49ebcfabda1376390ee71e1fe321a51e33831f9e
[ "Apache-2.0" ]
null
null
null
def func(a, b=5, c=10): print('a equals {}, b equals {}, and c equals {}'.format(a, b, c)) func(3, 7) func(25, c=24) func(c=50, a=100)
17.625
70
0.546099
31
141
2.483871
0.548387
0.051948
0
0
0
0
0
0
0
0
0
0.123894
0.198582
141
7
71
20.142857
0.557522
0
0
0
0
0
0.29078
0
0
0
0
0
0
1
0.2
false
0
0
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2e2ce55918ef6e0ded4fbdd82b911a2f4c473cad
1,491
py
Python
fsmm.py
rcbensley/fsmm
57bc4f9e1450950978d81cb7219fc7e8470018ad
[ "Unlicense" ]
1
2021-11-07T07:04:49.000Z
2021-11-07T07:04:49.000Z
fsmm.py
rcbensley/fsmm
57bc4f9e1450950978d81cb7219fc7e8470018ad
[ "Unlicense" ]
null
null
null
fsmm.py
rcbensley/fsmm
57bc4f9e1450950978d81cb7219fc7e8470018ad
[ "Unlicense" ]
1
2021-11-07T07:08:42.000Z
2021-11-07T07:08:42.000Z
#!/usr/bin/env python3 import os import sys import urllib.request import shutil from requests import get def ez_download(d, r, u, f): h = {'Referer': r} d = os.path.join(d, f) if os.path.isfile(d): print("Skipping already existing file: {}".format(d)) return else: print("Downlo...
28.132075
86
0.57277
206
1,491
4.029126
0.436893
0.043373
0.024096
0
0
0
0
0
0
0
0
0.007526
0.287056
1,491
52
87
28.673077
0.773283
0
0
0.069767
0
0
0.176431
0.02248
0
0
0
0
0
0
null
null
0
0.116279
null
null
0.093023
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2e3a25d9d36594cfc0a6aa169353f03db573131e
22,855
py
Python
Linux/keyloggers/xkeyscan/xkeyscan.py
eaneatfruit/RTA
5b3f2d3a951949b24d38ff676fbd4aeb3b32d238
[ "MIT" ]
2
2019-11-30T06:20:18.000Z
2019-12-02T15:44:50.000Z
Linux/keyloggers/xkeyscan/xkeyscan.py
eaneatfruit/RTA
5b3f2d3a951949b24d38ff676fbd4aeb3b32d238
[ "MIT" ]
null
null
null
Linux/keyloggers/xkeyscan/xkeyscan.py
eaneatfruit/RTA
5b3f2d3a951949b24d38ff676fbd4aeb3b32d238
[ "MIT" ]
2
2016-11-25T20:00:17.000Z
2021-02-24T12:30:20.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Tom Porter (@porterhau5) import optparse import os import sys def main(): usage = ("Usage: python [-u] %prog [LOGFILE]" "\n\nA simple script for converting xinput output to legible " "keystokes." "\nCan process a log file directly when pas...
54.677033
127
0.495865
2,388
22,855
4.630653
0.237856
0.026044
0.004341
0.004341
0.41002
0.41002
0.292096
0.28658
0.251673
0.245795
0
0.088321
0.222227
22,855
417
128
54.808153
0.533753
0.253117
0
0.151007
0
0.097315
0.416578
0.004952
0.003356
0
0
0
0
0
null
null
0.003356
0.010067
null
null
0.003356
0
0
0
null
0
0
0
0
0
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
2e3d45867ecda46fb9e534dc6f92b962e084ed7d
2,208
py
Python
test/test_LensModel/test_Profiles/test_external_shear.py
guoxiaowhu/lenstronomy
dcdfc61ce5351ac94565228c822f1c94392c1ad6
[ "MIT" ]
1
2018-11-08T12:33:26.000Z
2018-11-08T12:33:26.000Z
test/test_LensModel/test_Profiles/test_external_shear.py
guoxiaowhu/lenstronomy
dcdfc61ce5351ac94565228c822f1c94392c1ad6
[ "MIT" ]
null
null
null
test/test_LensModel/test_Profiles/test_external_shear.py
guoxiaowhu/lenstronomy
dcdfc61ce5351ac94565228c822f1c94392c1ad6
[ "MIT" ]
null
null
null
__author__ = 'sibirrer' from lenstronomy.LensModel.Profiles.external_shear import ExternalShear import numpy as np import numpy.testing as npt import pytest class TestExternalShear(object): """ tests the Gaussian methods """ def setup(self): self.extShear = ExternalShear() e1, e2 = ...
33.454545
74
0.600091
346
2,208
3.650289
0.17052
0.077593
0.166271
0.221694
0.70863
0.665083
0.665083
0.664291
0.664291
0.457641
0
0.05486
0.240489
2,208
66
75
33.454545
0.698271
0.011775
0
0.26
0
0
0.009229
0
0
0
0
0
0.28
1
0.08
false
0
0.08
0
0.18
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
2e4533a1d6beae5e5903cef21fb22e9bd3123f58
867
py
Python
venv/lib/python3.5/site-packages/bears/go/GoTypeBear.py
prashant0598/CoffeeApp
4fa006aebf06e12ed34766450ddcfa548ee63307
[ "MIT" ]
null
null
null
venv/lib/python3.5/site-packages/bears/go/GoTypeBear.py
prashant0598/CoffeeApp
4fa006aebf06e12ed34766450ddcfa548ee63307
[ "MIT" ]
null
null
null
venv/lib/python3.5/site-packages/bears/go/GoTypeBear.py
prashant0598/CoffeeApp
4fa006aebf06e12ed34766450ddcfa548ee63307
[ "MIT" ]
null
null
null
from coalib.bearlib.abstractions.Linter import linter from dependency_management.requirements.GoRequirement import GoRequirement @linter(executable='gotype', use_stdout=False, use_stderr=True, output_format='regex', output_regex=r'.+:(?P<line>\d+):(?P<column>\d+): *(?P<message>.*)') cl...
32.111111
77
0.655133
100
867
5.58
0.76
0.089606
0
0
0
0
0
0
0
0
0
0.01
0.192618
867
26
78
33.346154
0.787143
0.098039
0
0
0
0
0.245407
0.11811
0
0
0
0
0
1
0.052632
false
0
0.105263
0.052632
0.631579
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
2e468fc36d2c1c77f6a1902125f897fa7b628579
669
py
Python
Tarea2/ejercicio1.py
EdgardoCS/PythonNeuro
5e4f277ae5e86e9682bf95059567d1c283db596f
[ "MIT" ]
null
null
null
Tarea2/ejercicio1.py
EdgardoCS/PythonNeuro
5e4f277ae5e86e9682bf95059567d1c283db596f
[ "MIT" ]
null
null
null
Tarea2/ejercicio1.py
EdgardoCS/PythonNeuro
5e4f277ae5e86e9682bf95059567d1c283db596f
[ "MIT" ]
null
null
null
import numpy as np ar1 = np.ones((8,8)) print(ar1) print("") ar8 = np.ones((5,15))*8 print(ar8) print("") num = np.random.normal(loc=15,scale=5,size=(6,6)) print(num) print("") D = np.random.randint(low= 0, high = 20, size=(7,9)) print(D) print("") print("max(D)", np.max(D)) print("min(D)", np.min(D)) print("max, ...
18.583333
75
0.617339
130
669
3.176923
0.315385
0.058111
0.043584
0.087167
0.11138
0.11138
0
0
0
0
0
0.063866
0.110613
669
35
76
19.114286
0.630252
0.038864
0
0.230769
0
0
0.118936
0
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0.769231
0
0
0
null
0
0
0
0
0
0
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
2e4fac10687aac542ab192d26b084e8d8bcc2536
1,839
py
Python
dataduct/pipeline/snowflake_database.py
EverFi/dataduct
9833ac57fece80509c68cb29d14895874caa9552
[ "Apache-2.0" ]
3
2017-12-29T11:26:15.000Z
2022-02-11T16:44:28.000Z
dataduct/pipeline/snowflake_database.py
EverFi/dataduct
9833ac57fece80509c68cb29d14895874caa9552
[ "Apache-2.0" ]
7
2017-09-21T23:25:24.000Z
2021-03-29T21:46:45.000Z
dataduct/pipeline/snowflake_database.py
EverFi/dataduct
9833ac57fece80509c68cb29d14895874caa9552
[ "Apache-2.0" ]
null
null
null
""" Pipeline object class for snowflake Jdbc database see http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-object-jdbcdatabase.html """ from ..config import Config from .pipeline_object import PipelineObject from ..utils.exceptions import ETLConfigError from IPython import embed config = Config() if n...
32.263158
156
0.60087
175
1,839
6.171429
0.4
0.055556
0.048148
0.072222
0.103704
0.103704
0.103704
0
0
0
0
0
0.299076
1,839
56
157
32.839286
0.837859
0.220772
0
0.064516
0
0
0.205071
0.048471
0.032258
0
0
0
0
1
0.032258
false
0.096774
0.129032
0
0.193548
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
2e59e15338af2c4d77552f8142f49da9d413aca9
486
py
Python
tests/test_basiccomposed.py
Frawless/option_parser
64ad95fe0840aafe3e74fddf3cb7687df86f7913
[ "Apache-2.0" ]
null
null
null
tests/test_basiccomposed.py
Frawless/option_parser
64ad95fe0840aafe3e74fddf3cb7687df86f7913
[ "Apache-2.0" ]
null
null
null
tests/test_basiccomposed.py
Frawless/option_parser
64ad95fe0840aafe3e74fddf3cb7687df86f7913
[ "Apache-2.0" ]
null
null
null
import pytest from optconstruct.types.composed import BasicComposed @pytest.mark.parametrize("data, expected", [ ({'msg-property': ''}, True), ({}, False), ]) def test_satisfied(data, expected): obj = BasicComposed('msg-property', '--msg-property') assert obj.satisfied(data) is expected def test_ge...
25.578947
57
0.679012
53
486
6.188679
0.509434
0.167683
0.115854
0.164634
0.231707
0.231707
0
0
0
0
0
0
0.150206
486
18
58
27
0.794189
0
0
0.153846
0
0
0.205761
0
0
0
0
0
0.076923
1
0.153846
false
0
0.153846
0
0.307692
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
2e5baeafe27ae7d57a3c0ff04a9e2443aa5cdc1c
2,017
py
Python
experiments/color-filter.py
team3130/Josephine
a66f5aa1116e195353ae8595376a2714cd5f30de
[ "Apache-2.0" ]
null
null
null
experiments/color-filter.py
team3130/Josephine
a66f5aa1116e195353ae8595376a2714cd5f30de
[ "Apache-2.0" ]
null
null
null
experiments/color-filter.py
team3130/Josephine
a66f5aa1116e195353ae8595376a2714cd5f30de
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import cv2 import numpy as np import sys if len(sys.argv) < 2: print "Usage: {} image-file.png".format(sys.argv[0]) sys.exit("No file name is given") # Read the image directly from the file into the frame object frame = cv2.imread(sys.argv[1]) hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) #...
36.017857
84
0.71294
293
2,017
4.866894
0.430034
0.089762
0.079944
0.077139
0.169004
0.151473
0.151473
0
0
0
0
0.04459
0.166088
2,017
55
85
36.672727
0.80321
0.278136
0
0
0
0
0.124427
0
0
0
0
0
0
0
null
null
0
0.096774
null
null
0.032258
0
0
0
null
0
0
0
0
0
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
2e5ca8aa45d11828262a64e0c8ad671195ce9819
294
py
Python
mtdb/eval/cost-perf-by-storages/go.py
hobinyoon/mutants-cassandra-2.2.3
a26821726dcedbb5a96a02e649d552e06815ea5f
[ "Apache-2.0" ]
null
null
null
mtdb/eval/cost-perf-by-storages/go.py
hobinyoon/mutants-cassandra-2.2.3
a26821726dcedbb5a96a02e649d552e06815ea5f
[ "Apache-2.0" ]
2
2016-07-06T14:38:40.000Z
2016-07-07T16:41:20.000Z
mtdb/eval/cost-perf-by-storages/go.py
hobinyoon/mutants-cassandra-2.2.3
a26821726dcedbb5a96a02e649d552e06815ea5f
[ "Apache-2.0" ]
1
2015-11-07T03:07:04.000Z
2015-11-07T03:07:04.000Z
#!/usr/bin/env python # changed to go.py from plot.py to avoid the file name conflict with Plot.py in # the MacOS file system import sys import Conf import ExpData import Plot def main(argv): Conf.Init() ExpData.Load() Plot.Plot() if __name__ == "__main__": sys.exit(main(sys.argv))
14
79
0.714286
50
294
4.04
0.6
0.059406
0
0
0
0
0
0
0
0
0
0
0.173469
294
20
80
14.7
0.831276
0.408163
0
0
0
0
0.046784
0
0
0
0
0
0
1
0.1
false
0
0.4
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
2e5e483a87f96e1386be98738863eac4785e47a3
2,040
py
Python
mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/gitlab/v4/objects/variables.py
giuseppe-zappia/sagemaker-custom-project-templates
a160cf250dcabf8a9a14682e28d0a39df18e3a5c
[ "MIT-0" ]
22
2021-08-24T13:43:55.000Z
2022-03-25T06:18:19.000Z
mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/gitlab/v4/objects/variables.py
giuseppe-zappia/sagemaker-custom-project-templates
a160cf250dcabf8a9a14682e28d0a39df18e3a5c
[ "MIT-0" ]
3
2021-09-09T00:40:56.000Z
2022-01-26T10:53:30.000Z
mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/gitlab/v4/objects/variables.py
giuseppe-zappia/sagemaker-custom-project-templates
a160cf250dcabf8a9a14682e28d0a39df18e3a5c
[ "MIT-0" ]
15
2021-08-19T23:53:24.000Z
2022-03-28T22:26:04.000Z
""" GitLab API: https://docs.gitlab.com/ee/api/instance_level_ci_variables.html https://docs.gitlab.com/ee/api/project_level_variables.html https://docs.gitlab.com/ee/api/group_level_variables.html """ from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CRUDMixin, ObjectDeleteMix...
30.447761
84
0.696078
197
2,040
6.923858
0.269036
0.092375
0.127566
0.140762
0.585777
0.559384
0.542522
0.432551
0.379765
0.379765
0
0
0.163725
2,040
66
85
30.909091
0.799531
0.094608
0
0.361702
0
0
0.248505
0.046765
0
0
0
0
0
1
0
false
0
0.042553
0
0.531915
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
2e6055cad8bc891142ed7c587b956d63f9004c55
1,434
py
Python
gist-flask.py
mjhea0/github-repos
84e15fef26cb30068664f882dd2991acace5c2ea
[ "MIT" ]
null
null
null
gist-flask.py
mjhea0/github-repos
84e15fef26cb30068664f882dd2991acace5c2ea
[ "MIT" ]
null
null
null
gist-flask.py
mjhea0/github-repos
84e15fef26cb30068664f882dd2991acace5c2ea
[ "MIT" ]
null
null
null
import os import requests from requests.auth import HTTPBasicAuth import simplejson from flask import Flask, render_template # config app = Flask(__name__) app.config.from_object('config') # helper functions def get_repos(username): """ Given a username, this function returns all repos associated with ...
22.061538
72
0.604603
192
1,434
4.416667
0.484375
0.028302
0.014151
0.021226
0.037736
0.037736
0.037736
0.037736
0
0
0
0.015296
0.270572
1,434
64
73
22.40625
0.795411
0.135286
0
0.057143
0
0
0.125247
0
0
0
0
0
0
0
null
null
0.028571
0.142857
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
2e638e831aef5a2ba8863a06e14285a073d723d2
388
py
Python
Strings/1278.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
Strings/1278.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
Strings/1278.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
N = int(input()) while True: S = [[] for k in range(N)] S_len = [0 for k in range(N)] bigger_len = 0 for k in range(N): S[k] = input().split() S_len[k] = sum([len(w) for w in S[k]]) + len(S[k]) - 1 if S_len[k] > bigger_len: bigger_len = S_len[k] for k in range(N): print(' ' * (bigger_len - S_len[k])...
16.869565
56
0.533505
79
388
2.506329
0.265823
0.10101
0.121212
0.222222
0.434343
0.232323
0.161616
0
0
0
0
0.013699
0.247423
388
22
57
17.636364
0.664384
0
0
0.25
0
0
0.005155
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
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
2e63dbbed608679991ec835caa1b2c0150c8acc3
389
py
Python
documentation/generate.py
adamrehn/language-toolbox
f86c39784b2a6952719afdd7c3769a6a6b5f2630
[ "MIT" ]
2
2018-12-18T07:53:06.000Z
2020-02-28T11:13:21.000Z
documentation/generate.py
adamrehn/language-toolbox
f86c39784b2a6952719afdd7c3769a6a6b5f2630
[ "MIT" ]
null
null
null
documentation/generate.py
adamrehn/language-toolbox
f86c39784b2a6952719afdd7c3769a6a6b5f2630
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from docgen import DocumentationGenerator import os, subprocess, tempfile # The output directory and the relative path to the directory containing our .proto files docsDir = os.path.dirname(os.path.abspath(__file__)) protoDir = os.path.join('..', 'server', 'proto') # Generate our API documentat...
32.416667
89
0.77892
50
389
5.98
0.66
0.060201
0
0
0
0
0
0
0
0
0
0.002907
0.115681
389
11
90
35.363636
0.866279
0.359897
0
0
0
0
0.052846
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
2e6891ad73cf12e62a8cfecc76c61965eb26e00b
354
py
Python
Day9/Product_of_All_Elements_in_Matrix.py
tushartrip1010/100_days_code_py
ee74b429e98cdd8bdf8661cf987da67c9fee5a3e
[ "Apache-2.0" ]
null
null
null
Day9/Product_of_All_Elements_in_Matrix.py
tushartrip1010/100_days_code_py
ee74b429e98cdd8bdf8661cf987da67c9fee5a3e
[ "Apache-2.0" ]
null
null
null
Day9/Product_of_All_Elements_in_Matrix.py
tushartrip1010/100_days_code_py
ee74b429e98cdd8bdf8661cf987da67c9fee5a3e
[ "Apache-2.0" ]
null
null
null
def Final_Product(Check_list): Prod = 1 for ele in Check_list: Prod *= ele return Prod def Product_Matrix(Test_list): Semi_Result = Final_Product( [element for ele in Test_list for element in ele]) return Semi_Result Test_list = [[1, 4, 5], [7, 3], [4], [46, 7, 3]] ...
22.125
59
0.618644
54
354
3.833333
0.407407
0.154589
0.125604
0.202899
0
0
0
0
0
0
0
0.042802
0.274011
354
15
60
23.6
0.762646
0
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.363636
0.090909
0
0
0
null
0
0
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
2e6b59e4eac1b52f1a3a5adcbcf9fda7a14b6960
1,381
py
Python
MDS/my_mds.py
eqperes/Altegrad1
23ec8821458b8aa61d2701a8898ca73e15731af8
[ "MIT" ]
null
null
null
MDS/my_mds.py
eqperes/Altegrad1
23ec8821458b8aa61d2701a8898ca73e15731af8
[ "MIT" ]
null
null
null
MDS/my_mds.py
eqperes/Altegrad1
23ec8821458b8aa61d2701a8898ca73e15731af8
[ "MIT" ]
null
null
null
from numpy import * import matplotlib.pyplot as plt # Load the distance matrix D = loadtxt('distanceMatrix.csv', delimiter=',') cities = ['Atl','Chi','Den','Hou','LA','Mia','NYC','SF','Sea','WDC'] nCities = D.shape[0] # Get the size of the matrix k = 2 # e.g. we want to keep 2 dimensions #================= ADD YOU...
23.016667
83
0.592324
222
1,381
3.684685
0.563063
0.018337
0.017115
0
0
0
0
0
0
0
0
0.019031
0.162925
1,381
59
84
23.40678
0.688581
0.494569
0
0
0
0
0.115214
0
0
0
0
0.016949
0
1
0
false
0
0.083333
0
0.083333
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
2e7f015ccdee213121382bf7c0a31935b9fe6f4c
2,425
py
Python
WEEKS/wk17/d4/copy_of_arraysandstrings.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/wk17/d4/copy_of_arraysandstrings.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/wk17/d4/copy_of_arraysandstrings.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Copy of ArraysAndStrings.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1VTh-TFOWmq3uxbCvBrDfUnb6Zj5IGlG_ # Arrays and Strings 16Bits = 2Bytes 8Bit, 16Bit, 32Bit, 64Bit, 128Bit ``` [123, "hello" ] A = ["Hello", 232, 1...
19.877049
89
0.599175
428
2,425
3.383178
0.404206
0.012431
0.010359
0.008287
0.099448
0.092541
0.092541
0.062155
0
0
0
0.149502
0.255258
2,425
121
90
20.041322
0.65227
0.43134
0
0
1
0
0
0
0
0
0
0.008264
0
1
0.071429
false
0
0
0
0.214286
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
2e7fb705c419404d12b3a6c58528c64caff5cf47
10,881
py
Python
phgeograpy/data/regions/car.py
drfb/phgeograpy
adb60cdd7ecbdce18436b5506d1b80962b52f1fd
[ "MIT" ]
13
2018-03-05T11:54:45.000Z
2020-10-12T06:41:40.000Z
phgeograpy/data/regions/car.py
drfb/phgeograpy
adb60cdd7ecbdce18436b5506d1b80962b52f1fd
[ "MIT" ]
1
2021-08-04T08:22:00.000Z
2021-08-04T08:22:00.000Z
phgeograpy/data/regions/car.py
drfb/phgeograpy
adb60cdd7ecbdce18436b5506d1b80962b52f1fd
[ "MIT" ]
null
null
null
data = { 'slug': 'car', 'name': 'CAR', 'description': 'Cordillera Administrative Region', 'provinces': { 'abra': { 'slug': 'abra', 'name': 'Abra', 'municipalities': { 'bangued': { 'slug': 'bangued', 'name...
30.478992
54
0.241154
467
10,881
5.584582
0.220557
0.016871
0
0
0
0
0
0
0
0
0
0
0.614006
10,881
356
55
30.564607
0.620952
0
0
0.02809
0
0
0.240235
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
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
2e836d282e4cc9952d0de262c163a13b41dc6dad
641
py
Python
vimiv/__init__.py
karlch/vimiv
acbb83e003805e5304131be1f73d7f66528606d6
[ "MIT" ]
268
2015-11-15T22:41:27.000Z
2022-02-07T21:54:52.000Z
vimiv/__init__.py
karlch/vimiv
acbb83e003805e5304131be1f73d7f66528606d6
[ "MIT" ]
92
2015-12-12T00:35:54.000Z
2021-04-26T16:16:30.000Z
vimiv/__init__.py
karlch/vimiv
acbb83e003805e5304131be1f73d7f66528606d6
[ "MIT" ]
15
2015-12-11T19:42:15.000Z
2020-09-24T13:00:36.000Z
# vim: ft=python fileencoding=utf-8 sw=4 et sts=4 """vimiv init: tests some imports and imports main.""" import sys __license__ = "MIT" __version__ = "0.9.2.dev0" __author__ = __maintainer__ = "Christian Karl" __email__ = "karlch@protonmail.com" try: from gi import require_version require_version("Gtk", "3.0...
25.64
73
0.683307
87
641
4.747126
0.758621
0.101695
0
0
0
0
0
0
0
0
0
0.027344
0.201248
641
24
74
26.708333
0.779297
0.176287
0
0.117647
0
0
0.18618
0.040307
0
0
0
0
0
1
0
false
0.058824
0.294118
0
0.294118
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
2e889e9c05494a2fc33ffc46e38739bb9eae9bbb
2,899
py
Python
DeepJanus-MNIST/individual.py
SeanAchtatou/deepjanusexperiments
c14585b7aef4c89e03a30e69b5d8bbac896d6a6a
[ "MIT" ]
7
2020-10-12T10:46:30.000Z
2021-06-23T10:42:30.000Z
DeepJanus-MNIST/individual.py
SeanAchtatou/deepjanusexperiments
c14585b7aef4c89e03a30e69b5d8bbac896d6a6a
[ "MIT" ]
null
null
null
DeepJanus-MNIST/individual.py
SeanAchtatou/deepjanusexperiments
c14585b7aef4c89e03a30e69b5d8bbac896d6a6a
[ "MIT" ]
1
2021-10-06T10:10:56.000Z
2021-10-06T10:10:56.000Z
import json from os import makedirs from os.path import join, exists from numpy import mean import evaluator from folder import Folder from config import EXPLABEL class Individual: # Global counter of all the individuals (it is increased each time an individual is created or mutated). COUNT = 0 SEEDS = ...
31.172043
108
0.563298
338
2,899
4.742604
0.325444
0.049906
0.059264
0.026201
0.190892
0.124766
0.124766
0.124766
0.124766
0.124766
0
0.022129
0.345291
2,899
92
109
31.51087
0.822445
0.083132
0
0.188406
0
0
0.013575
0
0
0
0
0.01087
0
1
0.101449
false
0
0.101449
0.014493
0.289855
0.028986
0
0
0
null
0
0
0
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
2e8af0f6b9d04e5779fbedf29316173be1e27ec7
1,153
py
Python
tests/test_models/test_necks/test_densecl_neck.py
mitming/mmselfsup
5b5cb474776291cfcb9a1140afd11b696e11fcab
[ "Apache-2.0" ]
355
2021-12-16T04:32:49.000Z
2022-03-31T22:15:23.000Z
tests/test_models/test_necks/test_densecl_neck.py
mitming/mmselfsup
5b5cb474776291cfcb9a1140afd11b696e11fcab
[ "Apache-2.0" ]
89
2021-12-16T05:15:42.000Z
2022-03-31T10:57:39.000Z
tests/test_models/test_necks/test_densecl_neck.py
mitming/mmselfsup
5b5cb474776291cfcb9a1140afd11b696e11fcab
[ "Apache-2.0" ]
74
2021-12-16T04:40:02.000Z
2022-03-31T08:40:32.000Z
# Copyright (c) OpenMMLab. All rights reserved. import torch import torch.nn as nn from mmselfsup.models.necks import DenseCLNeck def test_densecl_neck(): neck = DenseCLNeck(16, 32, 16) assert isinstance(neck.mlp, nn.Sequential) assert isinstance(neck.mlp2, nn.Sequential) assert neck.mlp[0].in_featur...
34.939394
56
0.664354
189
1,153
3.931217
0.253968
0.053836
0.10498
0.129206
0.495289
0.438762
0.438762
0.379542
0.379542
0.293405
0
0.085562
0.189072
1,153
32
57
36.03125
0.709091
0.098005
0
0.333333
0
0
0
0
0
0
0
0
0.583333
1
0.041667
false
0
0.125
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
1
0
0
0
0
0
0
0
0
0
1
5ceb7cf42a1a6da1abdfad7b3ba34dd4887a7283
377
py
Python
src/api/v1/api_v1.py
hcamacho4200/dev_opts_training
6ce91cbeb30af7eae29c084f6180d53f64f5e9b0
[ "Apache-2.0" ]
1
2021-10-03T22:23:06.000Z
2021-10-03T22:23:06.000Z
src/api/v1/api_v1.py
hcamacho4200/dev_opts_training
6ce91cbeb30af7eae29c084f6180d53f64f5e9b0
[ "Apache-2.0" ]
null
null
null
src/api/v1/api_v1.py
hcamacho4200/dev_opts_training
6ce91cbeb30af7eae29c084f6180d53f64f5e9b0
[ "Apache-2.0" ]
1
2021-12-11T19:24:59.000Z
2021-12-11T19:24:59.000Z
from flask import Blueprint from flask_restx import Api from .ep_hello import api as ns_ep_hello from .ep_hfc import api as ns_ep_hfc blueprint = Blueprint('Dev Ops Training', __name__, url_prefix='/api/v1') api = Api(blueprint, title='Dev Ops Training Test3', version='V1.0', description='Dev Ops Training V1', ) api...
31.416667
105
0.782493
65
377
4.261538
0.384615
0.057762
0.151625
0.093863
0.245487
0
0
0
0
0
0
0.01506
0.119363
377
11
106
34.272727
0.819277
0
0
0
0
0
0.180371
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.375
0
0
0
null
0
0
0
0
0
0
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
5cec81026eddd00ff1932770d6046f88d0c24707
785
py
Python
test/tests/getattr_guarding.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/tests/getattr_guarding.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/getattr_guarding.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
# Test some weird getattr/hasattr guarding scenarios # Make sure that we guard correctly when a __getattr__ is involved: def f(o): print hasattr(o, "a") print getattr(o, "a", None) class C(object): def __getattr__(self, key): print "getattr", key raise AttributeError(key) for i in xrange...
21.805556
99
0.612739
126
785
3.753968
0.47619
0.033827
0.05074
0.059197
0.135307
0.135307
0.135307
0
0
0
0
0.028021
0.272611
785
35
100
22.428571
0.80035
0.341401
0
0.25
0
0
0.039063
0
0
0
0
0
0
0
null
null
0.041667
0
null
null
0.25
0
0
0
null
0
0
0
0
0
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
5cf1e75e0342b21bdf6c1d530ddddbed22781932
2,759
py
Python
scripts/test/plugin_runner/python_version/test_determine_python_version.py
JetBrains-Research/Lupa
c105487621564c60cae17395bf32eb40868ceb89
[ "Apache-2.0" ]
16
2022-01-11T00:32:20.000Z
2022-03-25T21:40:52.000Z
scripts/test/plugin_runner/python_version/test_determine_python_version.py
JetBrains-Research/Lupa
c105487621564c60cae17395bf32eb40868ceb89
[ "Apache-2.0" ]
5
2022-01-11T09:36:52.000Z
2022-03-14T10:24:31.000Z
scripts/test/plugin_runner/python_version/test_determine_python_version.py
JetBrains-Research/Lupa
c105487621564c60cae17395bf32eb40868ceb89
[ "Apache-2.0" ]
2
2022-03-07T20:08:56.000Z
2022-03-25T21:40:56.000Z
from pathlib import Path from test.plugin_runner.python_version import SETUP_FILES_TEST_DATA_FOLDER from typing import Optional, Set from plugin_runner.python_version.determine_python_version import ( _try_to_determine_version_using_classifiers, _try_to_find_version_in_setup_file, ) from plugin_runner.python_v...
35.831169
119
0.680319
311
2,759
5.614148
0.186495
0.072165
0.18614
0.119129
0.67583
0.597938
0.448454
0.24055
0.20504
0.14433
0
0.021169
0.212396
2,759
76
120
36.302632
0.782329
0
0
0.238806
0
0
0.309532
0.0888
0
0
0
0
0.029851
1
0.029851
false
0
0.089552
0
0.119403
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
5cf7ac9653f5f78c04fb2130d125593e45f375a8
868
py
Python
src/training/sampling/positive_sampling.py
CorentinBrtx/car-detection-opencv
a8c31b406d627e25ff938a7d85394c8c696a08ff
[ "MIT" ]
null
null
null
src/training/sampling/positive_sampling.py
CorentinBrtx/car-detection-opencv
a8c31b406d627e25ff938a7d85394c8c696a08ff
[ "MIT" ]
null
null
null
src/training/sampling/positive_sampling.py
CorentinBrtx/car-detection-opencv
a8c31b406d627e25ff938a7d85394c8c696a08ff
[ "MIT" ]
null
null
null
from typing import List, Tuple import numpy as np def generate_positive_samples( img: np.ndarray, bounding_boxes: List[List[int]], min_size: Tuple[int, int] ) -> List[np.ndarray]: """ Extract positive samples from a given image. Parameters ---------- img : np.ndarray The image to ext...
25.529412
88
0.617512
120
868
4.383333
0.416667
0.142586
0.045627
0.079848
0.159696
0
0
0
0
0
0
0.00318
0.275346
868
33
89
26.30303
0.833068
0.476959
0
0
1
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cf00722a8e9fa0f10b0f744a163a0e8b98d09aa4
1,502
py
Python
code/maximum_quadrilaterals/sol_538.py
bhavinjawade/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
2
2020-07-16T08:16:32.000Z
2020-10-01T07:16:48.000Z
code/maximum_quadrilaterals/sol_538.py
Psingh12354/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
null
null
null
code/maximum_quadrilaterals/sol_538.py
Psingh12354/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
1
2021-05-07T18:06:08.000Z
2021-05-07T18:06:08.000Z
# -*- coding: utf-8 -*- ''' File name: code\maximum_quadrilaterals\sol_538.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x ''' # Solution to Project Euler Problem #538 :: Maximum quadrilaterals # # For more information see: # https://projecteuler.net/problem=538 # Problem Stat...
38.512821
381
0.661119
280
1,502
3.553571
0.510714
0.015075
0.01608
0.024121
0.060302
0
0
0
0
0
0
0.113656
0.215047
1,502
38
382
39.526316
0.726887
0.20972
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
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
cf021ab59851b15086f1a403e1d2bbaba3af2afe
249
py
Python
applications/Codetrain/models/db.py
codedpills/codetrain_web2py_intro
94ef21322b124c9fe45350df0045b70bcd434cae
[ "BSD-3-Clause" ]
null
null
null
applications/Codetrain/models/db.py
codedpills/codetrain_web2py_intro
94ef21322b124c9fe45350df0045b70bcd434cae
[ "BSD-3-Clause" ]
null
null
null
applications/Codetrain/models/db.py
codedpills/codetrain_web2py_intro
94ef21322b124c9fe45350df0045b70bcd434cae
[ "BSD-3-Clause" ]
null
null
null
from gluon.contrib.appconfig import AppConfig configuration = AppConfig(reload=True) db = DAL("sqlite://storage.sqlite") db.define_table("users", Field('db_firstname'), Field('db_lastname'), Field('db_email'), Field('db_password'))
24.9
45
0.710843
31
249
5.548387
0.645161
0.162791
0
0
0
0
0
0
0
0
0
0
0.128514
249
10
46
24.9
0.792627
0
0
0
0
0
0.28
0.092
0
0
0
0
0
1
0
false
0.125
0.125
0
0.125
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
cf04d107319cbf5e70f0486a29a7145f7d71b476
5,131
py
Python
api/models.py
XOR0831/ptown-api
f81c04c74314effb2b6a8dc25a324e833c92da26
[ "MIT" ]
null
null
null
api/models.py
XOR0831/ptown-api
f81c04c74314effb2b6a8dc25a324e833c92da26
[ "MIT" ]
null
null
null
api/models.py
XOR0831/ptown-api
f81c04c74314effb2b6a8dc25a324e833c92da26
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.core.exceptions import ValidationError from django.db import models from gdstorage.storage import GoogleDriveStorage, GoogleDrivePermissionType, GoogleDrivePermissionRole, GoogleDriveFilePermission import os gd_storage = GoogleDriveStorage() permission = GoogleD...
36.390071
136
0.717209
608
5,131
5.863487
0.264803
0.067321
0.080785
0.107714
0.404488
0.351192
0.323703
0.295652
0.260309
0.235905
0
0.009588
0.166634
5,131
140
137
36.65
0.824135
0.009745
0
0.283019
0
0
0.081331
0.016936
0
0
0
0
0
1
0.09434
false
0
0.04717
0.084906
0.792453
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
cf07728c93741d8680252985478c34edbb825788
222
py
Python
app/demo/urls.py
MattSegal/django-htmx-intro
9b21c9155b25e0119797bc1ea743e9f022194e6a
[ "WTFPL" ]
9
2021-07-07T17:51:32.000Z
2022-03-29T23:11:11.000Z
app/demo/urls.py
MattSegal/django-htmx-intro
9b21c9155b25e0119797bc1ea743e9f022194e6a
[ "WTFPL" ]
null
null
null
app/demo/urls.py
MattSegal/django-htmx-intro
9b21c9155b25e0119797bc1ea743e9f022194e6a
[ "WTFPL" ]
2
2021-08-29T18:19:02.000Z
2021-11-23T19:39:34.000Z
from django.contrib import admin from django.urls import path from django.conf.urls import include from web import urls as web_urls urlpatterns = [ path("admin/", admin.site.urls), path("", include(web_urls)), ]
20.181818
36
0.72973
33
222
4.848485
0.393939
0.1875
0
0
0
0
0
0
0
0
0
0
0.162162
222
10
37
22.2
0.860215
0
0
0
0
0
0.027027
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
cf101e7f550f56d96047e904a027e58b43016493
646
py
Python
api_yamdb/api/filters.py
ilyarogozin/yamdb_api
050185b1ae4bc45e19a64de968f6c432b2e8d925
[ "MIT" ]
null
null
null
api_yamdb/api/filters.py
ilyarogozin/yamdb_api
050185b1ae4bc45e19a64de968f6c432b2e8d925
[ "MIT" ]
null
null
null
api_yamdb/api/filters.py
ilyarogozin/yamdb_api
050185b1ae4bc45e19a64de968f6c432b2e8d925
[ "MIT" ]
null
null
null
from django_filters import rest_framework as fl from django_filters.filters import CharFilter, NumberFilter from reviews.models import Title class TitleFilter(fl.FilterSet): category = CharFilter(field_name='category__slug', lookup_expr='contains') genre = CharFilter(field_name='genr...
34
59
0.626935
67
646
5.820896
0.432836
0.092308
0.146154
0.112821
0
0
0
0
0
0
0
0
0.275542
646
18
60
35.888889
0.833333
0
0
0.2
0
0
0.128483
0
0
0
0
0
0
1
0
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
cf28a28a1ede6117056e7da3e3abac2373e03874
617
py
Python
md/tests/test_models.py
OpenDataPolicingNC/Traffic-Stops
74e0d16ad2ac32addca6f04d34c2ddf36d023990
[ "MIT" ]
25
2015-09-12T23:10:52.000Z
2021-03-24T08:39:46.000Z
md/tests/test_models.py
OpenDataPolicingNC/Traffic-Stops
74e0d16ad2ac32addca6f04d34c2ddf36d023990
[ "MIT" ]
159
2015-07-01T03:57:23.000Z
2021-04-17T21:09:19.000Z
md/tests/test_models.py
copelco/NC-Traffic-Stops
74e0d16ad2ac32addca6f04d34c2ddf36d023990
[ "MIT" ]
8
2015-10-02T16:56:40.000Z
2020-10-18T01:16:29.000Z
from django.test import TestCase from . import factories class TestAgencyModel(TestCase): multi_db = True def test_str(self): """Smoke test for string representation.""" agency = factories.AgencyFactory(name="hello") self.assertEqual(str(agency), "hello") class TestStopModel(TestCa...
28.045455
97
0.672609
82
617
5
0.439024
0.039024
0.073171
0.092683
0.404878
0.404878
0.404878
0.404878
0.317073
0.317073
0
0.072874
0.199352
617
21
98
29.380952
0.757085
0.121556
0
0.333333
0
0
0.171375
0
0
0
0
0
0.166667
1
0.166667
false
0
0.166667
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
cf2acd8237718e9eaa8d94b8ff05fda3b502aa4a
1,024
py
Python
server/sandbox/sandbox/basket/models.py
MaximBrewer/sebe
4b94b2c782d018b6fa3a130fa30173386cc9bfdd
[ "0BSD" ]
8
2016-06-18T01:40:26.000Z
2021-02-08T04:08:58.000Z
server/sandbox/sandbox/basket/models.py
MaximBrewer/sebe
4b94b2c782d018b6fa3a130fa30173386cc9bfdd
[ "0BSD" ]
16
2018-05-04T13:00:07.000Z
2021-05-27T14:54:09.000Z
server/sandbox/sandbox/basket/models.py
MaximBrewer/sebe
4b94b2c782d018b6fa3a130fa30173386cc9bfdd
[ "0BSD" ]
3
2016-12-19T11:30:47.000Z
2019-10-27T20:30:15.000Z
from decimal import Decimal from oscar.apps.basket.abstract_models import AbstractBasket, AbstractLine from oscarbluelight.mixins import BluelightBasketMixin, BluelightBasketLineMixin from oscarbluelight.offer.groups import ( register_system_offer_group, pre_offer_group_apply_receiver, ) class Basket(Blueligh...
29.257143
80
0.779297
133
1,024
5.804511
0.511278
0.090674
0.067358
0.049223
0.126943
0
0
0
0
0
0
0.003417
0.142578
1,024
34
81
30.117647
0.875854
0.183594
0
0.105263
0
0
0.06846
0.026895
0
0
0
0
0
1
0.052632
false
0.105263
0.263158
0
0.421053
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
cf3b1bc3799a766a4770ef4a46236076a76945b2
1,922
py
Python
codigo/funciones.py
jgalgarra/introprogpython
7a6d1d31ce47b086126bd6f7af9ee81e862f1668
[ "MIT" ]
13
2018-01-02T09:23:01.000Z
2020-10-16T12:56:24.000Z
codigo/funciones.py
jgalgarra/pythonDAMP
19b3d2f6cf14deed8936936efd65ca621d9c38ec
[ "MIT" ]
null
null
null
codigo/funciones.py
jgalgarra/pythonDAMP
19b3d2f6cf14deed8936936efd65ca621d9c38ec
[ "MIT" ]
4
2018-01-20T11:17:32.000Z
2020-04-13T21:26:22.000Z
# Archivo: funciones.py # Autor: Javier Garcia Algarra # Fecha: 27 de diciembre de 2017 # Descripción: Manejo simple de funciones # En programación no es buena práctica repetir código # Volvamos al ejemplo del bucle for. Queremos calcular la suma de los 10 primeros enteros print("Vamos a calcular la suma de los núm...
37.686275
146
0.734131
321
1,922
4.336449
0.345794
0.03592
0.051724
0.071121
0.448276
0.405172
0.251437
0.214799
0.214799
0.214799
0
0.026025
0.200312
1,922
51
147
37.686275
0.878334
0.4641
0
0.384615
0
0
0.370553
0
0
0
0
0.019608
0
1
0.038462
false
0
0
0
0.038462
0.346154
0
0
0
null
0
0
0
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
cf42b3887e229cc8e566bf5e0347f236d84ee20e
1,518
py
Python
observations/r/cement.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
observations/r/cement.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
observations/r/cement.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def cement(path): """Heat Evolved by Setting Cements Experiment on the...
27.6
73
0.679183
214
1,518
4.691589
0.579439
0.043825
0.047809
0.045817
0.043825
0
0
0
0
0
0
0.023136
0.231225
1,518
54
74
28.111111
0.836332
0.460474
0
0
0
0
0.09126
0
0
0
0
0
0
1
0.045455
false
0
0.409091
0
0.5
0.045455
0
0
0
null
0
0
0
0
0
0
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
cf4379e51a80a3854348b980cd72acb69aacf85d
3,189
py
Python
logger/mplog.py
zhongyu211/pytools
b16ede27525bac2c4235ad5d253ae3510a146fd0
[ "Apache-2.0" ]
null
null
null
logger/mplog.py
zhongyu211/pytools
b16ede27525bac2c4235ad5d253ae3510a146fd0
[ "Apache-2.0" ]
null
null
null
logger/mplog.py
zhongyu211/pytools
b16ede27525bac2c4235ad5d253ae3510a146fd0
[ "Apache-2.0" ]
null
null
null
__author__ = "allenz" import os import sys import logging import datetime #need to pip install mpfhandler from mpfhandler import MultProcTimedRotatingFileHandler from logging.handlers import TimedRotatingFileHandler ''' CRITICAL 50,ERROR 40,WARNING 30,INFO 20,DEBUG 10,NOTSET 0 ''' import os import sys from conf.setting...
29.256881
79
0.635309
388
3,189
5.139175
0.252577
0.077232
0.045135
0.037613
0.218656
0.218656
0.099799
0.099799
0.099799
0.080241
0
0.005348
0.237692
3,189
109
80
29.256881
0.814891
0.051113
0
0.074074
0
0
0.05952
0.019276
0
0
0
0.009174
0
0
null
null
0.024691
0.111111
null
null
0.012346
0
0
0
null
0
0
0
0
0
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
cf43e62adb27bd0d9295c76b08b983d49372d930
3,317
py
Python
backend/smoketest/views.py
dwightgunning/django-ng-boilerplate
226a661534f6c02be7f79ea771ffde518bbcf7f7
[ "MIT" ]
2
2018-05-06T00:42:10.000Z
2021-07-07T03:48:56.000Z
backend/smoketest/views.py
dwightgunning/django-ng-boilerplate
226a661534f6c02be7f79ea771ffde518bbcf7f7
[ "MIT" ]
8
2021-04-08T20:17:11.000Z
2022-03-02T09:55:01.000Z
backend/smoketest/views.py
dwightgunning/django-ng-boilerplate
226a661534f6c02be7f79ea771ffde518bbcf7f7
[ "MIT" ]
2
2021-09-06T11:55:40.000Z
2021-12-23T04:03:44.000Z
import logging from django.contrib import messages from django.core.exceptions import ImproperlyConfigured, ValidationError from django.core.validators import validate_email from django.shortcuts import render from django.views.generic import TemplateView from smoketest.interfaces import capture_exception_with_sentry...
36.054348
93
0.600543
345
3,317
5.597101
0.278261
0.045572
0.074573
0.103573
0.421025
0.421025
0.360953
0.320041
0.296737
0.296737
0
0
0.320169
3,317
91
94
36.450549
0.856319
0.005125
0
0.289474
0
0
0.157368
0.016677
0
0
0
0.010989
0
1
0.052632
false
0
0.105263
0.013158
0.289474
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
cf445858d2381dd1ec8b34caaa3c47eb92c07e53
634
py
Python
app/auth/model.py
Hanaasagi/Ushio
007f8e50e68bf71a1822b09291b1236a1a37c515
[ "MIT" ]
5
2016-10-24T14:01:48.000Z
2017-09-26T07:33:20.000Z
app/auth/model.py
Hanaasagi/Ushio
007f8e50e68bf71a1822b09291b1236a1a37c515
[ "MIT" ]
null
null
null
app/auth/model.py
Hanaasagi/Ushio
007f8e50e68bf71a1822b09291b1236a1a37c515
[ "MIT" ]
null
null
null
# -*-coding:UTF-8-*- from ushio._model import Model class LoginModel(Model): __rules__ = { 'title': { 'label': '标题', 'required': True, 'type': unicode, 'max_length': 36, 'min_length': 1, }, 'content': { 'label': '内容',...
18.114286
30
0.37224
48
634
4.6875
0.666667
0.088889
0.142222
0.204444
0
0
0
0
0
0
0
0.020772
0.468454
634
34
31
18.647059
0.646884
0.028391
0
0.142857
0
0
0.175896
0
0
0
0
0
0
1
0
false
0
0.035714
0
0.178571
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
cf47d7a2526e28aee6c3e4a8d646424a27e25cd7
4,268
py
Python
cidc_api/shared/emails.py
CIMAC-CIDC/cidc-api-gae
23f31c6d5b7f16c121001192822f92fb88395652
[ "MIT" ]
null
null
null
cidc_api/shared/emails.py
CIMAC-CIDC/cidc-api-gae
23f31c6d5b7f16c121001192822f92fb88395652
[ "MIT" ]
54
2019-08-09T19:49:11.000Z
2022-01-26T21:36:08.000Z
cidc_api/shared/emails.py
CIMAC-CIDC/cidc-api-gae
23f31c6d5b7f16c121001192822f92fb88395652
[ "MIT" ]
4
2019-07-24T12:26:49.000Z
2021-09-29T19:02:01.000Z
"""Template functions for CIDC email bodies.""" import html import base64 from functools import wraps from cidc_schemas.prism import generate_analysis_configs_from_upload_patch from . import gcloud_client from ..config.settings import ENV, GOOGLE_DATA_BUCKET CIDC_MAILING_LIST = "cidc@jimmy.harvard.edu" def sendabl...
29.846154
178
0.63941
545
4,268
4.851376
0.299083
0.049924
0.018154
0.037821
0.155446
0.138048
0.109304
0.109304
0.109304
0.109304
0
0.003061
0.234536
4,268
142
179
30.056338
0.806244
0.123477
0
0.343434
1
0.040404
0.461706
0.116513
0
0
0
0
0
1
0.060606
false
0
0.060606
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
cf489d4670265e4188a574c084803ce690a3cbb8
932
py
Python
test/test_peptide_lengths.py
Amfgcp/mhctools
3253a6913ab1861c56f4d86368afb24801a77a6c
[ "Apache-2.0" ]
47
2018-01-25T16:16:22.000Z
2022-03-21T13:59:52.000Z
test/test_peptide_lengths.py
Amfgcp/mhctools
3253a6913ab1861c56f4d86368afb24801a77a6c
[ "Apache-2.0" ]
117
2015-03-30T21:34:38.000Z
2017-12-04T18:45:42.000Z
test/test_peptide_lengths.py
Amfgcp/mhctools
3253a6913ab1861c56f4d86368afb24801a77a6c
[ "Apache-2.0" ]
11
2018-12-04T22:39:16.000Z
2021-11-11T16:02:43.000Z
""" Class I predictors typically allow 8mer or longer peptides, whereas NetMHCIIpan allows 9mer or longer. So far only MHCflurry has a max length (of 15mer). """ from mhctools import NetMHCIIpan, NetMHC from nose.tools import eq_, assert_raises def test_class2_9mer_success(): ii_pan_predictor = NetMHCIIpan(alle...
30.064516
67
0.72103
127
932
5.055118
0.448819
0.043614
0.087227
0.077882
0.386293
0.302181
0.133956
0.133956
0.133956
0
0
0.045685
0.154506
932
30
68
31.066667
0.769036
0.164163
0
0.444444
0
0
0.064935
0
0
0
0
0
0.166667
1
0.222222
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
cf49b67bca9bc18c995b2a52b056cad393c2927c
6,319
py
Python
paxes_cinder/k2aclient/k2asample/k2_ssp_etag_test.py
windskyer/k_cinder
000ee539ee4842a158071d26ee99d12c7c0a87da
[ "Apache-2.0" ]
null
null
null
paxes_cinder/k2aclient/k2asample/k2_ssp_etag_test.py
windskyer/k_cinder
000ee539ee4842a158071d26ee99d12c7c0a87da
[ "Apache-2.0" ]
null
null
null
paxes_cinder/k2aclient/k2asample/k2_ssp_etag_test.py
windskyer/k_cinder
000ee539ee4842a158071d26ee99d12c7c0a87da
[ "Apache-2.0" ]
null
null
null
# # # ================================================================= # ================================================================= from __future__ import print_function import logging import paramiko import os import errno try: from scp import SCPClient except ImportError: scp_installed = False else...
30.97549
79
0.528248
659
6,319
4.892261
0.324734
0.039082
0.01861
0.027916
0.534429
0.477667
0.424938
0.414082
0.414082
0.386476
0
0.10207
0.334863
6,319
203
80
31.128079
0.665001
0.350055
0
0.470085
0
0
0.149132
0.008933
0
0
0
0
0
1
0.017094
false
0.076923
0.094017
0
0.111111
0.034188
0
0
0
null
0
0
0
0
0
0
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
cf4af36aaba43f9351d97597d181cd51dea5a824
2,153
py
Python
clients/admin.py
Wellheor1/l2
d980210921c545c68fe9d5522bb693d567995024
[ "MIT" ]
null
null
null
clients/admin.py
Wellheor1/l2
d980210921c545c68fe9d5522bb693d567995024
[ "MIT" ]
null
null
null
clients/admin.py
Wellheor1/l2
d980210921c545c68fe9d5522bb693d567995024
[ "MIT" ]
null
null
null
import clients.models as models from django.contrib import admin @admin.register(models.Individual) class IndividualAdmin(admin.ModelAdmin): list_display = ( 'family', 'name', 'patronymic', 'birthday', ) search_fields = ('family', 'name', 'patronymic') @admin.register(mod...
20.121495
54
0.660474
193
2,153
7.243523
0.336788
0.120887
0.176681
0.141631
0.330472
0.216023
0.080114
0.080114
0
0
0
0
0.211797
2,153
106
55
20.311321
0.823807
0
0
0.25641
0
0
0.130051
0
0
0
0
0
0
1
0
false
0.064103
0.025641
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
cf4b518be236940fc8913c8679a1794b7af2dba6
6,160
py
Python
viz/transactionbuilder.py
VIZ-Blockchain/viz-python-lib
87a581e8e752688e00d70d72ea106cc2e18b62a9
[ "MIT" ]
3
2019-07-22T21:10:14.000Z
2021-05-31T08:22:06.000Z
viz/transactionbuilder.py
VIZ-Blockchain/python-viz
87a581e8e752688e00d70d72ea106cc2e18b62a9
[ "MIT" ]
2
2020-04-17T19:20:19.000Z
2020-05-18T10:50:47.000Z
viz/transactionbuilder.py
VIZ-Blockchain/python-viz
87a581e8e752688e00d70d72ea106cc2e18b62a9
[ "MIT" ]
5
2019-09-11T15:12:30.000Z
2020-04-18T18:43:14.000Z
# -*- coding: utf-8 -*- # We don't have own Asset class because it is unneeded import struct from binascii import unhexlify from graphenebase.utils import formatTimeFromNow from graphenecommon.asset import Asset from graphenecommon.exceptions import WalletLocked from graphenecommon.transactionbuilder import ProposalBu...
40.794702
116
0.66461
681
6,160
5.885463
0.343612
0.020958
0.017964
0.017216
0.038423
0.027445
0.027445
0.027445
0
0
0
0.005274
0.261201
6,160
150
117
41.066667
0.875412
0.237338
0
0.103093
0
0
0.049607
0
0
0
0.001311
0.013333
0.051546
1
0.082474
false
0
0.14433
0
0.309278
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
cf4c2b09439615a0ab62d798046b88ca99e913d9
714
py
Python
vvphotos/migrations/0003_auto_20170414_1451.py
synw/django-vvphotos
3dd93fbe8a29d8db6fe440a40ee700d229da537b
[ "MIT" ]
1
2017-04-05T04:09:00.000Z
2017-04-05T04:09:00.000Z
vvphotos/migrations/0003_auto_20170414_1451.py
synw/django-vvphotos
3dd93fbe8a29d8db6fe440a40ee700d229da537b
[ "MIT" ]
null
null
null
vvphotos/migrations/0003_auto_20170414_1451.py
synw/django-vvphotos
3dd93fbe8a29d8db6fe440a40ee700d229da537b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-04-14 14:51 from __future__ import unicode_literals from django.db import migrations, models import filebrowser.fields class Migration(migrations.Migration): dependencies = [ ('vvphotos', '0002_auto_20170414_1207'), ] operations = [ ...
26.444444
102
0.62465
77
714
5.61039
0.662338
0.078704
0.115741
0.134259
0
0
0
0
0
0
0
0.073446
0.256303
714
26
103
27.461538
0.740113
0.095238
0
0.210526
1
0
0.094868
0.03577
0
0
0
0
0
1
0
false
0
0.157895
0
0.315789
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
cf5440ad34a8a1875fde01fba3b5331cf1a34691
741
py
Python
apps/rss/test.py
pcarivbts/vbts-clientfiles
3b5c5a959fcf4a2dbed30c348951ed213f4ae786
[ "BSD-3-Clause" ]
null
null
null
apps/rss/test.py
pcarivbts/vbts-clientfiles
3b5c5a959fcf4a2dbed30c348951ed213f4ae786
[ "BSD-3-Clause" ]
null
null
null
apps/rss/test.py
pcarivbts/vbts-clientfiles
3b5c5a959fcf4a2dbed30c348951ed213f4ae786
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2015-present, Philippine-California Advanced Research Institutes- The Village Base Station Project (PCARI-VBTS). All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. """ from pcarirss import rss import requ...
26.464286
79
0.74359
108
741
5.074074
0.62037
0.032847
0.032847
0.069343
0.109489
0.109489
0
0
0
0
0
0.02795
0.130904
741
27
80
27.444444
0.822981
0
0
0.235294
0
0
0.211329
0
0
0
0
0
0
0
null
null
0
0.176471
null
null
0.117647
0
0
0
null
0
0
0
0
0
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
cf5602f4dea16a19aab7d71c7431200126c664ba
615
py
Python
server/onesphere/onesphere_mdm/__init__.py
kevin0120/onesphere
7864076ab0de564fa21f91c946f3f1038aa36faf
[ "MIT" ]
null
null
null
server/onesphere/onesphere_mdm/__init__.py
kevin0120/onesphere
7864076ab0de564fa21f91c946f3f1038aa36faf
[ "MIT" ]
null
null
null
server/onesphere/onesphere_mdm/__init__.py
kevin0120/onesphere
7864076ab0de564fa21f91c946f3f1038aa36faf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging from . import models from odoo.models import SUPERUSER_ID, api _logger = logging.getLogger(__name__) def create_related_work_station_area_hook(cr, registry): env = api.Environment(cr, SUPERUSER_ID, {}) workcenters = env['mrp.workcenter'].search([]) for workcenter i...
32.368421
113
0.697561
74
615
5.527027
0.513514
0.107579
0.132029
0.161369
0.136919
0
0
0
0
0
0
0.002012
0.19187
615
18
114
34.166667
0.820926
0.034146
0
0
0
0
0.190878
0.045608
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.307692
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
cf5b99867e5f0406334245425737884b55ecf789
719
py
Python
src/org/javaturk/oopj/ch01/MonteCarloPI.py
javaturk/OOPJ
3e7129a58fd79e1d9a826b86518547dae2999b9e
[ "MIT" ]
50
2021-01-27T12:36:11.000Z
2022-03-30T08:59:04.000Z
src/org/javaturk/oopj/ch01/MonteCarloPI.py
Seymanur-evn/OOPJ
3e7129a58fd79e1d9a826b86518547dae2999b9e
[ "MIT" ]
null
null
null
src/org/javaturk/oopj/ch01/MonteCarloPI.py
Seymanur-evn/OOPJ
3e7129a58fd79e1d9a826b86518547dae2999b9e
[ "MIT" ]
26
2021-02-04T16:47:25.000Z
2022-03-26T20:27:03.000Z
# # MonteCarloPI.py # # Created by Akin Kaldiroglu on 2017. # Copyright 2017 JavaTurk. All rights reserved. import random as r import math as m import time # Total number of point to throw. s = input("Please enter number of points: ") n = int(s) dotsInCircle = 0 start = time.clock() # Iterate for the number of d...
19.972222
48
0.634214
114
719
3.982456
0.54386
0.052863
0
0
0
0
0
0
0
0
0
0.031022
0.23783
719
35
49
20.542857
0.797445
0.351878
0
0
0
0
0.15859
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.166667
0
0
0
null
0
0
0
0
0
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
cf6f5ced75832b5d9151a708a32adaf0c97da7f9
1,173
py
Python
runbench.py
zaxtax/bustle
de04ee0a139ef9f67e87b41a5060bfafe40990b3
[ "BSD-3-Clause" ]
null
null
null
runbench.py
zaxtax/bustle
de04ee0a139ef9f67e87b41a5060bfafe40990b3
[ "BSD-3-Clause" ]
null
null
null
runbench.py
zaxtax/bustle
de04ee0a139ef9f67e87b41a5060bfafe40990b3
[ "BSD-3-Clause" ]
null
null
null
from dslparser import parse, printer from stringdsl import stringdsl from bustle import bustle, propertySignatureSize from bustle import probe_bustle, PSol_cost import stringprogs from stringprops import llProps from model import Rater, loadModel import torch from absl import app from absl import flags from absl impor...
27.928571
73
0.645354
167
1,173
4.413174
0.365269
0.032564
0.056988
0.032564
0.062415
0.062415
0.062415
0
0
0
0
0.016538
0.226769
1,173
41
74
28.609756
0.796031
0.050298
0
0
0
0
0.034142
0
0
0
0
0
0
1
0.03125
false
0
0.34375
0
0.375
0.21875
0
0
0
null
0
0
0
0
0
0
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
cf6fd03a19f0160c11f693ced93f069280e8d52c
8,030
py
Python
subset_w10n/subset_w10n.py
lewismc/podaac_tools_and_services
96e9283a8aac33e243e08528dd43706b5dd24a16
[ "Apache-2.0" ]
39
2019-05-30T15:52:16.000Z
2022-03-07T07:57:39.000Z
subset_w10n/subset_w10n.py
lewismc/podaac_tools_and_services
96e9283a8aac33e243e08528dd43706b5dd24a16
[ "Apache-2.0" ]
1
2020-03-23T21:08:31.000Z
2020-03-23T21:08:31.000Z
subset_w10n/subset_w10n.py
lewismc/podaac_tools_and_services
96e9283a8aac33e243e08528dd43706b5dd24a16
[ "Apache-2.0" ]
28
2019-04-15T22:54:36.000Z
2022-03-07T07:54:29.000Z
#! /usr/bin/env python # # a skeleton script to download a set of L2 files using w10n. # # # 2016.08.20 Yibo Jiang, version 0 ################################## # user parameters to be editted: # ################################## # Caution: This is a Python script, and Python takes indentation seriously. # DO NOT...
33.319502
171
0.634247
1,071
8,030
4.713352
0.29225
0.011094
0.022187
0.026347
0.312401
0.27397
0.263669
0.263669
0.235341
0.223257
0
0.037591
0.191656
8,030
240
172
33.458333
0.740102
0.103362
0
0.268293
0
0.02439
0.254266
0.043373
0
0
0
0
0
0
null
null
0
0.054878
null
null
0.067073
0
0
0
null
0
0
0
0
0
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
cf7a4cc97c976ea0ad7cc2b93980eb331197c0d1
32,078
py
Python
onlinelinguisticdatabase/controllers/files.py
dativebase/old
bcfb856e8a8cccddcab4eaedc1aa107697ceee2f
[ "Apache-2.0" ]
2
2019-11-19T22:39:04.000Z
2019-11-20T16:13:43.000Z
onlinelinguisticdatabase/controllers/files.py
jrwdunham/old
bcfb856e8a8cccddcab4eaedc1aa107697ceee2f
[ "Apache-2.0" ]
51
2015-02-11T21:42:48.000Z
2016-08-16T18:52:44.000Z
onlinelinguisticdatabase/controllers/files.py
jrwdunham/old
bcfb856e8a8cccddcab4eaedc1aa107697ceee2f
[ "Apache-2.0" ]
1
2019-11-19T22:39:07.000Z
2019-11-19T22:39:07.000Z
# Copyright 2016 Joel Dunham # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
38.370813
146
0.622046
4,008
32,078
4.867016
0.126996
0.014713
0.020044
0.011996
0.478546
0.392885
0.366894
0.331727
0.279438
0.266263
0
0.006377
0.261799
32,078
835
147
38.416766
0.817399
0.069019
0
0.528345
0
0.002268
0.088681
0
0
0
0
0
0
0
null
null
0.013605
0.040816
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
cf83e4ace21179b78507ed783938807ea8950383
5,471
py
Python
Project_CCNULogin/postit.py
corkine/pyBook
1bfd519956adec835c9601b48561ce9101c6de63
[ "CNRI-Python", "Linux-OpenIB" ]
10
2018-03-02T15:04:50.000Z
2022-02-03T12:23:54.000Z
Project_CCNULogin/postit.py
corkine/pyBook
1bfd519956adec835c9601b48561ce9101c6de63
[ "CNRI-Python", "Linux-OpenIB" ]
1
2018-09-07T04:56:05.000Z
2018-09-07T10:30:36.000Z
Project_CCNULogin/postit.py
corkine/pyBook
1bfd519956adec835c9601b48561ce9101c6de63
[ "CNRI-Python", "Linux-OpenIB" ]
3
2018-03-02T06:51:50.000Z
2020-11-30T13:27:30.000Z
#!/usr/bn/env python3 import requests,json import traceback def loginCCNU(username="",passwd="",suffix=""): errmessage = None try: url = "http://10.220.250.50/0.htm" payload = {"DDDDD":"%s"%username, "upass":"%s"%passwd, "suffix":"%s"%suffix, "0MKK...
39.359712
151
0.570097
673
5,471
4.59584
0.233284
0.021015
0.039121
0.046557
0.560944
0.544779
0.532816
0.532816
0.493372
0.493372
0
0.064054
0.272345
5,471
138
152
39.644928
0.712886
0.080607
0
0.495575
0
0.053097
0.266321
0.030745
0
0
0
0
0
1
0.053097
false
0.079646
0.017699
0
0.230089
0.00885
0
0
0
null
0
0
0
0
0
0
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
d843de74b52eeb411e90a195891479d067a95d28
1,582
py
Python
glance/api/glance_api/FaultWrapper.py
Quinton/glance
7674bc8963a3bec21f719c48f40e8a3fc0846e6f
[ "Apache-2.0" ]
5
2017-04-23T05:50:36.000Z
2019-03-12T09:45:20.000Z
glance/api/glance_api/FaultWrapper.py
Quinton/glance
7674bc8963a3bec21f719c48f40e8a3fc0846e6f
[ "Apache-2.0" ]
null
null
null
glance/api/glance_api/FaultWrapper.py
Quinton/glance
7674bc8963a3bec21f719c48f40e8a3fc0846e6f
[ "Apache-2.0" ]
2
2018-08-16T11:41:18.000Z
2018-10-21T06:56:50.000Z
#!/usr/bin/env python #encode=utf-8 #vim: tabstop=4 shiftwidth=4 softtabstop=4 #Created on 2013-8-17 #Copyright 2013 nuoqingyun xuqifeng import webob.dec import webob.exc from glance.api.glance_api import wsgi from glance import wsgi as base_wsgi from glance.utils import common class FaultWrapper(bas...
31.64
75
0.596081
183
1,582
4.95082
0.448087
0.05298
0.07947
0.07947
0.04415
0
0
0
0
0
0
0.019462
0.317952
1,582
49
76
32.285714
0.820204
0.080278
0
0
0
0
0.014989
0
0
0
0
0
0
0
null
null
0
0.142857
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
d84a69a8dc5aa9bb8e807a7fcecbd36c6cf33247
2,359
py
Python
maskrcnn_benchmark/data/datasets/omnipush.py
yenchenlin/maskrcnn-benchmark
d8f34136c719190770d1f2ecccdbe13c9a8ee025
[ "MIT" ]
1
2019-03-12T18:00:10.000Z
2019-03-12T18:00:10.000Z
maskrcnn_benchmark/data/datasets/omnipush.py
yenchenlin/maskrcnn-benchmark
d8f34136c719190770d1f2ecccdbe13c9a8ee025
[ "MIT" ]
null
null
null
maskrcnn_benchmark/data/datasets/omnipush.py
yenchenlin/maskrcnn-benchmark
d8f34136c719190770d1f2ecccdbe13c9a8ee025
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch import torchvision import numpy as np import glob import os from PIL import Image from torch.utils.data import Dataset from maskrcnn_benchmark.structures.bounding_box import BoxList from maskrcnn_benchmark.structures.center import Cen...
30.24359
79
0.670623
333
2,359
4.588589
0.402402
0.018325
0.031414
0.039267
0.061518
0.034031
0
0
0
0
0
0.009885
0.228063
2,359
77
80
30.636364
0.829215
0.172955
0
0.102041
0
0
0.039155
0
0
0
0
0
0
1
0.142857
false
0
0.183673
0.081633
0.55102
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
d85651bd3af2d2a42ceecc9698ae3091bd3aea06
1,375
py
Python
Fduers/alumni/migrations/city_init.py
TAKHEXI/ALUMNI
b06fb8f408444d8294304e1890f2afa4283c8bfa
[ "MIT" ]
1
2021-07-11T00:39:46.000Z
2021-07-11T00:39:46.000Z
Fduers/alumni/migrations/city_init.py
TAKHEXI/ALUMNI
b06fb8f408444d8294304e1890f2afa4283c8bfa
[ "MIT" ]
null
null
null
Fduers/alumni/migrations/city_init.py
TAKHEXI/ALUMNI
b06fb8f408444d8294304e1890f2afa4283c8bfa
[ "MIT" ]
3
2021-07-10T11:55:45.000Z
2021-07-21T13:25:12.000Z
# Generated by Django 3.2.5 on 2021-07-14 16:45 from django.db import migrations, models import django.db.models.deletion import sqlite3 import os dbpath = './generator/data/city_version-4.sqlite' def City_init(apps, schema_editor): # import ../generator/data/city_version-4.sqlite into model city and province if...
24.553571
113
0.596364
180
1,375
4.494444
0.388889
0.034611
0.024722
0.029666
0.108776
0.076638
0
0
0
0
0
0.032673
0.265455
1,375
55
114
25
0.768317
0.132364
0
0.055556
1
0
0.152357
0.031987
0
0
0
0
0
1
0.027778
false
0
0.111111
0
0.222222
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d86a0ad7832f4b3fc98b28ac446ccfb16910fa55
395
py
Python
apps/stats/forms.py
bensternthal/affiliates
e234b0ab925b33d71cb5ded3d51dccbcbb0e59c1
[ "BSD-3-Clause" ]
null
null
null
apps/stats/forms.py
bensternthal/affiliates
e234b0ab925b33d71cb5ded3d51dccbcbb0e59c1
[ "BSD-3-Clause" ]
null
null
null
apps/stats/forms.py
bensternthal/affiliates
e234b0ab925b33d71cb5ded3d51dccbcbb0e59c1
[ "BSD-3-Clause" ]
null
null
null
from django import forms INTERVAL_CHOICES = [(k, k) for k in ('minutes', 'hours', 'days', 'weeks', 'months', 'years')] class StatsFilterForm(forms.Form): """Form for filtering the statistics shown in the admin interface .""" start = forms.DateTimeField() end = forms....
30.384615
74
0.632911
43
395
5.767442
0.651163
0.120968
0
0
0
0
0
0
0
0
0
0
0.243038
395
12
75
32.916667
0.829431
0.162025
0
0
0
0
0.098462
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d86af28cb688a6fd2116f4771011bafd1d991465
4,896
py
Python
vb2py/PythonCard/samples/custdb/custdb.de.rsrc.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/PythonCard/samples/custdb/custdb.de.rsrc.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
vb2py/PythonCard/samples/custdb/custdb.de.rsrc.py
ceprio/xl_vb2py
899fec0301140fd8bd313e8c80b3fa839b3f5ee4
[ "BSD-3-Clause" ]
null
null
null
{'application':{'type':'Application', 'name':'Minimal', 'backgrounds': [ {'type':'Background', 'name':'bgMin', 'title':'Kunden Datenbank', 'size':(502, 467), 'components': [ {'type':'RadioGroup', 'name':'sortBy', 'position':(8, 67), 'size':(134, -...
18.545455
82
0.460989
453
4,896
4.98234
0.348786
0.086398
0.112982
0.079752
0.040762
0.040762
0
0
0
0
0
0.097007
0.263072
4,896
263
83
18.61597
0.528548
0.009191
0
0.1875
0
0
0.390138
0
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
d86c682844389885d4cfae832cd3aac867ef7a68
3,832
py
Python
miniworld/model/spatial/MovementPattern/RandomWalk.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
miniworld/model/spatial/MovementPattern/RandomWalk.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
miniworld/model/spatial/MovementPattern/RandomWalk.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
# encoding: utf-8 from miniworld.Constants import PATH_MARBURG_OSM_MAP from miniworld.model.singletons.Singletons import singletons import sqlite3 from random import randint from miniworld.model.spatial.Point import Point from miniworld.model.spatial.Location import Location from miniworld.model.spatial.MovementPatte...
43.545455
198
0.639353
483
3,832
4.877847
0.207039
0.050509
0.033956
0.055178
0.444397
0.437182
0.410017
0.383277
0.383277
0.360357
0
0.008162
0.264614
3,832
87
199
44.045977
0.827892
0.044624
0
0.28169
0
0.070423
0.242549
0
0
0
0
0.011494
0
1
0.070423
false
0
0.098592
0.028169
0.267606
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
d87667a9c081a3b2a381f2aaf65146318ac021b0
379
py
Python
PyFlow/Commands/__init__.py
ZeroCool940711/PyFlow-1
cc11f788b72d9a47196d5039b24e81121891823c
[ "MIT" ]
null
null
null
PyFlow/Commands/__init__.py
ZeroCool940711/PyFlow-1
cc11f788b72d9a47196d5039b24e81121891823c
[ "MIT" ]
null
null
null
PyFlow/Commands/__init__.py
ZeroCool940711/PyFlow-1
cc11f788b72d9a47196d5039b24e81121891823c
[ "MIT" ]
null
null
null
import os, sys for n in os.listdir(os.path.dirname(__file__)): if n.endswith(".py") and "__init__" not in n: commandName = n.split(".")[0] PYTHON_VERSION = sys.version_info if PYTHON_VERSION < (3,0,0): exec("from {0} import *".format(commandName)) else: ...
31.583333
58
0.556728
49
379
4.081633
0.55102
0.13
0.09
0.15
0.32
0.32
0
0
0
0
0
0.022388
0.292876
379
11
59
34.454545
0.723881
0
0
0
0
0
0.124011
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
d87c32beb00592a39aac4906de62c470d653f5e5
2,547
py
Python
saveme/helpers/vault.py
myoung34/saveme
b65e7912b28530dd5e072b793fab41ae8ecf9b7e
[ "MIT" ]
6
2021-03-08T19:13:46.000Z
2021-04-27T02:05:45.000Z
saveme/helpers/vault.py
myoung34/saveme
b65e7912b28530dd5e072b793fab41ae8ecf9b7e
[ "MIT" ]
null
null
null
saveme/helpers/vault.py
myoung34/saveme
b65e7912b28530dd5e072b793fab41ae8ecf9b7e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Generic vault related helpers """ import os import pathlib from typing import Any import chameleon from rumps import MenuItem from shellescape import quote def generate_launchagent(profile_name: str) -> str: """ Generate the launchctl launchagent xml """ path = os.path.di...
30.321429
99
0.621516
280
2,547
5.503571
0.314286
0.03634
0.070084
0.028553
0.281635
0.243997
0.21804
0.21804
0.166126
0.166126
0
0.000543
0.277189
2,547
83
100
30.686747
0.836502
0.250491
0
0.157895
1
0
0.167166
0.096465
0
0
0
0
0
1
0.131579
false
0
0.157895
0
0.342105
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
d8816441135dd68f0cdd268d4391d1e77d77d64f
388
py
Python
python/py-set-add/main.py
shollingsworth/HackerRank
2f0e048044e643d6aa9d07c1898f3b00adf489b0
[ "Apache-2.0" ]
null
null
null
python/py-set-add/main.py
shollingsworth/HackerRank
2f0e048044e643d6aa9d07c1898f3b00adf489b0
[ "Apache-2.0" ]
null
null
null
python/py-set-add/main.py
shollingsworth/HackerRank
2f0e048044e643d6aa9d07c1898f3b00adf489b0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import __future__ import sys sys.stdin = open("./challenge_sample_input", 'r') print("===" * 30) print("SAMPLE OUTPUT:") print("===" * 30) print(open("./challenge_sample_output", 'r').read()) print("===" * 30) print("START") print("===" * 30) N = int(raw_input()) mset = se...
20.421053
52
0.613402
56
388
4.053571
0.571429
0.123348
0.15859
0
0
0
0
0
0
0
0
0.029499
0.126289
388
18
53
21.555556
0.640118
0.108247
0
0.266667
0
0
0.238372
0.142442
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0.533333
0
0
0
null
0
0
0
0
0
0
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
d8834dc03990a9840cb83e2fb0220e238a047548
4,326
py
Python
chemtrails/contrib/permissions/models.py
inonit/django-chemtrails
e8bd97dc68852902b57d314250e616b505db0e16
[ "MIT" ]
13
2017-06-15T11:14:02.000Z
2021-05-10T03:52:26.000Z
chemtrails/contrib/permissions/models.py
inonit/django-chemtrails
e8bd97dc68852902b57d314250e616b505db0e16
[ "MIT" ]
50
2017-02-21T20:02:50.000Z
2017-12-04T13:44:29.000Z
chemtrails/contrib/permissions/models.py
inonit/django-chemtrails
e8bd97dc68852902b57d314250e616b505db0e16
[ "MIT" ]
2
2017-04-17T19:41:23.000Z
2020-02-06T21:06:08.000Z
# -*- coding: utf-8 -*- import json from collections import OrderedDict from operator import itemgetter from django.contrib.auth.models import Permission from django.contrib.contenttypes.models import ContentType from django.contrib.postgres.fields import ArrayField from django.db import models from django.utils.tra...
47.021739
113
0.613962
451
4,326
5.645233
0.341463
0.030244
0.020031
0.025923
0.115868
0.072663
0.030636
0.030636
0
0
0
0.001278
0.276699
4,326
91
114
47.538462
0.8124
0.018262
0
0.044118
0
0
0.201989
0.031968
0
0
0
0
0
1
0.088235
false
0
0.161765
0.029412
0.544118
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
d88901070f96985e4866fc386bd05ea6e6d90b59
478
py
Python
tests/test_dumps.py
nicktimko/claptrap
6ab439f5777cb0f5d1cc5c6bd515c30888517281
[ "MIT" ]
null
null
null
tests/test_dumps.py
nicktimko/claptrap
6ab439f5777cb0f5d1cc5c6bd515c30888517281
[ "MIT" ]
null
null
null
tests/test_dumps.py
nicktimko/claptrap
6ab439f5777cb0f5d1cc5c6bd515c30888517281
[ "MIT" ]
null
null
null
import tempfile import networkx as nx from claptrap import dumps from claptrap import phrasegenerator def test_roundtrip(): pg = phrasegenerator.GraphPhraseGenerator.from_corpus("hello world hello folks") with tempfile.TemporaryDirectory() as tmpdir: fn = "somegraph" path = tmpdir + "/" + fn...
28.117647
84
0.711297
57
478
5.824561
0.561404
0.072289
0.108434
0
0
0
0
0
0
0
0
0
0.202929
478
16
85
29.875
0.871391
0
0
0
0
0
0.069038
0
0
0
0
0
0.083333
1
0.083333
false
0
0.333333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d8b29b08d2c8cbf7a61c1c955defb8fffacd4ff1
2,483
py
Python
random-images/terrain.py
dominicschaff/random
14a19b976a09c768ab8844b7cda237c17a92c9ae
[ "MIT" ]
null
null
null
random-images/terrain.py
dominicschaff/random
14a19b976a09c768ab8844b7cda237c17a92c9ae
[ "MIT" ]
null
null
null
random-images/terrain.py
dominicschaff/random
14a19b976a09c768ab8844b7cda237c17a92c9ae
[ "MIT" ]
null
null
null
from random import random import sys from mpl_toolkits.mplot3d import Axes3D import matplotlib as mpl from matplotlib.ticker import LinearLocator, FormatStrFormatter import matplotlib.pyplot as plt import numpy as np if len(sys.argv) == 3: SIZE = (int)(sys.argv[1]) FILE_PREPEND = sys.argv[2] else: print "u...
30.280488
99
0.56907
441
2,483
3.160998
0.265306
0.043042
0.025108
0.053802
0.203013
0.149928
0.149928
0.149928
0.149928
0.149928
0
0.069036
0.206605
2,483
82
100
30.280488
0.638579
0.016512
0
0.104478
0
0
0.05
0
0
0
0
0
0
0
null
null
0
0.104478
null
null
0.089552
0
0
0
null
0
0
0
0
0
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
d8b365a49833a6d7255c5f1fa06da57f262b34e6
5,055
py
Python
packages/w3af/w3af/core/data/search_engines/search_engine.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/core/data/search_engines/search_engine.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/core/data/search_engines/search_engine.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
""" SearchEngine.py Copyright 2006 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License. w3af is distributed in the hope tha...
33.476821
139
0.585163
622
5,055
4.696141
0.348875
0.011982
0.020541
0.019514
0.336186
0.312222
0.29305
0.29305
0.273879
0.273879
0
0.023263
0.345203
5,055
150
140
33.7
0.859215
0.046489
0
0.4
0
0.014286
0.146761
0.019568
0
0
0
0
0
0
null
null
0
0.042857
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
d8b5e2db09497e61bb19fc1c9e32f577507d97e8
636
py
Python
hashtag_monitor/apps/monitor/migrations/0020_auto_20191227_1803.py
lccasagrande/Hashtag-Monitor
d08e116eb13bc97501e862ad0c5d9401386a7e33
[ "MIT" ]
2
2021-02-08T07:19:40.000Z
2021-10-02T18:24:14.000Z
hashtag_monitor/apps/monitor/migrations/0020_auto_20191227_1803.py
lccasagrande/Hashtag-Monitor
d08e116eb13bc97501e862ad0c5d9401386a7e33
[ "MIT" ]
6
2020-06-05T20:16:23.000Z
2021-10-20T22:33:35.000Z
hashtag_monitor/apps/monitor/migrations/0020_auto_20191227_1803.py
lccasagrande/Hashtag-Monitor
d08e116eb13bc97501e862ad0c5d9401386a7e33
[ "MIT" ]
3
2020-01-06T07:46:13.000Z
2021-02-08T07:21:17.000Z
# Generated by Django 3.0 on 2019-12-27 18:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('monitor', '0019_auto_20191226_2112'), ] operations = [ migrations.AlterField( model_name='user', name='name', ...
26.5
100
0.599057
67
636
5.537313
0.597015
0.107817
0.134771
0.156334
0.58221
0.58221
0.382749
0.382749
0.382749
0.382749
0
0.077922
0.273585
636
23
101
27.652174
0.725108
0.06761
0
0.470588
1
0
0.116751
0.038917
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
d8b83f32d0a29c8f07bab1a548e968366eaf0124
801
py
Python
test.py
XuWeizhu/DOF
b3bd6f1497663f0ed65c0d479e691fb4aeb4076d
[ "MIT" ]
null
null
null
test.py
XuWeizhu/DOF
b3bd6f1497663f0ed65c0d479e691fb4aeb4076d
[ "MIT" ]
null
null
null
test.py
XuWeizhu/DOF
b3bd6f1497663f0ed65c0d479e691fb4aeb4076d
[ "MIT" ]
null
null
null
from __future__ import print_function, division import torch from torchvision import transforms import os, glob, cv2 from PIL import Image from parameter import * from model import * ## test on CPU net_test = Net() PATH = 'checkpoint/checkpoint_50.pth' net_test.load_state_dict(torch.load(PATH)) ## test...
26.7
68
0.674157
111
801
4.684685
0.522523
0.040385
0
0
0
0
0
0
0
0
0
0.026521
0.19975
801
30
68
26.7
0.784711
0.02372
0
0
0
0
0.097463
0.072096
0
0
0
0
0
1
0
false
0
0.318182
0
0.318182
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d8bb5ce66ab1e2f4590acf6f81ca3263ef03972c
1,033
py
Python
data/fixbibtex.py
blurks/dogonlanguages
dad5d7e334a98b5f4dba492638185ae88bda988c
[ "Apache-2.0" ]
1
2021-04-08T01:49:09.000Z
2021-04-08T01:49:09.000Z
data/fixbibtex.py
blurks/dogonlanguages
dad5d7e334a98b5f4dba492638185ae88bda988c
[ "Apache-2.0" ]
3
2016-08-24T07:05:34.000Z
2020-03-13T08:47:44.000Z
data/fixbibtex.py
blurks/dogonlanguages
dad5d7e334a98b5f4dba492638185ae88bda988c
[ "Apache-2.0" ]
2
2015-02-12T10:31:25.000Z
2021-12-07T01:35:15.000Z
import re from hashlib import md5 from clld.lib.bibtex import Database, Record KV_PATTERN = re.compile('(?P<key>[A-Za-z]+)\s*\=\s*\{(?P<value>.*)$', re.MULTILINE) def fixed(mess): id_ = md5('@' + mess.encode('utf8')) for messyid in ['BibTeX', 'Indiana University']: mess = mess.replace(messyid + ',\...
23.477273
83
0.53243
137
1,033
3.927007
0.459854
0.033457
0
0
0
0
0
0
0
0
0
0.009309
0.272023
1,033
43
84
24.023256
0.706117
0.007744
0
0.0625
0
0
0.109375
0.041016
0
0
0
0
0.03125
0
null
null
0
0.09375
null
null
0.03125
0
0
0
null
0
0
0
0
0
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
d8bce8a6388b1771b61056f645df19e2ab23090c
6,163
py
Python
splitter/valid_location_qualifiers.py
nyalldawson/address-splitter
1963709b9ec50d260dea610d9c7c407184f08ddc
[ "MIT" ]
2
2017-11-01T15:55:35.000Z
2019-04-04T13:39:26.000Z
splitter/valid_location_qualifiers.py
nyalldawson/address-splitter
1963709b9ec50d260dea610d9c7c407184f08ddc
[ "MIT" ]
1
2017-11-01T15:54:56.000Z
2017-11-01T15:54:56.000Z
splitter/valid_location_qualifiers.py
nyalldawson/address-splitter
1963709b9ec50d260dea610d9c7c407184f08ddc
[ "MIT" ]
null
null
null
valid_location_qualifiers = [{'text': 'oval'}, {'text': 'town centre', 'penalty_following_locality': 10}, {'text': 'recreation reserve', 'penalty_following_locality': 10}, ...
50.516393
81
0.235113
272
6,163
5.283088
0.463235
0.034795
0.050104
0.05428
0.06263
0
0
0
0
0
0
0.002488
0.608632
6,163
121
82
50.933884
0.593284
0
0
0.10084
0
0
0.229394
0.01291
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
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
d8bfd694d18841aed06fad0391a84afc9451ff9c
15,209
py
Python
astrodendro/dendrogram.py
gxastro/astrodendro
1bd08bde09896235f4ee7218386312e95caf7217
[ "MIT" ]
null
null
null
astrodendro/dendrogram.py
gxastro/astrodendro
1bd08bde09896235f4ee7218386312e95caf7217
[ "MIT" ]
1
2015-10-03T12:39:58.000Z
2020-05-14T20:46:38.000Z
astrodendro/dendrogram.py
gxastro/astrodendro
1bd08bde09896235f4ee7218386312e95caf7217
[ "MIT" ]
null
null
null
# Computing Astronomical Dendrograms # Copyright (c) 2011 Thomas P. Robitaille # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights...
36.211905
108
0.508186
2,019
15,209
3.748886
0.153541
0.056018
0.063417
0.030916
0.467301
0.445634
0.434139
0.422513
0.414322
0.395825
0
0.014428
0.384772
15,209
419
109
36.298329
0.794485
0.244592
0
0.389671
0
0
0.026249
0
0
0
0
0
0
0
null
null
0
0.028169
null
null
0.042254
0
0
0
null
0
0
0
0
0
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
d8c31f6761ce38bba24c6a943f2822f5f4f75499
11,248
py
Python
thola_client/models/check_ups_request.py
inexio/thola-client-python
f9a6812885738e33b1aed43ca55335b71e3d2b2d
[ "BSD-2-Clause" ]
1
2021-12-28T18:53:52.000Z
2021-12-28T18:53:52.000Z
thola_client/models/check_ups_request.py
inexio/thola-client-python
f9a6812885738e33b1aed43ca55335b71e3d2b2d
[ "BSD-2-Clause" ]
null
null
null
thola_client/models/check_ups_request.py
inexio/thola-client-python
f9a6812885738e33b1aed43ca55335b71e3d2b2d
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 """ Thola REST API for Thola. For more information look at our Github : https://github.com/inexio/thola # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from thola_...
33.676647
305
0.665452
1,214
11,248
5.886326
0.11285
0.0904
0.105793
0.094458
0.620627
0.483907
0.453401
0.255807
0.207389
0.087182
0
0.012975
0.259957
11,248
333
306
33.777778
0.845507
0.326814
0
0.087838
1
0
0.094967
0.067705
0
0
0
0
0
1
0.162162
false
0
0.027027
0
0.317568
0.087838
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
d8c912dad9dee631a978f3ec10834bac7daa4679
283
py
Python
viajarfazbem/tests/tests_views.py
thiagocarvalhorodrigues/back-end-challenge-viajar-faz-bem
dd71f4104765922a2d0da81af835e3b98199ca7b
[ "MIT" ]
null
null
null
viajarfazbem/tests/tests_views.py
thiagocarvalhorodrigues/back-end-challenge-viajar-faz-bem
dd71f4104765922a2d0da81af835e3b98199ca7b
[ "MIT" ]
null
null
null
viajarfazbem/tests/tests_views.py
thiagocarvalhorodrigues/back-end-challenge-viajar-faz-bem
dd71f4104765922a2d0da81af835e3b98199ca7b
[ "MIT" ]
null
null
null
from django.test import TestCase """ Testa a pagina inicial do projeto """ class ViewsTestCase(TestCase): def test_index_loads_properly(self): response = self.client.get('http://127.0.0.1:8000') print(response) self.assertEqual(response.status_code,200)
31.444444
59
0.70318
38
283
5.131579
0.815789
0.123077
0
0
0
0
0
0
0
0
0
0.055794
0.176678
283
8
60
35.375
0.781116
0
0
0
0
0
0.086777
0
0
0
0
0
0.166667
1
0.166667
false
0
0.166667
0
0.5
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d8ca3cce3747216c3a5944a0d4b2fb1e02ee7f5f
666
py
Python
sdk/graphrbac/azure-graphrbac/azure/graphrbac/models/graph_rbac_management_client_enums.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/graphrbac/azure-graphrbac/azure/graphrbac/models/graph_rbac_management_client_enums.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/graphrbac/azure-graphrbac/azure/graphrbac/models/graph_rbac_management_client_enums.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
26.64
76
0.561562
68
666
5.485294
0.764706
0.037534
0
0
0
0
0
0
0
0
0
0.00177
0.151652
666
24
77
27.75
0.658407
0.678679
0
0
0
0
0.162562
0
0
0
0
0
0
1
0
false
0
0.142857
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
d8d40ca10c6362ef799de52f3d235a131d7ca763
1,144
py
Python
scripts/travis_docker_publish.py
vmalloc/mailboxer
23fcdab25911ffd8dc6701bbef01455194c32a9f
[ "MIT" ]
null
null
null
scripts/travis_docker_publish.py
vmalloc/mailboxer
23fcdab25911ffd8dc6701bbef01455194c32a9f
[ "MIT" ]
1
2019-11-19T16:09:10.000Z
2019-12-15T13:27:34.000Z
scripts/travis_docker_publish.py
vmalloc/mailboxer
23fcdab25911ffd8dc6701bbef01455194c32a9f
[ "MIT" ]
2
2016-04-10T05:48:48.000Z
2016-05-22T15:26:51.000Z
#! env /usr/bin/python3.6 import logging import os import subprocess import sys if __name__ == "__main__": logging.basicConfig(level='DEBUG', stream=sys.stderr) username = os.environ.get('DOCKER_USERNAME') password = os.environ.get('DOCKER_PASSWORD') travis_branch = os.environ.get('TRAVIS_BRANCH') ...
30.105263
108
0.673077
149
1,144
5.026846
0.389262
0.048064
0.064085
0.080107
0.181575
0
0
0
0
0
0
0.002212
0.20979
1,144
37
109
30.918919
0.826327
0.020979
0
0.068966
0
0
0.322609
0.06613
0
0
0
0
0
1
0
false
0.137931
0.137931
0
0.137931
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
d8d924ab411fc6afce906d1b4b3c8af96dd9326b
675
py
Python
Aula 12 - Condições Aninhadas/desafio037.py
josue-rosa/Python---Curso-em-Video
2d74c7421a49952b7c3eadb1010533525f2de338
[ "MIT" ]
3
2020-10-07T03:21:07.000Z
2020-10-13T14:18:49.000Z
Aula 12 - Condições Aninhadas/desafio037.py
josue-rosa/Python---Curso-em-Video
2d74c7421a49952b7c3eadb1010533525f2de338
[ "MIT" ]
null
null
null
Aula 12 - Condições Aninhadas/desafio037.py
josue-rosa/Python---Curso-em-Video
2d74c7421a49952b7c3eadb1010533525f2de338
[ "MIT" ]
null
null
null
""" Programa que leia um numero inteiro qualquer e peça para o usuário escolher qual será a base de conversão 1 - para binário 2 - para octal 3 - para hexadecimal """ num = int(input('Digite um numero inteiro: ')) print(''' 1 - Converter para BINÁRIO 2 - Converter para OCTAL 3 - Converter para HEXADECIMAL ''') opcao ...
27
105
0.684444
106
675
4.358491
0.45283
0.071429
0.045455
0.084416
0.194805
0.194805
0.194805
0
0
0
0
0.021779
0.183704
675
24
106
28.125
0.816697
0.235556
0
0
0
0
0.655512
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
d8dd45ab3b8853b7423a30138e5f7b943cbb77a0
1,860
py
Python
mahjong_hands (23mar16)/samp.py
jamtot/DailyChallenge
2cb073837620ad57f064f5befca77d4994abf091
[ "MIT" ]
null
null
null
mahjong_hands (23mar16)/samp.py
jamtot/DailyChallenge
2cb073837620ad57f064f5befca77d4994abf091
[ "MIT" ]
null
null
null
mahjong_hands (23mar16)/samp.py
jamtot/DailyChallenge
2cb073837620ad57f064f5befca77d4994abf091
[ "MIT" ]
null
null
null
input1="""14 Circle,4 Circle,5 Circle,6 Bamboo,1 Bamboo,2 Bamboo,3 Character,2 Character,2 Character,2 Circle,1 Circle,1 Bamboo,7 Bamboo,8 Bamboo,9""" input2="""14 Circle,4 Bamboo,1 Circle,5 Bamboo,2 Character,2 Bamboo,3 Character,2 Circle,6 Character,2 Circle,1 Bamboo,8 Circle,1 Bamboo,7 Bamboo,9""" input3="""14 Cir...
20
71
0.574194
285
1,860
3.65614
0.249123
0.184261
0.129559
0.047985
0.501919
0.394434
0.34261
0.203455
0.203455
0.142035
0
0.056677
0.307527
1,860
92
72
20.217391
0.752329
0.068817
0
0.647059
0
0
0.26605
0
0
0
0
0
0
0
null
null
0
0.011765
null
null
0.152941
0
0
0
null
0
0
0
0
0
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
d8debfe8f4d2f9358047b3f2e3525be283af5fff
1,334
py
Python
tests/test_mm.py
insilichem/garleek
d26ca5de914935098ec554bea03b19a0b2067ac7
[ "MIT" ]
5
2018-11-23T14:48:41.000Z
2020-08-30T01:04:32.000Z
tests/test_mm.py
insilichem/garleek
d26ca5de914935098ec554bea03b19a0b2067ac7
[ "MIT" ]
4
2018-05-03T20:13:10.000Z
2019-07-02T08:43:20.000Z
tests/test_mm.py
insilichem/garleek
d26ca5de914935098ec554bea03b19a0b2067ac7
[ "MIT" ]
5
2018-05-15T08:55:05.000Z
2021-06-04T05:08:14.000Z
#!/usr/bin/env python from __future__ import print_function, division, absolute_import import pytest from garleek.mm.tinker import _parse_tinker_testgrad, _parse_tinker_analyze, _parse_tinker_testhess def test_prepare_tinker_xyz(): pass def test_prepare_tinker_inpkey(): pass @pytest.mark.parametrize("pat...
27.791667
99
0.721139
183
1,334
4.912568
0.31694
0.110122
0.063404
0.083426
0.204672
0.082314
0.082314
0
0
0
0
0.028344
0.153673
1,334
47
100
28.382979
0.767936
0.014993
0
0.25
0
0
0.144055
0.081555
0
0
0
0
0.15625
1
0.1875
false
0.09375
0.09375
0
0.28125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d8df2e5d3a228107ed8d0348e455751e809cfb80
265
py
Python
1_languages/python/src/error_handling_exceptions.py
praisetompane/3_programming
dd3e2e89a36a613d895fdbdd9c03845cb648fddf
[ "MIT" ]
null
null
null
1_languages/python/src/error_handling_exceptions.py
praisetompane/3_programming
dd3e2e89a36a613d895fdbdd9c03845cb648fddf
[ "MIT" ]
null
null
null
1_languages/python/src/error_handling_exceptions.py
praisetompane/3_programming
dd3e2e89a36a613d895fdbdd9c03845cb648fddf
[ "MIT" ]
null
null
null
try: age = int(input('please enter age: ')) risk = 100/age print('you are {age} years old na dhave a risk profile of {risk}') except ValueError: print('age cannot be non numerical') except ZeroDivisionError: print('division by zero is invalid')
33.125
70
0.679245
39
265
4.615385
0.769231
0
0
0
0
0
0
0
0
0
0
0.014354
0.211321
265
8
71
33.125
0.84689
0
0
0
0
0
0.484962
0
0
0
0
0
0
1
0
false
0
0
0
0
0.375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d8e7c7433594b41505c71f9b0b27b8dfe8a2a935
1,806
py
Python
scripts/scan.py
RyanJarv/steampipe_alchemy
c8a31303252c1bd8d83d0f9c429d7d0ef7e1690f
[ "BSD-3-Clause" ]
9
2021-04-21T04:21:01.000Z
2021-06-19T19:33:36.000Z
scripts/scan.py
RyanJarv/steampipe_alchemy
c8a31303252c1bd8d83d0f9c429d7d0ef7e1690f
[ "BSD-3-Clause" ]
null
null
null
scripts/scan.py
RyanJarv/steampipe_alchemy
c8a31303252c1bd8d83d0f9c429d7d0ef7e1690f
[ "BSD-3-Clause" ]
1
2021-04-26T21:08:20.000Z
2021-04-26T21:08:20.000Z
# Hacky script to just dump the contents of every table to json files import os import psycopg2.errors from pathlib import Path from sqlalchemy.dialects.postgresql import psycopg2 from steampipe_alchemy import SteamPipe, models import steampipe_alchemy from steampipe_alchemy.models import AwsWellarchitectedWorkload, ...
29.606557
120
0.550388
207
1,806
4.676329
0.47343
0.099174
0.041322
0.051653
0
0
0
0
0
0
0
0.018197
0.330565
1,806
60
121
30.1
0.782465
0.139535
0
0.12
0
0
0.148483
0
0
0
0
0.016667
0
1
0.02
false
0
0.14
0
0.16
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d8e7d81fd19093ab71206272795f4f06b8552fa8
2,231
py
Python
test/test_lifecycle.py
joerlane/meerk40t
a75d78848ff1682640e112111fb6ac4e23e08616
[ "MIT" ]
null
null
null
test/test_lifecycle.py
joerlane/meerk40t
a75d78848ff1682640e112111fb6ac4e23e08616
[ "MIT" ]
null
null
null
test/test_lifecycle.py
joerlane/meerk40t
a75d78848ff1682640e112111fb6ac4e23e08616
[ "MIT" ]
null
null
null
import unittest from meerk40t.kernel import Kernel state = 0 class TestLifeCycle(unittest.TestCase): def test_kernel_lifecycle(self): def lifecycle_test(obj=None, lifecycle=None): global state if lifecycle == "preregister": self.assertEquals(state, 0) ...
33.298507
64
0.470641
195
2,231
5.358974
0.307692
0.168421
0.321531
0.044019
0.076555
0.076555
0
0
0
0
0
0.04386
0.43792
2,231
66
65
33.80303
0.789474
0.012102
0
0.033333
0
0
0.072207
0
0
0
0
0
0.266667
1
0.033333
false
0
0.033333
0
0.083333
0.016667
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
d8e80b90d86c4cdc671bf1c41d628c100fb707e7
1,274
py
Python
src/redfish/ris/sharedtypes.py
MoshiBin/python-redfish-library
b0ba2d9dc6ea1af989962fb7c828bd60d1fe8e35
[ "BSD-3-Clause" ]
1
2019-07-17T02:09:34.000Z
2019-07-17T02:09:34.000Z
src/redfish/ris/sharedtypes.py
MoshiBin/python-redfish-library
b0ba2d9dc6ea1af989962fb7c828bd60d1fe8e35
[ "BSD-3-Clause" ]
null
null
null
src/redfish/ris/sharedtypes.py
MoshiBin/python-redfish-library
b0ba2d9dc6ea1af989962fb7c828bd60d1fe8e35
[ "BSD-3-Clause" ]
null
null
null
# Copyright Notice: # Copyright 2016-2019 DMTF. All rights reserved. # License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/python-redfish-library/blob/master/LICENSE.md # -*- coding: utf-8 -*- """ Shared types used in this module """ #---------Imports--------- import logging impo...
28.954545
127
0.583203
140
1,274
5.257143
0.65
0.024457
0
0
0
0
0
0
0
0
0
0.011803
0.268446
1,274
43
128
29.627907
0.777897
0.454474
0
0
0
0
0.082126
0
0
0
0
0
0
1
0.133333
false
0
0.2
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
d8f10cd003532daf40b2dc76f28e8fb1bb9c9d04
845
py
Python
elections/2008/shapes/readshape.py
markmcd/gmaps-samples
61b3f58eb1286a428843f8401048226b8648a76b
[ "Apache-2.0" ]
50
2015-08-17T05:07:41.000Z
2019-05-22T15:16:51.000Z
elections/2008/shapes/readshape.py
markmcd/gmaps-samples
61b3f58eb1286a428843f8401048226b8648a76b
[ "Apache-2.0" ]
9
2015-08-04T01:48:30.000Z
2017-01-27T18:43:03.000Z
elections/2008/shapes/readshape.py
markmcd/gmaps-samples
61b3f58eb1286a428843f8401048226b8648a76b
[ "Apache-2.0" ]
128
2015-08-04T22:50:17.000Z
2019-08-27T13:01:01.000Z
#!/usr/bin/env python # readshape.py - test import sys import time import shpUtils t1 = time.time() # load the shapefile, populating a list of dictionaries #features = shpUtils.loadShapefile( 'states/st99_d00_shp/st99_d00.shp') shapefile = shpUtils.loadShapefile( 'states/st99_d00_shp-90/st99_d00.shp') features = sha...
21.125
74
0.68284
126
845
4.531746
0.404762
0.049037
0.070053
0.108581
0.129597
0.129597
0
0
0
0
0
0.042373
0.16213
845
39
75
21.666667
0.764124
0.337278
0
0
0
0
0.196007
0.063521
0
0
0
0
0
0
null
null
0.045455
0.136364
null
null
0.181818
0
0
0
null
0
0
0
0
0
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
d8f185680314f332785ad7b5dcf355642e78aa82
5,230
py
Python
tanjun/commands/base.py
Z3R0O2/Tanjun
566584f1abaafc1c7538f204e0159e74d0b80182
[ "BSD-3-Clause" ]
1
2022-03-14T06:15:35.000Z
2022-03-14T06:15:35.000Z
tanjun/commands/base.py
Z3R0O2/Tanjun
566584f1abaafc1c7538f204e0159e74d0b80182
[ "BSD-3-Clause" ]
null
null
null
tanjun/commands/base.py
Z3R0O2/Tanjun
566584f1abaafc1c7538f204e0159e74d0b80182
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # cython: language_level=3 # BSD 3-Clause License # # Copyright (c) 2020-2022, Faster Speeding # 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 sour...
41.181102
111
0.714149
610
5,230
5.991803
0.319672
0.065663
0.066211
0.084268
0.291929
0.270588
0.251436
0.247332
0.09357
0.09357
0
0.002603
0.191969
5,230
126
112
41.507937
0.862281
0.445698
0
0.189655
0
0
0.041447
0.009132
0
0
0
0
0
1
0.224138
false
0
0.103448
0.086207
0.586207
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
d8f3035ed4ed3e1a1d4731feb35a2cd0ee9d704e
3,674
py
Python
src/models/cnn_model.py
scancer-org/ml-pcam-classification
f9ba7482b99647a1a297ad110d71ad67dc7c4672
[ "MIT" ]
1
2021-06-01T09:56:13.000Z
2021-06-01T09:56:13.000Z
src/models/cnn_model.py
scancer-org/ml-pcam-classification
f9ba7482b99647a1a297ad110d71ad67dc7c4672
[ "MIT" ]
4
2021-05-01T12:35:02.000Z
2021-05-15T11:57:37.000Z
src/models/cnn_model.py
scancer-org/ml-pcam-classification
f9ba7482b99647a1a297ad110d71ad67dc7c4672
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F class ModelCNN(nn.Module): """Implemented by paper: http://cs230.stanford.edu/projects_winter_2019/posters/15813053.pdf""" def __init__(self, n_input_channels=3, n_conv_output_channels=16, k=3, s=1, pad=1, p = 0.5): """Init method for initializaing ...
53.246377
155
0.605335
565
3,674
3.718584
0.210619
0.052356
0.115183
0.198953
0.484531
0.422656
0.21466
0.21466
0.181818
0.134222
0
0.060746
0.292052
3,674
69
156
53.246377
0.74702
0.175286
0
0.192308
0
0
0
0
0
0
0
0
0
1
0.057692
false
0
0.038462
0
0.153846
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