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
345164971a2c93830e3358826acf86441dbdf9b6
1,294
py
Python
mail/models.py
drscream/kumquat
7bd3d84cc4d0fbdbefa46849210fa787176d6091
[ "MIT" ]
12
2015-12-10T03:13:28.000Z
2022-03-06T15:43:40.000Z
mail/models.py
drscream/kumquat
7bd3d84cc4d0fbdbefa46849210fa787176d6091
[ "MIT" ]
53
2020-10-09T06:38:09.000Z
2022-03-16T23:04:34.000Z
mail/models.py
drscream/kumquat
7bd3d84cc4d0fbdbefa46849210fa787176d6091
[ "MIT" ]
2
2017-02-17T10:13:02.000Z
2018-07-06T11:02:26.000Z
from django.db import models from django.utils.translation import ugettext_lazy as _ from passlib.hash import sha512_crypt from kumquat.models import Domain default_length = 255 class Account(models.Model): name = models.CharField(max_length=default_length) domain = models.ForeignKey(Domain, related_name=...
29.409091
162
0.729521
170
1,294
5.376471
0.370588
0.052516
0.059081
0.078775
0.455142
0.455142
0.414661
0.414661
0.414661
0.414661
0
0.008029
0.133694
1,294
43
163
30.093023
0.807315
0
0
0.451613
0
0
0.08662
0.017788
0
0
0
0
0
1
0.16129
false
0.129032
0.129032
0.064516
0.709677
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
1
0
0
2
3468df68fd8fc6a0c52f0380581de6898df0a999
658
py
Python
src/schema/create_minio_bucket.py
mdpham/minio-loompy-graphene
11bad237bd10658a97dd2a28057c83ad47e432be
[ "BSD-3-Clause" ]
null
null
null
src/schema/create_minio_bucket.py
mdpham/minio-loompy-graphene
11bad237bd10658a97dd2a28057c83ad47e432be
[ "BSD-3-Clause" ]
9
2020-03-27T07:55:20.000Z
2022-02-18T23:47:56.000Z
src/schema/create_minio_bucket.py
mdpham/minio-loompy-graphene
11bad237bd10658a97dd2a28057c83ad47e432be
[ "BSD-3-Clause" ]
null
null
null
from graphene import Schema, Mutation, String, Field, ID, List from minio import Minio from minio.error import ResponseError from .minio_bucket import MinioBucket from minio_client.client import minio_client class CreateMinioBucket(Mutation): # Use minio bucket type definition to be returned when created Output ...
31.333333
64
0.767477
85
658
5.823529
0.552941
0.10101
0
0
0
0
0
0
0
0
0
0
0.177812
658
21
65
31.333333
0.914972
0.223404
0
0
0
0
0.021654
0
0
0
0
0
0
1
0.066667
false
0
0.333333
0
0.666667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
34779ad96b37a7ece57e092fb2f969041bbfc0ed
27,098
py
Python
tests/test_tree.py
tgragnato/geneva
2fc5b2f2f4766278902cff25af50b753d1d26a76
[ "BSD-3-Clause" ]
1,182
2019-11-15T02:56:47.000Z
2022-03-30T16:09:04.000Z
tests/test_tree.py
Nekotekina/geneva
3eb6b7342f9afd7add1f4aba9e2aadf0b9a5f196
[ "BSD-3-Clause" ]
21
2019-11-15T15:08:02.000Z
2022-01-03T16:22:45.000Z
tests/test_tree.py
Nekotekina/geneva
3eb6b7342f9afd7add1f4aba9e2aadf0b9a5f196
[ "BSD-3-Clause" ]
102
2019-11-15T15:01:07.000Z
2022-03-30T13:52:47.000Z
import logging import os from scapy.all import IP, TCP import actions.tree import actions.drop import actions.tamper import actions.duplicate import actions.utils import layers.packet def test_init(): """ Tests initialization """ print(actions.action.Action.get_actions("out")) def test_count_leaves...
39.501458
315
0.665104
3,749
27,098
4.746332
0.058682
0.060245
0.031471
0.060189
0.78105
0.717433
0.655502
0.617231
0.586771
0.551085
0
0.013152
0.177873
27,098
685
316
39.559124
0.781892
0.052919
0
0.59854
0
0.034672
0.200095
0.124335
0
0
0
0
0.45073
1
0.032847
false
0
0.016423
0
0.04927
0.047445
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
1
0
0
0
0
0
0
0
0
0
2
caa0e695442da8dc639ed3c9061223b76d6ae4f6
579
py
Python
db_models/deckentry.py
Teplitsa/false-security-1
9e5cc23c8bf324d923965bb2624cac4994891154
[ "MIT" ]
1
2020-10-01T17:44:26.000Z
2020-10-01T17:44:26.000Z
db_models/deckentry.py
Teplitsa/false-security-1
9e5cc23c8bf324d923965bb2624cac4994891154
[ "MIT" ]
null
null
null
db_models/deckentry.py
Teplitsa/false-security-1
9e5cc23c8bf324d923965bb2624cac4994891154
[ "MIT" ]
1
2021-10-05T12:09:07.000Z
2021-10-05T12:09:07.000Z
from globals import db import db_models.game from db_models.card import Card class DeckEntry(db.Model): #__table_args__ = {'extend_existing': True} __tablename__ = 'deckentry' id = db.Column(db.Integer, primary_key=True) # TODO: Undo nullable cardId = db.Column(db.Integer, db.ForeignKey('card.id'),...
41.357143
76
0.713299
80
579
4.9875
0.425
0.080201
0.100251
0.170426
0.145363
0.145363
0
0
0
0
0
0
0.148532
579
14
77
41.357143
0.809331
0.107081
0
0
0
0
0.067829
0
0
0
0
0.071429
0
1
0
false
0
0.272727
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
1
0
0
0
0
0
0
0
0
0
0
2
caa108c99289e504df2d4967b77c333b2d533a6d
1,482
py
Python
fisher_py/data/file_error.py
abdelq/fisher_py
befb98732ba7c4e57858d158c68cda09ed829d66
[ "MIT" ]
3
2021-11-03T20:55:45.000Z
2022-02-01T10:11:47.000Z
fisher_py/data/file_error.py
abdelq/fisher_py
befb98732ba7c4e57858d158c68cda09ed829d66
[ "MIT" ]
2
2022-01-28T02:04:21.000Z
2022-01-29T01:29:14.000Z
fisher_py/data/file_error.py
abdelq/fisher_py
befb98732ba7c4e57858d158c68cda09ed829d66
[ "MIT" ]
1
2022-01-26T23:30:37.000Z
2022-01-26T23:30:37.000Z
from fisher_py.net_wrapping import NetWrapperBase class FileError(NetWrapperBase): @property def has_error(self) -> bool: """ Gets a value indicating whether this file has detected an error. If this is false: Other error properties in this interface have no meaning. Applications s...
32.217391
90
0.654521
179
1,482
5.268156
0.452514
0.058325
0.068929
0.106045
0.415695
0.195122
0.195122
0.114528
0.114528
0.114528
0
0.011215
0.278003
1,482
45
91
32.933333
0.870093
0.450742
0
0.294118
0
0
0
0
0
0
0
0
0
1
0.294118
false
0
0.058824
0
0.705882
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
cab43f37667bf4a445a87188b43c261b7be4262e
1,250
py
Python
URLSHORT/lib.py
its-mr-monday/Url-Shortener
bca0f9c1a8d6c5a686704d7a410351b9ce31439b
[ "MIT" ]
null
null
null
URLSHORT/lib.py
its-mr-monday/Url-Shortener
bca0f9c1a8d6c5a686704d7a410351b9ce31439b
[ "MIT" ]
null
null
null
URLSHORT/lib.py
its-mr-monday/Url-Shortener
bca0f9c1a8d6c5a686704d7a410351b9ce31439b
[ "MIT" ]
null
null
null
import random import string import requests def SQL_SYNTAX_CHECK(input: str) -> bool: bad_char = ['*',';','SELECT ',' FROM ', ' TRUE ', ' WHERE '] for char in bad_char: if char in input: return False return True def validateRegistration(name, uname, email, password, confirm): if l...
24.509804
72
0.604
164
1,250
4.52439
0.420732
0.074124
0.097035
0.053908
0.075472
0.075472
0
0
0
0
0
0.032438
0.2848
1,250
51
73
24.509804
0.797539
0
0
0.205128
0
0
0.141487
0
0
0
0
0
0
1
0.128205
false
0.128205
0.076923
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
cae2b6216f4f43c83ea66c2eb2462e3bd35c9bfd
1,607
py
Python
stats.py
warppoint42/Mahjong221
dac82c726927730e11112e2a62b500587717b7ed
[ "MIT" ]
null
null
null
stats.py
warppoint42/Mahjong221
dac82c726927730e11112e2a62b500587717b7ed
[ "MIT" ]
null
null
null
stats.py
warppoint42/Mahjong221
dac82c726927730e11112e2a62b500587717b7ed
[ "MIT" ]
null
null
null
import csv stats = dict() with open('unifiedroundlog.csv', 'r') as csvfile: reader = csv.DictReader(csvfile, ('AI', 'gameID', 'end', 'win', 'feed', 'riichi')) for row in reader: if row['AI'] not in stats: stats[row['AI']] = dict() stats[row['AI']].setdefault('n', 0) stats[r...
32.14
86
0.450529
215
1,607
3.367442
0.162791
0.172652
0.331492
0.276243
0.477901
0.129834
0.129834
0.129834
0.129834
0.129834
0
0.036778
0.289359
1,607
49
87
32.795918
0.597198
0
0
0.04878
0
0
0.129052
0
0
0
0
0
0
1
0
false
0
0.02439
0
0.02439
0.02439
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
caef5559516f4fd218345acf0eae5ad95febdf7a
1,470
py
Python
BERT_Custom/bert_sequence_tagger/metrics.py
gp201/BERT
0479bfb4faf7fb107acb38bd1a0e27a23719aa92
[ "MIT" ]
1
2020-03-20T09:58:58.000Z
2020-03-20T09:58:58.000Z
BERT_Custom/bert_sequence_tagger/metrics.py
gp201/BERT
0479bfb4faf7fb107acb38bd1a0e27a23719aa92
[ "MIT" ]
null
null
null
BERT_Custom/bert_sequence_tagger/metrics.py
gp201/BERT
0479bfb4faf7fb107acb38bd1a0e27a23719aa92
[ "MIT" ]
null
null
null
import itertools from sklearn.metrics import f1_score as f1_score_sklearn from seqeval.metrics import f1_score from sklearn.metrics import classification_report def f1_entity_level(*args, **kwargs): return f1_score(*args, **kwargs) def f1_token_level(true_labels, predictions): true_labels = list(...
35
57
0.572109
144
1,470
5.597222
0.222222
0.186104
0.182382
0.093052
0.669975
0.669975
0.622829
0.622829
0.622829
0.622829
0
0.009212
0.335374
1,470
42
58
35
0.815763
0
0
0.517241
0
0
0.016084
0
0
0
0
0
0
1
0.137931
false
0
0.137931
0.034483
0.413793
0
0
0
0
null
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1b069eee129e69f7b50529f8283d98c09f05a638
836
py
Python
architecture/structures/fsm.py
TEKERone/VuelaBot
c333ba213a91fd2297b5bd2ee393226dcbb39c01
[ "MIT" ]
null
null
null
architecture/structures/fsm.py
TEKERone/VuelaBot
c333ba213a91fd2297b5bd2ee393226dcbb39c01
[ "MIT" ]
null
null
null
architecture/structures/fsm.py
TEKERone/VuelaBot
c333ba213a91fd2297b5bd2ee393226dcbb39c01
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from architecture.structures.states import State from architecture.sensors.parsing import NLParser class FSM: """Máquina de estados """ def __init__(...
27.866667
75
0.657895
94
836
5.521277
0.5
0.16185
0.154143
0
0
0
0
0
0
0
0
0.003247
0.263158
836
29
76
28.827586
0.839286
0.141148
0
0
0
0
0.024011
0
0
0
0
0
0.066667
1
0.2
false
0
0.333333
0
0.6
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
1b0d9662f2b05d2ad83bc0fe148544efb0eb5d9a
2,492
py
Python
04-Working-With-Dataframes/4.Exercise_ Distinct Articles.py
RodriGonca/DP-203-Data-Engineer
ef8e81bd4bda1e285c2e43714368d46be3ad041b
[ "MIT" ]
null
null
null
04-Working-With-Dataframes/4.Exercise_ Distinct Articles.py
RodriGonca/DP-203-Data-Engineer
ef8e81bd4bda1e285c2e43714368d46be3ad041b
[ "MIT" ]
null
null
null
04-Working-With-Dataframes/4.Exercise_ Distinct Articles.py
RodriGonca/DP-203-Data-Engineer
ef8e81bd4bda1e285c2e43714368d46be3ad041b
[ "MIT" ]
null
null
null
# Databricks notebook source # MAGIC %md # MAGIC # Introduction to DataFrames Lab # MAGIC ## Distinct Articles # COMMAND ---------- # MAGIC %md # MAGIC ##![Spark Logo Tiny](https://files.training.databricks.com/images/105/logo_spark_tiny.png) Instructions # MAGIC # MAGIC In the cell provided below, write the code ne...
34.611111
126
0.6874
337
2,492
5.032641
0.391691
0.024764
0.035377
0.044811
0.238208
0.238208
0.207547
0.207547
0.207547
0.207547
0
0.013327
0.186998
2,492
71
127
35.098592
0.823791
0.735554
0
0.230769
0
0
0.186047
0.086379
0
0
0
0.014085
0.076923
0
null
null
0
0
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
2
1b2ad0ae61c78643d62af25d4ac99dd6250e8bf1
1,655
py
Python
jupiter/use_cases/prm/person/remove.py
horia141/jupiter
2c721d1d44e1cd2607ad9936e54a20ea254741dc
[ "MIT" ]
15
2019-05-05T14:34:58.000Z
2022-02-25T09:57:28.000Z
jupiter/use_cases/prm/person/remove.py
horia141/jupiter
2c721d1d44e1cd2607ad9936e54a20ea254741dc
[ "MIT" ]
3
2020-02-22T16:09:39.000Z
2021-12-18T21:33:06.000Z
jupiter/use_cases/prm/person/remove.py
horia141/jupiter
2c721d1d44e1cd2607ad9936e54a20ea254741dc
[ "MIT" ]
null
null
null
"""Remove a person.""" import logging from typing import Final from jupiter.domain.inbox_tasks.infra.inbox_task_notion_manager import InboxTaskNotionManager from jupiter.domain.prm.infra.prm_notion_manager import PrmNotionManager from jupiter.domain.prm.service.remove_service import PersonRemoveService from jupiter.do...
40.365854
109
0.767372
194
1,655
6.170103
0.340206
0.130326
0.075188
0.110276
0.101921
0
0
0
0
0
0
0
0.159517
1,655
40
110
41.375
0.860532
0.056798
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.321429
0
0.571429
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
1
0
0
2
1b3af065e11ddefc9d69f8908fab887ea05f1e93
1,233
py
Python
plugins_/open_package.py
calculuswhiz/PackageDev
76fe412eefbc775f647591fbd2c526391aea98fc
[ "MIT" ]
null
null
null
plugins_/open_package.py
calculuswhiz/PackageDev
76fe412eefbc775f647591fbd2c526391aea98fc
[ "MIT" ]
null
null
null
plugins_/open_package.py
calculuswhiz/PackageDev
76fe412eefbc775f647591fbd2c526391aea98fc
[ "MIT" ]
null
null
null
import glob import os import sublime import sublime_plugin from .create_package import _open_folder_in_st, _is_override_package __all__ = ('PackagedevOpenPackageCommand',) OVERRIDE_SUFFIX = " [*Override*]" def _list_normal_packages(): pkgspath = sublime.packages_path() folders = glob.glob(os.path.join(pkg...
26.234043
69
0.675588
144
1,233
5.548611
0.402778
0.048811
0.030038
0.035044
0
0
0
0
0
0
0
0.001044
0.223033
1,233
46
70
26.804348
0.832985
0.045418
0
0
0
0
0.045106
0.02383
0
0
0
0.021739
0
1
0.16129
false
0
0.16129
0.064516
0.516129
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
1b5dfc54272c0e15842823c60d77faea8d0bda76
2,955
py
Python
tests/generate_new_site/utilities/test_tables.py
aychen99/Excavating-Occaneechi-Town
6e864ca69ff1881554eb4c88aebed236bafbeaf4
[ "MIT" ]
1
2020-10-01T01:07:11.000Z
2020-10-01T01:07:11.000Z
tests/generate_new_site/utilities/test_tables.py
aychen99/Excavating-Occaneechi-Town
6e864ca69ff1881554eb4c88aebed236bafbeaf4
[ "MIT" ]
null
null
null
tests/generate_new_site/utilities/test_tables.py
aychen99/Excavating-Occaneechi-Town
6e864ca69ff1881554eb4c88aebed236bafbeaf4
[ "MIT" ]
null
null
null
from unittest import mock from unittest.mock import patch from src.generate_new_site.utilities import tables from pathlib import Path ############################### # PathTable integration tests # ############################### def test_pathtable_register_and_gets(): pathtable = tables.PathTable() test_obj...
33.579545
101
0.609475
404
2,955
4.153465
0.14604
0.085816
0.18236
0.104887
0.520262
0.380215
0.116806
0.085816
0
0
0
0.011832
0.22775
2,955
87
102
33.965517
0.723488
0.042301
0
0.1
1
0
0.077666
0.021182
0
0
0
0
0.316667
1
0.05
false
0
0.066667
0
0.216667
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1b6d044699c6c19b255bab4c846b102b0a2b1aae
7,604
py
Python
test/basemodule_test.py
nktankta/PytorchCNNModules
bc1469ceb37477d3f60062f14a750f272e7ceeb0
[ "MIT" ]
null
null
null
test/basemodule_test.py
nktankta/PytorchCNNModules
bc1469ceb37477d3f60062f14a750f272e7ceeb0
[ "MIT" ]
null
null
null
test/basemodule_test.py
nktankta/PytorchCNNModules
bc1469ceb37477d3f60062f14a750f272e7ceeb0
[ "MIT" ]
null
null
null
import pytest import torch import torch.nn as nn from module_list import get_test_module from PytorchCNNModules.modules.base_module import BaseModule,SEmodule class CNN(BaseModule): def __init__(self,in_feature,out_featue,stride=1): super(CNN,self).__init__(in_feature,out_featue,stride) self.cnn = ...
37.458128
110
0.687138
1,183
7,604
4.23415
0.094675
0.065881
0.057497
0.068277
0.729088
0.708924
0.673787
0.618087
0.611499
0.601118
0
0.071847
0.147028
7,604
203
111
37.458128
0.700432
0
0
0.355422
0
0
0.071269
0.048915
0
0
0
0
0.13253
1
0.144578
false
0
0.03012
0.006024
0.198795
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1b8d1a7f7c749a047b0eddbcadab57bb15964022
4,517
py
Python
unsupervised_meta_learning/_nbdev.py
ojss/c3lr
a018c5a793a2c9eedc3f0fefcca0970f0be35ffc
[ "Apache-2.0" ]
3
2022-02-24T07:02:12.000Z
2022-03-20T18:33:58.000Z
unsupervised_meta_learning/_nbdev.py
ojss/c3lr
a018c5a793a2c9eedc3f0fefcca0970f0be35ffc
[ "Apache-2.0" ]
null
null
null
unsupervised_meta_learning/_nbdev.py
ojss/c3lr
a018c5a793a2c9eedc3f0fefcca0970f0be35ffc
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"c_imshow": "01_nn_utils.ipynb", "Flatten": "01_nn_utils.ipynb", "conv3x3": "01_nn_utils.ipynb", "get_proto_accuracy": "01_nn_utils.ipynb", "get_accuracy": "02_maml_pl.ipyn...
44.722772
73
0.636263
513
4,517
5.159844
0.298246
0.15867
0.099736
0.141292
0.234605
0.096335
0.037401
0
0
0
0
0.047782
0.221607
4,517
100
74
45.17
0.705063
0.00797
0
0
1
0
0.643894
0.199821
0
0
0
0
0
1
0.010753
false
0
0
0.010753
0.010753
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1b986bdba6c54856abc4ac0745d2acf81a33c07d
1,356
py
Python
example/schema/tests/unittest/toys.py
donghak-shin/dp-tornado
095bb293661af35cce5f917d8a2228d273489496
[ "MIT" ]
18
2015-04-07T14:28:39.000Z
2020-02-08T14:03:38.000Z
example/schema/tests/unittest/toys.py
donghak-shin/dp-tornado
095bb293661af35cce5f917d8a2228d273489496
[ "MIT" ]
7
2016-10-05T05:14:06.000Z
2021-05-20T02:07:22.000Z
example/schema/tests/unittest/toys.py
donghak-shin/dp-tornado
095bb293661af35cce5f917d8a2228d273489496
[ "MIT" ]
11
2015-12-15T09:49:39.000Z
2021-09-06T18:38:21.000Z
# -*- coding: utf-8 -*- from dp_tornado.engine.schema import Table as dpTable from dp_tornado.engine.schema import Schema as dpSchema from dp_tornado.engine.schema import Attribute as dpAttribute class ToysSchema(dpTable): __table_name__ = 'toys' __engine__ = 'InnoDB' __charset__ = 'euckr' toy_id ...
46.758621
160
0.725664
180
1,356
5.227778
0.333333
0.044633
0.143464
0.185972
0.185972
0.098831
0
0
0
0
0
0.013687
0.137906
1,356
28
161
48.428571
0.791275
0.015487
0
0
0
0
0.216804
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.833333
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
1
0
0
2
1b9b5b9e063185961a0c23077b632b02171d2fdb
1,233
py
Python
source/guides/migrations/0002_auto_20170123_1809.py
OpenNews/opennews-source
71b557275bc5d03c75eb471fc3293efa492c0ac7
[ "MIT" ]
6
2017-01-05T00:51:48.000Z
2021-11-08T10:26:04.000Z
source/guides/migrations/0002_auto_20170123_1809.py
OpenNews/opennews-source
71b557275bc5d03c75eb471fc3293efa492c0ac7
[ "MIT" ]
146
2017-01-03T16:06:43.000Z
2022-03-11T23:25:43.000Z
source/guides/migrations/0002_auto_20170123_1809.py
OpenNews/opennews-source
71b557275bc5d03c75eb471fc3293efa492c0ac7
[ "MIT" ]
3
2017-02-16T22:52:47.000Z
2019-08-15T16:49:47.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-01-23 18:09 from __future__ import unicode_literals from django.db import migrations, models import sorl.thumbnail.fields class Migration(migrations.Migration): dependencies = [ ('guides', '0001_initial'), ] operations = [ mig...
29.357143
119
0.596107
126
1,233
5.642857
0.452381
0.126582
0.161744
0.189873
0.518987
0.518987
0.518987
0.2827
0.2827
0.219409
0
0.034169
0.287916
1,233
41
120
30.073171
0.775626
0.05515
0
0.529412
1
0
0.143718
0.049053
0
0
0
0
0
1
0
false
0
0.088235
0
0.176471
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1ba07eaa9253946b4f345408b4a379ec82d0ede6
375
py
Python
recip/util/Address.py
anthonybuckle/Reciprocity-Core
3254073f44e8fe2222aed9879885a2e609d4044a
[ "MIT" ]
null
null
null
recip/util/Address.py
anthonybuckle/Reciprocity-Core
3254073f44e8fe2222aed9879885a2e609d4044a
[ "MIT" ]
null
null
null
recip/util/Address.py
anthonybuckle/Reciprocity-Core
3254073f44e8fe2222aed9879885a2e609d4044a
[ "MIT" ]
null
null
null
from recip.util import DataType from recip.util import Validator def toAddressBytes(address): if address.startswith('0x'): address = address[2:] return DataType.fromHex(address) def toAddressStr(addressBytes): return DataType.toHex(addressBytes) def to0xAddress(addressBytes): address = toAddr...
26.785714
40
0.746667
42
375
6.666667
0.5
0.064286
0.092857
0.135714
0
0
0
0
0
0
0
0.015773
0.154667
375
14
41
26.785714
0.867508
0
0
0
0
0
0.018617
0
0
0
0
0
0
1
0.272727
false
0
0.181818
0.090909
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
1
0
0
0
0
1
0
0
2
1bd1d5cfc2e0f45a350b9178b490c86e26fca79d
8,346
py
Python
splunk-cluster/splunk_setup.py
outcoldman/docker-splunk-cluster
5b3feb8131197b1a0a574dfea9ec4f20703c189b
[ "MIT" ]
34
2016-07-22T16:37:49.000Z
2021-11-19T22:32:30.000Z
splunk-cluster/splunk_setup.py
mhassan2/docker-splunk-cluster
5b3feb8131197b1a0a574dfea9ec4f20703c189b
[ "MIT" ]
5
2016-07-25T16:02:29.000Z
2017-02-17T19:17:45.000Z
splunk-cluster/splunk_setup.py
outcoldman/docker-splunk-cluster
5b3feb8131197b1a0a574dfea9ec4f20703c189b
[ "MIT" ]
20
2016-07-26T01:02:47.000Z
2019-09-20T03:01:52.000Z
import os import sys import json import time import socket import re import glob import subprocess import requests import splunk.clilib.cli_common import splunk.util var_expandvars_re = re.compile(r'\AENV\((.*)\)$') var_shell_re = re.compile(r'\ASHELL\((.*)\)$') def main(): """ Initialize node. Can run be...
38.818605
186
0.594896
976
8,346
4.865779
0.243852
0.101074
0.028006
0.039798
0.365761
0.337334
0.318804
0.273952
0.215835
0.202569
0
0.008495
0.294752
8,346
215
187
38.818605
0.798335
0.036065
0
0.288344
0
0
0.113154
0.005101
0
0
0
0
0
0
null
null
0.055215
0.067485
null
null
0.055215
0
0
0
null
0
0
0
0
0
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
1
0
0
0
0
0
2
59f1c15a95f6ece1eb1189e10c53a789c1ff17ed
1,404
py
Python
rawquery/rawquery.py
joncombe/django-raw-query
b10c8f5731668bd16fd37cfc86b37dcb0ca65f4f
[ "BSD-3-Clause" ]
3
2020-07-16T20:01:57.000Z
2022-03-26T06:39:32.000Z
rawquery/rawquery.py
joncombe/django-raw-query
b10c8f5731668bd16fd37cfc86b37dcb0ca65f4f
[ "BSD-3-Clause" ]
null
null
null
rawquery/rawquery.py
joncombe/django-raw-query
b10c8f5731668bd16fd37cfc86b37dcb0ca65f4f
[ "BSD-3-Clause" ]
null
null
null
from django.db import connection class RawQuery: # return a list of dicts # e.g. SELECT * FROM my_table # [ # {'a': 1, 'b': 2, 'c': 3}, # {'a': 1, 'b': 2, 'c': 3}, # ] def multiple_rows(self, sql, params=[]): cursor = self._do_query(sql, params) columns = [col[0] for c...
29.87234
74
0.57265
195
1,404
4.015385
0.312821
0.137931
0.099617
0.121328
0.309068
0.252874
0.237548
0.237548
0.237548
0.187739
0
0.023069
0.289886
1,404
46
75
30.521739
0.762287
0.281339
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.041667
0.041667
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
59fe80b466cc0482b71f0268fc89c32034df5ce8
10,255
py
Python
laba/user.py
Snake-Whisper/laba
78db605d594c2a2c2c3245c00269f08303c6b7ea
[ "MIT" ]
null
null
null
laba/user.py
Snake-Whisper/laba
78db605d594c2a2c2c3245c00269f08303c6b7ea
[ "MIT" ]
null
null
null
laba/user.py
Snake-Whisper/laba
78db605d594c2a2c2c3245c00269f08303c6b7ea
[ "MIT" ]
null
null
null
from flask import g, session import pymysql import redis import random import string from json import loads, dumps from exceptions.userException import * from hashlib import sha256 class User(): __changed = {} _values = {} __loggedIn = True __initialized = False __health = False def __init...
33.622951
205
0.583715
1,159
10,255
4.994823
0.150129
0.088098
0.038694
0.048368
0.467784
0.338055
0.317326
0.317326
0.317326
0.317326
0
0.003911
0.276938
10,255
304
206
33.733553
0.776804
0.055193
0
0.414634
0
0.00813
0.13174
0
0
0
0
0
0.004065
1
0.207317
false
0.060976
0.03252
0.069106
0.373984
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
1
0
0
0
0
0
2
940087754d4f3fba00dce2ece646519c4b46fb0b
5,417
py
Python
asp/codegen/scala_ast.py
shoaibkamil/asp
2bc5fd5595c475d43b9ee4451db1b51eb9165fdb
[ "BSD-3-Clause" ]
12
2015-03-20T17:39:23.000Z
2021-03-17T17:14:25.000Z
asp/codegen/scala_ast.py
shoaibkamil/asp
2bc5fd5595c475d43b9ee4451db1b51eb9165fdb
[ "BSD-3-Clause" ]
1
2015-12-28T11:22:48.000Z
2015-12-28T11:22:48.000Z
asp/codegen/scala_ast.py
shoaibkamil/asp
2bc5fd5595c475d43b9ee4451db1b51eb9165fdb
[ "BSD-3-Clause" ]
9
2015-01-06T00:36:53.000Z
2020-09-19T14:31:26.000Z
import ast """ I don't use the Generable class inheritance """ class Generable(): pass class func_types(Generable): def __init__(self, types): self.types = types self._fields = [] class Number(Generable): def __init__(self, num): self.num = num self._fields = [] self.done= False def __iter__(sel...
17.142405
67
0.670113
731
5,417
4.718194
0.109439
0.106698
0.073355
0.086982
0.615251
0.534068
0.517831
0.506234
0.506234
0.506234
0
0
0.218202
5,417
315
68
17.196825
0.814404
0.008492
0
0.704
0
0
0.015431
0
0
0
0
0
0
1
0.212
false
0.008
0.004
0.06
0.432
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
940152d4021e4a7153b7871ac9b9df4b89170155
1,578
py
Python
cdgo/mathops.py
s-gordon/CDGo
7bd1b3a6780f70f1237a7f0cac5e112c6b804100
[ "MIT" ]
1
2019-01-24T20:52:19.000Z
2019-01-24T20:52:19.000Z
cdgo/mathops.py
s-gordon/CDGo
7bd1b3a6780f70f1237a7f0cac5e112c6b804100
[ "MIT" ]
3
2015-06-18T06:09:37.000Z
2017-09-07T02:48:44.000Z
cdgo/mathops.py
s-gordon/CDGo
7bd1b3a6780f70f1237a7f0cac5e112c6b804100
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np def residuals(fit, obs): """Calculate residuals for fit compared to observed data :fit: list of discrete fit data points :obs: list of observed data points :returns: fit minus observed data points """ return fit-obs def fit_...
23.552239
71
0.653992
225
1,578
4.475556
0.28
0.055611
0.083416
0.119166
0.453823
0.350546
0.350546
0.314796
0.314796
0.314796
0
0.032051
0.209125
1,578
66
72
23.909091
0.77484
0.439164
0
0.090909
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.045455
0
0.590909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
9404aefdf46be89ea0882f84aad9a69dde8da596
1,753
py
Python
gene.py
Chappie733/Neat
2414842197c9a146293246e984557b36c8b9fb89
[ "MIT" ]
null
null
null
gene.py
Chappie733/Neat
2414842197c9a146293246e984557b36c8b9fb89
[ "MIT" ]
null
null
null
gene.py
Chappie733/Neat
2414842197c9a146293246e984557b36c8b9fb89
[ "MIT" ]
null
null
null
from enum import Enum class GeneType(Enum): CONNECTION_GENE = 0, NODE_GENE = 1 class NodeType(Enum): INPUT = 0, HIDDEN = 1, OUTPUT = 2 class Gene: def __init__(self, _type, innov=1) -> None: self._type = _type self.innov = innov def __str__(self): ...
30.754386
129
0.596691
233
1,753
4.296137
0.334764
0.03996
0.032967
0.044955
0.114885
0
0
0
0
0
0
0.00638
0.284655
1,753
57
129
30.754386
0.791866
0.127211
0
0.128205
0
0.051282
0.201803
0.050624
0
0
0
0
0
1
0.205128
false
0
0.025641
0.076923
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
941112baf421a06451189dbe5c8a03eed694f448
968
py
Python
Quiz/m1_quant_basics/l2_stock_prices/quiz_tests.py
jcrangel/AI-for-Trading
c3b865e992f8eb8deda91e7641428eef1d343636
[ "Apache-2.0" ]
98
2020-05-22T00:41:23.000Z
2022-03-24T12:57:15.000Z
Quiz/m1_quant_basics/l2_stock_prices/quiz_tests.py
jcrangel/AI-for-Trading
c3b865e992f8eb8deda91e7641428eef1d343636
[ "Apache-2.0" ]
1
2020-01-04T05:32:35.000Z
2020-01-04T18:22:21.000Z
Quiz/m1_quant_basics/l2_stock_prices/quiz_tests.py
jcrangel/AI-for-Trading
c3b865e992f8eb8deda91e7641428eef1d343636
[ "Apache-2.0" ]
74
2020-05-05T16:44:42.000Z
2022-03-23T06:59:09.000Z
from collections import OrderedDict import pandas as pd from tests import project_test, assert_output @project_test def test_csv_to_close(fn): tickers = ['A', 'B', 'C'] dates = ['2017-09-22', '2017-09-25', '2017-09-26', '2017-09-27', '2017-09-28'] fn_inputs = { 'csv_filepath': 'prices_2017_09_22_...
35.851852
111
0.566116
115
968
4.582609
0.608696
0.079696
0.030361
0.045541
0.053131
0
0
0
0
0
0
0.311239
0.283058
968
26
112
37.230769
0.448127
0
0
0
0
0
0.169421
0.033058
0
0
0
0
0.090909
1
0.045455
false
0
0.136364
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
941ba60592ad05d3734afb4acc2a69ff6dc6d844
613
py
Python
notebooks/__code/array.py
neutronimaging/BraggEdgeFitting
233407fc000425ee79897e514964ef196ca27a08
[ "BSD-3-Clause" ]
null
null
null
notebooks/__code/array.py
neutronimaging/BraggEdgeFitting
233407fc000425ee79897e514964ef196ca27a08
[ "BSD-3-Clause" ]
2
2020-10-06T13:48:24.000Z
2020-10-07T16:21:46.000Z
notebooks/__code/array.py
neutronimaging/BraggEdgeFitting
233407fc000425ee79897e514964ef196ca27a08
[ "BSD-3-Clause" ]
null
null
null
import numpy as np def exclude_y_value_when_error_is_nan(axis, error_axis): axis_cleaned = [] error_axis_cleaned = [] for _x, _error in zip(axis, error_axis): if (_x == "None") or (_error == "None") or (_x is None) or (_error is None): axis_cleaned.append(np.NaN) error_axis_cleaned.append(np.NaN) else: ...
25.541667
78
0.724307
109
613
3.688073
0.266055
0.218905
0.159204
0.189055
0.457711
0
0
0
0
0
0
0
0.145188
613
23
79
26.652174
0.767176
0
0
0
0
0
0.013051
0
0
0
0
0
0
1
0.117647
false
0
0.058824
0
0.294118
0
0
0
0
null
1
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
2
941d352a3b96792669ab524440dad9a606275e2e
442
py
Python
primacy/__init__.py
FofanovLab/Primacy
5505b839e33659a50fef725bb5c1c3584827e4f1
[ "MIT" ]
4
2018-10-19T06:39:46.000Z
2019-04-18T04:46:19.000Z
primacy/__init__.py
FofanovLab/Primacy
5505b839e33659a50fef725bb5c1c3584827e4f1
[ "MIT" ]
null
null
null
primacy/__init__.py
FofanovLab/Primacy
5505b839e33659a50fef725bb5c1c3584827e4f1
[ "MIT" ]
1
2018-10-19T06:39:56.000Z
2018-10-19T06:39:56.000Z
import click def error(msg, logger=False): """Prints an error message to stderr and logs.""" click.secho(msg, fg='red', err=True) if logger: logger.error(msg) def warn(msg, logger=False): '''Prints a warning message to stderr.''' click.secho(msg, fg='yellow') if logger: logger...
21.047619
53
0.615385
63
442
4.31746
0.412698
0.099265
0.154412
0.165441
0
0
0
0
0
0
0
0
0.239819
442
21
54
21.047619
0.809524
0.178733
0
0.230769
0
0
0.03966
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
94255f71fe2c2edb4e8cc5ae13b412e91881739d
832
py
Python
src/Reset Ease Automatically/utils.py
RisingOrange/Reset-Ease-Automatically
7c2fd16b7cac32ba499d87f681c75cfcfb617405
[ "MIT" ]
5
2020-09-06T10:51:39.000Z
2021-11-11T01:46:06.000Z
src/Reset Ease Automatically/utils.py
RisingOrange/Reset-Ease-Automatically
7c2fd16b7cac32ba499d87f681c75cfcfb617405
[ "MIT" ]
6
2020-09-06T11:28:47.000Z
2021-06-13T00:22:03.000Z
src/Reset Ease Automatically/utils.py
RisingOrange/Reset-Ease-Automatically
7c2fd16b7cac32ba499d87f681c75cfcfb617405
[ "MIT" ]
1
2020-09-06T10:52:43.000Z
2020-09-06T10:52:43.000Z
from aqt import mw from .config import get, set def prepare_deck_to_ease_range(): deck_to_ease_range = d if (d := get('deck_to_ease_range')) else {} # for backwards compatibilty deck_to_ease = d if (d := get('deck_to_ease')) else {} deck_to_ease_range.update(**_to_deck_to_ease_range(deck_to_ease)) ...
27.733333
70
0.671875
136
832
3.757353
0.338235
0.164384
0.273973
0.234834
0.221135
0.221135
0.221135
0.105675
0
0
0
0
0.234375
832
30
71
27.733333
0.802198
0.139423
0
0
0
0
0.084151
0
0
0
0
0
0
1
0.105263
false
0
0.105263
0
0.263158
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
943b21bad087472d917929d954b13b2a355101b8
190
py
Python
by-session/ta-921/j8/atal_matal.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
2
2015-04-29T20:59:35.000Z
2018-09-26T13:33:43.000Z
by-session/ta-921/j8/atal_matal.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
by-session/ta-921/j8/atal_matal.py
amiraliakbari/sharif-mabani-python
5d14a08d165267fe71c28389ddbafe29af7078c5
[ "MIT" ]
null
null
null
def f(a, start): if len(a) == 1: return a[0] d = (start + 15 - 1) % len(a) del a[d] return f(a, d % len(a)) n = int(input()) print 1 + f(range(n*2), 0) / 2
19
34
0.426316
37
190
2.189189
0.486486
0.148148
0
0
0
0
0
0
0
0
0
0.07438
0.363158
190
9
35
21.111111
0.595041
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
945a434c2fd10a32fcc164824e6dff4647c862a3
3,251
py
Python
globalCounter/server/counter_server.py
aratz-lasa/globalCounter
9ac0841b0e7d1bc71cd6205649c1b07bcf77e01f
[ "MIT" ]
2
2019-03-24T19:09:59.000Z
2019-03-25T07:15:06.000Z
globalCounter/server/counter_server.py
aratz-lasa/globalCounter
9ac0841b0e7d1bc71cd6205649c1b07bcf77e01f
[ "MIT" ]
null
null
null
globalCounter/server/counter_server.py
aratz-lasa/globalCounter
9ac0841b0e7d1bc71cd6205649c1b07bcf77e01f
[ "MIT" ]
null
null
null
import socket from multiprocessing import Pool, Queue, Manager, cpu_count from ..protocol.methods import * from ..protocol.models import * from ..various.abc import CounterServer MAX_WORKERS = cpu_count() class UDPCounterServer(CounterServer): def __init__(self, ip="0.0.0.0", port=0, max_workers=MAX_WORKERS): ...
31.563107
71
0.609966
410
3,251
4.64878
0.2
0.054565
0.068206
0.035677
0.737671
0.710388
0.677859
0.677859
0.677859
0.613851
0
0.005587
0.28422
3,251
102
72
31.872549
0.813494
0.004614
0
0.658537
0
0
0.00433
0
0
0
0
0
0
1
0.146341
false
0
0.060976
0
0.231707
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
945db23a1d2728c5507f15d764b787a34c73c68a
252
py
Python
cms/templatetags/watch.py
sandmark/DjangoPerfectSquare
490686a1780c27d1b592b1771450f2a86ac861cf
[ "MIT" ]
null
null
null
cms/templatetags/watch.py
sandmark/DjangoPerfectSquare
490686a1780c27d1b592b1771450f2a86ac861cf
[ "MIT" ]
3
2020-02-11T21:47:12.000Z
2021-06-10T18:24:43.000Z
cms/templatetags/watch.py
sandmark/DjangoPerfectSquare
490686a1780c27d1b592b1771450f2a86ac861cf
[ "MIT" ]
null
null
null
from django import template from django.utils.http import urlquote import re register = template.Library() @register.filter def quote_filepath(url): _, scheme, path = re.split(r'(https?://)', url) return '{}{}'.format(scheme, urlquote(path))
22.909091
51
0.710317
33
252
5.363636
0.666667
0.112994
0
0
0
0
0
0
0
0
0
0
0.138889
252
10
52
25.2
0.815668
0
0
0
0
0
0.059524
0
0
0
0
0
0
1
0.125
false
0
0.375
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
1
0
1
0
0
2
945e1051e675a474b42fb803eb11282480b657ba
264
py
Python
src/lib/idol/dataclass/codegen/schema/primitive_type.py
lyric-com/idol
285005e9ddaa92b2284b7e9c28cd12f1e34746ec
[ "MIT" ]
null
null
null
src/lib/idol/dataclass/codegen/schema/primitive_type.py
lyric-com/idol
285005e9ddaa92b2284b7e9c28cd12f1e34746ec
[ "MIT" ]
2
2020-03-24T18:03:10.000Z
2020-03-31T10:41:56.000Z
src/lib/idol/dataclass/codegen/schema/primitive_type.py
lyric-com/idol
285005e9ddaa92b2284b7e9c28cd12f1e34746ec
[ "MIT" ]
null
null
null
# DO NOT EDIT # This file was generated by idol_data, any changes will be lost when idol_data is rerun again from enum import Enum class SchemaPrimitiveTypeEnum(Enum): INT = "int" DOUBLE = "double" STRING = "string" BOOL = "bool" ANY = "any"
22
94
0.67803
38
264
4.657895
0.736842
0.090395
0
0
0
0
0
0
0
0
0
0
0.242424
264
11
95
24
0.885
0.393939
0
0
1
0
0.140127
0
0
0
0
0
0
1
0
false
0
0.142857
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
9460da662c249dbfe258e1da02ea4d17876fff61
485
py
Python
tests/test_requirements_files/app.py
Robinson04/serverlesspack
271fdbc4bcc769a778e369b14e5f491360824512
[ "MIT" ]
1
2022-03-07T22:32:32.000Z
2022-03-07T22:32:32.000Z
tests/test_requirements_files/app.py
Robinson04/serverlesspack
271fdbc4bcc769a778e369b14e5f491360824512
[ "MIT" ]
3
2021-03-01T19:12:46.000Z
2021-05-09T11:09:27.000Z
tests/test_requirements_files/app.py
Robinson04/serverlesspack
271fdbc4bcc769a778e369b14e5f491360824512
[ "MIT" ]
null
null
null
from pydantic import BaseModel from typing import Optional class RequestDataModel(BaseModel): loginToken: str def login_with_google(data: dict): request_data = RequestDataModel(**data) from google.oauth2 import id_token from google.auth.transport.requests import Request as GoogleRequest user_info...
30.3125
86
0.769072
60
485
6.016667
0.5
0.058172
0
0
0
0
0
0
0
0
0
0.00489
0.156701
485
15
87
32.333333
0.877751
0
0
0
0
0
0.016495
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0
0.583333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
94777a5313465c9c8238bf7bf45c469fe3eb78a4
315
py
Python
wavelink/__init__.py
hamza1311/Wavelink
f593c59d3589dea9a5337731ac3daaac4cabbfee
[ "MIT" ]
null
null
null
wavelink/__init__.py
hamza1311/Wavelink
f593c59d3589dea9a5337731ac3daaac4cabbfee
[ "MIT" ]
null
null
null
wavelink/__init__.py
hamza1311/Wavelink
f593c59d3589dea9a5337731ac3daaac4cabbfee
[ "MIT" ]
null
null
null
__title__ = 'WaveLink' __author__ = 'EvieePy' __license__ = 'MIT' __copyright__ = 'Copyright 2019-2020 (c) PythonistaGuild' __version__ = '0.6.0' from .client import Client from .errors import * from .eqs import * from .events import * from .player import * from .node import Node from .websocket import WebSocket
22.5
57
0.752381
40
315
5.425
0.575
0.184332
0
0
0
0
0
0
0
0
0
0.041045
0.149206
315
13
58
24.230769
0.768657
0
0
0
0
0
0.196825
0
0
0
0
0
0
1
0
false
0
0.583333
0
0.583333
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
1
0
0
2
9477d09d2f626c9ba5ae9d79fc4fcad2a1d51dc9
231
py
Python
Domain/restaurantvalidator.py
VargaIonut23/restaurant
3f991f30b03921481142187ef33f81d1dc4fe2ad
[ "MIT" ]
null
null
null
Domain/restaurantvalidator.py
VargaIonut23/restaurant
3f991f30b03921481142187ef33f81d1dc4fe2ad
[ "MIT" ]
null
null
null
Domain/restaurantvalidator.py
VargaIonut23/restaurant
3f991f30b03921481142187ef33f81d1dc4fe2ad
[ "MIT" ]
null
null
null
class restaurantvalidator(): def valideaza(self, restaurant): erori = [] if len(restaurant.nume) == 0: erori.append('numele nu trb sa fie null') if erori: raise ValueError(erori)
28.875
53
0.575758
25
231
5.32
0.8
0
0
0
0
0
0
0
0
0
0
0.006369
0.320346
231
7
54
33
0.840764
0
0
0
0
0
0.108225
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
947e404b2d74b25f2cf7a78cf9b4ba6e70f26910
228
py
Python
python/testData/inspections/PyUnresolvedReferencesInspection3K/objectNewAttributes.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/PyUnresolvedReferencesInspection3K/objectNewAttributes.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/inspections/PyUnresolvedReferencesInspection3K/objectNewAttributes.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class C(object): def __new__(cls): self = object.__new__(cls) self.foo = 1 return self x = C() print(x.foo) print(x.<warning descr="Unresolved attribute reference 'bar' for class 'C'">bar</warning>)
22.8
90
0.622807
33
228
4.060606
0.575758
0.089552
0.149254
0
0
0
0
0
0
0
0
0.005714
0.232456
228
9
91
25.333333
0.76
0
0
0
0
0
0.219298
0
0
0
0
0
0
0
null
null
0
0
null
null
0.25
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
1
0
0
0
0
0
0
0
0
2
9482667f7b3f81e2c39c9eb01e0e0b4cdd7db3f4
2,921
py
Python
wire/messages.py
evuez/stork
bd57b207957a9e2feb6ec253cfd2c125a139e52b
[ "MIT" ]
null
null
null
wire/messages.py
evuez/stork
bd57b207957a9e2feb6ec253cfd2c125a139e52b
[ "MIT" ]
null
null
null
wire/messages.py
evuez/stork
bd57b207957a9e2feb6ec253cfd2c125a139e52b
[ "MIT" ]
null
null
null
""" Messages: https://wiki.theory.org/BitTorrentSpecification#Messages <length prefix><message ID><payload> """ from collections import namedtuple from struct import pack from struct import unpack FORMAT = '>IB{}' Message = namedtuple('Message', 'len id payload') KEEP_ALIVE = -1 CHOKE = 0 UNCHOKE = 1 INTERESTED =...
19.091503
73
0.683328
389
2,921
4.922879
0.172237
0.051697
0.028198
0.033943
0.277285
0.193211
0.080418
0
0
0
0
0.033135
0.194112
2,921
152
74
19.217105
0.780374
0.042109
0
0.032609
0
0
0.058085
0
0
0
0
0
0
1
0.23913
false
0.032609
0.032609
0.152174
0.48913
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
1
0
0
0
2
847444d00846464ca49ce4d6bdb0871b264d4796
1,974
py
Python
get_longi_lati.py
icepoint666/Pytorch-ThinPlateSpline
4d1870acddf1cd4bc5d159f0f092cad0ad32406b
[ "MIT" ]
4
2019-06-14T06:07:46.000Z
2021-06-24T11:19:51.000Z
get_longi_lati.py
icepoint666/Pytorch-ThinPlateSpline
4d1870acddf1cd4bc5d159f0f092cad0ad32406b
[ "MIT" ]
null
null
null
get_longi_lati.py
icepoint666/Pytorch-ThinPlateSpline
4d1870acddf1cd4bc5d159f0f092cad0ad32406b
[ "MIT" ]
1
2019-09-02T15:29:00.000Z
2019-09-02T15:29:00.000Z
import numpy as np import torch import matplotlib.animation as animation import matplotlib.pyplot as plt from PIL import Image import ThinPlateSpline as TPS # 2048x2048.jpg size: 2048 x 2048 def on_press(event): p = np.array([ [693.55, 531.26], [1069.85, 1243.04], [1243.74, 1238.69], ...
26.675676
107
0.507092
308
1,974
3.191558
0.636364
0.024415
0.014242
0
0
0
0
0
0
0
0
0.322511
0.297872
1,974
73
108
27.041096
0.386724
0.016211
0
0
0
0
0.078351
0
0
0
0
0
0
1
0.015385
false
0
0.092308
0
0.107692
0.046154
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8476a6714e07b92b94204deb2d35b8762a330fb7
10,325
py
Python
webapp/core/migrations/0001_initial.py
PoCDAB/cfns-webapp
69637efa2046a04172898d3f41520e060efb77f5
[ "MIT" ]
null
null
null
webapp/core/migrations/0001_initial.py
PoCDAB/cfns-webapp
69637efa2046a04172898d3f41520e060efb77f5
[ "MIT" ]
null
null
null
webapp/core/migrations/0001_initial.py
PoCDAB/cfns-webapp
69637efa2046a04172898d3f41520e060efb77f5
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-08-25 14:44 import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import fontawesome_5.fields class Migration(migrations.Migration): initial = True dependencies = [ ] opera...
53.776042
206
0.584407
1,020
10,325
5.769608
0.127451
0.04486
0.053016
0.069329
0.768734
0.732201
0.679184
0.671878
0.635004
0.596432
0
0.012145
0.274286
10,325
191
207
54.057592
0.773255
0.004165
0
0.597826
1
0
0.16177
0.011381
0
0
0
0
0
1
0
false
0
0.027174
0
0.048913
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
84807805d4c9e99301ea9459dc3f1a877cc0d1c9
428
py
Python
pulsar/async/_subprocess.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
1,410
2015-01-02T14:55:07.000Z
2022-03-28T17:22:06.000Z
pulsar/async/_subprocess.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
194
2015-01-22T06:18:24.000Z
2020-10-20T21:21:58.000Z
pulsar/async/_subprocess.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
168
2015-01-31T10:29:55.000Z
2022-03-14T10:22:24.000Z
if __name__ == '__main__': import sys import pickle from multiprocessing import current_process from multiprocessing.spawn import import_main_path data = pickle.load(sys.stdin.buffer) current_process().authkey = data['authkey'] sys.path = data['path'] import_main_path(data['main']) ...
25.176471
54
0.705607
54
428
5.296296
0.444444
0.083916
0.097902
0.125874
0
0
0
0
0
0
0
0
0.191589
428
16
55
26.75
0.82659
0
0
0
0
0
0.063232
0
0
0
0
0
0
0
null
null
0
0.5
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
848793513929c8f40197ffaea7f2dd8482916af6
188
py
Python
visitors/signals.py
hugorodgerbrown/django-visitor
badb4a7fb5ea696bf5a249188b6cff8cc0a834ae
[ "MIT" ]
6
2021-06-11T13:33:00.000Z
2022-03-16T13:49:55.000Z
visitors/signals.py
hugorodgerbrown/django-visitor
badb4a7fb5ea696bf5a249188b6cff8cc0a834ae
[ "MIT" ]
3
2021-02-13T15:09:54.000Z
2021-09-23T14:43:20.000Z
visitors/signals.py
hugorodgerbrown/django-visitor
badb4a7fb5ea696bf5a249188b6cff8cc0a834ae
[ "MIT" ]
2
2021-03-25T14:34:40.000Z
2021-07-28T17:42:32.000Z
from django.dispatch import Signal # sent when a user creates their own Visitor - can # be used to send the email with the token # kwargs: visitor self_service_visitor_created = Signal()
26.857143
50
0.781915
30
188
4.8
0.866667
0
0
0
0
0
0
0
0
0
0
0
0.170213
188
6
51
31.333333
0.923077
0.558511
0
0
0
0
0
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
848c472304255db936ace73dffdffd1e34d2745e
33,182
py
Python
tensorflow/mcst_model.py
nkzhlee/RCModel
3288250edc8f4021f40e49f547b393434f02be4b
[ "Apache-2.0" ]
1
2018-03-23T05:40:40.000Z
2018-03-23T05:40:40.000Z
tensorflow/mcst_model.py
nkzhlee/RCModel
3288250edc8f4021f40e49f547b393434f02be4b
[ "Apache-2.0" ]
null
null
null
tensorflow/mcst_model.py
nkzhlee/RCModel
3288250edc8f4021f40e49f547b393434f02be4b
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf8 -*- # ============================================================================== # Copyright 2017 lizhaohui.com, Inc. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy o...
44.780027
157
0.55952
4,012
33,182
4.357428
0.110668
0.016932
0.021622
0.011154
0.50183
0.420604
0.39269
0.340236
0.307631
0.285837
0
0.009486
0.332861
33,182
740
158
44.840541
0.780232
0.093123
0
0.310096
0
0
0.066061
0.002378
0
0
0
0
0
0
null
null
0.084135
0.033654
null
null
0.045673
0
0
0
null
0
0
0
0
0
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
1
0
0
0
0
0
2
84a0d9d3c023f36de188ac13980c222c4ee2ce2f
11,211
py
Python
pysnmp/ITOUCH-RADIUS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/ITOUCH-RADIUS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/ITOUCH-RADIUS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ITOUCH-RADIUS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ITOUCH-RADIUS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:47:05 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
121.858696
1,690
0.769155
1,244
11,211
6.930064
0.132637
0.011136
0.014963
0.019951
0.476627
0.412597
0.412597
0.348335
0.312841
0.285582
0
0.076529
0.078048
11,211
91
1,691
123.197802
0.757546
0.029257
0
0
0
0
0.113758
0.004046
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
84ae2d27a7faf85ed78a360e4c7469b228bf8a62
6,205
py
Python
python/p054.py
wephy/project-euler
cc4824478282d3e1514a1bf7a1821b938db5bfcb
[ "MIT" ]
null
null
null
python/p054.py
wephy/project-euler
cc4824478282d3e1514a1bf7a1821b938db5bfcb
[ "MIT" ]
1
2021-06-07T19:03:35.000Z
2021-06-07T19:03:35.000Z
python/p054.py
wephy/project-euler
cc4824478282d3e1514a1bf7a1821b938db5bfcb
[ "MIT" ]
null
null
null
# Poker hands import os import numpy as np def solve(): data = np.loadtxt(os.path.join("..", "data", "p054.txt"), delimiter=" ", dtype=str) player1 = data[:, :5] player2 = data[:, 5:] return sum( score(player1[game]) > score(player2[game]) for gam...
28.726852
77
0.494601
882
6,205
3.46712
0.109977
0.053957
0.068018
0.068018
0.783846
0.726292
0.685742
0.640615
0.617397
0.5569
0
0.072601
0.351813
6,205
215
78
28.860465
0.687718
0.043352
0
0.73224
0
0
0.067061
0.015203
0
0
0
0
0
1
0.010929
false
0
0.010929
0
0.081967
0.005464
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
84ba5b58e3b09cdda3ab86841485c081865f35c5
271
py
Python
src/replit/__init__.py
ykdojo/replit-py
6f8f4572d067bc0160543ef70e10e3ec18d6112c
[ "0BSD" ]
null
null
null
src/replit/__init__.py
ykdojo/replit-py
6f8f4572d067bc0160543ef70e10e3ec18d6112c
[ "0BSD" ]
null
null
null
src/replit/__init__.py
ykdojo/replit-py
6f8f4572d067bc0160543ef70e10e3ec18d6112c
[ "0BSD" ]
null
null
null
# flake8: noqa """The Replit Python module.""" from . import web from .audio import Audio from .database import db, Database # Backwards compatibility. def clear() -> None: """Clear the terminal.""" print("\033[H\033[2J", end="", flush=True) audio = Audio()
16.9375
46
0.656827
36
271
4.944444
0.694444
0
0
0
0
0
0
0
0
0
0
0.036036
0.180812
271
15
47
18.066667
0.765766
0.309963
0
0
0
0
0.074286
0
0
0
0
0
0
1
0.166667
false
0
0.5
0
0.666667
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
0
0
0
0
1
0
1
0
0
2
84bc8fa1f7a69f91425ebb836514b7b200334c2e
183
py
Python
data_hyperparams/beeradvocate.py
noveens/sampling_cf
e135819b1e7310ee58edbbd138f303e5240a2619
[ "MIT" ]
6
2022-01-14T13:38:03.000Z
2022-03-01T17:57:09.000Z
data_hyperparams/beeradvocate.py
noveens/sampling_cf
e135819b1e7310ee58edbbd138f303e5240a2619
[ "MIT" ]
null
null
null
data_hyperparams/beeradvocate.py
noveens/sampling_cf
e135819b1e7310ee58edbbd138f303e5240a2619
[ "MIT" ]
null
null
null
hyper_params = { 'weight_decay': float(1e-6), 'epochs': 30, 'batch_size': 256, 'validate_every': 3, 'early_stop': 3, 'max_seq_len': 10, }
20.333333
35
0.502732
22
183
3.863636
0.954545
0
0
0
0
0
0
0
0
0
0
0.090164
0.333333
183
8
36
22.875
0.606557
0
0
0
0
0
0.344262
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
84bcc13013a218425a479e662d8c073e65eb7fb9
1,151
py
Python
Algae.py
pblanc5/LSystemFun
f8e381d6dc4c398a496d84f756d797fbc0f5b5cb
[ "MIT" ]
null
null
null
Algae.py
pblanc5/LSystemFun
f8e381d6dc4c398a496d84f756d797fbc0f5b5cb
[ "MIT" ]
null
null
null
Algae.py
pblanc5/LSystemFun
f8e381d6dc4c398a496d84f756d797fbc0f5b5cb
[ "MIT" ]
null
null
null
# Author: Patrick Blanchard # Date: 12-13-16 # Description: This is a program to help me learn L-Systems # It should generate strings based on the rules applied. class system: axiom = "A" sentence = axiom rules = [] rules.append({ "A":"A", "B":"AB" }) rules.append({ ...
23.489796
60
0.486533
129
1,151
4.333333
0.472868
0.085868
0.042934
0.039356
0.053667
0
0
0
0
0
0
0.011478
0.39444
1,151
48
61
23.979167
0.790531
0.132928
0
0.166667
1
0
0.060423
0
0
0
0
0
0
0
null
null
0
0
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
84bf3ea78035bb6975398ce9c43f8e994ac134c6
430
py
Python
bigfastapi/models/role_models.py
kofimokome/bigfastapi
d9cf181271847c1f420747da8e114af7ad717598
[ "MIT" ]
null
null
null
bigfastapi/models/role_models.py
kofimokome/bigfastapi
d9cf181271847c1f420747da8e114af7ad717598
[ "MIT" ]
null
null
null
bigfastapi/models/role_models.py
kofimokome/bigfastapi
d9cf181271847c1f420747da8e114af7ad717598
[ "MIT" ]
null
null
null
import datetime as dt from re import T from sqlalchemy.schema import Column from sqlalchemy.types import String, DateTime from uuid import UUID, uuid4 import bigfastapi.db.database as database class Role(database.Base): __tablename__ = "roles" id = Column(String(255), primary_key=True, index=True, default=uuid...
35.833333
79
0.762791
62
430
5.177419
0.516129
0.11215
0.140187
0.105919
0.149533
0
0
0
0
0
0
0.02981
0.14186
430
12
80
35.833333
0.840108
0
0
0
0
0
0.011601
0
0
0
0
0
0
1
0
false
0
0.545455
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
1
0
0
2
84d4868dfa8278d45ab24de70b96033a459f33a6
261
py
Python
branching.py
fabiolealsc/quest
8f936aa6d8208ec23cc13f28148b9e39a976d997
[ "MIT" ]
2
2021-09-29T02:39:20.000Z
2021-11-08T08:56:50.000Z
branching.py
fabiolealsc/quest
8f936aa6d8208ec23cc13f28148b9e39a976d997
[ "MIT" ]
null
null
null
branching.py
fabiolealsc/quest
8f936aa6d8208ec23cc13f28148b9e39a976d997
[ "MIT" ]
null
null
null
import sys n1 = int(sys.argv[1]) n2 = int(sys.argv[2]) if n1 + n2 <= 0: print('You have chosen the path of destitution.') elif 1 <= (n1 + n2) <= 100: print('You have chosen the path of plenty.') else: print('You have chosen the path of excess.')
20.076923
53
0.62069
46
261
3.521739
0.5
0.148148
0.222222
0.333333
0.5
0.5
0.5
0
0
0
0
0.064356
0.226054
261
12
54
21.75
0.737624
0
0
0
0
0
0.421456
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.333333
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
84e19ba2c6107db9072d391fee40d05418fcecf9
6,329
py
Python
roles/openshift_openstack/library/os_service_catalog.py
Roscoe198/Ansible-Openshift
b874bef456852ef082a27dfec4f2d7d466702370
[ "Apache-2.0" ]
164
2015-07-29T17:35:04.000Z
2021-12-16T16:38:04.000Z
roles/openshift_openstack/library/os_service_catalog.py
Roscoe198/Ansible-Openshift
b874bef456852ef082a27dfec4f2d7d466702370
[ "Apache-2.0" ]
3,634
2015-06-09T13:49:15.000Z
2022-03-23T20:55:44.000Z
roles/openshift_openstack/library/os_service_catalog.py
Roscoe198/Ansible-Openshift
b874bef456852ef082a27dfec4f2d7d466702370
[ "Apache-2.0" ]
250
2015-06-08T19:53:11.000Z
2022-03-01T04:51:23.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2018 Red Hat, Inc. and/or its affiliates # and other contributors as indicated by the @author tags. # # 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...
35.55618
88
0.686522
721
6,329
5.966713
0.321775
0.047187
0.056485
0.062762
0.324965
0.311948
0.188052
0.155742
0.056253
0.056253
0
0.208258
0.211724
6,329
177
89
35.757062
0.654039
0.140465
0
0.173913
0
0
0.840422
0.107803
0
0
0
0
0
1
0.007246
false
0
0.021739
0
0.028986
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
84e3c7c02f7dc25ab2a0825c94313b4e836de166
28,308
py
Python
spinoffs/inference_gym/inference_gym/internal/datasets/synthetic_plasma_spectroscopy.py
mederrata/probability
bc6c411b0fbd83141f303f91a27343fe3c43a797
[ "Apache-2.0" ]
1
2022-03-22T11:56:31.000Z
2022-03-22T11:56:31.000Z
spinoffs/inference_gym/inference_gym/internal/datasets/synthetic_plasma_spectroscopy.py
robot0102/probability
89d248c420b8ecabfd9d6de4a1aa8d3886920049
[ "Apache-2.0" ]
null
null
null
spinoffs/inference_gym/inference_gym/internal/datasets/synthetic_plasma_spectroscopy.py
robot0102/probability
89d248c420b8ecabfd9d6de4a1aa8d3886920049
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The TensorFlow Probability Authors. # # 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 o...
15.930219
77
0.551399
3,681
28,308
4.231731
0.503124
0.003146
0.004173
0.002054
0.006548
0.006548
0.006548
0.006548
0.006548
0.006548
0
0.720682
0.309594
28,308
1,776
78
15.939189
0.076341
0.061855
0
0.002931
0
0
0
0
0
0
0
0
0
1
0
false
0
0.000586
0
0.000586
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
84e740e86537e562565c37ab944502008646b1ad
726
py
Python
raddiwala/views.py
nikhilbelchada/online-raddiwala
9f53f2dc63a29c08ee9d61fdf2d3124c79ca7980
[ "MIT" ]
null
null
null
raddiwala/views.py
nikhilbelchada/online-raddiwala
9f53f2dc63a29c08ee9d61fdf2d3124c79ca7980
[ "MIT" ]
null
null
null
raddiwala/views.py
nikhilbelchada/online-raddiwala
9f53f2dc63a29c08ee9d61fdf2d3124c79ca7980
[ "MIT" ]
null
null
null
from django.views.generic import TemplateView from django.utils.decorators import method_decorator from django.contrib.auth.decorators import login_required from django.shortcuts import render from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.permissions import I...
27.923077
57
0.769972
84
726
6.535714
0.5
0.07286
0.092896
0.061931
0
0
0
0
0
0
0
0
0.151515
726
25
58
29.04
0.891234
0
0
0
0
0
0.041379
0
0
0
0
0
0
1
0.117647
false
0
0.411765
0.058824
0.882353
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
1
0
0
2
84f40d2a66ba94f561380b5d1bd073b352b479d5
3,446
py
Python
scripts/rewrite-uris.py
CaptSolo/bib-rdf-pipeline
9ff7ba2f1d737e6d496a6b6ff207ba8fe971fb17
[ "CC0-1.0" ]
31
2016-11-30T10:39:55.000Z
2021-12-28T11:19:32.000Z
scripts/rewrite-uris.py
CaptSolo/bib-rdf-pipeline
9ff7ba2f1d737e6d496a6b6ff207ba8fe971fb17
[ "CC0-1.0" ]
96
2016-12-08T08:21:46.000Z
2019-08-28T12:55:45.000Z
scripts/rewrite-uris.py
CaptSolo/bib-rdf-pipeline
9ff7ba2f1d737e6d496a6b6ff207ba8fe971fb17
[ "CC0-1.0" ]
5
2017-02-28T14:55:42.000Z
2021-12-16T13:21:51.000Z
#!/usr/bin/env python """Rewrite all the marc2bibframe2-generated URIs in the input NT file; output the rewritten NT file on stdout""" import sys import re # regex for detecting URIs generated by marc2bibframe m2bf_uri = re.compile(r'(\d{9})#(Work|Instance|Agent)((\d\d\d)-(\d+))?') # regexes for matching N-Triples I...
34.118812
121
0.583575
470
3,446
4.244681
0.353191
0.01203
0.013534
0.014035
0.004511
0.004511
0.004511
0.004511
0
0
0
0.01975
0.280035
3,446
100
122
34.46
0.784361
0.16686
0
0.133333
1
0
0.092289
0.041427
0
0
0
0
0
0
null
null
0
0.026667
null
null
0.026667
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
1
0
0
0
0
0
0
0
0
2
84fa72a574df3f5f1447d915ccb88abf966a52b7
45,951
py
Python
pysnmp/H3C-IPSEC-MONITOR-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/H3C-IPSEC-MONITOR-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/H3C-IPSEC-MONITOR-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module H3C-IPSEC-MONITOR-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/H3C-IPSEC-MONITOR-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:09:33 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
136.353116
6,811
0.763705
4,872
45,951
7.202586
0.069581
0.035337
0.066256
0.079508
0.413553
0.388476
0.297911
0.268274
0.26531
0.258186
0
0.095553
0.080564
45,951
336
6,812
136.758929
0.735023
0.007312
0
0.072327
0
0
0.207495
0.120971
0
0
0
0
0
1
0
false
0
0.025157
0
0.150943
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
1701bada6800d4c692ecdcf52d4c1b2b794314af
233
py
Python
scripts/pylint_custom_plugin/tests/test_files/enum_checker_acceptable.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
scripts/pylint_custom_plugin/tests/test_files/enum_checker_acceptable.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
scripts/pylint_custom_plugin/tests/test_files/enum_checker_acceptable.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# Test file for enum checker from enum import Enum from six import with_metaclass from azure.core import CaseInsensitiveEnumMeta class EnumPython2(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): ONE = "one" TWO = "two"
25.888889
70
0.776824
30
233
5.966667
0.6
0.145251
0
0
0
0
0
0
0
0
0
0.005102
0.158798
233
8
71
29.125
0.908163
0.111588
0
0
0
0
0.029268
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
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
ca064731956adaddb40fad64332618d7f5b74b2e
800
py
Python
pav_propms/pav_property_management_solution/doctype/rent_request/rent_request.py
alkuhlani/pav_propms
2b1a9f9b2430fd45083ea750ab0d0df0243f6d17
[ "MIT" ]
null
null
null
pav_propms/pav_property_management_solution/doctype/rent_request/rent_request.py
alkuhlani/pav_propms
2b1a9f9b2430fd45083ea750ab0d0df0243f6d17
[ "MIT" ]
null
null
null
pav_propms/pav_property_management_solution/doctype/rent_request/rent_request.py
alkuhlani/pav_propms
2b1a9f9b2430fd45083ea750ab0d0df0243f6d17
[ "MIT" ]
3
2021-03-24T13:43:14.000Z
2021-06-20T09:02:24.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, Patrner Team and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe.model.mapper import get_mapped_doc class RentRequest(Document): def validate(self)...
25.806452
65
0.735
111
800
5.099099
0.495496
0.074205
0.053004
0
0
0
0
0
0
0
0
0.008721
0.14
800
30
66
26.666667
0.813953
0.36625
0
0
0
0
0.092742
0
0
0
0
0
0
1
0.176471
false
0.058824
0.235294
0
0.529412
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
ca07ea6dedd3f0db63c8b2ef89c11429753898b8
16,671
py
Python
test/fisheries_test_io.py
phargogh/invest-natcap.invest-3
ee96055a4fa034d9a95fa8ccc6259ab03264e6c1
[ "BSD-3-Clause" ]
null
null
null
test/fisheries_test_io.py
phargogh/invest-natcap.invest-3
ee96055a4fa034d9a95fa8ccc6259ab03264e6c1
[ "BSD-3-Clause" ]
null
null
null
test/fisheries_test_io.py
phargogh/invest-natcap.invest-3
ee96055a4fa034d9a95fa8ccc6259ab03264e6c1
[ "BSD-3-Clause" ]
null
null
null
import unittest import os import pprint from numpy import testing import numpy as np import invest_natcap.fisheries.fisheries_io as fisheries_io from invest_natcap.fisheries.fisheries_io import MissingParameter data_directory = './invest-data/test/data/fisheries' pp = pprint.PrettyPrinter(indent=4) All_Parameters...
39.598575
127
0.586168
1,990
16,671
4.668342
0.119598
0.054575
0.053391
0.009473
0.750161
0.702261
0.687298
0.6662
0.642411
0.628202
0
0.026777
0.280907
16,671
420
128
39.692857
0.748165
0.132506
0
0.616949
0
0
0.212413
0.027181
0
0
0
0
0.084746
1
0.050847
false
0.020339
0.023729
0
0.098305
0.00678
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ca18ace5f10b1c7df64cf4e65c93a3bcd9d3f0c0
980
py
Python
blog/admin.py
DongQinglin/djangoblog
e514af57bae9dbca76e783ada6b5921d47ec7f91
[ "Apache-2.0" ]
null
null
null
blog/admin.py
DongQinglin/djangoblog
e514af57bae9dbca76e783ada6b5921d47ec7f91
[ "Apache-2.0" ]
null
null
null
blog/admin.py
DongQinglin/djangoblog
e514af57bae9dbca76e783ada6b5921d47ec7f91
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import Banner, ArticleTag, ArticleKind, Article, Link, Recommend # Register your models here. @admin.register(Article) class ArticleAdmin(admin.ModelAdmin): # 添加想要展示的字段 list_display = ('id', 'kind', 'title', 'recommend', 'author', 'viewscount', 'created_time') ...
30.625
95
0.709184
112
980
6.071429
0.428571
0.113235
0.114706
0.191176
0.267647
0.226471
0.132353
0.132353
0
0
0
0.002361
0.135714
980
32
96
30.625
0.800472
0.041837
0
0.086957
0
0
0.143162
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.73913
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
1
0
0
2
ca448ade87199aa9f38670ff442666f58aa3ead0
1,067
py
Python
public_admin/admin.py
jhrdt/django-public-admin
0b83d2e6762a3e9de9e4995e130d57ff82cfee6b
[ "MIT" ]
36
2020-03-29T22:23:14.000Z
2021-09-28T18:44:49.000Z
public_admin/admin.py
jhrdt/django-public-admin
0b83d2e6762a3e9de9e4995e130d57ff82cfee6b
[ "MIT" ]
19
2020-03-30T07:09:21.000Z
2021-09-28T18:15:11.000Z
public_admin/admin.py
jhrdt/django-public-admin
0b83d2e6762a3e9de9e4995e130d57ff82cfee6b
[ "MIT" ]
14
2020-03-30T07:04:37.000Z
2021-11-23T00:49:22.000Z
from django.contrib.admin import ModelAdmin from public_admin.sites import PublicAdminSite class PublicModelAdmin(ModelAdmin): """This mimics the Django's native ModelAdmin but filters URLs that should not exist in a public admin, and deals with request-based permissions.""" def has_view_permission(self,...
38.107143
84
0.699157
145
1,067
5.062069
0.427586
0.032698
0.114441
0.098093
0.425068
0.321526
0.321526
0.27248
0.27248
0.174387
0
0
0.216495
1,067
27
85
39.518519
0.87799
0.401125
0
0.230769
0
0
0.004967
0
0
0
0
0
0
1
0.384615
false
0
0.153846
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
1
0
0
0
0
1
0
0
2
ca46f5d25a47bc2a893de74ab43154109ff006e1
1,531
py
Python
tests/test_adaptor/test_model.py
richlewis42/pandas-learn
4330c642e4f62e8abc6dcd58ba33daf22519f41e
[ "MIT" ]
1
2015-12-16T04:03:19.000Z
2015-12-16T04:03:19.000Z
tests/test_adaptor/test_model.py
lewisacidic/pandas-learn
4330c642e4f62e8abc6dcd58ba33daf22519f41e
[ "MIT" ]
3
2015-12-10T02:05:13.000Z
2015-12-16T04:04:16.000Z
tests/test_adaptor/test_model.py
lewisacidic/pandas-learn
4330c642e4f62e8abc6dcd58ba33daf22519f41e
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # # This file is part of pandas-learn # https://github.com/RichLewis42/pandas-learn # # Licensed under the MIT license: # http://www.opensource.org/licenses/MIT # Copyright (c) 2015, Rich Lewis <rl403@cam.ac.uk> """ tests.test_adaptor.model ~~~~~~~~~~~~~~~~~~~~~~~~ Tests...
22.188406
62
0.622469
198
1,531
4.626263
0.383838
0.078603
0.052402
0.068777
0.152838
0.152838
0.076419
0.076419
0
0
0
0.008525
0.233834
1,531
68
63
22.514706
0.772379
0.242978
0
0.171429
0
0
0.030783
0
0
0
0
0
0.2
1
0.228571
false
0.057143
0.028571
0.057143
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
ca5cbcc69e82b11a1566f7085d8b6893d6551a99
323
py
Python
tests/conftest.py
podaac/concise
2b9ea074312d0caee4ed59b4efac554514b89673
[ "Apache-2.0" ]
1
2021-11-17T18:44:19.000Z
2021-11-17T18:44:19.000Z
tests/conftest.py
podaac/concise
2b9ea074312d0caee4ed59b4efac554514b89673
[ "Apache-2.0" ]
16
2021-10-29T18:34:12.000Z
2022-03-18T22:39:37.000Z
tests/conftest.py
podaac/concise
2b9ea074312d0caee4ed59b4efac554514b89673
[ "Apache-2.0" ]
null
null
null
import pytest def pytest_addoption(parser): parser.addoption( '--keep-tmp', action='store_true', help='Keep temporary directory after testing. Useful for debugging.') @pytest.fixture(scope='class') def pass_options(request): request.cls.KEEP_TMP = request.config.getoption('--keep-tmp...
23.071429
77
0.690402
39
323
5.615385
0.692308
0.09589
0
0
0
0
0
0
0
0
0
0
0.176471
323
13
78
24.846154
0.823308
0
0
0
0
0
0.297214
0
0
0
0
0
0
1
0.222222
false
0.111111
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
ca5da25d2014d31e81e89d98d85c283b89ae1f60
583
py
Python
courses/MITx 6.00.1x/lec9/coordinate.py
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
null
null
null
courses/MITx 6.00.1x/lec9/coordinate.py
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
null
null
null
courses/MITx 6.00.1x/lec9/coordinate.py
NomikOS/learning
268f94605214f6861ef476ca7573e68c068ccbe5
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue May 10 08:18:02 2016 @author: WELG """ class Coordinate(object): def __init__(self, x, y): self.x = x self.y = y def distance(self, other): x_diff_sq = (self.x-other.x)**2 y_diff_sq = (self.y-other.y)**2 return (x_diff_sq + y...
19.433333
61
0.559177
93
583
3.290323
0.397849
0.081699
0.039216
0.071895
0
0
0
0
0
0
0
0.048837
0.262436
583
29
62
20.103448
0.662791
0.125214
0
0
0
0
0.005976
0
0
0
0
0
0
1
0.25
false
0
0
0.125
0.5
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
ca604a9ab5e1dc4d5f71fe846b65e2a15a5e251f
571
py
Python
bookmark/serializers.py
UNIZAR-30226-2021-05/Lector--Backend
8cc285216972f7485781ece51a88d5f02dc85013
[ "MIT" ]
null
null
null
bookmark/serializers.py
UNIZAR-30226-2021-05/Lector--Backend
8cc285216972f7485781ece51a88d5f02dc85013
[ "MIT" ]
null
null
null
bookmark/serializers.py
UNIZAR-30226-2021-05/Lector--Backend
8cc285216972f7485781ece51a88d5f02dc85013
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Bookmark, Usuario class BookmarkSerializer(serializers.ModelSerializer): """ API endpoint """ class Meta: model = Bookmark fields = [ "esAnotacion", "cuerpo", "offset", "titulo"...
17.84375
55
0.502627
40
571
7.15
0.575
0.181818
0.202797
0.258741
0.356643
0.356643
0.356643
0
0
0
0
0
0.399299
571
32
56
17.84375
0.833819
0.043783
0
0.3
0
0
0.087209
0
0
0
0
0
0
1
0
false
0
0.1
0
0.3
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ca7714124421148aec428513cb4835bc39ba6e9c
218
py
Python
models/objects.py
YTXIRE/able_crm_concrete_accounting_python_tests
c708bfb973a19499e0b04da5c219d924b295d74e
[ "Apache-2.0" ]
1
2022-03-06T17:30:38.000Z
2022-03-06T17:30:38.000Z
models/objects.py
YTXIRE/able_crm_concrete_accounting_python_tests
c708bfb973a19499e0b04da5c219d924b295d74e
[ "Apache-2.0" ]
null
null
null
models/objects.py
YTXIRE/able_crm_concrete_accounting_python_tests
c708bfb973a19499e0b04da5c219d924b295d74e
[ "Apache-2.0" ]
null
null
null
from peewee import CharField, IntegerField from core.db.db import BaseModel class Objects(BaseModel): name = CharField(unique=True) is_archive = IntegerField() class Meta: table_name = 'objects'
19.818182
42
0.715596
26
218
5.923077
0.653846
0
0
0
0
0
0
0
0
0
0
0
0.206422
218
10
43
21.8
0.890173
0
0
0
0
0
0.03211
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.857143
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
1
0
0
2
ca78177fdd6b90e2972e4e035b6b677b36a1fa10
4,023
py
Python
thenewboston_node/business_logic/tests/test_blockchain_base/test_get_root_account_file.py
MLonTNB/thenewboston-node
3fbd0fc36c4f0eabaa8267f2a0be2fd717f133d1
[ "MIT" ]
null
null
null
thenewboston_node/business_logic/tests/test_blockchain_base/test_get_root_account_file.py
MLonTNB/thenewboston-node
3fbd0fc36c4f0eabaa8267f2a0be2fd717f133d1
[ "MIT" ]
null
null
null
thenewboston_node/business_logic/tests/test_blockchain_base/test_get_root_account_file.py
MLonTNB/thenewboston-node
3fbd0fc36c4f0eabaa8267f2a0be2fd717f133d1
[ "MIT" ]
null
null
null
import pytest from thenewboston_node.business_logic.tests.mocks.utils import patch_blockchain_states def test_can_get_account_root_file_count(blockchain_base, blockchain_state_10, blockchain_state_20): with patch_blockchain_states(blockchain_base, [blockchain_state_10, blockchain_state_20]): arf_count = ...
41.05102
106
0.825255
527
4,023
5.71537
0.11575
0.253984
0.112882
0.134462
0.784861
0.735392
0.692895
0.657039
0.586653
0.586653
0
0.025864
0.115834
4,023
97
107
41.474227
0.820917
0
0
0.377049
0
0
0.01044
0.01044
0
0
0
0
0.180328
1
0.196721
false
0
0.032787
0
0.229508
0
0
0
0
null
1
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
2
ca8c9b33540c4d6f3a2ac61bb2a9b71d2ad65554
2,531
py
Python
lgrp/migrations/0002_auto_20180523_1724.py
paleocore/paleocore110
754f3248ab22a2996b43bd224bd4ba15462edf7d
[ "MIT" ]
null
null
null
lgrp/migrations/0002_auto_20180523_1724.py
paleocore/paleocore110
754f3248ab22a2996b43bd224bd4ba15462edf7d
[ "MIT" ]
7
2020-02-05T20:54:24.000Z
2021-12-13T20:13:20.000Z
lgrp/migrations/0002_auto_20180523_1724.py
paleocore/paleocore110
754f3248ab22a2996b43bd224bd4ba15462edf7d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2018-05-23 17:24 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lgrp', '0001_initial'), ] operations = [ migrations.AlterModelOptions( ...
76.69697
1,562
0.551561
343
2,531
4.017493
0.376093
0.008708
0.067489
0.037736
0.07402
0
0
0
0
0
0
0.016433
0.182537
2,531
32
1,563
79.09375
0.649589
0.026867
0
0.28
1
0
0.515447
0
0
0
0
0
0
1
0
false
0
0.08
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0476e92ddb685f3d848b0ff0228d9311265e9dc0
109
py
Python
src/server_CFD/definitions.py
robertpardillo/Funnel
f45e419f55e085bbb95e17c47b4c94a7c625ba9b
[ "MIT" ]
1
2021-05-18T16:10:49.000Z
2021-05-18T16:10:49.000Z
src/server_CFD/definitions.py
robertpardillo/Funnel
f45e419f55e085bbb95e17c47b4c94a7c625ba9b
[ "MIT" ]
null
null
null
src/server_CFD/definitions.py
robertpardillo/Funnel
f45e419f55e085bbb95e17c47b4c94a7c625ba9b
[ "MIT" ]
null
null
null
import os ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) SERVER = 'CFD' IS_MULTITHREADING = 0
15.571429
54
0.706422
16
109
4.4375
0.8125
0.169014
0
0
0
0
0
0
0
0
0
0.011111
0.174312
109
6
55
18.166667
0.777778
0
0
0
0
0
0.029412
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0477dce09b1e1c9c972295a526736ea853619dd3
201
py
Python
src/base.py
mchange/gitlab-migrator
9ae5779993bb699c050ad6156c1f71f3ae2ddaf9
[ "MIT" ]
2
2020-02-12T07:49:13.000Z
2021-03-23T02:58:20.000Z
src/base.py
mchange/gitlab-migrator
9ae5779993bb699c050ad6156c1f71f3ae2ddaf9
[ "MIT" ]
null
null
null
src/base.py
mchange/gitlab-migrator
9ae5779993bb699c050ad6156c1f71f3ae2ddaf9
[ "MIT" ]
3
2019-11-18T23:49:25.000Z
2021-03-23T02:58:24.000Z
# -*- coding: utf-8 -*- import json def storage(name, data): with open('tmp/%s.json' % name, 'w', encoding = 'UTF-8') as f: json.dump(data, f, sort_keys = False, indent = 2, ensure_ascii = False)
25.125
73
0.621891
33
201
3.727273
0.757576
0.065041
0
0
0
0
0
0
0
0
0
0.018182
0.179104
201
7
74
28.714286
0.727273
0.104478
0
0
0
0
0.095506
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
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
1
0
0
0
0
0
0
0
2
0487745f61c3a9a8d9923f5b46f9963da793fbf5
2,416
py
Python
geosquizzy/fsm/selection.py
LowerSilesians/geo-squizzy
8fff2df9e158c4063ef93d58f60f84e90ad44edd
[ "MIT" ]
3
2016-02-25T07:59:24.000Z
2016-03-11T12:33:48.000Z
geosquizzy/fsm/selection.py
LowerSilesians/geo-squizzy
8fff2df9e158c4063ef93d58f60f84e90ad44edd
[ "MIT" ]
2
2016-03-09T12:23:42.000Z
2016-03-09T21:21:47.000Z
geosquizzy/fsm/selection.py
LowerSilesians/geo-squizzy
8fff2df9e158c4063ef93d58f60f84e90ad44edd
[ "MIT" ]
null
null
null
# TODO selection percentage pattern works, but run and done methods really slow down # TODO whole computation when we traverse really big data # TODO in order to achieve better performance EconomizeFiniteStateMachine class was provided import math class SelectionFiniteStateMachine: def __init__(self, *args, **k...
36.059701
92
0.612997
295
2,416
4.789831
0.315254
0.04954
0.046709
0.063694
0.205945
0.07431
0.050955
0.050955
0
0
0
0.017585
0.293874
2,416
67
93
36.059701
0.810668
0.191225
0
0.108696
0
0
0.027822
0
0
0
0
0.014925
0
1
0.130435
false
0.086957
0.021739
0.021739
0.217391
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
0
0
0
0
0
2
049e902695b3f12dc0159bb3ea84ccc388a6852b
4,478
py
Python
lib/utils/convert.py
lin-zju/descriptor-space
7b6aaa6ed710d7e3b097b0097c01f4562df75c59
[ "MIT" ]
null
null
null
lib/utils/convert.py
lin-zju/descriptor-space
7b6aaa6ed710d7e3b097b0097c01f4562df75c59
[ "MIT" ]
5
2021-03-19T04:29:29.000Z
2022-03-12T00:01:54.000Z
lib/utils/convert.py
lin-zju/descriptor-space
7b6aaa6ed710d7e3b097b0097c01f4562df75c59
[ "MIT" ]
null
null
null
import torch import numpy as np import cv2 def tonumpyimg(img): """ Convert a normalized tensor image to unnormalized uint8 numpy image For single channel image, no unnormalization is done. :param img: torch, normalized, (3, H, W), (H, W) :return: numpy: (H, W, 3), (H, W). uint8 """ ...
23.946524
82
0.566994
679
4,478
3.701031
0.17673
0.020692
0.00955
0.016713
0.288102
0.2308
0.204536
0.18265
0.163152
0.130521
0
0.05297
0.270657
4,478
186
83
24.075269
0.716473
0.339214
0
0.071429
0
0
0.002283
0
0
0
0
0
0
1
0.228571
false
0
0.042857
0.028571
0.528571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
04a67ebc35b4f07f80f0f7f2893f69b1c95e51a4
721
py
Python
pvapy/pvaPyProblem.py
mrkraimer/testPvaPy
7d09095bc76bf0a86d8d664c85757ab8369485c8
[ "MIT" ]
null
null
null
pvapy/pvaPyProblem.py
mrkraimer/testPvaPy
7d09095bc76bf0a86d8d664c85757ab8369485c8
[ "MIT" ]
1
2020-07-18T19:50:51.000Z
2020-07-19T09:58:16.000Z
pvapy/pvaPyProblem.py
mrkraimer/testPvaPy
7d09095bc76bf0a86d8d664c85757ab8369485c8
[ "MIT" ]
2
2020-07-18T18:06:57.000Z
2020-09-10T06:40:34.000Z
from pvapy import Channel, CA, PvTimeStamp, PvAlarm print('DBRdouble') channel = Channel('DBRdouble') timestamp = PvTimeStamp(10, 100) alarm = PvAlarm(1,1,"mess") print(channel.get('value')) print('here 1') channel.put(alarm,'record[process=false]field(alarm)') print('here 2') print(channel.get('value')) channel.put(ti...
27.730769
62
0.736477
102
721
5.205882
0.27451
0.135593
0.169492
0.225989
0.681733
0.681733
0.572505
0.572505
0.572505
0.572505
0
0.019288
0.065187
721
25
63
28.84
0.768546
0
0
0.434783
0
0
0.345833
0.194444
0
0
0
0
0
1
0
false
0
0.043478
0
0.043478
0.608696
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
1
0
2
04a8f1e9519e4c6ba6d356c5c2d842492bb0fa06
1,020
py
Python
setup.py
SomeHybrid/mineid
b05216541b9c29a15fa6bbbd95531fed7b43f184
[ "MIT" ]
null
null
null
setup.py
SomeHybrid/mineid
b05216541b9c29a15fa6bbbd95531fed7b43f184
[ "MIT" ]
null
null
null
setup.py
SomeHybrid/mineid
b05216541b9c29a15fa6bbbd95531fed7b43f184
[ "MIT" ]
null
null
null
try: from setuptools import setup except ImportError: from distutils.core import setup import mineid import pathlib HERE = pathlib.Path(__file__).parent README = (HERE / "README.md").read_text() setup( name=mineid.__name__, version=mineid.__version__, description="A small Python library for gettin...
30.909091
70
0.640196
107
1,020
5.934579
0.607477
0.179528
0.23622
0.204724
0
0
0
0
0
0
0
0.015248
0.228431
1,020
32
71
31.875
0.791614
0
0
0
0
0
0.467647
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
04bc20e97c7b91fb6c91377e5dcad98a1ee694a4
362
py
Python
client-server-chatroom/server.py
crista/swarch
336e885e086bde17cded6acc9afd7904f6c749e3
[ "MIT" ]
null
null
null
client-server-chatroom/server.py
crista/swarch
336e885e086bde17cded6acc9afd7904f6c749e3
[ "MIT" ]
null
null
null
client-server-chatroom/server.py
crista/swarch
336e885e086bde17cded6acc9afd7904f6c749e3
[ "MIT" ]
null
null
null
from network import Listener, Handler, poll handlers = {} # map client handler to user name class MyHandler(Handler): def on_open(self): pass def on_close(self): pass def on_msg(self, msg): print msg port = 8888 server = Listener(port, MyHandler) while...
15.083333
48
0.596685
47
362
4.531915
0.680851
0.070423
0.103286
0.122066
0
0
0
0
0
0
0
0.03252
0.320442
362
23
49
15.73913
0.833333
0.116022
0
0.153846
0
0
0
0
0
0
0
0
0
0
null
null
0.153846
0.076923
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
04d8816c058198033200e277b7e97cd45ae91b00
7,675
py
Python
artgens/voice2txt.py
mark-nick-o/AIML_SoundArtsProject
be391f0ce8cde322abbfb49015e632a98c7f00c6
[ "Apache-2.0" ]
null
null
null
artgens/voice2txt.py
mark-nick-o/AIML_SoundArtsProject
be391f0ce8cde322abbfb49015e632a98c7f00c6
[ "Apache-2.0" ]
null
null
null
artgens/voice2txt.py
mark-nick-o/AIML_SoundArtsProject
be391f0ce8cde322abbfb49015e632a98c7f00c6
[ "Apache-2.0" ]
null
null
null
# # This python takes either a microphone or sound file as an input # and tries to decipher the vocal message into text # # import os import sys # python -m pip install --upgrade pip # sudo -H pip3 install SpeechRecognition pydub import speech_recognition as sr # sudo apt-get install python-pyaudio python3-pyaudio #...
58.587786
194
0.506971
824
7,675
4.658981
0.231796
0.046887
0.054702
0.101589
0.613962
0.579578
0.557697
0.548059
0.548059
0.548059
0
0.002431
0.410423
7,675
130
195
59.038462
0.845967
0.292638
0
0.745098
0
0.009804
0.104774
0.006502
0
0
0
0
0
0
null
null
0.009804
0.029412
null
null
0.303922
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
04e8d0e9ff239a8ce726752d726dd36f5030b1dc
1,875
py
Python
servers/python/coweb/auth/ini.py
opencoweb/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
83
2015-01-05T19:02:57.000Z
2021-11-19T02:48:09.000Z
servers/python/coweb/auth/ini.py
xuelingxiao/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
3
2015-12-16T13:49:33.000Z
2019-06-17T13:38:50.000Z
servers/python/coweb/auth/ini.py
xuelingxiao/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
14
2015-04-29T22:36:53.000Z
2021-11-18T03:24:29.000Z
''' Copyright (c) The Dojo Foundation 2011. All Rights Reserved. Copyright (c) IBM Corporation 2008, 2011. All Rights Reserved. ''' # std lib import ConfigParser # tornado import tornado.web from base import AuthBase class IniAuth(AuthBase): cookieName = 'coweb.auth.ini.username' def __init__(self, container, ...
32.327586
75
0.633067
206
1,875
5.645631
0.461165
0.028375
0.051591
0.036114
0.11178
0.11178
0
0
0
0
0
0.011704
0.270933
1,875
58
76
32.327586
0.839064
0.228267
0
0.305556
0
0
0.028329
0.016289
0
0
0
0.017241
0
1
0.166667
false
0.111111
0.083333
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
0
0
0
0
0
2
04f6f8530ee92454c592c0aff5b1d9043f871316
304
py
Python
algorithm/codility.com/20160330/longest_0_binary_gap.py
leonard-sxy/algorithm-practice
4efde003a085b57201f364e7590e454d6b066e6d
[ "MIT" ]
1
2016-03-29T06:16:40.000Z
2016-03-29T06:16:40.000Z
algorithm/codility.com/20160330/longest_0_binary_gap.py
leonard-sxy/algorithm-practice
4efde003a085b57201f364e7590e454d6b066e6d
[ "MIT" ]
null
null
null
algorithm/codility.com/20160330/longest_0_binary_gap.py
leonard-sxy/algorithm-practice
4efde003a085b57201f364e7590e454d6b066e6d
[ "MIT" ]
null
null
null
def solution(N): str = '{0:b}'.format(N) counter = prev_counter = 0 for c in str: if c is '0': counter += 1 else: if prev_counter == 0 or counter > prev_counter: prev_counter = counter counter = 0 return prev_counter if prev_counter > counter else counter
19
60
0.605263
45
304
3.955556
0.4
0.370787
0.303371
0
0
0
0
0
0
0
0
0.028302
0.302632
304
15
61
20.266667
0.811321
0
0
0
0
0
0.019868
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.181818
0
0
0
0
null
1
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
2
04f77bc85b8a70ab36278fbebe8b5450e1812373
223
py
Python
m06_classes/misc_types.py
zkamel/learn-python
78fdd6ceacdfcc8306e2d8306bf8eec8b6702f23
[ "MIT" ]
80
2020-11-14T19:19:27.000Z
2022-03-10T17:43:17.000Z
m06_classes/misc_types.py
nerbertb/python-52-weeks
55add5d75d1aabed4c59d445e1d1b773ede047b0
[ "MIT" ]
10
2020-11-24T06:19:45.000Z
2022-02-27T23:53:28.000Z
m06_classes/misc_types.py
nerbertb/python-52-weeks
55add5d75d1aabed4c59d445e1d1b773ede047b0
[ "MIT" ]
58
2020-11-13T18:35:22.000Z
2022-03-28T06:40:08.000Z
class TransportType: NAPALM = "napalm" NCCLIENT = "ncclient" NETMIKO = "netmiko" class DeviceType: IOS = "ios" NXOS = "nxos" NXOS_SSH = "nxos_ssh" NEXUS = "nexus" CISCO_NXOS = "cisco_nxos"
17.153846
29
0.605381
24
223
5.458333
0.458333
0.122137
0
0
0
0
0
0
0
0
0
0
0.278027
223
12
30
18.583333
0.813665
0
0
0
0
0
0.2287
0
0
0
0
0
0
1
0
false
0
0
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
b6b9913db8898e98ae280c9f805bab61c89f01e7
242
py
Python
sols/1207.py
Paul11100/LeetCode
9896c579dff1812c0c76964db8d60603ee715e35
[ "MIT" ]
null
null
null
sols/1207.py
Paul11100/LeetCode
9896c579dff1812c0c76964db8d60603ee715e35
[ "MIT" ]
null
null
null
sols/1207.py
Paul11100/LeetCode
9896c579dff1812c0c76964db8d60603ee715e35
[ "MIT" ]
null
null
null
from collections import Counter class Solution: # Counter (Accepted + Top Voted), O(n) time and space def uniqueOccurrences(self, arr: List[int]) -> bool: cnt = Counter(arr) return len(set(cnt.values())) == len(cnt)
26.888889
57
0.644628
32
242
4.875
0.8125
0
0
0
0
0
0
0
0
0
0
0
0.227273
242
8
58
30.25
0.834225
0.210744
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.8
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
1
0
0
2
b6bda7f3a6c152d1c774609be82c07ddb95b60bc
1,425
py
Python
fastapi-master-api/app/api/models/machine.py
SionAbes/fullstack-porfolio
6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9
[ "MIT" ]
1
2021-12-25T09:19:25.000Z
2021-12-25T09:19:25.000Z
fastapi-master-api/app/api/models/machine.py
SionAbes/fullstack-porfolio
6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9
[ "MIT" ]
null
null
null
fastapi-master-api/app/api/models/machine.py
SionAbes/fullstack-porfolio
6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import annotations import re # noqa: F401 from datetime import date, datetime # noqa: F401 from typing import Any, Dict, List, Optional # noqa: F401 from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401 class Machine(BaseModel): """NOTE: This class is auto...
30.978261
96
0.691228
198
1,425
4.823232
0.323232
0.06911
0.149738
0.131937
0
0
0
0
0
0
0
0.011938
0.235789
1,425
45
97
31.666667
0.865014
0.544561
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.277778
0
0.944444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
2
b6d5f7d52c3ae0ba8e0e0bccd6828e7cc95ac77d
1,330
py
Python
fluidpythran/for_test_init.py
fluiddyn/fluidpythran
e34e9886680e6b8e365d24a77fcb66b67e554043
[ "CECILL-B" ]
1
2018-10-31T09:30:15.000Z
2018-10-31T09:30:15.000Z
fluidpythran/for_test_init.py
fluiddyn/fluidpythran
e34e9886680e6b8e365d24a77fcb66b67e554043
[ "CECILL-B" ]
null
null
null
fluidpythran/for_test_init.py
fluiddyn/fluidpythran
e34e9886680e6b8e365d24a77fcb66b67e554043
[ "CECILL-B" ]
null
null
null
import numpy as np # pythran import numpy as np from fluidpythran import FluidPythran, boost, include, Array, Union # pythran def func(int, float) @boost def func(a, b): return a + b @include def func_tmp(arg): return arg ** 2 A = Union[int, Array[int, "1d"]] @boost def func2(a: A, b: float): re...
16.419753
67
0.564662
186
1,330
3.887097
0.344086
0.013831
0.035961
0.041494
0.077455
0.077455
0.077455
0.077455
0
0
0
0.019397
0.302256
1,330
80
68
16.625
0.759698
0.101504
0
0.119048
0
0
0.019442
0
0
0
0
0
0.047619
1
0.214286
false
0
0.047619
0.119048
0.452381
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
1
0
0
0
2
b6dc336da62888edd5386714f6a8e59cf1cf1328
5,929
py
Python
receiveSTA/rcv_kset_omit2.py
ilinastoilkovska/syncTA
9224ef50d5ada4782d0a1d5723531ebe43149584
[ "Apache-2.0" ]
2
2021-01-05T11:45:48.000Z
2021-04-06T12:59:38.000Z
receiveSTA/rcv_kset_omit2.py
ilinastoilkovska/syncTA
9224ef50d5ada4782d0a1d5723531ebe43149584
[ "Apache-2.0" ]
null
null
null
receiveSTA/rcv_kset_omit2.py
ilinastoilkovska/syncTA
9224ef50d5ada4782d0a1d5723531ebe43149584
[ "Apache-2.0" ]
null
null
null
# process local states local = range(12) # L states L = {"x0" : [6], "x1" : [7], "x2" : [8], "f0" : [9], "f1" : [10], "f2" : [11], "v0" : [0, 3, 6, 9], "v1" : [1, 4, 7, 10], "v2" : [2, 5, 8, 11], "corr0" : [0, 6], "corr1" : [1, 7], "corr2" : [2, 8]} # receive variables rcv_vars = ["nr0", "nr1", "nr2"] #...
47.432
144
0.512059
893
5,929
3.393057
0.141097
0.19604
0.249505
0.257426
0.550495
0.527723
0.527723
0.483168
0.190099
0.130693
0
0.09243
0.153314
5,929
124
145
47.814516
0.511155
0.035419
0
0
0
0
0.3727
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
b6e55ebb8af286313e7dc054c50c7d19cf4d73db
1,010
py
Python
Surrogate_MBO/constraints.py
Romit-Maulik/Tutorials-Demos-Practice
a58ddc819f24a16f7059e63d7f201fc2cd23e03a
[ "MIT" ]
8
2020-09-02T14:46:07.000Z
2021-11-29T15:27:05.000Z
Surrogate_MBO/constraints.py
omersan/Practice
77eecdc2a202e6b333123cfd92e7db6dc0eea021
[ "MIT" ]
18
2020-11-13T18:49:33.000Z
2022-03-12T00:54:43.000Z
Surrogate_MBO/constraints.py
omersan/Practice
77eecdc2a202e6b333123cfd92e7db6dc0eea021
[ "MIT" ]
5
2019-09-25T23:57:00.000Z
2021-04-18T08:15:34.000Z
''' Define constraints (depends on your problem) https://stackoverflow.com/questions/42303470/scipy-optimize-inequality-constraint-which-side-of-the-inequality-is-considered [0.1268 0.467 0.5834 0.2103 -0.1268 -0.5425 -0.5096 0.0581] . The bounds are +/-30% of this. ''' t_base = [0.1268, 0.467, 0.5834, 0.2103, -0.1268...
32.580645
124
0.656436
179
1,010
3.569832
0.424581
0.031299
0.037559
0.028169
0.153365
0.122066
0.122066
0.122066
0.122066
0.122066
0
0.213523
0.165347
1,010
31
125
32.580645
0.544484
0.29604
0
0
0
0
0.049716
0
0
0
0
0
0
1
0.157895
false
0
0
0.105263
0.315789
0.052632
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
1
0
0
0
2
b6e79da658647f9a32d8c09cfd8180a52d57e871
437
py
Python
mime/users/api/serializers.py
mrdvince/mime
ff0df1797a821c0fa607a56df2d31fb3408bea31
[ "MIT" ]
null
null
null
mime/users/api/serializers.py
mrdvince/mime
ff0df1797a821c0fa607a56df2d31fb3408bea31
[ "MIT" ]
9
2021-12-16T06:39:57.000Z
2022-02-14T15:58:00.000Z
mime/users/api/serializers.py
mrdvince/mime
ff0df1797a821c0fa607a56df2d31fb3408bea31
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from rest_framework import serializers from mime.mime.models import Mime User = get_user_model() class UserSerializer(serializers.ModelSerializer): """ Serializer for the User model (used for the API) """ mime = serializers.PrimaryKeyRelatedField(many=...
23
85
0.709382
53
437
5.754717
0.584906
0.088525
0.078689
0
0
0
0
0
0
0
0
0
0.19222
437
18
86
24.277778
0.864023
0.10984
0
0
0
0
0.037534
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
b6e87a305461c5f4c196baa5e970e25ed6d80a40
483
py
Python
mb_changedetection.py
mouhamedba/mb_changedetection.io
41d339fb807da3bf27a45dff5d69db6a4f99a9e0
[ "Apache-2.0" ]
null
null
null
mb_changedetection.py
mouhamedba/mb_changedetection.io
41d339fb807da3bf27a45dff5d69db6a4f99a9e0
[ "Apache-2.0" ]
null
null
null
mb_changedetection.py
mouhamedba/mb_changedetection.io
41d339fb807da3bf27a45dff5d69db6a4f99a9e0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Entry-point for running from the CLI when not installed via Pip, Pip will handle the console_scripts entry_points's from setup.py # It's recommended to use `pip3 install changedetection.io` and start with `changedetection.py` instead, it will be linkd to your global path. # or Docker. # Read more ...
40.25
142
0.784679
73
483
5.013699
0.753425
0.092896
0
0
0
0
0
0
0
0
0
0.004785
0.134576
483
11
143
43.909091
0.870813
0.747412
0
0
0
0
0.068376
0
0
0
0
0
0
1
0
true
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
1
0
1
0
0
0
0
2
b6f654169c3271517b08a11d104c504eb77b6207
20,356
py
Python
parsewkt/parse.py
cleder/parsewkt
728579d79a37a5ad413abceac5e8349f70380624
[ "BSD-2-Clause" ]
12
2015-01-26T00:39:42.000Z
2021-07-01T16:15:17.000Z
parsewkt/parse.py
cleder/parsewkt
728579d79a37a5ad413abceac5e8349f70380624
[ "BSD-2-Clause" ]
1
2020-05-22T08:26:09.000Z
2020-05-24T16:58:53.000Z
parsewkt/parse.py
cleder/parsewkt
728579d79a37a5ad413abceac5e8349f70380624
[ "BSD-2-Clause" ]
3
2015-11-22T01:09:34.000Z
2016-05-26T20:57:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # CAVEAT UTILITOR # This file was automatically generated by Grako. # https://bitbucket.org/apalala/grako/ # Any changes you make to it will be overwritten the # next time the file is generated. # from __future__ import print_function, division, absolute_import, unico...
28.311544
82
0.560523
2,041
20,356
5.101911
0.086232
0.081437
0.084702
0.108902
0.793815
0.675406
0.60703
0.404975
0.401421
0.386344
0
0.003074
0.344861
20,356
718
83
28.350975
0.777744
0.013067
0
0.659359
1
0
0.047911
0.001942
0
0
0
0
0
1
0.205734
false
0.001686
0.010118
0.089376
0.311973
0.016863
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
1
0
0
0
0
0
0
0
2
8e04cb8bc0a08664e80d4f15a028d215c05859b3
875
py
Python
util.py
WRY-learning/k3http
095a49118d052c43eb0e1dd82b6764eee9fcb158
[ "MIT" ]
null
null
null
util.py
WRY-learning/k3http
095a49118d052c43eb0e1dd82b6764eee9fcb158
[ "MIT" ]
2
2021-11-10T22:16:25.000Z
2022-03-23T06:59:52.000Z
util.py
WRY-learning/k3http
095a49118d052c43eb0e1dd82b6764eee9fcb158
[ "MIT" ]
1
2021-08-18T05:16:59.000Z
2021-08-18T05:16:59.000Z
#!/usr/bin/env python3 # coding: utf-8 import copy def headers_add_host(headers, address): """ If there is no Host field in the headers, insert the address as a Host into the headers. :param headers: a 'dict'(header name, header value) of http request headers :param address: a string represents a dom...
27.34375
116
0.693714
123
875
4.902439
0.390244
0.069652
0.043118
0.063018
0.26534
0.15257
0.15257
0.15257
0.15257
0
0
0.002907
0.213714
875
31
117
28.225806
0.873547
0.618286
0
0
0
0
0.079137
0
0
0
0
0
0
1
0.25
false
0
0.125
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
1
0
0
0
0
1
0
0
2
8e05676982045b8332280fafa7905cf849cb0db4
22,892
py
Python
ansible-devel/test/units/module_utils/facts/hardware/linux_data.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/units/module_utils/facts/hardware/linux_data.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
ansible-devel/test/units/module_utils/facts/hardware/linux_data.py
satishcarya/ansible
ed091e174c26316f621ac16344a95c99f56bdc43
[ "MIT" ]
null
null
null
# This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed in the hope that ...
39.064846
154
0.554211
2,643
22,892
4.690882
0.167234
0.012099
0.043878
0.060494
0.757622
0.70463
0.690111
0.653573
0.628246
0.600258
0
0.101441
0.290757
22,892
585
155
39.131624
0.66217
0.033636
0
0.452252
0
0.057658
0.58451
0.258867
0
0
0
0
0
1
0
false
0
0.003604
0
0.003604
0.001802
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8e0e7025679823e2bffe9b97772e691e6fdbe9e0
1,065
py
Python
data_pipeline/sql/statement/ddl_statement.py
albertteoh/data_pipeline
a99f1c7412375b3e9f4115108fcdde517b2e71a6
[ "Apache-2.0" ]
null
null
null
data_pipeline/sql/statement/ddl_statement.py
albertteoh/data_pipeline
a99f1c7412375b3e9f4115108fcdde517b2e71a6
[ "Apache-2.0" ]
null
null
null
data_pipeline/sql/statement/ddl_statement.py
albertteoh/data_pipeline
a99f1c7412375b3e9f4115108fcdde517b2e71a6
[ "Apache-2.0" ]
null
null
null
############################################################################### # Module: ddl_statement # Purpose: Parent class for DDL (Data Definition Language) statements # # Notes: # ############################################################################### import data_pipeline.constants.const as const ...
27.307692
79
0.585915
104
1,065
5.730769
0.519231
0.040268
0.043624
0
0
0
0
0
0
0
0
0
0.189671
1,065
38
80
28.026316
0.690614
0.152113
0
0
0
0
0.009524
0
0
0
0
0
0
1
0.25
false
0.05
0.15
0.1
0.7
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
8e1ab0021a7c0f128fe23cec8868353c85222900
1,052
py
Python
tests/__init__.py
Kua-Fu/rally
7c58ef6f81f618fbc142dfa58b0ed00a5b05fbae
[ "Apache-2.0" ]
1,577
2016-04-19T12:38:58.000Z
2022-03-31T07:18:25.000Z
tests/__init__.py
Kua-Fu/rally
7c58ef6f81f618fbc142dfa58b0ed00a5b05fbae
[ "Apache-2.0" ]
1,079
2016-04-19T12:09:16.000Z
2022-03-31T05:38:50.000Z
tests/__init__.py
Kua-Fu/rally
7c58ef6f81f618fbc142dfa58b0ed00a5b05fbae
[ "Apache-2.0" ]
300
2016-04-19T18:27:12.000Z
2022-03-23T07:54:16.000Z
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
32.875
68
0.737643
160
1,052
4.83125
0.575
0.07762
0.03881
0.041397
0
0
0
0
0
0
0
0.004689
0.189164
1,052
31
69
33.935484
0.901524
0.79943
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0.2
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
8e25761876fd8e4aaf1e3c9049789e90709486aa
1,048
py
Python
Quizzes/Quiz3.py
MatthewDShen/ComputingInCivil
681bc684fa4bc3413a9e8e26ad784c2b5e7a8d4a
[ "MIT" ]
null
null
null
Quizzes/Quiz3.py
MatthewDShen/ComputingInCivil
681bc684fa4bc3413a9e8e26ad784c2b5e7a8d4a
[ "MIT" ]
null
null
null
Quizzes/Quiz3.py
MatthewDShen/ComputingInCivil
681bc684fa4bc3413a9e8e26ad784c2b5e7a8d4a
[ "MIT" ]
null
null
null
import scipy import matplotlib.pyplot as plt import numpy as np x = [ 0.001, 0.019, 0.039, 0.058, 0.080, 0.098, 0.119, 0.139, 0.159, 0.180, 0.198, 0.249, 0.298, 0.349, 0.398, 0.419, 0.439, 0.460, 0.479, 0.499, 0.519, 0.540, 0.558, 0.578, 0.598, 0.649, 0.698, 0.749, 0.798, 0.819, 0.839, 0.859, 0.879...
26.2
83
0.583969
232
1,048
2.594828
0.50431
0.024917
0.016611
0
0
0
0
0
0
0
0
0.377515
0.193702
1,048
39
84
26.871795
0.334911
0
0
0
0
0
0.02958
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8e29b5bc086a0b91e42ca993c138b28d7a9a26fe
242
py
Python
LeetCode/easy - Hash Table/290. Word Pattern/.ipynb_checkpoints/solution-checkpoint.py
vincent507cpu/Comprehensive-Algorithm-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
4
2020-06-26T00:45:53.000Z
2021-04-19T12:23:32.000Z
LeetCode/easy - Hash Table/290. Word Pattern/solution.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
LeetCode/easy - Hash Table/290. Word Pattern/solution.py
vincent507cpu/LeetCode-Comprehensive-Solution
04e01e49622457f09af2e1133954f043c0c92cb9
[ "MIT" ]
null
null
null
class Solution: def wordPattern(self, pattern: str, str: str) -> bool: lst = str.split() combo = zip(pattern, lst) return len(set(pattern)) == len(set(lst)) == len(set(combo)) and len(pattern) == len(lst)
34.571429
97
0.570248
32
242
4.3125
0.5
0.130435
0
0
0
0
0
0
0
0
0
0
0.264463
242
7
97
34.571429
0.775281
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
8e329e4a0e6140f052d060368eaa9d899b41b1a3
679
py
Python
app.py
ialjumah/python-helloworld
3bf5d450617e5ab79f00fe25e6906b662f48f418
[ "MIT" ]
null
null
null
app.py
ialjumah/python-helloworld
3bf5d450617e5ab79f00fe25e6906b662f48f418
[ "MIT" ]
null
null
null
app.py
ialjumah/python-helloworld
3bf5d450617e5ab79f00fe25e6906b662f48f418
[ "MIT" ]
null
null
null
Volume in drive C has no label. Volume Serial Number is 30AD-FC05 Directory of C:\Users\HP\Documents\nd064_course_1-main\solutions\python-helloworld 13/07/2021 14:33 <DIR> . 13/07/2021 14:33 <DIR> .. 13/07/2021 14:34 0 app.log 13/07/2021 14:34 0 a...
39.941176
84
0.536082
107
679
3.327103
0.598131
0.151685
0.11236
0.140449
0.275281
0.174157
0.174157
0.11236
0.11236
0.11236
0
0.343602
0.378498
679
16
85
42.4375
0.5
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
8e34ebaa15e43dca37d0fd1c2a7556fa0314b835
1,185
py
Python
test/test_stack_with_max_value.py
kisliakovsky/structures
19969470a7e9b150b077082cc8ca0c2fc9be279e
[ "MIT" ]
null
null
null
test/test_stack_with_max_value.py
kisliakovsky/structures
19969470a7e9b150b077082cc8ca0c2fc9be279e
[ "MIT" ]
null
null
null
test/test_stack_with_max_value.py
kisliakovsky/structures
19969470a7e9b150b077082cc8ca0c2fc9be279e
[ "MIT" ]
null
null
null
from unittest import TestCase from src.stack import StackWithMaxValue class TestStackWithMaxValue(TestCase): def test_push(self): stack = StackWithMaxValue() stack.push(1) stack.push(2) stack.push(3) self.assertEqual([1, 2, 3], stack.as_list()) def test_pop(self): ...
26.333333
52
0.598312
132
1,185
5.287879
0.219697
0.103152
0.186246
0.17765
0.462751
0.411175
0.411175
0.295129
0.295129
0.163324
0
0.018692
0.277637
1,185
44
53
26.931818
0.796729
0
0
0.472222
0
0
0
0
0
0
0
0
0.305556
1
0.138889
false
0
0.055556
0
0.222222
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8e3a75b2271028360ac22ac73e19608d706d63fc
7,031
py
Python
notebooks/presentation/styling.py
flatironinstitute/binary_classification_metrics
5cceacfa815265849d84ea6eb4d6e084e35f3f07
[ "BSD-2-Clause" ]
1
2021-09-23T01:10:58.000Z
2021-09-23T01:10:58.000Z
notebooks/presentation/styling.py
flatironinstitute/binary_classification_metrics
5cceacfa815265849d84ea6eb4d6e084e35f3f07
[ "BSD-2-Clause" ]
null
null
null
notebooks/presentation/styling.py
flatironinstitute/binary_classification_metrics
5cceacfa815265849d84ea6eb4d6e084e35f3f07
[ "BSD-2-Clause" ]
1
2021-09-23T01:11:06.000Z
2021-09-23T01:11:06.000Z
style_string = """ <style> .container { width:100% !important; } .hit { border-style: dotted; border-width: 20px; border-color: #ddd; color: black; background-color: white; } .miss { border-style: solid; border-width: 20px; border-color: black; ...
22.827922
65
0.420993
646
7,031
4.547988
0.143963
0.049013
0.065351
0.063649
0.762083
0.697073
0.590197
0.544588
0.516338
0.455412
0
0.002591
0.451145
7,031
307
66
22.90228
0.758746
0
0
0.8125
0
0
0.908108
0.002987
0
0
0
0
0
1
0.013889
false
0
0.006944
0
0.024306
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8e3cc8400178232463ef97c742304e359a41866c
827
py
Python
src/cleanMarkdown.py
xRuiAlves/minute-to-pdf
a46bef9cc76318c702f8d94da4ad6186bcdf0e3b
[ "MIT" ]
null
null
null
src/cleanMarkdown.py
xRuiAlves/minute-to-pdf
a46bef9cc76318c702f8d94da4ad6186bcdf0e3b
[ "MIT" ]
null
null
null
src/cleanMarkdown.py
xRuiAlves/minute-to-pdf
a46bef9cc76318c702f8d94da4ad6186bcdf0e3b
[ "MIT" ]
null
null
null
import re as regex def removeTags(sourceCode): return regex.sub(r"###### tags: .*", "", sourceCode) def getTitle(sourceCode): titleRegex = r"^# ([^\n]*)" return regex.search(titleRegex, sourceCode).group(1), regex.sub(titleRegex, "", sourceCode) def downsizeTitles(sourceCode): titleRegex = r"#(#* ...
28.517241
95
0.648126
95
827
5.642105
0.378947
0.059701
0.052239
0
0
0
0
0
0
0
0
0.005747
0.158404
827
28
96
29.535714
0.764368
0
0
0
0
0
0.162031
0.025393
0
0
0
0
0
1
0.294118
false
0
0.058824
0.058824
0.647059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
8e407ed85ad9862ceadb000fd47a59627e319a69
1,694
py
Python
tests/test_scale.py
aaronfinke/fast_dp
23ceb72e79f9c45df1d97bf535477e9749582c93
[ "Apache-2.0" ]
null
null
null
tests/test_scale.py
aaronfinke/fast_dp
23ceb72e79f9c45df1d97bf535477e9749582c93
[ "Apache-2.0" ]
3
2019-06-11T17:18:30.000Z
2019-07-15T22:37:50.000Z
tests/test_scale.py
aaronfinke/fast_dp
23ceb72e79f9c45df1d97bf535477e9749582c93
[ "Apache-2.0" ]
5
2018-11-16T22:02:03.000Z
2020-08-10T15:23:45.000Z
#!/usr/local/crys-local/ccp4-7.0/bin/cctbx.python import unittest from scale import scale class TestScale(unittest.TestCase): def setUp(self): pass def test_scale(self): unit_cell = (232.96666666666667, 232.96666666666667, 232.96666666666667, 90.0, 90.0, 90.0) meta = {'beam': (120.55726144764847, 119.44351...
32.576923
179
0.639906
253
1,694
4.146245
0.596838
0.017159
0.019066
0.022879
0.06673
0.06673
0.049571
0.049571
0
0
0
0.325883
0.181228
1,694
51
180
33.215686
0.430425
0.028335
0
0.047619
0
0.02381
0.232827
0.091793
0
0
0
0
0.02381
1
0.071429
false
0.047619
0.047619
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
8e419662f3f0d022764cde564f042fd6ac971aa6
330
py
Python
netcad_demo_meraki1/profiles/__init__.py
jeremyschulman/netcad-demo-meraki-1
fb04e2c2e2d6a7ea005602121f35d4ac4ea3b3bb
[ "Apache-2.0" ]
null
null
null
netcad_demo_meraki1/profiles/__init__.py
jeremyschulman/netcad-demo-meraki-1
fb04e2c2e2d6a7ea005602121f35d4ac4ea3b3bb
[ "Apache-2.0" ]
null
null
null
netcad_demo_meraki1/profiles/__init__.py
jeremyschulman/netcad-demo-meraki-1
fb04e2c2e2d6a7ea005602121f35d4ac4ea3b3bb
[ "Apache-2.0" ]
null
null
null
from netcad.device.l2_interfaces import InterfaceL2Access, InterfaceL2Trunk from netcad.device import PeerInterfaceId from netcad_demo_meraki1.vlans import vlan_native_1 from .physical import port_UTP_1G class AccessVlan1(InterfaceL2Access): port_profile = port_UTP_1G vlan = vlan_native_1 desc = PeerInte...
27.5
75
0.827273
42
330
6.214286
0.547619
0.114943
0.122605
0
0
0
0
0
0
0
0
0.034843
0.130303
330
11
76
30
0.874564
0
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
1
0
0
2
8e45edae7334754c6e435545a3fb44c9d485fdf2
1,596
py
Python
modules/SemanticWebImport/src/main/resources/fr/inria/edelweiss/examples/autolayout.py
cmatties/gephi-plugins
48b9e2eaba33e83ec2bd268b7528d9b66d31b7c2
[ "Apache-2.0" ]
7
2016-06-22T12:28:42.000Z
2022-01-03T05:13:06.000Z
modules/SemanticWebImport/src/main/resources/fr/inria/edelweiss/examples/autolayout.py
cmatties/gephi-plugins
48b9e2eaba33e83ec2bd268b7528d9b66d31b7c2
[ "Apache-2.0" ]
null
null
null
modules/SemanticWebImport/src/main/resources/fr/inria/edelweiss/examples/autolayout.py
cmatties/gephi-plugins
48b9e2eaba33e83ec2bd268b7528d9b66d31b7c2
[ "Apache-2.0" ]
2
2016-01-31T03:59:51.000Z
2016-02-24T14:55:06.000Z
import org.openide.util.Lookup as Lookup import org.gephi.ranking.api.RankingController import org.gephi.ranking.api.Ranking as Ranking import org.gephi.ranking.api.Transformer as Transformer import java.awt.Color as Color rankingController = Lookup.getDefault().lookup(org.gephi.ranking.api.RankingController) # Set ...
35.466667
115
0.828321
187
1,596
7.037433
0.363636
0.047872
0.06383
0.054711
0.329787
0.174772
0.118541
0.118541
0
0
0
0.015048
0.08396
1,596
44
116
36.272727
0.885089
0.129073
0
0
0
0
0.011619
0
0
0
0
0
0
0
null
null
0
0.307692
null
null
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
8e48b052744dd7bd27f923bdf71cbb9def01860f
1,204
py
Python
catalog_get_product.py
cognitivefashion/cf-sdk-python
9eb90245314a54d1a472f835fb427e7f6509d92a
[ "Apache-2.0" ]
9
2019-03-05T02:50:48.000Z
2022-02-25T20:21:42.000Z
catalog_get_product.py
cognitivefashion/cf-sdk-python
9eb90245314a54d1a472f835fb427e7f6509d92a
[ "Apache-2.0" ]
1
2019-05-21T02:04:27.000Z
2020-02-10T20:33:10.000Z
catalog_get_product.py
cognitivefashion/cf-sdk-python
9eb90245314a54d1a472f835fb427e7f6509d92a
[ "Apache-2.0" ]
5
2017-06-16T00:00:13.000Z
2021-02-08T19:23:59.000Z
#----------------------------------------------------------------------------- # Get product from a catalog. # GET /v1/catalog/{catalog_name}/products/{id} #------------------------------------------------------------------------------ import os import json import requests from urlparse import urljoin from pprint im...
28
79
0.629568
155
1,204
4.741935
0.36129
0.089796
0.070748
0.054422
0.07619
0.07619
0
0
0
0
0
0.009506
0.126246
1,204
43
80
28
0.689164
0.373754
0
0
0
0
0.212366
0.067204
0
0
0
0
0
0
null
null
0
0.315789
null
null
0.210526
0
0
0
null
0
0
0
0
0
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
1
0
0
0
0
2
8e4caec47e3b45cf60343961b13fbd6d09ccd66d
7,131
py
Python
fabfile/testbeds/testbed_setup80.py
GaryGaryWU/contrail_fabric_util
70b944afe801593cd2664ae46e87363534085bcc
[ "Apache-2.0" ]
null
null
null
fabfile/testbeds/testbed_setup80.py
GaryGaryWU/contrail_fabric_util
70b944afe801593cd2664ae46e87363534085bcc
[ "Apache-2.0" ]
null
null
null
fabfile/testbeds/testbed_setup80.py
GaryGaryWU/contrail_fabric_util
70b944afe801593cd2664ae46e87363534085bcc
[ "Apache-2.0" ]
null
null
null
from fabric.api import env os_username = 'admin' os_password = 'contrail123' os_tenant_name = 'demo' host1 = 'root@10.84.21.1' host2 = 'root@10.84.21.2' host3 = 'root@10.84.21.3' host4 = 'root@10.84.21.4' host5 = 'root@10.84.21.5' host6 = 'root@10.84.21.6' host7 = 'root@10.84.21.7' host8 = 'root@10.84.21.8' h...
24.505155
92
0.618847
954
7,131
4.612159
0.257862
0.076364
0.145455
0.090909
0.206818
0.206818
0.206818
0.206818
0.206818
0.206818
0
0.312274
0.185388
7,131
290
93
24.589655
0.445171
0
0
0.042857
0
0
0.371477
0
0
0
0
0
0
1
0
false
0.007143
0.003571
0
0.003571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2