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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ac303de4c8bf15c4c8a99ab324318f59ac0611a | 6,157 | py | Python | src/binancema/indicators.py | emrementese/binance-ema | 41695defb69cf5d4e983e2ed21fa8321c1b64831 | [
"MIT"
] | 16 | 2021-11-01T18:32:17.000Z | 2022-03-15T13:05:35.000Z | src/binancema/indicators.py | emrementese/binance-ema | 41695defb69cf5d4e983e2ed21fa8321c1b64831 | [
"MIT"
] | null | null | null | src/binancema/indicators.py | emrementese/binance-ema | 41695defb69cf5d4e983e2ed21fa8321c1b64831 | [
"MIT"
] | 1 | 2022-03-18T18:20:14.000Z | 2022-03-18T18:20:14.000Z | # -*- coding: utf-8 -*-
'''
Created by Emre MENTESE on 24/01/2022
Coding with Python.
'''
from binancema.coininfo import price
class indicator:
def __init__(self,client):
self.client = client
def SMA(self,series,length) -> float:
'''
* Simple Moving Average
* Referance (01/11/2... | 42.462069 | 137 | 0.636674 | 830 | 6,157 | 4.661446 | 0.215663 | 0.076764 | 0.027914 | 0.018093 | 0.508142 | 0.476609 | 0.459809 | 0.396226 | 0.303955 | 0.278625 | 0 | 0.014374 | 0.288127 | 6,157 | 145 | 138 | 42.462069 | 0.867899 | 0.549943 | 0 | 0.244898 | 0 | 0 | 0.147476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0.081633 | 0.020408 | 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 |
5ac9dd33e6e2fccf1235b9e86a78f2539cccd86d | 450 | py | Python | loans/migrations/0003_auto_20200617_0103.py | minsystems/minloansng | 225f7c553dc1c7180431c5b84250560b74b0e9cc | [
"PostgreSQL",
"MIT"
] | null | null | null | loans/migrations/0003_auto_20200617_0103.py | minsystems/minloansng | 225f7c553dc1c7180431c5b84250560b74b0e9cc | [
"PostgreSQL",
"MIT"
] | null | null | null | loans/migrations/0003_auto_20200617_0103.py | minsystems/minloansng | 225f7c553dc1c7180431c5b84250560b74b0e9cc | [
"PostgreSQL",
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-06-17 08:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('loans', '0002_auto_20200518_0655'),
]
operations = [
migrations.AlterField(
model_name='loan',
name='collection_date... | 23.684211 | 109 | 0.626667 | 52 | 450 | 5.307692 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093373 | 0.262222 | 450 | 18 | 110 | 25 | 0.737952 | 0.1 | 0 | 0 | 1 | 0 | 0.198511 | 0.057072 | 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 |
5acdf23944e020dbd491bdd8b9e92194a1650563 | 425 | py | Python | lowfat/migrations/0051_auto_20160804_1425.py | elena-kolomeets/lowfat | f7647f5cd12519f722e41808157a96cc3e37b6ce | [
"BSD-3-Clause"
] | 6 | 2017-02-23T16:44:36.000Z | 2019-03-18T11:39:03.000Z | lowfat/migrations/0051_auto_20160804_1425.py | elena-kolomeets/lowfat | f7647f5cd12519f722e41808157a96cc3e37b6ce | [
"BSD-3-Clause"
] | 286 | 2017-02-07T15:00:41.000Z | 2022-03-08T12:56:09.000Z | lowfat/migrations/0051_auto_20160804_1425.py | elena-kolomeets/lowfat | f7647f5cd12519f722e41808157a96cc3e37b6ce | [
"BSD-3-Clause"
] | 2 | 2018-06-19T12:38:08.000Z | 2020-11-23T12:15:08.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2016-08-04 14:25
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('lowfat', '0050_auto_20160720_1533'),
]
operations = [
migrations.RenameField(
... | 20.238095 | 47 | 0.602353 | 47 | 425 | 5.212766 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104575 | 0.28 | 425 | 20 | 48 | 21.25 | 0.696078 | 0.157647 | 0 | 0 | 1 | 0 | 0.129577 | 0.064789 | 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 |
5ace0d0fe6928b11bfd972d293d85300751f10c3 | 308 | py | Python | comments_microservice/comments_microservice/urls.py | RolesFGA/2018.2-Roles_Comments | 348d4c18d3e72e11adbd4e7400ab7a863957baf9 | [
"MIT"
] | 1 | 2018-11-12T16:46:24.000Z | 2018-11-12T16:46:24.000Z | comments_microservice/comments_microservice/urls.py | RolesFGA/2018.2-Roles_Comments | 348d4c18d3e72e11adbd4e7400ab7a863957baf9 | [
"MIT"
] | 6 | 2018-11-12T01:38:35.000Z | 2018-11-27T03:35:10.000Z | comments_microservice/comments_microservice/urls.py | RolesFGA/2018.2-Roles_Comments | 348d4c18d3e72e11adbd4e7400ab7a863957baf9 | [
"MIT"
] | 1 | 2018-12-11T00:53:48.000Z | 2018-12-11T00:53:48.000Z | from django.contrib import admin
from django.urls import include, path
from django.conf.urls import url
from votes import urls
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('comments.urls')),
path('api-auth/', include('rest_framework.urls')),
url(r'^', include(urls)),
]
| 25.666667 | 54 | 0.688312 | 42 | 308 | 5.02381 | 0.452381 | 0.14218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149351 | 308 | 11 | 55 | 28 | 0.805344 | 0 | 0 | 0 | 0 | 0 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5ad13d257c1f039241a48992a54d4201e25c466f | 1,190 | py | Python | pipenv/vendor/pythonfinder/cli.py | mlhamel/pipenv | 22445858766a1f92c5ad87c90662ba260c8b750b | [
"MIT"
] | 1 | 2019-09-04T15:17:41.000Z | 2019-09-04T15:17:41.000Z | pipenv/vendor/pythonfinder/cli.py | dr4mohamed/pipenv | e135f7c06f03a7d69175231cec30be98d295380b | [
"MIT"
] | null | null | null | pipenv/vendor/pythonfinder/cli.py | dr4mohamed/pipenv | e135f7c06f03a7d69175231cec30be98d295380b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding=utf-8 -*-
import click
import crayons
import sys
from . import __version__
from .pythonfinder import PythonFinder
# @click.group(invoke_without_command=True, context_settings=CONTEXT_SETTINGS)
@click.command()
@click.option('--find', default=False, nargs=1, help="Find a specific py... | 29.75 | 93 | 0.654622 | 157 | 1,190 | 4.796178 | 0.464968 | 0.037185 | 0.055777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009494 | 0.203361 | 1,190 | 39 | 94 | 30.512821 | 0.78481 | 0.193277 | 0 | 0.137931 | 0 | 0 | 0.173822 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0.034483 | false | 0.034483 | 0.172414 | 0 | 0.206897 | 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 |
5ad3e831f994dbbca0d8774e94f3027eaad3025a | 715 | py | Python | mongodb_consistent_backup/Common/Util.py | cprato79/mongodb_consistent_backup | d780ad545b603d3a2f807e1813f1de407e81f1ba | [
"Apache-2.0"
] | 1 | 2020-10-20T06:01:21.000Z | 2020-10-20T06:01:21.000Z | mongodb_consistent_backup/Common/Util.py | cprato79/mongodb_consistent_backup | d780ad545b603d3a2f807e1813f1de407e81f1ba | [
"Apache-2.0"
] | null | null | null | mongodb_consistent_backup/Common/Util.py | cprato79/mongodb_consistent_backup | d780ad545b603d3a2f807e1813f1de407e81f1ba | [
"Apache-2.0"
] | 1 | 2020-10-20T06:01:25.000Z | 2020-10-20T06:01:25.000Z | import socket
from dateutil import parser
from mongodb_consistent_backup.Errors import OperationError
def config_to_string(config):
config_vars = ""
for key in config:
config_vars += "%s=%s, " % (key, config[key])
return config_vars[:-1]
def is_datetime(string):
try:
parser.parse(st... | 23.064516 | 86 | 0.646154 | 86 | 715 | 5.255814 | 0.511628 | 0.066372 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001848 | 0.243357 | 715 | 30 | 87 | 23.833333 | 0.833641 | 0 | 0 | 0.086957 | 0 | 0 | 0.065734 | 0 | 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 |
5ad571d21c36edcc06038b700e0313586556f78b | 498 | py | Python | bin/changebootloader.py | peterferrie/anti-m | 7adb443fdd513ad0e1504a037eb2441ee5c1ce13 | [
"MIT"
] | 31 | 2019-03-10T05:31:46.000Z | 2022-03-21T00:30:33.000Z | bin/changebootloader.py | peterferrie/anti-m | 7adb443fdd513ad0e1504a037eb2441ee5c1ce13 | [
"MIT"
] | 3 | 2020-11-12T14:28:03.000Z | 2021-07-07T15:07:47.000Z | bin/changebootloader.py | peterferrie/anti-m | 7adb443fdd513ad0e1504a037eb2441ee5c1ce13 | [
"MIT"
] | 9 | 2019-03-09T22:59:49.000Z | 2022-03-21T00:12:14.000Z | #!/usr/bin/env python3
import sys
import os.path
target_disk_image, bootloader = sys.argv[1:]
ext = os.path.splitext(target_disk_image)[-1].lower()
assert(ext in (".dsk", ".do", ".po", ".2mg"))
if ext == ".2mg":
offset = 64
else:
offset = 0
with open(bootloader, 'rb') as f:
boot = f.read()
assert(len(boot... | 23.714286 | 53 | 0.648594 | 82 | 498 | 3.841463 | 0.5 | 0.126984 | 0.190476 | 0.114286 | 0.146032 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.160643 | 498 | 20 | 54 | 24.9 | 0.727273 | 0.042169 | 0 | 0 | 0 | 0 | 0.05042 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 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 |
5ae1c9cde9f1eff10ec2bfa29bf1a458396b876f | 951 | py | Python | addons14/sale_timesheet_rounded/models/sale.py | odoochain/addons_oca | 55d456d798aebe16e49b4a6070765f206a8885ca | [
"MIT"
] | 1 | 2021-06-10T14:59:13.000Z | 2021-06-10T14:59:13.000Z | addons14/sale_timesheet_rounded/models/sale.py | odoochain/addons_oca | 55d456d798aebe16e49b4a6070765f206a8885ca | [
"MIT"
] | null | null | null | addons14/sale_timesheet_rounded/models/sale.py | odoochain/addons_oca | 55d456d798aebe16e49b4a6070765f206a8885ca | [
"MIT"
] | 1 | 2021-04-09T09:44:44.000Z | 2021-04-09T09:44:44.000Z | # Copyright 2019 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo import api, models
class SaleOrderLine(models.Model):
_inherit = "sale.order.line"
def _get_delivered_quantity_by_analytic(self, additional_domain):
# If we land here is only because we are deali... | 39.625 | 75 | 0.711882 | 131 | 951 | 4.946565 | 0.687023 | 0.055556 | 0.061728 | 0.067901 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009272 | 0.206099 | 951 | 23 | 76 | 41.347826 | 0.849007 | 0.438486 | 0 | 0 | 0 | 0 | 0.099617 | 0.070881 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.1 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5ae998f67e8035f75f9ed0451e28964a7d9a485c | 863 | py | Python | examples/validation/core/04_update_template.py | Kitware/trame | 41c4d62e7a6f5dba41fd9305b314c87fa8ed7b6f | [
"Apache-2.0"
] | 42 | 2021-09-24T22:10:32.000Z | 2022-03-30T19:39:25.000Z | examples/validation/core/04_update_template.py | Kitware/trame | 41c4d62e7a6f5dba41fd9305b314c87fa8ed7b6f | [
"Apache-2.0"
] | 31 | 2021-10-01T21:19:56.000Z | 2022-03-04T00:14:28.000Z | examples/validation/core/04_update_template.py | Kitware/trame | 41c4d62e7a6f5dba41fd9305b314c87fa8ed7b6f | [
"Apache-2.0"
] | 7 | 2021-11-17T16:12:06.000Z | 2022-03-26T21:08:40.000Z | from trame.app import get_server
from trame.widgets import html, trame
from trame.ui.html import DivLayout
LINE_COUNT = 1
# -----------------------------------------------------------------------------
# Trame setup
# -----------------------------------------------------------------------------
server = get_server()... | 26.96875 | 79 | 0.428737 | 79 | 863 | 4.443038 | 0.493671 | 0.102564 | 0.05698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002663 | 0.12978 | 863 | 31 | 80 | 27.83871 | 0.464714 | 0.38934 | 0 | 0 | 0 | 0 | 0.144231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.25 | 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 |
5aeee4bd41e1c55c8b88602722c6312684ee5b9c | 166 | py | Python | examples/settings.py | fakegit/googlevoice-1 | 180ab6a56e1809cb68be75b1959b7ae78a74117f | [
"MIT"
] | 156 | 2015-01-07T00:34:33.000Z | 2022-03-13T01:14:53.000Z | examples/settings.py | fakegit/googlevoice-1 | 180ab6a56e1809cb68be75b1959b7ae78a74117f | [
"MIT"
] | 51 | 2015-02-06T14:58:39.000Z | 2021-10-01T23:00:13.000Z | examples/settings.py | fakegit/googlevoice-1 | 180ab6a56e1809cb68be75b1959b7ae78a74117f | [
"MIT"
] | 94 | 2015-02-06T18:44:48.000Z | 2022-02-10T01:29:34.000Z | import pprint
from googlevoice import Voice
def run():
voice = Voice()
voice.login()
pprint.pprint(voice.settings)
__name__ == '__main__' and run()
| 11.857143 | 33 | 0.668675 | 20 | 166 | 5.15 | 0.6 | 0.194175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216867 | 166 | 13 | 34 | 12.769231 | 0.792308 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0.285714 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5afa609c46ccc35eedf504215d56d37dda2fb949 | 992 | py | Python | alliancepy/cache.py | karx1/alliancepy | daca0b307fdc38c9b5f7bb289df072fe9602da70 | [
"MIT"
] | 6 | 2020-03-20T20:50:50.000Z | 2020-03-29T01:15:07.000Z | alliancepy/cache.py | karx1/alliancepy | daca0b307fdc38c9b5f7bb289df072fe9602da70 | [
"MIT"
] | null | null | null | alliancepy/cache.py | karx1/alliancepy | daca0b307fdc38c9b5f7bb289df072fe9602da70 | [
"MIT"
] | null | null | null | import pickle
class Cache:
def __init__(self):
self._filename = "alliancepy.txt"
self._cache = {}
def __enter__(self):
try:
with open(self._filename, "rb") as file:
d = pickle.load(file)
for key, value in d.items():
self.... | 24.195122 | 52 | 0.521169 | 118 | 992 | 4.161017 | 0.372881 | 0.14664 | 0.07332 | 0.081466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.359879 | 992 | 40 | 53 | 24.8 | 0.773228 | 0 | 0 | 0.129032 | 0 | 0 | 0.019153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.032258 | 0.064516 | 0.419355 | 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 |
8500a69a2296121ddc983605d45ecd4353e90563 | 567 | py | Python | apps/shows/migrations/0010_show_social.py | jorgesaw/oclock | 2a78bd4d1ab40eaa65ea346cf8c37556fcbbeca5 | [
"MIT"
] | null | null | null | apps/shows/migrations/0010_show_social.py | jorgesaw/oclock | 2a78bd4d1ab40eaa65ea346cf8c37556fcbbeca5 | [
"MIT"
] | null | null | null | apps/shows/migrations/0010_show_social.py | jorgesaw/oclock | 2a78bd4d1ab40eaa65ea346cf8c37556fcbbeca5 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.13 on 2020-10-04 06:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('socials', '0004_auto_20201004_0347'),
('shows', '0009_auto_20201004_0137'),
]
operations = [
migra... | 27 | 155 | 0.652557 | 65 | 567 | 5.553846 | 0.676923 | 0.066482 | 0.077562 | 0.121884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 0.223986 | 567 | 20 | 156 | 28.35 | 0.711364 | 0.081129 | 0 | 0 | 1 | 0 | 0.206166 | 0.136802 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85021fc86117fc263ef62024e2288c02dcc4b72a | 1,488 | py | Python | Labs/Unit1Lesson3.py | CAP1Sup/SieskoPythonLabs | 3a0525b4feb88ad865db3f0bc30ce4e3290358f7 | [
"MIT"
] | null | null | null | Labs/Unit1Lesson3.py | CAP1Sup/SieskoPythonLabs | 3a0525b4feb88ad865db3f0bc30ce4e3290358f7 | [
"MIT"
] | null | null | null | Labs/Unit1Lesson3.py | CAP1Sup/SieskoPythonLabs | 3a0525b4feb88ad865db3f0bc30ce4e3290358f7 | [
"MIT"
] | null | null | null | # Christian Piper
# 9/9/19
# This program will ask the user for a few words and then create a story like a Mad Libs paper.
def main():
name = input("Please put in the name of a person: ")
verb1 = input("Please input a verb in infinitive form: ")
noun = input("Please input a proper noun: ")
ability = inp... | 51.310345 | 156 | 0.661962 | 230 | 1,488 | 4.282609 | 0.46087 | 0.111675 | 0.129949 | 0.120812 | 0.046701 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013722 | 0.216398 | 1,488 | 28 | 157 | 53.142857 | 0.831046 | 0.077957 | 0 | 0 | 0 | 0.043478 | 0.562866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0 | 0 | 0.043478 | 0.434783 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
850368745ebc171c221c9b14668a83fa00b8bfa1 | 813 | py | Python | assignment_dashboard/config.py | osteele/assignment-dashboard | 4442587630cd1f55ae3302e96ddef7fd83caba16 | [
"MIT"
] | null | null | null | assignment_dashboard/config.py | osteele/assignment-dashboard | 4442587630cd1f55ae3302e96ddef7fd83caba16 | [
"MIT"
] | 12 | 2017-02-05T23:38:08.000Z | 2017-02-07T14:42:16.000Z | assignment_dashboard/config.py | olin-computing/assignment-dashboard | 4442587630cd1f55ae3302e96ddef7fd83caba16 | [
"MIT"
] | null | null | null | import os
class BaseConfig(object):
DEBUG_TB_INTERCEPT_REDIRECTS = False
SECRET_KEY = os.environ.get('SECRET_KEY', 'change me in production')
db_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '../data/database.db'))
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', 'sqlite:///... | 32.52 | 93 | 0.696187 | 111 | 813 | 4.801802 | 0.414414 | 0.15197 | 0.090056 | 0.078799 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183272 | 813 | 24 | 94 | 33.875 | 0.802711 | 0 | 0 | 0 | 0 | 0 | 0.212792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.529412 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
85126d51f15501f4f361ea284e52f114737d3ed6 | 1,129 | py | Python | bluebottle/events/migrations/0015_auto_20200226_0838.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/events/migrations/0015_auto_20200226_0838.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/events/migrations/0015_auto_20200226_0838.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2020-02-26 07:38
from __future__ import unicode_literals
from datetime import datetime
from timezonefinder import TimezoneFinder
import pytz
from django.db import migrations
from django.utils import timezone
tf = TimezoneFinder()
def set_timezone(apps, schem... | 24.021277 | 83 | 0.620018 | 126 | 1,129 | 5.388889 | 0.563492 | 0.05891 | 0.061856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042131 | 0.285208 | 1,129 | 46 | 84 | 24.543478 | 0.799257 | 0.061116 | 0 | 0 | 1 | 0 | 0.037843 | 0.02176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.181818 | 0 | 0.30303 | 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 |
851799cd279feba49e4f7c225864c7355003a98d | 1,199 | py | Python | app/auth/forms.py | chenke91/ihaveablog | 64000723589d3f5a074bd09f045cb5d6c3daf6dd | [
"MIT"
] | null | null | null | app/auth/forms.py | chenke91/ihaveablog | 64000723589d3f5a074bd09f045cb5d6c3daf6dd | [
"MIT"
] | null | null | null | app/auth/forms.py | chenke91/ihaveablog | 64000723589d3f5a074bd09f045cb5d6c3daf6dd | [
"MIT"
] | null | null | null | #coding=utf-8
from flask.ext.wtf import Form
from wtforms import StringField, SubmitField, PasswordField
from wtforms.validators import Required, Email, Length, EqualTo
from app.models import User
class RegisterForm(Form):
username = StringField('用户名', validators=[Required('请输入用户名')])
email = StringField('邮箱'... | 37.46875 | 67 | 0.657214 | 132 | 1,199 | 5.939394 | 0.431818 | 0.137755 | 0.034439 | 0.057398 | 0.51148 | 0.4375 | 0.4375 | 0.30102 | 0.30102 | 0.30102 | 0 | 0.021605 | 0.189324 | 1,199 | 32 | 68 | 37.46875 | 0.784979 | 0.010008 | 0 | 0.230769 | 0 | 0 | 0.10278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.192308 | 0.153846 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
851f2796c5decc325970ceb13435edc0f2742241 | 1,153 | py | Python | problem14.py | prashdash112/Project-Euler-solutions | b2590b8b5280434eae7eb265edea970b7f1d71d8 | [
"Apache-2.0"
] | 1 | 2020-08-11T16:25:22.000Z | 2020-08-11T16:25:22.000Z | problem14.py | prashdash112/Project-Euler-solutions | b2590b8b5280434eae7eb265edea970b7f1d71d8 | [
"Apache-2.0"
] | null | null | null | problem14.py | prashdash112/Project-Euler-solutions | b2590b8b5280434eae7eb265edea970b7f1d71d8 | [
"Apache-2.0"
] | null | null | null | '''
The following iterative sequence is defined for the set of positive integers:
n → n/2 (n is even)
n → 3n + 1 (n is odd)
Using the rule above and starting with 13, we generate the following sequence:
13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → 1
It can be seen that this sequence (starting at 13 and finishin... | 21.754717 | 197 | 0.592368 | 195 | 1,153 | 3.558974 | 0.471795 | 0.014409 | 0.012968 | 0.014409 | 0.025937 | 0.025937 | 0 | 0 | 0 | 0 | 0 | 0.057716 | 0.30876 | 1,153 | 53 | 198 | 21.754717 | 0.799247 | 0.55941 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.090909 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85208c8977101b63c4588fe1ab0d44aff05aec2e | 792 | py | Python | piprot/models/messages.py | emichal/piprot | b98207b8f9cb9633199066121a3095caeea27957 | [
"MIT"
] | null | null | null | piprot/models/messages.py | emichal/piprot | b98207b8f9cb9633199066121a3095caeea27957 | [
"MIT"
] | null | null | null | piprot/models/messages.py | emichal/piprot | b98207b8f9cb9633199066121a3095caeea27957 | [
"MIT"
] | null | null | null | class Messages:
NOT_ROTTEN: str = "{package} ({version}) is up to date"
IGNORED: str = "Ignoring updates for {package}."
CANNOT_FETCH: str = "Skipping {package} ({version}). Cannot fetch info from PyPI"
NO_DELAY_INFO: str = (
"{package} ({current_version}) is out of date. "
"No delay inf... | 37.714286 | 85 | 0.609848 | 93 | 792 | 4.978495 | 0.376344 | 0.136069 | 0.110151 | 0.155508 | 0.514039 | 0.397408 | 0.397408 | 0.397408 | 0.397408 | 0.397408 | 0 | 0 | 0.262626 | 792 | 20 | 86 | 39.6 | 0.792808 | 0 | 0 | 0.35 | 0 | 0 | 0.592172 | 0.032828 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
85282731d068644d823cef1cdd7c7ff4d48a5f46 | 570 | py | Python | python_basics/fib.py | jakubczaplicki/projecteuler | ab58762a65cb303f3e19cc8fc8c3d45831713719 | [
"MIT"
] | null | null | null | python_basics/fib.py | jakubczaplicki/projecteuler | ab58762a65cb303f3e19cc8fc8c3d45831713719 | [
"MIT"
] | null | null | null | python_basics/fib.py | jakubczaplicki/projecteuler | ab58762a65cb303f3e19cc8fc8c3d45831713719 | [
"MIT"
] | null | null | null |
def fibr(n):
if n<=1:
return 1
else:
return n+fibr(n-1)
def fibi(n):
i=0
m=0
while i < n:
i += 1
m += i
return m
for n in xrange(0,10):
print n, fibi(n), fibr(n)
mygenerator = (x*x for x in range(3))
for i in mygenerator:
print i
print "2nd"
for i i... | 14.25 | 52 | 0.573684 | 93 | 570 | 3.516129 | 0.333333 | 0.04893 | 0.073395 | 0.155963 | 0.266055 | 0.211009 | 0 | 0 | 0 | 0 | 0 | 0.030928 | 0.319298 | 570 | 39 | 53 | 14.615385 | 0.811856 | 0.077193 | 0 | 0.178571 | 0 | 0 | 0.005792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
51730db34ff5532efad15b8995f392d4f469aaf3 | 3,629 | py | Python | players.py | TexasChainstoreManager/chessrisk | fb25d80a27e264ee42eff03a28a01eb536d018db | [
"BSD-3-Clause"
] | 1 | 2018-06-14T22:41:38.000Z | 2018-06-14T22:41:38.000Z | players.py | TexasChainstoreManager/chessrisk | fb25d80a27e264ee42eff03a28a01eb536d018db | [
"BSD-3-Clause"
] | 22 | 2016-11-13T23:01:52.000Z | 2016-11-14T08:36:29.000Z | players.py | TexasChainstoreManager/chessrisk | fb25d80a27e264ee42eff03a28a01eb536d018db | [
"BSD-3-Clause"
] | 1 | 2017-12-06T10:41:55.000Z | 2017-12-06T10:41:55.000Z | import global_vars as gv
import random
# TODO: importing ai modules programmatically using the imp module.
from ai import simpleton
from ai import learning_simpleton
ai_modules = {
'simpleton': simpleton.Simpleton,
'learning_simpleton': learning_simpleton.LearningSimpleton
}
chosen_ai_modules = [... | 31.284483 | 112 | 0.582254 | 473 | 3,629 | 4.270613 | 0.293869 | 0.023762 | 0.037129 | 0.024752 | 0.175248 | 0.146535 | 0.077723 | 0.05198 | 0.05198 | 0.05198 | 0 | 0.002365 | 0.300909 | 3,629 | 115 | 113 | 31.556522 | 0.793851 | 0.017911 | 0 | 0.183908 | 0 | 0.011494 | 0.146911 | 0 | 0 | 0 | 0 | 0.008696 | 0 | 0 | null | null | 0 | 0.045977 | null | null | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
517a9209a38807a18484906573f9d81d257bcc5e | 395 | py | Python | manage.py | kongminhao/flask-blueprint-with-docker | b08bb33b776b6b329a406e660be842f131bd2597 | [
"Apache-1.1"
] | null | null | null | manage.py | kongminhao/flask-blueprint-with-docker | b08bb33b776b6b329a406e660be842f131bd2597 | [
"Apache-1.1"
] | null | null | null | manage.py | kongminhao/flask-blueprint-with-docker | b08bb33b776b6b329a406e660be842f131bd2597 | [
"Apache-1.1"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 17/3/21 下午5:32
import os
from app import create_app, db
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
migrate = Migrate(app, db)
manager.add_... | 24.6875 | 56 | 0.724051 | 58 | 395 | 4.689655 | 0.586207 | 0.066176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029499 | 0.141772 | 395 | 15 | 57 | 26.333333 | 0.772861 | 0.174684 | 0 | 0 | 0 | 0 | 0.089783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5192727e7ef6bada3e0ab12f97b06319e6263dad | 4,540 | py | Python | evaluate_VOC_val.py | briqr/CSPN | d3d01e5a4e29d0c2ee4f1dfda1f2e7815163d346 | [
"MIT"
] | 17 | 2018-07-25T05:50:29.000Z | 2020-12-06T23:28:25.000Z | evaluate_VOC_val.py | briqr/CSPN | d3d01e5a4e29d0c2ee4f1dfda1f2e7815163d346 | [
"MIT"
] | 1 | 2019-11-20T16:22:30.000Z | 2020-01-31T08:57:25.000Z | evaluate_VOC_val.py | briqr/CSPN | d3d01e5a4e29d0c2ee4f1dfda1f2e7815163d346 | [
"MIT"
] | 5 | 2018-07-26T03:48:41.000Z | 2020-02-25T14:35:22.000Z | # You can use this code to evaluate the trained model of CSPN on VOC validation data, adapted from SEC
import numpy as np
import pylab
import scipy.ndimage as nd
import imageio
from matplotlib import pyplot as plt
from matplotlib import colors as mpl_colors
import krahenbuhl2013
import sys
sys.path.insert(0,'/home... | 26.549708 | 102 | 0.534141 | 664 | 4,540 | 3.518072 | 0.295181 | 0.046233 | 0.047517 | 0.034247 | 0.155394 | 0.110445 | 0.079623 | 0.076627 | 0.076627 | 0.047517 | 0 | 0.078864 | 0.301762 | 4,540 | 170 | 103 | 26.705882 | 0.658044 | 0.022026 | 0 | 0 | 0 | 0 | 0.104552 | 0.056782 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.087719 | null | null | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5199053155ac5a6c15287c8498f4878f6458dac6 | 941 | py | Python | code_styles/generate_styles.py | tylerbutler/shared_assets | ddf3597944ad20e3bc5a405c2a71253be9bbdf34 | [
"MIT"
] | null | null | null | code_styles/generate_styles.py | tylerbutler/shared_assets | ddf3597944ad20e3bc5a405c2a71253be9bbdf34 | [
"MIT"
] | null | null | null | code_styles/generate_styles.py | tylerbutler/shared_assets | ddf3597944ad20e3bc5a405c2a71253be9bbdf34 | [
"MIT"
] | null | null | null | # coding=utf-8
from pygments.formatters.html import HtmlFormatter
from pygments.styles import get_all_styles
__author__ = 'Tyler Butler <tyler@tylerbutler.com>'
'''
Run this script to output all registered Pygments styles as flat CSS files in the current directory.
Other styles that can be installed using pip:
pygm... | 26.138889 | 100 | 0.729012 | 126 | 941 | 5.277778 | 0.563492 | 0.066165 | 0.084211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005102 | 0.166844 | 941 | 35 | 101 | 26.885714 | 0.843112 | 0.012752 | 0 | 0 | 0 | 0 | 0.125 | 0.047131 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | 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 |
519ccc0c10eb103b8f10f0e61c1cf0c744ad5166 | 5,689 | py | Python | cos_tests/test_base.py | baylee-d/cos.io | 3f88acb0feb7a167bf9e81c42e28f9d2d38bbd43 | [
"Apache-2.0"
] | null | null | null | cos_tests/test_base.py | baylee-d/cos.io | 3f88acb0feb7a167bf9e81c42e28f9d2d38bbd43 | [
"Apache-2.0"
] | null | null | null | cos_tests/test_base.py | baylee-d/cos.io | 3f88acb0feb7a167bf9e81c42e28f9d2d38bbd43 | [
"Apache-2.0"
] | null | null | null | import pytest # noqa
from django.test import TestCase
import website.settings.base as base
import os
from urllib.parse import urlparse
class VariableValueTest(TestCase):
def test_project_dir(self):
""" Checks that the directory for the project is pointing to the right place """
test_project_dir... | 41.830882 | 149 | 0.653542 | 756 | 5,689 | 4.665344 | 0.179894 | 0.056138 | 0.030621 | 0.034023 | 0.298554 | 0.223986 | 0.171534 | 0.110576 | 0.110576 | 0.090729 | 0 | 0.009313 | 0.245034 | 5,689 | 135 | 150 | 42.140741 | 0.811874 | 0.137107 | 0 | 0.021978 | 0 | 0 | 0.179343 | 0.01808 | 0 | 0 | 0 | 0 | 0.175824 | 1 | 0.175824 | false | 0.065934 | 0.054945 | 0 | 0.241758 | 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 |
51a354184fbb061c40499f1020d528eb0721e0c3 | 1,220 | py | Python | eactivities/models/documentation.py | lukegb/ehacktivities | bc04d02eaf36a106b943ce0cb8395e85a780f6fc | [
"MIT"
] | 1 | 2016-04-30T00:19:13.000Z | 2016-04-30T00:19:13.000Z | eactivities/models/documentation.py | lukegb/ehacktivities | bc04d02eaf36a106b943ce0cb8395e85a780f6fc | [
"MIT"
] | null | null | null | eactivities/models/documentation.py | lukegb/ehacktivities | bc04d02eaf36a106b943ce0cb8395e85a780f6fc | [
"MIT"
] | null | null | null | from . import Model, ArrayModel, DictModel
from eactivities.parsers.documentation import InventoryParser, KeyListsParser, RiskAssessmentParser
class Documentation(Model):
def _spawn(self, model_cls, parser_cls):
kwargs = {
'club_id': self._data['club_id']
}
return mode... | 20.333333 | 100 | 0.635246 | 109 | 1,220 | 6.93578 | 0.366972 | 0.039683 | 0.055556 | 0.075397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.288525 | 1,220 | 59 | 101 | 20.677966 | 0.870968 | 0 | 0 | 0.078947 | 0 | 0 | 0.017227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.078947 | 0.052632 | 0.078947 | 0.631579 | 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 |
51a5eb47eb25d0ce3e0a11ad6aec59c5557021b6 | 1,076 | py | Python | ros_comms/ros_pub.py | FabianFalck/de_niro | 1f9d05b7232cb9e76eff975e5ef1c8bf3fb5cde6 | [
"MIT"
] | 7 | 2019-06-12T03:36:15.000Z | 2021-06-27T18:39:40.000Z | ros_comms/ros_pub.py | Hankfirst/de_niro | 1f9d05b7232cb9e76eff975e5ef1c8bf3fb5cde6 | [
"MIT"
] | null | null | null | ros_comms/ros_pub.py | Hankfirst/de_niro | 1f9d05b7232cb9e76eff975e5ef1c8bf3fb5cde6 | [
"MIT"
] | 3 | 2019-06-12T03:35:36.000Z | 2021-06-27T04:37:31.000Z | #!/usr/bin/env python
"""
Wrapper to ROS publisher.
Author: Fabian Falck
Date: 05/18
"""
import rospy
class ROSPublisher(object):
def __init__(self, _topic, _message_type, _queue_size=1, rate=10):
"""
ROSPublisher constructor.
:param _topic: string, ROS topic to publish on
:par... | 29.888889 | 141 | 0.662639 | 140 | 1,076 | 4.942857 | 0.492857 | 0.07948 | 0.046243 | 0.057803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008674 | 0.25 | 1,076 | 35 | 142 | 30.742857 | 0.848823 | 0.500929 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.444444 | 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 |
51b0ac581d3b2563a23c710e460e47025b3952d4 | 5,682 | py | Python | TurtleCore/PythonCode/ScrolledCanvasClass.py | FrankFK/simple-graphics-for-csharp-beginners | bce70fc0d34e45a715b221fac1cc973b42b0d864 | [
"MIT"
] | null | null | null | TurtleCore/PythonCode/ScrolledCanvasClass.py | FrankFK/simple-graphics-for-csharp-beginners | bce70fc0d34e45a715b221fac1cc973b42b0d864 | [
"MIT"
] | null | null | null | TurtleCore/PythonCode/ScrolledCanvasClass.py | FrankFK/simple-graphics-for-csharp-beginners | bce70fc0d34e45a715b221fac1cc973b42b0d864 | [
"MIT"
] | null | null | null | ## helper functions for Scrolled Canvas, to forward Canvas-methods
## to ScrolledCanvas class
def __methodDict(cls, _dict):
"""helper function for Scrolled Canvas"""
baseList = list(cls.__bases__)
baseList.reverse()
for _super in baseList:
__methodDict(_super, _dict)
for key, value in cls.... | 39.458333 | 80 | 0.576558 | 642 | 5,682 | 4.962617 | 0.239875 | 0.056497 | 0.033898 | 0.045198 | 0.371626 | 0.334589 | 0.300691 | 0.282486 | 0.259887 | 0.243566 | 0 | 0.017701 | 0.294087 | 5,682 | 143 | 81 | 39.734266 | 0.776365 | 0.018831 | 0 | 0.151515 | 0 | 0 | 0.03129 | 0.007663 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010101 | 0 | 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 |
51b1d58fd8ee4f3d3b18ddb52b05f048db76f792 | 3,021 | py | Python | data/scan_records.py | geoffrey0822/deepspeech.pytorch | bc9dac09e862aac6472278b8a63e149a9eb45f22 | [
"MIT"
] | null | null | null | data/scan_records.py | geoffrey0822/deepspeech.pytorch | bc9dac09e862aac6472278b8a63e149a9eb45f22 | [
"MIT"
] | null | null | null | data/scan_records.py | geoffrey0822/deepspeech.pytorch | bc9dac09e862aac6472278b8a63e149a9eb45f22 | [
"MIT"
] | null | null | null | import os, sys, argparse, utils, subprocess
def regenerate(src, dst, manifest, new_manifest, sample_rate,
mono, min_duration, max_duration):
if not os.path.isdir(dst):
os.mkdir(dst)
if not os.path.isfile(manifest):
print('%s not found',manifest)
exit(-1)
print('new... | 37.296296 | 93 | 0.606422 | 393 | 3,021 | 4.463104 | 0.274809 | 0.056442 | 0.077537 | 0.037628 | 0.064994 | 0.039909 | 0.039909 | 0.039909 | 0 | 0 | 0 | 0.010939 | 0.27375 | 3,021 | 81 | 94 | 37.296296 | 0.788514 | 0.005627 | 0 | 0 | 1 | 0 | 0.128828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.015152 | 0 | 0.045455 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51b927fafc39ab8bf52858ee27c0ab1e441af266 | 474 | py | Python | tests/ssd.py | hey-yahei/GluonConverter | fc8fceaf97e44671a559e786c2bdcf41586a1cf0 | [
"MIT"
] | 10 | 2019-06-15T13:32:45.000Z | 2020-04-23T07:46:01.000Z | tests/ssd.py | hey-yahei/GluonConverter | fc8fceaf97e44671a559e786c2bdcf41586a1cf0 | [
"MIT"
] | 5 | 2019-06-15T13:34:20.000Z | 2019-12-22T02:57:06.000Z | tests/ssd.py | hey-yahei/GluonConverter | fc8fceaf97e44671a559e786c2bdcf41586a1cf0 | [
"MIT"
] | 1 | 2019-09-11T07:22:03.000Z | 2019-09-11T07:22:03.000Z | #-*- coding: utf-8 -*-
import os
from gluoncv.model_zoo import ssd_512_mobilenet1_0_voc
import sys
sys.path.append("..")
from convert import convert_ssd_model, save_model
if __name__ == "__main__":
if not os.path.exists("tmp"):
os.mkdir("tmp")
net = ssd_512_mobilenet1_0_voc(pretrained=True)
tex... | 26.333333 | 93 | 0.729958 | 75 | 474 | 4.213333 | 0.533333 | 0.037975 | 0.101266 | 0.107595 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0.14135 | 474 | 17 | 94 | 27.882353 | 0.722359 | 0.044304 | 0 | 0 | 0 | 0 | 0.068584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
51c43810038cf3b67552f491d374987c17ee4140 | 25,762 | py | Python | qs2/operations.py | steinarvk/numera-te-ipsum | 6bb6b74daebc00fbafaca6537f50ee12ba7503fc | [
"MIT"
] | null | null | null | qs2/operations.py | steinarvk/numera-te-ipsum | 6bb6b74daebc00fbafaca6537f50ee12ba7503fc | [
"MIT"
] | null | null | null | qs2/operations.py | steinarvk/numera-te-ipsum | 6bb6b74daebc00fbafaca6537f50ee12ba7503fc | [
"MIT"
] | null | null | null | from qs2 import model
import qs2.users
import qs2.validation
import datetime
import users
import decimal
import logging
import time
import qs2.logutil
import sqlalchemy
import random
import csv
import json
import pytz
import functools
from qs2 import ui
import qs2.csvexport
from qs2.timeutil import (hacky_force_timez... | 36.438472 | 111 | 0.710659 | 3,650 | 25,762 | 4.766301 | 0.116164 | 0.038282 | 0.02989 | 0.014485 | 0.45778 | 0.345232 | 0.242858 | 0.177387 | 0.12255 | 0.09059 | 0 | 0.004092 | 0.165321 | 25,762 | 706 | 112 | 36.490085 | 0.804957 | 0.02298 | 0 | 0.175911 | 0 | 0 | 0.109808 | 0.006798 | 0 | 0 | 0 | 0.001416 | 0.001585 | 0 | null | null | 0.020602 | 0.03645 | null | null | 0.011094 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
51c6890194f533045a38f79267155dd2564716f4 | 1,532 | py | Python | chapter5_operations/prediction_monitoring_pattern/src/configurations.py | sudabon/ml-system-in-actions | 4fb1b3e53e4ed7c36e82f7d4b5570e3959aef525 | [
"MIT"
] | 133 | 2021-04-24T09:57:58.000Z | 2022-03-29T06:23:56.000Z | chapter5_operations/prediction_monitoring_pattern/src/configurations.py | sudabon/ml-system-in-actions | 4fb1b3e53e4ed7c36e82f7d4b5570e3959aef525 | [
"MIT"
] | 6 | 2021-04-24T09:58:40.000Z | 2021-11-19T04:04:40.000Z | chapter5_operations/prediction_monitoring_pattern/src/configurations.py | sudabon/ml-system-in-actions | 4fb1b3e53e4ed7c36e82f7d4b5570e3959aef525 | [
"MIT"
] | 40 | 2021-05-21T23:32:40.000Z | 2022-03-30T00:33:08.000Z | import os
from logging import getLogger
from src.constants import CONSTANTS, PLATFORM_ENUM
logger = getLogger(__name__)
class PlatformConfigurations:
platform = os.getenv("PLATFORM", PLATFORM_ENUM.DOCKER.value)
if not PLATFORM_ENUM.has_value(platform):
raise ValueError(f"PLATFORM must be one of {[v.... | 36.47619 | 110 | 0.754569 | 183 | 1,532 | 5.928962 | 0.387978 | 0.095853 | 0.059908 | 0.03871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006701 | 0.123368 | 1,532 | 41 | 111 | 37.365854 | 0.801191 | 0 | 0 | 0 | 0 | 0 | 0.396867 | 0.238251 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.068966 | 0.103448 | 0 | 0.724138 | 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 |
51c9cb115d9909bde539d8eae1b01043a9629cc9 | 338 | py | Python | src/the_impossible/live/migrations/newsletter/migrations/0003_remove_subscriber_last_sent.py | micha31r/The-Impossible | 7a79dea3169907eb93107107f4003c5813de58dc | [
"MIT"
] | null | null | null | src/the_impossible/live/migrations/newsletter/migrations/0003_remove_subscriber_last_sent.py | micha31r/The-Impossible | 7a79dea3169907eb93107107f4003c5813de58dc | [
"MIT"
] | 2 | 2020-04-15T03:57:42.000Z | 2020-06-06T01:43:34.000Z | src/the_impossible/live/migrations/newsletter/migrations/0003_remove_subscriber_last_sent.py | micha31r/The-Impossible | 7a79dea3169907eb93107107f4003c5813de58dc | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2020-07-15 07:26
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('newsletter', '0002_auto_20200514_1518'),
]
operations = [
migrations.RemoveField(
model_name='subscriber',
name='last_sent',... | 18.777778 | 50 | 0.60355 | 36 | 338 | 5.527778 | 0.805556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128631 | 0.286982 | 338 | 17 | 51 | 19.882353 | 0.697095 | 0.133136 | 0 | 0 | 1 | 0 | 0.178694 | 0.079038 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51c9d6f22dcbb6e35d8e3d1c1c93da1e5660cf8b | 283 | py | Python | reo/migrations/0091_merge_20201228_2115.py | akuam1/REopt_Lite_API | fb5a88ee52351b725fda5c15712b617f6e97ddca | [
"BSD-3-Clause"
] | 41 | 2020-02-21T08:25:17.000Z | 2022-01-14T23:06:42.000Z | reo/migrations/0091_merge_20201228_2115.py | akuam1/REopt_Lite_API | fb5a88ee52351b725fda5c15712b617f6e97ddca | [
"BSD-3-Clause"
] | 167 | 2020-02-17T17:26:47.000Z | 2022-01-20T20:36:54.000Z | reo/migrations/0091_merge_20201228_2115.py | akuam1/REopt_Lite_API | fb5a88ee52351b725fda5c15712b617f6e97ddca | [
"BSD-3-Clause"
] | 31 | 2020-02-20T00:22:51.000Z | 2021-12-10T05:48:08.000Z | # Generated by Django 2.2.13 on 2020-12-28 21:15
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('reo', '0090_absorptionchillermodel_chiller_cop'),
('reo', '0087_merge_20201228_2004'),
]
operations = [
]
| 18.866667 | 59 | 0.660777 | 33 | 283 | 5.484848 | 0.848485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163636 | 0.222615 | 283 | 14 | 60 | 20.214286 | 0.659091 | 0.162544 | 0 | 0 | 1 | 0 | 0.293617 | 0.268085 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51d2eea3c4ab61db1ce34c263e8f27fc5268899f | 7,598 | py | Python | main_job.py | vsantiago113/Cisco-FMC-Selenium-Boilerplate | 2c104316f421e5270dbe77b9260084482101f45e | [
"MIT"
] | null | null | null | main_job.py | vsantiago113/Cisco-FMC-Selenium-Boilerplate | 2c104316f421e5270dbe77b9260084482101f45e | [
"MIT"
] | null | null | null | main_job.py | vsantiago113/Cisco-FMC-Selenium-Boilerplate | 2c104316f421e5270dbe77b9260084482101f45e | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
from selenium.common.exceptions import NoSuchElementException, TimeoutException, ElementNotVisibleException, \
ElementNotInter... | 37.613861 | 118 | 0.694393 | 1,006 | 7,598 | 5.158052 | 0.240557 | 0.015032 | 0.026209 | 0.029293 | 0.377915 | 0.314126 | 0.242821 | 0.225477 | 0.193101 | 0.17036 | 0 | 0.019234 | 0.199395 | 7,598 | 201 | 119 | 37.800995 | 0.833799 | 0.287181 | 0 | 0.293103 | 0 | 0.051724 | 0.222397 | 0.136301 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.060345 | 0.068966 | 0 | 0.112069 | 0.043103 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51d54806d69c8790812786bd11a9e7570f91726e | 1,999 | py | Python | contrib/remote/remote.py | fffkongress/info-beamer | 63798562997108b1be0a480bf9c6c5c136ba31cd | [
"BSD-2-Clause"
] | null | null | null | contrib/remote/remote.py | fffkongress/info-beamer | 63798562997108b1be0a480bf9c6c5c136ba31cd | [
"BSD-2-Clause"
] | null | null | null | contrib/remote/remote.py | fffkongress/info-beamer | 63798562997108b1be0a480bf9c6c5c136ba31cd | [
"BSD-2-Clause"
] | null | null | null | import sys
try:
import pygame
from pygame.locals import *
except ImportError:
print "=========================="
print "You have to install pygame"
print "=========================="
raise
try:
from OSC import OSCClient, OSCMessage # provided by pyOSC
except ImportError:
print "========... | 26.302632 | 90 | 0.582291 | 249 | 1,999 | 4.654618 | 0.333333 | 0.077653 | 0.120794 | 0.088007 | 0.370147 | 0.332183 | 0.332183 | 0.332183 | 0.257981 | 0.257981 | 0 | 0.021512 | 0.232616 | 1,999 | 75 | 91 | 26.653333 | 0.734029 | 0.008504 | 0 | 0.390625 | 0 | 0 | 0.147475 | 0.051515 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09375 | null | null | 0.109375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
51debe0d3d5debf1904bad51cdc9bcf2ec35c93f | 721 | py | Python | apps/resizer/migrations/0003_auto_20200807_0453.py | atseplyaev/django_image_resizer | 3ec740519d62b16261924eafd0b45e4a18bbbad5 | [
"MIT"
] | null | null | null | apps/resizer/migrations/0003_auto_20200807_0453.py | atseplyaev/django_image_resizer | 3ec740519d62b16261924eafd0b45e4a18bbbad5 | [
"MIT"
] | 6 | 2021-06-04T23:50:30.000Z | 2022-01-13T03:11:50.000Z | apps/resizer/migrations/0003_auto_20200807_0453.py | atseplyaev/django_image_resizer | 3ec740519d62b16261924eafd0b45e4a18bbbad5 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-08-07 04:53
from django.db import migrations, models
def set_images_names(apps, schema_editor):
UploadImage = apps.get_model('resizer', 'UploadImage')
for image in UploadImage.objects.all():
image_name = image.original_image.name.split('/')[-1]
image.image_na... | 25.75 | 63 | 0.640777 | 82 | 721 | 5.439024 | 0.634146 | 0.100897 | 0.09417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062044 | 0.239945 | 721 | 27 | 64 | 26.703704 | 0.751825 | 0.059639 | 0 | 0 | 1 | 0 | 0.10355 | 0.034024 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.263158 | 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 |
51e1c6631bd7f01858586a256a40bc121b0065ea | 615 | py | Python | migrations/versions/fa4f694e986a_created_comments.py | Amukozoberit/Pitches | 99b36ad5fc9c45e48b686e91126749d1d68fb116 | [
"MIT"
] | 1 | 2021-09-06T13:56:42.000Z | 2021-09-06T13:56:42.000Z | migrations/versions/fa4f694e986a_created_comments.py | Amukozoberit/Pitches | 99b36ad5fc9c45e48b686e91126749d1d68fb116 | [
"MIT"
] | null | null | null | migrations/versions/fa4f694e986a_created_comments.py | Amukozoberit/Pitches | 99b36ad5fc9c45e48b686e91126749d1d68fb116 | [
"MIT"
] | null | null | null | """Created comments
Revision ID: fa4f694e986a
Revises: 8c268b7acf17
Create Date: 2021-08-16 21:48:43.079233
"""
# revision identifiers, used by Alembic.
revision = 'fa4f694e986a'
down_revision = '8c268b7acf17'
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto generated by Alemb... | 22.777778 | 77 | 0.684553 | 74 | 615 | 5.648649 | 0.594595 | 0.064593 | 0.100478 | 0.110048 | 0.210526 | 0.210526 | 0.210526 | 0.210526 | 0 | 0 | 0 | 0.094675 | 0.17561 | 615 | 26 | 78 | 23.653846 | 0.729783 | 0.484553 | 0 | 0 | 0 | 0 | 0.164286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51e6c13d58a806977b822ad6c740836522ce18c9 | 970 | py | Python | PyRamen/PyRamen.py | nomadic-me/python-homework | 0f95309ea74cb9c6f2c757947f4f9ee3dc186f34 | [
"MIT"
] | null | null | null | PyRamen/PyRamen.py | nomadic-me/python-homework | 0f95309ea74cb9c6f2c757947f4f9ee3dc186f34 | [
"MIT"
] | null | null | null | PyRamen/PyRamen.py | nomadic-me/python-homework | 0f95309ea74cb9c6f2c757947f4f9ee3dc186f34 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
"""PyRamen Homework Starter."""
# @TODO: Import libraries
import csv
from pathlib import Path
# @TODO: Set file paths for menu_data.csv and sales_data.csv
menu_filepath = Path('')
sales_filepath = Path('')
# @TODO: Initialize list objects to hold our menu and sales data
menu = []
sales = []
... | 15.15625 | 102 | 0.695876 | 147 | 970 | 4.52381 | 0.537415 | 0.054135 | 0.03609 | 0.039098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002653 | 0.22268 | 970 | 64 | 103 | 15.15625 | 0.87931 | 0.762887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
51ea83a5c10fc88191863bd581baa98dc5e8e681 | 3,989 | py | Python | beams/ApogeeCam.py | Yaccoub/Beams | f3634980e1794d0ee2c537db329a9e2eb2481803 | [
"MIT"
] | 11 | 2015-11-28T08:23:43.000Z | 2021-07-01T08:57:43.000Z | beams/ApogeeCam.py | Yaccoub/Beams | f3634980e1794d0ee2c537db329a9e2eb2481803 | [
"MIT"
] | 9 | 2015-01-23T23:03:26.000Z | 2017-11-29T07:18:32.000Z | beams/ApogeeCam.py | Yaccoub/Beams | f3634980e1794d0ee2c537db329a9e2eb2481803 | [
"MIT"
] | 14 | 2015-06-03T09:08:46.000Z | 2021-04-27T11:50:07.000Z | import numpy as N
import win32com.client
# generate and import apogee ActiveX module
apogee_module = win32com.client.gencache.EnsureModule(
'{A2882C73-7CFB-11D4-9155-0060676644C1}', 0, 1, 0)
if apogee_module is None:
raise ImportError # prevent plugin from being imported
from win32com.client import constants ... | 32.430894 | 79 | 0.635247 | 472 | 3,989 | 5.158898 | 0.334746 | 0.06037 | 0.034908 | 0.034497 | 0.078029 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021139 | 0.264728 | 3,989 | 122 | 80 | 32.696721 | 0.809069 | 0.070945 | 0 | 0.021505 | 1 | 0 | 0.081443 | 0.010385 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.010753 | 0.075269 | 0.053763 | 0.354839 | 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 |
51f02e6e47d158d3f6ef8586cf72519cb1ba66e6 | 1,489 | py | Python | app/test/airport/test_airport_parser.py | egenerat/gae-django | f12379483cf3917ed3cb46ca5ff0b94daf89fc50 | [
"MIT"
] | 3 | 2016-07-08T23:49:32.000Z | 2018-04-15T22:55:01.000Z | app/test/airport/test_airport_parser.py | egenerat/gae-django | f12379483cf3917ed3cb46ca5ff0b94daf89fc50 | [
"MIT"
] | 27 | 2017-02-05T15:57:04.000Z | 2018-04-15T22:57:26.000Z | app/test/airport/test_airport_parser.py | egenerat/gae-django | f12379483cf3917ed3cb46ca5ff0b94daf89fc50 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from app.airport.airports_parsers import get_country, get_money, get_kerosene_supply, get_kerosene_capacity, \
get_engines_supply, get_planes_capacity, get_airport_name
from app.common.http_methods_unittests import get_request
from app.common.target_urls import MY_AIRPORT
import unittest
... | 31.680851 | 110 | 0.724647 | 187 | 1,489 | 5.347594 | 0.283422 | 0.064 | 0.084 | 0.112 | 0.219 | 0.192 | 0 | 0 | 0 | 0 | 0 | 0.024712 | 0.184688 | 1,489 | 46 | 111 | 32.369565 | 0.799012 | 0.014103 | 0 | 0 | 0 | 0 | 0.021146 | 0 | 0 | 0 | 0 | 0 | 0.242424 | 1 | 0.242424 | false | 0 | 0.121212 | 0 | 0.393939 | 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 |
51f582f3673bbf83f1341a5c967816b15e2029ac | 9,726 | py | Python | src/models/retrain_biggan.py | whs2k/vasegen | d049e58941281b34d080254423a6b8b5b5771933 | [
"MIT"
] | null | null | null | src/models/retrain_biggan.py | whs2k/vasegen | d049e58941281b34d080254423a6b8b5b5771933 | [
"MIT"
] | null | null | null | src/models/retrain_biggan.py | whs2k/vasegen | d049e58941281b34d080254423a6b8b5b5771933 | [
"MIT"
] | null | null | null | import os
import sys
import functools
import math
import numpy as np
from tqdm import tqdm, trange
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
from torch.nn import init
import torch.optim as optim
import torch.nn.functional as F
from torch.nn import Parameter as P
import torchvision
# Import py... | 39.376518 | 2,016 | 0.634896 | 1,381 | 9,726 | 4.246198 | 0.259232 | 0.019952 | 0.025921 | 0.017053 | 0.13148 | 0.085948 | 0.056276 | 0.052694 | 0.047408 | 0.027285 | 0 | 0.031348 | 0.216122 | 9,726 | 246 | 2,017 | 39.536585 | 0.737802 | 0.199054 | 0 | 0.050955 | 0 | 0 | 0.274774 | 0.022898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038217 | false | 0.006369 | 0.178344 | 0 | 0.216561 | 0.057325 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51f6d0e6c47887722230ed0ee75a966ec0332300 | 513 | py | Python | twitterapiv2/model/recent/public_metrics.py | Preocts/twwordmap | 04381544ec3429b88370e255adb22330e101ecfd | [
"MIT"
] | 1 | 2020-05-19T01:38:40.000Z | 2020-05-19T01:38:40.000Z | twitterapiv2/model/recent/public_metrics.py | Preocts/twWordMap | 04381544ec3429b88370e255adb22330e101ecfd | [
"MIT"
] | null | null | null | twitterapiv2/model/recent/public_metrics.py | Preocts/twWordMap | 04381544ec3429b88370e255adb22330e101ecfd | [
"MIT"
] | null | null | null | from typing import Any
from typing import Dict
class PublicMetrics:
retweet_count: int
reply_count: int
like_count: int
quote_count: int
@classmethod
def build_obj(cls, obj: Dict[str, Any]) -> "PublicMetrics":
"""Build object"""
new = cls()
new.retweet_count = obj.get(... | 25.65 | 63 | 0.62768 | 70 | 513 | 4.414286 | 0.342857 | 0.10356 | 0.142395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010499 | 0.25731 | 513 | 19 | 64 | 27 | 0.800525 | 0.023392 | 0 | 0 | 0 | 0 | 0.117172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | 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 |
a40104adaa8df605112c68acd76314119ccf6ce8 | 1,839 | py | Python | 47 - Distinct primes factors/distinct.py | jamtot/PyProjectEuler | 98c2cf5dbfa3d38a2727f2ad204e41f01b624dda | [
"MIT"
] | null | null | null | 47 - Distinct primes factors/distinct.py | jamtot/PyProjectEuler | 98c2cf5dbfa3d38a2727f2ad204e41f01b624dda | [
"MIT"
] | null | null | null | 47 - Distinct primes factors/distinct.py | jamtot/PyProjectEuler | 98c2cf5dbfa3d38a2727f2ad204e41f01b624dda | [
"MIT"
] | null | null | null | def primegen():
primes = [2,3]
yield 2
yield 3
num = 3
while True:
prime = True
num+=2
for p in primes:
if num%p==0:
prime = False
break
if prime:
primes.append(num)
yield num
def primecompgen(compos... | 22.156627 | 45 | 0.418162 | 198 | 1,839 | 3.843434 | 0.222222 | 0.010512 | 0.023653 | 0.047306 | 0.26544 | 0.247043 | 0.247043 | 0.247043 | 0.247043 | 0.247043 | 0 | 0.046386 | 0.495922 | 1,839 | 82 | 46 | 22.426829 | 0.774542 | 0.003263 | 0 | 0.527027 | 0 | 0 | 0.004374 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0 | null | null | 0 | 0 | null | null | 0.013514 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a407f007eb5347889757cc7954b13ec852f0cd1c | 6,126 | py | Python | ImageAlgoKD/ImageAlgoKD_kernel_cuda.py | ZihengChen/ImageAlgorithm | 3a21d5959696b24f379fbab6a51de2ec567d8d96 | [
"MIT"
] | 6 | 2018-07-12T15:14:48.000Z | 2020-05-17T00:18:18.000Z | ImageAlgoKD/ImageAlgoKD_kernel_cuda.py | ZihengChen/ImageAlgorithm | 3a21d5959696b24f379fbab6a51de2ec567d8d96 | [
"MIT"
] | null | null | null | ImageAlgoKD/ImageAlgoKD_kernel_cuda.py | ZihengChen/ImageAlgorithm | 3a21d5959696b24f379fbab6a51de2ec567d8d96 | [
"MIT"
] | 1 | 2020-05-17T00:18:17.000Z | 2020-05-17T00:18:17.000Z | ## cuda
import pycuda.driver as cuda
import pycuda.autoinit
from pycuda.compiler import SourceModule
mod = SourceModule("""
// 1.1 get rho
__global__ void rho_cuda( float *d_rho,
float *d_Points, float *d_wPoints,
int nPoints, int kPoints, float KE... | 34.806818 | 117 | 0.387529 | 625 | 6,126 | 3.6304 | 0.1744 | 0.055531 | 0.042309 | 0.021155 | 0.583517 | 0.538563 | 0.538563 | 0.51212 | 0.51212 | 0.51212 | 0 | 0.018772 | 0.486941 | 6,126 | 175 | 118 | 35.005714 | 0.70315 | 0.000653 | 0 | 0.435115 | 0 | 0.045802 | 0.961098 | 0.065871 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022901 | 0 | 0.022901 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf913fca195dd722e9d305797ca70fef4f60156c | 1,038 | py | Python | python/examples/test_simple_race.py | ziyuli/XWorld | 97db71daf1b82a179a5c3a85b58c46c9debbc247 | [
"Apache-2.0"
] | 83 | 2017-08-22T20:13:58.000Z | 2022-02-14T01:39:00.000Z | python/examples/test_simple_race.py | ziyuli/XWorld | 97db71daf1b82a179a5c3a85b58c46c9debbc247 | [
"Apache-2.0"
] | 15 | 2017-08-24T00:07:29.000Z | 2019-04-25T15:24:53.000Z | python/examples/test_simple_race.py | ziyuli/XWorld | 97db71daf1b82a179a5c3a85b58c46c9debbc247 | [
"Apache-2.0"
] | 30 | 2017-08-23T23:19:12.000Z | 2022-02-14T01:43:07.000Z | #!/usr/bin/python
from py_simulator import Simulator
from random import randint
if __name__ == "__main__":
options = {
"pause_screen": False,
"window_width": 480,
"window_height": 480,
"track_type": "straight",
"track_width": 20.0,
"track_length": 100.0,
"tr... | 24.714286 | 63 | 0.569364 | 126 | 1,038 | 4.404762 | 0.507937 | 0.072072 | 0.059459 | 0.046847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032078 | 0.309249 | 1,038 | 41 | 64 | 25.317073 | 0.74198 | 0.015414 | 0 | 0.060606 | 0 | 0 | 0.201763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.060606 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf93f8f92f84bea84b99ba125ddc511cb555a6d7 | 1,481 | py | Python | sparse_causal_model_learner_rl/test_learner.py | sergeivolodin/causality-disentanglement-rl | 5a41b4a2e3d85fa7e9c8450215fdc6cf954df867 | [
"CC0-1.0"
] | 2 | 2020-12-11T05:26:24.000Z | 2021-04-21T06:12:58.000Z | sparse_causal_model_learner_rl/test_learner.py | sergeivolodin/causality-disentanglement-rl | 5a41b4a2e3d85fa7e9c8450215fdc6cf954df867 | [
"CC0-1.0"
] | 9 | 2020-04-30T16:29:50.000Z | 2021-03-26T07:32:18.000Z | sparse_causal_model_learner_rl/test_learner.py | sergeivolodin/causality-disentanglement-rl | 5a41b4a2e3d85fa7e9c8450215fdc6cf954df867 | [
"CC0-1.0"
] | null | null | null | import vectorincrement
import os
import gin
import sparse_causal_model_learner_rl.learners.rl_learner as learner
import sparse_causal_model_learner_rl.learners.abstract_learner as abstract_learner
import sparse_causal_model_learner_rl.config as config
import pytest
from sparse_causal_model_learner_rl.sacred_gin_... | 29.62 | 103 | 0.725861 | 190 | 1,481 | 5.252632 | 0.326316 | 0.06012 | 0.068136 | 0.096192 | 0.363727 | 0.337675 | 0.256513 | 0.066132 | 0 | 0 | 0 | 0.000818 | 0.174207 | 1,481 | 50 | 104 | 29.62 | 0.815209 | 0 | 0 | 0.216216 | 0 | 0 | 0.038381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0.054054 | 0.216216 | 0.054054 | 0.486486 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
cf9416c99721832306d7e1f2926c10122fec8238 | 485 | py | Python | teach/migrations/0003_auto_20191027_1008.py | rajk-apps/teach | 4f7bcf459b357e07510a7f0a99854ec1784a813e | [
"MIT"
] | null | null | null | teach/migrations/0003_auto_20191027_1008.py | rajk-apps/teach | 4f7bcf459b357e07510a7f0a99854ec1784a813e | [
"MIT"
] | null | null | null | teach/migrations/0003_auto_20191027_1008.py | rajk-apps/teach | 4f7bcf459b357e07510a7f0a99854ec1784a813e | [
"MIT"
] | 1 | 2019-07-23T16:39:10.000Z | 2019-07-23T16:39:10.000Z | # Generated by Django 2.2.6 on 2019-10-27 10:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('teach', '0002_remove_course_additional_lecture_content'),
]
operations = [
migrations.AlterField(
model_name='content',
... | 25.526316 | 128 | 0.602062 | 53 | 485 | 5.377358 | 0.735849 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057221 | 0.243299 | 485 | 18 | 129 | 26.944444 | 0.719346 | 0.092784 | 0 | 0 | 1 | 0 | 0.203196 | 0.10274 | 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 |
cf9bf739ba84592ac7b4898040bbb3a108b55742 | 20,106 | py | Python | packages/w3af/w3af/core/controllers/threads/threadpool.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | null | null | null | packages/w3af/w3af/core/controllers/threads/threadpool.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | null | null | null | packages/w3af/w3af/core/controllers/threads/threadpool.py | ZooAtmosphereGroup/HelloPackages | 0ccffd33bf927b13d28c8f715ed35004c33465d9 | [
"Apache-2.0"
] | null | null | null | """
threadpool.py
Copyright 2006 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distributed in the hope that ... | 34.966957 | 138 | 0.611211 | 2,506 | 20,106 | 4.735036 | 0.203113 | 0.011461 | 0.009102 | 0.012894 | 0.235547 | 0.191219 | 0.163071 | 0.162734 | 0.147227 | 0.140148 | 0 | 0.00983 | 0.311897 | 20,106 | 574 | 139 | 35.027875 | 0.84785 | 0.081568 | 0 | 0.158491 | 0 | 0 | 0.046422 | 0 | 0 | 0 | 0 | 0 | 0.022642 | 0 | null | null | 0 | 0.045283 | 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 |
cfa145f0a0436eba64abf5ad72c4aa3d60e08422 | 9,915 | py | Python | foreman_compute_resource.py | Nosmoht/ansible-module-foreman | d5509cc74025c842fb1c63aae4e1d36c31ce026d | [
"Apache-2.0"
] | 53 | 2016-05-05T03:36:17.000Z | 2022-01-04T18:02:05.000Z | foreman_compute_resource.py | Nosmoht/ansible-module-foreman | d5509cc74025c842fb1c63aae4e1d36c31ce026d | [
"Apache-2.0"
] | 29 | 2016-03-11T15:29:21.000Z | 2020-10-22T02:56:18.000Z | foreman_compute_resource.py | Nosmoht/ansible-module-foreman | d5509cc74025c842fb1c63aae4e1d36c31ce026d | [
"Apache-2.0"
] | 33 | 2016-03-01T18:48:35.000Z | 2021-01-16T13:55:09.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Ansible module to manage Foreman compute resource resources.
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# ... | 34.667832 | 113 | 0.661624 | 1,184 | 9,915 | 5.444257 | 0.196791 | 0.081446 | 0.03413 | 0.050109 | 0.386907 | 0.239994 | 0.165839 | 0.097735 | 0.097735 | 0.096959 | 0 | 0.006851 | 0.234493 | 9,915 | 285 | 114 | 34.789474 | 0.842424 | 0.079677 | 0 | 0.228814 | 0 | 0.008475 | 0.407643 | 0.008127 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021186 | false | 0.067797 | 0.012712 | 0 | 0.09322 | 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 |
cfa4aa4e975e80606e69d65d36cf0276090044b9 | 201 | py | Python | chill/examples/chill/testcases/jacobi_box_1_32.py | CompOpt4Apps/Artifact-DataDepSimplify | 4fa1bf2bda2902fec50a54ee79ae405a554fc9f4 | [
"MIT"
] | 5 | 2019-05-20T03:35:41.000Z | 2021-09-16T22:22:13.000Z | chill/examples/chill/testcases/jacobi_box_1_32.py | CompOpt4Apps/Artifact-DataDepSimplify | 4fa1bf2bda2902fec50a54ee79ae405a554fc9f4 | [
"MIT"
] | null | null | null | chill/examples/chill/testcases/jacobi_box_1_32.py | CompOpt4Apps/Artifact-DataDepSimplify | 4fa1bf2bda2902fec50a54ee79ae405a554fc9f4 | [
"MIT"
] | null | null | null | from chill import *
source('jacobi_box_1_32.c')
destination('jacobi_box_1_32modified.c')
procedure('smooth_box_1_32')
loop(0)
original()
print_code()
stencil_temp(3)
print_code()
print_space()
| 10.578947 | 40 | 0.761194 | 32 | 201 | 4.375 | 0.6875 | 0.085714 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061111 | 0.104478 | 201 | 18 | 41 | 11.166667 | 0.716667 | 0 | 0 | 0.2 | 0 | 0 | 0.286432 | 0.125628 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cfa79bec388bda4b76a5f1e75bcd4f2ae8aa72f4 | 3,443 | py | Python | tests/conftest.py | workforce-data-initiative/etp-warehouse | 5713a9a196d48954023bc97cb79c929e637810e8 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | workforce-data-initiative/etp-warehouse | 5713a9a196d48954023bc97cb79c929e637810e8 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | workforce-data-initiative/etp-warehouse | 5713a9a196d48954023bc97cb79c929e637810e8 | [
"Apache-2.0"
] | null | null | null | import os
import pytest
from sqlalchemy.inspection import inspect
from sqlalchemy_utils.functions import drop_database
from alembic import config
from dbutils import conn_uri_factory, DbConnection
def pytest_addoption(parser):
"""
Custom command line options required for test runs
"""
parser.addopti... | 29.681034 | 82 | 0.628522 | 393 | 3,443 | 5.335878 | 0.305344 | 0.061993 | 0.085837 | 0.119218 | 0.351454 | 0.244158 | 0.115403 | 0.115403 | 0.115403 | 0.115403 | 0 | 0.001536 | 0.243392 | 3,443 | 115 | 83 | 29.93913 | 0.803455 | 0.121987 | 0 | 0.279412 | 0 | 0 | 0.180189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.088235 | 0.102941 | 0.397059 | 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 |
cfb13bc8e3dfaa3bd7b71c93f022db62a6ac7a69 | 3,740 | py | Python | common/test/test_signing_serializer.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 148 | 2017-07-11T19:05:25.000Z | 2022-03-16T21:31:20.000Z | common/test/test_signing_serializer.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 561 | 2017-06-29T17:59:56.000Z | 2022-03-09T15:47:14.000Z | common/test/test_signing_serializer.py | andkononykhin/plenum | 28dc1719f4b7e80d31dafbadb38cfec4da949886 | [
"Apache-2.0"
] | 378 | 2017-06-29T17:45:27.000Z | 2022-03-26T07:27:59.000Z | from collections import OrderedDict
import pytest
from common.serializers.serialization import serialize_msg_for_signing
def test_serialize_int():
assert b"1" == serialize_msg_for_signing(1)
def test_serialize_str():
assert b"aaa" == serialize_msg_for_signing("aaa")
def test_serialize_none():
assert... | 26.524823 | 104 | 0.39893 | 447 | 3,740 | 3.149888 | 0.149888 | 0.034091 | 0.044744 | 0.28125 | 0.647017 | 0.591619 | 0.588778 | 0.577415 | 0.568182 | 0.549006 | 0 | 0.082051 | 0.426471 | 3,740 | 140 | 105 | 26.714286 | 0.574359 | 0 | 0 | 0.398305 | 0 | 0.008475 | 0.142246 | 0.020321 | 0 | 0 | 0 | 0 | 0.135593 | 1 | 0.084746 | false | 0 | 0.025424 | 0 | 0.110169 | 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 |
cfb76cb135676d1d73009751fcc0493e63eb42ea | 393 | py | Python | project/university/migrations/0009_rename_courseid_course_courseid.py | minaee/cd557 | 4db87e1412709d1dff70a5d10642814e35a251f1 | [
"MIT"
] | null | null | null | project/university/migrations/0009_rename_courseid_course_courseid.py | minaee/cd557 | 4db87e1412709d1dff70a5d10642814e35a251f1 | [
"MIT"
] | null | null | null | project/university/migrations/0009_rename_courseid_course_courseid.py | minaee/cd557 | 4db87e1412709d1dff70a5d10642814e35a251f1 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-12 20:16
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('university', '0008_rename_course_id_course_courseid_and_more'),
]
operations = [
migrations.RenameField(
model_name='course',
... | 20.684211 | 73 | 0.615776 | 43 | 393 | 5.395349 | 0.767442 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067138 | 0.279898 | 393 | 18 | 74 | 21.833333 | 0.75265 | 0.114504 | 0 | 0 | 1 | 0 | 0.225434 | 0.132948 | 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 |
cfb8970c2aed364b59d4913c1e61592853d2e910 | 1,881 | py | Python | fonction_py/tools.py | LaRiffle/axa_challenge | 75abad9749c951bdffb34a989d1c21a5386bb896 | [
"MIT"
] | 1 | 2018-03-15T20:28:24.000Z | 2018-03-15T20:28:24.000Z | fonction_py/tools.py | LaRiffle/axa_challenge | 75abad9749c951bdffb34a989d1c21a5386bb896 | [
"MIT"
] | null | null | null | fonction_py/tools.py | LaRiffle/axa_challenge | 75abad9749c951bdffb34a989d1c21a5386bb896 | [
"MIT"
] | null | null | null | from numpy import *
import math
import pandas
def poly_exp(X, degree):
N,D = X.shape
for d in range(2,degree+1):
X = column_stack([X,X[:,0:D]**d])
return X
def MSE(yt,yp):
print("NE PAS UTILISER MSE !! utiliser LinExp !!!")
def normalize(df):
return (df - df.mean()) / (df.max() - df.min(... | 28.074627 | 145 | 0.633174 | 279 | 1,881 | 4.261649 | 0.322581 | 0.035324 | 0.050463 | 0.027754 | 0.423886 | 0.396131 | 0.396131 | 0.31455 | 0.31455 | 0.291001 | 0 | 0.02027 | 0.213184 | 1,881 | 67 | 146 | 28.074627 | 0.783108 | 0.172249 | 0 | 0.208333 | 0 | 0 | 0.065161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfc36d1d0a5593653a866cc86254acb46ed0360b | 8,629 | py | Python | src/UnloadAutoPartitions/genunload.py | rmcelroyF8/amazon-redshift-utils | 4c790ec8657c33c94f569e4895ba539c66313750 | [
"Apache-2.0"
] | 2,452 | 2015-01-02T17:35:09.000Z | 2022-03-31T06:30:12.000Z | src/UnloadAutoPartitions/genunload.py | Darkyj/amazon-redshift-utils | b2133b31e78dc371ad1ec2cbdd5e5d7c4a3846e0 | [
"Apache-2.0"
] | 319 | 2015-01-01T14:59:45.000Z | 2022-03-13T09:32:54.000Z | src/UnloadAutoPartitions/genunload.py | Darkyj/amazon-redshift-utils | b2133b31e78dc371ad1ec2cbdd5e5d7c4a3846e0 | [
"Apache-2.0"
] | 1,249 | 2015-01-01T14:42:00.000Z | 2022-03-28T20:48:24.000Z | """
GenUnload : Generate unload commands given a config file (config.ini) which has information about table, schema, partition column & sort columns
-------------------------------------------------------------------------------------------------------------------------------------------
-- Satish Sathiya 05/23/2019
e... | 34.242063 | 196 | 0.634604 | 1,058 | 8,629 | 5.008507 | 0.204159 | 0.121721 | 0.053784 | 0.026043 | 0.253821 | 0.238913 | 0.238913 | 0.224193 | 0.169843 | 0.169843 | 0 | 0.008639 | 0.235369 | 8,629 | 251 | 197 | 34.378486 | 0.794483 | 0.107428 | 0 | 0.178344 | 1 | 0.019108 | 0.221349 | 0.019122 | 0.019108 | 0 | 0 | 0 | 0 | 1 | 0.038217 | false | 0.031847 | 0.082803 | 0 | 0.127389 | 0.133758 | 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 |
cfc4d09eadd87dd872795304aba15436d0d3fd7a | 747 | py | Python | django_shop/apps/goods/admin.py | XZH950926/mydjango | a6f7ecceda251f20778124a81b3e71e98bab2a08 | [
"Apache-2.0"
] | null | null | null | django_shop/apps/goods/admin.py | XZH950926/mydjango | a6f7ecceda251f20778124a81b3e71e98bab2a08 | [
"Apache-2.0"
] | null | null | null | django_shop/apps/goods/admin.py | XZH950926/mydjango | a6f7ecceda251f20778124a81b3e71e98bab2a08 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import Goods,GoodsCategory,IndexBanner,goodsImage
# Register your models here.
import xadmin
class GoodsAdmin(object):
#显示的列
list_display = ["name", "click_num", "sold_num", "fav_num", "goods_num", "market_price",
"shop_price", "goods_brief", "goods_de... | 31.125 | 95 | 0.73494 | 91 | 747 | 5.824176 | 0.516484 | 0.062264 | 0.101887 | 0.083019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116466 | 747 | 24 | 96 | 31.125 | 0.80303 | 0.064257 | 0 | 0 | 0 | 0 | 0.218705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.75 | 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 |
cfcd834d6ea64aa524c60c7d7071652b0919cf9f | 841 | py | Python | text/jython/delete/text_delete.py | ekzemplaro/data_base_language | e77030367ffc595f1fac8583f03f9a3ce5eb1611 | [
"MIT",
"Unlicense"
] | 3 | 2015-05-12T16:44:27.000Z | 2021-02-09T00:39:24.000Z | text/jython/delete/text_delete.py | ekzemplaro/data_base_language | e77030367ffc595f1fac8583f03f9a3ce5eb1611 | [
"MIT",
"Unlicense"
] | null | null | null | text/jython/delete/text_delete.py | ekzemplaro/data_base_language | e77030367ffc595f1fac8583f03f9a3ce5eb1611 | [
"MIT",
"Unlicense"
] | null | null | null | #! /opt/jython/bin/jython
# -*- coding: utf-8 -*-
#
# delete/text_delete.py
#
# Oct/12/2016
import sys
import string
#
# ---------------------------------------------------------------
sys.path.append ('/var/www/data_base/common/python_common')
sys.path.append ('/var/www/data_base/common/jython_common')
from jython... | 25.484848 | 65 | 0.558859 | 108 | 841 | 4.055556 | 0.398148 | 0.09589 | 0.136986 | 0.073059 | 0.378995 | 0.305936 | 0.150685 | 0.150685 | 0 | 0 | 0 | 0.011811 | 0.093936 | 841 | 32 | 66 | 26.28125 | 0.562992 | 0.328181 | 0 | 0 | 0 | 0 | 0.188748 | 0.141561 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cfcefa759c3f5ce32e52435272a71dc3bf5ec992 | 2,131 | py | Python | scripts/lib/FrequencyLib.py | ixent/qosa-snee | cc103a2f50262cad1927976a0b7f99554362581d | [
"BSD-3-Clause"
] | 1 | 2019-01-19T06:45:42.000Z | 2019-01-19T06:45:42.000Z | scripts/lib/FrequencyLib.py | ixent/qosa-snee | cc103a2f50262cad1927976a0b7f99554362581d | [
"BSD-3-Clause"
] | null | null | null | scripts/lib/FrequencyLib.py | ixent/qosa-snee | cc103a2f50262cad1927976a0b7f99554362581d | [
"BSD-3-Clause"
] | 3 | 2017-03-08T17:42:16.000Z | 2021-05-28T16:01:30.000Z | #Util library for frequency distributions held as dictionaries of key:count
from math import sqrt
def sortedReport(frequencies):
keys = frequencies.keys()
keys.sort()
for key in keys:
report(str(key)+" :" + str(frequencies[key]))
def showSumary(frequencies):
sortedReport(frequencies)
if len(frequencies) > 0:
... | 24.494253 | 128 | 0.678555 | 286 | 2,131 | 5.027972 | 0.265734 | 0.027816 | 0.022949 | 0.027121 | 0.267038 | 0.214882 | 0.081363 | 0.081363 | 0 | 0 | 0 | 0.025057 | 0.175974 | 2,131 | 87 | 129 | 24.494253 | 0.79385 | 0.228062 | 0 | 0.222222 | 0 | 0 | 0.019572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015873 | 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 |
cfd2edf5ff50645c75629e4365f43d1e293fde13 | 4,422 | py | Python | scheduled_bots/ontology/obographs_GO.py | turoger/scheduled-bots | 23fd30ccc242391151af3a1727f9fbf9dc95d433 | [
"MIT"
] | 6 | 2017-05-04T01:04:26.000Z | 2022-03-04T12:22:17.000Z | scheduled_bots/ontology/obographs_GO.py | turoger/scheduled-bots | 23fd30ccc242391151af3a1727f9fbf9dc95d433 | [
"MIT"
] | 55 | 2017-03-14T21:16:44.000Z | 2022-03-02T12:39:14.000Z | scheduled_bots/ontology/obographs_GO.py | turoger/scheduled-bots | 23fd30ccc242391151af3a1727f9fbf9dc95d433 | [
"MIT"
] | 13 | 2017-02-10T21:40:06.000Z | 2022-01-18T01:27:52.000Z | import argparse
import os
from scheduled_bots.ontology.obographs import Graph, Node
from wikidataintegrator import wdi_login, wdi_core, wdi_helpers
from scheduled_bots import PROPS
def ec_formatter(ec_number):
splits = ec_number.split('.')
if len(splits) < 4:
for x in range(4 - len(splits)):
... | 42.114286 | 118 | 0.635459 | 562 | 4,422 | 4.809609 | 0.329181 | 0.038476 | 0.08657 | 0.100999 | 0.217166 | 0.197928 | 0.137995 | 0.061043 | 0.042175 | 0.042175 | 0 | 0.031868 | 0.233605 | 4,422 | 104 | 119 | 42.519231 | 0.765713 | 0.026911 | 0 | 0.036145 | 0 | 0 | 0.278566 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036145 | false | 0.072289 | 0.084337 | 0 | 0.301205 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cfd5e26715871d45686f0f560a6656a9d8c56b78 | 2,345 | py | Python | coding-challenges/firecode/find-ranges.py | acfromspace/infinitygauntlet | 8d0d3c7229d6adabdfea6147a47ca5509c2946fd | [
"MIT"
] | 3 | 2018-12-28T21:11:46.000Z | 2021-04-03T05:19:56.000Z | coding-challenges/firecode/find-ranges.py | acfromspace/infinitygauntlet | 8d0d3c7229d6adabdfea6147a47ca5509c2946fd | [
"MIT"
] | 4 | 2019-07-11T21:52:55.000Z | 2020-07-21T20:18:51.000Z | coding-challenges/firecode/find-ranges.py | acfromspace/infinitygauntlet | 8d0d3c7229d6adabdfea6147a47ca5509c2946fd | [
"MIT"
] | null | null | null | def find_range(input_list, input_number):
search = []
number_range = []
for index in range(1, len(input_list)):
if input_list[index] == input_number:
search.append(index)
if input_list[index] > input_number:
break
number_range.append(search[0])
number_range.ap... | 27.588235 | 97 | 0.616205 | 323 | 2,345 | 4.198142 | 0.136223 | 0.159292 | 0.123894 | 0.176991 | 0.472714 | 0.436578 | 0.396755 | 0.325959 | 0.325959 | 0.262537 | 0 | 0.019197 | 0.266951 | 2,345 | 84 | 98 | 27.916667 | 0.769634 | 0.014925 | 0 | 0.125 | 0 | 0 | 0.046099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.125 | 0.125 | 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 |
cfd6926ca18e42f943c09a55ab1f816aa26d0595 | 1,080 | py | Python | scripts/contractInteraction/config.py | omerzam/Sovryn-smart-contracts | cbfcb13e81e0b4c01bbecc7155406988a285760a | [
"Apache-2.0"
] | 108 | 2020-08-30T17:52:32.000Z | 2022-02-26T00:00:15.000Z | scripts/contractInteraction/config.py | rajaroy43/Sovryn-smart-contracts | 51f85073dc81054a96c3ff84bc4873b5cbf93a72 | [
"Apache-2.0"
] | 181 | 2020-08-24T09:28:53.000Z | 2022-02-11T13:22:22.000Z | scripts/contractInteraction/config.py | swamp-thing-sovryn/Sovryn-smart-contracts | 4a5d6ffe37f14752d96790e776fe333961799e83 | [
"Apache-2.0"
] | 36 | 2020-09-10T07:53:41.000Z | 2022-03-26T00:35:30.000Z | from brownie import *
from brownie.network.contract import InterfaceContainer
import json
def loadConfig():
global contracts, acct
thisNetwork = network.show_active()
if thisNetwork == "development":
acct = accounts[0]
configFile = open('./scripts/contractInteraction/testnet_contracts.json... | 41.538462 | 82 | 0.692593 | 102 | 1,080 | 7.27451 | 0.343137 | 0.105121 | 0.141509 | 0.269542 | 0.640162 | 0.640162 | 0.640162 | 0.640162 | 0.549865 | 0.549865 | 0 | 0.001144 | 0.190741 | 1,080 | 25 | 83 | 43.2 | 0.847826 | 0 | 0 | 0.333333 | 0 | 0 | 0.348148 | 0.240741 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.166667 | 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 |
cfdec4e9dbe2f80fa2d6951744878734fde3415e | 2,374 | py | Python | code/network.py | alzaia/four_shapes_classifier | 50af24c7d84abd99e5ef43e2cab63cd38fa084ab | [
"MIT"
] | null | null | null | code/network.py | alzaia/four_shapes_classifier | 50af24c7d84abd99e5ef43e2cab63cd38fa084ab | [
"MIT"
] | null | null | null | code/network.py | alzaia/four_shapes_classifier | 50af24c7d84abd99e5ef43e2cab63cd38fa084ab | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Definition of the CNN architectures.
Baseline: very simple net with few params and no regularization.
Regularized: simple net combined with dropout and data augmentation.
"""
import numpy as np
import random
import tensorflow as tf
from tensorflow.keras.models import... | 33.43662 | 108 | 0.713142 | 287 | 2,374 | 5.790941 | 0.303136 | 0.078219 | 0.045728 | 0.055355 | 0.631167 | 0.617329 | 0.617329 | 0.611312 | 0.611312 | 0.611312 | 0 | 0.054162 | 0.160067 | 2,374 | 70 | 109 | 33.914286 | 0.779338 | 0.090143 | 0 | 0.418605 | 0 | 0 | 0.037192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046512 | false | 0 | 0.162791 | 0 | 0.255814 | 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 |
cfe20c84fe954124f9844fbf12b5316a42fc0237 | 12,998 | py | Python | orthoMcl.py | vetscience/Tools | 1f177c6671d2aeb374a64bb8db019331eec8a7c9 | [
"BSD-3-Clause"
] | null | null | null | orthoMcl.py | vetscience/Tools | 1f177c6671d2aeb374a64bb8db019331eec8a7c9 | [
"BSD-3-Clause"
] | null | null | null | orthoMcl.py | vetscience/Tools | 1f177c6671d2aeb374a64bb8db019331eec8a7c9 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
'''
Oct 10, 2017: Pasi Korhonen, The University of Melbourne
Simplifies running orthoMCL with a wrapper and pre-checks the known
formatting issues with FASTA headers to avoid failure in later stages of the run.
'''
import os, sys, optparse, getpass
from multiprocessing import Process, Pipe
fr... | 46.421429 | 211 | 0.597477 | 1,628 | 12,998 | 4.753686 | 0.245086 | 0.034888 | 0.025326 | 0.029461 | 0.26192 | 0.208166 | 0.154671 | 0.123013 | 0.119137 | 0.098462 | 0 | 0.012585 | 0.211417 | 12,998 | 279 | 212 | 46.587814 | 0.742439 | 0.039391 | 0 | 0.173913 | 0 | 0.057971 | 0.382534 | 0.045291 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028986 | 0.014493 | null | null | 0.091787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cfe5826a514e08701bfec3b5749b4f1646428eac | 2,785 | py | Python | aws_interface/cloud/auth/register.py | hubaimaster/aws-interface | 162dd056546d58b6eb29afcae1c3c2d78e4309b2 | [
"Apache-2.0"
] | 53 | 2018-10-02T05:58:54.000Z | 2020-09-15T08:58:26.000Z | aws_interface/cloud/auth/register.py | hubaimaster/aws-interface | 162dd056546d58b6eb29afcae1c3c2d78e4309b2 | [
"Apache-2.0"
] | 52 | 2018-09-26T05:16:09.000Z | 2022-03-11T23:51:14.000Z | aws_interface/cloud/auth/register.py | hubaimaster/aws-interface | 162dd056546d58b6eb29afcae1c3c2d78e4309b2 | [
"Apache-2.0"
] | 10 | 2019-03-11T16:35:14.000Z | 2019-10-23T08:03:54.000Z |
from cloud.crypto import *
from cloud.auth.get_login_method import do as get_login_method
from cloud.permission import Permission, NeedPermission
from cloud.auth.get_login_method import match_policy
from cloud.message import error
import string
# Define the input output format of the function.
# This information is u... | 29.946237 | 103 | 0.594255 | 329 | 2,785 | 4.869301 | 0.306991 | 0.048065 | 0.034956 | 0.014981 | 0.080524 | 0.080524 | 0.080524 | 0.039326 | 0 | 0 | 0 | 0.001496 | 0.279713 | 2,785 | 92 | 104 | 30.271739 | 0.797109 | 0.044883 | 0 | 0.076923 | 0 | 0 | 0.149153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012821 | false | 0.141026 | 0.076923 | 0 | 0.141026 | 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 |
cfea40bf803b0f8fb0b4c961a04e62b98ba95639 | 3,989 | py | Python | service/user.py | kittolau/selepy | b1efaa309fb5c43f7b95de17f1d891d5858f36f0 | [
"MIT"
] | null | null | null | service/user.py | kittolau/selepy | b1efaa309fb5c43f7b95de17f1d891d5858f36f0 | [
"MIT"
] | null | null | null | service/user.py | kittolau/selepy | b1efaa309fb5c43f7b95de17f1d891d5858f36f0 | [
"MIT"
] | null | null | null | from service.logger_manager import logger
class Map(dict):
"""
Example:
m = Map({'first_name': 'Eduardo'}, last_name='Pool', age=24, sports=['Soccer'])
"""
def __init__(self, *args, **kwargs):
super(Map, self).__init__(*args, **kwargs)
for arg in args:
if isinstance(arg,... | 30.219697 | 103 | 0.552269 | 425 | 3,989 | 5.049412 | 0.232941 | 0.029357 | 0.026561 | 0.01398 | 0.514911 | 0.469711 | 0.446412 | 0.405405 | 0.405405 | 0.405405 | 0 | 0.003065 | 0.345701 | 3,989 | 131 | 104 | 30.450382 | 0.819157 | 0.044372 | 0 | 0.482759 | 0 | 0.011494 | 0.105487 | 0.016782 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0.091954 | 0.011494 | 0.022989 | 0.287356 | 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 |
cfeda25dd514cde591f624eb392a5227074c9f65 | 6,162 | py | Python | App/gui/server_widget.py | Wizard-collab/wizard | c2ec623fe011626716493c232b895fb0513f68ff | [
"MIT"
] | null | null | null | App/gui/server_widget.py | Wizard-collab/wizard | c2ec623fe011626716493c232b895fb0513f68ff | [
"MIT"
] | null | null | null | App/gui/server_widget.py | Wizard-collab/wizard | c2ec623fe011626716493c232b895fb0513f68ff | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\conta\Documents\script\Wizard\App\work\ui_files\server_widget.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(o... | 53.582609 | 128 | 0.746673 | 660 | 6,162 | 6.742424 | 0.193939 | 0.07191 | 0.017978 | 0.022921 | 0.412135 | 0.327191 | 0.212584 | 0.172135 | 0.12809 | 0.12809 | 0 | 0.013838 | 0.155631 | 6,162 | 114 | 129 | 54.052632 | 0.841438 | 0.039598 | 0 | 0.080808 | 1 | 0 | 0.055659 | 0.016241 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020202 | false | 0 | 0.020202 | 0 | 0.050505 | 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 |
320a2dd26385e24b0634d73dcae1e8a83c74b5b8 | 867 | py | Python | recaman_test.py | sfrebel/recamansvg | 6fd4296e992e1b26a6268d01b3ddada27ec8e227 | [
"MIT"
] | null | null | null | recaman_test.py | sfrebel/recamansvg | 6fd4296e992e1b26a6268d01b3ddada27ec8e227 | [
"MIT"
] | null | null | null | recaman_test.py | sfrebel/recamansvg | 6fd4296e992e1b26a6268d01b3ddada27ec8e227 | [
"MIT"
] | null | null | null | import pytest
from recaman import calculate_racaman
def test_uniqeness():
sequence = calculate_racaman(24)
for elem in sequence:
assert sequence.count(elem) == 1
# sequences longer that 24 can contain duplicates (42 for example)
def test_sequencelength():
sequence = calculate_racaman(200)
... | 45.631579 | 330 | 0.656286 | 138 | 867 | 4.065217 | 0.695652 | 0.142603 | 0.171123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230657 | 0.209919 | 867 | 19 | 331 | 45.631579 | 0.588321 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266667 | 1 | 0.2 | false | 0 | 0.133333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
320bf4ae90c2ba0376ab97a2d3681ed57ff9538f | 2,247 | py | Python | Code/grace/source.py | AndreasMadsen/grace | bf472d30a2fac76145d3f68e819c92da4a1970ba | [
"MIT"
] | 1 | 2016-05-17T22:52:19.000Z | 2016-05-17T22:52:19.000Z | Code/grace/source.py | AndreasMadsen/grace | bf472d30a2fac76145d3f68e819c92da4a1970ba | [
"MIT"
] | null | null | null | Code/grace/source.py | AndreasMadsen/grace | bf472d30a2fac76145d3f68e819c92da4a1970ba | [
"MIT"
] | null | null | null |
__all__ = ["filelist", "getgrid", "getdata", "getposition"]
import os
import os.path as path
import csv
import datetime
import numpy as np
# Resolve the absolute directory path the grids directory
grids = path.join(path.dirname(path.realpath(__file__)), 'grids')
# Generate a list of all names for the datafiles in t... | 29.181818 | 91 | 0.692479 | 347 | 2,247 | 4.43804 | 0.365994 | 0.00974 | 0.022078 | 0.027273 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063001 | 0.166444 | 2,247 | 76 | 92 | 29.565789 | 0.75921 | 0.113485 | 0 | 0 | 0 | 0 | 0.106574 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | null | null | 0 | 0.142857 | null | null | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
320ec20771522461f74518c76380b337b97785bd | 4,326 | py | Python | boot_django.py | Volkova-Natalia/django_rest_auth_email_confirm_reset | 781e63fd97606e48d69acf84fc6bb011e47b10ca | [
"MIT"
] | null | null | null | boot_django.py | Volkova-Natalia/django_rest_auth_email_confirm_reset | 781e63fd97606e48d69acf84fc6bb011e47b10ca | [
"MIT"
] | 1 | 2021-02-26T16:58:10.000Z | 2021-03-24T10:12:57.000Z | boot_django.py | Volkova-Natalia/django_rest_auth_email_confirm_reset | 781e63fd97606e48d69acf84fc6bb011e47b10ca | [
"MIT"
] | null | null | null | # This file sets up and configures Django. It's used by scripts that need to
# execute as if running in a Django server.
import os
import django
from django.conf import settings
BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "django_rest_auth_email_confirm_reset"))
FRONTEND_SCHEME = 'http'
FRONTE... | 37.617391 | 107 | 0.524965 | 361 | 4,326 | 6.055402 | 0.398892 | 0.089204 | 0.054437 | 0.034767 | 0.199909 | 0.168344 | 0 | 0 | 0 | 0 | 0 | 0.007037 | 0.375867 | 4,326 | 114 | 108 | 37.947368 | 0.802593 | 0.034674 | 0 | 0.069307 | 0 | 0 | 0.350036 | 0.284344 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009901 | false | 0.059406 | 0.029703 | 0 | 0.039604 | 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 |
3214c236cfd76b69da9dac32ba29aab399bc631d | 1,089 | py | Python | Prep/ProgrammingPrac/temp.py | talk2sunil83/UpgradLearning | 70c4f993c68ce5030e9df0edd15004bbb9fc71e7 | [
"Apache-2.0"
] | null | null | null | Prep/ProgrammingPrac/temp.py | talk2sunil83/UpgradLearning | 70c4f993c68ce5030e9df0edd15004bbb9fc71e7 | [
"Apache-2.0"
] | null | null | null | Prep/ProgrammingPrac/temp.py | talk2sunil83/UpgradLearning | 70c4f993c68ce5030e9df0edd15004bbb9fc71e7 | [
"Apache-2.0"
] | null | null | null | # %%
from typing import Sequence
from numba import njit
# %%
def fib(n: int):
if(n <= 2):
return 1
return fib(n-1) + fib(n-2)
# print(fib(3))
# print(fib(5))
# print(fib(8))
def fib_memo(n: int, memo={1: 1, 2: 1}):
if n >= 1:
if (n in memo):
return memo[n]
memo[n] =... | 16.5 | 69 | 0.552801 | 177 | 1,089 | 3.327684 | 0.237288 | 0.050934 | 0.040747 | 0.076401 | 0.152801 | 0.152801 | 0.108659 | 0.108659 | 0 | 0 | 0 | 0.038945 | 0.269054 | 1,089 | 65 | 70 | 16.753846 | 0.701005 | 0.103765 | 0 | 0.212121 | 0 | 0 | 0.020747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.090909 | 0.060606 | 0 | 0.484848 | 0.121212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3214e2eb6cd5539c1b94592d525b0d9f035b40ee | 4,076 | py | Python | build_site_col.py | griffij/eq_hazmap_tests | db9d6202937b08b543758b8e190566116dbcf83b | [
"Apache-2.0"
] | 1 | 2021-12-03T16:55:03.000Z | 2021-12-03T16:55:03.000Z | build_site_col.py | griffij/eq_hazmap_tests | db9d6202937b08b543758b8e190566116dbcf83b | [
"Apache-2.0"
] | null | null | null | build_site_col.py | griffij/eq_hazmap_tests | db9d6202937b08b543758b8e190566116dbcf83b | [
"Apache-2.0"
] | 1 | 2019-10-12T09:55:31.000Z | 2019-10-12T09:55:31.000Z | """Test building site collection at interpolated points and
writing to nrml format
Can run in parallel in order to deal with large site collections
Jonathan Griffin
Geoscience Australia
"""
import os, sys
import numpy as np
from time import localtime, strftime, gmtime
import string
import pypar
from get_site_model im... | 38.45283 | 109 | 0.592002 | 563 | 4,076 | 4.078153 | 0.325044 | 0.039199 | 0.027439 | 0.021777 | 0.169425 | 0.087544 | 0.066202 | 0 | 0 | 0 | 0 | 0.017374 | 0.265702 | 4,076 | 105 | 110 | 38.819048 | 0.749749 | 0.195044 | 0 | 0.028169 | 0 | 0.014085 | 0.183502 | 0.081145 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098592 | null | null | 0.084507 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
321992a94253abb82059e2a323258aab1f3347b2 | 303 | py | Python | makeadditions/transform/llvm/__init__.py | hutoTUM/MakeAdditions | 85fbe80c16d24abdddeee2d737f046a5bd1a9604 | [
"Apache-2.0"
] | null | null | null | makeadditions/transform/llvm/__init__.py | hutoTUM/MakeAdditions | 85fbe80c16d24abdddeee2d737f046a5bd1a9604 | [
"Apache-2.0"
] | null | null | null | makeadditions/transform/llvm/__init__.py | hutoTUM/MakeAdditions | 85fbe80c16d24abdddeee2d737f046a5bd1a9604 | [
"Apache-2.0"
] | null | null | null | """
Import all modules from this directory
Needed for automatic transformer registration
"""
from os.path import dirname, basename, isfile, join
from glob import glob
__all__ = [basename(f)[:-3] for f in glob(join(dirname(__file__), "*.py"))
if isfile(f) and not f.endswith("__init__.py")]
| 27.545455 | 74 | 0.709571 | 44 | 303 | 4.613636 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003953 | 0.165017 | 303 | 10 | 75 | 30.3 | 0.798419 | 0.277228 | 0 | 0 | 0 | 0 | 0.07109 | 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 |
321f12dc19ba5ef4fca1084a45b6880018f7d939 | 672 | py | Python | lintcode/41.3.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:49.000Z | 2021-01-08T06:57:49.000Z | lintcode/41.3.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | null | null | null | lintcode/41.3.py | jianershi/algorithm | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | [
"MIT"
] | 1 | 2021-01-08T06:57:52.000Z | 2021-01-08T06:57:52.000Z | """
41. Maximum Subarray
https://www.lintcode.com/problem/maximum-subarray/description?_from=ladder&&fromId=37
continuously check prefix sum
o(n)
"""
import sys
class Solution:
"""
@param nums: A list of integers
@return: A integer indicate the sum of max subarray
"""
def maxSubArray(self, nums):... | 23.172414 | 85 | 0.578869 | 92 | 672 | 4.086957 | 0.554348 | 0.06383 | 0.053191 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01559 | 0.331845 | 672 | 29 | 86 | 23.172414 | 0.821826 | 0.370536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32208b5b3e3229de32c510c6a52301a069b4db29 | 691 | py | Python | Lessons/Lesson2.py | MatthewDShen/ComputingInCivil | 681bc684fa4bc3413a9e8e26ad784c2b5e7a8d4a | [
"MIT"
] | null | null | null | Lessons/Lesson2.py | MatthewDShen/ComputingInCivil | 681bc684fa4bc3413a9e8e26ad784c2b5e7a8d4a | [
"MIT"
] | null | null | null | Lessons/Lesson2.py | MatthewDShen/ComputingInCivil | 681bc684fa4bc3413a9e8e26ad784c2b5e7a8d4a | [
"MIT"
] | null | null | null |
def Sets():
var1 = {3,2.1,'red',2.1}
#gets rid of duplicates
print(var1)
def Dictionaries():
var9 = {'name': 'Julia', 'age': 25, 'hobbies': ['ski', 'music', 'blog']}
var9['name'] #output is Julia
def Index():
var1 = [1,2,3,4,5,6]
print(var1[2]) #shows the 2nd value in the list
pr... | 16.452381 | 76 | 0.529667 | 99 | 691 | 3.69697 | 0.575758 | 0.07377 | 0.054645 | 0.021858 | 0.027322 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049801 | 0.273517 | 691 | 41 | 77 | 16.853659 | 0.679283 | 0.143271 | 0 | 0 | 0 | 0 | 0.167521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0 | 0 | 0.210526 | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3221b2aba049bc78b354856383f7c8174eb371aa | 7,089 | py | Python | reel_miami/models.py | deadlyraptor/reel-miami | b32f3b7886dd029199480ec7d84aa5cde8c9d2e6 | [
"Apache-2.0"
] | null | null | null | reel_miami/models.py | deadlyraptor/reel-miami | b32f3b7886dd029199480ec7d84aa5cde8c9d2e6 | [
"Apache-2.0"
] | 14 | 2019-05-19T22:57:04.000Z | 2022-01-13T01:15:41.000Z | reel_miami/models.py | deadlyraptor/reel-miami | b32f3b7886dd029199480ec7d84aa5cde8c9d2e6 | [
"Apache-2.0"
] | null | null | null | # models.py
from flask import abort, redirect, request, url_for
from flask_admin import form
from flask_admin.contrib.sqla import ModelView
from flask_security import current_user, RoleMixin, UserMixin
from wtforms import SelectField, TextAreaField
from reel_miami import db
# Database models
class Venue(db.Model):... | 32.369863 | 79 | 0.567499 | 768 | 7,089 | 5.042969 | 0.223958 | 0.066099 | 0.077459 | 0.086754 | 0.539375 | 0.502453 | 0.422928 | 0.35244 | 0.327653 | 0.327653 | 0 | 0.010335 | 0.317534 | 7,089 | 218 | 80 | 32.518349 | 0.790203 | 0.051065 | 0 | 0.333333 | 0 | 0 | 0.123993 | 0.016119 | 0 | 0 | 0 | 0 | 0 | 1 | 0.099291 | false | 0.014184 | 0.042553 | 0.078014 | 0.631206 | 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 |
5c4efd6c65523001888997a2161ebe63ffc102a4 | 1,286 | py | Python | vis_3d/fusion_3d.py | JHZ-2326/3d_detection_kit | 25a0d7db1441862bc7d7b6b8616562d0b8cd6247 | [
"MIT"
] | 23 | 2019-03-26T14:26:05.000Z | 2022-03-25T03:57:41.000Z | vis_3d/fusion_3d.py | JHZ-2326/3d_detection_kit | 25a0d7db1441862bc7d7b6b8616562d0b8cd6247 | [
"MIT"
] | 1 | 2021-11-21T03:03:18.000Z | 2021-11-21T03:03:18.000Z | vis_3d/fusion_3d.py | JHZ-2326/3d_detection_kit | 25a0d7db1441862bc7d7b6b8616562d0b8cd6247 | [
"MIT"
] | 6 | 2019-10-28T12:09:22.000Z | 2021-07-08T16:53:02.000Z |
"""
converting between lidar points and image
"""
import numpy as np
class LidarCamCalibration(object):
"""
3x4 p0-p3 Camera P matrix. Contains extrinsic
and intrinsic parameters.
3x3 r0_rect Rectification matrix, required to transform points
... | 28.577778 | 93 | 0.49689 | 137 | 1,286 | 4.423358 | 0.467153 | 0.049505 | 0.085809 | 0.074257 | 0.184818 | 0.184818 | 0.184818 | 0.184818 | 0.184818 | 0.184818 | 0 | 0.033291 | 0.392691 | 1,286 | 45 | 94 | 28.577778 | 0.742638 | 0.540435 | 0 | 0 | 0 | 0 | 0.133072 | 0.043053 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.066667 | 0.066667 | 0.066667 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5c53b7c345f2605ec76bc381982f17ccf6f9c18f | 626 | py | Python | server/toolz_swap_app/migrations/0004_auto_20211211_0853.py | minerva-university/cs162-toolz-swap-service | d514d9b04118f26479cba71497c12dfa824c7c42 | [
"MIT"
] | null | null | null | server/toolz_swap_app/migrations/0004_auto_20211211_0853.py | minerva-university/cs162-toolz-swap-service | d514d9b04118f26479cba71497c12dfa824c7c42 | [
"MIT"
] | null | null | null | server/toolz_swap_app/migrations/0004_auto_20211211_0853.py | minerva-university/cs162-toolz-swap-service | d514d9b04118f26479cba71497c12dfa824c7c42 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.9 on 2021-12-11 16:53
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('toolz_swap_app', '0003_auto_20211209_0903'),
]
operations = [
migrations.RemoveField(
model_name='... | 26.083333 | 141 | 0.634185 | 64 | 626 | 6.078125 | 0.6875 | 0.077121 | 0.154242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070513 | 0.252396 | 626 | 23 | 142 | 27.217391 | 0.760684 | 0.071885 | 0 | 0.117647 | 1 | 0 | 0.120898 | 0.039724 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 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 |
5c566948d7a8bc9eabe39093226731019d62457a | 4,265 | py | Python | tv-script-generation/script.py | dmh2000/deep-learning | 734716cc1b78f3bdb279078d80f053775cf656c3 | [
"MIT"
] | null | null | null | tv-script-generation/script.py | dmh2000/deep-learning | 734716cc1b78f3bdb279078d80f053775cf656c3 | [
"MIT"
] | null | null | null | tv-script-generation/script.py | dmh2000/deep-learning | 734716cc1b78f3bdb279078d80f053775cf656c3 | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
import helper
import problem_unittests as tests
# Number of Epochs
num_epochs = 2
# Batch Size
batch_size = 64
# RNN Size
rnn_size = 256
# Embedding Dimension Size
embed_dim = 300
# Sequence Length
seq_length = 100
# Learning Rate
learning_rate = 0.001
# Show stats for every ... | 32.067669 | 87 | 0.559672 | 489 | 4,265 | 4.648262 | 0.323108 | 0.048394 | 0.026397 | 0.047514 | 0.191377 | 0.161021 | 0.115266 | 0.090629 | 0.090629 | 0.090629 | 0 | 0.007799 | 0.158265 | 4,265 | 132 | 88 | 32.310606 | 0.625348 | 0.395076 | 0 | 0 | 0 | 0 | 0.03714 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.04 | false | 0 | 0.1 | 0 | 0.18 | 0.02 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5c56e041e2ff0886f862e0e7a2392b5542023ca3 | 1,233 | py | Python | tests/djangokeys/core/djangokeys/test_secret_key.py | alanverresen/django-keys | bd99a9f059af8b84b141ab8bf9a5bc5730a6ba38 | [
"MIT"
] | null | null | null | tests/djangokeys/core/djangokeys/test_secret_key.py | alanverresen/django-keys | bd99a9f059af8b84b141ab8bf9a5bc5730a6ba38 | [
"MIT"
] | null | null | null | tests/djangokeys/core/djangokeys/test_secret_key.py | alanverresen/django-keys | bd99a9f059af8b84b141ab8bf9a5bc5730a6ba38 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Contains tests for accessing env vars as Django's secret key.
import pytest
from djangokeys.core.djangokeys import DjangoKeys
from djangokeys.exceptions import EnvironmentVariableNotFound
from djangokeys.exceptions import ValueIsEmpty
from tests.files import EMPTY_EN... | 31.615385 | 67 | 0.741281 | 162 | 1,233 | 5.358025 | 0.382716 | 0.114055 | 0.0553 | 0.051843 | 0.380184 | 0.232719 | 0.232719 | 0.232719 | 0.135945 | 0.135945 | 0 | 0.011742 | 0.171127 | 1,233 | 38 | 68 | 32.447368 | 0.837573 | 0.237632 | 0 | 0.157895 | 0 | 0 | 0.080522 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.157895 | false | 0 | 0.315789 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
5c61f8433b210f4148f2ff9a02e477c1ce367a18 | 5,810 | py | Python | test/python/quantum_info/operators/test_measures.py | EnriqueL8/qiskit-terra | 08b801f1f8598c4e44680b4a75c232ed92db0262 | [
"Apache-2.0"
] | 2 | 2019-06-28T19:58:42.000Z | 2019-07-26T05:04:02.000Z | test/python/quantum_info/operators/test_measures.py | EnriqueL8/qiskit-terra | 08b801f1f8598c4e44680b4a75c232ed92db0262 | [
"Apache-2.0"
] | 3 | 2018-11-13T17:33:37.000Z | 2018-12-03T09:35:00.000Z | test/python/quantum_info/operators/test_measures.py | EnriqueL8/qiskit-terra | 08b801f1f8598c4e44680b4a75c232ed92db0262 | [
"Apache-2.0"
] | 2 | 2017-12-03T15:48:14.000Z | 2018-03-11T13:08:03.000Z | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2018.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any... | 38.223684 | 78 | 0.624613 | 760 | 5,810 | 4.588158 | 0.168421 | 0.041296 | 0.05965 | 0.091769 | 0.787783 | 0.749068 | 0.681101 | 0.665042 | 0.658159 | 0.591913 | 0 | 0.027758 | 0.274527 | 5,810 | 151 | 79 | 38.476821 | 0.799526 | 0.206368 | 0 | 0.411111 | 0 | 0 | 0.004402 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 1 | 0.066667 | false | 0 | 0.077778 | 0 | 0.155556 | 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 |
5c6c01f486b1d9d002bbeea5e06b2b4e36ec951a | 1,732 | py | Python | pylark/api_service_bitable_table_batch_create.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | 7 | 2021-08-18T00:42:05.000Z | 2022-03-14T09:49:15.000Z | pylark/api_service_bitable_table_batch_create.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | null | null | null | pylark/api_service_bitable_table_batch_create.py | chyroc/pylark | a54cce6b814935fd3c72668b262b54c8ee461484 | [
"Apache-2.0"
] | 1 | 2022-03-14T09:49:20.000Z | 2022-03-14T09:49:20.000Z | # Code generated by lark_sdk_gen. DO NOT EDIT.
from pylark.lark_request import RawRequestReq, _new_method_option
from pylark import lark_type, lark_type_sheet, lark_type_approval
import attr
import typing
import io
@attr.s
class BatchCreateBitableTableReqTable(object):
name: str = attr.ib(
default="", me... | 35.346939 | 162 | 0.68418 | 219 | 1,732 | 5.187215 | 0.406393 | 0.03169 | 0.066021 | 0.050176 | 0.132923 | 0.126761 | 0.126761 | 0.072183 | 0.072183 | 0 | 0 | 0.003526 | 0.181293 | 1,732 | 48 | 163 | 36.083333 | 0.797602 | 0.166859 | 0 | 0.078947 | 1 | 0.026316 | 0.159471 | 0.016017 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.131579 | 0.026316 | 0.394737 | 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 |
5c6dccac151e18678f1f94323948c889fffc7ba6 | 2,642 | py | Python | app/gbi_server/model/log.py | omniscale/gbi-server | d67c003da98b77ffa66cf014ce9f228e75343563 | [
"Apache-2.0"
] | 2 | 2015-11-05T07:13:49.000Z | 2015-12-29T12:36:27.000Z | app/gbi_server/model/log.py | omniscale/gbi-server | d67c003da98b77ffa66cf014ce9f228e75343563 | [
"Apache-2.0"
] | null | null | null | app/gbi_server/model/log.py | omniscale/gbi-server | d67c003da98b77ffa66cf014ce9f228e75343563 | [
"Apache-2.0"
] | 1 | 2020-11-09T19:03:07.000Z | 2020-11-09T19:03:07.000Z | # This file is part of the GBI project.
# Copyright (C) 2013 Omniscale GmbH & Co. KG <http://omniscale.com>
#
# 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/licens... | 33.871795 | 112 | 0.713096 | 368 | 2,642 | 5.027174 | 0.38587 | 0.086486 | 0.097297 | 0.073514 | 0.260541 | 0.245405 | 0.210811 | 0.194054 | 0.176216 | 0.176216 | 0 | 0.009145 | 0.172218 | 2,642 | 77 | 113 | 34.311688 | 0.836763 | 0.236185 | 0 | 0.113636 | 0 | 0 | 0.099401 | 0.046454 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.159091 | 0 | 0.886364 | 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 |
5c72984cc0237e2114f960b95b05ceb32adfd849 | 2,574 | py | Python | lib/WindowParent.py | aganders3/python-0.9.1 | 5e62c7310e123cf5684a1db9d7eac745e7d713cb | [
"FSFAP"
] | 116 | 2021-02-16T22:09:04.000Z | 2022-03-16T23:29:24.000Z | lib/WindowParent.py | aganders3/python-0.9.1 | 5e62c7310e123cf5684a1db9d7eac745e7d713cb | [
"FSFAP"
] | 1 | 2021-02-18T08:34:11.000Z | 2021-02-18T08:34:11.000Z | lib/WindowParent.py | aganders3/python-0.9.1 | 5e62c7310e123cf5684a1db9d7eac745e7d713cb | [
"FSFAP"
] | 24 | 2021-02-17T07:17:14.000Z | 2022-02-25T09:24:05.000Z | # A 'WindowParent' is the only module that uses real stdwin functionality.
# It is the root of the tree.
# It should have exactly one child when realized.
import stdwin
from stdwinevents import *
from TransParent import ManageOneChild
Error = 'WindowParent.Error' # Exception
class WindowParent() = ManageOneChild():... | 25.235294 | 74 | 0.683761 | 391 | 2,574 | 4.42711 | 0.240409 | 0.076834 | 0.038128 | 0.034662 | 0.280185 | 0.205084 | 0.147314 | 0.10052 | 0.056615 | 0.056615 | 0 | 0.015737 | 0.185315 | 2,574 | 101 | 75 | 25.485149 | 0.809728 | 0.12704 | 0 | 0.223684 | 0 | 0 | 0.041404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039474 | 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 |
5c7450268345efad8e7f26045d5c6f1b9574f2e8 | 3,681 | py | Python | ribosome/rpc/args.py | tek/ribosome-py | 8bd22e549ddff1ee893d6e3a0bfba123a09e96c6 | [
"MIT"
] | null | null | null | ribosome/rpc/args.py | tek/ribosome-py | 8bd22e549ddff1ee893d6e3a0bfba123a09e96c6 | [
"MIT"
] | null | null | null | ribosome/rpc/args.py | tek/ribosome-py | 8bd22e549ddff1ee893d6e3a0bfba123a09e96c6 | [
"MIT"
] | null | null | null | import inspect
from typing import Callable, Any, Tuple, get_type_hints
from amino import Maybe, _, Just, Boolean, Lists, Nothing, Either, L, List, Nil, Map, Left
from amino.dat import Dat
from amino.state import StateT
from amino.util.tpe import first_type_arg, type_arg, is_subclass
from ribosome.rpc.data.nargs impor... | 32.575221 | 117 | 0.62157 | 481 | 3,681 | 4.594595 | 0.218295 | 0.036652 | 0.038009 | 0.034389 | 0.10362 | 0.088688 | 0.024434 | 0 | 0 | 0 | 0 | 0.000727 | 0.252377 | 3,681 | 112 | 118 | 32.866071 | 0.802326 | 0 | 0 | 0.091954 | 0 | 0.011494 | 0.07009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16092 | false | 0 | 0.08046 | 0.103448 | 0.402299 | 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 |
5c77f80db90850b64454fbbacd82fe025c333735 | 361 | py | Python | setup.py | tarrow/queryCitefile | 8d7407fc7d2861367089821d212a8b5248f5b7ed | [
"MIT"
] | null | null | null | setup.py | tarrow/queryCitefile | 8d7407fc7d2861367089821d212a8b5248f5b7ed | [
"MIT"
] | null | null | null | setup.py | tarrow/queryCitefile | 8d7407fc7d2861367089821d212a8b5248f5b7ed | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(name='queryCitefile',
install_requires=[],
version='0.1',
description='Simple tool to process mwcites output',
author='Thomas Arrow',
author_email='thomasarrow@gmail.com',
url='https://github.com/tarrow/queryCiteFile',
... | 25.785714 | 58 | 0.66482 | 41 | 361 | 5.780488 | 0.878049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006897 | 0.196676 | 361 | 13 | 59 | 27.769231 | 0.810345 | 0.055402 | 0 | 0 | 0 | 0 | 0.405882 | 0.061765 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c8273858e40c212029702a997fcb691e159d46e | 23,895 | py | Python | cube5.py | Horia73/MultiCuberX | 6087e2732c1d28c1d2244441ebb687b907ce86ac | [
"MIT"
] | null | null | null | cube5.py | Horia73/MultiCuberX | 6087e2732c1d28c1d2244441ebb687b907ce86ac | [
"MIT"
] | null | null | null | cube5.py | Horia73/MultiCuberX | 6087e2732c1d28c1d2244441ebb687b907ce86ac | [
"MIT"
] | null | null | null | from subprocess import check_output
from time import sleep
import logging
import imutils
import serial
import time
import cv2
global Down, elevator1, elevator2, Up, FlUp, FlDown, coord, l,start,i
start = True
i = 0
l = []
coord = []
log = logging.getLogger(__name__)
Down=True
elevator1=False
medium1=False
medium2=F... | 22.023041 | 144 | 0.389286 | 2,490 | 23,895 | 3.73253 | 0.093173 | 0.030127 | 0.05057 | 0.041317 | 0.684097 | 0.618141 | 0.543361 | 0.491715 | 0.433828 | 0.415752 | 0 | 0.045963 | 0.472819 | 23,895 | 1,084 | 145 | 22.043358 | 0.691831 | 0 | 0 | 0.737089 | 0 | 0.003521 | 0.056832 | 0.011216 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03169 | false | 0.00939 | 0.008216 | 0 | 0.039906 | 0.029343 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c84dfddaafa561bb2bc29f5c3a2a12daa0c0b83 | 1,159 | py | Python | addons/source-python/plugins/warcraft/extensions/levelbank/__init__.py | ThomasVieth/WCS-Remastered | 28aceac73abef8b8839a17680cc046bf4c078169 | [
"MIT"
] | null | null | null | addons/source-python/plugins/warcraft/extensions/levelbank/__init__.py | ThomasVieth/WCS-Remastered | 28aceac73abef8b8839a17680cc046bf4c078169 | [
"MIT"
] | null | null | null | addons/source-python/plugins/warcraft/extensions/levelbank/__init__.py | ThomasVieth/WCS-Remastered | 28aceac73abef8b8839a17680cc046bf4c078169 | [
"MIT"
] | null | null | null | """
"""
## source.python imports
from commands import CommandReturn
from commands.client import ClientCommand
from commands.say import SayCommand
from listeners import OnClientFullyConnect
## warcraft.package imports
from warcraft.database import session
from warcraft.players import player_dict
## extension impor... | 24.659574 | 102 | 0.765315 | 131 | 1,159 | 6.519084 | 0.442748 | 0.070258 | 0.051522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142364 | 1,159 | 47 | 103 | 24.659574 | 0.859155 | 0.115617 | 0 | 0 | 0 | 0 | 0.045771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.346154 | 0 | 0.461538 | 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 |
5c8e910d8e244e252ade829940da3d89b66b6fab | 12,815 | py | Python | michelson_kernel/docs.py | baking-bad/imichelson | 709a6b3fa83c3e3f80869aade459176d02631e39 | [
"MIT"
] | 16 | 2020-03-09T15:51:55.000Z | 2021-05-16T03:55:41.000Z | michelson_kernel/docs.py | baking-bad/imichelson | 709a6b3fa83c3e3f80869aade459176d02631e39 | [
"MIT"
] | 7 | 2020-03-18T18:12:07.000Z | 2020-08-13T12:17:00.000Z | michelson_kernel/docs.py | baking-bad/imichelson | 709a6b3fa83c3e3f80869aade459176d02631e39 | [
"MIT"
] | 7 | 2020-03-09T18:25:39.000Z | 2022-03-20T19:06:15.000Z | docs = {
'ABS': 'ABS\nABS :: int : A => nat : A\nObtain the absolute value of an integer',
'ADD': 'ADD\n'
'ADD :: nat : nat : A => nat : A\n'
'ADD :: nat : int : A => int : A\n'
'ADD :: int : nat : A => int : A\n'
'ADD :: int : int : A => int : A\n'
'ADD ::... | 66.744792 | 120 | 0.564105 | 1,911 | 12,815 | 3.747253 | 0.169021 | 0.016757 | 0.022623 | 0.01955 | 0.255411 | 0.179863 | 0.110878 | 0.099707 | 0.076107 | 0.064795 | 0 | 0.015876 | 0.28732 | 12,815 | 191 | 121 | 67.094241 | 0.768203 | 0 | 0 | 0 | 0 | 0.151832 | 0.794694 | 0.002029 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c8fa254429406e251a0801940126bfc55821400 | 759 | py | Python | primer_moulo/models/models.py | Ghabrielince/demoodoo_20200719 | a52369f3cac6e61905b0a4ea2c7f1209813c6a43 | [
"MIT"
] | null | null | null | primer_moulo/models/models.py | Ghabrielince/demoodoo_20200719 | a52369f3cac6e61905b0a4ea2c7f1209813c6a43 | [
"MIT"
] | 1 | 2020-07-19T16:02:36.000Z | 2020-07-19T16:02:36.000Z | primer_moulo/models/models.py | Ghabrielince/demoodoo_20200719 | a52369f3cac6e61905b0a4ea2c7f1209813c6a43 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from odoo import models, fields
class MascotasMascotas(models.Model):
_name = "mascotas.mascotas"
# Lista de campos de la tabla.
name = fields.Char(string="Nombre")
tipo_id = fields.Many2one("mascotas.tipos", string="Tipo")
raza_id = fields.Many2one("mascotas.razas", stri... | 29.192308 | 77 | 0.667984 | 92 | 759 | 5.445652 | 0.456522 | 0.0998 | 0.159681 | 0.137725 | 0.267465 | 0.215569 | 0.215569 | 0.215569 | 0.215569 | 0.215569 | 0 | 0.004732 | 0.16469 | 759 | 26 | 78 | 29.192308 | 0.785489 | 0.065876 | 0 | 0.3125 | 0 | 0 | 0.193777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 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 |
5c949ae8bbb55a3613aea1e242733f24ea48bd7c | 2,819 | py | Python | wapps/migrations/0007_add_static_page.py | apihackers/wapps | e8158747aa3d77246d41142580faf9a5f2b0d968 | [
"MIT"
] | 7 | 2018-01-17T20:26:59.000Z | 2022-03-23T08:12:00.000Z | wapps/migrations/0007_add_static_page.py | apihackers/wapps | e8158747aa3d77246d41142580faf9a5f2b0d968 | [
"MIT"
] | 511 | 2017-10-21T17:59:50.000Z | 2022-03-28T18:49:21.000Z | wapps/migrations/0007_add_static_page.py | apihackers/wapps | e8158747aa3d77246d41142580faf9a5f2b0d968 | [
"MIT"
] | 2 | 2018-05-02T08:27:42.000Z | 2020-08-17T18:42:49.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-12 00:16
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.contrib.taggit
import modelcluster.fields
import wagtail.wagtailcore.fields
from wapps.utils import get_image_mo... | 50.339286 | 206 | 0.651295 | 313 | 2,819 | 5.677316 | 0.456869 | 0.043331 | 0.039392 | 0.061902 | 0.15363 | 0.132245 | 0.09623 | 0.054024 | 0.054024 | 0 | 0 | 0.020796 | 0.215325 | 2,819 | 55 | 207 | 51.254545 | 0.78255 | 0.023767 | 0 | 0.234043 | 1 | 0 | 0.250273 | 0.046926 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.148936 | 0 | 0.212766 | 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 |
5c98f971a3a61b56b6e016b1f04879824f14e2c3 | 812 | py | Python | PythonStarter/6_7_1_1.py | fsbd1285228/PythonCodes | e71fcd695e19e3d286ec249113791d0729bec751 | [
"MIT"
] | null | null | null | PythonStarter/6_7_1_1.py | fsbd1285228/PythonCodes | e71fcd695e19e3d286ec249113791d0729bec751 | [
"MIT"
] | null | null | null | PythonStarter/6_7_1_1.py | fsbd1285228/PythonCodes | e71fcd695e19e3d286ec249113791d0729bec751 | [
"MIT"
] | null | null | null | '''Programme for Exercise 6.1 - Lists'''
'''write a small database and some code to query it using lists'''
#import numpy
#Construct the List
FriendList = ['Jack','Lucy','Beta','Sophie','Luella','Audrey','Allen','Will','Jason','Ashe']
FriendYear = [1992,1986,1974,1969,1965,1995,2001,1991,1980,1989]
i = 0
j = 0
Che... | 23.2 | 92 | 0.634236 | 134 | 812 | 3.835821 | 0.544776 | 0.046693 | 0.046693 | 0.054475 | 0.284047 | 0.284047 | 0.284047 | 0.202335 | 0.202335 | 0.202335 | 0 | 0.08104 | 0.194581 | 812 | 34 | 93 | 23.882353 | 0.704893 | 0.273399 | 0 | 0 | 0 | 0 | 0.329114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5c9d1595a2cd7ad495503245f7be16fe5ab93888 | 16,512 | py | Python | word2vec.py | MirunaPislar/Word2vec | e9dd01488f081a7b8d7c00a0b21efe0d401d4927 | [
"MIT"
] | 13 | 2018-05-19T22:29:27.000Z | 2022-03-25T13:28:17.000Z | word2vec.py | MirunaPislar/Word2vec | e9dd01488f081a7b8d7c00a0b21efe0d401d4927 | [
"MIT"
] | 1 | 2019-01-14T09:55:50.000Z | 2019-01-25T22:17:03.000Z | word2vec.py | MirunaPislar/Word2vec | e9dd01488f081a7b8d7c00a0b21efe0d401d4927 | [
"MIT"
] | 6 | 2018-05-19T22:29:29.000Z | 2022-03-11T12:00:37.000Z | import glob
import random
import numpy as np
import os.path as op
import cPickle as pickle
from utils.treebank import StanfordSentiment
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
import time
# Softmax function, optimized such that larger inputs are still feasible
# softmax(x + c) = softmax... | 35.433476 | 176 | 0.643471 | 2,161 | 16,512 | 4.847756 | 0.198056 | 0.020046 | 0.009927 | 0.006873 | 0.247232 | 0.209527 | 0.17478 | 0.146525 | 0.132207 | 0.126289 | 0 | 0.040887 | 0.229772 | 16,512 | 466 | 177 | 35.433476 | 0.782827 | 0.118944 | 0 | 0.183544 | 0 | 0 | 0.067308 | 0 | 0 | 0 | 0 | 0 | 0.031646 | 0 | null | null | 0.022152 | 0.028481 | null | null | 0.091772 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5caf36da62d27770ef9439775594cf34bcd52b0f | 454 | py | Python | test/parOimparTestCase.py | uip-pc3/numero-par-impar-ArielLK | 18229ee4bab01221bf0c41fcc5bc4a097e3a9514 | [
"MIT"
] | null | null | null | test/parOimparTestCase.py | uip-pc3/numero-par-impar-ArielLK | 18229ee4bab01221bf0c41fcc5bc4a097e3a9514 | [
"MIT"
] | null | null | null | test/parOimparTestCase.py | uip-pc3/numero-par-impar-ArielLK | 18229ee4bab01221bf0c41fcc5bc4a097e3a9514 | [
"MIT"
] | null | null | null | import unittest
from app.parOimpar import verificar
class PoIC(object):
pass
class parOimparTestCase(unittest.TestCase):
# IMPAR = FALSE , PAR = TRUE
def test_impar(self):
retorno = self.PoIC = verificar(15)
self.assertEquals(retorno, False)
def test_par(self):
... | 20.636364 | 44 | 0.634361 | 50 | 454 | 5.56 | 0.52 | 0.05036 | 0.107914 | 0.136691 | 0.201439 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.268722 | 454 | 21 | 45 | 21.619048 | 0.825301 | 0.057269 | 0 | 0 | 0 | 0 | 0.019753 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0.076923 | 0.153846 | 0 | 0.461538 | 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 |
5cb1557d9e9f23c2be07ac5c1e0ac05e5df2b5d6 | 435 | py | Python | src/c3nav/mapdata/migrations/0016_auto_20161208_2023.py | bate/c3nav | 9a86dd3eaeb3a10af3c5fa869575ed1e9300465a | [
"Apache-2.0"
] | 1 | 2021-07-07T06:16:40.000Z | 2021-07-07T06:16:40.000Z | src/c3nav/mapdata/migrations/0016_auto_20161208_2023.py | 0ki/c3nav | 18fdb34b3fbcf7eb4617794750494cfa16428c54 | [
"Apache-2.0"
] | null | null | null | src/c3nav/mapdata/migrations/0016_auto_20161208_2023.py | 0ki/c3nav | 18fdb34b3fbcf7eb4617794750494cfa16428c54 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-08 20:23
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('mapdata', '0015_auto_20161208_2020'),
]
operations = [
migrations.RenameField(
... | 20.714286 | 48 | 0.611494 | 47 | 435 | 5.425532 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10443 | 0.273563 | 435 | 20 | 49 | 21.75 | 0.702532 | 0.156322 | 0 | 0 | 1 | 0 | 0.151099 | 0.063187 | 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 |
5cb9bf805ac5fbad88dbcdffa3739444f4598468 | 7,996 | py | Python | test/rql_test/drivers/driver_test.py | zadcha/rethinkdb | bb4f5cc28242dc1e29e9a46a8a931ec54420070c | [
"Apache-2.0"
] | 21,684 | 2015-01-01T03:42:20.000Z | 2022-03-30T13:32:44.000Z | test/rql_test/drivers/driver_test.py | zadcha/rethinkdb | bb4f5cc28242dc1e29e9a46a8a931ec54420070c | [
"Apache-2.0"
] | 4,067 | 2015-01-01T00:04:51.000Z | 2022-03-30T13:42:56.000Z | test/rql_test/drivers/driver_test.py | zadcha/rethinkdb | bb4f5cc28242dc1e29e9a46a8a931ec54420070c | [
"Apache-2.0"
] | 1,901 | 2015-01-01T21:05:59.000Z | 2022-03-21T08:14:25.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
from driver import bag, compare, err, err_regex, partial, uuid
class PythonTestDriverTest(unittest.TestCase):
def compare(self, expected, result, options=None):
self.assertTrue(compare(expected, result, options=options))
def compareFals... | 33.596639 | 97 | 0.514132 | 1,034 | 7,996 | 3.938104 | 0.102515 | 0.243615 | 0.025049 | 0.031434 | 0.679273 | 0.531925 | 0.38777 | 0.223232 | 0.132367 | 0.092092 | 0 | 0.056945 | 0.25988 | 7,996 | 237 | 98 | 33.738397 | 0.631125 | 0.062906 | 0 | 0.028169 | 0 | 0 | 0.047229 | 0.00483 | 0 | 0 | 0 | 0.004219 | 0.014085 | 1 | 0.098592 | false | 0.007042 | 0.014085 | 0 | 0.119718 | 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 |
5cbc56be1a3c862658c641c130ed5ab17a1180e4 | 6,160 | py | Python | xinshuo_io/google_api_io.py | xinshuoweng/cv_ml_tool | 1918b9e37ec5fb8148b8a089f226a4864d67b153 | [
"MIT"
] | 31 | 2020-03-05T12:27:21.000Z | 2022-03-07T04:00:18.000Z | xinshuo_io/google_api_io.py | xinshuoweng/cv_ml_tool | 1918b9e37ec5fb8148b8a089f226a4864d67b153 | [
"MIT"
] | null | null | null | xinshuo_io/google_api_io.py | xinshuoweng/cv_ml_tool | 1918b9e37ec5fb8148b8a089f226a4864d67b153 | [
"MIT"
] | 12 | 2020-07-06T05:06:58.000Z | 2021-11-18T14:43:20.000Z | # Author: Xinshuo Weng
# email: xinshuo.weng@gmail.com
# this file includes functions for google gpi, such as google sheet
import os, httplib2
from oauth2client import client, tools
from oauth2client.file import Storage
from googleapiclient import discovery
from xinshuo_miscellaneous import isstring, islistoflist, is... | 37.560976 | 165 | 0.686688 | 784 | 6,160 | 5.284439 | 0.257653 | 0.020275 | 0.039102 | 0.045619 | 0.481776 | 0.481776 | 0.423365 | 0.423365 | 0.38909 | 0.368815 | 0 | 0.002928 | 0.223864 | 6,160 | 164 | 166 | 37.560976 | 0.863627 | 0.386688 | 0 | 0.214286 | 0 | 0 | 0.139263 | 0.013178 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.071429 | false | 0 | 0.1 | 0 | 0.214286 | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
5cc5fd55b30a7edb8db3a53f2ae2bbfdd0726668 | 1,573 | py | Python | _scripts/paste/getdecoproperties.py | Son-Guhun/Titan-Land-Lands-of-Plenty | edeca1d5437a7397195799ebf4b9585ee4609fed | [
"MIT"
] | 12 | 2019-05-27T16:02:28.000Z | 2021-01-08T09:32:08.000Z | _scripts/paste/getdecoproperties.py | Son-Guhun/Titan-Land-Lands-of-Plenty | edeca1d5437a7397195799ebf4b9585ee4609fed | [
"MIT"
] | 209 | 2019-04-06T15:16:52.000Z | 2021-07-03T02:11:53.000Z | _scripts/paste/getdecoproperties.py | Son-Guhun/Titan-Land-Lands-of-Plenty | edeca1d5437a7397195799ebf4b9585ee4609fed | [
"MIT"
] | 1 | 2021-05-26T12:13:35.000Z | 2021-05-26T12:13:35.000Z | """Gets properties from all decorations a .ini database and generates code to be used in the
UnitTypeDefaultValues library. This code is copied to the clipboard and can be pasted in a text
editor or inside the World Editor.
"""
import os
import sys
sys.path.insert(1, os.path.join(sys.path[0], '..'))
#__________________... | 43.694444 | 124 | 0.525111 | 151 | 1,573 | 4.754967 | 0.483444 | 0.089136 | 0.066852 | 0.100279 | 0.178273 | 0.178273 | 0.178273 | 0.178273 | 0.178273 | 0.178273 | 0 | 0.003012 | 0.366815 | 1,573 | 35 | 125 | 44.942857 | 0.717871 | 0.200254 | 0 | 0.173913 | 1 | 0 | 0.143086 | 0.073541 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cc8cae106c9171d754178b9253525a274a8a19d | 2,826 | py | Python | listener.py | vinhquevu/angora | 25615478ad12304046efe93557c8eb77bf5429a4 | [
"MIT"
] | null | null | null | listener.py | vinhquevu/angora | 25615478ad12304046efe93557c8eb77bf5429a4 | [
"MIT"
] | null | null | null | listener.py | vinhquevu/angora | 25615478ad12304046efe93557c8eb77bf5429a4 | [
"MIT"
] | null | null | null | """
Angora Queue
"""
import socket
from typing import Dict, Optional
import kombu # type: ignore
class Queue:
"""
An object representing a queue in RabbitMQ.
A listener can listen to one or more queues and have one or more
callbacks. Consumer expects a sequence of queues. Angora is designed to
... | 32.860465 | 86 | 0.586695 | 344 | 2,826 | 4.726744 | 0.348837 | 0.038745 | 0.023985 | 0.01722 | 0.150062 | 0.129151 | 0.129151 | 0.129151 | 0.088561 | 0.088561 | 0 | 0.002623 | 0.325548 | 2,826 | 85 | 87 | 33.247059 | 0.850472 | 0.260793 | 0 | 0.111111 | 0 | 0 | 0.053245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0.074074 | 0.055556 | 0.037037 | 0.203704 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5ccfa7e59b63751f2d0ba85432fe6303c3a47e9a | 920 | py | Python | poc/db_schema.py | fabienleite/IOMMU-dumper | 007184fe5bd8ef6ef0947669bf88f0222a41a632 | [
"Apache-2.0"
] | null | null | null | poc/db_schema.py | fabienleite/IOMMU-dumper | 007184fe5bd8ef6ef0947669bf88f0222a41a632 | [
"Apache-2.0"
] | null | null | null | poc/db_schema.py | fabienleite/IOMMU-dumper | 007184fe5bd8ef6ef0947669bf88f0222a41a632 | [
"Apache-2.0"
] | null | null | null | #!/bin/false
# -*- coding: utf-8 -*-
import os
import sys
from sqlalchemy import Column, ForeignKey, Integer, String, Boolean
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine
Base = declarative_base()
class Device(Base):
__tablena... | 31.724138 | 67 | 0.667391 | 106 | 920 | 5.632075 | 0.415094 | 0.093802 | 0.100503 | 0.070352 | 0.180905 | 0.097152 | 0 | 0 | 0 | 0 | 0 | 0.018106 | 0.219565 | 920 | 28 | 68 | 32.857143 | 0.81337 | 0.03587 | 0 | 0.090909 | 0 | 0 | 0.059887 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.863636 | 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 |
5cd1e198576f972a182243405409bdeb66ee2c57 | 584 | py | Python | psite/urls.py | jrrobertson/psite | 28f1f2526be9367e6bbb41a9fbec529902bb6a5c | [
"MIT"
] | null | null | null | psite/urls.py | jrrobertson/psite | 28f1f2526be9367e6bbb41a9fbec529902bb6a5c | [
"MIT"
] | null | null | null | psite/urls.py | jrrobertson/psite | 28f1f2526be9367e6bbb41a9fbec529902bb6a5c | [
"MIT"
] | null | null | null | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
from django.views.generic import RedirectView
from resume import views
urlpatterns = [
path('', RedirectView.as_view(url='resume/')),
path('admin/', admin.site.urls... | 32.444444 | 80 | 0.738014 | 79 | 584 | 5.35443 | 0.367089 | 0.118203 | 0.066194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 584 | 17 | 81 | 34.352941 | 0.827789 | 0 | 0 | 0 | 0 | 0 | 0.101027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.