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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
88313f52061d6ac65514c4f891db29d2579aa653 | 805 | py | Python | credoscript/contrib/chemblws.py | tlb-lab/credoscript | 32bdf08d84703dc2062dae4df1a95587d36c3cf7 | [
"MIT"
] | null | null | null | credoscript/contrib/chemblws.py | tlb-lab/credoscript | 32bdf08d84703dc2062dae4df1a95587d36c3cf7 | [
"MIT"
] | null | null | null | credoscript/contrib/chemblws.py | tlb-lab/credoscript | 32bdf08d84703dc2062dae4df1a95587d36c3cf7 | [
"MIT"
] | null | null | null | import json
from urllib import urlencode
from urllib2 import quote, urlopen, HTTPError, URLError
class ChEMBLWS(object):
'''
'''
def __init__(self):
'''
'''
self._url = "https://www.ebi.ac.uk/chemblws/{entity}/{target}/{query}.json"
def _get_instance(self, entity, target, query... | 25.967742 | 83 | 0.575155 | 81 | 805 | 5.555556 | 0.530864 | 0.08 | 0.075556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001789 | 0.30559 | 805 | 31 | 84 | 25.967742 | 0.80322 | 0 | 0 | 0 | 0 | 0 | 0.117898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | 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 |
883bb22b8b20ddeb60f0a1eb5b5433ffe41730ef | 1,281 | py | Python | src/collective/eeafaceted/z3ctable/tests/vocabularies.py | collective/collective.eeafaceted.z3ctable | e19c47a1e4ed96149e3e899f70c073ea82d86f0a | [
"BSD-3-Clause"
] | 1 | 2017-10-18T10:58:33.000Z | 2017-10-18T10:58:33.000Z | src/collective/eeafaceted/z3ctable/tests/vocabularies.py | collective/collective.eeafaceted.z3ctable | e19c47a1e4ed96149e3e899f70c073ea82d86f0a | [
"BSD-3-Clause"
] | 3 | 2020-04-30T17:55:09.000Z | 2020-12-16T17:19:02.000Z | src/collective/eeafaceted/z3ctable/tests/vocabularies.py | collective/collective.eeafaceted.z3ctable | e19c47a1e4ed96149e3e899f70c073ea82d86f0a | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
from zope.interface import implements
from zope.schema.vocabulary import SimpleVocabulary
from zope.schema.interfaces import IVocabularyFactory
from zope.schema.vocabulary import SimpleTerm
from plone.memoize.instance import memoize
class TestingVocabulary(object):
implements(IVocabularyFactor... | 32.846154 | 91 | 0.715847 | 133 | 1,281 | 6.744361 | 0.315789 | 0.060201 | 0.12709 | 0.180602 | 0.497213 | 0.430323 | 0.430323 | 0.430323 | 0.234114 | 0.234114 | 0 | 0.023563 | 0.171741 | 1,281 | 38 | 92 | 33.710526 | 0.821866 | 0.01171 | 0 | 0.4 | 0 | 0 | 0.2304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.2 | 0 | 0.44 | 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 |
883cab3d719928585b7a608bef9070a24ced42be | 1,504 | py | Python | Project/pix2pix_dense/loss.py | Kaustubh1Verma/CS671_Deep-Learning_2019 | 062002a1369dc962feb52d3c9561a3f1153e0f84 | [
"MIT"
] | null | null | null | Project/pix2pix_dense/loss.py | Kaustubh1Verma/CS671_Deep-Learning_2019 | 062002a1369dc962feb52d3c9561a3f1153e0f84 | [
"MIT"
] | null | null | null | Project/pix2pix_dense/loss.py | Kaustubh1Verma/CS671_Deep-Learning_2019 | 062002a1369dc962feb52d3c9561a3f1153e0f84 | [
"MIT"
] | null | null | null | from tensorflow.python.keras.models import Sequential
from tensorflow.python.keras.layers.core import Flatten, Dense, Dropout
from tensorflow.python.keras.layers.convolutional import Convolution2D, MaxPooling2D, ZeroPadding2D
from tensorflow.python.keras.optimizers import SGD
import cv2
from tensorflow.python.keras.app... | 37.6 | 99 | 0.784574 | 231 | 1,504 | 4.904762 | 0.402597 | 0.112974 | 0.148279 | 0.154457 | 0.229479 | 0.11474 | 0.049426 | 0.049426 | 0 | 0 | 0 | 0.037679 | 0.117686 | 1,504 | 40 | 100 | 37.6 | 0.816127 | 0.075133 | 0 | 0 | 0 | 0 | 0.043197 | 0.035277 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.363636 | 0.030303 | 0.606061 | 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 |
883f348ebfe03a9fed833e1eae92604f5b128595 | 1,631 | py | Python | tickets/migrations/0001_initial.py | mcm66103/ez-django | 2e097facc4fac99b9bae450147319120ba908902 | [
"MIT"
] | 1 | 2019-11-15T14:13:22.000Z | 2019-11-15T14:13:22.000Z | tickets/migrations/0001_initial.py | mcm66103/ez-django | 2e097facc4fac99b9bae450147319120ba908902 | [
"MIT"
] | 11 | 2019-12-20T13:15:03.000Z | 2022-03-12T00:04:36.000Z | tickets/migrations/0001_initial.py | mcm66103/ez-django | 2e097facc4fac99b9bae450147319120ba908902 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.13 on 2021-02-25 00:30
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('websites', '0001_initial'),
migrations.swappable_dependency(se... | 45.305556 | 235 | 0.623544 | 180 | 1,631 | 5.511111 | 0.438889 | 0.040323 | 0.056452 | 0.08871 | 0.344758 | 0.298387 | 0.233871 | 0.233871 | 0.233871 | 0.233871 | 0 | 0.019841 | 0.227468 | 1,631 | 35 | 236 | 46.6 | 0.76746 | 0.028204 | 0 | 0 | 1 | 0 | 0.143399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
884147b55166ddf2cf23c1e8ab979653b11bdb83 | 310 | py | Python | bot/urls.py | GautamPanickar/PanikarsBot | 03d1a9715686c65652cf6540cba6c6ab659bd334 | [
"MIT"
] | 1 | 2017-11-27T05:10:26.000Z | 2017-11-27T05:10:26.000Z | bot/urls.py | GautamPanickar/PanikarsBot | 03d1a9715686c65652cf6540cba6c6ab659bd334 | [
"MIT"
] | null | null | null | bot/urls.py | GautamPanickar/PanikarsBot | 03d1a9715686c65652cf6540cba6c6ab659bd334 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^submit', views.submit, name='submit'),
]
# a dummy method for making db operations newboston video tutorial
#url(r'^(?P<message_id>[0-9]+)/$', views.details, name='details'),
| 28.181818 | 67 | 0.651613 | 44 | 310 | 4.568182 | 0.636364 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0.167742 | 310 | 10 | 68 | 31 | 0.771318 | 0.416129 | 0 | 0 | 0 | 0 | 0.119048 | 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 |
8841b2e981c6812b41e14ff54bd6678622303f91 | 1,939 | py | Python | swd/military_track.py | dfomin/7wd-engine | df22f80855f1c6be97d0204b83d6c95f4586be3b | [
"MIT"
] | null | null | null | swd/military_track.py | dfomin/7wd-engine | df22f80855f1c6be97d0204b83d6c95f4586be3b | [
"MIT"
] | null | null | null | swd/military_track.py | dfomin/7wd-engine | df22f80855f1c6be97d0204b83d6c95f4586be3b | [
"MIT"
] | null | null | null | from typing import Callable, Optional
import numpy as np
from .states.military_state_track import MilitaryTrackState
class MilitaryTrack:
@staticmethod
def apply_shields(state: MilitaryTrackState,
player_index: int,
shields: int,
military_tok... | 35.907407 | 108 | 0.620423 | 229 | 1,939 | 5.069869 | 0.209607 | 0.156761 | 0.190353 | 0.098191 | 0.504737 | 0.291128 | 0.291128 | 0.237726 | 0.146426 | 0.074074 | 0 | 0.030679 | 0.293966 | 1,939 | 53 | 109 | 36.584906 | 0.817385 | 0 | 0 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.066667 | 0 | 0.377778 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
884c7b5f328e5b572ff67e4ba7d513e05db304fd | 4,758 | py | Python | doc/ext/genfortran.py | VACUMM/xoa | c6a0d860528cf33ae15c77fa111f95daab0321c0 | [
"Apache-2.0"
] | 7 | 2021-04-08T08:46:30.000Z | 2022-02-07T11:19:51.000Z | doc/ext/genfortran.py | VACUMM/xoa | c6a0d860528cf33ae15c77fa111f95daab0321c0 | [
"Apache-2.0"
] | 29 | 2021-02-18T10:27:26.000Z | 2022-03-25T08:29:04.000Z | doc/ext/genfortran.py | VACUMM/xoa | c6a0d860528cf33ae15c77fa111f95daab0321c0 | [
"Apache-2.0"
] | 2 | 2020-04-30T17:20:46.000Z | 2022-03-18T14:29:14.000Z | """Generate files to declare fortran functions"""
import os
import re
import logging
import importlib
from docutils.statemachine import string2lines
from sphinx.util.docutils import SphinxDirective
path_pat_mod_dir = os.path.join("{gendir}", "{mod_name}")
path_pat_mod_file = os.path.join(path_pat_mod_dir, "index.rs... | 33.272727 | 71 | 0.568306 | 634 | 4,758 | 4.066246 | 0.222397 | 0.043445 | 0.023274 | 0.020171 | 0.147013 | 0.086889 | 0.076028 | 0.076028 | 0 | 0 | 0 | 0.003259 | 0.290668 | 4,758 | 142 | 72 | 33.507042 | 0.760593 | 0.042034 | 0 | 0.153846 | 1 | 0 | 0.14858 | 0.048646 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048077 | false | 0 | 0.067308 | 0 | 0.163462 | 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 |
884e5fdfc3ee2e723f31c846c93d0dbb9791bad9 | 3,488 | py | Python | tools/pack.py | sts-q/Einherjar | dcbeb8ff408baf9678edbc6f8e2e149b0ec74fb9 | [
"MIT"
] | 20 | 2015-07-24T04:42:50.000Z | 2022-03-17T22:01:20.000Z | tools/pack.py | narke/oldrg | f359d2ec24e1c912c08144870c324b480bb62759 | [
"MIT"
] | 1 | 2018-01-01T15:52:47.000Z | 2018-01-01T15:52:47.000Z | tools/pack.py | narke/oldrg | f359d2ec24e1c912c08144870c324b480bb62759 | [
"MIT"
] | 2 | 2021-03-27T23:21:54.000Z | 2021-06-25T17:06:36.000Z | #!/usr/bin/env python
# Copyright (c) Andrei Dragomir.
# All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
code = ' rtoeani' + 'smcylgfw' + 'dvpbhxuq' + '01234567' + \
'89j-k.z/' + ';:!+@*,?'
asm_encodings = [
'__',
... | 20.16185 | 97 | 0.518922 | 403 | 3,488 | 4.295285 | 0.459057 | 0.025997 | 0.034662 | 0.01502 | 0.257655 | 0.236857 | 0.236857 | 0.236857 | 0.236857 | 0.236857 | 0 | 0.186145 | 0.325401 | 3,488 | 172 | 98 | 20.27907 | 0.549511 | 0.089736 | 0 | 0.083916 | 0 | 0 | 0.070959 | 0 | 0.006993 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.006993 | null | null | 0.006993 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
884f1f5bd99a218f6d74a3df2a1dbf5902833b5f | 1,059 | py | Python | CSIKit/tools/convert_json.py | FredeJ/CSIKit | 5ce1b114be3d8b24a05576e5345ef43c9e5cd136 | [
"MIT"
] | 67 | 2020-03-14T03:32:06.000Z | 2022-03-31T18:51:57.000Z | CSIKit/tools/convert_json.py | FredeJ/CSIKit | 5ce1b114be3d8b24a05576e5345ef43c9e5cd136 | [
"MIT"
] | 25 | 2020-09-23T16:43:58.000Z | 2022-03-30T13:20:16.000Z | CSIKit/tools/convert_json.py | FredeJ/CSIKit | 5ce1b114be3d8b24a05576e5345ef43c9e5cd136 | [
"MIT"
] | 18 | 2020-04-01T09:51:35.000Z | 2022-03-09T12:46:24.000Z | import json
from CSIKit.util.csitools import get_CSI
from CSIKit.reader import get_reader
def generate_json(path: str, metric: str="amplitude") -> str:
"""
This function converts a csi_trace into the json format. It works for single entry or the whole trace.
Parameters:
path (str): Pa... | 33.09375 | 110 | 0.635505 | 144 | 1,059 | 4.472222 | 0.430556 | 0.037267 | 0.02795 | 0.040373 | 0.059006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245515 | 1,059 | 32 | 111 | 33.09375 | 0.806008 | 0.149197 | 0 | 0 | 1 | 0 | 0.12933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.142857 | 0 | 0.428571 | 0.190476 | 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 |
8851e81127f627eb9a70b31763603164b7c61783 | 7,499 | py | Python | neutron/tests/api/test_bgp_speaker_extensions.py | wwriverrat/neutron | 1d0aadb6fcf40048e899df6688bda98744c2a999 | [
"Apache-2.0"
] | 1 | 2016-03-25T21:13:13.000Z | 2016-03-25T21:13:13.000Z | neutron/tests/api/test_bgp_speaker_extensions.py | wwriverrat/neutron | 1d0aadb6fcf40048e899df6688bda98744c2a999 | [
"Apache-2.0"
] | 1 | 2021-03-21T11:39:22.000Z | 2021-03-21T11:39:22.000Z | neutron/tests/api/test_bgp_speaker_extensions.py | wwriverrat/neutron | 1d0aadb6fcf40048e899df6688bda98744c2a999 | [
"Apache-2.0"
] | 1 | 2021-03-21T11:37:18.000Z | 2021-03-21T11:37:18.000Z | # Copyright 2016 Hewlett Packard Enterprise Development Company LP
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | 43.097701 | 79 | 0.668089 | 986 | 7,499 | 4.729209 | 0.19574 | 0.220888 | 0.087497 | 0.090071 | 0.557367 | 0.493459 | 0.469226 | 0.420974 | 0.380871 | 0.353849 | 0 | 0.027203 | 0.240165 | 7,499 | 173 | 80 | 43.346821 | 0.791155 | 0.107614 | 0 | 0.344538 | 0 | 0 | 0.110392 | 0.048193 | 0 | 0 | 0 | 0 | 0.07563 | 1 | 0.142857 | false | 0.008403 | 0.042017 | 0.05042 | 0.302521 | 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 |
8852614d95ee8d5053c8e48db3eecb58ca227b4d | 944 | py | Python | supports/integration-test/dfsio_create_file.py | ypang2017/Test | 6f3cb231b2030f5c02f030730153e2a8516df2b2 | [
"Apache-2.0"
] | 2 | 2018-02-02T08:18:20.000Z | 2020-11-16T11:03:23.000Z | supports/integration-test/dfsio_create_file.py | ypang2017/Compression | 6f3cb231b2030f5c02f030730153e2a8516df2b2 | [
"Apache-2.0"
] | null | null | null | supports/integration-test/dfsio_create_file.py | ypang2017/Compression | 6f3cb231b2030f5c02f030730153e2a8516df2b2 | [
"Apache-2.0"
] | null | null | null | import sys
from util import *
def create_file_DFSIO(num):
"""
Please use this script in namenode
Each time create 10K * 2 files (10K in io_data and 10K in io_control).
Then, move these data to TEST_DIR.
"""
dfsio_cmd = "hadoop jar /usr/lib/hadoop-mapreduce/hadoop-" + \
"mapreduce-clien... | 30.451613 | 74 | 0.610169 | 122 | 944 | 4.516393 | 0.57377 | 0.054446 | 0.054446 | 0.065336 | 0.15971 | 0.15971 | 0.15971 | 0.15971 | 0 | 0 | 0 | 0.023599 | 0.28178 | 944 | 30 | 75 | 31.466667 | 0.789086 | 0 | 0 | 0 | 0 | 0 | 0.352564 | 0.169231 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.047619 | 0.095238 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
885f22af3ee9714129a1257ed47d12d619b26d86 | 5,447 | py | Python | app.py | IndieDragoness/portfolio | 2f9e2aee9a67d2affab6298aedcc690830f6d01c | [
"Apache-2.0"
] | null | null | null | app.py | IndieDragoness/portfolio | 2f9e2aee9a67d2affab6298aedcc690830f6d01c | [
"Apache-2.0"
] | null | null | null | app.py | IndieDragoness/portfolio | 2f9e2aee9a67d2affab6298aedcc690830f6d01c | [
"Apache-2.0"
] | null | null | null | from flask import Flask, render_template, request, send_file
from azure.cosmos import exceptions, CosmosClient, PartitionKey
from azure.core.exceptions import ResourceExistsError
from scripts import utilities
import logging
import json
import os
# ================================== #
# _____ ... | 38.907143 | 138 | 0.666973 | 634 | 5,447 | 5.335962 | 0.272871 | 0.047295 | 0.049956 | 0.042566 | 0.03961 | 0.023056 | 0.023056 | 0.023056 | 0.023056 | 0 | 0 | 0 | 0.192399 | 5,447 | 140 | 139 | 38.907143 | 0.769038 | 0.312098 | 0 | 0 | 0 | 0.013158 | 0.287605 | 0.085336 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144737 | false | 0 | 0.092105 | 0.118421 | 0.381579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
886cbb13bcd2fc6b82afb7c9a6304cad57ad1dd5 | 2,919 | py | Python | jakomics/kegg.py | jeffkimbrel/jakomics | 7da6239d39cd78d6d47daf7188c20612167acc11 | [
"MIT"
] | null | null | null | jakomics/kegg.py | jeffkimbrel/jakomics | 7da6239d39cd78d6d47daf7188c20612167acc11 | [
"MIT"
] | null | null | null | jakomics/kegg.py | jeffkimbrel/jakomics | 7da6239d39cd78d6d47daf7188c20612167acc11 | [
"MIT"
] | null | null | null | import uuid
import os
import subprocess
import re
import pandas as pd
from jakomics import colors
from jakomics.utilities import system_call
class KOFAM:
def __init__(self, line, t_scale=1.0):
parsed = re.split('\t', line)
self.parsed = parsed
self.gene = parsed[1]
self.KO = par... | 31.053191 | 187 | 0.548476 | 362 | 2,919 | 4.292818 | 0.328729 | 0.058559 | 0.028314 | 0.023166 | 0.03861 | 0.03861 | 0.03861 | 0.03861 | 0.03861 | 0 | 0 | 0.007716 | 0.334019 | 2,919 | 93 | 188 | 31.387097 | 0.791667 | 0.05173 | 0 | 0.088235 | 0 | 0.029412 | 0.140988 | 0.008358 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102941 | false | 0.058824 | 0.102941 | 0.044118 | 0.308824 | 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 |
887388c44503d226a9ddc0dfaf5ebb9a2d499179 | 1,977 | py | Python | cirosantilli/utils.py | cirosantilli/python-utils | 3854d2c7973c6382f76e311423c219bccacb8c1d | [
"MIT"
] | 1 | 2018-10-04T15:29:04.000Z | 2018-10-04T15:29:04.000Z | cirosantilli/utils.py | cirosantilli/python-utils | 3854d2c7973c6382f76e311423c219bccacb8c1d | [
"MIT"
] | null | null | null | cirosantilli/utils.py | cirosantilli/python-utils | 3854d2c7973c6382f76e311423c219bccacb8c1d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import re
import os.path
STDERR_SEPARATOR0 = '=' * 60
def iterify(iterable):
if isinstance(iterable, basestring):
iterable = [iterable]
try:
iter(iterable)
except TypeError:
iterable = [iterable]
return iterable
def resub(resubpair,target):
"""takes ... | 33.508475 | 100 | 0.722812 | 268 | 1,977 | 5.070896 | 0.36194 | 0.039735 | 0.055923 | 0.07064 | 0.280353 | 0.187638 | 0.173657 | 0.122149 | 0.07064 | 0.07064 | 0 | 0.013682 | 0.149722 | 1,977 | 58 | 101 | 34.086207 | 0.794765 | 0.038442 | 0 | 0.162162 | 0 | 0 | 0.027944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054054 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
88770e3e5f4bfd0794b46ca6fbe9106886f86ae6 | 710 | py | Python | whack_a_bug_api/__init__.py | timothyakinyelu/whack-a-bug-api | f7cc7245b268bbbdf2a3d6f1314ae3cecc8b9da8 | [
"MIT"
] | null | null | null | whack_a_bug_api/__init__.py | timothyakinyelu/whack-a-bug-api | f7cc7245b268bbbdf2a3d6f1314ae3cecc8b9da8 | [
"MIT"
] | null | null | null | whack_a_bug_api/__init__.py | timothyakinyelu/whack-a-bug-api | f7cc7245b268bbbdf2a3d6f1314ae3cecc8b9da8 | [
"MIT"
] | null | null | null | from flask import Flask
from whack_a_bug_api.helpers.load_config import loadConfig
from flask_login import LoginManager
login_manager = LoginManager()
def createApp():
app = Flask(__name__, instance_relative_config=True)
mode = app.env
Config = loadConfig(mode)
app.config.from_object(Config)
... | 26.296296 | 66 | 0.701408 | 97 | 710 | 4.814433 | 0.42268 | 0.077088 | 0.085653 | 0.111349 | 0.137045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235211 | 710 | 27 | 67 | 26.296296 | 0.860037 | 0.028169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.333333 | 0 | 0.444444 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
887b307b77c08d5e56cafbac884a9ee5e17ae706 | 4,503 | py | Python | backend/tab_widget/item.py | JoyPang123/facial_identity_system | 073b98c0bb0eaa22fd5b1ba1da4d72ccead52106 | [
"MIT"
] | 6 | 2021-12-27T15:56:34.000Z | 2022-03-19T03:49:55.000Z | backend/tab_widget/item.py | JoyPang123/facial_identity_system | 073b98c0bb0eaa22fd5b1ba1da4d72ccead52106 | [
"MIT"
] | null | null | null | backend/tab_widget/item.py | JoyPang123/facial_identity_system | 073b98c0bb0eaa22fd5b1ba1da4d72ccead52106 | [
"MIT"
] | null | null | null | import numpy as np
import torch
from model.triplet.loss import TripletLoss
import torchvision.transforms as transforms
from PyQt5 import QtWidgets
class CustomItem(QtWidgets.QWidget):
def __init__(self, parent=None):
super().__init__(parent)
self.pass_info = QtWidgets.QLabel()
self.time_i... | 34.113636 | 99 | 0.580724 | 480 | 4,503 | 5.283333 | 0.345833 | 0.070978 | 0.06388 | 0.043375 | 0.185331 | 0.16877 | 0.11041 | 0.037855 | 0 | 0 | 0 | 0.007754 | 0.31268 | 4,503 | 131 | 100 | 34.374046 | 0.810662 | 0.039307 | 0 | 0.094118 | 0 | 0 | 0.043816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.058824 | 0 | 0.152941 | 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 |
889008ddd2935f8067dee932b9f081057b69e0db | 469 | py | Python | tests/integration/test_integration_delivery_method.py | pwitab/visma | ffa6698738fcc1be9de727e7fe77cce30310f830 | [
"BSD-3-Clause"
] | 5 | 2018-08-10T19:12:48.000Z | 2021-07-08T12:43:24.000Z | tests/integration/test_integration_delivery_method.py | pwitab/visma | ffa6698738fcc1be9de727e7fe77cce30310f830 | [
"BSD-3-Clause"
] | 16 | 2018-06-17T18:51:05.000Z | 2021-01-10T10:44:36.000Z | tests/integration/test_integration_delivery_method.py | pwitab/visma | ffa6698738fcc1be9de727e7fe77cce30310f830 | [
"BSD-3-Clause"
] | 3 | 2019-03-05T15:01:13.000Z | 2021-06-15T14:35:37.000Z | import pytest
from visma.models import DeliveryMethod
class TestDeliveryMethod:
@pytest.fixture()
def method(self):
yield DeliveryMethod.objects.all().first()
def test_list_delivery_methods(self):
methods = DeliveryMethod.objects.all()
assert len(methods) is not 0
def tes... | 21.318182 | 63 | 0.705757 | 55 | 469 | 5.872727 | 0.490909 | 0.195046 | 0.148607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002695 | 0.208955 | 469 | 22 | 64 | 21.318182 | 0.867925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.25 | 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 |
889294b238cea3d2841834aba54858236cf0568c | 585 | py | Python | tests/test_updater.py | amjadsaadeh/dvc | f405168619c2bb85430c4ded2585b57ebfd01bd7 | [
"Apache-2.0"
] | null | null | null | tests/test_updater.py | amjadsaadeh/dvc | f405168619c2bb85430c4ded2585b57ebfd01bd7 | [
"Apache-2.0"
] | null | null | null | tests/test_updater.py | amjadsaadeh/dvc | f405168619c2bb85430c4ded2585b57ebfd01bd7 | [
"Apache-2.0"
] | null | null | null | import os
from tests.basic_env import TestDvc
class TestUpdater(TestDvc):
def test(self):
# NOTE: only test on travis CRON to avoid generating too much logs
travis = os.getenv('TRAVIS') == 'true'
if not travis:
return
cron = os.getenv('TRAVIS_EVENT_TYPE') == 'cron'
... | 22.5 | 74 | 0.562393 | 74 | 585 | 4.405405 | 0.5 | 0.07362 | 0.128834 | 0.174847 | 0.174847 | 0.174847 | 0.174847 | 0.174847 | 0 | 0 | 0 | 0 | 0.323077 | 585 | 25 | 75 | 23.4 | 0.823232 | 0.109402 | 0 | 0.294118 | 0 | 0 | 0.067437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.352941 | 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 |
8898e7a47b529ffbaff6f572493f02e445004d4b | 2,662 | py | Python | scripts/create_ec2.py | noahhai/autovpn | 549825e4aa78095238c43f2ecf2bfce66028f358 | [
"MIT"
] | null | null | null | scripts/create_ec2.py | noahhai/autovpn | 549825e4aa78095238c43f2ecf2bfce66028f358 | [
"MIT"
] | null | null | null | scripts/create_ec2.py | noahhai/autovpn | 549825e4aa78095238c43f2ecf2bfce66028f358 | [
"MIT"
] | null | null | null | from __future__ import print_function
import time
import boto
import boto.ec2
import sys
import sys
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
keyname=sys.argv[1]
instance_type=sys.argv[2]
region=sys.argv[3]
ami=sys.argv[4]
port=sys.argv[5]
if region:
conn_region = boto.ec2.connect_... | 29.910112 | 114 | 0.59166 | 331 | 2,662 | 4.507553 | 0.308157 | 0.073727 | 0.030161 | 0.032172 | 0.230563 | 0.230563 | 0.230563 | 0.150134 | 0.150134 | 0.092493 | 0 | 0.025424 | 0.290759 | 2,662 | 89 | 115 | 29.910112 | 0.764831 | 0 | 0 | 0.287671 | 0 | 0 | 0.08648 | 0.018127 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.082192 | null | null | 0.082192 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
88a2a078f714be4784145ada6aefd83ba1fe6d5d | 1,201 | py | Python | back_office/helpers/diff.py | Envinorma/back-office | 2d2c082d40b8c3cb58d2bc0295801baf16cb983d | [
"MIT"
] | null | null | null | back_office/helpers/diff.py | Envinorma/back-office | 2d2c082d40b8c3cb58d2bc0295801baf16cb983d | [
"MIT"
] | 25 | 2021-05-17T15:33:34.000Z | 2021-09-28T16:43:12.000Z | back_office/helpers/diff.py | Envinorma/back-office | 2d2c082d40b8c3cb58d2bc0295801baf16cb983d | [
"MIT"
] | null | null | null | import string
from typing import List
from envinorma.models import ArreteMinisteriel, StructuredText
from text_diff import TextDifferences, text_differences
from unidecode import unidecode
_SIMPLE_CHARS = set(string.ascii_letters + string.digits + string.whitespace)
def _clean_line(line: str) -> str:
res = str(... | 36.393939 | 120 | 0.781016 | 163 | 1,201 | 5.466258 | 0.269939 | 0.072952 | 0.047138 | 0.053872 | 0.094276 | 0.094276 | 0.094276 | 0 | 0 | 0 | 0 | 0.000971 | 0.142381 | 1,201 | 32 | 121 | 37.53125 | 0.864078 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.227273 | 0 | 0.636364 | 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 |
88a37165094da9e43979fb385a593dcbc99a918b | 13,315 | py | Python | simplebot.py | dmarx/VideoLinkBot | d3a501ebf47125b6b61aae9dc6943eaa343179d6 | [
"MIT"
] | 7 | 2015-11-11T18:09:57.000Z | 2021-11-08T09:59:01.000Z | simplebot.py | dmarx/VideoLinkBot | d3a501ebf47125b6b61aae9dc6943eaa343179d6 | [
"MIT"
] | null | null | null | simplebot.py | dmarx/VideoLinkBot | d3a501ebf47125b6b61aae9dc6943eaa343179d6 | [
"MIT"
] | 2 | 2017-05-10T16:32:51.000Z | 2019-09-13T17:40:13.000Z | """
Reddit bot that scrapes a post for videoo links
and posts the collection in a table as a comment.
This script is designed for scraping a single post.
Run as follows:
import simplebot as s
s.login(_user=username, _pass=password)
post_aggregate_links(submisison_id)
To run the bot as a contin... | 41.095679 | 125 | 0.597221 | 1,608 | 13,315 | 4.816542 | 0.242537 | 0.016269 | 0.007101 | 0.009296 | 0.128083 | 0.099935 | 0.048806 | 0.048806 | 0.039509 | 0.039509 | 0 | 0.005859 | 0.307773 | 13,315 | 323 | 126 | 41.22291 | 0.834436 | 0.115959 | 0 | 0.176955 | 0 | 0.00823 | 0.172364 | 0.007896 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.020576 | 0.041152 | null | null | 0.152263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
88a41619da6cd33d9b559e5934d1ef541bdba187 | 6,963 | py | Python | GibbsSampling_3.py | srinirajaraman/Machine-Learning | 2635061db54c608342f7d459378bc54c108bdaff | [
"MIT"
] | null | null | null | GibbsSampling_3.py | srinirajaraman/Machine-Learning | 2635061db54c608342f7d459378bc54c108bdaff | [
"MIT"
] | null | null | null | GibbsSampling_3.py | srinirajaraman/Machine-Learning | 2635061db54c608342f7d459378bc54c108bdaff | [
"MIT"
] | null | null | null | '''
Reference: Algorithm 10.1 from Gibbs sampling for a discrete undirected model
Book : Simon J.D Prince
Notation details:
vector - vec
matrix - mat
Author:Srinivas R
Dept of EECE
Computational Ocularscience Lab
Date: 22/9/2016
'''
#Import packages
import numpy as np
import matplotlib.pyplot as plt
import math a... | 32.537383 | 173 | 0.669683 | 1,096 | 6,963 | 3.991788 | 0.237226 | 0.022857 | 0.015086 | 0.0256 | 0.1984 | 0.173257 | 0.117943 | 0.0928 | 0.0928 | 0.0928 | 0 | 0.026472 | 0.251328 | 6,963 | 214 | 174 | 32.537383 | 0.812776 | 0.3082 | 0 | 0.021053 | 0 | 0 | 0.014165 | 0.005483 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042105 | null | null | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
88a8aad4d034f5ec3c38f4d2e733c971896e8741 | 824 | py | Python | docker/src/clawpack-5.3.1/pyclaw/src/petclaw/solution.py | ian-r-rose/visualization | ed6d9fab95eb125e7340ab3fad3ed114ed3214af | [
"CC-BY-4.0"
] | 11 | 2017-01-04T18:19:48.000Z | 2021-02-21T01:46:33.000Z | docker/src/clawpack-5.3.1/pyclaw/src/petclaw/solution.py | ian-r-rose/visualization | ed6d9fab95eb125e7340ab3fad3ed114ed3214af | [
"CC-BY-4.0"
] | 8 | 2016-09-22T20:49:51.000Z | 2019-09-06T23:28:13.000Z | docker/src/clawpack-5.3.1/pyclaw/src/petclaw/solution.py | ian-r-rose/visualization | ed6d9fab95eb125e7340ab3fad3ed114ed3214af | [
"CC-BY-4.0"
] | 13 | 2016-09-22T20:20:06.000Z | 2020-07-13T14:48:32.000Z | from clawpack import pyclaw
from clawpack.pyclaw.solution import Solution
class Solution(Solution):
""" Parallel Solution class.
"""
__doc__ += pyclaw.util.add_parent_doc(pyclaw.Solution)
def get_read_func(self, file_format):
from clawpack.petclaw import io
if file_format == 'petsc':
... | 29.428571 | 75 | 0.631068 | 102 | 824 | 4.921569 | 0.323529 | 0.199203 | 0.047809 | 0.071713 | 0.474104 | 0.394422 | 0.394422 | 0.394422 | 0.394422 | 0.394422 | 0 | 0.006791 | 0.285194 | 824 | 27 | 76 | 30.518519 | 0.845501 | 0.029126 | 0 | 0.3 | 0 | 0 | 0.096692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
88a9a4536c485ed64b2b02d6ab89fa35f1354065 | 630 | py | Python | bert_sklearn/model/pytorch_pretrained/__init__.py | ezesalta/bert-sklearn | 7f3cf9612fb69f3bda83673f4759cbcae633b006 | [
"Apache-2.0"
] | null | null | null | bert_sklearn/model/pytorch_pretrained/__init__.py | ezesalta/bert-sklearn | 7f3cf9612fb69f3bda83673f4759cbcae633b006 | [
"Apache-2.0"
] | null | null | null | bert_sklearn/model/pytorch_pretrained/__init__.py | ezesalta/bert-sklearn | 7f3cf9612fb69f3bda83673f4759cbcae633b006 | [
"Apache-2.0"
] | null | null | null | __version__ = "0.6.1"
from .tokenization import BertTokenizer, BasicTokenizer, WordpieceTokenizer
from .modeling import (BertConfig, BertModel, BertForPreTraining,
BertForMaskedLM, BertForNextSentencePrediction,
BertForSequenceClassification, BertForMultipleChoice,
... | 42 | 76 | 0.711111 | 48 | 630 | 9 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006316 | 0.246032 | 630 | 14 | 77 | 45 | 0.903158 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
88af7f6cd72b878c90455ff543aece289828e6e0 | 6,440 | py | Python | 2019/day15.py | dimkarakostas/advent-of-code | fb9c12eabc3342c607e24da1edeb7e5643400263 | [
"MIT"
] | 2 | 2018-12-06T09:39:35.000Z | 2020-12-18T19:38:40.000Z | 2019/day15.py | dimkarakostas/advent-of-code | fb9c12eabc3342c607e24da1edeb7e5643400263 | [
"MIT"
] | null | null | null | 2019/day15.py | dimkarakostas/advent-of-code | fb9c12eabc3342c607e24da1edeb7e5643400263 | [
"MIT"
] | null | null | null | class Program:
def __init__(self, memory):
self.memory = memory
self.halted, self.outputs, self.idx, self.rel_base = False, [], 0, 0
def run(self, inputs):
used_inputs = 0
while self.idx < len(self.memory):
instruction = str(self.memory[self.idx])
opcode,... | 37.44186 | 101 | 0.436801 | 834 | 6,440 | 3.245803 | 0.153477 | 0.096047 | 0.052826 | 0.047285 | 0.344293 | 0.232361 | 0.199113 | 0.146657 | 0.146657 | 0.146657 | 0 | 0.034944 | 0.431211 | 6,440 | 171 | 102 | 37.660819 | 0.704068 | 0.028416 | 0 | 0.130435 | 0 | 0 | 0.019526 | 0 | 0 | 0 | 0 | 0 | 0.024845 | 0 | null | null | 0 | 0.018634 | null | null | 0.018634 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
88b0af81a6af5dcd2beb4f0fcb24f2cc3156002a | 1,821 | py | Python | lec2-1.py | cutz-j/PyMC | aff3a277f0ebdd0fb46c65411279f0220a4beb2a | [
"MIT"
] | null | null | null | lec2-1.py | cutz-j/PyMC | aff3a277f0ebdd0fb46c65411279f0220a4beb2a | [
"MIT"
] | null | null | null | lec2-1.py | cutz-j/PyMC | aff3a277f0ebdd0fb46c65411279f0220a4beb2a | [
"MIT"
] | null | null | null | import pymc as pm
import matplotlib.pyplot as plt
import numpy as np
plt.rc('font', family='Malgun Gothic')
lambda_ = pm.Exponential("poisson_param", 1)
data_generator = pm.Poisson("data_generater", lambda_)
data_plus_one = data_generator + 1
print(lambda_.children)
print(data_generator.parents)
# value
print(lambda... | 18.393939 | 68 | 0.657331 | 284 | 1,821 | 4.105634 | 0.401408 | 0.051458 | 0.03259 | 0.030875 | 0.066895 | 0.066895 | 0.066895 | 0.066895 | 0.066895 | 0 | 0 | 0.050858 | 0.136189 | 1,821 | 99 | 69 | 18.393939 | 0.690401 | 0.04503 | 0 | 0.113208 | 1 | 0 | 0.08521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.056604 | 0 | 0.09434 | 0.226415 | 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 |
88b429e7c57361176290afa3eadbaffa74d1dcdc | 1,916 | py | Python | PythonProjects/TinderLike/main.py | carlosmpr/CodePortafolio | 8b8bddab073970ef3dacc0035dfc91618f1f5b9d | [
"MIT"
] | null | null | null | PythonProjects/TinderLike/main.py | carlosmpr/CodePortafolio | 8b8bddab073970ef3dacc0035dfc91618f1f5b9d | [
"MIT"
] | null | null | null | PythonProjects/TinderLike/main.py | carlosmpr/CodePortafolio | 8b8bddab073970ef3dacc0035dfc91618f1f5b9d | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
chrome_driver_location = "E:\Development\chromedriver.exe"
driver = webdriver.Chrome(executable_path=chrome_driver_location)
driver.get("https://tinder.com/app/recs")
base_window = driver.window_handles[0]
login = driver.find_ele... | 40.765957 | 180 | 0.759395 | 313 | 1,916 | 4.434505 | 0.242812 | 0.121037 | 0.07781 | 0.136888 | 0.395533 | 0.32781 | 0.257205 | 0.176513 | 0.176513 | 0.120317 | 0 | 0.024136 | 0.048539 | 1,916 | 46 | 181 | 41.652174 | 0.737246 | 0 | 0 | 0.162162 | 0 | 0.135135 | 0.362069 | 0.34117 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.108108 | 0.081081 | 0 | 0.081081 | 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 |
31efe1cce10c5dd6ab0ee2ac967cac6c3e978e0c | 2,486 | py | Python | coursera.py | ChutianShen/pointnet_kitti | 6ebd2c7c203c4fcc8172f306c85e55ea06429ba5 | [
"MIT"
] | null | null | null | coursera.py | ChutianShen/pointnet_kitti | 6ebd2c7c203c4fcc8172f306c85e55ea06429ba5 | [
"MIT"
] | null | null | null | coursera.py | ChutianShen/pointnet_kitti | 6ebd2c7c203c4fcc8172f306c85e55ea06429ba5 | [
"MIT"
] | null | null | null | import json
db = []
query_content_dict_index = {}
query_content_dict_index['id'] = 0
query_content_dict_index['last'] = 1
query_content_dict_index['first'] = 2
query_content_dict_index['location'] = 3
query_content_dict_index['active'] = 4
location_dict_index = {}
location_dict_index['city'] = 0
location_dict_index[... | 27.622222 | 155 | 0.608608 | 303 | 2,486 | 4.792079 | 0.20132 | 0.086777 | 0.110193 | 0.10124 | 0.292011 | 0.199036 | 0.140496 | 0.140496 | 0.097796 | 0.097796 | 0 | 0.019957 | 0.254224 | 2,486 | 90 | 156 | 27.622222 | 0.763215 | 0.088898 | 0 | 0.140625 | 0 | 0 | 0.088287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015625 | null | null | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
31f0540f72bae2c3ad6164aa62444dc988931df7 | 2,604 | py | Python | pomito/plugins/task/trello.py | codito/pomito | aa936982737e5ffe8ff808197d0896ee6e5239a8 | [
"MIT"
] | 1 | 2019-09-10T16:06:50.000Z | 2019-09-10T16:06:50.000Z | pomito/plugins/task/trello.py | codito/pomito | aa936982737e5ffe8ff808197d0896ee6e5239a8 | [
"MIT"
] | 3 | 2017-09-11T14:11:42.000Z | 2017-09-14T02:14:22.000Z | pomito/plugins/task/trello.py | codito/pomito | aa936982737e5ffe8ff808197d0896ee6e5239a8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Trello plugin for pomito."""
import logging
from trello import TrelloClient
from pomito.plugins import task
from pomito.task import Task
__all__ = ['TrelloTask']
logger = logging.getLogger('pomito.plugins.task.trello')
def _create_trello_client(api_key, api_secret):
"""Create defau... | 34.72 | 88 | 0.610983 | 319 | 2,604 | 4.739812 | 0.294671 | 0.085979 | 0.029762 | 0.039683 | 0.059524 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0.002194 | 0.299923 | 2,604 | 74 | 89 | 35.189189 | 0.827208 | 0.115975 | 0 | 0 | 0 | 0 | 0.080353 | 0.011479 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.12766 | false | 0 | 0.085106 | 0.021277 | 0.297872 | 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 |
31f058fb8806b8495e8ae0689d4892ec8193cdec | 1,156 | gyp | Python | binding.gyp | royalpinto/node-cares | 6a38a49a8baf080d33d4520567f8eee5fb74f249 | [
"MIT"
] | 10 | 2015-05-13T04:20:43.000Z | 2018-12-14T03:53:17.000Z | binding.gyp | royalpinto/node-cares | 6a38a49a8baf080d33d4520567f8eee5fb74f249 | [
"MIT"
] | 8 | 2015-09-04T17:39:56.000Z | 2017-10-06T06:50:44.000Z | binding.gyp | royalpinto/node-cares | 6a38a49a8baf080d33d4520567f8eee5fb74f249 | [
"MIT"
] | 3 | 2016-03-02T16:06:23.000Z | 2017-06-03T02:23:53.000Z | {
"targets": [{
"variables": {
# Define `gcc_version` if it's not defined already
# as it is getting used below.
"gcc_version%": "unknown",
},
"target_name": "cares_wrap",
"include_dirs": [
"<!(node -e \"require('nan')\")",
... | 27.52381 | 77 | 0.459343 | 109 | 1,156 | 4.807339 | 0.66055 | 0.053435 | 0.083969 | 0.064886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004213 | 0.384083 | 1,156 | 41 | 78 | 28.195122 | 0.731742 | 0.274221 | 0 | 0.107143 | 0 | 0 | 0.387485 | 0.070999 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
31f0719a9993a4dfbbcd89cf6cc29a4c979ce82a | 914 | py | Python | Source/RenderPasses/TemporalDelayPass/Testing/testTemporalDelayPass.py | jeongsoopark/Falcor | 48aa4e28d6812ced004b56c83484de03b19526fa | [
"BSD-3-Clause"
] | 2 | 2019-11-04T03:46:56.000Z | 2019-11-05T03:25:31.000Z | Source/RenderPasses/TemporalDelayPass/Testing/testTemporalDelayPass.py | wowhyuck/Falcor | 48aa4e28d6812ced004b56c83484de03b19526fa | [
"BSD-3-Clause"
] | 8 | 2019-10-30T10:32:19.000Z | 2019-11-21T14:55:25.000Z | Source/RenderPasses/TemporalDelayPass/Testing/testTemporalDelayPass.py | wowhyuck/Falcor | 48aa4e28d6812ced004b56c83484de03b19526fa | [
"BSD-3-Clause"
] | 2 | 2019-10-31T06:34:55.000Z | 2019-11-27T16:54:42.000Z | def test_temporal_delay():
imageLoader = RenderPass("ImageLoader", {'filename': 'smoke-puff.png', 'mips': False, 'srgb': True})
depthPass = RenderPass("DepthPass")
forwardLightingPass = RenderPass("ForwardLightingPass")
temporalDelayPass = RenderPass("TemporalDelayPass", {"delay": 16})
graph = Rend... | 39.73913 | 104 | 0.751641 | 82 | 914 | 8.280488 | 0.378049 | 0.095729 | 0.079529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002484 | 0.119256 | 914 | 22 | 105 | 41.545455 | 0.840994 | 0 | 0 | 0 | 0 | 0 | 0.349015 | 0.133479 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.705882 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
31f487afb5d29e9ba51d1040a1dd31ddb4396fad | 5,841 | py | Python | nadl/core/tensor.py | heytanay/nadl | fe1684059c0de47d40d0e6c9e615e89f40e267d7 | [
"MIT"
] | 13 | 2021-02-02T11:49:08.000Z | 2021-10-14T07:45:09.000Z | nadl/core/tensor.py | heytanay/nadl | fe1684059c0de47d40d0e6c9e615e89f40e267d7 | [
"MIT"
] | 3 | 2021-02-02T13:06:43.000Z | 2021-02-02T13:13:19.000Z | nadl/core/tensor.py | heytanay/nadl | fe1684059c0de47d40d0e6c9e615e89f40e267d7 | [
"MIT"
] | 5 | 2021-02-08T07:36:17.000Z | 2021-09-30T14:46:57.000Z | import numpy as np
from ..core.ops import HiddenOps
from ..other.utils import Utils
class Tensor:
"""
Core Tensor Class
This class will be responsible for all the heavy lifting.
"""
def __init__(self, data: np.ndarray, requires_grad: bool=True, _children: tuple=(), _op: str=''):
if not isin... | 30.421875 | 191 | 0.592364 | 681 | 5,841 | 4.964758 | 0.255507 | 0.028394 | 0.031056 | 0.057675 | 0.28039 | 0.237208 | 0.18604 | 0.144928 | 0.088435 | 0.049394 | 0 | 0.002756 | 0.316727 | 5,841 | 192 | 192 | 30.421875 | 0.8444 | 0.273412 | 0 | 0.190476 | 0 | 0.011905 | 0.088356 | 0.00709 | 0 | 0 | 0 | 0 | 0.011905 | 1 | 0.261905 | false | 0 | 0.035714 | 0 | 0.488095 | 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 |
31f988ec7a9d8c9b9e7fd02a7765827683d8fe6a | 874 | py | Python | main.py | JAkkerman/EvolutionaryComputing | 03250b9f077a69ac724ecaf680763a35a7589f34 | [
"MIT"
] | 1 | 2020-09-15T12:29:40.000Z | 2020-09-15T12:29:40.000Z | main.py | JAkkerman/EvolutionaryComputing | 03250b9f077a69ac724ecaf680763a35a7589f34 | [
"MIT"
] | null | null | null | main.py | JAkkerman/EvolutionaryComputing | 03250b9f077a69ac724ecaf680763a35a7589f34 | [
"MIT"
] | null | null | null | import sys, os
sys.path.insert(0, 'evoman')
from environment import Environment
# from demo_controller import player_controller
# from controller import Controller
from test_controller import test_controller
import numpy as np
def init():
"""
Initialise game environment
"""
# create map for outputs
... | 18.595745 | 54 | 0.661327 | 105 | 874 | 5.304762 | 0.495238 | 0.125673 | 0.071813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003063 | 0.25286 | 874 | 46 | 55 | 19 | 0.849923 | 0.243707 | 0 | 0 | 0 | 0 | 0.042386 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.3 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee020a2992409559a1aaf2bb05f79428483e00da | 300 | py | Python | flight_booking_app/urls.py | Celoka/flight_booking_system | 17d0fb0f4cf4b039cc05d814e881b5f31366c538 | [
"MIT"
] | 3 | 2019-03-15T00:25:04.000Z | 2019-04-12T14:06:01.000Z | flight_booking_app/urls.py | Celoka/flight_booking_system | 17d0fb0f4cf4b039cc05d814e881b5f31366c538 | [
"MIT"
] | 9 | 2020-02-11T23:44:44.000Z | 2022-03-11T23:41:14.000Z | flight_booking_app/urls.py | Celoka/flight_booking_system | 17d0fb0f4cf4b039cc05d814e881b5f31366c538 | [
"MIT"
] | 1 | 2019-09-06T22:53:01.000Z | 2019-09-06T22:53:01.000Z | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import FlightViewSet,TicketViewSet
router = DefaultRouter()
router.register('ticket', TicketViewSet)
router.register('flight', FlightViewSet)
urlpatterns = [
path('', include(router.urls))
]
| 18.75 | 48 | 0.776667 | 32 | 300 | 7.25 | 0.5625 | 0.094828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 300 | 15 | 49 | 20 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0.04 | 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 |
ee0b4701e5d01ca124308ab4957d5e70ad5cf571 | 4,480 | py | Python | scripts/verify_items.py | ramalingam-cb/testrunner | 81cea7a5a493cf0c67fca7f97c667cd3c6ad2142 | [
"Apache-2.0"
] | null | null | null | scripts/verify_items.py | ramalingam-cb/testrunner | 81cea7a5a493cf0c67fca7f97c667cd3c6ad2142 | [
"Apache-2.0"
] | null | null | null | scripts/verify_items.py | ramalingam-cb/testrunner | 81cea7a5a493cf0c67fca7f97c667cd3c6ad2142 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Verify items exist, or were deleted from couchbase using an on disk kvstore"""
import time
import sys
import getopt
import pickle
import re
import mc_bin_client
import exceptions
import socket
from memcached.helper.data_helper import VBucketAwareMemcached
from membase.api.rest_client import R... | 28.176101 | 109 | 0.538616 | 536 | 4,480 | 4.406716 | 0.302239 | 0.027096 | 0.018628 | 0.026672 | 0.091871 | 0.08171 | 0.08171 | 0.056308 | 0.056308 | 0.056308 | 0 | 0.014787 | 0.350893 | 4,480 | 158 | 110 | 28.35443 | 0.797455 | 0.006473 | 0 | 0.178862 | 0 | 0 | 0.095561 | 0.008974 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.04878 | 0.081301 | null | null | 0.089431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ee0ca9c430f00c0332b3a9172f78215a5286399e | 2,120 | py | Python | tests/cpfcnpj_tests.py | vindi/pycpfcnpj | 46adf59e5fd9ec569cb5e68b739e56ae088edbbe | [
"MIT"
] | null | null | null | tests/cpfcnpj_tests.py | vindi/pycpfcnpj | 46adf59e5fd9ec569cb5e68b739e56ae088edbbe | [
"MIT"
] | null | null | null | tests/cpfcnpj_tests.py | vindi/pycpfcnpj | 46adf59e5fd9ec569cb5e68b739e56ae088edbbe | [
"MIT"
] | 1 | 2021-05-03T09:52:47.000Z | 2021-05-03T09:52:47.000Z | import unittest
from pycpfcnpj import cpfcnpj
class CPFCNPJTests(unittest.TestCase):
"""docstring for CPFCNPJTests"""
def setUp(self):
self.valid_cpf = '11144477735'
self.invalid_cpf = '11144477736'
self.invalid_cpf_size = '111444777'
self.valid_cnpj = '11444777000161'
... | 34.193548 | 75 | 0.731604 | 272 | 2,120 | 5.356618 | 0.183824 | 0.07138 | 0.156486 | 0.142759 | 0.665752 | 0.569664 | 0.569664 | 0.569664 | 0.533974 | 0.46534 | 0 | 0.08125 | 0.169811 | 2,120 | 61 | 76 | 34.754098 | 0.746591 | 0.012264 | 0 | 0 | 0 | 0 | 0.080939 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.309524 | false | 0 | 0.047619 | 0 | 0.380952 | 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 |
ee0eacf931e1fa6089e69f5484d14fe24169bc45 | 3,331 | py | Python | backend/kesaseteli/common/tests/factories.py | jannetasa/yjdh | 5d86a56c722dfbcee03110f66c7e7ddbea966db9 | [
"MIT"
] | null | null | null | backend/kesaseteli/common/tests/factories.py | jannetasa/yjdh | 5d86a56c722dfbcee03110f66c7e7ddbea966db9 | [
"MIT"
] | null | null | null | backend/kesaseteli/common/tests/factories.py | jannetasa/yjdh | 5d86a56c722dfbcee03110f66c7e7ddbea966db9 | [
"MIT"
] | null | null | null | import random
from datetime import date, timedelta
import factory
from shared.common.tests.factories import UserFactory
from applications.enums import (
ApplicationStatus,
ATTACHMENT_CONTENT_TYPE_CHOICES,
AttachmentType,
HiredWithoutVoucherAssessment,
SummerVoucherExceptionReason,
)
from applicati... | 34.340206 | 86 | 0.727709 | 355 | 3,331 | 6.614085 | 0.335211 | 0.163543 | 0.03833 | 0.053237 | 0.208262 | 0.107325 | 0 | 0 | 0 | 0 | 0 | 0.006472 | 0.165116 | 3,331 | 96 | 87 | 34.697917 | 0.837828 | 0 | 0 | 0.076923 | 0 | 0 | 0.095767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.089744 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ee0f988bfc69c83fce919d220f4ad325bea31294 | 563 | py | Python | bench.py | deseretdigital/statsite-proxy | db233d0b86bf1622bb77d16b9188497492e9ad92 | [
"BSD-3-Clause"
] | 2 | 2015-11-12T14:55:14.000Z | 2017-03-15T07:28:33.000Z | bench.py | deseretdigital/statsite-proxy | db233d0b86bf1622bb77d16b9188497492e9ad92 | [
"BSD-3-Clause"
] | null | null | null | bench.py | deseretdigital/statsite-proxy | db233d0b86bf1622bb77d16b9188497492e9ad92 | [
"BSD-3-Clause"
] | null | null | null | import socket
import time
import random
NUM = 1024 * 1024
KEYS = ["test", "foobar", "zipzap"]
VALS = [32, 100, 82, 101, 5, 6, 42, 73]
METS = []
for x in xrange(NUM):
key = random.choice(KEYS)
val = random.choice(VALS)
METS.append("%s:%f|c|@123\n" % (key, val))
s = socket.socket()
s.connect(("localhost", ... | 19.413793 | 58 | 0.603908 | 86 | 563 | 3.953488 | 0.569767 | 0.070588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088692 | 0.198934 | 563 | 28 | 59 | 20.107143 | 0.665188 | 0 | 0 | 0 | 0 | 0 | 0.087189 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee1c3eb426ad531964fe54f29d3ce30194e9583c | 1,068 | py | Python | scrapybot/urls/da.py | roadt/scrapybot | c4588f3d2c354a464f67f7199933775bc7a859e0 | [
"MIT"
] | null | null | null | scrapybot/urls/da.py | roadt/scrapybot | c4588f3d2c354a464f67f7199933775bc7a859e0 | [
"MIT"
] | null | null | null | scrapybot/urls/da.py | roadt/scrapybot | c4588f3d2c354a464f67f7199933775bc7a859e0 | [
"MIT"
] | 1 | 2015-09-11T05:59:42.000Z | 2015-09-11T05:59:42.000Z |
from . import mongodb
def art(**kwargs):
'''generate urls of art with s= (search text), u= (","-separated author_names), t= (","-separated tags) '''
with mongodb() as db:
cond = {}
_fill_cond(cond, kwargs)
urls = map(lambda e: e['url'], db.art.find(cond, {'url': 1}))
return {... | 31.411765 | 111 | 0.514981 | 139 | 1,068 | 3.863309 | 0.323741 | 0.074488 | 0.067039 | 0.100559 | 0.607076 | 0.521415 | 0.521415 | 0.521415 | 0.521415 | 0.521415 | 0 | 0.002628 | 0.287453 | 1,068 | 33 | 112 | 32.363636 | 0.703022 | 0.212547 | 0 | 0.285714 | 1 | 0 | 0.09113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.047619 | 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 |
ee22e50ca7888ee82f7d0433252b6d6d00cc4c50 | 394 | py | Python | registration/migrations/0006_alter_child_birth_date.py | screw-pack/hazel | ade9b6c6a396b3da2bb2d5505cfb63e1579cdab8 | [
"MIT"
] | null | null | null | registration/migrations/0006_alter_child_birth_date.py | screw-pack/hazel | ade9b6c6a396b3da2bb2d5505cfb63e1579cdab8 | [
"MIT"
] | null | null | null | registration/migrations/0006_alter_child_birth_date.py | screw-pack/hazel | ade9b6c6a396b3da2bb2d5505cfb63e1579cdab8 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-11 12:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('registration', '0005_auto_20210611_0904'),
]
operations = [
migrations.AlterField(
model_name='child',
name='birth_d... | 20.736842 | 52 | 0.606599 | 43 | 394 | 5.418605 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116608 | 0.281726 | 394 | 18 | 53 | 21.888889 | 0.706714 | 0.114213 | 0 | 0 | 1 | 0 | 0.144092 | 0.066282 | 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 |
ee246841a04b74b10f6f710578b5ac832faa3e19 | 701 | py | Python | store/migrations/0009_auto_20200502_1612.py | it5prasoon/ShoppingCart | c7d5a9d72af1a7f305b59798d3eae63f19522641 | [
"MIT"
] | 2 | 2020-05-06T11:33:45.000Z | 2021-02-01T12:53:43.000Z | store/migrations/0009_auto_20200502_1612.py | it5prasoon/ShoppingCart | c7d5a9d72af1a7f305b59798d3eae63f19522641 | [
"MIT"
] | null | null | null | store/migrations/0009_auto_20200502_1612.py | it5prasoon/ShoppingCart | c7d5a9d72af1a7f305b59798d3eae63f19522641 | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2020-05-02 10:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('store', '0008_variation'),
]
operations = [
migrations.AddField(
model_name='variation',
... | 28.04 | 147 | 0.623395 | 78 | 701 | 5.512821 | 0.589744 | 0.055814 | 0.065116 | 0.102326 | 0.186047 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0.041985 | 0.252496 | 701 | 24 | 148 | 29.208333 | 0.778626 | 0.061341 | 0 | 0.333333 | 1 | 0 | 0.10061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 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 |
ee265605ebaf4b3e43f0067f5347083ecd5a7d7b | 3,014 | py | Python | apps/usuarios/models.py | Marthox1999/ProyectoDesarrolloII | cf19c683ea121b9b1affafdc3f671e7db2304b3a | [
"MIT"
] | null | null | null | apps/usuarios/models.py | Marthox1999/ProyectoDesarrolloII | cf19c683ea121b9b1affafdc3f671e7db2304b3a | [
"MIT"
] | 88 | 2019-06-18T18:28:19.000Z | 2019-09-19T18:54:46.000Z | apps/usuarios/models.py | Marthox1999/Nova | cf19c683ea121b9b1affafdc3f671e7db2304b3a | [
"MIT"
] | null | null | null | from django.db import models
import hashlib
from django.core.validators import RegexValidator
from inventario.models import DetallesProducto
class Cliente(models.Model):
TIPO_DOC = {
('PAS','Pasaporte'),
('CC','Cedula de Ciudadania'),
('TI','Tarjeta de Identidad'),
}
nombre = mo... | 45.666667 | 165 | 0.681818 | 345 | 3,014 | 5.904348 | 0.33913 | 0.049092 | 0.061856 | 0.082474 | 0.444772 | 0.39568 | 0.39568 | 0.361316 | 0.361316 | 0.314188 | 0 | 0.017409 | 0.180491 | 3,014 | 66 | 166 | 45.666667 | 0.807287 | 0.05209 | 0 | 0.169811 | 0 | 0 | 0.071504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.075472 | 0 | 0.679245 | 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 |
ee2779c9541812cfb4f82b40daea3e09f4d932b7 | 1,362 | py | Python | results-tables/test/test_experiments.py | alepulver/my-thesis | 0f4ddb38d1b7bb61012692631e043f474d3771dc | [
"MIT"
] | null | null | null | results-tables/test/test_experiments.py | alepulver/my-thesis | 0f4ddb38d1b7bb61012692631e043f474d3771dc | [
"MIT"
] | null | null | null | results-tables/test/test_experiments.py | alepulver/my-thesis | 0f4ddb38d1b7bb61012692631e043f474d3771dc | [
"MIT"
] | null | null | null | import experiments
import stages
from nose.tools import assert_equals
import factory
rows = None
def setup_module():
global rows
data = factory.Stages()
rows = data.indexed_rows()
class TestExperiments:
@classmethod
def setup_class(cls):
stgs = [stages.stage_from(r) for r in rows]
... | 32.428571 | 83 | 0.680617 | 169 | 1,362 | 5.284024 | 0.372781 | 0.174692 | 0.18477 | 0.049272 | 0.399776 | 0.246361 | 0.210526 | 0.210526 | 0 | 0 | 0 | 0.098346 | 0.201175 | 1,362 | 41 | 84 | 33.219512 | 0.722426 | 0.108664 | 0 | 0 | 0 | 0 | 0.079208 | 0.059406 | 0 | 0 | 0 | 0 | 0.354839 | 1 | 0.129032 | false | 0 | 0.129032 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee350cadf4ac56357568d43e907af339700d3a4f | 1,479 | py | Python | checksum_utils.py | piyushkumar2903/python-utils | 3200abfcbe767a70642cbc7cfd6def1e1a108cb6 | [
"MIT"
] | null | null | null | checksum_utils.py | piyushkumar2903/python-utils | 3200abfcbe767a70642cbc7cfd6def1e1a108cb6 | [
"MIT"
] | null | null | null | checksum_utils.py | piyushkumar2903/python-utils | 3200abfcbe767a70642cbc7cfd6def1e1a108cb6 | [
"MIT"
] | null | null | null | import hashlib
import logging
import os
import shutil
import sys
LOGGER = logging.getLogger()
_MISSING_FILE_PATH_MSG = "Missing parameter file_path: %s"
def generate_sha256_checksum(file_path):
'''
Purpose: Calculate the SHA256 checksum of a given file
Parameters: Path to file
Returns: The SHA2... | 26.890909 | 86 | 0.649087 | 194 | 1,479 | 4.757732 | 0.35567 | 0.121343 | 0.048754 | 0.058505 | 0.212351 | 0.125677 | 0.125677 | 0.125677 | 0.125677 | 0.125677 | 0 | 0.021395 | 0.273158 | 1,479 | 54 | 87 | 27.388889 | 0.837209 | 0.201487 | 0 | 0.142857 | 1 | 0 | 0.030864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.142857 | 0 | 0.342857 | 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 |
ee3a4ac129adeb83e15ce58e93a951e7449541a4 | 282 | py | Python | provarme_dashboard/migrations/0011_merge_20190626_1024.py | arferreira/dropazul_app | f341da5f2bcccd2c1f40fad00c6e5d77bba4c6f3 | [
"MIT"
] | null | null | null | provarme_dashboard/migrations/0011_merge_20190626_1024.py | arferreira/dropazul_app | f341da5f2bcccd2c1f40fad00c6e5d77bba4c6f3 | [
"MIT"
] | 9 | 2020-06-05T23:49:20.000Z | 2022-01-13T01:43:03.000Z | provarme_dashboard/migrations/0011_merge_20190626_1024.py | arferreira/dropazul_app | f341da5f2bcccd2c1f40fad00c6e5d77bba4c6f3 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.5 on 2019-06-26 10:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('provarme_dashboard', '0009_order'),
('provarme_dashboard', '0010_auto_20190625_2058'),
]
operations = [
]
| 18.8 | 58 | 0.659574 | 33 | 282 | 5.454545 | 0.848485 | 0.188889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159817 | 0.223404 | 282 | 14 | 59 | 20.142857 | 0.6621 | 0.159574 | 0 | 0 | 1 | 0 | 0.293617 | 0.097872 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee5151ca33462fa9c8dbf321d8d6afee3b29f99b | 558 | py | Python | code/scripts/normalize_to_cpm.py | YimengYang/wol | 0b6aab725e9ffebe3b84330455fd10f21818265a | [
"BSD-3-Clause"
] | null | null | null | code/scripts/normalize_to_cpm.py | YimengYang/wol | 0b6aab725e9ffebe3b84330455fd10f21818265a | [
"BSD-3-Clause"
] | 5 | 2019-04-06T19:36:01.000Z | 2019-04-17T07:55:18.000Z | code/scripts/normalize_to_cpm.py | YimengYang/wol | 0b6aab725e9ffebe3b84330455fd10f21818265a | [
"BSD-3-Clause"
] | 4 | 2019-03-29T17:03:37.000Z | 2019-04-11T21:35:20.000Z | #!/usr/bin/env python3
"""Normalize a BIOM table of counts to copies per million sequences (cpm).
Usage:
normalize_to_cpm.py input.biom output.biom
Notes:
This is a pure BIOM solution, in contrast to the more complicated and
slower Pandas solution.
"""
from sys import argv
from biom import load_table
fro... | 24.26087 | 74 | 0.716846 | 92 | 558 | 4.25 | 0.652174 | 0.040921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023861 | 0.173835 | 558 | 22 | 75 | 25.363636 | 0.824295 | 0.462366 | 0 | 0 | 0 | 0 | 0.023891 | 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 |
ee5776036e9a36e4704ccaf1129026fa0dfe82e4 | 620 | py | Python | wildlifecompliance/migrations/0255_inspection_inspection_type.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 1 | 2020-12-07T17:12:40.000Z | 2020-12-07T17:12:40.000Z | wildlifecompliance/migrations/0255_inspection_inspection_type.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 14 | 2020-01-08T08:08:26.000Z | 2021-03-19T22:59:46.000Z | wildlifecompliance/migrations/0255_inspection_inspection_type.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 15 | 2020-01-08T08:02:28.000Z | 2021-11-03T06:48:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2019-07-17 02:20
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wildlifecompliance', '0254_auto_20190716_1506'),
]
... | 28.181818 | 164 | 0.683871 | 69 | 620 | 5.956522 | 0.666667 | 0.058394 | 0.068127 | 0.107056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.201613 | 620 | 21 | 165 | 29.52381 | 0.763636 | 0.109677 | 0 | 0 | 1 | 0 | 0.20765 | 0.102004 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ee58a9f9fc79f56bfdea77a9c3614a69bbb83ce8 | 1,087 | py | Python | identity/ecrfs/setup/projects/dream.py | LCBRU/identity | e8bec964aca9595091bf891bbe41632ce54afd3f | [
"MIT"
] | null | null | null | identity/ecrfs/setup/projects/dream.py | LCBRU/identity | e8bec964aca9595091bf891bbe41632ce54afd3f | [
"MIT"
] | null | null | null | identity/ecrfs/setup/projects/dream.py | LCBRU/identity | e8bec964aca9595091bf891bbe41632ce54afd3f | [
"MIT"
] | null | null | null | from identity.ecrfs.setup.standard import SEX_MAP_1M2F3T_SEX
from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName
from identity.setup.redcap_instances import REDCapInstanceDetail
from identity.setup.studies import StudyName
from identity.ecrfs.setup import crfs, RedCapEcrfDefinition
cr... | 30.194444 | 85 | 0.682613 | 108 | 1,087 | 6.527778 | 0.490741 | 0.085106 | 0.07234 | 0.062411 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019722 | 0.206992 | 1,087 | 35 | 86 | 31.057143 | 0.798144 | 0 | 0 | 0.068966 | 0 | 0 | 0.25943 | 0.161914 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.172414 | 0 | 0.172414 | 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 |
ee59e5f215bbd73c3481d6997a7ee564b83a2e9a | 841 | py | Python | pyxtal/miscellaneous/bugs/bug.py | ubikpt/PyXtal | 32da046a2bde542279824d6377aea116b679a2e7 | [
"MIT"
] | 127 | 2018-09-21T22:27:17.000Z | 2022-03-30T21:11:49.000Z | pyxtal/miscellaneous/bugs/bug.py | ubikpt/PyXtal | 32da046a2bde542279824d6377aea116b679a2e7 | [
"MIT"
] | 171 | 2018-08-06T07:10:24.000Z | 2022-03-29T00:59:53.000Z | pyxtal/miscellaneous/bugs/bug.py | ubikpt/PyXtal | 32da046a2bde542279824d6377aea116b679a2e7 | [
"MIT"
] | 50 | 2018-08-12T22:50:46.000Z | 2022-03-23T07:52:47.000Z | from pyxtal import pyxtal
from ase.io import read
from ase.spacegroup.symmetrize import prep_symmetry
from spglib import get_symmetry_dataset
#ans1 = get_symmetry_dataset(s, symprec=1e-2)
#print(ans1)
s = pyxtal()
s.from_seed('bug.vasp', tol=1e-2)
print(s)
#s1=s.subgroup(eps=0.1, group_type='t+k', max_cell=4)
#for a ... | 29 | 77 | 0.69679 | 150 | 841 | 3.793333 | 0.36 | 0.079086 | 0.042179 | 0.057996 | 0.420035 | 0.420035 | 0.420035 | 0.420035 | 0.332162 | 0.332162 | 0 | 0.046961 | 0.13912 | 841 | 28 | 78 | 30.035714 | 0.73895 | 0.570749 | 0 | 0 | 0 | 0 | 0.031792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ee839c3d3e094c2897baafdb6fee20c3a5fd40ae | 761 | py | Python | woodwork/__init__.py | willsmithorg/woodwork | b077adcfc6c406d686c59880748349aee7474993 | [
"BSD-3-Clause"
] | 81 | 2021-01-28T17:06:48.000Z | 2022-03-25T13:52:24.000Z | woodwork/__init__.py | willsmithorg/woodwork | b077adcfc6c406d686c59880748349aee7474993 | [
"BSD-3-Clause"
] | 869 | 2021-01-28T19:13:45.000Z | 2022-03-31T20:02:53.000Z | woodwork/__init__.py | willsmithorg/woodwork | b077adcfc6c406d686c59880748349aee7474993 | [
"BSD-3-Clause"
] | 16 | 2021-02-10T18:26:33.000Z | 2022-03-02T08:59:47.000Z | # flake8: noqa
import pkg_resources
from .config import config
from .type_sys import type_system
from .type_sys.utils import list_logical_types, list_semantic_tags
from .utils import concat_columns, read_file
from .version import __version__
import woodwork.column_accessor
import woodwork.demo
import woodwork.table_a... | 26.241379 | 72 | 0.767411 | 101 | 761 | 5.475248 | 0.623762 | 0.059675 | 0.039783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0016 | 0.178712 | 761 | 28 | 73 | 27.178571 | 0.8832 | 0.131406 | 0 | 0 | 0 | 0 | 0.053272 | 0.041096 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.043478 | 0.434783 | 0 | 0.434783 | 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 |
ee83b144249bc59883508af4ad2e8751c37b0e48 | 382 | py | Python | stock_correlation/anomaly.py | looselyconnected/fastai | 12d38d760393f1a677cc825d99283c8efcffbef5 | [
"MIT"
] | null | null | null | stock_correlation/anomaly.py | looselyconnected/fastai | 12d38d760393f1a677cc825d99283c8efcffbef5 | [
"MIT"
] | null | null | null | stock_correlation/anomaly.py | looselyconnected/fastai | 12d38d760393f1a677cc825d99283c8efcffbef5 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
def get_anomaly_score(data, test_window, control_window):
# Given a pd Series, return the anomaly score series.
# The data given should be sorted in the time order.
test_mean = data.rolling(test_window).mean()
control_data = test_mean.rolling(control_window)
... | 34.727273 | 65 | 0.743455 | 59 | 382 | 4.610169 | 0.474576 | 0.088235 | 0.165441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175393 | 382 | 10 | 66 | 38.2 | 0.863492 | 0.267016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ee8c29ff97685c28aaa3d98daf0db883ed159506 | 748 | py | Python | DQNs/memory_module.py | abr-98/Reinforcement-Learning | 40f39233b7156d4821d1ba86664ea82b418eb077 | [
"MIT"
] | null | null | null | DQNs/memory_module.py | abr-98/Reinforcement-Learning | 40f39233b7156d4821d1ba86664ea82b418eb077 | [
"MIT"
] | null | null | null | DQNs/memory_module.py | abr-98/Reinforcement-Learning | 40f39233b7156d4821d1ba86664ea82b418eb077 | [
"MIT"
] | null | null | null | import random
import numpy as np
from collections import namedtuple,deque
class replayBuffer:
transition=namedtuple('Transition',['s','a','r','s_','nd'])
def __init__(self,capacity):
self.capacity=capacity
self.memory=deque([],maxlen=self.capacity)
def push(self,s,a,r,s_,nd):
... | 37.4 | 90 | 0.624332 | 118 | 748 | 3.830508 | 0.305085 | 0.106195 | 0.026549 | 0.026549 | 0.039823 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008251 | 0.18984 | 748 | 20 | 91 | 37.4 | 0.737624 | 0 | 0 | 0 | 0 | 0 | 0.022697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.176471 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ee8e55bc04319f4d2f83e7e1d4a2f6bde382deab | 3,074 | py | Python | Task/Zebra-puzzle/Python/zebra-puzzle-2.py | djgoku/RosettaCodeData | 91df62d46142e921b3eacdb52b0316c39ee236bc | [
"Info-ZIP"
] | null | null | null | Task/Zebra-puzzle/Python/zebra-puzzle-2.py | djgoku/RosettaCodeData | 91df62d46142e921b3eacdb52b0316c39ee236bc | [
"Info-ZIP"
] | null | null | null | Task/Zebra-puzzle/Python/zebra-puzzle-2.py | djgoku/RosettaCodeData | 91df62d46142e921b3eacdb52b0316c39ee236bc | [
"Info-ZIP"
] | null | null | null | from itertools import permutations
import psyco
psyco.full()
class Number:elems= "One Two Three Four Five".split()
class Color: elems= "Red Green Blue White Yellow".split()
class Drink: elems= "Milk Coffee Water Beer Tea".split()
class Smoke: elems= "PallMall Dunhill Blend BlueMaster Prince".split()
class Pet: elems... | 34.155556 | 70 | 0.598569 | 446 | 3,074 | 4.078475 | 0.201794 | 0.090709 | 0.085761 | 0.057724 | 0.268279 | 0.24464 | 0.13304 | 0.096207 | 0.076965 | 0 | 0 | 0.010835 | 0.27944 | 3,074 | 89 | 71 | 34.539326 | 0.810384 | 0 | 0 | 0.220779 | 0 | 0 | 0.075146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025974 | null | null | 0.038961 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c999791e470765b8cf1a0bbcc6a67119f760fe18 | 3,778 | py | Python | code/results/02_fig_01.py | data-intelligence-for-health-lab/delirium_prediction | a0a25819ef6c98e32563b4e3b986c1a26fc30ed7 | [
"MIT"
] | null | null | null | code/results/02_fig_01.py | data-intelligence-for-health-lab/delirium_prediction | a0a25819ef6c98e32563b4e3b986c1a26fc30ed7 | [
"MIT"
] | null | null | null | code/results/02_fig_01.py | data-intelligence-for-health-lab/delirium_prediction | a0a25819ef6c98e32563b4e3b986c1a26fc30ed7 | [
"MIT"
] | null | null | null |
# --- loading libraries -------------------------------------------------------
import pandas as pd
import numpy as np
import datetime
# ------------------------------------------------------- loading libraries ---
# --- main routine ------------------------------------------------------------
# Opening ADMISSIONS
... | 40.623656 | 102 | 0.577819 | 448 | 3,778 | 4.776786 | 0.214286 | 0.033645 | 0.085047 | 0.056075 | 0.661682 | 0.571963 | 0.558879 | 0.466355 | 0.407477 | 0.190187 | 0 | 0.025358 | 0.112758 | 3,778 | 92 | 103 | 41.065217 | 0.613067 | 0.288512 | 0 | 0.166667 | 0 | 0 | 0.532833 | 0.156848 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.604167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c99a2550ffb528699185913af158f4bfb13914a4 | 1,265 | py | Python | roblox/utilities/url.py | Warhawk947/ro.py | dac29116ef72f577d2e086e3297a79201d58c895 | [
"MIT"
] | 1 | 2021-11-25T02:29:12.000Z | 2021-11-25T02:29:12.000Z | roblox/utilities/url.py | Warhawk947/ro.py | dac29116ef72f577d2e086e3297a79201d58c895 | [
"MIT"
] | null | null | null | roblox/utilities/url.py | Warhawk947/ro.py | dac29116ef72f577d2e086e3297a79201d58c895 | [
"MIT"
] | null | null | null | """
This module contains functions and objects used internally by ro.py to generate URLs.
"""
root_site = "roblox.com"
cdn_site = "rbxcdn.com"
class URLGenerator:
"""
Generates URLs based on a chosen base URL.
Attributes:
base_url: The base URL
"""
def __init__(self, base_url: str):
... | 24.803922 | 85 | 0.562846 | 149 | 1,265 | 4.651007 | 0.369128 | 0.141414 | 0.063492 | 0.040404 | 0.248196 | 0.17316 | 0.17316 | 0.17316 | 0.17316 | 0 | 0 | 0 | 0.339921 | 1,265 | 50 | 86 | 25.3 | 0.82994 | 0.404743 | 0 | 0 | 1 | 0 | 0.183607 | 0.134426 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c99dee5fd76c0f0d8266f8a07605e051cfed9709 | 2,733 | py | Python | ngboost/api.py | wakamezake/ngboost | a45947aef73b34dbdc8fbb5d4f32a71b6c3280ac | [
"Apache-2.0"
] | null | null | null | ngboost/api.py | wakamezake/ngboost | a45947aef73b34dbdc8fbb5d4f32a71b6c3280ac | [
"Apache-2.0"
] | null | null | null | ngboost/api.py | wakamezake/ngboost | a45947aef73b34dbdc8fbb5d4f32a71b6c3280ac | [
"Apache-2.0"
] | null | null | null | import numpy as np
from ngboost.ngboost import NGBoost
from ngboost.distns import Bernoulli, Normal, LogNormal
from ngboost.scores import MLE
from ngboost.learners import default_tree_learner
from sklearn.base import BaseEstimator
class NGBRegressor(NGBoost, BaseEstimator):
def __init__(self,
Di... | 36.932432 | 100 | 0.598975 | 302 | 2,733 | 5.135762 | 0.254967 | 0.030948 | 0.046422 | 0.052224 | 0.742747 | 0.742747 | 0.65764 | 0.627982 | 0.584139 | 0.584139 | 0 | 0.021633 | 0.323454 | 2,733 | 73 | 101 | 37.438356 | 0.817198 | 0.052323 | 0 | 0.672131 | 0 | 0 | 0.012374 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 1 | 0.131148 | false | 0 | 0.098361 | 0.081967 | 0.360656 | 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 |
c9a598803645579d278205a4c7d9e684d71bbb6e | 679 | py | Python | settings.py | joeltg/nsfw | 847827ed98a1a1b59c9ca927244d78aa8349b0b6 | [
"MIT"
] | 1 | 2018-07-30T03:51:22.000Z | 2018-07-30T03:51:22.000Z | settings.py | joeltg/nsfw | 847827ed98a1a1b59c9ca927244d78aa8349b0b6 | [
"MIT"
] | null | null | null | settings.py | joeltg/nsfw | 847827ed98a1a1b59c9ca927244d78aa8349b0b6 | [
"MIT"
] | null | null | null | # Set this to the path to Caffe installation on your system
caffe_root = "/usr/local/caffe/python"
gpu = False
# -------------------------------------
# These settings should work by default
# DNN being visualized
# These two settings are default, and can be overriden in the act_max.py
net_weights = "nets/caffenet/bvl... | 35.736842 | 72 | 0.759941 | 88 | 679 | 5.727273 | 0.545455 | 0.095238 | 0.075397 | 0.09127 | 0.349206 | 0.198413 | 0.198413 | 0 | 0 | 0 | 0 | 0.003289 | 0.104566 | 679 | 18 | 73 | 37.722222 | 0.825658 | 0.369661 | 0 | 0 | 0 | 0 | 0.597619 | 0.597619 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9ae5b7b459fb9f825e065d3571350e167d841e1 | 1,232 | py | Python | src/69.py | cloudzfy/euler | b82efad753ee98375fd40ec4e3989be57828e82c | [
"MIT"
] | 12 | 2016-10-19T09:03:20.000Z | 2021-01-10T10:53:23.000Z | src/69.py | cloudzfy/euler | b82efad753ee98375fd40ec4e3989be57828e82c | [
"MIT"
] | null | null | null | src/69.py | cloudzfy/euler | b82efad753ee98375fd40ec4e3989be57828e82c | [
"MIT"
] | 6 | 2018-09-12T03:13:58.000Z | 2021-07-07T00:29:43.000Z | # Euler's Totient function, phi(n) [sometimes called the phi function],
# is used to determine the number of numbers less than n which are
# relatively prime to n. For example, as 1, 2, 4, 5, 7, and 8, are all
# less than nine and relatively prime to nine, phi(9) = 6.
# n Relatively Prime phi(n) n/phi(n)
#... | 30.04878 | 71 | 0.504058 | 223 | 1,232 | 2.757848 | 0.345291 | 0.019512 | 0.02439 | 0.013008 | 0.01626 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132626 | 0.387987 | 1,232 | 40 | 72 | 30.8 | 0.683024 | 0.666396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9b1486a2d82fd1f8638ed311909c68cb754199d | 429 | py | Python | client/xbee-client.py | ddaza/iothax | 5c01f31f6ae96e0d6910ccf6cffd07888b32cfc8 | [
"MIT"
] | null | null | null | client/xbee-client.py | ddaza/iothax | 5c01f31f6ae96e0d6910ccf6cffd07888b32cfc8 | [
"MIT"
] | null | null | null | client/xbee-client.py | ddaza/iothax | 5c01f31f6ae96e0d6910ccf6cffd07888b32cfc8 | [
"MIT"
] | null | null | null | import serial
class Client:
serial_connection = serial.Serial(port="/dev/ttyUSB0", timeout=None)
def run(self):
while True:
try:
reading = self.serial_connection.read()
if reading == "":
continue
print "THIS> " + reading... | 19.5 | 72 | 0.517483 | 41 | 429 | 5.365854 | 0.634146 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003831 | 0.391608 | 429 | 21 | 73 | 20.428571 | 0.83908 | 0 | 0 | 0 | 0 | 0 | 0.041958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9b3684040a5c0dbf14e23ffc644f64061650b0f | 5,465 | py | Python | py/legacyanalysis/talk-plots.py | manera/legacypipe | 64dfe164fe1def50f5ad53784edd9a63321b0d45 | [
"BSD-3-Clause"
] | 32 | 2015-08-25T00:25:23.000Z | 2022-03-04T06:35:54.000Z | py/legacyanalysis/talk-plots.py | manera/legacypipe | 64dfe164fe1def50f5ad53784edd9a63321b0d45 | [
"BSD-3-Clause"
] | 644 | 2015-07-08T16:26:28.000Z | 2022-03-30T19:09:10.000Z | py/legacyanalysis/talk-plots.py | manera/legacypipe | 64dfe164fe1def50f5ad53784edd9a63321b0d45 | [
"BSD-3-Clause"
] | 22 | 2015-08-24T18:27:36.000Z | 2021-12-04T03:10:42.000Z | import matplotlib
matplotlib.use('Agg')
import pylab as plt
#from astrometry.util.fits import *
from legacypipe.runbrick import *
from legacypipe.runbrick_plots import *
from legacypipe.runbrick import _coadds, _get_mod
from astrometry.util.stages import *
from astrometry.util.starutil_numpy import *
from astrometry... | 30.027473 | 91 | 0.59817 | 757 | 5,465 | 4.26288 | 0.314399 | 0.034087 | 0.024171 | 0.030989 | 0.130772 | 0.083359 | 0.058258 | 0 | 0 | 0 | 0 | 0.035362 | 0.239341 | 5,465 | 181 | 92 | 30.19337 | 0.740919 | 0.023056 | 0 | 0.067669 | 0 | 0 | 0.062266 | 0.008815 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090226 | null | null | 0.045113 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c9ba97daf99b13bc9849ab2993fa79a82e2ded61 | 919 | py | Python | tests/core/middleware/test_request_param_normalizer.py | y19818/web3.py | 32a85a287ab63220d1e0c06d77be74de595ff02f | [
"MIT"
] | null | null | null | tests/core/middleware/test_request_param_normalizer.py | y19818/web3.py | 32a85a287ab63220d1e0c06d77be74de595ff02f | [
"MIT"
] | null | null | null | tests/core/middleware/test_request_param_normalizer.py | y19818/web3.py | 32a85a287ab63220d1e0c06d77be74de595ff02f | [
"MIT"
] | null | null | null | import pytest
from web3 import Web3
from web3.middleware import ( # noqa: F401
construct_result_generator_middleware,
request_parameter_normalizer,
)
from web3.providers.base import (
BaseProvider,
)
@pytest.fixture
def w3_base():
return Web3(provider=BaseProvider(), middlewares=[])
... | 25.527778 | 84 | 0.729053 | 100 | 919 | 6.41 | 0.38 | 0.117005 | 0.195008 | 0.106084 | 0.152886 | 0.152886 | 0.152886 | 0.152886 | 0 | 0 | 0 | 0.076821 | 0.178455 | 919 | 35 | 85 | 26.257143 | 0.772185 | 0.010881 | 0 | 0.115385 | 0 | 0 | 0.088303 | 0.048165 | 0 | 0 | 0.048165 | 0 | 0.038462 | 1 | 0.153846 | false | 0 | 0.153846 | 0.076923 | 0.423077 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9bafd9b78a319e0fe4e5f7031e5b67ada7e5e32 | 631 | py | Python | Exercise_14_PassowrdGenerator.py | lukas9557/learning_python | 5a8d61658bc9121314fd6633e1f782cf3e9641b6 | [
"MIT"
] | 2 | 2020-11-29T22:38:18.000Z | 2020-12-01T19:09:53.000Z | Exercise_14_PassowrdGenerator.py | lukas9557/learning_python | 5a8d61658bc9121314fd6633e1f782cf3e9641b6 | [
"MIT"
] | null | null | null | Exercise_14_PassowrdGenerator.py | lukas9557/learning_python | 5a8d61658bc9121314fd6633e1f782cf3e9641b6 | [
"MIT"
] | null | null | null | #Strong password generator
lowercaseLetters = list()
uppercaseLetters = list()
numbers = list()
special = list()
all = list()
output = str()
import string
lowercaseLetters = list(string.ascii_lowercase)
uppercaseLetters = list(string.ascii_uppercase)
numbers = ["0","1","2","3","4","5","6","7","8","9"]
spec... | 26.291667 | 66 | 0.673534 | 81 | 631 | 5.222222 | 0.580247 | 0.070922 | 0.070922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021113 | 0.174326 | 631 | 23 | 67 | 27.434783 | 0.790787 | 0.03962 | 0 | 0 | 0 | 0 | 0.128866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.105263 | 0.105263 | 0 | 0.105263 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c9ca9647d30d0e38bbb5c17905e1f4407f08e22d | 834 | py | Python | app/books/migrations/0010_auto_20200317_0846.py | kaantecik/yazlab2_p_1 | 5ff94b08bf3148de63697fec3565f9f557ff2f0f | [
"MIT"
] | null | null | null | app/books/migrations/0010_auto_20200317_0846.py | kaantecik/yazlab2_p_1 | 5ff94b08bf3148de63697fec3565f9f557ff2f0f | [
"MIT"
] | null | null | null | app/books/migrations/0010_auto_20200317_0846.py | kaantecik/yazlab2_p_1 | 5ff94b08bf3148de63697fec3565f9f557ff2f0f | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-17 08:46
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('books', '0009_auto_20200315_2015'),
]
operations = [
migrations.AddField(
model_name='book',
name='i... | 27.8 | 110 | 0.588729 | 90 | 834 | 5.355556 | 0.544444 | 0.056017 | 0.080913 | 0.105809 | 0.419087 | 0.419087 | 0.419087 | 0.419087 | 0.232365 | 0 | 0 | 0.116358 | 0.288969 | 834 | 29 | 111 | 28.758621 | 0.696459 | 0.053957 | 0 | 0.347826 | 1 | 0 | 0.094028 | 0.029225 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9d17843f4e38ae5fcc338d106ca0f09a8935d94 | 435 | py | Python | setup.py | biobakery/docent | d1d0e0ceab2e8f7ae7ee6db4d2b14a5fc47c3418 | [
"Apache-2.0"
] | null | null | null | setup.py | biobakery/docent | d1d0e0ceab2e8f7ae7ee6db4d2b14a5fc47c3418 | [
"Apache-2.0"
] | null | null | null | setup.py | biobakery/docent | d1d0e0ceab2e8f7ae7ee6db4d2b14a5fc47c3418 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='docent',
version='0.0.1',
description=("Install python scripts into a virtualenv, "
"then expose them outside of the virtualenv"),
zip_safe=False,
classifiers=[
"Development Status :: 1 - Pre-Alpha"
],
package... | 22.894737 | 63 | 0.57931 | 45 | 435 | 5.511111 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.301149 | 435 | 18 | 64 | 24.166667 | 0.802632 | 0 | 0 | 0 | 0 | 0 | 0.393103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 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 |
c9d2bed3cb2d93a41287363bbf8f452a733060ab | 862 | py | Python | qcdb/tests/nwchem_tests/test_hess_h2o.py | loriab/qccddb | d9e156ef8b313ac0633211fc6b841f84a3ddde24 | [
"BSD-3-Clause"
] | 8 | 2019-03-28T11:54:59.000Z | 2022-03-19T03:31:37.000Z | qcdb/tests/nwchem_tests/test_hess_h2o.py | loriab/qccddb | d9e156ef8b313ac0633211fc6b841f84a3ddde24 | [
"BSD-3-Clause"
] | 39 | 2018-10-31T23:02:18.000Z | 2021-12-12T22:11:37.000Z | qcdb/tests/nwchem_tests/test_hess_h2o.py | loriab/qccddb | d9e156ef8b313ac0633211fc6b841f84a3ddde24 | [
"BSD-3-Clause"
] | 9 | 2018-03-12T20:51:50.000Z | 2022-02-28T15:18:34.000Z | import os
import sys
import numpy as np
import qcdb
from ..utils import *
@using("nwchem")
def test_grad():
h2o = qcdb.set_molecule(
"""
O 0.00000000 0.00000000 0.00000000
H 0.00000000 1.93042809 -1.10715266
H 0.00000000 -1.93042809 -1.10715266
... | 23.297297 | 107 | 0.562645 | 111 | 862 | 4.27027 | 0.531532 | 0.094937 | 0.067511 | 0.075949 | 0.206751 | 0.206751 | 0.118143 | 0 | 0 | 0 | 0 | 0.271074 | 0.298144 | 862 | 36 | 108 | 23.944444 | 0.512397 | 0.032483 | 0 | 0 | 0 | 0 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.045455 | false | 0 | 0.227273 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9d66731aefac1e105d75e3e3a59e5760f854651 | 505 | py | Python | contrib/example_plugins/mycomp/src/mycomp/mycomp.py | mjfwest/OpenMDAO-Framework | a5521f47ad7686c25b203de74e1c7dff5fd7a52b | [
"Apache-2.0"
] | 69 | 2015-01-02T19:10:08.000Z | 2021-11-14T04:42:28.000Z | contrib/example_plugins/mycomp/src/mycomp/mycomp.py | jcchin/OpenMDAO-Framework | 038e89b06da1c74f00918f4c6fbd8bd365e25657 | [
"Apache-2.0"
] | 3 | 2015-01-15T23:08:18.000Z | 2015-03-11T16:57:35.000Z | contrib/example_plugins/mycomp/src/mycomp/mycomp.py | jcchin/OpenMDAO-Framework | 038e89b06da1c74f00918f4c6fbd8bd365e25657 | [
"Apache-2.0"
] | 31 | 2015-09-16T00:37:35.000Z | 2022-01-10T06:27:55.000Z |
from openmdao.main.api import Component
from openmdao.main.datatypes.api import Float
# Make sure that your class has some kind of docstring. Otherwise
# the descriptions for your variables won't show up in the
# source documentation.
class MyComponent(Component):
"""An example Component plugin class. """
... | 25.25 | 65 | 0.643564 | 75 | 505 | 4.333333 | 0.6 | 0.018462 | 0.098462 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020672 | 0.233663 | 505 | 19 | 66 | 26.578947 | 0.819121 | 0.374257 | 0 | 0 | 0 | 0 | 0.066445 | 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 |
c9da76baba70768faeb7ca0dbf1bcae1f92ddb9a | 297 | py | Python | run.py | yamamo-i/attendance-slack | 71d910b588c01be5c028237b033e39b1d2d8ba16 | [
"Apache-2.0"
] | null | null | null | run.py | yamamo-i/attendance-slack | 71d910b588c01be5c028237b033e39b1d2d8ba16 | [
"Apache-2.0"
] | 14 | 2020-04-04T13:03:30.000Z | 2021-04-04T08:22:26.000Z | run.py | yamamo-i/attendance-slack | 71d910b588c01be5c028237b033e39b1d2d8ba16 | [
"Apache-2.0"
] | null | null | null | from slackbot.bot import Bot
import logging
def main():
bot = Bot()
bot.run()
if __name__ == "__main__":
# TODO: configのクラスを作って最初にコールできるようにする
logging.basicConfig(format='%(asctime)s [%(levelname)s]: %(message)s', level=logging.INFO)
logging.info("starting....")
main()
| 19.8 | 94 | 0.656566 | 34 | 297 | 5.5 | 0.617647 | 0.096257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178451 | 297 | 14 | 95 | 21.214286 | 0.766393 | 0.114478 | 0 | 0 | 0 | 0 | 0.229885 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9e214fb39c912aed353501a7aa3fc11a9e3287c | 4,237 | py | Python | wrappers/python/virgil_crypto_lib/foundation/key_material_rng.py | odidev/virgil-crypto-c | 3d5d5cb19fdcf81eab08cdc63647f040117ecbd8 | [
"BSD-3-Clause"
] | 26 | 2018-12-17T13:45:25.000Z | 2022-01-16T20:00:04.000Z | wrappers/python/virgil_crypto_lib/foundation/key_material_rng.py | odidev/virgil-crypto-c | 3d5d5cb19fdcf81eab08cdc63647f040117ecbd8 | [
"BSD-3-Clause"
] | 4 | 2019-01-03T12:08:52.000Z | 2021-12-02T05:21:13.000Z | wrappers/python/virgil_crypto_lib/foundation/key_material_rng.py | odidev/virgil-crypto-c | 3d5d5cb19fdcf81eab08cdc63647f040117ecbd8 | [
"BSD-3-Clause"
] | 8 | 2019-01-24T08:22:06.000Z | 2022-02-07T11:37:00.000Z | # Copyright (C) 2015-2021 Virgil Security, Inc.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# (1) Redistributions of source code must retain the above copyright
# notice, this li... | 38.87156 | 112 | 0.732358 | 601 | 4,237 | 4.900166 | 0.342762 | 0.115789 | 0.096774 | 0.116129 | 0.328353 | 0.312054 | 0.304584 | 0.304584 | 0.278778 | 0.258065 | 0 | 0.00472 | 0.199906 | 4,237 | 108 | 113 | 39.231481 | 0.864012 | 0.47038 | 0 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0 | 0.122449 | 0.040816 | 0.489796 | 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 |
c9e41d0867ad432e132be98dd9217032dd588d2d | 890 | py | Python | usage_test_unit.py | budhiraja/Test-Unit | 9547b497443003342bd6b22a194b2869676bd29b | [
"MIT"
] | null | null | null | usage_test_unit.py | budhiraja/Test-Unit | 9547b497443003342bd6b22a194b2869676bd29b | [
"MIT"
] | null | null | null | usage_test_unit.py | budhiraja/Test-Unit | 9547b497443003342bd6b22a194b2869676bd29b | [
"MIT"
] | null | null | null | from test_unit_module import test_unit
class Usage(test_unit):
def __init__(self):
pass
def test_case_0(self):
"""
Example of a passing test case.
"""
actual = 8 # 3+5
expected = 8
self.assert_op(actual,expected,0) # Actual result, Expected result, test case id or identifier(not optional), HINT (Optio... | 20.697674 | 127 | 0.67191 | 144 | 890 | 3.972222 | 0.416667 | 0.111888 | 0.057692 | 0.073427 | 0.337413 | 0.337413 | 0.337413 | 0.174825 | 0.174825 | 0.174825 | 0 | 0.028736 | 0.217978 | 890 | 42 | 128 | 21.190476 | 0.793103 | 0.391011 | 0 | 0.238095 | 0 | 0 | 0.069444 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.238095 | false | 0.047619 | 0.047619 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9e4d25dfb519fb2693b299c6d12d9e2f1559367 | 2,643 | py | Python | cron_rdahmm_unavco.py | GeoGateway/PythonRDAHMM | 2ce99b1fbe6ffd4966a3120fa1afc1c9a8e389af | [
"Apache-2.0"
] | null | null | null | cron_rdahmm_unavco.py | GeoGateway/PythonRDAHMM | 2ce99b1fbe6ffd4966a3120fa1afc1c9a8e389af | [
"Apache-2.0"
] | 1 | 2018-07-17T20:01:59.000Z | 2018-07-17T23:01:55.000Z | cron_rdahmm_unavco.py | GeoGateway/PythonRDAHMM | 2ce99b1fbe6ffd4966a3120fa1afc1c9a8e389af | [
"Apache-2.0"
] | null | null | null | #!/usr/local/bin/python
#==========================================================================
# Ingest, and execute rdahmm evaluation for unavco datasets
# Set up a cron job to run nightly
#
# usage: cron_rdahmm_unavco.py
#
#===========================================================================
import os, s... | 38.867647 | 97 | 0.589103 | 293 | 2,643 | 5.208191 | 0.249147 | 0.079292 | 0.049803 | 0.060288 | 0.56422 | 0.529489 | 0.436435 | 0.377457 | 0.377457 | 0.377457 | 0 | 0.001993 | 0.240636 | 2,643 | 67 | 98 | 39.447761 | 0.758346 | 0.195611 | 0 | 0.340909 | 0 | 0 | 0.189484 | 0.044055 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068182 | null | null | 0.272727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c9ede6f99d511ac7f44e278acd8a01fafb344ff0 | 1,101 | py | Python | backend/webshop/app_settings/prod.py | mbranko/webshop | b7c2ebb8720922f5277fee98fe826e54760b29d2 | [
"MIT"
] | null | null | null | backend/webshop/app_settings/prod.py | mbranko/webshop | b7c2ebb8720922f5277fee98fe826e54760b29d2 | [
"MIT"
] | 5 | 2021-03-19T01:53:49.000Z | 2022-03-02T08:11:51.000Z | backend/webshop/app_settings/prod.py | mbranko/webshop | b7c2ebb8720922f5277fee98fe826e54760b29d2 | [
"MIT"
] | null | null | null | from .base import *
from .utils import read_variable, get_variable
ALLOWED_HOSTS = ['localhost', 'badasswebshop.com', 'www.badasswebshop.com']
DEBUG = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': get_variable('POSTGRES_DBNAME', 'webshop'),
'USER': get... | 35.516129 | 128 | 0.71753 | 133 | 1,101 | 5.631579 | 0.451128 | 0.11749 | 0.126836 | 0.069426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005297 | 0.142598 | 1,101 | 30 | 129 | 36.7 | 0.788136 | 0.045413 | 0 | 0 | 0 | 0 | 0.394084 | 0.110687 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c9edf6a5bd6fc1ce52eed50e96cd205d87c19024 | 1,308 | py | Python | day2.py | luth31/aoc-2020 | 821508d3215bbac4e60d48422df50f1f824ea512 | [
"MIT"
] | null | null | null | day2.py | luth31/aoc-2020 | 821508d3215bbac4e60d48422df50f1f824ea512 | [
"MIT"
] | null | null | null | day2.py | luth31/aoc-2020 | 821508d3215bbac4e60d48422df50f1f824ea512 | [
"MIT"
] | null | null | null | import util
def first(input_path: str):
passwords = 0
with open(input_path) as file:
lines = file.read().splitlines()
for line in lines:
split = line.split()
(min_count_str, max_count_str) = split[0].split('-')
min_count = int(min_count_str)
max_count = int(max_coun... | 29.727273 | 75 | 0.597859 | 176 | 1,308 | 4.170455 | 0.221591 | 0.061308 | 0.032698 | 0.057221 | 0.656676 | 0.444142 | 0.444142 | 0.337875 | 0.26158 | 0.26158 | 0 | 0.016913 | 0.276758 | 1,308 | 43 | 76 | 30.418605 | 0.758985 | 0 | 0 | 0.540541 | 0 | 0 | 0.050459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.297297 | 0.027027 | 0 | 0.081081 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c9fa0fe86a2a4dda6916557994a96e06aab168e6 | 477 | py | Python | ticker/widgets.py | jezdez/django-ticker | e286a338c25ff89e0b0e16dab516eb957cdc1fc6 | [
"BSD-3-Clause"
] | 1 | 2019-08-02T00:27:32.000Z | 2019-08-02T00:27:32.000Z | ticker/widgets.py | jezdez/django-ticker | e286a338c25ff89e0b0e16dab516eb957cdc1fc6 | [
"BSD-3-Clause"
] | null | null | null | ticker/widgets.py | jezdez/django-ticker | e286a338c25ff89e0b0e16dab516eb957cdc1fc6 | [
"BSD-3-Clause"
] | null | null | null | from django.utils.safestring import mark_safe
from django import forms
class ForeignKeyAsTextWidget(forms.HiddenInput):
def __init__(self, append_text, *args, **kwargs):
self.append_text = append_text
super(ForeignKeyAsTextWidget, self).__init__()
def render(self, *args, **kwargs):
fi... | 36.692308 | 84 | 0.714885 | 56 | 477 | 5.803571 | 0.446429 | 0.123077 | 0.129231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163522 | 477 | 12 | 85 | 39.75 | 0.814536 | 0 | 0 | 0 | 0 | 0 | 0.046122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a001c5bf65b4851b63c75b998233d3c53c975e59 | 3,830 | py | Python | ls/lslocal.py | nanqinlang/lightsocks-minami | e0899fcf4fc7a03f76b0887aae53fd548447ed03 | [
"MIT"
] | 15 | 2018-03-02T12:05:17.000Z | 2018-03-04T03:31:22.000Z | ls/lslocal.py | nanqinlang/lightsocks-minami | e0899fcf4fc7a03f76b0887aae53fd548447ed03 | [
"MIT"
] | null | null | null | ls/lslocal.py | nanqinlang/lightsocks-minami | e0899fcf4fc7a03f76b0887aae53fd548447ed03 | [
"MIT"
] | 8 | 2018-03-02T11:30:57.000Z | 2018-03-03T03:55:33.000Z | import argparse
import asyncio
import sys
sys.path.append("..")
from module.password import InvalidPasswordError, loadsPassword
from utils import net
from core.local import LsLocal
from utils import config as lsConfig
def run_server(config: lsConfig.Config):
loop = asyncio.get_event_loop()
... | 25.533333 | 101 | 0.71671 | 526 | 3,830 | 5.096958 | 0.247148 | 0.041029 | 0.070869 | 0.068631 | 0.189109 | 0.114883 | 0.076837 | 0 | 0 | 0 | 0 | 0.010494 | 0.154047 | 3,830 | 149 | 102 | 25.704698 | 0.816975 | 0.024282 | 0 | 0.179487 | 0 | 0 | 0.187299 | 0 | 0 | 0 | 0 | 0.006711 | 0 | 1 | 0.025641 | false | 0.094017 | 0.059829 | 0 | 0.08547 | 0.128205 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a00b0b8a4d6b2154a24868d0c26fb9a36960d803 | 2,095 | py | Python | src/ops/python/rec_dataset.py | lonway/poeem | 4b84db288275ac4ead4a01796c721bc0522221fa | [
"MIT"
] | 38 | 2021-05-25T07:14:59.000Z | 2022-03-27T01:39:03.000Z | src/ops/python/rec_dataset.py | nicexw/poeem | e91f5d8446f0aa33af3e5759c22a83b62009359d | [
"MIT"
] | 1 | 2021-07-07T22:15:37.000Z | 2021-07-07T22:15:37.000Z | src/ops/python/rec_dataset.py | nicexw/poeem | e91f5d8446f0aa33af3e5759c22a83b62009359d | [
"MIT"
] | 14 | 2021-07-03T11:05:14.000Z | 2022-03-19T06:13:14.000Z | import tensorflow as tf
from tensorflow.python.framework import ops
from tensorflow.python.data.ops import dataset_ops
from tensorflow.python.framework import dtypes
from poeem.ops.bin import rec_dataset_op
class RecDataset(dataset_ops.Dataset):
def _apply_options(self): # otherwise tf1.15 would apply OptimizeD... | 29.928571 | 79 | 0.597613 | 244 | 2,095 | 4.79918 | 0.258197 | 0.093937 | 0.061486 | 0.092229 | 0.458582 | 0.215201 | 0.098207 | 0 | 0 | 0 | 0 | 0.008493 | 0.325537 | 2,095 | 69 | 80 | 30.362319 | 0.820241 | 0.050119 | 0 | 0.152542 | 0 | 0 | 0.038249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118644 | false | 0 | 0.084746 | 0.101695 | 0.322034 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
a010101213f44724b3962253f2d7c0b3ecfb6c44 | 2,971 | py | Python | tests/test_contact.py | rehanalam1/python-o365 | ef377acad5f1f07a10955e36871b774399b727d9 | [
"Apache-2.0"
] | null | null | null | tests/test_contact.py | rehanalam1/python-o365 | ef377acad5f1f07a10955e36871b774399b727d9 | [
"Apache-2.0"
] | 2 | 2018-06-10T18:57:13.000Z | 2018-06-10T19:00:13.000Z | tests/test_contact.py | rehanalam1/python-o365 | ef377acad5f1f07a10955e36871b774399b727d9 | [
"Apache-2.0"
] | 1 | 2021-01-26T09:59:53.000Z | 2021-01-26T09:59:53.000Z | from O365 import contact
import unittest
import json
import time
class Resp:
def __init__(self,json_string,code=None):
self.jsons = json_string
self.status_code = code
def json(self):
return json.loads(self.jsons)
contact_rep = open('contacts.json','r').read()
contacts_json = json.loads(contact_rep)
jeb = c... | 27.256881 | 63 | 0.712891 | 428 | 2,971 | 4.890187 | 0.207944 | 0.137602 | 0.031534 | 0.078834 | 0.625896 | 0.590062 | 0.534639 | 0.501194 | 0.501194 | 0.382226 | 0 | 0.018008 | 0.121508 | 2,971 | 108 | 64 | 27.509259 | 0.783908 | 0.007405 | 0 | 0.378049 | 0 | 0 | 0.274177 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 1 | 0.121951 | false | 0.109756 | 0.04878 | 0.012195 | 0.243902 | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a018e076165dea177385985d759fa3d7b4406cc0 | 458 | py | Python | resumes/migrations/0005_contactdetails_address_2.py | USUDR2604/Django-ResumeBuilder | 0c6066d96fd20c029e5d5b0a447eaa5e8fc80fb6 | [
"MIT"
] | null | null | null | resumes/migrations/0005_contactdetails_address_2.py | USUDR2604/Django-ResumeBuilder | 0c6066d96fd20c029e5d5b0a447eaa5e8fc80fb6 | [
"MIT"
] | null | null | null | resumes/migrations/0005_contactdetails_address_2.py | USUDR2604/Django-ResumeBuilder | 0c6066d96fd20c029e5d5b0a447eaa5e8fc80fb6 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-12 05:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('resumes', '0004_remove_contactdetails_address_2'),
]
operations = [
migrations.AddField(
model_name='contactdetails',
... | 24.105263 | 100 | 0.635371 | 51 | 458 | 5.54902 | 0.784314 | 0.056537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069971 | 0.251092 | 458 | 18 | 101 | 25.444444 | 0.755102 | 0.098253 | 0 | 0 | 1 | 0 | 0.216545 | 0.087591 | 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 |
a01b653906f9ad5d9fc7a41be2e0d3b94b0f6b83 | 10,219 | py | Python | rl/agents/ddpg.py | KNakane/tensorflow | 1e8c862b8f7928967b1c02c613df0222ab8c4cd2 | [
"MIT"
] | 1 | 2019-05-13T15:14:03.000Z | 2019-05-13T15:14:03.000Z | rl/agents/ddpg.py | KNakane/tensorflow | 1e8c862b8f7928967b1c02c613df0222ab8c4cd2 | [
"MIT"
] | 44 | 2018-12-22T02:45:29.000Z | 2019-06-05T05:44:16.000Z | rl/agents/ddpg.py | KNakane/tensorflow | 1e8c862b8f7928967b1c02c613df0222ab8c4cd2 | [
"MIT"
] | 1 | 2021-11-05T06:08:07.000Z | 2021-11-05T06:08:07.000Z | # -*- coding: utf-8 -*-
import os,sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../../utility'))
sys.path.append(os.path.join(os.path.dirname(__file__), '../../network'))
import numpy as np
import tensorflow as tf
from agent import Agent
from eager_nn import ActorNet, CriticNet
from optimizer import *
fr... | 50.339901 | 178 | 0.658381 | 1,404 | 10,219 | 4.557692 | 0.127493 | 0.029536 | 0.021878 | 0.015315 | 0.762775 | 0.723238 | 0.69464 | 0.674324 | 0.639787 | 0.593687 | 0 | 0.016449 | 0.220667 | 10,219 | 203 | 179 | 50.339901 | 0.786916 | 0.029357 | 0 | 0.591837 | 0 | 0 | 0.017893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115646 | false | 0.006803 | 0.047619 | 0.013605 | 0.265306 | 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 |
a01cde81c8bb10a659d50ddaae57befc31787d3a | 9,714 | py | Python | src/OnewheelHudVideo.py | wmaciel/video-hud | 6a2a458a084aac1fb35c5b99216b40abf9d2e25d | [
"MIT"
] | 5 | 2017-12-08T21:29:46.000Z | 2020-03-27T13:07:50.000Z | src/OnewheelHudVideo.py | wmaciel/video-hud | 6a2a458a084aac1fb35c5b99216b40abf9d2e25d | [
"MIT"
] | 3 | 2017-12-09T18:51:57.000Z | 2017-12-09T18:54:52.000Z | src/OnewheelHudVideo.py | wmaciel/onewheel-video-hud | 6a2a458a084aac1fb35c5b99216b40abf9d2e25d | [
"MIT"
] | 2 | 2017-12-08T21:29:47.000Z | 2019-03-04T09:55:52.000Z | # -*- coding: utf-8 -*-
from datetime import timedelta
import tqdm
from moviepy.editor import *
from IconManager import IconManager
import LogParser
resolution_map = {
'1080': {
'portrait': {'w': 1080, 'h': 1920},
'landscape': {'w': 1920, 'h': 1080}
},
'720': {
'portrait': {'w': 720... | 39.487805 | 120 | 0.580296 | 1,149 | 9,714 | 4.697998 | 0.231506 | 0.035013 | 0.019266 | 0.019452 | 0.118562 | 0.042608 | 0.034457 | 0.012597 | 0 | 0 | 0 | 0.017902 | 0.309965 | 9,714 | 245 | 121 | 39.64898 | 0.787409 | 0.05384 | 0 | 0.065217 | 0 | 0 | 0.133467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032609 | null | null | 0.048913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4e4d5d507a680c61bd9978a018e9ffba9173d1ef | 13,325 | py | Python | podpy/Spectrum.py | turnerm/podpy | f6cb93cf4d30a7927fef9e282fe76555d4957488 | [
"MIT"
] | null | null | null | podpy/Spectrum.py | turnerm/podpy | f6cb93cf4d30a7927fef9e282fe76555d4957488 | [
"MIT"
] | 1 | 2017-06-07T18:42:31.000Z | 2017-06-15T15:35:36.000Z | podpy/Spectrum.py | turnerm/podpy | f6cb93cf4d30a7927fef9e282fe76555d4957488 | [
"MIT"
] | null | null | null | """
podpy is an implementatin of the pixel optical depth method as described in
Turner et al. 2014, MNRAS, 445, 794, and Aguirre et al. 2002, ApJ, 576, 1.
Please contact the author (Monica Turner) at turnerm@mit.edu if you have
any questions, comment or issues.
"""
import numpy as np
import scipy.interpolate as in... | 29.94382 | 83 | 0.683602 | 1,995 | 13,325 | 4.394486 | 0.185464 | 0.015056 | 0.020532 | 0.015056 | 0.376297 | 0.349492 | 0.331128 | 0.279229 | 0.265085 | 0.240789 | 0 | 0.016283 | 0.20728 | 13,325 | 444 | 84 | 30.011261 | 0.813689 | 0.04818 | 0 | 0.17619 | 0 | 0 | 0.042337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.042857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4e4e441c9c7544f46ff5d7552329346a04a8d9d7 | 2,355 | py | Python | examples/vehicle.py | 20tab/pybulletphysics | 7e227fc9870321785a1b6c53dd4e767cc66aad6f | [
"MIT"
] | 21 | 2015-09-16T15:24:41.000Z | 2019-03-19T07:28:32.000Z | examples/vehicle.py | 20tab/pybulletphysics | 7e227fc9870321785a1b6c53dd4e767cc66aad6f | [
"MIT"
] | 2 | 2015-07-17T16:54:25.000Z | 2016-09-24T14:45:33.000Z | examples/vehicle.py | 20tab/pybulletphysics | 7e227fc9870321785a1b6c53dd4e767cc66aad6f | [
"MIT"
] | 1 | 2020-03-31T09:26:54.000Z | 2020-03-31T09:26:54.000Z | from bulletphysics import *
broadphase = DbvtBroadphase()
collisionConfiguration = DefaultCollisionConfiguration()
dispatcher = CollisionDispatcher(collisionConfiguration)
solver = SequentialImpulseConstraintSolver()
world = DiscreteDynamicsWorld(dispatcher, broadphase, solver,collisionConfiguration)
world.setGravi... | 32.708333 | 109 | 0.755414 | 300 | 2,355 | 5.83 | 0.263333 | 0.01944 | 0.013722 | 0.054889 | 0.209262 | 0.209262 | 0.209262 | 0.209262 | 0.209262 | 0.209262 | 0 | 0.076372 | 0.110403 | 2,355 | 71 | 110 | 33.169014 | 0.758473 | 0.025053 | 0 | 0 | 0 | 0 | 0.005674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022222 | null | null | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4e52023b33a142b8e470d2348848f60b5c91be95 | 499 | py | Python | raw/files_manager.py | atoms18/BMI-prediction-from-Human-Image | ea42f11d803bd6960a6c966078afb2ab71c63bdb | [
"MIT"
] | 3 | 2021-12-10T17:20:20.000Z | 2022-01-11T02:59:27.000Z | raw/files_manager.py | atoms18/BMI-prediction-from-Human-Image | ea42f11d803bd6960a6c966078afb2ab71c63bdb | [
"MIT"
] | null | null | null | raw/files_manager.py | atoms18/BMI-prediction-from-Human-Image | ea42f11d803bd6960a6c966078afb2ab71c63bdb | [
"MIT"
] | null | null | null |
import shutil
from os import listdir
from os.path import isfile, join
from pathlib import Path
outlier_files = {f for f in listdir("outlier") if isfile(join("outlier", f))}
raw_outlier_files = {Path(f).stem + ".jpg" for f in listdir("raw_outlier_datasets/") if isfile(join("raw_outlier_datasets/", f))}
move_files =... | 27.722222 | 129 | 0.733467 | 79 | 499 | 4.455696 | 0.303797 | 0.170455 | 0.127841 | 0.073864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12024 | 499 | 17 | 130 | 29.352941 | 0.801822 | 0.226453 | 0 | 0 | 0 | 0 | 0.157068 | 0.109948 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4e58753188cda96044483b6880988745d24d6272 | 875 | py | Python | 03-Python/2/Activities/12-Ins_Functions/Solved/functions.py | madhavinamballa/datascience_Berkely | 15f2987a0b012b344d209df70fdcf527f1c664b2 | [
"ADSL"
] | null | null | null | 03-Python/2/Activities/12-Ins_Functions/Solved/functions.py | madhavinamballa/datascience_Berkely | 15f2987a0b012b344d209df70fdcf527f1c664b2 | [
"ADSL"
] | null | null | null | 03-Python/2/Activities/12-Ins_Functions/Solved/functions.py | madhavinamballa/datascience_Berkely | 15f2987a0b012b344d209df70fdcf527f1c664b2 | [
"ADSL"
] | null | null | null | # Define the function and tell it to print "Hello!" when called
def printHello():
print(f"Hello!")
# Call the function within the application to ensure the code is run
printHello()
# -------------#
# Functions that take in and use parameters can also be defined
def printName(name):
print("Hello " + name + "... | 25.735294 | 93 | 0.674286 | 130 | 875 | 4.538462 | 0.592308 | 0.055932 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029872 | 0.196571 | 875 | 33 | 94 | 26.515152 | 0.809388 | 0.453714 | 0 | 0 | 0 | 0 | 0.181624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.6 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4e5bdc56bcd2e1b3c11d79023edc16b37db552b0 | 220 | py | Python | Chapter09/findword.py | LuisPereda/Learning_Python | e89e69346c5584be10d991010f39b59329793ba5 | [
"MIT"
] | null | null | null | Chapter09/findword.py | LuisPereda/Learning_Python | e89e69346c5584be10d991010f39b59329793ba5 | [
"MIT"
] | null | null | null | Chapter09/findword.py | LuisPereda/Learning_Python | e89e69346c5584be10d991010f39b59329793ba5 | [
"MIT"
] | null | null | null | word = raw_input("Enter the word ")
word = word.lower()
file_txt = open("batman.txt", "r")
count = 0
for each in file_txt:
if word in each.lower():
count = count+1
print "The ", word ," occured ",count, " times"
| 20 | 47 | 0.636364 | 36 | 220 | 3.805556 | 0.583333 | 0.10219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.2 | 220 | 11 | 48 | 20 | 0.767045 | 0 | 0 | 0 | 0 | 0 | 0.208145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4e62ae146d77421ff1b8dadbde6b8eabf819b086 | 2,211 | py | Python | Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/status/cmd/uptime/data/dsz/__init__.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 9 | 2019-11-22T04:58:40.000Z | 2022-02-26T16:47:28.000Z | Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/status/cmd/uptime/data/dsz/__init__.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | null | null | null | Leak #5 - Lost In Translation/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/status/cmd/uptime/data/dsz/__init__.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 8 | 2017-09-27T10:31:18.000Z | 2022-01-08T10:30:46.000Z | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: __init__.py
import dsz
import dsz.cmd
import dsz.data
import dsz.lp
class UpTime(dsz.data.Task):
def __init__(self, cmd=None):
dsz.data... | 26.963415 | 93 | 0.529172 | 265 | 2,211 | 4.298113 | 0.211321 | 0.057946 | 0.087796 | 0.13345 | 0.635645 | 0.604039 | 0.561896 | 0.561896 | 0.561896 | 0.561896 | 0 | 0.034314 | 0.354138 | 2,211 | 82 | 94 | 26.963415 | 0.763305 | 0.077793 | 0 | 0.706897 | 0 | 0 | 0.032448 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.068966 | 0 | 0.241379 | 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 |
4e6471ffb505d2de812bebae1c0a950a90ecf365 | 860 | py | Python | cabot/cabotapp/management/commands/create_cabot_superuser.py | TheBestBurler/cabot | 206abcd6e7aa77e274733467441d29bd2a3eeed5 | [
"MIT"
] | null | null | null | cabot/cabotapp/management/commands/create_cabot_superuser.py | TheBestBurler/cabot | 206abcd6e7aa77e274733467441d29bd2a3eeed5 | [
"MIT"
] | null | null | null | cabot/cabotapp/management/commands/create_cabot_superuser.py | TheBestBurler/cabot | 206abcd6e7aa77e274733467441d29bd2a3eeed5 | [
"MIT"
] | null | null | null | import os
from django.contrib.auth import get_user_model
from django.core.management.base import BaseCommand
from django.db import IntegrityError
class Command(BaseCommand):
def handle(self, *args, **options):
username = os.environ.get('CABOT_SUPERUSER_USERNAME')
if username:
try:
... | 35.833333 | 100 | 0.62907 | 87 | 860 | 6.068966 | 0.505747 | 0.106061 | 0.068182 | 0.096591 | 0.147727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.280233 | 860 | 23 | 101 | 37.391304 | 0.852989 | 0 | 0 | 0 | 0 | 0 | 0.231395 | 0.10814 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.210526 | 0 | 0.315789 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4e6a4a7bcb46efbd7c7334225452a083fcf61662 | 288 | py | Python | Analysis/Pedro/tests/dockTest/logFix.py | taoluwork/bcai | 6097ee88e11f99824a251f2c2a65b2656b75a5de | [
"Apache-2.0"
] | 1 | 2020-03-05T20:11:31.000Z | 2020-03-05T20:11:31.000Z | Analysis/Pedro/tests/dockTest/logFix.py | taoluwork/bcai | 6097ee88e11f99824a251f2c2a65b2656b75a5de | [
"Apache-2.0"
] | 7 | 2020-04-06T01:38:09.000Z | 2022-01-22T11:47:18.000Z | Analysis/Pedro/tests/dockTest/logFix.py | taoluwork/bcai | 6097ee88e11f99824a251f2c2a65b2656b75a5de | [
"Apache-2.0"
] | 3 | 2019-08-14T14:17:22.000Z | 2019-09-19T19:04:40.000Z |
f = open('../../data/dockTest/logs.txt', 'r')
line = f.readline()
new = ''
while line != '':
if line.find('top ') >= 0 or line.find('python3') >= 0:
new = new + line
line = f.readline()
f.close()
f = open('../../data/dockTest/logs.txt', 'w')
f.write(new)
f.close() | 19.2 | 59 | 0.524306 | 43 | 288 | 3.511628 | 0.465116 | 0.066225 | 0.119205 | 0.225166 | 0.317881 | 0.317881 | 0 | 0 | 0 | 0 | 0 | 0.013216 | 0.211806 | 288 | 15 | 60 | 19.2 | 0.651982 | 0 | 0 | 0.363636 | 0 | 0 | 0.239583 | 0.194444 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
4e700f57d0e52b8817a4237f45c209a5bf23b7d5 | 366 | py | Python | scripts/scratch.py | lewisjared/netcdf-scm | 2c433f12f126639513deeec91c338c0f2ebbcc70 | [
"BSD-2-Clause"
] | null | null | null | scripts/scratch.py | lewisjared/netcdf-scm | 2c433f12f126639513deeec91c338c0f2ebbcc70 | [
"BSD-2-Clause"
] | 2 | 2019-05-31T01:07:36.000Z | 2019-06-04T03:53:10.000Z | scripts/scratch.py | lewisjared/netcdf-scm | 2c433f12f126639513deeec91c338c0f2ebbcc70 | [
"BSD-2-Clause"
] | null | null | null | import pdb
from netcdf_scm.iris_cube_wrappers import CMIP6OutputCube
test = CMIP6OutputCube()
pdb.set_trace()
test.load_data_in_directory(
"/data/marble/cmip6/CMIP6/CMIP/NCAR/CESM2/historical/r10i1p1f1/Omon/tos/gn/v20190313/"
)
test.load_data_in_directory(
"tests/test-data/cmip6output/CMIP6/CMIP/NCAR/CESM2/... | 24.4 | 98 | 0.803279 | 52 | 366 | 5.461538 | 0.557692 | 0.056338 | 0.084507 | 0.098592 | 0.549296 | 0.387324 | 0.387324 | 0.387324 | 0.387324 | 0.387324 | 0 | 0.100592 | 0.076503 | 366 | 14 | 99 | 26.142857 | 0.739645 | 0 | 0 | 0.2 | 0 | 0.2 | 0.480874 | 0.480874 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4e7af9ac5ee5acb3029448893cef3919952148d4 | 282 | py | Python | setup.py | jntme/twjnt | 768312fc56a03c528c764cfb4325081e0c0e3e50 | [
"MIT"
] | null | null | null | setup.py | jntme/twjnt | 768312fc56a03c528c764cfb4325081e0c0e3e50 | [
"MIT"
] | null | null | null | setup.py | jntme/twjnt | 768312fc56a03c528c764cfb4325081e0c0e3e50 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name='twjnt',
version='0.0.1',
packages=[''],
url='',
license='MIT',
author='jntme',
author_email='mail@jntme.ch',
description='A simple tool that offers some features to administrate your twitter account.'
)
| 21.692308 | 95 | 0.648936 | 36 | 282 | 5.055556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013393 | 0.205674 | 282 | 12 | 96 | 23.5 | 0.799107 | 0 | 0 | 0 | 0 | 0 | 0.382979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 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 |
4e7f7eedcd3e2d1cf4816e36889bb883ce72ddaa | 657 | py | Python | AutoWebBrowsing/webBrowse.py | mshahmalaki/PyAutomate | a7faa3660bf88b428d69c6f134e50409c46b4fe6 | [
"MIT"
] | null | null | null | AutoWebBrowsing/webBrowse.py | mshahmalaki/PyAutomate | a7faa3660bf88b428d69c6f134e50409c46b4fe6 | [
"MIT"
] | null | null | null | AutoWebBrowsing/webBrowse.py | mshahmalaki/PyAutomate | a7faa3660bf88b428d69c6f134e50409c46b4fe6 | [
"MIT"
] | null | null | null | from selenium import webdriver
driver = webdriver.Chrome()
driver.get('https://www.seleniumeasy.com/test/basic-first-form-demo.html')
message_field = driver.find_element_by_xpath('//*[@id="user-message"]')
message_field.send_keys('Hello World')
show_message_button = driver.find_element_by_xpath('//*[@id="get-input"]/... | 38.647059 | 81 | 0.768645 | 94 | 657 | 5.031915 | 0.446809 | 0.105708 | 0.179704 | 0.200846 | 0.300211 | 0.300211 | 0.135307 | 0 | 0 | 0 | 0 | 0.016 | 0.048706 | 657 | 17 | 82 | 38.647059 | 0.7408 | 0 | 0 | 0 | 0 | 0 | 0.275076 | 0.115502 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 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 |
4e87a902468e0684cf118205cbd17121fb9ad6ba | 1,990 | py | Python | .leetcode/647.palindromic-substrings.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/647.palindromic-substrings.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/647.palindromic-substrings.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | # @lc app=leetcode id=647 lang=python3
#
# [647] Palindromic Substrings
#
# https://leetcode.com/problems/palindromic-substrings/description/
#
# algorithms
# Medium (63.36%)
# Likes: 5179
# Dislikes: 144
# Total Accepted: 329.3K
# Total Submissions: 518.4K
# Testcase Example: '"abc"'
#
# Given a string s, retur... | 17.610619 | 73 | 0.551759 | 255 | 1,990 | 4.27451 | 0.45098 | 0.057798 | 0.034862 | 0.011009 | 0.077064 | 0.077064 | 0 | 0 | 0 | 0 | 0 | 0.032509 | 0.288945 | 1,990 | 113 | 74 | 17.610619 | 0.737809 | 0.475377 | 0 | 0.333333 | 0 | 0 | 0.109868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.027778 | 0.027778 | 0 | 0.166667 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4e92a84643fd3fd097bd925f9f518116667e3d76 | 30,992 | py | Python | flow-tools-analysis/gen_data_input_flows_behavior_metrics.py | spoofer-ix/spoofer-ix | 31471c827d9ce400ac03020cfa14f967804f083c | [
"MIT"
] | 2 | 2020-12-19T08:25:39.000Z | 2021-03-10T05:29:17.000Z | flow-tools-analysis/gen_data_input_flows_behavior_metrics.py | spoofer-ix/spoofer-ix | 31471c827d9ce400ac03020cfa14f967804f083c | [
"MIT"
] | null | null | null | flow-tools-analysis/gen_data_input_flows_behavior_metrics.py | spoofer-ix/spoofer-ix | 31471c827d9ce400ac03020cfa14f967804f083c | [
"MIT"
] | 1 | 2020-02-25T17:26:47.000Z | 2020-02-25T17:26:47.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os import sys, path
sys.path.append(path.abspath(path.join(path.dirname(__file__), '..')))
import utils.multiprocessing_poll as mpPool
import utils.geolocation_utilities as geoutil
import utils.prefixes_utilities as putil
import utils.constants as cons
import utils.fi... | 47.316031 | 213 | 0.574955 | 3,528 | 30,992 | 4.619331 | 0.136338 | 0.052402 | 0.025772 | 0.031478 | 0.580229 | 0.496288 | 0.411487 | 0.383506 | 0.344542 | 0.320182 | 0 | 0.007663 | 0.343153 | 30,992 | 654 | 214 | 47.388379 | 0.792897 | 0.052401 | 0 | 0.271574 | 0 | 0.002538 | 0.07969 | 0.013567 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.050761 | null | null | 0.043147 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4e9ba9b2a02682cf143a0a877aa079fcb90ec44b | 293 | py | Python | snapx/setup.py | ruth-ann/snap-python | fe98de7b5697b3d60eb3497893e24801ae1916f9 | [
"BSD-3-Clause"
] | 242 | 2015-01-01T08:40:28.000Z | 2022-03-18T05:22:09.000Z | snapx/setup.py | ruth-ann/snap-python | fe98de7b5697b3d60eb3497893e24801ae1916f9 | [
"BSD-3-Clause"
] | 99 | 2015-01-24T07:55:27.000Z | 2021-10-30T18:20:13.000Z | snapx/setup.py | ruth-ann/snap-python | fe98de7b5697b3d60eb3497893e24801ae1916f9 | [
"BSD-3-Clause"
] | 105 | 2015-03-03T06:45:17.000Z | 2022-02-24T15:52:40.000Z | from setuptools import setup, find_packages
if __name__ == "__main__":
setup(
name="snapx",
author="snap.stanford.edu",
version="0.0.1",
packages=find_packages(),
description="""SnapX: An experimental SNAP API with NetworkX-like interface"""
)
| 26.636364 | 86 | 0.627986 | 33 | 293 | 5.272727 | 0.757576 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013575 | 0.245734 | 293 | 10 | 87 | 29.3 | 0.773756 | 0 | 0 | 0 | 0 | 0 | 0.324232 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 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 |
4e9cedd828e6640d84fb761dd8617bc5efffda14 | 1,163 | py | Python | diff.py | yakomak/pth1 | e9112f820e241f3a3b09f27ca150adff75b7d377 | [
"MIT"
] | null | null | null | diff.py | yakomak/pth1 | e9112f820e241f3a3b09f27ca150adff75b7d377 | [
"MIT"
] | null | null | null | diff.py | yakomak/pth1 | e9112f820e241f3a3b09f27ca150adff75b7d377 | [
"MIT"
] | 1 | 2022-03-07T09:47:05.000Z | 2022-03-07T09:47:05.000Z |
# --- dD3MA2 ---
import tkinter as tk
from tkinter import ttk
# Определение столбцов
tree=ttk.Treeview(master)
tree["columns"]=("one","two","three")
tree.column("#0", width=270, minwidth=270, stretch=tk.NO)
tree.column("one", width=150, minwidth=150, stretch=tk.NO)
tree.column("two", width=400, minwidth=200)
tree.c... | 32.305556 | 92 | 0.66724 | 194 | 1,163 | 3.994845 | 0.376289 | 0.064516 | 0.070968 | 0.083871 | 0.338065 | 0.136774 | 0 | 0 | 0 | 0 | 0 | 0.080264 | 0.089424 | 1,163 | 35 | 93 | 33.228571 | 0.651558 | 0.092863 | 0 | 0.142857 | 0 | 0 | 0.240191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | 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 |
4ea2b3c7ad419055a066c63aee7fa2f5245ba601 | 1,082 | py | Python | webserver/contest/models.py | theSage21/judge-interface | e1d631f2623c032ee89576e745ce4acb371bc816 | [
"MIT"
] | 3 | 2015-11-07T15:17:42.000Z | 2021-03-22T23:07:00.000Z | webserver/contest/models.py | theSage21/judge-interface | e1d631f2623c032ee89576e745ce4acb371bc816 | [
"MIT"
] | 2 | 2016-12-02T20:27:26.000Z | 2018-09-18T07:07:39.000Z | webserver/contest/models.py | theSage21/judge-interface | e1d631f2623c032ee89576e745ce4acb371bc816 | [
"MIT"
] | 3 | 2015-09-20T09:38:50.000Z | 2018-04-12T14:18:13.000Z | from socket import create_connection
from django.db import models
from django.utils import timezone
class Slave(models.Model):
def __str__(self):
return self.ip + str(self.port)
ip = models.GenericIPAddressField()
port = models.IntegerField()
busy = models.BooleanField(default=False)
def... | 24.590909 | 62 | 0.634935 | 129 | 1,082 | 5.147287 | 0.465116 | 0.031627 | 0.063253 | 0.048193 | 0.171687 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005013 | 0.262477 | 1,082 | 43 | 63 | 25.162791 | 0.827068 | 0.021257 | 0 | 0.121212 | 0 | 0 | 0.036969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.090909 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4ea5c2686730a672bb08d157f5f8368d26055c68 | 944 | py | Python | announcements/label.py | CMU-Robotics-Club/roboticsclub.org | 5f2ad4a15dc62160c6d03c87c121e934cacb8228 | [
"MIT"
] | null | null | null | announcements/label.py | CMU-Robotics-Club/roboticsclub.org | 5f2ad4a15dc62160c6d03c87c121e934cacb8228 | [
"MIT"
] | 16 | 2015-01-01T03:42:36.000Z | 2016-06-21T05:14:16.000Z | announcements/label.py | CMU-Robotics-Club/roboticsclub.org | 5f2ad4a15dc62160c6d03c87c121e934cacb8228 | [
"MIT"
] | 2 | 2015-07-23T14:37:16.000Z | 2021-09-11T01:23:25.000Z | from django.core.urlresolvers import reverse
from django.contrib.sites.models import Site
from django.utils.text import slugify
from crm.label import Label
def create_announcement_label(announcement):
label = Label()
org_start, org_end = label.add_text("#000000", (0,0), "Roboto-Thin.ttf", 200, "Carnegie Mellon Rob... | 55.529412 | 181 | 0.737288 | 151 | 944 | 4.397351 | 0.377483 | 0.060241 | 0.082831 | 0.090361 | 0.228916 | 0.069277 | 0 | 0 | 0 | 0 | 0 | 0.069988 | 0.106992 | 944 | 16 | 182 | 59 | 0.717675 | 0 | 0 | 0 | 0 | 0 | 0.165254 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4eaa691bee452606fd4138cc6a54b5179bc5763a | 8,211 | py | Python | deepwto/graphql.py | DeepWTO/deepwto-dataset-explore | 421ea2aa2d73c287a8b7028b8bbe3e136fc0ed15 | [
"MIT"
] | 1 | 2020-02-21T10:47:27.000Z | 2020-02-21T10:47:27.000Z | deepwto/graphql.py | DeepWTO/deepwto-api | 421ea2aa2d73c287a8b7028b8bbe3e136fc0ed15 | [
"MIT"
] | null | null | null | deepwto/graphql.py | DeepWTO/deepwto-api | 421ea2aa2d73c287a8b7028b8bbe3e136fc0ed15 | [
"MIT"
] | null | null | null | from typing import Union, List
import requests
import json
from deepwto.constants import available_ds, available_article, cited_by_ds
class AppSyncClient:
latest_version = "1.0.0"
available_ds_num = len(available_ds)
available_ds = available_ds
available_article_num = len(available_article)
ava... | 32.975904 | 81 | 0.36305 | 588 | 8,211 | 4.947279 | 0.183673 | 0.02647 | 0.046751 | 0.040908 | 0.567549 | 0.527673 | 0.502234 | 0.502234 | 0.49089 | 0.49089 | 0 | 0.013838 | 0.533553 | 8,211 | 249 | 82 | 32.975904 | 0.745692 | 0.046036 | 0 | 0.61244 | 0 | 0 | 0.505821 | 0 | 0 | 0 | 0 | 0 | 0.019139 | 1 | 0.038278 | false | 0 | 0.019139 | 0.004785 | 0.124402 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ebc23bc9c91253e6812c1a714f8e675e44152c6 | 1,253 | py | Python | setup.py | YasielCabrera/dj-graphene | a7fd6d88c3c50252ca6eb9374dd00466f222407d | [
"MIT"
] | null | null | null | setup.py | YasielCabrera/dj-graphene | a7fd6d88c3c50252ca6eb9374dd00466f222407d | [
"MIT"
] | null | null | null | setup.py | YasielCabrera/dj-graphene | a7fd6d88c3c50252ca6eb9374dd00466f222407d | [
"MIT"
] | null | null | null | from setuptools import setup
with open('README.md') as f:
long_description = f.read()
setup(
name = 'dj-graphene',
packages = ['dj_graphene'],
version = '0.0.2-b.2',
license='MIT',
description = 'A graphene-django wrapper to do stuffs in the Django way 💃🕺',
author = 'Yas... | 33.864865 | 98 | 0.596169 | 129 | 1,253 | 5.736434 | 0.612403 | 0.128378 | 0.168919 | 0.175676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019293 | 0.255387 | 1,253 | 36 | 99 | 34.805556 | 0.771704 | 0 | 0 | 0.058824 | 0 | 0 | 0.521947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 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 |
4ec11d3c43a209b9860f8db106e17b763c890746 | 1,715 | py | Python | cobald_tests/controller/test_relative_supply.py | maxfischer2781/cobald | a5a1fbcb87411115e07c61255f8e5085c086b82d | [
"MIT"
] | 7 | 2019-06-11T12:57:10.000Z | 2019-10-07T17:46:41.000Z | cobald_tests/controller/test_relative_supply.py | maxfischer2781/cobald | a5a1fbcb87411115e07c61255f8e5085c086b82d | [
"MIT"
] | 76 | 2019-03-01T08:24:08.000Z | 2022-03-24T20:37:23.000Z | cobald_tests/controller/test_relative_supply.py | maxfischer2781/cobald | a5a1fbcb87411115e07c61255f8e5085c086b82d | [
"MIT"
] | 8 | 2019-06-27T13:06:12.000Z | 2022-02-15T15:27:58.000Z | import pytest
from cobald.controller.relative_supply import RelativeSupplyController
from ..mock.pool import MockPool
class TestRelativeSupplyController(object):
def test_low_scale(self):
pool = MockPool()
with pytest.raises(Exception):
RelativeSupplyController(pool, low_scale=0.9, hi... | 37.282609 | 81 | 0.663557 | 193 | 1,715 | 5.678756 | 0.202073 | 0.10219 | 0.153285 | 0.040146 | 0.70438 | 0.681569 | 0.648723 | 0.648723 | 0.648723 | 0.648723 | 0 | 0.021995 | 0.257726 | 1,715 | 45 | 82 | 38.111111 | 0.838963 | 0 | 0 | 0.487179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 1 | 0.102564 | false | 0 | 0.076923 | 0 | 0.205128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ec4025a70a99988700c3f3e85821182e84fe72a | 706 | py | Python | tests/model/test_fencer.py | zoldello/fencing | 77af67492b1508e05a8412b36d87ddb2439d1e43 | [
"MIT"
] | null | null | null | tests/model/test_fencer.py | zoldello/fencing | 77af67492b1508e05a8412b36d87ddb2439d1e43 | [
"MIT"
] | null | null | null | tests/model/test_fencer.py | zoldello/fencing | 77af67492b1508e05a8412b36d87ddb2439d1e43 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `model/fencing` package."""
from model.fencer import Fencer
#from __future__ import absolute_import
#import unittest
#import imp
#foo = imp.load_source('Fencer', 'fencing/model/fencer.py')
class TestFencing(unittest.TestCase):
"""Model/Fencing. unit t... | 25.214286 | 129 | 0.691218 | 89 | 706 | 5.179775 | 0.617978 | 0.069414 | 0.060738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010118 | 0.160057 | 706 | 27 | 130 | 26.148148 | 0.767285 | 0.572238 | 0 | 0 | 0 | 0 | 0.035874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.