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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f5f48a27ac96f55366c634677c65e931a90b9990 | 289 | py | Python | setup.py | bdvllrs/sacred_logs | ecfd4ac489ed661713cef0049b9e1e547560d753 | [
"MIT"
] | null | null | null | setup.py | bdvllrs/sacred_logs | ecfd4ac489ed661713cef0049b9e1e547560d753 | [
"MIT"
] | null | null | null | setup.py | bdvllrs/sacred_logs | ecfd4ac489ed661713cef0049b9e1e547560d753 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(name='sacred_logs',
version='0.2.0',
install_requires=['click', 'matplotlib', 'pandas'],
packages=find_packages(),
entry_points="""
[console_scripts]
sacredlogs=sacred_logs.cli:cli
""")
| 26.272727 | 58 | 0.622837 | 31 | 289 | 5.580645 | 0.741935 | 0.138728 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013575 | 0.235294 | 289 | 10 | 59 | 28.9 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0.376344 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5fd5243abec5a8fbb0808cab5f800e1722bbc29 | 461 | py | Python | 18_regexes02_matchobject.py | vierth/humanitiesTutorial | cdac8c381f13d740503237ee91c8969be812e6d4 | [
"Apache-2.0"
] | 18 | 2018-07-18T06:13:46.000Z | 2021-12-23T09:11:02.000Z | 18_regexes02_matchobject.py | vierth/humanitiesTutorial | cdac8c381f13d740503237ee91c8969be812e6d4 | [
"Apache-2.0"
] | null | null | null | 18_regexes02_matchobject.py | vierth/humanitiesTutorial | cdac8c381f13d740503237ee91c8969be812e6d4 | [
"Apache-2.0"
] | 5 | 2018-10-09T14:36:57.000Z | 2021-04-24T09:04:20.000Z | # The re library has many ways of finding things. Match (and
# other functions) returns a match object
import re
myString = 'hello, how are you?'
# put the pattern in first using a "raw" string,indicated by
# an r
result = re.match(r'hello',myString)
# Here are some basic match object methods:
# get the string resu... | 25.611111 | 61 | 0.73102 | 76 | 461 | 4.434211 | 0.592105 | 0.130564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164859 | 461 | 18 | 62 | 25.611111 | 0.875325 | 0.603037 | 0 | 0 | 0 | 0 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.571429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
f5fe0fbe1703ff3796e6b8b4a331252df16b4ff7 | 452 | py | Python | ghostpost_app/migrations/0009_auto_20201118_1938.py | Sondosissa18/ghostpost-project | 4cd1be479eb6f0327ed0d05c0262303c3cacd2b4 | [
"MIT"
] | null | null | null | ghostpost_app/migrations/0009_auto_20201118_1938.py | Sondosissa18/ghostpost-project | 4cd1be479eb6f0327ed0d05c0262303c3cacd2b4 | [
"MIT"
] | null | null | null | ghostpost_app/migrations/0009_auto_20201118_1938.py | Sondosissa18/ghostpost-project | 4cd1be479eb6f0327ed0d05c0262303c3cacd2b4 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-11-18 19:38
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('ghostpost_app', '0008_auto_20201118_1937'),
]
operations = [
migrations.AlterField(
model_name='gho... | 22.6 | 74 | 0.641593 | 50 | 452 | 5.68 | 0.74 | 0.077465 | 0.133803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091445 | 0.25 | 452 | 19 | 75 | 23.789474 | 0.746313 | 0.099558 | 0 | 0 | 1 | 0 | 0.135802 | 0.05679 | 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 |
eb01016ed2c34c4b9a1d218e4d3ee622246ff952 | 1,838 | py | Python | djangologdb/utils.py | cgroschupp/django-logdb | 6815f48b531290857601f90b35f79ee65498df6b | [
"MIT"
] | 5 | 2015-09-09T08:24:35.000Z | 2021-09-30T11:02:27.000Z | djangologdb/utils.py | cgroschupp/django-logdb | 6815f48b531290857601f90b35f79ee65498df6b | [
"MIT"
] | null | null | null | djangologdb/utils.py | cgroschupp/django-logdb | 6815f48b531290857601f90b35f79ee65498df6b | [
"MIT"
] | 1 | 2015-02-27T18:38:11.000Z | 2015-02-27T18:38:11.000Z | import datetime
import time
from django.db import models
from django.core.serializers.json import DjangoJSONEncoder
from django.utils import simplejson as json
def get_timestamp(date_time):
"""
Create a `timestamp` from a `datetime` object. A `timestamp` is defined
as the number of milliseconds ... | 28.71875 | 86 | 0.633297 | 211 | 1,838 | 5.393365 | 0.341232 | 0.043937 | 0.031634 | 0.045694 | 0.484183 | 0.484183 | 0.465729 | 0.465729 | 0.391916 | 0.391916 | 0 | 0.016154 | 0.292709 | 1,838 | 63 | 87 | 29.174603 | 0.859231 | 0.131121 | 0 | 0.564103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.128205 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
eb08d503ec2f38c7f50707a027e4ad3f69c599f7 | 615 | py | Python | static_files/tutorials/ubq_wat-md/1-model_water/build_model.py | jchodera/Chem456 | a4e41f2508bcd8a43da6c804780be22c8fcc8143 | [
"CC-BY-4.0"
] | 1 | 2020-07-27T09:49:53.000Z | 2020-07-27T09:49:53.000Z | static_files/tutorials/ubq_wat-md/1-model_water/build_model.py | jchodera/Chem456 | a4e41f2508bcd8a43da6c804780be22c8fcc8143 | [
"CC-BY-4.0"
] | null | null | null | static_files/tutorials/ubq_wat-md/1-model_water/build_model.py | jchodera/Chem456 | a4e41f2508bcd8a43da6c804780be22c8fcc8143 | [
"CC-BY-4.0"
] | null | null | null | from __future__ import print_function
from simtk.openmm import app
import simtk.openmm as mm
from simtk import unit
from sys import stdout
pdb = app.PDBFile('../0-propka/1ubq.pqr')
forcefield = app.ForceField('amber14-all.xml', 'amber14/tip3p.xml')
modeller = app.Modeller(pdb.topology, pdb.positions)
modeller.deleteW... | 34.166667 | 75 | 0.760976 | 85 | 615 | 5.447059 | 0.552941 | 0.038877 | 0.060475 | 0.099352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02509 | 0.092683 | 615 | 17 | 76 | 36.176471 | 0.80466 | 0 | 0 | 0 | 0 | 0 | 0.117073 | 0 | 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 |
eb0f388c339573e10bd4034416068f835de4951f | 476 | py | Python | src/monsters/tests.py | reiniervdwindt/power-ranger-api | 13ce639a7f5e9d4b106ce5f094c076db0aad398e | [
"MIT"
] | null | null | null | src/monsters/tests.py | reiniervdwindt/power-ranger-api | 13ce639a7f5e9d4b106ce5f094c076db0aad398e | [
"MIT"
] | null | null | null | src/monsters/tests.py | reiniervdwindt/power-ranger-api | 13ce639a7f5e9d4b106ce5f094c076db0aad398e | [
"MIT"
] | null | null | null | from django.test import TestCase
from monsters.models import Monster
class MonsterTestCase(TestCase):
fixtures = [
'monsters.json',
'series.json',
]
def test_monster(self):
monster = Monster.objects.get(pk=2)
self.assertIsInstance(monster, Monster)
self.assertEqua... | 23.8 | 47 | 0.659664 | 54 | 476 | 5.740741 | 0.481481 | 0.135484 | 0.090323 | 0.16129 | 0.225806 | 0.225806 | 0.225806 | 0.225806 | 0 | 0 | 0 | 0.00545 | 0.228992 | 476 | 19 | 48 | 25.052632 | 0.839237 | 0 | 0 | 0.142857 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 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 |
eb1079ec5ab06c0cb5aec5507ef07e8261e9cfa1 | 424 | py | Python | Curso-em-video-Python3-mundo3/ex103.py | bernardombraga/Solucoes-exercicios-cursos-gratuitos | 0347a8325443fce84e0a753c96f523a22858537b | [
"MIT"
] | null | null | null | Curso-em-video-Python3-mundo3/ex103.py | bernardombraga/Solucoes-exercicios-cursos-gratuitos | 0347a8325443fce84e0a753c96f523a22858537b | [
"MIT"
] | null | null | null | Curso-em-video-Python3-mundo3/ex103.py | bernardombraga/Solucoes-exercicios-cursos-gratuitos | 0347a8325443fce84e0a753c96f523a22858537b | [
"MIT"
] | null | null | null | def jogador(nom="<desconhecido>", nG=0):
print(f'O jogador {nom} fez {nG} gol(s) no compeonato.')
# Programa principal:
print('-' * 30)
nome = str(input('Nome do jogador: ')).strip().capitalize()
nGols = str(input('Número de gols: ')).strip()
if nome == '' and not nGols.isnumeric():
jogador()
elif nome == '':... | 24.941176 | 60 | 0.636792 | 59 | 424 | 4.576271 | 0.559322 | 0.111111 | 0.125926 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008499 | 0.167453 | 424 | 16 | 61 | 26.5 | 0.756374 | 0.044811 | 0 | 0 | 0 | 0 | 0.233251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.076923 | 0.153846 | 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 |
eb12cc942df8f0ec511dc7471dde0dd8c0be48b4 | 9,353 | py | Python | messenger/messenger_pb2.py | exoson/messenger | c7e1642263f819c2828213540cf483443f67abcf | [
"MIT"
] | null | null | null | messenger/messenger_pb2.py | exoson/messenger | c7e1642263f819c2828213540cf483443f67abcf | [
"MIT"
] | null | null | null | messenger/messenger_pb2.py | exoson/messenger | c7e1642263f819c2828213540cf483443f67abcf | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: messenger.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _ref... | 30.665574 | 745 | 0.731851 | 1,121 | 9,353 | 5.820696 | 0.148082 | 0.039234 | 0.038621 | 0.016552 | 0.56705 | 0.498851 | 0.495939 | 0.495939 | 0.42728 | 0.41931 | 0 | 0.03255 | 0.136106 | 9,353 | 304 | 746 | 30.766447 | 0.775 | 0.043409 | 0 | 0.62406 | 1 | 0.003759 | 0.169856 | 0.098915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022556 | 0 | 0.022556 | 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 |
eb1750e07955fc53ef875c8ee0bd8008a76a0281 | 605 | py | Python | Algorithms/112 - Path Sum/hasPathSum.py | Adriel-M/leetcode | bd4dba7cbc1be6e2799e16bdcfa1a9649b7d5c7c | [
"MIT"
] | 1 | 2018-07-05T08:13:34.000Z | 2018-07-05T08:13:34.000Z | Algorithms/112 - Path Sum/hasPathSum.py | Adriel-M/leetcode | bd4dba7cbc1be6e2799e16bdcfa1a9649b7d5c7c | [
"MIT"
] | null | null | null | Algorithms/112 - Path Sum/hasPathSum.py | Adriel-M/leetcode | bd4dba7cbc1be6e2799e16bdcfa1a9649b7d5c7c | [
"MIT"
] | null | null | null | class Solution:
def hasPathSum(self, root, target):
def check(curr_node, curr_val):
calc_val = curr_val + curr_node.val
if calc_val == target and curr_node.left is None and curr_node.right is None:
return True
elif curr_node.left is not None and check(curr... | 37.8125 | 89 | 0.573554 | 82 | 605 | 4.060976 | 0.304878 | 0.192192 | 0.117117 | 0.084084 | 0.282282 | 0.15015 | 0.15015 | 0 | 0 | 0 | 0 | 0.002618 | 0.368595 | 605 | 15 | 90 | 40.333333 | 0.86911 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 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 |
eb1767791902741a9bba27b40d0f33ae2124a1a5 | 9,134 | py | Python | spider/main.py | HaoyueXU99/Data-Analysis | f57c46b2553c117a739c66b84a13d9a705e2c246 | [
"MIT"
] | null | null | null | spider/main.py | HaoyueXU99/Data-Analysis | f57c46b2553c117a739c66b84a13d9a705e2c246 | [
"MIT"
] | null | null | null | spider/main.py | HaoyueXU99/Data-Analysis | f57c46b2553c117a739c66b84a13d9a705e2c246 | [
"MIT"
] | null | null | null | # -*- coding = utf-8 -*-
# @Time : 2021-07-07 13:51
# @Author : Haoyue XU
# @File : main.py
# @Software : PyCharm
import random
import time
import datetime
import requests
from bs4 import BeautifulSoup
import re
import urllib.request, urllib.error
import ssl
import xlwt
import xlutils
DICT = {} # 一个全局的变量储存 IP 地址
... | 42.287037 | 1,753 | 0.679987 | 994 | 9,134 | 6.104628 | 0.366197 | 0.013843 | 0.012854 | 0.013184 | 0.110415 | 0.082729 | 0.051747 | 0.029664 | 0.014173 | 0.014173 | 0 | 0.121159 | 0.191263 | 9,134 | 215 | 1,754 | 42.483721 | 0.700284 | 0.27206 | 0 | 0.05 | 0 | 0.016667 | 0.364315 | 0.245162 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.016667 | 0.083333 | 0 | 0.2 | 0.066667 | 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 |
eb2c6d13a4d973adc6902200b8574cec767c0d54 | 991 | py | Python | shibboleth/context_processors.py | harryjmoss/django-shibboleth-remoteuser | 51129addcb47212d91c71e08cdc996dbb0a149da | [
"MIT"
] | null | null | null | shibboleth/context_processors.py | harryjmoss/django-shibboleth-remoteuser | 51129addcb47212d91c71e08cdc996dbb0a149da | [
"MIT"
] | null | null | null | shibboleth/context_processors.py | harryjmoss/django-shibboleth-remoteuser | 51129addcb47212d91c71e08cdc996dbb0a149da | [
"MIT"
] | null | null | null | from django.urls import reverse
from django.utils.six.moves.urllib_parse import quote
def login_link(request):
"""
This assumes your login link is the Shibboleth login page for your server
and uses the 'target' url parameter.
"""
full_path = quote(request.get_full_path())
login = reverse('shib... | 34.172414 | 77 | 0.702321 | 140 | 991 | 4.842857 | 0.428571 | 0.053097 | 0.075221 | 0.058997 | 0.262537 | 0.262537 | 0.262537 | 0.262537 | 0.262537 | 0.262537 | 0 | 0 | 0.196771 | 991 | 28 | 78 | 35.392857 | 0.851759 | 0.382442 | 0 | 0 | 0 | 0 | 0.137324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
eb2d7766dee0b9d09b56777ae611778633fb718a | 1,868 | py | Python | anonymizer.py | ThibautLucas/rgpdize | 480a1db52251d5a2fc017358fcc407e4f1d925c2 | [
"Apache-2.0"
] | 2 | 2021-03-02T13:08:42.000Z | 2021-03-05T08:36:28.000Z | anonymizer.py | ThibautLucas/rgpdize | 480a1db52251d5a2fc017358fcc407e4f1d925c2 | [
"Apache-2.0"
] | null | null | null | anonymizer.py | ThibautLucas/rgpdize | 480a1db52251d5a2fc017358fcc407e4f1d925c2 | [
"Apache-2.0"
] | null | null | null | from PIL import Image
import os
import numpy as np
import cv2
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow-gpu as tf
tf.get_logger().setLevel('ERROR')
def blur(img, bbox, shape="rectangle"):
imagette = img[bbox[0]:bbox[2], bbox[1]:bbox[3]]
print(imagette.shape)
w, h = imagette.shape... | 31.661017 | 95 | 0.639186 | 258 | 1,868 | 4.453488 | 0.379845 | 0.056571 | 0.019147 | 0.020888 | 0.121845 | 0.121845 | 0.095735 | 0.095735 | 0.040035 | 0 | 0 | 0.021666 | 0.209315 | 1,868 | 59 | 96 | 31.661017 | 0.756263 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.113636 | null | null | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eb320c13681282f46a78cb2ede5d64993304ca9b | 1,487 | py | Python | filmproject/polls/models.py | id2k1149/FavoriteFilmApp | f3e936b4da9271e03da7798ef54fb35f333ca00a | [
"MIT"
] | null | null | null | filmproject/polls/models.py | id2k1149/FavoriteFilmApp | f3e936b4da9271e03da7798ef54fb35f333ca00a | [
"MIT"
] | null | null | null | filmproject/polls/models.py | id2k1149/FavoriteFilmApp | f3e936b4da9271e03da7798ef54fb35f333ca00a | [
"MIT"
] | null | null | null | from django.db import models
import datetime
# Импортируем настройки приложения polls
from polls import settings
# Create your models here.
class Question(models.Model):
"""Вопрос"""
title = models.CharField(max_length=200, verbose_name="Вопрос")
date_published = models.DateTimeField(verbose_name="Дата пу... | 32.326087 | 74 | 0.69805 | 177 | 1,487 | 5.666667 | 0.502825 | 0.098704 | 0.035892 | 0.047856 | 0.075773 | 0.075773 | 0.075773 | 0 | 0 | 0 | 0 | 0.005998 | 0.215198 | 1,487 | 45 | 75 | 33.044444 | 0.85347 | 0.166106 | 0 | 0.071429 | 0 | 0 | 0.063673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.107143 | 0.071429 | 0.678571 | 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 |
eb36d5a07c2c624389aaaf3cccb9a7ce124ca630 | 925 | py | Python | Boolean_conditions.py | Optimus-krishna/Python-learning- | c44abe72610b353dee289ef4edf9db502f8d9878 | [
"MIT"
] | null | null | null | Boolean_conditions.py | Optimus-krishna/Python-learning- | c44abe72610b353dee289ef4edf9db502f8d9878 | [
"MIT"
] | null | null | null | Boolean_conditions.py | Optimus-krishna/Python-learning- | c44abe72610b353dee289ef4edf9db502f8d9878 | [
"MIT"
] | null | null | null | #Boolean is like telling Python to do something based on conditions:
#if this is true, do this; else do something different.
#conditional logic in Python is written using booleans (True and False), along with if statements.
user = 'James Bond'
if user == 'James Bond':
print('Awesome!')
elif user == 'Ethan Hunt... | 24.342105 | 99 | 0.67027 | 146 | 925 | 4.246575 | 0.541096 | 0.029032 | 0.029032 | 0.041935 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035862 | 0.216216 | 925 | 38 | 100 | 24.342105 | 0.81931 | 0.403243 | 0 | 0 | 0 | 0 | 0.465328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.45 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
eb39929464034c9ca6caa35c2c16cae41477cbfd | 2,155 | py | Python | analysis/gen_plots.py | ashkanbashiri/data_driven_signal_control | 04e907db20c3f0966524816530f4827d48e21c43 | [
"MIT"
] | 4 | 2020-05-04T14:54:39.000Z | 2021-10-18T16:16:59.000Z | analysis/gen_plots.py | ashkanbashiri/data_driven_intersection_control | d4e9dde231f9c78b0e5b0673786ec81644190f4a | [
"MIT"
] | 3 | 2021-04-30T21:14:34.000Z | 2022-02-10T01:28:34.000Z | analysis/gen_plots.py | ashkanbashiri/data_driven_signal_control | 04e907db20c3f0966524816530f4827d48e21c43 | [
"MIT"
] | 1 | 2021-07-23T10:21:41.000Z | 2021-07-23T10:21:41.000Z | import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
'''
sa_results = []
sa_results = [[0.03387744, 0.04218781, 0.03423842, 0.04578994, 0.26688983],
[0.33675454, 0.31773746, 0.36306585, 0.44983512, 0.69078965],
[0.04643806, 0.00493544, 0.07501189, 0.01683896, 0.22284424],
... | 53.875 | 124 | 0.628306 | 283 | 2,155 | 4.54417 | 0.44523 | 0.13297 | 0.046656 | 0.062208 | 0.108087 | 0.066096 | 0.066096 | 0.066096 | 0.066096 | 0.066096 | 0 | 0.21917 | 0.206032 | 2,155 | 39 | 125 | 55.25641 | 0.532437 | 0 | 0 | 0 | 0 | 0 | 0.282585 | 0.031763 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.055556 | 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 |
eb3e7e3fc05fe79c174e2e414b0c529977465a92 | 4,432 | py | Python | Python Basics_Final_Assignment.py | Salman42Sabir/Python3-Programming-Specialization | d2ca073f006d3d3b481c3c21e943a7fa6e570cb9 | [
"MIT"
] | null | null | null | Python Basics_Final_Assignment.py | Salman42Sabir/Python3-Programming-Specialization | d2ca073f006d3d3b481c3c21e943a7fa6e570cb9 | [
"MIT"
] | null | null | null | Python Basics_Final_Assignment.py | Salman42Sabir/Python3-Programming-Specialization | d2ca073f006d3d3b481c3c21e943a7fa6e570cb9 | [
"MIT"
] | null | null | null | #########################################################################################################################################
1. Below are a set of scores that students have received in the past semester. Write code to determine how many are 90 or above and assign
that result to the value a_scores.
#######... | 54.716049 | 140 | 0.481498 | 546 | 4,432 | 3.873626 | 0.340659 | 0.021277 | 0.035461 | 0.025532 | 0.332861 | 0.299764 | 0.270449 | 0.252482 | 0.220331 | 0.220331 | 0 | 0.029334 | 0.146209 | 4,432 | 80 | 141 | 55.4 | 0.529598 | 0 | 0 | 0.117647 | 0 | 0.019608 | 0.116993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
eb40e45a75e6b600a57a1a820095290d714a7376 | 267 | py | Python | exercicios/ex006.py | thiago5171/python. | 92010818bb18ac906a79da762cd7cf219b308a6d | [
"MIT"
] | 1 | 2021-01-04T05:33:32.000Z | 2021-01-04T05:33:32.000Z | exercicios/ex006.py | thiago5171/python. | 92010818bb18ac906a79da762cd7cf219b308a6d | [
"MIT"
] | null | null | null | exercicios/ex006.py | thiago5171/python. | 92010818bb18ac906a79da762cd7cf219b308a6d | [
"MIT"
] | null | null | null | #Escreva um programa que leia um valor em metros e o exiba convertido em centímetros e milímetros.
metros = float(input("digite o valor em metros para saber a conversao em centimetros: "))
conversao = metros*100
print(" {}M eh igual a {}cm".format(metros,conversao)) | 66.75 | 98 | 0.7603 | 43 | 267 | 4.72093 | 0.674419 | 0.068966 | 0.128079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013216 | 0.149813 | 267 | 4 | 99 | 66.75 | 0.881057 | 0.363296 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de1786130f3555c1aaeaa741582479edcad1250f | 507 | py | Python | src/memes/cat.py | Acropolis/eorzeas-only-hope | c6c0f84066ddb84dace44954e229203a478b43b3 | [
"BSD-2-Clause"
] | null | null | null | src/memes/cat.py | Acropolis/eorzeas-only-hope | c6c0f84066ddb84dace44954e229203a478b43b3 | [
"BSD-2-Clause"
] | 3 | 2020-11-20T09:34:36.000Z | 2021-11-15T20:52:56.000Z | src/memes/cat.py | Acropolis/eorzeas-only-hope | c6c0f84066ddb84dace44954e229203a478b43b3 | [
"BSD-2-Clause"
] | 4 | 2020-03-04T08:56:10.000Z | 2021-04-02T20:11:25.000Z | #!/usr/bin/env python3
# vim: ts=4 expandtab
"""Self care commands"""
from __future__ import annotations
import requests
import bot.commands
class Cat(bot.commands.SimpleCommand):
"""Reminds our dear friends to look after themselves."""
def __init__(self) -> None:
super().__init__("cat", Cat.mess... | 21.125 | 84 | 0.662722 | 66 | 507 | 4.909091 | 0.757576 | 0.067901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009732 | 0.189349 | 507 | 23 | 85 | 22.043478 | 0.778589 | 0.218935 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
de17b754ac1fa6d8b6dc4d6706ab27797f246dcc | 1,309 | py | Python | Module_02/ex03/test.py | CristinaFdezBornay/PythonPiscine | 143968c2e26f5ddddb5114f3bcdddd0b1f00d153 | [
"MIT"
] | 1 | 2021-11-17T10:04:30.000Z | 2021-11-17T10:04:30.000Z | Module_02/ex03/test.py | CristinaFdezBornay/PythonPiscine | 143968c2e26f5ddddb5114f3bcdddd0b1f00d153 | [
"MIT"
] | null | null | null | Module_02/ex03/test.py | CristinaFdezBornay/PythonPiscine | 143968c2e26f5ddddb5114f3bcdddd0b1f00d153 | [
"MIT"
] | null | null | null | from csvreader import CsvReader
if __name__ == "__main__":
try:
print("\n=> Test 1 : Passing None as file")
with CsvReader(None) as file:
data = file.getdata()
header = file.getheader()
except Exception as exception:
print(exception)
try:
input("\n==... | 33.564103 | 62 | 0.544691 | 148 | 1,309 | 4.763514 | 0.27027 | 0.042553 | 0.056738 | 0.079433 | 0.634043 | 0.634043 | 0.577305 | 0.577305 | 0.510638 | 0.510638 | 0 | 0.00444 | 0.311688 | 1,309 | 39 | 63 | 33.564103 | 0.778024 | 0 | 0 | 0.657143 | 0 | 0 | 0.255725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.114286 | 0.028571 | 0 | 0.028571 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
de240bd322a6766c9e9fe2c11efc8d10ca1cbc3e | 430 | py | Python | data/rage.py | HansGR/WorldsCollide | af227be553e120ee004b130598360c61daf7df59 | [
"MIT"
] | 7 | 2022-01-15T02:53:53.000Z | 2022-02-17T00:51:32.000Z | data/rage.py | HansGR/WorldsCollide | af227be553e120ee004b130598360c61daf7df59 | [
"MIT"
] | 8 | 2022-01-16T02:45:24.000Z | 2022-03-21T02:08:27.000Z | data/rage.py | HansGR/WorldsCollide | af227be553e120ee004b130598360c61daf7df59 | [
"MIT"
] | 5 | 2022-01-15T02:53:38.000Z | 2022-01-19T17:42:10.000Z | class Rage():
def __init__(self, id, attack_data):
self.id = id
self.attack1 = attack_data[0]
self.attack2 = attack_data[1]
def attack_data(self):
from data.rages import Rages
data = [0x00] * Rages.ATTACKS_DATA_SIZE
data[0] = self.attack1
data[1] = self... | 22.631579 | 57 | 0.583721 | 57 | 430 | 4.22807 | 0.368421 | 0.165975 | 0.116183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043046 | 0.297674 | 430 | 18 | 58 | 23.888889 | 0.754967 | 0 | 0 | 0 | 0 | 0 | 0.090698 | 0 | 0 | 0 | 0.009302 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.461538 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
de2933c6b50cf5d20552480d2b9a1b5986cb6d0e | 1,079 | py | Python | src/kegnet/classifier/utils.py | videoturingtest/KegNet | fe5d1eb5ab5453be70c4be473fd3da71afe4b06c | [
"Apache-2.0"
] | 42 | 2019-10-01T02:14:34.000Z | 2022-03-07T06:57:58.000Z | src/kegnet/classifier/utils.py | videoturingtest/KegNet | fe5d1eb5ab5453be70c4be473fd3da71afe4b06c | [
"Apache-2.0"
] | 5 | 2019-12-18T16:44:52.000Z | 2021-10-02T15:45:37.000Z | src/kegnet/classifier/utils.py | videoturingtest/KegNet | fe5d1eb5ab5453be70c4be473fd3da71afe4b06c | [
"Apache-2.0"
] | 13 | 2019-10-04T02:55:51.000Z | 2021-08-13T09:10:17.000Z | """
Knowledge Extraction with No Observable Data (NeurIPS 2019)
Authors:
- Jaemin Yoo (jaeminyoo@snu.ac.kr), Seoul National University
- Minyong Cho (chominyong@gmail.com), Seoul National University
- Taebum Kim (k.taebum@snu.ac.kr), Seoul National University
- U Kang (ukang@snu.ac.kr), Seoul National University
This... | 26.975 | 66 | 0.693234 | 148 | 1,079 | 5.033784 | 0.601351 | 0.069799 | 0.12349 | 0.048322 | 0.120805 | 0.120805 | 0 | 0 | 0 | 0 | 0 | 0.006961 | 0.201112 | 1,079 | 39 | 67 | 27.666667 | 0.857309 | 0.488415 | 0 | 0 | 0 | 0 | 0.031128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.5625 | 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 |
de29affe9b62560d679ab25ad4908f7e093c3788 | 303 | py | Python | tests/server1.py | afronski/LogsLiteViewerCLI | cf95481b59b5e354e9f1d78e3168a91330c1210c | [
"MIT"
] | null | null | null | tests/server1.py | afronski/LogsLiteViewerCLI | cf95481b59b5e354e9f1d78e3168a91330c1210c | [
"MIT"
] | null | null | null | tests/server1.py | afronski/LogsLiteViewerCLI | cf95481b59b5e354e9f1d78e3168a91330c1210c | [
"MIT"
] | null | null | null | import time
import socket
UDP_IP="127.0.0.1"
UDP_PORT=2424
MESSAGE="Hello, World 2424!"
print "UDP target IP:", UDP_IP
print "UDP target port:", UDP_PORT
print "message:", MESSAGE
sock = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
sock.sendto( MESSAGE, (UDP_IP, UDP_PORT) ) | 23.307692 | 61 | 0.693069 | 48 | 303 | 4.208333 | 0.416667 | 0.074257 | 0.138614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056452 | 0.181518 | 303 | 13 | 62 | 23.307692 | 0.758065 | 0 | 0 | 0 | 0 | 0 | 0.222603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de2c51a3cc94f7ef88feef41907d042e212881b7 | 1,531 | py | Python | tests/test_integration.py | cthorey/Grid | f86c117fda882a8c36073cfd872e542bb8fbe07f | [
"Apache-2.0"
] | 1 | 2018-03-09T20:49:48.000Z | 2018-03-09T20:49:48.000Z | tests/test_integration.py | jvmancuso/Grid | ce202add2a066eb6a1421d0391646b50e2d7f306 | [
"Apache-2.0"
] | 1 | 2018-03-28T09:08:28.000Z | 2018-03-28T09:08:28.000Z | tests/test_integration.py | jvmancuso/Grid | ce202add2a066eb6a1421d0391646b50e2d7f306 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from keras.models import Sequential
from keras.layers.core import Dense, Activation
from keras.optimizers import SGD
from grid.clients.keras import KerasClient
from grid.workers.compute import GridCompute
import time
from threading import Thread
import pytest
client = None
compute_id = None
@pytes... | 22.188406 | 60 | 0.64533 | 216 | 1,531 | 4.467593 | 0.393519 | 0.093264 | 0.034197 | 0.045596 | 0.163731 | 0.163731 | 0.11399 | 0.11399 | 0.11399 | 0.11399 | 0 | 0.023993 | 0.237753 | 1,531 | 68 | 61 | 22.514706 | 0.802913 | 0.02678 | 0 | 0.2 | 0 | 0 | 0.034274 | 0 | 0 | 0 | 0 | 0.014706 | 0.04 | 1 | 0.06 | false | 0 | 0.18 | 0 | 0.28 | 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 |
de2c8e9b9c6e19c480ce4554ef7d10bbf6e6fb7f | 3,667 | py | Python | crf/alphabet.py | Pandinosaurus/crf | af9dd46df11c5c92e7ddd4bbbbe25c5f5cd174d3 | [
"MIT"
] | 348 | 2015-03-18T11:49:46.000Z | 2022-01-31T04:53:19.000Z | crf/alphabet.py | Pandinosaurus/crf | af9dd46df11c5c92e7ddd4bbbbe25c5f5cd174d3 | [
"MIT"
] | 13 | 2015-03-26T09:05:37.000Z | 2021-09-07T16:42:35.000Z | crf/alphabet.py | Pandinosaurus/crf | af9dd46df11c5c92e7ddd4bbbbe25c5f5cd174d3 | [
"MIT"
] | 133 | 2015-01-24T12:24:16.000Z | 2022-03-04T21:29:08.000Z | class Alphabet:
"""
Bijective mapping from strings to integers.
>>> a = Alphabet()
>>> [a[x] for x in 'abcd']
[0, 1, 2, 3]
>>> list(map(a.lookup, range(4)))
['a', 'b', 'c', 'd']
>>> a.stop_growth()
>>> a['e']
>>> a.freeze()
>>> a.add('z')
Traceback (most recent call last)... | 25.643357 | 83 | 0.523316 | 470 | 3,667 | 3.929787 | 0.291489 | 0.059556 | 0.036816 | 0.019491 | 0.070384 | 0.038982 | 0.029237 | 0.029237 | 0 | 0 | 0 | 0.002957 | 0.354513 | 3,667 | 142 | 84 | 25.823944 | 0.777355 | 0.220616 | 0 | 0.089888 | 0 | 0 | 0.054513 | 0.009558 | 0 | 0 | 0 | 0 | 0.022472 | 1 | 0.258427 | false | 0 | 0 | 0.089888 | 0.483146 | 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 |
de3017970543cc57aeec45b6a4a407c4b0886617 | 4,560 | py | Python | Python/demos/vistemplate.py | hpbader42/Klampt | 89faaef942c0c6fca579a3770314c6610e2ac772 | [
"BSD-3-Clause"
] | null | null | null | Python/demos/vistemplate.py | hpbader42/Klampt | 89faaef942c0c6fca579a3770314c6610e2ac772 | [
"BSD-3-Clause"
] | null | null | null | Python/demos/vistemplate.py | hpbader42/Klampt | 89faaef942c0c6fca579a3770314c6610e2ac772 | [
"BSD-3-Clause"
] | 1 | 2019-07-01T08:48:32.000Z | 2019-07-01T08:48:32.000Z | #!/usr/bin/python
import sys
from klampt import *
from klampt import vis
from klampt.robotsim import setRandomSeed
from klampt.vis.glcommon import GLWidgetPlugin
from klampt import RobotPoser
from klampt.model import ik,coordinates
from klampt.math import so3
import time
import math
if __name__ == "__main__":
pri... | 32.112676 | 92 | 0.635526 | 614 | 4,560 | 4.705212 | 0.356678 | 0.005538 | 0.005192 | 0.024922 | 0.170993 | 0.126341 | 0.091727 | 0.06369 | 0.06369 | 0.025614 | 0 | 0.028514 | 0.230921 | 4,560 | 141 | 93 | 32.340426 | 0.795267 | 0.235088 | 0 | 0.153846 | 0 | 0 | 0.230909 | 0 | 0 | 0 | 0 | 0.007092 | 0 | 0 | null | null | 0 | 0.10989 | null | null | 0.10989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
de30651f98247b2f05725e1be38bf202162d0f38 | 833 | py | Python | pynemo/core/base/statement/statement.py | SSripilaipong/pynemo | f4dedd2599ec78b2ffe73f55b1d2b8b5da1b1e7f | [
"MIT"
] | null | null | null | pynemo/core/base/statement/statement.py | SSripilaipong/pynemo | f4dedd2599ec78b2ffe73f55b1d2b8b5da1b1e7f | [
"MIT"
] | null | null | null | pynemo/core/base/statement/statement.py | SSripilaipong/pynemo | f4dedd2599ec78b2ffe73f55b1d2b8b5da1b1e7f | [
"MIT"
] | null | null | null | from pynemo.core.base.abstract.expression import Expression
from pynemo.core.base.operation import CreateOperation, MatchOperation, ReturnOperation
class Statement(Expression):
def __init__(self):
self.operations = []
def match(self, *exp: Expression):
op = MatchOperation(*exp)
self.o... | 27.766667 | 87 | 0.635054 | 93 | 833 | 5.591398 | 0.387097 | 0.134615 | 0.098077 | 0.109615 | 0.232692 | 0.184615 | 0.184615 | 0.184615 | 0.184615 | 0.184615 | 0 | 0 | 0.248499 | 833 | 29 | 88 | 28.724138 | 0.830671 | 0 | 0 | 0.227273 | 0 | 0 | 0.003601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.090909 | 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 |
de35a0c445d96101339da5a119cdc78379984b0c | 1,072 | py | Python | pangeo_forge_recipes/recipes/__init__.py | rwegener2/pangeo-forge-recipes | 3e92db313dde3d1a59b0827e66dfbee274355e8a | [
"Apache-2.0"
] | null | null | null | pangeo_forge_recipes/recipes/__init__.py | rwegener2/pangeo-forge-recipes | 3e92db313dde3d1a59b0827e66dfbee274355e8a | [
"Apache-2.0"
] | null | null | null | pangeo_forge_recipes/recipes/__init__.py | rwegener2/pangeo-forge-recipes | 3e92db313dde3d1a59b0827e66dfbee274355e8a | [
"Apache-2.0"
] | null | null | null | from .base import BaseRecipe
from .reference_hdf_zarr import HDFReferenceRecipe
from .xarray_zarr import XarrayZarrRecipe
__all__ = ["BaseRecipe", "XarrayZarrRecipe", "HDFReferenceRecipe"]
def setup_logging(level: str = "INFO"):
"""A convenience function that sets up logging for developing and debugging recipes ... | 32.484848 | 99 | 0.691231 | 116 | 1,072 | 6.301724 | 0.612069 | 0.02736 | 0.071135 | 0.095759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190299 | 1,072 | 32 | 100 | 33.5 | 0.842166 | 0.238806 | 0 | 0 | 0 | 0 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.368421 | 0 | 0.421053 | 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 |
de3db4570b1ba1e27a47b6931222d85d97ecfcb0 | 4,689 | py | Python | tajm/core/models.py | madr/cautious-octo-succotash | 95c66655510807ffc0156639d808777b453afa8c | [
"BSD-3-Clause"
] | null | null | null | tajm/core/models.py | madr/cautious-octo-succotash | 95c66655510807ffc0156639d808777b453afa8c | [
"BSD-3-Clause"
] | null | null | null | tajm/core/models.py | madr/cautious-octo-succotash | 95c66655510807ffc0156639d808777b453afa8c | [
"BSD-3-Clause"
] | null | null | null | import datetime
from django.contrib.auth.models import User
from django.core.validators import MinValueValidator
from django.db import models
from rest_framework import serializers
def validate_duration(value):
if value % 15 != 0:
raise serializers.ValidationError('only even quarters allowed, for example... | 29.124224 | 102 | 0.653231 | 580 | 4,689 | 5.096552 | 0.208621 | 0.027064 | 0.046008 | 0.032476 | 0.600812 | 0.549053 | 0.508796 | 0.485792 | 0.332882 | 0.332882 | 0 | 0.015998 | 0.240136 | 4,689 | 160 | 103 | 29.30625 | 0.81364 | 0 | 0 | 0.517544 | 0 | 0 | 0.053743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087719 | false | 0 | 0.04386 | 0.035088 | 0.578947 | 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 |
de5033554f4fa77b99ef039754f86cf4936a26e7 | 435 | py | Python | tests/legacy/testConversion.py | EEmGuzman/orphics | f8f25f9db7c9104dba5cbeaac0b4924bf4f6920e | [
"BSD-2-Clause"
] | 10 | 2018-01-12T16:12:11.000Z | 2021-02-11T18:46:47.000Z | tests/legacy/testConversion.py | EEmGuzman/orphics | f8f25f9db7c9104dba5cbeaac0b4924bf4f6920e | [
"BSD-2-Clause"
] | 20 | 2016-11-17T20:20:53.000Z | 2021-02-02T10:08:38.000Z | tests/legacy/testConversion.py | EEmGuzman/orphics | f8f25f9db7c9104dba5cbeaac0b4924bf4f6920e | [
"BSD-2-Clause"
] | 17 | 2017-04-28T23:28:16.000Z | 2021-08-15T20:28:25.000Z | import ctypes
rootPath = "./"
deg2pix = ctypes.CDLL(rootPath + 'bin/deg2healpix.so')
deg2pix.getPixIndexEquatorial.argtypes = (ctypes.c_long, ctypes.c_double, ctypes.c_double)
ra = 30.
dec = -7.
nside = 2048
cnside = ctypes.c_long(nside)
pixE = deg2pix.getPixIndexEquatorial(cnside,ctypes.c_double(ra),ctypes.c_dou... | 21.75 | 90 | 0.758621 | 60 | 435 | 5.366667 | 0.4 | 0.173913 | 0.242236 | 0.139752 | 0.229814 | 0.229814 | 0.229814 | 0.229814 | 0.229814 | 0 | 0 | 0.030534 | 0.096552 | 435 | 19 | 91 | 22.894737 | 0.788804 | 0 | 0 | 0 | 0 | 0 | 0.046083 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.090909 | 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 |
de539e6581e6ae656d753233b91433258366cca7 | 2,936 | py | Python | test/environments/graphs/EIA/geninst.py | Multi-Agent-Research-Group/hog2 | 544d7c0e933fd69025944a0a3abcf9a40e59f0be | [
"MIT"
] | 5 | 2020-08-03T09:43:26.000Z | 2022-01-11T08:28:30.000Z | test/environments/graphs/EIA/geninst.py | Multi-Agent-Research-Group/hog2 | 544d7c0e933fd69025944a0a3abcf9a40e59f0be | [
"MIT"
] | null | null | null | test/environments/graphs/EIA/geninst.py | Multi-Agent-Research-Group/hog2 | 544d7c0e933fd69025944a0a3abcf9a40e59f0be | [
"MIT"
] | 7 | 2017-07-31T13:01:28.000Z | 2021-05-16T10:15:49.000Z | #!/usr/bin/python3
import random
s=[]
with open('dirstart.txt','r') as fp:
for line in fp:
s.append(int(line))
g=[]
with open('dirdest.txt','r') as fp:
for line in fp:
g.append(int(line))
v={}
with open('dirvertices.txt','r') as vfp:
for line in vfp:
l=line.split(' ')
v[int(l[0])]=[int(f) for f... | 20.531469 | 50 | 0.5 | 467 | 2,936 | 3.143469 | 0.184154 | 0.049046 | 0.036785 | 0.044959 | 0.702316 | 0.676431 | 0.661444 | 0.661444 | 0.596049 | 0.594687 | 0 | 0.020366 | 0.347752 | 2,936 | 142 | 51 | 20.676056 | 0.746214 | 0.043597 | 0 | 0.706897 | 0 | 0 | 0.038571 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.043103 | false | 0 | 0.017241 | 0.017241 | 0.103448 | 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 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de55ccffb4ac817249388ec3e6682a9687883f39 | 744 | py | Python | config.py | mihalw28/book_manager | 553397a4c25e5f90a02bd794722f77b423c346e5 | [
"MIT"
] | 1 | 2020-04-22T18:05:14.000Z | 2020-04-22T18:05:14.000Z | config.py | mihalw28/book_manager | 553397a4c25e5f90a02bd794722f77b423c346e5 | [
"MIT"
] | null | null | null | config.py | mihalw28/book_manager | 553397a4c25e5f90a02bd794722f77b423c346e5 | [
"MIT"
] | null | null | null | import os
from dotenv import load_dotenv
basedir = os.path.abspath(os.path.dirname(__file__))
load_dotenv(os.path.join(basedir, ".env"))
class Config(object):
SECRET_KEY = os.environ.get("SECRET_KEY") or "very-difficult-random-bstring"
SQLALCHEMY_DATABASE_URI = os.environ.get(
"DATABASE_U... | 23.25 | 81 | 0.676075 | 88 | 744 | 5.522727 | 0.488636 | 0.049383 | 0.12963 | 0.069959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216398 | 744 | 31 | 82 | 24 | 0.833619 | 0.053763 | 0 | 0.1 | 0 | 0 | 0.119225 | 0.043219 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
de577b38b5cdc1680791f4c8b92af51a26f13957 | 2,073 | py | Python | syft/utils.py | morgangiraud/PySyft | 79e0505a6e9ec2d78287d8c19b27bbac28455780 | [
"Apache-2.0"
] | 1 | 2018-03-19T01:40:01.000Z | 2018-03-19T01:40:01.000Z | syft/utils.py | morgangiraud/PySyft | 79e0505a6e9ec2d78287d8c19b27bbac28455780 | [
"Apache-2.0"
] | null | null | null | syft/utils.py | morgangiraud/PySyft | 79e0505a6e9ec2d78287d8c19b27bbac28455780 | [
"Apache-2.0"
] | null | null | null | from IPython.display import display
from IPython.html.widgets import IntProgress, HBox, HTML
import signal
import logging
class Progress(object):
def __init__(self,start,end):
self.pbar = IntProgress(orientation='horizontal',min=start, max=end)
self.ptext = HTML()
# Only way to place... | 34.55 | 175 | 0.603473 | 256 | 2,073 | 4.792969 | 0.386719 | 0.05216 | 0.061125 | 0.061125 | 0.277914 | 0.130399 | 0.130399 | 0.130399 | 0.130399 | 0.130399 | 0 | 0.010471 | 0.262904 | 2,073 | 60 | 176 | 34.55 | 0.792539 | 0.087795 | 0 | 0 | 0 | 0.04878 | 0.190678 | 0.084216 | 0 | 0 | 0 | 0 | 0 | 1 | 0.243902 | false | 0 | 0.097561 | 0 | 0.390244 | 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 |
de661357fc368e984d3bd475f947a99e2a8d2d1d | 1,323 | py | Python | src/viterbi/tests/testcases.py | gravitationalwavedc/gwlab-viterbi-cw | d9f2d248aeff81cf1572bc2227b85b3ad6941706 | [
"MIT"
] | null | null | null | src/viterbi/tests/testcases.py | gravitationalwavedc/gwlab-viterbi-cw | d9f2d248aeff81cf1572bc2227b85b3ad6941706 | [
"MIT"
] | null | null | null | src/viterbi/tests/testcases.py | gravitationalwavedc/gwlab-viterbi-cw | d9f2d248aeff81cf1572bc2227b85b3ad6941706 | [
"MIT"
] | null | null | null | from django.test import testcases
from graphql_jwt.testcases import JSONWebTokenClient
from gw_viterbi.schema import schema
from graphql_jwt.shortcuts import get_token
from graphql_jwt.settings import jwt_settings
class ViterbiJSONWebTokenClient(JSONWebTokenClient):
"""Viterbi test client with a custom authentica... | 30.767442 | 97 | 0.710506 | 159 | 1,323 | 5.773585 | 0.45912 | 0.04793 | 0.045752 | 0.058824 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001949 | 0.22449 | 1,323 | 42 | 98 | 31.5 | 0.892788 | 0.429327 | 0 | 0 | 0 | 0 | 0.021771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.6875 | 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 |
de6689bd2abb8dd8ca547147f341bb19f563f41c | 2,100 | py | Python | tests/test_clones.py | mar10/nutree | 1df672fa129c20f0ee69f91cf41bd0a332899126 | [
"MIT"
] | 7 | 2021-12-27T12:33:22.000Z | 2022-03-13T17:57:48.000Z | tests/test_clones.py | mar10/nutree | 1df672fa129c20f0ee69f91cf41bd0a332899126 | [
"MIT"
] | null | null | null | tests/test_clones.py | mar10/nutree | 1df672fa129c20f0ee69f91cf41bd0a332899126 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# (c) 2021-2022 Martin Wendt; see https://github.com/mar10/nutree
# Licensed under the MIT license: https://www.opensource.org/licenses/mit-license.php
"""
"""
import pytest
from nutree import AmbiguousMatchError, Node, Tree
from . import fixture
class TestClones:
def setup_method(self):... | 27.631579 | 85 | 0.579524 | 272 | 2,100 | 4.404412 | 0.330882 | 0.082638 | 0.050083 | 0.092654 | 0.277963 | 0.206177 | 0.128548 | 0.128548 | 0.128548 | 0.128548 | 0 | 0.024766 | 0.288571 | 2,100 | 75 | 86 | 28 | 0.777108 | 0.285238 | 0 | 0 | 0 | 0 | 0.045671 | 0 | 0 | 0 | 0 | 0 | 0.487179 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.179487 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de8a1a7740355e5f72bf0ff6c0e68e368f63fb80 | 1,254 | py | Python | player.py | ask5/bowling | c710150511b6f28a49793a3837a6fa618ced9982 | [
"MIT"
] | null | null | null | player.py | ask5/bowling | c710150511b6f28a49793a3837a6fa618ced9982 | [
"MIT"
] | null | null | null | player.py | ask5/bowling | c710150511b6f28a49793a3837a6fa618ced9982 | [
"MIT"
] | null | null | null |
class Player(object):
def __init__(self):
self.name = None
self.results = dict()
self.rolls = []
self.scores = dict()
#
# set pins scores for a frame.
#
def set_result(self, frame, result):
self.results[frame] = result
def calculate_scor... | 33 | 121 | 0.531898 | 133 | 1,254 | 4.87218 | 0.345865 | 0.125 | 0.194444 | 0.087963 | 0.307099 | 0.259259 | 0.259259 | 0.259259 | 0.16358 | 0 | 0 | 0.01519 | 0.370016 | 1,254 | 37 | 122 | 33.891892 | 0.805063 | 0.061404 | 0 | 0 | 0 | 0 | 0.035398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0 | 0 | 0.16 | 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 |
de8d4d0b4640c55ef69f2c08776992aa5fbd6983 | 545 | py | Python | molmap/data-processing/pubchem/03_statistics_NumOnBits.py | riversdark/bidd-molmap | 7e3325433e2f29c189161859c63398574af6572b | [
"MIT"
] | 75 | 2020-07-07T01:18:30.000Z | 2022-03-25T13:40:19.000Z | molmap/data-processing/pubchem/03_statistics_NumOnBits.py | lfc350760007/bidd-molmap | 2a157dfdaec6f2c7952bafe3da95d78958a54f48 | [
"MIT"
] | 12 | 2020-09-28T14:11:17.000Z | 2022-02-10T04:33:25.000Z | molmap/data-processing/pubchem/03_statistics_NumOnBits.py | lfc350760007/bidd-molmap | 2a157dfdaec6f2c7952bafe3da95d78958a54f48 | [
"MIT"
] | 24 | 2020-07-22T08:52:59.000Z | 2022-03-14T09:59:44.000Z | import numpy as np
import pandas as pd
from tqdm import tqdm
from joblib import Parallel, delayed
import os
bitsize = 1024
total_sample = 110913349
data_save_folder = './data'
file = './data/%s_%s.npy' % (total_sample, bitsize)
f = np.memmap(file, dtype = np.bool, shape = (total_sample, bitsize))
def _sum(memmap... | 20.185185 | 80 | 0.697248 | 88 | 545 | 4.159091 | 0.545455 | 0.150273 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032397 | 0.150459 | 545 | 27 | 81 | 20.185185 | 0.758099 | 0 | 0 | 0 | 0 | 0 | 0.097248 | 0.047706 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0.0625 | 0.4375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dea7f94a8c86176785d44601995210a4470d3d5e | 3,132 | py | Python | f1_solver_test.py | Weilando/f1_solver | 7fde7ad38a07eb7f5bdf7f64d21875a7e2461f32 | [
"MIT"
] | null | null | null | f1_solver_test.py | Weilando/f1_solver | 7fde7ad38a07eb7f5bdf7f64d21875a7e2461f32 | [
"MIT"
] | null | null | null | f1_solver_test.py | Weilando/f1_solver | 7fde7ad38a07eb7f5bdf7f64d21875a7e2461f32 | [
"MIT"
] | null | null | null | # python -m f1_solver_test
import unittest
import numpy as np
import numpy.testing as npt
import f1_solver
from pulp import getSolver
class TestF1Solver(unittest.TestCase):
def test_check_shapes_correct(self):
C, V = np.zeros((3)), np.ones((5,3))
nums = np.array([3, 5])
f1_solver.check_sha... | 34.417582 | 78 | 0.60728 | 504 | 3,132 | 3.559524 | 0.178571 | 0.084727 | 0.040134 | 0.089744 | 0.595875 | 0.541249 | 0.505574 | 0.458194 | 0.415273 | 0.311594 | 0 | 0.058898 | 0.24106 | 3,132 | 90 | 79 | 34.8 | 0.695835 | 0.033844 | 0 | 0.236111 | 0 | 0 | 0.005296 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 1 | 0.208333 | false | 0 | 0.069444 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dea869d13c310f4cbac2995f257eacc26c31160a | 2,244 | py | Python | students/k3342/laboratory_works/Reybandt Alexandr/laboratiry_work_1/hwboard/hw/migrations/0001_initial.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 10 | 2020-03-20T09:06:12.000Z | 2021-07-27T13:06:02.000Z | students/k3342/laboratory_works/Reybandt Alexandr/laboratiry_work_1/hwboard/hw/migrations/0001_initial.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 134 | 2020-03-23T09:47:48.000Z | 2022-03-12T01:05:19.000Z | students/k3342/laboratory_works/Reybandt Alexandr/laboratiry_work_1/hwboard/hw/migrations/0001_initial.py | TonikX/ITMO_ICT_-WebProgramming_2020 | ba566c1b3ab04585665c69860b713741906935a0 | [
"MIT"
] | 71 | 2020-03-20T12:45:56.000Z | 2021-10-31T19:22:25.000Z | # Generated by Django 3.0.4 on 2020-04-19 18:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 45.795918 | 169 | 0.604278 | 229 | 2,244 | 5.746725 | 0.471616 | 0.117021 | 0.031915 | 0.050152 | 0.267477 | 0.267477 | 0.267477 | 0.267477 | 0.203647 | 0.203647 | 0 | 0.014988 | 0.256684 | 2,244 | 48 | 170 | 46.75 | 0.773981 | 0.020053 | 0 | 0.292683 | 1 | 0 | 0.187528 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.097561 | 0 | 0.195122 | 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 |
deaee3c534beccc7b2758b32e4e770ef1ff8fb71 | 1,555 | py | Python | Chapter 3-Regression/5.py | FatiniNadhirah5/Datacamp-Machine-Learning-with-Apache-Spark-2019 | a0ef5f34c5a0aea222359a5085386f6a21611e7e | [
"FSFAP"
] | 8 | 2020-05-02T20:24:38.000Z | 2021-04-30T21:44:22.000Z | Chapter 3-Regression/5.py | FatiniNadhirah5/Machine-Learning-with-Apache-Spark | a0ef5f34c5a0aea222359a5085386f6a21611e7e | [
"FSFAP"
] | null | null | null | Chapter 3-Regression/5.py | FatiniNadhirah5/Machine-Learning-with-Apache-Spark | a0ef5f34c5a0aea222359a5085386f6a21611e7e | [
"FSFAP"
] | 9 | 2020-05-17T17:44:37.000Z | 2022-03-20T12:58:42.000Z | # Exercise
# Exercise
# Interpreting coefficients
# Remember that origin airport, org, has eight possible values (ORD, SFO, JFK, LGA, SMF, SJC, TUS and OGG) which have been one-hot encoded to seven dummy variables in org_dummy.
# The values for km and org_dummy have been assembled into features, which has eight column... | 33.804348 | 177 | 0.763344 | 264 | 1,555 | 4.473485 | 0.439394 | 0.040644 | 0.020322 | 0.038103 | 0.181202 | 0.120237 | 0.081287 | 0.081287 | 0.081287 | 0 | 0 | 0.014879 | 0.178778 | 1,555 | 46 | 178 | 33.804348 | 0.903681 | 0.789711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
deb0004a1240c281e46dafa34e244752a79a230c | 175 | py | Python | fairseq/RL/__init__.py | Joshwlks/RL-SLT | 65828bbcdb2cdd9c9d56c38e64ea7887e4c1db50 | [
"MIT"
] | 2 | 2022-03-02T16:24:35.000Z | 2022-03-04T11:15:54.000Z | fairseq/RL/__init__.py | Joshwlks/RL-SLT | 65828bbcdb2cdd9c9d56c38e64ea7887e4c1db50 | [
"MIT"
] | null | null | null | fairseq/RL/__init__.py | Joshwlks/RL-SLT | 65828bbcdb2cdd9c9d56c38e64ea7887e4c1db50 | [
"MIT"
] | null | null | null | import logging
from gym.envs.registration import register
logger = logging.getLogger(__name__)
register(
id="EnFrSNmtEnv-v0",
entry_point="fairseq.RL.env:SNmtEnv"
) | 17.5 | 42 | 0.76 | 22 | 175 | 5.818182 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.131429 | 175 | 10 | 43 | 17.5 | 0.835526 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 0.125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
deb26328154cd8895b42ecec0905f9ad137fb20c | 7,432 | py | Python | timeseries_plot.py | savantas/MAIMS | e4640df7519699b1839bbbf1748c7b49dc46d15d | [
"BSD-3-Clause"
] | 3 | 2017-09-06T00:49:29.000Z | 2018-02-06T16:42:34.000Z | timeseries_plot.py | savantas/MAIMS | e4640df7519699b1839bbbf1748c7b49dc46d15d | [
"BSD-3-Clause"
] | null | null | null | timeseries_plot.py | savantas/MAIMS | e4640df7519699b1839bbbf1748c7b49dc46d15d | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Authors: Dries Verdegem <dries.verdegem@vib-kuleuven.be>
#
# License: BSD 3 clause
"""
timeseries_plot.py generates a pdf plot of time resolved
isotopologue profile MAIMS deconvolution data.
Copyright (C) 2017 Dries Verdegem and VIB - KU Leuven (BSD-3)
Usage:
timese... | 31.760684 | 118 | 0.56176 | 879 | 7,432 | 4.555176 | 0.303754 | 0.029221 | 0.025974 | 0.037962 | 0.260739 | 0.195055 | 0.136613 | 0.101648 | 0.080669 | 0.051449 | 0 | 0.024572 | 0.315527 | 7,432 | 234 | 119 | 31.760684 | 0.762532 | 0.240312 | 0 | 0.194245 | 1 | 0.007194 | 0.185399 | 0.005421 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021583 | false | 0 | 0.035971 | 0 | 0.071942 | 0.179856 | 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 |
deb2e0fd31ed60d623f7673db48d0e76048cee39 | 488 | py | Python | RestMusic/apps/index/urls.py | xeroCBW/testmodel | 6000d79f91d11bcf6ba76befb3a94a007231ecdc | [
"MIT"
] | null | null | null | RestMusic/apps/index/urls.py | xeroCBW/testmodel | 6000d79f91d11bcf6ba76befb3a94a007231ecdc | [
"MIT"
] | 54 | 2020-06-24T07:12:19.000Z | 2022-03-12T00:43:57.000Z | RestMusic/apps/index/urls.py | xeroCBW/testmodel | 6000d79f91d11bcf6ba76befb3a94a007231ecdc | [
"MIT"
] | null | null | null | from rest_framework.documentation import include_docs_urls
from rest_framework.routers import DefaultRouter
from django.urls import path,include
from .views import *
router = DefaultRouter()
router.register('label',LableViewSet ,base_name='label')
router.register('song',SongViewSet ,base_name='song')
router.register... | 25.684211 | 62 | 0.786885 | 58 | 488 | 6.482759 | 0.448276 | 0.148936 | 0.090426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088115 | 488 | 18 | 63 | 27.111111 | 0.844944 | 0 | 0 | 0 | 0 | 0 | 0.094262 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dec27c0c5fda48ba5120117b34bcc8b27a8f4d9c | 4,468 | py | Python | dialogue-engine/test/programytest/parser/template/graph_tests/test_resetlearn.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 104 | 2020-03-30T09:40:00.000Z | 2022-03-06T22:34:25.000Z | dialogue-engine/test/programytest/parser/template/graph_tests/test_resetlearn.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 25 | 2020-06-12T01:36:35.000Z | 2022-02-19T07:30:44.000Z | dialogue-engine/test/programytest/parser/template/graph_tests/test_resetlearn.py | cotobadesign/cotoba-agent-oss | 3833d56e79dcd7529c3e8b3a3a8a782d513d9b12 | [
"MIT"
] | 10 | 2020-04-02T23:43:56.000Z | 2021-05-14T13:47:01.000Z | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | 36.325203 | 126 | 0.647941 | 471 | 4,468 | 6.04034 | 0.333333 | 0.042531 | 0.037961 | 0.059051 | 0.500527 | 0.458348 | 0.413357 | 0.413357 | 0.413357 | 0.413357 | 0 | 0.007929 | 0.266115 | 4,468 | 122 | 127 | 36.622951 | 0.859713 | 0.23769 | 0 | 0.716049 | 0 | 0 | 0.294585 | 0.016186 | 0 | 0 | 0 | 0 | 0.185185 | 1 | 0.049383 | false | 0 | 0.061728 | 0 | 0.123457 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dec72b55f18c7ac87a5b9afabfd5864f9b22a1a0 | 3,170 | py | Python | COMSC-020/Chapter 19. Inheritance/accounts.py | H2u-Hwng/EVC | c650fe7356a333011514cf9025dfd97bf71b1de3 | [
"MIT"
] | null | null | null | COMSC-020/Chapter 19. Inheritance/accounts.py | H2u-Hwng/EVC | c650fe7356a333011514cf9025dfd97bf71b1de3 | [
"MIT"
] | null | null | null | COMSC-020/Chapter 19. Inheritance/accounts.py | H2u-Hwng/EVC | c650fe7356a333011514cf9025dfd97bf71b1de3 | [
"MIT"
] | null | null | null | # https://docs.google.com/document/d/1Ljm9S29J-mFOZ3fwrkGohMDrn9fORVteWjzucuZfyaM/edit?usp=sharing
# Huu Hung Nguyen
# 12/12/2021
# Nguyen_HuuHung_accounts.py
# The program stores the Account class, the SavingAccount class, and
# the CreditCardAccount class.
class Account:
''' Account class for representing and
... | 30.480769 | 98 | 0.566877 | 327 | 3,170 | 5.327217 | 0.217125 | 0.088404 | 0.045924 | 0.03961 | 0.567164 | 0.531573 | 0.476464 | 0.34558 | 0.250287 | 0.250287 | 0 | 0.019195 | 0.326183 | 3,170 | 103 | 99 | 30.776699 | 0.796348 | 0.308833 | 0 | 0.347826 | 0 | 0 | 0.076553 | 0.012037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.23913 | false | 0 | 0 | 0 | 0.478261 | 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 |
dec76fcceb2abebe3d955ead7a3df182e5e0d9a3 | 9,681 | py | Python | amd64-linux/lib/python/alpha_commands.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | 1 | 2020-06-15T10:41:18.000Z | 2020-06-15T10:41:18.000Z | amd64-linux/lib/python/alpha_commands.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | null | null | null | amd64-linux/lib/python/alpha_commands.py | qiyancos/Simics-3.0.31 | 9bd52d5abad023ee87a37306382a338abf7885f1 | [
"BSD-4-Clause",
"FSFAP"
] | 3 | 2020-08-10T10:25:02.000Z | 2021-09-12T01:12:09.000Z | from cli import *
import string
import sim_commands
# ==============================================================================
#
# STATIC DATA
#
# ==============================================================================
# ==============================================================================
#
#... | 35.461538 | 150 | 0.618634 | 1,337 | 9,681 | 4.201197 | 0.172027 | 0.021364 | 0.0235 | 0.027417 | 0.496172 | 0.440627 | 0.385793 | 0.371551 | 0.307816 | 0.261706 | 0 | 0.01004 | 0.1975 | 9,681 | 272 | 151 | 35.591912 | 0.712962 | 0.089144 | 0 | 0.35 | 0 | 0 | 0.260014 | 0.025944 | 0 | 0 | 0.000569 | 0 | 0.02 | 0 | null | null | 0.01 | 0.02 | null | null | 0.105 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
dec92cf07f0cbe84a5505a19a89f05c132ccaaae | 5,294 | py | Python | type_assist/model_tf.py | eric-yates/TypeAssist | 064211067c0ae3c57e2dce3a66a27750f7c66ad6 | [
"Apache-2.0"
] | 1 | 2020-08-15T07:25:54.000Z | 2020-08-15T07:25:54.000Z | type_assist/model_tf.py | eric-yates/TypeAssist | 064211067c0ae3c57e2dce3a66a27750f7c66ad6 | [
"Apache-2.0"
] | null | null | null | type_assist/model_tf.py | eric-yates/TypeAssist | 064211067c0ae3c57e2dce3a66a27750f7c66ad6 | [
"Apache-2.0"
] | null | null | null | from type_assist.config import config
from abc import ABC
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Input, Dense, CuDNNLSTM, Embedding, Dropout, Bidirectional, Concatenate
import tensorflow as tf
import logging
import re
import os
class MetaModelTF(ABC):
def __init__(self):... | 28.159574 | 112 | 0.58198 | 590 | 5,294 | 4.937288 | 0.228814 | 0.030209 | 0.02918 | 0.023687 | 0.169241 | 0.135599 | 0.112599 | 0.112599 | 0.085822 | 0.085822 | 0 | 0.003593 | 0.316585 | 5,294 | 188 | 113 | 28.159574 | 0.801548 | 0 | 0 | 0.118812 | 0 | 0 | 0.059903 | 0.007059 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.029703 | 0.079208 | 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 |
ded82a6688528b8dfc408a34e13724c0fe7b4a1b | 2,301 | py | Python | lostit/email.py | caltechlibrary/lostit | a0402b6d2783e80b0991ec2e6176d5f9dd6c3cae | [
"BSD-3-Clause"
] | 2 | 2019-06-02T14:31:25.000Z | 2020-11-18T04:29:01.000Z | lostit/email.py | caltechlibrary/lostit | a0402b6d2783e80b0991ec2e6176d5f9dd6c3cae | [
"BSD-3-Clause"
] | 4 | 2019-09-11T02:51:00.000Z | 2019-11-17T21:52:18.000Z | lostit/email.py | caltechlibrary/lostit | a0402b6d2783e80b0991ec2e6176d5f9dd6c3cae | [
"BSD-3-Clause"
] | null | null | null | '''
email.py: utility code to send email
Authors
-------
Michael Hucka <mhucka@caltech.edu> -- Caltech Library
Copyright
---------
Copyright (c) 2019 by the California Institute of Technology. This code is
open-source software released under a 3-clause BSD license. Please see the
file "LICENSE" for more informati... | 33.838235 | 186 | 0.655367 | 288 | 2,301 | 5.163194 | 0.517361 | 0.03766 | 0.017485 | 0.028245 | 0.141224 | 0.141224 | 0.141224 | 0.141224 | 0.141224 | 0.141224 | 0 | 0.024283 | 0.212516 | 2,301 | 67 | 187 | 34.343284 | 0.796358 | 0.497175 | 0 | 0.066667 | 0 | 0 | 0.012444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.066667 | 0.266667 | 0 | 0.366667 | 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 |
dedeccfa9d388fa516714c6650c342e771f2ed03 | 1,242 | py | Python | vespa/interfaces/inline/siemens/xmlrpc_projects/xmlrpc_server_vespa_Py2_2018_06_10/test_simple_server.py | vespa-mrs/vespa | 6d3e84a206ec427ac1304e70c7fadf817432956b | [
"BSD-3-Clause"
] | null | null | null | vespa/interfaces/inline/siemens/xmlrpc_projects/xmlrpc_server_vespa_Py2_2018_06_10/test_simple_server.py | vespa-mrs/vespa | 6d3e84a206ec427ac1304e70c7fadf817432956b | [
"BSD-3-Clause"
] | 4 | 2021-04-17T13:58:31.000Z | 2022-01-20T14:19:57.000Z | vespa/interfaces/inline/siemens/xmlrpc_projects/xmlrpc_server_vespa/test_simple_server.py | vespa-mrs/vespa | 6d3e84a206ec427ac1304e70c7fadf817432956b | [
"BSD-3-Clause"
] | 3 | 2021-06-05T16:34:57.000Z | 2022-01-19T16:13:22.000Z | #!/usr/bin/env python
import xmlrpclib
from SimpleXMLRPCServer import SimpleXMLRPCServer
# Create server
server = SimpleXMLRPCServer(("127.0.0.1", 8080), logRequests=True, allow_none=True)
server.register_introspection_functions()
def adder_function(x,y):
val = x+y
return val
server.register_function(adder... | 23 | 83 | 0.652979 | 171 | 1,242 | 4.637427 | 0.526316 | 0.017654 | 0.075662 | 0.105927 | 0.102144 | 0.102144 | 0.102144 | 0 | 0 | 0 | 0 | 0.014941 | 0.245572 | 1,242 | 53 | 84 | 23.433962 | 0.831377 | 0.141707 | 0 | 0 | 0 | 0 | 0.187141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.037037 | 0.074074 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dee083e1db0dcb61ef3da51fd1cc556eafec9468 | 2,440 | py | Python | diplomacy_research/proto/tensorflow_serving/core/test_util/fake_loader_source_adapter_pb2.py | wwongkamjan/dipnet_press | 787263c1b9484698904f525c8d78d0e333e1c0d9 | [
"MIT"
] | 39 | 2019-09-06T13:42:24.000Z | 2022-03-18T18:38:43.000Z | diplomacy_research/proto/tensorflow_serving/core/test_util/fake_loader_source_adapter_pb2.py | wwongkamjan/dipnet_press | 787263c1b9484698904f525c8d78d0e333e1c0d9 | [
"MIT"
] | 9 | 2019-09-19T22:35:32.000Z | 2022-02-24T18:04:57.000Z | diplomacy_research/proto/tensorflow_serving/core/test_util/fake_loader_source_adapter_pb2.py | wwongkamjan/dipnet_press | 787263c1b9484698904f525c8d78d0e333e1c0d9 | [
"MIT"
] | 8 | 2019-10-16T21:09:14.000Z | 2022-02-23T05:20:37.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tensorflow_serving/core/test_util/fake_loader_source_adapter.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _mes... | 34.857143 | 218 | 0.80041 | 277 | 2,440 | 6.729242 | 0.404332 | 0.038627 | 0.040236 | 0.040773 | 0.209764 | 0.180794 | 0.180794 | 0.11427 | 0.11427 | 0.061159 | 0 | 0.018149 | 0.096721 | 2,440 | 69 | 219 | 35.362319 | 0.827586 | 0.123361 | 0 | 0.16 | 1 | 0.02 | 0.278012 | 0.255509 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dee3472a5887b3f9eefc342267d4bf82dbcd3efd | 15,020 | py | Python | cloudbot/event.py | gabriel-cr/discord.py | 9a33fa89146c96394f62ee6c4165aa31f0d6da94 | [
"MIT"
] | null | null | null | cloudbot/event.py | gabriel-cr/discord.py | 9a33fa89146c96394f62ee6c4165aa31f0d6da94 | [
"MIT"
] | null | null | null | cloudbot/event.py | gabriel-cr/discord.py | 9a33fa89146c96394f62ee6c4165aa31f0d6da94 | [
"MIT"
] | 2 | 2018-10-09T15:42:59.000Z | 2019-02-11T07:16:00.000Z | import asyncio
import enum
import logging
import concurrent.futures
logger = logging.getLogger("cloudbot")
@enum.unique
class EventType(enum.Enum):
message = 0
action = 1
# TODO: Do we actually want to have a 'notice' event type? Should the NOTICE command be a 'message' type?
notice = 2
join = 3
... | 39.630607 | 131 | 0.617244 | 1,992 | 15,020 | 4.561245 | 0.13002 | 0.035659 | 0.008805 | 0.01849 | 0.539952 | 0.48096 | 0.439577 | 0.401937 | 0.384988 | 0.373322 | 0 | 0.001333 | 0.300732 | 15,020 | 378 | 132 | 39.73545 | 0.863753 | 0.084354 | 0 | 0.245509 | 0 | 0 | 0.074101 | 0 | 0 | 0 | 0 | 0.002646 | 0 | 0 | null | null | 0 | 0.023952 | 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 |
dee7696ffd84e84af51a9763ee5d5792b9d7e8d1 | 247 | py | Python | PHASE_1/API_SourceCode/DReport/gunsetting.py | unsw-se3011/SENG3011_Neon | 6ea05b62a470538b72ae1397ce6d29e41142945a | [
"MIT"
] | 1 | 2021-05-01T05:11:42.000Z | 2021-05-01T05:11:42.000Z | PHASE_1/API_SourceCode/DReport/gunsetting.py | unsw-se3011/SENG3011_Neon | 6ea05b62a470538b72ae1397ce6d29e41142945a | [
"MIT"
] | null | null | null | PHASE_1/API_SourceCode/DReport/gunsetting.py | unsw-se3011/SENG3011_Neon | 6ea05b62a470538b72ae1397ce6d29e41142945a | [
"MIT"
] | 3 | 2020-04-29T08:49:29.000Z | 2021-06-04T03:14:08.000Z | import multiprocessing
bind = "0.0.0.0:8000"
workers = multiprocessing.cpu_count() * 2 + 1
threads = workers*3
# accesslog = '/tmp/accesslog.txt'
# access_log_format = 'Neon (Outbreak News Today) %(h)s %(u)s %(t)s %(m)s Resopnse: %(s)s "%(q)s"'
| 27.444444 | 98 | 0.659919 | 41 | 247 | 3.902439 | 0.707317 | 0.0375 | 0.0375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051887 | 0.1417 | 247 | 8 | 99 | 30.875 | 0.70283 | 0.522267 | 0 | 0 | 0 | 0 | 0.104348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
def07d98a2193c38bcb475fadea91f5a437670c8 | 5,228 | py | Python | setuper desktop app/gui/dialogs/weblogindialog.py | dragondjf/CloudSetuper | 31aefe629f7f2d59d287981eda3e4e618ace9e9f | [
"MIT"
] | 22 | 2015-01-08T12:54:20.000Z | 2021-05-16T04:15:45.000Z | setuper desktop app/gui/dialogs/weblogindialog.py | dragondjf/CloudSetuper | 31aefe629f7f2d59d287981eda3e4e618ace9e9f | [
"MIT"
] | null | null | null | setuper desktop app/gui/dialogs/weblogindialog.py | dragondjf/CloudSetuper | 31aefe629f7f2d59d287981eda3e4e618ace9e9f | [
"MIT"
] | 11 | 2015-01-25T01:26:45.000Z | 2021-08-18T01:40:40.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
from PyQt5 import QtGui
from PyQt5 import QtCore
from PyQt5 import QtWidgets
import requests
from dataBase import signal_DB
import threading
from Crypto.Hash import MD5
if __name__ == '__main__':
from basedialog import BaseDialog
else:
from .basedialog import ... | 35.564626 | 134 | 0.638294 | 578 | 5,228 | 5.657439 | 0.292388 | 0.03578 | 0.07737 | 0.029358 | 0.124771 | 0.069725 | 0.045872 | 0.045872 | 0.023242 | 0 | 0 | 0.021479 | 0.234124 | 5,228 | 146 | 135 | 35.808219 | 0.795205 | 0.015494 | 0 | 0.058824 | 0 | 0 | 0.072444 | 0.013242 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.092437 | 0.092437 | 0 | 0.184874 | 0.016807 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
def86d77f683d6a073239306467a5171291104e4 | 5,926 | py | Python | tests/test_density_GaussianDensity.py | SyedZiaul/freud | 04bcf9b3bcf45c14b05872205eb16205b2dbcf60 | [
"BSD-3-Clause"
] | 172 | 2018-11-24T03:07:53.000Z | 2022-02-24T17:18:15.000Z | tests/test_density_GaussianDensity.py | SyedZiaul/freud | 04bcf9b3bcf45c14b05872205eb16205b2dbcf60 | [
"BSD-3-Clause"
] | 631 | 2019-01-23T17:49:33.000Z | 2022-03-28T19:46:36.000Z | tests/test_density_GaussianDensity.py | SyedZiaul/freud | 04bcf9b3bcf45c14b05872205eb16205b2dbcf60 | [
"BSD-3-Clause"
] | 30 | 2019-07-24T07:57:06.000Z | 2022-02-25T10:58:19.000Z | import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import numpy.testing as npt
import pytest
import freud
matplotlib.use("agg")
class TestGaussianDensity:
def test_random_point_with_cell_list(self):
fftpack = pytest.importorskip("scipy.fftpack")
fft = fftpack.fft
fftshi... | 35.48503 | 88 | 0.595849 | 797 | 5,926 | 4.284818 | 0.160602 | 0.055344 | 0.086969 | 0.055637 | 0.733821 | 0.66735 | 0.66735 | 0.649195 | 0.620791 | 0.620791 | 0 | 0.033261 | 0.304927 | 5,926 | 166 | 89 | 35.698795 | 0.795824 | 0.118124 | 0 | 0.606299 | 0 | 0 | 0.003646 | 0 | 0 | 0 | 0 | 0 | 0.086614 | 1 | 0.062992 | false | 0 | 0.055118 | 0 | 0.125984 | 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 |
7204f1bc686d9ebc3746eee09a80b40d19e58cdf | 5,737 | py | Python | src/dataset_utility.py | vikasg603/Thesis_KSH | c31cf032c8b6a2e977b30c5bc38db63a5e77aeb3 | [
"MIT"
] | 19 | 2020-02-15T16:31:03.000Z | 2022-03-08T20:53:00.000Z | src/dataset_utility.py | vikasg603/Thesis_KSH | c31cf032c8b6a2e977b30c5bc38db63a5e77aeb3 | [
"MIT"
] | 3 | 2020-02-20T09:49:40.000Z | 2020-09-08T14:26:29.000Z | src/dataset_utility.py | vikasg603/Thesis_KSH | c31cf032c8b6a2e977b30c5bc38db63a5e77aeb3 | [
"MIT"
] | 8 | 2020-02-19T14:43:33.000Z | 2022-01-17T21:35:55.000Z | from os.path import basename, splitext
import cv2
import json
from src.img_utility import BBCor_to_pts, vertices_rearange
# return a list of BB coordinates [[x1, y1], [x2, y2]]
def CCPD_BBCor_info(img_path):
img_path = basename(img_path)
BBCor = img_path.split('-')[2].split('_')
return [map(int, BBCor[0... | 37.993377 | 100 | 0.626111 | 878 | 5,737 | 3.911162 | 0.190205 | 0.046884 | 0.06523 | 0.066395 | 0.518637 | 0.488061 | 0.452533 | 0.452533 | 0.433314 | 0.405358 | 0 | 0.024659 | 0.208297 | 5,737 | 151 | 101 | 37.993377 | 0.731396 | 0.137703 | 0 | 0.346939 | 0 | 0 | 0.119786 | 0.029891 | 0 | 0 | 0 | 0 | 0.020408 | 0 | null | null | 0 | 0.040816 | null | null | 0.010204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7211e5dfc20f58226bb8295acf294e31bd416be2 | 5,562 | py | Python | tweethealth/tests/health_rating_test.py | gchaturvedi/tweethealth | 4652e791bca3f4c107182d291f2ccf8205c0b442 | [
"MIT"
] | null | null | null | tweethealth/tests/health_rating_test.py | gchaturvedi/tweethealth | 4652e791bca3f4c107182d291f2ccf8205c0b442 | [
"MIT"
] | null | null | null | tweethealth/tests/health_rating_test.py | gchaturvedi/tweethealth | 4652e791bca3f4c107182d291f2ccf8205c0b442 | [
"MIT"
] | null | null | null | """
This file contains tests for the update_health_rating view function.
It uses the mock library to mock out some of the messaging that happens
with Twitter, instead of interacting it Twitter it uses mock or fake data.
"""
import json
import mock
from django.test import TestCase
from django.test.client import Client... | 39.728571 | 105 | 0.676016 | 700 | 5,562 | 5.204286 | 0.172857 | 0.069997 | 0.075762 | 0.06588 | 0.709031 | 0.668405 | 0.525117 | 0.467197 | 0.467197 | 0.398573 | 0 | 0.021628 | 0.226897 | 5,562 | 139 | 106 | 40.014388 | 0.825581 | 0.229953 | 0 | 0.257576 | 0 | 0 | 0.22992 | 0.107775 | 0 | 0 | 0 | 0 | 0.257576 | 1 | 0.227273 | false | 0 | 0.106061 | 0 | 0.409091 | 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 |
7215b0b9debba1eeab6ef7a0e4f1a7e0e3ab8208 | 555 | py | Python | treelib_example/level_traverse.py | Sean10/Algorithm_code | 46ff1cb5b81400cbcc324dabdf4298bf7a55e5eb | [
"BSD-3-Clause"
] | null | null | null | treelib_example/level_traverse.py | Sean10/Algorithm_code | 46ff1cb5b81400cbcc324dabdf4298bf7a55e5eb | [
"BSD-3-Clause"
] | 7 | 2021-03-19T04:41:21.000Z | 2021-10-19T15:46:36.000Z | treelib_example/level_traverse.py | Sean10/Algorithm_code | 46ff1cb5b81400cbcc324dabdf4298bf7a55e5eb | [
"BSD-3-Clause"
] | null | null | null |
import treelib
# 来自[What is the most efficient way to get all nodes in a certain depth · Issue \#147 · caesar0301/treelib](https://github.com/caesar0301/treelib/issues/147)
# 只是主要代码的样例
def level_traverse():
crush_tree = treelib.Tree()
for i in range(crush_tree.depth(), -1, -1):
print(list(crush_tre... | 27.75 | 157 | 0.695495 | 90 | 555 | 4.166667 | 0.488889 | 0.168 | 0.149333 | 0.058667 | 0.442667 | 0.442667 | 0.442667 | 0.442667 | 0.442667 | 0.442667 | 0 | 0.038793 | 0.163964 | 555 | 19 | 158 | 29.210526 | 0.765086 | 0.302703 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.375 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
721a92d2e7ecd340717550a9425ae1b88cc8f75f | 2,459 | py | Python | devitoboundary/stencils/stencil_utils.py | devitocodes/devitoboundary | a2b4c62015f7bab8b4f53ef2ea181a674c1751a4 | [
"MIT"
] | 2 | 2021-02-15T21:33:50.000Z | 2022-02-15T17:04:05.000Z | devitoboundary/stencils/stencil_utils.py | devitocodes/devitoboundary | a2b4c62015f7bab8b4f53ef2ea181a674c1751a4 | [
"MIT"
] | 24 | 2020-09-02T15:34:58.000Z | 2021-11-17T16:21:53.000Z | devitoboundary/stencils/stencil_utils.py | devitocodes/devitoboundary | a2b4c62015f7bab8b4f53ef2ea181a674c1751a4 | [
"MIT"
] | 1 | 2021-10-18T13:12:22.000Z | 2021-10-18T13:12:22.000Z | import numpy as np
import sympy as sp
from devitoboundary.symbolics.symbols import a, n, n_max
def standard_stencil(deriv, space_order, offset=0., as_float=True):
"""
Generate a stencil expression with standard weightings. Offset can be
applied to this stencil to evaluate at non-node positions.
Param... | 29.987805 | 80 | 0.631558 | 329 | 2,459 | 4.617021 | 0.340426 | 0.032916 | 0.060566 | 0.071099 | 0.157999 | 0.155365 | 0.118499 | 0.118499 | 0.090849 | 0 | 0 | 0.012493 | 0.283855 | 2,459 | 81 | 81 | 30.358025 | 0.850085 | 0.435543 | 0 | 0.2 | 1 | 0 | 0.004894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.466667 | 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 |
721d36b1f7ce05a7a22cc85de0bb1105779b75f0 | 925 | py | Python | Stacks/stack_array.py | iamlmn/PyDS | 11b00629a91e8231eea7f8feb7c3c6065fdb1ce5 | [
"MIT"
] | null | null | null | Stacks/stack_array.py | iamlmn/PyDS | 11b00629a91e8231eea7f8feb7c3c6065fdb1ce5 | [
"MIT"
] | null | null | null | Stacks/stack_array.py | iamlmn/PyDS | 11b00629a91e8231eea7f8feb7c3c6065fdb1ce5 | [
"MIT"
] | null | null | null | # LIFO Stack DS using Python Lists (Arrays)
class StacksArray:
def __init__(self):
self.stackArray = []
def __len__(self):
return len(self.stackArray)
def isempty(self):
return len(self.stackArray) == 0
def display(self):
print(self.stackArray)
def top(self):... | 18.5 | 43 | 0.544865 | 121 | 925 | 4.033058 | 0.322314 | 0.20082 | 0.07377 | 0.069672 | 0.256148 | 0.145492 | 0 | 0 | 0 | 0 | 0 | 0.014063 | 0.308108 | 925 | 49 | 44 | 18.877551 | 0.748438 | 0.044324 | 0 | 0.216216 | 0 | 0 | 0.024972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0 | 0 | 0.081081 | 0.351351 | 0.297297 | 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 |
7224d5baab9072f3ddb50e21ad8d8e65c70100b8 | 659 | py | Python | ruukoto-programa.py | radiojhero/discord | 9e970fb64c592ac3d04787f9eddd448bf4f4af52 | [
"MIT"
] | null | null | null | ruukoto-programa.py | radiojhero/discord | 9e970fb64c592ac3d04787f9eddd448bf4f4af52 | [
"MIT"
] | null | null | null | ruukoto-programa.py | radiojhero/discord | 9e970fb64c592ac3d04787f9eddd448bf4f4af52 | [
"MIT"
] | null | null | null | import discord
from discord.ext.commands import Bot
from discord.ext import commands
import requests
import xml.etree.cElementTree as et
import xml.dom.minidom
from xml.dom.minidom import Node
client = discord.Client()
channel = discord.Object(id='322175431061012481')
@client.event
async def on_ready():... | 23.535714 | 81 | 0.699545 | 85 | 659 | 5.388235 | 0.482353 | 0.048035 | 0.061135 | 0.082969 | 0.091703 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066298 | 0.176024 | 659 | 27 | 82 | 24.407407 | 0.777164 | 0 | 0 | 0.1 | 0 | 0 | 0.169304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.35 | 0 | 0.35 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7229b3a28e62835aceaae776251d24d30fedd239 | 342 | py | Python | httpServer.py | YaBoiWhiteRice/fileExport | cfdc1dc4ec8c960b9e768f5090c3f45a249c7a50 | [
"MIT"
] | null | null | null | httpServer.py | YaBoiWhiteRice/fileExport | cfdc1dc4ec8c960b9e768f5090c3f45a249c7a50 | [
"MIT"
] | null | null | null | httpServer.py | YaBoiWhiteRice/fileExport | cfdc1dc4ec8c960b9e768f5090c3f45a249c7a50 | [
"MIT"
] | null | null | null | import SimpleHTTPServer
import SocketServer
import socket
PORT = 8080
HOST = socket.gethostname()
IP = socket.gethostbyname(HOST)
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer((IP, PORT), Handler)
print "Serving at port", PORT
print "Victim Username", HOST
print "Victim IP", IP... | 20.117647 | 51 | 0.789474 | 40 | 342 | 6.725 | 0.525 | 0.081784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013289 | 0.119883 | 342 | 17 | 52 | 20.117647 | 0.880399 | 0 | 0 | 0 | 0 | 0 | 0.113703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
723a8c2ea37112b7a7ca05e51656644658df901d | 3,896 | py | Python | api/store/models.py | struckchure/ecommerce | 672797a02226bbbd455f4fbd3f4f64fec8b70727 | [
"MIT"
] | null | null | null | api/store/models.py | struckchure/ecommerce | 672797a02226bbbd455f4fbd3f4f64fec8b70727 | [
"MIT"
] | null | null | null | api/store/models.py | struckchure/ecommerce | 672797a02226bbbd455f4fbd3f4f64fec8b70727 | [
"MIT"
] | null | null | null | from django.db import models
from django.core.exceptions import ValidationError
from django.utils.text import slugify
from django.utils.translation import gettext_lazy as _
import os
from ecommerce.utils import BaseModel
from accounts.models import User
from store.managers import CategoryManager, TagManager
class St... | 27.631206 | 87 | 0.652207 | 477 | 3,896 | 5.176101 | 0.253669 | 0.029162 | 0.024301 | 0.048603 | 0.287161 | 0.182665 | 0.170109 | 0.170109 | 0.136898 | 0.136898 | 0 | 0.009428 | 0.23768 | 3,896 | 140 | 88 | 27.828571 | 0.821886 | 0.01001 | 0 | 0.285714 | 0 | 0 | 0.033722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.122449 | false | 0 | 0.081633 | 0.040816 | 0.561224 | 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 |
724386c43e7954c9903f401d4e32a3299cd2122c | 4,574 | py | Python | flatland/connector_subsystem/rendered_symbol.py | erik-soederholm/flatland-model-diagram-editor | 088e27cded9eca2cacba2c6168c03caf4b43ef72 | [
"MIT"
] | 10 | 2021-01-03T16:47:34.000Z | 2022-03-30T18:47:07.000Z | flatland/connector_subsystem/rendered_symbol.py | modelint/flatland-model-diagram-editor | 088e27cded9eca2cacba2c6168c03caf4b43ef72 | [
"MIT"
] | 91 | 2021-01-09T02:14:13.000Z | 2022-02-24T10:24:10.000Z | flatland/connector_subsystem/rendered_symbol.py | erik-soederholm/flatland-model-diagram-editor | 088e27cded9eca2cacba2c6168c03caf4b43ef72 | [
"MIT"
] | 1 | 2021-01-13T22:13:19.000Z | 2021-01-13T22:13:19.000Z | """
rendered_symbol.py
"""
import logging
from flatland.datatypes.geometry_types import Position
from flatland.datatypes.connection_types import NodeFace, OppositeFace
from flatland.decoration_subsystem.symbol import Symbol
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from flatland.connector_subsystem.stem i... | 50.263736 | 117 | 0.691299 | 570 | 4,574 | 5.414035 | 0.240351 | 0.032404 | 0.027544 | 0.029812 | 0.294232 | 0.197019 | 0.17304 | 0.148412 | 0.148412 | 0.148412 | 0 | 0.000282 | 0.223874 | 4,574 | 90 | 118 | 50.822222 | 0.869014 | 0.19261 | 0 | 0.096774 | 0 | 0 | 0.039626 | 0 | 0 | 0 | 0 | 0.011111 | 0.016129 | 1 | 0.080645 | false | 0 | 0.112903 | 0 | 0.306452 | 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 |
7248fa8411aca6f78e1e6a9896967371d38814b9 | 750 | py | Python | otree_tools/radiogrid/compat.py | christianzihlmann/otree_tools | d07aa506322aeb17bebe3b55e283ea66ff6524e9 | [
"MIT"
] | null | null | null | otree_tools/radiogrid/compat.py | christianzihlmann/otree_tools | d07aa506322aeb17bebe3b55e283ea66ff6524e9 | [
"MIT"
] | null | null | null | otree_tools/radiogrid/compat.py | christianzihlmann/otree_tools | d07aa506322aeb17bebe3b55e283ea66ff6524e9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import re
from django import VERSION
from django.utils import six
from django.utils.safestring import mark_safe
def add_meta_class(field):
if VERSION < (1, 8):
from django.db.models import SubfieldBase
return six.add_metaclass(SubfieldBase)(field)
return field
def w... | 23.4375 | 64 | 0.652 | 104 | 750 | 4.567308 | 0.461538 | 0.084211 | 0.063158 | 0.046316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012153 | 0.232 | 750 | 31 | 65 | 24.193548 | 0.8125 | 0.028 | 0 | 0.090909 | 0 | 0 | 0.022008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.227273 | 0 | 0.681818 | 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 |
724956c3da1b13b66e229fe4535613d8a5969e21 | 639 | py | Python | pytorch-commen-code/code2.py | riciche/SimpleCVReproduction | 4075de39f9c61f1359668a413f6a5d98903fcf97 | [
"Apache-2.0"
] | 923 | 2020-01-11T06:36:53.000Z | 2022-03-31T00:26:57.000Z | pytorch-commen-code/code2.py | riciche/SimpleCVReproduction | 4075de39f9c61f1359668a413f6a5d98903fcf97 | [
"Apache-2.0"
] | 25 | 2020-02-27T08:35:46.000Z | 2022-01-25T08:54:19.000Z | pytorch-commen-code/code2.py | riciche/SimpleCVReproduction | 4075de39f9c61f1359668a413f6a5d98903fcf97 | [
"Apache-2.0"
] | 262 | 2020-01-02T02:19:40.000Z | 2022-03-23T04:56:16.000Z | import torch
tensor = torch.randn(3,4,5)
print(tensor.type())
print(tensor.size())
# size不是shape
print(tensor.dim())
print(tensor.shape)
# 骚操作:命名张量
images = torch.randn(3,3,4,4)
print(images.sum(dim=1).shape)
print(images.select(dim=1, index=0).shape)
# pytorch1.3之后
NCHW = ["N", "C, "H", "W"]
images = torch.randn(3,... | 19.363636 | 48 | 0.688576 | 106 | 639 | 4.113208 | 0.45283 | 0.137615 | 0.075688 | 0.077982 | 0.091743 | 0.091743 | 0.091743 | 0 | 0 | 0 | 0 | 0.029982 | 0.112676 | 639 | 32 | 49 | 19.96875 | 0.738977 | 0.147105 | 0 | 0 | 0 | 0 | 0.022346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.315789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
724e87730f944d822ab8c284267fdaca64ae3a2c | 2,965 | py | Python | server/core/migrations/0001_initial.py | SaltyQuetzals/EarthxHack-2018 | dc661160a99fd05d8a212f8a4915ebf798d7c7e9 | [
"MIT"
] | null | null | null | server/core/migrations/0001_initial.py | SaltyQuetzals/EarthxHack-2018 | dc661160a99fd05d8a212f8a4915ebf798d7c7e9 | [
"MIT"
] | null | null | null | server/core/migrations/0001_initial.py | SaltyQuetzals/EarthxHack-2018 | dc661160a99fd05d8a212f8a4915ebf798d7c7e9 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-04-22 13:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='CouncilMember',
fields=[
... | 44.253731 | 150 | 0.586847 | 285 | 2,965 | 5.950877 | 0.298246 | 0.045401 | 0.103184 | 0.127948 | 0.637382 | 0.580778 | 0.580778 | 0.580778 | 0.580778 | 0.580778 | 0 | 0.021008 | 0.277572 | 2,965 | 66 | 151 | 44.924242 | 0.770775 | 0.015177 | 0 | 0.542373 | 1 | 0 | 0.151474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033898 | 0 | 0.101695 | 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 |
a0ca43d9990aec4bbd2aa2f2a6ff78380b0082c4 | 929 | py | Python | alignment/urls.py | GPCRmd/GPCRmd | 7dc75359ace4a00c1597bdb7a86ebee17d51f09c | [
"Apache-2.0"
] | 3 | 2019-03-06T13:35:38.000Z | 2020-08-05T15:31:29.000Z | alignment/urls.py | GPCRmd/GPCRmd | 7dc75359ace4a00c1597bdb7a86ebee17d51f09c | [
"Apache-2.0"
] | null | null | null | alignment/urls.py | GPCRmd/GPCRmd | 7dc75359ace4a00c1597bdb7a86ebee17d51f09c | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from django.views.generic import TemplateView
from django.views.decorators.cache import cache_page
from alignment import views
urlpatterns = [
url(r'^targetselection', cache_page(60*60*24*7)(views.TargetSelection.as_view()), name='targetselection'),
url(r'^segmentselection',... | 48.894737 | 110 | 0.729817 | 120 | 929 | 5.516667 | 0.283333 | 0.054381 | 0.060423 | 0.048338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008304 | 0.092573 | 929 | 18 | 111 | 51.611111 | 0.775801 | 0 | 0 | 0 | 0 | 0 | 0.246767 | 0.052802 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.266667 | 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 |
a0ccf615c46571101356f4dc48edb6ae914ed527 | 2,051 | py | Python | utils/templatetags/includes.py | makiwara/onemoretime | 355fce3fd498a054bdd81231b23b3ffd8c534f6e | [
"MIT"
] | null | null | null | utils/templatetags/includes.py | makiwara/onemoretime | 355fce3fd498a054bdd81231b23b3ffd8c534f6e | [
"MIT"
] | null | null | null | utils/templatetags/includes.py | makiwara/onemoretime | 355fce3fd498a054bdd81231b23b3ffd8c534f6e | [
"MIT"
] | null | null | null | from django import template
from django.template.loader import get_template
from django.conf import settings
import tokenize
import StringIO
register = template.Library()
class CallNode(template.Node):
def __init__(self, template_name, *args, **kwargs):
self.template_name = template_name
self.args =... | 29.724638 | 99 | 0.553876 | 237 | 2,051 | 4.704641 | 0.379747 | 0.064574 | 0.043049 | 0.032287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006503 | 0.325207 | 2,051 | 69 | 100 | 29.724638 | 0.799133 | 0 | 0 | 0.037037 | 0 | 0 | 0.033191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.092593 | 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 |
a0d9fefda968db03df71c7d1125805024628e9d7 | 1,731 | py | Python | benchmarks/csv_read_benchmark.py | lidavidm/benchmarks | 22dd6da2c74293d798ecd47501b682a6a0738aab | [
"MIT"
] | null | null | null | benchmarks/csv_read_benchmark.py | lidavidm/benchmarks | 22dd6da2c74293d798ecd47501b682a6a0738aab | [
"MIT"
] | null | null | null | benchmarks/csv_read_benchmark.py | lidavidm/benchmarks | 22dd6da2c74293d798ecd47501b682a6a0738aab | [
"MIT"
] | null | null | null | import conbench.runner
import pyarrow.csv
from benchmarks import _benchmark
@conbench.runner.register_benchmark
class CsvReadBenchmark(_benchmark.Benchmark):
"""
Read CSV file to arrow table.
CsvReadBenchmark().run(<source>, options...)
Parameters
----------
source : str
A sourc... | 30.910714 | 72 | 0.644136 | 202 | 1,731 | 5.361386 | 0.430693 | 0.029548 | 0.033241 | 0.046168 | 0.053555 | 0.053555 | 0 | 0 | 0 | 0 | 0 | 0.009471 | 0.268053 | 1,731 | 55 | 73 | 31.472727 | 0.845304 | 0.423455 | 0 | 0 | 0 | 0 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.130435 | 0.043478 | 0.521739 | 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 |
a0df2024babd9f4b5288e1b79a4eecc0e1bbe09b | 546 | py | Python | problems/A/ChatRoom.py | deveshbajpai19/CodeForces | 707b374f03012ec68054841f791d48b33ae4ef1b | [
"MIT"
] | 55 | 2016-06-19T05:45:15.000Z | 2022-03-31T15:18:53.000Z | problems/A/ChatRoom.py | farhadcu/CodeForces-2 | 707b374f03012ec68054841f791d48b33ae4ef1b | [
"MIT"
] | null | null | null | problems/A/ChatRoom.py | farhadcu/CodeForces-2 | 707b374f03012ec68054841f791d48b33ae4ef1b | [
"MIT"
] | 25 | 2016-07-29T13:03:15.000Z | 2021-09-17T01:45:45.000Z | __author__ = 'Devesh Bajpai'
'''
http://codeforces.com/problemset/problem/58/A
Algorithm: Iterate over the string and maintain the index for word hello. If they match for the complete word hello,
return YES. Else NO.
'''
def solve(str):
word = "hello"
index = 0
for i in range(0,len(str)):
if(index=... | 20.222222 | 116 | 0.589744 | 77 | 546 | 4.012987 | 0.571429 | 0.087379 | 0.05178 | 0.090615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017767 | 0.278388 | 546 | 26 | 117 | 21 | 0.766497 | 0 | 0 | 0.125 | 0 | 0 | 0.095775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a0df901bf9039cb723167ed17dddaafe2fddc699 | 1,863 | py | Python | util/reggen/gen_rtl.py | tarikgraba/opentitan | f5fb61f2a41734365c039024a355630725a5b15c | [
"Apache-2.0"
] | null | null | null | util/reggen/gen_rtl.py | tarikgraba/opentitan | f5fb61f2a41734365c039024a355630725a5b15c | [
"Apache-2.0"
] | null | null | null | util/reggen/gen_rtl.py | tarikgraba/opentitan | f5fb61f2a41734365c039024a355630725a5b15c | [
"Apache-2.0"
] | null | null | null | # Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
"""Generate SystemVerilog designs from validated register JSON tree
"""
import logging as log
from mako import exceptions
from mako.template import Template
from pkg_resou... | 33.872727 | 74 | 0.592593 | 204 | 1,863 | 5.284314 | 0.377451 | 0.022263 | 0.016698 | 0.050093 | 0.512059 | 0.512059 | 0.512059 | 0.372913 | 0.372913 | 0.372913 | 0 | 0.011746 | 0.314546 | 1,863 | 54 | 75 | 34.5 | 0.83242 | 0.19431 | 0 | 0.5 | 1 | 0 | 0.052455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0.027778 | 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 |
a0e225223f8822877e49afb68b3d84241538638e | 508 | py | Python | light_gas.py | mmaasrani/Tripoli-from-a-dream-to-reality | 7a358a9afe869fbd2077b58f1e2fe2906fbb9033 | [
"Apache-2.0"
] | null | null | null | light_gas.py | mmaasrani/Tripoli-from-a-dream-to-reality | 7a358a9afe869fbd2077b58f1e2fe2906fbb9033 | [
"Apache-2.0"
] | null | null | null | light_gas.py | mmaasrani/Tripoli-from-a-dream-to-reality | 7a358a9afe869fbd2077b58f1e2fe2906fbb9033 | [
"Apache-2.0"
] | null | null | null | #Raspberry Pi Potentiometer Circuit Code
import RPi.GPIO as GPIO
import botbook_mcp3002 as mcp
import time
LED = 40
lightvalue = 0
GPIO.setmode(GPIO.BOARD)
GPIO.setup(LED, GPIO.OUT)
while True:
lightvalue = mcp.readAnalog(0,0)
gasValue = mcp.readAnalog(0,1)
print "LightValue = ", ligh... | 23.090909 | 66 | 0.647638 | 69 | 508 | 4.753623 | 0.550725 | 0.064024 | 0.085366 | 0.140244 | 0.182927 | 0.182927 | 0 | 0 | 0 | 0 | 0 | 0.049351 | 0.242126 | 508 | 21 | 67 | 24.190476 | 0.802597 | 0.076772 | 0 | 0 | 0 | 0 | 0.060403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a0e33f7e9894baa110281583dd970f42aa0aa5a0 | 1,458 | py | Python | tools/vis_log.py | ubc-vision/RefTR | f31b28ba98d5716f8c5ba994af6cd284d016ebba | [
"MIT"
] | 20 | 2021-12-05T07:51:27.000Z | 2022-03-11T06:15:25.000Z | tools/vis_log.py | ubc-vision/RefTR | f31b28ba98d5716f8c5ba994af6cd284d016ebba | [
"MIT"
] | 1 | 2022-01-15T09:57:02.000Z | 2022-01-16T04:29:31.000Z | tools/vis_log.py | ubc-vision/RefTR | f31b28ba98d5716f8c5ba994af6cd284d016ebba | [
"MIT"
] | null | null | null | import json
import os
import shutil
from tqdm import tqdm
from torch.utils.tensorboard import SummaryWriter
def convert_from_log(log_dir):
if os.path.exists(f'{log_dir}/tb'):
shutil.rmtree(f'{log_dir}/tb')
tb_writter = SummaryWriter(log_dir=f'{log_dir}/tb')
with open(f"{log_dir}/log.txt", 'r') as ... | 39.405405 | 93 | 0.632373 | 210 | 1,458 | 4.095238 | 0.27619 | 0.104651 | 0.111628 | 0.167442 | 0.32907 | 0.276744 | 0.276744 | 0.272093 | 0.104651 | 0.104651 | 0 | 0.001759 | 0.220165 | 1,458 | 36 | 94 | 40.5 | 0.754617 | 0 | 0 | 0 | 0 | 0 | 0.240741 | 0.076818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.166667 | 0 | 0.2 | 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 |
a0ea200a5208e920416ae50fcd43474afd1bb0b1 | 3,811 | py | Python | alfirt.runner/src/generator/scene/tests/SceneInjecterX3DTests.py | Dzess/ALFIRT | a25e34dcacff8c4f63c4c87aa94be90551261758 | [
"MIT"
] | 1 | 2018-07-23T17:30:47.000Z | 2018-07-23T17:30:47.000Z | alfirt.runner/src/generator/scene/tests/SceneInjecterX3DTests.py | Dzess/ALFIRT | a25e34dcacff8c4f63c4c87aa94be90551261758 | [
"MIT"
] | null | null | null | alfirt.runner/src/generator/scene/tests/SceneInjecterX3DTests.py | Dzess/ALFIRT | a25e34dcacff8c4f63c4c87aa94be90551261758 | [
"MIT"
] | null | null | null | '''
Created on Aug 20, 2011
@author: Piotr
'''
import unittest
from generator.scene.SceneInjecterX3D import SceneInjecterX3D
from generator.data.SceneDescription import SceneDescription
from generator.data.ObjectPose import ObjectPose
from lxml import etree
from lxml import objectify
class TagWriterX3DTests(unittest.... | 42.344444 | 151 | 0.544739 | 409 | 3,811 | 4.992665 | 0.286064 | 0.021548 | 0.020568 | 0.013712 | 0.491675 | 0.491675 | 0.485798 | 0.485798 | 0.485798 | 0.425073 | 0 | 0.07177 | 0.341905 | 3,811 | 89 | 152 | 42.820225 | 0.742424 | 0.031488 | 0 | 0.483871 | 0 | 0.129032 | 0.600217 | 0.076046 | 0 | 0 | 0 | 0 | 0.048387 | 1 | 0.064516 | false | 0 | 0.096774 | 0 | 0.177419 | 0.048387 | 0 | 0 | 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 |
a0f002a76d215e2db06f9adae3a3e56a958cb02c | 364 | py | Python | portfolio/migrations/0010_auto_20200909_2054.py | Corban10/pw-backend | e444822de1ab06c675f03f35b02b79e750c3be25 | [
"MIT"
] | null | null | null | portfolio/migrations/0010_auto_20200909_2054.py | Corban10/pw-backend | e444822de1ab06c675f03f35b02b79e750c3be25 | [
"MIT"
] | null | null | null | portfolio/migrations/0010_auto_20200909_2054.py | Corban10/pw-backend | e444822de1ab06c675f03f35b02b79e750c3be25 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-09-09 08:54
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0009_auto_20200909_2053'),
]
operations = [
migrations.RenameField(
model_name='project',
old_name='featured',
... | 19.157895 | 49 | 0.587912 | 38 | 364 | 5.473684 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11811 | 0.302198 | 364 | 18 | 50 | 20.222222 | 0.700787 | 0.118132 | 0 | 0 | 1 | 0 | 0.159875 | 0.0721 | 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 |
a0f351d702b8a84e379ad0ba82e6fcf32e30d8a0 | 2,973 | py | Python | oe/bitbake/setup.py | quby-energy/QB2-OSS | 836643e5113b28825ec668fc946fc99b1ce16596 | [
"MIT"
] | 2 | 2019-12-28T12:12:34.000Z | 2020-06-29T20:24:11.000Z | oe/bitbake/setup.py | quby-energy/QB2-OSS | 836643e5113b28825ec668fc946fc99b1ce16596 | [
"MIT"
] | 1 | 2020-09-07T15:33:56.000Z | 2020-09-07T15:33:56.000Z | oe/bitbake/setup.py | quby-io/QB2-OSS | 836643e5113b28825ec668fc946fc99b1ce16596 | [
"MIT"
] | 1 | 2019-04-05T06:08:40.000Z | 2019-04-05T06:08:40.000Z | #!/usr/bin/env python
# ex:ts=4:sw=4:sts=4:et
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
#
# Copyright (C) 2003 Chris Larson
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Softwar... | 39.118421 | 527 | 0.679785 | 422 | 2,973 | 4.727488 | 0.483412 | 0.018045 | 0.019549 | 0.028571 | 0.137343 | 0.124311 | 0.096241 | 0.096241 | 0.096241 | 0.096241 | 0 | 0.009709 | 0.203162 | 2,973 | 75 | 528 | 39.64 | 0.832419 | 0.264043 | 0 | 0.173913 | 0 | 0.021739 | 0.382204 | 0.025357 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.152174 | null | null | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9d0f6d598a5e270700166c48061b17134cf2e970 | 10,967 | py | Python | bot/hardware/color_sensor.py | abbenson/ballbot | 44ea6abba026ec47c2dcd79450186d9ea43a9e7d | [
"BSD-2-Clause"
] | null | null | null | bot/hardware/color_sensor.py | abbenson/ballbot | 44ea6abba026ec47c2dcd79450186d9ea43a9e7d | [
"BSD-2-Clause"
] | null | null | null | bot/hardware/color_sensor.py | abbenson/ballbot | 44ea6abba026ec47c2dcd79450186d9ea43a9e7d | [
"BSD-2-Clause"
] | null | null | null | """Controls activity related to RGB color sensor."""
import time
from i2c_device.i2c_device import I2CDevice
import bbb.gpio as gpio_mod
import bbb.pwm as pwm_mod
import bot.lib.lib as lib
class ColorSensor(I2CDevice):
"""Wrapper class for TCS3472 I2C-based color sensor."""
# TODO: Make these config item... | 30.719888 | 78 | 0.55512 | 1,374 | 10,967 | 4.313683 | 0.219068 | 0.003374 | 0.005062 | 0.005399 | 0.179011 | 0.147123 | 0.098701 | 0.058714 | 0.051966 | 0.051966 | 0 | 0.024347 | 0.337102 | 10,967 | 356 | 79 | 30.80618 | 0.790922 | 0.107413 | 0 | 0.248677 | 0 | 0.015873 | 0.067827 | 0 | 0 | 0 | 0.001105 | 0.002809 | 0 | 0 | null | null | 0 | 0.026455 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d136bce1593e49a7cdfef1dbc35a64467467ff8 | 6,634 | py | Python | bot.py | dzenX/music_bot | d6bb4d1a4c2934c708d3613881ea6cace0bfc713 | [
"MIT"
] | 1 | 2018-07-22T22:34:01.000Z | 2018-07-22T22:34:01.000Z | bot.py | dzenX/music_bot | d6bb4d1a4c2934c708d3613881ea6cace0bfc713 | [
"MIT"
] | null | null | null | bot.py | dzenX/music_bot | d6bb4d1a4c2934c708d3613881ea6cace0bfc713 | [
"MIT"
] | null | null | null | import os
from datetime import datetime
import discord
import yaml
# TODO: help RUTULIA
# self = discord.self()
from commands import Command
from connection import Connect
from player import Player
from settings import Settings
from utils import Error
""""
Settings for creating youtube stream
"""
ytdl_format_option... | 28.472103 | 100 | 0.582002 | 796 | 6,634 | 5.139447 | 0.332915 | 0.024199 | 0.0088 | 0.018333 | 0.08482 | 0.057199 | 0.025422 | 0.025422 | 0.025422 | 0.025422 | 0 | 0.001799 | 0.162044 | 6,634 | 232 | 101 | 28.594828 | 0.680698 | 0.157974 | 0 | 0.057851 | 0 | 0 | 0.270158 | 0.034523 | 0 | 0 | 0 | 0.012931 | 0 | 1 | 0.049587 | false | 0 | 0.07438 | 0 | 0.14876 | 0.173554 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9d1bbd239c7c7397eb3a2b4e56eb2b030f1732e6 | 210 | py | Python | Python3/scripts-python3/desafios/mundo02/desafio050.py | Joey-Resende/Estudando-Python | d38212dd6753b35d4f8d2aae79ec41f92cf16d58 | [
"MIT"
] | null | null | null | Python3/scripts-python3/desafios/mundo02/desafio050.py | Joey-Resende/Estudando-Python | d38212dd6753b35d4f8d2aae79ec41f92cf16d58 | [
"MIT"
] | null | null | null | Python3/scripts-python3/desafios/mundo02/desafio050.py | Joey-Resende/Estudando-Python | d38212dd6753b35d4f8d2aae79ec41f92cf16d58 | [
"MIT"
] | null | null | null | cont = 0
pares = 0
for c in range(1, 7):
num = int(input('Digite um número: '))
if num % 2 == 0:
pares += num
cont += 1
print(f'Você informou {cont} números PARES e a soma foi {pares}')
| 23.333333 | 65 | 0.557143 | 36 | 210 | 3.25 | 0.722222 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.3 | 210 | 8 | 66 | 26.25 | 0.748299 | 0 | 0 | 0 | 0 | 0 | 0.347619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d2060c03d14034a1d795bf707a85b22556e9192 | 692 | py | Python | images/library.py | lexicon31/IntroSlides | 1b2fed9c65b4d5e49caf98e5c093843c624e54e4 | [
"CC-BY-3.0"
] | 13 | 2015-09-04T04:57:16.000Z | 2021-01-20T10:40:27.000Z | images/library.py | lexicon31/IntroSlides | 1b2fed9c65b4d5e49caf98e5c093843c624e54e4 | [
"CC-BY-3.0"
] | 2 | 2016-05-25T18:32:00.000Z | 2016-05-25T18:38:51.000Z | images/library.py | lexicon31/IntroSlides | 1b2fed9c65b4d5e49caf98e5c093843c624e54e4 | [
"CC-BY-3.0"
] | 5 | 2015-11-02T11:19:23.000Z | 2019-08-30T01:54:33.000Z | class Selenium2Library:
def input_text(self, locator, text):
"""Types given `text` into text field `locator`."""
print "Typing text '%s' into '%s'." % (text, locator)
element = self._element_find(locator)
element.clear()
element.send_keys(text)
def title_should_be(self,... | 34.6 | 76 | 0.58815 | 80 | 692 | 5 | 0.525 | 0.07 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004073 | 0.290462 | 692 | 19 | 77 | 36.421053 | 0.810591 | 0.086705 | 0 | 0 | 0 | 0 | 0.165714 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d2492275409c4b900d79e1a4ecf7a64a410596f | 2,280 | py | Python | day23/day23-1.py | RobinRH/advent-of-code-2015 | b1197164dda2fd23ad08c7a0af8088c0cc1f6100 | [
"MIT"
] | null | null | null | day23/day23-1.py | RobinRH/advent-of-code-2015 | b1197164dda2fd23ad08c7a0af8088c0cc1f6100 | [
"MIT"
] | null | null | null | day23/day23-1.py | RobinRH/advent-of-code-2015 | b1197164dda2fd23ad08c7a0af8088c0cc1f6100 | [
"MIT"
] | null | null | null | # a = 0 -> 170
# a = 1 -> 247
# there is only one code file, simply change the initial value of a
# https://adventofcode.com/2015/day/23
# hlf r sets register r to half its current value, then continues with the next instruction.
# tpl r sets register r to triple its current value, then continues with the next instruc... | 28.860759 | 94 | 0.521491 | 305 | 2,280 | 3.898361 | 0.304918 | 0.047098 | 0.029437 | 0.033642 | 0.436501 | 0.349033 | 0.269134 | 0.269134 | 0.269134 | 0.131203 | 0 | 0.038147 | 0.35614 | 2,280 | 79 | 95 | 28.860759 | 0.771798 | 0.323246 | 0 | 0.433333 | 0 | 0 | 0.025507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d2592f696bda7bb0ee7fd07f6763f680c273099 | 2,285 | py | Python | src/backends/python/flask/tests/index.py | ferlikh/many-backends | 933b94e13e368b9d73936e006f26d33aec7212b7 | [
"MIT"
] | null | null | null | src/backends/python/flask/tests/index.py | ferlikh/many-backends | 933b94e13e368b9d73936e006f26d33aec7212b7 | [
"MIT"
] | null | null | null | src/backends/python/flask/tests/index.py | ferlikh/many-backends | 933b94e13e368b9d73936e006f26d33aec7212b7 | [
"MIT"
] | null | null | null | import os
import pytest
from core import utils
from core.config import modules
from index import *
@pytest.fixture
def client():
app.config['TESTING'] = True
with app.test_client() as client:
yield client
def index_test(client):
res = client.get('/')
with open(os.environ['FRONTEND_DIR'] + '/... | 28.209877 | 89 | 0.658643 | 320 | 2,285 | 4.565625 | 0.2625 | 0.073922 | 0.071869 | 0.092402 | 0.299795 | 0.22245 | 0.146475 | 0.056126 | 0 | 0 | 0 | 0.001074 | 0.18512 | 2,285 | 81 | 90 | 28.209877 | 0.783566 | 0.049453 | 0 | 0.175439 | 0 | 0 | 0.074523 | 0.010713 | 0 | 0 | 0 | 0 | 0.140351 | 1 | 0.210526 | false | 0 | 0.087719 | 0.035088 | 0.350877 | 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 |
9d27f684a57a890243464f10508ff0a00e7c2c11 | 4,345 | py | Python | SoapProxy/views.py | q8groups/soap | 9ea60b40795976c4ca2de3a03f242282df6be152 | [
"MIT"
] | null | null | null | SoapProxy/views.py | q8groups/soap | 9ea60b40795976c4ca2de3a03f242282df6be152 | [
"MIT"
] | null | null | null | SoapProxy/views.py | q8groups/soap | 9ea60b40795976c4ca2de3a03f242282df6be152 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.views.generic import ListView,edit
from django.core.urlresolvers import reverse_lazy
from django.contrib.messages import views as messageviews
from braces import views as bracesViews
from Soap... | 30.173611 | 139 | 0.711162 | 492 | 4,345 | 6.176829 | 0.29878 | 0.025337 | 0.026324 | 0.042119 | 0.413952 | 0.367226 | 0.301086 | 0.248108 | 0.22639 | 0.198421 | 0 | 0.002257 | 0.18435 | 4,345 | 143 | 140 | 30.384615 | 0.855248 | 0.028539 | 0 | 0.336957 | 0 | 0 | 0.094274 | 0.026407 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.119565 | null | null | 0.01087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9d2b5f3a8a59d5b8f11f17222423306302b0fcb5 | 6,161 | py | Python | magni/imaging/dictionaries/_mtx1D.py | SIP-AAU/Magni | 6328dc98a273506f433af52e6bd394754a844550 | [
"BSD-2-Clause"
] | 42 | 2015-02-09T10:17:26.000Z | 2021-12-21T09:38:04.000Z | magni/imaging/dictionaries/_mtx1D.py | SIP-AAU/Magni | 6328dc98a273506f433af52e6bd394754a844550 | [
"BSD-2-Clause"
] | 3 | 2015-03-20T12:00:40.000Z | 2015-03-20T12:01:16.000Z | magni/imaging/dictionaries/_mtx1D.py | SIP-AAU/Magni | 6328dc98a273506f433af52e6bd394754a844550 | [
"BSD-2-Clause"
] | 14 | 2015-04-28T03:08:32.000Z | 2021-07-24T13:29:24.000Z | """
..
Copyright (c) 2014-2017, Magni developers.
All rights reserved.
See LICENSE.rst for further information.
Module providing 1D matrices for building 2D separable transforms.
Routine listings
----------------
get_DCT_transform_matrix(N)
Return the normalised N-by-N discrete cosine transform (DCT) ... | 33.302703 | 78 | 0.588216 | 1,053 | 6,161 | 3.388414 | 0.207028 | 0.071469 | 0.009249 | 0.012612 | 0.732904 | 0.658913 | 0.587724 | 0.587724 | 0.54148 | 0.521861 | 0 | 0.158597 | 0.245739 | 6,161 | 184 | 79 | 33.483696 | 0.60921 | 0.781854 | 0 | 0.416667 | 0 | 0 | 0.038589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.291667 | 0 | 0.541667 | 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 |
9d37ec702efae3901f993cfbf0bef9012973dab1 | 2,418 | py | Python | LDA.py | hamidali0391/Topic-Modeling | 5990974e41669888c6faa08ec07ba8a198d55689 | [
"MIT"
] | null | null | null | LDA.py | hamidali0391/Topic-Modeling | 5990974e41669888c6faa08ec07ba8a198d55689 | [
"MIT"
] | null | null | null | LDA.py | hamidali0391/Topic-Modeling | 5990974e41669888c6faa08ec07ba8a198d55689 | [
"MIT"
] | null | null | null | import gensim
from gensim.utils import simple_preprocess
from gensim.parsing.preprocessing import STOPWORDS
from nltk.stem import WordNetLemmatizer, SnowballStemmer
from nltk.stem.porter import *
import numpy as np
np.random.seed(400)
import nltk
nltk.download('wordnet')
import pandas as pd
data = pd.read_csv('abcnew... | 34.056338 | 111 | 0.679074 | 323 | 2,418 | 4.941176 | 0.414861 | 0.045113 | 0.024436 | 0.022556 | 0.172932 | 0.172932 | 0.172932 | 0.092732 | 0.092732 | 0.092732 | 0 | 0.023007 | 0.227047 | 2,418 | 71 | 112 | 34.056338 | 0.830926 | 0.068238 | 0 | 0.176471 | 0 | 0 | 0.06548 | 0.012062 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.264706 | 0 | 0.264706 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9d3dfb11c5de5f2fe1da32b0202a9121e5dc5ae7 | 28,424 | py | Python | core/gui.py | rChen10/pywright | a71527b62c072d89c84054b0674b3a65e1227c48 | [
"BSD-3-Clause"
] | 3 | 2016-03-16T01:10:09.000Z | 2022-02-20T00:33:04.000Z | core/gui.py | rChen10/pywright | a71527b62c072d89c84054b0674b3a65e1227c48 | [
"BSD-3-Clause"
] | 1 | 2016-03-16T01:29:57.000Z | 2016-03-16T01:29:57.000Z | core/gui.py | rChen10/pywright | a71527b62c072d89c84054b0674b3a65e1227c48 | [
"BSD-3-Clause"
] | 5 | 2016-03-21T02:48:13.000Z | 2021-08-18T08:58:09.000Z | import pygame
import sys,os
import core
try:
import android
except:
android = None
pygame.font.init()
ft = pygame.font.Font(os.path.join("fonts","Vera.ttf"),10)
class Window(object):
_focused = None
_keyboard = False
def sf(self,v):
self._focused = v
if android:
... | 38.936986 | 146 | 0.530502 | 3,596 | 28,424 | 4.104561 | 0.095384 | 0.029268 | 0.012195 | 0.017276 | 0.417005 | 0.348103 | 0.295664 | 0.25874 | 0.226152 | 0.177304 | 0 | 0.02481 | 0.336371 | 28,424 | 730 | 147 | 38.936986 | 0.757674 | 0.027793 | 0 | 0.274311 | 0 | 0 | 0.030659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014514 | 0.007257 | null | null | 0.001451 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
9d4a65de243c7e77222bde48d931adec09ef133d | 3,957 | py | Python | aioalfacrm/client.py | stas12312/aioalfacrm | 1501634fa5ef4591936be2e6147827565e4a0b36 | [
"MIT"
] | null | null | null | aioalfacrm/client.py | stas12312/aioalfacrm | 1501634fa5ef4591936be2e6147827565e4a0b36 | [
"MIT"
] | 49 | 2021-11-11T16:00:40.000Z | 2021-11-24T15:37:34.000Z | aioalfacrm/client.py | stas12312/aioalfacrm | 1501634fa5ef4591936be2e6147827565e4a0b36 | [
"MIT"
] | null | null | null | import typing
import aiohttp
from . import entities
from . import managers
from .core.api import ApiClient
from .core.auth import AuthManager
from .core.exceptions import Forbidden
from .core.utils import parse_hostname
class AlfaClient:
"""Class for work with AlfaCRM API"""
def __init__(
self,... | 35.017699 | 100 | 0.659843 | 443 | 3,957 | 5.715576 | 0.214447 | 0.074645 | 0.128357 | 0.199052 | 0.024487 | 0.024487 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248673 | 3,957 | 112 | 101 | 35.330357 | 0.851665 | 0.020217 | 0 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.091954 | 0.045977 | 0.252874 | 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 |
9d52a45005bc0963b698488a53a3f73f8a86acb4 | 585 | py | Python | handler.py | NDereg/AWS_AMI_Lookup | c9764459816ef9c4243e7056329b0eef8e84feb5 | [
"MIT"
] | null | null | null | handler.py | NDereg/AWS_AMI_Lookup | c9764459816ef9c4243e7056329b0eef8e84feb5 | [
"MIT"
] | null | null | null | handler.py | NDereg/AWS_AMI_Lookup | c9764459816ef9c4243e7056329b0eef8e84feb5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Entry point that calls the main source code
handler.lambda_handler calls .lib/ami_lookup.py
TO DO: None
"""
import logging
def lambda_handler(event, context):
"""Entry Point"""
enable_logging(event)
execute_main(event, context)
def enable_logging(event):
"Enables Loggi... | 19.5 | 48 | 0.692308 | 78 | 585 | 5.089744 | 0.487179 | 0.120907 | 0.120907 | 0.115869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002101 | 0.186325 | 585 | 29 | 49 | 20.172414 | 0.831933 | 0.347009 | 0 | 0 | 0 | 0 | 0.120393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d53f1525fb3cb5ce57380690758dc33bd0b1fbd | 2,766 | py | Python | RecurrentBN/trainer.py | matthewkennedy5/paper-implementations | f7bc383299d069569a56dca43dc6865e6a7c091c | [
"MIT"
] | null | null | null | RecurrentBN/trainer.py | matthewkennedy5/paper-implementations | f7bc383299d069569a56dca43dc6865e6a7c091c | [
"MIT"
] | null | null | null | RecurrentBN/trainer.py | matthewkennedy5/paper-implementations | f7bc383299d069569a56dca43dc6865e6a7c091c | [
"MIT"
] | null | null | null | import numpy as np
import torch
from torch import nn
from torch.utils.data import DataLoader
from torch.utils.data.sampler import SubsetRandomSampler
from tqdm import tqdm
import pdb
from mnist_dataloader import SequentialMNIST
from models import LSTM
N_VAL = 1000
class Trainer:
def __init__(self, model, data, ... | 38.416667 | 128 | 0.647867 | 366 | 2,766 | 4.699454 | 0.355191 | 0.04186 | 0.037791 | 0.02093 | 0.096512 | 0.05 | 0.05 | 0.05 | 0 | 0 | 0 | 0.016043 | 0.256327 | 2,766 | 71 | 129 | 38.957746 | 0.820126 | 0.083514 | 0 | 0 | 0 | 0 | 0.03799 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.075472 | false | 0.018868 | 0.169811 | 0 | 0.301887 | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
19be2a6d6fbc111158bbd259a98593867b56c811 | 220 | py | Python | examples/gui/ZernikeTest.py | will-hossack/Poptics | 4093876e158eb16421dfd4e57818210b11381429 | [
"MIT"
] | null | null | null | examples/gui/ZernikeTest.py | will-hossack/Poptics | 4093876e158eb16421dfd4e57818210b11381429 | [
"MIT"
] | null | null | null | examples/gui/ZernikeTest.py | will-hossack/Poptics | 4093876e158eb16421dfd4e57818210b11381429 | [
"MIT"
] | null | null | null | """ Test for fitting wavefronts
"""
from PyQt5.QtWidgets import QApplication
import poptics.gui as gui
def main():
app = QApplication([])
w = gui.WaveFrontViewer()
w.show()
app.exec_()
main()
| 12.941176 | 40 | 0.631818 | 26 | 220 | 5.307692 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005988 | 0.240909 | 220 | 16 | 41 | 13.75 | 0.820359 | 0.122727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19c601a190c2f2d2149874b7c17dcb1ee36a762c | 322 | py | Python | examples/normalize.py | pfnet-research/label-efficient-brain-tumor-segmentation | aad80ed7acb510a3147bb11c3910d2e17fb355d1 | [
"MIT"
] | 21 | 2020-09-23T11:05:14.000Z | 2021-12-09T13:32:59.000Z | examples/normalize.py | shiontao/label-efficient-brain-tumor-segmentation | aad80ed7acb510a3147bb11c3910d2e17fb355d1 | [
"MIT"
] | null | null | null | examples/normalize.py | shiontao/label-efficient-brain-tumor-segmentation | aad80ed7acb510a3147bb11c3910d2e17fb355d1 | [
"MIT"
] | 5 | 2020-10-29T05:57:15.000Z | 2021-07-16T11:30:02.000Z | import sys
sys.path.append('.') # NOQA
from src.datasets.preprocess import normalize
def main(root_path=None, arr_type='nii.gz', modality='mri'):
# save normalized npz arrays in root_path/normalized/
normalize(root_path, arr_type, modality)
if __name__ == '__main__':
from fire import Fire
Fire(main... | 23 | 60 | 0.720497 | 46 | 322 | 4.76087 | 0.608696 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164596 | 322 | 13 | 61 | 24.769231 | 0.814126 | 0.173913 | 0 | 0 | 0 | 0 | 0.068441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 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 |
19c62e994649d428a037e83046bf0cf356fa3de9 | 4,046 | py | Python | SCRIPTS/plot_omol.py | LBJ-Wade/Pantheon | 7eb29dc87ba223b4ec8457cd3cccba1216c36fb7 | [
"MIT"
] | 22 | 2018-06-08T01:38:53.000Z | 2022-03-23T14:44:46.000Z | SCRIPTS/plot_omol.py | LBJ-Wade/Pantheon | 7eb29dc87ba223b4ec8457cd3cccba1216c36fb7 | [
"MIT"
] | 6 | 2018-03-31T08:26:16.000Z | 2022-01-25T11:08:13.000Z | SCRIPTS/plot_omol.py | LBJ-Wade/Pantheon | 7eb29dc87ba223b4ec8457cd3cccba1216c36fb7 | [
"MIT"
] | 15 | 2018-04-09T12:40:09.000Z | 2021-12-21T15:51:13.000Z | import getdist.plots as gplot
import matplotlib.pyplot as plt
import numpy as np
import plotsetup
bigmat=np.zeros((65,100))
sys_values=open('mlcs_cont.txt','r').readlines()
for x in range(0,len(sys_values)):
y=sys_values[x].split()
print y
#stop
for z in rang... | 35.80531 | 167 | 0.651013 | 703 | 4,046 | 3.657184 | 0.263158 | 0.025671 | 0.049008 | 0.027227 | 0.45352 | 0.289382 | 0.255932 | 0.24893 | 0.218592 | 0.195255 | 0 | 0.08124 | 0.114681 | 4,046 | 112 | 168 | 36.125 | 0.636516 | 0.399901 | 0 | 0.037736 | 0 | 0 | 0.203354 | 0.07631 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075472 | null | null | 0.09434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
19cfd85ef5caec62a3f3af96387dbcaaae94fde1 | 575 | py | Python | src/odroid_go/utils/go_consts.py | willemserruys/Snake | 5302b02e6f7bf04561e97bf001f758e6ddbaa17b | [
"MIT"
] | null | null | null | src/odroid_go/utils/go_consts.py | willemserruys/Snake | 5302b02e6f7bf04561e97bf001f758e6ddbaa17b | [
"MIT"
] | null | null | null | src/odroid_go/utils/go_consts.py | willemserruys/Snake | 5302b02e6f7bf04561e97bf001f758e6ddbaa17b | [
"MIT"
] | null | null | null | from micropython import const
TFT_DC_PIN = const(21)
TFT_CS_PIN = const(5)
TFT_LED_PIN = const(14)
TFT_MOSI_PIN = const(23)
TFT_MISO_PIN = const(19)
TFT_SCLK_PIN = const(18)
BUTTON_A_PIN = const(32)
BUTTON_B_PIN = const(33)
BUTTON_MENU_PIN = const(13)
BUTTON_SELECT_PIN = const(27)
BUTTON_VOLUME_PIN = const(0)
BUTTON... | 21.296296 | 33 | 0.775652 | 104 | 575 | 3.903846 | 0.471154 | 0.334975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06917 | 0.12 | 575 | 26 | 34 | 22.115385 | 0.733202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 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 |
19d1b55b3d7d4cbeba1f7bcab8f7142bc978fbe5 | 3,600 | py | Python | img_url_replace/img_upload.py | ggqshr/replace_img_md | bdb5ace24eb243454785aac924b9dd51827065a3 | [
"BSD-3-Clause"
] | 1 | 2020-12-30T09:31:08.000Z | 2020-12-30T09:31:08.000Z | img_url_replace/img_upload.py | ggqshr/replace_img_md | bdb5ace24eb243454785aac924b9dd51827065a3 | [
"BSD-3-Clause"
] | null | null | null | img_url_replace/img_upload.py | ggqshr/replace_img_md | bdb5ace24eb243454785aac924b9dd51827065a3 | [
"BSD-3-Clause"
] | null | null | null | import requests
import re
from datetime import datetime
from tqdm import tqdm
from typing import Tuple, List, Union
from pathlib import Path
from base64 import b16decode
def time_stp():
return int(datetime.now().timestamp()*1000)
class ImgUpload(object):
token_re = 'PF.obj.config.auth_token = "(.*?)"'
... | 32.432432 | 139 | 0.570278 | 431 | 3,600 | 4.568445 | 0.359629 | 0.030472 | 0.039614 | 0.027425 | 0.118842 | 0.089385 | 0.039614 | 0.039614 | 0.039614 | 0.039614 | 0 | 0.016477 | 0.291944 | 3,600 | 110 | 140 | 32.727273 | 0.755983 | 0.015 | 0 | 0.044444 | 0 | 0.011111 | 0.157211 | 0.012983 | 0 | 0 | 0 | 0 | 0.033333 | 1 | 0.122222 | false | 0.055556 | 0.088889 | 0.033333 | 0.322222 | 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 |
19d6dd0c81107529238fbfc300bb2c710b6db758 | 5,583 | py | Python | pyec/distribution/nn/net.py | hypernicon/pyec | 7072835c97d476fc45ffc3b34f5c3ec607988e6d | [
"MIT"
] | 2 | 2015-03-16T21:18:27.000Z | 2017-10-09T19:59:24.000Z | pyec/distribution/nn/net.py | hypernicon/pyec | 7072835c97d476fc45ffc3b34f5c3ec607988e6d | [
"MIT"
] | null | null | null | pyec/distribution/nn/net.py | hypernicon/pyec | 7072835c97d476fc45ffc3b34f5c3ec607988e6d | [
"MIT"
] | null | null | null | """
Copyright (C) 2012 Alan J Lockett
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute,... | 53.682692 | 460 | 0.628157 | 735 | 5,583 | 4.755102 | 0.348299 | 0.014306 | 0.020029 | 0.014878 | 0.134192 | 0.118455 | 0.105293 | 0.105293 | 0.105293 | 0.105293 | 0 | 0.00335 | 0.304854 | 5,583 | 104 | 461 | 53.682692 | 0.897191 | 0.722909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.032258 | 0.032258 | 0.387097 | 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 |
19d7d70b1089f9e53bbd90a8b0553677dcc6eae7 | 9,287 | py | Python | sem/tests/test_features.py | YoannDupont/SEM | ff21c5dc9a8e99eda81dc266e67cfa97dec7c243 | [
"MIT"
] | 22 | 2016-11-13T21:08:58.000Z | 2021-04-26T07:04:54.000Z | sem/tests/test_features.py | Raphencoder/SEM | ff21c5dc9a8e99eda81dc266e67cfa97dec7c243 | [
"MIT"
] | 15 | 2016-11-15T10:21:07.000Z | 2021-11-08T10:08:05.000Z | sem/tests/test_features.py | Raphencoder/SEM | ff21c5dc9a8e99eda81dc266e67cfa97dec7c243 | [
"MIT"
] | 8 | 2016-11-15T10:21:41.000Z | 2022-03-04T21:28:05.000Z | #-*- encoding: utf-8 -*-
"""
file: test_features.py
author: Yoann Dupont
MIT License
Copyright (c) 2018 Yoann Dupont
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | 41.459821 | 190 | 0.612146 | 1,203 | 9,287 | 4.658354 | 0.180382 | 0.199857 | 0.028908 | 0.044611 | 0.46788 | 0.33262 | 0.201285 | 0.157923 | 0.128658 | 0.109921 | 0 | 0.015643 | 0.242813 | 9,287 | 223 | 191 | 41.64574 | 0.781286 | 0.136212 | 0 | 0.254777 | 0 | 0 | 0.066925 | 0 | 0 | 0 | 0 | 0 | 0.44586 | 1 | 0.031847 | false | 0 | 0.050955 | 0 | 0.089172 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19db76219c744f4baa4f84e3efdad6a232567928 | 1,305 | py | Python | ringer.py | andyseubert/doorbell | ab65d44aa36fcad407275e33d8aa3140d17d3c35 | [
"Unlicense"
] | null | null | null | ringer.py | andyseubert/doorbell | ab65d44aa36fcad407275e33d8aa3140d17d3c35 | [
"Unlicense"
] | null | null | null | ringer.py | andyseubert/doorbell | ab65d44aa36fcad407275e33d8aa3140d17d3c35 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
import socket
import sys
import struct
import time
debug=1
#main function
if __name__ == "__main__":
if(len(sys.argv) < 2) :
print 'Usage : python client.py hostname'
sys.exit()
host = sys.argv[1]
port = 9999
#create an INET, STREAMing socket
try:
s = socket.so... | 21.393443 | 75 | 0.683525 | 169 | 1,305 | 5.207101 | 0.47929 | 0.039773 | 0.054545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02821 | 0.212261 | 1,305 | 60 | 76 | 21.75 | 0.827821 | 0.229119 | 0 | 0.289474 | 0 | 0 | 0.231695 | 0.06319 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19e3877b19374bf747655af11d9b5b60af8dafbc | 685 | py | Python | data-structures/tree/bst.py | shane1027/CS-Fundamentals-Review | 41939c3fd78770f48f00746303b8cb893b0364aa | [
"MIT"
] | 1 | 2021-02-19T23:45:28.000Z | 2021-02-19T23:45:28.000Z | data-structures/tree/bst.py | shane1027/CS-Fundamentals-Review | 41939c3fd78770f48f00746303b8cb893b0364aa | [
"MIT"
] | null | null | null | data-structures/tree/bst.py | shane1027/CS-Fundamentals-Review | 41939c3fd78770f48f00746303b8cb893b0364aa | [
"MIT"
] | null | null | null | #!/usr/bin/python
import random
import tree
nums = [random.randint(0,10) for x in range(0,10)]
print("Input tree data:")
print(nums)
bst = Tree(nums)
print("Initial BST:")
print(bst)
print("Min value:")
print(bst.findMin())
nums = [random.randint(0,10) for x in range(0,10)]
print("Adding values:")
print(nums)
f... | 13.431373 | 50 | 0.677372 | 110 | 685 | 4.218182 | 0.3 | 0.103448 | 0.094828 | 0.116379 | 0.590517 | 0.590517 | 0.590517 | 0.590517 | 0.525862 | 0.357759 | 0 | 0.020548 | 0.147445 | 685 | 50 | 51 | 13.7 | 0.773973 | 0.023358 | 0 | 0.59375 | 0 | 0 | 0.205706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
19e61e54a60e47ff3352ef085e61d1496c1c5f48 | 4,473 | py | Python | RI/flask_server/tapi_server/models/tapi_photonic_media_spectrum_band.py | arthurMll/TAPI | e1171bb139c6791a953af09cfc2bc7ad928da73d | [
"Apache-2.0"
] | 57 | 2018-04-09T08:56:18.000Z | 2022-03-23T08:31:06.000Z | RI/flask_server/tapi_server/models/tapi_photonic_media_spectrum_band.py | arthurMll/TAPI | e1171bb139c6791a953af09cfc2bc7ad928da73d | [
"Apache-2.0"
] | 143 | 2016-06-08T04:09:54.000Z | 2018-02-23T10:45:59.000Z | RI/flask_server/tapi_server/models/tapi_photonic_media_spectrum_band.py | arthurMll/TAPI | e1171bb139c6791a953af09cfc2bc7ad928da73d | [
"Apache-2.0"
] | 64 | 2018-03-07T07:55:17.000Z | 2022-03-28T07:14:28.000Z | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from tapi_server.models.base_model_ import Model
from tapi_server.models.tapi_photonic_media_frequency_constraint import TapiPhotonicMediaFrequencyConstraint # noqa: F... | 36.663934 | 127 | 0.714956 | 449 | 4,473 | 6.91314 | 0.171492 | 0.108247 | 0.180412 | 0.141753 | 0.569588 | 0.415271 | 0.353093 | 0.345361 | 0.305412 | 0.164948 | 0 | 0.011527 | 0.224234 | 4,473 | 121 | 128 | 36.966942 | 0.882997 | 0.508607 | 0 | 0.214286 | 0 | 0 | 0.096288 | 0.0156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.142857 | 0 | 0.452381 | 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 |
19ee7456b791af96402f1d3c80b7caf680b33052 | 956 | py | Python | booking/hotels/tests.py | dcti77/booking | ed335fa1ab19bb1dc2f76bda0ac04cbc56860837 | [
"MIT"
] | null | null | null | booking/hotels/tests.py | dcti77/booking | ed335fa1ab19bb1dc2f76bda0ac04cbc56860837 | [
"MIT"
] | null | null | null | booking/hotels/tests.py | dcti77/booking | ed335fa1ab19bb1dc2f76bda0ac04cbc56860837 | [
"MIT"
] | null | null | null | from django.test import TestCase
from hotels.models import Hotel
class CheckPages(TestCase):
def test_hotels_page_status_code(self):
response = self.client.get('/hotels/')
self.assertEqual(response.status_code, 200)
def test_hotels_search_page_status_code(self):
response = self.clien... | 36.769231 | 115 | 0.695607 | 121 | 956 | 5.380165 | 0.38843 | 0.061444 | 0.059908 | 0.101382 | 0.572965 | 0.572965 | 0.3149 | 0.3149 | 0.245776 | 0 | 0 | 0.017391 | 0.15795 | 956 | 25 | 116 | 38.24 | 0.791304 | 0 | 0 | 0.117647 | 0 | 0 | 0.126569 | 0.046025 | 0 | 0 | 0 | 0 | 0.235294 | 1 | 0.235294 | false | 0 | 0.117647 | 0 | 0.470588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
19f12535b4139da754c3a89560eba1873686c6db | 7,528 | py | Python | src/python/triangula/arduino.py | peterbrazil/brazil | 3823dca6f05b6946251800125d45069048d1bca1 | [
"Apache-2.0"
] | null | null | null | src/python/triangula/arduino.py | peterbrazil/brazil | 3823dca6f05b6946251800125d45069048d1bca1 | [
"Apache-2.0"
] | null | null | null | src/python/triangula/arduino.py | peterbrazil/brazil | 3823dca6f05b6946251800125d45069048d1bca1 | [
"Apache-2.0"
] | null | null | null | __author__ = 'tom'
from time import sleep
try:
import smbus
except ImportError:
print 'Not importing smbus, expected during sphinx generation on OSX'
ARDUINO_ADDRESS = 0x70
I2C_RETRIES = 30
I2C_DELAY = 0.01
def float_to_byte(f):
"""
Map a float from -1.0 to 1.0 onto the range 0-255 and return as a... | 37.267327 | 120 | 0.631642 | 1,048 | 7,528 | 4.416985 | 0.290076 | 0.006481 | 0.006049 | 0.006481 | 0.068913 | 0.063729 | 0.048607 | 0.048607 | 0.037589 | 0.019443 | 0 | 0.027224 | 0.30712 | 7,528 | 201 | 121 | 37.452736 | 0.860238 | 0.017136 | 0 | 0.164557 | 0 | 0 | 0.103871 | 0 | 0 | 0 | 0.005161 | 0 | 0 | 0 | null | null | 0.012658 | 0.050633 | null | null | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.