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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cff1bfd2524009743a7797d9402b729d8f50fc4a | 1,907 | py | Python | lama/tests/test_data_generation.py | antshp-vc/LAMA | 2cef058cae160d775fbacd65bff717f10330475a | [
"Apache-2.0"
] | null | null | null | lama/tests/test_data_generation.py | antshp-vc/LAMA | 2cef058cae160d775fbacd65bff717f10330475a | [
"Apache-2.0"
] | null | null | null | lama/tests/test_data_generation.py | antshp-vc/LAMA | 2cef058cae160d775fbacd65bff717f10330475a | [
"Apache-2.0"
] | null | null | null | """
Test the steps needed to generate wild type and mutant data for use in the statistical analysis
Usage: pytest -v -m "not notest" test_data_generation.py
The use of -m "not notest" is to be able to omit certain tests with the @pytest.mark.notest decorator
"""
from pathlib import Path
from lama.registration_pipeli... | 33.45614 | 114 | 0.750393 | 293 | 1,907 | 4.65529 | 0.392491 | 0.056452 | 0.104839 | 0.049853 | 0.258065 | 0.258065 | 0.23607 | 0.165689 | 0.165689 | 0.156892 | 0 | 0 | 0.180912 | 1,907 | 56 | 115 | 34.053571 | 0.873239 | 0.373361 | 0 | 0.083333 | 1 | 0 | 0.069298 | 0.042105 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.166667 | false | 0 | 0.291667 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3203fae2c1ebbadbcbadad1e8f81eafc6e2e9be9 | 353 | py | Python | snippet/py/ver_division.py | walker-zheng/code | 2959e4227e168aab4d5420bc836768730f2bffdd | [
"MIT"
] | 4 | 2018-05-18T10:58:41.000Z | 2021-12-29T16:17:53.000Z | snippet/py/ver_division.py | walker-zheng/code | 2959e4227e168aab4d5420bc836768730f2bffdd | [
"MIT"
] | 4 | 2017-10-09T09:42:09.000Z | 2019-02-21T01:31:09.000Z | snippet/py/ver_division.py | walker-zheng/code | 2959e4227e168aab4d5420bc836768730f2bffdd | [
"MIT"
] | 1 | 2021-04-09T00:58:19.000Z | 2021-04-09T00:58:19.000Z | #!/usr/bin/python
import os ,Image
j = 1
dir="./code/"
for f in os.listdir(dir):
if f.endswith(".jpg"):
img = Image.open(dir+f)
img = img.convert('RGB')
for i in range(6):
x = 5 + i*9
y = 6
img.crop((x, y, x+9, y+13)).save("font/%d.jpg" % j)
... | 19.611111 | 63 | 0.430595 | 58 | 353 | 2.62069 | 0.586207 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041096 | 0.379603 | 353 | 17 | 64 | 20.764706 | 0.652968 | 0.045326 | 0 | 0 | 0 | 0 | 0.080597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3205fc49b31c38e613e355108db58e375a25db95 | 1,107 | py | Python | app/users/migrations/0005_auto_20180322_1621.py | StrandHQ/strand-api | afa2da651ef9046ea39c044a65bdd88d814838b4 | [
"MIT"
] | 1 | 2018-10-23T16:02:54.000Z | 2018-10-23T16:02:54.000Z | app/users/migrations/0005_auto_20180322_1621.py | StrandHQ/strand-api | afa2da651ef9046ea39c044a65bdd88d814838b4 | [
"MIT"
] | 3 | 2020-06-05T18:21:51.000Z | 2021-06-10T20:25:15.000Z | app/users/migrations/0005_auto_20180322_1621.py | tadasant/strand-api | afa2da651ef9046ea39c044a65bdd88d814838b4 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-03-09 18:07
from django.conf import settings
from django.contrib.auth.models import Group, Permission
from django.core.management.sql import emit_post_migrate_signal
from django.db import migrations
def set_default_group_permissions(apps, schema_editor):
"""Get or create the d... | 28.384615 | 104 | 0.717254 | 141 | 1,107 | 5.41844 | 0.546099 | 0.094241 | 0.058901 | 0.082461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044543 | 0.188799 | 1,107 | 38 | 105 | 29.131579 | 0.806236 | 0.213189 | 0 | 0 | 1 | 0 | 0.061628 | 0.026744 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.190476 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
320cdcd9ce44fc3ffc19a1a748600d473ae84e85 | 785 | py | Python | admin/collection_providers/urls.py | listinc/osf.io | b9a0357f3e9b6e905b732e750a16e9452c459d78 | [
"Apache-2.0"
] | null | null | null | admin/collection_providers/urls.py | listinc/osf.io | b9a0357f3e9b6e905b732e750a16e9452c459d78 | [
"Apache-2.0"
] | 20 | 2020-03-24T16:48:03.000Z | 2022-03-08T22:38:38.000Z | admin/collection_providers/urls.py | listinc/osf.io | b9a0357f3e9b6e905b732e750a16e9452c459d78 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from . import views
app_name = 'admin'
urlpatterns = [
url(r'^create/$', views.CreateCollectionProvider.as_view(), name='create'),
url(r'^$', views.CollectionProviderList.as_view(), name='list'),
url(r'^import/$', views.ImportCollectionProvider.as_view(), name='import'),
... | 52.333333 | 117 | 0.699363 | 102 | 785 | 5.22549 | 0.313725 | 0.052533 | 0.131332 | 0.11257 | 0.409006 | 0.409006 | 0.409006 | 0.217636 | 0.217636 | 0 | 0 | 0.011127 | 0.084076 | 785 | 14 | 118 | 56.071429 | 0.730181 | 0 | 0 | 0 | 0 | 0 | 0.313376 | 0.230573 | 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 |
321decb6ca970c41a09fbd744d03c6e085870fdf | 3,800 | py | Python | src/printer.py | 93suhwan/python-sos | 47ac07fa4a8c670cf7fdd436d61d8aa2caa9fcc5 | [
"MIT"
] | null | null | null | src/printer.py | 93suhwan/python-sos | 47ac07fa4a8c670cf7fdd436d61d8aa2caa9fcc5 | [
"MIT"
] | null | null | null | src/printer.py | 93suhwan/python-sos | 47ac07fa4a8c670cf7fdd436d61d8aa2caa9fcc5 | [
"MIT"
] | null | null | null | from visitor import PrintVisitor
class Printer(PrintVisitor):
"""A simple pretty-printer class"""
def __init__(self):
self._indent = 0
def print_Lambda(self, node):
var_name = node.var.name
indent_prev = self._indent
self._indent = 0
exp_str = self.print(node.exp)
... | 32.20339 | 70 | 0.564737 | 481 | 3,800 | 4.197505 | 0.122661 | 0.257553 | 0.122338 | 0.138683 | 0.689946 | 0.676573 | 0.599802 | 0.54631 | 0.493809 | 0.474492 | 0 | 0.007302 | 0.315263 | 3,800 | 117 | 71 | 32.478632 | 0.76864 | 0.007632 | 0 | 0.434343 | 0 | 0 | 0.02842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.161616 | false | 0 | 0.010101 | 0.040404 | 0.323232 | 0.323232 | 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 |
321e6aa3a34d2b1a511cf34c749778b9c25dfae5 | 3,364 | py | Python | util/triplet_loss.py | mbanani/pytorch-magnet-loss | 9919be9684f765aaaa33ef49ad08502a342bf417 | [
"MIT"
] | 11 | 2018-04-19T15:17:45.000Z | 2021-01-03T15:39:26.000Z | util/triplet_loss.py | mbanani/pytorch-magnet-loss | 9919be9684f765aaaa33ef49ad08502a342bf417 | [
"MIT"
] | 1 | 2020-07-27T13:01:16.000Z | 2020-07-27T13:01:16.000Z | util/triplet_loss.py | mbanani/pytorch-magnet-loss | 9919be9684f765aaaa33ef49ad08502a342bf417 | [
"MIT"
] | 6 | 2018-04-19T13:55:15.000Z | 2021-12-14T16:22:34.000Z | """
A PyTorch implmentation of the KL-Divergence Loss as described in (https://arxiv.org/abs/1511.06321)
Lua Implementation (not inspected yet TODO) (https://github.com/yenchanghsu/NNclustering/blob/master/BatchKLDivCriterion.lua)
"""
import torch
import torch.nn.functional as F
from torch import nn
import numpy as ... | 36.967033 | 185 | 0.540131 | 390 | 3,364 | 4.535897 | 0.389744 | 0.095534 | 0.022612 | 0.031091 | 0.110232 | 0.050876 | 0 | 0 | 0 | 0 | 0 | 0.022457 | 0.324911 | 3,364 | 90 | 186 | 37.377778 | 0.756495 | 0.238407 | 0 | 0 | 0 | 0 | 0.052833 | 0 | 0 | 0 | 0 | 0.022222 | 0.02 | 1 | 0.04 | false | 0 | 0.1 | 0 | 0.18 | 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 |
321fe3fffb7f34d969a6ea5e9ebdd09311e57e9d | 409 | py | Python | aa/single_pages/views.py | kimdonggun12/Django_site | 98dd0ceaca30f6c966dde7475637106e38f12e51 | [
"MIT"
] | null | null | null | aa/single_pages/views.py | kimdonggun12/Django_site | 98dd0ceaca30f6c966dde7475637106e38f12e51 | [
"MIT"
] | null | null | null | aa/single_pages/views.py | kimdonggun12/Django_site | 98dd0ceaca30f6c966dde7475637106e38f12e51 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from blog.models import Post
# Create your views here.
def landing(request):
recent_posts = Post.objects.order_by('-pk')[:3]
return render(
request,
'single_pages/landing.html',
{
'recent_posts': recent_posts,
}
)
def aboutm... | 19.47619 | 51 | 0.611247 | 46 | 409 | 5.304348 | 0.586957 | 0.135246 | 0.155738 | 0.204918 | 0.245902 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003425 | 0.286064 | 409 | 21 | 52 | 19.47619 | 0.832192 | 0.056235 | 0 | 0.25 | 0 | 0 | 0.168831 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.0625 | 0.375 | 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 |
32259b79359f50ecade0ee8800c6824d9a8c8b29 | 279 | py | Python | hausl_bot/my_ip_fetcher.py | Michael-List/hauslbot | 62fd3f789481929f78e86f1be777f2f3835838d1 | [
"MIT"
] | null | null | null | hausl_bot/my_ip_fetcher.py | Michael-List/hauslbot | 62fd3f789481929f78e86f1be777f2f3835838d1 | [
"MIT"
] | 4 | 2019-04-21T15:59:17.000Z | 2019-05-03T12:43:21.000Z | hausl_bot/my_ip_fetcher.py | Michael-List/hauslbot | 62fd3f789481929f78e86f1be777f2f3835838d1 | [
"MIT"
] | null | null | null | import requests
class MyIPFetcher:
@staticmethod
def fetch_ip():
r = requests.get('https://api.ipify.org')
if r.status_code != 200:
return 'Could not get the ip address. Status: ' + r.status_code
return 'The public ip is: ' + r.text | 25.363636 | 75 | 0.605735 | 38 | 279 | 4.368421 | 0.684211 | 0.084337 | 0.13253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015 | 0.283154 | 279 | 11 | 76 | 25.363636 | 0.815 | 0 | 0 | 0 | 0 | 0 | 0.275 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5c537a8e61ec1322b58888794e0c3ec98800a4b8 | 7,087 | py | Python | boa3_test/tests/compiler_tests/test_class.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | null | null | null | boa3_test/tests/compiler_tests/test_class.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | null | null | null | boa3_test/tests/compiler_tests/test_class.py | hal0x2328/neo3-boa | 6825a3533384cb01660773050719402a9703065b | [
"Apache-2.0"
] | null | null | null | from boa3.boa3 import Boa3
from boa3.exception import CompilerError
from boa3.neo.cryptography import hash160
from boa3.neo.vm.type.String import String
from boa3_test.tests.boa_test import BoaTest
from boa3_test.tests.test_classes.testengine import TestEngine
class TestClass(BoaTest):
default_folder: str = 'tes... | 41.688235 | 82 | 0.699732 | 810 | 7,087 | 5.853086 | 0.130864 | 0.098081 | 0.049357 | 0.06834 | 0.728538 | 0.708711 | 0.650074 | 0.587851 | 0.578359 | 0.552415 | 0 | 0.01372 | 0.197827 | 7,087 | 169 | 83 | 41.934911 | 0.820229 | 0 | 0 | 0.367188 | 0 | 0 | 0.100748 | 0.055313 | 0 | 0 | 0 | 0 | 0.3125 | 1 | 0.125 | false | 0 | 0.046875 | 0 | 0.1875 | 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 |
5c5be2e85385fe803c3e3c5ae2638a84d89644dc | 387 | py | Python | src/devicectl/urls.py | fullctl/devicectl | 633b78986a68bf4afb43c43c91fadef9be940906 | [
"Apache-2.0"
] | null | null | null | src/devicectl/urls.py | fullctl/devicectl | 633b78986a68bf4afb43c43c91fadef9be940906 | [
"Apache-2.0"
] | 2 | 2021-01-25T10:14:53.000Z | 2021-06-14T15:36:10.000Z | src/devicectl/urls.py | fullctl/devicectl | 633b78986a68bf4afb43c43c91fadef9be940906 | [
"Apache-2.0"
] | null | null | null | from django.urls import path, include
from django.contrib import admin
import fullctl.django.views as views
import django_devicectl.urls
urlpatterns = [
path("admin/", admin.site.urls),
path("", include("social_django.urls", namespace="social")),
path("", include("fullctl.django.urls")),
path("", incl... | 27.642857 | 64 | 0.702842 | 48 | 387 | 5.583333 | 0.375 | 0.164179 | 0.141791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134367 | 387 | 13 | 65 | 29.769231 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.180879 | 0.054264 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5c631bfeab917305e9175e3e350986dbb7edc383 | 998 | py | Python | raisimGymTorch/raisimGymTorch/stable_baselines3/anymal.py | simRepoRelease/raisimLib | 00724ac2abb0b4c11aadb4ddd3455fc42c57a34e | [
"Apache-2.0"
] | 142 | 2020-10-21T18:18:13.000Z | 2022-03-29T11:49:25.000Z | raisimGymTorch/raisimGymTorch/stable_baselines3/anymal.py | simRepoRelease/raisimLib | 00724ac2abb0b4c11aadb4ddd3455fc42c57a34e | [
"Apache-2.0"
] | 192 | 2020-10-21T15:51:15.000Z | 2022-03-28T12:56:01.000Z | raisimGymTorch/raisimGymTorch/stable_baselines3/anymal.py | simRepoRelease/raisimLib | 00724ac2abb0b4c11aadb4ddd3455fc42c57a34e | [
"Apache-2.0"
] | 51 | 2020-10-26T08:29:54.000Z | 2022-03-23T12:00:23.000Z | import gym
import os
from ruamel.yaml import YAML, dump, RoundTripDumper
from stable_baselines3 import PPO
from stable_baselines3.ppo import MlpPolicy
from raisimGymTorch.env.bin import rsg_anymal
from raisimGymTorch.stable_baselines3.RaisimSbGymVecEnv import RaisimSbGymVecEnv as VecEnv
# Parallel environments
# dir... | 32.193548 | 117 | 0.735471 | 134 | 998 | 5.276119 | 0.470149 | 0.079208 | 0.056577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017442 | 0.138277 | 998 | 31 | 118 | 32.193548 | 0.804651 | 0.087174 | 0 | 0 | 0 | 0 | 0.119074 | 0.025358 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.35 | 0 | 0.35 | 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 |
5c66f8436b90a5feb352d70a8c8dc1a774132fb0 | 4,285 | py | Python | src/api.py | lunixbochs/microlathe | fbd896fb534dd8d83f4b2725d3767b0d46c9bcf0 | [
"MIT"
] | 1 | 2016-05-29T16:30:48.000Z | 2016-05-29T16:30:48.000Z | src/api.py | lunixbochs/microlathe | fbd896fb534dd8d83f4b2725d3767b0d46c9bcf0 | [
"MIT"
] | null | null | null | src/api.py | lunixbochs/microlathe | fbd896fb534dd8d83f4b2725d3767b0d46c9bcf0 | [
"MIT"
] | null | null | null | import base64
import json
import requests
import thread
import urllib
from app import redis
import config
class ApiError(Exception):
pass
class AuthError(ApiError):
pass
def cookies():
cookies = redis.get(config.COOKIE_KEY)
if not cookies:
raise AuthError('could not load cookies')
ret... | 22.087629 | 77 | 0.565228 | 532 | 4,285 | 4.49812 | 0.244361 | 0.04346 | 0.059758 | 0.056832 | 0.171333 | 0.094442 | 0.06519 | 0.041789 | 0.041789 | 0.041789 | 0 | 0.003915 | 0.284714 | 4,285 | 193 | 78 | 22.202073 | 0.776835 | 0.003034 | 0 | 0.170213 | 0 | 0 | 0.126698 | 0.006792 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014184 | 0.049645 | null | null | 0.007092 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5c681bfcfa74d1be9aaebde6587999c9c705b9c2 | 24,882 | py | Python | sylvadbclient/api.py | CulturePlex/sylvadb-python-client | 03ebd9f8da702c7330e82417bcd383c21aef5125 | [
"MIT"
] | null | null | null | sylvadbclient/api.py | CulturePlex/sylvadb-python-client | 03ebd9f8da702c7330e82417bcd383c21aef5125 | [
"MIT"
] | null | null | null | sylvadbclient/api.py | CulturePlex/sylvadb-python-client | 03ebd9f8da702c7330e82417bcd383c21aef5125 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import os
import slumber
HOST = "http://api.sylvadb.com/v1/"
SYLVADB_API = os.environ.get("SYLVADB_API", HOST)
NODE = "node"
RELATIONSHIP = "relationship"
# Extracted from Six for Python 2 and 3 compatibility
def add_metaclass(metaclas... | 34.751397 | 79 | 0.571096 | 2,740 | 24,882 | 4.979927 | 0.093066 | 0.034885 | 0.046684 | 0.06266 | 0.608135 | 0.56277 | 0.512495 | 0.491535 | 0.467497 | 0.448443 | 0 | 0.000419 | 0.328189 | 24,882 | 715 | 80 | 34.8 | 0.815865 | 0.278916 | 0 | 0.398417 | 0 | 0 | 0.018512 | 0.001615 | 0 | 0 | 0 | 0.001399 | 0 | 1 | 0.21372 | false | 0 | 0.007916 | 0.002639 | 0.437995 | 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 |
5c699ef3fd575d105c696e0e7b84e269c01b955d | 316 | py | Python | logger.py | BradynWeil/linuxdeploy_sendSms | 463c42d56bc5fbb850f07166ccdae26aa7c74f8e | [
"MIT"
] | null | null | null | logger.py | BradynWeil/linuxdeploy_sendSms | 463c42d56bc5fbb850f07166ccdae26aa7c74f8e | [
"MIT"
] | null | null | null | logger.py | BradynWeil/linuxdeploy_sendSms | 463c42d56bc5fbb850f07166ccdae26aa7c74f8e | [
"MIT"
] | null | null | null | import logging
log_name = 'runtime.log'
LOGGER = logging.getLogger(__name__)
fh = logging.FileHandler(encoding='utf-8', mode='a', filename=log_name)
logging.basicConfig(handlers=[fh], format='[%(asctime)s %(levelname)s]<%(process)d> %(message)s',
datefmt='%Y-%m-%d %H:%M:%S', level=logging.INFO) | 45.142857 | 97 | 0.667722 | 44 | 316 | 4.659091 | 0.681818 | 0.068293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003623 | 0.126582 | 316 | 7 | 98 | 45.142857 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0.271293 | 0.085174 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c70686eff77db80beddfa384c6528f590c5841f | 2,235 | py | Python | shopping/models.py | Darkwing42/home_app | c5a996b39714d755bd1dd6b354937f342efc75b0 | [
"MIT"
] | null | null | null | shopping/models.py | Darkwing42/home_app | c5a996b39714d755bd1dd6b354937f342efc75b0 | [
"MIT"
] | null | null | null | shopping/models.py | Darkwing42/home_app | c5a996b39714d755bd1dd6b354937f342efc75b0 | [
"MIT"
] | null | null | null | from app import db
from sqlalchemy.dialects.postgresql import UUID
import uuid
from app.utils.uuid_converter import str2uuid
class ShoppingItemModel(db.Model):
__tablename__ = 'shoppingItems'
id = db.Column(UUID(as_uuid=True), default=lambda: uuid.uuid4().hex)
shoppingItemID = db.Column(db.Integer, primary_key=Tr... | 26.607143 | 94 | 0.752573 | 305 | 2,235 | 5.32459 | 0.229508 | 0.054187 | 0.055419 | 0.05234 | 0.375616 | 0.350985 | 0.321429 | 0.204434 | 0.169951 | 0.169951 | 0 | 0.004564 | 0.117673 | 2,235 | 83 | 95 | 26.927711 | 0.818966 | 0 | 0 | 0.365079 | 0 | 0 | 0.098881 | 0.021924 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174603 | false | 0 | 0.063492 | 0.079365 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5c7e24193cb0e93738e911a3f9a9ff0f6899a584 | 452 | py | Python | multivision/oa_file_utils.py | olaals/tpktools | 50416ca554809e3d2f364b25531c78cf4751311c | [
"MIT"
] | null | null | null | multivision/oa_file_utils.py | olaals/tpktools | 50416ca554809e3d2f364b25531c78cf4751311c | [
"MIT"
] | null | null | null | multivision/oa_file_utils.py | olaals/tpktools | 50416ca554809e3d2f364b25531c78cf4751311c | [
"MIT"
] | null | null | null | import os
import random
def search_substring_from_folder(path, substr):
files = os.listdir(path)
for file in files:
if substr in file:
return os.path.join(path, file)
return None
def list_all_files(dir_path):
files = os.listdir(dir_path)
return [os.path.join(dir_path, name) f... | 22.6 | 60 | 0.70354 | 72 | 452 | 4.180556 | 0.361111 | 0.116279 | 0.093023 | 0.106312 | 0.126246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212389 | 452 | 19 | 61 | 23.789474 | 0.845506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.642857 | 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 |
5c7eb80cf8b1bfaa306b45aca379671fb5dcc981 | 365 | py | Python | modules/constants.py | sandeepsoni/semantic-progressiveness | 824079b388d0eebc92b2197805b27ed320353f8f | [
"MIT"
] | 2 | 2021-04-11T16:28:44.000Z | 2021-07-31T03:22:07.000Z | modules/constants.py | sandeepsoni/semantic-progressiveness | 824079b388d0eebc92b2197805b27ed320353f8f | [
"MIT"
] | null | null | null | modules/constants.py | sandeepsoni/semantic-progressiveness | 824079b388d0eebc92b2197805b27ed320353f8f | [
"MIT"
] | 1 | 2021-09-01T22:45:25.000Z | 2021-09-01T22:45:25.000Z | import os
CLDIR = "/hg190/corpora/courtlistener"
CLUSTERS_DIR = os.path.join (CLDIR, "clusters")
OPINIONS_DIR = os.path.join (CLDIR, "opinions")
NL="\n"
JSON_EXT = ".json"
JSONL_EXT = ".jsonl"
TXT_EXT = ".txt"
MIL = 1000000
HALFMIL = 500000
LAKH = 100000
CL_TOKEN="df4dd26ef31ffc5cd9398804fc354cf09ece7e0a"
CL_USERNA... | 19.210526 | 51 | 0.750685 | 46 | 365 | 5.782609 | 0.630435 | 0.037594 | 0.067669 | 0.097744 | 0.135338 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12963 | 0.112329 | 365 | 18 | 52 | 20.277778 | 0.691358 | 0 | 0 | 0 | 0 | 0 | 0.342466 | 0.186301 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.071429 | 0 | 0.071429 | 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 |
5c8a860b757814040a5cb080bf8349089a11404b | 2,417 | py | Python | backend/api/views/tests/test_image_c.py | jenhaoyang/Disfactory | 40f9e14044f0e457489164745095f24cd1e923dd | [
"MIT"
] | null | null | null | backend/api/views/tests/test_image_c.py | jenhaoyang/Disfactory | 40f9e14044f0e457489164745095f24cd1e923dd | [
"MIT"
] | null | null | null | backend/api/views/tests/test_image_c.py | jenhaoyang/Disfactory | 40f9e14044f0e457489164745095f24cd1e923dd | [
"MIT"
] | null | null | null | from datetime import datetime, timezone
from unittest.mock import patch
from pathlib import Path
from freezegun import freeze_time
from django.test import TestCase, Client
from django.conf import settings
from api.models import Image
HERE = Path(__file__).resolve().parent
FAKE_IMGUR_PATH = "https://i.imgur.com/RxAr... | 38.983871 | 95 | 0.678527 | 341 | 2,417 | 4.542522 | 0.269795 | 0.020658 | 0.050355 | 0.046482 | 0.69787 | 0.649451 | 0.626856 | 0.626856 | 0.626856 | 0.626856 | 0 | 0.041839 | 0.199007 | 2,417 | 61 | 96 | 39.622951 | 0.758264 | 0 | 0 | 0.617021 | 0 | 0 | 0.132396 | 0.055854 | 0 | 0 | 0 | 0 | 0.234043 | 1 | 0.06383 | false | 0 | 0.148936 | 0 | 0.234043 | 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 |
5c9779b9846edaea3abba37e7318794d8978a855 | 1,030 | py | Python | azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hd_insight_management_client_enums.py | NMijat1024/azure-sdk-for-python | c49e1d6d797dceaca81813cafb1a486d67185182 | [
"MIT"
] | null | null | null | azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hd_insight_management_client_enums.py | NMijat1024/azure-sdk-for-python | c49e1d6d797dceaca81813cafb1a486d67185182 | [
"MIT"
] | 1 | 2018-11-29T14:46:42.000Z | 2018-11-29T14:46:42.000Z | azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hd_insight_management_client_enums.py | NMijat1024/azure-sdk-for-python | c49e1d6d797dceaca81813cafb1a486d67185182 | [
"MIT"
] | 1 | 2018-08-28T14:36:47.000Z | 2018-08-28T14:36:47.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 22.391304 | 76 | 0.6 | 100 | 1,030 | 6.15 | 0.63 | 0.056911 | 0.029268 | 0.055285 | 0.087805 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001179 | 0.176699 | 1,030 | 45 | 77 | 22.888889 | 0.724057 | 0.438835 | 0 | 0.315789 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5ca0753faa0c3624a568c8b193e922d0dbffa828 | 429 | py | Python | supports/pyload/src/pyload/plugins/accounts/CloudsharesNet.py | LuckyNicky/pycrawler | 4b3fe2f6e8e51f236d95a64a89a44199e4e97743 | [
"Apache-2.0"
] | 1 | 2020-04-02T17:03:39.000Z | 2020-04-02T17:03:39.000Z | supports/pyload/src/pyload/plugins/accounts/CloudsharesNet.py | LuckyNicky/pycrawler | 4b3fe2f6e8e51f236d95a64a89a44199e4e97743 | [
"Apache-2.0"
] | null | null | null | supports/pyload/src/pyload/plugins/accounts/CloudsharesNet.py | LuckyNicky/pycrawler | 4b3fe2f6e8e51f236d95a64a89a44199e4e97743 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from ..base.xfs_account import XFSAccount
class CloudsharesNet(XFSAccount):
__name__ = "CloudsharesNet"
__type__ = "account"
__version__ = "0.03"
__status__ = "testing"
__pyload_version__ = "0.5"
__description__ = """Cloudshares.net account plugin"""
__license__ ... | 22.578947 | 59 | 0.666667 | 42 | 429 | 5.97619 | 0.785714 | 0.063745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02029 | 0.195804 | 429 | 18 | 60 | 23.833333 | 0.707246 | 0.048951 | 0 | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5cb00102137240f57c13ca8984615debc98d7b6c | 1,212 | py | Python | Leak #5 - Lost In Translation/windows/Resources/Ops/PyScripts/lib/ops/cmd/groups.py | bidhata/EquationGroupLeaks | 1ff4bc115cb2bd5bf2ed6bf769af44392926830c | [
"Unlicense"
] | 9 | 2019-11-22T04:58:40.000Z | 2022-02-26T16:47:28.000Z | Python.Fuzzbunch/Resources/Ops/PyScripts/lib/ops/cmd/groups.py | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | Python.Fuzzbunch/Resources/Ops/PyScripts/lib/ops/cmd/groups.py | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | 8 | 2017-09-27T10:31:18.000Z | 2022-01-08T10:30:46.000Z |
import ops.cmd
import ops
import ops.env
import ops.cmd.safetychecks
import ops.security.auditing
from ops.cmd import getBoolOption, setBoolOption, getValueOption, setListOption
OpsCommandException = ops.cmd.OpsCommandException
VALID_OPTIONS = ['user', 'network', 'local', 'target']
class GroupsCommand(ops.cmd.DszComm... | 40.4 | 110 | 0.679043 | 145 | 1,212 | 5.586207 | 0.365517 | 0.059259 | 0.074074 | 0.069136 | 0.264198 | 0.118519 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175743 | 1,212 | 30 | 111 | 40.4 | 0.810811 | 0 | 0 | 0 | 0 | 0 | 0.067657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.730769 | 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 |
5cb01f72c2e1f02740ee366e9419f4fc76761ed9 | 1,249 | py | Python | run/f1score.py | osmanbaskaya/wsid | b486fb907a85981aa0d0c30210df1d0c33fcbff2 | [
"MIT"
] | 1 | 2016-12-22T21:41:21.000Z | 2016-12-22T21:41:21.000Z | run/f1score.py | osmanbaskaya/mapping-impact | 8024dd3b916ac2dfc336221dd32faba4c0a98442 | [
"MIT"
] | 4 | 2015-06-20T14:09:35.000Z | 2015-06-26T18:29:26.000Z | run/f1score.py | osmanbaskaya/mapping-impact | 8024dd3b916ac2dfc336221dd32faba4c0a98442 | [
"MIT"
] | 1 | 2018-05-11T00:12:59.000Z | 2018-05-11T00:12:59.000Z | #! /usr/bin/python
# -*- coding: utf-8 -*-
__author__ = "Osman Baskaya"
import os
import subprocess
import sys
def s10_f1_run():
systems = os.listdir('../../systems')
command = "./sup_eval.sh ../../systems/%s . ../80_20/all/mapping.%d.key ../80_20/all/test.%d.key 2>/dev/null | tail -1 | grep -oP '0.\d+'"
... | 35.685714 | 226 | 0.583667 | 173 | 1,249 | 4.109827 | 0.421965 | 0.021097 | 0.033755 | 0.039381 | 0.554149 | 0.390999 | 0.390999 | 0.289733 | 0.289733 | 0.289733 | 0 | 0.047619 | 0.226581 | 1,249 | 34 | 227 | 36.735294 | 0.688406 | 0.031225 | 0 | 0.16 | 0 | 0.08 | 0.337748 | 0.150662 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5cb48a34918725ed322fa84f1070cebbca501f40 | 488 | py | Python | bin/uber.py | taps1197/Traahi | 52765e26b844169349de7c5a13da8edcbd6e7d47 | [
"MIT"
] | 1 | 2019-03-29T11:38:03.000Z | 2019-03-29T11:38:03.000Z | bin/uber.py | taps1197/Traahi | 52765e26b844169349de7c5a13da8edcbd6e7d47 | [
"MIT"
] | null | null | null | bin/uber.py | taps1197/Traahi | 52765e26b844169349de7c5a13da8edcbd6e7d47 | [
"MIT"
] | null | null | null | import os
import json
from uber_rides.session import Session
from uber_rides.client import UberRidesClient
from pprint import pprint
session = Session(server_token="P0xeLpEgkQct68R3USut3nBst62X83Tz4V8BT7CR")
client = UberRidesClient(session)
response = client.get_products(37.77, -122.41)
products = response.json... | 21.217391 | 74 | 0.770492 | 64 | 488 | 5.8125 | 0.453125 | 0.064516 | 0.069892 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 0.125 | 488 | 22 | 75 | 22.181818 | 0.822014 | 0 | 0 | 0 | 0 | 0 | 0.137295 | 0.081967 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5cb8c0c2be663ce0d5770be43328e7edfd49f0dd | 384 | py | Python | marioshop/tools/migrations/0008_auto_20210509_1401.py | alpinista06/GBB-Store-project | 55a8c614923e770eb747c37e145a9f422d1bac2a | [
"MIT"
] | null | null | null | marioshop/tools/migrations/0008_auto_20210509_1401.py | alpinista06/GBB-Store-project | 55a8c614923e770eb747c37e145a9f422d1bac2a | [
"MIT"
] | null | null | null | marioshop/tools/migrations/0008_auto_20210509_1401.py | alpinista06/GBB-Store-project | 55a8c614923e770eb747c37e145a9f422d1bac2a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.14 on 2021-05-09 17:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tools', '0007_auto_20210429_1427'),
]
operations = [
migrations.AlterField(
model_name='tool',
name='quantity',
... | 20.210526 | 49 | 0.596354 | 41 | 384 | 5.487805 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117216 | 0.289063 | 384 | 18 | 50 | 21.333333 | 0.70696 | 0.119792 | 0 | 0 | 1 | 0 | 0.119048 | 0.068452 | 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 |
5cc07fe278fde69f39bb0b891fbc01b7d26bc5c0 | 645 | py | Python | Proj2/neuralnetworks/dropout.py | sebemery/EE559-DeepLearning-MiniProjects | 34ea114884e2e4f1416d63fa53466619e6a5c5fd | [
"MIT"
] | null | null | null | Proj2/neuralnetworks/dropout.py | sebemery/EE559-DeepLearning-MiniProjects | 34ea114884e2e4f1416d63fa53466619e6a5c5fd | [
"MIT"
] | null | null | null | Proj2/neuralnetworks/dropout.py | sebemery/EE559-DeepLearning-MiniProjects | 34ea114884e2e4f1416d63fa53466619e6a5c5fd | [
"MIT"
] | 1 | 2020-03-18T18:58:02.000Z | 2020-03-18T18:58:02.000Z | import torch
import numpy as np
from .base import Module
class Dropout(Module):
def __init__(self, p, input_size, seed=0):
self.p = p
self.generator = np.random.RandomState(seed)
self.activation = self.generator.binomial(size=input_size, n=1, p=1-p)
self.activation = torch.from_nu... | 24.807692 | 78 | 0.624806 | 86 | 645 | 4.593023 | 0.44186 | 0.177215 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006383 | 0.271318 | 645 | 25 | 79 | 25.8 | 0.834043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0.052632 | 0.473684 | 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 |
5cc84883f5a1ed2810b170d833c1b4dcfd7d3d83 | 872 | py | Python | django/stock/urls.py | phantomhieve/cashcenter | 642a496c5e60847f4c4a6cc2c80b957ae2d6285b | [
"MIT"
] | null | null | null | django/stock/urls.py | phantomhieve/cashcenter | 642a496c5e60847f4c4a6cc2c80b957ae2d6285b | [
"MIT"
] | 4 | 2021-04-08T22:00:11.000Z | 2021-09-22T19:42:08.000Z | django/stock/urls.py | phantomhieve/cashcenter | 642a496c5e60847f4c4a6cc2c80b957ae2d6285b | [
"MIT"
] | null | null | null | from django.urls import path
from django.contrib.auth.decorators import login_required
from .views import (
StockListView,
stockAddView,
stockDeleteView,
autoComplete
)
urlpatterns = [
path(
'',
login_required(StockListView.as_view(), login_url='/user/login/'),
name='stoc... | 24.222222 | 74 | 0.595183 | 86 | 872 | 5.837209 | 0.325581 | 0.155378 | 0.119522 | 0.169323 | 0.358566 | 0.358566 | 0.203187 | 0.203187 | 0.203187 | 0 | 0 | 0 | 0.263761 | 872 | 36 | 75 | 24.222222 | 0.781931 | 0 | 0 | 0.342857 | 0 | 0 | 0.191294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085714 | 0 | 0.085714 | 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 |
5cd04bfaaa27c8c69618c51262862dca892f4515 | 4,013 | py | Python | examples/cloudml-sentiment-analysis/preprocessing/preprocess.py | ruchirjain86/professional-services | 739ac0f5ffc8237f750804fa9f0f14d4d918a0fa | [
"Apache-2.0"
] | 2,116 | 2017-05-18T19:33:05.000Z | 2022-03-31T13:34:48.000Z | examples/cloudml-sentiment-analysis/preprocessing/preprocess.py | ruchirjain86/professional-services | 739ac0f5ffc8237f750804fa9f0f14d4d918a0fa | [
"Apache-2.0"
] | 548 | 2017-05-20T05:05:35.000Z | 2022-03-28T16:38:12.000Z | examples/cloudml-sentiment-analysis/preprocessing/preprocess.py | ruchirjain86/professional-services | 739ac0f5ffc8237f750804fa9f0f14d4d918a0fa | [
"Apache-2.0"
] | 1,095 | 2017-05-19T00:02:36.000Z | 2022-03-31T05:21:39.000Z | # Copyright 2018 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 30.172932 | 97 | 0.705956 | 505 | 4,013 | 5.473267 | 0.411881 | 0.021708 | 0.017366 | 0.022793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004029 | 0.195863 | 4,013 | 132 | 98 | 30.401515 | 0.852495 | 0.146275 | 0 | 0.054795 | 0 | 0 | 0.052997 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.205479 | null | null | 0.013699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5cd359d31bdc95e8c8ed20bfb7e74a2a5dfecd3f | 582 | py | Python | PythonStarter/ClassOne.py | fsbd1285228/PythonCodes | e71fcd695e19e3d286ec249113791d0729bec751 | [
"MIT"
] | null | null | null | PythonStarter/ClassOne.py | fsbd1285228/PythonCodes | e71fcd695e19e3d286ec249113791d0729bec751 | [
"MIT"
] | null | null | null | PythonStarter/ClassOne.py | fsbd1285228/PythonCodes | e71fcd695e19e3d286ec249113791d0729bec751 | [
"MIT"
] | null | null | null | class Bird(object):
have_feather = True
way_of_reproduction = 'egg'
def move(self, dx, dy):
position = [0,0]
position[0] = position[0] + dx
position[1] = position[1] + dy
return position
class Chicken(Bird):
way_of_move = 'walk'
possible_in_KFC = True
class Oriole(B... | 23.28 | 48 | 0.647766 | 81 | 582 | 4.432099 | 0.493827 | 0.041783 | 0.05571 | 0.072423 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018059 | 0.238832 | 582 | 25 | 49 | 23.28 | 0.792325 | 0 | 0 | 0 | 0 | 0 | 0.060034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cd539226446c2a2f5d8bb7fd1ebb3684b3007da | 3,353 | py | Python | toolkit/cmds/ls_users.py | suraj-testing2/Flowers_Toilet | 21c981531a505a8b74ee42c33a3f4d68ef72d7f3 | [
"Apache-2.0"
] | 22 | 2015-01-22T12:10:50.000Z | 2021-10-12T03:30:56.000Z | toolkit/cmds/ls_users.py | suraj-testing2/Flowers_Toilet | 21c981531a505a8b74ee42c33a3f4d68ef72d7f3 | [
"Apache-2.0"
] | null | null | null | toolkit/cmds/ls_users.py | suraj-testing2/Flowers_Toilet | 21c981531a505a8b74ee42c33a3f4d68ef72d7f3 | [
"Apache-2.0"
] | 17 | 2016-01-28T04:54:39.000Z | 2021-10-12T03:30:49.000Z | #!/usr/bin/python
#
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 35.294737 | 78 | 0.70176 | 451 | 3,353 | 5.04878 | 0.405765 | 0.038647 | 0.032938 | 0.023715 | 0.093983 | 0.030742 | 0.030742 | 0 | 0 | 0 | 0 | 0.004996 | 0.223979 | 3,353 | 94 | 79 | 35.670213 | 0.8701 | 0.252311 | 0 | 0.234043 | 0 | 0 | 0.102373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.170213 | null | null | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cdf0538bafcb5aaa18058d4c0a939f600b83ff4 | 46,926 | py | Python | tests/server/services/RecommendReviewers_test.py | elifesciences/peerscout | 2e899f268b4712ffb7a09b171de3f3841337d65d | [
"MIT"
] | 3 | 2018-09-10T16:33:14.000Z | 2021-04-06T06:09:23.000Z | tests/server/services/RecommendReviewers_test.py | elifesciences/peerscout | 2e899f268b4712ffb7a09b171de3f3841337d65d | [
"MIT"
] | 247 | 2018-03-01T12:06:07.000Z | 2019-10-25T05:25:16.000Z | tests/server/services/RecommendReviewers_test.py | elifesciences/peerscout | 2e899f268b4712ffb7a09b171de3f3841337d65d | [
"MIT"
] | 3 | 2018-03-01T12:25:44.000Z | 2019-09-04T00:43:34.000Z | import pprint
import logging
from contextlib import contextmanager
import pytest
import pandas as pd
from peerscout.shared.database import populated_in_memory_database
from peerscout.server.services.ManuscriptModel import ManuscriptModel
from peerscout.server.services.DocumentSimilarityModel import DocumentSimilarit... | 40.279828 | 100 | 0.578315 | 4,084 | 46,926 | 6.186337 | 0.070029 | 0.049159 | 0.028577 | 0.039105 | 0.767584 | 0.717989 | 0.677696 | 0.642312 | 0.609104 | 0.579497 | 0 | 0.021924 | 0.337084 | 46,926 | 1,164 | 101 | 40.314433 | 0.790247 | 0.005477 | 0 | 0.521033 | 0 | 0 | 0.11309 | 0.01768 | 0 | 0 | 0 | 0 | 0.057361 | 1 | 0.054493 | false | 0 | 0.010516 | 0.008604 | 0.08413 | 0.001912 | 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 |
5ce1c1e45e684257c61a22c09e36b324c5a48fc3 | 263 | py | Python | Mundo 3_Estruturas Compostas/Desafio_77.py | VictorOliveira02/Desafios-Python3-Curso-em-Video | 53ee8bd814b816f3a21936677ef3f155b582843f | [
"MIT"
] | null | null | null | Mundo 3_Estruturas Compostas/Desafio_77.py | VictorOliveira02/Desafios-Python3-Curso-em-Video | 53ee8bd814b816f3a21936677ef3f155b582843f | [
"MIT"
] | null | null | null | Mundo 3_Estruturas Compostas/Desafio_77.py | VictorOliveira02/Desafios-Python3-Curso-em-Video | 53ee8bd814b816f3a21936677ef3f155b582843f | [
"MIT"
] | null | null | null | palavra = 'MACACO','ARROZ','AZEITONA','LASANHA','PIZZA','CANETA','PARALELEPIPEDO','ONZE','FERNANDO','CAIO'
for p in palavra:
print(f'\nNA PALAVRA {p} TEMOS AS VOGAIS ',end='')
for letra in p:
if letra in 'AEIOU':
print(letra, end=' ')
| 37.571429 | 106 | 0.60076 | 35 | 263 | 4.514286 | 0.685714 | 0.088608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201521 | 263 | 6 | 107 | 43.833333 | 0.752381 | 0 | 0 | 0 | 0 | 0 | 0.403042 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ce1c9f7533769cd42ba4b49d7b1951d113a40f2 | 2,218 | py | Python | sms/apps/products/models.py | vyshakTs/STORE_MANAGEMENT_SYSTEM | b6b82a02c0b512083c35a8656e191436552569a9 | [
"CC0-1.0"
] | null | null | null | sms/apps/products/models.py | vyshakTs/STORE_MANAGEMENT_SYSTEM | b6b82a02c0b512083c35a8656e191436552569a9 | [
"CC0-1.0"
] | null | null | null | sms/apps/products/models.py | vyshakTs/STORE_MANAGEMENT_SYSTEM | b6b82a02c0b512083c35a8656e191436552569a9 | [
"CC0-1.0"
] | null | null | null | import uuid
from autoslug import AutoSlugField
from django.db import models
from sms.apps.accounts.models import TimeStampedModel
# from django_resized import ResizedImageField
# Create your models here.
class Product(models.Model):
IN_STOCK = 1
OUT_OF_STOCK = 0
STATUS_CHOICES = (
(IN_STOCK, 'I... | 31.685714 | 100 | 0.688909 | 263 | 2,218 | 5.631179 | 0.330798 | 0.072924 | 0.079001 | 0.103309 | 0.486158 | 0.454423 | 0.340311 | 0.293045 | 0.241729 | 0.176907 | 0 | 0.007307 | 0.197926 | 2,218 | 70 | 101 | 31.685714 | 0.825183 | 0.048693 | 0 | 0.25 | 0 | 0 | 0.071191 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.076923 | 0.057692 | 0.711538 | 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 |
5ce7ad53f5d3fe95cc2e2d929219a1298a0e9cfe | 533 | py | Python | src/jobs/migrations/0005_auto_20200507_0951.py | earth-emoji/infotechia | 44ed7aecf052001573b47320e6a1239968d2a067 | [
"BSD-2-Clause"
] | null | null | null | src/jobs/migrations/0005_auto_20200507_0951.py | earth-emoji/infotechia | 44ed7aecf052001573b47320e6a1239968d2a067 | [
"BSD-2-Clause"
] | 11 | 2019-10-27T23:41:10.000Z | 2022-02-10T10:30:00.000Z | src/jobs/migrations/0005_auto_20200507_0951.py | earth-emoji/august | 065d4b449a138ead1557293bffcb20cd2db90a41 | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 2.2.12 on 2020-05-07 09:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('jobs', '0004_application_qualifications'),
]
operations = [
migrations.AlterField(
model_name=... | 26.65 | 150 | 0.666041 | 58 | 533 | 6.034483 | 0.689655 | 0.068571 | 0.08 | 0.125714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047962 | 0.217636 | 533 | 19 | 151 | 28.052632 | 0.791367 | 0.086304 | 0 | 0 | 1 | 0 | 0.181443 | 0.107216 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a20dd4f2ffe3e31b486d6e52ca9dfffca42838b | 5,622 | py | Python | tests/test_routes.py | girardinsamuel/masonite-js-routes | 8918b874ff1ca64069745ca5fbb9d4b464ceaf74 | [
"MIT"
] | 4 | 2020-11-01T22:51:01.000Z | 2021-09-23T23:12:53.000Z | tests/test_routes.py | girardinsamuel/masonite-js-routes | 8918b874ff1ca64069745ca5fbb9d4b464ceaf74 | [
"MIT"
] | 17 | 2021-02-07T17:32:15.000Z | 2022-03-21T22:08:31.000Z | tests/test_routes.py | girardinsamuel/masonite-js-routes | 8918b874ff1ca64069745ca5fbb9d4b464ceaf74 | [
"MIT"
] | null | null | null | from masonite.testing import TestCase
from masonite.routes import Get, Post
from src.masonite.js_routes.routes import Routes as JsRoutes
all_expected_routes = {
"home": {"uri": "home", "methods": ["GET"]},
"posts.show": {"uri": "posts/{post}", "methods": ["GET"]},
"posts.store": {"uri": "posts", "methods"... | 38.244898 | 87 | 0.556208 | 576 | 5,622 | 5.248264 | 0.135417 | 0.066159 | 0.043665 | 0.042342 | 0.75951 | 0.710883 | 0.681111 | 0.669864 | 0.668541 | 0.583857 | 0 | 0 | 0.258449 | 5,622 | 146 | 88 | 38.506849 | 0.725114 | 0 | 0 | 0.540984 | 0 | 0 | 0.273212 | 0.064746 | 0 | 0 | 0 | 0 | 0.07377 | 1 | 0.098361 | false | 0.02459 | 0.07377 | 0 | 0.188525 | 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 |
7a2908a25439c4d98ae8dc45dda5930a19f48d95 | 16,580 | py | Python | engine/views.py | Hetvi07/Keep--Blogging | 89359f3d6bffda4e622bd293f815271fc9dd67b3 | [
"MIT"
] | 4 | 2020-10-07T15:08:24.000Z | 2021-11-10T08:27:58.000Z | engine/views.py | Hetvi07/Keep--Blogging | 89359f3d6bffda4e622bd293f815271fc9dd67b3 | [
"MIT"
] | 1 | 2018-03-13T16:52:35.000Z | 2018-03-15T15:10:08.000Z | engine/views.py | briefausde/djs | aeb44debaa9708090e7e343da45de8fa9d6ba8e8 | [
"MIT"
] | 4 | 2020-10-09T19:36:00.000Z | 2021-11-07T19:49:40.000Z | from math import floor
from django.contrib.auth.mixins import LoginRequiredMixin
from django.db.models import Q
from django.http import HttpResponseRedirect, HttpResponse, HttpResponseForbidden
from django.shortcuts import get_object_or_404
from django.template.context_processors import csrf
from django.views import ge... | 34.541667 | 115 | 0.679614 | 1,856 | 16,580 | 5.917565 | 0.137392 | 0.055085 | 0.034144 | 0.015296 | 0.486206 | 0.393881 | 0.342711 | 0.278886 | 0.252117 | 0.216425 | 0 | 0.006555 | 0.208745 | 16,580 | 479 | 116 | 34.613779 | 0.830627 | 0.018034 | 0 | 0.354167 | 0 | 0 | 0.069966 | 0.023117 | 0 | 0 | 0 | 0.002088 | 0 | 1 | 0.119048 | false | 0 | 0.044643 | 0.044643 | 0.654762 | 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 |
7a293597c12a4586fa8facd552e68582538dca9a | 798 | py | Python | main_boyd.py | Ratchet-Studios/HashCode2019Qualifier | 44af942ac48212632d1f0fb1d6408a91975153ed | [
"MIT"
] | null | null | null | main_boyd.py | Ratchet-Studios/HashCode2019Qualifier | 44af942ac48212632d1f0fb1d6408a91975153ed | [
"MIT"
] | null | null | null | main_boyd.py | Ratchet-Studios/HashCode2019Qualifier | 44af942ac48212632d1f0fb1d6408a91975153ed | [
"MIT"
] | null | null | null | import InputOutput
files = ["a_example.txt",
"b_lovely_landscape.txt",
"c_memorable_moments.txt",
"d_pet_pictures.txt",
"e_shiny_selfies.txt"]
data = InputOutput.Data("input_data/" + files[0])
"""
data.photos[photo_id][0] - photo id
data.photos[photo_id][1] - 'h' or 'v'
data.photos[... | 27.517241 | 69 | 0.70802 | 133 | 798 | 4.022556 | 0.511278 | 0.078505 | 0.11215 | 0.127103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016369 | 0.157895 | 798 | 28 | 70 | 28.5 | 0.779762 | 0.018797 | 0 | 0 | 0 | 0 | 0.359322 | 0.152542 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | 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 |
7a2ad667b00c796f41fd7d66fe4913a3f7cf25d9 | 16,727 | py | Python | ScPlayback.py | karinharp/EM-uNetPi | a2bf585a039ef228bc34d558941865088da259b9 | [
"MIT"
] | 42 | 2018-08-21T02:49:52.000Z | 2022-02-07T15:49:05.000Z | ScPlayback.py | karinharp/EM-uNetPi | a2bf585a039ef228bc34d558941865088da259b9 | [
"MIT"
] | null | null | null | ScPlayback.py | karinharp/EM-uNetPi | a2bf585a039ef228bc34d558941865088da259b9 | [
"MIT"
] | 6 | 2018-10-05T14:32:58.000Z | 2022-02-07T06:09:22.000Z | import sys, getopt, struct, time, termios, fcntl, sys, os, colorsys, threading, time, datetime, subprocess, random, os.path, math, json
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/fbtft')
from RenderManager import RenderManager
from WanemManager import WanemManager
from ScBase import ScBase
from gfx ... | 38.9 | 135 | 0.511987 | 1,956 | 16,727 | 4.362474 | 0.140082 | 0.110864 | 0.077698 | 0.063752 | 0.512364 | 0.465604 | 0.404195 | 0.386617 | 0.313489 | 0.232509 | 0 | 0.078169 | 0.335386 | 16,727 | 429 | 136 | 38.990676 | 0.689395 | 0.057512 | 0 | 0.366972 | 0 | 0 | 0.018195 | 0 | 0 | 0 | 0 | 0.002331 | 0 | 0 | null | null | 0 | 0.021407 | null | null | 0.003058 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7a40b49d80fe3632355e2539a5130f841bba126c | 1,091 | py | Python | zipline/gens/composites.py | dxcv/zipline_chstock | 6cbd7e0c7d70d55d55edf86dc3f206f15a8bddc9 | [
"Apache-2.0"
] | 16 | 2019-10-15T08:35:36.000Z | 2021-12-10T14:43:49.000Z | zipline/gens/composites.py | dxcv/zipline_chstock | 6cbd7e0c7d70d55d55edf86dc3f206f15a8bddc9 | [
"Apache-2.0"
] | 2 | 2021-03-31T19:14:15.000Z | 2021-12-13T20:20:50.000Z | zipline/gens/composites.py | fangshi1991/zipline_chstock | 7911642780fa57f92e1705b9c0acaeb837b3d98f | [
"Apache-2.0"
] | 11 | 2019-10-15T14:25:00.000Z | 2021-12-09T15:42:06.000Z | #encoding:utf-8
# Copyright 2013 Quantopian, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 32.088235 | 74 | 0.734189 | 155 | 1,091 | 5.090323 | 0.625806 | 0.076046 | 0.032953 | 0.040558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010193 | 0.190651 | 1,091 | 33 | 75 | 33.060606 | 0.883352 | 0.668194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a418c864b72cb7a9e6938b4593fb63b01445188 | 716 | py | Python | sdap/studies/migrations/0026_auto_20191128_1041.py | umr1085-irset/reproGenomicsViewer | 187ea320668e567d01572bfbf9497bebd691569a | [
"MIT"
] | null | null | null | sdap/studies/migrations/0026_auto_20191128_1041.py | umr1085-irset/reproGenomicsViewer | 187ea320668e567d01572bfbf9497bebd691569a | [
"MIT"
] | 1 | 2020-02-16T10:48:55.000Z | 2020-02-16T11:06:36.000Z | sdap/studies/migrations/0026_auto_20191128_1041.py | umr1085-irset/reproGenomicsViewer | 187ea320668e567d01572bfbf9497bebd691569a | [
"MIT"
] | 4 | 2019-11-04T15:00:55.000Z | 2020-03-02T13:36:17.000Z | # Generated by Django 2.2.5 on 2019-11-28 10:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auth', '0011_update_proxy_permissions'),
('studies', '0025_auto_20191128_0958'),
]
operations = [
migrations.AddField(
m... | 28.64 | 101 | 0.622905 | 76 | 716 | 5.657895 | 0.592105 | 0.083721 | 0.106977 | 0.125581 | 0.544186 | 0.455814 | 0.24186 | 0.24186 | 0 | 0 | 0 | 0.065543 | 0.25419 | 716 | 24 | 102 | 29.833333 | 0.7397 | 0.062849 | 0 | 0.333333 | 1 | 0 | 0.243647 | 0.077728 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a469ca4efeb9a5e00a92c23d28f63e455d24a3f | 266 | py | Python | image processing/4/1/1.py | DzmitrySakalenka/stepik_courses | 7c43ac35cd921e8f6f96fb4f15f77ace38cc2d21 | [
"MIT"
] | null | null | null | image processing/4/1/1.py | DzmitrySakalenka/stepik_courses | 7c43ac35cd921e8f6f96fb4f15f77ace38cc2d21 | [
"MIT"
] | null | null | null | image processing/4/1/1.py | DzmitrySakalenka/stepik_courses | 7c43ac35cd921e8f6f96fb4f15f77ace38cc2d21 | [
"MIT"
] | null | null | null | from skimage.io import imread, imsave
from numpy import ones
from scipy.signal import convolve2d
import warnings
warnings.filterwarnings("ignore")
img = imread('img.png')
img = convolve2d(img, ones((5, 5), dtype=int), mode='valid') // 25
imsave('out_img.png', img) | 26.6 | 66 | 0.744361 | 40 | 266 | 4.925 | 0.575 | 0.060914 | 0.091371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025532 | 0.116541 | 266 | 10 | 67 | 26.6 | 0.812766 | 0 | 0 | 0 | 0 | 0 | 0.108614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7a4736a2415c86f69bf9548f7c81b587162aa65a | 2,087 | py | Python | embedKB/datatools/__init__.py | zafarali/embedKB | 52d7b65cd47caebb01498826a4c67c76e48ed2c7 | [
"MIT"
] | 1 | 2018-04-29T18:43:56.000Z | 2018-04-29T18:43:56.000Z | embedKB/datatools/__init__.py | zafarali/embedKB | 52d7b65cd47caebb01498826a4c67c76e48ed2c7 | [
"MIT"
] | null | null | null | embedKB/datatools/__init__.py | zafarali/embedKB | 52d7b65cd47caebb01498826a4c67c76e48ed2c7 | [
"MIT"
] | 1 | 2020-01-08T03:01:09.000Z | 2020-01-08T03:01:09.000Z | from .knowledgebase import KnowledgeBase
from .dataset import Dataset
from .dataset import SmartNegativeSampling, NegativeSampling
def get_data(data_path, batch_size):
train_path = data_path + 'train.txt'
valid_path = data_path + 'valid.txt'
test_path = data_path + 'test.txt'
# load knowledge base of ... | 35.372881 | 69 | 0.735985 | 306 | 2,087 | 4.679739 | 0.186275 | 0.087989 | 0.058659 | 0.075419 | 0.625698 | 0.625698 | 0.625698 | 0.625698 | 0.625698 | 0.625698 | 0 | 0.00235 | 0.184475 | 2,087 | 58 | 70 | 35.982759 | 0.839013 | 0.151893 | 0 | 0.631579 | 0 | 0 | 0.058456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.078947 | 0 | 0.184211 | 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 |
7a49b0b0bcc9d432f9a0ecf41ea8e6994b42eabc | 2,443 | py | Python | hyperglass/models/commands/__init__.py | blkmajik/hyperglass | c52a6f609843177671d38bcad59b8bd658f46b64 | [
"BSD-3-Clause-Clear"
] | 298 | 2019-06-17T13:51:46.000Z | 2021-06-23T18:09:51.000Z | hyperglass/models/commands/__init__.py | blkmajik/hyperglass | c52a6f609843177671d38bcad59b8bd658f46b64 | [
"BSD-3-Clause-Clear"
] | 137 | 2019-06-18T12:59:37.000Z | 2021-06-19T05:50:58.000Z | hyperglass/models/commands/__init__.py | blkmajik/hyperglass | c52a6f609843177671d38bcad59b8bd658f46b64 | [
"BSD-3-Clause-Clear"
] | 42 | 2019-06-18T07:25:23.000Z | 2021-06-18T17:40:20.000Z | """Validate command configuration variables."""
# Local
from .frr import FRRCommands
from .bird import BIRDCommands
from .tnsr import TNSRCommands
from .vyos import VyosCommands
from ..main import HyperglassModelExtra
from .common import CommandGroup
from .huawei import HuaweiCommands
from .juniper import JuniperComma... | 31.727273 | 66 | 0.720016 | 232 | 2,443 | 7.426724 | 0.344828 | 0.01567 | 0.023215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198526 | 2,443 | 76 | 67 | 32.144737 | 0.87998 | 0.139173 | 0 | 0 | 0 | 0 | 0.053615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.296296 | 0 | 0.611111 | 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 |
7a4c25d4caa2651ec1f11e6dec4ad5d6ef3519b1 | 6,618 | py | Python | test/dramatis/actor/name_test.py | dramatis/dramatis | 1a43a6be1d7e7e9fd2cde052430d6e84700dc822 | [
"MIT"
] | 5 | 2015-11-05T01:51:29.000Z | 2019-04-16T09:09:19.000Z | test/dramatis/actor/name_test.py | halorgium/dramatis | 50b35c4e79c33e438cb9f5eeab51ab73119bd75d | [
"MIT"
] | null | null | null | test/dramatis/actor/name_test.py | halorgium/dramatis | 50b35c4e79c33e438cb9f5eeab51ab73119bd75d | [
"MIT"
] | 1 | 2022-03-03T19:51:04.000Z | 2022-03-03T19:51:04.000Z | #!/bin/env python
import inspect
import sys
import os.path
import threading
from logging import warning
sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', 'lib' ) ]
from inspect import currentframe
from inspect import getframeinfo
from traceback import form... | 29.154185 | 118 | 0.586129 | 740 | 6,618 | 5.133784 | 0.214865 | 0.040537 | 0.044749 | 0.02527 | 0.473282 | 0.396683 | 0.360884 | 0.324559 | 0.307186 | 0.266649 | 0 | 0.000881 | 0.313841 | 6,618 | 226 | 119 | 29.283186 | 0.835719 | 0.002418 | 0 | 0.473988 | 0 | 0 | 0.165429 | 0 | 0 | 0 | 0 | 0 | 0.179191 | 0 | null | null | 0 | 0.086705 | null | null | 0.00578 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7a4c4b862367ea16f7d5febe0d7eca4640eb21bd | 6,281 | py | Python | ReanalysisRetrieval/NARR_RetrieveLocation_Variable.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | ReanalysisRetrieval/NARR_RetrieveLocation_Variable.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | ReanalysisRetrieval/NARR_RetrieveLocation_Variable.py | shaunwbell/FOCI_Analysis | dde4a5f0badd76fe5719575d5c138813ab156b70 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Background:
--------
NARR_RetrieveLocation_Variable.py
Purpose:
--------
Routines to retrieve, output NARR data from a single point over time to combine for analysis
History:
--------
2016-09-20 : Bell - simplify existing multiple routines for various locations into one packag... | 30.940887 | 145 | 0.660723 | 906 | 6,281 | 4.397351 | 0.317881 | 0.022088 | 0.011295 | 0.02761 | 0.331576 | 0.271084 | 0.24247 | 0.182229 | 0.182229 | 0.171185 | 0 | 0.041362 | 0.19551 | 6,281 | 202 | 146 | 31.094059 | 0.747081 | 0.079764 | 0 | 0.217949 | 0 | 0.025641 | 0.1305 | 0.074744 | 0 | 0 | 0 | 0.004951 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7a5e39fe1eef3901acdd4ef96bf4275f32e60fa9 | 756 | py | Python | {{cookiecutter.project_slug}}/sources/app/utils/tests/backends/test_admin_backend.py | AsheKR/cookiecutter-django | d0402aefcc2eeaffa747faa7ef50ad97286bfcca | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/sources/app/utils/tests/backends/test_admin_backend.py | AsheKR/cookiecutter-django | d0402aefcc2eeaffa747faa7ef50ad97286bfcca | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/sources/app/utils/tests/backends/test_admin_backend.py | AsheKR/cookiecutter-django | d0402aefcc2eeaffa747faa7ef50ad97286bfcca | [
"BSD-3-Clause"
] | null | null | null | from django.contrib.auth import authenticate
from django.test import TestCase, override_settings
class TestAdminBackend(TestCase):
@override_settings(
AUTHENTICATION_BACKENDS=[
"utils.backend.admin_backends.SettingsBackend",
"django.contrib.auth.backends.ModelBackend",
],
... | 36 | 81 | 0.687831 | 79 | 756 | 6.405063 | 0.455696 | 0.112648 | 0.136364 | 0.098814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220899 | 756 | 20 | 82 | 37.8 | 0.859083 | 0 | 0 | 0 | 0 | 0 | 0.268519 | 0.112434 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.055556 | false | 0.111111 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7a60ea9079d8b4f42edfd2138f6895976593e4dd | 905 | py | Python | examples/example4/sub_processt.py | bb515/probabilistic-peridynamics-project | 263c81b8736fd8308d3faf096714b12a2f787322 | [
"MIT"
] | null | null | null | examples/example4/sub_processt.py | bb515/probabilistic-peridynamics-project | 263c81b8736fd8308d3faf096714b12a2f787322 | [
"MIT"
] | null | null | null | examples/example4/sub_processt.py | bb515/probabilistic-peridynamics-project | 263c81b8736fd8308d3faf096714b12a2f787322 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat May 2 10:21:16 2020
@author: Ben Boys
"""
import subprocess
beams = ['3300beam952t.msh',
'3300beam2970t.msh',
'3300beam4392t.msh',
'3300beam6048t.msh',
'3300beam11836t.msh',
'3300beam17600t.msh',
'3300beam31680t.msh',
... | 33.518519 | 105 | 0.499448 | 82 | 905 | 5.45122 | 0.609756 | 0.035794 | 0.053691 | 0.053691 | 0.205817 | 0.205817 | 0.205817 | 0.205817 | 0.205817 | 0.205817 | 0 | 0.133965 | 0.183425 | 905 | 26 | 106 | 34.807692 | 0.470907 | 0.471823 | 0 | 0 | 0 | 0 | 0.449462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a645f8adcca004eb3891c7ce1a1f1c15e442c29 | 4,758 | py | Python | python/experiment.py | khoadoan/adversarial-hashing | eeeeb464b4fe7084efd38a6257499d674a9a7194 | [
"Apache-2.0"
] | 6 | 2020-06-26T09:51:07.000Z | 2021-09-09T09:48:55.000Z | python/experiment.py | khoadoan/adversarial-hashing | eeeeb464b4fe7084efd38a6257499d674a9a7194 | [
"Apache-2.0"
] | null | null | null | python/experiment.py | khoadoan/adversarial-hashing | eeeeb464b4fe7084efd38a6257499d674a9a7194 | [
"Apache-2.0"
] | 1 | 2020-07-21T19:34:38.000Z | 2020-07-21T19:34:38.000Z | import torch
from torch import nn
import torchvision.transforms as transforms
from tqdm import tqdm
import numpy as np
from train import model_helper
from models import mlp, dcgan
import data_manual
def get_numpy_data(dataloader):
x, y = [], []
for batch_x, batch_y in tqdm(iter(dataloader)):
x.append... | 37.171875 | 121 | 0.648802 | 644 | 4,758 | 4.614907 | 0.208075 | 0.048116 | 0.026245 | 0.038358 | 0.663526 | 0.630888 | 0.619448 | 0.609354 | 0.609354 | 0.609354 | 0 | 0.007671 | 0.232871 | 4,758 | 128 | 122 | 37.171875 | 0.806575 | 0.004414 | 0 | 0.407767 | 0 | 0 | 0.009922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087379 | false | 0 | 0.07767 | 0 | 0.242718 | 0.058252 | 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 |
7a651dc10038b543bed65a91a976010e9fef4523 | 492 | py | Python | modules/vtk_basic/vtkDataObjectReader.py | chrisidefix/devide | 99bfe156e710fa47ba7ae88b0ce1eef592a3a439 | [
"BSD-3-Clause"
] | 25 | 2015-08-24T16:05:14.000Z | 2020-12-09T20:07:14.000Z | modules/vtk_basic/vtkDataObjectReader.py | chrisidefix/devide | 99bfe156e710fa47ba7ae88b0ce1eef592a3a439 | [
"BSD-3-Clause"
] | 1 | 2016-02-16T21:18:10.000Z | 2016-02-16T21:18:10.000Z | modules/vtk_basic/vtkDataObjectReader.py | chrisidefix/devide | 99bfe156e710fa47ba7ae88b0ce1eef592a3a439 | [
"BSD-3-Clause"
] | 5 | 2016-02-16T20:05:37.000Z | 2020-01-31T11:27:39.000Z | # class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkDataObjectReader(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
v... | 37.846154 | 64 | 0.71748 | 39 | 492 | 8.74359 | 0.641026 | 0.046921 | 0.082111 | 0.123167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203252 | 492 | 12 | 65 | 41 | 0.869898 | 0.117886 | 0 | 0 | 1 | 0 | 0.081019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a68824134279f8b6dbfeea1e35c104956a0af71 | 16,219 | py | Python | tests/test_routes.py | sternie-devops-squad/wishlists | 5383dbc9afa0d3a1bb18993553986828ce8c591b | [
"Apache-2.0"
] | 3 | 2022-02-16T23:05:07.000Z | 2022-02-25T19:16:57.000Z | tests/test_routes.py | sternie-devops-squad/wishlists | 5383dbc9afa0d3a1bb18993553986828ce8c591b | [
"Apache-2.0"
] | 41 | 2022-02-23T13:08:31.000Z | 2022-03-31T21:59:44.000Z | tests/test_routes.py | sternie-devops-squad/wishlists | 5383dbc9afa0d3a1bb18993553986828ce8c591b | [
"Apache-2.0"
] | null | null | null | """
<your resource name> API Service Test Suite
Test cases can be run with the following:
nosetests -v --with-spec --spec-color
coverage report -m
"""
import os
import logging
from unittest import TestCase
from unittest.mock import MagicMock, patch
from tests.factories import WishlistFactory, ItemFactory
from serv... | 36.94533 | 113 | 0.580924 | 1,932 | 16,219 | 4.689441 | 0.119048 | 0.107616 | 0.040066 | 0.09106 | 0.707837 | 0.68245 | 0.656291 | 0.644702 | 0.638411 | 0.616225 | 0 | 0.011631 | 0.263148 | 16,219 | 439 | 114 | 36.94533 | 0.746465 | 0.163574 | 0 | 0.56701 | 0 | 0 | 0.135861 | 0.059163 | 0 | 0 | 0 | 0 | 0.206186 | 1 | 0.082474 | false | 0.003436 | 0.027491 | 0 | 0.116838 | 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 |
7a6c328d04079d34f9c72f504438d1ac60d7f5c9 | 1,225 | py | Python | streamparse/__init__.py | mdemaster/mdemaster_w205_exercise2 | 0030d78d674840f848250bff970824a1d49587fb | [
"Apache-2.0"
] | null | null | null | streamparse/__init__.py | mdemaster/mdemaster_w205_exercise2 | 0030d78d674840f848250bff970824a1d49587fb | [
"Apache-2.0"
] | 1 | 2020-06-25T07:11:18.000Z | 2020-06-25T07:11:18.000Z | streamparse/__init__.py | mdemaster/mdemaster_w205_exercise2 | 0030d78d674840f848250bff970824a1d49587fb | [
"Apache-2.0"
] | null | null | null | '''
This package makes it easier to work with Storm and Python.
:organization: Parsely
'''
from __future__ import absolute_import, print_function, unicode_literals
import streamparse.bolt
import streamparse.cmdln
import streamparse.component
import streamparse.contextmanagers
import streamparse.debug
import streampa... | 25 | 72 | 0.760816 | 159 | 1,225 | 5.716981 | 0.566038 | 0.168317 | 0.028603 | 0.035204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011719 | 0.164082 | 1,225 | 48 | 73 | 25.520833 | 0.875977 | 0.067755 | 0 | 0 | 0 | 0 | 0.563492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.305556 | 0 | 0.305556 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7a6fdd46e944281a1207e5491edb3ac4ac32ea1b | 397 | py | Python | mopidy_bamp/mopidy_bamp/base_service.py | isabella232/BossAlienMediaPlayer | c5ab5993a68c43d6b213bef2224020c9d4cc96cf | [
"MIT"
] | 14 | 2019-09-25T18:28:32.000Z | 2021-08-10T00:46:43.000Z | mopidy_bamp/mopidy_bamp/base_service.py | J87/BossAlienMediaPlayer | 5af42e2fa94bd7e0fc4486b3deed2fdd6e3dcd05 | [
"MIT"
] | 9 | 2020-01-08T11:10:25.000Z | 2022-03-02T05:42:50.000Z | mopidy_bamp/mopidy_bamp/base_service.py | J87/BossAlienMediaPlayer | 5af42e2fa94bd7e0fc4486b3deed2fdd6e3dcd05 | [
"MIT"
] | 6 | 2019-09-25T15:04:40.000Z | 2021-01-04T11:21:01.000Z |
import tornado.web
import threading
class BaseService:
initialised = False
core = None
config = None
lock = None
def init(self, core, config):
self.core = core
self.config = config
self.lock = threading.Lock()
self.initialised = True
def check_init(self):
... | 17.26087 | 44 | 0.609572 | 46 | 397 | 5.23913 | 0.478261 | 0.082988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.312343 | 397 | 22 | 45 | 18.045455 | 0.871795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7a74674267c1f4fe6e221bdda6d7d922cfce3228 | 981 | py | Python | Configuration/Generator/python/bJpsiX_filt_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Configuration/Generator/python/bJpsiX_filt_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Configuration/Generator/python/bJpsiX_filt_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
bfilter = cms.EDFilter("MCSingleParticleFilter",
MaxEta = cms.untracked.vdouble(20.0, 20.0),
MinEta = cms.untracked.vdouble(-20.0, -20.0),
MinPt = cms.untracked.vdouble(0.0, 0.0),
ParticleID = cms.untracked.vint32(5, -5)
)
jpsifilter = cms.EDFilter("PythiaFilte... | 33.827586 | 49 | 0.680938 | 133 | 981 | 5.022556 | 0.270677 | 0.323353 | 0.170659 | 0.08982 | 0.347305 | 0.143713 | 0.143713 | 0 | 0 | 0 | 0 | 0.083333 | 0.155963 | 981 | 28 | 50 | 35.035714 | 0.72343 | 0 | 0 | 0 | 0 | 0 | 0.055046 | 0.022426 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 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 |
7a7d6087e717f659ba3bf75a8fbf15e172cbecdc | 11,214 | py | Python | models.py | AndrejsinD/Hopes-Wings-Database | 9646890ac7c52440327129b2370cf062b099ded9 | [
"MIT"
] | null | null | null | models.py | AndrejsinD/Hopes-Wings-Database | 9646890ac7c52440327129b2370cf062b099ded9 | [
"MIT"
] | null | null | null | models.py | AndrejsinD/Hopes-Wings-Database | 9646890ac7c52440327129b2370cf062b099ded9 | [
"MIT"
] | null | null | null | from peewee import *
database = MySQLDatabase('hopes_wings', **{'charset': 'utf8', 'use_unicode': True, 'host': 'localhost', 'user': 'root', 'password': 'david'})
class UnknownField(object):
def __init__(self, *_, **__): pass
class BaseModel(Model):
class Meta:
database = database
class Donation(Bas... | 55.514851 | 370 | 0.753077 | 1,539 | 11,214 | 5.408707 | 0.136452 | 0.046852 | 0.034599 | 0.047573 | 0.627583 | 0.592143 | 0.527751 | 0.503604 | 0.466482 | 0.430082 | 0 | 0.019415 | 0.145711 | 11,214 | 201 | 371 | 55.791045 | 0.848956 | 0.256376 | 0 | 0.216667 | 0 | 0.125 | 0.43987 | 0.065246 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.016667 | 0.008333 | null | null | 0.008333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7a84e7aa21897fbe53bd431bdaec619accc01001 | 355 | py | Python | codecs.py | HackersTech/black-hat_python | 477246ebde4f944c15979f137cc73aa39fdc7669 | [
"MIT"
] | 3 | 2021-12-17T15:53:24.000Z | 2022-02-10T14:26:36.000Z | codecs.py | HackersTech/black-hat_python | 477246ebde4f944c15979f137cc73aa39fdc7669 | [
"MIT"
] | null | null | null | codecs.py | HackersTech/black-hat_python | 477246ebde4f944c15979f137cc73aa39fdc7669 | [
"MIT"
] | null | null | null | import codecs
print("""encodings :
# hex
# quopri
# uu
# uu_codec
# zip
# zlib
# bz2
# bz2_codec
base64""")
en=input('enter encoding -: ')
i=open(input("enter file to be encoded"),'r')
k=i.read()
main=eval(f"codecs.encode(b{k},'{en}')")
n=open(input('enter output file name -: '),'w')
n.write(f'a=codecs.decode(b"{m... | 18.684211 | 47 | 0.619718 | 60 | 355 | 3.633333 | 0.633333 | 0.137615 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.126761 | 355 | 18 | 48 | 19.722222 | 0.690323 | 0 | 0 | 0 | 0 | 0 | 0.622535 | 0.166197 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a85b5168659dd79cc872d19ff4716a8418facb0 | 2,352 | py | Python | loader.py | Faylixe/pibooth | 6ce63753c35ce7d38c6630e7eeb10947fdea1ffa | [
"MIT"
] | null | null | null | loader.py | Faylixe/pibooth | 6ce63753c35ce7d38c6630e7eeb10947fdea1ffa | [
"MIT"
] | null | null | null | loader.py | Faylixe/pibooth | 6ce63753c35ce7d38c6630e7eeb10947fdea1ffa | [
"MIT"
] | null | null | null | #!/usr/bin/python
from ui import Window, Panel, Label, Image
import pygame
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
GRAY = (100, 100, 100)
class Loader(object):
""" Loader class. """
def __init__(self, size=(640, 480)):
""" Default constructor. """
self.size = size
self.window = Wi... | 34.086957 | 98 | 0.592687 | 250 | 2,352 | 5.528 | 0.396 | 0.094067 | 0.04631 | 0.028944 | 0.167873 | 0.167873 | 0.118669 | 0 | 0 | 0 | 0 | 0.0172 | 0.283163 | 2,352 | 69 | 99 | 34.086957 | 0.802491 | 0.103316 | 0 | 0.08 | 0 | 0 | 0.068599 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0.14 | false | 0.02 | 0.04 | 0 | 0.22 | 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 |
7a86fd5c7b92c28b787452e765522fe7a377370d | 1,255 | py | Python | app/routers/users.py | Ashishb21/propertyConnect | 60bc23125e4b45cc5e0c3b2cff8d57afd57ecbb8 | [
"MIT"
] | null | null | null | app/routers/users.py | Ashishb21/propertyConnect | 60bc23125e4b45cc5e0c3b2cff8d57afd57ecbb8 | [
"MIT"
] | null | null | null | app/routers/users.py | Ashishb21/propertyConnect | 60bc23125e4b45cc5e0c3b2cff8d57afd57ecbb8 | [
"MIT"
] | null | null | null | from fastapi import APIRouter, Depends
from sqlalchemy.orm import Session
from core.database import get_db
from db.services.userservices import UserService
from schemas.users import RegisterUser
from core.token import get_currentUser
from db.models.usermodels import User
router = APIRouter()
@router.get("/")
def getA... | 31.375 | 79 | 0.737052 | 173 | 1,255 | 5.219653 | 0.323699 | 0.027685 | 0.070875 | 0.084164 | 0.233666 | 0.184939 | 0.184939 | 0 | 0 | 0 | 0 | 0 | 0.148207 | 1,255 | 40 | 80 | 31.375 | 0.844715 | 0 | 0 | 0.064516 | 0 | 0 | 0.051752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.225806 | 0.129032 | 0.580645 | 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 |
7a8b6a5f33d6240f73b55ff527bd30a0bb87df51 | 4,027 | py | Python | awards/models.py | Sundaybrian/prodev | ed51fbd7c70941de36f7bc59c1940acfafaecf72 | [
"MIT"
] | null | null | null | awards/models.py | Sundaybrian/prodev | ed51fbd7c70941de36f7bc59c1940acfafaecf72 | [
"MIT"
] | 7 | 2020-06-05T22:53:10.000Z | 2022-02-10T08:29:14.000Z | awards/models.py | Sundaybrian/prodev | ed51fbd7c70941de36f7bc59c1940acfafaecf72 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.db.models import Q
from django.core.exceptions import ObjectDoesNotExist
from django.http import Http404
from users.models import Profile
from django.contrib.auth.models import User
from statistics imp... | 26.320261 | 139 | 0.656816 | 494 | 4,027 | 5.220648 | 0.230769 | 0.032571 | 0.0981 | 0.115161 | 0.348585 | 0.336565 | 0.336565 | 0.320667 | 0.256301 | 0.256301 | 0 | 0.007358 | 0.22374 | 4,027 | 152 | 140 | 26.493421 | 0.817658 | 0.04296 | 0 | 0.3125 | 0 | 0.0125 | 0.084488 | 0.048085 | 0 | 0 | 0 | 0 | 0.0125 | 1 | 0.1375 | false | 0 | 0.125 | 0.025 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7a9a676c31323b69b36cedbc893b0b6545cf2acc | 3,228 | py | Python | dae/dae/annotation/tools/frequency_annotator.py | iossifovlab/gpf | e556243d29666179dbcb72859845b4d6c011af2b | [
"MIT"
] | null | null | null | dae/dae/annotation/tools/frequency_annotator.py | iossifovlab/gpf | e556243d29666179dbcb72859845b4d6c011af2b | [
"MIT"
] | 82 | 2019-07-22T11:44:23.000Z | 2022-01-13T15:27:33.000Z | dae/dae/annotation/tools/frequency_annotator.py | iossifovlab/gpf | e556243d29666179dbcb72859845b4d6c011af2b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import logging
from os.path import basename
from dae.variants.attributes import VariantType
from dae.annotation.tools.score_annotator import VariantScoreAnnotatorBase
logger = logging.getLogger(__name__)
class FrequencyAnnotator(VariantScoreAnnotatorBase):
def __init__(self, config, genom... | 38.428571 | 79 | 0.615242 | 356 | 3,228 | 5.348315 | 0.303371 | 0.042542 | 0.040966 | 0.056723 | 0.221113 | 0.160714 | 0.12395 | 0.091387 | 0.045168 | 0 | 0 | 0.000881 | 0.296468 | 3,228 | 83 | 80 | 38.891566 | 0.837517 | 0.020756 | 0 | 0.15625 | 0 | 0 | 0.128838 | 0.033871 | 0 | 0 | 0 | 0.012048 | 0.03125 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 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 |
7a9b8a645daeb7f2e4e7bf60b47320308bca2fef | 6,101 | py | Python | twitcher/inotify.py | liquidgecka/twitcher | a0a12106f7210b4ee46c01847cba47cb5e4032bb | [
"Apache-2.0"
] | 1 | 2015-03-30T07:56:12.000Z | 2015-03-30T07:56:12.000Z | twitcher/inotify.py | liquidgecka/twitcher | a0a12106f7210b4ee46c01847cba47cb5e4032bb | [
"Apache-2.0"
] | null | null | null | twitcher/inotify.py | liquidgecka/twitcher | a0a12106f7210b4ee46c01847cba47cb5e4032bb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python26
"""Watches a list of directories for file updates.
The classes in this module will watch a list of subdirectories for file
updates. A class is passed in at object initialization time and is used to
create objects as new files are discovered. If a file is updated then the
reload() function on that... | 33.521978 | 79 | 0.677758 | 888 | 6,101 | 4.51464 | 0.251126 | 0.042654 | 0.024445 | 0.005238 | 0.128212 | 0.122225 | 0.085807 | 0.070342 | 0.053879 | 0.040908 | 0 | 0.001498 | 0.234224 | 6,101 | 181 | 80 | 33.707182 | 0.856592 | 0.033273 | 0 | 0.2 | 0 | 0 | 0.08284 | 0 | 0 | 0 | 0 | 0.005525 | 0 | 0 | null | null | 0.033333 | 0.055556 | 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 |
7aae2bd347ba3adf533cbcf9523c93ef01c1feee | 540 | py | Python | git_plan/util/unix.py | synek/git-plan | 4cf5429348a71fb5ea8110272fb89d20bfa38c38 | [
"MIT"
] | 163 | 2021-03-06T12:01:06.000Z | 2022-03-01T22:52:36.000Z | git_plan/util/unix.py | synek/git-plan | 4cf5429348a71fb5ea8110272fb89d20bfa38c38 | [
"MIT"
] | 61 | 2021-03-06T07:00:39.000Z | 2021-04-13T10:25:58.000Z | git_plan/util/unix.py | synek/git-plan | 4cf5429348a71fb5ea8110272fb89d20bfa38c38 | [
"MIT"
] | 9 | 2021-03-07T17:52:57.000Z | 2021-10-18T21:35:23.000Z | """Unix utilities
Author Rory Byrne <rory@rory.bio>
"""
from shutil import which
import subprocess
from typing import List, Optional
def is_installed(name: str) -> bool:
"""Check whether `name` is on PATH and marked as executable."""
return which(name) is not None
def run_command(cmd: List[str], capture_ou... | 24.545455 | 78 | 0.701852 | 76 | 540 | 4.921053 | 0.565789 | 0.104278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 540 | 21 | 79 | 25.714286 | 0.85 | 0.235185 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7aae61521064121971fd3e6425db3ee10c5c8792 | 655 | py | Python | Excel Export API/validateUser.py | N4N0CH1P/Proyecto-Android | d2e09fe1d8766ff4369154038fe08d28d2c472b5 | [
"Apache-2.0"
] | null | null | null | Excel Export API/validateUser.py | N4N0CH1P/Proyecto-Android | d2e09fe1d8766ff4369154038fe08d28d2c472b5 | [
"Apache-2.0"
] | 18 | 2019-04-23T16:00:34.000Z | 2019-05-20T12:35:16.000Z | Excel Export API/validateUser.py | N4N0CH1P/Proyecto-Android | d2e09fe1d8766ff4369154038fe08d28d2c472b5 | [
"Apache-2.0"
] | 2 | 2019-04-29T16:22:01.000Z | 2020-11-22T06:08:38.000Z | import mysql_config as mysql
#Funcion para validar usuario
def validateUser(userID, userPassword):
print("Validando usuario con la base de datos....")
#Pedir al servidor mysql los datos
data=mysql.fetchDataFromDatabase("SELECT password FROM usuario WHERE userID='"+userID+"'")
row=mysql.getFirstElement(... | 38.529412 | 94 | 0.716031 | 82 | 655 | 5.707317 | 0.634146 | 0.057692 | 0.047009 | 0.059829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001876 | 0.18626 | 655 | 16 | 95 | 40.9375 | 0.876173 | 0.167939 | 0 | 0 | 0 | 0 | 0.367837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.272727 | 0.090909 | 0 | 0.363636 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7ab7e1f1b7a93fea789add2b69980d7060a7ac0c | 648 | py | Python | tests/integration/test_multipart.py | yyolk/uplink | c0733e3577cc7539be8ca39d3783c87ebe6410b7 | [
"MIT"
] | 918 | 2017-10-20T10:47:40.000Z | 2022-03-27T19:10:21.000Z | tests/integration/test_multipart.py | yyolk/uplink | c0733e3577cc7539be8ca39d3783c87ebe6410b7 | [
"MIT"
] | 248 | 2017-10-20T03:58:20.000Z | 2022-03-13T18:39:16.000Z | tests/integration/test_multipart.py | yyolk/uplink | c0733e3577cc7539be8ca39d3783c87ebe6410b7 | [
"MIT"
] | 66 | 2017-10-21T02:56:34.000Z | 2022-02-15T08:27:50.000Z | # Local imports
from uplink import Consumer, PartMap, post, multipart
# Constants
BASE_URL = "https://example.com/"
def test_without_converter(mock_response, mock_client):
class Calendar(Consumer):
@multipart
@post("/attachments")
def upload_attachments(self, **files: PartMap):
... | 25.92 | 62 | 0.694444 | 77 | 648 | 5.662338 | 0.571429 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001942 | 0.205247 | 648 | 24 | 63 | 27 | 0.84466 | 0.12037 | 0 | 0 | 0 | 0 | 0.063717 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.142857 | false | 0.071429 | 0.071429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7ab8408954f6215140e2f66ce3a023038a830391 | 25,995 | py | Python | Assembly Files/edd project modules/extra/world/original - Copy/unknown.py | Pranesh6767/E_tax_with_MySQL | 104c7f57c569938439c35f42706edbd575181d34 | [
"MIT"
] | 1 | 2020-10-15T09:09:24.000Z | 2020-10-15T09:09:24.000Z | Assembly Files/edd project modules/extra/world/original - Copy/unknown.py | Pranesh6767/E_tax_with_MySQL | 104c7f57c569938439c35f42706edbd575181d34 | [
"MIT"
] | null | null | null | Assembly Files/edd project modules/extra/world/original - Copy/unknown.py | Pranesh6767/E_tax_with_MySQL | 104c7f57c569938439c35f42706edbd575181d34 | [
"MIT"
] | 2 | 2020-10-01T20:56:05.000Z | 2021-09-22T06:38:36.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# GUI module generated by PAGE version 4.21
# in conjunction with Tcl version 8.6
# Apr 22, 2019 01:28:38 AM +0530 platform: Windows NT
import sys
try:
import Tkinter as tk
except ImportError:
import tkinter as tk
try:
import ttk
... | 46.172291 | 98 | 0.64874 | 2,990 | 25,995 | 5.537124 | 0.145151 | 0.039865 | 0.019328 | 0.058106 | 0.499336 | 0.15958 | 0.135298 | 0.116453 | 0.081541 | 0.066622 | 0 | 0.070469 | 0.21281 | 25,995 | 562 | 99 | 46.254448 | 0.738601 | 0.043662 | 0 | 0.094538 | 1 | 0 | 0.113909 | 0.001156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031513 | false | 0.006303 | 0.021008 | 0.002101 | 0.069328 | 0.008403 | 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 |
7abe131a7498f3f282bb4ace852b76791ac312e6 | 10,520 | py | Python | kinto/core/resource/schema.py | hafeez3000/kinto | 2b741cf3f34dbb532b595caa4dbb9de2a991938d | [
"Apache-2.0"
] | null | null | null | kinto/core/resource/schema.py | hafeez3000/kinto | 2b741cf3f34dbb532b595caa4dbb9de2a991938d | [
"Apache-2.0"
] | null | null | null | kinto/core/resource/schema.py | hafeez3000/kinto | 2b741cf3f34dbb532b595caa4dbb9de2a991938d | [
"Apache-2.0"
] | null | null | null | import six
import colander
from colander import SchemaNode, String
from kinto.core.utils import strip_whitespace, msec_time, decode_header, native_value
class ResourceSchema(colander.MappingSchema):
"""Base resource schema, with *Cliquet* specific built-in options."""
class Options:
"""
Reso... | 33.18612 | 87 | 0.656084 | 1,152 | 10,520 | 5.907986 | 0.263021 | 0.022921 | 0.027917 | 0.025713 | 0.157508 | 0.131942 | 0.10094 | 0.09521 | 0.062004 | 0.044079 | 0 | 0.007038 | 0.243631 | 10,520 | 316 | 88 | 33.291139 | 0.84831 | 0.233555 | 0 | 0.173333 | 0 | 0 | 0.050243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14 | false | 0 | 0.026667 | 0.053333 | 0.653333 | 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 |
8f87de0150456c3cf0ea3b4c1fd2d4de2903f22e | 1,888 | py | Python | app/auth.py | alexisthethe/quickrun-fastapi | d2c8c2502d5eedf0e396dd9b78df0820b26a24b0 | [
"MIT"
] | 1 | 2022-01-31T14:59:37.000Z | 2022-01-31T14:59:37.000Z | app/auth.py | alexisthethe/quickrun-fastapi | d2c8c2502d5eedf0e396dd9b78df0820b26a24b0 | [
"MIT"
] | null | null | null | app/auth.py | alexisthethe/quickrun-fastapi | d2c8c2502d5eedf0e396dd9b78df0820b26a24b0 | [
"MIT"
] | null | null | null | import logging
from datetime import datetime, timedelta
from typing import Optional
from fastapi import Depends
from fastapi.security import OAuth2PasswordBearer
from jose import JWTError, jwt
from passlib.context import CryptContext
from app import schemas
from app.config import settings
oauth2_scheme = OAuth2Passw... | 28.179104 | 79 | 0.695975 | 224 | 1,888 | 5.660714 | 0.424107 | 0.014196 | 0.018927 | 0.023659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002688 | 0.211864 | 1,888 | 66 | 80 | 28.606061 | 0.849462 | 0.028602 | 0 | 0.08 | 0 | 0 | 0.052516 | 0.014223 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.14 | 0.18 | 0.06 | 0.44 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
8f8b794a3c57821e35ab3c5efd51b3bc2789f860 | 2,671 | py | Python | plugins/tff_backend/models/nodes.py | threefoldfoundation/app_backend | b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a | [
"Apache-2.0"
] | null | null | null | plugins/tff_backend/models/nodes.py | threefoldfoundation/app_backend | b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a | [
"Apache-2.0"
] | 178 | 2017-08-02T12:58:06.000Z | 2017-12-20T15:01:12.000Z | plugins/tff_backend/models/nodes.py | threefoldfoundation/app_backend | b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a | [
"Apache-2.0"
] | 2 | 2018-01-10T10:43:12.000Z | 2018-03-18T10:42:23.000Z | # -*- coding: utf-8 -*-
# Copyright 2018 GIG Technology NV
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 32.975309 | 98 | 0.706477 | 333 | 2,671 | 5.573574 | 0.471471 | 0.032328 | 0.053879 | 0.056034 | 0.024784 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007414 | 0.192063 | 2,671 | 80 | 99 | 33.3875 | 0.852641 | 0.234744 | 0 | 0.081633 | 0 | 0 | 0.033564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102041 | false | 0 | 0.081633 | 0.081633 | 0.77551 | 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 |
8f9628a559aa22d53c2c81a12924391437a37584 | 466 | py | Python | src/app/auth0.py | scraiber/scraiber-api | 010d0875ba0820e0ec7790d74df8a2955fac360e | [
"Apache-2.0"
] | 1 | 2022-03-29T06:41:41.000Z | 2022-03-29T06:41:41.000Z | src/app/auth0.py | scraiber/scraiber-api | 010d0875ba0820e0ec7790d74df8a2955fac360e | [
"Apache-2.0"
] | null | null | null | src/app/auth0.py | scraiber/scraiber-api | 010d0875ba0820e0ec7790d74df8a2955fac360e | [
"Apache-2.0"
] | null | null | null | import os
from fastapi import HTTPException
from fastapi_cloudauth.auth0 import Auth0CurrentUser
from app.api.models.auth0 import Auth0User
current_user = Auth0CurrentUser(
domain=os.environ["AUTH0_DOMAIN"],
client_id=os.environ["AUTH0_CLIENTID_FRONTEND"]
)
current_user.user_info = Auth0User
async def ch... | 24.526316 | 79 | 0.787554 | 62 | 466 | 5.725806 | 0.580645 | 0.061972 | 0.078873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029777 | 0.135193 | 466 | 18 | 80 | 25.888889 | 0.851117 | 0 | 0 | 0 | 0 | 0 | 0.126609 | 0.049356 | 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 |
8f9bddff56587ac3d789227ba3b06f0068debc2b | 312 | py | Python | src/cube/op/reduce/stat/pct/__init__.py | jedhsu/cortex | d610570743d59272c7e6326d10c53d55950e87fc | [
"Apache-2.0"
] | null | null | null | src/cube/op/reduce/stat/pct/__init__.py | jedhsu/cortex | d610570743d59272c7e6326d10c53d55950e87fc | [
"Apache-2.0"
] | null | null | null | src/cube/op/reduce/stat/pct/__init__.py | jedhsu/cortex | d610570743d59272c7e6326d10c53d55950e87fc | [
"Apache-2.0"
] | null | null | null | from ._operator import PercentileOperator
from .maximum import Maximum
from .median import Median
from .minimum import Minimum
from .percentile import Percentile
from .quantile import Quantile
__all__ = [
"PercentileOperator",
"Maximum",
"Minimum",
"Median",
"Quantile",
"Percentile",
]
| 19.5 | 41 | 0.724359 | 31 | 312 | 7.129032 | 0.322581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189103 | 312 | 15 | 42 | 20.8 | 0.873518 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8fa2e306d164210f244cc0bee43333a0e7295e06 | 953 | py | Python | light_zombie.py | tommybobbins/halloween_scarer | de2655de8e52670c75d8e49b8f4ef74744ff8ea0 | [
"MIT"
] | null | null | null | light_zombie.py | tommybobbins/halloween_scarer | de2655de8e52670c75d8e49b8f4ef74744ff8ea0 | [
"MIT"
] | 1 | 2020-08-12T15:00:03.000Z | 2020-08-12T15:00:03.000Z | light_zombie.py | tommybobbins/halloween_scarer | de2655de8e52670c75d8e49b8f4ef74744ff8ea0 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import RPi.GPIO as GPIO
import pygame
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.OUT)
GPIO.setup(7, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
from time import sleep
pygame.init()
currState = False
prevState = False
while True:
try:
sleep(0.1)
prevState = currState
currState = ... | 24.435897 | 80 | 0.578174 | 117 | 953 | 4.666667 | 0.564103 | 0.032967 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021212 | 0.30745 | 953 | 38 | 81 | 25.078947 | 0.806061 | 0.043022 | 0 | 0.1875 | 0 | 0 | 0.09141 | 0.045154 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09375 | 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 |
8fa64af0defdace2aa308738b335dc0d388fc4e7 | 1,744 | py | Python | backend/kesaseteli/applications/tests/factories.py | SuviVappula/kesaseteli | 144f93e2804658ec221790e86a7e66adc82868fc | [
"MIT"
] | null | null | null | backend/kesaseteli/applications/tests/factories.py | SuviVappula/kesaseteli | 144f93e2804658ec221790e86a7e66adc82868fc | [
"MIT"
] | null | null | null | backend/kesaseteli/applications/tests/factories.py | SuviVappula/kesaseteli | 144f93e2804658ec221790e86a7e66adc82868fc | [
"MIT"
] | null | null | null | import random
import uuid
import factory
from django.contrib.auth import get_user_model
from applications.enums import ApplicationStatus
from applications.models import Application, SummerVoucher
from companies.tests.factories import CompanyFactory
class UserFactory(factory.django.DjangoModelFactory):
class Met... | 31.709091 | 79 | 0.732225 | 189 | 1,744 | 6.571429 | 0.375661 | 0.164251 | 0.064412 | 0.05314 | 0.05475 | 0.05475 | 0 | 0 | 0 | 0 | 0 | 0.002725 | 0.158257 | 1,744 | 54 | 80 | 32.296296 | 0.843324 | 0 | 0 | 0.075 | 0 | 0 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.175 | 0 | 0.825 | 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 |
8fa7f6762b4b297a687b0b54264b6ca46ad28ff4 | 258 | py | Python | fourth-year/EGC/EGC-1230-julgomrod/decide/census/admin.py | JulianGR/university | 2f643825b238892d602baf0c8e71e4c1b0fdefc2 | [
"MIT"
] | null | null | null | fourth-year/EGC/EGC-1230-julgomrod/decide/census/admin.py | JulianGR/university | 2f643825b238892d602baf0c8e71e4c1b0fdefc2 | [
"MIT"
] | null | null | null | fourth-year/EGC/EGC-1230-julgomrod/decide/census/admin.py | JulianGR/university | 2f643825b238892d602baf0c8e71e4c1b0fdefc2 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Census
class CensusAdmin(admin.ModelAdmin):
list_display = ('voting_id', 'voter_id')
list_filter = ('voting_id', )
search_fields = ('voter_id', )
admin.site.register(Census, CensusAdmin)
| 18.428571 | 44 | 0.717054 | 32 | 258 | 5.5625 | 0.625 | 0.089888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 258 | 13 | 45 | 19.846154 | 0.824074 | 0 | 0 | 0 | 0 | 0 | 0.131783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
8fcd1b52e4ca537618ff73d6c446833b5723c14c | 32,556 | py | Python | volatility_connector.py | splunk-soar-connectors/volatility | 42b6deb77a08c88cc10dd012ef189b50f8f60d8a | [
"Apache-2.0"
] | null | null | null | volatility_connector.py | splunk-soar-connectors/volatility | 42b6deb77a08c88cc10dd012ef189b50f8f60d8a | [
"Apache-2.0"
] | null | null | null | volatility_connector.py | splunk-soar-connectors/volatility | 42b6deb77a08c88cc10dd012ef189b50f8f60d8a | [
"Apache-2.0"
] | null | null | null | # File: volatility_connector.py
#
# Copyright (c) 2014-2016 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | 41.419847 | 130 | 0.629991 | 3,984 | 32,556 | 4.839859 | 0.13755 | 0.07717 | 0.024064 | 0.027591 | 0.426667 | 0.382792 | 0.344051 | 0.311638 | 0.299398 | 0.238461 | 0 | 0.003411 | 0.261611 | 32,556 | 785 | 131 | 41.472611 | 0.798702 | 0.105879 | 0 | 0.259332 | 0 | 0 | 0.070282 | 0.00155 | 0 | 0 | 0.000689 | 0.001274 | 0 | 0 | null | null | 0.001965 | 0.047151 | null | null | 0.02554 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8fd4b63b6acd5e2ad54b41469f8ca999bd2693f8 | 1,774 | py | Python | chromium/tools/perf/benchmarks/start_with_url.py | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 27 | 2016-04-27T01:02:03.000Z | 2021-12-13T08:53:19.000Z | chromium/tools/perf/benchmarks/start_with_url.py | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 2 | 2017-03-09T09:00:50.000Z | 2017-09-21T15:48:20.000Z | chromium/tools/perf/benchmarks/start_with_url.py | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 17 | 2016-04-27T02:06:39.000Z | 2019-12-18T08:07:00.000Z | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from benchmarks import startup2
import page_sets
from telemetry import benchmark
# Disable accessing protected member for startup2._StartupPerfBenchmark. ... | 32.851852 | 79 | 0.769448 | 227 | 1,774 | 5.889868 | 0.524229 | 0.047868 | 0.028422 | 0.034405 | 0.291698 | 0.291698 | 0.291698 | 0.291698 | 0.233358 | 0.233358 | 0 | 0.007266 | 0.146561 | 1,774 | 53 | 80 | 33.471698 | 0.875826 | 0.372604 | 0 | 0.464286 | 0 | 0 | 0.148352 | 0.06044 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.107143 | 0.071429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8fd7196e944e33633b2168238c45d830dd4dee65 | 5,627 | py | Python | src/harness/cu_pass/dpa_calculator/cbsds_creator/cbsd_height_distributor/height_distribution_definitions.py | NSF-Swift/Spectrum-Access-System | 02cf3490c9fd0cec38074d3bdb3bca63bb7d03bf | [
"Apache-2.0"
] | null | null | null | src/harness/cu_pass/dpa_calculator/cbsds_creator/cbsd_height_distributor/height_distribution_definitions.py | NSF-Swift/Spectrum-Access-System | 02cf3490c9fd0cec38074d3bdb3bca63bb7d03bf | [
"Apache-2.0"
] | null | null | null | src/harness/cu_pass/dpa_calculator/cbsds_creator/cbsd_height_distributor/height_distribution_definitions.py | NSF-Swift/Spectrum-Access-System | 02cf3490c9fd0cec38074d3bdb3bca63bb7d03bf | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from typing import List
from cu_pass.dpa_calculator.constants import REGION_TYPE_DENSE_URBAN, REGION_TYPE_RURAL, REGION_TYPE_SUBURBAN, REGION_TYPE_URBAN
from cu_pass.dpa_calculator.helpers.list_distributor.fractional_distribution.fractional_distribution import \
FractionalDistribu... | 32.526012 | 136 | 0.696997 | 609 | 5,627 | 5.873563 | 0.1133 | 0.118535 | 0.207436 | 0.129159 | 0.741124 | 0.645233 | 0.599944 | 0.564719 | 0.490914 | 0.409561 | 0 | 0.016825 | 0.250044 | 5,627 | 172 | 137 | 32.715116 | 0.830806 | 0 | 0 | 0.629139 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02649 | false | 0.019868 | 0.033113 | 0.02649 | 0.112583 | 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 |
8fe00210c18d98dc5d9a994f2ffe553d62d4a261 | 1,159 | py | Python | digsby/ext/src/BuddyList/configure.py | ifwe/digsby | f5fe00244744aa131e07f09348d10563f3d8fa99 | [
"Python-2.0"
] | 35 | 2015-08-15T14:32:38.000Z | 2021-12-09T16:21:26.000Z | digsby/ext/src/BuddyList/configure.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 4 | 2015-09-12T10:42:57.000Z | 2017-02-27T04:05:51.000Z | digsby/ext/src/BuddyList/configure.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 15 | 2015-07-10T23:58:07.000Z | 2022-01-23T22:16:33.000Z | import os
import sipconfig
#CAS: this is a win32 version, specific to my machine, provided for example.
# The name of the SIP build file generated by SIP and used by the build
# system.
build_file = "blist.sbf"
# Get the SIP configuration information.
config = sipconfig.Configuration()
# Run SIP to gene... | 36.21875 | 110 | 0.737705 | 162 | 1,159 | 5.185185 | 0.574074 | 0.042857 | 0.016667 | 0.042857 | 0.064286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01003 | 0.139776 | 1,159 | 31 | 111 | 37.387097 | 0.832497 | 0.384815 | 0 | 0 | 1 | 0 | 0.357143 | 0.171131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 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 |
8fe27a1949dc877c5846bcf1e9fa40cefe34e4b0 | 298 | py | Python | raspicam/__init__.py | exhuma/raspicam | 4155669a4a5e1d99d352c192771d0cdac648e25b | [
"MIT"
] | null | null | null | raspicam/__init__.py | exhuma/raspicam | 4155669a4a5e1d99d352c192771d0cdac648e25b | [
"MIT"
] | 3 | 2017-09-09T13:28:18.000Z | 2017-09-09T16:22:19.000Z | raspicam/__init__.py | exhuma/raspicam | 4155669a4a5e1d99d352c192771d0cdac648e25b | [
"MIT"
] | null | null | null | '''
This module contains shortcuts to simplify accessing package internals when
using raspicam as a form of library, or scripting it.
'''
from os.path import dirname, join
from .main import Application
with open(join(dirname(__file__), 'version.txt')) as fp:
__version__ = fp.read().strip()
| 24.833333 | 75 | 0.748322 | 43 | 298 | 5 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154362 | 298 | 11 | 76 | 27.090909 | 0.853175 | 0.432886 | 0 | 0 | 0 | 0 | 0.068323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
8fe528743929b197a2b3736b4bdf710fad3a15e9 | 9,871 | py | Python | m2-modified/tests/unit/picasso/test_rest.py | CCI-MOC/ABMI | 955c12ae9d2dc7afe7323f6c25f2af120f5b281a | [
"Apache-2.0"
] | null | null | null | m2-modified/tests/unit/picasso/test_rest.py | CCI-MOC/ABMI | 955c12ae9d2dc7afe7323f6c25f2af120f5b281a | [
"Apache-2.0"
] | null | null | null | m2-modified/tests/unit/picasso/test_rest.py | CCI-MOC/ABMI | 955c12ae9d2dc7afe7323f6c25f2af120f5b281a | [
"Apache-2.0"
] | null | null | null | # Tests the rest calls in picasso/rest.py
# TODO Make a TestLib and add common setup and teardown functions
import time
import unittest
from unittest import TestCase
import requests
from threading import Thread
import ims.common.config as config
config.load()
import ims.picasso.rest as rest
from ims.rpc.server.name... | 32.577558 | 79 | 0.664573 | 1,251 | 9,871 | 4.996803 | 0.144684 | 0.042233 | 0.058071 | 0.051992 | 0.585986 | 0.56231 | 0.556551 | 0.546313 | 0.546313 | 0.538634 | 0 | 0.003526 | 0.253065 | 9,871 | 302 | 80 | 32.68543 | 0.844297 | 0.114679 | 0 | 0.631579 | 0 | 0 | 0.011366 | 0 | 0 | 0 | 0 | 0.003311 | 0.047847 | 1 | 0.114833 | false | 0.086124 | 0.095694 | 0 | 0.244019 | 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 |
8fe92b1149ccbb3016a52a9201a0ef277bcf37fb | 3,319 | py | Python | applications/autocomplete/setup.py | Vishakha1990/Lambdas | 803028633f25911cbc74c28e4c1ec11276912102 | [
"Apache-2.0"
] | null | null | null | applications/autocomplete/setup.py | Vishakha1990/Lambdas | 803028633f25911cbc74c28e4c1ec11276912102 | [
"Apache-2.0"
] | null | null | null | applications/autocomplete/setup.py | Vishakha1990/Lambdas | 803028633f25911cbc74c28e4c1ec11276912102 | [
"Apache-2.0"
] | 1 | 2020-01-08T18:00:04.000Z | 2020-01-08T18:00:04.000Z | #!/usr/bin/env python
import os, sys, random, string
from common import *
import rethinkdb as r
AC = 'ac' # DB
WORDS = 'words' # TABLE
LINE = 'line' # COLUMN
WORD = 'word' # COLUMN
FREQ = 'freq' # COLUMN
PREFS = 'prefs' # TABLE
PREF = 'pref' # COLUMN
LOWER = 'lower' # COLUMN
UPPER = 'upper' # COLUMN
NGINX_EXAMPLE = 'do... | 31.609524 | 80 | 0.592347 | 473 | 3,319 | 4.054968 | 0.295983 | 0.046924 | 0.072993 | 0.058394 | 0.219499 | 0.189781 | 0.084463 | 0 | 0 | 0 | 0 | 0.016142 | 0.234709 | 3,319 | 104 | 81 | 31.913462 | 0.738976 | 0.03947 | 0 | 0.113636 | 0 | 0.011364 | 0.179641 | 0.016073 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034091 | null | null | 0.147727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
8fedf3a0ec2751e741efa2d9e33434bea22c0af3 | 7,117 | py | Python | tests/test_evfuncs.py | NickleDave/evfuncs | 504b4f351f94741f1385739c281ba495766ba7f9 | [
"BSD-3-Clause"
] | 2 | 2020-07-10T00:20:44.000Z | 2021-01-14T23:45:20.000Z | tests/test_evfuncs.py | NickleDave/evfuncs | 504b4f351f94741f1385739c281ba495766ba7f9 | [
"BSD-3-Clause"
] | 13 | 2018-11-23T04:54:39.000Z | 2022-03-17T15:54:24.000Z | tests/test_evfuncs.py | NickleDave/evfuncs | 504b4f351f94741f1385739c281ba495766ba7f9 | [
"BSD-3-Clause"
] | 4 | 2018-11-24T04:38:11.000Z | 2021-06-08T14:28:59.000Z | """
test evfuncs module
"""
import os
from glob import glob
import unittest
import numpy as np
from scipy.io import loadmat
import evfuncs
class TestEvfuncs(unittest.TestCase):
def setUp(self):
self.test_data_dir = os.path.join(
os.path.abspath(os.path.dirname(__file__)),
'.', '... | 48.746575 | 90 | 0.592244 | 856 | 7,117 | 4.692757 | 0.183411 | 0.177745 | 0.103062 | 0.093104 | 0.38835 | 0.34827 | 0.306448 | 0.290017 | 0.170525 | 0.103062 | 0 | 0.01746 | 0.291836 | 7,117 | 145 | 91 | 49.082759 | 0.779563 | 0.052831 | 0 | 0.073171 | 0 | 0 | 0.077895 | 0.004906 | 0 | 0 | 0 | 0 | 0.414634 | 1 | 0.056911 | false | 0.01626 | 0.04878 | 0 | 0.113821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8ffe8bb288c1ed075f62b6cccdeb1e96d42a84bd | 416 | py | Python | apps/tickets/migrations/0010_ticket_close_reason.py | RonaldTheodoro/tcc-simple-ticket | 1681de4c00dbc41c3c21f34a6b757062c7c9d640 | [
"MIT"
] | null | null | null | apps/tickets/migrations/0010_ticket_close_reason.py | RonaldTheodoro/tcc-simple-ticket | 1681de4c00dbc41c3c21f34a6b757062c7c9d640 | [
"MIT"
] | null | null | null | apps/tickets/migrations/0010_ticket_close_reason.py | RonaldTheodoro/tcc-simple-ticket | 1681de4c00dbc41c3c21f34a6b757062c7c9d640 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.6 on 2018-06-17 21:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tickets', '0009_auto_20180522_2318'),
]
operations = [
migrations.AddField(
model_name='ticket',
name='close_reason'... | 21.894737 | 76 | 0.612981 | 46 | 416 | 5.413043 | 0.804348 | 0.072289 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10231 | 0.271635 | 416 | 18 | 77 | 23.111111 | 0.719472 | 0.108173 | 0 | 0 | 1 | 0 | 0.162602 | 0.062331 | 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 |
8900c43b8968dc9dccc2d3de86b12055236accc7 | 354 | py | Python | asciinema/commands/auth.py | zouguangxian/asciinema | 766518e51e9d11219e143878dbc376f436462c3f | [
"MIT"
] | 1 | 2021-07-06T23:36:41.000Z | 2021-07-06T23:36:41.000Z | asciinema/commands/auth.py | zouguangxian/asciinema | 766518e51e9d11219e143878dbc376f436462c3f | [
"MIT"
] | null | null | null | asciinema/commands/auth.py | zouguangxian/asciinema | 766518e51e9d11219e143878dbc376f436462c3f | [
"MIT"
] | null | null | null | class AuthCommand(object):
def __init__(self, api_url, api_token):
self.api_url = api_url
self.api_token = api_token
def execute(self):
url = '%s/connect/%s' % (self.api_url, self.api_token)
print('Open following URL in your browser to authenticate and/or ' \
'claim... | 32.181818 | 76 | 0.632768 | 50 | 354 | 4.24 | 0.52 | 0.165094 | 0.141509 | 0.122642 | 0.169811 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254237 | 354 | 10 | 77 | 35.4 | 0.80303 | 0 | 0 | 0 | 0 | 0 | 0.285311 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
890479256d9b79890bc86482da30e3d9f405aa9f | 1,765 | py | Python | examples/message.py | smadivad/sreemessage | b9642c32bfea65ec7b523bffd7b23306b235e651 | [
"BSD-2-Clause"
] | 57 | 2015-04-07T21:20:12.000Z | 2022-03-30T17:27:48.000Z | examples/message.py | smadivad/sreemessage | b9642c32bfea65ec7b523bffd7b23306b235e651 | [
"BSD-2-Clause"
] | 33 | 2015-09-24T21:29:48.000Z | 2022-02-11T22:17:29.000Z | examples/message.py | smadivad/sreemessage | b9642c32bfea65ec7b523bffd7b23306b235e651 | [
"BSD-2-Clause"
] | 59 | 2015-01-08T13:00:13.000Z | 2022-03-09T16:55:46.000Z | #!/usr/bin/env python
import sys, os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import messagebird
# ACCESS_KEY = ''
# MESSAGE_ID = ''
try:
ACCESS_KEY
except NameError:
print('You need to set an ACCESS_KEY constant in this file')
sys.exit(1)
try:
MESSAGE_ID
except NameError:
print('Y... | 32.090909 | 74 | 0.616997 | 220 | 1,765 | 4.886364 | 0.340909 | 0.052093 | 0.037209 | 0.042791 | 0.113488 | 0.113488 | 0.113488 | 0.053953 | 0 | 0 | 0 | 0.001517 | 0.253258 | 1,765 | 54 | 75 | 32.685185 | 0.814112 | 0.111048 | 0 | 0.184211 | 0 | 0 | 0.408829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0.578947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
891182fd38f282bf8f36b0168fcfb4e616539c2d | 273 | py | Python | setup.py | kiran-vemuri/ifmap-python-client | 06198cface6421c50c7352009b8370713a414db5 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2015-01-21T11:52:27.000Z | 2017-01-24T05:13:55.000Z | setup.py | Mirantis/ifmap-python-client | 9d3ba070ca6b60d67a947632d476fca55f31dc5b | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | setup.py | Mirantis/ifmap-python-client | 9d3ba070ca6b60d67a947632d476fca55f31dc5b | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2015-03-11T07:51:30.000Z | 2016-10-12T06:08:08.000Z | #!/usr/bin/env python
import setuptools
setuptools.setup(
name='ifmap',
version='0.1',
description='IF-MAP Python Client Library',
url='https://github.com/ITI/ifmap-python-client',
packages=setuptools.find_packages(),
include_package_data=True,
)
| 21 | 53 | 0.699634 | 35 | 273 | 5.371429 | 0.8 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.150183 | 273 | 12 | 54 | 22.75 | 0.801724 | 0.07326 | 0 | 0 | 0 | 0 | 0.309524 | 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 |
891468b009c1b13ce530b24e7304fbda965e0a7e | 4,697 | py | Python | errvallist.py | stefantkeller/ErrorValues | ad81c45d12067d54f3418ce5ceaf8bd9e78e8054 | [
"MIT"
] | null | null | null | errvallist.py | stefantkeller/ErrorValues | ad81c45d12067d54f3418ce5ceaf8bd9e78e8054 | [
"MIT"
] | null | null | null | errvallist.py | stefantkeller/ErrorValues | ad81c45d12067d54f3418ce5ceaf8bd9e78e8054 | [
"MIT"
] | null | null | null | #! /usr/bin/python2.7
# -*- coding: utf-8 -*-
'''
Work with whole lists of errval's:
[v0+-e0, v1+-e1, ...]
'''
import numpy as np
from errval import *
class errvallist(list):
def __init__(self,vals=[],errs=0,printout='latex'):
if isinstance(vals,errvallist):
self.__errl = vals
elif... | 37.879032 | 104 | 0.607409 | 640 | 4,697 | 4.292188 | 0.226563 | 0.032035 | 0.028395 | 0.021842 | 0.502366 | 0.440116 | 0.413178 | 0.397525 | 0.36549 | 0.36549 | 0 | 0.00605 | 0.261018 | 4,697 | 123 | 105 | 38.186992 | 0.785364 | 0.10049 | 0 | 0.2 | 0 | 0 | 0.05922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023529 | null | null | 0.047059 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
89195d2c36779798584689308f4ae52e7d568dbf | 728 | py | Python | polls/views.py | robsonleal/django_enquete | 5dd2743d62ba82d5e63b6210b4893592677def80 | [
"MIT"
] | null | null | null | polls/views.py | robsonleal/django_enquete | 5dd2743d62ba82d5e63b6210b4893592677def80 | [
"MIT"
] | null | null | null | polls/views.py | robsonleal/django_enquete | 5dd2743d62ba82d5e63b6210b4893592677def80 | [
"MIT"
] | null | null | null | from django.views import generic
from django.utils import timezone
from .models import Question
class IndexView(generic.ListView):
template_name = 'polls/index.html'
context_object_name = 'latest_question_list'
def get_queryset(self):
""" Retorna as 5 últimas questões(não inclui publicações futu... | 24.266667 | 77 | 0.706044 | 89 | 728 | 5.617978 | 0.629213 | 0.072 | 0.102 | 0.12 | 0.188 | 0.188 | 0.188 | 0 | 0 | 0 | 0 | 0.003407 | 0.193681 | 728 | 29 | 78 | 25.103448 | 0.848382 | 0.133242 | 0 | 0.111111 | 0 | 0 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
891b38b7dc3a77153c98be492001da8cd2a61caf | 3,536 | py | Python | web/openerp/addons/base/tests/test_ir_attachment.py | diogocs1/comps | 63df07f6cf21c41e4527c06e2d0499f23f4322e7 | [
"Apache-2.0"
] | 1 | 2019-12-29T11:53:56.000Z | 2019-12-29T11:53:56.000Z | odoo/openerp/addons/base/tests/test_ir_attachment.py | tuanquanghpvn/odoo8-tutorial | 52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e | [
"MIT"
] | null | null | null | odoo/openerp/addons/base/tests/test_ir_attachment.py | tuanquanghpvn/odoo8-tutorial | 52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e | [
"MIT"
] | 3 | 2020-10-08T14:42:10.000Z | 2022-01-28T14:12:29.000Z | import hashlib
import os
import openerp
import openerp.tests.common
HASH_SPLIT = 2 # FIXME: testing implementations detail is not a good idea
class test_ir_attachment(openerp.tests.common.TransactionCase):
def setUp(self):
super(test_ir_attachment, self).setUp()
registry, cr, uid = self.regi... | 38.021505 | 90 | 0.64819 | 520 | 3,536 | 4.209615 | 0.171154 | 0.059388 | 0.098675 | 0.080402 | 0.579717 | 0.510279 | 0.486067 | 0.417085 | 0.373687 | 0.356327 | 0 | 0.043088 | 0.212387 | 3,536 | 92 | 91 | 38.434783 | 0.742908 | 0.050622 | 0 | 0.366667 | 0 | 0 | 0.051045 | 0.006567 | 0 | 0 | 0 | 0.01087 | 0.183333 | 1 | 0.1 | false | 0 | 0.066667 | 0 | 0.183333 | 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 |
891c8b6da0ab48f652a004e57633049c482f9248 | 15,003 | py | Python | bookwyrm/preview_images.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 270 | 2020-01-27T06:06:07.000Z | 2020-06-21T00:28:18.000Z | bookwyrm/preview_images.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 158 | 2020-02-10T20:36:54.000Z | 2020-06-26T17:12:54.000Z | bookwyrm/preview_images.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 15 | 2020-02-13T21:53:33.000Z | 2020-06-17T16:52:46.000Z | """ Generate social media preview images for twitter/mastodon/etc """
import math
import os
import textwrap
from io import BytesIO
from uuid import uuid4
import logging
import colorsys
from colorthief import ColorThief
from PIL import Image, ImageDraw, ImageFont, ImageOps, ImageColor
from django.core.files.base impor... | 31.585263 | 88 | 0.672799 | 1,965 | 15,003 | 4.82799 | 0.150127 | 0.020238 | 0.017708 | 0.013281 | 0.336671 | 0.255297 | 0.212607 | 0.188152 | 0.162854 | 0.162854 | 0 | 0.009937 | 0.228621 | 15,003 | 474 | 89 | 31.651899 | 0.809816 | 0.063787 | 0 | 0.160606 | 1 | 0 | 0.055659 | 0.018052 | 0 | 0 | 0 | 0.00211 | 0 | 1 | 0.036364 | false | 0.00303 | 0.045455 | 0 | 0.127273 | 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 |
64e21c7ea2001708b9da0332c531d7724a4113b2 | 2,505 | py | Python | nbprocess/clean.py | fastai/nbprocess | cf4290b31357101bc96103ee2525e14c0c8ef162 | [
"Apache-2.0"
] | 15 | 2021-08-09T22:50:46.000Z | 2022-03-31T10:11:20.000Z | nbprocess/clean.py | fastai/nbprocess | cf4290b31357101bc96103ee2525e14c0c8ef162 | [
"Apache-2.0"
] | 15 | 2021-08-20T03:07:43.000Z | 2022-03-28T16:45:42.000Z | nbprocess/clean.py | fastai/nbprocess | cf4290b31357101bc96103ee2525e14c0c8ef162 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/05_clean.ipynb.
# %% auto 0
__all__ = ['clean_nb', 'nbdev_clean_nbs']
# %% ../nbs/05_clean.ipynb 2
from fastcore.script import *
from fastcore.utils import *
from fastcore.imports import *
from .imports import *
from .read import *
from .sync import *
# from pathli... | 36.838235 | 104 | 0.663872 | 386 | 2,505 | 4.108808 | 0.310881 | 0.075662 | 0.044136 | 0.066204 | 0.032787 | 0.011349 | 0 | 0 | 0 | 0 | 0 | 0.011858 | 0.192016 | 2,505 | 67 | 105 | 37.38806 | 0.771739 | 0.261078 | 0 | 0.044444 | 1 | 0 | 0.244282 | 0.024331 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.133333 | 0.022222 | 0.266667 | 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 |
64e3373b39465c8e986539b86fbdf9497ff35c51 | 1,914 | py | Python | library/twisted/trtl.py | Kelbec-Nef/EVE-bot-discord | 30432beb482ca56a10fda8aefdb4c1b9802e4ceb | [
"MIT"
] | 59 | 2016-06-27T13:12:18.000Z | 2021-06-23T12:09:16.000Z | trtl.py | andimiller/twistedbot | f462385ab951f1b74e19a2ebb6b3d58da4e2a03f | [
"MIT"
] | 112 | 2016-07-06T15:32:09.000Z | 2022-03-08T07:22:54.000Z | trtl.py | andimiller/twistedbot | f462385ab951f1b74e19a2ebb6b3d58da4e2a03f | [
"MIT"
] | 59 | 2016-07-04T22:22:26.000Z | 2020-05-15T20:38:08.000Z | """
_____________________________________________
___ < trtl - TwistedBot REPL for Testing Libraries >_
//_\\\\ _ ---------------------------------------------
/_|_|_('> /
" "
"""
import os
import sys
import traceback
import readline
import re
regex = re.compile("\x03(?:\d{1,2}(?:,\d{1,2})?)?... | 26.583333 | 134 | 0.521421 | 202 | 1,914 | 4.574257 | 0.430693 | 0.042208 | 0.048701 | 0.034632 | 0.04329 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008397 | 0.315569 | 1,914 | 71 | 135 | 26.957746 | 0.696947 | 0 | 0 | 0.263158 | 0 | 0 | 0.105386 | 0.016979 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017544 | 0.122807 | null | null | 0.192982 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
64e34eb0a032af8b9bc9db3ed58fc47178b0d893 | 447 | py | Python | swot_item/migrations/0013_auto_20180609_1915.py | imranariffin/liveswot-api | a2acc05fd2c51adc30e8e1785b857a94af81677d | [
"MIT"
] | null | null | null | swot_item/migrations/0013_auto_20180609_1915.py | imranariffin/liveswot-api | a2acc05fd2c51adc30e8e1785b857a94af81677d | [
"MIT"
] | 25 | 2018-03-25T05:25:22.000Z | 2021-06-10T19:51:12.000Z | swot_item/migrations/0013_auto_20180609_1915.py | imranariffin/liveswot-api | a2acc05fd2c51adc30e8e1785b857a94af81677d | [
"MIT"
] | 2 | 2018-07-02T02:59:24.000Z | 2018-08-21T02:58:21.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-06-09 19:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('swot_item', '0012_swotitem_score'),
]
operations = [
migrations.AlterField(... | 21.285714 | 48 | 0.612975 | 49 | 447 | 5.408163 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067278 | 0.268456 | 447 | 20 | 49 | 22.35 | 0.743119 | 0.152125 | 0 | 0 | 1 | 0 | 0.109043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64e6916efe37fc956ae95e126abe46204022a77b | 6,259 | py | Python | scripts/rewrite_fcns.py | dolphingarlic/sketch-frontend | e646b7d51405e8a693f45472aa3cc6991a6f38af | [
"X11"
] | 1 | 2020-12-06T03:40:53.000Z | 2020-12-06T03:40:53.000Z | scripts/rewrite_fcns.py | dolphingarlic/sketch-frontend | e646b7d51405e8a693f45472aa3cc6991a6f38af | [
"X11"
] | null | null | null | scripts/rewrite_fcns.py | dolphingarlic/sketch-frontend | e646b7d51405e8a693f45472aa3cc6991a6f38af | [
"X11"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: gatoatigrado (nicholas tung) [ntung at ntung]
# Copyright 2010 University of California, Berkeley
# 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 L... | 41.177632 | 104 | 0.602333 | 768 | 6,259 | 4.763021 | 0.316406 | 0.017223 | 0.019136 | 0.011482 | 0.176326 | 0.125205 | 0.09404 | 0.09404 | 0.09404 | 0.072171 | 0 | 0.008296 | 0.287426 | 6,259 | 151 | 105 | 41.450331 | 0.811883 | 0.087873 | 0 | 0.191667 | 0 | 0 | 0.135159 | 0.014394 | 0.008333 | 0 | 0.000702 | 0 | 0.008333 | 0 | null | null | 0.008333 | 0.075 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64e7f07288cd11bd5d0f4da97dbcf8d4318f8b8b | 9,586 | py | Python | 4 model_batch/train_for_hist_alldata_loop_result.py | bneiluj/crop_yield_prediction | c73baca3da09e072065c55a1b645e92084df54a1 | [
"MIT"
] | 1 | 2021-04-08T09:14:00.000Z | 2021-04-08T09:14:00.000Z | 4 model_batch/train_for_hist_alldata_loop_result.py | bneiluj/crop_yield_prediction | c73baca3da09e072065c55a1b645e92084df54a1 | [
"MIT"
] | null | null | null | 4 model_batch/train_for_hist_alldata_loop_result.py | bneiluj/crop_yield_prediction | c73baca3da09e072065c55a1b645e92084df54a1 | [
"MIT"
] | 2 | 2020-12-02T04:36:44.000Z | 2021-03-01T12:58:35.000Z | from nnet_for_hist_dropout_stride import *
from GP_crop_v3 import *
if __name__ == "__main__":
config = Config()
summary_train_loss = []
summary_eval_loss = []
summary_RMSE = []
summary_ME = []
# load data to memory
filename = 'histogram_all' + '.npz'
# filename = 'histogram_all_soil... | 45.647619 | 251 | 0.52368 | 1,211 | 9,586 | 3.892651 | 0.14038 | 0.057913 | 0.030547 | 0.023335 | 0.409419 | 0.359567 | 0.345779 | 0.314383 | 0.26644 | 0.210013 | 0 | 0.019586 | 0.355518 | 9,586 | 209 | 252 | 45.866029 | 0.743444 | 0.072502 | 0 | 0.197531 | 0 | 0 | 0.029206 | 0.002368 | 0.006173 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012346 | null | null | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
64f4ede9bde7f503aa60b397301d64722811e7ff | 253 | py | Python | data/image_name_list.py | wangkingkingking/synme | 82b6b7e640939b7946256b7f4e8b6d51357b97be | [
"MIT"
] | null | null | null | data/image_name_list.py | wangkingkingking/synme | 82b6b7e640939b7946256b7f4e8b6d51357b97be | [
"MIT"
] | null | null | null | data/image_name_list.py | wangkingkingking/synme | 82b6b7e640939b7946256b7f4e8b6d51357b97be | [
"MIT"
] | null | null | null | def get_image_name_list(dataset_file):
# get synme image name list
with open(dataset_file, 'r') as f:
lines = f.readlines()
imagenames = [x.strip().split()[0].split('/')[1].split('.')[0] for x in lines]
return imagenames
| 36.142857 | 86 | 0.612648 | 37 | 253 | 4.054054 | 0.648649 | 0.12 | 0.173333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015306 | 0.225296 | 253 | 6 | 87 | 42.166667 | 0.75 | 0.098814 | 0 | 0 | 0 | 0 | 0.013274 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f01c902b327cbd9d3e3b498fc969a42f9707e07 | 6,994 | py | Python | sysinv/sysinv/sysinv/sysinv/puppet/heat.py | etaivan/stx-config | 281e1f110973f96e077645fb01f67b646fc253cc | [
"Apache-2.0"
] | null | null | null | sysinv/sysinv/sysinv/sysinv/puppet/heat.py | etaivan/stx-config | 281e1f110973f96e077645fb01f67b646fc253cc | [
"Apache-2.0"
] | null | null | null | sysinv/sysinv/sysinv/sysinv/puppet/heat.py | etaivan/stx-config | 281e1f110973f96e077645fb01f67b646fc253cc | [
"Apache-2.0"
] | 1 | 2021-01-05T16:24:58.000Z | 2021-01-05T16:24:58.000Z | #
# Copyright (c) 2017 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
from sysinv.puppet import openstack
from sysinv.common import constants
class HeatPuppet(openstack.OpenstackBasePuppet):
"""Class to encapsulate puppet operations for heat configuration"""
SERVICE_NAME = 'heat'
SER... | 39.292135 | 77 | 0.622391 | 769 | 6,994 | 5.253576 | 0.141743 | 0.055446 | 0.063366 | 0.044554 | 0.486634 | 0.457426 | 0.319307 | 0.310149 | 0.22896 | 0.22896 | 0 | 0.004508 | 0.270518 | 6,994 | 177 | 78 | 39.514124 | 0.787338 | 0.020303 | 0 | 0.186567 | 0 | 0 | 0.230488 | 0.214411 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119403 | false | 0.08209 | 0.014925 | 0.074627 | 0.343284 | 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 |
8f0f7ac7b18d123aa39d6ab27ba2f2362e38f9ef | 3,939 | py | Python | pyiomica/visibilityGraphAuxiliaryFunctions.py | benstear/pyiomica | bc26032b610fc911cc03b54115d6abdf53a56fce | [
"MIT"
] | 12 | 2019-11-22T21:44:13.000Z | 2022-03-06T21:46:31.000Z | pyiomica/visibilityGraphAuxiliaryFunctions.py | benstear/pyiomica | bc26032b610fc911cc03b54115d6abdf53a56fce | [
"MIT"
] | null | null | null | pyiomica/visibilityGraphAuxiliaryFunctions.py | benstear/pyiomica | bc26032b610fc911cc03b54115d6abdf53a56fce | [
"MIT"
] | 5 | 2019-07-25T21:03:42.000Z | 2021-06-09T02:14:30.000Z | '''Functions to generate adjacency matrix of visibility graphs'''
import numba
numba.config.NUMBA_DEFAULT_NUM_THREADS = 4
from .globalVariables import *
@numba.jit(cache=True)
def getAdjacencyMatrixOfNVG(data, times):
"""Calculate adjacency matrix of visibility graph.
JIT-accelerated version (a b... | 24.465839 | 99 | 0.550394 | 491 | 3,939 | 4.397149 | 0.175153 | 0.015748 | 0.044465 | 0.055581 | 0.694766 | 0.654933 | 0.648912 | 0.6239 | 0.540528 | 0.527559 | 0 | 0.013286 | 0.350343 | 3,939 | 160 | 100 | 24.61875 | 0.830403 | 0.387408 | 0 | 0.690909 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072727 | false | 0 | 0.036364 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f10177907a54de871e4ea66e85d002d100e36d1 | 1,557 | py | Python | turkApi/reject_assignments.py | arunchaganty/kbp-online | 9f8763d8f4bfb1fb8a01f1f4f506f56625dd38d8 | [
"MIT"
] | 4 | 2017-08-09T14:05:48.000Z | 2018-12-25T01:34:23.000Z | turkApi/reject_assignments.py | arunchaganty/kbp-online | 9f8763d8f4bfb1fb8a01f1f4f506f56625dd38d8 | [
"MIT"
] | 12 | 2017-01-19T23:18:18.000Z | 2018-12-23T18:57:54.000Z | turkApi/reject_assignments.py | arunchaganty/kbp-online | 9f8763d8f4bfb1fb8a01f1f4f506f56625dd38d8 | [
"MIT"
] | 2 | 2017-08-08T09:48:20.000Z | 2018-07-09T09:12:43.000Z | import boto
from boto.mturk.connection import MTurkConnection
from boto.mturk.question import ExternalQuestion
from connection import connect
import urllib
import argparse
import ConfigParser
import sys, os
import time
import pandas as pd
parser = argparse.ArgumentParser()
parser.add_argument('answers_file', nargs=1,... | 35.386364 | 141 | 0.652537 | 192 | 1,557 | 5.213542 | 0.520833 | 0.054945 | 0.025974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003416 | 0.247913 | 1,557 | 43 | 142 | 36.209302 | 0.851409 | 0.080283 | 0 | 0.166667 | 0 | 0 | 0.174614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.277778 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f1e2d5980fe5fec1c6bd18c363575e550ec387e | 1,055 | py | Python | retropongbuild/randomMusicplayer.py | MatthewAlgo/RetroPongBuild | 9ab6770928b7e48e638655acd7ac6bfdd7ae85c1 | [
"Unlicense"
] | null | null | null | retropongbuild/randomMusicplayer.py | MatthewAlgo/RetroPongBuild | 9ab6770928b7e48e638655acd7ac6bfdd7ae85c1 | [
"Unlicense"
] | null | null | null | retropongbuild/randomMusicplayer.py | MatthewAlgo/RetroPongBuild | 9ab6770928b7e48e638655acd7ac6bfdd7ae85c1 | [
"Unlicense"
] | null | null | null | import multiprocessing
import os
import random
import threading
import time
from multiprocessing import Process
import concurrent.futures
import pygame
import retropong
class WavPlayerRandom():
def __init__(self):
# th = threading.Thread(target=self.fileChooser(), args=(), daemon=True)
process =... | 31.029412 | 80 | 0.605687 | 99 | 1,055 | 6.373737 | 0.515152 | 0.047544 | 0.060222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001355 | 0.300474 | 1,055 | 33 | 81 | 31.969697 | 0.853659 | 0.066351 | 0 | 0.074074 | 0 | 0 | 0.142421 | 0.069176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.333333 | 0 | 0.444444 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8f1edf521362329d1afd7290b5a0f0db4b9cc960 | 1,277 | py | Python | Interviews/goldmansachs/1802.Grid Game/Solution.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 12 | 2019-05-04T04:21:27.000Z | 2022-03-02T07:06:57.000Z | Interviews/goldmansachs/1802.Grid Game/Solution.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 1 | 2019-07-24T18:43:53.000Z | 2019-07-24T18:43:53.000Z | Interviews/goldmansachs/1802.Grid Game/Solution.py | Zhenye-Na/LxxxCode | afd79d790d0a7495d75e6650f80adaa99bd0ff07 | [
"MIT"
] | 10 | 2019-07-01T04:03:04.000Z | 2022-03-09T03:57:37.000Z | class Solution:
"""
@param grid: a 2D array of integers
@param rules: an array of strings
@param k: an integer that denotes the number of steps to perform
@return: return a grid
"""
ALIVE = []
dx = [1, 1, 1, 0, 0, -1, -1, -1]
dy = [-1, 0, 1, -1, 1, -1, 0, 1]
def GridGame(self,... | 28.377778 | 103 | 0.47455 | 197 | 1,277 | 3.005076 | 0.284264 | 0.023649 | 0.02027 | 0.013514 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036411 | 0.397807 | 1,277 | 44 | 104 | 29.022727 | 0.73342 | 0.140172 | 0 | 0 | 0 | 0 | 0.004673 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.321429 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
8f2ab165419c56c1e792ea4658c93240a1bf71e7 | 1,023 | py | Python | GetExcelWorksheetName.py | gnomesoup/pyDynamo | dea046e96f7973fcb6c28a274a3092b246457551 | [
"Unlicense",
"MIT"
] | null | null | null | GetExcelWorksheetName.py | gnomesoup/pyDynamo | dea046e96f7973fcb6c28a274a3092b246457551 | [
"Unlicense",
"MIT"
] | null | null | null | GetExcelWorksheetName.py | gnomesoup/pyDynamo | dea046e96f7973fcb6c28a274a3092b246457551 | [
"Unlicense",
"MIT"
] | null | null | null | import clr
clr.AddReference('Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c')
from Microsoft.Office.Interop import Excel
from System.Runtime.InteropServices import Marshal
paths = IN[0]
if not isinstance(paths, list):
paths = [paths]
outList = []
for path in p... | 28.416667 | 118 | 0.662757 | 116 | 1,023 | 5.844828 | 0.594828 | 0.10177 | 0.064897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02108 | 0.258065 | 1,023 | 35 | 119 | 29.228571 | 0.8722 | 0.162268 | 0 | 0 | 0 | 0.043478 | 0.115294 | 0.072941 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | 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 |
8f30236674d6673760085f111ad109a0c51c2725 | 7,601 | py | Python | job_scheduler_web/scheduler_web/views.py | ewerkema/job-scheduler | ecb2e93cf8eb3d9200f05176b60c3424d70056c3 | [
"MIT"
] | null | null | null | job_scheduler_web/scheduler_web/views.py | ewerkema/job-scheduler | ecb2e93cf8eb3d9200f05176b60c3424d70056c3 | [
"MIT"
] | null | null | null | job_scheduler_web/scheduler_web/views.py | ewerkema/job-scheduler | ecb2e93cf8eb3d9200f05176b60c3424d70056c3 | [
"MIT"
] | 1 | 2018-06-25T19:05:13.000Z | 2018-06-25T19:05:13.000Z | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from django.template import loader
from django import forms
import logging
from dateutil.parser import parse
from requests.utils import quote
from django.urls import reverse
from time import strftime
import csv
from .model... | 30.526104 | 169 | 0.597553 | 840 | 7,601 | 5.328571 | 0.194048 | 0.034406 | 0.039321 | 0.057194 | 0.451519 | 0.428954 | 0.344951 | 0.273458 | 0.170465 | 0.170465 | 0 | 0.010778 | 0.279832 | 7,601 | 248 | 170 | 30.649194 | 0.806905 | 0.019471 | 0 | 0.374332 | 0 | 0.005348 | 0.096389 | 0.024836 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.080214 | null | null | 0.053476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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.