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
a98828e92b274eb6eae13e6556ae7fff3be2a963
8,867
py
Python
simple_soccer/two_dimension.py
RyoheiGoto/reinforcement_learning
ff2ddded7fd24c831a5103818b8a747a66a75f0c
[ "MIT" ]
2
2015-11-18T17:47:19.000Z
2016-03-20T08:22:42.000Z
simple_soccer/two_dimension.py
RyoheiGoto/reinforcement_learning
ff2ddded7fd24c831a5103818b8a747a66a75f0c
[ "MIT" ]
1
2015-11-19T18:15:13.000Z
2016-02-09T16:48:23.000Z
simple_soccer/two_dimension.py
RyoheiGoto/ReinforcementLearning
ff2ddded7fd24c831a5103818b8a747a66a75f0c
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt field_width = 396 #cm field_hight = 180 #cm goal_length = 180 #cm threshold = 36 field_width_threshold_num = field_width / threshold + 1 field_width_threshold = [Y * threshold - field_width / 2.0 for Y in xrange(field_width_threshold_num)] field_hight_threshold_num =...
33.587121
149
0.551483
1,205
8,867
3.827386
0.117012
0.056375
0.039462
0.01301
0.401778
0.238075
0.183001
0.16327
0.134866
0.124458
0
0.042946
0.346115
8,867
263
150
33.714829
0.752501
0.010827
0
0.282927
0
0
0.013051
0.006525
0
0
0
0
0
0
null
null
0
0.009756
null
null
0.02439
0
0
0
null
0
0
0
0
0
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
a995cea083a766e717127d27dd67556ccd2542a5
5,382
py
Python
src/models/def_features.py
jshcs/cfe
dc6ca928a124a3e0e0dd64a1d3667a9b313e8c50
[ "MIT" ]
null
null
null
src/models/def_features.py
jshcs/cfe
dc6ca928a124a3e0e0dd64a1d3667a9b313e8c50
[ "MIT" ]
null
null
null
src/models/def_features.py
jshcs/cfe
dc6ca928a124a3e0e0dd64a1d3667a9b313e8c50
[ "MIT" ]
null
null
null
from config import * from utils import * import datetime import pickle indir_vocab_jnames = VOCAB_JNAMES indir_bio_srt = BIO_SRT indir_sorted_fperson_fname = SORTED_FPERSON_FNAME indir_sorted_lperson_fname = SORTED_LPERSON_FNAME print indir_vocab_jnames with open(indir_vocab_jnames,'rb') as v: all_vocab=pickle...
31.290698
102
0.622074
731
5,382
4.325581
0.184679
0.136622
0.057559
0.034156
0.257116
0.165085
0.122707
0.101202
0.061986
0.061986
0
0.010691
0.252694
5,382
172
103
31.290698
0.775485
0.035303
0
0.099237
0
0
0.098532
0
0
0
0
0
0
0
null
null
0
0.030534
null
null
0.015267
0
0
0
null
0
0
0
0
0
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
a998c1d627b7fcf20a5161fbb3c3b4a79699eea3
1,345
py
Python
test/test_delete_contact_from_group.py
schukinp/python_training
8140bbf1aae10052055f272c8deb3a7bdb7abcfb
[ "Apache-2.0" ]
null
null
null
test/test_delete_contact_from_group.py
schukinp/python_training
8140bbf1aae10052055f272c8deb3a7bdb7abcfb
[ "Apache-2.0" ]
null
null
null
test/test_delete_contact_from_group.py
schukinp/python_training
8140bbf1aae10052055f272c8deb3a7bdb7abcfb
[ "Apache-2.0" ]
null
null
null
from fixture.orm import ORMfixture from model.group import Group from model.contact import Contact import random db = ORMfixture(host='127.0.0.1', name='addressbook', user='root', password='') def test_delete_contact_from_group(app): if len(db.get_contact_list()) == 0: app.contact.create(Contact...
44.833333
130
0.710781
192
1,345
4.619792
0.255208
0.146561
0.219842
0.121759
0.385569
0.234498
0.178129
0.178129
0.090192
0
0
0.009141
0.186617
1,345
29
131
46.37931
0.801645
0
0
0
0
0
0.03197
0
0
0
0
0
0.08
1
0.04
false
0.04
0.16
0
0.2
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
a9993f306b253d20a5358a309289cc43d569a04f
323
py
Python
apps/accounts/views.py
martindwyer/Juntos
0aac3add432f5f3fc42befc720b70253d4fef2b4
[ "MIT" ]
null
null
null
apps/accounts/views.py
martindwyer/Juntos
0aac3add432f5f3fc42befc720b70253d4fef2b4
[ "MIT" ]
null
null
null
apps/accounts/views.py
martindwyer/Juntos
0aac3add432f5f3fc42befc720b70253d4fef2b4
[ "MIT" ]
null
null
null
from django.urls import reverse_lazy from django.contrib.auth import get_user_model from django.views.generic import CreateView from . import forms User = get_user_model() class SignUp(CreateView): form_class = forms.UserCreateForm success_url = reverse_lazy('login') template_name = 'accounts/signup.htm...
23.071429
46
0.783282
44
323
5.545455
0.590909
0.122951
0.098361
0
0
0
0
0
0
0
0
0
0.142415
323
13
47
24.846154
0.880866
0
0
0
0
0
0.077399
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.888889
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
a9a1ee58b00c556118c2fed52b5d79faa8995835
2,334
py
Python
integration-tests/src/test/resources/model-in-image/scripts/verify-jdbc-resource.py
tanmaygarg-oracle/weblogic-kubernetes-operator
2920cf3d9ba5c63ef1af6d9e4a574995286f524e
[ "UPL-1.0", "MIT" ]
null
null
null
integration-tests/src/test/resources/model-in-image/scripts/verify-jdbc-resource.py
tanmaygarg-oracle/weblogic-kubernetes-operator
2920cf3d9ba5c63ef1af6d9e4a574995286f524e
[ "UPL-1.0", "MIT" ]
null
null
null
integration-tests/src/test/resources/model-in-image/scripts/verify-jdbc-resource.py
tanmaygarg-oracle/weblogic-kubernetes-operator
2920cf3d9ba5c63ef1af6d9e4a574995286f524e
[ "UPL-1.0", "MIT" ]
null
null
null
# Copyright (c) 2019, 2020, Oracle Corporation and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. connect('weblogic', 'welcome1', 't3://DOMAINNAME-admin-server:7001') # get all JDBC Properties dsCounter = 0 allJDBCResources = cmo.getJDBCSyst...
61.421053
184
0.711225
209
2,334
7.937799
0.425837
0.099458
0.063291
0.065099
0.169982
0.169982
0.169982
0.169982
0.169982
0.169982
0
0.009434
0.137104
2,334
38
185
61.421053
0.8143
0.084404
0
0
0
0
0.27473
0.154243
0
0
0
0
0
0
null
null
0
0
null
null
0.354839
0
0
0
null
0
0
0
0
0
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
8d1326f81b702308f07d05eaa330ea71663f64ad
6,976
py
Python
path-generation/velocity_profile.py
iqzprvagbv/path-planning
c5b1099dbe1aadbd78a1fdb16c0a2f82245c19bc
[ "MIT" ]
null
null
null
path-generation/velocity_profile.py
iqzprvagbv/path-planning
c5b1099dbe1aadbd78a1fdb16c0a2f82245c19bc
[ "MIT" ]
1
2021-06-01T21:26:25.000Z
2021-06-01T21:26:25.000Z
path-generation/velocity_profile.py
iqzprvagbv/path-planning
c5b1099dbe1aadbd78a1fdb16c0a2f82245c19bc
[ "MIT" ]
null
null
null
# Defines a velocity profile, which is the big object we've been # working towards. from math import sqrt, ceil import json class PlanningPoint(object): # pylint: disable=too-many-instance-attributes # planning points unfortunately require this much data def __init__(self, position, time, radius, distanc...
38.32967
96
0.591886
776
6,976
5.103093
0.198454
0.048485
0.04798
0.030303
0.264394
0.208586
0.155556
0.14899
0.127273
0.103535
0
0.006963
0.320671
6,976
181
97
38.541436
0.828656
0.070384
0
0.202703
0
0
0.04976
0
0
0
0
0
0
0
null
null
0
0.013514
null
null
0.081081
0
0
0
null
0
0
0
0
0
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
8d199b44ca6bfd408aa35f9d1da7c224cc1e44a1
968
py
Python
tests/modules/generate/fake_package_repository_resolver.py
goldstar611/appimage-builder
62e4b8781e604545817eb47c058f5be0c0d27d15
[ "MIT" ]
155
2019-12-16T00:04:03.000Z
2022-03-28T11:22:55.000Z
tests/modules/generate/fake_package_repository_resolver.py
goldstar611/appimage-builder
62e4b8781e604545817eb47c058f5be0c0d27d15
[ "MIT" ]
151
2019-11-22T13:13:22.000Z
2022-03-30T21:27:32.000Z
tests/modules/generate/fake_package_repository_resolver.py
goldstar611/appimage-builder
62e4b8781e604545817eb47c058f5be0c0d27d15
[ "MIT" ]
28
2020-01-15T15:30:43.000Z
2022-03-22T08:58:06.000Z
# Copyright 2021 Alexis Lopez Zubieta # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publi...
44
93
0.759298
122
968
6
0.704918
0.075137
0.035519
0
0
0
0
0
0
0
0
0.005031
0.178719
968
21
94
46.095238
0.915723
0.623967
0
0
0
0
0.225071
0
0
0
0
0
0
1
0.125
false
0
0.125
0.125
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
8d1f97cb6d168a2c8e3c97a6da76772adf11469f
239
py
Python
app/__init__.py
pahumadad/flask-oauth
309e235da8d72bb4e33d6fb68eb90b2f5392823a
[ "MIT" ]
1
2017-04-27T09:23:48.000Z
2017-04-27T09:23:48.000Z
app/__init__.py
pahumadad/flask-oauth
309e235da8d72bb4e33d6fb68eb90b2f5392823a
[ "MIT" ]
null
null
null
app/__init__.py
pahumadad/flask-oauth
309e235da8d72bb4e33d6fb68eb90b2f5392823a
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager app = Flask(__name__) app.config.from_object('config') db = SQLAlchemy(app) lm = LoginManager(app) from app import views, models, oauth
21.727273
39
0.803347
34
239
5.441176
0.441176
0.145946
0
0
0
0
0
0
0
0
0
0
0.125523
239
10
40
23.9
0.885167
0
0
0
0
0
0.025105
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
8d2b9627ee560b695980d399a9b852afb9663aac
1,593
py
Python
tests/test_clamp.py
josemolinagarcia/maya-math-nodes
1f83eef1d1efe0b0c3dbb1477ca31ed9f8911ee4
[ "MIT" ]
148
2018-01-12T20:30:45.000Z
2022-02-28T05:20:46.000Z
tests/test_clamp.py
josemolinagarcia/maya-math-nodes
1f83eef1d1efe0b0c3dbb1477ca31ed9f8911ee4
[ "MIT" ]
13
2018-01-17T18:02:13.000Z
2021-11-23T06:06:24.000Z
tests/test_clamp.py
josemolinagarcia/maya-math-nodes
1f83eef1d1efe0b0c3dbb1477ca31ed9f8911ee4
[ "MIT" ]
41
2018-01-16T01:41:29.000Z
2021-08-24T01:27:56.000Z
# Copyright (c) 2018 Serguei Kalentchouk et al. All rights reserved. # Use of this source code is governed by an MIT license that can be found in the LICENSE file. from node_test_case import NodeTestCase, cmds class TestClamp(NodeTestCase): def test_clamp(self): node = self.create_node('Clamp', {'input': ...
44.25
114
0.595731
236
1,593
3.936441
0.29661
0.017223
0.10549
0.077503
0.511302
0.440258
0.440258
0.440258
0.409042
0.355221
0
0.07668
0.205901
1,593
35
115
45.514286
0.657708
0.099812
0
0.181818
0
0
0.180992
0
0
0
0
0
0.136364
1
0.318182
false
0
0.045455
0
0.409091
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
8d2cd1060b91fea7d66c9afe4a0c6e646802593b
3,945
py
Python
web/multilingual/database.py
mahoyen/web
1d190a86e3277315804bfcc0b8f9abd4f9c1d780
[ "MIT" ]
null
null
null
web/multilingual/database.py
mahoyen/web
1d190a86e3277315804bfcc0b8f9abd4f9c1d780
[ "MIT" ]
null
null
null
web/multilingual/database.py
mahoyen/web
1d190a86e3277315804bfcc0b8f9abd4f9c1d780
[ "MIT" ]
null
null
null
import copy import json from django.contrib import admin from django.db import models from web.multilingual.data_structures import MultiLingualTextStructure from web.multilingual.form import MultiLingualFormField, MultiLingualRichTextFormField, \ MultiLingualRichTextUploadingFormField from web.multilingual.widget...
39.848485
119
0.694043
426
3,945
6.293427
0.338028
0.023499
0.026856
0.038046
0.17307
0.157404
0.157404
0.157404
0.157404
0.112645
0
0
0.240811
3,945
98
120
40.255102
0.895159
0.248669
0
0.188679
0
0
0.042771
0.027925
0
0
0
0
0
1
0.113208
false
0
0.132075
0
0.641509
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
8d481fde3510821315275850b3a25299bc9b350d
6,621
py
Python
pytumblr/types.py
9999years/pytumblr
fe9b2fb60866785141fc0deb5a357a773c0f4229
[ "Apache-2.0" ]
null
null
null
pytumblr/types.py
9999years/pytumblr
fe9b2fb60866785141fc0deb5a357a773c0f4229
[ "Apache-2.0" ]
null
null
null
pytumblr/types.py
9999years/pytumblr
fe9b2fb60866785141fc0deb5a357a773c0f4229
[ "Apache-2.0" ]
null
null
null
from collections import UserList from dataclasses import dataclass, field from datetime import datetime from typing import List, Dict, Any, Optional, Type DATE_FORMAT = '%Y-%m-%d %H:%M:%S %Z' def parse_date(tumblr_date: str) -> datetime: return datetime.strptime(tumblr_date, DATE_FORMAT) @dataclass class Link:...
19.247093
71
0.661683
813
6,621
5.221402
0.209102
0.112132
0.109541
0.045936
0.243581
0.170789
0.128386
0.105065
0.052768
0.022615
0
0
0.234104
6,621
343
72
19.303207
0.837113
0.01601
0
0.330579
0
0
0.014962
0
0
0
0
0
0
1
0.070248
false
0.004132
0.016529
0.012397
0.739669
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
8d4876f42fc49dd8332e5b4739b6a7de0c8b9bb2
311
py
Python
simple_jobs_scraper.py
Engnation/Jobs-Scraper
6f8b1207731da9f187db406a5be6916774ba3bc5
[ "MIT" ]
null
null
null
simple_jobs_scraper.py
Engnation/Jobs-Scraper
6f8b1207731da9f187db406a5be6916774ba3bc5
[ "MIT" ]
null
null
null
simple_jobs_scraper.py
Engnation/Jobs-Scraper
6f8b1207731da9f187db406a5be6916774ba3bc5
[ "MIT" ]
null
null
null
from jobs_scraper import JobsScraper # Let's create a new JobsScraper object and perform the scraping for a given query. position_var = "Python" scraper = JobsScraper(country="ca", position=position_var, location="Toronto", pages=3) df = scraper.scrape() df.to_csv(rf'{position_var} jobs.csv', index = False)
34.555556
87
0.768489
47
311
4.978723
0.723404
0.141026
0
0
0
0
0
0
0
0
0
0.003663
0.122187
311
9
88
34.555556
0.85348
0.26045
0
0
0
0
0.165939
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8d52b06f889e9040ed2102aec6867ed5ea6a3b70
684
py
Python
moim/models.py
gyukebox/django-tutorial-moim
ea9bea85dadf22bff58ae26ee1ac59171bbe0240
[ "MIT" ]
null
null
null
moim/models.py
gyukebox/django-tutorial-moim
ea9bea85dadf22bff58ae26ee1ac59171bbe0240
[ "MIT" ]
4
2018-01-01T09:26:30.000Z
2018-01-06T07:13:01.000Z
moim/models.py
gyukebox/django-tutorial-moim
ea9bea85dadf22bff58ae26ee1ac59171bbe0240
[ "MIT" ]
null
null
null
from django.db import models from user.models import UserModel class MoimModel(models.Model): title = models.CharField(max_length=20) creator = models.ForeignKey(UserModel, on_delete=models.CASCADE) created_at = models.DateTimeField(auto_now_add=True) starts_at = models.DateTimeField() max_attende...
36
68
0.730994
80
684
6.075
0.625
0.061728
0.074074
0.098765
0
0
0
0
0
0
0
0.008681
0.157895
684
18
69
38
0.835069
0
0
0
0
0
0.040936
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0.066667
0.933333
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
8d5578255a37005da9d4bcc07955742be9a91579
2,261
py
Python
tests/test_command/test_cat_command.py
bbglab/openvariant
ea1e1b6edf0486b0dea34f43227ba333df1071cc
[ "BSD-3-Clause" ]
null
null
null
tests/test_command/test_cat_command.py
bbglab/openvariant
ea1e1b6edf0486b0dea34f43227ba333df1071cc
[ "BSD-3-Clause" ]
null
null
null
tests/test_command/test_cat_command.py
bbglab/openvariant
ea1e1b6edf0486b0dea34f43227ba333df1071cc
[ "BSD-3-Clause" ]
null
null
null
import unittest from os import getcwd from click.testing import CliRunner from openvariant.commands.openvar import cat class TestCatCommand(unittest.TestCase): def test_cat_command(self): runner = CliRunner() result = runner.invoke(cat, [f'{getcwd()}/tests/data/dataset']) self.assertEqu...
37.065574
121
0.640867
271
2,261
5.166052
0.214022
0.078571
0.107143
0.102857
0.745714
0.702857
0.613571
0.585
0.585
0.556429
0
0.004533
0.219372
2,261
60
122
37.683333
0.788669
0
0
0.418605
0
0.023256
0.213622
0.141973
0
0
0
0
0.255814
1
0.186047
false
0
0.093023
0
0.302326
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8d56bf9a638e31e26421d0d5ccd052c3c7de5f95
246
py
Python
camknows/camknows.py
dreoporto/camknows
769aeb91ff16ff654aa1b182f3564dd26a0f7ad6
[ "MIT" ]
2
2021-09-20T12:29:57.000Z
2021-09-28T11:09:06.000Z
camknows/camknows.py
dreoporto/camknows
769aeb91ff16ff654aa1b182f3564dd26a0f7ad6
[ "MIT" ]
null
null
null
camknows/camknows.py
dreoporto/camknows
769aeb91ff16ff654aa1b182f3564dd26a0f7ad6
[ "MIT" ]
null
null
null
from camera import Camera def main() -> None: try: camera = Camera() camera.start_camera_loop() except KeyboardInterrupt: print('Application closed (KeyboardInterrupt)') if __name__ == '__main__': main()
15.375
55
0.630081
24
246
6.041667
0.666667
0.165517
0
0
0
0
0
0
0
0
0
0
0.264228
246
15
56
16.4
0.801105
0
0
0
0
0
0.187755
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.222222
0.111111
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8d58501cd2a4cf7d4be038ee750ddd345cd594fc
196
py
Python
src/main.py
C4theBomb/python-calendar-app
6776403f7f2440c6497d9a53be5e8d617a2ee817
[ "MIT" ]
null
null
null
src/main.py
C4theBomb/python-calendar-app
6776403f7f2440c6497d9a53be5e8d617a2ee817
[ "MIT" ]
null
null
null
src/main.py
C4theBomb/python-calendar-app
6776403f7f2440c6497d9a53be5e8d617a2ee817
[ "MIT" ]
null
null
null
from calendarApp import shell, models import os def main(): os.system("clear") calendar = models.Calendar("main") shell.main_screen(calendar) if __name__ == "__main__": main()
15.076923
38
0.673469
24
196
5.125
0.583333
0
0
0
0
0
0
0
0
0
0
0
0.19898
196
12
39
16.333333
0.783439
0
0
0
0
0
0.086735
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.375
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8d5938563047da10af2e319b379482b6a7545552
237
py
Python
11-if-elif-else-condition.py
GunarakulanGunaretnam/python-basic-fundamentals
c62bf939fbaef8895d28f85af9ef6ced70801f96
[ "Apache-2.0" ]
null
null
null
11-if-elif-else-condition.py
GunarakulanGunaretnam/python-basic-fundamentals
c62bf939fbaef8895d28f85af9ef6ced70801f96
[ "Apache-2.0" ]
null
null
null
11-if-elif-else-condition.py
GunarakulanGunaretnam/python-basic-fundamentals
c62bf939fbaef8895d28f85af9ef6ced70801f96
[ "Apache-2.0" ]
null
null
null
name = input("Enter your name? ") if name == "guna": print("1234567890") elif name == "david": print("0987654321") elif name == "rakulan": print("12345") elif name == "raj": print("1234455667") else: print("No contacts found")
13.941176
33
0.632911
30
237
5
0.633333
0.16
0
0
0
0
0
0
0
0
0
0.177665
0.168776
237
16
34
14.8125
0.583756
0
0
0
0
0
0.371308
0
0
0
0
0
0
1
0
false
0
0
0
0
0.454545
0
0
0
null
0
0
0
0
0
0
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
8d596a354fbcf53937f22d7c7dc7a505553f0379
5,310
py
Python
pages/process.py
nchibana/dash-app-template
a51ad0ac92e719b2ef60739b6c1126aebb920d47
[ "MIT" ]
null
null
null
pages/process.py
nchibana/dash-app-template
a51ad0ac92e719b2ef60739b6c1126aebb920d47
[ "MIT" ]
4
2020-03-24T17:36:39.000Z
2021-08-23T20:13:16.000Z
pages/process.py
nchibana/dash-app-template
a51ad0ac92e719b2ef60739b6c1126aebb920d47
[ "MIT" ]
null
null
null
import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output import plotly.graph_objects as go import plotly.express as px import plotly.figure_factory as ff from sklearn.metrics import roc_curve import pandas as p...
50.09434
259
0.688512
736
5,310
4.953804
0.461957
0.008777
0.014262
0.018651
0.19062
0.176906
0.160998
0.160998
0.160998
0.160998
0
0.062762
0.23484
5,310
106
260
50.09434
0.834605
0
0
0.3125
0
0.125
0.396491
0.301754
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
8d5bd4af92a66ece14d4931534ffa3416cb4b661
3,919
py
Python
plugins/tff_backend/bizz/payment.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/bizz/payment.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/bizz/payment.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2017 GIG Technology NV # # 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...
42.597826
120
0.720082
468
3,919
5.865385
0.380342
0.04663
0.033515
0.028415
0.051002
0.023315
0
0
0
0
0
0.006947
0.191886
3,919
91
121
43.065934
0.859804
0.256953
0
0.035714
0
0
0.074074
0.01073
0
0
0
0.010989
0
1
0.053571
false
0
0.142857
0.017857
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
8d606a3efd5feb490b057183d05dc39513b2525a
3,519
py
Python
erp/migrations/0026_auto_20200205_0950.py
Foohx/acceslibre
55135e096f2ec4e413ff991f01c17f5e0d5925c0
[ "MIT" ]
8
2020-07-23T08:17:28.000Z
2022-03-09T22:31:36.000Z
erp/migrations/0026_auto_20200205_0950.py
Foohx/acceslibre
55135e096f2ec4e413ff991f01c17f5e0d5925c0
[ "MIT" ]
37
2020-07-01T08:47:33.000Z
2022-02-03T19:50:58.000Z
erp/migrations/0026_auto_20200205_0950.py
Foohx/acceslibre
55135e096f2ec4e413ff991f01c17f5e0d5925c0
[ "MIT" ]
4
2021-04-08T10:57:18.000Z
2022-01-31T13:16:31.000Z
# Generated by Django 3.0.3 on 2020-02-05 08:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('erp', '0025_auto_20200205_0839'), ] operations = [ migrations.AddField( model_name='cheminement', name='aide_humaine...
59.644068
627
0.651321
401
3,519
5.59601
0.296758
0.036096
0.089127
0.103387
0.51025
0.480838
0.336898
0.265597
0.103387
0.103387
0
0.015479
0.210571
3,519
58
628
60.672414
0.792297
0.012788
0
0.5
1
0
0.40121
0.02765
0
0
0
0
0
1
0
false
0
0.057692
0
0.115385
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
8d633804dd70bc9958af00b42a11e0de38e402fd
4,122
py
Python
scripts/old/modbus_server.py
SamKaiYang/ros_modbus_nex
b698cc73df65853866112f7501432a8509a2545c
[ "BSD-2-Clause" ]
null
null
null
scripts/old/modbus_server.py
SamKaiYang/ros_modbus_nex
b698cc73df65853866112f7501432a8509a2545c
[ "BSD-2-Clause" ]
null
null
null
scripts/old/modbus_server.py
SamKaiYang/ros_modbus_nex
b698cc73df65853866112f7501432a8509a2545c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python ########################################################################### # This software is graciously provided by HumaRobotics # under the Simplified BSD License on # github: git@www.humarobotics.com:baxter_tasker # HumaRobotics is a trademark of Generation Robots. # www.humarobotics.com #...
40.411765
125
0.694081
550
4,122
5.152727
0.449091
0.007057
0.011644
0.016231
0.064926
0.047989
0.047989
0.047989
0.047989
0.047989
0
0.015844
0.203785
4,122
101
126
40.811881
0.847654
0.576419
0
0.131579
0
0.026316
0.203368
0.042098
0
0
0
0
0
0
null
null
0
0.078947
null
null
0.105263
0
0
0
null
0
0
0
0
0
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
8d683b8c02d8d22cc3724afc4a6f8b486b4fd023
325
py
Python
OLD.dir/myclient1.py
romchegue/Python
444476088e64d5da66cb00174f3d1d30ebbe38f6
[ "bzip2-1.0.6" ]
null
null
null
OLD.dir/myclient1.py
romchegue/Python
444476088e64d5da66cb00174f3d1d30ebbe38f6
[ "bzip2-1.0.6" ]
null
null
null
OLD.dir/myclient1.py
romchegue/Python
444476088e64d5da66cb00174f3d1d30ebbe38f6
[ "bzip2-1.0.6" ]
null
null
null
''' myclient1.py - imports mymod.py and check its operation. ''' from mymod import test, countChars, countChars1, countLines, countLines1 text = 'test.txt' file = open(text) print(test(text), test(file)) print(countChars(text), countChars1(file)) print(countLines(text), countLines1(file)) print('\nedited again versio...
23.214286
72
0.744615
42
325
5.761905
0.547619
0.11157
0
0
0
0
0
0
0
0
0
0.017301
0.110769
325
13
73
25
0.820069
0.172308
0
0
0
0
0.115385
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.571429
0
0
0
null
0
0
0
0
0
0
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
8d6e5ae82deb7b5311529c66cb9a669824faeec2
2,645
py
Python
tests/test_compliance.py
simongarisch/pytrade
6245c0a47017a880299fa7704a49580f394fa87b
[ "MIT" ]
2
2020-10-19T02:44:57.000Z
2021-11-08T10:45:25.000Z
tests/test_compliance.py
simongarisch/pytrade
6245c0a47017a880299fa7704a49580f394fa87b
[ "MIT" ]
1
2020-12-24T02:59:58.000Z
2020-12-24T02:59:58.000Z
tests/test_compliance.py
simongarisch/pytrade
6245c0a47017a880299fa7704a49580f394fa87b
[ "MIT" ]
null
null
null
import pytest from pxtrade.assets import reset, Stock, Portfolio from pxtrade.compliance import ( Compliance, UnitLimit, WeightLimit, ) class TestCompliance(object): def setup_method(self, *args): reset() stock1 = self.stock1 = Stock("BBB US", 2.00, currency_code="USD") stock2 ...
32.654321
73
0.625331
297
2,645
5.501684
0.218855
0.04284
0.058752
0.091799
0.556916
0.525092
0.389229
0.389229
0.389229
0.334149
0
0.03486
0.273346
2,645
80
74
33.0625
0.815297
0.065028
0
0.387097
0
0
0.049473
0
0
0
0
0
0.145161
1
0.112903
false
0.112903
0.048387
0
0.177419
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
8d76f8f9957c274ab98fcb861cac123b90567879
771
py
Python
app/validators/user_validator.py
allanzi/truck-challenge
7734a011de899184b673e99fd1c2ff92a6af65b9
[ "CECILL-B" ]
null
null
null
app/validators/user_validator.py
allanzi/truck-challenge
7734a011de899184b673e99fd1c2ff92a6af65b9
[ "CECILL-B" ]
null
null
null
app/validators/user_validator.py
allanzi/truck-challenge
7734a011de899184b673e99fd1c2ff92a6af65b9
[ "CECILL-B" ]
null
null
null
from marshmallow import Schema, fields from marshmallow.validate import Length, Range class UserCreateValidator(Schema): name = fields.Str(required=True, validate=Length(max=60)) age = fields.Integer(required=True, validate=Range(min=18, max=100)) driver_license_type = fields.Str(required=True, validate=Le...
42.833333
75
0.743191
105
771
5.342857
0.304762
0.128342
0.121212
0.067736
0.5918
0.483066
0.483066
0.299465
0.178253
0.178253
0
0.023988
0.13489
771
18
76
42.833333
0.817091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.125
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
8d832e77f438b0dd65c0dff2da0ca039538bc5cd
2,019
py
Python
utils/tweets_to_txt.py
magsol/datascibun
bb118eac59dc238c42f659871e25619d994f8575
[ "Apache-2.0" ]
null
null
null
utils/tweets_to_txt.py
magsol/datascibun
bb118eac59dc238c42f659871e25619d994f8575
[ "Apache-2.0" ]
null
null
null
utils/tweets_to_txt.py
magsol/datascibun
bb118eac59dc238c42f659871e25619d994f8575
[ "Apache-2.0" ]
1
2022-03-01T01:45:47.000Z
2022-03-01T01:45:47.000Z
import argparse import json import re def remove_urls(tweet): return re.sub(r"http\S+", "", tweet) def fix_amp(tweet): return tweet.replace("&", "&") def remove_hashtags(tweet): return re.sub(r"#\w+\s*", "", tweet) def remove_mentions(tweet): return re.sub(r"@\w+\s*", "", tweet) def remove_rt(t...
27.657534
91
0.574542
260
2,019
4.357692
0.373077
0.070609
0.045896
0.056487
0.088261
0.058252
0.058252
0.058252
0.058252
0.058252
0
0.014094
0.262011
2,019
72
92
28.041667
0.746309
0.086181
0
0.041667
0
0
0.184641
0
0
0
0
0
0
1
0.125
false
0
0.0625
0.125
0.3125
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
8d85dffad6d22403418ce3ef5e06280cc317b3e4
528
py
Python
truechat/chat/migrations/0007_auto_20191026_2020.py
TrueChat/Backend
7d2bc73d5b7f157d7499a65af4157e1ddeb7a0ac
[ "MIT" ]
1
2019-12-19T19:04:33.000Z
2019-12-19T19:04:33.000Z
truechat/chat/migrations/0007_auto_20191026_2020.py
TrueChat/Backend
7d2bc73d5b7f157d7499a65af4157e1ddeb7a0ac
[ "MIT" ]
6
2020-06-05T23:42:41.000Z
2022-02-10T13:32:59.000Z
truechat/chat/migrations/0007_auto_20191026_2020.py
TrueChat/Backend
7d2bc73d5b7f157d7499a65af4157e1ddeb7a0ac
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-10-26 20:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('chat', '0006_auto_20191022_1218'), ] operations = [ migrations.RemoveField( model_name='membership', name='is_admin'...
22.956522
81
0.587121
54
528
5.592593
0.722222
0.059603
0.125828
0.152318
0.165563
0
0
0
0
0
0
0.083558
0.297348
528
22
82
24
0.730458
0.085227
0
0.25
1
0
0.155925
0.047817
0
0
0
0
0
1
0
false
0
0.0625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8d86a97241dd9580e12d59014523e0d42f09b38e
354
py
Python
libs/baseclass/about_screen.py
wildscsi/ecopos
9922bb5160227777401eb33fa9a01cfba5730781
[ "MIT" ]
null
null
null
libs/baseclass/about_screen.py
wildscsi/ecopos
9922bb5160227777401eb33fa9a01cfba5730781
[ "MIT" ]
1
2021-11-04T20:43:03.000Z
2021-11-04T20:43:03.000Z
libs/baseclass/about_screen.py
wildscsi/ecopos
9922bb5160227777401eb33fa9a01cfba5730781
[ "MIT" ]
1
2021-11-04T19:43:53.000Z
2021-11-04T19:43:53.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2020 CPV.BY # # For suggestions and questions: # <7664330@gmail.com> # # LICENSE: Commercial import webbrowser from kivymd.theming import ThemableBehavior from kivymd.uix.screen import MDScreen class AboutScreen(ThemableBehavior, MDScreen): def open_url(self, instance, u...
19.666667
46
0.728814
43
354
5.976744
0.767442
0.077821
0
0
0
0
0
0
0
0
0
0.040268
0.158192
354
17
47
20.823529
0.822148
0.333333
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.5
0
0.833333
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
8d8dfcd12be52225c59666f19fa694cef189e9ea
1,373
py
Python
bot/utilities/api/helpers/score.py
AiratK/kaishnik-bot
c42351611a40a04d78c8ae481b97339adbd321e5
[ "MIT" ]
null
null
null
bot/utilities/api/helpers/score.py
AiratK/kaishnik-bot
c42351611a40a04d78c8ae481b97339adbd321e5
[ "MIT" ]
null
null
null
bot/utilities/api/helpers/score.py
AiratK/kaishnik-bot
c42351611a40a04d78c8ae481b97339adbd321e5
[ "MIT" ]
null
null
null
from typing import List from typing import Tuple from bot.utilities.api.constants import SCORE_TEMPLATE def beautify_score(raw_score_table_data: List[List[str]]) -> List[Tuple[str, str]]: # Slightly refining traditional assessment to be written starting with lower case letter for (subject_index, subject_score_data...
39.228571
116
0.780772
194
1,373
5.226804
0.391753
0.189349
0.252465
0.106509
0.180473
0.112426
0.112426
0.112426
0.112426
0
0
0.014143
0.124545
1,373
34
117
40.382353
0.829451
0.236708
0
0
0
0
0.076849
0.045149
0
0
0
0
0
1
0.058824
false
0
0.176471
0
0.294118
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
8d92051bcbbae105ab8b259c257c80d404e8f4eb
2,389
py
Python
src/attack_surface_pypy/__main__.py
ccrvs/attack_surface_pypy
f2bc9998cf42f4764f1c495e6243d970e01bd176
[ "CC0-1.0" ]
null
null
null
src/attack_surface_pypy/__main__.py
ccrvs/attack_surface_pypy
f2bc9998cf42f4764f1c495e6243d970e01bd176
[ "CC0-1.0" ]
null
null
null
src/attack_surface_pypy/__main__.py
ccrvs/attack_surface_pypy
f2bc9998cf42f4764f1c495e6243d970e01bd176
[ "CC0-1.0" ]
null
null
null
import argparse import gc import pathlib import sys import typing import uvicorn # type: ignore from attack_surface_pypy import __service_name__, __version__, asgi from attack_surface_pypy import logging as app_logging from attack_surface_pypy import settings # logger = structlog.get_logger() gc.disable() parser =...
29.493827
117
0.686061
304
2,389
5.144737
0.348684
0.084399
0.060742
0.076726
0.171995
0.025575
0
0
0
0
0
0.002577
0.187945
2,389
80
118
29.8625
0.803608
0.085391
0
0.057971
0
0
0.15427
0.050505
0
0
0
0.0125
0
1
0.014493
false
0
0.130435
0
0.144928
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
8d92eb64df1700c877aeea998c716029d6df8ce0
391
py
Python
subscriptions/migrations/0004_auto_20200630_1157.py
Naveendata-ux/tor_redesign
e4b5135f8b4134527ad04a097bdffd9d956d9858
[ "BSD-2-Clause" ]
null
null
null
subscriptions/migrations/0004_auto_20200630_1157.py
Naveendata-ux/tor_redesign
e4b5135f8b4134527ad04a097bdffd9d956d9858
[ "BSD-2-Clause" ]
null
null
null
subscriptions/migrations/0004_auto_20200630_1157.py
Naveendata-ux/tor_redesign
e4b5135f8b4134527ad04a097bdffd9d956d9858
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.2.5 on 2020-06-30 11:57 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('subscriptions', '0003_auto_20200630_1156'), ] operations = [ migrations.RenameField( model_name='subscriptionplan', old_name...
20.578947
53
0.613811
41
391
5.658537
0.780488
0.094828
0.12931
0
0
0
0
0
0
0
0
0.11032
0.28133
391
18
54
21.722222
0.715302
0.11509
0
0
1
0
0.22093
0.06686
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
8d9365bf3bc3b96e70ffdbc229d46a96e3d6b3fd
545
py
Python
Random_Colored/main.py
usamaahsan93/mischief-managed
824022ecaeda46450ca1029bceb39f194c363138
[ "MIT" ]
null
null
null
Random_Colored/main.py
usamaahsan93/mischief-managed
824022ecaeda46450ca1029bceb39f194c363138
[ "MIT" ]
null
null
null
Random_Colored/main.py
usamaahsan93/mischief-managed
824022ecaeda46450ca1029bceb39f194c363138
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jun 2 16:54:10 2021 @author: sdn1 """ class bcolors: HEADER = '\033[95m' OKBLUE = '\033[94m' OKCYAN = '\033[96m' OKGREEN = '\033[92m' WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' BOLD = '\033[1m' UNDERLI...
17.03125
83
0.552294
83
545
3.626506
0.722892
0.013289
0
0
0
0
0
0
0
0
0
0.164216
0.251376
545
31
84
17.580645
0.573529
0.172477
0
0
0
0
0.20362
0
0
0
0
0
0
1
0
false
0
0.105263
0
0.631579
0.105263
0
0
0
null
0
0
0
0
0
0
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
8d9464e17bd59a5730ae1d8d76d451408c780a27
4,049
py
Python
python/src/main/python/common/threadctl.py
esnet/netshell
4cb010b63e72610cf81112b29587d3e980612333
[ "BSD-3-Clause-LBNL" ]
6
2016-02-17T16:31:55.000Z
2021-03-16T20:17:41.000Z
python/src/main/python/common/threadctl.py
esnet/netshell
4cb010b63e72610cf81112b29587d3e980612333
[ "BSD-3-Clause-LBNL" ]
27
2016-04-11T19:49:04.000Z
2016-07-14T06:05:52.000Z
python/src/main/python/common/threadctl.py
esnet/netshell
4cb010b63e72610cf81112b29587d3e980612333
[ "BSD-3-Clause-LBNL" ]
1
2017-07-31T19:30:50.000Z
2017-07-31T19:30:50.000Z
# ESnet Network Operating System (ENOS) Copyright (c) 2015, The Regents # of the University of California, through Lawrence Berkeley National # Laboratory (subject to receipt of any required approvals from the # U.S. Dept. of Energy). All rights reserved. # # If you have questions about your rights to use or distribut...
29.772059
96
0.613732
476
4,049
5.197479
0.384454
0.006467
0.008084
0.021827
0.05093
0.034762
0.034762
0.034762
0.034762
0.034762
0
0.0056
0.294394
4,049
135
97
29.992593
0.860343
0.211657
0
0.213592
0
0.009709
0.124724
0
0
0
0
0
0
0
null
null
0
0.019417
null
null
0.174757
0
0
0
null
0
0
0
0
0
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
8d97b86230f6560f3cd37b723cba275b3f968cb2
1,635
py
Python
setup.py
robflintham/mippy
e642c697202acc5b96b42f62204786bf5e705c9a
[ "BSD-3-Clause" ]
null
null
null
setup.py
robflintham/mippy
e642c697202acc5b96b42f62204786bf5e705c9a
[ "BSD-3-Clause" ]
null
null
null
setup.py
robflintham/mippy
e642c697202acc5b96b42f62204786bf5e705c9a
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) def get_version(): import mippy return mippy.__version__ def test_version(): version = get_version() import datetime import os # Get times...
29.727273
92
0.666055
205
1,635
5.141463
0.502439
0.034156
0.048387
0.058824
0.081594
0.081594
0
0
0
0
0
0.004615
0.204893
1,635
54
93
30.277778
0.806154
0.091743
0
0
0
0
0.200676
0.017568
0
0
0
0
0
0
null
null
0
0.162791
null
null
0.023256
0
0
0
null
0
0
0
0
0
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
8da6f40241c238cd5d1aecce8bbe81273d1e484a
5,570
py
Python
Decission_Tree/mytree.py
luoshao23/ML_algorithm
6e94fdd0718cd892118fd036c7c5851cf3e6d796
[ "MIT" ]
4
2017-06-19T06:33:38.000Z
2019-01-31T12:07:12.000Z
Decission_Tree/mytree.py
luoshao23/ML_algorithm
6e94fdd0718cd892118fd036c7c5851cf3e6d796
[ "MIT" ]
null
null
null
Decission_Tree/mytree.py
luoshao23/ML_algorithm
6e94fdd0718cd892118fd036c7c5851cf3e6d796
[ "MIT" ]
1
2017-12-06T08:41:06.000Z
2017-12-06T08:41:06.000Z
from math import log from PIL import Image, ImageDraw from collections import Counter import numpy as np from pandas import DataFrame # my_data = [['slashdot', 'USA', 'yes', 18, 213.2, 'None'], # ['google', 'France', 'yes', 23, 121.2, 'Premium'], # ['digg', 'USA', 'yes', 24, 21.32, 'Basic'], # ...
31.828571
89
0.498025
704
5,570
3.890625
0.18608
0.014604
0.013143
0.021906
0.229646
0.088353
0.043081
0.022636
0.022636
0
0
0.048566
0.305027
5,570
174
90
32.011494
0.659003
0.308438
0
0.1
0
0
0.034328
0
0
0
0
0
0
0
null
null
0.027273
0.045455
null
null
0.072727
0
0
0
null
0
0
0
0
0
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
8da9e0178f00d72e18dd60857fa82ec6eecb27f0
10,063
py
Python
examples/exchange_demag/test_exchange_demag.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
10
2018-03-24T07:43:17.000Z
2022-03-26T10:42:27.000Z
examples/exchange_demag/test_exchange_demag.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
21
2018-03-26T15:08:53.000Z
2021-07-10T16:11:14.000Z
examples/exchange_demag/test_exchange_demag.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
7
2018-04-09T11:50:48.000Z
2021-06-10T09:23:25.000Z
import os import logging import matplotlib matplotlib.use('Agg') import pylab as p import numpy as np import dolfin as df from finmag import Simulation as Sim from finmag.energies import Exchange, Demag from finmag.util.meshes import from_geofile, mesh_volume import pytest logger = logging.getLogger(name='finmag') M...
37.408922
114
0.644241
1,513
10,063
4.109055
0.156642
0.050185
0.054689
0.087502
0.483996
0.452469
0.43365
0.362393
0.31446
0.227441
0
0.017295
0.195568
10,063
268
115
37.548507
0.75071
0.080791
0
0.185185
0
0
0.215002
0.033772
0
0
0
0.003731
0.037037
0
null
null
0
0.05291
null
null
0.063492
0
0
0
null
0
0
0
0
0
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
a5c09a3f2e4a0708c742cfe5829c7e01efbe2a70
300
py
Python
ABC151-200/ABC192/abc192_c.py
billyio/atcoder
9d16765f91f28deeb7328fcc6c19541ee790941f
[ "MIT" ]
1
2021-02-01T08:48:07.000Z
2021-02-01T08:48:07.000Z
ABC151-200/ABC192/abc192_c.py
billyio/atcoder
9d16765f91f28deeb7328fcc6c19541ee790941f
[ "MIT" ]
null
null
null
ABC151-200/ABC192/abc192_c.py
billyio/atcoder
9d16765f91f28deeb7328fcc6c19541ee790941f
[ "MIT" ]
null
null
null
N, K = map(int, input().split()) ans = N for i in range(K): num_list = [int(n) for n in str(ans)] g1 = sorted(num_list, reverse=True) g1 = ''.join((str(g) for g in g1)) g2 = sorted(num_list, reverse=False) g2 = ''.join((str(g) for g in g2)) ans = int(g1) - int(g2) print(ans)
27.272727
41
0.566667
57
300
2.929825
0.403509
0.125749
0.155689
0.239521
0.167665
0.167665
0
0
0
0
0
0.034935
0.236667
300
11
42
27.272727
0.694323
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.1
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
a5c927734733b551301c1522c13b6095afdcc07d
903
py
Python
backend/customers/migrations/0001_initial.py
cbreezy623/modabella
b68bcc8aca903887d31489baae609ed70fe3dba7
[ "Apache-2.0" ]
null
null
null
backend/customers/migrations/0001_initial.py
cbreezy623/modabella
b68bcc8aca903887d31489baae609ed70fe3dba7
[ "Apache-2.0" ]
null
null
null
backend/customers/migrations/0001_initial.py
cbreezy623/modabella
b68bcc8aca903887d31489baae609ed70fe3dba7
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.1 on 2020-10-02 01:11 from django.db import migrations, models import phonenumber_field.modelfields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Customer', fields=[ ...
33.444444
127
0.604651
93
903
5.752688
0.602151
0.074766
0.119626
0.097196
0.235514
0.142056
0.142056
0
0
0
0
0.040119
0.254707
903
26
128
34.730769
0.754829
0.049834
0
0
1
0
0.053738
0
0
0
0
0
0
1
0
false
0
0.105263
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
a5cabad6e15a3e94d18ccf5c8c5a2de2396af9ef
3,867
py
Python
graphdot/minipandas/dataframe.py
yhtang/GraphDot
3d5ed4fbb2f6912052baa42780b436da76979691
[ "BSD-3-Clause-LBNL" ]
9
2020-02-14T18:07:39.000Z
2021-12-15T12:07:31.000Z
graphdot/minipandas/dataframe.py
yhtang/graphdot
3d5ed4fbb2f6912052baa42780b436da76979691
[ "BSD-3-Clause-LBNL" ]
3
2020-03-19T19:07:26.000Z
2021-02-24T06:08:51.000Z
graphdot/minipandas/dataframe.py
yhtang/graphdot
3d5ed4fbb2f6912052baa42780b436da76979691
[ "BSD-3-Clause-LBNL" ]
3
2019-10-17T06:11:18.000Z
2021-05-07T11:56:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from collections import namedtuple import numpy as np import pandas as pd from .series import Series class DataFrame: def __init__(self, data=None): self._data = {} if isinstance(data, dict): for key, value in data.items(): ...
32.495798
79
0.573054
502
3,867
4.229084
0.278884
0.067829
0.033914
0.016957
0.112106
0.056524
0.056524
0.056524
0.024494
0
0
0.000752
0.312645
3,867
118
80
32.771186
0.797968
0.111715
0
0.120482
0
0
0.024189
0
0
0
0
0
0
1
0.216867
false
0
0.048193
0.060241
0.46988
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
a5cdc723644cccdf87dcd59c16c72ac9871189a8
2,753
py
Python
polecat/deploy/aws/deployment.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
4
2019-08-10T12:56:12.000Z
2020-01-21T09:51:20.000Z
polecat/deploy/aws/deployment.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
71
2019-04-09T05:39:21.000Z
2020-05-16T23:09:24.000Z
polecat/deploy/aws/deployment.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
null
null
null
from termcolor import colored from ...utils.feedback import feedback from .constants import DEPLOYMENT_PREFIX, DEPLOYMENT_REGISTRY from .exceptions import EntityDoesNotExist, EntityExists from .operations import delete_parameter, get_parameter, set_parameter from .project import assert_project_exists from .utils impor...
38.774648
98
0.698147
315
2,753
5.965079
0.260317
0.041511
0.040447
0.065993
0.481639
0.481639
0.310271
0.310271
0.291112
0.291112
0
0.000459
0.2085
2,753
70
99
39.328571
0.861863
0.081729
0
0.314815
0
0
0.100714
0.022998
0
0
0
0.014286
0.111111
1
0.092593
false
0.018519
0.12963
0
0.259259
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
a5d51824f01f43c1a1f7165def53773a506fe72b
656
py
Python
glia/widgets/editor/tabs.py
gliahq/Glia
4951569f2759ea886bad165b6d74a569c14bbd2a
[ "Apache-2.0" ]
1
2020-08-20T08:22:33.000Z
2020-08-20T08:22:33.000Z
glia/widgets/editor/tabs.py
gliahq/Glia
4951569f2759ea886bad165b6d74a569c14bbd2a
[ "Apache-2.0" ]
3
2021-04-20T18:20:45.000Z
2021-06-01T23:56:13.000Z
glia/widgets/editor/tabs.py
gliahq/Glia
4951569f2759ea886bad165b6d74a569c14bbd2a
[ "Apache-2.0" ]
null
null
null
from PyQt5.QtWidgets import QTabWidget from glia.widgets.editor import Editor class EditorTabs(QTabWidget): def __init__(self, parent=None): """ Generates tab with editor depending on the file and it's type selected. """ super(EditorTabs, self).__init__(parent) # ...
24.296296
69
0.643293
74
656
5.540541
0.581081
0.04878
0.073171
0
0
0
0
0
0
0
0
0.002083
0.268293
656
26
70
25.230769
0.852083
0.164634
0
0
1
0
0.013619
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a5d8c45707967ee83846553d1837407bb63fcb57
2,296
py
Python
tests/test_aws_tdd.py
Fauxsys/offprem
9fe4764b24578b1ada43cfab600379b55fed038d
[ "MIT" ]
null
null
null
tests/test_aws_tdd.py
Fauxsys/offprem
9fe4764b24578b1ada43cfab600379b55fed038d
[ "MIT" ]
null
null
null
tests/test_aws_tdd.py
Fauxsys/offprem
9fe4764b24578b1ada43cfab600379b55fed038d
[ "MIT" ]
null
null
null
""" Test Driven Development. """ import pytest @pytest.fixture def profiles() -> dict: production = 'production' staging = 'staging' qa = 'qa' return {'production': production, 'staging': staging, 'qa': qa} @pytest.mark.skip(reason='Method not yet implemented.') def test_add_profile(environment, pro...
31.888889
78
0.761324
284
2,296
5.996479
0.239437
0.05872
0.082208
0.11744
0.598943
0.598943
0.554316
0.554316
0.481503
0.481503
0
0.001995
0.126742
2,296
71
79
32.338028
0.847382
0.029617
0
0.347826
0
0
0.173874
0
0
0
0
0
0.108696
1
0.23913
false
0
0.021739
0
0.282609
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
a5d993daf62319705e260124c70d45da91cc0c68
1,743
py
Python
CursoPython/dia 2/copia de clase.py
hamfree/PYTHON
2df83c1da393f05cadf0fe3f8d3173d4420eda60
[ "Apache-2.0" ]
null
null
null
CursoPython/dia 2/copia de clase.py
hamfree/PYTHON
2df83c1da393f05cadf0fe3f8d3173d4420eda60
[ "Apache-2.0" ]
null
null
null
CursoPython/dia 2/copia de clase.py
hamfree/PYTHON
2df83c1da393f05cadf0fe3f8d3173d4420eda60
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- # pylint: disable=E1601 """ 17/02/2018 Profesores: Álvaro Sánchez de Cruz / ??? - Se hace un repaso de lo que se impartió el día anterior. - Subprogramas o funciones: - Viene de la programación estructurada. - Sintaxis: def nombreFuncion([para...
24.549296
104
0.596672
244
1,743
4.262295
0.545082
0.026923
0.043269
0.032692
0.060577
0.060577
0
0
0
0
0
0.022925
0.27424
1,743
70
105
24.9
0.799209
0.168101
0
0
0
0
0.184358
0.042831
0
0
0
0
0
0
null
null
0
0
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
a5da4714ac6a7f9235bc1e8123d0bcfaf76ea57c
260
py
Python
CH_10_testing_and_logging/T_26_logging_json_config.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
CH_10_testing_and_logging/T_26_logging_json_config.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
CH_10_testing_and_logging/T_26_logging_json_config.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
import os import json from logging import config name = os.path.splitext(__file__)[0] json_filename = os.path.join(os.path.dirname(__file__), f'{name}.json') with open(json_filename) as fh: config.dictConfig(json.load(fh))
20
55
0.661538
37
260
4.378378
0.567568
0.111111
0
0
0
0
0
0
0
0
0
0.004926
0.219231
260
12
56
21.666667
0.793103
0
0
0
0
0
0.042636
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
a5df58684b3949214fa0f306fa78ff1bd3a232de
3,333
py
Python
examples/datamining/page_rank.py
pooya/disco
e03a337b3b20e191459c74a367b9e89e873f71ff
[ "BSD-3-Clause" ]
786
2015-01-01T12:35:40.000Z
2022-03-19T04:39:22.000Z
examples/datamining/page_rank.py
pooya/disco
e03a337b3b20e191459c74a367b9e89e873f71ff
[ "BSD-3-Clause" ]
51
2015-01-19T20:07:01.000Z
2019-10-19T21:03:06.000Z
examples/datamining/page_rank.py
pooya/disco
e03a337b3b20e191459c74a367b9e89e873f71ff
[ "BSD-3-Clause" ]
122
2015-01-05T18:16:03.000Z
2021-07-10T12:35:22.000Z
# Copyright 2009-2010 Yelp # Copyright 2013 David Marin # Copyright 2014 Disco Project # # 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 # # Unles...
26.452381
120
0.645965
524
3,333
4.022901
0.387405
0.009488
0.007116
0.009488
0.013283
0.013283
0.013283
0
0
0
0
0.086991
0.248125
3,333
125
121
26.664
0.75419
0.179418
0
0
0
0
0.077901
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.022222
0
0
0
null
0
0
0
0
0
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
a5ea9efb676efad8c603777a80d368a57ffbe7ba
2,204
py
Python
arbeitsplan/management/commands/meldungConsistent.py
hkarl/svpb
29aab0065ff69c7c4d52812508167514d635cab9
[ "Apache-2.0" ]
3
2015-02-20T14:53:17.000Z
2020-12-01T19:29:14.000Z
arbeitsplan/management/commands/meldungConsistent.py
hkarl/svpb
29aab0065ff69c7c4d52812508167514d635cab9
[ "Apache-2.0" ]
67
2015-01-06T19:48:59.000Z
2022-03-20T16:56:22.000Z
arbeitsplan/management/commands/meldungConsistent.py
hkarl/svpb
29aab0065ff69c7c4d52812508167514d635cab9
[ "Apache-2.0" ]
2
2015-12-07T09:21:10.000Z
2015-12-30T18:36:53.000Z
""" Define a command that should be run from a crontab. This one should check consistency of Meldungen: at most one Meldung per Aufgabe, per User. """ from django.core.management.base import BaseCommand, CommandError from django.core.management import call_command from django.utils import translation from django.conf...
29.783784
72
0.587114
227
2,204
5.656388
0.550661
0.038941
0.03271
0.024922
0
0
0
0
0
0
0
0.000672
0.325318
2,204
73
73
30.191781
0.862811
0.157441
0
0
0
0
0.126566
0.017544
0
0
0
0
0
0
null
null
0
0.243243
null
null
0.081081
0
0
0
null
0
0
0
0
0
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
a5ece29e8598f0696a2017f159b9027891f278ea
1,215
py
Python
app/migrations/0013_auto_20200907_1056.py
mapoetto/group2_CTFLab
5b492ce46875ea37a57701686897bd9613e2dd13
[ "MIT" ]
1
2021-10-15T14:37:33.000Z
2021-10-15T14:37:33.000Z
app/migrations/0013_auto_20200907_1056.py
mapoetto/group2_CTFLab
5b492ce46875ea37a57701686897bd9613e2dd13
[ "MIT" ]
null
null
null
app/migrations/0013_auto_20200907_1056.py
mapoetto/group2_CTFLab
5b492ce46875ea37a57701686897bd9613e2dd13
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-09-07 10:56 import app.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0012_user_id_ctfd'), ] operations = [ migrations.CreateModel( name='CTFd_configs', fields=...
31.153846
114
0.568724
123
1,215
5.455285
0.495935
0.089419
0.102832
0.120715
0.432191
0.259314
0
0
0
0
0
0.043427
0.298765
1,215
38
115
31.973684
0.744131
0.03786
0
0.3125
1
0
0.079692
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.15625
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
a5f29eaf88394cd5b49f0dfad22427d8e4654b7c
481
py
Python
sqlalchemy_i18n/expressions.py
EdwardBetts/sqlalchemy-i18n
9cf515be75be6e319416579b32528e1a096c03cf
[ "BSD-3-Clause" ]
31
2015-02-26T11:08:43.000Z
2022-03-18T11:53:30.000Z
sqlalchemy_i18n/expressions.py
EdwardBetts/sqlalchemy-i18n
9cf515be75be6e319416579b32528e1a096c03cf
[ "BSD-3-Clause" ]
13
2015-01-05T09:40:59.000Z
2022-01-18T23:57:28.000Z
sqlalchemy_i18n/expressions.py
EdwardBetts/sqlalchemy-i18n
9cf515be75be6e319416579b32528e1a096c03cf
[ "BSD-3-Clause" ]
13
2015-01-08T08:24:15.000Z
2022-02-05T01:59:41.000Z
import sqlalchemy as sa from sqlalchemy.ext.compiler import compiles from sqlalchemy.sql.functions import GenericFunction class current_locale(GenericFunction): type = sa.types.String() @compiles(current_locale) def compile_current_locale(element, compiler, **kw): # Lazy import get_locale so that it can be ...
26.722222
57
0.756757
62
481
5.725806
0.580645
0.146479
0.084507
0
0
0
0
0
0
0
0
0.004938
0.158004
481
17
58
28.294118
0.871605
0.106029
0
0
0
0
0.037383
0
0
0
0
0
0
1
0.090909
false
0
0.363636
0
0.727273
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
a5f71728f2d90dfa8913ba58e0714da23be50b98
2,673
py
Python
train/compute/python/pytorch_benchmark.py
sazanovd/param
595b81ceb64d8d106d05ab67d2c73e8465d06921
[ "MIT" ]
null
null
null
train/compute/python/pytorch_benchmark.py
sazanovd/param
595b81ceb64d8d106d05ab67d2c73e8465d06921
[ "MIT" ]
null
null
null
train/compute/python/pytorch_benchmark.py
sazanovd/param
595b81ceb64d8d106d05ab67d2c73e8465d06921
[ "MIT" ]
null
null
null
import logging from .lib.init_helper import init_logging, load_modules # Initialize logging format before loading all other modules logger = init_logging(logging.INFO) import argparse from .lib import pytorch as lib_pytorch from .lib.config import BenchmarkConfig from .lib.pytorch.benchmark import ( make_defaul...
29.7
99
0.674523
323
2,673
5.374613
0.331269
0.041475
0.078341
0.032834
0.035714
0
0
0
0
0
0
0.000946
0.209128
2,673
89
100
30.033708
0.820246
0.057613
0
0.117647
0
0
0.224652
0.00994
0
0
0
0
0
1
0.014706
false
0.088235
0.102941
0
0.117647
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
a5f7a9890ad3c832bc0b2c81569f369cddac6df1
6,767
py
Python
docs/tutorials_source/generate_images_tutorial.py
XavierXinweiWang/UnrealCV_Ubuntu
4fdbb32f2096a4c95c0912d018ff4adb4801fb8b
[ "MIT" ]
null
null
null
docs/tutorials_source/generate_images_tutorial.py
XavierXinweiWang/UnrealCV_Ubuntu
4fdbb32f2096a4c95c0912d018ff4adb4801fb8b
[ "MIT" ]
null
null
null
docs/tutorials_source/generate_images_tutorial.py
XavierXinweiWang/UnrealCV_Ubuntu
4fdbb32f2096a4c95c0912d018ff4adb4801fb8b
[ "MIT" ]
null
null
null
# Need at least 20 # characters """ =============== Generate Images =============== This ipython notebook demonstrates how to generate an image dataset with rich ground truth from a virtual environment. """ #################### import time; print(time.strftime("The last update of this file: %Y-%m-%d %H:%M:%S", time.gm...
33.171569
189
0.632186
970
6,767
4.306186
0.293814
0.04046
0.040699
0.033517
0.161839
0.128322
0.082835
0.045966
0.045966
0.045966
0
0.013679
0.157381
6,767
203
190
33.334975
0.718871
0.323629
0
0.116505
1
0
0.19362
0.032888
0
0
0
0.004926
0
1
0.058252
false
0
0.087379
0.009709
0.223301
0.106796
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
a5f94be0d65ac72db51e3348feb82e21a6da2f05
458
py
Python
blogs/migrations/0003_auto_20161006_1654.py
fenglb/mysite
a5b68ebdb23f4d5c55c5490ffebaa97780a5d6ab
[ "CC0-1.0" ]
null
null
null
blogs/migrations/0003_auto_20161006_1654.py
fenglb/mysite
a5b68ebdb23f4d5c55c5490ffebaa97780a5d6ab
[ "CC0-1.0" ]
null
null
null
blogs/migrations/0003_auto_20161006_1654.py
fenglb/mysite
a5b68ebdb23f4d5c55c5490ffebaa97780a5d6ab
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-10-06 08:54 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blogs', '0002_auto_20161006_1652'), ] operations = [ migrations.AlterField( ...
21.809524
62
0.617904
51
458
5.352941
0.823529
0
0
0
0
0
0
0
0
0
0
0.103858
0.264192
458
20
63
22.9
0.706231
0.144105
0
0
1
0
0.100257
0.059126
0
0
0
0
0
1
0
false
0
0.153846
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
a5fa4568c42ee2ffd61fc83bd38a5e610ae98af1
1,660
py
Python
examples/ieffileupdate.py
duncan-r/SHIP
2c4c22c77f9c18ea545d3bce70a36aebbd18256a
[ "MIT" ]
6
2016-04-10T17:32:44.000Z
2022-03-13T18:41:21.000Z
examples/ieffileupdate.py
duncan-r/SHIP
2c4c22c77f9c18ea545d3bce70a36aebbd18256a
[ "MIT" ]
19
2017-06-23T08:21:53.000Z
2017-07-26T08:23:03.000Z
examples/ieffileupdate.py
duncan-r/SHIP
2c4c22c77f9c18ea545d3bce70a36aebbd18256a
[ "MIT" ]
6
2016-10-26T16:04:38.000Z
2019-04-25T23:55:06.000Z
""" Summary: Example use of the fmp package to update file paths in an .ief file and save the ief file under a new name. Author: Duncan Runnacles Created: 01 Apr 2016 Copyright: Duncan Runnacles 2016 TODO: Updates: """ import os from ship....
26.349206
75
0.654217
232
1,660
4.551724
0.37069
0.046402
0.042614
0.036932
0.124053
0.104167
0.066288
0.066288
0
0
0
0.009717
0.256024
1,660
63
76
26.349206
0.845344
0.391566
0
0
0
0
0.12069
0.032328
0
0
0
0.015873
0
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
1
0
0
0
0
0
0
0
0
0
0
1
570013af797984af8b152ded17b276b76de011a7
1,102
py
Python
server/gaiaApi/gaia/serializer.py
JawaBaliIBM/Gaia
12572330c637cec559f8f122ecc2bd3af3dcf64e
[ "Apache-2.0" ]
6
2021-07-31T10:52:36.000Z
2022-03-19T17:10:55.000Z
server/gaiaApi/gaia/serializer.py
JawaBaliIBM/Gaia
12572330c637cec559f8f122ecc2bd3af3dcf64e
[ "Apache-2.0" ]
3
2021-07-24T08:17:53.000Z
2021-08-10T14:41:46.000Z
server/gaiaApi/gaia/serializer.py
JawaBaliIBM/Gaia
12572330c637cec559f8f122ecc2bd3af3dcf64e
[ "Apache-2.0" ]
1
2021-07-31T10:15:45.000Z
2021-07-31T10:15:45.000Z
from rest_framework import serializers class ArticleSerializer(serializers.Serializer): date = serializers.CharField(allow_blank=False) sentiment = serializers.CharField(allow_blank=False) title = serializers.CharField(allow_blank=False) description = serializers.CharField(allow_blank=False) articl...
42.384615
62
0.784029
111
1,102
7.666667
0.351351
0.105758
0.158637
0.282021
0.585194
0.338425
0.235018
0.235018
0.235018
0.235018
0
0.003102
0.122505
1,102
26
63
42.384615
0.876939
0
0
0.363636
0
0
0
0
0
0
0
0
0
1
0
false
0
0.045455
0
1
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5703b571d61c82b1ad4a982fd9b8632e8dd15fd8
1,028
py
Python
Parte 02/Projeto 01.py
andrewyamagata/Python
ac9baf16cd142156829ec6e977ecfcac8a4e3965
[ "MIT" ]
null
null
null
Parte 02/Projeto 01.py
andrewyamagata/Python
ac9baf16cd142156829ec6e977ecfcac8a4e3965
[ "MIT" ]
null
null
null
Parte 02/Projeto 01.py
andrewyamagata/Python
ac9baf16cd142156829ec6e977ecfcac8a4e3965
[ "MIT" ]
null
null
null
#Condições Aninhadas #if -> elif -> elif -> else # pode usar quantos elif quiser #Aprovando Empréstimo casa = float(input('Qual o valor da casa: R$ ')) salario = float(input('Qual o valor do salário: R$ ')) tempo = int(input('Quanto anos para pagar? ')) salario30 = salario * 0.30 prestacao = casa / (tempo * 12) if sal...
38.074074
168
0.657588
146
1,028
4.630137
0.445205
0.133136
0.071006
0.097633
0.307692
0.159763
0.159763
0.159763
0.159763
0.159763
0
0.042959
0.184825
1,028
27
169
38.074074
0.763723
0.136187
0
0.285714
0
0.047619
0.466591
0
0
0
0
0
0
1
0
false
0
0
0
0
0.619048
0
0
0
null
0
0
0
0
0
0
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
570febe7fa7b5748adbff547439e5061a41d7ecb
2,643
py
Python
Piece_class_stuff.py
krystianpietryka/Chess
e65afbe3ac51441327a5057b3677334ceb54d916
[ "MIT" ]
null
null
null
Piece_class_stuff.py
krystianpietryka/Chess
e65afbe3ac51441327a5057b3677334ceb54d916
[ "MIT" ]
null
null
null
Piece_class_stuff.py
krystianpietryka/Chess
e65afbe3ac51441327a5057b3677334ceb54d916
[ "MIT" ]
null
null
null
from enum import Enum import pygame class Colour(Enum): WHITE = 0 BLACK = 1 class Piece: def __init__(self, column, row, model, colour): self.row = row self.column = column self.model = model self.colour = colour # Load sprites into pygame class Sprites: board_image...
37.757143
57
0.650397
417
2,643
4.103118
0.184652
0.102864
0.122735
0.130918
0.519579
0
0
0
0
0
0
0.049389
0.195611
2,643
69
58
38.304348
0.755409
0.016648
0
0
0
0
0.078968
0
0
0
0
0
0
1
0.016949
false
0
0.033898
0
0.932203
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
571589111619e9fd5ae98d9e183ad96ef4ec5ca8
1,186
py
Python
CRASHLACMA/slistener.py
carlynorama/CRASHLACMA
d59890a5a0702940a0d678b600230f0f53384710
[ "CC0-1.0" ]
null
null
null
CRASHLACMA/slistener.py
carlynorama/CRASHLACMA
d59890a5a0702940a0d678b600230f0f53384710
[ "CC0-1.0" ]
null
null
null
CRASHLACMA/slistener.py
carlynorama/CRASHLACMA
d59890a5a0702940a0d678b600230f0f53384710
[ "CC0-1.0" ]
null
null
null
from tweepy import StreamListener import json, time, sys class SListener(StreamListener): def __init__(self, api = None, fprefix = 'streamer'): self.api = api or API() self.filecounter = 1 self.fprefix = fprefix def on_data(self, data): if 'in_reply_to_status' in dat...
29.65
108
0.555649
141
1,186
4.574468
0.397163
0.037209
0.060465
0.062016
0.068217
0
0
0
0
0
0
0.00246
0.314503
1,186
39
109
30.410256
0.790898
0
0
0.068966
0
0
0.109705
0
0
0
0
0
0
0
null
null
0
0.068966
null
null
0.068966
0
0
0
null
0
0
0
0
0
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
57179805f172aec6d932cd77e1ce3e7e6d275877
317
py
Python
t_server.py
iloghyr/easy_python
b750f6817d54562b23630e2419bace19da0abf8b
[ "Apache-2.0" ]
1
2018-03-01T02:42:52.000Z
2018-03-01T02:42:52.000Z
t_server.py
iloghyr/easy_python
b750f6817d54562b23630e2419bace19da0abf8b
[ "Apache-2.0" ]
null
null
null
t_server.py
iloghyr/easy_python
b750f6817d54562b23630e2419bace19da0abf8b
[ "Apache-2.0" ]
null
null
null
import socket address = ('127.0.0.1', 31500) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # s = socket.socket() s.bind(address) s.listen(5) ss, addr = s.accept() print 'got connected from',addr ss.send('hihi') ra = ss.recv(512) print ra ss.close() s.close()
19.8125
78
0.583596
48
317
3.8125
0.583333
0.196721
0.142077
0
0
0
0
0
0
0
0
0.06383
0.258675
317
16
79
19.8125
0.714894
0.059937
0
0
0
0
0.110714
0
0
0
0
0
0
0
null
null
0
0.083333
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
5717a38a4849d391d82607edadcfd400d7080783
1,906
py
Python
py_solutions_71-80/Euler_77.py
tijko/Project-Euler
d953a2bf6932c2c4e1235409fedf760add65a0ba
[ "MIT" ]
null
null
null
py_solutions_71-80/Euler_77.py
tijko/Project-Euler
d953a2bf6932c2c4e1235409fedf760add65a0ba
[ "MIT" ]
1
2022-03-15T02:49:09.000Z
2022-03-15T02:49:09.000Z
py_solutions_71-80/Euler_77.py
tijko/Project-Euler
d953a2bf6932c2c4e1235409fedf760add65a0ba
[ "MIT" ]
null
null
null
# what is the first number to have 5000 different ways to sum with prime numbers? import math import timeit start = timeit.default_timer() def is_prime(x): if x == 2: return True if x % 2 == 0 or x == 1: return False for i in range(3,int(math.sqrt(x))+1,2): if x % i == 0: ...
28.029412
82
0.407135
275
1,906
2.709091
0.218182
0.091275
0.056376
0.032215
0.283221
0.283221
0.242953
0.210738
0.128859
0.128859
0
0.061905
0.449108
1,906
67
83
28.447761
0.647619
0.041448
0
0.288136
0
0
0.009868
0
0
0
0
0
0
0
null
null
0
0.033898
null
null
0.033898
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
571d88262578b13c16efd4393da7b28acd2cd972
458
py
Python
upload.py
newkisoft/newki-sql-backup
82690b25cfa57dc770210e5a3398954949271c0e
[ "MIT" ]
null
null
null
upload.py
newkisoft/newki-sql-backup
82690b25cfa57dc770210e5a3398954949271c0e
[ "MIT" ]
null
null
null
upload.py
newkisoft/newki-sql-backup
82690b25cfa57dc770210e5a3398954949271c0e
[ "MIT" ]
null
null
null
from boto3.s3.transfer import S3Transfer import boto3 import glob import os def upload_to_aws(local_file, bucket, s3_file): client = boto3.client('s3', aws_access_key_id='###',aws_secret_access_key='###') transfer = S3Transfer(client) transfer.upload_file(local_file, bucket, local_file) fi...
28.625
84
0.69869
65
458
4.692308
0.446154
0.088525
0.072131
0
0
0
0
0
0
0
0
0.02122
0.176856
458
15
85
30.533333
0.787798
0
0
0
0
0
0.054585
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.384615
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
5720538c6a907cf78b7908572f98d96063191e14
1,651
py
Python
pagelets/conf.py
rysdyk/django-pagelets
31669771b7ecf8ade3dae64465d3fa984d88d0f9
[ "BSD-3-Clause" ]
null
null
null
pagelets/conf.py
rysdyk/django-pagelets
31669771b7ecf8ade3dae64465d3fa984d88d0f9
[ "BSD-3-Clause" ]
null
null
null
pagelets/conf.py
rysdyk/django-pagelets
31669771b7ecf8ade3dae64465d3fa984d88d0f9
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings CONTENT_AREAS = getattr(settings, 'PAGELET_CONTENT_AREAS', ( ('main', 'Main'), )) CONTENT_AREA_DEFAULT = getattr(settings, 'PAGELET_CONTENT_AREA_DEFAULT', 'main') CONTENT_TYPES = getattr(settings, 'PAGELET_CONTENT_TYPES', ( ('html', 'HTML', (), {},), ('markdown'...
36.688889
85
0.723198
196
1,651
5.77551
0.352041
0.185512
0.194346
0.128092
0.211131
0
0
0
0
0
0
0.003519
0.13931
1,651
44
86
37.522727
0.793103
0.120533
0
0.2
0
0
0.310773
0.21547
0
0
0
0
0
1
0
false
0
0.028571
0
0.028571
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
5727029dde1ffe2dc5b477e3ae9e9d629cfe867a
729
py
Python
tile/io.py
ViliamV/tile
a2b105143341f250690b8034076ba9214e9ed787
[ "MIT" ]
null
null
null
tile/io.py
ViliamV/tile
a2b105143341f250690b8034076ba9214e9ed787
[ "MIT" ]
null
null
null
tile/io.py
ViliamV/tile
a2b105143341f250690b8034076ba9214e9ed787
[ "MIT" ]
null
null
null
import collections import re from typing import Iterator, TextIO from .constants import TILE_END, TILE_START, TILE_WARNING def from_file(file: TextIO) -> Iterator[str]: with file as f: yield from f def to_file(file: TextIO, lines: Iterator[str]): with file as f: f.write("\n".join(lines)) ...
24.3
100
0.650206
111
729
4.144144
0.351351
0.095652
0.097826
0.086957
0.193478
0.193478
0
0
0
0
0
0.00346
0.207133
729
29
101
25.137931
0.792388
0
0
0.105263
0
0
0.046639
0.041152
0
0
0
0
0
1
0.210526
false
0
0.210526
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
1
0
0
0
0
0
0
0
1
572e21eca46eed4b2a282d7364cf1c249e13c730
6,704
py
Python
cpu.py
fernandozanutto/PyNES
cb8d589ceb55cd7df0e114e726c6b6bbbc556172
[ "Apache-2.0" ]
null
null
null
cpu.py
fernandozanutto/PyNES
cb8d589ceb55cd7df0e114e726c6b6bbbc556172
[ "Apache-2.0" ]
null
null
null
cpu.py
fernandozanutto/PyNES
cb8d589ceb55cd7df0e114e726c6b6bbbc556172
[ "Apache-2.0" ]
null
null
null
from typing import Dict from time import time_ns from bus import Bus from instructions.generic_instructions import Instruction from rom import ROM from status import Status import instructions.instructions as i_file import instructions.jump_instructions as j_file import instructions.load_instructions as l_file import ...
33.688442
110
0.604117
879
6,704
4.418658
0.229807
0.050463
0.023172
0.018538
0.141349
0.081617
0.031926
0.031926
0.031926
0.031926
0
0.029205
0.300269
6,704
198
111
33.858586
0.798764
0.126641
0
0.065574
0
0.008197
0.033972
0
0
0
0.009059
0.010101
0
1
0.057377
false
0
0.122951
0
0.204918
0.040984
0
0
0
null
0
0
0
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
57301fb1a81fd60d2a17effeed4478182c84a5a9
2,622
py
Python
timeouts/aa.py
kapsitis/ddgatve-stat
684fac54b9d0b8e7891f58bf1fb32605a2d87a3c
[ "Apache-2.0" ]
null
null
null
timeouts/aa.py
kapsitis/ddgatve-stat
684fac54b9d0b8e7891f58bf1fb32605a2d87a3c
[ "Apache-2.0" ]
null
null
null
timeouts/aa.py
kapsitis/ddgatve-stat
684fac54b9d0b8e7891f58bf1fb32605a2d87a3c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import datetime import os import subprocess import re import urllib2 import math #################################################################### ## TODO: Replace this function by another one, which simply reads all lines from a file #########################################################...
27.030928
88
0.558734
293
2,622
4.996587
0.457338
0.030055
0.020492
0.015027
0.090164
0.06694
0.06694
0.06694
0.06694
0.06694
0
0.016338
0.206331
2,622
96
89
27.3125
0.68717
0.096491
0
0.095238
0
0
0.139914
0.078582
0
0
0
0.010417
0
1
0.063492
false
0.015873
0.111111
0
0.269841
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
573ad54818708562c075e93c746dc4448d743b12
740
py
Python
save_restore_model/tf1/restore1_1.py
zlpmichelle/crackingtensorflow
66c3517b60c3793ef06f904e5d58e4d044628182
[ "Apache-2.0" ]
3
2017-10-19T23:41:26.000Z
2019-10-22T08:59:35.000Z
save_restore_model/tf1/restore1_1.py
zlpmichelle/crackingtensorflow
66c3517b60c3793ef06f904e5d58e4d044628182
[ "Apache-2.0" ]
null
null
null
save_restore_model/tf1/restore1_1.py
zlpmichelle/crackingtensorflow
66c3517b60c3793ef06f904e5d58e4d044628182
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf sess=tf.Session() #First let's load meta graph and restore weights saver = tf.train.import_meta_graph('/Users/lipingzhang/Downloads/model/my_tf_model-1000.meta') saver.restore(sess,tf.train.latest_checkpoint('/Users/lipingzhang/Downloads/model/')) # Now, let's access and create placeholders v...
30.833333
94
0.777027
135
740
4.051852
0.451852
0.043876
0.076782
0.087751
0.109689
0
0
0
0
0
0
0.034691
0.104054
740
24
95
30.833333
0.790347
0.305405
0
0
0
0
0.223969
0.178782
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
573eb0d44cfa9120f4cdede91149047e20c421a4
1,456
py
Python
bmds_server/analysis/admin.py
shapiromatron/bmds-server
0b2b79b521728582fa66100621e9ea03e251f9f1
[ "MIT" ]
1
2019-07-09T16:42:15.000Z
2019-07-09T16:42:15.000Z
bmds_server/analysis/admin.py
shapiromatron/bmds-server
0b2b79b521728582fa66100621e9ea03e251f9f1
[ "MIT" ]
103
2016-11-14T15:58:53.000Z
2022-03-07T21:01:03.000Z
bmds_server/analysis/admin.py
shapiromatron/bmds-server
0b2b79b521728582fa66100621e9ea03e251f9f1
[ "MIT" ]
2
2017-03-17T20:43:22.000Z
2018-01-04T19:15:18.000Z
from django.contrib import admin from django.contrib.admin import SimpleListFilter from django.db.models import TextChoices from django.utils.html import format_html from . import models class CustomQuerysetsFilter(SimpleListFilter): title = "custom" parameter_name = "custom" class CustomQuerysetChoices...
28.54902
97
0.691621
166
1,456
5.855422
0.39759
0.041152
0.034979
0.053498
0.078189
0.078189
0.078189
0.078189
0.078189
0.078189
0
0
0.186126
1,456
50
98
29.12
0.820253
0
0
0
0
0
0.17033
0.052198
0
0
0
0
0
1
0.111111
false
0.027778
0.138889
0.083333
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
5742d249cea7cefa19d4a4ea9010a2450f58aa8b
552
py
Python
03/00/0.py
pylangstudy/201801
eee9cfd2b370153359183d3c8f7fe117f4392142
[ "CC0-1.0" ]
null
null
null
03/00/0.py
pylangstudy/201801
eee9cfd2b370153359183d3c8f7fe117f4392142
[ "CC0-1.0" ]
null
null
null
03/00/0.py
pylangstudy/201801
eee9cfd2b370153359183d3c8f7fe117f4392142
[ "CC0-1.0" ]
null
null
null
#https://qiita.com/stkdev/items/a44976fb81ae90a66381 #import imaplib, re, email, six, dateutil.parser import imaplib, re, email email_default_encoding = 'iso-2022-jp' def main(): gmail = imaplib.IMAP4_SSL("imap.gmail.com") username = 'user' password = 'pass' gmail.login(username, password)#imaplib.erro...
32.470588
161
0.71558
72
552
5.333333
0.736111
0.067708
0.078125
0.104167
0
0
0
0
0
0
0
0.050526
0.139493
552
16
162
34.5
0.757895
0.438406
0
0
0
0
0.177049
0
0
0
0
0
0
1
0.090909
false
0.181818
0.090909
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
57452ea96aff7c8f3e31ad97f424bdd254f5bb63
5,468
py
Python
sql/filewalk.py
kylef-lab41/Redwood
c4e1c8284444b91246e52c165ea150eea23b26b9
[ "Apache-2.0" ]
null
null
null
sql/filewalk.py
kylef-lab41/Redwood
c4e1c8284444b91246e52c165ea150eea23b26b9
[ "Apache-2.0" ]
null
null
null
sql/filewalk.py
kylef-lab41/Redwood
c4e1c8284444b91246e52c165ea150eea23b26b9
[ "Apache-2.0" ]
null
null
null
import binascii import datetime import hashlib import mimetypes import os import re import struct import subprocess import sys import time import urllib import csv from Queue import Queue # 8 byte unique ID generator give a path. # - first five bytes are first five from sha1 of path name # - last 3 are the first t...
32.939759
211
0.602597
748
5,468
4.237968
0.340909
0.035331
0.028391
0.023659
0.197476
0.166877
0.149842
0.121136
0.121136
0.092114
0
0.007585
0.276701
5,468
165
212
33.139394
0.793932
0.202816
0
0.12381
0
0
0.111162
0.005074
0
0
0
0
0
0
null
null
0.009524
0.12381
null
null
0.019048
0
0
0
null
0
0
0
0
0
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
5752dc5277d06864407fc67287bd73391b57e2b0
923
py
Python
src/ProjectHeart/forms.py
LokotamaTheMastermind/secret-password-saver
e97f139b2cad9e1b0e9283079252d9a76764e3c1
[ "Unlicense" ]
null
null
null
src/ProjectHeart/forms.py
LokotamaTheMastermind/secret-password-saver
e97f139b2cad9e1b0e9283079252d9a76764e3c1
[ "Unlicense" ]
null
null
null
src/ProjectHeart/forms.py
LokotamaTheMastermind/secret-password-saver
e97f139b2cad9e1b0e9283079252d9a76764e3c1
[ "Unlicense" ]
null
null
null
from django import forms from .models import Passwords class PasswordsForm(forms.ModelForm): username = forms.CharField(widget=forms.TextInput( attrs={'class': 'uk-form-width-large uk-input uk-width-expand'}), required=False) email = forms.EmailField(widget=forms.TextInput( attrs={'class': 'uk...
43.952381
89
0.67714
115
923
5.4
0.286957
0.088567
0.096618
0.128824
0.57649
0.57649
0.57649
0.57649
0.57649
0.57649
0
0
0.173348
923
20
90
46.15
0.813893
0
0
0.294118
0
0
0.313109
0
0
0
0
0
0
1
0
false
0.294118
0.117647
0
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5757a45f92b96ddd746ba5a5bd686085a734073c
298
py
Python
customers/views/customers.py
chorna/taxi24
09e174a0cb3b9543ca4987e60cd0d37ecda6ac3c
[ "MIT" ]
null
null
null
customers/views/customers.py
chorna/taxi24
09e174a0cb3b9543ca4987e60cd0d37ecda6ac3c
[ "MIT" ]
null
null
null
customers/views/customers.py
chorna/taxi24
09e174a0cb3b9543ca4987e60cd0d37ecda6ac3c
[ "MIT" ]
null
null
null
from rest_framework import viewsets from customers.models import Customer from customers.serializers.customers import CustomerSerializer # Create your views here. class CustomerList(viewsets.ReadOnlyModelViewSet): queryset = Customer.objects.all() serializer_class = CustomerSerializer
24.833333
62
0.825503
31
298
7.870968
0.677419
0.106557
0
0
0
0
0
0
0
0
0
0
0.124161
298
11
63
27.090909
0.934866
0.077181
0
0
0
0
0
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
93880a88a41dae3cf1a05e55925780f80609dbdb
1,774
py
Python
fsm.py
yusun1997/Chatbot
ee49d4a64857889ce1d1a8659a1de15cf062bd77
[ "MIT" ]
null
null
null
fsm.py
yusun1997/Chatbot
ee49d4a64857889ce1d1a8659a1de15cf062bd77
[ "MIT" ]
null
null
null
fsm.py
yusun1997/Chatbot
ee49d4a64857889ce1d1a8659a1de15cf062bd77
[ "MIT" ]
null
null
null
from transitions.extensions import GraphMachine class TocMachine(GraphMachine): def __init__(self, **machine_configs): self.machine = GraphMachine( model = self, **machine_configs ) def is_going_to_state1(self, update): text = update.message.text return...
27.71875
89
0.638106
234
1,774
4.619658
0.222222
0.13876
0.046253
0.055504
0.46531
0.443108
0.354302
0.222017
0.170213
0
0
0.012085
0.253664
1,774
63
90
28.15873
0.804381
0
0
0.195652
0
0
0.111048
0
0
0
0
0
0
1
0.347826
false
0
0.021739
0.021739
0.5
0.108696
0
0
0
null
0
0
0
0
0
0
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
93888830e4d4bc95cb50e37baa9660d706afdc8a
1,697
py
Python
test/__main__.py
harisekhon/pylib
1d8fcfc0a26251a832536a5ff6bf0ef618b8508e
[ "MIT" ]
1
2015-12-17T21:08:22.000Z
2015-12-17T21:08:22.000Z
test/__main__.py
harisekhon/pylib
1d8fcfc0a26251a832536a5ff6bf0ef618b8508e
[ "MIT" ]
null
null
null
test/__main__.py
harisekhon/pylib
1d8fcfc0a26251a832536a5ff6bf0ef618b8508e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # vim:ts=4:sts=4:sw=4:et # # Author: Hari Sekhon # Date: 2015-11-14 12:21:54 +0000 (Sat, 14 Nov 2015) # # https://github.com/HariSekhon/pylib # # License: see accompanying Hari Sekhon LICENSE file # # If you're using my code you're welcome to connect with me on LinkedIn # and optionally sen...
28.283333
88
0.700648
248
1,697
4.612903
0.528226
0.034965
0.055944
0.047203
0.118881
0.118881
0.050699
0
0
0
0
0.02381
0.183265
1,697
59
89
28.762712
0.801587
0.614614
0
0.25
0
0
0.067851
0
0
0
0
0
0
1
0.05
false
0
0.45
0
0.5
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
938c81e0713358c52bf4da54926facac71c9eb0c
431
py
Python
wherethefuck/celery.py
luismasuelli/wherethefuck
6e68543a804c299be4362836c518e34f10029b48
[ "MIT" ]
1
2019-11-18T15:02:16.000Z
2019-11-18T15:02:16.000Z
wherethefuck/celery.py
luismasuelli/wherethefuck
6e68543a804c299be4362836c518e34f10029b48
[ "MIT" ]
null
null
null
wherethefuck/celery.py
luismasuelli/wherethefuck
6e68543a804c299be4362836c518e34f10029b48
[ "MIT" ]
null
null
null
import os from celery import Celery from django.conf import settings # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wherethefuck.settings') # create and run celery workers. app = Celery(broker=settings.CELERY_BROKER_URL) app.config_from_object('djan...
28.733333
72
0.798144
59
431
5.559322
0.559322
0.060976
0.121951
0
0
0
0
0
0
0
0
0
0.106729
431
14
73
30.785714
0.851948
0.220418
0
0
0
0
0.213213
0.129129
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
938caebc89dfb3ff5ef96ed29916b89a93439b97
395
py
Python
plot_main.py
Alexhaoge/MLSR
1397176ea4c71533f3995ff476727217125c9f83
[ "MIT" ]
1
2020-12-27T15:45:09.000Z
2020-12-27T15:45:09.000Z
plot_main.py
Alexhaoge/MLSR
1397176ea4c71533f3995ff476727217125c9f83
[ "MIT" ]
null
null
null
plot_main.py
Alexhaoge/MLSR
1397176ea4c71533f3995ff476727217125c9f83
[ "MIT" ]
1
2021-04-08T17:03:36.000Z
2021-04-08T17:03:36.000Z
from MLSR.data import DataSet from MLSR.plot import * x = DataSet('data/rand_select_400_avg.csv') x.generate_feature() y = DataSet('data/not_selected_avg.csv') y.generate_feature() z = DataSet.static_merge(x, y) #plot_tsne(z, 'log/tsne.png') z = z.convert_to_ssl() z0, z1 = z.split_by_weak_label() plot_tsne_ssl(z0, 'lo...
28.214286
47
0.749367
76
395
3.605263
0.5
0.087591
0.080292
0.087591
0
0
0
0
0
0
0
0.041783
0.091139
395
13
48
30.384615
0.721448
0.070886
0
0
1
0
0.221311
0.144809
0
0
0
0
0
1
0
false
0
0.181818
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
93946c005b5692a8ad70e09207171d1d003f400a
3,901
py
Python
parse_ecosim_files.py
lmorillas/ecosim_to_we
2bd158146fa72ec7cbc9bcd1aaa57f3c6715cb56
[ "Apache-2.0" ]
null
null
null
parse_ecosim_files.py
lmorillas/ecosim_to_we
2bd158146fa72ec7cbc9bcd1aaa57f3c6715cb56
[ "Apache-2.0" ]
null
null
null
parse_ecosim_files.py
lmorillas/ecosim_to_we
2bd158146fa72ec7cbc9bcd1aaa57f3c6715cb56
[ "Apache-2.0" ]
null
null
null
from amara.bindery import html from amara.lib import U import urllib import urlparse import time ''' This script extract data from html pages and write the data into a .json file ready to create the mediawiki / wikieducator pages ''' BASE = 'http://academics.smcvt.edu/dmccabe/teaching/Community/' def parse_notes_...
25.664474
93
0.605229
532
3,901
4.353383
0.291353
0.017271
0.011658
0.018135
0.183074
0.183074
0.183074
0.121762
0.121762
0.088083
0
0.006311
0.268905
3,901
151
94
25.834437
0.80575
0.06101
0
0.117647
0
0.011765
0.143911
0
0
0
0
0
0
0
null
null
0
0.070588
null
null
0.035294
0
0
0
null
0
0
0
0
0
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
93972dbe0dbe487735de9457da88b6e093fc9d7c
371
py
Python
cool.py
divine-coder/CODECHEF-PYTHON
a1e34d6f9f75cf7b9497f1ef2f937cb4f64f1543
[ "MIT" ]
null
null
null
cool.py
divine-coder/CODECHEF-PYTHON
a1e34d6f9f75cf7b9497f1ef2f937cb4f64f1543
[ "MIT" ]
4
2020-10-04T07:49:30.000Z
2021-10-02T05:24:40.000Z
cool.py
divine-coder/CODECHEF-PYTHON
a1e34d6f9f75cf7b9497f1ef2f937cb4f64f1543
[ "MIT" ]
7
2020-10-04T07:46:55.000Z
2021-11-05T14:30:00.000Z
def check(b,ind,c): i=ind while i<len(b): if b[i]==c: return i i+=1 return -1 a=raw_input() b=raw_input() i=0 index=0 co=0 if a[0]==b[0]: co+=1 i+=1 while i<len(a): index1=check(b,index+1,a[i]) print a[i],index1 if index1!=-1: index=index1 co+=1 ...
13.740741
32
0.471698
70
371
2.471429
0.271429
0.034682
0.104046
0
0
0
0
0
0
0
0
0.071429
0.358491
371
26
33
14.269231
0.655462
0.02965
0
0.217391
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
939de781cdf5e974811b59296ad87e9307743d04
1,000
py
Python
modules/IPlugin.py
SRottgardt/data_pipeline
8adcc886870f49bf0d544952be689d16825fe38e
[ "Apache-2.0" ]
3
2021-02-14T16:28:50.000Z
2021-02-16T23:23:49.000Z
modules/IPlugin.py
SRottgardt/data_pipeline
8adcc886870f49bf0d544952be689d16825fe38e
[ "Apache-2.0" ]
null
null
null
modules/IPlugin.py
SRottgardt/data_pipeline
8adcc886870f49bf0d544952be689d16825fe38e
[ "Apache-2.0" ]
null
null
null
from modules.CommandData import CommandData class IPlugin(object): def __init__(self): """create the plugin interface """ self.pluginName = "" self.pluginAutor = "" self.pluginVersion = 0 self.pluginDescription = "" self.pluginCommand = "" self.comman...
26.315789
90
0.586
93
1,000
6.225806
0.505376
0.07772
0.044905
0
0
0
0
0
0
0
0
0.00146
0.315
1,000
37
91
27.027027
0.843796
0.288
0
0
0
0
0.106383
0
0
0
0
0
0
1
0.263158
false
0
0.052632
0
0.368421
0.157895
0
0
0
null
0
0
0
0
0
0
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
93b3d6b31717b3ff24e2cbf4724891aa06fd3451
5,175
py
Python
BAF2LOH.py
Xiaohuaniu0032/HLALOH
24587c75fad08e7f1821866fb72f9b7e756689bb
[ "MIT" ]
null
null
null
BAF2LOH.py
Xiaohuaniu0032/HLALOH
24587c75fad08e7f1821866fb72f9b7e756689bb
[ "MIT" ]
2
2020-10-26T01:39:33.000Z
2020-12-04T02:41:11.000Z
BAF2LOH.py
Xiaohuaniu0032/HLALOH
24587c75fad08e7f1821866fb72f9b7e756689bb
[ "MIT" ]
null
null
null
import sys import os import configparser import argparse import glob def parse_args(): AP = argparse.ArgumentParser("Convert BAF into LOH") AP.add_argument('-indir',help='result dir',dest='indir') AP.add_argument('-name',help='sample name',dest='name') AP.add_argument('-bam',help='bam',dest='bam') ...
33.823529
183
0.592464
861
5,175
3.333333
0.182346
0.020209
0.063415
0.082927
0.454007
0.365157
0.334495
0.274564
0.241115
0.196516
0
0.013115
0.233816
5,175
152
184
34.046053
0.710719
0.097778
0
0.244681
0
0.042553
0.238208
0.069998
0.010638
0
0
0
0
1
0.021277
false
0.06383
0.053191
0
0.085106
0.021277
0
0
0
null
0
0
0
0
0
0
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
93bd854e0f319cd263a25841957dc223b7ca22bf
1,513
py
Python
acsl-pydev/acsl/lect03p2/c1_inter_stigid_sol1.py
odys-z/hello
39ca67cae34eb4bc4cbd848a06b3c0d65a995954
[ "MIT" ]
null
null
null
acsl-pydev/acsl/lect03p2/c1_inter_stigid_sol1.py
odys-z/hello
39ca67cae34eb4bc4cbd848a06b3c0d65a995954
[ "MIT" ]
3
2021-04-17T18:36:24.000Z
2022-03-04T20:30:09.000Z
acsl-pydev/acsl/lect03p2/c1_inter_stigid_sol1.py
odys-z/hello
39ca67cae34eb4bc4cbd848a06b3c0d65a995954
[ "MIT" ]
null
null
null
''' Intermediate C#1, stigid PROBLEM: Given a number less than 10^50 and length n, find the sum of all the n -digit numbers (starting on the left) that are formed such that, after the first n -digit number is formed all others are formed by deleting the leading digit and taking the next n -digits. '''...
29.096154
150
0.643754
231
1,513
4.190476
0.471861
0.123967
0.024793
0.020661
0.02686
0.02686
0.02686
0
0
0
0
0.273096
0.184402
1,513
51
151
29.666667
0.511345
0.261071
0
0.068966
0
0
0.164234
0.074818
0
0
0
0
0.344828
1
0.034483
false
0
0.034483
0
0.103448
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
93be43a153e5c582c6fc97ea9f7ab11f70cb7196
1,857
py
Python
otcextensions/tests/functional/sdk/vlb/v3/test_certificate.py
artem-lifshits/python-otcextensions
2021da124f393e0429dd5913a3bc635e6143ba1e
[ "Apache-2.0" ]
10
2018-03-03T17:59:59.000Z
2020-01-08T10:03:00.000Z
otcextensions/tests/functional/sdk/vlb/v3/test_certificate.py
artem-lifshits/python-otcextensions
2021da124f393e0429dd5913a3bc635e6143ba1e
[ "Apache-2.0" ]
208
2020-02-10T08:27:46.000Z
2022-03-29T15:24:21.000Z
otcextensions/tests/functional/sdk/vlb/v3/test_certificate.py
artem-lifshits/python-otcextensions
2021da124f393e0429dd5913a3bc635e6143ba1e
[ "Apache-2.0" ]
15
2020-04-01T20:45:54.000Z
2022-03-23T12:45:43.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
41.266667
76
0.736672
236
1,857
5.673729
0.419492
0.161314
0.115011
0.172517
0.321882
0.275579
0.244959
0.244959
0.244959
0.244959
0
0.009156
0.176629
1,857
44
77
42.204545
0.866579
0.281099
0
0.24
0
0
0.003779
0
0
0
0
0
0.32
1
0.2
false
0
0.04
0
0.28
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
93c6042870f0e48cc7e28c2ead79abb162bef666
1,201
py
Python
pyvisdk/do/quiesce_datastore_io_for_ha_failed.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/quiesce_datastore_io_for_ha_failed.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/do/quiesce_datastore_io_for_ha_failed.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
import logging from pyvisdk.exceptions import InvalidArgumentError ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) def QuiesceDatastoreIOForHAFailed(vim, *args, **kwargs): '''A QuiesceDatastoreIOForHAFail...
34.314286
124
0.621982
128
1,201
5.804688
0.65625
0.064603
0.037685
0
0
0
0
0
0
0
0
0.006257
0.201499
1,201
34
125
35.323529
0.768509
0.179017
0
0
1
0
0.220358
0.044743
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
93c6c2347f6844b6a0ab7634a4e1c68474fa2859
337
py
Python
tests/test_plugin_setup.py
ldb385/q2-winnowing
f9c1dc7ecedbd3d204b3a26974f29a164de3eaf1
[ "BSD-3-Clause" ]
1
2020-07-24T21:58:38.000Z
2020-07-24T21:58:38.000Z
tests/test_plugin_setup.py
ldb385/q2-winnowing
f9c1dc7ecedbd3d204b3a26974f29a164de3eaf1
[ "BSD-3-Clause" ]
1
2020-07-21T16:45:03.000Z
2020-07-21T16:45:03.000Z
tests/test_plugin_setup.py
ldb385/q2-winnowing
f9c1dc7ecedbd3d204b3a26974f29a164de3eaf1
[ "BSD-3-Clause" ]
null
null
null
from unittest import TestCase, main as unittest_main from q2_winnowing.plugin_setup import plugin as winnowing_plugin class PluginSetupTests( TestCase ): package = 'q2_winnowing.tests' def test_plugin_setup(self): self.assertEqual( winnowing_plugin.name, "winnowing") if __name__ == '__main__': ...
22.466667
64
0.756677
41
337
5.804878
0.487805
0.189076
0
0
0
0
0
0
0
0
0
0.007117
0.166172
337
15
65
22.466667
0.839858
0
0
0
0
0
0.103858
0
0
0
0
0
0.125
1
0.125
false
0
0.25
0
0.625
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
93caeae8160e612312e97b73a71f33bfdd865b27
10,238
py
Python
etiquette/constants.py
voussoir/etiquette
e982858c28335b11528c52af181abd1bbc71673f
[ "BSD-3-Clause" ]
20
2018-03-20T01:40:13.000Z
2022-02-11T20:23:41.000Z
etiquette/constants.py
voussoir/etiquette
e982858c28335b11528c52af181abd1bbc71673f
[ "BSD-3-Clause" ]
null
null
null
etiquette/constants.py
voussoir/etiquette
e982858c28335b11528c52af181abd1bbc71673f
[ "BSD-3-Clause" ]
1
2018-03-20T13:10:31.000Z
2018-03-20T13:10:31.000Z
''' This file provides data and objects that do not change throughout the runtime. ''' import converter import string import traceback import warnings from voussoirkit import sqlhelpers from voussoirkit import winwhich # FFmpeg ##########################################################################################...
31.696594
100
0.567298
1,125
10,238
4.955556
0.216
0.036771
0.078924
0.080359
0.421345
0.372556
0.325919
0.280359
0.207713
0.111749
0
0.006729
0.187146
10,238
322
101
31.795031
0.663182
0.018265
0
0.280142
0
0
0.756813
0.244839
0
0
0
0
0
1
0.003546
false
0.007092
0.021277
0
0.035461
0.003546
0
0
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
93d04402f33cb3c06a7016fef8b0328a457f038a
4,229
py
Python
elementalcms/management/pages.py
paranoid-software/elemental-cms
7f09f9cd5498577d23fa70d1a51497b9de232598
[ "MIT" ]
3
2022-01-12T09:11:54.000Z
2022-02-24T22:39:11.000Z
elementalcms/management/pages.py
paranoid-software/elemental-cms
7f09f9cd5498577d23fa70d1a51497b9de232598
[ "MIT" ]
null
null
null
elementalcms/management/pages.py
paranoid-software/elemental-cms
7f09f9cd5498577d23fa70d1a51497b9de232598
[ "MIT" ]
1
2022-01-12T09:11:56.000Z
2022-01-12T09:11:56.000Z
from typing import Tuple, Optional import click from cloup import constraint, option, command, pass_context from cloup.constraints import RequireExactly from .pagescommands import Create, Remove, Push, Pull, List, Publish, Unpublish class Pages(click.Group): def __init__(self): super(Pages, self).__ini...
34.663934
119
0.581698
516
4,229
4.713178
0.217054
0.032895
0.040296
0.051809
0.379934
0.363487
0.26398
0.221217
0.221217
0.221217
0
0.002679
0.293923
4,229
121
120
34.950413
0.811788
0.018444
0
0.46729
0
0.018692
0.310918
0
0
0
0
0.008264
0
1
0.074766
false
0.074766
0.046729
0.028037
0.196262
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
93db88634b9a24a07909d849964c5b879194e57a
6,655
py
Python
sqlite_to_stasis.py
mrozekma/Sprint
0bf531d2f16a7bc5b56dbc8c6eae5dc9e251b2f1
[ "MIT" ]
2
2015-03-18T13:58:46.000Z
2020-04-10T14:54:56.000Z
sqlite_to_stasis.py
mrozekma/Sprint
0bf531d2f16a7bc5b56dbc8c6eae5dc9e251b2f1
[ "MIT" ]
20
2015-01-16T18:46:53.000Z
2016-02-18T22:01:00.000Z
sqlite_to_stasis.py
mrozekma/Sprint
0bf531d2f16a7bc5b56dbc8c6eae5dc9e251b2f1
[ "MIT" ]
2
2015-08-24T15:39:20.000Z
2016-01-03T06:03:13.000Z
from os import rename from os.path import isfile import pickle import sqlite3 from stasis.DiskMap import DiskMap from utils import tsToDate, dateToTs from datetime import timedelta source = sqlite3.connect('db') source.row_factory = sqlite3.Row dest = DiskMap('db-new', create = True, cache = False) # Some cleanup, be...
37.59887
327
0.677536
947
6,655
4.746568
0.216473
0.03337
0.03337
0.040044
0.338598
0.246496
0.227586
0.134594
0.042937
0.042937
0
0.007422
0.149662
6,655
176
328
37.8125
0.786888
0.136289
0
0.326087
0
0.014493
0.381243
0.011526
0
0
0
0
0.007246
0
null
null
0
0.050725
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
93dfe7ab2f36df70ba6de51ccd1196139a54d7d0
1,211
py
Python
MakeSlides/MakeSlides.py
bobm123/BeeWareTalk
d6df32320f59bcd0f71a181c3d67ce4cbe5eb1b3
[ "MIT" ]
null
null
null
MakeSlides/MakeSlides.py
bobm123/BeeWareTalk
d6df32320f59bcd0f71a181c3d67ce4cbe5eb1b3
[ "MIT" ]
null
null
null
MakeSlides/MakeSlides.py
bobm123/BeeWareTalk
d6df32320f59bcd0f71a181c3d67ce4cbe5eb1b3
[ "MIT" ]
null
null
null
''' Generate slideshows from markdown that use the remark.js script details here: https://github.com/gnab/remark Run it like this: python MakeSlides.py <source_text.md> <Slidestack Title> index.html ''' import sys import os template = ''' <!DOCTYPE html> <html> <head> <title>{title_string}</title> <met...
20.525424
71
0.625929
161
1,211
4.565217
0.484472
0.04898
0.043537
0.040816
0.084354
0.084354
0.084354
0.084354
0
0
0
0.005336
0.226259
1,211
58
72
20.87931
0.779082
0.218002
0
0.058824
1
0
0.422009
0.102564
0
0
0
0
0
1
0.029412
false
0
0.058824
0
0.088235
0.029412
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
93e32bae11b86f9998eb40958c5a33c52acf9800
2,728
py
Python
src/ipu/source/folder_monitor.py
feagi/feagi-core
d83c51480fcbe153fa14b2360b4d61f6ae4e2811
[ "Apache-2.0" ]
11
2020-02-18T16:03:10.000Z
2021-12-06T19:53:06.000Z
src/ipu/source/folder_monitor.py
feagi/feagi-core
d83c51480fcbe153fa14b2360b4d61f6ae4e2811
[ "Apache-2.0" ]
34
2019-12-17T04:59:42.000Z
2022-01-18T20:58:46.000Z
src/ipu/source/folder_monitor.py
feagi/feagi-core
d83c51480fcbe153fa14b2360b4d61f6ae4e2811
[ "Apache-2.0" ]
3
2019-12-16T06:09:56.000Z
2020-10-18T12:01:31.000Z
""" Source: https://camcairns.github.io/python/2017/09/06/python_watchdog_jobs_queue.html This class inherits from the Watchdog PatternMatchingEventHandler class. In this code our watchdog will only be triggered if a file is moved to have a .trigger extension. Once triggered the watchdog places the event object on the...
36.864865
117
0.66129
340
2,728
5.126471
0.414706
0.037866
0.027539
0.014917
0.052783
0.028686
0
0
0
0
0
0.004873
0.247801
2,728
73
118
37.369863
0.844542
0.264296
0
0
0
0
0.115767
0
0
0
0
0.013699
0
1
0.142857
false
0.02381
0.190476
0
0.357143
0.119048
0
0
0
null
0
0
0
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
93e4b9ba2043f4d210f572091843a3b906a5ef27
1,492
py
Python
adminmgr/media/code/python/red1/myReducer2.2.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
9
2019-11-08T02:05:27.000Z
2021-12-13T12:06:35.000Z
adminmgr/media/code/python/red2/myReducer2.2.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
6
2019-11-27T03:23:16.000Z
2021-06-10T19:15:13.000Z
adminmgr/media/code/python/red2/myReducer2.2.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
4
2019-11-26T17:04:27.000Z
2021-12-13T11:57:03.000Z
#!/usr/bin/python3 import sys #import fileinput from operator import itemgetter myDictionary = {} myList=[] for line in sys.stdin: line = line.strip() line = line.split("\t") batsman, bowler, wickets = line[0], line[1], int(line[2]) if batsman not in myDictionary: myDictionary[batsman] = {} ...
30.44898
121
0.663539
180
1,492
5.5
0.305556
0.170707
0.20202
0.105051
0.226263
0.159596
0.092929
0
0
0
0
0.017617
0.201072
1,492
48
122
31.083333
0.812919
0.119973
0
0.066667
0
0
0.003823
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.033333
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
93e5a39d73ffdd336557527636051e03eddd2896
2,478
py
Python
tests/datastore_test.py
isouzasoares/needle-forms
1cdb097e1e9801d53607683aa6dcb645b1b82226
[ "MIT" ]
null
null
null
tests/datastore_test.py
isouzasoares/needle-forms
1cdb097e1e9801d53607683aa6dcb645b1b82226
[ "MIT" ]
3
2020-03-31T04:49:13.000Z
2021-04-30T21:03:00.000Z
tests/datastore_test.py
isouzasoares/needle-forms
1cdb097e1e9801d53607683aa6dcb645b1b82226
[ "MIT" ]
2
2019-11-05T14:48:39.000Z
2020-03-26T20:17:42.000Z
from abstractions.datastore import Datastore from unittest.mock import Mock from google.cloud.datastore.entity import Entity from unittest.mock import patch import pytest """ #test_valid_information::ut #test_with_invalid_information::ut """ @patch("google.cloud.datastore.Client") def test_update_entity(mocked_data...
34.416667
75
0.75222
321
2,478
5.46729
0.196262
0.075214
0.136752
0.156695
0.528205
0.519658
0.480912
0.387464
0.308832
0.308832
0
0.004093
0.112591
2,478
71
76
34.901408
0.793997
0.007667
0
0.276596
0
0
0.192145
0.149071
0
0
0
0
0.170213
1
0.148936
false
0.06383
0.106383
0
0.255319
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
93eaa3d71ba2d5f76f2ff30667b738af79cf0791
1,769
py
Python
pycraft/configuration.py
duaneking/pycraft
eb7fcc9ee44677555f667520b74fe053a3fb2392
[ "MIT" ]
null
null
null
pycraft/configuration.py
duaneking/pycraft
eb7fcc9ee44677555f667520b74fe053a3fb2392
[ "MIT" ]
null
null
null
pycraft/configuration.py
duaneking/pycraft
eb7fcc9ee44677555f667520b74fe053a3fb2392
[ "MIT" ]
null
null
null
from os.path import expanduser import sys import json ''' The configuration file will be stored as a json file @example { window: { w_dimension: 800 h_dimension: 600 resizeable: False } } ''' class ConfigurationLoader: ''' ''' def __init__(self): ''' Initialize with defaut values ''' ...
28.532258
94
0.692482
224
1,769
5.254464
0.339286
0.101954
0.17842
0.186916
0.326253
0.115548
0.057774
0
0
0
0
0.009563
0.172414
1,769
61
95
29
0.794399
0.117015
0
0.129032
0
0
0.228261
0
0
0
0
0
0
1
0.096774
false
0
0.096774
0.032258
0.290323
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
93f625804e80ba67e77913d8e04521c5e668b99a
6,169
py
Python
tests/test_contract.py
MioYvo/vision-python-sdk
53608232c333f57f83a8b16ba92f50e90f28ac88
[ "MIT" ]
null
null
null
tests/test_contract.py
MioYvo/vision-python-sdk
53608232c333f57f83a8b16ba92f50e90f28ac88
[ "MIT" ]
null
null
null
tests/test_contract.py
MioYvo/vision-python-sdk
53608232c333f57f83a8b16ba92f50e90f28ac88
[ "MIT" ]
null
null
null
import pytest from visionpy import Vision, Contract from visionpy import AsyncVision, AsyncContract from visionpy.keys import PrivateKey # vpioneer addr and key PRIVATE_KEY = PrivateKey(bytes.fromhex("a318cb4f1f3b87d604163e4a854312555d57158d78aef26797482d3038c4018b")) FROM_ADDR = 'VSfD1o6FPChqdqLgwJaztjckyyo2GSM1KP' ...
36.288235
481
0.70449
527
6,169
8.083491
0.210626
0.071831
0.030986
0.025352
0.714789
0.643662
0.626291
0.560329
0.554695
0.526761
0
0.208985
0.191765
6,169
169
482
36.502959
0.645407
0.036959
0
0.524194
0
0
0.302024
0.215852
0
0
0
0
0.064516
1
0.032258
false
0
0.032258
0
0.064516
0.185484
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
93f841a8146cf689db89cb783c3060d1cae831aa
555
py
Python
webware/PSP/PSPPage.py
PeaceWorksTechnologySolutions/w4py3
7f9e7088034e3e3ac53158edfa4f377b5b2f45fe
[ "MIT" ]
11
2020-10-18T07:33:56.000Z
2021-09-27T21:03:38.000Z
webware/PSP/PSPPage.py
PeaceWorksTechnologySolutions/w4py3
7f9e7088034e3e3ac53158edfa4f377b5b2f45fe
[ "MIT" ]
9
2020-01-03T18:58:25.000Z
2020-01-09T18:36:23.000Z
webware/PSP/PSPPage.py
PeaceWorksTechnologySolutions/w4py3
7f9e7088034e3e3ac53158edfa4f377b5b2f45fe
[ "MIT" ]
4
2020-06-30T09:41:56.000Z
2021-02-20T13:48:08.000Z
"""Default base class for PSP pages. This class is intended to be used in the future as the default base class for PSP pages in the event that some special processing is needed. Right now, no special processing is needed, so the default base class for PSP pages is the standard Webware Page. """ from Page import Page ...
26.428571
73
0.717117
83
555
4.662651
0.481928
0.085271
0.124031
0.147287
0.224806
0.224806
0.155039
0
0
0
0
0
0.216216
555
20
74
27.75
0.889655
0.520721
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
93f98465a257a935b04f433473c8d2f49911d9f0
336
py
Python
atcoder/abc144/d.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
atcoder/abc144/d.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
atcoder/abc144/d.py
sugitanishi/competitive-programming
51af65fdce514ece12f8afbf142b809d63eefb5d
[ "MIT" ]
null
null
null
import sys import math import itertools from collections import deque sys.setrecursionlimit(10000000) input=lambda : sys.stdin.readline().rstrip() a,b,x=map(int,input().split()) if (a**2*b)-x<=(a**2*b)/2: c=2*((a**2*b)-x)/(a**2) print(math.degrees(math.atan2(c,a))) else: c=2*x/b/a print(math.degrees(ma...
22.4
44
0.657738
63
336
3.507937
0.428571
0.036199
0.040724
0.036199
0.280543
0.054299
0
0
0
0
0
0.057239
0.116071
336
14
45
24
0.686869
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0.153846
0
0
0
null
0
0
0
0
0
0
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
93faa5a4405de0a04d15d1ea4890ad9da6d219ed
12,644
py
Python
bakefont3/encode.py
golightlyb/bakefont3
b5e05f5f96dc37136cf1cf6053c081a7b30f9ea8
[ "MIT" ]
7
2017-12-01T16:48:12.000Z
2021-01-21T13:05:24.000Z
bakefont3/encode.py
golightlyb/bakefont3
b5e05f5f96dc37136cf1cf6053c081a7b30f9ea8
[ "MIT" ]
1
2021-04-19T01:03:37.000Z
2021-04-19T03:02:52.000Z
bakefont3/encode.py
golightlyb/bakefont3
b5e05f5f96dc37136cf1cf6053c081a7b30f9ea8
[ "MIT" ]
null
null
null
import struct import itertools import freetype ENDIAN = '<' # always little endian # If you make a modified version, please change the URL in the string to # let people know what generated the file! # example: Bakefont 3.0.2 (compatible; Acme Inc version 1.3) ENCODER = "Bakefont 3.0.2 (https://github.com/golightlyb/b...
34.358696
94
0.612148
1,730
12,644
4.443353
0.216185
0.015611
0.008196
0.022896
0.281254
0.18876
0.165604
0.126968
0.067126
0.042149
0
0.046704
0.283692
12,644
367
95
34.452316
0.802032
0.397105
0
0.086486
1
0
0.041077
0
0
0
0
0.002725
0.043243
1
0.124324
false
0
0.016216
0.027027
0.221622
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
93ff6193a2b94edc476d54fd31667524f6fc80f3
815
py
Python
pyogp/apps/web/django/pyogp_webbot/urls.py
grobertson/PyOGP.Apps
03583baa8d3a2438b0d0a5452ee8c9e56aace9fd
[ "Apache-2.0" ]
null
null
null
pyogp/apps/web/django/pyogp_webbot/urls.py
grobertson/PyOGP.Apps
03583baa8d3a2438b0d0a5452ee8c9e56aace9fd
[ "Apache-2.0" ]
null
null
null
pyogp/apps/web/django/pyogp_webbot/urls.py
grobertson/PyOGP.Apps
03583baa8d3a2438b0d0a5452ee8c9e56aace9fd
[ "Apache-2.0" ]
null
null
null
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^pyogp_webbot/', include('pyogp_webbot.foo.urls')), # Uncomment the admin/doc line below and add 'django.contrib...
37.045455
87
0.692025
108
815
5.111111
0.351852
0.179348
0.173913
0.152174
0.231884
0.137681
0.137681
0.137681
0
0
0
0
0.144785
815
21
88
38.809524
0.791966
0.530061
0
0
0
0
0.540323
0.494624
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9e00237613a99687f5e6e25a05d24aa9f51580f2
2,291
py
Python
_static/cookbook/gravmag_euler_classic_expanding_window.py
fatiando/v0.1
1ab9876b247c67834b8e1c874d5b1d86f82802e2
[ "BSD-3-Clause" ]
null
null
null
_static/cookbook/gravmag_euler_classic_expanding_window.py
fatiando/v0.1
1ab9876b247c67834b8e1c874d5b1d86f82802e2
[ "BSD-3-Clause" ]
null
null
null
_static/cookbook/gravmag_euler_classic_expanding_window.py
fatiando/v0.1
1ab9876b247c67834b8e1c874d5b1d86f82802e2
[ "BSD-3-Clause" ]
null
null
null
""" GravMag: Classic 3D Euler deconvolution of magnetic data using an expanding window """ from fatiando import logger, mesher, gridder, utils, gravmag from fatiando.vis import mpl, myv log = logger.get() log.info(logger.header()) # Make a model bounds = [-5000, 5000, -5000, 5000, 0, 5000] model = [ mesher.Prism(...
32.728571
78
0.690965
350
2,291
4.511429
0.425714
0.015199
0.0114
0.020899
0.079797
0.079797
0.079797
0
0
0
0
0.058333
0.161938
2,291
69
79
33.202899
0.764063
0.161938
0
0.122449
0
0
0.119296
0
0
0
0
0
0
0
null
null
0
0.040816
null
null
0.061224
0
0
0
null
0
0
0
0
0
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
9e00350a4a2fb7dd0ecbdf440b5912df33e77fb3
324
py
Python
popmemes/backend/popmemes/migrations/0002_auto_20190122_0939.py
hangulu/twitter
e4461652d35fc6d547e93f364b56c1a1637c5547
[ "MIT" ]
null
null
null
popmemes/backend/popmemes/migrations/0002_auto_20190122_0939.py
hangulu/twitter
e4461652d35fc6d547e93f364b56c1a1637c5547
[ "MIT" ]
7
2019-12-29T08:23:25.000Z
2022-02-26T14:04:51.000Z
popmemes/backend/popmemes/migrations/0002_auto_20190122_0939.py
hangulu/twitter
e4461652d35fc6d547e93f364b56c1a1637c5547
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-01-22 09:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('popmemes', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='Popmemes', new_name='PopImage', ), ...
18
47
0.58642
34
324
5.5
0.823529
0
0
0
0
0
0
0
0
0
0
0.0837
0.299383
324
17
48
19.058824
0.740088
0.138889
0
0
1
0
0.129964
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9e06be00254eeed4fa569ee854389c69ab61f743
6,434
py
Python
tests/ampligraph/datasets/test_datasets.py
ojasviyadav/AmpliGraph
07ce70ff9e30812ac8f4a34d245d1d5decec27f7
[ "Apache-2.0" ]
null
null
null
tests/ampligraph/datasets/test_datasets.py
ojasviyadav/AmpliGraph
07ce70ff9e30812ac8f4a34d245d1d5decec27f7
[ "Apache-2.0" ]
null
null
null
tests/ampligraph/datasets/test_datasets.py
ojasviyadav/AmpliGraph
07ce70ff9e30812ac8f4a34d245d1d5decec27f7
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The AmpliGraph Authors. All Rights Reserved. # # This file is Licensed under the Apache License, Version 2.0. # A copy of the Licence is available in LICENCE, or at: # # http://www.apache.org/licenses/LICENSE-2.0 # from ampligraph.datasets import load_wn18, load_fb15k, load_fb15k_237, load_yago3_10...
42.328947
119
0.615636
933
6,434
4.082529
0.135048
0.101601
0.06931
0.07141
0.676556
0.572329
0.4513
0.416907
0.345235
0.345235
0
0.122159
0.17936
6,434
151
120
42.609272
0.599242
0.274479
0
0.204545
0
0
0.102199
0
0
0
0
0
0.568182
1
0.090909
false
0
0.034091
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
1
0
0
0
0
0
0
0
0
0
1
9e097d9b8021dd21364c747eb7b2f08352fe9ba6
1,155
py
Python
scripts/gen_mh.py
bplank/DaNplus
220428109c9ae5abc60e8968a7fe7a4aa6ad92e3
[ "MIT" ]
5
2020-12-11T17:11:03.000Z
2022-01-01T12:14:04.000Z
scripts/gen_mh.py
bplank/DaNplus
220428109c9ae5abc60e8968a7fe7a4aa6ad92e3
[ "MIT" ]
null
null
null
scripts/gen_mh.py
bplank/DaNplus
220428109c9ae5abc60e8968a7fe7a4aa6ad92e3
[ "MIT" ]
null
null
null
import os COL_SEPARATOR = "\t" MULTI_SEPARATOR = "$" for neFile in os.listdir('data/'): neFile = 'data/' + neFile out_filename = neFile.replace('.tsv', "_mh.tsv") if os.path.isfile(out_filename) or '_mh' in neFile or os.path.isdir(neFile): continue out_f = open(out_filename, "w") with open(n...
38.5
80
0.507359
148
1,155
3.736486
0.324324
0.216998
0.099458
0.065099
0.240506
0.240506
0.240506
0.240506
0.240506
0.240506
0
0.018692
0.351515
1,155
29
81
39.827586
0.719626
0
0
0.074074
0
0
0.032929
0
0
0
0
0
0
1
0
false
0
0.037037
0
0.037037
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9e0cb81c07d1ab8a7ecca4e8e8464e12bdf7bef9
954
py
Python
benchmark/generate_data.py
etra0/sapeaob
3e21bd66f8530f983130c52e37d612cc53181acd
[ "MIT" ]
3
2021-08-04T13:00:25.000Z
2021-12-21T21:07:40.000Z
benchmark/generate_data.py
etra0/sapeaob
3e21bd66f8530f983130c52e37d612cc53181acd
[ "MIT" ]
null
null
null
benchmark/generate_data.py
etra0/sapeaob
3e21bd66f8530f983130c52e37d612cc53181acd
[ "MIT" ]
null
null
null
import argparse import random SIGNATURE = b'\xDE\xAD\xBE\xEF\xC0\xFF\xEE\xAA\xBB\xCC\xDD\xEE\xFF\x00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xAA' # Generate data in chunks of 1024 bytes. def generate_random_data(size): data = bytearray() while len(data) <= size: data += random.randbytes(1024) return ...
25.783784
111
0.669811
140
954
4.435714
0.542857
0.05153
0.057971
0.067633
0
0
0
0
0
0
0
0.051348
0.183438
954
36
112
26.5
0.745828
0.039832
0
0
1
0.041667
0.161926
0.105033
0
0
0
0
0
1
0.166667
false
0
0.083333
0
0.291667
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
9e15279f716f2f3dcaf04f7c355aee058fe22e12
1,120
py
Python
pyxedit/xedit/object_classes/HDPT.py
leontristain/pyxedit
4100506930ab6d62d6e2c4a89fee024dbbf87c7b
[ "MIT" ]
null
null
null
pyxedit/xedit/object_classes/HDPT.py
leontristain/pyxedit
4100506930ab6d62d6e2c4a89fee024dbbf87c7b
[ "MIT" ]
13
2019-04-09T06:14:22.000Z
2020-07-03T07:35:30.000Z
pyxedit/xedit/object_classes/HDPT.py
leontristain/pyxedit
4100506930ab6d62d6e2c4a89fee024dbbf87c7b
[ "MIT" ]
null
null
null
from enum import Enum from pyxedit.xedit.attribute import XEditAttribute from pyxedit.xedit.generic import XEditGenericObject class HeadPartTypes(Enum): Misc = 'Misc' Face = 'Face' Eyes = 'Eyes' Hair = 'Hair' FacialHair = 'Facial Hair' Scar = 'Scar' Eyebrows = 'Eyebrows' class XEditHead...
31.111111
80
0.669643
122
1,120
6.040984
0.52459
0.029851
0.043419
0
0
0
0
0
0
0
0
0.002262
0.210714
1,120
35
81
32
0.831448
0
0
0
0
0
0.128571
0.050893
0
0
0
0
0
1
0.035714
false
0
0.107143
0
1.285714
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
9e16d5b26d929cfae2b8a212b8915e0500128d25
1,040
py
Python
tests/CornerCasesTest.py
dpep/py_pluckit
be7c1cd6e2555234f08dd0cb6239db2c249562a4
[ "MIT" ]
null
null
null
tests/CornerCasesTest.py
dpep/py_pluckit
be7c1cd6e2555234f08dd0cb6239db2c249562a4
[ "MIT" ]
null
null
null
tests/CornerCasesTest.py
dpep/py_pluckit
be7c1cd6e2555234f08dd0cb6239db2c249562a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import unittest from collections import namedtuple sys.path = [ os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')) ] + sys.path from pluckit import pluck class CornerCasesTest(unittest.TestCase): def test_null_handle(self): data = [1, 2, 3] ...
21.22449
91
0.516346
118
1,040
4.398305
0.381356
0.202312
0.146435
0.080925
0.217726
0.109827
0
0
0
0
0
0.019971
0.325962
1,040
48
92
21.666667
0.720399
0.019231
0
0
0
0
0.019627
0
0
0
0
0
0.212121
1
0.121212
false
0
0.151515
0
0.30303
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1