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
bdd488cdb99b091122d1e3231c619f005fe114de
1,395
py
Python
mamba/blockchain/gen_artifact/commands.py
ninhpham0902/akc-mamba
3454b8365d69a4c5f543f71760a495296fa0a5e8
[ "MIT" ]
7
2020-04-22T02:35:24.000Z
2022-01-16T17:14:01.000Z
mamba/blockchain/gen_artifact/commands.py
ninhpham0902/akc-mamba
3454b8365d69a4c5f543f71760a495296fa0a5e8
[ "MIT" ]
9
2020-04-07T09:11:08.000Z
2020-12-29T02:35:12.000Z
mamba/blockchain/gen_artifact/commands.py
ninhpham0902/akc-mamba
3454b8365d69a4c5f543f71760a495296fa0a5e8
[ "MIT" ]
7
2020-07-30T02:27:14.000Z
2022-02-13T09:58:55.000Z
import click import yaml import re from kubernetes import client from os import path from utils import hiss, util from settings import settings def generate_artifact(): domains = settings.ORDERER_DOMAINS.split(' ') # Create temp folder & namespace settings.k8s.prereqs(domains[0]) k8s_template_file =...
26.320755
110
0.719713
177
1,395
5.457627
0.333333
0.056936
0.046584
0.064182
0.151139
0.10352
0.10352
0
0
0
0
0.009532
0.17276
1,395
52
111
26.826923
0.827556
0.055197
0
0.057143
1
0
0.191457
0.040427
0
0
0
0
0
1
0.142857
false
0.028571
0.2
0
0.371429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bdd7d49767f54f4ff35ae2de8a4c1d22bcb29816
542
py
Python
tests/test_sample.py
OjusWiZard/judge0api
3cab275858f8d6d9fb969f3611b1a6be232aefdb
[ "MIT" ]
9
2019-05-05T17:08:43.000Z
2021-06-14T10:22:13.000Z
tests/test_sample.py
OjusWiZard/judge0api
3cab275858f8d6d9fb969f3611b1a6be232aefdb
[ "MIT" ]
5
2020-04-21T00:07:10.000Z
2021-10-02T05:53:42.000Z
tests/test_sample.py
OjusWiZard/judge0api
3cab275858f8d6d9fb969f3611b1a6be232aefdb
[ "MIT" ]
4
2020-02-25T04:49:20.000Z
2021-06-08T15:24:31.000Z
# Sample Test passing with nose and pytest def test_pass(): assert True, "dummy sample test" def test_homepage_example(): import judge0api as api import time client = api.Client("https://ce.judge0.com") client.wait = False submission = api.submission.submit( client, b"print(...
21.68
69
0.638376
68
542
5.029412
0.661765
0.05848
0
0
0
0
0
0
0
0
0
0.019512
0.243542
542
24
70
22.583333
0.814634
0.073801
0
0
0
0
0.166
0
0
0
0
0
0.117647
1
0.117647
false
0.058824
0.117647
0
0.235294
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
bdd8c379e076bd0275e1d30a7cb1076628b105da
1,848
py
Python
algorithms/Linked Lists/Doubly_LinkedList.py
admin-d/DS-Algos
14b5973a67d9ae8119f7f1c09f8fc129b474b3c9
[ "MIT" ]
null
null
null
algorithms/Linked Lists/Doubly_LinkedList.py
admin-d/DS-Algos
14b5973a67d9ae8119f7f1c09f8fc129b474b3c9
[ "MIT" ]
null
null
null
algorithms/Linked Lists/Doubly_LinkedList.py
admin-d/DS-Algos
14b5973a67d9ae8119f7f1c09f8fc129b474b3c9
[ "MIT" ]
null
null
null
# class node to store data and next class Node: def __init__(self,data, next=None, prev=None): self.data = data self.next = next self.prev = prev # defining getter and setter for data, next and prev def getData(self): return self.data def setData(self, data): self.data = data def...
19.659574
54
0.617424
239
1,848
4.740586
0.23431
0.056487
0.049426
0.045013
0.140335
0.068844
0.068844
0.068844
0.068844
0
0
0.008277
0.280844
1,848
94
55
19.659574
0.844244
0.122836
0
0.34375
0
0
0.005576
0
0
0
0
0
0
1
0.203125
false
0
0
0.0625
0.375
0.171875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
bddc0587c69607fb0fc955d08a070b1edf998bef
8,774
py
Python
WeylScal4NRPy/WeylScalarInvariants_Cartesian.py
fedelopezar/nrpytutorial
753acd954be4a2f99639c9f9fd5e623689fc7493
[ "BSD-2-Clause" ]
66
2018-06-26T22:18:09.000Z
2022-02-09T21:12:33.000Z
WeylScal4NRPy/WeylScalarInvariants_Cartesian.py
fedelopezar/nrpytutorial
753acd954be4a2f99639c9f9fd5e623689fc7493
[ "BSD-2-Clause" ]
14
2020-02-13T16:09:29.000Z
2021-11-12T14:59:59.000Z
WeylScal4NRPy/WeylScalarInvariants_Cartesian.py
fedelopezar/nrpytutorial
753acd954be4a2f99639c9f9fd5e623689fc7493
[ "BSD-2-Clause" ]
30
2019-01-09T09:57:51.000Z
2022-03-08T18:45:08.000Z
# This code calculates the invariant scalars I, J, J1, J2, J3, and J4. It does so by following the papers # arXiv:gr-qc/0407013 and arXiv:0704.1756, and the example set by the Kranc-generated ETK thorn which # can be found at https://bitbucket.org/einsteintoolkit/einsteinanalysis/src. While WeylScalarInvariants_Cartesi...
79.763636
123
0.596991
1,297
8,774
4.020046
0.158057
0.026467
0.018987
0.012275
0.233794
0.100115
0.100115
0.079785
0.042194
0.042194
0
0.158144
0.253362
8,774
109
124
80.495413
0.637765
0.218828
0
0.054054
1
0
0.015231
0
0
0
0
0
0
1
0.013514
false
0
0.027027
0
0.040541
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bddf746bb802f6c82edd930c493f952801a6786c
261
py
Python
webapp/app/urls.py
sparkiedimension/Neural-Style-Transfer
e34e863a236df692f12d7bf3d51e278308c02eea
[ "MIT" ]
null
null
null
webapp/app/urls.py
sparkiedimension/Neural-Style-Transfer
e34e863a236df692f12d7bf3d51e278308c02eea
[ "MIT" ]
null
null
null
webapp/app/urls.py
sparkiedimension/Neural-Style-Transfer
e34e863a236df692f12d7bf3d51e278308c02eea
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('logout/', views.auth_logout), path('login/', views.LoginView.as_view()), path('register/', views.RegisterView.as_view()), path('dashboard/', views.DashboardView.as_view()) ]
29
53
0.689655
32
261
5.5
0.53125
0.102273
0.113636
0
0
0
0
0
0
0
0
0
0.137931
261
9
54
29
0.782222
0
0
0
0
0
0.122137
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bde5a5d0781020b63080bc5f85f1fb81e996611b
8,038
py
Python
termsaverlib/common.py
GGF/termsaver
df406822a58a2aed40998c05a62d771bbd4d3ce2
[ "Apache-2.0" ]
null
null
null
termsaverlib/common.py
GGF/termsaver
df406822a58a2aed40998c05a62d771bbd4d3ce2
[ "Apache-2.0" ]
null
null
null
termsaverlib/common.py
GGF/termsaver
df406822a58a2aed40998c05a62d771bbd4d3ce2
[ "Apache-2.0" ]
null
null
null
############################################################################### # # file: common.py # # Purpose: holds common helper functions used by termsaver code. # # Note: This file is part of Termsaver application, and should not be used # or executed separately. # #############################...
29.018051
182
0.557228
949
8,038
4.648051
0.351949
0.027205
0.009975
0.018363
0.262299
0.240082
0.211063
0.211063
0.211063
0.202222
0
0.012339
0.294227
8,038
276
183
29.123188
0.765204
0.129012
0
0.30597
0
0
0.122385
0.020924
0
0
0
0
0
0
null
null
0.007463
0.052239
null
null
0.014925
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bded16368d6d285583eb0d2a282197c7707d78d1
5,413
py
Python
nextitrec_generate.py
qncsn2016/NINforExp
e3ca0373a64b73e44aeba4666beecdd126baf59f
[ "MIT" ]
null
null
null
nextitrec_generate.py
qncsn2016/NINforExp
e3ca0373a64b73e44aeba4666beecdd126baf59f
[ "MIT" ]
null
null
null
nextitrec_generate.py
qncsn2016/NINforExp
e3ca0373a64b73e44aeba4666beecdd126baf59f
[ "MIT" ]
null
null
null
import tensorflow as tf import data_loader_recsys import generator_recsys import utils import shutil import time import math import eval import numpy as np import argparse #check whether the files exists or not, "Data/Models/generation_model/model_nextitnet.ckpt" # if yes run this file directly, if not run nextitre...
37.331034
149
0.611676
765
5,413
4.045752
0.267974
0.029079
0.038449
0.011632
0.217448
0.112439
0.085299
0.041357
0.041357
0.022617
0
0.055104
0.272492
5,413
144
150
37.590278
0.730828
0.078699
0
0.018349
0
0.009174
0.148709
0.029257
0
0
0
0
0
0
null
null
0
0.091743
null
null
0.073395
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
bdfefffab12dee4bdc75108b96c1a49567c4d614
7,786
py
Python
src/oci/resource_manager/models/template_summary.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/resource_manager/models/template_summary.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/resource_manager/models/template_summary.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
28.944238
245
0.629592
904
7,786
5.222345
0.178097
0.045753
0.155687
0.074137
0.565346
0.456259
0.364965
0.291464
0.274094
0.274094
0
0.010999
0.299384
7,786
268
246
29.052239
0.854445
0.521577
0
0.0875
0
0
0.092124
0
0
0
0
0
0
1
0.225
false
0
0.025
0.025
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
da016abc6c3e2f0d03d7873a0ab1c5a38f8c2c92
2,355
py
Python
rcnn/modeling/mask_rcnn/maskiou/maskiou.py
AmorosTech/RP-R-CNN
45557a69ae9789e2662e3b937feb7624319a3e73
[ "MIT" ]
78
2020-08-10T11:25:23.000Z
2022-03-13T16:18:23.000Z
rcnn/modeling/mask_rcnn/maskiou/maskiou.py
AmorosTech/RP-R-CNN
45557a69ae9789e2662e3b937feb7624319a3e73
[ "MIT" ]
15
2020-08-11T04:18:29.000Z
2022-03-12T00:47:41.000Z
rcnn/modeling/mask_rcnn/maskiou/maskiou.py
AmorosTech/RP-R-CNN
45557a69ae9789e2662e3b937feb7624319a3e73
[ "MIT" ]
9
2020-11-06T03:15:34.000Z
2022-01-26T04:26:34.000Z
import torch from torch import nn from utils.data.structures.bounding_box import BoxList from rcnn.modeling.mask_rcnn.maskiou import heads from rcnn.modeling.mask_rcnn.maskiou import outputs from rcnn.modeling.mask_rcnn.maskiou.inference import maskiou_post_processor from rcnn.modeling.mask_rcnn.maskiou.loss import ma...
41.315789
120
0.695117
290
2,355
5.448276
0.310345
0.048734
0.050633
0.050633
0.125316
0.086076
0.046835
0
0
0
0
0.001092
0.222505
2,355
56
121
42.053571
0.861824
0.247558
0
0
0
0
0
0
0
0
0
0
0
1
0.121212
false
0
0.272727
0
0.575758
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
da08ec0cef84c8ce177ea818efbbd489c963283c
713
py
Python
scripts/lastactivity.py
FeodorM/vk-stuff
02842b9e35d7c71890a8c7e66f1422057b927f06
[ "MIT" ]
null
null
null
scripts/lastactivity.py
FeodorM/vk-stuff
02842b9e35d7c71890a8c7e66f1422057b927f06
[ "MIT" ]
null
null
null
scripts/lastactivity.py
FeodorM/vk-stuff
02842b9e35d7c71890a8c7e66f1422057b927f06
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import datetime # path to tools/ # you need this, if you want to execute this script from anywhere, otherwise comment next line sys.path.append('/home/satan/vk') from tools import * api = tools.create_api(MESSAGES) # TODO: make cool args for arg in sys.argv[1:]: if arg in dir...
23
96
0.645161
99
713
4.59596
0.616162
0.052747
0
0
0
0
0
0
0
0
0
0.00365
0.231417
713
30
97
23.766667
0.826642
0.210379
0
0
0
0
0.096601
0
0
0
0
0.033333
0
1
0
false
0
0.166667
0
0.166667
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
da12284fcd7bbe7aa67b88e976c9e3be03f36273
1,254
py
Python
jogo-sodoma-e-gomorra.py
vdonoladev/jogo-sodoma-e-gomorra
0006590922b4ffd0f16c1f61ff499b503b58a8f8
[ "MIT" ]
null
null
null
jogo-sodoma-e-gomorra.py
vdonoladev/jogo-sodoma-e-gomorra
0006590922b4ffd0f16c1f61ff499b503b58a8f8
[ "MIT" ]
null
null
null
jogo-sodoma-e-gomorra.py
vdonoladev/jogo-sodoma-e-gomorra
0006590922b4ffd0f16c1f61ff499b503b58a8f8
[ "MIT" ]
null
null
null
# Início do programa print("\n"*100) print("Neste jogo você deve convencer Deus a não destruir Sodoma e Gomorra.") print("No prompt 'Eu' Digite:") print("--> Senhor, e se houver xyz justos na cidade?") print("(Onde 'xyz' corresponde a um número entre 0 e 999)") print("BOA SORTE!!!") input("Tecle <ENTER> ") # Início d...
32.153846
89
0.610845
179
1,254
4.27933
0.530726
0.031332
0.035248
0.050914
0.181462
0.142298
0.142298
0.104439
0.104439
0.104439
0
0.03692
0.244019
1,254
38
90
33
0.771097
0.092504
0
0.3
0
0
0.479682
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
da19d3c2d0dbcb72ea90332fefbb2754006be9ee
572
py
Python
cozy/structures/arrays.py
izgzhen/cozy
fc57fdccdd52c5ecf4c4ae4e8b80af97e8119b77
[ "Apache-2.0" ]
null
null
null
cozy/structures/arrays.py
izgzhen/cozy
fc57fdccdd52c5ecf4c4ae4e8b80af97e8119b77
[ "Apache-2.0" ]
null
null
null
cozy/structures/arrays.py
izgzhen/cozy
fc57fdccdd52c5ecf4c4ae4e8b80af97e8119b77
[ "Apache-2.0" ]
null
null
null
from cozy.common import declare_case from cozy.syntax import Type, Exp, Stm TArray = declare_case(Type, "TArray", ["elem_type"]) EArrayCapacity = declare_case(Exp, "EArrayCapacity", ["e"]) EArrayLen = declare_case(Exp, "EArrayLen", ["e"]) EArrayGet = declare_case(Exp, "EArrayGet", ["a", "i"]) EArrayIndexOf = declare_c...
47.666667
73
0.715035
68
572
5.852941
0.367647
0.248744
0.140704
0
0
0
0
0
0
0
0
0
0.097902
572
11
74
52
0.771318
0
0
0
0
0
0.237762
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
da1f043f12111e3c49f97c1db6ab118932b6808e
692
py
Python
tests/test_index.py
grampajoe/pymosh
4982edb6b753cb4edecadd695d19a7a79f43d619
[ "MIT" ]
31
2015-01-01T16:25:38.000Z
2022-03-22T07:42:00.000Z
tests/test_index.py
grampajoe/pymosh
4982edb6b753cb4edecadd695d19a7a79f43d619
[ "MIT" ]
1
2016-01-13T13:17:56.000Z
2016-01-13T13:21:33.000Z
tests/test_index.py
grampajoe/pymosh
4982edb6b753cb4edecadd695d19a7a79f43d619
[ "MIT" ]
3
2015-01-29T22:40:53.000Z
2022-03-07T05:27:32.000Z
from pymosh import Index import io import unittest class FakeIndex(object): def __init__(self, contents): self._contents = contents def write(self, fh): fh.write(self._contents) class TestIndex(unittest.TestCase): """Tests for the Index class.""" def test_init(self): """Sh...
20.352941
66
0.618497
85
692
4.941176
0.447059
0.095238
0.047619
0.071429
0
0
0
0
0
0
0
0
0.267341
692
33
67
20.969697
0.828402
0.182081
0
0.111111
0
0
0.018182
0
0
0
0
0
0.111111
1
0.222222
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
da27b7a8d624238cbc92de594718117339bebecf
4,842
py
Python
tests/post_api_test.py
luke0922/mdpress
9ad485993c216cf36b798ec42d50e6116429d853
[ "Apache-2.0" ]
1
2016-08-10T06:42:51.000Z
2016-08-10T06:42:51.000Z
tests/post_api_test.py
luke0922/mdpress
9ad485993c216cf36b798ec42d50e6116429d853
[ "Apache-2.0" ]
2
2016-08-01T03:48:06.000Z
2016-08-27T02:59:21.000Z
tests/post_api_test.py
luke0922/mdpress
9ad485993c216cf36b798ec42d50e6116429d853
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 import json from unittest import TestCase import application.models as Models from application import create_app class PostApiTest(TestCase): def setUp(self): self.app = create_app('TESTING') self.ctx = self.app.app_context() self.ctx.push() ...
38.736
79
0.585708
587
4,842
4.667802
0.187394
0.072993
0.05219
0.037226
0.487956
0.382482
0.358759
0.34562
0.317153
0.274818
0
0.010318
0.259397
4,842
124
80
39.048387
0.753765
0.007435
0
0.279279
0
0
0.152165
0.01353
0
0
0
0
0.144144
0
null
null
0.018018
0.036036
null
null
0.045045
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
da28f04b68bfafa379c1b27680a0048904106e41
5,215
py
Python
pingChat.py
thepcn3rd/pingChat
4b1cc797a1e1c75c34e5a81b506d40566e71c6cb
[ "MIT" ]
1
2018-11-02T03:44:44.000Z
2018-11-02T03:44:44.000Z
pingChat.py
thepcn3rd/pingChat
4b1cc797a1e1c75c34e5a81b506d40566e71c6cb
[ "MIT" ]
null
null
null
pingChat.py
thepcn3rd/pingChat
4b1cc797a1e1c75c34e5a81b506d40566e71c6cb
[ "MIT" ]
1
2018-02-13T17:40:07.000Z
2018-02-13T17:40:07.000Z
#!/usr/bin/python import time import socket import struct import sys import array import threading listeningIP = "192.168.88.1" seqNumber = 1 # Sequence Number is Incremented every time a ping is sent... ICMP_ECHOREPLY = 0 # Echo reply (per RFC792) ICMP_ECHO = 8 # Echo request (per RFC792) ICMP_MAX_RECV = 2048 ...
34.766667
93
0.596165
613
5,215
5.014682
0.415987
0.019519
0.008458
0.012362
0.113208
0.093038
0.078725
0.078725
0.078725
0.078725
0
0.028375
0.303931
5,215
150
94
34.766667
0.818457
0.124449
0
0.221311
0
0
0.127955
0
0
0
0.006491
0
0
0
null
null
0.008197
0.057377
null
null
0.114754
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
da2fd1a2414c0691d1ad4049ae0c1b9f058adcbf
836
py
Python
ex039.py
gabrieleliasdev/python-cev
45390963b5112a982e673f6a6866da422bf9ae6d
[ "MIT" ]
null
null
null
ex039.py
gabrieleliasdev/python-cev
45390963b5112a982e673f6a6866da422bf9ae6d
[ "MIT" ]
null
null
null
ex039.py
gabrieleliasdev/python-cev
45390963b5112a982e673f6a6866da422bf9ae6d
[ "MIT" ]
null
null
null
"""039 - Faça um programa que leia o ano de nascimento de um jovem e informe, de acordo com sua idade: - Se ele ainda vai se alistar ao serviço militar. - Se é a hora de se alistar. - Se já passou do tempo do alistamento Seu programa também deverá mostrar o tempo que falta ou que passou do prazo.""" from datet...
26.967742
102
0.65311
150
836
3.64
0.566667
0.043956
0.029304
0.032967
0.054945
0.054945
0
0
0
0
0
0.020062
0.22488
836
30
103
27.866667
0.822531
0.351675
0
0
0
0
0.4375
0
0
0
0
0
0
1
0
false
0.058824
0.058824
0
0.058824
0.352941
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
da32e94663a4ebae8f7d4b3adc21e32835c0df05
8,941
py
Python
elections/2008/primary/states/fl/reader.py
markmcd/gmaps-samples
61b3f58eb1286a428843f8401048226b8648a76b
[ "Apache-2.0" ]
50
2015-08-17T05:07:41.000Z
2019-05-22T15:16:51.000Z
elections/2008/primary/states/fl/reader.py
markmcd/gmaps-samples
61b3f58eb1286a428843f8401048226b8648a76b
[ "Apache-2.0" ]
9
2015-08-04T01:48:30.000Z
2017-01-27T18:43:03.000Z
elections/2008/primary/states/fl/reader.py
markmcd/gmaps-samples
61b3f58eb1286a428843f8401048226b8648a76b
[ "Apache-2.0" ]
128
2015-08-04T22:50:17.000Z
2019-08-27T13:01:01.000Z
#!/usr/bin/env python # reader.py - vote reader for SC primary import private import re import urllib import csv candidates = { 'all': [], 'democrat': [ { 'name': 'biden', 'lastName': 'Biden', 'fullName': 'Joe Biden', 'color': '#20FF1F' }, { 'name': 'clinton', 'lastName': 'Clinton', 'fullName': 'Hillary Clinto...
33.996198
132
0.624091
990
8,941
5.618182
0.221212
0.021575
0.011866
0.012945
0.253866
0.216469
0.19849
0.167206
0.148508
0.143114
0
0.019655
0.16922
8,941
262
133
34.125954
0.729133
0.575103
0
0.024096
0
0
0.340784
0.016556
0
0
0
0
0
0
null
null
0
0.048193
null
null
0.024096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
da3340299eb4decc16b1d28b255401cddc66b41d
729
py
Python
resources/lib/gui.py
eudyptes-pachyrynchus/plugin.video.media-ccc-de
36f51726b6035b9beabdf8c1f4e8fae68820dc22
[ "CC-BY-2.0" ]
7
2018-12-11T22:39:02.000Z
2021-12-19T09:59:58.000Z
resources/lib/gui.py
eudyptes-pachyrynchus/plugin.video.media-ccc-de
36f51726b6035b9beabdf8c1f4e8fae68820dc22
[ "CC-BY-2.0" ]
15
2018-09-05T12:41:27.000Z
2021-12-29T17:06:15.000Z
resources/lib/gui.py
eudyptes-pachyrynchus/plugin.video.media-ccc-de
36f51726b6035b9beabdf8c1f4e8fae68820dc22
[ "CC-BY-2.0" ]
2
2019-11-15T18:36:36.000Z
2020-12-30T14:32:26.000Z
# coding: utf-8 from __future__ import print_function, division, absolute_import try: import xbmcgui except ImportError: import warnings warnings.warn('Not running under Kodi, GUI will not work!') xbmcgui = None class Fakexbmc(object): NOTIFICATION_ERROR = "ERR" NOTIFICATION_INFO = "INFO" ...
20.828571
75
0.679012
93
729
5.215054
0.516129
0.043299
0.045361
0.074227
0.123711
0
0
0
0
0
0
0.015517
0.20439
729
34
76
21.441176
0.82069
0.017833
0
0
0
0
0.093838
0
0
0
0
0
0
1
0.190476
false
0
0.190476
0
0.571429
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
da394b521f93698e44397de29383619ed0c6387f
290
py
Python
intermediary_v2/views/exams.py
uadson/drf-studies
ef88c1a2123a6503cb74cfa3dfe9477fc54d7463
[ "MIT" ]
null
null
null
intermediary_v2/views/exams.py
uadson/drf-studies
ef88c1a2123a6503cb74cfa3dfe9477fc54d7463
[ "MIT" ]
null
null
null
intermediary_v2/views/exams.py
uadson/drf-studies
ef88c1a2123a6503cb74cfa3dfe9477fc54d7463
[ "MIT" ]
null
null
null
from rest_framework import viewsets from basic.models.exam import Exam from basic.serializers import ExamSerializer """ API V2 """ class ExamViewSet(viewsets.ModelViewSet): """GET, PUT, UPDATE, DELETE """ queryset = Exam.objects.all() serializer_class = ExamSerializer
17.058824
44
0.731034
33
290
6.363636
0.69697
0.085714
0
0
0
0
0
0
0
0
0
0.004167
0.172414
290
16
45
18.125
0.870833
0.082759
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
da39dee0899ff76b9c89c9b7001253e79c5c01fc
958
py
Python
SPS-Variants/backup/top-k-overview/backup/preZhi/genData/1.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
related_projects/source_codes/top-k-overview/preZhi/genData/1.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
related_projects/source_codes/top-k-overview/preZhi/genData/1.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
import networkx as nx import sys if __name__ == '__main__': if len(sys.argv) < 3: print 'Usage: genData <graphType [SF, ER]> <nodeNum> <perIndegree>' sys.exit(1) nodeN = int (sys.argv[2]) inDeg = int (sys.argv[3]) gtype = str (sys.argv[1]) graph_name = gtype + str(nodeN) + '-' + st...
34.214286
86
0.577244
142
958
3.732394
0.43662
0.028302
0.030189
0.056604
0
0
0
0
0
0
0
0.035663
0.268267
958
27
87
35.481481
0.720399
0.077244
0
0.08
0
0
0.151927
0
0
0
0
0
0
0
null
null
0
0.08
null
null
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
da3fe0e4e6bad18914a709faeebd96098eea5017
3,604
py
Python
tests/test_basics.py
vfxetc/sgpublish
f6dcdb7d727ca78bc29ce76b91f13962628bfea1
[ "BSD-3-Clause" ]
3
2018-03-19T03:58:08.000Z
2020-09-30T17:47:16.000Z
tests/test_basics.py
vfxetc/sgpublish
f6dcdb7d727ca78bc29ce76b91f13962628bfea1
[ "BSD-3-Clause" ]
null
null
null
tests/test_basics.py
vfxetc/sgpublish
f6dcdb7d727ca78bc29ce76b91f13962628bfea1
[ "BSD-3-Clause" ]
2
2017-07-04T19:29:47.000Z
2019-07-19T01:15:43.000Z
from common import * class TestBasicPublisher(TestCase): def setUp(self): sg = Shotgun() self.sg = self.fix = fix = Fixture(sg) self.proj_name = 'Test Project ' + mini_uuid() proj = fix.Project(self.proj_name) seq = proj.Sequence('AA', project=pr...
37.936842
137
0.646504
442
3,604
5.113122
0.217195
0.042478
0.029204
0.076991
0.496903
0.460177
0.441593
0.413717
0.356637
0.356637
0
0.003938
0.225028
3,604
94
138
38.340426
0.805227
0.013041
0
0.237288
0
0
0.138232
0.018863
0
0
0
0
0.20339
0
null
null
0
0.016949
null
null
0.016949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
da49241b8abe4f4066d99d0db29dba03d2402e84
535
py
Python
camera.py
Bhavya16Verdia/ml_project
8d7f9a50298bc25be585b09831b30f550b436cbc
[ "Apache-2.0" ]
null
null
null
camera.py
Bhavya16Verdia/ml_project
8d7f9a50298bc25be585b09831b30f550b436cbc
[ "Apache-2.0" ]
null
null
null
camera.py
Bhavya16Verdia/ml_project
8d7f9a50298bc25be585b09831b30f550b436cbc
[ "Apache-2.0" ]
null
null
null
import cv2 import random cam=cv2.VideoCapture(0) while cam.isOpened(): print('camera is ready') status,frame=cam.read() bwimg=cv2.cvtColor(frame,cv2.COLOR_BGR2RGB) cv2.rectangle(frame,(200,100),(400,300),(0,0,255),2) cv2.putText(frame,'bhavya',(250,90),cv2.FONT_HERSHEY_SIMPLEX,1,(0,0,255),2) cv...
25.47619
79
0.659813
84
535
4.166667
0.619048
0.011429
0.028571
0.034286
0.051429
0
0
0
0
0
0
0.102174
0.140187
535
20
80
26.75
0.658696
0
0
0
0
0
0.08427
0
0
0
0.007491
0
0
0
null
null
0
0.111111
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
da5914b049ba4a84e8065569dd6fd9bdc2210a16
14,949
py
Python
lib/python3.8/site-packages/ansible_collections/community/general/tests/unit/plugins/modules/cloud/docker/test_docker_swarm_service.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
5
2020-12-16T21:42:09.000Z
2022-03-28T16:04:32.000Z
.ansible/collections/ansible_collections/community/general/tests/unit/plugins/modules/cloud/docker/test_docker_swarm_service.py
chronicc/proving-ground
3e392122a05fb8383a3700954baebb0df330e9e3
[ "MIT" ]
null
null
null
.ansible/collections/ansible_collections/community/general/tests/unit/plugins/modules/cloud/docker/test_docker_swarm_service.py
chronicc/proving-ground
3e392122a05fb8383a3700954baebb0df330e9e3
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import pytest class APIErrorMock(Exception): def __init__(self, message, response=None, explanation=None): self.message = message self.response = response self.explanation = explanation @pytest.fixtu...
29.254403
103
0.558499
1,696
14,949
4.64033
0.10908
0.124396
0.203558
0.109403
0.706989
0.681576
0.648539
0.618424
0.584371
0.520076
0
0.02852
0.289317
14,949
510
104
29.311765
0.712255
0.038932
0
0.470183
0
0
0.103722
0
0
0
0
0
0.169725
1
0.025229
false
0
0.006881
0
0.038991
0.002294
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
da5a25e0cfb6dfaf4befe428e1d55205acb37338
3,650
py
Python
client.py
b1naryth1ef/mmo
400f66b0ac76896af2d7108ff3540c42614a32f0
[ "BSD-2-Clause" ]
7
2015-09-29T13:32:36.000Z
2021-06-22T19:24:01.000Z
client.py
b1naryth1ef/mmo
400f66b0ac76896af2d7108ff3540c42614a32f0
[ "BSD-2-Clause" ]
null
null
null
client.py
b1naryth1ef/mmo
400f66b0ac76896af2d7108ff3540c42614a32f0
[ "BSD-2-Clause" ]
1
2019-03-03T23:24:28.000Z
2019-03-03T23:24:28.000Z
import socket, zlib, thread, json, time, collections from classes import User PROTOCOL_VERSION = 3 HOST = 'localhost' PORT = 1338 PREFIX = {'start':'\x02', 'end':'\r\n'} HOOKS = {} def Hook(hook): def deco(func): if hook not in HOOKS.keys(): HOOKS[hook] = func return func raise HookException('Hook %s alre...
25.347222
135
0.642466
539
3,650
4.272727
0.274583
0.01954
0.026053
0.023448
0.065132
0.033869
0.033869
0.033869
0.033869
0.033869
0
0.009309
0.17589
3,650
143
136
25.524476
0.756316
0.016712
0
0.084034
0
0
0.118205
0
0
0
0
0
0
0
null
null
0.016807
0.016807
null
null
0.042017
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
da61f539da4ee4cd502ad97a7be50cc564d2001b
5,611
py
Python
resources/libraries/python/Constants.py
preym17/csit
3151c98618c78e3782e48bbe4d9c8f906c126f69
[ "Apache-2.0" ]
null
null
null
resources/libraries/python/Constants.py
preym17/csit
3151c98618c78e3782e48bbe4d9c8f906c126f69
[ "Apache-2.0" ]
null
null
null
resources/libraries/python/Constants.py
preym17/csit
3151c98618c78e3782e48bbe4d9c8f906c126f69
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
34.423313
80
0.675815
730
5,611
5.080822
0.445205
0.032084
0.03505
0.039094
0.020491
0.020491
0
0
0
0
0
0.052921
0.222064
5,611
162
81
34.635802
0.796793
0.35466
0
0
0
0
0.538462
0.088476
0
0
0.002818
0.012346
0
1
0
false
0.013333
0
0
0.44
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
da68c01b4d46eb64145c90b8ec9f254b84bd9820
24,395
py
Python
scripts/run_system_test.py
sei-nmvanhoudnos/Juneberry
a4824bc74180134a9ef5326addbc83110177102c
[ "MIT" ]
null
null
null
scripts/run_system_test.py
sei-nmvanhoudnos/Juneberry
a4824bc74180134a9ef5326addbc83110177102c
[ "MIT" ]
null
null
null
scripts/run_system_test.py
sei-nmvanhoudnos/Juneberry
a4824bc74180134a9ef5326addbc83110177102c
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """ This could be done via pytest, but we really don't have a need for that level of detail right now. * Cleans the directory * Builds the model * Runs the test * Generates all other output * Compares against the reference output """ # ==========================================================...
38.722222
156
0.661652
3,233
24,395
4.8206
0.157748
0.024126
0.01001
0.010266
0.376131
0.314597
0.276227
0.261983
0.235226
0.193455
0
0.008689
0.231031
24,395
629
157
38.783784
0.822112
0.333511
0
0.310976
1
0.003049
0.237934
0.032283
0
0
0
0
0
1
0.07622
false
0.003049
0.02439
0
0.164634
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
da6c7bf69bb54078ba2cc153b6a46e0502d69c37
395
py
Python
shop/migrations/0018_remove_soldvehicles_photo.py
zahidkizmaz/VehicleShop
5a2dc5cc4eb4c4692db9f19108818069250a950a
[ "MIT" ]
10
2017-11-29T17:41:23.000Z
2020-01-13T14:45:18.000Z
shop/migrations/0018_remove_soldvehicles_photo.py
zahidkizmaz/VehicleShop
5a2dc5cc4eb4c4692db9f19108818069250a950a
[ "MIT" ]
1
2017-12-15T17:24:42.000Z
2017-12-17T00:05:54.000Z
shop/migrations/0018_remove_soldvehicles_photo.py
zahidkizmaz/VehicleShop
5a2dc5cc4eb4c4692db9f19108818069250a950a
[ "MIT" ]
2
2020-03-31T00:01:27.000Z
2022-01-02T05:45:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-18 10:55 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('shop', '0017_auto_20171217_2255'), ] operations = [ migrations.RemoveField( ...
19.75
48
0.61519
43
395
5.44186
0.837209
0
0
0
0
0
0
0
0
0
0
0.114187
0.268354
395
19
49
20.789474
0.695502
0.172152
0
0
1
0
0.135802
0.070988
0
0
0
0
0
1
0
false
0
0.166667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
da75de849357a257c6002ddd8c6b4da792b16c85
1,649
py
Python
fts/service/exceptions.py
senecaso/fasttext-serving
b49c6453bc381ea8327190857ee79242a312155f
[ "Apache-2.0", "MIT" ]
22
2020-02-07T10:24:53.000Z
2021-11-09T09:20:58.000Z
fts/service/exceptions.py
senecaso/fasttext-serving
b49c6453bc381ea8327190857ee79242a312155f
[ "Apache-2.0", "MIT" ]
4
2021-03-03T04:23:01.000Z
2022-01-07T13:39:09.000Z
fts/service/exceptions.py
senecaso/fasttext-serving
b49c6453bc381ea8327190857ee79242a312155f
[ "Apache-2.0", "MIT" ]
16
2020-02-07T14:30:23.000Z
2021-11-08T14:07:12.000Z
# Copyright 2020 Nielsen Global Connect. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
27.032787
74
0.693754
205
1,649
5.517073
0.57561
0.05305
0.022989
0.028294
0
0
0
0
0
0
0
0.007911
0.233475
1,649
60
75
27.483333
0.886867
0.4245
0
0.115385
0
0
0
0
0
0
0
0
0
1
0.076923
false
0.115385
0.115385
0
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
da8a30b4a7f7c53a4cdfb3b35d72018ff23a851d
534
py
Python
web/apps/web_copo/context_processors.py
rpatil524/COPO
cc54a6cfac61584cc97a17073d3837a5820a8b95
[ "MIT" ]
null
null
null
web/apps/web_copo/context_processors.py
rpatil524/COPO
cc54a6cfac61584cc97a17073d3837a5820a8b95
[ "MIT" ]
null
null
null
web/apps/web_copo/context_processors.py
rpatil524/COPO
cc54a6cfac61584cc97a17073d3837a5820a8b95
[ "MIT" ]
null
null
null
__author__ = 'felix.shaw@tgac.ac.uk - 27/05/15' from dal import Profile_Status_Info def get_status(request): # call method to obtain number of profiles which have outstanding issues issues = Profile_Status_Info().get_profiles_status() if issues['num_issues'] == 0: return {'num_issues': ''} els...
31.411765
111
0.724719
70
534
5.185714
0.6
0.099174
0.093664
0.143251
0
0
0
0
0
0
0
0.01559
0.159176
534
16
112
33.375
0.792873
0.131086
0
0
0
0
0.310195
0.140998
0
0
0
0
0
1
0.2
false
0
0.1
0.1
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
da8a41d90fda4cd63cf1999263d70a9f013b20c1
353
py
Python
codeforces/contests/610/3.py
harry-7/mycodes
442d84fab9dddde12fa0e68fd1a43f7bf13f849d
[ "MIT" ]
1
2016-11-10T13:21:57.000Z
2016-11-10T13:21:57.000Z
codeforces/contests/610/3.py
harry-7/mycodes
442d84fab9dddde12fa0e68fd1a43f7bf13f849d
[ "MIT" ]
null
null
null
codeforces/contests/610/3.py
harry-7/mycodes
442d84fab9dddde12fa0e68fd1a43f7bf13f849d
[ "MIT" ]
null
null
null
""" Author:harry7 """ def form(s): temp="" for i in s: if i=="+": temp+="*" else: temp+="+" return temp #from time import time #START=time() ans=["++","+*"] b=1 n=input() for b in range(1,n): temp=[] for i in ans: temp+=[i+i,i+form(i)] ans=temp if n==0: print "+" else: for i in ans: ...
11.03125
23
0.512748
61
353
2.967213
0.393443
0.066298
0.099448
0.110497
0
0
0
0
0
0
0
0.015209
0.254958
353
31
24
11.387097
0.673004
0.147309
0
0.190476
0
0
0.02952
0
0
0
0
0
0
0
null
null
0
0
null
null
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
da9411b97a0a2fc2dddda5f75cafe8260b659b24
2,607
py
Python
src/morphocut/vignetting.py
ammark100/morphocut
7a6df359bfdd1b41af1ed8c454dea7a950483a63
[ "MIT" ]
4
2020-02-09T07:52:29.000Z
2021-07-01T23:21:26.000Z
src/morphocut/vignetting.py
ammark100/morphocut
7a6df359bfdd1b41af1ed8c454dea7a950483a63
[ "MIT" ]
81
2019-06-28T19:38:44.000Z
2021-12-22T14:48:56.000Z
src/morphocut/vignetting.py
ammark100/morphocut
7a6df359bfdd1b41af1ed8c454dea7a950483a63
[ "MIT" ]
3
2019-09-11T19:14:31.000Z
2022-02-21T11:45:16.000Z
from typing import Any, List, Mapping import numpy as np from scipy.interpolate import LinearNDInterpolator from skimage.color import rgb2gray from skimage.filters import gaussian, threshold_otsu from skimage.morphology import binary_dilation, binary_erosion, dilation, disk from morphocut import Node, Output, RawOrVa...
28.966667
89
0.693517
331
2,607
5.314199
0.413897
0.035816
0.023877
0.017055
0
0
0
0
0
0
0
0.007426
0.225163
2,607
89
90
29.292135
0.863366
0.300345
0
0
0
0
0.003373
0
0
0
0
0.011236
0
1
0.069767
false
0
0.162791
0
0.302326
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
16f49ce2f8468cfdd54784ba155e7062bac54449
458
py
Python
bin/octavo-fetch-reviews.py
bethanym/data-apps-bookclub
ec7096622df72e8eb82d60b217334e5043982a2b
[ "MIT" ]
null
null
null
bin/octavo-fetch-reviews.py
bethanym/data-apps-bookclub
ec7096622df72e8eb82d60b217334e5043982a2b
[ "MIT" ]
null
null
null
bin/octavo-fetch-reviews.py
bethanym/data-apps-bookclub
ec7096622df72e8eb82d60b217334e5043982a2b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import yaml from optparse import OptionParser import octavo from octavo.goodreads import GoodReads CONFIGS = yaml.load(open("conf/octavo.yaml")) parser = OptionParser() parser.add_option("-u", "--user", dest="userid", help="id of user to fetch", default=CONFIGS['my_id']) (o...
24.105263
71
0.713974
63
458
5.095238
0.587302
0.037383
0
0
0
0
0
0
0
0
0
0
0.135371
458
19
72
24.105263
0.810606
0.043668
0
0
0
0
0.152968
0
0
0
0
0
0
1
0
false
0
0.363636
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
16f8d1648b1a09c9d5f4b64ed6e4129a16ff3f75
1,662
py
Python
centrality/centrality_generic.py
Zayat/blockchain-models-simulator
abfb643b1e11424e7874016399b05bdc359eecd4
[ "MIT" ]
3
2021-06-10T08:32:05.000Z
2021-06-11T08:06:27.000Z
centrality/centrality_generic.py
Zayat/blockchain-models-simulator
abfb643b1e11424e7874016399b05bdc359eecd4
[ "MIT" ]
null
null
null
centrality/centrality_generic.py
Zayat/blockchain-models-simulator
abfb643b1e11424e7874016399b05bdc359eecd4
[ "MIT" ]
null
null
null
''' closeness centrality evaluation for reference: https://networkx.github.io/documentation/networkx-1.10/reference/generated/networkx.algorithms.centrality.closeness_centrality.html ''' import sys #reload(sys) #sys.setdefaultencoding('utf8') import xlrd import networkx as nx import operator G = nx.Graph() ExcelFi...
33.24
131
0.670878
221
1,662
4.868778
0.420814
0.051115
0.069703
0.022305
0.031599
0
0
0
0
0
0
0.011992
0.096871
1,662
49
132
33.918367
0.704863
0.208183
0
0
1
0
0.078804
0
0
0
0
0
0
1
0
false
0
0.133333
0
0.133333
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
16fa16ee7ec222b47dbadc1197ac0721e49870c2
862
py
Python
app/models/scoreboard.py
Jiubei0408/jiudge-backend
c743274d76fdfe2be8b16b5bcf5a68c64fbc4272
[ "Apache-2.0" ]
null
null
null
app/models/scoreboard.py
Jiubei0408/jiudge-backend
c743274d76fdfe2be8b16b5bcf5a68c64fbc4272
[ "Apache-2.0" ]
1
2021-08-02T09:49:15.000Z
2021-08-02T09:57:27.000Z
app/models/scoreboard.py
Jiubei0408/jiudge-backend
c743274d76fdfe2be8b16b5bcf5a68c64fbc4272
[ "Apache-2.0" ]
null
null
null
import datetime from sqlalchemy import Column, Integer, DateTime, ForeignKey, UnicodeText, Boolean from app.models.base import Base, db from app.models.contest import Contest class Scoreboard(Base): __tablename__ = 'scoreboard' fields = ['contest_id', 'scoreboard_json', 'frozen', 'update_time'] contest...
29.724138
82
0.692575
103
862
5.621359
0.446602
0.108808
0.044905
0
0
0
0
0
0
0
0
0.001441
0.194896
862
28
83
30.785714
0.832853
0
0
0.095238
0
0
0.077726
0
0
0
0
0
0
1
0.095238
false
0
0.190476
0
0.761905
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
16fbc63e9e1a67bb5077a8978902723e45a72768
2,182
py
Python
caiguicheng/week03/day11/Apps/Apps/pipelines.py
cgc186/work
b4da417e8eeb13d81d44467bd46dca73126625df
[ "AFL-3.0" ]
null
null
null
caiguicheng/week03/day11/Apps/Apps/pipelines.py
cgc186/work
b4da417e8eeb13d81d44467bd46dca73126625df
[ "AFL-3.0" ]
null
null
null
caiguicheng/week03/day11/Apps/Apps/pipelines.py
cgc186/work
b4da417e8eeb13d81d44467bd46dca73126625df
[ "AFL-3.0" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html import pymysql from twisted.enterprise import adbapi MYSQL_HOST = 'localhost' MYSQL_PORT = '3306' MYSQL_DBNAME = 'fp' MYSQL...
33.060606
184
0.601742
230
2,182
5.565217
0.495652
0.015625
0.021094
0.025
0.008594
0.008594
0.008594
0.008594
0.008594
0.008594
0
0.003722
0.261228
2,182
65
185
33.569231
0.790323
0.200275
0
0
0
0.027027
0.235612
0.093525
0
0
0
0
0
1
0.135135
false
0.054054
0.054054
0
0.243243
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
16fd13be545e10ff6fc5020f999bae4aeb93e2fc
3,304
py
Python
whyis/importer/importer.py
aswallace/whyis
10a3e19f2a35e66618b323c5ec74dd60eeec9ab7
[ "Apache-2.0" ]
31
2018-05-30T02:41:23.000Z
2021-10-17T01:25:20.000Z
whyis/importer/importer.py
aswallace/whyis
10a3e19f2a35e66618b323c5ec74dd60eeec9ab7
[ "Apache-2.0" ]
115
2018-04-07T00:59:11.000Z
2022-03-02T03:06:45.000Z
whyis/importer/importer.py
aswallace/whyis
10a3e19f2a35e66618b323c5ec74dd60eeec9ab7
[ "Apache-2.0" ]
25
2018-04-07T00:49:55.000Z
2021-09-28T14:29:18.000Z
import requests import rdflib from whyis import nanopub import datetime import pytz import dateutil.parser from dateutil.tz import tzlocal from werkzeug.datastructures import FileStorage from werkzeug.http import http_date from setlr import FileLikeFromIter import re import os from requests_testadapter import Resp impo...
39.333333
118
0.653753
425
3,304
4.948235
0.28
0.042796
0.051355
0.062767
0.408464
0.328103
0.305278
0.262482
0.262482
0.240609
0
0.000402
0.246671
3,304
83
119
39.807229
0.844516
0.046005
0
0.15942
0
0
0.086804
0
0
0
0
0
0.130435
1
0.043478
false
0
0.304348
0
0.405797
0.057971
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e507371bc875de8aa4fb2c555ff29a309c9e8ee8
3,673
py
Python
Titanic DT.py
Prashant010197/Titanic
26d84773b7e492a0b37bc4c73cc9066873e75b44
[ "Apache-2.0" ]
null
null
null
Titanic DT.py
Prashant010197/Titanic
26d84773b7e492a0b37bc4c73cc9066873e75b44
[ "Apache-2.0" ]
null
null
null
Titanic DT.py
Prashant010197/Titanic
26d84773b7e492a0b37bc4c73cc9066873e75b44
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Oct 20 22:35:02 2020 @author: hp """ import pandas as pd import seaborn as sns import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split import pickle from sklearn.utils import resample from sklearn import tree fro...
29.620968
138
0.723115
533
3,673
4.797373
0.320826
0.02542
0.021119
0.035198
0.130622
0.068831
0.037544
0.021901
0
0
0
0.046379
0.142935
3,673
124
139
29.620968
0.765883
0.023686
0
0.027778
0
0
0.110118
0
0
0
0
0
0
1
0.013889
false
0.055556
0.263889
0
0.277778
0.069444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e50b2844535246843362abf1f528c9ab19a47a63
621
py
Python
connect/models/parameters.py
ht-albert/connect-python-sdk
15de3b9d641e25c058a4ebe4a3644c584b3e6dfa
[ "Apache-2.0" ]
null
null
null
connect/models/parameters.py
ht-albert/connect-python-sdk
15de3b9d641e25c058a4ebe4a3644c584b3e6dfa
[ "Apache-2.0" ]
null
null
null
connect/models/parameters.py
ht-albert/connect-python-sdk
15de3b9d641e25c058a4ebe4a3644c584b3e6dfa
[ "Apache-2.0" ]
null
null
null
from marshmallow import Schema, fields, post_load from .base import BaseObject, BaseScheme class ValueChoice(BaseObject): pass class ValueChoiceScheme(Schema): value = fields.Str() label = fields.Str() @post_load def make_object(self, data): return ValueChoice(**data) class Param(Bas...
18.818182
65
0.681159
72
621
5.777778
0.430556
0.129808
0.091346
0.081731
0.211538
0.211538
0.211538
0.211538
0.211538
0.211538
0
0
0.214171
621
32
66
19.40625
0.852459
0
0
0.380952
0
0
0
0
0
0
0
0
0
1
0.095238
false
0.095238
0.095238
0.095238
0.809524
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e50e12ec81c9c92be0d00aa6d64a73c269bda53e
322
py
Python
unittests/test_meminfo.py
eccles/lnxproc
392e75c506334d132cd3eb16cf3d732fdcdb3a3d
[ "MIT" ]
1
2021-11-19T04:37:56.000Z
2021-11-19T04:37:56.000Z
unittests/test_meminfo.py
eccles/lnxproc
392e75c506334d132cd3eb16cf3d732fdcdb3a3d
[ "MIT" ]
null
null
null
unittests/test_meminfo.py
eccles/lnxproc
392e75c506334d132cd3eb16cf3d732fdcdb3a3d
[ "MIT" ]
null
null
null
''' Test Meminfo() ''' from lnxproc import meminfo from .basetestcase import BaseTestCase class TestMeminfo(BaseTestCase): ''' Test Meminfo class ''' key = 'Meminfo' module = meminfo def test_loadavg(self): ''' Test normal instantiation ''' self.generic_test(...
14.636364
38
0.602484
30
322
6.4
0.533333
0.114583
0
0
0
0
0
0
0
0
0
0
0.291925
322
21
39
15.333333
0.842105
0.18323
0
0
0
0
0.032258
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e517dcfe5be86b7c3c47d3aaa130e7c524d193cf
294
py
Python
code/parse-manually.py
swcarpentry/web-data-python
20b1421f26237811f49739d579a9688d3ecd3e8f
[ "CC-BY-4.0" ]
10
2015-03-31T02:10:38.000Z
2019-11-07T11:28:04.000Z
code/parse-manually.py
dbreddyAI/web-data-python
20b1421f26237811f49739d579a9688d3ecd3e8f
[ "CC-BY-4.0" ]
5
2015-04-28T09:24:00.000Z
2015-06-02T01:36:16.000Z
code/parse-manually.py
dbreddyAI/web-data-python
20b1421f26237811f49739d579a9688d3ecd3e8f
[ "CC-BY-4.0" ]
16
2015-03-06T15:10:33.000Z
2019-11-07T11:28:05.000Z
input_data = '1901,12.3\n1902,45.6\n1903,78.9' print('input data is:') print(input_data) as_lines = input_data.split('\n') print('as lines:') print(as_lines) for line in as_lines: fields = line.split(',') year = int(fields[0]) value = float(fields[1]) print(year, ':', value)
21
46
0.646259
49
294
3.755102
0.55102
0.195652
0.152174
0
0
0
0
0
0
0
0
0.093117
0.159864
294
13
47
22.615385
0.651822
0
0
0
0
0
0.197279
0.105442
0
0
0
0
0
1
0
false
0
0
0
0
0.454545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
e51e355ccefea552543fbfe72056b5918355f0bc
373
py
Python
tests/utils_test.py
AndGem/OsmToRoadGraph
e025ebb39a1462fa1c0b4d8163dcc251eb861aa6
[ "MIT" ]
31
2017-03-21T20:32:51.000Z
2022-03-08T09:08:40.000Z
tests/utils_test.py
AndGem/OsmToRoadGraph
e025ebb39a1462fa1c0b4d8163dcc251eb861aa6
[ "MIT" ]
73
2017-02-12T21:36:52.000Z
2022-01-09T16:54:55.000Z
tests/utils_test.py
AndGem/OsmToRoadGraph
e025ebb39a1462fa1c0b4d8163dcc251eb861aa6
[ "MIT" ]
7
2018-03-12T03:11:41.000Z
2022-03-24T02:34:37.000Z
# Automatically generated by Pynguin. import pytest import utils.geo_tools as module0 import unittest class IntegrationTest(unittest.TestCase): def test_case_0(self): var0 = 180.0 var1 = 2118.01088 var2 = 100.0 var3 = module0.distance(var0, var1, var2, var1) assert var3 == ...
26.642857
75
0.680965
51
373
4.921569
0.705882
0.023904
0
0
0
0
0
0
0
0
0
0.176471
0.225201
373
13
76
28.692308
0.692042
0.093834
0
0
1
0
0
0
0
0
0
0
0.1
1
0.1
false
0
0.3
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e523a564c59104b83e54f3a47ca05a4b0f27dcc5
478
py
Python
tests/services/wbes/test_wbesService.py
nagasudhirpulla/wrldc_guj_atc_calc
1f5bf146bd21057cbe3b9b58f1508e9bd0c102c2
[ "MIT" ]
null
null
null
tests/services/wbes/test_wbesService.py
nagasudhirpulla/wrldc_guj_atc_calc
1f5bf146bd21057cbe3b9b58f1508e9bd0c102c2
[ "MIT" ]
null
null
null
tests/services/wbes/test_wbesService.py
nagasudhirpulla/wrldc_guj_atc_calc
1f5bf146bd21057cbe3b9b58f1508e9bd0c102c2
[ "MIT" ]
null
null
null
import datetime as dt import unittest from src.config.appConfig import loadAppConfig from src.services.wbes.wbesService import fetchIsgsGenFullSch class TestWbesService(unittest.TestCase): def test_run(self) -> None: appConf = loadAppConfig() genId = appConf["sellerId"] targetDt = dt.date...
29.875
61
0.709205
52
478
6.5
0.653846
0.04142
0
0
0
0
0
0
0
0
0
0.002604
0.196653
478
15
62
31.866667
0.877604
0
0
0
0
0
0.016736
0
0
0
0
0
0.166667
1
0.083333
false
0
0.333333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e5289840b8742a5cbfe83d16898bad39cc6b0acb
1,167
py
Python
snpeff_4_0.py
meissnert/StarCluster-Plugins
a84dc5f62b5a37e7843c0fb4ac69011ecd766e51
[ "MIT" ]
1
2016-05-27T19:58:53.000Z
2016-05-27T19:58:53.000Z
snpeff_4_0.py
meissnert/StarCluster-Plugins
a84dc5f62b5a37e7843c0fb4ac69011ecd766e51
[ "MIT" ]
null
null
null
snpeff_4_0.py
meissnert/StarCluster-Plugins
a84dc5f62b5a37e7843c0fb4ac69011ecd766e51
[ "MIT" ]
null
null
null
from starcluster.clustersetup import ClusterSetup from starcluster.logger import log class SnpEffInstaller(ClusterSetup): def run(self, nodes, master, user, user_shell, volumes): for node in nodes: log.info("Installing SnpEff and SnpSift 4.0 on %s" % (node.alias)) node.ssh.execute('mkdir -p /opt/software/snpe...
61.421053
120
0.739503
181
1,167
4.729282
0.359116
0.021028
0.147196
0.15771
0.505841
0.370327
0.331776
0.290888
0.290888
0.290888
0
0.020833
0.095116
1,167
18
121
64.833333
0.789773
0
0
0
0
0.3125
0.598115
0.362468
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e528a5b51f6de839ebe97ec0633de1a15b0a23f1
17,643
py
Python
_build/jupyter_execute/tutorials/bem-tutorial-1.py
stefano-tronci/ca-knowledgebase
52a56f5b16e6b8376d88ba2f1a0386e99ed4d158
[ "BSD-3-Clause" ]
5
2021-10-05T09:08:44.000Z
2022-02-11T13:12:18.000Z
_build/jupyter_execute/tutorials/bem-tutorial-1.py
stefano-tronci/ca-knowledgebase
52a56f5b16e6b8376d88ba2f1a0386e99ed4d158
[ "BSD-3-Clause" ]
1
2021-10-05T11:25:01.000Z
2021-10-06T16:11:57.000Z
_build/jupyter_execute/tutorials/bem-tutorial-1.py
agully1/ca-knowledgebase
d593074ef76961309f26f52c44f83a173814db28
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # The Boundary Element Method (BEM) # # # You can run this code directly in your browser by clicking on the rocket logo ( <i class="fas fa-rocket"></i> ) at the top of the page, and clicking 'Binder'. This will open a Jupyter Notebook in a [Binder](https://mybinder.org/) envir...
56.367412
599
0.716715
3,040
17,643
4.129934
0.234868
0.002389
0.002628
0.01362
0.134687
0.09996
0.076145
0.059896
0.040064
0.035046
0
0.011725
0.153999
17,643
312
600
56.548077
0.829358
0.865272
0
0.098039
0
0
0.067765
0
0
0
0
0
0
1
0.019608
false
0
0.058824
0
0.098039
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e533481d3b2d835a78d61f51f1d8682d07c49c78
1,997
py
Python
komax_app/migrations/0015_auto_20200329_2156.py
UsernameForGerman/PrettlNKKomax
8684300852458ab99988a63e49db47d53ff7ddc4
[ "Apache-2.0" ]
null
null
null
komax_app/migrations/0015_auto_20200329_2156.py
UsernameForGerman/PrettlNKKomax
8684300852458ab99988a63e49db47d53ff7ddc4
[ "Apache-2.0" ]
9
2021-03-19T14:08:01.000Z
2022-03-12T00:41:09.000Z
komax_app/migrations/0015_auto_20200329_2156.py
UsernameForGerman/PrettlNKKomax
8684300852458ab99988a63e49db47d53ff7ddc4
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.7 on 2020-03-29 21:56 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('komax_app', '0014_auto_2...
39.156863
171
0.607912
200
1,997
5.93
0.395
0.040472
0.059022
0.092749
0.391231
0.391231
0.311973
0.311973
0.279089
0.279089
0
0.022252
0.257386
1,997
50
172
39.94
0.777478
0.022534
0
0.431818
1
0
0.145128
0.011795
0
0
0
0
0
1
0
false
0
0.068182
0
0.136364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5346fcf8a6c3b4a8c89c25dce472cb2218149f4
1,323
py
Python
data/tools/courses_data_loader.py
Team-Diamond-Dogs/project-ddog
da6ce41dfb7438782f6997403ab7767209c96001
[ "MIT" ]
2
2021-12-17T00:09:38.000Z
2021-12-18T20:22:57.000Z
data/tools/courses_data_loader.py
Team-Diamond-Dogs/project-ddog
da6ce41dfb7438782f6997403ab7767209c96001
[ "MIT" ]
null
null
null
data/tools/courses_data_loader.py
Team-Diamond-Dogs/project-ddog
da6ce41dfb7438782f6997403ab7767209c96001
[ "MIT" ]
1
2021-12-17T00:09:44.000Z
2021-12-17T00:09:44.000Z
""" Script that loads courses recommended for each concept in the tags table from the database. """ import os import pandas as pd import requests from sqlalchemy import create_engine from sqlalchemy.sql.expression import text from dotenv import load_dotenv def get_database_engine(): db_user = os.getenv("MYSQL_US...
28.148936
122
0.646259
180
1,323
4.511111
0.427778
0.049261
0.080049
0.046798
0
0
0
0
0
0
0
0.000989
0.235828
1,323
47
123
28.148936
0.802176
0.068783
0
0
0
0
0.18449
0.056327
0
0
0
0
0
1
0.088235
false
0.058824
0.176471
0
0.352941
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e53792e2e832cd38e9c4a7ddd074a3df8dcedccc
2,557
py
Python
comp_vis/data_tools.py
klingj3/RCOS-Microfossil-Sorter
26b5906913dda60b4c9c0de10eee201d3512befd
[ "MIT" ]
3
2018-12-11T21:30:59.000Z
2020-11-01T07:54:51.000Z
comp_vis/data_tools.py
klingj3/RCOS-Microfossil-Sorter
26b5906913dda60b4c9c0de10eee201d3512befd
[ "MIT" ]
16
2018-01-30T21:42:41.000Z
2018-01-30T21:51:31.000Z
comp_vis/data_tools.py
klingj3/RCOS-Microfossil-Sorter
26b5906913dda60b4c9c0de10eee201d3512befd
[ "MIT" ]
1
2019-01-22T21:44:10.000Z
2019-01-22T21:44:10.000Z
# A collection of common functions used in the creation and manipulation of the data for this project. from approaches.approach import Multiclass_Logistic_Regression, Perceptron, Sklearn_SVM import comp_vis.img_tools as it import numpy as np import sys def images_to_data(images, label, already_cropped=True): '''...
37.602941
145
0.701212
363
2,557
4.787879
0.366391
0.055236
0.010357
0.028769
0
0
0
0
0
0
0
0.004498
0.217442
2,557
67
146
38.164179
0.864068
0.35393
0
0.058824
0
0
0.093571
0
0
0
0
0.014925
0
1
0.088235
false
0
0.117647
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e53f83e624b1bf5cc0f05e0a389c1d23cae72f3d
1,730
py
Python
universaldatatool/nb/CollaborativeSession.py
bribroder/python-universaldatatool
343b3c0f137bf94a99941c299f25dac16680afcc
[ "MIT" ]
4
2020-04-30T22:15:43.000Z
2021-01-16T15:48:35.000Z
universaldatatool/nb/CollaborativeSession.py
bribroder/python-universaldatatool
343b3c0f137bf94a99941c299f25dac16680afcc
[ "MIT" ]
6
2020-06-22T13:26:32.000Z
2020-08-08T23:59:01.000Z
universaldatatool/nb/CollaborativeSession.py
bribroder/python-universaldatatool
343b3c0f137bf94a99941c299f25dac16680afcc
[ "MIT" ]
5
2020-05-25T04:39:41.000Z
2021-08-11T23:59:26.000Z
import requests import json import random import string import posixpath from urllib.parse import urljoin # TODO this should be configurable collaborative_session_server = "https://udt-collaboration-server.now.sh" class CollaborativeSession(object): def __init__(self): self.running = False def start...
31.454545
85
0.646821
196
1,730
5.530612
0.408163
0.129151
0.071956
0.0369
0.119926
0.077491
0
0
0
0
0
0
0.258382
1,730
54
86
32.037037
0.844895
0.062428
0
0.097561
0
0
0.125386
0
0
0
0
0.018519
0
1
0.121951
false
0
0.146341
0
0.317073
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
e540a558c6ee9df5940a10f294af91a5691def47
2,470
py
Python
11/11.py
PaeP3nguin/advent-of-code-2017
fb6b42437016f905df156cb6e8f02047ca2e86ae
[ "MIT" ]
null
null
null
11/11.py
PaeP3nguin/advent-of-code-2017
fb6b42437016f905df156cb6e8f02047ca2e86ae
[ "MIT" ]
null
null
null
11/11.py
PaeP3nguin/advent-of-code-2017
fb6b42437016f905df156cb6e8f02047ca2e86ae
[ "MIT" ]
null
null
null
#!python3 from collections import Counter def main(): with open('11.txt', 'r') as f, open('11_out.txt', 'w') as f_out: line = f.readline().strip() steps = line.split(',') directions = ['n', 'ne', 'se', 's', 'sw', 'nw'] # Part 1 step_counts = Counter(steps) pairs =...
34.305556
81
0.468421
281
2,470
3.932384
0.234875
0.253394
0.117647
0.076923
0.509502
0.509502
0.457014
0.453394
0.41991
0.41991
0
0.017373
0.417409
2,470
71
82
34.788732
0.750521
0.008907
0
0.508475
0
0
0.019223
0
0
0
0
0
0
1
0.016949
false
0
0.016949
0
0.033898
0.067797
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e55052cc7f90334db88df62ffd696762153b718c
525
py
Python
loader.py
DavidRomanovizc/weatherbot
ed4c2ae1b3b33a0e7438472e01158ead6e1f062e
[ "Apache-2.0" ]
1
2021-08-12T17:53:30.000Z
2021-08-12T17:53:30.000Z
loader.py
DavidRomanovizc/weatherbot
ed4c2ae1b3b33a0e7438472e01158ead6e1f062e
[ "Apache-2.0" ]
null
null
null
loader.py
DavidRomanovizc/weatherbot
ed4c2ae1b3b33a0e7438472e01158ead6e1f062e
[ "Apache-2.0" ]
null
null
null
from aiogram import Bot, Dispatcher, types from aiogram.contrib.fsm_storage.memory import MemoryStorage from data import config from middlewares.language_middleware import setup_middleware from utils.db_api.Database import DBCommands bot = Bot(token=config.BOT_TOKEN, parse_mode=types.ParseMode.HTML) storage = MemoryS...
35
66
0.824762
70
525
6.071429
0.542857
0.051765
0
0
0
0
0
0
0
0
0
0.012821
0.108571
525
15
67
35
0.895299
0.173333
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.454545
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e55a88465d0b9d5f9afd2d55a4ff7035cfac86f3
3,793
py
Python
mojo/devtools/common/devtoolslib/benchmark.py
zbowling/mojo
4d2ed40dc2390ca98a6fea0580e840535878f11c
[ "BSD-3-Clause" ]
1
2020-04-28T14:35:10.000Z
2020-04-28T14:35:10.000Z
mojo/devtools/common/devtoolslib/benchmark.py
zbowling/mojo
4d2ed40dc2390ca98a6fea0580e840535878f11c
[ "BSD-3-Clause" ]
null
null
null
mojo/devtools/common/devtoolslib/benchmark.py
zbowling/mojo
4d2ed40dc2390ca98a6fea0580e840535878f11c
[ "BSD-3-Clause" ]
1
2020-04-28T14:35:11.000Z
2020-04-28T14:35:11.000Z
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Logic that drives runs of the benchmarking mojo app and parses its output.""" import os.path import re _BENCHMARK_APP = 'https://core.mojoapps.io/benchm...
33.27193
80
0.713947
500
3,793
5.222
0.334
0.0383
0.036385
0.01532
0.02298
0
0
0
0
0
0
0.002618
0.194305
3,793
113
81
33.566372
0.851767
0.146849
0
0.056338
0
0
0.134399
0.009444
0
0
0
0
0
0
null
null
0.014085
0.028169
null
null
0.014085
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e55d3d5ec755a54eeb51191d57985595d8bdd4e0
2,611
py
Python
utest/searchtests/test_testsorter.py
hoteltianya/RIDE
dcdccfec631517743d24c8e31fc6687fd29338a0
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-11T12:55:29.000Z
2020-04-11T12:55:29.000Z
utest/searchtests/test_testsorter.py
hoteltianya/RIDE
dcdccfec631517743d24c8e31fc6687fd29338a0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
utest/searchtests/test_testsorter.py
hoteltianya/RIDE
dcdccfec631517743d24c8e31fc6687fd29338a0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import unittest from searchtests.test_matcher import _TestSearchTest class TestTestSorter(_TestSearchTest, unittest.TestCase): def test_exact_match_is_better_than_partial(self): values = ['aexact', 'exact', 'exact jotain', 'exact_foo', 'jotain exact', 'zexact'] self._matches_in_...
42.112903
74
0.675603
372
2,611
4.30914
0.158602
0.089832
0.084217
0.094822
0.474111
0.327511
0.281971
0.22957
0.111042
0.066126
0
0.002883
0.202987
2,611
61
75
42.803279
0.76742
0
0
0.125
0
0
0.092302
0
0
0
0
0
0.25
1
0.229167
false
0
0.041667
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e562c140f7974adb46e0572375f806bb01789f63
8,298
py
Python
fusion/frame_loader.py
shubhMaheshwari/NeuralTracking
c47c2e0b0f1a654e3e53fabaa898b3b8a2649381
[ "MIT" ]
1
2022-02-18T07:11:18.000Z
2022-02-18T07:11:18.000Z
fusion/frame_loader.py
shubhMaheshwari/NeuralTracking
c47c2e0b0f1a654e3e53fabaa898b3b8a2649381
[ "MIT" ]
5
2022-03-08T07:00:12.000Z
2022-03-08T07:07:29.000Z
fusion/frame_loader.py
shubhMaheshwari/NeuralTracking
c47c2e0b0f1a654e3e53fabaa898b3b8a2649381
[ "MIT" ]
null
null
null
# The code in this contains methods to load data and generate deformable graph for Fusion Experiments # Library imports import os import json import numpy as np from scipy.io import loadmat # Modules from model import dataset import options as opt from utils import image_proc # Modules for Fusion from create_grap...
43.445026
163
0.734153
1,221
8,298
4.706798
0.19656
0.028189
0.041761
0.034105
0.306943
0.255264
0.216635
0.134679
0.080042
0.057769
0
0.005795
0.147385
8,298
191
164
43.445026
0.806502
0.163413
0
0.051852
1
0
0.13839
0.025478
0
0
0
0
0
1
0.059259
false
0
0.059259
0.014815
0.177778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e562c367920576d8af71a5c61c5102b0ccc23d1d
850
py
Python
setup_project.py
yoyoberenguer/SoundEffectLibrary
4e34cc42d9451d65ea2a95a7ca8d4d5c235331b8
[ "MIT" ]
4
2021-04-10T14:43:23.000Z
2021-08-24T23:06:04.000Z
setup_project.py
yoyoberenguer/SoundEffectLibrary
4e34cc42d9451d65ea2a95a7ca8d4d5c235331b8
[ "MIT" ]
null
null
null
setup_project.py
yoyoberenguer/SoundEffectLibrary
4e34cc42d9451d65ea2a95a7ca8d4d5c235331b8
[ "MIT" ]
null
null
null
# encoding: utf-8 # USE : # python setup_project.py build_ext --inplace # from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext import numpy import warnings warnings.filterwarnings("ignore", category=DeprecationWarning) warnings.filterwarnings("ign...
28.333333
98
0.665882
86
850
6.406977
0.430233
0.058076
0.076225
0.103448
0.157895
0.157895
0
0
0
0
0
0.001477
0.203529
850
29
99
29.310345
0.812408
0.338824
0
0
0
0
0.128352
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e563ae01af7921ab786ed75666eb28618a545452
586
py
Python
reference.py
jianwang0212/napoli_gang
379b29f7b44bad352fe2d1c23dff4867fae34a29
[ "MIT" ]
1
2021-01-02T18:06:29.000Z
2021-01-02T18:06:29.000Z
reference.py
jianwang0212/napoli_gang
379b29f7b44bad352fe2d1c23dff4867fae34a29
[ "MIT" ]
null
null
null
reference.py
jianwang0212/napoli_gang
379b29f7b44bad352fe2d1c23dff4867fae34a29
[ "MIT" ]
null
null
null
reference hitbtc_markets = hitbtc.load_markets() print(hitbtc.id, hitbtc_markets) print(bitmex.id, bitmex.load_markets()) print(huobipro.id, huobipro.load_markets()) print(hitbtc.fetch_order_book(hitbtc.symbols[0])) print(bitmex.fetch_ticker('BTC/USD')) print(huobipro.fetch_trades('LTC/USDT')) print(exmo.fetch_bala...
29.3
75
0.764505
98
586
4.438776
0.459184
0.110345
0.110345
0.101149
0.096552
0
0
0
0
0
0
0.026365
0.093857
586
19
76
30.842105
0.787194
0.213311
0
0
0
0
0.063319
0
0
0
0
0
0
1
0
false
0
0
0
0
0.818182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
e5643462f481657ccb2122aa27452a1c59d212b1
2,577
py
Python
eutester/testcases/admin/create_user.py
nephomaniac/eutester
cc71456dd37930096cb8d0a6cac8b42fc8479543
[ "BSD-2-Clause" ]
null
null
null
eutester/testcases/admin/create_user.py
nephomaniac/eutester
cc71456dd37930096cb8d0a6cac8b42fc8479543
[ "BSD-2-Clause" ]
null
null
null
eutester/testcases/admin/create_user.py
nephomaniac/eutester
cc71456dd37930096cb8d0a6cac8b42fc8479543
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python from eutester.euca.euca_ops import Eucaops from eutester.utils.eutestcase import EutesterTestCase class CreateUser(EutesterTestCase): def __init__(self): self.setuptestcase() self.setup_parser() self.parser.add_argument("--account-number",default=1) self.parser.a...
39.045455
117
0.646876
316
2,577
5.041139
0.322785
0.045198
0.048964
0.079096
0.146893
0.080352
0.040176
0
0
0
0
0.001016
0.236321
2,577
65
118
39.646154
0.808435
0.11331
0
0
0
0
0.144256
0
0
0
0
0
0
1
0.066667
false
0.088889
0.044444
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e57b459309d72e6807eb6274723ae74b3d864c1a
1,816
py
Python
third_party/nltk/tokenize/util.py
altaha/ArgoJsonRDBMS
93640b8b832eed854fc8e77dcdd3459c1304955e
[ "Apache-2.0" ]
null
null
null
third_party/nltk/tokenize/util.py
altaha/ArgoJsonRDBMS
93640b8b832eed854fc8e77dcdd3459c1304955e
[ "Apache-2.0" ]
null
null
null
third_party/nltk/tokenize/util.py
altaha/ArgoJsonRDBMS
93640b8b832eed854fc8e77dcdd3459c1304955e
[ "Apache-2.0" ]
null
null
null
# Natural Language Toolkit: Simple Tokenizers # # Copyright (C) 2001-2011 NLTK Project # Author: Steven Bird <sb@csse.unimelb.edu.au> # URL: <http://nltk.sourceforge.net> # For license information, see LICENSE.TXT from re import finditer def string_span_tokenize(s, sep): """ Identify the tokens in the string,...
27.104478
62
0.589758
261
1,816
4.08046
0.340996
0.022535
0.026291
0.030047
0.367136
0.367136
0.325822
0.325822
0.307981
0.285446
0
0.01112
0.306718
1,816
66
63
27.515152
0.83479
0.110683
0
0.285714
0
0
0.041353
0
0
0
0
0
0
0
null
null
0
0.035714
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e57cea4e55f700af5827ff019a727608dc0b038b
2,567
py
Python
saleor/salepoints/views.py
glosoftgroup/restaurant
5b10a8f5199103e5bee01b45952c9638e63f28af
[ "BSD-3-Clause" ]
1
2018-05-03T06:17:02.000Z
2018-05-03T06:17:02.000Z
saleor/salepoints/views.py
glosoftgroup/restaurant
5b10a8f5199103e5bee01b45952c9638e63f28af
[ "BSD-3-Clause" ]
8
2018-05-07T16:42:35.000Z
2022-02-26T03:31:56.000Z
saleor/salepoints/views.py
glosoftgroup/tenants
a6b229ad1f6d567b7078f83425a532830b71e1bb
[ "BSD-3-Clause" ]
null
null
null
from django.http import HttpResponse from django.template.response import TemplateResponse from saleor.dashboard.views import staff_member_required from django.core.paginator import Paginator, EmptyPage, InvalidPage, PageNotAnInteger from django.shortcuts import get_object_or_404 from .models import SalePoint import lo...
31.691358
95
0.670043
297
2,567
5.659933
0.259259
0.074955
0.056514
0.05235
0.352171
0.321237
0.292683
0.149911
0.069007
0.069007
0
0.007074
0.229061
2,567
80
96
32.0875
0.842345
0
0
0.397059
0
0
0.100585
0.012476
0
0
0
0
0
0
null
null
0
0.102941
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e57edbfa4fc87c4a34a489e2c3fdbd8702a22696
952
py
Python
Streamlit/streamlit_app/member.py
Nathaliegar/Soutenance_Co2Py
b7bb75e7c3fc9832d2a06ab641628333681fdf3b
[ "MIT" ]
null
null
null
Streamlit/streamlit_app/member.py
Nathaliegar/Soutenance_Co2Py
b7bb75e7c3fc9832d2a06ab641628333681fdf3b
[ "MIT" ]
null
null
null
Streamlit/streamlit_app/member.py
Nathaliegar/Soutenance_Co2Py
b7bb75e7c3fc9832d2a06ab641628333681fdf3b
[ "MIT" ]
null
null
null
class Member: def __init__( self, name: str, linkedin_url: str = None, github_url: str = None ) -> None: self.name = name self.linkedin_url = linkedin_url self.github_url = github_url def sidebar_markdown(self): markdown = f'<b style="display: inline-block; vertical...
47.6
243
0.65021
137
952
4.394161
0.394161
0.091362
0.074751
0.039867
0.435216
0.435216
0.435216
0.435216
0.30897
0.209302
0
0.016905
0.192227
952
19
244
50.105263
0.76593
0
0
0
0
0.214286
0.531513
0.116597
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5852c43a9099a038c351c130269634c7d85214a
2,395
py
Python
tools/seahub-admin.py
MJochim/seahub
66fcc6772511d43346a2980613576c5fdb4c4945
[ "Apache-2.0" ]
420
2015-01-03T11:34:46.000Z
2022-03-10T07:15:41.000Z
tools/seahub-admin.py
MJochim/seahub
66fcc6772511d43346a2980613576c5fdb4c4945
[ "Apache-2.0" ]
735
2015-01-04T21:22:51.000Z
2022-03-31T09:26:07.000Z
tools/seahub-admin.py
MJochim/seahub
66fcc6772511d43346a2980613576c5fdb4c4945
[ "Apache-2.0" ]
379
2015-01-05T17:08:03.000Z
2022-03-06T00:11:50.000Z
#!/usr/bin/env python # encoding: utf-8 # Copyright (c) 2012-2016 Seafile Ltd. import sqlite3 import os import sys import time import hashlib import getpass # Get .ccnet directory from argument or user input if len(sys.argv) >= 2: ccnet_dir = sys.argv[1] else: home_dir = os.path.join(os.path.expanduser('~...
26.032609
151
0.629645
349
2,395
4.260745
0.358166
0.032952
0.0269
0.04035
0.207801
0.170141
0.170141
0.170141
0.126429
0.126429
0
0.023974
0.216284
2,395
91
152
26.318681
0.768247
0.094363
0
0.42029
0
0.014493
0.302228
0
0
0
0
0
0
1
0
false
0.115942
0.086957
0
0.086957
0.15942
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e586aaf24c87d1014b43f5fbc617f65d60fa3f2b
546
py
Python
itsim/network/service/dhcp/__init__.py
ElementAI/itsim
ff29967371d4065bbcbe63b2ac638d8f5f8c2e17
[ "MIT" ]
null
null
null
itsim/network/service/dhcp/__init__.py
ElementAI/itsim
ff29967371d4065bbcbe63b2ac638d8f5f8c2e17
[ "MIT" ]
24
2018-11-07T21:07:33.000Z
2021-02-02T21:53:45.000Z
itsim/network/service/dhcp/__init__.py
ElementAI/itsim
ff29967371d4065bbcbe63b2ac638d8f5f8c2e17
[ "MIT" ]
null
null
null
from enum import Enum, unique from itsim.units import B, S LEASE_DURATION = 86400 * S DHCP_SERVER_PORT = 67 DHCP_CLIENT_PORT = 68 DHCP_CLIENT_RETRIES = 3 DHCP_SIZE_MEAN = 100.0 * B DHCP_SIZE_STDEV = 30.0 * B DHCP_HEADER_SIZE = 240 * B RESERVATION_TIME = 30 * S @unique class DHCP(Enum): DISCOVER = "DHCPDISCOVER...
17.612903
29
0.68315
77
546
4.623377
0.558442
0.073034
0.033708
0
0
0
0
0
0
0
0
0.051643
0.21978
546
30
30
18.2
0.784038
0
0
0.086957
0
0
0.130037
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.565217
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e588f2d32dec552c0dacfcfd14e5d9b5fc6c0eda
919
py
Python
setup.py
tc-imba/python-jaccount-cli
608c73ea5be0d03b345fbb7dbdece2aca7a6629b
[ "MIT" ]
2
2021-07-05T15:56:44.000Z
2021-07-06T13:18:05.000Z
setup.py
tc-imba/python-jaccount-cli
608c73ea5be0d03b345fbb7dbdece2aca7a6629b
[ "MIT" ]
null
null
null
setup.py
tc-imba/python-jaccount-cli
608c73ea5be0d03b345fbb7dbdece2aca7a6629b
[ "MIT" ]
1
2021-07-05T15:53:12.000Z
2021-07-05T15:53:12.000Z
from setuptools import setup def get_long_description(): """ Return the README. """ return open("README.md", "r", encoding="utf8").read() setup( name="jaccount-cli", version="0.0.5", url="https://github.com/tc-imba/python-jaccount-cli", license="MIT", description="A small plugin ...
26.257143
79
0.644178
111
919
5.198198
0.594595
0.095321
0.07279
0.083189
0.192374
0.192374
0.192374
0.192374
0
0
0
0.023004
0.195865
919
34
80
27.029412
0.757781
0.019587
0
0
0
0
0.39774
0
0
0
0
0
0
1
0.037037
true
0
0.037037
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
e58fabf96d6160c74b0fd6be20a365e6a3472bc4
398
py
Python
b2b_ecommerce/migrations/0005_b2border_contract_number.py
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
10
2019-02-20T18:41:32.000Z
2021-07-26T10:39:58.000Z
b2b_ecommerce/migrations/0005_b2border_contract_number.py
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
2,226
2019-02-20T20:03:57.000Z
2022-03-31T11:18:56.000Z
b2b_ecommerce/migrations/0005_b2border_contract_number.py
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
4
2020-08-26T19:26:02.000Z
2021-03-09T17:46:47.000Z
# Generated by Django 2.2.8 on 2019-12-23 09:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("b2b_ecommerce", "0004_coupon_company_blank")] operations = [ migrations.AddField( model_name="b2border", name="contract_number", ...
23.411765
67
0.643216
46
398
5.413043
0.847826
0
0
0
0
0
0
0
0
0
0
0.076667
0.246231
398
16
68
24.875
0.753333
0.113065
0
0
1
0
0.173789
0.071225
0
0
0
0
0
1
0
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5935aef32e80d6b2f38f3565dff0d3d4cd78b75
830
py
Python
bpb/utils.py
vinisalazar/bpb
e3a7b951444c9a66874346eb313966bbb5c232ac
[ "BSD-3-Clause" ]
1
2020-11-26T21:40:41.000Z
2020-11-26T21:40:41.000Z
bpb/utils.py
vinisalazar/bpb
e3a7b951444c9a66874346eb313966bbb5c232ac
[ "BSD-3-Clause" ]
null
null
null
bpb/utils.py
vinisalazar/bpb
e3a7b951444c9a66874346eb313966bbb5c232ac
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime, timedelta from dateutil import parser as dateutil_parser def parse_date(date_args): if isinstance(date_args, (list, tuple)): date_args = " ".join(date_args) elif isinstance(date_args, datetime): date_args = str(date_args) datetime_obj = dateutil_parser.parse...
29.642857
81
0.710843
111
830
5.018018
0.387387
0.143627
0.16158
0.18851
0.096948
0
0
0
0
0
0
0.003012
0.2
830
27
82
30.740741
0.835843
0.045783
0
0
0
0
0.021519
0
0
0
0
0
0
1
0.105263
false
0
0.105263
0
0.315789
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5afb044648b81efe79a9da37c31e6bdb276537e
16,340
py
Python
datatools/nbddataframe.py
gautsi/gentrySeattle
fae2150ea782f91c99b58d705355e2e59f66d73b
[ "MIT" ]
1
2015-01-25T04:24:17.000Z
2015-01-25T04:24:17.000Z
datatools/nbddataframe.py
gautsi/gentrySeattle
fae2150ea782f91c99b58d705355e2e59f66d73b
[ "MIT" ]
null
null
null
datatools/nbddataframe.py
gautsi/gentrySeattle
fae2150ea782f91c99b58d705355e2e59f66d73b
[ "MIT" ]
null
null
null
import pandas as pd from sqlalchemy import create_engine, MetaData from StringIO import StringIO from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt pd.options.display.mpl_style = 'default' #data string for testing purposes testdata=\ """\ val lat lon rand neighborhood date 4.0764441201 47.60002...
31.24283
78
0.588066
1,920
16,340
4.86875
0.1875
0.025032
0.018293
0.02439
0.43849
0.385216
0.359435
0.338147
0.303273
0.275246
0
0.081221
0.316585
16,340
522
79
31.302682
0.755888
0.004651
0
0.130081
0
0
0.084144
0.007168
0
0
0
0.001916
0
0
null
null
0
0.04065
null
null
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e5b59216e48caa86fb4944d103b45728689a0362
3,632
py
Python
debtcalculatorapp/migrations/0001_initial.py
dthung1602/DebtCalculator
b907806cde4af19a476344ecc9ba697f8f260e5f
[ "MIT" ]
null
null
null
debtcalculatorapp/migrations/0001_initial.py
dthung1602/DebtCalculator
b907806cde4af19a476344ecc9ba697f8f260e5f
[ "MIT" ]
null
null
null
debtcalculatorapp/migrations/0001_initial.py
dthung1602/DebtCalculator
b907806cde4af19a476344ecc9ba697f8f260e5f
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2019-01-04 17:52 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
44.292683
145
0.604901
357
3,632
6.008403
0.260504
0.037296
0.058741
0.092308
0.631235
0.572494
0.572494
0.572494
0.514219
0.460606
0
0.012318
0.26239
3,632
81
146
44.839506
0.788354
0.01239
0
0.540541
1
0
0.126081
0.056067
0
0
0
0
0
1
0
false
0
0.040541
0
0.094595
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5bbdbf54c3c84bd7ce4756692b87c11239e5e60
6,179
py
Python
python/user_pb2.py
felipeagger/gRPC
4c1afa9a9f3bac393da72d70f70eca4842bd865c
[ "BSD-2-Clause" ]
8
2020-07-23T14:07:51.000Z
2022-01-27T13:41:40.000Z
python/user_pb2.py
felipeagger/gRPC
4c1afa9a9f3bac393da72d70f70eca4842bd865c
[ "BSD-2-Clause" ]
null
null
null
python/user_pb2.py
felipeagger/gRPC
4c1afa9a9f3bac393da72d70f70eca4842bd865c
[ "BSD-2-Clause" ]
5
2021-04-23T18:37:17.000Z
2022-02-21T02:24:18.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: user.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_data...
35.924419
458
0.749798
773
6,179
5.683053
0.1837
0.049169
0.073526
0.073754
0.577054
0.545413
0.545413
0.536308
0.536308
0.501935
0
0.032969
0.126234
6,179
171
459
36.134503
0.7807
0.045477
0
0.576389
1
0.006944
0.158913
0.102716
0
0
0
0
0
1
0
false
0
0.027778
0
0.027778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5bce054e05d06cfee7bf24d6e7b135c95b0f9f2
570
py
Python
mlutils/workshop/production_prediction/data/data.py
mlsamsom/mlutils
75d22cdeff0f92dbe561cafeae7811ac2eebaa61
[ "Apache-2.0" ]
null
null
null
mlutils/workshop/production_prediction/data/data.py
mlsamsom/mlutils
75d22cdeff0f92dbe561cafeae7811ac2eebaa61
[ "Apache-2.0" ]
null
null
null
mlutils/workshop/production_prediction/data/data.py
mlsamsom/mlutils
75d22cdeff0f92dbe561cafeae7811ac2eebaa61
[ "Apache-2.0" ]
null
null
null
import os import pandas as pd import numpy as np from sklearn.preprocessing import MinMaxScaler def load_data(): here = os.path.realpath(__file__) here = os.path.dirname(here) fn = os.path.join(here, 'monthly-milk-production.csv') return pd.read_csv(fn, index_col='Month') def clean_data(df): # c...
20.357143
58
0.696491
89
570
4.191011
0.550562
0.048257
0.053619
0
0
0
0
0
0
0
0
0.01087
0.192982
570
27
59
21.111111
0.8
0.050877
0
0
0
0
0.074212
0.050093
0
0
0
0
0
1
0.166667
false
0
0.222222
0
0.555556
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e5bdb1f229581fc745d36d42651e559b4b654a6c
406
py
Python
ai/users/migrations/0007_categorie_play.py
JulienLeotier/AI
ded1ef0b219a7b648a12658fea8dcac8b76413bf
[ "MIT" ]
null
null
null
ai/users/migrations/0007_categorie_play.py
JulienLeotier/AI
ded1ef0b219a7b648a12658fea8dcac8b76413bf
[ "MIT" ]
null
null
null
ai/users/migrations/0007_categorie_play.py
JulienLeotier/AI
ded1ef0b219a7b648a12658fea8dcac8b76413bf
[ "MIT" ]
null
null
null
# Generated by Django 3.1.13 on 2021-11-11 03:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0006_mycategories'), ] operations = [ migrations.AddField( model_name='categorie', name='play', ...
21.368421
78
0.605911
42
406
5.785714
0.809524
0
0
0
0
0
0
0
0
0
0
0.068027
0.275862
406
18
79
22.555556
0.758503
0.1133
0
0
1
0
0.120112
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5c1cbb345269c7bba32fa787402eceee2d43daf
1,553
py
Python
zsimparse/basic.py
gaomy3832/zsimparse
6d94c92f58ca62a11b946dd23031c97eb3fb7ddb
[ "BSD-3-Clause" ]
3
2018-08-26T10:52:40.000Z
2021-01-26T08:58:41.000Z
zsimparse/basic.py
gaomy3832/zsimparse
6d94c92f58ca62a11b946dd23031c97eb3fb7ddb
[ "BSD-3-Clause" ]
null
null
null
zsimparse/basic.py
gaomy3832/zsimparse
6d94c92f58ca62a11b946dd23031c97eb3fb7ddb
[ "BSD-3-Clause" ]
2
2019-09-17T09:24:04.000Z
2020-08-25T11:07:27.000Z
""" $lic$ Copyright (C) 2016-2020, Mingyu Gao All rights reserved. This program is free software: you can redistribute it and/or modify it under the terms of the Modified BSD-3 License as published by the Open Source Initiative. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;...
29.301887
79
0.714746
246
1,553
4.439024
0.45935
0.014652
0.03022
0.029304
0.195971
0.195971
0.051282
0
0
0
0
0.017474
0.189311
1,553
52
80
29.865385
0.849881
0.641983
0
0
0
0
0.029474
0
0
0
0
0
0
1
0.333333
false
0
0.25
0
0.916667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e5cbfe8b8139401bfc2a979231b5d86b974a82a9
1,003
py
Python
tests/test_jinja_features.py
Sam-Martin/sams-generate-changelog
78fc4f52fed7d969bd4111de64e09faa8e5817bd
[ "MIT" ]
null
null
null
tests/test_jinja_features.py
Sam-Martin/sams-generate-changelog
78fc4f52fed7d969bd4111de64e09faa8e5817bd
[ "MIT" ]
1
2020-09-09T12:27:14.000Z
2020-09-09T12:27:14.000Z
tests/test_jinja_features.py
Sam-Martin/sams-generate-changelog
78fc4f52fed7d969bd4111de64e09faa8e5817bd
[ "MIT" ]
null
null
null
import os import unittest from unittest.mock import patch from .fixtures.defaults import DEFAULT_ARGS, TEST_FOLDER from .test_helper import TestMixin from samsgeneratechangelog import GenerateChangelog @patch.dict('os.environ', {'TZ': 'UTC'}) class TestJinjaFeatures(unittest.TestCase, TestMixin): def setUp(self)...
28.657143
102
0.682951
113
1,003
5.858407
0.451327
0.049849
0.042296
0.057402
0.425982
0.359517
0.359517
0.359517
0.247734
0.247734
0
0.002513
0.206381
1,003
34
103
29.5
0.829146
0
0
0.333333
1
0
0.170489
0.05683
0
0
0
0
0.083333
1
0.166667
false
0
0.25
0
0.458333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5d3a2eab01a7d304257d9d6a226a116681f5f9b
1,635
py
Python
python/0.3/teleport/testsuite/test_core.py
cosmic-api/teleport
f93fe85bff1de5c5caa15ce87f8ca142ffb2efb5
[ "Unlicense", "MIT" ]
8
2015-03-07T20:39:11.000Z
2018-03-23T00:43:58.000Z
python/0.3/teleport/testsuite/test_core.py
cosmic-api/teleport
f93fe85bff1de5c5caa15ce87f8ca142ffb2efb5
[ "Unlicense", "MIT" ]
null
null
null
python/0.3/teleport/testsuite/test_core.py
cosmic-api/teleport
f93fe85bff1de5c5caa15ce87f8ca142ffb2efb5
[ "Unlicense", "MIT" ]
3
2016-04-06T02:56:05.000Z
2021-01-23T08:49:09.000Z
from unittest2 import TestCase from datetime import datetime from teleport import t from teleport.compat import PY2 class T(object): pairs = [] undefined = [] def test_from_json(self): for pair in self.pairs: self.assertEqual(t(self.schema).from_json(pair[0]), pair[1]) def test_...
19.464286
76
0.565749
216
1,635
4.25463
0.296296
0.097933
0.163221
0.032644
0.113166
0.113166
0.113166
0.113166
0.113166
0.113166
0
0.049839
0.239144
1,635
83
77
19.698795
0.688907
0
0
0.04
0
0
0.099265
0.015931
0
0
0
0
0.04
1
0.04
false
0
0.08
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
0
0
0
0
0
1
0
0
1
e5d5155ae38a2f2d8386d4b045cf051a7a5c620c
3,290
py
Python
MiddleKit/WebBrowser/SelectDatabase.py
PeaceWorksTechnologySolutions/w4py
74f5a03a63f1a93563502b908474aefaae2abda2
[ "MIT" ]
18
2016-08-01T20:15:59.000Z
2019-12-24T16:00:03.000Z
MiddleKit/WebBrowser/SelectDatabase.py
WebwareForPython/w4py
bba08f5974d49f5da7e88abe3eeda1037d0824a3
[ "MIT" ]
6
2016-09-13T05:48:45.000Z
2020-01-09T18:29:12.000Z
MiddleKit/WebBrowser/SelectDatabase.py
WebwareForPython/w4py
bba08f5974d49f5da7e88abe3eeda1037d0824a3
[ "MIT" ]
6
2016-09-16T14:32:29.000Z
2020-01-03T18:52:16.000Z
from MiscUtils.DataTable import DataTable from MiscUtils.Funcs import hostName as HostName from SitePage import SitePage class SelectDatabase(SitePage): def writeSideBar(self): self.writeln('<a href="?showHelp=1" class="SideBarLink">Help</a>') def writeContent(self): self.saveFieldsToCookies...
33.917526
75
0.553799
384
3,290
4.734375
0.354167
0.013201
0.019802
0.028603
0.051705
0.022002
0
0
0
0
0
0.000858
0.291793
3,290
96
76
34.270833
0.779399
0.134043
0
0.055556
0
0.013889
0.281996
0.083066
0
0
0
0
0
1
0.097222
false
0.069444
0.041667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e5d749ddb960df31ed91035886acb47e393f69fc
15,423
py
Python
pg_lifecycle/generate.py
gmr/pg_lifecycle
c6e9a59b4c4a6d415e0a1b775fb7cf95a33a10e4
[ "BSD-3-Clause" ]
null
null
null
pg_lifecycle/generate.py
gmr/pg_lifecycle
c6e9a59b4c4a6d415e0a1b775fb7cf95a33a10e4
[ "BSD-3-Clause" ]
null
null
null
pg_lifecycle/generate.py
gmr/pg_lifecycle
c6e9a59b4c4a6d415e0a1b775fb7cf95a33a10e4
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 """ Generates Project Structure """ import logging import os from os import path import pickle import shutil import subprocess import tempfile import toposort from pgdumplib import directory, toc from pg_lifecycle import common LOGGER = logging.getLogger(__name__) class Generate: """Generate Pr...
39.445013
79
0.538741
1,659
15,423
4.873418
0.180229
0.017069
0.024119
0.01645
0.211008
0.196537
0.150402
0.134323
0.123191
0.114533
0
0.001514
0.357453
15,423
390
80
39.546154
0.814329
0.113402
0
0.12892
1
0
0.066977
0
0
0
0
0
0
1
0.066202
false
0.003484
0.034843
0.006969
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5e139c677a5716cfb8ea5ed94638ca284dc9b6c
4,310
py
Python
autoscalingsim/infrastructure_platform/platform_model_configuration_parser.py
Remit/autoscaling-simulator
091943c0e9eedf9543e9305682a067ab60f56def
[ "MIT" ]
6
2021-03-10T16:23:10.000Z
2022-01-14T04:57:46.000Z
autoscalingsim/infrastructure_platform/platform_model_configuration_parser.py
Remit/autoscaling-simulator
091943c0e9eedf9543e9305682a067ab60f56def
[ "MIT" ]
null
null
null
autoscalingsim/infrastructure_platform/platform_model_configuration_parser.py
Remit/autoscaling-simulator
091943c0e9eedf9543e9305682a067ab60f56def
[ "MIT" ]
1
2022-01-14T04:57:55.000Z
2022-01-14T04:57:55.000Z
import json import collections import pandas as pd from .node_information.provider_nodes import ProviderNodes from autoscalingsim.utils.metric.metric_categories.size import Size from autoscalingsim.utils.metric.metric_categories.numeric import Numeric from autoscalingsim.utils.price import PricePerUnitTime from autos...
53.209877
135
0.614849
464
4,310
5.286638
0.178879
0.071749
0.154912
0.178149
0.431716
0.339992
0.203832
0.203832
0.203832
0.203832
0
0.000682
0.319258
4,310
80
136
53.875
0.835378
0
0
0.137931
0
0
0.048028
0.006497
0
0
0
0
0
1
0.017241
false
0
0.155172
0
0.206897
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5e4b2fdfe0e4a84f0d3381a294fe114bcd9b93f
545
py
Python
sources/rnt/mediane/migrations/0023_auto_20180215_2155.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
null
null
null
sources/rnt/mediane/migrations/0023_auto_20180215_2155.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
11
2018-04-04T08:24:30.000Z
2021-03-19T21:45:04.000Z
sources/rnt/mediane/migrations/0023_auto_20180215_2155.py
bryan-brancotte/rank-aggregation-with-ties
15fffb0b1bee3d6cef7090486a7c910e5f51195d
[ "Apache-2.0" ]
1
2018-10-25T09:13:41.000Z
2018-10-25T09:13:41.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-02-15 21:55 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mediane', '0022_auto_20180215_2155'), ] operations = [ migrations.AlterFiel...
25.952381
139
0.645872
65
545
5.261538
0.846154
0
0
0
0
0
0
0
0
0
0
0.07971
0.240367
545
20
140
27.25
0.746377
0.124771
0
0
1
0
0.240506
0.048523
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5e52d2dbe4a4c65c0d644478d0e33d0919da741
2,039
py
Python
python-lib/lal/classifiers/image_object_classifier.py
dataiku/dss-plugin-ml-assisted-labeling
b828701bca0357131bb0f7430b532d789396e10d
[ "Apache-2.0" ]
4
2020-11-03T14:14:32.000Z
2022-02-14T01:09:04.000Z
python-lib/lal/classifiers/image_object_classifier.py
dataiku/dss-plugin-ml-assisted-labeling
b828701bca0357131bb0f7430b532d789396e10d
[ "Apache-2.0" ]
15
2020-05-13T20:08:46.000Z
2022-02-10T01:32:24.000Z
python-lib/lal/classifiers/image_object_classifier.py
dataiku/dss-plugin-ml-assisted-labeling
b828701bca0357131bb0f7430b532d789396e10d
[ "Apache-2.0" ]
5
2020-11-23T10:47:27.000Z
2022-02-15T08:13:04.000Z
import json import logging from base64 import b64encode import pandas as pd from lal.classifiers.base_classifier import FolderBasedDataClassifier class ImageObjectClassifier(FolderBasedDataClassifier): logger = logging.getLogger(__name__) def __init__(self, folder, queries_df, config): """ ...
28.71831
84
0.626287
245
2,039
5.016327
0.420408
0.032547
0.02441
0.02441
0.029292
0
0
0
0
0
0
0.00596
0.259441
2,039
70
85
29.128571
0.807947
0.023541
0
0.098039
0
0
0.086514
0
0
0
0
0
0
1
0.196078
false
0
0.098039
0.098039
0.509804
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e5f15a52f66668d070f51e5594a5e81fb61e348e
639
py
Python
tests/utils/event_recorder.py
kbh2o/slash
532b7e3acdf46103ece5b86f21c29f9b58587289
[ "BSD-3-Clause" ]
70
2015-12-05T12:33:10.000Z
2022-03-03T04:56:58.000Z
tests/utils/event_recorder.py
kbh2o/slash
532b7e3acdf46103ece5b86f21c29f9b58587289
[ "BSD-3-Clause" ]
711
2015-10-06T11:01:48.000Z
2022-02-09T12:40:47.000Z
tests/utils/event_recorder.py
kbh2o/slash
532b7e3acdf46103ece5b86f21c29f9b58587289
[ "BSD-3-Clause" ]
37
2015-10-13T11:00:51.000Z
2022-02-08T07:28:11.000Z
class EventRecorder(object): def __init__(self): super(EventRecorder, self).__init__() self.events = {} self.timestamp = 0 def record(self, event_name, **kwargs): assert event_name not in self.events, "Event {} already recorded".format(event_name) self.timestamp += 1 ...
33.631579
92
0.646322
75
639
5.16
0.346667
0.139535
0.116279
0.098191
0
0
0
0
0
0
0
0.004132
0.242567
639
18
93
35.5
0.795455
0
0
0
0
0
0.039124
0
0
0
0
0
0.058824
1
0.235294
false
0
0
0.058824
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
e5f4f1906201795515912b6d75cad156684adcb0
5,198
py
Python
tests/backends/fock/pure/test_measurements.py
antalszava/piquasso
7ebff83145cfab44929114437c250852dff5f9a5
[ "Apache-2.0" ]
12
2021-09-12T15:51:45.000Z
2022-03-05T22:25:47.000Z
tests/backends/fock/pure/test_measurements.py
antalszava/piquasso
7ebff83145cfab44929114437c250852dff5f9a5
[ "Apache-2.0" ]
36
2021-09-13T08:01:27.000Z
2022-03-21T11:53:30.000Z
tests/backends/fock/pure/test_measurements.py
antalszava/piquasso
7ebff83145cfab44929114437c250852dff5f9a5
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021 Budapest Quantum Computing Group # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
32.4875
88
0.626202
681
5,198
4.687225
0.189427
0.015038
0.065789
0.109023
0.738409
0.716479
0.682018
0.639411
0.60401
0.589286
0
0.047898
0.244902
5,198
159
89
32.691824
0.76535
0.143902
0
0.59596
0
0
0
0
0
0
0
0.006289
0.111111
1
0.040404
false
0
0.020202
0
0.060606
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5f66bd41e0a181877323aabf3196af488f6365c
8,425
py
Python
sdk/python/pulumi_azure/network/express_route_circuit_authorization.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/network/express_route_circuit_authorization.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/network/express_route_circuit_authorization.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilitie...
45.788043
271
0.673828
919
8,425
5.891186
0.20457
0.050425
0.066679
0.059475
0.436461
0.38068
0.341153
0.326007
0.280938
0.268194
0
0.006007
0.249139
8,425
183
272
46.038251
0.849826
0.398932
0
0.149425
1
0
0.187154
0.085714
0
0
0
0
0
1
0.103448
false
0.011494
0.057471
0.022989
0.264368
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5f6c5735f69e438b30228208b92381d4a9a3445
7,348
py
Python
tensorflow_model_optimization/python/core/quantization/keras/quantize_emulate.py
s36srini/model-optimization
d6457bf9c3e5595fb86290702077d131324ee316
[ "Apache-2.0" ]
1
2019-08-22T19:11:05.000Z
2019-08-22T19:11:05.000Z
tensorflow_model_optimization/python/core/quantization/keras/quantize_emulate.py
s36srini/model-optimization
d6457bf9c3e5595fb86290702077d131324ee316
[ "Apache-2.0" ]
null
null
null
tensorflow_model_optimization/python/core/quantization/keras/quantize_emulate.py
s36srini/model-optimization
d6457bf9c3e5595fb86290702077d131324ee316
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.673684
120
0.722101
927
7,348
5.601942
0.263215
0.028885
0.019257
0.019257
0.203543
0.138456
0.107452
0.056615
0.02773
0.02773
0
0.002563
0.203457
7,348
189
121
38.878307
0.884675
0.508029
0
0.085714
0
0
0.115039
0.007534
0
0
0
0.010582
0
1
0.114286
false
0
0.057143
0.014286
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
f90322bd886b36a62f0548bab49b8ec6963918b5
1,160
py
Python
irc/account.py
JamoBox/jambot
0678e89975b32a70b63731dad8a3cbe7d4f1c09f
[ "MIT" ]
null
null
null
irc/account.py
JamoBox/jambot
0678e89975b32a70b63731dad8a3cbe7d4f1c09f
[ "MIT" ]
null
null
null
irc/account.py
JamoBox/jambot
0678e89975b32a70b63731dad8a3cbe7d4f1c09f
[ "MIT" ]
null
null
null
from lib.base import JamBase class IrcAccount(JamBase): def __init__(self, server, nickname, username, password, hostname='-', servername='-', realname='JamBot'): JamBase.__init__(self)...
31.351351
78
0.507759
96
1,160
6.020833
0.322917
0.086505
0.072664
0
0
0
0
0
0
0
0
0
0.403448
1,160
36
79
32.222222
0.83526
0.035345
0
0
0
0
0.079678
0
0
0
0
0
0
1
0.071429
false
0.142857
0.035714
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f909437a29b4ff760e101cab2cc1dfcc2558c8c5
469
py
Python
config.py
deanshanahan/hip-flask
dc2dabb430192323ade1785135cf9ddee6d012a3
[ "MIT" ]
null
null
null
config.py
deanshanahan/hip-flask
dc2dabb430192323ade1785135cf9ddee6d012a3
[ "MIT" ]
null
null
null
config.py
deanshanahan/hip-flask
dc2dabb430192323ade1785135cf9ddee6d012a3
[ "MIT" ]
null
null
null
""" Configurations for local development and production """ class Config: """ Standard configurations """ DEBUG = False class DevelopmentConfig(Config): """ Configuration for local development """ FLASK_PORT = 5000 FLASK_HOST = '0.0.0.0' class ProductionConfig(Config): """ Configuration for p...
22.333333
59
0.66951
51
469
6.078431
0.411765
0.03871
0.03871
0.116129
0.167742
0.167742
0.167742
0.167742
0.167742
0
0
0.043243
0.211087
469
20
60
23.45
0.794595
0.36887
0
0.4
0
0
0.053232
0
0
0
0
0
0
1
0
false
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f90b7e6ee029c178d0ac38577fc7ac357a9c8fe5
413
py
Python
IceGame/h5game/admin/frame_a.py
onebitxy/djangoing
5061516b0f5bce1794488680ca616f512ae3ad42
[ "MIT" ]
null
null
null
IceGame/h5game/admin/frame_a.py
onebitxy/djangoing
5061516b0f5bce1794488680ca616f512ae3ad42
[ "MIT" ]
null
null
null
IceGame/h5game/admin/frame_a.py
onebitxy/djangoing
5061516b0f5bce1794488680ca616f512ae3ad42
[ "MIT" ]
null
null
null
#!/usr/bin/python3.7 # -*- coding: utf-8 -*- import os import sys from django.contrib import admin from ..models.frame_m import Frame class FrameAdmin(admin.ModelAdmin): fieldsets = [ ('框架配置', {'fields': ['name']}), (None, {'fields': ['root_dir']}), (None, {'fields': ['frame_dir']}),...
17.208333
43
0.57385
47
413
4.957447
0.680851
0.085837
0
0
0
0
0
0
0
0
0
0.009259
0.215496
413
23
44
17.956522
0.709877
0.099274
0
0
0
0
0.165761
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f918f17aa13fcd5af1dfea08d732a2673fcc9822
2,522
py
Python
dgi_repo/database/read/repo_objects.py
discoverygarden/dgi_repo
1bb30d51a4cefc2ae510f5aeac4b36ed7a78f6a6
[ "Apache-2.0" ]
null
null
null
dgi_repo/database/read/repo_objects.py
discoverygarden/dgi_repo
1bb30d51a4cefc2ae510f5aeac4b36ed7a78f6a6
[ "Apache-2.0" ]
null
null
null
dgi_repo/database/read/repo_objects.py
discoverygarden/dgi_repo
1bb30d51a4cefc2ae510f5aeac4b36ed7a78f6a6
[ "Apache-2.0" ]
null
null
null
""" Database helpers relating to repository objects. """ from dgi_repo.database.utilities import check_cursor from dgi_repo import utilities def object_info(db_id, cursor=None): """ Query for an object's information from the repository. """ cursor = check_cursor(cursor) cursor.execute(''' ...
21.016667
71
0.612213
304
2,522
4.930921
0.141447
0.096064
0.079386
0.107405
0.671781
0.613075
0.565043
0.565043
0.522348
0.522348
0
0
0.286281
2,522
119
72
21.193277
0.832778
0.140365
0
0.727273
0
0
0.426277
0.023358
0
0
0
0
0
1
0.106061
false
0
0.030303
0
0.242424
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
0
0
0
0
0
0
0
0
1
f91f453b865982815e1b77c9f337f42e7cf63aff
271
py
Python
basics/lists.py
mac-grimoire/python-spells
3c8f3df267a59a2edffc904f04a50538c73353b5
[ "CC0-1.0" ]
null
null
null
basics/lists.py
mac-grimoire/python-spells
3c8f3df267a59a2edffc904f04a50538c73353b5
[ "CC0-1.0" ]
null
null
null
basics/lists.py
mac-grimoire/python-spells
3c8f3df267a59a2edffc904f04a50538c73353b5
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 distro={ } library=[] distro["name"]="RedHat" distro["versions"]=["4.0","5.0","6.0","7.0","8.0"] library.append(distro.copy()) distro["name"]="Suse" distro["versions"]=["10.0","11.0","15.0","42.0"] library.append(distro.copy()) print(library)
16.9375
50
0.616236
44
271
3.795455
0.522727
0.11976
0.167665
0.239521
0.287425
0
0
0
0
0
0
0.090551
0.062731
271
15
51
18.066667
0.566929
0.077491
0
0.222222
0
0
0.262097
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f925ce00b22469ebde42d841b2aed9e6a8e31b06
254
py
Python
src/Method.py
martydill/PyCIL
7f9db640e921bfc61dcedd1cbd217b61d107afb8
[ "BSD-2-Clause" ]
3
2016-09-05T18:37:15.000Z
2021-12-24T02:22:06.000Z
src/Method.py
martydill/PyCIL
7f9db640e921bfc61dcedd1cbd217b61d107afb8
[ "BSD-2-Clause" ]
null
null
null
src/Method.py
martydill/PyCIL
7f9db640e921bfc61dcedd1cbd217b61d107afb8
[ "BSD-2-Clause" ]
1
2018-11-28T16:57:41.000Z
2018-11-28T16:57:41.000Z
class Method(): def __init__(self): self.methodDefinition = None self.locals = [] self.instructions = [] self.maxStack = -1 self.returnType = None self.parameters = [] self.attributes = []
23.090909
36
0.531496
22
254
5.954545
0.636364
0.122137
0
0
0
0
0
0
0
0
0
0.006098
0.354331
254
11
37
23.090909
0.792683
0
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.222222
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0057066f5a56878af790f0c502ad8e0f45a8d3aa
4,602
py
Python
extract_frames.py
MuhammadHamed/Deep-tracking
09dd43cff30bbb3763cfc591dcbb372e85fd2618
[ "MIT" ]
null
null
null
extract_frames.py
MuhammadHamed/Deep-tracking
09dd43cff30bbb3763cfc591dcbb372e85fd2618
[ "MIT" ]
null
null
null
extract_frames.py
MuhammadHamed/Deep-tracking
09dd43cff30bbb3763cfc591dcbb372e85fd2618
[ "MIT" ]
null
null
null
import os import shutil import argparse def extract_frames_from_one_video(video_file, frames_path, fps): images_counter = 1 counter = 1 # get the video name without the extension and path video_file_name = get_video_file_name(video_file) # get the name of cut file of the video cut_video_file = os.path.di...
39
161
0.662973
692
4,602
4.215318
0.231214
0.114158
0.057936
0.030854
0.514913
0.469318
0.444635
0.424751
0.405554
0.395269
0
0.023526
0.233377
4,602
117
162
39.333333
0.803288
0.292916
0
0.360656
0
0.016393
0.15938
0.016744
0
0
0
0
0
0
null
null
0
0.04918
null
null
0.098361
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
005ce8b44ba5dbf59cde3694d809fafeadb7d0f2
470
py
Python
Chapter07/elevator.py
PacktPublishing/Python-Data-Science-with-AI-for-Noobs
d7df90c6f0fbafe3e5b22e8bf6618eabe8d2e830
[ "MIT" ]
8
2019-02-21T15:50:38.000Z
2021-11-08T13:10:49.000Z
Chapter07/elevator.py
PacktPublishing/Python-Data-Science-with-AI-for-Noobs
d7df90c6f0fbafe3e5b22e8bf6618eabe8d2e830
[ "MIT" ]
null
null
null
Chapter07/elevator.py
PacktPublishing/Python-Data-Science-with-AI-for-Noobs
d7df90c6f0fbafe3e5b22e8bf6618eabe8d2e830
[ "MIT" ]
7
2018-12-26T08:17:22.000Z
2020-08-24T08:23:11.000Z
class Elevator: occupancy_limit = 8 def __init__(self, occupants): if occupants > self.occupancy_limit: print("The maximum occupancy limit has been exceeded." f" {occupants - self.occupancy_limit} occupants must exit the elevator.") self.occupants = occupants ele...
31.333333
91
0.691489
53
470
6
0.471698
0.176101
0.138365
0.169811
0
0
0
0
0
0
0
0.027174
0.217021
470
14
92
33.571429
0.836957
0
0
0
0
0
0.334043
0.044681
0
0
0
0
0
1
0.090909
false
0
0
0
0.272727
0.272727
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
005ee4a17b72f1b86a1cc4ffd25fcc805b927444
595
py
Python
{{cookiecutter.PROJECT_NAME}}/media/models.py
pyFigure/cc_django
afb640816291ffc2ed2038bdee6ea60b27d71fb2
[ "BSD-3-Clause" ]
4
2020-09-01T06:37:17.000Z
2020-09-01T07:11:32.000Z
{{cookiecutter.PROJECT_NAME}}/media/models.py
pyFigure/cc_django
afb640816291ffc2ed2038bdee6ea60b27d71fb2
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.PROJECT_NAME}}/media/models.py
pyFigure/cc_django
afb640816291ffc2ed2038bdee6ea60b27d71fb2
[ "BSD-3-Clause" ]
null
null
null
from uuid import uuid4 from django.db import models from utils.models import UUIDModel, TimeStampedModel, OwnerModel def get_upload_to(instance, filename): ext = filename.split('.')[-1] name = '.'.join(filename.split('.')[0: -1]) return f'images/{instance.owner.username}/{name}_{uuid4().hex}.{ext}' clas...
28.333333
73
0.695798
74
595
5.405405
0.554054
0.06
0.055
0
0
0
0
0
0
0
0
0.01004
0.163025
595
20
74
29.75
0.793173
0.010084
0
0
0
0
0.120069
0.101201
0
0
0
0
0
1
0.153846
false
0
0.230769
0.076923
0.769231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
00628473bb41d31e295910bd0ee2702701348e45
449
py
Python
Python/Sets/Union Operation/union_operation.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
2
2020-05-28T07:15:00.000Z
2020-07-21T08:34:06.000Z
Python/Sets/Union Operation/union_operation.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
null
null
null
Python/Sets/Union Operation/union_operation.py
brianchiang-tw/HackerRank
02a30a0033b881206fa15b8d6b4ef99b2dc420c8
[ "MIT" ]
null
null
null
from typing import Set def union_of_set( set_a:Set, set_b:Set)->Set: union_set = set_a.union( set_b ) return union_set # Enter your code here. Read input from STDIN. Print output to STDOUT n, en_subscriber = int( input() ), set( map(int, input().split() ) ) b, fr_subscriber = int( input() ), set( map(int,...
26.411765
69
0.708241
78
449
3.769231
0.397436
0.081633
0.068027
0.142857
0.367347
0.367347
0.251701
0.251701
0
0
0
0
0.164811
449
17
70
26.411765
0.784
0.14922
0
0
0
0
0
0
0
0
0
0.058824
0
1
0.125
false
0
0.125
0
0.375
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
1
0
0
0
0
0
0
0
0
0
0
1
006623ff6c549aed1a6d89ebc6d46f4492bda5ed
4,789
py
Python
pytest_statsd/plugin.py
jlane9/pytest-statsd
61993cd0b89c35a5541207b118865ce7fa1bb4d3
[ "MIT" ]
4
2018-04-09T22:35:42.000Z
2020-01-26T19:00:11.000Z
pytest_statsd/plugin.py
jlane9/pytest-statsd
61993cd0b89c35a5541207b118865ce7fa1bb4d3
[ "MIT" ]
118
2018-05-14T21:40:56.000Z
2022-03-28T17:30:06.000Z
pytest_statsd/plugin.py
jlane9/pytest-statsd
61993cd0b89c35a5541207b118865ce7fa1bb4d3
[ "MIT" ]
null
null
null
"""pytest_statsd.plugin .. codeauthor:: John Lane <jlane@fanthreesixty.com> """ from __future__ import absolute_import import time import statsd def pytest_addoption(parser): """ :param parser: :return: """ group = parser.getgroup('terminal reporting') group.addoption('--stats-d', action=...
25.747312
100
0.580288
506
4,789
5.395257
0.249012
0.03663
0.027839
0.0337
0.168132
0.120879
0.120879
0.120879
0.120879
0.120879
0
0.008341
0.299019
4,789
185
101
25.886486
0.804885
0.158279
0
0.119048
0
0
0.1254
0
0
0
0
0
0
1
0.130952
false
0.154762
0.035714
0
0.178571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0071da1292928f378a619b83a11eef27d9b29a0b
6,444
py
Python
src/libs/bayes_helper.py
jack139/cnnc
c32611ec01af50bedb67dcd4c8a28e4b0c7a9aef
[ "BSD-2-Clause" ]
null
null
null
src/libs/bayes_helper.py
jack139/cnnc
c32611ec01af50bedb67dcd4c8a28e4b0c7a9aef
[ "BSD-2-Clause" ]
null
null
null
src/libs/bayes_helper.py
jack139/cnnc
c32611ec01af50bedb67dcd4c8a28e4b0c7a9aef
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # from numpy import * from bson.objectid import ObjectId import jieba from talkbot_lib import jieba_dictionary from config import setting import helper db = setting.db_web def loadDataFromDB(): postingList = [] classVec = [] r1 = db.bayes.find({'available':1}...
29.972093
95
0.548883
758
6,444
4.577836
0.245383
0.009222
0.013833
0.013833
0.232853
0.198271
0.148127
0.091066
0.091066
0.067435
0
0.015643
0.315487
6,444
214
96
30.11215
0.771027
0.13532
0
0.133333
0
0
0.101284
0
0
0
0
0
0
0
null
null
0
0.053333
null
null
0.053333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0076164a56754f8a0c4087d3d70caedfc9c0393b
1,486
py
Python
mfctracker/migrations/0006_userprofile.py
kevans91/mfctracker
c86f1538229df126081331edef3bfd19c9ef1345
[ "BSD-2-Clause" ]
null
null
null
mfctracker/migrations/0006_userprofile.py
kevans91/mfctracker
c86f1538229df126081331edef3bfd19c9ef1345
[ "BSD-2-Clause" ]
null
null
null
mfctracker/migrations/0006_userprofile.py
kevans91/mfctracker
c86f1538229df126081331edef3bfd19c9ef1345
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-04-22 23:05 from __future__ import unicode_literals from django.conf import settings from django.contrib.auth.models import User from django.db import migrations, models from django.utils.crypto import get_random_string import django.db.models.deletion import...
34.55814
146
0.684388
174
1,486
5.649425
0.528736
0.040692
0.030519
0.044761
0
0
0
0
0
0
0
0.019409
0.202557
1,486
42
147
35.380952
0.810127
0.044415
0
0
1
0
0.065632
0
0
0
0
0
0
1
0.060606
false
0.030303
0.212121
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0082abdc124f9ea3e962ffa010d8b1589d795b95
4,927
py
Python
demo/hipaa/tests.py
jeanqasaur/jeeves
1b5783a98f88fa2fc9e4cae7e005d2c9242cfea4
[ "MIT" ]
253
2015-01-02T01:54:27.000Z
2022-03-10T01:44:02.000Z
demo/hipaa/tests.py
jeanqasaur/jeeves
1b5783a98f88fa2fc9e4cae7e005d2c9242cfea4
[ "MIT" ]
4
2015-06-09T03:36:28.000Z
2017-08-11T15:54:24.000Z
demo/hipaa/tests.py
jeanqasaur/jeeves
1b5783a98f88fa2fc9e4cae7e005d2c9242cfea4
[ "MIT" ]
29
2015-02-14T02:24:08.000Z
2021-12-16T02:46:16.000Z
"""HIPAA tests. :synopsis: Tests for the HIPAA case study. .. moduleauthor:: Jean Yang <jeanyang@csail.mit.edu> """ from datetime import date from django.contrib.auth.models import User from django.db import models from django.utils import unittest from django.test import TestCase import JeevesLib from jeevesdb...
33.290541
78
0.599351
467
4,927
6.269807
0.295503
0.062158
0.090164
0.127732
0.365437
0.329235
0.087432
0.087432
0.087432
0
0
0.024327
0.299168
4,927
147
79
33.517007
0.823632
0
0
0.223141
0
0
0.083854
0
0
0
0
0
0.090909
0
null
null
0.016529
0.07438
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0088231e4895dcb140536b10d2e8fb28fbb03a8f
2,525
py
Python
test_dll.py
CharlyWelch/data-structures
eda7ecf1256758e3b1005286f9d4849df71b2201
[ "MIT" ]
null
null
null
test_dll.py
CharlyWelch/data-structures
eda7ecf1256758e3b1005286f9d4849df71b2201
[ "MIT" ]
null
null
null
test_dll.py
CharlyWelch/data-structures
eda7ecf1256758e3b1005286f9d4849df71b2201
[ "MIT" ]
null
null
null
import unittest import pytest from dll import Node, DoubleLinkedList class DoubleTest(unittest.TestCase): def test_1(self): n1 = Node(5) self.assertEqual(n1.value(), 5) def test_2(self): """ test append by head """ dl = DoubleLinkedList() n1 = Node(5) n2 = Node...
25.25
84
0.513663
335
2,525
3.808955
0.176119
0.075235
0.054859
0.169279
0.610502
0.560345
0.526646
0.526646
0.489812
0.489812
0
0.054221
0.357228
2,525
100
85
25.25
0.731978
0.131089
0
0.666667
0
0
0.00935
0
0
0
0
0
0.128205
1
0.128205
false
0
0.038462
0
0.179487
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
008a6bc36707de8e1bdcc34317d9aa971be13b0b
738
py
Python
devnotes/tests.py
bsurajbh/django-devnotes
031f44ff488df3bf978aba0602cdf6a3ccaf0ce7
[ "MIT" ]
1
2019-11-12T10:58:49.000Z
2019-11-12T10:58:49.000Z
devnotes/tests.py
bsurajbh/django-devnotes
031f44ff488df3bf978aba0602cdf6a3ccaf0ce7
[ "MIT" ]
2
2019-11-12T10:55:34.000Z
2019-11-12T10:56:49.000Z
devnotes/tests.py
bsurajbh/django-devnotes
031f44ff488df3bf978aba0602cdf6a3ccaf0ce7
[ "MIT" ]
null
null
null
from django.test import TestCase from devnotes.models import Devnote class DevnoteTestCases(TestCase): def setUp(self): Devnote.objects.create(name='testnote', description='testnote description') def test_retrieve_note(self): """retrieve the testnote...
36.9
79
0.617886
78
738
5.705128
0.410256
0.125843
0.089888
0.107865
0
0
0
0
0
0
0
0.003738
0.275068
738
19
80
38.842105
0.828037
0.050136
0
0
0
0
0.105797
0
0
0
0
0
0.142857
1
0.214286
false
0
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
008f9a034ca7c2f1bd95ba4503db07f9ae726691
4,468
py
Python
post_sonarr.py
cosmicc/docker-postprocess
0df0758b642d1a4856c193fe8f146ef748fd7099
[ "MIT" ]
null
null
null
post_sonarr.py
cosmicc/docker-postprocess
0df0758b642d1a4856c193fe8f146ef748fd7099
[ "MIT" ]
null
null
null
post_sonarr.py
cosmicc/docker-postprocess
0df0758b642d1a4856c193fe8f146ef748fd7099
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os try: sonarr_eventtype = os.environ['sonarr_eventtype'] except KeyError: sonarr_eventtype = '' try: sonarr_isupgrade = os.environ['sonarr_isupgrade'] except KeyError: sonarr_isupgrade = '' try: sonarr_series_id = os.environ['sonarr_series_id'] except KeyError: so...
38.517241
856
0.795658
517
4,468
6.487427
0.094778
0.309183
0.120751
0.029815
0.038462
0.038462
0.015802
0.015802
0.015802
0.015802
0
0
0.11325
4,468
115
857
38.852174
0.846542
0.004476
0
0.504505
0
0.009009
0.184169
0.143917
0
0
0
0
0
1
0
false
0
0.009009
0
0.009009
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
00a09b1b1abc8b45f2d1ecd007d3337fee80bec4
15,193
py
Python
qcfractal/interface/models/rest_models.py
yudongqiu/QCFractal
43b5b4807dfe19f78177288f204aab1066de2dea
[ "BSD-3-Clause" ]
null
null
null
qcfractal/interface/models/rest_models.py
yudongqiu/QCFractal
43b5b4807dfe19f78177288f204aab1066de2dea
[ "BSD-3-Clause" ]
null
null
null
qcfractal/interface/models/rest_models.py
yudongqiu/QCFractal
43b5b4807dfe19f78177288f204aab1066de2dea
[ "BSD-3-Clause" ]
null
null
null
""" Models for the REST interface """ from typing import Any, Dict, List, Optional, Tuple, Union from pydantic import BaseConfig, BaseModel, constr, validator, Schema from .common_models import KeywordSet, Molecule, ObjectId from .gridoptimization import GridOptimizationInput from .model_utils import json_encoders fr...
21.338483
119
0.648588
1,521
15,193
6.408284
0.170283
0.059813
0.112034
0.12568
0.421155
0.337642
0.302965
0.220273
0.166718
0.149277
0
0.000089
0.256236
15,193
711
120
21.368495
0.862478
0.081946
0
0.538462
0
0
0.056013
0.007877
0
0
0
0
0
1
0.032258
false
0.121588
0.019851
0.012407
0.602978
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
00a8b29c26196de3770423a72ff4f0aa31ddd14b
1,075
py
Python
examples/basic_example/main/migrations/0001_initial.py
VolkerGoeschl/django-inlineedit
c1656e8c647c02a87c077001775bd8e98d564647
[ "MIT" ]
null
null
null
examples/basic_example/main/migrations/0001_initial.py
VolkerGoeschl/django-inlineedit
c1656e8c647c02a87c077001775bd8e98d564647
[ "MIT" ]
null
null
null
examples/basic_example/main/migrations/0001_initial.py
VolkerGoeschl/django-inlineedit
c1656e8c647c02a87c077001775bd8e98d564647
[ "MIT" ]
null
null
null
# Generated by Django 2.1.12 on 2020-02-29 17:34 import ckeditor.fields from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Person', fields=[ (...
35.833333
126
0.587907
106
1,075
5.877358
0.556604
0.072231
0.096308
0.11557
0.11236
0
0
0
0
0
0
0.025253
0.263256
1,075
29
127
37.068966
0.761364
0.042791
0
0
1
0
0.118793
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1